@invoice-sdk/widget 1.51.0 → 1.52.0
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.
|
@@ -9,7 +9,7 @@ var Se = (o, e, t) => e in o ? it(o, e, { enumerable: !0, configurable: !0, writ
|
|
|
9
9
|
for (var t of be(e))
|
|
10
10
|
at.call(e, t) && Se(o, t, e[t]);
|
|
11
11
|
return o;
|
|
12
|
-
},
|
|
12
|
+
}, x = (o, e) => ot(o, st(e));
|
|
13
13
|
var se = (o, e, t) => new Promise((n, i) => {
|
|
14
14
|
var s = (c) => {
|
|
15
15
|
try {
|
|
@@ -32,23 +32,23 @@ const m = (o) => typeof o == "string", z = () => {
|
|
|
32
32
|
o = n, e = i;
|
|
33
33
|
});
|
|
34
34
|
return t.resolve = o, t.reject = e, t;
|
|
35
|
-
},
|
|
35
|
+
}, ke = (o) => o == null ? "" : "" + o, ct = (o, e, t) => {
|
|
36
36
|
o.forEach((n) => {
|
|
37
37
|
e[n] && (t[n] = e[n]);
|
|
38
38
|
});
|
|
39
|
-
}, lt = /###/g,
|
|
39
|
+
}, lt = /###/g, xe = (o) => o && o.indexOf("###") > -1 ? o.replace(lt, ".") : o, $e = (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 (
|
|
44
|
-
const s =
|
|
43
|
+
if ($e(o)) return {};
|
|
44
|
+
const s = xe(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 $e(o) ? {} : {
|
|
48
48
|
obj: o,
|
|
49
|
-
k:
|
|
49
|
+
k: xe(n[i])
|
|
50
50
|
};
|
|
51
|
-
},
|
|
51
|
+
}, Pe = (o, e, t) => {
|
|
52
52
|
const {
|
|
53
53
|
obj: n,
|
|
54
54
|
k: i
|
|
@@ -74,15 +74,15 @@ const m = (o) => typeof o == "string", z = () => {
|
|
|
74
74
|
} = Q(o, e);
|
|
75
75
|
if (t && Object.prototype.hasOwnProperty.call(t, n))
|
|
76
76
|
return t[n];
|
|
77
|
-
},
|
|
77
|
+
}, ht = (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
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
|
-
},
|
|
85
|
-
var
|
|
84
|
+
}, j = (o) => o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
85
|
+
var dt = {
|
|
86
86
|
"&": "&",
|
|
87
87
|
"<": "<",
|
|
88
88
|
">": ">",
|
|
@@ -90,7 +90,7 @@ var ht = {
|
|
|
90
90
|
"'": "'",
|
|
91
91
|
"/": "/"
|
|
92
92
|
};
|
|
93
|
-
const ft = (o) => m(o) ? o.replace(/[&<>"'\/]/g, (e) =>
|
|
93
|
+
const ft = (o) => m(o) ? o.replace(/[&<>"'\/]/g, (e) => dt[e]) : o;
|
|
94
94
|
class gt {
|
|
95
95
|
constructor(e) {
|
|
96
96
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
@@ -103,7 +103,7 @@ class gt {
|
|
|
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 pt = [" ", ",", "?", "!", ";"], mt = new gt(20),
|
|
106
|
+
const pt = [" ", ",", "?", "!", ";"], mt = new gt(20), vt = (o, e, t) => {
|
|
107
107
|
e = e || "", t = t || "";
|
|
108
108
|
const n = pt.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
|
|
109
109
|
if (n.length === 0) return !0;
|
|
@@ -134,7 +134,7 @@ const pt = [" ", ",", "?", "!", ";"], mt = new gt(20), yt = (o, e, t) => {
|
|
|
134
134
|
i = r;
|
|
135
135
|
}
|
|
136
136
|
return i;
|
|
137
|
-
}, G = (o) => o == null ? void 0 : o.replace("_", "-"),
|
|
137
|
+
}, G = (o) => o == null ? void 0 : o.replace("_", "-"), yt = {
|
|
138
138
|
type: "logger",
|
|
139
139
|
log(o) {
|
|
140
140
|
this.output("log", o);
|
|
@@ -155,7 +155,7 @@ class te {
|
|
|
155
155
|
this.init(e, t);
|
|
156
156
|
}
|
|
157
157
|
init(e, t = {}) {
|
|
158
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
158
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || yt, this.options = t, this.debug = t.debug;
|
|
159
159
|
}
|
|
160
160
|
log(...e) {
|
|
161
161
|
return this.forward(e, "log", "", !0);
|
|
@@ -227,19 +227,19 @@ class Ce extends oe {
|
|
|
227
227
|
t > -1 && this.options.ns.splice(t, 1);
|
|
228
228
|
}
|
|
229
229
|
getResource(e, t, n, i = {}) {
|
|
230
|
-
var l,
|
|
230
|
+
var l, h;
|
|
231
231
|
const s = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator, r = i.ignoreJSONStructure !== void 0 ? i.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
232
232
|
let a;
|
|
233
233
|
e.indexOf(".") > -1 ? a = e.split(".") : (a = [e, t], n && (Array.isArray(n) ? a.push(...n) : m(n) && s ? a.push(...n.split(s)) : a.push(n)));
|
|
234
234
|
const c = ee(this.data, a);
|
|
235
|
-
return !c && !t && !n && e.indexOf(".") > -1 && (e = a[0], t = a[1], n = a.slice(2).join(".")), c || !r || !m(n) ? c : ue((
|
|
235
|
+
return !c && !t && !n && e.indexOf(".") > -1 && (e = a[0], t = a[1], n = a.slice(2).join(".")), c || !r || !m(n) ? c : ue((h = (l = this.data) == null ? void 0 : l[e]) == null ? void 0 : h[t], n, s);
|
|
236
236
|
}
|
|
237
237
|
addResource(e, t, n, i, s = {
|
|
238
238
|
silent: !1
|
|
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), Pe(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 ? Ve(c, n, s) : c = p(p({}, c), n),
|
|
260
|
+
r.skipCopy || (n = JSON.parse(JSON.stringify(n))), i ? Ve(c, n, s) : c = p(p({}, c), n), Pe(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);
|
|
@@ -312,7 +312,7 @@ class ne extends oe {
|
|
|
312
312
|
n === void 0 && (n = ":");
|
|
313
313
|
const i = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
314
314
|
let s = t.ns || this.options.defaultNS || [];
|
|
315
|
-
const r = n && e.indexOf(n) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !
|
|
315
|
+
const r = n && e.indexOf(n) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !vt(e, n, i);
|
|
316
316
|
if (r && !a) {
|
|
317
317
|
const c = e.match(this.interpolator.nestingRegexp);
|
|
318
318
|
if (c && c.length > 0)
|
|
@@ -336,18 +336,18 @@ class ne extends oe {
|
|
|
336
336
|
key: a,
|
|
337
337
|
namespaces: c
|
|
338
338
|
} = this.extractFromKey(e[e.length - 1], i), l = c[c.length - 1];
|
|
339
|
-
let
|
|
340
|
-
|
|
339
|
+
let h = i.nsSeparator !== void 0 ? i.nsSeparator : this.options.nsSeparator;
|
|
340
|
+
h === void 0 && (h = ":");
|
|
341
341
|
const u = i.lng || this.language, g = i.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
342
342
|
if ((u == null ? void 0 : u.toLowerCase()) === "cimode")
|
|
343
343
|
return g ? s ? {
|
|
344
|
-
res: `${l}${
|
|
344
|
+
res: `${l}${h}${a}`,
|
|
345
345
|
usedKey: a,
|
|
346
346
|
exactUsedKey: a,
|
|
347
347
|
usedLng: u,
|
|
348
348
|
usedNS: l,
|
|
349
349
|
usedParams: this.getUsedParamsDetails(i)
|
|
350
|
-
} : `${l}${
|
|
350
|
+
} : `${l}${h}${a}` : s ? {
|
|
351
351
|
res: a,
|
|
352
352
|
usedKey: a,
|
|
353
353
|
exactUsedKey: a,
|
|
@@ -356,71 +356,71 @@ class ne extends oe {
|
|
|
356
356
|
usedParams: this.getUsedParamsDetails(i)
|
|
357
357
|
} : a;
|
|
358
358
|
const f = this.resolve(e, i);
|
|
359
|
-
let
|
|
360
|
-
const
|
|
359
|
+
let d = f == null ? void 0 : f.res;
|
|
360
|
+
const v = (f == null ? void 0 : f.usedKey) || a, y = (f == null ? void 0 : f.exactUsedKey) || a, w = ["[object Number]", "[object Function]", "[object RegExp]"], C = i.joinArrays !== void 0 ? i.joinArrays : this.options.joinArrays, A = !this.i18nFormat || this.i18nFormat.handleAsObject, k = i.count !== void 0 && !m(i.count), N = ne.hasDefaultValue(i), _ = k ? this.pluralResolver.getSuffix(u, i.count, i) : "", R = i.ordinal && k ? this.pluralResolver.getSuffix(u, i.count, {
|
|
361
361
|
ordinal: !1
|
|
362
|
-
}) : "", B =
|
|
363
|
-
let S =
|
|
364
|
-
|
|
362
|
+
}) : "", B = k && !i.ordinal && i.count === 0, $ = B && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${_}`] || i[`defaultValue${R}`] || i.defaultValue;
|
|
363
|
+
let S = d;
|
|
364
|
+
A && !d && N && (S = $);
|
|
365
365
|
const tt = Te(S), nt = Object.prototype.toString.apply(S);
|
|
366
|
-
if (
|
|
366
|
+
if (A && 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(
|
|
369
|
+
const O = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, S, x(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), T = O ? [] : {}, pe = O ?
|
|
375
|
+
const O = Array.isArray(S), T = O ? [] : {}, pe = O ? y : v;
|
|
376
376
|
for (const L in S)
|
|
377
377
|
if (Object.prototype.hasOwnProperty.call(S, L)) {
|
|
378
378
|
const F = `${pe}${r}${L}`;
|
|
379
|
-
N && !
|
|
380
|
-
defaultValue: Te(
|
|
379
|
+
N && !d ? T[L] = this.translate(F, x(p({}, i), {
|
|
380
|
+
defaultValue: Te($) ? $[L] : void 0,
|
|
381
381
|
joinArrays: !1,
|
|
382
382
|
ns: c
|
|
383
|
-
})) : T[L] = this.translate(F,
|
|
383
|
+
})) : T[L] = this.translate(F, x(p({}, i), {
|
|
384
384
|
joinArrays: !1,
|
|
385
385
|
ns: c
|
|
386
386
|
})), T[L] === F && (T[L] = S[L]);
|
|
387
387
|
}
|
|
388
|
-
|
|
388
|
+
d = T;
|
|
389
389
|
}
|
|
390
|
-
} else if (
|
|
391
|
-
|
|
390
|
+
} else if (A && m(C) && Array.isArray(d))
|
|
391
|
+
d = d.join(C), d && (d = this.extendTranslation(d, e, i, n));
|
|
392
392
|
else {
|
|
393
393
|
let O = !1, T = !1;
|
|
394
|
-
!this.isValidLookup(
|
|
395
|
-
const L = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && T ? void 0 :
|
|
394
|
+
!this.isValidLookup(d) && N && (O = !0, d = $), this.isValidLookup(d) || (T = !0, d = a);
|
|
395
|
+
const L = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && T ? void 0 : d, F = N && $ !== d && this.options.updateMissing;
|
|
396
396
|
if (T || O || F) {
|
|
397
|
-
if (this.logger.log(F ? "updateKey" : "missingKey", u, l, a, F ?
|
|
398
|
-
const
|
|
397
|
+
if (this.logger.log(F ? "updateKey" : "missingKey", u, l, a, F ? $ : d), r) {
|
|
398
|
+
const P = this.resolve(a, x(p({}, i), {
|
|
399
399
|
keySeparator: !1
|
|
400
400
|
}));
|
|
401
|
-
|
|
401
|
+
P && P.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
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
|
-
q.push(J[
|
|
406
|
+
for (let P = 0; P < J.length; P++)
|
|
407
|
+
q.push(J[P]);
|
|
408
408
|
else this.options.saveMissingTo === "all" ? q = this.languageUtils.toResolveHierarchy(i.lng || this.language) : q.push(i.lng || this.language);
|
|
409
|
-
const me = (
|
|
410
|
-
var
|
|
411
|
-
const
|
|
412
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
409
|
+
const me = (P, E, V) => {
|
|
410
|
+
var ye;
|
|
411
|
+
const ve = N && V !== d ? V : L;
|
|
412
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(P, l, E, ve, F, i) : (ye = this.backendConnector) != null && ye.saveMissing && this.backendConnector.saveMissing(P, l, E, ve, F, i), this.emit("missingKey", P, l, E, d);
|
|
413
413
|
};
|
|
414
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
415
|
-
const E = this.pluralResolver.getSuffixes(
|
|
414
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && k ? q.forEach((P) => {
|
|
415
|
+
const E = this.pluralResolver.getSuffixes(P, i);
|
|
416
416
|
B && i[`defaultValue${this.options.pluralSeparator}zero`] && E.indexOf(`${this.options.pluralSeparator}zero`) < 0 && E.push(`${this.options.pluralSeparator}zero`), E.forEach((V) => {
|
|
417
|
-
me([
|
|
417
|
+
me([P], a + V, i[`defaultValue${V}`] || $);
|
|
418
418
|
});
|
|
419
|
-
}) : me(q, a,
|
|
419
|
+
}) : me(q, a, $));
|
|
420
420
|
}
|
|
421
|
-
|
|
421
|
+
d = this.extendTranslation(d, e, i, f, n), T && d === a && this.options.appendNamespaceToMissingKey && (d = `${l}${h}${a}`), (T || O) && this.options.parseMissingKeyHandler && (d = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${h}${a}` : a, O ? d : void 0, i));
|
|
422
422
|
}
|
|
423
|
-
return s ? (f.res =
|
|
423
|
+
return s ? (f.res = d, f.usedParams = this.getUsedParamsDetails(i), f) : d;
|
|
424
424
|
}
|
|
425
425
|
extendTranslation(e, t, n, i, s) {
|
|
426
426
|
var c, l;
|
|
@@ -429,25 +429,25 @@ class ne extends oe {
|
|
|
429
429
|
resolved: i
|
|
430
430
|
});
|
|
431
431
|
else if (!n.skipInterpolation) {
|
|
432
|
-
n.interpolation && this.interpolator.init(
|
|
432
|
+
n.interpolation && this.interpolator.init(x(p({}, n), {
|
|
433
433
|
interpolation: p(p({}, this.options.interpolation), n.interpolation)
|
|
434
434
|
}));
|
|
435
|
-
const
|
|
435
|
+
const h = 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;
|
|
437
|
-
if (
|
|
437
|
+
if (h) {
|
|
438
438
|
const f = e.match(this.interpolator.nestingRegexp);
|
|
439
439
|
u = f && f.length;
|
|
440
440
|
}
|
|
441
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),
|
|
443
|
-
const f = e.match(this.interpolator.nestingRegexp),
|
|
444
|
-
u <
|
|
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), h) {
|
|
443
|
+
const f = e.match(this.interpolator.nestingRegexp), d = f && f.length;
|
|
444
|
+
u < d && (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
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:
|
|
450
|
+
i18nResolved: x(p({}, i), {
|
|
451
451
|
usedParams: this.getUsedParamsDetails(n)
|
|
452
452
|
})
|
|
453
453
|
}, n) : n, this)), e;
|
|
@@ -456,32 +456,32 @@ class ne extends oe {
|
|
|
456
456
|
let n, i, s, r, a;
|
|
457
457
|
return m(e) && (e = [e]), e.forEach((c) => {
|
|
458
458
|
if (this.isValidLookup(n)) return;
|
|
459
|
-
const l = this.extractFromKey(c, t),
|
|
460
|
-
i =
|
|
459
|
+
const l = this.extractFromKey(c, t), h = l.key;
|
|
460
|
+
i = h;
|
|
461
461
|
let u = l.namespaces;
|
|
462
462
|
this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
|
|
463
|
-
const g = t.count !== void 0 && !m(t.count), f = g && !t.ordinal && t.count === 0,
|
|
464
|
-
u.forEach((
|
|
463
|
+
const g = t.count !== void 0 && !m(t.count), f = g && !t.ordinal && t.count === 0, d = t.context !== void 0 && (m(t.context) || typeof t.context == "number") && t.context !== "", v = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
464
|
+
u.forEach((y) => {
|
|
465
465
|
var w, C;
|
|
466
|
-
this.isValidLookup(n) || (a =
|
|
466
|
+
this.isValidLookup(n) || (a = y, !we[`${v[0]}-${y}`] && ((w = this.utils) != null && w.hasLoadedNamespace) && !((C = this.utils) != null && C.hasLoadedNamespace(a)) && (we[`${v[0]}-${y}`] = !0, this.logger.warn(`key "${i}" for languages "${v.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!!!")), v.forEach((A) => {
|
|
467
467
|
var _;
|
|
468
468
|
if (this.isValidLookup(n)) return;
|
|
469
|
-
r =
|
|
470
|
-
const
|
|
469
|
+
r = A;
|
|
470
|
+
const k = [h];
|
|
471
471
|
if ((_ = this.i18nFormat) != null && _.addLookupKeys)
|
|
472
|
-
this.i18nFormat.addLookupKeys(
|
|
472
|
+
this.i18nFormat.addLookupKeys(k, h, A, y, t);
|
|
473
473
|
else {
|
|
474
474
|
let R;
|
|
475
|
-
g && (R = this.pluralResolver.getSuffix(
|
|
476
|
-
const B = `${this.options.pluralSeparator}zero`,
|
|
477
|
-
if (g && (
|
|
478
|
-
const S = `${
|
|
479
|
-
|
|
475
|
+
g && (R = this.pluralResolver.getSuffix(A, t.count, t));
|
|
476
|
+
const B = `${this.options.pluralSeparator}zero`, $ = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
477
|
+
if (g && (k.push(h + R), t.ordinal && R.indexOf($) === 0 && k.push(h + R.replace($, this.options.pluralSeparator)), f && k.push(h + B)), d) {
|
|
478
|
+
const S = `${h}${this.options.contextSeparator}${t.context}`;
|
|
479
|
+
k.push(S), g && (k.push(S + R), t.ordinal && R.indexOf($) === 0 && k.push(S + R.replace($, this.options.pluralSeparator)), f && k.push(S + B));
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
let N;
|
|
483
|
-
for (; N =
|
|
484
|
-
this.isValidLookup(n) || (s = N, n = this.getResource(
|
|
483
|
+
for (; N = k.pop(); )
|
|
484
|
+
this.isValidLookup(n) || (s = N, n = this.getResource(A, y, N, t));
|
|
485
485
|
}));
|
|
486
486
|
});
|
|
487
487
|
}), {
|
|
@@ -642,7 +642,7 @@ class bt {
|
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
644
|
const Ne = (o, e, t, n = ".", i = !0) => {
|
|
645
|
-
let s =
|
|
645
|
+
let s = ht(o, e, t);
|
|
646
646
|
return !s && i && m(t) && (s = ue(o, t, n), s === void 0 && (s = ue(e, t, n))), s;
|
|
647
647
|
}, re = (o) => o.replace(/\$/g, "$$$$");
|
|
648
648
|
class St {
|
|
@@ -663,17 +663,17 @@ class St {
|
|
|
663
663
|
suffix: a,
|
|
664
664
|
suffixEscaped: c,
|
|
665
665
|
formatSeparator: l,
|
|
666
|
-
unescapeSuffix:
|
|
666
|
+
unescapeSuffix: h,
|
|
667
667
|
unescapePrefix: u,
|
|
668
668
|
nestingPrefix: g,
|
|
669
669
|
nestingPrefixEscaped: f,
|
|
670
|
-
nestingSuffix:
|
|
671
|
-
nestingSuffixEscaped:
|
|
672
|
-
nestingOptionsSeparator:
|
|
670
|
+
nestingSuffix: d,
|
|
671
|
+
nestingSuffixEscaped: v,
|
|
672
|
+
nestingOptionsSeparator: y,
|
|
673
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 ?
|
|
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 ? j(s) : r || "{{", this.suffix = a ? j(a) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = h ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : h || "", this.nestingPrefix = g ? j(g) : f || j("$t("), this.nestingSuffix = d ? j(d) : v || j(")"), this.nestingOptionsSeparator = y || ",", 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);
|
|
@@ -685,43 +685,43 @@ class St {
|
|
|
685
685
|
interpolate(e, t, n, i) {
|
|
686
686
|
var f;
|
|
687
687
|
let s, r, a;
|
|
688
|
-
const c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (
|
|
689
|
-
if (
|
|
690
|
-
const C = Ne(t, c,
|
|
691
|
-
return this.alwaysFormat ? this.format(C, void 0, n,
|
|
692
|
-
interpolationkey:
|
|
688
|
+
const c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (d) => {
|
|
689
|
+
if (d.indexOf(this.formatSeparator) < 0) {
|
|
690
|
+
const C = Ne(t, c, d, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
691
|
+
return this.alwaysFormat ? this.format(C, void 0, n, x(p(p({}, i), t), {
|
|
692
|
+
interpolationkey: d
|
|
693
693
|
})) : C;
|
|
694
694
|
}
|
|
695
|
-
const
|
|
696
|
-
return this.format(Ne(t, c,
|
|
697
|
-
interpolationkey:
|
|
695
|
+
const v = d.split(this.formatSeparator), y = v.shift().trim(), w = v.join(this.formatSeparator).trim();
|
|
696
|
+
return this.format(Ne(t, c, y, this.options.keySeparator, this.options.ignoreJSONStructure), w, n, x(p(p({}, i), t), {
|
|
697
|
+
interpolationkey: y
|
|
698
698
|
}));
|
|
699
699
|
};
|
|
700
700
|
this.resetRegExp();
|
|
701
|
-
const
|
|
701
|
+
const h = (i == null ? void 0 : i.missingInterpolationHandler) || this.options.missingInterpolationHandler, u = ((f = i == null ? void 0 : i.interpolation) == null ? void 0 : f.skipOnVariables) !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
702
702
|
return [{
|
|
703
703
|
regex: this.regexpUnescape,
|
|
704
|
-
safeValue: (
|
|
704
|
+
safeValue: (d) => re(d)
|
|
705
705
|
}, {
|
|
706
706
|
regex: this.regexp,
|
|
707
|
-
safeValue: (
|
|
708
|
-
}].forEach((
|
|
709
|
-
for (a = 0; s =
|
|
710
|
-
const
|
|
711
|
-
if (r = l(
|
|
712
|
-
if (typeof
|
|
713
|
-
const w =
|
|
707
|
+
safeValue: (d) => this.escapeValue ? re(this.escape(d)) : re(d)
|
|
708
|
+
}].forEach((d) => {
|
|
709
|
+
for (a = 0; s = d.regex.exec(e); ) {
|
|
710
|
+
const v = s[1].trim();
|
|
711
|
+
if (r = l(v), r === void 0)
|
|
712
|
+
if (typeof h == "function") {
|
|
713
|
+
const w = h(e, s, i);
|
|
714
714
|
r = m(w) ? w : "";
|
|
715
|
-
} else if (i && Object.prototype.hasOwnProperty.call(i,
|
|
715
|
+
} else if (i && Object.prototype.hasOwnProperty.call(i, v))
|
|
716
716
|
r = "";
|
|
717
717
|
else if (u) {
|
|
718
718
|
r = s[0];
|
|
719
719
|
continue;
|
|
720
720
|
} else
|
|
721
|
-
this.logger.warn(`missed to pass in variable ${
|
|
722
|
-
else !m(r) && !this.useRawValueToEscape && (r =
|
|
723
|
-
const
|
|
724
|
-
if (e = e.replace(s[0],
|
|
721
|
+
this.logger.warn(`missed to pass in variable ${v} for interpolating ${e}`), r = "";
|
|
722
|
+
else !m(r) && !this.useRawValueToEscape && (r = ke(r));
|
|
723
|
+
const y = d.safeValue(r);
|
|
724
|
+
if (e = e.replace(s[0], y), u ? (d.regex.lastIndex += r.length, d.regex.lastIndex -= s[0].length) : d.regex.lastIndex = 0, a++, a >= this.maxReplaces)
|
|
725
725
|
break;
|
|
726
726
|
}
|
|
727
727
|
}), e;
|
|
@@ -729,18 +729,18 @@ class St {
|
|
|
729
729
|
nest(e, t, n = {}) {
|
|
730
730
|
let i, s, r;
|
|
731
731
|
const a = (c, l) => {
|
|
732
|
-
var
|
|
733
|
-
const
|
|
734
|
-
if (c.indexOf(
|
|
735
|
-
const u = c.split(new RegExp(`${
|
|
732
|
+
var v;
|
|
733
|
+
const h = this.nestingOptionsSeparator;
|
|
734
|
+
if (c.indexOf(h) < 0) return c;
|
|
735
|
+
const u = c.split(new RegExp(`${h}[ ]*{`));
|
|
736
736
|
let g = `{${u[1]}`;
|
|
737
737
|
c = u[0], g = this.interpolate(g, r);
|
|
738
|
-
const f = g.match(/'/g),
|
|
739
|
-
(((
|
|
738
|
+
const f = g.match(/'/g), d = g.match(/"/g);
|
|
739
|
+
(((v = f == null ? void 0 : f.length) != null ? v : 0) % 2 === 0 && !d || d.length % 2 !== 0) && (g = g.replace(/'/g, '"'));
|
|
740
740
|
try {
|
|
741
741
|
r = JSON.parse(g), l && (r = p(p({}, l), r));
|
|
742
|
-
} catch (
|
|
743
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${c}`,
|
|
742
|
+
} catch (y) {
|
|
743
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${c}`, y), `${c}${h}${g}`;
|
|
744
744
|
}
|
|
745
745
|
return r.defaultValue && r.defaultValue.indexOf(this.prefix) > -1 && delete r.defaultValue, c;
|
|
746
746
|
};
|
|
@@ -748,15 +748,15 @@ class St {
|
|
|
748
748
|
let c = [];
|
|
749
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
|
-
if (l !== -1 && (c = i[1].slice(l).split(this.formatSeparator).map((
|
|
752
|
-
m(s) || (s =
|
|
751
|
+
if (l !== -1 && (c = i[1].slice(l).split(this.formatSeparator).map((h) => h.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 = ke(s)), s || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), s = ""), c.length && (s = c.reduce((h, u) => this.format(h, u, n.lng, x(p({}, n), {
|
|
753
753
|
interpolationkey: i[1].trim()
|
|
754
754
|
})), s.trim())), e = e.replace(i[0], s), this.regexp.lastIndex = 0;
|
|
755
755
|
}
|
|
756
756
|
return e;
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
|
-
const
|
|
759
|
+
const kt = (o) => {
|
|
760
760
|
let e = o.toLowerCase().trim();
|
|
761
761
|
const t = {};
|
|
762
762
|
if (o.indexOf("(") > -1) {
|
|
@@ -765,8 +765,8 @@ const xt = (o) => {
|
|
|
765
765
|
const i = n[1].substring(0, n[1].length - 1);
|
|
766
766
|
e === "currency" && i.indexOf(":") < 0 ? t.currency || (t.currency = i.trim()) : e === "relativetime" && i.indexOf(":") < 0 ? t.range || (t.range = i.trim()) : i.split(";").forEach((r) => {
|
|
767
767
|
if (r) {
|
|
768
|
-
const [a, ...c] = r.split(":"), l = c.join(":").trim().replace(/^'+|'+$/g, ""),
|
|
769
|
-
t[
|
|
768
|
+
const [a, ...c] = r.split(":"), l = c.join(":").trim().replace(/^'+|'+$/g, ""), h = a.trim();
|
|
769
|
+
t[h] || (t[h] = l), l === "false" && (t[h] = !1), l === "true" && (t[h] = !0), isNaN(l) || (t[h] = parseInt(l, 10));
|
|
770
770
|
}
|
|
771
771
|
});
|
|
772
772
|
}
|
|
@@ -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 = x(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
786
|
return a || (a = o(G(n), i), e[r] = a), a(t);
|
|
787
787
|
};
|
|
788
|
-
},
|
|
789
|
-
class
|
|
788
|
+
}, xt = (o) => (e, t, n) => o(G(t), n)(e);
|
|
789
|
+
class $t {
|
|
790
790
|
constructor(e = {}) {
|
|
791
791
|
this.logger = I.create("formatter"), this.options = e, this.init(e);
|
|
792
792
|
}
|
|
@@ -794,14 +794,14 @@ class Pt {
|
|
|
794
794
|
interpolation: {}
|
|
795
795
|
}) {
|
|
796
796
|
this.formatSeparator = t.interpolation.formatSeparator || ",";
|
|
797
|
-
const n = t.cacheInBuiltFormats ? Re :
|
|
797
|
+
const n = t.cacheInBuiltFormats ? Re : xt;
|
|
798
798
|
this.formats = {
|
|
799
799
|
number: n((i, s) => {
|
|
800
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, x(p({}, s), {
|
|
805
805
|
style: "currency"
|
|
806
806
|
}));
|
|
807
807
|
return (a) => r.format(a);
|
|
@@ -836,13 +836,13 @@ class Pt {
|
|
|
836
836
|
var u;
|
|
837
837
|
const {
|
|
838
838
|
formatName: l,
|
|
839
|
-
formatOptions:
|
|
840
|
-
} =
|
|
839
|
+
formatOptions: h
|
|
840
|
+
} = kt(c);
|
|
841
841
|
if (this.formats[l]) {
|
|
842
842
|
let g = a;
|
|
843
843
|
try {
|
|
844
|
-
const f = ((u = i == null ? void 0 : i.formatParams) == null ? void 0 : u[i.interpolationkey]) || {},
|
|
845
|
-
g = this.formats[l](a,
|
|
844
|
+
const f = ((u = i == null ? void 0 : i.formatParams) == null ? void 0 : u[i.interpolationkey]) || {}, d = f.locale || f.lng || i.locale || i.lng || n;
|
|
845
|
+
g = this.formats[l](a, d, p(p(p({}, h), i), f));
|
|
846
846
|
} catch (f) {
|
|
847
847
|
this.logger.warn(f);
|
|
848
848
|
}
|
|
@@ -853,7 +853,7 @@ class Pt {
|
|
|
853
853
|
}, e);
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
|
-
const
|
|
856
|
+
const Pt = (o, e) => {
|
|
857
857
|
o.pending[e] !== void 0 && (delete o.pending[e], o.pendingCount--);
|
|
858
858
|
};
|
|
859
859
|
class Ct extends oe {
|
|
@@ -864,11 +864,11 @@ class Ct extends oe {
|
|
|
864
864
|
queueLoad(e, t, n, i) {
|
|
865
865
|
const s = {}, r = {}, a = {}, c = {};
|
|
866
866
|
return e.forEach((l) => {
|
|
867
|
-
let
|
|
867
|
+
let h = !0;
|
|
868
868
|
t.forEach((u) => {
|
|
869
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,
|
|
871
|
-
}),
|
|
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, h = !1, r[g] === void 0 && (r[g] = !0), s[g] === void 0 && (s[g] = !0), c[u] === void 0 && (c[u] = !0)));
|
|
871
|
+
}), h || (a[l] = !0);
|
|
872
872
|
}), (Object.keys(s).length || Object.keys(r).length) && this.queue.push({
|
|
873
873
|
pending: r,
|
|
874
874
|
pendingCount: Object.keys(r).length,
|
|
@@ -889,10 +889,10 @@ 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), Pt(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
|
-
const
|
|
895
|
-
|
|
894
|
+
const h = c.loaded[l];
|
|
895
|
+
h.length && h.forEach((u) => {
|
|
896
896
|
a[l][u] === void 0 && (a[l][u] = !0);
|
|
897
897
|
});
|
|
898
898
|
}), c.done = !0, c.errors.length ? c.callback(c.errors) : c.callback());
|
|
@@ -912,23 +912,23 @@ class Ct extends oe {
|
|
|
912
912
|
return;
|
|
913
913
|
}
|
|
914
914
|
this.readingCalls++;
|
|
915
|
-
const a = (l,
|
|
915
|
+
const a = (l, h) => {
|
|
916
916
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
|
917
917
|
const u = this.waitingReads.shift();
|
|
918
918
|
this.read(u.lng, u.ns, u.fcName, u.tried, u.wait, u.callback);
|
|
919
919
|
}
|
|
920
|
-
if (l &&
|
|
920
|
+
if (l && h && i < this.maxRetries) {
|
|
921
921
|
setTimeout(() => {
|
|
922
922
|
this.read.call(this, e, t, n, i + 1, s * 2, r);
|
|
923
923
|
}, s);
|
|
924
924
|
return;
|
|
925
925
|
}
|
|
926
|
-
r(l,
|
|
926
|
+
r(l, h);
|
|
927
927
|
}, c = this.backend[n].bind(this.backend);
|
|
928
928
|
if (c.length === 2) {
|
|
929
929
|
try {
|
|
930
930
|
const l = c(e, t);
|
|
931
|
-
l && typeof l.then == "function" ? l.then((
|
|
931
|
+
l && typeof l.then == "function" ? l.then((h) => a(null, h)).catch(a) : a(null, l);
|
|
932
932
|
} catch (l) {
|
|
933
933
|
a(l);
|
|
934
934
|
}
|
|
@@ -963,25 +963,25 @@ class Ct extends oe {
|
|
|
963
963
|
}
|
|
964
964
|
saveMissing(e, t, n, i, s, r = {}, a = () => {
|
|
965
965
|
}) {
|
|
966
|
-
var c, l,
|
|
967
|
-
if ((l = (c = this.services) == null ? void 0 : c.utils) != null && l.hasLoadedNamespace && !((u = (
|
|
966
|
+
var c, l, h, u, g;
|
|
967
|
+
if ((l = (c = this.services) == null ? void 0 : c.utils) != null && l.hasLoadedNamespace && !((u = (h = this.services) == null ? void 0 : h.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
972
|
if ((g = this.backend) != null && g.create) {
|
|
973
|
-
const f =
|
|
973
|
+
const f = x(p({}, r), {
|
|
974
974
|
isUpdate: s
|
|
975
|
-
}),
|
|
976
|
-
if (
|
|
975
|
+
}), d = this.backend.create.bind(this.backend);
|
|
976
|
+
if (d.length < 6)
|
|
977
977
|
try {
|
|
978
|
-
let
|
|
979
|
-
|
|
980
|
-
} catch (
|
|
981
|
-
a(
|
|
978
|
+
let v;
|
|
979
|
+
d.length === 5 ? v = d(e, t, n, i, f) : v = d(e, t, n, i), v && typeof v.then == "function" ? v.then((y) => a(null, y)).catch(a) : a(null, v);
|
|
980
|
+
} catch (v) {
|
|
981
|
+
a(v);
|
|
982
982
|
}
|
|
983
983
|
else
|
|
984
|
-
|
|
984
|
+
d(e, t, n, i, a, f);
|
|
985
985
|
}
|
|
986
986
|
!e || !e[0] || this.store.addResource(e[0], t, n, i);
|
|
987
987
|
}
|
|
@@ -1044,7 +1044,7 @@ const Fe = () => ({
|
|
|
1044
1044
|
skipOnVariables: !0
|
|
1045
1045
|
},
|
|
1046
1046
|
cacheInBuiltFormats: !0
|
|
1047
|
-
}),
|
|
1047
|
+
}), Ae = (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 = () => {
|
|
@@ -1055,7 +1055,7 @@ const Fe = () => ({
|
|
|
1055
1055
|
};
|
|
1056
1056
|
class W extends oe {
|
|
1057
1057
|
constructor(e = {}, t) {
|
|
1058
|
-
if (super(), this.options =
|
|
1058
|
+
if (super(), this.options = Ae(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)
|
|
@@ -1068,24 +1068,24 @@ class W 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 = p(p(p({}, n), this.options),
|
|
1071
|
+
this.options = p(p(p({}, n), this.options), Ae(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 =
|
|
1077
|
-
const
|
|
1076
|
+
this.modules.formatter ? l = this.modules.formatter : l = $t;
|
|
1077
|
+
const h = new Oe(this.options);
|
|
1078
1078
|
this.store = new Ce(this.options.resources, this.options);
|
|
1079
1079
|
const u = this.services;
|
|
1080
|
-
u.logger = I, u.resourceStore = this.store, u.languageUtils =
|
|
1080
|
+
u.logger = I, u.resourceStore = this.store, u.languageUtils = h, u.pluralResolver = new bt(h, {
|
|
1081
1081
|
prepend: this.options.pluralSeparator,
|
|
1082
1082
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
1083
1083
|
}), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.warn("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter = i(l), u.formatter.init && u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new St(this.options), u.utils = {
|
|
1084
1084
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
1085
|
-
}, u.backendConnector = new Ct(i(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (f, ...
|
|
1086
|
-
this.emit(f, ...
|
|
1087
|
-
}), this.modules.languageDetector && (u.languageDetector = i(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = i(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new ne(this.services, this.options), this.translator.on("*", (f, ...
|
|
1088
|
-
this.emit(f, ...
|
|
1085
|
+
}, u.backendConnector = new Ct(i(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (f, ...d) => {
|
|
1086
|
+
this.emit(f, ...d);
|
|
1087
|
+
}), this.modules.languageDetector && (u.languageDetector = i(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = i(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new ne(this.services, this.options), this.translator.on("*", (f, ...d) => {
|
|
1088
|
+
this.emit(f, ...d);
|
|
1089
1089
|
}), this.modules.external.forEach((f) => {
|
|
1090
1090
|
f.init && f.init(this);
|
|
1091
1091
|
});
|
|
@@ -1095,13 +1095,13 @@ class W extends oe {
|
|
|
1095
1095
|
l.length > 0 && l[0] !== "dev" && (this.options.lng = l[0]);
|
|
1096
1096
|
}
|
|
1097
1097
|
!this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((l) => {
|
|
1098
|
-
this[l] = (...
|
|
1098
|
+
this[l] = (...h) => this.store[l](...h);
|
|
1099
1099
|
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((l) => {
|
|
1100
|
-
this[l] = (...
|
|
1100
|
+
this[l] = (...h) => (this.store[l](...h), this);
|
|
1101
1101
|
});
|
|
1102
1102
|
const a = z(), c = () => {
|
|
1103
|
-
const l = (
|
|
1104
|
-
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), a.resolve(u), t(
|
|
1103
|
+
const l = (h, u) => {
|
|
1104
|
+
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), a.resolve(u), t(h, u);
|
|
1105
1105
|
};
|
|
1106
1106
|
if (this.languages && !this.isInitialized) return l(null, this.t.bind(this));
|
|
1107
1107
|
this.changeLanguage(this.options.lng, l);
|
|
@@ -1120,7 +1120,7 @@ class W extends oe {
|
|
|
1120
1120
|
u !== "cimode" && a.indexOf(u) < 0 && a.push(u);
|
|
1121
1121
|
});
|
|
1122
1122
|
};
|
|
1123
|
-
i ? c(i) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((
|
|
1123
|
+
i ? c(i) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((h) => c(h)), (r = (s = this.options.preload) == null ? void 0 : s.forEach) == null || r.call(s, (l) => c(l)), this.services.backendConnector.load(a, this.options.ns, (l) => {
|
|
1124
1124
|
!l && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), n(l);
|
|
1125
1125
|
});
|
|
1126
1126
|
} else
|
|
@@ -1158,10 +1158,10 @@ class W extends oe {
|
|
|
1158
1158
|
}, s = (a, c) => {
|
|
1159
1159
|
c ? this.isLanguageChangingTo === e && (i(c), this.translator.changeLanguage(c), this.isLanguageChangingTo = void 0, this.emit("languageChanged", c), this.logger.log("languageChanged", c)) : this.isLanguageChangingTo = void 0, n.resolve((...l) => this.t(...l)), t && t(a, (...l) => this.t(...l));
|
|
1160
1160
|
}, r = (a) => {
|
|
1161
|
-
var
|
|
1161
|
+
var h, 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 = (
|
|
1164
|
+
l && (this.language || i(l), this.translator.language || this.translator.changeLanguage(l), (u = (h = this.services.languageDetector) == null ? void 0 : h.cacheUserLanguage) == null || u.call(h, l)), this.loadResources(l, (g) => {
|
|
1165
1165
|
s(g, l);
|
|
1166
1166
|
});
|
|
1167
1167
|
};
|
|
@@ -1172,8 +1172,8 @@ class W extends oe {
|
|
|
1172
1172
|
let c;
|
|
1173
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
|
-
let
|
|
1176
|
-
return c.keyPrefix && Array.isArray(s) ?
|
|
1175
|
+
let h;
|
|
1176
|
+
return c.keyPrefix && Array.isArray(s) ? h = s.map((u) => `${c.keyPrefix}${l}${u}`) : h = c.keyPrefix ? `${c.keyPrefix}${l}${s}` : s, this.t(h, c);
|
|
1177
1177
|
};
|
|
1178
1178
|
return m(e) ? i.lng = e : i.lngs = e, i.ns = t, i.keyPrefix = n, i;
|
|
1179
1179
|
}
|
|
@@ -1240,7 +1240,7 @@ class W extends oe {
|
|
|
1240
1240
|
cloneInstance(e = {}, t = Y) {
|
|
1241
1241
|
const n = e.forkResourceStore;
|
|
1242
1242
|
n && delete e.forkResourceStore;
|
|
1243
|
-
const i =
|
|
1243
|
+
const i = x(p(p({}, this.options), e), {
|
|
1244
1244
|
isClone: !0
|
|
1245
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) => {
|
|
@@ -1248,7 +1248,7 @@ class W extends oe {
|
|
|
1248
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] = p({}, this.store.data[l]), c[l] = Object.keys(c[l]).reduce((
|
|
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((h, u) => (h[u] = p({}, c[l][u]), h), 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) => {
|
|
@@ -1283,7 +1283,7 @@ b.setDefaultNamespace;
|
|
|
1283
1283
|
b.hasLoadedNamespace;
|
|
1284
1284
|
b.loadNamespaces;
|
|
1285
1285
|
b.loadLanguages;
|
|
1286
|
-
const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I agree with", Nt = "and", Rt = "Back", Ft = "Back ID Card",
|
|
1286
|
+
const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I agree with", Nt = "and", Rt = "Back", Ft = "Back ID Card", At = "Bank Name", Dt = "Beneficiary Bank", Et = "Business Registration License", Ut = "Cancel", jt = "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", hn = "Enter Invoice Symbol", dn = "Enter Passport Number", fn = "Enter Provider Name", gn = "Enter Tax Authority Code", pn = "Failed to check customer status", mn = "Failed to create order", vn = "Error fetching tax information.", yn = "File format not supported", bn = "File size is too large", Sn = "Access denied", kn = "Address cannot contain special characters", xn = "Invalid ID card", $n = "Invalid date of birth", Pn = "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", An = "Failed to load invoice packages", Dn = "Failed to load signature packages", En = "Network connection error", Un = "Data not found", jn = "Unable to check order payment 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)", hi = "D (Asset)", di = "G (VAT Stamp)", fi = "H (Sales Stamp)", gi = "L (Tax Authority)", pi = "M (Cash Register)", mi = "N (Internal)", vi = "T (Registration)", yi = "Invoice type", bi = "X (Commercial)", Si = "4. E-INVOICE USAGE INFORMATION:", ki = "invoices/month", xi = "2. Legal Representative Information:", $i = "Please check and enter the correct legal representative name according to the uploaded business license.", Pi = "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:", Ai = "of", Di = "OK", Ei = "Optional", Ui = "or", ji = "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", vo = "Select E-Invoice Package", yo = "Select Provider", bo = "Select Digital Signature Package", So = "Select Subscription Package", ko = "Selected Products", xo = "Settings", $o = "Digital Signature Package", Po = "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", Ao = "Total", Do = "Total Amount", Eo = "Total Price", Uo = "Transaction has been canceled. Returning to registration page.", jo = "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
1287
|
accountName: Tt,
|
|
1288
1288
|
accountNumber: Ot,
|
|
1289
1289
|
address: Lt,
|
|
@@ -1291,11 +1291,11 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1291
1291
|
and: Nt,
|
|
1292
1292
|
back: Rt,
|
|
1293
1293
|
backIdCard: Ft,
|
|
1294
|
-
bankName:
|
|
1295
|
-
beneficiaryBank:
|
|
1294
|
+
bankName: At,
|
|
1295
|
+
beneficiaryBank: Dt,
|
|
1296
1296
|
businessLicense: Et,
|
|
1297
|
-
cancel:
|
|
1298
|
-
cancelTransaction:
|
|
1297
|
+
cancel: Ut,
|
|
1298
|
+
cancelTransaction: jt,
|
|
1299
1299
|
close: Mt,
|
|
1300
1300
|
codeTypeC: Ht,
|
|
1301
1301
|
codeTypeK: Kt,
|
|
@@ -1322,20 +1322,20 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1322
1322
|
electronicInvoices: cn,
|
|
1323
1323
|
email: ln,
|
|
1324
1324
|
enterIdCard: un,
|
|
1325
|
-
enterInvoiceSymbol:
|
|
1326
|
-
enterPassport:
|
|
1325
|
+
enterInvoiceSymbol: hn,
|
|
1326
|
+
enterPassport: dn,
|
|
1327
1327
|
enterProviderName: fn,
|
|
1328
1328
|
enterTaxAuthorityCode: gn,
|
|
1329
1329
|
errorCheckingCustomer: pn,
|
|
1330
1330
|
errorCreatingOrder: mn,
|
|
1331
|
-
errorFetchTaxInfo:
|
|
1332
|
-
errorFileFormat:
|
|
1331
|
+
errorFetchTaxInfo: vn,
|
|
1332
|
+
errorFileFormat: yn,
|
|
1333
1333
|
errorFileSize: bn,
|
|
1334
1334
|
errorForbidden: Sn,
|
|
1335
|
-
errorInvalidAddress:
|
|
1336
|
-
errorInvalidCard:
|
|
1337
|
-
errorInvalidDate:
|
|
1338
|
-
errorInvalidEmail:
|
|
1335
|
+
errorInvalidAddress: kn,
|
|
1336
|
+
errorInvalidCard: xn,
|
|
1337
|
+
errorInvalidDate: $n,
|
|
1338
|
+
errorInvalidEmail: Pn,
|
|
1339
1339
|
errorInvalidIdCard: Cn,
|
|
1340
1340
|
errorInvalidName: wn,
|
|
1341
1341
|
errorInvalidPhone: Tn,
|
|
@@ -1345,11 +1345,11 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1345
1345
|
errorInvalidTaxCode: Nn,
|
|
1346
1346
|
errorLoadingData: Rn,
|
|
1347
1347
|
errorLoadingInitPackages: Fn,
|
|
1348
|
-
errorLoadingInvoicePackages:
|
|
1349
|
-
errorLoadingSignaturePackages:
|
|
1348
|
+
errorLoadingInvoicePackages: An,
|
|
1349
|
+
errorLoadingSignaturePackages: Dn,
|
|
1350
1350
|
errorNetwork: En,
|
|
1351
|
-
errorNotFound:
|
|
1352
|
-
errorOrderStatus:
|
|
1351
|
+
errorNotFound: Un,
|
|
1352
|
+
errorOrderStatus: jn,
|
|
1353
1353
|
errorQRGeneration: Mn,
|
|
1354
1354
|
errorRequired: Hn,
|
|
1355
1355
|
errorSearchingPackages: Kn,
|
|
@@ -1376,20 +1376,20 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1376
1376
|
invoiceTemplate: ci,
|
|
1377
1377
|
invoiceTemplateTypes: li,
|
|
1378
1378
|
invoiceTypeB: ui,
|
|
1379
|
-
invoiceTypeD:
|
|
1380
|
-
invoiceTypeG:
|
|
1379
|
+
invoiceTypeD: hi,
|
|
1380
|
+
invoiceTypeG: di,
|
|
1381
1381
|
invoiceTypeH: fi,
|
|
1382
1382
|
invoiceTypeL: gi,
|
|
1383
1383
|
invoiceTypeM: pi,
|
|
1384
1384
|
invoiceTypeN: mi,
|
|
1385
|
-
invoiceTypeT:
|
|
1386
|
-
invoiceTypeTooltip:
|
|
1385
|
+
invoiceTypeT: vi,
|
|
1386
|
+
invoiceTypeTooltip: yi,
|
|
1387
1387
|
invoiceTypeX: bi,
|
|
1388
1388
|
invoiceUsageInfo: Si,
|
|
1389
|
-
invoicesPerMonth:
|
|
1390
|
-
legalRepInfo:
|
|
1391
|
-
legalRepNote:
|
|
1392
|
-
loading:
|
|
1389
|
+
invoicesPerMonth: ki,
|
|
1390
|
+
legalRepInfo: xi,
|
|
1391
|
+
legalRepNote: $i,
|
|
1392
|
+
loading: Pi,
|
|
1393
1393
|
male: Ci,
|
|
1394
1394
|
maxFileSize: wi,
|
|
1395
1395
|
month: Ti,
|
|
@@ -1401,11 +1401,11 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1401
1401
|
notice2: Fi,
|
|
1402
1402
|
"notice3.1": "After being granted an account, please go to the Link",
|
|
1403
1403
|
"notice3.2": "to connect and use the service HDDT",
|
|
1404
|
-
of:
|
|
1405
|
-
ok:
|
|
1404
|
+
of: Ai,
|
|
1405
|
+
ok: Di,
|
|
1406
1406
|
optional: Ei,
|
|
1407
|
-
or:
|
|
1408
|
-
orderCreated:
|
|
1407
|
+
or: Ui,
|
|
1408
|
+
orderCreated: ji,
|
|
1409
1409
|
orderExpired: Mi,
|
|
1410
1410
|
orderInfo: Hi,
|
|
1411
1411
|
orderSummary: Ki,
|
|
@@ -1438,14 +1438,14 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1438
1438
|
save: go,
|
|
1439
1439
|
searchUnits: po,
|
|
1440
1440
|
selectFile: mo,
|
|
1441
|
-
selectInvoicePackage:
|
|
1442
|
-
selectProvider:
|
|
1441
|
+
selectInvoicePackage: vo,
|
|
1442
|
+
selectProvider: yo,
|
|
1443
1443
|
selectSignaturePackage: bo,
|
|
1444
1444
|
selectSubscriptionPackage: So,
|
|
1445
|
-
selectedProducts:
|
|
1446
|
-
settings:
|
|
1447
|
-
signaturePackage:
|
|
1448
|
-
softwareLicense:
|
|
1445
|
+
selectedProducts: ko,
|
|
1446
|
+
settings: xo,
|
|
1447
|
+
signaturePackage: $o,
|
|
1448
|
+
softwareLicense: Po,
|
|
1449
1449
|
stepInfo: Co,
|
|
1450
1450
|
stepPayment: wo,
|
|
1451
1451
|
stepPlan: To,
|
|
@@ -1455,11 +1455,11 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1455
1455
|
taxCode: No,
|
|
1456
1456
|
termsAndUsagePolicy: Ro,
|
|
1457
1457
|
timeLeft: Fo,
|
|
1458
|
-
total:
|
|
1459
|
-
totalAmount:
|
|
1458
|
+
total: Ao,
|
|
1459
|
+
totalAmount: Do,
|
|
1460
1460
|
totalPrice: Eo,
|
|
1461
|
-
transactionCanceled:
|
|
1462
|
-
unit:
|
|
1461
|
+
transactionCanceled: Uo,
|
|
1462
|
+
unit: jo,
|
|
1463
1463
|
unitInfo: Mo,
|
|
1464
1464
|
unitPerMonth: Ho,
|
|
1465
1465
|
unitPrice: Ko,
|
|
@@ -1473,7 +1473,7 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1473
1473
|
website: Xo,
|
|
1474
1474
|
widgetTitle: _o,
|
|
1475
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",
|
|
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", hs = "Đóng", ds = "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ị", vs = "Hoàn tất thanh toán của bạn trong", ys = "Hoàn tất đăng ký", bs = "Xác nhận", Ss = "Thông tin lưu ý:", ks = "3. Thông tin người liên hệ:", xs = "Bản", $s = "Quốc gia", Ps = "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ử", As = "Email", Ds = "Nhập số CMND/CCCD", Es = "Nhập ký hiệu hóa đơn", Us = "Nhập số hộ chiếu", js = "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 thanh toán đơ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.", hr = "Trường này là bắt buộc", dr = "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", vr = "Đã xảy ra lỗi", yr = "Dữ liệu không hợp lệ", br = "Nữ", Sr = "Định dạng", kr = "Mặt trước CCCD", xr = "Họ và tên", $r = "Giới tính", Pr = "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ố", Ar = { 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ế)" }, Dr = "B (Đại lý)", Er = "D (Tài sản)", Ur = "G (Tem GTGT)", jr = "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", ha = "Thông tin đơn hàng", da = "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", va = ["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"], ya = "Hướng dẫn thanh toán QR", ba = "Hình thức thanh toán:", Sa = "Thanh toán thành công!", ka = "Hết thời gian thanh toán", xa = "Hết thời gian thanh toán! Vui lòng thử lại.", $a = "Thanh toán", Pa = "Đị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ý", Aa = "Bắt buộc", Da = "Trở về trang chủ", Ea = "Quay lại bước 1", Ua = "Mẫu số hóa đơn (1-9)", ja = "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", hc = "Đơn giá", dc = "đơ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", vc = "Chính sách sử dụng", yc = "Phường/Xã", bc = "Website", Sc = "Đăng ký hóa đơn điện tử", kc = "Năm phát hành (2 chữ số cuối)", xc = {
|
|
1477
1477
|
accountName: Zo,
|
|
1478
1478
|
accountNumber: es,
|
|
1479
1479
|
address: ts,
|
|
@@ -1486,20 +1486,20 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1486
1486
|
businessLicense: cs,
|
|
1487
1487
|
cancel: ls,
|
|
1488
1488
|
cancelTransaction: us,
|
|
1489
|
-
close:
|
|
1490
|
-
codeTypeC:
|
|
1489
|
+
close: hs,
|
|
1490
|
+
codeTypeC: ds,
|
|
1491
1491
|
codeTypeK: fs,
|
|
1492
1492
|
codeTypeTooltip: gs,
|
|
1493
1493
|
comingSoon: ps,
|
|
1494
1494
|
companyName: ms,
|
|
1495
|
-
completePaymentIn:
|
|
1496
|
-
completeRegistration:
|
|
1495
|
+
completePaymentIn: vs,
|
|
1496
|
+
completeRegistration: ys,
|
|
1497
1497
|
confirm: bs,
|
|
1498
1498
|
confirmationTitle: Ss,
|
|
1499
|
-
contactInfo:
|
|
1500
|
-
copy:
|
|
1501
|
-
country:
|
|
1502
|
-
customLettersTooltip:
|
|
1499
|
+
contactInfo: ks,
|
|
1500
|
+
copy: xs,
|
|
1501
|
+
country: $s,
|
|
1502
|
+
customLettersTooltip: Ps,
|
|
1503
1503
|
customUnits: Cs,
|
|
1504
1504
|
dateOfBirth: ws,
|
|
1505
1505
|
decrease: Ts,
|
|
@@ -1510,11 +1510,11 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1510
1510
|
eContractTitle: Ns,
|
|
1511
1511
|
edit: Rs,
|
|
1512
1512
|
electronicInvoices: Fs,
|
|
1513
|
-
email:
|
|
1514
|
-
enterIdCard:
|
|
1513
|
+
email: As,
|
|
1514
|
+
enterIdCard: Ds,
|
|
1515
1515
|
enterInvoiceSymbol: Es,
|
|
1516
|
-
enterPassport:
|
|
1517
|
-
enterProviderName:
|
|
1516
|
+
enterPassport: Us,
|
|
1517
|
+
enterProviderName: js,
|
|
1518
1518
|
enterTaxAuthorityCode: Ms,
|
|
1519
1519
|
errorCheckingCustomer: Hs,
|
|
1520
1520
|
errorCreatingOrder: Ks,
|
|
@@ -1541,20 +1541,20 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1541
1541
|
errorNotFound: cr,
|
|
1542
1542
|
errorOrderStatus: lr,
|
|
1543
1543
|
errorQRGeneration: ur,
|
|
1544
|
-
errorRequired:
|
|
1545
|
-
errorSearchingPackages:
|
|
1544
|
+
errorRequired: hr,
|
|
1545
|
+
errorSearchingPackages: dr,
|
|
1546
1546
|
errorServer: fr,
|
|
1547
1547
|
errorServiceUnavailable: gr,
|
|
1548
1548
|
errorTooManyRequests: pr,
|
|
1549
1549
|
errorUnauthorized: mr,
|
|
1550
|
-
errorUnknown:
|
|
1551
|
-
errorValidation:
|
|
1550
|
+
errorUnknown: vr,
|
|
1551
|
+
errorValidation: yr,
|
|
1552
1552
|
female: br,
|
|
1553
1553
|
fileFormat: Sr,
|
|
1554
|
-
frontIdCard:
|
|
1555
|
-
fullName:
|
|
1556
|
-
gender:
|
|
1557
|
-
hasUsedEInvoice:
|
|
1554
|
+
frontIdCard: kr,
|
|
1555
|
+
fullName: xr,
|
|
1556
|
+
gender: $r,
|
|
1557
|
+
hasUsedEInvoice: Pr,
|
|
1558
1558
|
hasUsedEInvoiceBefore: Cr,
|
|
1559
1559
|
hotlineDesc: wr,
|
|
1560
1560
|
hotlineDomestic: Tr,
|
|
@@ -1564,11 +1564,11 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1564
1564
|
invoicePackage: Nr,
|
|
1565
1565
|
invoiceSymbol: Rr,
|
|
1566
1566
|
invoiceTemplate: Fr,
|
|
1567
|
-
invoiceTemplateTypes:
|
|
1568
|
-
invoiceTypeB:
|
|
1567
|
+
invoiceTemplateTypes: Ar,
|
|
1568
|
+
invoiceTypeB: Dr,
|
|
1569
1569
|
invoiceTypeD: Er,
|
|
1570
|
-
invoiceTypeG:
|
|
1571
|
-
invoiceTypeH:
|
|
1570
|
+
invoiceTypeG: Ur,
|
|
1571
|
+
invoiceTypeH: jr,
|
|
1572
1572
|
invoiceTypeL: Mr,
|
|
1573
1573
|
invoiceTypeM: Hr,
|
|
1574
1574
|
invoiceTypeN: Kr,
|
|
@@ -1597,21 +1597,21 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1597
1597
|
or: ca,
|
|
1598
1598
|
orderCreated: la,
|
|
1599
1599
|
orderExpired: ua,
|
|
1600
|
-
orderInfo:
|
|
1601
|
-
orderSummary:
|
|
1600
|
+
orderInfo: ha,
|
|
1601
|
+
orderSummary: da,
|
|
1602
1602
|
organizationCert: fa,
|
|
1603
1603
|
package: "Gói",
|
|
1604
1604
|
passport: ga,
|
|
1605
1605
|
paymentAmount: pa,
|
|
1606
1606
|
paymentFailed: ma,
|
|
1607
|
-
paymentInstructions:
|
|
1608
|
-
paymentInstructionsTitle:
|
|
1607
|
+
paymentInstructions: va,
|
|
1608
|
+
paymentInstructionsTitle: ya,
|
|
1609
1609
|
paymentMethod: ba,
|
|
1610
1610
|
paymentSuccess: Sa,
|
|
1611
|
-
paymentTimeout:
|
|
1612
|
-
paymentTimeoutMessage:
|
|
1613
|
-
paymentTitle:
|
|
1614
|
-
permanentAddress:
|
|
1611
|
+
paymentTimeout: ka,
|
|
1612
|
+
paymentTimeoutMessage: xa,
|
|
1613
|
+
paymentTitle: $a,
|
|
1614
|
+
permanentAddress: Pa,
|
|
1615
1615
|
phone: Ca,
|
|
1616
1616
|
product: wa,
|
|
1617
1617
|
provider: Ta,
|
|
@@ -1621,11 +1621,11 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1621
1621
|
qrPaymentTitle: Na,
|
|
1622
1622
|
quantity: Ra,
|
|
1623
1623
|
registrationFee: Fa,
|
|
1624
|
-
required:
|
|
1625
|
-
returnHome:
|
|
1624
|
+
required: Aa,
|
|
1625
|
+
returnHome: Da,
|
|
1626
1626
|
returnToStep1: Ea,
|
|
1627
|
-
sampleNumberTooltip:
|
|
1628
|
-
save:
|
|
1627
|
+
sampleNumberTooltip: Ua,
|
|
1628
|
+
save: ja,
|
|
1629
1629
|
searchUnits: Ma,
|
|
1630
1630
|
selectFile: Ha,
|
|
1631
1631
|
selectInvoicePackage: Ka,
|
|
@@ -1652,23 +1652,23 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1652
1652
|
unit: cc,
|
|
1653
1653
|
unitInfo: lc,
|
|
1654
1654
|
unitPerMonth: uc,
|
|
1655
|
-
unitPrice:
|
|
1656
|
-
unitsPerMonth:
|
|
1655
|
+
unitPrice: hc,
|
|
1656
|
+
unitsPerMonth: dc,
|
|
1657
1657
|
uploadBackId: fc,
|
|
1658
1658
|
uploadFile: gc,
|
|
1659
1659
|
uploadFrontId: pc,
|
|
1660
1660
|
uploadLogo: mc,
|
|
1661
|
-
usagePolicy:
|
|
1662
|
-
ward:
|
|
1661
|
+
usagePolicy: vc,
|
|
1662
|
+
ward: yc,
|
|
1663
1663
|
website: bc,
|
|
1664
1664
|
widgetTitle: Sc,
|
|
1665
|
-
yearTooltip:
|
|
1665
|
+
yearTooltip: kc
|
|
1666
1666
|
}, {
|
|
1667
|
-
slice:
|
|
1668
|
-
forEach:
|
|
1667
|
+
slice: $c,
|
|
1668
|
+
forEach: Pc
|
|
1669
1669
|
} = [];
|
|
1670
1670
|
function Cc(o) {
|
|
1671
|
-
return
|
|
1671
|
+
return Pc.call($c.call(arguments, 1), (e) => {
|
|
1672
1672
|
if (e)
|
|
1673
1673
|
for (const t in e)
|
|
1674
1674
|
o[t] === void 0 && (o[t] = e[t]);
|
|
@@ -1677,7 +1677,7 @@ function Cc(o) {
|
|
|
1677
1677
|
function wc(o) {
|
|
1678
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));
|
|
1679
1679
|
}
|
|
1680
|
-
const
|
|
1680
|
+
const De = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Tc = function(o, e) {
|
|
1681
1681
|
const n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
1682
1682
|
path: "/"
|
|
1683
1683
|
}, i = encodeURIComponent(e);
|
|
@@ -1688,12 +1688,12 @@ const Ae = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Tc = function(o, e) {
|
|
|
1688
1688
|
s += `; Max-Age=${Math.floor(r)}`;
|
|
1689
1689
|
}
|
|
1690
1690
|
if (n.domain) {
|
|
1691
|
-
if (!
|
|
1691
|
+
if (!De.test(n.domain))
|
|
1692
1692
|
throw new TypeError("option domain is invalid");
|
|
1693
1693
|
s += `; Domain=${n.domain}`;
|
|
1694
1694
|
}
|
|
1695
1695
|
if (n.path) {
|
|
1696
|
-
if (!
|
|
1696
|
+
if (!De.test(n.path))
|
|
1697
1697
|
throw new TypeError("option path is invalid");
|
|
1698
1698
|
s += `; Path=${n.path}`;
|
|
1699
1699
|
}
|
|
@@ -1815,7 +1815,7 @@ var Oc = {
|
|
|
1815
1815
|
}
|
|
1816
1816
|
};
|
|
1817
1817
|
let M = null;
|
|
1818
|
-
const
|
|
1818
|
+
const Ue = () => {
|
|
1819
1819
|
if (M !== null) return M;
|
|
1820
1820
|
try {
|
|
1821
1821
|
if (M = typeof window != "undefined" && window.localStorage !== null, !M)
|
|
@@ -1834,7 +1834,7 @@ var Nc = {
|
|
|
1834
1834
|
let {
|
|
1835
1835
|
lookupLocalStorage: e
|
|
1836
1836
|
} = o;
|
|
1837
|
-
if (e &&
|
|
1837
|
+
if (e && Ue())
|
|
1838
1838
|
return window.localStorage.getItem(e) || void 0;
|
|
1839
1839
|
},
|
|
1840
1840
|
// Deconstruct the options object and extract the lookupLocalStorage property
|
|
@@ -1842,11 +1842,11 @@ var Nc = {
|
|
|
1842
1842
|
let {
|
|
1843
1843
|
lookupLocalStorage: t
|
|
1844
1844
|
} = e;
|
|
1845
|
-
t &&
|
|
1845
|
+
t && Ue() && window.localStorage.setItem(t, o);
|
|
1846
1846
|
}
|
|
1847
1847
|
};
|
|
1848
1848
|
let H = null;
|
|
1849
|
-
const
|
|
1849
|
+
const je = () => {
|
|
1850
1850
|
if (H !== null) return H;
|
|
1851
1851
|
try {
|
|
1852
1852
|
if (H = typeof window != "undefined" && window.sessionStorage !== null, !H)
|
|
@@ -1864,14 +1864,14 @@ var Rc = {
|
|
|
1864
1864
|
let {
|
|
1865
1865
|
lookupSessionStorage: e
|
|
1866
1866
|
} = o;
|
|
1867
|
-
if (e &&
|
|
1867
|
+
if (e && je())
|
|
1868
1868
|
return window.sessionStorage.getItem(e) || void 0;
|
|
1869
1869
|
},
|
|
1870
1870
|
cacheUserLanguage(o, e) {
|
|
1871
1871
|
let {
|
|
1872
1872
|
lookupSessionStorage: t
|
|
1873
1873
|
} = e;
|
|
1874
|
-
t &&
|
|
1874
|
+
t && je() && window.sessionStorage.setItem(t, o);
|
|
1875
1875
|
}
|
|
1876
1876
|
}, Fc = {
|
|
1877
1877
|
name: "navigator",
|
|
@@ -1890,7 +1890,7 @@ var Rc = {
|
|
|
1890
1890
|
}
|
|
1891
1891
|
return e.length > 0 ? e : void 0;
|
|
1892
1892
|
}
|
|
1893
|
-
},
|
|
1893
|
+
}, Ac = {
|
|
1894
1894
|
name: "htmlTag",
|
|
1895
1895
|
// Deconstruct the options object and extract the htmlTag property
|
|
1896
1896
|
lookup(o) {
|
|
@@ -1900,7 +1900,7 @@ var Rc = {
|
|
|
1900
1900
|
const n = e || (typeof document != "undefined" ? document.documentElement : null);
|
|
1901
1901
|
return n && typeof n.getAttribute == "function" && (t = n.getAttribute("lang")), t;
|
|
1902
1902
|
}
|
|
1903
|
-
},
|
|
1903
|
+
}, Dc = {
|
|
1904
1904
|
name: "path",
|
|
1905
1905
|
// Deconstruct the options object and extract the lookupFromPathIndex property
|
|
1906
1906
|
lookup(o) {
|
|
@@ -1931,7 +1931,7 @@ try {
|
|
|
1931
1931
|
}
|
|
1932
1932
|
const Ge = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
|
|
1933
1933
|
Qe || Ge.splice(1, 1);
|
|
1934
|
-
const
|
|
1934
|
+
const Uc = () => ({
|
|
1935
1935
|
order: Ge,
|
|
1936
1936
|
lookupQuerystring: "lng",
|
|
1937
1937
|
lookupCookie: "i18next",
|
|
@@ -1953,7 +1953,7 @@ class We {
|
|
|
1953
1953
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
1954
1954
|
languageUtils: {}
|
|
1955
1955
|
}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
1956
|
-
this.services = e, this.options = Cc(t, this.options || {},
|
|
1956
|
+
this.services = e, this.options = Cc(t, this.options || {}, Uc()), 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(Ac), this.addDetector(Dc), this.addDetector(Ec), this.addDetector(Ic);
|
|
1957
1957
|
}
|
|
1958
1958
|
addDetector(e) {
|
|
1959
1959
|
return this.detectors[e.name] = e, this;
|
|
@@ -1975,22 +1975,22 @@ class We {
|
|
|
1975
1975
|
}
|
|
1976
1976
|
}
|
|
1977
1977
|
We.type = "languageDetector";
|
|
1978
|
-
function
|
|
1978
|
+
function he(o) {
|
|
1979
1979
|
"@babel/helpers - typeof";
|
|
1980
|
-
return
|
|
1980
|
+
return he = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1981
1981
|
return typeof e;
|
|
1982
1982
|
} : function(e) {
|
|
1983
1983
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1984
|
-
},
|
|
1984
|
+
}, he(o);
|
|
1985
1985
|
}
|
|
1986
1986
|
function Xe() {
|
|
1987
|
-
return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest == "undefined" ? "undefined" :
|
|
1987
|
+
return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest == "undefined" ? "undefined" : he(XMLHttpRequest)) === "object";
|
|
1988
1988
|
}
|
|
1989
|
-
function
|
|
1989
|
+
function jc(o) {
|
|
1990
1990
|
return !!o && typeof o.then == "function";
|
|
1991
1991
|
}
|
|
1992
1992
|
function Mc(o) {
|
|
1993
|
-
return
|
|
1993
|
+
return jc(o) ? o : Promise.resolve(o);
|
|
1994
1994
|
}
|
|
1995
1995
|
function Me(o, e) {
|
|
1996
1996
|
var t = Object.keys(o);
|
|
@@ -2018,43 +2018,43 @@ function Hc(o, e, t) {
|
|
|
2018
2018
|
}
|
|
2019
2019
|
function Kc(o) {
|
|
2020
2020
|
var e = Bc(o, "string");
|
|
2021
|
-
return
|
|
2021
|
+
return U(e) == "symbol" ? e : e + "";
|
|
2022
2022
|
}
|
|
2023
2023
|
function Bc(o, e) {
|
|
2024
|
-
if (
|
|
2024
|
+
if (U(o) != "object" || !o) return o;
|
|
2025
2025
|
var t = o[Symbol.toPrimitive];
|
|
2026
2026
|
if (t !== void 0) {
|
|
2027
2027
|
var n = t.call(o, e);
|
|
2028
|
-
if (
|
|
2028
|
+
if (U(n) != "object") return n;
|
|
2029
2029
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2030
2030
|
}
|
|
2031
2031
|
return (e === "string" ? String : Number)(o);
|
|
2032
2032
|
}
|
|
2033
|
-
function
|
|
2033
|
+
function U(o) {
|
|
2034
2034
|
"@babel/helpers - typeof";
|
|
2035
|
-
return
|
|
2035
|
+
return U = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
2036
2036
|
return typeof e;
|
|
2037
2037
|
} : function(e) {
|
|
2038
2038
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2039
|
-
},
|
|
2039
|
+
}, U(o);
|
|
2040
2040
|
}
|
|
2041
|
-
var
|
|
2042
|
-
typeof global != "undefined" && global.fetch ?
|
|
2041
|
+
var D = typeof fetch == "function" ? fetch : void 0;
|
|
2042
|
+
typeof global != "undefined" && global.fetch ? D = global.fetch : typeof window != "undefined" && window.fetch && (D = window.fetch);
|
|
2043
2043
|
var X;
|
|
2044
2044
|
Xe() && (typeof global != "undefined" && global.XMLHttpRequest ? X = global.XMLHttpRequest : typeof window != "undefined" && window.XMLHttpRequest && (X = window.XMLHttpRequest));
|
|
2045
2045
|
var ie;
|
|
2046
2046
|
typeof ActiveXObject == "function" && (typeof global != "undefined" && global.ActiveXObject ? ie = global.ActiveXObject : typeof window != "undefined" && window.ActiveXObject && (ie = window.ActiveXObject));
|
|
2047
|
-
typeof
|
|
2048
|
-
if (!
|
|
2047
|
+
typeof D != "function" && (D = void 0);
|
|
2048
|
+
if (!D && !X && !ie)
|
|
2049
2049
|
try {
|
|
2050
2050
|
import("./browser-ponyfill-BxQPfTD2.js").then((o) => o.b).then(function(o) {
|
|
2051
|
-
|
|
2051
|
+
D = o.default;
|
|
2052
2052
|
}).catch(function() {
|
|
2053
2053
|
});
|
|
2054
2054
|
} catch (o) {
|
|
2055
2055
|
}
|
|
2056
|
-
var
|
|
2057
|
-
if (t &&
|
|
2056
|
+
var de = function(e, t) {
|
|
2057
|
+
if (t && U(t) === "object") {
|
|
2058
2058
|
var n = "";
|
|
2059
2059
|
for (var i in t)
|
|
2060
2060
|
n += "&" + encodeURIComponent(i) + "=" + encodeURIComponent(t[i]);
|
|
@@ -2081,9 +2081,9 @@ var he = function(e, t) {
|
|
|
2081
2081
|
return;
|
|
2082
2082
|
}
|
|
2083
2083
|
}
|
|
2084
|
-
typeof fetch == "function" ? fetch(e, t).then(s).catch(n) :
|
|
2084
|
+
typeof fetch == "function" ? fetch(e, t).then(s).catch(n) : D(e, t).then(s).catch(n);
|
|
2085
2085
|
}, Be = !1, qc = function(e, t, n, i) {
|
|
2086
|
-
e.queryStringParams && (t =
|
|
2086
|
+
e.queryStringParams && (t = de(t, e.queryStringParams));
|
|
2087
2087
|
var s = He({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
|
|
2088
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");
|
|
2089
2089
|
var r = typeof e.requestOptions == "function" ? e.requestOptions(n) : e.requestOptions, a = He({
|
|
@@ -2097,15 +2097,15 @@ var he = function(e, t) {
|
|
|
2097
2097
|
if (!r || Object.keys(r).length === 0 || !l.message || l.message.indexOf("not implemented") < 0)
|
|
2098
2098
|
return i(l);
|
|
2099
2099
|
try {
|
|
2100
|
-
Object.keys(r).forEach(function(
|
|
2101
|
-
delete a[
|
|
2100
|
+
Object.keys(r).forEach(function(h) {
|
|
2101
|
+
delete a[h];
|
|
2102
2102
|
}), Ke(t, a, i, c), Be = !0;
|
|
2103
|
-
} catch (
|
|
2104
|
-
i(
|
|
2103
|
+
} catch (h) {
|
|
2104
|
+
i(h);
|
|
2105
2105
|
}
|
|
2106
2106
|
}
|
|
2107
2107
|
}, Vc = function(e, t, n, i) {
|
|
2108
|
-
n &&
|
|
2108
|
+
n && U(n) === "object" && (n = de("", n).slice(1)), e.queryStringParams && (t = de(t, e.queryStringParams));
|
|
2109
2109
|
try {
|
|
2110
2110
|
var s = X ? new X() : new ie("MSXML2.XMLHTTP.3.0");
|
|
2111
2111
|
s.open(n ? "POST" : "GET", t, 1), e.crossDomain || s.setRequestHeader("X-Requested-With", "XMLHttpRequest"), s.withCredentials = !!e.withCredentials, n && s.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), s.overrideMimeType && s.overrideMimeType("application/json");
|
|
@@ -2124,7 +2124,7 @@ var he = function(e, t) {
|
|
|
2124
2124
|
}
|
|
2125
2125
|
}, zc = function(e, t, n, i) {
|
|
2126
2126
|
if (typeof n == "function" && (i = n, n = void 0), i = i || function() {
|
|
2127
|
-
},
|
|
2127
|
+
}, D && t.indexOf("file:") !== 0)
|
|
2128
2128
|
return qc(e, t, n, i);
|
|
2129
2129
|
if (Xe() || typeof ActiveXObject == "function")
|
|
2130
2130
|
return Vc(e, t, n, i);
|
|
@@ -2246,36 +2246,36 @@ var _c = function() {
|
|
|
2246
2246
|
var a = this, c = this.options.loadPath;
|
|
2247
2247
|
typeof this.options.loadPath == "function" && (c = this.options.loadPath(t, i)), c = Mc(c), c.then(function(l) {
|
|
2248
2248
|
if (!l) return r(null, {});
|
|
2249
|
-
var
|
|
2249
|
+
var h = a.services.interpolator.interpolate(l, {
|
|
2250
2250
|
lng: t.join("+"),
|
|
2251
2251
|
ns: i.join("+")
|
|
2252
2252
|
});
|
|
2253
|
-
a.loadUrl(
|
|
2253
|
+
a.loadUrl(h, r, n, s);
|
|
2254
2254
|
});
|
|
2255
2255
|
}
|
|
2256
2256
|
}, {
|
|
2257
2257
|
key: "loadUrl",
|
|
2258
2258
|
value: function(t, n, i, s) {
|
|
2259
2259
|
var r = this, a = typeof i == "string" ? [i] : i, c = typeof s == "string" ? [s] : s, l = this.options.parseLoadPayload(a, c);
|
|
2260
|
-
this.options.request(this.options, t, l, function(
|
|
2260
|
+
this.options.request(this.options, t, l, function(h, u) {
|
|
2261
2261
|
if (u && (u.status >= 500 && u.status < 600 || !u.status)) return n("failed loading " + t + "; status code: " + u.status, !0);
|
|
2262
2262
|
if (u && u.status >= 400 && u.status < 500) return n("failed loading " + t + "; status code: " + u.status, !1);
|
|
2263
|
-
if (!u &&
|
|
2264
|
-
var g =
|
|
2265
|
-
return g.indexOf(
|
|
2263
|
+
if (!u && h && h.message) {
|
|
2264
|
+
var g = h.message.toLowerCase(), f = ["failed", "fetch", "network", "load"].find(function(y) {
|
|
2265
|
+
return g.indexOf(y) > -1;
|
|
2266
2266
|
});
|
|
2267
2267
|
if (f)
|
|
2268
|
-
return n("failed loading " + t + ": " +
|
|
2268
|
+
return n("failed loading " + t + ": " + h.message, !0);
|
|
2269
2269
|
}
|
|
2270
|
-
if (
|
|
2271
|
-
var
|
|
2270
|
+
if (h) return n(h, !1);
|
|
2271
|
+
var d, v;
|
|
2272
2272
|
try {
|
|
2273
|
-
typeof u.data == "string" ?
|
|
2274
|
-
} catch (
|
|
2275
|
-
|
|
2273
|
+
typeof u.data == "string" ? d = r.options.parse(u.data, i, s) : d = u.data;
|
|
2274
|
+
} catch (y) {
|
|
2275
|
+
v = "failed parsing " + t + " to json";
|
|
2276
2276
|
}
|
|
2277
|
-
if (
|
|
2278
|
-
n(null,
|
|
2277
|
+
if (v) return n(v, !1);
|
|
2278
|
+
n(null, d);
|
|
2279
2279
|
});
|
|
2280
2280
|
}
|
|
2281
2281
|
}, {
|
|
@@ -2284,16 +2284,16 @@ var _c = function() {
|
|
|
2284
2284
|
var a = this;
|
|
2285
2285
|
if (this.options.addPath) {
|
|
2286
2286
|
typeof t == "string" && (t = [t]);
|
|
2287
|
-
var c = this.options.parsePayload(n, i, s), l = 0,
|
|
2287
|
+
var c = this.options.parsePayload(n, i, s), l = 0, h = [], u = [];
|
|
2288
2288
|
t.forEach(function(g) {
|
|
2289
2289
|
var f = a.options.addPath;
|
|
2290
2290
|
typeof a.options.addPath == "function" && (f = a.options.addPath(g, n));
|
|
2291
|
-
var
|
|
2291
|
+
var d = a.services.interpolator.interpolate(f, {
|
|
2292
2292
|
lng: g,
|
|
2293
2293
|
ns: n
|
|
2294
2294
|
});
|
|
2295
|
-
a.options.request(a.options,
|
|
2296
|
-
l += 1,
|
|
2295
|
+
a.options.request(a.options, d, c, function(v, y) {
|
|
2296
|
+
l += 1, h.push(v), u.push(y), l === t.length && typeof r == "function" && r(h, u);
|
|
2297
2297
|
});
|
|
2298
2298
|
});
|
|
2299
2299
|
}
|
|
@@ -2309,12 +2309,12 @@ var _c = function() {
|
|
|
2309
2309
|
c.indexOf(f) < 0 && c.push(f);
|
|
2310
2310
|
});
|
|
2311
2311
|
};
|
|
2312
|
-
l(a), this.allOptions.preload && this.allOptions.preload.forEach(function(
|
|
2313
|
-
return l(
|
|
2314
|
-
}), c.forEach(function(
|
|
2312
|
+
l(a), this.allOptions.preload && this.allOptions.preload.forEach(function(h) {
|
|
2313
|
+
return l(h);
|
|
2314
|
+
}), c.forEach(function(h) {
|
|
2315
2315
|
t.allOptions.ns.forEach(function(u) {
|
|
2316
|
-
i.read(
|
|
2317
|
-
g && r.warn("loading namespace ".concat(u, " for language ").concat(
|
|
2316
|
+
i.read(h, u, "read", null, null, function(g, f) {
|
|
2317
|
+
g && r.warn("loading namespace ".concat(u, " for language ").concat(h, " failed"), g), !g && f && r.log("loaded namespace ".concat(u, " for language ").concat(h), f), i.loaded("".concat(h, "|").concat(u), g, f);
|
|
2318
2318
|
});
|
|
2319
2319
|
});
|
|
2320
2320
|
});
|
|
@@ -2329,7 +2329,7 @@ b.use(Ye).use(We).init({
|
|
|
2329
2329
|
debug: !1,
|
|
2330
2330
|
resources: {
|
|
2331
2331
|
en: { translation: Yo },
|
|
2332
|
-
vi: { translation:
|
|
2332
|
+
vi: { translation: xc }
|
|
2333
2333
|
},
|
|
2334
2334
|
interpolation: {
|
|
2335
2335
|
escapeValue: !1
|
|
@@ -2340,7 +2340,7 @@ b.use(Ye).use(We).init({
|
|
|
2340
2340
|
function Jc(o) {
|
|
2341
2341
|
b.changeLanguage(o);
|
|
2342
2342
|
}
|
|
2343
|
-
function
|
|
2343
|
+
function sl(o, e) {
|
|
2344
2344
|
return b.t(o, p({ returnObjects: !0 }, e));
|
|
2345
2345
|
}
|
|
2346
2346
|
function Yc(o = "dev") {
|
|
@@ -2398,19 +2398,20 @@ function Zc() {
|
|
|
2398
2398
|
}
|
|
2399
2399
|
return "dev";
|
|
2400
2400
|
}
|
|
2401
|
-
function
|
|
2401
|
+
function rl() {
|
|
2402
2402
|
const o = Zc();
|
|
2403
2403
|
return Yc(o);
|
|
2404
2404
|
}
|
|
2405
|
-
const el = { fpt: { email: "info@minvoice.vn", hotline: "0901 80 16 18", link: "https://minvoice.vn", name: "fpt", onboarding: !0, sso: !0, isActive: !1 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !0, isActive: !0 } }, tl = { fpt: { email: "info@minvoice.vn", hotline: "0901 80 16 18", link: "https://minvoice.vn", name: "fpt", onboarding: !0, sso: !0, isActive: !1 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !0, isActive: !0 } }, nl = {
|
|
2406
|
-
|
|
2407
|
-
|
|
2405
|
+
const el = { bvb: { fpt: { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !1, link: "https://minvoice.vn", name: "fpt", onboarding: !0, sso: !0 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "https://test-tracuuhoadon.minvoice.com.vn/single/invoice", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !0 }, misa: { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !1, sso: !1 } }, ocb: { fpt: { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !1, link: "https://minvoice.vn", name: "fpt", onboarding: !0, sso: !0 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "https://test-tracuuhoadon.minvoice.com.vn/single/invoice", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !0 }, misa: { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !1, sso: !1 } } }, tl = { bvb: { fpt: { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !1, link: "https://minvoice.vn", name: "fpt", onboarding: !0, sso: !0 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "https://tracuuhoadon.minvoice.com.vn/single/invoice", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !0 }, misa: { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !1, sso: !1 } }, ocb: { fpt: { email: "info@minvoice.vn", hotline: "0901 80 16 18", isActive: !1, link: "https://minvoice.vn", name: "fpt", onboarding: !0, sso: !0 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !0 }, misa: { email: "info@minvoice.vn", hotline: "0901 80 16 18", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !1, sso: !1 } } }, nl = { bvb: { fpt: { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !1, link: "https://minvoice.vn", name: "fpt", onboarding: !0, sso: !0 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "https://test-tracuuhoadon.minvoice.com.vn/single/invoice", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !0 }, misa: { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !1, sso: !1 } }, ocb: { fpt: { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !1, link: "https://minvoice.vn", name: "fpt", onboarding: !0, sso: !0 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "https://test-tracuuhoadon.minvoice.com.vn/single/invoice", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !0 }, misa: { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !1, sso: !1 } } }, il = {
|
|
2406
|
+
dev: el,
|
|
2407
|
+
prod: tl,
|
|
2408
|
+
stag: nl
|
|
2408
2409
|
};
|
|
2409
2410
|
let ce = null, le = null;
|
|
2410
|
-
function
|
|
2411
|
+
function al(o) {
|
|
2411
2412
|
return se(this, null, function* () {
|
|
2412
2413
|
if (o.mode && Ze(o.mode), o.language && et(o.language), !le) {
|
|
2413
|
-
const { InvoiceRegisterWidget: n } = yield import("./widget-
|
|
2414
|
+
const { InvoiceRegisterWidget: n } = yield import("./widget-BlJFXKZM.js");
|
|
2414
2415
|
le = n;
|
|
2415
2416
|
}
|
|
2416
2417
|
const e = typeof o.selector == "string" ? document.querySelector(o.selector) : o.selector;
|
|
@@ -2429,10 +2430,10 @@ function rl(o) {
|
|
|
2429
2430
|
), { destroy: t };
|
|
2430
2431
|
});
|
|
2431
2432
|
}
|
|
2432
|
-
function
|
|
2433
|
+
function cl(o) {
|
|
2433
2434
|
return se(this, null, function* () {
|
|
2434
2435
|
if (o.mode && Ze(o.mode), o.language && et(o.language), !ce) {
|
|
2435
|
-
const { EContractWidget: n } = yield import("./widget-
|
|
2436
|
+
const { EContractWidget: n } = yield import("./widget-BlJFXKZM.js");
|
|
2436
2437
|
ce = n;
|
|
2437
2438
|
}
|
|
2438
2439
|
const e = typeof o.selector == "string" ? document.querySelector(o.selector) : o.selector;
|
|
@@ -2452,23 +2453,23 @@ function et(o) {
|
|
|
2452
2453
|
e.rerender && e.rerender();
|
|
2453
2454
|
});
|
|
2454
2455
|
}
|
|
2455
|
-
function
|
|
2456
|
+
function ll(o) {
|
|
2456
2457
|
ge.add(o);
|
|
2457
2458
|
}
|
|
2458
|
-
function
|
|
2459
|
+
function ul(o) {
|
|
2459
2460
|
ge.delete(o);
|
|
2460
2461
|
}
|
|
2461
|
-
function
|
|
2462
|
-
return
|
|
2462
|
+
function hl() {
|
|
2463
|
+
return il;
|
|
2463
2464
|
}
|
|
2464
2465
|
export {
|
|
2465
|
-
|
|
2466
|
+
cl as a,
|
|
2466
2467
|
et as b,
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2468
|
+
hl as c,
|
|
2469
|
+
rl as g,
|
|
2470
|
+
al as i,
|
|
2471
|
+
ll as r,
|
|
2472
|
+
il as s,
|
|
2473
|
+
sl as t,
|
|
2474
|
+
ul as u
|
|
2474
2475
|
};
|