recaho-print-react 0.0.140 → 0.0.141

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.
@@ -130,14 +130,14 @@ function ai() {
130
130
  }
131
131
  return null;
132
132
  }
133
- var G = Object.assign, de = 0, z, X, Ke, Qe, _t, Ze, bt;
133
+ var G = Object.assign, de = 0, W, X, Ke, Qe, _t, Ze, bt;
134
134
  function ee() {
135
135
  }
136
136
  ee.__reactDisabledLog = !0;
137
137
  function Ne() {
138
138
  {
139
139
  if (de === 0) {
140
- z = console.log, X = console.info, Ke = console.warn, Qe = console.error, _t = console.group, Ze = console.groupCollapsed, bt = console.groupEnd;
140
+ W = console.log, X = console.info, Ke = console.warn, Qe = console.error, _t = console.group, Ze = console.groupCollapsed, bt = console.groupEnd;
141
141
  var g = {
142
142
  configurable: !0,
143
143
  enumerable: !0,
@@ -167,7 +167,7 @@ function ai() {
167
167
  };
168
168
  Object.defineProperties(console, {
169
169
  log: G({}, g, {
170
- value: z
170
+ value: W
171
171
  }),
172
172
  info: G({}, g, {
173
173
  value: X
@@ -285,7 +285,7 @@ function ai() {
285
285
  function F(g, M, C) {
286
286
  return b(g, !1);
287
287
  }
288
- function W(g) {
288
+ function z(g) {
289
289
  var M = g.prototype;
290
290
  return !!(M && M.isReactComponent);
291
291
  }
@@ -293,7 +293,7 @@ function ai() {
293
293
  if (g == null)
294
294
  return "";
295
295
  if (typeof g == "function")
296
- return b(g, W(g));
296
+ return b(g, z(g));
297
297
  if (typeof g == "string")
298
298
  return O(g);
299
299
  switch (g) {
@@ -676,7 +676,7 @@ function L() {
676
676
  function di(e) {
677
677
  Dr = e;
678
678
  }
679
- function We(e) {
679
+ function ze(e) {
680
680
  return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
681
681
  }
682
682
  function Ot(e) {
@@ -829,7 +829,7 @@ function En(e, t) {
829
829
  oe(e, r) && !oe(t, r) && Ot(e[r]) && (n[r] = gt({}, n[r]));
830
830
  return n;
831
831
  }
832
- function zn(e) {
832
+ function Wn(e) {
833
833
  e != null && this.set(e);
834
834
  }
835
835
  var Rn;
@@ -855,7 +855,7 @@ function tt(e, t, n) {
855
855
  var r = "" + Math.abs(e), i = t - r.length, a = e >= 0;
856
856
  return (a ? n ? "+" : "" : "-") + Math.pow(10, Math.max(0, i)).toString().substr(1) + r;
857
857
  }
858
- var Wn = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, zs = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, bn = {}, Bt = {};
858
+ var zn = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, Ws = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, bn = {}, Bt = {};
859
859
  function q(e, t, n, r) {
860
860
  var i = r;
861
861
  typeof r == "string" && (i = function() {
@@ -873,7 +873,7 @@ function pi(e) {
873
873
  return e.match(/\[[\s\S]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, "");
874
874
  }
875
875
  function yi(e) {
876
- var t = e.match(Wn), n, r;
876
+ var t = e.match(zn), n, r;
877
877
  for (n = 0, r = t.length; n < r; n++)
878
878
  Bt[t[n]] ? t[n] = Bt[t[n]] : t[n] = pi(t[n]);
879
879
  return function(i) {
@@ -891,11 +891,11 @@ function Hr(e, t) {
891
891
  function r(i) {
892
892
  return t.longDateFormat(i) || i;
893
893
  }
894
- for (zs.lastIndex = 0; n >= 0 && zs.test(e); )
894
+ for (Ws.lastIndex = 0; n >= 0 && Ws.test(e); )
895
895
  e = e.replace(
896
- zs,
896
+ Ws,
897
897
  r
898
- ), zs.lastIndex = 0, n -= 1;
898
+ ), Ws.lastIndex = 0, n -= 1;
899
899
  return e;
900
900
  }
901
901
  var gi = {
@@ -908,7 +908,7 @@ var gi = {
908
908
  };
909
909
  function xi(e) {
910
910
  var t = this._longDateFormat[e], n = this._longDateFormat[e.toUpperCase()];
911
- return t || !n ? t : (this._longDateFormat[e] = n.match(Wn).map(function(r) {
911
+ return t || !n ? t : (this._longDateFormat[e] = n.match(zn).map(function(r) {
912
912
  return r === "MMMM" || r === "MM" || r === "DD" || r === "dddd" ? r.slice(1) : r;
913
913
  }).join(""), this._longDateFormat[e]);
914
914
  }
@@ -1031,7 +1031,7 @@ function Ci(e) {
1031
1031
  return r.priority - i.priority;
1032
1032
  }), t;
1033
1033
  }
1034
- var Br = /\d/, Fe = /\d\d/, zr = /\d{3}/, Vn = /\d{4}/, cn = /[+-]?\d{6}/, pe = /\d\d?/, Wr = /\d\d\d\d?/, Gr = /\d\d\d\d\d\d?/, dn = /\d{1,3}/, qn = /\d{1,4}/, hn = /[+-]?\d{1,6}/, qt = /\d+/, un = /[+-]?\d+/, Oi = /Z|[+-]\d\d:?\d\d/gi, mn = /Z|[+-]\d\d(?::?\d\d)?/gi, Mi = /[+-]?\d+(\.\d{1,3})?/, Ss = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, Kt = /^[1-9]\d?/, Kn = /^([1-9]\d|\d)/, Js;
1034
+ var Br = /\d/, Fe = /\d\d/, Wr = /\d{3}/, Vn = /\d{4}/, cn = /[+-]?\d{6}/, pe = /\d\d?/, zr = /\d\d\d\d?/, Gr = /\d\d\d\d\d\d?/, dn = /\d{1,3}/, qn = /\d{1,4}/, hn = /[+-]?\d{1,6}/, qt = /\d+/, un = /[+-]?\d+/, Oi = /Z|[+-]\d\d:?\d\d/gi, mn = /Z|[+-]\d\d(?::?\d\d)?/gi, Mi = /[+-]?\d+(\.\d{1,3})?/, Ss = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, Kt = /^[1-9]\d?/, Kn = /^([1-9]\d|\d)/, Js;
1035
1035
  Js = {};
1036
1036
  function H(e, t, n) {
1037
1037
  Js[e] = rt(t) ? t : function(r, i) {
@@ -1080,7 +1080,7 @@ function Ri(e, t, n) {
1080
1080
  function fn(e) {
1081
1081
  return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
1082
1082
  }
1083
- var Ce = 0, dt = 1, et = 2, Se = 3, ze = 4, ht = 5, Ct = 6, Li = 7, ki = 8;
1083
+ var Ce = 0, dt = 1, et = 2, Se = 3, We = 4, ht = 5, Ct = 6, Li = 7, ki = 8;
1084
1084
  q("Y", 0, 0, function() {
1085
1085
  var e = this.year();
1086
1086
  return e <= 9999 ? tt(e, 4) : "+" + e;
@@ -1231,12 +1231,12 @@ var Ui = "January_February_March_April_May_June_July_August_September_October_No
1231
1231
  "_"
1232
1232
  ), Kr = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), Qr = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, $i = Ss, Hi = Ss;
1233
1233
  function Bi(e, t) {
1234
- return e ? We(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || Qr).test(t) ? "format" : "standalone"][e.month()] : We(this._months) ? this._months : this._months.standalone;
1234
+ return e ? ze(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || Qr).test(t) ? "format" : "standalone"][e.month()] : ze(this._months) ? this._months : this._months.standalone;
1235
1235
  }
1236
- function zi(e, t) {
1237
- return e ? We(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[Qr.test(t) ? "format" : "standalone"][e.month()] : We(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
1236
+ function Wi(e, t) {
1237
+ return e ? ze(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[Qr.test(t) ? "format" : "standalone"][e.month()] : ze(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
1238
1238
  }
1239
- function Wi(e, t, n) {
1239
+ function zi(e, t, n) {
1240
1240
  var r, i, a, u = e.toLocaleLowerCase();
1241
1241
  if (!this._monthsParse)
1242
1242
  for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], r = 0; r < 12; ++r)
@@ -1249,7 +1249,7 @@ function Wi(e, t, n) {
1249
1249
  function Gi(e, t, n) {
1250
1250
  var r, i, a;
1251
1251
  if (this._monthsParseExact)
1252
- return Wi.call(this, e, t, n);
1252
+ return zi.call(this, e, t, n);
1253
1253
  for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), r = 0; r < 12; r++) {
1254
1254
  if (i = nt([2e3, r]), n && !this._longMonthsParse[r] && (this._longMonthsParse[r] = new RegExp(
1255
1255
  "^" + this.months(i, "").replace(".", "") + "$",
@@ -1411,7 +1411,7 @@ function Zn(e, t) {
1411
1411
  }
1412
1412
  var al = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), ta = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), il = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), ll = Ss, ol = Ss, cl = Ss;
1413
1413
  function dl(e, t) {
1414
- var n = We(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
1414
+ var n = ze(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
1415
1415
  return e === !0 ? Zn(n, this._week.dow) : e ? n[e.day()] : n;
1416
1416
  }
1417
1417
  function hl(e) {
@@ -1548,9 +1548,9 @@ H("k", pe, Kt);
1548
1548
  H("HH", pe, Fe);
1549
1549
  H("hh", pe, Fe);
1550
1550
  H("kk", pe, Fe);
1551
- H("hmm", Wr);
1551
+ H("hmm", zr);
1552
1552
  H("hmmss", Gr);
1553
- H("Hmm", Wr);
1553
+ H("Hmm", zr);
1554
1554
  H("Hmmss", Gr);
1555
1555
  ue(["H", "HH"], Se);
1556
1556
  ue(["k", "kk"], function(e, t, n) {
@@ -1565,19 +1565,19 @@ ue(["h", "hh"], function(e, t, n) {
1565
1565
  });
1566
1566
  ue("hmm", function(e, t, n) {
1567
1567
  var r = e.length - 2;
1568
- t[Se] = re(e.substr(0, r)), t[ze] = re(e.substr(r)), se(n).bigHour = !0;
1568
+ t[Se] = re(e.substr(0, r)), t[We] = re(e.substr(r)), se(n).bigHour = !0;
1569
1569
  });
1570
1570
  ue("hmmss", function(e, t, n) {
1571
1571
  var r = e.length - 4, i = e.length - 2;
1572
- t[Se] = re(e.substr(0, r)), t[ze] = re(e.substr(r, 2)), t[ht] = re(e.substr(i)), se(n).bigHour = !0;
1572
+ t[Se] = re(e.substr(0, r)), t[We] = re(e.substr(r, 2)), t[ht] = re(e.substr(i)), se(n).bigHour = !0;
1573
1573
  });
1574
1574
  ue("Hmm", function(e, t, n) {
1575
1575
  var r = e.length - 2;
1576
- t[Se] = re(e.substr(0, r)), t[ze] = re(e.substr(r));
1576
+ t[Se] = re(e.substr(0, r)), t[We] = re(e.substr(r));
1577
1577
  });
1578
1578
  ue("Hmmss", function(e, t, n) {
1579
1579
  var r = e.length - 4, i = e.length - 2;
1580
- t[Se] = re(e.substr(0, r)), t[ze] = re(e.substr(r, 2)), t[ht] = re(e.substr(i));
1580
+ t[Se] = re(e.substr(0, r)), t[We] = re(e.substr(r, 2)), t[ht] = re(e.substr(i));
1581
1581
  });
1582
1582
  function _l(e) {
1583
1583
  return (e + "").toLowerCase().charAt(0) === "p";
@@ -1661,7 +1661,7 @@ function er(e, t) {
1661
1661
  name: e,
1662
1662
  config: t
1663
1663
  }), null;
1664
- return ge[e] = new zn(En(r, t)), ds[e] && ds[e].forEach(function(i) {
1664
+ return ge[e] = new Wn(En(r, t)), ds[e] && ds[e].forEach(function(i) {
1665
1665
  er(i.name, i.config);
1666
1666
  }), Nt(e), ge[e];
1667
1667
  } else
@@ -1670,7 +1670,7 @@ function er(e, t) {
1670
1670
  function Ol(e, t) {
1671
1671
  if (t != null) {
1672
1672
  var n, r, i = ra;
1673
- ge[e] != null && ge[e].parentLocale != null ? ge[e].set(En(ge[e]._config, t)) : (r = pn(e), r != null && (i = r._config), t = En(i, t), r == null && (t.abbr = e), n = new zn(t), n.parentLocale = ge[e], ge[e] = n), Nt(e);
1673
+ ge[e] != null && ge[e].parentLocale != null ? ge[e].set(En(ge[e]._config, t)) : (r = pn(e), r != null && (i = r._config), t = En(i, t), r == null && (t.abbr = e), n = new Wn(t), n.parentLocale = ge[e], ge[e] = n), Nt(e);
1674
1674
  } else
1675
1675
  ge[e] != null && (ge[e].parentLocale != null ? (ge[e] = ge[e].parentLocale, e === Nt() && Nt(e)) : ge[e] != null && delete ge[e]);
1676
1676
  return ge[e];
@@ -1679,7 +1679,7 @@ function pt(e) {
1679
1679
  var t;
1680
1680
  if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)
1681
1681
  return Ns;
1682
- if (!We(e)) {
1682
+ if (!ze(e)) {
1683
1683
  if (t = pn(e), t)
1684
1684
  return t;
1685
1685
  e = [e];
@@ -1691,9 +1691,9 @@ function Ml() {
1691
1691
  }
1692
1692
  function tr(e) {
1693
1693
  var t, n = e._a;
1694
- return n && se(e).overflow === -2 && (t = n[dt] < 0 || n[dt] > 11 ? dt : n[et] < 1 || n[et] > Qn(n[Ce], n[dt]) ? et : n[Se] < 0 || n[Se] > 24 || n[Se] === 24 && (n[ze] !== 0 || n[ht] !== 0 || n[Ct] !== 0) ? Se : n[ze] < 0 || n[ze] > 59 ? ze : n[ht] < 0 || n[ht] > 59 ? ht : n[Ct] < 0 || n[Ct] > 999 ? Ct : -1, se(e)._overflowDayOfYear && (t < Ce || t > et) && (t = et), se(e)._overflowWeeks && t === -1 && (t = Li), se(e)._overflowWeekday && t === -1 && (t = ki), se(e).overflow = t), e;
1694
+ return n && se(e).overflow === -2 && (t = n[dt] < 0 || n[dt] > 11 ? dt : n[et] < 1 || n[et] > Qn(n[Ce], n[dt]) ? et : n[Se] < 0 || n[Se] > 24 || n[Se] === 24 && (n[We] !== 0 || n[ht] !== 0 || n[Ct] !== 0) ? Se : n[We] < 0 || n[We] > 59 ? We : n[ht] < 0 || n[ht] > 59 ? ht : n[Ct] < 0 || n[Ct] > 999 ? Ct : -1, se(e)._overflowDayOfYear && (t < Ce || t > et) && (t = et), se(e)._overflowWeeks && t === -1 && (t = Li), se(e)._overflowWeekday && t === -1 && (t = ki), se(e).overflow = t), e;
1695
1695
  }
1696
- var Al = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, El = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, Rl = /Z|[+-]\d\d(?::?\d\d)?/, Ws = [
1696
+ var Al = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, El = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, Rl = /Z|[+-]\d\d(?::?\d\d)?/, zs = [
1697
1697
  ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
1698
1698
  ["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
1699
1699
  ["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
@@ -1730,11 +1730,11 @@ var Al = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
1730
1730
  PST: -8 * 60
1731
1731
  };
1732
1732
  function aa(e) {
1733
- var t, n, r = e._i, i = Al.exec(r) || El.exec(r), a, u, f, o, l = Ws.length, c = Sn.length;
1733
+ var t, n, r = e._i, i = Al.exec(r) || El.exec(r), a, u, f, o, l = zs.length, c = Sn.length;
1734
1734
  if (i) {
1735
1735
  for (se(e).iso = !0, t = 0, n = l; t < n; t++)
1736
- if (Ws[t][1].exec(i[1])) {
1737
- u = Ws[t][0], a = Ws[t][2] !== !1;
1736
+ if (zs[t][1].exec(i[1])) {
1737
+ u = zs[t][0], a = zs[t][2] !== !1;
1738
1738
  break;
1739
1739
  }
1740
1740
  if (u == null) {
@@ -1856,17 +1856,17 @@ function Bl(e) {
1856
1856
  function sr(e) {
1857
1857
  var t, n, r = [], i, a, u;
1858
1858
  if (!e._d) {
1859
- for (i = Bl(e), e._w && e._a[et] == null && e._a[dt] == null && zl(e), e._dayOfYear != null && (u = Ut(e._a[Ce], i[Ce]), (e._dayOfYear > ps(u) || e._dayOfYear === 0) && (se(e)._overflowDayOfYear = !0), n = gs(u, 0, e._dayOfYear), e._a[dt] = n.getUTCMonth(), e._a[et] = n.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
1859
+ for (i = Bl(e), e._w && e._a[et] == null && e._a[dt] == null && Wl(e), e._dayOfYear != null && (u = Ut(e._a[Ce], i[Ce]), (e._dayOfYear > ps(u) || e._dayOfYear === 0) && (se(e)._overflowDayOfYear = !0), n = gs(u, 0, e._dayOfYear), e._a[dt] = n.getUTCMonth(), e._a[et] = n.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
1860
1860
  e._a[t] = r[t] = i[t];
1861
1861
  for (; t < 7; t++)
1862
1862
  e._a[t] = r[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
1863
- e._a[Se] === 24 && e._a[ze] === 0 && e._a[ht] === 0 && e._a[Ct] === 0 && (e._nextDay = !0, e._a[Se] = 0), e._d = (e._useUTC ? gs : Qi).apply(
1863
+ e._a[Se] === 24 && e._a[We] === 0 && e._a[ht] === 0 && e._a[Ct] === 0 && (e._nextDay = !0, e._a[Se] = 0), e._d = (e._useUTC ? gs : Qi).apply(
1864
1864
  null,
1865
1865
  r
1866
1866
  ), a = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[Se] = 24), e._w && typeof e._w.d < "u" && e._w.d !== a && (se(e).weekdayMismatch = !0);
1867
1867
  }
1868
1868
  }
1869
- function zl(e) {
1869
+ function Wl(e) {
1870
1870
  var t, n, r, i, a, u, f, o, l;
1871
1871
  t = e._w, t.GG != null || t.W != null || t.E != null ? (a = 1, u = 4, n = Ut(
1872
1872
  t.GG,
@@ -1889,17 +1889,17 @@ function nr(e) {
1889
1889
  }
1890
1890
  e._a = [], se(e).empty = !0;
1891
1891
  var t = "" + e._i, n, r, i, a, u, f = t.length, o = 0, l, c;
1892
- for (i = Hr(e._f, e._locale).match(Wn) || [], c = i.length, n = 0; n < c; n++)
1892
+ for (i = Hr(e._f, e._locale).match(zn) || [], c = i.length, n = 0; n < c; n++)
1893
1893
  a = i[n], r = (t.match(Ai(a, e)) || [])[0], r && (u = t.substr(0, t.indexOf(r)), u.length > 0 && se(e).unusedInput.push(u), t = t.slice(
1894
1894
  t.indexOf(r) + r.length
1895
1895
  ), o += r.length), Bt[a] ? (r ? se(e).empty = !1 : se(e).unusedTokens.push(a), Ri(a, r, e)) : e._strict && !r && se(e).unusedTokens.push(a);
1896
- se(e).charsLeftOver = f - o, t.length > 0 && se(e).unusedInput.push(t), e._a[Se] <= 12 && se(e).bigHour === !0 && e._a[Se] > 0 && (se(e).bigHour = void 0), se(e).parsedDateParts = e._a.slice(0), se(e).meridiem = e._meridiem, e._a[Se] = Wl(
1896
+ se(e).charsLeftOver = f - o, t.length > 0 && se(e).unusedInput.push(t), e._a[Se] <= 12 && se(e).bigHour === !0 && e._a[Se] > 0 && (se(e).bigHour = void 0), se(e).parsedDateParts = e._a.slice(0), se(e).meridiem = e._meridiem, e._a[Se] = zl(
1897
1897
  e._locale,
1898
1898
  e._a[Se],
1899
1899
  e._meridiem
1900
1900
  ), l = se(e).era, l !== null && (e._a[Ce] = e._locale.erasConvertYear(l, e._a[Ce])), sr(e), tr(e);
1901
1901
  }
1902
- function Wl(e, t, n) {
1902
+ function zl(e, t, n) {
1903
1903
  var r;
1904
1904
  return n == null ? t : e.meridiemHour != null ? e.meridiemHour(t, n) : (e.isPM != null && (r = e.isPM(n), r && t < 12 && (t += 12), !r && t === 12 && (t = 0)), t);
1905
1905
  }
@@ -1930,17 +1930,17 @@ function ql(e) {
1930
1930
  }
1931
1931
  function la(e) {
1932
1932
  var t = e._i, n = e._f;
1933
- return e._locale = e._locale || pt(e._l), t === null || n === void 0 && t === "" ? on({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), Ge(t) ? new bs(tr(t)) : (_s(t) ? e._d = t : We(n) ? Gl(e) : n ? nr(e) : Kl(e), Hn(e) || (e._d = null), e));
1933
+ return e._locale = e._locale || pt(e._l), t === null || n === void 0 && t === "" ? on({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), Ge(t) ? new bs(tr(t)) : (_s(t) ? e._d = t : ze(n) ? Gl(e) : n ? nr(e) : Kl(e), Hn(e) || (e._d = null), e));
1934
1934
  }
1935
1935
  function Kl(e) {
1936
1936
  var t = e._i;
1937
- Re(t) ? e._d = new Date(L.now()) : _s(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? Hl(e) : We(t) ? (e._a = Yr(t.slice(0), function(n) {
1937
+ Re(t) ? e._d = new Date(L.now()) : _s(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? Hl(e) : ze(t) ? (e._a = Yr(t.slice(0), function(n) {
1938
1938
  return parseInt(n, 10);
1939
1939
  }), sr(e)) : Ot(t) ? Vl(e) : ft(t) ? e._d = new Date(t) : L.createFromInputFallback(e);
1940
1940
  }
1941
1941
  function oa(e, t, n, r, i) {
1942
1942
  var a = {};
1943
- return (t === !0 || t === !1) && (r = t, t = void 0), (n === !0 || n === !1) && (r = n, n = void 0), (Ot(e) && $n(e) || We(e) && e.length === 0) && (e = void 0), a._isAMomentObject = !0, a._useUTC = a._isUTC = i, a._l = n, a._i = e, a._f = t, a._strict = r, ql(a);
1943
+ return (t === !0 || t === !1) && (r = t, t = void 0), (n === !0 || n === !1) && (r = n, n = void 0), (Ot(e) && $n(e) || ze(e) && e.length === 0) && (e = void 0), a._isAMomentObject = !0, a._useUTC = a._isUTC = i, a._l = n, a._i = e, a._f = t, a._strict = r, ql(a);
1944
1944
  }
1945
1945
  function fe(e, t, n, r) {
1946
1946
  return oa(e, t, n, r, !1);
@@ -1960,7 +1960,7 @@ var Ql = Ue(
1960
1960
  );
1961
1961
  function ca(e, t) {
1962
1962
  var n, r;
1963
- if (t.length === 1 && We(t[0]) && (t = t[0]), !t.length)
1963
+ if (t.length === 1 && ze(t[0]) && (t = t[0]), !t.length)
1964
1964
  return fe();
1965
1965
  for (n = t[0], r = 1; r < t.length; ++r)
1966
1966
  (!t[r].isValid() || t[r][e](n)) && (n = t[r]);
@@ -2119,7 +2119,7 @@ function qe(e, t) {
2119
2119
  y: 0,
2120
2120
  d: re(r[et]) * i,
2121
2121
  h: re(r[Se]) * i,
2122
- m: re(r[ze]) * i,
2122
+ m: re(r[We]) * i,
2123
2123
  s: re(r[ht]) * i,
2124
2124
  ms: re(kn(r[Ct] * 1e3)) * i
2125
2125
  // the millisecond decimal point is included in the match
@@ -2202,7 +2202,7 @@ function bo(e) {
2202
2202
  return t && n;
2203
2203
  }
2204
2204
  function So(e) {
2205
- var t = We(e), n = !1;
2205
+ var t = ze(e), n = !1;
2206
2206
  return t && (n = e.filter(function(r) {
2207
2207
  return !ft(r) && fa(e);
2208
2208
  }).length === 0), t && n;
@@ -2356,8 +2356,8 @@ var ya = Ue(
2356
2356
  function ga() {
2357
2357
  return this._locale;
2358
2358
  }
2359
- var en = 1e3, zt = 60 * en, tn = 60 * zt, xa = (365 * 400 + 97) * 24 * tn;
2360
- function Wt(e, t) {
2359
+ var en = 1e3, Wt = 60 * en, tn = 60 * Wt, xa = (365 * 400 + 97) * 24 * tn;
2360
+ function zt(e, t) {
2361
2361
  return (e % t + t) % t;
2362
2362
  }
2363
2363
  function Na(e, t, n) {
@@ -2366,7 +2366,7 @@ function Na(e, t, n) {
2366
2366
  function ja(e, t, n) {
2367
2367
  return e < 100 && e >= 0 ? Date.UTC(e + 400, t, n) - xa : Date.UTC(e, t, n);
2368
2368
  }
2369
- function zo(e) {
2369
+ function Wo(e) {
2370
2370
  var t, n;
2371
2371
  if (e = $e(e), e === void 0 || e === "millisecond" || !this.isValid())
2372
2372
  return this;
@@ -2403,21 +2403,21 @@ function zo(e) {
2403
2403
  t = n(this.year(), this.month(), this.date());
2404
2404
  break;
2405
2405
  case "hour":
2406
- t = this._d.valueOf(), t -= Wt(
2407
- t + (this._isUTC ? 0 : this.utcOffset() * zt),
2406
+ t = this._d.valueOf(), t -= zt(
2407
+ t + (this._isUTC ? 0 : this.utcOffset() * Wt),
2408
2408
  tn
2409
2409
  );
2410
2410
  break;
2411
2411
  case "minute":
2412
- t = this._d.valueOf(), t -= Wt(t, zt);
2412
+ t = this._d.valueOf(), t -= zt(t, Wt);
2413
2413
  break;
2414
2414
  case "second":
2415
- t = this._d.valueOf(), t -= Wt(t, en);
2415
+ t = this._d.valueOf(), t -= zt(t, en);
2416
2416
  break;
2417
2417
  }
2418
2418
  return this._d.setTime(t), L.updateOffset(this, !0), this;
2419
2419
  }
2420
- function Wo(e) {
2420
+ function zo(e) {
2421
2421
  var t, n;
2422
2422
  if (e = $e(e), e === void 0 || e === "millisecond" || !this.isValid())
2423
2423
  return this;
@@ -2454,16 +2454,16 @@ function Wo(e) {
2454
2454
  t = n(this.year(), this.month(), this.date() + 1) - 1;
2455
2455
  break;
2456
2456
  case "hour":
2457
- t = this._d.valueOf(), t += tn - Wt(
2458
- t + (this._isUTC ? 0 : this.utcOffset() * zt),
2457
+ t = this._d.valueOf(), t += tn - zt(
2458
+ t + (this._isUTC ? 0 : this.utcOffset() * Wt),
2459
2459
  tn
2460
2460
  ) - 1;
2461
2461
  break;
2462
2462
  case "minute":
2463
- t = this._d.valueOf(), t += zt - Wt(t, zt) - 1;
2463
+ t = this._d.valueOf(), t += Wt - zt(t, Wt) - 1;
2464
2464
  break;
2465
2465
  case "second":
2466
- t = this._d.valueOf(), t += en - Wt(t, en) - 1;
2466
+ t = this._d.valueOf(), t += en - zt(t, en) - 1;
2467
2467
  break;
2468
2468
  }
2469
2469
  return this._d.setTime(t), L.updateOffset(this, !0), this;
@@ -2750,7 +2750,7 @@ ue("Do", function(e, t) {
2750
2750
  var _a = Qt("Date", !0);
2751
2751
  q("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
2752
2752
  H("DDD", dn);
2753
- H("DDDD", zr);
2753
+ H("DDDD", Wr);
2754
2754
  ue(["DDD", "DDDD"], function(e, t, n) {
2755
2755
  n._dayOfYear = re(e);
2756
2756
  });
@@ -2763,7 +2763,7 @@ function bc(e) {
2763
2763
  q("m", ["mm", 2], 0, "minute");
2764
2764
  H("m", pe, Kn);
2765
2765
  H("mm", pe, Fe);
2766
- ue(["m", "mm"], ze);
2766
+ ue(["m", "mm"], We);
2767
2767
  var Sc = Qt("Minutes", !1);
2768
2768
  q("s", ["ss", 2], 0, "second");
2769
2769
  H("s", pe, Kn);
@@ -2797,7 +2797,7 @@ q(0, ["SSSSSSSSS", 9], 0, function() {
2797
2797
  });
2798
2798
  H("S", dn, Br);
2799
2799
  H("SS", dn, Fe);
2800
- H("SSS", dn, zr);
2800
+ H("SSS", dn, Wr);
2801
2801
  var xt, ba;
2802
2802
  for (xt = "SSSS"; xt.length <= 9; xt += "S")
2803
2803
  H(xt, qt);
@@ -2820,7 +2820,7 @@ A.add = jo;
2820
2820
  A.calendar = Io;
2821
2821
  A.clone = Co;
2822
2822
  A.diff = ko;
2823
- A.endOf = Wo;
2823
+ A.endOf = zo;
2824
2824
  A.format = Yo;
2825
2825
  A.from = Uo;
2826
2826
  A.fromNow = $o;
@@ -2842,7 +2842,7 @@ A.max = Zl;
2842
2842
  A.min = Ql;
2843
2843
  A.parsingFlags = Xo;
2844
2844
  A.set = Di;
2845
- A.startOf = zo;
2845
+ A.startOf = Wo;
2846
2846
  A.subtract = vo;
2847
2847
  A.toArray = Ko;
2848
2848
  A.toObject = Qo;
@@ -2924,7 +2924,7 @@ function Mc() {
2924
2924
  function Sa(e) {
2925
2925
  return e;
2926
2926
  }
2927
- var ce = zn.prototype;
2927
+ var ce = Wn.prototype;
2928
2928
  ce.calendar = fi;
2929
2929
  ce.longDateFormat = xi;
2930
2930
  ce.invalidDate = ji;
@@ -2941,7 +2941,7 @@ ce.erasAbbrRegex = dc;
2941
2941
  ce.erasNameRegex = cc;
2942
2942
  ce.erasNarrowRegex = hc;
2943
2943
  ce.months = Bi;
2944
- ce.monthsShort = zi;
2944
+ ce.monthsShort = Wi;
2945
2945
  ce.monthsParse = Gi;
2946
2946
  ce.monthsRegex = Ki;
2947
2947
  ce.monthsShortRegex = qi;
@@ -3091,7 +3091,7 @@ function yt(e) {
3091
3091
  return this.as(e);
3092
3092
  };
3093
3093
  }
3094
- var Ca = yt("ms"), $c = yt("s"), Hc = yt("m"), Bc = yt("h"), zc = yt("d"), Wc = yt("w"), Gc = yt("M"), Vc = yt("Q"), qc = yt("y"), Kc = Ca;
3094
+ var Ca = yt("ms"), $c = yt("s"), Hc = yt("m"), Bc = yt("h"), Wc = yt("d"), zc = yt("w"), Gc = yt("M"), Vc = yt("Q"), qc = yt("y"), Kc = Ca;
3095
3095
  function Qc() {
3096
3096
  return qe(this);
3097
3097
  }
@@ -3162,8 +3162,8 @@ ae.asMilliseconds = Ca;
3162
3162
  ae.asSeconds = $c;
3163
3163
  ae.asMinutes = Hc;
3164
3164
  ae.asHours = Bc;
3165
- ae.asDays = zc;
3166
- ae.asWeeks = Wc;
3165
+ ae.asDays = Wc;
3166
+ ae.asWeeks = zc;
3167
3167
  ae.asMonths = Gc;
3168
3168
  ae.asQuarters = Vc;
3169
3169
  ae.asYears = qc;
@@ -4366,29 +4366,29 @@ const Gs = (e, t, n) => {
4366
4366
  a.companyLogo && (be = await Vt(`https://${a.companyLogo.bucket}.s3.amazonaws.com/${a.companyLogo.key}`)), a.qrcode && (Q = await Vt(`https://${a.qrcode.bucket}.s3.amazonaws.com/${a.qrcode.key}`)), e.orderList.filter((J) => {
4367
4367
  J.services.forEach(async (G, de) => {
4368
4368
  var Ke, Qe;
4369
- let z = "kitchen", X = e.tableName ? e.tableName : e.orderFrom;
4370
- z && (f[z] || (f[z] = {}, f[z].station = z, f[z].services = [], f[z].tableName = X, f[z].customerName = e.name, f[z].time = L.unix(e.timestamp).format("DD-MM-YYYY hh:mm a"), f[z].type = e.orderFrom, f[z].orderId = e.orderId, f[z].instruction = e.instruction, f[z].totalQty = 0, f[z].tokenId = e.tokenId, f[z].orderSource = e.orderSource, f[z].aggregatorOrderId = e.externalOrderId, f[z].otp = e.otp, f[z].paymentState = e.paymentState, f[z].discountAmt = c, f[z].otherCharges = e.otherCharges, f[z].taxAmt = e.taxAmt, f[z].customFeilds = l, f[z].curr = t.curr ?? "INR", f[z].zomatoInstant = x), f[z] ? (o = {
4369
+ let W = "kitchen", X = e.tableName ? e.tableName : e.orderFrom;
4370
+ W && (f[W] || (f[W] = {}, f[W].station = W, f[W].services = [], f[W].tableName = X, f[W].customerName = e.name, f[W].time = L.unix(e.timestamp).format("DD-MM-YYYY hh:mm a"), f[W].type = e.orderFrom, f[W].orderId = e.orderId, f[W].instruction = e.instruction, f[W].totalQty = 0, f[W].tokenId = e.tokenId, f[W].orderSource = e.orderSource, f[W].aggregatorOrderId = e.externalOrderId, f[W].otp = e.otp, f[W].paymentState = e.paymentState, f[W].discountAmt = c, f[W].otherCharges = e.otherCharges, f[W].taxAmt = e.taxAmt, f[W].customFeilds = l, f[W].curr = t.curr ?? "INR", f[W].zomatoInstant = x), f[W] ? (o = {
4371
4371
  serviceName: G.serviceName,
4372
4372
  qty: G.qty,
4373
4373
  instruction: G.isUrgent && G.instruction ? `(URGENT -${G.instruction})` : G.instruction ? `(${G.instruction})` : G.isUrgent ? "(URGENT)" : "",
4374
4374
  subOrderId: J.subOrderId,
4375
4375
  isUrgent: G.isUrgent,
4376
4376
  index: de
4377
- }, (Ke = G.addons) != null && Ke.length && (o.addons = G.addons), f[z].services.push(o), f[z].totalQty += G.qty) : (f[z] = [], f[z].services.push({
4377
+ }, (Ke = G.addons) != null && Ke.length && (o.addons = G.addons), f[W].services.push(o), f[W].totalQty += G.qty) : (f[W] = [], f[W].services.push({
4378
4378
  serviceName: G.serviceName,
4379
4379
  qty: G.qty,
4380
4380
  instruction: G.instruction ? G.instruction : "",
4381
4381
  subOrderId: J.subOrderId,
4382
4382
  index: de
4383
- }), f[z].totalQty += G.qty), f[z] = {
4384
- ...f[z],
4383
+ }), f[W].totalQty += G.qty), f[W] = {
4384
+ ...f[W],
4385
4385
  companyInfo: $,
4386
4386
  orderInfo: Z,
4387
4387
  customerInfo: ne,
4388
4388
  gst: D,
4389
4389
  curr: te
4390
- }, f[z].domain = a.siteURL, f[z].paymentMethods = a.paymentMode ? ie.paymentMethods : null, f[z].companyInfo.companyName = a.companyName, f[z].companyInfo.companyEmail = a.email, f[z].companyInfo.companyAddress = a.address, f[z].companyInfo.companyContact = a.mobile, f[z].tokenId = a.token ? ie.tokenId : null, a.isPayQR && a.upiId && a.upiId !== "" && (ie.upiId = a.upiId), f[z].gstNo = a.gst ? ie.gst : null, f[z].footerMessage = a.footerMessage, f[z].orderFrom = (Qe = e.subOrderFrom) == null ? void 0 : Qe.toUpperCase(), f[z].fssai = t.fssai, f[z].vatNo = t.vatNo, f[z].printOperatorInfo = a.printOperatorInfo === null || a.printOperatorInfo === !0, f[z].disabledPoweredBy = t.disabledPoweredBy === !0, f[z].printTime = L().format("DD-MM-YYYY hh:mm A"), f[z].printedBy = u.userRole == "admin" ? "Admin" : u.name, e.deliveryTimestamp && (f[z].deliveryTimestamp = L.unix(e.deliveryTimestamp).format("DD-MM-YYYY hh:mm A")), f[z].itemInstructionOnBill = a.itemInstructionOnBill, f[z] = {
4391
- ...f[z],
4390
+ }, f[W].domain = a.siteURL, f[W].paymentMethods = a.paymentMode ? ie.paymentMethods : null, f[W].companyInfo.companyName = a.companyName, f[W].companyInfo.companyEmail = a.email, f[W].companyInfo.companyAddress = a.address, f[W].companyInfo.companyContact = a.mobile, f[W].tokenId = a.token ? ie.tokenId : null, a.isPayQR && a.upiId && a.upiId !== "" && (ie.upiId = a.upiId), f[W].gstNo = a.gst ? ie.gst : null, f[W].footerMessage = a.footerMessage, f[W].orderFrom = (Qe = e.subOrderFrom) == null ? void 0 : Qe.toUpperCase(), f[W].fssai = t.fssai, f[W].vatNo = t.vatNo, f[W].printOperatorInfo = a.printOperatorInfo === null || a.printOperatorInfo === !0, f[W].disabledPoweredBy = t.disabledPoweredBy === !0, f[W].printTime = L().format("DD-MM-YYYY hh:mm A"), f[W].printedBy = u.userRole == "admin" ? "Admin" : u.name, e.deliveryTimestamp && (f[W].deliveryTimestamp = L.unix(e.deliveryTimestamp).format("DD-MM-YYYY hh:mm A")), f[W].itemInstructionOnBill = a.itemInstructionOnBill, f[W] = {
4391
+ ...f[W],
4392
4392
  companyLogo: be,
4393
4393
  companyQrCode: Q
4394
4394
  });
@@ -4510,7 +4510,7 @@ const Gs = (e, t, n) => {
4510
4510
  custAddress: m && m.custAddress && _ || null,
4511
4511
  custContact: m && m.custMobile ? v : null,
4512
4512
  custEmail: "ajaybaglane7@gmail.com"
4513
- }, z = Nn(t.curr), X = { ...e, companyInfo: Q, orderInfo: G, customerInfo: de, gst: be, curr: z };
4513
+ }, W = Nn(t.curr), X = { ...e, companyInfo: Q, orderInfo: G, customerInfo: de, gst: be, curr: W };
4514
4514
  if (m) {
4515
4515
  if (X.domain = m.siteURL, X.paymentMethods = m.paymentMode ? X.paymentMethods : null, X.companyInfo.companyName = m.companyName, X.companyInfo.companyEmail = m.email, X.companyInfo.companyAddress = m.address, X.companyInfo.companyContact = m.mobile, X.customerInfo.custName = m.custName ? x : null, X.tokenId = m.token ? X.tokenId : null, m.isPayQR && m.upiId && m.upiId !== "" && (X.upiId = m.upiId), X.gstNo = m.gst ? X.gst : null, X.footerMessage = m.footerMessage, X.orderFrom = (o = e.subOrderFrom) == null ? void 0 : o.toUpperCase(), X.fssai = t.fssai, X.vatNo = t.vatNo, X.invoiceType = t.invoiceType, X.taxLabel = Oa(t), X.printOperatorInfo = m.printOperatorInfo === null || m.printOperatorInfo === !0, X.disabledPoweredBy = t.disabledPoweredBy === !0, X.printTime = L().format("DD-MM-YYYY hh:mm A"), e.deliveryTimestamp && (X.deliveryTimestamp = L.unix(e.deliveryTimestamp).format("DD-MM-YYYY hh:mm A")), X.itemInstructionOnBill = m.itemInstructionOnBill, X.printHSNCodeOnBill = m.printHSNCodeOnBill, X.noOfInvoice = m.noOfInvoice, X.printby = w, X.newFormat = !0, !(m.itemInstructionOnBill || m.printHSNCodeOnBill) && ((l = X.itemList) != null && l.length)) {
4516
4516
  let ee;
@@ -4536,7 +4536,7 @@ const Gs = (e, t, n) => {
4536
4536
  navigator.userAgent.indexOf("Win") != -1 && (a = "Windows OS"), navigator.userAgent.indexOf("Mac") != -1 && (a = "Macintosh"), navigator.userAgent.indexOf("Linux") != -1 && (a = "Linux OS"), navigator.userAgent.indexOf("Android") != -1 && (a = "Android OS"), navigator.userAgent.indexOf("like Mac") != -1 && (a = "iOS");
4537
4537
  let Ze = {};
4538
4538
  (function() {
4539
- let ee, Ne, at = 0, y = 0, d = 0, O = 0, j = 0, I = 0, U = 0, b = 0, F = [], W = [], he = 0, Oe;
4539
+ let ee, Ne, at = 0, y = 0, d = 0, O = 0, j = 0, I = 0, U = 0, b = 0, F = [], z = [], he = 0, Oe;
4540
4540
  if (D === "A4" || D === "A5") {
4541
4541
  for (Ne = 0; Ne < S.length; Ne++)
4542
4542
  ee = S[Ne], y += ee.sub_total, d += ee.afterdiscAmt, O += ee.afterdiscAmt + (ee.total_charges ?? 0), at += ee.afterdiscAmt + (ee.total_charges ?? 0), he += ee.qty;
@@ -4560,7 +4560,7 @@ const Gs = (e, t, n) => {
4560
4560
  } else {
4561
4561
  let { obj: De } = Vs(S);
4562
4562
  for (X.taxation = De, Ne = 0; Ne < S.length; Ne++)
4563
- ee = S[Ne], ee.taxType === "VAT" ? (W.push(ee), b += ee.sub_total, I += ee.afterdiscAmt, j += ee.afterdiscAmt + (ee.total_charges ?? 0), U += ee.afterdiscAmt + (ee.total_charges ?? 0)) : (F.push(ee), y += ee.sub_total, d += ee.afterdiscAmt, O += ee.afterdiscAmt + (ee.total_charges ?? 0), at += ee.afterdiscAmt + (ee.total_charges ?? 0));
4563
+ ee = S[Ne], ee.taxType === "VAT" ? (z.push(ee), b += ee.sub_total, I += ee.afterdiscAmt, j += ee.afterdiscAmt + (ee.total_charges ?? 0), U += ee.afterdiscAmt + (ee.total_charges ?? 0)) : (F.push(ee), y += ee.sub_total, d += ee.afterdiscAmt, O += ee.afterdiscAmt + (ee.total_charges ?? 0), at += ee.afterdiscAmt + (ee.total_charges ?? 0));
4564
4564
  if (F.length) {
4565
4565
  let Ae = wn(F, "discountName", { separateItemsDisc: !0 });
4566
4566
  const Ie = Cn(Ae);
@@ -4579,17 +4579,17 @@ const Gs = (e, t, n) => {
4579
4579
  total: _e(at + He)
4580
4580
  };
4581
4581
  }
4582
- if (W.length) {
4583
- let Ae = wn(W, "discountName", { separateItemsDisc: !0 });
4582
+ if (z.length) {
4583
+ let Ae = wn(z, "discountName", { separateItemsDisc: !0 });
4584
4584
  const Ie = Cn(Ae);
4585
- let { obj: ke, sum: He } = Vs(W);
4585
+ let { obj: ke, sum: He } = Vs(z);
4586
4586
  Ze.VAT = {
4587
- itemList: On(W, {
4587
+ itemList: On(z, {
4588
4588
  itemInstructionOnBill: m.itemInstructionOnBill,
4589
4589
  printZeroPriceAddons: m.printZeroPriceAddons
4590
4590
  }),
4591
4591
  discounts: Ie,
4592
- charges: In(W, "name"),
4592
+ charges: In(z, "name"),
4593
4593
  taxation: ke,
4594
4594
  subTotal: _e(b),
4595
4595
  afterDisc: _e(I),
@@ -4650,8 +4650,8 @@ const Gs = (e, t, n) => {
4650
4650
  h.companyLogo && (G = await Vt(`https://${h.companyLogo.bucket}.s3.amazonaws.com/${h.companyLogo.key}`)), h.qrcode && (de = await Vt(`https://${h.qrcode.bucket}.s3.amazonaws.com/${h.qrcode.key}`));
4651
4651
  var a = "Unknown OS";
4652
4652
  navigator.userAgent.indexOf("Win") != -1 && (a = "Windows OS"), navigator.userAgent.indexOf("Mac") != -1 && (a = "Macintosh"), navigator.userAgent.indexOf("Linux") != -1 && (a = "Linux OS"), navigator.userAgent.indexOf("Android") != -1 && (a = "Android OS"), navigator.userAgent.indexOf("like Mac") != -1 && (a = "iOS");
4653
- let z = { obj: Q, companyLogo: G, companyQrCode: de, paperSize: t.printerSize, Name: a };
4654
- r(z);
4653
+ let W = { obj: Q, companyLogo: G, companyQrCode: de, paperSize: t.printerSize, Name: a };
4654
+ r(W);
4655
4655
  }
4656
4656
  }
4657
4657
  } catch (h) {
@@ -4803,18 +4803,18 @@ const Le = (e, t) => {
4803
4803
  const n = Object.getPrototypeOf(e);
4804
4804
  return n === null ? !1 : n.constructor.name === t.name || Le(n, t);
4805
4805
  };
4806
- function zd(e) {
4806
+ function Wd(e) {
4807
4807
  const t = e.getPropertyValue("content");
4808
4808
  return `${e.cssText} content: '${t.replace(/'|"/g, "")}';`;
4809
4809
  }
4810
- function Wd(e, t) {
4810
+ function zd(e, t) {
4811
4811
  return Ea(t).map((n) => {
4812
4812
  const r = e.getPropertyValue(n), i = e.getPropertyPriority(n);
4813
4813
  return `${n}: ${r}${i ? " !important" : ""};`;
4814
4814
  }).join(" ");
4815
4815
  }
4816
4816
  function Gd(e, t, n, r) {
4817
- const i = `.${e}:${t}`, a = n.cssText ? zd(n) : Wd(n, r);
4817
+ const i = `.${e}:${t}`, a = n.cssText ? Wd(n) : zd(n, r);
4818
4818
  return document.createTextNode(`${i}{${a}}`);
4819
4819
  }
4820
4820
  function Cr(e, t, n, r) {
@@ -5647,12 +5647,12 @@ var Ht = Mt;
5647
5647
  * Copyright (c) Paul O'Shannessy
5648
5648
  * SPDX-License-Identifier: ISC
5649
5649
  */
5650
- var za = {
5650
+ var Wa = {
5651
5651
  L: Ht.QrCode.Ecc.LOW,
5652
5652
  M: Ht.QrCode.Ecc.MEDIUM,
5653
5653
  Q: Ht.QrCode.Ecc.QUARTILE,
5654
5654
  H: Ht.QrCode.Ecc.HIGH
5655
- }, Wa = 128, Ga = "L", Va = "#FFFFFF", qa = "#000000", Ka = !1, fr = 4, Oh = 0.1;
5655
+ }, za = 128, Ga = "L", Va = "#FFFFFF", qa = "#000000", Ka = !1, fr = 4, Oh = 0.1;
5656
5656
  function Qa(e, t = 0) {
5657
5657
  const n = [];
5658
5658
  return e.forEach(function(r, i) {
@@ -5697,7 +5697,7 @@ var Mh = function() {
5697
5697
  function Ah(e) {
5698
5698
  const t = e, {
5699
5699
  value: n,
5700
- size: r = Wa,
5700
+ size: r = za,
5701
5701
  level: i = Ga,
5702
5702
  bgColor: a = Va,
5703
5703
  fgColor: u = qa,
@@ -5719,7 +5719,7 @@ function Ah(e) {
5719
5719
  const S = p.current, w = S.getContext("2d");
5720
5720
  if (!w)
5721
5721
  return;
5722
- let D = Ht.QrCode.encodeText(n, za[i]).getModules();
5722
+ let D = Ht.QrCode.encodeText(n, Wa[i]).getModules();
5723
5723
  const $ = f ? fr : 0, k = D.length + $ * 2, Z = Ja(D, r, f, l), ne = m.current, te = Z != null && ne !== null && ne.complete && ne.naturalHeight !== 0 && ne.naturalWidth !== 0;
5724
5724
  te && Z.excavation != null && (D = Za(D, Z.excavation));
5725
5725
  const ie = window.devicePixelRatio || 1;
@@ -5754,7 +5754,7 @@ function Ah(e) {
5754
5754
  function Eh(e) {
5755
5755
  const t = e, {
5756
5756
  value: n,
5757
- size: r = Wa,
5757
+ size: r = za,
5758
5758
  level: i = Ga,
5759
5759
  bgColor: a = Va,
5760
5760
  fgColor: u = qa,
@@ -5769,7 +5769,7 @@ function Eh(e) {
5769
5769
  "includeMargin",
5770
5770
  "imageSettings"
5771
5771
  ]);
5772
- let c = Ht.QrCode.encodeText(n, za[i]).getModules();
5772
+ let c = Ht.QrCode.encodeText(n, Wa[i]).getModules();
5773
5773
  const h = f ? fr : 0, p = c.length + h * 2, m = Ja(c, r, f, o);
5774
5774
  let x = null;
5775
5775
  o != null && m != null && (m.excavation != null && (c = Za(c, m.excavation)), x = /* @__PURE__ */ we.createElement("image", {
@@ -5900,8 +5900,8 @@ const Ve = (e) => {
5900
5900
  j.src = y, j.onload = () => {
5901
5901
  let I = document.createElement("canvas");
5902
5902
  const U = 600, b = j.height;
5903
- let F = j.width, W = j.height;
5904
- F > W ? F > U && (W *= U / F, F = U) : W > b && (F *= b / W, W = b), I.width = F, I.height = W, I.getContext("2d").drawImage(j, 0, 0, F, W), d(I.toDataURL());
5903
+ let F = j.width, z = j.height;
5904
+ F > z ? F > U && (z *= U / F, F = U) : z > b && (F *= b / z, z = b), I.width = F, I.height = z, I.getContext("2d").drawImage(j, 0, 0, F, z), d(I.toDataURL());
5905
5905
  };
5906
5906
  }), E = async () => {
5907
5907
  if (n && n.current) {
@@ -5951,9 +5951,9 @@ const Ve = (e) => {
5951
5951
  var U, b;
5952
5952
  let O = 0;
5953
5953
  if ((U = d.taxObj) != null && U.VAT.length) {
5954
- let F, W, he;
5955
- for (W = 0; W < ((b = d.taxObj) == null ? void 0 : b.VAT.length); W++) {
5956
- F = d.taxObj.VAT[W];
5954
+ let F, z, he;
5955
+ for (z = 0; z < ((b = d.taxObj) == null ? void 0 : b.VAT.length); z++) {
5956
+ F = d.taxObj.VAT[z];
5957
5957
  for (he in F)
5958
5958
  O += _e(F[he]);
5959
5959
  }
@@ -6238,9 +6238,9 @@ const Ve = (e) => {
6238
6238
  ] }) : "",
6239
6239
  y.taxObj && y.taxObj[U] && j ? /* @__PURE__ */ s.jsx(s.Fragment, { children: U === "GST" ? y.taxObj[U].map((b) => {
6240
6240
  let F = new Array();
6241
- for (const W in b)
6242
- if (b[W] && b[W] != 0) {
6243
- let he = W / 2;
6241
+ for (const z in b)
6242
+ if (b[z] && b[z] != 0) {
6243
+ let he = z / 2;
6244
6244
  F.push(
6245
6245
  /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6246
6246
  /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
@@ -6248,14 +6248,14 @@ const Ve = (e) => {
6248
6248
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: d.cgst } }),
6249
6249
  /* @__PURE__ */ s.jsx("span", { children: " @" + he + "%" })
6250
6250
  ] }) }),
6251
- /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(b[W] / 2) })
6251
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(b[z] / 2) })
6252
6252
  ] }),
6253
6253
  /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
6254
6254
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
6255
6255
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: d[y.taxLabel.toLowerCase()] } }),
6256
6256
  /* @__PURE__ */ s.jsx("span", { children: " @" + he + "%" })
6257
6257
  ] }) }),
6258
- /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(b[W] / 2) })
6258
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(b[z] / 2) })
6259
6259
  ] })
6260
6260
  ] })
6261
6261
  );
@@ -6263,16 +6263,16 @@ const Ve = (e) => {
6263
6263
  return F;
6264
6264
  }) : y.taxObj[U].map((b) => {
6265
6265
  let F = new Array();
6266
- for (const W in b)
6267
- if (b[W] && b[W] != 0) {
6268
- let he = W;
6266
+ for (const z in b)
6267
+ if (b[z] && b[z] != 0) {
6268
+ let he = z;
6269
6269
  F.push(
6270
6270
  /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
6271
6271
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
6272
6272
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: d.vat } }),
6273
6273
  /* @__PURE__ */ s.jsx("span", { children: " @" + he + "%" })
6274
6274
  ] }) }),
6275
- /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(b[W]) })
6275
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(b[z]) })
6276
6276
  ] }) })
6277
6277
  );
6278
6278
  }
@@ -6475,9 +6475,9 @@ const Ve = (e) => {
6475
6475
  ] }) : "" })) : "",
6476
6476
  y.taxObj && y.taxObj[U] && j ? /* @__PURE__ */ s.jsx(s.Fragment, { children: U === "GST" ? y.taxObj[U].map((b) => {
6477
6477
  let F = new Array();
6478
- for (const W in b)
6479
- if (b[W] && b[W] != 0) {
6480
- let he = W / 2;
6478
+ for (const z in b)
6479
+ if (b[z] && b[z] != 0) {
6480
+ let he = z / 2;
6481
6481
  F.push(
6482
6482
  /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6483
6483
  /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
@@ -6485,14 +6485,14 @@ const Ve = (e) => {
6485
6485
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: d.cgst } }),
6486
6486
  /* @__PURE__ */ s.jsx("span", { children: " @" + he + "%" })
6487
6487
  ] }) }),
6488
- /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(b[W] / 2) })
6488
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(b[z] / 2) })
6489
6489
  ] }),
6490
6490
  /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
6491
6491
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
6492
6492
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: d[y.taxLabel.toLowerCase()] } }),
6493
6493
  /* @__PURE__ */ s.jsx("span", { children: " @" + he + "%" })
6494
6494
  ] }) }),
6495
- /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(b[W] / 2) })
6495
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(b[z] / 2) })
6496
6496
  ] })
6497
6497
  ] })
6498
6498
  );
@@ -6500,16 +6500,16 @@ const Ve = (e) => {
6500
6500
  return F;
6501
6501
  }) : y.taxObj[U].map((b) => {
6502
6502
  let F = new Array();
6503
- for (const W in b)
6504
- if (b[W] && b[W] != 0) {
6505
- let he = W;
6503
+ for (const z in b)
6504
+ if (b[z] && b[z] != 0) {
6505
+ let he = z;
6506
6506
  F.push(
6507
6507
  /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
6508
6508
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
6509
6509
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: d.vat } }),
6510
6510
  /* @__PURE__ */ s.jsx("span", { children: " @" + he + "%" })
6511
6511
  ] }) }),
6512
- /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(b[W]) })
6512
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(b[z]) })
6513
6513
  ] }) })
6514
6514
  );
6515
6515
  }
@@ -6528,7 +6528,7 @@ const Ve = (e) => {
6528
6528
  })
6529
6529
  ] });
6530
6530
  }, J = (y, d, { labels: O, doMultipleTax: j, type: I }) => {
6531
- var b, F, W, he, Oe, De, Ae, Ie, ke, He, it;
6531
+ var b, F, z, he, Oe, De, Ae, Ie, ke, He, it;
6532
6532
  const U = y.discounts;
6533
6533
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6534
6534
  /* @__PURE__ */ s.jsx("hr", {}),
@@ -6645,7 +6645,7 @@ const Ve = (e) => {
6645
6645
  ] }) }),
6646
6646
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + m(K.discountAmt) })
6647
6647
  ] })) : "",
6648
- (W = U.ITEM_DISCOUNT) != null && W.length ? U.ITEM_DISCOUNT.map((K) => /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${je}`, children: [
6648
+ (z = U.ITEM_DISCOUNT) != null && z.length ? U.ITEM_DISCOUNT.map((K) => /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${je}`, children: [
6649
6649
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6650
6650
  /* @__PURE__ */ s.jsx(
6651
6651
  "span",
@@ -6788,13 +6788,13 @@ const Ve = (e) => {
6788
6788
  ":"
6789
6789
  ] }) }),
6790
6790
  d[U].map((F) => {
6791
- var W;
6791
+ var z;
6792
6792
  return /* @__PURE__ */ s.jsxs("div", { children: [
6793
6793
  /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
6794
6794
  /* @__PURE__ */ s.jsx("h4", { className: `items products-heading-name-kot ${P[l].dynamicClassname}`, children: Be(F.serviceName) }),
6795
6795
  /* @__PURE__ */ s.jsx("h4", { className: `items products-heading-qty-kot ${P[l].dynamicClassname}`, children: F.qty })
6796
6796
  ] }),
6797
- ((W = F.addons) == null ? void 0 : W.length) && F.addons.map((he) => {
6797
+ ((z = F.addons) == null ? void 0 : z.length) && F.addons.map((he) => {
6798
6798
  var Oe;
6799
6799
  return /* @__PURE__ */ s.jsx("h5", { className: "items products-heading-addon-kot", children: "- " + ((Oe = he.serviceName) == null ? void 0 : Oe.toUpperCase()) });
6800
6800
  }),
@@ -6806,7 +6806,7 @@ const Ve = (e) => {
6806
6806
  /* @__PURE__ */ s.jsx("hr", {})
6807
6807
  ] })
6808
6808
  ] });
6809
- }, z = (y) => {
6809
+ }, W = (y) => {
6810
6810
  const d = y.slice(0, -4), O = y.slice(-4);
6811
6811
  return { firstDigits: d, last4Dgits: O };
6812
6812
  }, X = (y, d, O, j = {}) => {
@@ -6826,8 +6826,8 @@ const Ve = (e) => {
6826
6826
  ] })
6827
6827
  ] })
6828
6828
  );
6829
- for (let W = 0; W < I.length; W++)
6830
- b = I[W], d[b] && U.push(
6829
+ for (let z = 0; z < I.length; z++)
6830
+ b = I[z], d[b] && U.push(
6831
6831
  /* @__PURE__ */ s.jsxs("h5", { className: `left-align-entity level3-bold ${F} second-span-right`, children: [
6832
6832
  /* @__PURE__ */ s.jsx("span", { children: ` -- ${b.replaceAll("_", " ")}:` }),
6833
6833
  /* @__PURE__ */ s.jsx("span", { children: le(d[b], o) }),
@@ -6856,11 +6856,11 @@ const Ve = (e) => {
6856
6856
  fs(I)
6857
6857
  ] }),
6858
6858
  /* @__PURE__ */ s.jsxs("section", { className: "products-section", children: [
6859
- b.forEach((W) => {
6859
+ b.forEach((z) => {
6860
6860
  F.push(
6861
6861
  /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
6862
- /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-name-kot ${P["3INCH"].dynamicClassname}`, children: W.serviceName }),
6863
- /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-qty-kot ${P["3INCH"].dynamicClassname}`, children: parseFloat(W.qty.toFixed(2)) })
6862
+ /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-name-kot ${P["3INCH"].dynamicClassname}`, children: z.serviceName }),
6863
+ /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-qty-kot ${P["3INCH"].dynamicClassname}`, children: parseFloat(z.qty.toFixed(2)) })
6864
6864
  ] }) })
6865
6865
  );
6866
6866
  }),
@@ -6886,11 +6886,11 @@ const Ve = (e) => {
6886
6886
  fs(I)
6887
6887
  ] }),
6888
6888
  /* @__PURE__ */ s.jsxs("section", { className: "products-section", children: [
6889
- b.forEach((W) => {
6889
+ b.forEach((z) => {
6890
6890
  F.push(
6891
6891
  /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
6892
- /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-name-kot ${P["3INCH"].dynamicClassname}`, children: W.serviceName }),
6893
- /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-qty-kot ${P["3INCH"].dynamicClassname}`, children: parseFloat(W.qty.toFixed(2)) })
6892
+ /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-name-kot ${P["3INCH"].dynamicClassname}`, children: z.serviceName }),
6893
+ /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-qty-kot ${P["3INCH"].dynamicClassname}`, children: parseFloat(z.qty.toFixed(2)) })
6894
6894
  ] }) })
6895
6895
  );
