@sri-xml-viewer/vue 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { defineComponent as V, toRefs as En, ref as Ee, onMounted as On, watch as xn, unref as D, openBlock as h, createElementBlock as v, createCommentVNode as $, computed as P, createElementVNode as a, toDisplayString as l, Fragment as S, createTextVNode as B, createVNode as q, renderList as I, normalizeClass as Oe, watchEffect as $n, createBlock as _e } from "vue";
2
- import { getDataAccessKey as Tt, getTotals as wn, getInfoFactura as An, getInfoAdicional as xe, getPagos as Sn, TYPE_IDENTITY as Tn, getDetailsFc as Ht, getInfoTributaria as Rn, nameCodeRetention as Dn, getFullInvoiceDataFromXml as In } from "@sri-xml-viewer/core";
1
+ import { defineComponent as V, computed as k, ref as Ee, onMounted as En, watch as xn, openBlock as h, createElementBlock as v, createCommentVNode as $, createElementVNode as a, toDisplayString as l, Fragment as S, createTextVNode as B, unref as I, createVNode as q, renderList as D, normalizeClass as xe, watchEffect as On, createBlock as _e } from "vue";
2
+ import { getDataAccessKey as Tt, getTotals as $n, getInfoFactura as wn, getInfoAdicional as Oe, getPagos as An, TYPE_IDENTITY as Sn, getDetailsFc as Ht, getInfoTributaria as Tn, nameCodeRetention as Rn, getFullInvoiceDataFromXml as Dn } from "@sri-xml-viewer/core";
3
3
  export * from "@sri-xml-viewer/core";
