recaho-print-react 0.0.133 → 0.0.134

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.
@@ -20,11 +20,11 @@ function ri() {
20
20
  pr = 1;
21
21
  var e = we, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
22
22
  function u(f, o, l) {
23
- var c, d = {}, p = null, m = null;
23
+ var c, h = {}, p = null, m = null;
24
24
  l !== void 0 && (p = "" + l), o.key !== void 0 && (p = "" + o.key), o.ref !== void 0 && (m = o.ref);
25
- for (c in o) r.call(o, c) && !a.hasOwnProperty(c) && (d[c] = o[c]);
26
- if (f && f.defaultProps) for (c in o = f.defaultProps, o) d[c] === void 0 && (d[c] = o[c]);
27
- return { $$typeof: t, type: f, key: p, ref: m, props: d, _owner: i.current };
25
+ for (c in o) r.call(o, c) && !a.hasOwnProperty(c) && (h[c] = o[c]);
26
+ if (f && f.defaultProps) for (c in o = f.defaultProps, o) h[c] === void 0 && (h[c] = o[c]);
27
+ return { $$typeof: t, type: f, key: p, ref: m, props: h, _owner: i.current };
28
28
  }
29
29
  return cs.Fragment = n, cs.jsx = u, cs.jsxs = u, cs;
30
30
  }
@@ -41,7 +41,7 @@ var ds = {};
41
41
  var yr;
