@invoice-sdk/widget 1.125.12 → 1.125.13

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.
@@ -1,5 +1,5 @@
1
- import { t as l, g as mh, a as lt, s as Mt, c as Nt, b as Xh, d as Bh, e as ih, f as Nh, h as zt, o as Eh, m as Hh, i as yh, j as Ph, v as kh } from "./index-CJEvCdEM.js";
2
- import { c as Tt, a as Kt, g as Jt, b as vh, f as kn, d as Qh, e as Yt, h as Lh, i as Ih, j as bh, k as Vh, l as Sh, m as Mh, n as Jh, o as Dh } from "./loading-DBi84Xm3.js";
1
+ import { t as l, g as mh, a as lt, s as Mt, c as Nt, b as Xh, d as Bh, e as ih, f as Nh, h as zt, o as Eh, m as Hh, i as Ph, j as yh, v as kh } from "./index-DFVtmZz4.js";
2
+ import { c as Tt, a as Kt, g as Jt, b as vh, f as kn, d as Qh, e as Yt, h as Lh, i as Ih, j as bh, k as Vh, l as Sh, m as Mh, n as Jh, o as Dh } from "./loading-BwrcsLCA.js";
3
3
  import { g as sh } from "./_commonjsHelpers-DaMA6jEr.js";
