recaho-print-react 0.0.117 → 0.0.118

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 ni() {
130
130
  }
131
131
  return null;
132
132
  }
133
- var V = Object.assign, Z = 0, Ie, A, rt, Ze, Je, ze, Nt;
133
+ var V = Object.assign, Z = 0, Ie, A, rt, Qe, Ze, Je, Tt;
134
134
  function J() {
135
135
  }
136
136
  J.__reactDisabledLog = !0;
137
137
  function je() {
138
138
  {
139
139
  if (Z === 0) {
140
- Ie = console.log, A = console.info, rt = console.warn, Ze = console.error, Je = console.group, ze = console.groupCollapsed, Nt = console.groupEnd;
140
+ Ie = console.log, A = console.info, rt = console.warn, Qe = console.error, Ze = console.group, Je = console.groupCollapsed, Tt = console.groupEnd;
141
141
  var p = {
142
142
  configurable: !0,
143
143
  enumerable: !0,
@@ -176,16 +176,16 @@ function ni() {
176
176
  value: rt
177
177
  }),
178
178
  error: V({}, p, {
179
- value: Ze
179
+ value: Qe
180
180
  }),
181
181
  group: V({}, p, {
182
- value: Je
182
+ value: Ze
183
183
  }),
184
184
  groupCollapsed: V({}, p, {
185
- value: ze
185
+ value: Je
186
186
  }),
187
187
  groupEnd: V({}, p, {
188
- value: Nt
188
+ value: Tt
189
189
  })
190
190
  });
191
191
  }
@@ -357,17 +357,17 @@ function ni() {
357
357
  }
358
358
  function It(p) {
359
359
  try {
360
- return jt(p), !1;
360
+ return Nt(p), !1;
361
361
  } catch {
362
362
  return !0;
363
363
  }
364
364
  }