42
42
  function ai() {
43
43
  return yr || (yr = 1, process.env.NODE_ENV !== "production" && function() {
44
- var e = we, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), f = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), x = Symbol.iterator, v = "@@iterator";
44
+ var e = we, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), f = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), x = Symbol.iterator, v = "@@iterator";
45
45
  function _(y) {
46
46
  if (y === null || typeof y != "object")
47
47
  return null;
@@ -69,7 +69,7 @@ function ai() {
69
69
  var F = !1, Y = !1, L = !1, q = !1, se = !1, J;
70
70
  J = Symbol.for("react.module.reference");
71
71
  function le(y) {
72
- return !!(typeof y == "string" || typeof y == "function" || y === r || y === a || se || y === i || y === l || y === c || q || y === m || F || Y || L || typeof y == "object" && y !== null && (y.$$typeof === p || y.$$typeof === d || y.$$typeof === u || y.$$typeof === f || y.$$typeof === o || // This needs to include all possible module reference object
72
+ return !!(typeof y == "string" || typeof y == "function" || y === r || y === a || se || y === i || y === l || y === c || q || y === m || F || Y || L || typeof y == "object" && y !== null && (y.$$typeof === p || y.$$typeof === h || y.$$typeof === u || y.$$typeof === f || y.$$typeof === o || // This needs to include all possible module reference object
73
73
  // types supported by any Flight configuration anywhere since
74
74
  // we don't know which Flight build this will end up being used
75
75
  // with.
@@ -116,7 +116,7 @@ function ai() {
116
116
  return V(I._context) + ".Provider";
117
117
  case o:
118
118
  return be(y, y.render, "ForwardRef");
119
- case d:
119
+ case h:
120
120
  var b = y.displayName || null;
121
121
  return b !== null ? b : K(y.type) || "Memo";
122
122
  case p: {
@@ -192,18 +192,18 @@ function ai() {
192
192
  ue < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
193
193
  }
194
194
  }
195
- var g = E.ReactCurrentDispatcher, h;
195
+ var g = E.ReactCurrentDispatcher, d;
196
196
  function M(y, w, I) {
197
197
  {
198
- if (h === void 0)
198
+ if (d === void 0)
199
199
  try {
200
200
  throw Error();
201
201
  } catch (ne) {
202
202
  var b = ne.stack.trim().match(/\n( *(at )?)/);
203
- h = b && b[1] || "";
203
+ d = b && b[1] || "";
204
204
  }
205
205
  return `
206
- ` + h + y;
206
+ ` + d + y;
207
207
  }
208
208
  }
209
209
  var N = !1, O;
@@ -282,7 +282,7 @@ function ai() {
282
282
  var Pt = y ? y.displayName || y.name : "", It = Pt ? M(Pt) : "";
283
283
  return typeof y == "function" && O.set(y, It), It;
284
284
  }
285
- function k(y, w, I) {
285
+ function P(y, w, I) {
286
286
  return S(y, !1);
287
287
  }
288
288
  function B(y) {
@@ -305,8 +305,8 @@ function ai() {
305
305
  if (typeof y == "object")
306
306
  switch (y.$$typeof) {
307
307
  case o:
308
- return k(y.render);
309
- case d:
308
+ return P(y.render);
309
+ case h:
310
310
  return me(y.type, w, I);
311
311
  case p: {
312
312
  var b = y, ne = b._payload, he = b._init;
@@ -546,7 +546,7 @@ Check the top-level render call using <` + I + ">.");
546
546
  I = w.propTypes;
547
547
  else if (typeof w == "object" && (w.$$typeof === o || // Note: Memo only checks outer props here.
548
548
  // Inner props are checked in the reconciler.
549
- w.$$typeof === d))
549
+ w.$$typeof === h))
550
550
  I = w.propTypes;
551
551
  else
552
552
  return;
@@ -1488,8 +1488,8 @@ function jl(e) {
1488
1488
  return this._weekdaysParseExact ? (ce(this, "_weekdaysRegex") || Jn.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (ce(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = cl), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
1489
1489
  }
1490
1490
  function Jn() {
1491
- function e(c, d) {
1492
- return d.length - c.length;
1491
+ function e(c, h) {
1492
+ return h.length - c.length;
1493
1493
  }
1494
1494
  var t = [], n = [], r = [], i = [], a, u, f, o, l;
1495
1495
  for (a = 0; a < 7; a++)
@@ -3127,8 +3127,8 @@ function id(e, t, n, r, i) {
3127
3127
  return i.relativeTime(t || 1, !!n, e, r);
3128
3128
  }
3129
3129
  function ld(e, t, n, r) {
3130
- var i = qe(e).abs(), a = ct(i.as("s")), u = ct(i.as("m")), f = ct(i.as("h")), o = ct(i.as("d")), l = ct(i.as("M")), c = ct(i.as("w")), d = ct(i.as("y")), p = a <= n.ss && ["s", a] || a < n.s && ["ss", a] || u <= 1 && ["m"] || u < n.m && ["mm", u] || f <= 1 && ["h"] || f < n.h && ["hh", f] || o <= 1 && ["d"] || o < n.d && ["dd", o];
3131
- return n.w != null && (p = p || c <= 1 && ["w"] || c < n.w && ["ww", c]), p = p || l <= 1 && ["M"] || l < n.M && ["MM", l] || d <= 1 && ["y"] || ["yy", d], p[2] = t, p[3] = +e > 0, p[4] = r, id.apply(null, p);
3130
+ var i = qe(e).abs(), a = ct(i.as("s")), u = ct(i.as("m")), f = ct(i.as("h")), o = ct(i.as("d")), l = ct(i.as("M")), c = ct(i.as("w")), h = ct(i.as("y")), p = a <= n.ss && ["s", a] || a < n.s && ["ss", a] || u <= 1 && ["m"] || u < n.m && ["mm", u] || f <= 1 && ["h"] || f < n.h && ["hh", f] || o <= 1 && ["d"] || o < n.d && ["dd", o];
3131
+ return n.w != null && (p = p || c <= 1 && ["w"] || c < n.w && ["ww", c]), p = p || l <= 1 && ["M"] || l < n.M && ["MM", l] || h <= 1 && ["y"] || ["yy", h], p[2] = t, p[3] = +e > 0, p[4] = r, id.apply(null, p);
3132
3132
  }
3133
3133
  function od(e) {
3134
3134
  return e === void 0 ? ct : typeof e == "function" ? (ct = e, !0) : !1;
@@ -3149,8 +3149,8 @@ function Dt(e) {
3149
3149
  function xn() {
3150
3150
  if (!this.isValid())
3151
3151
  return this.localeData().invalidDate();
3152
- var e = Tn(this._milliseconds) / 1e3, t = Tn(this._days), n = Tn(this._months), r, i, a, u, f = this.asSeconds(), o, l, c, d;
3153
- return f ? (r = Ue(e / 60), i = Ue(r / 60), e %= 60, r %= 60, a = Ue(n / 12), n %= 12, u = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", o = f < 0 ? "-" : "", l = Dt(this._months) !== Dt(f) ? "-" : "", c = Dt(this._days) !== Dt(f) ? "-" : "", d = Dt(this._milliseconds) !== Dt(f) ? "-" : "", o + "P" + (a ? l + a + "Y" : "") + (n ? l + n + "M" : "") + (t ? c + t + "D" : "") + (i || r || e ? "T" : "") + (i ? d + i + "H" : "") + (r ? d + r + "M" : "") + (e ? d + u + "S" : "")) : "P0D";
3152
+ var e = Tn(this._milliseconds) / 1e3, t = Tn(this._days), n = Tn(this._months), r, i, a, u, f = this.asSeconds(), o, l, c, h;
3153
+ return f ? (r = Ue(e / 60), i = Ue(r / 60), e %= 60, r %= 60, a = Ue(n / 12), n %= 12, u = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", o = f < 0 ? "-" : "", l = Dt(this._months) !== Dt(f) ? "-" : "", c = Dt(this._days) !== Dt(f) ? "-" : "", h = Dt(this._milliseconds) !== Dt(f) ? "-" : "", o + "P" + (a ? l + a + "Y" : "") + (n ? l + n + "M" : "") + (t ? c + t + "D" : "") + (i || r || e ? "T" : "") + (i ? h + i + "H" : "") + (r ? h + r + "M" : "") + (e ? h + u + "S" : "")) : "P0D";
3154
3154
  }
3155
3155
  var ie = yn.prototype;
3156
3156
  ie.isValid = so;
@@ -3306,7 +3306,7 @@ function fd() {
3306
3306
  this._input = l, this._value = c;
3307
3307
  }
3308
3308
  return t = function(l) {
3309
- var c, d, p, m;
3309
+ var c, h, p, m;
3310
3310
  if (t.isNumeral(l))
3311
3311
  c = l.value();
3312
3312
  else if (l === 0 || typeof l > "u")
@@ -3319,9 +3319,9 @@ function fd() {
3319
3319
  else if (f.nullFormat && l === f.nullFormat || !l.replace(/[^0-9]+/g, "").length)
3320
3320
  c = null;
3321
3321
  else {
3322
- for (d in i)
3323
- if (m = typeof i[d].regexps.unformat == "function" ? i[d].regexps.unformat() : i[d].regexps.unformat, m && l.match(m)) {
3324
- p = i[d].unformat;
3322
+ for (h in i)
3323
+ if (m = typeof i[h].regexps.unformat == "function" ? i[h].regexps.unformat() : i[h].regexps.unformat, m && l.match(m)) {
3324
+ p = i[h].unformat;
3325
3325
  break;
3326
3326
  }
3327
3327
  p = p || t._.stringToNumber, c = p(l);
@@ -3333,9 +3333,9 @@ function fd() {
3333
3333
  return l instanceof o;
3334
3334
  }, t._ = n = {
3335
3335
  // formats numbers separators, decimals places, signs, abbreviations
3336
- numberToFormat: function(l, c, d) {
3336
+ numberToFormat: function(l, c, h) {
3337
3337
  var p = a[t.options.currentLocale], m = !1, x = !1, v = 0, _ = "", E = 1e12, T = 1e9, C = 1e6, F = 1e3, Y = "", L = !1, q, se, J, le, be, V, K;
3338
- if (l = l || 0, se = Math.abs(l), t._.includes(c, "(") ? (m = !0, c = c.replace(/[\(|\)]/g, "")) : (t._.includes(c, "+") || t._.includes(c, "-")) && (be = t._.includes(c, "+") ? c.indexOf("+") : l < 0 ? c.indexOf("-") : -1, c = c.replace(/[\+|\-]/g, "")), t._.includes(c, "a") && (q = c.match(/a(k|m|b|t)?/), q = q ? q[1] : !1, t._.includes(c, " a") && (_ = " "), c = c.replace(new RegExp(_ + "a[kmbt]?"), ""), se >= E && !q || q === "t" ? (_ += p.abbreviations.trillion, l = l / E) : se < E && se >= T && !q || q === "b" ? (_ += p.abbreviations.billion, l = l / T) : se < T && se >= C && !q || q === "m" ? (_ += p.abbreviations.million, l = l / C) : (se < C && se >= F && !q || q === "k") && (_ += p.abbreviations.thousand, l = l / F)), t._.includes(c, "[.]") && (x = !0, c = c.replace("[.]", ".")), J = l.toString().split(".")[0], le = c.split(".")[1], V = c.indexOf(","), v = (c.split(".")[0].split(",")[0].match(/0/g) || []).length, le ? (t._.includes(le, "[") ? (le = le.replace("]", ""), le = le.split("["), Y = t._.toFixed(l, le[0].length + le[1].length, d, le[1].length)) : Y = t._.toFixed(l, le.length, d), J = Y.split(".")[0], t._.includes(Y, ".") ? Y = p.delimiters.decimal + Y.split(".")[1] : Y = "", x && Number(Y.slice(1)) === 0 && (Y = "")) : J = t._.toFixed(l, 0, d), _ && !q && Number(J) >= 1e3 && _ !== p.abbreviations.trillion)
3338
+ if (l = l || 0, se = Math.abs(l), t._.includes(c, "(") ? (m = !0, c = c.replace(/[\(|\)]/g, "")) : (t._.includes(c, "+") || t._.includes(c, "-")) && (be = t._.includes(c, "+") ? c.indexOf("+") : l < 0 ? c.indexOf("-") : -1, c = c.replace(/[\+|\-]/g, "")), t._.includes(c, "a") && (q = c.match(/a(k|m|b|t)?/), q = q ? q[1] : !1, t._.includes(c, " a") && (_ = " "), c = c.replace(new RegExp(_ + "a[kmbt]?"), ""), se >= E && !q || q === "t" ? (_ += p.abbreviations.trillion, l = l / E) : se < E && se >= T && !q || q === "b" ? (_ += p.abbreviations.billion, l = l / T) : se < T && se >= C && !q || q === "m" ? (_ += p.abbreviations.million, l = l / C) : (se < C && se >= F && !q || q === "k") && (_ += p.abbreviations.thousand, l = l / F)), t._.includes(c, "[.]") && (x = !0, c = c.replace("[.]", ".")), J = l.toString().split(".")[0], le = c.split(".")[1], V = c.indexOf(","), v = (c.split(".")[0].split(",")[0].match(/0/g) || []).length, le ? (t._.includes(le, "[") ? (le = le.replace("]", ""), le = le.split("["), Y = t._.toFixed(l, le[0].length + le[1].length, h, le[1].length)) : Y = t._.toFixed(l, le.length, h), J = Y.split(".")[0], t._.includes(Y, ".") ? Y = p.delimiters.decimal + Y.split(".")[1] : Y = "", x && Number(Y.slice(1)) === 0 && (Y = "")) : J = t._.toFixed(l, 0, h), _ && !q && Number(J) >= 1e3 && _ !== p.abbreviations.trillion)
3339
3339
  switch (J = String(Number(J) / 1e3), _) {
3340
3340
  case p.abbreviations.thousand:
3341
3341
  _ = p.abbreviations.million;
@@ -3354,7 +3354,7 @@ function fd() {
3354
3354
  },
3355
3355
  // unformats numbers separators, decimals places, signs, abbreviations
3356
3356
  stringToNumber: function(l) {
3357
- var c = a[f.currentLocale], d = l, p = {
3357
+ var c = a[f.currentLocale], h = l, p = {
3358
3358
  thousand: 3,
3359
3359
  million: 6,
3360
3360
  billion: 9,
@@ -3367,7 +3367,7 @@ function fd() {
3367
3367
  else {
3368
3368
  x = 1, c.delimiters.decimal !== "." && (l = l.replace(/\./g, "").replace(c.delimiters.decimal, "."));
3369
3369
  for (m in p)
3370
- if (v = new RegExp("[^a-zA-Z]" + c.abbreviations[m] + "(?:\\)|(\\" + c.currency.symbol + ")?(?:\\))?)?$"), d.match(v)) {
3370
+ if (v = new RegExp("[^a-zA-Z]" + c.abbreviations[m] + "(?:\\)|(\\" + c.currency.symbol + ")?(?:\\))?)?$"), h.match(v)) {
3371
3371
  x *= Math.pow(10, p[m]);
3372
3372
  break;
3373
3373
  }
@@ -3381,26 +3381,26 @@ function fd() {
3381
3381
  includes: function(l, c) {
3382
3382
  return l.indexOf(c) !== -1;
3383
3383
  },
3384
- insert: function(l, c, d) {
3385
- return l.slice(0, d) + c + l.slice(d);
3384
+ insert: function(l, c, h) {
3385
+ return l.slice(0, h) + c + l.slice(h);
3386
3386
  },
3387
3387
  reduce: function(l, c) {
3388
3388
  if (this === null)
3389
3389
  throw new TypeError("Array.prototype.reduce called on null or undefined");
3390
3390
  if (typeof c != "function")
3391
3391
  throw new TypeError(c + " is not a function");
3392
- var d = Object(l), p = d.length >>> 0, m = 0, x;
3392
+ var h = Object(l), p = h.length >>> 0, m = 0, x;
3393
3393
  if (arguments.length === 3)
3394
3394
  x = arguments[2];
3395
3395
  else {
3396
- for (; m < p && !(m in d); )
3396
+ for (; m < p && !(m in h); )
3397
3397
  m++;
3398
3398
  if (m >= p)
3399
3399
  throw new TypeError("Reduce of empty array with no initial value");
3400
- x = d[m++];
3400
+ x = h[m++];
3401
3401
  }
3402
3402
  for (; m < p; m++)
3403
- m in d && (x = c(x, d[m], m, d));
3403
+ m in h && (x = c(x, h[m], m, h));
3404
3404
  return x;
3405
3405
  },
3406
3406
  /**
@@ -3419,8 +3419,8 @@ function fd() {
3419
3419
  */
3420
3420
  correctionFactor: function() {
3421
3421
  var l = Array.prototype.slice.call(arguments);
3422
- return l.reduce(function(c, d) {
3423
- var p = n.multiplier(d);
3422
+ return l.reduce(function(c, h) {
3423
+ var p = n.multiplier(h);
3424
3424
  return c > p ? c : p;
3425
3425
  }, 1);
3426
3426
  },
@@ -3430,9 +3430,9 @@ function fd() {
3430
3430
  * Fixes binary rounding issues (eg. (0.615).toFixed(2) === '0.61') that present
3431
3431
  * problems for accounting- and finance-related software.
3432
3432
  */
3433
- toFixed: function(l, c, d, p) {
3433
+ toFixed: function(l, c, h, p) {
3434
3434
  var m = l.toString().split("."), x = c - (p || 0), v, _, E, T;
3435
- return m.length === 2 ? v = Math.min(Math.max(m[1].length, x), c) : v = x, E = Math.pow(10, v), T = (d(l + "e+" + v) / E).toFixed(v), p > c - v && (_ = new RegExp("\\.?0{1," + (p - (c - v)) + "}$"), T = T.replace(_, "")), T;
3435
+ return m.length === 2 ? v = Math.min(Math.max(m[1].length, x), c) : v = x, E = Math.pow(10, v), T = (h(l + "e+" + v) / E).toFixed(v), p > c - v && (_ = new RegExp("\\.?0{1," + (p - (c - v)) + "}$"), T = T.replace(_, "")), T;
3436
3436
  }
3437
3437
  }, t.options = f, t.formats = i, t.locales = a, t.locale = function(l) {
3438
3438
  return l && (f.currentLocale = l.toLowerCase()), f.currentLocale;
@@ -3451,12 +3451,12 @@ function fd() {
3451
3451
  f.nullFormat = typeof l == "string" ? l : null;
3452
3452
  }, t.defaultFormat = function(l) {
3453
3453
  f.defaultFormat = typeof l == "string" ? l : "0.0";
3454
- }, t.register = function(l, c, d) {
3454
+ }, t.register = function(l, c, h) {
3455
3455
  if (c = c.toLowerCase(), this[l + "s"][c])
3456
3456
  throw new TypeError(c + " " + l + " already registered.");
3457
- return this[l + "s"][c] = d, d;
3457
+ return this[l + "s"][c] = h, h;
3458
3458
  }, t.validate = function(l, c) {
3459
- var d, p, m, x, v, _, E, T;
3459
+ var h, p, m, x, v, _, E, T;
3460
3460
  if (typeof l != "string" && (l += "", console.warn && console.warn("Numeral.js: Value is not string. It has been co-erced to: ", l)), l = l.trim(), l.match(/^\d+$/))
3461
3461
  return !0;
3462
3462
  if (l === "")
@@ -3466,16 +3466,16 @@ function fd() {
3466
3466
  } catch {
3467
3467
  E = t.localeData(t.locale());
3468
3468
  }
3469
- return m = E.currency.symbol, v = E.abbreviations, d = E.delimiters.decimal, E.delimiters.thousands === "." ? p = "\\." : p = E.delimiters.thousands, T = l.match(/^[^\d]+/), T !== null && (l = l.substr(1), T[0] !== m) || (T = l.match(/[^\d]+$/), T !== null && (l = l.slice(0, -1), T[0] !== v.thousand && T[0] !== v.million && T[0] !== v.billion && T[0] !== v.trillion)) ? !1 : (_ = new RegExp(p + "{2}"), l.match(/[^\d.,]/g) ? !1 : (x = l.split(d), x.length > 2 ? !1 : x.length < 2 ? !!x[0].match(/^\d+.*\d$/) && !x[0].match(_) : x[0].length === 1 ? !!x[0].match(/^\d+$/) && !x[0].match(_) && !!x[1].match(/^\d+$/) : !!x[0].match(/^\d+.*\d$/) && !x[0].match(_) && !!x[1].match(/^\d+$/)));
3469
+ return m = E.currency.symbol, v = E.abbreviations, h = E.delimiters.decimal, E.delimiters.thousands === "." ? p = "\\." : p = E.delimiters.thousands, T = l.match(/^[^\d]+/), T !== null && (l = l.substr(1), T[0] !== m) || (T = l.match(/[^\d]+$/), T !== null && (l = l.slice(0, -1), T[0] !== v.thousand && T[0] !== v.million && T[0] !== v.billion && T[0] !== v.trillion)) ? !1 : (_ = new RegExp(p + "{2}"), l.match(/[^\d.,]/g) ? !1 : (x = l.split(h), x.length > 2 ? !1 : x.length < 2 ? !!x[0].match(/^\d+.*\d$/) && !x[0].match(_) : x[0].length === 1 ? !!x[0].match(/^\d+$/) && !x[0].match(_) && !!x[1].match(/^\d+$/) : !!x[0].match(/^\d+.*\d$/) && !x[0].match(_) && !!x[1].match(/^\d+$/)));
3470
3470
  }, t.fn = o.prototype = {
3471
3471
  clone: function() {
3472
3472
  return t(this);
3473
3473
  },
3474
3474
  format: function(l, c) {
3475
- var d = this._value, p = l || f.defaultFormat, m, x, v;
3476
- if (c = c || Math.round, d === 0 && f.zeroFormat !== null)
3475
+ var h = this._value, p = l || f.defaultFormat, m, x, v;
3476
+ if (c = c || Math.round, h === 0 && f.zeroFormat !== null)
3477
3477
  x = f.zeroFormat;
3478
- else if (d === null && f.nullFormat !== null)
3478
+ else if (h === null && f.nullFormat !== null)
3479
3479
  x = f.nullFormat;
3480
3480
  else {
3481
3481
  for (m in i)
@@ -3483,7 +3483,7 @@ function fd() {
3483
3483
  v = i[m].format;
3484
3484
  break;
3485
3485
  }
3486
- v = v || t._.numberToFormat, x = v(d, p, c);
3486
+ v = v || t._.numberToFormat, x = v(h, p, c);
3487
3487
  }
3488
3488
  return x;
3489
3489
  },
@@ -3498,29 +3498,29 @@ function fd() {
3498
3498
  },
3499
3499
  add: function(l) {
3500
3500
  var c = n.correctionFactor.call(null, this._value, l);
3501
- function d(p, m, x, v) {
3501
+ function h(p, m, x, v) {
3502
3502
  return p + Math.round(c * m);
3503
3503
  }
3504
- return this._value = n.reduce([this._value, l], d, 0) / c, this;
3504
+ return this._value = n.reduce([this._value, l], h, 0) / c, this;
3505
3505
  },
3506
3506
  subtract: function(l) {
3507
3507
  var c = n.correctionFactor.call(null, this._value, l);
3508
- function d(p, m, x, v) {
3508
+ function h(p, m, x, v) {
3509
3509
  return p - Math.round(c * m);
3510
3510
  }
3511
- return this._value = n.reduce([l], d, Math.round(this._value * c)) / c, this;
3511
+ return this._value = n.reduce([l], h, Math.round(this._value * c)) / c, this;
3512
3512
  },
3513
3513
  multiply: function(l) {
3514
- function c(d, p, m, x) {
3515
- var v = n.correctionFactor(d, p);
3516
- return Math.round(d * v) * Math.round(p * v) / Math.round(v * v);
3514
+ function c(h, p, m, x) {
3515
+ var v = n.correctionFactor(h, p);
3516
+ return Math.round(h * v) * Math.round(p * v) / Math.round(v * v);
3517
3517
  }
3518
3518
  return this._value = n.reduce([this._value, l], c, 1), this;
3519
3519
  },
3520
3520
  divide: function(l) {
3521
- function c(d, p, m, x) {
3522
- var v = n.correctionFactor(d, p);
3523
- return Math.round(d * v) / Math.round(p * v);
3521
+ function c(h, p, m, x) {
3522
+ var v = n.correctionFactor(h, p);
3523
+ return Math.round(h * v) / Math.round(p * v);
3524
3524
  }
3525
3525
  return this._value = n.reduce([this._value, l], c), this;
3526
3526
  },
@@ -3551,9 +3551,9 @@ function fd() {
3551
3551
  format: /(BPS)/,
3552
3552
  unformat: /(BPS)/
3553
3553
  },
3554
- format: function(l, c, d) {
3554
+ format: function(l, c, h) {
3555
3555
  var p = t._.includes(c, " BPS") ? " " : "", m;
3556
- return l = l * 1e4, c = c.replace(/\s?BPS/, ""), m = t._.numberToFormat(l, c, d), t._.includes(m, ")") ? (m = m.split(""), m.splice(-1, 0, p + "BPS"), m = m.join("")) : m = m + p + "BPS", m;
3556
+ return l = l * 1e4, c = c.replace(/\s?BPS/, ""), m = t._.numberToFormat(l, c, h), t._.includes(m, ")") ? (m = m.split(""), m.splice(-1, 0, p + "BPS"), m = m.join("")) : m = m + p + "BPS", m;
3557
3557
  },
3558
3558
  unformat: function(l) {
3559
3559
  return +(t._.stringToNumber(l) * 1e-4).toFixed(15);
@@ -3566,9 +3566,9 @@ function fd() {
3566
3566
  }, c = {
3567
3567
  base: 1024,
3568
3568
  suffixes: ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"]
3569
- }, d = l.suffixes.concat(c.suffixes.filter(function(m) {
3569
+ }, h = l.suffixes.concat(c.suffixes.filter(function(m) {
3570
3570
  return l.suffixes.indexOf(m) < 0;
3571
- })), p = d.join("|");
3571
+ })), p = h.join("|");
3572
3572
  p = "(" + p.replace("B", "B(?!PS)") + ")", t.register("format", "bytes", {
3573
3573
  regexps: {
3574
3574
  format: /([0\s]i?b)/,
@@ -3606,12 +3606,12 @@ function fd() {
3606
3606
  regexps: {
3607
3607
  format: /(\$)/
3608
3608
  },
3609
- format: function(l, c, d) {
3609
+ format: function(l, c, h) {
3610
3610
  var p = t.locales[t.options.currentLocale], m = {
3611
3611
  before: c.match(/^([\+|\-|\(|\s|\$]*)/)[0],
3612
3612
  after: c.match(/([\+|\-|\)|\s|\$]*)$/)[0]
3613
3613
  }, x, v, _;
3614
- for (c = c.replace(/\s?\$\s?/, ""), x = t._.numberToFormat(l, c, d), l >= 0 ? (m.before = m.before.replace(/[\-\(]/, ""), m.after = m.after.replace(/[\-\)]/, "")) : l < 0 && !t._.includes(m.before, "-") && !t._.includes(m.before, "(") && (m.before = "-" + m.before), _ = 0; _ < m.before.length; _++)
3614
+ for (c = c.replace(/\s?\$\s?/, ""), x = t._.numberToFormat(l, c, h), l >= 0 ? (m.before = m.before.replace(/[\-\(]/, ""), m.after = m.after.replace(/[\-\)]/, "")) : l < 0 && !t._.includes(m.before, "-") && !t._.includes(m.before, "(") && (m.before = "-" + m.before), _ = 0; _ < m.before.length; _++)
3615
3615
  switch (v = m.before[_], v) {
3616
3616
  case "$":
3617
3617
  x = t._.insert(x, p.currency.symbol, _);
@@ -3638,18 +3638,18 @@ function fd() {
3638
3638
  format: /(e\+|e-)/,
3639
3639
  unformat: /(e\+|e-)/
3640
3640
  },
3641
- format: function(l, c, d) {
3641
+ format: function(l, c, h) {
3642
3642
  var p, m = typeof l == "number" && !t._.isNaN(l) ? l.toExponential() : "0e+0", x = m.split("e");
3643
- return c = c.replace(/e[\+|\-]{1}0/, ""), p = t._.numberToFormat(Number(x[0]), c, d), p + "e" + x[1];
3643
+ return c = c.replace(/e[\+|\-]{1}0/, ""), p = t._.numberToFormat(Number(x[0]), c, h), p + "e" + x[1];
3644
3644
  },
3645
3645
  unformat: function(l) {
3646
- var c = t._.includes(l, "e+") ? l.split("e+") : l.split("e-"), d = Number(c[0]), p = Number(c[1]);
3646
+ var c = t._.includes(l, "e+") ? l.split("e+") : l.split("e-"), h = Number(c[0]), p = Number(c[1]);
3647
3647
  p = t._.includes(l, "e-") ? p *= -1 : p;
3648
3648
  function m(x, v, _, E) {
3649
3649
  var T = t._.correctionFactor(x, v), C = x * T * (v * T) / (T * T);
3650
3650
  return C;
3651
3651
  }
3652
- return t._.reduce([d, Math.pow(10, p)], m, 1);
3652
+ return t._.reduce([h, Math.pow(10, p)], m, 1);
3653
3653
  }
3654
3654
  });
3655
3655
  }(), function() {
@@ -3657,9 +3657,9 @@ function fd() {
3657
3657
  regexps: {
3658
3658
  format: /(o)/
3659
3659
  },
3660
- format: function(l, c, d) {
3660
+ format: function(l, c, h) {
3661
3661
  var p = t.locales[t.options.currentLocale], m, x = t._.includes(c, " o") ? " " : "";
3662
- return c = c.replace(/\s?o/, ""), x += p.ordinal(l), m = t._.numberToFormat(l, c, d), m + x;
3662
+ return c = c.replace(/\s?o/, ""), x += p.ordinal(l), m = t._.numberToFormat(l, c, h), m + x;
3663
3663
  }
3664
3664
  });
3665
3665
  }(), function() {
@@ -3668,9 +3668,9 @@ function fd() {
3668
3668
  format: /(%)/,
3669
3669
  unformat: /(%)/
3670
3670
  },
3671
- format: function(l, c, d) {
3671
+ format: function(l, c, h) {
3672
3672
  var p = t._.includes(c, " %") ? " " : "", m;
3673
- return t.options.scalePercentBy100 && (l = l * 100), c = c.replace(/\s?\%/, ""), m = t._.numberToFormat(l, c, d), t._.includes(m, ")") ? (m = m.split(""), m.splice(-1, 0, p + "%"), m = m.join("")) : m = m + p + "%", m;
3673
+ return t.options.scalePercentBy100 && (l = l * 100), c = c.replace(/\s?\%/, ""), m = t._.numberToFormat(l, c, h), t._.includes(m, ")") ? (m = m.split(""), m.splice(-1, 0, p + "%"), m = m.join("")) : m = m + p + "%", m;
3674
3674
  },
3675
3675
  unformat: function(l) {
3676
3676
  var c = t._.stringToNumber(l);
@@ -3683,13 +3683,13 @@ function fd() {
3683
3683
  format: /(:)/,
3684
3684
  unformat: /(:)/
3685
3685
  },
3686
- format: function(l, c, d) {
3686
+ format: function(l, c, h) {
3687
3687
  var p = Math.floor(l / 60 / 60), m = Math.floor((l - p * 60 * 60) / 60), x = Math.round(l - p * 60 * 60 - m * 60);
3688
3688
  return p + ":" + (m < 10 ? "0" + m : m) + ":" + (x < 10 ? "0" + x : x);
3689
3689
  },
3690
3690
  unformat: function(l) {
3691
- var c = l.split(":"), d = 0;
3692
- return c.length === 3 ? (d = d + Number(c[0]) * 60 * 60, d = d + Number(c[1]) * 60, d = d + Number(c[2])) : c.length === 2 && (d = d + Number(c[0]) * 60, d = d + Number(c[1])), Number(d);
3691
+ var c = l.split(":"), h = 0;
3692
+ return c.length === 3 ? (h = h + Number(c[0]) * 60 * 60, h = h + Number(c[1]) * 60, h = h + Number(c[2])) : c.length === 2 && (h = h + Number(c[0]) * 60, h = h + Number(c[1])), Number(h);
3693
3693
  }
3694
3694
  });
3695
3695
  }(), t;
@@ -4010,7 +4010,7 @@ const Gs = (e, t, n) => {
4010
4010
  }
4011
4011
  return t;
4012
4012
  }, On = (e, t) => {
4013
- var c, d, p, m;
4013
+ var c, h, p, m;
4014
4014
  let n, r, i, a, u;
4015
4015
  const f = {}, { itemInstructionOnBill: o, printZeroPriceAddons: l } = t;
4016
4016
  for (let x = 0; x < e.length; x++)
@@ -4021,7 +4021,7 @@ const Gs = (e, t, n) => {
4021
4021
  else
4022
4022
  i = n.addons;
4023
4023
  if (o ? r = `${n.serviceId}::${n.serviceRate}::${n.instruction}::${n.taxType ?? "GST"}` : r = `${n.serviceId}::${n.serviceRate}::${n.taxType ?? "GST"}`, f[r]) {
4024
- if (f[r].qty += n.qty, f[r].sub_total += n.sub_total, (d = f[r].addons) != null && d.length && ((p = n.addons) != null && p.length)) {
4024
+ if (f[r].qty += n.qty, f[r].sub_total += n.sub_total, (h = f[r].addons) != null && h.length && ((p = n.addons) != null && p.length)) {
4025
4025
  const v = Cs(n.addons, "serviceId"), _ = [];
4026
4026
  let E;
4027
4027
  for (let T = 0; T < f[r].addons.length; T++)
@@ -4053,10 +4053,10 @@ const Gs = (e, t, n) => {
4053
4053
  if (t.type == "PACKAGING_SLIP") {
4054
4054
  let l = Gs((u = t.siteSetting) == null ? void 0 : u.packagingSlipPrinters, i, "value");
4055
4055
  if (_s == "Android OS") {
4056
- let c = l && l.length > 0 ? l.findIndex((d) => d.value == e.value) : -1;
4056
+ let c = l && l.length > 0 ? l.findIndex((h) => h.value == e.value) : -1;
4057
4057
  return c != -1 ? [l[c]] : null;
4058
4058
  } else {
4059
- let c = l && l.length > 0 ? l.findIndex((d) => d.value == e) : -1;
4059
+ let c = l && l.length > 0 ? l.findIndex((h) => h.value == e) : -1;
4060
4060
  return c != -1 ? [l[c]] : null;
4061
4061
  }
4062
4062
  } else {
@@ -4067,10 +4067,10 @@ const Gs = (e, t, n) => {
4067
4067
  if (l === !0)
4068
4068
  return l;
4069
4069
  if (_s == "Android OS") {
4070
- let c = l && l.length > 0 ? l.findIndex((d) => d.value == (e == null ? void 0 : e.value)) : -1;
4070
+ let c = l && l.length > 0 ? l.findIndex((h) => h.value == (e == null ? void 0 : e.value)) : -1;
4071
4071
  return c != -1 ? [l[c]] : null;
4072
4072
  } else {
4073
- let c = l && l.length > 0 ? l.findIndex((d) => d.value == e) : -1;
4073
+ let c = l && l.length > 0 ? l.findIndex((h) => h.value == e) : -1;
4074
4074
  return c != -1 ? [l[c]] : null;
4075
4075
  }
4076
4076
  }
@@ -4079,7 +4079,7 @@ const Gs = (e, t, n) => {
4079
4079
  var E;
4080
4080
  const { usersObj: r, stationList: i } = n;
4081
4081
  let a = {}, u, f;
4082
- const { cancelledKOT: o, onlyCancelledItems: l, kotStatus: c = "KOT_GENERATED" } = n, d = bt(e.orderTags, "EXPRESS", "tag_type").content ? "INSTANT - URGENT ORDER" : null;
4082
+ const { cancelledKOT: o, onlyCancelledItems: l, kotStatus: c = "KOT_GENERATED" } = n, h = bt(e.orderTags, "EXPRESS", "tag_type").content ? "INSTANT - URGENT ORDER" : null;
4083
4083
  if ((E = e.customFeilds) != null && E.length) {
4084
4084
  let T = bt(e.customFeilds, "INSTRUCTION", "customType");
4085
4085
  T != null && T.customValue && (f = [
@@ -4095,7 +4095,7 @@ const Gs = (e, t, n) => {
4095
4095
  let Y = C.station ? C.station.split("::") : "", L = Y && Y.length > 1 ? Y[1] : Y[0], q = e.tableNo ? e.tableNo.split("::") : null, se = q && q.length > 0 ? q[0] : e.orderFrom, J = e.tableName ? e.tableName : e.tableNo ? se : e.orderFrom, le;
4096
4096
  (V = r == null ? void 0 : r[T.createdBy]) != null && V.name && (le = r[T.createdBy].name);
4097
4097
  let be = !1;
4098
- (o || L && C.status == c) && (be = !0), be && Yn(L, i) && (a[L] || (a[L] = {}, a[L].station = L, a[L].services = [], a[L].tableName = J, a[L].customerName = e.name == t.companyName ? null : e.name, a[L].time = R().format("DD-MM-YYYY hh:mm a"), a[L].type = e.orderFrom, a[L].subOrderFrom = e.subOrderFrom, a[L].orderId = e.externalOrderId || e.offlineOrderId ? e.orderId : T.subOrderId, a[L].orderId = /* @__PURE__ */ new Set([a[L].orderId]), a[L].instruction = e.instruction, a[L].orderSource = e.orderSource, a[L].deliveryTimestamp = e.deliveryTimestamp ? R.unix(e.deliveryTimestamp).format("DD-MM-YYYY hh:mm A") : null, a[L].aggregatorOrderId = e.externalOrderId, a[L].otp = e.otp, a[L].totalQty = 0, a[L].tokenId = e.tokenId, a[L].kotId = C.kotId ? /* @__PURE__ */ new Set([C.kotId]) : null, a[L].waiterName = e.waiterName, a[L].duplicate = o, a[L].createdBy = le, a[L].zomatoInstant = d, f && (a[L].customFields = f), l && (a[L].onlyCancelledItems = l), e.preparationTime && (a[L].prepareBy = R().add(e.preparationTime, "minutes").format("DD-MM-YYYY hh:mm A"))), a[L] ? (a[L].services.push({
4098
+ (o || L && C.status == c) && (be = !0), be && Yn(L, i) && (a[L] || (a[L] = {}, a[L].station = L, a[L].services = [], a[L].tableName = J, a[L].customerName = e.name == t.companyName ? null : e.name, a[L].time = R().format("DD-MM-YYYY hh:mm a"), a[L].type = e.orderFrom, a[L].subOrderFrom = e.subOrderFrom, a[L].orderId = e.externalOrderId || e.offlineOrderId ? e.orderId : T.subOrderId, a[L].orderId = /* @__PURE__ */ new Set([a[L].orderId]), a[L].instruction = e.instruction, a[L].orderSource = e.orderSource, a[L].deliveryTimestamp = e.deliveryTimestamp ? R.unix(e.deliveryTimestamp).format("DD-MM-YYYY hh:mm A") : null, a[L].aggregatorOrderId = e.externalOrderId, a[L].otp = e.otp, a[L].totalQty = 0, a[L].tokenId = e.tokenId, a[L].kotId = C.kotId ? /* @__PURE__ */ new Set([C.kotId]) : null, a[L].waiterName = e.waiterName, a[L].duplicate = o, a[L].createdBy = le, a[L].zomatoInstant = h, f && (a[L].customFields = f), l && (a[L].onlyCancelledItems = l), e.preparationTime && (a[L].prepareBy = R().add(e.preparationTime, "minutes").format("DD-MM-YYYY hh:mm A"))), a[L] ? (a[L].services.push({
4099
4099
  serviceName: C.serviceName,
4100
4100
  qty: C.qty,
4101
4101
  instruction: C.isUrgent && C.instruction ? `(URGENT -${C.instruction})` : C.instruction ? `(${C.instruction})` : C.isUrgent ? "(URGENT)" : "",
@@ -4147,7 +4147,7 @@ const Gs = (e, t, n) => {
4147
4147
  const { kotStatus: r = "KOT_GENERATED" } = n;
4148
4148
  try {
4149
4149
  let u = "2INCH", f, o = [], l, c;
4150
- const d = bt(e.orderTags, "EXPRESS", "tag_type").content ? "INSTANT - URGENT ORDER" : null;
4150
+ const h = bt(e.orderTags, "EXPRESS", "tag_type").content ? "INSTANT - URGENT ORDER" : null;
4151
4151
  if ((i = e.customFeilds) != null && i.length) {
4152
4152
  let p = bt(e.customFeilds, "INSTRUCTION", "customType");
4153
4153
  p != null && p.customValue && (c = [
@@ -4181,7 +4181,7 @@ const Gs = (e, t, n) => {
4181
4181
  aggregatorOrderId: e.externalOrderId,
4182
4182
  orderSource: e.orderSource,
4183
4183
  otp: e.otp,
4184
- zomatoInstant: d
4184
+ zomatoInstant: h
4185
4185
  }, C = {}, F = !1, Y, L = 0;
4186
4186
  for (e.preparationTime && (T.prepareBy = R().add(e.preparationTime, "minutes").format("DD-MM-YYYY hh:mm A")), c && (T.customFields = c), v = 0; v < e.orderList.length; v++)
4187
4187
  for (m = e.orderList[v], _ = 0; _ < m.services.length; _++)
@@ -4206,11 +4206,11 @@ const Gs = (e, t, n) => {
4206
4206
  o.services.forEach((l) => {
4207
4207
  var c;
4208
4208
  if ((l.status === "KOT_GENERATED" || l.status === "IN_PROCESS") && l.station) {
4209
- let d = (c = l.station.split("::")) == null ? void 0 : c[1];
4210
- d && Yn(d, n.stationList) && (r[d] ? r[d].activeKots[l.kotId] = l.kotId : r[d] = {
4209
+ let h = (c = l.station.split("::")) == null ? void 0 : c[1];
4210
+ h && Yn(h, n.stationList) && (r[h] ? r[h].activeKots[l.kotId] = l.kotId : r[h] = {
4211
4211
  from: [n.from],
4212
4212
  to: [n.to],
4213
- station: d,
4213
+ station: h,
4214
4214
  activeKots: { [l.kotId]: l.kotId },
4215
4215
  type: "UPDATE_TABLE",
4216
4216
  action: "SWITCH_TABLE",
@@ -4220,10 +4220,10 @@ const Gs = (e, t, n) => {
4220
4220
  });
4221
4221
  });
4222
4222
  else {
4223
- let o, l, c, d, p = {}, m = [];
4223
+ let o, l, c, h, p = {}, m = [];
4224
4224
  for (l = 0; l < n.sources.length; l++)
4225
4225
  for (o = n.sources[l], m.push(o.tableNo), c = 0; c < o.ids.length; c++)
4226
- d = o.ids[c], p[d] = d;
4226
+ h = o.ids[c], p[h] = h;
4227
4227
  for (let x = 0; x < n.orderData.length; x++)
4228
4228
  o = n.orderData[x], p[o.id] && o.orderList.forEach((v) => {
4229
4229
  v.services.forEach((_) => {
@@ -4271,7 +4271,7 @@ const Gs = (e, t, n) => {
4271
4271
  const { AGGREGATOR_PAYMENT: Y, ...L } = i;
4272
4272
  i = { ...L, swiggy: r.swiggy_collection ?? 0, zomato: r.zomato_collection ?? 0 };
4273
4273
  }
4274
- let d = c && (n == null ? void 0 : n.length) && n.some((Y) => Y.slugName === "online-menu") && e.isAggregatorEnabled == !0, p = d ? r.aggregator_collection : void 0, m = d ? r.zomato_collection : void 0, x = d ? r.swiggy_collection : void 0, v = c ? Sd(r.avgTableTime) : void 0;
4274
+ let h = c && (n == null ? void 0 : n.length) && n.some((Y) => Y.slugName === "online-menu") && e.isAggregatorEnabled == !0, p = h ? r.aggregator_collection : void 0, m = h ? r.zomato_collection : void 0, x = h ? r.swiggy_collection : void 0, v = c ? Sd(r.avgTableTime) : void 0;
4275
4275
  l = {};
4276
4276
  let _ = 0;
4277
4277
  if (r != null && r.menuWiseSales) {
@@ -4328,11 +4328,11 @@ const Gs = (e, t, n) => {
4328
4328
  }
4329
4329
  };
4330
4330
  }, Ad = (e, t, n = {}) => new Promise(async (r, i) => {
4331
- var d, p, m;
4331
+ var h, p, m;
4332
4332
  const { invoiceFormat: a, userData: u } = n;
4333
4333
  let f, o, l = [], c;
4334
4334
  try {
4335
- if ((d = e.appliedDiscounts) != null && d.length) {
4335
+ if ((h = e.appliedDiscounts) != null && h.length) {
4336
4336
  c = 0;
4337
4337
  for (let K = 0; K < e.appliedDiscounts.length; K++)
4338
4338
  f = e.appliedDiscounts[K], c += f.discountAmt;
@@ -4418,62 +4418,62 @@ const Gs = (e, t, n) => {
4418
4418
  }
4419
4419
  }), Ed = async (e) => {
4420
4420
  let t = [];
4421
- for (let d = 0; d < e.length; d++)
4422
- for (let p = 0; p < e[d].orderList.length; p++)
4423
- t.push(e[d].orderList[p]);
4421
+ for (let h = 0; h < e.length; h++)
4422
+ for (let p = 0; p < e[h].orderList.length; p++)
4423
+ t.push(e[h].orderList[p]);
4424
4424
  let n = [];
4425
4425
  if (t.length > 0)
4426
- for (let d = 0; d < t.length; d++)
4427
- for (let p = 0; p < t[d].services.length; p++)
4428
- t[d].services[p].status != "CANCELLED" && t[d].services[p].status != "RETURNED" && t[d].services[p].status != "SHIFTED" && n.push(t[d].services[p]);
4426
+ for (let h = 0; h < t.length; h++)
4427
+ for (let p = 0; p < t[h].services.length; p++)
4428
+ t[h].services[p].status != "CANCELLED" && t[h].services[p].status != "RETURNED" && t[h].services[p].status != "SHIFTED" && n.push(t[h].services[p]);
4429
4429
  let r = {}, i = [];
4430
- for (let d = 0; d < n.length; d++)
4431
- if (n[d].addons && n[d].addons.length > 0)
4432
- for (let p = 0; p < n[d].addons.length; p++) {
4433
- let m = { ...n[d].addons[p] };
4434
- m.qty = n[d].qty, i.push(m);
4430
+ for (let h = 0; h < n.length; h++)
4431
+ if (n[h].addons && n[h].addons.length > 0)
4432
+ for (let p = 0; p < n[h].addons.length; p++) {
4433
+ let m = { ...n[h].addons[p] };
4434
+ m.qty = n[h].qty, i.push(m);
4435
4435
  }
4436
- n.forEach((d) => {
4437
- let { attachedCat: p, serviceId: m } = d;
4436
+ n.forEach((h) => {
4437
+ let { attachedCat: p, serviceId: m } = h;
4438
4438
  r[p] || (r[p] = []);
4439
4439
  let x = r[p].findIndex((v) => v.serviceId === m);
4440
- x !== -1 ? r[p][x].qty = r[p][x].qty + d.qty : r[p].push({
4441
- serviceName: d.serviceName,
4442
- qty: d.qty,
4443
- status: d.status,
4444
- serviceId: d.serviceId,
4445
- attachedCat: d.attachedCat,
4446
- station: d.station
4440
+ x !== -1 ? r[p][x].qty = r[p][x].qty + h.qty : r[p].push({
4441
+ serviceName: h.serviceName,
4442
+ qty: h.qty,
4443
+ status: h.status,
4444
+ serviceId: h.serviceId,
4445
+ attachedCat: h.attachedCat,
4446
+ station: h.station
4447
4447
  });
4448
4448
  });
4449
4449
  const a = Object.keys(r).sort(), u = {};
4450
- a.forEach((d) => {
4451
- u[d] = r[d];
4450
+ a.forEach((h) => {
4451
+ u[h] = r[h];
4452
4452
  });
4453
- for (let d in u)
4454
- u[d].sort((p, m) => p.serviceName.localeCompare(m.serviceName));
4453
+ for (let h in u)
4454
+ u[h].sort((p, m) => p.serviceName.localeCompare(m.serviceName));
4455
4455
  let f = {
4456
4456
  Category: u
4457
4457
  }, o = {};
4458
- i.forEach((d) => {
4459
- let { attachedAddonCat: p, serviceId: m } = d;
4458
+ i.forEach((h) => {
4459
+ let { attachedAddonCat: p, serviceId: m } = h;
4460
4460
  o[p] || (o[p] = []);
4461
4461
  let x = o[p].findIndex((v) => v.serviceId === m);
4462
- x !== -1 ? o[p][x].qty = o[p][x].qty + d.qty : o[p].push({
4463
- serviceName: d.serviceName,
4464
- qty: d.qty,
4465
- status: d.status,
4466
- serviceId: d.serviceId,
4467
- attachedCat: d.attachedAddonCat,
4468
- station: d.station
4462
+ x !== -1 ? o[p][x].qty = o[p][x].qty + h.qty : o[p].push({
4463
+ serviceName: h.serviceName,
4464
+ qty: h.qty,
4465
+ status: h.status,
4466
+ serviceId: h.serviceId,
4467
+ attachedCat: h.attachedAddonCat,
4468
+ station: h.station
4469
4469
  });
4470
4470
  });
4471
4471
  const l = Object.keys(o).sort(), c = {};
4472
- l.forEach((d) => {
4473
- c[d] = o[d];
4472
+ l.forEach((h) => {
4473
+ c[h] = o[h];
4474
4474
  });
4475
- for (let d in c)
4476
- c[d].sort((p, m) => p.serviceName.localeCompare(m.serviceName));
4475
+ for (let h in c)
4476
+ c[h].sort((p, m) => p.serviceName.localeCompare(m.serviceName));
4477
4477
  return f.Addon = c, f;
4478
4478
  }, Ir = {
4479
4479
  "Andaman and Nicobar Islands": "UTGST",
@@ -4487,7 +4487,7 @@ const Gs = (e, t, n) => {
4487
4487
  let t = e && e.footerAddress && e.footerAddress.state && e.footerAddress.state ? e.footerAddress.state : null;
4488
4488
  return Ir[t] ? Ir[t] : "SGST";
4489
4489
  }, Ma = (e, t, n = {}) => new Promise(async (r, i) => {
4490
- var u, f, o, l, c, d, p;
4490
+ var u, f, o, l, c, h, p;
4491
4491
  try {
4492
4492
  const { invoiceFormat: m, custName: x, custMobile: v, custAddress: _, userData: E = {} } = n, { itemList: T } = e;
4493
4493
  let C = E == null ? void 0 : E.userRole;
@@ -4521,7 +4521,7 @@ const Gs = (e, t, n) => {
4521
4521
  balanceAmt: e.custoutStandingData.balanceAmt
4522
4522
  });
4523
4523
  let Ke = [];
4524
- if ((d = e.customFeilds) != null && d.length) {
4524
+ if ((h = e.customFeilds) != null && h.length) {
4525
4525
  let Z;
4526
4526
  for (let xe = 0; xe < e.customFeilds.length; xe++)
4527
4527
  Z = e.customFeilds[xe], Z != null && Z.customValue && ((p = Z.availability) != null && p.includes("BILL")) && Ke.push({
@@ -4536,10 +4536,10 @@ 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 Z, xe, at = 0, g = 0, h = 0, M = 0, N = 0, O = 0, D = 0, S = 0, k = [], B = [], me = 0, Oe;
4539
+ let Z, xe, at = 0, g = 0, d = 0, M = 0, N = 0, O = 0, D = 0, S = 0, P = [], B = [], me = 0, Oe;
4540
4540
  if (F === "A4" || F === "A5") {
4541
4541
  for (xe = 0; xe < T.length; xe++)
4542
- Z = T[xe], g += Z.sub_total, h += Z.afterdiscAmt, M += Z.afterdiscAmt + (Z.total_charges ?? 0), at += Z.afterdiscAmt + (Z.total_charges ?? 0), me += Z.qty;
4542
+ Z = T[xe], g += Z.sub_total, d += Z.afterdiscAmt, M += Z.afterdiscAmt + (Z.total_charges ?? 0), at += Z.afterdiscAmt + (Z.total_charges ?? 0), me += Z.qty;
4543
4543
  let De = wn(T, "discountName", { separateItemsDisc: !0 });
4544
4544
  const Ae = Cn(De);
4545
4545
  let { obj: Ie, sum: ke } = Vs(T);
@@ -4552,7 +4552,7 @@ const Gs = (e, t, n) => {
4552
4552
  charges: In(T, "name"),
4553
4553
  taxation: Ie,
4554
4554
  subTotal: _e(g),
4555
- afterDisc: _e(h),
4555
+ afterDisc: _e(d),
4556
4556
  afterCharges: _e(M),
4557
4557
  total: _e(at + ke),
4558
4558
  qty: me
@@ -4560,21 +4560,21 @@ const Gs = (e, t, n) => {
4560
4560
  } else {
4561
4561
  let { obj: De } = Vs(T);
4562
4562
  for (Q.taxation = De, xe = 0; xe < T.length; xe++)
4563
- Z = T[xe], Z.taxType === "VAT" ? (B.push(Z), S += Z.sub_total, O += Z.afterdiscAmt, N += Z.afterdiscAmt + (Z.total_charges ?? 0), D += Z.afterdiscAmt + (Z.total_charges ?? 0)) : (k.push(Z), g += Z.sub_total, h += Z.afterdiscAmt, M += Z.afterdiscAmt + (Z.total_charges ?? 0), at += Z.afterdiscAmt + (Z.total_charges ?? 0));
4564
- if (k.length) {
4565
- let Ae = wn(k, "discountName", { separateItemsDisc: !0 });
4563
+ Z = T[xe], Z.taxType === "VAT" ? (B.push(Z), S += Z.sub_total, O += Z.afterdiscAmt, N += Z.afterdiscAmt + (Z.total_charges ?? 0), D += Z.afterdiscAmt + (Z.total_charges ?? 0)) : (P.push(Z), g += Z.sub_total, d += Z.afterdiscAmt, M += Z.afterdiscAmt + (Z.total_charges ?? 0), at += Z.afterdiscAmt + (Z.total_charges ?? 0));
4564
+ if (P.length) {
4565
+ let Ae = wn(P, "discountName", { separateItemsDisc: !0 });
4566
4566
  const Ie = Cn(Ae);
4567
- let { obj: ke, sum: Be } = Vs(k);
4567
+ let { obj: ke, sum: Be } = Vs(P);
4568
4568
  Ze.GST = {
4569
- itemList: On(k, {
4569
+ itemList: On(P, {
4570
4570
  itemInstructionOnBill: m.itemInstructionOnBill,
4571
4571
  printZeroPriceAddons: m.printZeroPriceAddons
4572
4572
  }),
4573
4573
  discounts: Ie,
4574
- charges: In(k, "name"),
4574
+ charges: In(P, "name"),
4575
4575
  taxation: ke,
4576
4576
  subTotal: _e(g),
4577
- afterDisc: _e(h),
4577
+ afterDisc: _e(d),
4578
4578
  afterCharges: _e(M),
4579
4579
  total: _e(at + Be)
4580
4580
  };
@@ -4608,7 +4608,7 @@ const Gs = (e, t, n) => {
4608
4608
  }), Rd = (e, t, n = {}) => new Promise(async (r, i) => {
4609
4609
  var u, f, o, l, c;
4610
4610
  try {
4611
- const { invoiceFormat: d, custName: p, custMobile: m, custAddress: x, orderData: v } = n;
4611
+ const { invoiceFormat: h, custName: p, custMobile: m, custAddress: x, orderData: v } = n;
4612
4612
  let _ = t.footerAddress.addressLineOne ? t.footerAddress.addressLineOne : "", E = t.footerAddress.addressLineTwo ? t.footerAddress.addressLineTwo : "", T = t.footerAddress.city ? t.footerAddress.city : "", C = t.footerAddress.zip ? t.footerAddress.zip : "", F = (_ != "" ? _ + "," : "") + (E != "" ? E + "," : "") + (T != "" ? T + "," : "") + (C != "" ? C + "," : ""), Y = t.gstNo, L = {
4613
4613
  companyName: t.companyName,
4614
4614
  companyAddress: F,
@@ -4620,14 +4620,14 @@ const Gs = (e, t, n) => {
4620
4620
  orderNumber: v && v.orderId ? v.orderId : null,
4621
4621
  timestamp: v.timestamp
4622
4622
  }, J = {
4623
- custName: d && d.custName ? p == t.companyName ? null : p : null,
4623
+ custName: h && h.custName ? p == t.companyName ? null : p : null,
4624
4624
  // "custName": null,
4625
- custAddress: d && d.custAddress && x || null,
4626
- custContact: d && d.custMobile ? m : null,
4625
+ custAddress: h && h.custAddress && x || null,
4626
+ custContact: h && h.custMobile ? m : null,
4627
4627
  custEmail: "ajaybaglane7@gmail.com"
4628
4628
  }, le = Nn(t.curr), be = "", V = { ...e, companyInfo: L, orderInfo: se, customerInfo: J, gst: Y, curr: le };
4629
- if (d) {
4630
- if (V.domain = d.siteURL, V.paymentMethods = d.paymentMode ? V.paymentMethods : null, V.companyInfo.companyName = d.companyName, V.companyInfo.companyEmail = d.email, V.companyInfo.companyAddress = d.address, V.companyInfo.companyContact = d.mobile, V.customerInfo.custName = d.custName ? p : null, V.tokenId = d.token ? V.tokenId : null, d.isPayQR && d.upiId && d.upiId !== "" && (V.upiId = d.upiId), V.gstNo = d.gst ? V.gst : null, V.footerMessage = d.footerMessage, V.orderFrom = (u = v.subOrderFrom) == null ? void 0 : u.toUpperCase(), V.fssai = t.fssai, V.vatNo = t.vatNo, V.taxLabel = Oa(t), V.printOperatorInfo = d.printOperatorInfo === null || d.printOperatorInfo === !0, V.disabledPoweredBy = t.disabledPoweredBy === !0, V.printTime = R().format("DD-MM-YYYY hh:mm A"), v.deliveryTimestamp && (V.deliveryTimestamp = R.unix(v.deliveryTimestamp).format("DD-MM-YYYY hh:mm A")), V.itemInstructionOnBill = d.itemInstructionOnBill, V.printHSNCodeOnBill = d.printHSNCodeOnBill, V.noOfInvoice = d.noOfInvoice, V.area = v.area, V.captainName = v.captainName, !(d.itemInstructionOnBill || d.printHSNCodeOnBill) && ((f = V.itemList) != null && f.length)) {
4629
+ if (h) {
4630
+ if (V.domain = h.siteURL, V.paymentMethods = h.paymentMode ? V.paymentMethods : null, V.companyInfo.companyName = h.companyName, V.companyInfo.companyEmail = h.email, V.companyInfo.companyAddress = h.address, V.companyInfo.companyContact = h.mobile, V.customerInfo.custName = h.custName ? p : null, V.tokenId = h.token ? V.tokenId : null, h.isPayQR && h.upiId && h.upiId !== "" && (V.upiId = h.upiId), V.gstNo = h.gst ? V.gst : null, V.footerMessage = h.footerMessage, V.orderFrom = (u = v.subOrderFrom) == null ? void 0 : u.toUpperCase(), V.fssai = t.fssai, V.vatNo = t.vatNo, V.taxLabel = Oa(t), V.printOperatorInfo = h.printOperatorInfo === null || h.printOperatorInfo === !0, V.disabledPoweredBy = t.disabledPoweredBy === !0, V.printTime = R().format("DD-MM-YYYY hh:mm A"), v.deliveryTimestamp && (V.deliveryTimestamp = R.unix(v.deliveryTimestamp).format("DD-MM-YYYY hh:mm A")), V.itemInstructionOnBill = h.itemInstructionOnBill, V.printHSNCodeOnBill = h.printHSNCodeOnBill, V.noOfInvoice = h.noOfInvoice, V.area = v.area, V.captainName = v.captainName, !(h.itemInstructionOnBill || h.printHSNCodeOnBill) && ((f = V.itemList) != null && f.length)) {
4631
4631
  let W;
4632
4632
  for (let ue = 0; ue < V.itemList.length; ue++)
4633
4633
  W = V.itemList[ue], W.instruction && delete W.instruction, W.hsnCode && delete W.hsnCode;
@@ -4647,30 +4647,30 @@ const Gs = (e, t, n) => {
4647
4647
  }
4648
4648
  if (t && t.isOld && t.isOld == !0) {
4649
4649
  let W = null, ue = null;
4650
- d.companyLogo && (W = await qt(`https://${d.companyLogo.bucket}.s3.amazonaws.com/${d.companyLogo.key}`)), d.qrcode && (ue = await qt(`https://${d.qrcode.bucket}.s3.amazonaws.com/${d.qrcode.key}`));
4650
+ h.companyLogo && (W = await qt(`https://${h.companyLogo.bucket}.s3.amazonaws.com/${h.companyLogo.key}`)), h.qrcode && (ue = await qt(`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
4653
  let H = { obj: V, companyLogo: W, companyQrCode: ue, paperSize: t.printerSize, Name: a };
4654
4654
  r(H);
4655
4655
  }
4656
4656
  }
4657
- } catch (d) {
4658
- console.log("err", d);
4657
+ } catch (h) {
4658
+ console.log("err", h);
4659
4659
  }
4660
4660
  }), Ld = (e, t) => new Promise(async (n, r) => {
4661
4661
  var C;
4662
4662
  let i;
4663
4663
  (C = t.siteLogo) != null && C.key;
4664
- let a = t.footerAddress.addressLineOne ? t.footerAddress.addressLineOne : "", u = t.footerAddress.addressLineTwo ? t.footerAddress.addressLineTwo : "", f = t.footerAddress.city ? t.footerAddress.city : "", o = t.footerAddress.zip ? t.footerAddress.zip : "", l = (a != "" ? a + "," : "") + (u != "" ? u + "," : "") + (f != "" ? f + "," : "") + (o != "" ? o + "," : ""), c = [], d, p = 0, m = 0, x = 0, v = [], _, E;
4664
+ let a = t.footerAddress.addressLineOne ? t.footerAddress.addressLineOne : "", u = t.footerAddress.addressLineTwo ? t.footerAddress.addressLineTwo : "", f = t.footerAddress.city ? t.footerAddress.city : "", o = t.footerAddress.zip ? t.footerAddress.zip : "", l = (a != "" ? a + "," : "") + (u != "" ? u + "," : "") + (f != "" ? f + "," : "") + (o != "" ? o + "," : ""), c = [], h, p = 0, m = 0, x = 0, v = [], _, E;
4665
4665
  const T = Cs(t.paymentModes ?? defaultPaymentModes, "internalName");
4666
4666
  for (let F = 0; F < e.length; F++)
4667
- for (d = e[F], c.push({
4668
- date: d.date,
4669
- orderId: d.orderId,
4670
- finalAmount: d.finalAmount
4667
+ for (h = e[F], c.push({
4668
+ date: h.date,
4669
+ orderId: h.orderId,
4670
+ finalAmount: h.finalAmount
4671
4671
  // orderTransactions: iterator.orderTransactions,
4672
- }), p += d.finalAmount, m += d.paidAmt, x += d.balanceAmt, _ = 0; _ < d.orderTransactions.length; _++)
4673
- E = d.orderTransactions[_], E.paidAmt && v.push({
4672
+ }), p += h.finalAmount, m += h.paidAmt, x += h.balanceAmt, _ = 0; _ < h.orderTransactions.length; _++)
4673
+ E = h.orderTransactions[_], E.paidAmt && v.push({
4674
4674
  date: R.unix(E.createdAt).format("DD-MM-YYYY"),
4675
4675
  paymentMode: T[E.paymentMode].displayName,
4676
4676
  amount: _e(E.paidAmt)
@@ -5117,12 +5117,12 @@ async function jh(e, t) {
5117
5117
  _t(i.cssRules || []).forEach((a, u) => {
5118
5118
  if (a.type === CSSRule.IMPORT_RULE) {
5119
5119
  let f = u + 1;
5120
- const o = a.href, l = Er(o).then((c) => Rr(c, t)).then((c) => Lr(c).forEach((d) => {
5120
+ const o = a.href, l = Er(o).then((c) => Rr(c, t)).then((c) => Lr(c).forEach((h) => {
5121
5121
  try {
5122
- i.insertRule(d, d.startsWith("@import") ? f += 1 : i.cssRules.length);
5122
+ i.insertRule(h, h.startsWith("@import") ? f += 1 : i.cssRules.length);
5123
5123
  } catch (p) {
5124
5124
  console.error("Error inserting rule from remote css", {
5125
- rule: d,
5125
+ rule: h,
5126
5126
  error: p
5127
5127
  });
5128
5128
  }
@@ -5224,10 +5224,10 @@ var Ch = Object.defineProperty, ln = Object.getOwnPropertySymbols, Ha = Object.p
5224
5224
  var At;
5225
5225
  ((e) => {
5226
5226
  const t = class {
5227
- constructor(o, l, c, d) {
5227
+ constructor(o, l, c, h) {
5228
5228
  if (this.version = o, this.errorCorrectionLevel = l, this.modules = [], this.isFunction = [], o < t.MIN_VERSION || o > t.MAX_VERSION)
5229
5229
  throw new RangeError("Version value out of range");
5230
- if (d < -1 || d > 7)
5230
+ if (h < -1 || h > 7)
5231
5231
  throw new RangeError("Mask value out of range");
5232
5232
  this.size = o * 4 + 17;
5233
5233
  let p = [];
@@ -5237,15 +5237,15 @@ var At;
5237
5237
  this.modules.push(p.slice()), this.isFunction.push(p.slice());
5238
5238
  this.drawFunctionPatterns();
5239
5239
  const m = this.addEccAndInterleave(c);
5240
- if (this.drawCodewords(m), d == -1) {
5240
+ if (this.drawCodewords(m), h == -1) {
5241
5241
  let x = 1e9;
5242
5242
  for (let v = 0; v < 8; v++) {
5243
5243
  this.applyMask(v), this.drawFormatBits(v);
5244
5244
  const _ = this.getPenaltyScore();
5245
- _ < x && (d = v, x = _), this.applyMask(v);
5245
+ _ < x && (h = v, x = _), this.applyMask(v);
5246
5246
  }
5247
5247
  }
5248
- a(0 <= d && d <= 7), this.mask = d, this.applyMask(d), this.drawFormatBits(d), this.isFunction = [];
5248
+ a(0 <= h && h <= 7), this.mask = h, this.applyMask(h), this.drawFormatBits(h), this.isFunction = [];
5249
5249
  }
5250
5250
  static encodeText(o, l) {
5251
5251
  const c = e.QrSegment.makeSegments(o);
@@ -5255,8 +5255,8 @@ var At;
5255
5255
  const c = e.QrSegment.makeBytes(o);
5256
5256
  return t.encodeSegments([c], l);
5257
5257
  }
5258
- static encodeSegments(o, l, c = 1, d = 40, p = -1, m = !0) {
5259
- if (!(t.MIN_VERSION <= c && c <= d && d <= t.MAX_VERSION) || p < -1 || p > 7)
5258
+ static encodeSegments(o, l, c = 1, h = 40, p = -1, m = !0) {
5259
+ if (!(t.MIN_VERSION <= c && c <= h && h <= t.MAX_VERSION) || p < -1 || p > 7)
5260
5260
  throw new RangeError("Invalid value");
5261
5261
  let x, v;
5262
5262
  for (x = c; ; x++) {
@@ -5265,7 +5265,7 @@ var At;
5265
5265
  v = F;
5266
5266
  break;
5267
5267
  }
5268
- if (x >= d)
5268
+ if (x >= h)
5269
5269
  throw new RangeError("Data too long");
5270
5270
  }
5271
5271
  for (const C of [t.Ecc.MEDIUM, t.Ecc.QUARTILE, t.Ecc.HIGH])
@@ -5298,8 +5298,8 @@ var At;
5298
5298
  this.drawFinderPattern(3, 3), this.drawFinderPattern(this.size - 4, 3), this.drawFinderPattern(3, this.size - 4);
5299
5299
  const o = this.getAlignmentPatternPositions(), l = o.length;
5300
5300
  for (let c = 0; c < l; c++)
5301
- for (let d = 0; d < l; d++)
5302
- c == 0 && d == 0 || c == 0 && d == l - 1 || c == l - 1 && d == 0 || this.drawAlignmentPattern(o[c], o[d]);
5301
+ for (let h = 0; h < l; h++)
5302
+ c == 0 && h == 0 || c == 0 && h == l - 1 || c == l - 1 && h == 0 || this.drawAlignmentPattern(o[c], o[h]);
5303
5303
  this.drawFormatBits(0), this.drawVersion();
5304
5304
  }
5305
5305
  drawFormatBits(o) {
@@ -5307,17 +5307,17 @@ var At;
5307
5307
  let c = l;
5308
5308
  for (let p = 0; p < 10; p++)
5309
5309
  c = c << 1 ^ (c >>> 9) * 1335;
5310
- const d = (l << 10 | c) ^ 21522;
5311
- a(d >>> 15 == 0);
5310
+ const h = (l << 10 | c) ^ 21522;
5311
+ a(h >>> 15 == 0);
5312
5312
  for (let p = 0; p <= 5; p++)
5313
- this.setFunctionModule(8, p, i(d, p));
5314
- this.setFunctionModule(8, 7, i(d, 6)), this.setFunctionModule(8, 8, i(d, 7)), this.setFunctionModule(7, 8, i(d, 8));
5313
+ this.setFunctionModule(8, p, i(h, p));
5314
+ this.setFunctionModule(8, 7, i(h, 6)), this.setFunctionModule(8, 8, i(h, 7)), this.setFunctionModule(7, 8, i(h, 8));
5315
5315
  for (let p = 9; p < 15; p++)
5316
- this.setFunctionModule(14 - p, 8, i(d, p));
5316
+ this.setFunctionModule(14 - p, 8, i(h, p));
5317
5317
  for (let p = 0; p < 8; p++)
5318
- this.setFunctionModule(this.size - 1 - p, 8, i(d, p));
5318
+ this.setFunctionModule(this.size - 1 - p, 8, i(h, p));
5319
5319
  for (let p = 8; p < 15; p++)
5320
- this.setFunctionModule(8, this.size - 15 + p, i(d, p));
5320
+ this.setFunctionModule(8, this.size - 15 + p, i(h, p));
5321
5321
  this.setFunctionModule(8, this.size - 8, !0);
5322
5322
  }
5323
5323
  drawVersion() {
@@ -5329,21 +5329,21 @@ var At;
5329
5329
  const l = this.version << 12 | o;
5330
5330
  a(l >>> 18 == 0);
5331
5331
  for (let c = 0; c < 18; c++) {
5332
- const d = i(l, c), p = this.size - 11 + c % 3, m = Math.floor(c / 3);
5333
- this.setFunctionModule(p, m, d), this.setFunctionModule(m, p, d);
5332
+ const h = i(l, c), p = this.size - 11 + c % 3, m = Math.floor(c / 3);
5333
+ this.setFunctionModule(p, m, h), this.setFunctionModule(m, p, h);
5334
5334
  }
5335
5335
  }
5336
5336
  drawFinderPattern(o, l) {
5337
5337
  for (let c = -4; c <= 4; c++)
5338
- for (let d = -4; d <= 4; d++) {
5339
- const p = Math.max(Math.abs(d), Math.abs(c)), m = o + d, x = l + c;
5338
+ for (let h = -4; h <= 4; h++) {
5339
+ const p = Math.max(Math.abs(h), Math.abs(c)), m = o + h, x = l + c;
5340
5340
  0 <= m && m < this.size && 0 <= x && x < this.size && this.setFunctionModule(m, x, p != 2 && p != 4);
5341
5341
  }
5342
5342
  }
5343
5343
  drawAlignmentPattern(o, l) {
5344
5344
  for (let c = -2; c <= 2; c++)
5345
- for (let d = -2; d <= 2; d++)
5346
- this.setFunctionModule(o + d, l + c, Math.max(Math.abs(d), Math.abs(c)) != 1);
5345
+ for (let h = -2; h <= 2; h++)
5346
+ this.setFunctionModule(o + h, l + c, Math.max(Math.abs(h), Math.abs(c)) != 1);
5347
5347
  }
5348
5348
  setFunctionModule(o, l, c) {
5349
5349
  this.modules[l][o] = c, this.isFunction[l][o] = !0;
@@ -5352,10 +5352,10 @@ var At;
5352
5352
  const l = this.version, c = this.errorCorrectionLevel;
5353
5353
  if (o.length != t.getNumDataCodewords(l, c))
5354
5354
  throw new RangeError("Invalid argument");
5355
- const d = t.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][l], p = t.ECC_CODEWORDS_PER_BLOCK[c.ordinal][l], m = Math.floor(t.getNumRawDataModules(l) / 8), x = d - m % d, v = Math.floor(m / d);
5355
+ const h = t.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][l], p = t.ECC_CODEWORDS_PER_BLOCK[c.ordinal][l], m = Math.floor(t.getNumRawDataModules(l) / 8), x = h - m % h, v = Math.floor(m / h);
5356
5356
  let _ = [];
5357
5357
  const E = t.reedSolomonComputeDivisor(p);
5358
- for (let C = 0, F = 0; C < d; C++) {
5358
+ for (let C = 0, F = 0; C < h; C++) {
5359
5359
  let Y = o.slice(F, F + v - p + (C < x ? 0 : 1));
5360
5360
  F += Y.length;
5361
5361
  const L = t.reedSolomonComputeRemainder(Y, E);
@@ -5374,9 +5374,9 @@ var At;
5374
5374
  let l = 0;
5375
5375
  for (let c = this.size - 1; c >= 1; c -= 2) {
5376
5376
  c == 6 && (c = 5);
5377
- for (let d = 0; d < this.size; d++)
5377
+ for (let h = 0; h < this.size; h++)
5378
5378
  for (let p = 0; p < 2; p++) {
5379
- const m = c - p, v = (c + 1 & 2) == 0 ? this.size - 1 - d : d;
5379
+ const m = c - p, v = (c + 1 & 2) == 0 ? this.size - 1 - h : h;
5380
5380
  !this.isFunction[v][m] && l < o.length * 8 && (this.modules[v][m] = i(o[l >>> 3], 7 - (l & 7)), l++);
5381
5381
  }
5382
5382
  }
@@ -5387,36 +5387,36 @@ var At;
5387
5387
  throw new RangeError("Mask value out of range");
5388
5388
  for (let l = 0; l < this.size; l++)
5389
5389
  for (let c = 0; c < this.size; c++) {
5390
- let d;
5390
+ let h;
5391
5391
  switch (o) {
5392
5392
  case 0:
5393
- d = (c + l) % 2 == 0;
5393
+ h = (c + l) % 2 == 0;
5394
5394
  break;
5395
5395
  case 1:
5396
- d = l % 2 == 0;
5396
+ h = l % 2 == 0;
5397
5397
  break;
5398
5398
  case 2:
5399
- d = c % 3 == 0;
5399
+ h = c % 3 == 0;
5400
5400
  break;
5401
5401
  case 3:
5402
- d = (c + l) % 3 == 0;
5402
+ h = (c + l) % 3 == 0;
5403
5403
  break;
5404
5404
  case 4:
5405
- d = (Math.floor(c / 3) + Math.floor(l / 2)) % 2 == 0;
5405
+ h = (Math.floor(c / 3) + Math.floor(l / 2)) % 2 == 0;
5406
5406
  break;
5407
5407
  case 5:
5408
- d = c * l % 2 + c * l % 3 == 0;
5408
+ h = c * l % 2 + c * l % 3 == 0;
5409
5409
  break;
5410
5410
  case 6:
5411
- d = (c * l % 2 + c * l % 3) % 2 == 0;
5411
+ h = (c * l % 2 + c * l % 3) % 2 == 0;
5412
5412
  break;
5413
5413
  case 7:
5414
- d = ((c + l) % 2 + c * l % 3) % 2 == 0;
5414
+ h = ((c + l) % 2 + c * l % 3) % 2 == 0;
5415
5415
  break;
5416
5416
  default:
5417
5417
  throw new Error("Unreachable");
5418
5418
  }
5419
- !this.isFunction[l][c] && d && (this.modules[l][c] = !this.modules[l][c]);
5419
+ !this.isFunction[l][c] && h && (this.modules[l][c] = !this.modules[l][c]);
5420
5420
  }
5421
5421
  }
5422
5422
  getPenaltyScore() {
@@ -5441,8 +5441,8 @@ var At;
5441
5441
  let l = 0;
5442
5442
  for (const p of this.modules)
5443
5443
  l = p.reduce((m, x) => m + (x ? 1 : 0), l);
5444
- const c = this.size * this.size, d = Math.ceil(Math.abs(l * 20 - c * 10) / c) - 1;
5445
- return a(0 <= d && d <= 9), o += d * t.PENALTY_N4, a(0 <= o && o <= 2568888), o;
5444
+ const c = this.size * this.size, h = Math.ceil(Math.abs(l * 20 - c * 10) / c) - 1;
5445
+ return a(0 <= h && h <= 9), o += h * t.PENALTY_N4, a(0 <= o && o <= 2568888), o;
5446
5446
  }
5447
5447
  getAlignmentPatternPositions() {
5448
5448
  if (this.version == 1)
@@ -5450,8 +5450,8 @@ var At;
5450
5450
  {
5451
5451
  const o = Math.floor(this.version / 7) + 2, l = this.version == 32 ? 26 : Math.ceil((this.version * 4 + 4) / (o * 2 - 2)) * 2;
5452
5452
  let c = [6];
5453
- for (let d = this.size - 7; c.length < o; d -= l)
5454
- c.splice(1, 0, d);
5453
+ for (let h = this.size - 7; c.length < o; h -= l)
5454
+ c.splice(1, 0, h);
5455
5455
  return c;
5456
5456
  }
5457
5457
  }
@@ -5472,11 +5472,11 @@ var At;
5472
5472
  if (o < 1 || o > 255)
5473
5473
  throw new RangeError("Degree out of range");
5474
5474
  let l = [];
5475
- for (let d = 0; d < o - 1; d++)
5475
+ for (let h = 0; h < o - 1; h++)
5476
5476
  l.push(0);
5477
5477
  l.push(1);
5478
5478
  let c = 1;
5479
- for (let d = 0; d < o; d++) {
5479
+ for (let h = 0; h < o; h++) {
5480
5480
  for (let p = 0; p < l.length; p++)
5481
5481
  l[p] = t.reedSolomonMultiply(l[p], c), p + 1 < l.length && (l[p] ^= l[p + 1]);
5482
5482
  c = t.reedSolomonMultiply(c, 2);
@@ -5484,9 +5484,9 @@ var At;
5484
5484
  return l;
5485
5485
  }
5486
5486
  static reedSolomonComputeRemainder(o, l) {
5487
- let c = l.map((d) => 0);
5488
- for (const d of o) {
5489
- const p = d ^ c.shift();
5487
+ let c = l.map((h) => 0);
5488
+ for (const h of o) {
5489
+ const p = h ^ c.shift();
5490
5490
  c.push(0), l.forEach((m, x) => c[x] ^= t.reedSolomonMultiply(m, p));
5491
5491
  }
5492
5492
  return c;
@@ -5495,8 +5495,8 @@ var At;
5495
5495
  if (o >>> 8 || l >>> 8)
5496
5496
  throw new RangeError("Byte out of range");
5497
5497
  let c = 0;
5498
- for (let d = 7; d >= 0; d--)
5499
- c = c << 1 ^ (c >>> 7) * 285, c ^= (l >>> d & 1) * o;
5498
+ for (let h = 7; h >= 0; h--)
5499
+ c = c << 1 ^ (c >>> 7) * 285, c ^= (l >>> h & 1) * o;
5500
5500
  return a(c >>> 8 == 0), c;
5501
5501
  }
5502
5502
  finderPenaltyCountPatterns(o) {
@@ -5527,8 +5527,8 @@ var At;
5527
5527
  function r(o, l, c) {
5528
5528
  if (l < 0 || l > 31 || o >>> l)
5529
5529
  throw new RangeError("Value out of range");
5530
- for (let d = l - 1; d >= 0; d--)
5531
- c.push(o >>> d & 1);
5530
+ for (let h = l - 1; h >= 0; h--)
5531
+ c.push(o >>> h & 1);
5532
5532
  }
5533
5533
  function i(o, l) {
5534
5534
  return (o >>> l & 1) != 0;
@@ -5554,8 +5554,8 @@ var At;
5554
5554
  throw new RangeError("String contains non-numeric characters");
5555
5555
  let l = [];
5556
5556
  for (let c = 0; c < o.length; ) {
5557
- const d = Math.min(o.length - c, 3);
5558
- r(parseInt(o.substr(c, d), 10), d * 3 + 1, l), c += d;
5557
+ const h = Math.min(o.length - c, 3);
5558
+ r(parseInt(o.substr(c, h), 10), h * 3 + 1, l), c += h;
5559
5559
  }
5560
5560
  return new u(u.Mode.NUMERIC, o.length, l);
5561
5561
  }
@@ -5564,8 +5564,8 @@ var At;
5564
5564
  throw new RangeError("String contains unencodable characters in alphanumeric mode");
5565
5565
  let l = [], c;
5566
5566
  for (c = 0; c + 2 <= o.length; c += 2) {
5567
- let d = u.ALPHANUMERIC_CHARSET.indexOf(o.charAt(c)) * 45;
5568
- d += u.ALPHANUMERIC_CHARSET.indexOf(o.charAt(c + 1)), r(d, 11, l);
5567
+ let h = u.ALPHANUMERIC_CHARSET.indexOf(o.charAt(c)) * 45;
5568
+ h += u.ALPHANUMERIC_CHARSET.indexOf(o.charAt(c + 1)), r(h, 11, l);
5569
5569
  }
5570
5570
  return c < o.length && r(u.ALPHANUMERIC_CHARSET.indexOf(o.charAt(c)), 6, l), new u(u.Mode.ALPHANUMERIC, o.length, l);
5571
5571
  }
@@ -5597,11 +5597,11 @@ var At;
5597
5597
  }
5598
5598
  static getTotalBits(o, l) {
5599
5599
  let c = 0;
5600
- for (const d of o) {
5601
- const p = d.mode.numCharCountBits(l);
5602
- if (d.numChars >= 1 << p)
5600
+ for (const h of o) {
5601
+ const p = h.mode.numCharCountBits(l);
5602
+ if (h.numChars >= 1 << p)
5603
5603
  return 1 / 0;
5604
- c += 4 + p + d.bitData.length;
5604
+ c += 4 + p + h.bitData.length;
5605
5605
  }
5606
5606
  return c;
5607
5607
  }
@@ -5678,13 +5678,13 @@ function Za(e, t) {
5678
5678
  function Ja(e, t, n, r) {
5679
5679
  if (r == null)
5680
5680
  return null;
5681
- const i = n ? fr : 0, a = e.length + i * 2, u = Math.floor(t * Oh), f = a / t, o = (r.width || u) * f, l = (r.height || u) * f, c = r.x == null ? e.length / 2 - o / 2 : r.x * f, d = r.y == null ? e.length / 2 - l / 2 : r.y * f;
5681
+ const i = n ? fr : 0, a = e.length + i * 2, u = Math.floor(t * Oh), f = a / t, o = (r.width || u) * f, l = (r.height || u) * f, c = r.x == null ? e.length / 2 - o / 2 : r.x * f, h = r.y == null ? e.length / 2 - l / 2 : r.y * f;
5682
5682
  let p = null;
5683
5683
  if (r.excavate) {
5684
- let m = Math.floor(c), x = Math.floor(d), v = Math.ceil(o + c - m), _ = Math.ceil(l + d - x);
5684
+ let m = Math.floor(c), x = Math.floor(h), v = Math.ceil(o + c - m), _ = Math.ceil(l + h - x);
5685
5685
  p = { x: m, y: x, w: v, h: _ };
5686
5686
  }
5687
- return { x: c, y: d, h: l, w: o, excavation: p };
5687
+ return { x: c, y: h, h: l, w: o, excavation: p };
5688
5688
  }
5689
5689
  var Mh = function() {
5690
5690
  try {
@@ -5713,7 +5713,7 @@ function Ah(e) {
5713
5713
  "includeMargin",
5714
5714
  "style",
5715
5715
  "imageSettings"
5716
- ]), d = l == null ? void 0 : l.src, p = we.useRef(null), m = we.useRef(null), [x, v] = we.useState(!1);
5716
+ ]), h = l == null ? void 0 : l.src, p = we.useRef(null), m = we.useRef(null), [x, v] = we.useState(!1);
5717
5717
  we.useEffect(() => {
5718
5718
  if (p.current != null) {
5719
5719
  const T = p.current, C = T.getContext("2d");
@@ -5733,12 +5733,12 @@ function Ah(e) {
5733
5733
  }
5734
5734
  }), we.useEffect(() => {
5735
5735
  v(!1);
5736
- }, [d]);
5736
+ }, [h]);
5737
5737
  const _ = bs({ height: r, width: r }, o);
5738
5738
  let E = null;
5739
- return d != null && (E = /* @__PURE__ */ we.createElement("img", {
5740
- src: d,
5741
- key: d,
5739
+ return h != null && (E = /* @__PURE__ */ we.createElement("img", {
5740
+ src: h,
5741
+ key: h,
5742
5742
  style: { display: "none" },
5743
5743
  onLoad: () => {
5744
5744
  v(!0);
@@ -5770,17 +5770,17 @@ function Eh(e) {
5770
5770
  "imageSettings"
5771
5771
  ]);
5772
5772
  let c = Bt.QrCode.encodeText(n, Wa[i]).getModules();
5773
- const d = f ? fr : 0, p = c.length + d * 2, m = Ja(c, r, f, o);
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", {
5776
5776
  xlinkHref: o.src,
5777
5777
  height: m.h,
5778
5778
  width: m.w,
5779
- x: m.x + d,
5780
- y: m.y + d,
5779
+ x: m.x + h,
5780
+ y: m.y + h,
5781
5781
  preserveAspectRatio: "none"
5782
5782
  }));
5783
- const v = Qa(c, d);
5783
+ const v = Qa(c, h);
5784
5784
  return /* @__PURE__ */ we.createElement("svg", bs({
5785
5785
  height: r,
5786
5786
  width: r,
@@ -5803,7 +5803,7 @@ const fs = (e, t) => t * 100 / e, Rh = (e) => !!(e || e === 0), Lh = {
5803
5803
  ABSOLUTE: "AMT",
5804
5804
  RELATIVE: "%",
5805
5805
  COMPLIMENTARY: "COMPLIMENTARY"
5806
- }, P = new Object({
5806
+ }, k = new Object({
5807
5807
  "3INCH": {
5808
5808
  lines: "- - - - - - - - - - - - - - - - - - - - - - - - - - - - -",
5809
5809
  paperSize: "36rem",
@@ -5861,11 +5861,11 @@ const st = (e) => {
5861
5861
  { type: f, siteSetting: e.settingData ? e.settingData : e.value.settingData },
5862
5862
  t
5863
5863
  );
5864
- const d = r.customLabels ?? _d();
5864
+ const h = r.customLabels ?? _d();
5865
5865
  l = c ? (xe = c[0]) != null && xe.paperSize ? (at = c[0]) == null ? void 0 : at.paperSize : l || "3INCH" : e.printerDataObject.paperSize;
5866
5866
  function p(g) {
5867
- const h = Math.abs(parseFloat(g));
5868
- return m(h);
5867
+ const d = Math.abs(parseFloat(g));
5868
+ return m(d);
5869
5869
  }
5870
5870
  function m(g) {
5871
5871
  switch (o) {
@@ -5881,7 +5881,7 @@ const st = (e) => {
5881
5881
  si(() => {
5882
5882
  E();
5883
5883
  }, [e.newId]);
5884
- const x = () => new Promise(async (g, h) => {
5884
+ const x = () => new Promise(async (g, d) => {
5885
5885
  if (gs == "Android OS" || gs === "iOS") {
5886
5886
  let M = await Ih(n.current);
5887
5887
  if (M) {
@@ -5892,16 +5892,16 @@ const st = (e) => {
5892
5892
  let M = await $a(n.current);
5893
5893
  M && g(M);
5894
5894
  }
5895
- }), v = () => new Promise(async (g, h) => {
5895
+ }), v = () => new Promise(async (g, d) => {
5896
5896
  const M = await x();
5897
5897
  g(M);
5898
- }), _ = (g) => new Promise((h, M) => {
5898
+ }), _ = (g) => new Promise((d, M) => {
5899
5899
  let N = new Image();
5900
5900
  N.src = g, N.onload = () => {
5901
5901
  let O = document.createElement("canvas");
5902
5902
  const D = 600, S = N.height;
5903
- let k = N.width, B = N.height;
5904
- k > B ? k > D && (B *= D / k, k = D) : B > S && (k *= S / B, B = S), O.width = k, O.height = B, O.getContext("2d").drawImage(N, 0, 0, k, B), h(O.toDataURL());
5903
+ let P = N.width, B = N.height;
5904
+ P > B ? P > D && (B *= D / P, P = D) : B > S && (P *= S / B, B = S), O.width = P, O.height = B, O.getContext("2d").drawImage(N, 0, 0, P, B), d(O.toDataURL());
5905
5905
  };
5906
5906
  }), E = async () => {
5907
5907
  if (n && n.current) {
@@ -5909,16 +5909,16 @@ const st = (e) => {
5909
5909
  e.onImageGenerated(g);
5910
5910
  }
5911
5911
  }, T = (g) => {
5912
- let h = new Array();
5912
+ let d = new Array();
5913
5913
  for (const M in g.menusCollection)
5914
- M.endsWith("collection") || (g.menusCollection[`${M}_collection`] || g.menusCollection[M]) && h.push(
5914
+ M.endsWith("collection") || (g.menusCollection[`${M}_collection`] || g.menusCollection[M]) && d.push(
5915
5915
  /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold display-percentage", children: [
5916
5916
  /* @__PURE__ */ s.jsx("span", { children: ` -- ${M.replace("_", " ")}(${g.menusCollection[M]}):` }),
5917
5917
  /* @__PURE__ */ s.jsx("span", { children: oe(g.menusCollection[`${M}_collection`], o) }),
5918
5918
  /* @__PURE__ */ s.jsx("span", { children: m(fs(g.salesCollection.totalCollection, g.menusCollection[`${M}_collection`] ?? 0)) + "%" })
5919
5919
  ] })
5920
5920
  );
5921
- return g.salesCollection.online_aggregator_collection && h.push(
5921
+ return g.salesCollection.online_aggregator_collection && d.push(
5922
5922
  /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold flex-two-items", children: [
5923
5923
  /* @__PURE__ */ s.jsx("span", { children: ` -- Aggregator(${g.salesCollection.online_aggregator}):` }),
5924
5924
  /* @__PURE__ */ s.jsx("span", { children: oe(g.salesCollection.online_aggregator_collection, o) })
@@ -5931,38 +5931,38 @@ const st = (e) => {
5931
5931
  /* @__PURE__ */ s.jsx("span", { children: ` -- Swiggy(${g.salesCollection.swiggy_aggregator ?? 0}):` }),
5932
5932
  /* @__PURE__ */ s.jsx("span", { children: oe(g.salesCollection.swiggy_aggregator_collection, o) })
5933
5933
  ] })
5934
- ), h;
5934
+ ), d;
5935
5935
  }, C = (g) => {
5936
- let h = new Array(), M = new Object();
5936
+ let d = new Array(), M = new Object();
5937
5937
  for (let N = 0; N < g.todayCollection.length; N++)
5938
- M = g.todayCollection[N], h.push(
5938
+ M = g.todayCollection[N], d.push(
5939
5939
  /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold display-percentage", children: [
5940
5940
  /* @__PURE__ */ s.jsx("span", { children: ` -- ${M.displayName}:` }),
5941
5941
  /* @__PURE__ */ s.jsx("span", { children: oe(M.value, o) }),
5942
5942
  /* @__PURE__ */ s.jsx("span", { children: m(fs(g.totalCollection, M.value)) + "%" })
5943
5943
  ] })
5944
5944
  );
5945
- return h;
5946
- }, F = (g, h, M, N, O = {}) => {
5945
+ return d;
5946
+ }, F = (g, d, M, N, O = {}) => {
5947
5947
  let D = g.includes("upi://");
5948
- const S = `upi://pay?pa=${g}&pn=${M}&cu=INR&am=${N}&tr=${h}`;
5948
+ const S = `upi://pay?pa=${g}&pn=${M}&cu=INR&am=${N}&tr=${d}`;
5949
5949
  return /* @__PURE__ */ s.jsx(Pr, { value: D ? g : S, renderAs: "canvas", size: O.size ?? 250 });
5950
- }, Y = (g, h) => {
5950
+ }, Y = (g, d) => {
5951
5951
  var D, S;
5952
5952
  let M = 0;
5953
- if ((D = h.taxObj) != null && D.VAT.length) {
5954
- let k, B, me;
5955
- for (B = 0; B < ((S = h.taxObj) == null ? void 0 : S.VAT.length); B++) {
5956
- k = h.taxObj.VAT[B];
5957
- for (me in k)
5958
- M += _e(k[me]);
5953
+ if ((D = d.taxObj) != null && D.VAT.length) {
5954
+ let P, B, me;
5955
+ for (B = 0; B < ((S = d.taxObj) == null ? void 0 : S.VAT.length); B++) {
5956
+ P = d.taxObj.VAT[B];
5957
+ for (me in P)
5958
+ M += _e(P[me]);
5959
5959
  }
5960
5960
  }
5961
5961
  const N = {
5962
- sellerName: h.companyInfo.companyName,
5962
+ sellerName: d.companyInfo.companyName,
5963
5963
  vatRegistrationNumber: g,
5964
- invoiceTimestamp: new Date(h.orderInfo.timestamp * 1e3).toISOString(),
5965
- invoiceTotal: h.finalAmount,
5964
+ invoiceTimestamp: new Date(d.orderInfo.timestamp * 1e3).toISOString(),
5965
+ invoiceTotal: d.finalAmount,
5966
5966
  invoiceVatTotal: M
5967
5967
  }, O = vd(
5968
5968
  N.sellerName,
@@ -5973,71 +5973,71 @@ const st = (e) => {
5973
5973
  );
5974
5974
  return /* @__PURE__ */ s.jsx(Pr, { value: O, renderAs: "canvas", size: 250 });
5975
5975
  }, L = (g) => {
5976
- const h = [];
5977
- return (g.totalBalanceAmt || g.refundAmt || g.writeOffAmt || g.rewardAmt || g.cashCard) && (h.push(/* @__PURE__ */ s.jsx("hr", {})), g.rewardAmt && h.push(
5976
+ const d = [];
5977
+ return (g.totalBalanceAmt || g.refundAmt || g.writeOffAmt || g.rewardAmt || g.cashCard) && (d.push(/* @__PURE__ */ s.jsx("hr", {})), g.rewardAmt && d.push(
5978
5978
  /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold flex-two-items", children: [
5979
5979
  /* @__PURE__ */ s.jsx("span", { children: "REWARDS:" }),
5980
5980
  /* @__PURE__ */ s.jsx("span", { children: oe(g.rewardAmt, o) })
5981
5981
  ] })
5982
- ), g.totalBalanceAmt && h.push(
5982
+ ), g.totalBalanceAmt && d.push(
5983
5983
  /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold flex-two-items", children: [
5984
5984
  /* @__PURE__ */ s.jsx("span", { children: "OUTSTANDING AMOUNT:" }),
5985
5985
  /* @__PURE__ */ s.jsx("span", { children: oe(g.totalBalanceAmt, o) })
5986
5986
  ] })
5987
- ), g.writeOffAmt && h.push(
5987
+ ), g.writeOffAmt && d.push(
5988
5988
  /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold flex-two-items", children: [
5989
5989
  /* @__PURE__ */ s.jsx("span", { children: "WRITE OFF AMOUNT:" }),
5990
5990
  /* @__PURE__ */ s.jsx("span", { children: oe(g.writeOffAmt, o) })
5991
5991
  ] })
5992
- ), g.refundAmt && h.push(
5992
+ ), g.refundAmt && d.push(
5993
5993
  /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold flex-two-items", children: [
5994
5994
  /* @__PURE__ */ s.jsx("span", { children: "REFUND AMOUNT:" }),
5995
5995
  /* @__PURE__ */ s.jsx("span", { children: oe(g.refundAmt, o) })
5996
5996
  ] })
5997
- ), g.cashCard && h.push(
5997
+ ), g.cashCard && d.push(
5998
5998
  /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold flex-two-items", children: [
5999
5999
  /* @__PURE__ */ s.jsx("span", { children: "CASH CARD:" }),
6000
6000
  /* @__PURE__ */ s.jsx("span", { children: oe(g.cashCard, o) })
6001
6001
  ] })
6002
- )), h;
6003
- }, q = (g, h) => {
6004
- if (h && h.length) {
6005
- for (let M = 0; M < h.length; M++)
6006
- if (h[M].slugName === g)
6007
- return h[M];
6002
+ )), d;
6003
+ }, q = (g, d) => {
6004
+ if (d && d.length) {
6005
+ for (let M = 0; M < d.length; M++)
6006
+ if (d[M].slugName === g)
6007
+ return d[M];
6008
6008
  }
6009
6009
  return !1;
6010
- }, se = (g, h) => {
6011
- if (h && h.length) {
6012
- for (let M = 0; M < h.length; M++)
6013
- if (h[M].itemType === g)
6014
- return h[M];
6010
+ }, se = (g, d) => {
6011
+ if (d && d.length) {
6012
+ for (let M = 0; M < d.length; M++)
6013
+ if (d[M].itemType === g)
6014
+ return d[M];
6015
6015
  }
6016
6016
  return !1;
6017
6017
  }, J = new Object({
6018
6018
  CREDIT: "Other Income",
6019
6019
  DEBIT: "Expense"
6020
6020
  }), le = (g) => g.discountType === "COMPLIMENTARY" ? "@ COMPLIMENTARY" : `@ ${g.discountValue}${Lh[g.discountType]}`, be = (g) => {
6021
- const h = new Array();
6021
+ const d = new Array();
6022
6022
  if (g && Object.keys(g).length !== 0) {
6023
- h.push(/* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center", children: "ACCOUNTS" }));
6023
+ d.push(/* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center", children: "ACCOUNTS" }));
6024
6024
  for (const M in g)
6025
- if (h.push(
6025
+ if (d.push(
6026
6026
  /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold flex-two-items", children: [
6027
6027
  /* @__PURE__ */ s.jsx("span", { children: `Total ${J[M]}:` }),
6028
6028
  /* @__PURE__ */ s.jsx("span", { children: oe(g[M].total, o) })
6029
6029
  ] })
6030
6030
  ), M && Object.keys(M).length !== 0)
6031
6031
  for (const N in g[M])
6032
- N !== "total" && g[M][N] && h.push(
6032
+ N !== "total" && g[M][N] && d.push(
6033
6033
  /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold flex-two-items", children: [
6034
6034
  /* @__PURE__ */ s.jsx("span", { children: ` -- ${We(N)}:` }),
6035
6035
  /* @__PURE__ */ s.jsx("span", { children: oe(g[M][N], o) })
6036
6036
  ] })
6037
6037
  );
6038
6038
  }
6039
- return h;
6040
- }, V = (g, h) => {
6039
+ return d;
6040
+ }, V = (g, d) => {
6041
6041
  let M = !1;
6042
6042
  g.totalValue && (M = Object.keys(g.totalValue).length > 1);
6043
6043
  let N = new Object();
@@ -6051,29 +6051,29 @@ const st = (e) => {
6051
6051
  /* @__PURE__ */ s.jsx(
6052
6052
  "h4",
6053
6053
  {
6054
- className: `items products-heading-name ${P[l].dynamicClassname}`,
6055
- dangerouslySetInnerHTML: { __html: h.item_name }
6054
+ className: `items products-heading-name ${k[l].dynamicClassname}`,
6055
+ dangerouslySetInnerHTML: { __html: d.item_name }
6056
6056
  }
6057
6057
  ),
6058
6058
  /* @__PURE__ */ s.jsx(
6059
6059
  "h4",
6060
6060
  {
6061
- className: `items products-heading-qty ${P[l].dynamicClassname}`,
6062
- dangerouslySetInnerHTML: { __html: h.qty }
6061
+ className: `items products-heading-qty ${k[l].dynamicClassname}`,
6062
+ dangerouslySetInnerHTML: { __html: d.qty }
6063
6063
  }
6064
6064
  ),
6065
6065
  /* @__PURE__ */ s.jsx(
6066
6066
  "h4",
6067
6067
  {
6068
- className: `items products-heading-rate ${P[l].dynamicClassname}`,
6069
- dangerouslySetInnerHTML: { __html: h.rate }
6068
+ className: `items products-heading-rate ${k[l].dynamicClassname}`,
6069
+ dangerouslySetInnerHTML: { __html: d.rate }
6070
6070
  }
6071
6071
  ),
6072
6072
  /* @__PURE__ */ s.jsx(
6073
6073
  "h4",
6074
6074
  {
6075
- className: `items products-heading-amt ${P[l].dynamicClassname}`,
6076
- dangerouslySetInnerHTML: { __html: h.amt }
6075
+ className: `items products-heading-amt ${k[l].dynamicClassname}`,
6076
+ dangerouslySetInnerHTML: { __html: d.amt }
6077
6077
  }
6078
6078
  )
6079
6079
  ] }),
@@ -6087,7 +6087,7 @@ const st = (e) => {
6087
6087
  /* @__PURE__ */ s.jsxs(
6088
6088
  "h6",
6089
6089
  {
6090
- className: `items products-heading-name ${P[l].dynamicClassname}`,
6090
+ className: `items products-heading-name ${k[l].dynamicClassname}`,
6091
6091
  style: { fontWeight: "lighter", lineHeight: 1.2 },
6092
6092
  children: [
6093
6093
  S.status === "RETURNED" ? "(R) " : "",
@@ -6098,7 +6098,7 @@ const st = (e) => {
6098
6098
  /* @__PURE__ */ s.jsxs(
6099
6099
  "h6",
6100
6100
  {
6101
- className: `items products-heading-qty ${P[l].dynamicClassname}`,
6101
+ className: `items products-heading-qty ${k[l].dynamicClassname}`,
6102
6102
  style: { fontWeight: "lighter" },
6103
6103
  children: [
6104
6104
  S.status === "RETURNED" ? "-" : "",
@@ -6109,7 +6109,7 @@ const st = (e) => {
6109
6109
  /* @__PURE__ */ s.jsx(
6110
6110
  "h6",
6111
6111
  {
6112
- className: `items products-heading-rate ${P[l].dynamicClassname}`,
6112
+ className: `items products-heading-rate ${k[l].dynamicClassname}`,
6113
6113
  style: { fontWeight: "lighter" },
6114
6114
  children: S.rate ? p(S.rate) : ""
6115
6115
  }
@@ -6117,21 +6117,21 @@ const st = (e) => {
6117
6117
  /* @__PURE__ */ s.jsx(
6118
6118
  "h6",
6119
6119
  {
6120
- className: `items products-heading-amt ${P[l].dynamicClassname}`,
6120
+ className: `items products-heading-amt ${k[l].dynamicClassname}`,
6121
6121
  style: { fontWeight: "lighter" },
6122
6122
  children: S.status === "RETURNED" ? S.serviceAmount ? m(S.serviceAmount) : "" : S.price ? m(S.price) : ""
6123
6123
  }
6124
6124
  )
6125
6125
  ] }),
6126
- S.addons && S.addons.length && S.addons.map((k) => /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-addon-kot ${P[l].dynamicClassname}`, children: "- " + We(k.serviceName) })),
6126
+ S.addons && S.addons.length && S.addons.map((P) => /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-addon-kot ${k[l].dynamicClassname}`, children: "- " + We(P.serviceName) })),
6127
6127
  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 + ")" }) })
6128
6128
  ] });
6129
6129
  }),
6130
6130
  /* @__PURE__ */ s.jsx("hr", {})
6131
6131
  ] }),
6132
- /* @__PURE__ */ s.jsxs("div", { className: `bottom-section ${P[l].dynamicClassname}`, children: [
6132
+ /* @__PURE__ */ s.jsxs("div", { className: `bottom-section ${k[l].dynamicClassname}`, children: [
6133
6133
  /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", style: { paddingTop: "12px" }, children: [
6134
- /* @__PURE__ */ s.jsx("h5", { className: "total-qty", dangerouslySetInnerHTML: { __html: h.subtotal } }),
6134
+ /* @__PURE__ */ s.jsx("h5", { className: "total-qty", dangerouslySetInnerHTML: { __html: d.subtotal } }),
6135
6135
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: g.curr + " " + m(N.gstTTL) })
6136
6136
  ] }),
6137
6137
  i == "25e5f1e4-68ff-43a7-b042-bebb93f42b94" ? /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
@@ -6139,8 +6139,8 @@ const st = (e) => {
6139
6139
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty" })
6140
6140
  ] }) : "",
6141
6141
  N && N.cat && Object.keys(N.cat).length > 0 ? Object.keys(N.cat).map((S) => {
6142
- const k = q(S, g.discArr);
6143
- if (k && N.cat[S] !== 0 && k.serviceName)
6142
+ const P = q(S, g.discArr);
6143
+ if (P && N.cat[S] !== 0 && P.serviceName)
6144
6144
  return /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
6145
6145
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
6146
6146
  /* @__PURE__ */ s.jsx(
@@ -6148,18 +6148,18 @@ const st = (e) => {
6148
6148
  {
6149
6149
  className: "spaced-text",
6150
6150
  dangerouslySetInnerHTML: {
6151
- __html: h[`disc_${k.serviceName.toLowerCase()}`] ?? "DISC-" + k.serviceName.toUpperCase()
6151
+ __html: d[`disc_${P.serviceName.toLowerCase()}`] ?? "DISC-" + P.serviceName.toUpperCase()
6152
6152
  }
6153
6153
  }
6154
6154
  ),
6155
- /* @__PURE__ */ s.jsx("span", { children: " @" + k.discountValue + "%" })
6155
+ /* @__PURE__ */ s.jsx("span", { children: " @" + P.discountValue + "%" })
6156
6156
  ] }) }),
6157
6157
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: g.curr + " " + m(N.cat[S]) })
6158
6158
  ] });
6159
6159
  }) : "",
6160
6160
  g.totalItemDisc && N && N.itemTypes && Object.keys(N.itemTypes).length > 0 ? Object.keys(N.itemTypes).map((S) => {
6161
- const k = se(S, g.itemTypeDiscObj);
6162
- if (k && N.itemTypes[S] !== 0 && k.itemType && k.value)
6161
+ const P = se(S, g.itemTypeDiscObj);
6162
+ if (P && N.itemTypes[S] !== 0 && P.itemType && P.value)
6163
6163
  return /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
6164
6164
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
6165
6165
  /* @__PURE__ */ s.jsx(
@@ -6167,11 +6167,11 @@ const st = (e) => {
6167
6167
  {
6168
6168
  className: "spaced-text",
6169
6169
  dangerouslySetInnerHTML: {
6170
- __html: h[`disc_${k.itemType.toLowerCase()}`] ?? "DISC-" + k.itemType.toUpperCase()
6170
+ __html: d[`disc_${P.itemType.toLowerCase()}`] ?? "DISC-" + P.itemType.toUpperCase()
6171
6171
  }
6172
6172
  }
6173
6173
  ),
6174
- /* @__PURE__ */ s.jsx("span", { children: " @" + k.value + "%" })
6174
+ /* @__PURE__ */ s.jsx("span", { children: " @" + P.value + "%" })
6175
6175
  ] }) }),
6176
6176
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: g.curr + " " + m(N.itemTypes[S]) })
6177
6177
  ] });
@@ -6183,7 +6183,7 @@ const st = (e) => {
6183
6183
  {
6184
6184
  className: "spaced-text",
6185
6185
  dangerouslySetInnerHTML: {
6186
- __html: h[`segment_disc${g.segMentObj.segmentName.toLowerCase()}`] ?? g.segMentObj.segmentName.toUpperCase() + "DISC"
6186
+ __html: d[`segment_disc${g.segMentObj.segmentName.toLowerCase()}`] ?? g.segMentObj.segmentName.toUpperCase() + "DISC"
6187
6187
  }
6188
6188
  }
6189
6189
  ),
@@ -6198,7 +6198,7 @@ const st = (e) => {
6198
6198
  {
6199
6199
  className: "spaced-text",
6200
6200
  dangerouslySetInnerHTML: {
6201
- __html: g.couponCode ? h.coupon_disc ?? "COUPON DISC" : h.order_disc ?? "ORDER DISC"
6201
+ __html: g.couponCode ? d.coupon_disc ?? "COUPON DISC" : d.order_disc ?? "ORDER DISC"
6202
6202
  }
6203
6203
  }
6204
6204
  ),
@@ -6223,13 +6223,13 @@ const st = (e) => {
6223
6223
  "h5",
6224
6224
  {
6225
6225
  className: "total-qty",
6226
- dangerouslySetInnerHTML: { __html: h[`charges_${S.name.toLowerCase()}`] ?? S.name }
6226
+ dangerouslySetInnerHTML: { __html: d[`charges_${S.name.toLowerCase()}`] ?? S.name }
6227
6227
  }
6228
6228
  ),
6229
6229
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: g.curr + " " + m(S.amt) })
6230
6230
  ] }) })) : "",
6231
6231
  N && N.aftDisc && N.gstTTL !== N.aftDisc ? /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
6232
- /* @__PURE__ */ s.jsx("h5", { className: "total-qty", dangerouslySetInnerHTML: { __html: h.amt_before_tax } }),
6232
+ /* @__PURE__ */ s.jsx("h5", { className: "total-qty", dangerouslySetInnerHTML: { __html: d.amt_before_tax } }),
6233
6233
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: g.curr + " " + m(N.aftDisc) })
6234
6234
  ] }) : "",
6235
6235
  i == "25e5f1e4-68ff-43a7-b042-bebb93f42b94" && N && N.aftDisc && N.gstTTL !== N.aftDisc ? /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
@@ -6237,22 +6237,22 @@ const st = (e) => {
6237
6237
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty" })
6238
6238
  ] }) : "",
6239
6239
  g.taxObj && g.taxObj[D] && N ? /* @__PURE__ */ s.jsx(s.Fragment, { children: D === "GST" ? g.taxObj[D].map((S) => {
6240
- let k = new Array();
6240
+ let P = new Array();
6241
6241
  for (const B in S)
6242
6242
  if (S[B] && S[B] != 0) {
6243
6243
  let me = B / 2;
6244
- k.push(
6244
+ P.push(
6245
6245
  /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6246
6246
  /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
6247
6247
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
6248
- /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: h.cgst } }),
6248
+ /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: d.cgst } }),
6249
6249
  /* @__PURE__ */ s.jsx("span", { children: " @" + me + "%" })
6250
6250
  ] }) }),
6251
6251
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: g.curr + " " + m(S[B] / 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
- /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: h[g.taxLabel.toLowerCase()] } }),
6255
+ /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: d[g.taxLabel.toLowerCase()] } }),
6256
6256
  /* @__PURE__ */ s.jsx("span", { children: " @" + me + "%" })
6257
6257
  ] }) }),
6258
6258
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: g.curr + " " + m(S[B] / 2) })
@@ -6260,26 +6260,26 @@ const st = (e) => {
6260
6260
  ] })
6261
6261
  );
6262
6262
  }
6263
- return k;
6263
+ return P;
6264
6264
  }) : g.taxObj[D].map((S) => {
6265
- let k = new Array();
6265
+ let P = new Array();
6266
6266
  for (const B in S)
6267
6267
  if (S[B] && S[B] != 0) {
6268
6268
  let me = B;
6269
- k.push(
6269
+ P.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
- /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: h.vat } }),
6272
+ /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: d.vat } }),
6273
6273
  /* @__PURE__ */ s.jsx("span", { children: " @" + me + "%" })
6274
6274
  ] }) }),
6275
6275
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: g.curr + " " + m(S[B]) })
6276
6276
  ] }) })
6277
6277
  );
6278
6278
  }
6279
- return k;
6279
+ return P;
6280
6280
  }) }) : "",
6281
6281
  N.gstTTL !== (N.total || 0) + (N.aftDisc || 0) + N.taxOnCharges && /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
6282
- /* @__PURE__ */ s.jsx("h5", { className: "total-qty", dangerouslySetInnerHTML: { __html: h.total } }),
6282
+ /* @__PURE__ */ s.jsx("h5", { className: "total-qty", dangerouslySetInnerHTML: { __html: d.total } }),
6283
6283
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: g.curr + " " + m((N.total || 0) + (N.aftDisc || 0) + N.taxOnCharges) })
6284
6284
  ] }),
6285
6285
  i == "25e5f1e4-68ff-43a7-b042-bebb93f42b94" && N.gstTTL !== (N.total || 0) + (N.aftDisc || 0) + N.taxOnCharges && /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
@@ -6300,29 +6300,29 @@ const st = (e) => {
6300
6300
  /* @__PURE__ */ s.jsx(
6301
6301
  "h6",
6302
6302
  {
6303
- className: `items products-heading-name ${P[l].dynamicClassname}`,
6304
- dangerouslySetInnerHTML: { __html: h.item_name }
6303
+ className: `items products-heading-name ${k[l].dynamicClassname}`,
6304
+ dangerouslySetInnerHTML: { __html: d.item_name }
6305
6305
  }
6306
6306
  ),
6307
6307
  /* @__PURE__ */ s.jsx(
6308
6308
  "h6",
6309
6309
  {
6310
- className: `items products-heading-qty ${P[l].dynamicClassname}`,
6311
- dangerouslySetInnerHTML: { __html: h.qty }
6310
+ className: `items products-heading-qty ${k[l].dynamicClassname}`,
6311
+ dangerouslySetInnerHTML: { __html: d.qty }
6312
6312
  }
6313
6313
  ),
6314
6314
  /* @__PURE__ */ s.jsx(
6315
6315
  "h6",
6316
6316
  {
6317
- className: `items products-heading-rate ${P[l].dynamicClassname}`,
6318
- dangerouslySetInnerHTML: { __html: h.rate }
6317
+ className: `items products-heading-rate ${k[l].dynamicClassname}`,
6318
+ dangerouslySetInnerHTML: { __html: d.rate }
6319
6319
  }
6320
6320
  ),
6321
6321
  /* @__PURE__ */ s.jsx(
6322
6322
  "h6",
6323
6323
  {
6324
- className: `items products-heading-amt ${P[l].dynamicClassname}`,
6325
- dangerouslySetInnerHTML: { __html: h.amt }
6324
+ className: `items products-heading-amt ${k[l].dynamicClassname}`,
6325
+ dangerouslySetInnerHTML: { __html: d.amt }
6326
6326
  }
6327
6327
  )
6328
6328
  ] }),
@@ -6333,26 +6333,26 @@ const st = (e) => {
6333
6333
  if (S.taxType === D)
6334
6334
  return /* @__PURE__ */ s.jsxs("div", { style: S.name.startsWith("+ ") ? {} : { paddingTop: "12px" }, children: [
6335
6335
  /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
6336
- /* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-name ${P[l].dynamicClassname}`, children: [
6336
+ /* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-name ${k[l].dynamicClassname}`, children: [
6337
6337
  S.status === "RETURNED" ? "(R) " : "",
6338
6338
  S.name.toUpperCase()
6339
6339
  ] }),
6340
- /* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-qty ${P[l].dynamicClassname}`, children: [
6340
+ /* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-qty ${k[l].dynamicClassname}`, children: [
6341
6341
  S.status === "RETURNED" ? "-" : "",
6342
6342
  S.quantity
6343
6343
  ] }),
6344
- /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-rate ${P[l].dynamicClassname}`, children: S.rate ? p(S.rate) : "" }),
6345
- /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-amt ${P[l].dynamicClassname}`, children: S.status === "RETURNED" ? S.serviceAmount ? m(S.serviceAmount) : "" : S.price ? m(S.price) : "" })
6344
+ /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-rate ${k[l].dynamicClassname}`, children: S.rate ? p(S.rate) : "" }),
6345
+ /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-amt ${k[l].dynamicClassname}`, children: S.status === "RETURNED" ? S.serviceAmount ? m(S.serviceAmount) : "" : S.price ? m(S.price) : "" })
6346
6346
  ] }),
6347
- S.addons && S.addons.length && S.addons.map((k) => /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-addon-kot ${P[l].dynamicClassname}`, children: "- " + We(k.serviceName) })),
6347
+ S.addons && S.addons.length && S.addons.map((P) => /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-addon-kot ${k[l].dynamicClassname}`, children: "- " + We(P.serviceName) })),
6348
6348
  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 + ")" }) })
6349
6349
  ] });
6350
6350
  }),
6351
6351
  /* @__PURE__ */ s.jsx("hr", {})
6352
6352
  ] }),
6353
- /* @__PURE__ */ s.jsxs("div", { className: `bottom-section ${P[l].dynamicClassname}`, children: [
6353
+ /* @__PURE__ */ s.jsxs("div", { className: `bottom-section ${k[l].dynamicClassname}`, children: [
6354
6354
  /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
6355
- /* @__PURE__ */ s.jsx("h5", { className: "total-qty", dangerouslySetInnerHTML: { __html: h.subtotal } }),
6355
+ /* @__PURE__ */ s.jsx("h5", { className: "total-qty", dangerouslySetInnerHTML: { __html: d.subtotal } }),
6356
6356
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: g.curr + " " + m(N.vatTTL) })
6357
6357
  ] }),
6358
6358
  i == "25e5f1e4-68ff-43a7-b042-bebb93f42b94" ? /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
@@ -6360,8 +6360,8 @@ const st = (e) => {
6360
6360
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty" })
6361
6361
  ] }) : "",
6362
6362
  N && N.cat && Object.keys(N.cat).length > 0 ? Object.keys(N.cat).map((S) => {
6363
- const k = q(S, g.discArr);
6364
- if (k && N.cat[S] !== 0 && k.serviceName)
6363
+ const P = q(S, g.discArr);
6364
+ if (P && N.cat[S] !== 0 && P.serviceName)
6365
6365
  return /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
6366
6366
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
6367
6367
  /* @__PURE__ */ s.jsx(
@@ -6369,18 +6369,18 @@ const st = (e) => {
6369
6369
  {
6370
6370
  className: "spaced-text",
6371
6371
  dangerouslySetInnerHTML: {
6372
- __html: h[`disc_${k.serviceName.toLowerCase()}`] ?? "DISC-" + k.serviceName.toUpperCase()
6372
+ __html: d[`disc_${P.serviceName.toLowerCase()}`] ?? "DISC-" + P.serviceName.toUpperCase()
6373
6373
  }
6374
6374
  }
6375
6375
  ),
6376
- /* @__PURE__ */ s.jsx("span", { children: " @" + k.discountValue + "%" })
6376
+ /* @__PURE__ */ s.jsx("span", { children: " @" + P.discountValue + "%" })
6377
6377
  ] }) }),
6378
6378
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: g.curr + " " + m(N.cat[S]) })
6379
6379
  ] });
6380
6380
  }) : "",
6381
6381
  g.totalItemDisc && N && N.itemTypes && Object.keys(N.itemTypes).length > 0 ? Object.keys(N.itemTypes).map((S) => {
6382
- const k = se(S, g.itemTypeDiscObj);
6383
- if (k && N.itemTypes[S] !== 0 && k.itemType && k.value)
6382
+ const P = se(S, g.itemTypeDiscObj);
6383
+ if (P && N.itemTypes[S] !== 0 && P.itemType && P.value)
6384
6384
  return /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
6385
6385
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
6386
6386
  /* @__PURE__ */ s.jsx(
@@ -6388,11 +6388,11 @@ const st = (e) => {
6388
6388
  {
6389
6389
  className: "spaced-text",
6390
6390
  dangerouslySetInnerHTML: {
6391
- __html: h[`disc_${k.itemType.toLowerCase()}`] ?? "DISC-" + k.itemType.toUpperCase()
6391
+ __html: d[`disc_${P.itemType.toLowerCase()}`] ?? "DISC-" + P.itemType.toUpperCase()
6392
6392
  }
6393
6393
  }
6394
6394
  ),
6395
- /* @__PURE__ */ s.jsx("span", { children: " @" + k.value + "%" })
6395
+ /* @__PURE__ */ s.jsx("span", { children: " @" + P.value + "%" })
6396
6396
  ] }) }),
6397
6397
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: g.curr + " " + m(N.itemTypes[S]) })
6398
6398
  ] });