4
4
  function X0({ steps: n = [], currentStep: t = 1 } = {}) {
5
5
  const e = document.createElement("div");
@@ -389,26 +389,26 @@ function Ft({
389
389
  return;
390
390
  }
391
391
  N.forEach((C) => {
392
- const y = document.createElement("div");
393
- y.className = [
392
+ const P = document.createElement("div");
393
+ P.className = [
394
394
  "wgt:px-3",
395
395
  "wgt:py-2",
396
396
  "wgt:cursor-pointer",
397
397
  "wgt:hover:bg-gray-100",
398
398
  "wgt:text-sm",
399
399
  C.id ? H === C.id ? "wgt:bg-blue-50 wgt:text-blue-700" : "" : I === C.value ? "wgt:bg-blue-50 wgt:text-blue-700" : ""
400
- ].filter(Boolean).join(" "), y.innerText = C.label, y.dataset.value = C.value, y.addEventListener("click", () => {
400
+ ].filter(Boolean).join(" "), P.innerText = C.label, P.dataset.value = C.value, P.addEventListener("click", () => {
401
401
  if (C.id && (H = C.id), I = C.value, s.value = C.label, d.classList.add("wgt:hidden"), typeof A == "function") {
402
402
  const v = { target: { value: C.value } };
403
403
  C.id && (v.target.id = C.id), A(v);
404
404
  }
405
- }), x.appendChild(y);
405
+ }), x.appendChild(P);
406
406
  });
407
407
  };
408
408
  s.addEventListener("input", (N) => {
409
409
  const C = N.target.value.toLowerCase();
410
410
  k = e.filter(
411
- (y) => y.label.toLowerCase().includes(C)
411
+ (P) => P.label.toLowerCase().includes(C)
412
412
  ), w(k), d.classList.contains("wgt:hidden") || d.classList.remove("wgt:hidden");
413
413
  }), s.addEventListener("focus", () => {
414
414
  d.classList.remove("wgt:hidden"), w();
@@ -422,27 +422,27 @@ function Ft({
422
422
  const C = document.createElement("option");
423
423
  C.value = N.value, C.innerText = N.label, N.value === t && (C.selected = !0), B.appendChild(C);
424
424
  }), q.appendChild(g), q.appendChild(B);
425
- const P = document.createElement("span");
426
- return P.className = "wgt:text-red-500 wgt:text-sm wgt:mt-1", P.innerText = c || "", c || (P.style.display = "none"), q.appendChild(P), {
425
+ const y = document.createElement("span");
426
+ return y.className = "wgt:text-red-500 wgt:text-sm wgt:mt-1", y.innerText = c || "", c || (y.style.display = "none"), q.appendChild(y), {
427
427
  container: q,
428
428
  selectEl: B,
429
429
  setError(N) {
430
- N ? (P.innerText = N, P.style.display = "block", s.classList.remove("wgt:border-gray-300"), s.classList.add("wgt:border-red-500")) : (P.innerText = "", P.style.display = "none", s.classList.remove("wgt:border-red-500"), s.classList.add("wgt:border-gray-300"));
430
+ N ? (y.innerText = N, y.style.display = "block", s.classList.remove("wgt:border-gray-300"), s.classList.add("wgt:border-red-500")) : (y.innerText = "", y.style.display = "none", s.classList.remove("wgt:border-red-500"), s.classList.add("wgt:border-gray-300"));
431
431
  },
432
432
  getValue() {
433
433
  return I;
434
434
  },
435
- setValue(N, C, y) {
436
- H = y || null, I = N || "";
437
- const v = e.find((b) => b.id ? b.id === y : b.value === N);
435
+ setValue(N, C, P) {
436
+ H = P || null, I = N || "";
437
+ const v = e.find((b) => b.id ? b.id === P : b.value === N);
438
438
  v ? (s.value = v.label, B.value = N, w()) : (s.value = C || "", B.value = N || "", w());
439
439
  },
440
440
  setOptions(N) {
441
441
  for (e.splice(0, e.length, ...N), k = [...N]; B.options.length > 0; )
442
442
  B.remove(0);
443
443
  N.forEach((C) => {
444
- const y = document.createElement("option");
445
- y.value = C.value, y.innerText = C.label, B.appendChild(y);
444
+ const P = document.createElement("option");
445
+ P.value = C.value, P.innerText = C.label, B.appendChild(P);
446
446
  }), w();
447
447
  },
448
448
  setDisabled(N) {
@@ -546,8 +546,8 @@ function B0({
546
546
  });
547
547
  function I(p, w = 2) {
548
548
  if (p === 0) return "0 Bytes";
549
- const B = 1024, P = Math.max(0, w), N = ["Bytes", "KB", "MB", "GB", "TB"], C = Math.floor(Math.log(p) / Math.log(B));
550
- return parseFloat((p / Math.pow(B, C)).toFixed(P)) + " " + N[C];
549
+ const B = 1024, y = Math.max(0, w), N = ["Bytes", "KB", "MB", "GB", "TB"], C = Math.floor(Math.log(p) / Math.log(B));
550
+ return parseFloat((p / Math.pow(B, C)).toFixed(y)) + " " + N[C];
551
551
  }
552
552
  function H(p) {
553
553
  const w = p.type.toLowerCase(), B = "." + p.name.split(".").pop().toLowerCase();
@@ -560,15 +560,15 @@ function B0({
560
560
  if (B.className = "wgt:flex wgt:items-center wgt:gap-4", B.addEventListener("click", () => {
561
561
  q.click();
562
562
  }), p.type.startsWith("image/")) {
563
- const y = document.createElement("img");
564
- y.src = URL.createObjectURL(p), y.alt = "Preview", y.className = "wgt:h-20 wgt:w-20 wgt:rounded wgt:object-contain wgt:rounded", B.appendChild(y);
563
+ const P = document.createElement("img");
564
+ P.src = URL.createObjectURL(p), P.alt = "Preview", P.className = "wgt:h-20 wgt:w-20 wgt:rounded wgt:object-contain wgt:rounded", B.appendChild(P);
565
565
  }
566
- const P = document.createElement("div");
567
- P.className = "wgt:flex wgt:flex-col";
566
+ const y = document.createElement("div");
567
+ y.className = "wgt:flex wgt:flex-col";
568
568
  const N = document.createElement("p");
569
569
  N.className = "wgt:text-sm wgt:font-medium wgt:text-gray-800", N.innerText = p.name;
570
570
  const C = document.createElement("p");
571
- C.className = "wgt:text-sm wgt:text-gray-500", C.innerText = I(p.size), P.appendChild(N), P.appendChild(C), B.appendChild(P), T.appendChild(B), e = p, typeof a == "function" && a(p);
571
+ C.className = "wgt:text-sm wgt:text-gray-500", C.innerText = I(p.size), y.appendChild(N), y.appendChild(C), B.appendChild(y), T.appendChild(B), e = p, typeof a == "function" && a(p);
572
572
  } else {
573
573
  const w = document.createElement("div");
574
574
  w.className = "wgt:flex wgt:items-center", w.appendChild(x), T.appendChild(w);
@@ -691,8 +691,8 @@ function N0({
691
691
  let I = n || null;
692
692
  function H(w, B = 2) {
693
693
  if (w === 0) return "0 Bytes";
694
- const P = 1024, N = Math.max(0, B), C = ["Bytes", "KB", "MB", "GB", "TB"], y = Math.floor(Math.log(w) / Math.log(P));
695
- return parseFloat((w / Math.pow(P, y)).toFixed(N)) + " " + C[y];
694
+ const y = 1024, N = Math.max(0, B), C = ["Bytes", "KB", "MB", "GB", "TB"], P = Math.floor(Math.log(w) / Math.log(y));
695
+ return parseFloat((w / Math.pow(y, P)).toFixed(N)) + " " + C[P];
696
696
  }
697
697
  function k(w) {
698
698
  u.innerHTML = "", x(null);
@@ -707,15 +707,15 @@ function N0({
707
707
  N.className = "wgt:flex wgt:items-center wgt:gap-4";
708
708
  const C = document.createElement("div");
709
709
  C.className = "wgt:flex wgt:flex-col";
710
- const y = document.createElement("p");
711
- y.className = "wgt:text-sm wgt:font-medium wgt:text-gray-800", y.innerText = w.name;
710
+ const P = document.createElement("p");
711
+ P.className = "wgt:text-sm wgt:font-medium wgt:text-gray-800", P.innerText = w.name;
712
712
  const v = document.createElement("p");
713
- v.className = "wgt:text-sm wgt:text-gray-500", v.innerText = H(w.size), C.appendChild(y), C.appendChild(v), N.appendChild(C), u.appendChild(N), typeof a == "function" && a(null, w);
713
+ v.className = "wgt:text-sm wgt:text-gray-500", v.innerText = H(w.size), C.appendChild(P), C.appendChild(v), N.appendChild(C), u.appendChild(N), typeof a == "function" && a(null, w);
714
714
  }
715
715
  }
716
716
  function p(w) {
717
- const B = w.type.toLowerCase(), P = "." + w.name.split(".").pop().toLowerCase();
718
- return o.accept.split(",").map((C) => C.trim().toLowerCase()).filter(Boolean).some((C) => C.startsWith(".") ? C === P : C.endsWith("/*") ? B.startsWith(C.replace("/*", "")) : B === C);
717
+ const B = w.type.toLowerCase(), y = "." + w.name.split(".").pop().toLowerCase();
718
+ return o.accept.split(",").map((C) => C.trim().toLowerCase()).filter(Boolean).some((C) => C.startsWith(".") ? C === y : C.endsWith("/*") ? B.startsWith(C.replace("/*", "")) : B === C);
719
719
  }
720
720
  return o.addEventListener("change", () => {
721
721
  const w = o.files?.[0];
@@ -824,17 +824,17 @@ const Fh = ({
824
824
  w.className = "wgt:font-medium wgt:text-text-black wgt:whitespace-nowrap wgt:col-span-2 wgt:@max-2xl:whitespace-normal wgt:@max-2xl:block wgt:hidden", w.textContent = l("codeType");
825
825
  const B = document.createElement("span");
826
826
  B.className = "wgt:text-red-500 wgt:ml-1", B.innerText = "*", w.appendChild(B), p.appendChild(w);
827
- const P = document.createElement("select");
828
- P.className = `${s} wgt:@max-2xl:w-full wgt:w-40`, P.title = l("codeTypeTooltip", "C: Có mã CQT, K: Không mã"), u.forEach((M) => {
827
+ const y = document.createElement("select");
828
+ y.className = `${s} wgt:@max-2xl:w-full wgt:w-40`, y.title = l("codeTypeTooltip", "C: Có mã CQT, K: Không mã"), u.forEach((M) => {
829
829
  const D = M === "C" ? l("codeTypeC", "C (Có mã CQT)") : l("codeTypeK", "K (Không mã)");
830
- P.append(new Option(D, M));
831
- }), p.appendChild(P), g.append(p);
830
+ y.append(new Option(D, M));
831
+ }), p.appendChild(y), g.append(p);
832
832
  const N = document.createElement("div");
833
833
  N.className = "wgt:w-full wgt:flex wgt:flex-col wgt:items-start wgt:space-y-2";
834
834
  const C = document.createElement("span");
835
835
  C.className = "wgt:font-medium wgt:text-text-black wgt:whitespace-nowrap wgt:col-span-2 wgt:@max-2xl:whitespace-normal wgt:@max-2xl:block wgt:hidden", C.textContent = l("invoiceIssuanceYear");
836
- const y = document.createElement("span");
837
- y.className = "wgt:text-red-500 wgt:ml-1", y.innerText = "*", C.appendChild(y), N.appendChild(C);
836
+ const P = document.createElement("span");
837
+ P.className = "wgt:text-red-500 wgt:ml-1", P.innerText = "*", C.appendChild(P), N.appendChild(C);
838
838
  const v = document.createElement("select");
839
839
  v.className = `${s} wgt:@max-2xl:w-full wgt:w-16`, v.title = l("yearTooltip", "Năm phát hành (2 chữ số cuối)"), c.forEach((M) => v.append(new Option(M, M))), v.value = String(a).slice(-2), N.appendChild(v), g.append(N);
840
840
  const b = document.createElement("div");
@@ -868,14 +868,14 @@ const Fh = ({
868
868
  const m = document.createElement("input");
869
869
  m.type = "text", m.maxLength = 2, m.placeholder = "AB", m.defaultValue = "YY", m.className = `${s} wgt:@max-2xl:w-full wgt:w-16`, m.title = l("customLettersTooltip"), W.appendChild(m), g.append(W), e && [
870
870
  H,
871
- P,
871
+ y,
872
872
  v,
873
873
  X,
874
874
  m
875
875
  ].forEach((M) => M.disabled = !0);
876
876
  let f = null;
877
877
  function Q() {
878
- return H.value + P.value + v.value + X.value + m.value.toUpperCase();
878
+ return H.value + y.value + v.value + X.value + m.value.toUpperCase();
879
879
  }
880
880
  function J() {
881
881
  m.value = m.value.toUpperCase().replace(/[^A-Z]/g, "").slice(0, 2);
@@ -885,10 +885,10 @@ const Fh = ({
885
885
  const D = /^[1-9][CK]\d{2}[TDLMNBGHX][A-Z]{2}$/.test(M);
886
886
  typeof n == "function" && D && (console.log("Invoice symbol current (valid):", M), n(M));
887
887
  }
888
- if ([H, P, v, X].forEach(
888
+ if ([H, y, v, X].forEach(
889
889
  (M) => M.addEventListener("change", J)
890
- ), m.addEventListener("input", J), m.addEventListener("blur", J), console.log("Initializing invoice symbol component with:", t), H.value = "1", P.value = "C", v.value = "26", X.value = "M", m.value = "YY", t && typeof t == "string") {
891
- if (k[t[0]] && (H.value = t[0]), t.length >= 2 && u.includes(t[1]) && (P.value = t[1]), t.length >= 4 && /^\d{2}$/.test(t.slice(2, 4))) {
890
+ ), m.addEventListener("input", J), m.addEventListener("blur", J), console.log("Initializing invoice symbol component with:", t), H.value = "1", y.value = "C", v.value = "26", X.value = "M", m.value = "YY", t && typeof t == "string") {
891
+ if (k[t[0]] && (H.value = t[0]), t.length >= 2 && u.includes(t[1]) && (y.value = t[1]), t.length >= 4 && /^\d{2}$/.test(t.slice(2, 4))) {
892
892
  const M = t.slice(2, 4);
893
893
  v.value = M;
894
894
  }
@@ -901,7 +901,7 @@ const Fh = ({
901
901
  container: i,
902
902
  getValue: Q,
903
903
  setValue: (M) => {
904
- typeof M != "string" || M.length !== 7 || /^[1-9][CK]\d{2}[TDLMNBGHX][A-Z]{2}$/.test(M) && (H.value = M[0], P.value = M[1], v.value = M.slice(2, 4), X.value = M[4], m.value = M.slice(5, 7), J());
904
+ typeof M != "string" || M.length !== 7 || /^[1-9][CK]\d{2}[TDLMNBGHX][A-Z]{2}$/.test(M) && (H.value = M[0], y.value = M[1], v.value = M.slice(2, 4), X.value = M[4], m.value = M.slice(5, 7), J());
905
905
  }
906
906
  };
907
907
  }, Rh = [
@@ -970,7 +970,7 @@ function jh() {
970
970
  }, B = function(r, m, f) {
971
971
  var Q;
972
972
  c.createEvent ? (Q = c.createEvent("HTMLEvents"), Q.initEvent(m, !0, !1), Q = w(Q, f), r.dispatchEvent(Q)) : c.createEventObject && (Q = c.createEventObject(), Q = w(Q, f), r.fireEvent("on" + m, Q));
973
- }, P = function(r) {
973
+ }, y = function(r) {
974
974
  return r.month < 0 && (r.year -= Math.ceil(Math.abs(r.month) / 12), r.month += 12), r.month > 11 && (r.year += Math.floor(Math.abs(r.month) / 12), r.month -= 12), r;
975
975
  }, N = {
976
976
  // bind the picker to a form field
@@ -1060,7 +1060,7 @@ function jh() {
1060
1060
  for (m += r.firstDay; m >= 7; )
1061
1061
  m -= 7;
1062
1062
  return f ? r.i18n.weekdaysShort[m] : r.i18n.weekdays[m];
1063
- }, y = function(r) {
1063
+ }, P = function(r) {
1064
1064
  var m = [], f = "false";
1065
1065
  if (r.isEmpty)
1066
1066
  if (r.showDaysInNextAndPreviousMonths)
@@ -1258,9 +1258,9 @@ function jh() {
1258
1258
  r === "add" ? J = new Date(f.valueOf() + Q) : r === "subtract" && (J = new Date(f.valueOf() - Q)), this.setDate(J);
1259
1259
  },
1260
1260
  adjustCalendars: function() {
1261
- this.calendars[0] = P(this.calendars[0]);
1261
+ this.calendars[0] = y(this.calendars[0]);
1262
1262
  for (var r = 1; r < this._o.numberOfMonths; r++)
1263
- this.calendars[r] = P({
1263
+ this.calendars[r] = y({
1264
1264
  month: this.calendars[0].month + r,
1265
1265
  year: this.calendars[0].year
1266
1266
  });
@@ -1340,10 +1340,10 @@ function jh() {
1340
1340
  Vn -= 7;
1341
1341
  cn += 7 - Vn;
1342
1342
  for (var Hn = !1, Ln = 0, at = 0; Ln < cn; Ln++) {
1343
- var ln = new Date(r, m, 1 + (Ln - D)), Zn = d(this._d) ? p(ln, this._d) : !1, Dn = p(ln, J), mt = Q.events.indexOf(ln.toDateString()) !== -1, Kn = Ln < D || Ln >= M + D, yn = 1 + (Ln - D), On = m, Sn = r, Yn = Q.startRange && p(Q.startRange, ln), Rn = Q.endRange && p(Q.endRange, ln), Gn = Q.startRange && Q.endRange && Q.startRange < ln && ln < Q.endRange, it = Q.minDate && ln < Q.minDate || Q.maxDate && ln > Q.maxDate || Q.disableWeekends && x(ln) || Q.disableDayFn && Q.disableDayFn(ln);
1344
- Kn && (Ln < D ? (yn = Y + yn, On = z, Sn = sn) : (yn = yn - M, On = U, Sn = K));
1343
+ var ln = new Date(r, m, 1 + (Ln - D)), Zn = d(this._d) ? p(ln, this._d) : !1, Dn = p(ln, J), mt = Q.events.indexOf(ln.toDateString()) !== -1, Kn = Ln < D || Ln >= M + D, Pn = 1 + (Ln - D), On = m, Sn = r, Yn = Q.startRange && p(Q.startRange, ln), Rn = Q.endRange && p(Q.endRange, ln), Gn = Q.startRange && Q.endRange && Q.startRange < ln && ln < Q.endRange, it = Q.minDate && ln < Q.minDate || Q.maxDate && ln > Q.maxDate || Q.disableWeekends && x(ln) || Q.disableDayFn && Q.disableDayFn(ln);
1344
+ Kn && (Ln < D ? (Pn = Y + Pn, On = z, Sn = sn) : (Pn = Pn - M, On = U, Sn = K));
1345
1345
  var wt = {
1346
- day: yn,
1346
+ day: Pn,
1347
1347
  month: On,
1348
1348
  year: Sn,
1349
1349
  hasEvent: mt,
@@ -1357,7 +1357,7 @@ function jh() {
1357
1357
  showDaysInNextAndPreviousMonths: Q.showDaysInNextAndPreviousMonths,
1358
1358
  enableSelectionDaysInNextAndPreviousMonths: Q.enableSelectionDaysInNextAndPreviousMonths
1359
1359
  };
1360
- Q.pickWholeWeek && Zn && (Hn = !0), Z.push(y(wt)), ++at === 7 && (Q.showWeekNumber && Z.unshift(b(Ln - D, m, r, Q.firstWeekOfYearMinDays)), O.push(L(Z, Q.isRTL, Q.pickWholeWeek, Hn)), Z = [], at = 0, Hn = !1);
1360
+ Q.pickWholeWeek && Zn && (Hn = !0), Z.push(P(wt)), ++at === 7 && (Q.showWeekNumber && Z.unshift(b(Ln - D, m, r, Q.firstWeekOfYearMinDays)), O.push(L(Z, Q.isRTL, Q.pickWholeWeek, Hn)), Z = [], at = 0, Hn = !1);
1361
1361
  }
1362
1362
  return W(Q, O, f);
1363
1363
  },
@@ -1659,12 +1659,12 @@ function la(n, t, e = 200) {
1659
1659
  const s = ga();
1660
1660
  A.setTransform(...s), A.drawImage(a, 0, 0), A.setTransform(1, 0, 0, 1, 0, 0);
1661
1661
  } else if (t.length === 4) {
1662
- const [s, d, x, I] = t, H = x - s, k = I - d, p = H * 0.05, w = k * 0.05, B = Math.max(0, s - p), P = Math.max(0, d - w), N = Math.min(a.width, x + p), C = Math.min(a.height, I + w), y = N - B, v = C - P;
1662
+ const [s, d, x, I] = t, H = x - s, k = I - d, p = H * 0.05, w = k * 0.05, B = Math.max(0, s - p), y = Math.max(0, d - w), N = Math.min(a.width, x + p), C = Math.min(a.height, I + w), P = N - B, v = C - y;
1663
1663
  A.drawImage(
1664
1664
  a,
1665
1665
  B,
1666
- P,
1667
1666
  y,
1667
+ P,
1668
1668
  v,
1669
1669
  0,
1670
1670
  0,
@@ -1754,9 +1754,9 @@ function da(n, t, e, a, h = 0.5) {
1754
1754
  const k = xa();
1755
1755
  let p = k.length > 0 ? k[0] : [], w = p.length >= 4 ? p.slice(0, 4) : x;
1756
1756
  w = w.map((E) => [E[0] * s, E[1] * d]);
1757
- const B = 0.1, P = Math.min(...w.map((E) => E[0])), N = Math.max(...w.map((E) => E[0])), C = Math.min(...w.map((E) => E[1])), y = Math.max(...w.map((E) => E[1])), v = N - P, b = y - C, L = w.map((E) => [
1758
- E[0] + (E[0] < (P + N) / 2 ? -B * v : B * v),
1759
- E[1] + (E[1] < (C + y) / 2 ? -B * b : B * b)
1757
+ const B = 0.1, y = Math.min(...w.map((E) => E[0])), N = Math.max(...w.map((E) => E[0])), C = Math.min(...w.map((E) => E[1])), P = Math.max(...w.map((E) => E[1])), v = N - y, b = P - C, L = w.map((E) => [
1758
+ E[0] + (E[0] < (y + N) / 2 ? -B * v : B * v),
1759
+ E[1] + (E[1] < (C + P) / 2 ? -B * b : B * b)
1760
1760
  ]);
1761
1761
  c.push({
1762
1762
  bbox_xyxy: x,
@@ -1903,7 +1903,7 @@ const Xa = () => typeof window < "u" && typeof window.umami < "u", vn = (n, t =
1903
1903
  STEP3_PAYMENT_SUCCESS: "einv_payment_success",
1904
1904
  STEP3_PAYMENT_FAILED: "einv_payment_failed",
1905
1905
  STEP3_PAYMENT_WRONG_AMOUNT: "einv_payment_wrong_amount"
1906
- }, yt = {
1906
+ }, Pt = {
1907
1907
  success(n) {
1908
1908
  vn(Qn.STEP3_PAYMENT_SUCCESS, {
1909
1909
  orderId: n.orderId,
@@ -1959,7 +1959,7 @@ const Xa = () => typeof window < "u" && typeof window.umami < "u", vn = (n, t =
1959
1959
  theme: n.theme
1960
1960
  });
1961
1961
  }
1962
- }, y0 = {
1962
+ }, P0 = {
1963
1963
  success(n) {
1964
1964
  vn(Qn.STEP3_QR_GENERATION_SUCCESS, {
1965
1965
  orderId: n.orderId,
@@ -1982,7 +1982,7 @@ const Xa = () => typeof window < "u" && typeof window.umami < "u", vn = (n, t =
1982
1982
  retryCount: n.retryCount || 0
1983
1983
  });
1984
1984
  }
1985
- }, P0 = {
1985
+ }, y0 = {
1986
1986
  stopped(n) {
1987
1987
  vn(Qn.STEP3_POLLING_STOPPED, {
1988
1988
  orderId: n.orderId,
@@ -2060,7 +2060,7 @@ async function Ba({
2060
2060
  const S = pn();
2061
2061
  typeof n == "function" && n(S);
2062
2062
  }), p.appendChild(w);
2063
- let B, P, N, C, y, v, b, L, E, X, G, W, _, r, m, f, Q, J, M, D, O, Z, z, U, sn;
2063
+ let B, y, N, C, P, v, b, L, E, X, G, W, _, r, m, f, Q, J, M, D, O, Z, z, U, sn;
2064
2064
  const K = document.createElement("button");
2065
2065
  B = bn({
2066
2066
  name: "taxCode",
@@ -2089,7 +2089,7 @@ async function Ba({
2089
2089
  }
2090
2090
  B.setError(null), at(wn), on();
2091
2091
  }
2092
- }), P = bn({
2092
+ }), y = bn({
2093
2093
  name: "companyName",
2094
2094
  label: l("companyName"),
2095
2095
  required: !0,
@@ -2289,7 +2289,7 @@ async function Ba({
2289
2289
  },
2290
2290
  error: null,
2291
2291
  accept: "image/png, image/jpeg, image/jpg, .pdf"
2292
- }), y = bn({
2292
+ }), P = bn({
2293
2293
  name: "name",
2294
2294
  label: l("fullName"),
2295
2295
  required: !0,
@@ -2300,10 +2300,10 @@ async function Ba({
2300
2300
  onInput: (V) => {
2301
2301
  const S = V.target.value;
2302
2302
  if (S.trim() === "") {
2303
- y.setError(l("errorRequired", "Họ và tên bắt buộc"));
2303
+ P.setError(l("errorRequired", "Họ và tên bắt buộc"));
2304
2304
  return;
2305
2305
  }
2306
- bt(S) ? y.setError(null) : y.setError(
2306
+ bt(S) ? P.setError(null) : P.setError(
2307
2307
  l("errorInvalidName", "Họ và tên không hợp lệ.")
2308
2308
  );
2309
2309
  }
@@ -2477,7 +2477,7 @@ async function Ba({
2477
2477
  if (S !== Ln)
2478
2478
  return;
2479
2479
  {
2480
- B.setError(null), P.inputEl.value = $.ten_cty || "", N.inputEl.value = $.dia_chi || "";
2480
+ B.setError(null), y.inputEl.value = $.ten_cty || "", N.inputEl.value = $.dia_chi || "";
2481
2481
  const gn = $.cqthue_ql || $.dia_chi || "";
2482
2482
  if (gn) {
2483
2483
  const Wn = (Fn) => Fn ? Fn.toLowerCase().replace(
@@ -2524,16 +2524,16 @@ async function Ba({
2524
2524
  const Zn = document.createElement("h3");
2525
2525
  Zn.className = "wgt:text-lg wgt:font-semibold wgt:mb-4", Zn.innerText = l("unitInfo", "1. Thông tin đơn vị"), ln.appendChild(Zn), setTimeout(() => I(), 50);
2526
2526
  const Dn = document.createElement("div");
2527
- Dn.className = "wgt:grid wgt:@max-2xl:grid-cols-1 wgt:@max-2xl:p-4 wgt:@max-2xl:gap-y-3 wgt:grid-cols-2 wgt:gap-y-2 wgt:gap-x-4 wgt:px-6 wgt:py-4 wgt:rounded-xl wgt:bg-weak-50", ln.appendChild(Dn), Dn.appendChild(B.container), Dn.appendChild(P.container), Dn.appendChild(N.container), Dn.appendChild(C.container);
2527
+ Dn.className = "wgt:grid wgt:@max-2xl:grid-cols-1 wgt:@max-2xl:p-4 wgt:@max-2xl:gap-y-3 wgt:grid-cols-2 wgt:gap-y-2 wgt:gap-x-4 wgt:px-6 wgt:py-4 wgt:rounded-xl wgt:bg-weak-50", ln.appendChild(Dn), Dn.appendChild(B.container), Dn.appendChild(y.container), Dn.appendChild(N.container), Dn.appendChild(C.container);
2528
2528
  const mt = document.createElement("div");
2529
2529
  mt.className = "wgt:w-full wgt:grid wgt:grid-cols-1 wgt:@min-2xl:grid-cols-2 wgt:space-x-4", ln.appendChild(mt), mt.appendChild(Z.container), w.appendChild(ln);
2530
2530
  const Kn = document.createElement("div");
2531
2531
  Kn.className = "wgt:space-y-4";
2532
- const yn = document.createElement("h3");
2533
- yn.className = "wgt:text-lg wgt:font-semibold wgt:mb-4", yn.innerText = l(
2532
+ const Pn = document.createElement("h3");
2533
+ Pn.className = "wgt:text-lg wgt:font-semibold wgt:mb-4", Pn.innerText = l(
2534
2534
  "legalRepInfo",
2535
2535
  "2. Thông tin người đại diện pháp luật:"
2536
- ), Kn.appendChild(yn);
2536
+ ), Kn.appendChild(Pn);
2537
2537
  const On = document.createElement("div");
2538
2538
  On.className = "wgt:grid wgt:grid-cols-1 wgt:@min-2xl:grid-cols-2 wgt:gap-4 wgt:space-y-2";
2539
2539
  let Sn = !1, Yn = !1;
@@ -2656,10 +2656,10 @@ async function Ba({
2656
2656
  ), At.appendChild(ft), Kn.appendChild(At), w.appendChild(Kn);
2657
2657
  const jn = document.createElement("div");
2658
2658
  jn.className = "wgt:space-y-4";
2659
- const Pn = document.createElement("h3");
2660
- Pn.className = "wgt:text-lg wgt:font-semibold wgt:mb-2", Pn.innerText = l("contactInfo", "3. Thông tin người liên hệ:"), jn.appendChild(Pn);
2659
+ const yn = document.createElement("h3");
2660
+ yn.className = "wgt:text-lg wgt:font-semibold wgt:mb-2", yn.innerText = l("contactInfo", "3. Thông tin người liên hệ:"), jn.appendChild(yn);
2661
2661
  const F = document.createElement("div");
2662
- F.className = "wgt:w-full wgt:grid wgt:grid-cols-1 wgt:@min-2xl:grid-cols-2 wgt:gap-4 wgt:items-start", F.appendChild(y.container), F.appendChild(v.container), F.appendChild(b.container), F.appendChild(L.container), jn.appendChild(F), w.appendChild(jn);
2662
+ F.className = "wgt:w-full wgt:grid wgt:grid-cols-1 wgt:@min-2xl:grid-cols-2 wgt:gap-4 wgt:items-start", F.appendChild(P.container), F.appendChild(v.container), F.appendChild(b.container), F.appendChild(L.container), jn.appendChild(F), w.appendChild(jn);
2663
2663
  const hn = document.createElement("div");
2664
2664
  hn.className = "wgt:space-y-4";
2665
2665
  const un = document.createElement("h3");
@@ -2764,13 +2764,13 @@ async function Ba({
2764
2764
  taxAuthorityCode: g ? "1" : O?.getValue() ?? "",
2765
2765
  previousEInvoiceProvider: D?.getValue() ?? "",
2766
2766
  organization: {
2767
- name: P?.getValue(),
2767
+ name: y?.getValue(),
2768
2768
  address: N?.getValue(),
2769
2769
  taxCode: B?.getValue(),
2770
2770
  taxAuthority: C?.getValue()
2771
2771
  },
2772
2772
  contactPerson: {
2773
- name: y?.getValue(),
2773
+ name: P?.getValue(),
2774
2774
  address: L?.getValue(),
2775
2775
  email: v?.getValue(),
2776
2776
  phone: b?.getValue()
@@ -2796,10 +2796,10 @@ async function Ba({
2796
2796
  };
2797
2797
  }
2798
2798
  [
2799
- P,
2799
+ y,
2800
2800
  B,
2801
2801
  N,
2802
- y,
2802
+ P,
2803
2803
  v,
2804
2804
  b,
2805
2805
  L,
@@ -2958,8 +2958,8 @@ function Ea({
2958
2958
  `, s.appendChild(d);
2959
2959
  const x = document.createElement("span");
2960
2960
  if (x.className = "wgt:ml-2 wgt:text-sm", t === "signature") {
2961
- const w = lt(), B = l(n.duration.unit), P = w === "en" && n.duration.value > 1 ? B + "s" : B;
2962
- x.innerText = `${l("duration")}: ${n.duration.value} ${P} `;
2961
+ const w = lt(), B = l(n.duration.unit), y = w === "en" && n.duration.value > 1 ? B + "s" : B;
2962
+ x.innerText = `${l("duration")}: ${n.duration.value} ${y} `;
2963
2963
  } else typeof n?.limit == "number" ? x.innerText = `${n?.limit.toLocaleString("vi-VN")} ${l(
2964
2964
  "searchUnits"
2965
2965
  )}` : x.innerText = "";
@@ -3023,7 +3023,7 @@ function v0({
3023
3023
  const X = T.firstElementChild;
3024
3024
  return X ? X.getBoundingClientRect().width + 24 : 300;
3025
3025
  }
3026
- function P(X) {
3026
+ function y(X) {
3027
3027
  T.scrollBy({ left: X * B(), behavior: "smooth" });
3028
3028
  }
3029
3029
  function N() {
@@ -3031,7 +3031,7 @@ function v0({
3031
3031
  const X = T.scrollWidth - T.clientWidth;
3032
3032
  d.disabled = T.scrollLeft <= 0, x.disabled = T.scrollLeft >= X - 2;
3033
3033
  }
3034
- d.addEventListener("click", () => P(-1)), x.addEventListener("click", () => P(1)), T.addEventListener("scroll", N);
3034
+ d.addEventListener("click", () => y(-1)), x.addEventListener("click", () => y(1)), T.addEventListener("scroll", N);
3035
3035
  function C() {
3036
3036
  if (T.innerHTML = "", !I || I.length === 0) {
3037
3037
  const X = document.createElement("div");
@@ -3056,15 +3056,15 @@ function v0({
3056
3056
  });
3057
3057
  }
3058
3058
  C();
3059
- let y = !1, v = 0, b = 0;
3059
+ let P = !1, v = 0, b = 0;
3060
3060
  T.addEventListener("mousedown", (X) => {
3061
- y = !0, T.classList.replace("wgt:cursor-grab", "wgt:cursor-grabbing"), v = X.pageX, b = T.scrollLeft;
3061
+ P = !0, T.classList.replace("wgt:cursor-grab", "wgt:cursor-grabbing"), v = X.pageX, b = T.scrollLeft;
3062
3062
  });
3063
3063
  const L = () => {
3064
- y && (y = !1, T.classList.replace("wgt:cursor-grabbing", "wgt:cursor-grab"));
3064
+ P && (P = !1, T.classList.replace("wgt:cursor-grabbing", "wgt:cursor-grab"));
3065
3065
  };
3066
3066
  document.addEventListener("mouseup", L), T.addEventListener("mouseleave", L), T.addEventListener("mousemove", (X) => {
3067
- y && (X.preventDefault(), T.scrollLeft = b - (X.pageX - v) * 1.5);
3067
+ P && (X.preventDefault(), T.scrollLeft = b - (X.pageX - v) * 1.5);
3068
3068
  }), T.addEventListener(
3069
3069
  "wheel",
3070
3070
  (X) => {
@@ -3139,7 +3139,7 @@ function Ha({
3139
3139
  const g = document.createElement("p");
3140
3140
  return g.className = "wgt:text-text-soft-400 wgt:text-sm", g.textContent = h, i.appendChild(g), u.appendChild(i), { container: u };
3141
3141
  }
3142
- function ya({
3142
+ function Pa({
3143
3143
  promotion: n,
3144
3144
  onSelect: t,
3145
3145
  // isDisabled = false,
@@ -3195,7 +3195,7 @@ function ya({
3195
3195
  "expiredDate"
3196
3196
  )} ${n.expiredAt.split("T")[0]}`, A.appendChild(g), h.appendChild(c), h.appendChild(A), { container: h };
3197
3197
  }
3198
- function Pa({
3198
+ function ya({
3199
3199
  value: n = "",
3200
3200
  placeholder: t = "",
3201
3201
  onInputChange: e = void 0
@@ -3241,7 +3241,7 @@ function ka({
3241
3241
  }
3242
3242
  }, 500) : (A = c, a && a());
3243
3243
  }
3244
- const g = Pa({
3244
+ const g = ya({
3245
3245
  value: "",
3246
3246
  placeholder: l("searchUnits"),
3247
3247
  onInputChange: (p) => {
@@ -3394,8 +3394,8 @@ async function ba({
3394
3394
  setSavedQuantities: w,
3395
3395
  isRenewal: B
3396
3396
  }) {
3397
- const P = d?.eInvoiceRegistration?.invoiceSymbol || "", N = P?.[4] === "M";
3398
- let C = [], y = "", v = a ? a._id : null, b = h ? h._id : null, L = s ? s.map((F) => F) : [], E = [], X = [], G = [], W = [], _ = null, r = p?.qtyRegFee || 1, m = p?.qtyInvoicePkg || 1, f = p?.qtySignaturePkg || 1;
3397
+ const y = d?.eInvoiceRegistration?.invoiceSymbol || "", N = y?.[4] === "M";
3398
+ let C = [], P = "", v = a ? a._id : null, b = h ? h._id : null, L = s ? s.map((F) => F) : [], E = [], X = [], G = [], W = [], _ = null, r = p?.qtyRegFee || 1, m = p?.qtyInvoicePkg || 1, f = p?.qtySignaturePkg || 1;
3399
3399
  function Q() {
3400
3400
  w && w({
3401
3401
  qtyRegFee: r,
@@ -3431,9 +3431,9 @@ async function ba({
3431
3431
  } = ka({
3432
3432
  theme: T,
3433
3433
  debounceTimer: _,
3434
- typedUnits: y,
3434
+ typedUnits: P,
3435
3435
  onSearchComplete: () => {
3436
- Lt(), Pn();
3436
+ Lt(), yn();
3437
3437
  },
3438
3438
  selectedProvider: g
3439
3439
  });
@@ -3450,7 +3450,7 @@ async function ba({
3450
3450
  <span class="wgt:text-sm wgt:text-text-sub-600">${l("loading")}...</span>
3451
3451
  </div>
3452
3452
  `, U.appendChild(Dn);
3453
- const { container: mt } = Qa(), { container: Kn, tbody: yn } = La(), On = document.createElement("div");
3453
+ const { container: mt } = Qa(), { container: Kn, tbody: Pn } = La(), On = document.createElement("div");
3454
3454
  On.className = "wgt:hidden wgt:@max-2xl: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";
3455
3455
  const Sn = document.createElement("span");
3456
3456
  Sn.className = "wgt:text-lg wgt:font-bold wgt:text-strong-950", Sn.innerText = l("total"), On.appendChild(Sn);
@@ -3562,7 +3562,7 @@ async function ba({
3562
3562
  ] = await Promise.allSettled([
3563
3563
  Ih({
3564
3564
  isRenewable: B === !0,
3565
- serialNumber: P,
3565
+ serialNumber: y,
3566
3566
  provider: g?.route
3567
3567
  }),
3568
3568
  bh({ bank: T, provider: g?.route }),
@@ -3631,7 +3631,7 @@ async function ba({
3631
3631
  }
3632
3632
  }
3633
3633
  function Ht() {
3634
- At(), Lt(), B || Wt(), ht(), jn(), Pn();
3634
+ At(), Lt(), B || Wt(), ht(), jn(), yn();
3635
3635
  }
3636
3636
  function pt(F, hn, un) {
3637
3637
  const nn = Object.values(G).find(
@@ -3669,7 +3669,7 @@ async function ba({
3669
3669
  (nn) => nn._id === v
3670
3670
  )?.code, un = cn().find((nn) => nn._id === F)?.code;
3671
3671
  pt(hn, un, () => {
3672
- v = F, ct.setSelectedPackageId(F), At(), ht(), jn(), Pn();
3672
+ v = F, ct.setSelectedPackageId(F), At(), ht(), jn(), yn();
3673
3673
  });
3674
3674
  }
3675
3675
  }), K.appendChild(ct.container);
@@ -3692,11 +3692,11 @@ async function ba({
3692
3692
  (nn) => nn._id === b
3693
3693
  )?.code, un = E.find((nn) => nn._id === F)?.code;
3694
3694
  if (B && b === F) {
3695
- b = null, et.setSelectedPackageId(null), At(), ht(), jn(), Pn();
3695
+ b = null, et.setSelectedPackageId(null), At(), ht(), jn(), yn();
3696
3696
  return;
3697
3697
  }
3698
3698
  pt(hn, un, () => {
3699
- b = F, et.setSelectedPackageId(F), Hn(cn()), At(), ht(), jn(), Pn();
3699
+ b = F, et.setSelectedPackageId(F), Hn(cn()), At(), ht(), jn(), yn();
3700
3700
  });
3701
3701
  }
3702
3702
  }), ln.appendChild(et.container)) : (et = null, Zn && (Zn.style.display = "none")));
@@ -3782,7 +3782,7 @@ async function ba({
3782
3782
  handleClick: () => {
3783
3783
  L = L.filter(
3784
3784
  (Bn) => Bn !== An
3785
- ), jn(), Pn();
3785
+ ), jn(), yn();
3786
3786
  }
3787
3787
  });
3788
3788
  fn.className = "wgt:w-fit wgt:h-fit wgt:p-0 wgt:bg-transparent wgt:cursor-pointer", fn.innerHTML = `<svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -3805,7 +3805,7 @@ async function ba({
3805
3805
  if (en.length > 0)
3806
3806
  en.forEach((j) => {
3807
3807
  L.includes(j.code);
3808
- const { container: An } = ya({
3808
+ const { container: An } = Pa({
3809
3809
  promotion: {
3810
3810
  ...j,
3811
3811
  isSelected: L.includes(j.code)
@@ -3814,7 +3814,7 @@ async function ba({
3814
3814
  onSelect: (rn, fn) => {
3815
3815
  fn ? L.includes(rn) || L.push(rn) : L = L.filter(
3816
3816
  (Bn) => Bn !== rn
3817
- ), jn(), Pn();
3817
+ ), jn(), yn();
3818
3818
  },
3819
3819
  isHidden: !1,
3820
3820
  isSelectable: !0
@@ -3826,14 +3826,14 @@ async function ba({
3826
3826
  j.className = "wgt:text-text-sub-600", j.innerText = l("noPromotionFound"), In.appendChild(j);
3827
3827
  }
3828
3828
  }
3829
- function Pn() {
3830
- if (Q(), yn.innerHTML = "", U.appendChild(Kn), U.appendChild(On), U.appendChild(mt), cn().length === 0 && E.length === 0) {
3829
+ function yn() {
3830
+ if (Q(), Pn.innerHTML = "", U.appendChild(Kn), U.appendChild(On), U.appendChild(mt), cn().length === 0 && E.length === 0) {
3831
3831
  const R = document.createElement("tr");
3832
3832
  R.innerHTML = `
3833
3833
  <td colspan="5" class="wgt:px-3 wgt:py-8 wgt:text-center wgt:text-text-sub-600 wgt:@max-2xl:col-span-5">
3834
3834
  ${l("noDataAvailable") || "No data available"}
3835
3835
  </td>
3836
- `, yn.appendChild(R), i(0);
3836
+ `, Pn.appendChild(R), i(0);
3837
3837
  return;
3838
3838
  }
3839
3839
  const F = cn().find(
@@ -3852,13 +3852,13 @@ async function ba({
3852
3852
  Tn.className = "wgt:w-full wgt:justify-between wgt:inline-flex wgt:items-center wgt:border wgt:border-soft-200 wgt:rounded-lg wgt:@max-2xl:w-full wgt:@max-2xl:max-w-[200px] wgt:@max-2xl:mx-auto";
3853
3853
  const Cn = document.createElement("button");
3854
3854
  Cn.type = "button", Cn.ariaLabel = l("decrease"), Cn.disabled = !0, Cn.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-2xl:h-12 wgt:@max-2xl:w-12 wgt:@max-2xl:text-lg wgt:@max-2xl:font-bold", Cn.innerText = "–", Cn.addEventListener("click", () => {
3855
- r > 1 && (r -= 1, Pn());
3855
+ r > 1 && (r -= 1, yn());
3856
3856
  }), Tn.appendChild(Cn);
3857
3857
  const xn = document.createElement("span");
3858
3858
  xn.className = "wgt:max-w-10 wgt:text-center wgt:text-sm wgt:font-medium wgt:text-text-black wgt:focus:outline-none wgt:@max-2xl:text-lg wgt:@max-2xl:min-w-[60px] wgt:@max-2xl:font-semibold", xn.innerText = r, Tn.appendChild(xn);
3859
3859
  const dn = document.createElement("button");
3860
3860
  dn.type = "button", dn.ariaLabel = l("increase"), dn.disabled = !0, dn.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-2xl:h-12 wgt:@max-2xl:w-12 wgt:@max-2xl:text-lg wgt:@max-2xl:font-bold", dn.innerText = "+", dn.addEventListener("click", () => {
3861
- r += 1, Pn();
3861
+ r += 1, yn();
3862
3862
  }), Tn.appendChild(dn), Nn.appendChild(Tn), R.appendChild(Nn);
3863
3863
  const on = document.createElement("td");
3864
3864
  on.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-2xl:hidden", on.innerText = kn(X[0]?.price) + " VND", R.appendChild(on);
@@ -3878,7 +3878,7 @@ async function ba({
3878
3878
  X[0]?.price * r
3879
3879
  )} VND</span>
3880
3880
  </div>
3881
- `, tn.appendChild(Mn), yn.appendChild(R);
3881
+ `, tn.appendChild(Mn), Pn.appendChild(R);
3882
3882
  }
3883
3883
  {
3884
3884
  const R = Ln(v);
@@ -3897,13 +3897,13 @@ async function ba({
3897
3897
  xn.type = "button", xn.ariaLabel = l("decrease");
3898
3898
  const dn = k ? R?.price ?? 0 : R?.renewPrice ?? 0;
3899
3899
  xn.disabled = m <= 1 || dn === 0, xn.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-2xl:h-12 wgt:@max-2xl:w-12 wgt:@max-2xl:text-lg wgt:@max-2xl:font-bold", xn.innerText = "–", xn.addEventListener("click", () => {
3900
- m > 1 && (m -= 1, Pn());
3900
+ m > 1 && (m -= 1, yn());
3901
3901
  }), Cn.appendChild(xn);
3902
3902
  const on = document.createElement("span");
3903
3903
  on.className = "wgt:max-w-10 wgt:text-center wgt:text-sm wgt:font-medium wgt:text-text-black wgt:focus:outline-none wgt:@max-2xl:text-lg wgt:@max-2xl:min-w-[60px] wgt:@max-2xl:font-semibold", on.innerText = dn === 0 ? 1 : m, Cn.appendChild(on);
3904
3904
  const pn = document.createElement("button");
3905
3905
  pn.type = "button", pn.ariaLabel = l("increase"), pn.disabled = R?.price === 0, pn.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-2xl:h-12 wgt:@max-2xl:w-12 wgt:@max-2xl:text-lg wgt:@max-2xl:font-bold", pn.innerText = "+", pn.addEventListener("click", () => {
3906
- dn !== 0 && (m += 1, Pn());
3906
+ dn !== 0 && (m += 1, yn());
3907
3907
  }), Cn.appendChild(pn), Tn.appendChild(Cn), tn.appendChild(Tn);
3908
3908
  const Mn = document.createElement("td");
3909
3909
  Mn.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-2xl:hidden", Mn.innerText = kn(dn * R?.limit) + " VND", tn.appendChild(Mn);
@@ -3923,7 +3923,7 @@ async function ba({
3923
3923
  dn * R?.limit * m
3924
3924
  )} VND</span>
3925
3925
  </div>
3926
- `, qn.appendChild(S), yn.appendChild(tn);
3926
+ `, qn.appendChild(S), Pn.appendChild(tn);
3927
3927
  }
3928
3928
  }
3929
3929
  {
@@ -3942,13 +3942,13 @@ async function ba({
3942
3942
  Cn.className = "wgt:w-full wgt:justify-between wgt:inline-flex wgt:items-center wgt:border wgt:border-soft-200 wgt:rounded-lg wgt:@max-2xl:w-full wgt:@max-2xl:max-w-[200px] wgt:@max-2xl:mx-auto";
3943
3943
  const xn = document.createElement("button");
3944
3944
  xn.type = "button", xn.ariaLabel = l("decrease"), xn.disabled = f <= 1, xn.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-2xl:h-12 wgt:@max-2xl:w-12 wgt:@max-2xl:text-lg wgt:@max-2xl:font-bold" + (f <= 1 ? " wgt:cursor-not-allowed wgt:opacity-50" : ""), xn.innerText = "–", xn.addEventListener("click", () => {
3945
- f > 1 && (f -= 1, Pn());
3945
+ f > 1 && (f -= 1, yn());
3946
3946
  }), Cn.appendChild(xn);
3947
3947
  const dn = document.createElement("span");
3948
3948
  dn.className = "wgt:max-w-10 wgt:text-center wgt:text-sm wgt:font-medium wgt:text-text-black wgt:focus:outline-none wgt:@max-2xl:text-lg wgt:@max-2xl:min-w-[60px] wgt:@max-2xl:font-semibold", dn.innerText = f, Cn.appendChild(dn);
3949
3949
  const on = document.createElement("button");
3950
3950
  on.type = "button", on.ariaLabel = l("increase"), on.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-2xl:h-12 wgt:@max-2xl:w-12 wgt:@max-2xl:text-lg wgt:@max-2xl:font-bold", on.innerText = "+", on.addEventListener("click", () => {
3951
- f += 1, Pn();
3951
+ f += 1, yn();
3952
3952
  }), Cn.appendChild(on), Tn.appendChild(Cn), tn.appendChild(Tn);
3953
3953
  const pn = document.createElement("td");
3954
3954
  pn.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-2xl:hidden", pn.innerText = kn(R?.limit * R?.price) + " VND", tn.appendChild(pn);
@@ -3968,7 +3968,7 @@ async function ba({
3968
3968
  R?.limit * R?.price * f
3969
3969
  )} VND</span>
3970
3970
  </div>
3971
- `, qn.appendChild(V), yn.appendChild(tn);
3971
+ `, qn.appendChild(V), Pn.appendChild(tn);
3972
3972
  }
3973
3973
  }
3974
3974
  const hn = L.map(
@@ -3994,7 +3994,7 @@ async function ba({
3994
3994
  R?.reward?.discountAmount
3995
3995
  )} VND`, Tn.style.color = "#F04438", un += R?.reward?.discountAmount) : R?.type === "free_item" ? (Tn.innerText = `+${R?.reward?.packageCodes?.length} ${l(
3996
3996
  "package"
3997
- )} ${R?.reward?.packageCodes?.join(", ")}`, Tn.style.color = "#12B76A") : Tn.innerText = "", tn.appendChild(Tn), yn.appendChild(tn);
3997
+ )} ${R?.reward?.packageCodes?.join(", ")}`, Tn.style.color = "#12B76A") : Tn.innerText = "", tn.appendChild(Tn), Pn.appendChild(tn);
3998
3998
  });
3999
3999
  const nn = !B && X.length > 0 && !F?.withoutInitialFee ? X[0]?.price * r : 0, mn = Ln(v), an = mn ? B ? mn.renewPrice ?? 0 : mn.price ?? 0 : 0, en = mn ? an * mn.limit * m : 0, j = M(b), An = j ? j.price * j.limit * f : 0, rn = nn + en + An, fn = Math.min(un, rn), Bn = Math.max(rn - fn, 0);
4000
4000
  i(Bn);
@@ -4004,7 +4004,7 @@ async function ba({
4004
4004
  const tn = document.createElement("td");
4005
4005
  tn.colSpan = 4, tn.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", tn.innerText = l("total"), R.appendChild(tn);
4006
4006
  const qn = document.createElement("td");
4007
- qn.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-3 wgt:text-left wgt:text-base wgt:font-semibold wgt:text-strong-950", qn.innerText = kn(Bn) + " VND", R.appendChild(qn), yn.appendChild(R);
4007
+ qn.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-3 wgt:text-left wgt:text-base wgt:font-semibold wgt:text-strong-950", qn.innerText = kn(Bn) + " VND", R.appendChild(qn), Pn.appendChild(R);
4008
4008
  }
4009
4009
  Yn.innerText = kn(Bn) + " VND";
4010
4010
  }
@@ -4055,8 +4055,8 @@ function Va({
4055
4055
  )}: <span class="wgt:font-medium">${c}</span>`, H.appendChild(w), g.appendChild(H), q.appendChild(g), i.appendChild(q);
4056
4056
  const B = document.createElement("div");
4057
4057
  B.className = "wgt:flex wgt:flex-col wgt:justify-between wgt:@min-2xl:w-1/2";
4058
- const P = document.createElement("div"), N = document.createElement("h3");
4059
- N.className = "wgt:text-lg wgt:font-semibold wgt:text-gray-800 wgt:mb-4", N.innerText = l("paymentInstructionsTitle"), P.appendChild(N);
4058
+ const y = document.createElement("div"), N = document.createElement("h3");
4059
+ N.className = "wgt:text-lg wgt:font-semibold wgt:text-gray-800 wgt:mb-4", N.innerText = l("paymentInstructionsTitle"), y.appendChild(N);
4060
4060
  const C = document.createElement("ol");
4061
4061
  C.className = "wgt:space-y-4", A.forEach((b, L) => {
4062
4062
  const E = document.createElement("li");
@@ -4069,11 +4069,11 @@ function Va({
4069
4069
  W.className = "wgt:text-white wgt:text-sm wgt:font-semibold", W.innerText = String(L + 1), G.appendChild(W), X.appendChild(G);
4070
4070
  const _ = document.createElement("p");
4071
4071
  _.className = "wgt:ml-3 wgt:text-text-sub-600", _.innerText = b, E.appendChild(X), E.appendChild(_), C.appendChild(E);
4072
- }), P.appendChild(C), B.appendChild(P);
4073
- const y = document.createElement("div");
4074
- y.className = "wgt:h-[300px] wgt:flex wgt:justify-center";
4072
+ }), y.appendChild(C), B.appendChild(y);
4073
+ const P = document.createElement("div");
4074
+ P.className = "wgt:h-[300px] wgt:flex wgt:justify-center";
4075
4075
  const v = document.createElement("img");
4076
- return v.src = u, v.alt = "QR payment illustration", v.className = "wgt:h-full wgt:object-contain", y.appendChild(v), B.appendChild(y), i.appendChild(B), {
4076
+ return v.src = u, v.alt = "QR payment illustration", v.className = "wgt:h-full wgt:object-contain", P.appendChild(v), B.appendChild(P), i.appendChild(B), {
4077
4077
  container: i,
4078
4078
  update(b = {}) {
4079
4079
  b.qrSrc != null && (x.src = b.qrSrc), b.logos && (I.innerHTML = "", b.logos.forEach((L) => {
@@ -4177,14 +4177,14 @@ function Da({
4177
4177
  w.className = "wgt:p-6 wgt:w-full wgt:flex wgt:flex-col wgt:gap-10 wgt:shadow-[0px_2px_6px_0px_rgba(31,34,41,0.04)]";
4178
4178
  const B = document.createElement("div");
4179
4179
  B.className = "wgt:w-full wgt:flex wgt:flex-col wgt:gap-4";
4180
- const P = document.createElement("h2");
4181
- P.className = "wgt:text-xl wgt:font-semibold wgt:leading-6 wgt:text-black", P.innerText = l("orderInfo"), B.appendChild(P);
4180
+ const y = document.createElement("h2");
4181
+ y.className = "wgt:text-xl wgt:font-semibold wgt:leading-6 wgt:text-black", y.innerText = l("orderInfo"), B.appendChild(y);
4182
4182
  const N = document.createElement("div");
4183
4183
  N.className = "wgt:w-full wgt:flex wgt:items-center wgt:justify-between";
4184
4184
  const C = document.createElement("h4");
4185
4185
  C.className = "wgt:text-sm wgt:font-normal wgt:leading-5 wgt:text-[#475467]", C.innerText = l("provider");
4186
- const y = document.createElement("img");
4187
- n?.logoUrl && (y.src = n.logoUrl, y.alt = n.name, y.className = "wgt:h-6 wgt:object-contain"), N.appendChild(C), N.appendChild(y), B.appendChild(N);
4186
+ const P = document.createElement("img");
4187
+ n?.logoUrl && (P.src = n.logoUrl, P.alt = n.name, P.className = "wgt:h-6 wgt:object-contain"), N.appendChild(C), N.appendChild(P), B.appendChild(N);
4188
4188
  const v = document.createElement("div");
4189
4189
  v.className = "wgt:w-full wgt:flex wgt:items-center wgt:justify-between";
4190
4190
  const b = document.createElement("h4");
@@ -4996,9 +4996,9 @@ function xh() {
4996
4996
  }
4997
4997
  }, St;
4998
4998
  }
4999
- var a0 = {}, Pt = {}, K0;
4999
+ var a0 = {}, yt = {}, K0;
5000
5000
  function Fa() {
5001
- if (K0) return Pt;
5001
+ if (K0) return yt;
5002
5002
  K0 = 1;
5003
5003
  const n = new Uint8Array(512), t = new Uint8Array(256);
5004
5004
  return function() {
@@ -5007,14 +5007,14 @@ function Fa() {
5007
5007
  n[h] = a, t[a] = h, a <<= 1, a & 256 && (a ^= 285);
5008
5008
  for (let h = 255; h < 512; h++)
5009
5009
  n[h] = n[h - 255];
5010
- }(), Pt.log = function(a) {
5010
+ }(), yt.log = function(a) {
5011
5011
  if (a < 1) throw new Error("log(" + a + ")");
5012
5012
  return t[a];
5013
- }, Pt.exp = function(a) {
5013
+ }, yt.exp = function(a) {
5014
5014
  return n[a];
5015
- }, Pt.mul = function(a, h) {
5015
+ }, yt.mul = function(a, h) {
5016
5016
  return a === 0 || h === 0 ? 0 : n[t[a] + t[h]];
5017
- }, Pt;
5017
+ }, yt;
5018
5018
  }
5019
5019
  var O0;
5020
5020
  function Ra() {
@@ -5528,10 +5528,10 @@ function ac() {
5528
5528
  function x(H, k) {
5529
5529
  const p = {}, w = { start: {} };
5530
5530
  let B = ["start"];
5531
- for (let P = 0; P < H.length; P++) {
5532
- const N = H[P], C = [];
5533
- for (let y = 0; y < N.length; y++) {
5534
- const v = N[y], b = "" + P + y;
5531
+ for (let y = 0; y < H.length; y++) {
5532
+ const N = H[y], C = [];
5533
+ for (let P = 0; P < N.length; P++) {
5534
+ const v = N[P], b = "" + y + P;
5535
5535
  C.push(b), p[b] = { node: v, lastCount: 0 }, w[b] = {};
5536
5536
  for (let L = 0; L < B.length; L++) {
5537
5537
  const E = B[L];
@@ -5540,8 +5540,8 @@ function ac() {
5540
5540
  }
5541
5541
  B = C;
5542
5542
  }
5543
- for (let P = 0; P < B.length; P++)
5544
- w[B[P]].end = 0;
5543
+ for (let y = 0; y < B.length; y++)
5544
+ w[B[y]].end = 0;
5545
5545
  return { map: w, table: p };
5546
5546
  }
5547
5547
  function I(H, k) {
@@ -5566,9 +5566,9 @@ function ac() {
5566
5566
  return typeof w == "string" ? p.push(I(w, null)) : w.data && p.push(I(w.data, w.mode)), p;
5567
5567
  }, []);
5568
5568
  }, n.fromString = function(k, p) {
5569
- const w = T(k, u.isKanjiModeEnabled()), B = d(w), P = x(B, p), N = o.find_path(P.map, "start", "end"), C = [];
5570
- for (let y = 1; y < N.length - 1; y++)
5571
- C.push(P.table[N[y]].node);
5569
+ const w = T(k, u.isKanjiModeEnabled()), B = d(w), y = x(B, p), N = o.find_path(y.map, "start", "end"), C = [];
5570
+ for (let P = 1; P < N.length - 1; P++)
5571
+ C.push(y.table[N[P]].node);
5572
5572
  return n.fromArray(s(C));
5573
5573
  }, n.rawSplit = function(k) {
5574
5574
  return n.fromArray(
@@ -5582,85 +5582,85 @@ function cc() {
5582
5582
  if (th) return jt;
5583
5583
  th = 1;
5584
5584
  const n = xt(), t = C0(), e = Oa(), a = Ya(), h = Ga(), c = Wa(), A = za(), u = xh(), o = Za(), i = ja(), q = Ua(), T = dt(), g = ac();
5585
- function s(P, N) {
5586
- const C = P.size, y = c.getPositions(N);
5587
- for (let v = 0; v < y.length; v++) {
5588
- const b = y[v][0], L = y[v][1];
5585
+ function s(y, N) {
5586
+ const C = y.size, P = c.getPositions(N);
5587
+ for (let v = 0; v < P.length; v++) {
5588
+ const b = P[v][0], L = P[v][1];
5589
5589
  for (let E = -1; E <= 7; E++)
5590
5590
  if (!(b + E <= -1 || C <= b + E))
5591
5591
  for (let X = -1; X <= 7; X++)
5592
- L + X <= -1 || C <= L + X || (E >= 0 && E <= 6 && (X === 0 || X === 6) || X >= 0 && X <= 6 && (E === 0 || E === 6) || E >= 2 && E <= 4 && X >= 2 && X <= 4 ? P.set(b + E, L + X, !0, !0) : P.set(b + E, L + X, !1, !0));
5592
+ L + X <= -1 || C <= L + X || (E >= 0 && E <= 6 && (X === 0 || X === 6) || X >= 0 && X <= 6 && (E === 0 || E === 6) || E >= 2 && E <= 4 && X >= 2 && X <= 4 ? y.set(b + E, L + X, !0, !0) : y.set(b + E, L + X, !1, !0));
5593
5593
  }
5594
5594
  }
5595
- function d(P) {
5596
- const N = P.size;
5595
+ function d(y) {
5596
+ const N = y.size;
5597
5597
  for (let C = 8; C < N - 8; C++) {
5598
- const y = C % 2 === 0;
5599
- P.set(C, 6, y, !0), P.set(6, C, y, !0);
5598
+ const P = C % 2 === 0;
5599
+ y.set(C, 6, P, !0), y.set(6, C, P, !0);
5600
5600
  }
5601
5601
  }
5602
- function x(P, N) {
5602
+ function x(y, N) {
5603
5603
  const C = h.getPositions(N);
5604
- for (let y = 0; y < C.length; y++) {
5605
- const v = C[y][0], b = C[y][1];
5604
+ for (let P = 0; P < C.length; P++) {
5605
+ const v = C[P][0], b = C[P][1];
5606
5606
  for (let L = -2; L <= 2; L++)
5607
5607
  for (let E = -2; E <= 2; E++)
5608
- L === -2 || L === 2 || E === -2 || E === 2 || L === 0 && E === 0 ? P.set(v + L, b + E, !0, !0) : P.set(v + L, b + E, !1, !0);
5608
+ L === -2 || L === 2 || E === -2 || E === 2 || L === 0 && E === 0 ? y.set(v + L, b + E, !0, !0) : y.set(v + L, b + E, !1, !0);
5609
5609
  }
5610
5610
  }
5611
- function I(P, N) {
5612
- const C = P.size, y = i.getEncodedBits(N);
5611
+ function I(y, N) {
5612
+ const C = y.size, P = i.getEncodedBits(N);
5613
5613
  let v, b, L;
5614
5614
  for (let E = 0; E < 18; E++)
5615
- v = Math.floor(E / 3), b = E % 3 + C - 8 - 3, L = (y >> E & 1) === 1, P.set(v, b, L, !0), P.set(b, v, L, !0);
5615
+ v = Math.floor(E / 3), b = E % 3 + C - 8 - 3, L = (P >> E & 1) === 1, y.set(v, b, L, !0), y.set(b, v, L, !0);
5616
5616
  }
5617
- function H(P, N, C) {
5618
- const y = P.size, v = q.getEncodedBits(N, C);
5617
+ function H(y, N, C) {
5618
+ const P = y.size, v = q.getEncodedBits(N, C);
5619
5619
  let b, L;
5620
5620
  for (b = 0; b < 15; b++)
5621
- L = (v >> b & 1) === 1, b < 6 ? P.set(b, 8, L, !0) : b < 8 ? P.set(b + 1, 8, L, !0) : P.set(y - 15 + b, 8, L, !0), b < 8 ? P.set(8, y - b - 1, L, !0) : b < 9 ? P.set(8, 15 - b - 1 + 1, L, !0) : P.set(8, 15 - b - 1, L, !0);
5622
- P.set(y - 8, 8, 1, !0);
5621
+ L = (v >> b & 1) === 1, b < 6 ? y.set(b, 8, L, !0) : b < 8 ? y.set(b + 1, 8, L, !0) : y.set(P - 15 + b, 8, L, !0), b < 8 ? y.set(8, P - b - 1, L, !0) : b < 9 ? y.set(8, 15 - b - 1 + 1, L, !0) : y.set(8, 15 - b - 1, L, !0);
5622
+ y.set(P - 8, 8, 1, !0);
5623
5623
  }
5624
- function k(P, N) {
5625
- const C = P.size;
5626
- let y = -1, v = C - 1, b = 7, L = 0;
5624
+ function k(y, N) {
5625
+ const C = y.size;
5626
+ let P = -1, v = C - 1, b = 7, L = 0;
5627
5627
  for (let E = C - 1; E > 0; E -= 2)
5628
5628
  for (E === 6 && E--; ; ) {
5629
5629
  for (let X = 0; X < 2; X++)
5630
- if (!P.isReserved(v, E - X)) {
5630
+ if (!y.isReserved(v, E - X)) {
5631
5631
  let G = !1;
5632
- L < N.length && (G = (N[L] >>> b & 1) === 1), P.set(v, E - X, G), b--, b === -1 && (L++, b = 7);
5632
+ L < N.length && (G = (N[L] >>> b & 1) === 1), y.set(v, E - X, G), b--, b === -1 && (L++, b = 7);
5633
5633
  }
5634
- if (v += y, v < 0 || C <= v) {
5635
- v -= y, y = -y;
5634
+ if (v += P, v < 0 || C <= v) {
5635
+ v -= P, P = -P;
5636
5636
  break;
5637
5637
  }
5638
5638
  }
5639
5639
  }
5640
- function p(P, N, C) {
5641
- const y = new e();
5640
+ function p(y, N, C) {
5641
+ const P = new e();
5642
5642
  C.forEach(function(X) {
5643
- y.put(X.mode.bit, 4), y.put(X.getLength(), T.getCharCountIndicator(X.mode, P)), X.write(y);
5643
+ P.put(X.mode.bit, 4), P.put(X.getLength(), T.getCharCountIndicator(X.mode, y)), X.write(P);
5644
5644
  });
5645
- const v = n.getSymbolTotalCodewords(P), b = u.getTotalCodewordsCount(P, N), L = (v - b) * 8;
5646
- for (y.getLengthInBits() + 4 <= L && y.put(0, 4); y.getLengthInBits() % 8 !== 0; )
5647
- y.putBit(0);
5648
- const E = (L - y.getLengthInBits()) / 8;
5645
+ const v = n.getSymbolTotalCodewords(y), b = u.getTotalCodewordsCount(y, N), L = (v - b) * 8;
5646
+ for (P.getLengthInBits() + 4 <= L && P.put(0, 4); P.getLengthInBits() % 8 !== 0; )
5647
+ P.putBit(0);
5648
+ const E = (L - P.getLengthInBits()) / 8;
5649
5649
  for (let X = 0; X < E; X++)
5650
- y.put(X % 2 ? 17 : 236, 8);
5651
- return w(y, P, N);
5650
+ P.put(X % 2 ? 17 : 236, 8);
5651
+ return w(P, y, N);
5652
5652
  }
5653
- function w(P, N, C) {
5654
- const y = n.getSymbolTotalCodewords(N), v = u.getTotalCodewordsCount(N, C), b = y - v, L = u.getBlocksCount(N, C), E = y % L, X = L - E, G = Math.floor(y / L), W = Math.floor(b / L), _ = W + 1, r = G - W, m = new o(r);
5653
+ function w(y, N, C) {
5654
+ const P = n.getSymbolTotalCodewords(N), v = u.getTotalCodewordsCount(N, C), b = P - v, L = u.getBlocksCount(N, C), E = P % L, X = L - E, G = Math.floor(P / L), W = Math.floor(b / L), _ = W + 1, r = G - W, m = new o(r);
5655
5655
  let f = 0;
5656
5656
  const Q = new Array(L), J = new Array(L);
5657
5657
  let M = 0;
5658
- const D = new Uint8Array(P.buffer);
5658
+ const D = new Uint8Array(y.buffer);
5659
5659
  for (let sn = 0; sn < L; sn++) {
5660
5660
  const K = sn < X ? W : _;
5661
5661
  Q[sn] = D.slice(f, f + K), J[sn] = m.encode(Q[sn]), f += K, M = Math.max(M, K);
5662
5662
  }
5663
- const O = new Uint8Array(y);
5663
+ const O = new Uint8Array(P);
5664
5664
  let Z = 0, z, U;
5665
5665
  for (z = 0; z < M; z++)
5666
5666
  for (U = 0; U < L; U++)
@@ -5670,17 +5670,17 @@ function cc() {
5670
5670
  O[Z++] = J[U][z];
5671
5671
  return O;
5672
5672
  }
5673
- function B(P, N, C, y) {
5673
+ function B(y, N, C, P) {
5674
5674
  let v;
5675
- if (Array.isArray(P))
5676
- v = g.fromArray(P);
5677
- else if (typeof P == "string") {
5675
+ if (Array.isArray(y))
5676
+ v = g.fromArray(y);
5677
+ else if (typeof y == "string") {
5678
5678
  let G = N;
5679
5679
  if (!G) {
5680
- const W = g.rawSplit(P);
5680
+ const W = g.rawSplit(y);
5681
5681
  G = i.getBestVersionForData(W, C);
5682
5682
  }
5683
- v = g.fromString(P, G || 40);
5683
+ v = g.fromString(y, G || 40);
5684
5684
  } else
5685
5685
  throw new Error("Invalid data");
5686
5686
  const b = i.getBestVersionForData(v, C);
@@ -5696,22 +5696,22 @@ Minimum version required to store current data is: ` + b + `.
5696
5696
  `
5697
5697
  );
5698
5698
  const L = p(N, C, v), E = n.getSymbolSize(N), X = new a(E);
5699
- return s(X, N), d(X), x(X, N), H(X, C, 0), N >= 7 && I(X, N), k(X, L), isNaN(y) && (y = A.getBestMask(
5699
+ return s(X, N), d(X), x(X, N), H(X, C, 0), N >= 7 && I(X, N), k(X, L), isNaN(P) && (P = A.getBestMask(
5700
5700
  X,
5701
5701
  H.bind(null, X, C)
5702
- )), A.applyMask(y, X), H(X, C, y), {
5702
+ )), A.applyMask(P, X), H(X, C, P), {
5703
5703
  modules: X,
5704
5704
  version: N,
5705
5705
  errorCorrectionLevel: C,
5706
- maskPattern: y,
5706
+ maskPattern: P,
5707
5707
  segments: v
5708
5708
  };
5709
5709
  }
5710
5710
  return jt.create = function(N, C) {
5711
5711
  if (typeof N > "u" || N === "")
5712
5712
  throw new Error("No input text");
5713
- let y = t.M, v, b;
5714
- return typeof C < "u" && (y = t.from(C.errorCorrectionLevel, t.M), v = i.from(C.version), b = A.from(C.maskPattern), C.toSJISFunc && n.setToSJISFunction(C.toSJISFunc)), B(N, v, y, b);
5713
+ let P = t.M, v, b;
5714
+ return typeof C < "u" && (P = t.from(C.errorCorrectionLevel, t.M), v = i.from(C.version), b = A.from(C.maskPattern), C.toSJISFunc && n.setToSJISFunction(C.toSJISFunc)), B(N, v, P, b);
5715
5715
  }, jt;
5716
5716
  }
5717
5717
  var r0 = {}, T0 = {}, hh;
@@ -6058,24 +6058,24 @@ function lc({
6058
6058
  "focus",
6059
6059
  () => w.style.outline = "none"
6060
6060
  ), w.addEventListener("click", () => L()), u.appendChild(w);
6061
- let B = !1, P = !1;
6061
+ let B = !1, y = !1;
6062
6062
  const N = (E) => {
6063
6063
  E.target === A && !e && L();
6064
6064
  }, C = (E) => {
6065
6065
  E.key === "Escape" && !e && L();
6066
6066
  };
6067
- function y() {
6067
+ function P() {
6068
6068
  A.addEventListener("click", N), window.addEventListener("keydown", C);
6069
6069
  }
6070
6070
  function v() {
6071
6071
  A.removeEventListener("click", N), window.removeEventListener("keydown", C);
6072
6072
  }
6073
6073
  function b() {
6074
- B || (B = !0, document.body.appendChild(A), A.style.display = "flex", setTimeout(() => w.focus(), 0), y());
6074
+ B || (B = !0, document.body.appendChild(A), A.style.display = "flex", setTimeout(() => w.focus(), 0), P());
6075
6075
  }
6076
6076
  function L() {
6077
- if (!(!B || P)) {
6078
- P = !0, B = !1, v();
6077
+ if (!(!B || y)) {
6078
+ y = !0, B = !1, v();
6079
6079
  try {
6080
6080
  A.remove();
6081
6081
  } catch {
@@ -6107,13 +6107,13 @@ async function rc({
6107
6107
  const B = document.createElement("div");
6108
6108
  B.className = "wgt:flex wgt:flex-col wgt:gap-6 wgt:relative";
6109
6109
  const {
6110
- container: P,
6110
+ container: y,
6111
6111
  open: N,
6112
6112
  close: C
6113
6113
  } = Yt();
6114
- B.appendChild(P);
6115
- const y = document.createElement("div");
6116
- y.className = "wgt:w-full wgt:flex wgt:items-start wgt:gap-6 wgt:@max-2xl:flex-col-reverse";
6114
+ B.appendChild(y);
6115
+ const P = document.createElement("div");
6116
+ P.className = "wgt:w-full wgt:flex wgt:items-start wgt:gap-6 wgt:@max-2xl:flex-col-reverse";
6117
6117
  const v = document.createElement("div");
6118
6118
  v.className = "wgt:flex-1 wgt:@max-2xl:w-full";
6119
6119
  let b, L;
@@ -6126,7 +6126,7 @@ async function rc({
6126
6126
  },
6127
6127
  onFreeOrderConfirmed: () => {
6128
6128
  try {
6129
- yt.freeOrderConfirmed({
6129
+ Pt.freeOrderConfirmed({
6130
6130
  orderId: q,
6131
6131
  totalAmount: d,
6132
6132
  orderAmount: d,
@@ -6140,10 +6140,10 @@ async function rc({
6140
6140
  }
6141
6141
  });
6142
6142
  function X() {
6143
- if (y.innerHTML = "", v.innerHTML = "", s)
6144
- y.className = "wgt:w-full wgt:flex wgt:items-center wgt:justify-center wgt:min-h-[400px]", y.appendChild(E);
6143
+ if (P.innerHTML = "", v.innerHTML = "", s)
6144
+ P.className = "wgt:w-full wgt:flex wgt:items-center wgt:justify-center wgt:min-h-[400px]", P.appendChild(E);
6145
6145
  else {
6146
- y.className = "wgt:w-full wgt:flex wgt:items-start wgt:gap-6 wgt:@max-2xl:flex-col-reverse";
6146
+ P.className = "wgt:w-full wgt:flex wgt:items-start wgt:gap-6 wgt:@max-2xl:flex-col-reverse";
6147
6147
  const f = Sa({
6148
6148
  qrSrc: "",
6149
6149
  accountName: "",
@@ -6153,10 +6153,10 @@ async function rc({
6153
6153
  instructions: l("paymentInstructions"),
6154
6154
  theme: A
6155
6155
  });
6156
- b = f.container, L = f.update, v.appendChild(b), y.appendChild(v), y.appendChild(E);
6156
+ b = f.container, L = f.update, v.appendChild(b), P.appendChild(v), P.appendChild(E);
6157
6157
  }
6158
6158
  }
6159
- B.appendChild(y);
6159
+ B.appendChild(P);
6160
6160
  const G = document.createElement("div");
6161
6161
  G.className = "wgt:flex wgt:items-center wgt:justify-between wgt:gap-2";
6162
6162
  const W = document.createElement("button");
@@ -6177,7 +6177,7 @@ async function rc({
6177
6177
  theme: A
6178
6178
  }), s)
6179
6179
  try {
6180
- yt.freeOrderDetected({
6180
+ Pt.freeOrderDetected({
6181
6181
  orderId: q,
6182
6182
  totalAmount: d,
6183
6183
  orderAmount: d,
@@ -6207,7 +6207,7 @@ async function rc({
6207
6207
  margin: 1,
6208
6208
  width: 200,
6209
6209
  color: { dark: "#000000", light: "#ffffff" }
6210
- }), y0.success({
6210
+ }), P0.success({
6211
6211
  orderId: f ?? h?.orderId,
6212
6212
  amount: d,
6213
6213
  qrUrl: "dataurl",
@@ -6223,7 +6223,7 @@ async function rc({
6223
6223
  }), m();
6224
6224
  } catch (Q) {
6225
6225
  if (Q.response?.data?.error_code === "BILL_ID_EXISTED") {
6226
- if (g++, y0.failed({
6226
+ if (g++, P0.failed({
6227
6227
  orderId: f ?? h?.orderId,
6228
6228
  amount: d,
6229
6229
  errorCode: "BILL_ID_EXISTED",
@@ -6261,7 +6261,7 @@ async function rc({
6261
6261
  const f = await Jh(q);
6262
6262
  if (f.paymentStatus === "pending") return;
6263
6263
  if (f.paymentStatus === "wrong_amount") {
6264
- clearInterval(i), i = null, yt.wrongAmount({
6264
+ clearInterval(i), i = null, Pt.wrongAmount({
6265
6265
  orderId: q,
6266
6266
  expectedAmount: d,
6267
6267
  receivedAmount: f?.receivedAmount ?? f?.amount ?? null,
@@ -6269,7 +6269,7 @@ async function rc({
6269
6269
  paymentMethod: I,
6270
6270
  provider: x,
6271
6271
  theme: A
6272
- }), P0.stopped({
6272
+ }), y0.stopped({
6273
6273
  orderId: q,
6274
6274
  reason: "wrong_amount",
6275
6275
  duration: p ? Math.round((Date.now() - p) / 1e3) : null,
@@ -6285,7 +6285,7 @@ async function rc({
6285
6285
  }
6286
6286
  clearInterval(i), i = null;
6287
6287
  const Q = k ? Math.round((Date.now() - k) / 1e3) : null;
6288
- f.paymentStatus === "paid" ? yt.success({
6288
+ f.paymentStatus === "paid" ? Pt.success({
6289
6289
  orderId: q,
6290
6290
  amount: d,
6291
6291
  transactionId: f?.transactionId || f?.transaction_id,
@@ -6293,7 +6293,7 @@ async function rc({
6293
6293
  provider: x,
6294
6294
  theme: A,
6295
6295
  duration: Q
6296
- }) : yt.failed({
6296
+ }) : Pt.failed({
6297
6297
  orderId: q,
6298
6298
  amount: d,
6299
6299
  errorCode: f?.errorCode || f?.error_code,
@@ -6302,7 +6302,7 @@ async function rc({
6302
6302
  provider: x,
6303
6303
  theme: A,
6304
6304
  failureReason: f.paymentStatus
6305
- }), P0.stopped({
6305
+ }), y0.stopped({
6306
6306
  orderId: q,
6307
6307
  reason: f.paymentStatus,
6308
6308
  duration: p ? Math.round((Date.now() - p) / 1e3) : null,
@@ -6388,8 +6388,8 @@ function Tc({
6388
6388
  w.innerHTML = `${l("hotlineDomestic")} <b>${p?.hotline || ""}</b> ${l("hotlineDesc")} `, H.appendChild(w);
6389
6389
  const B = document.createElement("div");
6390
6390
  B.className = "wgt:flex wgt:items-center wgt:gap-2 wgt:text-sm wgt:text-strong-950", I.appendChild(B);
6391
- const P = document.createElement("div");
6392
- P.innerHTML = `
6391
+ const y = document.createElement("div");
6392
+ y.innerHTML = `
6393
6393
  <svg
6394
6394
  width="14"
6395
6395
  height="12"
@@ -6405,13 +6405,13 @@ function Tc({
6405
6405
  stroke-linejoin="round"
6406
6406
  />
6407
6407
  </svg>
6408
- `, B.appendChild(P);
6408
+ `, B.appendChild(y);
6409
6409
  const N = document.createElement("span");
6410
6410
  N.innerHTML = `${l("email")}: <b>${p?.email || ""}</b>`, B.appendChild(N);
6411
6411
  const C = document.createElement("div");
6412
6412
  C.className = "wgt:flex wgt:items-center wgt:gap-2 wgt:text-sm wgt:text-strong-950", I.appendChild(C);
6413
- const y = document.createElement("div");
6414
- y.innerHTML = `
6413
+ const P = document.createElement("div");
6414
+ P.innerHTML = `
6415
6415
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
6416
6416
  <g clip-path="url(#clip0_13710_188746)">
6417
6417
  <path fill-rule="evenodd" clip-rule="evenodd" d="M6.13731 2.12193C5.96923 2.17518 5.80323 2.2357 5.63979 2.30339C4.89162 2.6133 4.21181 3.06753 3.63918 3.64016C3.06656 4.21279 2.61232 4.8926 2.30242 5.64077C2.05647 6.23453 1.90526 6.86212 1.85331 7.50065H4.8403C4.86163 6.77005 4.92966 6.05005 5.04272 5.3677C5.18134 4.53104 5.38615 3.76008 5.64982 3.10091C5.79377 2.74103 5.95641 2.41159 6.13731 2.12193ZM7.99968 0.833984C7.05854 0.833984 6.12661 1.01936 5.25711 1.37951C4.38761 1.73967 3.59756 2.26757 2.93208 2.93305C2.26659 3.59854 1.7387 4.38859 1.37854 5.25809C1.01838 6.12759 0.833008 7.05951 0.833008 8.00065C0.833008 8.94179 1.01838 9.87372 1.37854 10.7432C1.7387 11.6127 2.26659 12.4028 2.93208 13.0683C3.59756 13.7337 4.38761 14.2616 5.25711 14.6218C6.12661 14.9819 7.05853 15.1673 7.99967 15.1673C8.94081 15.1673 9.87274 14.9819 10.7422 14.6218C11.6117 14.2616 12.4018 13.7337 13.0673 13.0683C13.7328 12.4028 14.2607 11.6127 14.6208 10.7432C14.981 9.87372 15.1663 8.94179 15.1663 8.00065C15.1663 7.05951 14.981 6.12759 14.6208 5.25809C14.2607 4.38859 13.7328 3.59854 13.0673 2.93305C12.4018 2.26757 11.6117 1.73967 10.7422 1.37951C9.87274 1.01936 8.94081 0.833984 7.99968 0.833984ZM7.99968 1.83398C7.8255 1.83398 7.6005 1.91785 7.33886 2.18878C7.07528 2.46172 6.81142 2.88949 6.5783 3.4723C6.34672 4.05125 6.15867 4.75014 6.02927 5.53116C5.92545 6.15778 5.86178 6.82274 5.84075 7.50065L10.1586 7.50065C10.1376 6.82274 10.0739 6.15778 9.97008 5.53116C9.84068 4.75014 9.65263 4.05125 9.42105 3.4723C9.18793 2.88949 8.92407 2.46172 8.66049 2.18878C8.39885 1.91785 8.17385 1.83398 7.99968 1.83398ZM11.159 7.50065C11.1377 6.77005 11.0697 6.05006 10.9566 5.3677C10.818 4.53104 10.6132 3.76008 10.3495 3.10091C10.2056 2.74103 10.0429 2.41159 9.86203 2.12193C10.0301 2.17518 10.1961 2.2357 10.3596 2.30339C11.1077 2.6133 11.7875 3.06753 12.3602 3.64016C12.9328 4.21279 13.387 4.8926 13.6969 5.64077C13.9429 6.23453 14.0941 6.86212 14.146 7.50065H11.159ZM10.1586 8.50065L5.84075 8.50065C5.86178 9.17857 5.92545 9.84352 6.02927 10.4701C6.15867 11.2512 6.34672 11.9501 6.57829 12.529C6.81142 13.1118 7.07528 13.5396 7.33886 13.8125C7.6005 14.0835 7.8255 14.1673 7.99967 14.1673C8.17385 14.1673 8.39885 14.0835 8.66049 13.8125C8.92407 13.5396 9.18793 13.1118 9.42105 12.529C9.65263 11.9501 9.84068 11.2512 9.97008 10.4701C10.0739 9.84353 10.1376 9.17857 10.1586 8.50065ZM9.86204 13.8794C10.0429 13.5897 10.2056 13.2603 10.3495 12.9004C10.6132 12.2412 10.818 11.4703 10.9566 10.6336C11.0697 9.95125 11.1377 9.23125 11.159 8.50065H14.146C14.0941 9.13919 13.9429 9.76677 13.6969 10.3605C13.387 11.1087 12.9328 11.7885 12.3602 12.3611C11.7875 12.9338 11.1077 13.388 10.3596 13.6979C10.1961 13.7656 10.0301 13.8261 9.86204 13.8794ZM6.13731 13.8794C5.95641 13.5897 5.79377 13.2603 5.64982 12.9004C5.38615 12.2412 5.18134 11.4703 5.04272 10.6336C4.92966 9.95125 4.86163 9.23125 4.8403 8.50065H1.85331C1.90526 9.13918 2.05647 9.76677 2.30242 10.3605C2.61232 11.1087 3.06655 11.7885 3.63918 12.3611C4.21181 12.9338 4.89162 13.388 5.63979 13.6979C5.80323 13.7656 5.96923 13.8261 6.13731 13.8794Z" fill="#1B1B1B"/>
@@ -6422,7 +6422,7 @@ function Tc({
6422
6422
  </clipPath>
6423
6423
  </defs>
6424
6424
  </svg>
6425
- `, C.appendChild(y), C.appendChild(document.createTextNode(l("website") + ": "));
6425
+ `, C.appendChild(P), C.appendChild(document.createTextNode(l("website") + ": "));
6426
6426
  const v = document.createElement("a");
6427
6427
  v.className = "wgt:text-strong-950 wgt:hover:underline wgt:cursor-pointer", v.innerHTML = `<b>${p?.link || ""}</b>`, v.href = p?.link || "#", v.target = "_blank", C.appendChild(v);
6428
6428
  const b = document.createElement("div");
@@ -6586,7 +6586,7 @@ async function Ec({
6586
6586
  A = Array.isArray(x) ? x : Array.isArray(x?.data) ? x.data : [];
6587
6587
  const H = Array.isArray(I) ? I : Array.isArray(I?.data) ? I.data : [];
6588
6588
  for (let k = 0; k < A.length; k++) {
6589
- const p = A[k], w = p?.envelopeId, B = H.find((P) => P?.envelopeId === w);
6589
+ const p = A[k], w = p?.envelopeId, B = H.find((y) => y?.envelopeId === w);
6590
6590
  if (B) {
6591
6591
  if (B.isSigned) continue;
6592
6592
  if (p?.iframeUrl) {
@@ -6650,18 +6650,13 @@ async function Ec({
6650
6650
  for (let p = u + 1; p < A.length; p++) {
6651
6651
  const w = A[p];
6652
6652
  if (!w?.iframeUrl) continue;
6653
- if (!I.find((P) => P?.envelopeId === w?.envelopeId)?.isSigned) {
6653
+ if (!I.find((y) => y?.envelopeId === w?.envelopeId)?.isSigned) {
6654
6654
  k = !0;
6655
6655
  break;
6656
6656
  }
6657
6657
  }
6658
6658
  if (!k) {
6659
6659
  q.id && (clearInterval(q.id), q.id = null);
6660
- try {
6661
- typeof e == "function" ? await e() : t && (window.location.href = t);
6662
- } catch (p) {
6663
- console.error("onCompleteSignature error:", p);
6664
- }
6665
6660
  return;
6666
6661
  }
6667
6662
  T.open = !0, Nc(i, t, e, async () => {
@@ -6730,13 +6725,13 @@ function Hc(n) {
6730
6725
  }
6731
6726
  };
6732
6727
  }
6733
- function yc() {
6728
+ function Pc() {
6734
6729
  const n = document.body.getAttribute("data-app-theme");
6735
6730
  if (n) return n;
6736
6731
  const t = document.body.className;
6737
6732
  return t.includes("bvb") ? "bvb" : t.includes("shb") ? "shb" : t.includes("agr") ? "agr" : t.includes("nama") ? "nama" : "bvb";
6738
6733
  }
6739
- function Pc(n) {
6734
+ function yc(n) {
6740
6735
  return {
6741
6736
  ocb: "#008c44",
6742
6737
  bvb: "#1e2a7b",
@@ -6760,7 +6755,7 @@ function kc({
6760
6755
  } catch {
6761
6756
  }
6762
6757
  });
6763
- const q = yc(), T = Pc(q);
6758
+ const q = Pc(), T = yc(q);
6764
6759
  document.documentElement.style.setProperty("--primary", T), q === "nama" && document.documentElement.style.setProperty(
6765
6760
  "--primary-bg",
6766
6761
  "linear-gradient(180deg, #FFEC72 0%, #FD0 100%)"
@@ -6891,24 +6886,24 @@ function kc({
6891
6886
  }), B.addEventListener("mouseleave", () => {
6892
6887
  B.style.backgroundColor = "white";
6893
6888
  }), B.addEventListener("focus", () => B.style.outline = "none"), p.appendChild(B);
6894
- let P = !1, N = !1;
6889
+ let y = !1, N = !1;
6895
6890
  const C = (X) => {
6896
6891
  X.target === s && !a && E(!1);
6897
- }, y = (X) => {
6892
+ }, P = (X) => {
6898
6893
  X.key === "Escape" && !a && E(!1);
6899
6894
  };
6900
6895
  function v() {
6901
- s.addEventListener("click", C), window.addEventListener("keydown", y), w.addEventListener("click", () => E(!0)), B.addEventListener("click", () => E(!1));
6896
+ s.addEventListener("click", C), window.addEventListener("keydown", P), w.addEventListener("click", () => E(!0)), B.addEventListener("click", () => E(!1));
6902
6897
  }
6903
6898
  function b() {
6904
- s.removeEventListener("click", C), window.removeEventListener("keydown", y);
6899
+ s.removeEventListener("click", C), window.removeEventListener("keydown", P);
6905
6900
  }
6906
6901
  function L() {
6907
- P || (P = !0, document.body.appendChild(s), s.style.display = "flex", setTimeout(() => w.focus(), 0), v());
6902
+ y || (y = !0, document.body.appendChild(s), s.style.display = "flex", setTimeout(() => w.focus(), 0), v());
6908
6903
  }
6909
6904
  function E(X = !1) {
6910
- if (!(!P || N)) {
6911
- N = !0, P = !1, b();
6905
+ if (!(!y || N)) {
6906
+ N = !0, y = !1, b();
6912
6907
  try {
6913
6908
  s.remove();
6914
6909
  } catch {
@@ -6985,8 +6980,8 @@ async function Vc(n, t, e, a, h, c) {
6985
6980
  const A = [
6986
6981
  { name: "1Invoice", route: "one-invoice", logoUrl: Eh },
6987
6982
  { name: "M-Invoice", route: "m-invoice", logoUrl: Hh },
6988
- { name: "Misa", route: "misa", logoUrl: yh },
6989
- { name: "FPT", route: "fpt", logoUrl: Ph },
6983
+ { name: "Misa", route: "misa", logoUrl: Ph },
6984
+ { name: "FPT", route: "fpt", logoUrl: yh },
6990
6985
  { name: "Viettel", route: "viettel", logoUrl: kh }
6991
6986
  ];
6992
6987
  let u = [];
@@ -7050,7 +7045,7 @@ async function Vc(n, t, e, a, h, c) {
7050
7045
  idCardBack: null,
7051
7046
  packages: [],
7052
7047
  promotionCodes: []
7053
- }, p = !0, w = null, B = null, P = null, N = null, C = null, y = 0, v = 0, b = null, L = null, E = null, X = {
7048
+ }, p = !0, w = null, B = null, y = null, N = null, C = null, P = 0, v = 0, b = null, L = null, E = null, X = {
7054
7049
  qtyRegFee: 1,
7055
7050
  qtyInvoicePkg: 1,
7056
7051
  qtySignaturePkg: 1
@@ -7095,7 +7090,7 @@ async function Vc(n, t, e, a, h, c) {
7095
7090
  idCardBack: null,
7096
7091
  packages: [],
7097
7092
  promotionCodes: []
7098
- }, B = null, P = null, N = null, C = null, y = 0, E = null, I.clear(), X = {
7093
+ }, B = null, y = null, N = null, C = null, P = 0, E = null, I.clear(), X = {
7099
7094
  qtyRegFee: 1,
7100
7095
  qtyInvoicePkg: 1,
7101
7096
  qtySignaturePkg: 1
@@ -7248,9 +7243,9 @@ async function Vc(n, t, e, a, h, c) {
7248
7243
  vn(Qn.STEP2_COMPLETED, {
7249
7244
  theme: h,
7250
7245
  provider: H?.route,
7251
- totalAmount: y,
7246
+ totalAmount: P,
7252
7247
  orderAmount: v,
7253
- isFreeOrder: vt(y) === 0 || vt(v) === 0
7248
+ isFreeOrder: vt(P) === 0 || vt(v) === 0
7254
7249
  }), x = 3, s(x, z), f(x), r();
7255
7250
  },
7256
7251
  onPrev: () => {
@@ -7261,7 +7256,7 @@ async function Vc(n, t, e, a, h, c) {
7261
7256
  v = Y;
7262
7257
  },
7263
7258
  setSelectedInitPackage: (Y) => {
7264
- P = Y;
7259
+ y = Y;
7265
7260
  },
7266
7261
  setSelectedInvoiceOtp: (Y) => {
7267
7262
  N = Y;
@@ -7273,7 +7268,7 @@ async function Vc(n, t, e, a, h, c) {
7273
7268
  B = Y;
7274
7269
  },
7275
7270
  setTotalAmount: (Y) => {
7276
- y = Y;
7271
+ P = Y;
7277
7272
  },
7278
7273
  setSelectedPromotions: (Y) => {
7279
7274
  L = Y;
@@ -7284,7 +7279,7 @@ async function Vc(n, t, e, a, h, c) {
7284
7279
  setPromotionCodes: (Y) => {
7285
7280
  k.promotionCodes = Y;
7286
7281
  },
7287
- selectedInitPackage: P,
7282
+ selectedInitPackage: y,
7288
7283
  selectedInvoiceOtp: N,
7289
7284
  selectedSignatureOtp: C,
7290
7285
  selectedPromotions: L,
@@ -7325,7 +7320,7 @@ async function Vc(n, t, e, a, h, c) {
7325
7320
  selectedInvoiceOtp: N || { unitsPerMonth: 0 },
7326
7321
  selectedSignatureOtp: C || { durationYears: 0 },
7327
7322
  selectedPromotions: L,
7328
- totalAmount: y,
7323
+ totalAmount: P,
7329
7324
  totalAmountText: v,
7330
7325
  isRenewal: c,
7331
7326
  isNewCustomer: w,