@invoice-sdk/widget 1.67.7 → 1.67.8
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-
|
|
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-DhbRHX-w.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");
|
|
@@ -3101,15 +3101,15 @@ function Ln() {
|
|
|
3101
3101
|
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
3102
|
}, x = function(s, a) {
|
|
3103
3103
|
s.setHours(0, 0, 0, 0);
|
|
3104
|
-
var l = s.getDate(), d = s.getDay(), L = a,
|
|
3104
|
+
var l = s.getDate(), d = s.getDay(), L = a, y = L - 1, b = 7, QA = function(oA) {
|
|
3105
3105
|
return (oA + b - 1) % b;
|
|
3106
3106
|
};
|
|
3107
|
-
s.setDate(l +
|
|
3108
|
-
var $ = new Date(s.getFullYear(), 0, L), Z = 1440 * 60 * 1e3, hA = (s.getTime() - $.getTime()) / Z, aA = 1 + Math.round((hA -
|
|
3107
|
+
s.setDate(l + y - QA(d));
|
|
3108
|
+
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
3109
|
return aA;
|
|
3110
3110
|
}, X = function(s, a, l, d) {
|
|
3111
|
-
var L = new Date(l, a, s),
|
|
3112
|
-
return '<td class="pika-week">' +
|
|
3111
|
+
var L = new Date(l, a, s), y = C ? B(L).isoWeek() : x(L, d);
|
|
3112
|
+
return '<td class="pika-week">' + y + "</td>";
|
|
3113
3113
|
}, O = function(s, a, l, d) {
|
|
3114
3114
|
return '<tr class="pika-row' + (l ? " pick-whole-week" : "") + (d ? " is-selected" : "") + '">' + (a ? s.reverse() : s).join("") + "</tr>";
|
|
3115
3115
|
}, Y = function(s) {
|
|
@@ -3119,8 +3119,8 @@ function Ln() {
|
|
|
3119
3119
|
for (s.showWeekNumber && l.push("<th></th>"), a = 0; a < 7; a++)
|
|
3120
3120
|
l.push('<th scope="col"><abbr title="' + f(s, a) + '">' + f(s, a, !0) + "</abbr></th>");
|
|
3121
3121
|
return "<thead><tr>" + (s.isRTL ? l.reverse() : l).join("") + "</tr></thead>";
|
|
3122
|
-
}, U = function(s, a, l, d, L,
|
|
3123
|
-
var b, QA, $, Z = s._o, hA = l === Z.minYear, aA = l === Z.maxYear, oA = '<div id="' +
|
|
3122
|
+
}, U = function(s, a, l, d, L, y) {
|
|
3123
|
+
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
3124
|
for ($ = [], b = 0; b < 12; b++)
|
|
3125
3125
|
$.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
3126
|
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 +3133,11 @@ function Ln() {
|
|
|
3133
3133
|
a._onMouseDown = function(L) {
|
|
3134
3134
|
if (a._v) {
|
|
3135
3135
|
L = L || window.event;
|
|
3136
|
-
var
|
|
3137
|
-
if (
|
|
3138
|
-
if (h(
|
|
3136
|
+
var y = L.target || L.srcElement;
|
|
3137
|
+
if (y)
|
|
3138
|
+
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
3139
|
a.hide(), l.blurFieldOnSelect && l.field && l.field.blur();
|
|
3140
|
-
}, 100)) : h(
|
|
3140
|
+
}, 100)) : h(y, "pika-prev") ? a.prevMonth() : h(y, "pika-next") && a.nextMonth()), h(y, "pika-select"))
|
|
3141
3141
|
a._c = !0;
|
|
3142
3142
|
else if (L.preventDefault)
|
|
3143
3143
|
L.preventDefault();
|
|
@@ -3146,8 +3146,8 @@ function Ln() {
|
|
|
3146
3146
|
}
|
|
3147
3147
|
}, a._onChange = function(L) {
|
|
3148
3148
|
L = L || window.event;
|
|
3149
|
-
var
|
|
3150
|
-
|
|
3149
|
+
var y = L.target || L.srcElement;
|
|
3150
|
+
y && (h(y, "pika-select-month") ? a.gotoMonth(y.value) : h(y, "pika-select-year") && a.gotoYear(y.value));
|
|
3151
3151
|
}, a._onKeyChange = function(L) {
|
|
3152
3152
|
if (L = L || window.event, a.isVisible())
|
|
3153
3153
|
switch (L.keyCode) {
|
|
@@ -3181,8 +3181,8 @@ function Ln() {
|
|
|
3181
3181
|
} else
|
|
3182
3182
|
return new Date(Date.parse(l.field.value));
|
|
3183
3183
|
}, a._onInputChange = function(L) {
|
|
3184
|
-
var
|
|
3185
|
-
L.firedBy !== a && (
|
|
3184
|
+
var y;
|
|
3185
|
+
L.firedBy !== a && (y = a._parseFieldValue(), i(y) && a.setDate(y), a._v || a.show());
|
|
3186
3186
|
}, a._onInputFocus = function() {
|
|
3187
3187
|
a.show();
|
|
3188
3188
|
}, a._onInputClick = function() {
|
|
@@ -3198,14 +3198,14 @@ function Ln() {
|
|
|
3198
3198
|
}, 50)), a._c = !1;
|
|
3199
3199
|
}, a._onClick = function(L) {
|
|
3200
3200
|
L = L || window.event;
|
|
3201
|
-
var
|
|
3202
|
-
if (
|
|
3203
|
-
!Q && h(
|
|
3201
|
+
var y = L.target || L.srcElement, b = y;
|
|
3202
|
+
if (y) {
|
|
3203
|
+
!Q && h(y, "pika-select") && (y.onchange || (y.setAttribute("onchange", "return;"), n(y, "change", a._onChange)));
|
|
3204
3204
|
do
|
|
3205
3205
|
if (h(b, "pika-single") || b === l.trigger)
|
|
3206
3206
|
return;
|
|
3207
3207
|
while (b = b.parentNode);
|
|
3208
|
-
a._v &&
|
|
3208
|
+
a._v && y !== l.trigger && b !== l.trigger && a.hide();
|
|
3209
3209
|
}
|
|
3210
3210
|
}, 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
3211
|
var d = l.defaultDate;
|
|
@@ -3341,8 +3341,8 @@ function Ln() {
|
|
|
3341
3341
|
*/
|
|
3342
3342
|
draw: function(s) {
|
|
3343
3343
|
if (!(!this._v && !s)) {
|
|
3344
|
-
var a = this._o, l = a.minYear, d = a.maxYear, L = a.minMonth,
|
|
3345
|
-
this._y <= l && (this._y = l, !isNaN(L) && this._m < L && (this._m = L)), this._y >= d && (this._y = d, !isNaN(
|
|
3344
|
+
var a = this._o, l = a.minYear, d = a.maxYear, L = a.minMonth, y = 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(y) && this._m > y && (this._m = y));
|
|
3346
3346
|
for (var $ = 0; $ < a.numberOfMonths; $++)
|
|
3347
3347
|
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
3348
|
this.el.innerHTML = b, a.bound && a.field.type !== "hidden" && E(function() {
|
|
@@ -3351,28 +3351,28 @@ function Ln() {
|
|
|
3351
3351
|
}
|
|
3352
3352
|
},
|
|
3353
3353
|
adjustPosition: function() {
|
|
3354
|
-
var s, a, l, d, L,
|
|
3354
|
+
var s, a, l, d, L, y, b, QA, $, Z, hA, aA;
|
|
3355
3355
|
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,
|
|
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, y = window.innerHeight || I.documentElement.clientHeight, b = window.pageYOffset || I.body.scrollTop || I.documentElement.scrollTop, hA = !0, aA = !0, typeof s.getBoundingClientRect == "function")
|
|
3357
3357
|
Z = s.getBoundingClientRect(), QA = Z.left + window.pageXOffset, $ = Z.bottom + window.pageYOffset;
|
|
3358
3358
|
else
|
|
3359
3359
|
for (QA = a.offsetLeft, $ = a.offsetTop + a.offsetHeight; a = a.offsetParent; )
|
|
3360
3360
|
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 >
|
|
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 > 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
3362
|
}
|
|
3363
3363
|
},
|
|
3364
3364
|
/**
|
|
3365
3365
|
* render HTML for a particular month
|
|
3366
3366
|
*/
|
|
3367
3367
|
render: function(s, a, l) {
|
|
3368
|
-
var d = this._o, L = /* @__PURE__ */ new Date(),
|
|
3368
|
+
var d = this._o, L = /* @__PURE__ */ new Date(), y = k(s, a), b = new Date(s, a, 1).getDay(), QA = [], $ = [];
|
|
3369
3369
|
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 =
|
|
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 = y + b, lA = kA; lA > 7; )
|
|
3371
3371
|
lA -= 7;
|
|
3372
3372
|
kA += 7 - lA;
|
|
3373
3373
|
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 >=
|
|
3375
|
-
ZA && (mA < b ? (xA = HA + xA, VA = Z, GA = aA) : (xA = xA -
|
|
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 >= 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);
|
|
3375
|
+
ZA && (mA < b ? (xA = HA + xA, VA = Z, GA = aA) : (xA = xA - y, VA = hA, GA = oA));
|
|
3376
3376
|
var pA = {
|
|
3377
3377
|
day: xA,
|
|
3378
3378
|
month: VA,
|
|
@@ -3988,7 +3988,7 @@ function Ct(t) {
|
|
|
3988
3988
|
) : v.setError(null);
|
|
3989
3989
|
}
|
|
3990
3990
|
});
|
|
3991
|
-
const
|
|
3991
|
+
const y = dA({
|
|
3992
3992
|
name: "invoiceSymbol",
|
|
3993
3993
|
label: u("invoiceSymbol", "Ký hiệu hóa đơn"),
|
|
3994
3994
|
required: !0,
|
|
@@ -4003,12 +4003,12 @@ function Ct(t) {
|
|
|
4003
4003
|
X = bI({
|
|
4004
4004
|
initialValue: ((YB = g == null ? void 0 : g.eInvoiceRegistration) == null ? void 0 : YB.invoiceSymbol) || "1C25TYY",
|
|
4005
4005
|
onChange: (F) => {
|
|
4006
|
-
|
|
4006
|
+
y.inputEl.value = F, MA();
|
|
4007
4007
|
}
|
|
4008
4008
|
}), 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(
|
|
4009
|
+
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
4010
|
}), 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 ?
|
|
4011
|
+
F.target.checked ? N.appendChild(G.container) : (G.inputEl.value = "", G.setError(null), N.contains(G.container) && N.removeChild(G.container));
|
|
4012
4012
|
}), G = dA({
|
|
4013
4013
|
name: "previousOtherProviderNameField",
|
|
4014
4014
|
label: u("providerName", "Tên NCC"),
|
|
@@ -4234,7 +4234,7 @@ function Ct(t) {
|
|
|
4234
4234
|
const K = document.createElement("h3");
|
|
4235
4235
|
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
4236
|
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(
|
|
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(y.container), fA.appendChild(EA);
|
|
4238
4238
|
const CA = document.createElement("div");
|
|
4239
4239
|
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
4240
|
const _ = document.createElement("div");
|
|
@@ -4251,8 +4251,8 @@ function Ct(t) {
|
|
|
4251
4251
|
"hasUsedEInvoiceBefore",
|
|
4252
4252
|
"Bạn đang sử dụng nhà NCC hoá đơn điện tử khác M-invoice không?"
|
|
4253
4253
|
), AA.appendChild(R);
|
|
4254
|
-
const
|
|
4255
|
-
|
|
4254
|
+
const N = document.createElement("div");
|
|
4255
|
+
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
4256
|
const p = document.createElement("div");
|
|
4257
4257
|
p.className = "wgt:flex wgt:items-center wgt:space-x-2 wgt:mt-4";
|
|
4258
4258
|
let BA = !0;
|
|
@@ -4382,7 +4382,7 @@ function Ct(t) {
|
|
|
4382
4382
|
typeof A == "function" && A(z);
|
|
4383
4383
|
});
|
|
4384
4384
|
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(
|
|
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(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
4386
|
container: c,
|
|
4387
4387
|
getValues: xg
|
|
4388
4388
|
};
|
|
@@ -4546,7 +4546,7 @@ function wQ({
|
|
|
4546
4546
|
}
|
|
4547
4547
|
};
|
|
4548
4548
|
}
|
|
4549
|
-
const Et = "1.67.
|
|
4549
|
+
const Et = "1.67.8";
|
|
4550
4550
|
function nt(B) {
|
|
4551
4551
|
return V(this, arguments, function* ({ search: A, bank: g }) {
|
|
4552
4552
|
return (yield NA.get(`${Zg}`, {
|
|
@@ -4939,7 +4939,7 @@ function mt(k) {
|
|
|
4939
4939
|
const {
|
|
4940
4940
|
container: d,
|
|
4941
4941
|
invoiceSelectorWrapper: L,
|
|
4942
|
-
setInvoicePackages:
|
|
4942
|
+
setInvoicePackages: y,
|
|
4943
4943
|
getInvoicePackages: b,
|
|
4944
4944
|
getFilteredInvoiceOptions: QA,
|
|
4945
4945
|
setFilteredInvoiceOptions: $,
|
|
@@ -4974,7 +4974,7 @@ function mt(k) {
|
|
|
4974
4974
|
mA.appendChild(yA);
|
|
4975
4975
|
const PA = (K, EA, CA, _) => V(null, null, function* () {
|
|
4976
4976
|
s();
|
|
4977
|
-
const
|
|
4977
|
+
const N = w.eInvoiceRegistration, { isUsedEInvoiceBefore: wA } = N, AA = tC(N, ["isUsedEInvoiceBefore"]);
|
|
4978
4978
|
let R = [
|
|
4979
4979
|
{
|
|
4980
4980
|
code: EA.code,
|
|
@@ -5047,7 +5047,7 @@ function mt(k) {
|
|
|
5047
5047
|
const [
|
|
5048
5048
|
AA,
|
|
5049
5049
|
R,
|
|
5050
|
-
|
|
5050
|
+
N,
|
|
5051
5051
|
p,
|
|
5052
5052
|
BA
|
|
5053
5053
|
] = yield Promise.allSettled([
|
|
@@ -5065,9 +5065,9 @@ function mt(k) {
|
|
|
5065
5065
|
AA.reason
|
|
5066
5066
|
), hg.error(
|
|
5067
5067
|
u("errorCheckingCustomer") || "Failed to check customer status"
|
|
5068
|
-
), x = !1),
|
|
5068
|
+
), x = !1), N.status === "fulfilled" ? m = N.value || [] : (console.error(
|
|
5069
5069
|
"Failed to load init packages:",
|
|
5070
|
-
|
|
5070
|
+
N.reason
|
|
5071
5071
|
), hg.error(
|
|
5072
5072
|
u("errorLoadingInitPackages") || "Failed to load registration packages"
|
|
5073
5073
|
), m = []), R.status === "fulfilled" ? (((_ = R == null ? void 0 : R.value) == null ? void 0 : _.length) > 0 && R.value.forEach((j) => {
|
|
@@ -5089,7 +5089,7 @@ function mt(k) {
|
|
|
5089
5089
|
}), Object.keys(f).length > 0 && (P = e || Object.keys(f).filter(
|
|
5090
5090
|
(j) => f[j].bank === h && f[j].expiredAt >= (/* @__PURE__ */ new Date()).toISOString() && f[j].limit > f[j].used
|
|
5091
5091
|
), sg())) : console.error("Failed to load promotions:", R.reason), p.status === "fulfilled") {
|
|
5092
|
-
if (
|
|
5092
|
+
if (y(p.value || []), p.value.length > 0) {
|
|
5093
5093
|
const j = p.value.find(
|
|
5094
5094
|
(IA) => H.includes(IA.code)
|
|
5095
5095
|
);
|
|
@@ -5102,7 +5102,7 @@ function mt(k) {
|
|
|
5102
5102
|
p.reason
|
|
5103
5103
|
), hg.error(
|
|
5104
5104
|
u("errorLoadingInvoicePackages") || "Failed to load invoice packages"
|
|
5105
|
-
),
|
|
5105
|
+
), y([]), hA();
|
|
5106
5106
|
if (BA.status === "fulfilled") {
|
|
5107
5107
|
if (J = BA.value || [], J.length > 0) {
|
|
5108
5108
|
const j = J.find(
|
|
@@ -5132,19 +5132,19 @@ function mt(k) {
|
|
|
5132
5132
|
}
|
|
5133
5133
|
function ZA(K, EA, CA) {
|
|
5134
5134
|
const _ = Object.values(f).find(
|
|
5135
|
-
(
|
|
5135
|
+
(N) => N.bank === h && N.appliedPackages.includes(K)
|
|
5136
5136
|
), wA = _ && !_.isDisabled && !(_.expiredAt < (/* @__PURE__ */ new Date()).toISOString()) && _.limit !== _.used, AA = Object.values(f).find(
|
|
5137
|
-
(
|
|
5137
|
+
(N) => N.bank === h && N.appliedPackages.includes(EA)
|
|
5138
5138
|
), R = AA && !AA.isDisabled && !(AA.expiredAt < (/* @__PURE__ */ new Date()).toISOString()) && AA.limit !== AA.used;
|
|
5139
5139
|
if (wA && !R) {
|
|
5140
|
-
const { container:
|
|
5140
|
+
const { container: N, open: p } = CC({
|
|
5141
5141
|
message: u("errorDiscountPackage"),
|
|
5142
5142
|
okLabel: u("ok"),
|
|
5143
5143
|
cancelLabel: u("cancel"),
|
|
5144
5144
|
onClose: CA,
|
|
5145
5145
|
isSuccess: !1
|
|
5146
5146
|
});
|
|
5147
|
-
W.appendChild(
|
|
5147
|
+
W.appendChild(N), p();
|
|
5148
5148
|
} else
|
|
5149
5149
|
CA();
|
|
5150
5150
|
}
|
|
@@ -5246,7 +5246,7 @@ function mt(k) {
|
|
|
5246
5246
|
}
|
|
5247
5247
|
function XA() {
|
|
5248
5248
|
if (Object.values(f).filter(
|
|
5249
|
-
(
|
|
5249
|
+
(N) => N.bank === h
|
|
5250
5250
|
).length === 0) {
|
|
5251
5251
|
l.contains(TA) && l.removeChild(TA);
|
|
5252
5252
|
return;
|
|
@@ -5292,24 +5292,24 @@ function mt(k) {
|
|
|
5292
5292
|
const AA = document.createElement("div");
|
|
5293
5293
|
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
5294
|
const R = Object.values(f).filter(
|
|
5295
|
-
(
|
|
5295
|
+
(N) => N.bank === h
|
|
5296
5296
|
);
|
|
5297
5297
|
if (R.length > 0)
|
|
5298
|
-
R.forEach((
|
|
5298
|
+
R.forEach((N) => {
|
|
5299
5299
|
const { container: p } = at({
|
|
5300
|
-
promotion: FA(sA({},
|
|
5301
|
-
isSelected: P.includes(
|
|
5300
|
+
promotion: FA(sA({}, N), {
|
|
5301
|
+
isSelected: P.includes(N.code)
|
|
5302
5302
|
}),
|
|
5303
5303
|
onSelect: (BA, j) => {
|
|
5304
5304
|
j && P.push(BA), XA(), fA();
|
|
5305
5305
|
},
|
|
5306
|
-
isDisabled:
|
|
5306
|
+
isDisabled: N.isDisabled || N.expiredAt < (/* @__PURE__ */ new Date()).toISOString() || N.limit === N.used
|
|
5307
5307
|
});
|
|
5308
5308
|
AA.appendChild(p);
|
|
5309
5309
|
});
|
|
5310
5310
|
else {
|
|
5311
|
-
const
|
|
5312
|
-
|
|
5311
|
+
const N = document.createElement("span");
|
|
5312
|
+
N.className = "wgt:text-text-sub-600", N.innerText = u("noPromotionFound"), TA.appendChild(N);
|
|
5313
5313
|
}
|
|
5314
5314
|
}
|
|
5315
5315
|
function fA() {
|
|
@@ -5327,8 +5327,8 @@ function mt(k) {
|
|
|
5327
5327
|
(R) => R._id === r
|
|
5328
5328
|
);
|
|
5329
5329
|
if (x && (m == null ? void 0 : m.length) > 0 && !(K != null && K.withoutInitialFee)) {
|
|
5330
|
-
const R = document.createElement("tr"),
|
|
5331
|
-
|
|
5330
|
+
const R = document.createElement("tr"), N = document.createElement("td");
|
|
5331
|
+
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
5332
|
const p = document.createElement("td");
|
|
5333
5333
|
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
5334
|
const BA = document.createElement("td");
|
|
@@ -5353,10 +5353,10 @@ function mt(k) {
|
|
|
5353
5353
|
{
|
|
5354
5354
|
const R = Z(r);
|
|
5355
5355
|
if (R) {
|
|
5356
|
-
const
|
|
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,
|
|
5356
|
+
const N = 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, N.appendChild(p);
|
|
5358
5358
|
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"),
|
|
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"), N.appendChild(BA);
|
|
5360
5360
|
const j = document.createElement("td");
|
|
5361
5361
|
j.className = "wgt:whitespace-nowrap wgt:px-4 wgt:py-3 wgt:text-center";
|
|
5362
5362
|
const IA = document.createElement("div");
|
|
@@ -5370,20 +5370,20 @@ function mt(k) {
|
|
|
5370
5370
|
const cA = document.createElement("button");
|
|
5371
5371
|
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
5372
|
Y += 1, fA();
|
|
5373
|
-
}), IA.appendChild(cA), j.appendChild(IA),
|
|
5373
|
+
}), IA.appendChild(cA), j.appendChild(IA), N.appendChild(j);
|
|
5374
5374
|
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",
|
|
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", N.appendChild(vA);
|
|
5376
5376
|
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",
|
|
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", N.appendChild(OA), DA.appendChild(N);
|
|
5378
5378
|
}
|
|
5379
5379
|
}
|
|
5380
5380
|
{
|
|
5381
5381
|
const R = U(M);
|
|
5382
5382
|
if (R) {
|
|
5383
|
-
const
|
|
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,
|
|
5383
|
+
const N = 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, N.appendChild(p);
|
|
5385
5385
|
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"),
|
|
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"), N.appendChild(BA);
|
|
5387
5387
|
const j = document.createElement("td");
|
|
5388
5388
|
j.className = "wgt:whitespace-nowrap wgt:px-4 wgt:py-3 wgt:text-center";
|
|
5389
5389
|
const IA = document.createElement("div");
|
|
@@ -5397,39 +5397,39 @@ function mt(k) {
|
|
|
5397
5397
|
const cA = document.createElement("button");
|
|
5398
5398
|
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
5399
|
G += 1, fA();
|
|
5400
|
-
}), IA.appendChild(cA), j.appendChild(IA),
|
|
5400
|
+
}), IA.appendChild(cA), j.appendChild(IA), N.appendChild(j);
|
|
5401
5401
|
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)),
|
|
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)), N.appendChild(vA);
|
|
5403
5403
|
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",
|
|
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", N.appendChild(OA), DA.appendChild(N);
|
|
5405
5405
|
}
|
|
5406
5406
|
}
|
|
5407
5407
|
const EA = P.map(
|
|
5408
5408
|
(R) => Object.values(f).find(
|
|
5409
|
-
(
|
|
5409
|
+
(N) => N.code === R && N.bank === h
|
|
5410
5410
|
)
|
|
5411
5411
|
).filter((R) => R !== void 0);
|
|
5412
5412
|
let CA = 0;
|
|
5413
5413
|
EA.length > 0 && EA.forEach((R) => {
|
|
5414
5414
|
var IA, tA, eA, cA, vA, OA;
|
|
5415
|
-
const
|
|
5415
|
+
const N = document.createElement("tr"), p = document.createElement("td");
|
|
5416
5416
|
p.colSpan = 3, p.className = "wgt:px-3 wgt:py-2 wgt:text-sm", p.innerHTML = `
|
|
5417
5417
|
<div class="wgt:flex wgt:flex-row wgt:items-center wgt:gap-2">
|
|
5418
5418
|
<img src="${rt}" alt="ticket" class="wgt:w-4">
|
|
5419
5419
|
<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
5420
|
</div>
|
|
5421
|
-
`,
|
|
5421
|
+
`, N.appendChild(p);
|
|
5422
5422
|
const BA = document.createElement("td");
|
|
5423
|
-
|
|
5423
|
+
N.appendChild(BA);
|
|
5424
5424
|
const j = document.createElement("td");
|
|
5425
5425
|
j.className = "wgt:px-3 wgt:py-2 wgt:text-sm wgt:font-semibold", R.type === "discount" ? (j.innerText = `-${SA(
|
|
5426
5426
|
(IA = R == null ? void 0 : R.reward) == null ? void 0 : IA.discountAmount
|
|
5427
5427
|
)} 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
5428
|
"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 = "",
|
|
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 = "", N.appendChild(j), DA.appendChild(N);
|
|
5430
5430
|
});
|
|
5431
5431
|
{
|
|
5432
|
-
const R = x && m.length > 0 && !(K != null && K.withoutInitialFee) ? ((AA = m[0]) == null ? void 0 : AA.price) * O : 0,
|
|
5432
|
+
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
5433
|
c(IA);
|
|
5434
5434
|
const tA = document.createElement("tr"), eA = document.createElement("td");
|
|
5435
5435
|
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 +6876,15 @@ function Nt() {
|
|
|
6876
6876
|
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
6877
|
let l = 0;
|
|
6878
6878
|
const d = new Array(O), L = new Array(O);
|
|
6879
|
-
let
|
|
6879
|
+
let y = 0;
|
|
6880
6880
|
const b = new Uint8Array(J.buffer);
|
|
6881
6881
|
for (let aA = 0; aA < O; aA++) {
|
|
6882
6882
|
const oA = aA < G ? W : S;
|
|
6883
|
-
d[aA] = b.slice(l, l + oA), L[aA] = a.encode(d[aA]), l += oA,
|
|
6883
|
+
d[aA] = b.slice(l, l + oA), L[aA] = a.encode(d[aA]), l += oA, y = Math.max(y, oA);
|
|
6884
6884
|
}
|
|
6885
6885
|
const QA = new Uint8Array(H);
|
|
6886
6886
|
let $ = 0, Z, hA;
|
|
6887
|
-
for (Z = 0; Z <
|
|
6887
|
+
for (Z = 0; Z < y; Z++)
|
|
6888
6888
|
for (hA = 0; hA < O; hA++)
|
|
6889
6889
|
Z < d[hA].length && (QA[$++] = d[hA][Z]);
|
|
6890
6890
|
for (Z = 0; Z < s; Z++)
|
|
@@ -7112,8 +7112,8 @@ function Ut({
|
|
|
7112
7112
|
const D = document.createElement("p");
|
|
7113
7113
|
D.className = "wgt:text-base wgt:font-medium wgt:leading-6 wgt:text-primary";
|
|
7114
7114
|
const q = (d) => {
|
|
7115
|
-
const L = Math.floor(d / 60),
|
|
7116
|
-
return `${L.toString().padStart(2, "0")}:${
|
|
7115
|
+
const L = Math.floor(d / 60), y = d % 60;
|
|
7116
|
+
return `${L.toString().padStart(2, "0")}:${y.toString().padStart(2, "0")}`;
|
|
7117
7117
|
}, k = () => {
|
|
7118
7118
|
D.innerHTML = `${u(
|
|
7119
7119
|
"completePaymentIn"
|
|
@@ -7174,11 +7174,11 @@ function Ut({
|
|
|
7174
7174
|
d.className = "wgt:w-full wgt:flex wgt:items-start wgt:justify-between wgt:gap-[0.5rem]";
|
|
7175
7175
|
const L = document.createElement("h4");
|
|
7176
7176
|
L.className = "wgt:text-sm wgt:font-normal wgt:leading-5 wgt:text-[#475467]", L.innerText = u("promotion");
|
|
7177
|
-
const
|
|
7178
|
-
|
|
7177
|
+
const y = document.createElement("div");
|
|
7178
|
+
y.className = "wgt:flex wgt:items-center wgt:justify-end wgt:flex-wrap wgt:gap-2", c.forEach((b) => {
|
|
7179
7179
|
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,
|
|
7181
|
-
}), d.appendChild(L), d.appendChild(
|
|
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, y.appendChild(QA);
|
|
7181
|
+
}), d.appendChild(L), d.appendChild(y), P.appendChild(d);
|
|
7182
7182
|
}
|
|
7183
7183
|
const W = document.createElement("hr");
|
|
7184
7184
|
P.appendChild(W);
|
|
@@ -7286,7 +7286,7 @@ function Zt(n) {
|
|
|
7286
7286
|
return V(this, null, function* () {
|
|
7287
7287
|
const { registrationData: s } = Q, d = s.eInvoiceRegistration, { isUsedEInvoiceBefore: a } = d, l = tC(d, ["isUsedEInvoiceBefore"]);
|
|
7288
7288
|
try {
|
|
7289
|
-
const
|
|
7289
|
+
const y = (yield rI({
|
|
7290
7290
|
eInvoiceRegistration: sA({}, l),
|
|
7291
7291
|
bank: s.bank,
|
|
7292
7292
|
provider: s.provider,
|
|
@@ -7299,7 +7299,7 @@ function Zt(n) {
|
|
|
7299
7299
|
packages: s.packages,
|
|
7300
7300
|
promotionCodes: s.promotionCodes
|
|
7301
7301
|
})).orderId;
|
|
7302
|
-
|
|
7302
|
+
y !== o && (o = y, E(y), yield G(y), S(), H());
|
|
7303
7303
|
} catch (L) {
|
|
7304
7304
|
console.error("Error creating order:", L), $A(u("errorCreatingOrder") || "Failed to create order");
|
|
7305
7305
|
return;
|
|
@@ -7338,8 +7338,8 @@ function Zt(n) {
|
|
|
7338
7338
|
accountNumber: (t == null ? void 0 : t.va_account_no) || "",
|
|
7339
7339
|
bankName: (t == null ? void 0 : t.bank_code) || ""
|
|
7340
7340
|
});
|
|
7341
|
-
} catch (
|
|
7342
|
-
if (((l = (a =
|
|
7341
|
+
} catch (y) {
|
|
7342
|
+
if (((l = (a = y.response) == null ? void 0 : a.data) == null ? void 0 : l.error_code) === "BILL_ID_EXISTED") {
|
|
7343
7343
|
if (console.log("Bill ID existed, recalling createOrder..."), e = !1, w++, w >= pt) {
|
|
7344
7344
|
$A(u("errorQRGeneration"), {
|
|
7345
7345
|
okLabel: u("ok"),
|
|
@@ -7351,7 +7351,7 @@ function Zt(n) {
|
|
|
7351
7351
|
}
|
|
7352
7352
|
yield Y();
|
|
7353
7353
|
return;
|
|
7354
|
-
} else if (((L = (d =
|
|
7354
|
+
} else if (((L = (d = y.response) == null ? void 0 : d.data) == null ? void 0 : L.error_code) === "AUTHEN_FAIL") {
|
|
7355
7355
|
$A(u("errorQRGeneration"), {
|
|
7356
7356
|
okLabel: u("ok"),
|
|
7357
7357
|
onClose: () => {
|