@invoice-sdk/widget 1.54.0 → 1.55.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
|
+
}, w = (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 {
|
|
@@ -36,19 +36,19 @@ 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,
|
|
39
|
+
}, lt = /###/g, we = (o) => o && o.indexOf("###") > -1 ? o.replace(lt, ".") : o, xe = (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 (xe(o)) return {};
|
|
44
|
+
const s = we(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 xe(o) ? {} : {
|
|
48
48
|
obj: o,
|
|
49
|
-
k:
|
|
49
|
+
k: we(n[i])
|
|
50
50
|
};
|
|
51
|
-
},
|
|
51
|
+
}, $e = (o, e, t) => {
|
|
52
52
|
const {
|
|
53
53
|
obj: n,
|
|
54
54
|
k: i
|
|
@@ -212,7 +212,7 @@ class oe {
|
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
class
|
|
215
|
+
class Pe extends oe {
|
|
216
216
|
constructor(e, t = {
|
|
217
217
|
ns: ["translation"],
|
|
218
218
|
defaultNS: "translation"
|
|
@@ -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), $e(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 = g(g({}, c), n),
|
|
260
|
+
r.skipCopy || (n = JSON.parse(JSON.stringify(n))), i ? Ve(c, n, s) : c = g(g({}, c), n), $e(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 Ce = {}, 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");
|
|
@@ -357,16 +357,16 @@ class ne extends oe {
|
|
|
357
357
|
} : a;
|
|
358
358
|
const f = this.resolve(e, i);
|
|
359
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,
|
|
360
|
+
const v = (f == null ? void 0 : f.usedKey) || a, y = (f == null ? void 0 : f.exactUsedKey) || a, C = ["[object Number]", "[object Function]", "[object RegExp]"], P = i.joinArrays !== void 0 ? i.joinArrays : this.options.joinArrays, F = !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 = k && !i.ordinal && i.count === 0,
|
|
362
|
+
}) : "", B = k && !i.ordinal && i.count === 0, x = B && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${_}`] || i[`defaultValue${R}`] || i.defaultValue;
|
|
363
363
|
let S = d;
|
|
364
|
-
F && !d && N && (S =
|
|
364
|
+
F && !d && N && (S = x);
|
|
365
365
|
const tt = Te(S), nt = Object.prototype.toString.apply(S);
|
|
366
|
-
if (F && S && tt &&
|
|
366
|
+
if (F && S && tt && C.indexOf(nt) < 0 && !(m(P) && 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 L = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, S,
|
|
369
|
+
const L = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, S, w(g({}, i), {
|
|
370
370
|
ns: c
|
|
371
371
|
})) : `key '${a} (${this.language})' returned an object instead of string.`;
|
|
372
372
|
return s ? (f.res = L, f.usedParams = this.getUsedParamsDetails(i), f) : L;
|
|
@@ -376,47 +376,47 @@ class ne extends oe {
|
|
|
376
376
|
for (const O in S)
|
|
377
377
|
if (Object.prototype.hasOwnProperty.call(S, O)) {
|
|
378
378
|
const A = `${ge}${r}${O}`;
|
|
379
|
-
N && !d ? T[O] = this.translate(A,
|
|
380
|
-
defaultValue: Te(
|
|
379
|
+
N && !d ? T[O] = this.translate(A, w(g({}, i), {
|
|
380
|
+
defaultValue: Te(x) ? x[O] : void 0,
|
|
381
381
|
joinArrays: !1,
|
|
382
382
|
ns: c
|
|
383
|
-
})) : T[O] = this.translate(A,
|
|
383
|
+
})) : T[O] = this.translate(A, w(g({}, i), {
|
|
384
384
|
joinArrays: !1,
|
|
385
385
|
ns: c
|
|
386
386
|
})), T[O] === A && (T[O] = S[O]);
|
|
387
387
|
}
|
|
388
388
|
d = T;
|
|
389
389
|
}
|
|
390
|
-
} else if (F && m(
|
|
391
|
-
d = d.join(
|
|
390
|
+
} else if (F && m(P) && Array.isArray(d))
|
|
391
|
+
d = d.join(P), d && (d = this.extendTranslation(d, e, i, n));
|
|
392
392
|
else {
|
|
393
393
|
let L = !1, T = !1;
|
|
394
|
-
!this.isValidLookup(d) && N && (L = !0, d =
|
|
395
|
-
const O = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && T ? void 0 : d, A = N &&
|
|
394
|
+
!this.isValidLookup(d) && N && (L = !0, d = x), this.isValidLookup(d) || (T = !0, d = a);
|
|
395
|
+
const O = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && T ? void 0 : d, A = N && x !== d && this.options.updateMissing;
|
|
396
396
|
if (T || L || A) {
|
|
397
|
-
if (this.logger.log(A ? "updateKey" : "missingKey", u, l, a, A ?
|
|
398
|
-
const
|
|
397
|
+
if (this.logger.log(A ? "updateKey" : "missingKey", u, l, a, A ? x : d), r) {
|
|
398
|
+
const $ = this.resolve(a, w(g({}, i), {
|
|
399
399
|
keySeparator: !1
|
|
400
400
|
}));
|
|
401
|
-
|
|
401
|
+
$ && $.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 $ = 0; $ < J.length; $++)
|
|
407
|
+
q.push(J[$]);
|
|
408
408
|
else this.options.saveMissingTo === "all" ? q = this.languageUtils.toResolveHierarchy(i.lng || this.language) : q.push(i.lng || this.language);
|
|
409
|
-
const me = (
|
|
409
|
+
const me = ($, D, V) => {
|
|
410
410
|
var ye;
|
|
411
411
|
const ve = N && V !== d ? V : O;
|
|
412
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
412
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler($, l, D, ve, A, i) : (ye = this.backendConnector) != null && ye.saveMissing && this.backendConnector.saveMissing($, l, D, ve, A, i), this.emit("missingKey", $, l, D, d);
|
|
413
413
|
};
|
|
414
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && k ? q.forEach((
|
|
415
|
-
const
|
|
416
|
-
B && i[`defaultValue${this.options.pluralSeparator}zero`] &&
|
|
417
|
-
me([
|
|
414
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && k ? q.forEach(($) => {
|
|
415
|
+
const D = this.pluralResolver.getSuffixes($, i);
|
|
416
|
+
B && i[`defaultValue${this.options.pluralSeparator}zero`] && D.indexOf(`${this.options.pluralSeparator}zero`) < 0 && D.push(`${this.options.pluralSeparator}zero`), D.forEach((V) => {
|
|
417
|
+
me([$], a + V, i[`defaultValue${V}`] || x);
|
|
418
418
|
});
|
|
419
|
-
}) : me(q, a,
|
|
419
|
+
}) : me(q, a, x));
|
|
420
420
|
}
|
|
421
421
|
d = this.extendTranslation(d, e, i, f, n), T && d === a && this.options.appendNamespaceToMissingKey && (d = `${l}${h}${a}`), (T || L) && this.options.parseMissingKeyHandler && (d = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${h}${a}` : a, L ? d : void 0, i));
|
|
422
422
|
}
|
|
@@ -429,7 +429,7 @@ 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(w(g({}, n), {
|
|
433
433
|
interpolation: g(g({}, this.options.interpolation), n.interpolation)
|
|
434
434
|
}));
|
|
435
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);
|
|
@@ -447,7 +447,7 @@ class ne extends oe {
|
|
|
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 ? g({
|
|
450
|
-
i18nResolved:
|
|
450
|
+
i18nResolved: w(g({}, i), {
|
|
451
451
|
usedParams: this.getUsedParamsDetails(n)
|
|
452
452
|
})
|
|
453
453
|
}, n) : n, this)), e;
|
|
@@ -462,8 +462,8 @@ class ne extends oe {
|
|
|
462
462
|
this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
|
|
463
463
|
const p = t.count !== void 0 && !m(t.count), f = p && !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
464
|
u.forEach((y) => {
|
|
465
|
-
var
|
|
466
|
-
this.isValidLookup(n) || (a = y, !
|
|
465
|
+
var C, P;
|
|
466
|
+
this.isValidLookup(n) || (a = y, !Ce[`${v[0]}-${y}`] && ((C = this.utils) != null && C.hasLoadedNamespace) && !((P = this.utils) != null && P.hasLoadedNamespace(a)) && (Ce[`${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((F) => {
|
|
467
467
|
var _;
|
|
468
468
|
if (this.isValidLookup(n)) return;
|
|
469
469
|
r = F;
|
|
@@ -473,10 +473,10 @@ class ne extends oe {
|
|
|
473
473
|
else {
|
|
474
474
|
let R;
|
|
475
475
|
p && (R = this.pluralResolver.getSuffix(F, t.count, t));
|
|
476
|
-
const B = `${this.options.pluralSeparator}zero`,
|
|
477
|
-
if (p && (k.push(h + R), t.ordinal && R.indexOf(
|
|
476
|
+
const B = `${this.options.pluralSeparator}zero`, x = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
477
|
+
if (p && (k.push(h + R), t.ordinal && R.indexOf(x) === 0 && k.push(h + R.replace(x, this.options.pluralSeparator)), f && k.push(h + B)), d) {
|
|
478
478
|
const S = `${h}${this.options.contextSeparator}${t.context}`;
|
|
479
|
-
k.push(S), p && (k.push(S + R), t.ordinal && R.indexOf(
|
|
479
|
+
k.push(S), p && (k.push(S + R), t.ordinal && R.indexOf(x) === 0 && k.push(S + R.replace(x, this.options.pluralSeparator)), f && k.push(S + B));
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
let N;
|
|
@@ -670,10 +670,10 @@ class St {
|
|
|
670
670
|
nestingSuffix: d,
|
|
671
671
|
nestingSuffixEscaped: v,
|
|
672
672
|
nestingOptionsSeparator: y,
|
|
673
|
-
maxReplaces:
|
|
674
|
-
alwaysFormat:
|
|
673
|
+
maxReplaces: C,
|
|
674
|
+
alwaysFormat: P
|
|
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 ? j(s) : r || "{{", this.suffix = a ? j(a) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = h ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : h || "", this.nestingPrefix = p ? j(p) : f || j("$t("), this.nestingSuffix = d ? j(d) : v || j(")"), this.nestingOptionsSeparator = y || ",", this.maxReplaces =
|
|
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 = p ? j(p) : f || j("$t("), this.nestingSuffix = d ? j(d) : v || j(")"), this.nestingOptionsSeparator = y || ",", this.maxReplaces = C || 1e3, this.alwaysFormat = P !== void 0 ? P : !1, this.resetRegExp();
|
|
677
677
|
}
|
|
678
678
|
reset() {
|
|
679
679
|
this.options && this.init(this.options);
|
|
@@ -687,13 +687,13 @@ class St {
|
|
|
687
687
|
let s, r, a;
|
|
688
688
|
const c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (d) => {
|
|
689
689
|
if (d.indexOf(this.formatSeparator) < 0) {
|
|
690
|
-
const
|
|
691
|
-
return this.alwaysFormat ? this.format(
|
|
690
|
+
const P = Ne(t, c, d, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
691
|
+
return this.alwaysFormat ? this.format(P, void 0, n, w(g(g({}, i), t), {
|
|
692
692
|
interpolationkey: d
|
|
693
|
-
})) :
|
|
693
|
+
})) : P;
|
|
694
694
|
}
|
|
695
|
-
const v = d.split(this.formatSeparator), y = v.shift().trim(),
|
|
696
|
-
return this.format(Ne(t, c, y, this.options.keySeparator, this.options.ignoreJSONStructure),
|
|
695
|
+
const v = d.split(this.formatSeparator), y = v.shift().trim(), C = v.join(this.formatSeparator).trim();
|
|
696
|
+
return this.format(Ne(t, c, y, this.options.keySeparator, this.options.ignoreJSONStructure), C, n, w(g(g({}, i), t), {
|
|
697
697
|
interpolationkey: y
|
|
698
698
|
}));
|
|
699
699
|
};
|
|
@@ -710,8 +710,8 @@ class St {
|
|
|
710
710
|
const v = s[1].trim();
|
|
711
711
|
if (r = l(v), r === void 0)
|
|
712
712
|
if (typeof h == "function") {
|
|
713
|
-
const
|
|
714
|
-
r = m(
|
|
713
|
+
const C = h(e, s, i);
|
|
714
|
+
r = m(C) ? C : "";
|
|
715
715
|
} else if (i && Object.prototype.hasOwnProperty.call(i, v))
|
|
716
716
|
r = "";
|
|
717
717
|
else if (u) {
|
|
@@ -749,7 +749,7 @@ class St {
|
|
|
749
749
|
r = g({}, 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((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,
|
|
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, w(g({}, 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 kt = (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 = w(g({}, 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
|
+
}, wt = (o) => (e, t, n) => o(G(t), n)(e);
|
|
789
|
+
class xt {
|
|
790
790
|
constructor(e = {}) {
|
|
791
791
|
this.logger = I.create("formatter"), this.options = e, this.init(e);
|
|
792
792
|
}
|
|
@@ -794,14 +794,14 @@ class $t {
|
|
|
794
794
|
interpolation: {}
|
|
795
795
|
}) {
|
|
796
796
|
this.formatSeparator = t.interpolation.formatSeparator || ",";
|
|
797
|
-
const n = t.cacheInBuiltFormats ? Re :
|
|
797
|
+
const n = t.cacheInBuiltFormats ? Re : wt;
|
|
798
798
|
this.formats = {
|
|
799
799
|
number: n((i, s) => {
|
|
800
800
|
const r = new Intl.NumberFormat(i, g({}, 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, w(g({}, s), {
|
|
805
805
|
style: "currency"
|
|
806
806
|
}));
|
|
807
807
|
return (a) => r.format(a);
|
|
@@ -853,10 +853,10 @@ class $t {
|
|
|
853
853
|
}, e);
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
|
-
const
|
|
856
|
+
const $t = (o, e) => {
|
|
857
857
|
o.pending[e] !== void 0 && (delete o.pending[e], o.pendingCount--);
|
|
858
858
|
};
|
|
859
|
-
class
|
|
859
|
+
class Pt extends oe {
|
|
860
860
|
constructor(e, t, n, i = {}) {
|
|
861
861
|
var s, r;
|
|
862
862
|
super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = i, this.logger = I.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = i.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = i.maxRetries >= 0 ? i.maxRetries : 5, this.retryTimeout = i.retryTimeout >= 1 ? i.retryTimeout : 350, this.state = {}, this.queue = [], (r = (s = this.backend) == null ? void 0 : s.init) == null || r.call(s, n, i.backend, i);
|
|
@@ -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), $t(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 h = c.loaded[l];
|
|
895
895
|
h.length && h.forEach((u) => {
|
|
@@ -970,7 +970,7 @@ class Ct extends oe {
|
|
|
970
970
|
}
|
|
971
971
|
if (!(n == null || n === "")) {
|
|
972
972
|
if ((p = this.backend) != null && p.create) {
|
|
973
|
-
const f =
|
|
973
|
+
const f = w(g({}, r), {
|
|
974
974
|
isUpdate: s
|
|
975
975
|
}), d = this.backend.create.bind(this.backend);
|
|
976
976
|
if (d.length < 6)
|
|
@@ -1048,7 +1048,7 @@ const Ae = () => ({
|
|
|
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
|
+
}, Ct = (o) => {
|
|
1052
1052
|
Object.getOwnPropertyNames(Object.getPrototypeOf(o)).forEach((t) => {
|
|
1053
1053
|
typeof o[t] == "function" && (o[t] = o[t].bind(o));
|
|
1054
1054
|
});
|
|
@@ -1057,7 +1057,7 @@ class W extends oe {
|
|
|
1057
1057
|
constructor(e = {}, t) {
|
|
1058
1058
|
if (super(), this.options = Fe(e), this.services = {}, this.logger = I, this.modules = {
|
|
1059
1059
|
external: []
|
|
1060
|
-
},
|
|
1060
|
+
}, Ct(this), t && !this.isInitialized && !e.isClone) {
|
|
1061
1061
|
if (!this.options.initAsync)
|
|
1062
1062
|
return this.init(e, t), this;
|
|
1063
1063
|
setTimeout(() => {
|
|
@@ -1073,16 +1073,16 @@ class W extends oe {
|
|
|
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 = xt;
|
|
1077
1077
|
const h = new Le(this.options);
|
|
1078
|
-
this.store = new
|
|
1078
|
+
this.store = new Pe(this.options.resources, this.options);
|
|
1079
1079
|
const u = this.services;
|
|
1080
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
|
|
1085
|
+
}, u.backendConnector = new Pt(i(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (f, ...d) => {
|
|
1086
1086
|
this.emit(f, ...d);
|
|
1087
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
1088
|
this.emit(f, ...d);
|
|
@@ -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 = w(g(g({}, 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) => {
|
|
@@ -1249,7 +1249,7 @@ class W extends oe {
|
|
|
1249
1249
|
hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
|
|
1250
1250
|
}, n) {
|
|
1251
1251
|
const a = Object.keys(this.store.data).reduce((c, l) => (c[l] = g({}, this.store.data[l]), c[l] = Object.keys(c[l]).reduce((h, u) => (h[u] = g({}, c[l][u]), h), c[l]), c), {});
|
|
1252
|
-
s.store = new
|
|
1252
|
+
s.store = new Pe(a, i), s.services.resourceStore = s.store;
|
|
1253
1253
|
}
|
|
1254
1254
|
return s.translator = new ne(s.services, i), s.translator.on("*", (a, ...c) => {
|
|
1255
1255
|
s.emit(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", Lt = "Account Number", Ot = "Unit Address", It = "I agree with", Nt = "and", Rt = "Back", At = "Back ID Card", Ft = "Bank Name",
|
|
1286
|
+
const Tt = "Account Name", Lt = "Account Number", Ot = "Unit Address", It = "I agree with", Nt = "and", Rt = "Back", At = "Back ID Card", Ft = "Bank Name", Ut = "Beneficiary Bank", Dt = "Business Registration License", Et = "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", pn = "Enter Tax Authority Code", gn = "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", wn = "Invalid ID card", xn = "Invalid date of birth", $n = "Invalid email address", Pn = "Invalid ID card number", Cn = "Only letters, numbers and underscores allowed", Tn = "Invalid phone number", Ln = "Invalid provider name", On = "Invalid request", In = "Invalid tax authority code", Nn = "Invalid tax code", Rn = "Failed to load data", An = "Failed to load registration packages", Fn = "Failed to load invoice packages", Un = "Failed to load signature packages", Dn = "Network connection error", En = "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)", pi = "L (Tax Authority)", gi = "M (Cash Register)", mi = "N (Internal)", vi = "T (Registration)", yi = "Invoice type", bi = "X (Commercial)", Si = "4. E-INVOICE USAGE INFORMATION:", ki = "invoices/month", wi = "2. Legal Representative Information:", xi = "Please check and enter the correct legal representative name according to the uploaded business license.", $i = "Loading...", Pi = "Male", Ci = "Max 500KB", Ti = "Month", Li = "Most Suitable Package", Oi = "Continue", Ii = "No data available", Ni = "No package found.", Ri = "Please check your email inbox regularly to receive account information notifications from the provider.", Ai = "If you have not received the email account information (username/password) within 2 hours, please contact the information below for the fastest support:", Fi = "of", Ui = "OK", Di = "Optional", Ei = "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)", po = "Save", go = "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", wo = "Settings", xo = "Digital Signature Package", $o = "E-invoice software license", Po = "Information", Co = "Confirmation & Payment", To = "Invoice Package", Lo = "Subscription Package", Oo = "Tax Authority", Io = "5 characters issued by the Authority for cash register bills", No = "Unit Tax Code", Ro = "Terms and Usage Policy", Ao = "Time Left", Fo = "Total", Uo = "Total Amount", Do = "Total Price", Eo = "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: Lt,
|
|
1289
1289
|
address: Ot,
|
|
@@ -1292,8 +1292,8 @@ const Tt = "Account Name", Lt = "Account Number", Ot = "Unit Address", It = "I a
|
|
|
1292
1292
|
back: Rt,
|
|
1293
1293
|
backIdCard: At,
|
|
1294
1294
|
bankName: Ft,
|
|
1295
|
-
beneficiaryBank:
|
|
1296
|
-
businessLicense:
|
|
1295
|
+
beneficiaryBank: Ut,
|
|
1296
|
+
businessLicense: Dt,
|
|
1297
1297
|
cancel: Et,
|
|
1298
1298
|
cancelTransaction: jt,
|
|
1299
1299
|
close: Mt,
|
|
@@ -1333,11 +1333,11 @@ const Tt = "Account Name", Lt = "Account Number", Ot = "Unit Address", It = "I a
|
|
|
1333
1333
|
errorFileSize: bn,
|
|
1334
1334
|
errorForbidden: Sn,
|
|
1335
1335
|
errorInvalidAddress: kn,
|
|
1336
|
-
errorInvalidCard:
|
|
1337
|
-
errorInvalidDate:
|
|
1338
|
-
errorInvalidEmail:
|
|
1339
|
-
errorInvalidIdCard:
|
|
1340
|
-
errorInvalidName:
|
|
1336
|
+
errorInvalidCard: wn,
|
|
1337
|
+
errorInvalidDate: xn,
|
|
1338
|
+
errorInvalidEmail: $n,
|
|
1339
|
+
errorInvalidIdCard: Pn,
|
|
1340
|
+
errorInvalidName: Cn,
|
|
1341
1341
|
errorInvalidPhone: Tn,
|
|
1342
1342
|
errorInvalidProviderName: Ln,
|
|
1343
1343
|
errorInvalidRequest: On,
|
|
@@ -1346,8 +1346,8 @@ const Tt = "Account Name", Lt = "Account Number", Ot = "Unit Address", It = "I a
|
|
|
1346
1346
|
errorLoadingData: Rn,
|
|
1347
1347
|
errorLoadingInitPackages: An,
|
|
1348
1348
|
errorLoadingInvoicePackages: Fn,
|
|
1349
|
-
errorLoadingSignaturePackages:
|
|
1350
|
-
errorNetwork:
|
|
1349
|
+
errorLoadingSignaturePackages: Un,
|
|
1350
|
+
errorNetwork: Dn,
|
|
1351
1351
|
errorNotFound: En,
|
|
1352
1352
|
errorOrderStatus: jn,
|
|
1353
1353
|
errorQRGeneration: Mn,
|
|
@@ -1387,11 +1387,11 @@ const Tt = "Account Name", Lt = "Account Number", Ot = "Unit Address", It = "I a
|
|
|
1387
1387
|
invoiceTypeX: bi,
|
|
1388
1388
|
invoiceUsageInfo: Si,
|
|
1389
1389
|
invoicesPerMonth: ki,
|
|
1390
|
-
legalRepInfo:
|
|
1391
|
-
legalRepNote:
|
|
1392
|
-
loading:
|
|
1393
|
-
male:
|
|
1394
|
-
maxFileSize:
|
|
1390
|
+
legalRepInfo: wi,
|
|
1391
|
+
legalRepNote: xi,
|
|
1392
|
+
loading: $i,
|
|
1393
|
+
male: Pi,
|
|
1394
|
+
maxFileSize: Ci,
|
|
1395
1395
|
month: Ti,
|
|
1396
1396
|
mostSuitablePackage: Li,
|
|
1397
1397
|
next: Oi,
|
|
@@ -1402,8 +1402,8 @@ const Tt = "Account Name", Lt = "Account Number", Ot = "Unit Address", It = "I a
|
|
|
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
1404
|
of: Fi,
|
|
1405
|
-
ok:
|
|
1406
|
-
optional:
|
|
1405
|
+
ok: Ui,
|
|
1406
|
+
optional: Di,
|
|
1407
1407
|
or: Ei,
|
|
1408
1408
|
orderCreated: ji,
|
|
1409
1409
|
orderExpired: Mi,
|
|
@@ -1443,11 +1443,11 @@ const Tt = "Account Name", Lt = "Account Number", Ot = "Unit Address", It = "I a
|
|
|
1443
1443
|
selectSignaturePackage: bo,
|
|
1444
1444
|
selectSubscriptionPackage: So,
|
|
1445
1445
|
selectedProducts: ko,
|
|
1446
|
-
settings:
|
|
1447
|
-
signaturePackage:
|
|
1448
|
-
softwareLicense:
|
|
1449
|
-
stepInfo:
|
|
1450
|
-
stepPayment:
|
|
1446
|
+
settings: wo,
|
|
1447
|
+
signaturePackage: xo,
|
|
1448
|
+
softwareLicense: $o,
|
|
1449
|
+
stepInfo: Po,
|
|
1450
|
+
stepPayment: Co,
|
|
1451
1451
|
stepPlan: To,
|
|
1452
1452
|
subscriptionPackage: Lo,
|
|
1453
1453
|
taxAuthority: Oo,
|
|
@@ -1456,8 +1456,8 @@ const Tt = "Account Name", Lt = "Account Number", Ot = "Unit Address", It = "I a
|
|
|
1456
1456
|
termsAndUsagePolicy: Ro,
|
|
1457
1457
|
timeLeft: Ao,
|
|
1458
1458
|
total: Fo,
|
|
1459
|
-
totalAmount:
|
|
1460
|
-
totalPrice:
|
|
1459
|
+
totalAmount: Uo,
|
|
1460
|
+
totalPrice: Do,
|
|
1461
1461
|
transactionCanceled: Eo,
|
|
1462
1462
|
unit: jo,
|
|
1463
1463
|
unitInfo: Mo,
|
|
@@ -1473,7 +1473,7 @@ const Tt = "Account Name", Lt = "Account Number", Ot = "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", hs = "Đóng", ds = "C (Có mã CQT)", fs = "K (Không mã)", ps = "C: Có mã CQT, K: Không mã", gs = "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ệ:",
|
|
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ã)", ps = "C: Có mã CQT, K: Không mã", gs = "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ệ:", ws = "Bản", xs = "Quốc gia", $s = "2 ký tự tùy chọn (mặc định: YY)", Ps = "Số lượng tùy chỉnh", Cs = "Ngày sinh", Ts = "Giảm", Ls = "Gói chữ ký số", Os = "Quận/Huyện", Is = "Thời hạn", Ns = "E-Contract", Rs = "Chỉnh sửa", As = "hóa đơn điện tử", Fs = "Email", Us = "Nhập số CMND/CCCD", Ds = "Nhập ký hiệu hóa đơn", Es = "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", pr = "Dịch vụ tạm thời không khả dụng", gr = "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", wr = "Họ và tên", xr = "Giới tính", $r = "Bạn đã sử dụng hoá đơn điện tử?", Pr = "Bạn đang sử dụng nhà NCC hoá đơn điện tử khác M-invoice không?", Cr = "(Tổng đài Tư vấn, Hỗ trợ miễn phí)", Tr = "Hotline:", Lr = "CCCD", Or = "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", Ar = "Mẫu số", Fr = { 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ế)" }, Ur = "B (Đại lý)", Dr = "D (Tài sản)", Er = "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", pa = "Hộ chiếu", ga = "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", wa = "Hết thời gian thanh toán! Vui lòng thử lại.", xa = "Thanh toán", $a = "Địa chỉ thường trú", Pa = "Số điện thoại", Ca = "Sản phẩm", Ta = "Nhà cung cấp", La = "Tên NCC", Oa = "Tỉnh/Thành phố", Ia = "Thanh toán qua mã QR", Na = "Quét mã QR để thanh toán", Ra = "Số lượng", Aa = "Phí đăng ký", Fa = "Bắt buộc", Ua = "Trở về trang chủ", Da = "Quay lại bước 1", Ea = "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", pc = "Tải lên tệp", gc = "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)", wc = {
|
|
1477
1477
|
accountName: Zo,
|
|
1478
1478
|
accountNumber: es,
|
|
1479
1479
|
address: ts,
|
|
@@ -1497,11 +1497,11 @@ const Tt = "Account Name", Lt = "Account Number", Ot = "Unit Address", It = "I a
|
|
|
1497
1497
|
confirm: bs,
|
|
1498
1498
|
confirmationTitle: Ss,
|
|
1499
1499
|
contactInfo: ks,
|
|
1500
|
-
copy:
|
|
1501
|
-
country:
|
|
1502
|
-
customLettersTooltip:
|
|
1503
|
-
customUnits:
|
|
1504
|
-
dateOfBirth:
|
|
1500
|
+
copy: ws,
|
|
1501
|
+
country: xs,
|
|
1502
|
+
customLettersTooltip: $s,
|
|
1503
|
+
customUnits: Ps,
|
|
1504
|
+
dateOfBirth: Cs,
|
|
1505
1505
|
decrease: Ts,
|
|
1506
1506
|
delete: "Xóa",
|
|
1507
1507
|
digitalSignaturePackage: Ls,
|
|
@@ -1511,8 +1511,8 @@ const Tt = "Account Name", Lt = "Account Number", Ot = "Unit Address", It = "I a
|
|
|
1511
1511
|
edit: Rs,
|
|
1512
1512
|
electronicInvoices: As,
|
|
1513
1513
|
email: Fs,
|
|
1514
|
-
enterIdCard:
|
|
1515
|
-
enterInvoiceSymbol:
|
|
1514
|
+
enterIdCard: Us,
|
|
1515
|
+
enterInvoiceSymbol: Ds,
|
|
1516
1516
|
enterPassport: Es,
|
|
1517
1517
|
enterProviderName: js,
|
|
1518
1518
|
enterTaxAuthorityCode: Ms,
|
|
@@ -1552,11 +1552,11 @@ const Tt = "Account Name", Lt = "Account Number", Ot = "Unit Address", It = "I a
|
|
|
1552
1552
|
female: br,
|
|
1553
1553
|
fileFormat: Sr,
|
|
1554
1554
|
frontIdCard: kr,
|
|
1555
|
-
fullName:
|
|
1556
|
-
gender:
|
|
1557
|
-
hasUsedEInvoice:
|
|
1558
|
-
hasUsedEInvoiceBefore:
|
|
1559
|
-
hotlineDesc:
|
|
1555
|
+
fullName: wr,
|
|
1556
|
+
gender: xr,
|
|
1557
|
+
hasUsedEInvoice: $r,
|
|
1558
|
+
hasUsedEInvoiceBefore: Pr,
|
|
1559
|
+
hotlineDesc: Cr,
|
|
1560
1560
|
hotlineDomestic: Tr,
|
|
1561
1561
|
idNumber: Lr,
|
|
1562
1562
|
increase: Or,
|
|
@@ -1565,8 +1565,8 @@ const Tt = "Account Name", Lt = "Account Number", Ot = "Unit Address", It = "I a
|
|
|
1565
1565
|
invoiceSymbol: Rr,
|
|
1566
1566
|
invoiceTemplate: Ar,
|
|
1567
1567
|
invoiceTemplateTypes: Fr,
|
|
1568
|
-
invoiceTypeB:
|
|
1569
|
-
invoiceTypeD:
|
|
1568
|
+
invoiceTypeB: Ur,
|
|
1569
|
+
invoiceTypeD: Dr,
|
|
1570
1570
|
invoiceTypeG: Er,
|
|
1571
1571
|
invoiceTypeH: jr,
|
|
1572
1572
|
invoiceTypeL: Mr,
|
|
@@ -1609,11 +1609,11 @@ const Tt = "Account Name", Lt = "Account Number", Ot = "Unit Address", It = "I a
|
|
|
1609
1609
|
paymentMethod: ba,
|
|
1610
1610
|
paymentSuccess: Sa,
|
|
1611
1611
|
paymentTimeout: ka,
|
|
1612
|
-
paymentTimeoutMessage:
|
|
1613
|
-
paymentTitle:
|
|
1614
|
-
permanentAddress:
|
|
1615
|
-
phone:
|
|
1616
|
-
product:
|
|
1612
|
+
paymentTimeoutMessage: wa,
|
|
1613
|
+
paymentTitle: xa,
|
|
1614
|
+
permanentAddress: $a,
|
|
1615
|
+
phone: Pa,
|
|
1616
|
+
product: Ca,
|
|
1617
1617
|
provider: Ta,
|
|
1618
1618
|
providerName: La,
|
|
1619
1619
|
province: Oa,
|
|
@@ -1622,8 +1622,8 @@ const Tt = "Account Name", Lt = "Account Number", Ot = "Unit Address", It = "I a
|
|
|
1622
1622
|
quantity: Ra,
|
|
1623
1623
|
registrationFee: Aa,
|
|
1624
1624
|
required: Fa,
|
|
1625
|
-
returnHome:
|
|
1626
|
-
returnToStep1:
|
|
1625
|
+
returnHome: Ua,
|
|
1626
|
+
returnToStep1: Da,
|
|
1627
1627
|
sampleNumberTooltip: Ea,
|
|
1628
1628
|
save: ja,
|
|
1629
1629
|
searchUnits: Ma,
|
|
@@ -1664,20 +1664,20 @@ const Tt = "Account Name", Lt = "Account Number", Ot = "Unit Address", It = "I a
|
|
|
1664
1664
|
widgetTitle: Sc,
|
|
1665
1665
|
yearTooltip: kc
|
|
1666
1666
|
}, {
|
|
1667
|
-
slice:
|
|
1668
|
-
forEach:
|
|
1667
|
+
slice: xc,
|
|
1668
|
+
forEach: $c
|
|
1669
1669
|
} = [];
|
|
1670
|
-
function
|
|
1671
|
-
return
|
|
1670
|
+
function Pc(o) {
|
|
1671
|
+
return $c.call(xc.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]);
|
|
1675
1675
|
}), o;
|
|
1676
1676
|
}
|
|
1677
|
-
function
|
|
1677
|
+
function Cc(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 Ue = /^[\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 De = /^[\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 (!Ue.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 (!Ue.test(n.path))
|
|
1697
1697
|
throw new TypeError("option path is invalid");
|
|
1698
1698
|
s += `; Path=${n.path}`;
|
|
1699
1699
|
}
|
|
@@ -1720,7 +1720,7 @@ const De = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Tc = function(o, e) {
|
|
|
1720
1720
|
throw new TypeError("option sameSite is invalid");
|
|
1721
1721
|
}
|
|
1722
1722
|
return n.partitioned && (s += "; Partitioned"), s;
|
|
1723
|
-
},
|
|
1723
|
+
}, De = {
|
|
1724
1724
|
create(o, e, t, n) {
|
|
1725
1725
|
let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
1726
1726
|
path: "/",
|
|
@@ -1749,7 +1749,7 @@ var Lc = {
|
|
|
1749
1749
|
lookupCookie: e
|
|
1750
1750
|
} = o;
|
|
1751
1751
|
if (e && typeof document != "undefined")
|
|
1752
|
-
return
|
|
1752
|
+
return De.read(e) || void 0;
|
|
1753
1753
|
},
|
|
1754
1754
|
// Deconstruct the options object and extract the lookupCookie, cookieMinutes, cookieDomain, and cookieOptions properties
|
|
1755
1755
|
cacheUserLanguage(o, e) {
|
|
@@ -1759,7 +1759,7 @@ var Lc = {
|
|
|
1759
1759
|
cookieDomain: i,
|
|
1760
1760
|
cookieOptions: s
|
|
1761
1761
|
} = e;
|
|
1762
|
-
t && typeof document != "undefined" &&
|
|
1762
|
+
t && typeof document != "undefined" && De.create(t, o, n, i, s);
|
|
1763
1763
|
}
|
|
1764
1764
|
}, Oc = {
|
|
1765
1765
|
name: "querystring",
|
|
@@ -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
|
+
}, Uc = {
|
|
1904
1904
|
name: "path",
|
|
1905
1905
|
// Deconstruct the options object and extract the lookupFromPathIndex property
|
|
1906
1906
|
lookup(o) {
|
|
@@ -1912,7 +1912,7 @@ var Rc = {
|
|
|
1912
1912
|
const t = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
|
|
1913
1913
|
return Array.isArray(t) ? (i = t[typeof e == "number" ? e : 0]) == null ? void 0 : i.replace("/", "") : void 0;
|
|
1914
1914
|
}
|
|
1915
|
-
},
|
|
1915
|
+
}, Dc = {
|
|
1916
1916
|
name: "subdomain",
|
|
1917
1917
|
lookup(o) {
|
|
1918
1918
|
var i, s;
|
|
@@ -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 =
|
|
1956
|
+
this.services = e, this.options = Pc(t, this.options || {}, Ec()), 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(Lc), this.addDetector(Oc), this.addDetector(Nc), this.addDetector(Rc), this.addDetector(Ac), this.addDetector(Fc), this.addDetector(Uc), this.addDetector(Dc), this.addDetector(Ic);
|
|
1957
1957
|
}
|
|
1958
1958
|
addDetector(e) {
|
|
1959
1959
|
return this.detectors[e.name] = e, this;
|
|
@@ -1965,7 +1965,7 @@ class We {
|
|
|
1965
1965
|
let i = this.detectors[n].lookup(this.options);
|
|
1966
1966
|
i && typeof i == "string" && (i = [i]), i && (t = t.concat(i));
|
|
1967
1967
|
}
|
|
1968
|
-
}), t = t.filter((n) => n != null && !
|
|
1968
|
+
}), t = t.filter((n) => n != null && !Cc(n)).map((n) => this.options.convertDetectedLanguage(n)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? t : t.length > 0 ? t[0] : null;
|
|
1969
1969
|
}
|
|
1970
1970
|
cacheUserLanguage(e) {
|
|
1971
1971
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
|
|
@@ -2038,17 +2038,17 @@ function E(o) {
|
|
|
2038
2038
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2039
2039
|
}, E(o);
|
|
2040
2040
|
}
|
|
2041
|
-
var
|
|
2042
|
-
typeof global != "undefined" && global.fetch ?
|
|
2041
|
+
var U = typeof fetch == "function" ? fetch : void 0;
|
|
2042
|
+
typeof global != "undefined" && global.fetch ? U = global.fetch : typeof window != "undefined" && window.fetch && (U = 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 U != "function" && (U = void 0);
|
|
2048
|
+
if (!U && !X && !ie)
|
|
2049
2049
|
try {
|
|
2050
2050
|
import("./browser-ponyfill-BxQPfTD2.js").then((o) => o.b).then(function(o) {
|
|
2051
|
-
|
|
2051
|
+
U = o.default;
|
|
2052
2052
|
}).catch(function() {
|
|
2053
2053
|
});
|
|
2054
2054
|
} catch (o) {
|
|
@@ -2081,7 +2081,7 @@ var de = 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) : U(e, t).then(s).catch(n);
|
|
2085
2085
|
}, Be = !1, qc = function(e, t, n, i) {
|
|
2086
2086
|
e.queryStringParams && (t = de(t, e.queryStringParams));
|
|
2087
2087
|
var s = He({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
|
|
@@ -2124,7 +2124,7 @@ var de = 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
|
+
}, U && 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);
|
|
@@ -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: wc }
|
|
2333
2333
|
},
|
|
2334
2334
|
interpolation: {
|
|
2335
2335
|
escapeValue: !1
|
|
@@ -2402,18 +2402,18 @@ function cl() {
|
|
|
2402
2402
|
const o = Zc();
|
|
2403
2403
|
return Yc(o);
|
|
2404
2404
|
}
|
|
2405
|
-
const el = { bvb: { fpt: { email: "
|
|
2405
|
+
const el = { bvb: { fpt: { email: "", hotline: "", invoiceLookupUrl: "", isActive: !0, link: "", name: "fpt", onboarding: !1, sso: !1 }, "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: !1 }, misa: { email: "", hotline: "", invoiceLookupUrl: "https://test.meinvoice.vn/tra-cuu", isActive: !0, link: "https://www.misa.vn", name: "misa", onboarding: !1, sso: !1 } }, ocb: { fpt: { email: "", hotline: "", invoiceLookupUrl: "", isActive: !0, link: "", name: "fpt", onboarding: !1, sso: !1 }, "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: !1 }, misa: { email: "", hotline: "", invoiceLookupUrl: "https://test.meinvoice.vn/tra-cuu", isActive: !0, link: "https://www.misa.vn", name: "misa", onboarding: !1, sso: !1 } } }, tl = { bvb: { fpt: { email: "", hotline: "", invoiceLookupUrl: "", isActive: !1, link: "", name: "fpt", onboarding: !1, sso: !1 }, "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: !1 }, misa: { email: "", hotline: "", invoiceLookupUrl: "https://test.meinvoice.vn/tra-cuu", isActive: !1, link: "https://www.misa.vn", name: "misa", onboarding: !1, sso: !1 } }, ocb: { fpt: { email: "", hotline: "", invoiceLookupUrl: "", isActive: !1, link: "", name: "fpt", onboarding: !1, sso: !1 }, "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: !1 }, misa: { email: "", hotline: "", invoiceLookupUrl: "https://test.meinvoice.vn/tra-cuu", isActive: !1, link: "https://www.misa.vn", name: "misa", onboarding: !1, sso: !1 } } }, nl = { bvb: { fpt: { email: "", hotline: "", invoiceLookupUrl: "", isActive: !1, link: "", name: "fpt", onboarding: !1, sso: !1 }, "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: !1 }, misa: { email: "", hotline: "", invoiceLookupUrl: "https://www.meinvoice.vn/tra-cuu/", isActive: !1, link: "https://www.misa.vn", name: "misa", onboarding: !1, sso: !1 } }, ocb: { fpt: { email: "", hotline: "", invoiceLookupUrl: "", isActive: !1, link: "", name: "fpt", onboarding: !1, sso: !1 }, "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: !1 }, misa: { email: "", hotline: "", invoiceLookupUrl: "https://www.meinvoice.vn/tra-cuu/", isActive: !1, link: "https://www.misa.vn", name: "misa", onboarding: !1, sso: !1 } } }, il = { bvb: { fpt: { email: "", hotline: "", invoiceLookupUrl: "", isActive: !1, link: "", name: "fpt", onboarding: !1, sso: !1 }, "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: !1 }, misa: { email: "", hotline: "", invoiceLookupUrl: "https://test.meinvoice.vn/tra-cuu", isActive: !1, link: "https://www.misa.vn", name: "misa", onboarding: !1, sso: !1 } }, ocb: { fpt: { email: "", hotline: "", invoiceLookupUrl: "", isActive: !1, link: "", name: "fpt", onboarding: !1, sso: !1 }, "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: !1 }, misa: { email: "", hotline: "", invoiceLookupUrl: "https://test.meinvoice.vn/tra-cuu", isActive: !1, link: "https://www.misa.vn", name: "misa", onboarding: !1, sso: !1 } } }, ol = { bvb: { fpt: { email: "", hotline: "", invoiceLookupUrl: "", isActive: !1, link: "", name: "fpt", onboarding: !1, sso: !1 }, "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: !1 }, misa: { email: "", hotline: "", invoiceLookupUrl: "https://test.meinvoice.vn/tra-cuu", isActive: !1, link: "https://www.misa.vn", name: "misa", onboarding: !1, sso: !1 } }, ocb: { fpt: { email: "", hotline: "", invoiceLookupUrl: "", isActive: !1, link: "", name: "fpt", onboarding: !1, sso: !1 }, "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: !1 }, misa: { email: "", hotline: "", invoiceLookupUrl: "https://test.meinvoice.vn/tra-cuu", isActive: !1, link: "https://www.misa.vn", name: "misa", onboarding: !1, sso: !1 } } }, sl = {
|
|
2406
2406
|
dev: el,
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2407
|
+
pilot: tl,
|
|
2408
|
+
prod: nl,
|
|
2409
|
+
stag: il,
|
|
2410
|
+
uat: ol
|
|
2411
2411
|
};
|
|
2412
2412
|
let ce = null, le = null;
|
|
2413
2413
|
function ll(o) {
|
|
2414
2414
|
return se(this, null, function* () {
|
|
2415
2415
|
if (o.mode && Ze(o.mode), o.language && et(o.language), !le) {
|
|
2416
|
-
const { InvoiceRegisterWidget: n } = yield import("./widget-
|
|
2416
|
+
const { InvoiceRegisterWidget: n } = yield import("./widget-D-y7_RyC.js");
|
|
2417
2417
|
le = n;
|
|
2418
2418
|
}
|
|
2419
2419
|
const e = typeof o.selector == "string" ? document.querySelector(o.selector) : o.selector;
|
|
@@ -2436,7 +2436,7 @@ function ll(o) {
|
|
|
2436
2436
|
function ul(o) {
|
|
2437
2437
|
return se(this, null, function* () {
|
|
2438
2438
|
if (o.mode && Ze(o.mode), o.language && et(o.language), !ce) {
|
|
2439
|
-
const { EContractWidget: n } = yield import("./widget-
|
|
2439
|
+
const { EContractWidget: n } = yield import("./widget-D-y7_RyC.js");
|
|
2440
2440
|
ce = n;
|
|
2441
2441
|
}
|
|
2442
2442
|
const e = typeof o.selector == "string" ? document.querySelector(o.selector) : o.selector;
|