@invoice-sdk/widget 1.120.12 → 1.121.0
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.
- package/dist/{index-D--48Zm1.js → index-BdzkBD5U.js} +2 -2
- package/dist/{index-JJPjPnRq.js → index-DehiCc26.js} +595 -593
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +76 -70
- package/dist/{loading-BrL3NnqX.js → loading-B7udx2Ut.js} +17 -16
- package/dist/{widget-BHfSi-JW.js → widget-CcqMbYvP.js} +2386 -2259
- package/dist/widget.css +1 -1
- package/package.json +1 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
var n = (e, t, r) => new Promise((o,
|
|
1
|
+
var n = (e, t, r) => new Promise((o, g) => {
|
|
2
2
|
var s = (i) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
4
|
+
c(r.next(i));
|
|
5
5
|
} catch (u) {
|
|
6
|
-
|
|
6
|
+
g(u);
|
|
7
7
|
}
|
|
8
8
|
}, d = (i) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
10
|
+
c(r.throw(i));
|
|
11
11
|
} catch (u) {
|
|
12
|
-
|
|
12
|
+
g(u);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, c = (i) => i.done ? o(i.value) : Promise.resolve(i.value).then(s, d);
|
|
15
|
+
c((r = r.apply(e, t)).next());
|
|
16
16
|
});
|
|
17
|
-
import { k as l, g as w, l as f, C as m, G as y, n as E, I as R, S as v, o as C, a as h, p as I, q as p, r as O, O as T } from "./index-
|
|
17
|
+
import { k as l, g as w, l as f, C as m, G as y, n as E, I as R, S as v, o as C, a as h, p as I, q as p, r as O, O as T } from "./index-DehiCc26.js";
|
|
18
18
|
function k({
|
|
19
19
|
title: e,
|
|
20
20
|
isDisabled: t = !1,
|
|
21
21
|
handleClick: r = null,
|
|
22
22
|
type: o = "button",
|
|
23
|
-
className:
|
|
23
|
+
className: g = ""
|
|
24
24
|
} = {}) {
|
|
25
25
|
const s = document.createElement("button");
|
|
26
26
|
return s.type = o, s.disabled = t, s.className = [
|
|
@@ -33,14 +33,14 @@ function k({
|
|
|
33
33
|
"wgt:disabled:cursor-not-allowed",
|
|
34
34
|
"wgt:cursor-pointer",
|
|
35
35
|
"wgt:hover:text-primary-hover-text",
|
|
36
|
-
|
|
36
|
+
g
|
|
37
37
|
].filter(Boolean).join(" "), s.innerText = e, typeof r == "function" && s.addEventListener("click", (d) => n(null, null, function* () {
|
|
38
38
|
if (!s.disabled) {
|
|
39
39
|
s.disabled = !0;
|
|
40
40
|
try {
|
|
41
41
|
yield r(d);
|
|
42
|
-
} catch (
|
|
43
|
-
console.error("Button click handler error:",
|
|
42
|
+
} catch (c) {
|
|
43
|
+
console.error("Button click handler error:", c);
|
|
44
44
|
} finally {
|
|
45
45
|
s.disabled = !1;
|
|
46
46
|
}
|
|
@@ -95,7 +95,7 @@ function $(e, t) {
|
|
|
95
95
|
})).data;
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
|
-
const A = (e) => new Intl.NumberFormat("vi-VN").format(e), S = "1.
|
|
98
|
+
const A = (e) => new Intl.NumberFormat("vi-VN").format(e), S = "1.121.0";
|
|
99
99
|
function U(r) {
|
|
100
100
|
return n(this, arguments, function* ({ search: e, bank: t }) {
|
|
101
101
|
return (yield a.get(`${p}`, {
|
|
@@ -119,8 +119,8 @@ function M(t) {
|
|
|
119
119
|
})).data;
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
|
-
function q(
|
|
123
|
-
return n(this, arguments, function* ({ bank: e, hasRenew: t, isCashRegister: r }) {
|
|
122
|
+
function q(g) {
|
|
123
|
+
return n(this, arguments, function* ({ bank: e, hasRenew: t, isCashRegister: r, customerType: o }) {
|
|
124
124
|
return (yield a.get(`${p}`, {
|
|
125
125
|
params: {
|
|
126
126
|
isActive: !0,
|
|
@@ -128,7 +128,8 @@ function q(o) {
|
|
|
128
128
|
bank: e,
|
|
129
129
|
hasRenew: t,
|
|
130
130
|
limit: 99,
|
|
131
|
-
isCashRegister: r
|
|
131
|
+
isCashRegister: r,
|
|
132
|
+
customerType: o
|
|
132
133
|
}
|
|
133
134
|
})).data;
|
|
134
135
|
});
|