@@ -6404,7 +6404,7 @@ const st = (e) => {
6404
6404
  {
6405
6405
  className: "spaced-text",
6406
6406
  dangerouslySetInnerHTML: {
6407
- __html: h[`segment_disc${g.segMentObj.segmentName.toLowerCase()}`] ?? g.segMentObj.segmentName.toUpperCase() + "DISC"
6407
+ __html: d[`segment_disc${g.segMentObj.segmentName.toLowerCase()}`] ?? g.segMentObj.segmentName.toUpperCase() + "DISC"
6408
6408
  }
6409
6409
  }
6410
6410
  ),
@@ -6419,7 +6419,7 @@ const st = (e) => {
6419
6419
  {
6420
6420
  className: "spaced-text",
6421
6421
  dangerouslySetInnerHTML: {
6422
- __html: g.couponCode ? h.coupon_disc ?? "COUPON DISC" : h.order_disc ?? "ORDER DISC"
6422
+ __html: g.couponCode ? d.coupon_disc ?? "COUPON DISC" : d.order_disc ?? "ORDER DISC"
6423
6423
  }
6424
6424
  }
6425
6425
  ),
@@ -6444,13 +6444,13 @@ const st = (e) => {
6444
6444
  "h5",
6445
6445
  {
6446
6446
  className: "total-qty",
6447
- dangerouslySetInnerHTML: { __html: h[`charges_${S.name.toLowerCase()}`] ?? S.name }
6447
+ dangerouslySetInnerHTML: { __html: d[`charges_${S.name.toLowerCase()}`] ?? S.name }
6448
6448
  }
6449
6449
  ),
