@invoice-sdk/widget 1.67.7 → 1.67.9

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.
@@ -67,7 +67,7 @@ var V = (A, g, B) => new Promise((C, Q) => {
67
67
  throw I;
68
68
  }, "return" in g && C("return"), Q;
69
69
  }, SB = (A, g, B) => (g = A[mg("asyncIterator")]) ? g.call(A) : (A = A[mg("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 u, g as KC, a as SC, b as Ag, c as RI, m as xI, d as GI, f as zI, v as XI, r as yQ, u as jQ } from "./index-CFJVII3z.js";
70
+ import { t as u, g as KC, a as SC, b as Ag, c as RI, m as xI, d as GI, f as zI, v as XI, r as yQ, u as jQ } from "./index-CbM5GQGt.js";
71
71
  import { g as bQ } from "./_commonjsHelpers-bAxELxBV.js";
72
72
  function UB({ steps: A = [], currentStep: g = 1 } = {}) {
73
73
  const B = document.createElement("div");
@@ -707,7 +707,9 @@ function yI(A) {
707
707
  return A === "shb" ? "#F58220" : A === "bvb" ? "#1e2a7b" : A === "ocb" ? "#008c44" : "#F58220";
708
708
  }
709
709
  function Xg(A) {
710
- return /^[\p{Lu}][\p{Ll}]+(?: [\p{Lu}][\p{Ll}]+)*$/u.test(A.trim());
710
+ if (/^\s|\s$/.test(A) || /\s{2,}/.test(A) || A.split(" ").length < 2) return !1;
711
+ const g = String.raw`\p{Lu}(?:\p{Ll}+|[’']\p{Lu}\p{Ll}+)(?:[’'-]\p{Lu}\p{Ll}+)*`, B = String.raw`\p{Lu}`, C = String.raw`(?:${B}|${g})`;
712
+ return new RegExp(`^${C}(?: ${C})+$`, "u").test(A);
711
713
  }
712
714
  function ZB({
713
715
  file: A,
@@ -3101,15 +3103,15 @@ function Ln() {
3101
3103
  return s.isDisabled && a.push("is-disabled"), s.isToday && a.push("is-today"), s.isSelected && (a.push("is-selected"), l = "true"), s.hasEvent && a.push("has-event"), s.isInRange && a.push("is-inrange"), s.isStartRange && a.push("is-startrange"), s.isEndRange && a.push("is-endrange"), '<td data-day="' + s.day + '" class="' + a.join(" ") + '" aria-selected="' + l + '"><button class="pika-button pika-day" type="button" data-pika-year="' + s.year + '" data-pika-month="' + s.month + '" data-pika-day="' + s.day + '">' + s.day + "</button></td>";
3102
3104
  }, x = function(s, a) {
3103
3105
  s.setHours(0, 0, 0, 0);
3104
- var l = s.getDate(), d = s.getDay(), L = a, N = L - 1, b = 7, QA = function(oA) {
3106
+ var l = s.getDate(), d = s.getDay(), L = a, y = L - 1, b = 7, QA = function(oA) {
3105
3107
  return (oA + b - 1) % b;
3106
3108
  };
3107
- s.setDate(l + N - QA(d));
3108
- var $ = new Date(s.getFullYear(), 0, L), Z = 1440 * 60 * 1e3, hA = (s.getTime() - $.getTime()) / Z, aA = 1 + Math.round((hA - N + QA($.getDay())) / b);
3109
+ s.setDate(l + y - QA(d));
3110
+ var $ = new Date(s.getFullYear(), 0, L), Z = 1440 * 60 * 1e3, hA = (s.getTime() - $.getTime()) / Z, aA = 1 + Math.round((hA - y + QA($.getDay())) / b);
3109
3111
  return aA;
3110
3112
  }, X = function(s, a, l, d) {
3111
- var L = new Date(l, a, s), N = C ? B(L).isoWeek() : x(L, d);
3112
- return '<td class="pika-week">' + N + "</td>";
3113
+ var L = new Date(l, a, s), y = C ? B(L).isoWeek() : x(L, d);
3114
+ return '<td class="pika-week">' + y + "</td>";
3113
3115
  }, O = function(s, a, l, d) {
3114
3116
  return '<tr class="pika-row' + (l ? " pick-whole-week" : "") + (d ? " is-selected" : "") + '">' + (a ? s.reverse() : s).join("") + "</tr>";
3115
3117
  }, Y = function(s) {
@@ -3119,8 +3121,8 @@ function Ln() {
3119
3121
  for (s.showWeekNumber && l.push("<th></th>"), a = 0; a < 7; a++)
3120
3122
  l.push('<th scope="col"><abbr title="' + f(s, a) + '">' + f(s, a, !0) + "</abbr></th>");
3121
3123
  return "<thead><tr>" + (s.isRTL ? l.reverse() : l).join("") + "</tr></thead>";
3122
- }, U = function(s, a, l, d, L, N) {
3123
- var b, QA, $, Z = s._o, hA = l === Z.minYear, aA = l === Z.maxYear, oA = '<div id="' + N + '" class="pika-title" role="heading" aria-live="assertive">', HA, kA, lA = !0, DA = !0;
3124
+ }, U = function(s, a, l, d, L, y) {
3125
+ var b, QA, $, Z = s._o, hA = l === Z.minYear, aA = l === Z.maxYear, oA = '<div id="' + y + '" class="pika-title" role="heading" aria-live="assertive">', HA, kA, lA = !0, DA = !0;
3124
3126
  for ($ = [], b = 0; b < 12; b++)
3125
3127
  $.push('<option value="' + (l === L ? b - a : 12 + b - a) + '"' + (b === d ? ' selected="selected"' : "") + (hA && b < Z.minMonth || aA && b > Z.maxMonth ? ' disabled="disabled"' : "") + ">" + Z.i18n.months[b] + "</option>");
3126
3128
  for (HA = '<div class="pika-label">' + Z.i18n.months[d] + '<select class="pika-select pika-select-month" tabindex="-1">' + $.join("") + "</select></div>", w(Z.yearRange) ? (b = Z.yearRange[0], QA = Z.yearRange[1] + 1) : (b = l - Z.yearRange, QA = 1 + l + Z.yearRange), $ = []; b < QA && b <= Z.maxYear; b++)
@@ -3133,11 +3135,11 @@ function Ln() {
3133
3135
  a._onMouseDown = function(L) {
3134
3136
  if (a._v) {
3135
3137
  L = L || window.event;
3136
- var N = L.target || L.srcElement;
3137
- if (N)
3138
- if (h(N, "is-disabled") || (h(N, "pika-button") && !h(N, "is-empty") && !h(N.parentNode, "is-disabled") ? (a.setDate(new Date(N.getAttribute("data-pika-year"), N.getAttribute("data-pika-month"), N.getAttribute("data-pika-day"))), l.bound && E(function() {
3138
+ var y = L.target || L.srcElement;
3139
+ if (y)
3140
+ if (h(y, "is-disabled") || (h(y, "pika-button") && !h(y, "is-empty") && !h(y.parentNode, "is-disabled") ? (a.setDate(new Date(y.getAttribute("data-pika-year"), y.getAttribute("data-pika-month"), y.getAttribute("data-pika-day"))), l.bound && E(function() {
3139
3141
  a.hide(), l.blurFieldOnSelect && l.field && l.field.blur();
3140
- }, 100)) : h(N, "pika-prev") ? a.prevMonth() : h(N, "pika-next") && a.nextMonth()), h(N, "pika-select"))
3142
+ }, 100)) : h(y, "pika-prev") ? a.prevMonth() : h(y, "pika-next") && a.nextMonth()), h(y, "pika-select"))
3141
3143
  a._c = !0;
3142
3144
  else if (L.preventDefault)
3143
3145
  L.preventDefault();
@@ -3146,8 +3148,8 @@ function Ln() {
3146
3148
  }
3147
3149
  }, a._onChange = function(L) {
3148
3150
  L = L || window.event;
3149
- var N = L.target || L.srcElement;
3150
- N && (h(N, "pika-select-month") ? a.gotoMonth(N.value) : h(N, "pika-select-year") && a.gotoYear(N.value));
3151
+ var y = L.target || L.srcElement;
3152
+ y && (h(y, "pika-select-month") ? a.gotoMonth(y.value) : h(y, "pika-select-year") && a.gotoYear(y.value));
3151
3153
  }, a._onKeyChange = function(L) {
3152
3154
  if (L = L || window.event, a.isVisible())
3153
3155
  switch (L.keyCode) {
@@ -3181,8 +3183,8 @@ function Ln() {
3181
3183
  } else
3182
3184
  return new Date(Date.parse(l.field.value));
3183
3185
  }, a._onInputChange = function(L) {
3184
- var N;
3185
- L.firedBy !== a && (N = a._parseFieldValue(), i(N) && a.setDate(N), a._v || a.show());
3186
+ var y;
3187
+ L.firedBy !== a && (y = a._parseFieldValue(), i(y) && a.setDate(y), a._v || a.show());
3186
3188
  }, a._onInputFocus = function() {
3187
3189
  a.show();
3188
3190
  }, a._onInputClick = function() {
@@ -3198,14 +3200,14 @@ function Ln() {
3198
3200
  }, 50)), a._c = !1;
3199
3201
  }, a._onClick = function(L) {
3200
3202
  L = L || window.event;
3201
- var N = L.target || L.srcElement, b = N;
3202
- if (N) {
3203
- !Q && h(N, "pika-select") && (N.onchange || (N.setAttribute("onchange", "return;"), n(N, "change", a._onChange)));
3203
+ var y = L.target || L.srcElement, b = y;
3204
+ if (y) {
3205
+ !Q && h(y, "pika-select") && (y.onchange || (y.setAttribute("onchange", "return;"), n(y, "change", a._onChange)));
3204
3206
  do
3205
3207
  if (h(b, "pika-single") || b === l.trigger)
3206
3208
  return;
3207
3209
  while (b = b.parentNode);
3208
- a._v && N !== l.trigger && b !== l.trigger && a.hide();
3210
+ a._v && y !== l.trigger && b !== l.trigger && a.hide();
3209
3211
  }
3210
3212
  }, a.el = I.createElement("div"), a.el.className = "pika-single" + (l.isRTL ? " is-rtl" : "") + (l.theme ? " " + l.theme : ""), n(a.el, "mousedown", a._onMouseDown, !0), n(a.el, "touchend", a._onMouseDown, !0), n(a.el, "change", a._onChange), l.keyboardInput && n(I, "keydown", a._onKeyChange), l.field && (l.container ? l.container.appendChild(a.el) : l.bound ? I.body.appendChild(a.el) : l.field.parentNode.insertBefore(a.el, l.field.nextSibling), n(l.field, "change", a._onInputChange), l.defaultDate || (l.defaultDate = a._parseFieldValue(), l.setDefaultDate = !0));
3211
3213
  var d = l.defaultDate;
@@ -3341,8 +3343,8 @@ function Ln() {
3341
3343
  */
3342
3344
  draw: function(s) {
3343
3345
  if (!(!this._v && !s)) {
3344
- var a = this._o, l = a.minYear, d = a.maxYear, L = a.minMonth, N = a.maxMonth, b = "", QA;
3345
- this._y <= l && (this._y = l, !isNaN(L) && this._m < L && (this._m = L)), this._y >= d && (this._y = d, !isNaN(N) && this._m > N && (this._m = N));
3346
+ var a = this._o, l = a.minYear, d = a.maxYear, L = a.minMonth, y = a.maxMonth, b = "", QA;
3347
+ this._y <= l && (this._y = l, !isNaN(L) && this._m < L && (this._m = L)), this._y >= d && (this._y = d, !isNaN(y) && this._m > y && (this._m = y));
3346
3348
  for (var $ = 0; $ < a.numberOfMonths; $++)
3347
3349
  QA = "pika-title-" + Math.random().toString(36).replace(/[^a-z]+/g, "").substr(0, 2), b += '<div class="pika-lendar">' + U(this, $, this.calendars[$].year, this.calendars[$].month, this.calendars[0].year, QA) + this.render(this.calendars[$].year, this.calendars[$].month, QA) + "</div>";
3348
3350
  this.el.innerHTML = b, a.bound && a.field.type !== "hidden" && E(function() {
@@ -3351,28 +3353,28 @@ function Ln() {
3351
3353
  }
3352
3354
  },
3353
3355
  adjustPosition: function() {
3354
- var s, a, l, d, L, N, b, QA, $, Z, hA, aA;
3356
+ var s, a, l, d, L, y, b, QA, $, Z, hA, aA;
3355
3357
  if (!this._o.container) {
3356
- if (this.el.style.position = "absolute", s = this._o.trigger, a = s, l = this.el.offsetWidth, d = this.el.offsetHeight, L = window.innerWidth || I.documentElement.clientWidth, N = window.innerHeight || I.documentElement.clientHeight, b = window.pageYOffset || I.body.scrollTop || I.documentElement.scrollTop, hA = !0, aA = !0, typeof s.getBoundingClientRect == "function")
3358
+ if (this.el.style.position = "absolute", s = this._o.trigger, a = s, l = this.el.offsetWidth, d = this.el.offsetHeight, L = window.innerWidth || I.documentElement.clientWidth, y = window.innerHeight || I.documentElement.clientHeight, b = window.pageYOffset || I.body.scrollTop || I.documentElement.scrollTop, hA = !0, aA = !0, typeof s.getBoundingClientRect == "function")
3357
3359
  Z = s.getBoundingClientRect(), QA = Z.left + window.pageXOffset, $ = Z.bottom + window.pageYOffset;
3358
3360
  else
3359
3361
  for (QA = a.offsetLeft, $ = a.offsetTop + a.offsetHeight; a = a.offsetParent; )
3360
3362
  QA += a.offsetLeft, $ += a.offsetTop;
3361
- (this._o.reposition && QA + l > L || this._o.position.indexOf("right") > -1 && QA - l + s.offsetWidth > 0) && (QA = QA - l + s.offsetWidth, hA = !1), (this._o.reposition && $ + d > N + b || this._o.position.indexOf("top") > -1 && $ - d - s.offsetHeight > 0) && ($ = $ - d - s.offsetHeight, aA = !1), this.el.style.left = QA + "px", this.el.style.top = $ + "px", o(this.el, hA ? "left-aligned" : "right-aligned"), o(this.el, aA ? "bottom-aligned" : "top-aligned"), e(this.el, hA ? "right-aligned" : "left-aligned"), e(this.el, aA ? "top-aligned" : "bottom-aligned");
3363
+ (this._o.reposition && QA + l > L || this._o.position.indexOf("right") > -1 && QA - l + s.offsetWidth > 0) && (QA = QA - l + s.offsetWidth, hA = !1), (this._o.reposition && $ + d > y + b || this._o.position.indexOf("top") > -1 && $ - d - s.offsetHeight > 0) && ($ = $ - d - s.offsetHeight, aA = !1), this.el.style.left = QA + "px", this.el.style.top = $ + "px", o(this.el, hA ? "left-aligned" : "right-aligned"), o(this.el, aA ? "bottom-aligned" : "top-aligned"), e(this.el, hA ? "right-aligned" : "left-aligned"), e(this.el, aA ? "top-aligned" : "bottom-aligned");
3362
3364
  }
3363
3365
  },
3364
3366
  /**
3365
3367
  * render HTML for a particular month
3366
3368
  */
3367
3369
  render: function(s, a, l) {
3368
- var d = this._o, L = /* @__PURE__ */ new Date(), N = k(s, a), b = new Date(s, a, 1).getDay(), QA = [], $ = [];
3370
+ var d = this._o, L = /* @__PURE__ */ new Date(), y = k(s, a), b = new Date(s, a, 1).getDay(), QA = [], $ = [];
3369
3371
  v(L), d.firstDay > 0 && (b -= d.firstDay, b < 0 && (b += 7));
3370
- for (var Z = a === 0 ? 11 : a - 1, hA = a === 11 ? 0 : a + 1, aA = a === 0 ? s - 1 : s, oA = a === 11 ? s + 1 : s, HA = k(aA, Z), kA = N + b, lA = kA; lA > 7; )
3372
+ for (var Z = a === 0 ? 11 : a - 1, hA = a === 11 ? 0 : a + 1, aA = a === 0 ? s - 1 : s, oA = a === 11 ? s + 1 : s, HA = k(aA, Z), kA = y + b, lA = kA; lA > 7; )
3371
3373
  lA -= 7;
3372
3374
  kA += 7 - lA;
3373
3375
  for (var DA = !1, mA = 0, yA = 0; mA < kA; mA++) {
3374
- var PA = new Date(s, a, 1 + (mA - b)), Bg = i(this._d) ? r(PA, this._d) : !1, Qg = r(PA, L), Ig = d.events.indexOf(PA.toDateString()) !== -1, ZA = mA < b || mA >= N + b, xA = 1 + (mA - b), VA = a, GA = s, WA = d.startRange && r(d.startRange, PA), zA = d.endRange && r(d.endRange, PA), UA = d.startRange && d.endRange && d.startRange < PA && PA < d.endRange, TA = d.minDate && PA < d.minDate || d.maxDate && PA > d.maxDate || d.disableWeekends && D(PA) || d.disableDayFn && d.disableDayFn(PA);
3375
- ZA && (mA < b ? (xA = HA + xA, VA = Z, GA = aA) : (xA = xA - N, VA = hA, GA = oA));
3376
+ var PA = new Date(s, a, 1 + (mA - b)), Bg = i(this._d) ? r(PA, this._d) : !1, Qg = r(PA, L), Ig = d.events.indexOf(PA.toDateString()) !== -1, ZA = mA < b || mA >= y + b, xA = 1 + (mA - b), VA = a, GA = s, WA = d.startRange && r(d.startRange, PA), zA = d.endRange && r(d.endRange, PA), UA = d.startRange && d.endRange && d.startRange < PA && PA < d.endRange, TA = d.minDate && PA < d.minDate || d.maxDate && PA > d.maxDate || d.disableWeekends && D(PA) || d.disableDayFn && d.disableDayFn(PA);
3377
+ ZA && (mA < b ? (xA = HA + xA, VA = Z, GA = aA) : (xA = xA - y, VA = hA, GA = oA));
3376
3378
  var pA = {
3377
3379
  day: xA,
3378
3380
  month: VA,
@@ -3988,7 +3990,7 @@ function Ct(t) {
3988
3990
  ) : v.setError(null);
3989
3991
  }
3990
3992
  });
3991
- const N = dA({
3993
+ const y = dA({
3992
3994
  name: "invoiceSymbol",
3993
3995
  label: u("invoiceSymbol", "Ký hiệu hóa đơn"),
3994
3996
  required: !0,
@@ -4003,12 +4005,12 @@ function Ct(t) {
4003
4005
  X = bI({
4004
4006
  initialValue: ((YB = g == null ? void 0 : g.eInvoiceRegistration) == null ? void 0 : YB.invoiceSymbol) || "1C25TYY",
4005
4007
  onChange: (F) => {
4006
- N.inputEl.value = F, MA();
4008
+ y.inputEl.value = F, MA();
4007
4009
  }
4008
4010
  }), O = document.createElement("input"), O.type = "checkbox", O.name = "hasUsedEInvoiceCB", O.className = "wgt:cursor-pointer", O.checked = (RB = g == null ? void 0 : g.eInvoiceRegistration) == null ? void 0 : RB.hasUsedEInvoice, O.addEventListener("change", (F) => {
4009
- F.target.checked ? (CA.appendChild(AA), CA.appendChild(y)) : (Y.checked = !1, U.inputEl.value = "", U.setError(null), G && (G.inputEl.value = "", G.setError(null), y.removeChild(G.container)), CA.removeChild(AA), CA.removeChild(y));
4011
+ F.target.checked ? (CA.appendChild(AA), CA.appendChild(N)) : (Y.checked = !1, U.inputEl.value = "", U.setError(null), G && (G.inputEl.value = "", G.setError(null), N.contains(G.container) && N.removeChild(G.container)), CA.removeChild(AA), CA.removeChild(N));
4010
4012
  }), Y = document.createElement("input"), Y.type = "checkbox", Y.name = "hasUsedEInvoiceBeforeCB", Y.className = "wgt:cursor-pointer", Y.checked = (xB = g == null ? void 0 : g.eInvoiceRegistration) == null ? void 0 : xB.isUsedEInvoiceBefore, Y.addEventListener("change", (F) => {
4011
- F.target.checked ? y.appendChild(G.container) : (G.inputEl.value = "", G.setError(null), y.removeChild(G.container));
4013
+ F.target.checked ? N.appendChild(G.container) : (G.inputEl.value = "", G.setError(null), N.contains(G.container) && N.removeChild(G.container));
4012
4014
  }), G = dA({
4013
4015
  name: "previousOtherProviderNameField",
4014
4016
  label: u("providerName", "Tên NCC"),
@@ -4234,7 +4236,7 @@ function Ct(t) {
4234
4236
  const K = document.createElement("h3");
4235
4237
  K.className = "wgt:text-lg wgt:font-semibold wgt:mb-2", K.innerText = u("invoiceUsageInfo", "4. THÔNG TIN SỬ DỤNG HDDT:"), fA.appendChild(K), h.appendChild(fA);
4236
4238
  const EA = document.createElement("div");
4237
- EA.className = "wgt:w-full wgt:flex wgt:gap-4 wgt:items-start wgt:flex-row wgt:max-xl:flex-col", EA.appendChild(X.container), EA.appendChild(N.container), fA.appendChild(EA);
4239
+ EA.className = "wgt:w-full wgt:flex wgt:gap-4 wgt:items-start wgt:flex-row wgt:max-xl:flex-col", EA.appendChild(X.container), EA.appendChild(y.container), fA.appendChild(EA);
4238
4240
  const CA = document.createElement("div");
4239
4241
  CA.className = "wgt:flex wgt:flex-col wgt:space-y-4 wgt:border wgt:border-soft-200 wgt:px-6 wgt:py-4 wgt:rounded-xl", h.appendChild(CA);
4240
4242
  const _ = document.createElement("div");
@@ -4251,8 +4253,8 @@ function Ct(t) {
4251
4253
  "hasUsedEInvoiceBefore",
4252
4254
  "Bạn đang sử dụng nhà NCC hoá đơn điện tử khác M-invoice không?"
4253
4255
  ), AA.appendChild(R);
4254
- const y = document.createElement("div");
4255
- y.className = "wgt:w-full wgt:flex wgt:flex-row-reverse wgt:space-x-4 wgt:gap-4 wgt:items-start wgt:justify-start wgt:max-sm:flex-col wgt:max-sm:flex-col-reverse", y.appendChild(U.container);
4256
+ const N = document.createElement("div");
4257
+ N.className = "wgt:w-full wgt:flex wgt:flex-row-reverse wgt:space-x-4 wgt:gap-4 wgt:items-start wgt:justify-start wgt:max-sm:flex-col wgt:max-sm:flex-col-reverse", N.appendChild(U.container);
4256
4258
  const p = document.createElement("div");
4257
4259
  p.className = "wgt:flex wgt:items-center wgt:space-x-2 wgt:mt-4";
4258
4260
  let BA = !0;
@@ -4382,7 +4384,7 @@ function Ct(t) {
4382
4384
  typeof A == "function" && A(z);
4383
4385
  });
4384
4386
  const AB = (((OB = (XB = g == null ? void 0 : g.eInvoiceRegistration) == null ? void 0 : XB.organization) == null ? void 0 : OB.taxCode) || "").trim();
4385
- return AB.length >= 10 && QA(AB), DI(SC()), g != null && g.idCard && (s = g == null ? void 0 : g.idCard), (FB = g == null ? void 0 : g.eInvoiceRegistration) != null && FB.hasUsedEInvoice && (CA.appendChild(AA), CA.appendChild(y), (LB = g == null ? void 0 : g.eInvoiceRegistration) != null && LB.isUsedEInvoiceBefore ? (Y.checked = !0, y.appendChild(G.container), G.inputEl.value = (NB = g == null ? void 0 : g.eInvoiceRegistration) == null ? void 0 : NB.previousEInvoiceProvider) : G.inputEl.value = "", U.inputEl.value = (yB = g == null ? void 0 : g.eInvoiceRegistration) == null ? void 0 : yB.taxAuthorityCode), MA(), {
4387
+ return AB.length >= 10 && QA(AB), DI(SC()), g != null && g.idCard && (s = g == null ? void 0 : g.idCard), (FB = g == null ? void 0 : g.eInvoiceRegistration) != null && FB.hasUsedEInvoice && (CA.appendChild(AA), CA.appendChild(N), (LB = g == null ? void 0 : g.eInvoiceRegistration) != null && LB.isUsedEInvoiceBefore ? (Y.checked = !0, N.appendChild(G.container), G.inputEl.value = (NB = g == null ? void 0 : g.eInvoiceRegistration) == null ? void 0 : NB.previousEInvoiceProvider) : G.inputEl.value = "", U.inputEl.value = (yB = g == null ? void 0 : g.eInvoiceRegistration) == null ? void 0 : yB.taxAuthorityCode), MA(), {
4386
4388
  container: c,
4387
4389
  getValues: xg
4388
4390
  };
@@ -4546,7 +4548,7 @@ function wQ({
4546
4548
  }
4547
4549
  };
4548
4550
  }
4549
- const Et = "1.67.7";
4551
+ const Et = "1.67.9";
4550
4552
  function nt(B) {
4551
4553
  return V(this, arguments, function* ({ search: A, bank: g }) {
4552
4554
  return (yield NA.get(`${Zg}`, {
@@ -4939,7 +4941,7 @@ function mt(k) {
4939
4941
  const {
4940
4942
  container: d,
4941
4943
  invoiceSelectorWrapper: L,
4942
- setInvoicePackages: N,
4944
+ setInvoicePackages: y,
4943
4945
  getInvoicePackages: b,
4944
4946
  getFilteredInvoiceOptions: QA,
4945
4947
  setFilteredInvoiceOptions: $,
@@ -4974,7 +4976,7 @@ function mt(k) {
4974
4976
  mA.appendChild(yA);
4975
4977
  const PA = (K, EA, CA, _) => V(null, null, function* () {
4976
4978
  s();
4977
- const y = w.eInvoiceRegistration, { isUsedEInvoiceBefore: wA } = y, AA = tC(y, ["isUsedEInvoiceBefore"]);
4979
+ const N = w.eInvoiceRegistration, { isUsedEInvoiceBefore: wA } = N, AA = tC(N, ["isUsedEInvoiceBefore"]);
4978
4980
  let R = [
4979
4981
  {
4980
4982
  code: EA.code,
@@ -5047,7 +5049,7 @@ function mt(k) {
5047
5049
  const [
5048
5050
  AA,
5049
5051
  R,
5050
- y,
5052
+ N,
5051
5053
  p,
5052
5054
  BA
5053
5055
  ] = yield Promise.allSettled([
@@ -5065,9 +5067,9 @@ function mt(k) {
5065
5067
  AA.reason
5066
5068
  ), hg.error(
5067
5069
  u("errorCheckingCustomer") || "Failed to check customer status"
5068
- ), x = !1), y.status === "fulfilled" ? m = y.value || [] : (console.error(
5070
+ ), x = !1), N.status === "fulfilled" ? m = N.value || [] : (console.error(
5069
5071
  "Failed to load init packages:",
5070
- y.reason
5072
+ N.reason
5071
5073
  ), hg.error(
5072
5074
  u("errorLoadingInitPackages") || "Failed to load registration packages"
5073
5075
  ), m = []), R.status === "fulfilled" ? (((_ = R == null ? void 0 : R.value) == null ? void 0 : _.length) > 0 && R.value.forEach((j) => {
@@ -5089,7 +5091,7 @@ function mt(k) {
5089
5091
  }), Object.keys(f).length > 0 && (P = e || Object.keys(f).filter(
5090
5092
  (j) => f[j].bank === h && f[j].expiredAt >= (/* @__PURE__ */ new Date()).toISOString() && f[j].limit > f[j].used
5091
5093
  ), sg())) : console.error("Failed to load promotions:", R.reason), p.status === "fulfilled") {
5092
- if (N(p.value || []), p.value.length > 0) {
5094
+ if (y(p.value || []), p.value.length > 0) {
5093
5095
  const j = p.value.find(
5094
5096
  (IA) => H.includes(IA.code)
5095
5097
  );
@@ -5102,7 +5104,7 @@ function mt(k) {
5102
5104
  p.reason
5103
5105
  ), hg.error(
5104
5106
  u("errorLoadingInvoicePackages") || "Failed to load invoice packages"
5105
- ), N([]), hA();
5107
+ ), y([]), hA();
5106
5108
  if (BA.status === "fulfilled") {
5107
5109
  if (J = BA.value || [], J.length > 0) {
5108
5110
  const j = J.find(
@@ -5132,19 +5134,19 @@ function mt(k) {
5132
5134
  }
5133
5135
  function ZA(K, EA, CA) {
5134
5136
  const _ = Object.values(f).find(
5135
- (y) => y.bank === h && y.appliedPackages.includes(K)
5137
+ (N) => N.bank === h && N.appliedPackages.includes(K)
5136
5138
  ), wA = _ && !_.isDisabled && !(_.expiredAt < (/* @__PURE__ */ new Date()).toISOString()) && _.limit !== _.used, AA = Object.values(f).find(
5137
- (y) => y.bank === h && y.appliedPackages.includes(EA)
5139
+ (N) => N.bank === h && N.appliedPackages.includes(EA)
5138
5140
  ), R = AA && !AA.isDisabled && !(AA.expiredAt < (/* @__PURE__ */ new Date()).toISOString()) && AA.limit !== AA.used;
5139
5141
  if (wA && !R) {
5140
- const { container: y, open: p } = CC({
5142
+ const { container: N, open: p } = CC({
5141
5143
  message: u("errorDiscountPackage"),
5142
5144
  okLabel: u("ok"),
5143
5145
  cancelLabel: u("cancel"),
5144
5146
  onClose: CA,
5145
5147
  isSuccess: !1
5146
5148
  });
5147
- W.appendChild(y), p();
5149
+ W.appendChild(N), p();
5148
5150
  } else
5149
5151
  CA();
5150
5152
  }
@@ -5246,7 +5248,7 @@ function mt(k) {
5246
5248
  }
5247
5249
  function XA() {
5248
5250
  if (Object.values(f).filter(
5249
- (y) => y.bank === h
5251
+ (N) => N.bank === h
5250
5252
  ).length === 0) {
5251
5253
  l.contains(TA) && l.removeChild(TA);
5252
5254
  return;
@@ -5292,24 +5294,24 @@ function mt(k) {
5292
5294
  const AA = document.createElement("div");
5293
5295
  AA.className = "wgt:w-full wgt:grid wgt:grid-cols-3 wgt:gap-4 wgt:max-lg:flex wgt:max-lg:flex-col", TA.appendChild(AA);
5294
5296
  const R = Object.values(f).filter(
5295
- (y) => y.bank === h
5297
+ (N) => N.bank === h
5296
5298
  );
5297
5299
  if (R.length > 0)
5298
- R.forEach((y) => {
5300
+ R.forEach((N) => {
5299
5301
  const { container: p } = at({
5300
- promotion: FA(sA({}, y), {
5301
- isSelected: P.includes(y.code)
5302
+ promotion: FA(sA({}, N), {
5303
+ isSelected: P.includes(N.code)
5302
5304
  }),
5303
5305
  onSelect: (BA, j) => {
5304
5306
  j && P.push(BA), XA(), fA();
5305
5307
  },
5306
- isDisabled: y.isDisabled || y.expiredAt < (/* @__PURE__ */ new Date()).toISOString() || y.limit === y.used
5308
+ isDisabled: N.isDisabled || N.expiredAt < (/* @__PURE__ */ new Date()).toISOString() || N.limit === N.used
5307
5309
  });
5308
5310
  AA.appendChild(p);
5309
5311
  });
5310
5312
  else {
5311
- const y = document.createElement("span");
5312
- y.className = "wgt:text-text-sub-600", y.innerText = u("noPromotionFound"), TA.appendChild(y);
5313
+ const N = document.createElement("span");
5314
+ N.className = "wgt:text-text-sub-600", N.innerText = u("noPromotionFound"), TA.appendChild(N);
5313
5315
  }
5314
5316
  }
5315
5317
  function fA() {
@@ -5327,8 +5329,8 @@ function mt(k) {
5327
5329
  (R) => R._id === r
5328
5330
  );
5329
5331
  if (x && (m == null ? void 0 : m.length) > 0 && !(K != null && K.withoutInitialFee)) {
5330
- const R = document.createElement("tr"), y = document.createElement("td");
5331
- y.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-sm wgt:text-strong-950 wgt:font-medium", y.innerText = Ag() === "vi" ? m[0].name : m[0].nameEn, R.appendChild(y);
5332
+ const R = document.createElement("tr"), N = document.createElement("td");
5333
+ N.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-sm wgt:text-strong-950 wgt:font-medium", N.innerText = Ag() === "vi" ? m[0].name : m[0].nameEn, R.appendChild(N);
5332
5334
  const p = document.createElement("td");
5333
5335
  p.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-sm wgt:text-strong-950 wgt:font-medium", p.innerText = u("package"), R.appendChild(p);
5334
5336
  const BA = document.createElement("td");
@@ -5353,10 +5355,10 @@ function mt(k) {
5353
5355
  {
5354
5356
  const R = Z(r);
5355
5357
  if (R) {
5356
- const y = document.createElement("tr"), p = document.createElement("td");
5357
- p.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium", p.innerText = Ag() === "vi" ? R == null ? void 0 : R.name : R == null ? void 0 : R.nameEn, y.appendChild(p);
5358
+ const N = document.createElement("tr"), p = document.createElement("td");
5359
+ p.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium", p.innerText = Ag() === "vi" ? R == null ? void 0 : R.name : R == null ? void 0 : R.nameEn, N.appendChild(p);
5358
5360
  const BA = document.createElement("td");
5359
- BA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium", BA.innerText = u("package"), y.appendChild(BA);
5361
+ BA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium", BA.innerText = u("package"), N.appendChild(BA);
5360
5362
  const j = document.createElement("td");
5361
5363
  j.className = "wgt:whitespace-nowrap wgt:px-4 wgt:py-3 wgt:text-center";
5362
5364
  const IA = document.createElement("div");
@@ -5370,20 +5372,20 @@ function mt(k) {
5370
5372
  const cA = document.createElement("button");
5371
5373
  cA.type = "button", cA.ariaLabel = u("increase"), cA.disabled = (R == null ? void 0 : R.price) === 0, cA.className = "wgt:flex wgt:h-7 wgt:w-7 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", cA.innerText = "+", cA.addEventListener("click", () => {
5372
5374
  Y += 1, fA();
5373
- }), IA.appendChild(cA), j.appendChild(IA), y.appendChild(j);
5375
+ }), IA.appendChild(cA), j.appendChild(IA), N.appendChild(j);
5374
5376
  const vA = document.createElement("td");
5375
- vA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium", vA.innerText = SA((R == null ? void 0 : R.price) * (R == null ? void 0 : R.limit)) + " VND", y.appendChild(vA);
5377
+ vA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium", vA.innerText = SA((R == null ? void 0 : R.price) * (R == null ? void 0 : R.limit)) + " VND", N.appendChild(vA);
5376
5378
  const OA = document.createElement("td");
5377
- OA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium", OA.innerText = SA((R == null ? void 0 : R.price) * (R == null ? void 0 : R.limit) * Y) + " VND", y.appendChild(OA), DA.appendChild(y);
5379
+ OA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium", OA.innerText = SA((R == null ? void 0 : R.price) * (R == null ? void 0 : R.limit) * Y) + " VND", N.appendChild(OA), DA.appendChild(N);
5378
5380
  }
5379
5381
  }
5380
5382
  {
5381
5383
  const R = U(M);
5382
5384
  if (R) {
5383
- const y = document.createElement("tr"), p = document.createElement("td");
5384
- p.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium", p.innerText = Ag() === "vi" ? R == null ? void 0 : R.name : R == null ? void 0 : R.nameEn, y.appendChild(p);
5385
+ const N = document.createElement("tr"), p = document.createElement("td");
5386
+ p.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium", p.innerText = Ag() === "vi" ? R == null ? void 0 : R.name : R == null ? void 0 : R.nameEn, N.appendChild(p);
5385
5387
  const BA = document.createElement("td");
5386
- BA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium", BA.innerText = u("package"), y.appendChild(BA);
5388
+ BA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium", BA.innerText = u("package"), N.appendChild(BA);
5387
5389
  const j = document.createElement("td");
5388
5390
  j.className = "wgt:whitespace-nowrap wgt:px-4 wgt:py-3 wgt:text-center";
5389
5391
  const IA = document.createElement("div");
@@ -5397,39 +5399,39 @@ function mt(k) {
5397
5399
  const cA = document.createElement("button");
5398
5400
  cA.type = "button", cA.ariaLabel = u("increase"), cA.className = "wgt:flex wgt:h-7 wgt:w-7 wgt:items-center wgt:justify-center wgt:rounded-lg wgt:bg-weak-50 wgt:text-strong-950", cA.innerText = "+", cA.addEventListener("click", () => {
5399
5401
  G += 1, fA();
5400
- }), IA.appendChild(cA), j.appendChild(IA), y.appendChild(j);
5402
+ }), IA.appendChild(cA), j.appendChild(IA), N.appendChild(j);
5401
5403
  const vA = document.createElement("td");
5402
- vA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium", vA.innerText = SA((R == null ? void 0 : R.limit) * (R == null ? void 0 : R.price)), y.appendChild(vA);
5404
+ vA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium", vA.innerText = SA((R == null ? void 0 : R.limit) * (R == null ? void 0 : R.price)), N.appendChild(vA);
5403
5405
  const OA = document.createElement("td");
5404
- OA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium", OA.innerText = SA((R == null ? void 0 : R.limit) * (R == null ? void 0 : R.price) * G) + " VND", y.appendChild(OA), DA.appendChild(y);
5406
+ OA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium", OA.innerText = SA((R == null ? void 0 : R.limit) * (R == null ? void 0 : R.price) * G) + " VND", N.appendChild(OA), DA.appendChild(N);
5405
5407
  }
5406
5408
  }
5407
5409
  const EA = P.map(
5408
5410
  (R) => Object.values(f).find(
5409
- (y) => y.code === R && y.bank === h
5411
+ (N) => N.code === R && N.bank === h
5410
5412
  )
5411
5413
  ).filter((R) => R !== void 0);
5412
5414
  let CA = 0;
5413
5415
  EA.length > 0 && EA.forEach((R) => {
5414
5416
  var IA, tA, eA, cA, vA, OA;
5415
- const y = document.createElement("tr"), p = document.createElement("td");
5417
+ const N = document.createElement("tr"), p = document.createElement("td");
5416
5418
  p.colSpan = 3, p.className = "wgt:px-3 wgt:py-2 wgt:text-sm", p.innerHTML = `
5417
5419
  <div class="wgt:flex wgt:flex-row wgt:items-center wgt:gap-2">
5418
5420
  <img src="${rt}" alt="ticket" class="wgt:w-4">
5419
5421
  <span class="wgt:text-text-sub-600">${Ag() === "vi" ? R == null ? void 0 : R.name : (R == null ? void 0 : R.nameEn) || (R == null ? void 0 : R.code)}</span>
5420
5422
  </div>
5421
- `, y.appendChild(p);
5423
+ `, N.appendChild(p);
5422
5424
  const BA = document.createElement("td");
5423
- y.appendChild(BA);
5425
+ N.appendChild(BA);
5424
5426
  const j = document.createElement("td");
5425
5427
  j.className = "wgt:px-3 wgt:py-2 wgt:text-sm wgt:font-semibold", R.type === "discount" ? (j.innerText = `-${SA(
5426
5428
  (IA = R == null ? void 0 : R.reward) == null ? void 0 : IA.discountAmount
5427
5429
  )} VND`, j.style.color = "#F04438", CA += (tA = R == null ? void 0 : R.reward) == null ? void 0 : tA.discountAmount) : (R == null ? void 0 : R.type) === "free_item" ? (j.innerText = `+${(cA = (eA = R == null ? void 0 : R.reward) == null ? void 0 : eA.packageCodes) == null ? void 0 : cA.length} ${u(
5428
5430
  "package"
5429
- )} ${(OA = (vA = R == null ? void 0 : R.reward) == null ? void 0 : vA.packageCodes) == null ? void 0 : OA.join(", ")}`, j.style.color = "#12B76A") : j.innerText = "", y.appendChild(j), DA.appendChild(y);
5431
+ )} ${(OA = (vA = R == null ? void 0 : R.reward) == null ? void 0 : vA.packageCodes) == null ? void 0 : OA.join(", ")}`, j.style.color = "#12B76A") : j.innerText = "", N.appendChild(j), DA.appendChild(N);
5430
5432
  });
5431
5433
  {
5432
- const R = x && m.length > 0 && !(K != null && K.withoutInitialFee) ? ((AA = m[0]) == null ? void 0 : AA.price) * O : 0, y = Z(r), p = y ? y.price * y.limit * Y : 0, BA = U(M), j = BA ? BA.price * BA.limit * G : 0, IA = R + p + j - CA;
5434
+ const R = x && m.length > 0 && !(K != null && K.withoutInitialFee) ? ((AA = m[0]) == null ? void 0 : AA.price) * O : 0, N = Z(r), p = N ? N.price * N.limit * Y : 0, BA = U(M), j = BA ? BA.price * BA.limit * G : 0, IA = R + p + j - CA;
5433
5435
  c(IA);
5434
5436
  const tA = document.createElement("tr"), eA = document.createElement("td");
5435
5437
  eA.colSpan = 4, eA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-3 wgt:text-left wgt:text-base wgt:font-semibold wgt:text-strong-950", eA.innerText = u("total"), tA.appendChild(eA);
@@ -6876,15 +6878,15 @@ function Nt() {
6876
6878
  const H = A.getSymbolTotalCodewords(m), x = n.getTotalCodewordsCount(m, f), X = H - x, O = n.getBlocksCount(m, f), Y = H % O, G = O - Y, U = Math.floor(H / O), W = Math.floor(X / O), S = W + 1, s = U - W, a = new t(s);
6877
6879
  let l = 0;
6878
6880
  const d = new Array(O), L = new Array(O);
6879
- let N = 0;
6881
+ let y = 0;
6880
6882
  const b = new Uint8Array(J.buffer);
6881
6883
  for (let aA = 0; aA < O; aA++) {
6882
6884
  const oA = aA < G ? W : S;
6883
- d[aA] = b.slice(l, l + oA), L[aA] = a.encode(d[aA]), l += oA, N = Math.max(N, oA);
6885
+ d[aA] = b.slice(l, l + oA), L[aA] = a.encode(d[aA]), l += oA, y = Math.max(y, oA);
6884
6886
  }
6885
6887
  const QA = new Uint8Array(H);
6886
6888
  let $ = 0, Z, hA;
6887
- for (Z = 0; Z < N; Z++)
6889
+ for (Z = 0; Z < y; Z++)
6888
6890
  for (hA = 0; hA < O; hA++)
6889
6891
  Z < d[hA].length && (QA[$++] = d[hA][Z]);
6890
6892
  for (Z = 0; Z < s; Z++)
@@ -7112,8 +7114,8 @@ function Ut({
7112
7114
  const D = document.createElement("p");
7113
7115
  D.className = "wgt:text-base wgt:font-medium wgt:leading-6 wgt:text-primary";
7114
7116
  const q = (d) => {
7115
- const L = Math.floor(d / 60), N = d % 60;
7116
- return `${L.toString().padStart(2, "0")}:${N.toString().padStart(2, "0")}`;
7117
+ const L = Math.floor(d / 60), y = d % 60;
7118
+ return `${L.toString().padStart(2, "0")}:${y.toString().padStart(2, "0")}`;
7117
7119
  }, k = () => {
7118
7120
  D.innerHTML = `${u(
7119
7121
  "completePaymentIn"
@@ -7174,11 +7176,11 @@ function Ut({
7174
7176
  d.className = "wgt:w-full wgt:flex wgt:items-start wgt:justify-between wgt:gap-[0.5rem]";
7175
7177
  const L = document.createElement("h4");
7176
7178
  L.className = "wgt:text-sm wgt:font-normal wgt:leading-5 wgt:text-[#475467]", L.innerText = u("promotion");
7177
- const N = document.createElement("div");
7178
- N.className = "wgt:flex wgt:items-center wgt:justify-end wgt:flex-wrap wgt:gap-2", c.forEach((b) => {
7179
+ const y = document.createElement("div");
7180
+ y.className = "wgt:flex wgt:items-center wgt:justify-end wgt:flex-wrap wgt:gap-2", c.forEach((b) => {
7179
7181
  const QA = document.createElement("div");
7180
- QA.className = "wgt:w-fit wgt:px-3 wgt:py-1 wgt:text-xs wgt:font-normal wgt:text-primary wgt:border wgt:border-primary", QA.innerText = b, N.appendChild(QA);
7181
- }), d.appendChild(L), d.appendChild(N), P.appendChild(d);
7182
+ QA.className = "wgt:w-fit wgt:px-3 wgt:py-1 wgt:text-xs wgt:font-normal wgt:text-primary wgt:border wgt:border-primary", QA.innerText = b, y.appendChild(QA);
7183
+ }), d.appendChild(L), d.appendChild(y), P.appendChild(d);
7182
7184
  }
7183
7185
  const W = document.createElement("hr");
7184
7186
  P.appendChild(W);
@@ -7286,7 +7288,7 @@ function Zt(n) {
7286
7288
  return V(this, null, function* () {
7287
7289
  const { registrationData: s } = Q, d = s.eInvoiceRegistration, { isUsedEInvoiceBefore: a } = d, l = tC(d, ["isUsedEInvoiceBefore"]);
7288
7290
  try {
7289
- const N = (yield rI({
7291
+ const y = (yield rI({
7290
7292
  eInvoiceRegistration: sA({}, l),
7291
7293
  bank: s.bank,
7292
7294
  provider: s.provider,
@@ -7299,7 +7301,7 @@ function Zt(n) {
7299
7301
  packages: s.packages,
7300
7302
  promotionCodes: s.promotionCodes
7301
7303
  })).orderId;
7302
- N !== o && (o = N, E(N), yield G(N), S(), H());
7304
+ y !== o && (o = y, E(y), yield G(y), S(), H());
7303
7305
  } catch (L) {
7304
7306
  console.error("Error creating order:", L), $A(u("errorCreatingOrder") || "Failed to create order");
7305
7307
  return;
@@ -7338,8 +7340,8 @@ function Zt(n) {
7338
7340
  accountNumber: (t == null ? void 0 : t.va_account_no) || "",
7339
7341
  bankName: (t == null ? void 0 : t.bank_code) || ""
7340
7342
  });
7341
- } catch (N) {
7342
- if (((l = (a = N.response) == null ? void 0 : a.data) == null ? void 0 : l.error_code) === "BILL_ID_EXISTED") {
7343
+ } catch (y) {
7344
+ if (((l = (a = y.response) == null ? void 0 : a.data) == null ? void 0 : l.error_code) === "BILL_ID_EXISTED") {
7343
7345
  if (console.log("Bill ID existed, recalling createOrder..."), e = !1, w++, w >= pt) {
7344
7346
  $A(u("errorQRGeneration"), {
7345
7347
  okLabel: u("ok"),
@@ -7351,7 +7353,7 @@ function Zt(n) {
7351
7353
  }
7352
7354
  yield Y();
7353
7355
  return;
7354
- } else if (((L = (d = N.response) == null ? void 0 : d.data) == null ? void 0 : L.error_code) === "AUTHEN_FAIL") {
7356
+ } else if (((L = (d = y.response) == null ? void 0 : d.data) == null ? void 0 : L.error_code) === "AUTHEN_FAIL") {
7355
7357
  $A(u("errorQRGeneration"), {
7356
7358
  okLabel: u("ok"),
7357
7359
  onClose: () => {
package/package.json CHANGED
@@ -46,7 +46,7 @@
46
46
  "prepare": "npm run build"
47
47
  },
48
48
  "type": "module",
49
- "version": "1.67.7",
49
+ "version": "1.67.9",
50
50
  "repository": {},
51
51
  "dependencies": {
52
52
  "@invoice-sdk/id_extraction_qr": "^1.1.2",