@invoice-sdk/widget 1.59.1 → 1.59.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -67,7 +67,7 @@ var S = (g, A, B) => new Promise((C, Q) => {
67
67
  throw I;
68
68
  }, "return" in A && C("return"), Q;
69
69
  }, rQ = (g, A, B) => (A = g[ug("asyncIterator")]) ? A.call(g) : (g = g[ug("iterator")](), A = {}, B = (C, Q) => (Q = g[C]) && (A[C] = (I) => new Promise((E, n, t) => (I = Q.call(g, I), t = I.done, Promise.resolve(I.value).then((c) => E({ value: c, done: t }), n)))), B("next"), B("return"), A);
70
- import { t as D, g as Sg, a as bE, b as KE, m as SE, c as UE, f as pE, v as ZE, r as yI, u as jI } from "./index-BYaHlzkC.js";
70
+ import { t as D, g as Sg, a as bE, b as KE, m as SE, c as UE, f as pE, v as ZE, r as yI, u as jI } from "./index-2CQQRcTk.js";
71
71
  import { g as uB } from "./_commonjsHelpers-bAxELxBV.js";
72
72
  function mQ({ steps: g = [], currentStep: A = 1 } = {}) {
73
73
  const B = document.createElement("div");
@@ -2999,28 +2999,28 @@ function Ut() {
2999
2999
  return { __await: e };
3000
3000
  };
3001
3001
  function Y(e, u) {
3002
- function f(L, W, p, b) {
3002
+ function f(L, W, p, K) {
3003
3003
  var CA = a(e[L], e, W);
3004
3004
  if (CA.type === "throw")
3005
- b(CA.arg);
3005
+ K(CA.arg);
3006
3006
  else {
3007
3007
  var hA = CA.arg, aA = hA.value;
3008
3008
  return aA && typeof aA == "object" && Q.call(aA, "__await") ? u.resolve(aA.__await).then(function(_) {
3009
- f("next", _, p, b);
3009
+ f("next", _, p, K);
3010
3010
  }, function(_) {
3011
- f("throw", _, p, b);
3011
+ f("throw", _, p, K);
3012
3012
  }) : u.resolve(aA).then(function(_) {
3013
3013
  hA.value = _, p(hA);
3014
3014
  }, function(_) {
3015
- return f("throw", _, p, b);
3015
+ return f("throw", _, p, K);
3016
3016
  });
3017
3017
  }
3018
3018
  }
3019
3019
  var R;
3020
3020
  function x(L, W) {
3021
3021
  function p() {
3022
- return new u(function(b, CA) {
3023
- f(L, W, b, CA);
3022
+ return new u(function(K, CA) {
3023
+ f(L, W, K, CA);
3024
3024
  });
3025
3025
  }
3026
3026
  return R = // If enqueue has been called before, then we want to wait until
@@ -3069,10 +3069,10 @@ function Ut() {
3069
3069
  for (f.method = L, f.arg = W; ; ) {
3070
3070
  var p = f.delegate;
3071
3071
  if (p) {
3072
- var b = O(p, f);
3073
- if (b) {
3074
- if (b === m) continue;
3075
- return b;
3072
+ var K = O(p, f);
3073
+ if (K) {
3074
+ if (K === m) continue;
3075
+ return K;
3076
3076
  }
3077
3077
  }
3078
3078
  if (f.method === "next")
@@ -3183,8 +3183,8 @@ function Ut() {
3183
3183
  if (this.done)
3184
3184
  throw e;
3185
3185
  var u = this;
3186
- function f(b, CA) {
3187
- return L.type = "throw", L.arg = e, u.next = b, CA && (u.method = "next", u.arg = E), !!CA;
3186
+ function f(K, CA) {
3187
+ return L.type = "throw", L.arg = e, u.next = K, CA && (u.method = "next", u.arg = E), !!CA;
3188
3188
  }
3189
3189
  for (var R = this.tryEntries.length - 1; R >= 0; --R) {
3190
3190
  var x = this.tryEntries[R], L = x.completion;
@@ -3582,7 +3582,7 @@ function rE() {
3582
3582
  action: "recognize",
3583
3583
  payload: { image: yield c(_), options: $, output: wA }
3584
3584
  }));
3585
- }), b = (_, $) => S(null, null, function* () {
3585
+ }), K = (_, $) => S(null, null, function* () {
3586
3586
  if (k) throw Error("`worker.detect` requires Legacy model, which was not loaded.");
3587
3587
  return U(A({
3588
3588
  id: $,
@@ -3620,7 +3620,7 @@ function rE() {
3620
3620
  reinitialize: L,
3621
3621
  setParameters: W,
3622
3622
  recognize: p,
3623
- detect: b,
3623
+ detect: K,
3624
3624
  terminate: CA
3625
3625
  };
3626
3626
  return mA().then(() => R(w)).then(() => x(w, a, r)).then(() => Y(hA)).catch(() => {
@@ -5210,7 +5210,7 @@ function Ph() {
5210
5210
  return (aA + L - 1) % L;
5211
5211
  };
5212
5212
  s.setDate(u + x - W(f));
5213
- var p = new Date(s.getFullYear(), 0, R), b = 24 * 60 * 60 * 1e3, CA = (s.getTime() - p.getTime()) / b, hA = 1 + Math.round((CA - x + W(p.getDay())) / L);
5213
+ var p = new Date(s.getFullYear(), 0, R), K = 24 * 60 * 60 * 1e3, CA = (s.getTime() - p.getTime()) / K, hA = 1 + Math.round((CA - x + W(p.getDay())) / L);
5214
5214
  return hA;
5215
5215
  }, Y = function(s, e, u, f) {
5216
5216
  var R = new Date(u, e, s), x = C ? B(R).isoWeek() : z(R, f);
@@ -5225,12 +5225,12 @@ function Ph() {
5225
5225
  u.push('<th scope="col"><abbr title="' + d(s, e) + '">' + d(s, e, !0) + "</abbr></th>");
5226
5226
  return "<thead><tr>" + (s.isRTL ? u.reverse() : u).join("") + "</tr></thead>";
5227
5227
  }, U = function(s, e, u, f, R, x) {
5228
- var L, W, p, b = s._o, CA = u === b.minYear, hA = u === b.maxYear, aA = '<div id="' + x + '" class="pika-title" role="heading" aria-live="assertive">', _, $, wA = !0, uA = !0;
5228
+ var L, W, p, K = s._o, CA = u === K.minYear, hA = u === K.maxYear, aA = '<div id="' + x + '" class="pika-title" role="heading" aria-live="assertive">', _, $, wA = !0, uA = !0;
5229
5229
  for (p = [], L = 0; L < 12; L++)
5230
- p.push('<option value="' + (u === R ? L - e : 12 + L - e) + '"' + (L === f ? ' selected="selected"' : "") + (CA && L < b.minMonth || hA && L > b.maxMonth ? ' disabled="disabled"' : "") + ">" + b.i18n.months[L] + "</option>");
5231
- for (_ = '<div class="pika-label">' + b.i18n.months[f] + '<select class="pika-select pika-select-month" tabindex="-1">' + p.join("") + "</select></div>", a(b.yearRange) ? (L = b.yearRange[0], W = b.yearRange[1] + 1) : (L = u - b.yearRange, W = 1 + u + b.yearRange), p = []; L < W && L <= b.maxYear; L++)
5232
- L >= b.minYear && p.push('<option value="' + L + '"' + (L === u ? ' selected="selected"' : "") + ">" + L + "</option>");
5233
- return $ = '<div class="pika-label">' + u + b.yearSuffix + '<select class="pika-select pika-select-year" tabindex="-1">' + p.join("") + "</select></div>", b.showMonthAfterYear ? aA += $ + _ : aA += _ + $, CA && (f === 0 || b.minMonth >= f) && (wA = !1), hA && (f === 11 || b.maxMonth <= f) && (uA = !1), e === 0 && (aA += '<button class="pika-prev' + (wA ? "" : " is-disabled") + '" type="button">' + b.i18n.previousMonth + "</button>"), e === s._o.numberOfMonths - 1 && (aA += '<button class="pika-next' + (uA ? "" : " is-disabled") + '" type="button">' + b.i18n.nextMonth + "</button>"), aA += "</div>";
5230
+ p.push('<option value="' + (u === R ? L - e : 12 + L - e) + '"' + (L === f ? ' selected="selected"' : "") + (CA && L < K.minMonth || hA && L > K.maxMonth ? ' disabled="disabled"' : "") + ">" + K.i18n.months[L] + "</option>");
5231
+ for (_ = '<div class="pika-label">' + K.i18n.months[f] + '<select class="pika-select pika-select-month" tabindex="-1">' + p.join("") + "</select></div>", a(K.yearRange) ? (L = K.yearRange[0], W = K.yearRange[1] + 1) : (L = u - K.yearRange, W = 1 + u + K.yearRange), p = []; L < W && L <= K.maxYear; L++)
5232
+ L >= K.minYear && p.push('<option value="' + L + '"' + (L === u ? ' selected="selected"' : "") + ">" + L + "</option>");
5233
+ return $ = '<div class="pika-label">' + u + K.yearSuffix + '<select class="pika-select pika-select-year" tabindex="-1">' + p.join("") + "</select></div>", K.showMonthAfterYear ? aA += $ + _ : aA += _ + $, CA && (f === 0 || K.minMonth >= f) && (wA = !1), hA && (f === 11 || K.maxMonth <= f) && (uA = !1), e === 0 && (aA += '<button class="pika-prev' + (wA ? "" : " is-disabled") + '" type="button">' + K.i18n.previousMonth + "</button>"), e === s._o.numberOfMonths - 1 && (aA += '<button class="pika-next' + (uA ? "" : " is-disabled") + '" type="button">' + K.i18n.nextMonth + "</button>"), aA += "</div>";
5234
5234
  }, V = function(s, e, u) {
5235
5235
  return '<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="' + u + '">' + X(s) + O(e) + "</table>";
5236
5236
  }, mA = function(s) {
@@ -5456,10 +5456,10 @@ function Ph() {
5456
5456
  }
5457
5457
  },
5458
5458
  adjustPosition: function() {
5459
- var s, e, u, f, R, x, L, W, p, b, CA, hA;
5459
+ var s, e, u, f, R, x, L, W, p, K, CA, hA;
5460
5460
  if (!this._o.container) {
5461
5461
  if (this.el.style.position = "absolute", s = this._o.trigger, e = s, u = this.el.offsetWidth, f = this.el.offsetHeight, R = window.innerWidth || I.documentElement.clientWidth, x = window.innerHeight || I.documentElement.clientHeight, L = window.pageYOffset || I.body.scrollTop || I.documentElement.scrollTop, CA = !0, hA = !0, typeof s.getBoundingClientRect == "function")
5462
- b = s.getBoundingClientRect(), W = b.left + window.pageXOffset, p = b.bottom + window.pageYOffset;
5462
+ K = s.getBoundingClientRect(), W = K.left + window.pageXOffset, p = K.bottom + window.pageYOffset;
5463
5463
  else
5464
5464
  for (W = e.offsetLeft, p = e.offsetTop + e.offsetHeight; e = e.offsetParent; )
5465
5465
  W += e.offsetLeft, p += e.offsetTop;
@@ -5472,12 +5472,12 @@ function Ph() {
5472
5472
  render: function(s, e, u) {
5473
5473
  var f = this._o, R = /* @__PURE__ */ new Date(), x = T(s, e), L = new Date(s, e, 1).getDay(), W = [], p = [];
5474
5474
  m(R), f.firstDay > 0 && (L -= f.firstDay, L < 0 && (L += 7));
5475
- for (var b = e === 0 ? 11 : e - 1, CA = e === 11 ? 0 : e + 1, hA = e === 0 ? s - 1 : s, aA = e === 11 ? s + 1 : s, _ = T(hA, b), $ = x + L, wA = $; wA > 7; )
5475
+ for (var K = e === 0 ? 11 : e - 1, CA = e === 11 ? 0 : e + 1, hA = e === 0 ? s - 1 : s, aA = e === 11 ? s + 1 : s, _ = T(hA, K), $ = x + L, wA = $; wA > 7; )
5476
5476
  wA -= 7;
5477
5477
  $ += 7 - wA;
5478
5478
  for (var uA = !1, iA = 0, qA = 0; iA < $; iA++) {
5479
5479
  var dA = new Date(s, e, 1 + (iA - L)), XA = i(this._d) ? q(dA, this._d) : !1, FA = q(dA, R), jA = f.events.indexOf(dA.toDateString()) !== -1, OA = iA < L || iA >= x + L, JA = 1 + (iA - L), VA = e, bA = s, MA = f.startRange && q(f.startRange, dA), WA = f.endRange && q(f.endRange, dA), Ag = f.startRange && f.endRange && f.startRange < dA && dA < f.endRange, kA = f.minDate && dA < f.minDate || f.maxDate && dA > f.maxDate || f.disableWeekends && r(dA) || f.disableDayFn && f.disableDayFn(dA);
5480
- OA && (iA < L ? (JA = _ + JA, VA = b, bA = hA) : (JA = JA - x, VA = CA, bA = aA));
5480
+ OA && (iA < L ? (JA = _ + JA, VA = K, bA = hA) : (JA = JA - x, VA = CA, bA = aA));
5481
5481
  var lA = {
5482
5482
  day: JA,
5483
5483
  month: VA,
@@ -5961,13 +5961,13 @@ function Th(E) {
5961
5961
  W.className = "wgt:grid wgt:max-sm:grid-cols-1 wgt:max-sm:p-4 wgt:max-sm:gap-3 wgt:grid-cols-2 wgt:gap-y-2 wgt:gap-x-4 wgt:space-y-2 wgt:px-6 wgt:py-4 wgt:rounded-xl wgt:bg-weak-50", x.appendChild(W), W.appendChild(c.container), W.appendChild(h.container), W.appendChild(o.container), W.appendChild(w.container);
5962
5962
  const p = document.createElement("div");
5963
5963
  p.className = "wgt:w-full wgt:grid wgt:grid-cols-1 wgt:md:grid-cols-2 wgt:space-x-4", x.appendChild(p), p.appendChild(X.container), t.appendChild(x);
5964
- const b = document.createElement("div");
5965
- b.className = "wgt:space-y-4";
5964
+ const K = document.createElement("div");
5965
+ K.className = "wgt:space-y-4";
5966
5966
  const CA = document.createElement("h3");
5967
5967
  CA.className = "wgt:text-lg wgt:font-semibold wgt:mb-4", CA.innerText = D(
5968
5968
  "legalRepInfo",
5969
5969
  "2. Thông tin người đại diện pháp luật:"
5970
- ), b.appendChild(CA);
5970
+ ), K.appendChild(CA);
5971
5971
  const hA = document.createElement("div");
5972
5972
  hA.className = "wgt:grid wgt:grid-cols-1 wgt:md:grid-cols-2 wgt:gap-4 wgt:space-y-2";
5973
5973
  const {
@@ -6033,14 +6033,14 @@ function Th(E) {
6033
6033
  const iA = document.createElement("div");
6034
6034
  iA.className = "wgt:grid wgt:grid-cols-1 wgt:md:grid-cols-2 wgt:gap-4", uA.appendChild(iA), iA.appendChild(m.container), iA.appendChild(q.container), hA.appendChild(uA);
6035
6035
  const qA = document.createElement("div");
6036
- qA.className = "wgt:grid wgt:grid-cols-1 wgt:md:grid-cols-4 wgt:gap-4 wgt:items-start", qA.appendChild(J.container), qA.appendChild(l.container), qA.appendChild(P.container), qA.appendChild(v.container), b.appendChild(hA), b.appendChild(qA), b.appendChild(d.container), b.appendChild(U.container);
6036
+ qA.className = "wgt:grid wgt:grid-cols-1 wgt:md:grid-cols-4 wgt:gap-4 wgt:items-start", qA.appendChild(J.container), qA.appendChild(l.container), qA.appendChild(P.container), qA.appendChild(v.container), K.appendChild(hA), K.appendChild(qA), K.appendChild(d.container), K.appendChild(U.container);
6037
6037
  const dA = document.createElement("ul");
6038
6038
  dA.className = "wgt:list-inside wgt:list-disc wgt:-mt-2";
6039
6039
  const XA = document.createElement("li");
6040
6040
  XA.className = "wgt:text-sm wgt:text-[#8C8C8C] wgt:italic", XA.innerText = D(
6041
6041
  "legalRepNote",
6042
6042
  "Vui lòng kiểm tra và nhập đúng tên người đại diện theo Giấy phép kinh doanh đã tải lên."
6043
- ), dA.appendChild(XA), b.appendChild(dA), t.appendChild(b);
6043
+ ), dA.appendChild(XA), K.appendChild(dA), t.appendChild(K);
6044
6044
  const FA = document.createElement("div");
6045
6045
  FA.className = "wgt:space-y-4";
6046
6046
  const jA = document.createElement("h3");
@@ -6100,7 +6100,7 @@ function Th(E) {
6100
6100
  j.className = "wgt:text-sm wgt:text-strong-950 wgt:leading-tight", j.appendChild(
6101
6101
  document.createTextNode(D("agreeWith", "Tôi đồng ý với ") + " ")
6102
6102
  );
6103
- const K = (N) => {
6103
+ const b = (N) => {
6104
6104
  const F = document.createElement("button");
6105
6105
  return F.className = "wgt:text-primary wgt:font-semibold wgt:hover:underline wgt:cursor-pointer", F.textContent = N, F.onclick = (PA) => {
6106
6106
  PA.preventDefault(), typeof C == "function" && C();
@@ -6114,7 +6114,7 @@ function Th(E) {
6114
6114
  }
6115
6115
  };
6116
6116
  j.appendChild(
6117
- K(D("termsAndUsagePolicy", "Điều khoản và Chính sách sử dụng"))
6117
+ b(D("termsAndUsagePolicy", "Điều khoản và Chính sách sử dụng"))
6118
6118
  ), j.appendChild(
6119
6119
  document.createTextNode(` ${D("of", "của")} ${AA()}.`)
6120
6120
  ), eA.appendChild(BA), eA.appendChild(j), t.appendChild(eA), BA.addEventListener("click", () => {
@@ -6772,8 +6772,8 @@ function Sh(r) {
6772
6772
  }
6773
6773
  });
6774
6774
  s.appendChild(e);
6775
- const { container: b, signatureSelectorWrapper: CA } = jh();
6776
- s.appendChild(b);
6775
+ const { container: K, signatureSelectorWrapper: CA } = jh();
6776
+ s.appendChild(K);
6777
6777
  const hA = document.createElement("div");
6778
6778
  hA.className = "wgt:flex wgt:items-center wgt:justify-center wgt:py-4", hA.innerHTML = `
6779
6779
  <div class="wgt:flex wgt:flex-col wgt:items-center wgt:gap-2">
@@ -6806,8 +6806,8 @@ function Sh(r) {
6806
6806
  Z && y.push({
6807
6807
  code: Z.code,
6808
6808
  quantity: Z.quantity
6809
- }), BA.length > 0 && BA.forEach((K) => {
6810
- const AA = l[K];
6809
+ }), BA.length > 0 && BA.forEach((b) => {
6810
+ const AA = l[b];
6811
6811
  AA.reward.packageCodes.length > 0 && AA.reward.packageCodes.forEach((QA) => {
6812
6812
  y.push({
6813
6813
  code: QA,
@@ -6816,7 +6816,7 @@ function Sh(r) {
6816
6816
  });
6817
6817
  });
6818
6818
  try {
6819
- const K = yield Xh({
6819
+ const b = yield Xh({
6820
6820
  eInvoiceRegistration: oA({}, nA),
6821
6821
  bank: a.bank,
6822
6822
  provider: o.route,
@@ -6829,9 +6829,9 @@ function Sh(r) {
6829
6829
  packages: y,
6830
6830
  promotionCodes: BA
6831
6831
  });
6832
- t(K.orderId), g();
6833
- } catch (K) {
6834
- console.error("Error creating order:", K), hB(D("errorCreatingOrder") || "Failed to create order");
6832
+ t(b.orderId), g();
6833
+ } catch (b) {
6834
+ console.error("Error creating order:", b), hB(D("errorCreatingOrder") || "Failed to create order");
6835
6835
  return;
6836
6836
  } finally {
6837
6837
  mA();
@@ -6891,27 +6891,27 @@ function Sh(r) {
6891
6891
  ), Cg.error(
6892
6892
  D("errorLoadingInitPackages") || "Failed to load registration packages"
6893
6893
  ), J = []), sA.status === "fulfilled") {
6894
- if (sA.value.forEach((K) => {
6895
- l[K.codes[0].code] = {
6896
- id: K.id,
6897
- name: K.name,
6898
- appliedPackages: K.condition.packageCodes,
6899
- code: K.codes[0].code,
6900
- limit: K.codes[0].limit,
6901
- used: K.codes[0].used,
6902
- bank: K.campaign.bank,
6903
- isActive: K.isActive,
6904
- type: K.type,
6905
- expiredAt: K.toDate,
6894
+ if (sA.value.forEach((b) => {
6895
+ l[b.codes[0].code] = {
6896
+ id: b.id,
6897
+ name: b.name,
6898
+ appliedPackages: b.condition.packageCodes,
6899
+ code: b.codes[0].code,
6900
+ limit: b.codes[0].limit,
6901
+ used: b.codes[0].used,
6902
+ bank: b.campaign.bank,
6903
+ isActive: b.isActive,
6904
+ type: b.type,
6905
+ expiredAt: b.toDate,
6906
6906
  isDisabled: !1,
6907
- reward: K.reward
6907
+ reward: b.reward
6908
6908
  };
6909
- }), Object.keys(l).length > 0 && (q = w || Object.keys(l), Ag()), y.status === "fulfilled") {
6909
+ }), Object.keys(l).length > 0 && (q = w || Object.keys(l).filter((b) => l[b].bank === h), Ag()), y.status === "fulfilled") {
6910
6910
  if (f(y.value || []), y.value.length > 0) {
6911
- const K = y.value.find(
6911
+ const b = y.value.find(
6912
6912
  (AA) => v.includes(AA.code)
6913
6913
  );
6914
- T = C ? C._id : K ? K._id : y.value[0]._id, L(y.value);
6914
+ T = C ? C._id : b ? b._id : y.value[0]._id, L(y.value);
6915
6915
  }
6916
6916
  p();
6917
6917
  } else
@@ -6923,10 +6923,10 @@ function Sh(r) {
6923
6923
  ), f([]), p();
6924
6924
  if (j.status === "fulfilled") {
6925
6925
  if (P = j.value || [], P.length > 0) {
6926
- const K = P.find(
6926
+ const b = P.find(
6927
6927
  (AA) => v.includes(AA.code)
6928
6928
  );
6929
- m = Q ? Q._id : K ? K._id : P[0]._id;
6929
+ m = Q ? Q._id : b ? b._id : P[0]._id;
6930
6930
  }
6931
6931
  } else
6932
6932
  console.error(
@@ -6953,14 +6953,14 @@ function Sh(r) {
6953
6953
  (j) => j.bank === h && j.appliedPackages.includes(eA)
6954
6954
  ), y = nA && !nA.isDisabled && !(nA.expiredAt < (/* @__PURE__ */ new Date()).toISOString()) && nA.limit !== nA.used;
6955
6955
  if (sA && !y) {
6956
- const { container: j, open: K } = Dg({
6956
+ const { container: j, open: b } = Dg({
6957
6957
  message: D("errorDiscountPackage"),
6958
6958
  okLabel: D("ok"),
6959
6959
  cancelLabel: D("cancel"),
6960
6960
  onClose: tA,
6961
6961
  isSuccess: !1
6962
6962
  });
6963
- X.appendChild(j), K();
6963
+ X.appendChild(j), b();
6964
6964
  } else
6965
6965
  tA();
6966
6966
  }
@@ -7031,12 +7031,12 @@ function Sh(r) {
7031
7031
  MA.className = "promotion-wrapper wgt:w-full wgt:flex wgt:flex-col wgt:gap-4";
7032
7032
  function WA(Z, eA) {
7033
7033
  const tA = R().find(
7034
- (K) => K._id === T
7034
+ (b) => b._id === T
7035
7035
  ), BA = P.find(
7036
- (K) => K._id === m
7037
- ), sA = R().find((K) => K.code === eA), nA = P.find((K) => K.code === eA), y = tA && tA.code === Z, j = BA && BA.code === Z;
7038
- Object.keys(l).forEach((K) => {
7039
- const AA = l[K];
7036
+ (b) => b._id === m
7037
+ ), sA = R().find((b) => b.code === eA), nA = P.find((b) => b.code === eA), y = tA && tA.code === Z, j = BA && BA.code === Z;
7038
+ Object.keys(l).forEach((b) => {
7039
+ const AA = l[b];
7040
7040
  if (AA.bank !== h || AA.code === "INITFEE-KM-500")
7041
7041
  return;
7042
7042
  let QA = !1;
@@ -7067,18 +7067,18 @@ function Sh(r) {
7067
7067
  const tA = document.createElement("div");
7068
7068
  tA.className = "wgt:w-full wgt:flex wgt:items-center wgt:gap-2 wgt:max-sm:flex-col wgt:max-sm:items-start";
7069
7069
  const BA = document.createElement("div");
7070
- BA.className = "wgt:flex wgt:min-w-[500px] wgt:h-11 wgt:items-center wgt:gap-3 wgt:px-3 wgt:py-2 wgt:rounded-lg wgt:bg-white wgt:border wgt:border-[#E4E7EC] wgt:max-sm:min-w-full wgt:max-sm:flex-wrap wgt:max-sm:h-fit", tA.appendChild(BA), q && q.length > 0 && q.filter((K) => {
7071
- const AA = Object.values(l).find((QA) => QA.code === K);
7070
+ BA.className = "wgt:flex wgt:min-w-[500px] wgt:h-11 wgt:items-center wgt:gap-3 wgt:px-3 wgt:py-2 wgt:rounded-lg wgt:bg-white wgt:border wgt:border-[#E4E7EC] wgt:max-sm:min-w-full wgt:max-sm:flex-wrap wgt:max-sm:h-fit", tA.appendChild(BA), q && q.length > 0 && q.filter((b) => {
7071
+ const AA = Object.values(l).find((QA) => QA.code === b);
7072
7072
  return AA && AA.bank === h;
7073
- }).forEach((K) => {
7073
+ }).forEach((b) => {
7074
7074
  const AA = document.createElement("div");
7075
- AA.className = "wgt:flex wgt:w-fit wgt:h-fit wgt:items-center wgt:gap-2 wgt:px-2 wgt:py-1.5 wgt:rounded-md wgt:bg-primary/10 wgt:border wgt:border-primary wgt:text-sm wgt:font-medium wgt:text-primary", AA.innerText = K;
7075
+ AA.className = "wgt:flex wgt:w-fit wgt:h-fit wgt:items-center wgt:gap-2 wgt:px-2 wgt:py-1.5 wgt:rounded-md wgt:bg-primary/10 wgt:border wgt:border-primary wgt:text-sm wgt:font-medium wgt:text-primary", AA.innerText = b;
7076
7076
  const QA = Bg({
7077
7077
  type: "button",
7078
7078
  title: "x",
7079
7079
  handleClick: () => {
7080
7080
  q = q.filter(
7081
- (cA) => cA !== K
7081
+ (cA) => cA !== b
7082
7082
  ), kA(), lA();
7083
7083
  }
7084
7084
  });
@@ -7102,7 +7102,7 @@ function Sh(r) {
7102
7102
  const y = Object.values(l).filter((j) => j.bank === h);
7103
7103
  if (y.length > 0)
7104
7104
  y.forEach((j) => {
7105
- const { container: K } = Nh({
7105
+ const { container: b } = Nh({
7106
7106
  promotion: RA(oA({}, j), {
7107
7107
  isSelected: q.includes(j.code)
7108
7108
  }),
@@ -7113,7 +7113,7 @@ function Sh(r) {
7113
7113
  },
7114
7114
  isDisabled: j.isDisabled || j.expiredAt < (/* @__PURE__ */ new Date()).toISOString() || j.limit === j.used
7115
7115
  });
7116
- nA.appendChild(K);
7116
+ nA.appendChild(b);
7117
7117
  });
7118
7118
  else {
7119
7119
  const j = document.createElement("span");
@@ -7134,8 +7134,8 @@ function Sh(r) {
7134
7134
  if (d && J.length > 0) {
7135
7135
  const y = document.createElement("tr"), j = document.createElement("td");
7136
7136
  j.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-sm wgt:text-strong-950 wgt:font-medium", j.innerText = `${(tA = J[0]) == null ? void 0 : tA.name}`, y.appendChild(j);
7137
- const K = document.createElement("td");
7138
- K.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-sm wgt:text-strong-950 wgt:font-medium", K.innerText = D("copy"), y.appendChild(K);
7137
+ const b = document.createElement("td");
7138
+ b.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-sm wgt:text-strong-950 wgt:font-medium", b.innerText = D("copy"), y.appendChild(b);
7139
7139
  const AA = document.createElement("td");
7140
7140
  AA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-2.5 wgt:text-center";
7141
7141
  const QA = document.createElement("div");
@@ -7158,8 +7158,8 @@ function Sh(r) {
7158
7158
  {
7159
7159
  const y = W(T);
7160
7160
  if (y) {
7161
- const j = document.createElement("tr"), K = document.createElement("td");
7162
- K.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium", K.innerText = y.name, j.appendChild(K);
7161
+ const j = document.createElement("tr"), b = document.createElement("td");
7162
+ b.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium", b.innerText = y.name, j.appendChild(b);
7163
7163
  const AA = document.createElement("td");
7164
7164
  AA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium", AA.innerText = D("package"), j.appendChild(AA);
7165
7165
  const QA = document.createElement("td");
@@ -7185,8 +7185,8 @@ function Sh(r) {
7185
7185
  {
7186
7186
  const y = O(m);
7187
7187
  if (y) {
7188
- const j = document.createElement("tr"), K = document.createElement("td");
7189
- K.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium", K.innerText = y.name, j.appendChild(K);
7188
+ const j = document.createElement("tr"), b = document.createElement("td");
7189
+ b.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium", b.innerText = y.name, j.appendChild(b);
7190
7190
  const AA = document.createElement("td");
7191
7191
  AA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-5 wgt:text-left wgt:text-sm wgt:text-strong-950 wgt:font-medium", AA.innerText = D("package"), j.appendChild(AA);
7192
7192
  const QA = document.createElement("td");
@@ -7212,8 +7212,8 @@ function Sh(r) {
7212
7212
  const Z = q.map((y) => Object.values(l).find((j) => j.code === y && j.bank === h)).filter((y) => y !== void 0);
7213
7213
  let eA = 0;
7214
7214
  Z.length > 0 && Z.forEach((y) => {
7215
- const j = document.createElement("tr"), K = document.createElement("td");
7216
- K.colSpan = 3, K.className = "wgt:px-3 wgt:py-2 wgt:text-sm", K.innerText = y.name || y.code, j.appendChild(K);
7215
+ const j = document.createElement("tr"), b = document.createElement("td");
7216
+ b.colSpan = 3, b.className = "wgt:px-3 wgt:py-2 wgt:text-sm", b.innerText = y.name || y.code, j.appendChild(b);
7217
7217
  const AA = document.createElement("td");
7218
7218
  j.appendChild(AA);
7219
7219
  const QA = document.createElement("td");
@@ -7224,7 +7224,7 @@ function Sh(r) {
7224
7224
  )} ${y.reward.packageCodes.join(", ")}`, QA.style.color = "#12B76A") : QA.innerText = "", j.appendChild(QA), $.appendChild(j);
7225
7225
  });
7226
7226
  {
7227
- const y = d && J.length > 0 ? ((nA = J[0]) == null ? void 0 : nA.price) * z : 0, j = W(T), K = j ? j.price * j.limit * Y : 0, AA = O(m), QA = AA ? AA.price * AA.limit * G : 0, cA = y + K + QA - eA;
7227
+ const y = d && J.length > 0 ? ((nA = J[0]) == null ? void 0 : nA.price) * z : 0, j = W(T), b = j ? j.price * j.limit * Y : 0, AA = O(m), QA = AA ? AA.price * AA.limit * G : 0, cA = y + b + QA - eA;
7228
7228
  c(cA);
7229
7229
  const EA = document.createElement("tr"), DA = document.createElement("td");
7230
7230
  DA.colSpan = 4, DA.className = "wgt:whitespace-nowrap wgt:px-3 wgt:py-3 wgt:text-left wgt:text-base wgt:font-semibold wgt:text-strong-950", DA.innerText = D("total"), EA.appendChild(DA);
@@ -8677,13 +8677,13 @@ function wc() {
8677
8677
  f[hA] = L.slice(u, u + aA), R[hA] = e.encode(f[hA]), u += aA, x = Math.max(x, aA);
8678
8678
  }
8679
8679
  const W = new Uint8Array(k);
8680
- let p = 0, b, CA;
8681
- for (b = 0; b < x; b++)
8680
+ let p = 0, K, CA;
8681
+ for (K = 0; K < x; K++)
8682
8682
  for (CA = 0; CA < G; CA++)
8683
- b < f[CA].length && (W[p++] = f[CA][b]);
8684
- for (b = 0; b < s; b++)
8683
+ K < f[CA].length && (W[p++] = f[CA][K]);
8684
+ for (K = 0; K < s; K++)
8685
8685
  for (CA = 0; CA < G; CA++)
8686
- W[p++] = R[CA][b];
8686
+ W[p++] = R[CA][K];
8687
8687
  return W;
8688
8688
  }
8689
8689
  function J(l, v, d, k) {
package/package.json CHANGED
@@ -46,7 +46,7 @@
46
46
  "prepare": "npm run build"
47
47
  },
48
48
  "type": "module",
49
- "version": "1.59.1",
49
+ "version": "1.59.2",
50
50
  "repository": {},
51
51
  "dependencies": {
52
52
  "axios": "^1.9.0",