6450
6450
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: g.curr + " " + m(S.amt) })
6451
6451
  ] }) })) : "",
6452
6452
  N && N.aftDisc && N.vatTTL !== N.aftDisc ? /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
6453
- /* @__PURE__ */ s.jsx("h5", { className: "total-qty", dangerouslySetInnerHTML: { __html: h.amt_before_tax } }),
6453
+ /* @__PURE__ */ s.jsx("h5", { className: "total-qty", dangerouslySetInnerHTML: { __html: d.amt_before_tax } }),
6454
6454
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: g.curr + " " + m(N.aftDisc) })
6455
6455
  ] }) : "",
6456
6456
  i == "25e5f1e4-68ff-43a7-b042-bebb93f42b94" && N && N.aftDisc && N.vatTTL !== N.aftDisc ? /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
@@ -6460,36 +6460,36 @@ const st = (e) => {
6460
6460
  N.otherCharges && N.otherCharges.length > 0 ? N.otherCharges.map((S) => /* @__PURE__ */ s.jsx(s.Fragment, { children: S.taxOnAmount && S.taxOnAmount != 0 ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6461
6461
  /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
6462
6462
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
6463
- /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: h.cgst } }),
6463
+ /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: d.cgst } }),
6464
6464
  /* @__PURE__ */ s.jsx("span", { children: " @" + S.tax / 2 + "%" })
