@invoice-sdk/widget 1.69.2 → 1.69.3
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.
|
@@ -2,7 +2,7 @@ var HI = Object.defineProperty, kI = Object.defineProperties;
|
|
|
2
2
|
var YI = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Sg = Object.getOwnPropertySymbols;
|
|
4
4
|
var jB = Object.prototype.hasOwnProperty, KB = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var Hg = (A, g) => (g = Symbol[A]) ? g : Symbol.for("Symbol." + A), xI = (A) => {
|
|
6
6
|
throw TypeError(A);
|
|
7
7
|
};
|
|
8
8
|
var bB = (A, g, B) => g in A ? HI(A, g, { enumerable: !0, configurable: !0, writable: !0, value: B }) : A[g] = B, qA = (A, g) => {
|
|
@@ -48,10 +48,10 @@ var U = (A, g, B) => new Promise((C, Q) => {
|
|
|
48
48
|
c(w);
|
|
49
49
|
}
|
|
50
50
|
}, Q = (E) => I[E] = (n) => new Promise((t, c) => C(E, n, t, c)), I = {};
|
|
51
|
-
return B = B.apply(A, g), I[
|
|
51
|
+
return B = B.apply(A, g), I[Hg("asyncIterator")] = () => I, Q("next"), Q("throw"), Q("return"), I;
|
|
52
52
|
}, rC = (A) => {
|
|
53
|
-
var g = A[
|
|
54
|
-
return g == null ? (g = A[
|
|
53
|
+
var g = A[Hg("asyncIterator")], B = !1, C, Q = {};
|
|
54
|
+
return g == null ? (g = A[Hg("iterator")](), C = (I) => Q[I] = (E) => g[I](E)) : (g = g.call(A), C = (I) => Q[I] = (E) => {
|
|
55
55
|
if (B) {
|
|
56
56
|
if (B = !1, I === "throw") throw E;
|
|
57
57
|
return E;
|
|
@@ -63,11 +63,11 @@ var U = (A, g, B) => new Promise((C, Q) => {
|
|
|
63
63
|
t instanceof Object || xI("Object expected"), n(t);
|
|
64
64
|
}), 1)
|
|
65
65
|
};
|
|
66
|
-
}), Q[
|
|
66
|
+
}), Q[Hg("iterator")] = () => Q, C("next"), "throw" in g ? C("throw") : Q.throw = (I) => {
|
|
67
67
|
throw I;
|
|
68
68
|
}, "return" in g && C("return"), Q;
|
|
69
|
-
}, SB = (A, g, B) => (g = A[
|
|
70
|
-
import { t as u, g as AB, a as gB, b as Ig, c as RI, m as GI, d as zI, f as XI, v as OI, r as bQ, u as jQ } from "./index-
|
|
69
|
+
}, SB = (A, g, B) => (g = A[Hg("asyncIterator")]) ? g.call(A) : (A = A[Hg("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 AB, a as gB, b as Ig, c as RI, m as GI, d as zI, f as XI, v as OI, r as bQ, u as jQ } from "./index-BnQCNbqf.js";
|
|
71
71
|
import { g as KQ } from "./_commonjsHelpers-bAxELxBV.js";
|
|
72
72
|
function UB({ steps: A = [], currentStep: g = 1 } = {}) {
|
|
73
73
|
const B = document.createElement("div");
|
|
@@ -1898,7 +1898,7 @@ function hI(A, g, B) {
|
|
|
1898
1898
|
return A && (C || B == !1) ? on(A, g) : g;
|
|
1899
1899
|
}
|
|
1900
1900
|
const BQ = (A) => A instanceof LA ? qA({}, A) : A;
|
|
1901
|
-
function
|
|
1901
|
+
function Pg(A, g) {
|
|
1902
1902
|
g = g || {};
|
|
1903
1903
|
const B = {};
|
|
1904
1904
|
function C(c, h, a, e) {
|
|
@@ -1963,7 +1963,7 @@ function Mg(A, g) {
|
|
|
1963
1963
|
}), B;
|
|
1964
1964
|
}
|
|
1965
1965
|
const cI = (A) => {
|
|
1966
|
-
const g =
|
|
1966
|
+
const g = Pg({}, A);
|
|
1967
1967
|
let { data: B, withXSRFToken: C, xsrfHeaderName: Q, xsrfCookieName: I, headers: E, auth: n } = g;
|
|
1968
1968
|
g.headers = E = LA.from(E), g.url = QI(hI(g.baseURL, g.url, g.allowAbsoluteUrls), A.params, A.paramsSerializer), n && E.set(
|
|
1969
1969
|
"Authorization",
|
|
@@ -2384,7 +2384,7 @@ const _g = {
|
|
|
2384
2384
|
assertOptions: ln,
|
|
2385
2385
|
validators: wC
|
|
2386
2386
|
}, gg = _g.validators;
|
|
2387
|
-
let
|
|
2387
|
+
let Mg = class {
|
|
2388
2388
|
constructor(g) {
|
|
2389
2389
|
this.defaults = g || {}, this.interceptors = {
|
|
2390
2390
|
request: new $B(),
|
|
@@ -2419,7 +2419,7 @@ let fg = class {
|
|
|
2419
2419
|
});
|
|
2420
2420
|
}
|
|
2421
2421
|
_request(g, B) {
|
|
2422
|
-
typeof g == "string" ? (B = B || {}, B.url = g) : B = g || {}, B =
|
|
2422
|
+
typeof g == "string" ? (B = B || {}, B.url = g) : B = g || {}, B = Pg(this.defaults, B);
|
|
2423
2423
|
const { transitional: C, paramsSerializer: Q, headers: I } = B;
|
|
2424
2424
|
C !== void 0 && _g.assertOptions(C, {
|
|
2425
2425
|
silentJSONParsing: gg.transitional(gg.boolean),
|
|
@@ -2481,14 +2481,14 @@ let fg = class {
|
|
|
2481
2481
|
return h;
|
|
2482
2482
|
}
|
|
2483
2483
|
getUri(g) {
|
|
2484
|
-
g =
|
|
2484
|
+
g = Pg(this.defaults, g);
|
|
2485
2485
|
const B = hI(g.baseURL, g.url, g.allowAbsoluteUrls);
|
|
2486
2486
|
return QI(B, g.params, g.paramsSerializer);
|
|
2487
2487
|
}
|
|
2488
2488
|
};
|
|
2489
2489
|
H.forEach(["delete", "get", "head", "options"], function(g) {
|
|
2490
|
-
|
|
2491
|
-
return this.request(
|
|
2490
|
+
Mg.prototype[g] = function(B, C) {
|
|
2491
|
+
return this.request(Pg(C || {}, {
|
|
2492
2492
|
method: g,
|
|
2493
2493
|
url: B,
|
|
2494
2494
|
data: (C || {}).data
|
|
@@ -2498,7 +2498,7 @@ H.forEach(["delete", "get", "head", "options"], function(g) {
|
|
|
2498
2498
|
H.forEach(["post", "put", "patch"], function(g) {
|
|
2499
2499
|
function B(C) {
|
|
2500
2500
|
return function(I, E, n) {
|
|
2501
|
-
return this.request(
|
|
2501
|
+
return this.request(Pg(n || {}, {
|
|
2502
2502
|
method: g,
|
|
2503
2503
|
headers: C ? {
|
|
2504
2504
|
"Content-Type": "multipart/form-data"
|
|
@@ -2508,7 +2508,7 @@ H.forEach(["post", "put", "patch"], function(g) {
|
|
|
2508
2508
|
}));
|
|
2509
2509
|
};
|
|
2510
2510
|
}
|
|
2511
|
-
|
|
2511
|
+
Mg.prototype[g] = B(), Mg.prototype[g + "Form"] = B(!0);
|
|
2512
2512
|
});
|
|
2513
2513
|
let Jn = class iI {
|
|
2514
2514
|
constructor(g) {
|
|
@@ -2660,13 +2660,13 @@ Object.entries(_C).forEach(([A, g]) => {
|
|
|
2660
2660
|
_C[g] = A;
|
|
2661
2661
|
});
|
|
2662
2662
|
function uI(A) {
|
|
2663
|
-
const g = new
|
|
2664
|
-
return H.extend(B,
|
|
2665
|
-
return uI(
|
|
2663
|
+
const g = new Mg(A), B = SQ(Mg.prototype.request, g);
|
|
2664
|
+
return H.extend(B, Mg.prototype, g, { allOwnKeys: !0 }), H.extend(B, g, null, { allOwnKeys: !0 }), B.create = function(Q) {
|
|
2665
|
+
return uI(Pg(A, Q));
|
|
2666
2666
|
}, B;
|
|
2667
2667
|
}
|
|
2668
2668
|
const rA = uI(yg);
|
|
2669
|
-
rA.Axios =
|
|
2669
|
+
rA.Axios = Mg;
|
|
2670
2670
|
rA.CanceledError = xg;
|
|
2671
2671
|
rA.CancelToken = Jn;
|
|
2672
2672
|
rA.isCancel = nI;
|
|
@@ -2679,7 +2679,7 @@ rA.all = function(g) {
|
|
|
2679
2679
|
};
|
|
2680
2680
|
rA.spread = Tn;
|
|
2681
2681
|
rA.isAxiosError = Hn;
|
|
2682
|
-
rA.mergeConfig =
|
|
2682
|
+
rA.mergeConfig = Pg;
|
|
2683
2683
|
rA.AxiosHeaders = LA;
|
|
2684
2684
|
rA.formToJSON = (A) => EI(H.isHTMLForm(A) ? new FormData(A) : A);
|
|
2685
2685
|
rA.getAdapter = oI.getAdapter;
|
|
@@ -4125,8 +4125,8 @@ function Qt(t) {
|
|
|
4125
4125
|
else {
|
|
4126
4126
|
if (e.inputEl.value = EA.ten_cty || "", w.inputEl.value = EA.dia_chi || "", EA.cqthue_ql) {
|
|
4127
4127
|
const DA = (ig) => ig.toLowerCase().replace(/phường\s+/i, "").replace(/xã\s+/i, "").replace(/quận\s+/i, "").trim(), JA = DA(EA.cqthue_ql), Ag = d.find((ig) => {
|
|
4128
|
-
const
|
|
4129
|
-
return
|
|
4128
|
+
const Jg = DA(ig.label);
|
|
4129
|
+
return Jg.includes(JA) || JA.includes(Jg);
|
|
4130
4130
|
});
|
|
4131
4131
|
Ag && (s.setValue && s.setValue(
|
|
4132
4132
|
Ag.value,
|
|
@@ -4190,9 +4190,9 @@ function Qt(t) {
|
|
|
4190
4190
|
const ug = JA.slice(0, 2), uC = JA.slice(2, 4), TI = JA.slice(4, 8);
|
|
4191
4191
|
return `${ug}/${uC}/${TI}`;
|
|
4192
4192
|
}
|
|
4193
|
-
const [Ag, ig,
|
|
4194
|
-
if (isNaN(
|
|
4195
|
-
const iC = String(
|
|
4193
|
+
const [Ag, ig, Jg] = JA.split("/"), Tg = new Date(+Jg, +ig - 1, +Ag);
|
|
4194
|
+
if (isNaN(Tg)) return "";
|
|
4195
|
+
const iC = String(Tg.getDate()).padStart(2, "0"), Rg = String(Tg.getMonth() + 1).padStart(2, "0"), Kg = Tg.getFullYear();
|
|
4196
4196
|
return `${iC}/${Rg}/${Kg}`;
|
|
4197
4197
|
}, DA = new Image();
|
|
4198
4198
|
DA.src = URL.createObjectURL(F), DA.onload = () => U(null, null, function* () {
|
|
@@ -4207,10 +4207,10 @@ function Qt(t) {
|
|
|
4207
4207
|
), X();
|
|
4208
4208
|
return;
|
|
4209
4209
|
}
|
|
4210
|
-
const { address:
|
|
4210
|
+
const { address: Jg, date_of_birth: Tg, full_name: iC, id_number: Rg, sex: Kg } = JA;
|
|
4211
4211
|
if (!Rg || !/^\d{12}$/.test(Rg) ? (cg(
|
|
4212
4212
|
u("errorInvalidCard", "Số CCCD phải có 12 chữ số")
|
|
4213
|
-
), r.inputEl.value = "") : (r.inputEl.value = Rg, r.setError(null)), m.inputEl.value = iC || "", f.inputEl.value = EA(
|
|
4213
|
+
), r.inputEl.value = "") : (r.inputEl.value = Rg, r.setError(null)), m.inputEl.value = iC || "", f.inputEl.value = EA(Tg), x.inputEl.value = Jg || "", Kg) {
|
|
4214
4214
|
const ug = hQ.find(
|
|
4215
4215
|
(uC) => uC.label.toLowerCase() === Kg.toLowerCase()
|
|
4216
4216
|
);
|
|
@@ -4282,8 +4282,8 @@ function Qt(t) {
|
|
|
4282
4282
|
YA.className = "wgt:w-full wgt:grid wgt:grid-cols-1 wgt:md:grid-cols-2 wgt:gap-4 wgt:items-start", YA.appendChild(D.container), YA.appendChild(M.container), YA.appendChild(k.container), YA.appendChild(J.container), SA.appendChild(YA), h.appendChild(SA);
|
|
4283
4283
|
const ag = document.createElement("div");
|
|
4284
4284
|
ag.className = "wgt:space-y-4";
|
|
4285
|
-
const
|
|
4286
|
-
|
|
4285
|
+
const lg = document.createElement("h3");
|
|
4286
|
+
lg.className = "wgt:text-lg wgt:font-semibold wgt:mb-2", lg.innerText = u("invoiceUsageInfo", "4. THÔNG TIN SỬ DỤNG HDDT:"), ag.appendChild(lg), h.appendChild(ag);
|
|
4287
4287
|
const _A = document.createElement("div");
|
|
4288
4288
|
_A.className = "wgt:w-full wgt:flex wgt:gap-4 wgt:items-start wgt:flex-row wgt:max-xl:flex-col", _A.appendChild(O.container), _A.appendChild(N.container), ag.appendChild(_A);
|
|
4289
4289
|
const mA = document.createElement("div");
|
|
@@ -4597,7 +4597,7 @@ function wQ({
|
|
|
4597
4597
|
}
|
|
4598
4598
|
};
|
|
4599
4599
|
}
|
|
4600
|
-
const tt = "1.69.
|
|
4600
|
+
const tt = "1.69.3";
|
|
4601
4601
|
function ht(B) {
|
|
4602
4602
|
return U(this, arguments, function* ({ search: A, bank: g }) {
|
|
4603
4603
|
return (yield pA.get(`${IC}`, {
|
|
@@ -5135,7 +5135,7 @@ function ft(k) {
|
|
|
5135
5135
|
});
|
|
5136
5136
|
}), Object.keys(q).length > 0 && (l = e || Object.keys(q).filter(
|
|
5137
5137
|
(Z) => q[Z].bank === h && q[Z].expiredAt >= (/* @__PURE__ */ new Date()).toISOString() && q[Z].limit > q[Z].used
|
|
5138
|
-
),
|
|
5138
|
+
), lg())) : console.error("Failed to load promotions:", cA.reason), hA.status === "fulfilled") {
|
|
5139
5139
|
if (N(hA.value || []), hA.value.length > 0) {
|
|
5140
5140
|
const Z = hA.value.find(
|
|
5141
5141
|
(xA) => T.includes(xA.code)
|
|
@@ -5286,9 +5286,9 @@ function ft(k) {
|
|
|
5286
5286
|
W.isDisabled = !CA, !CA && l.includes(W.code) ? l = l.filter(
|
|
5287
5287
|
($) => $ !== W.code
|
|
5288
5288
|
) : CA && !l.includes(W.code) && l.push(W.code);
|
|
5289
|
-
}),
|
|
5289
|
+
}), lg();
|
|
5290
5290
|
}
|
|
5291
|
-
function
|
|
5291
|
+
function lg() {
|
|
5292
5292
|
T = Object.values(q).filter((b) => b.bank === h).map((b) => b.appliedPackages[0]);
|
|
5293
5293
|
}
|
|
5294
5294
|
function _A() {
|
|
@@ -5669,14 +5669,14 @@ function dt(A) {
|
|
|
5669
5669
|
)).data;
|
|
5670
5670
|
});
|
|
5671
5671
|
}
|
|
5672
|
-
var
|
|
5672
|
+
var kg = {}, PC, eQ;
|
|
5673
5673
|
function vt() {
|
|
5674
5674
|
return eQ || (eQ = 1, PC = function() {
|
|
5675
5675
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
5676
5676
|
}), PC;
|
|
5677
5677
|
}
|
|
5678
5678
|
var dC = {}, Bg = {}, oQ;
|
|
5679
|
-
function
|
|
5679
|
+
function dg() {
|
|
5680
5680
|
if (oQ) return Bg;
|
|
5681
5681
|
oQ = 1;
|
|
5682
5682
|
let A;
|
|
@@ -5830,7 +5830,7 @@ function Jt() {
|
|
|
5830
5830
|
var TC = {}, sQ;
|
|
5831
5831
|
function Tt() {
|
|
5832
5832
|
return sQ || (sQ = 1, function(A) {
|
|
5833
|
-
const g =
|
|
5833
|
+
const g = dg().getSymbolSize;
|
|
5834
5834
|
A.getRowColCoords = function(C) {
|
|
5835
5835
|
if (C === 1) return [];
|
|
5836
5836
|
const Q = Math.floor(C / 7) + 2, I = g(C), E = I === 145 ? 26 : Math.ceil((I - 13) / (2 * Q - 2)) * 2, n = [I - 7];
|
|
@@ -5852,7 +5852,7 @@ var HC = {}, DQ;
|
|
|
5852
5852
|
function Ht() {
|
|
5853
5853
|
if (DQ) return HC;
|
|
5854
5854
|
DQ = 1;
|
|
5855
|
-
const A =
|
|
5855
|
+
const A = dg().getSymbolSize, g = 7;
|
|
5856
5856
|
return HC.getPositions = function(C) {
|
|
5857
5857
|
const Q = A(C);
|
|
5858
5858
|
return [
|
|
@@ -6418,7 +6418,7 @@ function PI() {
|
|
|
6418
6418
|
}, Cg;
|
|
6419
6419
|
}
|
|
6420
6420
|
var vQ;
|
|
6421
|
-
function
|
|
6421
|
+
function vg() {
|
|
6422
6422
|
return vQ || (vQ = 1, function(A) {
|
|
6423
6423
|
const g = MI(), B = PI();
|
|
6424
6424
|
A.NUMERIC = {
|
|
@@ -6482,7 +6482,7 @@ function dg() {
|
|
|
6482
6482
|
var lQ;
|
|
6483
6483
|
function Gt() {
|
|
6484
6484
|
return lQ || (lQ = 1, function(A) {
|
|
6485
|
-
const g =
|
|
6485
|
+
const g = dg(), B = fI(), C = nB(), Q = vg(), I = MI(), E = 7973, n = g.getBCHDigit(E);
|
|
6486
6486
|
function t(e, w, s) {
|
|
6487
6487
|
for (let D = 1; D <= 40; D++)
|
|
6488
6488
|
if (w <= A.getCapacity(D, s, e))
|
|
@@ -6549,7 +6549,7 @@ var XC = {}, JQ;
|
|
|
6549
6549
|
function zt() {
|
|
6550
6550
|
if (JQ) return XC;
|
|
6551
6551
|
JQ = 1;
|
|
6552
|
-
const A =
|
|
6552
|
+
const A = dg(), g = 1335, B = 21522, C = A.getBCHDigit(g);
|
|
6553
6553
|
return XC.getEncodedBits = function(I, E) {
|
|
6554
6554
|
const n = I.bit << 3 | E;
|
|
6555
6555
|
let t = n << 10;
|
|
@@ -6562,7 +6562,7 @@ var OC = {}, FC, TQ;
|
|
|
6562
6562
|
function Xt() {
|
|
6563
6563
|
if (TQ) return FC;
|
|
6564
6564
|
TQ = 1;
|
|
6565
|
-
const A =
|
|
6565
|
+
const A = vg();
|
|
6566
6566
|
function g(B) {
|
|
6567
6567
|
this.mode = A.NUMERIC, this.data = B.toString();
|
|
6568
6568
|
}
|
|
@@ -6584,7 +6584,7 @@ var LC, HQ;
|
|
|
6584
6584
|
function Ot() {
|
|
6585
6585
|
if (HQ) return LC;
|
|
6586
6586
|
HQ = 1;
|
|
6587
|
-
const A =
|
|
6587
|
+
const A = vg(), g = [
|
|
6588
6588
|
"0",
|
|
6589
6589
|
"1",
|
|
6590
6590
|
"2",
|
|
@@ -6653,7 +6653,7 @@ var NC, kQ;
|
|
|
6653
6653
|
function Ft() {
|
|
6654
6654
|
if (kQ) return NC;
|
|
6655
6655
|
kQ = 1;
|
|
6656
|
-
const A =
|
|
6656
|
+
const A = vg();
|
|
6657
6657
|
function g(B) {
|
|
6658
6658
|
this.mode = A.BYTE, typeof B == "string" ? this.data = new TextEncoder().encode(B) : this.data = new Uint8Array(B);
|
|
6659
6659
|
}
|
|
@@ -6672,7 +6672,7 @@ var yC, YQ;
|
|
|
6672
6672
|
function Lt() {
|
|
6673
6673
|
if (YQ) return yC;
|
|
6674
6674
|
YQ = 1;
|
|
6675
|
-
const A =
|
|
6675
|
+
const A = vg(), g = dg();
|
|
6676
6676
|
function B(C) {
|
|
6677
6677
|
this.mode = A.KANJI, this.data = C;
|
|
6678
6678
|
}
|
|
@@ -6770,7 +6770,7 @@ function Nt() {
|
|
|
6770
6770
|
var RQ;
|
|
6771
6771
|
function yt() {
|
|
6772
6772
|
return RQ || (RQ = 1, function(A) {
|
|
6773
|
-
const g =
|
|
6773
|
+
const g = vg(), B = Xt(), C = Ot(), Q = Ft(), I = Lt(), E = PI(), n = dg(), t = Nt();
|
|
6774
6774
|
function c(k) {
|
|
6775
6775
|
return unescape(encodeURIComponent(k)).length;
|
|
6776
6776
|
}
|
|
@@ -6905,7 +6905,7 @@ var GQ;
|
|
|
6905
6905
|
function bt() {
|
|
6906
6906
|
if (GQ) return dC;
|
|
6907
6907
|
GQ = 1;
|
|
6908
|
-
const A =
|
|
6908
|
+
const A = dg(), g = nB(), B = lt(), C = Jt(), Q = Tt(), I = Ht(), E = kt(), n = fI(), t = Rt(), c = Gt(), h = zt(), a = vg(), e = yt();
|
|
6909
6909
|
function w(v, r) {
|
|
6910
6910
|
const q = v.size, T = I.getPositions(r);
|
|
6911
6911
|
for (let x = 0; x < T.length; x++) {
|
|
@@ -7148,7 +7148,7 @@ function Kt() {
|
|
|
7148
7148
|
}
|
|
7149
7149
|
var FQ;
|
|
7150
7150
|
function St() {
|
|
7151
|
-
if (FQ) return
|
|
7151
|
+
if (FQ) return kg;
|
|
7152
7152
|
FQ = 1;
|
|
7153
7153
|
const A = vt(), g = bt(), B = jt(), C = Kt();
|
|
7154
7154
|
function Q(I, E, n, t, c) {
|
|
@@ -7178,9 +7178,9 @@ function St() {
|
|
|
7178
7178
|
c(w);
|
|
7179
7179
|
}
|
|
7180
7180
|
}
|
|
7181
|
-
return
|
|
7181
|
+
return kg.create = g.create, kg.toCanvas = Q.bind(null, B.render), kg.toDataURL = Q.bind(null, B.renderToDataURL), kg.toString = Q.bind(null, function(I, E, n) {
|
|
7182
7182
|
return C.render(I, n);
|
|
7183
|
-
}),
|
|
7183
|
+
}), kg;
|
|
7184
7184
|
}
|
|
7185
7185
|
var Ut = St();
|
|
7186
7186
|
const pt = /* @__PURE__ */ KQ(Ut);
|
|
@@ -7224,7 +7224,7 @@ function Zt({
|
|
|
7224
7224
|
k();
|
|
7225
7225
|
const J = () => {
|
|
7226
7226
|
w = setInterval(() => {
|
|
7227
|
-
e--, k(), e <= 0 &&
|
|
7227
|
+
e--, k(), e <= 0 && fg(w);
|
|
7228
7228
|
}, 1e3), lI(w);
|
|
7229
7229
|
};
|
|
7230
7230
|
J(), s.appendChild(D);
|
|
@@ -7294,12 +7294,12 @@ function Zt({
|
|
|
7294
7294
|
title: u("cancelTransaction"),
|
|
7295
7295
|
className: "wgt:bg-transparent wgt:border wgt:border-primary wgt:text-primary wgt:hover:bg-transparent",
|
|
7296
7296
|
handleClick: () => {
|
|
7297
|
-
w &&
|
|
7297
|
+
w && fg(w);
|
|
7298
7298
|
const { container: d, open: L } = eC({
|
|
7299
7299
|
message: u("transactionCanceled"),
|
|
7300
7300
|
okLabel: u("ok"),
|
|
7301
7301
|
onClose: () => {
|
|
7302
|
-
e = 3600,
|
|
7302
|
+
e = 3600, fg(w), typeof h == "function" && h();
|
|
7303
7303
|
},
|
|
7304
7304
|
preventClose: !0
|
|
7305
7305
|
});
|
|
@@ -7307,7 +7307,7 @@ function Zt({
|
|
|
7307
7307
|
}
|
|
7308
7308
|
});
|
|
7309
7309
|
return f.appendChild(P), a.appendChild(f), window.addEventListener("beforeunload", () => {
|
|
7310
|
-
w &&
|
|
7310
|
+
w && fg(w);
|
|
7311
7311
|
}), {
|
|
7312
7312
|
container: a,
|
|
7313
7313
|
setSelectedProvider(d) {
|
|
@@ -7485,13 +7485,15 @@ function Wt(n) {
|
|
|
7485
7485
|
j = !navigator.onLine;
|
|
7486
7486
|
}
|
|
7487
7487
|
function K() {
|
|
7488
|
-
h &&
|
|
7488
|
+
h && fg(h), h = setInterval(() => U(null, null, function* () {
|
|
7489
7489
|
var o, i;
|
|
7490
7490
|
try {
|
|
7491
7491
|
const P = yield ot(a);
|
|
7492
7492
|
if (P.paymentStatus === "pending")
|
|
7493
7493
|
return;
|
|
7494
|
-
const d = P.paymentStatus === "paid" ? u("paymentSuccess") : u("paymentFailed")
|
|
7494
|
+
const d = P.paymentStatus === "paid" ? u("paymentSuccess") : u("paymentFailed");
|
|
7495
|
+
fg(h);
|
|
7496
|
+
const L = eC({
|
|
7495
7497
|
message: d,
|
|
7496
7498
|
okLabel: "OK",
|
|
7497
7499
|
isSuccess: P.paymentStatus === "paid",
|
|
@@ -7529,7 +7531,7 @@ function Wt(n) {
|
|
|
7529
7531
|
}), 5e3), lI(h);
|
|
7530
7532
|
}
|
|
7531
7533
|
return t && K(), window.addEventListener("online", S), window.addEventListener("offline", S), window.addEventListener("beforeunload", function() {
|
|
7532
|
-
h &&
|
|
7534
|
+
h && fg(h);
|
|
7533
7535
|
}), { container: s };
|
|
7534
7536
|
});
|
|
7535
7537
|
}
|
|
@@ -7941,7 +7943,7 @@ let BC = /* @__PURE__ */ new Set();
|
|
|
7941
7943
|
function lI(A) {
|
|
7942
7944
|
A && BC.add(A);
|
|
7943
7945
|
}
|
|
7944
|
-
function
|
|
7946
|
+
function fg(A) {
|
|
7945
7947
|
A && (BC.delete(A), window.clearInterval(A));
|
|
7946
7948
|
}
|
|
7947
7949
|
function c0() {
|
|
@@ -8229,5 +8231,5 @@ export {
|
|
|
8229
8231
|
Y0 as InvoiceRegisterWidget,
|
|
8230
8232
|
lI as registerWidgetInterval,
|
|
8231
8233
|
c0 as stopAllIntervals,
|
|
8232
|
-
|
|
8234
|
+
fg as unregisterWidgetInterval
|
|
8233
8235
|
};
|