6896
6896
  }),
@@ -6950,7 +6950,7 @@ const Ve = (e) => {
6950
6950
  }
6951
6951
  return d;
6952
6952
  }, _t = (y, d, O, j) => {
6953
- var W, he, Oe, De, Ae, Ie, ke, He, it, K, St, Je, Zt, Jt, Is, Xt, es, Cs, Os, Ms, As, Es, Rs, Ls, Et, ts, lt, Rt, Lt, ss, ks, ns, Ps, rs, as, Fs, Ds, is, ls, Ys, Us, $s, Hs, g, M;
6953
+ var z, he, Oe, De, Ae, Ie, ke, He, it, K, St, Je, Zt, Jt, Is, Xt, es, Cs, Os, Ms, As, Es, Rs, Ls, Et, ts, lt, Rt, Lt, ss, ks, ns, Ps, rs, as, Fs, Ds, is, ls, Ys, Us, $s, Hs, g, M;
6954
6954
  const I = Qe(r.customLabelsMap), U = ws(bd(r.paymentModes), "internalName"), b = (C) => {
6955
6955
  var N;
6956
6956
  return (N = U[C]) != null && N.displayName ? U[C].displayName.toUpperCase() : C;
@@ -6984,7 +6984,7 @@ const Ve = (e) => {
6984
6984
  /* @__PURE__ */ s.jsx("tr", { children: /* @__PURE__ */ s.jsx("td", { colSpan: 12, className: "text-center border-right", style: { padding: "0px 1.4rem" }, children: /* @__PURE__ */ s.jsx("h6", { children: /* @__PURE__ */ s.jsx("strong", { children: "Tax Invoice" }) }) }) }),
6985
6985
  /* @__PURE__ */ s.jsxs("tr", { children: [
6986
6986
  /* @__PURE__ */ s.jsx("td", { colSpan: 6, className: "v-align-baseline col-6", children: /* @__PURE__ */ s.jsxs("div", { className: "divPadding", children: [
6987
- (N.customerInfo.custName || ((W = N.customFields) == null ? void 0 : W.length)) && /* @__PURE__ */ s.jsx("tr", { children: /* @__PURE__ */ s.jsx("td", { colSpan: "2", className: "text-center border-right", children: /* @__PURE__ */ s.jsx("strong", { children: "Bill To" }) }) }),
6987
+ (N.customerInfo.custName || ((z = N.customFields) == null ? void 0 : z.length)) && /* @__PURE__ */ s.jsx("tr", { children: /* @__PURE__ */ s.jsx("td", { colSpan: "2", className: "text-center border-right", children: /* @__PURE__ */ s.jsx("strong", { children: "Bill To" }) }) }),
6988
6988
  N.customerInfo.custName && N.customerInfo.custName !== "" && /* @__PURE__ */ s.jsx("tr", { children: /* @__PURE__ */ s.jsx("td", { width: "10%", children: N.customerInfo.custName }) }),
6989
6989
  N.customerInfo.custContact && N.customerInfo.custContact !== "" && /* @__PURE__ */ s.jsx("tr", { children: /* @__PURE__ */ s.jsx("td", { width: "10%", children: N.customerInfo.custContact }) }),
6990
6990
  N.customerInfo.custAddress && N.customerInfo.custAddress !== "" && /* @__PURE__ */ s.jsx("tr", { children: /* @__PURE__ */ s.jsx("td", { width: "10%", children: N.customerInfo.custAddress }) }),
@@ -7715,7 +7715,7 @@ const Ve = (e) => {
7715
7715
  ] });
7716
7716
  } else if (y === "AGGREGATOR_BILL") {
7717
7717
  let C;
7718
- return a.aggregatorOrderId && a.aggregatorOrderId !== "" && (C = z(a.aggregatorOrderId)), /* @__PURE__ */ s.jsx("div", { className: "main-div bill", style: { width: P[l].paperSize }, children: /* @__PURE__ */ s.jsxs("div", { children: [
7718
+ return a.aggregatorOrderId && a.aggregatorOrderId !== "" && (C = W(a.aggregatorOrderId)), /* @__PURE__ */ s.jsx("div", { className: "main-div bill", style: { width: P[l].paperSize }, children: /* @__PURE__ */ s.jsxs("div", { children: [
7719
7719
  /* @__PURE__ */ s.jsxs("div", { style: { width: "100%", textAlign: "left", marginLeft: "auto" }, children: [
7720
7720
  /* @__PURE__ */ s.jsx("br", {}),
7721
7721
  O && /* @__PURE__ */ s.jsx("div", { className: "image-bill", children: /* @__PURE__ */ s.jsx("img", { src: O, className: "single-entity-and-center", style: { width: P[l].logoWidth } }) }),
@@ -8329,7 +8329,7 @@ const Ve = (e) => {
8329
8329
  return getRechargeDetails(C);
8330
8330
  } else if (y === "PACKAGING_SLIP") {
8331
8331
  let C, N = 0;
8332
- d.aggregatorOrderId && d.aggregatorOrderId !== "" && (C = z(d.aggregatorOrderId));
8332
+ d.aggregatorOrderId && d.aggregatorOrderId !== "" && (C = W(d.aggregatorOrderId));
8333
8333
  const Y = d.services;
8334
8334
  for (let R in Y)
8335
8335
  N += Y[R].length;
@@ -8470,7 +8470,7 @@ const Ve = (e) => {
8470
8470
  let C, N = 0, Y, V;
8471
8471
  for (let T = 0; T < (((g = a.services) == null ? void 0 : g.length) || 0); T++)
8472
8472
  V = a.services[T], V.status === "CANCELLED" && !a.onlyCancelledItems && (N += V.qty);
8473
- return a.aggregatorOrderId && a.aggregatorOrderId !== "" && (C = z(a.aggregatorOrderId)), /* @__PURE__ */ s.jsx("div", { className: "main-div", style: { width: P[l].paperSize }, children: /* @__PURE__ */ s.jsxs("div", { style: { maxWidth: "100%", textAlign: "left", marginLeft: "auto" }, children: [
8473
+ return a.aggregatorOrderId && a.aggregatorOrderId !== "" && (C = W(a.aggregatorOrderId)), /* @__PURE__ */ s.jsx("div", { className: "main-div", style: { width: P[l].paperSize }, children: /* @__PURE__ */ s.jsxs("div", { style: { maxWidth: "100%", textAlign: "left", marginLeft: "auto" }, children: [
8474
8474
  /* @__PURE__ */ s.jsx("br", {}),
8475
8475
  /* @__PURE__ */ s.jsxs("div", { className: "main-div", children: [
8476
8476
  a.duplicate && !a.onlyCancelledItems ? /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center", children: "DUPLICATE KOT" }) : "",
@@ -8728,57 +8728,51 @@ const Ve = (e) => {
8728
8728
  } catch (a) {
8729
8729
  i(a);
8730
8730
  }
8731
- }), $h = async (e, t, n) => new Promise(async (r, i) => {
8731
+ }), $h = async (e, t, n) => {
8732
8732
  try {
8733
- let a = await Ma(e, t, n), u = [];
8734
- await new Promise((o) => {
8735
- if (n.isSplitBill && a.obj.splitDetails && a.obj.splitDetails.length)
8736
- for (let l = 0; l < a.obj.splitDetails.length; l++) {
8737
- const c = a.obj.splitDetails[l];
8738
- let h = JSON.parse(JSON.stringify(a));
8739
- h.obj.splitDetails = [c];
8740
- const p = /* @__PURE__ */ s.jsx(
8733
+ const r = await Ma(e, t, n), i = [];
8734
+ return await new Promise((a) => {
8735
+ var f;
8736
+ const u = (o, l, c) => {
8737
+ i.push({ paperSize: l, image: o, type: c });
8738
+ };
8739
+ if (n.isSplitBill && ((f = r.obj.splitDetails) != null && f.length)) {
8740
+ let o = r.obj.splitDetails.length;
8741
+ r.obj.splitDetails.forEach((l) => {
8742
+ const c = { ...r, obj: { ...r.obj, splitDetails: [l] } }, h = /* @__PURE__ */ s.jsx(
8741
8743
  Ve,
8742
8744
  {
8743
- printerDataObject: { staticDataKOT: a, paperSize: a.paperSize, type: "BILL" },
8745
+ printerDataObject: { staticDataKOT: c, paperSize: r.paperSize, type: "BILL" },
8744
8746
  newId: Math.random(),
8745
8747
  settingData: t,
8746
- onImageGenerated: (m) => {
8747
- u.push({
8748
- paperSize: a.paperSize,
8749
- image: m,
8750
- type: "BILL"
8751
- }), o();
8748
+ onImageGenerated: (p) => {
8749
+ u(p, r.paperSize, "BILL"), o--, o === 0 && a();
8752
8750
  },
8753
8751
  additionalActions: n
8754
8752
  }
8755
8753
  );
8756
- st("root1", p);
8757
- }
8758
- else {
8759
- const l = /* @__PURE__ */ s.jsx(
8754
+ st("root1", h);
8755
+ });
8756
+ } else {
8757
+ const o = /* @__PURE__ */ s.jsx(
8760
8758
  Ve,
8761
8759
  {
8762
- printerDataObject: { staticDataKOT: a, paperSize: a.paperSize, type: "BILL" },
8760
+ printerDataObject: { staticDataKOT: r, paperSize: r.paperSize, type: "BILL" },
8763
8761
  newId: Math.random(),
8764
8762
  settingData: t,
8765
- onImageGenerated: (c) => {
8766
- u.push({
8767
- paperSize: a.paperSize,
8768
- image: c,
8769
- type: "BILL"
8770
- }), o();
8763
+ onImageGenerated: (l) => {
8764
+ u(l, r.paperSize, "BILL"), a();
8771
8765
  },
8772
8766
  additionalActions: n
8773
8767
  }
8774
8768
  );
8775
- st("root1", l);
8769
+ st("root1", o);
8776
8770
  }
8777
- }), r(u);
8778
- } catch (a) {
8779
- i(a);
8771
+ }), i;
8772
+ } catch (r) {
8773
+ throw r;
8780
8774
  }
8781
- }), Hh = async (e, t, n, r) => new Promise(async (i, a) => {
8775
+ }, Hh = async (e, t, n, r) => new Promise(async (i, a) => {
8782
8776
  try {
8783
8777
  let u = await Ed(e);
8784
8778
  if (u && Object.keys(u.Category).length !== 0) {
@@ -8841,7 +8835,7 @@ const Ve = (e) => {
8841
8835
  } catch (a) {
8842
8836
  i(a);
8843
8837
  }
8844
- }), zh = async (e, t, n = {}, r = {}) => new Promise(async (i, a) => {
8838
+ }), Wh = async (e, t, n = {}, r = {}) => new Promise(async (i, a) => {
8845
8839
  var u;
8846
8840
  try {
8847
8841
  const f = await Ld(e, t);
@@ -8876,7 +8870,7 @@ const Ve = (e) => {
8876
8870
  } catch (f) {
8877
8871
  a(f);
8878
8872
  }
8879
- }), Wh = async (e, t, n = {}) => new Promise(async (r, i) => {
8873
+ }), zh = async (e, t, n = {}) => new Promise(async (r, i) => {
8880
8874
  var a;
8881
8875
  try {
8882
8876
  const u = [];
@@ -8921,7 +8915,7 @@ export {
8921
8915
  Yh as handleDashboardPrint,
8922
8916
  Hh as handleItemWisePrint,
8923
8917
  Fh as handleKOTPrint,
8924
- Wh as handleOldBillPrints,
8925
- zh as handleSummaryPrint,
8918
+ zh as handleOldBillPrints,
8919
+ Wh as handleSummaryPrint,
8926
8920
  Dh as handleUpdateTablePrint
8927
8921
  };