6465
6465
  ] }) }),
6466
6466
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: g.curr + " " + m(S.taxOnAmount / 2) })
6467
6467
  ] }),
6468
6468
  /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
6469
6469
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
6470
- /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: h[g.taxLabel.toLowerCase()] } }),
6470
+ /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: d[g.taxLabel.toLowerCase()] } }),
6471
6471
  /* @__PURE__ */ s.jsx("span", { children: " @" + S.tax / 2 + "%" })
6472
6472
  ] }) }),
6473
6473
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: g.curr + " " + m(S.taxOnAmount / 2) })
6474
6474
  ] })
6475
6475
  ] }) : "" })) : "",
6476
6476
  g.taxObj && g.taxObj[D] && N ? /* @__PURE__ */ s.jsx(s.Fragment, { children: D === "GST" ? g.taxObj[D].map((S) => {
6477
- let k = new Array();
6477
+ let P = new Array();
6478
6478
  for (const B in S)
6479
6479
  if (S[B] && S[B] != 0) {
6480
6480
  let me = B / 2;
6481
- k.push(
6481
+ P.push(
6482
6482
  /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6483
6483
  /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
6484
6484
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
6485
- /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: h.cgst } }),
6485
+ /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: d.cgst } }),
6486
6486
  /* @__PURE__ */ s.jsx("span", { children: " @" + me + "%" })
6487
6487
  ] }) }),
6488
6488
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: g.curr + " " + m(S[B] / 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
- /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: h[g.taxLabel.toLowerCase()] } }),
6492
+ /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: d[g.taxLabel.toLowerCase()] } }),
6493
6493
  /* @__PURE__ */ s.jsx("span", { children: " @" + me + "%" })
6494
6494
  ] }) }),
6495
6495
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: g.curr + " " + m(S[B] / 2) })
@@ -6497,26 +6497,26 @@ const st = (e) => {
6497
6497
  ] })
6498
6498
  );
6499
6499
  }
6500
- return k;
6500
+ return P;
6501
6501
  }) : g.taxObj[D].map((S) => {
6502
- let k = new Array();
6502
+ let P = new Array();
6503
6503
  for (const B in S)
6504
6504
  if (S[B] && S[B] != 0) {
6505
6505
  let me = B;
6506
- k.push(
6506
+ P.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
- /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: h.vat } }),
6509
+ /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: d.vat } }),
6510
6510
  /* @__PURE__ */ s.jsx("span", { children: " @" + me + "%" })
6511
6511
  ] }) }),
6512
6512
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: g.curr + " " + m(S[B]) })
6513
6513
  ] }) })
6514
6514
  );
6515
6515
  }
6516
- return k;
6516
+ return P;
6517
6517
  }) }) : "",
6518
6518
  N.vatTTL !== (N.total || 0) + (N.aftDisc || 0) + N.taxOnCharges && /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
6519
- /* @__PURE__ */ s.jsx("h5", { className: "total-qty", dangerouslySetInnerHTML: { __html: h.total } }),
6519
+ /* @__PURE__ */ s.jsx("h5", { className: "total-qty", dangerouslySetInnerHTML: { __html: d.total } }),
6520
6520
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: g.curr + " " + m((N.total || 0) + (N.aftDisc || 0) + N.taxOnCharges) })
6521
6521
  ] }),
6522
6522
  i == "25e5f1e4-68ff-43a7-b042-bebb93f42b94" && N.vatTTL !== (N.total || 0) + (N.aftDisc || 0) + N.taxOnCharges && /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
@@ -6527,8 +6527,8 @@ const st = (e) => {
6527
6527
  ] });
6528
6528
  })
6529
6529
  ] });
6530
- }, K = (g, h, { labels: M, doMultipleTax: N, type: O }) => {
6531
- var S, k, B, me, Oe, De, Ae, Ie, ke, Be, it;
6530
+ }, K = (g, d, { labels: M, doMultipleTax: N, type: O }) => {
6531
+ var S, P, B, me, Oe, De, Ae, Ie, ke, Be, it;
6532
6532
  const D = g.discounts;
6533
6533
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6534
6534
  /* @__PURE__ */ s.jsx("hr", {}),
@@ -6537,28 +6537,28 @@ const st = (e) => {
6537
6537
  /* @__PURE__ */ s.jsx(
6538
6538
  "h4",
6539
6539
  {
6540
- className: `items products-heading-name ${P[l].dynamicClassname}`,
6540
+ className: `items products-heading-name ${k[l].dynamicClassname}`,
6541
6541
  dangerouslySetInnerHTML: { __html: M.item_name }
6542
6542
  }
6543
6543
  ),
6544
6544
  /* @__PURE__ */ s.jsx(
6545
6545
  "h4",
6546
6546
  {
6547
- className: `items products-heading-qty ${P[l].dynamicClassname}`,
6547
+ className: `items products-heading-qty ${k[l].dynamicClassname}`,
6548
6548
  dangerouslySetInnerHTML: { __html: M.qty }
6549
6549
  }
6550
6550
  ),
6551
6551
  /* @__PURE__ */ s.jsx(
6552
6552
  "h4",
6553
6553
  {
6554
- className: `items products-heading-rate ${P[l].dynamicClassname}`,
6554
+ className: `items products-heading-rate ${k[l].dynamicClassname}`,
6555
6555
  dangerouslySetInnerHTML: { __html: M.rate }
6556
6556
  }
6557
6557
  ),
6558
6558
  /* @__PURE__ */ s.jsx(
6559
6559
  "h4",
6560
6560
  {
6561
- className: `items products-heading-amt ${P[l].dynamicClassname}`,
6561
+ className: `items products-heading-amt ${k[l].dynamicClassname}`,
6562
6562
  dangerouslySetInnerHTML: { __html: M.amt }
6563
6563
  }
6564
6564
  )
@@ -6570,32 +6570,32 @@ const st = (e) => {
6570
6570
  var wt;
6571
6571
  return /* @__PURE__ */ s.jsxs("div", { style: G.serviceName.startsWith("+ ") ? {} : { paddingTop: "12px" }, children: [
6572
6572
  /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
6573
- /* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-name ${P[l].dynamicClassname}`, style: { lineHeight: 1.2 }, children: [
6573
+ /* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-name ${k[l].dynamicClassname}`, style: { lineHeight: 1.2 }, children: [
6574
6574
  G.status === "RETURNED" ? "(R) " : "",
6575
6575
  G.serviceName.toUpperCase()
6576
6576
  ] }),
6577
- /* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-qty ${P[l].dynamicClassname}`, children: [
6577
+ /* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-qty ${k[l].dynamicClassname}`, children: [
6578
6578
  G.status === "RETURNED" ? "-" : "",
6579
6579
  G.qty
6580
6580
  ] }),
6581
- /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-rate ${P[l].dynamicClassname}`, children: G.serviceRate ? p(G.serviceRate) : "" }),
6582
- /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-amt ${P[l].dynamicClassname}`, children: G.sub_total ? m(G.sub_total) : "" })
6581
+ /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-rate ${k[l].dynamicClassname}`, children: G.serviceRate ? p(G.serviceRate) : "" }),
6582
+ /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-amt ${k[l].dynamicClassname}`, children: G.sub_total ? m(G.sub_total) : "" })
6583
6583
  ] }),
6584
- G.hsnCode && h.printHSNCodeOnBill && /* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-name ${P[l].dynamicClassname}`, style: { lineHeight: 1.2 }, children: [
6584
+ G.hsnCode && d.printHSNCodeOnBill && /* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-name ${k[l].dynamicClassname}`, style: { lineHeight: 1.2 }, children: [
6585
6585
  "HSN: ",
6586
6586
  G.hsnCode
6587
6587
  ] }),
6588
6588
  (wt = G.addons) != null && wt.length ? G.addons.map((Je) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6589
6589
  /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
6590
- /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-name ${P[l].dynamicClassname}`, style: { lineHeight: 1.2 }, children: "+ " + We(Je.serviceName) }),
6591
- /* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-qty ${P[l].dynamicClassname}`, children: [
6590
+ /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-name ${k[l].dynamicClassname}`, style: { lineHeight: 1.2 }, children: "+ " + We(Je.serviceName) }),
6591
+ /* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-qty ${k[l].dynamicClassname}`, children: [
6592
6592
  G.status === "RETURNED" ? "-" : "",
6593
6593
  Je.qty * G.qty
6594
6594
  ] }),
6595
- /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-rate ${P[l].dynamicClassname}` }),
6596
- /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-amt ${P[l].dynamicClassname}` })
6595
+ /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-rate ${k[l].dynamicClassname}` }),
6596
+ /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-amt ${k[l].dynamicClassname}` })
6597
6597
  ] }),
6598
- /* @__PURE__ */ s.jsx("div", { children: Je.hsnCode && h.printHSNCodeOnBill && /* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-name ${P[l].dynamicClassname}`, style: { lineHeight: 1.2 }, children: [
6598
+ /* @__PURE__ */ s.jsx("div", { children: Je.hsnCode && d.printHSNCodeOnBill && /* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-name ${k[l].dynamicClassname}`, style: { lineHeight: 1.2 }, children: [
6599
6599
  "HSN: ",
6600
6600
  Je.hsnCode
6601
6601
  ] }) })
@@ -6605,10 +6605,10 @@ const st = (e) => {
6605
6605
  }),
6606
6606
  /* @__PURE__ */ s.jsx("hr", {})
6607
6607
  ] }),
6608
- /* @__PURE__ */ s.jsxs("div", { className: `bottom-section ${P[l].dynamicClassname} ${je}`, children: [
6608
+ /* @__PURE__ */ s.jsxs("div", { className: `bottom-section ${k[l].dynamicClassname} ${je}`, children: [
6609
6609
  /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", style: { paddingTop: "12px" }, children: [
6610
6610
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", dangerouslySetInnerHTML: { __html: M.subtotal } }),
6611
- /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + m(g.subTotal) })
6611
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + m(g.subTotal) })
6612
6612
  ] }),
6613
6613
  i == "25e5f1e4-68ff-43a7-b042-bebb93f42b94" ? /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
6614
6614
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: "المجموع الفرعي" }),
@@ -6628,9 +6628,9 @@ const st = (e) => {
6628
6628
  ),
6629
6629
  /* @__PURE__ */ s.jsx("span", { children: le(G) })
6630
6630
  ] }) }),
6631
- /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + m(G.discountAmt) })
6631
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + m(G.discountAmt) })
6632
6632
  ] })) : "",
6633
- (k = D.CATEGORY_DISCOUNT) != null && k.length ? D.CATEGORY_DISCOUNT.map((G) => /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${je}`, children: [
6633
+ (P = D.CATEGORY_DISCOUNT) != null && P.length ? D.CATEGORY_DISCOUNT.map((G) => /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${je}`, children: [
6634
6634
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6635
6635
  /* @__PURE__ */ s.jsx(
6636
6636
  "span",
@@ -6643,7 +6643,7 @@ const st = (e) => {
6643
6643
  ),
6644
6644
  /* @__PURE__ */ s.jsx("span", { children: " @" + G.discountValue + "%" })
6645
6645
  ] }) }),
6646
- /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + m(G.discountAmt) })
6646
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + m(G.discountAmt) })
6647
6647
  ] })) : "",
6648
6648
  (B = D.ITEM_DISCOUNT) != null && B.length ? D.ITEM_DISCOUNT.map((G) => /* @__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: [
@@ -6658,7 +6658,7 @@ const st = (e) => {
6658
6658
  ),
6659
6659
  /* @__PURE__ */ s.jsx("span", { children: " @" + G.discountValue + "%" })
6660
6660
  ] }) }),
6661
- /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + m(G.discountAmt) })
6661
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + m(G.discountAmt) })
6662
6662
  ] })) : "",
6663
6663
  (Oe = (me = D.SEGMENT_DISCOUNT) == null ? void 0 : me[0]) != null && Oe.discountAmt ? /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${je}`, children: [
6664
6664
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
@@ -6674,7 +6674,7 @@ const st = (e) => {
6674
6674
  ":",
6675
6675
  /* @__PURE__ */ s.jsx("span", { children: " @" + D.SEGMENT_DISCOUNT[0].discountValue + "%" })
6676
6676
  ] }) }),
6677
- /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + m(D.SEGMENT_DISCOUNT[0].discountAmt) })
6677
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + m(D.SEGMENT_DISCOUNT[0].discountAmt) })
6678
6678
  ] }) : "",
6679
6679
  (Ae = (De = D.COUPON_DISCOUNT) == null ? void 0 : De[0]) != null && Ae.discountAmt ? /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${je}`, children: [
6680
6680
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
@@ -6690,7 +6690,7 @@ const st = (e) => {
6690
6690
  ":",
6691
6691
  /* @__PURE__ */ s.jsx("span", { children: `(${D.COUPON_DISCOUNT[0].discountName.toUpperCase()}) @${D.COUPON_DISCOUNT[0].discountValue}${D.COUPON_DISCOUNT[0].discountType == "RELATIVE" ? "%" : "AMT"}` })
6692
6692
  ] }) }),
6693
- /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + m(D.COUPON_DISCOUNT[0].discountAmt) })
6693
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + m(D.COUPON_DISCOUNT[0].discountAmt) })
6694
6694
  ] }) : "",
6695
6695
  (ke = (Ie = D.ORDER_DISCOUNT) == null ? void 0 : Ie[0]) != null && ke.discountAmt ? /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${je}`, children: [
6696
6696
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
@@ -6706,29 +6706,29 @@ const st = (e) => {
6706
6706
  ":",
6707
6707
  /* @__PURE__ */ s.jsx("span", { children: m(D.ORDER_DISCOUNT[0].discountValue) ? `@${D.ORDER_DISCOUNT[0].discountValue}${D.ORDER_DISCOUNT[0].discountType == "RELATIVE" || D.ORDER_DISCOUNT[0].discountType == "COMPLIMENTARY" ? "%" : "AMT"}` : "" })
6708
6708
  ] }) }),
6709
- /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + m(D.ORDER_DISCOUNT[0].discountAmt) })
6709
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + m(D.ORDER_DISCOUNT[0].discountAmt) })
6710
6710
  ] }) : "",
6711
6711
  i == "25e5f1e4-68ff-43a7-b042-bebb93f42b94" && g && g.orderDisc ? /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div ${je}`, children: [
6712
6712
  /* @__PURE__ */ s.jsxs("h5", { className: "total-qty", children: [
6713
6713
  "  ",
6714
- h.couponCode ? "COUPON DISC" : "خصم الطلب",
6715
- h.couponCode ? `(${h.couponCode.toUpperCase()})` : ""
6714
+ d.couponCode ? "COUPON DISC" : "خصم الطلب",
6715
+ d.couponCode ? `(${d.couponCode.toUpperCase()})` : ""
6716
6716
  ] }),
6717
6717
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty" })
6718
6718
  ] }) : "",
6719
6719
  (Be = g.charges) != null && Be.length ? g.charges.map((G) => /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${je}`, children: [
6720
6720
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: M[`charges_${G.name.toLowerCase()}`] ?? G.name } }) }),
6721
- h.invoiceType == "INCLUSIVE_SIMPLIFIED" ? /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + m(G.amt + G.taxAmt) }) : /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + m(G.amt) })
6721
+ d.invoiceType == "INCLUSIVE_SIMPLIFIED" ? /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + m(G.amt + G.taxAmt) }) : /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + m(G.amt) })
6722
6722
  ] }) })) : "",
6723
- g.subTotal !== g.afterCharges && g.afterCharges !== g.total && h.invoiceType !== "INCLUSIVE_SIMPLIFIED" ? /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${je}`, children: [
6723
+ g.subTotal !== g.afterCharges && g.afterCharges !== g.total && d.invoiceType !== "INCLUSIVE_SIMPLIFIED" ? /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${je}`, children: [
6724
6724
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", dangerouslySetInnerHTML: { __html: M.amt_before_tax } }),
6725
- /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + m(g.afterCharges) })
6725
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + m(g.afterCharges) })
6726
6726
  ] }) : "",
6727
6727
  i == "25e5f1e4-68ff-43a7-b042-bebb93f42b94" && g.subTotal !== g.afterCharges ? /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
6728
6728
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: "المبلغ قبل الضريبة" }),
6729
6729
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty" })
6730
6730
  ] }) : "",
6731
- h.invoiceType !== "INCLUSIVE_SIMPLIFIED" && ((it = g.taxation) != null && it.length) ? g.taxation.map((G) => {
6731
+ d.invoiceType !== "INCLUSIVE_SIMPLIFIED" && ((it = g.taxation) != null && it.length) ? g.taxation.map((G) => {
6732
6732
  if (G.taxAmt)
6733
6733
  return G.taxType === "GST" ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6734
6734
  /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div ${je}`, children: [
@@ -6736,47 +6736,47 @@ const st = (e) => {
6736
6736
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: M.cgst } }),
6737
6737
  /* @__PURE__ */ s.jsx("span", { children: "@" + G.tax / 2 + "%" })
6738
6738
  ] }) }),
6739
- /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + m(G.taxAmt / 2) })
6739
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + m(G.taxAmt / 2) })
6740
6740
  ] }),
6741
6741
  /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div ${je}`, children: [
6742
6742
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
6743
- /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: M[h.taxLabel.toLowerCase()] } }),
6743
+ /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: M[d.taxLabel.toLowerCase()] } }),
6744
6744
  /* @__PURE__ */ s.jsx("span", { children: "@" + G.tax / 2 + "%" })
6745
6745
  ] }) }),
6746
- /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + m(G.taxAmt / 2) })
6746
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + m(G.taxAmt / 2) })
6747
6747
  ] })
6748
6748
  ] }) : /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div ${je}`, children: [
6749
6749
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
6750
6750
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: M.vat } }),
6751
6751
  /* @__PURE__ */ s.jsx("span", { children: "@" + G.tax + "%" })
6752
6752
  ] }) }),
6753
- /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + m(G.taxAmt) })
6753
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + m(G.taxAmt) })
6754
6754
  ] });
6755
6755
  }) : "",
6756
6756
  /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${je}`, children: [
6757
6757
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", dangerouslySetInnerHTML: { __html: M.total } }),
6758
- /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + m(g.total) })
6758
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + m(g.total) })
6759
6759
  ] }),
6760
6760
  N ? /* @__PURE__ */ s.jsx(s.Fragment, { children: O === "GST" ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6761
6761
  /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center", style: { marginTop: "10px" }, children: "- - - - -" }),
6762
6762
  /* @__PURE__ */ s.jsx("div", { className: "space-2rem" })
6763
6763
  ] }) : "" }) : ""
6764
6764
  ] });
6765
- }, W = (g, h) => {
6765
+ }, W = (g, d) => {
6766
6766
  var D, S;
6767
6767
  let M = !1;
6768
6768
  const N = g.distributedData;
6769
6769
  return g.distributedData && (M = Object.keys(g.distributedData).length > 1), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6770
- ((D = N.GST) == null ? void 0 : D.itemList) && K(N.GST, g, { labels: h, doMultipleTax: M, type: "GST" }),
6771
- ((S = N.VAT) == null ? void 0 : S.itemList) && K(N.VAT, g, { labels: h, doMultipleTax: M, type: "VAT" })
6770
+ ((D = N.GST) == null ? void 0 : D.itemList) && K(N.GST, g, { labels: d, doMultipleTax: M, type: "GST" }),
6771
+ ((S = N.VAT) == null ? void 0 : S.itemList) && K(N.VAT, g, { labels: d, doMultipleTax: M, type: "VAT" })
6772
6772
  ] });
6773
6773
  }, ue = (g) => {
6774
- const h = g.services, M = Object.keys(g.services), N = M.length;
6774
+ const d = g.services, M = Object.keys(g.services), N = M.length;
6775
6775
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6776
6776
  /* @__PURE__ */ s.jsx("hr", {}),
6777
6777
  /* @__PURE__ */ s.jsxs("section", { className: `products-section ${je}`, children: [
6778
6778
  /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
6779
- /* @__PURE__ */ s.jsx("h5", { className: "items products-heading-name-kot", children: P[l].itemName }),
6779
+ /* @__PURE__ */ s.jsx("h5", { className: "items products-heading-name-kot", children: k[l].itemName }),
6780
6780
  /* @__PURE__ */ s.jsx("h5", { className: "items products-heading-qty-kot", children: "QTY" })
6781
6781
  ] }),
6782
6782
  /* @__PURE__ */ s.jsx("hr", {})
@@ -6787,18 +6787,18 @@ const st = (e) => {
6787
6787
  D.toUpperCase(),
6788
6788
  ":"
6789
6789
  ] }) }),
6790
- h[D].map((k) => {
6790
+ d[D].map((P) => {
6791
6791
  var B;
6792
6792
  return /* @__PURE__ */ s.jsxs("div", { children: [
6793
6793
  /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
6794
- /* @__PURE__ */ s.jsx("h4", { className: `items products-heading-name-kot ${P[l].dynamicClassname}`, children: We(k.serviceName) }),
6795
- /* @__PURE__ */ s.jsx("h4", { className: `items products-heading-qty-kot ${P[l].dynamicClassname}`, children: k.qty })
6794
+ /* @__PURE__ */ s.jsx("h4", { className: `items products-heading-name-kot ${k[l].dynamicClassname}`, children: We(P.serviceName) }),
6795
+ /* @__PURE__ */ s.jsx("h4", { className: `items products-heading-qty-kot ${k[l].dynamicClassname}`, children: P.qty })
6796
6796
  ] }),
6797
- ((B = k.addons) == null ? void 0 : B.length) && k.addons.map((me) => {
6797
+ ((B = P.addons) == null ? void 0 : B.length) && P.addons.map((me) => {
6798
6798
  var Oe;
6799
6799
  return /* @__PURE__ */ s.jsx("h5", { className: "items products-heading-addon-kot", children: "- " + ((Oe = me.serviceName) == null ? void 0 : Oe.toUpperCase()) });
6800
6800
  }),
6801
- k.instruction && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity", children: /* @__PURE__ */ s.jsx("h5", { className: "items products-heading-addon-kot", children: " (" + k.instruction + ")" }) })
6801
+ P.instruction && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity", children: /* @__PURE__ */ s.jsx("h5", { className: "items products-heading-addon-kot", children: " (" + P.instruction + ")" }) })
6802
6802
  ] });
6803
6803
  }),
6804
6804
  N !== S + 1 && /* @__PURE__ */ s.jsx("br", {})
@@ -6807,12 +6807,12 @@ const st = (e) => {
6807
6807
  ] })
6808
6808
  ] });
6809
6809
  }, H = (g) => {
6810
- const h = g.slice(0, -4), M = g.slice(-4);
6811
- return { firstDigits: h, last4Dgits: M };
6812
- }, Q = (g, h, M, N = {}) => {
6813
- const O = Object.keys(h ?? {});
6814
- let D = [], S, k = "flex-two-items";
6815
- if (N.action === "addCharges" && (k = "display-percentage"), g && O.length) {
6810
+ const d = g.slice(0, -4), M = g.slice(-4);
6811
+ return { firstDigits: d, last4Dgits: M };
6812
+ }, Q = (g, d, M, N = {}) => {
6813
+ const O = Object.keys(d ?? {});
6814
+ let D = [], S, P = "flex-two-items";
6815
+ if (N.action === "addCharges" && (P = "display-percentage"), g && O.length) {
6816
6816
  D.push(
6817
6817
  /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6818
6818
  /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center", children: `${M.toUpperCase()} BREAK-UP` }),
@@ -6827,27 +6827,27 @@ const st = (e) => {
6827
6827
  ] })
6828
6828
  );
6829
6829
  for (let B = 0; B < O.length; B++)
6830
- S = O[B], h[S] && D.push(
6831
- /* @__PURE__ */ s.jsxs("h5", { className: `left-align-entity level3-bold ${k} second-span-right`, children: [
6830
+ S = O[B], d[S] && D.push(
6831
+ /* @__PURE__ */ s.jsxs("h5", { className: `left-align-entity level3-bold ${P} second-span-right`, children: [
6832
6832
  /* @__PURE__ */ s.jsx("span", { children: ` -- ${S.replaceAll("_", " ")}:` }),
6833
- /* @__PURE__ */ s.jsx("span", { children: oe(h[S], o) }),
6834
- N.action === "addCharges" ? /* @__PURE__ */ s.jsx("span", { children: m(fs(g, h[S])) + "%" }) : ""
6833
+ /* @__PURE__ */ s.jsx("span", { children: oe(d[S], o) }),
6834
+ N.action === "addCharges" ? /* @__PURE__ */ s.jsx("span", { children: m(fs(g, d[S])) + "%" }) : ""
6835
6835
  ] })
6836
6836
  );
6837
6837
  D.push(/* @__PURE__ */ s.jsx("hr", {}));
6838
6838
  }
6839
6839
  return D;
6840
6840
  }, Ke = (g) => {
6841
- const h = Object.keys(g.Category), M = Object.keys(g.Addon);
6841
+ const d = Object.keys(g.Category), M = Object.keys(g.Addon);
6842
6842
  let N = new Array();
6843
6843
  return N.push(
6844
6844
  /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6845
6845
  /* @__PURE__ */ s.jsx("h3", { className: "left-align-entity level3-bold", children: "Product Category" }),
6846
6846
  /* @__PURE__ */ s.jsx("hr", { className: "dashed" })
6847
6847
  ] })
6848
- ), h.forEach((O, D) => {
6848
+ ), d.forEach((O, D) => {
6849
6849
  const S = g.Category[O];
6850
- let k = [];
6850
+ let P = [];
6851
6851
  N.push(
6852
6852
  /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6853
6853
  /* @__PURE__ */ s.jsxs("h4", { className: "left-align-entity level3-bold", children: [
@@ -6857,15 +6857,15 @@ const st = (e) => {
6857
6857
  ] }),
6858
6858
  /* @__PURE__ */ s.jsxs("section", { className: "products-section", children: [
6859
6859
  S.forEach((B) => {
6860
- k.push(
6860
+ P.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: B.serviceName }),
6863
- /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-qty-kot ${P["3INCH"].dynamicClassname}`, children: parseFloat(B.qty.toFixed(2)) })
6862
+ /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-name-kot ${k["3INCH"].dynamicClassname}`, children: B.serviceName }),
6863
+ /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-qty-kot ${k["3INCH"].dynamicClassname}`, children: parseFloat(B.qty.toFixed(2)) })
6864
6864
  ] }) })
