@invoice-sdk/widget 1.124.2 → 1.124.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,718 +1,689 @@
1
- var ae = Object.defineProperty;
2
- var _ = Object.getOwnPropertySymbols;
3
- var se = Object.prototype.hasOwnProperty, oe = Object.prototype.propertyIsEnumerable;
4
- var $ = (r, e, t) => e in r ? ae(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, O = (r, e) => {
5
- for (var t in e || (e = {}))
6
- se.call(e, t) && $(r, t, e[t]);
7
- if (_)
8
- for (var t of _(e))
9
- oe.call(e, t) && $(r, t, e[t]);
10
- return r;
11
- };
12
- var W = (r, e, t) => new Promise((n, d) => {
13
- var c = (l) => {
14
- try {
15
- g(t.next(l));
16
- } catch (f) {
17
- d(f);
18
- }
19
- }, s = (l) => {
20
- try {
21
- g(t.throw(l));
22
- } catch (f) {
23
- d(f);
24
- }
25
- }, g = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(c, s);
26
- g((t = t.apply(r, e)).next());
27
- });
28
- import { c as U, f as te, e as le, b as de, o as ce, p as ge, s as ue, q as pe } from "./loading-riArY4Yy.js";
29
- import { t as i, c as J, j as we } from "./index-D8SOjo7a.js";
30
- function D(r) {
31
- const e = r.trim();
32
- 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 } : { valid: !1, error: i("required_name") };
1
+ import { c as O, f as G, e as te, b as ne, o as re, p as ie, s as ae, q as oe } from "./loading-BCCQ18FQ.js";
2
+ import { t, c as Q, j as se } from "./index-CNB26P5W.js";
3
+ function B(i) {
4
+ const n = i.trim();
5
+ return n ? n.length < 2 || n.length > 250 ? { valid: !1, error: t("length_2_250") } : /[<>:"\/\\|?*@#$%!^]/.test(n) ? { valid: !1, error: t("invalid_characters") } : { valid: !0 } : { valid: !1, error: t("required_name") };
33
6
  }
34
- function Q(r, e = !1) {
35
- const t = String(r != null ? r : "").trim();
36
- 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 } : e ? { valid: !1, error: i("required_address") } : { valid: !0 };
7
+ function K(i, n = !1) {
8
+ const r = String(i ?? "").trim();
9
+ return r ? r.length < 2 || r.length > 250 ? { valid: !1, error: t("length_2_250") } : /[<>:"\\|?*@#$%!^]/.test(r) ? { valid: !1, error: t("invalid_characters") } : { valid: !0 } : n ? { valid: !1, error: t("required_address") } : { valid: !0 };
37
10
  }
38
- function z(r) {
39
- const e = r.trim();
40
- return e ? e.length < 6 || e.length > 254 ? { valid: !1, error: i("email_length") } : /[<>:"\/\\|?*#$%!\s]/.test(e) ? { valid: !1, error: i("email_invalid_format") } : /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e) ? e.includes("@@") ? { valid: !1, error: i("email_invalid_format") } : { valid: !0 } : { valid: !1, error: i("email_invalid_format") } : { valid: !1, error: i("required_email") };
11
+ function U(i) {
12
+ const n = i.trim();
13
+ return n ? n.length < 6 || n.length > 254 ? { valid: !1, error: t("email_length") } : /[<>:"\/\\|?*#$%!\s]/.test(n) ? { valid: !1, error: t("email_invalid_format") } : /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(n) ? n.includes("@@") ? { valid: !1, error: t("email_invalid_format") } : { valid: !0 } : { valid: !1, error: t("email_invalid_format") } : { valid: !1, error: t("required_email") };
41
14
  }
42
- function ee(r, e = !1) {
43
- const t = r.trim();
44
- if (!t)
45
- return e ? { valid: !1, error: i("required_phone") } : { valid: !0 };
46
- const n = t.replace(/\s/g, "");
47
- if (/[<>:"\/\\|?*@#$%!A-Za-z]/.test(n))
48
- return { valid: !1, error: i("phone_invalid") };
49
- const c = /^0\d{9}$/, s = /^\+84\d{9}$/;
50
- return !c.test(n) && !s.test(n) ? { valid: !1, error: i("phone_invalid_format") } : { valid: !0 };
15
+ function J(i, n = !1) {
16
+ const r = i.trim();
17
+ if (!r)
18
+ return n ? { valid: !1, error: t("required_phone") } : { valid: !0 };
19
+ const e = r.replace(/\s/g, "");
20
+ if (/[<>:"\/\\|?*@#$%!A-Za-z]/.test(e))
21
+ return { valid: !1, error: t("phone_invalid") };
22
+ const d = /^0\d{9}$/, a = /^\+84\d{9}$/;
23
+ return !d.test(e) && !a.test(e) ? { valid: !1, error: t("phone_invalid_format") } : { valid: !0 };
51
24
  }
52
- function G(r) {
53
- const e = r.trim();
54
- if (!e) return { valid: !1, error: i("required_tax_code") };
55
- const t = e.replace(/\s/g, "");
56
- if (/[<>:"\/\\|?*@#$%!A-Za-z\s]/.test(t))
57
- return { valid: !1, error: i("tax_code_invalid") };
58
- if ((t.match(/-/g) || []).length > 1)
59
- return { valid: !1, error: i("tax_code_invalid_format") };
60
- const c = /^\d{10}$/, s = /^\d{10}-\d{3}$/;
61
- return !c.test(t) && !s.test(t) ? { valid: !1, error: i("tax_code_invalid_format") } : { valid: !0 };
25
+ function z(i) {
26
+ const n = i.trim();
27
+ if (!n) return { valid: !1, error: t("required_tax_code") };
28
+ const r = n.replace(/\s/g, "");
29
+ if (/[<>:"\/\\|?*@#$%!A-Za-z\s]/.test(r))
30
+ return { valid: !1, error: t("tax_code_invalid") };
31
+ if ((r.match(/-/g) || []).length > 1)
32
+ return { valid: !1, error: t("tax_code_invalid_format") };
33
+ const d = /^\d{10}$/, a = /^\d{10}-\d{3}$/;
34
+ return !d.test(r) && !a.test(r) ? { valid: !1, error: t("tax_code_invalid_format") } : { valid: !0 };
62
35
  }
63
- function me({ defaultValues: r = {}, onChange: e } = {}) {
64
- const t = {
65
- representativeName: r.representativeName || "",
66
- buyerAddress: r.buyerAddress || "",
67
- email: r.email || "",
68
- phone: r.phone || ""
69
- }, n = document.createElement("div");
70
- n.className = "wgt:space-y-2";
71
- function d() {
72
- typeof e == "function" && e(O({}, t));
36
+ function le({ defaultValues: i = {}, onChange: n } = {}) {
37
+ const r = {
38
+ representativeName: i.representativeName || "",
39
+ buyerAddress: i.buyerAddress || "",
40
+ email: i.email || "",
41
+ phone: i.phone || ""
42
+ }, e = document.createElement("div");
43
+ e.className = "wgt:space-y-2";
44
+ function l() {
45
+ typeof n == "function" && n({ ...r });
73
46
  }
74
- function c({ label: P, required: o, name: a, type: m = "text", placeholder: h }) {
75
- const V = document.createElement("div");
76
- V.className = "";
77
- const A = document.createElement("label");
78
- A.className = "wgt:text-sm wgt:font-medium wgt:text-strong-950", A.htmlFor = a, A.innerHTML = o ? `${P} <span class="wgt:text-semantic-error wgt:text-[#ED1C24]">*</span>` : P;
79
- const w = document.createElement("input");
80
- w.id = a, w.name = a, w.type = m, w.placeholder = h || "", w.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", w.value = t[a] || "";
81
- const T = document.createElement("div");
82
- return T.className = "wgt:text-xs wgt:text-[#ED1C24] wgt:mt-1 wgt:hidden", T.setAttribute("data-error-for", a), w.addEventListener("input", () => {
83
- t[a] = w.value, w.classList.remove(
47
+ function d({ label: k, required: s, name: o, type: w = "text", placeholder: f }) {
48
+ const y = document.createElement("div");
49
+ y.className = "";
50
+ const P = document.createElement("label");
51
+ P.className = "wgt:text-sm wgt:font-medium wgt:text-strong-950", P.htmlFor = o, P.innerHTML = s ? `${k} <span class="wgt:text-semantic-error wgt:text-[#ED1C24]">*</span>` : k;
52
+ const p = document.createElement("input");
53
+ p.id = o, p.name = o, p.type = w, p.placeholder = f || "", p.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", p.value = r[o] || "";
54
+ const H = document.createElement("div");
55
+ return H.className = "wgt:text-xs wgt:text-[#ED1C24] wgt:mt-1 wgt:hidden", H.setAttribute("data-error-for", o), p.addEventListener("input", () => {
56
+ r[o] = p.value, p.classList.remove(
84
57
  "wgt:border-semantic-error",
85
58
  "wgt:bg-semantic-error-50"
86
- ), T.classList.add("wgt:hidden"), d();
87
- }), w.addEventListener("blur", () => {
88
- let H;
89
- switch (a) {
59
+ ), H.classList.add("wgt:hidden"), l();
60
+ }), p.addEventListener("blur", () => {
61
+ let L;
62
+ switch (o) {
90
63
  case "representativeName":
91
- H = D(w.value);
64
+ L = B(p.value);
92
65
  break;
93
66
  case "buyerAddress":
94
- H = Q(w.value);
67
+ L = K(p.value);
95
68
  break;
96
69
  case "email":
97
- H = z(w.value);
70
+ L = U(p.value);
98
71
  break;
99
72
  default:
100
73
  return;
101
74
  }
102
- !H.valid && H.error && (w.classList.add(
75
+ !L.valid && L.error && (p.classList.add(
103
76
  "wgt:border-semantic-error",
104
77
  "wgt:bg-semantic-error-50"
105
- ), T.textContent = H.error, T.classList.remove("wgt:hidden"));
106
- }), V.appendChild(A), V.appendChild(w), V.appendChild(T), { field: V, input: w, errorEl: T };
78
+ ), H.textContent = L.error, H.classList.remove("wgt:hidden"));
79
+ }), y.appendChild(P), y.appendChild(p), y.appendChild(H), { field: y, input: p, errorEl: H };
107
80
  }
108
81
  const {
109
- field: s,
82
+ field: a,
110
83
  input: g,
111
- errorEl: l
112
- } = c({
113
- label: i("representativeName"),
84
+ errorEl: m
85
+ } = d({
86
+ label: t("representativeName"),
114
87
  required: !0,
115
88
  name: "representativeName",
116
- placeholder: i("representativeName_input")
117
- }), { field: f, errorEl: C } = c({
118
- label: i("buyerAddress"),
89
+ placeholder: t("representativeName_input")
90
+ }), { field: E, errorEl: C } = d({
91
+ label: t("buyerAddress"),
119
92
  required: !1,
120
93
  name: "buyerAddress",
121
- placeholder: i("buyerAddress_input")
94
+ placeholder: t("buyerAddress_input")
122
95
  }), {
123
- field: M,
124
- input: b,
125
- errorEl: u
126
- } = c({
127
- label: i("email"),
96
+ field: N,
97
+ input: x,
98
+ errorEl: c
99
+ } = d({
100
+ label: t("email"),
128
101
  required: !0,
129
102
  name: "email",
130
103
  type: "email",
131
- placeholder: i("email_input")
104
+ placeholder: t("email_input")
132
105
  });
133
- n.appendChild(s), n.appendChild(f), n.appendChild(M);
134
- function p() {
135
- let P = !0;
136
- function o(h, V, A) {
137
- h.classList.add(
106
+ e.appendChild(a), e.appendChild(E), e.appendChild(N);
107
+ function u() {
108
+ let k = !0;
109
+ function s(f, y, P) {
110
+ f.classList.add(
138
111
  "wgt:border-semantic-error",
139
112
  "wgt:bg-semantic-error-50"
140
- ), A && V && (V.textContent = A, V.classList.remove("wgt:hidden")), P = !1;
113
+ ), P && y && (y.textContent = P, y.classList.remove("wgt:hidden")), k = !1;
141
114
  }
142
- const a = D(t.representativeName);
143
- if (a.valid || o(g, l, a.error), t.buyerAddress.trim()) {
144
- const h = Q(t.buyerAddress);
145
- h.valid || o(
115
+ const o = B(r.representativeName);
116
+ if (o.valid || s(g, m, o.error), r.buyerAddress.trim()) {
117
+ const f = K(r.buyerAddress);
118
+ f.valid || s(
146
119
  document.querySelector('input[name="buyerAddress"]'),
147
120
  C,
148
- h.error
121
+ f.error
149
122
  );
150
123
  }
151
- const m = z(t.email);
152
- return m.valid || o(b, u, m.error), P;
124
+ const w = U(r.email);
125
+ return w.valid || s(x, c, w.error), k;
153
126
  }
154
- function k() {
155
- return O({}, t);
127
+ function T() {
128
+ return { ...r };
156
129
  }
157
- return { container: n, getValues: k, validate: p };
130
+ return { container: e, getValues: T, validate: u };
158
131
  }
159
- function Ce({
160
- defaultValues: r = {},
161
- onChange: e,
162
- onFetchByTaxCode: t
132
+ function de({
133
+ defaultValues: i = {},
134
+ onChange: n,
135
+ onFetchByTaxCode: r
163
136
  } = {}) {
164
- const n = {
165
- noTaxCode: !!r.noTaxCode,
166
- taxCode: r.taxCode || "",
167
- businessName: r.businessName || "",
168
- representativeName: r.representativeName || "",
169
- buyerAddress: r.buyerAddress || "",
137
+ const e = {
138
+ noTaxCode: !!i.noTaxCode,
139
+ taxCode: i.taxCode || "",
140
+ businessName: i.businessName || "",
141
+ representativeName: i.representativeName || "",
142
+ buyerAddress: i.buyerAddress || "",
170
143
  // performerName: defaultValues.performerName || '',
171
- email: r.email || "",
172
- phone: r.phone || ""
173
- }, d = document.createElement("div");
174
- d.className = "wgt:space-y-2";
175
- function c() {
176
- typeof e == "function" && e(O({}, n));
144
+ email: i.email || "",
145
+ phone: i.phone || ""
146
+ }, l = document.createElement("div");
147
+ l.className = "wgt:space-y-2";
148
+ function d() {
149
+ typeof n == "function" && n({ ...e });
177
150
  }
178
- function s({ label: x, required: L, name: v, type: K = "text", placeholder: I }) {
151
+ function a({ label: A, required: S, name: h, type: R = "text", placeholder: j }) {
179
152
  const q = document.createElement("div");
180
153
  q.className = "";
181
- const B = document.createElement("label");
182
- B.className = "wgt:text-sm wgt:font-medium wgt:text-strong-950", B.htmlFor = v, B.innerHTML = L ? `${x} <span class="wgt:text-[#ED1C24]">*</span>` : x;
183
- const N = document.createElement("input");
184
- N.id = v, N.name = v, N.type = K, N.placeholder = I || "", N.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", N.value = n[v] || "";
185
- const R = document.createElement("div");
186
- return R.className = "wgt:text-xs wgt:text-[#ED1C24] wgt:mt-1 wgt:hidden", R.setAttribute("data-error-for", v), N.addEventListener("input", () => {
187
- n[v] = N.value, N.classList.remove(
154
+ const F = document.createElement("label");
155
+ F.className = "wgt:text-sm wgt:font-medium wgt:text-strong-950", F.htmlFor = h, F.innerHTML = S ? `${A} <span class="wgt:text-[#ED1C24]">*</span>` : A;
156
+ const b = document.createElement("input");
157
+ b.id = h, b.name = h, b.type = R, b.placeholder = j || "", b.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", b.value = e[h] || "";
158
+ const Y = document.createElement("div");
159
+ return Y.className = "wgt:text-xs wgt:text-[#ED1C24] wgt:mt-1 wgt:hidden", Y.setAttribute("data-error-for", h), b.addEventListener("input", () => {
160
+ e[h] = b.value, b.classList.remove(
188
161
  "wgt:border-semantic-error",
189
162
  "wgt:bg-semantic-error-50"
190
- ), R.classList.add("wgt:hidden"), c();
191
- }), N.addEventListener("blur", () => {
192
- if (!N.value.trim() && !L) return;
193
- let j;
194
- switch (v) {
163
+ ), Y.classList.add("wgt:hidden"), d();
164
+ }), b.addEventListener("blur", () => {
165
+ if (!b.value.trim() && !S) return;
166
+ let W;
167
+ switch (h) {
195
168
  case "businesName":
196
169
  case "representativeName":
197
- j = D(N.value);
170
+ W = B(b.value);
198
171
  break;
199
172
  case "buyerAddress":
200
- j = Q(N.value);
173
+ W = K(b.value);
201
174
  break;
202
175
  case "email":
203
- j = z(N.value);
176
+ W = U(b.value);
204
177
  break;
205
178
  case "phone":
206
- j = ee(N.value, !0);
179
+ W = J(b.value, !0);
207
180
  break;
208
181
  default:
209
182
  return;
210
183
  }
211
- !j.valid && j.error && (N.classList.add(
184
+ !W.valid && W.error && (b.classList.add(
212
185
  "wgt:border-semantic-error",
213
186
  "wgt:bg-semantic-error-50"
214
- ), R.textContent = j.error, R.classList.remove("wgt:hidden"));
215
- }), q.appendChild(B), q.appendChild(N), q.appendChild(R), { field: q, input: N, errorEl: R };
187
+ ), Y.textContent = W.error, Y.classList.remove("wgt:hidden"));
188
+ }), q.appendChild(F), q.appendChild(b), q.appendChild(Y), { field: q, input: b, errorEl: Y };
216
189
  }
217
190
  const g = document.createElement("label");
218
191
  g.className = "wgt:flex wgt:items-center wgt:gap-2 wgt:font-medium wgt:text-strong-950 wgt:text-sm";
219
- const l = document.createElement("input");
220
- l.type = "checkbox", l.className = "wgt:h-4 wgt:w-4 wgt:rounded wgt:border-[#E4E7EC] focus:wgt:outline-none focus:wgt:ring-primary", l.checked = n.noTaxCode;
221
- const f = document.createElement("span");
222
- f.textContent = i("business_noTaxCode"), f.className = "wgt:italic wgt:font-normal wgt:text-[14px] wgt:leading-[20px] wgt:tracking-[0px] wgt:align-middle wgt:text-[#525866]", f.style.fontFamily = "Inter, sans-serif", l.addEventListener("change", () => {
223
- n.noTaxCode = l.checked, u.disabled = n.noTaxCode, k.disabled = n.noTaxCode, u.classList.remove(
192
+ const m = document.createElement("input");
193
+ m.type = "checkbox", m.className = "wgt:h-4 wgt:w-4 wgt:rounded wgt:border-[#E4E7EC] focus:wgt:outline-none focus:wgt:ring-primary", m.checked = e.noTaxCode;
194
+ const E = document.createElement("span");
195
+ E.textContent = t("business_noTaxCode"), E.className = "wgt:italic wgt:font-normal wgt:text-[14px] wgt:leading-[20px] wgt:tracking-[0px] wgt:align-middle wgt:text-[#525866]", E.style.fontFamily = "Inter, sans-serif", m.addEventListener("change", () => {
196
+ e.noTaxCode = m.checked, c.disabled = e.noTaxCode, T.disabled = e.noTaxCode, c.classList.remove(
224
197
  "wgt:border-semantic-error",
225
198
  "wgt:bg-semantic-error-50"
226
- ), p.classList.add("wgt:hidden"), c();
227
- }), g.appendChild(l), g.appendChild(f);
199
+ ), u.classList.add("wgt:hidden"), d();
200
+ }), g.appendChild(m), g.appendChild(E);
228
201
  const C = document.createElement("div");
229
202
  C.className = "wgt:space-y-2";
230
- const M = document.createElement("label");
231
- M.className = "wgt:text-sm wgt:font-medium wgt:text-strong-950 ", M.innerHTML = i("confirmation_popup_taxCode") + '<span class="wgt:text-[#ED1C24]">*</span>';
232
- const b = document.createElement("div");
233
- b.className = "wgt:flex wgt:gap-2 wgt:mt-2";
234
- const u = document.createElement("input");
235
- u.type = "text", u.name = "taxCode", u.placeholder = i("taxCode_input"), u.value = n.taxCode, u.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";
236
- const p = document.createElement("div");
237
- p.className = "wgt:text-xs wgt:text-[#ED1C24] wgt:mt-1 wgt:hidden", u.addEventListener("input", () => {
238
- n.taxCode = u.value, u.classList.remove(
203
+ const N = document.createElement("label");
204
+ N.className = "wgt:text-sm wgt:font-medium wgt:text-strong-950 ", N.innerHTML = t("confirmation_popup_taxCode") + '<span class="wgt:text-[#ED1C24]">*</span>';
205
+ const x = document.createElement("div");
206
+ x.className = "wgt:flex wgt:gap-2 wgt:mt-2";
207
+ const c = document.createElement("input");
208
+ c.type = "text", c.name = "taxCode", c.placeholder = t("taxCode_input"), c.value = e.taxCode, c.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";
209
+ const u = document.createElement("div");
210
+ u.className = "wgt:text-xs wgt:text-[#ED1C24] wgt:mt-1 wgt:hidden", c.addEventListener("input", () => {
211
+ e.taxCode = c.value, c.classList.remove(
239
212
  "wgt:border-semantic-error",
240
213
  "wgt:bg-semantic-error-50"
241
- ), p.classList.add("wgt:hidden"), c();
242
- }), u.addEventListener("blur", () => {
243
- if (n.noTaxCode || !u.value.trim()) return;
244
- const x = G(u.value);
245
- x.valid || (u.classList.add(
214
+ ), u.classList.add("wgt:hidden"), d();
215
+ }), c.addEventListener("blur", () => {
216
+ if (e.noTaxCode || !c.value.trim()) return;
217
+ const A = z(c.value);
218
+ A.valid || (c.classList.add(
246
219
  "wgt:border-semantic-error",
247
220
  "wgt:bg-semantic-error-50"
248
- ), p.textContent = x.error, p.classList.remove("wgt:hidden"));
221
+ ), u.textContent = A.error, u.classList.remove("wgt:hidden"));
249
222
  });
250
- const k = U({
223
+ const T = O({
251
224
  type: "button",
252
- title: i("fetch_info"),
225
+ title: t("fetch_info"),
253
226
  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",
254
- handleClick: () => W(null, null, function* () {
255
- if (n.noTaxCode || typeof t != "function")
227
+ handleClick: async () => {
228
+ if (e.noTaxCode || typeof r != "function")
256
229
  return;
257
- const x = String(n.taxCode || "").trim();
258
- if (!x) {
259
- u.classList.add(
230
+ const A = String(e.taxCode || "").trim();
231
+ if (!A) {
232
+ c.classList.add(
260
233
  "wgt:border-semantic-error",
261
234
  "wgt:bg-semantic-error-50"
262
- ), p.textContent = "Vui lòng nhập MST", p.classList.remove("wgt:hidden");
235
+ ), u.textContent = "Vui lòng nhập MST", u.classList.remove("wgt:hidden");
263
236
  return;
264
237
  }
265
- const L = G(x);
266
- if (!L.valid) {
267
- u.classList.add(
238
+ const S = z(A);
239
+ if (!S.valid) {
240
+ c.classList.add(
268
241
  "wgt:border-semantic-error",
269
242
  "wgt:bg-semantic-error-50"
270
- ), p.textContent = L.error, p.classList.remove("wgt:hidden");
243
+ ), u.textContent = S.error, u.classList.remove("wgt:hidden");
271
244
  return;
272
245
  }
273
246
  try {
274
- k.disabled = !0;
275
- const v = yield t(x, O({}, n));
276
- if (!v || typeof v != "object") return;
277
- v.businessName != null && (n.businessName = String(v.businessName || ""), o.value = n.businessName), v.representativeName != null && (n.representativeName = String(v.representativeName || ""), h.value = n.representativeName), v.buyerAddress != null && (n.buyerAddress = String(v.buyerAddress || ""), w.value = n.buyerAddress), c();
278
- } catch (v) {
279
- u.classList.add(
247
+ T.disabled = !0;
248
+ const h = await r(A, { ...e });
249
+ if (!h || typeof h != "object") return;
250
+ h.businessName != null && (e.businessName = String(h.businessName || ""), s.value = e.businessName), h.representativeName != null && (e.representativeName = String(h.representativeName || ""), f.value = e.representativeName), h.buyerAddress != null && (e.buyerAddress = String(h.buyerAddress || ""), p.value = e.buyerAddress), d();
251
+ } catch {
252
+ c.classList.add(
280
253
  "wgt:border-semantic-error",
281
254
  "wgt:bg-semantic-error-50"
282
- ), p.textContent = "Không tìm thấy thông tin MST", p.classList.remove("wgt:hidden");
255
+ ), u.textContent = "Không tìm thấy thông tin MST", u.classList.remove("wgt:hidden");
283
256
  } finally {
284
- k.disabled = n.noTaxCode;
257
+ T.disabled = e.noTaxCode;
285
258
  }
286
- })
259
+ }
287
260
  });
288
- b.appendChild(u), b.appendChild(k), C.appendChild(M), C.appendChild(b), C.appendChild(p);
261
+ x.appendChild(c), x.appendChild(T), C.appendChild(N), C.appendChild(x), C.appendChild(u);
289
262
  const {
290
- field: P,
291
- input: o,
292
- errorEl: a
293
- } = s({
294
- label: i("businessName"),
263
+ field: k,
264
+ input: s,
265
+ errorEl: o
266
+ } = a({
267
+ label: t("businessName"),
295
268
  required: !0,
296
269
  name: "businessName",
297
- placeholder: i("businessName_input")
270
+ placeholder: t("businessName_input")
298
271
  }), {
299
- field: m,
300
- input: h,
301
- errorEl: V
302
- } = s({
303
- label: i("representativeName"),
272
+ field: w,
273
+ input: f,
274
+ errorEl: y
275
+ } = a({
276
+ label: t("representativeName"),
304
277
  required: !0,
305
278
  name: "representativeName",
306
- placeholder: i("representativeName_input")
279
+ placeholder: t("representativeName_input")
307
280
  }), {
308
- field: A,
309
- input: w,
310
- errorEl: T
311
- } = s({
312
- label: i("buyerAddress"),
281
+ field: P,
282
+ input: p,
283
+ errorEl: H
284
+ } = a({
285
+ label: t("buyerAddress"),
313
286
  required: !1,
314
287
  name: "buyerAddress",
315
- placeholder: i("buyerAddress_input")
288
+ placeholder: t("buyerAddress_input")
316
289
  }), {
317
- field: H,
290
+ field: L,
318
291
  input: X,
319
- errorEl: F
320
- } = s({
321
- label: i("email"),
292
+ errorEl: Z
293
+ } = a({
294
+ label: t("email"),
322
295
  required: !0,
323
296
  name: "email",
324
297
  type: "email",
325
- placeholder: i("email_input")
298
+ placeholder: t("email_input")
326
299
  }), {
327
- field: y,
328
- input: E,
329
- errorEl: S
330
- } = s({
331
- label: i("phone"),
300
+ field: v,
301
+ input: M,
302
+ errorEl: V
303
+ } = a({
304
+ label: t("phone"),
332
305
  required: !1,
333
306
  name: "phone",
334
307
  type: "tel",
335
- placeholder: i("phone_input")
308
+ placeholder: t("phone_input")
336
309
  });
337
- d.appendChild(g), d.appendChild(C), d.appendChild(P), d.appendChild(m), d.appendChild(A), d.appendChild(H), d.appendChild(y), u.disabled = n.noTaxCode, k.disabled = n.noTaxCode;
338
- function Z() {
339
- let x = !0;
340
- function L(q, B, N) {
310
+ l.appendChild(g), l.appendChild(C), l.appendChild(k), l.appendChild(w), l.appendChild(P), l.appendChild(L), l.appendChild(v), c.disabled = e.noTaxCode, T.disabled = e.noTaxCode;
311
+ function I() {
312
+ let A = !0;
313
+ function S(q, F, b) {
341
314
  q.classList.add(
342
315
  "wgt:border-semantic-error",
343
316
  "wgt:bg-semantic-error-50",
344
317
  "wgt:mt-2"
345
- ), N && B && (B.textContent = N, B.classList.remove("wgt:hidden")), x = !1;
318
+ ), b && F && (F.textContent = b, F.classList.remove("wgt:hidden")), A = !1;
346
319
  }
347
- if (!n.noTaxCode) {
348
- const q = G(n.taxCode);
349
- q.valid || L(u, p, q.error);
320
+ if (!e.noTaxCode) {
321
+ const q = z(e.taxCode);
322
+ q.valid || S(c, u, q.error);
350
323
  }
351
- const v = D(n.businessName);
352
- v.valid || L(o, a, v.error);
353
- const K = D(n.representativeName);
354
- if (K.valid || L(h, V, K.error), n.buyerAddress.trim()) {
355
- const q = Q(n.buyerAddress);
356
- q.valid || L(w, T, q.error);
324
+ const h = B(e.businessName);
325
+ h.valid || S(s, o, h.error);
326
+ const R = B(e.representativeName);
327
+ if (R.valid || S(f, y, R.error), e.buyerAddress.trim()) {
328
+ const q = K(e.buyerAddress);
329
+ q.valid || S(p, H, q.error);
357
330
  }
358
- const I = z(n.email);
359
- if (I.valid || L(X, F, I.error), n.phone.trim()) {
360
- const q = ee(n.phone, !0);
361
- q.valid || L(E, S, q.error);
331
+ const j = U(e.email);
332
+ if (j.valid || S(X, Z, j.error), e.phone.trim()) {
333
+ const q = J(e.phone, !0);
334
+ q.valid || S(M, V, q.error);
362
335
  }
363
- return x;
336
+ return A;
364
337
  }
365
- function Y() {
366
- return O({}, n);
338
+ function D() {
339
+ return { ...e };
367
340
  }
368
- return { container: d, getValues: Y, validate: Z };
341
+ return { container: l, getValues: D, validate: I };
369
342
  }
370
- function fe({
371
- type: r,
372
- data: e,
373
- orderInfo: t,
374
- theme: n,
375
- onClose: d,
376
- onConfirm: c
343
+ function ce({
344
+ type: i,
345
+ data: n,
346
+ orderInfo: r,
347
+ theme: e,
348
+ onClose: l,
349
+ onConfirm: d
377
350
  }) {
378
- const s = document.createElement("div");
379
- s.className = "wgt:fixed wgt:inset-0 wgt:flex wgt:items-center wgt:justify-center wgt:z-50 wgt:p-4", s.style.cssText = `
351
+ const a = document.createElement("div");
352
+ a.className = "wgt:fixed wgt:inset-0 wgt:flex wgt:items-center wgt:justify-center wgt:z-50 wgt:p-4", a.style.cssText = `
380
353
  background-color: rgba(0, 0, 0, 0.5);
381
354
  backdrop-filter: blur(4px);
382
- `, n && s.setAttribute("data-theme", n);
355
+ `, e && a.setAttribute("data-theme", e);
383
356
  const g = document.createElement("div");
384
357
  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";
385
- const l = document.createElement("div");
386
- l.className = "wgt:px-6 wgt:pt-6 wgt:pb-4 wgt:space-y-2";
387
- const f = document.createElement("h3");
388
- f.className = "wgt:text-xl wgt:font-semibold wgt:text-center wgt:text-strong-950", f.textContent = i("confirmation_popup_title");
358
+ const m = document.createElement("div");
359
+ m.className = "wgt:px-6 wgt:pt-6 wgt:pb-4 wgt:space-y-2";
360
+ const E = document.createElement("h3");
361
+ E.className = "wgt:text-xl wgt:font-semibold wgt:text-center wgt:text-strong-950", E.textContent = t("confirmation_popup_title");
389
362
  const C = document.createElement("p");
390
- C.className = "wgt:text-sm wgt:text-center wgt:text-[#525866]", C.textContent = i("confirmation_popup_subtitle"), l.appendChild(f), l.appendChild(C), g.appendChild(l);
391
- const M = document.createElement("div");
392
- M.className = "wgt:px-6 wgt:pb-4";
393
- const b = document.createElement("div");
394
- b.className = "wgt:space-y-3 wgt:rounded-xl wgt:bg-weak-50 wgt:px-4 wgt:py-3";
395
- function u(w, T, H) {
363
+ C.className = "wgt:text-sm wgt:text-center wgt:text-[#525866]", C.textContent = t("confirmation_popup_subtitle"), m.appendChild(E), m.appendChild(C), g.appendChild(m);
364
+ const N = document.createElement("div");
365
+ N.className = "wgt:px-6 wgt:pb-4";
366
+ const x = document.createElement("div");
367
+ x.className = "wgt:space-y-3 wgt:rounded-xl wgt:bg-weak-50 wgt:px-4 wgt:py-3";
368
+ function c(p, H, L) {
396
369
  const X = document.createElement("div");
397
370
  X.className = "wgt:flex wgt:items-start wgt:gap-3";
398
- const F = document.createElement("span");
399
- F.className = "wgt:text-primary wgt:flex-shrink-0", F.innerHTML = w;
400
- const y = document.createElement("div");
401
- y.className = "wgt:flex wgt:items-start wgt:justify-between wgt:flex-1 wgt:gap-2";
402
- const E = document.createElement("span");
403
- E.className = "wgt:text-sm wgt:text-[#525866] wgt:w-1/3", E.textContent = T;
404
- const S = document.createElement("span");
405
- return S.className = "wgt:text-sm wgt:font-semibold wgt:text-strong-950 wgt:text-right wgt:w-2/3", S.textContent = H || "-", y.appendChild(E), y.appendChild(S), X.appendChild(F), X.appendChild(y), X;
371
+ const Z = document.createElement("span");
372
+ Z.className = "wgt:text-primary wgt:flex-shrink-0", Z.innerHTML = p;
373
+ const v = document.createElement("div");
374
+ v.className = "wgt:flex wgt:items-start wgt:justify-between wgt:flex-1 wgt:gap-2";
375
+ const M = document.createElement("span");
376
+ M.className = "wgt:text-sm wgt:text-[#525866] wgt:w-1/3", M.textContent = H;
377
+ const V = document.createElement("span");
378
+ return V.className = "wgt:text-sm wgt:font-semibold wgt:text-strong-950 wgt:text-right wgt:w-2/3", V.textContent = L || "-", v.appendChild(M), v.appendChild(V), X.appendChild(Z), X.appendChild(v), X;
406
379
  }
407
- const p = '<svg class="wgt:w-4 wgt:h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" /></svg>', k = '<svg class="wgt:w-4 wgt:h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" /><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" /></svg>', P = '<svg class="wgt:w-4 wgt:h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg>';
408
- b.appendChild(
409
- u(
410
- p,
411
- i("confirmation_popup_orderCode"),
412
- t == null ? void 0 : t.billNo
380
+ const u = '<svg class="wgt:w-4 wgt:h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" /></svg>', T = '<svg class="wgt:w-4 wgt:h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" /><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" /></svg>', k = '<svg class="wgt:w-4 wgt:h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg>';
381
+ x.appendChild(
382
+ c(
383
+ u,
384
+ t("confirmation_popup_orderCode"),
385
+ r?.billNo
413
386
  )
414
- ), b.appendChild(
415
- u(
416
- k,
417
- i("confirmation_popup_address"),
418
- t == null ? void 0 : t.address
387
+ ), x.appendChild(
388
+ c(
389
+ T,
390
+ t("confirmation_popup_address"),
391
+ r?.address
419
392
  )
420
- ), b.appendChild(
421
- u(
422
- P,
423
- i("confirmation_popup_totalAmount"),
424
- te(t == null ? void 0 : t.amount) + " VND"
393
+ ), x.appendChild(
394
+ c(
395
+ k,
396
+ t("confirmation_popup_totalAmount"),
397
+ G(r?.amount) + " VND"
425
398
  )
426
- ), M.appendChild(b), g.appendChild(M);
399
+ ), N.appendChild(x), g.appendChild(N);
400
+ const s = document.createElement("div");
401
+ s.className = "wgt:px-6 wgt:pb-6";
427
402
  const o = document.createElement("div");
428
- o.className = "wgt:px-6 wgt:pb-6";
429
- const a = document.createElement("div");
430
- a.className = "wgt:space-y-3 wgt:rounded-xl wgt:border wgt:border-[#E1E4EA] wgt:px-4 wgt:py-4";
431
- function m(w, T) {
432
- const H = document.createElement("div");
433
- H.className = "wgt:flex wgt:items-start wgt:justify-between wgt:gap-4";
403
+ o.className = "wgt:space-y-3 wgt:rounded-xl wgt:border wgt:border-[#E1E4EA] wgt:px-4 wgt:py-4";
404
+ function w(p, H) {
405
+ const L = document.createElement("div");
406
+ L.className = "wgt:flex wgt:items-start wgt:justify-between wgt:gap-4";
434
407
  const X = document.createElement("span");
435
- X.className = "wgt:text-sm wgt:text-[#0E121B] wgt:w-1/3", X.textContent = w;
436
- const F = document.createElement("span");
437
- return F.className = "wgt:text-sm wgt:font-semibold wgt:text-strong-950 wgt:text-right wgt:w-2/3", F.textContent = T || "-", H.appendChild(X), H.appendChild(F), H;
408
+ X.className = "wgt:text-sm wgt:text-[#0E121B] wgt:w-1/3", X.textContent = p;
409
+ const Z = document.createElement("span");
410
+ return Z.className = "wgt:text-sm wgt:font-semibold wgt:text-strong-950 wgt:text-right wgt:w-2/3", Z.textContent = H || "-", L.appendChild(X), L.appendChild(Z), L;
438
411
  }
439
- r === "business" ? (a.appendChild(
440
- m(i("confirmation_popup_taxCode"), e.taxCode)
441
- ), a.appendChild(m(i("businessName"), e.businessName)), a.appendChild(
442
- m(
443
- i("confirmation_popup_representativeName"),
444
- e.representativeName
412
+ i === "business" ? (o.appendChild(
413
+ w(t("confirmation_popup_taxCode"), n.taxCode)
414
+ ), o.appendChild(w(t("businessName"), n.businessName)), o.appendChild(
415
+ w(
416
+ t("confirmation_popup_representativeName"),
417
+ n.representativeName
445
418
  )
446
- ), a.appendChild(
447
- m(i("confirmation_popup_buyerAddress"), e.buyerAddress)
448
- ), a.appendChild(
449
- m(i("confirmation_popup_email"), e.email)
450
- ), a.appendChild(
451
- m(i("confirmation_popup_phone"), e.phone)
452
- )) : (a.appendChild(
453
- m(
454
- i("confirmation_popup_representativeName"),
455
- e.representativeName
419
+ ), o.appendChild(
420
+ w(t("confirmation_popup_buyerAddress"), n.buyerAddress)
421
+ ), o.appendChild(
422
+ w(t("confirmation_popup_email"), n.email)
423
+ ), o.appendChild(
424
+ w(t("confirmation_popup_phone"), n.phone)
425
+ )) : (o.appendChild(
426
+ w(
427
+ t("confirmation_popup_representativeName"),
428
+ n.representativeName
456
429
  )
457
- ), a.appendChild(
458
- m(i("confirmation_popup_buyerAddress"), e.buyerAddress)
459
- ), a.appendChild(
460
- m(i("confirmation_popup_email"), e.email)
461
- )), o.appendChild(a), g.appendChild(o);
462
- const h = document.createElement("div");
463
- h.className = "wgt:px-6 wgt:pb-6 wgt:flex wgt:gap-3";
464
- const V = U({
430
+ ), o.appendChild(
431
+ w(t("confirmation_popup_buyerAddress"), n.buyerAddress)
432
+ ), o.appendChild(
433
+ w(t("confirmation_popup_email"), n.email)
434
+ )), s.appendChild(o), g.appendChild(s);
435
+ const f = document.createElement("div");
436
+ f.className = "wgt:px-6 wgt:pb-6 wgt:flex wgt:gap-3";
437
+ const y = O({
465
438
  type: "button",
466
439
  title: "Đóng",
467
440
  className: "wgt:flex-1 wgt:py-3 wgt:text-sm wgt:font-semibold wgt:rounded-[8px] wgt:bg-white wgt:text-primary wgt:border wgt:border-primary",
468
441
  handleClick: () => {
469
- typeof d == "function" && d(), s.remove();
442
+ typeof l == "function" && l(), a.remove();
470
443
  }
471
- }), A = U({
444
+ }), P = O({
472
445
  type: "button",
473
446
  title: "Xác nhận",
474
447
  className: "wgt:flex-1 wgt:py-3 wgt:text-sm wgt:font-semibold wgt:rounded-[8px] wgt:bg-primary wgt:text-white",
475
448
  handleClick: () => {
476
- typeof c == "function" && c({ type: r, data: e }), s.remove();
449
+ typeof d == "function" && d({ type: i, data: n }), a.remove();
477
450
  }
478
451
  });
479
- return h.appendChild(V), h.appendChild(A), g.appendChild(h), s.appendChild(g), s.addEventListener("click", (w) => {
480
- w.target === s && (typeof d == "function" && d(), s.remove());
481
- }), { overlay: s };
452
+ return f.appendChild(y), f.appendChild(P), g.appendChild(f), a.appendChild(g), a.addEventListener("click", (p) => {
453
+ p.target === a && (typeof l == "function" && l(), a.remove());
454
+ }), { overlay: a };
482
455
  }
483
- const he = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALYAAABICAYAAABbaA9tAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAKz9JREFUeAHtXQd4HNW1PlO3aqVdrVaymiVZso0bocR54AAGQu/F5BkIHZxAgNBDHkU8kgChBgLEJJTAoxlMiCkOzRCbEmow7sa2ZEuy2qqstNoyO+XdMzNXOzteNTc+YP/vu9rdmTu3zbnnnnavAL4ZMENcYyCHHHYCWNj94MAk4MtDoeI3SyfMejYYLCU/NfM6Bznk8C0Dj38ugn2Egeopi7WaqVqqeoqmVU/VuionvY3XrflyyGF7sTuXfqxLu6e83HWFWLC1V5YKZFVVcclQCbMWgWF9BYHeJ6Id485tbEyAsZqokEMO24HdSdgoYihK3bSNkaRUo6mqDBmcmZFZTePdvLDZsXlNtdm2HGHnsF3YXTI21qN0l0+5MyGlCFFrNqJGaLzKMLKmaePbKuvuAYOoc/J2DtuF3UU42t2B0opD8twv9KQkFD9ovYSWBzkzfrJxTVGLRdd+MiM/tiwe74UcctgO7A6OrRPxz9ze+2KSRNi0If0QSlbIDdbF8Z+yDMMSOVvB6+Q+E0sl4Zeewj9Zn88hh7FgdxC2Uk/MeUUOx8kxVdFonQ4GOJXlV7ka187kWXa5wLCUgBmSTy1xuI5/1DADKpBDDmPEriZsnT0fxrkuluQUqWxQV1XzeAf8rb97Hv54sr//4nzBgYZszWgUw/SnJDicdV62m9qZw3cMu8MqwmjjJzWFFbWMNehWp1KXIKxzNqyZbLZBUyonru7WYA9WU2nDtHyHM3zrxpWl9QAy5JDDGLDLOeGS/HF7axw/SNQIkRegsb/vPvOnPrk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orTrhPn9IVyDPIddJmfPu8ZXX3ltQVUDzPFNYOvnT0gp9I8MD+cXVs4liit8vglL38vKayz8yAtDguLzS4BfEeoPf55LvDxt7VHeqZWRXQW/kspKq25PjJyOhqibBKtqEadLPvcXWyC+4mvzWJkxXwul8mkSee7ekYqgDar5NyGaas29utgffQ5b89nzZogGtZk3Glmcw3n2IdtH72fLY28pkqdceBp2tTfT5ofLtFOy0grJAXxY7E7FnRS7j2A0UR4RTPI7TrW043iP8VEqlWKuVH60wbYrytLW8bymyiT72iDX77nXIkt+eL1tQv9Vca9+QYY9LsbeL3s+Wx95WLUu91ufkIdpEnx8q307BriRsBPNVb8cKkKVG1WIB6CWK4aF5PjwBaFABPcDh+VVE0/ur59PdZwy/ZW7n1i/h282tc/gGsKsJG49OUt9Ixv4S4My9wKBrhRqklMpHA6WH4bVnissOAY6v4Sw7gAWeh9b+rkfh282pc/iGsKsJWyfKd6XogywrKpb1h+0l1o65eT50GeN/Kni4J6X7KXTOrBIHoYeIL88llD9by8khh9FidyzxeiB/c0XdE4UMc3ZM1eNY8exrfUNDHi9s6pflGtD/VYe+y0V1sxwbVlNPVzRvOhN2/D8Q5PA9xC4XRcBUCJ7qS17h5B14Pog+mYhXE/fwqgZR62EexsZhkpy8AHf1RK+C9PafHHIYE3YHYev1XB/Z0tMJyo1+TkAP5OB/CjM/dWLHCFM//iP1lHLjHwc62mH3tS+H7xh2p7VBF0ni1XuskFV5miQT4mas//mAkfGAGx/HruAa182A0e9FzCGHbbA7OaIeL3JWw5ofeBnfRgevoW9Xt33iJ54LWODNa1r4wxn03JIccvjWYNBj1VZR+1etag/0Qmpa9YxUV0XdY1qaoL+v/5slh52Eb4IzDp6FUV9U5M3TtNIirrTlrPavBmDb47ZyyOFbh5y4kUMOOeQwFvw/nuqxEggnLfAAAAAASUVORK5CYII=";
484
- function xe({ theme: r, assets: e = {}, year: t } = {}) {
485
- const n = t != null ? t : (/* @__PURE__ */ new Date()).getFullYear(), d = document.createElement("div");
486
- d.className = "wgt:w-full wgt:bg-white", r && d.setAttribute("data-theme", r);
487
- const c = document.createElement("div");
488
- c.className = "wgt:w-full wgt:border-t wgt:border-[#E5E7EB]", d.appendChild(c);
489
- const s = document.createElement("div");
490
- s.className = "wgt:w-full wgt:max-w-md wgt:mx-auto wgt:px-4 wgt:py-4", d.appendChild(s);
456
+ const ge = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALYAAABICAYAAABbaA9tAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAKz9JREFUeAHtXQd4HNW1PlO3aqVdrVaymiVZso0bocR54AAGQu/F5BkIHZxAgNBDHkU8kgChBgLEJJTAoxlMiCkOzRCbEmow7sa2ZEuy2qqstNoyO+XdMzNXOzteNTc+YP/vu9rdmTu3zbnnnnavAL4ZMENcYyCHHHYCWNj94MAk4MtDoeI3SyfMejYYLCU/NfM6Bznk8C0Dj38ugn2Egeopi7WaqVqqeoqmVU/VuionvY3XrflyyGF7sTuXfqxLu6e83HWFWLC1V5YKZFVVcclQCbMWgWF9BYHeJ6Id485tbEyAsZqokEMO24HdSdgoYihK3bSNkaRUo6mqDBmcmZFZTePdvLDZsXlNtdm2HGHnsF3YXTI21qN0l0+5MyGlCFFrNqJGaLzKMLKmaePbKuvuAYOoc/J2DtuF3UU42t2B0opD8twv9KQkFD9ovYSWBzkzfrJxTVGLRdd+MiM/tiwe74UcctgO7A6OrRPxz9ze+2KSRNi0If0QSlbIDdbF8Z+yDMMSOVvB6+Q+E0sl4Zeewj9Zn88hh7FgdxC2Uk/MeUUOx8kxVdFonQ4GOJXlV7ka187kWXa5wLCUgBmSTy1xuI5/1DADKpBDDmPEriZsnT0fxrkuluQUqWxQV1XzeAf8rb97Hv54sr//4nzBgYZszWgUw/SnJDicdV62m9qZw3cMu8MqwmjjJzWFFbWMNehWp1KXIKxzNqyZbLZBUyonru7WYA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1ifEw0QJ/LJswlVnGIo5go673q4XQqX7fzau5nJTKdXvPRoq2/Pz0tpLUKml1z4orTrhPn9IVyDPIddJmfPu8ZXX3ltQVUDzPFNYOvnT0gp9I8MD+cXVs4liit8vglL38vKayz8yAtDguLzS4BfEeoPf55LvDxt7VHeqZWRXQW/kspKq25PjJyOhqibBKtqEadLPvcXWyC+4mvzWJkxXwul8mkSee7ekYqgDar5NyGaas29utgffQ5b89nzZogGtZk3Glmcw3n2IdtH72fLY28pkqdceBp2tTfT5ofLtFOy0grJAXxY7E7FnRS7j2A0UR4RTPI7TrW043iP8VEqlWKuVH60wbYrytLW8bymyiT72iDX77nXIkt+eL1tQv9Vca9+QYY9LsbeL3s+Wx95WLUu91ufkIdpEnx8q307BriRsBPNVb8cKkKVG1WIB6CWK4aF5PjwBaFABPcDh+VVE0/ur59PdZwy/ZW7n1i/h282tc/gGsKsJG49OUt9Ixv4S4My9wKBrhRqklMpHA6WH4bVnissOAY6v4Sw7gAWeh9b+rkfh282pc/iGsKsJWyfKd6XogywrKpb1h+0l1o65eT50GeN/Kni4J6X7KXTOrBIHoYeIL88llD9by8khh9FidyzxeiB/c0XdE4UMc3ZM1eNY8exrfUNDHi9s6pflGtD/VYe+y0V1sxwbVlNPVzRvOhN2/D8Q5PA9xC4XRcBUCJ7qS17h5B14Pog+mYhXE/fwqgZR62EexsZhkpy8AHf1RK+C9PafHHIYE3YHYev1XB/Z0tMJyo1+TkAP5OB/CjM/dWLHCFM//iP1lHLjHwc62mH3tS+H7xh2p7VBF0ni1XuskFV5miQT4mas//mAkfGAGx/HruAa182A0e9FzCGHbbA7OaIeL3JWw5ofeBnfRgevoW9Xt33iJ54LWODNa1r4wxn03JIccvjWYNBj1VZR+1etag/0Qmpa9YxUV0XdY1qaoL+v/5slh52Eb4IzDp6FUV9U5M3TtNIirrTlrPavBmDb47ZyyOFbh5y4kUMOOeQwFvw/nuqxEggnLfAAAAAASUVORK5CYII=";
457
+ function ue({ theme: i, assets: n = {}, year: r } = {}) {
458
+ const e = r ?? (/* @__PURE__ */ new Date()).getFullYear(), l = document.createElement("div");
459
+ l.className = "wgt:w-full wgt:bg-white", i && l.setAttribute("data-theme", i);
460
+ const d = document.createElement("div");
461
+ d.className = "wgt:w-full wgt:border-t wgt:border-[#E5E7EB]", l.appendChild(d);
462
+ const a = document.createElement("div");
463
+ a.className = "wgt:w-full wgt:max-w-md wgt:mx-auto wgt:px-4 wgt:py-4", l.appendChild(a);
491
464
  const g = document.createElement("div");
492
465
  g.className = "wgt:flex wgt:items-center wgt:justify-center wgt:gap-2 wgt:mb-3 wgt:flex-wrap";
493
- const l = document.createElement("div");
494
- l.className = "wgt:text-base wgt:font-semibold wgt:text-strong-950", l.textContent = "Giải pháp thanh toán được cung cấp bởi";
495
- const f = document.createElement("div");
496
- f.className = "wgt:flex wgt:items-center wgt:justify-center wgt:shrink-0";
466
+ const m = document.createElement("div");
467
+ m.className = "wgt:text-base wgt:font-semibold wgt:text-strong-950", m.textContent = "Giải pháp thanh toán được cung cấp bởi";
468
+ const E = document.createElement("div");
469
+ E.className = "wgt:flex wgt:items-center wgt:justify-center wgt:shrink-0";
497
470
  const C = document.createElement("img");
498
- if (C.src = he, C.alt = "ATOM", C.className = "wgt:h-6 wgt:w-auto", C.loading = "lazy", f.appendChild(C), g.appendChild(l), g.appendChild(f), s.appendChild(g), e.cyberSourceLogo || e.pciLogo) {
499
- const u = document.createElement("div");
500
- if (u.className = "wgt:flex wgt:items-center wgt:justify-center wgt:gap-6 wgt:py-2", e.cyberSourceLogo) {
501
- const p = document.createElement("img");
502
- p.src = e.cyberSourceLogo, p.alt = "CyberSource", p.className = "wgt:h-10 wgt:w-auto", p.loading = "lazy", u.appendChild(p);
471
+ if (C.src = ge, C.alt = "ATOM", C.className = "wgt:h-6 wgt:w-auto", C.loading = "lazy", E.appendChild(C), g.appendChild(m), g.appendChild(E), a.appendChild(g), n.cyberSourceLogo || n.pciLogo) {
472
+ const c = document.createElement("div");
473
+ if (c.className = "wgt:flex wgt:items-center wgt:justify-center wgt:gap-6 wgt:py-2", n.cyberSourceLogo) {
474
+ const u = document.createElement("img");
475
+ u.src = n.cyberSourceLogo, u.alt = "CyberSource", u.className = "wgt:h-10 wgt:w-auto", u.loading = "lazy", c.appendChild(u);
503
476
  }
504
- if (e.pciLogo) {
505
- const p = document.createElement("img");
506
- p.src = e.pciLogo, p.alt = "PCI DSS", p.className = "wgt:h-10 wgt:w-auto", p.loading = "lazy", u.appendChild(p);
477
+ if (n.pciLogo) {
478
+ const u = document.createElement("img");
479
+ u.src = n.pciLogo, u.alt = "PCI DSS", u.className = "wgt:h-10 wgt:w-auto", u.loading = "lazy", c.appendChild(u);
507
480
  }
508
- s.appendChild(u);
481
+ a.appendChild(c);
509
482
  }
510
- const M = document.createElement("div");
511
- M.className = "wgt:w-full wgt:border-t wgt:border-[#E5E7EB]", d.appendChild(M);
512
- const b = document.createElement("div");
513
- return b.className = "wgt:w-full wgt:max-w-md wgt:mx-auto wgt:px-4 wgt:py-3 wgt:text-center wgt:text-sm wgt:text-[#9CA3AF]", b.textContent = `© ${n} Bản quyền thuộc về ATOM`, d.appendChild(b), { container: d };
483
+ const N = document.createElement("div");
484
+ N.className = "wgt:w-full wgt:border-t wgt:border-[#E5E7EB]", l.appendChild(N);
485
+ const x = document.createElement("div");
486
+ return x.className = "wgt:w-full wgt:max-w-md wgt:mx-auto wgt:px-4 wgt:py-3 wgt:text-center wgt:text-sm wgt:text-[#9CA3AF]", x.textContent = `© ${e} Bản quyền thuộc về ATOM`, l.appendChild(x), { container: l };
514
487
  }
515
- function ve({
516
- orderInfo: r,
517
- onPreview: e,
518
- theme: t,
519
- onSubmit: n,
520
- taxCode: d = ""
488
+ function me({
489
+ orderInfo: i,
490
+ onPreview: n,
491
+ theme: r,
492
+ onSubmit: e,
493
+ taxCode: l = ""
521
494
  }) {
522
- const c = document.createElement("div");
523
- c.className = "wgt:flex wgt:flex-col wgt:items-center wgt:justify-between wgt:h-full wgt:shadow wgt:rounded-xl", t && c.setAttribute("data-theme", t);
524
- const s = document.createElement("div");
525
- s.className = "wgt:w-full wgt:max-w-md wgt:space-y-4 wgt:rounded-xl wgt:bg-white wgt:p-4", c.appendChild(s);
495
+ const d = document.createElement("div");
496
+ d.className = "wgt:flex wgt:flex-col wgt:items-center wgt:justify-between wgt:h-full wgt:shadow wgt:rounded-xl", r && d.setAttribute("data-theme", r);
497
+ const a = document.createElement("div");
498
+ a.className = "wgt:w-full wgt:max-w-md wgt:space-y-4 wgt:rounded-xl wgt:bg-white wgt:p-4", d.appendChild(a);
526
499
  const {
527
500
  container: g,
528
- open: l,
529
- close: f
530
- } = le();
531
- c.style.position = c.style.position || "relative", c.appendChild(g);
501
+ open: m,
502
+ close: E
503
+ } = te();
504
+ d.style.position = d.style.position || "relative", d.appendChild(g);
532
505
  const C = document.createElement("div");
533
506
  C.className = "wgt:space-y-1";
534
- const M = document.createElement("h3");
535
- M.className = "wgt:text-2xl wgt:font-semibold wgt:text-text-black wgt:text-center wgt:justify-center", M.textContent = i("invoiceform_title");
536
- const b = document.createElement("p");
537
- b.className = "wgt:text-sm wgt:text-weak-700 wgt:text-center wgt:justify-center", b.textContent = i("invoiceform_subtitle"), C.appendChild(M), C.appendChild(b), s.appendChild(C);
538
- const u = document.createElement("div");
539
- u.className = "wgt:mt-2 wgt:space-y-3 wgt:rounded-xl wgt:bg-weak-50 wgt:px-6 wgt:py-6";
540
- function p(y, E) {
541
- const S = document.createElement("div");
542
- S.className = "wgt:flex wgt:items-start";
543
- const Z = document.createElement("div");
544
- Z.className = "wgt:flex wgt:items-center wgt:gap-2 wgt:w-1/3";
545
- const Y = document.createElement("span");
546
- Y.className = "wgt:inline-flex wgt:items-center wgt:justify-center wgt:w-4 wgt:h-4 wgt:text-icon-primary";
547
- let x = "";
548
- y === i("invoice_number") ? x = `
507
+ const N = document.createElement("h3");
508
+ N.className = "wgt:text-2xl wgt:font-semibold wgt:text-text-black wgt:text-center wgt:justify-center", N.textContent = t("invoiceform_title");
509
+ const x = document.createElement("p");
510
+ x.className = "wgt:text-sm wgt:text-weak-700 wgt:text-center wgt:justify-center", x.textContent = t("invoiceform_subtitle"), C.appendChild(N), C.appendChild(x), a.appendChild(C);
511
+ const c = document.createElement("div");
512
+ c.className = "wgt:mt-2 wgt:space-y-3 wgt:rounded-xl wgt:bg-weak-50 wgt:px-6 wgt:py-6";
513
+ function u(v, M) {
514
+ const V = document.createElement("div");
515
+ V.className = "wgt:flex wgt:items-start";
516
+ const I = document.createElement("div");
517
+ I.className = "wgt:flex wgt:items-center wgt:gap-2 wgt:w-1/3";
518
+ const D = document.createElement("span");
519
+ D.className = "wgt:inline-flex wgt:items-center wgt:justify-center wgt:w-4 wgt:h-4 wgt:text-icon-primary";
520
+ let A = "";
521
+ v === t("invoice_number") ? A = `
549
522
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
550
523
  <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"/>
551
524
  </svg>
552
- ` : y === i("address_form") ? x = `
525
+ ` : v === t("address_form") ? A = `
553
526
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
554
527
  <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"/>
555
528
  </svg>
556
- ` : y === i("total_amount") && (x = `
529
+ ` : v === t("total_amount") && (A = `
557
530
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
558
531
  <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"/>
559
532
  </svg>
560
- `), Y.innerHTML = x;
561
- const L = document.createElement("span");
562
- L.className = "wgt:text-sm wgt:text-weak-700", L.textContent = y, Z.appendChild(Y), Z.appendChild(L);
563
- const v = document.createElement("span");
564
- return v.className = "wgt:text-sm wgt:font-semibold wgt:text-strong-950 wgt:w-2/3 wgt:text-right", v.textContent = E != null ? E : "", S.appendChild(Z), S.appendChild(v), S;
533
+ `), D.innerHTML = A;
534
+ const S = document.createElement("span");
535
+ S.className = "wgt:text-sm wgt:text-weak-700", S.textContent = v, I.appendChild(D), I.appendChild(S);
536
+ const h = document.createElement("span");
537
+ return h.className = "wgt:text-sm wgt:font-semibold wgt:text-strong-950 wgt:w-2/3 wgt:text-right", h.textContent = M ?? "", V.appendChild(I), V.appendChild(h), V;
565
538
  }
566
- u.appendChild(p(i("invoice_number"), r == null ? void 0 : r.billNo)), u.appendChild(
567
- p(i("address_form"), r == null ? void 0 : r.address)
568
- ), u.appendChild(
569
- p(
570
- i("total_amount"),
571
- `${te(r == null ? void 0 : r.amount)} VND`
539
+ c.appendChild(u(t("invoice_number"), i?.billNo)), c.appendChild(
540
+ u(t("address_form"), i?.address)
541
+ ), c.appendChild(
542
+ u(
543
+ t("total_amount"),
544
+ `${G(i?.amount)} VND`
572
545
  )
573
- ), s.appendChild(u);
546
+ ), a.appendChild(c);
547
+ const T = document.createElement("div");
548
+ T.className = "wgt:mt-4 wgt:rounded-xl wgt:border wgt:border-[#E1E4EA] wgt:bg-white wgt:pb-6", a.appendChild(T);
574
549
  const k = document.createElement("div");
575
- k.className = "wgt:mt-4 wgt:rounded-xl wgt:border wgt:border-[#E1E4EA] wgt:bg-white wgt:pb-6", s.appendChild(k);
576
- const P = document.createElement("div");
577
- P.className = "wgt:flex wgt:border-b wgt:border-[#E1E4EA]", k.appendChild(P);
578
- const o = document.createElement("button");
579
- o.type = "button", o.className = "wgt:relative wgt:flex-1 wgt:py-4 wgt:text-sm wgt:font-semibold", o.innerHTML = `
550
+ k.className = "wgt:flex wgt:border-b wgt:border-[#E1E4EA]", T.appendChild(k);
551
+ const s = document.createElement("button");
552
+ s.type = "button", s.className = "wgt:relative wgt:flex-1 wgt:py-4 wgt:text-sm wgt:font-semibold", s.innerHTML = `
580
553
  <span class="wgt:flex wgt:items-center wgt:justify-center wgt:gap-2">
581
554
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
582
555
  <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"/>
583
556
  </svg>
584
- ${i("individual")}
557
+ ${t("individual")}
585
558
  </span>
586
559
  `;
587
- const a = document.createElement("button");
588
- a.type = "button", a.className = "wgt:relative wgt:flex-1 wgt:py-4 wgt:text-sm wgt:font-semibold", a.innerHTML = `
560
+ const o = document.createElement("button");
561
+ o.type = "button", o.className = "wgt:relative wgt:flex-1 wgt:py-4 wgt:text-sm wgt:font-semibold", o.innerHTML = `
589
562
  <span class="wgt:flex wgt:items-center wgt:justify-center wgt:gap-2">
590
563
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
591
564
  <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"/>
592
565
  </svg>
593
- ${i("business")}
566
+ ${t("business")}
594
567
  </span>
595
- `, P.appendChild(o), P.appendChild(a);
596
- const m = document.createElement("div");
597
- m.className = "wgt:mt-4 wgt:px-4", k.appendChild(m);
598
- const h = me(), V = Ce({
599
- defaultValues: { taxCode: d || "" },
600
- onFetchByTaxCode: (y) => W(null, null, function* () {
601
- var S, Z, Y;
602
- const E = yield de(y);
568
+ `, k.appendChild(s), k.appendChild(o);
569
+ const w = document.createElement("div");
570
+ w.className = "wgt:mt-4 wgt:px-4", T.appendChild(w);
571
+ const f = le(), y = de({
572
+ defaultValues: { taxCode: l || "" },
573
+ onFetchByTaxCode: async (v) => {
574
+ const M = await ne(v);
603
575
  return {
604
- representativeName: (S = E.nguoi_dai_dien) != null ? S : "",
605
- buyerAddress: (Z = E.dia_chi) != null ? Z : "",
606
- businessName: (Y = E.ten_cty) != null ? Y : ""
576
+ representativeName: M.nguoi_dai_dien ?? "",
577
+ buyerAddress: M.dia_chi ?? "",
578
+ businessName: M.ten_cty ?? ""
607
579
  };
608
- })
580
+ }
609
581
  });
610
- let A = "individual", w = h;
611
- function T(y) {
612
- A = y, o.style.borderBottom = "none", a.style.borderBottom = "none";
613
- const E = "wgt:relative wgt:flex-1 wgt:py-4 wgt:text-sm wgt:font-semibold";
614
- y === "individual" ? (o.className = `${E} wgt:text-strong-950`, o.style.borderBottom = "2px solid var(--primary)", a.className = `${E} wgt:text-soft-400`, m.innerHTML = "", m.appendChild(h.container), w = h) : (a.className = `${E} wgt:text-strong-950`, a.style.borderBottom = "2px solid var(--primary)", o.className = `${E} wgt:text-soft-400`, m.innerHTML = "", m.appendChild(V.container), w = V);
582
+ let P = "individual", p = f;
583
+ function H(v) {
584
+ P = v, s.style.borderBottom = "none", o.style.borderBottom = "none";
585
+ const M = "wgt:relative wgt:flex-1 wgt:py-4 wgt:text-sm wgt:font-semibold";
586
+ v === "individual" ? (s.className = `${M} wgt:text-strong-950`, s.style.borderBottom = "2px solid var(--primary)", o.className = `${M} wgt:text-soft-400`, w.innerHTML = "", w.appendChild(f.container), p = f) : (o.className = `${M} wgt:text-strong-950`, o.style.borderBottom = "2px solid var(--primary)", s.className = `${M} wgt:text-soft-400`, w.innerHTML = "", w.appendChild(y.container), p = y);
615
587
  }
616
- o.addEventListener("click", () => T("individual")), a.addEventListener("click", () => T("business")), T("individual");
617
- const H = document.createElement("p");
618
- H.className = "wgt:mt-2 wgt:text-xs wgt:text-[#FF8447] wgt:text-left wgt:justify-center", H.textContent = i("invoiceform_note"), s.appendChild(H);
588
+ s.addEventListener("click", () => H("individual")), o.addEventListener("click", () => H("business")), H("individual");
589
+ const L = document.createElement("p");
590
+ L.className = "wgt:mt-2 wgt:text-xs wgt:text-[#FF8447] wgt:text-left wgt:justify-center", L.textContent = t("invoiceform_note"), a.appendChild(L);
619
591
  const X = document.createElement("div");
620
592
  X.className = "wgt:mt-6 wgt:w-full wgt:flex wgt:justify-center wgt:items-center";
621
- const F = U({
593
+ const Z = O({
622
594
  type: "button",
623
- title: i("btn_preview"),
595
+ title: t("btn_preview"),
624
596
  className: "wgt:min-w-[163px] wgt:text-white",
625
597
  handleClick: () => {
626
- if (!w.validate()) return;
627
- const y = {
628
- type: A,
629
- data: w.getValues()
630
- }, { overlay: E } = fe({
631
- type: y.type,
632
- data: y.data,
633
- orderInfo: r,
634
- theme: t,
598
+ if (!p.validate()) return;
599
+ const v = {
600
+ type: P,
601
+ data: p.getValues()
602
+ }, { overlay: M } = ce({
603
+ type: v.type,
604
+ data: v.data,
605
+ orderInfo: i,
606
+ theme: r,
635
607
  onClose: () => {
636
608
  console.log("Popup closed");
637
609
  },
638
- onConfirm: () => W(null, null, function* () {
639
- var S, Z, Y;
640
- E.remove(), l();
610
+ onConfirm: async () => {
611
+ M.remove(), m();
641
612
  try {
642
- if (typeof n != "function") return;
643
- const x = yield n({
644
- type: y.type,
645
- data: y.data
646
- }), L = (Y = (Z = (S = x == null ? void 0 : x.finalData) != null ? S : x == null ? void 0 : x.data) != null ? Z : x) != null ? Y : {}, v = String((L == null ? void 0 : L.status) || "").trim().toLowerCase();
647
- if (f(), v === "invoiced") {
648
- J({
649
- message: i("invoice_success"),
650
- description: i("invoice_description"),
613
+ if (typeof e != "function") return;
614
+ const V = await e({
615
+ type: v.type,
616
+ data: v.data
617
+ }), I = V?.finalData ?? V?.data ?? V ?? {}, D = String(I?.status || "").trim().toLowerCase();
618
+ if (E(), D === "invoiced") {
619
+ Q({
620
+ message: t("invoice_success"),
621
+ description: t("invoice_description"),
651
622
  isSuccess: !0,
652
623
  hideOkButton: !0,
653
- theme: t,
624
+ theme: r,
654
625
  closeOnClickOutside: !1
655
626
  }).open();
656
627
  return;
657
628
  }
658
- if (v === "failed") {
659
- J({
660
- message: i("invoice_failed"),
661
- description: i("invoice_description_failed"),
662
- okLabel: i("close"),
629
+ if (D === "failed") {
630
+ Q({
631
+ message: t("invoice_failed"),
632
+ description: t("invoice_description_failed"),
633
+ okLabel: t("close"),
663
634
  isSuccess: !1,
664
635
  hideOkButton: !1,
665
- theme: t,
636
+ theme: r,
666
637
  closeOnClickOutside: !1
667
638
  }).open();
668
639
  return;
669
640
  }
670
- } catch (x) {
671
- f(), J({
672
- message: i("invoice_failed"),
673
- description: i("invoice_description_failed"),
674
- okLabel: i("close"),
641
+ } catch (V) {
642
+ E(), Q({
643
+ message: t("invoice_failed"),
644
+ description: t("invoice_description_failed"),
645
+ okLabel: t("close"),
675
646
  isSuccess: !1,
676
647
  hideOkButton: !1,
677
648
  closeOnClickOutside: !1,
678
- theme: t
679
- }).open(), console.error(x);
649
+ theme: r
650
+ }).open(), console.error(V);
680
651
  }
681
- })
652
+ }
682
653
  });
683
- document.body.appendChild(E);
654
+ document.body.appendChild(M);
684
655
  }
685
656
  });
686
- return X.appendChild(F), s.appendChild(X), { container: c };
657
+ return X.appendChild(Z), a.appendChild(X), { container: d };
687
658
  }
688
- function be({ theme: r, onClose: e } = {}) {
689
- const t = document.createElement("div");
690
- t.className = " wgt:flex wgt:h-screen wgt:bg-[#F3F4F6] wgt:p-4", r && t.setAttribute("data-theme", r);
691
- const n = document.createElement("div");
692
- 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";
659
+ function pe({ theme: i, onClose: n } = {}) {
660
+ const r = document.createElement("div");
661
+ r.className = " wgt:flex wgt:h-screen wgt:bg-[#F3F4F6] wgt:p-4", i && r.setAttribute("data-theme", i);
662
+ const e = document.createElement("div");
663
+ 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";
664
+ const l = document.createElement("div");
665
+ l.className = "wgt:flex wgt:justify-center wgt:mb-4";
693
666
  const d = document.createElement("div");
694
- d.className = "wgt:flex wgt:justify-center wgt:mb-4";
695
- const c = document.createElement("div");
696
- c.className = "wgt:w-12 wgt:h-12 wgt:rounded-full wgt:flex wgt:items-center wgt:justify-center", c.style.backgroundColor = "#335CFF", c.innerHTML = `
667
+ d.className = "wgt:w-12 wgt:h-12 wgt:rounded-full wgt:flex wgt:items-center wgt:justify-center", d.style.backgroundColor = "#335CFF", d.innerHTML = `
697
668
  <svg width="26" height="26" viewBox="0 0 26 26" fill="none" xmlns="http://www.w3.org/2000/svg">
698
669
  <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"/>
699
670
  </svg>
700
671
 
701
- `, d.appendChild(c), n.appendChild(d);
702
- const s = document.createElement("h2");
703
- s.className = "wgt:text-base wgt:font-semibold wgt:text-[#0E121B] wgt:mb-2", s.textContent = i("invoiceCheckout_title"), n.appendChild(s);
672
+ `, l.appendChild(d), e.appendChild(l);
673
+ const a = document.createElement("h2");
674
+ a.className = "wgt:text-base wgt:font-semibold wgt:text-[#0E121B] wgt:mb-2", a.textContent = t("invoiceCheckout_title"), e.appendChild(a);
704
675
  const g = document.createElement("p");
705
- return g.className = "wgt:text-sm wgt:text-[#525866] wgt:leading-relaxed", g.textContent = i("invoiceCheckout_description"), n.appendChild(g), t.appendChild(n), { container: t };
676
+ return g.className = "wgt:text-sm wgt:text-[#525866] wgt:leading-relaxed", g.textContent = t("invoiceCheckout_description"), e.appendChild(g), r.appendChild(e), { container: r };
706
677
  }
707
- function ye({ theme: r, onClose: e } = {}) {
708
- const t = document.createElement("div");
709
- t.className = "wgt:min-h-screen wgt:flex wgt:bg-[#F3F4F6] wgt:p-4", r && t.setAttribute("data-theme", r);
710
- const n = document.createElement("div");
711
- 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";
678
+ function we({ theme: i, onClose: n } = {}) {
679
+ const r = document.createElement("div");
680
+ r.className = "wgt:min-h-screen wgt:flex wgt:bg-[#F3F4F6] wgt:p-4", i && r.setAttribute("data-theme", i);
681
+ const e = document.createElement("div");
682
+ e.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";
683
+ const l = document.createElement("div");
684
+ l.className = "wgt:flex wgt:justify-center wgt:mb-2";
712
685
  const d = document.createElement("div");
713
- d.className = "wgt:flex wgt:justify-center wgt:mb-2";
714
- const c = document.createElement("div");
715
- c.innerHTML = `
686
+ d.innerHTML = `
716
687
  <svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
717
688
  <path fill-rule="evenodd" clip-rule="evenodd" d="M54.1342 21.7247L55.1467 20.5742C56.1143 19.4756 55.9467 17.7277 54.7361 16.6283C53.5262 15.5258 51.7494 15.5022 50.7825 16.6009L49.7715 17.7521L54.1342 21.7247Z" fill="#525866"/>
718
689
  <path fill-rule="evenodd" clip-rule="evenodd" d="M36.6582 10.4023H40.9028V14.1966H36.6582V10.4023Z" fill="#99A0AE"/>
@@ -730,156 +701,143 @@ function ye({ theme: r, onClose: e } = {}) {
730
701
  <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"/>
731
702
  </svg>
732
703
 
733
- `, d.appendChild(c), n.appendChild(d);
734
- const s = document.createElement("h2");
735
- s.className = "wgt:text-base wgt:font-semibold wgt:text-[#0E121B] wgt:mb-2", s.textContent = i("invoiceExpired_title"), n.appendChild(s);
704
+ `, l.appendChild(d), e.appendChild(l);
705
+ const a = document.createElement("h2");
706
+ a.className = "wgt:text-base wgt:font-semibold wgt:text-[#0E121B] wgt:mb-2", a.textContent = t("invoiceExpired_title"), e.appendChild(a);
736
707
  const g = document.createElement("p");
737
- 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);
738
- const l = document.createElement("p");
739
- return l.className = "wgt:text-sm wgt:text-[#99A0AE] wgt:italic wgt:leading-relaxed wgt:px-4", l.textContent = i("invoiceExpired_note"), n.appendChild(l), t.appendChild(n), { container: t };
708
+ g.className = "wgt:text-sm wgt:text-[#525866] wgt:leading-relaxed wgt:px-2 wgt:mb-3", g.textContent = t("invoiceExpired_description"), e.appendChild(g);
709
+ const m = document.createElement("p");
710
+ return m.className = "wgt:text-sm wgt:text-[#99A0AE] wgt:italic wgt:leading-relaxed wgt:px-4", m.textContent = t("invoiceExpired_note"), e.appendChild(m), r.appendChild(e), { container: r };
740
711
  }
741
- function ne(r) {
742
- return String(r || "").trim().toLowerCase();
712
+ function _(i) {
713
+ return String(i || "").trim().toLowerCase();
743
714
  }
744
- function ie(r) {
745
- return String(r || "").trim().toLowerCase() === "1invoice";
715
+ function $(i) {
716
+ return String(i || "").trim().toLowerCase() === "1invoice";
746
717
  }
747
- function re(r, e) {
748
- return W(this, null, function* () {
749
- return ie(r) ? ce(e) : ge(e);
750
- });
718
+ async function ee(i, n) {
719
+ return $(i) ? re(n) : ie(n);
751
720
  }
752
- function Ee(r, e, t) {
753
- return W(this, null, function* () {
754
- return ie(r) ? ue(e, t) : pe(e, t);
755
- });
721
+ async function fe(i, n, r) {
722
+ return $(i) ? ae(n, r) : oe(n, r);
756
723
  }
757
- function Pe({ uuid: r, orderInfo: e, theme: t }) {
758
- const n = document.createElement("div");
759
- n.className = "wgt:w-full wgt:min-h-screen wgt:flex wgt:flex-col wgt:bg-[#F3F4F6]";
760
- let d = !1;
761
- const c = document.createElement("div");
762
- c.className = "wgt:w-full", n.appendChild(c);
763
- const s = xe({
764
- theme: t,
724
+ function Ee({ uuid: i, orderInfo: n, theme: r }) {
725
+ const e = document.createElement("div");
726
+ e.className = "wgt:w-full wgt:min-h-screen wgt:flex wgt:flex-col wgt:bg-[#F3F4F6]";
727
+ let l = !1;
728
+ const d = document.createElement("div");
729
+ d.className = "wgt:w-full", e.appendChild(d);
730
+ const a = ue({
731
+ theme: r,
765
732
  year: 2025
766
733
  });
767
- s.container.classList.add("wgt:mt-1"), n.appendChild(s.container);
768
- function g(o) {
769
- d || (c.innerHTML = "", o && c.appendChild(o));
734
+ a.container.classList.add("wgt:mt-1"), e.appendChild(a.container);
735
+ function g(s) {
736
+ l || (d.innerHTML = "", s && d.appendChild(s));
770
737
  }
771
- function l(o) {
772
- o && console.log("[DEBUG] renderFailedPage:", o);
773
- const a = we({
774
- theme: t,
775
- onClose: u
738
+ function m(s) {
739
+ s && console.log("[DEBUG] renderFailedPage:", s);
740
+ const o = se({
741
+ theme: r,
742
+ onClose: c
776
743
  });
777
- g(a.container);
744
+ g(o.container);
778
745
  }
779
- function f() {
780
- const o = ye({
781
- theme: t
746
+ function E() {
747
+ const s = we({
748
+ theme: r
782
749
  });
783
- g(o.container);
750
+ g(s.container);
784
751
  }
785
- function C(o) {
786
- const a = be({
787
- theme: t
752
+ function C(s) {
753
+ const o = pe({
754
+ theme: r
788
755
  });
789
- g(a.container);
756
+ g(o.container);
790
757
  }
791
- function M(o) {
792
- const a = ve({
793
- orderInfo: o || {},
794
- theme: t,
795
- onSubmit: (V) => W(null, [V], function* ({ type: m, data: h }) {
796
- const A = b();
797
- if (!A)
798
- return l({ reason: "MISSING_UUID_ON_SUBMIT" }), { ok: !1 };
799
- const w = Le(m, h);
800
- return yield Ee(t, A, w), { ok: !0, finalData: yield Me(A, t, {
758
+ function N(s) {
759
+ const o = me({
760
+ orderInfo: s || {},
761
+ theme: r,
762
+ onSubmit: async ({ type: w, data: f }) => {
763
+ const y = x();
764
+ if (!y)
765
+ return m({ reason: "MISSING_UUID_ON_SUBMIT" }), { ok: !1 };
766
+ const P = he(w, f);
767
+ return await fe(r, y, P), { ok: !0, finalData: await xe(y, r, {
801
768
  maxTries: 20,
802
769
  intervalMs: 1500
803
770
  }) };
804
- }),
805
- onBack: u
771
+ },
772
+ onBack: c
806
773
  });
807
- g(a.container);
774
+ g(o.container);
808
775
  }
809
- function b() {
810
- var m;
811
- const o = new URLSearchParams(window.location.search || "");
812
- return String((m = o.get("uuid")) != null ? m : "").trim() || String(r || "").trim() || String((e == null ? void 0 : e.uuid) || "").trim();
776
+ function x() {
777
+ const s = new URLSearchParams(window.location.search || "");
778
+ return String(s.get("uuid") ?? "").trim() || String(i || "").trim() || String(n?.uuid || "").trim();
813
779
  }
814
- function u() {
815
- return W(this, null, function* () {
816
- yield p();
817
- });
780
+ async function c() {
781
+ await u();
818
782
  }
819
- function p() {
820
- return W(this, null, function* () {
821
- try {
822
- const o = b();
823
- if (!o)
824
- return l({ reason: "EMPTY_UUID_NO_API_CALL" });
825
- const a = yield re(t, o), m = String((a == null ? void 0 : a.message) || "").trim();
826
- if (m)
827
- return l({ reason: "API_MESSAGE", apiMsg: m, res: a });
828
- const h = ne(a == null ? void 0 : a.status);
829
- return h === "expired" ? f() : h === "invoiced" ? C(a) : h === "pending" || h === "waiting" ? M(a || e || {}) : h === "" && a && Object.keys(a).length > 0 ? M(a) : l({ reason: "UNKNOWN_STATUS", status: h, res: a });
830
- } catch (o) {
831
- return console.log("[DEBUG] loadAndRender error:", o), l({ reason: "EXCEPTION", error: (o == null ? void 0 : o.message) || o });
832
- }
833
- });
783
+ async function u() {
784
+ try {
785
+ const s = x();
786
+ if (!s)
787
+ return m({ reason: "EMPTY_UUID_NO_API_CALL" });
788
+ const o = await ee(r, s), w = String(o?.message || "").trim();
789
+ if (w)
790
+ return m({ reason: "API_MESSAGE", apiMsg: w, res: o });
791
+ const f = _(o?.status);
792
+ return f === "expired" ? E() : f === "invoiced" ? C(o) : f === "pending" || f === "waiting" ? N(o || n || {}) : f === "" && o && Object.keys(o).length > 0 ? N(o) : m({ reason: "UNKNOWN_STATUS", status: f, res: o });
793
+ } catch (s) {
794
+ return console.log("[DEBUG] loadAndRender error:", s), m({ reason: "EXCEPTION", error: s?.message || s });
795
+ }
834
796
  }
835
- function k() {
836
- return W(this, null, function* () {
837
- l({ reason: "INIT_DEFAULT_RENDER" });
838
- try {
839
- yield p();
840
- } catch (o) {
841
- return l({
842
- reason: "INIT_EXCEPTION",
843
- error: (o == null ? void 0 : o.message) || o
844
- });
845
- }
846
- });
797
+ async function T() {
798
+ m({ reason: "INIT_DEFAULT_RENDER" });
799
+ try {
800
+ await u();
801
+ } catch (s) {
802
+ return m({
803
+ reason: "INIT_EXCEPTION",
804
+ error: s?.message || s
805
+ });
806
+ }
847
807
  }
848
- function P() {
849
- d = !0, n.innerHTML = "";
808
+ function k() {
809
+ l = !0, e.innerHTML = "";
850
810
  }
851
- return { container: n, init: k, destroy: P };
811
+ return { container: e, init: T, destroy: k };
852
812
  }
853
- function Ne(r) {
854
- return String(r || "").trim().toLowerCase() === "business" ? "enterprise" : "individual";
813
+ function Ce(i) {
814
+ return String(i || "").trim().toLowerCase() === "business" ? "enterprise" : "individual";
855
815
  }
856
- function Le(r, e) {
857
- const t = Ne(r), n = {
858
- invoiceType: t,
859
- buyerName: (e == null ? void 0 : e.representativeName) || "",
860
- address: (e == null ? void 0 : e.buyerAddress) || "",
861
- email: (e == null ? void 0 : e.email) || ""
816
+ function he(i, n) {
817
+ const r = Ce(i), e = {
818
+ invoiceType: r,
819
+ buyerName: n?.representativeName || "",
820
+ address: n?.buyerAddress || "",
821
+ email: n?.email || ""
862
822
  };
863
- return t === "enterprise" && (n.taxCode = e != null && e.noTaxCode ? "" : (e == null ? void 0 : e.taxCode) || "", n.businessName = (e == null ? void 0 : e.businessName) || ""), n;
823
+ return r === "enterprise" && (e.taxCode = n?.noTaxCode ? "" : n?.taxCode || "", e.businessName = n?.businessName || ""), e;
864
824
  }
865
- function Me(d, c) {
866
- return W(this, arguments, function* (r, e, { maxTries: t = 20, intervalMs: n = 1500 } = {}) {
867
- for (let g = 0; g < t; g++) {
868
- yield He(n);
869
- const l = yield re(e, r), f = ne(l == null ? void 0 : l.status);
870
- if (f === "invoiced" || f === "failed") return l;
871
- if (f === "expired") {
872
- const C = new Error("Invoice request expired while polling");
873
- throw C.code = "EXPIRED", C.data = l, C;
874
- }
825
+ async function xe(i, n, { maxTries: r = 20, intervalMs: e = 1500 } = {}) {
826
+ for (let d = 0; d < r; d++) {
827
+ await ve(e);
828
+ const a = await ee(n, i), g = _(a?.status);
829
+ if (g === "invoiced" || g === "failed") return a;
830
+ if (g === "expired") {
831
+ const m = new Error("Invoice request expired while polling");
832
+ throw m.code = "EXPIRED", m.data = a, m;
875
833
  }
876
- const s = new Error("Polling timeout: status not invoiced");
877
- throw s.code = "POLL_TIMEOUT", s;
878
- });
834
+ }
835
+ const l = new Error("Polling timeout: status not invoiced");
836
+ throw l.code = "POLL_TIMEOUT", l;
879
837
  }
880
- function He(r) {
881
- return new Promise((e) => setTimeout(e, r));
838
+ function ve(i) {
839
+ return new Promise((n) => setTimeout(n, i));
882
840
  }
883
841
  export {
884
- Pe as createInvoiceRequestFlow
842
+ Ee as createInvoiceRequestFlow
885
843
  };