365
- function jt(p) {
365
+ function Nt(p) {
366
366
  return "" + p;
367
367
  }
368
368
  function Jt(p) {
369
369
  if (It(p))
370
- return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", z(p)), jt(p);
370
+ return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", z(p)), Nt(p);
371
371
  }
372
372
  var Xt = w.ReactCurrentOwner, Cs = {
373
373
  key: !0,
@@ -676,7 +676,7 @@ function R() {
676
676
  function oi(e) {
677
677
  Pr = e;
678
678
  }
679
- function qe(e) {
679
+ function Ve(e) {
680
680
  return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
681
681
  }
682
682
  function At(e) {
@@ -709,7 +709,7 @@ function Fr(e, t) {
709
709
  n.push(t(e[r], r));
710
710
  return n;
711
711
  }
712
- function vt(e, t) {
712
+ function jt(e, t) {
713
713
  for (var n in t)
714
714
  he(t, n) && (e[n] = t[n]);
715
715
  return he(t, "toString") && (e.toString = t.toString), he(t, "valueOf") && (e.valueOf = t.valueOf), e;
@@ -760,7 +760,7 @@ function Un(e) {
760
760
  }
761
761
  function sn(e) {
762
762
  var t = st(NaN);
763
- return e != null ? vt(ee(t), e) : ee(t).userInvalidated = !0, t;
763
+ return e != null ? jt(ee(t), e) : ee(t).userInvalidated = !0, t;
764
764
  }
765
765
  var gr = R.momentProperties = [], Nn = !1;
766
766
  function $n(e, t) {
@@ -773,7 +773,7 @@ function $n(e, t) {
773
773
  function Ts(e) {
774
774
  $n(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), Nn === !1 && (Nn = !0, R.updateOffset(this), Nn = !1);
775
775
  }
776
- function Ke(e) {
776
+ function qe(e) {
777
777
  return e instanceof Ts || e != null && e._isAMomentObject != null;
778
778
  }
779
779
  function Dr(e) {
@@ -781,7 +781,7 @@ function Dr(e) {
781
781
  }
782
782
  function Be(e, t) {
783
783
  var n = !0;
784
- return vt(function() {
784
+ return jt(function() {
785
785
  if (R.deprecationHandler != null && R.deprecationHandler(null, e), n) {
786
786
  var r = [], i, a, d, y = arguments.length;
787
787
  for (a = 0; a < y; a++) {
@@ -822,11 +822,11 @@ function di(e) {
822
822
  );
823
823
  }
824
824
  function Mn(e, t) {
825
- var n = vt({}, e), r;
825
+ var n = jt({}, e), r;
826
826
  for (r in t)
827
- he(t, r) && (At(e[r]) && At(t[r]) ? (n[r] = {}, vt(n[r], e[r]), vt(n[r], t[r])) : t[r] != null ? n[r] = t[r] : delete n[r]);
827
+ he(t, r) && (At(e[r]) && At(t[r]) ? (n[r] = {}, jt(n[r], e[r]), jt(n[r], t[r])) : t[r] != null ? n[r] = t[r] : delete n[r]);
828
828
  for (r in e)
829
- he(e, r) && !he(t, r) && At(e[r]) && (n[r] = vt({}, n[r]));
829
+ he(e, r) && !he(t, r) && At(e[r]) && (n[r] = jt({}, n[r]));
830
830
  return n;
831
831
  }
832
832
  function Hn(e) {
@@ -1080,7 +1080,7 @@ function Ai(e, t, n) {
1080
1080
  function cn(e) {
1081
1081
  return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
1082
1082
  }
1083
- var Me = 0, ht = 1, Xe = 2, we = 3, Ve = 4, ut = 5, Mt = 6, Ei = 7, Ri = 8;
1083
+ var Me = 0, ht = 1, Xe = 2, we = 3, Ge = 4, ut = 5, Mt = 6, Ei = 7, Ri = 8;
1084
1084
  H("Y", 0, 0, function() {
1085
1085
  var e = this.year();
1086
1086
  return e <= 9999 ? et(e, 4) : "+" + e;
@@ -1231,10 +1231,10 @@ var Di = "January_February_March_April_May_June_July_August_September_October_No
1231
1231
  "_"
1232
1232
  ), Vr = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), qr = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, Yi = ws, Ui = ws;
1233
1233
  function $i(e, t) {
1234
- return e ? qe(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || qr).test(t) ? "format" : "standalone"][e.month()] : qe(this._months) ? this._months : this._months.standalone;
1234
+ return e ? Ve(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || qr).test(t) ? "format" : "standalone"][e.month()] : Ve(this._months) ? this._months : this._months.standalone;
1235
1235
  }
1236
1236
  function Hi(e, t) {
1237
- return e ? qe(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[qr.test(t) ? "format" : "standalone"][e.month()] : qe(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
1237
+ return e ? Ve(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[qr.test(t) ? "format" : "standalone"][e.month()] : Ve(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
1238
1238
  }
1239
1239
  function Bi(e, t, n) {
1240
1240
  var r, i, a, d = e.toLocaleLowerCase();
@@ -1411,7 +1411,7 @@ function Kn(e, t) {
1411
1411
  }
1412
1412
  var nl = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), Xr = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), rl = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), al = ws, il = ws, ll = ws;
1413
1413
  function ol(e, t) {
1414
- var n = qe(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
1414
+ var n = Ve(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
1415
1415
  return e === !0 ? Kn(n, this._week.dow) : e ? n[e.day()] : n;
1416
1416
  }
1417
1417
  function cl(e) {
@@ -1565,19 +1565,19 @@ pe(["h", "hh"], function(e, t, n) {
1565
1565
  });
1566
1566
  pe("hmm", function(e, t, n) {
1567
1567
  var r = e.length - 2;
1568
- t[we] = ne(e.substr(0, r)), t[Ve] = ne(e.substr(r)), ee(n).bigHour = !0;
1568
+ t[we] = ne(e.substr(0, r)), t[Ge] = ne(e.substr(r)), ee(n).bigHour = !0;
1569
1569
  });
1570
1570
  pe("hmmss", function(e, t, n) {
1571
1571
  var r = e.length - 4, i = e.length - 2;
1572
- t[we] = ne(e.substr(0, r)), t[Ve] = ne(e.substr(r, 2)), t[ut] = ne(e.substr(i)), ee(n).bigHour = !0;
1572
+ t[we] = ne(e.substr(0, r)), t[Ge] = ne(e.substr(r, 2)), t[ut] = ne(e.substr(i)), ee(n).bigHour = !0;
1573
1573
  });
1574
1574
  pe("Hmm", function(e, t, n) {
1575
1575
  var r = e.length - 2;
1576
- t[we] = ne(e.substr(0, r)), t[Ve] = ne(e.substr(r));
1576
+ t[we] = ne(e.substr(0, r)), t[Ge] = ne(e.substr(r));
1577
1577
  });
1578
1578
  pe("Hmmss", function(e, t, n) {
1579
1579
  var r = e.length - 4, i = e.length - 2;
1580
- t[we] = ne(e.substr(0, r)), t[Ve] = ne(e.substr(r, 2)), t[ut] = ne(e.substr(i));
1580
+ t[we] = ne(e.substr(0, r)), t[Ge] = ne(e.substr(r, 2)), t[ut] = ne(e.substr(i));
1581
1581
  });
1582
1582
  function jl(e) {
1583
1583
  return (e + "").toLowerCase().charAt(0) === "p";
@@ -1631,13 +1631,13 @@ function dn(e) {
1631
1631
  var t = null, n;
1632
1632
  if (xe[e] === void 0 && typeof module < "u" && module && module.exports && wl(e))
1633
1633
  try {
1634
- t = vs._abbr, n = require, n("./locale/" + e), bt(t);
1634
+ t = vs._abbr, n = require, n("./locale/" + e), _t(t);
1635
1635
  } catch {
1636
1636
  xe[e] = null;
1637
1637
  }
1638
1638
  return xe[e];
1639
1639
  }
1640
- function bt(e, t) {
1640
+ function _t(e, t) {
1641
1641
  var n;
1642
1642
  return e && (Pe(t) ? n = yt(e) : n = Jn(e, t), n ? vs = n : typeof console < "u" && console.warn && console.warn(
1643
1643
  "Locale " + e + " not found. Did you forget to load it?"
@@ -1663,23 +1663,23 @@ function Jn(e, t) {
1663
1663
  }), null;
1664
1664
  return xe[e] = new Hn(Mn(r, t)), hs[e] && hs[e].forEach(function(i) {
1665
1665
  Jn(i.name, i.config);
1666
- }), bt(e), xe[e];
1666
+ }), _t(e), xe[e];
1667
1667
  } else
1668
1668
  return delete xe[e], null;
1669
1669
  }
1670
1670
  function Il(e, t) {
1671
1671
  if (t != null) {
1672
1672
  var n, r, i = sa;
1673
- xe[e] != null && xe[e].parentLocale != null ? xe[e].set(Mn(xe[e]._config, t)) : (r = dn(e), r != null && (i = r._config), t = Mn(i, t), r == null && (t.abbr = e), n = new Hn(t), n.parentLocale = xe[e], xe[e] = n), bt(e);
1673
+ xe[e] != null && xe[e].parentLocale != null ? xe[e].set(Mn(xe[e]._config, t)) : (r = dn(e), r != null && (i = r._config), t = Mn(i, t), r == null && (t.abbr = e), n = new Hn(t), n.parentLocale = xe[e], xe[e] = n), _t(e);
1674
1674
  } else
1675
- xe[e] != null && (xe[e].parentLocale != null ? (xe[e] = xe[e].parentLocale, e === bt() && bt(e)) : xe[e] != null && delete xe[e]);
1675
+ xe[e] != null && (xe[e].parentLocale != null ? (xe[e] = xe[e].parentLocale, e === _t() && _t(e)) : xe[e] != null && delete xe[e]);
1676
1676
  return xe[e];
1677
1677
  }
1678
1678
  function yt(e) {
1679
1679
  var t;
1680
1680
  if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)
1681
1681
  return vs;
1682
- if (!qe(e)) {
1682
+ if (!Ve(e)) {
1683
1683
  if (t = dn(e), t)
1684
1684
  return t;
1685
1685
  e = [e];
@@ -1691,7 +1691,7 @@ function Cl() {
1691
1691
  }
1692
1692
  function Xn(e) {
1693
1693
  var t, n = e._a;
1694
- return n && ee(e).overflow === -2 && (t = n[ht] < 0 || n[ht] > 11 ? ht : n[Xe] < 1 || n[Xe] > qn(n[Me], n[ht]) ? Xe : n[we] < 0 || n[we] > 24 || n[we] === 24 && (n[Ve] !== 0 || n[ut] !== 0 || n[Mt] !== 0) ? we : n[Ve] < 0 || n[Ve] > 59 ? Ve : n[ut] < 0 || n[ut] > 59 ? ut : n[Mt] < 0 || n[Mt] > 999 ? Mt : -1, ee(e)._overflowDayOfYear && (t < Me || t > Xe) && (t = Xe), ee(e)._overflowWeeks && t === -1 && (t = Ei), ee(e)._overflowWeekday && t === -1 && (t = Ri), ee(e).overflow = t), e;
1694
+ return n && ee(e).overflow === -2 && (t = n[ht] < 0 || n[ht] > 11 ? ht : n[Xe] < 1 || n[Xe] > qn(n[Me], n[ht]) ? Xe : n[we] < 0 || n[we] > 24 || n[we] === 24 && (n[Ge] !== 0 || n[ut] !== 0 || n[Mt] !== 0) ? we : n[Ge] < 0 || n[Ge] > 59 ? Ge : n[ut] < 0 || n[ut] > 59 ? ut : n[Mt] < 0 || n[Mt] > 999 ? Mt : -1, ee(e)._overflowDayOfYear && (t < Me || t > Xe) && (t = Xe), ee(e)._overflowWeeks && t === -1 && (t = Ei), ee(e)._overflowWeekday && t === -1 && (t = Ri), ee(e).overflow = t), e;
1695
1695
  }
1696
1696
  var Ol = /^\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)?)?$/, Ml = /^\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)?)?$/, Al = /Z|[+-]\d\d(?::?\d\d)?/, Hs = [
1697
1697
  ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
@@ -1860,7 +1860,7 @@ function er(e) {
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[we] === 24 && e._a[Ve] === 0 && e._a[ut] === 0 && e._a[Mt] === 0 && (e._nextDay = !0, e._a[we] = 0), e._d = (e._useUTC ? Ns : qi).apply(
1863
+ e._a[we] === 24 && e._a[Ge] === 0 && e._a[ut] === 0 && e._a[Mt] === 0 && (e._nextDay = !0, e._a[we] = 0), e._d = (e._useUTC ? Ns : 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[we] = 24), e._w && typeof e._w.d < "u" && e._w.d !== a && (ee(e).weekdayMismatch = !0);
@@ -1911,7 +1911,7 @@ function Wl(e) {
1911
1911
  }
1912
1912
  for (i = 0; i < o; i++)
1913
1913
  a = 0, d = !1, t = $n({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[i], tr(t), Un(t) && (d = !0), a += ee(t).charsLeftOver, a += ee(t).unusedTokens.length * 10, ee(t).score = a, y ? a < r && (r = a, n = t) : (r == null || a < r || d) && (r = a, n = t, d && (y = !0));
1914
- vt(e, n || t);
1914
+ jt(e, n || t);
1915
1915
  }
1916
1916
  function zl(e) {
1917
1917
  if (!e._d) {
@@ -1930,17 +1930,17 @@ function Gl(e) {
1930
1930
  }
1931
1931
  function aa(e) {
1932
1932
  var t = e._i, n = e._f;
1933
- return e._locale = e._locale || yt(e._l), t === null || n === void 0 && t === "" ? sn({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), Ke(t) ? new Ts(Xn(t)) : (Ss(t) ? e._d = t : qe(n) ? Wl(e) : n ? tr(e) : Vl(e), Un(e) || (e._d = null), e));
1933
+ return e._locale = e._locale || yt(e._l), t === null || n === void 0 && t === "" ? sn({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), qe(t) ? new Ts(Xn(t)) : (Ss(t) ? e._d = t : Ve(n) ? Wl(e) : n ? tr(e) : Vl(e), Un(e) || (e._d = null), e));
1934
1934
  }
1935
1935
  function Vl(e) {
1936
1936
  var t = e._i;
1937
- Pe(t) ? e._d = new Date(R.now()) : Ss(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? Ul(e) : qe(t) ? (e._a = Fr(t.slice(0), function(n) {
1937
+ Pe(t) ? e._d = new Date(R.now()) : Ss(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? Ul(e) : Ve(t) ? (e._a = Fr(t.slice(0), function(n) {
1938
1938
  return parseInt(n, 10);
1939
1939
  }), er(e)) : At(t) ? zl(e) : pt(t) ? e._d = new Date(t) : R.createFromInputFallback(e);
1940
1940
  }
1941
1941
  function ia(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), (At(e) && Yn(e) || qe(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, Gl(a);
1943
+ return (t === !0 || t === !1) && (r = t, t = void 0), (n === !0 || n === !1) && (r = n, n = void 0), (At(e) && Yn(e) || Ve(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, Gl(a);
1944
1944
  }
1945
1945
  function ye(e, t, n, r) {
1946
1946
  return ia(e, t, n, r, !1);
@@ -1960,7 +1960,7 @@ var ql = Be(
1960
1960
  );
1961
1961
  function la(e, t) {
1962
1962
  var n, r;
1963
- if (t.length === 1 && qe(t[0]) && (t = t[0]), !t.length)
1963
+ if (t.length === 1 && Ve(t[0]) && (t = t[0]), !t.length)
1964
1964
  return ye();
1965
1965
  for (n = t[0], r = 1; r < t.length; ++r)
1966
1966
  (!t[r].isValid() || t[r][e](n)) && (n = t[r]);
@@ -2004,7 +2004,7 @@ function eo() {
2004
2004
  return this._isValid;
2005
2005
  }
2006
2006
  function to() {
2007
- return Qe(NaN);
2007
+ return Ke(NaN);
2008
2008
  }
2009
2009
  function hn(e) {
2010
2010
  var t = Wn(e), n = t.year || 0, r = t.quarter || 0, i = t.month || 0, a = t.week || t.isoWeek || 0, d = t.day || 0, y = t.hour || 0, o = t.minute || 0, l = t.second || 0, c = t.millisecond || 0;
@@ -2044,7 +2044,7 @@ function sr(e, t) {
2044
2044
  }
2045
2045
  function nr(e, t) {
2046
2046
  var n, r;
2047
- return t._isUTC ? (n = t.clone(), r = (Ke(e) || Ss(e) ? e.valueOf() : ye(e).valueOf()) - n.valueOf(), n._d.setTime(n._d.valueOf() + r), R.updateOffset(n, !1), n) : ye(e).local();
2047
+ return t._isUTC ? (n = t.clone(), r = (qe(e) || Ss(e) ? e.valueOf() : ye(e).valueOf()) - n.valueOf(), n._d.setTime(n._d.valueOf() + r), R.updateOffset(n, !1), n) : ye(e).local();
2048
2048
  }
2049
2049
  function kn(e) {
2050
2050
  return -Math.round(e._d.getTimezoneOffset());
@@ -2062,7 +2062,7 @@ function ro(e, t, n) {
2062
2062
  } else Math.abs(e) < 16 && !n && (e = e * 60);
2063
2063
  return !this._isUTC && t && (i = kn(this)), this._offset = e, this._isUTC = !0, i != null && this.add(i, "m"), r !== e && (!t || this._changeInProgress ? ha(
2064
2064
  this,
2065
- Qe(e - r, "m"),
2065
+ Ke(e - r, "m"),
2066
2066
  1,
2067
2067
  !1
2068
2068
  ) : this._changeInProgress || (this._changeInProgress = !0, R.updateOffset(this, !0), this._changeInProgress = null)), this;
@@ -2109,7 +2109,7 @@ function ca() {
2109
2109
  return this.isValid() ? this._isUTC && this._offset === 0 : !1;
2110
2110
  }
2111
2111
  var po = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, yo = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
2112
- function Qe(e, t) {
2112
+ function Ke(e, t) {
2113
2113
  var n = e, r = null, i, a, d;
2114
2114
  return zs(e) ? n = {
2115
2115
  ms: e._milliseconds,
@@ -2119,7 +2119,7 @@ function Qe(e, t) {
2119
2119
  y: 0,
2120
2120
  d: ne(r[Xe]) * i,
2121
2121
  h: ne(r[we]) * i,
2122
- m: ne(r[Ve]) * i,
2122
+ m: ne(r[Ge]) * i,
2123
2123
  s: ne(r[ut]) * i,
2124
2124
  ms: ne(Rn(r[Mt] * 1e3)) * i
2125
2125
  // the millisecond decimal point is included in the match
@@ -2136,8 +2136,8 @@ function Qe(e, t) {
2136
2136
  ye(n.to)
2137
2137
  ), n = {}, n.ms = d.milliseconds, n.M = d.months), a = new hn(n), zs(e) && he(e, "_locale") && (a._locale = e._locale), zs(e) && he(e, "_isValid") && (a._isValid = e._isValid), a;
2138
2138
  }
2139
- Qe.fn = hn.prototype;
2140
- Qe.invalid = to;
2139
+ Ke.fn = hn.prototype;
2140
+ Ke.invalid = to;
2141
2141
  function Ot(e, t) {
2142
2142
  var n = e && parseFloat(e.replace(",", "."));
2143
2143
  return (isNaN(n) ? 0 : n) * t;
@@ -2156,7 +2156,7 @@ function da(e, t) {
2156
2156
  return r !== null && !isNaN(+r) && (Yr(
2157
2157
  t,
2158
2158
  "moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
2159
- ), a = n, n = r, r = a), i = Qe(n, r), ha(this, i, e), this;
2159
+ ), a = n, n = r, r = a), i = Ke(n, r), ha(this, i, e), this;
2160
2160
  };
2161
2161
  }
2162
2162
  function ha(e, t, n, r) {
@@ -2168,7 +2168,7 @@ function ua(e) {
2168
2168
  return typeof e == "string" || e instanceof String;
2169
2169
  }
2170
2170
  function jo(e) {
2171
- return Ke(e) || Ss(e) || ua(e) || pt(e) || _o(e) || vo(e) || e === null || e === void 0;
2171
+ return qe(e) || Ss(e) || ua(e) || pt(e) || _o(e) || vo(e) || e === null || e === void 0;
2172
2172
  }
2173
2173
  function vo(e) {
2174
2174
  var t = At(e) && !Yn(e), n = !1, r = [
@@ -2202,7 +2202,7 @@ function vo(e) {
2202
2202
  return t && n;
2203
2203
  }
2204
2204
  function _o(e) {
2205
- var t = qe(e), n = !1;
2205
+ var t = Ve(e), n = !1;
2206
2206
  return t && (n = e.filter(function(r) {
2207
2207
  return !pt(r) && ua(e);
2208
2208
  }).length === 0), t && n;
@@ -2235,19 +2235,19 @@ function wo() {
2235
2235
  return new Ts(this);
2236
2236
  }
2237
2237
  function Io(e, t) {
2238
- var n = Ke(e) ? e : ye(e);
2238
+ var n = qe(e) ? e : ye(e);
2239
2239
  return this.isValid() && n.isValid() ? (t = We(t) || "millisecond", t === "millisecond" ? this.valueOf() > n.valueOf() : n.valueOf() < this.clone().startOf(t).valueOf()) : !1;
2240
2240
  }
2241
2241
  function Co(e, t) {
2242
- var n = Ke(e) ? e : ye(e);
2242
+ var n = qe(e) ? e : ye(e);
2243
2243
  return this.isValid() && n.isValid() ? (t = We(t) || "millisecond", t === "millisecond" ? this.valueOf() < n.valueOf() : this.clone().endOf(t).valueOf() < n.valueOf()) : !1;
2244
2244
  }
2245
2245
  function Oo(e, t, n, r) {
2246
- var i = Ke(e) ? e : ye(e), a = Ke(t) ? t : ye(t);
2246
+ var i = qe(e) ? e : ye(e), a = qe(t) ? t : ye(t);
2247
2247
  return this.isValid() && i.isValid() && a.isValid() ? (r = r || "()", (r[0] === "(" ? this.isAfter(i, n) : !this.isBefore(i, n)) && (r[1] === ")" ? this.isBefore(a, n) : !this.isAfter(a, n))) : !1;
2248
2248
  }
2249
2249
  function Mo(e, t) {
2250
- var n = Ke(e) ? e : ye(e), r;
2250
+ var n = qe(e) ? e : ye(e), r;
2251
2251
  return this.isValid() && n.isValid() ? (t = We(t) || "millisecond", t === "millisecond" ? this.valueOf() === n.valueOf() : (r = n.valueOf(), this.clone().startOf(t).valueOf() <= r && r <= this.clone().endOf(t).valueOf())) : !1;
2252
2252
  }
2253
2253
  function Ao(e, t) {
@@ -2332,13 +2332,13 @@ function Fo(e) {
2332
2332
  return this.localeData().postformat(t);
2333
2333
  }
2334
2334
  function Do(e, t) {
2335
- return this.isValid() && (Ke(e) && e.isValid() || ye(e).isValid()) ? Qe({ to: this, from: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
2335
+ return this.isValid() && (qe(e) && e.isValid() || ye(e).isValid()) ? Ke({ to: this, from: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
2336
2336
  }
2337
2337
  function Yo(e) {
2338
2338
  return this.from(ye(), e);
2339
2339
  }
2340
2340
  function Uo(e, t) {
2341
- return this.isValid() && (Ke(e) && e.isValid() || ye(e).isValid()) ? Qe({ from: this, to: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
2341
+ return this.isValid() && (qe(e) && e.isValid() || ye(e).isValid()) ? Ke({ from: this, to: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
2342
2342
  }
2343
2343
  function $o(e) {
2344
2344
  return this.to(ye(), e);
@@ -2508,7 +2508,7 @@ function Qo() {
2508
2508
  return Un(this);
2509
2509
  }
2510
2510
  function Zo() {
2511
- return vt({}, ee(this));
2511
+ return jt({}, ee(this));
2512
2512
  }
2513
2513
  function Jo() {
2514
2514
  return ee(this).overflow;
@@ -2763,7 +2763,7 @@ function vc(e) {
2763
2763
  H("m", ["mm", 2], 0, "minute");
2764
2764
  Y("m", ge, Vn);
2765
2765
  Y("mm", ge, Ue);
2766
- pe(["m", "mm"], Ve);
2766
+ pe(["m", "mm"], Ge);
2767
2767
  var _c = Zt("Minutes", !1);
2768
2768
  H("s", ["ss", 2], 0, "second");
2769
2769
  Y("s", ge, Vn);
@@ -2798,14 +2798,14 @@ H(0, ["SSSSSSSSS", 9], 0, function() {
2798
2798
  Y("S", rn, $r);
2799
2799
  Y("SS", rn, Ue);
2800
2800
  Y("SSS", rn, Hr);
2801
- var _t, va;
2802
- for (_t = "SSSS"; _t.length <= 9; _t += "S")
2803
- Y(_t, Kt);
2801
+ var vt, va;
2802
+ for (vt = "SSSS"; vt.length <= 9; vt += "S")
2803
+ Y(vt, Kt);
2804
2804
  function Sc(e, t) {
2805
2805
  t[Mt] = ne(("0." + e) * 1e3);
2806
2806
  }
2807
- for (_t = "S"; _t.length <= 9; _t += "S")
2808
- pe(_t, Sc);
2807
+ for (vt = "S"; vt.length <= 9; vt += "S")
2808
+ pe(vt, Sc);
2809
2809
  va = Zt("Milliseconds", !1);
2810
2810
  H("z", 0, 0, "zoneAbbr");
2811
2811
  H("zz", 0, 0, "zoneName");
@@ -2993,7 +2993,7 @@ function Ec(e, t, n) {
2993
2993
  function Rc(e, t, n) {
2994
2994
  return ir(e, t, n, "weekdaysMin");
2995
2995
  }
2996
- bt("en", {
2996
+ _t("en", {
2997
2997
  eras: [
2998
2998
  {
2999
2999
  since: "0001-01-01",
@@ -3020,7 +3020,7 @@ bt("en", {
3020
3020
  });
3021
3021
  R.lang = Be(
3022
3022
  "moment.lang is deprecated. Use moment.locale instead.",
3023
- bt
3023
+ _t
3024
3024
  );
3025
3025
  R.langData = Be(
3026
3026
  "moment.langData is deprecated. Use moment.localeData instead.",
@@ -3032,7 +3032,7 @@ function kc() {
3032
3032
  return this._milliseconds = ot(this._milliseconds), this._days = ot(this._days), this._months = ot(this._months), e.milliseconds = ot(e.milliseconds), e.seconds = ot(e.seconds), e.minutes = ot(e.minutes), e.hours = ot(e.hours), e.months = ot(e.months), e.years = ot(e.years), this;
3033
3033
  }
3034
3034
  function Sa(e, t, n, r) {
3035
- var i = Qe(t, n);
3035
+ var i = Ke(t, n);
3036
3036
  return e._milliseconds += r * i._milliseconds, e._days += r * i._days, e._months += r * i._months, e._bubble();
3037
3037
  }
3038
3038
  function Lc(e, t) {
@@ -3093,7 +3093,7 @@ function gt(e) {
3093
3093
  }
3094
3094
  var wa = gt("ms"), Yc = gt("s"), Uc = gt("m"), $c = gt("h"), Hc = gt("d"), Bc = gt("w"), Wc = gt("M"), zc = gt("Q"), Gc = gt("y"), Vc = wa;
3095
3095
  function qc() {
3096
- return Qe(this);
3096
+ return Ke(this);
3097
3097
  }
3098
3098
  function Kc(e) {
3099
3099
  return e = We(e), this.isValid() ? this[e + "s"]() : NaN;
@@ -3127,7 +3127,7 @@ function rd(e, t, n, r, i) {
3127
3127
  return i.relativeTime(t || 1, !!n, e, r);
3128
3128
  }
3129
3129
  function ad(e, t, n, r) {
3130
- var i = Qe(e).abs(), a = ct(i.as("s")), d = ct(i.as("m")), y = ct(i.as("h")), o = ct(i.as("d")), l = ct(i.as("M")), c = ct(i.as("w")), u = ct(i.as("y")), m = a <= n.ss && ["s", a] || a < n.s && ["ss", a] || d <= 1 && ["m"] || d < n.m && ["mm", d] || y <= 1 && ["h"] || y < n.h && ["hh", y] || o <= 1 && ["d"] || o < n.d && ["dd", o];
3130
+ var i = Ke(e).abs(), a = ct(i.as("s")), d = ct(i.as("m")), y = ct(i.as("h")), o = ct(i.as("d")), l = ct(i.as("M")), c = ct(i.as("w")), u = ct(i.as("y")), m = a <= n.ss && ["s", a] || a < n.s && ["ss", a] || d <= 1 && ["m"] || d < n.m && ["mm", d] || y <= 1 && ["h"] || y < n.h && ["hh", y] || o <= 1 && ["d"] || o < n.d && ["dd", o];
3131
3131
  return n.w != null && (m = m || c <= 1 && ["w"] || c < n.w && ["ww", c]), m = m || l <= 1 && ["M"] || l < n.M && ["MM", l] || u <= 1 && ["y"] || ["yy", u], m[2] = t, m[3] = +e > 0, m[4] = r, rd.apply(null, m);
3132
3132
  }
3133
3133
  function id(e) {
@@ -3211,10 +3211,10 @@ R.utc = st;
3211
3211
  R.unix = Ic;
3212
3212
  R.months = Oc;
3213
3213
  R.isDate = Ss;
3214
- R.locale = bt;
3214
+ R.locale = _t;
3215
3215
  R.invalid = sn;
3216
- R.duration = Qe;
3217
- R.isMoment = Ke;
3216
+ R.duration = Ke;
3217
+ R.isMoment = qe;
3218
3218
  R.weekdays = Ac;
3219
3219
  R.parseZone = Cc;
3220
3220
  R.localeData = yt;
@@ -3250,13 +3250,13 @@ R.HTML5_FMT = {
3250
3250
  MONTH: "YYYY-MM"
3251
3251
  // <input type="month" />
3252
3252
  };
3253
- const Tt = (e, t, n) => {
3253
+ const St = (e, t, n) => {
3254
3254
  let r;
3255
3255
  for (let i = 0; i < (e == null ? void 0 : e.length); i++)
3256
3256
  if (r = e[i], r[n] == t)
3257
3257
  return r;
3258
3258
  return new Object();
3259
- }, Ge = (e) => {
3259
+ }, ze = (e) => {
3260
3260
  if (!e) return "";
3261
3261
  e = e.toLowerCase();
3262
3262
  let t = e.split(" ");
@@ -3497,7 +3497,7 @@ const fd = (e) => ({
3497
3497
  let d;
3498
3498
  for (let y in e.paymentModes)
3499
3499
  !r[y] && e.paymentModes[y] && (d = a[y], n.push({
3500
- displayName: d ? d.displayName : Ge(y.replace("_", " ")),
3500
+ displayName: d ? d.displayName : ze(y.replace("_", " ")),
3501
3501
  value: dt(e.paymentModes[y])
3502
3502
  }));
3503
3503
  return n;
@@ -3531,7 +3531,7 @@ const Bs = (e, t, n) => {
3531
3531
  } else
3532
3532
  return e;
3533
3533
  else
3534
- return console.log("OLD FLOW"), !0;
3534
+ return !0;
3535
3535
  }, Tn = (e) => {
3536
3536
  let t = {}, n;
3537
3537
  for (let r = 0; r < e.length; r++)
@@ -3617,9 +3617,9 @@ const Bs = (e, t, n) => {
3617
3617
  var _;
3618
3618
  const { usersObj: r } = n;
3619
3619
  let i = {}, a, d;
3620
- const { cancelledKOT: y, onlyCancelledItems: o, kotStatus: l = "KOT_GENERATED" } = n, c = Tt(e.orderTags, "EXPRESS", "tag_type").content ? "INSTANT - URGENT ORDER" : null;
3620
+ const { cancelledKOT: y, onlyCancelledItems: o, kotStatus: l = "KOT_GENERATED" } = n, c = St(e.orderTags, "EXPRESS", "tag_type").content ? "INSTANT - URGENT ORDER" : null;
3621
3621
  if ((_ = e.customFeilds) != null && _.length) {
3622
- let w = Tt(e.customFeilds, "INSTRUCTION", "customType");
3622
+ let w = St(e.customFeilds, "INSTRUCTION", "customType");
3623
3623
  w != null && w.customValue && (d = [
3624
3624
  {
3625
3625
  customName: w.customName,
@@ -3633,7 +3633,7 @@ const Bs = (e, t, n) => {
3633
3633
  let F = T.station ? T.station.split("::") : "", O = F && F.length > 1 ? F[1] : F[0], B = e.tableNo ? e.tableNo.split("::") : null, K = B && B.length > 0 ? B[0] : e.orderFrom, te = e.tableName ? e.tableName : e.tableNo ? K : e.orderFrom, q;
3634
3634
  (Ne = r == null ? void 0 : r[w.createdBy]) != null && Ne.name && (q = r[w.createdBy].name);
3635
3635
  let ce = !1;
3636
- (y || O && T.status == l) && (ce = !0), ce && Fn(O) ? (i[O] || (i[O] = {}, i[O].station = O, i[O].services = [], i[O].tableName = te, i[O].customerName = e.name == t.companyName ? null : e.name, i[O].time = R().format("DD-MM-YYYY hh:mm a"), i[O].type = e.orderFrom, i[O].subOrderFrom = e.subOrderFrom, i[O].orderId = e.externalOrderId || e.offlineOrderId ? e.orderId : w.subOrderId, i[O].orderId = /* @__PURE__ */ new Set([i[O].orderId]), i[O].instruction = e.instruction, i[O].orderSource = e.orderSource, i[O].deliveryTimestamp = e.deliveryTimestamp ? R.unix(e.deliveryTimestamp).format("DD-MM-YYYY hh:mm A") : null, i[O].aggregatorOrderId = e.externalOrderId, i[O].otp = e.otp, i[O].totalQty = 0, i[O].tokenId = e.tokenId, i[O].kotId = T.kotId ? /* @__PURE__ */ new Set([T.kotId]) : null, i[O].waiterName = e.waiterName, i[O].duplicate = y, i[O].createdBy = q, i[O].zomatoInstant = c, d && (i[O].customFields = d), o && (i[O].onlyCancelledItems = o), e.preparationTime && (i[O].prepareBy = R().add(e.preparationTime, "minutes").format("DD-MM-YYYY hh:mm A"))), i[O] ? (i[O].services.push({
3636
+ (y || O && T.status == l) && (ce = !0), ce && Fn(O) && (i[O] || (i[O] = {}, i[O].station = O, i[O].services = [], i[O].tableName = te, i[O].customerName = e.name == t.companyName ? null : e.name, i[O].time = R().format("DD-MM-YYYY hh:mm a"), i[O].type = e.orderFrom, i[O].subOrderFrom = e.subOrderFrom, i[O].orderId = e.externalOrderId || e.offlineOrderId ? e.orderId : w.subOrderId, i[O].orderId = /* @__PURE__ */ new Set([i[O].orderId]), i[O].instruction = e.instruction, i[O].orderSource = e.orderSource, i[O].deliveryTimestamp = e.deliveryTimestamp ? R.unix(e.deliveryTimestamp).format("DD-MM-YYYY hh:mm A") : null, i[O].aggregatorOrderId = e.externalOrderId, i[O].otp = e.otp, i[O].totalQty = 0, i[O].tokenId = e.tokenId, i[O].kotId = T.kotId ? /* @__PURE__ */ new Set([T.kotId]) : null, i[O].waiterName = e.waiterName, i[O].duplicate = y, i[O].createdBy = q, i[O].zomatoInstant = c, d && (i[O].customFields = d), o && (i[O].onlyCancelledItems = o), e.preparationTime && (i[O].prepareBy = R().add(e.preparationTime, "minutes").format("DD-MM-YYYY hh:mm A"))), i[O] ? (i[O].services.push({
3637
3637
  serviceName: T.serviceName,
3638
3638
  qty: T.qty,
3639
3639
  instruction: T.isUrgent && T.instruction ? `(URGENT -${T.instruction})` : T.instruction ? `(${T.instruction})` : T.isUrgent ? "(URGENT)" : "",
@@ -3642,14 +3642,14 @@ const Bs = (e, t, n) => {
3642
3642
  index: M,
3643
3643
  status: T.status,
3644
3644
  addons: T.addons
3645
- }), i[O].totalQty += Te(T.qty), (W = i[O].kotId) == null || W.add(T.kotId), e.externalOrderId || e.offlineOrderId || (ie = i[O].orderId) == null || ie.add(w.subOrderId)) : (console.log("else"), i[O] = [], i[O].services.push({
3645
+ }), i[O].totalQty += Te(T.qty), (W = i[O].kotId) == null || W.add(T.kotId), e.externalOrderId || e.offlineOrderId || (ie = i[O].orderId) == null || ie.add(w.subOrderId)) : (i[O] = [], i[O].services.push({
3646
3646
  serviceName: T.serviceName,
3647
3647
  qty: T.qty,
3648
3648
  instruction: T.instruction ? T.instruction : "",
3649
3649
  subOrderId: w.subOrderId,
3650
3650
  index: M,
3651
3651
  status: T.status
3652
- }), i[O].totalQty += Te(T.qty))) : console.log("cancelledKOT ::");
3652
+ }), i[O].totalQty += Te(T.qty)));
3653
3653
  });
3654
3654
  });
3655
3655
  let u = {}, m = "2INCH";
@@ -3685,9 +3685,9 @@ const Bs = (e, t, n) => {
3685
3685
  const { kotStatus: r = "KOT_GENERATED" } = n;
3686
3686
  try {
3687
3687
  let d = "2INCH", y, o = [], l, c;
3688
- const u = Tt(e.orderTags, "EXPRESS", "tag_type").content ? "INSTANT - URGENT ORDER" : null;
3688
+ const u = St(e.orderTags, "EXPRESS", "tag_type").content ? "INSTANT - URGENT ORDER" : null;
3689
3689
  if ((i = e.customFeilds) != null && i.length) {
3690
- let m = Tt(e.customFeilds, "INSTRUCTION", "customType");
3690
+ let m = St(e.customFeilds, "INSTRUCTION", "customType");
3691
3691
  m != null && m.customValue && (c = [
3692
3692
  {
3693
3693
  customName: m.customName,
@@ -3803,10 +3803,8 @@ const Bs = (e, t, n) => {
3803
3803
  return { obj: r, paperSize: i, printersMap: y };
3804
3804
  }, _d = (e, t) => {
3805
3805
  var M, F;
3806
- let { serviceTypeConfig: n, salesCollection: r, todayCollection: i, dailyExpanse: a, collectionDate: d, rangeDate: y } = t;
3807
- console.log(e, { serviceTypeConfig: n, salesCollection: r, todayCollection: i, dailyExpanse: a, collectionDate: d });
3808
- let o = {}, l;
3809
- const c = !!Tt(n, "dine-in", "slugName").slugName;
3806
+ let { serviceTypeConfig: n, salesCollection: r, todayCollection: i, dailyExpanse: a, collectionDate: d, rangeDate: y } = t, o = {}, l;
3807
+ const c = !!St(n, "dine-in", "slugName").slugName;
3810
3808
  if (i != null && i.AGGREGATOR_PAYMENT) {
3811
3809
  const { AGGREGATOR_PAYMENT: O, ...B } = i;
3812
3810
  i = { ...B, swiggy: r.swiggy_collection ?? 0, zomato: r.zomato_collection ?? 0 };
@@ -3869,8 +3867,7 @@ const Bs = (e, t, n) => {
3869
3867
  };
3870
3868
  }, bd = (e, t, n = {}) => new Promise(async (r, i) => {
3871
3869
  var m, f, x;
3872
- console.log({ order: e, settingData: t, additionalActions: n });
3873
- const a = void 0, { invoiceFormat: d, userData: y } = n;
3870
+ const { invoiceFormat: d, userData: y } = n;
3874
3871
  let o, l, c = [], u;
3875
3872
  try {
3876
3873
  if ((m = e.appliedDiscounts) != null && m.length) {
@@ -3878,9 +3875,9 @@ const Bs = (e, t, n) => {
3878
3875
  for (let V = 0; V < e.appliedDiscounts.length; V++)
3879
3876
  o = e.appliedDiscounts[V], u += o.discountAmt;
3880
3877
  }
3881
- const b = Tt(e.orderTags, "EXPRESS", "tag_type").content ? "INSTANT - URGENT ORDER" : null;
3878
+ const b = St(e.orderTags, "EXPRESS", "tag_type").content ? "INSTANT - URGENT ORDER" : null;
3882
3879
  if ((f = e.customFeilds) != null && f.length) {
3883
- const V = Tt(e.customFeilds, "INSTRUCTION", "customType");
3880
+ const V = St(e.customFeilds, "INSTRUCTION", "customType");
3884
3881
  V != null && V.customValue && (c = [
3885
3882
  {
3886
3883
  customName: V.customName,
@@ -3904,9 +3901,9 @@ const Bs = (e, t, n) => {
3904
3901
  custAddress: e.custAddress ?? null,
3905
3902
  custContact: e.mobile ?? null
3906
3903
  }, ce = pn(t.curr), Ne = { ...e, companyInfo: B, orderInfo: te, customerInfo: q, gst: O, curr: ce }, W = null, ie = null;
3907
- d.companyLogo && (W = await qt(`https://${a}.s3.amazonaws.com/${d.companyLogo.key}`)), d.qrcode && (ie = await qt(`https://${a}.s3.amazonaws.com/${d.qrcode.key}`)), e.orderList.filter((V) => {
3904
+ d.companyLogo && (W = await qt(`https://undefined.s3.amazonaws.com/${d.companyLogo.key}`)), d.qrcode && (ie = await qt(`https://undefined.s3.amazonaws.com/${d.qrcode.key}`)), e.orderList.filter((V) => {
3908
3905
  V.services.forEach(async (Z, Ie) => {
3909
- var Ze, Je;
3906
+ var Qe, Ze;
3910
3907
  let A = "kitchen", rt = e.tableName ? e.tableName : e.orderFrom;
3911
3908
  A && (o[A] || (o[A] = {}, o[A].station = A, o[A].services = [], o[A].tableName = rt, o[A].customerName = e.name, o[A].time = R.unix(e.timestamp).format("DD-MM-YYYY hh:mm a"), o[A].type = e.orderFrom, o[A].orderId = e.orderId, o[A].instruction = e.instruction, o[A].totalQty = 0, o[A].tokenId = e.tokenId, o[A].orderSource = e.orderSource, o[A].aggregatorOrderId = e.externalOrderId, o[A].otp = e.otp, o[A].paymentState = e.paymentState, o[A].discountAmt = u, o[A].otherCharges = e.otherCharges, o[A].taxAmt = e.taxAmt, o[A].customFeilds = c, o[A].curr = t.curr ?? "INR", o[A].zomatoInstant = b), o[A] ? (l = {
3912
3909
  serviceName: Z.serviceName,
@@ -3915,7 +3912,7 @@ const Bs = (e, t, n) => {
3915
3912
  subOrderId: V.subOrderId,
3916
3913
  isUrgent: Z.isUrgent,
3917
3914
  index: Ie
3918
- }, (Ze = Z.addons) != null && Ze.length && (l.addons = Z.addons), o[A].services.push(l), o[A].totalQty += Z.qty) : (o[A] = [], o[A].services.push({
3915
+ }, (Qe = Z.addons) != null && Qe.length && (l.addons = Z.addons), o[A].services.push(l), o[A].totalQty += Z.qty) : (o[A] = [], o[A].services.push({
3919
3916
  serviceName: Z.serviceName,
3920
3917
  qty: Z.qty,
3921
3918
  instruction: Z.instruction ? Z.instruction : "",
@@ -3928,7 +3925,7 @@ const Bs = (e, t, n) => {
3928
3925
  customerInfo: q,
3929
3926
  gst: O,
3930
3927
  curr: ce
3931
- }, o[A].domain = d.siteURL, o[A].paymentMethods = d.paymentMode ? Ne.paymentMethods : null, o[A].companyInfo.companyName = d.companyName, o[A].companyInfo.companyEmail = d.email, o[A].companyInfo.companyAddress = d.address, o[A].companyInfo.companyContact = d.mobile, o[A].tokenId = d.token ? Ne.tokenId : null, d.isPayQR && d.upiId && d.upiId !== "" && (Ne.upiId = d.upiId), o[A].gstNo = d.gst ? Ne.gst : null, o[A].footerMessage = d.footerMessage, o[A].orderFrom = (Je = e.subOrderFrom) == null ? void 0 : Je.toUpperCase(), o[A].fssai = t.fssai, o[A].vatNo = t.vatNo, o[A].printOperatorInfo = d.printOperatorInfo === null || d.printOperatorInfo === !0, o[A].disabledPoweredBy = t.disabledPoweredBy === !0, o[A].printTime = R().format("DD-MM-YYYY hh:mm A"), o[A].printedBy = y.userRole == "admin" ? "Admin" : y.name, e.deliveryTimestamp && (o[A].deliveryTimestamp = R.unix(e.deliveryTimestamp).format("DD-MM-YYYY hh:mm A")), o[A].itemInstructionOnBill = d.itemInstructionOnBill, o[A] = {
3928
+ }, o[A].domain = d.siteURL, o[A].paymentMethods = d.paymentMode ? Ne.paymentMethods : null, o[A].companyInfo.companyName = d.companyName, o[A].companyInfo.companyEmail = d.email, o[A].companyInfo.companyAddress = d.address, o[A].companyInfo.companyContact = d.mobile, o[A].tokenId = d.token ? Ne.tokenId : null, d.isPayQR && d.upiId && d.upiId !== "" && (Ne.upiId = d.upiId), o[A].gstNo = d.gst ? Ne.gst : null, o[A].footerMessage = d.footerMessage, o[A].orderFrom = (Ze = e.subOrderFrom) == null ? void 0 : Ze.toUpperCase(), o[A].fssai = t.fssai, o[A].vatNo = t.vatNo, o[A].printOperatorInfo = d.printOperatorInfo === null || d.printOperatorInfo === !0, o[A].disabledPoweredBy = t.disabledPoweredBy === !0, o[A].printTime = R().format("DD-MM-YYYY hh:mm A"), o[A].printedBy = y.userRole == "admin" ? "Admin" : y.name, e.deliveryTimestamp && (o[A].deliveryTimestamp = R.unix(e.deliveryTimestamp).format("DD-MM-YYYY hh:mm A")), o[A].itemInstructionOnBill = d.itemInstructionOnBill, o[A] = {
3932
3929
  ...o[A],
3933
3930
  companyLogo: W,
3934
3931
  companyQrCode: ie
@@ -4071,11 +4068,11 @@ const Bs = (e, t, n) => {
4071
4068
  });
4072
4069
  A.customFields = rt;
4073
4070
  }
4074
- let Ze = null, Je = null;
4075
- m.companyLogo && (Ze = await qt(`https://${T}.s3.amazonaws.com/${m.companyLogo.key}`)), m.qrcode && (Je = await qt(`https://${T}.s3.amazonaws.com/${m.qrcode.key}`));
4071
+ let Qe = null, Ze = null;
4072
+ m.companyLogo && (Qe = await qt(`https://${T}.s3.amazonaws.com/${m.companyLogo.key}`)), m.qrcode && (Ze = await qt(`https://${T}.s3.amazonaws.com/${m.qrcode.key}`));
4076
4073
  var a = "Unknown OS";
4077
4074
  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");
4078
- let ze = {};
4075
+ let Je = {};
4079
4076
  (function() {
4080
4077
  let J, je, at = 0, g = 0, h = 0, I = 0, j = 0, C = 0, D = 0, S = 0, k = [], $ = [], fe = 0, Ae;
4081
4078
  if (F === "A4" || F === "A5") {
@@ -4084,7 +4081,7 @@ const Bs = (e, t, n) => {
4084
4081
  let Re = bn(w, "discountName", { separateItemsDisc: !0 });
4085
4082
  const ke = Tn(Re);
4086
4083
  let { obj: Oe, sum: De } = In(w);
4087
- ze = {
4084
+ Je = {
4088
4085
  itemList: wn(w, {
4089
4086
  itemInstructionOnBill: m.itemInstructionOnBill,
4090
4087
  printZeroPriceAddons: m.printZeroPriceAddons
@@ -4105,7 +4102,7 @@ const Bs = (e, t, n) => {
4105
4102
  let Re = bn(k, "discountName", { separateItemsDisc: !0 });
4106
4103
  const ke = Tn(Re);
4107
4104
  let { obj: Oe, sum: De } = In(k);
4108
- ze.GST = {
4105
+ Je.GST = {
4109
4106
  itemList: wn(k, {
4110
4107
  itemInstructionOnBill: m.itemInstructionOnBill,
4111
4108
  printZeroPriceAddons: m.printZeroPriceAddons
@@ -4123,7 +4120,7 @@ const Bs = (e, t, n) => {
4123
4120
  let Re = bn($, "discountName", { separateItemsDisc: !0 });
4124
4121
  const ke = Tn(Re);
4125
4122
  let { obj: Oe, sum: De } = In($);
4126
- ze.VAT = {
4123
+ Je.VAT = {
4127
4124
  itemList: wn($, {
4128
4125
  itemInstructionOnBill: m.itemInstructionOnBill,
4129
4126
  printZeroPriceAddons: m.printZeroPriceAddons
@@ -4138,9 +4135,9 @@ const Bs = (e, t, n) => {
4138
4135
  };
4139
4136
  }
4140
4137
  }
4141
- })(), console.log("distributedData :::", ze), A.distributedData = ze;
4142
- let Nt = { obj: A, companyLogo: Ze, companyQrCode: Je, paperSize: t.printerSize, Name: a };
4143
- console.log("obj1 :::", Nt), r(Nt);
4138
+ })(), A.distributedData = Je;
4139
+ let Tt = { obj: A, companyLogo: Qe, companyQrCode: Ze, paperSize: t.printerSize, Name: a };
4140
+ r(Tt);
4144
4141
  }
4145
4142
  } catch (m) {
4146
4143
  console.log("err", m), i(m);
@@ -4199,7 +4196,6 @@ const Bs = (e, t, n) => {
4199
4196
  }
4200
4197
  }), wd = (e, t) => new Promise(async (n, r) => {
4201
4198
  var M;
4202
- console.log({ orders: e, settingData: t });
4203
4199
  let i;
4204
4200
  (M = t.siteLogo) != null && M.key;
4205
4201
  let a = t.footerAddress.addressLineOne ? t.footerAddress.addressLineOne : "", d = t.footerAddress.addressLineTwo ? t.footerAddress.addressLineTwo : "", y = t.footerAddress.city ? t.footerAddress.city : "", o = t.footerAddress.zip ? t.footerAddress.zip : "", l = (a != "" ? a + "," : "") + (d != "" ? d + "," : "") + (y != "" ? y + "," : "") + (o != "" ? o + "," : ""), c = [], u, m = 0, f = 0, x = 0, b = [], _, w;
@@ -4249,7 +4245,7 @@ const Bs = (e, t, n) => {
4249
4245
  custMobile: r.orderObj.custMob,
4250
4246
  custAddress: r.orderObj.custAddress,
4251
4247
  orderData: r.orderData
4252
- }), console.log("resp :::", i), t(i);
4248
+ }), t(i);
4253
4249
  }), Oa = (e) => {
4254
4250
  let t = new Array();
4255
4251
  for (const n in e)
@@ -4281,7 +4277,7 @@ const Od = /* @__PURE__ */ (() => {
4281
4277
  );
4282
4278
  return () => (e += 1, `u${t()}${e}`);
4283
4279
  })();
4284
- function St(e) {
4280
+ function bt(e) {
4285
4281
  const t = [];
4286
4282
  for (let n = 0, r = e.length; n < r; n++)
4287
4283
  t.push(e[n]);
@@ -4289,7 +4285,7 @@ function St(e) {
4289
4285
  }
4290
4286
  let Ut = null;
4291
4287
  function Ma(e = {}) {
4292
- return Ut || (e.includeStyleProperties ? (Ut = e.includeStyleProperties, Ut) : (Ut = St(window.getComputedStyle(document.documentElement)), Ut));
4288
+ return Ut || (e.includeStyleProperties ? (Ut = e.includeStyleProperties, Ut) : (Ut = bt(window.getComputedStyle(document.documentElement)), Ut));
4293
4289
  }
4294
4290
  function Xs(e, t) {
4295
4291
  const r = (e.ownerDocument.defaultView || window).getComputedStyle(e).getPropertyValue(t);
@@ -4472,7 +4468,7 @@ async function Qd(e, t, n) {
4472
4468
  if (Ra(t))
4473
4469
  return t;
4474
4470
  let a = [];
4475
- return Kd(e) && e.assignedNodes ? a = St(e.assignedNodes()) : Fe(e, HTMLIFrameElement) && (!((r = e.contentDocument) === null || r === void 0) && r.body) ? a = St(e.contentDocument.body.childNodes) : a = St(((i = e.shadowRoot) !== null && i !== void 0 ? i : e).childNodes), a.length === 0 || Fe(e, HTMLVideoElement) || await a.reduce((d, y) => d.then(() => gn(y, n)).then((o) => {
4471
+ return Kd(e) && e.assignedNodes ? a = bt(e.assignedNodes()) : Fe(e, HTMLIFrameElement) && (!((r = e.contentDocument) === null || r === void 0) && r.body) ? a = bt(e.contentDocument.body.childNodes) : a = bt(((i = e.shadowRoot) !== null && i !== void 0 ? i : e).childNodes), a.length === 0 || Fe(e, HTMLVideoElement) || await a.reduce((d, y) => d.then(() => gn(y, n)).then((o) => {
4476
4472
  o && t.appendChild(o);
4477
4473
  }), Promise.resolve()), t;
4478
4474
  }
@@ -4593,7 +4589,7 @@ async function ch(e, t) {
4593
4589
  });
4594
4590
  }
4595
4591
  async function dh(e, t) {
4596
- const r = St(e.childNodes).map((i) => Fa(i, t));
4592
+ const r = bt(e.childNodes).map((i) => Fa(i, t));
4597
4593
  await Promise.all(r).then(() => e);
4598
4594
  }
4599
4595
  async function Fa(e, t) {
@@ -4654,7 +4650,7 @@ async function uh(e, t) {
4654
4650
  return e.forEach((i) => {
4655
4651
  if ("cssRules" in i)
4656
4652
  try {
4657
- St(i.cssRules || []).forEach((a, d) => {
4653
+ bt(i.cssRules || []).forEach((a, d) => {
4658
4654
  if (a.type === CSSRule.IMPORT_RULE) {
4659
4655
  let y = d + 1;
4660
4656
  const o = a.href, l = Cr(o).then((c) => Or(c, t)).then((c) => Mr(c).forEach((u) => {
@@ -4683,7 +4679,7 @@ async function uh(e, t) {
4683
4679
  }), Promise.all(r).then(() => (e.forEach((i) => {
4684
4680
  if ("cssRules" in i)
4685
4681
  try {
4686
- St(i.cssRules || []).forEach((a) => {
4682
+ bt(i.cssRules || []).forEach((a) => {
4687
4683
  n.push(a);
4688
4684
  });
4689
4685
  } catch (a) {
@@ -4697,7 +4693,7 @@ function mh(e) {
4697
4693
  async function fh(e, t) {
4698
4694
  if (e.ownerDocument == null)
4699
4695
  throw new Error("Provided element is not within a Document");
4700
- const n = St(e.ownerDocument.styleSheets), r = await uh(n, t);
4696
+ const n = bt(e.ownerDocument.styleSheets), r = await uh(n, t);
4701
4697
  return mh(r);
4702
4698
  }
4703
4699
  function Da(e) {
@@ -5819,8 +5815,8 @@ const fs = (e, t) => t * 100 / e, Ch = (e, t) => {
5819
5815
  var gs = lr(), Se = "normal-class";
5820
5816
  (gs == "Android OS" || gs === "iOS") && (Se = "bold-class");
5821
5817
  const tt = (e) => {
5822
- var ze, Nt, J, je, at;
5823
- const t = e.additionalActions ?? {}, n = Xa(null), r = e.settingData ? e.settingData : e.value.settingData, i = localStorage.getItem("siteId"), { staticDataKOT: a, printer: d, type: y } = e.printerDataObject, o = ((Nt = (ze = e.value) == null ? void 0 : ze.settingData) == null ? void 0 : Nt.curr) ?? ((J = e.settingData) == null ? void 0 : J.curr) ?? "INR";
5818
+ var Je, Tt, J, je, at;
5819
+ const t = e.additionalActions ?? {}, n = Xa(null), r = e.settingData ? e.settingData : e.value.settingData, i = localStorage.getItem("siteId"), { staticDataKOT: a, printer: d, type: y } = e.printerDataObject, o = ((Tt = (Je = e.value) == null ? void 0 : Je.settingData) == null ? void 0 : Tt.curr) ?? ((J = e.settingData) == null ? void 0 : J.curr) ?? "INR";
5824
5820
  r == null || r.fontTheme;
5825
5821
  let l = e.printerDataObject.paperSize, c = or(
5826
5822
  d,
@@ -5997,7 +5993,7 @@ const tt = (e) => {
5997
5993
  for (const j in g[I])
5998
5994
  j !== "total" && g[I][j] && h.push(
5999
5995
  /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold flex-two-items", children: [
6000
- /* @__PURE__ */ s.jsx("span", { children: ` -- ${Ge(j)}:` }),
5996
+ /* @__PURE__ */ s.jsx("span", { children: ` -- ${ze(j)}:` }),
6001
5997
  /* @__PURE__ */ s.jsx("span", { children: oe(g[I][j], o) })
6002
5998
  ] })
6003
5999
  );
@@ -6089,7 +6085,7 @@ const tt = (e) => {
6089
6085
  }
6090
6086
  )
6091
6087
  ] }),
6092
- S.addons && S.addons.length && S.addons.map((k) => /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-addon-kot ${L[l].dynamicClassname}`, children: "- " + Ge(k.serviceName) })),
6088
+ S.addons && S.addons.length && S.addons.map((k) => /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-addon-kot ${L[l].dynamicClassname}`, children: "- " + ze(k.serviceName) })),
6093
6089
  S.instruction && g.itemInstructionOnBill && /* @__PURE__ */ s.jsx("h6", { className: "left-align-entity level2-bold", children: /* @__PURE__ */ s.jsx("h6", { className: "items products-heading-addon-kot", children: " (" + S.instruction + ")" }) })
6094
6090
  ] });
6095
6091
  }),
@@ -6310,7 +6306,7 @@ const tt = (e) => {
6310
6306
  /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-rate ${L[l].dynamicClassname}`, children: S.rate ? m(S.rate) : "" }),
6311
6307
  /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-amt ${L[l].dynamicClassname}`, children: S.status === "RETURNED" ? S.serviceAmount ? f(S.serviceAmount) : "" : S.price ? f(S.price) : "" })
6312
6308
  ] }),
6313
- S.addons && S.addons.length && S.addons.map((k) => /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-addon-kot ${L[l].dynamicClassname}`, children: "- " + Ge(k.serviceName) })),
6309
+ S.addons && S.addons.length && S.addons.map((k) => /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-addon-kot ${L[l].dynamicClassname}`, children: "- " + ze(k.serviceName) })),
6314
6310
  S.instruction && g.itemInstructionOnBill && /* @__PURE__ */ s.jsx("h6", { className: "left-align-entity level2-bold", children: /* @__PURE__ */ s.jsx("h6", { className: "items products-heading-addon-kot", children: " (" + S.instruction + ")" }) })
6315
6311
  ] });
6316
6312
  }),
@@ -6495,7 +6491,6 @@ const tt = (e) => {
6495
6491
  ] });
6496
6492
  }, ie = (g, h, { labels: I, doMultipleTax: j, type: C }) => {
6497
6493
  var S, k, $, fe, Ae, Re, ke, Oe, De, wt, it;
6498
- console.log({ iterator: g, staticData: h });
6499
6494
  const D = g.discounts;
6500
6495
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6501
6496
  /* @__PURE__ */ s.jsx("hr", {}),
@@ -6548,11 +6543,11 @@ const tt = (e) => {
6548
6543
  /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-rate ${L[l].dynamicClassname}`, children: z.serviceRate ? m(z.serviceRate) : "" }),
6549
6544
  /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-amt ${L[l].dynamicClassname}`, children: z.status === "RETURNED" ? z.serviceAmount ? f(z.serviceAmount) : "" : z.sub_total ? f(z.sub_total) : "" })
6550
6545
  ] }),
6551
- (It = z.addons) != null && It.length ? z.addons.map((jt) => /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
6552
- /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-name ${L[l].dynamicClassname}`, style: { lineHeight: 1.2 }, children: "+ " + Ge(jt.serviceName) }),
6546
+ (It = z.addons) != null && It.length ? z.addons.map((Nt) => /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
6547
+ /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-name ${L[l].dynamicClassname}`, style: { lineHeight: 1.2 }, children: "+ " + ze(Nt.serviceName) }),
6553
6548
  /* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-qty ${L[l].dynamicClassname}`, children: [
6554
6549
  z.status === "RETURNED" ? "-" : "",
6555
- jt.qty
6550
+ Nt.qty
6556
6551
  ] }),
6557
6552
  /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-rate ${L[l].dynamicClassname}` }),
6558
6553
  /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-amt ${L[l].dynamicClassname}` })
@@ -6723,7 +6718,7 @@ const tt = (e) => {
6723
6718
  var D, S;
6724
6719
  let I = !1;
6725
6720
  const j = g.distributedData;
6726
- return console.log({ distributedData: j, labels: h }), g.distributedData && (I = Object.keys(g.distributedData).length > 1), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6721
+ return g.distributedData && (I = Object.keys(g.distributedData).length > 1), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6727
6722
  ((D = j.GST) == null ? void 0 : D.itemList) && ie(j.GST, g, { labels: h, doMultipleTax: I, type: "GST" }),
6728
6723
  ((S = j.VAT) == null ? void 0 : S.itemList) && ie(j.VAT, g, { labels: h, doMultipleTax: I, type: "VAT" })
6729
6724
  ] });
@@ -6748,7 +6743,7 @@ const tt = (e) => {
6748
6743
  var $;
6749
6744
  return /* @__PURE__ */ s.jsxs("div", { children: [
6750
6745
  /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
6751
- /* @__PURE__ */ s.jsx("h4", { className: `items products-heading-name-kot ${L[l].dynamicClassname}`, children: Ge(k.serviceName) }),
6746
+ /* @__PURE__ */ s.jsx("h4", { className: `items products-heading-name-kot ${L[l].dynamicClassname}`, children: ze(k.serviceName) }),
6752
6747
  /* @__PURE__ */ s.jsx("h4", { className: `items products-heading-qty-kot ${L[l].dynamicClassname}`, children: k.qty })
6753
6748
  ] }),
6754
6749
  (($ = k.addons) == null ? void 0 : $.length) && k.addons.map((fe) => {
@@ -6857,7 +6852,7 @@ const tt = (e) => {
6857
6852
  ] })
6858
6853
  );
6859
6854
  })), j;
6860
- }, Ze = (g) => {
6855
+ }, Qe = (g) => {
6861
6856
  var I;
6862
6857
  const h = {
6863
6858
  company_mobile: "Mob",
@@ -6906,14 +6901,13 @@ const tt = (e) => {
6906
6901
  j = g.customBillLabels[C], h[j.defaultName] = j.displayName;
6907
6902
  }
6908
6903
  return h;
6909
- }, Je = (g, h, I, j) => {
6910
- var $, fe, Ae, Re, ke, Oe, De, wt, it, z, It, jt, Jt, Xt, Cs, es, ts, Os, Ms, As, Es, Rs, ks, Ls, kt, ss, lt, Lt, Pt, ns, Ps, rs, Fs, as, is, Ds, Ys, ls, os;
6911
- const C = Ze(r.customLabelsMap), D = fn(pd(r.paymentModes), "internalName"), S = (X) => {
6904
+ }, Ze = (g, h, I, j) => {
6905
+ var $, fe, Ae, Re, ke, Oe, De, wt, it, z, It, Nt, Jt, Xt, Cs, es, ts, Os, Ms, As, Es, Rs, ks, Ls, kt, ss, lt, Lt, Pt, ns, Ps, rs, Fs, as, is, Ds, Ys, ls, os;
6906
+ const C = Qe(r.customLabelsMap), D = fn(pd(r.paymentModes), "internalName"), S = (X) => {
6912
6907
  var v;
6913
6908
  return (v = D[X]) != null && v.displayName ? D[X].displayName.toUpperCase() : X;
6914
6909
  };
6915
6910
  if (g === "BILL") {
6916
- console.log("staticData ::", h);
6917
6911
  let X;
6918
6912
  if (l === "A4" || l === "A5") {
6919
6913
  let v = { ...h }, Q = 0, me = v.distributedData;
@@ -7134,7 +7128,7 @@ const tt = (e) => {
7134
7128
  ] }),
7135
7129
  /* @__PURE__ */ s.jsx("td", { className: "text-align-right", width: "50%", children: U(p.ORDER_DISCOUNT[0].discountAmt, o) })
7136
7130
  ] }) : "",
7137
- (jt = me.charges) != null && jt.length ? me.charges.map((N) => /* @__PURE__ */ s.jsxs("tr", { className: "subtotalTr", children: [
7131
+ (Nt = me.charges) != null && Nt.length ? me.charges.map((N) => /* @__PURE__ */ s.jsxs("tr", { className: "subtotalTr", children: [
7138
7132
  /* @__PURE__ */ s.jsx("td", { width: "50%", children: /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: C[`charges_${N.name.toLowerCase()}`] ?? N.name } }) }),
7139
7133
  /* @__PURE__ */ s.jsx("td", { className: "text-align-right", width: "50%", children: U(N.amt, o) })
7140
7134
  ] })) : "",
@@ -7292,7 +7286,7 @@ const tt = (e) => {
7292
7286
  ": ",
7293
7287
  /* @__PURE__ */ s.jsx("span", { children: h.customerInfo.custAddress })
7294
7288
  ] }) }),
7295
- Tt(h.appliedDiscounts ?? [], "COMPLIMENTARY", "discountType").discountType && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level2-bold", dangerouslySetInnerHTML: { __html: C.complementary_disc } }),
7289
+ St(h.appliedDiscounts ?? [], "COMPLIMENTARY", "discountType").discountType && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level2-bold", dangerouslySetInnerHTML: { __html: C.complementary_disc } }),
7296
7290
  h.orderId && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity", style: { flexShrink: 0 }, children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7297
7291
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: C.order_no } }),
7298
7292
  ": ",
@@ -7702,7 +7696,7 @@ const tt = (e) => {
7702
7696
  /* @__PURE__ */ s.jsx("h6", { className: "items products-heading-name-kot", style: { lineHeight: 1.2 }, children: Q.serviceName.toUpperCase() }),
7703
7697
  /* @__PURE__ */ s.jsx("h6", { className: "items products-heading-qty-kot", children: Q.qty })
7704
7698
  ] }),
7705
- ((me = Q.addons) == null ? void 0 : me.length) && Q.addons.map((p) => /* @__PURE__ */ s.jsx("h6", { className: "items products-heading-addon-kot", children: "- " + Ge(p.serviceName) })),
7699
+ ((me = Q.addons) == null ? void 0 : me.length) && Q.addons.map((p) => /* @__PURE__ */ s.jsx("h6", { className: "items products-heading-addon-kot", children: "- " + ze(p.serviceName) })),
7706
7700
  Q.instruction && a.itemInstructionOnBill && /* @__PURE__ */ s.jsx("h6", { className: "left-align-entity level2-bold", children: /* @__PURE__ */ s.jsx("h6", { className: "items products-heading-addon-kot", children: Q.instruction }) })
7707
7701
  ] });
7708
7702
  }),
@@ -8395,17 +8389,17 @@ const tt = (e) => {
8395
8389
  /* @__PURE__ */ s.jsxs("section", { className: `products-section ${Se}`, style: { paddingTop: "12px" }, children: [
8396
8390
  a.services && a.services.length && a.services.length > 0 && a.services.reverse().map((N) => (N.status === "CANCELLED" ? Q = /* @__PURE__ */ s.jsxs("strike", { children: [
8397
8391
  /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
8398
- /* @__PURE__ */ s.jsx("h2", { className: "items products-heading-name-kot ", children: Ge(N.serviceName) }),
8392
+ /* @__PURE__ */ s.jsx("h2", { className: "items products-heading-name-kot ", children: ze(N.serviceName) }),
8399
8393
  /* @__PURE__ */ s.jsx("h2", { className: "items products-heading-qty-kot ", children: N.qty })
8400
8394
  ] }),
8401
- N.addons && N.addons.length && N.addons.map((P) => /* @__PURE__ */ s.jsx("h2", { className: "items products-heading-addon-kot", children: "- " + Ge(P.serviceName) })),
8395
+ N.addons && N.addons.length && N.addons.map((P) => /* @__PURE__ */ s.jsx("h2", { className: "items products-heading-addon-kot", children: "- " + ze(P.serviceName) })),
8402
8396
  N.instruction && /* @__PURE__ */ s.jsx("h4", { className: "left-align-entity level2-bold", children: /* @__PURE__ */ s.jsx("h4", { className: "items products-heading-addon-kot", children: " " + N.instruction }) })
8403
8397
  ] }) : Q = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
8404
8398
  /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
8405
- /* @__PURE__ */ s.jsx("h2", { className: "items products-heading-name-kot ", children: Ge(N.serviceName) }),
8399
+ /* @__PURE__ */ s.jsx("h2", { className: "items products-heading-name-kot ", children: ze(N.serviceName) }),
8406
8400
  /* @__PURE__ */ s.jsx("h2", { className: "items products-heading-qty-kot ", children: N.qty })
8407
8401
  ] }),
8408
- N.addons && N.addons.length && N.addons.map((P) => /* @__PURE__ */ s.jsx("h2", { className: "items products-heading-addon-kot", children: "- " + Ge(P.serviceName) })),
8402
+ N.addons && N.addons.length && N.addons.map((P) => /* @__PURE__ */ s.jsx("h2", { className: "items products-heading-addon-kot", children: "- " + ze(P.serviceName) })),
8409
8403
  N.instruction && /* @__PURE__ */ s.jsx("h4", { className: "left-align-entity level2-bold", children: /* @__PURE__ */ s.jsx("h4", { className: "items products-heading-addon-kot", children: " " + N.instruction }) })
8410
8404
  ] }), /* @__PURE__ */ s.jsx("div", { children: Q }))),
8411
8405
  /* @__PURE__ */ s.jsx("hr", {})
@@ -8433,7 +8427,7 @@ const tt = (e) => {
8433
8427
  ref: n,
8434
8428
  className: "html-bill-print",
8435
8429
  style: { maxWidth: L[l].paperSize, zIndex: "-10", backgroundColor: "#fff" },
8436
- children: Je(y, a.obj, a.companyLogo, a.companyQrCode)
8430
+ children: Ze(y, a.obj, a.companyLogo, a.companyQrCode)
8437
8431
  }
8438
8432
  ) });
8439
8433
  }, Eh = async (e, t, n, r = {}) => new Promise(async (i, a) => {
@@ -8442,7 +8436,6 @@ const tt = (e) => {
8442
8436
  const { needPackagingSlip: l = !0 } = r;
8443
8437
  e.primaryWaiter && n && (e.primaryWaiter = ((d = n[e.primaryWaiter]) == null ? void 0 : d.name) || null);
8444
8438
  const { obj: c, printersMap: u } = Nd(e, t, r);
8445
- console.log({ obj: c, printersMap: u });
8446
8439
  let m = [], f = [];
8447
8440
  const x = Oa(c).flatMap(
8448
8441
  (b) => {