@atomsolution/invoice-widget 1.67.1 → 1.67.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.
|
@@ -2,7 +2,7 @@ var TI = Object.defineProperty, HI = Object.defineProperties;
|
|
|
2
2
|
var kI = 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), YI = (A) => {
|
|
6
6
|
throw TypeError(A);
|
|
7
7
|
};
|
|
8
8
|
var bB = (A, g, B) => g in A ? TI(A, g, { enumerable: !0, configurable: !0, writable: !0, value: B }) : A[g] = B, qA = (A, g) => {
|
|
@@ -48,10 +48,10 @@ var p = (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
|
}, DC = (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 p = (A, g, B) => new Promise((C, Q) => {
|
|
|
63
63
|
t instanceof Object || YI("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 $C, a as AB, b as Ig, c as RI, m as xI, d as GI, f as zI, v as XI, r as yQ, u as bQ } 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 $C, a as AB, b as Ig, c as RI, m as xI, d as GI, f as zI, v as XI, r as yQ, u as bQ } from "./index-DjBG_p3F.js";
|
|
71
71
|
import { g as jQ } 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 tI(A, g, B) {
|
|
|
1898
1898
|
return A && (C || B == !1) ? wn(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 hI = (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 = BI(tI(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: vn,
|
|
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 = tI(g.baseURL, g.url, g.allowAbsoluteUrls);
|
|
2486
2486
|
return BI(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 dn = class aI {
|
|
2514
2514
|
constructor(g) {
|
|
@@ -2660,13 +2660,13 @@ Object.entries(WC).forEach(([A, g]) => {
|
|
|
2660
2660
|
WC[g] = A;
|
|
2661
2661
|
});
|
|
2662
2662
|
function iI(A) {
|
|
2663
|
-
const g = new
|
|
2664
|
-
return H.extend(B,
|
|
2665
|
-
return iI(
|
|
2663
|
+
const g = new Mg(A), B = KQ(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 iI(Pg(A, Q));
|
|
2666
2666
|
}, B;
|
|
2667
2667
|
}
|
|
2668
2668
|
const rA = iI(yg);
|
|
2669
|
-
rA.Axios =
|
|
2669
|
+
rA.Axios = Mg;
|
|
2670
2670
|
rA.CanceledError = Rg;
|
|
2671
2671
|
rA.CancelToken = dn;
|
|
2672
2672
|
rA.isCancel = EI;
|
|
@@ -2679,7 +2679,7 @@ rA.all = function(g) {
|
|
|
2679
2679
|
};
|
|
2680
2680
|
rA.spread = Jn;
|
|
2681
2681
|
rA.isAxiosError = ln;
|
|
2682
|
-
rA.mergeConfig =
|
|
2682
|
+
rA.mergeConfig = Pg;
|
|
2683
2683
|
rA.AxiosHeaders = LA;
|
|
2684
2684
|
rA.formToJSON = (A) => II(H.isHTMLForm(A) ? new FormData(A) : A);
|
|
2685
2685
|
rA.getAdapter = eI.getAdapter;
|
|
@@ -4125,8 +4125,8 @@ function Ct(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(), lA = DA(EA.cqthue_ql), Ag = v.find((ig) => {
|
|
4128
|
-
const
|
|
4129
|
-
return
|
|
4128
|
+
const lg = DA(ig.label);
|
|
4129
|
+
return lg.includes(lA) || lA.includes(lg);
|
|
4130
4130
|
});
|
|
4131
4131
|
Ag && (s.setValue && s.setValue(
|
|
4132
4132
|
Ag.value,
|
|
@@ -4190,9 +4190,9 @@ function Ct(t) {
|
|
|
4190
4190
|
const ug = lA.slice(0, 2), iC = lA.slice(2, 4), lI = lA.slice(4, 8);
|
|
4191
4191
|
return `${ug}/${iC}/${lI}`;
|
|
4192
4192
|
}
|
|
4193
|
-
const [Ag, ig,
|
|
4194
|
-
if (isNaN(
|
|
4195
|
-
const aC = String(
|
|
4193
|
+
const [Ag, ig, lg] = lA.split("/"), Tg = new Date(+lg, +ig - 1, +Ag);
|
|
4194
|
+
if (isNaN(Tg)) return "";
|
|
4195
|
+
const aC = String(Tg.getDate()).padStart(2, "0"), xg = String(Tg.getMonth() + 1).padStart(2, "0"), Kg = Tg.getFullYear();
|
|
4196
4196
|
return `${aC}/${xg}/${Kg}`;
|
|
4197
4197
|
}, DA = new Image();
|
|
4198
4198
|
DA.src = URL.createObjectURL(F), DA.onload = () => p(null, null, function* () {
|
|
@@ -4207,10 +4207,10 @@ function Ct(t) {
|
|
|
4207
4207
|
), X();
|
|
4208
4208
|
return;
|
|
4209
4209
|
}
|
|
4210
|
-
const { address:
|
|
4210
|
+
const { address: lg, date_of_birth: Tg, full_name: aC, id_number: xg, sex: Kg } = lA;
|
|
4211
4211
|
if (!xg || !/^\d{12}$/.test(xg) ? (cg(
|
|
4212
4212
|
u("errorInvalidCard", "Số CCCD phải có 12 chữ số")
|
|
4213
|
-
), r.inputEl.value = "") : (r.inputEl.value = xg, r.setError(null)), m.inputEl.value = aC || "", f.inputEl.value = EA(
|
|
4213
|
+
), r.inputEl.value = "") : (r.inputEl.value = xg, r.setError(null)), m.inputEl.value = aC || "", f.inputEl.value = EA(Tg), R.inputEl.value = lg || "", Kg) {
|
|
4214
4214
|
const ug = hQ.find(
|
|
4215
4215
|
(iC) => iC.label.toLowerCase() === Kg.toLowerCase()
|
|
4216
4216
|
);
|
|
@@ -4282,8 +4282,8 @@ function Ct(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(l.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 Jg = document.createElement("h3");
|
|
4286
|
+
Jg.className = "wgt:text-lg wgt:font-semibold wgt:mb-2", Jg.innerText = u("invoiceUsageInfo", "4. THÔNG TIN SỬ DỤNG HDDT:"), ag.appendChild(Jg), 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 Et = "1.67.
|
|
4600
|
+
const Et = "1.67.2";
|
|
4601
4601
|
function nt(B) {
|
|
4602
4602
|
return p(this, arguments, function* ({ search: A, bank: g }) {
|
|
4603
4603
|
return (yield pA.get(`${IC}`, {
|
|
@@ -5135,7 +5135,7 @@ function mt(k) {
|
|
|
5135
5135
|
});
|
|
5136
5136
|
}), Object.keys(q).length > 0 && (J = 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
|
+
), Jg())) : 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
|
(RA) => T.includes(RA.code)
|
|
@@ -5286,9 +5286,9 @@ function mt(k) {
|
|
|
5286
5286
|
W.isDisabled = !CA, !CA && J.includes(W.code) ? J = J.filter(
|
|
5287
5287
|
($) => $ !== W.code
|
|
5288
5288
|
) : CA && !J.includes(W.code) && J.push(W.code);
|
|
5289
|
-
}),
|
|
5289
|
+
}), Jg();
|
|
5290
5290
|
}
|
|
5291
|
-
function
|
|
5291
|
+
function Jg() {
|
|
5292
5292
|
T = Object.values(q).filter((b) => b.bank === h).map((b) => b.appliedPackages[0]);
|
|
5293
5293
|
}
|
|
5294
5294
|
function _A() {
|
|
@@ -5676,7 +5676,7 @@ function Mt({
|
|
|
5676
5676
|
k();
|
|
5677
5677
|
const l = () => {
|
|
5678
5678
|
w = setInterval(() => {
|
|
5679
|
-
e--, k(), e <= 0 &&
|
|
5679
|
+
e--, k(), e <= 0 && fg(w);
|
|
5680
5680
|
}, 1e3), dI(w);
|
|
5681
5681
|
};
|
|
5682
5682
|
l(), s.appendChild(D);
|
|
@@ -5746,12 +5746,12 @@ function Mt({
|
|
|
5746
5746
|
title: u("cancelTransaction"),
|
|
5747
5747
|
className: "wgt:bg-transparent wgt:border wgt:border-primary wgt:text-primary wgt:hover:bg-transparent",
|
|
5748
5748
|
handleClick: () => {
|
|
5749
|
-
w &&
|
|
5749
|
+
w && fg(w);
|
|
5750
5750
|
const { container: v, open: L } = eC({
|
|
5751
5751
|
message: u("transactionCanceled"),
|
|
5752
5752
|
okLabel: u("ok"),
|
|
5753
5753
|
onClose: () => {
|
|
5754
|
-
e = 3600,
|
|
5754
|
+
e = 3600, fg(w), typeof h == "function" && h();
|
|
5755
5755
|
},
|
|
5756
5756
|
preventClose: !0
|
|
5757
5757
|
});
|
|
@@ -5759,7 +5759,7 @@ function Mt({
|
|
|
5759
5759
|
}
|
|
5760
5760
|
});
|
|
5761
5761
|
return f.appendChild(P), a.appendChild(f), window.addEventListener("beforeunload", () => {
|
|
5762
|
-
w &&
|
|
5762
|
+
w && fg(w);
|
|
5763
5763
|
}), {
|
|
5764
5764
|
container: a,
|
|
5765
5765
|
setSelectedProvider(v) {
|
|
@@ -5812,14 +5812,14 @@ function Pt(A) {
|
|
|
5812
5812
|
)).data;
|
|
5813
5813
|
});
|
|
5814
5814
|
}
|
|
5815
|
-
var
|
|
5815
|
+
var kg = {}, MC, eQ;
|
|
5816
5816
|
function vt() {
|
|
5817
5817
|
return eQ || (eQ = 1, MC = function() {
|
|
5818
5818
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
5819
5819
|
}), MC;
|
|
5820
5820
|
}
|
|
5821
5821
|
var PC = {}, Bg = {}, oQ;
|
|
5822
|
-
function
|
|
5822
|
+
function vg() {
|
|
5823
5823
|
if (oQ) return Bg;
|
|
5824
5824
|
oQ = 1;
|
|
5825
5825
|
let A;
|
|
@@ -5973,7 +5973,7 @@ function Jt() {
|
|
|
5973
5973
|
var lC = {}, sQ;
|
|
5974
5974
|
function lt() {
|
|
5975
5975
|
return sQ || (sQ = 1, function(A) {
|
|
5976
|
-
const g =
|
|
5976
|
+
const g = vg().getSymbolSize;
|
|
5977
5977
|
A.getRowColCoords = function(C) {
|
|
5978
5978
|
if (C === 1) return [];
|
|
5979
5979
|
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];
|
|
@@ -5995,7 +5995,7 @@ var TC = {}, DQ;
|
|
|
5995
5995
|
function Tt() {
|
|
5996
5996
|
if (DQ) return TC;
|
|
5997
5997
|
DQ = 1;
|
|
5998
|
-
const A =
|
|
5998
|
+
const A = vg().getSymbolSize, g = 7;
|
|
5999
5999
|
return TC.getPositions = function(C) {
|
|
6000
6000
|
const Q = A(C);
|
|
6001
6001
|
return [
|
|
@@ -6561,7 +6561,7 @@ function MI() {
|
|
|
6561
6561
|
}, Cg;
|
|
6562
6562
|
}
|
|
6563
6563
|
var dQ;
|
|
6564
|
-
function
|
|
6564
|
+
function dg() {
|
|
6565
6565
|
return dQ || (dQ = 1, function(A) {
|
|
6566
6566
|
const g = fI(), B = MI();
|
|
6567
6567
|
A.NUMERIC = {
|
|
@@ -6625,7 +6625,7 @@ function vg() {
|
|
|
6625
6625
|
var JQ;
|
|
6626
6626
|
function xt() {
|
|
6627
6627
|
return JQ || (JQ = 1, function(A) {
|
|
6628
|
-
const g =
|
|
6628
|
+
const g = vg(), B = qI(), C = EB(), Q = dg(), I = fI(), E = 7973, n = g.getBCHDigit(E);
|
|
6629
6629
|
function t(e, w, s) {
|
|
6630
6630
|
for (let D = 1; D <= 40; D++)
|
|
6631
6631
|
if (w <= A.getCapacity(D, s, e))
|
|
@@ -6692,7 +6692,7 @@ var zC = {}, lQ;
|
|
|
6692
6692
|
function Gt() {
|
|
6693
6693
|
if (lQ) return zC;
|
|
6694
6694
|
lQ = 1;
|
|
6695
|
-
const A =
|
|
6695
|
+
const A = vg(), g = 1335, B = 21522, C = A.getBCHDigit(g);
|
|
6696
6696
|
return zC.getEncodedBits = function(I, E) {
|
|
6697
6697
|
const n = I.bit << 3 | E;
|
|
6698
6698
|
let t = n << 10;
|
|
@@ -6705,7 +6705,7 @@ var XC = {}, OC, TQ;
|
|
|
6705
6705
|
function zt() {
|
|
6706
6706
|
if (TQ) return OC;
|
|
6707
6707
|
TQ = 1;
|
|
6708
|
-
const A =
|
|
6708
|
+
const A = dg();
|
|
6709
6709
|
function g(B) {
|
|
6710
6710
|
this.mode = A.NUMERIC, this.data = B.toString();
|
|
6711
6711
|
}
|
|
@@ -6727,7 +6727,7 @@ var FC, HQ;
|
|
|
6727
6727
|
function Xt() {
|
|
6728
6728
|
if (HQ) return FC;
|
|
6729
6729
|
HQ = 1;
|
|
6730
|
-
const A =
|
|
6730
|
+
const A = dg(), g = [
|
|
6731
6731
|
"0",
|
|
6732
6732
|
"1",
|
|
6733
6733
|
"2",
|
|
@@ -6796,7 +6796,7 @@ var LC, kQ;
|
|
|
6796
6796
|
function Ot() {
|
|
6797
6797
|
if (kQ) return LC;
|
|
6798
6798
|
kQ = 1;
|
|
6799
|
-
const A =
|
|
6799
|
+
const A = dg();
|
|
6800
6800
|
function g(B) {
|
|
6801
6801
|
this.mode = A.BYTE, typeof B == "string" ? this.data = new TextEncoder().encode(B) : this.data = new Uint8Array(B);
|
|
6802
6802
|
}
|
|
@@ -6815,7 +6815,7 @@ var NC, YQ;
|
|
|
6815
6815
|
function Ft() {
|
|
6816
6816
|
if (YQ) return NC;
|
|
6817
6817
|
YQ = 1;
|
|
6818
|
-
const A =
|
|
6818
|
+
const A = dg(), g = vg();
|
|
6819
6819
|
function B(C) {
|
|
6820
6820
|
this.mode = A.KANJI, this.data = C;
|
|
6821
6821
|
}
|
|
@@ -6913,7 +6913,7 @@ function Lt() {
|
|
|
6913
6913
|
var xQ;
|
|
6914
6914
|
function Nt() {
|
|
6915
6915
|
return xQ || (xQ = 1, function(A) {
|
|
6916
|
-
const g =
|
|
6916
|
+
const g = dg(), B = zt(), C = Xt(), Q = Ot(), I = Ft(), E = MI(), n = vg(), t = Lt();
|
|
6917
6917
|
function c(k) {
|
|
6918
6918
|
return unescape(encodeURIComponent(k)).length;
|
|
6919
6919
|
}
|
|
@@ -7048,7 +7048,7 @@ var GQ;
|
|
|
7048
7048
|
function yt() {
|
|
7049
7049
|
if (GQ) return PC;
|
|
7050
7050
|
GQ = 1;
|
|
7051
|
-
const A =
|
|
7051
|
+
const A = vg(), g = EB(), B = dt(), C = Jt(), Q = lt(), I = Tt(), E = Ht(), n = qI(), t = Rt(), c = xt(), h = Gt(), a = dg(), e = Nt();
|
|
7052
7052
|
function w(d, r) {
|
|
7053
7053
|
const q = d.size, T = I.getPositions(r);
|
|
7054
7054
|
for (let R = 0; R < T.length; R++) {
|
|
@@ -7291,7 +7291,7 @@ function jt() {
|
|
|
7291
7291
|
}
|
|
7292
7292
|
var FQ;
|
|
7293
7293
|
function Kt() {
|
|
7294
|
-
if (FQ) return
|
|
7294
|
+
if (FQ) return kg;
|
|
7295
7295
|
FQ = 1;
|
|
7296
7296
|
const A = vt(), g = yt(), B = bt(), C = jt();
|
|
7297
7297
|
function Q(I, E, n, t, c) {
|
|
@@ -7321,9 +7321,9 @@ function Kt() {
|
|
|
7321
7321
|
c(w);
|
|
7322
7322
|
}
|
|
7323
7323
|
}
|
|
7324
|
-
return
|
|
7324
|
+
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) {
|
|
7325
7325
|
return C.render(I, n);
|
|
7326
|
-
}),
|
|
7326
|
+
}), kg;
|
|
7327
7327
|
}
|
|
7328
7328
|
var St = Kt();
|
|
7329
7329
|
const Ut = /* @__PURE__ */ jQ(St), pt = 5;
|
|
@@ -7484,13 +7484,15 @@ function Zt(n) {
|
|
|
7484
7484
|
j = !navigator.onLine;
|
|
7485
7485
|
}
|
|
7486
7486
|
function K() {
|
|
7487
|
-
h &&
|
|
7487
|
+
h && fg(h), h = setInterval(() => p(null, null, function* () {
|
|
7488
7488
|
var o, i;
|
|
7489
7489
|
try {
|
|
7490
7490
|
const P = yield wt(a);
|
|
7491
7491
|
if (P.paymentStatus === "pending")
|
|
7492
7492
|
return;
|
|
7493
|
-
const v = P.paymentStatus === "paid" ? u("paymentSuccess") : u("paymentFailed")
|
|
7493
|
+
const v = P.paymentStatus === "paid" ? u("paymentSuccess") : u("paymentFailed");
|
|
7494
|
+
fg(h);
|
|
7495
|
+
const L = eC({
|
|
7494
7496
|
message: v,
|
|
7495
7497
|
okLabel: "OK",
|
|
7496
7498
|
isSuccess: P.paymentStatus === "paid",
|
|
@@ -7528,7 +7530,7 @@ function Zt(n) {
|
|
|
7528
7530
|
}), 5e3), dI(h);
|
|
7529
7531
|
}
|
|
7530
7532
|
return t && K(), window.addEventListener("online", S), window.addEventListener("offline", S), window.addEventListener("beforeunload", function() {
|
|
7531
|
-
h &&
|
|
7533
|
+
h && fg(h);
|
|
7532
7534
|
}), { container: s };
|
|
7533
7535
|
});
|
|
7534
7536
|
}
|
|
@@ -7843,7 +7845,7 @@ let BC = /* @__PURE__ */ new Set();
|
|
|
7843
7845
|
function dI(A) {
|
|
7844
7846
|
A && BC.add(A);
|
|
7845
7847
|
}
|
|
7846
|
-
function
|
|
7848
|
+
function fg(A) {
|
|
7847
7849
|
A && (BC.delete(A), window.clearInterval(A));
|
|
7848
7850
|
}
|
|
7849
7851
|
function E0() {
|
|
@@ -8131,5 +8133,5 @@ export {
|
|
|
8131
8133
|
l0 as InvoiceRegisterWidget,
|
|
8132
8134
|
dI as registerWidgetInterval,
|
|
8133
8135
|
E0 as stopAllIntervals,
|
|
8134
|
-
|
|
8136
|
+
fg as unregisterWidgetInterval
|
|
8135
8137
|
};
|