smarteye-e-components 0.0.31 → 0.0.32
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.
|
@@ -109,7 +109,7 @@ const ke = (e, t) => {
|
|
|
109
109
|
n[r] = o;
|
|
110
110
|
return n;
|
|
111
111
|
}, vo = { class: "root" }, No = { class: "count-show" };
|
|
112
|
-
function
|
|
112
|
+
function bo(e, t, n, r, o, a) {
|
|
113
113
|
return x(), J("div", vo, [
|
|
114
114
|
oe(e.$slots, "default", {
|
|
115
115
|
total: e.totalCount,
|
|
@@ -118,7 +118,7 @@ function Oo(e, t, n, r, o, a) {
|
|
|
118
118
|
G("span", No, ge(e.onlineCount) + "/" + ge(e.totalCount), 1)
|
|
119
119
|
]);
|
|
120
120
|
}
|
|
121
|
-
const sn = /* @__PURE__ */ ke(Eo, [["render",
|
|
121
|
+
const sn = /* @__PURE__ */ ke(Eo, [["render", bo], ["__scopeId", "data-v-a063c331"]]), an = Object.freeze(
|
|
122
122
|
{
|
|
123
123
|
left: 0,
|
|
124
124
|
top: 0,
|
|
@@ -148,7 +148,7 @@ const cn = Object.freeze({
|
|
|
148
148
|
...cn,
|
|
149
149
|
...ln
|
|
150
150
|
});
|
|
151
|
-
function
|
|
151
|
+
function Oo(e, t) {
|
|
152
152
|
const n = {
|
|
153
153
|
...e
|
|
154
154
|
};
|
|
@@ -236,15 +236,15 @@ function Do(e, t) {
|
|
|
236
236
|
};
|
|
237
237
|
let a = n.body;
|
|
238
238
|
[n, r].forEach((h) => {
|
|
239
|
-
const v = [],
|
|
240
|
-
let
|
|
241
|
-
|
|
239
|
+
const v = [], b = h.hFlip, E = h.vFlip;
|
|
240
|
+
let O = h.rotate;
|
|
241
|
+
b ? E ? O += 2 : (v.push(
|
|
242
242
|
"translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
|
|
243
243
|
), v.push("scale(-1 1)"), o.top = o.left = 0) : E && (v.push(
|
|
244
244
|
"translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
|
|
245
245
|
), v.push("scale(1 -1)"), o.top = o.left = 0);
|
|
246
246
|
let N;
|
|
247
|
-
switch (
|
|
247
|
+
switch (O < 0 && (O -= Math.floor(O / 4) * 4), O = O % 4, O) {
|
|
248
248
|
case 1:
|
|
249
249
|
N = o.height / 2 + o.top, v.unshift(
|
|
250
250
|
"rotate(90 " + N.toString() + " " + N.toString() + ")"
|
|
@@ -261,7 +261,7 @@ function Do(e, t) {
|
|
|
261
261
|
);
|
|
262
262
|
break;
|
|
263
263
|
}
|
|
264
|
-
|
|
264
|
+
O % 2 === 1 && (o.left !== o.top && (N = o.left, o.left = o.top, o.top = N), o.width !== o.height && (N = o.width, o.width = o.height, o.height = N)), v.length && (a = '<g transform="' + v.join(" ") + '">' + a + "</g>");
|
|
265
265
|
});
|
|
266
266
|
const s = r.width, i = r.height, l = o.width, c = o.height;
|
|
267
267
|
let d, _;
|
|
@@ -301,7 +301,7 @@ function Fo(e) {
|
|
|
301
301
|
function ko(e) {
|
|
302
302
|
return 'url("data:image/svg+xml,' + Fo(e) + '")';
|
|
303
303
|
}
|
|
304
|
-
const
|
|
304
|
+
const bt = {
|
|
305
305
|
...un,
|
|
306
306
|
inline: !1
|
|
307
307
|
}, Mo = {
|
|
@@ -315,7 +315,7 @@ const Ot = {
|
|
|
315
315
|
backgroundColor: "currentColor"
|
|
316
316
|
}, fn = {
|
|
317
317
|
backgroundColor: "transparent"
|
|
318
|
-
},
|
|
318
|
+
}, Ot = {
|
|
319
319
|
Image: "var(--svg)",
|
|
320
320
|
Repeat: "no-repeat",
|
|
321
321
|
Size: "100% 100%"
|
|
@@ -326,8 +326,8 @@ const Ot = {
|
|
|
326
326
|
};
|
|
327
327
|
for (const e in Tt) {
|
|
328
328
|
const t = Tt[e];
|
|
329
|
-
for (const n in
|
|
330
|
-
t[e + n] =
|
|
329
|
+
for (const n in Ot)
|
|
330
|
+
t[e + n] = Ot[n];
|
|
331
331
|
}
|
|
332
332
|
const De = {};
|
|
333
333
|
["horizontal", "vertical"].forEach((e) => {
|
|
@@ -338,11 +338,11 @@ function It(e) {
|
|
|
338
338
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
339
339
|
}
|
|
340
340
|
const Uo = (e, t) => {
|
|
341
|
-
const n =
|
|
342
|
-
for (let
|
|
343
|
-
const E = t[
|
|
341
|
+
const n = Oo(bt, t), r = { ...Mo }, o = t.mode || "svg", a = {}, s = t.style, i = typeof s == "object" && !(s instanceof Array) ? s : {};
|
|
342
|
+
for (let b in t) {
|
|
343
|
+
const E = t[b];
|
|
344
344
|
if (E !== void 0)
|
|
345
|
-
switch (
|
|
345
|
+
switch (b) {
|
|
346
346
|
case "icon":
|
|
347
347
|
case "style":
|
|
348
348
|
case "onLoad":
|
|
@@ -351,7 +351,7 @@ const Uo = (e, t) => {
|
|
|
351
351
|
case "inline":
|
|
352
352
|
case "hFlip":
|
|
353
353
|
case "vFlip":
|
|
354
|
-
n[
|
|
354
|
+
n[b] = E === !0 || E === "true" || E === 1;
|
|
355
355
|
break;
|
|
356
356
|
case "flip":
|
|
357
357
|
typeof E == "string" && Io(n, E);
|
|
@@ -360,15 +360,15 @@ const Uo = (e, t) => {
|
|
|
360
360
|
a.color = E;
|
|
361
361
|
break;
|
|
362
362
|
case "rotate":
|
|
363
|
-
typeof E == "string" ? n[
|
|
363
|
+
typeof E == "string" ? n[b] = Lo(E) : typeof E == "number" && (n[b] = E);
|
|
364
364
|
break;
|
|
365
365
|
case "ariaHidden":
|
|
366
366
|
case "aria-hidden":
|
|
367
367
|
E !== !0 && E !== "true" && delete r["aria-hidden"];
|
|
368
368
|
break;
|
|
369
369
|
default: {
|
|
370
|
-
const
|
|
371
|
-
|
|
370
|
+
const O = De[b];
|
|
371
|
+
O ? (E === !0 || E === "true" || E === 1) && (n[O] = !0) : bt[b] === void 0 && (r[b] = E);
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
}
|
|
@@ -378,8 +378,8 @@ const Uo = (e, t) => {
|
|
|
378
378
|
...a,
|
|
379
379
|
...i
|
|
380
380
|
}, Object.assign(r, c);
|
|
381
|
-
let
|
|
382
|
-
return typeof E == "string" && (E = E.replace(/-/g, "_")), r.innerHTML = wo(l.body, E ? () => E + "ID" +
|
|
381
|
+
let b = 0, E = t.id;
|
|
382
|
+
return typeof E == "string" && (E = E.replace(/-/g, "_")), r.innerHTML = wo(l.body, E ? () => E + "ID" + b++ : "iconifyVue"), Ce("svg", r);
|
|
383
383
|
}
|
|
384
384
|
const { body: d, width: _, height: f } = e, h = o === "mask" || (o === "bg" ? !1 : d.indexOf("currentColor") !== -1), v = Ro(d, {
|
|
385
385
|
...c,
|
|
@@ -596,13 +596,13 @@ function _r(e, t, n, r, o, a) {
|
|
|
596
596
|
ae(i, {
|
|
597
597
|
icon: e.bShow ? "minus" : "plus",
|
|
598
598
|
width: "20",
|
|
599
|
-
onClick: t[0] || (t[0] = (
|
|
599
|
+
onClick: t[0] || (t[0] = (b) => e.bShow = !e.bShow),
|
|
600
600
|
class: "handle-ls-svg"
|
|
601
601
|
}, null, 8, ["icon"])
|
|
602
602
|
])) : (x(), J("span", sr)),
|
|
603
603
|
G("span", {
|
|
604
604
|
class: "group-head-db-click",
|
|
605
|
-
onDblclick: t[1] || (t[1] = (
|
|
605
|
+
onDblclick: t[1] || (t[1] = (b) => e.bShow = !e.bShow)
|
|
606
606
|
}, [
|
|
607
607
|
ae(i, {
|
|
608
608
|
icon: e.bShow ? "group" : "group-closed",
|
|
@@ -641,7 +641,7 @@ function _r(e, t, n, r, o, a) {
|
|
|
641
641
|
}, 1032, ["deviceGroup", "controlParams"]))), 128)),
|
|
642
642
|
G("div", {
|
|
643
643
|
class: "device-show-div",
|
|
644
|
-
style: ye(`height: ${e.filteredDevices.length > 10 ? "400px" : `${e.filteredDevices.length * 40
|
|
644
|
+
style: ye(`height: ${e.filteredDevices.length > 10 ? "400px" : `${e.filteredDevices.length * 40}px`}`)
|
|
645
645
|
}, [
|
|
646
646
|
ae(d, {
|
|
647
647
|
"list-data": e.filteredDevices,
|
|
@@ -674,7 +674,7 @@ function _r(e, t, n, r, o, a) {
|
|
|
674
674
|
])) : xe("", !0)
|
|
675
675
|
], 2)) : xe("", !0);
|
|
676
676
|
}
|
|
677
|
-
const mr = /* @__PURE__ */ ke(or, [["render", _r], ["__scopeId", "data-v-
|
|
677
|
+
const mr = /* @__PURE__ */ ke(or, [["render", _r], ["__scopeId", "data-v-9ed5d2b9"]]), dr = {
|
|
678
678
|
width: 1024,
|
|
679
679
|
height: 1024,
|
|
680
680
|
body: '<path fill="currentColor" d="M384 192v640l384-320.064z"/>'
|
|
@@ -716,7 +716,7 @@ const Nr = /\{([0-9a-zA-Z]+)\}/g;
|
|
|
716
716
|
function at(e, ...t) {
|
|
717
717
|
return t.length === 1 && y(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Nr, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
718
718
|
}
|
|
719
|
-
const
|
|
719
|
+
const br = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", te = (e) => br ? Symbol(e) : e, Or = (e, t, n) => Tr({ l: e, k: t, s: n }), Tr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), F = (e) => typeof e == "number" && isFinite(e), Ir = (e) => ct(e) === "[object Date]", Pe = (e) => ct(e) === "[object RegExp]", Me = (e) => I(e) && Object.keys(e).length === 0;
|
|
720
720
|
function Ee(e, t) {
|
|
721
721
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
722
722
|
}
|
|
@@ -979,22 +979,22 @@ function Hr(e, t) {
|
|
|
979
979
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
980
980
|
}
|
|
981
981
|
function jr(e = {}) {
|
|
982
|
-
const t = e.locale, n = Gr(e), r = y(e.pluralRules) && p(t) && R(e.pluralRules[t]) ? e.pluralRules[t] : Ft, o = y(e.pluralRules) && p(t) && R(e.pluralRules[t]) ? Ft : void 0, a = (
|
|
982
|
+
const t = e.locale, n = Gr(e), r = y(e.pluralRules) && p(t) && R(e.pluralRules[t]) ? e.pluralRules[t] : Ft, o = y(e.pluralRules) && p(t) && R(e.pluralRules[t]) ? Ft : void 0, a = (O) => O[r(n, O.length, o)], s = e.list || [], i = (O) => s[O], l = e.named || {};
|
|
983
983
|
F(e.pluralIndex) && Hr(n, l);
|
|
984
|
-
const c = (
|
|
985
|
-
function d(
|
|
986
|
-
const N = R(e.messages) ? e.messages(
|
|
987
|
-
return N || (e.parent ? e.parent.message(
|
|
984
|
+
const c = (O) => l[O];
|
|
985
|
+
function d(O) {
|
|
986
|
+
const N = R(e.messages) ? e.messages(O) : y(e.messages) ? e.messages[O] : !1;
|
|
987
|
+
return N || (e.parent ? e.parent.message(O) : Ur);
|
|
988
988
|
}
|
|
989
|
-
const _ = (
|
|
989
|
+
const _ = (O) => e.modifiers ? e.modifiers[O] : Vr, f = I(e.processor) && R(e.processor.normalize) ? e.processor.normalize : Wr, h = I(e.processor) && R(e.processor.interpolate) ? e.processor.interpolate : xr, v = I(e.processor) && p(e.processor.type) ? e.processor.type : $r, E = {
|
|
990
990
|
list: i,
|
|
991
991
|
named: c,
|
|
992
992
|
plural: a,
|
|
993
|
-
linked: (
|
|
993
|
+
linked: (O, ...N) => {
|
|
994
994
|
const [S, T] = N;
|
|
995
995
|
let g = "text", D = "";
|
|
996
996
|
N.length === 1 ? y(S) ? (D = S.modifier || D, g = S.type || g) : p(S) && (D = S || D) : N.length === 2 && (p(S) && (D = S || D), p(T) && (g = T || g));
|
|
997
|
-
let L = d(
|
|
997
|
+
let L = d(O)(E);
|
|
998
998
|
return g === "vnode" && P(L) && D && (L = L[0]), D ? _(D)(L, g) : L;
|
|
999
999
|
},
|
|
1000
1000
|
message: d,
|
|
@@ -1004,12 +1004,12 @@ function jr(e = {}) {
|
|
|
1004
1004
|
};
|
|
1005
1005
|
return E;
|
|
1006
1006
|
}
|
|
1007
|
-
let
|
|
1007
|
+
let be = null;
|
|
1008
1008
|
function Br(e) {
|
|
1009
|
-
|
|
1009
|
+
be = e;
|
|
1010
1010
|
}
|
|
1011
1011
|
function zr(e, t, n) {
|
|
1012
|
-
|
|
1012
|
+
be && be.emit(pn.I18nInit, {
|
|
1013
1013
|
timestamp: Date.now(),
|
|
1014
1014
|
i18n: e,
|
|
1015
1015
|
version: t,
|
|
@@ -1018,7 +1018,7 @@ function zr(e, t, n) {
|
|
|
1018
1018
|
}
|
|
1019
1019
|
const Yr = /* @__PURE__ */ Kr(pn.FunctionTranslate);
|
|
1020
1020
|
function Kr(e) {
|
|
1021
|
-
return (t) =>
|
|
1021
|
+
return (t) => be && be.emit(e, t);
|
|
1022
1022
|
}
|
|
1023
1023
|
const z = {
|
|
1024
1024
|
NOT_FOUND_KEY: 1,
|
|
@@ -1105,13 +1105,13 @@ let Nn = null;
|
|
|
1105
1105
|
const Vt = (e) => {
|
|
1106
1106
|
Nn = e;
|
|
1107
1107
|
}, rs = () => Nn;
|
|
1108
|
-
let
|
|
1108
|
+
let bn = null;
|
|
1109
1109
|
const Ut = (e) => {
|
|
1110
|
-
|
|
1111
|
-
}, ss = () =>
|
|
1110
|
+
bn = e;
|
|
1111
|
+
}, ss = () => bn;
|
|
1112
1112
|
let $t = 0;
|
|
1113
1113
|
function as(e = {}) {
|
|
1114
|
-
const t = p(e.version) ? e.version : Zr, n = p(e.locale) ? e.locale : ut, r = P(e.fallbackLocale) || I(e.fallbackLocale) || p(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, o = I(e.messages) ? e.messages : { [n]: {} }, a = I(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, s = I(e.numberFormats) ? e.numberFormats : { [n]: {} }, i = U({}, e.modifiers || {}, es()), l = e.pluralRules || {}, c = R(e.missing) ? e.missing : null, d = A(e.missingWarn) || Pe(e.missingWarn) ? e.missingWarn : !0, _ = A(e.fallbackWarn) || Pe(e.fallbackWarn) ? e.fallbackWarn : !0, f = !!e.fallbackFormat, h = !!e.unresolving, v = R(e.postTranslation) ? e.postTranslation : null,
|
|
1114
|
+
const t = p(e.version) ? e.version : Zr, n = p(e.locale) ? e.locale : ut, r = P(e.fallbackLocale) || I(e.fallbackLocale) || p(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, o = I(e.messages) ? e.messages : { [n]: {} }, a = I(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, s = I(e.numberFormats) ? e.numberFormats : { [n]: {} }, i = U({}, e.modifiers || {}, es()), l = e.pluralRules || {}, c = R(e.missing) ? e.missing : null, d = A(e.missingWarn) || Pe(e.missingWarn) ? e.missingWarn : !0, _ = A(e.fallbackWarn) || Pe(e.fallbackWarn) ? e.fallbackWarn : !0, f = !!e.fallbackFormat, h = !!e.unresolving, v = R(e.postTranslation) ? e.postTranslation : null, b = I(e.processor) ? e.processor : null, E = A(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, O = !!e.escapeParameter, N = R(e.messageCompiler) ? e.messageCompiler : ts, S = R(e.messageResolver) ? e.messageResolver : En || kr, T = R(e.localeFallbacker) ? e.localeFallbacker : vn || Qr, g = y(e.fallbackContext) ? e.fallbackContext : void 0, D = R(e.onWarn) ? e.onWarn : Ee, L = e, k = y(L.__datetimeFormatters) ? L.__datetimeFormatters : /* @__PURE__ */ new Map(), B = y(L.__numberFormatters) ? L.__numberFormatters : /* @__PURE__ */ new Map(), X = y(L.__meta) ? L.__meta : {};
|
|
1115
1115
|
$t++;
|
|
1116
1116
|
const Q = {
|
|
1117
1117
|
version: t,
|
|
@@ -1127,9 +1127,9 @@ function as(e = {}) {
|
|
|
1127
1127
|
fallbackFormat: f,
|
|
1128
1128
|
unresolving: h,
|
|
1129
1129
|
postTranslation: v,
|
|
1130
|
-
processor:
|
|
1130
|
+
processor: b,
|
|
1131
1131
|
warnHtmlMessage: E,
|
|
1132
|
-
escapeParameter:
|
|
1132
|
+
escapeParameter: O,
|
|
1133
1133
|
messageCompiler: N,
|
|
1134
1134
|
messageResolver: S,
|
|
1135
1135
|
localeFallbacker: T,
|
|
@@ -1142,7 +1142,7 @@ function as(e = {}) {
|
|
|
1142
1142
|
function Ue(e, t) {
|
|
1143
1143
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1145
|
+
function On(e, t) {
|
|
1146
1146
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1147
1147
|
}
|
|
1148
1148
|
function ft(e, t, n, r, o) {
|
|
@@ -1160,7 +1160,7 @@ function ft(e, t, n, r, o) {
|
|
|
1160
1160
|
const i = a(e, n, t, o);
|
|
1161
1161
|
return p(i) ? i : t;
|
|
1162
1162
|
} else
|
|
1163
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1163
|
+
return process.env.NODE_ENV !== "production" && On(r, t) && s(pe(z.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
1164
1164
|
}
|
|
1165
1165
|
function ve(e, t, n) {
|
|
1166
1166
|
const r = e;
|
|
@@ -1182,14 +1182,14 @@ const ls = {
|
|
|
1182
1182
|
[ne.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string"
|
|
1183
1183
|
}, Wt = () => "", Z = (e) => R(e);
|
|
1184
1184
|
function xt(e, ...t) {
|
|
1185
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: o, messageCompiler: a, fallbackLocale: s, messages: i } = e, [l, c] = ze(...t), d = A(c.missingWarn) ? c.missingWarn : e.missingWarn, _ = A(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, f = A(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, h = !!c.resolvedMessage, v = p(c.default) || A(c.default) ? A(c.default) ? a ? l : () => l : c.default : n ? a ? l : () => l : "",
|
|
1185
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: o, messageCompiler: a, fallbackLocale: s, messages: i } = e, [l, c] = ze(...t), d = A(c.missingWarn) ? c.missingWarn : e.missingWarn, _ = A(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, f = A(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, h = !!c.resolvedMessage, v = p(c.default) || A(c.default) ? A(c.default) ? a ? l : () => l : c.default : n ? a ? l : () => l : "", b = n || v !== "", E = p(c.locale) ? c.locale : e.locale;
|
|
1186
1186
|
f && is(c);
|
|
1187
|
-
let [
|
|
1187
|
+
let [O, N, S] = h ? [
|
|
1188
1188
|
l,
|
|
1189
1189
|
E,
|
|
1190
1190
|
i[E] || {}
|
|
1191
|
-
] : In(e, l, E, s, _, d), T =
|
|
1192
|
-
if (!h && !(p(T) || Z(T)) &&
|
|
1191
|
+
] : In(e, l, E, s, _, d), T = O, g = l;
|
|
1192
|
+
if (!h && !(p(T) || Z(T)) && b && (T = v, g = T), !h && (!(p(T) || Z(T)) || !p(N)))
|
|
1193
1193
|
return o ? Ve : l;
|
|
1194
1194
|
if (process.env.NODE_ENV !== "production" && p(T) && e.messageCompiler == null)
|
|
1195
1195
|
return Ee(`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 '${l}'.`), l;
|
|
@@ -1219,10 +1219,10 @@ function is(e) {
|
|
|
1219
1219
|
}
|
|
1220
1220
|
function In(e, t, n, r, o, a) {
|
|
1221
1221
|
const { messages: s, onWarn: i, messageResolver: l, localeFallbacker: c } = e, d = c(e, r, n);
|
|
1222
|
-
let _ = {}, f, h = null, v = n,
|
|
1222
|
+
let _ = {}, f, h = null, v = n, b = null;
|
|
1223
1223
|
const E = "translate";
|
|
1224
|
-
for (let
|
|
1225
|
-
if (f =
|
|
1224
|
+
for (let O = 0; O < d.length; O++) {
|
|
1225
|
+
if (f = b = d[O], process.env.NODE_ENV !== "production" && n !== f && Ue(o, t) && i(pe(z.FALLBACK_TO_TRANSLATE, {
|
|
1226
1226
|
key: t,
|
|
1227
1227
|
target: f
|
|
1228
1228
|
})), process.env.NODE_ENV !== "production" && n !== f) {
|
|
@@ -1231,7 +1231,7 @@ function In(e, t, n, r, o, a) {
|
|
|
1231
1231
|
type: E,
|
|
1232
1232
|
key: t,
|
|
1233
1233
|
from: v,
|
|
1234
|
-
to:
|
|
1234
|
+
to: b,
|
|
1235
1235
|
groupId: `${E}:${t}`
|
|
1236
1236
|
});
|
|
1237
1237
|
}
|
|
@@ -1256,7 +1256,7 @@ function In(e, t, n, r, o, a) {
|
|
|
1256
1256
|
a,
|
|
1257
1257
|
E
|
|
1258
1258
|
);
|
|
1259
|
-
g !== t && (h = g), v =
|
|
1259
|
+
g !== t && (h = g), v = b;
|
|
1260
1260
|
}
|
|
1261
1261
|
return [h, f, _];
|
|
1262
1262
|
}
|
|
@@ -1323,7 +1323,7 @@ ${l}` : i);
|
|
|
1323
1323
|
} else
|
|
1324
1324
|
throw s;
|
|
1325
1325
|
},
|
|
1326
|
-
onCacheKey: (s) =>
|
|
1326
|
+
onCacheKey: (s) => Or(t, n, s)
|
|
1327
1327
|
};
|
|
1328
1328
|
}
|
|
1329
1329
|
function fs(e, t, n, r) {
|
|
@@ -1334,15 +1334,15 @@ function fs(e, t, n, r) {
|
|
|
1334
1334
|
messages: (h) => {
|
|
1335
1335
|
let v = s(n, h);
|
|
1336
1336
|
if (v == null && d) {
|
|
1337
|
-
const [, ,
|
|
1338
|
-
v = s(
|
|
1337
|
+
const [, , b] = In(d, h, t, i, l, c);
|
|
1338
|
+
v = s(b, h);
|
|
1339
1339
|
}
|
|
1340
1340
|
if (p(v)) {
|
|
1341
|
-
let
|
|
1342
|
-
const
|
|
1343
|
-
|
|
1341
|
+
let b = !1;
|
|
1342
|
+
const O = Ln(e, h, t, v, h, () => {
|
|
1343
|
+
b = !0;
|
|
1344
1344
|
});
|
|
1345
|
-
return
|
|
1345
|
+
return b ? Wt : O;
|
|
1346
1346
|
} else
|
|
1347
1347
|
return Z(v) ? v : Wt;
|
|
1348
1348
|
}
|
|
@@ -1357,20 +1357,20 @@ function Ht(e, ...t) {
|
|
|
1357
1357
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: s } = e, { __datetimeFormatters: i } = e;
|
|
1358
1358
|
if (process.env.NODE_ENV !== "production" && !Sn.dateTimeFormat)
|
|
1359
1359
|
return a(pe(z.CANNOT_FORMAT_DATE)), we;
|
|
1360
|
-
const [l, c, d, _] = Ye(...t), f = A(d.missingWarn) ? d.missingWarn : e.missingWarn, h = A(d.fallbackWarn) ? d.fallbackWarn : e.fallbackWarn, v = !!d.part,
|
|
1360
|
+
const [l, c, d, _] = Ye(...t), f = A(d.missingWarn) ? d.missingWarn : e.missingWarn, h = A(d.fallbackWarn) ? d.fallbackWarn : e.fallbackWarn, v = !!d.part, b = p(d.locale) ? d.locale : e.locale, E = s(
|
|
1361
1361
|
e,
|
|
1362
1362
|
o,
|
|
1363
|
-
|
|
1363
|
+
b
|
|
1364
1364
|
);
|
|
1365
1365
|
if (!p(l) || l === "")
|
|
1366
|
-
return new Intl.DateTimeFormat(
|
|
1367
|
-
let
|
|
1366
|
+
return new Intl.DateTimeFormat(b, _).format(c);
|
|
1367
|
+
let O = {}, N, S = null, T = b, g = null;
|
|
1368
1368
|
const D = "datetime format";
|
|
1369
1369
|
for (let B = 0; B < E.length; B++) {
|
|
1370
|
-
if (N = g = E[B], process.env.NODE_ENV !== "production" &&
|
|
1370
|
+
if (N = g = E[B], process.env.NODE_ENV !== "production" && b !== N && Ue(h, l) && a(pe(z.FALLBACK_TO_DATE_FORMAT, {
|
|
1371
1371
|
key: l,
|
|
1372
1372
|
target: N
|
|
1373
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
1373
|
+
})), process.env.NODE_ENV !== "production" && b !== N) {
|
|
1374
1374
|
const X = e.__v_emitter;
|
|
1375
1375
|
X && X.emit("fallback", {
|
|
1376
1376
|
type: D,
|
|
@@ -1380,7 +1380,7 @@ function Ht(e, ...t) {
|
|
|
1380
1380
|
groupId: `${D}:${l}`
|
|
1381
1381
|
});
|
|
1382
1382
|
}
|
|
1383
|
-
if (
|
|
1383
|
+
if (O = n[N] || {}, S = O[l], I(S))
|
|
1384
1384
|
break;
|
|
1385
1385
|
ft(e, l, N, f, D), T = g;
|
|
1386
1386
|
}
|
|
@@ -1450,20 +1450,20 @@ function Bt(e, ...t) {
|
|
|
1450
1450
|
const { numberFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: s } = e, { __numberFormatters: i } = e;
|
|
1451
1451
|
if (process.env.NODE_ENV !== "production" && !Sn.numberFormat)
|
|
1452
1452
|
return a(pe(z.CANNOT_FORMAT_NUMBER)), we;
|
|
1453
|
-
const [l, c, d, _] = Ke(...t), f = A(d.missingWarn) ? d.missingWarn : e.missingWarn, h = A(d.fallbackWarn) ? d.fallbackWarn : e.fallbackWarn, v = !!d.part,
|
|
1453
|
+
const [l, c, d, _] = Ke(...t), f = A(d.missingWarn) ? d.missingWarn : e.missingWarn, h = A(d.fallbackWarn) ? d.fallbackWarn : e.fallbackWarn, v = !!d.part, b = p(d.locale) ? d.locale : e.locale, E = s(
|
|
1454
1454
|
e,
|
|
1455
1455
|
o,
|
|
1456
|
-
|
|
1456
|
+
b
|
|
1457
1457
|
);
|
|
1458
1458
|
if (!p(l) || l === "")
|
|
1459
|
-
return new Intl.NumberFormat(
|
|
1460
|
-
let
|
|
1459
|
+
return new Intl.NumberFormat(b, _).format(c);
|
|
1460
|
+
let O = {}, N, S = null, T = b, g = null;
|
|
1461
1461
|
const D = "number format";
|
|
1462
1462
|
for (let B = 0; B < E.length; B++) {
|
|
1463
|
-
if (N = g = E[B], process.env.NODE_ENV !== "production" &&
|
|
1463
|
+
if (N = g = E[B], process.env.NODE_ENV !== "production" && b !== N && Ue(h, l) && a(pe(z.FALLBACK_TO_NUMBER_FORMAT, {
|
|
1464
1464
|
key: l,
|
|
1465
1465
|
target: N
|
|
1466
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
1466
|
+
})), process.env.NODE_ENV !== "production" && b !== N) {
|
|
1467
1467
|
const X = e.__v_emitter;
|
|
1468
1468
|
X && X.emit("fallback", {
|
|
1469
1469
|
type: D,
|
|
@@ -1473,7 +1473,7 @@ function Bt(e, ...t) {
|
|
|
1473
1473
|
groupId: `${D}:${l}`
|
|
1474
1474
|
});
|
|
1475
1475
|
}
|
|
1476
|
-
if (
|
|
1476
|
+
if (O = n[N] || {}, S = O[l], I(S))
|
|
1477
1477
|
break;
|
|
1478
1478
|
ft(e, l, N, f, D), T = g;
|
|
1479
1479
|
}
|
|
@@ -1625,7 +1625,7 @@ const He = {
|
|
|
1625
1625
|
["vue-i18n-timeline"]: "Vue I18n"
|
|
1626
1626
|
}, Ns = {
|
|
1627
1627
|
["vue-i18n-resource-inspector"]: "Search for scopes ..."
|
|
1628
|
-
},
|
|
1628
|
+
}, bs = {
|
|
1629
1629
|
["vue-i18n-timeline"]: 16764185
|
|
1630
1630
|
};
|
|
1631
1631
|
/*!
|
|
@@ -1633,7 +1633,7 @@ const He = {
|
|
|
1633
1633
|
* (c) 2022 kazuya kawaguchi
|
|
1634
1634
|
* Released under the MIT License.
|
|
1635
1635
|
*/
|
|
1636
|
-
const
|
|
1636
|
+
const Os = "9.2.2";
|
|
1637
1637
|
function Ts() {
|
|
1638
1638
|
let e = !1;
|
|
1639
1639
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (lt().__INTLIFY_PROD_DEVTOOLS__ = !1), process.env.NODE_ENV !== "production" && e && console.warn("You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.");
|
|
@@ -1695,7 +1695,7 @@ const Ls = {
|
|
|
1695
1695
|
[C.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
|
|
1696
1696
|
[C.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]: "Must define \u2018i18n\u2019 option or custom block in Composition API with using local scope in Legacy API mode",
|
|
1697
1697
|
[C.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
1698
|
-
}, Qe = /* @__PURE__ */ te("__transrateVNode"), Je = /* @__PURE__ */ te("__datetimeParts"), qe = /* @__PURE__ */ te("__numberParts"),
|
|
1698
|
+
}, Qe = /* @__PURE__ */ te("__transrateVNode"), Je = /* @__PURE__ */ te("__datetimeParts"), qe = /* @__PURE__ */ te("__numberParts"), Oe = /* @__PURE__ */ te("__enableEmitter"), Ze = /* @__PURE__ */ te("__disableEmitter"), Ss = te("__setPluralRules");
|
|
1699
1699
|
te("__intlifyMeta");
|
|
1700
1700
|
const ys = /* @__PURE__ */ te("__injectWithOption");
|
|
1701
1701
|
function et(e) {
|
|
@@ -1783,25 +1783,25 @@ function Fn(e = {}, t) {
|
|
|
1783
1783
|
), s = j(
|
|
1784
1784
|
n && o ? n.fallbackLocale.value : p(e.fallbackLocale) || P(e.fallbackLocale) || I(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
|
|
1785
1785
|
), i = j(wn(a.value, e)), l = j(I(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), c = j(I(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
|
|
1786
|
-
let d = n ? n.missingWarn : A(e.missingWarn) || Pe(e.missingWarn) ? e.missingWarn : !0, _ = n ? n.fallbackWarn : A(e.fallbackWarn) || Pe(e.fallbackWarn) ? e.fallbackWarn : !0, f = n ? n.fallbackRoot : A(e.fallbackRoot) ? e.fallbackRoot : !0, h = !!e.fallbackFormat, v = R(e.missing) ? e.missing : null,
|
|
1786
|
+
let d = n ? n.missingWarn : A(e.missingWarn) || Pe(e.missingWarn) ? e.missingWarn : !0, _ = n ? n.fallbackWarn : A(e.fallbackWarn) || Pe(e.fallbackWarn) ? e.fallbackWarn : !0, f = n ? n.fallbackRoot : A(e.fallbackRoot) ? e.fallbackRoot : !0, h = !!e.fallbackFormat, v = R(e.missing) ? e.missing : null, b = R(e.missing) ? Qt(e.missing) : null, E = R(e.postTranslation) ? e.postTranslation : null, O = n ? n.warnHtmlMessage : A(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, N = !!e.escapeParameter;
|
|
1787
1787
|
const S = n ? n.modifiers : I(e.modifiers) ? e.modifiers : {};
|
|
1788
1788
|
let T = e.pluralRules || n && n.pluralRules, g;
|
|
1789
1789
|
g = (() => {
|
|
1790
1790
|
r && Ut(null);
|
|
1791
1791
|
const u = {
|
|
1792
|
-
version:
|
|
1792
|
+
version: Os,
|
|
1793
1793
|
locale: a.value,
|
|
1794
1794
|
fallbackLocale: s.value,
|
|
1795
1795
|
messages: i.value,
|
|
1796
1796
|
modifiers: S,
|
|
1797
1797
|
pluralRules: T,
|
|
1798
|
-
missing:
|
|
1798
|
+
missing: b === null ? void 0 : b,
|
|
1799
1799
|
missingWarn: d,
|
|
1800
1800
|
fallbackWarn: _,
|
|
1801
1801
|
fallbackFormat: h,
|
|
1802
1802
|
unresolving: !0,
|
|
1803
1803
|
postTranslation: E === null ? void 0 : E,
|
|
1804
|
-
warnHtmlMessage:
|
|
1804
|
+
warnHtmlMessage: O,
|
|
1805
1805
|
escapeParameter: N,
|
|
1806
1806
|
messageResolver: e.messageResolver,
|
|
1807
1807
|
__meta: { framework: "vue" }
|
|
@@ -1840,7 +1840,7 @@ function Fn(e = {}, t) {
|
|
|
1840
1840
|
return v;
|
|
1841
1841
|
}
|
|
1842
1842
|
function Gn(u) {
|
|
1843
|
-
u !== null && (
|
|
1843
|
+
u !== null && (b = Qt(u)), v = u, g.missing = b;
|
|
1844
1844
|
}
|
|
1845
1845
|
function Hn(u, m) {
|
|
1846
1846
|
return u !== "translate" || !m.resolvedMessage;
|
|
@@ -1858,7 +1858,7 @@ function Fn(e = {}, t) {
|
|
|
1858
1858
|
ue = u(g);
|
|
1859
1859
|
if (F(ue) && ue === Ve) {
|
|
1860
1860
|
const [se, uo] = m();
|
|
1861
|
-
if (process.env.NODE_ENV !== "production" && n && p(se) && Hn($, uo) && (f && (Ue(_, se) ||
|
|
1861
|
+
if (process.env.NODE_ENV !== "production" && n && p(se) && Hn($, uo) && (f && (Ue(_, se) || On(d, se)) && Ee($e(q.FALLBACK_TO_ROOT, {
|
|
1862
1862
|
key: se,
|
|
1863
1863
|
type: $
|
|
1864
1864
|
})), process.env.NODE_ENV !== "production")) {
|
|
@@ -2042,10 +2042,10 @@ function Fn(e = {}, t) {
|
|
|
2042
2042
|
h = u, g.fallbackFormat = h;
|
|
2043
2043
|
},
|
|
2044
2044
|
get warnHtmlMessage() {
|
|
2045
|
-
return
|
|
2045
|
+
return O;
|
|
2046
2046
|
},
|
|
2047
2047
|
set warnHtmlMessage(u) {
|
|
2048
|
-
|
|
2048
|
+
O = u, g.warnHtmlMessage = u;
|
|
2049
2049
|
},
|
|
2050
2050
|
get escapeParameter() {
|
|
2051
2051
|
return N;
|
|
@@ -2063,7 +2063,7 @@ function Fn(e = {}, t) {
|
|
|
2063
2063
|
setMissingHandler: Gn,
|
|
2064
2064
|
[Ss]: qn
|
|
2065
2065
|
};
|
|
2066
|
-
return w.datetimeFormats = Q, w.numberFormats = Te, w.rt = jn, w.te = Zn, w.tm = to, w.d = Bn, w.n = zn, w.getDateTimeFormat = ro, w.setDateTimeFormat = so, w.mergeDateTimeFormat = ao, w.getNumberFormat = lo, w.setNumberFormat = io, w.mergeNumberFormat = co, w[ys] = e.__injectWithOption, w[Qe] = Xn, w[Je] = Jn, w[qe] = Qn, process.env.NODE_ENV !== "production" && (w[
|
|
2066
|
+
return w.datetimeFormats = Q, w.numberFormats = Te, w.rt = jn, w.te = Zn, w.tm = to, w.d = Bn, w.n = zn, w.getDateTimeFormat = ro, w.setDateTimeFormat = so, w.mergeDateTimeFormat = ao, w.getNumberFormat = lo, w.setNumberFormat = io, w.mergeNumberFormat = co, w[ys] = e.__injectWithOption, w[Qe] = Xn, w[Je] = Jn, w[qe] = Qn, process.env.NODE_ENV !== "production" && (w[Oe] = (u) => {
|
|
2067
2067
|
g.__v_emitter = u;
|
|
2068
2068
|
}, w[Ze] = () => {
|
|
2069
2069
|
g.__v_emitter = void 0;
|
|
@@ -2134,8 +2134,8 @@ function Mn(e, t, n, r) {
|
|
|
2134
2134
|
const l = r(e.value, s, i);
|
|
2135
2135
|
let c = [s.key];
|
|
2136
2136
|
P(l) ? c = l.map((f, h) => {
|
|
2137
|
-
const v = o[f.type],
|
|
2138
|
-
return Ps(
|
|
2137
|
+
const v = o[f.type], b = v ? v({ [f.type]: f.value, index: h, parts: l }) : [f.value];
|
|
2138
|
+
return Ps(b) && (b[0].key = `${f.type}-${h}`), b;
|
|
2139
2139
|
}) : p(l) && (c = [l]);
|
|
2140
2140
|
const d = U({}, a), _ = p(e.tag) || y(e.tag) ? e.tag : kn();
|
|
2141
2141
|
return Ce(_, d, c);
|
|
@@ -2282,7 +2282,7 @@ async function ks(e, t) {
|
|
|
2282
2282
|
}), o.addTimelineLayer({
|
|
2283
2283
|
id: "vue-i18n-timeline",
|
|
2284
2284
|
label: He["vue-i18n-timeline"],
|
|
2285
|
-
color:
|
|
2285
|
+
color: bs["vue-i18n-timeline"]
|
|
2286
2286
|
}), n(!0);
|
|
2287
2287
|
});
|
|
2288
2288
|
} catch (o) {
|
|
@@ -2520,8 +2520,8 @@ function Ys(e = {}, t) {
|
|
|
2520
2520
|
throw K(C.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
2521
2521
|
const E = dn();
|
|
2522
2522
|
{
|
|
2523
|
-
const
|
|
2524
|
-
|
|
2523
|
+
const O = s;
|
|
2524
|
+
O[Oe] && O[Oe](E);
|
|
2525
2525
|
}
|
|
2526
2526
|
E.on("*", nt);
|
|
2527
2527
|
}
|
|
@@ -2602,7 +2602,7 @@ function Zs(e, t, n) {
|
|
|
2602
2602
|
if ((process.env.NODE_ENV !== "production" || !1) && !0 && t.vnode.el) {
|
|
2603
2603
|
t.vnode.el.__VUE_I18N__ = n, r = dn();
|
|
2604
2604
|
const o = n;
|
|
2605
|
-
o[
|
|
2605
|
+
o[Oe] && o[Oe](r), r.on("*", nt);
|
|
2606
2606
|
}
|
|
2607
2607
|
}, t), mo(() => {
|
|
2608
2608
|
if ((process.env.NODE_ENV !== "production" || !1) && !0 && t.vnode.el && t.vnode.el.__VUE_I18N__) {
|