@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.
@@ -1,26 +1,26 @@
1
- var n = (e, t, r) => new Promise((o, c) => {
1
+ var n = (e, t, r) => new Promise((o, g) => {
2
2
  var s = (i) => {
3
3
  try {
4
- g(r.next(i));
4
+ c(r.next(i));
5
5
  } catch (u) {
6
- c(u);
6
+ g(u);
7
7
  }
8
8
  }, d = (i) => {
9
9
  try {
10
- g(r.throw(i));
10
+ c(r.throw(i));
11
11
  } catch (u) {
12
- c(u);
12
+ g(u);
13
13
  }
14
- }, g = (i) => i.done ? o(i.value) : Promise.resolve(i.value).then(s, d);
15
- g((r = r.apply(e, t)).next());
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-JJPjPnRq.js";
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: c = ""
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
- c
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 (g) {
43
- console.error("Button click handler error:", g);
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.120.12";
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(o) {
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
  });