4
- function kn(t) {
4
+ function In(t) {
5
5
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
6
6
  }
7
7
  var Je = {}, $e = {}, N = {};
@@ -12,15 +12,15 @@ function Pn(t, e) {
12
12
  if (!(t instanceof e))
13
13
  throw new TypeError("Cannot call a class as a function");
14
14
  }
15
- var Nn = function t(e, n) {
15
+ var kn = function t(e, n) {
16
16
  Pn(this, t), this.data = e, this.text = n.text || e, this.options = n;
17
17
  };
18
- N.default = Nn;
18
+ N.default = kn;
19
19
  Object.defineProperty($e, "__esModule", {
20
20
  value: !0
21
21
  });
22
22
  $e.CODE39 = void 0;
23
- var Cn = /* @__PURE__ */ function() {
23
+ var Nn = /* @__PURE__ */ function() {
24
24
  function t(e, n) {
25
25
  for (var r = 0; r < n.length; r++) {
26
26
  var o = n[r];
@@ -30,30 +30,30 @@ var Cn = /* @__PURE__ */ function() {
30
30
  return function(e, n, r) {
31
31
  return n && t(e.prototype, n), r && t(e, r), e;
32
32
  };
33
- }(), Mn = N, jn = Bn(Mn);
34
- function Bn(t) {
33
+ }(), Cn = N, Mn = jn(Cn);
34
+ function jn(t) {
35
35
  return t && t.__esModule ? t : { default: t };
36
36
  }
37
- function Ln(t, e) {
37
+ function Bn(t, e) {
38
38
  if (!(t instanceof e))
39
39
  throw new TypeError("Cannot call a class as a function");
40
40
  }
41
- function zn(t, e) {
41
+ function Ln(t, e) {
42
42
  if (!t)
43
43
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
44
44
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
45
45
  }
46
- function Un(t, e) {
46
+ function zn(t, e) {
47
47
  if (typeof e != "function" && e !== null)
48
48
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
49
49
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
50
50
  }
51
- var Gn = function(t) {
52
- Un(e, t);
51
+ var Un = function(t) {
52
+ zn(e, t);
53
53
  function e(n, r) {
54
- return Ln(this, e), n = n.toUpperCase(), r.mod43 && (n += Hn(Xn(n))), zn(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
54
+ return Bn(this, e), n = n.toUpperCase(), r.mod43 && (n += Vn(Hn(n))), Ln(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
55
55
  }
56
- return Cn(e, [{
56
+ return Nn(e, [{
57
57
  key: "encode",
58
58
  value: function() {
59
59
  for (var r = ze("*"), o = 0; o < this.data.length; o++)
@@ -69,25 +69,25 @@ var Gn = function(t) {
69
69
  return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/) !== -1;
70
70
  }
71
71
  }]), e;
72
- }(jn.default), Xt = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "-", ".", " ", "$", "/", "+", "%", "*"], Fn = [20957, 29783, 23639, 30485, 20951, 29813, 23669, 20855, 29789, 23645, 29975, 23831, 30533, 22295, 30149, 24005, 21623, 29981, 23837, 22301, 30023, 23879, 30545, 22343, 30161, 24017, 21959, 30065, 23921, 22385, 29015, 18263, 29141, 17879, 29045, 18293, 17783, 29021, 18269, 17477, 17489, 17681, 20753, 35770];
72
+ }(Mn.default), Xt = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "-", ".", " ", "$", "/", "+", "%", "*"], Gn = [20957, 29783, 23639, 30485, 20951, 29813, 23669, 20855, 29789, 23645, 29975, 23831, 30533, 22295, 30149, 24005, 21623, 29981, 23837, 22301, 30023, 23879, 30545, 22343, 30161, 24017, 21959, 30065, 23921, 22385, 29015, 18263, 29141, 17879, 29045, 18293, 17783, 29021, 18269, 17477, 17489, 17681, 20753, 35770];
73
73
  function ze(t) {
74
- return Vn(qt(t));
74
+ return Fn(qt(t));
75
75
  }
76
- function Vn(t) {
77
- return Fn[t].toString(2);
76
+ function Fn(t) {
77
+ return Gn[t].toString(2);
78
78
  }
79
- function Hn(t) {
79
+ function Vn(t) {
80
80
  return Xt[t];
81
81
  }
82
82
  function qt(t) {
83
83
  return Xt.indexOf(t);
84
84
  }
85
- function Xn(t) {
85
+ function Hn(t) {
86
86
  for (var e = 0, n = 0; n < t.length; n++)
87
87
  e += qt(t[n]);
88
88
  return e = e % 43, e;
89
89
  }
90
- $e.CODE39 = Gn;
90
+ $e.CODE39 = Un;
91
91
  var U = {}, Ze = {}, ne = {}, T = {};
92
92
  Object.defineProperty(T, "__esModule", {
93
93
  value: !0
@@ -98,11 +98,11 @@ function Ue(t, e, n) {
98
98
  }
99
99
  var Yt = T.SET_A = 0, Jt = T.SET_B = 1, Zt = T.SET_C = 2;
100
100
  T.SHIFT = 98;
101
- var qn = T.START_A = 103, Yn = T.START_B = 104, Jn = T.START_C = 105;
101
+ var Xn = T.START_A = 103, qn = T.START_B = 104, Yn = T.START_C = 105;
102
102
  T.MODULO = 103;
103
103
  T.STOP = 106;
104
104
  T.FNC1 = 207;
105
- T.SET_BY_CODE = (ie = {}, Ue(ie, qn, Yt), Ue(ie, Yn, Jt), Ue(ie, Jn, Zt), ie);
105
+ T.SET_BY_CODE = (ie = {}, Ue(ie, Xn, Yt), Ue(ie, qn, Jt), Ue(ie, Yn, Zt), ie);
106
106
  T.SWAP = {
107
107
  101: Yt,
108
108
  100: Jt,
@@ -118,7 +118,7 @@ T.BARS = [11011001100, 11001101100, 11001100110, 10010011e3, 10010001100, 100010
118
118
  Object.defineProperty(ne, "__esModule", {
119
119
  value: !0
120
120
  });
121
- var Zn = /* @__PURE__ */ function() {
121
+ var Jn = /* @__PURE__ */ function() {
122
122
  function t(e, n) {
123
123
  for (var r = 0; r < n.length; r++) {
124
124
  var o = n[r];
@@ -128,34 +128,34 @@ var Zn = /* @__PURE__ */ function() {
128
128
  return function(e, n, r) {
129
129
  return n && t(e.prototype, n), r && t(e, r), e;
130
130
  };
131
- }(), Wn = N, Qn = Kn(Wn), M = T;
132
- function Kn(t) {
131
+ }(), Zn = N, Wn = Qn(Zn), M = T;
132
+ function Qn(t) {
133
133
  return t && t.__esModule ? t : { default: t };
134
134
  }
135
- function er(t, e) {
135
+ function Kn(t, e) {
136
136
  if (!(t instanceof e))
137
137
  throw new TypeError("Cannot call a class as a function");
138
138
  }
139
- function tr(t, e) {
139
+ function er(t, e) {
140
140
  if (!t)
141
141
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
142
142
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
143
143
  }
144
- function nr(t, e) {
144
+ function tr(t, e) {
145
145
  if (typeof e != "function" && e !== null)
146
146
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
147
147
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
148
148
  }
149
- var rr = function(t) {
150
- nr(e, t);
149
+ var nr = function(t) {
150
+ tr(e, t);
151
151
  function e(n, r) {
152
- er(this, e);
153
- var o = tr(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n.substring(1), r));
152
+ Kn(this, e);
153
+ var o = er(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n.substring(1), r));
154
154
  return o.bytes = n.split("").map(function(i) {
155
155
  return i.charCodeAt(0);
156
156
  }), o;
157
157
  }
158
- return Zn(e, [{
158
+ return Jn(e, [{
159
159
  key: "valid",
160
160
  value: function() {
161
161
  return /^[\x00-\x7F\xC8-\xD3]+$/.test(this.data);
@@ -168,14 +168,14 @@ var rr = function(t) {
168
168
  if (i === void 0)
169
169
  throw new RangeError("The encoding does not start with a start character.");
170
170
  this.shouldEncodeAsEan128() === !0 && r.unshift(M.FNC1);
171
- var d = e.next(r, 1, i);
171
+ var f = e.next(r, 1, i);
172
172
  return {
173
173
  text: this.text === this.data ? this.text.replace(/[^\x20-\x7E]/g, "") : this.text,
174
174
  data: (
175
175
  // Add the start bits
176
176
  e.getBar(o) + // Add the encoded bits
177
- d.result + // Add the checksum
178
- e.getBar((d.checksum + o) % M.MODULO) + // Add the end bits
177
+ f.result + // Add the checksum
178
+ e.getBar((f.checksum + o) % M.MODULO) + // Add the end bits
179
179
  e.getBar(M.STOP)
180
180
  )
181
181
  };
@@ -207,22 +207,22 @@ var rr = function(t) {
207
207
  value: function(r, o, i) {
208
208
  if (!r.length)
209
209
  return { result: "", checksum: 0 };
210
- var d = void 0, u = void 0;
210
+ var f = void 0, u = void 0;
211
211
  if (r[0] >= 200) {
212
212
  u = r.shift() - 105;
213
- var b = M.SWAP[u];
214
- b !== void 0 ? d = e.next(r, o + 1, b) : ((i === M.SET_A || i === M.SET_B) && u === M.SHIFT && (r[0] = i === M.SET_A ? r[0] > 95 ? r[0] - 96 : r[0] : r[0] < 32 ? r[0] + 96 : r[0]), d = e.next(r, o + 1, i));
213
+ var m = M.SWAP[u];
214
+ m !== void 0 ? f = e.next(r, o + 1, m) : ((i === M.SET_A || i === M.SET_B) && u === M.SHIFT && (r[0] = i === M.SET_A ? r[0] > 95 ? r[0] - 96 : r[0] : r[0] < 32 ? r[0] + 96 : r[0]), f = e.next(r, o + 1, i));
215
215
  } else
216
- u = e.correctIndex(r, i), d = e.next(r, o + 1, i);
217
- var f = e.getBar(u), s = u * o;
216
+ u = e.correctIndex(r, i), f = e.next(r, o + 1, i);
217
+ var c = e.getBar(u), s = u * o;
218
218
  return {
219
- result: f + d.result,
220
- checksum: s + d.checksum
219
+ result: c + f.result,
220
+ checksum: s + f.checksum
221
221
  };
222
222
  }
223
223
  }]), e;
224
- }(Qn.default);
225
- ne.default = rr;
224
+ }(Wn.default);
225
+ ne.default = nr;
226
226
  var We = {};
227
227
  Object.defineProperty(We, "__esModule", {
228
228
  value: !0
@@ -268,11 +268,11 @@ We.default = function(t) {
268
268
  Object.defineProperty(Ze, "__esModule", {
269
269
  value: !0
270
270
  });
271
- var or = ne, ar = tn(or), ir = We, ur = tn(ir);
271
+ var rr = ne, or = tn(rr), ar = We, ir = tn(ar);
272
272
  function tn(t) {
273
273
  return t && t.__esModule ? t : { default: t };
274
274
  }
275
- function lr(t, e) {
275
+ function ur(t, e) {
276
276
  if (!(t instanceof e))
277
277
  throw new TypeError("Cannot call a class as a function");
278
278
  }
@@ -281,28 +281,28 @@ function Ge(t, e) {
281
281
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
282
282
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
283
283
  }
284
- function cr(t, e) {
284
+ function lr(t, e) {
285
285
  if (typeof e != "function" && e !== null)
286
286
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
287
287
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
288
288
  }
289
- var fr = function(t) {
290
- cr(e, t);
289
+ var dr = function(t) {
290
+ lr(e, t);
291
291
  function e(n, r) {
292
- if (lr(this, e), /^[\x00-\x7F\xC8-\xD3]+$/.test(n))
293
- var o = Ge(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, (0, ur.default)(n), r));
292
+ if (ur(this, e), /^[\x00-\x7F\xC8-\xD3]+$/.test(n))
293
+ var o = Ge(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, (0, ir.default)(n), r));
294
294
  else
295
295
  var o = Ge(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
296
296
  return Ge(o);
297
297
  }
298
298
  return e;
299
- }(ar.default);
300
- Ze.default = fr;
299
+ }(or.default);
300
+ Ze.default = dr;
301
301
  var Ke = {};
302
302
  Object.defineProperty(Ke, "__esModule", {
303
303
  value: !0
304
304
  });
305
- var dr = /* @__PURE__ */ function() {
305
+ var cr = /* @__PURE__ */ function() {
306
306
  function t(e, n) {
307
307
  for (var r = 0; r < n.length; r++) {
308
308
  var o = n[r];
@@ -312,42 +312,42 @@ var dr = /* @__PURE__ */ function() {
312
312
  return function(e, n, r) {
313
313
  return n && t(e.prototype, n), r && t(e, r), e;
314
314
  };
315
- }(), sr = ne, hr = vr(sr), Rt = T;
316
- function vr(t) {
315
+ }(), fr = ne, sr = hr(fr), Rt = T;
316
+ function hr(t) {
317
317
  return t && t.__esModule ? t : { default: t };
318
318
  }
319
- function _r(t, e) {
319
+ function vr(t, e) {
320
320
  if (!(t instanceof e))
321
321
  throw new TypeError("Cannot call a class as a function");
322
322
  }
323
- function pr(t, e) {
323
+ function _r(t, e) {
324
324
  if (!t)
325
325
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
326
326
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
327
327
  }
328
- function gr(t, e) {
328
+ function pr(t, e) {
329
329
  if (typeof e != "function" && e !== null)
330
330
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
331
331
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
332
332
  }
333
- var yr = function(t) {
334
- gr(e, t);
333
+ var br = function(t) {
334
+ pr(e, t);
335
335
  function e(n, r) {
336
- return _r(this, e), pr(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, Rt.A_START_CHAR + n, r));
336
+ return vr(this, e), _r(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, Rt.A_START_CHAR + n, r));
337
337
  }
338
- return dr(e, [{
338
+ return cr(e, [{
339
339
  key: "valid",
340
340
  value: function() {
341
341
  return new RegExp("^" + Rt.A_CHARS + "+$").test(this.data);
342
342
  }
343
343
  }]), e;
344
- }(hr.default);
345
- Ke.default = yr;
344
+ }(sr.default);
345
+ Ke.default = br;
346
346
  var et = {};
347
347
  Object.defineProperty(et, "__esModule", {
348
348
  value: !0
349
349
  });
350
- var br = /* @__PURE__ */ function() {
350
+ var gr = /* @__PURE__ */ function() {
351
351
  function t(e, n) {
352
352
  for (var r = 0; r < n.length; r++) {
353
353
  var o = n[r];
@@ -357,42 +357,42 @@ var br = /* @__PURE__ */ function() {
357
357
  return function(e, n, r) {
358
358
  return n && t(e.prototype, n), r && t(e, r), e;
359
359
  };
360
- }(), mr = ne, Er = Or(mr), Dt = T;
361
- function Or(t) {
360
+ }(), mr = ne, yr = Er(mr), Dt = T;
361
+ function Er(t) {
362
362
  return t && t.__esModule ? t : { default: t };
363
363
  }
364
364
  function xr(t, e) {
365
365
  if (!(t instanceof e))
366
366
  throw new TypeError("Cannot call a class as a function");
367
367
  }
368
- function $r(t, e) {
368
+ function Or(t, e) {
369
369
  if (!t)
370
370
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
371
371
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
372
372
  }
373
- function wr(t, e) {
373
+ function $r(t, e) {
374
374
  if (typeof e != "function" && e !== null)
375
375
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
376
376
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
377
377
  }
378
- var Ar = function(t) {
379
- wr(e, t);
378
+ var wr = function(t) {
379
+ $r(e, t);
380
380
  function e(n, r) {
381
- return xr(this, e), $r(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, Dt.B_START_CHAR + n, r));
381
+ return xr(this, e), Or(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, Dt.B_START_CHAR + n, r));
382
382
  }
383
- return br(e, [{
383
+ return gr(e, [{
384
384
  key: "valid",
385
385
  value: function() {
386
386
  return new RegExp("^" + Dt.B_CHARS + "+$").test(this.data);
387
387
  }
388
388
  }]), e;
389
- }(Er.default);
390
- et.default = Ar;
389
+ }(yr.default);
390
+ et.default = wr;
391
391
  var tt = {};
392
392
  Object.defineProperty(tt, "__esModule", {
393
393
  value: !0
394
394
  });
395
- var Sr = /* @__PURE__ */ function() {
395
+ var Ar = /* @__PURE__ */ function() {
396
396
  function t(e, n) {
397
397
  for (var r = 0; r < n.length; r++) {
398
398
  var o = n[r];
@@ -402,15 +402,15 @@ var Sr = /* @__PURE__ */ function() {
402
402
  return function(e, n, r) {
403
403
  return n && t(e.prototype, n), r && t(e, r), e;
404
404
  };
405
- }(), Tr = ne, Rr = Dr(Tr), It = T;
406
- function Dr(t) {
405
+ }(), Sr = ne, Tr = Rr(Sr), It = T;
406
+ function Rr(t) {
407
407
  return t && t.__esModule ? t : { default: t };
408
408
  }
409
- function Ir(t, e) {
409
+ function Dr(t, e) {
410
410
  if (!(t instanceof e))
411
411
  throw new TypeError("Cannot call a class as a function");
412
412
  }
413
- function kr(t, e) {
413
+ function Ir(t, e) {
414
414
  if (!t)
415
415
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
416
416
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
@@ -420,31 +420,31 @@ function Pr(t, e) {
420
420
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
421
421
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
422
422
  }
423
- var Nr = function(t) {
423
+ var kr = function(t) {
424
424
  Pr(e, t);
425
425
  function e(n, r) {
426
- return Ir(this, e), kr(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, It.C_START_CHAR + n, r));
426
+ return Dr(this, e), Ir(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, It.C_START_CHAR + n, r));
427
427
  }
428
- return Sr(e, [{
428
+ return Ar(e, [{
429
429
  key: "valid",
430
430
  value: function() {
431
431
  return new RegExp("^" + It.C_CHARS + "+$").test(this.data);
432
432
  }
433
433
  }]), e;
434
- }(Rr.default);
435
- tt.default = Nr;
434
+ }(Tr.default);
435
+ tt.default = kr;
436
436
  Object.defineProperty(U, "__esModule", {
437
437
  value: !0
438
438
  });
439
439
  U.CODE128C = U.CODE128B = U.CODE128A = U.CODE128 = void 0;
440
- var Cr = Ze, Mr = we(Cr), jr = Ke, Br = we(jr), Lr = et, zr = we(Lr), Ur = tt, Gr = we(Ur);
440
+ var Nr = Ze, Cr = we(Nr), Mr = Ke, jr = we(Mr), Br = et, Lr = we(Br), zr = tt, Ur = we(zr);
441
441
  function we(t) {
442
442
  return t && t.__esModule ? t : { default: t };
443
443
  }
444
- U.CODE128 = Mr.default;
445
- U.CODE128A = Br.default;
446
- U.CODE128B = zr.default;
447
- U.CODE128C = Gr.default;
444
+ U.CODE128 = Cr.default;
445
+ U.CODE128A = jr.default;
446
+ U.CODE128B = Lr.default;
447
+ U.CODE128C = Ur.default;
448
448
  var C = {}, nt = {}, z = {};
449
449
  Object.defineProperty(z, "__esModule", {
450
450
  value: !0
@@ -525,25 +525,25 @@ var Ae = {}, Y = {};
525
525
  Object.defineProperty(Y, "__esModule", {
526
526
  value: !0
527
527
  });
528
- var Fr = z, Vr = function(e, n, r) {
529
- var o = e.split("").map(function(d, u) {
530
- return Fr.BINARIES[n[u]];
531
- }).map(function(d, u) {
532
- return d ? d[e[u]] : "";
528
+ var Gr = z, Fr = function(e, n, r) {
529
+ var o = e.split("").map(function(f, u) {
530
+ return Gr.BINARIES[n[u]];
531
+ }).map(function(f, u) {
532
+ return f ? f[e[u]] : "";
533
533
  });
534
534
  if (r) {
535
535
  var i = e.length - 1;
536
- o = o.map(function(d, u) {
537
- return u < i ? d + r : d;
536
+ o = o.map(function(f, u) {
537
+ return u < i ? f + r : f;
538
538
  });
539
539
  }
540
540
  return o.join("");
541
541
  };
542
- Y.default = Vr;
542
+ Y.default = Fr;
543
543
  Object.defineProperty(Ae, "__esModule", {
544
544
  value: !0
545
545
  });
546
- var Hr = /* @__PURE__ */ function() {
546
+ var Vr = /* @__PURE__ */ function() {
547
547
  function t(e, n) {
548
548
  for (var r = 0; r < n.length; r++) {
549
549
  var o = n[r];
@@ -553,32 +553,32 @@ var Hr = /* @__PURE__ */ function() {
553
553
  return function(e, n, r) {
554
554
  return n && t(e.prototype, n), r && t(e, r), e;
555
555
  };
556
- }(), W = z, Xr = Y, kt = nn(Xr), qr = N, Yr = nn(qr);
556
+ }(), W = z, Hr = Y, Pt = nn(Hr), Xr = N, qr = nn(Xr);
557
557
  function nn(t) {
558
558
  return t && t.__esModule ? t : { default: t };
559
559
  }
560
- function Jr(t, e) {
560
+ function Yr(t, e) {
561
561
  if (!(t instanceof e))
562
562
  throw new TypeError("Cannot call a class as a function");
563
563
  }
564
- function Zr(t, e) {
564
+ function Jr(t, e) {
565
565
  if (!t)
566
566
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
567
567
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
568
568
  }
569
- function Wr(t, e) {
569
+ function Zr(t, e) {
570
570
  if (typeof e != "function" && e !== null)
571
571
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
572
572
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
573
573
  }
574
- var Qr = function(t) {
575
- Wr(e, t);
574
+ var Wr = function(t) {
575
+ Zr(e, t);
576
576
  function e(n, r) {
577
- Jr(this, e);
578
- var o = Zr(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
577
+ Yr(this, e);
578
+ var o = Jr(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
579
579
  return o.fontSize = !r.flat && r.fontSize > r.width * 10 ? r.width * 10 : r.fontSize, o.guardHeight = r.height + o.fontSize / 2 + r.textMargin, o;
580
580
  }
581
- return Hr(e, [{
581
+ return Vr(e, [{
582
582
  key: "encode",
583
583
  value: function() {
584
584
  return this.options.flat ? this.encodeFlat() : this.encodeGuarded();
@@ -591,7 +591,7 @@ var Qr = function(t) {
591
591
  }, {
592
592
  key: "leftEncode",
593
593
  value: function(r, o) {
594
- return (0, kt.default)(r, o);
594
+ return (0, Pt.default)(r, o);
595
595
  }
596
596
  }, {
597
597
  key: "rightText",
@@ -601,7 +601,7 @@ var Qr = function(t) {
601
601
  }, {
602
602
  key: "rightEncode",
603
603
  value: function(r, o) {
604
- return (0, kt.default)(r, o);
604
+ return (0, Pt.default)(r, o);
605
605
  }
606
606
  }, {
607
607
  key: "encodeGuarded",
@@ -619,12 +619,12 @@ var Qr = function(t) {
619
619
  };
620
620
  }
621
621
  }]), e;
622
- }(Yr.default);
623
- Ae.default = Qr;
622
+ }(qr.default);
623
+ Ae.default = Wr;
624
624
  Object.defineProperty(nt, "__esModule", {
625
625
  value: !0
626
626
  });
627
- var Kr = /* @__PURE__ */ function() {
627
+ var Qr = /* @__PURE__ */ function() {
628
628
  function t(e, n) {
629
629
  for (var r = 0; r < n.length; r++) {
630
630
  var o = n[r];
@@ -643,45 +643,45 @@ var Kr = /* @__PURE__ */ function() {
643
643
  } else {
644
644
  if ("value" in o)
645
645
  return o.value;
646
- var d = o.get;
647
- return d === void 0 ? void 0 : d.call(r);
646
+ var f = o.get;
647
+ return f === void 0 ? void 0 : f.call(r);
648
648
  }
649
- }, eo = z, to = Ae, no = ro(to);
650
- function ro(t) {
649
+ }, Kr = z, eo = Ae, to = no(eo);
650
+ function no(t) {
651
651
  return t && t.__esModule ? t : { default: t };
652
652
  }
653
- function oo(t, e) {
653
+ function ro(t, e) {
654
654
  if (!(t instanceof e))
655
655
  throw new TypeError("Cannot call a class as a function");
656
656
  }
657
- function ao(t, e) {
657
+ function oo(t, e) {
658
658
  if (!t)
659
659
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
660
660
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
661
661
  }
662
- function io(t, e) {
662
+ function ao(t, e) {
663
663
  if (typeof e != "function" && e !== null)
664
664
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
665
665
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
666
666
  }
667
- var Pt = function(e) {
667
+ var kt = function(e) {
668
668
  var n = e.substr(0, 12).split("").map(function(r) {
669
669
  return +r;
670
670
  }).reduce(function(r, o, i) {
671
671
  return i % 2 ? r + o * 3 : r + o;
672
672
  }, 0);
673
673
  return (10 - n % 10) % 10;
674
- }, uo = function(t) {
675
- io(e, t);
674
+ }, io = function(t) {
675
+ ao(e, t);
676
676
  function e(n, r) {
677
- oo(this, e), n.search(/^[0-9]{12}$/) !== -1 && (n += Pt(n));
678
- var o = ao(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
677
+ ro(this, e), n.search(/^[0-9]{12}$/) !== -1 && (n += kt(n));
678
+ var o = oo(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
679
679
  return o.lastChar = r.lastChar, o;
680
680
  }
681
- return Kr(e, [{
681
+ return Qr(e, [{
682
682
  key: "valid",
683
683
  value: function() {
684
- return this.data.search(/^[0-9]{13}$/) !== -1 && +this.data[12] === Pt(this.data);
684
+ return this.data.search(/^[0-9]{13}$/) !== -1 && +this.data[12] === kt(this.data);
685
685
  }
686
686
  }, {
687
687
  key: "leftText",
@@ -691,7 +691,7 @@ var Pt = function(e) {
691
691
  }, {
692
692
  key: "leftEncode",
693
693
  value: function() {
694
- var r = this.data.substr(1, 6), o = eo.EAN13_STRUCTURE[this.data[0]];
694
+ var r = this.data.substr(1, 6), o = Kr.EAN13_STRUCTURE[this.data[0]];
695
695
  return ue(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "leftEncode", this).call(this, r, o);
696
696
  }
697
697
  }, {
@@ -723,13 +723,13 @@ var Pt = function(e) {
723
723
  }))), r;
724
724
  }
725
725
  }]), e;
726
- }(no.default);
727
- nt.default = uo;
726
+ }(to.default);
727
+ nt.default = io;
728
728
  var rt = {};
729
729
  Object.defineProperty(rt, "__esModule", {
730
730
  value: !0
731
731
  });
732
- var lo = /* @__PURE__ */ function() {
732
+ var uo = /* @__PURE__ */ function() {
733
733
  function t(e, n) {
734
734
  for (var r = 0; r < n.length; r++) {
735
735
  var o = n[r];
@@ -748,23 +748,23 @@ var lo = /* @__PURE__ */ function() {
748
748
  } else {
749
749
  if ("value" in o)
750
750
  return o.value;
751
- var d = o.get;
752
- return d === void 0 ? void 0 : d.call(r);
751
+ var f = o.get;
752
+ return f === void 0 ? void 0 : f.call(r);
753
753
  }
754
- }, co = Ae, fo = so(co);
755
- function so(t) {
754
+ }, lo = Ae, co = fo(lo);
755
+ function fo(t) {
756
756
  return t && t.__esModule ? t : { default: t };
757
757
  }
758
- function ho(t, e) {
758
+ function so(t, e) {
759
759
  if (!(t instanceof e))
760
760
  throw new TypeError("Cannot call a class as a function");
761
761
  }
762
- function vo(t, e) {
762
+ function ho(t, e) {
763
763
  if (!t)
764
764
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
765
765
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
766
766
  }
767
- function _o(t, e) {
767
+ function vo(t, e) {
768
768
  if (typeof e != "function" && e !== null)
769
769
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
770
770
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
@@ -776,12 +776,12 @@ var Nt = function(e) {
776
776
  return i % 2 ? r + o : r + o * 3;
777
777
  }, 0);
778
778
  return (10 - n % 10) % 10;
779
- }, po = function(t) {
780
- _o(e, t);
779
+ }, _o = function(t) {
780
+ vo(e, t);
781
781
  function e(n, r) {
782
- return ho(this, e), n.search(/^[0-9]{7}$/) !== -1 && (n += Nt(n)), vo(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
782
+ return so(this, e), n.search(/^[0-9]{7}$/) !== -1 && (n += Nt(n)), ho(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
783
783
  }
784
- return lo(e, [{
784
+ return uo(e, [{
785
785
  key: "valid",
786
786
  value: function() {
787
787
  return this.data.search(/^[0-9]{8}$/) !== -1 && +this.data[7] === Nt(this.data);
@@ -809,13 +809,13 @@ var Nt = function(e) {
809
809
  return pe(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "rightEncode", this).call(this, r, "RRRR");
810
810
  }
811
811
  }]), e;
812
- }(fo.default);
813
- rt.default = po;
812
+ }(co.default);
813
+ rt.default = _o;
814
814
  var ot = {};
815
815
  Object.defineProperty(ot, "__esModule", {
816
816
  value: !0
817
817
  });
818
- var go = /* @__PURE__ */ function() {
818
+ var po = /* @__PURE__ */ function() {
819
819
  function t(e, n) {
820
820
  for (var r = 0; r < n.length; r++) {
821
821
  var o = n[r];
@@ -825,7 +825,7 @@ var go = /* @__PURE__ */ function() {
825
825
  return function(e, n, r) {
826
826
  return n && t(e.prototype, n), r && t(e, r), e;
827
827
  };
828
- }(), yo = z, bo = Y, mo = rn(bo), Eo = N, Oo = rn(Eo);
828
+ }(), bo = z, go = Y, mo = rn(go), yo = N, Eo = rn(yo);
829
829
  function rn(t) {
830
830
  return t && t.__esModule ? t : { default: t };
831
831
  }
@@ -833,29 +833,29 @@ function xo(t, e) {
833
833
  if (!(t instanceof e))
834
834
  throw new TypeError("Cannot call a class as a function");
835
835
  }
836
- function $o(t, e) {
836
+ function Oo(t, e) {
837
837
  if (!t)
838
838
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
839
839
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
840
840
  }
841
- function wo(t, e) {
841
+ function $o(t, e) {
842
842
  if (typeof e != "function" && e !== null)
843
843
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
844
844
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
845
845
  }
846
- var Ao = function(e) {
846
+ var wo = function(e) {
847
847
  var n = e.split("").map(function(r) {
848
848
  return +r;
849
849
  }).reduce(function(r, o, i) {
850
850
  return i % 2 ? r + o * 9 : r + o * 3;
851
851
  }, 0);
852
852
  return n % 10;
853
- }, So = function(t) {
854
- wo(e, t);
853
+ }, Ao = function(t) {
854
+ $o(e, t);
855
855
  function e(n, r) {
856
- return xo(this, e), $o(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
856
+ return xo(this, e), Oo(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
857
857
  }
858
- return go(e, [{
858
+ return po(e, [{
859
859
  key: "valid",
860
860
  value: function() {
861
861
  return this.data.search(/^[0-9]{5}$/) !== -1;
@@ -863,20 +863,20 @@ var Ao = function(e) {
863
863
  }, {
864
864
  key: "encode",
865
865
  value: function() {
866
- var r = yo.EAN5_STRUCTURE[Ao(this.data)];
866
+ var r = bo.EAN5_STRUCTURE[wo(this.data)];
867
867
  return {
868
868
  data: "1011" + (0, mo.default)(this.data, r, "01"),
869
869
  text: this.text
870
870
  };
871
871
  }
872
872
  }]), e;
873
- }(Oo.default);
874
- ot.default = So;
873
+ }(Eo.default);
874
+ ot.default = Ao;
875
875
  var at = {};
876
876
  Object.defineProperty(at, "__esModule", {
877
877
  value: !0
878
878
  });
879
- var To = /* @__PURE__ */ function() {
879
+ var So = /* @__PURE__ */ function() {
880
880
  function t(e, n) {
881
881
  for (var r = 0; r < n.length; r++) {
882
882
  var o = n[r];
@@ -886,30 +886,30 @@ var To = /* @__PURE__ */ function() {
886
886
  return function(e, n, r) {
887
887
  return n && t(e.prototype, n), r && t(e, r), e;
888
888
  };
889
- }(), Ro = z, Do = Y, Io = on(Do), ko = N, Po = on(ko);
889
+ }(), To = z, Ro = Y, Do = on(Ro), Io = N, Po = on(Io);
890
890
  function on(t) {
891
891
  return t && t.__esModule ? t : { default: t };
892
892
  }
893
- function No(t, e) {
893
+ function ko(t, e) {
894
894
  if (!(t instanceof e))
895
895
  throw new TypeError("Cannot call a class as a function");
896
896
  }
897
- function Co(t, e) {
897
+ function No(t, e) {
898
898
  if (!t)
899
899
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
900
900
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
901
901
  }
902
- function Mo(t, e) {
902
+ function Co(t, e) {
903
903
  if (typeof e != "function" && e !== null)
904
904
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
905
905
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
906
906
  }
907
- var jo = function(t) {
908
- Mo(e, t);
907
+ var Mo = function(t) {
908
+ Co(e, t);
909
909
  function e(n, r) {
910
- return No(this, e), Co(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
910
+ return ko(this, e), No(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
911
911
  }
912
- return To(e, [{
912
+ return So(e, [{
913
913
  key: "valid",
914
914
  value: function() {
915
915
  return this.data.search(/^[0-9]{2}$/) !== -1;
@@ -917,21 +917,21 @@ var jo = function(t) {
917
917
  }, {
918
918
  key: "encode",
919
919
  value: function() {
920
- var r = Ro.EAN2_STRUCTURE[parseInt(this.data) % 4];
920
+ var r = To.EAN2_STRUCTURE[parseInt(this.data) % 4];
921
921
  return {
922
922
  // Start bits + Encode the two digits with 01 in between
923
- data: "1011" + (0, Io.default)(this.data, r, "01"),
923
+ data: "1011" + (0, Do.default)(this.data, r, "01"),
924
924
  text: this.text
925
925
  };
926
926
  }
927
927
  }]), e;
928
928
  }(Po.default);
929
- at.default = jo;
930
- var fe = {};
931
- Object.defineProperty(fe, "__esModule", {
929
+ at.default = Mo;
930
+ var ce = {};
931
+ Object.defineProperty(ce, "__esModule", {
932
932
  value: !0
933
933
  });
934
- var Bo = /* @__PURE__ */ function() {
934
+ var jo = /* @__PURE__ */ function() {
935
935
  function t(e, n) {
936
936
  for (var r = 0; r < n.length; r++) {
937
937
  var o = n[r];
@@ -942,33 +942,33 @@ var Bo = /* @__PURE__ */ function() {
942
942
  return n && t(e.prototype, n), r && t(e, r), e;
943
943
  };
944
944
  }();
945
- fe.checksum = Xe;
946
- var Lo = Y, Q = an(Lo), zo = N, Uo = an(zo);
945
+ ce.checksum = Xe;
946
+ var Bo = Y, Q = an(Bo), Lo = N, zo = an(Lo);
947
947
  function an(t) {
948
948
  return t && t.__esModule ? t : { default: t };
949
949
  }
950
- function Go(t, e) {
950
+ function Uo(t, e) {
951
951
  if (!(t instanceof e))
952
952
  throw new TypeError("Cannot call a class as a function");
953
953
  }
954
- function Fo(t, e) {
954
+ function Go(t, e) {
955
955
  if (!t)
956
956
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
957
957
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
958
958
  }
959
- function Vo(t, e) {
959
+ function Fo(t, e) {
960
960
  if (typeof e != "function" && e !== null)
961
961
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
962
962
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
963
963
  }
964
- var Ho = function(t) {
965
- Vo(e, t);
964
+ var Vo = function(t) {
965
+ Fo(e, t);
966
966
  function e(n, r) {
967
- Go(this, e), n.search(/^[0-9]{11}$/) !== -1 && (n += Xe(n));
968
- var o = Fo(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
967
+ Uo(this, e), n.search(/^[0-9]{11}$/) !== -1 && (n += Xe(n));
968
+ var o = Go(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
969
969
  return o.displayValue = r.displayValue, r.fontSize > r.width * 10 ? o.fontSize = r.width * 10 : o.fontSize = r.fontSize, o.guardHeight = r.height + o.fontSize / 2 + r.textMargin, o;
970
970
  }
971
- return Bo(e, [{
971
+ return jo(e, [{
972
972
  key: "valid",
973
973
  value: function() {
974
974
  return this.data.search(/^[0-9]{12}$/) !== -1 && this.data[11] == Xe(this.data);
@@ -1019,7 +1019,7 @@ var Ho = function(t) {
1019
1019
  }), r;
1020
1020
  }
1021
1021
  }]), e;
1022
- }(Uo.default);
1022
+ }(zo.default);
1023
1023
  function Xe(t) {
1024
1024
  var e = 0, n;
1025
1025
  for (n = 1; n < 11; n += 2)
@@ -1028,12 +1028,12 @@ function Xe(t) {
1028
1028
  e += parseInt(t[n]) * 3;
1029
1029
  return (10 - e % 10) % 10;
1030
1030
  }
1031
- fe.default = Ho;
1031
+ ce.default = Vo;
1032
1032
  var it = {};
1033
1033
  Object.defineProperty(it, "__esModule", {
1034
1034
  value: !0
1035
1035
  });
1036
- var Xo = /* @__PURE__ */ function() {
1036
+ var Ho = /* @__PURE__ */ function() {
1037
1037
  function t(e, n) {
1038
1038
  for (var r = 0; r < n.length; r++) {
1039
1039
  var o = n[r];
@@ -1043,11 +1043,11 @@ var Xo = /* @__PURE__ */ function() {
1043
1043
  return function(e, n, r) {
1044
1044
  return n && t(e.prototype, n), r && t(e, r), e;
1045
1045
  };
1046
- }(), qo = Y, Yo = un(qo), Jo = N, Zo = un(Jo), Wo = fe;
1046
+ }(), Xo = Y, qo = un(Xo), Yo = N, Jo = un(Yo), Zo = ce;
1047
1047
  function un(t) {
1048
1048
  return t && t.__esModule ? t : { default: t };
1049
1049
  }
1050
- function Qo(t, e) {
1050
+ function Wo(t, e) {
1051
1051
  if (!(t instanceof e))
1052
1052
  throw new TypeError("Cannot call a class as a function");
1053
1053
  }
@@ -1056,15 +1056,15 @@ function Fe(t, e) {
1056
1056
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1057
1057
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
1058
1058
  }
1059
- function Ko(t, e) {
1059
+ function Qo(t, e) {
1060
1060
  if (typeof e != "function" && e !== null)
1061
1061
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1062
1062
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1063
1063
  }
1064
- var ea = ["XX00000XXX", "XX10000XXX", "XX20000XXX", "XXX00000XX", "XXXX00000X", "XXXXX00005", "XXXXX00006", "XXXXX00007", "XXXXX00008", "XXXXX00009"], ta = [["EEEOOO", "OOOEEE"], ["EEOEOO", "OOEOEE"], ["EEOOEO", "OOEEOE"], ["EEOOOE", "OOEEEO"], ["EOEEOO", "OEOOEE"], ["EOOEEO", "OEEOOE"], ["EOOOEE", "OEEEOO"], ["EOEOEO", "OEOEOE"], ["EOEOOE", "OEOEEO"], ["EOOEOE", "OEEOEO"]], na = function(t) {
1065
- Ko(e, t);
1064
+ var Ko = ["XX00000XXX", "XX10000XXX", "XX20000XXX", "XXX00000XX", "XXXX00000X", "XXXXX00005", "XXXXX00006", "XXXXX00007", "XXXXX00008", "XXXXX00009"], ea = [["EEEOOO", "OOOEEE"], ["EEOEOO", "OOEOEE"], ["EEOOEO", "OOEEOE"], ["EEOOOE", "OOEEEO"], ["EOEEOO", "OEOOEE"], ["EOOEEO", "OEEOOE"], ["EOOOEE", "OEEEOO"], ["EOEOEO", "OEOEOE"], ["EOEOOE", "OEOEEO"], ["EOOEOE", "OEEOEO"]], ta = function(t) {
1065
+ Qo(e, t);
1066
1066
  function e(n, r) {
1067
- Qo(this, e);
1067
+ Wo(this, e);
1068
1068
  var o = Fe(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
1069
1069
  if (o.isValid = !1, n.search(/^[0-9]{6}$/) !== -1)
1070
1070
  o.middleDigits = n, o.upcA = Ct(n, "0"), o.text = r.text || "" + o.upcA[0] + n + o.upcA[o.upcA.length - 1], o.isValid = !0;
@@ -1077,7 +1077,7 @@ var ea = ["XX00000XXX", "XX10000XXX", "XX20000XXX", "XXX00000XX", "XXXX00000X",
1077
1077
  return Fe(o);
1078
1078
  return o.displayValue = r.displayValue, r.fontSize > r.width * 10 ? o.fontSize = r.width * 10 : o.fontSize = r.fontSize, o.guardHeight = r.height + o.fontSize / 2 + r.textMargin, o;
1079
1079
  }
1080
- return Xo(e, [{
1080
+ return Ho(e, [{
1081
1081
  key: "valid",
1082
1082
  value: function() {
1083
1083
  return this.isValid;
@@ -1123,44 +1123,44 @@ var ea = ["XX00000XXX", "XX10000XXX", "XX20000XXX", "XXX00000XX", "XXXX00000X",
1123
1123
  }, {
1124
1124
  key: "encodeMiddleDigits",
1125
1125
  value: function() {
1126
- var r = this.upcA[0], o = this.upcA[this.upcA.length - 1], i = ta[parseInt(o)][parseInt(r)];
1127
- return (0, Yo.default)(this.middleDigits, i);
1126
+ var r = this.upcA[0], o = this.upcA[this.upcA.length - 1], i = ea[parseInt(o)][parseInt(r)];
1127
+ return (0, qo.default)(this.middleDigits, i);
1128
1128
  }
1129
1129
  }]), e;
1130
- }(Zo.default);
1130
+ }(Jo.default);
1131
1131
  function Ct(t, e) {
1132
- for (var n = parseInt(t[t.length - 1]), r = ea[n], o = "", i = 0, d = 0; d < r.length; d++) {
1133
- var u = r[d];
1132
+ for (var n = parseInt(t[t.length - 1]), r = Ko[n], o = "", i = 0, f = 0; f < r.length; f++) {
1133
+ var u = r[f];
1134
1134
  u === "X" ? o += t[i++] : o += u;
1135
1135
  }
1136
- return o = "" + e + o, "" + o + (0, Wo.checksum)(o);
1136
+ return o = "" + e + o, "" + o + (0, Zo.checksum)(o);
1137
1137
  }
1138
- it.default = na;
1138
+ it.default = ta;
1139
1139
  Object.defineProperty(C, "__esModule", {
1140
1140
  value: !0
1141
1141
  });
1142
1142
  C.UPCE = C.UPC = C.EAN2 = C.EAN5 = C.EAN8 = C.EAN13 = void 0;
1143
- var ra = nt, oa = re(ra), aa = rt, ia = re(aa), ua = ot, la = re(ua), ca = at, fa = re(ca), da = fe, sa = re(da), ha = it, va = re(ha);
1143
+ var na = nt, ra = re(na), oa = rt, aa = re(oa), ia = ot, ua = re(ia), la = at, da = re(la), ca = ce, fa = re(ca), sa = it, ha = re(sa);
1144
1144
  function re(t) {
1145
1145
  return t && t.__esModule ? t : { default: t };
1146
1146
  }
1147
- C.EAN13 = oa.default;
1148
- C.EAN8 = ia.default;
1149
- C.EAN5 = la.default;
1150
- C.EAN2 = fa.default;
1151
- C.UPC = sa.default;
1152
- C.UPCE = va.default;
1153
- var ee = {}, Se = {}, de = {};
1154
- Object.defineProperty(de, "__esModule", {
1147
+ C.EAN13 = ra.default;
1148
+ C.EAN8 = aa.default;
1149
+ C.EAN5 = ua.default;
1150
+ C.EAN2 = da.default;
1151
+ C.UPC = fa.default;
1152
+ C.UPCE = ha.default;
1153
+ var ee = {}, Se = {}, fe = {};
1154
+ Object.defineProperty(fe, "__esModule", {
1155
1155
  value: !0
1156
1156
  });
1157
- de.START_BIN = "1010";
1158
- de.END_BIN = "11101";
1159
- de.BINARIES = ["00110", "10001", "01001", "11000", "00101", "10100", "01100", "00011", "10010", "01010"];
1157
+ fe.START_BIN = "1010";
1158
+ fe.END_BIN = "11101";
1159
+ fe.BINARIES = ["00110", "10001", "01001", "11000", "00101", "10100", "01100", "00011", "10010", "01010"];
1160
1160
  Object.defineProperty(Se, "__esModule", {
1161
1161
  value: !0
1162
1162
  });
1163
- var _a = /* @__PURE__ */ function() {
1163
+ var va = /* @__PURE__ */ function() {
1164
1164
  function t(e, n) {
1165
1165
  for (var r = 0; r < n.length; r++) {
1166
1166
  var o = n[r];
@@ -1170,11 +1170,11 @@ var _a = /* @__PURE__ */ function() {
1170
1170
  return function(e, n, r) {
1171
1171
  return n && t(e.prototype, n), r && t(e, r), e;
1172
1172
  };
1173
- }(), ge = de, pa = N, ga = ya(pa);
1174
- function ya(t) {
1173
+ }(), be = fe, _a = N, pa = ba(_a);
1174
+ function ba(t) {
1175
1175
  return t && t.__esModule ? t : { default: t };
1176
1176
  }
1177
- function ba(t, e) {
1177
+ function ga(t, e) {
1178
1178
  if (!(t instanceof e))
1179
1179
  throw new TypeError("Cannot call a class as a function");
1180
1180
  }
@@ -1183,17 +1183,17 @@ function ma(t, e) {
1183
1183
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1184
1184
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
1185
1185
  }
1186
- function Ea(t, e) {
1186
+ function ya(t, e) {
1187
1187
  if (typeof e != "function" && e !== null)
1188
1188
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1189
1189
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1190
1190
  }
1191
- var Oa = function(t) {
1192
- Ea(e, t);
1191
+ var Ea = function(t) {
1192
+ ya(e, t);
1193
1193
  function e() {
1194
- return ba(this, e), ma(this, (e.__proto__ || Object.getPrototypeOf(e)).apply(this, arguments));
1194
+ return ga(this, e), ma(this, (e.__proto__ || Object.getPrototypeOf(e)).apply(this, arguments));
1195
1195
  }
1196
- return _a(e, [{
1196
+ return va(e, [{
1197
1197
  key: "valid",
1198
1198
  value: function() {
1199
1199
  return this.data.search(/^([0-9]{2})+$/) !== -1;
@@ -1205,7 +1205,7 @@ var Oa = function(t) {
1205
1205
  return r.encodePair(i);
1206
1206
  }).join("");
1207
1207
  return {
1208
- data: ge.START_BIN + o + ge.END_BIN,
1208
+ data: be.START_BIN + o + be.END_BIN,
1209
1209
  text: this.text
1210
1210
  };
1211
1211
  }
@@ -1213,14 +1213,14 @@ var Oa = function(t) {
1213
1213
  }, {
1214
1214
  key: "encodePair",
1215
1215
  value: function(r) {
1216
- var o = ge.BINARIES[r[1]];
1217
- return ge.BINARIES[r[0]].split("").map(function(i, d) {
1218
- return (i === "1" ? "111" : "1") + (o[d] === "1" ? "000" : "0");
1216
+ var o = be.BINARIES[r[1]];
1217
+ return be.BINARIES[r[0]].split("").map(function(i, f) {
1218
+ return (i === "1" ? "111" : "1") + (o[f] === "1" ? "000" : "0");
1219
1219
  }).join("");
1220
1220
  }
1221
1221
  }]), e;
1222
- }(ga.default);
1223
- Se.default = Oa;
1222
+ }(pa.default);
1223
+ Se.default = Ea;
1224
1224
  var ut = {};
1225
1225
  Object.defineProperty(ut, "__esModule", {
1226
1226
  value: !0
@@ -1235,20 +1235,20 @@ var xa = /* @__PURE__ */ function() {
1235
1235
  return function(e, n, r) {
1236
1236
  return n && t(e.prototype, n), r && t(e, r), e;
1237
1237
  };
1238
- }(), $a = Se, wa = Aa($a);
1239
- function Aa(t) {
1238
+ }(), Oa = Se, $a = wa(Oa);
1239
+ function wa(t) {
1240
1240
  return t && t.__esModule ? t : { default: t };
1241
1241
  }
1242
- function Sa(t, e) {
1242
+ function Aa(t, e) {
1243
1243
  if (!(t instanceof e))
1244
1244
  throw new TypeError("Cannot call a class as a function");
1245
1245
  }
1246
- function Ta(t, e) {
1246
+ function Sa(t, e) {
1247
1247
  if (!t)
1248
1248
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1249
1249
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
1250
1250
  }
1251
- function Ra(t, e) {
1251
+ function Ta(t, e) {
1252
1252
  if (typeof e != "function" && e !== null)
1253
1253
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1254
1254
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
@@ -1260,10 +1260,10 @@ var Mt = function(e) {
1260
1260
  return r + o * (3 - i % 2 * 2);
1261
1261
  }, 0);
1262
1262
  return Math.ceil(n / 10) * 10 - n;
1263
- }, Da = function(t) {
1264
- Ra(e, t);
1263
+ }, Ra = function(t) {
1264
+ Ta(e, t);
1265
1265
  function e(n, r) {
1266
- return Sa(this, e), n.search(/^[0-9]{13}$/) !== -1 && (n += Mt(n)), Ta(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
1266
+ return Aa(this, e), n.search(/^[0-9]{13}$/) !== -1 && (n += Mt(n)), Sa(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
1267
1267
  }
1268
1268
  return xa(e, [{
1269
1269
  key: "valid",
@@ -1271,23 +1271,23 @@ var Mt = function(e) {
1271
1271
  return this.data.search(/^[0-9]{14}$/) !== -1 && +this.data[13] === Mt(this.data);
1272
1272
  }
1273
1273
  }]), e;
1274
- }(wa.default);
1275
- ut.default = Da;
1274
+ }($a.default);
1275
+ ut.default = Ra;
1276
1276
  Object.defineProperty(ee, "__esModule", {
1277
1277
  value: !0
1278
1278
  });
1279
1279
  ee.ITF14 = ee.ITF = void 0;
1280
- var Ia = Se, ka = ln(Ia), Pa = ut, Na = ln(Pa);
1280
+ var Da = Se, Ia = ln(Da), Pa = ut, ka = ln(Pa);
1281
1281
  function ln(t) {
1282
1282
  return t && t.__esModule ? t : { default: t };
1283
1283
  }
1284
- ee.ITF = ka.default;
1285
- ee.ITF14 = Na.default;
1284
+ ee.ITF = Ia.default;
1285
+ ee.ITF14 = ka.default;
1286
1286
  var L = {}, J = {};
1287
1287
  Object.defineProperty(J, "__esModule", {
1288
1288
  value: !0
1289
1289
  });
1290
- var Ca = /* @__PURE__ */ function() {
1290
+ var Na = /* @__PURE__ */ function() {
1291
1291
  function t(e, n) {
1292
1292
  for (var r = 0; r < n.length; r++) {
1293
1293
  var o = n[r];
@@ -1297,37 +1297,37 @@ var Ca = /* @__PURE__ */ function() {
1297
1297
  return function(e, n, r) {
1298
1298
  return n && t(e.prototype, n), r && t(e, r), e;
1299
1299
  };
1300
- }(), Ma = N, ja = Ba(Ma);
1301
- function Ba(t) {
1300
+ }(), Ca = N, Ma = ja(Ca);
1301
+ function ja(t) {
1302
1302
  return t && t.__esModule ? t : { default: t };
1303
1303
  }
1304
- function La(t, e) {
1304
+ function Ba(t, e) {
1305
1305
  if (!(t instanceof e))
1306
1306
  throw new TypeError("Cannot call a class as a function");
1307
1307
  }
1308
- function za(t, e) {
1308
+ function La(t, e) {
1309
1309
  if (!t)
1310
1310
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1311
1311
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
1312
1312
  }
1313
- function Ua(t, e) {
1313
+ function za(t, e) {
1314
1314
  if (typeof e != "function" && e !== null)
1315
1315
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1316
1316
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1317
1317
  }
1318
- var Ga = function(t) {
1319
- Ua(e, t);
1318
+ var Ua = function(t) {
1319
+ za(e, t);
1320
1320
  function e(n, r) {
1321
- return La(this, e), za(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
1321
+ return Ba(this, e), La(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
1322
1322
  }
1323
- return Ca(e, [{
1323
+ return Na(e, [{
1324
1324
  key: "encode",
1325
1325
  value: function() {
1326
1326
  for (var r = "110", o = 0; o < this.data.length; o++) {
1327
- var i = parseInt(this.data[o]), d = i.toString(2);
1328
- d = Fa(d, 4 - d.length);
1329
- for (var u = 0; u < d.length; u++)
1330
- r += d[u] == "0" ? "100" : "110";
1327
+ var i = parseInt(this.data[o]), f = i.toString(2);
1328
+ f = Ga(f, 4 - f.length);
1329
+ for (var u = 0; u < f.length; u++)
1330
+ r += f[u] == "0" ? "100" : "110";
1331
1331
  }
1332
1332
  return r += "1001", {
1333
1333
  data: r,
@@ -1340,27 +1340,27 @@ var Ga = function(t) {
1340
1340
  return this.data.search(/^[0-9]+$/) !== -1;
1341
1341
  }
1342
1342
  }]), e;
1343
- }(ja.default);
1344
- function Fa(t, e) {
1343
+ }(Ma.default);
1344
+ function Ga(t, e) {
1345
1345
  for (var n = 0; n < e; n++)
1346
1346
  t = "0" + t;
1347
1347
  return t;
1348
1348
  }
1349
- J.default = Ga;
1349
+ J.default = Ua;
1350
1350
  var lt = {}, Z = {};
1351
1351
  Object.defineProperty(Z, "__esModule", {
1352
1352
  value: !0
1353
1353
  });
1354
- Z.mod10 = Va;
1355
- Z.mod11 = Ha;
1356
- function Va(t) {
1354
+ Z.mod10 = Fa;
1355
+ Z.mod11 = Va;
1356
+ function Fa(t) {
1357
1357
  for (var e = 0, n = 0; n < t.length; n++) {
1358
1358
  var r = parseInt(t[n]);
1359
1359
  (n + t.length) % 2 === 0 ? e += r : e += r * 2 % 10 + Math.floor(r * 2 / 10);
1360
1360
  }
1361
1361
  return (10 - e % 10) % 10;
1362
1362
  }
1363
- function Ha(t) {
1363
+ function Va(t) {
1364
1364
  for (var e = 0, n = [2, 3, 4, 5, 6, 7], r = 0; r < t.length; r++) {
1365
1365
  var o = parseInt(t[t.length - 1 - r]);
1366
1366
  e += n[r % n.length] * o;
@@ -1370,105 +1370,105 @@ function Ha(t) {
1370
1370
  Object.defineProperty(lt, "__esModule", {
1371
1371
  value: !0
1372
1372
  });
1373
- var Xa = J, qa = Ja(Xa), Ya = Z;
1374
- function Ja(t) {
1373
+ var Ha = J, Xa = Ya(Ha), qa = Z;
1374
+ function Ya(t) {
1375
1375
  return t && t.__esModule ? t : { default: t };
1376
1376
  }
1377
- function Za(t, e) {
1377
+ function Ja(t, e) {
1378
1378
  if (!(t instanceof e))
1379
1379
  throw new TypeError("Cannot call a class as a function");
1380
1380
  }
1381
- function Wa(t, e) {
1381
+ function Za(t, e) {
1382
1382
  if (!t)
1383
1383
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1384
1384
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
1385
1385
  }
1386
- function Qa(t, e) {
1386
+ function Wa(t, e) {
1387
1387
  if (typeof e != "function" && e !== null)
1388
1388
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1389
1389
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1390
1390
  }
1391
- var Ka = function(t) {
1392
- Qa(e, t);
1391
+ var Qa = function(t) {
1392
+ Wa(e, t);
1393
1393
  function e(n, r) {
1394
- return Za(this, e), Wa(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n + (0, Ya.mod10)(n), r));
1394
+ return Ja(this, e), Za(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n + (0, qa.mod10)(n), r));
1395
1395
  }
1396
1396
  return e;
1397
- }(qa.default);
1398
- lt.default = Ka;
1399
- var ct = {};
1400
- Object.defineProperty(ct, "__esModule", {
1397
+ }(Xa.default);
1398
+ lt.default = Qa;
1399
+ var dt = {};
1400
+ Object.defineProperty(dt, "__esModule", {
1401
1401
  value: !0
1402
1402
  });
1403
- var ei = J, ti = ri(ei), ni = Z;
1404
- function ri(t) {
1403
+ var Ka = J, ei = ni(Ka), ti = Z;
1404
+ function ni(t) {
1405
1405
  return t && t.__esModule ? t : { default: t };
1406
1406
  }
1407
- function oi(t, e) {
1407
+ function ri(t, e) {
1408
1408
  if (!(t instanceof e))
1409
1409
  throw new TypeError("Cannot call a class as a function");
1410
1410
  }
1411
- function ai(t, e) {
1411
+ function oi(t, e) {
1412
1412
  if (!t)
1413
1413
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1414
1414
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
1415
1415
  }
1416
- function ii(t, e) {
1416
+ function ai(t, e) {
1417
1417
  if (typeof e != "function" && e !== null)
1418
1418
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1419
1419
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1420
1420
  }
1421
- var ui = function(t) {
1422
- ii(e, t);
1421
+ var ii = function(t) {
1422
+ ai(e, t);
1423
1423
  function e(n, r) {
1424
- return oi(this, e), ai(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n + (0, ni.mod11)(n), r));
1424
+ return ri(this, e), oi(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n + (0, ti.mod11)(n), r));
1425
1425
  }
1426
1426
  return e;
1427
- }(ti.default);
1428
- ct.default = ui;
1429
- var ft = {};
1430
- Object.defineProperty(ft, "__esModule", {
1427
+ }(ei.default);
1428
+ dt.default = ii;
1429
+ var ct = {};
1430
+ Object.defineProperty(ct, "__esModule", {
1431
1431
  value: !0
1432
1432
  });
1433
- var li = J, ci = fi(li), jt = Z;
1434
- function fi(t) {
1433
+ var ui = J, li = di(ui), jt = Z;
1434
+ function di(t) {
1435
1435
  return t && t.__esModule ? t : { default: t };
1436
1436
  }
1437
- function di(t, e) {
1437
+ function ci(t, e) {
1438
1438
  if (!(t instanceof e))
1439
1439
  throw new TypeError("Cannot call a class as a function");
1440
1440
  }
1441
- function si(t, e) {
1441
+ function fi(t, e) {
1442
1442
  if (!t)
1443
1443
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1444
1444
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
1445
1445
  }
1446
- function hi(t, e) {
1446
+ function si(t, e) {
1447
1447
  if (typeof e != "function" && e !== null)
1448
1448
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1449
1449
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1450
1450
  }
1451
- var vi = function(t) {
1452
- hi(e, t);
1451
+ var hi = function(t) {
1452
+ si(e, t);
1453
1453
  function e(n, r) {
1454
- return di(this, e), n += (0, jt.mod10)(n), n += (0, jt.mod10)(n), si(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
1454
+ return ci(this, e), n += (0, jt.mod10)(n), n += (0, jt.mod10)(n), fi(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
1455
1455
  }
1456
1456
  return e;
1457
- }(ci.default);
1458
- ft.default = vi;
1459
- var dt = {};
1460
- Object.defineProperty(dt, "__esModule", {
1457
+ }(li.default);
1458
+ ct.default = hi;
1459
+ var ft = {};
1460
+ Object.defineProperty(ft, "__esModule", {
1461
1461
  value: !0
1462
1462
  });
1463
- var _i = J, pi = gi(_i), Bt = Z;
1464
- function gi(t) {
1463
+ var vi = J, _i = pi(vi), Bt = Z;
1464
+ function pi(t) {
1465
1465
  return t && t.__esModule ? t : { default: t };
1466
1466
  }
1467
- function yi(t, e) {
1467
+ function bi(t, e) {
1468
1468
  if (!(t instanceof e))
1469
1469
  throw new TypeError("Cannot call a class as a function");
1470
1470
  }
1471
- function bi(t, e) {
1471
+ function gi(t, e) {
1472
1472
  if (!t)
1473
1473
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1474
1474
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
@@ -1478,33 +1478,33 @@ function mi(t, e) {
1478
1478
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1479
1479
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1480
1480
  }
1481
- var Ei = function(t) {
1481
+ var yi = function(t) {
1482
1482
  mi(e, t);
1483
1483
  function e(n, r) {
1484
- return yi(this, e), n += (0, Bt.mod11)(n), n += (0, Bt.mod10)(n), bi(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
1484
+ return bi(this, e), n += (0, Bt.mod11)(n), n += (0, Bt.mod10)(n), gi(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
1485
1485
  }
1486
1486
  return e;
1487
- }(pi.default);
1488
- dt.default = Ei;
1487
+ }(_i.default);
1488
+ ft.default = yi;
1489
1489
  Object.defineProperty(L, "__esModule", {
1490
1490
  value: !0
1491
1491
  });
1492
1492
  L.MSI1110 = L.MSI1010 = L.MSI11 = L.MSI10 = L.MSI = void 0;
1493
- var Oi = J, xi = se(Oi), $i = lt, wi = se($i), Ai = ct, Si = se(Ai), Ti = ft, Ri = se(Ti), Di = dt, Ii = se(Di);
1493
+ var Ei = J, xi = se(Ei), Oi = lt, $i = se(Oi), wi = dt, Ai = se(wi), Si = ct, Ti = se(Si), Ri = ft, Di = se(Ri);
1494
1494
  function se(t) {
1495
1495
  return t && t.__esModule ? t : { default: t };
1496
1496
  }
1497
1497
  L.MSI = xi.default;
1498
- L.MSI10 = wi.default;
1499
- L.MSI11 = Si.default;
1500
- L.MSI1010 = Ri.default;
1501
- L.MSI1110 = Ii.default;
1498
+ L.MSI10 = $i.default;
1499
+ L.MSI11 = Ai.default;
1500
+ L.MSI1010 = Ti.default;
1501
+ L.MSI1110 = Di.default;
1502
1502
  var Te = {};
1503
1503
  Object.defineProperty(Te, "__esModule", {
1504
1504
  value: !0
1505
1505
  });
1506
1506
  Te.pharmacode = void 0;
1507
- var ki = /* @__PURE__ */ function() {
1507
+ var Ii = /* @__PURE__ */ function() {
1508
1508
  function t(e, n) {
1509
1509
  for (var r = 0; r < n.length; r++) {
1510
1510
  var o = n[r];
@@ -1514,32 +1514,32 @@ var ki = /* @__PURE__ */ function() {
1514
1514
  return function(e, n, r) {
1515
1515
  return n && t(e.prototype, n), r && t(e, r), e;
1516
1516
  };
1517
- }(), Pi = N, Ni = Ci(Pi);
1518
- function Ci(t) {
1517
+ }(), Pi = N, ki = Ni(Pi);
1518
+ function Ni(t) {
1519
1519
  return t && t.__esModule ? t : { default: t };
1520
1520
  }
1521
- function Mi(t, e) {
1521
+ function Ci(t, e) {
1522
1522
  if (!(t instanceof e))
1523
1523
  throw new TypeError("Cannot call a class as a function");
1524
1524
  }
1525
- function ji(t, e) {
1525
+ function Mi(t, e) {
1526
1526
  if (!t)
1527
1527
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1528
1528
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
1529
1529
  }
1530
- function Bi(t, e) {
1530
+ function ji(t, e) {
1531
1531
  if (typeof e != "function" && e !== null)
1532
1532
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1533
1533
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1534
1534
  }
1535
- var Li = function(t) {
1536
- Bi(e, t);
1535
+ var Bi = function(t) {
1536
+ ji(e, t);
1537
1537
  function e(n, r) {
1538
- Mi(this, e);
1539
- var o = ji(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
1538
+ Ci(this, e);
1539
+ var o = Mi(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
1540
1540
  return o.number = parseInt(n, 10), o;
1541
1541
  }
1542
- return ki(e, [{
1542
+ return Ii(e, [{
1543
1543
  key: "encode",
1544
1544
  value: function() {
1545
1545
  for (var r = this.number, o = ""; !isNaN(r) && r != 0; )
@@ -1555,14 +1555,14 @@ var Li = function(t) {
1555
1555
  return this.number >= 3 && this.number <= 131070;
1556
1556
  }
1557
1557
  }]), e;
1558
- }(Ni.default);
1559
- Te.pharmacode = Li;
1558
+ }(ki.default);
1559
+ Te.pharmacode = Bi;
1560
1560
  var Re = {};
1561
1561
  Object.defineProperty(Re, "__esModule", {
1562
1562
  value: !0
1563
1563
  });
1564
1564
  Re.codabar = void 0;
1565
- var zi = /* @__PURE__ */ function() {
1565
+ var Li = /* @__PURE__ */ function() {
1566
1566
  function t(e, n) {
1567
1567
  for (var r = 0; r < n.length; r++) {
1568
1568
  var o = n[r];
@@ -1572,32 +1572,32 @@ var zi = /* @__PURE__ */ function() {
1572
1572
  return function(e, n, r) {
1573
1573
  return n && t(e.prototype, n), r && t(e, r), e;
1574
1574
  };
1575
- }(), Ui = N, Gi = Fi(Ui);
1576
- function Fi(t) {
1575
+ }(), zi = N, Ui = Gi(zi);
1576
+ function Gi(t) {
1577
1577
  return t && t.__esModule ? t : { default: t };
1578
1578
  }
1579
- function Vi(t, e) {
1579
+ function Fi(t, e) {
1580
1580
  if (!(t instanceof e))
1581
1581
  throw new TypeError("Cannot call a class as a function");
1582
1582
  }
1583
- function Hi(t, e) {
1583
+ function Vi(t, e) {
1584
1584
  if (!t)
1585
1585
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1586
1586
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
1587
1587
  }
1588
- function Xi(t, e) {
1588
+ function Hi(t, e) {
1589
1589
  if (typeof e != "function" && e !== null)
1590
1590
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1591
1591
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1592
1592
  }
1593
- var qi = function(t) {
1594
- Xi(e, t);
1593
+ var Xi = function(t) {
1594
+ Hi(e, t);
1595
1595
  function e(n, r) {
1596
- Vi(this, e), n.search(/^[0-9\-\$\:\.\+\/]+$/) === 0 && (n = "A" + n + "A");
1597
- var o = Hi(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n.toUpperCase(), r));
1596
+ Fi(this, e), n.search(/^[0-9\-\$\:\.\+\/]+$/) === 0 && (n = "A" + n + "A");
1597
+ var o = Vi(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n.toUpperCase(), r));
1598
1598
  return o.text = o.options.text || o.text.replace(/[A-D]/g, ""), o;
1599
1599
  }
1600
- return zi(e, [{
1600
+ return Li(e, [{
1601
1601
  key: "valid",
1602
1602
  value: function() {
1603
1603
  return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/) !== -1;
@@ -1639,8 +1639,8 @@ var qi = function(t) {
1639
1639
  };
1640
1640
  }
1641
1641
  }]), e;
1642
- }(Gi.default);
1643
- Re.codabar = qi;
1642
+ }(Ui.default);
1643
+ Re.codabar = Xi;
1644
1644
  var te = {}, De = {}, he = {};
1645
1645
  Object.defineProperty(he, "__esModule", {
1646
1646
  value: !0
@@ -1788,7 +1788,7 @@ he.MULTI_SYMBOLS = {
1788
1788
  Object.defineProperty(De, "__esModule", {
1789
1789
  value: !0
1790
1790
  });
1791
- var Yi = /* @__PURE__ */ function() {
1791
+ var qi = /* @__PURE__ */ function() {
1792
1792
  function t(e, n) {
1793
1793
  for (var r = 0; r < n.length; r++) {
1794
1794
  var o = n[r];
@@ -1798,30 +1798,30 @@ var Yi = /* @__PURE__ */ function() {
1798
1798
  return function(e, n, r) {
1799
1799
  return n && t(e.prototype, n), r && t(e, r), e;
1800
1800
  };
1801
- }(), ye = he, Ji = N, Zi = Wi(Ji);
1802
- function Wi(t) {
1801
+ }(), ge = he, Yi = N, Ji = Zi(Yi);
1802
+ function Zi(t) {
1803
1803
  return t && t.__esModule ? t : { default: t };
1804
1804
  }
1805
- function Qi(t, e) {
1805
+ function Wi(t, e) {
1806
1806
  if (!(t instanceof e))
1807
1807
  throw new TypeError("Cannot call a class as a function");
1808
1808
  }
1809
- function Ki(t, e) {
1809
+ function Qi(t, e) {
1810
1810
  if (!t)
1811
1811
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1812
1812
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
1813
1813
  }
1814
- function eu(t, e) {
1814
+ function Ki(t, e) {
1815
1815
  if (typeof e != "function" && e !== null)
1816
1816
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1817
1817
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1818
1818
  }
1819
- var tu = function(t) {
1820
- eu(e, t);
1819
+ var eu = function(t) {
1820
+ Ki(e, t);
1821
1821
  function e(n, r) {
1822
- return Qi(this, e), Ki(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
1822
+ return Wi(this, e), Qi(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
1823
1823
  }
1824
- return Yi(e, [{
1824
+ return qi(e, [{
1825
1825
  key: "valid",
1826
1826
  value: function() {
1827
1827
  return /^[0-9A-Z\-. $/+%]+$/.test(this.data);
@@ -1830,17 +1830,17 @@ var tu = function(t) {
1830
1830
  key: "encode",
1831
1831
  value: function() {
1832
1832
  var r = this.data.split("").flatMap(function(u) {
1833
- return ye.MULTI_SYMBOLS[u] || u;
1833
+ return ge.MULTI_SYMBOLS[u] || u;
1834
1834
  }), o = r.map(function(u) {
1835
1835
  return e.getEncoding(u);
1836
- }).join(""), i = e.checksum(r, 20), d = e.checksum(r.concat(i), 15);
1836
+ }).join(""), i = e.checksum(r, 20), f = e.checksum(r.concat(i), 15);
1837
1837
  return {
1838
1838
  text: this.text,
1839
1839
  data: (
1840
1840
  // Add the start bits
1841
1841
  e.getEncoding("ÿ") + // Add the encoded bits
1842
1842
  o + // Add the checksum
1843
- e.getEncoding(i) + e.getEncoding(d) + // Add the stop bits
1843
+ e.getEncoding(i) + e.getEncoding(f) + // Add the stop bits
1844
1844
  e.getEncoding("ÿ") + // Add the termination bit
1845
1845
  "1"
1846
1846
  )
@@ -1850,38 +1850,38 @@ var tu = function(t) {
1850
1850
  }], [{
1851
1851
  key: "getEncoding",
1852
1852
  value: function(r) {
1853
- return ye.BINARIES[e.symbolValue(r)];
1853
+ return ge.BINARIES[e.symbolValue(r)];
1854
1854
  }
1855
1855
  // Get the symbol for a symbol value
1856
1856
  }, {
1857
1857
  key: "getSymbol",
1858
1858
  value: function(r) {
1859
- return ye.SYMBOLS[r];
1859
+ return ge.SYMBOLS[r];
1860
1860
  }
1861
1861
  // Get the symbol value of a symbol
1862
1862
  }, {
1863
1863
  key: "symbolValue",
1864
1864
  value: function(r) {
1865
- return ye.SYMBOLS.indexOf(r);
1865
+ return ge.SYMBOLS.indexOf(r);
1866
1866
  }
1867
1867
  // Calculate a checksum symbol
1868
1868
  }, {
1869
1869
  key: "checksum",
1870
1870
  value: function(r, o) {
1871
- var i = r.slice().reverse().reduce(function(d, u, b) {
1872
- var f = b % o + 1;
1873
- return d + e.symbolValue(u) * f;
1871
+ var i = r.slice().reverse().reduce(function(f, u, m) {
1872
+ var c = m % o + 1;
1873
+ return f + e.symbolValue(u) * c;
1874
1874
  }, 0);
1875
1875
  return e.getSymbol(i % 47);
1876
1876
  }
1877
1877
  }]), e;
1878
- }(Zi.default);
1879
- De.default = tu;
1878
+ }(Ji.default);
1879
+ De.default = eu;
1880
1880
  var st = {};
1881
1881
  Object.defineProperty(st, "__esModule", {
1882
1882
  value: !0
1883
1883
  });
1884
- var nu = /* @__PURE__ */ function() {
1884
+ var tu = /* @__PURE__ */ function() {
1885
1885
  function t(e, n) {
1886
1886
  for (var r = 0; r < n.length; r++) {
1887
1887
  var o = n[r];
@@ -1891,53 +1891,53 @@ var nu = /* @__PURE__ */ function() {
1891
1891
  return function(e, n, r) {
1892
1892
  return n && t(e.prototype, n), r && t(e, r), e;
1893
1893
  };
1894
- }(), ru = De, ou = au(ru);
1895
- function au(t) {
1894
+ }(), nu = De, ru = ou(nu);
1895
+ function ou(t) {
1896
1896
  return t && t.__esModule ? t : { default: t };
1897
1897
  }
1898
- function iu(t, e) {
1898
+ function au(t, e) {
1899
1899
  if (!(t instanceof e))
1900
1900
  throw new TypeError("Cannot call a class as a function");
1901
1901
  }
1902
- function uu(t, e) {
1902
+ function iu(t, e) {
1903
1903
  if (!t)
1904
1904
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1905
1905
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
1906
1906
  }
1907
- function lu(t, e) {
1907
+ function uu(t, e) {
1908
1908
  if (typeof e != "function" && e !== null)
1909
1909
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1910
1910
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1911
1911
  }
1912
- var cu = function(t) {
1913
- lu(e, t);
1912
+ var lu = function(t) {
1913
+ uu(e, t);
1914
1914
  function e(n, r) {
1915
- return iu(this, e), uu(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
1915
+ return au(this, e), iu(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
1916
1916
  }
1917
- return nu(e, [{
1917
+ return tu(e, [{
1918
1918
  key: "valid",
1919
1919
  value: function() {
1920
1920
  return /^[\x00-\x7f]+$/.test(this.data);
1921
1921
  }
1922
1922
  }]), e;
1923
- }(ou.default);
1924
- st.default = cu;
1923
+ }(ru.default);
1924
+ st.default = lu;
1925
1925
  Object.defineProperty(te, "__esModule", {
1926
1926
  value: !0
1927
1927
  });
1928
1928
  te.CODE93FullASCII = te.CODE93 = void 0;
1929
- var fu = De, du = cn(fu), su = st, hu = cn(su);
1930
- function cn(t) {
1929
+ var du = De, cu = dn(du), fu = st, su = dn(fu);
1930
+ function dn(t) {
1931
1931
  return t && t.__esModule ? t : { default: t };
1932
1932
  }
1933
- te.CODE93 = du.default;
1934
- te.CODE93FullASCII = hu.default;
1933
+ te.CODE93 = cu.default;
1934
+ te.CODE93FullASCII = su.default;
1935
1935
  var Ie = {};
1936
1936
  Object.defineProperty(Ie, "__esModule", {
1937
1937
  value: !0
1938
1938
  });
1939
1939
  Ie.GenericBarcode = void 0;
1940
- var vu = /* @__PURE__ */ function() {
1940
+ var hu = /* @__PURE__ */ function() {
1941
1941
  function t(e, n) {
1942
1942
  for (var r = 0; r < n.length; r++) {
1943
1943
  var o = n[r];
@@ -1947,15 +1947,15 @@ var vu = /* @__PURE__ */ function() {
1947
1947
  return function(e, n, r) {
1948
1948
  return n && t(e.prototype, n), r && t(e, r), e;
1949
1949
  };
1950
- }(), _u = N, pu = gu(_u);
1951
- function gu(t) {
1950
+ }(), vu = N, _u = pu(vu);
1951
+ function pu(t) {
1952
1952
  return t && t.__esModule ? t : { default: t };
1953
1953
  }
1954
- function yu(t, e) {
1954
+ function bu(t, e) {
1955
1955
  if (!(t instanceof e))
1956
1956
  throw new TypeError("Cannot call a class as a function");
1957
1957
  }
1958
- function bu(t, e) {
1958
+ function gu(t, e) {
1959
1959
  if (!t)
1960
1960
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1961
1961
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
@@ -1965,12 +1965,12 @@ function mu(t, e) {
1965
1965
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1966
1966
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1967
1967
  }
1968
- var Eu = function(t) {
1968
+ var yu = function(t) {
1969
1969
  mu(e, t);
1970
1970
  function e(n, r) {
1971
- return yu(this, e), bu(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
1971
+ return bu(this, e), gu(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, n, r));
1972
1972
  }
1973
- return vu(e, [{
1973
+ return hu(e, [{
1974
1974
  key: "encode",
1975
1975
  value: function() {
1976
1976
  return {
@@ -1985,18 +1985,18 @@ var Eu = function(t) {
1985
1985
  return !0;
1986
1986
  }
1987
1987
  }]), e;
1988
- }(pu.default);
1989
- Ie.GenericBarcode = Eu;
1988
+ }(_u.default);
1989
+ Ie.GenericBarcode = yu;
1990
1990
  Object.defineProperty(Je, "__esModule", {
1991
1991
  value: !0
1992
1992
  });
1993
- var Ou = $e, be = U, K = C, Lt = ee, le = L, xu = Te, $u = Re, zt = te, wu = Ie;
1993
+ var Eu = $e, me = U, K = C, Lt = ee, le = L, xu = Te, Ou = Re, zt = te, $u = Ie;
1994
1994
  Je.default = {
1995
- CODE39: Ou.CODE39,
1996
- CODE128: be.CODE128,
1997
- CODE128A: be.CODE128A,
1998
- CODE128B: be.CODE128B,
1999
- CODE128C: be.CODE128C,
1995
+ CODE39: Eu.CODE39,
1996
+ CODE128: me.CODE128,
1997
+ CODE128A: me.CODE128A,
1998
+ CODE128B: me.CODE128B,
1999
+ CODE128C: me.CODE128C,
2000
2000
  EAN13: K.EAN13,
2001
2001
  EAN8: K.EAN8,
2002
2002
  EAN5: K.EAN5,
@@ -2011,16 +2011,16 @@ Je.default = {
2011
2011
  MSI1010: le.MSI1010,
2012
2012
  MSI1110: le.MSI1110,
2013
2013
  pharmacode: xu.pharmacode,
2014
- codabar: $u.codabar,
2014
+ codabar: Ou.codabar,
2015
2015
  CODE93: zt.CODE93,
2016
2016
  CODE93FullASCII: zt.CODE93FullASCII,
2017
- GenericBarcode: wu.GenericBarcode
2017
+ GenericBarcode: $u.GenericBarcode
2018
2018
  };
2019
2019
  var oe = {};
2020
2020
  Object.defineProperty(oe, "__esModule", {
2021
2021
  value: !0
2022
2022
  });
2023
- var Au = Object.assign || function(t) {
2023
+ var wu = Object.assign || function(t) {
2024
2024
  for (var e = 1; e < arguments.length; e++) {
2025
2025
  var n = arguments[e];
2026
2026
  for (var r in n)
@@ -2029,14 +2029,14 @@ var Au = Object.assign || function(t) {
2029
2029
  return t;
2030
2030
  };
2031
2031
  oe.default = function(t, e) {
2032
- return Au({}, t, e);
2032
+ return wu({}, t, e);
2033
2033
  };
2034
2034
  var ht = {};
2035
2035
  Object.defineProperty(ht, "__esModule", {
2036
2036
  value: !0
2037
2037
  });
2038
- ht.default = Su;
2039
- function Su(t) {
2038
+ ht.default = Au;
2039
+ function Au(t) {
2040
2040
  var e = [];
2041
2041
  function n(r) {
2042
2042
  if (Array.isArray(r))
@@ -2051,26 +2051,26 @@ var vt = {};
2051
2051
  Object.defineProperty(vt, "__esModule", {
2052
2052
  value: !0
2053
2053
  });
2054
- vt.default = Tu;
2055
- function Tu(t) {
2054
+ vt.default = Su;
2055
+ function Su(t) {
2056
2056
  return t.marginTop = t.marginTop || t.margin, t.marginBottom = t.marginBottom || t.margin, t.marginRight = t.marginRight || t.margin, t.marginLeft = t.marginLeft || t.margin, t;
2057
2057
  }
2058
- var _t = {}, pt = {}, ke = {};
2059
- Object.defineProperty(ke, "__esModule", {
2058
+ var _t = {}, pt = {}, Pe = {};
2059
+ Object.defineProperty(Pe, "__esModule", {
2060
2060
  value: !0
2061
2061
  });
2062
- ke.default = Ru;
2063
- function Ru(t) {
2062
+ Pe.default = Tu;
2063
+ function Tu(t) {
2064
2064
  var e = ["width", "height", "textMargin", "fontSize", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight"];
2065
2065
  for (var n in e)
2066
2066
  e.hasOwnProperty(n) && (n = e[n], typeof t[n] == "string" && (t[n] = parseInt(t[n], 10)));
2067
2067
  return typeof t.displayValue == "string" && (t.displayValue = t.displayValue != "false"), t;
2068
2068
  }
2069
- var Pe = {};
2070
- Object.defineProperty(Pe, "__esModule", {
2069
+ var ke = {};
2070
+ Object.defineProperty(ke, "__esModule", {
2071
2071
  value: !0
2072
2072
  });
2073
- var Du = {
2073
+ var Ru = {
2074
2074
  width: 2,
2075
2075
  height: 100,
2076
2076
  format: "auto",
@@ -2092,31 +2092,31 @@ var Du = {
2092
2092
  valid: function() {
2093
2093
  }
2094
2094
  };
2095
- Pe.default = Du;
2095
+ ke.default = Ru;
2096
2096
  Object.defineProperty(pt, "__esModule", {
2097
2097
  value: !0
2098
2098
  });
2099
- var Iu = ke, ku = fn(Iu), Pu = Pe, Ut = fn(Pu);
2100
- function fn(t) {
2099
+ var Du = Pe, Iu = cn(Du), Pu = ke, Ut = cn(Pu);
2100
+ function cn(t) {
2101
2101
  return t && t.__esModule ? t : { default: t };
2102
2102
  }
2103
- function Nu(t) {
2103
+ function ku(t) {
2104
2104
  var e = {};
2105
2105
  for (var n in Ut.default)
2106
2106
  Ut.default.hasOwnProperty(n) && (t.hasAttribute("jsbarcode-" + n.toLowerCase()) && (e[n] = t.getAttribute("jsbarcode-" + n.toLowerCase())), t.hasAttribute("data-" + n.toLowerCase()) && (e[n] = t.getAttribute("data-" + n.toLowerCase())));
2107
- return e.value = t.getAttribute("jsbarcode-value") || t.getAttribute("data-value"), e = (0, ku.default)(e), e;
2107
+ return e.value = t.getAttribute("jsbarcode-value") || t.getAttribute("data-value"), e = (0, Iu.default)(e), e;
2108
2108
  }
2109
- pt.default = Nu;
2110
- var gt = {}, yt = {}, j = {};
2109
+ pt.default = ku;
2110
+ var bt = {}, gt = {}, j = {};
2111
2111
  Object.defineProperty(j, "__esModule", {
2112
2112
  value: !0
2113
2113
  });
2114
2114
  j.getTotalWidthOfEncodings = j.calculateEncodingAttributes = j.getBarcodePadding = j.getEncodingHeight = j.getMaximumHeightOfEncodings = void 0;
2115
- var Cu = oe, Mu = ju(Cu);
2116
- function ju(t) {
2115
+ var Nu = oe, Cu = Mu(Nu);
2116
+ function Mu(t) {
2117
2117
  return t && t.__esModule ? t : { default: t };
2118
2118
  }
2119
- function dn(t, e) {
2119
+ function fn(t, e) {
2120
2120
  return e.height + (e.displayValue && t.text.length > 0 ? e.fontSize + e.textMargin : 0) + e.marginTop + e.marginBottom;
2121
2121
  }
2122
2122
  function sn(t, e, n) {
@@ -2130,25 +2130,25 @@ function sn(t, e, n) {
2130
2130
  }
2131
2131
  return 0;
2132
2132
  }
2133
- function Bu(t, e, n) {
2133
+ function ju(t, e, n) {
2134
2134
  for (var r = 0; r < t.length; r++) {
2135
- var o = t[r], i = (0, Mu.default)(e, o.options), d;
2136
- i.displayValue ? d = Uu(o.text, i, n) : d = 0;
2135
+ var o = t[r], i = (0, Cu.default)(e, o.options), f;
2136
+ i.displayValue ? f = zu(o.text, i, n) : f = 0;
2137
2137
  var u = o.data.length * i.width;
2138
- o.width = Math.ceil(Math.max(d, u)), o.height = dn(o, i), o.barcodePadding = sn(d, u, i);
2138
+ o.width = Math.ceil(Math.max(f, u)), o.height = fn(o, i), o.barcodePadding = sn(f, u, i);
2139
2139
  }
2140
2140
  }
2141
- function Lu(t) {
2141
+ function Bu(t) {
2142
2142
  for (var e = 0, n = 0; n < t.length; n++)
2143
2143
  e += t[n].width;
2144
2144
  return e;
2145
2145
  }
2146
- function zu(t) {
2146
+ function Lu(t) {
2147
2147
  for (var e = 0, n = 0; n < t.length; n++)
2148
2148
  t[n].height > e && (e = t[n].height);
2149
2149
  return e;
2150
2150
  }
2151
- function Uu(t, e, n) {
2151
+ function zu(t, e, n) {
2152
2152
  var r;
2153
2153
  if (n)
2154
2154
  r = n;
@@ -2163,15 +2163,15 @@ function Uu(t, e, n) {
2163
2163
  var i = o.width;
2164
2164
  return i;
2165
2165
  }
2166
- j.getMaximumHeightOfEncodings = zu;
2167
- j.getEncodingHeight = dn;
2166
+ j.getMaximumHeightOfEncodings = Lu;
2167
+ j.getEncodingHeight = fn;
2168
2168
  j.getBarcodePadding = sn;
2169
- j.calculateEncodingAttributes = Bu;
2170
- j.getTotalWidthOfEncodings = Lu;
2171
- Object.defineProperty(yt, "__esModule", {
2169
+ j.calculateEncodingAttributes = ju;
2170
+ j.getTotalWidthOfEncodings = Bu;
2171
+ Object.defineProperty(gt, "__esModule", {
2172
2172
  value: !0
2173
2173
  });
2174
- var Gu = /* @__PURE__ */ function() {
2174
+ var Uu = /* @__PURE__ */ function() {
2175
2175
  function t(e, n) {
2176
2176
  for (var r = 0; r < n.length; r++) {
2177
2177
  var o = n[r];
@@ -2181,26 +2181,26 @@ var Gu = /* @__PURE__ */ function() {
2181
2181
  return function(e, n, r) {
2182
2182
  return n && t(e.prototype, n), r && t(e, r), e;
2183
2183
  };
2184
- }(), Fu = oe, Vu = Hu(Fu), Ve = j;
2185
- function Hu(t) {
2184
+ }(), Gu = oe, Fu = Vu(Gu), Ve = j;
2185
+ function Vu(t) {
2186
2186
  return t && t.__esModule ? t : { default: t };
2187
2187
  }
2188
- function Xu(t, e) {
2188
+ function Hu(t, e) {
2189
2189
  if (!(t instanceof e))
2190
2190
  throw new TypeError("Cannot call a class as a function");
2191
2191
  }
2192
- var qu = function() {
2192
+ var Xu = function() {
2193
2193
  function t(e, n, r) {
2194
- Xu(this, t), this.canvas = e, this.encodings = n, this.options = r;
2194
+ Hu(this, t), this.canvas = e, this.encodings = n, this.options = r;
2195
2195
  }
2196
- return Gu(t, [{
2196
+ return Uu(t, [{
2197
2197
  key: "render",
2198
2198
  value: function() {
2199
2199
  if (!this.canvas.getContext)
2200
2200
  throw new Error("The browser does not support canvas.");
2201
2201
  this.prepareCanvas();
2202
2202
  for (var n = 0; n < this.encodings.length; n++) {
2203
- var r = (0, Vu.default)(this.options, this.encodings[n].options);
2203
+ var r = (0, Fu.default)(this.options, this.encodings[n].options);
2204
2204
  this.drawCanvasBarcode(r, this.encodings[n]), this.drawCanvasText(r, this.encodings[n]), this.moveCanvasDrawing(this.encodings[n]);
2205
2205
  }
2206
2206
  this.restoreCanvas();
@@ -2216,11 +2216,11 @@ var qu = function() {
2216
2216
  }, {
2217
2217
  key: "drawCanvasBarcode",
2218
2218
  value: function(n, r) {
2219
- var o = this.canvas.getContext("2d"), i = r.data, d;
2220
- n.textPosition == "top" ? d = n.marginTop + n.fontSize + n.textMargin : d = n.marginTop, o.fillStyle = n.lineColor;
2219
+ var o = this.canvas.getContext("2d"), i = r.data, f;
2220
+ n.textPosition == "top" ? f = n.marginTop + n.fontSize + n.textMargin : f = n.marginTop, o.fillStyle = n.lineColor;
2221
2221
  for (var u = 0; u < i.length; u++) {
2222
- var b = u * n.width + r.barcodePadding;
2223
- i[u] === "1" ? o.fillRect(b, d, n.width, n.height) : i[u] && o.fillRect(b, d, n.width, n.height * i[u]);
2222
+ var m = u * n.width + r.barcodePadding;
2223
+ i[u] === "1" ? o.fillRect(m, f, n.width, n.height) : i[u] && o.fillRect(m, f, n.width, n.height * i[u]);
2224
2224
  }
2225
2225
  }
2226
2226
  }, {
@@ -2228,8 +2228,8 @@ var qu = function() {
2228
2228
  value: function(n, r) {
2229
2229
  var o = this.canvas.getContext("2d"), i = n.fontOptions + " " + n.fontSize + "px " + n.font;
2230
2230
  if (n.displayValue) {
2231
- var d, u;
2232
- n.textPosition == "top" ? u = n.marginTop + n.fontSize - n.textMargin : u = n.height + n.textMargin + n.marginTop + n.fontSize, o.font = i, n.textAlign == "left" || r.barcodePadding > 0 ? (d = 0, o.textAlign = "left") : n.textAlign == "right" ? (d = r.width - 1, o.textAlign = "right") : (d = r.width / 2, o.textAlign = "center"), o.fillText(r.text, d, u);
2231
+ var f, u;
2232
+ n.textPosition == "top" ? u = n.marginTop + n.fontSize - n.textMargin : u = n.height + n.textMargin + n.marginTop + n.fontSize, o.font = i, n.textAlign == "left" || r.barcodePadding > 0 ? (f = 0, o.textAlign = "left") : n.textAlign == "right" ? (f = r.width - 1, o.textAlign = "right") : (f = r.width / 2, o.textAlign = "center"), o.fillText(r.text, f, u);
2233
2233
  }
2234
2234
  }
2235
2235
  }, {
@@ -2246,12 +2246,12 @@ var qu = function() {
2246
2246
  }
2247
2247
  }]), t;
2248
2248
  }();
2249
- yt.default = qu;
2250
- var bt = {};
2251
- Object.defineProperty(bt, "__esModule", {
2249
+ gt.default = Xu;
2250
+ var mt = {};
2251
+ Object.defineProperty(mt, "__esModule", {
2252
2252
  value: !0
2253
2253
  });
2254
- var Yu = /* @__PURE__ */ function() {
2254
+ var qu = /* @__PURE__ */ function() {
2255
2255
  function t(e, n) {
2256
2256
  for (var r = 0; r < n.length; r++) {
2257
2257
  var o = n[r];
@@ -2261,26 +2261,26 @@ var Yu = /* @__PURE__ */ function() {
2261
2261
  return function(e, n, r) {
2262
2262
  return n && t(e.prototype, n), r && t(e, r), e;
2263
2263
  };
2264
- }(), Ju = oe, Zu = Wu(Ju), He = j;
2265
- function Wu(t) {
2264
+ }(), Yu = oe, Ju = Zu(Yu), He = j;
2265
+ function Zu(t) {
2266
2266
  return t && t.__esModule ? t : { default: t };
2267
2267
  }
2268
- function Qu(t, e) {
2268
+ function Wu(t, e) {
2269
2269
  if (!(t instanceof e))
2270
2270
  throw new TypeError("Cannot call a class as a function");
2271
2271
  }
2272
- var me = "http://www.w3.org/2000/svg", Ku = function() {
2272
+ var ye = "http://www.w3.org/2000/svg", Qu = function() {
2273
2273
  function t(e, n, r) {
2274
- Qu(this, t), this.svg = e, this.encodings = n, this.options = r, this.document = r.xmlDocument || document;
2274
+ Wu(this, t), this.svg = e, this.encodings = n, this.options = r, this.document = r.xmlDocument || document;
2275
2275
  }
2276
- return Yu(t, [{
2276
+ return qu(t, [{
2277
2277
  key: "render",
2278
2278
  value: function() {
2279
2279
  var n = this.options.marginLeft;
2280
2280
  this.prepareSVG();
2281
2281
  for (var r = 0; r < this.encodings.length; r++) {
2282
- var o = this.encodings[r], i = (0, Zu.default)(this.options, o.options), d = this.createGroup(n, i.marginTop, this.svg);
2283
- this.setGroupOptions(d, i), this.drawSvgBarcode(d, i, o), this.drawSVGText(d, i, o), n += o.width;
2282
+ var o = this.encodings[r], i = (0, Ju.default)(this.options, o.options), f = this.createGroup(n, i.marginTop, this.svg);
2283
+ this.setGroupOptions(f, i), this.drawSvgBarcode(f, i, o), this.drawSVGText(f, i, o), n += o.width;
2284
2284
  }
2285
2285
  }
2286
2286
  }, {
@@ -2295,31 +2295,31 @@ var me = "http://www.w3.org/2000/svg", Ku = function() {
2295
2295
  }, {
2296
2296
  key: "drawSvgBarcode",
2297
2297
  value: function(n, r, o) {
2298
- var i = o.data, d;
2299
- r.textPosition == "top" ? d = r.fontSize + r.textMargin : d = 0;
2300
- for (var u = 0, b = 0, f = 0; f < i.length; f++)
2301
- b = f * r.width + o.barcodePadding, i[f] === "1" ? u++ : u > 0 && (this.drawRect(b - r.width * u, d, r.width * u, r.height, n), u = 0);
2302
- u > 0 && this.drawRect(b - r.width * (u - 1), d, r.width * u, r.height, n);
2298
+ var i = o.data, f;
2299
+ r.textPosition == "top" ? f = r.fontSize + r.textMargin : f = 0;
2300
+ for (var u = 0, m = 0, c = 0; c < i.length; c++)
2301
+ m = c * r.width + o.barcodePadding, i[c] === "1" ? u++ : u > 0 && (this.drawRect(m - r.width * u, f, r.width * u, r.height, n), u = 0);
2302
+ u > 0 && this.drawRect(m - r.width * (u - 1), f, r.width * u, r.height, n);
2303
2303
  }
2304
2304
  }, {
2305
2305
  key: "drawSVGText",
2306
2306
  value: function(n, r, o) {
2307
- var i = this.document.createElementNS(me, "text");
2307
+ var i = this.document.createElementNS(ye, "text");
2308
2308
  if (r.displayValue) {
2309
- var d, u;
2310
- i.setAttribute("font-family", r.font), i.setAttribute("font-size", r.fontSize), r.fontOptions.includes("bold") && i.setAttribute("font-weight", "bold"), r.fontOptions.includes("italic") && i.setAttribute("font-style", "italic"), r.textPosition == "top" ? u = r.fontSize - r.textMargin : u = r.height + r.textMargin + r.fontSize, r.textAlign == "left" || o.barcodePadding > 0 ? (d = 0, i.setAttribute("text-anchor", "start")) : r.textAlign == "right" ? (d = o.width - 1, i.setAttribute("text-anchor", "end")) : (d = o.width / 2, i.setAttribute("text-anchor", "middle")), i.setAttribute("x", d), i.setAttribute("y", u), i.appendChild(this.document.createTextNode(o.text)), n.appendChild(i);
2309
+ var f, u;
2310
+ i.setAttribute("font-family", r.font), i.setAttribute("font-size", r.fontSize), r.fontOptions.includes("bold") && i.setAttribute("font-weight", "bold"), r.fontOptions.includes("italic") && i.setAttribute("font-style", "italic"), r.textPosition == "top" ? u = r.fontSize - r.textMargin : u = r.height + r.textMargin + r.fontSize, r.textAlign == "left" || o.barcodePadding > 0 ? (f = 0, i.setAttribute("text-anchor", "start")) : r.textAlign == "right" ? (f = o.width - 1, i.setAttribute("text-anchor", "end")) : (f = o.width / 2, i.setAttribute("text-anchor", "middle")), i.setAttribute("x", f), i.setAttribute("y", u), i.appendChild(this.document.createTextNode(o.text)), n.appendChild(i);
2311
2311
  }
2312
2312
  }
2313
2313
  }, {
2314
2314
  key: "setSvgAttributes",
2315
2315
  value: function(n, r) {
2316
2316
  var o = this.svg;
2317
- o.setAttribute("width", n + "px"), o.setAttribute("height", r + "px"), o.setAttribute("x", "0px"), o.setAttribute("y", "0px"), o.setAttribute("viewBox", "0 0 " + n + " " + r), o.setAttribute("xmlns", me), o.setAttribute("version", "1.1");
2317
+ o.setAttribute("width", n + "px"), o.setAttribute("height", r + "px"), o.setAttribute("x", "0px"), o.setAttribute("y", "0px"), o.setAttribute("viewBox", "0 0 " + n + " " + r), o.setAttribute("xmlns", ye), o.setAttribute("version", "1.1");
2318
2318
  }
2319
2319
  }, {
2320
2320
  key: "createGroup",
2321
2321
  value: function(n, r, o) {
2322
- var i = this.document.createElementNS(me, "g");
2322
+ var i = this.document.createElementNS(ye, "g");
2323
2323
  return i.setAttribute("transform", "translate(" + n + ", " + r + ")"), o.appendChild(i), i;
2324
2324
  }
2325
2325
  }, {
@@ -2329,18 +2329,18 @@ var me = "http://www.w3.org/2000/svg", Ku = function() {
2329
2329
  }
2330
2330
  }, {
2331
2331
  key: "drawRect",
2332
- value: function(n, r, o, i, d) {
2333
- var u = this.document.createElementNS(me, "rect");
2334
- return u.setAttribute("x", n), u.setAttribute("y", r), u.setAttribute("width", o), u.setAttribute("height", i), d.appendChild(u), u;
2332
+ value: function(n, r, o, i, f) {
2333
+ var u = this.document.createElementNS(ye, "rect");
2334
+ return u.setAttribute("x", n), u.setAttribute("y", r), u.setAttribute("width", o), u.setAttribute("height", i), f.appendChild(u), u;
2335
2335
  }
2336
2336
  }]), t;
2337
2337
  }();
2338
- bt.default = Ku;
2339
- var mt = {};
2340
- Object.defineProperty(mt, "__esModule", {
2338
+ mt.default = Qu;
2339
+ var yt = {};
2340
+ Object.defineProperty(yt, "__esModule", {
2341
2341
  value: !0
2342
2342
  });
2343
- var el = /* @__PURE__ */ function() {
2343
+ var Ku = /* @__PURE__ */ function() {
2344
2344
  function t(e, n) {
2345
2345
  for (var r = 0; r < n.length; r++) {
2346
2346
  var o = n[r];
@@ -2351,39 +2351,39 @@ var el = /* @__PURE__ */ function() {
2351
2351
  return n && t(e.prototype, n), r && t(e, r), e;
2352
2352
  };
2353
2353
  }();
2354
- function tl(t, e) {
2354
+ function el(t, e) {
2355
2355
  if (!(t instanceof e))
2356
2356
  throw new TypeError("Cannot call a class as a function");
2357
2357
  }
2358
- var nl = function() {
2358
+ var tl = function() {
2359
2359
  function t(e, n, r) {
2360
- tl(this, t), this.object = e, this.encodings = n, this.options = r;
2360
+ el(this, t), this.object = e, this.encodings = n, this.options = r;
2361
2361
  }
2362
- return el(t, [{
2362
+ return Ku(t, [{
2363
2363
  key: "render",
2364
2364
  value: function() {
2365
2365
  this.object.encodings = this.encodings;
2366
2366
  }
2367
2367
  }]), t;
2368
2368
  }();
2369
- mt.default = nl;
2370
- Object.defineProperty(gt, "__esModule", {
2369
+ yt.default = tl;
2370
+ Object.defineProperty(bt, "__esModule", {
2371
2371
  value: !0
2372
2372
  });
2373
- var rl = yt, ol = Et(rl), al = bt, il = Et(al), ul = mt, ll = Et(ul);
2373
+ var nl = gt, rl = Et(nl), ol = mt, al = Et(ol), il = yt, ul = Et(il);
2374
2374
  function Et(t) {
2375
2375
  return t && t.__esModule ? t : { default: t };
2376
2376
  }
2377
- gt.default = { CanvasRenderer: ol.default, SVGRenderer: il.default, ObjectRenderer: ll.default };
2377
+ bt.default = { CanvasRenderer: rl.default, SVGRenderer: al.default, ObjectRenderer: ul.default };
2378
2378
  var ae = {};
2379
2379
  Object.defineProperty(ae, "__esModule", {
2380
2380
  value: !0
2381
2381
  });
2382
- function Ot(t, e) {
2382
+ function xt(t, e) {
2383
2383
  if (!(t instanceof e))
2384
2384
  throw new TypeError("Cannot call a class as a function");
2385
2385
  }
2386
- function xt(t, e) {
2386
+ function Ot(t, e) {
2387
2387
  if (!t)
2388
2388
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2389
2389
  return e && (typeof e == "object" || typeof e == "function") ? e : t;
@@ -2393,81 +2393,81 @@ function $t(t, e) {
2393
2393
  throw new TypeError("Super expression must either be null or a function, not " + typeof e);
2394
2394
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
2395
2395
  }
2396
- var cl = function(t) {
2396
+ var ll = function(t) {
2397
2397
  $t(e, t);
2398
2398
  function e(n, r) {
2399
- Ot(this, e);
2400
- var o = xt(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this));
2399
+ xt(this, e);
2400
+ var o = Ot(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this));
2401
2401
  return o.name = "InvalidInputException", o.symbology = n, o.input = r, o.message = '"' + o.input + '" is not a valid input for ' + o.symbology, o;
2402
2402
  }
2403
2403
  return e;
2404
- }(Error), fl = function(t) {
2404
+ }(Error), dl = function(t) {
2405
2405
  $t(e, t);
2406
2406
  function e() {
2407
- Ot(this, e);
2408
- var n = xt(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this));
2407
+ xt(this, e);
2408
+ var n = Ot(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this));
2409
2409
  return n.name = "InvalidElementException", n.message = "Not supported type to render on", n;
2410
2410
  }
2411
2411
  return e;
2412
- }(Error), dl = function(t) {
2412
+ }(Error), cl = function(t) {
2413
2413
  $t(e, t);
2414
2414
  function e() {
2415
- Ot(this, e);
2416
- var n = xt(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this));
2415
+ xt(this, e);
2416
+ var n = Ot(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this));
2417
2417
  return n.name = "NoElementException", n.message = "No element to render on.", n;
2418
2418
  }
2419
2419
  return e;
2420
2420
  }(Error);
2421
- ae.InvalidInputException = cl;
2422
- ae.InvalidElementException = fl;
2423
- ae.NoElementException = dl;
2421
+ ae.InvalidInputException = ll;
2422
+ ae.InvalidElementException = dl;
2423
+ ae.NoElementException = cl;
2424
2424
  Object.defineProperty(_t, "__esModule", {
2425
2425
  value: !0
2426
2426
  });
2427
- var sl = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2427
+ var fl = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2428
2428
  return typeof t;
2429
2429
  } : function(t) {
2430
2430
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2431
- }, hl = pt, qe = hn(hl), vl = gt, ce = hn(vl), _l = ae;
2431
+ }, sl = pt, qe = hn(sl), hl = bt, de = hn(hl), vl = ae;
2432
2432
  function hn(t) {
2433
2433
  return t && t.__esModule ? t : { default: t };
2434
2434
  }
2435
2435
  function wt(t) {
2436
2436
  if (typeof t == "string")
2437
- return pl(t);
2437
+ return _l(t);
2438
2438
  if (Array.isArray(t)) {
2439
2439
  for (var e = [], n = 0; n < t.length; n++)
2440
2440
  e.push(wt(t[n]));
2441
2441
  return e;
2442
2442
  } else {
2443
2443
  if (typeof HTMLCanvasElement < "u" && t instanceof HTMLImageElement)
2444
- return gl(t);
2444
+ return pl(t);
2445
2445
  if (t && t.nodeName && t.nodeName.toLowerCase() === "svg" || typeof SVGElement < "u" && t instanceof SVGElement)
2446
2446
  return {
2447
2447
  element: t,
2448
2448
  options: (0, qe.default)(t),
2449
- renderer: ce.default.SVGRenderer
2449
+ renderer: de.default.SVGRenderer
2450
2450
  };
2451
2451
  if (typeof HTMLCanvasElement < "u" && t instanceof HTMLCanvasElement)
2452
2452
  return {
2453
2453
  element: t,
2454
2454
  options: (0, qe.default)(t),
2455
- renderer: ce.default.CanvasRenderer
2455
+ renderer: de.default.CanvasRenderer
2456
2456
  };
2457
2457
  if (t && t.getContext)
2458
2458
  return {
2459
2459
  element: t,
2460
- renderer: ce.default.CanvasRenderer
2460
+ renderer: de.default.CanvasRenderer
2461
2461
  };
2462
- if (t && (typeof t > "u" ? "undefined" : sl(t)) === "object" && !t.nodeName)
2462
+ if (t && (typeof t > "u" ? "undefined" : fl(t)) === "object" && !t.nodeName)
2463
2463
  return {
2464
2464
  element: t,
2465
- renderer: ce.default.ObjectRenderer
2465
+ renderer: de.default.ObjectRenderer
2466
2466
  };
2467
- throw new _l.InvalidElementException();
2467
+ throw new vl.InvalidElementException();
2468
2468
  }
2469
2469
  }
2470
- function pl(t) {
2470
+ function _l(t) {
2471
2471
  var e = document.querySelectorAll(t);
2472
2472
  if (e.length !== 0) {
2473
2473
  for (var n = [], r = 0; r < e.length; r++)
@@ -2475,12 +2475,12 @@ function pl(t) {
2475
2475
  return n;
2476
2476
  }
2477
2477
  }
2478
- function gl(t) {
2478
+ function pl(t) {
2479
2479
  var e = document.createElement("canvas");
2480
2480
  return {
2481
2481
  element: e,
2482
2482
  options: (0, qe.default)(t),
2483
- renderer: ce.default.CanvasRenderer,
2483
+ renderer: de.default.CanvasRenderer,
2484
2484
  afterRender: function() {
2485
2485
  t.setAttribute("src", e.toDataURL());
2486
2486
  }
@@ -2491,7 +2491,7 @@ var At = {};
2491
2491
  Object.defineProperty(At, "__esModule", {
2492
2492
  value: !0
2493
2493
  });
2494
- var yl = /* @__PURE__ */ function() {
2494
+ var bl = /* @__PURE__ */ function() {
2495
2495
  function t(e, n) {
2496
2496
  for (var r = 0; r < n.length; r++) {
2497
2497
  var o = n[r];
@@ -2502,15 +2502,15 @@ var yl = /* @__PURE__ */ function() {
2502
2502
  return n && t(e.prototype, n), r && t(e, r), e;
2503
2503
  };
2504
2504
  }();
2505
- function bl(t, e) {
2505
+ function gl(t, e) {
2506
2506
  if (!(t instanceof e))
2507
2507
  throw new TypeError("Cannot call a class as a function");
2508
2508
  }
2509
2509
  var ml = function() {
2510
2510
  function t(e) {
2511
- bl(this, t), this.api = e;
2511
+ gl(this, t), this.api = e;
2512
2512
  }
2513
- return yl(t, [{
2513
+ return bl(t, [{
2514
2514
  key: "handleCatch",
2515
2515
  value: function(n) {
2516
2516
  if (n.name === "InvalidInputException")
@@ -2536,7 +2536,7 @@ var ml = function() {
2536
2536
  }]), t;
2537
2537
  }();
2538
2538
  At.default = ml;
2539
- var El = Je, X = H(El), Ol = oe, ve = H(Ol), xl = ht, vn = H(xl), $l = vt, Gt = H($l), wl = _t, Al = H(wl), Sl = ke, Tl = H(Sl), Rl = At, Dl = H(Rl), _n = ae, Il = Pe, pn = H(Il);
2539
+ var yl = Je, X = H(yl), El = oe, ve = H(El), xl = ht, vn = H(xl), Ol = vt, Gt = H(Ol), $l = _t, wl = H($l), Al = Pe, Sl = H(Al), Tl = At, Rl = H(Tl), _n = ae, Dl = ke, pn = H(Dl);
2540
2540
  function H(t) {
2541
2541
  return t && t.__esModule ? t : { default: t };
2542
2542
  }
@@ -2545,26 +2545,26 @@ var G = function() {
2545
2545
  var o = new G();
2546
2546
  if (typeof e > "u")
2547
2547
  throw Error("No element to render on was provided.");
2548
- return o._renderProperties = (0, Al.default)(e), o._encodings = [], o._options = pn.default, o._errorHandler = new Dl.default(o), typeof n < "u" && (r = r || {}, r.format || (r.format = yn()), o.options(r)[r.format](n, r).render()), o;
2548
+ return o._renderProperties = (0, wl.default)(e), o._encodings = [], o._options = pn.default, o._errorHandler = new Rl.default(o), typeof n < "u" && (r = r || {}, r.format || (r.format = gn()), o.options(r)[r.format](n, r).render()), o;
2549
2549
  };
2550
2550
  Ne.getModule = function(t) {
2551
2551
  return X.default[t];
2552
2552
  };
2553
2553
  for (var Ft in X.default)
2554
- X.default.hasOwnProperty(Ft) && kl(X.default, Ft);
2555
- function kl(t, e) {
2554
+ X.default.hasOwnProperty(Ft) && Il(X.default, Ft);
2555
+ function Il(t, e) {
2556
2556
  G.prototype[e] = G.prototype[e.toUpperCase()] = G.prototype[e.toLowerCase()] = function(n, r) {
2557
2557
  var o = this;
2558
2558
  return o._errorHandler.wrapBarcodeCall(function() {
2559
2559
  r.text = typeof r.text > "u" ? void 0 : "" + r.text;
2560
2560
  var i = (0, ve.default)(o._options, r);
2561
- i = (0, Tl.default)(i);
2562
- var d = t[e], u = gn(n, d, i);
2561
+ i = (0, Sl.default)(i);
2562
+ var f = t[e], u = bn(n, f, i);
2563
2563
  return o._encodings.push(u), o;
2564
2564
  });
2565
2565
  };
2566
2566
  }
2567
- function gn(t, e, n) {
2567
+ function bn(t, e, n) {
2568
2568
  t = "" + t;
2569
2569
  var r = new e(t, n);
2570
2570
  if (!r.valid())
@@ -2575,7 +2575,7 @@ function gn(t, e, n) {
2575
2575
  o[i].options = (0, ve.default)(n, o[i].options);
2576
2576
  return o;
2577
2577
  }
2578
- function yn() {
2578
+ function gn() {
2579
2579
  return X.default.CODE128 ? "CODE128" : Object.keys(X.default)[0];
2580
2580
  }
2581
2581
  G.prototype.options = function(t) {
@@ -2592,8 +2592,8 @@ G.prototype.init = function() {
2592
2592
  for (var e in this._renderProperties) {
2593
2593
  t = this._renderProperties[e];
2594
2594
  var n = (0, ve.default)(this._options, t.options);
2595
- n.format == "auto" && (n.format = yn()), this._errorHandler.wrapBarcodeCall(function() {
2596
- var r = n.value, o = X.default[n.format.toUpperCase()], i = gn(r, o, n);
2595
+ n.format == "auto" && (n.format = gn()), this._errorHandler.wrapBarcodeCall(function() {
2596
+ var r = n.value, o = X.default[n.format.toUpperCase()], i = bn(r, o, n);
2597
2597
  Ye(t, i, n);
2598
2598
  });
2599
2599
  }
@@ -2626,7 +2626,7 @@ typeof jQuery < "u" && (jQuery.fn.JsBarcode = function(t, e) {
2626
2626
  }), Ne(n, t, e);
2627
2627
  });
2628
2628
  var Pl = Ne;
2629
- const Nl = /* @__PURE__ */ kn(Pl), Cl = /* @__PURE__ */ V({
2629
+ const kl = /* @__PURE__ */ In(Pl), Nl = /* @__PURE__ */ V({
2630
2630
  __name: "barCode",
2631
2631
  props: {
2632
2632
  text: {
@@ -2635,7 +2635,7 @@ const Nl = /* @__PURE__ */ kn(Pl), Cl = /* @__PURE__ */ V({
2635
2635
  }
2636
2636
  },
2637
2637
  setup(t) {
2638
- const e = t, { text: n } = En(e), r = Ee(null), o = {
2638
+ const e = t, n = k(() => e.text), r = Ee(null), o = {
2639
2639
  format: "CODE128",
2640
2640
  lineColor: "#000",
2641
2641
  width: 2,
@@ -2655,13 +2655,13 @@ const Nl = /* @__PURE__ */ kn(Pl), Cl = /* @__PURE__ */ V({
2655
2655
  marginRight: void 0
2656
2656
  };
2657
2657
  function i() {
2658
- Nl(r.value, n.value, o);
2658
+ kl(r.value, n.value || "", o);
2659
2659
  }
2660
- return On(() => {
2660
+ return En(() => {
2661
2661
  i();
2662
2662
  }), xn(() => e.text, () => {
2663
2663
  i();
2664
- }), (d, u) => D(n) ? (h(), v("svg", {
2664
+ }), (f, u) => n.value ? (h(), v("svg", {
2665
2665
  key: 0,
2666
2666
  id: "canvas",
2667
2667
  ref_key: "canvas",
@@ -2672,7 +2672,7 @@ const Nl = /* @__PURE__ */ kn(Pl), Cl = /* @__PURE__ */ V({
2672
2672
  }, null, 512)) : $("", !0);
2673
2673
  }
2674
2674
  });
2675
- function bn(t, e) {
2675
+ function mn(t, e) {
2676
2676
  if (t == null || t === "") return e === "decimal" ? "0.00" : "$0.00";
2677
2677
  const n = typeof t == "string" ? parseFloat(t) : t;
2678
2678
  return isNaN(n) ? e === "decimal" ? "0.00" : "$0.00" : e === "decimal" ? n.toFixed(2) : new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" }).format(n);
@@ -2680,34 +2680,34 @@ function bn(t, e) {
2680
2680
  function Vt(t, e = 2) {
2681
2681
  return Math.round((t + Number.EPSILON) * Math.pow(10, e)) / Math.pow(10, e);
2682
2682
  }
2683
- function Ml(t, e) {
2683
+ function Cl(t, e) {
2684
2684
  return t ? String(t) : "";
2685
2685
  }
2686
- const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between w-full m-1" }, Ll = { class: "flex items-center p-1 flex-1" }, zl = {
2686
+ const Ml = { class: "grid grid-cols-2 gap-2" }, jl = { class: "flex flex-col justify-between m-1" }, Bl = { class: "flex items-center p-1 flex-1" }, Ll = {
2687
2687
  key: 0,
2688
- class: "text-red-600 font-bold text-4xl text-center w-full"
2689
- }, Ul = ["src"], Gl = { class: "w-full border rounded-lg" }, Fl = {
2688
+ class: "text-error font-bold text-4xl text-center w-full"
2689
+ }, zl = ["src"], Ul = { class: "w-full border border-default rounded-lg" }, Gl = {
2690
2690
  key: 0,
2691
2691
  class: "text-center"
2692
- }, Vl = { class: "text-center text-2xl" }, Hl = { class: "text-xs" }, Xl = { class: "flex-none flex" }, ql = {
2692
+ }, Fl = { class: "text-center text-2xl" }, Vl = { class: "text-xs" }, Hl = { class: "flex-none flex" }, Xl = {
2693
2693
  key: 0,
2694
2694
  class: "flex-none flex pr-2"
2695
- }, Yl = {
2695
+ }, ql = {
2696
2696
  key: 1,
2697
2697
  class: "flex"
2698
- }, Jl = { class: "flex gap-2" }, Zl = {
2698
+ }, Yl = { class: "flex gap-2" }, Jl = {
2699
2699
  key: 2,
2700
2700
  class: "text-center w-full"
2701
- }, Wl = { class: "pr-1 font-bold text-red-800" }, Ql = {
2701
+ }, Zl = { class: "pr-1 font-bold text-error" }, Wl = {
2702
2702
  key: 3,
2703
2703
  class: "flex w-full justify-center bg-accented p-2 mb-1"
2704
- }, Kl = { class: "pr-1 font-bold" }, ec = {
2704
+ }, Ql = { class: "pr-1 font-bold" }, Kl = {
2705
2705
  key: 4,
2706
2706
  class: "flex w-full justify-center bg-accented rounded-lg p-2 mb-1"
2707
- }, tc = { class: "border rounded-lg w-full m-1 overflow-x-auto p-1" }, nc = { class: "mx-4 text-2xl" }, rc = { class: "text-center text-3xl bg-accented" }, oc = { class: "text-sm" }, ac = { class: "text-center text-2xl" }, ic = { class: "text-center text-clave text-xs" }, uc = {
2707
+ }, ed = { class: "border border-default rounded-lg m-1 p-2" }, td = { class: "mx-4 text-2xl" }, nd = { class: "text-center text-3xl bg-accented" }, rd = { class: "text-sm" }, od = { class: "text-center text-2xl" }, ad = { class: "text-center text-clave text-xs" }, id = {
2708
2708
  key: 0,
2709
2709
  class: "flex"
2710
- }, lc = { class: "flex" }, cc = { class: "flex" }, fc = { class: "text-center text-clave text-xs" }, dc = { class: "w-full p-2" }, Ce = /* @__PURE__ */ V({
2710
+ }, ud = { class: "flex" }, ld = { class: "flex" }, dd = { class: "text-center text-clave text-xs" }, cd = { class: "w-full p-2" }, Ce = /* @__PURE__ */ V({
2711
2711
  __name: "headDoc",
2712
2712
  props: {
2713
2713
  document: {
@@ -2725,142 +2725,142 @@ const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between
2725
2725
  }
2726
2726
  },
2727
2727
  setup(t) {
2728
- const e = t, n = P(() => {
2728
+ const e = t, n = k(() => {
2729
2729
  var s;
2730
- const d = e.document, u = d == null ? void 0 : d.getElementsByTagName("infoTributaria");
2730
+ const f = e.document, u = f == null ? void 0 : f.getElementsByTagName("infoTributaria");
2731
2731
  if (!u)
2732
2732
  return {};
2733
- const b = {}, f = (s = u.item(0)) == null ? void 0 : s.children;
2734
- if (f)
2735
- for (let c = 0; c < f.length; c++) {
2736
- const p = f[c];
2737
- p != null && p.tagName && (b[p.tagName || "na"] = p.textContent || "");
2733
+ const m = {}, c = (s = u.item(0)) == null ? void 0 : s.children;
2734
+ if (c)
2735
+ for (let d = 0; d < c.length; d++) {
2736
+ const p = c[d];
2737
+ p != null && p.tagName && (m[p.tagName || "na"] = p.textContent || "");
2738
2738
  }
2739
- return b;
2740
- }), r = P(() => {
2741
- var d, u;
2742
- if ((d = n.value) != null && d.claveAcceso) {
2743
- const b = Tt((u = n.value) == null ? void 0 : u.claveAcceso);
2744
- return b ? b.typeWithName : "";
2739
+ return m;
2740
+ }), r = k(() => {
2741
+ var f, u;
2742
+ if ((f = n.value) != null && f.claveAcceso) {
2743
+ const m = Tt((u = n.value) == null ? void 0 : u.claveAcceso);
2744
+ return m ? m.typeWithName : "";
2745
2745
  }
2746
2746
  return "";
2747
- }), o = P(() => {
2748
- var c;
2749
- const d = e.document;
2750
- if (!d) return {};
2747
+ }), o = k(() => {
2748
+ var d;
2749
+ const f = e.document;
2750
+ if (!f) return {};
2751
2751
  const u = ["infoFactura", "infoNotaCredito", "infoGuiaRemision", "infoCompRetencion"];
2752
- let b = null;
2752
+ let m = null;
2753
2753
  for (const p of u) {
2754
- const E = d.getElementsByTagName(p);
2754
+ const E = f.getElementsByTagName(p);
2755
2755
  if (E && E.length > 0) {
2756
- b = E;
2756
+ m = E;
2757
2757
  break;
2758
2758
  }
2759
2759
  }
2760
- if (!b)
2760
+ if (!m)
2761
2761
  return {};
2762
- const f = {}, s = (c = b.item(0)) == null ? void 0 : c.children;
2762
+ const c = {}, s = (d = m.item(0)) == null ? void 0 : d.children;
2763
2763
  if (s)
2764
2764
  for (let p = 0; p < s.length; p++) {
2765
2765
  const E = s[p];
2766
- E != null && E.tagName && (f[E.tagName] = E.textContent || "");
2766
+ E != null && E.tagName && (c[E.tagName] = E.textContent || "");
2767
2767
  }
2768
- return f;
2769
- }), i = P(() => {
2770
- var d, u;
2771
- if ((d = n.value) != null && d.claveAcceso) {
2772
- const b = Tt((u = n.value) == null ? void 0 : u.claveAcceso);
2773
- if (b)
2774
- return b.mode === "2" ? "PRODUCCIÓN" : "PRUEBAS";
2768
+ return c;
2769
+ }), i = k(() => {
2770
+ var f, u;
2771
+ if ((f = n.value) != null && f.claveAcceso) {
2772
+ const m = Tt((u = n.value) == null ? void 0 : u.claveAcceso);
2773
+ if (m)
2774
+ return m.mode === "2" ? "PRODUCCIÓN" : "PRUEBAS";
2775
2775
  }
2776
2776
  return "";
2777
2777
  });
2778
- return (d, u) => (h(), v("div", jl, [
2779
- a("div", Bl, [
2780
- a("div", Ll, [
2778
+ return (f, u) => (h(), v("div", Ml, [
2779
+ a("div", jl, [
2780
+ a("div", Bl, [
2781
2781
  t.logoUrl ? (h(), v("img", {
2782
2782
  key: 1,
2783
2783
  src: t.logoUrl,
2784
2784
  alt: "Logo",
2785
2785
  class: "w-full h-full object-contain"
2786
- }, null, 8, Ul)) : (h(), v("div", zl, " NO TIENE LOGO "))
2786
+ }, null, 8, zl)) : (h(), v("div", Ll, " NO TIENE LOGO "))
2787
2787
  ]),
2788
- a("div", Gl, [
2789
- n.value.nombreComercial ? (h(), v("div", Fl, [
2788
+ a("div", Ul, [
2789
+ n.value.nombreComercial ? (h(), v("div", Gl, [
2790
2790
  a("strong", null, l(n.value.nombreComercial), 1)
2791
2791
  ])) : $("", !0),
2792
- a("div", Vl, [
2792
+ a("div", Fl, [
2793
2793
  a("strong", null, l(n.value.razonSocial), 1)
2794
2794
  ]),
2795
- a("div", Hl, [
2796
- a("div", Xl, [
2795
+ a("div", Vl, [
2796
+ a("div", Hl, [
2797
2797
  u[0] || (u[0] = a("div", { class: "font-bold pr-2" }, " Dirección Matriz ", -1)),
2798
2798
  a("div", null, l(n.value.dirMatriz), 1)
2799
2799
  ]),
2800
- o.value.dirEstablecimiento ? (h(), v("div", ql, [
2800
+ o.value.dirEstablecimiento ? (h(), v("div", Xl, [
2801
2801
  u[1] || (u[1] = a("div", { class: "font-bold pr-2" }, " Dirección Sucursal ", -1)),
2802
2802
  a("div", null, l(o.value.dirEstablecimiento), 1)
2803
2803
  ])) : $("", !0),
2804
- o.value.contribuyenteEspecial ? (h(), v("div", Yl, [
2804
+ o.value.contribuyenteEspecial ? (h(), v("div", ql, [
2805
2805
  u[2] || (u[2] = a("div", { class: "pr-1 font-bold" }, " CONTRIBUYENTE ESPECIAL ", -1)),
2806
2806
  a("div", null, l(o.value.contribuyenteEspecial), 1)
2807
2807
  ])) : $("", !0),
2808
- a("div", Jl, [
2808
+ a("div", Yl, [
2809
2809
  u[3] || (u[3] = a("div", { class: "pr-1 font-bold" }, " OBLIGADO A LLEVAR CONTABILIDAD ", -1)),
2810
2810
  a("div", null, l(o.value.obligadoContabilidad), 1)
2811
2811
  ]),
2812
- n.value.agenteRetencion ? (h(), v("div", Zl, [
2812
+ n.value.agenteRetencion ? (h(), v("div", Jl, [
2813
2813
  u[4] || (u[4] = a("span", { class: "pr-1 font-bold" }, "Agente de Retencion", -1)),
2814
- a("span", Wl, " Nº " + l(n.value.agenteRetencion), 1)
2814
+ a("span", Zl, " Nº " + l(n.value.agenteRetencion), 1)
2815
2815
  ])) : $("", !0),
2816
- n.value.contribuyenteRimpe ? (h(), v("div", Ql, [
2817
- a("span", Kl, [
2816
+ n.value.contribuyenteRimpe ? (h(), v("div", Wl, [
2817
+ a("span", Ql, [
2818
2818
  n.value.contribuyenteRimpe === "CONTRIBUYENTE RÉGIMEN RIMPE" ? (h(), v(S, { key: 0 }, [
2819
2819
  B(" CONTRIBUYENTE RÉGIMEN RIMPE ")
2820
2820
  ], 64)) : (h(), v(S, { key: 1 }, [
2821
2821
  B(l(n.value.contribuyenteRimpe), 1)
2822
2822
  ], 64))
2823
2823
  ])
2824
- ])) : n.value.contribuyenteEspecial ? $("", !0) : (h(), v("div", ec, [...u[5] || (u[5] = [
2824
+ ])) : n.value.contribuyenteEspecial ? $("", !0) : (h(), v("div", Kl, [...u[5] || (u[5] = [
2825
2825
  a("span", { class: "pr-1 font-bold" }, " CONTRIBUYENTE RÉGIMEN GENERAL ", -1)
2826
2826
  ])]))
2827
2827
  ])
2828
2828
  ])
2829
2829
  ]),
2830
- a("div", tc, [
2830
+ a("div", ed, [
2831
2831
  a("div", null, [
2832
2832
  a("strong", null, [
2833
2833
  u[6] || (u[6] = a("span", { class: "text-2xl" }, " R.U.C ", -1)),
2834
2834
  u[7] || (u[7] = B()),
2835
- a("span", nc, l(n.value.ruc), 1)
2835
+ a("span", td, l(n.value.ruc), 1)
2836
2836
  ])
2837
2837
  ]),
2838
- a("div", rc, [
2838
+ a("div", nd, [
2839
2839
  a("strong", null, l(r.value), 1)
2840
2840
  ]),
2841
- a("div", oc, [
2841
+ a("div", rd, [
2842
2842
  a("div", null, [
2843
2843
  u[8] || (u[8] = a("div", { class: "font-bold" }, " NUMERO COMPROBANTE ", -1)),
2844
- a("div", ac, l(n.value.estab) + "-" + l(n.value.ptoEmi) + "-" + l(n.value.secuencial), 1)
2844
+ a("div", od, l(n.value.estab) + "-" + l(n.value.ptoEmi) + "-" + l(n.value.secuencial), 1)
2845
2845
  ]),
2846
2846
  u[13] || (u[13] = a("div", { class: "font-bold" }, " NUMERO DE AUTORIZACIÓN ", -1)),
2847
- a("div", ic, l(n.value.claveAcceso), 1),
2848
- t.dateAuthorization ? (h(), v("div", uc, [
2847
+ a("div", ad, l(n.value.claveAcceso), 1),
2848
+ t.dateAuthorization ? (h(), v("div", id, [
2849
2849
  u[9] || (u[9] = a("div", { class: "font-bold pr-2" }, " FECHA AUTORIZACIÓN ", -1)),
2850
- a("div", null, l(D(Ml)(t.dateAuthorization, "dd/mm/yyyy HH:mm:ss") || "SRI"), 1)
2850
+ a("div", null, l(I(Cl)(t.dateAuthorization, "dd/mm/yyyy HH:mm:ss") || "SRI"), 1)
2851
2851
  ])) : $("", !0),
2852
- a("div", lc, [
2852
+ a("div", ud, [
2853
2853
  u[10] || (u[10] = a("div", { class: "font-bold pr-2" }, " AMBIENTE ", -1)),
2854
2854
  a("div", null, l(i.value), 1)
2855
2855
  ]),
2856
- a("div", cc, [
2856
+ a("div", ld, [
2857
2857
  u[11] || (u[11] = a("div", { class: "font-bold pr-2" }, " EMISIÓN ", -1)),
2858
2858
  a("div", null, l(n.value.tipoEmision === "1" ? "NORMAL" : "ERROR"), 1)
2859
2859
  ]),
2860
2860
  u[14] || (u[14] = a("div", { class: "text-center font-bold" }, " CLAVE DE ACCESO ", -1)),
2861
- a("div", fc, l(n.value.claveAcceso), 1),
2862
- a("div", dc, [
2863
- q(Cl, {
2861
+ a("div", dd, l(n.value.claveAcceso), 1),
2862
+ a("div", cd, [
2863
+ q(Nl, {
2864
2864
  class: "flex-1 barcode",
2865
2865
  text: n.value.claveAcceso
2866
2866
  }, null, 8, ["text"]),
@@ -2870,7 +2870,7 @@ const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between
2870
2870
  ])
2871
2871
  ]));
2872
2872
  }
2873
- }), sc = { class: "w-full text-xs border border-accented" }, hc = { class: "text-right border pr-1 border-accented" }, vc = { class: "text-right w-24 border border-accented" }, mn = /* @__PURE__ */ V({
2873
+ }), fd = { class: "w-full text-xs border border-accented" }, sd = { class: "text-right border pr-1 border-accented" }, hd = { class: "text-right w-24 border border-accented" }, yn = /* @__PURE__ */ V({
2874
2874
  __name: "tableSubtotals",
2875
2875
  props: {
2876
2876
  data: {
@@ -2880,31 +2880,31 @@ const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between
2880
2880
  },
2881
2881
  setup(t) {
2882
2882
  const e = t;
2883
- return (n, r) => (h(), v("table", sc, [
2883
+ return (n, r) => (h(), v("table", fd, [
2884
2884
  a("tbody", null, [
2885
- (h(!0), v(S, null, I(D(wn)(e.data), (o, i) => (h(), v("tr", { key: i }, [
2886
- a("td", hc, l(o.name), 1),
2887
- a("td", vc, l(D(bn)(o.valor, "decimal")), 1)
2885
+ (h(!0), v(S, null, D(I($n)(e.data), (o, i) => (h(), v("tr", { key: i }, [
2886
+ a("td", sd, l(o.name), 1),
2887
+ a("td", hd, l(I(mn)(o.valor, "decimal")), 1)
2888
2888
  ]))), 128))
2889
2889
  ])
2890
2890
  ]));
2891
2891
  }
2892
- }), _c = { class: "bg-white! font-sans antialiased text-gray-800 max-w-6xl mx-auto print:mx-0 print:w-full text-black m-1 rounded-md p-1 printContent" }, pc = {
2892
+ }), vd = { class: "font-sans antialiased text-default max-w-6xl mx-auto print:mx-0 print:w-full m-1 rounded-md p-1 printContent" }, _d = {
2893
2893
  key: 0,
2894
- class: "print:hidden flex justify-end"
2895
- }, gc = { class: "font-bold text-green-700" }, yc = { class: "flex mt-2 text-sm" }, bc = { class: "border rounded-lg w-full px-1" }, mc = { class: "flex-none flex" }, Ec = { class: "flex-none flex gap-x-2" }, Oc = { class: "font-bold pr-2" }, xc = { class: "flex-none flex" }, $c = { key: 0 }, wc = {
2894
+ class: "print:!hidden flex justify-end"
2895
+ }, pd = { class: "font-bold text-primary" }, bd = { class: "flex mt-2 text-sm" }, gd = { class: "border border-default rounded-lg w-full px-1" }, md = { class: "flex-none flex" }, yd = { class: "flex-none flex gap-x-2" }, Ed = { class: "font-bold pr-2" }, xd = { class: "flex-none flex" }, Od = { key: 0 }, $d = {
2896
2896
  key: 0,
2897
2897
  class: "flex-none flex"
2898
- }, Ac = { class: "overflow-x-auto mt-1" }, Sc = { class: "w-full table-bordered text-xs" }, Tc = { class: "flex justify-between gap-2" }, Rc = { class: "flex-1" }, Dc = {
2898
+ }, wd = { class: "overflow-x-auto mt-1" }, Ad = { class: "w-full table-bordered text-xs border border-default" }, Sd = { class: "flex justify-between gap-2 mt-2" }, Td = { class: "flex-1" }, Rd = {
2899
2899
  key: 0,
2900
- class: "text-center"
2901
- }, Ic = {
2900
+ class: "text-center font-bold mb-1"
2901
+ }, Dd = {
2902
2902
  key: 1,
2903
- class: "mb-1"
2904
- }, kc = { class: "text-xs w-full table-fixed border border-accented" }, Pc = { class: "w-[100px] break-words !p-0 !pr-1 border border-accented" }, Nc = { class: "break-words !p-0 !pl-1 border-b border-accented" }, Cc = {
2903
+ class: "mb-2"
2904
+ }, Id = { class: "text-xs w-full table-fixed border border-default" }, Pd = { class: "w-[100px] break-words !p-1 border border-default" }, kd = { class: "break-words !p-1 border border-default" }, Nd = {
2905
2905
  key: 2,
2906
- class: "w-full text-xs border border-accented"
2907
- }, Mc = { class: "text-center" }, jc = { class: "text-right" }, Bc = { class: "text-right" }, Lc = { class: "" }, zc = { class: "rounded-lg mt-1 min-w-[400px]" }, Uc = { class: "w-full text-xs" }, Gc = /* @__PURE__ */ V({
2906
+ class: "w-full text-xs border border-default"
2907
+ }, Cd = { class: "p-1 border border-default text-center" }, Md = { class: "p-1 border border-default text-right" }, jd = { class: "p-1 border border-default text-right" }, Bd = { class: "p-1 border border-default" }, Ld = { class: "rounded-lg mt-1 w-[320px] shrink-0" }, zd = { class: "w-full text-xs" }, Ud = /* @__PURE__ */ V({
2908
2908
  __name: "factura",
2909
2909
  props: {
2910
2910
  document: {
@@ -2923,133 +2923,133 @@ const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between
2923
2923
  }
2924
2924
  },
2925
2925
  setup(t) {
2926
- const e = t, n = An(e.document), r = xe(e.document), o = Sn(e.document), i = P(() => {
2926
+ const e = t, n = wn(e.document), r = Oe(e.document), o = An(e.document), i = k(() => {
2927
2927
  var s;
2928
- const f = (s = Tn.find((c) => c.value == n.tipoIdentificacionComprador)) == null ? void 0 : s.label;
2929
- return f || "NO ENCONTRADO";
2930
- }), d = Ht(e.document);
2928
+ const c = (s = Sn.find((d) => d.value == n.tipoIdentificacionComprador)) == null ? void 0 : s.label;
2929
+ return c || "NO ENCONTRADO";
2930
+ }), f = Ht(e.document);
2931
2931
  function u() {
2932
- if (d.length === 0)
2932
+ if (f.length === 0)
2933
2933
  return [];
2934
- const f = d.some((E) => E.codigoAuxiliar), s = d.some((E) => E.unidadMedida), c = d[0], p = ["#"];
2935
- return c != null && c.codigoPrincipal && p.push("COD"), f && p.push("COD.aux"), c != null && c.descripcion && p.push("Descripcion"), c != null && c.cantidad && p.push("CANT"), s && p.push("UNIDAD"), c != null && c.precioUnitario && p.push("PVP"), c != null && c.descuento && p.push("DESC"), c != null && c.detallesAdicionales && (c == null || c.detallesAdicionales.detAdicional.forEach((E) => {
2934
+ const c = f.some((E) => E.codigoAuxiliar), s = f.some((E) => E.unidadMedida), d = f[0], p = ["#"];
2935
+ return d != null && d.codigoPrincipal && p.push("COD"), c && p.push("COD.aux"), d != null && d.descripcion && p.push("Descripcion"), d != null && d.cantidad && p.push("CANT"), s && p.push("UNIDAD"), d != null && d.precioUnitario && p.push("PVP"), d != null && d.descuento && p.push("DESC"), d != null && d.detallesAdicionales && (d == null || d.detallesAdicionales.detAdicional.forEach((E) => {
2936
2936
  p.push(E["@nombre"]);
2937
- })), c != null && c.precioTotalSinImpuesto && p.push("TOTAL"), p;
2937
+ })), d != null && d.precioTotalSinImpuesto && p.push("TOTAL"), p;
2938
2938
  }
2939
- function b() {
2940
- let f = [];
2941
- const s = [];
2939
+ function m() {
2942
2940
  let c = [];
2943
- f = d;
2944
- const p = f.some((m) => m.codigoAuxiliar), E = f.some((m) => m.unidadMedida);
2945
- return f.forEach((m, k) => {
2946
- c = [], c.push({ valor: k + 1, clase: "text-center" }), m.codigoPrincipal && c.push({ valor: m.codigoPrincipal }), p && c.push({ valor: m.codigoAuxiliar ?? "" }), m.descripcion && c.push({ valor: m.descripcion }), m.cantidad && c.push({ valor: m.cantidad, clase: "text-right" }), E && c.push({ valor: m.unidadMedida ?? "", clase: "text-right" }), m.precioUnitario && c.push({ valor: m.precioUnitario, clase: "text-right" }), m.descuento && c.push({ valor: m.descuento, clase: "text-right" }), m.detallesAdicionales && m.detallesAdicionales.detAdicional.forEach((y) => {
2947
- c.push({ valor: y["@valor"] });
2948
- }), m.precioTotalSinImpuesto && c.push({
2949
- valor: m.precioTotalSinImpuesto,
2941
+ const s = [];
2942
+ let d = [];
2943
+ c = f;
2944
+ const p = c.some((y) => y.codigoAuxiliar), E = c.some((y) => y.unidadMedida);
2945
+ return c.forEach((y, P) => {
2946
+ d = [], d.push({ valor: P + 1, clase: "text-center" }), y.codigoPrincipal && d.push({ valor: y.codigoPrincipal }), p && d.push({ valor: y.codigoAuxiliar ?? "" }), y.descripcion && d.push({ valor: y.descripcion }), y.cantidad && d.push({ valor: y.cantidad, clase: "text-right" }), E && d.push({ valor: y.unidadMedida ?? "", clase: "text-right" }), y.precioUnitario && d.push({ valor: y.precioUnitario, clase: "text-right" }), y.descuento && d.push({ valor: y.descuento, clase: "text-right" }), y.detallesAdicionales && y.detallesAdicionales.detAdicional.forEach((g) => {
2947
+ d.push({ valor: g["@valor"] });
2948
+ }), y.precioTotalSinImpuesto && d.push({
2949
+ valor: y.precioTotalSinImpuesto,
2950
2950
  clase: "text-right"
2951
- }), s.push(c);
2951
+ }), s.push(d);
2952
2952
  }), s;
2953
2953
  }
2954
- return (f, s) => (h(), v("div", _c, [
2955
- t.dateAuthorization ? (h(), v("div", pc, [
2956
- a("div", gc, " Documento autorizado el " + l(t.dateAuthorization ?? "SIN FECHA"), 1)
2954
+ return (c, s) => (h(), v("div", vd, [
2955
+ t.dateAuthorization ? (h(), v("div", _d, [
2956
+ a("div", pd, " Documento autorizado el " + l(t.dateAuthorization ?? "SIN FECHA"), 1)
2957
2957
  ])) : $("", !0),
2958
2958
  q(Ce, {
2959
2959
  document: t.document,
2960
2960
  logoUrl: t.logoUrl,
2961
2961
  dateAuthorization: t.dateAuthorization
2962
2962
  }, null, 8, ["document", "logoUrl", "dateAuthorization"]),
2963
- a("div", yc, [
2964
- a("div", bc, [
2965
- a("div", mc, [
2963
+ a("div", bd, [
2964
+ a("div", gd, [
2965
+ a("div", md, [
2966
2966
  s[0] || (s[0] = a("div", { class: "font-bold pr-2" }, " Razón Social / Nombres y Apellidos : ", -1)),
2967
- a("div", null, l(D(n).razonSocialComprador || "no hay"), 1)
2967
+ a("div", null, l(I(n).razonSocialComprador || "no hay"), 1)
2968
2968
  ]),
2969
- a("div", Ec, [
2969
+ a("div", yd, [
2970
2970
  s[1] || (s[1] = a("div", { class: "font-bold" }, " Identificación: ", -1)),
2971
- a("div", null, l(D(n).identificacionComprador || "no hay"), 1),
2972
- a("div", Oc, l(D(n).tipoIdentificacionComprador) + ": " + l(i.value), 1)
2971
+ a("div", null, l(I(n).identificacionComprador || "no hay"), 1),
2972
+ a("div", Ed, l(I(n).tipoIdentificacionComprador) + ": " + l(i.value), 1)
2973
2973
  ]),
2974
- a("div", xc, [
2974
+ a("div", xd, [
2975
2975
  s[2] || (s[2] = a("div", { class: "font-bold pr-2" }, " FECHA EMISION: ", -1)),
2976
- a("div", null, l(D(n).fechaEmision), 1),
2976
+ a("div", null, l(I(n).fechaEmision), 1),
2977
2977
  s[3] || (s[3] = a("div", { class: "font-bold pr-2 pl-4" }, " GUIA: ", -1)),
2978
- D(n).guiaRemision ? (h(), v("div", $c, l(D(n).guiaRemision), 1)) : $("", !0)
2978
+ I(n).guiaRemision ? (h(), v("div", Od, l(I(n).guiaRemision), 1)) : $("", !0)
2979
2979
  ]),
2980
- D(n).direccionComprador ? (h(), v("div", wc, [
2980
+ I(n).direccionComprador ? (h(), v("div", $d, [
2981
2981
  s[4] || (s[4] = a("div", { class: "font-bold pr-2" }, " Dirección: ", -1)),
2982
- a("div", null, l(D(n).direccionComprador), 1)
2982
+ a("div", null, l(I(n).direccionComprador), 1)
2983
2983
  ])) : $("", !0)
2984
2984
  ])
2985
2985
  ]),
2986
- a("div", Ac, [
2987
- a("table", Sc, [
2986
+ a("div", wd, [
2987
+ a("table", Ad, [
2988
2988
  a("thead", null, [
2989
2989
  a("tr", null, [
2990
- (h(!0), v(S, null, I(u(), (c, p) => (h(), v("th", {
2990
+ (h(!0), v(S, null, D(u(), (d, p) => (h(), v("th", {
2991
2991
  key: p,
2992
- class: "border"
2993
- }, l(c), 1))), 128))
2992
+ class: "border border-default"
2993
+ }, l(d), 1))), 128))
2994
2994
  ])
2995
2995
  ]),
2996
2996
  a("tbody", null, [
2997
- (h(!0), v(S, null, I(b(), (c, p) => (h(), v("tr", { key: p }, [
2998
- (h(!0), v(S, null, I(c, (E, m) => (h(), v("td", {
2999
- key: m,
3000
- class: Oe(["break-words border", E.clase ? E.clase : ""])
2997
+ (h(!0), v(S, null, D(m(), (d, p) => (h(), v("tr", { key: p }, [
2998
+ (h(!0), v(S, null, D(d, (E, y) => (h(), v("td", {
2999
+ key: y,
3000
+ class: xe(["break-words border border-default", E.clase ? E.clase : ""])
3001
3001
  }, l(E.valor), 3))), 128))
3002
3002
  ]))), 128))
3003
3003
  ])
3004
3004
  ])
3005
3005
  ]),
3006
- a("div", Tc, [
3007
- a("div", Rc, [
3008
- D(r) ? (h(), v("div", Dc, " Información Adicional ")) : $("", !0),
3009
- D(r) ? (h(), v("div", Ic, [
3010
- a("table", kc, [
3006
+ a("div", Sd, [
3007
+ a("div", Td, [
3008
+ I(r) ? (h(), v("div", Rd, " Información Adicional ")) : $("", !0),
3009
+ I(r) ? (h(), v("div", Dd, [
3010
+ a("table", Id, [
3011
3011
  a("tbody", null, [
3012
- (h(!0), v(S, null, I(D(r), (c, p) => (h(), v("tr", { key: p }, [
3013
- a("td", Pc, l(c.name), 1),
3014
- a("td", Nc, l(c.value), 1)
3012
+ (h(!0), v(S, null, D(I(r), (d, p) => (h(), v("tr", { key: p }, [
3013
+ a("td", Pd, l(d.name), 1),
3014
+ a("td", kd, l(d.value), 1)
3015
3015
  ]))), 128))
3016
3016
  ])
3017
3017
  ])
3018
3018
  ])) : $("", !0),
3019
- D(o) ? (h(), v("table", Cc, [
3019
+ I(o) ? (h(), v("table", Nd, [
3020
3020
  s[5] || (s[5] = a("thead", null, [
3021
- a("tr", null, [
3022
- a("th", { class: "" }, " Forma de pago "),
3023
- a("th", { class: "" }, " Valor "),
3024
- a("th", { class: "" }, " PAZO "),
3025
- a("th", { class: "" }, " TIEMPO ")
3021
+ a("tr", { class: "text-left" }, [
3022
+ a("th", { class: "p-1 border border-default" }, " Forma de pago "),
3023
+ a("th", { class: "p-1 border border-default text-right" }, " Valor "),
3024
+ a("th", { class: "p-1 border border-default text-right" }, " PLAZO "),
3025
+ a("th", { class: "p-1 border border-default" }, " TIEMPO ")
3026
3026
  ])
3027
3027
  ], -1)),
3028
3028
  a("tbody", null, [
3029
- (h(!0), v(S, null, I(D(o), (c, p) => (h(), v("tr", { key: p }, [
3030
- a("td", Mc, l(c.formaPago), 1),
3031
- a("td", jc, l(c.total), 1),
3032
- a("td", Bc, l(c.plazo), 1),
3033
- a("td", Lc, l(c.unidadTiempo), 1)
3029
+ (h(!0), v(S, null, D(I(o), (d, p) => (h(), v("tr", { key: p }, [
3030
+ a("td", Cd, l(d.formaPago), 1),
3031
+ a("td", Md, l(d.total), 1),
3032
+ a("td", jd, l(d.plazo), 1),
3033
+ a("td", Bd, l(d.unidadTiempo), 1)
3034
3034
  ]))), 128))
3035
3035
  ])
3036
3036
  ])) : $("", !0)
3037
3037
  ]),
3038
- a("div", zc, [
3039
- a("table", Uc, [
3040
- q(mn, { data: t.document }, null, 8, ["data"])
3038
+ a("div", Ld, [
3039
+ a("table", zd, [
3040
+ q(yn, { data: t.document }, null, 8, ["data"])
3041
3041
  ])
3042
3042
  ])
3043
3043
  ])
3044
3044
  ]));
3045
3045
  }
3046
- }), Fc = { class: "max-w-5xl mx-auto print:border bg-gray-50 text-black m-1 rounded-md p-1 printContent print:mx-0 print:w-screen" }, Vc = {
3046
+ }), Gd = { class: "max-w-5xl mx-auto bg-default text-default m-1 rounded-md p-1 printContent print:mx-0 print:w-screen" }, Fd = {
3047
3047
  key: 0,
3048
- class: "print:hidden flex justify-end"
3049
- }, Hc = { class: "font-bold text-green-700" }, Xc = { class: "border rounded-lg w-full mt-8" }, qc = { class: "flex-none flex" }, Yc = { class: "font-bold mx-2" }, Jc = { class: "flex" }, Zc = { class: "flex" }, Wc = { class: "flex gap-x-2" }, Qc = { class: "mx-10" }, Kc = { class: "flex" }, ef = { class: "flex justify-between items-center" }, tf = { class: "font-bold text-2xl" }, nf = { class: "border rounded-lg w-full mt-8" }, rf = { class: "overflow-x-auto" }, of = { class: "w-full table-bordered text-xs" }, af = { class: "flex justify-center flex-wrap" }, uf = { class: "border rounded-lg w-1/2" }, lf = {
3048
+ class: "print:!hidden flex justify-end"
3049
+ }, Vd = { class: "font-bold text-primary" }, Hd = { class: "border border-default rounded-lg w-full mt-8 p-2" }, Xd = { class: "flex-none flex" }, qd = { class: "font-bold mx-2" }, Yd = { class: "flex" }, Jd = { class: "flex" }, Zd = { class: "flex gap-x-2" }, Wd = { class: "mx-10" }, Qd = { class: "flex" }, Kd = { class: "flex justify-between items-center" }, ec = { class: "font-bold text-2xl" }, tc = { class: "border border-default rounded-lg w-full mt-8 p-1" }, nc = { class: "overflow-x-auto" }, rc = { class: "w-full table-bordered text-xs border border-default" }, oc = { class: "bg-muted" }, ac = { class: "flex justify-between gap-4 mt-2 p-1" }, ic = { class: "border border-default rounded-lg w-1/2 p-2" }, uc = {
3050
3050
  key: 0,
3051
3051
  class: "text-xs w-full table-fixed"
3052
- }, cf = { class: "break-words font-bold" }, ff = { class: "w-full break-words" }, df = { class: "rounded-lg w-1/2" }, sf = /* @__PURE__ */ V({
3052
+ }, lc = { class: "break-words font-bold bg-muted p-1 border border-default w-[120px]" }, dc = { class: "break-words p-1 border border-default" }, cc = { class: "rounded-lg w-1/2" }, fc = /* @__PURE__ */ V({
3053
3053
  __name: "notaCredito",
3054
3054
  props: {
3055
3055
  document: {
@@ -3069,21 +3069,21 @@ const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between
3069
3069
  },
3070
3070
  setup(t) {
3071
3071
  const e = t;
3072
- P(() => Rn(e.document));
3073
- const n = P(() => xe(e.document)), r = P(() => Ht(e.document)), o = P(() => {
3074
- const b = e.document.getElementsByTagName("infoNotaCredito");
3075
- if (!b || b.length === 0) return {};
3076
- const f = b[0], s = {};
3077
- for (let c = 0; c < f.children.length; c++) {
3078
- const p = f.children[c];
3072
+ k(() => Tn(e.document));
3073
+ const n = k(() => Oe(e.document)), r = k(() => Ht(e.document)), o = k(() => {
3074
+ const m = e.document.getElementsByTagName("infoNotaCredito");
3075
+ if (!m || m.length === 0) return {};
3076
+ const c = m[0], s = {};
3077
+ for (let d = 0; d < c.children.length; d++) {
3078
+ const p = c.children[d];
3079
3079
  s[p.tagName] = p.textContent || "";
3080
3080
  }
3081
3081
  return s;
3082
3082
  });
3083
- function i(b, f = 0) {
3084
- switch (f) {
3083
+ function i(m, c = 0) {
3084
+ switch (c) {
3085
3085
  case 0:
3086
- switch (b) {
3086
+ switch (m) {
3087
3087
  case "05":
3088
3088
  return "Cedula";
3089
3089
  case "04":
@@ -3099,7 +3099,7 @@ const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between
3099
3099
  }
3100
3100
  break;
3101
3101
  case 1:
3102
- switch (b) {
3102
+ switch (m) {
3103
3103
  case "01":
3104
3104
  return "FACTURA";
3105
3105
  case "04":
@@ -3114,7 +3114,7 @@ const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between
3114
3114
  return "FACTURA";
3115
3115
  }
3116
3116
  case 2:
3117
- switch (b) {
3117
+ switch (m) {
3118
3118
  case "2":
3119
3119
  return "RENTA";
3120
3120
  case "1":
@@ -3123,113 +3123,113 @@ const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between
3123
3123
  }
3124
3124
  return "";
3125
3125
  }
3126
- function d() {
3126
+ function f() {
3127
3127
  if (r.value.length === 0) return [];
3128
- const b = r.value[0], f = ["#"];
3129
- return b.codigoPrincipal && f.push("COD"), b.codigoAuxiliar && f.push("COD.aux"), b.descripcion && f.push("Descripcion"), b.cantidad && f.push("CANT"), b.precioUnitario && f.push("PVP"), b.descuento && f.push("DESC"), b.precioTotalSinImpuesto && f.push("TOTAL"), f;
3128
+ const m = r.value[0], c = ["#"];
3129
+ return m.codigoPrincipal && c.push("COD"), m.codigoAuxiliar && c.push("COD.aux"), m.descripcion && c.push("Descripcion"), m.cantidad && c.push("CANT"), m.precioUnitario && c.push("PVP"), m.descuento && c.push("DESC"), m.precioTotalSinImpuesto && c.push("TOTAL"), c;
3130
3130
  }
3131
3131
  function u() {
3132
- const b = [];
3133
- return r.value.forEach((f, s) => {
3134
- const c = [];
3135
- c.push({ valor: s + 1 }), f.codigoPrincipal && c.push({ valor: f.codigoPrincipal }), f.codigoAuxiliar && c.push({ valor: f.codigoAuxiliar }), f.descripcion && c.push({ valor: f.descripcion }), f.cantidad && c.push({ valor: f.cantidad, clase: "text-right" }), f.precioUnitario && c.push({ valor: f.precioUnitario, clase: "text-right" }), f.descuento && c.push({ valor: f.descuento, clase: "text-right" }), f.precioTotalSinImpuesto && c.push({
3136
- valor: f.precioTotalSinImpuesto,
3132
+ const m = [];
3133
+ return r.value.forEach((c, s) => {
3134
+ const d = [];
3135
+ d.push({ valor: s + 1 }), c.codigoPrincipal && d.push({ valor: c.codigoPrincipal }), c.codigoAuxiliar && d.push({ valor: c.codigoAuxiliar }), c.descripcion && d.push({ valor: c.descripcion }), c.cantidad && d.push({ valor: c.cantidad, clase: "text-right" }), c.precioUnitario && d.push({ valor: c.precioUnitario, clase: "text-right" }), c.descuento && d.push({ valor: c.descuento, clase: "text-right" }), c.precioTotalSinImpuesto && d.push({
3136
+ valor: c.precioTotalSinImpuesto,
3137
3137
  clase: "text-right"
3138
- }), b.push(c);
3139
- }), b;
3138
+ }), m.push(d);
3139
+ }), m;
3140
3140
  }
3141
- return (b, f) => (h(), v("div", Fc, [
3142
- t.authorization ? (h(), v("div", Vc, [
3143
- a("div", Hc, " Documento autorizado el " + l(t.authorization), 1)
3141
+ return (m, c) => (h(), v("div", Gd, [
3142
+ t.authorization ? (h(), v("div", Fd, [
3143
+ a("div", Vd, " Documento autorizado el " + l(t.authorization), 1)
3144
3144
  ])) : $("", !0),
3145
3145
  q(Ce, {
3146
3146
  document: t.document,
3147
3147
  logoUrl: t.logoUrl,
3148
3148
  dateAuthorization: t.authorization
3149
3149
  }, null, 8, ["document", "logoUrl", "dateAuthorization"]),
3150
- a("div", Xc, [
3151
- a("div", qc, [
3152
- f[0] || (f[0] = a("div", { class: "font-bold pr-2" }, " Razón Social / Nombres y Apellidos : ", -1)),
3150
+ a("div", Hd, [
3151
+ a("div", Xd, [
3152
+ c[0] || (c[0] = a("div", { class: "font-bold pr-2" }, " Razón Social / Nombres y Apellidos : ", -1)),
3153
3153
  a("div", null, l(o.value.razonSocialComprador), 1),
3154
- f[1] || (f[1] = a("div", { class: "font-bold pr-2 mx-2" }, " Identificacion : ", -1)),
3154
+ c[1] || (c[1] = a("div", { class: "font-bold pr-2 mx-2" }, " Identificacion : ", -1)),
3155
3155
  a("div", null, l(o.value.identificacionComprador), 1),
3156
- a("div", Yc, " (" + l(i(o.value.tipoIdentificacionComprador, 0)) + ") ", 1)
3156
+ a("div", qd, " (" + l(i(o.value.tipoIdentificacionComprador, 0)) + ") ", 1)
3157
3157
  ]),
3158
- a("div", Jc, [
3159
- a("div", Zc, [
3160
- f[2] || (f[2] = a("div", { class: "font-bold pr-2" }, " Fecha Emisión : ", -1)),
3158
+ a("div", Yd, [
3159
+ a("div", Jd, [
3160
+ c[2] || (c[2] = a("div", { class: "font-bold pr-2" }, " Fecha Emisión : ", -1)),
3161
3161
  a("div", null, l(o.value.fechaEmision), 1)
3162
3162
  ])
3163
3163
  ]),
3164
- f[7] || (f[7] = a("div", { class: "px-10 py-4" }, [
3165
- a("hr")
3164
+ c[7] || (c[7] = a("div", { class: "py-4" }, [
3165
+ a("hr", { class: "border-default" })
3166
3166
  ], -1)),
3167
3167
  a("div", null, [
3168
- a("div", Wc, [
3169
- f[3] || (f[3] = a("div", { class: "font-bold pr-2" }, " Comprobante que se modifica : ", -1)),
3168
+ a("div", Zd, [
3169
+ c[3] || (c[3] = a("div", { class: "font-bold pr-2" }, " Comprobante que se modifica : ", -1)),
3170
3170
  a("div", null, l(i(o.value.codDocModificado, 1)), 1),
3171
- a("div", Qc, l(o.value.numDocModificado), 1)
3171
+ a("div", Wd, l(o.value.numDocModificado), 1)
3172
3172
  ]),
3173
- a("div", Kc, [
3174
- f[4] || (f[4] = a("div", { class: "font-bold pr-2" }, " Fecha Emision (Comprobante a modificar) : ", -1)),
3173
+ a("div", Qd, [
3174
+ c[4] || (c[4] = a("div", { class: "font-bold pr-2" }, " Fecha Emision (Comprobante a modificar) : ", -1)),
3175
3175
  a("div", null, l(o.value.fechaEmisionDocSustento), 1)
3176
3176
  ]),
3177
- a("div", ef, [
3178
- f[5] || (f[5] = a("div", { class: "font-bold pr-2" }, " Razón de Modificación: ", -1)),
3179
- a("div", tf, l(o.value.motivo), 1),
3180
- f[6] || (f[6] = a("div", { class: "mx-10" }, null, -1))
3177
+ a("div", Kd, [
3178
+ c[5] || (c[5] = a("div", { class: "font-bold pr-2" }, " Razón de Modificación: ", -1)),
3179
+ a("div", ec, l(o.value.motivo), 1),
3180
+ c[6] || (c[6] = a("div", { class: "mx-10" }, null, -1))
3181
3181
  ])
3182
3182
  ])
3183
3183
  ]),
3184
- a("div", nf, [
3185
- a("div", rf, [
3186
- a("table", of, [
3184
+ a("div", tc, [
3185
+ a("div", nc, [
3186
+ a("table", rc, [
3187
3187
  a("thead", null, [
3188
- a("tr", null, [
3189
- (h(!0), v(S, null, I(d(), (s, c) => (h(), v("th", {
3190
- key: c,
3191
- class: "border"
3188
+ a("tr", oc, [
3189
+ (h(!0), v(S, null, D(f(), (s, d) => (h(), v("th", {
3190
+ key: d,
3191
+ class: "border border-default p-1 text-left"
3192
3192
  }, l(s), 1))), 128))
3193
3193
  ])
3194
3194
  ]),
3195
3195
  a("tbody", null, [
3196
- (h(!0), v(S, null, I(u(), (s, c) => (h(), v("tr", { key: c }, [
3197
- (h(!0), v(S, null, I(s, (p, E) => (h(), v("td", {
3196
+ (h(!0), v(S, null, D(u(), (s, d) => (h(), v("tr", { key: d }, [
3197
+ (h(!0), v(S, null, D(s, (p, E) => (h(), v("td", {
3198
3198
  key: E,
3199
- class: Oe(["break-words border", p.clase ? p.clase : ""])
3199
+ class: xe(["break-words border border-default p-1", p.clase ? p.clase : ""])
3200
3200
  }, l(p.valor), 3))), 128))
3201
3201
  ]))), 128))
3202
3202
  ])
3203
3203
  ])
3204
3204
  ]),
3205
- a("div", af, [
3206
- a("div", uf, [
3207
- f[8] || (f[8] = a("div", { class: "text-center" }, " Información Adicional ", -1)),
3205
+ a("div", ac, [
3206
+ a("div", ic, [
3207
+ c[8] || (c[8] = a("div", { class: "text-center font-bold mb-1" }, " Información Adicional ", -1)),
3208
3208
  a("div", null, [
3209
- n.value && n.value.length > 0 ? (h(), v("table", lf, [
3209
+ n.value && n.value.length > 0 ? (h(), v("table", uc, [
3210
3210
  a("tbody", null, [
3211
- (h(!0), v(S, null, I(n.value, (s, c) => (h(), v("tr", { key: c }, [
3212
- a("td", cf, l(s.name), 1),
3213
- a("td", ff, l(s.value), 1)
3211
+ (h(!0), v(S, null, D(n.value, (s, d) => (h(), v("tr", { key: d }, [
3212
+ a("td", lc, l(s.name), 1),
3213
+ a("td", dc, l(s.value), 1)
3214
3214
  ]))), 128))
3215
3215
  ])
3216
3216
  ])) : $("", !0)
3217
3217
  ])
3218
3218
  ]),
3219
- a("div", df, [
3220
- q(mn, { data: t.document }, null, 8, ["data"])
3219
+ a("div", cc, [
3220
+ q(yn, { data: t.document }, null, 8, ["data"])
3221
3221
  ])
3222
3222
  ])
3223
3223
  ])
3224
3224
  ]));
3225
3225
  }
3226
- }), hf = { class: "text-xs flex flex-col gap-2 max-w-5xl mx-auto bg-gray-50 text-black m-1 rounded-md p-1 printContent print:mx-0 print:w-full" }, vf = {
3226
+ }), sc = { class: "text-xs flex flex-col gap-2 max-w-5xl mx-auto bg-default text-default m-1 rounded-md p-1 printContent print:mx-0 print:w-full" }, hc = {
3227
3227
  key: 0,
3228
- class: "print:hidden flex justify-end"
3229
- }, _f = { class: "font-bold text-green-700" }, pf = { class: "border rounded-lg p-2 mt-2" }, gf = { class: "grid grid-cols-2 gap-2" }, yf = { class: "bg-gray-200 px-2 py-0.5 rounded font-mono font-bold" }, bf = { class: "grid grid-cols-[200px_1fr]" }, mf = { class: "font-bold uppercase" }, Ef = { class: "ml-5" }, Of = { class: "font-bold" }, xf = { class: "font-bold" }, $f = { class: "font-bold" }, wf = { class: "font-bold" }, Af = { class: "font-bold" }, Sf = { class: "font-bold" }, Tf = { class: "font-bold" }, Rf = { class: "p-4" }, Df = { class: "w-full border border-accented text-xs" }, If = { class: "bg-accented text-left text-gray-700" }, kf = {
3228
+ class: "print:!hidden flex justify-end"
3229
+ }, vc = { class: "font-bold text-primary" }, _c = { class: "border border-default rounded-lg p-2 mt-2" }, pc = { class: "grid grid-cols-2 gap-2" }, bc = { class: "bg-muted px-2 py-0.5 rounded font-mono font-bold" }, gc = { class: "grid grid-cols-[200px_1fr] gap-y-1" }, mc = { class: "font-bold uppercase text-primary" }, yc = { class: "ml-5" }, Ec = { class: "font-bold" }, xc = { class: "font-bold" }, Oc = { class: "font-bold" }, $c = { class: "font-bold" }, wc = { class: "font-bold" }, Ac = { class: "font-bold" }, Sc = { class: "font-bold" }, Tc = { class: "p-2 mt-2" }, Rc = { class: "w-full border border-default text-xs" }, Dc = { class: "bg-muted text-left text-default" }, Ic = {
3230
3230
  key: 1,
3231
- class: "mx-20"
3232
- }, Pf = { class: "text-xs w-full table-fixed border border-accented" }, Nf = { class: "w-1/3 break-words !p-1 border font-bold bg-gray-50" }, Cf = { class: "w-2/3 break-words !p-1 border" }, Mf = /* @__PURE__ */ V({
3231
+ class: "mx-20 mt-2"
3232
+ }, Pc = { class: "text-xs w-full table-fixed border border-default" }, kc = { class: "w-1/3 break-words !p-1 border border-default font-bold bg-muted" }, Nc = { class: "w-2/3 break-words !p-1 border border-default" }, Cc = /* @__PURE__ */ V({
3233
3233
  __name: "guiaRemision",
3234
3234
  props: {
3235
3235
  document: {
@@ -3248,88 +3248,88 @@ const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between
3248
3248
  }
3249
3249
  },
3250
3250
  setup(t) {
3251
- const e = t, n = P(() => {
3252
- const f = e.document, s = f == null ? void 0 : f.getElementsByTagName("infoGuiaRemision").item(0);
3251
+ const e = t, n = k(() => {
3252
+ const c = e.document, s = c == null ? void 0 : c.getElementsByTagName("infoGuiaRemision").item(0);
3253
3253
  if (!s) return {};
3254
- const c = {};
3254
+ const d = {};
3255
3255
  for (let p = 0; p < s.children.length; p++) {
3256
3256
  const E = s.children[p];
3257
- c[E.tagName] = E.textContent || "";
3257
+ d[E.tagName] = E.textContent || "";
3258
3258
  }
3259
- return c;
3260
- }), r = P(() => {
3261
- const f = e.document, s = f == null ? void 0 : f.getElementsByTagName("destinatario");
3259
+ return d;
3260
+ }), r = k(() => {
3261
+ const c = e.document, s = c == null ? void 0 : c.getElementsByTagName("destinatario");
3262
3262
  if (!s) return [];
3263
- const c = [];
3263
+ const d = [];
3264
3264
  for (let p = 0; p < s.length; p++) {
3265
3265
  const E = s.item(p);
3266
3266
  if (!E) continue;
3267
- const m = {};
3268
- for (let y = 0; y < E.children.length; y++) {
3269
- const _ = E.children[y];
3270
- _.tagName !== "detalles" && (m[_.tagName] = _.textContent || "");
3267
+ const y = {};
3268
+ for (let g = 0; g < E.children.length; g++) {
3269
+ const _ = E.children[g];
3270
+ _.tagName !== "detalles" && (y[_.tagName] = _.textContent || "");
3271
3271
  }
3272
- m.detalles = [];
3273
- const k = E.getElementsByTagName("detalle");
3274
- for (let y = 0; y < k.length; y++) {
3275
- const _ = k.item(y);
3272
+ y.detalles = [];
3273
+ const P = E.getElementsByTagName("detalle");
3274
+ for (let g = 0; g < P.length; g++) {
3275
+ const _ = P.item(g);
3276
3276
  if (!_) continue;
3277
- const g = {};
3278
- for (let O = 0; O < _.children.length; O++) {
3279
- const w = _.children[O];
3277
+ const b = {};
3278
+ for (let x = 0; x < _.children.length; x++) {
3279
+ const w = _.children[x];
3280
3280
  if (w.tagName === "detallesAdicionales") {
3281
- g.detallesAdicionales = [];
3282
- const x = w.getElementsByTagName("detAdicional");
3283
- for (let A = 0; A < x.length; A++) {
3284
- const R = x.item(A);
3285
- R && g.detallesAdicionales.push({
3281
+ b.detallesAdicionales = [];
3282
+ const O = w.getElementsByTagName("detAdicional");
3283
+ for (let A = 0; A < O.length; A++) {
3284
+ const R = O.item(A);
3285
+ R && b.detallesAdicionales.push({
3286
3286
  nombre: R.getAttribute("nombre") || "",
3287
3287
  valor: R.getAttribute("valor") || R.textContent || ""
3288
3288
  });
3289
3289
  }
3290
3290
  } else
3291
- g[w.tagName] = w.textContent || "";
3291
+ b[w.tagName] = w.textContent || "";
3292
3292
  }
3293
- m.detalles.push(g);
3293
+ y.detalles.push(b);
3294
3294
  }
3295
- c.push(m);
3295
+ d.push(y);
3296
3296
  }
3297
- return c;
3298
- }), o = xe(e.document);
3299
- function i(f) {
3297
+ return d;
3298
+ }), o = Oe(e.document);
3299
+ function i(c) {
3300
3300
  const s = /* @__PURE__ */ new Set();
3301
- return f.forEach((c) => {
3302
- c.detallesAdicionales && Array.isArray(c.detallesAdicionales) && c.detallesAdicionales.forEach((p) => {
3301
+ return c.forEach((d) => {
3302
+ d.detallesAdicionales && Array.isArray(d.detallesAdicionales) && d.detallesAdicionales.forEach((p) => {
3303
3303
  p.nombre && s.add(p.nombre);
3304
3304
  });
3305
3305
  }), Array.from(s);
3306
3306
  }
3307
- function d(f) {
3308
- if (f.length === 0) return [];
3307
+ function f(c) {
3308
+ if (c.length === 0) return [];
3309
3309
  const s = [{
3310
3310
  label: "#",
3311
3311
  headerClassName: "text-center"
3312
3312
  }];
3313
- return s.push({ label: "CANT", headerClassName: "text-center" }), s.push({ label: "Descripción" }), f.some((m) => m.codigoInterno) && s.push({ label: "Còdigo Princial" }), f.some((m) => m.codigoAdicional) && s.push({ label: "COD.aux" }), i(f).forEach((m) => {
3314
- s.push({ label: m });
3313
+ return s.push({ label: "CANT", headerClassName: "text-center" }), s.push({ label: "Descripción" }), c.some((y) => y.codigoInterno) && s.push({ label: "Còdigo Princial" }), c.some((y) => y.codigoAdicional) && s.push({ label: "COD.aux" }), i(c).forEach((y) => {
3314
+ s.push({ label: y });
3315
3315
  }), s;
3316
3316
  }
3317
- function u(f) {
3318
- const s = [], c = f.some((m) => m.codigoInterno), p = f.some((m) => m.codigoAdicional), E = i(f);
3319
- return f.forEach((m, k) => {
3320
- const y = [];
3321
- y.push({ valor: k + 1, clase: "text-center" }), y.push({ valor: m.cantidad || "0", clase: "text-right font-bold" }), y.push({ valor: m.descripcion || "" }), c && y.push({ valor: m.codigoInterno || "" }), p && y.push({ valor: m.codigoAdicional || "" }), E.forEach((_) => {
3322
- let g = "";
3323
- if (m.detallesAdicionales && Array.isArray(m.detallesAdicionales)) {
3324
- const O = m.detallesAdicionales.find((w) => w.nombre === _);
3325
- O && (g = O.valor);
3317
+ function u(c) {
3318
+ const s = [], d = c.some((y) => y.codigoInterno), p = c.some((y) => y.codigoAdicional), E = i(c);
3319
+ return c.forEach((y, P) => {
3320
+ const g = [];
3321
+ g.push({ valor: P + 1, clase: "text-center" }), g.push({ valor: y.cantidad || "0", clase: "text-right font-bold" }), g.push({ valor: y.descripcion || "" }), d && g.push({ valor: y.codigoInterno || "" }), p && g.push({ valor: y.codigoAdicional || "" }), E.forEach((_) => {
3322
+ let b = "";
3323
+ if (y.detallesAdicionales && Array.isArray(y.detallesAdicionales)) {
3324
+ const x = y.detallesAdicionales.find((w) => w.nombre === _);
3325
+ x && (b = x.valor);
3326
3326
  }
3327
- y.push({ valor: g });
3328
- }), s.push(y);
3327
+ g.push({ valor: b });
3328
+ }), s.push(g);
3329
3329
  }), s;
3330
3330
  }
3331
- function b(f) {
3332
- switch (f) {
3331
+ function m(c) {
3332
+ switch (c) {
3333
3333
  case "01":
3334
3334
  return "Factura";
3335
3335
  case "04":
@@ -3340,142 +3340,134 @@ const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between
3340
3340
  return "Comprobante";
3341
3341
  }
3342
3342
  }
3343
- return (f, s) => (h(), v("div", hf, [
3344
- t.authorization ? (h(), v("div", vf, [
3345
- a("div", _f, " Documento autorizado el " + l(t.authorization), 1)
3343
+ return (c, s) => (h(), v("div", sc, [
3344
+ t.authorization ? (h(), v("div", hc, [
3345
+ a("div", vc, " Documento autorizado el " + l(t.authorization), 1)
3346
3346
  ])) : $("", !0),
3347
3347
  q(Ce, {
3348
3348
  document: t.document,
3349
3349
  dateAuthorization: t.authorization,
3350
3350
  logoUrl: t.logoUrl
3351
3351
  }, null, 8, ["document", "dateAuthorization", "logoUrl"]),
3352
- a("div", pf, [
3353
- a("div", gf, [
3352
+ a("div", _c, [
3353
+ a("div", pc, [
3354
3354
  a("div", null, [
3355
- s[0] || (s[0] = a("span", { class: "font-bold" }, "Transportista (Razón Social):", -1)),
3355
+ s[0] || (s[0] = a("span", { class: "font-bold text-dimmed" }, "Transportista (Razón Social):", -1)),
3356
3356
  B(" " + l(n.value.razonSocialTransportista), 1)
3357
3357
  ]),
3358
3358
  a("div", null, [
3359
- s[1] || (s[1] = a("span", { class: "font-bold" }, "R.U.C. / C.I.:", -1)),
3359
+ s[1] || (s[1] = a("span", { class: "font-bold text-dimmed" }, "R.U.C. / C.I.:", -1)),
3360
3360
  B(" " + l(n.value.rucTransportista), 1)
3361
3361
  ]),
3362
3362
  a("div", null, [
3363
- s[2] || (s[2] = a("span", { class: "font-bold" }, "Placa del Vehículo:", -1)),
3363
+ s[2] || (s[2] = a("span", { class: "font-bold text-dimmed" }, "Placa del Vehículo:", -1)),
3364
3364
  s[3] || (s[3] = B()),
3365
- a("span", yf, l(n.value.placa), 1)
3365
+ a("span", bc, l(n.value.placa), 1)
3366
3366
  ]),
3367
3367
  a("div", null, [
3368
- s[4] || (s[4] = a("span", { class: "font-bold" }, "Punto de Partida:", -1)),
3368
+ s[4] || (s[4] = a("span", { class: "font-bold text-dimmed" }, "Punto de Partida:", -1)),
3369
3369
  B(" " + l(n.value.dirPartida), 1)
3370
3370
  ]),
3371
3371
  a("div", null, [
3372
- s[5] || (s[5] = a("span", { class: "font-bold" }, "Fecha Inicio Transporte:", -1)),
3372
+ s[5] || (s[5] = a("span", { class: "font-bold text-dimmed" }, "Fecha Inicio Transporte:", -1)),
3373
3373
  B(" " + l(n.value.fechaIniTransporte), 1)
3374
3374
  ]),
3375
3375
  a("div", null, [
3376
- s[6] || (s[6] = a("span", { class: "font-bold" }, "Fecha Fin Transporte:", -1)),
3376
+ s[6] || (s[6] = a("span", { class: "font-bold text-dimmed" }, "Fecha Fin Transporte:", -1)),
3377
3377
  B(" " + l(n.value.fechaFinTransporte), 1)
3378
3378
  ])
3379
3379
  ])
3380
3380
  ]),
3381
- (h(!0), v(S, null, I(r.value, (c, p) => (h(), v("div", {
3381
+ (h(!0), v(S, null, D(r.value, (d, p) => (h(), v("div", {
3382
3382
  key: p,
3383
- class: "border rounded-lg p-2 mt-2"
3383
+ class: "border border-default rounded-lg p-2 mt-2"
3384
3384
  }, [
3385
- a("div", bf, [
3386
- c.numDocSustento ? (h(), v(S, { key: 0 }, [
3387
- s[8] || (s[8] = a("div", null, " Comprobante de venta: ", -1)),
3385
+ a("div", gc, [
3386
+ d.numDocSustento ? (h(), v(S, { key: 0 }, [
3387
+ s[8] || (s[8] = a("div", { class: "text-dimmed" }, " Comprobante de venta: ", -1)),
3388
3388
  a("div", null, [
3389
- a("span", mf, l(b(c.codDocSustento ?? "")) + " " + l(c.numDocSustento), 1),
3390
- a("span", Ef, [
3389
+ a("span", mc, l(m(d.codDocSustento ?? "")) + " " + l(d.numDocSustento), 1),
3390
+ a("span", yc, [
3391
3391
  s[7] || (s[7] = B(" Fecha de emisión: ", -1)),
3392
- a("span", Of, l(c.fechaEmisionDocSustento), 1)
3392
+ a("span", Ec, l(d.fechaEmisionDocSustento), 1)
3393
3393
  ])
3394
3394
  ]),
3395
- s[9] || (s[9] = a("div", null, " Numero de autorización: ", -1)),
3395
+ s[9] || (s[9] = a("div", { class: "text-dimmed" }, " Numero de autorización: ", -1)),
3396
3396
  a("div", null, [
3397
- a("span", xf, l(c.numAutDocSustento), 1)
3397
+ a("span", xc, l(d.numAutDocSustento), 1)
3398
3398
  ])
3399
3399
  ], 64)) : $("", !0),
3400
- s[10] || (s[10] = a("div", null, " Motivo de Traslado: ", -1)),
3401
- a("div", $f, l(c.motivoTraslado), 1),
3402
- s[11] || (s[11] = a("div", null, " DESTINO (punto de llegada) : ", -1)),
3403
- a("div", wf, l(c.dirDestinatario), 1),
3404
- s[12] || (s[12] = a("div", null, " Identificación(Destinatario) : ", -1)),
3405
- a("div", Af, l(c.identificacionDestinatario), 1),
3406
- s[13] || (s[13] = a("div", null, " Nombre / Razón Social ", -1)),
3407
- a("div", Sf, l(c.razonSocialDestinatario), 1),
3408
- s[14] || (s[14] = a("div", null, " Ruta: ", -1)),
3409
- a("div", Tf, l(c.ruta ?? ""), 1)
3400
+ s[10] || (s[10] = a("div", { class: "text-dimmed" }, " Motivo de Traslado: ", -1)),
3401
+ a("div", Oc, l(d.motivoTraslado), 1),
3402
+ s[11] || (s[11] = a("div", { class: "text-dimmed" }, " DESTINO (punto de llegada) : ", -1)),
3403
+ a("div", $c, l(d.dirDestinatario), 1),
3404
+ s[12] || (s[12] = a("div", { class: "text-dimmed" }, " Identificación(Destinatario) : ", -1)),
3405
+ a("div", wc, l(d.identificacionDestinatario), 1),
3406
+ s[13] || (s[13] = a("div", { class: "text-dimmed" }, " Nombre / Razón Social ", -1)),
3407
+ a("div", Ac, l(d.razonSocialDestinatario), 1),
3408
+ s[14] || (s[14] = a("div", { class: "text-dimmed" }, " Ruta: ", -1)),
3409
+ a("div", Sc, l(d.ruta ?? ""), 1)
3410
3410
  ]),
3411
- a("div", Rf, [
3412
- a("table", Df, [
3411
+ a("div", Tc, [
3412
+ a("table", Rc, [
3413
3413
  a("thead", null, [
3414
- a("tr", If, [
3415
- (h(!0), v(S, null, I(d(c.detalles), (E, m) => (h(), v("th", {
3416
- key: m,
3417
- class: Oe(["p-1 font-bold", E.headerClassName ? E.headerClassName : ""])
3414
+ a("tr", Dc, [
3415
+ (h(!0), v(S, null, D(f(d.detalles), (E, y) => (h(), v("th", {
3416
+ key: y,
3417
+ class: xe(["border border-default p-1 font-bold", E.headerClassName ? E.headerClassName : ""])
3418
3418
  }, l(E.label), 3))), 128))
3419
3419
  ])
3420
3420
  ]),
3421
3421
  a("tbody", null, [
3422
- (h(!0), v(S, null, I(u(c.detalles), (E, m) => (h(), v("tr", { key: m }, [
3423
- (h(!0), v(S, null, I(E, (k, y) => (h(), v("td", {
3424
- key: y,
3425
- class: Oe(["border border-accented p-1 break-words", k.clase ? k.clase : ""])
3426
- }, l(k.valor), 3))), 128))
3422
+ (h(!0), v(S, null, D(u(d.detalles), (E, y) => (h(), v("tr", { key: y }, [
3423
+ (h(!0), v(S, null, D(E, (P, g) => (h(), v("td", {
3424
+ key: g,
3425
+ class: xe(["border border-default p-1 break-words", P.clase ? P.clase : ""])
3426
+ }, l(P.valor), 3))), 128))
3427
3427
  ]))), 128))
3428
3428
  ])
3429
3429
  ])
3430
3430
  ])
3431
3431
  ]))), 128)),
3432
- D(o) && D(o).length > 0 ? (h(), v("div", kf, [
3433
- a("table", Pf, [
3434
- s[15] || (s[15] = a("thead", { class: "border" }, [
3435
- a("tr", { class: "bg-gray-100 text-gray-700" }, [
3432
+ I(o) && I(o).length > 0 ? (h(), v("div", Ic, [
3433
+ a("table", Pc, [
3434
+ s[15] || (s[15] = a("thead", null, [
3435
+ a("tr", { class: "bg-muted text-default" }, [
3436
3436
  a("th", {
3437
3437
  colspan: "2",
3438
- class: "p-1 text-center font-bold"
3438
+ class: "p-1 text-center font-bold border border-default"
3439
3439
  }, " INFORMACIÓN ADICIONAL ")
3440
3440
  ])
3441
3441
  ], -1)),
3442
3442
  a("tbody", null, [
3443
- (h(!0), v(S, null, I(D(o), (c, p) => (h(), v("tr", { key: p }, [
3444
- a("td", Nf, l(c.name), 1),
3445
- a("td", Cf, l(c.value), 1)
3443
+ (h(!0), v(S, null, D(I(o), (d, p) => (h(), v("tr", { key: p }, [
3444
+ a("td", kc, l(d.name), 1),
3445
+ a("td", Nc, l(d.value), 1)
3446
3446
  ]))), 128))
3447
3447
  ])
3448
3448
  ])
3449
3449
  ])) : $("", !0)
3450
3450
  ]));
3451
3451
  }
3452
- }), jf = { class: "text-xs flex flex-col gap-1 max-w-5xl mx-auto bg-gray-50 text-black m-1 rounded-md p-1 printContent print:mx-0 print:w-full" }, Bf = {
3452
+ }), Mc = { class: "text-xs flex flex-col gap-1 max-w-5xl mx-auto bg-default text-default m-1 rounded-md p-1 printContent print:mx-0 print:w-full" }, jc = {
3453
3453
  key: 0,
3454
- class: "print:hidden flex justify-end"
3455
- }, Lf = { class: "font-bold text-green-700" }, zf = { class: "flex mt-5" }, Uf = { class: "border rounded-lg w-full" }, Gf = { class: "flex-none flex" }, Ff = { class: "flex-none flex" }, Vf = { class: "mx-2 font-bold" }, Hf = { class: "flex-none flex" }, Xf = { key: 0 }, qf = { key: 1 }, Yf = { key: 0 }, Jf = { class: "flex gap-2" }, Zf = { class: "flex gap-2" }, Wf = { class: "flex gap-2" }, Qf = { class: "font-bold" }, Kf = { class: "px-2 rounded-md border bg-gray-300" }, ed = {
3454
+ class: "print:!hidden flex justify-end"
3455
+ }, Bc = { class: "font-bold text-primary" }, Lc = { class: "flex mt-5" }, zc = { class: "border border-default rounded-lg w-full p-2" }, Uc = { class: "flex-none flex" }, Gc = { class: "flex-none flex" }, Fc = { class: "mx-2 font-bold text-primary" }, Vc = { class: "flex-none flex" }, Hc = { key: 0 }, Xc = { key: 1 }, qc = { key: 0 }, Yc = { class: "flex gap-2 mb-2" }, Jc = { class: "flex gap-2" }, Zc = { class: "flex gap-2" }, Wc = { class: "font-bold text-dimmed" }, Qc = { class: "px-2 rounded-md border border-default bg-muted" }, Kc = {
3456
3456
  key: 0,
3457
3457
  class: "flex mx-4"
3458
- }, td = { class: "flex gap-2" }, nd = { class: "text-center" }, rd = { key: 0 }, od = { class: "text-center" }, ad = { class: "text-center" }, id = { class: "text-center" }, ud = { class: "text-center" }, ld = { class: "hidden" }, cd = { class: "w-full" }, fd = {
3458
+ }, ef = { class: "flex gap-4 mb-2" }, tf = { class: "text-center" }, nf = { key: 0 }, rf = { class: "text-center" }, of = { class: "text-center" }, af = { class: "text-center" }, uf = { class: "text-center" }, lf = { class: "hidden" }, df = { class: "w-full" }, cf = {
3459
3459
  key: 0,
3460
- class: "w-full text-xs"
3461
- }, dd = { class: "border text-center" }, sd = { class: "border text-right" }, hd = { class: "border text-right" }, vd = { class: "border" }, _d = { class: "w-full" }, pd = {
3460
+ class: "w-full text-xs border border-default"
3461
+ }, ff = { class: "border border-default p-1 text-center" }, sf = { class: "border border-default p-1 text-right" }, hf = { class: "border border-default p-1 text-right" }, vf = { class: "border border-default p-1" }, _f = { class: "w-full" }, pf = {
3462
3462
  key: 0,
3463
- class: "w-full text-xs"
3464
- }, gd = { class: "border text-right" }, yd = { class: "border text-right" }, bd = { class: "border text-right" }, md = { class: "px-4 pt-4" }, Ed = {
3465
- border: "",
3466
- "border-gray-500": "",
3467
- "mb-2": ""
3468
- }, Od = { class: "w-full table-bordered text-xs" }, xd = ["colspan"], $d = { class: "break-words border" }, wd = { class: "break-words border text-center" }, Ad = { class: "break-words border" }, Sd = { class: "break-words border text-right" }, Td = { class: "break-words border text-right" }, Rd = { class: "break-words border text-right" }, Dd = { class: "text-right" }, Id = { class: "px-2 bg-gray-300" }, kd = {
3463
+ class: "w-full text-xs border border-default"
3464
+ }, bf = { class: "border border-default p-1 text-right" }, gf = { class: "border border-default p-1 text-right" }, mf = { class: "border border-default p-1 text-right" }, yf = { class: "px-2 pt-2" }, Ef = { class: "border border-default rounded-lg mb-2 p-1" }, xf = { class: "w-full table-bordered text-xs" }, Of = { class: "bg-muted" }, $f = ["colspan"], wf = { class: "bg-muted" }, Af = { class: "break-words border border-default p-1" }, Sf = { class: "break-words border border-default p-1 text-center" }, Tf = { class: "break-words border border-default p-1" }, Rf = { class: "break-words border border-default p-1 text-right" }, Df = { class: "break-words border border-default p-1 text-right" }, If = { class: "break-words border border-default p-1 text-right" }, Pf = { class: "bg-muted" }, kf = { class: "text-right border border-default p-1 font-bold" }, Nf = { class: "px-2 py-0.5 rounded bg-primary/15 text-primary ml-1 font-bold" }, Cf = {
3469
3465
  key: 1,
3470
- class: "border border-gray-500 mt-4"
3471
- }, Pd = {
3472
- border: "",
3473
- "border-gray-500": "",
3474
- "mb-2": ""
3475
- }, Nd = { class: "w-full table-bordered text-xs" }, Cd = ["colspan"], Md = { class: "break-words border text-center" }, jd = { class: "break-words border text-center" }, Bd = { class: "break-words border" }, Ld = { class: "break-words border" }, zd = { class: "break-words border text-right" }, Ud = { class: "break-words border text-right" }, Gd = { class: "break-words border text-right" }, Fd = { class: "break-words border text-right" }, Vd = { class: "text-right" }, Hd = { class: "px-2 bg-gray-300" }, Xd = { class: "p-8" }, qd = { class: "border rounded-lg w-full mt-2" }, Yd = {
3466
+ class: "border border-default rounded-lg p-2 mt-4"
3467
+ }, Mf = { class: "border border-default rounded-lg mb-2 p-1" }, jf = { class: "w-full table-bordered text-xs" }, Bf = { class: "bg-muted text-primary" }, Lf = ["colspan"], zf = { class: "bg-muted" }, Uf = { class: "break-words border border-default p-1 text-center" }, Gf = { class: "break-words border border-default p-1 text-center" }, Ff = { class: "break-words border border-default p-1" }, Vf = { class: "break-words border border-default p-1" }, Hf = { class: "break-words border border-default p-1 text-right" }, Xf = { class: "break-words border border-default p-1 text-right" }, qf = { class: "break-words border border-default p-1 text-right" }, Yf = { class: "break-words border border-default p-1 text-right" }, Jf = { class: "bg-muted" }, Zf = { class: "text-right border border-default p-1 font-bold" }, Wf = { class: "px-2 py-0.5 rounded bg-primary/15 text-primary ml-1 font-bold" }, Qf = { class: "p-4" }, Kf = { class: "border border-default rounded-lg w-full mt-2 p-2" }, es = {
3476
3468
  key: 0,
3477
- class: "text-xs w-full table-fixed"
3478
- }, Jd = { class: "w-1/3 break-words" }, Zd = { class: "w-full break-words" }, Wd = /* @__PURE__ */ V({
3469
+ class: "text-xs w-full table-fixed border border-default"
3470
+ }, ts = { class: "w-1/3 break-words p-1 border border-default font-bold bg-muted" }, ns = { class: "w-full break-words p-1 border border-default" }, rs = /* @__PURE__ */ V({
3479
3471
  __name: "retencion",
3480
3472
  props: {
3481
3473
  document: {
@@ -3489,17 +3481,17 @@ const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between
3489
3481
  }
3490
3482
  },
3491
3483
  setup(t) {
3492
- const e = t, n = P(() => {
3493
- var y, _;
3494
- return (_ = (y = e.document) == null ? void 0 : y.getElementsByTagName("comprobanteRetencion").item(0)) == null ? void 0 : _.getAttribute("version");
3495
- }), r = xe(e.document);
3496
- function o(y) {
3497
- return Dn(y);
3498
- }
3499
- function i(y, _ = 0) {
3484
+ const e = t, n = k(() => {
3485
+ var g, _;
3486
+ return (_ = (g = e.document) == null ? void 0 : g.getElementsByTagName("comprobanteRetencion").item(0)) == null ? void 0 : _.getAttribute("version");
3487
+ }), r = Oe(e.document);
3488
+ function o(g) {
3489
+ return Rn(g);
3490
+ }
3491
+ function i(g, _ = 0) {
3500
3492
  switch (_) {
3501
3493
  case 0:
3502
- switch (y) {
3494
+ switch (g) {
3503
3495
  case "05":
3504
3496
  return "Cedula";
3505
3497
  case "04":
@@ -3515,7 +3507,7 @@ const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between
3515
3507
  }
3516
3508
  break;
3517
3509
  case 1:
3518
- switch (y) {
3510
+ switch (g) {
3519
3511
  case "01":
3520
3512
  return "FACTURA";
3521
3513
  case "04":
@@ -3530,7 +3522,7 @@ const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between
3530
3522
  return "FACTURA";
3531
3523
  }
3532
3524
  case 2:
3533
- switch (y) {
3525
+ switch (g) {
3534
3526
  case "2":
3535
3527
  return "IVA";
3536
3528
  case "1":
@@ -3538,7 +3530,7 @@ const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between
3538
3530
  }
3539
3531
  }
3540
3532
  }
3541
- function d() {
3533
+ function f() {
3542
3534
  return [
3543
3535
  "#",
3544
3536
  "TIPO",
@@ -3560,11 +3552,11 @@ const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between
3560
3552
  "Valor Retenido"
3561
3553
  ];
3562
3554
  }
3563
- function b(y) {
3564
- const _ = y.substring(0, 3), g = y.substring(3, 6), O = y.substring(6, 15);
3565
- return `${_}-${g}-${O}`;
3555
+ function m(g) {
3556
+ const _ = g.substring(0, 3), b = g.substring(3, 6), x = g.substring(6, 15);
3557
+ return `${_}-${b}-${x}`;
3566
3558
  }
3567
- function f(y) {
3559
+ function c(g) {
3568
3560
  const _ = [
3569
3561
  {
3570
3562
  name: "SIN UTILIZACION DEL SISTEMA FINANCIERO",
@@ -3599,17 +3591,17 @@ const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between
3599
3591
  value: "21"
3600
3592
  }
3601
3593
  ];
3602
- return y.map((O) => {
3594
+ return g.map((x) => {
3603
3595
  var w;
3604
3596
  return {
3605
- formaPago: ((w = _.find((x) => x.value === O.formaPago)) == null ? void 0 : w.name) || "",
3606
- total: O.total,
3607
- plazo: O.plazo && O.plazo || 0,
3608
- unidadTiempo: O.unidadTiempo && O.unidadTiempo || 0
3597
+ formaPago: ((w = _.find((O) => O.value === x.formaPago)) == null ? void 0 : w.name) || "",
3598
+ total: x.total,
3599
+ plazo: x.plazo && x.plazo || 0,
3600
+ unidadTiempo: x.unidadTiempo && x.unidadTiempo || 0
3609
3601
  };
3610
3602
  });
3611
3603
  }
3612
- function s(y) {
3604
+ function s(g) {
3613
3605
  const _ = [
3614
3606
  {
3615
3607
  name: "IVA",
@@ -3623,7 +3615,7 @@ const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between
3623
3615
  name: "IRBPNR",
3624
3616
  value: "5"
3625
3617
  }
3626
- ], g = [
3618
+ ], b = [
3627
3619
  {
3628
3620
  name: "0%",
3629
3621
  value: "0"
@@ -3657,45 +3649,45 @@ const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between
3657
3649
  value: "7"
3658
3650
  }
3659
3651
  ];
3660
- return y.map((w) => {
3661
- var x, A;
3652
+ return g.map((w) => {
3653
+ var O, A;
3662
3654
  return {
3663
- typeTax: ((x = _.find((R) => R.value === w.codImpuestoDocSustento)) == null ? void 0 : x.name) || "",
3664
- typePor: ((A = g.find((R) => R.value === w.codigoPorcentaje)) == null ? void 0 : A.name) || "",
3655
+ typeTax: ((O = _.find((R) => R.value === w.codImpuestoDocSustento)) == null ? void 0 : O.name) || "",
3656
+ typePor: ((A = b.find((R) => R.value === w.codigoPorcentaje)) == null ? void 0 : A.name) || "",
3665
3657
  tarifa: w.tarifa,
3666
3658
  baseImponible: w.baseImponible,
3667
3659
  valor: w.valorImpuesto
3668
3660
  };
3669
3661
  });
3670
3662
  }
3671
- const c = P(() => {
3672
- const y = e.document;
3673
- if (!y)
3663
+ const d = k(() => {
3664
+ const g = e.document;
3665
+ if (!g)
3674
3666
  return [];
3675
- const _ = y.getElementsByTagName("impuesto"), g = [];
3676
- for (let O = 0; O < _.length; O++) {
3677
- const w = _[O], x = {};
3667
+ const _ = g.getElementsByTagName("impuesto"), b = [];
3668
+ for (let x = 0; x < _.length; x++) {
3669
+ const w = _[x], O = {};
3678
3670
  if (w) {
3679
3671
  for (let A = 0; A < w.children.length; A++) {
3680
3672
  const R = w.children[A];
3681
- R && (x[R.tagName] = R.textContent || "");
3673
+ R && (O[R.tagName] = R.textContent || "");
3682
3674
  }
3683
- g.push(x);
3675
+ b.push(O);
3684
3676
  }
3685
3677
  }
3686
- return g;
3687
- }), p = P(() => {
3688
- const y = e.document;
3689
- if (!y)
3678
+ return b;
3679
+ }), p = k(() => {
3680
+ const g = e.document;
3681
+ if (!g)
3690
3682
  return [];
3691
- const _ = y.getElementsByTagName("docSustento"), g = [];
3692
- for (let O = 0; O < _.length; O++) {
3693
- const w = _[O], x = {};
3683
+ const _ = g.getElementsByTagName("docSustento"), b = [];
3684
+ for (let x = 0; x < _.length; x++) {
3685
+ const w = _[x], O = {};
3694
3686
  if (w) {
3695
3687
  for (let A = 0; A < w.children.length; A++) {
3696
3688
  const R = w.children[A];
3697
3689
  if (R && (R.tagName === "impuestosDocSustento" || R.tagName === "retenciones" || R.tagName === "pagos")) {
3698
- x[R.tagName] = [];
3690
+ O[R.tagName] = [];
3699
3691
  for (let Me = 0; Me < R.children.length; Me++) {
3700
3692
  const je = R.children[Me];
3701
3693
  if (!je)
@@ -3705,186 +3697,189 @@ const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between
3705
3697
  const Le = je.children[Be];
3706
3698
  Le && (St[Le.tagName] = Le.textContent || "");
3707
3699
  }
3708
- x[R.tagName].push(St);
3700
+ O[R.tagName].push(St);
3709
3701
  }
3710
3702
  } else
3711
- R && (x[R.tagName] = R.textContent || "");
3703
+ R && (O[R.tagName] = R.textContent || "");
3712
3704
  }
3713
- g.push(x);
3705
+ b.push(O);
3714
3706
  }
3715
3707
  }
3716
- return g;
3717
- }), E = P(() => {
3718
- const y = c.value;
3708
+ return b;
3709
+ }), E = k(() => {
3710
+ const g = d.value;
3719
3711
  let _ = 0;
3720
- return y.forEach((g) => {
3721
- _ += Number.parseFloat(g.valorRetenido || "0");
3712
+ return g.forEach((b) => {
3713
+ _ += Number.parseFloat(b.valorRetenido || "0");
3722
3714
  }), Vt(_, 2);
3723
- }), m = P(() => {
3724
- const y = p.value;
3715
+ }), y = k(() => {
3716
+ const g = p.value;
3725
3717
  let _ = 0;
3726
- return y.forEach((g) => {
3727
- g.retenciones.forEach((O) => {
3728
- _ += Number.parseFloat(O.valorRetenido);
3718
+ return g.forEach((b) => {
3719
+ b.retenciones.forEach((x) => {
3720
+ _ += Number.parseFloat(x.valorRetenido);
3729
3721
  });
3730
3722
  }), Vt(_, 2);
3731
- }), k = P(() => {
3723
+ }), P = k(() => {
3732
3724
  var w;
3733
- const y = e.document, _ = y == null ? void 0 : y.getElementsByTagName("infoCompRetencion");
3725
+ const g = e.document, _ = g == null ? void 0 : g.getElementsByTagName("infoCompRetencion");
3734
3726
  if (!_)
3735
3727
  return {};
3736
- const g = {}, O = (w = _.item(0)) == null ? void 0 : w.children;
3737
- if (O)
3738
- for (let x = 0; x < O.length; x++) {
3739
- const A = O[x];
3740
- A != null && A.tagName && (g[A.tagName || "na"] = A.textContent || "");
3728
+ const b = {}, x = (w = _.item(0)) == null ? void 0 : w.children;
3729
+ if (x)
3730
+ for (let O = 0; O < x.length; O++) {
3731
+ const A = x[O];
3732
+ A != null && A.tagName && (b[A.tagName || "na"] = A.textContent || "");
3741
3733
  }
3742
- return g;
3734
+ return b;
3743
3735
  });
3744
- return (y, _) => (h(), v("div", jf, [
3745
- t.authorization ? (h(), v("div", Bf, [
3746
- a("div", Lf, " Documento autorizado el " + l(t.authorization), 1)
3736
+ return (g, _) => (h(), v("div", Mc, [
3737
+ t.authorization ? (h(), v("div", jc, [
3738
+ a("div", Bc, " Documento autorizado el " + l(t.authorization), 1)
3747
3739
  ])) : $("", !0),
3748
3740
  q(Ce, {
3749
3741
  document: t.document,
3750
3742
  dateAuthorization: t.authorization
3751
3743
  }, null, 8, ["document", "dateAuthorization"]),
3752
- a("div", zf, [
3753
- a("div", Uf, [
3754
- a("div", Gf, [
3755
- _[0] || (_[0] = a("div", { class: "font-bold pr-2" }, " Razón Social / Nombres y Apellidos : ", -1)),
3756
- a("div", null, l(k.value.razonSocialSujetoRetenido), 1)
3744
+ a("div", Lc, [
3745
+ a("div", zc, [
3746
+ a("div", Uc, [
3747
+ _[0] || (_[0] = a("div", { class: "font-bold pr-2 text-dimmed" }, " Razón Social / Nombres y Apellidos : ", -1)),
3748
+ a("div", null, l(P.value.razonSocialSujetoRetenido), 1)
3757
3749
  ]),
3758
- a("div", Ff, [
3759
- _[1] || (_[1] = a("div", { class: "font-bold pr-2" }, " Identificación: ", -1)),
3760
- a("div", null, l(k.value.identificacionSujetoRetenido), 1),
3761
- a("div", Vf, " (" + l(i(
3762
- k.value.tipoIdentificacionSujetoRetenido
3750
+ a("div", Gc, [
3751
+ _[1] || (_[1] = a("div", { class: "font-bold pr-2 text-dimmed" }, " Identificación: ", -1)),
3752
+ a("div", null, l(P.value.identificacionSujetoRetenido), 1),
3753
+ a("div", Fc, " (" + l(i(
3754
+ P.value.tipoIdentificacionSujetoRetenido
3763
3755
  )) + ") ", 1)
3764
3756
  ]),
3765
- a("div", Hf, [
3766
- _[2] || (_[2] = a("div", { class: "font-bold pr-2" }, " FECHA EMISION: ", -1)),
3767
- a("div", null, l(k.value.fechaEmision), 1),
3768
- _[3] || (_[3] = a("div", { class: "font-bold pr-2 pl-4" }, " Es obligado a llevar Contablilidad: ", -1)),
3769
- k.value.obligadoContabilidad ? (h(), v("div", Xf, l(k.value.obligadoContabilidad), 1)) : $("", !0),
3770
- _[4] || (_[4] = a("div", { class: "font-bold pr-2 pl-4" }, " Parte Relacionada: ", -1)),
3771
- a("div", null, l(k.value.parteRel ?? "NO"), 1),
3772
- _[5] || (_[5] = a("div", { class: "font-bold pr-2 pl-4" }, " Periodo Fiscal: ", -1)),
3773
- k.value.periodoFiscal ? (h(), v("div", qf, l(k.value.periodoFiscal), 1)) : $("", !0)
3757
+ a("div", Vc, [
3758
+ _[2] || (_[2] = a("div", { class: "font-bold pr-2 text-dimmed" }, " FECHA EMISION: ", -1)),
3759
+ a("div", null, l(P.value.fechaEmision), 1),
3760
+ _[3] || (_[3] = a("div", { class: "font-bold pr-2 pl-4 text-dimmed" }, " Es obligado a llevar Contabilidad: ", -1)),
3761
+ P.value.obligadoContabilidad ? (h(), v("div", Hc, l(P.value.obligadoContabilidad), 1)) : $("", !0),
3762
+ _[4] || (_[4] = a("div", { class: "font-bold pr-2 pl-4 text-dimmed" }, " Parte Relacionada: ", -1)),
3763
+ a("div", null, l(P.value.parteRel ?? "NO"), 1),
3764
+ _[5] || (_[5] = a("div", { class: "font-bold pr-2 pl-4 text-dimmed" }, " Periodo Fiscal: ", -1)),
3765
+ P.value.periodoFiscal ? (h(), v("div", Xc, l(P.value.periodoFiscal), 1)) : $("", !0)
3774
3766
  ]),
3775
- n.value === "2.0.0" ? (h(), v("div", Yf, [
3776
- (h(!0), v(S, null, I(p.value, (g, O) => {
3767
+ n.value === "2.0.0" ? (h(), v("div", qc, [
3768
+ (h(!0), v(S, null, D(p.value, (b, x) => {
3777
3769
  var w;
3778
3770
  return h(), v("div", {
3779
- key: O,
3780
- class: "border border-gray-500 mt-4"
3771
+ key: x,
3772
+ class: "border border-default rounded-lg p-2 mt-4"
3781
3773
  }, [
3782
- _[17] || (_[17] = a("div", { class: "text-center font-bold italic" }, " DATOS DOCUMENTOS DE SUSTENTO V2.0.0 ", -1)),
3783
- a("div", Jf, [
3784
- a("div", Zf, [
3785
- a("div", Wf, [
3786
- a("div", Qf, l(i(g.codDocSustento, 1)), 1),
3787
- a("div", Kf, l(b(g.numDocSustento)), 1)
3774
+ _[17] || (_[17] = a("div", { class: "text-center font-bold italic text-primary" }, " DATOS DOCUMENTOS DE SUSTENTO V2.0.0 ", -1)),
3775
+ a("div", Yc, [
3776
+ a("div", Jc, [
3777
+ a("div", Zc, [
3778
+ a("div", Wc, l(i(b.codDocSustento, 1)), 1),
3779
+ a("div", Qc, l(m(b.numDocSustento)), 1)
3788
3780
  ]),
3789
- g.numAutDocSustento ? (h(), v("div", ed, [
3790
- _[6] || (_[6] = a("div", { class: "font-bold" }, " Numero Autorización: ", -1)),
3791
- a("div", null, l(g.numAutDocSustento), 1)
3781
+ b.numAutDocSustento ? (h(), v("div", Kc, [
3782
+ _[6] || (_[6] = a("div", { class: "font-bold text-dimmed" }, " Numero Autorización: ", -1)),
3783
+ a("div", null, l(b.numAutDocSustento), 1)
3792
3784
  ])) : $("", !0)
3793
3785
  ])
3794
3786
  ]),
3795
- a("div", td, [
3787
+ a("div", ef, [
3796
3788
  a("div", null, [
3797
- _[7] || (_[7] = a("div", { class: "font-bold" }, " Fecha Emisión: ", -1)),
3798
- a("div", nd, l(g.fechaEmisionDocSustento), 1)
3789
+ _[7] || (_[7] = a("div", { class: "font-bold text-dimmed" }, " Fecha Emisión: ", -1)),
3790
+ a("div", tf, l(b.fechaEmisionDocSustento), 1)
3799
3791
  ]),
3800
- g.fechaRegistroContable ? (h(), v("div", rd, [
3801
- _[8] || (_[8] = a("div", { class: "font-bold" }, " Fecha Registro Contable: ", -1)),
3802
- a("div", od, l(g.fechaRegistroContable), 1)
3792
+ b.fechaRegistroContable ? (h(), v("div", nf, [
3793
+ _[8] || (_[8] = a("div", { class: "font-bold text-dimmed" }, " Fecha Registro Contable: ", -1)),
3794
+ a("div", rf, l(b.fechaRegistroContable), 1)
3803
3795
  ])) : $("", !0),
3804
3796
  a("div", null, [
3805
- _[9] || (_[9] = a("div", { class: "font-bold" }, " Pago a Residente: ", -1)),
3806
- a("div", ad, l(g.pagoLocExt === "01" ? "SI" : "NO"), 1)
3797
+ _[9] || (_[9] = a("div", { class: "font-bold text-dimmed" }, " Pago a Residente: ", -1)),
3798
+ a("div", of, l(b.pagoLocExt === "01" ? "SI" : "NO"), 1)
3807
3799
  ]),
3808
3800
  a("div", null, [
3809
- _[10] || (_[10] = a("div", { class: "font-bold" }, " Total Sin impuestos: ", -1)),
3810
- a("div", id, l(g.totalSinImpuestos), 1)
3801
+ _[10] || (_[10] = a("div", { class: "font-bold text-dimmed" }, " Total Sin impuestos: ", -1)),
3802
+ a("div", af, l(b.totalSinImpuestos), 1)
3811
3803
  ]),
3812
3804
  a("div", null, [
3813
- _[11] || (_[11] = a("div", { class: "font-bold" }, " Importe Total: ", -1)),
3814
- a("div", ud, l(g.importeTotal), 1)
3805
+ _[11] || (_[11] = a("div", { class: "font-bold text-dimmed" }, " Importe Total: ", -1)),
3806
+ a("div", uf, l(b.importeTotal), 1)
3815
3807
  ])
3816
3808
  ]),
3817
- a("div", ld, [
3818
- a("div", cd, [
3819
- _[13] || (_[13] = a("div", { class: "text-center" }, " FORMAS DE PAGOS ", -1)),
3820
- g.pagos.pago ? (h(), v("table", fd, [
3809
+ a("div", lf, [
3810
+ a("div", df, [
3811
+ _[13] || (_[13] = a("div", { class: "text-center font-bold" }, " FORMAS DE PAGOS ", -1)),
3812
+ b.pagos.pago ? (h(), v("table", cf, [
3821
3813
  _[12] || (_[12] = a("thead", null, [
3822
- a("tr", null, [
3823
- a("th", { class: "border" }, " TIPO "),
3824
- a("th", { class: "border" }, " VALOR "),
3825
- a("th", { class: "border" }, " PAZO "),
3826
- a("th", { class: "border" }, " TIEMPO ")
3814
+ a("tr", { class: "bg-muted" }, [
3815
+ a("th", { class: "border border-default p-1 text-left" }, " TIPO "),
3816
+ a("th", { class: "border border-default p-1 text-right" }, " VALOR "),
3817
+ a("th", { class: "border border-default p-1 text-right" }, " PLAZO "),
3818
+ a("th", { class: "border border-default p-1" }, " TIEMPO ")
3827
3819
  ])
3828
3820
  ], -1)),
3829
3821
  a("tbody", null, [
3830
- (h(!0), v(S, null, I(f(
3831
- g.pagos.pago
3832
- ), (x, A) => (h(), v("tr", { key: A }, [
3833
- a("td", dd, l(x.formaPago), 1),
3834
- a("td", sd, l(x.total), 1),
3835
- a("td", hd, l(x.plazo), 1),
3836
- a("td", vd, l(x.unidadTiempo), 1)
3822
+ (h(!0), v(S, null, D(c(
3823
+ b.pagos.pago
3824
+ ), (O, A) => (h(), v("tr", { key: A }, [
3825
+ a("td", ff, l(O.formaPago), 1),
3826
+ a("td", sf, l(O.total), 1),
3827
+ a("td", hf, l(O.plazo), 1),
3828
+ a("td", vf, l(O.unidadTiempo), 1)
3837
3829
  ]))), 128))
3838
3830
  ])
3839
3831
  ])) : $("", !0)
3840
3832
  ]),
3841
- a("div", _d, [
3842
- _[14] || (_[14] = a("div", { class: "text-center" }, " Detalle Impuestos Doc de Sustento ", -1)),
3843
- (w = g == null ? void 0 : g.pagos) != null && w.pago ? (h(), v("table", pd, [
3833
+ a("div", _f, [
3834
+ _[14] || (_[14] = a("div", { class: "text-center font-bold" }, " Detalle Impuestos Doc de Sustento ", -1)),
3835
+ (w = b == null ? void 0 : b.pagos) != null && w.pago ? (h(), v("table", pf, [
3844
3836
  a("tbody", null, [
3845
- (h(!0), v(S, null, I(s(
3846
- g.impuestosDocSustento.impuestoDocSustento
3847
- ), (x, A) => (h(), v("tr", { key: A }, [
3848
- a("td", gd, l(x.typePor), 1),
3849
- a("td", yd, l(x.baseImponible), 1),
3850
- a("td", bd, l(x.valor), 1)
3837
+ (h(!0), v(S, null, D(s(
3838
+ b.impuestosDocSustento.impuestoDocSustento
3839
+ ), (O, A) => (h(), v("tr", { key: A }, [
3840
+ a("td", bf, l(O.typePor), 1),
3841
+ a("td", gf, l(O.baseImponible), 1),
3842
+ a("td", mf, l(O.valor), 1)
3851
3843
  ]))), 128))
3852
3844
  ])
3853
3845
  ])) : $("", !0)
3854
3846
  ])
3855
3847
  ]),
3856
3848
  a("div", null, [
3857
- a("div", md, [
3858
- a("div", Ed, [
3859
- a("table", Od, [
3849
+ a("div", yf, [
3850
+ a("div", Ef, [
3851
+ a("table", xf, [
3860
3852
  a("thead", null, [
3861
- a("tr", null, [
3853
+ a("tr", Of, [
3862
3854
  a("td", {
3863
- class: "text-center font-bold",
3864
- colspan: d().length
3865
- }, " DETALLES DE LA RETENCION ", 8, xd)
3855
+ class: "text-center font-bold border border-default p-1 text-primary",
3856
+ colspan: f().length
3857
+ }, " DETALLES DE LA RETENCION ", 8, $f)
3866
3858
  ]),
3867
- a("tr", null, [
3868
- (h(!0), v(S, null, I(d(), (x, A) => (h(), v("th", {
3859
+ a("tr", wf, [
3860
+ (h(!0), v(S, null, D(f(), (O, A) => (h(), v("th", {
3869
3861
  key: A,
3870
- class: "border"
3871
- }, l(x), 1))), 128))
3862
+ class: "border border-default p-1 text-left"
3863
+ }, l(O), 1))), 128))
3872
3864
  ])
3873
3865
  ]),
3874
3866
  a("tbody", null, [
3875
- (h(!0), v(S, null, I(g.retenciones, (x, A) => (h(), v("tr", { key: A }, [
3876
- a("td", $d, l(A + 1), 1),
3877
- a("td", wd, l(i(x.codigo, 2)), 1),
3878
- a("td", Ad, l(o(x.codigoRetencion)), 1),
3879
- a("td", Sd, " %" + l(x.porcentajeRetener), 1),
3880
- a("td", Td, l(x.baseImponible), 1),
3881
- a("td", Rd, l(x.valorRetenido), 1)
3867
+ (h(!0), v(S, null, D(b.retenciones, (O, A) => (h(), v("tr", { key: A }, [
3868
+ a("td", Af, l(A + 1), 1),
3869
+ a("td", Sf, l(i(O.codigo, 2)), 1),
3870
+ a("td", Tf, l(o(O.codigoRetencion)), 1),
3871
+ a("td", Rf, " %" + l(O.porcentajeRetener), 1),
3872
+ a("td", Df, l(O.baseImponible), 1),
3873
+ a("td", If, l(O.valorRetenido), 1)
3882
3874
  ]))), 128)),
3883
- a("tr", null, [
3884
- _[16] || (_[16] = a("td", { colspan: "5" }, null, -1)),
3885
- a("td", Dd, [
3875
+ a("tr", Pf, [
3876
+ _[16] || (_[16] = a("td", {
3877
+ colspan: "5",
3878
+ class: "border border-default"
3879
+ }, null, -1)),
3880
+ a("td", kf, [
3886
3881
  _[15] || (_[15] = B(" TOTAL RETENIDO ", -1)),
3887
- a("span", Id, l(D(bn)(m.value)), 1)
3882
+ a("span", Nf, l(I(mn)(y.value)), 1)
3888
3883
  ])
3889
3884
  ])
3890
3885
  ])
@@ -3895,54 +3890,57 @@ const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between
3895
3890
  ]);
3896
3891
  }), 128))
3897
3892
  ])) : $("", !0),
3898
- n.value === "1.0.0" ? (h(), v("div", kd, [
3899
- a("div", Pd, [
3900
- a("table", Nd, [
3893
+ n.value === "1.0.0" ? (h(), v("div", Cf, [
3894
+ a("div", Mf, [
3895
+ a("table", jf, [
3901
3896
  a("thead", null, [
3902
- a("tr", null, [
3897
+ a("tr", Bf, [
3903
3898
  a("td", {
3904
- class: "text-center font-bold",
3899
+ class: "text-center font-bold border border-default p-1",
3905
3900
  colspan: u().length
3906
- }, " DETALLES DE LA RETENCION V1 ", 8, Cd)
3901
+ }, " DETALLES DE LA RETENCION V1 ", 8, Lf)
3907
3902
  ]),
3908
- a("tr", null, [
3909
- (h(!0), v(S, null, I(u(), (g, O) => (h(), v("th", {
3910
- key: O,
3911
- class: "border"
3912
- }, l(g), 1))), 128))
3903
+ a("tr", zf, [
3904
+ (h(!0), v(S, null, D(u(), (b, x) => (h(), v("th", {
3905
+ key: x,
3906
+ class: "border border-default p-1 text-left"
3907
+ }, l(b), 1))), 128))
3913
3908
  ])
3914
3909
  ]),
3915
3910
  a("tbody", null, [
3916
- (h(!0), v(S, null, I(c.value, (g, O) => (h(), v("tr", { key: O }, [
3917
- a("td", Md, l(i(g.codDocSustento, 1)), 1),
3918
- a("td", jd, l(b(g.numDocSustento)), 1),
3919
- a("td", Bd, l(g.fechaEmisionDocSustento), 1),
3920
- a("td", Ld, l(k.value.periodoFiscal), 1),
3921
- a("td", zd, l(g.baseImponible), 1),
3922
- a("td", Ud, l(i(g.codigo, 2)) + " " + l(g.codigoRetencion), 1),
3923
- a("td", Gd, " %" + l(g.porcentajeRetener), 1),
3924
- a("td", Fd, l(g.valorRetenido), 1)
3911
+ (h(!0), v(S, null, D(d.value, (b, x) => (h(), v("tr", { key: x }, [
3912
+ a("td", Uf, l(i(b.codDocSustento, 1)), 1),
3913
+ a("td", Gf, l(m(b.numDocSustento)), 1),
3914
+ a("td", Ff, l(b.fechaEmisionDocSustento), 1),
3915
+ a("td", Vf, l(P.value.periodoFiscal), 1),
3916
+ a("td", Hf, l(b.baseImponible), 1),
3917
+ a("td", Xf, l(i(b.codigo, 2)) + " " + l(b.codigoRetencion), 1),
3918
+ a("td", qf, " %" + l(b.porcentajeRetener), 1),
3919
+ a("td", Yf, l(b.valorRetenido), 1)
3925
3920
  ]))), 128)),
3926
- a("tr", null, [
3927
- _[19] || (_[19] = a("td", { colspan: "7" }, null, -1)),
3928
- a("td", Vd, [
3921
+ a("tr", Jf, [
3922
+ _[19] || (_[19] = a("td", {
3923
+ colspan: "7",
3924
+ class: "border border-default"
3925
+ }, null, -1)),
3926
+ a("td", Zf, [
3929
3927
  _[18] || (_[18] = B(" TOTAL RETENIDO ", -1)),
3930
- a("span", Hd, l(E.value), 1)
3928
+ a("span", Wf, l(E.value), 1)
3931
3929
  ])
3932
3930
  ])
3933
3931
  ])
3934
3932
  ])
3935
3933
  ])
3936
3934
  ])) : $("", !0),
3937
- a("div", Xd, [
3938
- a("div", qd, [
3939
- _[20] || (_[20] = a("div", { class: "text-center text-lg font-bold" }, " INFORMACIÓN ADICIONAL ", -1)),
3935
+ a("div", Qf, [
3936
+ a("div", Kf, [
3937
+ _[20] || (_[20] = a("div", { class: "text-center text-sm font-bold text-primary mb-1" }, " INFORMACIÓN ADICIONAL ", -1)),
3940
3938
  a("div", null, [
3941
- D(r) ? (h(), v("table", Yd, [
3939
+ I(r) ? (h(), v("table", es, [
3942
3940
  a("tbody", null, [
3943
- (h(!0), v(S, null, I(D(r), (g, O) => (h(), v("tr", { key: O }, [
3944
- a("td", Jd, l(g.name), 1),
3945
- a("td", Zd, l(g.value), 1)
3941
+ (h(!0), v(S, null, D(I(r), (b, x) => (h(), v("tr", { key: x }, [
3942
+ a("td", ts, l(b.name), 1),
3943
+ a("td", ns, l(b.value), 1)
3946
3944
  ]))), 128))
3947
3945
  ])
3948
3946
  ])) : $("", !0)
@@ -3953,10 +3951,10 @@ const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between
3953
3951
  ])
3954
3952
  ]));
3955
3953
  }
3956
- }), Qd = { class: "w-full" }, Kd = {
3954
+ }), os = { class: "w-full visor-xml-container" }, as = {
3957
3955
  key: 0,
3958
3956
  class: "p-6 text-center bg-red-50 dark:bg-red-950/20 border border-red-200 dark:border-red-800 rounded-xl"
3959
- }, es = { class: "text-sm text-red-600 dark:text-red-300" }, ts = { key: 1 }, os = /* @__PURE__ */ V({
3957
+ }, is = { class: "text-sm text-red-600 dark:text-red-300" }, us = { key: 1 }, cs = /* @__PURE__ */ V({
3960
3958
  __name: "VisorXml",
3961
3959
  props: {
3962
3960
  xml: {},
@@ -3964,15 +3962,15 @@ const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between
3964
3962
  },
3965
3963
  setup(t) {
3966
3964
  const e = t, n = Ee(null), r = Ee("");
3967
- return $n(() => {
3965
+ return On(() => {
3968
3966
  if (!(typeof window > "u") && e.xml)
3969
3967
  try {
3970
- n.value = In(e.xml), r.value = "";
3968
+ n.value = Dn(e.xml), r.value = "";
3971
3969
  } catch (o) {
3972
3970
  r.value = o.message || "Error al procesar el XML", console.error(o);
3973
3971
  }
3974
- }), Ee(!1), (o, i) => (h(), v("div", Qd, [
3975
- r.value ? (h(), v("div", Kd, [
3972
+ }), Ee(!1), (o, i) => (h(), v("div", os, [
3973
+ r.value ? (h(), v("div", as, [
3976
3974
  i[0] || (i[0] = a("div", { class: "inline-flex items-center justify-center w-12 h-12 rounded-full bg-red-100 dark:bg-red-900/40 text-red-600 dark:text-red-400 mb-3" }, [
3977
3975
  a("svg", {
3978
3976
  class: "w-6 h-6",
@@ -3989,24 +3987,24 @@ const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between
3989
3987
  ])
3990
3988
  ], -1)),
3991
3989
  i[1] || (i[1] = a("h4", { class: "text-base font-bold text-red-800 dark:text-red-400 mb-1" }, " Error al procesar el comprobante ", -1)),
3992
- a("p", es, l(r.value), 1)
3993
- ])) : n.value ? (h(), v("div", ts, [
3994
- n.value.typeDoc === "01" ? (h(), _e(Gc, {
3990
+ a("p", is, l(r.value), 1)
3991
+ ])) : n.value ? (h(), v("div", us, [
3992
+ n.value.typeDoc === "01" ? (h(), _e(Ud, {
3995
3993
  key: 0,
3996
3994
  document: n.value.documentData,
3997
3995
  logoUrl: t.logoUrl,
3998
3996
  dateAuthorization: n.value.dateAuthorization
3999
- }, null, 8, ["document", "logoUrl", "dateAuthorization"])) : n.value.typeDoc === "04" ? (h(), _e(sf, {
3997
+ }, null, 8, ["document", "logoUrl", "dateAuthorization"])) : n.value.typeDoc === "04" ? (h(), _e(fc, {
4000
3998
  key: 1,
4001
3999
  document: n.value.documentData,
4002
4000
  logoUrl: t.logoUrl,
4003
4001
  authorization: n.value.dateAuthorization
4004
- }, null, 8, ["document", "logoUrl", "authorization"])) : n.value.typeDoc === "06" ? (h(), _e(Mf, {
4002
+ }, null, 8, ["document", "logoUrl", "authorization"])) : n.value.typeDoc === "06" ? (h(), _e(Cc, {
4005
4003
  key: 2,
4006
4004
  document: n.value.documentData,
4007
4005
  logoUrl: t.logoUrl,
4008
4006
  authorization: n.value.dateAuthorization
4009
- }, null, 8, ["document", "logoUrl", "authorization"])) : n.value.typeDoc === "07" ? (h(), _e(Wd, {
4007
+ }, null, 8, ["document", "logoUrl", "authorization"])) : n.value.typeDoc === "07" ? (h(), _e(rs, {
4010
4008
  key: 3,
4011
4009
  document: n.value.documentData,
4012
4010
  authorization: n.value.dateAuthorization
@@ -4016,10 +4014,10 @@ const jl = { class: "flex gap-2" }, Bl = { class: "flex flex-col justify-between
4016
4014
  }
4017
4015
  });
4018
4016
  export {
4019
- os as VisorXml,
4020
- Gc as facturaSri,
4021
- Mf as guiaRemisionSri,
4017
+ cs as VisorXml,
4018
+ Ud as facturaSri,
4019
+ Cc as guiaRemisionSri,
4022
4020
  Ce as headDocSri,
4023
- sf as notaCreditoSri,
4024
- Wd as retencionSri
4021
+ fc as notaCreditoSri,
4022
+ rs as retencionSri
4025
4023
  };