6865
6865
  );
6866
6866
  }),
6867
- k,
6868
- D != h.length - 1 && /* @__PURE__ */ s.jsx("hr", {})
6867
+ P,
6868
+ D != d.length - 1 && /* @__PURE__ */ s.jsx("hr", {})
6869
6869
  ] })
6870
6870
  ] })
6871
6871
  );
@@ -6877,7 +6877,7 @@ const st = (e) => {
6877
6877
  ] })
6878
6878
  ), M.forEach((O, D) => {
6879
6879
  const S = g.Addon[O];
6880
- let k = [];
6880
+ let P = [];
6881
6881
  N.push(
6882
6882
  /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6883
6883
  /* @__PURE__ */ s.jsxs("h4", { className: "left-align-entity level3-bold", children: [
@@ -6887,14 +6887,14 @@ const st = (e) => {
6887
6887
  ] }),
6888
6888
  /* @__PURE__ */ s.jsxs("section", { className: "products-section", children: [
6889
6889
  S.forEach((B) => {
6890
- k.push(
6890
+ P.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: B.serviceName }),
6893
- /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-qty-kot ${P["3INCH"].dynamicClassname}`, children: parseFloat(B.qty.toFixed(2)) })
6892
+ /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-name-kot ${k["3INCH"].dynamicClassname}`, children: B.serviceName }),
6893
+ /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-qty-kot ${k["3INCH"].dynamicClassname}`, children: parseFloat(B.qty.toFixed(2)) })
6894
6894
  ] }) })
6895
6895
  );
6896
6896
  }),
6897
- k,
6897
+ P,
6898
6898
  D != M.length - 1 && /* @__PURE__ */ s.jsx("hr", { className: "dashed" })
6899
6899
  ] })
6900
6900
  ] })
@@ -6902,7 +6902,7 @@ const st = (e) => {
6902
6902
  })), N;
6903
6903
  }, Qe = (g) => {
6904
6904
  var M;
6905
- const h = {
6905
+ const d = {
6906
6906
  company_mobile: "Mob",
6907
6907
  company_Email: "Email",
6908
6908
  company_GST: "GST",
@@ -6946,10 +6946,10 @@ const st = (e) => {
6946
6946
  if ((M = g == null ? void 0 : g.customBillLabels) != null && M.length) {
6947
6947
  let N;
6948
6948
  for (let O = 0; O < g.customBillLabels.length; O++)
6949
- N = g.customBillLabels[O], h[N.defaultName] = N.displayName;
6949
+ N = g.customBillLabels[O], d[N.defaultName] = N.displayName;
6950
6950
  }
6951
- return h;
6952
- }, St = (g, h, M, N) => {
6951
+ return d;
6952
+ }, St = (g, d, M, N) => {
6953
6953
  var B, me, Oe, De, Ae, Ie, ke, Be, it, G, wt, Je, Jt, Xt, Os, es, ts, Ms, As, Es, Rs, Ls, ks, Ps, Rt, ss, lt, Lt, kt, ns, Fs, rs, Ds, as, is, Ys, Us, ls, os, $s, Hs;
6954
6954
  const O = Qe(r.customLabelsMap), D = Cs(bd(r.paymentModes), "internalName"), S = (X) => {
6955
6955
  var j;
@@ -6958,9 +6958,9 @@ const st = (e) => {
6958
6958
  if (g === "BILL") {
6959
6959
  let X;
6960
6960
  if (l === "A4" || l === "A5") {
6961
- let j = { ...h }, y = 0, w = j.distributedData;
6961
+ let j = { ...d }, y = 0, w = j.distributedData;
6962
6962
  const I = w.discounts;
6963
- X = /* @__PURE__ */ s.jsx("div", { className: `invoiceContainer main-div ${P[l].dynamicClassname}`, children: /* @__PURE__ */ s.jsxs("div", { id: "page-wrap", children: [
6963
+ X = /* @__PURE__ */ s.jsx("div", { className: `invoiceContainer main-div ${k[l].dynamicClassname}`, children: /* @__PURE__ */ s.jsxs("div", { id: "page-wrap", children: [
6964
6964
  /* @__PURE__ */ s.jsx("table", { width: "100%", className: "custom-table custom-table-bordered", children: /* @__PURE__ */ s.jsxs("tbody", { children: [
6965
6965
  /* @__PURE__ */ s.jsxs("tr", { children: [
6966
6966
  /* @__PURE__ */ s.jsxs("td", { colSpan: 9, children: [
@@ -7073,9 +7073,9 @@ const st = (e) => {
7073
7073
  )
7074
7074
  ] }) }),
7075
7075
  /* @__PURE__ */ s.jsx("hr", {}),
7076
- j.upiId && h.companyInfo.companyName && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
7076
+ j.upiId && d.companyInfo.companyName && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
7077
7077
  /* @__PURE__ */ s.jsx("tr", { children: /* @__PURE__ */ s.jsx("td", { width: "50%", className: "font-weight-bold", children: "Scan To Pay" }) }),
7078
- /* @__PURE__ */ s.jsx("tr", { children: /* @__PURE__ */ s.jsx("td", { width: "50%", children: /* @__PURE__ */ s.jsx("div", { className: "image-bill", children: F(h.upiId, h.orderId, h.companyInfo.companyName, h.paidAmt, {
7078
+ /* @__PURE__ */ s.jsx("tr", { children: /* @__PURE__ */ s.jsx("td", { width: "50%", children: /* @__PURE__ */ s.jsx("div", { className: "image-bill", children: F(d.upiId, d.orderId, d.companyInfo.companyName, d.paidAmt, {
7079
7079
  size: 100
7080
7080
  }) }) }) })
7081
7081
  ] }),
@@ -7210,7 +7210,7 @@ const st = (e) => {
7210
7210
  /* @__PURE__ */ s.jsx("td", { width: "50%", children: /* @__PURE__ */ s.jsx("strong", { dangerouslySetInnerHTML: { __html: O.grand_total } }) }),
7211
7211
  /* @__PURE__ */ s.jsx("td", { className: "text-align-right", width: "50%", children: $(j.finalAmount, o) })
7212
7212
  ] }),
7213
- (Xt = h == null ? void 0 : h.custoutStandingData) != null && Xt.balanceAmt ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
7213
+ (Xt = d == null ? void 0 : d.custoutStandingData) != null && Xt.balanceAmt ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
7214
7214
  /* @__PURE__ */ s.jsxs("tr", { className: "font-weight-bold subtotalTr", children: [
7215
7215
  /* @__PURE__ */ s.jsx("td", { width: "50%", children: /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: O.previous_outstanding } }) }),
7216
7216
  /* @__PURE__ */ s.jsx("td", { className: "text-align-right", width: "50%", children: $((Os = j == null ? void 0 : j.custoutStandingData) == null ? void 0 : Os.balanceAmt, o) })
@@ -7224,7 +7224,7 @@ const st = (e) => {
7224
7224
  /* @__PURE__ */ s.jsx("td", { width: "50%", children: /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: O.rewards_redeemed } }) }),
7225
7225
  /* @__PURE__ */ s.jsx("td", { className: "text-align-right", width: "50%", children: $(j.rewardAmt, o) })
7226
7226
  ] }) : "",
7227
- (ts = h.paymentMethods) != null && ts.length ? h.paymentMethods.map((b) => {
7227
+ (ts = d.paymentMethods) != null && ts.length ? d.paymentMethods.map((b) => {
7228
7228
  var ne;
7229
7229
  if (b.paidAmt)
7230
7230
  return /* @__PURE__ */ s.jsxs("tr", { className: "subtotalTr", children: [
@@ -7244,13 +7244,13 @@ const st = (e) => {
7244
7244
  b.isRefund ? /* @__PURE__ */ s.jsx("td", { className: "text-align-right", width: "50%", children: "(" + $(b.paidAmt, o) + ")" }) : /* @__PURE__ */ s.jsx("td", { className: "text-align-right", width: "50%", children: $(b.paidAmt, o) })
7245
7245
  ] });
7246
7246
  }) : "",
7247
- j.balanceAmt && h.balanceAmt != 0 ? /* @__PURE__ */ s.jsxs("tr", { className: "subtotalTr", children: [
7247
+ j.balanceAmt && d.balanceAmt != 0 ? /* @__PURE__ */ s.jsxs("tr", { className: "subtotalTr", children: [
7248
7248
  /* @__PURE__ */ s.jsx("td", { width: "50%", children: /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: O.balance_amt } }) }),
7249
- /* @__PURE__ */ s.jsx("td", { className: "text-align-right", width: "50%", children: $(h.balanceAmt, o) })
7249
+ /* @__PURE__ */ s.jsx("td", { className: "text-align-right", width: "50%", children: $(d.balanceAmt, o) })
7250
7250
  ] }) : "",
7251
- h.balPoint && !Number.isNaN(h.balPoint) ? /* @__PURE__ */ s.jsxs("tr", { className: "subtotalTr", children: [
7251
+ d.balPoint && !Number.isNaN(d.balPoint) ? /* @__PURE__ */ s.jsxs("tr", { className: "subtotalTr", children: [
7252
7252
  /* @__PURE__ */ s.jsx("td", { width: "50%", children: /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: O.reward_point_balance } }) }),
7253
- /* @__PURE__ */ s.jsx("td", { className: "text-align-right", width: "50%", children: h.balPoint })
7253
+ /* @__PURE__ */ s.jsx("td", { className: "text-align-right", width: "50%", children: d.balPoint })
7254
7254
  ] }) : "",
7255
7255
  /* @__PURE__ */ s.jsx("tr", { className: "subtotalTr", children: /* @__PURE__ */ s.jsxs("td", { className: "text-center", width: "100%", children: [
7256
7256
  /* @__PURE__ */ s.jsx("hr", {}),
@@ -7271,103 +7271,103 @@ const st = (e) => {
7271
7271
  j.disabledPoweredBy ? "" : /* @__PURE__ */ s.jsx("p", { className: "single-entity-and-center f-12 mt-2 avoid-page-break", children: "Powered By: www.recaho.com" })
7272
7272
  ] }) });
7273
7273
  } else
7274
- X = /* @__PURE__ */ s.jsx("div", { className: "main-div bill", style: { width: P[l].paperSize }, children: /* @__PURE__ */ s.jsxs("div", { style: { width: "100%", textAlign: "left", marginLeft: "auto" }, children: [
7275
- h.duplicateBill ? /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center", children: "DUPLICATE BILL" }) : "",
7274
+ X = /* @__PURE__ */ s.jsx("div", { className: "main-div bill", style: { width: k[l].paperSize }, children: /* @__PURE__ */ s.jsxs("div", { style: { width: "100%", textAlign: "left", marginLeft: "auto" }, children: [
7275
+ d.duplicateBill ? /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center", children: "DUPLICATE BILL" }) : "",
7276
7276
  /* @__PURE__ */ s.jsx("br", {}),
7277
- M && /* @__PURE__ */ s.jsx("div", { className: "image-bill", children: /* @__PURE__ */ s.jsx("img", { src: M, className: "single-entity-and-center", style: { width: P[l].logoWidth } }) }),
7278
- /* @__PURE__ */ s.jsxs("div", { className: `details-section ${P[l].dynamicClassname}`, children: [
7279
- !M && h.companyInfo.companyName && h.companyInfo.companyName != "" && /* @__PURE__ */ s.jsx("h1", { className: "single-entity-and-center", children: h.companyInfo.companyName }),
7280
- h.companyInfo.companyAddress && h.companyInfo.companyAddress !== "" && /* @__PURE__ */ s.jsx("h3", { className: "single-entity-and-center", dangerouslySetInnerHTML: { __html: h.companyInfo.companyAddress } }),
7281
- h.companyInfo.companyContact && h.companyInfo.companyContact !== "" && /* @__PURE__ */ s.jsx("h3", { className: "single-entity-and-center", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7277
+ M && /* @__PURE__ */ s.jsx("div", { className: "image-bill", children: /* @__PURE__ */ s.jsx("img", { src: M, className: "single-entity-and-center", style: { width: k[l].logoWidth } }) }),
7278
+ /* @__PURE__ */ s.jsxs("div", { className: `details-section ${k[l].dynamicClassname}`, children: [
7279
+ !M && d.companyInfo.companyName && d.companyInfo.companyName != "" && /* @__PURE__ */ s.jsx("h1", { className: "single-entity-and-center", children: d.companyInfo.companyName }),
7280
+ d.companyInfo.companyAddress && d.companyInfo.companyAddress !== "" && /* @__PURE__ */ s.jsx("h3", { className: "single-entity-and-center", dangerouslySetInnerHTML: { __html: d.companyInfo.companyAddress } }),
7281
+ d.companyInfo.companyContact && d.companyInfo.companyContact !== "" && /* @__PURE__ */ s.jsx("h3", { className: "single-entity-and-center", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7282
7282
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: O.company_mobile } }),
7283
7283
  ": ",
7284
- /* @__PURE__ */ s.jsx("span", { children: h.companyInfo.companyContact })
7284
+ /* @__PURE__ */ s.jsx("span", { children: d.companyInfo.companyContact })
7285
7285
  ] }) }),
7286
- h.companyInfo.companyEmail && h.companyInfo.companyEmail !== "" && /* @__PURE__ */ s.jsx("h3", { className: "single-entity-and-center", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7286
+ d.companyInfo.companyEmail && d.companyInfo.companyEmail !== "" && /* @__PURE__ */ s.jsx("h3", { className: "single-entity-and-center", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7287
7287
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: O.company_Email } }),
7288
7288
  ": ",
7289
- /* @__PURE__ */ s.jsx("span", { children: h.companyInfo.companyEmail })
7289
+ /* @__PURE__ */ s.jsx("span", { children: d.companyInfo.companyEmail })
7290
7290
  ] }) }),
7291
- h.fssai && h.fssai !== "" && /* @__PURE__ */ s.jsx("h3", { className: "single-entity-and-center", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7291
+ d.fssai && d.fssai !== "" && /* @__PURE__ */ s.jsx("h3", { className: "single-entity-and-center", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7292
7292
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: O.company_FSSAI } }),
7293
7293
  ": ",
7294
- /* @__PURE__ */ s.jsx("span", { children: h.fssai })
7294
+ /* @__PURE__ */ s.jsx("span", { children: d.fssai })
7295
7295
  ] }) }),
7296
- h.gst && h.gst !== "" && /* @__PURE__ */ s.jsx("h3", { className: "single-entity-and-center", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7296
+ d.gst && d.gst !== "" && /* @__PURE__ */ s.jsx("h3", { className: "single-entity-and-center", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7297
7297
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: O.company_GST } }),
7298
7298
  ": ",
7299
- /* @__PURE__ */ s.jsx("span", { children: h.gst })
7299
+ /* @__PURE__ */ s.jsx("span", { children: d.gst })
7300
7300
  ] }) }),
7301
- h.vatNo && h.vatNo !== "" && /* @__PURE__ */ s.jsx("h3", { className: "single-entity-and-center", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7301
+ d.vatNo && d.vatNo !== "" && /* @__PURE__ */ s.jsx("h3", { className: "single-entity-and-center", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7302
7302
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: O.company_VAT } }),
7303
7303
  ": ",
7304
- /* @__PURE__ */ s.jsx("span", { children: h.vatNo })
7304
+ /* @__PURE__ */ s.jsx("span", { children: d.vatNo })
7305
7305
  ] }) }),
7306
7306
  /* @__PURE__ */ s.jsx("hr", {}),
7307
- h.orderFrom && /* @__PURE__ */ s.jsx("h2", { className: "single-entity-and-center level2-bold", children: h.orderFrom }),
7308
- h.area && /* @__PURE__ */ s.jsxs("h3", { className: "single-entity-and-center level2-bold", children: [
7309
- h.area,
7307
+ d.orderFrom && /* @__PURE__ */ s.jsx("h2", { className: "single-entity-and-center level2-bold", children: d.orderFrom }),
7308
+ d.area && /* @__PURE__ */ s.jsxs("h3", { className: "single-entity-and-center level2-bold", children: [
7309
+ d.area,
7310
7310
  " : ",
7311
- h.tableName ? h.tableName : h.tableNo
7311
+ d.tableName ? d.tableName : d.tableNo
7312
7312
  ] }),
7313
- h.tokenId && /* @__PURE__ */ s.jsx("h2", { className: "single-entity-and-center level2-bold", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7313
+ d.tokenId && /* @__PURE__ */ s.jsx("h2", { className: "single-entity-and-center level2-bold", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7314
7314
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: O.token_no } }),
7315
7315
  " ",
7316
- /* @__PURE__ */ s.jsx("span", { children: h.tokenId })
7316
+ /* @__PURE__ */ s.jsx("span", { children: d.tokenId })
7317
7317
  ] }) }),
7318
- h.parentOrderRef && /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center", children: "RETURN/EXCHANGE" })
7318
+ d.parentOrderRef && /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center", children: "RETURN/EXCHANGE" })
7319
7319
  ] }),
7320
7320
  /* @__PURE__ */ s.jsx("hr", {}),
7321
- /* @__PURE__ */ s.jsxs("div", { className: `details-section ${P[l].dynamicClassname} ${je}`, children: [
7322
- h.customerInfo.custName && h.customerInfo.custName !== "" && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7321
+ /* @__PURE__ */ s.jsxs("div", { className: `details-section ${k[l].dynamicClassname} ${je}`, children: [
7322
+ d.customerInfo.custName && d.customerInfo.custName !== "" && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7323
7323
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: O.name } }),
7324
7324
  ": ",
7325
- /* @__PURE__ */ s.jsx("span", { children: h.customerInfo.custName })
7325
+ /* @__PURE__ */ s.jsx("span", { children: d.customerInfo.custName })
7326
7326
  ] }) }),
7327
- h.customerInfo.custContact && h.customerInfo.custContact !== "" && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7327
+ d.customerInfo.custContact && d.customerInfo.custContact !== "" && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7328
7328
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: O.mobile } }),
7329
7329
  ": ",
7330
- /* @__PURE__ */ s.jsx("span", { children: h.customerInfo.custContact })
7330
+ /* @__PURE__ */ s.jsx("span", { children: d.customerInfo.custContact })
7331
7331
  ] }) }),
7332
- h.customerInfo.custAddress && h.customerInfo.custAddress !== "" && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7332
+ d.customerInfo.custAddress && d.customerInfo.custAddress !== "" && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7333
7333
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: O.address } }),
7334
7334
  ": ",
7335
- /* @__PURE__ */ s.jsx("span", { children: h.customerInfo.custAddress })
7335
+ /* @__PURE__ */ s.jsx("span", { children: d.customerInfo.custAddress })
7336
7336
  ] }) }),
7337
- bt(h.appliedDiscounts ?? [], "COMPLIMENTARY", "discountType").discountType && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level2-bold", dangerouslySetInnerHTML: { __html: O.complementary_disc } }),
7338
- h.orderId && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity", style: { flexShrink: 0 }, children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7337
+ bt(d.appliedDiscounts ?? [], "COMPLIMENTARY", "discountType").discountType && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level2-bold", dangerouslySetInnerHTML: { __html: O.complementary_disc } }),
7338
+ d.orderId && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity", style: { flexShrink: 0 }, children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7339
7339
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: O.order_no } }),
7340
7340
  ": ",
7341
- /* @__PURE__ */ s.jsx("span", { children: h.orderId })
7341
+ /* @__PURE__ */ s.jsx("span", { children: d.orderId })
7342
7342
  ] }) }),
7343
- h.orderInfo.orderDate && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7343
+ d.orderInfo.orderDate && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7344
7344
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: O.date } }),
7345
7345
  ":",
7346
- /* @__PURE__ */ s.jsx("span", { children: h.orderInfo.orderDate })
7346
+ /* @__PURE__ */ s.jsx("span", { children: d.orderInfo.orderDate })
7347
7347
  ] }) }),
7348
- h.deliveryTimestamp && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7348
+ d.deliveryTimestamp && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7349
7349
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: O.delivery_date } }),
7350
7350
  ":",
7351
- /* @__PURE__ */ s.jsx("span", { children: h.deliveryTimestamp })
7351
+ /* @__PURE__ */ s.jsx("span", { children: d.deliveryTimestamp })
7352
7352
  ] }) }),
7353
- h.captainName && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7353
+ d.captainName && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7354
7354
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: O.captain_name } }),
7355
7355
  ":",
7356
- /* @__PURE__ */ s.jsx("span", { children: h.captainName })
7356
+ /* @__PURE__ */ s.jsx("span", { children: d.captainName })
7357
7357
  ] }) })
7358
7358
  ] }),
7359
- (Ms = h.customFields) != null && Ms.length ? /* @__PURE__ */ s.jsxs("div", { className: `details-section ${P[l].dynamicClassname}`, children: [
7359
+ (Ms = d.customFields) != null && Ms.length ? /* @__PURE__ */ s.jsxs("div", { className: `details-section ${k[l].dynamicClassname}`, children: [
7360
7360
  /* @__PURE__ */ s.jsx("hr", {}),
7361
- h.customFields.map((j) => /* @__PURE__ */ s.jsx("h4", { className: "left-align-entity", children: j.customName + ": " + j.customValue }))
7361
+ d.customFields.map((j) => /* @__PURE__ */ s.jsx("h4", { className: "left-align-entity", children: j.customName + ": " + j.customValue }))
7362
7362
  ] }) : "",
7363
- h.newFormat ? W(h, O) : V(h, O),
7363
+ d.newFormat ? W(d, O) : V(d, O),
7364
7364
  /* @__PURE__ */ s.jsx("br", {}),
7365
- /* @__PURE__ */ s.jsxs("div", { className: `bottom-section ${P[l].dynamicClassname}`, children: [
7365
+ /* @__PURE__ */ s.jsxs("div", { className: `bottom-section ${k[l].dynamicClassname}`, children: [
7366
7366
  /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
7367
7367
  /* @__PURE__ */ s.jsx(
7368
7368
  "h6",
7369
7369
  {
7370
- className: `total-qty ${(As = h.custoutStandingData) != null && As.balanceAmt || h.rewardAmt && h.paymentMethods && h.paymentMethods.length > 0 ? "level3-bold" : "level2-bold"}`,
7370
+ className: `total-qty ${(As = d.custoutStandingData) != null && As.balanceAmt || d.rewardAmt && d.paymentMethods && d.paymentMethods.length > 0 ? "level3-bold" : "level2-bold"}`,
7371
7371
  style: { fontSize: l === "2INCH" || l === "1.8INCH" ? "1.50rem" : "1.75rem" },
7372
7372
  dangerouslySetInnerHTML: { __html: O.grand_total }
7373
7373
  }
@@ -7375,18 +7375,18 @@ const st = (e) => {
7375
7375
  /* @__PURE__ */ s.jsx(
7376
7376
  "h6",
7377
7377
  {
7378
- className: `actual-qty ${(Es = h.custoutStandingData) != null && Es.balanceAmt || h.rewardAmt && h.paymentMethods && h.paymentMethods.length > 0 ? "level3-bold" : "level2-bold"}`,
7378
+ className: `actual-qty ${(Es = d.custoutStandingData) != null && Es.balanceAmt || d.rewardAmt && d.paymentMethods && d.paymentMethods.length > 0 ? "level3-bold" : "level2-bold"}`,
7379
7379
  style: { fontSize: l === "2INCH" || l === "1.8INCH" ? "1.40rem" : "1.75rem" },
7380
- children: h.curr + " " + m(h.finalAmount)
7380
+ children: d.curr + " " + m(d.finalAmount)
7381
7381
  }
7382
7382
  )
7383
7383
  ] }),
7384
- (Rs = h.custoutStandingData) != null && Rs.balanceAmt ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
7384
+ (Rs = d.custoutStandingData) != null && Rs.balanceAmt ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
7385
7385
  /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
7386
7386
  /* @__PURE__ */ s.jsx("h5", { children: /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: O.previous_outstanding } }) }),
7387
- /* @__PURE__ */ s.jsx("h5", { children: h.curr + " " + m(h.custoutStandingData.balanceAmt) })
7387
+ /* @__PURE__ */ s.jsx("h5", { children: d.curr + " " + m(d.custoutStandingData.balanceAmt) })
7388
7388
  ] }),
7389
- !h.rewardAmt && !h.paymentMethods ? /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
7389
+ !d.rewardAmt && !d.paymentMethods ? /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
7390
7390
  /* @__PURE__ */ s.jsx(
7391
7391
  "h6",
7392
7392
  {
@@ -7400,7 +7400,7 @@ const st = (e) => {
7400
7400
  {
7401
7401
  className: "actual-qty level2-bold",
7402
7402
  style: { fontSize: l === "2INCH" || l === "1.8INCH" ? "1.40rem" : "1.75rem" },
7403
- children: h.curr + " " + m(h.finalAmount + h.custoutStandingData.balanceAmt)
7403
+ children: d.curr + " " + m(d.finalAmount + d.custoutStandingData.balanceAmt)
7404
7404
  }
7405
7405
  )
7406
7406
  ] }) : ""
@@ -7422,15 +7422,15 @@ const st = (e) => {
7422
7422
  }
7423
7423
  )
7424
7424
  ] }) : "",
7425
- h.rewardAmt ? /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
7425
+ d.rewardAmt ? /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
7426
7426
  /* @__PURE__ */ s.jsxs("h5", { children: [
7427
7427
  "- ",
7428
7428
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: O.rewards_redeemed } }),
7429
- /* @__PURE__ */ s.jsx("span", { children: "(" + h.usedPoints + " Points)" })
7429
+ /* @__PURE__ */ s.jsx("span", { children: "(" + d.usedPoints + " Points)" })
7430
7430
  ] }),
7431
- /* @__PURE__ */ s.jsx("h5", { children: h.curr + " " + h.rewardAmt })
7431
+ /* @__PURE__ */ s.jsx("h5", { children: d.curr + " " + d.rewardAmt })
7432
7432
  ] }) : "",
7433
- h.paymentMethods && h.paymentMethods.length ? h.paymentMethods.map((j) => {
7433
+ d.paymentMethods && d.paymentMethods.length ? d.paymentMethods.map((j) => {
7434
7434
  var y;
7435
7435
  if (j.paidAmt)
7436
7436
  return /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${je}`, children: [
@@ -7446,10 +7446,10 @@ const st = (e) => {
7446
7446
  ),
7447
7447
  /* @__PURE__ */ s.jsx("span", { children: j.isRefund ? "(Refund)" : "" })
7448
7448
  ] }),
7449
- /* @__PURE__ */ s.jsx("h5", { children: j.isRefund ? /* @__PURE__ */ s.jsx(s.Fragment, { children: h.curr + " (" + m(j.paidAmt) + ")" }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: h.curr + " " + m(j.paidAmt) }) })
7449
+ /* @__PURE__ */ s.jsx("h5", { children: j.isRefund ? /* @__PURE__ */ s.jsx(s.Fragment, { children: d.curr + " (" + m(j.paidAmt) + ")" }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: d.curr + " " + m(j.paidAmt) }) })
7450
7450
  ] });
7451
7451
  }) : "",
