@invoice-sdk/widget 1.53.0 → 1.54.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.
- package/dist/{index-Co5VX7_D.js → index-BITLyG5P.js} +213 -210
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +28 -28
- package/dist/{widget-Cz9Qsev0.js → widget-uo9gnBkO.js} +1316 -1314
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ var it = Object.defineProperty, ot = Object.defineProperties;
|
|
|
2
2
|
var st = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var be = Object.getOwnPropertySymbols;
|
|
4
4
|
var rt = Object.prototype.hasOwnProperty, at = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Se = (o, e, t) => e in o ? it(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t,
|
|
5
|
+
var Se = (o, e, t) => e in o ? it(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, g = (o, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
7
|
rt.call(e, t) && Se(o, t, e[t]);
|
|
8
8
|
if (be)
|
|
@@ -91,7 +91,7 @@ var dt = {
|
|
|
91
91
|
"/": "/"
|
|
92
92
|
};
|
|
93
93
|
const ft = (o) => m(o) ? o.replace(/[&<>"'\/]/g, (e) => dt[e]) : o;
|
|
94
|
-
class
|
|
94
|
+
class pt {
|
|
95
95
|
constructor(e) {
|
|
96
96
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
97
97
|
}
|
|
@@ -103,9 +103,9 @@ 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
|
|
106
|
+
const gt = [" ", ",", "?", "!", ";"], mt = new pt(20), vt = (o, e, t) => {
|
|
107
107
|
e = e || "", t = t || "";
|
|
108
|
-
const n =
|
|
108
|
+
const n = gt.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
|
|
109
109
|
if (n.length === 0) return !0;
|
|
110
110
|
const i = mt.getRegExp(`(${n.map((r) => r === "?" ? "\\?" : r).join("|")})`);
|
|
111
111
|
let s = !i.test(o);
|
|
@@ -173,7 +173,7 @@ class te {
|
|
|
173
173
|
return i && !this.debug ? null : (m(e[0]) && (e[0] = `${n}${this.prefix} ${e[0]}`), this.logger[t](e));
|
|
174
174
|
}
|
|
175
175
|
create(e) {
|
|
176
|
-
return new te(this.logger,
|
|
176
|
+
return new te(this.logger, g({
|
|
177
177
|
prefix: `${this.prefix}:${e}:`
|
|
178
178
|
}, this.options));
|
|
179
179
|
}
|
|
@@ -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 =
|
|
260
|
+
r.skipCopy || (n = JSON.parse(JSON.stringify(n))), i ? Ve(c, n, s) : c = g(g({}, 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);
|
|
@@ -302,7 +302,7 @@ class ne extends oe {
|
|
|
302
302
|
exists(e, t = {
|
|
303
303
|
interpolation: {}
|
|
304
304
|
}) {
|
|
305
|
-
const n =
|
|
305
|
+
const n = g({}, t);
|
|
306
306
|
if (e == null) return !1;
|
|
307
307
|
const i = this.resolve(e, n);
|
|
308
308
|
return (i == null ? void 0 : i.res) !== void 0;
|
|
@@ -329,8 +329,8 @@ class ne extends oe {
|
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
331
|
translate(e, t, n) {
|
|
332
|
-
let i = typeof t == "object" ?
|
|
333
|
-
if (typeof i != "object" && this.options.overloadTranslationOptionHandler && (i = this.options.overloadTranslationOptionHandler(arguments)), typeof options == "object" && (i =
|
|
332
|
+
let i = typeof t == "object" ? g({}, t) : t;
|
|
333
|
+
if (typeof i != "object" && this.options.overloadTranslationOptionHandler && (i = this.options.overloadTranslationOptionHandler(arguments)), typeof options == "object" && (i = g({}, i)), i || (i = {}), e == null) return "";
|
|
334
334
|
Array.isArray(e) || (e = [String(e)]);
|
|
335
335
|
const s = i.returnDetails !== void 0 ? i.returnDetails : this.options.returnDetails, r = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator, {
|
|
336
336
|
key: a,
|
|
@@ -338,9 +338,9 @@ class ne extends oe {
|
|
|
338
338
|
} = this.extractFromKey(e[e.length - 1], i), l = c[c.length - 1];
|
|
339
339
|
let h = i.nsSeparator !== void 0 ? i.nsSeparator : this.options.nsSeparator;
|
|
340
340
|
h === void 0 && (h = ":");
|
|
341
|
-
const u = i.lng || this.language,
|
|
341
|
+
const u = i.lng || this.language, p = i.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
342
342
|
if ((u == null ? void 0 : u.toLowerCase()) === "cimode")
|
|
343
|
-
return
|
|
343
|
+
return p ? s ? {
|
|
344
344
|
res: `${l}${h}${a}`,
|
|
345
345
|
usedKey: a,
|
|
346
346
|
exactUsedKey: a,
|
|
@@ -357,45 +357,45 @@ 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, w = ["[object Number]", "[object Function]", "[object RegExp]"], C = i.joinArrays !== void 0 ? i.joinArrays : this.options.joinArrays,
|
|
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, 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
362
|
}) : "", B = k && !i.ordinal && i.count === 0, $ = B && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${_}`] || i[`defaultValue${R}`] || i.defaultValue;
|
|
363
363
|
let S = d;
|
|
364
|
-
|
|
364
|
+
F && !d && N && (S = $);
|
|
365
365
|
const tt = Te(S), nt = Object.prototype.toString.apply(S);
|
|
366
|
-
if (
|
|
366
|
+
if (F && 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
|
|
369
|
+
const L = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, S, x(g({}, i), {
|
|
370
370
|
ns: c
|
|
371
371
|
})) : `key '${a} (${this.language})' returned an object instead of string.`;
|
|
372
|
-
return s ? (f.res =
|
|
372
|
+
return s ? (f.res = L, f.usedParams = this.getUsedParamsDetails(i), f) : L;
|
|
373
373
|
}
|
|
374
374
|
if (r) {
|
|
375
|
-
const
|
|
376
|
-
for (const
|
|
377
|
-
if (Object.prototype.hasOwnProperty.call(S,
|
|
378
|
-
const
|
|
379
|
-
N && !d ? T[
|
|
380
|
-
defaultValue: Te($) ? $[
|
|
375
|
+
const L = Array.isArray(S), T = L ? [] : {}, ge = L ? y : v;
|
|
376
|
+
for (const O in S)
|
|
377
|
+
if (Object.prototype.hasOwnProperty.call(S, O)) {
|
|
378
|
+
const A = `${ge}${r}${O}`;
|
|
379
|
+
N && !d ? T[O] = this.translate(A, x(g({}, i), {
|
|
380
|
+
defaultValue: Te($) ? $[O] : void 0,
|
|
381
381
|
joinArrays: !1,
|
|
382
382
|
ns: c
|
|
383
|
-
})) : T[
|
|
383
|
+
})) : T[O] = this.translate(A, x(g({}, i), {
|
|
384
384
|
joinArrays: !1,
|
|
385
385
|
ns: c
|
|
386
|
-
})), T[
|
|
386
|
+
})), T[O] === A && (T[O] = S[O]);
|
|
387
387
|
}
|
|
388
388
|
d = T;
|
|
389
389
|
}
|
|
390
|
-
} else if (
|
|
390
|
+
} else if (F && m(C) && Array.isArray(d))
|
|
391
391
|
d = d.join(C), d && (d = this.extendTranslation(d, e, i, n));
|
|
392
392
|
else {
|
|
393
|
-
let
|
|
394
|
-
!this.isValidLookup(d) && N && (
|
|
395
|
-
const
|
|
396
|
-
if (T ||
|
|
397
|
-
if (this.logger.log(
|
|
398
|
-
const P = this.resolve(a, x(
|
|
393
|
+
let L = !1, T = !1;
|
|
394
|
+
!this.isValidLookup(d) && N && (L = !0, d = $), this.isValidLookup(d) || (T = !0, d = a);
|
|
395
|
+
const O = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && T ? void 0 : d, A = N && $ !== d && this.options.updateMissing;
|
|
396
|
+
if (T || L || A) {
|
|
397
|
+
if (this.logger.log(A ? "updateKey" : "missingKey", u, l, a, A ? $ : d), r) {
|
|
398
|
+
const P = this.resolve(a, x(g({}, 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.");
|
|
@@ -406,31 +406,31 @@ class ne extends oe {
|
|
|
406
406
|
for (let P = 0; P < J.length; P++)
|
|
407
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 = (P,
|
|
409
|
+
const me = (P, U, V) => {
|
|
410
410
|
var ye;
|
|
411
|
-
const ve = N && V !== d ? V :
|
|
412
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(P, l,
|
|
411
|
+
const ve = N && V !== d ? V : O;
|
|
412
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(P, l, U, ve, A, i) : (ye = this.backendConnector) != null && ye.saveMissing && this.backendConnector.saveMissing(P, l, U, ve, A, i), this.emit("missingKey", P, l, U, d);
|
|
413
413
|
};
|
|
414
414
|
this.options.saveMissing && (this.options.saveMissingPlurals && k ? q.forEach((P) => {
|
|
415
|
-
const
|
|
416
|
-
B && i[`defaultValue${this.options.pluralSeparator}zero`] &&
|
|
415
|
+
const U = this.pluralResolver.getSuffixes(P, i);
|
|
416
|
+
B && i[`defaultValue${this.options.pluralSeparator}zero`] && U.indexOf(`${this.options.pluralSeparator}zero`) < 0 && U.push(`${this.options.pluralSeparator}zero`), U.forEach((V) => {
|
|
417
417
|
me([P], a + V, i[`defaultValue${V}`] || $);
|
|
418
418
|
});
|
|
419
419
|
}) : me(q, a, $));
|
|
420
420
|
}
|
|
421
|
-
d = this.extendTranslation(d, e, i, f, n), T && d === a && this.options.appendNamespaceToMissingKey && (d = `${l}${h}${a}`), (T ||
|
|
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
|
}
|
|
423
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;
|
|
427
427
|
if ((c = this.i18nFormat) != null && c.parse)
|
|
428
|
-
e = this.i18nFormat.parse(e,
|
|
428
|
+
e = this.i18nFormat.parse(e, g(g({}, this.options.interpolation.defaultVariables), n), n.lng || this.language || i.usedLng, i.usedNS, i.usedKey, {
|
|
429
429
|
resolved: i
|
|
430
430
|
});
|
|
431
431
|
else if (!n.skipInterpolation) {
|
|
432
|
-
n.interpolation && this.interpolator.init(x(
|
|
433
|
-
interpolation:
|
|
432
|
+
n.interpolation && this.interpolator.init(x(g({}, n), {
|
|
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);
|
|
436
436
|
let u;
|
|
@@ -438,16 +438,16 @@ class ne extends oe {
|
|
|
438
438
|
const f = e.match(this.interpolator.nestingRegexp);
|
|
439
439
|
u = f && f.length;
|
|
440
440
|
}
|
|
441
|
-
let
|
|
442
|
-
if (this.options.interpolation.defaultVariables && (
|
|
441
|
+
let p = n.replace && !m(n.replace) ? n.replace : n;
|
|
442
|
+
if (this.options.interpolation.defaultVariables && (p = g(g({}, this.options.interpolation.defaultVariables), p)), e = this.interpolator.interpolate(e, p, n.lng || this.language || i.usedLng, n), h) {
|
|
443
443
|
const f = e.match(this.interpolator.nestingRegexp), d = f && f.length;
|
|
444
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
|
-
return e != null && (a != null && a.length) && n.applyPostProcessor !== !1 && (e = ze.handle(a, e, t, this.options && this.options.postProcessPassResolved ?
|
|
450
|
-
i18nResolved: x(
|
|
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: x(g({}, i), {
|
|
451
451
|
usedParams: this.getUsedParamsDetails(n)
|
|
452
452
|
})
|
|
453
453
|
}, n) : n, this)), e;
|
|
@@ -460,28 +460,28 @@ class ne extends oe {
|
|
|
460
460
|
i = h;
|
|
461
461
|
let u = l.namespaces;
|
|
462
462
|
this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
|
|
463
|
-
const
|
|
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
465
|
var w, C;
|
|
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((
|
|
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((F) => {
|
|
467
467
|
var _;
|
|
468
468
|
if (this.isValidLookup(n)) return;
|
|
469
|
-
r =
|
|
469
|
+
r = F;
|
|
470
470
|
const k = [h];
|
|
471
471
|
if ((_ = this.i18nFormat) != null && _.addLookupKeys)
|
|
472
|
-
this.i18nFormat.addLookupKeys(k, h,
|
|
472
|
+
this.i18nFormat.addLookupKeys(k, h, F, y, t);
|
|
473
473
|
else {
|
|
474
474
|
let R;
|
|
475
|
-
|
|
475
|
+
p && (R = this.pluralResolver.getSuffix(F, t.count, t));
|
|
476
476
|
const B = `${this.options.pluralSeparator}zero`, $ = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
477
|
-
if (
|
|
477
|
+
if (p && (k.push(h + R), t.ordinal && R.indexOf($) === 0 && k.push(h + R.replace($, this.options.pluralSeparator)), f && k.push(h + B)), d) {
|
|
478
478
|
const S = `${h}${this.options.contextSeparator}${t.context}`;
|
|
479
|
-
k.push(S),
|
|
479
|
+
k.push(S), p && (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
483
|
for (; N = k.pop(); )
|
|
484
|
-
this.isValidLookup(n) || (s = N, n = this.getResource(
|
|
484
|
+
this.isValidLookup(n) || (s = N, n = this.getResource(F, y, N, t));
|
|
485
485
|
}));
|
|
486
486
|
});
|
|
487
487
|
}), {
|
|
@@ -502,8 +502,8 @@ class ne extends oe {
|
|
|
502
502
|
getUsedParamsDetails(e = {}) {
|
|
503
503
|
const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], n = e.replace && !m(e.replace);
|
|
504
504
|
let i = n ? e.replace : e;
|
|
505
|
-
if (n && typeof e.count != "undefined" && (i.count = e.count), this.options.interpolation.defaultVariables && (i =
|
|
506
|
-
i =
|
|
505
|
+
if (n && typeof e.count != "undefined" && (i.count = e.count), this.options.interpolation.defaultVariables && (i = g(g({}, this.options.interpolation.defaultVariables), i)), !n) {
|
|
506
|
+
i = g({}, i);
|
|
507
507
|
for (const s of t)
|
|
508
508
|
delete i[s];
|
|
509
509
|
}
|
|
@@ -517,7 +517,7 @@ class ne extends oe {
|
|
|
517
517
|
return !1;
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
|
-
class
|
|
520
|
+
class Le {
|
|
521
521
|
constructor(e) {
|
|
522
522
|
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = I.create("languageUtils");
|
|
523
523
|
}
|
|
@@ -581,7 +581,7 @@ class Oe {
|
|
|
581
581
|
}), i;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
const
|
|
584
|
+
const Oe = {
|
|
585
585
|
zero: 0,
|
|
586
586
|
one: 1,
|
|
587
587
|
two: 2,
|
|
@@ -634,7 +634,7 @@ class bt {
|
|
|
634
634
|
}
|
|
635
635
|
getSuffixes(e, t = {}) {
|
|
636
636
|
let n = this.getRule(e, t);
|
|
637
|
-
return n || (n = this.getRule("dev", t)), n ? n.resolvedOptions().pluralCategories.sort((i, s) =>
|
|
637
|
+
return n || (n = this.getRule("dev", t)), n ? n.resolvedOptions().pluralCategories.sort((i, s) => Oe[i] - Oe[s]).map((i) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${i}`) : [];
|
|
638
638
|
}
|
|
639
639
|
getSuffix(e, t, n = {}) {
|
|
640
640
|
const i = this.getRule(e, n);
|
|
@@ -665,7 +665,7 @@ class St {
|
|
|
665
665
|
formatSeparator: l,
|
|
666
666
|
unescapeSuffix: h,
|
|
667
667
|
unescapePrefix: u,
|
|
668
|
-
nestingPrefix:
|
|
668
|
+
nestingPrefix: p,
|
|
669
669
|
nestingPrefixEscaped: f,
|
|
670
670
|
nestingSuffix: d,
|
|
671
671
|
nestingSuffixEscaped: v,
|
|
@@ -673,7 +673,7 @@ class St {
|
|
|
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 ? j(s) : r || "{{", this.suffix = a ? j(a) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = h ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : h || "", this.nestingPrefix =
|
|
676
|
+
this.escape = t !== void 0 ? t : ft, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = s ? 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 = w || 1e3, this.alwaysFormat = C !== void 0 ? C : !1, this.resetRegExp();
|
|
677
677
|
}
|
|
678
678
|
reset() {
|
|
679
679
|
this.options && this.init(this.options);
|
|
@@ -688,12 +688,12 @@ class St {
|
|
|
688
688
|
const c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (d) => {
|
|
689
689
|
if (d.indexOf(this.formatSeparator) < 0) {
|
|
690
690
|
const C = Ne(t, c, d, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
691
|
-
return this.alwaysFormat ? this.format(C, void 0, n, x(
|
|
691
|
+
return this.alwaysFormat ? this.format(C, void 0, n, x(g(g({}, i), t), {
|
|
692
692
|
interpolationkey: d
|
|
693
693
|
})) : C;
|
|
694
694
|
}
|
|
695
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(
|
|
696
|
+
return this.format(Ne(t, c, y, this.options.keySeparator, this.options.ignoreJSONStructure), w, n, x(g(g({}, i), t), {
|
|
697
697
|
interpolationkey: y
|
|
698
698
|
}));
|
|
699
699
|
};
|
|
@@ -733,23 +733,23 @@ class St {
|
|
|
733
733
|
const h = this.nestingOptionsSeparator;
|
|
734
734
|
if (c.indexOf(h) < 0) return c;
|
|
735
735
|
const u = c.split(new RegExp(`${h}[ ]*{`));
|
|
736
|
-
let
|
|
737
|
-
c = u[0],
|
|
738
|
-
const f =
|
|
739
|
-
(((v = f == null ? void 0 : f.length) != null ? v : 0) % 2 === 0 && !d || d.length % 2 !== 0) && (
|
|
736
|
+
let p = `{${u[1]}`;
|
|
737
|
+
c = u[0], p = this.interpolate(p, r);
|
|
738
|
+
const f = p.match(/'/g), d = p.match(/"/g);
|
|
739
|
+
(((v = f == null ? void 0 : f.length) != null ? v : 0) % 2 === 0 && !d || d.length % 2 !== 0) && (p = p.replace(/'/g, '"'));
|
|
740
740
|
try {
|
|
741
|
-
r = JSON.parse(
|
|
741
|
+
r = JSON.parse(p), l && (r = g(g({}, l), r));
|
|
742
742
|
} catch (y) {
|
|
743
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${c}`, y), `${c}${h}${
|
|
743
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${c}`, y), `${c}${h}${p}`;
|
|
744
744
|
}
|
|
745
745
|
return r.defaultValue && r.defaultValue.indexOf(this.prefix) > -1 && delete r.defaultValue, c;
|
|
746
746
|
};
|
|
747
747
|
for (; i = this.nestingRegexp.exec(e); ) {
|
|
748
748
|
let c = [];
|
|
749
|
-
r =
|
|
749
|
+
r = 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, x(
|
|
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(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,7 +778,7 @@ 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 = x(
|
|
781
|
+
i && i.interpolationkey && i.formatParams && i.formatParams[i.interpolationkey] && i[i.interpolationkey] && (s = x(g({}, s), {
|
|
782
782
|
[i.interpolationkey]: void 0
|
|
783
783
|
}));
|
|
784
784
|
const r = n + JSON.stringify(s);
|
|
@@ -797,25 +797,25 @@ class $t {
|
|
|
797
797
|
const n = t.cacheInBuiltFormats ? Re : xt;
|
|
798
798
|
this.formats = {
|
|
799
799
|
number: n((i, s) => {
|
|
800
|
-
const r = new Intl.NumberFormat(i,
|
|
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, x(
|
|
804
|
+
const r = new Intl.NumberFormat(i, x(g({}, s), {
|
|
805
805
|
style: "currency"
|
|
806
806
|
}));
|
|
807
807
|
return (a) => r.format(a);
|
|
808
808
|
}),
|
|
809
809
|
datetime: n((i, s) => {
|
|
810
|
-
const r = new Intl.DateTimeFormat(i,
|
|
810
|
+
const r = new Intl.DateTimeFormat(i, g({}, s));
|
|
811
811
|
return (a) => r.format(a);
|
|
812
812
|
}),
|
|
813
813
|
relativetime: n((i, s) => {
|
|
814
|
-
const r = new Intl.RelativeTimeFormat(i,
|
|
814
|
+
const r = new Intl.RelativeTimeFormat(i, g({}, s));
|
|
815
815
|
return (a) => r.format(a, s.range || "day");
|
|
816
816
|
}),
|
|
817
817
|
list: n((i, s) => {
|
|
818
|
-
const r = new Intl.ListFormat(i,
|
|
818
|
+
const r = new Intl.ListFormat(i, g({}, s));
|
|
819
819
|
return (a) => r.format(a);
|
|
820
820
|
})
|
|
821
821
|
};
|
|
@@ -839,14 +839,14 @@ class $t {
|
|
|
839
839
|
formatOptions: h
|
|
840
840
|
} = kt(c);
|
|
841
841
|
if (this.formats[l]) {
|
|
842
|
-
let
|
|
842
|
+
let p = a;
|
|
843
843
|
try {
|
|
844
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
|
-
|
|
845
|
+
p = this.formats[l](a, d, g(g(g({}, h), i), f));
|
|
846
846
|
} catch (f) {
|
|
847
847
|
this.logger.warn(f);
|
|
848
848
|
}
|
|
849
|
-
return
|
|
849
|
+
return p;
|
|
850
850
|
} else
|
|
851
851
|
this.logger.warn(`there was no format function for ${l}`);
|
|
852
852
|
return a;
|
|
@@ -866,8 +866,8 @@ class Ct extends oe {
|
|
|
866
866
|
return e.forEach((l) => {
|
|
867
867
|
let h = !0;
|
|
868
868
|
t.forEach((u) => {
|
|
869
|
-
const
|
|
870
|
-
!n.reload && this.store.hasResourceBundle(l, u) ? this.state[
|
|
869
|
+
const p = `${l}|${u}`;
|
|
870
|
+
!n.reload && this.store.hasResourceBundle(l, u) ? this.state[p] = 2 : this.state[p] < 0 || (this.state[p] === 1 ? r[p] === void 0 && (r[p] = !0) : (this.state[p] = 1, h = !1, r[p] === void 0 && (r[p] = !0), s[p] === void 0 && (s[p] = !0), c[u] === void 0 && (c[u] = !0)));
|
|
871
871
|
}), h || (a[l] = !0);
|
|
872
872
|
}), (Object.keys(s).length || Object.keys(r).length) && this.queue.push({
|
|
873
873
|
pending: r,
|
|
@@ -963,14 +963,14 @@ class Ct extends oe {
|
|
|
963
963
|
}
|
|
964
964
|
saveMissing(e, t, n, i, s, r = {}, a = () => {
|
|
965
965
|
}) {
|
|
966
|
-
var c, l, h, u,
|
|
966
|
+
var c, l, h, u, p;
|
|
967
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
|
-
if ((
|
|
973
|
-
const f = x(
|
|
972
|
+
if ((p = this.backend) != null && p.create) {
|
|
973
|
+
const f = x(g({}, r), {
|
|
974
974
|
isUpdate: s
|
|
975
975
|
}), d = this.backend.create.bind(this.backend);
|
|
976
976
|
if (d.length < 6)
|
|
@@ -987,7 +987,7 @@ class Ct extends oe {
|
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
989
|
}
|
|
990
|
-
const
|
|
990
|
+
const Ae = () => ({
|
|
991
991
|
debug: !1,
|
|
992
992
|
initAsync: !0,
|
|
993
993
|
ns: ["translation"],
|
|
@@ -1044,7 +1044,7 @@ const Fe = () => ({
|
|
|
1044
1044
|
skipOnVariables: !0
|
|
1045
1045
|
},
|
|
1046
1046
|
cacheInBuiltFormats: !0
|
|
1047
|
-
}),
|
|
1047
|
+
}), Fe = (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 = Fe(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)
|
|
@@ -1067,14 +1067,14 @@ class W extends oe {
|
|
|
1067
1067
|
}
|
|
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
|
-
const n =
|
|
1071
|
-
this.options =
|
|
1070
|
+
const n = Ae();
|
|
1071
|
+
this.options = g(g(g({}, n), this.options), Fe(e)), this.options.interpolation = g(g({}, 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
1076
|
this.modules.formatter ? l = this.modules.formatter : l = $t;
|
|
1077
|
-
const h = new
|
|
1077
|
+
const h = new Le(this.options);
|
|
1078
1078
|
this.store = new Ce(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, {
|
|
@@ -1161,8 +1161,8 @@ class W extends oe {
|
|
|
1161
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 = (h = this.services.languageDetector) == null ? void 0 : h.cacheUserLanguage) == null || u.call(h, l)), this.loadResources(l, (
|
|
1165
|
-
s(
|
|
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, (p) => {
|
|
1165
|
+
s(p, l);
|
|
1166
1166
|
});
|
|
1167
1167
|
};
|
|
1168
1168
|
return !e && this.services.languageDetector && !this.services.languageDetector.async ? r(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(r) : this.services.languageDetector.detect(r) : r(e), n;
|
|
@@ -1170,7 +1170,7 @@ class W extends oe {
|
|
|
1170
1170
|
getFixedT(e, t, n) {
|
|
1171
1171
|
const i = (s, r, ...a) => {
|
|
1172
1172
|
let c;
|
|
1173
|
-
typeof r != "object" ? c = this.options.overloadTranslationOptionHandler([s, r].concat(a)) : c =
|
|
1173
|
+
typeof r != "object" ? c = this.options.overloadTranslationOptionHandler([s, r].concat(a)) : c = g({}, r), c.lng = c.lng || i.lng, c.lngs = c.lngs || i.lngs, c.ns = c.ns || i.ns, c.keyPrefix !== "" && (c.keyPrefix = c.keyPrefix || n || i.keyPrefix);
|
|
1174
1174
|
const l = this.options.keySeparator || ".";
|
|
1175
1175
|
let h;
|
|
1176
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);
|
|
@@ -1231,7 +1231,7 @@ class W extends oe {
|
|
|
1231
1231
|
if (a && a.direction) return a.direction;
|
|
1232
1232
|
}
|
|
1233
1233
|
}
|
|
1234
|
-
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], n = ((s = this.services) == null ? void 0 : s.languageUtils) || new
|
|
1234
|
+
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], n = ((s = this.services) == null ? void 0 : s.languageUtils) || new Le(Ae());
|
|
1235
1235
|
return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(n.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
1236
1236
|
}
|
|
1237
1237
|
static createInstance(e = {}, t) {
|
|
@@ -1240,15 +1240,15 @@ 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 = x(
|
|
1243
|
+
const i = x(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) => {
|
|
1247
1247
|
s[a] = this[a];
|
|
1248
|
-
}), s.services =
|
|
1248
|
+
}), s.services = g({}, this.services), s.services.utils = {
|
|
1249
1249
|
hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
|
|
1250
1250
|
}, n) {
|
|
1251
|
-
const a = Object.keys(this.store.data).reduce((c, l) => (c[l] =
|
|
1251
|
+
const a = Object.keys(this.store.data).reduce((c, l) => (c[l] = 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
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,18 +1283,18 @@ b.setDefaultNamespace;
|
|
|
1283
1283
|
b.hasLoadedNamespace;
|
|
1284
1284
|
b.loadNamespaces;
|
|
1285
1285
|
b.loadLanguages;
|
|
1286
|
-
const Tt = "Account 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", Dt = "Beneficiary Bank", Ut = "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", 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", 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", Dn = "Failed to load signature packages", Un = "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", 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", 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", Di = "OK", Ui = "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", xo = "Settings", $o = "Digital Signature Package", Po = "E-invoice software license", Co = "Information", wo = "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", Do = "Total Amount", Uo = "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
|
-
accountNumber:
|
|
1289
|
-
address:
|
|
1288
|
+
accountNumber: Lt,
|
|
1289
|
+
address: Ot,
|
|
1290
1290
|
agreeWith: It,
|
|
1291
1291
|
and: Nt,
|
|
1292
1292
|
back: Rt,
|
|
1293
|
-
backIdCard:
|
|
1294
|
-
bankName:
|
|
1293
|
+
backIdCard: At,
|
|
1294
|
+
bankName: Ft,
|
|
1295
1295
|
beneficiaryBank: Dt,
|
|
1296
|
-
businessLicense:
|
|
1297
|
-
cancel:
|
|
1296
|
+
businessLicense: Ut,
|
|
1297
|
+
cancel: Et,
|
|
1298
1298
|
cancelTransaction: jt,
|
|
1299
1299
|
close: Mt,
|
|
1300
1300
|
codeTypeC: Ht,
|
|
@@ -1325,8 +1325,8 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1325
1325
|
enterInvoiceSymbol: hn,
|
|
1326
1326
|
enterPassport: dn,
|
|
1327
1327
|
enterProviderName: fn,
|
|
1328
|
-
enterTaxAuthorityCode:
|
|
1329
|
-
errorCheckingCustomer:
|
|
1328
|
+
enterTaxAuthorityCode: pn,
|
|
1329
|
+
errorCheckingCustomer: gn,
|
|
1330
1330
|
errorCreatingOrder: mn,
|
|
1331
1331
|
errorFetchTaxInfo: vn,
|
|
1332
1332
|
errorFileFormat: yn,
|
|
@@ -1339,16 +1339,16 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1339
1339
|
errorInvalidIdCard: Cn,
|
|
1340
1340
|
errorInvalidName: wn,
|
|
1341
1341
|
errorInvalidPhone: Tn,
|
|
1342
|
-
errorInvalidProviderName:
|
|
1343
|
-
errorInvalidRequest:
|
|
1342
|
+
errorInvalidProviderName: Ln,
|
|
1343
|
+
errorInvalidRequest: On,
|
|
1344
1344
|
errorInvalidTaxAuthorityCode: In,
|
|
1345
1345
|
errorInvalidTaxCode: Nn,
|
|
1346
1346
|
errorLoadingData: Rn,
|
|
1347
|
-
errorLoadingInitPackages:
|
|
1348
|
-
errorLoadingInvoicePackages:
|
|
1347
|
+
errorLoadingInitPackages: An,
|
|
1348
|
+
errorLoadingInvoicePackages: Fn,
|
|
1349
1349
|
errorLoadingSignaturePackages: Dn,
|
|
1350
|
-
errorNetwork:
|
|
1351
|
-
errorNotFound:
|
|
1350
|
+
errorNetwork: Un,
|
|
1351
|
+
errorNotFound: En,
|
|
1352
1352
|
errorOrderStatus: jn,
|
|
1353
1353
|
errorQRGeneration: Mn,
|
|
1354
1354
|
errorRequired: Hn,
|
|
@@ -1379,8 +1379,8 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1379
1379
|
invoiceTypeD: hi,
|
|
1380
1380
|
invoiceTypeG: di,
|
|
1381
1381
|
invoiceTypeH: fi,
|
|
1382
|
-
invoiceTypeL:
|
|
1383
|
-
invoiceTypeM:
|
|
1382
|
+
invoiceTypeL: pi,
|
|
1383
|
+
invoiceTypeM: gi,
|
|
1384
1384
|
invoiceTypeN: mi,
|
|
1385
1385
|
invoiceTypeT: vi,
|
|
1386
1386
|
invoiceTypeTooltip: yi,
|
|
@@ -1393,18 +1393,18 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1393
1393
|
male: Ci,
|
|
1394
1394
|
maxFileSize: wi,
|
|
1395
1395
|
month: Ti,
|
|
1396
|
-
mostSuitablePackage:
|
|
1397
|
-
next:
|
|
1396
|
+
mostSuitablePackage: Li,
|
|
1397
|
+
next: Oi,
|
|
1398
1398
|
noDataAvailable: Ii,
|
|
1399
1399
|
noPackageFound: Ni,
|
|
1400
1400
|
notice1: Ri,
|
|
1401
|
-
notice2:
|
|
1401
|
+
notice2: Ai,
|
|
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:
|
|
1404
|
+
of: Fi,
|
|
1405
1405
|
ok: Di,
|
|
1406
|
-
optional:
|
|
1407
|
-
or:
|
|
1406
|
+
optional: Ui,
|
|
1407
|
+
or: Ei,
|
|
1408
1408
|
orderCreated: ji,
|
|
1409
1409
|
orderExpired: Mi,
|
|
1410
1410
|
orderInfo: Hi,
|
|
@@ -1435,8 +1435,8 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1435
1435
|
returnHome: uo,
|
|
1436
1436
|
returnToStep1: ho,
|
|
1437
1437
|
sampleNumberTooltip: fo,
|
|
1438
|
-
save:
|
|
1439
|
-
searchUnits:
|
|
1438
|
+
save: po,
|
|
1439
|
+
searchUnits: go,
|
|
1440
1440
|
selectFile: mo,
|
|
1441
1441
|
selectInvoicePackage: vo,
|
|
1442
1442
|
selectProvider: yo,
|
|
@@ -1449,16 +1449,16 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1449
1449
|
stepInfo: Co,
|
|
1450
1450
|
stepPayment: wo,
|
|
1451
1451
|
stepPlan: To,
|
|
1452
|
-
subscriptionPackage:
|
|
1453
|
-
taxAuthority:
|
|
1452
|
+
subscriptionPackage: Lo,
|
|
1453
|
+
taxAuthority: Oo,
|
|
1454
1454
|
taxAuthorityCode: Io,
|
|
1455
1455
|
taxCode: No,
|
|
1456
1456
|
termsAndUsagePolicy: Ro,
|
|
1457
|
-
timeLeft:
|
|
1458
|
-
total:
|
|
1457
|
+
timeLeft: Ao,
|
|
1458
|
+
total: Fo,
|
|
1459
1459
|
totalAmount: Do,
|
|
1460
|
-
totalPrice:
|
|
1461
|
-
transactionCanceled:
|
|
1460
|
+
totalPrice: Uo,
|
|
1461
|
+
transactionCanceled: Eo,
|
|
1462
1462
|
unit: jo,
|
|
1463
1463
|
unitInfo: Mo,
|
|
1464
1464
|
unitPerMonth: Ho,
|
|
@@ -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", hs = "Đóng", ds = "C (Có mã CQT)", fs = "K (Không mã)",
|
|
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ệ:", 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", 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", Ds = "Nhập số CMND/CCCD", Us = "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", 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:", 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ế)" }, Dr = "B (Đại lý)", Ur = "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", 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", 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", Da = "Trở về trang chủ", Ua = "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)", xc = {
|
|
1477
1477
|
accountName: Zo,
|
|
1478
1478
|
accountNumber: es,
|
|
1479
1479
|
address: ts,
|
|
@@ -1489,8 +1489,8 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1489
1489
|
close: hs,
|
|
1490
1490
|
codeTypeC: ds,
|
|
1491
1491
|
codeTypeK: fs,
|
|
1492
|
-
codeTypeTooltip:
|
|
1493
|
-
comingSoon:
|
|
1492
|
+
codeTypeTooltip: ps,
|
|
1493
|
+
comingSoon: gs,
|
|
1494
1494
|
companyName: ms,
|
|
1495
1495
|
completePaymentIn: vs,
|
|
1496
1496
|
completeRegistration: ys,
|
|
@@ -1504,16 +1504,16 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1504
1504
|
dateOfBirth: ws,
|
|
1505
1505
|
decrease: Ts,
|
|
1506
1506
|
delete: "Xóa",
|
|
1507
|
-
digitalSignaturePackage:
|
|
1508
|
-
district:
|
|
1507
|
+
digitalSignaturePackage: Ls,
|
|
1508
|
+
district: Os,
|
|
1509
1509
|
duration: Is,
|
|
1510
1510
|
eContractTitle: Ns,
|
|
1511
1511
|
edit: Rs,
|
|
1512
|
-
electronicInvoices:
|
|
1513
|
-
email:
|
|
1512
|
+
electronicInvoices: As,
|
|
1513
|
+
email: Fs,
|
|
1514
1514
|
enterIdCard: Ds,
|
|
1515
|
-
enterInvoiceSymbol:
|
|
1516
|
-
enterPassport:
|
|
1515
|
+
enterInvoiceSymbol: Us,
|
|
1516
|
+
enterPassport: Es,
|
|
1517
1517
|
enterProviderName: js,
|
|
1518
1518
|
enterTaxAuthorityCode: Ms,
|
|
1519
1519
|
errorCheckingCustomer: Hs,
|
|
@@ -1544,8 +1544,8 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1544
1544
|
errorRequired: hr,
|
|
1545
1545
|
errorSearchingPackages: dr,
|
|
1546
1546
|
errorServer: fr,
|
|
1547
|
-
errorServiceUnavailable:
|
|
1548
|
-
errorTooManyRequests:
|
|
1547
|
+
errorServiceUnavailable: pr,
|
|
1548
|
+
errorTooManyRequests: gr,
|
|
1549
1549
|
errorUnauthorized: mr,
|
|
1550
1550
|
errorUnknown: vr,
|
|
1551
1551
|
errorValidation: yr,
|
|
@@ -1558,16 +1558,16 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1558
1558
|
hasUsedEInvoiceBefore: Cr,
|
|
1559
1559
|
hotlineDesc: wr,
|
|
1560
1560
|
hotlineDomestic: Tr,
|
|
1561
|
-
idNumber:
|
|
1562
|
-
increase:
|
|
1561
|
+
idNumber: Lr,
|
|
1562
|
+
increase: Or,
|
|
1563
1563
|
informationSent: Ir,
|
|
1564
1564
|
invoicePackage: Nr,
|
|
1565
1565
|
invoiceSymbol: Rr,
|
|
1566
|
-
invoiceTemplate:
|
|
1567
|
-
invoiceTemplateTypes:
|
|
1566
|
+
invoiceTemplate: Ar,
|
|
1567
|
+
invoiceTemplateTypes: Fr,
|
|
1568
1568
|
invoiceTypeB: Dr,
|
|
1569
|
-
invoiceTypeD:
|
|
1570
|
-
invoiceTypeG:
|
|
1569
|
+
invoiceTypeD: Ur,
|
|
1570
|
+
invoiceTypeG: Er,
|
|
1571
1571
|
invoiceTypeH: jr,
|
|
1572
1572
|
invoiceTypeL: Mr,
|
|
1573
1573
|
invoiceTypeM: Hr,
|
|
@@ -1601,8 +1601,8 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1601
1601
|
orderSummary: da,
|
|
1602
1602
|
organizationCert: fa,
|
|
1603
1603
|
package: "Gói",
|
|
1604
|
-
passport:
|
|
1605
|
-
paymentAmount:
|
|
1604
|
+
passport: pa,
|
|
1605
|
+
paymentAmount: ga,
|
|
1606
1606
|
paymentFailed: ma,
|
|
1607
1607
|
paymentInstructions: va,
|
|
1608
1608
|
paymentInstructionsTitle: ya,
|
|
@@ -1615,16 +1615,16 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1615
1615
|
phone: Ca,
|
|
1616
1616
|
product: wa,
|
|
1617
1617
|
provider: Ta,
|
|
1618
|
-
providerName:
|
|
1619
|
-
province:
|
|
1618
|
+
providerName: La,
|
|
1619
|
+
province: Oa,
|
|
1620
1620
|
qrPayment: Ia,
|
|
1621
1621
|
qrPaymentTitle: Na,
|
|
1622
1622
|
quantity: Ra,
|
|
1623
|
-
registrationFee:
|
|
1624
|
-
required:
|
|
1623
|
+
registrationFee: Aa,
|
|
1624
|
+
required: Fa,
|
|
1625
1625
|
returnHome: Da,
|
|
1626
|
-
returnToStep1:
|
|
1627
|
-
sampleNumberTooltip:
|
|
1626
|
+
returnToStep1: Ua,
|
|
1627
|
+
sampleNumberTooltip: Ea,
|
|
1628
1628
|
save: ja,
|
|
1629
1629
|
searchUnits: Ma,
|
|
1630
1630
|
selectFile: Ha,
|
|
@@ -1655,8 +1655,8 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1655
1655
|
unitPrice: hc,
|
|
1656
1656
|
unitsPerMonth: dc,
|
|
1657
1657
|
uploadBackId: fc,
|
|
1658
|
-
uploadFile:
|
|
1659
|
-
uploadFrontId:
|
|
1658
|
+
uploadFile: pc,
|
|
1659
|
+
uploadFrontId: gc,
|
|
1660
1660
|
uploadLogo: mc,
|
|
1661
1661
|
usagePolicy: vc,
|
|
1662
1662
|
ward: yc,
|
|
@@ -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
|
+
}, Ue = {
|
|
1724
1724
|
create(o, e, t, n) {
|
|
1725
1725
|
let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
1726
1726
|
path: "/",
|
|
@@ -1741,7 +1741,7 @@ const De = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Tc = function(o, e) {
|
|
|
1741
1741
|
this.create(o, "", -1, e);
|
|
1742
1742
|
}
|
|
1743
1743
|
};
|
|
1744
|
-
var
|
|
1744
|
+
var Lc = {
|
|
1745
1745
|
name: "cookie",
|
|
1746
1746
|
// Deconstruct the options object and extract the lookupCookie property
|
|
1747
1747
|
lookup(o) {
|
|
@@ -1749,7 +1749,7 @@ var Oc = {
|
|
|
1749
1749
|
lookupCookie: e
|
|
1750
1750
|
} = o;
|
|
1751
1751
|
if (e && typeof document != "undefined")
|
|
1752
|
-
return
|
|
1752
|
+
return Ue.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,9 +1759,9 @@ var Oc = {
|
|
|
1759
1759
|
cookieDomain: i,
|
|
1760
1760
|
cookieOptions: s
|
|
1761
1761
|
} = e;
|
|
1762
|
-
t && typeof document != "undefined" &&
|
|
1762
|
+
t && typeof document != "undefined" && Ue.create(t, o, n, i, s);
|
|
1763
1763
|
}
|
|
1764
|
-
},
|
|
1764
|
+
}, Oc = {
|
|
1765
1765
|
name: "querystring",
|
|
1766
1766
|
// Deconstruct the options object and extract the lookupQuerystring property
|
|
1767
1767
|
lookup(o) {
|
|
@@ -1815,7 +1815,7 @@ var Oc = {
|
|
|
1815
1815
|
}
|
|
1816
1816
|
};
|
|
1817
1817
|
let M = null;
|
|
1818
|
-
const
|
|
1818
|
+
const Ee = () => {
|
|
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 && Ee())
|
|
1838
1838
|
return window.localStorage.getItem(e) || void 0;
|
|
1839
1839
|
},
|
|
1840
1840
|
// Deconstruct the options object and extract the lookupLocalStorage property
|
|
@@ -1842,7 +1842,7 @@ var Nc = {
|
|
|
1842
1842
|
let {
|
|
1843
1843
|
lookupLocalStorage: t
|
|
1844
1844
|
} = e;
|
|
1845
|
-
t &&
|
|
1845
|
+
t && Ee() && window.localStorage.setItem(t, o);
|
|
1846
1846
|
}
|
|
1847
1847
|
};
|
|
1848
1848
|
let H = null;
|
|
@@ -1873,7 +1873,7 @@ var Rc = {
|
|
|
1873
1873
|
} = e;
|
|
1874
1874
|
t && je() && window.sessionStorage.setItem(t, o);
|
|
1875
1875
|
}
|
|
1876
|
-
},
|
|
1876
|
+
}, Ac = {
|
|
1877
1877
|
name: "navigator",
|
|
1878
1878
|
lookup(o) {
|
|
1879
1879
|
const e = [];
|
|
@@ -1890,7 +1890,7 @@ var Rc = {
|
|
|
1890
1890
|
}
|
|
1891
1891
|
return e.length > 0 ? e : void 0;
|
|
1892
1892
|
}
|
|
1893
|
-
},
|
|
1893
|
+
}, Fc = {
|
|
1894
1894
|
name: "htmlTag",
|
|
1895
1895
|
// Deconstruct the options object and extract the htmlTag property
|
|
1896
1896
|
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
|
+
}, Uc = {
|
|
1916
1916
|
name: "subdomain",
|
|
1917
1917
|
lookup(o) {
|
|
1918
1918
|
var i, s;
|
|
@@ -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 Ec = () => ({
|
|
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 || {}, 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(Dc), this.addDetector(Uc), this.addDetector(Ic);
|
|
1957
1957
|
}
|
|
1958
1958
|
addDetector(e) {
|
|
1959
1959
|
return this.detectors[e.name] = e, this;
|
|
@@ -2018,25 +2018,25 @@ function Hc(o, e, t) {
|
|
|
2018
2018
|
}
|
|
2019
2019
|
function Kc(o) {
|
|
2020
2020
|
var e = Bc(o, "string");
|
|
2021
|
-
return
|
|
2021
|
+
return E(e) == "symbol" ? e : e + "";
|
|
2022
2022
|
}
|
|
2023
2023
|
function Bc(o, e) {
|
|
2024
|
-
if (
|
|
2024
|
+
if (E(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 (E(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 E(o) {
|
|
2034
2034
|
"@babel/helpers - typeof";
|
|
2035
|
-
return
|
|
2035
|
+
return E = 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
|
+
}, E(o);
|
|
2040
2040
|
}
|
|
2041
2041
|
var D = typeof fetch == "function" ? fetch : void 0;
|
|
2042
2042
|
typeof global != "undefined" && global.fetch ? D = global.fetch : typeof window != "undefined" && window.fetch && (D = window.fetch);
|
|
@@ -2054,7 +2054,7 @@ if (!D && !X && !ie)
|
|
|
2054
2054
|
} catch (o) {
|
|
2055
2055
|
}
|
|
2056
2056
|
var de = function(e, t) {
|
|
2057
|
-
if (t &&
|
|
2057
|
+
if (t && E(t) === "object") {
|
|
2058
2058
|
var n = "";
|
|
2059
2059
|
for (var i in t)
|
|
2060
2060
|
n += "&" + encodeURIComponent(i) + "=" + encodeURIComponent(t[i]);
|
|
@@ -2105,7 +2105,7 @@ var de = function(e, t) {
|
|
|
2105
2105
|
}
|
|
2106
2106
|
}
|
|
2107
2107
|
}, Vc = function(e, t, n, i) {
|
|
2108
|
-
n &&
|
|
2108
|
+
n && E(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");
|
|
@@ -2261,8 +2261,8 @@ var _c = function() {
|
|
|
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
2263
|
if (!u && h && h.message) {
|
|
2264
|
-
var
|
|
2265
|
-
return
|
|
2264
|
+
var p = h.message.toLowerCase(), f = ["failed", "fetch", "network", "load"].find(function(y) {
|
|
2265
|
+
return p.indexOf(y) > -1;
|
|
2266
2266
|
});
|
|
2267
2267
|
if (f)
|
|
2268
2268
|
return n("failed loading " + t + ": " + h.message, !0);
|
|
@@ -2285,11 +2285,11 @@ var _c = function() {
|
|
|
2285
2285
|
if (this.options.addPath) {
|
|
2286
2286
|
typeof t == "string" && (t = [t]);
|
|
2287
2287
|
var c = this.options.parsePayload(n, i, s), l = 0, h = [], u = [];
|
|
2288
|
-
t.forEach(function(
|
|
2288
|
+
t.forEach(function(p) {
|
|
2289
2289
|
var f = a.options.addPath;
|
|
2290
|
-
typeof a.options.addPath == "function" && (f = a.options.addPath(
|
|
2290
|
+
typeof a.options.addPath == "function" && (f = a.options.addPath(p, n));
|
|
2291
2291
|
var d = a.services.interpolator.interpolate(f, {
|
|
2292
|
-
lng:
|
|
2292
|
+
lng: p,
|
|
2293
2293
|
ns: n
|
|
2294
2294
|
});
|
|
2295
2295
|
a.options.request(a.options, d, c, function(v, y) {
|
|
@@ -2304,8 +2304,8 @@ var _c = function() {
|
|
|
2304
2304
|
var t = this, n = this.services, i = n.backendConnector, s = n.languageUtils, r = n.logger, a = i.language;
|
|
2305
2305
|
if (!(a && a.toLowerCase() === "cimode")) {
|
|
2306
2306
|
var c = [], l = function(u) {
|
|
2307
|
-
var
|
|
2308
|
-
|
|
2307
|
+
var p = s.toResolveHierarchy(u);
|
|
2308
|
+
p.forEach(function(f) {
|
|
2309
2309
|
c.indexOf(f) < 0 && c.push(f);
|
|
2310
2310
|
});
|
|
2311
2311
|
};
|
|
@@ -2313,8 +2313,8 @@ var _c = function() {
|
|
|
2313
2313
|
return l(h);
|
|
2314
2314
|
}), c.forEach(function(h) {
|
|
2315
2315
|
t.allOptions.ns.forEach(function(u) {
|
|
2316
|
-
i.read(h, u, "read", null, null, function(
|
|
2317
|
-
|
|
2316
|
+
i.read(h, u, "read", null, null, function(p, f) {
|
|
2317
|
+
p && r.warn("loading namespace ".concat(u, " for language ").concat(h, " failed"), p), !p && f && r.log("loaded namespace ".concat(u, " for language ").concat(h), f), i.loaded("".concat(h, "|").concat(u), p, f);
|
|
2318
2318
|
});
|
|
2319
2319
|
});
|
|
2320
2320
|
});
|
|
@@ -2340,8 +2340,8 @@ b.use(Ye).use(We).init({
|
|
|
2340
2340
|
function Jc(o) {
|
|
2341
2341
|
b.changeLanguage(o);
|
|
2342
2342
|
}
|
|
2343
|
-
function
|
|
2344
|
-
return b.t(o,
|
|
2343
|
+
function al(o, e) {
|
|
2344
|
+
return b.t(o, g({ returnObjects: !0 }, e));
|
|
2345
2345
|
}
|
|
2346
2346
|
function Yc(o = "dev") {
|
|
2347
2347
|
const e = {
|
|
@@ -2398,20 +2398,22 @@ function Zc() {
|
|
|
2398
2398
|
}
|
|
2399
2399
|
return "dev";
|
|
2400
2400
|
}
|
|
2401
|
-
function
|
|
2401
|
+
function cl() {
|
|
2402
2402
|
const o = Zc();
|
|
2403
2403
|
return Yc(o);
|
|
2404
2404
|
}
|
|
2405
|
-
const el = { bvb: { fpt: { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !0, link: "https://minvoice.vn", 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: "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: !0, link: "https://minvoice.vn", 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: "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: !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: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !1, 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: !1, sso: !1 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !1 }, misa: { email: "info@minvoice.vn", hotline: "0901 80 16 18", isActive: !1, 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: !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: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !1, 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: !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: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !1, link: "https://minvoice.vn", name: "m-invoice", onboarding: !1, sso: !1 } } }, il = {
|
|
2405
|
+
const el = { bvb: { fpt: { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !0, link: "https://minvoice.vn", 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: "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: !0, link: "https://minvoice.vn", 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: "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: !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: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !1, 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: !1, sso: !1 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !1 }, misa: { email: "info@minvoice.vn", hotline: "0901 80 16 18", isActive: !1, 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: !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: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !1, 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: !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: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !1, link: "https://minvoice.vn", name: "m-invoice", onboarding: !1, sso: !1 } } }, il = { bvb: { fpt: { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !1, link: "https://minvoice.vn", 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: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !1, 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: !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: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !1, link: "https://minvoice.vn", name: "m-invoice", onboarding: !1, sso: !1 } } }, ol = { bvb: { fpt: { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !1, link: "https://minvoice.vn", 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: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !1, 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: !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: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !1, link: "https://minvoice.vn", name: "m-invoice", onboarding: !1, sso: !1 } } }, sl = {
|
|
2406
2406
|
dev: el,
|
|
2407
2407
|
prod: tl,
|
|
2408
|
-
stag: nl
|
|
2408
|
+
stag: nl,
|
|
2409
|
+
uat: il,
|
|
2410
|
+
pilot: ol
|
|
2409
2411
|
};
|
|
2410
2412
|
let ce = null, le = null;
|
|
2411
|
-
function
|
|
2413
|
+
function ll(o) {
|
|
2412
2414
|
return se(this, null, function* () {
|
|
2413
2415
|
if (o.mode && Ze(o.mode), o.language && et(o.language), !le) {
|
|
2414
|
-
const { InvoiceRegisterWidget: n } = yield import("./widget-
|
|
2416
|
+
const { InvoiceRegisterWidget: n } = yield import("./widget-uo9gnBkO.js");
|
|
2415
2417
|
le = n;
|
|
2416
2418
|
}
|
|
2417
2419
|
const e = typeof o.selector == "string" ? document.querySelector(o.selector) : o.selector;
|
|
@@ -2426,14 +2428,15 @@ function al(o) {
|
|
|
2426
2428
|
o.onShowPolicy || (() => {
|
|
2427
2429
|
}),
|
|
2428
2430
|
o.data || {},
|
|
2429
|
-
o.theme
|
|
2431
|
+
o.theme,
|
|
2432
|
+
o.mode
|
|
2430
2433
|
), { destroy: t };
|
|
2431
2434
|
});
|
|
2432
2435
|
}
|
|
2433
|
-
function
|
|
2436
|
+
function ul(o) {
|
|
2434
2437
|
return se(this, null, function* () {
|
|
2435
2438
|
if (o.mode && Ze(o.mode), o.language && et(o.language), !ce) {
|
|
2436
|
-
const { EContractWidget: n } = yield import("./widget-
|
|
2439
|
+
const { EContractWidget: n } = yield import("./widget-uo9gnBkO.js");
|
|
2437
2440
|
ce = n;
|
|
2438
2441
|
}
|
|
2439
2442
|
const e = typeof o.selector == "string" ? document.querySelector(o.selector) : o.selector;
|
|
@@ -2445,31 +2448,31 @@ function cl(o) {
|
|
|
2445
2448
|
return ce(e, t, o.data || {}, o.theme), { destroy: t };
|
|
2446
2449
|
});
|
|
2447
2450
|
}
|
|
2448
|
-
let
|
|
2451
|
+
let pe = /* @__PURE__ */ new Set();
|
|
2449
2452
|
function et(o) {
|
|
2450
2453
|
if (o !== "vi" && o !== "en")
|
|
2451
2454
|
throw new Error(`[WidgetSDK] Unsupported language: ${o}`);
|
|
2452
|
-
Jc(o),
|
|
2455
|
+
Jc(o), pe.forEach((e) => {
|
|
2453
2456
|
e.rerender && e.rerender();
|
|
2454
2457
|
});
|
|
2455
2458
|
}
|
|
2456
|
-
function
|
|
2457
|
-
|
|
2459
|
+
function hl(o) {
|
|
2460
|
+
pe.add(o);
|
|
2458
2461
|
}
|
|
2459
|
-
function
|
|
2460
|
-
|
|
2462
|
+
function dl(o) {
|
|
2463
|
+
pe.delete(o);
|
|
2461
2464
|
}
|
|
2462
|
-
function
|
|
2463
|
-
return
|
|
2465
|
+
function fl() {
|
|
2466
|
+
return sl;
|
|
2464
2467
|
}
|
|
2465
2468
|
export {
|
|
2466
|
-
|
|
2469
|
+
ul as a,
|
|
2467
2470
|
et as b,
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2471
|
+
fl as c,
|
|
2472
|
+
cl as g,
|
|
2473
|
+
ll as i,
|
|
2474
|
+
hl as r,
|
|
2475
|
+
sl as s,
|
|
2476
|
+
al as t,
|
|
2477
|
+
dl as u
|
|
2475
2478
|
};
|