@invoice-sdk/widget 1.49.2 → 1.50.1
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-CIxF-wVw.js → index-RHSMeZu0.js} +604 -566
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +55 -29
- package/dist/{widget-CKOZlTSS.js → widget-CaUgT09b.js} +3314 -3057
- package/dist/widget.css +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ var it = Object.defineProperty, ot = Object.defineProperties;
|
|
|
2
2
|
var st = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var be = Object.getOwnPropertySymbols;
|
|
4
4
|
var rt = Object.prototype.hasOwnProperty, at = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Se = (o, e, t) => e in o ? it(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t,
|
|
5
|
+
var Se = (o, e, t) => e in o ? it(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, p = (o, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
7
|
rt.call(e, t) && Se(o, t, e[t]);
|
|
8
8
|
if (be)
|
|
@@ -36,50 +36,50 @@ const m = (o) => typeof o == "string", z = () => {
|
|
|
36
36
|
o.forEach((n) => {
|
|
37
37
|
e[n] && (t[n] = e[n]);
|
|
38
38
|
});
|
|
39
|
-
}, lt = /###/g, $e = (o) => o && o.indexOf("###") > -1 ? o.replace(lt, ".") : o,
|
|
39
|
+
}, lt = /###/g, $e = (o) => o && o.indexOf("###") > -1 ? o.replace(lt, ".") : o, Pe = (o) => !o || m(o), Q = (o, e, t) => {
|
|
40
40
|
const n = m(e) ? e.split(".") : e;
|
|
41
41
|
let i = 0;
|
|
42
42
|
for (; i < n.length - 1; ) {
|
|
43
|
-
if (
|
|
43
|
+
if (Pe(o)) return {};
|
|
44
44
|
const s = $e(n[i]);
|
|
45
45
|
!o[s] && t && (o[s] = new t()), Object.prototype.hasOwnProperty.call(o, s) ? o = o[s] : o = {}, ++i;
|
|
46
46
|
}
|
|
47
|
-
return
|
|
47
|
+
return Pe(o) ? {} : {
|
|
48
48
|
obj: o,
|
|
49
49
|
k: $e(n[i])
|
|
50
50
|
};
|
|
51
|
-
},
|
|
51
|
+
}, ke = (o, e, t) => {
|
|
52
52
|
const {
|
|
53
53
|
obj: n,
|
|
54
54
|
k: i
|
|
55
|
-
} =
|
|
55
|
+
} = Q(o, e, Object);
|
|
56
56
|
if (n !== void 0 || e.length === 1) {
|
|
57
57
|
n[i] = t;
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
|
-
let s = e[e.length - 1], r = e.slice(0, e.length - 1), a =
|
|
60
|
+
let s = e[e.length - 1], r = e.slice(0, e.length - 1), a = Q(o, r, Object);
|
|
61
61
|
for (; a.obj === void 0 && r.length; )
|
|
62
|
-
s = `${r[r.length - 1]}.${s}`, r = r.slice(0, r.length - 1), a =
|
|
62
|
+
s = `${r[r.length - 1]}.${s}`, r = r.slice(0, r.length - 1), a = Q(o, r, Object), a != null && a.obj && typeof a.obj[`${a.k}.${s}`] != "undefined" && (a.obj = void 0);
|
|
63
63
|
a.obj[`${a.k}.${s}`] = t;
|
|
64
64
|
}, ut = (o, e, t, n) => {
|
|
65
65
|
const {
|
|
66
66
|
obj: i,
|
|
67
67
|
k: s
|
|
68
|
-
} =
|
|
68
|
+
} = Q(o, e, Object);
|
|
69
69
|
i[s] = i[s] || [], i[s].push(t);
|
|
70
70
|
}, ee = (o, e) => {
|
|
71
71
|
const {
|
|
72
72
|
obj: t,
|
|
73
73
|
k: n
|
|
74
|
-
} =
|
|
74
|
+
} = Q(o, e);
|
|
75
75
|
if (t && Object.prototype.hasOwnProperty.call(t, n))
|
|
76
76
|
return t[n];
|
|
77
77
|
}, dt = (o, e, t) => {
|
|
78
78
|
const n = ee(o, t);
|
|
79
79
|
return n !== void 0 ? n : ee(e, t);
|
|
80
|
-
},
|
|
80
|
+
}, Ve = (o, e, t) => {
|
|
81
81
|
for (const n in e)
|
|
82
|
-
n !== "__proto__" && n !== "constructor" && (n in o ? m(o[n]) || o[n] instanceof String || m(e[n]) || e[n] instanceof String ? t && (o[n] = e[n]) :
|
|
82
|
+
n !== "__proto__" && n !== "constructor" && (n in o ? m(o[n]) || o[n] instanceof String || m(e[n]) || e[n] instanceof String ? t && (o[n] = e[n]) : Ve(o[n], e[n], t) : o[n] = e[n]);
|
|
83
83
|
return o;
|
|
84
84
|
}, U = (o) => o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
85
85
|
var ht = {
|
|
@@ -91,7 +91,7 @@ var ht = {
|
|
|
91
91
|
"/": "/"
|
|
92
92
|
};
|
|
93
93
|
const ft = (o) => m(o) ? o.replace(/[&<>"'\/]/g, (e) => ht[e]) : o;
|
|
94
|
-
class
|
|
94
|
+
class gt {
|
|
95
95
|
constructor(e) {
|
|
96
96
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
97
97
|
}
|
|
@@ -103,9 +103,9 @@ class pt {
|
|
|
103
103
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
const
|
|
106
|
+
const pt = [" ", ",", "?", "!", ";"], mt = new gt(20), yt = (o, e, t) => {
|
|
107
107
|
e = e || "", t = t || "";
|
|
108
|
-
const n =
|
|
108
|
+
const n = pt.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
|
|
109
109
|
if (n.length === 0) return !0;
|
|
110
110
|
const i = mt.getRegExp(`(${n.map((r) => r === "?" ? "\\?" : r).join("|")})`);
|
|
111
111
|
let s = !i.test(o);
|
|
@@ -134,7 +134,7 @@ const gt = [" ", ",", "?", "!", ";"], mt = new pt(20), yt = (o, e, t) => {
|
|
|
134
134
|
i = r;
|
|
135
135
|
}
|
|
136
136
|
return i;
|
|
137
|
-
},
|
|
137
|
+
}, G = (o) => o == null ? void 0 : o.replace("_", "-"), vt = {
|
|
138
138
|
type: "logger",
|
|
139
139
|
log(o) {
|
|
140
140
|
this.output("log", o);
|
|
@@ -173,7 +173,7 @@ class te {
|
|
|
173
173
|
return i && !this.debug ? null : (m(e[0]) && (e[0] = `${n}${this.prefix} ${e[0]}`), this.logger[t](e));
|
|
174
174
|
}
|
|
175
175
|
create(e) {
|
|
176
|
-
return new te(this.logger,
|
|
176
|
+
return new te(this.logger, p({
|
|
177
177
|
prefix: `${this.prefix}:${e}:`
|
|
178
178
|
}, this.options));
|
|
179
179
|
}
|
|
@@ -239,7 +239,7 @@ class Ce extends oe {
|
|
|
239
239
|
}) {
|
|
240
240
|
const r = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator;
|
|
241
241
|
let a = [e, t];
|
|
242
|
-
n && (a = a.concat(r ? n.split(r) : n)), e.indexOf(".") > -1 && (a = e.split("."), i = t, t = a[1]), this.addNamespaces(t),
|
|
242
|
+
n && (a = a.concat(r ? n.split(r) : n)), e.indexOf(".") > -1 && (a = e.split("."), i = t, t = a[1]), this.addNamespaces(t), ke(this.data, a, i), s.silent || this.emit("added", e, t, n, i);
|
|
243
243
|
}
|
|
244
244
|
addResources(e, t, n, i = {
|
|
245
245
|
silent: !1
|
|
@@ -257,7 +257,7 @@ class Ce extends oe {
|
|
|
257
257
|
let a = [e, t];
|
|
258
258
|
e.indexOf(".") > -1 && (a = e.split("."), i = n, n = t, t = a[1]), this.addNamespaces(t);
|
|
259
259
|
let c = ee(this.data, a) || {};
|
|
260
|
-
r.skipCopy || (n = JSON.parse(JSON.stringify(n))), i ?
|
|
260
|
+
r.skipCopy || (n = JSON.parse(JSON.stringify(n))), i ? Ve(c, n, s) : c = p(p({}, c), n), ke(this.data, a, c), r.silent || this.emit("added", e, t, n);
|
|
261
261
|
}
|
|
262
262
|
removeResourceBundle(e, t) {
|
|
263
263
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -291,7 +291,7 @@ var ze = {
|
|
|
291
291
|
}), e;
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
|
-
const
|
|
294
|
+
const we = {}, Te = (o) => !m(o) && typeof o != "boolean" && typeof o != "number";
|
|
295
295
|
class ne extends oe {
|
|
296
296
|
constructor(e, t = {}) {
|
|
297
297
|
super(), ct(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = I.create("translator");
|
|
@@ -302,7 +302,7 @@ class ne extends oe {
|
|
|
302
302
|
exists(e, t = {
|
|
303
303
|
interpolation: {}
|
|
304
304
|
}) {
|
|
305
|
-
const n =
|
|
305
|
+
const n = p({}, t);
|
|
306
306
|
if (e == null) return !1;
|
|
307
307
|
const i = this.resolve(e, n);
|
|
308
308
|
return (i == null ? void 0 : i.res) !== void 0;
|
|
@@ -329,8 +329,8 @@ class ne extends oe {
|
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
331
|
translate(e, t, n) {
|
|
332
|
-
let i = typeof t == "object" ?
|
|
333
|
-
if (typeof i != "object" && this.options.overloadTranslationOptionHandler && (i = this.options.overloadTranslationOptionHandler(arguments)), typeof options == "object" && (i =
|
|
332
|
+
let i = typeof t == "object" ? p({}, t) : t;
|
|
333
|
+
if (typeof i != "object" && this.options.overloadTranslationOptionHandler && (i = this.options.overloadTranslationOptionHandler(arguments)), typeof options == "object" && (i = p({}, i)), i || (i = {}), e == null) return "";
|
|
334
334
|
Array.isArray(e) || (e = [String(e)]);
|
|
335
335
|
const s = i.returnDetails !== void 0 ? i.returnDetails : this.options.returnDetails, r = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator, {
|
|
336
336
|
key: a,
|
|
@@ -338,9 +338,9 @@ class ne extends oe {
|
|
|
338
338
|
} = this.extractFromKey(e[e.length - 1], i), l = c[c.length - 1];
|
|
339
339
|
let d = i.nsSeparator !== void 0 ? i.nsSeparator : this.options.nsSeparator;
|
|
340
340
|
d === void 0 && (d = ":");
|
|
341
|
-
const u = i.lng || this.language,
|
|
341
|
+
const u = i.lng || this.language, g = i.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
342
342
|
if ((u == null ? void 0 : u.toLowerCase()) === "cimode")
|
|
343
|
-
return
|
|
343
|
+
return g ? s ? {
|
|
344
344
|
res: `${l}${d}${a}`,
|
|
345
345
|
usedKey: a,
|
|
346
346
|
exactUsedKey: a,
|
|
@@ -357,80 +357,80 @@ class ne extends oe {
|
|
|
357
357
|
} : a;
|
|
358
358
|
const f = this.resolve(e, i);
|
|
359
359
|
let h = f == null ? void 0 : f.res;
|
|
360
|
-
const y = (f == null ? void 0 : f.usedKey) || a, v = (f == null ? void 0 : f.exactUsedKey) || a,
|
|
360
|
+
const y = (f == null ? void 0 : f.usedKey) || a, v = (f == null ? void 0 : f.exactUsedKey) || a, w = ["[object Number]", "[object Function]", "[object RegExp]"], C = i.joinArrays !== void 0 ? i.joinArrays : this.options.joinArrays, D = !this.i18nFormat || this.i18nFormat.handleAsObject, x = i.count !== void 0 && !m(i.count), N = ne.hasDefaultValue(i), _ = x ? this.pluralResolver.getSuffix(u, i.count, i) : "", R = i.ordinal && x ? this.pluralResolver.getSuffix(u, i.count, {
|
|
361
361
|
ordinal: !1
|
|
362
|
-
}) : "",
|
|
362
|
+
}) : "", B = x && !i.ordinal && i.count === 0, P = B && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${_}`] || i[`defaultValue${R}`] || i.defaultValue;
|
|
363
363
|
let S = h;
|
|
364
|
-
|
|
365
|
-
const tt =
|
|
366
|
-
if (
|
|
364
|
+
D && !h && N && (S = P);
|
|
365
|
+
const tt = Te(S), nt = Object.prototype.toString.apply(S);
|
|
366
|
+
if (D && S && tt && w.indexOf(nt) < 0 && !(m(C) && Array.isArray(S))) {
|
|
367
367
|
if (!i.returnObjects && !this.options.returnObjects) {
|
|
368
368
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
369
|
-
const O = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(y, S, $(
|
|
369
|
+
const O = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(y, S, $(p({}, i), {
|
|
370
370
|
ns: c
|
|
371
371
|
})) : `key '${a} (${this.language})' returned an object instead of string.`;
|
|
372
372
|
return s ? (f.res = O, f.usedParams = this.getUsedParamsDetails(i), f) : O;
|
|
373
373
|
}
|
|
374
374
|
if (r) {
|
|
375
|
-
const O = Array.isArray(S),
|
|
375
|
+
const O = Array.isArray(S), T = O ? [] : {}, pe = O ? v : y;
|
|
376
376
|
for (const L in S)
|
|
377
377
|
if (Object.prototype.hasOwnProperty.call(S, L)) {
|
|
378
|
-
const F = `${
|
|
379
|
-
N && !h ?
|
|
380
|
-
defaultValue:
|
|
378
|
+
const F = `${pe}${r}${L}`;
|
|
379
|
+
N && !h ? T[L] = this.translate(F, $(p({}, i), {
|
|
380
|
+
defaultValue: Te(P) ? P[L] : void 0,
|
|
381
381
|
joinArrays: !1,
|
|
382
382
|
ns: c
|
|
383
|
-
})) :
|
|
383
|
+
})) : T[L] = this.translate(F, $(p({}, i), {
|
|
384
384
|
joinArrays: !1,
|
|
385
385
|
ns: c
|
|
386
|
-
})),
|
|
386
|
+
})), T[L] === F && (T[L] = S[L]);
|
|
387
387
|
}
|
|
388
|
-
h =
|
|
388
|
+
h = T;
|
|
389
389
|
}
|
|
390
|
-
} else if (
|
|
390
|
+
} else if (D && m(C) && Array.isArray(h))
|
|
391
391
|
h = h.join(C), h && (h = this.extendTranslation(h, e, i, n));
|
|
392
392
|
else {
|
|
393
|
-
let O = !1,
|
|
394
|
-
!this.isValidLookup(h) && N && (O = !0, h =
|
|
395
|
-
const L = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) &&
|
|
396
|
-
if (
|
|
397
|
-
if (this.logger.log(F ? "updateKey" : "missingKey", u, l, a, F ?
|
|
398
|
-
const
|
|
393
|
+
let O = !1, T = !1;
|
|
394
|
+
!this.isValidLookup(h) && N && (O = !0, h = P), this.isValidLookup(h) || (T = !0, h = a);
|
|
395
|
+
const L = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && T ? void 0 : h, F = N && P !== h && this.options.updateMissing;
|
|
396
|
+
if (T || O || F) {
|
|
397
|
+
if (this.logger.log(F ? "updateKey" : "missingKey", u, l, a, F ? P : h), r) {
|
|
398
|
+
const k = this.resolve(a, $(p({}, i), {
|
|
399
399
|
keySeparator: !1
|
|
400
400
|
}));
|
|
401
|
-
|
|
401
|
+
k && k.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
402
402
|
}
|
|
403
|
-
let
|
|
403
|
+
let q = [];
|
|
404
404
|
const J = this.languageUtils.getFallbackCodes(this.options.fallbackLng, i.lng || this.language);
|
|
405
405
|
if (this.options.saveMissingTo === "fallback" && J && J[0])
|
|
406
|
-
for (let
|
|
407
|
-
|
|
408
|
-
else this.options.saveMissingTo === "all" ?
|
|
409
|
-
const me = (
|
|
406
|
+
for (let k = 0; k < J.length; k++)
|
|
407
|
+
q.push(J[k]);
|
|
408
|
+
else this.options.saveMissingTo === "all" ? q = this.languageUtils.toResolveHierarchy(i.lng || this.language) : q.push(i.lng || this.language);
|
|
409
|
+
const me = (k, A, V) => {
|
|
410
410
|
var ve;
|
|
411
|
-
const ye = N &&
|
|
412
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
411
|
+
const ye = N && V !== h ? V : L;
|
|
412
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(k, l, A, ye, F, i) : (ve = this.backendConnector) != null && ve.saveMissing && this.backendConnector.saveMissing(k, l, A, ye, F, i), this.emit("missingKey", k, l, A, h);
|
|
413
413
|
};
|
|
414
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && x ?
|
|
415
|
-
const A = this.pluralResolver.getSuffixes(
|
|
416
|
-
|
|
417
|
-
me([
|
|
414
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && x ? q.forEach((k) => {
|
|
415
|
+
const A = this.pluralResolver.getSuffixes(k, i);
|
|
416
|
+
B && i[`defaultValue${this.options.pluralSeparator}zero`] && A.indexOf(`${this.options.pluralSeparator}zero`) < 0 && A.push(`${this.options.pluralSeparator}zero`), A.forEach((V) => {
|
|
417
|
+
me([k], a + V, i[`defaultValue${V}`] || P);
|
|
418
418
|
});
|
|
419
|
-
}) : me(
|
|
419
|
+
}) : me(q, a, P));
|
|
420
420
|
}
|
|
421
|
-
h = this.extendTranslation(h, e, i, f, n),
|
|
421
|
+
h = this.extendTranslation(h, e, i, f, n), T && h === a && this.options.appendNamespaceToMissingKey && (h = `${l}${d}${a}`), (T || O) && this.options.parseMissingKeyHandler && (h = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${d}${a}` : a, O ? h : void 0, i));
|
|
422
422
|
}
|
|
423
423
|
return s ? (f.res = h, f.usedParams = this.getUsedParamsDetails(i), f) : h;
|
|
424
424
|
}
|
|
425
425
|
extendTranslation(e, t, n, i, s) {
|
|
426
426
|
var c, l;
|
|
427
427
|
if ((c = this.i18nFormat) != null && c.parse)
|
|
428
|
-
e = this.i18nFormat.parse(e,
|
|
428
|
+
e = this.i18nFormat.parse(e, p(p({}, this.options.interpolation.defaultVariables), n), n.lng || this.language || i.usedLng, i.usedNS, i.usedKey, {
|
|
429
429
|
resolved: i
|
|
430
430
|
});
|
|
431
431
|
else if (!n.skipInterpolation) {
|
|
432
|
-
n.interpolation && this.interpolator.init($(
|
|
433
|
-
interpolation:
|
|
432
|
+
n.interpolation && this.interpolator.init($(p({}, n), {
|
|
433
|
+
interpolation: p(p({}, this.options.interpolation), n.interpolation)
|
|
434
434
|
}));
|
|
435
435
|
const d = m(e) && (((l = n == null ? void 0 : n.interpolation) == null ? void 0 : l.skipOnVariables) !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
436
436
|
let u;
|
|
@@ -438,16 +438,16 @@ class ne extends oe {
|
|
|
438
438
|
const f = e.match(this.interpolator.nestingRegexp);
|
|
439
439
|
u = f && f.length;
|
|
440
440
|
}
|
|
441
|
-
let
|
|
442
|
-
if (this.options.interpolation.defaultVariables && (
|
|
441
|
+
let g = n.replace && !m(n.replace) ? n.replace : n;
|
|
442
|
+
if (this.options.interpolation.defaultVariables && (g = p(p({}, this.options.interpolation.defaultVariables), g)), e = this.interpolator.interpolate(e, g, n.lng || this.language || i.usedLng, n), d) {
|
|
443
443
|
const f = e.match(this.interpolator.nestingRegexp), h = f && f.length;
|
|
444
444
|
u < h && (n.nest = !1);
|
|
445
445
|
}
|
|
446
446
|
!n.lng && i && i.res && (n.lng = this.language || i.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...f) => (s == null ? void 0 : s[0]) === f[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${t[0]}`), null) : this.translate(...f, t), n)), n.interpolation && this.interpolator.reset();
|
|
447
447
|
}
|
|
448
448
|
const r = n.postProcess || this.options.postProcess, a = m(r) ? [r] : r;
|
|
449
|
-
return e != null && (a != null && a.length) && n.applyPostProcessor !== !1 && (e = ze.handle(a, e, t, this.options && this.options.postProcessPassResolved ?
|
|
450
|
-
i18nResolved: $(
|
|
449
|
+
return e != null && (a != null && a.length) && n.applyPostProcessor !== !1 && (e = ze.handle(a, e, t, this.options && this.options.postProcessPassResolved ? p({
|
|
450
|
+
i18nResolved: $(p({}, i), {
|
|
451
451
|
usedParams: this.getUsedParamsDetails(n)
|
|
452
452
|
})
|
|
453
453
|
}, n) : n, this)), e;
|
|
@@ -460,28 +460,28 @@ class ne extends oe {
|
|
|
460
460
|
i = d;
|
|
461
461
|
let u = l.namespaces;
|
|
462
462
|
this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
|
|
463
|
-
const
|
|
463
|
+
const g = t.count !== void 0 && !m(t.count), f = g && !t.ordinal && t.count === 0, h = t.context !== void 0 && (m(t.context) || typeof t.context == "number") && t.context !== "", y = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
464
464
|
u.forEach((v) => {
|
|
465
|
-
var
|
|
466
|
-
this.isValidLookup(n) || (a = v, !
|
|
465
|
+
var w, C;
|
|
466
|
+
this.isValidLookup(n) || (a = v, !we[`${y[0]}-${v}`] && ((w = this.utils) != null && w.hasLoadedNamespace) && !((C = this.utils) != null && C.hasLoadedNamespace(a)) && (we[`${y[0]}-${v}`] = !0, this.logger.warn(`key "${i}" for languages "${y.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), y.forEach((D) => {
|
|
467
467
|
var _;
|
|
468
468
|
if (this.isValidLookup(n)) return;
|
|
469
|
-
r =
|
|
469
|
+
r = D;
|
|
470
470
|
const x = [d];
|
|
471
471
|
if ((_ = this.i18nFormat) != null && _.addLookupKeys)
|
|
472
|
-
this.i18nFormat.addLookupKeys(x, d,
|
|
472
|
+
this.i18nFormat.addLookupKeys(x, d, D, v, t);
|
|
473
473
|
else {
|
|
474
474
|
let R;
|
|
475
|
-
|
|
476
|
-
const
|
|
477
|
-
if (
|
|
475
|
+
g && (R = this.pluralResolver.getSuffix(D, t.count, t));
|
|
476
|
+
const B = `${this.options.pluralSeparator}zero`, P = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
477
|
+
if (g && (x.push(d + R), t.ordinal && R.indexOf(P) === 0 && x.push(d + R.replace(P, this.options.pluralSeparator)), f && x.push(d + B)), h) {
|
|
478
478
|
const S = `${d}${this.options.contextSeparator}${t.context}`;
|
|
479
|
-
x.push(S),
|
|
479
|
+
x.push(S), g && (x.push(S + R), t.ordinal && R.indexOf(P) === 0 && x.push(S + R.replace(P, this.options.pluralSeparator)), f && x.push(S + B));
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
let N;
|
|
483
483
|
for (; N = x.pop(); )
|
|
484
|
-
this.isValidLookup(n) || (s = N, n = this.getResource(
|
|
484
|
+
this.isValidLookup(n) || (s = N, n = this.getResource(D, v, N, t));
|
|
485
485
|
}));
|
|
486
486
|
});
|
|
487
487
|
}), {
|
|
@@ -502,8 +502,8 @@ class ne extends oe {
|
|
|
502
502
|
getUsedParamsDetails(e = {}) {
|
|
503
503
|
const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], n = e.replace && !m(e.replace);
|
|
504
504
|
let i = n ? e.replace : e;
|
|
505
|
-
if (n && typeof e.count != "undefined" && (i.count = e.count), this.options.interpolation.defaultVariables && (i =
|
|
506
|
-
i =
|
|
505
|
+
if (n && typeof e.count != "undefined" && (i.count = e.count), this.options.interpolation.defaultVariables && (i = p(p({}, this.options.interpolation.defaultVariables), i)), !n) {
|
|
506
|
+
i = p({}, i);
|
|
507
507
|
for (const s of t)
|
|
508
508
|
delete i[s];
|
|
509
509
|
}
|
|
@@ -522,12 +522,12 @@ class Oe {
|
|
|
522
522
|
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = I.create("languageUtils");
|
|
523
523
|
}
|
|
524
524
|
getScriptPartFromCode(e) {
|
|
525
|
-
if (e =
|
|
525
|
+
if (e = G(e), !e || e.indexOf("-") < 0) return null;
|
|
526
526
|
const t = e.split("-");
|
|
527
527
|
return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
|
|
528
528
|
}
|
|
529
529
|
getLanguagePartFromCode(e) {
|
|
530
|
-
if (e =
|
|
530
|
+
if (e = G(e), !e || e.indexOf("-") < 0) return e;
|
|
531
531
|
const t = e.split("-");
|
|
532
532
|
return this.formatLanguageCode(t[0]);
|
|
533
533
|
}
|
|
@@ -605,7 +605,7 @@ class bt {
|
|
|
605
605
|
this.pluralRulesCache = {};
|
|
606
606
|
}
|
|
607
607
|
getRule(e, t = {}) {
|
|
608
|
-
const n =
|
|
608
|
+
const n = G(e === "dev" ? "en" : e), i = t.ordinal ? "ordinal" : "cardinal", s = JSON.stringify({
|
|
609
609
|
cleanedCode: n,
|
|
610
610
|
type: i
|
|
611
611
|
});
|
|
@@ -665,15 +665,15 @@ class St {
|
|
|
665
665
|
formatSeparator: l,
|
|
666
666
|
unescapeSuffix: d,
|
|
667
667
|
unescapePrefix: u,
|
|
668
|
-
nestingPrefix:
|
|
668
|
+
nestingPrefix: g,
|
|
669
669
|
nestingPrefixEscaped: f,
|
|
670
670
|
nestingSuffix: h,
|
|
671
671
|
nestingSuffixEscaped: y,
|
|
672
672
|
nestingOptionsSeparator: v,
|
|
673
|
-
maxReplaces:
|
|
673
|
+
maxReplaces: w,
|
|
674
674
|
alwaysFormat: C
|
|
675
675
|
} = e.interpolation;
|
|
676
|
-
this.escape = t !== void 0 ? t : ft, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = s ? U(s) : r || "{{", this.suffix = a ? U(a) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = d ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : d || "", this.nestingPrefix =
|
|
676
|
+
this.escape = t !== void 0 ? t : ft, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = s ? U(s) : r || "{{", this.suffix = a ? U(a) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = d ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : d || "", this.nestingPrefix = g ? U(g) : f || U("$t("), this.nestingSuffix = h ? U(h) : y || U(")"), this.nestingOptionsSeparator = v || ",", this.maxReplaces = w || 1e3, this.alwaysFormat = C !== void 0 ? C : !1, this.resetRegExp();
|
|
677
677
|
}
|
|
678
678
|
reset() {
|
|
679
679
|
this.options && this.init(this.options);
|
|
@@ -688,12 +688,12 @@ class St {
|
|
|
688
688
|
const c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (h) => {
|
|
689
689
|
if (h.indexOf(this.formatSeparator) < 0) {
|
|
690
690
|
const C = Ne(t, c, h, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
691
|
-
return this.alwaysFormat ? this.format(C, void 0, n, $(
|
|
691
|
+
return this.alwaysFormat ? this.format(C, void 0, n, $(p(p({}, i), t), {
|
|
692
692
|
interpolationkey: h
|
|
693
693
|
})) : C;
|
|
694
694
|
}
|
|
695
|
-
const y = h.split(this.formatSeparator), v = y.shift().trim(),
|
|
696
|
-
return this.format(Ne(t, c, v, this.options.keySeparator, this.options.ignoreJSONStructure),
|
|
695
|
+
const y = h.split(this.formatSeparator), v = y.shift().trim(), w = y.join(this.formatSeparator).trim();
|
|
696
|
+
return this.format(Ne(t, c, v, this.options.keySeparator, this.options.ignoreJSONStructure), w, n, $(p(p({}, i), t), {
|
|
697
697
|
interpolationkey: v
|
|
698
698
|
}));
|
|
699
699
|
};
|
|
@@ -710,8 +710,8 @@ class St {
|
|
|
710
710
|
const y = s[1].trim();
|
|
711
711
|
if (r = l(y), r === void 0)
|
|
712
712
|
if (typeof d == "function") {
|
|
713
|
-
const
|
|
714
|
-
r = m(
|
|
713
|
+
const w = d(e, s, i);
|
|
714
|
+
r = m(w) ? w : "";
|
|
715
715
|
} else if (i && Object.prototype.hasOwnProperty.call(i, y))
|
|
716
716
|
r = "";
|
|
717
717
|
else if (u) {
|
|
@@ -733,23 +733,23 @@ class St {
|
|
|
733
733
|
const d = this.nestingOptionsSeparator;
|
|
734
734
|
if (c.indexOf(d) < 0) return c;
|
|
735
735
|
const u = c.split(new RegExp(`${d}[ ]*{`));
|
|
736
|
-
let
|
|
737
|
-
c = u[0],
|
|
738
|
-
const f =
|
|
739
|
-
(((y = f == null ? void 0 : f.length) != null ? y : 0) % 2 === 0 && !h || h.length % 2 !== 0) && (
|
|
736
|
+
let g = `{${u[1]}`;
|
|
737
|
+
c = u[0], g = this.interpolate(g, r);
|
|
738
|
+
const f = g.match(/'/g), h = g.match(/"/g);
|
|
739
|
+
(((y = f == null ? void 0 : f.length) != null ? y : 0) % 2 === 0 && !h || h.length % 2 !== 0) && (g = g.replace(/'/g, '"'));
|
|
740
740
|
try {
|
|
741
|
-
r = JSON.parse(
|
|
741
|
+
r = JSON.parse(g), l && (r = p(p({}, l), r));
|
|
742
742
|
} catch (v) {
|
|
743
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${c}`, v), `${c}${d}${
|
|
743
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${c}`, v), `${c}${d}${g}`;
|
|
744
744
|
}
|
|
745
745
|
return r.defaultValue && r.defaultValue.indexOf(this.prefix) > -1 && delete r.defaultValue, c;
|
|
746
746
|
};
|
|
747
747
|
for (; i = this.nestingRegexp.exec(e); ) {
|
|
748
748
|
let c = [];
|
|
749
|
-
r =
|
|
749
|
+
r = p({}, n), r = r.replace && !m(r.replace) ? r.replace : r, r.applyPostProcessor = !1, delete r.defaultValue;
|
|
750
750
|
const l = /{.*}/.test(i[1]) ? i[1].lastIndexOf("}") + 1 : i[1].indexOf(this.formatSeparator);
|
|
751
751
|
if (l !== -1 && (c = i[1].slice(l).split(this.formatSeparator).map((d) => d.trim()).filter(Boolean), i[1] = i[1].slice(0, l)), s = t(a.call(this, i[1].trim(), r), r), s && i[0] === e && !m(s)) return s;
|
|
752
|
-
m(s) || (s = xe(s)), s || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), s = ""), c.length && (s = c.reduce((d, u) => this.format(d, u, n.lng, $(
|
|
752
|
+
m(s) || (s = xe(s)), s || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), s = ""), c.length && (s = c.reduce((d, u) => this.format(d, u, n.lng, $(p({}, n), {
|
|
753
753
|
interpolationkey: i[1].trim()
|
|
754
754
|
})), s.trim())), e = e.replace(i[0], s), this.regexp.lastIndex = 0;
|
|
755
755
|
}
|
|
@@ -778,15 +778,15 @@ const xt = (o) => {
|
|
|
778
778
|
const e = {};
|
|
779
779
|
return (t, n, i) => {
|
|
780
780
|
let s = i;
|
|
781
|
-
i && i.interpolationkey && i.formatParams && i.formatParams[i.interpolationkey] && i[i.interpolationkey] && (s = $(
|
|
781
|
+
i && i.interpolationkey && i.formatParams && i.formatParams[i.interpolationkey] && i[i.interpolationkey] && (s = $(p({}, s), {
|
|
782
782
|
[i.interpolationkey]: void 0
|
|
783
783
|
}));
|
|
784
784
|
const r = n + JSON.stringify(s);
|
|
785
785
|
let a = e[r];
|
|
786
|
-
return a || (a = o(
|
|
786
|
+
return a || (a = o(G(n), i), e[r] = a), a(t);
|
|
787
787
|
};
|
|
788
|
-
}, $t = (o) => (e, t, n) => o(
|
|
789
|
-
class
|
|
788
|
+
}, $t = (o) => (e, t, n) => o(G(t), n)(e);
|
|
789
|
+
class Pt {
|
|
790
790
|
constructor(e = {}) {
|
|
791
791
|
this.logger = I.create("formatter"), this.options = e, this.init(e);
|
|
792
792
|
}
|
|
@@ -797,25 +797,25 @@ class wt {
|
|
|
797
797
|
const n = t.cacheInBuiltFormats ? Re : $t;
|
|
798
798
|
this.formats = {
|
|
799
799
|
number: n((i, s) => {
|
|
800
|
-
const r = new Intl.NumberFormat(i,
|
|
800
|
+
const r = new Intl.NumberFormat(i, p({}, s));
|
|
801
801
|
return (a) => r.format(a);
|
|
802
802
|
}),
|
|
803
803
|
currency: n((i, s) => {
|
|
804
|
-
const r = new Intl.NumberFormat(i, $(
|
|
804
|
+
const r = new Intl.NumberFormat(i, $(p({}, s), {
|
|
805
805
|
style: "currency"
|
|
806
806
|
}));
|
|
807
807
|
return (a) => r.format(a);
|
|
808
808
|
}),
|
|
809
809
|
datetime: n((i, s) => {
|
|
810
|
-
const r = new Intl.DateTimeFormat(i,
|
|
810
|
+
const r = new Intl.DateTimeFormat(i, p({}, s));
|
|
811
811
|
return (a) => r.format(a);
|
|
812
812
|
}),
|
|
813
813
|
relativetime: n((i, s) => {
|
|
814
|
-
const r = new Intl.RelativeTimeFormat(i,
|
|
814
|
+
const r = new Intl.RelativeTimeFormat(i, p({}, s));
|
|
815
815
|
return (a) => r.format(a, s.range || "day");
|
|
816
816
|
}),
|
|
817
817
|
list: n((i, s) => {
|
|
818
|
-
const r = new Intl.ListFormat(i,
|
|
818
|
+
const r = new Intl.ListFormat(i, p({}, s));
|
|
819
819
|
return (a) => r.format(a);
|
|
820
820
|
})
|
|
821
821
|
};
|
|
@@ -839,21 +839,21 @@ class wt {
|
|
|
839
839
|
formatOptions: d
|
|
840
840
|
} = xt(c);
|
|
841
841
|
if (this.formats[l]) {
|
|
842
|
-
let
|
|
842
|
+
let g = a;
|
|
843
843
|
try {
|
|
844
844
|
const f = ((u = i == null ? void 0 : i.formatParams) == null ? void 0 : u[i.interpolationkey]) || {}, h = f.locale || f.lng || i.locale || i.lng || n;
|
|
845
|
-
|
|
845
|
+
g = this.formats[l](a, h, p(p(p({}, d), i), f));
|
|
846
846
|
} catch (f) {
|
|
847
847
|
this.logger.warn(f);
|
|
848
848
|
}
|
|
849
|
-
return
|
|
849
|
+
return g;
|
|
850
850
|
} else
|
|
851
851
|
this.logger.warn(`there was no format function for ${l}`);
|
|
852
852
|
return a;
|
|
853
853
|
}, e);
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
|
-
const
|
|
856
|
+
const kt = (o, e) => {
|
|
857
857
|
o.pending[e] !== void 0 && (delete o.pending[e], o.pendingCount--);
|
|
858
858
|
};
|
|
859
859
|
class Ct extends oe {
|
|
@@ -866,8 +866,8 @@ class Ct extends oe {
|
|
|
866
866
|
return e.forEach((l) => {
|
|
867
867
|
let d = !0;
|
|
868
868
|
t.forEach((u) => {
|
|
869
|
-
const
|
|
870
|
-
!n.reload && this.store.hasResourceBundle(l, u) ? this.state[
|
|
869
|
+
const g = `${l}|${u}`;
|
|
870
|
+
!n.reload && this.store.hasResourceBundle(l, u) ? this.state[g] = 2 : this.state[g] < 0 || (this.state[g] === 1 ? r[g] === void 0 && (r[g] = !0) : (this.state[g] = 1, d = !1, r[g] === void 0 && (r[g] = !0), s[g] === void 0 && (s[g] = !0), c[u] === void 0 && (c[u] = !0)));
|
|
871
871
|
}), d || (a[l] = !0);
|
|
872
872
|
}), (Object.keys(s).length || Object.keys(r).length) && this.queue.push({
|
|
873
873
|
pending: r,
|
|
@@ -889,7 +889,7 @@ class Ct extends oe {
|
|
|
889
889
|
}), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
|
|
890
890
|
const a = {};
|
|
891
891
|
this.queue.forEach((c) => {
|
|
892
|
-
ut(c.loaded, [s], r),
|
|
892
|
+
ut(c.loaded, [s], r), kt(c, e), t && c.errors.push(t), c.pendingCount === 0 && !c.done && (Object.keys(c.loaded).forEach((l) => {
|
|
893
893
|
a[l] || (a[l] = {});
|
|
894
894
|
const d = c.loaded[l];
|
|
895
895
|
d.length && d.forEach((u) => {
|
|
@@ -963,14 +963,14 @@ class Ct extends oe {
|
|
|
963
963
|
}
|
|
964
964
|
saveMissing(e, t, n, i, s, r = {}, a = () => {
|
|
965
965
|
}) {
|
|
966
|
-
var c, l, d, u,
|
|
966
|
+
var c, l, d, u, g;
|
|
967
967
|
if ((l = (c = this.services) == null ? void 0 : c.utils) != null && l.hasLoadedNamespace && !((u = (d = this.services) == null ? void 0 : d.utils) != null && u.hasLoadedNamespace(t))) {
|
|
968
968
|
this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
|
|
969
969
|
return;
|
|
970
970
|
}
|
|
971
971
|
if (!(n == null || n === "")) {
|
|
972
|
-
if ((
|
|
973
|
-
const f = $(
|
|
972
|
+
if ((g = this.backend) != null && g.create) {
|
|
973
|
+
const f = $(p({}, r), {
|
|
974
974
|
isUpdate: s
|
|
975
975
|
}), h = this.backend.create.bind(this.backend);
|
|
976
976
|
if (h.length < 6)
|
|
@@ -1044,20 +1044,20 @@ const Fe = () => ({
|
|
|
1044
1044
|
skipOnVariables: !0
|
|
1045
1045
|
},
|
|
1046
1046
|
cacheInBuiltFormats: !0
|
|
1047
|
-
}),
|
|
1047
|
+
}), De = (o) => {
|
|
1048
1048
|
var e, t;
|
|
1049
1049
|
return m(o.ns) && (o.ns = [o.ns]), m(o.fallbackLng) && (o.fallbackLng = [o.fallbackLng]), m(o.fallbackNS) && (o.fallbackNS = [o.fallbackNS]), ((t = (e = o.supportedLngs) == null ? void 0 : e.indexOf) == null ? void 0 : t.call(e, "cimode")) < 0 && (o.supportedLngs = o.supportedLngs.concat(["cimode"])), typeof o.initImmediate == "boolean" && (o.initAsync = o.initImmediate), o;
|
|
1050
1050
|
}, Y = () => {
|
|
1051
|
-
},
|
|
1051
|
+
}, wt = (o) => {
|
|
1052
1052
|
Object.getOwnPropertyNames(Object.getPrototypeOf(o)).forEach((t) => {
|
|
1053
1053
|
typeof o[t] == "function" && (o[t] = o[t].bind(o));
|
|
1054
1054
|
});
|
|
1055
1055
|
};
|
|
1056
|
-
class
|
|
1056
|
+
class W extends oe {
|
|
1057
1057
|
constructor(e = {}, t) {
|
|
1058
|
-
if (super(), this.options =
|
|
1058
|
+
if (super(), this.options = De(e), this.services = {}, this.logger = I, this.modules = {
|
|
1059
1059
|
external: []
|
|
1060
|
-
},
|
|
1060
|
+
}, wt(this), t && !this.isInitialized && !e.isClone) {
|
|
1061
1061
|
if (!this.options.initAsync)
|
|
1062
1062
|
return this.init(e, t), this;
|
|
1063
1063
|
setTimeout(() => {
|
|
@@ -1068,12 +1068,12 @@ class G extends oe {
|
|
|
1068
1068
|
init(e = {}, t) {
|
|
1069
1069
|
this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (m(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
|
|
1070
1070
|
const n = Fe();
|
|
1071
|
-
this.options =
|
|
1071
|
+
this.options = p(p(p({}, n), this.options), De(e)), this.options.interpolation = p(p({}, n.interpolation), this.options.interpolation), e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator);
|
|
1072
1072
|
const i = (l) => l ? typeof l == "function" ? new l() : l : null;
|
|
1073
1073
|
if (!this.options.isClone) {
|
|
1074
1074
|
this.modules.logger ? I.init(i(this.modules.logger), this.options) : I.init(null, this.options);
|
|
1075
1075
|
let l;
|
|
1076
|
-
this.modules.formatter ? l = this.modules.formatter : l =
|
|
1076
|
+
this.modules.formatter ? l = this.modules.formatter : l = Pt;
|
|
1077
1077
|
const d = new Oe(this.options);
|
|
1078
1078
|
this.store = new Ce(this.options.resources, this.options);
|
|
1079
1079
|
const u = this.services;
|
|
@@ -1161,8 +1161,8 @@ class G extends oe {
|
|
|
1161
1161
|
var d, u;
|
|
1162
1162
|
!e && !a && this.services.languageDetector && (a = []);
|
|
1163
1163
|
const c = m(a) ? a : a && a[0], l = this.store.hasLanguageSomeTranslations(c) ? c : this.services.languageUtils.getBestMatchFromCodes(m(a) ? [a] : a);
|
|
1164
|
-
l && (this.language || i(l), this.translator.language || this.translator.changeLanguage(l), (u = (d = this.services.languageDetector) == null ? void 0 : d.cacheUserLanguage) == null || u.call(d, l)), this.loadResources(l, (
|
|
1165
|
-
s(
|
|
1164
|
+
l && (this.language || i(l), this.translator.language || this.translator.changeLanguage(l), (u = (d = this.services.languageDetector) == null ? void 0 : d.cacheUserLanguage) == null || u.call(d, l)), this.loadResources(l, (g) => {
|
|
1165
|
+
s(g, l);
|
|
1166
1166
|
});
|
|
1167
1167
|
};
|
|
1168
1168
|
return !e && this.services.languageDetector && !this.services.languageDetector.async ? r(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(r) : this.services.languageDetector.detect(r) : r(e), n;
|
|
@@ -1170,7 +1170,7 @@ class G extends oe {
|
|
|
1170
1170
|
getFixedT(e, t, n) {
|
|
1171
1171
|
const i = (s, r, ...a) => {
|
|
1172
1172
|
let c;
|
|
1173
|
-
typeof r != "object" ? c = this.options.overloadTranslationOptionHandler([s, r].concat(a)) : c =
|
|
1173
|
+
typeof r != "object" ? c = this.options.overloadTranslationOptionHandler([s, r].concat(a)) : c = p({}, r), c.lng = c.lng || i.lng, c.lngs = c.lngs || i.lngs, c.ns = c.ns || i.ns, c.keyPrefix !== "" && (c.keyPrefix = c.keyPrefix || n || i.keyPrefix);
|
|
1174
1174
|
const l = this.options.keySeparator || ".";
|
|
1175
1175
|
let d;
|
|
1176
1176
|
return c.keyPrefix && Array.isArray(s) ? d = s.map((u) => `${c.keyPrefix}${l}${u}`) : d = c.keyPrefix ? `${c.keyPrefix}${l}${s}` : s, this.t(d, c);
|
|
@@ -1235,20 +1235,20 @@ class G extends oe {
|
|
|
1235
1235
|
return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(n.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
1236
1236
|
}
|
|
1237
1237
|
static createInstance(e = {}, t) {
|
|
1238
|
-
return new
|
|
1238
|
+
return new W(e, t);
|
|
1239
1239
|
}
|
|
1240
1240
|
cloneInstance(e = {}, t = Y) {
|
|
1241
1241
|
const n = e.forkResourceStore;
|
|
1242
1242
|
n && delete e.forkResourceStore;
|
|
1243
|
-
const i = $(
|
|
1243
|
+
const i = $(p(p({}, this.options), e), {
|
|
1244
1244
|
isClone: !0
|
|
1245
|
-
}), s = new
|
|
1245
|
+
}), s = new W(i);
|
|
1246
1246
|
if ((e.debug !== void 0 || e.prefix !== void 0) && (s.logger = s.logger.clone(e)), ["store", "services", "language"].forEach((a) => {
|
|
1247
1247
|
s[a] = this[a];
|
|
1248
|
-
}), s.services =
|
|
1248
|
+
}), s.services = p({}, this.services), s.services.utils = {
|
|
1249
1249
|
hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
|
|
1250
1250
|
}, n) {
|
|
1251
|
-
const a = Object.keys(this.store.data).reduce((c, l) => (c[l] =
|
|
1251
|
+
const a = Object.keys(this.store.data).reduce((c, l) => (c[l] = p({}, this.store.data[l]), c[l] = Object.keys(c[l]).reduce((d, u) => (d[u] = p({}, c[l][u]), d), c[l]), c), {});
|
|
1252
1252
|
s.store = new Ce(a, i), s.services.resourceStore = s.store;
|
|
1253
1253
|
}
|
|
1254
1254
|
return s.translator = new ne(s.services, i), s.translator.on("*", (a, ...c) => {
|
|
@@ -1267,8 +1267,8 @@ class G extends oe {
|
|
|
1267
1267
|
};
|
|
1268
1268
|
}
|
|
1269
1269
|
}
|
|
1270
|
-
const b =
|
|
1271
|
-
b.createInstance =
|
|
1270
|
+
const b = W.createInstance();
|
|
1271
|
+
b.createInstance = W.createInstance;
|
|
1272
1272
|
b.createInstance;
|
|
1273
1273
|
b.dir;
|
|
1274
1274
|
b.init;
|
|
@@ -1283,363 +1283,401 @@ b.setDefaultNamespace;
|
|
|
1283
1283
|
b.hasLoadedNamespace;
|
|
1284
1284
|
b.loadNamespaces;
|
|
1285
1285
|
b.loadLanguages;
|
|
1286
|
-
const
|
|
1287
|
-
accountName:
|
|
1286
|
+
const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I agree with", Nt = "and", Rt = "Back", Ft = "Back ID Card", Dt = "Bank Name", Et = "Beneficiary Bank", At = "Business Registration License", jt = "Cancel", Ut = "Cancel Transaction", Mt = "Close", Ht = "C (With tax authority code)", Kt = "K (Without code)", Bt = "C: With tax authority code, K: Without code", qt = "Coming Soon", Vt = "Unit Name", zt = "Complete your payment within", Qt = "Complete registration", Gt = "Confirm", Wt = "Important Notice:", Xt = "3. Contact Person Information:", _t = "Copy", Jt = "Country", Yt = "2 custom characters (default: YY)", Zt = "Custom quantity", en = "Date of Birth", tn = "Decrease", nn = "Digital Signature Package", on = "District", sn = "Duration", rn = "E-Contract", an = "Edit", cn = "e-invoices", ln = "Email", un = "Enter ID Card Number", dn = "Enter Invoice Symbol", hn = "Enter Passport Number", fn = "Enter Provider Name", gn = "Enter Tax Authority Code", pn = "Failed to check customer status", mn = "Failed to create order", yn = "Error fetching tax information.", vn = "File format not supported", bn = "File size is too large", Sn = "Access denied", xn = "Address cannot contain special characters", $n = "Invalid ID card", Pn = "Invalid date of birth", kn = "Invalid email address", Cn = "Invalid ID card number", wn = "Only letters, numbers and underscores allowed", Tn = "Invalid phone number", On = "Invalid provider name", Ln = "Invalid request", In = "Invalid tax authority code", Nn = "Invalid tax code", Rn = "Failed to load data", Fn = "Failed to load registration packages", Dn = "Failed to load invoice packages", En = "Failed to load signature packages", An = "Network connection error", jn = "Data not found", Un = "Unable to check order status. Please try again.", Mn = "Unable to generate QR payment code. Please try again.", Hn = "This field is required", Kn = "Failed to search packages", Bn = "Server error, please try again later", qn = "Service temporarily unavailable", Vn = "Too many requests, please try again later", zn = "Unauthorized access", Qn = "An error occurred", Gn = "Invalid data", Wn = "Female", Xn = "Format", _n = "Front ID Card", Jn = "Full Name", Yn = "Gender", Zn = "Have you used e-invoices?", ei = "Are you using another e-invoice provider other than M-invoice?", ti = "(Free Consulting and Support Hotline)", ni = "Hotline:", ii = "ID Card Number", oi = "Increase", si = "Information sent to the provider", ri = "Invoice Package", ai = "Invoice Symbol", ci = "Invoice Template", li = { 1: "1 (VAT Invoice)", 2: "2 (Sales Invoice)", 3: "3 (Public Asset Sales)", 4: "4 (National Reserve Sales)", 5: "5 (Stamps, Tickets, Other Cards)", 6: "6 (Internal Documents)", 7: "7 (Commercial Invoice)", 8: "8 (VAT with Integrated Tax)", 9: "9 (Sales with Integrated Tax)" }, ui = "B (Agent)", di = "D (Asset)", hi = "G (VAT Stamp)", fi = "H (Sales Stamp)", gi = "L (Tax Authority)", pi = "M (Cash Register)", mi = "N (Internal)", yi = "T (Registration)", vi = "Invoice type", bi = "X (Commercial)", Si = "4. E-INVOICE USAGE INFORMATION:", xi = "invoices/month", $i = "2. Legal Representative Information:", Pi = "Please check and enter the correct legal representative name according to the uploaded business license.", ki = "Loading...", Ci = "Male", wi = "Max 500KB", Ti = "Month", Oi = "Most Suitable Package", Li = "Continue", Ii = "No data available", Ni = "No package found.", Ri = "Please check your email inbox regularly to receive account information notifications from the provider.", Fi = "If you have not received the email account information (username/password) within 2 hours, please contact the information below for the fastest support:", Di = "of", Ei = "OK", Ai = "Optional", ji = "or", Ui = "Order created successfully", Mi = "Order has expired", Hi = "Order Information", Ki = "Order Summary", Bi = "Organization Registration Certificate", qi = "Passport", Vi = "Payment Amount", zi = "Payment Failed", Qi = ["Open your banking app or digital wallet on your phone", "Select the QR Code scan feature in the app", "Scan the QR code on this page and make payment"], Gi = "QR Payment Instructions", Wi = "Payment Method:", Xi = "Payment Successful!", _i = "Payment timeout", Ji = "Payment timeout! Please try again.", Yi = "Payment", Zi = "Permanent address", eo = "Phone Number", to = "Product", no = "Provider", io = "Provider Name", oo = "Province/City", so = "QR Code Payment", ro = "Scan QR Code to Pay", ao = "Quantity", co = "Registration Fee", lo = "Required", uo = "Return Home", ho = "Return to step 1", fo = "Invoice template number (1-9)", go = "Save", po = "Units per month", mo = "Select File", yo = "Select E-Invoice Package", vo = "Select Provider", bo = "Select Digital Signature Package", So = "Select Subscription Package", xo = "Selected Products", $o = "Settings", Po = "Digital Signature Package", ko = "E-invoice software license", Co = "Information", wo = "Confirmation & Payment", To = "Invoice Package", Oo = "Subscription Package", Lo = "Tax Authority", Io = "5 characters issued by the Authority for cash register bills", No = "Unit Tax Code", Ro = "Terms and Usage Policy", Fo = "Time Left", Do = "Total", Eo = "Total Amount", Ao = "Total Price", jo = "Transaction has been canceled. Returning to registration page.", Uo = "Unit", Mo = "1. Unit Information", Ho = "units/month", Ko = "Unit Price", Bo = "units/ month", qo = "Upload Back ID Card", Vo = "Upload File", zo = "Upload Front ID Card", Qo = "Upload Logo", Go = "Usage Policy", Wo = "Ward", Xo = "Website", _o = "E-Invoice Registration", Jo = "Release year (last 2 digits)", Yo = {
|
|
1287
|
+
accountName: Tt,
|
|
1288
1288
|
accountNumber: Ot,
|
|
1289
1289
|
address: Lt,
|
|
1290
1290
|
agreeWith: It,
|
|
1291
1291
|
and: Nt,
|
|
1292
1292
|
back: Rt,
|
|
1293
1293
|
backIdCard: Ft,
|
|
1294
|
-
bankName:
|
|
1295
|
-
beneficiaryBank:
|
|
1294
|
+
bankName: Dt,
|
|
1295
|
+
beneficiaryBank: Et,
|
|
1296
1296
|
businessLicense: At,
|
|
1297
1297
|
cancel: jt,
|
|
1298
1298
|
cancelTransaction: Ut,
|
|
1299
1299
|
close: Mt,
|
|
1300
1300
|
codeTypeC: Ht,
|
|
1301
|
-
codeTypeK:
|
|
1302
|
-
codeTypeTooltip:
|
|
1303
|
-
comingSoon:
|
|
1304
|
-
companyName:
|
|
1301
|
+
codeTypeK: Kt,
|
|
1302
|
+
codeTypeTooltip: Bt,
|
|
1303
|
+
comingSoon: qt,
|
|
1304
|
+
companyName: Vt,
|
|
1305
1305
|
completePaymentIn: zt,
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1306
|
+
completeRegistration: Qt,
|
|
1307
|
+
confirm: Gt,
|
|
1308
|
+
confirmationTitle: Wt,
|
|
1309
|
+
contactInfo: Xt,
|
|
1310
|
+
copy: _t,
|
|
1311
|
+
country: Jt,
|
|
1312
|
+
customLettersTooltip: Yt,
|
|
1313
|
+
customUnits: Zt,
|
|
1314
|
+
dateOfBirth: en,
|
|
1315
|
+
decrease: tn,
|
|
1315
1316
|
delete: "Delete",
|
|
1316
|
-
digitalSignaturePackage:
|
|
1317
|
-
district:
|
|
1318
|
-
duration:
|
|
1319
|
-
eContractTitle:
|
|
1320
|
-
edit:
|
|
1321
|
-
electronicInvoices:
|
|
1322
|
-
email:
|
|
1323
|
-
enterIdCard:
|
|
1324
|
-
enterInvoiceSymbol:
|
|
1325
|
-
enterPassport:
|
|
1326
|
-
enterProviderName:
|
|
1327
|
-
enterTaxAuthorityCode:
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1317
|
+
digitalSignaturePackage: nn,
|
|
1318
|
+
district: on,
|
|
1319
|
+
duration: sn,
|
|
1320
|
+
eContractTitle: rn,
|
|
1321
|
+
edit: an,
|
|
1322
|
+
electronicInvoices: cn,
|
|
1323
|
+
email: ln,
|
|
1324
|
+
enterIdCard: un,
|
|
1325
|
+
enterInvoiceSymbol: dn,
|
|
1326
|
+
enterPassport: hn,
|
|
1327
|
+
enterProviderName: fn,
|
|
1328
|
+
enterTaxAuthorityCode: gn,
|
|
1329
|
+
errorCheckingCustomer: pn,
|
|
1330
|
+
errorCreatingOrder: mn,
|
|
1331
|
+
errorFetchTaxInfo: yn,
|
|
1332
|
+
errorFileFormat: vn,
|
|
1333
|
+
errorFileSize: bn,
|
|
1334
|
+
errorForbidden: Sn,
|
|
1335
|
+
errorInvalidAddress: xn,
|
|
1336
|
+
errorInvalidCard: $n,
|
|
1337
|
+
errorInvalidDate: Pn,
|
|
1338
|
+
errorInvalidEmail: kn,
|
|
1339
|
+
errorInvalidIdCard: Cn,
|
|
1340
|
+
errorInvalidName: wn,
|
|
1341
|
+
errorInvalidPhone: Tn,
|
|
1342
|
+
errorInvalidProviderName: On,
|
|
1343
|
+
errorInvalidRequest: Ln,
|
|
1344
|
+
errorInvalidTaxAuthorityCode: In,
|
|
1345
|
+
errorInvalidTaxCode: Nn,
|
|
1346
|
+
errorLoadingData: Rn,
|
|
1347
|
+
errorLoadingInitPackages: Fn,
|
|
1348
|
+
errorLoadingInvoicePackages: Dn,
|
|
1349
|
+
errorLoadingSignaturePackages: En,
|
|
1350
|
+
errorNetwork: An,
|
|
1351
|
+
errorNotFound: jn,
|
|
1352
|
+
errorOrderStatus: Un,
|
|
1353
|
+
errorQRGeneration: Mn,
|
|
1354
|
+
errorRequired: Hn,
|
|
1355
|
+
errorSearchingPackages: Kn,
|
|
1356
|
+
errorServer: Bn,
|
|
1357
|
+
errorServiceUnavailable: qn,
|
|
1358
|
+
errorTooManyRequests: Vn,
|
|
1359
|
+
errorUnauthorized: zn,
|
|
1360
|
+
errorUnknown: Qn,
|
|
1361
|
+
errorValidation: Gn,
|
|
1362
|
+
female: Wn,
|
|
1363
|
+
fileFormat: Xn,
|
|
1364
|
+
frontIdCard: _n,
|
|
1365
|
+
fullName: Jn,
|
|
1366
|
+
gender: Yn,
|
|
1367
|
+
hasUsedEInvoice: Zn,
|
|
1368
|
+
hasUsedEInvoiceBefore: ei,
|
|
1369
|
+
hotlineDesc: ti,
|
|
1370
|
+
hotlineDomestic: ni,
|
|
1371
|
+
idNumber: ii,
|
|
1372
|
+
increase: oi,
|
|
1373
|
+
informationSent: si,
|
|
1374
|
+
invoicePackage: ri,
|
|
1375
|
+
invoiceSymbol: ai,
|
|
1376
|
+
invoiceTemplate: ci,
|
|
1377
|
+
invoiceTemplateTypes: li,
|
|
1378
|
+
invoiceTypeB: ui,
|
|
1379
|
+
invoiceTypeD: di,
|
|
1380
|
+
invoiceTypeG: hi,
|
|
1381
|
+
invoiceTypeH: fi,
|
|
1382
|
+
invoiceTypeL: gi,
|
|
1383
|
+
invoiceTypeM: pi,
|
|
1384
|
+
invoiceTypeN: mi,
|
|
1385
|
+
invoiceTypeT: yi,
|
|
1386
|
+
invoiceTypeTooltip: vi,
|
|
1387
|
+
invoiceTypeX: bi,
|
|
1388
|
+
invoiceUsageInfo: Si,
|
|
1389
|
+
invoicesPerMonth: xi,
|
|
1390
|
+
legalRepInfo: $i,
|
|
1391
|
+
legalRepNote: Pi,
|
|
1392
|
+
loading: ki,
|
|
1393
|
+
male: Ci,
|
|
1394
|
+
maxFileSize: wi,
|
|
1395
|
+
month: Ti,
|
|
1396
|
+
mostSuitablePackage: Oi,
|
|
1397
|
+
next: Li,
|
|
1398
|
+
noDataAvailable: Ii,
|
|
1399
|
+
noPackageFound: Ni,
|
|
1400
|
+
notice1: Ri,
|
|
1401
|
+
notice2: Fi,
|
|
1382
1402
|
"notice3.1": "After being granted an account, please go to the Link",
|
|
1383
1403
|
"notice3.2": "to connect and use the service HDDT",
|
|
1384
|
-
of:
|
|
1385
|
-
ok:
|
|
1386
|
-
optional:
|
|
1387
|
-
or:
|
|
1388
|
-
orderCreated:
|
|
1389
|
-
orderExpired:
|
|
1390
|
-
orderInfo:
|
|
1391
|
-
orderSummary:
|
|
1392
|
-
organizationCert:
|
|
1404
|
+
of: Di,
|
|
1405
|
+
ok: Ei,
|
|
1406
|
+
optional: Ai,
|
|
1407
|
+
or: ji,
|
|
1408
|
+
orderCreated: Ui,
|
|
1409
|
+
orderExpired: Mi,
|
|
1410
|
+
orderInfo: Hi,
|
|
1411
|
+
orderSummary: Ki,
|
|
1412
|
+
organizationCert: Bi,
|
|
1393
1413
|
package: "Package",
|
|
1394
|
-
passport:
|
|
1395
|
-
paymentAmount:
|
|
1396
|
-
paymentFailed:
|
|
1397
|
-
paymentInstructions:
|
|
1398
|
-
paymentInstructionsTitle:
|
|
1399
|
-
paymentMethod:
|
|
1400
|
-
paymentSuccess:
|
|
1401
|
-
paymentTimeout:
|
|
1402
|
-
paymentTimeoutMessage:
|
|
1403
|
-
paymentTitle:
|
|
1404
|
-
permanentAddress:
|
|
1405
|
-
phone:
|
|
1406
|
-
product:
|
|
1407
|
-
provider:
|
|
1408
|
-
providerName:
|
|
1409
|
-
province:
|
|
1410
|
-
qrPayment:
|
|
1411
|
-
qrPaymentTitle:
|
|
1412
|
-
quantity:
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
confirm:
|
|
1478
|
-
confirmationTitle:
|
|
1479
|
-
contactInfo:
|
|
1480
|
-
copy:
|
|
1481
|
-
country:
|
|
1482
|
-
customLettersTooltip:
|
|
1483
|
-
customUnits:
|
|
1484
|
-
dateOfBirth:
|
|
1485
|
-
decrease:
|
|
1414
|
+
passport: qi,
|
|
1415
|
+
paymentAmount: Vi,
|
|
1416
|
+
paymentFailed: zi,
|
|
1417
|
+
paymentInstructions: Qi,
|
|
1418
|
+
paymentInstructionsTitle: Gi,
|
|
1419
|
+
paymentMethod: Wi,
|
|
1420
|
+
paymentSuccess: Xi,
|
|
1421
|
+
paymentTimeout: _i,
|
|
1422
|
+
paymentTimeoutMessage: Ji,
|
|
1423
|
+
paymentTitle: Yi,
|
|
1424
|
+
permanentAddress: Zi,
|
|
1425
|
+
phone: eo,
|
|
1426
|
+
product: to,
|
|
1427
|
+
provider: no,
|
|
1428
|
+
providerName: io,
|
|
1429
|
+
province: oo,
|
|
1430
|
+
qrPayment: so,
|
|
1431
|
+
qrPaymentTitle: ro,
|
|
1432
|
+
quantity: ao,
|
|
1433
|
+
registrationFee: co,
|
|
1434
|
+
required: lo,
|
|
1435
|
+
returnHome: uo,
|
|
1436
|
+
returnToStep1: ho,
|
|
1437
|
+
sampleNumberTooltip: fo,
|
|
1438
|
+
save: go,
|
|
1439
|
+
searchUnits: po,
|
|
1440
|
+
selectFile: mo,
|
|
1441
|
+
selectInvoicePackage: yo,
|
|
1442
|
+
selectProvider: vo,
|
|
1443
|
+
selectSignaturePackage: bo,
|
|
1444
|
+
selectSubscriptionPackage: So,
|
|
1445
|
+
selectedProducts: xo,
|
|
1446
|
+
settings: $o,
|
|
1447
|
+
signaturePackage: Po,
|
|
1448
|
+
softwareLicense: ko,
|
|
1449
|
+
stepInfo: Co,
|
|
1450
|
+
stepPayment: wo,
|
|
1451
|
+
stepPlan: To,
|
|
1452
|
+
subscriptionPackage: Oo,
|
|
1453
|
+
taxAuthority: Lo,
|
|
1454
|
+
taxAuthorityCode: Io,
|
|
1455
|
+
taxCode: No,
|
|
1456
|
+
termsAndUsagePolicy: Ro,
|
|
1457
|
+
timeLeft: Fo,
|
|
1458
|
+
total: Do,
|
|
1459
|
+
totalAmount: Eo,
|
|
1460
|
+
totalPrice: Ao,
|
|
1461
|
+
transactionCanceled: jo,
|
|
1462
|
+
unit: Uo,
|
|
1463
|
+
unitInfo: Mo,
|
|
1464
|
+
unitPerMonth: Ho,
|
|
1465
|
+
unitPrice: Ko,
|
|
1466
|
+
unitsPerMonth: Bo,
|
|
1467
|
+
uploadBackId: qo,
|
|
1468
|
+
uploadFile: Vo,
|
|
1469
|
+
uploadFrontId: zo,
|
|
1470
|
+
uploadLogo: Qo,
|
|
1471
|
+
usagePolicy: Go,
|
|
1472
|
+
ward: Wo,
|
|
1473
|
+
website: Xo,
|
|
1474
|
+
widgetTitle: _o,
|
|
1475
|
+
yearTooltip: Jo
|
|
1476
|
+
}, Zo = "Tên tài khoản", es = "Số tài khoản", ts = "Địa chỉ đơn vị", ns = "Tôi đồng ý với", is = "và", os = "Quay lại", ss = "Mặt sau CCCD", rs = "Ngân hàng", as = "Ngân hàng thụ hưởng", cs = "Giấy phép đăng ký kinh doanh", ls = "Hủy", us = "Hủy giao dịch", ds = "Đóng", hs = "C (Có mã CQT)", fs = "K (Không mã)", gs = "C: Có mã CQT, K: Không mã", ps = "Sắp ra mắt", ms = "Tên đơn vị", ys = "Hoàn tất thanh toán của bạn trong", vs = "Hoàn tất đăng ký", bs = "Xác nhận", Ss = "Thông tin lưu ý:", xs = "3. Thông tin người liên hệ:", $s = "Bản", Ps = "Quốc gia", ks = "2 ký tự tùy chọn (mặc định: YY)", Cs = "Số lượng tùy chỉnh", ws = "Ngày sinh", Ts = "Giảm", Os = "Gói chữ ký số", Ls = "Quận/Huyện", Is = "Thời hạn", Ns = "E-Contract", Rs = "Chỉnh sửa", Fs = "hóa đơn điện tử", Ds = "Email", Es = "Nhập số CMND/CCCD", As = "Nhập ký hiệu hóa đơn", js = "Nhập số hộ chiếu", Us = "Nhập tên nhà cung cấp", Ms = "Nhập mã CQT cấp", Hs = "Không thể kiểm tra trạng thái khách hàng", Ks = "Không thể tạo đơn hàng", Bs = "Lỗi khi lấy thông tin mã số thuế.", qs = "Định dạng tệp không được hỗ trợ", Vs = "Kích thước tệp quá lớn", zs = "Truy cập bị từ chối", Qs = "Địa chỉ không được chứa ký tự đặc biệt", Gs = "CCCD không hợp lệ", Ws = "Ngày sinh không hợp lệ", Xs = "Email không hợp lệ", _s = "Số CCCD không hợp lệ", Js = "Chỉ được dùng chữ cái, số và dấu gạch dưới", Ys = "Số điện thoại không hợp lệ", Zs = "Tên nhà cung cấp không hợp lệ", er = "Yêu cầu không hợp lệ", tr = "Mã CQT cấp không hợp lệ", nr = "Mã số thuế không hợp lệ", ir = "Không thể tải dữ liệu", or = "Không thể tải gói đăng ký", sr = "Không thể tải gói hóa đơn", rr = "Không thể tải gói chữ ký số", ar = "Lỗi kết nối mạng", cr = "Không tìm thấy dữ liệu", lr = "Không thể kiểm tra trạng thái đơn hàng. Vui lòng thử lại.", ur = "Không thể tạo mã QR thanh toán. Vui lòng thử lại.", dr = "Trường này là bắt buộc", hr = "Không thể tìm kiếm gói", fr = "Lỗi máy chủ, vui lòng thử lại sau", gr = "Dịch vụ tạm thời không khả dụng", pr = "Quá nhiều yêu cầu, vui lòng thử lại sau", mr = "Không có quyền truy cập", yr = "Đã xảy ra lỗi", vr = "Dữ liệu không hợp lệ", br = "Nữ", Sr = "Định dạng", xr = "Mặt trước CCCD", $r = "Họ và tên", Pr = "Giới tính", kr = "Bạn đã sử dụng hoá đơn điện tử?", Cr = "Bạn đang sử dụng nhà NCC hoá đơn điện tử khác M-invoice không?", wr = "(Tổng đài Tư vấn, Hỗ trợ miễn phí)", Tr = "Hotline:", Or = "CCCD", Lr = "Tăng", Ir = "Đã gửi thông tin sang nhà cung cấp", Nr = "Gói hóa đơn", Rr = "Ký hiệu hóa đơn", Fr = "Mẫu số", Dr = { 1: "1 (Hóa đơn GTGT)", 2: "2 (Hóa đơn bán hàng)", 3: "3 (Bán tài sản công)", 4: "4 (Bán dự trữ quốc gia)", 5: "5 (Tem, vé, thẻ khác)", 6: "6 (Chứng từ nội bộ)", 7: "7 (Hóa đơn thương mại)", 8: "8 (GTGT tích hợp thuế)", 9: "9 (Bán hàng tích hợp thuế)" }, Er = "B (Đại lý)", Ar = "D (Tài sản)", jr = "G (Tem GTGT)", Ur = "H (Tem bán hàng)", Mr = "L (CQT)", Hr = "M (Máy tính tiền)", Kr = "N (Nội bộ)", Br = "T (Đăng ký)", qr = "Loại hóa đơn", Vr = "X (Thương mại)", zr = "4. THÔNG TIN SỬ DỤNG HDDT:", Qr = "hóa đơn/tháng", Gr = "2. Thông tin người đại diện pháp luật:", Wr = "Vui lòng kiểm tra và nhập đúng tên người đại diện theo Giấy phép kinh doanh đã tải lên.", Xr = "Đang tải...", _r = "Nam", Jr = "Tối đa 500Kb", Yr = "Tháng", Zr = "Gói phù hợp nhất", ea = "Tiếp tục", ta = "Không có dữ liệu", na = "Không tìm thấy gói nào.", ia = "Vui lòng thường xuyên kiểm tra hợp thư Email nhận thông báo thông tin tài khoản từ nhà cung cấp", oa = "Trong vòng 2 giờ nếu chưa nhận được thông tin Email tài khoản (username/password). Bạn có thể liên hệ thông tin phía bên dưới để được hỗ trợ sớm nhất:", sa = "của", ra = "OK", aa = "Tùy chọn", ca = "hoặc", la = "Đơn hàng đã được tạo thành công", ua = "Đơn hàng đã hết hạn", da = "Thông tin đơn hàng", ha = "Tóm tắt đơn hàng", fa = "Giấy chứng nhận đăng ký doanh nghiệp", ga = "Hộ chiếu", pa = "Số tiền thanh toán", ma = "Thanh toán thất bại", ya = ["Mở ứng dụng Ngân hàng hoặc Ví điện tử trên điện thoại", "Trên ứng dụng chọn tính năng Quét mã QR", "Quét mã QR ở trang này và thanh toán"], va = "Hướng dẫn thanh toán QR", ba = "Hình thức thanh toán:", Sa = "Thanh toán thành công!", xa = "Hết thời gian thanh toán", $a = "Hết thời gian thanh toán! Vui lòng thử lại.", Pa = "Thanh toán", ka = "Địa chỉ thường trú", Ca = "Số điện thoại", wa = "Sản phẩm", Ta = "Nhà cung cấp", Oa = "Tên NCC", La = "Tỉnh/Thành phố", Ia = "Thanh toán qua mã QR", Na = "Quét mã QR để thanh toán", Ra = "Số lượng", Fa = "Phí đăng ký", Da = "Bắt buộc", Ea = "Trở về trang chủ", Aa = "Quay lại bước 1", ja = "Mẫu số hóa đơn (1-9)", Ua = "Lưu", Ma = "Số đơn/tháng", Ha = "Chọn tệp", Ka = "Chọn gói hóa đơn điện tử", Ba = "Chọn nhà cung cấp", qa = "Chọn gói chữ ký số", Va = "Chọn gói đăng ký", za = "Sản phẩm đã chọn", Qa = "Thiết lập", Ga = "Gói chữ ký số", Wa = "Bản quyền phần mềm hóa đơn điện tử", Xa = "Thông Tin", _a = "Xác Nhận Và Thanh Toán", Ja = "Gói Hóa Đơn", Ya = "Gói đăng ký", Za = "CQT quản lý", ec = "5 ký tự do CQT cấp cho loại hóa đơn máy tính tiền", tc = "Mã số thuế đơn vị", nc = "Điều khoản và Chính sách sử dụng", ic = "Thời gian còn lại", oc = "Tổng cộng", sc = "Tổng tiền", rc = "Thành tiền", ac = "Giao dịch đã được hủy. Quay về trang đăng ký.", cc = "Đơn vị tính", lc = "1. Thông tin đơn vị", uc = "đơn/tháng", dc = "Đơn giá", hc = "đơn/ tháng", fc = "Tải lên mặt sau CCCD", gc = "Tải lên tệp", pc = "Tải lên mặt trước CCCD", mc = "Tải logo lên", yc = "Chính sách sử dụng", vc = "Phường/Xã", bc = "Website", Sc = "Đăng ký hóa đơn điện tử", xc = "Năm phát hành (2 chữ số cuối)", $c = {
|
|
1477
|
+
accountName: Zo,
|
|
1478
|
+
accountNumber: es,
|
|
1479
|
+
address: ts,
|
|
1480
|
+
agreeWith: ns,
|
|
1481
|
+
and: is,
|
|
1482
|
+
back: os,
|
|
1483
|
+
backIdCard: ss,
|
|
1484
|
+
bankName: rs,
|
|
1485
|
+
beneficiaryBank: as,
|
|
1486
|
+
businessLicense: cs,
|
|
1487
|
+
cancel: ls,
|
|
1488
|
+
cancelTransaction: us,
|
|
1489
|
+
close: ds,
|
|
1490
|
+
codeTypeC: hs,
|
|
1491
|
+
codeTypeK: fs,
|
|
1492
|
+
codeTypeTooltip: gs,
|
|
1493
|
+
comingSoon: ps,
|
|
1494
|
+
companyName: ms,
|
|
1495
|
+
completePaymentIn: ys,
|
|
1496
|
+
completeRegistration: vs,
|
|
1497
|
+
confirm: bs,
|
|
1498
|
+
confirmationTitle: Ss,
|
|
1499
|
+
contactInfo: xs,
|
|
1500
|
+
copy: $s,
|
|
1501
|
+
country: Ps,
|
|
1502
|
+
customLettersTooltip: ks,
|
|
1503
|
+
customUnits: Cs,
|
|
1504
|
+
dateOfBirth: ws,
|
|
1505
|
+
decrease: Ts,
|
|
1486
1506
|
delete: "Xóa",
|
|
1487
|
-
digitalSignaturePackage:
|
|
1488
|
-
district:
|
|
1489
|
-
duration:
|
|
1490
|
-
eContractTitle:
|
|
1491
|
-
edit:
|
|
1492
|
-
electronicInvoices:
|
|
1493
|
-
email:
|
|
1494
|
-
enterIdCard:
|
|
1495
|
-
enterInvoiceSymbol:
|
|
1496
|
-
enterPassport:
|
|
1497
|
-
enterProviderName:
|
|
1498
|
-
enterTaxAuthorityCode:
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1507
|
+
digitalSignaturePackage: Os,
|
|
1508
|
+
district: Ls,
|
|
1509
|
+
duration: Is,
|
|
1510
|
+
eContractTitle: Ns,
|
|
1511
|
+
edit: Rs,
|
|
1512
|
+
electronicInvoices: Fs,
|
|
1513
|
+
email: Ds,
|
|
1514
|
+
enterIdCard: Es,
|
|
1515
|
+
enterInvoiceSymbol: As,
|
|
1516
|
+
enterPassport: js,
|
|
1517
|
+
enterProviderName: Us,
|
|
1518
|
+
enterTaxAuthorityCode: Ms,
|
|
1519
|
+
errorCheckingCustomer: Hs,
|
|
1520
|
+
errorCreatingOrder: Ks,
|
|
1521
|
+
errorFetchTaxInfo: Bs,
|
|
1522
|
+
errorFileFormat: qs,
|
|
1523
|
+
errorFileSize: Vs,
|
|
1524
|
+
errorForbidden: zs,
|
|
1525
|
+
errorInvalidAddress: Qs,
|
|
1526
|
+
errorInvalidCard: Gs,
|
|
1527
|
+
errorInvalidDate: Ws,
|
|
1528
|
+
errorInvalidEmail: Xs,
|
|
1529
|
+
errorInvalidIdCard: _s,
|
|
1530
|
+
errorInvalidName: Js,
|
|
1531
|
+
errorInvalidPhone: Ys,
|
|
1532
|
+
errorInvalidProviderName: Zs,
|
|
1533
|
+
errorInvalidRequest: er,
|
|
1534
|
+
errorInvalidTaxAuthorityCode: tr,
|
|
1535
|
+
errorInvalidTaxCode: nr,
|
|
1536
|
+
errorLoadingData: ir,
|
|
1537
|
+
errorLoadingInitPackages: or,
|
|
1538
|
+
errorLoadingInvoicePackages: sr,
|
|
1539
|
+
errorLoadingSignaturePackages: rr,
|
|
1540
|
+
errorNetwork: ar,
|
|
1541
|
+
errorNotFound: cr,
|
|
1542
|
+
errorOrderStatus: lr,
|
|
1543
|
+
errorQRGeneration: ur,
|
|
1544
|
+
errorRequired: dr,
|
|
1545
|
+
errorSearchingPackages: hr,
|
|
1546
|
+
errorServer: fr,
|
|
1547
|
+
errorServiceUnavailable: gr,
|
|
1548
|
+
errorTooManyRequests: pr,
|
|
1549
|
+
errorUnauthorized: mr,
|
|
1550
|
+
errorUnknown: yr,
|
|
1551
|
+
errorValidation: vr,
|
|
1552
|
+
female: br,
|
|
1553
|
+
fileFormat: Sr,
|
|
1554
|
+
frontIdCard: xr,
|
|
1555
|
+
fullName: $r,
|
|
1556
|
+
gender: Pr,
|
|
1557
|
+
hasUsedEInvoice: kr,
|
|
1558
|
+
hasUsedEInvoiceBefore: Cr,
|
|
1559
|
+
hotlineDesc: wr,
|
|
1560
|
+
hotlineDomestic: Tr,
|
|
1561
|
+
idNumber: Or,
|
|
1562
|
+
increase: Lr,
|
|
1563
|
+
informationSent: Ir,
|
|
1564
|
+
invoicePackage: Nr,
|
|
1565
|
+
invoiceSymbol: Rr,
|
|
1566
|
+
invoiceTemplate: Fr,
|
|
1567
|
+
invoiceTemplateTypes: Dr,
|
|
1568
|
+
invoiceTypeB: Er,
|
|
1569
|
+
invoiceTypeD: Ar,
|
|
1570
|
+
invoiceTypeG: jr,
|
|
1571
|
+
invoiceTypeH: Ur,
|
|
1572
|
+
invoiceTypeL: Mr,
|
|
1573
|
+
invoiceTypeM: Hr,
|
|
1574
|
+
invoiceTypeN: Kr,
|
|
1575
|
+
invoiceTypeT: Br,
|
|
1576
|
+
invoiceTypeTooltip: qr,
|
|
1577
|
+
invoiceTypeX: Vr,
|
|
1578
|
+
invoiceUsageInfo: zr,
|
|
1579
|
+
invoicesPerMonth: Qr,
|
|
1580
|
+
legalRepInfo: Gr,
|
|
1581
|
+
legalRepNote: Wr,
|
|
1582
|
+
loading: Xr,
|
|
1583
|
+
male: _r,
|
|
1584
|
+
maxFileSize: Jr,
|
|
1585
|
+
month: Yr,
|
|
1586
|
+
mostSuitablePackage: Zr,
|
|
1587
|
+
next: ea,
|
|
1588
|
+
noDataAvailable: ta,
|
|
1589
|
+
noPackageFound: na,
|
|
1590
|
+
notice1: ia,
|
|
1591
|
+
notice2: oa,
|
|
1553
1592
|
"notice3.1": "Sau khi được cấp tài khoản, vui lòng vào Link",
|
|
1554
1593
|
"notice3.2": "để kết nối và sử dụng dịch vụ HDDT",
|
|
1555
|
-
of:
|
|
1556
|
-
ok:
|
|
1557
|
-
optional:
|
|
1558
|
-
or:
|
|
1559
|
-
orderCreated:
|
|
1560
|
-
orderExpired:
|
|
1561
|
-
orderInfo:
|
|
1562
|
-
orderSummary:
|
|
1563
|
-
organizationCert:
|
|
1594
|
+
of: sa,
|
|
1595
|
+
ok: ra,
|
|
1596
|
+
optional: aa,
|
|
1597
|
+
or: ca,
|
|
1598
|
+
orderCreated: la,
|
|
1599
|
+
orderExpired: ua,
|
|
1600
|
+
orderInfo: da,
|
|
1601
|
+
orderSummary: ha,
|
|
1602
|
+
organizationCert: fa,
|
|
1564
1603
|
package: "Gói",
|
|
1565
|
-
passport:
|
|
1566
|
-
paymentAmount:
|
|
1567
|
-
paymentFailed:
|
|
1568
|
-
paymentInstructions:
|
|
1569
|
-
paymentInstructionsTitle:
|
|
1570
|
-
paymentMethod:
|
|
1571
|
-
paymentSuccess:
|
|
1572
|
-
paymentTimeout:
|
|
1573
|
-
paymentTimeoutMessage:
|
|
1574
|
-
paymentTitle:
|
|
1575
|
-
permanentAddress:
|
|
1576
|
-
phone:
|
|
1577
|
-
product:
|
|
1578
|
-
provider:
|
|
1579
|
-
providerName:
|
|
1580
|
-
province:
|
|
1581
|
-
qrPayment:
|
|
1582
|
-
qrPaymentTitle:
|
|
1583
|
-
quantity:
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
yearTooltip: ja
|
|
1604
|
+
passport: ga,
|
|
1605
|
+
paymentAmount: pa,
|
|
1606
|
+
paymentFailed: ma,
|
|
1607
|
+
paymentInstructions: ya,
|
|
1608
|
+
paymentInstructionsTitle: va,
|
|
1609
|
+
paymentMethod: ba,
|
|
1610
|
+
paymentSuccess: Sa,
|
|
1611
|
+
paymentTimeout: xa,
|
|
1612
|
+
paymentTimeoutMessage: $a,
|
|
1613
|
+
paymentTitle: Pa,
|
|
1614
|
+
permanentAddress: ka,
|
|
1615
|
+
phone: Ca,
|
|
1616
|
+
product: wa,
|
|
1617
|
+
provider: Ta,
|
|
1618
|
+
providerName: Oa,
|
|
1619
|
+
province: La,
|
|
1620
|
+
qrPayment: Ia,
|
|
1621
|
+
qrPaymentTitle: Na,
|
|
1622
|
+
quantity: Ra,
|
|
1623
|
+
registrationFee: Fa,
|
|
1624
|
+
required: Da,
|
|
1625
|
+
returnHome: Ea,
|
|
1626
|
+
returnToStep1: Aa,
|
|
1627
|
+
sampleNumberTooltip: ja,
|
|
1628
|
+
save: Ua,
|
|
1629
|
+
searchUnits: Ma,
|
|
1630
|
+
selectFile: Ha,
|
|
1631
|
+
selectInvoicePackage: Ka,
|
|
1632
|
+
selectProvider: Ba,
|
|
1633
|
+
selectSignaturePackage: qa,
|
|
1634
|
+
selectSubscriptionPackage: Va,
|
|
1635
|
+
selectedProducts: za,
|
|
1636
|
+
settings: Qa,
|
|
1637
|
+
signaturePackage: Ga,
|
|
1638
|
+
softwareLicense: Wa,
|
|
1639
|
+
stepInfo: Xa,
|
|
1640
|
+
stepPayment: _a,
|
|
1641
|
+
stepPlan: Ja,
|
|
1642
|
+
subscriptionPackage: Ya,
|
|
1643
|
+
taxAuthority: Za,
|
|
1644
|
+
taxAuthorityCode: ec,
|
|
1645
|
+
taxCode: tc,
|
|
1646
|
+
termsAndUsagePolicy: nc,
|
|
1647
|
+
timeLeft: ic,
|
|
1648
|
+
total: oc,
|
|
1649
|
+
totalAmount: sc,
|
|
1650
|
+
totalPrice: rc,
|
|
1651
|
+
transactionCanceled: ac,
|
|
1652
|
+
unit: cc,
|
|
1653
|
+
unitInfo: lc,
|
|
1654
|
+
unitPerMonth: uc,
|
|
1655
|
+
unitPrice: dc,
|
|
1656
|
+
unitsPerMonth: hc,
|
|
1657
|
+
uploadBackId: fc,
|
|
1658
|
+
uploadFile: gc,
|
|
1659
|
+
uploadFrontId: pc,
|
|
1660
|
+
uploadLogo: mc,
|
|
1661
|
+
usagePolicy: yc,
|
|
1662
|
+
ward: vc,
|
|
1663
|
+
website: bc,
|
|
1664
|
+
widgetTitle: Sc,
|
|
1665
|
+
yearTooltip: xc
|
|
1628
1666
|
}, {
|
|
1629
|
-
slice:
|
|
1630
|
-
forEach:
|
|
1667
|
+
slice: Pc,
|
|
1668
|
+
forEach: kc
|
|
1631
1669
|
} = [];
|
|
1632
|
-
function
|
|
1633
|
-
return
|
|
1670
|
+
function Cc(o) {
|
|
1671
|
+
return kc.call(Pc.call(arguments, 1), (e) => {
|
|
1634
1672
|
if (e)
|
|
1635
1673
|
for (const t in e)
|
|
1636
1674
|
o[t] === void 0 && (o[t] = e[t]);
|
|
1637
1675
|
}), o;
|
|
1638
1676
|
}
|
|
1639
|
-
function
|
|
1677
|
+
function wc(o) {
|
|
1640
1678
|
return typeof o != "string" ? !1 : [/<\s*script.*?>/i, /<\s*\/\s*script\s*>/i, /<\s*img.*?on\w+\s*=/i, /<\s*\w+\s*on\w+\s*=.*?>/i, /javascript\s*:/i, /vbscript\s*:/i, /expression\s*\(/i, /eval\s*\(/i, /alert\s*\(/i, /document\.cookie/i, /document\.write\s*\(/i, /window\.location/i, /innerHTML/i].some((t) => t.test(o));
|
|
1641
1679
|
}
|
|
1642
|
-
const
|
|
1680
|
+
const Ee = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Tc = function(o, e) {
|
|
1643
1681
|
const n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
1644
1682
|
path: "/"
|
|
1645
1683
|
}, i = encodeURIComponent(e);
|
|
@@ -1650,12 +1688,12 @@ const De = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Va = function(o, e) {
|
|
|
1650
1688
|
s += `; Max-Age=${Math.floor(r)}`;
|
|
1651
1689
|
}
|
|
1652
1690
|
if (n.domain) {
|
|
1653
|
-
if (!
|
|
1691
|
+
if (!Ee.test(n.domain))
|
|
1654
1692
|
throw new TypeError("option domain is invalid");
|
|
1655
1693
|
s += `; Domain=${n.domain}`;
|
|
1656
1694
|
}
|
|
1657
1695
|
if (n.path) {
|
|
1658
|
-
if (!
|
|
1696
|
+
if (!Ee.test(n.path))
|
|
1659
1697
|
throw new TypeError("option path is invalid");
|
|
1660
1698
|
s += `; Path=${n.path}`;
|
|
1661
1699
|
}
|
|
@@ -1688,7 +1726,7 @@ const De = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Va = function(o, e) {
|
|
|
1688
1726
|
path: "/",
|
|
1689
1727
|
sameSite: "strict"
|
|
1690
1728
|
};
|
|
1691
|
-
t && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + t * 60 * 1e3)), n && (i.domain = n), document.cookie =
|
|
1729
|
+
t && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + t * 60 * 1e3)), n && (i.domain = n), document.cookie = Tc(o, e, i);
|
|
1692
1730
|
},
|
|
1693
1731
|
read(o) {
|
|
1694
1732
|
const e = `${o}=`, t = document.cookie.split(";");
|
|
@@ -1703,7 +1741,7 @@ const De = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Va = function(o, e) {
|
|
|
1703
1741
|
this.create(o, "", -1, e);
|
|
1704
1742
|
}
|
|
1705
1743
|
};
|
|
1706
|
-
var
|
|
1744
|
+
var Oc = {
|
|
1707
1745
|
name: "cookie",
|
|
1708
1746
|
// Deconstruct the options object and extract the lookupCookie property
|
|
1709
1747
|
lookup(o) {
|
|
@@ -1723,7 +1761,7 @@ var qa = {
|
|
|
1723
1761
|
} = e;
|
|
1724
1762
|
t && typeof document != "undefined" && Ae.create(t, o, n, i, s);
|
|
1725
1763
|
}
|
|
1726
|
-
},
|
|
1764
|
+
}, Lc = {
|
|
1727
1765
|
name: "querystring",
|
|
1728
1766
|
// Deconstruct the options object and extract the lookupQuerystring property
|
|
1729
1767
|
lookup(o) {
|
|
@@ -1744,7 +1782,7 @@ var qa = {
|
|
|
1744
1782
|
}
|
|
1745
1783
|
return t;
|
|
1746
1784
|
}
|
|
1747
|
-
},
|
|
1785
|
+
}, Ic = {
|
|
1748
1786
|
name: "hash",
|
|
1749
1787
|
// Deconstruct the options object and extract the lookupHash property and the lookupFromHashIndex property
|
|
1750
1788
|
lookup(o) {
|
|
@@ -1789,7 +1827,7 @@ const je = () => {
|
|
|
1789
1827
|
}
|
|
1790
1828
|
return M;
|
|
1791
1829
|
};
|
|
1792
|
-
var
|
|
1830
|
+
var Nc = {
|
|
1793
1831
|
name: "localStorage",
|
|
1794
1832
|
// Deconstruct the options object and extract the lookupLocalStorage property
|
|
1795
1833
|
lookup(o) {
|
|
@@ -1820,7 +1858,7 @@ const Ue = () => {
|
|
|
1820
1858
|
}
|
|
1821
1859
|
return H;
|
|
1822
1860
|
};
|
|
1823
|
-
var
|
|
1861
|
+
var Rc = {
|
|
1824
1862
|
name: "sessionStorage",
|
|
1825
1863
|
lookup(o) {
|
|
1826
1864
|
let {
|
|
@@ -1835,7 +1873,7 @@ var Ga = {
|
|
|
1835
1873
|
} = e;
|
|
1836
1874
|
t && Ue() && window.sessionStorage.setItem(t, o);
|
|
1837
1875
|
}
|
|
1838
|
-
},
|
|
1876
|
+
}, Fc = {
|
|
1839
1877
|
name: "navigator",
|
|
1840
1878
|
lookup(o) {
|
|
1841
1879
|
const e = [];
|
|
@@ -1852,7 +1890,7 @@ var Ga = {
|
|
|
1852
1890
|
}
|
|
1853
1891
|
return e.length > 0 ? e : void 0;
|
|
1854
1892
|
}
|
|
1855
|
-
},
|
|
1893
|
+
}, Dc = {
|
|
1856
1894
|
name: "htmlTag",
|
|
1857
1895
|
// Deconstruct the options object and extract the htmlTag property
|
|
1858
1896
|
lookup(o) {
|
|
@@ -1862,7 +1900,7 @@ var Ga = {
|
|
|
1862
1900
|
const n = e || (typeof document != "undefined" ? document.documentElement : null);
|
|
1863
1901
|
return n && typeof n.getAttribute == "function" && (t = n.getAttribute("lang")), t;
|
|
1864
1902
|
}
|
|
1865
|
-
},
|
|
1903
|
+
}, Ec = {
|
|
1866
1904
|
name: "path",
|
|
1867
1905
|
// Deconstruct the options object and extract the lookupFromPathIndex property
|
|
1868
1906
|
lookup(o) {
|
|
@@ -1874,7 +1912,7 @@ var Ga = {
|
|
|
1874
1912
|
const t = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
|
|
1875
1913
|
return Array.isArray(t) ? (i = t[typeof e == "number" ? e : 0]) == null ? void 0 : i.replace("/", "") : void 0;
|
|
1876
1914
|
}
|
|
1877
|
-
},
|
|
1915
|
+
}, Ac = {
|
|
1878
1916
|
name: "subdomain",
|
|
1879
1917
|
lookup(o) {
|
|
1880
1918
|
var i, s;
|
|
@@ -1886,15 +1924,15 @@ var Ga = {
|
|
|
1886
1924
|
return n[t];
|
|
1887
1925
|
}
|
|
1888
1926
|
};
|
|
1889
|
-
let
|
|
1927
|
+
let Qe = !1;
|
|
1890
1928
|
try {
|
|
1891
|
-
document.cookie,
|
|
1929
|
+
document.cookie, Qe = !0;
|
|
1892
1930
|
} catch (o) {
|
|
1893
1931
|
}
|
|
1894
|
-
const
|
|
1895
|
-
|
|
1896
|
-
const
|
|
1897
|
-
order:
|
|
1932
|
+
const Ge = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
|
|
1933
|
+
Qe || Ge.splice(1, 1);
|
|
1934
|
+
const jc = () => ({
|
|
1935
|
+
order: Ge,
|
|
1898
1936
|
lookupQuerystring: "lng",
|
|
1899
1937
|
lookupCookie: "i18next",
|
|
1900
1938
|
lookupLocalStorage: "i18nextLng",
|
|
@@ -1906,7 +1944,7 @@ const Za = () => ({
|
|
|
1906
1944
|
// cookieDomain: 'myDomain'
|
|
1907
1945
|
convertDetectedLanguage: (o) => o
|
|
1908
1946
|
});
|
|
1909
|
-
class
|
|
1947
|
+
class We {
|
|
1910
1948
|
constructor(e) {
|
|
1911
1949
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1912
1950
|
this.type = "languageDetector", this.detectors = {}, this.init(e, t);
|
|
@@ -1915,7 +1953,7 @@ class Ge {
|
|
|
1915
1953
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
1916
1954
|
languageUtils: {}
|
|
1917
1955
|
}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
1918
|
-
this.services = e, this.options =
|
|
1956
|
+
this.services = e, this.options = Cc(t, this.options || {}, jc()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (i) => i.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = n, this.addDetector(Oc), this.addDetector(Lc), this.addDetector(Nc), this.addDetector(Rc), this.addDetector(Fc), this.addDetector(Dc), this.addDetector(Ec), this.addDetector(Ac), this.addDetector(Ic);
|
|
1919
1957
|
}
|
|
1920
1958
|
addDetector(e) {
|
|
1921
1959
|
return this.detectors[e.name] = e, this;
|
|
@@ -1927,7 +1965,7 @@ class Ge {
|
|
|
1927
1965
|
let i = this.detectors[n].lookup(this.options);
|
|
1928
1966
|
i && typeof i == "string" && (i = [i]), i && (t = t.concat(i));
|
|
1929
1967
|
}
|
|
1930
|
-
}), t = t.filter((n) => n != null && !
|
|
1968
|
+
}), t = t.filter((n) => n != null && !wc(n)).map((n) => this.options.convertDetectedLanguage(n)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? t : t.length > 0 ? t[0] : null;
|
|
1931
1969
|
}
|
|
1932
1970
|
cacheUserLanguage(e) {
|
|
1933
1971
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
|
|
@@ -1936,7 +1974,7 @@ class Ge {
|
|
|
1936
1974
|
}));
|
|
1937
1975
|
}
|
|
1938
1976
|
}
|
|
1939
|
-
|
|
1977
|
+
We.type = "languageDetector";
|
|
1940
1978
|
function de(o) {
|
|
1941
1979
|
"@babel/helpers - typeof";
|
|
1942
1980
|
return de = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
@@ -1948,11 +1986,11 @@ function de(o) {
|
|
|
1948
1986
|
function Xe() {
|
|
1949
1987
|
return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest == "undefined" ? "undefined" : de(XMLHttpRequest)) === "object";
|
|
1950
1988
|
}
|
|
1951
|
-
function
|
|
1989
|
+
function Uc(o) {
|
|
1952
1990
|
return !!o && typeof o.then == "function";
|
|
1953
1991
|
}
|
|
1954
|
-
function
|
|
1955
|
-
return
|
|
1992
|
+
function Mc(o) {
|
|
1993
|
+
return Uc(o) ? o : Promise.resolve(o);
|
|
1956
1994
|
}
|
|
1957
1995
|
function Me(o, e) {
|
|
1958
1996
|
var t = Object.keys(o);
|
|
@@ -1968,21 +2006,21 @@ function He(o) {
|
|
|
1968
2006
|
for (var e = 1; e < arguments.length; e++) {
|
|
1969
2007
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1970
2008
|
e % 2 ? Me(Object(t), !0).forEach(function(n) {
|
|
1971
|
-
|
|
2009
|
+
Hc(o, n, t[n]);
|
|
1972
2010
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : Me(Object(t)).forEach(function(n) {
|
|
1973
2011
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1974
2012
|
});
|
|
1975
2013
|
}
|
|
1976
2014
|
return o;
|
|
1977
2015
|
}
|
|
1978
|
-
function
|
|
1979
|
-
return (e =
|
|
2016
|
+
function Hc(o, e, t) {
|
|
2017
|
+
return (e = Kc(e)) in o ? Object.defineProperty(o, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : o[e] = t, o;
|
|
1980
2018
|
}
|
|
1981
|
-
function
|
|
1982
|
-
var e =
|
|
2019
|
+
function Kc(o) {
|
|
2020
|
+
var e = Bc(o, "string");
|
|
1983
2021
|
return j(e) == "symbol" ? e : e + "";
|
|
1984
2022
|
}
|
|
1985
|
-
function
|
|
2023
|
+
function Bc(o, e) {
|
|
1986
2024
|
if (j(o) != "object" || !o) return o;
|
|
1987
2025
|
var t = o[Symbol.toPrimitive];
|
|
1988
2026
|
if (t !== void 0) {
|
|
@@ -2000,17 +2038,17 @@ function j(o) {
|
|
|
2000
2038
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2001
2039
|
}, j(o);
|
|
2002
2040
|
}
|
|
2003
|
-
var
|
|
2004
|
-
typeof global != "undefined" && global.fetch ?
|
|
2041
|
+
var E = typeof fetch == "function" ? fetch : void 0;
|
|
2042
|
+
typeof global != "undefined" && global.fetch ? E = global.fetch : typeof window != "undefined" && window.fetch && (E = window.fetch);
|
|
2005
2043
|
var X;
|
|
2006
2044
|
Xe() && (typeof global != "undefined" && global.XMLHttpRequest ? X = global.XMLHttpRequest : typeof window != "undefined" && window.XMLHttpRequest && (X = window.XMLHttpRequest));
|
|
2007
2045
|
var ie;
|
|
2008
2046
|
typeof ActiveXObject == "function" && (typeof global != "undefined" && global.ActiveXObject ? ie = global.ActiveXObject : typeof window != "undefined" && window.ActiveXObject && (ie = window.ActiveXObject));
|
|
2009
|
-
typeof
|
|
2010
|
-
if (!
|
|
2047
|
+
typeof E != "function" && (E = void 0);
|
|
2048
|
+
if (!E && !X && !ie)
|
|
2011
2049
|
try {
|
|
2012
2050
|
import("./browser-ponyfill-BxQPfTD2.js").then((o) => o.b).then(function(o) {
|
|
2013
|
-
|
|
2051
|
+
E = o.default;
|
|
2014
2052
|
}).catch(function() {
|
|
2015
2053
|
});
|
|
2016
2054
|
} catch (o) {
|
|
@@ -2024,7 +2062,7 @@ var he = function(e, t) {
|
|
|
2024
2062
|
e = e + (e.indexOf("?") !== -1 ? "&" : "?") + n.slice(1);
|
|
2025
2063
|
}
|
|
2026
2064
|
return e;
|
|
2027
|
-
},
|
|
2065
|
+
}, Ke = function(e, t, n, i) {
|
|
2028
2066
|
var s = function(c) {
|
|
2029
2067
|
if (!c.ok) return n(c.statusText || "Error", {
|
|
2030
2068
|
status: c.status
|
|
@@ -2043,8 +2081,8 @@ var he = function(e, t) {
|
|
|
2043
2081
|
return;
|
|
2044
2082
|
}
|
|
2045
2083
|
}
|
|
2046
|
-
typeof fetch == "function" ? fetch(e, t).then(s).catch(n) :
|
|
2047
|
-
},
|
|
2084
|
+
typeof fetch == "function" ? fetch(e, t).then(s).catch(n) : E(e, t).then(s).catch(n);
|
|
2085
|
+
}, Be = !1, qc = function(e, t, n, i) {
|
|
2048
2086
|
e.queryStringParams && (t = he(t, e.queryStringParams));
|
|
2049
2087
|
var s = He({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
|
|
2050
2088
|
typeof window == "undefined" && typeof global != "undefined" && typeof global.process != "undefined" && global.process.versions && global.process.versions.node && (s["User-Agent"] = "i18next-http-backend (node/".concat(global.process.version, "; ").concat(global.process.platform, " ").concat(global.process.arch, ")")), n && (s["Content-Type"] = "application/json");
|
|
@@ -2052,21 +2090,21 @@ var he = function(e, t) {
|
|
|
2052
2090
|
method: n ? "POST" : "GET",
|
|
2053
2091
|
body: n ? e.stringify(n) : void 0,
|
|
2054
2092
|
headers: s
|
|
2055
|
-
},
|
|
2093
|
+
}, Be ? {} : r), c = typeof e.alternateFetch == "function" && e.alternateFetch.length >= 1 ? e.alternateFetch : void 0;
|
|
2056
2094
|
try {
|
|
2057
|
-
|
|
2095
|
+
Ke(t, a, i, c);
|
|
2058
2096
|
} catch (l) {
|
|
2059
2097
|
if (!r || Object.keys(r).length === 0 || !l.message || l.message.indexOf("not implemented") < 0)
|
|
2060
2098
|
return i(l);
|
|
2061
2099
|
try {
|
|
2062
2100
|
Object.keys(r).forEach(function(d) {
|
|
2063
2101
|
delete a[d];
|
|
2064
|
-
}),
|
|
2102
|
+
}), Ke(t, a, i, c), Be = !0;
|
|
2065
2103
|
} catch (d) {
|
|
2066
2104
|
i(d);
|
|
2067
2105
|
}
|
|
2068
2106
|
}
|
|
2069
|
-
},
|
|
2107
|
+
}, Vc = function(e, t, n, i) {
|
|
2070
2108
|
n && j(n) === "object" && (n = he("", n).slice(1)), e.queryStringParams && (t = he(t, e.queryStringParams));
|
|
2071
2109
|
try {
|
|
2072
2110
|
var s = X ? new X() : new ie("MSXML2.XMLHTTP.3.0");
|
|
@@ -2084,23 +2122,23 @@ var he = function(e, t) {
|
|
|
2084
2122
|
} catch (c) {
|
|
2085
2123
|
console && console.log(c);
|
|
2086
2124
|
}
|
|
2087
|
-
},
|
|
2125
|
+
}, zc = function(e, t, n, i) {
|
|
2088
2126
|
if (typeof n == "function" && (i = n, n = void 0), i = i || function() {
|
|
2089
|
-
},
|
|
2090
|
-
return
|
|
2127
|
+
}, E && t.indexOf("file:") !== 0)
|
|
2128
|
+
return qc(e, t, n, i);
|
|
2091
2129
|
if (Xe() || typeof ActiveXObject == "function")
|
|
2092
|
-
return
|
|
2130
|
+
return Vc(e, t, n, i);
|
|
2093
2131
|
i(new Error("No fetch and no xhr implementation found!"));
|
|
2094
2132
|
};
|
|
2095
|
-
function
|
|
2133
|
+
function K(o) {
|
|
2096
2134
|
"@babel/helpers - typeof";
|
|
2097
|
-
return
|
|
2135
|
+
return K = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
2098
2136
|
return typeof e;
|
|
2099
2137
|
} : function(e) {
|
|
2100
2138
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2101
|
-
},
|
|
2139
|
+
}, K(o);
|
|
2102
2140
|
}
|
|
2103
|
-
function
|
|
2141
|
+
function qe(o, e) {
|
|
2104
2142
|
var t = Object.keys(o);
|
|
2105
2143
|
if (Object.getOwnPropertySymbols) {
|
|
2106
2144
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -2113,44 +2151,44 @@ function Ve(o, e) {
|
|
|
2113
2151
|
function ae(o) {
|
|
2114
2152
|
for (var e = 1; e < arguments.length; e++) {
|
|
2115
2153
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
2116
|
-
e % 2 ?
|
|
2154
|
+
e % 2 ? qe(Object(t), !0).forEach(function(n) {
|
|
2117
2155
|
_e(o, n, t[n]);
|
|
2118
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
2156
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : qe(Object(t)).forEach(function(n) {
|
|
2119
2157
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
2120
2158
|
});
|
|
2121
2159
|
}
|
|
2122
2160
|
return o;
|
|
2123
2161
|
}
|
|
2124
|
-
function
|
|
2162
|
+
function Qc(o, e) {
|
|
2125
2163
|
if (!(o instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
2126
2164
|
}
|
|
2127
|
-
function
|
|
2165
|
+
function Gc(o, e) {
|
|
2128
2166
|
for (var t = 0; t < e.length; t++) {
|
|
2129
2167
|
var n = e[t];
|
|
2130
2168
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, Je(n.key), n);
|
|
2131
2169
|
}
|
|
2132
2170
|
}
|
|
2133
|
-
function
|
|
2134
|
-
return e &&
|
|
2171
|
+
function Wc(o, e, t) {
|
|
2172
|
+
return e && Gc(o.prototype, e), Object.defineProperty(o, "prototype", { writable: !1 }), o;
|
|
2135
2173
|
}
|
|
2136
2174
|
function _e(o, e, t) {
|
|
2137
2175
|
return (e = Je(e)) in o ? Object.defineProperty(o, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : o[e] = t, o;
|
|
2138
2176
|
}
|
|
2139
2177
|
function Je(o) {
|
|
2140
|
-
var e =
|
|
2141
|
-
return
|
|
2178
|
+
var e = Xc(o, "string");
|
|
2179
|
+
return K(e) == "symbol" ? e : e + "";
|
|
2142
2180
|
}
|
|
2143
|
-
function
|
|
2144
|
-
if (
|
|
2181
|
+
function Xc(o, e) {
|
|
2182
|
+
if (K(o) != "object" || !o) return o;
|
|
2145
2183
|
var t = o[Symbol.toPrimitive];
|
|
2146
2184
|
if (t !== void 0) {
|
|
2147
2185
|
var n = t.call(o, e);
|
|
2148
|
-
if (
|
|
2186
|
+
if (K(n) != "object") return n;
|
|
2149
2187
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2150
2188
|
}
|
|
2151
2189
|
return String(o);
|
|
2152
2190
|
}
|
|
2153
|
-
var
|
|
2191
|
+
var _c = function() {
|
|
2154
2192
|
return {
|
|
2155
2193
|
loadPath: "/locales/{{lng}}/{{ns}}.json",
|
|
2156
2194
|
addPath: "/locales/add/{{lng}}/{{ns}}",
|
|
@@ -2163,7 +2201,7 @@ var hc = function() {
|
|
|
2163
2201
|
},
|
|
2164
2202
|
parseLoadPayload: function(t, n) {
|
|
2165
2203
|
},
|
|
2166
|
-
request:
|
|
2204
|
+
request: zc,
|
|
2167
2205
|
reloadInterval: typeof window != "undefined" ? !1 : 60 * 60 * 1e3,
|
|
2168
2206
|
customHeaders: {},
|
|
2169
2207
|
queryStringParams: {},
|
|
@@ -2179,17 +2217,17 @@ var hc = function() {
|
|
|
2179
2217
|
}, Ye = function() {
|
|
2180
2218
|
function o(e) {
|
|
2181
2219
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2182
|
-
|
|
2220
|
+
Qc(this, o), this.services = e, this.options = t, this.allOptions = n, this.type = "backend", this.init(e, t, n);
|
|
2183
2221
|
}
|
|
2184
|
-
return
|
|
2222
|
+
return Wc(o, [{
|
|
2185
2223
|
key: "init",
|
|
2186
2224
|
value: function(t) {
|
|
2187
2225
|
var n = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2188
|
-
if (this.services = t, this.options = ae(ae(ae({},
|
|
2226
|
+
if (this.services = t, this.options = ae(ae(ae({}, _c()), this.options || {}), i), this.allOptions = s, this.services && this.options.reloadInterval) {
|
|
2189
2227
|
var r = setInterval(function() {
|
|
2190
2228
|
return n.reload();
|
|
2191
2229
|
}, this.options.reloadInterval);
|
|
2192
|
-
|
|
2230
|
+
K(r) === "object" && typeof r.unref == "function" && r.unref();
|
|
2193
2231
|
}
|
|
2194
2232
|
}
|
|
2195
2233
|
}, {
|
|
@@ -2206,7 +2244,7 @@ var hc = function() {
|
|
|
2206
2244
|
key: "_readAny",
|
|
2207
2245
|
value: function(t, n, i, s, r) {
|
|
2208
2246
|
var a = this, c = this.options.loadPath;
|
|
2209
|
-
typeof this.options.loadPath == "function" && (c = this.options.loadPath(t, i)), c =
|
|
2247
|
+
typeof this.options.loadPath == "function" && (c = this.options.loadPath(t, i)), c = Mc(c), c.then(function(l) {
|
|
2210
2248
|
if (!l) return r(null, {});
|
|
2211
2249
|
var d = a.services.interpolator.interpolate(l, {
|
|
2212
2250
|
lng: t.join("+"),
|
|
@@ -2223,8 +2261,8 @@ var hc = function() {
|
|
|
2223
2261
|
if (u && (u.status >= 500 && u.status < 600 || !u.status)) return n("failed loading " + t + "; status code: " + u.status, !0);
|
|
2224
2262
|
if (u && u.status >= 400 && u.status < 500) return n("failed loading " + t + "; status code: " + u.status, !1);
|
|
2225
2263
|
if (!u && d && d.message) {
|
|
2226
|
-
var
|
|
2227
|
-
return
|
|
2264
|
+
var g = d.message.toLowerCase(), f = ["failed", "fetch", "network", "load"].find(function(v) {
|
|
2265
|
+
return g.indexOf(v) > -1;
|
|
2228
2266
|
});
|
|
2229
2267
|
if (f)
|
|
2230
2268
|
return n("failed loading " + t + ": " + d.message, !0);
|
|
@@ -2247,11 +2285,11 @@ var hc = function() {
|
|
|
2247
2285
|
if (this.options.addPath) {
|
|
2248
2286
|
typeof t == "string" && (t = [t]);
|
|
2249
2287
|
var c = this.options.parsePayload(n, i, s), l = 0, d = [], u = [];
|
|
2250
|
-
t.forEach(function(
|
|
2288
|
+
t.forEach(function(g) {
|
|
2251
2289
|
var f = a.options.addPath;
|
|
2252
|
-
typeof a.options.addPath == "function" && (f = a.options.addPath(
|
|
2290
|
+
typeof a.options.addPath == "function" && (f = a.options.addPath(g, n));
|
|
2253
2291
|
var h = a.services.interpolator.interpolate(f, {
|
|
2254
|
-
lng:
|
|
2292
|
+
lng: g,
|
|
2255
2293
|
ns: n
|
|
2256
2294
|
});
|
|
2257
2295
|
a.options.request(a.options, h, c, function(y, v) {
|
|
@@ -2266,8 +2304,8 @@ var hc = function() {
|
|
|
2266
2304
|
var t = this, n = this.services, i = n.backendConnector, s = n.languageUtils, r = n.logger, a = i.language;
|
|
2267
2305
|
if (!(a && a.toLowerCase() === "cimode")) {
|
|
2268
2306
|
var c = [], l = function(u) {
|
|
2269
|
-
var
|
|
2270
|
-
|
|
2307
|
+
var g = s.toResolveHierarchy(u);
|
|
2308
|
+
g.forEach(function(f) {
|
|
2271
2309
|
c.indexOf(f) < 0 && c.push(f);
|
|
2272
2310
|
});
|
|
2273
2311
|
};
|
|
@@ -2275,8 +2313,8 @@ var hc = function() {
|
|
|
2275
2313
|
return l(d);
|
|
2276
2314
|
}), c.forEach(function(d) {
|
|
2277
2315
|
t.allOptions.ns.forEach(function(u) {
|
|
2278
|
-
i.read(d, u, "read", null, null, function(
|
|
2279
|
-
|
|
2316
|
+
i.read(d, u, "read", null, null, function(g, f) {
|
|
2317
|
+
g && r.warn("loading namespace ".concat(u, " for language ").concat(d, " failed"), g), !g && f && r.log("loaded namespace ".concat(u, " for language ").concat(d), f), i.loaded("".concat(d, "|").concat(u), g, f);
|
|
2280
2318
|
});
|
|
2281
2319
|
});
|
|
2282
2320
|
});
|
|
@@ -2285,13 +2323,13 @@ var hc = function() {
|
|
|
2285
2323
|
}]);
|
|
2286
2324
|
}();
|
|
2287
2325
|
Ye.type = "backend";
|
|
2288
|
-
b.use(Ye).use(
|
|
2326
|
+
b.use(Ye).use(We).init({
|
|
2289
2327
|
lng: "vi",
|
|
2290
2328
|
fallbackLng: "vi",
|
|
2291
2329
|
debug: !1,
|
|
2292
2330
|
resources: {
|
|
2293
|
-
en: { translation:
|
|
2294
|
-
vi: { translation:
|
|
2331
|
+
en: { translation: Yo },
|
|
2332
|
+
vi: { translation: $c }
|
|
2295
2333
|
},
|
|
2296
2334
|
interpolation: {
|
|
2297
2335
|
escapeValue: !1
|
|
@@ -2299,13 +2337,13 @@ b.use(Ye).use(Ge).init({
|
|
|
2299
2337
|
// Allow returning objects/arrays from translations
|
|
2300
2338
|
returnObjects: !0
|
|
2301
2339
|
});
|
|
2302
|
-
function
|
|
2340
|
+
function Jc(o) {
|
|
2303
2341
|
b.changeLanguage(o);
|
|
2304
2342
|
}
|
|
2305
|
-
function
|
|
2306
|
-
return b.t(o,
|
|
2343
|
+
function tl(o, e) {
|
|
2344
|
+
return b.t(o, p({ returnObjects: !0 }, e));
|
|
2307
2345
|
}
|
|
2308
|
-
function
|
|
2346
|
+
function Yc(o = "dev") {
|
|
2309
2347
|
const e = {
|
|
2310
2348
|
dev: {
|
|
2311
2349
|
invoiceHubBaseUrl: "https://stag-invoice-hub.atomsolution.vn",
|
|
@@ -2348,7 +2386,7 @@ function Ze(o) {
|
|
|
2348
2386
|
console.warn("Could not save to localStorage:", e);
|
|
2349
2387
|
}
|
|
2350
2388
|
}
|
|
2351
|
-
function
|
|
2389
|
+
function Zc() {
|
|
2352
2390
|
if (fe && Z)
|
|
2353
2391
|
return Z;
|
|
2354
2392
|
try {
|
|
@@ -2360,15 +2398,15 @@ function gc() {
|
|
|
2360
2398
|
}
|
|
2361
2399
|
return "dev";
|
|
2362
2400
|
}
|
|
2363
|
-
function
|
|
2364
|
-
const o =
|
|
2365
|
-
return
|
|
2401
|
+
function nl() {
|
|
2402
|
+
const o = Zc();
|
|
2403
|
+
return Yc(o);
|
|
2366
2404
|
}
|
|
2367
2405
|
let ce = null, le = null;
|
|
2368
|
-
function
|
|
2406
|
+
function il(o) {
|
|
2369
2407
|
return se(this, null, function* () {
|
|
2370
2408
|
if (o.mode && Ze(o.mode), o.language && et(o.language), !le) {
|
|
2371
|
-
const { InvoiceRegisterWidget: n } = yield import("./widget-
|
|
2409
|
+
const { InvoiceRegisterWidget: n } = yield import("./widget-CaUgT09b.js");
|
|
2372
2410
|
le = n;
|
|
2373
2411
|
}
|
|
2374
2412
|
const e = typeof o.selector == "string" ? document.querySelector(o.selector) : o.selector;
|
|
@@ -2387,10 +2425,10 @@ function bc(o) {
|
|
|
2387
2425
|
), { destroy: t };
|
|
2388
2426
|
});
|
|
2389
2427
|
}
|
|
2390
|
-
function
|
|
2428
|
+
function ol(o) {
|
|
2391
2429
|
return se(this, null, function* () {
|
|
2392
2430
|
if (o.mode && Ze(o.mode), o.language && et(o.language), !ce) {
|
|
2393
|
-
const { EContractWidget: n } = yield import("./widget-
|
|
2431
|
+
const { EContractWidget: n } = yield import("./widget-CaUgT09b.js");
|
|
2394
2432
|
ce = n;
|
|
2395
2433
|
}
|
|
2396
2434
|
const e = typeof o.selector == "string" ? document.querySelector(o.selector) : o.selector;
|
|
@@ -2402,26 +2440,26 @@ function Sc(o) {
|
|
|
2402
2440
|
return ce(e, t, o.data || {}, o.theme), { destroy: t };
|
|
2403
2441
|
});
|
|
2404
2442
|
}
|
|
2405
|
-
let
|
|
2443
|
+
let ge = /* @__PURE__ */ new Set();
|
|
2406
2444
|
function et(o) {
|
|
2407
2445
|
if (o !== "vi" && o !== "en")
|
|
2408
2446
|
throw new Error(`[WidgetSDK] Unsupported language: ${o}`);
|
|
2409
|
-
|
|
2447
|
+
Jc(o), ge.forEach((e) => {
|
|
2410
2448
|
e.rerender && e.rerender();
|
|
2411
2449
|
});
|
|
2412
2450
|
}
|
|
2413
|
-
function
|
|
2414
|
-
|
|
2451
|
+
function sl(o) {
|
|
2452
|
+
ge.add(o);
|
|
2415
2453
|
}
|
|
2416
|
-
function
|
|
2417
|
-
|
|
2454
|
+
function rl(o) {
|
|
2455
|
+
ge.delete(o);
|
|
2418
2456
|
}
|
|
2419
2457
|
export {
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2458
|
+
ol as a,
|
|
2459
|
+
nl as g,
|
|
2460
|
+
il as i,
|
|
2461
|
+
sl as r,
|
|
2424
2462
|
et as s,
|
|
2425
|
-
|
|
2426
|
-
|
|
2463
|
+
tl as t,
|
|
2464
|
+
rl as u
|
|
2427
2465
|
};
|