7452
- h.rewardAmt && !h.paymentMethods ? /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
7452
+ d.rewardAmt && !d.paymentMethods ? /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
7453
7453
  /* @__PURE__ */ s.jsx(
7454
7454
  "h6",
7455
7455
  {
@@ -7463,114 +7463,114 @@ const st = (e) => {
7463
7463
  {
7464
7464
  className: "actual-qty level2-bold",
7465
7465
  style: { fontSize: l === "2INCH" || l === "1.8INCH" ? "1.40rem" : "1.75rem" },
7466
- children: h.curr + " " + m(h.finalAmount + (((Ls = h == null ? void 0 : h.custoutStandingData) == null ? void 0 : Ls.balanceAmt) || 0) - h.rewardAmt)
7466
+ children: d.curr + " " + m(d.finalAmount + (((Ls = d == null ? void 0 : d.custoutStandingData) == null ? void 0 : Ls.balanceAmt) || 0) - d.rewardAmt)
7467
7467
  }
7468
7468
  )
7469
7469
  ] }) }) : "",
7470
- Rh((ks = h.convertedCurrValue) == null ? void 0 : ks.value) ? /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${je}`, children: [
7470
+ Rh((ks = d.convertedCurrValue) == null ? void 0 : ks.value) ? /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${je}`, children: [
7471
7471
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty" }),
7472
7472
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: `(${$(
7473
- h.convertedCurrValue.value,
7474
- h.convertedCurrValue.curr
7473
+ d.convertedCurrValue.value,
7474
+ d.convertedCurrValue.curr
7475
7475
  )})` })
7476
7476
  ] }) : "",
7477
- h.balanceAmt && h.balanceAmt != 0 ? /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
7477
+ d.balanceAmt && d.balanceAmt != 0 ? /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
7478
7478
  /* @__PURE__ */ s.jsx("h5", { dangerouslySetInnerHTML: { __html: O.balance_amt } }),
7479
- /* @__PURE__ */ s.jsx("h5", { children: h.curr + " " + m(h.balanceAmt) })
7479
+ /* @__PURE__ */ s.jsx("h5", { children: d.curr + " " + m(d.balanceAmt) })
7480
7480
  ] }) : "",
7481
7481
  /* @__PURE__ */ s.jsx("hr", {})
7482
7482
  ] }),
7483
- h.earnPoints && h.paymentMethods ? /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
7483
+ d.earnPoints && d.paymentMethods ? /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
7484
7484
  /* @__PURE__ */ s.jsx("h6", { className: "total-qty line-gaps", children: "EARN POINTS" }),
7485
- /* @__PURE__ */ s.jsx("h6", { className: "actual-qty", children: h.earnPoints })
7485
+ /* @__PURE__ */ s.jsx("h6", { className: "actual-qty", children: d.earnPoints })
7486
7486
  ] }) : "",
7487
- (h.balPoint || h.earnPoints) && !Number.isNaN(h.balPoint || h.earnPoints) ? /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
7487
+ (d.balPoint || d.earnPoints) && !Number.isNaN(d.balPoint || d.earnPoints) ? /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
7488
7488
  /* @__PURE__ */ s.jsx("h6", { className: "total-qty line-gaps", dangerouslySetInnerHTML: { __html: O.reward_point_balance } }),
7489
- /* @__PURE__ */ s.jsx("h6", { className: "actual-qty", children: h.balPoint + h.earnPoints || 0 })
7489
+ /* @__PURE__ */ s.jsx("h6", { className: "actual-qty", children: d.balPoint + d.earnPoints || 0 })
7490
7490
  ] }) : "",
7491
- h.invoiceType === "INCLUSIVE_SIMPLIFIED" && ((Ps = h.taxation) != null && Ps.length) ? /* @__PURE__ */ s.jsxs("div", { children: [
7492
- /* @__PURE__ */ s.jsx("div", { className: "single-entity-and-center", style: { marginTop: "6px" }, children: /* @__PURE__ */ s.jsx("h6", { children: "Tax Summary" }) }),
7491
+ d.invoiceType === "INCLUSIVE_SIMPLIFIED" && ((Ps = d.taxation) != null && Ps.length) ? /* @__PURE__ */ s.jsxs("div", { children: [
7492
+ /* @__PURE__ */ s.jsx("div", { className: "single-entity-and-center", style: { marginTop: "6px" }, children: /* @__PURE__ */ s.jsx("h6", { className: "level2-bold", children: "Tax Summary" }) }),
7493
7493
  /* @__PURE__ */ s.jsx("div", { className: "single-entity-and-center", style: { marginTop: "6px" }, children: /* @__PURE__ */ s.jsxs("table", { border: "1", style: { textAlign: "center", margin: "0 auto", marginBottom: "6px", width: "100%" }, children: [
7494
- /* @__PURE__ */ s.jsxs("tr", { children: [
7494
+ /* @__PURE__ */ s.jsxs("tr", { className: k[l].dynamicClassname, children: [
7495
7495
  /* @__PURE__ */ s.jsx("th", { children: "Tax Name" }),
7496
7496
  /* @__PURE__ */ s.jsx("th", { children: "Taxable Amt" }),
7497
7497
  /* @__PURE__ */ s.jsx("th", { children: "Tax Amt" })
7498
7498
  ] }),
7499
- h.taxation.map((j) => {
7499
+ d.taxation.map((j) => {
7500
7500
  if (j.taxAmt)
7501
7501
  return j.taxType === "GST" ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
7502
- /* @__PURE__ */ s.jsxs("tr", { children: [
7502
+ /* @__PURE__ */ s.jsxs("tr", { className: k[l].dynamicClassname, children: [
7503
7503
  /* @__PURE__ */ s.jsx("td", { dangerouslySetInnerHTML: { __html: `${O.cgst} ${j.tax / 2}%` } }),
7504
- /* @__PURE__ */ s.jsx("td", { children: dt(j.taxableAmt, o) }),
7505
- /* @__PURE__ */ s.jsx("td", { children: dt(j.taxAmt / 2, o) })
7504
+ /* @__PURE__ */ s.jsx("td", { children: d.curr + " " + dt(j.taxableAmt, o) }),
7505
+ /* @__PURE__ */ s.jsx("td", { children: d.curr + " " + dt(j.taxAmt / 2, o) })
7506
7506
  ] }),
7507
- /* @__PURE__ */ s.jsxs("tr", { children: [
7508
- /* @__PURE__ */ s.jsx("td", { dangerouslySetInnerHTML: { __html: `${O[h.taxLabel.toLowerCase()]} ${j.tax / 2}%` } }),
7509
- /* @__PURE__ */ s.jsx("td", { children: dt(j.taxableAmt, o) }),
7510
- /* @__PURE__ */ s.jsx("td", { children: dt(j.taxAmt / 2, o) })
7507
+ /* @__PURE__ */ s.jsxs("tr", { className: k[l].dynamicClassname, children: [
7508
+ /* @__PURE__ */ s.jsx("td", { dangerouslySetInnerHTML: { __html: `${O[d.taxLabel.toLowerCase()]} ${j.tax / 2}%` } }),
7509
+ /* @__PURE__ */ s.jsx("td", { children: d.curr + " " + dt(j.taxableAmt, o) }),
7510
+ /* @__PURE__ */ s.jsx("td", { children: d.curr + " " + dt(j.taxAmt / 2, o) })
7511
7511
  ] })
7512
- ] }) : /* @__PURE__ */ s.jsxs("tr", { children: [
7512
+ ] }) : /* @__PURE__ */ s.jsxs("tr", { className: k[l].dynamicClassname, children: [
7513
7513
  /* @__PURE__ */ s.jsx("td", { dangerouslySetInnerHTML: { __html: `${O.vat} ${j.tax}%` } }),
7514
- /* @__PURE__ */ s.jsx("td", { children: dt(j.taxableAmt, o) }),
7515
- /* @__PURE__ */ s.jsx("td", { children: dt(j.taxAmt, o) })
7514
+ /* @__PURE__ */ s.jsx("td", { children: d.curr + " " + dt(j.taxableAmt, o) }),
7515
+ /* @__PURE__ */ s.jsx("td", { children: d.curr + " " + dt(j.taxAmt, o) })
7516
7516
  ] });
7517
7517
  })
7518
7518
  ] }) })
7519
7519
  ] }) : "",
7520
- h.upiId && h.companyInfo.companyName && /* @__PURE__ */ s.jsxs("div", { className: "single-entity-and-center", children: [
7520
+ d.upiId && d.companyInfo.companyName && /* @__PURE__ */ s.jsxs("div", { className: "single-entity-and-center", children: [
7521
7521
  /* @__PURE__ */ s.jsx("h6", { style: { marginTop: "6px" }, children: "Scan this QRCode to Pay" }),
7522
- F(h.upiId, h.orderId, h.companyInfo.companyName, h.paidAmount)
7522
+ F(d.upiId, d.orderId, d.companyInfo.companyName, d.paidAmount)
7523
7523
  ] }),
7524
- h.curr === "SAR" && r.vatNo && /* @__PURE__ */ s.jsxs("div", { className: "single-entity-and-center", children: [
7524
+ d.curr === "SAR" && r.vatNo && /* @__PURE__ */ s.jsxs("div", { className: "single-entity-and-center", children: [
7525
7525
  /* @__PURE__ */ s.jsx("h6", { style: { marginTop: "6px" }, children: "Scan with ZATCA app for invoice details." }),
7526
- Y(r.vatNo, h)
7526
+ Y(r.vatNo, d)
7527
7527
  ] }),
7528
- N ? /* @__PURE__ */ s.jsx("div", { className: "image-bill", children: /* @__PURE__ */ s.jsx("img", { src: `${N}`, className: "single-entity-and-center", style: { width: P[l].logoWidth } }) }) : "",
7529
- h.footerMessage ? /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center", dangerouslySetInnerHTML: { __html: h.footerMessage } }) : "",
7530
- h.printby && h.printOperatorInfo ? /* @__PURE__ */ s.jsx("h6", { className: "left-align-entity", children: `Printed By:${h.printby}` }) : "",
7531
- h.printTime && h.printOperatorInfo ? /* @__PURE__ */ s.jsx("h6", { className: "left-align-entity", children: `Printed On:${h.printTime}` }) : "",
7532
- h.disabledPoweredBy ? "" : /* @__PURE__ */ s.jsx("h6", { className: "single-entity-and-center", children: "Powered By: www.recaho.com" })
7528
+ N ? /* @__PURE__ */ s.jsx("div", { className: "image-bill", children: /* @__PURE__ */ s.jsx("img", { src: `${N}`, className: "single-entity-and-center", style: { width: k[l].logoWidth } }) }) : "",
7529
+ d.footerMessage ? /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center", dangerouslySetInnerHTML: { __html: d.footerMessage } }) : "",
7530
+ d.printby && d.printOperatorInfo ? /* @__PURE__ */ s.jsx("h6", { className: "left-align-entity", children: `Printed By:${d.printby}` }) : "",
7531
+ d.printTime && d.printOperatorInfo ? /* @__PURE__ */ s.jsx("h6", { className: "left-align-entity", children: `Printed On:${d.printTime}` }) : "",
7532
+ d.disabledPoweredBy ? "" : /* @__PURE__ */ s.jsx("h6", { className: "single-entity-and-center", children: "Powered By: www.recaho.com" })
7533
7533
  ] }) });
7534
7534
  return X;
7535
- } else if (g === "PRINT_DASHBOARD" && h.salesCollection) {
7536
- const X = h.salesCollection.totalDiscountAmt ? fs(h.salesCollection.grandTotal, h.salesCollection.totalDiscountAmt) : null, j = h.salesCollection.totalCollection - h.salesCollection.totalTax;
7537
- var k = R().format("DD/MM/YYYY LT");
7538
- const y = (Rt = h.monthTillDateSalesColl) != null && Rt.totalDiscountAmt ? fs(h.monthTillDateSalesColl.grandTotal, h.monthTillDateSalesColl.totalDiscountAmt) : null;
7539
- return /* @__PURE__ */ s.jsxs("div", { className: `main-div ${P[l].dynamicClassname}`, style: { width: P[l].paperSize }, children: [
7535
+ } else if (g === "PRINT_DASHBOARD" && d.salesCollection) {
7536
+ const X = d.salesCollection.totalDiscountAmt ? fs(d.salesCollection.grandTotal, d.salesCollection.totalDiscountAmt) : null, j = d.salesCollection.totalCollection - d.salesCollection.totalTax;
7537
+ var P = R().format("DD/MM/YYYY LT");
7538
+ const y = (Rt = d.monthTillDateSalesColl) != null && Rt.totalDiscountAmt ? fs(d.monthTillDateSalesColl.grandTotal, d.monthTillDateSalesColl.totalDiscountAmt) : null;
7539
+ return /* @__PURE__ */ s.jsxs("div", { className: `main-div ${k[l].dynamicClassname}`, style: { width: k[l].paperSize }, children: [
7540
7540
  /* @__PURE__ */ s.jsxs("div", { style: { width: "100%", textAlign: "left", marginLeft: "auto" }, children: [
7541
7541
  /* @__PURE__ */ s.jsxs("div", { children: [
7542
- /* @__PURE__ */ s.jsx("p", { className: "single-entity-and-left-align", children: `Printed On:- ${k}` }),
7542
+ /* @__PURE__ */ s.jsx("p", { className: "single-entity-and-left-align", children: `Printed On:- ${P}` }),
7543
7543
  /* @__PURE__ */ s.jsx("br", {}),
7544
7544
  /* @__PURE__ */ s.jsx("h1", { className: "single-entity-and-center level2-bold", children: "Sales Report" }),
7545
- /* @__PURE__ */ s.jsx("p", { className: "single-entity-and-center", children: h.selectedDate })
7545
+ /* @__PURE__ */ s.jsx("p", { className: "single-entity-and-center", children: d.selectedDate })
7546
7546
  ] }),
7547
7547
  /* @__PURE__ */ s.jsx("hr", {}),
7548
- h.monthTillDateSalesColl ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
7548
+ d.monthTillDateSalesColl ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
7549
7549
  /* @__PURE__ */ s.jsxs("div", { children: [
7550
7550
  /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center flex-two-items", children: "MTD Sales Breakup" }),
7551
7551
  /* @__PURE__ */ s.jsxs("h5", { className: "level3-bold flex-two-items", children: [
7552
7552
  /* @__PURE__ */ s.jsx("span", { children: "Gross Sales:" }),
7553
- /* @__PURE__ */ s.jsx("span", { children: oe(h.monthTillDateSalesColl.grandTotal, o) })
7553
+ /* @__PURE__ */ s.jsx("span", { children: oe(d.monthTillDateSalesColl.grandTotal, o) })
7554
7554
  ] }),
7555
7555
  /* @__PURE__ */ s.jsxs("h5", { className: "level3-bold flex-two-items", children: [
7556
7556
  /* @__PURE__ */ s.jsx("span", { children: "DISCOUNT:" }),
7557
- /* @__PURE__ */ s.jsx("span", { children: `${oe(h.monthTillDateSalesColl.totalDiscountAmt, o)}${y ? `(${m(y)}%)` : ""}` })
7557
+ /* @__PURE__ */ s.jsx("span", { children: `${oe(d.monthTillDateSalesColl.totalDiscountAmt, o)}${y ? `(${m(y)}%)` : ""}` })
7558
7558
  ] }),
7559
7559
  /* @__PURE__ */ s.jsxs("h5", { className: "level3-bold flex-two-items", children: [
7560
7560
  /* @__PURE__ */ s.jsx("span", { children: "CHARGES:" }),
7561
- /* @__PURE__ */ s.jsx("span", { children: oe(h.monthTillDateSalesColl.totalOtherCharges, o) })
7561
+ /* @__PURE__ */ s.jsx("span", { children: oe(d.monthTillDateSalesColl.totalOtherCharges, o) })
7562
7562
  ] }),
7563
7563
  /* @__PURE__ */ s.jsxs("h5", { className: "level3-bold flex-two-items", children: [
7564
7564
  /* @__PURE__ */ s.jsx("span", { children: "NET SALES BEFORE TAX:" }),
7565
- /* @__PURE__ */ s.jsx("span", { children: oe(h.monthTillDateSalesColl.totalCollection - h.monthTillDateSalesColl.totalTax, o) })
7565
+ /* @__PURE__ */ s.jsx("span", { children: oe(d.monthTillDateSalesColl.totalCollection - d.monthTillDateSalesColl.totalTax, o) })
7566
7566
  ] }),
7567
7567
  /* @__PURE__ */ s.jsxs("h5", { className: "level3-bold flex-two-items", children: [
7568
7568
  /* @__PURE__ */ s.jsx("span", { children: "TAX:" }),
7569
- /* @__PURE__ */ s.jsx("span", { children: oe(h.monthTillDateSalesColl.totalTax, o) })
7569
+ /* @__PURE__ */ s.jsx("span", { children: oe(d.monthTillDateSalesColl.totalTax, o) })
7570
7570
  ] }),
7571
7571
  /* @__PURE__ */ s.jsxs("h5", { className: "level3-bold flex-two-items", children: [
7572
7572
  /* @__PURE__ */ s.jsx("span", { children: "NET SALES AFTER TAX:" }),
7573
- /* @__PURE__ */ s.jsx("span", { children: oe(h.monthTillDateSalesColl.totalCollection, o) })
7573
+ /* @__PURE__ */ s.jsx("span", { children: oe(d.monthTillDateSalesColl.totalCollection, o) })
7574
7574
  ] })
7575
7575
  ] }),
7576
7576
  /* @__PURE__ */ s.jsx("hr", {})
@@ -7579,15 +7579,15 @@ const st = (e) => {
7579
7579
  /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center flex-two-items", children: "SALES BREAK-UP" }),
7580
7580
  /* @__PURE__ */ s.jsxs("h5", { className: "level3-bold flex-two-items", children: [
7581
7581
  /* @__PURE__ */ s.jsx("span", { children: "Gross Sales:" }),
7582
- /* @__PURE__ */ s.jsx("span", { children: oe(h.salesCollection.grandTotal, o) })
7582
+ /* @__PURE__ */ s.jsx("span", { children: oe(d.salesCollection.grandTotal, o) })
7583
7583
  ] }),
7584
7584
  /* @__PURE__ */ s.jsxs("h5", { className: "level3-bold flex-two-items", children: [
7585
7585
  /* @__PURE__ */ s.jsx("span", { children: "DISCOUNT:" }),
7586
- /* @__PURE__ */ s.jsx("span", { children: `${oe(h.salesCollection.totalDiscountAmt, o)}${X ? `(${m(X)}%)` : ""}` })
7586
+ /* @__PURE__ */ s.jsx("span", { children: `${oe(d.salesCollection.totalDiscountAmt, o)}${X ? `(${m(X)}%)` : ""}` })
7587
7587
  ] }),
7588
7588
  /* @__PURE__ */ s.jsxs("h5", { className: "level3-bold flex-two-items", children: [
7589
7589
  /* @__PURE__ */ s.jsx("span", { children: "CHARGES:" }),
7590
- /* @__PURE__ */ s.jsx("span", { children: oe(h.salesCollection.totalOtherCharges, o) })
7590
+ /* @__PURE__ */ s.jsx("span", { children: oe(d.salesCollection.totalOtherCharges, o) })
7591
7591
  ] }),
7592
7592
  /* @__PURE__ */ s.jsxs("h5", { className: "level3-bold flex-two-items", children: [
7593
7593
  /* @__PURE__ */ s.jsx("span", { children: "NET SALES BEFORE TAX:" }),
@@ -7595,52 +7595,52 @@ const st = (e) => {
7595
7595
  ] }),
7596
7596
  /* @__PURE__ */ s.jsxs("h5", { className: "level3-bold flex-two-items", children: [
7597
7597
  /* @__PURE__ */ s.jsx("span", { children: "TAX:" }),
7598
- /* @__PURE__ */ s.jsx("span", { children: oe(h.salesCollection.totalTax, o) })
7598
+ /* @__PURE__ */ s.jsx("span", { children: oe(d.salesCollection.totalTax, o) })
7599
7599
  ] }),
7600
7600
  /* @__PURE__ */ s.jsxs("h5", { className: "level3-bold flex-two-items", children: [
7601
7601
  /* @__PURE__ */ s.jsx("span", { children: "NET SALES AFTER TAX:" }),
7602
- /* @__PURE__ */ s.jsx("span", { children: oe(h.salesCollection.totalCollection, o) })
7602
+ /* @__PURE__ */ s.jsx("span", { children: oe(d.salesCollection.totalCollection, o) })
7603
7603
  ] })
7604
7604
  ] }),
7605
7605
  /* @__PURE__ */ s.jsx("hr", {}),
7606
- Q(h.otherFields.totalDiscountAmt, h.otherFields.discountList, "Discount", { action: "addCharges" }),
7607
- Q(h.otherFields.totalOtherCharges, h.otherFields.otherChargesList, "Charges"),
7608
- Q(h.otherFields.totalTax, h.otherFields.taxList, "Tax"),
7606
+ Q(d.otherFields.totalDiscountAmt, d.otherFields.discountList, "Discount", { action: "addCharges" }),
7607
+ Q(d.otherFields.totalOtherCharges, d.otherFields.otherChargesList, "Charges"),
7608
+ Q(d.otherFields.totalTax, d.otherFields.taxList, "Tax"),
7609
7609
  /* @__PURE__ */ s.jsxs("div", { children: [
7610
7610
  /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center", children: "BY BUSINESS" }),
7611
7611
  /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold flex-two-items", children: [
7612
7612
  /* @__PURE__ */ s.jsx("span", { children: "Total Sales:" }),
7613
- /* @__PURE__ */ s.jsx("span", { children: oe(h.salesCollection.totalCollection, o) })
7613
+ /* @__PURE__ */ s.jsx("span", { children: oe(d.salesCollection.totalCollection, o) })
7614
7614
  ] }),
7615
7615
  /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold flex-two-items", children: [
7616
7616
  /* @__PURE__ */ s.jsx("span", { children: "Total Orders:" }),
7617
- /* @__PURE__ */ s.jsx("span", { children: h.salesCollection.totalOrders })
7617
+ /* @__PURE__ */ s.jsx("span", { children: d.salesCollection.totalOrders })
7618
7618
  ] }),
7619
- T(h)
7619
+ T(d)
7620
7620
  ] }),
7621
7621
  /* @__PURE__ */ s.jsx("hr", {}),
7622
- h.otherFields.totalItemType ? /* @__PURE__ */ s.jsx("div", { children: Q(h.otherFields.totalItemType, h.otherFields.itemTypeList, "Item Type", { action: "addCharges" }) }) : "",
7623
- h.averageCollection.avgTableTime || h.averageCollection.avgorderValue || h.averageCollection.noOfGuest ? /* @__PURE__ */ s.jsxs("div", { children: [
7622
+ d.otherFields.totalItemType ? /* @__PURE__ */ s.jsx("div", { children: Q(d.otherFields.totalItemType, d.otherFields.itemTypeList, "Item Type", { action: "addCharges" }) }) : "",
7623
+ d.averageCollection.avgTableTime || d.averageCollection.avgorderValue || d.averageCollection.noOfGuest ? /* @__PURE__ */ s.jsxs("div", { children: [
7624
7624
  /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center", children: "PERFORMANCE METRICS" }),
7625
- h.averageCollection.avgTableTime ? /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold flex-two-items", children: [
7625
+ d.averageCollection.avgTableTime ? /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold flex-two-items", children: [
7626
7626
  /* @__PURE__ */ s.jsxs("span", { children: [
7627
7627
  "Average ",
7628
7628
  r.customLabels.Table,
7629
7629
  " Time:"
7630
7630
  ] }),
7631
- /* @__PURE__ */ s.jsx("span", { children: h.averageCollection.avgTableTime })
7631
+ /* @__PURE__ */ s.jsx("span", { children: d.averageCollection.avgTableTime })
7632
7632
  ] }) : "",
7633
- h.averageCollection.avgorderValue ? /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold flex-two-items", children: [
7633
+ d.averageCollection.avgorderValue ? /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold flex-two-items", children: [
7634
7634
  /* @__PURE__ */ s.jsx("span", { children: "Average Order Value:" }),
7635
- /* @__PURE__ */ s.jsx("span", { children: oe(h.averageCollection.avgorderValue, o) })
7635
+ /* @__PURE__ */ s.jsx("span", { children: oe(d.averageCollection.avgorderValue, o) })
7636
7636
  ] }) : "",
7637
- h.averageCollection.noOfGuest ? /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold flex-two-items", children: [
7637
+ d.averageCollection.noOfGuest ? /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold flex-two-items", children: [
7638
7638
  /* @__PURE__ */ s.jsx("span", { children: "Covers:" }),
7639
- /* @__PURE__ */ s.jsx("span", { children: h.averageCollection.noOfGuest })
7639
+ /* @__PURE__ */ s.jsx("span", { children: d.averageCollection.noOfGuest })
7640
7640
  ] }) : "",
7641
- h.averageCollection.avgPerCover ? /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold flex-two-items", children: [
7641
+ d.averageCollection.avgPerCover ? /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold flex-two-items", children: [
7642
7642
  /* @__PURE__ */ s.jsx("span", { children: "Average Per Cover:" }),
7643
- /* @__PURE__ */ s.jsx("span", { children: oe(h.averageCollection.avgPerCover, o) })
7643
+ /* @__PURE__ */ s.jsx("span", { children: oe(d.averageCollection.avgPerCover, o) })
7644
7644
  ] }) : "",
7645
7645
  /* @__PURE__ */ s.jsx("hr", {})
7646
7646
  ] }) : "",
@@ -7648,38 +7648,38 @@ const st = (e) => {
7648
7648
  /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center", children: "BY PAYMENT CATEGORY" }),
7649
7649
  /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold flex-two-items", children: [
7650
7650
  /* @__PURE__ */ s.jsx("span", { children: "Total Collection:" }),
7651
- /* @__PURE__ */ s.jsx("span", { children: oe(h.totalCollection, o) })
7651
+ /* @__PURE__ */ s.jsx("span", { children: oe(d.totalCollection, o) })
7652
7652
  ] }),
7653
- C(h)
7653
+ C(d)
7654
7654
  ] }),
7655
- L(h.averageCollection),
7656
- h.otherFields.outstandingAmt ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
7655
+ L(d.averageCollection),
7656
+ d.otherFields.outstandingAmt ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
7657
7657
  /* @__PURE__ */ s.jsx("hr", {}),
7658
7658
  /* @__PURE__ */ s.jsxs("div", { children: [
7659
7659
  /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center", children: "BY PAYMENT STATUS" }),
7660
7660
  /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold flex-two-items", children: [
7661
7661
  /* @__PURE__ */ s.jsx("span", { children: " -- Sales:" }),
7662
- /* @__PURE__ */ s.jsx("span", { children: oe(h.otherFields.salesCollection, o) })
7662
+ /* @__PURE__ */ s.jsx("span", { children: oe(d.otherFields.salesCollection, o) })
7663
7663
  ] }),
7664
- h.otherFields.outstandingAmt ? /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold flex-two-items", children: [
7664
+ d.otherFields.outstandingAmt ? /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold flex-two-items", children: [
7665
7665
  /* @__PURE__ */ s.jsx("span", { children: " -- Outstanding Payment Received:" }),
7666
- /* @__PURE__ */ s.jsx("span", { children: oe(h.otherFields.outstandingAmt, o) })
7666
+ /* @__PURE__ */ s.jsx("span", { children: oe(d.otherFields.outstandingAmt, o) })
7667
7667
  ] }) : ""
7668
7668
  ] })
7669
7669
  ] }) : "",
7670
7670
  /* @__PURE__ */ s.jsx("hr", {}),
7671
- be(h.averageCollection.dailyExpanse)
7671
+ be(d.averageCollection.dailyExpanse)
7672
7672
  ] }),
7673
7673
  /* @__PURE__ */ s.jsx("br", {}),
7674
7674
  gs == "Android OS" && /* @__PURE__ */ s.jsx("div", { className: "space-3rem" })
7675
7675
  ] });
