@invoice-sdk/widget 1.70.1 → 1.71.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,12 +37,12 @@ var U = (A, g, B) => new Promise((C, Q) => {
37
37
  }
38
38
  }, n = (t) => t.done ? C(t.value) : Promise.resolve(t.value).then(I, E);
39
39
  n((B = B.apply(A, g)).next());
40
- }), rg = function(A, g) {
40
+ }), mg = function(A, g) {
41
41
  this[0] = A, this[1] = g;
42
42
  }, DC = (A, g, B) => {
43
43
  var C = (E, n, t, c) => {
44
44
  try {
45
- var h = B[E](n), a = (n = h.value) instanceof rg, e = h.done;
45
+ var h = B[E](n), a = (n = h.value) instanceof mg, e = h.done;
46
46
  Promise.resolve(a ? n[0] : n).then((w) => a ? C(E === "return" ? E : "next", n[1] ? { done: w.done, value: w.value } : w, t, c) : t({ value: w, done: e })).catch((w) => C("throw", w, t, c));
47
47
  } catch (w) {
48
48
  c(w);
@@ -58,7 +58,7 @@ var U = (A, g, B) => new Promise((C, Q) => {
58
58
  }
59
59
  return B = !0, {
60
60
  done: !1,
61
- value: new rg(new Promise((n) => {
61
+ value: new mg(new Promise((n) => {
62
62
  var t = g[I](E);
63
63
  t instanceof Object || OI("Object expected"), n(t);
64
64
  }), 1)
@@ -67,7 +67,7 @@ var U = (A, g, B) => new Promise((C, Q) => {
67
67
  throw I;
68
68
  }, "return" in g && C("return"), Q;
69
69
  }, VB = (A, g, B) => (g = A[Yg("asyncIterator")]) ? g.call(A) : (A = A[Yg("iterator")](), g = {}, B = (C, Q) => (Q = A[C]) && (g[C] = (I) => new Promise((E, n, t) => (I = Q.call(A, I), t = I.done, Promise.resolve(I.value).then((c) => E({ value: c, done: t }), n)))), B("next"), B("return"), g);
70
- import { t as s, g as gB, a as CB, b as mg, c as LI, m as NI, d as yI, f as bI, v as jI, r as ZQ, u as VQ } from "./index-CvrdWQ2c.js";
70
+ import { t as s, g as gB, a as CB, b as qg, c as LI, m as NI, d as yI, f as bI, v as jI, r as ZQ, u as VQ } from "./index-h0ybQSCW.js";
71
71
  import { g as WQ } from "./_commonjsHelpers-bAxELxBV.js";
72
72
  function WB({ steps: A = [], currentStep: g = 1 } = {}) {
73
73
  const B = document.createElement("div");
@@ -370,7 +370,7 @@ function SI({
370
370
  }
371
371
  };
372
372
  }
373
- function RA({
373
+ function xA({
374
374
  name: A,
375
375
  value: g = "",
376
376
  type: B = "text",
@@ -575,7 +575,7 @@ function mC({
575
575
  };
576
576
  }
577
577
  }
578
- function eg({
578
+ function ag({
579
579
  title: A,
580
580
  isDisabled: g = !1,
581
581
  handleClick: B = null,
@@ -645,7 +645,7 @@ function _B({
645
645
  function u(q) {
646
646
  w = q, q ? (e.innerText = q, e.style.display = "block") : (e.innerText = "", e.style.display = "none");
647
647
  }
648
- const D = eg({
648
+ const D = ag({
649
649
  title: "Upload file",
650
650
  className: "wgt:bg-primary wgt:hover:bg-primary-dark wgt:text-white wgt:px-6 wgt:py-1 wgt:rounded-md wgt:cursor-pointer",
651
651
  handleClick: (q) => {
@@ -978,14 +978,14 @@ const { toString: EE } = Object.prototype, { getPrototypeOf: BB } = Object, { it
978
978
  return A[B] || (A[B] = B.slice(8, -1).toLowerCase());
979
979
  })(/* @__PURE__ */ Object.create(null)), SA = (A) => (A = A.toLowerCase(), (g) => tC(g) === A), hC = (A) => (g) => typeof g === A, { isArray: xg } = Array, Lg = hC("undefined");
980
980
  function Ng(A) {
981
- return A !== null && !Lg(A) && A.constructor !== null && !Lg(A.constructor) && OA(A.constructor.isBuffer) && A.constructor.isBuffer(A);
981
+ return A !== null && !Lg(A) && A.constructor !== null && !Lg(A.constructor) && LA(A.constructor.isBuffer) && A.constructor.isBuffer(A);
982
982
  }
983
983
  const AI = SA("ArrayBuffer");
984
984
  function nE(A) {
985
985
  let g;
986
986
  return typeof ArrayBuffer != "undefined" && ArrayBuffer.isView ? g = ArrayBuffer.isView(A) : g = A && A.buffer && AI(A.buffer), g;
987
987
  }
988
- const tE = hC("string"), OA = hC("function"), gI = hC("number"), yg = (A) => A !== null && typeof A == "object", hE = (A) => A === !0 || A === !1, Wg = (A) => {
988
+ const tE = hC("string"), LA = hC("function"), gI = hC("number"), yg = (A) => A !== null && typeof A == "object", hE = (A) => A === !0 || A === !1, Wg = (A) => {
989
989
  if (tC(A) !== "object")
990
990
  return !1;
991
991
  const g = BB(A);
@@ -998,10 +998,10 @@ const tE = hC("string"), OA = hC("function"), gI = hC("number"), yg = (A) => A !
998
998
  } catch (g) {
999
999
  return !1;
1000
1000
  }
1001
- }, wE = SA("Date"), eE = SA("File"), oE = SA("Blob"), aE = SA("FileList"), iE = (A) => yg(A) && OA(A.pipe), sE = (A) => {
1001
+ }, wE = SA("Date"), eE = SA("File"), oE = SA("Blob"), aE = SA("FileList"), iE = (A) => yg(A) && LA(A.pipe), sE = (A) => {
1002
1002
  let g;
1003
- return A && (typeof FormData == "function" && A instanceof FormData || OA(A.append) && ((g = tC(A)) === "formdata" || // detect form-data instance
1004
- g === "object" && OA(A.toString) && A.toString() === "[object FormData]"));
1003
+ return A && (typeof FormData == "function" && A instanceof FormData || LA(A.append) && ((g = tC(A)) === "formdata" || // detect form-data instance
1004
+ g === "object" && LA(A.toString) && A.toString() === "[object FormData]"));
1005
1005
  }, uE = SA("URLSearchParams"), [DE, rE, mE, qE] = ["ReadableStream", "Request", "Response", "Headers"].map(SA), fE = (A) => A.trim ? A.trim() : A.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1006
1006
  function bg(A, g, { allOwnKeys: B = !1 } = {}) {
1007
1007
  if (A === null || typeof A == "undefined")
@@ -1030,7 +1030,7 @@ function CI(A, g) {
1030
1030
  return Q;
1031
1031
  return null;
1032
1032
  }
1033
- const fg = typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : global, BI = (A) => !Lg(A) && A !== fg;
1033
+ const Mg = typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : global, BI = (A) => !Lg(A) && A !== Mg;
1034
1034
  function UC() {
1035
1035
  const { caseless: A } = BI(this) && this || {}, g = {}, B = (C, Q) => {
1036
1036
  const I = A && CI(g, Q) || Q;
@@ -1041,7 +1041,7 @@ function UC() {
1041
1041
  return g;
1042
1042
  }
1043
1043
  const ME = (A, g, B, { allOwnKeys: C } = {}) => (bg(g, (Q, I) => {
1044
- B && OA(Q) ? A[I] = _Q(Q, B) : A[I] = Q;
1044
+ B && LA(Q) ? A[I] = _Q(Q, B) : A[I] = Q;
1045
1045
  }, { allOwnKeys: C }), A), PE = (A) => (A.charCodeAt(0) === 65279 && (A = A.slice(1)), A), vE = (A, g, B, C) => {
1046
1046
  A.prototype = Object.create(g.prototype, C), A.prototype.constructor = A, Object.defineProperty(A, "super", {
1047
1047
  value: g.prototype
@@ -1095,10 +1095,10 @@ const ME = (A, g, B, { allOwnKeys: C } = {}) => (bg(g, (Q, I) => {
1095
1095
  }), Object.defineProperties(A, C);
1096
1096
  }, GE = (A) => {
1097
1097
  QI(A, (g, B) => {
1098
- if (OA(A) && ["arguments", "caller", "callee"].indexOf(B) !== -1)
1098
+ if (LA(A) && ["arguments", "caller", "callee"].indexOf(B) !== -1)
1099
1099
  return !1;
1100
1100
  const C = A[B];
1101
- if (OA(C)) {
1101
+ if (LA(C)) {
1102
1102
  if (g.enumerable = !1, "writable" in g) {
1103
1103
  g.writable = !1;
1104
1104
  return;
@@ -1118,7 +1118,7 @@ const ME = (A, g, B, { allOwnKeys: C } = {}) => (bg(g, (Q, I) => {
1118
1118
  }, XE = () => {
1119
1119
  }, FE = (A, g) => A != null && Number.isFinite(A = +A) ? A : g;
1120
1120
  function OE(A) {
1121
- return !!(A && OA(A.append) && A[$Q] === "FormData" && A[nC]);
1121
+ return !!(A && LA(A.append) && A[$Q] === "FormData" && A[nC]);
1122
1122
  }
1123
1123
  const LE = (A) => {
1124
1124
  const g = new Array(10), B = (C, Q) => {
@@ -1139,14 +1139,14 @@ const LE = (A) => {
1139
1139
  return C;
1140
1140
  };
1141
1141
  return B(A, 0);
1142
- }, NE = SA("AsyncFunction"), yE = (A) => A && (yg(A) || OA(A)) && OA(A.then) && OA(A.catch), II = ((A, g) => A ? setImmediate : g ? ((B, C) => (fg.addEventListener("message", ({ source: Q, data: I }) => {
1143
- Q === fg && I === B && C.length && C.shift()();
1142
+ }, NE = SA("AsyncFunction"), yE = (A) => A && (yg(A) || LA(A)) && LA(A.then) && LA(A.catch), II = ((A, g) => A ? setImmediate : g ? ((B, C) => (Mg.addEventListener("message", ({ source: Q, data: I }) => {
1143
+ Q === Mg && I === B && C.length && C.shift()();
1144
1144
  }, !1), (Q) => {
1145
- C.push(Q), fg.postMessage(B, "*");
1145
+ C.push(Q), Mg.postMessage(B, "*");
1146
1146
  }))(`axios@${Math.random()}`, []) : (B) => setTimeout(B))(
1147
1147
  typeof setImmediate == "function",
1148
- OA(fg.postMessage)
1149
- ), bE = typeof queueMicrotask != "undefined" ? queueMicrotask.bind(fg) : typeof process != "undefined" && process.nextTick || II, jE = (A) => A != null && OA(A[nC]), l = {
1148
+ LA(Mg.postMessage)
1149
+ ), bE = typeof queueMicrotask != "undefined" ? queueMicrotask.bind(Mg) : typeof process != "undefined" && process.nextTick || II, jE = (A) => A != null && LA(A[nC]), l = {
1150
1150
  isArray: xg,
1151
1151
  isArrayBuffer: AI,
1152
1152
  isBuffer: Ng,
@@ -1167,7 +1167,7 @@ const LE = (A) => {
1167
1167
  isFile: eE,
1168
1168
  isBlob: oE,
1169
1169
  isRegExp: xE,
1170
- isFunction: OA,
1170
+ isFunction: LA,
1171
1171
  isStream: iE,
1172
1172
  isURLSearchParams: uE,
1173
1173
  isTypedArray: TE,
@@ -1196,7 +1196,7 @@ const LE = (A) => {
1196
1196
  noop: XE,
1197
1197
  toFiniteNumber: FE,
1198
1198
  findKey: CI,
1199
- global: fg,
1199
+ global: Mg,
1200
1200
  isContextDefined: BI,
1201
1201
  isSpecCompliantForm: OE,
1202
1202
  toJSONObject: LE,
@@ -1458,11 +1458,11 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", gn
1458
1458
  hasStandardBrowserWebWorkerEnv: An,
1459
1459
  navigator: ZC,
1460
1460
  origin: gn
1461
- }, Symbol.toStringTag, { value: "Module" })), xA = mA(mA({}, Cn), _E);
1461
+ }, Symbol.toStringTag, { value: "Module" })), GA = mA(mA({}, Cn), _E);
1462
1462
  function Bn(A, g) {
1463
- return cC(A, new xA.classes.URLSearchParams(), mA({
1463
+ return cC(A, new GA.classes.URLSearchParams(), mA({
1464
1464
  visitor: function(B, C, Q, I) {
1465
- return xA.isNode && l.isBuffer(B) ? (this.append(C, B.toString("base64")), !1) : I.defaultVisitor.apply(this, arguments);
1465
+ return GA.isNode && l.isBuffer(B) ? (this.append(C, B.toString("base64")), !1) : I.defaultVisitor.apply(this, arguments);
1466
1466
  }
1467
1467
  }, g));
1468
1468
  }
@@ -1556,8 +1556,8 @@ const jg = {
1556
1556
  maxContentLength: -1,
1557
1557
  maxBodyLength: -1,
1558
1558
  env: {
1559
- FormData: xA.classes.FormData,
1560
- Blob: xA.classes.Blob
1559
+ FormData: GA.classes.FormData,
1560
+ Blob: GA.classes.Blob
1561
1561
  },
1562
1562
  validateStatus: function(g) {
1563
1563
  return g >= 200 && g < 300;
@@ -1636,7 +1636,7 @@ function en(A, g) {
1636
1636
  });
1637
1637
  });
1638
1638
  }
1639
- let LA = class {
1639
+ let NA = class {
1640
1640
  constructor(g) {
1641
1641
  g && this.set(g);
1642
1642
  }
@@ -1762,8 +1762,8 @@ let LA = class {
1762
1762
  return l.isArray(g) ? g.forEach(I) : I(g), this;
1763
1763
  }
1764
1764
  };
1765
- LA.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1766
- l.reduceDescriptors(LA.prototype, ({ value: A }, g) => {
1765
+ NA.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1766
+ l.reduceDescriptors(NA.prototype, ({ value: A }, g) => {
1767
1767
  let B = g[0].toUpperCase() + g.slice(1);
1768
1768
  return {
1769
1769
  get: () => A,
@@ -1772,9 +1772,9 @@ l.reduceDescriptors(LA.prototype, ({ value: A }, g) => {
1772
1772
  }
1773
1773
  };
1774
1774
  });
1775
- l.freezeMethods(LA);
1775
+ l.freezeMethods(NA);
1776
1776
  function fC(A, g) {
1777
- const B = this || jg, C = g || B, Q = LA.from(C.headers);
1777
+ const B = this || jg, C = g || B, Q = NA.from(C.headers);
1778
1778
  let I = C.data;
1779
1779
  return l.forEach(A, function(n) {
1780
1780
  I = n.call(B, I, Q.normalize(), g ? g.status : void 0);
@@ -1857,10 +1857,10 @@ const gC = (A, g, B = 3) => {
1857
1857
  total: A,
1858
1858
  loaded: C
1859
1859
  }), g[1]];
1860
- }, EQ = (A) => (...g) => l.asap(() => A(...g)), un = xA.hasStandardBrowserEnv ? /* @__PURE__ */ ((A, g) => (B) => (B = new URL(B, xA.origin), A.protocol === B.protocol && A.host === B.host && (g || A.port === B.port)))(
1861
- new URL(xA.origin),
1862
- xA.navigator && /(msie|trident)/i.test(xA.navigator.userAgent)
1863
- ) : () => !0, Dn = xA.hasStandardBrowserEnv ? (
1860
+ }, EQ = (A) => (...g) => l.asap(() => A(...g)), un = GA.hasStandardBrowserEnv ? /* @__PURE__ */ ((A, g) => (B) => (B = new URL(B, GA.origin), A.protocol === B.protocol && A.host === B.host && (g || A.port === B.port)))(
1861
+ new URL(GA.origin),
1862
+ GA.navigator && /(msie|trident)/i.test(GA.navigator.userAgent)
1863
+ ) : () => !0, Dn = GA.hasStandardBrowserEnv ? (
1864
1864
  // Standard browser envs support document.cookie
1865
1865
  {
1866
1866
  write(A, g, B, C, Q, I) {
@@ -1897,8 +1897,8 @@ function iI(A, g, B) {
1897
1897
  let C = !rn(g);
1898
1898
  return A && (C || B == !1) ? mn(A, g) : g;
1899
1899
  }
1900
- const nQ = (A) => A instanceof LA ? mA({}, A) : A;
1901
- function vg(A, g) {
1900
+ const nQ = (A) => A instanceof NA ? mA({}, A) : A;
1901
+ function dg(A, g) {
1902
1902
  g = g || {};
1903
1903
  const B = {};
1904
1904
  function C(c, h, a, e) {
@@ -1963,22 +1963,22 @@ function vg(A, g) {
1963
1963
  }), B;
1964
1964
  }
1965
1965
  const sI = (A) => {
1966
- const g = vg({}, A);
1966
+ const g = dg({}, A);
1967
1967
  let { data: B, withXSRFToken: C, xsrfHeaderName: Q, xsrfCookieName: I, headers: E, auth: n } = g;
1968
- g.headers = E = LA.from(E), g.url = cI(iI(g.baseURL, g.url, g.allowAbsoluteUrls), A.params, A.paramsSerializer), n && E.set(
1968
+ g.headers = E = NA.from(E), g.url = cI(iI(g.baseURL, g.url, g.allowAbsoluteUrls), A.params, A.paramsSerializer), n && E.set(
1969
1969
  "Authorization",
1970
1970
  "Basic " + btoa((n.username || "") + ":" + (n.password ? unescape(encodeURIComponent(n.password)) : ""))
1971
1971
  );
1972
1972
  let t;
1973
1973
  if (l.isFormData(B)) {
1974
- if (xA.hasStandardBrowserEnv || xA.hasStandardBrowserWebWorkerEnv)
1974
+ if (GA.hasStandardBrowserEnv || GA.hasStandardBrowserWebWorkerEnv)
1975
1975
  E.setContentType(void 0);
1976
1976
  else if ((t = E.getContentType()) !== !1) {
1977
1977
  const [c, ...h] = t ? t.split(";").map((a) => a.trim()).filter(Boolean) : [];
1978
1978
  E.setContentType([c || "multipart/form-data", ...h].join("; "));
1979
1979
  }
1980
1980
  }
1981
- if (xA.hasStandardBrowserEnv && (C && l.isFunction(C) && (C = C(g)), C || C !== !1 && un(g.url))) {
1981
+ if (GA.hasStandardBrowserEnv && (C && l.isFunction(C) && (C = C(g)), C || C !== !1 && un(g.url))) {
1982
1982
  const c = Q && I && Dn.read(I);
1983
1983
  c && E.set(Q, c);
1984
1984
  }
@@ -1987,7 +1987,7 @@ const sI = (A) => {
1987
1987
  return new Promise(function(B, C) {
1988
1988
  const Q = sI(A);
1989
1989
  let I = Q.data;
1990
- const E = LA.from(Q.headers).normalize();
1990
+ const E = NA.from(Q.headers).normalize();
1991
1991
  let { responseType: n, onUploadProgress: t, onDownloadProgress: c } = Q, h, a, e, w, u;
1992
1992
  function D() {
1993
1993
  w && w(), u && u(), Q.cancelToken && Q.cancelToken.unsubscribe(h), Q.signal && Q.signal.removeEventListener("abort", h);
@@ -1997,7 +1997,7 @@ const sI = (A) => {
1997
1997
  function k() {
1998
1998
  if (!P)
1999
1999
  return;
2000
- const q = LA.from(
2000
+ const q = NA.from(
2001
2001
  "getAllResponseHeaders" in P && P.getAllResponseHeaders()
2002
2002
  ), J = {
2003
2003
  data: !n || n === "text" || n === "json" ? P.responseText : P.response,
@@ -2034,7 +2034,7 @@ const sI = (A) => {
2034
2034
  P && (C(!q || q.type ? new Gg(null, A, P) : q), P.abort(), P = null);
2035
2035
  }, Q.cancelToken && Q.cancelToken.subscribe(h), Q.signal && (Q.signal.aborted ? h() : Q.signal.addEventListener("abort", h)));
2036
2036
  const d = on(Q.url);
2037
- if (d && xA.protocols.indexOf(d) === -1) {
2037
+ if (d && GA.protocols.indexOf(d) === -1) {
2038
2038
  C(new W("Unsupported protocol " + d + ":", W.ERR_BAD_REQUEST, A));
2039
2039
  return;
2040
2040
  }
@@ -2075,7 +2075,7 @@ const sI = (A) => {
2075
2075
  }, vn = function(A, g) {
2076
2076
  return DC(this, null, function* () {
2077
2077
  try {
2078
- for (var B = VB(dn(A)), C, Q, I; C = !(Q = yield new rg(B.next())).done; C = !1) {
2078
+ for (var B = VB(dn(A)), C, Q, I; C = !(Q = yield new mg(B.next())).done; C = !1) {
2079
2079
  const E = Q.value;
2080
2080
  yield* rC(Pn(E, g));
2081
2081
  }
@@ -2083,7 +2083,7 @@ const sI = (A) => {
2083
2083
  I = [Q];
2084
2084
  } finally {
2085
2085
  try {
2086
- C && (Q = B.return) && (yield new rg(Q.call(B)));
2086
+ C && (Q = B.return) && (yield new mg(Q.call(B)));
2087
2087
  } finally {
2088
2088
  if (I)
2089
2089
  throw I[0];
@@ -2099,13 +2099,13 @@ const sI = (A) => {
2099
2099
  const g = A.getReader();
2100
2100
  try {
2101
2101
  for (; ; ) {
2102
- const { done: B, value: C } = yield new rg(g.read());
2102
+ const { done: B, value: C } = yield new mg(g.read());
2103
2103
  if (B)
2104
2104
  break;
2105
2105
  yield C;
2106
2106
  }
2107
2107
  } finally {
2108
- yield new rg(g.cancel());
2108
+ yield new mg(g.cancel());
2109
2109
  }
2110
2110
  });
2111
2111
  }, tQ = (A, g, B, C) => {
@@ -2149,7 +2149,7 @@ const sI = (A) => {
2149
2149
  }
2150
2150
  }, Jn = uI && DI(() => {
2151
2151
  let A = !1;
2152
- const g = new Request(xA.origin, {
2152
+ const g = new Request(GA.origin, {
2153
2153
  body: new ReadableStream(),
2154
2154
  method: "POST",
2155
2155
  get duplex() {
@@ -2173,7 +2173,7 @@ const Tn = (A) => U(null, null, function* () {
2173
2173
  if (l.isBlob(A))
2174
2174
  return A.size;
2175
2175
  if (l.isSpecCompliantForm(A))
2176
- return (yield new Request(xA.origin, {
2176
+ return (yield new Request(GA.origin, {
2177
2177
  method: "POST",
2178
2178
  body: A
2179
2179
  }).arrayBuffer()).byteLength;
@@ -2253,7 +2253,7 @@ const Tn = (A) => U(null, null, function* () {
2253
2253
  return !q && D && D(), yield new Promise((J, v) => {
2254
2254
  aI(J, v, {
2255
2255
  data: f,
2256
- headers: LA.from(d.headers),
2256
+ headers: NA.from(d.headers),
2257
2257
  status: d.status,
2258
2258
  statusText: d.statusText,
2259
2259
  config: A,
@@ -2318,7 +2318,7 @@ function MC(A) {
2318
2318
  throw new Gg(null, A);
2319
2319
  }
2320
2320
  function wQ(A) {
2321
- return MC(A), A.headers = LA.from(A.headers), A.data = fC.call(
2321
+ return MC(A), A.headers = NA.from(A.headers), A.data = fC.call(
2322
2322
  A,
2323
2323
  A.transformRequest
2324
2324
  ), ["post", "put", "patch"].indexOf(A.method) !== -1 && A.headers.setContentType("application/x-www-form-urlencoded", !1), rI.getAdapter(A.adapter || jg.adapter)(A).then(function(C) {
@@ -2326,13 +2326,13 @@ function wQ(A) {
2326
2326
  A,
2327
2327
  A.transformResponse,
2328
2328
  C
2329
- ), C.headers = LA.from(C.headers), C;
2329
+ ), C.headers = NA.from(C.headers), C;
2330
2330
  }, function(C) {
2331
2331
  return oI(C) || (MC(A), C && C.response && (C.response.data = fC.call(
2332
2332
  A,
2333
2333
  A.transformResponse,
2334
2334
  C.response
2335
- ), C.response.headers = LA.from(C.response.headers))), Promise.reject(C);
2335
+ ), C.response.headers = NA.from(C.response.headers))), Promise.reject(C);
2336
2336
  });
2337
2337
  }
2338
2338
  const mI = "1.11.0", eC = {};
@@ -2383,8 +2383,8 @@ function Rn(A, g, B) {
2383
2383
  const $g = {
2384
2384
  assertOptions: Rn,
2385
2385
  validators: eC
2386
- }, $A = $g.validators;
2387
- let Pg = class {
2386
+ }, Ag = $g.validators;
2387
+ let vg = class {
2388
2388
  constructor(g) {
2389
2389
  this.defaults = g || {}, this.interceptors = {
2390
2390
  request: new BQ(),
@@ -2419,20 +2419,20 @@ let Pg = class {
2419
2419
  });
2420
2420
  }
2421
2421
  _request(g, B) {
2422
- typeof g == "string" ? (B = B || {}, B.url = g) : B = g || {}, B = vg(this.defaults, B);
2422
+ typeof g == "string" ? (B = B || {}, B.url = g) : B = g || {}, B = dg(this.defaults, B);
2423
2423
  const { transitional: C, paramsSerializer: Q, headers: I } = B;
2424
2424
  C !== void 0 && $g.assertOptions(C, {
2425
- silentJSONParsing: $A.transitional($A.boolean),
2426
- forcedJSONParsing: $A.transitional($A.boolean),
2427
- clarifyTimeoutError: $A.transitional($A.boolean)
2425
+ silentJSONParsing: Ag.transitional(Ag.boolean),
2426
+ forcedJSONParsing: Ag.transitional(Ag.boolean),
2427
+ clarifyTimeoutError: Ag.transitional(Ag.boolean)
2428
2428
  }, !1), Q != null && (l.isFunction(Q) ? B.paramsSerializer = {
2429
2429
  serialize: Q
2430
2430
  } : $g.assertOptions(Q, {
2431
- encode: $A.function,
2432
- serialize: $A.function
2431
+ encode: Ag.function,
2432
+ serialize: Ag.function
2433
2433
  }, !0)), B.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? B.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : B.allowAbsoluteUrls = !0), $g.assertOptions(B, {
2434
- baseUrl: $A.spelling("baseURL"),
2435
- withXsrfToken: $A.spelling("withXSRFToken")
2434
+ baseUrl: Ag.spelling("baseURL"),
2435
+ withXsrfToken: Ag.spelling("withXSRFToken")
2436
2436
  }, !0), B.method = (B.method || this.defaults.method || "get").toLowerCase();
2437
2437
  let E = I && l.merge(
2438
2438
  I.common,
@@ -2443,7 +2443,7 @@ let Pg = class {
2443
2443
  (u) => {
2444
2444
  delete I[u];
2445
2445
  }
2446
- ), B.headers = LA.concat(E, I);
2446
+ ), B.headers = NA.concat(E, I);
2447
2447
  const n = [];
2448
2448
  let t = !0;
2449
2449
  this.interceptors.request.forEach(function(D) {
@@ -2481,14 +2481,14 @@ let Pg = class {
2481
2481
  return h;
2482
2482
  }
2483
2483
  getUri(g) {
2484
- g = vg(this.defaults, g);
2484
+ g = dg(this.defaults, g);
2485
2485
  const B = iI(g.baseURL, g.url, g.allowAbsoluteUrls);
2486
2486
  return cI(B, g.params, g.paramsSerializer);
2487
2487
  }
2488
2488
  };
2489
2489
  l.forEach(["delete", "get", "head", "options"], function(g) {
2490
- Pg.prototype[g] = function(B, C) {
2491
- return this.request(vg(C || {}, {
2490
+ vg.prototype[g] = function(B, C) {
2491
+ return this.request(dg(C || {}, {
2492
2492
  method: g,
2493
2493
  url: B,
2494
2494
  data: (C || {}).data
@@ -2498,7 +2498,7 @@ l.forEach(["delete", "get", "head", "options"], function(g) {
2498
2498
  l.forEach(["post", "put", "patch"], function(g) {
2499
2499
  function B(C) {
2500
2500
  return function(I, E, n) {
2501
- return this.request(vg(n || {}, {
2501
+ return this.request(dg(n || {}, {
2502
2502
  method: g,
2503
2503
  headers: C ? {
2504
2504
  "Content-Type": "multipart/form-data"
@@ -2508,7 +2508,7 @@ l.forEach(["post", "put", "patch"], function(g) {
2508
2508
  }));
2509
2509
  };
2510
2510
  }
2511
- Pg.prototype[g] = B(), Pg.prototype[g + "Form"] = B(!0);
2511
+ vg.prototype[g] = B(), vg.prototype[g + "Form"] = B(!0);
2512
2512
  });
2513
2513
  let xn = class qI {
2514
2514
  constructor(g) {
@@ -2660,13 +2660,13 @@ Object.entries(_C).forEach(([A, g]) => {
2660
2660
  _C[g] = A;
2661
2661
  });
2662
2662
  function fI(A) {
2663
- const g = new Pg(A), B = _Q(Pg.prototype.request, g);
2664
- return l.extend(B, Pg.prototype, g, { allOwnKeys: !0 }), l.extend(B, g, null, { allOwnKeys: !0 }), B.create = function(Q) {
2665
- return fI(vg(A, Q));
2663
+ const g = new vg(A), B = _Q(vg.prototype.request, g);
2664
+ return l.extend(B, vg.prototype, g, { allOwnKeys: !0 }), l.extend(B, g, null, { allOwnKeys: !0 }), B.create = function(Q) {
2665
+ return fI(dg(A, Q));
2666
2666
  }, B;
2667
2667
  }
2668
2668
  const rA = fI(jg);
2669
- rA.Axios = Pg;
2669
+ rA.Axios = vg;
2670
2670
  rA.CanceledError = Gg;
2671
2671
  rA.CancelToken = xn;
2672
2672
  rA.isCancel = oI;
@@ -2679,8 +2679,8 @@ rA.all = function(g) {
2679
2679
  };
2680
2680
  rA.spread = Gn;
2681
2681
  rA.isAxiosError = zn;
2682
- rA.mergeConfig = vg;
2683
- rA.AxiosHeaders = LA;
2682
+ rA.mergeConfig = dg;
2683
+ rA.AxiosHeaders = NA;
2684
2684
  rA.formToJSON = (A) => eI(l.isHTMLForm(A) ? new FormData(A) : A);
2685
2685
  rA.getAdapter = rI.getAdapter;
2686
2686
  rA.HttpStatusCode = _C;
@@ -2703,7 +2703,7 @@ const {
2703
2703
  getAdapter: z0,
2704
2704
  mergeConfig: X0
2705
2705
  } = rA;
2706
- let og = [], MA = null, Mg = null;
2706
+ let ig = [], MA = null, Pg = null;
2707
2707
  const Xn = 3;
2708
2708
  function Fn() {
2709
2709
  !MA && document.body && MI();
@@ -2717,11 +2717,11 @@ function MI() {
2717
2717
  console.warn("Document body not available for notification container");
2718
2718
  return;
2719
2719
  }
2720
- MA && MA.parentNode && MA.parentNode.removeChild(MA), MA = document.createElement("div"), MA.className = "wgt:fixed wgt:z-[99999] wgt:pointer-events-none", window.innerWidth >= 768 ? MA.className += " wgt:bottom-4 wgt:right-4" : MA.className += " wgt:top-4 wgt:right-4", document.body.appendChild(MA), Mg && window.removeEventListener("resize", Mg), Mg = () => {
2720
+ MA && MA.parentNode && MA.parentNode.removeChild(MA), MA = document.createElement("div"), MA.className = "wgt:fixed wgt:z-[99999] wgt:pointer-events-none", window.innerWidth >= 768 ? MA.className += " wgt:bottom-4 wgt:right-4" : MA.className += " wgt:top-4 wgt:right-4", document.body.appendChild(MA), Pg && window.removeEventListener("resize", Pg), Pg = () => {
2721
2721
  if (!MA) return;
2722
2722
  const g = window.innerWidth >= 768;
2723
2723
  MA.className = "wgt:fixed wgt:z-[99999] wgt:pointer-events-none", g ? MA.className += " wgt:bottom-4 wgt:right-4" : MA.className += " wgt:top-4 wgt:right-4";
2724
- }, window.addEventListener("resize", Mg);
2724
+ }, window.addEventListener("resize", Pg);
2725
2725
  }
2726
2726
  function Zg(A, g = {}) {
2727
2727
  if (Fn(), !MA)
@@ -2733,7 +2733,7 @@ function Zg(A, g = {}) {
2733
2733
  icon: I = !1,
2734
2734
  type: E = "info"
2735
2735
  } = g;
2736
- og.length >= Xn && BC(og[0].id);
2736
+ ig.length >= Xn && BC(ig[0].id);
2737
2737
  const n = Date.now() + Math.random(), t = On(n, A, {
2738
2738
  autoClose: B,
2739
2739
  hideProgressBar: C,
@@ -2741,7 +2741,7 @@ function Zg(A, g = {}) {
2741
2741
  icon: I,
2742
2742
  type: E
2743
2743
  });
2744
- return og.push({ id: n, element: t }), MA.appendChild(t), requestAnimationFrame(() => {
2744
+ return ig.push({ id: n, element: t }), MA.appendChild(t), requestAnimationFrame(() => {
2745
2745
  t.classList.remove("wgt:translate-x-full", "wgt:opacity-0"), t.classList.add("wgt:translate-x-0", "wgt:opacity-100");
2746
2746
  }), B > 0 && setTimeout(() => {
2747
2747
  BC(n);
@@ -2810,20 +2810,20 @@ function On(A, g, B) {
2810
2810
  return t;
2811
2811
  }
2812
2812
  function BC(A) {
2813
- const g = og.findIndex((C) => C.id === A);
2813
+ const g = ig.findIndex((C) => C.id === A);
2814
2814
  if (g === -1) return;
2815
- const { element: B } = og[g];
2815
+ const { element: B } = ig[g];
2816
2816
  B.classList.remove("wgt:translate-x-0", "wgt:opacity-100"), B.classList.add("wgt:translate-x-full", "wgt:opacity-0"), setTimeout(() => {
2817
- B.parentNode && B.parentNode.removeChild(B), og.splice(g, 1);
2817
+ B.parentNode && B.parentNode.removeChild(B), ig.splice(g, 1);
2818
2818
  }, 300);
2819
2819
  }
2820
2820
  function PI() {
2821
- og.forEach(({ id: A }) => BC(A));
2821
+ ig.forEach(({ id: A }) => BC(A));
2822
2822
  }
2823
2823
  function Ln() {
2824
- PI(), MA && MA.parentNode && MA.parentNode.removeChild(MA), Mg && window.removeEventListener("resize", Mg), MA = null, Mg = null, og = [];
2824
+ PI(), MA && MA.parentNode && MA.parentNode.removeChild(MA), Pg && window.removeEventListener("resize", Pg), MA = null, Pg = null, ig = [];
2825
2825
  }
2826
- const qg = {
2826
+ const fg = {
2827
2827
  info: (A, g = {}) => Zg(A, bA(mA({}, g), { type: "info" })),
2828
2828
  success: (A, g = {}) => Zg(A, bA(mA({}, g), { type: "success" })),
2829
2829
  warning: (A, g = {}) => Zg(A, bA(mA({}, g), { type: "warning" })),
@@ -2935,7 +2935,7 @@ function EB(A, g = {}) {
2935
2935
  }
2936
2936
  );
2937
2937
  }
2938
- function cg(A, g = {}) {
2938
+ function eg(A, g = {}) {
2939
2939
  const { okLabel: B = s("ok"), onClose: C = null, isOffline: Q = !1 } = g, { container: I, open: E } = oC({
2940
2940
  message: A,
2941
2941
  okLabel: B,
@@ -3171,12 +3171,12 @@ function pn() {
3171
3171
  r.push('<th scope="col"><abbr title="' + M(o, i) + '">' + M(o, i, !0) + "</abbr></th>");
3172
3172
  return "<thead><tr>" + (o.isRTL ? r.reverse() : r).join("") + "</tr></thead>";
3173
3173
  }, S = function(o, i, r, H, L, N) {
3174
- var y, tA, Z, p = o._o, hA = r === p.minYear, sA = r === p.maxYear, oA = '<div id="' + N + '" class="pika-title" role="heading" aria-live="assertive">', zA, XA, GA = !0, qA = !0;
3174
+ var y, tA, Z, p = o._o, hA = r === p.minYear, sA = r === p.maxYear, oA = '<div id="' + N + '" class="pika-title" role="heading" aria-live="assertive">', XA, FA, zA = !0, qA = !0;
3175
3175
  for (Z = [], y = 0; y < 12; y++)
3176
3176
  Z.push('<option value="' + (r === L ? y - i : 12 + y - i) + '"' + (y === H ? ' selected="selected"' : "") + (hA && y < p.minMonth || sA && y > p.maxMonth ? ' disabled="disabled"' : "") + ">" + p.i18n.months[y] + "</option>");
3177
- for (zA = '<div class="pika-label">' + p.i18n.months[H] + '<select class="pika-select pika-select-month" tabindex="-1">' + Z.join("") + "</select></div>", w(p.yearRange) ? (y = p.yearRange[0], tA = p.yearRange[1] + 1) : (y = r - p.yearRange, tA = 1 + r + p.yearRange), Z = []; y < tA && y <= p.maxYear; y++)
3177
+ for (XA = '<div class="pika-label">' + p.i18n.months[H] + '<select class="pika-select pika-select-month" tabindex="-1">' + Z.join("") + "</select></div>", w(p.yearRange) ? (y = p.yearRange[0], tA = p.yearRange[1] + 1) : (y = r - p.yearRange, tA = 1 + r + p.yearRange), Z = []; y < tA && y <= p.maxYear; y++)
3178
3178
  y >= p.minYear && Z.push('<option value="' + y + '"' + (y === r ? ' selected="selected"' : "") + ">" + y + "</option>");
3179
- return XA = '<div class="pika-label">' + r + p.yearSuffix + '<select class="pika-select pika-select-year" tabindex="-1">' + Z.join("") + "</select></div>", p.showMonthAfterYear ? oA += XA + zA : oA += zA + XA, hA && (H === 0 || p.minMonth >= H) && (GA = !1), sA && (H === 11 || p.maxMonth <= H) && (qA = !1), i === 0 && (oA += '<button class="pika-prev' + (GA ? "" : " is-disabled") + '" type="button">' + p.i18n.previousMonth + "</button>"), i === o._o.numberOfMonths - 1 && (oA += '<button class="pika-next' + (qA ? "" : " is-disabled") + '" type="button">' + p.i18n.nextMonth + "</button>"), oA += "</div>";
3179
+ return FA = '<div class="pika-label">' + r + p.yearSuffix + '<select class="pika-select pika-select-year" tabindex="-1">' + Z.join("") + "</select></div>", p.showMonthAfterYear ? oA += FA + XA : oA += XA + FA, hA && (H === 0 || p.minMonth >= H) && (zA = !1), sA && (H === 11 || p.maxMonth <= H) && (qA = !1), i === 0 && (oA += '<button class="pika-prev' + (zA ? "" : " is-disabled") + '" type="button">' + p.i18n.previousMonth + "</button>"), i === o._o.numberOfMonths - 1 && (oA += '<button class="pika-next' + (qA ? "" : " is-disabled") + '" type="button">' + p.i18n.nextMonth + "</button>"), oA += "</div>";
3180
3180
  }, j = function(o, i, r) {
3181
3181
  return '<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="' + r + '">' + z(o) + T(i) + "</table>";
3182
3182
  }, K = function(o) {
@@ -3418,23 +3418,23 @@ function pn() {
3418
3418
  render: function(o, i, r) {
3419
3419
  var H = this._o, L = /* @__PURE__ */ new Date(), N = k(o, i), y = new Date(o, i, 1).getDay(), tA = [], Z = [];
3420
3420
  d(L), H.firstDay > 0 && (y -= H.firstDay, y < 0 && (y += 7));
3421
- for (var p = i === 0 ? 11 : i - 1, hA = i === 11 ? 0 : i + 1, sA = i === 0 ? o - 1 : o, oA = i === 11 ? o + 1 : o, zA = k(sA, p), XA = N + y, GA = XA; GA > 7; )
3422
- GA -= 7;
3423
- XA += 7 - GA;
3424
- for (var qA = !1, vA = 0, yA = 0; vA < XA; vA++) {
3425
- var dA = new Date(o, i, 1 + (vA - y)), pA = u(this._d) ? q(dA, this._d) : !1, Jg = q(dA, L), ag = H.events.indexOf(dA.toDateString()) !== -1, Ig = vA < y || vA >= N + y, jA = 1 + (vA - y), ig = i, gg = o, Eg = H.startRange && q(H.startRange, dA), Cg = H.endRange && q(H.endRange, dA), KA = H.startRange && H.endRange && H.startRange < dA && dA < H.endRange, ZA = H.minDate && dA < H.minDate || H.maxDate && dA > H.maxDate || H.disableWeekends && D(dA) || H.disableDayFn && H.disableDayFn(dA);
3426
- Ig && (vA < y ? (jA = zA + jA, ig = p, gg = sA) : (jA = jA - N, ig = hA, gg = oA));
3421
+ for (var p = i === 0 ? 11 : i - 1, hA = i === 11 ? 0 : i + 1, sA = i === 0 ? o - 1 : o, oA = i === 11 ? o + 1 : o, XA = k(sA, p), FA = N + y, zA = FA; zA > 7; )
3422
+ zA -= 7;
3423
+ FA += 7 - zA;
3424
+ for (var qA = !1, vA = 0, yA = 0; vA < FA; vA++) {
3425
+ var dA = new Date(o, i, 1 + (vA - y)), pA = u(this._d) ? q(dA, this._d) : !1, Tg = q(dA, L), sg = H.events.indexOf(dA.toDateString()) !== -1, ng = vA < y || vA >= N + y, jA = 1 + (vA - y), ug = i, Cg = o, tg = H.startRange && q(H.startRange, dA), Bg = H.endRange && q(H.endRange, dA), KA = H.startRange && H.endRange && H.startRange < dA && dA < H.endRange, ZA = H.minDate && dA < H.minDate || H.maxDate && dA > H.maxDate || H.disableWeekends && D(dA) || H.disableDayFn && H.disableDayFn(dA);
3426
+ ng && (vA < y ? (jA = XA + jA, ug = p, Cg = sA) : (jA = jA - N, ug = hA, Cg = oA));
3427
3427
  var VA = {
3428
3428
  day: jA,
3429
- month: ig,
3430
- year: gg,
3431
- hasEvent: ag,
3429
+ month: ug,
3430
+ year: Cg,
3431
+ hasEvent: sg,
3432
3432
  isSelected: pA,
3433
- isToday: Jg,
3433
+ isToday: Tg,
3434
3434
  isDisabled: ZA,
3435
- isEmpty: Ig,
3436
- isStartRange: Eg,
3437
- isEndRange: Cg,
3435
+ isEmpty: ng,
3436
+ isStartRange: tg,
3437
+ isEndRange: Bg,
3438
3438
  isInRange: KA,
3439
3439
  showDaysInNextAndPreviousMonths: H.showDaysInNextAndPreviousMonths,
3440
3440
  enableSelectionDaysInNextAndPreviousMonths: H.enableSelectionDaysInNextAndPreviousMonths
@@ -3485,33 +3485,33 @@ var Kg = (A, g, B) => new Promise((C, Q) => {
3485
3485
  function iQ(A = "dev") {
3486
3486
  const g = {
3487
3487
  dev: {
3488
- modelUrl: "http://stag-invoice-hub.atomsolution.vn/core-api/static/ocr-models/qrdet_n_sim_1.onnx",
3489
- modeClassifyUrl: "http://stag-invoice-hub.atomsolution.vn/core-api/static/ocr-models/classification.onnx"
3488
+ modelUrl: "https://stag-invoice-hub.atomsolution.vn/core-api/static/ocr-models/qrdet_n_sim_1.onnx",
3489
+ modeClassifyUrl: "https://stag-invoice-hub.atomsolution.vn/core-api/static/ocr-models/classification.onnx"
3490
3490
  },
3491
3491
  stag: {
3492
- modelUrl: "http://stag-invoice-hub.atomsolution.vn/core-api/static/ocr-models/qrdet_n_sim_1.onnx",
3493
- modeClassifyUrl: "http://stag-invoice-hub.atomsolution.vn/core-api/static/ocr-models/classification.onnx"
3492
+ modelUrl: "https://stag-invoice-hub.atomsolution.vn/core-api/static/ocr-models/qrdet_n_sim_1.onnx",
3493
+ modeClassifyUrl: "https://stag-invoice-hub.atomsolution.vn/core-api/static/ocr-models/classification.onnx"
3494
3494
  },
3495
3495
  uat: {
3496
- modelUrl: "http://stag-invoice-hub.atomsolution.vn/core-api/static/ocr-models/qrdet_n_sim_1.onnx",
3497
- modeClassifyUrl: "http://stag-invoice-hub.atomsolution.vn/core-api/static/ocr-models/classification.onnx"
3496
+ modelUrl: "https://stag-invoice-hub.atomsolution.vn/core-api/static/ocr-models/qrdet_n_sim_1.onnx",
3497
+ modeClassifyUrl: "https://stag-invoice-hub.atomsolution.vn/core-api/static/ocr-models/classification.onnx"
3498
3498
  },
3499
3499
  pilot: {
3500
- modelUrl: "http://stag-invoice-hub.atomsolution.vn/core-api/static/ocr-models/qrdet_n_sim_1.onnx",
3501
- modeClassifyUrl: "http://stag-invoice-hub.atomsolution.vn/core-api/static/ocr-models/classification.onnx"
3500
+ modelUrl: "https://stag-invoice-hub.atomsolution.vn/core-api/static/ocr-models/qrdet_n_sim_1.onnx",
3501
+ modeClassifyUrl: "https://stag-invoice-hub.atomsolution.vn/core-api/static/ocr-models/classification.onnx"
3502
3502
  },
3503
3503
  prod: {
3504
- modelUrl: "https://invoice-hub.atomsolution.vn/core-api/ocr-model/qrdet_n_sim_1.onnx",
3505
- modeClassifyUrl: "http://invoice-hub.atomsolution.vn/core-api/static/ocr-models/classification.onnx"
3504
+ modelUrl: "https://invoice-hub.atomsolution.vn/core-api/static/ocr-models/qrdet_n_sim_1.onnx",
3505
+ modeClassifyUrl: "https://invoice-hub.atomsolution.vn/core-api/static/ocr-models/classification.onnx"
3506
3506
  }
3507
3507
  };
3508
3508
  return g[A] || g.dev;
3509
3509
  }
3510
- let wg = null, $C = null, Og = null, AB = null;
3510
+ let og = null, $C = null, Og = null, AB = null;
3511
3511
  function _n() {
3512
3512
  return Kg(this, null, function* () {
3513
3513
  try {
3514
- wg || (wg = yield import("https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/ort.mjs")), $C || ($C = (yield import("https://cdn.jsdelivr.net/npm/@undecaf/zbar-wasm@0.11.0/dist/index.mjs")).scanImageData), console.log("✅ All modules loaded successfully");
3514
+ og || (og = yield import("https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/ort.mjs")), $C || ($C = (yield import("https://cdn.jsdelivr.net/npm/@undecaf/zbar-wasm@0.11.0/dist/index.mjs")).scanImageData);
3515
3515
  } catch (A) {
3516
3516
  throw new Error(`Failed to initialize required modules: ${A.message}`);
3517
3517
  }
@@ -3520,16 +3520,16 @@ function _n() {
3520
3520
  function nB(A) {
3521
3521
  return Kg(this, null, function* () {
3522
3522
  try {
3523
- if (yield _n(), !wg || !wg.InferenceSession)
3523
+ if (yield _n(), !og || !og.InferenceSession)
3524
3524
  throw new Error(
3525
3525
  "ONNX Runtime is not properly loaded. Please check your internet connection and try again."
3526
3526
  );
3527
3527
  const g = iQ(A).modelUrl, B = iQ(A).modeClassifyUrl;
3528
- if (typeof wg.InferenceSession.create != "function")
3528
+ if (typeof og.InferenceSession.create != "function")
3529
3529
  throw new Error(
3530
3530
  "InferenceSession.create is not available. ONNX Runtime may not be properly initialized."
3531
3531
  );
3532
- return Og = yield wg.InferenceSession.create(g), AB = yield wg.InferenceSession.create(B), Og;
3532
+ return Og = yield og.InferenceSession.create(g), AB = yield og.InferenceSession.create(B), Og;
3533
3533
  } catch (g) {
3534
3534
  throw new Error(`Failed to initialize ONNX model: ${g.message}`);
3535
3535
  }
@@ -3614,7 +3614,7 @@ function vI(A, g = 640) {
3614
3614
  const c = n * g + t;
3615
3615
  E[c] = I[c * 3], E[c + g * g] = I[c * 3 + 1], E[c + 2 * g * g] = I[c * 3 + 2];
3616
3616
  }
3617
- return new wg.Tensor("float32", E, [1, 3, g, g]);
3617
+ return new og.Tensor("float32", E, [1, 3, g, g]);
3618
3618
  }
3619
3619
  function Ct(A, g, B, C, Q = 0.5) {
3620
3620
  const I = [], E = A.dims[1];
@@ -3657,7 +3657,7 @@ function Bt(A, g, B) {
3657
3657
  }
3658
3658
  function Qt(A) {
3659
3659
  const g = A.split("|");
3660
- if (g.length !== 7) throw new Error("QR không đủ field");
3660
+ if (g.length !== 7) throw new Error("QR is not valid");
3661
3661
  return {
3662
3662
  id_number: g[0],
3663
3663
  id_number_old: g[1],
@@ -3754,7 +3754,7 @@ function ht(t) {
3754
3754
  dobPicker: E,
3755
3755
  setDobPicker: n
3756
3756
  }) {
3757
- var fA, DA, TA, HA, _A, cB, wB, eB, oB, aB, iB, sB, uB, DB, rB, mB, qB, fB, MB, PB, vB, dB, lB, JB, TB, HB, kB, YB, RB, xB, GB, zB, XB, FB, OB, LB, NB, yB, bB, jB, KB, SB;
3757
+ var fA, DA, HA, kA, _A, cB, wB, eB, oB, aB, iB, sB, uB, DB, rB, mB, qB, fB, MB, PB, vB, dB, lB, JB, TB, HB, kB, YB, RB, xB, GB, zB, XB, FB, OB, LB, NB, yB, bB, jB, KB, SB;
3758
3758
  const c = document.createElement("div");
3759
3759
  c.className = "wgt:flex wgt:flex-col wgt:gap-4 wgt:w-full";
3760
3760
  const h = document.createElement("form");
@@ -3765,7 +3765,7 @@ function ht(t) {
3765
3765
  }), c.appendChild(h);
3766
3766
  let a, e, w, u, D, P, k, d, q, f, J, v, m, M, Y, G, X, R, T, z, S, j, K, o, i;
3767
3767
  const r = document.createElement("button");
3768
- a = RA({
3768
+ a = xA({
3769
3769
  name: "taxCode",
3770
3770
  label: s("taxCode"),
3771
3771
  required: !0,
@@ -3779,17 +3779,17 @@ function ht(t) {
3779
3779
  F.length >= 10 ? tA(F) : a.setError(s("errorInvalidTaxCode", "Mã số thuế không hợp lệ"));
3780
3780
  }, 1e3),
3781
3781
  horizontal: !0
3782
- }), e = RA({
3782
+ }), e = xA({
3783
3783
  name: "companyName",
3784
3784
  label: s("companyName"),
3785
3785
  required: !0,
3786
3786
  error: null,
3787
3787
  placeholder: "",
3788
3788
  type: "text",
3789
- value: ((HA = (TA = g == null ? void 0 : g.eInvoiceRegistration) == null ? void 0 : TA.organization) == null ? void 0 : HA.name) || "",
3789
+ value: ((kA = (HA = g == null ? void 0 : g.eInvoiceRegistration) == null ? void 0 : HA.organization) == null ? void 0 : kA.name) || "",
3790
3790
  readOnly: !0,
3791
3791
  horizontal: !0
3792
- }), w = RA({
3792
+ }), w = xA({
3793
3793
  name: "companyAddressDetail",
3794
3794
  label: s("address"),
3795
3795
  required: !0,
@@ -3834,7 +3834,7 @@ function ht(t) {
3834
3834
  gA();
3835
3835
  },
3836
3836
  error: null
3837
- }), q = RA({
3837
+ }), q = xA({
3838
3838
  name: "repName",
3839
3839
  label: s("fullName"),
3840
3840
  required: !0,
@@ -3850,7 +3850,7 @@ function ht(t) {
3850
3850
  }
3851
3851
  pg(F) ? q.setError(null) : q.setError(s("errorInvalidName"));
3852
3852
  }
3853
- }), f = RA({
3853
+ }), f = xA({
3854
3854
  name: "repDob",
3855
3855
  label: s("dateOfBirth"),
3856
3856
  required: !0,
@@ -3892,7 +3892,7 @@ function ht(t) {
3892
3892
  onChange: (O) => {
3893
3893
  O.target.value;
3894
3894
  }
3895
- }), m = RA({
3895
+ }), m = xA({
3896
3896
  name: "repIdCardField",
3897
3897
  label: s("idNumber"),
3898
3898
  required: !0,
@@ -3911,7 +3911,7 @@ function ht(t) {
3911
3911
  s("errorInvalidIdCard", "Số CCCD phải có 12 chữ số")
3912
3912
  );
3913
3913
  }
3914
- }), M = RA({
3914
+ }), M = xA({
3915
3915
  name: "repPassportNumberField",
3916
3916
  label: s("passport", "Hộ chiếu"),
3917
3917
  required: !1,
@@ -3919,7 +3919,7 @@ function ht(t) {
3919
3919
  placeholder: s("enterPassport", "Nhập số hộ chiếu"),
3920
3920
  type: "text",
3921
3921
  value: ((mB = (rB = g == null ? void 0 : g.eInvoiceRegistration) == null ? void 0 : rB.legalRepresentative) == null ? void 0 : mB.passportNumber) || ""
3922
- }), v = RA({
3922
+ }), v = xA({
3923
3923
  name: "repPhone",
3924
3924
  label: s("phone"),
3925
3925
  required: !0,
@@ -3948,7 +3948,7 @@ function ht(t) {
3948
3948
  onChange: (O) => {
3949
3949
  O.target.value;
3950
3950
  }
3951
- }), G = RA({
3951
+ }), G = xA({
3952
3952
  name: "contactAddressDetail",
3953
3953
  label: s("permanentAddress"),
3954
3954
  required: !0,
@@ -3978,7 +3978,7 @@ function ht(t) {
3978
3978
  },
3979
3979
  error: null,
3980
3980
  accept: "image/png, image/jpeg, image/jpg, .pdf"
3981
- }), D = RA({
3981
+ }), D = xA({
3982
3982
  name: "name",
3983
3983
  label: s("fullName"),
3984
3984
  required: !0,
@@ -3996,7 +3996,7 @@ function ht(t) {
3996
3996
  s("errorInvalidName", "Họ và tên không hợp lệ.")
3997
3997
  );
3998
3998
  }
3999
- }), P = RA({
3999
+ }), P = xA({
4000
4000
  name: "email",
4001
4001
  label: s("email"),
4002
4002
  required: !0,
@@ -4027,7 +4027,7 @@ function ht(t) {
4027
4027
  s("errorInvalidEmail", "Email không hợp lệ")
4028
4028
  );
4029
4029
  }
4030
- }), k = RA({
4030
+ }), k = xA({
4031
4031
  name: "phone",
4032
4032
  label: s("phone"),
4033
4033
  required: !0,
@@ -4048,7 +4048,7 @@ function ht(t) {
4048
4048
  s("errorInvalidPhone", "Số điện thoại Việt Nam không hợp lệ.")
4049
4049
  );
4050
4050
  }
4051
- }), d = RA({
4051
+ }), d = xA({
4052
4052
  name: "contactAddressDetail",
4053
4053
  label: s("permanentAddress"),
4054
4054
  required: !0,
@@ -4070,7 +4070,7 @@ function ht(t) {
4070
4070
  ) : d.setError(null);
4071
4071
  }
4072
4072
  });
4073
- const N = RA({
4073
+ const N = xA({
4074
4074
  name: "invoiceSymbol",
4075
4075
  label: s("invoiceSymbol", "Ký hiệu hóa đơn"),
4076
4076
  required: !0,
@@ -4091,7 +4091,7 @@ function ht(t) {
4091
4091
  O.target.checked ? ($.appendChild(nA), $.appendChild(EA)) : (T.checked = !1, S.inputEl.value = "", S.setError(null), z && (z.inputEl.value = "", z.setError(null), EA.contains(z.container) && EA.removeChild(z.container)), $.removeChild(nA), $.removeChild(EA));
4092
4092
  }), T = document.createElement("input"), T.type = "checkbox", T.name = "hasUsedEInvoiceBeforeCB", T.className = "wgt:cursor-pointer", T.checked = (FB = g == null ? void 0 : g.eInvoiceRegistration) == null ? void 0 : FB.isUsedEInvoiceBefore, T.addEventListener("change", (O) => {
4093
4093
  O.target.checked ? EA.appendChild(z.container) : (z.inputEl.value = "", z.setError(null), EA.contains(z.container) && EA.removeChild(z.container));
4094
- }), z = RA({
4094
+ }), z = xA({
4095
4095
  name: "previousOtherProviderNameField",
4096
4096
  label: s("providerName", "Tên NCC"),
4097
4097
  required: !0,
@@ -4115,7 +4115,7 @@ function ht(t) {
4115
4115
  )
4116
4116
  );
4117
4117
  }
4118
- }), S = RA({
4118
+ }), S = xA({
4119
4119
  name: "previousIssuedByTaxCodeField",
4120
4120
  label: s("taxAuthorityCode", "Mã CQT đã phát hành hóa đơn"),
4121
4121
  required: !0,
@@ -4155,20 +4155,20 @@ function ht(t) {
4155
4155
  ), e.inputEl.value = "", w.inputEl.value = "", u.setValue && u.setValue("", "", ""), u.setDisabled(!1);
4156
4156
  else {
4157
4157
  if (e.inputEl.value = BA.ten_cty || "", w.inputEl.value = BA.dia_chi || "", BA.cqthue_ql) {
4158
- const eA = (ug) => ug.toLowerCase().replace(/phường\s+/i, "").replace(/xã\s+/i, "").replace(/quận\s+/i, "").trim(), PA = eA(BA.cqthue_ql), NA = H.find((ug) => {
4159
- const Hg = eA(ug.label);
4160
- return Hg.includes(PA) || PA.includes(Hg);
4158
+ const eA = ($A) => $A.toLowerCase().replace(/phường\s+/i, "").replace(/xã\s+/i, "").replace(/quận\s+/i, "").trim(), PA = eA(BA.cqthue_ql), JA = H.find(($A) => {
4159
+ const Ig = eA($A.label);
4160
+ return Ig.includes(PA) || PA.includes(Ig);
4161
4161
  });
4162
- NA && (u.setValue && u.setValue(
4163
- NA.value,
4164
- NA.label,
4165
- NA.id
4162
+ JA && (u.setValue && u.setValue(
4163
+ JA.value,
4164
+ JA.label,
4165
+ JA.id
4166
4166
  ), u.setDisabled(!0));
4167
4167
  }
4168
4168
  a.setError(null);
4169
4169
  }
4170
4170
  } catch (BA) {
4171
- F === y && (qg.error(
4171
+ F === y && (fg.error(
4172
4172
  s("errorFetchTaxInfo", "Lỗi khi lấy thông tin mã số thuế."),
4173
4173
  {
4174
4174
  autoClose: 5e3,
@@ -4193,59 +4193,59 @@ function ht(t) {
4193
4193
  sA.className = "wgt:w-full wgt:grid wgt:grid-cols-1 wgt:md:grid-cols-2 wgt:space-x-4", Z.appendChild(sA), sA.appendChild(j.container), h.appendChild(Z);
4194
4194
  const oA = document.createElement("div");
4195
4195
  oA.className = "wgt:space-y-4";
4196
- const zA = document.createElement("h3");
4197
- zA.className = "wgt:text-lg wgt:font-semibold wgt:mb-4", zA.innerText = s(
4196
+ const XA = document.createElement("h3");
4197
+ XA.className = "wgt:text-lg wgt:font-semibold wgt:mb-4", XA.innerText = s(
4198
4198
  "legalRepInfo",
4199
4199
  "2. Thông tin người đại diện pháp luật:"
4200
- ), oA.appendChild(zA);
4201
- const XA = document.createElement("div");
4202
- XA.className = "wgt:grid wgt:grid-cols-1 wgt:md:grid-cols-2 wgt:gap-4 wgt:space-y-2";
4203
- let GA = !1, qA = !1;
4200
+ ), oA.appendChild(XA);
4201
+ const FA = document.createElement("div");
4202
+ FA.className = "wgt:grid wgt:grid-cols-1 wgt:md:grid-cols-2 wgt:gap-4 wgt:space-y-2";
4203
+ let zA = !1, qA = !1;
4204
4204
  const vA = document.createElement("div");
4205
4205
  function yA() {
4206
- vA.className = "wgt:text-yellow-500 wgt:text-sm wgt:font-medium wgt:text-center", GA ? vA.innerText = s(
4206
+ vA.className = "wgt:text-yellow-500 wgt:text-sm wgt:font-medium wgt:text-center", zA ? vA.innerText = s(
4207
4207
  "warningIdCard",
4208
4208
  "Vui lòng tải lên ảnh CMND/CCCD hợp lệ"
4209
4209
  ) : qA ? vA.innerText = s(
4210
4210
  "warningIdCardSuccess",
4211
4211
  "Vui lòng tải lên ảnh CMND/CCCD hợp lệ"
4212
- ) : vA.innerText = "", Jg.appendChild(vA);
4212
+ ) : vA.innerText = "", Tg.appendChild(vA);
4213
4213
  }
4214
4214
  function dA(O) {
4215
- GA = !1, qA = !1, yA();
4215
+ zA = !1, qA = !1, yA();
4216
4216
  const F = () => {
4217
4217
  m.inputEl.value = "", q.inputEl.value = "", f.inputEl.value = "", G.inputEl.value = "", J.selectEl.value = "", Y.selectEl.value = "", m.setError(null), q.setError(null), f.setError(null), G.setError(null), J.setError(null), Y.setError(null), E && typeof E.setDate == "function" && E.setDate(null);
4218
4218
  }, BA = (PA) => {
4219
4219
  if (!PA) return "";
4220
4220
  if (/^\d{8}$/.test(PA)) {
4221
- const Dg = PA.slice(0, 2), sC = PA.slice(2, 4), GI = PA.slice(4, 8);
4222
- return `${Dg}/${sC}/${GI}`;
4221
+ const rg = PA.slice(0, 2), sC = PA.slice(2, 4), GI = PA.slice(4, 8);
4222
+ return `${rg}/${sC}/${GI}`;
4223
4223
  }
4224
- const [NA, ug, Hg] = PA.split("/"), kg = new Date(+Hg, +ug - 1, +NA);
4224
+ const [JA, $A, Ig] = PA.split("/"), kg = new Date(+Ig, +$A - 1, +JA);
4225
4225
  if (isNaN(kg)) return "";
4226
4226
  const iC = String(kg.getDate()).padStart(2, "0"), zg = String(kg.getMonth() + 1).padStart(2, "0"), Sg = kg.getFullYear();
4227
4227
  return `${iC}/${zg}/${Sg}`;
4228
4228
  }, eA = new Image();
4229
4229
  eA.src = URL.createObjectURL(O), eA.onload = () => U(null, null, function* () {
4230
4230
  try {
4231
- const PA = yield Et(eA).then((NA) => JSON.parse(NA).status !== "success" ? (GA = !0, qA = !1, yA(), null) : JSON.parse(NA).data);
4231
+ const PA = yield Et(eA).then((JA) => JSON.parse(JA).status !== "success" ? (zA = !0, qA = !1, yA(), null) : JSON.parse(JA).data);
4232
4232
  if (PA) {
4233
- GA = !1, qA = !0, yA();
4234
- const ug = Object.values(PA).every((Dg) => !Dg);
4235
- if (F(), ug) {
4233
+ zA = !1, qA = !0, yA();
4234
+ const $A = Object.values(PA).every((rg) => !rg);
4235
+ if (F(), $A) {
4236
4236
  jA(
4237
4237
  s("errorInvalidCard", "Vui lòng tải lên ảnh CMND/CCCD hợp lệ")
4238
4238
  ), F();
4239
4239
  return;
4240
4240
  }
4241
- const { address: Hg, date_of_birth: kg, full_name: iC, id_number: zg, sex: Sg } = PA;
4241
+ const { address: Ig, date_of_birth: kg, full_name: iC, id_number: zg, sex: Sg } = PA;
4242
4242
  if (!zg || !/^\d{12}$/.test(zg) ? (jA(
4243
4243
  s("errorInvalidCard", "Số CCCD phải có 12 chữ số")
4244
- ), m.inputEl.value = "") : (m.inputEl.value = zg, m.setError(null)), q.inputEl.value = iC || "", f.inputEl.value = BA(kg), G.inputEl.value = Hg || "", Sg) {
4245
- const Dg = oQ.find(
4244
+ ), m.inputEl.value = "") : (m.inputEl.value = zg, m.setError(null)), q.inputEl.value = iC || "", f.inputEl.value = BA(kg), G.inputEl.value = Ig || "", Sg) {
4245
+ const rg = oQ.find(
4246
4246
  (sC) => sC.label.toLowerCase() === Sg.toLowerCase()
4247
4247
  );
4248
- J.selectEl.value = (Dg == null ? void 0 : Dg.value) || "";
4248
+ J.selectEl.value = (rg == null ? void 0 : rg.value) || "";
4249
4249
  }
4250
4250
  }
4251
4251
  } catch (PA) {
@@ -4259,30 +4259,31 @@ function ht(t) {
4259
4259
  const eA = new Image();
4260
4260
  eA.src = URL.createObjectURL(O), eA.onload = () => U(null, null, function* () {
4261
4261
  yield nt(eA).then((PA) => {
4262
- const NA = JSON.parse(PA);
4263
- F && !NA.data.isFront ? jA(
4262
+ var $A, Ig;
4263
+ const JA = JSON.parse(PA);
4264
+ console.log("🚀 ~ result:", JA), F && !(($A = JA == null ? void 0 : JA.data) != null && $A.isFront) ? jA(
4264
4265
  s("errorInvalidCard", "Vui lòng tải lên ảnh CMND/CCCD hợp lệ")
4265
- ) : BA && !NA.data.isBack && ig(
4266
+ ) : BA && !((Ig = JA == null ? void 0 : JA.data) != null && Ig.isBack) && ug(
4266
4267
  s("errorInvalidCard", "Vui lòng tải lên ảnh CMND/CCCD hợp lệ")
4267
4268
  );
4268
4269
  });
4269
4270
  });
4270
4271
  }
4271
4272
  const {
4272
- container: Jg,
4273
- getFrontFileError: ag,
4274
- getBackFileError: Ig,
4273
+ container: Tg,
4274
+ getFrontFileError: sg,
4275
+ getBackFileError: ng,
4275
4276
  setFrontFileError: jA,
4276
- setBackFileError: ig,
4277
- getFrontFile: gg,
4278
- getBackFile: Eg
4277
+ setBackFileError: ug,
4278
+ getFrontFile: Cg,
4279
+ getBackFile: tg
4279
4280
  } = VI({
4280
4281
  frontFile: g == null ? void 0 : g.idCard,
4281
4282
  backFile: g == null ? void 0 : g.idCardBack,
4282
4283
  onFrontChange: (O) => U(null, null, function* () {
4283
4284
  var BA, eA;
4284
- if (o = O, pA(O, !0, !1), ag() || Ig() || !Eg()) {
4285
- GA = !1, qA = !1, yA(), gA();
4285
+ if (o = O, pA(O, !0, !1), sg() || ng() || !tg()) {
4286
+ zA = !1, qA = !1, yA(), gA();
4286
4287
  return;
4287
4288
  }
4288
4289
  if ((eA = (BA = g == null ? void 0 : g.eInvoiceRegistration) == null ? void 0 : BA.legalRepresentative) == null ? void 0 : eA.idCard) {
@@ -4293,42 +4294,42 @@ function ht(t) {
4293
4294
  }),
4294
4295
  onBackChange: (O) => U(null, null, function* () {
4295
4296
  var BA, eA;
4296
- if (i = O, pA(O, !1, !0), ag() || Ig() || !gg()) {
4297
- GA = !1, qA = !1, yA(), gA();
4297
+ if (i = O, pA(O, !1, !0), sg() || ng() || !Cg()) {
4298
+ zA = !1, qA = !1, yA(), gA();
4298
4299
  return;
4299
4300
  }
4300
4301
  if ((eA = (BA = g == null ? void 0 : g.eInvoiceRegistration) == null ? void 0 : BA.legalRepresentative) == null ? void 0 : eA.idCardBack) {
4301
4302
  gA();
4302
4303
  return;
4303
4304
  }
4304
- dA(gg());
4305
+ dA(Cg());
4305
4306
  }),
4306
4307
  theme: B
4307
4308
  });
4308
- XA.appendChild(Jg);
4309
- const Cg = document.createElement("div");
4310
- Cg.className = "wgt:space-y-4", Cg.appendChild(q.container);
4309
+ FA.appendChild(Tg);
4310
+ const Bg = document.createElement("div");
4311
+ Bg.className = "wgt:space-y-4", Bg.appendChild(q.container);
4311
4312
  const KA = document.createElement("div");
4312
- KA.className = "wgt:grid wgt:grid-cols-1 wgt:md:grid-cols-2 wgt:gap-4", Cg.appendChild(KA), KA.appendChild(f.container), KA.appendChild(J.container), XA.appendChild(Cg);
4313
+ KA.className = "wgt:grid wgt:grid-cols-1 wgt:md:grid-cols-2 wgt:gap-4", Bg.appendChild(KA), KA.appendChild(f.container), KA.appendChild(J.container), FA.appendChild(Bg);
4313
4314
  const ZA = document.createElement("div");
4314
- ZA.className = "wgt:grid wgt:grid-cols-1 wgt:md:grid-cols-4 wgt:gap-4 wgt:items-start", ZA.appendChild(m.container), ZA.appendChild(M.container), ZA.appendChild(v.container), ZA.appendChild(Y.container), oA.appendChild(XA), oA.appendChild(ZA), oA.appendChild(G.container), oA.appendChild(K.container);
4315
+ ZA.className = "wgt:grid wgt:grid-cols-1 wgt:md:grid-cols-4 wgt:gap-4 wgt:items-start", ZA.appendChild(m.container), ZA.appendChild(M.container), ZA.appendChild(v.container), ZA.appendChild(Y.container), oA.appendChild(FA), oA.appendChild(ZA), oA.appendChild(G.container), oA.appendChild(K.container);
4315
4316
  const VA = document.createElement("ul");
4316
4317
  VA.className = "wgt:list-inside wgt:list-disc wgt:-mt-2";
4317
- const sg = document.createElement("li");
4318
- sg.className = "wgt:text-sm wgt:text-[#8C8C8C] wgt:italic", sg.innerText = s(
4318
+ const Dg = document.createElement("li");
4319
+ Dg.className = "wgt:text-sm wgt:text-[#8C8C8C] wgt:italic", Dg.innerText = s(
4319
4320
  "legalRepNote",
4320
4321
  "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."
4321
- ), VA.appendChild(sg), oA.appendChild(VA), h.appendChild(oA);
4322
- const FA = document.createElement("div");
4323
- FA.className = "wgt:space-y-4";
4324
- const Tg = document.createElement("h3");
4325
- Tg.className = "wgt:text-lg wgt:font-semibold wgt:mb-2", Tg.innerText = s("contactInfo", "3. Thông tin người liên hệ:"), FA.appendChild(Tg);
4326
- const Bg = document.createElement("div");
4327
- Bg.className = "wgt:w-full wgt:grid wgt:grid-cols-1 wgt:md:grid-cols-2 wgt:gap-4 wgt:items-start", Bg.appendChild(D.container), Bg.appendChild(P.container), Bg.appendChild(k.container), Bg.appendChild(d.container), FA.appendChild(Bg), h.appendChild(FA);
4322
+ ), VA.appendChild(Dg), oA.appendChild(VA), h.appendChild(oA);
4323
+ const OA = document.createElement("div");
4324
+ OA.className = "wgt:space-y-4";
4325
+ const Hg = document.createElement("h3");
4326
+ Hg.className = "wgt:text-lg wgt:font-semibold wgt:mb-2", Hg.innerText = s("contactInfo", "3. Thông tin người liên hệ:"), OA.appendChild(Hg);
4327
+ const Qg = document.createElement("div");
4328
+ Qg.className = "wgt:w-full wgt:grid wgt:grid-cols-1 wgt:md:grid-cols-2 wgt:gap-4 wgt:items-start", Qg.appendChild(D.container), Qg.appendChild(P.container), Qg.appendChild(k.container), Qg.appendChild(d.container), OA.appendChild(Qg), h.appendChild(OA);
4328
4329
  const WA = document.createElement("div");
4329
4330
  WA.className = "wgt:space-y-4";
4330
- const YA = document.createElement("h3");
4331
- YA.className = "wgt:text-lg wgt:font-semibold wgt:mb-2", YA.innerText = s("invoiceUsageInfo", "4. THÔNG TIN SỬ DỤNG HDDT:"), WA.appendChild(YA), h.appendChild(WA);
4331
+ const RA = document.createElement("h3");
4332
+ RA.className = "wgt:text-lg wgt:font-semibold wgt:mb-2", RA.innerText = s("invoiceUsageInfo", "4. THÔNG TIN SỬ DỤNG HDDT:"), WA.appendChild(RA), h.appendChild(WA);
4332
4333
  const b = document.createElement("div");
4333
4334
  b.className = "wgt:w-full wgt:flex wgt:gap-4 wgt:items-start wgt:flex-row wgt:max-xl:flex-col", b.appendChild(X.container), b.appendChild(N.container), WA.appendChild(b);
4334
4335
  const $ = document.createElement("div");
@@ -4367,15 +4368,15 @@ function ht(t) {
4367
4368
  "wgt:cursor-pointer",
4368
4369
  "wgt:transition-colors"
4369
4370
  ].join(" ");
4370
- const _ = "http://www.w3.org/2000/svg", JA = document.createElementNS(_, "svg");
4371
- JA.setAttribute("viewBox", "0 0 24 24"), JA.setAttribute("class", "wgt:w-4 wgt:h-4 wgt:text-white");
4372
- const ng = document.createElementNS(_, "path");
4373
- ng.setAttribute("fill-rule", "evenodd"), ng.setAttribute("clip-rule", "evenodd"), ng.setAttribute(
4371
+ const _ = "http://www.w3.org/2000/svg", TA = document.createElementNS(_, "svg");
4372
+ TA.setAttribute("viewBox", "0 0 24 24"), TA.setAttribute("class", "wgt:w-4 wgt:h-4 wgt:text-white");
4373
+ const hg = document.createElementNS(_, "path");
4374
+ hg.setAttribute("fill-rule", "evenodd"), hg.setAttribute("clip-rule", "evenodd"), hg.setAttribute(
4374
4375
  "d",
4375
4376
  "M5.23 12.03a.75.75 0 011.06.02L10 15.94l7.71-7.71a.75.75 0 111.06 1.06l-8.24 8.24a.75.75 0 01-1.06 0L5.21 13.09a.75.75 0 01.02-1.06z"
4376
- ), ng.setAttribute("fill", "white"), JA.appendChild(ng), aA.appendChild(JA);
4377
- const tg = document.createElement("label");
4378
- tg.className = "wgt:text-sm wgt:text-strong-950 wgt:leading-tight", tg.appendChild(
4377
+ ), hg.setAttribute("fill", "white"), TA.appendChild(hg), aA.appendChild(TA);
4378
+ const cg = document.createElement("label");
4379
+ cg.className = "wgt:text-sm wgt:text-strong-950 wgt:leading-tight", cg.appendChild(
4379
4380
  document.createTextNode(s("agreeWith", "Tôi đồng ý với ") + " ")
4380
4381
  );
4381
4382
  const x = (O) => {
@@ -4384,10 +4385,10 @@ function ht(t) {
4384
4385
  BA.preventDefault(), typeof C == "function" && C();
4385
4386
  }, F;
4386
4387
  }, QA = pI(B);
4387
- tg.appendChild(
4388
+ cg.appendChild(
4388
4389
  x(s("termsAndUsagePolicy", "Điều khoản và Chính sách sử dụng"))
4389
- ), tg.appendChild(document.createTextNode(` ${s("of", "của")} ${QA}.`)), CA.appendChild(aA), CA.appendChild(tg), h.appendChild(CA), aA.addEventListener("click", () => {
4390
- cA = !cA, cA ? (aA.classList.add("wgt:bg-primary"), JA.classList.remove("wgt:hidden")) : (aA.classList.remove("wgt:bg-primary"), JA.classList.add("wgt:hidden")), gA();
4390
+ ), cg.appendChild(document.createTextNode(` ${s("of", "của")} ${QA}.`)), CA.appendChild(aA), CA.appendChild(cg), h.appendChild(CA), aA.addEventListener("click", () => {
4391
+ cA = !cA, cA ? (aA.classList.add("wgt:bg-primary"), TA.classList.remove("wgt:hidden")) : (aA.classList.remove("wgt:bg-primary"), TA.classList.add("wgt:hidden")), gA();
4391
4392
  });
4392
4393
  const iA = document.createElement("div");
4393
4394
  iA.className = "wgt:flex wgt:mt-6 wgt:items-center wgt:justify-end wgt:gap-2 ", r.type = "submit", r.innerText = s("next"), r.className = [
@@ -4411,7 +4412,7 @@ function ht(t) {
4411
4412
  return !(!eA.test(F.contactPerson.phone) || !eA.test(F.legalRepresentative.phone) || !/^\d{12}$/.test(F.legalRepresentative.idCard) || !new RegExp("^(?!\\.)(?!.*\\.\\.)[A-Za-z0-9.!#$%&'*+/=?^_`{|}~-]{1,64}(?<!\\.)@(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\\.)+[A-Za-z0-9-]{2,63}$").test(F.contactPerson.email) || !/^[1-9][CK]\d{2}[TDLMNBGHX][A-Z]{2}$/.test(F.invoiceSymbol) || !O.license || !O.logo || !O.idCard || !O.idCardBack);
4412
4413
  }
4413
4414
  function gA() {
4414
- r.disabled = !lA() || !cA || ag() || Ig() || j.getError() || K.getError();
4415
+ r.disabled = !lA() || !cA || sg() || ng() || j.getError() || K.getError();
4415
4416
  }
4416
4417
  function wA() {
4417
4418
  var O, F;
@@ -4506,7 +4507,7 @@ function wt({
4506
4507
  const E = document.createElement("input");
4507
4508
  return E.type = "text", E.inputMode = "numeric", E.value = A, E.placeholder = C, E.className = "wgt:flex-1 wgt:px-4 wgt:py-2 wgt:text-text-sub-600 wgt:placeholder-gray-400 wgt:bg-white wgt:focus:outline-none", typeof B == "function" && E.addEventListener("input", B), I.appendChild(E), { container: Q };
4508
4509
  }
4509
- const kA = (A) => new Intl.NumberFormat("vi-VN").format(A);
4510
+ const YA = (A) => new Intl.NumberFormat("vi-VN").format(A);
4510
4511
  function et({
4511
4512
  pkg: A,
4512
4513
  type: g,
@@ -4560,7 +4561,7 @@ function et({
4560
4561
  `, e.appendChild(w);
4561
4562
  const u = document.createElement("span");
4562
4563
  if (u.className = "wgt:ml-2 wgt:text-sm", g === "signature") {
4563
- const d = mg(), q = s(A.duration.unit), f = d === "en" && A.duration.value > 1 ? q + "s" : q;
4564
+ const d = qg(), q = s(A.duration.unit), f = d === "en" && A.duration.value > 1 ? q + "s" : q;
4564
4565
  u.innerText = `${s("duration")}: ${A.duration.value} ${f} `;
4565
4566
  } else typeof (A == null ? void 0 : A.limit) == "number" ? u.innerText = `${A == null ? void 0 : A.limit.toLocaleString(
4566
4567
  "vi-VN"
@@ -4574,7 +4575,7 @@ function et({
4574
4575
  "wgt:text-2xl",
4575
4576
  "wgt:font-bold",
4576
4577
  Q ? "wgt:text-primary" : "wgt:text-text-sub-600"
4577
- ].join(" "), P.innerText = kA((A == null ? void 0 : A.limit) * (A == null ? void 0 : A.price)), D.appendChild(P);
4578
+ ].join(" "), P.innerText = YA((A == null ? void 0 : A.limit) * (A == null ? void 0 : A.price)), D.appendChild(P);
4578
4579
  const k = document.createElement("span");
4579
4580
  return k.className = "wgt:text-sm wgt:text-text-sub-600", k.innerText = `VND/${s("package")}`, D.appendChild(k), E.appendChild(D), { container: E };
4580
4581
  }
@@ -4642,7 +4643,7 @@ function sQ({
4642
4643
  }
4643
4644
  };
4644
4645
  }
4645
- const ot = "1.70.1";
4646
+ const ot = "1.71.0";
4646
4647
  function at(B) {
4647
4648
  return U(this, arguments, function* ({ search: A, bank: g }) {
4648
4649
  return (yield UA.get(`${EC}`, {
@@ -4807,7 +4808,7 @@ function qt({
4807
4808
  "wgt:text-sm",
4808
4809
  "wgt:text-text-sub-600",
4809
4810
  "wgt:mb-2"
4810
- ].join(" "), t.textContent = mg() === "vi" ? A.name : A.nameEn, E.appendChild(t);
4811
+ ].join(" "), t.textContent = qg() === "vi" ? A.name : A.nameEn, E.appendChild(t);
4811
4812
  const { container: c } = IC({
4812
4813
  checked: A.isSelected,
4813
4814
  onChange: () => {
@@ -4849,7 +4850,7 @@ function ft({
4849
4850
  const d = B.trim().toLowerCase().replace(/\B(?=(\d{3})+(?!\d))/g, "."), q = yield at({ search: d, bank: A });
4850
4851
  q && (I = q), C && C();
4851
4852
  } catch (d) {
4852
- console.error("Error searching packages:", d), qg.error(s("errorSearchingPackages"), {
4853
+ console.error("Error searching packages:", d), fg.error(s("errorSearchingPackages"), {
4853
4854
  autoClose: 5e3,
4854
4855
  closeButton: !0,
4855
4856
  icon: !0
@@ -5036,20 +5037,20 @@ function lt(k) {
5036
5037
  debounceTimer: X,
5037
5038
  typedUnits: d,
5038
5039
  onSearchComplete: () => {
5039
- Cg(), YA();
5040
+ Bg(), RA();
5040
5041
  }
5041
5042
  });
5042
5043
  r.appendChild(H);
5043
5044
  const { container: sA, signatureSelectorWrapper: oA } = Mt();
5044
5045
  r.appendChild(sA);
5045
- const zA = document.createElement("div");
5046
- zA.className = "wgt:flex wgt:items-center wgt:justify-center wgt:py-4", zA.innerHTML = `
5046
+ const XA = document.createElement("div");
5047
+ XA.className = "wgt:flex wgt:items-center wgt:justify-center wgt:py-4", XA.innerHTML = `
5047
5048
  <div class="wgt:flex wgt:flex-col wgt:items-center wgt:gap-2">
5048
5049
  <div class="wgt:h-6 wgt:w-6 wgt:animate-spin wgt:rounded-full wgt:border-2 wgt:border-solid wgt:border-primary wgt:border-t-transparent"></div>
5049
5050
  <span class="wgt:text-sm wgt:text-text-sub-600">${s("loading")}...</span>
5050
5051
  </div>
5051
- `, r.appendChild(zA);
5052
- const { container: XA } = Pt(), { container: GA, tbody: qA } = vt(), vA = document.createElement("div");
5052
+ `, r.appendChild(XA);
5053
+ const { container: FA } = Pt(), { container: zA, tbody: qA } = vt(), vA = document.createElement("div");
5053
5054
  vA.className = "wgt:hidden wgt:max-sm:flex wgt:items-center wgt:justify-between wgt:w-full wgt:bg-white wgt:border wgt:border-soft-200 wgt:rounded-lg wgt:px-6 wgt:py-5 wgt:shadow-lg";
5054
5055
  const yA = document.createElement("span");
5055
5056
  yA.className = "wgt:text-lg wgt:font-bold wgt:text-strong-950", yA.innerText = s("total"), vA.appendChild(yA);
@@ -5057,14 +5058,14 @@ function lt(k) {
5057
5058
  dA.className = "wgt:text-xl wgt:font-bold wgt:text-primary", dA.innerText = "0 VND", vA.appendChild(dA);
5058
5059
  const pA = document.createElement("div");
5059
5060
  pA.className = "wgt:flex wgt:justify-between wgt:gap-2", j.appendChild(pA);
5060
- const Jg = eg({
5061
+ const Tg = ag({
5061
5062
  type: "button",
5062
5063
  title: s("back"),
5063
5064
  className: "wgt:bg-transparent wgt:!text-primary wgt:hover:bg-transparent wgt:underline",
5064
5065
  handleClick: g
5065
5066
  });
5066
- pA.appendChild(Jg);
5067
- const ag = (b, $, IA, V) => U(null, null, function* () {
5067
+ pA.appendChild(Tg);
5068
+ const sg = (b, $, IA, V) => U(null, null, function* () {
5068
5069
  o();
5069
5070
  const CA = w.eInvoiceRegistration, { isUsedEInvoiceBefore: nA } = CA, AA = uC(CA, ["isUsedEInvoiceBefore"]);
5070
5071
  let EA = [
@@ -5105,10 +5106,10 @@ function lt(k) {
5105
5106
  });
5106
5107
  t(cA.orderId), A();
5107
5108
  } catch (cA) {
5108
- console.error("Error creating order:", cA), cg(s("errorCreatingOrder") || "Failed to create order"), i();
5109
+ console.error("Error creating order:", cA), eg(s("errorCreatingOrder") || "Failed to create order"), i();
5109
5110
  return;
5110
5111
  }
5111
- }), Ig = eg({
5112
+ }), ng = ag({
5112
5113
  type: "button",
5113
5114
  title: s("next"),
5114
5115
  className: "wgt:text-white wgt:bg-primary",
@@ -5123,7 +5124,7 @@ function lt(k) {
5123
5124
  quantity: R
5124
5125
  }), I(IA)) : I(null);
5125
5126
  let V = bA(mA({}, b), { quantity: T }), nA = bA(mA({}, $), { quantity: z });
5126
- E(V), n(nA), u(J), yield ag(
5127
+ E(V), n(nA), u(J), yield sg(
5127
5128
  IA,
5128
5129
  V,
5129
5130
  nA,
@@ -5131,7 +5132,7 @@ function lt(k) {
5131
5132
  );
5132
5133
  })
5133
5134
  });
5134
- pA.appendChild(Ig);
5135
+ pA.appendChild(ng);
5135
5136
  function jA() {
5136
5137
  return U(this, null, function* () {
5137
5138
  var b, $, IA, V, nA;
@@ -5155,12 +5156,12 @@ function lt(k) {
5155
5156
  if (AA.status === "fulfilled" ? G = ((IA = AA.value) == null ? void 0 : IA.isNewCustomer) || !1 : (console.error(
5156
5157
  "Failed to check new customer:",
5157
5158
  AA.reason
5158
- ), qg.error(
5159
+ ), fg.error(
5159
5160
  s("errorCheckingCustomer") || "Failed to check customer status"
5160
5161
  ), G = !1), CA.status === "fulfilled" ? m = CA.value || [] : (console.error(
5161
5162
  "Failed to load init packages:",
5162
5163
  CA.reason
5163
- ), qg.error(
5164
+ ), fg.error(
5164
5165
  s("errorLoadingInitPackages") || "Failed to load registration packages"
5165
5166
  ), m = []), EA.status === "fulfilled" ? (((V = EA == null ? void 0 : EA.value) == null ? void 0 : V.length) > 0 && EA.value.forEach((_) => {
5166
5167
  _.codes.length > 0 && (M[_.codes[0].code] = {
@@ -5180,10 +5181,10 @@ function lt(k) {
5180
5181
  });
5181
5182
  }), Object.keys(M).length > 0 && (J = e || Object.keys(M).filter(
5182
5183
  (_) => M[_].bank === h && M[_].expiredAt >= (/* @__PURE__ */ new Date()).toISOString() && M[_].limit > M[_].used
5183
- ), Bg())) : console.error("Failed to load promotions:", EA.reason), cA.status === "fulfilled") {
5184
+ ), Qg())) : console.error("Failed to load promotions:", EA.reason), cA.status === "fulfilled") {
5184
5185
  if (N(cA.value || []), cA.value.length > 0) {
5185
5186
  const _ = cA.value.find(
5186
- (JA) => Y.includes(JA.code)
5187
+ (TA) => Y.includes(TA.code)
5187
5188
  );
5188
5189
  q = C ? C._id : _ ? _._id : cA.value[0]._id, Z(cA.value);
5189
5190
  }
@@ -5192,26 +5193,26 @@ function lt(k) {
5192
5193
  console.error(
5193
5194
  "Failed to load invoice packages:",
5194
5195
  cA.reason
5195
- ), qg.error(
5196
+ ), fg.error(
5196
5197
  s("errorLoadingInvoicePackages") || "Failed to load invoice packages"
5197
5198
  ), N([]), hA();
5198
5199
  if (aA.status === "fulfilled") {
5199
5200
  if (v = aA.value || [], v.length > 0) {
5200
5201
  const _ = v.find(
5201
- (JA) => Y.includes(JA.code)
5202
+ (TA) => Y.includes(TA.code)
5202
5203
  );
5203
- f = Q ? Q._id : _ ? _._id : (nA = v == null ? void 0 : v.filter((JA) => !JA.isBonusPackage)[0]) == null ? void 0 : nA._id;
5204
+ f = Q ? Q._id : _ ? _._id : (nA = v == null ? void 0 : v.filter((TA) => !TA.isBonusPackage)[0]) == null ? void 0 : nA._id;
5204
5205
  }
5205
5206
  } else
5206
5207
  console.error(
5207
5208
  "Failed to load signature packages:",
5208
5209
  aA.reason
5209
- ), qg.error(
5210
+ ), fg.error(
5210
5211
  s("errorLoadingSignaturePackages") || "Failed to load signature packages"
5211
5212
  ), v = [];
5212
- ig();
5213
+ ug();
5213
5214
  } catch (AA) {
5214
- console.error("Unexpected error during data loading:", AA), qg.error(s("errorLoadingData") || "Failed to load data", {
5215
+ console.error("Unexpected error during data loading:", AA), fg.error(s("errorLoadingData") || "Failed to load data", {
5215
5216
  autoClose: 5e3,
5216
5217
  closeButton: !0,
5217
5218
  icon: !0
@@ -5219,10 +5220,10 @@ function lt(k) {
5219
5220
  }
5220
5221
  });
5221
5222
  }
5222
- function ig() {
5223
- Cg(), ZA(), sg(), WA(), YA();
5223
+ function ug() {
5224
+ Bg(), ZA(), Dg(), WA(), RA();
5224
5225
  }
5225
- function gg(b, $, IA) {
5226
+ function Cg(b, $, IA) {
5226
5227
  const V = Object.values(M).find(
5227
5228
  (CA) => CA.bank === h && CA.appliedPackages.includes(b)
5228
5229
  ), nA = V && !V.isDisabled && !(V.expiredAt < (/* @__PURE__ */ new Date()).toISOString()) && V.limit !== V.used, AA = Object.values(M).find(
@@ -5240,10 +5241,10 @@ function lt(k) {
5240
5241
  } else
5241
5242
  IA();
5242
5243
  }
5243
- let Eg = null;
5244
- function Cg() {
5244
+ let tg = null;
5245
+ function Bg() {
5245
5246
  if (L.innerHTML = "", tA().length > 0)
5246
- Eg = sQ({
5247
+ tg = sQ({
5247
5248
  type: "service",
5248
5249
  packageOptions: tA(),
5249
5250
  disCountedPackages: Y,
@@ -5254,14 +5255,14 @@ function lt(k) {
5254
5255
  let $ = (V = y().find(
5255
5256
  (AA) => AA._id === q
5256
5257
  )) == null ? void 0 : V.code, IA = (nA = y().find((AA) => AA._id === b)) == null ? void 0 : nA.code;
5257
- gg($, IA, () => {
5258
- q = b, Eg.setSelectedPackageId(b), Z(y()), Tg(), sg(), WA(), T = 1, YA();
5258
+ Cg($, IA, () => {
5259
+ q = b, tg.setSelectedPackageId(b), Z(y()), Hg(), Dg(), WA(), T = 1, RA();
5259
5260
  });
5260
5261
  }
5261
- }), L.appendChild(Eg.container);
5262
+ }), L.appendChild(tg.container);
5262
5263
  else {
5263
5264
  const b = document.createElement("span");
5264
- b.className = "wgt:text-text-sub-600", b.innerText = s("noPackageFound"), L.appendChild(b), Eg = null;
5265
+ b.className = "wgt:text-text-sub-600", b.innerText = s("noPackageFound"), L.appendChild(b), tg = null;
5265
5266
  }
5266
5267
  }
5267
5268
  let KA = null;
@@ -5278,8 +5279,8 @@ function lt(k) {
5278
5279
  let $ = (V = v.find(
5279
5280
  (AA) => AA._id === f
5280
5281
  )) == null ? void 0 : V.code, IA = (nA = v.find((AA) => AA._id === b)) == null ? void 0 : nA.code;
5281
- gg($, IA, () => {
5282
- f = b, KA.setSelectedPackageId(b), Tg(), sg(), WA(), z = 1, YA();
5282
+ Cg($, IA, () => {
5283
+ f = b, KA.setSelectedPackageId(b), Hg(), Dg(), WA(), z = 1, RA();
5283
5284
  });
5284
5285
  }
5285
5286
  }), oA.appendChild(KA.container);
@@ -5290,8 +5291,8 @@ function lt(k) {
5290
5291
  }
5291
5292
  const VA = document.createElement("div");
5292
5293
  VA.className = "wgt:w-full", r.appendChild(VA);
5293
- function sg() {
5294
- zA.remove(), VA.innerHTML = "";
5294
+ function Dg() {
5295
+ XA.remove(), VA.innerHTML = "";
5295
5296
  const b = y().find(
5296
5297
  ($) => $._id === q
5297
5298
  );
@@ -5299,19 +5300,19 @@ function lt(k) {
5299
5300
  const { container: $ } = mt({
5300
5301
  name: "registrationFee",
5301
5302
  value: "standard",
5302
- feeLabel: `${s("registrationFee")}: ${kA(
5303
+ feeLabel: `${s("registrationFee")}: ${YA(
5303
5304
  m[0].price
5304
5305
  )} VND`,
5305
5306
  required: !0,
5306
- description: mg() === "vi" ? m[0].name : m[0].nameEn,
5307
+ description: qg() === "vi" ? m[0].name : m[0].nameEn,
5307
5308
  isChecked: G && !(b != null && b.withoutInitialFee)
5308
5309
  });
5309
5310
  VA.appendChild($);
5310
5311
  }
5311
5312
  }
5312
- const FA = document.createElement("div");
5313
- FA.className = "promotion-wrapper wgt:w-full wgt:flex wgt:flex-col wgt:gap-4";
5314
- function Tg() {
5313
+ const OA = document.createElement("div");
5314
+ OA.className = "promotion-wrapper wgt:w-full wgt:flex wgt:flex-col wgt:gap-4";
5315
+ function Hg() {
5315
5316
  const b = y().find(
5316
5317
  (IA) => IA._id === q
5317
5318
  ), $ = v.find(
@@ -5331,21 +5332,21 @@ function lt(k) {
5331
5332
  V.isDisabled = !nA, !nA && J.includes(V.code) ? J = J.filter(
5332
5333
  (AA) => AA !== V.code
5333
5334
  ) : nA && !J.includes(V.code) && J.push(V.code);
5334
- }), Bg();
5335
+ }), Qg();
5335
5336
  }
5336
- function Bg() {
5337
+ function Qg() {
5337
5338
  Y = Object.values(M).filter((b) => b.bank === h).map((b) => b.appliedPackages[0]);
5338
5339
  }
5339
5340
  function WA() {
5340
5341
  if (Object.values(M).filter(
5341
5342
  (CA) => CA.bank === h
5342
5343
  ).length === 0) {
5343
- r.contains(FA) && r.removeChild(FA);
5344
+ r.contains(OA) && r.removeChild(OA);
5344
5345
  return;
5345
5346
  }
5346
- FA.innerHTML = "";
5347
+ OA.innerHTML = "";
5347
5348
  const $ = document.createElement("h3");
5348
- $.className = "wgt:text-xl wgt:font-bold wgt:text-strong-950", $.innerText = s("applyPromotion"), FA.appendChild($), r.appendChild(FA);
5349
+ $.className = "wgt:text-xl wgt:font-bold wgt:text-strong-950", $.innerText = s("applyPromotion"), OA.appendChild($), r.appendChild(OA);
5349
5350
  const IA = document.createElement("div");
5350
5351
  IA.className = "wgt:w-full wgt:flex wgt:items-center wgt:gap-2 wgt:max-sm:flex-col wgt:max-sm:items-start";
5351
5352
  const V = document.createElement("div");
@@ -5357,13 +5358,13 @@ function lt(k) {
5357
5358
  }).forEach((cA) => {
5358
5359
  const aA = document.createElement("div");
5359
5360
  aA.className = "wgt:flex wgt:w-fit wgt:h-fit wgt:items-center wgt:gap-2 wgt:px-2 wgt:py-1.5 wgt:rounded-md wgt:bg-primary/10 wgt:border wgt:border-primary wgt:text-sm wgt:font-medium wgt:text-primary", aA.innerText = cA;
5360
- const _ = eg({
5361
+ const _ = ag({
5361
5362
  type: "button",
5362
5363
  title: "x",
5363
5364
  handleClick: () => {
5364
5365
  J = J.filter(
5365
- (JA) => JA !== cA
5366
- ), WA(), YA();
5366
+ (TA) => TA !== cA
5367
+ ), WA(), RA();
5367
5368
  }
5368
5369
  });
5369
5370
  _.className = "wgt:w-fit wgt:h-fit wgt:p-0 wgt:bg-transparent wgt:cursor-pointer", _.innerHTML = `<svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -5372,7 +5373,7 @@ function lt(k) {
5372
5373
  </svg>
5373
5374
  `, aA.appendChild(_), V.appendChild(aA);
5374
5375
  });
5375
- const nA = eg({
5376
+ const nA = ag({
5376
5377
  type: "button",
5377
5378
  title: s("apply"),
5378
5379
  className: "wgt:text-white wgt:bg-primary",
@@ -5380,9 +5381,9 @@ function lt(k) {
5380
5381
  console.log("Apply promotion");
5381
5382
  }
5382
5383
  });
5383
- IA.appendChild(nA), FA.appendChild(IA);
5384
+ IA.appendChild(nA), OA.appendChild(IA);
5384
5385
  const AA = document.createElement("div");
5385
- AA.className = "wgt:w-full wgt:grid wgt:grid-cols-3 wgt:gap-4 wgt:max-lg:flex wgt:max-lg:flex-col", FA.appendChild(AA);
5386
+ AA.className = "wgt:w-full wgt:grid wgt:grid-cols-3 wgt:gap-4 wgt:max-lg:flex wgt:max-lg:flex-col", OA.appendChild(AA);
5386
5387
  const EA = Object.values(M).filter(
5387
5388
  (CA) => CA.bank === h
5388
5389
  );
@@ -5393,7 +5394,7 @@ function lt(k) {
5393
5394
  isSelected: J.includes(CA.code)
5394
5395
  }),
5395
5396
  onSelect: (aA, _) => {
5396
- _ && J.push(aA), WA(), YA();
5397
+ _ && J.push(aA), WA(), RA();
5397
5398
  },
5398
5399
  isDisabled: CA.isDisabled || CA.expiredAt < (/* @__PURE__ */ new Date()).toISOString() || CA.limit === CA.used
5399
5400
  });
@@ -5401,12 +5402,12 @@ function lt(k) {
5401
5402
  });
5402
5403
  else {
5403
5404
  const CA = document.createElement("span");
5404
- CA.className = "wgt:text-text-sub-600", CA.innerText = s("noPromotionFound"), FA.appendChild(CA);
5405
+ CA.className = "wgt:text-text-sub-600", CA.innerText = s("noPromotionFound"), OA.appendChild(CA);
5405
5406
  }
5406
5407
  }
5407
- function YA() {
5408
- var aA, _, JA, ng, tg;
5409
- if (qA.innerHTML = "", r.appendChild(GA), r.appendChild(vA), r.appendChild(XA), y().length === 0 && v.length === 0) {
5408
+ function RA() {
5409
+ var aA, _, TA, hg, cg;
5410
+ if (qA.innerHTML = "", r.appendChild(zA), r.appendChild(vA), r.appendChild(FA), y().length === 0 && v.length === 0) {
5410
5411
  const x = document.createElement("tr");
5411
5412
  x.innerHTML = `
5412
5413
  <td colspan="5" class="wgt:px-3 wgt:py-8 wgt:text-center wgt:text-text-sub-600 wgt:max-sm:col-span-5">
@@ -5422,7 +5423,7 @@ function lt(k) {
5422
5423
  const x = document.createElement("tr");
5423
5424
  x.className = "wgt:max-sm:block wgt:max-sm:mb-4 wgt:max-sm:p-4 wgt:max-sm:bg-white wgt:max-sm:rounded-lg wgt:max-sm:border wgt:max-sm:border-soft-200 wgt:max-sm:shadow-sm";
5424
5425
  const QA = document.createElement("td");
5425
- QA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-sm wgt:text-strong-950 wgt:font-medium wgt:max-sm:col-span-2 wgt:max-sm:block wgt:max-sm:px-0 wgt:max-sm:py-2 wgt:max-sm:text-base wgt:max-sm:font-semibold", QA.innerText = mg() === "vi" ? m[0].name : m[0].nameEn, x.appendChild(QA);
5426
+ QA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-sm wgt:text-strong-950 wgt:font-medium wgt:max-sm:col-span-2 wgt:max-sm:block wgt:max-sm:px-0 wgt:max-sm:py-2 wgt:max-sm:text-base wgt:max-sm:font-semibold", QA.innerText = qg() === "vi" ? m[0].name : m[0].nameEn, x.appendChild(QA);
5426
5427
  const iA = document.createElement("td");
5427
5428
  iA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-sm wgt:text-strong-950 wgt:font-medium wgt:max-sm:hidden", iA.innerText = s("package"), x.appendChild(iA);
5428
5429
  const lA = document.createElement("td");
@@ -5431,33 +5432,33 @@ function lt(k) {
5431
5432
  gA.className = "wgt:w-full wgt:justify-between wgt:inline-flex wgt:items-center wgt:border wgt:border-soft-200 wgt:rounded-lg wgt:max-sm:w-full wgt:max-sm:max-w-[200px] wgt:max-sm:mx-auto";
5432
5433
  const wA = document.createElement("button");
5433
5434
  wA.type = "button", wA.ariaLabel = s("decrease"), wA.disabled = !0, wA.className = "wgt:flex wgt:h-8 wgt:w-8 wgt:items-center wgt:justify-center wgt:rounded-lg wgt:bg-weak-50 wgt:text-strong-950 wgt:cursor-not-allowed wgt:opacity-50 wgt:max-sm:h-12 wgt:max-sm:w-12 wgt:max-sm:text-lg wgt:max-sm:font-bold", wA.innerText = "–", wA.addEventListener("click", () => {
5434
- R > 1 && (R -= 1, YA());
5435
+ R > 1 && (R -= 1, RA());
5435
5436
  }), gA.appendChild(wA);
5436
5437
  const uA = document.createElement("span");
5437
5438
  uA.className = "wgt:max-w-10 wgt:text-center wgt:text-sm wgt:font-medium wgt:text-text-black wgt:focus:outline-none wgt:max-sm:text-lg wgt:max-sm:min-w-[60px] wgt:max-sm:font-semibold", uA.innerText = R, gA.appendChild(uA);
5438
5439
  const fA = document.createElement("button");
5439
5440
  fA.type = "button", fA.ariaLabel = s("increase"), fA.disabled = !0, fA.className = "wgt:flex wgt:h-8 wgt:w-8 wgt:items-center wgt:justify-center wgt:rounded-lg wgt:bg-weak-50 wgt:text-strong-950 wgt:cursor-not-allowed wgt:opacity-50 wgt:max-sm:h-12 wgt:max-sm:w-12 wgt:max-sm:text-lg wgt:max-sm:font-bold", fA.innerText = "+", fA.addEventListener("click", () => {
5440
- R += 1, YA();
5441
+ R += 1, RA();
5441
5442
  }), gA.appendChild(fA), lA.appendChild(gA), x.appendChild(lA);
5442
5443
  const DA = document.createElement("td");
5443
- DA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium wgt:max-sm:hidden", DA.innerText = kA((aA = m[0]) == null ? void 0 : aA.price) + " VND", x.appendChild(DA);
5444
- const TA = document.createElement("td");
5445
- TA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium wgt:min-w-[16rem] wgt:max-sm:hidden", TA.innerText = kA(((_ = m[0]) == null ? void 0 : _.price) * R) + " VND", x.appendChild(TA);
5446
- const HA = document.createElement("div");
5447
- HA.className = "wgt:hidden wgt:max-sm:flex wgt:flex-col wgt:gap-1 wgt:mt-2 wgt:pt-2 wgt:border-t wgt:border-soft-200", HA.innerHTML = `
5444
+ DA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium wgt:max-sm:hidden", DA.innerText = YA((aA = m[0]) == null ? void 0 : aA.price) + " VND", x.appendChild(DA);
5445
+ const HA = document.createElement("td");
5446
+ HA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium wgt:min-w-[16rem] wgt:max-sm:hidden", HA.innerText = YA(((_ = m[0]) == null ? void 0 : _.price) * R) + " VND", x.appendChild(HA);
5447
+ const kA = document.createElement("div");
5448
+ kA.className = "wgt:hidden wgt:max-sm:flex wgt:flex-col wgt:gap-1 wgt:mt-2 wgt:pt-2 wgt:border-t wgt:border-soft-200", kA.innerHTML = `
5448
5449
  <div class="wgt:flex wgt:justify-between wgt:text-sm wgt:text-text-sub-600">
5449
5450
  <span>${s("unitPrice")}:</span>
5450
- <span class="wgt:font-medium">${kA(
5451
- (JA = m[0]) == null ? void 0 : JA.price
5451
+ <span class="wgt:font-medium">${YA(
5452
+ (TA = m[0]) == null ? void 0 : TA.price
5452
5453
  )} VND</span>
5453
5454
  </div>
5454
5455
  <div class="wgt:flex wgt:justify-between wgt:text-base wgt:font-semibold wgt:text-strong-950">
5455
5456
  <span>${s("total")}:</span>
5456
- <span class="wgt:text-primary">${kA(
5457
- ((ng = m[0]) == null ? void 0 : ng.price) * R
5457
+ <span class="wgt:text-primary">${YA(
5458
+ ((hg = m[0]) == null ? void 0 : hg.price) * R
5458
5459
  )} VND</span>
5459
5460
  </div>
5460
- `, QA.appendChild(HA), qA.appendChild(x);
5461
+ `, QA.appendChild(kA), qA.appendChild(x);
5461
5462
  }
5462
5463
  {
5463
5464
  const x = p(q);
@@ -5465,7 +5466,7 @@ function lt(k) {
5465
5466
  const QA = document.createElement("tr");
5466
5467
  QA.className = "wgt:max-sm:block wgt:max-sm:mb-4 wgt:max-sm:p-4 wgt:max-sm:bg-white wgt:max-sm:rounded-lg wgt:max-sm:border wgt:max-sm:border-soft-200 wgt:max-sm:shadow-sm";
5467
5468
  const iA = document.createElement("td");
5468
- iA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium wgt:max-sm:col-span-2 wgt:max-sm:block wgt:max-sm:px-0 wgt:max-sm:py-2 wgt:max-sm:text-base wgt:max-sm:font-semibold", iA.innerText = mg() === "vi" ? x == null ? void 0 : x.name : x == null ? void 0 : x.nameEn, QA.appendChild(iA);
5469
+ iA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium wgt:max-sm:col-span-2 wgt:max-sm:block wgt:max-sm:px-0 wgt:max-sm:py-2 wgt:max-sm:text-base wgt:max-sm:font-semibold", iA.innerText = qg() === "vi" ? x == null ? void 0 : x.name : x == null ? void 0 : x.nameEn, QA.appendChild(iA);
5469
5470
  const lA = document.createElement("td");
5470
5471
  lA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium wgt:max-sm:hidden", lA.innerText = s("package"), QA.appendChild(lA);
5471
5472
  const gA = document.createElement("td");
@@ -5474,29 +5475,29 @@ function lt(k) {
5474
5475
  wA.className = "wgt:w-full wgt:justify-between wgt:inline-flex wgt:items-center wgt:border wgt:border-soft-200 wgt:rounded-lg wgt:max-sm:w-full wgt:max-sm:max-w-[200px] wgt:max-sm:mx-auto";
5475
5476
  const uA = document.createElement("button");
5476
5477
  uA.type = "button", uA.ariaLabel = s("decrease"), uA.disabled = T <= 1 || (x == null ? void 0 : x.price) === 0, uA.className = "wgt:flex wgt:h-8 wgt:w-8 wgt:items-center wgt:justify-center wgt:rounded-lg wgt:bg-weak-50 wgt:text-strong-950 wgt:disabled:cursor-not-allowed wgt:disabled:opacity-50 wgt:max-sm:h-12 wgt:max-sm:w-12 wgt:max-sm:text-lg wgt:max-sm:font-bold", uA.innerText = "–", uA.addEventListener("click", () => {
5477
- T > 1 && (T -= 1, YA());
5478
+ T > 1 && (T -= 1, RA());
5478
5479
  }), wA.appendChild(uA);
5479
5480
  const fA = document.createElement("span");
5480
5481
  fA.className = "wgt:max-w-10 wgt:text-center wgt:text-sm wgt:font-medium wgt:text-text-black wgt:focus:outline-none wgt:max-sm:text-lg wgt:max-sm:min-w-[60px] wgt:max-sm:font-semibold", fA.innerText = T, wA.appendChild(fA);
5481
5482
  const DA = document.createElement("button");
5482
5483
  DA.type = "button", DA.ariaLabel = s("increase"), DA.disabled = (x == null ? void 0 : x.price) === 0, DA.className = "wgt:flex wgt:h-8 wgt:w-8 wgt:items-center wgt:justify-center wgt:rounded-lg wgt:bg-weak-50 wgt:text-strong-950 wgt:disabled:cursor-not-allowed wgt:disabled:opacity-50 wgt:max-sm:h-12 wgt:max-sm:w-12 wgt:max-sm:text-lg wgt:max-sm:font-bold", DA.innerText = "+", DA.addEventListener("click", () => {
5483
- T += 1, YA();
5484
+ T += 1, RA();
5484
5485
  }), wA.appendChild(DA), gA.appendChild(wA), QA.appendChild(gA);
5485
- const TA = document.createElement("td");
5486
- TA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium wgt:max-sm:hidden", TA.innerText = kA((x == null ? void 0 : x.price) * (x == null ? void 0 : x.limit)) + " VND", QA.appendChild(TA);
5487
5486
  const HA = document.createElement("td");
5488
- HA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium wgt:max-sm:hidden", HA.innerText = kA((x == null ? void 0 : x.price) * (x == null ? void 0 : x.limit) * T) + " VND", QA.appendChild(HA);
5487
+ HA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium wgt:max-sm:hidden", HA.innerText = YA((x == null ? void 0 : x.price) * (x == null ? void 0 : x.limit)) + " VND", QA.appendChild(HA);
5488
+ const kA = document.createElement("td");
5489
+ kA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium wgt:max-sm:hidden", kA.innerText = YA((x == null ? void 0 : x.price) * (x == null ? void 0 : x.limit) * T) + " VND", QA.appendChild(kA);
5489
5490
  const _A = document.createElement("div");
5490
5491
  _A.className = "wgt:hidden wgt:max-sm:flex wgt:flex-col wgt:gap-1 wgt:mt-2 wgt:pt-2 wgt:border-t wgt:border-soft-200", _A.innerHTML = `
5491
5492
  <div class="wgt:flex wgt:justify-between wgt:text-sm wgt:text-text-sub-600">
5492
5493
  <span>${s("unitPrice")}:</span>
5493
- <span class="wgt:font-medium">${kA(
5494
+ <span class="wgt:font-medium">${YA(
5494
5495
  (x == null ? void 0 : x.price) * (x == null ? void 0 : x.limit)
5495
5496
  )} VND</span>
5496
5497
  </div>
5497
5498
  <div class="wgt:flex wgt:justify-between wgt:text-base wgt:font-semibold wgt:text-strong-950">
5498
5499
  <span>${s("total")}:</span>
5499
- <span class="wgt:text-primary">${kA(
5500
+ <span class="wgt:text-primary">${YA(
5500
5501
  (x == null ? void 0 : x.price) * (x == null ? void 0 : x.limit) * T
5501
5502
  )} VND</span>
5502
5503
  </div>
@@ -5509,7 +5510,7 @@ function lt(k) {
5509
5510
  const QA = document.createElement("tr");
5510
5511
  QA.className = "wgt:max-sm:block wgt:max-sm:mb-4 wgt:max-sm:p-4 wgt:max-sm:bg-white wgt:max-sm:rounded-lg wgt:max-sm:border wgt:max-sm:border-soft-200 wgt:max-sm:shadow-sm";
5511
5512
  const iA = document.createElement("td");
5512
- iA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium wgt:max-sm:col-span-2 wgt:max-sm:block wgt:max-sm:px-0 wgt:max-sm:py-2 wgt:max-sm:text-base wgt:max-sm:font-semibold", iA.innerText = mg() === "vi" ? x == null ? void 0 : x.name : x == null ? void 0 : x.nameEn, QA.appendChild(iA);
5513
+ iA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium wgt:max-sm:col-span-2 wgt:max-sm:block wgt:max-sm:px-0 wgt:max-sm:py-2 wgt:max-sm:text-base wgt:max-sm:font-semibold", iA.innerText = qg() === "vi" ? x == null ? void 0 : x.name : x == null ? void 0 : x.nameEn, QA.appendChild(iA);
5513
5514
  const lA = document.createElement("td");
5514
5515
  lA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium wgt:max-sm:hidden", lA.innerText = s("package"), QA.appendChild(lA);
5515
5516
  const gA = document.createElement("td");
@@ -5518,29 +5519,29 @@ function lt(k) {
5518
5519
  wA.className = "wgt:w-full wgt:justify-between wgt:inline-flex wgt:items-center wgt:border wgt:border-soft-200 wgt:rounded-lg wgt:max-sm:w-full wgt:max-sm:max-w-[200px] wgt:max-sm:mx-auto";
5519
5520
  const uA = document.createElement("button");
5520
5521
  uA.type = "button", uA.ariaLabel = s("decrease"), uA.disabled = z <= 1, uA.className = "wgt:flex wgt:h-8 wgt:w-8 wgt:items-center wgt:justify-center wgt:rounded-lg wgt:bg-weak-50 wgt:text-strong-950 wgt:max-sm:h-12 wgt:max-sm:w-12 wgt:max-sm:text-lg wgt:max-sm:font-bold" + (z <= 1 ? " wgt:cursor-not-allowed wgt:opacity-50" : ""), uA.innerText = "–", uA.addEventListener("click", () => {
5521
- z > 1 && (z -= 1, YA());
5522
+ z > 1 && (z -= 1, RA());
5522
5523
  }), wA.appendChild(uA);
5523
5524
  const fA = document.createElement("span");
5524
5525
  fA.className = "wgt:max-w-10 wgt:text-center wgt:text-sm wgt:font-medium wgt:text-text-black wgt:focus:outline-none wgt:max-sm:text-lg wgt:max-sm:min-w-[60px] wgt:max-sm:font-semibold", fA.innerText = z, wA.appendChild(fA);
5525
5526
  const DA = document.createElement("button");
5526
5527
  DA.type = "button", DA.ariaLabel = s("increase"), DA.className = "wgt:flex wgt:h-8 wgt:w-8 wgt:items-center wgt:justify-center wgt:rounded-lg wgt:bg-weak-50 wgt:text-strong-950 wgt:max-sm:h-12 wgt:max-sm:w-12 wgt:max-sm:text-lg wgt:max-sm:font-bold", DA.innerText = "+", DA.addEventListener("click", () => {
5527
- z += 1, YA();
5528
+ z += 1, RA();
5528
5529
  }), wA.appendChild(DA), gA.appendChild(wA), QA.appendChild(gA);
5529
- const TA = document.createElement("td");
5530
- TA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium wgt:max-sm:hidden", TA.innerText = kA((x == null ? void 0 : x.limit) * (x == null ? void 0 : x.price)), QA.appendChild(TA);
5531
5530
  const HA = document.createElement("td");
5532
- HA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium wgt:max-sm:hidden", HA.innerText = kA((x == null ? void 0 : x.limit) * (x == null ? void 0 : x.price) * z) + " VND", QA.appendChild(HA);
5531
+ HA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium wgt:max-sm:hidden", HA.innerText = YA((x == null ? void 0 : x.limit) * (x == null ? void 0 : x.price)), QA.appendChild(HA);
5532
+ const kA = document.createElement("td");
5533
+ kA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium wgt:max-sm:hidden", kA.innerText = YA((x == null ? void 0 : x.limit) * (x == null ? void 0 : x.price) * z) + " VND", QA.appendChild(kA);
5533
5534
  const _A = document.createElement("div");
5534
5535
  _A.className = "wgt:hidden wgt:max-sm:flex wgt:flex-col wgt:gap-1 wgt:mt-2 wgt:pt-2 wgt:border-t wgt:border-soft-200", _A.innerHTML = `
5535
5536
  <div class="wgt:flex wgt:justify-between wgt:text-sm wgt:text-text-sub-600">
5536
5537
  <span>${s("unitPrice")}:</span>
5537
- <span class="wgt:font-medium">${kA(
5538
+ <span class="wgt:font-medium">${YA(
5538
5539
  (x == null ? void 0 : x.limit) * (x == null ? void 0 : x.price)
5539
5540
  )} VND</span>
5540
5541
  </div>
5541
5542
  <div class="wgt:flex wgt:justify-between wgt:text-base wgt:font-semibold wgt:text-strong-950">
5542
5543
  <span>${s("total")}:</span>
5543
- <span class="wgt:text-primary">${kA(
5544
+ <span class="wgt:text-primary">${YA(
5544
5545
  (x == null ? void 0 : x.limit) * (x == null ? void 0 : x.price) * z
5545
5546
  )} VND</span>
5546
5547
  </div>
@@ -5554,26 +5555,26 @@ function lt(k) {
5554
5555
  ).filter((x) => x !== void 0);
5555
5556
  let IA = 0;
5556
5557
  $.length > 0 && $.forEach((x) => {
5557
- var wA, uA, fA, DA, TA, HA;
5558
+ var wA, uA, fA, DA, HA, kA;
5558
5559
  const QA = document.createElement("tr");
5559
5560
  QA.className = "wgt:max-sm:block wgt:max-sm:mb-3 wgt:max-sm:p-3 wgt:max-sm:bg-weak-50 wgt:max-sm:rounded-lg wgt:max-sm:border wgt:max-sm:border-soft-200";
5560
5561
  const iA = document.createElement("td");
5561
5562
  iA.colSpan = 3, iA.className = "wgt:px-3 wgt:py-2 wgt:text-sm wgt:col-span-3 wgt:max-sm:col-span-5 wgt:max-sm:block wgt:max-sm:px-0 wgt:max-sm:py-1", iA.innerHTML = `
5562
5563
  <div class="wgt:flex wgt:flex-row wgt:items-center wgt:gap-2 wgt:max-sm:justify-start">
5563
5564
  <img src="${dt}" alt="ticket" class="wgt:w-4 wgt:max-sm:w-5">
5564
- <span class="wgt:text-text-sub-600 wgt:max-sm:text-sm wgt:max-sm:font-medium">${mg() === "vi" ? x == null ? void 0 : x.name : (x == null ? void 0 : x.nameEn) || (x == null ? void 0 : x.code)}</span>
5565
+ <span class="wgt:text-text-sub-600 wgt:max-sm:text-sm wgt:max-sm:font-medium">${qg() === "vi" ? x == null ? void 0 : x.name : (x == null ? void 0 : x.nameEn) || (x == null ? void 0 : x.code)}</span>
5565
5566
  </div>
5566
5567
  `, QA.appendChild(iA);
5567
5568
  const lA = document.createElement("td");
5568
5569
  lA.className = "wgt:max-sm:hidden", QA.appendChild(lA);
5569
5570
  const gA = document.createElement("td");
5570
- gA.className = "wgt:px-3 wgt:py-2 wgt:text-sm wgt:font-semibold wgt:max-sm:text-base wgt:max-sm:font-bold wgt:max-sm:p-0", x.type === "discount" ? (gA.innerText = `-${kA(
5571
+ gA.className = "wgt:px-3 wgt:py-2 wgt:text-sm wgt:font-semibold wgt:max-sm:text-base wgt:max-sm:font-bold wgt:max-sm:p-0", x.type === "discount" ? (gA.innerText = `-${YA(
5571
5572
  (wA = x == null ? void 0 : x.reward) == null ? void 0 : wA.discountAmount
5572
5573
  )} VND`, gA.style.color = "#F04438", IA += (uA = x == null ? void 0 : x.reward) == null ? void 0 : uA.discountAmount) : (x == null ? void 0 : x.type) === "free_item" ? (gA.innerText = `+${(DA = (fA = x == null ? void 0 : x.reward) == null ? void 0 : fA.packageCodes) == null ? void 0 : DA.length} ${s(
5573
5574
  "package"
5574
- )} ${(HA = (TA = x == null ? void 0 : x.reward) == null ? void 0 : TA.packageCodes) == null ? void 0 : HA.join(", ")}`, gA.style.color = "#12B76A") : gA.innerText = "", QA.appendChild(gA), qA.appendChild(QA);
5575
+ )} ${(kA = (HA = x == null ? void 0 : x.reward) == null ? void 0 : HA.packageCodes) == null ? void 0 : kA.join(", ")}`, gA.style.color = "#12B76A") : gA.innerText = "", QA.appendChild(gA), qA.appendChild(QA);
5575
5576
  });
5576
- const V = G && m.length > 0 && !(b != null && b.withoutInitialFee) ? ((tg = m[0]) == null ? void 0 : tg.price) * R : 0, nA = p(q), AA = nA ? nA.price * nA.limit * T : 0, EA = S(f), CA = EA ? EA.price * EA.limit * z : 0, cA = V + AA + CA - IA;
5577
+ const V = G && m.length > 0 && !(b != null && b.withoutInitialFee) ? ((cg = m[0]) == null ? void 0 : cg.price) * R : 0, nA = p(q), AA = nA ? nA.price * nA.limit * T : 0, EA = S(f), CA = EA ? EA.price * EA.limit * z : 0, cA = V + AA + CA - IA;
5577
5578
  c(cA);
5578
5579
  {
5579
5580
  const x = document.createElement("tr");
@@ -5581,9 +5582,9 @@ function lt(k) {
5581
5582
  const QA = document.createElement("td");
5582
5583
  QA.colSpan = 4, QA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-3 wgt:text-left wgt:text-base wgt:font-semibold wgt:text-strong-950 wgt:col-span-4", QA.innerText = s("total"), x.appendChild(QA);
5583
5584
  const iA = document.createElement("td");
5584
- iA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-3 wgt:text-left wgt:text-base wgt:font-semibold wgt:text-strong-950", iA.innerText = kA(cA) + " VND", x.appendChild(iA), qA.appendChild(x);
5585
+ iA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-3 wgt:text-left wgt:text-base wgt:font-semibold wgt:text-strong-950", iA.innerText = YA(cA) + " VND", x.appendChild(iA), qA.appendChild(x);
5585
5586
  }
5586
- dA.innerText = kA(cA) + " VND";
5587
+ dA.innerText = YA(cA) + " VND";
5587
5588
  }
5588
5589
  return jA(), { container: j };
5589
5590
  });
@@ -5739,9 +5740,9 @@ function kt() {
5739
5740
  return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
5740
5741
  }), PC;
5741
5742
  }
5742
- var vC = {}, hg = {}, DQ;
5743
- function dg() {
5744
- if (DQ) return hg;
5743
+ var vC = {}, wg = {}, DQ;
5744
+ function lg() {
5745
+ if (DQ) return wg;
5745
5746
  DQ = 1;
5746
5747
  let A;
5747
5748
  const g = [
@@ -5788,26 +5789,26 @@ function dg() {
5788
5789
  3532,
5789
5790
  3706
5790
5791
  ];
5791
- return hg.getSymbolSize = function(C) {
5792
+ return wg.getSymbolSize = function(C) {
5792
5793
  if (!C) throw new Error('"version" cannot be null or undefined');
5793
5794
  if (C < 1 || C > 40) throw new Error('"version" should be in range from 1 to 40');
5794
5795
  return C * 4 + 17;
5795
- }, hg.getSymbolTotalCodewords = function(C) {
5796
+ }, wg.getSymbolTotalCodewords = function(C) {
5796
5797
  return g[C];
5797
- }, hg.getBCHDigit = function(B) {
5798
+ }, wg.getBCHDigit = function(B) {
5798
5799
  let C = 0;
5799
5800
  for (; B !== 0; )
5800
5801
  C++, B >>>= 1;
5801
5802
  return C;
5802
- }, hg.setToSJISFunction = function(C) {
5803
+ }, wg.setToSJISFunction = function(C) {
5803
5804
  if (typeof C != "function")
5804
5805
  throw new Error('"toSJISFunc" is not a valid function.');
5805
5806
  A = C;
5806
- }, hg.isKanjiModeEnabled = function() {
5807
+ }, wg.isKanjiModeEnabled = function() {
5807
5808
  return typeof A != "undefined";
5808
- }, hg.toSJIS = function(C) {
5809
+ }, wg.toSJIS = function(C) {
5809
5810
  return A(C);
5810
- }, hg;
5811
+ }, wg;
5811
5812
  }
5812
5813
  var dC = {}, rQ;
5813
5814
  function hB() {
@@ -5894,7 +5895,7 @@ function Rt() {
5894
5895
  var TC = {}, fQ;
5895
5896
  function xt() {
5896
5897
  return fQ || (fQ = 1, function(A) {
5897
- const g = dg().getSymbolSize;
5898
+ const g = lg().getSymbolSize;
5898
5899
  A.getRowColCoords = function(C) {
5899
5900
  if (C === 1) return [];
5900
5901
  const Q = Math.floor(C / 7) + 2, I = g(C), E = I === 145 ? 26 : Math.ceil((I - 13) / (2 * Q - 2)) * 2, n = [I - 7];
@@ -5916,7 +5917,7 @@ var HC = {}, MQ;
5916
5917
  function Gt() {
5917
5918
  if (MQ) return HC;
5918
5919
  MQ = 1;
5919
- const A = dg().getSymbolSize, g = 7;
5920
+ const A = lg().getSymbolSize, g = 7;
5920
5921
  return HC.getPositions = function(C) {
5921
5922
  const Q = A(C);
5922
5923
  return [
@@ -6462,27 +6463,27 @@ function TI() {
6462
6463
  return !isNaN(g) && g >= 1 && g <= 40;
6463
6464
  }), zC;
6464
6465
  }
6465
- var Ag = {}, HQ;
6466
+ var gg = {}, HQ;
6466
6467
  function HI() {
6467
- if (HQ) return Ag;
6468
+ if (HQ) return gg;
6468
6469
  HQ = 1;
6469
6470
  const A = "[0-9]+", g = "[A-Z $%*+\\-./:]+";
6470
6471
  let B = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
6471
6472
  B = B.replace(/u/g, "\\u");
6472
6473
  const C = "(?:(?![A-Z0-9 $%*+\\-./:]|" + B + `)(?:.|[\r
6473
6474
  ]))+`;
6474
- Ag.KANJI = new RegExp(B, "g"), Ag.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g"), Ag.BYTE = new RegExp(C, "g"), Ag.NUMERIC = new RegExp(A, "g"), Ag.ALPHANUMERIC = new RegExp(g, "g");
6475
+ gg.KANJI = new RegExp(B, "g"), gg.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g"), gg.BYTE = new RegExp(C, "g"), gg.NUMERIC = new RegExp(A, "g"), gg.ALPHANUMERIC = new RegExp(g, "g");
6475
6476
  const Q = new RegExp("^" + B + "$"), I = new RegExp("^" + A + "$"), E = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
6476
- return Ag.testKanji = function(t) {
6477
+ return gg.testKanji = function(t) {
6477
6478
  return Q.test(t);
6478
- }, Ag.testNumeric = function(t) {
6479
+ }, gg.testNumeric = function(t) {
6479
6480
  return I.test(t);
6480
- }, Ag.testAlphanumeric = function(t) {
6481
+ }, gg.testAlphanumeric = function(t) {
6481
6482
  return E.test(t);
6482
- }, Ag;
6483
+ }, gg;
6483
6484
  }
6484
6485
  var kQ;
6485
- function lg() {
6486
+ function Jg() {
6486
6487
  return kQ || (kQ = 1, function(A) {
6487
6488
  const g = TI(), B = HI();
6488
6489
  A.NUMERIC = {
@@ -6546,7 +6547,7 @@ function lg() {
6546
6547
  var YQ;
6547
6548
  function Lt() {
6548
6549
  return YQ || (YQ = 1, function(A) {
6549
- const g = dg(), B = JI(), C = hB(), Q = lg(), I = TI(), E = 7973, n = g.getBCHDigit(E);
6550
+ const g = lg(), B = JI(), C = hB(), Q = Jg(), I = TI(), E = 7973, n = g.getBCHDigit(E);
6550
6551
  function t(e, w, u) {
6551
6552
  for (let D = 1; D <= 40; D++)
6552
6553
  if (w <= A.getCapacity(D, u, e))
@@ -6613,7 +6614,7 @@ var XC = {}, RQ;
6613
6614
  function Nt() {
6614
6615
  if (RQ) return XC;
6615
6616
  RQ = 1;
6616
- const A = dg(), g = 1335, B = 21522, C = A.getBCHDigit(g);
6617
+ const A = lg(), g = 1335, B = 21522, C = A.getBCHDigit(g);
6617
6618
  return XC.getEncodedBits = function(I, E) {
6618
6619
  const n = I.bit << 3 | E;
6619
6620
  let t = n << 10;
@@ -6626,7 +6627,7 @@ var FC = {}, OC, xQ;
6626
6627
  function yt() {
6627
6628
  if (xQ) return OC;
6628
6629
  xQ = 1;
6629
- const A = lg();
6630
+ const A = Jg();
6630
6631
  function g(B) {
6631
6632
  this.mode = A.NUMERIC, this.data = B.toString();
6632
6633
  }
@@ -6648,7 +6649,7 @@ var LC, GQ;
6648
6649
  function bt() {
6649
6650
  if (GQ) return LC;
6650
6651
  GQ = 1;
6651
- const A = lg(), g = [
6652
+ const A = Jg(), g = [
6652
6653
  "0",
6653
6654
  "1",
6654
6655
  "2",
@@ -6717,7 +6718,7 @@ var NC, zQ;
6717
6718
  function jt() {
6718
6719
  if (zQ) return NC;
6719
6720
  zQ = 1;
6720
- const A = lg();
6721
+ const A = Jg();
6721
6722
  function g(B) {
6722
6723
  this.mode = A.BYTE, typeof B == "string" ? this.data = new TextEncoder().encode(B) : this.data = new Uint8Array(B);
6723
6724
  }
@@ -6736,7 +6737,7 @@ var yC, XQ;
6736
6737
  function Kt() {
6737
6738
  if (XQ) return yC;
6738
6739
  XQ = 1;
6739
- const A = lg(), g = dg();
6740
+ const A = Jg(), g = lg();
6740
6741
  function B(C) {
6741
6742
  this.mode = A.KANJI, this.data = C;
6742
6743
  }
@@ -6834,7 +6835,7 @@ function St() {
6834
6835
  var OQ;
6835
6836
  function Ut() {
6836
6837
  return OQ || (OQ = 1, function(A) {
6837
- const g = lg(), B = yt(), C = bt(), Q = jt(), I = Kt(), E = HI(), n = dg(), t = St();
6838
+ const g = Jg(), B = yt(), C = bt(), Q = jt(), I = Kt(), E = HI(), n = lg(), t = St();
6838
6839
  function c(k) {
6839
6840
  return unescape(encodeURIComponent(k)).length;
6840
6841
  }
@@ -6969,7 +6970,7 @@ var LQ;
6969
6970
  function pt() {
6970
6971
  if (LQ) return vC;
6971
6972
  LQ = 1;
6972
- const A = dg(), g = hB(), B = Yt(), C = Rt(), Q = xt(), I = Gt(), E = zt(), n = JI(), t = Ot(), c = Lt(), h = Nt(), a = lg(), e = Ut();
6973
+ const A = lg(), g = hB(), B = Yt(), C = Rt(), Q = xt(), I = Gt(), E = zt(), n = JI(), t = Ot(), c = Lt(), h = Nt(), a = Jg(), e = Ut();
6973
6974
  function w(v, m) {
6974
6975
  const M = v.size, Y = I.getPositions(m);
6975
6976
  for (let G = 0; G < Y.length; G++) {
@@ -7287,7 +7288,7 @@ function A0({
7287
7288
  P();
7288
7289
  const k = () => {
7289
7290
  e = setInterval(() => {
7290
- a--, P(), a <= 0 && Qg(e);
7291
+ a--, P(), a <= 0 && Eg(e);
7291
7292
  }, 1e3), RI(e);
7292
7293
  };
7293
7294
  k(), w.appendChild(u);
@@ -7353,16 +7354,16 @@ function A0({
7353
7354
  K.className = "wgt:text-sm wgt:font-normal wgt:leading-5 wgt:text-[#475467]", K.innerText = s("paymentAmount");
7354
7355
  const o = document.createElement("span");
7355
7356
  o.className = "wgt:text-2xl wgt:font-bold wgt:leading-6 wgt:text-[#ED1C24]", o.innerText = I.toLocaleString("vi-VN") + " VND", j.appendChild(K), j.appendChild(o), f.appendChild(j), q.appendChild(f);
7356
- const i = eg({
7357
+ const i = ag({
7357
7358
  title: s("cancelTransaction"),
7358
7359
  className: "wgt:bg-transparent wgt:border wgt:border-primary wgt:text-primary wgt:hover:bg-transparent",
7359
7360
  handleClick: () => {
7360
- e && Qg(e);
7361
+ e && Eg(e);
7361
7362
  const { container: r, open: H } = oC({
7362
7363
  message: s("transactionCanceled"),
7363
7364
  okLabel: s("ok"),
7364
7365
  onClose: () => {
7365
- a = 3600, Qg(e), typeof c == "function" && c();
7366
+ a = 3600, Eg(e), typeof c == "function" && c();
7366
7367
  },
7367
7368
  preventClose: !0
7368
7369
  });
@@ -7370,7 +7371,7 @@ function A0({
7370
7371
  }
7371
7372
  });
7372
7373
  return q.appendChild(i), h.appendChild(q), window.addEventListener("beforeunload", () => {
7373
- e && Qg(e);
7374
+ e && Eg(e);
7374
7375
  }), {
7375
7376
  container: h,
7376
7377
  setSelectedProvider(r) {
@@ -7429,18 +7430,18 @@ function C0(n) {
7429
7430
  qrSrc: "",
7430
7431
  selectedPromotions: (Q == null ? void 0 : Q.selectedPromotions) || [],
7431
7432
  onResetToStep1: () => {
7432
- Q != null && Q.onResetToStep1 && Q.onResetToStep1(), Qg(h);
7433
+ Q != null && Q.onResetToStep1 && Q.onResetToStep1(), Eg(h);
7433
7434
  }
7434
7435
  }));
7435
7436
  d.appendChild(M), u.appendChild(d);
7436
7437
  const G = document.createElement("div");
7437
7438
  G.className = "wgt:flex wgt:items-center wgt:justify-between wgt:gap-2";
7438
- const X = eg({
7439
+ const X = ag({
7439
7440
  type: "button",
7440
7441
  title: s("back"),
7441
7442
  className: "wgt:bg-transparent wgt:!text-primary wgt:hover:bg-transparent wgt:underline",
7442
7443
  handleClick: () => {
7443
- g && (g(), Qg(h));
7444
+ g && (g(), Eg(h));
7444
7445
  }
7445
7446
  });
7446
7447
  G.appendChild(X), u.appendChild(G);
@@ -7466,7 +7467,7 @@ function C0(n) {
7466
7467
  })).orderId;
7467
7468
  N !== a && (a = N, I(N), yield z(N), Y());
7468
7469
  } catch (L) {
7469
- console.error("Error creating order:", L), cg(s("errorCreatingOrder") || "Failed to create order");
7470
+ console.error("Error creating order:", L), eg(s("errorCreatingOrder") || "Failed to create order");
7470
7471
  return;
7471
7472
  } finally {
7472
7473
  k();
@@ -7506,7 +7507,7 @@ function C0(n) {
7506
7507
  } catch (N) {
7507
7508
  if (((r = (i = N.response) == null ? void 0 : i.data) == null ? void 0 : r.error_code) === "BILL_ID_EXISTED") {
7508
7509
  if (console.log("Bill ID existed, recalling createOrder..."), e = !1, w++, w >= g0) {
7509
- cg(s("errorQRGeneration"), {
7510
+ eg(s("errorQRGeneration"), {
7510
7511
  okLabel: s("ok"),
7511
7512
  onClose: () => {
7512
7513
  g();
@@ -7517,7 +7518,7 @@ function C0(n) {
7517
7518
  yield T();
7518
7519
  return;
7519
7520
  } else if (((L = (H = N.response) == null ? void 0 : H.data) == null ? void 0 : L.error_code) === "AUTHEN_FAIL") {
7520
- cg(s("errorQRGeneration"), {
7521
+ eg(s("errorQRGeneration"), {
7521
7522
  okLabel: s("ok"),
7522
7523
  onClose: () => {
7523
7524
  R();
@@ -7525,7 +7526,7 @@ function C0(n) {
7525
7526
  });
7526
7527
  return;
7527
7528
  } else
7528
- cg(
7529
+ eg(
7529
7530
  s(
7530
7531
  "errorQRGeneration",
7531
7532
  "Không thể tạo mã QR thanh toán. Vui lòng thử lại."
@@ -7548,14 +7549,14 @@ function C0(n) {
7548
7549
  S = !navigator.onLine;
7549
7550
  }
7550
7551
  function K() {
7551
- h && Qg(h), h = setInterval(() => U(null, null, function* () {
7552
+ h && Eg(h), h = setInterval(() => U(null, null, function* () {
7552
7553
  var o, i;
7553
7554
  try {
7554
7555
  const r = yield Dt(a);
7555
7556
  if (r.paymentStatus === "pending")
7556
7557
  return;
7557
7558
  const H = r.paymentStatus === "paid" ? s("paymentSuccess") : s("paymentFailed");
7558
- Qg(h);
7559
+ Eg(h);
7559
7560
  const L = oC({
7560
7561
  message: H,
7561
7562
  okLabel: "OK",
@@ -7567,7 +7568,7 @@ function C0(n) {
7567
7568
  });
7568
7569
  u.appendChild(L.container), L.open();
7569
7570
  } catch (r) {
7570
- S ? cg(s("errorNetwork"), {
7571
+ S ? eg(s("errorNetwork"), {
7571
7572
  okLabel: s("tryAgain"),
7572
7573
  onClose: function() {
7573
7574
  return U(this, null, function* () {
@@ -7575,14 +7576,14 @@ function C0(n) {
7575
7576
  });
7576
7577
  },
7577
7578
  isOffline: S
7578
- }) : ((o = r.response) == null ? void 0 : o.status) === 404 ? cg(s("errorOrderNotFound"), {
7579
+ }) : ((o = r.response) == null ? void 0 : o.status) === 404 ? eg(s("errorOrderNotFound"), {
7579
7580
  okLabel: s("tryAgain"),
7580
7581
  onClose: function() {
7581
7582
  return U(this, null, function* () {
7582
7583
  yield T();
7583
7584
  });
7584
7585
  }
7585
- }) : ((i = r.response) == null ? void 0 : i.status) === 410 ? cg(s("paymentTimeoutMessage"), {
7586
+ }) : ((i = r.response) == null ? void 0 : i.status) === 410 ? eg(s("paymentTimeoutMessage"), {
7586
7587
  okLabel: s("tryAgain"),
7587
7588
  onClose: function() {
7588
7589
  return U(this, null, function* () {
@@ -7594,7 +7595,7 @@ function C0(n) {
7594
7595
  }), 5e3), RI(h);
7595
7596
  }
7596
7597
  return window.addEventListener("online", j), window.addEventListener("offline", j), window.addEventListener("beforeunload", function() {
7597
- h && Qg(h);
7598
+ h && Eg(h);
7598
7599
  }), { container: u };
7599
7600
  });
7600
7601
  }
@@ -7716,7 +7717,7 @@ function B0({
7716
7717
  K.className = "wgt:text-sm wgt:font-medium wgt:text-strong-950 wgt:leading-tight", K.appendChild(document.createTextNode(s("informationSent"))), S.appendChild(j), S.appendChild(K);
7717
7718
  const o = document.createElement("div");
7718
7719
  o.className = "wgt:w-full wgt:flex wgt:justify-center", n.appendChild(o);
7719
- const i = eg({
7720
+ const i = ag({
7720
7721
  type: "button",
7721
7722
  title: s("completeRegistration"),
7722
7723
  className: "wgt:text-white",
@@ -8006,7 +8007,7 @@ let QC = /* @__PURE__ */ new Set();
8006
8007
  function RI(A) {
8007
8008
  A && QC.add(A);
8008
8009
  }
8009
- function Qg(A) {
8010
+ function Eg(A) {
8010
8011
  A && (QC.delete(A), window.clearInterval(A));
8011
8012
  }
8012
8013
  function s0() {
@@ -8295,5 +8296,5 @@ export {
8295
8296
  F0 as InvoiceRegisterWidget,
8296
8297
  RI as registerWidgetInterval,
8297
8298
  s0 as stopAllIntervals,
8298
- Qg as unregisterWidgetInterval
8299
+ Eg as unregisterWidgetInterval
8299
8300
  };