@invoice-sdk/widget 1.46.0 → 1.48.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.
@@ -36,42 +36,42 @@ const m = (o) => typeof o == "string", z = () => {
36
36
  o.forEach((n) => {
37
37
  e[n] && (t[n] = e[n]);
38
38
  });
39
- }, lt = /###/g, $e = (o) => o && o.indexOf("###") > -1 ? o.replace(lt, ".") : o, Pe = (o) => !o || m(o), Q = (o, e, t) => {
39
+ }, lt = /###/g, $e = (o) => o && o.indexOf("###") > -1 ? o.replace(lt, ".") : o, we = (o) => !o || m(o), W = (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 (Pe(o)) return {};
43
+ if (we(o)) return {};
44
44
  const s = $e(n[i]);
45
45
  !o[s] && t && (o[s] = new t()), Object.prototype.hasOwnProperty.call(o, s) ? o = o[s] : o = {}, ++i;
46
46
  }
47
- return Pe(o) ? {} : {
47
+ return we(o) ? {} : {
48
48
  obj: o,
49
49
  k: $e(n[i])
50
50
  };
51
- }, Ce = (o, e, t) => {
51
+ }, Pe = (o, e, t) => {
52
52
  const {
53
53
  obj: n,
54
54
  k: i
55
- } = Q(o, e, Object);
55
+ } = W(o, e, Object);
56
56
  if (n !== void 0 || e.length === 1) {
57
57
  n[i] = t;
58
58
  return;
59
59
  }
60
- let s = e[e.length - 1], r = e.slice(0, e.length - 1), a = Q(o, r, Object);
60
+ let s = e[e.length - 1], r = e.slice(0, e.length - 1), a = W(o, r, Object);
61
61
  for (; a.obj === void 0 && r.length; )
62
- s = `${r[r.length - 1]}.${s}`, r = r.slice(0, r.length - 1), a = Q(o, r, Object), a != null && a.obj && typeof a.obj[`${a.k}.${s}`] != "undefined" && (a.obj = void 0);
62
+ s = `${r[r.length - 1]}.${s}`, r = r.slice(0, r.length - 1), a = W(o, r, Object), a != null && a.obj && typeof a.obj[`${a.k}.${s}`] != "undefined" && (a.obj = void 0);
63
63
  a.obj[`${a.k}.${s}`] = t;
64
64
  }, ut = (o, e, t, n) => {
65
65
  const {
66
66
  obj: i,
67
67
  k: s
68
- } = Q(o, e, Object);
68
+ } = W(o, e, Object);
69
69
  i[s] = i[s] || [], i[s].push(t);
70
70
  }, ee = (o, e) => {
71
71
  const {
72
72
  obj: t,
73
73
  k: n
74
- } = Q(o, e);
74
+ } = W(o, e);
75
75
  if (t && Object.prototype.hasOwnProperty.call(t, n))
76
76
  return t[n];
77
77
  }, dt = (o, e, t) => {
@@ -134,7 +134,7 @@ const gt = [" ", ",", "?", "!", ";"], mt = new pt(20), yt = (o, e, t) => {
134
134
  i = r;
135
135
  }
136
136
  return i;
137
- }, W = (o) => o == null ? void 0 : o.replace("_", "-"), vt = {
137
+ }, Q = (o) => o == null ? void 0 : o.replace("_", "-"), vt = {
138
138
  type: "logger",
139
139
  log(o) {
140
140
  this.output("log", o);
@@ -212,7 +212,7 @@ class oe {
212
212
  });
213
213
  }
214
214
  }