7676
7676
  } else if (g === "AGGREGATOR_BILL") {
7677
7677
  let X;
7678
- return a.aggregatorOrderId && a.aggregatorOrderId !== "" && (X = H(a.aggregatorOrderId)), /* @__PURE__ */ s.jsx("div", { className: "main-div bill", style: { width: P[l].paperSize }, children: /* @__PURE__ */ s.jsxs("div", { children: [
7678
+ return a.aggregatorOrderId && a.aggregatorOrderId !== "" && (X = H(a.aggregatorOrderId)), /* @__PURE__ */ s.jsx("div", { className: "main-div bill", style: { width: k[l].paperSize }, children: /* @__PURE__ */ s.jsxs("div", { children: [
7679
7679
  /* @__PURE__ */ s.jsxs("div", { style: { width: "100%", textAlign: "left", marginLeft: "auto" }, children: [
7680
7680
  /* @__PURE__ */ s.jsx("br", {}),
7681
- M && /* @__PURE__ */ s.jsx("div", { className: "image-bill", children: /* @__PURE__ */ s.jsx("img", { src: M, className: "single-entity-and-center", style: { width: P[l].logoWidth } }) }),
7682
- /* @__PURE__ */ s.jsxs("div", { className: `details-section ${P[l].dynamicClassname}`, children: [
7681
+ M && /* @__PURE__ */ s.jsx("div", { className: "image-bill", children: /* @__PURE__ */ s.jsx("img", { src: M, className: "single-entity-and-center", style: { width: k[l].logoWidth } }) }),
7682
+ /* @__PURE__ */ s.jsxs("div", { className: `details-section ${k[l].dynamicClassname}`, children: [
7683
7683
  !M && a.companyInfo.companyName && a.companyInfo.companyName != "" && /* @__PURE__ */ s.jsx("h1", { className: "single-entity-and-center", children: a.companyInfo.companyName }),
7684
7684
  a.companyInfo.companyAddress && a.companyInfo.companyAddress !== "" && /* @__PURE__ */ s.jsx("h3", { className: "single-entity-and-center", dangerouslySetInnerHTML: { __html: a.companyInfo.companyAddress } }),
7685
7685
  a.companyInfo.companyContact && a.companyInfo.companyContact !== "" && /* @__PURE__ */ s.jsx("h3", { className: "single-entity-and-center", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
@@ -7728,7 +7728,7 @@ const st = (e) => {
7728
7728
  ] }) })
7729
7729
  ] }),
7730
7730
  /* @__PURE__ */ s.jsx("hr", {}),
7731
- /* @__PURE__ */ s.jsxs("div", { className: `details-section ${P[l].dynamicClassname}`, children: [
7731
+ /* @__PURE__ */ s.jsxs("div", { className: `details-section ${k[l].dynamicClassname}`, children: [
7732
7732
  a.customerInfo.custName && a.customerInfo.custName !== "" && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level3-bold", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7733
7733
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: O.name } }),
7734
7734
  ": ",
@@ -7767,7 +7767,7 @@ const st = (e) => {
7767
7767
  /* @__PURE__ */ s.jsx("hr", {}),
7768
7768
  /* @__PURE__ */ s.jsxs("section", { className: "products-section", children: [
7769
7769
  /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
7770
- /* @__PURE__ */ s.jsx("h6", { className: "items products-heading-name-kot", children: P[l].itemName }),
7770
+ /* @__PURE__ */ s.jsx("h6", { className: "items products-heading-name-kot", children: k[l].itemName }),
7771
7771
  /* @__PURE__ */ s.jsx("h6", { className: "items products-heading-qty-kot", children: "Qty" })
7772
7772
  ] }),
7773
7773
  /* @__PURE__ */ s.jsx("hr", {})
@@ -7823,7 +7823,7 @@ const st = (e) => {
7823
7823
  ] }),
7824
7824
  /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
7825
7825
  /* @__PURE__ */ s.jsxs("h5", { children: [
7826
- h.taxLabel + " ",
7826
+ d.taxLabel + " ",
7827
7827
  " @",
7828
7828
  b,
7829
7829
  "%"
@@ -7837,7 +7837,7 @@ const st = (e) => {
7837
7837
  }) }) : "",
7838
7838
  /* @__PURE__ */ s.jsx("div", { style: { marginTop: "6px" }, children: (lt = a.customFeilds) == null ? void 0 : lt.map((y) => /* @__PURE__ */ s.jsx("h4", { className: "left-align-entity", children: y.customName + ": " + y.customValue })) }),
7839
7839
  a.paymentState && /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center", style: { marginTop: "6px" }, children: `Payment Status: ${a.paymentState == "PAID_ONLINE" ? "Online paid" : "COD"}` }),
7840
- N ? /* @__PURE__ */ s.jsx("div", { className: "image-bill", children: /* @__PURE__ */ s.jsx("img", { src: `${N}`, className: "single-entity-and-center", style: { width: P[l].logoWidth } }) }) : "",
7840
+ N ? /* @__PURE__ */ s.jsx("div", { className: "image-bill", children: /* @__PURE__ */ s.jsx("img", { src: `${N}`, className: "single-entity-and-center", style: { width: k[l].logoWidth } }) }) : "",
7841
7841
  a.footerMessage ? /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center", dangerouslySetInnerHTML: { __html: a.footerMessage } }) : "",
7842
7842
  a.printedBy && a.printOperatorInfo ? /* @__PURE__ */ s.jsx("h6", { className: "left-align-entity", children: `Printed By: ${a.printedBy}` }) : "",
7843
7843
  a.printTime && a.printOperatorInfo ? /* @__PURE__ */ s.jsx("h6", { className: "left-align-entity", children: `Printed On: ${a.printTime}` }) : "",
@@ -7848,7 +7848,7 @@ const st = (e) => {
7848
7848
  return a.action === "SWITCH_TABLE" ? X = /* @__PURE__ */ s.jsx("div", { className: "main-div", style: { width: "100%", height: "auto" }, children: /* @__PURE__ */ s.jsxs("div", { style: { width: "100%", textAlign: "left", marginLeft: "auto" }, children: [
7849
7849
  /* @__PURE__ */ s.jsxs("h2", { className: "single-entity-and-center level2-bold", children: [
7850
7850
  "**",
7851
- (Lt = d.Table) == null ? void 0 : Lt.toUpperCase(),
7851
+ (Lt = h.Table) == null ? void 0 : Lt.toUpperCase(),
7852
7852
  " SWITCH**"
7853
7853
  ] }),
7854
7854
  /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level3-bold", children: "From" }),
@@ -7863,14 +7863,14 @@ const st = (e) => {
7863
7863
  /* @__PURE__ */ s.jsx("h2", { className: "left-align-entity level2-bold", children: `${(Fs = (ns = e.tableData[a.to[0]]) == null ? void 0 : ns.attachedArea) == null ? void 0 : Fs.toUpperCase()} - ${(rs = e.tableData[a.to[0]]) == null ? void 0 : rs.tableName}` }),
7864
7864
  /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold", children: [
7865
7865
  "Running ",
7866
- `${d.KOT}`,
7866
+ `${h.KOT}`,
7867
7867
  "s: ",
7868
7868
  Object.keys(a.activeKots).join(", ")
7869
7869
  ] })
7870
7870
  ] }) }) : X = /* @__PURE__ */ s.jsx("div", { className: "main-div", style: { width: "100%", height: "auto" }, children: /* @__PURE__ */ s.jsxs("div", { style: { width: "100%", textAlign: "left", marginLeft: "auto" }, children: [
7871
7871
  /* @__PURE__ */ s.jsxs("h2", { className: "single-entity-and-center level2-bold", children: [
7872
7872
  "**MERGE ",
7873
- (Ds = d.Table) == null ? void 0 : Ds.toUpperCase(),
7873
+ (Ds = h.Table) == null ? void 0 : Ds.toUpperCase(),
7874
7874
  "**"
7875
7875
  ] }),
7876
7876
  /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level3-bold", children: "From" }),
@@ -7885,14 +7885,14 @@ const st = (e) => {
7885
7885
  /* @__PURE__ */ s.jsx("h2", { className: "left-align-entity level2-bold", children: `${(Ys = (is = e.tableData[a.to[0]]) == null ? void 0 : is.attachedArea) == null ? void 0 : Ys.toUpperCase()} - ${(Us = e.tableData[a.to[0]]) == null ? void 0 : Us.tableName}` }),
7886
7886
  /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold", children: [
7887
7887
  "Running ",
7888
- `${d.KOT}`,
7888
+ `${h.KOT}`,
7889
7889
  "s: ",
7890
7890
  Object.keys(a.activeKots).join(", ")
7891
7891
  ] })
7892
7892
  ] }) }), X;
7893
7893
  } else if (g === "COUNTER_OPERATION") {
7894
7894
  let X;
7895
- return l == "2INCH" || l == "1.8INCH" ? X = /* @__PURE__ */ s.jsx("div", { className: "main-div", style: { width: P[l].paperSize }, children: /* @__PURE__ */ s.jsxs("div", { style: { width: "100%", textAlign: "left", marginLeft: "auto" }, children: [
7895
+ return l == "2INCH" || l == "1.8INCH" ? X = /* @__PURE__ */ s.jsx("div", { className: "main-div", style: { width: k[l].paperSize }, children: /* @__PURE__ */ s.jsxs("div", { style: { width: "100%", textAlign: "left", marginLeft: "auto" }, children: [
7896
7896
  /* @__PURE__ */ s.jsxs("h2", { className: "single-entity-and-center level2-bold", children: [
7897
7897
  a.counterName,
7898
7898
  " Report"
@@ -8089,7 +8089,7 @@ const st = (e) => {
8089
8089
  /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level3-bold", children: " = " }),
8090
8090
  /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level3-bold", children: $(a.TotalDenomationsAmount, o) })
8091
8091
  ] })
8092
- ] }) }) : X = /* @__PURE__ */ s.jsx("div", { className: "main-div", style: { width: P[l].paperSize }, children: /* @__PURE__ */ s.jsxs("div", { style: { width: "100%", textAlign: "left", marginLeft: "auto" }, children: [
8092
+ ] }) }) : X = /* @__PURE__ */ s.jsx("div", { className: "main-div", style: { width: k[l].paperSize }, children: /* @__PURE__ */ s.jsxs("div", { style: { width: "100%", textAlign: "left", marginLeft: "auto" }, children: [
8093
8093
  /* @__PURE__ */ s.jsxs("h2", { className: "single-entity-and-center level2-bold", children: [
8094
8094
  a.counterName,
8095
8095
  " Report"
@@ -8258,7 +8258,7 @@ const st = (e) => {
8258
8258
  ] }) }), X;
8259
8259
  } else if (g === "ITEMWISE_SALES_COUNTER") {
8260
8260
  let X, { counterDetails: j } = e.printerDataObject;
8261
- return X = /* @__PURE__ */ s.jsx("div", { className: "main-div", style: { width: P[l].paperSize }, children: /* @__PURE__ */ s.jsxs("div", { style: { width: "100%", textAlign: "left", marginLeft: "auto" }, children: [
8261
+ return X = /* @__PURE__ */ s.jsx("div", { className: "main-div", style: { width: k[l].paperSize }, children: /* @__PURE__ */ s.jsxs("div", { style: { width: "100%", textAlign: "left", marginLeft: "auto" }, children: [
8262
8262
  /* @__PURE__ */ s.jsx("h2", { className: "single-entity-and-center level2-bold", children: "Item Wise Sales Report" }),
8263
8263
  /* @__PURE__ */ s.jsx("h5", { className: "single-entity-and-center level3-bold", children: j.currentDate }),
8264
8264
  /* @__PURE__ */ s.jsx("hr", {}),
@@ -8289,35 +8289,35 @@ const st = (e) => {
8289
8289
  return getRechargeDetails(X);
8290
8290
  } else if (g === "PACKAGING_SLIP") {
8291
8291
  let X, j = 0;
8292
- h.aggregatorOrderId && h.aggregatorOrderId !== "" && (X = H(h.aggregatorOrderId));
8293
- const y = h.services;
8292
+ d.aggregatorOrderId && d.aggregatorOrderId !== "" && (X = H(d.aggregatorOrderId));
8293
+ const y = d.services;
8294
8294
  for (let I in y)
8295
8295
  j += y[I].length;
8296
- return /* @__PURE__ */ s.jsx("div", { className: "main-div", style: { width: P[l].paperSize }, children: /* @__PURE__ */ s.jsxs("div", { style: { width: "100%", textAlign: "left", marginLeft: "auto" }, children: [
8296
+ return /* @__PURE__ */ s.jsx("div", { className: "main-div", style: { width: k[l].paperSize }, children: /* @__PURE__ */ s.jsxs("div", { style: { width: "100%", textAlign: "left", marginLeft: "auto" }, children: [
8297
8297
  /* @__PURE__ */ s.jsx("br", {}),
8298
- /* @__PURE__ */ s.jsxs("div", { className: `details-section ${P[l].dynamicClassname}`, children: [
8299
- h.subOrderFrom && /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center", children: h.subOrderFrom.toUpperCase() }),
8300
- h.orderFrom !== "dine-in" && /* @__PURE__ */ s.jsxs("h2", { className: "single-entity-and-center level2-bold", children: [
8298
+ /* @__PURE__ */ s.jsxs("div", { className: `details-section ${k[l].dynamicClassname}`, children: [
8299
+ d.subOrderFrom && /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center", children: d.subOrderFrom.toUpperCase() }),
8300
+ d.orderFrom !== "dine-in" && /* @__PURE__ */ s.jsxs("h2", { className: "single-entity-and-center level2-bold", children: [
8301
8301
  "Token No ",
8302
- h.tokenId
8302
+ d.tokenId
8303
8303
  ] }),
8304
- h.tableName && /* @__PURE__ */ s.jsx("h2", { className: "single-entity-and-center level2-bold", children: h.tableName }),
8305
- h.otp && /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center level2-bold", children: "OTP: " + h.otp }),
8306
- h.orderSource && X && /* @__PURE__ */ s.jsxs("h4", { className: "single-entity-and-center level2-bold", children: [
8307
- `${h.orderSource}: ${X.firstDigits || ""}`,
8304
+ d.tableName && /* @__PURE__ */ s.jsx("h2", { className: "single-entity-and-center level2-bold", children: d.tableName }),
8305
+ d.otp && /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center level2-bold", children: "OTP: " + d.otp }),
8306
+ d.orderSource && X && /* @__PURE__ */ s.jsxs("h4", { className: "single-entity-and-center level2-bold", children: [
8307
+ `${d.orderSource}: ${X.firstDigits || ""}`,
8308
8308
  /* @__PURE__ */ s.jsx("span", { style: { fontSize: "2rem" }, children: X.last4Dgits || "" })
8309
8309
  ] }),
8310
- h.zomatoInstant && /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center level2-bold", children: h.zomatoInstant }),
8310
+ d.zomatoInstant && /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center level2-bold", children: d.zomatoInstant }),
8311
8311
  /* @__PURE__ */ s.jsx("hr", {}),
8312
- h.orderId && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level3-bold", children: "Order Id: " + h.orderId }),
8313
- h.date && /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold", children: [
8312
+ d.orderId && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level3-bold", children: "Order Id: " + d.orderId }),
8313
+ d.date && /* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold", children: [
8314
8314
  "Printed On: ",
8315
- h.date
8315
+ d.date
8316
8316
  ] }),
8317
- h.prepareBy ? /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level3-bold", children: "Prepare By : " + h.prepareBy }) : "",
8318
- h.waiterName && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level3-bold", children: `${d.Waiter} Name: ` + h.waiterName })
8317
+ d.prepareBy ? /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level3-bold", children: "Prepare By : " + d.prepareBy }) : "",
8318
+ d.waiterName && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level3-bold", children: `${h.Waiter} Name: ` + d.waiterName })
8319
8319
  ] }),
8320
- ue(h),
8320
+ ue(d),
8321
8321
  /* @__PURE__ */ s.jsx("br", {}),
8322
8322
  /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div flex-two-items space-3rem", children: [
8323
8323
  /* @__PURE__ */ s.jsxs("h5", { children: [
@@ -8326,21 +8326,21 @@ const st = (e) => {
8326
8326
  ] }),
8327
8327
  /* @__PURE__ */ s.jsxs("h5", { children: [
8328
8328
  "TOTAL QTY: ",
8329
- _e(h.totalQty)
8329
+ _e(d.totalQty)
8330
8330
  ] })
8331
8331
  ] }),
8332
- (ls = h.customFields) == null ? void 0 : ls.map((I) => /* @__PURE__ */ s.jsx("h4", { className: "left-align-entity", children: I.customName + ": " + I.customValue })),
8332
+ (ls = d.customFields) == null ? void 0 : ls.map((I) => /* @__PURE__ */ s.jsx("h4", { className: "left-align-entity", children: I.customName + ": " + I.customValue })),
8333
8333
  /* @__PURE__ */ s.jsx("br", {}),
8334
- h.orderFrom !== "dine-in" && /* @__PURE__ */ s.jsxs("h4", { className: "left-align-entity level3-bold", children: [
8334
+ d.orderFrom !== "dine-in" && /* @__PURE__ */ s.jsxs("h4", { className: "left-align-entity level3-bold", children: [
8335
8335
  "Payment Status: ",
8336
- h.paymentStatus.replace("_", " ")
8336
+ d.paymentStatus.replace("_", " ")
8337
8337
  ] })
8338
8338
  ] }) });
8339
8339
  } else {
8340
8340
  if (g === "ORDER_AGGREGATED_PRINT")
8341
- return /* @__PURE__ */ s.jsx("div", { className: "main-div", style: { width: P[l].paperSize }, children: /* @__PURE__ */ s.jsxs("div", { style: { width: "100%", textAlign: "left", marginLeft: "auto" }, children: [
8341
+ return /* @__PURE__ */ s.jsx("div", { className: "main-div", style: { width: k[l].paperSize }, children: /* @__PURE__ */ s.jsxs("div", { style: { width: "100%", textAlign: "left", marginLeft: "auto" }, children: [
8342
8342
  a.logo && /* @__PURE__ */ s.jsx("div", { className: "image-bill", children: /* @__PURE__ */ s.jsx("img", { src: a.logo, className: "single-entity-and-center" }) }),
8343
- /* @__PURE__ */ s.jsxs("div", { className: `details-section ${P[l].dynamicClassname}`, children: [
8343
+ /* @__PURE__ */ s.jsxs("div", { className: `details-section ${k[l].dynamicClassname}`, children: [
8344
8344
  !a.logo && a.companyName && a.companyName != "" && /* @__PURE__ */ s.jsx("h1", { className: "single-entity-and-center", children: a.companyName }),
8345
8345
  a.companyAddress && a.companyAddress !== "" && /* @__PURE__ */ s.jsx("h3", { className: "single-entity-and-center", dangerouslySetInnerHTML: { __html: a.companyAddress } }),
8346
8346
  a.companyContact && a.companyContact !== "" && /* @__PURE__ */ s.jsx("h3", { className: "single-entity-and-center", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
@@ -8381,15 +8381,15 @@ const st = (e) => {
8381
8381
  /* @__PURE__ */ s.jsxs("div", { className: "mt-2", children: [
8382
8382
  /* @__PURE__ */ s.jsx("hr", {}),
8383
8383
  /* @__PURE__ */ s.jsx("section", { className: "products-section", children: /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
8384
- /* @__PURE__ */ s.jsx("h5", { className: `items products-heading-name ${P[l].dynamicClassname}`, children: "Date" }),
8385
- /* @__PURE__ */ s.jsx("h5", { className: `items products-heading-orderId ${P[l].dynamicClassname}`, children: "Order Id" }),
8386
- /* @__PURE__ */ s.jsx("h5", { className: `items products-heading-amount ${P[l].dynamicClassname}`, children: "Amount" })
8384
+ /* @__PURE__ */ s.jsx("h5", { className: `items products-heading-name ${k[l].dynamicClassname}`, children: "Date" }),
8385
+ /* @__PURE__ */ s.jsx("h5", { className: `items products-heading-orderId ${k[l].dynamicClassname}`, children: "Order Id" }),
8386
+ /* @__PURE__ */ s.jsx("h5", { className: `items products-heading-amount ${k[l].dynamicClassname}`, children: "Amount" })
8387
8387
  ] }) }),
8388
8388
  /* @__PURE__ */ s.jsx("hr", {}),
8389
8389
  /* @__PURE__ */ s.jsx("section", { className: "products-section", children: a.orders.map((j) => /* @__PURE__ */ s.jsx("div", { style: { paddingTop: "12px" }, children: /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
8390
- /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-name ${P[l].dynamicClassname}`, children: Dn(j.date) }),
8391
- /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-orderId ${P[l].dynamicClassname}`, children: j.orderId }),
8392
- /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-amount ${P[l].dynamicClassname}`, children: a.curr + " " + m(j.finalAmount) })
8390
+ /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-name ${k[l].dynamicClassname}`, children: Dn(j.date) }),
8391
+ /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-orderId ${k[l].dynamicClassname}`, children: j.orderId }),
8392
+ /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-amount ${k[l].dynamicClassname}`, children: a.curr + " " + m(j.finalAmount) })
8393
8393
  ] }) }, j.orderId)) })
8394
8394
  ] }),
8395
8395
  /* @__PURE__ */ s.jsxs("div", { children: [
@@ -8407,15 +8407,15 @@ const st = (e) => {
8407
8407
  (os = a.transactions) != null && os.length ? /* @__PURE__ */ s.jsxs("div", { children: [
8408
8408
  /* @__PURE__ */ s.jsx("hr", {}),
8409
8409
  /* @__PURE__ */ s.jsx("section", { className: "products-section", children: /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
8410
- /* @__PURE__ */ s.jsx("h5", { className: `items products-heading-name ${P[l].dynamicClassname}`, children: "Date" }),
8411
- /* @__PURE__ */ s.jsx("h5", { className: `items products-heading-orderId ${P[l].dynamicClassname}`, children: "Payment Mode" }),
8412
- /* @__PURE__ */ s.jsx("h5", { className: `items products-heading-amount ${P[l].dynamicClassname}`, children: "Amount" })
8410
+ /* @__PURE__ */ s.jsx("h5", { className: `items products-heading-name ${k[l].dynamicClassname}`, children: "Date" }),
8411
+ /* @__PURE__ */ s.jsx("h5", { className: `items products-heading-orderId ${k[l].dynamicClassname}`, children: "Payment Mode" }),
8412
+ /* @__PURE__ */ s.jsx("h5", { className: `items products-heading-amount ${k[l].dynamicClassname}`, children: "Amount" })
8413
8413
  ] }) }),
8414
8414
  /* @__PURE__ */ s.jsx("hr", {}),
8415
8415
  /* @__PURE__ */ s.jsx("section", { className: "products-section", children: a.transactions.map((j) => /* @__PURE__ */ s.jsx("div", { style: { paddingTop: "12px" }, children: /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
8416
- /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-name ${P[l].dynamicClassname}`, children: j.date }),
8417
- /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-orderId ${P[l].dynamicClassname}`, children: j.paymentMode }),
8418
- /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-amount ${P[l].dynamicClassname}`, children: a.curr + " " + m(j.amount) })
8416
+ /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-name ${k[l].dynamicClassname}`, children: j.date }),
8417
+ /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-orderId ${k[l].dynamicClassname}`, children: j.paymentMode }),
8418
+ /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-amount ${k[l].dynamicClassname}`, children: a.curr + " " + m(j.amount) })
8419
8419
  ] }) }, j.id)) })
8420
8420
  ] }) : "",
8421
8421
  /* @__PURE__ */ s.jsxs("div", { className: "mt-2 pb-2rem", children: [
@@ -8430,7 +8430,7 @@ const st = (e) => {
8430
8430
  let X, j = 0, y, w;
8431
8431
  for (let b = 0; b < ((($s = a.services) == null ? void 0 : $s.length) || 0); b++)
8432
8432
  w = a.services[b], w.status === "CANCELLED" && !a.onlyCancelledItems && (j += w.qty);
8433
- return a.aggregatorOrderId && a.aggregatorOrderId !== "" && (X = H(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: [
8433
+ return a.aggregatorOrderId && a.aggregatorOrderId !== "" && (X = H(a.aggregatorOrderId)), /* @__PURE__ */ s.jsx("div", { className: "main-div", style: { width: k[l].paperSize }, children: /* @__PURE__ */ s.jsxs("div", { style: { maxWidth: "100%", textAlign: "left", marginLeft: "auto" }, children: [
8434
8434
  /* @__PURE__ */ s.jsx("br", {}),
8435
8435
  /* @__PURE__ */ s.jsxs("div", { className: "main-div", children: [
8436
8436
  a.duplicate && !a.onlyCancelledItems ? /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center", children: "DUPLICATE KOT" }) : "",
@@ -8452,7 +8452,7 @@ const st = (e) => {
8452
8452
  /* @__PURE__ */ s.jsxs("div", { className: "details-section", children: [
8453
8453
  a.orderId && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level3-bold", children: "Order Id: " + Array.from(a.orderId).join(", ") }),
8454
8454
  /* @__PURE__ */ s.jsxs("div", { className: "flex-container-kot", children: [
8455
- a.kotId && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level3-bold", children: `${d.KOT} Id: ` + Array.from(a.kotId).join(", ") }),
8455
+ a.kotId && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level3-bold", children: `${h.KOT} Id: ` + Array.from(a.kotId).join(", ") }),
8456
8456
  a.type && a.type != "dine-in" && /* @__PURE__ */ s.jsx("h2", { className: "left-align-entity", children: a.type === "dine-in" ? a.tableName ? a.tableName : "-" : "" })
8457
8457
  ] }),
8458
8458
  a.customerName && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level3-bold", children: a.customerName }),
@@ -8460,12 +8460,12 @@ const st = (e) => {
8460
8460
  a.prepareBy ? /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level3-bold", children: "Prepare By : " + a.prepareBy }) : ""
8461
8461
  ] }),
8462
8462
  a.createdBy && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level3-bold", children: "Printed By: " + a.createdBy }),
8463
- a.waiterName && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level3-bold", children: `${d.Waiter} Name: ` + a.waiterName })
8463
+ a.waiterName && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level3-bold", children: `${h.Waiter} Name: ` + a.waiterName })
8464
8464
  ] }),
8465
8465
  /* @__PURE__ */ s.jsx("hr", {}),
8466
8466
  /* @__PURE__ */ s.jsxs("section", { className: `products-section ${je}`, children: [
8467
8467
  /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
8468
- /* @__PURE__ */ s.jsx("h5", { className: "items products-heading-name-kot", children: P[l].itemName }),
8468
+ /* @__PURE__ */ s.jsx("h5", { className: "items products-heading-name-kot", children: k[l].itemName }),
8469
8469
  /* @__PURE__ */ s.jsx("h5", { className: "items products-heading-qty-kot", children: "QTY" })
8470
8470
  ] }),
8471
8471
  /* @__PURE__ */ s.jsx("hr", {})
@@ -8510,7 +8510,7 @@ const st = (e) => {
8510
8510
  id: "domEl",
8511
8511
  ref: n,
8512
8512
  className: "html-bill-print",
8513
- style: { maxWidth: P[l].paperSize, zIndex: "-10", backgroundColor: "#fff" },
8513
+ style: { maxWidth: k[l].paperSize, zIndex: "-10", backgroundColor: "#fff" },
8514
8514
  children: St(f, a.obj, a.companyLogo, a.companyQrCode)
8515
8515
  }
8516
8516
  ) });
@@ -8519,11 +8519,11 @@ const st = (e) => {
8519
8519
  try {
8520
8520
  const { needPackagingSlip: l = !0 } = r;
8521
8521
  e.primaryWaiter && n && (e.primaryWaiter = ((u = n[e.primaryWaiter]) == null ? void 0 : u.name) || null);
8522
- const { obj: c, printersMap: d } = Id(e, t, r);
8522
+ const { obj: c, printersMap: h } = Id(e, t, r);
8523
8523
  let p = [], m = [];
8524
8524
  const x = [];
8525
8525
  if (Aa(c).flatMap((v) => {
8526
- (d[v.station] || []).forEach((E) => {
8526
+ (h[v.station] || []).forEach((E) => {
8527
8527
  const T = new Promise((C) => {
8528
8528
  x.push(
8529
8529
  /* @__PURE__ */ s.jsx(
@@ -8595,7 +8595,7 @@ const st = (e) => {
8595
8595
  const { tableData: a } = n;
8596
8596
  let u = [], f = [];
8597
8597
  if (n != null && n.action) {
8598
- const { obj: o, paperSize: l, printersMap: c } = Od(e, t, n), d = Aa(o).flatMap(
8598
+ const { obj: o, paperSize: l, printersMap: c } = Od(e, t, n), h = Aa(o).flatMap(
8599
8599
  (p) => {
8600
8600
  var m;
8601
8601
  return (m = c[p.station]) == null ? void 0 : m.map((x) => new Promise((v) => {
@@ -8626,7 +8626,7 @@ const st = (e) => {
8626
8626
  }));
8627
8627
  }
8628
8628
  );
8629
- d.length && xt("root1", d), await Promise.all(f.map((p) => new Promise(p)));
8629
+ h.length && xt("root1", h), await Promise.all(f.map((p) => new Promise(p)));
8630
8630
  }
8631
8631
  r(u);
8632
8632
  } catch (a) {
@@ -8718,7 +8718,7 @@ const st = (e) => {
8718
8718
  let u = await Ed(e);
8719
8719
  if (u && Object.keys(u.Category).length !== 0) {
8720
8720
  let o = `ItemWiseSales:::${Math.floor(Math.random() * 1e3)}`, l = [];
8721
- await new Promise((d) => {
8721
+ await new Promise((h) => {
8722
8722
  const p = /* @__PURE__ */ s.jsx(
8723
8723
  st,
8724
8724
  {
@@ -8735,7 +8735,7 @@ const st = (e) => {
8735
8735
  paperSize: t.printerSize,
8736
8736
  image: m,
8737
8737
  type: "ITEMWISE_SALES_COUNTER"
8738
- }), d();
8738
+ }), h();
8739
8739
  },
8740
8740
  additionalActions: r
8741
8741
  }
@@ -8761,10 +8761,10 @@ const st = (e) => {
8761
8761
  },
8762
8762
  newId: u,
8763
8763
  settingData: t,
8764
- onImageGenerated: (d) => {
8764
+ onImageGenerated: (h) => {
8765
8765
  f.push({
8766
8766
  paperSize: t.printerSize,
8767
- image: d,
8767
+ image: h,
8768
8768
  type: "COUNTER_OPERATION"
8769
8769
  }), l();
8770
8770
  },
@@ -8819,17 +8819,17 @@ const st = (e) => {
8819
8819
  for (let o = 0; o < e.length; o++) {
8820
8820
  let l = e[o];
8821
8821
  if ((a = l.invoiceFormats) != null && a.length) {
8822
- let c = ud(l.invoiceFormats, "createdAt")[0], d = await kd(c);
8822
+ let c = ud(l.invoiceFormats, "createdAt")[0], h = await kd(c);
8823
8823
  await new Promise((m) => {
8824
8824
  const x = /* @__PURE__ */ s.jsx(
8825
8825
  st,
8826
8826
  {
8827
- printerDataObject: { staticDataKOT: d, paperSize: d.paperSize, type: "BILL" },
8827
+ printerDataObject: { staticDataKOT: h, paperSize: h.paperSize, type: "BILL" },
8828
8828
  newId: Math.random(),
8829
8829
  settingData: t,
8830
8830
  onImageGenerated: (v) => {
8831
8831
  f.push({
8832
- paperSize: d.paperSize,
8832
+ paperSize: h.paperSize,
8833
8833
  image: v,
8834
8834
  type: "BILL"
8835
8835
  }), m();