@invoice-sdk/widget 1.50.0 → 1.50.2

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