@invoice-sdk/widget 1.120.3 → 1.120.5

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.
@@ -5098,7 +5098,7 @@ function id(e) {
5098
5098
  function Hd(e) {
5099
5099
  return S(this, null, function* () {
5100
5100
  if (pe(e), !ie) {
5101
- const { InvoiceRegisterWidget: i } = yield import("./widget-a9FOiF4X.js");
5101
+ const { InvoiceRegisterWidget: i } = yield import("./widget-CXun1Ccx.js");
5102
5102
  ie = i;
5103
5103
  }
5104
5104
  const A = me(e.selector), t = yield ie(
@@ -5121,7 +5121,7 @@ function Hd(e) {
5121
5121
  function jd(e) {
5122
5122
  return S(this, null, function* () {
5123
5123
  if (pe(e), !te) {
5124
- const { EContractWidget: t } = yield import("./widget-a9FOiF4X.js");
5124
+ const { EContractWidget: t } = yield import("./widget-CXun1Ccx.js");
5125
5125
  te = t;
5126
5126
  }
5127
5127
  const A = me(e.selector);
@@ -5172,7 +5172,7 @@ function Yd(e) {
5172
5172
  })
5173
5173
  };
5174
5174
  }
5175
- ne || (ne = (yield import("./index-DgDF2RGv.js")).createInvoiceRequestFlow);
5175
+ ne || (ne = (yield import("./index-Dm3BerFQ.js")).createInvoiceRequestFlow);
5176
5176
  const i = ne({
5177
5177
  uuid: t,
5178
5178
  orderInfo: e.orderInfo || { code: "", address: "", total: "" },
@@ -9,7 +9,7 @@ var ee = (r, t, e) => t in r ? re(r, t, { enumerable: !0, configurable: !0, writ
9
9
  se.call(t, e) && ee(r, e, t[e]);
10
10
  return r;
11
11
  };
12
- var j = (r, t, e) => new Promise((n, l) => {
12
+ var j = (r, t, e) => new Promise((i, l) => {
13
13
  var s = (p) => {
14
14
  try {
15
15
  g(e.next(p));
@@ -22,43 +22,43 @@ var j = (r, t, e) => new Promise((n, l) => {
22
22
  } catch (N) {
23
23
  l(N);
24
24
  }
25
- }, g = (p) => p.done ? n(p.value) : Promise.resolve(p.value).then(s, a);
25
+ }, g = (p) => p.done ? i(p.value) : Promise.resolve(p.value).then(s, a);
26
26
  g((e = e.apply(r, t)).next());
27
27
  });
28
- import { c as G, f as te, e as oe, b as le, o as ne, s as de } from "./loading-XFy-I2ys.js";
29
- import { t as i, c as J, j as ce } from "./index-DOx-LBdB.js";
28
+ import { c as G, f as te, e as oe, b as le, o as ne, s as de } from "./loading-85IuPQ1F.js";
29
+ import { t as n, c as J, j as ce } from "./index-CFPPYS7n.js";
30
30
  function z(r) {
31
31
  const t = r.trim();
32
- return t ? t.length < 2 || t.length > 250 ? { valid: !1, error: i("length_2_250") } : /[<>:"\/\\|?*@#$%!^]/.test(t) ? { valid: !1, error: i("invalid_characters") } : { valid: !0 } : { valid: !1, error: i("required_name") };
32
+ return t ? t.length < 2 || t.length > 250 ? { valid: !1, error: n("length_2_250") } : /[<>:"\/\\|?*@#$%!^]/.test(t) ? { valid: !1, error: n("invalid_characters") } : { valid: !0 } : { valid: !1, error: n("required_name") };
33
33
  }
34
34
  function X(r, t = !1) {
35
35
  const e = String(r != null ? r : "").trim();
36
- return e ? e.length < 2 || e.length > 250 ? { valid: !1, error: i("length_2_250") } : /[<>:"\\|?*@#$%!^]/.test(e) ? { valid: !1, error: i("invalid_characters") } : { valid: !0 } : t ? { valid: !1, error: i("required_address") } : { valid: !0 };
36
+ return e ? e.length < 2 || e.length > 250 ? { valid: !1, error: n("length_2_250") } : /[<>:"\\|?*@#$%!^]/.test(e) ? { valid: !1, error: n("invalid_characters") } : { valid: !0 } : t ? { valid: !1, error: n("required_address") } : { valid: !0 };
37
37
  }
38
38
  function K(r) {
39
39
  const t = r.trim();
40
- return t ? t.length < 6 || t.length > 254 ? { valid: !1, error: i("email_length") } : /[<>:"\/\\|?*#$%!\s]/.test(t) ? { valid: !1, error: i("email_invalid_format") } : /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(t) ? t.includes("@@") ? { valid: !1, error: i("email_invalid_format") } : { valid: !0 } : { valid: !1, error: i("email_invalid_format") } : { valid: !1, error: i("required_email") };
40
+ return t ? t.length < 6 || t.length > 254 ? { valid: !1, error: n("email_length") } : /[<>:"\/\\|?*#$%!\s]/.test(t) ? { valid: !1, error: n("email_invalid_format") } : /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(t) ? t.includes("@@") ? { valid: !1, error: n("email_invalid_format") } : { valid: !0 } : { valid: !1, error: n("email_invalid_format") } : { valid: !1, error: n("required_email") };
41
41
  }
42
42
  function Y(r, t = !1) {
43
43
  const e = r.trim();
44
44
  if (!e)
45
- return t ? { valid: !1, error: i("required_phone") } : { valid: !0 };
46
- const n = e.replace(/\s/g, "");
47
- if (/[<>:"\/\\|?*@#$%!A-Za-z]/.test(n))
48
- return { valid: !1, error: i("phone_invalid") };
45
+ return t ? { valid: !1, error: n("required_phone") } : { valid: !0 };
46
+ const i = e.replace(/\s/g, "");
47
+ if (/[<>:"\/\\|?*@#$%!A-Za-z]/.test(i))
48
+ return { valid: !1, error: n("phone_invalid") };
49
49
  const s = /^0\d{9}$/, a = /^\+84\d{9}$/;
50
- return !s.test(n) && !a.test(n) ? { valid: !1, error: i("phone_invalid_format") } : { valid: !0 };
50
+ return !s.test(i) && !a.test(i) ? { valid: !1, error: n("phone_invalid_format") } : { valid: !0 };
51
51
  }
52
52
  function Q(r) {
53
53
  const t = r.trim();
54
- if (!t) return { valid: !1, error: i("required_tax_code") };
54
+ if (!t) return { valid: !1, error: n("required_tax_code") };
55
55
  const e = t.replace(/\s/g, "");
56
56
  if (/[<>:"\/\\|?*@#$%!A-Za-z\s]/.test(e))
57
- return { valid: !1, error: i("tax_code_invalid") };
57
+ return { valid: !1, error: n("tax_code_invalid") };
58
58
  if ((e.match(/-/g) || []).length > 1)
59
- return { valid: !1, error: i("tax_code_invalid_format") };
59
+ return { valid: !1, error: n("tax_code_invalid_format") };
60
60
  const s = /^\d{10}$/, a = /^\d{10}-\d{3}$/;
61
- return !s.test(e) && !a.test(e) ? { valid: !1, error: i("tax_code_invalid_format") } : { valid: !0 };
61
+ return !s.test(e) && !a.test(e) ? { valid: !1, error: n("tax_code_invalid_format") } : { valid: !0 };
62
62
  }
63
63
  function pe({ defaultValues: r = {}, onChange: t } = {}) {
64
64
  const e = {
@@ -66,8 +66,8 @@ function pe({ defaultValues: r = {}, onChange: t } = {}) {
66
66
  buyerAddress: r.buyerAddress || "",
67
67
  email: r.email || "",
68
68
  phone: r.phone || ""
69
- }, n = document.createElement("div");
70
- n.className = "wgt:space-y-2";
69
+ }, i = document.createElement("div");
70
+ i.className = "wgt:space-y-2";
71
71
  function l() {
72
72
  typeof t == "function" && t($({}, e));
73
73
  }
@@ -113,37 +113,37 @@ function pe({ defaultValues: r = {}, onChange: t } = {}) {
113
113
  input: g,
114
114
  errorEl: p
115
115
  } = s({
116
- label: i("representativeName"),
116
+ label: n("representativeName"),
117
117
  required: !0,
118
118
  name: "representativeName",
119
- placeholder: i("representativeName_input")
119
+ placeholder: n("representativeName_input")
120
120
  }), { field: N, errorEl: k } = s({
121
- label: i("buyerAddress"),
121
+ label: n("buyerAddress"),
122
122
  required: !1,
123
123
  name: "buyerAddress",
124
- placeholder: i("buyerAddress_input")
124
+ placeholder: n("buyerAddress_input")
125
125
  }), {
126
126
  field: F,
127
127
  input: M,
128
128
  errorEl: d
129
129
  } = s({
130
- label: i("email"),
130
+ label: n("email"),
131
131
  required: !0,
132
132
  name: "email",
133
133
  type: "email",
134
- placeholder: i("email_input")
134
+ placeholder: n("email_input")
135
135
  }), {
136
136
  field: x,
137
137
  input: o,
138
138
  errorEl: u
139
139
  } = s({
140
- label: i("phone"),
140
+ label: n("phone"),
141
141
  required: !1,
142
142
  name: "phone",
143
143
  type: "tel",
144
- placeholder: i("phone_input")
144
+ placeholder: n("phone_input")
145
145
  });
146
- n.appendChild(a), n.appendChild(N), n.appendChild(F), n.appendChild(x);
146
+ i.appendChild(a), i.appendChild(N), i.appendChild(F), i.appendChild(x);
147
147
  function f() {
148
148
  let v = !0;
149
149
  function E(b, A, _) {
@@ -171,14 +171,14 @@ function pe({ defaultValues: r = {}, onChange: t } = {}) {
171
171
  function c() {
172
172
  return $({}, e);
173
173
  }
174
- return { container: n, getValues: c, validate: f };
174
+ return { container: i, getValues: c, validate: f };
175
175
  }
176
176
  function ge({
177
177
  defaultValues: r = {},
178
178
  onChange: t,
179
179
  onFetchByTaxCode: e
180
180
  } = {}) {
181
- const n = {
181
+ const i = {
182
182
  noTaxCode: !!r.noTaxCode,
183
183
  taxCode: r.taxCode || "",
184
184
  businessName: r.businessName || "",
@@ -190,7 +190,7 @@ function ge({
190
190
  }, l = document.createElement("div");
191
191
  l.className = "wgt:space-y-2";
192
192
  function s() {
193
- typeof t == "function" && t($({}, n));
193
+ typeof t == "function" && t($({}, i));
194
194
  }
195
195
  function a({ label: C, required: L, name: h, type: W = "text", placeholder: I }) {
196
196
  const Z = document.createElement("div");
@@ -198,10 +198,10 @@ function ge({
198
198
  const q = document.createElement("label");
199
199
  q.className = "wgt:text-sm wgt:font-medium wgt:text-strong-950", q.htmlFor = h, q.innerHTML = L ? `${C} <span class="wgt:text-[#ED1C24]">*</span>` : C;
200
200
  const y = document.createElement("input");
201
- y.id = h, y.name = h, y.type = W, y.placeholder = I || "", y.className = "wgt:w-full wgt:rounded-lg wgt:border wgt:border-[#E4E7EC] wgt:mt-2 wgt:bg-white wgt:px-3 wgt:py-2.5 wgt:text-sm wgt:text-strong-950 focus:wgt:outline-none focus:wgt:border-primary focus:wgt:ring-1 focus:wgt:ring-primary", y.value = n[h] || "";
201
+ y.id = h, y.name = h, y.type = W, y.placeholder = I || "", y.className = "wgt:w-full wgt:rounded-lg wgt:border wgt:border-[#E4E7EC] wgt:mt-2 wgt:bg-white wgt:px-3 wgt:py-2.5 wgt:text-sm wgt:text-strong-950 focus:wgt:outline-none focus:wgt:border-primary focus:wgt:ring-1 focus:wgt:ring-primary", y.value = i[h] || "";
202
202
  const O = document.createElement("div");
203
203
  return O.className = "wgt:text-xs wgt:text-[#ED1C24] wgt:mt-1 wgt:hidden", O.setAttribute("data-error-for", h), y.addEventListener("input", () => {
204
- n[h] = y.value, y.classList.remove(
204
+ i[h] = y.value, y.classList.remove(
205
205
  "wgt:border-semantic-error",
206
206
  "wgt:bg-semantic-error-50"
207
207
  ), O.classList.add("wgt:hidden"), s();
@@ -234,10 +234,10 @@ function ge({
234
234
  const g = document.createElement("label");
235
235
  g.className = "wgt:flex wgt:items-center wgt:gap-2 wgt:font-medium wgt:text-strong-950 wgt:text-sm";
236
236
  const p = document.createElement("input");
237
- p.type = "checkbox", p.className = "wgt:h-4 wgt:w-4 wgt:rounded wgt:border-[#E4E7EC] focus:wgt:outline-none focus:wgt:ring-primary", p.checked = n.noTaxCode;
237
+ p.type = "checkbox", p.className = "wgt:h-4 wgt:w-4 wgt:rounded wgt:border-[#E4E7EC] focus:wgt:outline-none focus:wgt:ring-primary", p.checked = i.noTaxCode;
238
238
  const N = document.createElement("span");
239
- N.textContent = i("business_noTaxCode"), N.className = "wgt:italic wgt:font-normal wgt:text-[14px] wgt:leading-[20px] wgt:tracking-[0px] wgt:align-middle wgt:text-[#525866]", N.style.fontFamily = "Inter, sans-serif", p.addEventListener("change", () => {
240
- n.noTaxCode = p.checked, d.disabled = n.noTaxCode, o.disabled = n.noTaxCode, d.classList.remove(
239
+ N.textContent = n("business_noTaxCode"), N.className = "wgt:italic wgt:font-normal wgt:text-[14px] wgt:leading-[20px] wgt:tracking-[0px] wgt:align-middle wgt:text-[#525866]", N.style.fontFamily = "Inter, sans-serif", p.addEventListener("change", () => {
240
+ i.noTaxCode = p.checked, d.disabled = i.noTaxCode, o.disabled = i.noTaxCode, d.classList.remove(
241
241
  "wgt:border-semantic-error",
242
242
  "wgt:bg-semantic-error-50"
243
243
  ), x.classList.add("wgt:hidden"), s();
@@ -245,19 +245,19 @@ function ge({
245
245
  const k = document.createElement("div");
246
246
  k.className = "wgt:space-y-2";
247
247
  const F = document.createElement("label");
248
- F.className = "wgt:text-sm wgt:font-medium wgt:text-strong-950 ", F.innerHTML = i("confirmation_popup_taxCode") + '<span class="wgt:text-[#ED1C24]">*</span>';
248
+ F.className = "wgt:text-sm wgt:font-medium wgt:text-strong-950 ", F.innerHTML = n("confirmation_popup_taxCode") + '<span class="wgt:text-[#ED1C24]">*</span>';
249
249
  const M = document.createElement("div");
250
250
  M.className = "wgt:flex wgt:gap-2 wgt:mt-2";
251
251
  const d = document.createElement("input");
252
- d.type = "text", d.name = "taxCode", d.placeholder = i("taxCode_input"), d.value = n.taxCode, d.className = "wgt:flex-1 wgt:rounded-lg wgt:border wgt:border-[#E4E7EC] wgt:bg-white wgt:px-3 wgt:py-2.5 wgt:text-sm wgt:text-strong-950 focus:wgt:outline-none focus:wgt:border-primary focus:wgt:ring-1 focus:wgt:ring-primary";
252
+ d.type = "text", d.name = "taxCode", d.placeholder = n("taxCode_input"), d.value = i.taxCode, d.className = "wgt:flex-1 wgt:rounded-lg wgt:border wgt:border-[#E4E7EC] wgt:bg-white wgt:px-3 wgt:py-2.5 wgt:text-sm wgt:text-strong-950 focus:wgt:outline-none focus:wgt:border-primary focus:wgt:ring-1 focus:wgt:ring-primary";
253
253
  const x = document.createElement("div");
254
254
  x.className = "wgt:text-xs wgt:text-[#ED1C24] wgt:mt-1 wgt:hidden", d.addEventListener("input", () => {
255
- n.taxCode = d.value, d.classList.remove(
255
+ i.taxCode = d.value, d.classList.remove(
256
256
  "wgt:border-semantic-error",
257
257
  "wgt:bg-semantic-error-50"
258
258
  ), x.classList.add("wgt:hidden"), s();
259
259
  }), d.addEventListener("blur", () => {
260
- if (n.noTaxCode || !d.value.trim()) return;
260
+ if (i.noTaxCode || !d.value.trim()) return;
261
261
  const C = Q(d.value);
262
262
  C.valid || (d.classList.add(
263
263
  "wgt:border-semantic-error",
@@ -266,12 +266,12 @@ function ge({
266
266
  });
267
267
  const o = G({
268
268
  type: "button",
269
- title: i("fetch_info"),
269
+ title: n("fetch_info"),
270
270
  className: "wgt:px-3 wgt:py-2.5 wgt:text-sm wgt:font-semibold wgt:rounded-lg wgt:flex-shrink-0 wgt:text-primary wgt:bg-white wgt:border wgt:border-primary",
271
271
  handleClick: () => j(null, null, function* () {
272
- if (n.noTaxCode || typeof e != "function")
272
+ if (i.noTaxCode || typeof e != "function")
273
273
  return;
274
- const C = String(n.taxCode || "").trim();
274
+ const C = String(i.taxCode || "").trim();
275
275
  if (!C) {
276
276
  d.classList.add(
277
277
  "wgt:border-semantic-error",
@@ -289,16 +289,16 @@ function ge({
289
289
  }
290
290
  try {
291
291
  o.disabled = !0;
292
- const h = yield e(C, $({}, n));
292
+ const h = yield e(C, $({}, i));
293
293
  if (!h || typeof h != "object") return;
294
- h.businessName != null && (n.businessName = String(h.businessName || ""), f.value = n.businessName), h.representativeName != null && (n.representativeName = String(h.representativeName || ""), E.value = n.representativeName), h.buyerAddress != null && (n.buyerAddress = String(h.buyerAddress || ""), b.value = n.buyerAddress), s();
294
+ h.businessName != null && (i.businessName = String(h.businessName || ""), f.value = i.businessName), h.representativeName != null && (i.representativeName = String(h.representativeName || ""), E.value = i.representativeName), h.buyerAddress != null && (i.buyerAddress = String(h.buyerAddress || ""), b.value = i.buyerAddress), s();
295
295
  } catch (h) {
296
296
  d.classList.add(
297
297
  "wgt:border-semantic-error",
298
298
  "wgt:bg-semantic-error-50"
299
299
  ), x.textContent = "Không tìm thấy thông tin MST", x.classList.remove("wgt:hidden");
300
300
  } finally {
301
- o.disabled = n.noTaxCode;
301
+ o.disabled = i.noTaxCode;
302
302
  }
303
303
  })
304
304
  });
@@ -308,50 +308,50 @@ function ge({
308
308
  input: f,
309
309
  errorEl: c
310
310
  } = a({
311
- label: i("businessName"),
311
+ label: n("businessName"),
312
312
  required: !0,
313
313
  name: "businessName",
314
- placeholder: i("businessName_input")
314
+ placeholder: n("businessName_input")
315
315
  }), {
316
316
  field: v,
317
317
  input: E,
318
318
  errorEl: H
319
319
  } = a({
320
- label: i("representativeName"),
320
+ label: n("representativeName"),
321
321
  required: !0,
322
322
  name: "representativeName",
323
- placeholder: i("representativeName_input")
323
+ placeholder: n("representativeName_input")
324
324
  }), {
325
325
  field: B,
326
326
  input: b,
327
327
  errorEl: A
328
328
  } = a({
329
- label: i("buyerAddress"),
329
+ label: n("buyerAddress"),
330
330
  required: !1,
331
331
  name: "buyerAddress",
332
- placeholder: i("buyerAddress_input")
332
+ placeholder: n("buyerAddress_input")
333
333
  }), {
334
334
  field: _,
335
335
  input: m,
336
336
  errorEl: T
337
337
  } = a({
338
- label: i("email"),
338
+ label: n("email"),
339
339
  required: !0,
340
340
  name: "email",
341
341
  type: "email",
342
- placeholder: i("email_input")
342
+ placeholder: n("email_input")
343
343
  }), {
344
344
  field: w,
345
345
  input: V,
346
346
  errorEl: S
347
347
  } = a({
348
- label: i("phone"),
348
+ label: n("phone"),
349
349
  required: !1,
350
350
  name: "phone",
351
351
  type: "tel",
352
- placeholder: i("phone_input")
352
+ placeholder: n("phone_input")
353
353
  });
354
- l.appendChild(g), l.appendChild(k), l.appendChild(u), l.appendChild(v), l.appendChild(B), l.appendChild(_), l.appendChild(w), d.disabled = n.noTaxCode, o.disabled = n.noTaxCode;
354
+ l.appendChild(g), l.appendChild(k), l.appendChild(u), l.appendChild(v), l.appendChild(B), l.appendChild(_), l.appendChild(w), d.disabled = i.noTaxCode, o.disabled = i.noTaxCode;
355
355
  function P() {
356
356
  let C = !0;
357
357
  function L(Z, q, y) {
@@ -361,26 +361,26 @@ function ge({
361
361
  "wgt:mt-2"
362
362
  ), y && q && (q.textContent = y, q.classList.remove("wgt:hidden")), C = !1;
363
363
  }
364
- if (!n.noTaxCode) {
365
- const Z = Q(n.taxCode);
364
+ if (!i.noTaxCode) {
365
+ const Z = Q(i.taxCode);
366
366
  Z.valid || L(d, x, Z.error);
367
367
  }
368
- const h = z(n.businessName);
368
+ const h = z(i.businessName);
369
369
  h.valid || L(f, c, h.error);
370
- const W = z(n.representativeName);
371
- if (W.valid || L(E, H, W.error), n.buyerAddress.trim()) {
372
- const Z = X(n.buyerAddress);
370
+ const W = z(i.representativeName);
371
+ if (W.valid || L(E, H, W.error), i.buyerAddress.trim()) {
372
+ const Z = X(i.buyerAddress);
373
373
  Z.valid || L(b, A, Z.error);
374
374
  }
375
- const I = K(n.email);
376
- if (I.valid || L(m, T, I.error), n.phone.trim()) {
377
- const Z = Y(n.phone, !0);
375
+ const I = K(i.email);
376
+ if (I.valid || L(m, T, I.error), i.phone.trim()) {
377
+ const Z = Y(i.phone, !0);
378
378
  Z.valid || L(V, S, Z.error);
379
379
  }
380
380
  return C;
381
381
  }
382
382
  function R() {
383
- return $({}, n);
383
+ return $({}, i);
384
384
  }
385
385
  return { container: l, getValues: R, validate: P };
386
386
  }
@@ -388,7 +388,7 @@ function me({
388
388
  type: r,
389
389
  data: t,
390
390
  orderInfo: e,
391
- theme: n,
391
+ theme: i,
392
392
  onClose: l,
393
393
  onConfirm: s
394
394
  }) {
@@ -396,15 +396,15 @@ function me({
396
396
  a.className = "wgt:fixed wgt:inset-0 wgt:flex wgt:items-center wgt:justify-center wgt:z-50 wgt:p-4", a.style.cssText = `
397
397
  background-color: rgba(0, 0, 0, 0.5);
398
398
  backdrop-filter: blur(4px);
399
- `, n && a.setAttribute("data-theme", n);
399
+ `, i && a.setAttribute("data-theme", i);
400
400
  const g = document.createElement("div");
401
401
  g.className = "wgt:w-full wgt:max-w-md wgt:bg-white wgt:rounded-2xl wgt:shadow-xl wgt:max-h-[90vh] wgt:overflow-y-auto";
402
402
  const p = document.createElement("div");
403
403
  p.className = "wgt:px-6 wgt:pt-6 wgt:pb-4 wgt:space-y-2";
404
404
  const N = document.createElement("h3");
405
- N.className = "wgt:text-xl wgt:font-semibold wgt:text-center wgt:text-strong-950", N.textContent = i("confirmation_popup_title");
405
+ N.className = "wgt:text-xl wgt:font-semibold wgt:text-center wgt:text-strong-950", N.textContent = n("confirmation_popup_title");
406
406
  const k = document.createElement("p");
407
- k.className = "wgt:text-sm wgt:text-center wgt:text-[#525866]", k.textContent = i("confirmation_popup_subtitle"), p.appendChild(N), p.appendChild(k), g.appendChild(p);
407
+ k.className = "wgt:text-sm wgt:text-center wgt:text-[#525866]", k.textContent = n("confirmation_popup_subtitle"), p.appendChild(N), p.appendChild(k), g.appendChild(p);
408
408
  const F = document.createElement("div");
409
409
  F.className = "wgt:px-6 wgt:pb-4";
410
410
  const M = document.createElement("div");
@@ -425,19 +425,19 @@ function me({
425
425
  M.appendChild(
426
426
  d(
427
427
  x,
428
- i("confirmation_popup_orderCode"),
428
+ n("confirmation_popup_orderCode"),
429
429
  e == null ? void 0 : e.billNo
430
430
  )
431
431
  ), M.appendChild(
432
432
  d(
433
433
  o,
434
- i("confirmation_popup_address"),
434
+ n("confirmation_popup_address"),
435
435
  e == null ? void 0 : e.merchantAddress
436
436
  )
437
437
  ), M.appendChild(
438
438
  d(
439
439
  u,
440
- i("confirmation_popup_totalAmount"),
440
+ n("confirmation_popup_totalAmount"),
441
441
  te(e == null ? void 0 : e.amount) + " VND"
442
442
  )
443
443
  ), F.appendChild(M), g.appendChild(F);
@@ -454,29 +454,29 @@ function me({
454
454
  return T.className = "wgt:text-sm wgt:font-semibold wgt:text-strong-950 wgt:text-right wgt:w-2/3", T.textContent = A || "-", _.appendChild(m), _.appendChild(T), _;
455
455
  }
456
456
  r === "business" ? (c.appendChild(
457
- v(i("confirmation_popup_taxCode"), t.taxCode)
457
+ v(n("confirmation_popup_taxCode"), t.taxCode)
458
458
  ), c.appendChild(
459
- v(i("businessName"), t.businessName)
459
+ v(n("businessName"), t.businessName)
460
460
  ), c.appendChild(
461
461
  v(
462
- i("confirmation_popup_representativeName"),
462
+ n("confirmation_popup_representativeName"),
463
463
  t.representativeName
464
464
  )
465
465
  ), c.appendChild(
466
- v(i("confirmation_popup_buyerAddress"), t.buyerAddress)
466
+ v(n("confirmation_popup_buyerAddress"), t.buyerAddress)
467
467
  ), c.appendChild(
468
- v(i("confirmation_popup_email"), t.email)
468
+ v(n("confirmation_popup_email"), t.email)
469
469
  ), c.appendChild(
470
- v(i("confirmation_popup_phone"), t.phone)
470
+ v(n("confirmation_popup_phone"), t.phone)
471
471
  )) : (c.appendChild(
472
472
  v(
473
- i("confirmation_popup_representativeName"),
473
+ n("confirmation_popup_representativeName"),
474
474
  t.representativeName
475
475
  )
476
476
  ), c.appendChild(
477
- v(i("confirmation_popup_buyerAddress"), t.buyerAddress)
477
+ v(n("confirmation_popup_buyerAddress"), t.buyerAddress)
478
478
  ), c.appendChild(
479
- v(i("confirmation_popup_email"), t.email)
479
+ v(n("confirmation_popup_email"), t.email)
480
480
  )), f.appendChild(c), g.appendChild(f);
481
481
  const E = document.createElement("div");
482
482
  E.className = "wgt:px-6 wgt:pb-6 wgt:flex wgt:gap-3";
@@ -503,7 +503,7 @@ function ue({
503
503
  orderInfo: r,
504
504
  onPreview: t,
505
505
  theme: e,
506
- onSubmit: n,
506
+ onSubmit: i,
507
507
  taxCode: l = ""
508
508
  }) {
509
509
  const s = document.createElement("div");
@@ -519,9 +519,9 @@ function ue({
519
519
  const k = document.createElement("div");
520
520
  k.className = "wgt:space-y-1";
521
521
  const F = document.createElement("h3");
522
- F.className = "wgt:text-2xl wgt:font-semibold wgt:text-text-black wgt:text-center wgt:justify-center", F.textContent = i("invoiceform_title");
522
+ F.className = "wgt:text-2xl wgt:font-semibold wgt:text-text-black wgt:text-center wgt:justify-center", F.textContent = n("invoiceform_title");
523
523
  const M = document.createElement("p");
524
- M.className = "wgt:text-sm wgt:text-weak-700 wgt:text-center wgt:justify-center", M.textContent = i("invoiceform_subtitle"), k.appendChild(F), k.appendChild(M), a.appendChild(k);
524
+ M.className = "wgt:text-sm wgt:text-weak-700 wgt:text-center wgt:justify-center", M.textContent = n("invoiceform_subtitle"), k.appendChild(F), k.appendChild(M), a.appendChild(k);
525
525
  const d = document.createElement("div");
526
526
  d.className = "wgt:mt-2 wgt:space-y-3 wgt:rounded-xl wgt:bg-weak-50 wgt:px-6 wgt:py-6";
527
527
  function x(w, V) {
@@ -532,32 +532,29 @@ function ue({
532
532
  const R = document.createElement("span");
533
533
  R.className = "wgt:inline-flex wgt:items-center wgt:justify-center wgt:w-4 wgt:h-4 wgt:text-icon-primary";
534
534
  let C = "";
535
- w === i("invoice_number") ? C = `
535
+ w === n("invoice_number") ? C = `
536
536
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
537
537
  <path d="M12.7996 14H3.19961C3.04048 14 2.88787 13.9368 2.77535 13.8243C2.66282 13.7117 2.59961 13.5591 2.59961 13.4V2.6C2.59961 2.44087 2.66282 2.28826 2.77535 2.17574C2.88787 2.06321 3.04048 2 3.19961 2H12.7996C12.9587 2 13.1114 2.06321 13.2239 2.17574C13.3364 2.28826 13.3996 2.44087 13.3996 2.6V13.4C13.3996 13.5591 13.3364 13.7117 13.2239 13.8243C13.1114 13.9368 12.9587 14 12.7996 14ZM12.1996 12.8V3.2H3.79961V12.8H12.1996ZM5.59961 6.2H10.3996V7.4H5.59961V6.2ZM5.59961 8.6H10.3996V9.8H5.59961V8.6Z" fill="currentColor"/>
538
538
  </svg>
539
-
540
- ` : w === i("address_form") ? C = `
539
+ ` : w === n("address_form") ? C = `
541
540
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
542
541
  <path d="M7.99961 13.34L10.9696 10.37C11.557 9.78256 11.9569 9.03419 12.1189 8.21948C12.281 7.40477 12.1978 6.56031 11.8799 5.79289C11.562 5.02546 11.0236 4.36954 10.333 3.90805C9.64229 3.44657 8.83028 3.20026 7.99961 3.20026C7.16895 3.20026 6.35694 3.44657 5.66626 3.90805C4.97558 4.36954 4.43726 5.02546 4.11936 5.79289C3.80146 6.56031 3.71826 7.40477 3.88028 8.21948C4.04231 9.03419 4.44227 9.78256 5.02961 10.37L7.99961 13.34ZM7.99961 15.0368L4.18121 11.2184C3.42602 10.4631 2.91172 9.50096 2.70337 8.45346C2.49501 7.40597 2.60195 6.32021 3.01067 5.33349C3.41938 4.34678 4.11152 3.50342 4.99954 2.91006C5.88756 2.3167 6.9316 2 7.99961 2C9.06763 2 10.1117 2.3167 10.9997 2.91006C11.8877 3.50342 12.5798 4.34678 12.9886 5.33349C13.3973 6.32021 13.5042 7.40597 13.2959 8.45346C13.0875 9.50096 12.5732 10.4631 11.818 11.2184L7.99961 15.0368ZM7.99961 8.59995C8.31787 8.59995 8.6231 8.47353 8.84814 8.24848C9.07318 8.02344 9.19961 7.71821 9.19961 7.39995C9.19961 7.08169 9.07318 6.77647 8.84814 6.55143C8.6231 6.32638 8.31787 6.19995 7.99961 6.19995C7.68135 6.19995 7.37613 6.32638 7.15108 6.55143C6.92604 6.77647 6.79961 7.08169 6.79961 7.39995C6.79961 7.71821 6.92604 8.02344 7.15108 8.24848C7.37613 8.47353 7.68135 8.59995 7.99961 8.59995ZM7.99961 9.79995C7.36309 9.79995 6.75264 9.5471 6.30256 9.09701C5.85247 8.64692 5.59961 8.03647 5.59961 7.39995C5.59961 6.76343 5.85247 6.15298 6.30256 5.7029C6.75264 5.25281 7.36309 4.99995 7.99961 4.99995C8.63613 4.99995 9.24658 5.25281 9.69667 5.7029C10.1468 6.15298 10.3996 6.76343 10.3996 7.39995C10.3996 8.03647 10.1468 8.64692 9.69667 9.09701C9.24658 9.5471 8.63613 9.79995 7.99961 9.79995Z" fill="currentColor"/>
543
542
  </svg>
544
-
545
- ` : w === i("total_amount") && (C = `
543
+ ` : w === n("total_amount") && (C = `
546
544
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
547
545
  <path d="M8 14C4.6862 14 2 11.3138 2 8C2 4.6862 4.6862 2 8 2C11.3138 2 14 4.6862 14 8C14 11.3138 11.3138 14 8 14ZM8 12.8C9.27304 12.8 10.4939 12.2943 11.3941 11.3941C12.2943 10.4939 12.8 9.27304 12.8 8C12.8 6.72696 12.2943 5.50606 11.3941 4.60589C10.4939 3.70571 9.27304 3.2 8 3.2C6.72696 3.2 5.50606 3.70571 4.60589 4.60589C3.70571 5.50606 3.2 6.72696 3.2 8C3.2 9.27304 3.70571 10.4939 4.60589 11.3941C5.50606 12.2943 6.72696 12.8 8 12.8V12.8ZM5.9 9.2H9.2C9.27957 9.2 9.35587 9.16839 9.41213 9.11213C9.46839 9.05587 9.5 8.97957 9.5 8.9C9.5 8.82044 9.46839 8.74413 9.41213 8.68787C9.35587 8.63161 9.27957 8.6 9.2 8.6H6.8C6.40218 8.6 6.02064 8.44197 5.73934 8.16066C5.45804 7.87936 5.3 7.49783 5.3 7.1C5.3 6.70218 5.45804 6.32065 5.73934 6.03934C6.02064 5.75804 6.40218 5.6 6.8 5.6H7.4V4.4H8.6V5.6H10.1V6.8H6.8C6.72044 6.8 6.64413 6.83161 6.58787 6.88787C6.53161 6.94413 6.5 7.02044 6.5 7.1C6.5 7.17957 6.53161 7.25587 6.58787 7.31213C6.64413 7.36839 6.72044 7.4 6.8 7.4H9.2C9.59783 7.4 9.97936 7.55804 10.2607 7.83934C10.542 8.12065 10.7 8.50218 10.7 8.9C10.7 9.29783 10.542 9.67936 10.2607 9.96066C9.97936 10.242 9.59783 10.4 9.2 10.4H8.6V11.6H7.4V10.4H5.9V9.2Z" fill="currentColor"/>
548
546
  </svg>
549
-
550
547
  `), R.innerHTML = C;
551
548
  const L = document.createElement("span");
552
549
  L.className = "wgt:text-sm wgt:text-weak-700", L.textContent = w, P.appendChild(R), P.appendChild(L);
553
550
  const h = document.createElement("span");
554
551
  return h.className = "wgt:text-sm wgt:font-semibold wgt:text-strong-950 wgt:w-2/3 wgt:text-right", h.textContent = V, S.appendChild(P), S.appendChild(h), S;
555
552
  }
556
- d.appendChild(x(i("invoice_number"), r == null ? void 0 : r.billNo)), d.appendChild(
557
- x(i("address_form"), r == null ? void 0 : r.merchantAddress)
553
+ d.appendChild(x(n("invoice_number"), r == null ? void 0 : r.billNo)), d.appendChild(
554
+ x(n("address_form"), r == null ? void 0 : r.merchantAddress)
558
555
  ), d.appendChild(
559
556
  x(
560
- i("total_amount"),
557
+ n("total_amount"),
561
558
  te(r == null ? void 0 : r.amount) + " VND"
562
559
  )
563
560
  ), a.appendChild(d);
@@ -571,8 +568,7 @@ function ue({
571
568
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
572
569
  <path d="M10 12C11.4587 12 12.8572 12.5799 13.8887 13.6113C14.8016 14.5242 15.3592 15.7247 15.4756 17H14.9746C14.8598 15.8576 14.3542 14.7839 13.5352 13.9648C12.5975 13.0272 11.3261 12.5 10 12.5C8.67392 12.5 7.40253 13.0272 6.46484 13.9648C5.64577 14.7839 5.14018 15.8576 5.02539 17H4.52441C4.64082 15.7247 5.19843 14.5242 6.11133 13.6113C7.07838 12.6443 8.36805 12.0742 9.72754 12.0068L10 12ZM10 2.25C12.2101 2.25 14 4.03989 14 6.25C14 8.46011 12.2101 10.25 10 10.25C7.78989 10.25 6 8.46011 6 6.25C6 4.03989 7.78989 2.25 10 2.25ZM10 2.75C8.06636 2.75 6.5 4.31636 6.5 6.25C6.5 8.18364 8.06636 9.75 10 9.75C11.9336 9.75 13.5 8.18364 13.5 6.25C13.5 4.31636 11.9336 2.75 10 2.75Z" fill="currentColor" stroke="currentColor"/>
573
570
  </svg>
574
-
575
- ${i("individual")}
571
+ ${n("individual")}
576
572
  </span>
577
573
  `;
578
574
  const c = document.createElement("button");
@@ -581,8 +577,7 @@ function ue({
581
577
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
582
578
  <path d="M4 3.875H11.5C11.5332 3.875 11.5654 3.88769 11.5889 3.91113C11.6123 3.93457 11.625 3.96685 11.625 4V15.875H15.875V8.625H14.375V8.375H16C16.0332 8.375 16.0654 8.38769 16.0889 8.41113C16.1123 8.43457 16.125 8.46685 16.125 8.5V15.875H17.625V16.125H2.375V15.875H3.875V4C3.875 3.96685 3.88769 3.93457 3.91113 3.91113C3.93457 3.88769 3.96685 3.875 4 3.875ZM4.125 15.875H11.375V4.125H4.125V15.875ZM8.625 9.875V10.125H6.875V9.875H8.625ZM8.625 6.875V7.125H6.875V6.875H8.625Z" fill="currentColor" stroke="currentColor" stroke-width="1.25"/>
583
579
  </svg>
584
-
585
- ${i("business")}
580
+ ${n("business")}
586
581
  </span>
587
582
  `, u.appendChild(f), u.appendChild(c);
588
583
  const v = document.createElement("div");
@@ -607,16 +602,15 @@ function ue({
607
602
  }
608
603
  f.addEventListener("click", () => A("individual")), c.addEventListener("click", () => A("business")), A("individual");
609
604
  const _ = document.createElement("p");
610
- _.className = "wgt:mt-2 wgt:text-xs wgt:text-[#FF8447] wgt:text-left wgt:justify-center", _.textContent = i("invoiceform_note"), a.appendChild(_);
605
+ _.className = "wgt:mt-2 wgt:text-xs wgt:text-[#FF8447] wgt:text-left wgt:justify-center", _.textContent = n("invoiceform_note"), a.appendChild(_);
611
606
  const m = document.createElement("div");
612
607
  m.className = "wgt:mt-6 wgt:w-full wgt:flex wgt:justify-center wgt:items-center";
613
608
  const T = G({
614
609
  type: "button",
615
- title: i("btn_preview"),
610
+ title: n("btn_preview"),
616
611
  className: "wgt:min-w-[163px] wgt:text-white",
617
612
  handleClick: () => {
618
- if (!b.validate())
619
- return;
613
+ if (!b.validate()) return;
620
614
  const w = {
621
615
  type: B,
622
616
  data: b.getValues()
@@ -632,16 +626,15 @@ function ue({
632
626
  var S, P, R;
633
627
  V.remove(), p();
634
628
  try {
635
- if (typeof n != "function") return;
636
- const C = yield n({
629
+ if (typeof i != "function") return;
630
+ const C = yield i({
637
631
  type: w.type,
638
632
  data: w.data
639
633
  }), L = (R = (P = (S = C == null ? void 0 : C.finalData) != null ? S : C == null ? void 0 : C.data) != null ? P : C) != null ? R : {}, h = String((L == null ? void 0 : L.status) || "").trim().toLowerCase();
640
634
  if (N(), h === "invoiced") {
641
635
  J({
642
- message: i("invoice_success"),
643
- description: i("invoice_description"),
644
- // okLabel: t('close'),
636
+ message: n("invoice_success"),
637
+ description: n("invoice_description"),
645
638
  isSuccess: !0,
646
639
  hideOkButton: !0,
647
640
  theme: e,
@@ -651,11 +644,11 @@ function ue({
651
644
  }
652
645
  if (h === "failed") {
653
646
  J({
654
- message: i("invoice_failed"),
655
- description: i("invoice_description_failed"),
656
- // okLabel: t('close'),
647
+ message: n("invoice_failed"),
648
+ description: n("invoice_description_failed"),
649
+ okLabel: n("close"),
657
650
  isSuccess: !1,
658
- hideOkButton: !0,
651
+ hideOkButton: !1,
659
652
  theme: e,
660
653
  closeOnClickOutside: !1
661
654
  }).open();
@@ -663,11 +656,11 @@ function ue({
663
656
  }
664
657
  } catch (C) {
665
658
  N(), J({
666
- message: i("invoice_failed"),
667
- description: i("invoice_description_failed"),
668
- // okLabel: t('close'),
659
+ message: n("invoice_failed"),
660
+ description: n("invoice_description_failed"),
661
+ okLabel: n("close"),
669
662
  isSuccess: !1,
670
- hideOkButton: !0,
663
+ hideOkButton: !1,
671
664
  closeOnClickOutside: !1,
672
665
  theme: e
673
666
  }).open(), console.error(C);
@@ -682,8 +675,8 @@ function ue({
682
675
  function we({ theme: r, onClose: t } = {}) {
683
676
  const e = document.createElement("div");
684
677
  e.className = " wgt:flex wgt:h-screen wgt:bg-[#F3F4F6] wgt:p-4", r && e.setAttribute("data-theme", r);
685
- const n = document.createElement("div");
686
- n.className = "wgt:w-full wgt:max-w-md wgt:max-h-[208px] wgt:bg-white wgt:rounded-2xl wgt:shadow-sm wgt:p-8 wgt:text-center";
678
+ const i = document.createElement("div");
679
+ i.className = "wgt:w-full wgt:max-w-md wgt:max-h-[208px] wgt:bg-white wgt:rounded-2xl wgt:shadow-sm wgt:p-8 wgt:text-center";
687
680
  const l = document.createElement("div");
688
681
  l.className = "wgt:flex wgt:justify-center wgt:mb-4";
689
682
  const s = document.createElement("div");
@@ -692,17 +685,17 @@ function we({ theme: r, onClose: t } = {}) {
692
685
  <path d="M20.7996 22.75H5.19961C4.94102 22.75 4.69303 22.6473 4.51018 22.4644C4.32733 22.2816 4.22461 22.0336 4.22461 21.775V4.225C4.22461 3.96641 4.32733 3.71842 4.51018 3.53557C4.69303 3.35272 4.94102 3.25 5.19961 3.25H20.7996C21.0582 3.25 21.3062 3.35272 21.489 3.53557C21.6719 3.71842 21.7746 3.96641 21.7746 4.225V21.775C21.7746 22.0336 21.6719 22.2816 21.489 22.4644C21.3062 22.6473 21.0582 22.75 20.7996 22.75ZM9.09961 10.075V12.025H16.8996V10.075H9.09961ZM9.09961 13.975V15.925H16.8996V13.975H9.09961Z" fill="white"/>
693
686
  </svg>
694
687
 
695
- `, l.appendChild(s), n.appendChild(l);
688
+ `, l.appendChild(s), i.appendChild(l);
696
689
  const a = document.createElement("h2");
697
- a.className = "wgt:text-base wgt:font-semibold wgt:text-[#0E121B] wgt:mb-2", a.textContent = i("invoiceCheckout_title"), n.appendChild(a);
690
+ a.className = "wgt:text-base wgt:font-semibold wgt:text-[#0E121B] wgt:mb-2", a.textContent = n("invoiceCheckout_title"), i.appendChild(a);
698
691
  const g = document.createElement("p");
699
- return g.className = "wgt:text-sm wgt:text-[#525866] wgt:leading-relaxed", g.textContent = i("invoiceCheckout_description"), n.appendChild(g), e.appendChild(n), { container: e };
692
+ return g.className = "wgt:text-sm wgt:text-[#525866] wgt:leading-relaxed", g.textContent = n("invoiceCheckout_description"), i.appendChild(g), e.appendChild(i), { container: e };
700
693
  }
701
694
  function Ce({ theme: r, onClose: t } = {}) {
702
695
  const e = document.createElement("div");
703
696
  e.className = "wgt:min-h-screen wgt:flex wgt:bg-[#F3F4F6] wgt:p-4", r && e.setAttribute("data-theme", r);
704
- const n = document.createElement("div");
705
- n.className = "wgt:w-full wgt:max-w-md wgt:max-h-[252px] wgt:bg-white wgt:rounded-2xl wgt:shadow-sm wgt:px-4 wgt:py-5 wgt:text-center";
697
+ const i = document.createElement("div");
698
+ i.className = "wgt:w-full wgt:max-w-md wgt:max-h-[252px] wgt:bg-white wgt:rounded-2xl wgt:shadow-sm wgt:px-4 wgt:py-5 wgt:text-center";
706
699
  const l = document.createElement("div");
707
700
  l.className = "wgt:flex wgt:justify-center wgt:mb-2";
708
701
  const s = document.createElement("div");
@@ -724,23 +717,23 @@ function Ce({ theme: r, onClose: t } = {}) {
724
717
  <path fill-rule="evenodd" clip-rule="evenodd" d="M38.7788 33.9142C39.4439 33.9142 39.9696 34.4369 39.9696 35.1051C39.9696 35.7748 39.4447 36.2959 38.7788 36.2959C38.1144 36.2959 37.5879 35.7748 37.5879 35.1051C37.5879 34.4361 38.1144 33.9142 38.7788 33.9142ZM44.1494 28.6799C43.9468 28.6837 43.7479 28.7675 43.6039 28.9146L39.9376 32.59C39.5826 32.4232 39.1925 32.3234 38.7788 32.3234C37.2542 32.3234 36.0039 33.5813 36.0039 35.1051C36.0039 36.6296 37.2542 37.8891 38.7788 37.8891C40.3033 37.8891 41.5544 36.6296 41.5544 35.1051C41.5544 34.5679 41.3944 34.0712 41.1285 33.6445L44.727 30.0376C45.2367 29.5317 44.8702 28.6632 44.1494 28.6799Z" fill="#808080"/>
725
718
  </svg>
726
719
 
727
- `, l.appendChild(s), n.appendChild(l);
720
+ `, l.appendChild(s), i.appendChild(l);
728
721
  const a = document.createElement("h2");
729
- a.className = "wgt:text-base wgt:font-semibold wgt:text-[#0E121B] wgt:mb-2", a.textContent = i("invoiceExpired_title"), n.appendChild(a);
722
+ a.className = "wgt:text-base wgt:font-semibold wgt:text-[#0E121B] wgt:mb-2", a.textContent = n("invoiceExpired_title"), i.appendChild(a);
730
723
  const g = document.createElement("p");
731
- g.className = "wgt:text-sm wgt:text-[#525866] wgt:leading-relaxed wgt:px-2 wgt:mb-3", g.textContent = i("invoiceExpired_description"), n.appendChild(g);
724
+ g.className = "wgt:text-sm wgt:text-[#525866] wgt:leading-relaxed wgt:px-2 wgt:mb-3", g.textContent = n("invoiceExpired_description"), i.appendChild(g);
732
725
  const p = document.createElement("p");
733
- return p.className = "wgt:text-sm wgt:text-[#99A0AE] wgt:italic wgt:leading-relaxed wgt:px-4", p.textContent = i("invoiceExpired_note"), n.appendChild(p), e.appendChild(n), { container: e };
726
+ return p.className = "wgt:text-sm wgt:text-[#99A0AE] wgt:italic wgt:leading-relaxed wgt:px-4", p.textContent = n("invoiceExpired_note"), i.appendChild(p), e.appendChild(i), { container: e };
734
727
  }
735
728
  function ie(r) {
736
729
  return String(r || "").trim().toLowerCase();
737
730
  }
738
731
  function Ne({ uuid: r, orderInfo: t, theme: e }) {
739
- const n = document.createElement("div");
740
- n.className = "wgt:w-full wgt:min-h-screen";
732
+ const i = document.createElement("div");
733
+ i.className = "wgt:w-full wgt:min-h-screen";
741
734
  let l = !1;
742
735
  function s(o) {
743
- l || (n.innerHTML = "", o && n.appendChild(o));
736
+ l || (i.innerHTML = "", o && i.appendChild(o));
744
737
  }
745
738
  function a(o) {
746
739
  o && console.log("[DEBUG] renderFailedPage:", o);
@@ -820,23 +813,23 @@ function Ne({ uuid: r, orderInfo: t, theme: e }) {
820
813
  });
821
814
  }
822
815
  function x() {
823
- l = !0, n.innerHTML = "";
816
+ l = !0, i.innerHTML = "";
824
817
  }
825
- return { container: n, init: d, destroy: x };
818
+ return { container: i, init: d, destroy: x };
826
819
  }
827
820
  function he(r) {
828
821
  return String(r || "").trim().toLowerCase() === "business" ? "enterprise" : "individual";
829
822
  }
830
823
  function fe(r, t) {
831
- const e = he(r), n = {
824
+ const e = he(r), i = {
832
825
  invoiceType: e,
833
826
  buyerName: (t == null ? void 0 : t.representativeName) || "",
834
827
  address: (t == null ? void 0 : t.buyerAddress) || "",
835
828
  email: (t == null ? void 0 : t.email) || ""
836
829
  };
837
- return e === "enterprise" && (n.taxCode = t != null && t.noTaxCode ? "" : (t == null ? void 0 : t.taxCode) || "", n.businessName = (t == null ? void 0 : t.businessName) || ""), n;
830
+ return e === "enterprise" && (i.taxCode = t != null && t.noTaxCode ? "" : (t == null ? void 0 : t.taxCode) || "", i.businessName = (t == null ? void 0 : t.businessName) || ""), i;
838
831
  }
839
- function ve(n) {
832
+ function ve(i) {
840
833
  return j(this, arguments, function* (r, { maxTries: t = 20, intervalMs: e = 1500 } = {}) {
841
834
  for (let s = 0; s < t; s++) {
842
835
  yield xe(e);
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as s, x as e, u as i, w as n, D as o, z as r, y as g, A as c } from "./index-DOx-LBdB.js";
1
+ import { B as s, x as e, u as i, w as n, D as o, z as r, y as g, A as c } from "./index-CFPPYS7n.js";
2
2
  export {
3
3
  s as checkContractStatus,
4
4
  e as getSettings,
package/dist/index.umd.js CHANGED
@@ -126,7 +126,7 @@
126
126
  </svg>`:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none">
127
127
  <path d="M9 6L15 12L9 18" stroke="#0E121B" stroke-width="2"
128
128
  stroke-linecap="round" stroke-linejoin="round"/>
129
- </svg>`,B}const m=g("prev"),C=g("next");m.style.left="8px",C.style.right="8px",s.appendChild(m),s.appendChild(C);let E=n,v=A,x=a;const p=()=>window.matchMedia("(max-width: 414px)").matches;function w(){const N=u.getBoundingClientRect(),B=s.getBoundingClientRect(),k=N.top-B.top+N.height/2;m.style.top=`${k}px`,C.style.top=`${k}px`,m.style.transform="translateY(-50%)",C.style.transform="translateY(-50%)"}function y(){const N=u.firstElementChild;return N?N.getBoundingClientRect().width+24:300}function X(N){u.scrollBy({left:N*y(),behavior:"smooth"})}function f(){if(p())return;const N=u.scrollWidth-u.clientWidth;m.disabled=u.scrollLeft<=0,C.disabled=u.scrollLeft>=N-2}m.addEventListener("click",()=>X(-1)),C.addEventListener("click",()=>X(1)),u.addEventListener("scroll",f);function Q(){if(u.innerHTML="",!E||E.length===0){const N=document.createElement("div");N.className="wgt:col-span-full wgt:text-center wgt:py-8 wgt:text-text-sub-600",N.innerText=q("noPackageFound")||"Không tìm thấy gói phù hợp",u.appendChild(N);return}E.forEach(N=>{const B=N._id===x,k=v.includes(N.code),{container:b}=v1({pkg:N,type:t,isDiscounted:k,promotion:e,isSelected:B,isRenew:i,onSelect:()=>{c((h||i)&&B?"":N._id)}});b.classList.add("wgt:snap-start"),u.appendChild(b)}),requestAnimationFrame(()=>{w(),f()})}Q();let M=!1,H=0,z=0;u.addEventListener("mousedown",N=>{M=!0,u.classList.replace("wgt:cursor-grab","wgt:cursor-grabbing"),H=N.pageX,z=u.scrollLeft});const L=()=>{M&&(M=!1,u.classList.replace("wgt:cursor-grabbing","wgt:cursor-grab"))};document.addEventListener("mouseup",L),u.addEventListener("mouseleave",L),u.addEventListener("mousemove",N=>{M&&(N.preventDefault(),u.scrollLeft=z-(N.pageX-H)*1.5)}),u.addEventListener("wheel",N=>{N.preventDefault(),u.scrollLeft+=N.deltaY},{passive:!1});const T=new ResizeObserver(()=>w());return T.observe(u),T.observe(s),{container:o,render:Q,setSelectedPackageId(N){x=N,Q()},updateData(N,B=null,k=null){E=N||E,B!==null&&(v=B),k!==null&&(x=k),Q()},updateDiscountedOnly(N){v=N,Q()}}}const M1="1.120.3";function k1(A){return _(this,arguments,function*({search:t,bank:n}){return(yield At.get(`${$A}`,{params:{isActive:!0,search:t||null,type:"service",bank:n}})).data})}function N1(n){return _(this,arguments,function*({bank:t}){return(yield At.get(`${$A}`,{params:{isActive:!0,type:"initial_fee",bank:t}})).data})}function X1(e){return _(this,arguments,function*({bank:t,hasRenew:n,isCashRegister:A}){return(yield At.get(`${$A}`,{params:{isActive:!0,type:"service",bank:t,hasRenew:n,limit:99,isCashRegister:A}})).data})}function H1(n){return _(this,arguments,function*({bank:t}){return(yield At.get(`${$A}`,{params:{isActive:!0,type:"signature",bank:t,limit:99}})).data})}function S1(t){return _(this,null,function*(){const n=new FormData;return n.append("eInvoiceRegistration",JSON.stringify(t.eInvoiceRegistration)),n.append("provider",t.provider),n.append("bank",t.bank),n.append("packages",JSON.stringify(t.packages)),n.append("promotionCodes",JSON.stringify(t.promotionCodes)),n.append("logo",t.logo),n.append("organizationRegistrationCert",t.organizationRegistrationCert),t.legalRepresentativeIdCard.forEach(e=>{n.append("legalRepresentativeIdCard",e)}),n.append("isRenew",t.isRenew),n.append("isCashRegister",t.isCashRegister),yield At.post(Gi,n,{headers:{"Content-Type":"multipart/form-data","X-Invoice-Widget-Mode":UA(),"X-Invoice-Widget-Version":M1}})})}function L1(t){return _(this,null,function*(){return yield At.get(`${Vi}/${t}/status`)})}function J1(){return _(this,arguments,function*({isRenewable:t,serialNumber:n}={}){const A={isRenewable:!!t,serialNumber:(n!=null?n:"").trim()};return console.log("PROMO params:",A),(yield At.get(Ui,{params:A})).data})}function b1(t){return _(this,null,function*(){return yield At.post(`${_i}/${t}`)})}function kh(t){return _(this,null,function*(){return yield At.get(`${$i}/${encodeURIComponent(t)}`)})}function P1(t,n){return _(this,null,function*(){try{return yield At.post(`${no}/${encodeURIComponent(t)}`,n)}catch(A){throw A}})}function z1({name:t,value:n,feeLabel:A,required:e,description:a,isChecked:h=!0,onChange:c=null}){const i=document.createElement("label");i.className=["wgt:relative","wgt:flex","wgt:items-start","wgt:gap-3","wgt:px-4","wgt:py-3","wgt:-mt-4","wgt:@max-2xl:px-0"].join(" ");const o=Ce({name:t,value:n,checked:h,onChange:g=>{console.log("Checkbox state changed to:",g),c&&c(g)}});i.appendChild(o.container);const s=document.createElement("div");s.className="wgt:flex wgt:flex-col wgt:gap-1";const r=document.createElement("div");r.className="wgt:flex wgt:items-center wgt:gap-2 wgt:@max-2xl:flex-col wgt:@max-2xl:items-start";const u=document.createElement("span");u.className="wgt:text-base wgt:font-semibold wgt:text-text-sub-600",u.textContent=A,r.appendChild(u);{const g=document.createElement("span");g.className=["wgt:bg-soft-200","wgt:text-text-sub-600","wgt:text-xs","wgt:font-semibold","wgt:px-1.5","wgt:py-1","wgt:rounded-sm"].join(" "),g.textContent=q("required"),r.appendChild(g)}s.appendChild(r);const l=document.createElement("p");return l.className="wgt:text-text-soft-400 wgt:text-sm",l.textContent=a,s.appendChild(l),i.appendChild(s),{container:i}}function KA(){const t=document.createElement("div");t.className="wgt:absolute wgt:inset-0 wgt:bg-white/80 wgt:items-center wgt:justify-center wgt:z-50 wgt:w-full wgt:h-full wgt:backdrop-blur-sm",t.style.display="none";const n=document.createElement("div");n.className="wgt:flex wgt:flex-col wgt:items-center wgt:gap-4 wgt:bg-white wgt:rounded-lg wgt:p-6 wgt:shadow-lg";const A=document.createElement("div");return A.className="wgt:h-12 wgt:w-12 wgt:animate-spin wgt:rounded-full wgt:border-4 wgt:border-solid wgt:border-primary wgt:border-t-transparent",n.appendChild(A),t.appendChild(n),{container:t,open:()=>{t.style.display="flex"},close:()=>{t.style.display="none"}}}function K1({promotion:t,onSelect:n,isHidden:A=!1,isSelectable:e=!0}){const a=document.createElement("div");if(A)return a.style.display="none",{container:a};e&&t.isSelected,a.className="wgt:w-full wgt:flex wgt:items-center wgt:relative wgt:h-[6.75rem]";const h=document.createElement("div");h.className="wgt:absolute wgt:top-0 wgt:left-0 wgt:z-0",h.innerHTML=`<svg width="177" height="108" viewBox="0 0 177 108" fill="none" xmlns="http://www.w3.org/2000/svg">
129
+ </svg>`,B}const m=g("prev"),C=g("next");m.style.left="8px",C.style.right="8px",s.appendChild(m),s.appendChild(C);let E=n,v=A,x=a;const p=()=>window.matchMedia("(max-width: 414px)").matches;function w(){const N=u.getBoundingClientRect(),B=s.getBoundingClientRect(),k=N.top-B.top+N.height/2;m.style.top=`${k}px`,C.style.top=`${k}px`,m.style.transform="translateY(-50%)",C.style.transform="translateY(-50%)"}function y(){const N=u.firstElementChild;return N?N.getBoundingClientRect().width+24:300}function X(N){u.scrollBy({left:N*y(),behavior:"smooth"})}function f(){if(p())return;const N=u.scrollWidth-u.clientWidth;m.disabled=u.scrollLeft<=0,C.disabled=u.scrollLeft>=N-2}m.addEventListener("click",()=>X(-1)),C.addEventListener("click",()=>X(1)),u.addEventListener("scroll",f);function Q(){if(u.innerHTML="",!E||E.length===0){const N=document.createElement("div");N.className="wgt:col-span-full wgt:text-center wgt:py-8 wgt:text-text-sub-600",N.innerText=q("noPackageFound")||"Không tìm thấy gói phù hợp",u.appendChild(N);return}E.forEach(N=>{const B=N._id===x,k=v.includes(N.code),{container:b}=v1({pkg:N,type:t,isDiscounted:k,promotion:e,isSelected:B,isRenew:i,onSelect:()=>{c((h||i)&&B?"":N._id)}});b.classList.add("wgt:snap-start"),u.appendChild(b)}),requestAnimationFrame(()=>{w(),f()})}Q();let M=!1,H=0,z=0;u.addEventListener("mousedown",N=>{M=!0,u.classList.replace("wgt:cursor-grab","wgt:cursor-grabbing"),H=N.pageX,z=u.scrollLeft});const L=()=>{M&&(M=!1,u.classList.replace("wgt:cursor-grabbing","wgt:cursor-grab"))};document.addEventListener("mouseup",L),u.addEventListener("mouseleave",L),u.addEventListener("mousemove",N=>{M&&(N.preventDefault(),u.scrollLeft=z-(N.pageX-H)*1.5)}),u.addEventListener("wheel",N=>{N.preventDefault(),u.scrollLeft+=N.deltaY},{passive:!1});const T=new ResizeObserver(()=>w());return T.observe(u),T.observe(s),{container:o,render:Q,setSelectedPackageId(N){x=N,Q()},updateData(N,B=null,k=null){E=N||E,B!==null&&(v=B),k!==null&&(x=k),Q()},updateDiscountedOnly(N){v=N,Q()}}}const M1="1.120.5";function k1(A){return _(this,arguments,function*({search:t,bank:n}){return(yield At.get(`${$A}`,{params:{isActive:!0,search:t||null,type:"service",bank:n}})).data})}function N1(n){return _(this,arguments,function*({bank:t}){return(yield At.get(`${$A}`,{params:{isActive:!0,type:"initial_fee",bank:t}})).data})}function X1(e){return _(this,arguments,function*({bank:t,hasRenew:n,isCashRegister:A}){return(yield At.get(`${$A}`,{params:{isActive:!0,type:"service",bank:t,hasRenew:n,limit:99,isCashRegister:A}})).data})}function H1(n){return _(this,arguments,function*({bank:t}){return(yield At.get(`${$A}`,{params:{isActive:!0,type:"signature",bank:t,limit:99}})).data})}function S1(t){return _(this,null,function*(){const n=new FormData;return n.append("eInvoiceRegistration",JSON.stringify(t.eInvoiceRegistration)),n.append("provider",t.provider),n.append("bank",t.bank),n.append("packages",JSON.stringify(t.packages)),n.append("promotionCodes",JSON.stringify(t.promotionCodes)),n.append("logo",t.logo),n.append("organizationRegistrationCert",t.organizationRegistrationCert),t.legalRepresentativeIdCard.forEach(e=>{n.append("legalRepresentativeIdCard",e)}),n.append("isRenew",t.isRenew),n.append("isCashRegister",t.isCashRegister),yield At.post(Gi,n,{headers:{"Content-Type":"multipart/form-data","X-Invoice-Widget-Mode":UA(),"X-Invoice-Widget-Version":M1}})})}function L1(t){return _(this,null,function*(){return yield At.get(`${Vi}/${t}/status`)})}function J1(){return _(this,arguments,function*({isRenewable:t,serialNumber:n}={}){const A={isRenewable:!!t,serialNumber:(n!=null?n:"").trim()};return console.log("PROMO params:",A),(yield At.get(Ui,{params:A})).data})}function b1(t){return _(this,null,function*(){return yield At.post(`${_i}/${t}`)})}function kh(t){return _(this,null,function*(){return yield At.get(`${$i}/${encodeURIComponent(t)}`)})}function P1(t,n){return _(this,null,function*(){try{return yield At.post(`${no}/${encodeURIComponent(t)}`,n)}catch(A){throw A}})}function z1({name:t,value:n,feeLabel:A,required:e,description:a,isChecked:h=!0,onChange:c=null}){const i=document.createElement("label");i.className=["wgt:relative","wgt:flex","wgt:items-start","wgt:gap-3","wgt:px-4","wgt:py-3","wgt:-mt-4","wgt:@max-2xl:px-0"].join(" ");const o=Ce({name:t,value:n,checked:h,onChange:g=>{console.log("Checkbox state changed to:",g),c&&c(g)}});i.appendChild(o.container);const s=document.createElement("div");s.className="wgt:flex wgt:flex-col wgt:gap-1";const r=document.createElement("div");r.className="wgt:flex wgt:items-center wgt:gap-2 wgt:@max-2xl:flex-col wgt:@max-2xl:items-start";const u=document.createElement("span");u.className="wgt:text-base wgt:font-semibold wgt:text-text-sub-600",u.textContent=A,r.appendChild(u);{const g=document.createElement("span");g.className=["wgt:bg-soft-200","wgt:text-text-sub-600","wgt:text-xs","wgt:font-semibold","wgt:px-1.5","wgt:py-1","wgt:rounded-sm"].join(" "),g.textContent=q("required"),r.appendChild(g)}s.appendChild(r);const l=document.createElement("p");return l.className="wgt:text-text-soft-400 wgt:text-sm",l.textContent=a,s.appendChild(l),i.appendChild(s),{container:i}}function KA(){const t=document.createElement("div");t.className="wgt:absolute wgt:inset-0 wgt:bg-white/80 wgt:items-center wgt:justify-center wgt:z-50 wgt:w-full wgt:h-full wgt:backdrop-blur-sm",t.style.display="none";const n=document.createElement("div");n.className="wgt:flex wgt:flex-col wgt:items-center wgt:gap-4 wgt:bg-white wgt:rounded-lg wgt:p-6 wgt:shadow-lg";const A=document.createElement("div");return A.className="wgt:h-12 wgt:w-12 wgt:animate-spin wgt:rounded-full wgt:border-4 wgt:border-solid wgt:border-primary wgt:border-t-transparent",n.appendChild(A),t.appendChild(n),{container:t,open:()=>{t.style.display="flex"},close:()=>{t.style.display="none"}}}function K1({promotion:t,onSelect:n,isHidden:A=!1,isSelectable:e=!0}){const a=document.createElement("div");if(A)return a.style.display="none",{container:a};e&&t.isSelected,a.className="wgt:w-full wgt:flex wgt:items-center wgt:relative wgt:h-[6.75rem]";const h=document.createElement("div");h.className="wgt:absolute wgt:top-0 wgt:left-0 wgt:z-0",h.innerHTML=`<svg width="177" height="108" viewBox="0 0 177 108" fill="none" xmlns="http://www.w3.org/2000/svg">
130
130
  <path fill-rule="evenodd" clip-rule="evenodd" d="M35.0743 3.375H37.1375V0H166.603C172.3 0 176.919 5.65535 176.919 12.6316V95.3684C176.919 102.345 172.3 108 166.603 108H37.1375V104.625H35.0743V108H10.316C4.61862 108 4.15411e-08 102.345 0 95.3684V93.4737C3.41841 93.4737 6.18958 90.0805 6.18958 85.8947C6.18958 81.709 3.41841 78.3158 0 78.3158V72C3.41841 72 6.18958 68.6068 6.18958 64.4211C6.18958 60.2353 3.41841 56.8421 0 56.8421V50.5263C3.41841 50.5263 6.18958 47.1331 6.18958 42.9474C6.18958 38.7616 3.41841 35.3684 0 35.3684V29.0526C3.41841 29.0526 6.18958 25.6594 6.18958 21.4737C6.18958 17.2879 3.41841 13.8947 0 13.8947V12.6316C0 5.65535 4.61862 0 10.316 0H35.0743V3.375ZM35.0743 97.875H37.1375V91.125H35.0743V97.875ZM35.0743 84.375H37.1375V77.625H35.0743V84.375ZM35.0743 70.875H37.1375V64.125H35.0743V70.875ZM35.0743 57.375H37.1375V50.625H35.0743V57.375ZM35.0743 43.875H37.1375V37.125H35.0743V43.875ZM35.0743 30.375H37.1375V23.625H35.0743V30.375ZM35.0743 16.875H37.1375V10.125H35.0743V16.875Z" fill="#C0D5FF"/>
131
131
  </svg>
132
132
  `;const c=document.createElement("div");c.className="wgt:w-full wgt:relative wgt:z-10 wgt:h-full wgt:bg-white wgt:rounded-tr wgt:rounded-br wgt:px-4 wgt:py-3 wgt:ml-9 wgt:flex wgt:flex-col wgt:justify-between";const i=document.createElement("div");i.className="wgt:flex wgt:items-start wgt:flex-col wgt:relative";const o=document.createElement("h3");o.className=["wgt:text-base","wgt:font-semibold","wgt:text-gray-500","wgt:mb-1","wgt:text-primary"].join(" "),o.textContent=t.code,i.appendChild(o);const s=document.createElement("p");s.className=["wgt:text-sm","wgt:text-text-sub-600","wgt:mb-2"].join(" ");const r=zA(_t());s.textContent=t[r],i.appendChild(s);const{container:u}=Ce({checked:t.isSelected,onChange:()=>{let g=!t.isSelected;n(t.code,g)},isIconCheckbox:!0});e||(u.style.display="none"),u.className="wgt:absolute wgt:top-0 wgt:right-0",i.appendChild(u),c.appendChild(i);const l=document.createElement("p");return l.className=["wgt:text-xs","wgt:font-normal","wgt:text-right","wgt:text-[#335CFF]","wgt:italic"].join(" "),l.textContent=`${q("validityPeriod")}: ${q("expiredDate")} ${t.expiredAt.split("T")[0]}`,c.appendChild(l),a.appendChild(h),a.appendChild(c),{container:a}}function D1({value:t="",placeholder:n="",onInputChange:A=void 0}){const e=n||q("searchUnits"),a=document.createElement("div");a.className="wgt:flex wgt:flex-col";const h=document.createElement("div");h.className="wgt:flex wgt:rounded-lg wgt:border wgt:border-gray-300 wgt:overflow-hidden",a.appendChild(h);const c=document.createElement("input");return c.type="text",c.inputMode="numeric",c.value=t,c.placeholder=e,c.className="wgt:flex-1 wgt:px-4 wgt:py-2 wgt:text-text-sub-600 wgt:placeholder-gray-400 wgt:bg-white wgt:focus:outline-none",typeof A=="function"&&c.addEventListener("input",A),h.appendChild(c),{container:a}}function O1({theme:t,debounceTimer:n,typedUnits:A,onSearchComplete:e}){let a=[],h=[];const c=document.createElement("div");c.className="wgt:flex wgt:flex-col wgt:gap-3";const i=document.createElement("div");i.className="wgt:flex wgt:flex-col wgt:gap-4",c.appendChild(i);const o=document.createElement("h2");o.className="wgt:text-xl wgt:font-bold wgt:text-text-black",o.innerText=q("selectInvoicePackage");const s=document.createElement("span");s.className="wgt:text-sm wgt:text-red-500 wgt:ml-1",s.innerText="*",o.appendChild(s),i.appendChild(o);function r(){return _(this,null,function*(){n&&clearTimeout(n),A!==""?n=setTimeout(()=>_(null,null,function*(){try{const x=A.trim().toLowerCase().replace(/\B(?=(\d{3})+(?!\d))/g,"."),p=yield k1({search:x,bank:t});p&&(h=p),e&&e()}catch(x){console.error("Error searching packages:",x),Vt.error(q("errorSearchingPackages"),{autoClose:5e3,closeButton:!0,icon:!0})}}),500):(h=a,e&&e())})}const u=D1({value:"",placeholder:q("searchUnits"),onInputChange:x=>{A=x.target.value.replace(/\D/g,""),r()}});i.appendChild(u.container);const l=document.createElement("div");l.className="wgt:flex wgt:flex-col wgt:gap-2",c.appendChild(l);const g=document.createElement("h3");g.className="wgt:text-sm wgt:font-semibold wgt:text-[#525866]",g.innerText=q("mostSuitablePackage"),l.appendChild(g);const m=document.createElement("div");l.appendChild(m);const C=document.createElement("div");C.className="wgt:flex wgt:items-center wgt:justify-center wgt:py-8",C.innerHTML=`
@@ -165,10 +165,10 @@
165
165
  </clipPath>
166
166
  </defs>
167
167
  </svg>
168
- `,A.appendChild(e);const a=document.createElement("span");return a.className="wgt:text-base wgt:font-semibold wgt:leading-5 wgt:text-strong-950",a.innerText=q("qrPayment"),A.appendChild(a),{container:t}}function R1(){const t=document.createElement("div");t.className="wgt:flex wgt:flex-col wgt:gap-2 wgt:-mt-4";const n=document.createElement("h3");n.className="wgt:text-lg wgt:font-bold wgt:text-text-black wgt:@max-2xl:text-xl wgt:@max-2xl:mb-3",n.innerText=q("selectedProducts"),t.appendChild(n);const A=document.createElement("div");A.className="wgt:overflow-x-auto wgt:border wgt:border-soft-200 wgt:rounded-lg wgt:@max-2xl:overflow-x-visible wgt:@max-2xl:border-0 wgt:@max-2xl:bg-transparent",t.appendChild(A);const e=document.createElement("table");e.className="wgt:min-w-full wgt:table-auto wgt:border-separate wgt:@max-2xl:border-collapse wgt:@max-2xl:w-full",A.appendChild(e);const a=document.createElement("thead");a.className="wgt:bg-soft-150 wgt:@max-2xl:hidden";const h=document.createElement("tr");[q("product"),q("unit"),q("quantity"),q("unitPrice"),q("totalPrice")].forEach(i=>{const o=document.createElement("th");o.className="wgt:whitespace-nowrap wgt:px-3 wgt:py-3 wgt:text-left wgt:text-sm wgt:font-semibold wgt:text-text-sub-600",o.innerText=i,h.appendChild(o)}),a.appendChild(h),e.appendChild(a);const c=document.createElement("tbody");return c.className="wgt:divide-y wgt:divide-gray-200 wgt:bg-white wgt:@max-2xl:divide-y-0 wgt:@max-2xl:bg-transparent",e.appendChild(c),{container:t,tbody:c}}const Y1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAMCAYAAABr5z2BAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFmSURBVHgBjVJLUsJAEH2dTAzu4gmEG+gNYKFxGU9gbqAuLaEqVVDllhuAJyDuQBfEE1CeADiBcaESyWTsJCKfIOXbzPT3db9qAkN5VQvG3iUUVUEoYxcUJlDJC+TcIy8IReY0zA4STKHp15gnYeYTKuCGLiQXrEJnAmK/MHts1Uh5jgXxMab648EaUcv2EUduyrJ1kJb9yvGKgDmzEFMhieoDB7vxBpQsDVEphMYdm/Y402LB0Dxpr9ob7Ff8HKZ/jTw/pNtBBaSeeS93OYLmpAyF4uapw0KmgtfI60/EWjShrftu4IgTH6jxFKSGyEQ0PkdI1BTJzF9SqS4QFRtqwkciezxJCPnVJnV3VkashtTgNf6JrEaqEYt/nItIqrhry+78JSLd9Cf5bxbST/KQH74weQ8Z50Fh8iFJ99dewDAsKO2Cqyp8O04uYrx/Dv3d4wU9LiwvqfQuhL5OnyhuSAFk5KbmN7eYmgg1dFx4AAAAAElFTkSuQmCC";function j1(X){return _(this,arguments,function*({onNext:t,onPrev:n,selectedInitPackage:A,selectedInvoiceOtp:e,selectedSignatureOtp:a,setSelectedInitPackage:h,setSelectedInvoiceOtp:c,setSelectedSignatureOtp:i,setOrderId:o,setTotalAmount:s,setOrderAmount:r,theme:u,selectedProvider:l,selectedPromotions:g,registrationData:m,setSelectedPromotions:C,setPackages:E,setPromotionCodes:v,isNewCustomer:x,savedQuantities:p,setSavedQuantities:w,isRenewal:y}){var TA;const f=((TA=m==null?void 0:m.eInvoiceRegistration)==null?void 0:TA.invoiceSymbol)||"";console.log("Invoice Symbol",f);const Q=(f==null?void 0:f[4])==="M";let M=[];function H(j,An){return Array.isArray(j)?An==="household"?j.filter(tn=>{var cn;return(cn=tn==null?void 0:tn.code)==null?void 0:cn.includes("HKD")}):j.filter(tn=>{var cn;return!((cn=tn==null?void 0:tn.code)!=null&&cn.includes("HKD"))}):[]}let z="",L={company:e?e._id:null,household:null},T=e?e._id:null,N=a?a._id:null,B=g?g.map(j=>j):[],k=[],b=[],I=[],d=[],S=null,J=(p==null?void 0:p.qtyRegFee)||1,P=(p==null?void 0:p.qtyInvoicePkg)||1,D=(p==null?void 0:p.qtySignaturePkg)||1;function K(){w&&w({qtyRegFee:J,qtyInvoicePkg:P,qtySignaturePkg:D})}function $(j){return j.find(An=>d.includes(An.code))}function nn({registrationData:j,onChange:An}){var Tn;let tn=((Tn=j==null?void 0:j.eInvoiceRegistration)==null?void 0:Tn.businessType)||"company";const cn=document.createElement("div");cn.className="wgt:flex wgt:items-center wgt:gap-4 wgt:flex-wrap";const un=document.createElement("div");un.className="wgt:text-sm wgt:font-medium wgt:text-black",un.innerHTML=`${q("businessRegistrationType")||"Hình thức đăng ký kinh doanh"} <span class="wgt:text-red-500">*</span>`,cn.appendChild(un);const an=document.createElement("div");an.className="wgt:inline-flex wgt:items-center wgt:gap-3",cn.appendChild(an);function gn(Sn,ut,oA,fA){const dt=document.createElement("button");dt.type="button",dt.className="wgt:flex wgt:items-center wgt:gap-3 wgt:px-4 wgt:py-3 wgt:rounded-xl wgt:text-sm wgt:font-medium wgt:transition wgt:border-2 wgt:min-w-[200px]";const Nt=document.createElement("span");Nt.className="wgt:h-10 wgt:w-10 wgt:rounded wgt:flex wgt:items-center wgt:justify-center wgt:border-[#232A751A] wgt:border",Nt.style.backgroundColor="#232A751A",Nt.innerHTML=oA;const Xt=document.createElement("span");Xt.className="wgt:text-base wgt:font-semibold",Xt.innerText=Sn;const Y=document.createElement("span");Y.className="wgt:ml-auto wgt:h-5 wgt:w-5 wgt:rounded-full wgt:border-2 wgt:flex wgt:items-center wgt:justify-center";const ln=document.createElement("span");return ln.className="wgt:h-2.5 wgt:w-2.5 wgt:rounded-full",ln.style.backgroundColor="#1e2a7b",ln.style.opacity="0",Y.appendChild(ln),dt.appendChild(Nt),dt.appendChild(Xt),dt.appendChild(Y),dt.addEventListener("click",()=>{tn=ut,tt(),j!=null&&j.eInvoiceRegistration&&(j.eInvoiceRegistration.businessType=tn),An==null||An(tn)}),{btn:dt,radioInner:ln,radio:Y,textSpan:Xt,value:ut}}const on=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
168
+ `,A.appendChild(e);const a=document.createElement("span");return a.className="wgt:text-base wgt:font-semibold wgt:leading-5 wgt:text-strong-950",a.innerText=q("qrPayment"),A.appendChild(a),{container:t}}function R1(){const t=document.createElement("div");t.className="wgt:flex wgt:flex-col wgt:gap-2 wgt:-mt-4";const n=document.createElement("h3");n.className="wgt:text-lg wgt:font-bold wgt:text-text-black wgt:@max-2xl:text-xl wgt:@max-2xl:mb-3",n.innerText=q("selectedProducts"),t.appendChild(n);const A=document.createElement("div");A.className="wgt:overflow-x-auto wgt:border wgt:border-soft-200 wgt:rounded-lg wgt:@max-2xl:overflow-x-visible wgt:@max-2xl:border-0 wgt:@max-2xl:bg-transparent",t.appendChild(A);const e=document.createElement("table");e.className="wgt:min-w-full wgt:table-auto wgt:border-separate wgt:@max-2xl:border-collapse wgt:@max-2xl:w-full",A.appendChild(e);const a=document.createElement("thead");a.className="wgt:bg-soft-150 wgt:@max-2xl:hidden";const h=document.createElement("tr");[q("product"),q("unit"),q("quantity"),q("unitPrice"),q("totalPrice")].forEach(i=>{const o=document.createElement("th");o.className="wgt:whitespace-nowrap wgt:px-3 wgt:py-3 wgt:text-left wgt:text-sm wgt:font-semibold wgt:text-text-sub-600",o.innerText=i,h.appendChild(o)}),a.appendChild(h),e.appendChild(a);const c=document.createElement("tbody");return c.className="wgt:divide-y wgt:divide-gray-200 wgt:bg-white wgt:@max-2xl:divide-y-0 wgt:@max-2xl:bg-transparent",e.appendChild(c),{container:t,tbody:c}}const Y1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAMCAYAAABr5z2BAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFmSURBVHgBjVJLUsJAEH2dTAzu4gmEG+gNYKFxGU9gbqAuLaEqVVDllhuAJyDuQBfEE1CeADiBcaESyWTsJCKfIOXbzPT3db9qAkN5VQvG3iUUVUEoYxcUJlDJC+TcIy8IReY0zA4STKHp15gnYeYTKuCGLiQXrEJnAmK/MHts1Uh5jgXxMab648EaUcv2EUduyrJ1kJb9yvGKgDmzEFMhieoDB7vxBpQsDVEphMYdm/Y402LB0Dxpr9ob7Ff8HKZ/jTw/pNtBBaSeeS93OYLmpAyF4uapw0KmgtfI60/EWjShrftu4IgTH6jxFKSGyEQ0PkdI1BTJzF9SqS4QFRtqwkciezxJCPnVJnV3VkashtTgNf6JrEaqEYt/nItIqrhry+78JSLd9Cf5bxbST/KQH74weQ8Z50Fh8iFJ99dewDAsKO2Cqyp8O04uYrx/Dv3d4wU9LiwvqfQuhL5OnyhuSAFk5KbmN7eYmgg1dFx4AAAAAElFTkSuQmCC";function j1(X){return _(this,arguments,function*({onNext:t,onPrev:n,selectedInitPackage:A,selectedInvoiceOtp:e,selectedSignatureOtp:a,setSelectedInitPackage:h,setSelectedInvoiceOtp:c,setSelectedSignatureOtp:i,setOrderId:o,setTotalAmount:s,setOrderAmount:r,theme:u,selectedProvider:l,selectedPromotions:g,registrationData:m,setSelectedPromotions:C,setPackages:E,setPromotionCodes:v,isNewCustomer:x,savedQuantities:p,setSavedQuantities:w,isRenewal:y}){var TA;const f=((TA=m==null?void 0:m.eInvoiceRegistration)==null?void 0:TA.invoiceSymbol)||"";console.log("Invoice Symbol",f);const Q=(f==null?void 0:f[4])==="M";let M=[];function H(j,An){return Array.isArray(j)?An==="household"?j.filter(tn=>{var cn;return(cn=tn==null?void 0:tn.code)==null?void 0:cn.includes("HKD")}):j.filter(tn=>{var cn;return!((cn=tn==null?void 0:tn.code)!=null&&cn.includes("HKD"))}):[]}let z="",L={company:e?e._id:null,household:null},T=e?e._id:null,N=a?a._id:null,B=g?g.map(j=>j):[],k=[],b=[],I=[],d=[],S=null,J=(p==null?void 0:p.qtyRegFee)||1,P=(p==null?void 0:p.qtyInvoicePkg)||1,D=(p==null?void 0:p.qtySignaturePkg)||1;function K(){w&&w({qtyRegFee:J,qtyInvoicePkg:P,qtySignaturePkg:D})}function $(j){return j.find(An=>d.includes(An.code))}function nn({registrationData:j,onChange:An}){var Tn;let tn=((Tn=j==null?void 0:j.eInvoiceRegistration)==null?void 0:Tn.businessType)||"company";const cn=document.createElement("div");cn.className="wgt:flex wgt:items-center wgt:gap-4 wgt:flex-wrap";const un=document.createElement("div");un.className="wgt:text-sm wgt:font-medium wgt:text-black",un.innerHTML=`${q("businessRegistrationType")||"Hình thức đăng ký kinh doanh"} <span class="wgt:text-red-500">*</span>`,cn.appendChild(un);const an=document.createElement("div");an.className="wgt:inline-flex wgt:items-center wgt:gap-3",cn.appendChild(an);function gn(Sn,ut,oA,fA){const dt=document.createElement("button");dt.type="button",dt.className="wgt:flex wgt:items-center wgt:gap-3 wgt:px-4 wgt:py-3 wgt:rounded-xl wgt:text-sm wgt:font-medium wgt:transition wgt:border-2 wgt:min-w-[200px]";const Nt=document.createElement("span");Nt.className="wgt:h-8 wgt:w-8 wgt:rounded wgt:flex wgt:items-center wgt:justify-center wgt:border-[#232A751A] wgt:border",Nt.style.backgroundColor="#232A751A",Nt.innerHTML=oA;const Xt=document.createElement("span");Xt.className="wgt:text-sm wgt:font-semibold",Xt.innerText=Sn;const Y=document.createElement("span");Y.className="wgt:ml-auto wgt:h-5 wgt:w-5 wgt:rounded-full wgt:border-2 wgt:flex wgt:items-center wgt:justify-center";const ln=document.createElement("span");return ln.className="wgt:h-2.5 wgt:w-2.5 wgt:rounded-full",ln.style.backgroundColor="#1e2a7b",ln.style.opacity="0",Y.appendChild(ln),dt.appendChild(Nt),dt.appendChild(Xt),dt.appendChild(Y),dt.addEventListener("click",()=>{tn=ut,tt(),j!=null&&j.eInvoiceRegistration&&(j.eInvoiceRegistration.businessType=tn),An==null||An(tn)}),{btn:dt,radioInner:ln,radio:Y,textSpan:Xt,value:ut}}const on=`<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
169
169
  <path d="M4.80029 4.65039H13.8003C13.8399 4.65044 13.8777 4.66637 13.9058 4.69434C13.9339 4.72247 13.9497 4.761 13.9497 4.80078V19.0508H17.2505V10.0508H19.1997C19.2395 10.0508 19.278 10.0666 19.3062 10.0947C19.3341 10.1228 19.35 10.1606 19.3501 10.2002V19.0508H21.1499V19.3506H2.8501V19.0508H4.6499V4.80078C4.6499 4.76104 4.66578 4.72246 4.69385 4.69434C4.72198 4.66621 4.76051 4.65039 4.80029 4.65039ZM6.75049 13.6504H11.8501V10.3506H6.75049V13.6504ZM6.75049 10.0508H11.8501V6.75H6.75049V10.0508Z" fill="#232A75" stroke="#232A75" stroke-width="1.5"/>
170
170
  </svg>
171
- `,dn=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
171
+ `,dn=`<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
172
172
  <path d="M9.2998 15.4492H14.7002C15.6946 15.4493 16.6484 15.8447 17.3516 16.5479C18.0547 17.251 18.4501 18.2048 18.4502 19.1992V20.25H5.5498V19.1992C5.54991 18.2048 5.94527 17.251 6.64844 16.5479C7.35168 15.8447 8.30533 15.4492 9.2998 15.4492ZM12 2.84961C13.2332 2.84966 14.4161 3.33992 15.2881 4.21191C16.1599 5.08393 16.6494 6.26688 16.6494 7.5C16.6493 8.73312 16.16 9.91613 15.2881 10.7881C14.4161 11.66 13.2331 12.1494 12 12.1494C11.3895 12.1494 10.7848 12.0295 10.2207 11.7959C9.65667 11.5623 9.14365 11.2197 8.71191 10.7881C8.2802 10.3564 7.93778 9.84334 7.7041 9.2793C7.47047 8.71525 7.34966 8.11051 7.34961 7.5C7.34961 6.88935 7.47042 6.28389 7.7041 5.71973C7.93776 5.15579 8.28029 4.64357 8.71191 4.21191C9.14371 3.78012 9.65654 3.43681 10.2207 3.20312C10.7847 2.96957 11.3895 2.84961 12 2.84961Z" fill="#232A75" stroke="#232A75" stroke-width="1.5"/>
173
173
  </svg>
174
174
  `,Bn=gn(q("company")||"Doanh nghiệp","company",on),Jn=gn(q("householdBusiness")||"Hộ kinh doanh","household",dn);an.appendChild(Bn.btn),an.appendChild(Jn.btn);function Gn(Sn,ut){ut?Sn.btn.style.backgroundColor="#232A751A":Sn.btn.style.backgroundColor="#FFFFFF",ut?Sn.btn.style.borderColor="#1e2a7b":Sn.btn.style.borderColor="#E5E7EB",Sn.radioInner.style.opacity=ut?"1":"0",ut?Sn.radio.style.borderColor="#1e2a7b":Sn.radio.style.borderColor="#D1D5DB",Sn.textSpan.style.color=ut?"#1e2a7b":"#6B7280"}function tt(){Gn(Bn,tn==="company"),Gn(Jn,tn==="household")}return tt(),{container:cn,getValue:()=>tn,setValue:Sn=>{tn=Sn,tt()}}}function U(j){return k.find(An=>An._id===j)||null}const Z=document.createElement("div");Z.className="wgt:relative wgt:flex wgt:w-full wgt:h-full wgt:flex-col wgt:gap-4 wgt:py-6";const{container:V,open:en,close:En}=KA();Z.appendChild(V);let Nn=null;if(Q){Nn=nn({registrationData:m,onChange:An=>{var un;const tn=H(M,An);$n(tn||[]),kt(tn||[]);const cn=An==="company"?"household":"company";if(L[cn]=T,L[An])T=L[An];else{const an=$(tn);T=an?an._id:((un=tn==null?void 0:tn[0])==null?void 0:un._id)||null,L[An]=T}B=[],Kt(),cA(),Et(),it(),Vn()}});const j=document.createElement("div");j.className="wgt:mx-auto wgt:w-full wgt:max-w-[1072px] wgt:px-6 wgt:@max-2xl:px-3",j.appendChild(Nn.container),Z.appendChild(j)}const Cn=document.createElement("div");Cn.className="wgt:mx-auto wgt:w-full wgt:max-w-[1072px] wgt:flex wgt:flex-col wgt:gap-8 wgt:rounded-3xl wgt:bg-weak-50 wgt:px-6 wgt:py-4 wgt:@max-2xl:px-3 wgt:@max-2xl:py-3 wgt:@max-2xl:gap-6 wgt:@max-2xl:rounded-none",Z.appendChild(Cn);const{container:lt,invoiceSelectorWrapper:ht,setInvoicePackages:$n,getInvoicePackages:vn,getFilteredInvoiceOptions:It,setFilteredInvoiceOptions:kt,findInvoiceById:mt,removeLoading:St}=O1({theme:u,debounceTimer:S,typedUnits:z,onSearchComplete:()=>{cA(),Vn()}});Cn.appendChild(lt);let nt=null,qt=null;if(!y){const j=V1(y);qt=j.container,nt=j.signatureSelectorWrapper,Cn.appendChild(qt)}const ct=document.createElement("div");ct.className="wgt:flex wgt:items-center wgt:justify-center wgt:py-4",ct.innerHTML=`
@@ -391,8 +391,7 @@ Minimum version required to store current data is: `+z+`.
391
391
  Không thể tải hợp đồng.
392
392
  </p>
393
393
  </div>
394
- `,{container:a}}const c=document.createElement("div");c.style.flex="1",c.style.minHeight="0",c.style.position="relative",c.style.width="100%";const i=document.createElement("iframe");return i.src=h,i.style.position="absolute",i.style.top="0",i.style.left="0",i.style.width="100%",i.style.height="100%",i.style.borderRadius="0",i.style.border="0",window.matchMedia("(min-width: 640px)").matches&&(i.style.borderRadius="0.375rem"),i.loading="lazy",i.allowFullscreen=!0,i.setAttribute("scrolling","auto"),i.setAttribute("frameBorder","0"),c.appendChild(i),a.appendChild(c),{container:a,cleanup:()=>{document.body.classList.remove("no-scroll"),i.classList.remove("block-interaction");const s=document.getElementById("signature-popup-backdrop");s&&s.remove()}}})}function gc(t,n){const A=(n&&n.includeHash)!=null?n.includeHash:!0,e=n&&n.pollMs||1e3;let a=lc(A);function h(){const o=lc(A);if(o!==a){const s=a;a=o,t(o,s)}}window.addEventListener("popstate",h),A&&window.addEventListener("hashchange",h);const c=br(h),i=window.setInterval(h,e);return Promise.resolve().then(h),function(){window.removeEventListener("popstate",h),A&&window.removeEventListener("hashchange",h),c(),clearInterval(i)}}function lc(t){return t?location.href:location.origin+location.pathname}function br(t){var n="__urlWatcherPatched__";if(history[n]){var A=function(){t()};return window.addEventListener("url-watcher:navigate",A),function(){window.removeEventListener("url-watcher:navigate",A)}}history[n]=!0;function e(){window.dispatchEvent(new Event("url-watcher:navigate")),t()}var a=history.pushState,h=history.replaceState;return history.pushState=function(){var c=a.apply(this,arguments);return e(),c},history.replaceState=function(){var c=h.apply(this,arguments);return e(),c},function(){history.pushState=a,history.replaceState=h;try{delete history[n]}catch(i){history[n]=!1}}}function Pr(){const t=document.body.getAttribute("data-app-theme");if(t)return t;const n=document.body.className;return n.includes("bvb")?"bvb":n.includes("shb")?"shb":n.includes("agr")?"agr":n.includes("nama")?"nama":"bvb"}function zr(t){return{ocb:"#008c44",bvb:"#1e2a7b",shb:"#F58220",agr:"#AE1C40",nama:"#ffdd00"}[t]}function Kr({onConfirm:t,onCancel:n,showCloseButton:A=!0,preventClose:e=!1,settingUrl:a=""}={}){const h=` số thuế đã được đăng ký với
395
- M-Invoice.`,c="Thiết lập",i="Tiếp tục";document.querySelectorAll('[data-wgt-warning-popup="true"]').forEach(T=>{try{T.remove()}catch(N){}});const s=Pr(),r=zr(s);document.documentElement.style.setProperty("--primary",r),s==="nama"&&document.documentElement.style.setProperty("--primary-bg","linear-gradient(180deg, #FFEC72 0%, #FD0 100%)");const u=`Bạn có thể vào <strong style="color: ${r} !important;">Thiết lập</strong> để sử dụng dịch vụ, <br> hoặc chọn <strong style="color: ${r} !important;">Tiếp tục</strong> để đăng ký mới (có thể phát sinh phí).`,l=document.createElement("div");l.style.cssText=`
394
+ `,{container:a}}const c=document.createElement("div");c.style.flex="1",c.style.minHeight="0",c.style.position="relative",c.style.width="100%";const i=document.createElement("iframe");return i.src=h,i.style.position="absolute",i.style.top="0",i.style.left="0",i.style.width="100%",i.style.height="100%",i.style.borderRadius="0",i.style.border="0",window.matchMedia("(min-width: 640px)").matches&&(i.style.borderRadius="0.375rem"),i.loading="lazy",i.allowFullscreen=!0,i.setAttribute("scrolling","auto"),i.setAttribute("frameBorder","0"),c.appendChild(i),a.appendChild(c),{container:a,cleanup:()=>{document.body.classList.remove("no-scroll"),i.classList.remove("block-interaction");const s=document.getElementById("signature-popup-backdrop");s&&s.remove()}}})}function gc(t,n){const A=(n&&n.includeHash)!=null?n.includeHash:!0,e=n&&n.pollMs||1e3;let a=lc(A);function h(){const o=lc(A);if(o!==a){const s=a;a=o,t(o,s)}}window.addEventListener("popstate",h),A&&window.addEventListener("hashchange",h);const c=br(h),i=window.setInterval(h,e);return Promise.resolve().then(h),function(){window.removeEventListener("popstate",h),A&&window.removeEventListener("hashchange",h),c(),clearInterval(i)}}function lc(t){return t?location.href:location.origin+location.pathname}function br(t){var n="__urlWatcherPatched__";if(history[n]){var A=function(){t()};return window.addEventListener("url-watcher:navigate",A),function(){window.removeEventListener("url-watcher:navigate",A)}}history[n]=!0;function e(){window.dispatchEvent(new Event("url-watcher:navigate")),t()}var a=history.pushState,h=history.replaceState;return history.pushState=function(){var c=a.apply(this,arguments);return e(),c},history.replaceState=function(){var c=h.apply(this,arguments);return e(),c},function(){history.pushState=a,history.replaceState=h;try{delete history[n]}catch(i){history[n]=!1}}}function Pr(){const t=document.body.getAttribute("data-app-theme");if(t)return t;const n=document.body.className;return n.includes("bvb")?"bvb":n.includes("shb")?"shb":n.includes("agr")?"agr":n.includes("nama")?"nama":"bvb"}function zr(t){return{ocb:"#008c44",bvb:"#1e2a7b",shb:"#F58220",agr:"#AE1C40",nama:"#ffdd00"}[t]}function Kr({onConfirm:t,onCancel:n,showCloseButton:A=!0,preventClose:e=!1,settingUrl:a=""}={}){const h=q("notification"),c=q("settings"),i=q("next");document.querySelectorAll('[data-wgt-warning-popup="true"]').forEach(T=>{try{T.remove()}catch(N){}});const s=Pr(),r=zr(s);document.documentElement.style.setProperty("--primary",r),s==="nama"&&document.documentElement.style.setProperty("--primary-bg","linear-gradient(180deg, #FFEC72 0%, #FD0 100%)");const u=`Bạn thể vào <strong style="color: ${r} !important;">Thiết lập</strong> để sử dụng dịch vụ, <br> hoặc chọn <strong style="color: ${r} !important;">Tiếp tục</strong> để đăng ký mới (có thể phát sinh phí).`,l=document.createElement("div");l.style.cssText=`
396
395
  position: fixed;
397
396
  inset: 0;
398
397
  z-index: 50;
@@ -483,23 +482,19 @@ Minimum version required to store current data is: `+z+`.
483
482
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
484
483
  <path d="M12.7996 14H3.19961C3.04048 14 2.88787 13.9368 2.77535 13.8243C2.66282 13.7117 2.59961 13.5591 2.59961 13.4V2.6C2.59961 2.44087 2.66282 2.28826 2.77535 2.17574C2.88787 2.06321 3.04048 2 3.19961 2H12.7996C12.9587 2 13.1114 2.06321 13.2239 2.17574C13.3364 2.28826 13.3996 2.44087 13.3996 2.6V13.4C13.3996 13.5591 13.3364 13.7117 13.2239 13.8243C13.1114 13.9368 12.9587 14 12.7996 14ZM12.1996 12.8V3.2H3.79961V12.8H12.1996ZM5.59961 6.2H10.3996V7.4H5.59961V6.2ZM5.59961 8.6H10.3996V9.8H5.59961V8.6Z" fill="currentColor"/>
485
484
  </svg>
486
-
487
485
  `:L===q("address_form")?b=`
488
486
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
489
487
  <path d="M7.99961 13.34L10.9696 10.37C11.557 9.78256 11.9569 9.03419 12.1189 8.21948C12.281 7.40477 12.1978 6.56031 11.8799 5.79289C11.562 5.02546 11.0236 4.36954 10.333 3.90805C9.64229 3.44657 8.83028 3.20026 7.99961 3.20026C7.16895 3.20026 6.35694 3.44657 5.66626 3.90805C4.97558 4.36954 4.43726 5.02546 4.11936 5.79289C3.80146 6.56031 3.71826 7.40477 3.88028 8.21948C4.04231 9.03419 4.44227 9.78256 5.02961 10.37L7.99961 13.34ZM7.99961 15.0368L4.18121 11.2184C3.42602 10.4631 2.91172 9.50096 2.70337 8.45346C2.49501 7.40597 2.60195 6.32021 3.01067 5.33349C3.41938 4.34678 4.11152 3.50342 4.99954 2.91006C5.88756 2.3167 6.9316 2 7.99961 2C9.06763 2 10.1117 2.3167 10.9997 2.91006C11.8877 3.50342 12.5798 4.34678 12.9886 5.33349C13.3973 6.32021 13.5042 7.40597 13.2959 8.45346C13.0875 9.50096 12.5732 10.4631 11.818 11.2184L7.99961 15.0368ZM7.99961 8.59995C8.31787 8.59995 8.6231 8.47353 8.84814 8.24848C9.07318 8.02344 9.19961 7.71821 9.19961 7.39995C9.19961 7.08169 9.07318 6.77647 8.84814 6.55143C8.6231 6.32638 8.31787 6.19995 7.99961 6.19995C7.68135 6.19995 7.37613 6.32638 7.15108 6.55143C6.92604 6.77647 6.79961 7.08169 6.79961 7.39995C6.79961 7.71821 6.92604 8.02344 7.15108 8.24848C7.37613 8.47353 7.68135 8.59995 7.99961 8.59995ZM7.99961 9.79995C7.36309 9.79995 6.75264 9.5471 6.30256 9.09701C5.85247 8.64692 5.59961 8.03647 5.59961 7.39995C5.59961 6.76343 5.85247 6.15298 6.30256 5.7029C6.75264 5.25281 7.36309 4.99995 7.99961 4.99995C8.63613 4.99995 9.24658 5.25281 9.69667 5.7029C10.1468 6.15298 10.3996 6.76343 10.3996 7.39995C10.3996 8.03647 10.1468 8.64692 9.69667 9.09701C9.24658 9.5471 8.63613 9.79995 7.99961 9.79995Z" fill="currentColor"/>
490
488
  </svg>
491
-
492
489
  `:L===q("total_amount")&&(b=`
493
490
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
494
491
  <path d="M8 14C4.6862 14 2 11.3138 2 8C2 4.6862 4.6862 2 8 2C11.3138 2 14 4.6862 14 8C14 11.3138 11.3138 14 8 14ZM8 12.8C9.27304 12.8 10.4939 12.2943 11.3941 11.3941C12.2943 10.4939 12.8 9.27304 12.8 8C12.8 6.72696 12.2943 5.50606 11.3941 4.60589C10.4939 3.70571 9.27304 3.2 8 3.2C6.72696 3.2 5.50606 3.70571 4.60589 4.60589C3.70571 5.50606 3.2 6.72696 3.2 8C3.2 9.27304 3.70571 10.4939 4.60589 11.3941C5.50606 12.2943 6.72696 12.8 8 12.8V12.8ZM5.9 9.2H9.2C9.27957 9.2 9.35587 9.16839 9.41213 9.11213C9.46839 9.05587 9.5 8.97957 9.5 8.9C9.5 8.82044 9.46839 8.74413 9.41213 8.68787C9.35587 8.63161 9.27957 8.6 9.2 8.6H6.8C6.40218 8.6 6.02064 8.44197 5.73934 8.16066C5.45804 7.87936 5.3 7.49783 5.3 7.1C5.3 6.70218 5.45804 6.32065 5.73934 6.03934C6.02064 5.75804 6.40218 5.6 6.8 5.6H7.4V4.4H8.6V5.6H10.1V6.8H6.8C6.72044 6.8 6.64413 6.83161 6.58787 6.88787C6.53161 6.94413 6.5 7.02044 6.5 7.1C6.5 7.17957 6.53161 7.25587 6.58787 7.31213C6.64413 7.36839 6.72044 7.4 6.8 7.4H9.2C9.59783 7.4 9.97936 7.55804 10.2607 7.83934C10.542 8.12065 10.7 8.50218 10.7 8.9C10.7 9.29783 10.542 9.67936 10.2607 9.96066C9.97936 10.242 9.59783 10.4 9.2 10.4H8.6V11.6H7.4V10.4H5.9V9.2Z" fill="currentColor"/>
495
492
  </svg>
496
-
497
493
  `),k.innerHTML=b;const I=document.createElement("span");I.className="wgt:text-sm wgt:text-weak-700",I.textContent=L,B.appendChild(k),B.appendChild(I);const d=document.createElement("span");return d.className="wgt:text-sm wgt:font-semibold wgt:text-strong-950 wgt:w-2/3 wgt:text-right",d.textContent=T,N.appendChild(B),N.appendChild(d),N}g.appendChild(m(q("invoice_number"),t==null?void 0:t.billNo)),g.appendChild(m(q("address_form"),t==null?void 0:t.merchantAddress)),g.appendChild(m(q("total_amount"),On(t==null?void 0:t.amount)+" VND")),c.appendChild(g);const C=document.createElement("div");C.className="wgt:mt-4 wgt:rounded-xl wgt:border wgt:border-[#E1E4EA] wgt:bg-white wgt:pb-6",c.appendChild(C);const E=document.createElement("div");E.className="wgt:flex wgt:border-b wgt:border-[#E1E4EA]",C.appendChild(E);const v=document.createElement("button");v.type="button",v.className="wgt:relative wgt:flex-1 wgt:py-4 wgt:text-sm wgt:font-semibold ",v.innerHTML=`
498
494
  <span class="wgt:flex wgt:items-center wgt:justify-center wgt:gap-2">
499
495
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
500
496
  <path d="M10 12C11.4587 12 12.8572 12.5799 13.8887 13.6113C14.8016 14.5242 15.3592 15.7247 15.4756 17H14.9746C14.8598 15.8576 14.3542 14.7839 13.5352 13.9648C12.5975 13.0272 11.3261 12.5 10 12.5C8.67392 12.5 7.40253 13.0272 6.46484 13.9648C5.64577 14.7839 5.14018 15.8576 5.02539 17H4.52441C4.64082 15.7247 5.19843 14.5242 6.11133 13.6113C7.07838 12.6443 8.36805 12.0742 9.72754 12.0068L10 12ZM10 2.25C12.2101 2.25 14 4.03989 14 6.25C14 8.46011 12.2101 10.25 10 10.25C7.78989 10.25 6 8.46011 6 6.25C6 4.03989 7.78989 2.25 10 2.25ZM10 2.75C8.06636 2.75 6.5 4.31636 6.5 6.25C6.5 8.18364 8.06636 9.75 10 9.75C11.9336 9.75 13.5 8.18364 13.5 6.25C13.5 4.31636 11.9336 2.75 10 2.75Z" fill="currentColor" stroke="currentColor"/>
501
497
  </svg>
502
-
503
498
  ${q("individual")}
504
499
  </span>
505
500
  `;const x=document.createElement("button");x.type="button",x.className="wgt:relative wgt:flex-1 wgt:py-4 wgt:text-sm wgt:font-semibold",x.innerHTML=`
@@ -507,10 +502,9 @@ Minimum version required to store current data is: `+z+`.
507
502
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
508
503
  <path d="M4 3.875H11.5C11.5332 3.875 11.5654 3.88769 11.5889 3.91113C11.6123 3.93457 11.625 3.96685 11.625 4V15.875H15.875V8.625H14.375V8.375H16C16.0332 8.375 16.0654 8.38769 16.0889 8.41113C16.1123 8.43457 16.125 8.46685 16.125 8.5V15.875H17.625V16.125H2.375V15.875H3.875V4C3.875 3.96685 3.88769 3.93457 3.91113 3.91113C3.93457 3.88769 3.96685 3.875 4 3.875ZM4.125 15.875H11.375V4.125H4.125V15.875ZM8.625 9.875V10.125H6.875V9.875H8.625ZM8.625 6.875V7.125H6.875V6.875H8.625Z" fill="currentColor" stroke="currentColor" stroke-width="1.25"/>
509
504
  </svg>
510
-
511
505
  ${q("business")}
512
506
  </span>
513
- `,E.appendChild(v),E.appendChild(x);const p=document.createElement("div");p.className="wgt:mt-4 wgt:px-4",C.appendChild(p);const w=Gr(),y=Rr({defaultValues:{taxCode:a||""},onFetchByTaxCode:L=>_(null,null,function*(){var N,B,k;const T=yield Ih(L);return{representativeName:(N=T.nguoi_dai_dien)!=null?N:"",buyerAddress:(B=T.dia_chi)!=null?B:"",businessName:(k=T.ten_cty)!=null?k:""}})});let X="individual",f=w;function Q(L){X=L,v.style.borderBottom="none",x.style.borderBottom="none";const T="wgt:relative wgt:flex-1 wgt:py-4 wgt:text-sm wgt:font-semibold";L==="individual"?(v.className=`${T} wgt:text-strong-950`,v.style.borderBottom="2px solid var(--primary)",x.className=`${T} wgt:text-soft-400`,p.innerHTML="",p.appendChild(w.container),f=w):(x.className=`${T} wgt:text-strong-950`,x.style.borderBottom="2px solid var(--primary)",v.className=`${T} wgt:text-soft-400`,p.innerHTML="",p.appendChild(y.container),f=y)}v.addEventListener("click",()=>Q("individual")),x.addEventListener("click",()=>Q("business")),Q("individual");const M=document.createElement("p");M.className="wgt:mt-2 wgt:text-xs wgt:text-[#FF8447] wgt:text-left wgt:justify-center",M.textContent=q("invoiceform_note"),c.appendChild(M);const H=document.createElement("div");H.className="wgt:mt-6 wgt:w-full wgt:flex wgt:justify-center wgt:items-center";const z=wt({type:"button",title:q("btn_preview"),className:"wgt:min-w-[163px] wgt:text-white",handleClick:()=>{if(!f.validate())return;const L={type:X,data:f.getValues()},{overlay:T}=Yr({type:L.type,data:L.data,orderInfo:t,theme:A,onClose:()=>{console.log("Popup closed")},onConfirm:()=>_(null,null,function*(){var N,B,k;T.remove(),o();try{if(typeof e!="function")return;const b=yield e({type:L.type,data:L.data}),I=(k=(B=(N=b==null?void 0:b.finalData)!=null?N:b==null?void 0:b.data)!=null?B:b)!=null?k:{},d=String((I==null?void 0:I.status)||"").trim().toLowerCase();if(s(),d==="invoiced"){yt({message:q("invoice_success"),description:q("invoice_description"),isSuccess:!0,hideOkButton:!0,theme:A,closeOnClickOutside:!1}).open();return}if(d==="failed"){yt({message:q("invoice_failed"),description:q("invoice_description_failed"),isSuccess:!1,hideOkButton:!0,theme:A,closeOnClickOutside:!1}).open();return}}catch(b){s(),yt({message:q("invoice_failed"),description:q("invoice_description_failed"),isSuccess:!1,hideOkButton:!0,closeOnClickOutside:!1,theme:A}).open(),console.error(b)}})});document.body.appendChild(T)}});return H.appendChild(z),c.appendChild(H),{container:h}}function Fr({theme:t,onClose:n}={}){const A=document.createElement("div");A.className=" wgt:flex wgt:h-screen wgt:bg-[#F3F4F6] wgt:p-4",t&&A.setAttribute("data-theme",t);const e=document.createElement("div");e.className="wgt:w-full wgt:max-w-md wgt:max-h-[208px] wgt:bg-white wgt:rounded-2xl wgt:shadow-sm wgt:p-8 wgt:text-center";const a=document.createElement("div");a.className="wgt:flex wgt:justify-center wgt:mb-4";const h=document.createElement("div");h.className="wgt:w-12 wgt:h-12 wgt:rounded-full wgt:flex wgt:items-center wgt:justify-center",h.style.backgroundColor="#335CFF",h.innerHTML=`
507
+ `,E.appendChild(v),E.appendChild(x);const p=document.createElement("div");p.className="wgt:mt-4 wgt:px-4",C.appendChild(p);const w=Gr(),y=Rr({defaultValues:{taxCode:a||""},onFetchByTaxCode:L=>_(null,null,function*(){var N,B,k;const T=yield Ih(L);return{representativeName:(N=T.nguoi_dai_dien)!=null?N:"",buyerAddress:(B=T.dia_chi)!=null?B:"",businessName:(k=T.ten_cty)!=null?k:""}})});let X="individual",f=w;function Q(L){X=L,v.style.borderBottom="none",x.style.borderBottom="none";const T="wgt:relative wgt:flex-1 wgt:py-4 wgt:text-sm wgt:font-semibold";L==="individual"?(v.className=`${T} wgt:text-strong-950`,v.style.borderBottom="2px solid var(--primary)",x.className=`${T} wgt:text-soft-400`,p.innerHTML="",p.appendChild(w.container),f=w):(x.className=`${T} wgt:text-strong-950`,x.style.borderBottom="2px solid var(--primary)",v.className=`${T} wgt:text-soft-400`,p.innerHTML="",p.appendChild(y.container),f=y)}v.addEventListener("click",()=>Q("individual")),x.addEventListener("click",()=>Q("business")),Q("individual");const M=document.createElement("p");M.className="wgt:mt-2 wgt:text-xs wgt:text-[#FF8447] wgt:text-left wgt:justify-center",M.textContent=q("invoiceform_note"),c.appendChild(M);const H=document.createElement("div");H.className="wgt:mt-6 wgt:w-full wgt:flex wgt:justify-center wgt:items-center";const z=wt({type:"button",title:q("btn_preview"),className:"wgt:min-w-[163px] wgt:text-white",handleClick:()=>{if(!f.validate())return;const L={type:X,data:f.getValues()},{overlay:T}=Yr({type:L.type,data:L.data,orderInfo:t,theme:A,onClose:()=>{console.log("Popup closed")},onConfirm:()=>_(null,null,function*(){var N,B,k;T.remove(),o();try{if(typeof e!="function")return;const b=yield e({type:L.type,data:L.data}),I=(k=(B=(N=b==null?void 0:b.finalData)!=null?N:b==null?void 0:b.data)!=null?B:b)!=null?k:{},d=String((I==null?void 0:I.status)||"").trim().toLowerCase();if(s(),d==="invoiced"){yt({message:q("invoice_success"),description:q("invoice_description"),isSuccess:!0,hideOkButton:!0,theme:A,closeOnClickOutside:!1}).open();return}if(d==="failed"){yt({message:q("invoice_failed"),description:q("invoice_description_failed"),okLabel:q("close"),isSuccess:!1,hideOkButton:!1,theme:A,closeOnClickOutside:!1}).open();return}}catch(b){s(),yt({message:q("invoice_failed"),description:q("invoice_description_failed"),okLabel:q("close"),isSuccess:!1,hideOkButton:!1,closeOnClickOutside:!1,theme:A}).open(),console.error(b)}})});document.body.appendChild(T)}});return H.appendChild(z),c.appendChild(H),{container:h}}function Fr({theme:t,onClose:n}={}){const A=document.createElement("div");A.className=" wgt:flex wgt:h-screen wgt:bg-[#F3F4F6] wgt:p-4",t&&A.setAttribute("data-theme",t);const e=document.createElement("div");e.className="wgt:w-full wgt:max-w-md wgt:max-h-[208px] wgt:bg-white wgt:rounded-2xl wgt:shadow-sm wgt:p-8 wgt:text-center";const a=document.createElement("div");a.className="wgt:flex wgt:justify-center wgt:mb-4";const h=document.createElement("div");h.className="wgt:w-12 wgt:h-12 wgt:rounded-full wgt:flex wgt:items-center wgt:justify-center",h.style.backgroundColor="#335CFF",h.innerHTML=`
514
508
  <svg width="26" height="26" viewBox="0 0 26 26" fill="none" xmlns="http://www.w3.org/2000/svg">
515
509
  <path d="M20.7996 22.75H5.19961C4.94102 22.75 4.69303 22.6473 4.51018 22.4644C4.32733 22.2816 4.22461 22.0336 4.22461 21.775V4.225C4.22461 3.96641 4.32733 3.71842 4.51018 3.53557C4.69303 3.35272 4.94102 3.25 5.19961 3.25H20.7996C21.0582 3.25 21.3062 3.35272 21.489 3.53557C21.6719 3.71842 21.7746 3.96641 21.7746 4.225V21.775C21.7746 22.0336 21.6719 22.2816 21.489 22.4644C21.3062 22.6473 21.0582 22.75 20.7996 22.75ZM9.09961 10.075V12.025H16.8996V10.075H9.09961ZM9.09961 13.975V15.925H16.8996V13.975H9.09961Z" fill="white"/>
516
510
  </svg>
@@ -14,7 +14,7 @@ var n = (e, t, r) => new Promise((o, c) => {
14
14
  }, g = (i) => i.done ? o(i.value) : Promise.resolve(i.value).then(s, d);
15
15
  g((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-DOx-LBdB.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-CFPPYS7n.js";
18
18
  function k({
19
19
  title: e,
20
20
  isDisabled: t = !1,
@@ -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.3";
98
+ const A = (e) => new Intl.NumberFormat("vi-VN").format(e), S = "1.120.5";
99
99
  function U(r) {
100
100
  return n(this, arguments, function* ({ search: e, bank: t }) {
101
101
  return (yield a.get(`${p}`, {
@@ -35,8 +35,8 @@ var mn = (t, n, e) => new Promise((c, h) => {
35
35
  }, o = (u) => u.done ? c(u.value) : Promise.resolve(u.value).then(a, A);
36
36
  o((e = e.apply(t, n)).next());
37
37
  });
38
- import { t as g, g as _h, a as $h, b as vt, s as n0, c as Ot, d as T1, e as x1, f as d1, m as w1, h as p1, i as C1, v as f1 } from "./index-DOx-LBdB.js";
39
- import { c as Qt, a as c0, g as t0, b as X1, f as bn, d as B1, e as e0, h as N1, i as E1, j as H1, k as y1, l as k1, m as P1, n as v1 } from "./loading-XFy-I2ys.js";
38
+ import { t as g, g as _h, a as $h, b as vt, s as n0, c as Ot, d as T1, e as x1, f as d1, m as w1, h as p1, i as C1, v as f1 } from "./index-CFPPYS7n.js";
39
+ import { c as Qt, a as c0, g as t0, b as X1, f as bn, d as B1, e as e0, h as N1, i as E1, j as H1, k as y1, l as k1, m as P1, n as v1 } from "./loading-85IuPQ1F.js";
40
40
  import { g as n1 } from "./_commonjsHelpers-bAxELxBV.js";
41
41
  function lh({ steps: t = [], currentStep: n = 1 } = {}) {
42
42
  const e = document.createElement("div");
@@ -3465,9 +3465,9 @@ function Ec(B) {
3465
3465
  const $n = document.createElement("button");
3466
3466
  $n.type = "button", $n.className = "wgt:flex wgt:items-center wgt:gap-3 wgt:px-4 wgt:py-3 wgt:rounded-xl wgt:text-sm wgt:font-medium wgt:transition wgt:border-2 wgt:min-w-[200px]";
3467
3467
  const et = document.createElement("span");
3468
- et.className = "wgt:h-10 wgt:w-10 wgt:rounded wgt:flex wgt:items-center wgt:justify-center wgt:border-[#232A751A] wgt:border", et.style.backgroundColor = "#232A751A", et.innerHTML = kt;
3468
+ et.className = "wgt:h-8 wgt:w-8 wgt:rounded wgt:flex wgt:items-center wgt:justify-center wgt:border-[#232A751A] wgt:border", et.style.backgroundColor = "#232A751A", et.innerHTML = kt;
3469
3469
  const At = document.createElement("span");
3470
- At.className = "wgt:text-base wgt:font-semibold", At.innerText = Xn;
3470
+ At.className = "wgt:text-sm wgt:font-semibold", At.innerText = Xn;
3471
3471
  const O = document.createElement("span");
3472
3472
  O.className = "wgt:ml-auto wgt:h-5 wgt:w-5 wgt:rounded-full wgt:border-2 wgt:flex wgt:items-center wgt:justify-center";
3473
3473
  const An = document.createElement("span");
@@ -3475,10 +3475,10 @@ function Ec(B) {
3475
3475
  Z = Fn, Mn(), Y != null && Y.eInvoiceRegistration && (Y.eInvoiceRegistration.businessType = Z), j == null || j(Z);
3476
3476
  }), { btn: $n, radioInner: An, radio: O, textSpan: At, value: Fn };
3477
3477
  }
3478
- const hn = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
3478
+ const hn = `<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
3479
3479
  <path d="M4.80029 4.65039H13.8003C13.8399 4.65044 13.8777 4.66637 13.9058 4.69434C13.9339 4.72247 13.9497 4.761 13.9497 4.80078V19.0508H17.2505V10.0508H19.1997C19.2395 10.0508 19.278 10.0666 19.3062 10.0947C19.3341 10.1228 19.35 10.1606 19.3501 10.2002V19.0508H21.1499V19.3506H2.8501V19.0508H4.6499V4.80078C4.6499 4.76104 4.66578 4.72246 4.69385 4.69434C4.72198 4.66621 4.76051 4.65039 4.80029 4.65039ZM6.75049 13.6504H11.8501V10.3506H6.75049V13.6504ZM6.75049 10.0508H11.8501V6.75H6.75049V10.0508Z" fill="#232A75" stroke="#232A75" stroke-width="1.5"/>
3480
3480
  </svg>
3481
- `, qn = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
3481
+ `, qn = `<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
3482
3482
  <path d="M9.2998 15.4492H14.7002C15.6946 15.4493 16.6484 15.8447 17.3516 16.5479C18.0547 17.251 18.4501 18.2048 18.4502 19.1992V20.25H5.5498V19.1992C5.54991 18.2048 5.94527 17.251 6.64844 16.5479C7.35168 15.8447 8.30533 15.4492 9.2998 15.4492ZM12 2.84961C13.2332 2.84966 14.4161 3.33992 15.2881 4.21191C16.1599 5.08393 16.6494 6.26688 16.6494 7.5C16.6493 8.73312 16.16 9.91613 15.2881 10.7881C14.4161 11.66 13.2331 12.1494 12 12.1494C11.3895 12.1494 10.7848 12.0295 10.2207 11.7959C9.65667 11.5623 9.14365 11.2197 8.71191 10.7881C8.2802 10.3564 7.93778 9.84334 7.7041 9.2793C7.47047 8.71525 7.34966 8.11051 7.34961 7.5C7.34961 6.88935 7.47042 6.28389 7.7041 5.71973C7.93776 5.15579 8.28029 4.64357 8.71191 4.21191C9.14371 3.78012 9.65654 3.43681 10.2207 3.20312C10.7847 2.96957 11.3895 2.84961 12 2.84961Z" fill="#232A75" stroke="#232A75" stroke-width="1.5"/>
3483
3483
  </svg>
3484
3484
  `, gn = en(
@@ -6741,8 +6741,7 @@ function wa({
6741
6741
  preventClose: c = !1,
6742
6742
  settingUrl: h = ""
6743
6743
  } = {}) {
6744
- const a = `Mã số thuế đã được đăng ký với
6745
- M-Invoice.`, A = "Thiết lập", o = "Tiếp tục";
6744
+ const a = g("notification"), A = g("settings"), o = g("next");
6746
6745
  document.querySelectorAll('[data-wgt-warning-popup="true"]').forEach((f) => {
6747
6746
  try {
6748
6747
  f.remove();
package/package.json CHANGED
@@ -46,7 +46,7 @@
46
46
  "prepare": "npm run build"
47
47
  },
48
48
  "type": "module",
49
- "version": "1.120.3",
49
+ "version": "1.120.5",
50
50
  "repository": {},
51
51
  "dependencies": {
52
52
  "@invoice-sdk/id_extraction_qr": "^1.8.3",