215
- class we extends oe {
215
+ class Ce extends oe {
216
216
  constructor(e, t = {
217
217
  ns: ["translation"],
218
218
  defaultNS: "translation"
@@ -239,7 +239,7 @@ class we 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), Ce(this.data, a, i), s.silent || this.emit("added", e, t, n, i);
242
+ n && (a = a.concat(r ? n.split(r) : n)), e.indexOf(".") > -1 && (a = e.split("."), i = t, t = a[1]), this.addNamespaces(t), Pe(this.data, a, i), s.silent || this.emit("added", e, t, n, i);
243
243
  }
244
244
  addResources(e, t, n, i = {
245
245
  silent: !1
@@ -257,7 +257,7 @@ class we 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 ? qe(c, n, s) : c = g(g({}, c), n), Ce(this.data, a, c), r.silent || this.emit("added", e, t, n);
260
+ r.skipCopy || (n = JSON.parse(JSON.stringify(n))), i ? qe(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);
@@ -357,13 +357,13 @@ class ne extends oe {
357
357
  } : a;
358
358
  const f = this.resolve(e, i);
359
359
  let h = f == null ? void 0 : f.res;
360
- const y = (f == null ? void 0 : f.usedKey) || a, v = (f == null ? void 0 : f.exactUsedKey) || a, T = ["[object Number]", "[object Function]", "[object RegExp]"], w = i.joinArrays !== void 0 ? i.joinArrays : this.options.joinArrays, E = !this.i18nFormat || this.i18nFormat.handleAsObject, x = i.count !== void 0 && !m(i.count), N = ne.hasDefaultValue(i), _ = x ? this.pluralResolver.getSuffix(u, i.count, i) : "", R = i.ordinal && x ? this.pluralResolver.getSuffix(u, i.count, {
360
+ const y = (f == null ? void 0 : f.usedKey) || a, v = (f == null ? void 0 : f.exactUsedKey) || a, T = ["[object Number]", "[object Function]", "[object RegExp]"], C = i.joinArrays !== void 0 ? i.joinArrays : this.options.joinArrays, E = !this.i18nFormat || this.i18nFormat.handleAsObject, x = i.count !== void 0 && !m(i.count), N = ne.hasDefaultValue(i), _ = x ? this.pluralResolver.getSuffix(u, i.count, i) : "", R = i.ordinal && x ? this.pluralResolver.getSuffix(u, i.count, {
361
361
  ordinal: !1
362
- }) : "", K = x && !i.ordinal && i.count === 0, P = K && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${_}`] || i[`defaultValue${R}`] || i.defaultValue;
362
+ }) : "", K = x && !i.ordinal && i.count === 0, w = K && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${_}`] || i[`defaultValue${R}`] || i.defaultValue;
363
363
  let S = h;
364
- E && !h && N && (S = P);
364
+ E && !h && N && (S = w);
365
365
  const tt = ke(S), nt = Object.prototype.toString.apply(S);
366
- if (E && S && tt && T.indexOf(nt) < 0 && !(m(w) && Array.isArray(S))) {
366
+ if (E && S && tt && T.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
369
  const O = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(y, S, $(g({}, i), {
@@ -377,7 +377,7 @@ class ne extends oe {
377
377
  if (Object.prototype.hasOwnProperty.call(S, L)) {
378
378
  const F = `${ge}${r}${L}`;
379
379
  N && !h ? k[L] = this.translate(F, $(g({}, i), {
380
- defaultValue: ke(P) ? P[L] : void 0,
380
+ defaultValue: ke(w) ? w[L] : void 0,
381
381
  joinArrays: !1,
382
382
  ns: c
383
383
  })) : k[L] = this.translate(F, $(g({}, i), {
@@ -387,36 +387,36 @@ class ne extends oe {
387
387
  }
388
388
  h = k;
389
389
  }
390
- } else if (E && m(w) && Array.isArray(h))
391
- h = h.join(w), h && (h = this.extendTranslation(h, e, i, n));
390
+ } else if (E && m(C) && Array.isArray(h))
391
+ h = h.join(C), h && (h = this.extendTranslation(h, e, i, n));
392
392
  else {
393
393
  let O = !1, k = !1;
394
- !this.isValidLookup(h) && N && (O = !0, h = P), this.isValidLookup(h) || (k = !0, h = a);
395
- const L = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && k ? void 0 : h, F = N && P !== h && this.options.updateMissing;
394
+ !this.isValidLookup(h) && N && (O = !0, h = w), this.isValidLookup(h) || (k = !0, h = a);
395
+ const L = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && k ? void 0 : h, F = N && w !== h && this.options.updateMissing;
396
396
  if (k || O || F) {
397
- if (this.logger.log(F ? "updateKey" : "missingKey", u, l, a, F ? P : h), r) {
398
- const C = this.resolve(a, $(g({}, i), {
397
+ if (this.logger.log(F ? "updateKey" : "missingKey", u, l, a, F ? w : h), r) {
398
+ const P = this.resolve(a, $(g({}, i), {
399
399
  keySeparator: !1
400
400
  }));
401
- C && C.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.");
401
+ P && P.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
402
402
  }
403
403
  let V = [];
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 C = 0; C < J.length; C++)
407
- V.push(J[C]);
406
+ for (let P = 0; P < J.length; P++)
407
+ V.push(J[P]);
408
408
  else this.options.saveMissingTo === "all" ? V = this.languageUtils.toResolveHierarchy(i.lng || this.language) : V.push(i.lng || this.language);
409
- const me = (C, D, q) => {
409
+ const me = (P, A, q) => {
410
410
  var ve;
411
411
  const ye = N && q !== h ? q : L;
412
- this.options.missingKeyHandler ? this.options.missingKeyHandler(C, l, D, ye, F, i) : (ve = this.backendConnector) != null && ve.saveMissing && this.backendConnector.saveMissing(C, l, D, ye, F, i), this.emit("missingKey", C, l, D, h);
412
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(P, l, A, ye, F, i) : (ve = this.backendConnector) != null && ve.saveMissing && this.backendConnector.saveMissing(P, l, A, ye, F, i), this.emit("missingKey", P, l, A, h);
413
413
  };
414
- this.options.saveMissing && (this.options.saveMissingPlurals && x ? V.forEach((C) => {
415
- const D = this.pluralResolver.getSuffixes(C, i);
416
- K && i[`defaultValue${this.options.pluralSeparator}zero`] && D.indexOf(`${this.options.pluralSeparator}zero`) < 0 && D.push(`${this.options.pluralSeparator}zero`), D.forEach((q) => {
417
- me([C], a + q, i[`defaultValue${q}`] || P);
414
+ this.options.saveMissing && (this.options.saveMissingPlurals && x ? V.forEach((P) => {
415
+ const A = this.pluralResolver.getSuffixes(P, i);
416
+ K && i[`defaultValue${this.options.pluralSeparator}zero`] && A.indexOf(`${this.options.pluralSeparator}zero`) < 0 && A.push(`${this.options.pluralSeparator}zero`), A.forEach((q) => {
417
+ me([P], a + q, i[`defaultValue${q}`] || w);
418
418
  });
419
- }) : me(V, a, P));
419
+ }) : me(V, a, w));
420
420
  }
421
421
  h = this.extendTranslation(h, e, i, f, n), k && h === a && this.options.appendNamespaceToMissingKey && (h = `${l}${d}${a}`), (k || O) && this.options.parseMissingKeyHandler && (h = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${d}${a}` : a, O ? h : void 0, i));
422
422
  }
@@ -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, h = t.context !== void 0 && (m(t.context) || typeof t.context == "number") && t.context !== "", y = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
464
464
  u.forEach((v) => {
465
- var T, w;
466
- this.isValidLookup(n) || (a = v, !Te[`${y[0]}-${v}`] && ((T = this.utils) != null && T.hasLoadedNamespace) && !((w = this.utils) != null && w.hasLoadedNamespace(a)) && (Te[`${y[0]}-${v}`] = !0, this.logger.warn(`key "${i}" for languages "${y.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), y.forEach((E) => {
465
+ var T, C;
466
+ this.isValidLookup(n) || (a = v, !Te[`${y[0]}-${v}`] && ((T = this.utils) != null && T.hasLoadedNamespace) && !((C = this.utils) != null && C.hasLoadedNamespace(a)) && (Te[`${y[0]}-${v}`] = !0, this.logger.warn(`key "${i}" for languages "${y.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), y.forEach((E) => {
467
467
  var _;
468
468
  if (this.isValidLookup(n)) return;
469
469
  r = E;
@@ -473,10 +473,10 @@ class ne extends oe {
473
473
  else {
474
474
  let R;
475
475
  p && (R = this.pluralResolver.getSuffix(E, t.count, t));
476
- const K = `${this.options.pluralSeparator}zero`, P = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
477
- if (p && (x.push(d + R), t.ordinal && R.indexOf(P) === 0 && x.push(d + R.replace(P, this.options.pluralSeparator)), f && x.push(d + K)), h) {
476
+ const K = `${this.options.pluralSeparator}zero`, w = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
477
+ if (p && (x.push(d + R), t.ordinal && R.indexOf(w) === 0 && x.push(d + R.replace(w, this.options.pluralSeparator)), f && x.push(d + K)), h) {
478
478
  const S = `${d}${this.options.contextSeparator}${t.context}`;
479
- x.push(S), p && (x.push(S + R), t.ordinal && R.indexOf(P) === 0 && x.push(S + R.replace(P, this.options.pluralSeparator)), f && x.push(S + K));
479
+ x.push(S), p && (x.push(S + R), t.ordinal && R.indexOf(w) === 0 && x.push(S + R.replace(w, this.options.pluralSeparator)), f && x.push(S + K));
480
480
  }
481
481
  }
482
482
  let N;
@@ -522,12 +522,12 @@ class Oe {
522
522
  this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = I.create("languageUtils");
523
523
  }
524
524
  getScriptPartFromCode(e) {
525
- if (e = W(e), !e || e.indexOf("-") < 0) return null;
525
+ if (e = Q(e), !e || e.indexOf("-") < 0) return null;
526
526
  const t = e.split("-");
527
527
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
528
528
  }
529
529
  getLanguagePartFromCode(e) {
530
- if (e = W(e), !e || e.indexOf("-") < 0) return e;
530
+ if (e = Q(e), !e || e.indexOf("-") < 0) return e;
531
531
  const t = e.split("-");
532
532
  return this.formatLanguageCode(t[0]);
533
533
  }
@@ -605,7 +605,7 @@ class bt {
605
605
  this.pluralRulesCache = {};
606
606
  }
607
607
  getRule(e, t = {}) {
608
- const n = W(e === "dev" ? "en" : e), i = t.ordinal ? "ordinal" : "cardinal", s = JSON.stringify({
608
+ const n = Q(e === "dev" ? "en" : e), i = t.ordinal ? "ordinal" : "cardinal", s = JSON.stringify({
609
609
  cleanedCode: n,
610
610
  type: i
611
611
  });
@@ -671,9 +671,9 @@ class St {
671
671
  nestingSuffixEscaped: y,
672
672
  nestingOptionsSeparator: v,
673
673
  maxReplaces: T,
674
- alwaysFormat: w
674
+ alwaysFormat: C
675
675
  } = e.interpolation;
676
- this.escape = t !== void 0 ? t : ft, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = s ? U(s) : r || "{{", this.suffix = a ? U(a) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = d ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : d || "", this.nestingPrefix = p ? U(p) : f || U("$t("), this.nestingSuffix = h ? U(h) : y || U(")"), this.nestingOptionsSeparator = v || ",", this.maxReplaces = T || 1e3, this.alwaysFormat = w !== void 0 ? w : !1, this.resetRegExp();
676
+ this.escape = t !== void 0 ? t : ft, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = s ? U(s) : r || "{{", this.suffix = a ? U(a) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = d ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : d || "", this.nestingPrefix = p ? U(p) : f || U("$t("), this.nestingSuffix = h ? U(h) : y || U(")"), this.nestingOptionsSeparator = v || ",", this.maxReplaces = T || 1e3, this.alwaysFormat = C !== void 0 ? C : !1, this.resetRegExp();
677
677
  }
678
678
  reset() {
679
679
  this.options && this.init(this.options);
@@ -687,10 +687,10 @@ class St {
687
687
  let s, r, a;
688
688
  const c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (h) => {
689
689
  if (h.indexOf(this.formatSeparator) < 0) {
690
- const w = Ne(t, c, h, this.options.keySeparator, this.options.ignoreJSONStructure);
691
- return this.alwaysFormat ? this.format(w, void 0, n, $(g(g({}, i), t), {
690
+ const C = Ne(t, c, h, this.options.keySeparator, this.options.ignoreJSONStructure);
691
+ return this.alwaysFormat ? this.format(C, void 0, n, $(g(g({}, i), t), {
692
692
  interpolationkey: h
693
- })) : w;
693
+ })) : C;
694
694
  }
695
695
  const y = h.split(this.formatSeparator), v = y.shift().trim(), T = y.join(this.formatSeparator).trim();
696
696
  return this.format(Ne(t, c, v, this.options.keySeparator, this.options.ignoreJSONStructure), T, n, $(g(g({}, i), t), {
@@ -783,10 +783,10 @@ const xt = (o) => {
783
783
  }));
784
784
  const r = n + JSON.stringify(s);
785
785
  let a = e[r];
786
- return a || (a = o(W(n), i), e[r] = a), a(t);
786
+ return a || (a = o(Q(n), i), e[r] = a), a(t);
787
787
  };
788
- }, $t = (o) => (e, t, n) => o(W(t), n)(e);
789
- class Pt {
788
+ }, $t = (o) => (e, t, n) => o(Q(t), n)(e);
789
+ class wt {
790
790
  constructor(e = {}) {
791
791
  this.logger = I.create("formatter"), this.options = e, this.init(e);
792
792
  }
@@ -853,10 +853,10 @@ class Pt {
853
853
  }, e);
854
854
  }
855
855
  }
856
- const Ct = (o, e) => {
856
+ const Pt = (o, e) => {
857
857
  o.pending[e] !== void 0 && (delete o.pending[e], o.pendingCount--);
858
858
  };
859
- class wt extends oe {
859
+ class Ct 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 wt 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), Ct(c, e), t && c.errors.push(t), c.pendingCount === 0 && !c.done && (Object.keys(c.loaded).forEach((l) => {
892
+ ut(c.loaded, [s], r), Pt(c, e), t && c.errors.push(t), c.pendingCount === 0 && !c.done && (Object.keys(c.loaded).forEach((l) => {
893
893
  a[l] || (a[l] = {});
894
894
  const d = c.loaded[l];
895
895
  d.length && d.forEach((u) => {
@@ -1073,16 +1073,16 @@ class G 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 = Pt;
1076
+ this.modules.formatter ? l = this.modules.formatter : l = wt;
1077
1077
  const d = new Oe(this.options);
1078
- this.store = new we(this.options.resources, this.options);
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 = d, u.pluralResolver = new bt(d, {
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 wt(i(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (f, ...h) => {
1085
+ }, u.backendConnector = new Ct(i(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (f, ...h) => {
1086
1086
  this.emit(f, ...h);
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, ...h) => {
1088
1088
  this.emit(f, ...h);
@@ -1249,7 +1249,7 @@ class G 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((d, u) => (d[u] = g({}, c[l][u]), d), c[l]), c), {});
1252
- s.store = new we(a, i), s.services.resourceStore = s.store;
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) => {
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 kt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I agree with", Nt = "and", Rt = "Back", Ft = "Back ID Card", Et = "Bank Name", At = "Beneficiary Bank", Dt = "Business Registration License", jt = "Cancel", Ut = "Cancel Transaction", Mt = "Close", Ht = "C (With tax authority code)", Bt = "K (Without code)", Kt = "C: With tax authority code, K: Without code", Vt = "Coming Soon", qt = "Unit Name", zt = "Complete your payment within", Qt = "Confirm", Wt = "Important Notice:", Gt = "3. Contact Person Information:", Xt = "Copy", _t = "Country", Jt = "2 custom characters (default: YY)", Yt = "Custom quantity", Zt = "Date of Birth", en = "Decrease", tn = "Digital Signature Package", nn = "District", on = "Duration", sn = "E-Contract", rn = "Edit", an = "e-invoices", cn = "Email", ln = "Enter ID Card Number", un = "Enter Invoice Symbol", dn = "Enter Passport Number", hn = "Enter Provider Name", fn = "Enter Tax Authority Code", pn = "Error fetching tax information.", gn = "File format not supported", mn = "File size is too large", yn = "Address cannot contain special characters", vn = "Invalid date of birth", bn = "Invalid email address", Sn = "Invalid ID card number", xn = "Invalid ID card", $n = "Only letters, numbers and underscores allowed", Pn = "Invalid phone number", Cn = "Invalid provider name", wn = "Invalid tax authority code", Tn = "Invalid tax code", kn = "Network connection error", On = "This field is required", Ln = "An error occurred", In = "Female", Nn = "Format", Rn = "Front ID Card", Fn = "Full Name", En = "Gender", An = "Have you used e-invoices?", Dn = "Are you using another e-invoice provider other than M-invoice?", jn = "(Free Consulting and Support Hotline)", Un = "Hotline:", Mn = "ID Card Number", Hn = "Increase", Bn = "Information Sent", Kn = "Invoice Package", Vn = "Invoice Symbol", qn = "Invoice Template", zn = { 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)" }, Qn = "B (Agent)", Wn = "D (Asset)", Gn = "G (VAT Stamp)", Xn = "H (Sales Stamp)", _n = "L (Tax Authority)", Jn = "M (Cash Register)", Yn = "N (Internal)", Zn = "T (Registration)", ei = "Invoice type", ti = "X (Commercial)", ni = "4. E-INVOICE USAGE INFORMATION:", ii = "invoices/month", oi = "2. Legal Representative Information:", si = "Please check and enter the correct legal representative name according to the uploaded business license.", ri = "Male", ai = "Max 500KB", ci = "Month", li = "Most Suitable Package", ui = "Continue", di = "No package found.", hi = "Please check your email regularly for notifications/account information from the provider.", fi = "Please wait 1-2 business days for the registration process to complete.", pi = "After being granted an account, please go to the settings section in the menu bar to connect and use the service.", gi = "of", mi = "OK", yi = "Optional", vi = "or", bi = "Order created successfully", Si = "Order has expired", xi = "Order Information", $i = "Order Summary", Pi = "Organization Registration Certificate", Ci = "Passport", wi = "Payment Amount", Ti = "Payment Failed", ki = ["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"], Oi = "QR Payment Instructions", Li = "Payment Method:", Ii = "Payment Successful!", Ni = "Payment timeout", Ri = "Payment timeout! Please try again.", Fi = "Payment", Ei = "Permanent address", Ai = "Phone Number", Di = "Product", ji = "Provider", Ui = "Provider Name", Mi = "Province/City", Hi = "QR Code Payment", Bi = "Scan QR Code to Pay", Ki = "Quantity", Vi = "Registration complete", qi = "Registration Fee", zi = "Required", Qi = "Return Home", Wi = "Return to step 1", Gi = "Invoice template number (1-9)", Xi = "Save", _i = "Units per month", Ji = "Select File", Yi = "Select E-Invoice Package", Zi = "Select Provider", eo = "Select Digital Signature Package", to = "Select Subscription Package", no = "Selected Products", io = "Digital Signature Package", oo = "E-invoice software license", so = "Information", ro = "Confirmation & Payment", ao = "Invoice Package", co = "Subscription Package", lo = "Tax Authority", uo = "5 characters issued by the Authority for cash register bills", ho = "Unit Tax Code", fo = "Terms and Usage Policy", po = "Time Left", go = "Total", mo = "Total Amount", yo = "Total Price", vo = "Transaction has been canceled. Returning to registration page.", bo = "Unit", So = "1. Unit Information", xo = "units/month", $o = "Unit Price", Po = "units/ month", Co = "Upload Back ID Card", wo = "Upload File", To = "Upload Front ID Card", ko = "Upload Logo", Oo = "Usage Policy", Lo = "Ward", Io = "E-Invoice Registration", No = "Release year (last 2 digits)", Ro = {
1286
+ const kt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I agree with", Nt = "and", Rt = "Back", Ft = "Back ID Card", Et = "Bank Name", Dt = "Beneficiary Bank", At = "Business Registration License", jt = "Cancel", Ut = "Cancel Transaction", Mt = "Close", Ht = "C (With tax authority code)", Bt = "K (Without code)", Kt = "C: With tax authority code, K: Without code", Vt = "Coming Soon", qt = "Unit Name", zt = "Complete your payment within", Wt = "Confirm", Qt = "Important Notice:", Gt = "3. Contact Person Information:", Xt = "Copy", _t = "Country", Jt = "2 custom characters (default: YY)", Yt = "Custom quantity", Zt = "Date of Birth", en = "Decrease", tn = "Digital Signature Package", nn = "District", on = "Duration", sn = "E-Contract", rn = "Edit", an = "e-invoices", cn = "Email", ln = "Enter ID Card Number", un = "Enter Invoice Symbol", dn = "Enter Passport Number", hn = "Enter Provider Name", fn = "Enter Tax Authority Code", pn = "Error fetching tax information.", gn = "File format not supported", mn = "File size is too large", yn = "Address cannot contain special characters", vn = "Invalid ID card", bn = "Invalid date of birth", Sn = "Invalid email address", xn = "Invalid ID card number", $n = "Only letters, numbers and underscores allowed", wn = "Invalid phone number", Pn = "Invalid provider name", Cn = "Invalid tax authority code", Tn = "Invalid tax code", kn = "Network connection error", On = "This field is required", Ln = "An error occurred", In = "Female", Nn = "Format", Rn = "Front ID Card", Fn = "Full Name", En = "Gender", Dn = "Have you used e-invoices?", An = "Are you using another e-invoice provider other than M-invoice?", jn = "(Free Consulting and Support Hotline)", Un = "Hotline:", Mn = "ID Card Number", Hn = "Increase", Bn = "Information sent to the provider", Kn = "Invoice Package", Vn = "Invoice Symbol", qn = "Invoice Template", zn = { 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)" }, Wn = "B (Agent)", Qn = "D (Asset)", Gn = "G (VAT Stamp)", Xn = "H (Sales Stamp)", _n = "L (Tax Authority)", Jn = "M (Cash Register)", Yn = "N (Internal)", Zn = "T (Registration)", ei = "Invoice type", ti = "X (Commercial)", ni = "4. E-INVOICE USAGE INFORMATION:", ii = "invoices/month", oi = "2. Legal Representative Information:", si = "Please check and enter the correct legal representative name according to the uploaded business license.", ri = "Male", ai = "Max 500KB", ci = "Month", li = "Most Suitable Package", ui = "Continue", di = "No package found.", hi = "Please check your email inbox regularly to receive account information notifications from the provider.", fi = "If you have not received the email account information (username/password) within 2 hours, please contact the information below for the fastest support:", pi = "of", gi = "OK", mi = "Optional", yi = "or", vi = "Order created successfully", bi = "Order has expired", Si = "Order Information", xi = "Order Summary", $i = "Organization Registration Certificate", wi = "Passport", Pi = "Payment Amount", Ci = "Payment Failed", Ti = ["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"], ki = "QR Payment Instructions", Oi = "Payment Method:", Li = "Payment Successful!", Ii = "Payment timeout", Ni = "Payment timeout! Please try again.", Ri = "Payment", Fi = "Permanent address", Ei = "Phone Number", Di = "Product", Ai = "Provider", ji = "Provider Name", Ui = "Province/City", Mi = "QR Code Payment", Hi = "Scan QR Code to Pay", Bi = "Quantity", Ki = "Registration complete", Vi = "Registration Fee", qi = "Required", zi = "Return Home", Wi = "Return to step 1", Qi = "Invoice template number (1-9)", Gi = "Save", Xi = "Units per month", _i = "Select File", Ji = "Select E-Invoice Package", Yi = "Select Provider", Zi = "Select Digital Signature Package", eo = "Select Subscription Package", to = "Selected Products", no = "Settings", io = "Digital Signature Package", oo = "E-invoice software license", so = "Information", ro = "Confirmation & Payment", ao = "Invoice Package", co = "Subscription Package", lo = "Tax Authority", uo = "5 characters issued by the Authority for cash register bills", ho = "Unit Tax Code", fo = "Terms and Usage Policy", po = "Time Left", go = "Total", mo = "Total Amount", yo = "Total Price", vo = "Transaction has been canceled. Returning to registration page.", bo = "Unit", So = "1. Unit Information", xo = "units/month", $o = "Unit Price", wo = "units/ month", Po = "Upload Back ID Card", Co = "Upload File", To = "Upload Front ID Card", ko = "Upload Logo", Oo = "Usage Policy", Lo = "Ward", Io = "Website", No = "E-Invoice Registration", Ro = "Release year (last 2 digits)", Fo = {
1287
1287
  accountName: kt,
1288
1288
  accountNumber: Ot,
1289
1289
  address: Lt,
@@ -1292,8 +1292,8 @@ const kt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
1292
1292
  back: Rt,
1293
1293
  backIdCard: Ft,
1294
1294
  bankName: Et,
1295
- beneficiaryBank: At,
1296
- businessLicense: Dt,
1295
+ beneficiaryBank: Dt,
1296
+ businessLicense: At,
1297
1297
  cancel: jt,
1298
1298
  cancelTransaction: Ut,
1299
1299
  close: Mt,
@@ -1303,8 +1303,8 @@ const kt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
1303
1303
  comingSoon: Vt,
1304
1304
  companyName: qt,
1305
1305
  completePaymentIn: zt,
1306
- confirm: Qt,
1307
- confirmationTitle: Wt,
1306
+ confirm: Wt,
1307
+ confirmationTitle: Qt,
1308
1308
  contactInfo: Gt,
1309
1309
  copy: Xt,
1310
1310
  country: _t,
@@ -1329,14 +1329,14 @@ const kt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
1329
1329
  errorFileFormat: gn,
1330
1330
  errorFileSize: mn,
1331
1331
  errorInvalidAddress: yn,
1332
- errorInvalidDate: vn,
1333
- errorInvalidEmail: bn,
1334
- errorInvalidIdCard: Sn,
1335
- errorInvalidCard: xn,
1332
+ errorInvalidCard: vn,
1333
+ errorInvalidDate: bn,
1334
+ errorInvalidEmail: Sn,
1335
+ errorInvalidIdCard: xn,
1336
1336
  errorInvalidName: $n,
1337
- errorInvalidPhone: Pn,
1338
- errorInvalidProviderName: Cn,
1339
- errorInvalidTaxAuthorityCode: wn,
1337
+ errorInvalidPhone: wn,
1338
+ errorInvalidProviderName: Pn,
1339
+ errorInvalidTaxAuthorityCode: Cn,
1340
1340
  errorInvalidTaxCode: Tn,
1341
1341
  errorNetwork: kn,
1342
1342
  errorRequired: On,
@@ -1346,8 +1346,8 @@ const kt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
1346
1346
  frontIdCard: Rn,
1347
1347
  fullName: Fn,
1348
1348
  gender: En,
1349
- hasUsedEInvoice: An,
1350
- hasUsedEInvoiceBefore: Dn,
1349
+ hasUsedEInvoice: Dn,
1350
+ hasUsedEInvoiceBefore: An,
1351
1351
  hotlineDesc: jn,
1352
1352
  hotlineDomestic: Un,
1353
1353
  idNumber: Mn,
@@ -1357,8 +1357,8 @@ const kt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
1357
1357
  invoiceSymbol: Vn,
1358
1358
  invoiceTemplate: qn,
1359
1359
  invoiceTemplateTypes: zn,
1360
- invoiceTypeB: Qn,
1361
- invoiceTypeD: Wn,
1360
+ invoiceTypeB: Wn,
1361
+ invoiceTypeD: Qn,
1362
1362
  invoiceTypeG: Gn,
1363
1363
  invoiceTypeH: Xn,
1364
1364
  invoiceTypeL: _n,
@@ -1379,50 +1379,52 @@ const kt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
1379
1379
  noPackageFound: di,
1380
1380
  notice1: hi,
1381
1381
  notice2: fi,
1382
- notice3: pi,
1383
- of: gi,
1384
- ok: mi,
1385
- optional: yi,
1386
- or: vi,
1387
- orderCreated: bi,
1388
- orderExpired: Si,
1389
- orderInfo: xi,
1390
- orderSummary: $i,
1391
- organizationCert: Pi,
1382
+ "notice3.1": "After being granted an account, please go to the Link",
1383
+ "notice3.2": "to connect and use the service HDDT",
1384
+ of: pi,
1385
+ ok: gi,
1386
+ optional: mi,
1387
+ or: yi,
1388
+ orderCreated: vi,
1389
+ orderExpired: bi,
1390
+ orderInfo: Si,
1391
+ orderSummary: xi,
1392
+ organizationCert: $i,
1392
1393
  package: "Package",
1393
- passport: Ci,
1394
- paymentAmount: wi,
1395
- paymentFailed: Ti,
1396
- paymentInstructions: ki,
1397
- paymentInstructionsTitle: Oi,
1398
- paymentMethod: Li,
1399
- paymentSuccess: Ii,
1400
- paymentTimeout: Ni,
1401
- paymentTimeoutMessage: Ri,
1402
- paymentTitle: Fi,
1403
- permanentAddress: Ei,
1404
- phone: Ai,
1394
+ passport: wi,
1395
+ paymentAmount: Pi,
1396
+ paymentFailed: Ci,
1397
+ paymentInstructions: Ti,
1398
+ paymentInstructionsTitle: ki,
1399
+ paymentMethod: Oi,
1400
+ paymentSuccess: Li,
1401
+ paymentTimeout: Ii,
1402
+ paymentTimeoutMessage: Ni,
1403
+ paymentTitle: Ri,
1404
+ permanentAddress: Fi,
1405
+ phone: Ei,
1405
1406
  product: Di,
1406
- provider: ji,
1407
- providerName: Ui,
1408
- province: Mi,
1409
- qrPayment: Hi,
1410
- qrPaymentTitle: Bi,
1411
- quantity: Ki,
1412
- registrationComplete: Vi,
1413
- registrationFee: qi,
1414
- required: zi,
1415
- returnHome: Qi,
1407
+ provider: Ai,
1408
+ providerName: ji,
1409
+ province: Ui,
1410
+ qrPayment: Mi,
1411
+ qrPaymentTitle: Hi,
1412
+ quantity: Bi,
1413
+ registrationComplete: Ki,
1414
+ registrationFee: Vi,
1415
+ required: qi,
1416
+ returnHome: zi,
1416
1417
  returnToStep1: Wi,
1417
- sampleNumberTooltip: Gi,
1418
- save: Xi,
1419
- searchUnits: _i,
1420
- selectFile: Ji,
1421
- selectInvoicePackage: Yi,
1422
- selectProvider: Zi,
1423
- selectSignaturePackage: eo,
1424
- selectSubscriptionPackage: to,
1425
- selectedProducts: no,
1418
+ sampleNumberTooltip: Qi,
1419
+ save: Gi,
1420
+ searchUnits: Xi,
1421
+ selectFile: _i,
1422
+ selectInvoicePackage: Ji,
1423
+ selectProvider: Yi,
1424
+ selectSignaturePackage: Zi,
1425
+ selectSubscriptionPackage: eo,
1426
+ selectedProducts: to,
1427
+ settings: no,
1426
1428
  signaturePackage: io,
1427
1429
  softwareLicense: oo,
1428
1430
  stepInfo: so,
@@ -1442,118 +1444,120 @@ const kt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
1442
1444
  unitInfo: So,
1443
1445
  unitPerMonth: xo,
1444
1446
  unitPrice: $o,
1445
- unitsPerMonth: Po,
1446
- uploadBackId: Co,
1447
- uploadFile: wo,
1447
+ unitsPerMonth: wo,
1448
+ uploadBackId: Po,
1449
+ uploadFile: Co,
1448
1450
  uploadFrontId: To,
1449
1451
  uploadLogo: ko,
1450
1452
  usagePolicy: Oo,
1451
1453
  ward: Lo,
1452
- widgetTitle: Io,
1453
- yearTooltip: No
1454
- }, Fo = "Tên tài khoản", Eo = "Số tài khoản", Ao = "Địa chỉ đơn vị", Do = "Tôi đồng ý với", jo = "và", Uo = "Quay lại", Mo = "Mặt sau CCCD", Ho = "Ngân hàng", Bo = "Ngân hàng thụ hưởng", Ko = "Giấy phép đăng ký kinh doanh", Vo = "Hủy", qo = "Hủy giao dịch", zo = "Đóng", Qo = "C (Có mã CQT)", Wo = "K (Không mã)", Go = "C: Có mã CQT, K: Không mã", Xo = "Sắp ra mắt", _o = "Tên đơn vị", Jo = "Hoàn tất thanh toán của bạn trong", Yo = "Xác nhận", Zo = "Thông tin lưu ý:", es = "3. Thông tin người liên hệ:", ts = "Bản", ns = "Quốc gia", is = "2 ký tự tùy chọn (mặc định: YY)", os = "Số lượng tùy chỉnh", ss = "Ngày sinh", rs = "Giảm", as = "Gói chữ ký số", cs = "Quận/Huyện", ls = "Thời hạn", us = "E-Contract", ds = "Chỉnh sửa", hs = "hóa đơn điện tử", fs = "Email", ps = "Nhập số CMND/CCCD", gs = "Nhập ký hiệu hóa đơn", ms = "Nhập số hộ chiếu", ys = "Nhập tên nhà cung cấp", vs = "Nhập mã CQT cấp", bs = "Lỗi khi lấy thông tin mã số thuế.", Ss = "Định dạng tệp không được hỗ trợ", xs = "Kích thước tệp quá lớn", $s = "Địa chỉ không được chứa ký tự đặc biệt", Ps = "CCCD không hợp lệ", Cs = "Ngày sinh không hợp lệ", ws = "Email không hợp lệ", Ts = "Số CCCD không hợp lệ", ks = "Chỉ được dùng chữ cái, số và dấu gạch dưới", Os = "Số điện thoại không hợp lệ", Ls = "Tên nhà cung cấp không hợp lệ", Is = "Mã CQT cấp không hợp lệ", Ns = "Mã số thuế không hợp lệ", Rs = "Lỗi kết nối mạng", Fs = "Trường này là bắt buộc", Es = "Đã xảy ra lỗi", As = "Nữ", Ds = "Định dạng", js = "Mặt trước CCCD", Us = "Họ và tên", Ms = "Giới tính", Hs = "Bạn đã sử dụng hoá đơn điện tử?", Bs = "Bạn đang sử dụng nhà NCC hoá đơn điện tử khác M-invoice không?", Ks = "(Tổng đài Tư vấn, Hỗ trợ miễn phí)", Vs = "Hotline:", qs = "CCCD", zs = "Tăng", Qs = "Đã gửi thông tin", Ws = "Gói hóa đơn", Gs = "Ký hiệu hóa đơn", Xs = "Mẫu số", _s = { 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ế)" }, Js = "B (Đại lý)", Ys = "D (Tài sản)", Zs = "G (Tem GTGT)", er = "H (Tem bán hàng)", tr = "L (CQT)", nr = "M (Máy tính tiền)", ir = "N (Nội bộ)", or = "T (Đăng ký)", sr = "Loại hóa đơn", rr = "X (Thương mại)", ar = "4. THÔNG TIN SỬ DỤNG HDDT:", cr = "hóa đơn/tháng", lr = "2. Thông tin người đại diện pháp luật:", ur = "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.", dr = "Nam", hr = "Tối đa 500Kb", fr = "Tháng", pr = "Gói phù hợp nhất", gr = "Tiếp tục", mr = "Không tìm thấy gói nào.", yr = "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.", vr = "Quý khách vui lòng chờ đợi trong vòng 1-2 ngày làm việc để hoàn tất quá trình đăng ký.", br = "Sau khi được cấp tài khoản, vui lòng vào phần thiết lập ở thanh menu để kết nối và sử dụng dịch vụ", Sr = "của", xr = "OK", $r = "Tùy chọn", Pr = "hoặc", Cr = "Đơn hàng đã được tạo thành công", wr = "Đơn hàng đã hết hạn", Tr = "Thông tin đơn hàng", kr = "Tóm tắt đơn hàng", Or = "Giấy chứng nhận đăng ký doanh nghiệp", Lr = "Hộ chiếu", Ir = "Số tiền thanh toán", Nr = "Thanh toán thất bại", Rr = ["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"], Fr = "Hướng dẫn thanh toán QR", Er = "Hình thức thanh toán:", Ar = "Thanh toán thành công!", Dr = "Hết thời gian thanh toán", jr = "Hết thời gian thanh toán! Vui lòng thử lại.", Ur = "Thanh toán", Mr = "Địa chỉ thường trú", Hr = "Số điện thoại", Br = "Sản phẩm", Kr = "Nhà cung cấp", Vr = "Tên NCC", qr = "Tỉnh/Thành phố", zr = "Thanh toán qua mã QR", Qr = "Quét mã QR để thanh toán", Wr = "Số lượng", Gr = "Đăng ký hoàn tất", Xr = "Phí đăng ký", _r = "Bắt buộc", Jr = "Trở về trang chủ", Yr = "Quay lại bước 1", Zr = "Mẫu số hóa đơn (1-9)", ea = "Lưu", ta = "Số đơn/tháng", na = "Chọn tệp", ia = "Chọn gói hóa đơn điện tử", oa = "Chọn nhà cung cấp", sa = "Chọn gói chữ ký số", ra = "Chọn gói đăng ký", aa = "Sản phẩm đã chọn", ca = "Gói chữ ký số", la = "Bản quyền phần mềm hóa đơn điện tử", ua = "Thông Tin", da = "Xác Nhận Và Thanh Toán", ha = "Gói Hóa Đơn", fa = "Gói đăng ký", pa = "CQT quản lý", ga = "5 ký tự do CQT cấp cho loại hóa đơn máy tính tiền", ma = "Mã số thuế đơn vị", ya = "Điều khoản và Chính sách sử dụng", va = "Thời gian còn lại", ba = "Tổng cộng", Sa = "Tổng tiền", xa = "Thành tiền", $a = "Giao dịch đã được hủy. Quay về trang đăng ký.", Pa = "Đơn vị tính", Ca = "1. Thông tin đơn vị", wa = "đơn/tháng", Ta = "Đơn giá", ka = "đơn/ tháng", Oa = "Tải lên mặt sau CCCD", La = "Tải lên tệp", Ia = "Tải lên mặt trước CCCD", Na = "Tải logo lên", Ra = "Chính sách sử dụng", Fa = "Phường/Xã", Ea = "Đăng ký hóa đơn điện tử", Aa = "Năm phát hành (2 chữ số cuối)", Da = {
1455
- accountName: Fo,
1456
- accountNumber: Eo,
1454
+ website: Io,
1455
+ widgetTitle: No,
1456
+ yearTooltip: Ro
1457
+ }, Eo = "Tên tài khoản", Do = "Số tài khoản", Ao = "Địa chỉ đơn vị", jo = "Tôi đồng ý với", Uo = "và", Mo = "Quay lại", Ho = "Mặt sau CCCD", Bo = "Ngân hàng", Ko = "Ngân hàng thụ hưởng", Vo = "Giấy phép đăng ký kinh doanh", qo = "Hủy", zo = "Hủy giao dịch", Wo = "Đóng", Qo = "C (Có mã CQT)", Go = "K (Không mã)", Xo = "C: Có mã CQT, K: Không mã", _o = "Sắp ra mắt", Jo = "Tên đơn vị", Yo = "Hoàn tất thanh toán của bạn trong", Zo = "Xác nhận", es = "Thông tin lưu ý:", ts = "3. Thông tin người liên hệ:", ns = "Bản", is = "Quốc gia", os = "2 ký tự tùy chọn (mặc định: YY)", ss = "Số lượng tùy chỉnh", rs = "Ngày sinh", as = "Giảm", cs = "Gói chữ ký số", ls = "Quận/Huyện", us = "Thời hạn", ds = "E-Contract", hs = "Chỉnh sửa", fs = "hóa đơn điện tử", ps = "Email", gs = "Nhập số CMND/CCCD", ms = "Nhập ký hiệu hóa đơn", ys = "Nhập số hộ chiếu", vs = "Nhập tên nhà cung cấp", bs = "Nhập mã CQT cấp", Ss = "Lỗi khi lấy thông tin mã số thuế.", xs = "Định dạng tệp không được hỗ trợ", $s = "Kích thước tệp quá lớn", ws = "Địa chỉ không được chứa ký tự đặc biệt", Ps = "CCCD không hợp lệ", Cs = "Ngày sinh không hợp lệ", Ts = "Email không hợp lệ", ks = "Số CCCD không hợp lệ", Os = "Chỉ được dùng chữ cái, số và dấu gạch dưới", Ls = "Số điện thoại không hợp lệ", Is = "Tên nhà cung cấp không hợp lệ", Ns = "Mã CQT cấp không hợp lệ", Rs = "Mã số thuế không hợp lệ", Fs = "Lỗi kết nối mạng", Es = "Trường này là bắt buộc", Ds = "Đã xảy ra lỗi", As = "Nữ", js = "Định dạng", Us = "Mặt trước CCCD", Ms = "Họ và tên", Hs = "Giới tính", Bs = "Bạn đã sử dụng hoá đơn điện tử?", Ks = "Bạn đang sử dụng nhà NCC hoá đơn điện tử khác M-invoice không?", Vs = "(Tổng đài Tư vấn, Hỗ trợ miễn phí)", qs = "Hotline:", zs = "CCCD", Ws = "Tăng", Qs = "Đã gửi thông tin sang nhà cung cấp", Gs = "Gói hóa đơn", Xs = "Ký hiệu hóa đơn", _s = "Mẫu số", Js = { 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ế)" }, Ys = "B (Đại lý)", Zs = "D (Tài sản)", er = "G (Tem GTGT)", tr = "H (Tem bán hàng)", nr = "L (CQT)", ir = "M (Máy tính tiền)", or = "N (Nội bộ)", sr = "T (Đăng ký)", rr = "Loại hóa đơn", ar = "X (Thương mại)", cr = "4. THÔNG TIN SỬ DỤNG HDDT:", lr = "hóa đơn/tháng", ur = "2. Thông tin người đại diện pháp luật:", dr = "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.", hr = "Nam", fr = "Tối đa 500Kb", pr = "Tháng", gr = "Gói phù hợp nhất", mr = "Tiếp tục", yr = "Không tìm thấy gói nào.", vr = "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", br = "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:", Sr = "của", xr = "OK", $r = "Tùy chọn", wr = "hoặc", Pr = "Đơn hàng đã được tạo thành công", Cr = "Đơn hàng đã hết hạn", Tr = "Thông tin đơn hàng", kr = "Tóm tắt đơn hàng", Or = "Giấy chứng nhận đăng ký doanh nghiệp", Lr = "Hộ chiếu", Ir = "Số tiền thanh toán", Nr = "Thanh toán thất bại", Rr = ["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"], Fr = "Hướng dẫn thanh toán QR", Er = "Hình thức thanh toán:", Dr = "Thanh toán thành công!", Ar = "Hết thời gian thanh toán", jr = "Hết thời gian thanh toán! Vui lòng thử lại.", Ur = "Thanh toán", Mr = "Địa chỉ thường trú", Hr = "Số điện thoại", Br = "Sản phẩm", Kr = "Nhà cung cấp", Vr = "Tên NCC", qr = "Tỉnh/Thành phố", zr = "Thanh toán qua mã QR", Wr = "Quét mã QR để thanh toán", Qr = "Số lượng", Gr = "Đăng ký hoàn tất", Xr = "Phí đăng ký", _r = "Bắt buộc", Jr = "Trở về trang chủ", Yr = "Quay lại bước 1", Zr = "Mẫu số hóa đơn (1-9)", ea = "Lưu", ta = "Số đơn/tháng", na = "Chọn tệp", ia = "Chọn gói hóa đơn điện tử", oa = "Chọn nhà cung cấp", sa = "Chọn gói chữ ký số", ra = "Chọn gói đăng ký", aa = "Sản phẩm đã chọn", ca = "Thiết lập", la = "Gói chữ ký số", ua = "Bản quyền phần mềm hóa đơn điện tử", da = "Thông Tin", ha = "Xác Nhận Và Thanh Toán", fa = "Gói Hóa Đơn", pa = "Gói đăng ký", ga = "CQT quản lý", ma = "5 ký tự do CQT cấp cho loại hóa đơn máy tính tiền", ya = "Mã số thuế đơn vị", va = "Điều khoản và Chính sách sử dụng", ba = "Thời gian còn lại", Sa = "Tổng cộng", xa = "Tổng tiền", $a = "Thành tiền", wa = "Giao dịch đã được hủy. Quay về trang đăng ký.", Pa = "Đơn vị tính", Ca = "1. Thông tin đơn vị", Ta = "đơn/tháng", ka = "Đơn giá", Oa = "đơn/ tháng", La = "Tải lên mặt sau CCCD", Ia = "Tải lên tệp", Na = "Tải lên mặt trước CCCD", Ra = "Tải logo lên", Fa = "Chính sách sử dụng", Ea = "Phường/Xã", Da = "Website", Aa = "Đăng ký hóa đơn điện tử", ja = "Năm phát hành (2 chữ số cuối)", Ua = {
1458
+ accountName: Eo,
1459
+ accountNumber: Do,
1457
1460
  address: Ao,
1458
- agreeWith: Do,
1459
- and: jo,
1460
- back: Uo,
1461
- backIdCard: Mo,
1462
- bankName: Ho,
1463
- beneficiaryBank: Bo,
1464
- businessLicense: Ko,
1465
- cancel: Vo,
1466
- cancelTransaction: qo,
1467
- close: zo,
1461
+ agreeWith: jo,
1462
+ and: Uo,
1463
+ back: Mo,
1464
+ backIdCard: Ho,
1465
+ bankName: Bo,
1466
+ beneficiaryBank: Ko,
1467
+ businessLicense: Vo,
1468
+ cancel: qo,
1469
+ cancelTransaction: zo,
1470
+ close: Wo,
1468
1471
  codeTypeC: Qo,
1469
- codeTypeK: Wo,
1470
- codeTypeTooltip: Go,
1471
- comingSoon: Xo,
1472
- companyName: _o,
1473
- completePaymentIn: Jo,
1474
- confirm: Yo,
1475
- confirmationTitle: Zo,
1476
- contactInfo: es,
1477
- copy: ts,
1478
- country: ns,
1479
- customLettersTooltip: is,
1480
- customUnits: os,
1481
- dateOfBirth: ss,
1482
- decrease: rs,
1472
+ codeTypeK: Go,
1473
+ codeTypeTooltip: Xo,
1474
+ comingSoon: _o,
1475
+ companyName: Jo,
1476
+ completePaymentIn: Yo,
1477
+ confirm: Zo,
1478
+ confirmationTitle: es,
1479
+ contactInfo: ts,
1480
+ copy: ns,
1481
+ country: is,
1482
+ customLettersTooltip: os,
1483
+ customUnits: ss,
1484
+ dateOfBirth: rs,
1485
+ decrease: as,
1483
1486
  delete: "Xóa",
1484
- digitalSignaturePackage: as,
1485
- district: cs,
1486
- duration: ls,
1487
- eContractTitle: us,
1488
- edit: ds,
1489
- electronicInvoices: hs,
1490
- email: fs,
1491
- enterIdCard: ps,
1492
- enterInvoiceSymbol: gs,
1493
- enterPassport: ms,
1494
- enterProviderName: ys,
1495
- enterTaxAuthorityCode: vs,
1496
- errorFetchTaxInfo: bs,
1497
- errorFileFormat: Ss,
1498
- errorFileSize: xs,
1499
- errorInvalidAddress: $s,
1487
+ digitalSignaturePackage: cs,
1488
+ district: ls,
1489
+ duration: us,
1490
+ eContractTitle: ds,
1491
+ edit: hs,
1492
+ electronicInvoices: fs,
1493
+ email: ps,
1494
+ enterIdCard: gs,
1495
+ enterInvoiceSymbol: ms,
1496
+ enterPassport: ys,
1497
+ enterProviderName: vs,
1498
+ enterTaxAuthorityCode: bs,
1499
+ errorFetchTaxInfo: Ss,
1500
+ errorFileFormat: xs,
1501
+ errorFileSize: $s,
1502
+ errorInvalidAddress: ws,
1500
1503
  errorInvalidCard: Ps,
1501
1504
  errorInvalidDate: Cs,
1502
- errorInvalidEmail: ws,
1503
- errorInvalidIdCard: Ts,
1504
- errorInvalidName: ks,
1505
- errorInvalidPhone: Os,
1506
- errorInvalidProviderName: Ls,
1507
- errorInvalidTaxAuthorityCode: Is,
1508
- errorInvalidTaxCode: Ns,
1509
- errorNetwork: Rs,
1510
- errorRequired: Fs,
1511
- errorUnknown: Es,
1505
+ errorInvalidEmail: Ts,
1506
+ errorInvalidIdCard: ks,
1507
+ errorInvalidName: Os,
1508
+ errorInvalidPhone: Ls,
1509
+ errorInvalidProviderName: Is,
1510
+ errorInvalidTaxAuthorityCode: Ns,
1511
+ errorInvalidTaxCode: Rs,
1512
+ errorNetwork: Fs,
1513
+ errorRequired: Es,
1514
+ errorUnknown: Ds,
1512
1515
  female: As,
1513
- fileFormat: Ds,
1514
- frontIdCard: js,
1515
- fullName: Us,
1516
- gender: Ms,
1517
- hasUsedEInvoice: Hs,
1518
- hasUsedEInvoiceBefore: Bs,
1519
- hotlineDesc: Ks,
1520
- hotlineDomestic: Vs,
1521
- idNumber: qs,
1522
- increase: zs,
1516
+ fileFormat: js,
1517
+ frontIdCard: Us,
1518
+ fullName: Ms,
1519
+ gender: Hs,
1520
+ hasUsedEInvoice: Bs,
1521
+ hasUsedEInvoiceBefore: Ks,
1522
+ hotlineDesc: Vs,
1523
+ hotlineDomestic: qs,
1524
+ idNumber: zs,
1525
+ increase: Ws,
1523
1526
  informationSent: Qs,
1524
- invoicePackage: Ws,
1525
- invoiceSymbol: Gs,
1526
- invoiceTemplate: Xs,
1527
- invoiceTemplateTypes: _s,
1528
- invoiceTypeB: Js,
1529
- invoiceTypeD: Ys,
1530
- invoiceTypeG: Zs,
1531
- invoiceTypeH: er,
1532
- invoiceTypeL: tr,
1533
- invoiceTypeM: nr,
1534
- invoiceTypeN: ir,
1535
- invoiceTypeT: or,
1536
- invoiceTypeTooltip: sr,
1537
- invoiceTypeX: rr,
1538
- invoiceUsageInfo: ar,
1539
- invoicesPerMonth: cr,
1540
- legalRepInfo: lr,
1541
- legalRepNote: ur,
1542
- male: dr,
1543
- maxFileSize: hr,
1544
- month: fr,
1545
- mostSuitablePackage: pr,
1546
- next: gr,
1547
- noPackageFound: mr,
1548
- notice1: yr,
1549
- notice2: vr,
1550
- notice3: br,
1527
+ invoicePackage: Gs,
1528
+ invoiceSymbol: Xs,
1529
+ invoiceTemplate: _s,
1530
+ invoiceTemplateTypes: Js,
1531
+ invoiceTypeB: Ys,
1532
+ invoiceTypeD: Zs,
1533
+ invoiceTypeG: er,
1534
+ invoiceTypeH: tr,
1535
+ invoiceTypeL: nr,
1536
+ invoiceTypeM: ir,
1537
+ invoiceTypeN: or,
1538
+ invoiceTypeT: sr,
1539
+ invoiceTypeTooltip: rr,
1540
+ invoiceTypeX: ar,
1541
+ invoiceUsageInfo: cr,
1542
+ invoicesPerMonth: lr,
1543
+ legalRepInfo: ur,
1544
+ legalRepNote: dr,
1545
+ male: hr,
1546
+ maxFileSize: fr,
1547
+ month: pr,
1548
+ mostSuitablePackage: gr,
1549
+ next: mr,
1550
+ noPackageFound: yr,
1551
+ notice1: vr,
1552
+ notice2: br,
1553
+ "notice3.1": "Sau khi được cấp tài khoản, vui lòng vào Link",
1554
+ "notice3.2": "để kết nối và sử dụng dịch vụ HDDT",
1551
1555
  of: Sr,
1552
1556
  ok: xr,
1553
1557
  optional: $r,
1554
- or: Pr,
1555
- orderCreated: Cr,
1556
- orderExpired: wr,
1558
+ or: wr,
1559
+ orderCreated: Pr,
1560
+ orderExpired: Cr,
1557
1561
  orderInfo: Tr,
1558
1562
  orderSummary: kr,
1559
1563
  organizationCert: Or,
@@ -1564,8 +1568,8 @@ const kt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
1564
1568
  paymentInstructions: Rr,
1565
1569
  paymentInstructionsTitle: Fr,
1566
1570
  paymentMethod: Er,
1567
- paymentSuccess: Ar,
1568
- paymentTimeout: Dr,
1571
+ paymentSuccess: Dr,
1572
+ paymentTimeout: Ar,
1569
1573
  paymentTimeoutMessage: jr,
1570
1574
  paymentTitle: Ur,
1571
1575
  permanentAddress: Mr,
@@ -1575,8 +1579,8 @@ const kt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
1575
1579
  providerName: Vr,
1576
1580
  province: qr,
1577
1581
  qrPayment: zr,
1578
- qrPaymentTitle: Qr,
1579
- quantity: Wr,
1582
+ qrPaymentTitle: Wr,
1583
+ quantity: Qr,
1580
1584
  registrationComplete: Gr,
1581
1585
  registrationFee: Xr,
1582
1586
  required: _r,
@@ -1591,49 +1595,51 @@ const kt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
1591
1595
  selectSignaturePackage: sa,
1592
1596
  selectSubscriptionPackage: ra,
1593
1597
  selectedProducts: aa,
1594
- signaturePackage: ca,
1595
- softwareLicense: la,
1596
- stepInfo: ua,
1597
- stepPayment: da,
1598
- stepPlan: ha,
1599
- subscriptionPackage: fa,
1600
- taxAuthority: pa,
1601
- taxAuthorityCode: ga,
1602
- taxCode: ma,
1603
- termsAndUsagePolicy: ya,
1604
- timeLeft: va,
1605
- total: ba,
1606
- totalAmount: Sa,
1607
- totalPrice: xa,
1608
- transactionCanceled: $a,
1598
+ settings: ca,
1599
+ signaturePackage: la,
1600
+ softwareLicense: ua,
1601
+ stepInfo: da,
1602
+ stepPayment: ha,
1603
+ stepPlan: fa,
1604
+ subscriptionPackage: pa,
1605
+ taxAuthority: ga,
1606
+ taxAuthorityCode: ma,
1607
+ taxCode: ya,
1608
+ termsAndUsagePolicy: va,
1609
+ timeLeft: ba,
1610
+ total: Sa,
1611
+ totalAmount: xa,
1612
+ totalPrice: $a,
1613
+ transactionCanceled: wa,
1609
1614
  unit: Pa,
1610
1615
  unitInfo: Ca,
1611
- unitPerMonth: wa,
1612
- unitPrice: Ta,
1613
- unitsPerMonth: ka,
1614
- uploadBackId: Oa,
1615
- uploadFile: La,
1616
- uploadFrontId: Ia,
1617
- uploadLogo: Na,
1618
- usagePolicy: Ra,
1619
- ward: Fa,
1620
- widgetTitle: Ea,
1621
- yearTooltip: Aa
1616
+ unitPerMonth: Ta,
1617
+ unitPrice: ka,
1618
+ unitsPerMonth: Oa,
1619
+ uploadBackId: La,
1620
+ uploadFile: Ia,
1621
+ uploadFrontId: Na,
1622
+ uploadLogo: Ra,
1623
+ usagePolicy: Fa,
1624
+ ward: Ea,
1625
+ website: Da,
1626
+ widgetTitle: Aa,
1627
+ yearTooltip: ja
1622
1628
  }, {
1623
- slice: ja,
1624
- forEach: Ua
1629
+ slice: Ma,
1630
+ forEach: Ha
1625
1631
  } = [];
1626
- function Ma(o) {
1627
- return Ua.call(ja.call(arguments, 1), (e) => {
1632
+ function Ba(o) {
1633
+ return Ha.call(Ma.call(arguments, 1), (e) => {
1628
1634
  if (e)
1629
1635
  for (const t in e)
1630
1636
  o[t] === void 0 && (o[t] = e[t]);
1631
1637
  }), o;
1632
1638
  }
1633
- function Ha(o) {
1639
+ function Ka(o) {
1634
1640
  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));
1635
1641
  }
1636
- const Ae = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ba = function(o, e) {
1642
+ const De = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Va = function(o, e) {
1637
1643
  const n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
1638
1644
  path: "/"
1639
1645
  }, i = encodeURIComponent(e);
@@ -1644,12 +1650,12 @@ const Ae = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ba = function(o, e) {
1644
1650
  s += `; Max-Age=${Math.floor(r)}`;
1645
1651
  }
1646
1652
  if (n.domain) {
1647
- if (!Ae.test(n.domain))
1653
+ if (!De.test(n.domain))
1648
1654
  throw new TypeError("option domain is invalid");
1649
1655
  s += `; Domain=${n.domain}`;
1650
1656
  }
1651
1657
  if (n.path) {
1652
- if (!Ae.test(n.path))
1658
+ if (!De.test(n.path))
1653
1659
  throw new TypeError("option path is invalid");
1654
1660
  s += `; Path=${n.path}`;
1655
1661
  }
@@ -1676,13 +1682,13 @@ const Ae = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ba = function(o, e) {
1676
1682
  throw new TypeError("option sameSite is invalid");
1677
1683
  }
1678
1684
  return n.partitioned && (s += "; Partitioned"), s;
1679
- }, De = {
1685
+ }, Ae = {
1680
1686
  create(o, e, t, n) {
1681
1687
  let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
1682
1688
  path: "/",
1683
1689
  sameSite: "strict"
1684
1690
  };
1685
- t && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + t * 60 * 1e3)), n && (i.domain = n), document.cookie = Ba(o, e, i);
1691
+ t && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + t * 60 * 1e3)), n && (i.domain = n), document.cookie = Va(o, e, i);
1686
1692
  },
1687
1693
  read(o) {
1688
1694
  const e = `${o}=`, t = document.cookie.split(";");
@@ -1697,7 +1703,7 @@ const Ae = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ba = function(o, e) {
1697
1703
  this.create(o, "", -1, e);
1698
1704
  }
1699
1705
  };
1700
- var Ka = {
1706
+ var qa = {
1701
1707
  name: "cookie",
1702
1708
  // Deconstruct the options object and extract the lookupCookie property
1703
1709
  lookup(o) {
@@ -1705,7 +1711,7 @@ var Ka = {
1705
1711
  lookupCookie: e
1706
1712
  } = o;
1707
1713
  if (e && typeof document != "undefined")
1708
- return De.read(e) || void 0;
1714
+ return Ae.read(e) || void 0;
1709
1715
  },
1710
1716
  // Deconstruct the options object and extract the lookupCookie, cookieMinutes, cookieDomain, and cookieOptions properties
1711
1717
  cacheUserLanguage(o, e) {
@@ -1715,9 +1721,9 @@ var Ka = {
1715
1721
  cookieDomain: i,
1716
1722
  cookieOptions: s
1717
1723
  } = e;
1718
- t && typeof document != "undefined" && De.create(t, o, n, i, s);
1724
+ t && typeof document != "undefined" && Ae.create(t, o, n, i, s);
1719
1725
  }
1720
- }, Va = {
1726
+ }, za = {
1721
1727
  name: "querystring",
1722
1728
  // Deconstruct the options object and extract the lookupQuerystring property
1723
1729
  lookup(o) {
@@ -1738,7 +1744,7 @@ var Ka = {
1738
1744
  }
1739
1745
  return t;
1740
1746
  }
1741
- }, qa = {
1747
+ }, Wa = {
1742
1748
  name: "hash",
1743
1749
  // Deconstruct the options object and extract the lookupHash property and the lookupFromHashIndex property
1744
1750
  lookup(o) {
@@ -1783,7 +1789,7 @@ const je = () => {
1783
1789
  }
1784
1790
  return M;
1785
1791
  };
1786
- var za = {
1792
+ var Qa = {
1787
1793
  name: "localStorage",
1788
1794
  // Deconstruct the options object and extract the lookupLocalStorage property
1789
1795
  lookup(o) {
@@ -1814,7 +1820,7 @@ const Ue = () => {
1814
1820
  }
1815
1821
  return H;
1816
1822
  };
1817
- var Qa = {
1823
+ var Ga = {
1818
1824
  name: "sessionStorage",
1819
1825
  lookup(o) {
1820
1826
  let {
@@ -1829,7 +1835,7 @@ var Qa = {
1829
1835
  } = e;
1830
1836
  t && Ue() && window.sessionStorage.setItem(t, o);
1831
1837
  }
1832
- }, Wa = {
1838
+ }, Xa = {
1833
1839
  name: "navigator",
1834
1840
  lookup(o) {
1835
1841
  const e = [];
@@ -1846,7 +1852,7 @@ var Qa = {
1846
1852
  }
1847
1853
  return e.length > 0 ? e : void 0;
1848
1854
  }
1849
- }, Ga = {
1855
+ }, _a = {
1850
1856
  name: "htmlTag",
1851
1857
  // Deconstruct the options object and extract the htmlTag property
1852
1858
  lookup(o) {
@@ -1856,7 +1862,7 @@ var Qa = {
1856
1862
  const n = e || (typeof document != "undefined" ? document.documentElement : null);
1857
1863
  return n && typeof n.getAttribute == "function" && (t = n.getAttribute("lang")), t;
1858
1864
  }
1859
- }, Xa = {
1865
+ }, Ja = {
1860
1866
  name: "path",
1861
1867
  // Deconstruct the options object and extract the lookupFromPathIndex property
1862
1868
  lookup(o) {
@@ -1868,7 +1874,7 @@ var Qa = {
1868
1874
  const t = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
1869
1875
  return Array.isArray(t) ? (i = t[typeof e == "number" ? e : 0]) == null ? void 0 : i.replace("/", "") : void 0;
1870
1876
  }
1871
- }, _a = {
1877
+ }, Ya = {
1872
1878
  name: "subdomain",
1873
1879
  lookup(o) {
1874
1880
  var i, s;
@@ -1880,15 +1886,15 @@ var Qa = {
1880
1886
  return n[t];
1881
1887
  }
1882
1888
  };
1883
- let Qe = !1;
1889
+ let We = !1;
1884
1890
  try {
1885
- document.cookie, Qe = !0;
1891
+ document.cookie, We = !0;
1886
1892
  } catch (o) {
1887
1893
  }
1888
- const We = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
1889
- Qe || We.splice(1, 1);
1890
- const Ja = () => ({
1891
- order: We,
1894
+ const Qe = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
1895
+ We || Qe.splice(1, 1);
1896
+ const Za = () => ({
1897
+ order: Qe,
1892
1898
  lookupQuerystring: "lng",
1893
1899
  lookupCookie: "i18next",
1894
1900
  lookupLocalStorage: "i18nextLng",
@@ -1909,7 +1915,7 @@ class Ge {
1909
1915
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
1910
1916
  languageUtils: {}
1911
1917
  }, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1912
- this.services = e, this.options = Ma(t, this.options || {}, Ja()), 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(Ka), this.addDetector(Va), this.addDetector(za), this.addDetector(Qa), this.addDetector(Wa), this.addDetector(Ga), this.addDetector(Xa), this.addDetector(_a), this.addDetector(qa);
1918
+ this.services = e, this.options = Ba(t, this.options || {}, Za()), 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(qa), this.addDetector(za), this.addDetector(Qa), this.addDetector(Ga), this.addDetector(Xa), this.addDetector(_a), this.addDetector(Ja), this.addDetector(Ya), this.addDetector(Wa);
1913
1919
  }
1914
1920
  addDetector(e) {
1915
1921
  return this.detectors[e.name] = e, this;
@@ -1921,7 +1927,7 @@ class Ge {
1921
1927
  let i = this.detectors[n].lookup(this.options);
1922
1928
  i && typeof i == "string" && (i = [i]), i && (t = t.concat(i));
1923
1929
  }
1924
- }), t = t.filter((n) => n != null && !Ha(n)).map((n) => this.options.convertDetectedLanguage(n)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? t : t.length > 0 ? t[0] : null;
1930
+ }), t = t.filter((n) => n != null && !Ka(n)).map((n) => this.options.convertDetectedLanguage(n)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? t : t.length > 0 ? t[0] : null;
1925
1931
  }
1926
1932
  cacheUserLanguage(e) {
1927
1933
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
@@ -1942,11 +1948,11 @@ function de(o) {
1942
1948
  function Xe() {
1943
1949
  return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest == "undefined" ? "undefined" : de(XMLHttpRequest)) === "object";
1944
1950
  }
1945
- function Ya(o) {
1951
+ function ec(o) {
1946
1952
  return !!o && typeof o.then == "function";
1947
1953
  }
1948
- function Za(o) {
1949
- return Ya(o) ? o : Promise.resolve(o);
1954
+ function tc(o) {
1955
+ return ec(o) ? o : Promise.resolve(o);
1950
1956
  }
1951
1957
  function Me(o, e) {
1952
1958
  var t = Object.keys(o);
@@ -1962,21 +1968,21 @@ function He(o) {
1962
1968
  for (var e = 1; e < arguments.length; e++) {
1963
1969
  var t = arguments[e] != null ? arguments[e] : {};
1964
1970
  e % 2 ? Me(Object(t), !0).forEach(function(n) {
1965
- ec(o, n, t[n]);
1971
+ nc(o, n, t[n]);
1966
1972
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : Me(Object(t)).forEach(function(n) {
1967
1973
  Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
1968
1974
  });
1969
1975
  }
1970
1976
  return o;
1971
1977
  }
1972
- function ec(o, e, t) {
1973
- return (e = tc(e)) in o ? Object.defineProperty(o, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : o[e] = t, o;
1978
+ function nc(o, e, t) {
1979
+ return (e = ic(e)) in o ? Object.defineProperty(o, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : o[e] = t, o;
1974
1980
  }
1975
- function tc(o) {
1976
- var e = nc(o, "string");
1981
+ function ic(o) {
1982
+ var e = oc(o, "string");
1977
1983
  return j(e) == "symbol" ? e : e + "";
1978
1984
  }
1979
- function nc(o, e) {
1985
+ function oc(o, e) {
1980
1986
  if (j(o) != "object" || !o) return o;
1981
1987
  var t = o[Symbol.toPrimitive];
1982
1988
  if (t !== void 0) {
@@ -1994,17 +2000,17 @@ function j(o) {
1994
2000
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1995
2001
  }, j(o);
1996
2002
  }
1997
- var A = typeof fetch == "function" ? fetch : void 0;
1998
- typeof global != "undefined" && global.fetch ? A = global.fetch : typeof window != "undefined" && window.fetch && (A = window.fetch);
2003
+ var D = typeof fetch == "function" ? fetch : void 0;
2004
+ typeof global != "undefined" && global.fetch ? D = global.fetch : typeof window != "undefined" && window.fetch && (D = window.fetch);
1999
2005
  var X;
2000
2006
  Xe() && (typeof global != "undefined" && global.XMLHttpRequest ? X = global.XMLHttpRequest : typeof window != "undefined" && window.XMLHttpRequest && (X = window.XMLHttpRequest));
2001
2007
  var ie;
2002
2008
  typeof ActiveXObject == "function" && (typeof global != "undefined" && global.ActiveXObject ? ie = global.ActiveXObject : typeof window != "undefined" && window.ActiveXObject && (ie = window.ActiveXObject));
2003
- typeof A != "function" && (A = void 0);
2004
- if (!A && !X && !ie)
2009
+ typeof D != "function" && (D = void 0);
2010
+ if (!D && !X && !ie)
2005
2011
  try {
2006
2012
  import("./browser-ponyfill-BxQPfTD2.js").then((o) => o.b).then(function(o) {
2007
- A = o.default;
2013
+ D = o.default;
2008
2014
  }).catch(function() {
2009
2015
  });
2010
2016
  } catch (o) {
@@ -2037,8 +2043,8 @@ var he = function(e, t) {
2037
2043
  return;
2038
2044
  }
2039
2045
  }
2040
- typeof fetch == "function" ? fetch(e, t).then(s).catch(n) : A(e, t).then(s).catch(n);
2041
- }, Ke = !1, ic = function(e, t, n, i) {
2046
+ typeof fetch == "function" ? fetch(e, t).then(s).catch(n) : D(e, t).then(s).catch(n);
2047
+ }, Ke = !1, sc = function(e, t, n, i) {
2042
2048
  e.queryStringParams && (t = he(t, e.queryStringParams));
2043
2049
  var s = He({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
2044
2050
  typeof window == "undefined" && typeof global != "undefined" && typeof global.process != "undefined" && global.process.versions && global.process.versions.node && (s["User-Agent"] = "i18next-http-backend (node/".concat(global.process.version, "; ").concat(global.process.platform, " ").concat(global.process.arch, ")")), n && (s["Content-Type"] = "application/json");
@@ -2060,7 +2066,7 @@ var he = function(e, t) {
2060
2066
  i(d);
2061
2067
  }
2062
2068
  }
2063
- }, oc = function(e, t, n, i) {
2069
+ }, rc = function(e, t, n, i) {
2064
2070
  n && j(n) === "object" && (n = he("", n).slice(1)), e.queryStringParams && (t = he(t, e.queryStringParams));
2065
2071
  try {
2066
2072
  var s = X ? new X() : new ie("MSXML2.XMLHTTP.3.0");
@@ -2078,12 +2084,12 @@ var he = function(e, t) {
2078
2084
  } catch (c) {
2079
2085
  console && console.log(c);
2080
2086
  }
2081
- }, sc = function(e, t, n, i) {
2087
+ }, ac = function(e, t, n, i) {
2082
2088
  if (typeof n == "function" && (i = n, n = void 0), i = i || function() {
2083
- }, A && t.indexOf("file:") !== 0)
2084
- return ic(e, t, n, i);
2089
+ }, D && t.indexOf("file:") !== 0)
2090
+ return sc(e, t, n, i);
2085
2091
  if (Xe() || typeof ActiveXObject == "function")
2086
- return oc(e, t, n, i);
2092
+ return rc(e, t, n, i);
2087
2093
  i(new Error("No fetch and no xhr implementation found!"));
2088
2094
  };
2089
2095
  function B(o) {
@@ -2115,26 +2121,26 @@ function ae(o) {
2115
2121
  }
2116
2122
  return o;
2117
2123
  }
2118
- function rc(o, e) {
2124
+ function cc(o, e) {
2119
2125
  if (!(o instanceof e)) throw new TypeError("Cannot call a class as a function");
2120
2126
  }
2121
- function ac(o, e) {
2127
+ function lc(o, e) {
2122
2128
  for (var t = 0; t < e.length; t++) {
2123
2129
  var n = e[t];
2124
2130
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, Je(n.key), n);
2125
2131
  }
2126
2132
  }
2127
- function cc(o, e, t) {
2128
- return e && ac(o.prototype, e), Object.defineProperty(o, "prototype", { writable: !1 }), o;
2133
+ function uc(o, e, t) {
2134
+ return e && lc(o.prototype, e), Object.defineProperty(o, "prototype", { writable: !1 }), o;
2129
2135
  }
2130
2136
  function _e(o, e, t) {
2131
2137
  return (e = Je(e)) in o ? Object.defineProperty(o, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : o[e] = t, o;
2132
2138
  }
2133
2139
  function Je(o) {
2134
- var e = lc(o, "string");
2140
+ var e = dc(o, "string");
2135
2141
  return B(e) == "symbol" ? e : e + "";
2136
2142
  }
2137
- function lc(o, e) {
2143
+ function dc(o, e) {
2138
2144
  if (B(o) != "object" || !o) return o;
2139
2145
  var t = o[Symbol.toPrimitive];
2140
2146
  if (t !== void 0) {
@@ -2144,7 +2150,7 @@ function lc(o, e) {
2144
2150
  }
2145
2151
  return String(o);
2146
2152
  }
2147
- var uc = function() {
2153
+ var hc = function() {
2148
2154
  return {
2149
2155
  loadPath: "/locales/{{lng}}/{{ns}}.json",
2150
2156
  addPath: "/locales/add/{{lng}}/{{ns}}",
@@ -2157,7 +2163,7 @@ var uc = function() {
2157
2163
  },
2158
2164
  parseLoadPayload: function(t, n) {
2159
2165
  },
2160
- request: sc,
2166
+ request: ac,
2161
2167
  reloadInterval: typeof window != "undefined" ? !1 : 60 * 60 * 1e3,
2162
2168
  customHeaders: {},
2163
2169
  queryStringParams: {},
@@ -2173,13 +2179,13 @@ var uc = function() {
2173
2179
  }, Ye = function() {
2174
2180
  function o(e) {
2175
2181
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2176
- rc(this, o), this.services = e, this.options = t, this.allOptions = n, this.type = "backend", this.init(e, t, n);
2182
+ cc(this, o), this.services = e, this.options = t, this.allOptions = n, this.type = "backend", this.init(e, t, n);
2177
2183
  }
2178
- return cc(o, [{
2184
+ return uc(o, [{
2179
2185
  key: "init",
2180
2186
  value: function(t) {
2181
2187
  var n = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2182
- if (this.services = t, this.options = ae(ae(ae({}, uc()), this.options || {}), i), this.allOptions = s, this.services && this.options.reloadInterval) {
2188
+ if (this.services = t, this.options = ae(ae(ae({}, hc()), this.options || {}), i), this.allOptions = s, this.services && this.options.reloadInterval) {
2183
2189
  var r = setInterval(function() {
2184
2190
  return n.reload();
2185
2191
  }, this.options.reloadInterval);
@@ -2200,7 +2206,7 @@ var uc = function() {
2200
2206
  key: "_readAny",
2201
2207
  value: function(t, n, i, s, r) {
2202
2208
  var a = this, c = this.options.loadPath;
2203
- typeof this.options.loadPath == "function" && (c = this.options.loadPath(t, i)), c = Za(c), c.then(function(l) {
2209
+ typeof this.options.loadPath == "function" && (c = this.options.loadPath(t, i)), c = tc(c), c.then(function(l) {
2204
2210
  if (!l) return r(null, {});
2205
2211
  var d = a.services.interpolator.interpolate(l, {
2206
2212
  lng: t.join("+"),
@@ -2284,8 +2290,8 @@ b.use(Ye).use(Ge).init({
2284
2290
  fallbackLng: "vi",
2285
2291
  debug: !1,
2286
2292
  resources: {
2287
- en: { translation: Ro },
2288
- vi: { translation: Da }
2293
+ en: { translation: Fo },
2294
+ vi: { translation: Ua }
2289
2295
  },
2290
2296
  interpolation: {
2291
2297
  escapeValue: !1
@@ -2293,13 +2299,13 @@ b.use(Ye).use(Ge).init({
2293
2299
  // Allow returning objects/arrays from translations
2294
2300
  returnObjects: !0
2295
2301
  });
2296
- function dc(o) {
2302
+ function fc(o) {
2297
2303
  b.changeLanguage(o);
2298
2304
  }
2299
- function gc(o, e) {
2305
+ function yc(o, e) {
2300
2306
  return b.t(o, g({ returnObjects: !0 }, e));
2301
2307
  }
2302
- function hc(o = "dev") {
2308
+ function pc(o = "dev") {
2303
2309
  const e = {
2304
2310
  dev: {
2305
2311
  invoiceHubBaseUrl: "https://stag-invoice-hub.atomsolution.vn",
@@ -2342,7 +2348,7 @@ function Ze(o) {
2342
2348
  console.warn("Could not save to localStorage:", e);
2343
2349
  }
2344
2350
  }
2345
- function fc() {
2351
+ function gc() {
2346
2352
  if (fe && Z)
2347
2353
  return Z;
2348
2354
  try {
@@ -2354,15 +2360,15 @@ function fc() {
2354
2360
  }
2355
2361
  return "dev";
2356
2362
  }
2357
- function mc() {
2358
- const o = fc();
2359
- return hc(o);
2363
+ function vc() {
2364
+ const o = gc();
2365
+ return pc(o);
2360
2366
  }
2361
2367
  let ce = null, le = null;
2362
- function yc(o) {
2368
+ function bc(o) {
2363
2369
  return se(this, null, function* () {
2364
2370
  if (o.mode && Ze(o.mode), o.language && et(o.language), !le) {
2365
- const { InvoiceRegisterWidget: n } = yield import("./widget-BlIh7V-h.js");
2371
+ const { InvoiceRegisterWidget: n } = yield import("./widget-DIhCsP2x.js");
2366
2372
  le = n;
2367
2373
  }
2368
2374
  const e = typeof o.selector == "string" ? document.querySelector(o.selector) : o.selector;
@@ -2374,15 +2380,17 @@ function yc(o) {
2374
2380
  return le(
2375
2381
  e,
2376
2382
  t,
2383
+ o.onShowPolicy || (() => {
2384
+ }),
2377
2385
  o.data || {},
2378
2386
  o.theme
2379
2387
  ), { destroy: t };
2380
2388
  });
2381
2389
  }
2382
- function vc(o) {
2390
+ function Sc(o) {
2383
2391
  return se(this, null, function* () {
2384
2392
  if (o.mode && Ze(o.mode), o.language && et(o.language), !ce) {
2385
- const { EContractWidget: n } = yield import("./widget-BlIh7V-h.js");
2393
+ const { EContractWidget: n } = yield import("./widget-DIhCsP2x.js");
2386
2394
  ce = n;
2387
2395
  }
2388
2396
  const e = typeof o.selector == "string" ? document.querySelector(o.selector) : o.selector;
@@ -2398,22 +2406,22 @@ let pe = /* @__PURE__ */ new Set();
2398
2406
  function et(o) {
2399
2407
  if (o !== "vi" && o !== "en")
2400
2408
  throw new Error(`[WidgetSDK] Unsupported language: ${o}`);
2401
- dc(o), pe.forEach((e) => {
2409
+ fc(o), pe.forEach((e) => {
2402
2410
  e.rerender && e.rerender();
2403
2411
  });
2404
2412
  }
2405
- function bc(o) {
2413
+ function xc(o) {
2406
2414
  pe.add(o);
2407
2415
  }
2408
- function Sc(o) {
2416
+ function $c(o) {
2409
2417
  pe.delete(o);
2410
2418
  }
2411
2419
  export {
2412
- vc as a,
2413
- mc as g,
2414
- yc as i,
2415
- bc as r,
2420
+ Sc as a,
2421
+ vc as g,
2422
+ bc as i,
2423
+ xc as r,
2416
2424
  et as s,
2417
- gc as t,
2418
- Sc as u
2425
+ yc as t,
2426
+ $c as u
2419
2427
  };