recaho-print-react 0.0.154 → 0.0.155

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.
@@ -75,7 +75,7 @@ function li() {
75
75
  // with.
76
76
  x.$$typeof === te || x.getModuleId !== void 0));
77
77
  }
78
- function Ne(x, O, U) {
78
+ function je(x, O, U) {
79
79
  var P = x.displayName;
80
80
  if (P)
81
81
  return P;
@@ -115,7 +115,7 @@ function li() {
115
115
  var U = x;
116
116
  return Z(U._context) + ".Provider";
117
117
  case u:
118
- return Ne(x, x.render, "ForwardRef");
118
+ return je(x, x.render, "ForwardRef");
119
119
  case h:
120
120
  var P = x.displayName || null;
121
121
  return P !== null ? P : X(x.type) || "Memo";
@@ -130,11 +130,11 @@ function li() {
130
130
  }
131
131
  return null;
132
132
  }
133
- var q = Object.assign, ue = 0, W, ee, ke, Ze, St, rt, Tt;
133
+ var K = Object.assign, ue = 0, W, ee, ke, Ze, St, rt, Tt;
134
134
  function se() {
135
135
  }
136
136
  se.__reactDisabledLog = !0;
137
- function je() {
137
+ function ve() {
138
138
  {
139
139
  if (ue === 0) {
140
140
  W = console.log, ee = console.info, ke = console.warn, Ze = console.error, St = console.group, rt = console.groupCollapsed, Tt = console.groupEnd;
@@ -166,25 +166,25 @@ function li() {
166
166
  writable: !0
167
167
  };
168
168
  Object.defineProperties(console, {
169
- log: q({}, x, {
169
+ log: K({}, x, {
170
170
  value: W
171
171
  }),
172
- info: q({}, x, {
172
+ info: K({}, x, {
173
173
  value: ee
174
174
  }),
175
- warn: q({}, x, {
175
+ warn: K({}, x, {
176
176
  value: ke
177
177
  }),
178
- error: q({}, x, {
178
+ error: K({}, x, {
179
179
  value: Ze
180
180
  }),
181
- group: q({}, x, {
181
+ group: K({}, x, {
182
182
  value: St
183
183
  }),
184
- groupCollapsed: q({}, x, {
184
+ groupCollapsed: K({}, x, {
185
185
  value: rt
186
186
  }),
187
- groupEnd: q({}, x, {
187
+ groupEnd: K({}, x, {
188
188
  value: Tt
189
189
  })
190
190
  });
@@ -224,7 +224,7 @@ function li() {
224
224
  var N = Error.prepareStackTrace;
225
225
  Error.prepareStackTrace = void 0;
226
226
  var H;
227
- H = He.current, He.current = null, je();
227
+ H = He.current, He.current = null, ve();
228
228
  try {
229
229
  if (O) {
230
230
  var z = function() {
@@ -279,8 +279,8 @@ function li() {
279
279
  } finally {
280
280
  C = !1, He.current = H, at(), Error.prepareStackTrace = N;
281
281
  }
282
- var Ge = x ? x.displayName || x.name : "", It = Ge ? d(Ge) : "";
283
- return typeof x == "function" && j.set(x, It), It;
282
+ var Ge = x ? x.displayName || x.name : "", Ct = Ge ? d(Ge) : "";
283
+ return typeof x == "function" && j.set(x, Ct), Ct;
284
284
  }
285
285
  function b(x, O, U) {
286
286
  return Y(x, !1);
@@ -355,21 +355,21 @@ function li() {
355
355
  return U;
356
356
  }
357
357
  }
358
- function Q(x) {
358
+ function It(x) {
359
359
  try {
360
- return xt(x), !1;
360
+ return q(x), !1;
361
361
  } catch {
362
362
  return !0;
363
363
  }
364
364
  }
365
- function xt(x) {
365
+ function q(x) {
366
366
  return "" + x;
367
367
  }
368
- function Je(x) {
369
- if (Q(x))
370
- return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", wt(x)), xt(x);
368
+ function xt(x) {
369
+ if (It(x))
370
+ return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", wt(x)), q(x);
371
371
  }
372
- var Jt = E.ReactCurrentOwner, Is = {
372
+ var Je = E.ReactCurrentOwner, Is = {
373
373
  key: !0,
374
374
  ref: !0,
375
375
  __self: !0,
@@ -392,7 +392,7 @@ function li() {
392
392
  return x.key !== void 0;
393
393
  }
394
394
  function Ms(x, O) {
395
- typeof x.ref == "string" && Jt.current;
395
+ typeof x.ref == "string" && Je.current;
396
396
  }
397
397
  function As(x, O) {
398
398
  {
@@ -448,7 +448,7 @@ function li() {
448
448
  function Ls(x, O, U, P, N) {
449
449
  {
450
450
  var H, z = {}, M = null, I = null;
451
- U !== void 0 && (Je(U), M = "" + U), Os(O) && (Je(O.key), M = "" + O.key), Cs(O) && (I = O.ref, Ms(O, N));
451
+ U !== void 0 && (xt(U), M = "" + U), Os(O) && (xt(O.key), M = "" + O.key), Cs(O) && (I = O.ref, Ms(O, N));
452
452
  for (H in O)
453
453
  me.call(O, H) && !Is.hasOwnProperty(H) && (z[H] = O[H]);
454
454
  if (x && x.defaultProps) {
@@ -460,10 +460,10 @@ function li() {
460
460
  var ge = typeof x == "function" ? x.displayName || x.name || "Unknown" : x;
461
461
  M && As(z, ge), I && Es(z, ge);
462
462
  }
463
- return Rs(x, M, I, N, P, Jt.current, z);
463
+ return Rs(x, M, I, N, P, Je.current, z);
464
464
  }
465
465
  }
466
- var Lt = E.ReactCurrentOwner, ts = E.ReactDebugCurrentFrame;
466
+ var kt = E.ReactCurrentOwner, ts = E.ReactDebugCurrentFrame;
467
467
  function lt(x) {
468
468
  if (x) {
469
469
  var O = x._owner, U = V(x.type, x._source, O ? O.type : null);
@@ -471,15 +471,15 @@ function li() {
471
471
  } else
472
472
  ts.setExtraStackFrame(null);
473
473
  }
474
- var kt;
475
- kt = !1;
476
- function Pt(x) {
474
+ var Pt;
475
+ Pt = !1;
476
+ function Ft(x) {
477
477
  return typeof x == "object" && x !== null && x.$$typeof === t;
478
478
  }
479
479
  function ss() {
480
480
  {
481
- if (Lt.current) {
482
- var x = X(Lt.current.type);
481
+ if (kt.current) {
482
+ var x = X(kt.current.type);
483
483
  if (x)
484
484
  return `
485
485
 
@@ -514,7 +514,7 @@ Check the top-level render call using <` + U + ">.");
514
514
  return;
515
515
  ns[U] = !0;
516
516
  var P = "";
517
- x && x._owner && x._owner !== Lt.current && (P = " It was passed a child from " + X(x._owner.type) + "."), lt(x), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', U, P), lt(null);
517
+ x && x._owner && x._owner !== kt.current && (P = " It was passed a child from " + X(x._owner.type) + "."), lt(x), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', U, P), lt(null);
518
518
  }
519
519
  }
520
520
  function as(x, O) {
@@ -524,15 +524,15 @@ Check the top-level render call using <` + U + ">.");
524
524
  if (it(x))
525
525
  for (var U = 0; U < x.length; U++) {
526
526
  var P = x[U];
527
- Pt(P) && rs(P, O);
527
+ Ft(P) && rs(P, O);
528
528
  }
529
- else if (Pt(x))
529
+ else if (Ft(x))
530
530
  x._store && (x._store.validated = !0);
531
531
  else if (x) {
532
532
  var N = _(x);
533
533
  if (typeof N == "function" && N !== x.entries)
534
534
  for (var H = N.call(x), z; !(z = H.next()).done; )
535
- Pt(z.value) && rs(z.value, O);
535
+ Ft(z.value) && rs(z.value, O);
536
536
  }
537
537
  }
538
538
  }
@@ -553,8 +553,8 @@ Check the top-level render call using <` + U + ">.");
553
553
  if (U) {
554
554
  var P = X(O);
555
555
  Pe(U, x.props, "prop", P, x);
556
- } else if (O.PropTypes !== void 0 && !kt) {
557
- kt = !0;
556
+ } else if (O.PropTypes !== void 0 && !Pt) {
557
+ Pt = !0;
558
558
  var N = X(O);
559
559
  S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
560
560
  }
@@ -602,17 +602,17 @@ Check the top-level render call using <` + U + ">.");
602
602
  as(Oe, x);
603
603
  }
604
604
  if (me.call(O, "key")) {
605
- var It = X(x), Ee = Object.keys(O).filter(function(si) {
605
+ var Ct = X(x), Ee = Object.keys(O).filter(function(si) {
606
606
  return si !== "key";
607
607
  }), vn = Ee.length > 0 ? "{key: someKey, " + Ee.join(": ..., ") + ": ...}" : "{key: someKey}";
608
- if (!is[It + vn]) {
608
+ if (!is[Ct + vn]) {
609
609
  var ti = Ee.length > 0 ? "{" + Ee.join(": ..., ") + ": ...}" : "{}";
610
610
  S(`A props object containing a "key" prop is being spread into JSX:
611
611
  let props = %s;
612
612
  <%s {...props} />
613
613
  React keys must be passed directly to JSX without using spread:
614
614
  let props = %s;
615
- <%s key={someKey} {...props} />`, vn, It, ti, It), is[It + vn] = !0;
615
+ <%s key={someKey} {...props} />`, vn, Ct, ti, Ct), is[Ct + vn] = !0;
616
616
  }
617
617
  }
618
618
  return x === r ? Ds(ge) : Fs(ge), ge;
@@ -632,23 +632,23 @@ var gr;
632
632
  function oi() {
633
633
  return gr || (gr = 1, process.env.NODE_ENV === "production" ? Bs.exports = ii() : Bs.exports = li()), Bs.exports;
634
634
  }
635
- var s = oi(), Ft = {}, xr;
635
+ var s = oi(), Dt = {}, xr;
636
636
  function ci() {
637
- if (xr) return Ft;
637
+ if (xr) return Dt;
638
638
  xr = 1;
639
639
  var e = ai;
640
640
  if (process.env.NODE_ENV === "production")
641
- Ft.createRoot = e.createRoot, Ft.hydrateRoot = e.hydrateRoot;
641
+ Dt.createRoot = e.createRoot, Dt.hydrateRoot = e.hydrateRoot;
642
642
  else {
643
643
  var t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
644
- Ft.createRoot = function(n, r) {
644
+ Dt.createRoot = function(n, r) {
645
645
  t.usingClientEntryPoint = !0;
646
646
  try {
647
647
  return e.createRoot(n, r);
648
648
  } finally {
649
649
  t.usingClientEntryPoint = !1;
650
650
  }
651
- }, Ft.hydrateRoot = function(n, r, l) {
651
+ }, Dt.hydrateRoot = function(n, r, l) {
652
652
  t.usingClientEntryPoint = !0;
653
653
  try {
654
654
  return e.hydrateRoot(n, r, l);
@@ -657,7 +657,7 @@ function ci() {
657
657
  }
658
658
  };
659
659
  }
660
- return Ft;
660
+ return Dt;
661
661
  }
662
662
  var di = ci();
663
663
  const Yr = /* @__PURE__ */ Dr(di), fs = (e) => e.replace(/\-/g, " ").replace(
@@ -679,7 +679,7 @@ function hi(e) {
679
679
  function Ve(e) {
680
680
  return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
681
681
  }
682
- function At(e) {
682
+ function Et(e) {
683
683
  return e != null && Object.prototype.toString.call(e) === "[object Object]";
684
684
  }
685
685
  function ce(e, t) {
@@ -824,9 +824,9 @@ function mi(e) {
824
824
  function En(e, t) {
825
825
  var n = Nt({}, e), r;
826
826
  for (r in t)
827
- ce(t, r) && (At(e[r]) && At(t[r]) ? (n[r] = {}, Nt(n[r], e[r]), Nt(n[r], t[r])) : t[r] != null ? n[r] = t[r] : delete n[r]);
827
+ ce(t, r) && (Et(e[r]) && Et(t[r]) ? (n[r] = {}, Nt(n[r], e[r]), Nt(n[r], t[r])) : t[r] != null ? n[r] = t[r] : delete n[r]);
828
828
  for (r in e)
829
- ce(e, r) && !ce(t, r) && At(e[r]) && (n[r] = Nt({}, n[r]));
829
+ ce(e, r) && !ce(t, r) && Et(e[r]) && (n[r] = Nt({}, n[r]));
830
830
  return n;
831
831
  }
832
832
  function Gn(e) {
@@ -855,14 +855,14 @@ function tt(e, t, n) {
855
855
  var r = "" + Math.abs(e), l = t - r.length, o = e >= 0;
856
856
  return (o ? n ? "+" : "" : "-") + Math.pow(10, Math.max(0, l)).toString().substr(1) + r;
857
857
  }
858
- var zn = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, Gs = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, bn = {}, Gt = {};
859
- function K(e, t, n, r) {
858
+ var zn = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, Gs = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, bn = {}, zt = {};
859
+ function Q(e, t, n, r) {
860
860
  var l = r;
861
861
  typeof r == "string" && (l = function() {
862
862
  return this[r]();
863
- }), e && (Gt[e] = l), t && (Gt[t[0]] = function() {
863
+ }), e && (zt[e] = l), t && (zt[t[0]] = function() {
864
864
  return tt(l.apply(this, arguments), t[1], t[2]);
865
- }), n && (Gt[n] = function() {
865
+ }), n && (zt[n] = function() {
866
866
  return this.localeData().ordinal(
867
867
  l.apply(this, arguments),
868
868
  e
@@ -875,7 +875,7 @@ function yi(e) {
875
875
  function gi(e) {
876
876
  var t = e.match(zn), n, r;
877
877
  for (n = 0, r = t.length; n < r; n++)
878
- Gt[t[n]] ? t[n] = Gt[t[n]] : t[n] = yi(t[n]);
878
+ zt[t[n]] ? t[n] = zt[t[n]] : t[n] = yi(t[n]);
879
879
  return function(l) {
880
880
  var o = "", a;
881
881
  for (a = 0; a < r; a++)
@@ -1031,7 +1031,7 @@ function Oi(e) {
1031
1031
  return r.priority - l.priority;
1032
1032
  }), t;
1033
1033
  }
1034
- var zr = /\d/, De = /\d\d/, Wr = /\d{3}/, Vn = /\d{4}/, cn = /[+-]?\d{6}/, ye = /\d\d?/, Vr = /\d\d\d\d?/, qr = /\d\d\d\d\d\d?/, dn = /\d{1,3}/, qn = /\d{1,4}/, hn = /[+-]?\d{1,6}/, Kt = /\d+/, un = /[+-]?\d+/, Mi = /Z|[+-]\d\d:?\d\d/gi, mn = /Z|[+-]\d\d(?::?\d\d)?/gi, Ai = /[+-]?\d+(\.\d{1,3})?/, Ss = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, Qt = /^[1-9]\d?/, Kn = /^([1-9]\d|\d)/, Js;
1034
+ var zr = /\d/, De = /\d\d/, Wr = /\d{3}/, Vn = /\d{4}/, cn = /[+-]?\d{6}/, ye = /\d\d?/, Vr = /\d\d\d\d?/, qr = /\d\d\d\d\d\d?/, dn = /\d{1,3}/, qn = /\d{1,4}/, hn = /[+-]?\d{1,6}/, Qt = /\d+/, un = /[+-]?\d+/, Mi = /Z|[+-]\d\d:?\d\d/gi, mn = /Z|[+-]\d\d(?::?\d\d)?/gi, Ai = /[+-]?\d+(\.\d{1,3})?/, Ss = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, Zt = /^[1-9]\d?/, Kn = /^([1-9]\d|\d)/, Js;
1035
1035
  Js = {};
1036
1036
  function B(e, t, n) {
1037
1037
  Js[e] = nt(t) ? t : function(r, l) {
@@ -1080,17 +1080,17 @@ function Li(e, t, n) {
1080
1080
  function fn(e) {
1081
1081
  return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
1082
1082
  }
1083
- var Ie = 0, dt = 1, et = 2, Se = 3, We = 4, ht = 5, Mt = 6, ki = 7, Pi = 8;
1084
- K("Y", 0, 0, function() {
1083
+ var Ie = 0, dt = 1, et = 2, Se = 3, We = 4, ht = 5, At = 6, ki = 7, Pi = 8;
1084
+ Q("Y", 0, 0, function() {
1085
1085
  var e = this.year();
1086
1086
  return e <= 9999 ? tt(e, 4) : "+" + e;
1087
1087
  });
1088
- K(0, ["YY", 2], 0, function() {
1088
+ Q(0, ["YY", 2], 0, function() {
1089
1089
  return this.year() % 100;
1090
1090
  });
1091
- K(0, ["YYYY", 4], 0, "year");
1092
- K(0, ["YYYYY", 5], 0, "year");
1093
- K(0, ["YYYYYY", 6, !0], 0, "year");
1091
+ Q(0, ["YYYY", 4], 0, "year");
1092
+ Q(0, ["YYYYY", 5], 0, "year");
1093
+ Q(0, ["YYYYYY", 6, !0], 0, "year");
1094
1094
  B("Y", un);
1095
1095
  B("YY", ye, De);
1096
1096
  B("YYYY", qn, Vn);
@@ -1112,11 +1112,11 @@ function ps(e) {
1112
1112
  R.parseTwoDigitYear = function(e) {
1113
1113
  return ae(e) + (ae(e) > 68 ? 1900 : 2e3);
1114
1114
  };
1115
- var Kr = Zt("FullYear", !0);
1115
+ var Kr = Jt("FullYear", !0);
1116
1116
  function Fi() {
1117
1117
  return fn(this.year());
1118
1118
  }
1119
- function Zt(e, t) {
1119
+ function Jt(e, t) {
1120
1120
  return function(n) {
1121
1121
  return n != null ? (Qr(this, e, n), R.updateOffset(this, t), this) : ys(this, e);
1122
1122
  };
@@ -1203,16 +1203,16 @@ function Qn(e, t) {
1203
1203
  var n = Ui(t, 12);
1204
1204
  return e += (t - n) / 12, n === 1 ? fn(e) ? 29 : 28 : 31 - n % 7 % 2;
1205
1205
  }
1206
- K("M", ["MM", 2], "Mo", function() {
1206
+ Q("M", ["MM", 2], "Mo", function() {
1207
1207
  return this.month() + 1;
1208
1208
  });
1209
- K("MMM", 0, 0, function(e) {
1209
+ Q("MMM", 0, 0, function(e) {
1210
1210
  return this.localeData().monthsShort(this, e);
1211
1211
  });
1212
- K("MMMM", 0, 0, function(e) {
1212
+ Q("MMMM", 0, 0, function(e) {
1213
1213
  return this.localeData().months(this, e);
1214
1214
  });
1215
- B("M", ye, Qt);
1215
+ B("M", ye, Zt);
1216
1216
  B("MM", ye, De);
1217
1217
  B("MMM", function(e, t) {
1218
1218
  return t.monthsShortRegex(e);
@@ -1334,11 +1334,11 @@ function mt(e, t, n) {
1334
1334
  var r = Xs(e, t, n), l = Xs(e + 1, t, n);
1335
1335
  return (ps(e) - r + l) / 7;
1336
1336
  }
1337
- K("w", ["ww", 2], "wo", "week");
1338
- K("W", ["WW", 2], "Wo", "isoWeek");
1339
- B("w", ye, Qt);
1337
+ Q("w", ["ww", 2], "wo", "week");
1338
+ Q("W", ["WW", 2], "Wo", "isoWeek");
1339
+ B("w", ye, Zt);
1340
1340
  B("ww", ye, De);
1341
- B("W", ye, Qt);
1341
+ B("W", ye, Zt);
1342
1342
  B("WW", ye, De);
1343
1343
  Ts(
1344
1344
  ["w", "ww", "W", "WW"],
@@ -1369,18 +1369,18 @@ function nl(e) {
1369
1369
  var t = xs(this, 1, 4).week;
1370
1370
  return e == null ? t : this.add((e - t) * 7, "d");
1371
1371
  }
1372
- K("d", 0, "do", "day");
1373
- K("dd", 0, 0, function(e) {
1372
+ Q("d", 0, "do", "day");
1373
+ Q("dd", 0, 0, function(e) {
1374
1374
  return this.localeData().weekdaysMin(this, e);
1375
1375
  });
1376
- K("ddd", 0, 0, function(e) {
1376
+ Q("ddd", 0, 0, function(e) {
1377
1377
  return this.localeData().weekdaysShort(this, e);
1378
1378
  });
1379
- K("dddd", 0, 0, function(e) {
1379
+ Q("dddd", 0, 0, function(e) {
1380
1380
  return this.localeData().weekdays(this, e);
1381
1381
  });
1382
- K("e", 0, 0, "weekday");
1383
- K("E", 0, 0, "isoWeekday");
1382
+ Q("e", 0, 0, "weekday");
1383
+ Q("E", 0, 0, "isoWeekday");
1384
1384
  B("d", ye);
1385
1385
  B("e", ye);
1386
1386
  B("E", ye);
@@ -1511,23 +1511,23 @@ function Xn() {
1511
1511
  function _l() {
1512
1512
  return this.hours() || 24;
1513
1513
  }
1514
- K("H", ["HH", 2], 0, "hour");
1515
- K("h", ["hh", 2], 0, Xn);
1516
- K("k", ["kk", 2], 0, _l);
1517
- K("hmm", 0, 0, function() {
1514
+ Q("H", ["HH", 2], 0, "hour");
1515
+ Q("h", ["hh", 2], 0, Xn);
1516
+ Q("k", ["kk", 2], 0, _l);
1517
+ Q("hmm", 0, 0, function() {
1518
1518
  return "" + Xn.apply(this) + tt(this.minutes(), 2);
1519
1519
  });
1520
- K("hmmss", 0, 0, function() {
1520
+ Q("hmmss", 0, 0, function() {
1521
1521
  return "" + Xn.apply(this) + tt(this.minutes(), 2) + tt(this.seconds(), 2);
1522
1522
  });
1523
- K("Hmm", 0, 0, function() {
1523
+ Q("Hmm", 0, 0, function() {
1524
1524
  return "" + this.hours() + tt(this.minutes(), 2);
1525
1525
  });
1526
- K("Hmmss", 0, 0, function() {
1526
+ Q("Hmmss", 0, 0, function() {
1527
1527
  return "" + this.hours() + tt(this.minutes(), 2) + tt(this.seconds(), 2);
1528
1528
  });
1529
1529
  function ra(e, t) {
1530
- K(e, 0, 0, function() {
1530
+ Q(e, 0, 0, function() {
1531
1531
  return this.localeData().meridiem(
1532
1532
  this.hours(),
1533
1533
  this.minutes(),
@@ -1543,8 +1543,8 @@ function aa(e, t) {
1543
1543
  B("a", aa);
1544
1544
  B("A", aa);
1545
1545
  B("H", ye, Kn);
1546
- B("h", ye, Qt);
1547
- B("k", ye, Qt);
1546
+ B("h", ye, Zt);
1547
+ B("k", ye, Zt);
1548
1548
  B("HH", ye, De);
1549
1549
  B("hh", ye, De);
1550
1550
  B("kk", ye, De);
@@ -1582,7 +1582,7 @@ fe("Hmmss", function(e, t, n) {
1582
1582
  function bl(e) {
1583
1583
  return (e + "").toLowerCase().charAt(0) === "p";
1584
1584
  }
1585
- var Sl = /[ap]\.?m?\.?/i, Tl = Zt("Hours", !0);
1585
+ var Sl = /[ap]\.?m?\.?/i, Tl = Jt("Hours", !0);
1586
1586
  function wl(e, t, n) {
1587
1587
  return e > 11 ? n ? "pm" : "PM" : n ? "am" : "AM";
1588
1588
  }
@@ -1691,7 +1691,7 @@ function Al() {
1691
1691
  }
1692
1692
  function tr(e) {
1693
1693
  var t, n = e._a;
1694
- return n && ne(e).overflow === -2 && (t = n[dt] < 0 || n[dt] > 11 ? dt : n[et] < 1 || n[et] > Qn(n[Ie], n[dt]) ? et : n[Se] < 0 || n[Se] > 24 || n[Se] === 24 && (n[We] !== 0 || n[ht] !== 0 || n[Mt] !== 0) ? Se : n[We] < 0 || n[We] > 59 ? We : n[ht] < 0 || n[ht] > 59 ? ht : n[Mt] < 0 || n[Mt] > 999 ? Mt : -1, ne(e)._overflowDayOfYear && (t < Ie || t > et) && (t = et), ne(e)._overflowWeeks && t === -1 && (t = ki), ne(e)._overflowWeekday && t === -1 && (t = Pi), ne(e).overflow = t), e;
1694
+ return n && ne(e).overflow === -2 && (t = n[dt] < 0 || n[dt] > 11 ? dt : n[et] < 1 || n[et] > Qn(n[Ie], n[dt]) ? et : n[Se] < 0 || n[Se] > 24 || n[Se] === 24 && (n[We] !== 0 || n[ht] !== 0 || n[At] !== 0) ? Se : n[We] < 0 || n[We] > 59 ? We : n[ht] < 0 || n[ht] > 59 ? ht : n[At] < 0 || n[At] > 999 ? At : -1, ne(e)._overflowDayOfYear && (t < Ie || t > et) && (t = et), ne(e)._overflowWeeks && t === -1 && (t = ki), ne(e)._overflowWeekday && t === -1 && (t = Pi), ne(e).overflow = t), e;
1695
1695
  }
1696
1696
  var El = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, Rl = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, Ll = /Z|[+-]\d\d(?::?\d\d)?/, zs = [
1697
1697
  ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
@@ -1842,7 +1842,7 @@ R.createFromInputFallback = Ue(
1842
1842
  e._d = /* @__PURE__ */ new Date(e._i + (e._useUTC ? " UTC" : ""));
1843
1843
  }
1844
1844
  );
1845
- function $t(e, t, n) {
1845
+ function Ht(e, t, n) {
1846
1846
  return e ?? t ?? n;
1847
1847
  }
1848
1848
  function Gl(e) {
@@ -1856,11 +1856,11 @@ function Gl(e) {
1856
1856
  function sr(e) {
1857
1857
  var t, n, r = [], l, o, a;
1858
1858
  if (!e._d) {
1859
- for (l = Gl(e), e._w && e._a[et] == null && e._a[dt] == null && zl(e), e._dayOfYear != null && (a = $t(e._a[Ie], l[Ie]), (e._dayOfYear > ps(a) || e._dayOfYear === 0) && (ne(e)._overflowDayOfYear = !0), n = gs(a, 0, e._dayOfYear), e._a[dt] = n.getUTCMonth(), e._a[et] = n.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
1859
+ for (l = Gl(e), e._w && e._a[et] == null && e._a[dt] == null && zl(e), e._dayOfYear != null && (a = Ht(e._a[Ie], l[Ie]), (e._dayOfYear > ps(a) || e._dayOfYear === 0) && (ne(e)._overflowDayOfYear = !0), n = gs(a, 0, e._dayOfYear), e._a[dt] = n.getUTCMonth(), e._a[et] = n.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
1860
1860
  e._a[t] = r[t] = l[t];
1861
1861
  for (; t < 7; t++)
1862
1862
  e._a[t] = r[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
1863
- e._a[Se] === 24 && e._a[We] === 0 && e._a[ht] === 0 && e._a[Mt] === 0 && (e._nextDay = !0, e._a[Se] = 0), e._d = (e._useUTC ? gs : Zi).apply(
1863
+ e._a[Se] === 24 && e._a[We] === 0 && e._a[ht] === 0 && e._a[At] === 0 && (e._nextDay = !0, e._a[Se] = 0), e._d = (e._useUTC ? gs : Zi).apply(
1864
1864
  null,
1865
1865
  r
1866
1866
  ), o = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[Se] = 24), e._w && typeof e._w.d < "u" && e._w.d !== o && (ne(e).weekdayMismatch = !0);
@@ -1868,11 +1868,11 @@ function sr(e) {
1868
1868
  }
1869
1869
  function zl(e) {
1870
1870
  var t, n, r, l, o, a, m, u, i;
1871
- t = e._w, t.GG != null || t.W != null || t.E != null ? (o = 1, a = 4, n = $t(
1871
+ t = e._w, t.GG != null || t.W != null || t.E != null ? (o = 1, a = 4, n = Ht(
1872
1872
  t.GG,
1873
1873
  e._a[Ie],
1874
1874
  xs(pe(), 1, 4).year
1875
- ), r = $t(t.W, 1), l = $t(t.E, 1), (l < 1 || l > 7) && (u = !0)) : (o = e._locale._week.dow, a = e._locale._week.doy, i = xs(pe(), o, a), n = $t(t.gg, e._a[Ie], i.year), r = $t(t.w, i.week), t.d != null ? (l = t.d, (l < 0 || l > 6) && (u = !0)) : t.e != null ? (l = t.e + o, (t.e < 0 || t.e > 6) && (u = !0)) : l = o), r < 1 || r > mt(n, o, a) ? ne(e)._overflowWeeks = !0 : u != null ? ne(e)._overflowWeekday = !0 : (m = sa(n, r, l, o, a), e._a[Ie] = m.year, e._dayOfYear = m.dayOfYear);
1875
+ ), r = Ht(t.W, 1), l = Ht(t.E, 1), (l < 1 || l > 7) && (u = !0)) : (o = e._locale._week.dow, a = e._locale._week.doy, i = xs(pe(), o, a), n = Ht(t.gg, e._a[Ie], i.year), r = Ht(t.w, i.week), t.d != null ? (l = t.d, (l < 0 || l > 6) && (u = !0)) : t.e != null ? (l = t.e + o, (t.e < 0 || t.e > 6) && (u = !0)) : l = o), r < 1 || r > mt(n, o, a) ? ne(e)._overflowWeeks = !0 : u != null ? ne(e)._overflowWeekday = !0 : (m = sa(n, r, l, o, a), e._a[Ie] = m.year, e._dayOfYear = m.dayOfYear);
1876
1876
  }
1877
1877
  R.ISO_8601 = function() {
1878
1878
  };
@@ -1892,7 +1892,7 @@ function nr(e) {
1892
1892
  for (l = Gr(e._f, e._locale).match(zn) || [], c = l.length, n = 0; n < c; n++)
1893
1893
  o = l[n], r = (t.match(Ei(o, e)) || [])[0], r && (a = t.substr(0, t.indexOf(r)), a.length > 0 && ne(e).unusedInput.push(a), t = t.slice(
1894
1894
  t.indexOf(r) + r.length
1895
- ), u += r.length), Gt[o] ? (r ? ne(e).empty = !1 : ne(e).unusedTokens.push(o), Li(o, r, e)) : e._strict && !r && ne(e).unusedTokens.push(o);
1895
+ ), u += r.length), zt[o] ? (r ? ne(e).empty = !1 : ne(e).unusedTokens.push(o), Li(o, r, e)) : e._strict && !r && ne(e).unusedTokens.push(o);
1896
1896
  ne(e).charsLeftOver = m - u, t.length > 0 && ne(e).unusedInput.push(t), e._a[Se] <= 12 && ne(e).bigHour === !0 && e._a[Se] > 0 && (ne(e).bigHour = void 0), ne(e).parsedDateParts = e._a.slice(0), ne(e).meridiem = e._meridiem, e._a[Se] = Wl(
1897
1897
  e._locale,
1898
1898
  e._a[Se],
@@ -1936,11 +1936,11 @@ function Ql(e) {
1936
1936
  var t = e._i;
1937
1937
  Re(t) ? e._d = new Date(R.now()) : _s(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? Bl(e) : Ve(t) ? (e._a = $r(t.slice(0), function(n) {
1938
1938
  return parseInt(n, 10);
1939
- }), sr(e)) : At(t) ? ql(e) : ft(t) ? e._d = new Date(t) : R.createFromInputFallback(e);
1939
+ }), sr(e)) : Et(t) ? ql(e) : ft(t) ? e._d = new Date(t) : R.createFromInputFallback(e);
1940
1940
  }
1941
1941
  function da(e, t, n, r, l) {
1942
1942
  var o = {};
1943
- return (t === !0 || t === !1) && (r = t, t = void 0), (n === !0 || n === !1) && (r = n, n = void 0), (At(e) && $n(e) || Ve(e) && e.length === 0) && (e = void 0), o._isAMomentObject = !0, o._useUTC = o._isUTC = l, o._l = n, o._i = e, o._f = t, o._strict = r, Kl(o);
1943
+ return (t === !0 || t === !1) && (r = t, t = void 0), (n === !0 || n === !1) && (r = n, n = void 0), (Et(e) && $n(e) || Ve(e) && e.length === 0) && (e = void 0), o._isAMomentObject = !0, o._useUTC = o._isUTC = l, o._l = n, o._i = e, o._f = t, o._strict = r, Kl(o);
1944
1944
  }
1945
1945
  function pe(e, t, n, r) {
1946
1946
  return da(e, t, n, r, !1);
@@ -2025,7 +2025,7 @@ function ao(e, t, n) {
2025
2025
  return o + l;
2026
2026
  }
2027
2027
  function ua(e, t) {
2028
- K(e, 0, 0, function() {
2028
+ Q(e, 0, 0, function() {
2029
2029
  var n = this.utcOffset(), r = "+";
2030
2030
  return n < 0 && (n = -n, r = "-"), r + tt(~~(n / 60), 2) + t + tt(~~n % 60, 2);
2031
2031
  });
@@ -2121,16 +2121,16 @@ function Qe(e, t) {
2121
2121
  h: ae(r[Se]) * l,
2122
2122
  m: ae(r[We]) * l,
2123
2123
  s: ae(r[ht]) * l,
2124
- ms: ae(kn(r[Mt] * 1e3)) * l
2124
+ ms: ae(kn(r[At] * 1e3)) * l
2125
2125
  // the millisecond decimal point is included in the match
2126
2126
  }) : (r = No.exec(e)) ? (l = r[1] === "-" ? -1 : 1, n = {
2127
- y: Ct(r[2], l),
2128
- M: Ct(r[3], l),
2129
- w: Ct(r[4], l),
2130
- d: Ct(r[5], l),
2131
- h: Ct(r[6], l),
2132
- m: Ct(r[7], l),
2133
- s: Ct(r[8], l)
2127
+ y: Ot(r[2], l),
2128
+ M: Ot(r[3], l),
2129
+ w: Ot(r[4], l),
2130
+ d: Ot(r[5], l),
2131
+ h: Ot(r[6], l),
2132
+ m: Ot(r[7], l),
2133
+ s: Ot(r[8], l)
2134
2134
  }) : n == null ? n = {} : typeof n == "object" && ("from" in n || "to" in n) && (a = jo(
2135
2135
  pe(n.from),
2136
2136
  pe(n.to)
@@ -2138,7 +2138,7 @@ function Qe(e, t) {
2138
2138
  }
2139
2139
  Qe.fn = yn.prototype;
2140
2140
  Qe.invalid = ro;
2141
- function Ct(e, t) {
2141
+ function Ot(e, t) {
2142
2142
  var n = e && parseFloat(e.replace(",", "."));
2143
2143
  return (isNaN(n) ? 0 : n) * t;
2144
2144
  }
@@ -2171,7 +2171,7 @@ function bo(e) {
2171
2171
  return qe(e) || _s(e) || ya(e) || ft(e) || To(e) || So(e) || e === null || e === void 0;
2172
2172
  }
2173
2173
  function So(e) {
2174
- var t = At(e) && !$n(e), n = !1, r = [
2174
+ var t = Et(e) && !$n(e), n = !1, r = [
2175
2175
  "years",
2176
2176
  "year",
2177
2177
  "y",
@@ -2208,7 +2208,7 @@ function To(e) {
2208
2208
  }).length === 0), t && n;
2209
2209
  }
2210
2210
  function wo(e) {
2211
- var t = At(e) && !$n(e), n = !1, r = [
2211
+ var t = Et(e) && !$n(e), n = !1, r = [
2212
2212
  "sameDay",
2213
2213
  "nextDay",
2214
2214
  "lastDay",
@@ -2356,8 +2356,8 @@ var xa = Ue(
2356
2356
  function Na() {
2357
2357
  return this._locale;
2358
2358
  }
2359
- var en = 1e3, zt = 60 * en, tn = 60 * zt, ja = (365 * 400 + 97) * 24 * tn;
2360
- function Wt(e, t) {
2359
+ var en = 1e3, Wt = 60 * en, tn = 60 * Wt, ja = (365 * 400 + 97) * 24 * tn;
2360
+ function Vt(e, t) {
2361
2361
  return (e % t + t) % t;
2362
2362
  }
2363
2363
  function va(e, t, n) {
@@ -2403,16 +2403,16 @@ function zo(e) {
2403
2403
  t = n(this.year(), this.month(), this.date());
2404
2404
  break;
2405
2405
  case "hour":
2406
- t = this._d.valueOf(), t -= Wt(
2407
- t + (this._isUTC ? 0 : this.utcOffset() * zt),
2406
+ t = this._d.valueOf(), t -= Vt(
2407
+ t + (this._isUTC ? 0 : this.utcOffset() * Wt),
2408
2408
  tn
2409
2409
  );
2410
2410
  break;
2411
2411
  case "minute":
2412
- t = this._d.valueOf(), t -= Wt(t, zt);
2412
+ t = this._d.valueOf(), t -= Vt(t, Wt);
2413
2413
  break;
2414
2414
  case "second":
2415
- t = this._d.valueOf(), t -= Wt(t, en);
2415
+ t = this._d.valueOf(), t -= Vt(t, en);
2416
2416
  break;
2417
2417
  }
2418
2418
  return this._d.setTime(t), R.updateOffset(this, !0), this;
@@ -2454,16 +2454,16 @@ function Wo(e) {
2454
2454
  t = n(this.year(), this.month(), this.date() + 1) - 1;
2455
2455
  break;
2456
2456
  case "hour":
2457
- t = this._d.valueOf(), t += tn - Wt(
2458
- t + (this._isUTC ? 0 : this.utcOffset() * zt),
2457
+ t = this._d.valueOf(), t += tn - Vt(
2458
+ t + (this._isUTC ? 0 : this.utcOffset() * Wt),
2459
2459
  tn
2460
2460
  ) - 1;
2461
2461
  break;
2462
2462
  case "minute":
2463
- t = this._d.valueOf(), t += zt - Wt(t, zt) - 1;
2463
+ t = this._d.valueOf(), t += Wt - Vt(t, Wt) - 1;
2464
2464
  break;
2465
2465
  case "second":
2466
- t = this._d.valueOf(), t += en - Wt(t, en) - 1;
2466
+ t = this._d.valueOf(), t += en - Vt(t, en) - 1;
2467
2467
  break;
2468
2468
  }
2469
2469
  return this._d.setTime(t), R.updateOffset(this, !0), this;
@@ -2522,15 +2522,15 @@ function sc() {
2522
2522
  strict: this._strict
2523
2523
  };
2524
2524
  }
2525
- K("N", 0, 0, "eraAbbr");
2526
- K("NN", 0, 0, "eraAbbr");
2527
- K("NNN", 0, 0, "eraAbbr");
2528
- K("NNNN", 0, 0, "eraName");
2529
- K("NNNNN", 0, 0, "eraNarrow");
2530
- K("y", ["y", 1], "yo", "eraYear");
2531
- K("y", ["yy", 2], 0, "eraYear");
2532
- K("y", ["yyy", 3], 0, "eraYear");
2533
- K("y", ["yyyy", 4], 0, "eraYear");
2525
+ Q("N", 0, 0, "eraAbbr");
2526
+ Q("NN", 0, 0, "eraAbbr");
2527
+ Q("NNN", 0, 0, "eraAbbr");
2528
+ Q("NNNN", 0, 0, "eraName");
2529
+ Q("NNNNN", 0, 0, "eraNarrow");
2530
+ Q("y", ["y", 1], "yo", "eraYear");
2531
+ Q("y", ["yy", 2], 0, "eraYear");
2532
+ Q("y", ["yyy", 3], 0, "eraYear");
2533
+ Q("y", ["yyyy", 4], 0, "eraYear");
2534
2534
  B("N", ir);
2535
2535
  B("NN", ir);
2536
2536
  B("NNN", ir);
@@ -2543,10 +2543,10 @@ fe(
2543
2543
  l ? ne(n).era = l : ne(n).invalidEra = e;
2544
2544
  }
2545
2545
  );
2546
- B("y", Kt);
2547
- B("yy", Kt);
2548
- B("yyy", Kt);
2549
- B("yyyy", Kt);
2546
+ B("y", Qt);
2547
+ B("yy", Qt);
2548
+ B("yyy", Qt);
2549
+ B("yyyy", Qt);
2550
2550
  B("yo", pc);
2551
2551
  fe(["y", "yy", "yyy", "yyyy"], Ie);
2552
2552
  fe(["yo"], function(e, t, n, r) {
@@ -2646,7 +2646,7 @@ function fc(e, t) {
2646
2646
  return t.erasNarrowRegex(e);
2647
2647
  }
2648
2648
  function pc(e, t) {
2649
- return t._eraYearOrdinalRegex || Kt;
2649
+ return t._eraYearOrdinalRegex || Qt;
2650
2650
  }
2651
2651
  function lr() {
2652
2652
  var e = [], t = [], n = [], r = [], l, o, a, m, u, i = this.eras();
@@ -2657,14 +2657,14 @@ function lr() {
2657
2657
  "i"
2658
2658
  );
2659
2659
  }
2660
- K(0, ["gg", 2], 0, function() {
2660
+ Q(0, ["gg", 2], 0, function() {
2661
2661
  return this.weekYear() % 100;
2662
2662
  });
2663
- K(0, ["GG", 2], 0, function() {
2663
+ Q(0, ["GG", 2], 0, function() {
2664
2664
  return this.isoWeekYear() % 100;
2665
2665
  });
2666
2666
  function gn(e, t) {
2667
- K(0, [e, e.length], 0, t);
2667
+ Q(0, [e, e.length], 0, t);
2668
2668
  }
2669
2669
  gn("gggg", "weekYear");
2670
2670
  gn("ggggg", "weekYear");
@@ -2729,7 +2729,7 @@ function _c(e, t, n, r, l) {
2729
2729
  var o = sa(e, t, n, r, l), a = gs(o.year, 0, o.dayOfYear);
2730
2730
  return this.year(a.getUTCFullYear()), this.month(a.getUTCMonth()), this.date(a.getUTCDate()), this;
2731
2731
  }
2732
- K("Q", 0, "Qo", "quarter");
2732
+ Q("Q", 0, "Qo", "quarter");
2733
2733
  B("Q", zr);
2734
2734
  fe("Q", function(e, t) {
2735
2735
  t[dt] = (ae(e) - 1) * 3;
@@ -2737,8 +2737,8 @@ fe("Q", function(e, t) {
2737
2737
  function bc(e) {
2738
2738
  return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
2739
2739
  }
2740
- K("D", ["DD", 2], "Do", "date");
2741
- B("D", ye, Qt);
2740
+ Q("D", ["DD", 2], "Do", "date");
2741
+ B("D", ye, Zt);
2742
2742
  B("DD", ye, De);
2743
2743
  B("Do", function(e, t) {
2744
2744
  return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
@@ -2747,8 +2747,8 @@ fe(["D", "DD"], et);
2747
2747
  fe("Do", function(e, t) {
2748
2748
  t[et] = ae(e.match(ye)[0]);
2749
2749
  });
2750
- var Sa = Zt("Date", !0);
2751
- K("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
2750
+ var Sa = Jt("Date", !0);
2751
+ Q("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
2752
2752
  B("DDD", dn);
2753
2753
  B("DDDD", Wr);
2754
2754
  fe(["DDD", "DDDD"], function(e, t, n) {
@@ -2760,39 +2760,39 @@ function Sc(e) {
2760
2760
  ) + 1;
2761
2761
  return e == null ? t : this.add(e - t, "d");
2762
2762
  }
2763
- K("m", ["mm", 2], 0, "minute");
2763
+ Q("m", ["mm", 2], 0, "minute");
2764
2764
  B("m", ye, Kn);
2765
2765
  B("mm", ye, De);
2766
2766
  fe(["m", "mm"], We);
2767
- var Tc = Zt("Minutes", !1);
2768
- K("s", ["ss", 2], 0, "second");
2767
+ var Tc = Jt("Minutes", !1);
2768
+ Q("s", ["ss", 2], 0, "second");
2769
2769
  B("s", ye, Kn);
2770
2770
  B("ss", ye, De);
2771
2771
  fe(["s", "ss"], ht);
2772
- var wc = Zt("Seconds", !1);
2773
- K("S", 0, 0, function() {
2772
+ var wc = Jt("Seconds", !1);
2773
+ Q("S", 0, 0, function() {
2774
2774
  return ~~(this.millisecond() / 100);
2775
2775
  });
2776
- K(0, ["SS", 2], 0, function() {
2776
+ Q(0, ["SS", 2], 0, function() {
2777
2777
  return ~~(this.millisecond() / 10);
2778
2778
  });
2779
- K(0, ["SSS", 3], 0, "millisecond");
2780
- K(0, ["SSSS", 4], 0, function() {
2779
+ Q(0, ["SSS", 3], 0, "millisecond");
2780
+ Q(0, ["SSSS", 4], 0, function() {
2781
2781
  return this.millisecond() * 10;
2782
2782
  });
2783
- K(0, ["SSSSS", 5], 0, function() {
2783
+ Q(0, ["SSSSS", 5], 0, function() {
2784
2784
  return this.millisecond() * 100;
2785
2785
  });
2786
- K(0, ["SSSSSS", 6], 0, function() {
2786
+ Q(0, ["SSSSSS", 6], 0, function() {
2787
2787
  return this.millisecond() * 1e3;
2788
2788
  });
2789
- K(0, ["SSSSSSS", 7], 0, function() {
2789
+ Q(0, ["SSSSSSS", 7], 0, function() {
2790
2790
  return this.millisecond() * 1e4;
2791
2791
  });
2792
- K(0, ["SSSSSSSS", 8], 0, function() {
2792
+ Q(0, ["SSSSSSSS", 8], 0, function() {
2793
2793
  return this.millisecond() * 1e5;
2794
2794
  });
2795
- K(0, ["SSSSSSSSS", 9], 0, function() {
2795
+ Q(0, ["SSSSSSSSS", 9], 0, function() {
2796
2796
  return this.millisecond() * 1e6;
2797
2797
  });
2798
2798
  B("S", dn, zr);
@@ -2800,15 +2800,15 @@ B("SS", dn, De);
2800
2800
  B("SSS", dn, Wr);
2801
2801
  var jt, Ta;
2802
2802
  for (jt = "SSSS"; jt.length <= 9; jt += "S")
2803
- B(jt, Kt);
2803
+ B(jt, Qt);
2804
2804
  function Ic(e, t) {
2805
- t[Mt] = ae(("0." + e) * 1e3);
2805
+ t[At] = ae(("0." + e) * 1e3);
2806
2806
  }
2807
2807
  for (jt = "S"; jt.length <= 9; jt += "S")
2808
2808
  fe(jt, Ic);
2809
- Ta = Zt("Milliseconds", !1);
2810
- K("z", 0, 0, "zoneAbbr");
2811
- K("zz", 0, 0, "zoneName");
2809
+ Ta = Jt("Milliseconds", !1);
2810
+ Q("z", 0, 0, "zoneAbbr");
2811
+ Q("zz", 0, 0, "zoneName");
2812
2812
  function Cc() {
2813
2813
  return this._isUTC ? "UTC" : "";
2814
2814
  }
@@ -3098,16 +3098,16 @@ function Zc() {
3098
3098
  function Jc(e) {
3099
3099
  return e = $e(e), this.isValid() ? this[e + "s"]() : NaN;
3100
3100
  }
3101
- function Rt(e) {
3101
+ function Lt(e) {
3102
3102
  return function() {
3103
3103
  return this.isValid() ? this._data[e] : NaN;
3104
3104
  };
3105
3105
  }
3106
- var Xc = Rt("milliseconds"), ed = Rt("seconds"), td = Rt("minutes"), sd = Rt("hours"), nd = Rt("days"), rd = Rt("months"), ad = Rt("years");
3106
+ var Xc = Lt("milliseconds"), ed = Lt("seconds"), td = Lt("minutes"), sd = Lt("hours"), nd = Lt("days"), rd = Lt("months"), ad = Lt("years");
3107
3107
  function id() {
3108
3108
  return Ye(this.days() / 7);
3109
3109
  }
3110
- var ct = Math.round, Ht = {
3110
+ var ct = Math.round, Bt = {
3111
3111
  ss: 44,
3112
3112
  // a few seconds to seconds
3113
3113
  s: 45,
@@ -3134,23 +3134,23 @@ function cd(e) {
3134
3134
  return e === void 0 ? ct : typeof e == "function" ? (ct = e, !0) : !1;
3135
3135
  }
3136
3136
  function dd(e, t) {
3137
- return Ht[e] === void 0 ? !1 : t === void 0 ? Ht[e] : (Ht[e] = t, e === "s" && (Ht.ss = t - 1), !0);
3137
+ return Bt[e] === void 0 ? !1 : t === void 0 ? Bt[e] : (Bt[e] = t, e === "s" && (Bt.ss = t - 1), !0);
3138
3138
  }
3139
3139
  function hd(e, t) {
3140
3140
  if (!this.isValid())
3141
3141
  return this.localeData().invalidDate();
3142
- var n = !1, r = Ht, l, o;
3143
- return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (n = e), typeof t == "object" && (r = Object.assign({}, Ht, t), t.s != null && t.ss == null && (r.ss = t.s - 1)), l = this.localeData(), o = od(this, !n, r, l), n && (o = l.pastFuture(+this, o)), l.postformat(o);
3142
+ var n = !1, r = Bt, l, o;
3143
+ return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (n = e), typeof t == "object" && (r = Object.assign({}, Bt, t), t.s != null && t.ss == null && (r.ss = t.s - 1)), l = this.localeData(), o = od(this, !n, r, l), n && (o = l.pastFuture(+this, o)), l.postformat(o);
3144
3144
  }
3145
3145
  var Tn = Math.abs;
3146
- function Dt(e) {
3146
+ function Yt(e) {
3147
3147
  return (e > 0) - (e < 0) || +e;
3148
3148
  }
3149
3149
  function xn() {
3150
3150
  if (!this.isValid())
3151
3151
  return this.localeData().invalidDate();
3152
3152
  var e = Tn(this._milliseconds) / 1e3, t = Tn(this._days), n = Tn(this._months), r, l, o, a, m = this.asSeconds(), u, i, c, h;
3153
- return m ? (r = Ye(e / 60), l = Ye(r / 60), e %= 60, r %= 60, o = Ye(n / 12), n %= 12, a = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", u = m < 0 ? "-" : "", i = Dt(this._months) !== Dt(m) ? "-" : "", c = Dt(this._days) !== Dt(m) ? "-" : "", h = Dt(this._milliseconds) !== Dt(m) ? "-" : "", u + "P" + (o ? i + o + "Y" : "") + (n ? i + n + "M" : "") + (t ? c + t + "D" : "") + (l || r || e ? "T" : "") + (l ? h + l + "H" : "") + (r ? h + r + "M" : "") + (e ? h + a + "S" : "")) : "P0D";
3153
+ return m ? (r = Ye(e / 60), l = Ye(r / 60), e %= 60, r %= 60, o = Ye(n / 12), n %= 12, a = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", u = m < 0 ? "-" : "", i = Yt(this._months) !== Yt(m) ? "-" : "", c = Yt(this._days) !== Yt(m) ? "-" : "", h = Yt(this._milliseconds) !== Yt(m) ? "-" : "", u + "P" + (o ? i + o + "Y" : "") + (n ? i + n + "M" : "") + (t ? c + t + "D" : "") + (l || r || e ? "T" : "") + (l ? h + l + "H" : "") + (r ? h + r + "M" : "") + (e ? h + a + "S" : "")) : "P0D";
3154
3154
  }
3155
3155
  var ie = yn.prototype;
3156
3156
  ie.isValid = no;
@@ -3190,8 +3190,8 @@ ie.toIsoString = Ue(
3190
3190
  xn
3191
3191
  );
3192
3192
  ie.lang = xa;
3193
- K("X", 0, 0, "unix");
3194
- K("x", 0, 0, "valueOf");
3193
+ Q("X", 0, 0, "unix");
3194
+ Q("x", 0, 0, "valueOf");
3195
3195
  B("x", un);
3196
3196
  B("X", Ai);
3197
3197
  fe("X", function(e, t, n) {
@@ -3334,8 +3334,8 @@ function pd() {
3334
3334
  }, t._ = n = {
3335
3335
  // formats numbers separators, decimals places, signs, abbreviations
3336
3336
  numberToFormat: function(i, c, h) {
3337
- var f = o[t.options.currentLocale], y = !1, p = !1, v = 0, _ = "", E = 1e12, S = 1e9, T = 1e6, D = 1e3, $ = "", L = !1, J, re, te, oe, Ne, Z, X;
3338
- if (i = i || 0, re = Math.abs(i), t._.includes(c, "(") ? (y = !0, c = c.replace(/[\(|\)]/g, "")) : (t._.includes(c, "+") || t._.includes(c, "-")) && (Ne = t._.includes(c, "+") ? c.indexOf("+") : i < 0 ? c.indexOf("-") : -1, c = c.replace(/[\+|\-]/g, "")), t._.includes(c, "a") && (J = c.match(/a(k|m|b|t)?/), J = J ? J[1] : !1, t._.includes(c, " a") && (_ = " "), c = c.replace(new RegExp(_ + "a[kmbt]?"), ""), re >= E && !J || J === "t" ? (_ += f.abbreviations.trillion, i = i / E) : re < E && re >= S && !J || J === "b" ? (_ += f.abbreviations.billion, i = i / S) : re < S && re >= T && !J || J === "m" ? (_ += f.abbreviations.million, i = i / T) : (re < T && re >= D && !J || J === "k") && (_ += f.abbreviations.thousand, i = i / D)), t._.includes(c, "[.]") && (p = !0, c = c.replace("[.]", ".")), te = i.toString().split(".")[0], oe = c.split(".")[1], Z = c.indexOf(","), v = (c.split(".")[0].split(",")[0].match(/0/g) || []).length, oe ? (t._.includes(oe, "[") ? (oe = oe.replace("]", ""), oe = oe.split("["), $ = t._.toFixed(i, oe[0].length + oe[1].length, h, oe[1].length)) : $ = t._.toFixed(i, oe.length, h), te = $.split(".")[0], t._.includes($, ".") ? $ = f.delimiters.decimal + $.split(".")[1] : $ = "", p && Number($.slice(1)) === 0 && ($ = "")) : te = t._.toFixed(i, 0, h), _ && !J && Number(te) >= 1e3 && _ !== f.abbreviations.trillion)
3337
+ var f = o[t.options.currentLocale], y = !1, p = !1, v = 0, _ = "", E = 1e12, S = 1e9, T = 1e6, D = 1e3, $ = "", L = !1, J, re, te, oe, je, Z, X;
3338
+ if (i = i || 0, re = Math.abs(i), t._.includes(c, "(") ? (y = !0, c = c.replace(/[\(|\)]/g, "")) : (t._.includes(c, "+") || t._.includes(c, "-")) && (je = t._.includes(c, "+") ? c.indexOf("+") : i < 0 ? c.indexOf("-") : -1, c = c.replace(/[\+|\-]/g, "")), t._.includes(c, "a") && (J = c.match(/a(k|m|b|t)?/), J = J ? J[1] : !1, t._.includes(c, " a") && (_ = " "), c = c.replace(new RegExp(_ + "a[kmbt]?"), ""), re >= E && !J || J === "t" ? (_ += f.abbreviations.trillion, i = i / E) : re < E && re >= S && !J || J === "b" ? (_ += f.abbreviations.billion, i = i / S) : re < S && re >= T && !J || J === "m" ? (_ += f.abbreviations.million, i = i / T) : (re < T && re >= D && !J || J === "k") && (_ += f.abbreviations.thousand, i = i / D)), t._.includes(c, "[.]") && (p = !0, c = c.replace("[.]", ".")), te = i.toString().split(".")[0], oe = c.split(".")[1], Z = c.indexOf(","), v = (c.split(".")[0].split(",")[0].match(/0/g) || []).length, oe ? (t._.includes(oe, "[") ? (oe = oe.replace("]", ""), oe = oe.split("["), $ = t._.toFixed(i, oe[0].length + oe[1].length, h, oe[1].length)) : $ = t._.toFixed(i, oe.length, h), te = $.split(".")[0], t._.includes($, ".") ? $ = f.delimiters.decimal + $.split(".")[1] : $ = "", p && Number($.slice(1)) === 0 && ($ = "")) : te = t._.toFixed(i, 0, h), _ && !J && Number(te) >= 1e3 && _ !== f.abbreviations.trillion)
3339
3339
  switch (te = String(Number(te) / 1e3), _) {
3340
3340
  case f.abbreviations.thousand:
3341
3341
  _ = f.abbreviations.million;
@@ -3348,9 +3348,9 @@ function pd() {
3348
3348
  break;
3349
3349
  }
3350
3350
  if (t._.includes(te, "-") && (te = te.slice(1), L = !0), te.length < v)
3351
- for (var q = v - te.length; q > 0; q--)
3351
+ for (var K = v - te.length; K > 0; K--)
3352
3352
  te = "0" + te;
3353
- return Z > -1 && (te = te.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + f.delimiters.thousands)), c.indexOf(".") === 0 && (te = ""), X = te + $ + (_ || ""), y ? X = (y && L ? "(" : "") + X + (y && L ? ")" : "") : Ne >= 0 ? X = Ne === 0 ? (L ? "-" : "+") + X : X + (L ? "-" : "+") : L && (X = "-" + X), X;
3353
+ return Z > -1 && (te = te.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + f.delimiters.thousands)), c.indexOf(".") === 0 && (te = ""), X = te + $ + (_ || ""), y ? X = (y && L ? "(" : "") + X + (y && L ? ")" : "") : je >= 0 ? X = je === 0 ? (L ? "-" : "+") + X : X + (L ? "-" : "+") : L && (X = "-" + X), X;
3354
3354
  },
3355
3355
  // unformats numbers separators, decimals places, signs, abbreviations
3356
3356
  stringToNumber: function(i) {
@@ -3709,7 +3709,7 @@ const nn = /* @__PURE__ */ Dr(yd), be = (e) => +(Math.round(parseFloat(e) + "e+3
3709
3709
  roundUpto: be
3710
3710
  }
3711
3711
  }, Me = (e, t) => {
3712
- const n = Nd[`_${Vt[t].minimumFractionDigits ?? 2}`].roundUpto;
3712
+ const n = Nd[`_${qt[t].minimumFractionDigits ?? 2}`].roundUpto;
3713
3713
  return n(e);
3714
3714
  }, Nn = (e) => ({
3715
3715
  INR: "Rs",
@@ -3731,7 +3731,7 @@ const nn = /* @__PURE__ */ Dr(yd), be = (e) => +(Math.round(parseFloat(e) + "e+3
3731
3731
  MYR: "MYR",
3732
3732
  TZS: "TZS",
3733
3733
  BWP: "BWP"
3734
- })[e] || "Rs", Vt = {
3734
+ })[e] || "Rs", qt = {
3735
3735
  USD: { symbol: "$" },
3736
3736
  EUR: { symbol: "€" },
3737
3737
  GBP: { symbol: "£" },
@@ -3845,10 +3845,10 @@ function jd(e) {
3845
3845
  }
3846
3846
  const le = (e, t) => {
3847
3847
  var n;
3848
- return ((n = Vt[t]) == null ? void 0 : n.displayType) == "code" ? `${t} ${Me(e || 0, t)}` : `${Vt[t].symbol} ${Me(e || 0, t)}`;
3848
+ return ((n = qt[t]) == null ? void 0 : n.displayType) == "code" ? `${t} ${Me(e || 0, t)}` : `${qt[t].symbol} ${Me(e || 0, t)}`;
3849
3849
  }, G = (e, t) => {
3850
3850
  var n;
3851
- return ((n = Vt[t]) == null ? void 0 : n.displayType) == "code" ? `${t} ${wr(e || 0, t)}` : `${Vt[t].symbol} ${wr(e || 0, t)}`;
3851
+ return ((n = qt[t]) == null ? void 0 : n.displayType) == "code" ? `${t} ${wr(e || 0, t)}` : `${qt[t].symbol} ${wr(e || 0, t)}`;
3852
3852
  }, cr = () => {
3853
3853
  var e = "Unknown OS";
3854
3854
  return navigator.userAgent.indexOf("Win") != -1 && (e = "Windows OS"), navigator.userAgent.indexOf("Mac") != -1 && (e = "Macintosh"), navigator.userAgent.indexOf("Linux") != -1 && (e = "Linux OS"), navigator.userAgent.indexOf("Android") != -1 && (e = "Android OS"), navigator.userAgent.indexOf("like Mac") != -1 && (e = "iOS"), e;
@@ -3955,7 +3955,7 @@ const bd = (e) => ({
3955
3955
  }));
3956
3956
  return n;
3957
3957
  }, Id = (e, t) => e > 0 && t > 0 ? e / t : 0;
3958
- function qt(e) {
3958
+ function Kt(e) {
3959
3959
  return new Promise((t, n) => {
3960
3960
  try {
3961
3961
  var r = new Image();
@@ -3992,6 +3992,9 @@ const Ws = (e, t, n) => {
3992
3992
  case "ORDER_DISCOUNT":
3993
3993
  t.ORDER_DISCOUNT = [n];
3994
3994
  break;
3995
+ case "OFFER_DISCOUNT":
3996
+ t.OFFER_DISCOUNT ? t.OFFER_DISCOUNT.push(n) : t.OFFER_DISCOUNT = [n];
3997
+ break;
3995
3998
  case "DISCOUNT_ITEMS":
3996
3999
  t.DISCOUNT_ITEMS ? t.DISCOUNT_ITEMS.push(n) : t.DISCOUNT_ITEMS = [n];
3997
4000
  break;
@@ -4091,11 +4094,11 @@ const Ws = (e, t, n) => {
4091
4094
  }
4092
4095
  e.orderList.filter((S) => {
4093
4096
  a = S.services.sort((T) => T.status === "CANCELLED" ? -1 : 0), a.forEach((T, D) => {
4094
- var Z, X, q;
4097
+ var Z, X, K;
4095
4098
  let $ = T.station ? T.station.split("::") : "", L = $ && $.length > 1 ? $[1] : $[0], J = e.tableNo ? e.tableNo.split("::") : null, re = J && J.length > 0 ? J[0] : e.orderFrom, te = e.tableName ? e.tableName : e.tableNo ? re : e.orderFrom, oe;
4096
4099
  (Z = r == null ? void 0 : r[S.createdBy]) != null && Z.name && (oe = r[S.createdBy].name);
4097
- let Ne = !1;
4098
- (u || L && T.status == c) && (Ne = !0), Ne && Yn(L, l) && (o[L] || (o[L] = {}, o[L].station = L, o[L].services = [], o[L].tableName = te, o[L].customerName = e.name == t.companyName ? null : e.name, o[L].time = R().format("DD-MM-YYYY hh:mm a"), o[L].type = e.orderFrom, o[L].subOrderFrom = e.subOrderFrom, o[L].orderId = e.externalOrderId || e.offlineOrderId ? e.orderId : S.subOrderId, o[L].orderId = /* @__PURE__ */ new Set([o[L].orderId]), o[L].instruction = e.instruction, o[L].orderSource = e.orderSource, o[L].deliveryTimestamp = e.deliveryTimestamp ? R.unix(e.deliveryTimestamp).format("DD-MM-YYYY hh:mm A") : null, o[L].aggregatorOrderId = e.externalOrderId, o[L].otp = e.otp, o[L].totalQty = 0, o[L].tokenId = e.tokenId, o[L].kotId = T.kotId ? /* @__PURE__ */ new Set([T.kotId]) : null, o[L].waiterName = e.waiterName, o[L].duplicate = u, o[L].createdBy = oe, o[L].zomatoInstant = h, m && (o[L].customFields = m), i && (o[L].onlyCancelledItems = i), e.preparationTime && (o[L].prepareBy = R().add(e.preparationTime, "minutes").format("DD-MM-YYYY hh:mm A"))), o[L] ? (o[L].services.push({
4100
+ let je = !1;
4101
+ (u || L && T.status == c) && (je = !0), je && Yn(L, l) && (o[L] || (o[L] = {}, o[L].station = L, o[L].services = [], o[L].tableName = te, o[L].customerName = e.name == t.companyName ? null : e.name, o[L].time = R().format("DD-MM-YYYY hh:mm a"), o[L].type = e.orderFrom, o[L].subOrderFrom = e.subOrderFrom, o[L].orderId = e.externalOrderId || e.offlineOrderId ? e.orderId : S.subOrderId, o[L].orderId = /* @__PURE__ */ new Set([o[L].orderId]), o[L].instruction = e.instruction, o[L].orderSource = e.orderSource, o[L].deliveryTimestamp = e.deliveryTimestamp ? R.unix(e.deliveryTimestamp).format("DD-MM-YYYY hh:mm A") : null, o[L].aggregatorOrderId = e.externalOrderId, o[L].otp = e.otp, o[L].totalQty = 0, o[L].tokenId = e.tokenId, o[L].kotId = T.kotId ? /* @__PURE__ */ new Set([T.kotId]) : null, o[L].waiterName = e.waiterName, o[L].duplicate = u, o[L].createdBy = oe, o[L].zomatoInstant = h, m && (o[L].customFields = m), i && (o[L].onlyCancelledItems = i), e.preparationTime && (o[L].prepareBy = R().add(e.preparationTime, "minutes").format("DD-MM-YYYY hh:mm A"))), o[L] ? (o[L].services.push({
4099
4102
  serviceName: T.serviceName,
4100
4103
  qty: T.qty,
4101
4104
  instruction: T.isUrgent && T.instruction ? `(URGENT -${T.instruction})` : T.instruction ? `(${T.instruction})` : T.isUrgent ? "(URGENT)" : "",
@@ -4104,7 +4107,7 @@ const Ws = (e, t, n) => {
4104
4107
  index: D,
4105
4108
  status: T.status,
4106
4109
  addons: T.addons
4107
- }), o[L].totalQty += be(T.qty), (X = o[L].kotId) == null || X.add(T.kotId), e.externalOrderId || e.offlineOrderId || (q = o[L].orderId) == null || q.add(S.subOrderId)) : (o[L] = [], o[L].services.push({
4110
+ }), o[L].totalQty += be(T.qty), (X = o[L].kotId) == null || X.add(T.kotId), e.externalOrderId || e.offlineOrderId || (K = o[L].orderId) == null || K.add(S.subOrderId)) : (o[L] = [], o[L].services.push({
4108
4111
  serviceName: T.serviceName,
4109
4112
  qty: T.qty,
4110
4113
  instruction: T.instruction ? T.instruction : "",
@@ -4362,25 +4365,25 @@ const Ws = (e, t, n) => {
4362
4365
  custName: e.name ?? null,
4363
4366
  custAddress: e.custAddress ?? null,
4364
4367
  custContact: e.mobile ?? null
4365
- }, te = Nn(t.curr), oe = { ...e, companyInfo: $, orderInfo: J, customerInfo: re, gst: D, curr: te }, Ne = null, Z = null;
4366
- o.companyLogo && (Ne = await qt(`https://${o.companyLogo.bucket}.s3.amazonaws.com/${o.companyLogo.key}`)), o.qrcode && (Z = await qt(`https://${o.qrcode.bucket}.s3.amazonaws.com/${o.qrcode.key}`)), e.orderList.filter((X) => {
4367
- X.services.forEach(async (q, ue) => {
4368
+ }, te = Nn(t.curr), oe = { ...e, companyInfo: $, orderInfo: J, customerInfo: re, gst: D, curr: te }, je = null, Z = null;
4369
+ o.companyLogo && (je = await Kt(`https://${o.companyLogo.bucket}.s3.amazonaws.com/${o.companyLogo.key}`)), o.qrcode && (Z = await Kt(`https://${o.qrcode.bucket}.s3.amazonaws.com/${o.qrcode.key}`)), e.orderList.filter((X) => {
4370
+ X.services.forEach(async (K, ue) => {
4368
4371
  var ke, Ze;
4369
4372
  let W = "kitchen", ee = e.tableName ? e.tableName : e.orderFrom;
4370
4373
  W && (m[W] || (m[W] = {}, m[W].station = W, m[W].services = [], m[W].tableName = ee, m[W].customerName = e.name, m[W].time = R.unix(e.timestamp).format("DD-MM-YYYY hh:mm a"), m[W].type = e.orderFrom, m[W].orderId = e.orderId, m[W].instruction = e.instruction, m[W].totalQty = 0, m[W].tokenId = e.tokenId, m[W].orderSource = e.orderSource, m[W].aggregatorOrderId = e.externalOrderId, m[W].otp = e.otp, m[W].paymentState = e.paymentState, m[W].discountAmt = c, m[W].otherCharges = e.otherCharges, m[W].taxAmt = e.taxAmt, m[W].customFeilds = i, m[W].curr = t.curr ?? "INR", m[W].zomatoInstant = p), m[W] ? (u = {
4371
- serviceName: q.serviceName,
4372
- qty: q.qty,
4373
- instruction: q.isUrgent && q.instruction ? `(URGENT -${q.instruction})` : q.instruction ? `(${q.instruction})` : q.isUrgent ? "(URGENT)" : "",
4374
+ serviceName: K.serviceName,
4375
+ qty: K.qty,
4376
+ instruction: K.isUrgent && K.instruction ? `(URGENT -${K.instruction})` : K.instruction ? `(${K.instruction})` : K.isUrgent ? "(URGENT)" : "",
4374
4377
  subOrderId: X.subOrderId,
4375
- isUrgent: q.isUrgent,
4378
+ isUrgent: K.isUrgent,
4376
4379
  index: ue
4377
- }, (ke = q.addons) != null && ke.length && (u.addons = q.addons), m[W].services.push(u), m[W].totalQty += q.qty) : (m[W] = [], m[W].services.push({
4378
- serviceName: q.serviceName,
4379
- qty: q.qty,
4380
- instruction: q.instruction ? q.instruction : "",
4380
+ }, (ke = K.addons) != null && ke.length && (u.addons = K.addons), m[W].services.push(u), m[W].totalQty += K.qty) : (m[W] = [], m[W].services.push({
4381
+ serviceName: K.serviceName,
4382
+ qty: K.qty,
4383
+ instruction: K.instruction ? K.instruction : "",
4381
4384
  subOrderId: X.subOrderId,
4382
4385
  index: ue
4383
- }), m[W].totalQty += q.qty), m[W] = {
4386
+ }), m[W].totalQty += K.qty), m[W] = {
4384
4387
  ...m[W],
4385
4388
  companyInfo: $,
4386
4389
  orderInfo: J,
@@ -4389,20 +4392,20 @@ const Ws = (e, t, n) => {
4389
4392
  curr: te
4390
4393
  }, m[W].domain = o.siteURL, m[W].paymentMethods = o.paymentMode ? oe.paymentMethods : null, m[W].companyInfo.companyName = o.companyName, m[W].companyInfo.companyEmail = o.email, m[W].companyInfo.companyAddress = o.address, m[W].companyInfo.companyContact = o.mobile, m[W].tokenId = o.token ? oe.tokenId : null, o.isPayQR && o.upiId && o.upiId !== "" && (oe.upiId = o.upiId), m[W].gstNo = o.gst ? oe.gst : null, m[W].footerMessage = o.footerMessage, m[W].orderFrom = (Ze = e.subOrderFrom) == null ? void 0 : Ze.toUpperCase(), m[W].fssai = t.fssai, m[W].vatNo = t.vatNo, m[W].printOperatorInfo = o.printOperatorInfo === null || o.printOperatorInfo === !0, m[W].disabledPoweredBy = t.disabledPoweredBy === !0, m[W].printTime = R().format("DD-MM-YYYY hh:mm A"), m[W].printedBy = a.userRole == "admin" ? "Admin" : a.name, e.deliveryTimestamp && (m[W].deliveryTimestamp = R.unix(e.deliveryTimestamp).format("DD-MM-YYYY hh:mm A")), m[W].itemInstructionOnBill = o.itemInstructionOnBill, m[W] = {
4391
4394
  ...m[W],
4392
- companyLogo: Ne,
4395
+ companyLogo: je,
4393
4396
  companyQrCode: Z
4394
4397
  });
4395
4398
  });
4396
4399
  });
4397
4400
  for (const X in m)
4398
4401
  if (Object.hasOwnProperty.call(m, X)) {
4399
- const q = m[X];
4402
+ const K = m[X];
4400
4403
  try {
4401
4404
  let ue = t.printerSize ?? "2inch";
4402
4405
  r(
4403
4406
  new Object({
4404
4407
  obj: new Object({
4405
- ...q,
4408
+ ...K,
4406
4409
  paperSize: ue
4407
4410
  }),
4408
4411
  orderList: e.orderList
@@ -4494,12 +4497,12 @@ const Ws = (e, t, n) => {
4494
4497
  if (E.userRole == "admin" ? T = "ADMIN" : T = E == null ? void 0 : E.name, !(S != null && S.length)) return;
4495
4498
  let D = t.printerSize, $ = dr(null, { type: "BILL", siteSetting: t }, { occupiedServer: n.occupiedServer });
4496
4499
  D = $ ? (a = $[0]) != null && a.paperSize ? (m = $[0]) == null ? void 0 : m.paperSize : D || "2INCH" : D;
4497
- let L = t.footerAddress.addressLineOne ? t.footerAddress.addressLineOne : "", J = t.footerAddress.addressLineTwo ? t.footerAddress.addressLineTwo : "", re = t.footerAddress.city ? t.footerAddress.city : "", te = t.footerAddress.zip ? t.footerAddress.zip : "", oe = (L != "" ? L + "," : "") + (J != "" ? J + "," : "") + (re != "" ? re + "," : "") + (te != "" ? te + "," : ""), Ne = t.gstNo, Z = {
4500
+ let L = t.footerAddress.addressLineOne ? t.footerAddress.addressLineOne : "", J = t.footerAddress.addressLineTwo ? t.footerAddress.addressLineTwo : "", re = t.footerAddress.city ? t.footerAddress.city : "", te = t.footerAddress.zip ? t.footerAddress.zip : "", oe = (L != "" ? L + "," : "") + (J != "" ? J + "," : "") + (re != "" ? re + "," : "") + (te != "" ? te + "," : ""), je = t.gstNo, Z = {
4498
4501
  companyName: t.companyName,
4499
4502
  companyAddress: oe,
4500
4503
  companyContact: t.contactNumber,
4501
4504
  companyEmail: t.contactEmail
4502
- }, q = {
4505
+ }, K = {
4503
4506
  orderStatus: "COMPLETED",
4504
4507
  orderDate: e && e.timestamp ? R.unix(e.timestamp).format("DD-MM-YYYY hh:mm A") : null,
4505
4508
  orderNumber: e && e.orderId ? e.orderId : null,
@@ -4510,12 +4513,12 @@ const Ws = (e, t, n) => {
4510
4513
  custAddress: y && y.custAddress && _ || null,
4511
4514
  custContact: y && y.custMobile ? v : null,
4512
4515
  custEmail: "ajaybaglane7@gmail.com"
4513
- }, W = Nn(t.curr), ee = { ...e, companyInfo: Z, orderInfo: q, customerInfo: ue, gst: Ne, curr: W };
4516
+ }, W = Nn(t.curr), ee = { ...e, companyInfo: Z, orderInfo: K, customerInfo: ue, gst: je, curr: W };
4514
4517
  if (y) {
4515
4518
  if (ee.domain = y.siteURL, ee.paymentMethods = y.paymentMode ? ee.paymentMethods : null, ee.companyInfo.companyName = y.companyName, ee.companyInfo.companyEmail = y.email, ee.companyInfo.companyAddress = y.address, ee.companyInfo.companyContact = y.mobile, ee.customerInfo.custName = y.custName ? p : null, ee.tokenId = y.token ? ee.tokenId : null, y.isPayQR && y.upiId && y.upiId !== "" && (ee.upiId = y.upiId), ee.gstNo = y.gst ? ee.gst : null, ee.footerMessage = y.footerMessage, ee.orderFrom = (u = e.subOrderFrom) == null ? void 0 : u.toUpperCase(), ee.fssai = t.fssai, ee.vatNo = t.vatNo, ee.invoiceType = t.invoiceType, ee.taxLabel = Aa(t), ee.printOperatorInfo = y.printOperatorInfo === null || y.printOperatorInfo === !0, ee.disabledPoweredBy = t.disabledPoweredBy === !0, ee.printTime = R().format("DD-MM-YYYY hh:mm A"), e.deliveryTimestamp && (ee.deliveryTimestamp = R.unix(e.deliveryTimestamp).format("DD-MM-YYYY hh:mm A")), ee.itemInstructionOnBill = y.itemInstructionOnBill, ee.printHSNCodeOnBill = y.printHSNCodeOnBill, ee.noOfInvoice = y.noOfInvoice, ee.printby = T, ee.newFormat = !0, !(y.itemInstructionOnBill || y.printHSNCodeOnBill) && ((i = ee.itemList) != null && i.length)) {
4516
4519
  let se;
4517
- for (let je = 0; je < ee.itemList.length; je++)
4518
- se = ee.itemList[je], se.instruction && delete se.instruction, se.hsnCode && delete se.hsnCode;
4520
+ for (let ve = 0; ve < ee.itemList.length; ve++)
4521
+ se = ee.itemList[ve], se.instruction && delete se.instruction, se.hsnCode && delete se.hsnCode;
4519
4522
  }
4520
4523
  t.enabledOutstandingOnPay && ((c = e.custoutStandingData) != null && c.balanceAmt) && (ee.custoutStandingData = {
4521
4524
  balanceAmt: e.custoutStandingData.balanceAmt
@@ -4523,23 +4526,23 @@ const Ws = (e, t, n) => {
4523
4526
  let ke = [];
4524
4527
  if ((h = e.customFeilds) != null && h.length) {
4525
4528
  let se;
4526
- for (let je = 0; je < e.customFeilds.length; je++)
4527
- se = e.customFeilds[je], se != null && se.customValue && ((f = se.availability) != null && f.includes("BILL")) && ke.push({
4529
+ for (let ve = 0; ve < e.customFeilds.length; ve++)
4530
+ se = e.customFeilds[ve], se != null && se.customValue && ((f = se.availability) != null && f.includes("BILL")) && ke.push({
4528
4531
  customName: se.customName,
4529
4532
  customValue: se.customValue
4530
4533
  });
4531
4534
  ee.customFields = ke;
4532
4535
  }
4533
4536
  let Ze = null, St = null;
4534
- y.companyLogo && (Ze = await qt(`https://${y.companyLogo.bucket}.s3.amazonaws.com/${y.companyLogo.key}`)), y.qrcode && (St = await qt(`https://${y.qrcode.bucket}.s3.amazonaws.com/${y.qrcode.key}`));
4537
+ y.companyLogo && (Ze = await Kt(`https://${y.companyLogo.bucket}.s3.amazonaws.com/${y.companyLogo.key}`)), y.qrcode && (St = await Kt(`https://${y.qrcode.bucket}.s3.amazonaws.com/${y.qrcode.key}`));
4535
4538
  var o = "Unknown OS";
4536
4539
  navigator.userAgent.indexOf("Win") != -1 && (o = "Windows OS"), navigator.userAgent.indexOf("Mac") != -1 && (o = "Macintosh"), navigator.userAgent.indexOf("Linux") != -1 && (o = "Linux OS"), navigator.userAgent.indexOf("Android") != -1 && (o = "Android OS"), navigator.userAgent.indexOf("like Mac") != -1 && (o = "iOS");
4537
4540
  let rt = {};
4538
4541
  (function() {
4539
- let se, je, at = 0, He = 0, g = 0, d = 0, C = 0, j = 0, w = 0, Y = 0, b = [], F = [], V = 0, me;
4542
+ let se, ve, at = 0, He = 0, g = 0, d = 0, C = 0, j = 0, w = 0, Y = 0, b = [], F = [], V = 0, me;
4540
4543
  if (D === "A4" || D === "A5") {
4541
- for (je = 0; je < S.length; je++)
4542
- se = S[je], He += se.sub_total, g += se.afterdiscAmt, d += se.afterdiscAmt + (se.total_charges ?? 0), at += se.afterdiscAmt + (se.total_charges ?? 0), V += se.qty;
4544
+ for (ve = 0; ve < S.length; ve++)
4545
+ se = S[ve], He += se.sub_total, g += se.afterdiscAmt, d += se.afterdiscAmt + (se.total_charges ?? 0), at += se.afterdiscAmt + (se.total_charges ?? 0), V += se.qty;
4543
4546
  let Ce = wn(S, "discountName", { separateItemsDisc: !0 });
4544
4547
  const Ae = Cn(Ce);
4545
4548
  let { obj: we, sum: Pe } = Vs(S);
@@ -4559,8 +4562,8 @@ const Ws = (e, t, n) => {
4559
4562
  };
4560
4563
  } else {
4561
4564
  let { obj: Ce } = Vs(S);
4562
- for (ee.taxation = Ce, je = 0; je < S.length; je++)
4563
- se = S[je], se.taxType === "VAT" ? (F.push(se), Y += se.sub_total, j += se.afterdiscAmt, C += se.afterdiscAmt + (se.total_charges ?? 0), w += se.afterdiscAmt + (se.total_charges ?? 0)) : (b.push(se), He += se.sub_total, g += se.afterdiscAmt, d += se.afterdiscAmt + (se.total_charges ?? 0), at += se.afterdiscAmt + (se.total_charges ?? 0));
4565
+ for (ee.taxation = Ce, ve = 0; ve < S.length; ve++)
4566
+ se = S[ve], se.taxType === "VAT" ? (F.push(se), Y += se.sub_total, j += se.afterdiscAmt, C += se.afterdiscAmt + (se.total_charges ?? 0), w += se.afterdiscAmt + (se.total_charges ?? 0)) : (b.push(se), He += se.sub_total, g += se.afterdiscAmt, d += se.afterdiscAmt + (se.total_charges ?? 0), at += se.afterdiscAmt + (se.total_charges ?? 0));
4564
4567
  if (b.length) {
4565
4568
  let Ae = wn(b, "discountName", { separateItemsDisc: !0 });
4566
4569
  const we = Cn(Ae);
@@ -4625,32 +4628,32 @@ const Ws = (e, t, n) => {
4625
4628
  custAddress: h && h.custAddress && p || null,
4626
4629
  custContact: h && h.custMobile ? y : null,
4627
4630
  custEmail: "ajaybaglane7@gmail.com"
4628
- }, oe = Nn(t.curr), Ne = "", Z = { ...e, companyInfo: L, orderInfo: re, customerInfo: te, gst: $, curr: oe };
4631
+ }, oe = Nn(t.curr), je = "", Z = { ...e, companyInfo: L, orderInfo: re, customerInfo: te, gst: $, curr: oe };
4629
4632
  if (h) {
4630
4633
  if (Z.domain = h.siteURL, Z.paymentMethods = h.paymentMode ? Z.paymentMethods : null, Z.companyInfo.companyName = h.companyName, Z.companyInfo.companyEmail = h.email, Z.companyInfo.companyAddress = h.address, Z.companyInfo.companyContact = h.mobile, Z.customerInfo.custName = h.custName ? f : null, Z.tokenId = h.token ? Z.tokenId : null, h.isPayQR && h.upiId && h.upiId !== "" && (Z.upiId = h.upiId), Z.gstNo = h.gst ? Z.gst : null, Z.footerMessage = h.footerMessage, Z.orderFrom = (a = v.subOrderFrom) == null ? void 0 : a.toUpperCase(), Z.fssai = t.fssai, Z.vatNo = t.vatNo, Z.taxLabel = Aa(t), Z.printOperatorInfo = h.printOperatorInfo === null || h.printOperatorInfo === !0, Z.disabledPoweredBy = t.disabledPoweredBy === !0, Z.printTime = R().format("DD-MM-YYYY hh:mm A"), v.deliveryTimestamp && (Z.deliveryTimestamp = R.unix(v.deliveryTimestamp).format("DD-MM-YYYY hh:mm A")), Z.itemInstructionOnBill = h.itemInstructionOnBill, Z.printHSNCodeOnBill = h.printHSNCodeOnBill, Z.noOfInvoice = h.noOfInvoice, Z.area = v.area, Z.captainName = v.captainName, !(h.itemInstructionOnBill || h.printHSNCodeOnBill) && ((m = Z.itemList) != null && m.length)) {
4631
- let q;
4634
+ let K;
4632
4635
  for (let ue = 0; ue < Z.itemList.length; ue++)
4633
- q = Z.itemList[ue], q.instruction && delete q.instruction, q.hsnCode && delete q.hsnCode;
4636
+ K = Z.itemList[ue], K.instruction && delete K.instruction, K.hsnCode && delete K.hsnCode;
4634
4637
  }
4635
4638
  t.enabledOutstandingOnPay && ((u = e.custoutStandingData) != null && u.balanceAmt) && (Z.custoutStandingData = {
4636
4639
  balanceAmt: e.custoutStandingData.balanceAmt
4637
4640
  });
4638
4641
  let X = [];
4639
4642
  if ((i = v.customFeilds) != null && i.length) {
4640
- let q;
4643
+ let K;
4641
4644
  for (let ue = 0; ue < v.customFeilds.length; ue++)
4642
- q = v.customFeilds[ue], q != null && q.customValue && ((c = q.availability) != null && c.includes("BILL")) && X.push({
4643
- customName: q.customName,
4644
- customValue: q.customValue
4645
+ K = v.customFeilds[ue], K != null && K.customValue && ((c = K.availability) != null && c.includes("BILL")) && X.push({
4646
+ customName: K.customName,
4647
+ customValue: K.customValue
4645
4648
  });
4646
4649
  Z.customFields = X;
4647
4650
  }
4648
4651
  if (t && t.isOld && t.isOld == !0) {
4649
- let q = null, ue = null;
4650
- h.companyLogo && (q = 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}`));
4652
+ let K = null, ue = null;
4653
+ h.companyLogo && (K = await Kt(`https://${h.companyLogo.bucket}.s3.amazonaws.com/${h.companyLogo.key}`)), h.qrcode && (ue = await Kt(`https://${h.qrcode.bucket}.s3.amazonaws.com/${h.qrcode.key}`));
4651
4654
  var o = "Unknown OS";
4652
4655
  navigator.userAgent.indexOf("Win") != -1 && (o = "Windows OS"), navigator.userAgent.indexOf("Mac") != -1 && (o = "Macintosh"), navigator.userAgent.indexOf("Linux") != -1 && (o = "Linux OS"), navigator.userAgent.indexOf("Android") != -1 && (o = "Android OS"), navigator.userAgent.indexOf("like Mac") != -1 && (o = "iOS");
4653
- let W = { obj: Z, companyLogo: q, companyQrCode: ue, paperSize: t.printerSize, Name: o };
4656
+ let W = { obj: Z, companyLogo: K, companyQrCode: ue, paperSize: t.printerSize, Name: o };
4654
4657
  r(W);
4655
4658
  }
4656
4659
  }
@@ -4747,9 +4750,9 @@ function _t(e) {
4747
4750
  t.push(e[n]);
4748
4751
  return t;
4749
4752
  }
4750
- let Yt = null;
4753
+ let Ut = null;
4751
4754
  function La(e = {}) {
4752
- return Yt || (e.includeStyleProperties ? (Yt = e.includeStyleProperties, Yt) : (Yt = _t(window.getComputedStyle(document.documentElement)), Yt));
4755
+ return Ut || (e.includeStyleProperties ? (Ut = e.includeStyleProperties, Ut) : (Ut = _t(window.getComputedStyle(document.documentElement)), Ut));
4753
4756
  }
4754
4757
  function rn(e, t) {
4755
4758
  const r = (e.ownerDocument.defaultView || window).getComputedStyle(e).getPropertyValue(t);
@@ -5023,7 +5026,7 @@ async function Ua(e, t, n) {
5023
5026
  const r = yh(e, n);
5024
5027
  return fh(r).reduce((o, a) => o.then((m) => ph(m, a, t, n)), Promise.resolve(r));
5025
5028
  }
5026
- async function Ut(e, t, n) {
5029
+ async function $t(e, t, n) {
5027
5030
  var r;
5028
5031
  const l = (r = t.style) === null || r === void 0 ? void 0 : r.getPropertyValue(e);
5029
5032
  if (l) {
@@ -5033,7 +5036,7 @@ async function Ut(e, t, n) {
5033
5036
  return !1;
5034
5037
  }
5035
5038
  async function gh(e, t) {
5036
- await Ut("background", e, t) || await Ut("background-image", e, t), await Ut("mask", e, t) || await Ut("-webkit-mask", e, t) || await Ut("mask-image", e, t) || await Ut("-webkit-mask-image", e, t);
5039
+ await $t("background", e, t) || await $t("background-image", e, t), await $t("mask", e, t) || await $t("-webkit-mask", e, t) || await $t("mask-image", e, t) || await $t("-webkit-mask-image", e, t);
5037
5040
  }
5038
5041
  async function xh(e, t) {
5039
5042
  const n = Le(e, HTMLImageElement);
@@ -5221,7 +5224,7 @@ var Oh = Object.defineProperty, ln = Object.getOwnPropertySymbols, Ga = Object.p
5221
5224
  * Copyright (c) Project Nayuki.
5222
5225
  * SPDX-License-Identifier: MIT
5223
5226
  */
5224
- var Et;
5227
+ var Rt;
5225
5228
  ((e) => {
5226
5229
  const t = class {
5227
5230
  constructor(u, i, c, h) {
@@ -5615,7 +5618,7 @@ var Et;
5615
5618
  };
5616
5619
  let m = a;
5617
5620
  m.NUMERIC_REGEX = /^[0-9]*$/, m.ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+.\/:-]*$/, m.ALPHANUMERIC_CHARSET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:", e.QrSegment = m;
5618
- })(Et || (Et = {}));
5621
+ })(Rt || (Rt = {}));
5619
5622
  ((e) => {
5620
5623
  ((t) => {
5621
5624
  const n = class {
@@ -5626,7 +5629,7 @@ var Et;
5626
5629
  let r = n;
5627
5630
  r.LOW = new n(0, 1), r.MEDIUM = new n(1, 0), r.QUARTILE = new n(2, 3), r.HIGH = new n(3, 2), t.Ecc = r;
5628
5631
  })(e.QrCode || (e.QrCode = {}));
5629
- })(Et || (Et = {}));
5632
+ })(Rt || (Rt = {}));
5630
5633
  ((e) => {
5631
5634
  ((t) => {
5632
5635
  const n = class {
@@ -5640,18 +5643,18 @@ var Et;
5640
5643
  let r = n;
5641
5644
  r.NUMERIC = new n(1, [10, 12, 14]), r.ALPHANUMERIC = new n(2, [9, 11, 13]), r.BYTE = new n(4, [8, 16, 16]), r.KANJI = new n(8, [8, 10, 12]), r.ECI = new n(7, [0, 0, 0]), t.Mode = r;
5642
5645
  })(e.QrSegment || (e.QrSegment = {}));
5643
- })(Et || (Et = {}));
5644
- var Bt = Et;
5646
+ })(Rt || (Rt = {}));
5647
+ var Gt = Rt;
5645
5648
  /**
5646
5649
  * @license qrcode.react
5647
5650
  * Copyright (c) Paul O'Shannessy
5648
5651
  * SPDX-License-Identifier: ISC
5649
5652
  */
5650
5653
  var Wa = {
5651
- L: Bt.QrCode.Ecc.LOW,
5652
- M: Bt.QrCode.Ecc.MEDIUM,
5653
- Q: Bt.QrCode.Ecc.QUARTILE,
5654
- H: Bt.QrCode.Ecc.HIGH
5654
+ L: Gt.QrCode.Ecc.LOW,
5655
+ M: Gt.QrCode.Ecc.MEDIUM,
5656
+ Q: Gt.QrCode.Ecc.QUARTILE,
5657
+ H: Gt.QrCode.Ecc.HIGH
5655
5658
  }, Va = 128, qa = "L", Ka = "#FFFFFF", Qa = "#000000", Za = !1, fr = 4, Mh = 0.1;
5656
5659
  function Ja(e, t = 0) {
5657
5660
  const n = [];
@@ -5719,15 +5722,15 @@ function Eh(e) {
5719
5722
  const S = f.current, T = S.getContext("2d");
5720
5723
  if (!T)
5721
5724
  return;
5722
- let D = Bt.QrCode.encodeText(n, Wa[l]).getModules();
5725
+ let D = Gt.QrCode.encodeText(n, Wa[l]).getModules();
5723
5726
  const $ = m ? fr : 0, L = D.length + $ * 2, J = ei(D, r, m, i), re = y.current, te = J != null && re !== null && re.complete && re.naturalHeight !== 0 && re.naturalWidth !== 0;
5724
5727
  te && J.excavation != null && (D = Xa(D, J.excavation));
5725
5728
  const oe = window.devicePixelRatio || 1;
5726
5729
  S.height = S.width = r * oe;
5727
- const Ne = r / L * oe;
5728
- T.scale(Ne, Ne), T.fillStyle = o, T.fillRect(0, 0, L, L), T.fillStyle = a, Ah ? T.fill(new Path2D(Ja(D, $))) : D.forEach(function(Z, X) {
5729
- Z.forEach(function(q, ue) {
5730
- q && T.fillRect(ue + $, X + $, 1, 1);
5730
+ const je = r / L * oe;
5731
+ T.scale(je, je), T.fillStyle = o, T.fillRect(0, 0, L, L), T.fillStyle = a, Ah ? T.fill(new Path2D(Ja(D, $))) : D.forEach(function(Z, X) {
5732
+ Z.forEach(function(K, ue) {
5733
+ K && T.fillRect(ue + $, X + $, 1, 1);
5731
5734
  });
5732
5735
  }), te && T.drawImage(re, J.x + $, J.y + $, J.w, J.h);
5733
5736
  }
@@ -5769,7 +5772,7 @@ function Rh(e) {
5769
5772
  "includeMargin",
5770
5773
  "imageSettings"
5771
5774
  ]);
5772
- let c = Bt.QrCode.encodeText(n, Wa[l]).getModules();
5775
+ let c = Gt.QrCode.encodeText(n, Wa[l]).getModules();
5773
5776
  const h = m ? fr : 0, f = c.length + h * 2, y = ei(c, r, m, u);
5774
5777
  let p = null;
5775
5778
  u != null && y != null && (y.excavation != null && (c = Xa(c, y.excavation)), p = /* @__PURE__ */ Te.createElement("image", {
@@ -5851,11 +5854,11 @@ const ms = (e, t) => t * 100 / e, Lh = (e) => !!(e || e === 0), kh = {
5851
5854
  textSize: 9
5852
5855
  }
5853
5856
  });
5854
- var Ot = cr(), ve = "normal-class";
5855
- (Ot == "Android OS" || Ot === "iOS") && (ve = "bold-class");
5857
+ var Mt = cr(), Ne = "normal-class";
5858
+ (Mt == "Android OS" || Mt === "iOS") && (Ne = "bold-class");
5856
5859
  const Ke = (e) => {
5857
- var Tt, se, je, at, He;
5858
- const t = e.additionalActions ?? {}, { invoiceFormat: n = {} } = e, r = ni(null), l = e.settingData ? e.settingData : e.value.settingData, o = localStorage.getItem("siteId"), { staticDataKOT: a, printer: m, type: u } = e.printerDataObject, i = ((se = (Tt = e.value) == null ? void 0 : Tt.settingData) == null ? void 0 : se.curr) ?? ((je = e.settingData) == null ? void 0 : je.curr) ?? "INR";
5860
+ var Tt, se, ve, at, He;
5861
+ const t = e.additionalActions ?? {}, { invoiceFormat: n = {} } = e, r = ni(null), l = e.settingData ? e.settingData : e.value.settingData, o = localStorage.getItem("siteId"), { staticDataKOT: a, printer: m, type: u } = e.printerDataObject, i = ((se = (Tt = e.value) == null ? void 0 : Tt.settingData) == null ? void 0 : se.curr) ?? ((ve = e.settingData) == null ? void 0 : ve.curr) ?? "INR";
5859
5862
  l == null || l.fontTheme;
5860
5863
  let c = e.printerDataObject.paperSize, h = dr(
5861
5864
  m,
@@ -5883,7 +5886,7 @@ const Ke = (e) => {
5883
5886
  S();
5884
5887
  }, [e.newId]);
5885
5888
  const v = () => new Promise(async (g, d) => {
5886
- if (Ot == "Android OS" || Ot === "iOS") {
5889
+ if (Mt == "Android OS" || Mt === "iOS") {
5887
5890
  let C = await Ch(r.current);
5888
5891
  if (C) {
5889
5892
  const j = await E(C);
@@ -6018,7 +6021,7 @@ const Ke = (e) => {
6018
6021
  }, oe = new Object({
6019
6022
  CREDIT: "Other Income",
6020
6023
  DEBIT: "Expense"
6021
- }), Ne = (g) => g.discountType === "COMPLIMENTARY" ? "@ COMPLIMENTARY" : g.discountType === "NON_CHARGEABLE" ? "@ NON CHARGEABLE" : `@ ${g.discountValue}${kh[g.discountType]}`, Z = (g) => {
6024
+ }), je = (g) => g.discountType === "COMPLIMENTARY" ? "@ COMPLIMENTARY" : g.discountType === "NON_CHARGEABLE" ? "@ NON CHARGEABLE" : `@ ${g.discountValue}${kh[g.discountType]}`, Z = (g) => {
6022
6025
  const d = new Array();
6023
6026
  if (g && Object.keys(g).length !== 0) {
6024
6027
  d.push(/* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center", children: "ACCOUNTS" }));
@@ -6528,8 +6531,8 @@ const Ke = (e) => {
6528
6531
  ] });
6529
6532
  })
6530
6533
  ] });
6531
- }, q = (g, d, { labels: C, doMultipleTax: j, type: w }) => {
6532
- var b, F, V, me, Ce, Ae, we, Pe, Be, it, wt;
6534
+ }, K = (g, d, { labels: C, doMultipleTax: j, type: w }) => {
6535
+ var b, F, V, me, Ce, Ae, we, Pe, Be, it, wt, It;
6533
6536
  const Y = g.discounts;
6534
6537
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6535
6538
  /* @__PURE__ */ s.jsx("hr", {}),
@@ -6567,31 +6570,31 @@ const Ke = (e) => {
6567
6570
  /* @__PURE__ */ s.jsx("hr", {})
6568
6571
  ] }),
6569
6572
  /* @__PURE__ */ s.jsxs("section", { className: "products-section", style: { paddingTop: "12px" }, children: [
6570
- g.itemList.map((Q) => {
6573
+ g.itemList.map((q) => {
6571
6574
  var xt;
6572
- return /* @__PURE__ */ s.jsxs("div", { style: Q.serviceName.startsWith("+ ") ? {} : { paddingTop: "12px" }, children: [
6575
+ return /* @__PURE__ */ s.jsxs("div", { style: q.serviceName.startsWith("+ ") ? {} : { paddingTop: "12px" }, children: [
6573
6576
  /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
6574
6577
  /* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-name ${k[c].dynamicClassname}`, style: { lineHeight: 1.2 }, children: [
6575
- Q.status === "RETURNED" ? "(R) " : "",
6576
- Q.serviceName.toUpperCase()
6578
+ q.status === "RETURNED" ? "(R) " : "",
6579
+ q.serviceName.toUpperCase()
6577
6580
  ] }),
6578
6581
  /* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-qty ${k[c].dynamicClassname}`, children: [
6579
- Q.status === "RETURNED" ? "-" : "",
6580
- Q.qty
6582
+ q.status === "RETURNED" ? "-" : "",
6583
+ q.qty
6581
6584
  ] }),
6582
- /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-rate ${k[c].dynamicClassname}`, children: Q.serviceRate ? y(Q.serviceRate) : "" }),
6583
- /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-amt ${k[c].dynamicClassname}`, children: Q.sub_total ? p(Q.sub_total) : "" })
6585
+ /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-rate ${k[c].dynamicClassname}`, children: q.serviceRate ? y(q.serviceRate) : "" }),
6586
+ /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-amt ${k[c].dynamicClassname}`, children: q.sub_total ? p(q.sub_total) : "" })
6584
6587
  ] }),
6585
- Q.hsnCode && d.printHSNCodeOnBill && /* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-name ${k[c].dynamicClassname}`, style: { lineHeight: 1.2 }, children: [
6588
+ q.hsnCode && d.printHSNCodeOnBill && /* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-name ${k[c].dynamicClassname}`, style: { lineHeight: 1.2 }, children: [
6586
6589
  "HSN: ",
6587
- Q.hsnCode
6590
+ q.hsnCode
6588
6591
  ] }),
6589
- (xt = Q.addons) != null && xt.length ? Q.addons.map((Je) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6592
+ (xt = q.addons) != null && xt.length ? q.addons.map((Je) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6590
6593
  /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
6591
6594
  /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-name ${k[c].dynamicClassname}`, style: { lineHeight: 1.2 }, children: "+ " + ze(Je.serviceName) }),
6592
6595
  /* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-qty ${k[c].dynamicClassname}`, children: [
6593
- Q.status === "RETURNED" ? "-" : "",
6594
- Je.qty * Q.qty
6596
+ q.status === "RETURNED" ? "-" : "",
6597
+ Je.qty * q.qty
6595
6598
  ] }),
6596
6599
  /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-rate ${k[c].dynamicClassname}` }),
6597
6600
  /* @__PURE__ */ s.jsx("h6", { className: `items products-heading-amt ${k[c].dynamicClassname}` })
@@ -6601,12 +6604,12 @@ const Ke = (e) => {
6601
6604
  Je.hsnCode
6602
6605
  ] }) })
6603
6606
  ] })) : "",
6604
- Q.instruction && d.itemInstructionOnBill ? /* @__PURE__ */ s.jsx("h6", { className: "left-align-entity level2-bold", children: /* @__PURE__ */ s.jsx("h6", { className: "items products-heading-addon-kot", children: " (" + Q.instruction + ")" }) }) : ""
6607
+ q.instruction && d.itemInstructionOnBill ? /* @__PURE__ */ s.jsx("h6", { className: "left-align-entity level2-bold", children: /* @__PURE__ */ s.jsx("h6", { className: "items products-heading-addon-kot", children: " (" + q.instruction + ")" }) }) : ""
6605
6608
  ] });
6606
6609
  }),
6607
6610
  /* @__PURE__ */ s.jsx("hr", {})
6608
6611
  ] }),
6609
- /* @__PURE__ */ s.jsxs("div", { className: `bottom-section ${k[c].dynamicClassname} ${ve}`, children: [
6612
+ /* @__PURE__ */ s.jsxs("div", { className: `bottom-section ${k[c].dynamicClassname} ${Ne}`, children: [
6610
6613
  /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", style: { paddingTop: "12px" }, children: [
6611
6614
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", dangerouslySetInnerHTML: { __html: C.subtotal } }),
6612
6615
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + p(g.subTotal) })
@@ -6616,52 +6619,52 @@ const Ke = (e) => {
6616
6619
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty" })
6617
6620
  ] }) : ""
6618
6621
  ] }),
6619
- (b = Y.DISCOUNT_ITEMS) != null && b.length ? Y.DISCOUNT_ITEMS.map((Q) => /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${ve}`, children: [
6622
+ (b = Y.DISCOUNT_ITEMS) != null && b.length ? Y.DISCOUNT_ITEMS.map((q) => /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${Ne}`, children: [
6620
6623
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6621
6624
  /* @__PURE__ */ s.jsx(
6622
6625
  "span",
6623
6626
  {
6624
6627
  className: "spaced-text",
6625
6628
  dangerouslySetInnerHTML: {
6626
- __html: C[`disc_${Q.discountName.toLowerCase()}`] ?? "DISC-" + Q.discountName.toUpperCase()
6629
+ __html: C[`disc_${q.discountName.toLowerCase()}`] ?? "DISC-" + q.discountName.toUpperCase()
6627
6630
  }
6628
6631
  }
6629
6632
  ),
6630
- /* @__PURE__ */ s.jsx("span", { children: Ne(Q) })
6633
+ /* @__PURE__ */ s.jsx("span", { children: je(q) })
6631
6634
  ] }) }),
6632
- /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + p(Q.discountAmt) })
6635
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + p(q.discountAmt) })
6633
6636
  ] })) : "",
6634
- (F = Y.CATEGORY_DISCOUNT) != null && F.length ? Y.CATEGORY_DISCOUNT.map((Q) => /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${ve}`, children: [
6637
+ (F = Y.CATEGORY_DISCOUNT) != null && F.length ? Y.CATEGORY_DISCOUNT.map((q) => /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${Ne}`, children: [
6635
6638
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6636
6639
  /* @__PURE__ */ s.jsx(
6637
6640
  "span",
6638
6641
  {
6639
6642
  className: "spaced-text",
6640
6643
  dangerouslySetInnerHTML: {
6641
- __html: C[`disc_${Q.discountName.toLowerCase()}`] ?? "DISC-" + Q.discountName.toUpperCase()
6644
+ __html: C[`disc_${q.discountName.toLowerCase()}`] ?? "DISC-" + q.discountName.toUpperCase()
6642
6645
  }
6643
6646
  }
6644
6647
  ),
6645
- /* @__PURE__ */ s.jsx("span", { children: " @" + Q.discountValue + "%" })
6648
+ /* @__PURE__ */ s.jsx("span", { children: " @" + q.discountValue + "%" })
6646
6649
  ] }) }),
6647
- /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + p(Q.discountAmt) })
6650
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + p(q.discountAmt) })
6648
6651
  ] })) : "",
6649
- (V = Y.ITEM_DISCOUNT) != null && V.length ? Y.ITEM_DISCOUNT.map((Q) => /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${ve}`, children: [
6652
+ (V = Y.ITEM_DISCOUNT) != null && V.length ? Y.ITEM_DISCOUNT.map((q) => /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${Ne}`, children: [
6650
6653
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6651
6654
  /* @__PURE__ */ s.jsx(
6652
6655
  "span",
6653
6656
  {
6654
6657
  className: "spaced-text",
6655
6658
  dangerouslySetInnerHTML: {
6656
- __html: C[`disc_${Q.discountName.toLowerCase()}`] ?? "DISC-" + fs(Q.discountName).toUpperCase()
6659
+ __html: C[`disc_${q.discountName.toLowerCase()}`] ?? "DISC-" + fs(q.discountName).toUpperCase()
6657
6660
  }
6658
6661
  }
6659
6662
  ),
6660
- /* @__PURE__ */ s.jsx("span", { children: " @" + Q.discountValue + "%" })
6663
+ /* @__PURE__ */ s.jsx("span", { children: " @" + q.discountValue + "%" })
6661
6664
  ] }) }),
6662
- /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + p(Q.discountAmt) })
6665
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + p(q.discountAmt) })
6663
6666
  ] })) : "",
6664
- (Ce = (me = Y.SEGMENT_DISCOUNT) == null ? void 0 : me[0]) != null && Ce.discountAmt ? /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${ve}`, children: [
6667
+ (Ce = (me = Y.SEGMENT_DISCOUNT) == null ? void 0 : me[0]) != null && Ce.discountAmt ? /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${Ne}`, children: [
6665
6668
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6666
6669
  /* @__PURE__ */ s.jsx(
6667
6670
  "span",
@@ -6677,7 +6680,7 @@ const Ke = (e) => {
6677
6680
  ] }) }),
6678
6681
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + p(Y.SEGMENT_DISCOUNT[0].discountAmt) })
6679
6682
  ] }) : "",
6680
- (we = (Ae = Y.COUPON_DISCOUNT) == null ? void 0 : Ae[0]) != null && we.discountAmt ? /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${ve}`, children: [
6683
+ (we = (Ae = Y.COUPON_DISCOUNT) == null ? void 0 : Ae[0]) != null && we.discountAmt ? /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${Ne}`, children: [
6681
6684
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6682
6685
  /* @__PURE__ */ s.jsx(
6683
6686
  "span",
@@ -6693,7 +6696,26 @@ const Ke = (e) => {
6693
6696
  ] }) }),
6694
6697
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + p(Y.COUPON_DISCOUNT[0].discountAmt) })
6695
6698
  ] }) : "",
6696
- (Be = (Pe = Y.ORDER_DISCOUNT) == null ? void 0 : Pe[0]) != null && Be.discountAmt ? /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${ve}`, children: [
6699
+ (Pe = Y.OFFER_DISCOUNT) != null && Pe.length ? Y.OFFER_DISCOUNT.map((q) => /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${Ne}`, children: [
6700
+ /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6701
+ /* @__PURE__ */ s.jsx(
6702
+ "span",
6703
+ {
6704
+ className: "spaced-text",
6705
+ dangerouslySetInnerHTML: {
6706
+ __html: C[`disc_${q.discountName.toLowerCase()}`] ?? "DISC-" + q.discountName.toUpperCase()
6707
+ }
6708
+ }
6709
+ ),
6710
+ /* @__PURE__ */ s.jsxs("span", { children: [
6711
+ "@",
6712
+ q.discountType == "RELATIVE" ? q.discountValue : p(q.discountAmt),
6713
+ q.discountType == "RELATIVE" ? "%" : "AMT"
6714
+ ] })
6715
+ ] }) }),
6716
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + p(q.discountAmt) })
6717
+ ] })) : "",
6718
+ (it = (Be = Y.ORDER_DISCOUNT) == null ? void 0 : Be[0]) != null && it.discountAmt ? /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${Ne}`, children: [
6697
6719
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6698
6720
  /* @__PURE__ */ s.jsx(
6699
6721
  "span",
@@ -6709,7 +6731,7 @@ const Ke = (e) => {
6709
6731
  ] }) }),
6710
6732
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + p(Y.ORDER_DISCOUNT[0].discountAmt) })
6711
6733
  ] }) : "",
6712
- o == "25e5f1e4-68ff-43a7-b042-bebb93f42b94" && g && g.orderDisc ? /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div ${ve}`, children: [
6734
+ o == "25e5f1e4-68ff-43a7-b042-bebb93f42b94" && g && g.orderDisc ? /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div ${Ne}`, children: [
6713
6735
  /* @__PURE__ */ s.jsxs("h5", { className: "total-qty", children: [
6714
6736
  "  ",
6715
6737
  d.couponCode ? "COUPON DISC" : "خصم الطلب",
@@ -6717,11 +6739,11 @@ const Ke = (e) => {
6717
6739
  ] }),
6718
6740
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty" })
6719
6741
  ] }) : "",
6720
- (it = g.charges) != null && it.length ? g.charges.map((Q) => /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${ve}`, children: [
6721
- /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: C[`charges_${Q.name.toLowerCase()}`] ?? Q.name } }) }),
6722
- d.invoiceType == "INCLUSIVE_SIMPLIFIED" ? /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + p(Q.amt + Q.taxAmt) }) : /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + p(Q.amt) })
6742
+ (wt = g.charges) != null && wt.length ? g.charges.map((q) => /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${Ne}`, children: [
6743
+ /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: C[`charges_${q.name.toLowerCase()}`] ?? q.name } }) }),
6744
+ d.invoiceType == "INCLUSIVE_SIMPLIFIED" ? /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + p(q.amt + q.taxAmt) }) : /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + p(q.amt) })
6723
6745
  ] }) })) : "",
6724
- g.subTotal !== g.afterCharges && g.afterCharges !== g.total && d.invoiceType !== "INCLUSIVE_SIMPLIFIED" ? /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${ve}`, children: [
6746
+ g.subTotal !== g.afterCharges && g.afterCharges !== g.total && d.invoiceType !== "INCLUSIVE_SIMPLIFIED" ? /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${Ne}`, children: [
6725
6747
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", dangerouslySetInnerHTML: { __html: C.amt_before_tax } }),
6726
6748
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + p(g.afterCharges) })
6727
6749
  ] }) : "",
@@ -6729,32 +6751,32 @@ const Ke = (e) => {
6729
6751
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: "المبلغ قبل الضريبة" }),
6730
6752
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty" })
6731
6753
  ] }) : "",
6732
- d.invoiceType !== "INCLUSIVE_SIMPLIFIED" && ((wt = g.taxation) != null && wt.length) ? g.taxation.map((Q) => {
6733
- if (Q.taxAmt)
6734
- return Q.taxType === "GST" ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6735
- /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div ${ve}`, children: [
6754
+ d.invoiceType !== "INCLUSIVE_SIMPLIFIED" && ((It = g.taxation) != null && It.length) ? g.taxation.map((q) => {
6755
+ if (q.taxAmt)
6756
+ return q.taxType === "GST" ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6757
+ /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div ${Ne}`, children: [
6736
6758
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
6737
6759
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: C.cgst } }),
6738
- /* @__PURE__ */ s.jsx("span", { children: "@" + Q.tax / 2 + "%" })
6760
+ /* @__PURE__ */ s.jsx("span", { children: "@" + q.tax / 2 + "%" })
6739
6761
  ] }) }),
6740
- /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + p(Q.taxAmt / 2) })
6762
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + p(q.taxAmt / 2) })
6741
6763
  ] }),
6742
- /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div ${ve}`, children: [
6764
+ /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div ${Ne}`, children: [
6743
6765
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
6744
6766
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: C[d.taxLabel.toLowerCase()] } }),
6745
- /* @__PURE__ */ s.jsx("span", { children: "@" + Q.tax / 2 + "%" })
6767
+ /* @__PURE__ */ s.jsx("span", { children: "@" + q.tax / 2 + "%" })
6746
6768
  ] }) }),
6747
- /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + p(Q.taxAmt / 2) })
6769
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + p(q.taxAmt / 2) })
6748
6770
  ] })
6749
- ] }) : /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div ${ve}`, children: [
6771
+ ] }) : /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div ${Ne}`, children: [
6750
6772
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
6751
6773
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: C.vat } }),
6752
- /* @__PURE__ */ s.jsx("span", { children: "@" + Q.tax + "%" })
6774
+ /* @__PURE__ */ s.jsx("span", { children: "@" + q.tax + "%" })
6753
6775
  ] }) }),
6754
- /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + p(Q.taxAmt) })
6776
+ /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + p(q.taxAmt) })
6755
6777
  ] });
6756
6778
  }) : "",
6757
- /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${ve}`, children: [
6779
+ /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${Ne}`, children: [
6758
6780
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty", dangerouslySetInnerHTML: { __html: C.total } }),
6759
6781
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + p(g.total) })
6760
6782
  ] }),
@@ -6768,14 +6790,14 @@ const Ke = (e) => {
6768
6790
  let C = !1;
6769
6791
  const j = g.distributedData;
6770
6792
  return g.distributedData && (C = Object.keys(g.distributedData).length > 1), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6771
- ((Y = j.GST) == null ? void 0 : Y.itemList) && q(j.GST, g, { labels: d, doMultipleTax: C, type: "GST" }),
6772
- ((b = j.VAT) == null ? void 0 : b.itemList) && q(j.VAT, g, { labels: d, doMultipleTax: C, type: "VAT" })
6793
+ ((Y = j.GST) == null ? void 0 : Y.itemList) && K(j.GST, g, { labels: d, doMultipleTax: C, type: "GST" }),
6794
+ ((b = j.VAT) == null ? void 0 : b.itemList) && K(j.VAT, g, { labels: d, doMultipleTax: C, type: "VAT" })
6773
6795
  ] });
6774
6796
  }, W = (g) => {
6775
6797
  const d = g.services, C = Object.keys(g.services), j = C.length;
6776
6798
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6777
6799
  /* @__PURE__ */ s.jsx("hr", {}),
6778
- /* @__PURE__ */ s.jsxs("section", { className: `products-section ${ve}`, children: [
6800
+ /* @__PURE__ */ s.jsxs("section", { className: `products-section ${Ne}`, children: [
6779
6801
  /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
6780
6802
  /* @__PURE__ */ s.jsx("h5", { className: "items products-heading-name-kot", children: k[c].itemName }),
6781
6803
  /* @__PURE__ */ s.jsx("h5", { className: "items products-heading-qty-kot", children: "QTY" })
@@ -6952,7 +6974,7 @@ const Ke = (e) => {
6952
6974
  }
6953
6975
  return d;
6954
6976
  }, rt = (g, d, C, j) => {
6955
- var V, me, Ce, Ae, we, Pe, Be, it, wt, Q, xt, Je, Jt, Is, Xt, es, Cs, Os, Ms, As, Es, Rs, Ls, Lt, ts, lt, kt, Pt, ss, ks, ns, Ps, rs, as, Fs, Ds, is, ls, Ys, Us, $s, Hs, x, O, U;
6977
+ var V, me, Ce, Ae, we, Pe, Be, it, wt, It, q, xt, Je, Is, Xt, es, Cs, Os, Ms, As, Es, Rs, Ls, kt, ts, lt, Pt, Ft, ss, ks, ns, Ps, rs, as, Fs, Ds, is, ls, Ys, Us, $s, Hs, x, O, U;
6956
6978
  const w = St(l.customLabelsMap), Y = ws(Sd(l.paymentModes), "internalName"), b = (P) => {
6957
6979
  var N;
6958
6980
  return (N = Y[P]) != null && N.displayName ? Y[P].displayName.toUpperCase() : P;
@@ -7071,7 +7093,7 @@ const Ke = (e) => {
7071
7093
  /* @__PURE__ */ s.jsx("strong", { className: "font-weight-bold", children: "Amount in words" }),
7072
7094
  /* @__PURE__ */ s.jsx("br", {}),
7073
7095
  jd(
7074
- Me(N.finalAmount, i).toFixed(Vt[i].minimumFractionDigits ?? 2)
7096
+ Me(N.finalAmount, i).toFixed(qt[i].minimumFractionDigits ?? 2)
7075
7097
  )
7076
7098
  ] }) }),
7077
7099
  /* @__PURE__ */ s.jsx("hr", {}),
@@ -7101,7 +7123,7 @@ const Ke = (e) => {
7101
7123
  }
7102
7124
  }
7103
7125
  ),
7104
- /* @__PURE__ */ s.jsx("span", { children: Ne(I) })
7126
+ /* @__PURE__ */ s.jsx("span", { children: je(I) })
7105
7127
  ] }),
7106
7128
  /* @__PURE__ */ s.jsx("td", { className: "text-align-right", width: "50%", children: G(I.discountAmt, i) })
7107
7129
  ] })) : "",
@@ -7150,7 +7172,7 @@ const Ke = (e) => {
7150
7172
  ] }),
7151
7173
  /* @__PURE__ */ s.jsx("td", { className: "text-align-right", width: "50%", children: G(M.SEGMENT_DISCOUNT[0].discountAmt, i) })
7152
7174
  ] }) : "",
7153
- (Q = (wt = M == null ? void 0 : M.COUPON_DISCOUNT) == null ? void 0 : wt[0]) != null && Q.discountAmt ? /* @__PURE__ */ s.jsxs("tr", { className: "subtotalTr", children: [
7175
+ (It = (wt = M == null ? void 0 : M.COUPON_DISCOUNT) == null ? void 0 : wt[0]) != null && It.discountAmt ? /* @__PURE__ */ s.jsxs("tr", { className: "subtotalTr", children: [
7154
7176
  /* @__PURE__ */ s.jsxs("td", { width: "50%", children: [
7155
7177
  /* @__PURE__ */ s.jsx(
7156
7178
  "span",
@@ -7165,7 +7187,7 @@ const Ke = (e) => {
7165
7187
  ] }),
7166
7188
  /* @__PURE__ */ s.jsx("td", { className: "text-align-right", width: "50%", children: G(M.COUPON_DISCOUNT[0].discountAmt, i) })
7167
7189
  ] }) : "",
7168
- (Je = (xt = M == null ? void 0 : M.ORDER_DISCOUNT) == null ? void 0 : xt[0]) != null && Je.discountAmt ? /* @__PURE__ */ s.jsxs("tr", { className: "subtotalTr", children: [
7190
+ (xt = (q = M == null ? void 0 : M.ORDER_DISCOUNT) == null ? void 0 : q[0]) != null && xt.discountAmt ? /* @__PURE__ */ s.jsxs("tr", { className: "subtotalTr", children: [
7169
7191
  /* @__PURE__ */ s.jsxs("td", { width: "50%", children: [
7170
7192
  /* @__PURE__ */ s.jsx(
7171
7193
  "span",
@@ -7180,7 +7202,7 @@ const Ke = (e) => {
7180
7202
  ] }),
7181
7203
  /* @__PURE__ */ s.jsx("td", { className: "text-align-right", width: "50%", children: G(M.ORDER_DISCOUNT[0].discountAmt, i) })
7182
7204
  ] }) : "",
7183
- (Jt = z.charges) != null && Jt.length ? z.charges.map((I) => /* @__PURE__ */ s.jsxs("tr", { className: "subtotalTr", children: [
7205
+ (Je = z.charges) != null && Je.length ? z.charges.map((I) => /* @__PURE__ */ s.jsxs("tr", { className: "subtotalTr", children: [
7184
7206
  /* @__PURE__ */ s.jsx("td", { width: "50%", children: /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: w[`charges_${I.name.toLowerCase()}`] ?? I.name } }) }),
7185
7207
  /* @__PURE__ */ s.jsx("td", { className: "text-align-right", width: "50%", children: G(I.amt, i) })
7186
7208
  ] })) : "",
@@ -7329,7 +7351,7 @@ const Ke = (e) => {
7329
7351
  d.parentOrderRef && /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center", children: "RETURN/EXCHANGE" })
7330
7352
  ] }),
7331
7353
  /* @__PURE__ */ s.jsx("hr", {}),
7332
- /* @__PURE__ */ s.jsxs("div", { className: `details-section ${k[c].dynamicClassname} ${ve}`, children: [
7354
+ /* @__PURE__ */ s.jsxs("div", { className: `details-section ${k[c].dynamicClassname} ${Ne}`, children: [
7333
7355
  d.customerInfo.custName && d.customerInfo.custName !== "" && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
7334
7356
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: w.name } }),
7335
7357
  ": ",
@@ -7445,7 +7467,7 @@ const Ke = (e) => {
7445
7467
  d.paymentMethods && d.paymentMethods.length ? d.paymentMethods.map((N) => {
7446
7468
  var H;
7447
7469
  if (N.paidAmt)
7448
- return /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${ve}`, children: [
7470
+ return /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${Ne}`, children: [
7449
7471
  /* @__PURE__ */ s.jsxs("h5", { children: [
7450
7472
  "-",
7451
7473
  /* @__PURE__ */ s.jsx(
@@ -7475,11 +7497,11 @@ const Ke = (e) => {
7475
7497
  {
7476
7498
  className: "actual-qty level2-bold",
7477
7499
  style: { fontSize: c === "2INCH" || c === "1.8INCH" ? "1.40rem" : "1.75rem" },
7478
- children: d.curr + " " + p(d.finalAmount + (((Lt = d == null ? void 0 : d.custoutStandingData) == null ? void 0 : Lt.balanceAmt) || 0) - d.rewardAmt)
7500
+ children: d.curr + " " + p(d.finalAmount + (((kt = d == null ? void 0 : d.custoutStandingData) == null ? void 0 : kt.balanceAmt) || 0) - d.rewardAmt)
7479
7501
  }
7480
7502
  )
7481
7503
  ] }) }) : "",
7482
- Lh((ts = d.convertedCurrValue) == null ? void 0 : ts.value) ? /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${ve}`, children: [
7504
+ Lh((ts = d.convertedCurrValue) == null ? void 0 : ts.value) ? /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${Ne}`, children: [
7483
7505
  /* @__PURE__ */ s.jsx("h5", { className: "total-qty" }),
7484
7506
  /* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: `(${G(
7485
7507
  d.convertedCurrValue.value,
@@ -7516,7 +7538,7 @@ const Ke = (e) => {
7516
7538
  ] })
7517
7539
  ))
7518
7540
  ] }) : "",
7519
- d.invoiceType === "INCLUSIVE_SIMPLIFIED" && ((kt = d.taxation) != null && kt.length) ? /* @__PURE__ */ s.jsxs("div", { children: [
7541
+ d.invoiceType === "INCLUSIVE_SIMPLIFIED" && ((Pt = d.taxation) != null && Pt.length) ? /* @__PURE__ */ s.jsxs("div", { children: [
7520
7542
  /* @__PURE__ */ s.jsx("div", { className: "single-entity-and-center", style: { marginTop: "6px" }, children: /* @__PURE__ */ s.jsx("h6", { className: "level2-bold", children: "Tax Summary" }) }),
7521
7543
  /* @__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: [
7522
7544
  /* @__PURE__ */ s.jsxs("tr", { className: k[c].dynamicClassname, children: [
@@ -7526,7 +7548,7 @@ const Ke = (e) => {
7526
7548
  ] }),
7527
7549
  d.taxation.map((N) => {
7528
7550
  if (N.taxAmt)
7529
- return Ot === "Android OS" || Ot === "iOS" ? N.taxType === "GST" ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
7551
+ return Mt === "Android OS" || Mt === "iOS" ? N.taxType === "GST" ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
7530
7552
  /* @__PURE__ */ s.jsxs("tr", { className: k[c].dynamicClassname, children: [
7531
7553
  /* @__PURE__ */ s.jsx("th", { dangerouslySetInnerHTML: { __html: `${w.cgst} ${N.tax / 2}%` } }),
7532
7554
  /* @__PURE__ */ s.jsx("th", { children: d.curr + " " + Me(N.taxableAmt, i) }),
@@ -7560,7 +7582,7 @@ const Ke = (e) => {
7560
7582
  })
7561
7583
  ] }) })
7562
7584
  ] }) : "",
7563
- d.upiId && d.companyInfo.companyName && (!d.splitDetails || d.splitDetails && ((Pt = d.splitDetails) == null ? void 0 : Pt.length) == 0) && /* @__PURE__ */ s.jsxs("div", { className: "single-entity-and-center", children: [
7585
+ d.upiId && d.companyInfo.companyName && (!d.splitDetails || d.splitDetails && ((Ft = d.splitDetails) == null ? void 0 : Ft.length) == 0) && /* @__PURE__ */ s.jsxs("div", { className: "single-entity-and-center", children: [
7564
7586
  /* @__PURE__ */ s.jsx("h6", { style: { marginTop: "6px" }, children: "Scan this QRCode to Pay" }),
7565
7587
  $(d.upiId, d.orderId, d.companyInfo.companyName, d.paidAmount)
7566
7588
  ] }),
@@ -7714,7 +7736,7 @@ const Ke = (e) => {
7714
7736
  Z(d.averageCollection.dailyExpanse)
7715
7737
  ] }),
7716
7738
  /* @__PURE__ */ s.jsx("br", {}),
7717
- Ot == "Android OS" && /* @__PURE__ */ s.jsx("div", { className: "space-3rem" })
7739
+ Mt == "Android OS" && /* @__PURE__ */ s.jsx("div", { className: "space-3rem" })
7718
7740
  ] });
7719
7741
  } else if (g === "AGGREGATOR_BILL") {
7720
7742
  let P;
@@ -8506,14 +8528,14 @@ const Ke = (e) => {
8506
8528
  a.waiterName && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level3-bold", children: `${f.Waiter} Name: ` + a.waiterName })
8507
8529
  ] }),
8508
8530
  /* @__PURE__ */ s.jsx("hr", {}),
8509
- /* @__PURE__ */ s.jsxs("section", { className: `products-section ${ve}`, children: [
8531
+ /* @__PURE__ */ s.jsxs("section", { className: `products-section ${Ne}`, children: [
8510
8532
  /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
8511
8533
  /* @__PURE__ */ s.jsx("h5", { className: "items products-heading-name-kot", children: k[c].itemName }),
8512
8534
  /* @__PURE__ */ s.jsx("h5", { className: "items products-heading-qty-kot", children: "QTY" })
8513
8535
  ] }),
8514
8536
  /* @__PURE__ */ s.jsx("hr", {})
8515
8537
  ] }),
8516
- /* @__PURE__ */ s.jsxs("section", { className: `products-section ${ve}`, style: { paddingTop: "12px" }, children: [
8538
+ /* @__PURE__ */ s.jsxs("section", { className: `products-section ${Ne}`, style: { paddingTop: "12px" }, children: [
8517
8539
  a.services && a.services.length && a.services.length > 0 && a.services.reverse().map((I) => (I.status === "CANCELLED" ? H = /* @__PURE__ */ s.jsxs("strike", { children: [
8518
8540
  /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
8519
8541
  /* @__PURE__ */ s.jsx("h2", { className: "items products-heading-name-kot ", children: ze(I.serviceName) }),