recaho-print-react 0.0.145 → 0.0.147
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/recaho-print-react.js +267 -264
- package/dist/recaho-print-react.umd.cjs +9 -9
- package/package.json +1 -1
|
@@ -130,14 +130,14 @@ function li() {
|
|
|
130
130
|
}
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
|
-
var
|
|
133
|
+
var W = Object.assign, de = 0, G, X, Ke, Qe, _t, Ze, bt;
|
|
134
134
|
function ee() {
|
|
135
135
|
}
|
|
136
136
|
ee.__reactDisabledLog = !0;
|
|
137
137
|
function Ne() {
|
|
138
138
|
{
|
|
139
139
|
if (de === 0) {
|
|
140
|
-
|
|
140
|
+
G = console.log, X = console.info, Ke = console.warn, Qe = console.error, _t = console.group, Ze = console.groupCollapsed, bt = console.groupEnd;
|
|
141
141
|
var x = {
|
|
142
142
|
configurable: !0,
|
|
143
143
|
enumerable: !0,
|
|
@@ -166,25 +166,25 @@ function li() {
|
|
|
166
166
|
writable: !0
|
|
167
167
|
};
|
|
168
168
|
Object.defineProperties(console, {
|
|
169
|
-
log:
|
|
170
|
-
value:
|
|
169
|
+
log: W({}, x, {
|
|
170
|
+
value: G
|
|
171
171
|
}),
|
|
172
|
-
info:
|
|
172
|
+
info: W({}, x, {
|
|
173
173
|
value: X
|
|
174
174
|
}),
|
|
175
|
-
warn:
|
|
175
|
+
warn: W({}, x, {
|
|
176
176
|
value: Ke
|
|
177
177
|
}),
|
|
178
|
-
error:
|
|
178
|
+
error: W({}, x, {
|
|
179
179
|
value: Qe
|
|
180
180
|
}),
|
|
181
|
-
group:
|
|
181
|
+
group: W({}, x, {
|
|
182
182
|
value: _t
|
|
183
183
|
}),
|
|
184
|
-
groupCollapsed:
|
|
184
|
+
groupCollapsed: W({}, x, {
|
|
185
185
|
value: Ze
|
|
186
186
|
}),
|
|
187
|
-
groupEnd:
|
|
187
|
+
groupEnd: W({}, x, {
|
|
188
188
|
value: bt
|
|
189
189
|
})
|
|
190
190
|
});
|
|
@@ -285,7 +285,7 @@ function li() {
|
|
|
285
285
|
function F(x, M, C) {
|
|
286
286
|
return b(x, !1);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function z(x) {
|
|
289
289
|
var M = x.prototype;
|
|
290
290
|
return !!(M && M.isReactComponent);
|
|
291
291
|
}
|
|
@@ -293,7 +293,7 @@ function li() {
|
|
|
293
293
|
if (x == null)
|
|
294
294
|
return "";
|
|
295
295
|
if (typeof x == "function")
|
|
296
|
-
return b(x,
|
|
296
|
+
return b(x, z(x));
|
|
297
297
|
if (typeof x == "string")
|
|
298
298
|
return O(x);
|
|
299
299
|
switch (x) {
|
|
@@ -676,7 +676,7 @@ function L() {
|
|
|
676
676
|
function hi(e) {
|
|
677
677
|
Ur = e;
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function ze(e) {
|
|
680
680
|
return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
|
|
681
681
|
}
|
|
682
682
|
function Ot(e) {
|
|
@@ -709,7 +709,7 @@ function $r(e, t) {
|
|
|
709
709
|
n.push(t(e[r], r));
|
|
710
710
|
return n;
|
|
711
711
|
}
|
|
712
|
-
function
|
|
712
|
+
function gt(e, t) {
|
|
713
713
|
for (var n in t)
|
|
714
714
|
oe(t, n) && (e[n] = t[n]);
|
|
715
715
|
return oe(t, "toString") && (e.toString = t.toString), oe(t, "valueOf") && (e.valueOf = t.valueOf), e;
|
|
@@ -760,7 +760,7 @@ function Hn(e) {
|
|
|
760
760
|
}
|
|
761
761
|
function on(e) {
|
|
762
762
|
var t = st(NaN);
|
|
763
|
-
return e != null ?
|
|
763
|
+
return e != null ? gt(se(t), e) : se(t).userInvalidated = !0, t;
|
|
764
764
|
}
|
|
765
765
|
var Nr = L.momentProperties = [], _n = !1;
|
|
766
766
|
function Bn(e, t) {
|
|
@@ -773,7 +773,7 @@ function Bn(e, t) {
|
|
|
773
773
|
function bs(e) {
|
|
774
774
|
Bn(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), _n === !1 && (_n = !0, L.updateOffset(this), _n = !1);
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function We(e) {
|
|
777
777
|
return e instanceof bs || e != null && e._isAMomentObject != null;
|
|
778
778
|
}
|
|
779
779
|
function Hr(e) {
|
|
@@ -781,7 +781,7 @@ function Hr(e) {
|
|
|
781
781
|
}
|
|
782
782
|
function Ue(e, t) {
|
|
783
783
|
var n = !0;
|
|
784
|
-
return
|
|
784
|
+
return gt(function() {
|
|
785
785
|
if (L.deprecationHandler != null && L.deprecationHandler(null, e), n) {
|
|
786
786
|
var r = [], i, a, u, f = arguments.length;
|
|
787
787
|
for (a = 0; a < f; a++) {
|
|
@@ -822,14 +822,14 @@ function mi(e) {
|
|
|
822
822
|
);
|
|
823
823
|
}
|
|
824
824
|
function En(e, t) {
|
|
825
|
-
var n =
|
|
825
|
+
var n = gt({}, e), r;
|
|
826
826
|
for (r in t)
|
|
827
|
-
oe(t, r) && (Ot(e[r]) && Ot(t[r]) ? (n[r] = {},
|
|
827
|
+
oe(t, r) && (Ot(e[r]) && Ot(t[r]) ? (n[r] = {}, gt(n[r], e[r]), gt(n[r], t[r])) : t[r] != null ? n[r] = t[r] : delete n[r]);
|
|
828
828
|
for (r in e)
|
|
829
|
-
oe(e, r) && !oe(t, r) && Ot(e[r]) && (n[r] =
|
|
829
|
+
oe(e, r) && !oe(t, r) && Ot(e[r]) && (n[r] = gt({}, n[r]));
|
|
830
830
|
return n;
|
|
831
831
|
}
|
|
832
|
-
function
|
|
832
|
+
function Gn(e) {
|
|
833
833
|
e != null && this.set(e);
|
|
834
834
|
}
|
|
835
835
|
var Rn;
|
|
@@ -855,7 +855,7 @@ function tt(e, t, n) {
|
|
|
855
855
|
var r = "" + Math.abs(e), i = t - r.length, a = e >= 0;
|
|
856
856
|
return (a ? n ? "+" : "" : "-") + Math.pow(10, Math.max(0, i)).toString().substr(1) + r;
|
|
857
857
|
}
|
|
858
|
-
var
|
|
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 = {}, Bt = {};
|
|
859
859
|
function q(e, t, n, r) {
|
|
860
860
|
var i = r;
|
|
861
861
|
typeof r == "string" && (i = function() {
|
|
@@ -873,7 +873,7 @@ function yi(e) {
|
|
|
873
873
|
return e.match(/\[[\s\S]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, "");
|
|
874
874
|
}
|
|
875
875
|
function gi(e) {
|
|
876
|
-
var t = e.match(
|
|
876
|
+
var t = e.match(zn), n, r;
|
|
877
877
|
for (n = 0, r = t.length; n < r; n++)
|
|
878
878
|
Bt[t[n]] ? t[n] = Bt[t[n]] : t[n] = yi(t[n]);
|
|
879
879
|
return function(i) {
|
|
@@ -884,18 +884,18 @@ function gi(e) {
|
|
|
884
884
|
};
|
|
885
885
|
}
|
|
886
886
|
function qs(e, t) {
|
|
887
|
-
return e.isValid() ? (t =
|
|
887
|
+
return e.isValid() ? (t = Gr(t, e.localeData()), bn[t] = bn[t] || gi(t), bn[t](e)) : e.localeData().invalidDate();
|
|
888
888
|
}
|
|
889
|
-
function
|
|
889
|
+
function Gr(e, t) {
|
|
890
890
|
var n = 5;
|
|
891
891
|
function r(i) {
|
|
892
892
|
return t.longDateFormat(i) || i;
|
|
893
893
|
}
|
|
894
|
-
for (
|
|
894
|
+
for (Gs.lastIndex = 0; n >= 0 && Gs.test(e); )
|
|
895
895
|
e = e.replace(
|
|
896
|
-
|
|
896
|
+
Gs,
|
|
897
897
|
r
|
|
898
|
-
),
|
|
898
|
+
), Gs.lastIndex = 0, n -= 1;
|
|
899
899
|
return e;
|
|
900
900
|
}
|
|
901
901
|
var xi = {
|
|
@@ -908,7 +908,7 @@ var xi = {
|
|
|
908
908
|
};
|
|
909
909
|
function Ni(e) {
|
|
910
910
|
var t = this._longDateFormat[e], n = this._longDateFormat[e.toUpperCase()];
|
|
911
|
-
return t || !n ? t : (this._longDateFormat[e] = n.match(
|
|
911
|
+
return t || !n ? t : (this._longDateFormat[e] = n.match(zn).map(function(r) {
|
|
912
912
|
return r === "MMMM" || r === "MM" || r === "DD" || r === "dddd" ? r.slice(1) : r;
|
|
913
913
|
}).join(""), this._longDateFormat[e]);
|
|
914
914
|
}
|
|
@@ -999,7 +999,7 @@ var vr = {
|
|
|
999
999
|
function $e(e) {
|
|
1000
1000
|
return typeof e == "string" ? vr[e] || vr[e.toLowerCase()] : void 0;
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1002
|
+
function Wn(e) {
|
|
1003
1003
|
var t = {}, n, r;
|
|
1004
1004
|
for (r in e)
|
|
1005
1005
|
oe(e, r) && (n = $e(r), n && (t[n] = e[r]));
|
|
@@ -1031,7 +1031,7 @@ function Oi(e) {
|
|
|
1031
1031
|
return r.priority - i.priority;
|
|
1032
1032
|
}), t;
|
|
1033
1033
|
}
|
|
1034
|
-
var
|
|
1034
|
+
var zr = /\d/, Fe = /\d\d/, Wr = /\d{3}/, Vn = /\d{4}/, cn = /[+-]?\d{6}/, pe = /\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, Kt = /^[1-9]\d?/, Kn = /^([1-9]\d|\d)/, Js;
|
|
1035
1035
|
Js = {};
|
|
1036
1036
|
function H(e, t, n) {
|
|
1037
1037
|
Js[e] = nt(t) ? t : function(r, i) {
|
|
@@ -1080,7 +1080,7 @@ 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 Ce = 0, ct = 1, et = 2, Se = 3,
|
|
1083
|
+
var Ce = 0, ct = 1, et = 2, Se = 3, Ge = 4, dt = 5, Ct = 6, ki = 7, Pi = 8;
|
|
1084
1084
|
q("Y", 0, 0, function() {
|
|
1085
1085
|
var e = this.year();
|
|
1086
1086
|
return e <= 9999 ? tt(e, 4) : "+" + e;
|
|
@@ -1178,7 +1178,7 @@ function Di(e) {
|
|
|
1178
1178
|
}
|
|
1179
1179
|
function Yi(e, t) {
|
|
1180
1180
|
if (typeof e == "object") {
|
|
1181
|
-
e =
|
|
1181
|
+
e = Wn(e);
|
|
1182
1182
|
var n = Oi(e), r, i = n.length;
|
|
1183
1183
|
for (r = 0; r < i; r++)
|
|
1184
1184
|
this[n[r].unit](e[n[r].unit]);
|
|
@@ -1230,13 +1230,13 @@ ue(["MMM", "MMMM"], function(e, t, n, r) {
|
|
|
1230
1230
|
var $i = "January_February_March_April_May_June_July_August_September_October_November_December".split(
|
|
1231
1231
|
"_"
|
|
1232
1232
|
), Zr = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), Jr = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, Hi = Ss, Bi = Ss;
|
|
1233
|
-
function
|
|
1234
|
-
return e ?
|
|
1233
|
+
function Gi(e, t) {
|
|
1234
|
+
return e ? ze(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || Jr).test(t) ? "format" : "standalone"][e.month()] : ze(this._months) ? this._months : this._months.standalone;
|
|
1235
1235
|
}
|
|
1236
|
-
function
|
|
1237
|
-
return e ?
|
|
1236
|
+
function zi(e, t) {
|
|
1237
|
+
return e ? ze(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[Jr.test(t) ? "format" : "standalone"][e.month()] : ze(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1239
|
+
function Wi(e, t, n) {
|
|
1240
1240
|
var r, i, a, u = e.toLocaleLowerCase();
|
|
1241
1241
|
if (!this._monthsParse)
|
|
1242
1242
|
for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], r = 0; r < 12; ++r)
|
|
@@ -1249,7 +1249,7 @@ function Gi(e, t, n) {
|
|
|
1249
1249
|
function Vi(e, t, n) {
|
|
1250
1250
|
var r, i, a;
|
|
1251
1251
|
if (this._monthsParseExact)
|
|
1252
|
-
return
|
|
1252
|
+
return Wi.call(this, e, t, n);
|
|
1253
1253
|
for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), r = 0; r < 12; r++) {
|
|
1254
1254
|
if (i = st([2e3, r]), n && !this._longMonthsParse[r] && (this._longMonthsParse[r] = new RegExp(
|
|
1255
1255
|
"^" + this.months(i, "").replace(".", "") + "$",
|
|
@@ -1411,7 +1411,7 @@ function Zn(e, t) {
|
|
|
1411
1411
|
}
|
|
1412
1412
|
var il = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), na = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), ll = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), ol = Ss, cl = Ss, dl = Ss;
|
|
1413
1413
|
function hl(e, t) {
|
|
1414
|
-
var n =
|
|
1414
|
+
var n = ze(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
|
|
1415
1415
|
return e === !0 ? Zn(n, this._week.dow) : e ? n[e.day()] : n;
|
|
1416
1416
|
}
|
|
1417
1417
|
function ul(e) {
|
|
@@ -1565,19 +1565,19 @@ ue(["h", "hh"], function(e, t, n) {
|
|
|
1565
1565
|
});
|
|
1566
1566
|
ue("hmm", function(e, t, n) {
|
|
1567
1567
|
var r = e.length - 2;
|
|
1568
|
-
t[Se] = re(e.substr(0, r)), t[
|
|
1568
|
+
t[Se] = re(e.substr(0, r)), t[Ge] = re(e.substr(r)), se(n).bigHour = !0;
|
|
1569
1569
|
});
|
|
1570
1570
|
ue("hmmss", function(e, t, n) {
|
|
1571
1571
|
var r = e.length - 4, i = e.length - 2;
|
|
1572
|
-
t[Se] = re(e.substr(0, r)), t[
|
|
1572
|
+
t[Se] = re(e.substr(0, r)), t[Ge] = re(e.substr(r, 2)), t[dt] = re(e.substr(i)), se(n).bigHour = !0;
|
|
1573
1573
|
});
|
|
1574
1574
|
ue("Hmm", function(e, t, n) {
|
|
1575
1575
|
var r = e.length - 2;
|
|
1576
|
-
t[Se] = re(e.substr(0, r)), t[
|
|
1576
|
+
t[Se] = re(e.substr(0, r)), t[Ge] = re(e.substr(r));
|
|
1577
1577
|
});
|
|
1578
1578
|
ue("Hmmss", function(e, t, n) {
|
|
1579
1579
|
var r = e.length - 4, i = e.length - 2;
|
|
1580
|
-
t[Se] = re(e.substr(0, r)), t[
|
|
1580
|
+
t[Se] = re(e.substr(0, r)), t[Ge] = re(e.substr(r, 2)), t[dt] = re(e.substr(i));
|
|
1581
1581
|
});
|
|
1582
1582
|
function bl(e) {
|
|
1583
1583
|
return (e + "").toLowerCase().charAt(0) === "p";
|
|
@@ -1631,15 +1631,15 @@ function pn(e) {
|
|
|
1631
1631
|
var t = null, n;
|
|
1632
1632
|
if (ge[e] === void 0 && typeof module < "u" && module && module.exports && Ol(e))
|
|
1633
1633
|
try {
|
|
1634
|
-
t = Ns._abbr, n = require, n("./locale/" + e),
|
|
1634
|
+
t = Ns._abbr, n = require, n("./locale/" + e), Nt(t);
|
|
1635
1635
|
} catch {
|
|
1636
1636
|
ge[e] = null;
|
|
1637
1637
|
}
|
|
1638
1638
|
return ge[e];
|
|
1639
1639
|
}
|
|
1640
|
-
function
|
|
1640
|
+
function Nt(e, t) {
|
|
1641
1641
|
var n;
|
|
1642
|
-
return e && (Re(t) ? n =
|
|
1642
|
+
return e && (Re(t) ? n = pt(e) : n = er(e, t), n ? Ns = n : typeof console < "u" && console.warn && console.warn(
|
|
1643
1643
|
"Locale " + e + " not found. Did you forget to load it?"
|
|
1644
1644
|
)), Ns._abbr;
|
|
1645
1645
|
}
|
|
@@ -1661,25 +1661,25 @@ function er(e, t) {
|
|
|
1661
1661
|
name: e,
|
|
1662
1662
|
config: t
|
|
1663
1663
|
}), null;
|
|
1664
|
-
return ge[e] = new
|
|
1664
|
+
return ge[e] = new Gn(En(r, t)), ds[e] && ds[e].forEach(function(i) {
|
|
1665
1665
|
er(i.name, i.config);
|
|
1666
|
-
}),
|
|
1666
|
+
}), Nt(e), ge[e];
|
|
1667
1667
|
} else
|
|
1668
1668
|
return delete ge[e], null;
|
|
1669
1669
|
}
|
|
1670
1670
|
function Ml(e, t) {
|
|
1671
1671
|
if (t != null) {
|
|
1672
1672
|
var n, r, i = ia;
|
|
1673
|
-
ge[e] != null && ge[e].parentLocale != null ? ge[e].set(En(ge[e]._config, t)) : (r = pn(e), r != null && (i = r._config), t = En(i, t), r == null && (t.abbr = e), n = new
|
|
1673
|
+
ge[e] != null && ge[e].parentLocale != null ? ge[e].set(En(ge[e]._config, t)) : (r = pn(e), r != null && (i = r._config), t = En(i, t), r == null && (t.abbr = e), n = new Gn(t), n.parentLocale = ge[e], ge[e] = n), Nt(e);
|
|
1674
1674
|
} else
|
|
1675
|
-
ge[e] != null && (ge[e].parentLocale != null ? (ge[e] = ge[e].parentLocale, e ===
|
|
1675
|
+
ge[e] != null && (ge[e].parentLocale != null ? (ge[e] = ge[e].parentLocale, e === Nt() && Nt(e)) : ge[e] != null && delete ge[e]);
|
|
1676
1676
|
return ge[e];
|
|
1677
1677
|
}
|
|
1678
|
-
function
|
|
1678
|
+
function pt(e) {
|
|
1679
1679
|
var t;
|
|
1680
1680
|
if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)
|
|
1681
1681
|
return Ns;
|
|
1682
|
-
if (!
|
|
1682
|
+
if (!ze(e)) {
|
|
1683
1683
|
if (t = pn(e), t)
|
|
1684
1684
|
return t;
|
|
1685
1685
|
e = [e];
|
|
@@ -1691,9 +1691,9 @@ function Al() {
|
|
|
1691
1691
|
}
|
|
1692
1692
|
function tr(e) {
|
|
1693
1693
|
var t, n = e._a;
|
|
1694
|
-
return n && se(e).overflow === -2 && (t = n[ct] < 0 || n[ct] > 11 ? ct : n[et] < 1 || n[et] > Qn(n[Ce], n[ct]) ? et : n[Se] < 0 || n[Se] > 24 || n[Se] === 24 && (n[
|
|
1694
|
+
return n && se(e).overflow === -2 && (t = n[ct] < 0 || n[ct] > 11 ? ct : n[et] < 1 || n[et] > Qn(n[Ce], n[ct]) ? et : n[Se] < 0 || n[Se] > 24 || n[Se] === 24 && (n[Ge] !== 0 || n[dt] !== 0 || n[Ct] !== 0) ? Se : n[Ge] < 0 || n[Ge] > 59 ? Ge : n[dt] < 0 || n[dt] > 59 ? dt : n[Ct] < 0 || n[Ct] > 999 ? Ct : -1, se(e)._overflowDayOfYear && (t < Ce || t > et) && (t = et), se(e)._overflowWeeks && t === -1 && (t = ki), se(e)._overflowWeekday && t === -1 && (t = Pi), se(e).overflow = t), e;
|
|
1695
1695
|
}
|
|
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)?/,
|
|
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/],
|
|
1698
1698
|
["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
|
|
1699
1699
|
["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
|
|
@@ -1730,11 +1730,11 @@ var El = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
|
|
|
1730
1730
|
PST: -8 * 60
|
|
1731
1731
|
};
|
|
1732
1732
|
function la(e) {
|
|
1733
|
-
var t, n, r = e._i, i = El.exec(r) || Rl.exec(r), a, u, f, o, l =
|
|
1733
|
+
var t, n, r = e._i, i = El.exec(r) || Rl.exec(r), a, u, f, o, l = zs.length, c = Sn.length;
|
|
1734
1734
|
if (i) {
|
|
1735
1735
|
for (se(e).iso = !0, t = 0, n = l; t < n; t++)
|
|
1736
|
-
if (
|
|
1737
|
-
u =
|
|
1736
|
+
if (zs[t][1].exec(i[1])) {
|
|
1737
|
+
u = zs[t][0], a = zs[t][2] !== !1;
|
|
1738
1738
|
break;
|
|
1739
1739
|
}
|
|
1740
1740
|
if (u == null) {
|
|
@@ -1845,7 +1845,7 @@ L.createFromInputFallback = Ue(
|
|
|
1845
1845
|
function Ut(e, t, n) {
|
|
1846
1846
|
return e ?? t ?? n;
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1848
|
+
function Gl(e) {
|
|
1849
1849
|
var t = new Date(L.now());
|
|
1850
1850
|
return e._useUTC ? [
|
|
1851
1851
|
t.getUTCFullYear(),
|
|
@@ -1856,17 +1856,17 @@ function zl(e) {
|
|
|
1856
1856
|
function sr(e) {
|
|
1857
1857
|
var t, n, r = [], i, a, u;
|
|
1858
1858
|
if (!e._d) {
|
|
1859
|
-
for (i =
|
|
1859
|
+
for (i = Gl(e), e._w && e._a[et] == null && e._a[ct] == null && zl(e), e._dayOfYear != null && (u = Ut(e._a[Ce], i[Ce]), (e._dayOfYear > ps(u) || e._dayOfYear === 0) && (se(e)._overflowDayOfYear = !0), n = gs(u, 0, e._dayOfYear), e._a[ct] = n.getUTCMonth(), e._a[et] = n.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
|
|
1860
1860
|
e._a[t] = r[t] = i[t];
|
|
1861
1861
|
for (; t < 7; t++)
|
|
1862
1862
|
e._a[t] = r[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
|
|
1863
|
-
e._a[Se] === 24 && e._a[
|
|
1863
|
+
e._a[Se] === 24 && e._a[Ge] === 0 && e._a[dt] === 0 && e._a[Ct] === 0 && (e._nextDay = !0, e._a[Se] = 0), e._d = (e._useUTC ? gs : Zi).apply(
|
|
1864
1864
|
null,
|
|
1865
1865
|
r
|
|
1866
1866
|
), a = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[Se] = 24), e._w && typeof e._w.d < "u" && e._w.d !== a && (se(e).weekdayMismatch = !0);
|
|
1867
1867
|
}
|
|
1868
1868
|
}
|
|
1869
|
-
function
|
|
1869
|
+
function zl(e) {
|
|
1870
1870
|
var t, n, r, i, a, u, f, o, l;
|
|
1871
1871
|
t = e._w, t.GG != null || t.W != null || t.E != null ? (a = 1, u = 4, n = Ut(
|
|
1872
1872
|
t.GG,
|
|
@@ -1889,17 +1889,17 @@ function nr(e) {
|
|
|
1889
1889
|
}
|
|
1890
1890
|
e._a = [], se(e).empty = !0;
|
|
1891
1891
|
var t = "" + e._i, n, r, i, a, u, f = t.length, o = 0, l, c;
|
|
1892
|
-
for (i =
|
|
1892
|
+
for (i = Gr(e._f, e._locale).match(zn) || [], c = i.length, n = 0; n < c; n++)
|
|
1893
1893
|
a = i[n], r = (t.match(Ei(a, e)) || [])[0], r && (u = t.substr(0, t.indexOf(r)), u.length > 0 && se(e).unusedInput.push(u), t = t.slice(
|
|
1894
1894
|
t.indexOf(r) + r.length
|
|
1895
1895
|
), o += r.length), Bt[a] ? (r ? se(e).empty = !1 : se(e).unusedTokens.push(a), Li(a, r, e)) : e._strict && !r && se(e).unusedTokens.push(a);
|
|
1896
|
-
se(e).charsLeftOver = f - o, t.length > 0 && se(e).unusedInput.push(t), e._a[Se] <= 12 && se(e).bigHour === !0 && e._a[Se] > 0 && (se(e).bigHour = void 0), se(e).parsedDateParts = e._a.slice(0), se(e).meridiem = e._meridiem, e._a[Se] =
|
|
1896
|
+
se(e).charsLeftOver = f - o, t.length > 0 && se(e).unusedInput.push(t), e._a[Se] <= 12 && se(e).bigHour === !0 && e._a[Se] > 0 && (se(e).bigHour = void 0), se(e).parsedDateParts = e._a.slice(0), se(e).meridiem = e._meridiem, e._a[Se] = Wl(
|
|
1897
1897
|
e._locale,
|
|
1898
1898
|
e._a[Se],
|
|
1899
1899
|
e._meridiem
|
|
1900
1900
|
), l = se(e).era, l !== null && (e._a[Ce] = e._locale.erasConvertYear(l, e._a[Ce])), sr(e), tr(e);
|
|
1901
1901
|
}
|
|
1902
|
-
function
|
|
1902
|
+
function Wl(e, t, n) {
|
|
1903
1903
|
var r;
|
|
1904
1904
|
return n == null ? t : e.meridiemHour != null ? e.meridiemHour(t, n) : (e.isPM != null && (r = e.isPM(n), r && t < 12 && (t += 12), !r && t === 12 && (t = 0)), t);
|
|
1905
1905
|
}
|
|
@@ -1911,11 +1911,11 @@ function Vl(e) {
|
|
|
1911
1911
|
}
|
|
1912
1912
|
for (i = 0; i < o; i++)
|
|
1913
1913
|
a = 0, u = !1, t = Bn({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[i], nr(t), Hn(t) && (u = !0), a += se(t).charsLeftOver, a += se(t).unusedTokens.length * 10, se(t).score = a, f ? a < r && (r = a, n = t) : (r == null || a < r || u) && (r = a, n = t, u && (f = !0));
|
|
1914
|
-
|
|
1914
|
+
gt(e, n || t);
|
|
1915
1915
|
}
|
|
1916
1916
|
function ql(e) {
|
|
1917
1917
|
if (!e._d) {
|
|
1918
|
-
var t =
|
|
1918
|
+
var t = Wn(e._i), n = t.day === void 0 ? t.date : t.day;
|
|
1919
1919
|
e._a = $r(
|
|
1920
1920
|
[t.year, t.month, n, t.hour, t.minute, t.second, t.millisecond],
|
|
1921
1921
|
function(r) {
|
|
@@ -1930,17 +1930,17 @@ function Kl(e) {
|
|
|
1930
1930
|
}
|
|
1931
1931
|
function ca(e) {
|
|
1932
1932
|
var t = e._i, n = e._f;
|
|
1933
|
-
return e._locale = e._locale ||
|
|
1933
|
+
return e._locale = e._locale || pt(e._l), t === null || n === void 0 && t === "" ? on({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), We(t) ? new bs(tr(t)) : (_s(t) ? e._d = t : ze(n) ? Vl(e) : n ? nr(e) : Ql(e), Hn(e) || (e._d = null), e));
|
|
1934
1934
|
}
|
|
1935
1935
|
function Ql(e) {
|
|
1936
1936
|
var t = e._i;
|
|
1937
|
-
Re(t) ? e._d = new Date(L.now()) : _s(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? Bl(e) :
|
|
1937
|
+
Re(t) ? e._d = new Date(L.now()) : _s(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? Bl(e) : ze(t) ? (e._a = $r(t.slice(0), function(n) {
|
|
1938
1938
|
return parseInt(n, 10);
|
|
1939
1939
|
}), sr(e)) : Ot(t) ? ql(e) : mt(t) ? e._d = new Date(t) : L.createFromInputFallback(e);
|
|
1940
1940
|
}
|
|
1941
1941
|
function da(e, t, n, r, i) {
|
|
1942
1942
|
var a = {};
|
|
1943
|
-
return (t === !0 || t === !1) && (r = t, t = void 0), (n === !0 || n === !1) && (r = n, n = void 0), (Ot(e) && $n(e) ||
|
|
1943
|
+
return (t === !0 || t === !1) && (r = t, t = void 0), (n === !0 || n === !1) && (r = n, n = void 0), (Ot(e) && $n(e) || ze(e) && e.length === 0) && (e = void 0), a._isAMomentObject = !0, a._useUTC = a._isUTC = i, a._l = n, a._i = e, a._f = t, a._strict = r, Kl(a);
|
|
1944
1944
|
}
|
|
1945
1945
|
function fe(e, t, n, r) {
|
|
1946
1946
|
return da(e, t, n, r, !1);
|
|
@@ -1960,7 +1960,7 @@ var Zl = Ue(
|
|
|
1960
1960
|
);
|
|
1961
1961
|
function ha(e, t) {
|
|
1962
1962
|
var n, r;
|
|
1963
|
-
if (t.length === 1 &&
|
|
1963
|
+
if (t.length === 1 && ze(t[0]) && (t = t[0]), !t.length)
|
|
1964
1964
|
return fe();
|
|
1965
1965
|
for (n = t[0], r = 1; r < t.length; ++r)
|
|
1966
1966
|
(!t[r].isValid() || t[r][e](n)) && (n = t[r]);
|
|
@@ -2007,10 +2007,10 @@ function ro() {
|
|
|
2007
2007
|
return qe(NaN);
|
|
2008
2008
|
}
|
|
2009
2009
|
function yn(e) {
|
|
2010
|
-
var t =
|
|
2010
|
+
var t = Wn(e), n = t.year || 0, r = t.quarter || 0, i = t.month || 0, a = t.week || t.isoWeek || 0, u = t.day || 0, f = t.hour || 0, o = t.minute || 0, l = t.second || 0, c = t.millisecond || 0;
|
|
2011
2011
|
this._isValid = so(t), this._milliseconds = +c + l * 1e3 + // 1000
|
|
2012
2012
|
o * 6e4 + // 1000 * 60
|
|
2013
|
-
f * 1e3 * 60 * 60, this._days = +u + a * 7, this._months = +i + r * 3 + n * 12, this._data = {}, this._locale =
|
|
2013
|
+
f * 1e3 * 60 * 60, this._days = +u + a * 7, this._months = +i + r * 3 + n * 12, this._data = {}, this._locale = pt(), this._bubble();
|
|
2014
2014
|
}
|
|
2015
2015
|
function Ks(e) {
|
|
2016
2016
|
return e instanceof yn;
|
|
@@ -2044,7 +2044,7 @@ function rr(e, t) {
|
|
|
2044
2044
|
}
|
|
2045
2045
|
function ar(e, t) {
|
|
2046
2046
|
var n, r;
|
|
2047
|
-
return t._isUTC ? (n = t.clone(), r = (
|
|
2047
|
+
return t._isUTC ? (n = t.clone(), r = (We(e) || _s(e) ? e.valueOf() : fe(e).valueOf()) - n.valueOf(), n._d.setTime(n._d.valueOf() + r), L.updateOffset(n, !1), n) : fe(e).local();
|
|
2048
2048
|
}
|
|
2049
2049
|
function Pn(e) {
|
|
2050
2050
|
return -Math.round(e._d.getTimezoneOffset());
|
|
@@ -2119,7 +2119,7 @@ function qe(e, t) {
|
|
|
2119
2119
|
y: 0,
|
|
2120
2120
|
d: re(r[et]) * i,
|
|
2121
2121
|
h: re(r[Se]) * i,
|
|
2122
|
-
m: re(r[
|
|
2122
|
+
m: re(r[Ge]) * i,
|
|
2123
2123
|
s: re(r[dt]) * i,
|
|
2124
2124
|
ms: re(kn(r[Ct] * 1e3)) * i
|
|
2125
2125
|
// the millisecond decimal point is included in the match
|
|
@@ -2168,7 +2168,7 @@ function ya(e) {
|
|
|
2168
2168
|
return typeof e == "string" || e instanceof String;
|
|
2169
2169
|
}
|
|
2170
2170
|
function bo(e) {
|
|
2171
|
-
return
|
|
2171
|
+
return We(e) || _s(e) || ya(e) || mt(e) || To(e) || So(e) || e === null || e === void 0;
|
|
2172
2172
|
}
|
|
2173
2173
|
function So(e) {
|
|
2174
2174
|
var t = Ot(e) && !$n(e), n = !1, r = [
|
|
@@ -2202,7 +2202,7 @@ function So(e) {
|
|
|
2202
2202
|
return t && n;
|
|
2203
2203
|
}
|
|
2204
2204
|
function To(e) {
|
|
2205
|
-
var t =
|
|
2205
|
+
var t = ze(e), n = !1;
|
|
2206
2206
|
return t && (n = e.filter(function(r) {
|
|
2207
2207
|
return !mt(r) && ya(e);
|
|
2208
2208
|
}).length === 0), t && n;
|
|
@@ -2235,19 +2235,19 @@ function Oo() {
|
|
|
2235
2235
|
return new bs(this);
|
|
2236
2236
|
}
|
|
2237
2237
|
function Mo(e, t) {
|
|
2238
|
-
var n =
|
|
2238
|
+
var n = We(e) ? e : fe(e);
|
|
2239
2239
|
return this.isValid() && n.isValid() ? (t = $e(t) || "millisecond", t === "millisecond" ? this.valueOf() > n.valueOf() : n.valueOf() < this.clone().startOf(t).valueOf()) : !1;
|
|
2240
2240
|
}
|
|
2241
2241
|
function Ao(e, t) {
|
|
2242
|
-
var n =
|
|
2242
|
+
var n = We(e) ? e : fe(e);
|
|
2243
2243
|
return this.isValid() && n.isValid() ? (t = $e(t) || "millisecond", t === "millisecond" ? this.valueOf() < n.valueOf() : this.clone().endOf(t).valueOf() < n.valueOf()) : !1;
|
|
2244
2244
|
}
|
|
2245
2245
|
function Eo(e, t, n, r) {
|
|
2246
|
-
var i =
|
|
2246
|
+
var i = We(e) ? e : fe(e), a = We(t) ? t : fe(t);
|
|
2247
2247
|
return this.isValid() && i.isValid() && a.isValid() ? (r = r || "()", (r[0] === "(" ? this.isAfter(i, n) : !this.isBefore(i, n)) && (r[1] === ")" ? this.isBefore(a, n) : !this.isAfter(a, n))) : !1;
|
|
2248
2248
|
}
|
|
2249
2249
|
function Ro(e, t) {
|
|
2250
|
-
var n =
|
|
2250
|
+
var n = We(e) ? e : fe(e), r;
|
|
2251
2251
|
return this.isValid() && n.isValid() ? (t = $e(t) || "millisecond", t === "millisecond" ? this.valueOf() === n.valueOf() : (r = n.valueOf(), this.clone().startOf(t).valueOf() <= r && r <= this.clone().endOf(t).valueOf())) : !1;
|
|
2252
2252
|
}
|
|
2253
2253
|
function Lo(e, t) {
|
|
@@ -2332,20 +2332,20 @@ function Uo(e) {
|
|
|
2332
2332
|
return this.localeData().postformat(t);
|
|
2333
2333
|
}
|
|
2334
2334
|
function $o(e, t) {
|
|
2335
|
-
return this.isValid() && (
|
|
2335
|
+
return this.isValid() && (We(e) && e.isValid() || fe(e).isValid()) ? qe({ to: this, from: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
2336
2336
|
}
|
|
2337
2337
|
function Ho(e) {
|
|
2338
2338
|
return this.from(fe(), e);
|
|
2339
2339
|
}
|
|
2340
2340
|
function Bo(e, t) {
|
|
2341
|
-
return this.isValid() && (
|
|
2341
|
+
return this.isValid() && (We(e) && e.isValid() || fe(e).isValid()) ? qe({ from: this, to: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
2342
2342
|
}
|
|
2343
|
-
function
|
|
2343
|
+
function Go(e) {
|
|
2344
2344
|
return this.to(fe(), e);
|
|
2345
2345
|
}
|
|
2346
2346
|
function ga(e) {
|
|
2347
2347
|
var t;
|
|
2348
|
-
return e === void 0 ? this._locale._abbr : (t =
|
|
2348
|
+
return e === void 0 ? this._locale._abbr : (t = pt(e), t != null && (this._locale = t), this);
|
|
2349
2349
|
}
|
|
2350
2350
|
var xa = Ue(
|
|
2351
2351
|
"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
|
|
@@ -2356,8 +2356,8 @@ var xa = Ue(
|
|
|
2356
2356
|
function Na() {
|
|
2357
2357
|
return this._locale;
|
|
2358
2358
|
}
|
|
2359
|
-
var en = 1e3,
|
|
2360
|
-
function
|
|
2359
|
+
var en = 1e3, Gt = 60 * en, tn = 60 * Gt, ja = (365 * 400 + 97) * 24 * tn;
|
|
2360
|
+
function zt(e, t) {
|
|
2361
2361
|
return (e % t + t) % t;
|
|
2362
2362
|
}
|
|
2363
2363
|
function va(e, t, n) {
|
|
@@ -2366,7 +2366,7 @@ function va(e, t, n) {
|
|
|
2366
2366
|
function _a(e, t, n) {
|
|
2367
2367
|
return e < 100 && e >= 0 ? Date.UTC(e + 400, t, n) - ja : Date.UTC(e, t, n);
|
|
2368
2368
|
}
|
|
2369
|
-
function
|
|
2369
|
+
function zo(e) {
|
|
2370
2370
|
var t, n;
|
|
2371
2371
|
if (e = $e(e), e === void 0 || e === "millisecond" || !this.isValid())
|
|
2372
2372
|
return this;
|
|
@@ -2403,21 +2403,21 @@ function Wo(e) {
|
|
|
2403
2403
|
t = n(this.year(), this.month(), this.date());
|
|
2404
2404
|
break;
|
|
2405
2405
|
case "hour":
|
|
2406
|
-
t = this._d.valueOf(), t -=
|
|
2407
|
-
t + (this._isUTC ? 0 : this.utcOffset() *
|
|
2406
|
+
t = this._d.valueOf(), t -= zt(
|
|
2407
|
+
t + (this._isUTC ? 0 : this.utcOffset() * Gt),
|
|
2408
2408
|
tn
|
|
2409
2409
|
);
|
|
2410
2410
|
break;
|
|
2411
2411
|
case "minute":
|
|
2412
|
-
t = this._d.valueOf(), t -=
|
|
2412
|
+
t = this._d.valueOf(), t -= zt(t, Gt);
|
|
2413
2413
|
break;
|
|
2414
2414
|
case "second":
|
|
2415
|
-
t = this._d.valueOf(), t -=
|
|
2415
|
+
t = this._d.valueOf(), t -= zt(t, en);
|
|
2416
2416
|
break;
|
|
2417
2417
|
}
|
|
2418
2418
|
return this._d.setTime(t), L.updateOffset(this, !0), this;
|
|
2419
2419
|
}
|
|
2420
|
-
function
|
|
2420
|
+
function Wo(e) {
|
|
2421
2421
|
var t, n;
|
|
2422
2422
|
if (e = $e(e), e === void 0 || e === "millisecond" || !this.isValid())
|
|
2423
2423
|
return this;
|
|
@@ -2454,16 +2454,16 @@ function Go(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 -
|
|
2458
|
-
t + (this._isUTC ? 0 : this.utcOffset() *
|
|
2457
|
+
t = this._d.valueOf(), t += tn - zt(
|
|
2458
|
+
t + (this._isUTC ? 0 : this.utcOffset() * Gt),
|
|
2459
2459
|
tn
|
|
2460
2460
|
) - 1;
|
|
2461
2461
|
break;
|
|
2462
2462
|
case "minute":
|
|
2463
|
-
t = this._d.valueOf(), t +=
|
|
2463
|
+
t = this._d.valueOf(), t += Gt - zt(t, Gt) - 1;
|
|
2464
2464
|
break;
|
|
2465
2465
|
case "second":
|
|
2466
|
-
t = this._d.valueOf(), t += en -
|
|
2466
|
+
t = this._d.valueOf(), t += en - zt(t, en) - 1;
|
|
2467
2467
|
break;
|
|
2468
2468
|
}
|
|
2469
2469
|
return this._d.setTime(t), L.updateOffset(this, !0), this;
|
|
@@ -2508,7 +2508,7 @@ function Xo() {
|
|
|
2508
2508
|
return Hn(this);
|
|
2509
2509
|
}
|
|
2510
2510
|
function ec() {
|
|
2511
|
-
return
|
|
2511
|
+
return gt({}, se(this));
|
|
2512
2512
|
}
|
|
2513
2513
|
function tc() {
|
|
2514
2514
|
return se(this).overflow;
|
|
@@ -2554,7 +2554,7 @@ ue(["yo"], function(e, t, n, r) {
|
|
|
2554
2554
|
n._locale._eraYearOrdinalRegex && (i = e.match(n._locale._eraYearOrdinalRegex)), n._locale.eraYearOrdinalParse ? t[Ce] = n._locale.eraYearOrdinalParse(e, i) : t[Ce] = parseInt(e, 10);
|
|
2555
2555
|
});
|
|
2556
2556
|
function nc(e, t) {
|
|
2557
|
-
var n, r, i, a = this._eras ||
|
|
2557
|
+
var n, r, i, a = this._eras || pt("en")._eras;
|
|
2558
2558
|
for (n = 0, r = a.length; n < r; ++n) {
|
|
2559
2559
|
switch (typeof a[n].since) {
|
|
2560
2560
|
case "string":
|
|
@@ -2730,7 +2730,7 @@ function _c(e, t, n, r, i) {
|
|
|
2730
2730
|
return this.year(u.getUTCFullYear()), this.month(u.getUTCMonth()), this.date(u.getUTCDate()), this;
|
|
2731
2731
|
}
|
|
2732
2732
|
q("Q", 0, "Qo", "quarter");
|
|
2733
|
-
H("Q",
|
|
2733
|
+
H("Q", zr);
|
|
2734
2734
|
ue("Q", function(e, t) {
|
|
2735
2735
|
t[ct] = (re(e) - 1) * 3;
|
|
2736
2736
|
});
|
|
@@ -2750,7 +2750,7 @@ ue("Do", function(e, t) {
|
|
|
2750
2750
|
var Sa = Qt("Date", !0);
|
|
2751
2751
|
q("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
|
|
2752
2752
|
H("DDD", dn);
|
|
2753
|
-
H("DDDD",
|
|
2753
|
+
H("DDDD", Wr);
|
|
2754
2754
|
ue(["DDD", "DDDD"], function(e, t, n) {
|
|
2755
2755
|
n._dayOfYear = re(e);
|
|
2756
2756
|
});
|
|
@@ -2763,7 +2763,7 @@ function Sc(e) {
|
|
|
2763
2763
|
q("m", ["mm", 2], 0, "minute");
|
|
2764
2764
|
H("m", pe, Kn);
|
|
2765
2765
|
H("mm", pe, Fe);
|
|
2766
|
-
ue(["m", "mm"],
|
|
2766
|
+
ue(["m", "mm"], Ge);
|
|
2767
2767
|
var Tc = Qt("Minutes", !1);
|
|
2768
2768
|
q("s", ["ss", 2], 0, "second");
|
|
2769
2769
|
H("s", pe, Kn);
|
|
@@ -2795,17 +2795,17 @@ q(0, ["SSSSSSSS", 8], 0, function() {
|
|
|
2795
2795
|
q(0, ["SSSSSSSSS", 9], 0, function() {
|
|
2796
2796
|
return this.millisecond() * 1e6;
|
|
2797
2797
|
});
|
|
2798
|
-
H("S", dn,
|
|
2798
|
+
H("S", dn, zr);
|
|
2799
2799
|
H("SS", dn, Fe);
|
|
2800
|
-
H("SSS", dn,
|
|
2801
|
-
var
|
|
2802
|
-
for (
|
|
2803
|
-
H(
|
|
2800
|
+
H("SSS", dn, Wr);
|
|
2801
|
+
var xt, Ta;
|
|
2802
|
+
for (xt = "SSSS"; xt.length <= 9; xt += "S")
|
|
2803
|
+
H(xt, qt);
|
|
2804
2804
|
function Ic(e, t) {
|
|
2805
2805
|
t[Ct] = re(("0." + e) * 1e3);
|
|
2806
2806
|
}
|
|
2807
|
-
for (
|
|
2808
|
-
ue(
|
|
2807
|
+
for (xt = "S"; xt.length <= 9; xt += "S")
|
|
2808
|
+
ue(xt, Ic);
|
|
2809
2809
|
Ta = Qt("Milliseconds", !1);
|
|
2810
2810
|
q("z", 0, 0, "zoneAbbr");
|
|
2811
2811
|
q("zz", 0, 0, "zoneName");
|
|
@@ -2820,12 +2820,12 @@ A.add = vo;
|
|
|
2820
2820
|
A.calendar = Co;
|
|
2821
2821
|
A.clone = Oo;
|
|
2822
2822
|
A.diff = Po;
|
|
2823
|
-
A.endOf =
|
|
2823
|
+
A.endOf = Wo;
|
|
2824
2824
|
A.format = Uo;
|
|
2825
2825
|
A.from = $o;
|
|
2826
2826
|
A.fromNow = Ho;
|
|
2827
2827
|
A.to = Bo;
|
|
2828
|
-
A.toNow =
|
|
2828
|
+
A.toNow = Go;
|
|
2829
2829
|
A.get = Di;
|
|
2830
2830
|
A.invalidAt = tc;
|
|
2831
2831
|
A.isAfter = Mo;
|
|
@@ -2842,7 +2842,7 @@ A.max = Jl;
|
|
|
2842
2842
|
A.min = Zl;
|
|
2843
2843
|
A.parsingFlags = ec;
|
|
2844
2844
|
A.set = Yi;
|
|
2845
|
-
A.startOf =
|
|
2845
|
+
A.startOf = zo;
|
|
2846
2846
|
A.subtract = _o;
|
|
2847
2847
|
A.toArray = Qo;
|
|
2848
2848
|
A.toObject = Zo;
|
|
@@ -2924,7 +2924,7 @@ function Ac() {
|
|
|
2924
2924
|
function wa(e) {
|
|
2925
2925
|
return e;
|
|
2926
2926
|
}
|
|
2927
|
-
var ce =
|
|
2927
|
+
var ce = Gn.prototype;
|
|
2928
2928
|
ce.calendar = pi;
|
|
2929
2929
|
ce.longDateFormat = Ni;
|
|
2930
2930
|
ce.invalidDate = vi;
|
|
@@ -2940,8 +2940,8 @@ ce.erasConvertYear = ac;
|
|
|
2940
2940
|
ce.erasAbbrRegex = hc;
|
|
2941
2941
|
ce.erasNameRegex = dc;
|
|
2942
2942
|
ce.erasNarrowRegex = uc;
|
|
2943
|
-
ce.months =
|
|
2944
|
-
ce.monthsShort =
|
|
2943
|
+
ce.months = Gi;
|
|
2944
|
+
ce.monthsShort = zi;
|
|
2945
2945
|
ce.monthsParse = Vi;
|
|
2946
2946
|
ce.monthsRegex = Qi;
|
|
2947
2947
|
ce.monthsShortRegex = Ki;
|
|
@@ -2958,7 +2958,7 @@ ce.weekdaysMinRegex = vl;
|
|
|
2958
2958
|
ce.isPM = bl;
|
|
2959
2959
|
ce.meridiem = wl;
|
|
2960
2960
|
function sn(e, t, n, r) {
|
|
2961
|
-
var i =
|
|
2961
|
+
var i = pt(), a = st().set(r, t);
|
|
2962
2962
|
return i[n](a, e);
|
|
2963
2963
|
}
|
|
2964
2964
|
function Ia(e, t, n) {
|
|
@@ -2971,7 +2971,7 @@ function Ia(e, t, n) {
|
|
|
2971
2971
|
}
|
|
2972
2972
|
function or(e, t, n, r) {
|
|
2973
2973
|
typeof e == "boolean" ? (mt(t) && (n = t, t = void 0), t = t || "") : (t = e, n = t, e = !1, mt(t) && (n = t, t = void 0), t = t || "");
|
|
2974
|
-
var i =
|
|
2974
|
+
var i = pt(), a = e ? i._week.dow : 0, u, f = [];
|
|
2975
2975
|
if (n != null)
|
|
2976
2976
|
return sn(t, (n + a) % 7, r, "day");
|
|
2977
2977
|
for (u = 0; u < 7; u++)
|
|
@@ -2993,7 +2993,7 @@ function kc(e, t, n) {
|
|
|
2993
2993
|
function Pc(e, t, n) {
|
|
2994
2994
|
return or(e, t, n, "weekdaysMin");
|
|
2995
2995
|
}
|
|
2996
|
-
|
|
2996
|
+
Nt("en", {
|
|
2997
2997
|
eras: [
|
|
2998
2998
|
{
|
|
2999
2999
|
since: "0001-01-01",
|
|
@@ -3020,11 +3020,11 @@ xt("en", {
|
|
|
3020
3020
|
});
|
|
3021
3021
|
L.lang = Ue(
|
|
3022
3022
|
"moment.lang is deprecated. Use moment.locale instead.",
|
|
3023
|
-
|
|
3023
|
+
Nt
|
|
3024
3024
|
);
|
|
3025
3025
|
L.langData = Ue(
|
|
3026
3026
|
"moment.langData is deprecated. Use moment.localeData instead.",
|
|
3027
|
-
|
|
3027
|
+
pt
|
|
3028
3028
|
);
|
|
3029
3029
|
var lt = Math.abs;
|
|
3030
3030
|
function Fc() {
|
|
@@ -3086,12 +3086,12 @@ function $c(e) {
|
|
|
3086
3086
|
throw new Error("Unknown unit " + e);
|
|
3087
3087
|
}
|
|
3088
3088
|
}
|
|
3089
|
-
function
|
|
3089
|
+
function yt(e) {
|
|
3090
3090
|
return function() {
|
|
3091
3091
|
return this.as(e);
|
|
3092
3092
|
};
|
|
3093
3093
|
}
|
|
3094
|
-
var Ma =
|
|
3094
|
+
var Ma = yt("ms"), Hc = yt("s"), Bc = yt("m"), Gc = yt("h"), zc = yt("d"), Wc = yt("w"), Vc = yt("M"), qc = yt("Q"), Kc = yt("y"), Qc = Ma;
|
|
3095
3095
|
function Zc() {
|
|
3096
3096
|
return qe(this);
|
|
3097
3097
|
}
|
|
@@ -3161,9 +3161,9 @@ ae.as = $c;
|
|
|
3161
3161
|
ae.asMilliseconds = Ma;
|
|
3162
3162
|
ae.asSeconds = Hc;
|
|
3163
3163
|
ae.asMinutes = Bc;
|
|
3164
|
-
ae.asHours =
|
|
3165
|
-
ae.asDays =
|
|
3166
|
-
ae.asWeeks =
|
|
3164
|
+
ae.asHours = Gc;
|
|
3165
|
+
ae.asDays = zc;
|
|
3166
|
+
ae.asWeeks = Wc;
|
|
3167
3167
|
ae.asMonths = Vc;
|
|
3168
3168
|
ae.asQuarters = qc;
|
|
3169
3169
|
ae.asYears = Kc;
|
|
@@ -3211,13 +3211,13 @@ L.utc = st;
|
|
|
3211
3211
|
L.unix = Mc;
|
|
3212
3212
|
L.months = Ec;
|
|
3213
3213
|
L.isDate = _s;
|
|
3214
|
-
L.locale =
|
|
3214
|
+
L.locale = Nt;
|
|
3215
3215
|
L.invalid = on;
|
|
3216
3216
|
L.duration = qe;
|
|
3217
|
-
L.isMoment =
|
|
3217
|
+
L.isMoment = We;
|
|
3218
3218
|
L.weekdays = Lc;
|
|
3219
3219
|
L.parseZone = Ac;
|
|
3220
|
-
L.localeData =
|
|
3220
|
+
L.localeData = pt;
|
|
3221
3221
|
L.isDuration = Ks;
|
|
3222
3222
|
L.monthsShort = Rc;
|
|
3223
3223
|
L.weekdaysMin = Pc;
|
|
@@ -3250,7 +3250,7 @@ L.HTML5_FMT = {
|
|
|
3250
3250
|
MONTH: "YYYY-MM"
|
|
3251
3251
|
// <input type="month" />
|
|
3252
3252
|
};
|
|
3253
|
-
const
|
|
3253
|
+
const ft = (e, t, n) => {
|
|
3254
3254
|
let r;
|
|
3255
3255
|
for (let i = 0; i < (e == null ? void 0 : e.length); i++)
|
|
3256
3256
|
if (r = e[i], r[n] == t)
|
|
@@ -3348,7 +3348,7 @@ function pd() {
|
|
|
3348
3348
|
break;
|
|
3349
3349
|
}
|
|
3350
3350
|
if (t._.includes(te, "-") && (te = te.slice(1), k = !0), te.length < v)
|
|
3351
|
-
for (var
|
|
3351
|
+
for (var W = v - te.length; W > 0; W--)
|
|
3352
3352
|
te = "0" + te;
|
|
3353
3353
|
return Q > -1 && (te = te.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + p.delimiters.thousands)), c.indexOf(".") === 0 && (te = ""), J = te + $ + (_ || ""), m ? J = (m && k ? "(" : "") + J + (m && k ? ")" : "") : be >= 0 ? J = be === 0 ? (k ? "-" : "+") + J : J + (k ? "-" : "+") : k && (J = "-" + J), J;
|
|
3354
3354
|
},
|
|
@@ -3709,7 +3709,7 @@ const nn = /* @__PURE__ */ Dr(yd), _e = (e) => +(Math.round(parseFloat(e) + "e+3
|
|
|
3709
3709
|
roundUpto: _e
|
|
3710
3710
|
}
|
|
3711
3711
|
}, Me = (e, t) => {
|
|
3712
|
-
const n = Nd[`_${
|
|
3712
|
+
const n = Nd[`_${Wt[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), _e = (e) => +(Math.round(parseFloat(e) + "e+3
|
|
|
3731
3731
|
MYR: "MYR",
|
|
3732
3732
|
TZS: "TZS",
|
|
3733
3733
|
BWP: "BWP"
|
|
3734
|
-
})[e] || "Rs",
|
|
3734
|
+
})[e] || "Rs", Wt = {
|
|
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 =
|
|
3848
|
+
return ((n = Wt[t]) == null ? void 0 : n.displayType) == "code" ? `${t} ${Me(e || 0, t)}` : `${Wt[t].symbol} ${Me(e || 0, t)}`;
|
|
3849
3849
|
}, B = (e, t) => {
|
|
3850
3850
|
var n;
|
|
3851
|
-
return ((n =
|
|
3851
|
+
return ((n = Wt[t]) == null ? void 0 : n.displayType) == "code" ? `${t} ${wr(e || 0, t)}` : `${Wt[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;
|
|
@@ -3974,7 +3974,7 @@ function Vt(e) {
|
|
|
3974
3974
|
}
|
|
3975
3975
|
});
|
|
3976
3976
|
}
|
|
3977
|
-
const
|
|
3977
|
+
const Ws = (e, t, n) => {
|
|
3978
3978
|
if (e && e.length > 0)
|
|
3979
3979
|
if (t != null && t.name) {
|
|
3980
3980
|
let r = [];
|
|
@@ -4049,9 +4049,9 @@ const Gs = (e, t, n) => {
|
|
|
4049
4049
|
console.error("Failed to parse serverData:", l), i = void 0;
|
|
4050
4050
|
}
|
|
4051
4051
|
if (t.type == "BILL" || t.type == "AGGREGATOR_BILL")
|
|
4052
|
-
return
|
|
4052
|
+
return Ws((a = t.siteSetting) == null ? void 0 : a.billPrinters, i, "label");
|
|
4053
4053
|
if (t.type == "PACKAGING_SLIP") {
|
|
4054
|
-
let l =
|
|
4054
|
+
let l = Ws((u = t.siteSetting) == null ? void 0 : u.packagingSlipPrinters, i, "value");
|
|
4055
4055
|
if (js == "Android OS") {
|
|
4056
4056
|
let c = l && l.length > 0 ? l.findIndex((h) => h.value == e.value) : -1;
|
|
4057
4057
|
return c != -1 ? [l[c]] : null;
|
|
@@ -4061,9 +4061,9 @@ const Gs = (e, t, n) => {
|
|
|
4061
4061
|
}
|
|
4062
4062
|
} else {
|
|
4063
4063
|
if (t.type == "ITEMWISE_SALES_COUNTER" || t.type == "PRINT_DASHBOARD" || t.type == "COUNTER_OPERATION" || t.type == "CARD_RECHARGE_DETAILS" || t.type === "ORDER_AGGREGATED_PRINT")
|
|
4064
|
-
return
|
|
4064
|
+
return Ws((f = t.siteSetting) == null ? void 0 : f.billPrinters, i, "value");
|
|
4065
4065
|
{
|
|
4066
|
-
let l =
|
|
4066
|
+
let l = Ws((o = t.siteSetting) == null ? void 0 : o.printers, i, "value");
|
|
4067
4067
|
if (l === !0)
|
|
4068
4068
|
return l;
|
|
4069
4069
|
if (js == "Android OS") {
|
|
@@ -4079,9 +4079,9 @@ const Gs = (e, t, n) => {
|
|
|
4079
4079
|
var E;
|
|
4080
4080
|
const { usersObj: r, stationList: i } = n;
|
|
4081
4081
|
let a = {}, u, f;
|
|
4082
|
-
const { cancelledKOT: o, onlyCancelledItems: l, kotStatus: c = "KOT_GENERATED" } = n, h =
|
|
4082
|
+
const { cancelledKOT: o, onlyCancelledItems: l, kotStatus: c = "KOT_GENERATED" } = n, h = ft(e.orderTags, "EXPRESS", "tag_type").content ? "INSTANT - URGENT ORDER" : null;
|
|
4083
4083
|
if ((E = e.customFeilds) != null && E.length) {
|
|
4084
|
-
let S =
|
|
4084
|
+
let S = ft(e.customFeilds, "INSTRUCTION", "customType");
|
|
4085
4085
|
S != null && S.customValue && (f = [
|
|
4086
4086
|
{
|
|
4087
4087
|
customName: S.customName,
|
|
@@ -4091,7 +4091,7 @@ const Gs = (e, t, n) => {
|
|
|
4091
4091
|
}
|
|
4092
4092
|
e.orderList.filter((S) => {
|
|
4093
4093
|
u = S.services.sort((w) => w.status === "CANCELLED" ? -1 : 0), u.forEach((w, D) => {
|
|
4094
|
-
var Q, J,
|
|
4094
|
+
var Q, J, W;
|
|
4095
4095
|
let $ = w.station ? w.station.split("::") : "", k = $ && $.length > 1 ? $[1] : $[0], Z = e.tableNo ? e.tableNo.split("::") : null, ne = Z && Z.length > 0 ? Z[0] : e.orderFrom, te = e.tableName ? e.tableName : e.tableNo ? ne : e.orderFrom, ie;
|
|
4096
4096
|
(Q = r == null ? void 0 : r[S.createdBy]) != null && Q.name && (ie = r[S.createdBy].name);
|
|
4097
4097
|
let be = !1;
|
|
@@ -4104,7 +4104,7 @@ const Gs = (e, t, n) => {
|
|
|
4104
4104
|
index: D,
|
|
4105
4105
|
status: w.status,
|
|
4106
4106
|
addons: w.addons
|
|
4107
|
-
}), a[k].totalQty += _e(w.qty), (J = a[k].kotId) == null || J.add(w.kotId), e.externalOrderId || e.offlineOrderId || (
|
|
4107
|
+
}), a[k].totalQty += _e(w.qty), (J = a[k].kotId) == null || J.add(w.kotId), e.externalOrderId || e.offlineOrderId || (W = a[k].orderId) == null || W.add(S.subOrderId)) : (a[k] = [], a[k].services.push({
|
|
4108
4108
|
serviceName: w.serviceName,
|
|
4109
4109
|
qty: w.qty,
|
|
4110
4110
|
instruction: w.instruction ? w.instruction : "",
|
|
@@ -4147,9 +4147,9 @@ const Gs = (e, t, n) => {
|
|
|
4147
4147
|
const { kotStatus: r = "KOT_GENERATED" } = n;
|
|
4148
4148
|
try {
|
|
4149
4149
|
let u = "2INCH", f, o = [], l, c;
|
|
4150
|
-
const h =
|
|
4150
|
+
const h = ft(e.orderTags, "EXPRESS", "tag_type").content ? "INSTANT - URGENT ORDER" : null;
|
|
4151
4151
|
if ((i = e.customFeilds) != null && i.length) {
|
|
4152
|
-
let p =
|
|
4152
|
+
let p = ft(e.customFeilds, "INSTRUCTION", "customType");
|
|
4153
4153
|
p != null && p.customValue && (c = [
|
|
4154
4154
|
{
|
|
4155
4155
|
customName: p.customName,
|
|
@@ -4266,7 +4266,7 @@ const Gs = (e, t, n) => {
|
|
|
4266
4266
|
}, Ad = (e, t) => {
|
|
4267
4267
|
var w, D;
|
|
4268
4268
|
let { serviceTypeConfig: n, salesCollection: r, todayCollection: i, dailyExpanse: a, collectionDate: u, rangeDate: f } = t, o = {}, l;
|
|
4269
|
-
const c = !!
|
|
4269
|
+
const c = !!ft(n, "dine-in", "slugName").slugName;
|
|
4270
4270
|
if (i != null && i.AGGREGATOR_PAYMENT) {
|
|
4271
4271
|
const { AGGREGATOR_PAYMENT: $, ...k } = i;
|
|
4272
4272
|
i = { ...k, swiggy: r.swiggy_collection ?? 0, zomato: r.zomato_collection ?? 0 };
|
|
@@ -4337,9 +4337,9 @@ const Gs = (e, t, n) => {
|
|
|
4337
4337
|
for (let J = 0; J < e.appliedDiscounts.length; J++)
|
|
4338
4338
|
f = e.appliedDiscounts[J], c += f.discountAmt;
|
|
4339
4339
|
}
|
|
4340
|
-
const g =
|
|
4340
|
+
const g = ft(e.orderTags, "EXPRESS", "tag_type").content ? "INSTANT - URGENT ORDER" : null;
|
|
4341
4341
|
if ((p = e.customFeilds) != null && p.length) {
|
|
4342
|
-
const J =
|
|
4342
|
+
const J = ft(e.customFeilds, "INSTRUCTION", "customType");
|
|
4343
4343
|
J != null && J.customValue && (l = [
|
|
4344
4344
|
{
|
|
4345
4345
|
customName: J.customName,
|
|
@@ -4364,31 +4364,31 @@ const Gs = (e, t, n) => {
|
|
|
4364
4364
|
custContact: e.mobile ?? null
|
|
4365
4365
|
}, te = Nn(t.curr), ie = { ...e, companyInfo: $, orderInfo: Z, customerInfo: ne, gst: D, curr: te }, be = null, Q = null;
|
|
4366
4366
|
a.companyLogo && (be = await Vt(`https://${a.companyLogo.bucket}.s3.amazonaws.com/${a.companyLogo.key}`)), a.qrcode && (Q = await Vt(`https://${a.qrcode.bucket}.s3.amazonaws.com/${a.qrcode.key}`)), e.orderList.filter((J) => {
|
|
4367
|
-
J.services.forEach(async (
|
|
4367
|
+
J.services.forEach(async (W, de) => {
|
|
4368
4368
|
var Ke, Qe;
|
|
4369
|
-
let
|
|
4370
|
-
|
|
4371
|
-
serviceName:
|
|
4372
|
-
qty:
|
|
4373
|
-
instruction:
|
|
4369
|
+
let G = "kitchen", X = e.tableName ? e.tableName : e.orderFrom;
|
|
4370
|
+
G && (f[G] || (f[G] = {}, f[G].station = G, f[G].services = [], f[G].tableName = X, f[G].customerName = e.name, f[G].time = L.unix(e.timestamp).format("DD-MM-YYYY hh:mm a"), f[G].type = e.orderFrom, f[G].orderId = e.orderId, f[G].instruction = e.instruction, f[G].totalQty = 0, f[G].tokenId = e.tokenId, f[G].orderSource = e.orderSource, f[G].aggregatorOrderId = e.externalOrderId, f[G].otp = e.otp, f[G].paymentState = e.paymentState, f[G].discountAmt = c, f[G].otherCharges = e.otherCharges, f[G].taxAmt = e.taxAmt, f[G].customFeilds = l, f[G].curr = t.curr ?? "INR", f[G].zomatoInstant = g), f[G] ? (o = {
|
|
4371
|
+
serviceName: W.serviceName,
|
|
4372
|
+
qty: W.qty,
|
|
4373
|
+
instruction: W.isUrgent && W.instruction ? `(URGENT -${W.instruction})` : W.instruction ? `(${W.instruction})` : W.isUrgent ? "(URGENT)" : "",
|
|
4374
4374
|
subOrderId: J.subOrderId,
|
|
4375
|
-
isUrgent:
|
|
4375
|
+
isUrgent: W.isUrgent,
|
|
4376
4376
|
index: de
|
|
4377
|
-
}, (Ke =
|
|
4378
|
-
serviceName:
|
|
4379
|
-
qty:
|
|
4380
|
-
instruction:
|
|
4377
|
+
}, (Ke = W.addons) != null && Ke.length && (o.addons = W.addons), f[G].services.push(o), f[G].totalQty += W.qty) : (f[G] = [], f[G].services.push({
|
|
4378
|
+
serviceName: W.serviceName,
|
|
4379
|
+
qty: W.qty,
|
|
4380
|
+
instruction: W.instruction ? W.instruction : "",
|
|
4381
4381
|
subOrderId: J.subOrderId,
|
|
4382
4382
|
index: de
|
|
4383
|
-
}), f[
|
|
4384
|
-
...f[
|
|
4383
|
+
}), f[G].totalQty += W.qty), f[G] = {
|
|
4384
|
+
...f[G],
|
|
4385
4385
|
companyInfo: $,
|
|
4386
4386
|
orderInfo: Z,
|
|
4387
4387
|
customerInfo: ne,
|
|
4388
4388
|
gst: D,
|
|
4389
4389
|
curr: te
|
|
4390
|
-
}, f[
|
|
4391
|
-
...f[
|
|
4390
|
+
}, f[G].domain = a.siteURL, f[G].paymentMethods = a.paymentMode ? ie.paymentMethods : null, f[G].companyInfo.companyName = a.companyName, f[G].companyInfo.companyEmail = a.email, f[G].companyInfo.companyAddress = a.address, f[G].companyInfo.companyContact = a.mobile, f[G].tokenId = a.token ? ie.tokenId : null, a.isPayQR && a.upiId && a.upiId !== "" && (ie.upiId = a.upiId), f[G].gstNo = a.gst ? ie.gst : null, f[G].footerMessage = a.footerMessage, f[G].orderFrom = (Qe = e.subOrderFrom) == null ? void 0 : Qe.toUpperCase(), f[G].fssai = t.fssai, f[G].vatNo = t.vatNo, f[G].printOperatorInfo = a.printOperatorInfo === null || a.printOperatorInfo === !0, f[G].disabledPoweredBy = t.disabledPoweredBy === !0, f[G].printTime = L().format("DD-MM-YYYY hh:mm A"), f[G].printedBy = u.userRole == "admin" ? "Admin" : u.name, e.deliveryTimestamp && (f[G].deliveryTimestamp = L.unix(e.deliveryTimestamp).format("DD-MM-YYYY hh:mm A")), f[G].itemInstructionOnBill = a.itemInstructionOnBill, f[G] = {
|
|
4391
|
+
...f[G],
|
|
4392
4392
|
companyLogo: be,
|
|
4393
4393
|
companyQrCode: Q
|
|
4394
4394
|
});
|
|
@@ -4396,13 +4396,13 @@ const Gs = (e, t, n) => {
|
|
|
4396
4396
|
});
|
|
4397
4397
|
for (const J in f)
|
|
4398
4398
|
if (Object.hasOwnProperty.call(f, J)) {
|
|
4399
|
-
const
|
|
4399
|
+
const W = f[J];
|
|
4400
4400
|
try {
|
|
4401
4401
|
let de = t.printerSize ?? "2inch";
|
|
4402
4402
|
r(
|
|
4403
4403
|
new Object({
|
|
4404
4404
|
obj: new Object({
|
|
4405
|
-
...
|
|
4405
|
+
...W,
|
|
4406
4406
|
paperSize: de
|
|
4407
4407
|
}),
|
|
4408
4408
|
orderList: e.orderList
|
|
@@ -4499,7 +4499,7 @@ const Gs = (e, t, n) => {
|
|
|
4499
4499
|
companyAddress: ie,
|
|
4500
4500
|
companyContact: t.contactNumber,
|
|
4501
4501
|
companyEmail: t.contactEmail
|
|
4502
|
-
},
|
|
4502
|
+
}, W = {
|
|
4503
4503
|
orderStatus: "COMPLETED",
|
|
4504
4504
|
orderDate: e && e.timestamp ? L.unix(e.timestamp).format("DD-MM-YYYY hh:mm A") : null,
|
|
4505
4505
|
orderNumber: e && e.orderId ? e.orderId : null,
|
|
@@ -4510,7 +4510,7 @@ const Gs = (e, t, n) => {
|
|
|
4510
4510
|
custAddress: m && m.custAddress && _ || null,
|
|
4511
4511
|
custContact: m && m.custMobile ? v : null,
|
|
4512
4512
|
custEmail: "ajaybaglane7@gmail.com"
|
|
4513
|
-
},
|
|
4513
|
+
}, G = Nn(t.curr), X = { ...e, companyInfo: Q, orderInfo: W, customerInfo: de, gst: be, curr: G };
|
|
4514
4514
|
if (m) {
|
|
4515
4515
|
if (X.domain = m.siteURL, X.paymentMethods = m.paymentMode ? X.paymentMethods : null, X.companyInfo.companyName = m.companyName, X.companyInfo.companyEmail = m.email, X.companyInfo.companyAddress = m.address, X.companyInfo.companyContact = m.mobile, X.customerInfo.custName = m.custName ? g : null, X.tokenId = m.token ? X.tokenId : null, m.isPayQR && m.upiId && m.upiId !== "" && (X.upiId = m.upiId), X.gstNo = m.gst ? X.gst : null, X.footerMessage = m.footerMessage, X.orderFrom = (o = e.subOrderFrom) == null ? void 0 : o.toUpperCase(), X.fssai = t.fssai, X.vatNo = t.vatNo, X.invoiceType = t.invoiceType, X.taxLabel = Aa(t), X.printOperatorInfo = m.printOperatorInfo === null || m.printOperatorInfo === !0, X.disabledPoweredBy = t.disabledPoweredBy === !0, X.printTime = L().format("DD-MM-YYYY hh:mm A"), e.deliveryTimestamp && (X.deliveryTimestamp = L.unix(e.deliveryTimestamp).format("DD-MM-YYYY hh:mm A")), X.itemInstructionOnBill = m.itemInstructionOnBill, X.printHSNCodeOnBill = m.printHSNCodeOnBill, X.noOfInvoice = m.noOfInvoice, X.printby = w, X.newFormat = !0, !(m.itemInstructionOnBill || m.printHSNCodeOnBill) && ((l = X.itemList) != null && l.length)) {
|
|
4516
4516
|
let ee;
|
|
@@ -4536,7 +4536,7 @@ const Gs = (e, t, n) => {
|
|
|
4536
4536
|
navigator.userAgent.indexOf("Win") != -1 && (a = "Windows OS"), navigator.userAgent.indexOf("Mac") != -1 && (a = "Macintosh"), navigator.userAgent.indexOf("Linux") != -1 && (a = "Linux OS"), navigator.userAgent.indexOf("Android") != -1 && (a = "Android OS"), navigator.userAgent.indexOf("like Mac") != -1 && (a = "iOS");
|
|
4537
4537
|
let Ze = {};
|
|
4538
4538
|
(function() {
|
|
4539
|
-
let ee, Ne, rt = 0, y = 0, d = 0, O = 0, j = 0, I = 0, U = 0, b = 0, F = [],
|
|
4539
|
+
let ee, Ne, rt = 0, y = 0, d = 0, O = 0, j = 0, I = 0, U = 0, b = 0, F = [], z = [], he = 0, Oe;
|
|
4540
4540
|
if (D === "A4" || D === "A5") {
|
|
4541
4541
|
for (Ne = 0; Ne < S.length; Ne++)
|
|
4542
4542
|
ee = S[Ne], y += ee.sub_total, d += ee.afterdiscAmt, O += ee.afterdiscAmt + (ee.total_charges ?? 0), rt += ee.afterdiscAmt + (ee.total_charges ?? 0), he += ee.qty;
|
|
@@ -4560,7 +4560,7 @@ const Gs = (e, t, n) => {
|
|
|
4560
4560
|
} else {
|
|
4561
4561
|
let { obj: De } = Vs(S);
|
|
4562
4562
|
for (X.taxation = De, Ne = 0; Ne < S.length; Ne++)
|
|
4563
|
-
ee = S[Ne], ee.taxType === "VAT" ? (
|
|
4563
|
+
ee = S[Ne], ee.taxType === "VAT" ? (z.push(ee), b += ee.sub_total, I += ee.afterdiscAmt, j += ee.afterdiscAmt + (ee.total_charges ?? 0), U += ee.afterdiscAmt + (ee.total_charges ?? 0)) : (F.push(ee), y += ee.sub_total, d += ee.afterdiscAmt, O += ee.afterdiscAmt + (ee.total_charges ?? 0), rt += ee.afterdiscAmt + (ee.total_charges ?? 0));
|
|
4564
4564
|
if (F.length) {
|
|
4565
4565
|
let Ae = wn(F, "discountName", { separateItemsDisc: !0 });
|
|
4566
4566
|
const Ie = Cn(Ae);
|
|
@@ -4579,17 +4579,17 @@ const Gs = (e, t, n) => {
|
|
|
4579
4579
|
total: _e(rt + He)
|
|
4580
4580
|
};
|
|
4581
4581
|
}
|
|
4582
|
-
if (
|
|
4583
|
-
let Ae = wn(
|
|
4582
|
+
if (z.length) {
|
|
4583
|
+
let Ae = wn(z, "discountName", { separateItemsDisc: !0 });
|
|
4584
4584
|
const Ie = Cn(Ae);
|
|
4585
|
-
let { obj: ke, sum: He } = Vs(
|
|
4585
|
+
let { obj: ke, sum: He } = Vs(z);
|
|
4586
4586
|
Ze.VAT = {
|
|
4587
|
-
itemList: On(
|
|
4587
|
+
itemList: On(z, {
|
|
4588
4588
|
itemInstructionOnBill: m.itemInstructionOnBill,
|
|
4589
4589
|
printZeroPriceAddons: m.printZeroPriceAddons
|
|
4590
4590
|
}),
|
|
4591
4591
|
discounts: Ie,
|
|
4592
|
-
charges: In(
|
|
4592
|
+
charges: In(z, "name"),
|
|
4593
4593
|
taxation: ke,
|
|
4594
4594
|
subTotal: _e(b),
|
|
4595
4595
|
afterDisc: _e(I),
|
|
@@ -4628,30 +4628,30 @@ const Gs = (e, t, n) => {
|
|
|
4628
4628
|
}, ie = Nn(t.curr), be = "", Q = { ...e, companyInfo: k, orderInfo: ne, customerInfo: te, gst: $, curr: ie };
|
|
4629
4629
|
if (h) {
|
|
4630
4630
|
if (Q.domain = h.siteURL, Q.paymentMethods = h.paymentMode ? Q.paymentMethods : null, Q.companyInfo.companyName = h.companyName, Q.companyInfo.companyEmail = h.email, Q.companyInfo.companyAddress = h.address, Q.companyInfo.companyContact = h.mobile, Q.customerInfo.custName = h.custName ? p : null, Q.tokenId = h.token ? Q.tokenId : null, h.isPayQR && h.upiId && h.upiId !== "" && (Q.upiId = h.upiId), Q.gstNo = h.gst ? Q.gst : null, Q.footerMessage = h.footerMessage, Q.orderFrom = (u = v.subOrderFrom) == null ? void 0 : u.toUpperCase(), Q.fssai = t.fssai, Q.vatNo = t.vatNo, Q.taxLabel = Aa(t), Q.printOperatorInfo = h.printOperatorInfo === null || h.printOperatorInfo === !0, Q.disabledPoweredBy = t.disabledPoweredBy === !0, Q.printTime = L().format("DD-MM-YYYY hh:mm A"), v.deliveryTimestamp && (Q.deliveryTimestamp = L.unix(v.deliveryTimestamp).format("DD-MM-YYYY hh:mm A")), Q.itemInstructionOnBill = h.itemInstructionOnBill, Q.printHSNCodeOnBill = h.printHSNCodeOnBill, Q.noOfInvoice = h.noOfInvoice, Q.area = v.area, Q.captainName = v.captainName, !(h.itemInstructionOnBill || h.printHSNCodeOnBill) && ((f = Q.itemList) != null && f.length)) {
|
|
4631
|
-
let
|
|
4631
|
+
let W;
|
|
4632
4632
|
for (let de = 0; de < Q.itemList.length; de++)
|
|
4633
|
-
|
|
4633
|
+
W = Q.itemList[de], W.instruction && delete W.instruction, W.hsnCode && delete W.hsnCode;
|
|
4634
4634
|
}
|
|
4635
4635
|
t.enabledOutstandingOnPay && ((o = e.custoutStandingData) != null && o.balanceAmt) && (Q.custoutStandingData = {
|
|
4636
4636
|
balanceAmt: e.custoutStandingData.balanceAmt
|
|
4637
4637
|
});
|
|
4638
4638
|
let J = [];
|
|
4639
4639
|
if ((l = v.customFeilds) != null && l.length) {
|
|
4640
|
-
let
|
|
4640
|
+
let W;
|
|
4641
4641
|
for (let de = 0; de < v.customFeilds.length; de++)
|
|
4642
|
-
|
|
4643
|
-
customName:
|
|
4644
|
-
customValue:
|
|
4642
|
+
W = v.customFeilds[de], W != null && W.customValue && ((c = W.availability) != null && c.includes("BILL")) && J.push({
|
|
4643
|
+
customName: W.customName,
|
|
4644
|
+
customValue: W.customValue
|
|
4645
4645
|
});
|
|
4646
4646
|
Q.customFields = J;
|
|
4647
4647
|
}
|
|
4648
4648
|
if (t && t.isOld && t.isOld == !0) {
|
|
4649
|
-
let
|
|
4650
|
-
h.companyLogo && (
|
|
4649
|
+
let W = null, de = null;
|
|
4650
|
+
h.companyLogo && (W = await Vt(`https://${h.companyLogo.bucket}.s3.amazonaws.com/${h.companyLogo.key}`)), h.qrcode && (de = await Vt(`https://${h.qrcode.bucket}.s3.amazonaws.com/${h.qrcode.key}`));
|
|
4651
4651
|
var a = "Unknown OS";
|
|
4652
4652
|
navigator.userAgent.indexOf("Win") != -1 && (a = "Windows OS"), navigator.userAgent.indexOf("Mac") != -1 && (a = "Macintosh"), navigator.userAgent.indexOf("Linux") != -1 && (a = "Linux OS"), navigator.userAgent.indexOf("Android") != -1 && (a = "Android OS"), navigator.userAgent.indexOf("like Mac") != -1 && (a = "iOS");
|
|
4653
|
-
let
|
|
4654
|
-
r(
|
|
4653
|
+
let G = { obj: Q, companyLogo: W, companyQrCode: de, paperSize: t.printerSize, Name: a };
|
|
4654
|
+
r(G);
|
|
4655
4655
|
}
|
|
4656
4656
|
}
|
|
4657
4657
|
} catch (h) {
|
|
@@ -4741,7 +4741,7 @@ const Dd = /* @__PURE__ */ (() => {
|
|
|
4741
4741
|
);
|
|
4742
4742
|
return () => (e += 1, `u${t()}${e}`);
|
|
4743
4743
|
})();
|
|
4744
|
-
function
|
|
4744
|
+
function jt(e) {
|
|
4745
4745
|
const t = [];
|
|
4746
4746
|
for (let n = 0, r = e.length; n < r; n++)
|
|
4747
4747
|
t.push(e[n]);
|
|
@@ -4749,7 +4749,7 @@ function Nt(e) {
|
|
|
4749
4749
|
}
|
|
4750
4750
|
let Dt = null;
|
|
4751
4751
|
function La(e = {}) {
|
|
4752
|
-
return Dt || (e.includeStyleProperties ? (Dt = e.includeStyleProperties, Dt) : (Dt =
|
|
4752
|
+
return Dt || (e.includeStyleProperties ? (Dt = e.includeStyleProperties, Dt) : (Dt = jt(window.getComputedStyle(document.documentElement)), Dt));
|
|
4753
4753
|
}
|
|
4754
4754
|
function rn(e, t) {
|
|
4755
4755
|
const r = (e.ownerDocument.defaultView || window).getComputedStyle(e).getPropertyValue(t);
|
|
@@ -4793,7 +4793,7 @@ function an(e) {
|
|
|
4793
4793
|
async function Bd(e) {
|
|
4794
4794
|
return Promise.resolve().then(() => new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then((t) => `data:image/svg+xml;charset=utf-8,${t}`);
|
|
4795
4795
|
}
|
|
4796
|
-
async function
|
|
4796
|
+
async function Gd(e, t, n) {
|
|
4797
4797
|
const r = "http://www.w3.org/2000/svg", i = document.createElementNS(r, "svg"), a = document.createElementNS(r, "foreignObject");
|
|
4798
4798
|
return i.setAttribute("width", `${t}`), i.setAttribute("height", `${n}`), i.setAttribute("viewBox", `0 0 ${t} ${n}`), a.setAttribute("width", "100%"), a.setAttribute("height", "100%"), a.setAttribute("x", "0"), a.setAttribute("y", "0"), a.setAttribute("externalResourcesRequired", "true"), i.appendChild(a), a.appendChild(e), Bd(i);
|
|
4799
4799
|
}
|
|
@@ -4803,18 +4803,18 @@ const Le = (e, t) => {
|
|
|
4803
4803
|
const n = Object.getPrototypeOf(e);
|
|
4804
4804
|
return n === null ? !1 : n.constructor.name === t.name || Le(n, t);
|
|
4805
4805
|
};
|
|
4806
|
-
function
|
|
4806
|
+
function zd(e) {
|
|
4807
4807
|
const t = e.getPropertyValue("content");
|
|
4808
4808
|
return `${e.cssText} content: '${t.replace(/'|"/g, "")}';`;
|
|
4809
4809
|
}
|
|
4810
|
-
function
|
|
4810
|
+
function Wd(e, t) {
|
|
4811
4811
|
return La(t).map((n) => {
|
|
4812
4812
|
const r = e.getPropertyValue(n), i = e.getPropertyPriority(n);
|
|
4813
4813
|
return `${n}: ${r}${i ? " !important" : ""};`;
|
|
4814
4814
|
}).join(" ");
|
|
4815
4815
|
}
|
|
4816
4816
|
function Vd(e, t, n, r) {
|
|
4817
|
-
const i = `.${e}:${t}`, a = n.cssText ?
|
|
4817
|
+
const i = `.${e}:${t}`, a = n.cssText ? zd(n) : Wd(n, r);
|
|
4818
4818
|
return document.createTextNode(`${i}{${a}}`);
|
|
4819
4819
|
}
|
|
4820
4820
|
function Cr(e, t, n, r) {
|
|
@@ -4932,7 +4932,7 @@ async function ah(e, t, n) {
|
|
|
4932
4932
|
if (Fa(t))
|
|
4933
4933
|
return t;
|
|
4934
4934
|
let a = [];
|
|
4935
|
-
return rh(e) && e.assignedNodes ? a =
|
|
4935
|
+
return rh(e) && e.assignedNodes ? a = jt(e.assignedNodes()) : Le(e, HTMLIFrameElement) && (!((r = e.contentDocument) === null || r === void 0) && r.body) ? a = jt(e.contentDocument.body.childNodes) : a = jt(((i = e.shadowRoot) !== null && i !== void 0 ? i : e).childNodes), a.length === 0 || Le(e, HTMLVideoElement) || await a.reduce((u, f) => u.then(() => jn(f, n)).then((o) => {
|
|
4936
4936
|
o && t.appendChild(o);
|
|
4937
4937
|
}), Promise.resolve()), t;
|
|
4938
4938
|
}
|
|
@@ -5053,7 +5053,7 @@ async function xh(e, t) {
|
|
|
5053
5053
|
});
|
|
5054
5054
|
}
|
|
5055
5055
|
async function Nh(e, t) {
|
|
5056
|
-
const r =
|
|
5056
|
+
const r = jt(e.childNodes).map((i) => $a(i, t));
|
|
5057
5057
|
await Promise.all(r).then(() => e);
|
|
5058
5058
|
}
|
|
5059
5059
|
async function $a(e, t) {
|
|
@@ -5114,7 +5114,7 @@ async function vh(e, t) {
|
|
|
5114
5114
|
return e.forEach((i) => {
|
|
5115
5115
|
if ("cssRules" in i)
|
|
5116
5116
|
try {
|
|
5117
|
-
|
|
5117
|
+
jt(i.cssRules || []).forEach((a, u) => {
|
|
5118
5118
|
if (a.type === CSSRule.IMPORT_RULE) {
|
|
5119
5119
|
let f = u + 1;
|
|
5120
5120
|
const o = a.href, l = Er(o).then((c) => Rr(c, t)).then((c) => Lr(c).forEach((h) => {
|
|
@@ -5143,7 +5143,7 @@ async function vh(e, t) {
|
|
|
5143
5143
|
}), Promise.all(r).then(() => (e.forEach((i) => {
|
|
5144
5144
|
if ("cssRules" in i)
|
|
5145
5145
|
try {
|
|
5146
|
-
|
|
5146
|
+
jt(i.cssRules || []).forEach((a) => {
|
|
5147
5147
|
n.push(a);
|
|
5148
5148
|
});
|
|
5149
5149
|
} catch (a) {
|
|
@@ -5157,7 +5157,7 @@ function _h(e) {
|
|
|
5157
5157
|
async function bh(e, t) {
|
|
5158
5158
|
if (e.ownerDocument == null)
|
|
5159
5159
|
throw new Error("Provided element is not within a Document");
|
|
5160
|
-
const n =
|
|
5160
|
+
const n = jt(e.ownerDocument.styleSheets), r = await vh(n, t);
|
|
5161
5161
|
return _h(r);
|
|
5162
5162
|
}
|
|
5163
5163
|
function Ha(e) {
|
|
@@ -5191,7 +5191,7 @@ async function wh(e, t) {
|
|
|
5191
5191
|
}
|
|
5192
5192
|
async function Ba(e, t = {}) {
|
|
5193
5193
|
const { width: n, height: r } = ka(e, t), i = await jn(e, t, !0);
|
|
5194
|
-
return await wh(i, t), await $a(i, t), jh(i, t), await
|
|
5194
|
+
return await wh(i, t), await $a(i, t), jh(i, t), await Gd(i, n, r);
|
|
5195
5195
|
}
|
|
5196
5196
|
async function Ih(e, t = {}) {
|
|
5197
5197
|
const { width: n, height: r } = ka(e, t), i = await Ba(e, t), a = await an(i), u = document.createElement("canvas"), f = u.getContext("2d"), o = t.pixelRatio || $d(), l = t.canvasWidth || n, c = t.canvasHeight || r;
|
|
@@ -5200,20 +5200,20 @@ async function Ih(e, t = {}) {
|
|
|
5200
5200
|
async function Ch(e, t = {}) {
|
|
5201
5201
|
return (await Ih(e, t)).toDataURL("image/jpeg", t.quality || 1);
|
|
5202
5202
|
}
|
|
5203
|
-
var Oh = Object.defineProperty, ln = Object.getOwnPropertySymbols,
|
|
5203
|
+
var Oh = Object.defineProperty, ln = Object.getOwnPropertySymbols, Ga = Object.prototype.hasOwnProperty, za = Object.prototype.propertyIsEnumerable, kr = (e, t, n) => t in e ? Oh(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, vs = (e, t) => {
|
|
5204
5204
|
for (var n in t || (t = {}))
|
|
5205
|
-
|
|
5205
|
+
Ga.call(t, n) && kr(e, n, t[n]);
|
|
5206
5206
|
if (ln)
|
|
5207
5207
|
for (var n of ln(t))
|
|
5208
|
-
|
|
5208
|
+
za.call(t, n) && kr(e, n, t[n]);
|
|
5209
5209
|
return e;
|
|
5210
5210
|
}, mr = (e, t) => {
|
|
5211
5211
|
var n = {};
|
|
5212
5212
|
for (var r in e)
|
|
5213
|
-
|
|
5213
|
+
Ga.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
5214
5214
|
if (e != null && ln)
|
|
5215
5215
|
for (var r of ln(e))
|
|
5216
|
-
t.indexOf(r) < 0 &&
|
|
5216
|
+
t.indexOf(r) < 0 && za.call(e, r) && (n[r] = e[r]);
|
|
5217
5217
|
return n;
|
|
5218
5218
|
};
|
|
5219
5219
|
/**
|
|
@@ -5647,7 +5647,7 @@ var Ht = Mt;
|
|
|
5647
5647
|
* Copyright (c) Paul O'Shannessy
|
|
5648
5648
|
* SPDX-License-Identifier: ISC
|
|
5649
5649
|
*/
|
|
5650
|
-
var
|
|
5650
|
+
var Wa = {
|
|
5651
5651
|
L: Ht.QrCode.Ecc.LOW,
|
|
5652
5652
|
M: Ht.QrCode.Ecc.MEDIUM,
|
|
5653
5653
|
Q: Ht.QrCode.Ecc.QUARTILE,
|
|
@@ -5719,15 +5719,15 @@ function Eh(e) {
|
|
|
5719
5719
|
const S = p.current, w = S.getContext("2d");
|
|
5720
5720
|
if (!w)
|
|
5721
5721
|
return;
|
|
5722
|
-
let D = Ht.QrCode.encodeText(n,
|
|
5722
|
+
let D = Ht.QrCode.encodeText(n, Wa[i]).getModules();
|
|
5723
5723
|
const $ = f ? fr : 0, k = D.length + $ * 2, Z = ei(D, r, f, l), ne = m.current, te = Z != null && ne !== null && ne.complete && ne.naturalHeight !== 0 && ne.naturalWidth !== 0;
|
|
5724
5724
|
te && Z.excavation != null && (D = Xa(D, Z.excavation));
|
|
5725
5725
|
const ie = window.devicePixelRatio || 1;
|
|
5726
5726
|
S.height = S.width = r * ie;
|
|
5727
5727
|
const be = r / k * ie;
|
|
5728
5728
|
w.scale(be, be), w.fillStyle = a, w.fillRect(0, 0, k, k), w.fillStyle = u, Ah ? w.fill(new Path2D(Ja(D, $))) : D.forEach(function(Q, J) {
|
|
5729
|
-
Q.forEach(function(
|
|
5730
|
-
|
|
5729
|
+
Q.forEach(function(W, de) {
|
|
5730
|
+
W && w.fillRect(de + $, J + $, 1, 1);
|
|
5731
5731
|
});
|
|
5732
5732
|
}), te && w.drawImage(ne, Z.x + $, Z.y + $, Z.w, Z.h);
|
|
5733
5733
|
}
|
|
@@ -5769,7 +5769,7 @@ function Rh(e) {
|
|
|
5769
5769
|
"includeMargin",
|
|
5770
5770
|
"imageSettings"
|
|
5771
5771
|
]);
|
|
5772
|
-
let c = Ht.QrCode.encodeText(n,
|
|
5772
|
+
let c = Ht.QrCode.encodeText(n, Wa[i]).getModules();
|
|
5773
5773
|
const h = f ? fr : 0, p = c.length + h * 2, m = ei(c, r, f, o);
|
|
5774
5774
|
let g = null;
|
|
5775
5775
|
o != null && m != null && (m.excavation != null && (c = Xa(c, m.excavation)), g = /* @__PURE__ */ Te.createElement("image", {
|
|
@@ -5802,7 +5802,8 @@ var Pr = (e) => {
|
|
|
5802
5802
|
const ms = (e, t) => t * 100 / e, Lh = (e) => !!(e || e === 0), kh = {
|
|
5803
5803
|
ABSOLUTE: "AMT",
|
|
5804
5804
|
RELATIVE: "%",
|
|
5805
|
-
COMPLIMENTARY: "COMPLIMENTARY"
|
|
5805
|
+
COMPLIMENTARY: "COMPLIMENTARY",
|
|
5806
|
+
NON_CHARGEABLE: "NON CHARGEABLE"
|
|
5806
5807
|
}, P = new Object({
|
|
5807
5808
|
"3INCH": {
|
|
5808
5809
|
lines: "- - - - - - - - - - - - - - - - - - - - - - - - - - - - -",
|
|
@@ -5900,8 +5901,8 @@ const Ve = (e) => {
|
|
|
5900
5901
|
j.src = y, j.onload = () => {
|
|
5901
5902
|
let I = document.createElement("canvas");
|
|
5902
5903
|
const U = 600, b = j.height;
|
|
5903
|
-
let F = j.width,
|
|
5904
|
-
F >
|
|
5904
|
+
let F = j.width, z = j.height;
|
|
5905
|
+
F > z ? F > U && (z *= U / F, F = U) : z > b && (F *= b / z, z = b), I.width = F, I.height = z, I.getContext("2d").drawImage(j, 0, 0, F, z), d(I.toDataURL());
|
|
5905
5906
|
};
|
|
5906
5907
|
}), E = async () => {
|
|
5907
5908
|
if (n && n.current) {
|
|
@@ -5951,9 +5952,9 @@ const Ve = (e) => {
|
|
|
5951
5952
|
var U, b;
|
|
5952
5953
|
let O = 0;
|
|
5953
5954
|
if ((U = d.taxObj) != null && U.VAT.length) {
|
|
5954
|
-
let F,
|
|
5955
|
-
for (
|
|
5956
|
-
F = d.taxObj.VAT[
|
|
5955
|
+
let F, z, he;
|
|
5956
|
+
for (z = 0; z < ((b = d.taxObj) == null ? void 0 : b.VAT.length); z++) {
|
|
5957
|
+
F = d.taxObj.VAT[z];
|
|
5957
5958
|
for (he in F)
|
|
5958
5959
|
O += _e(F[he]);
|
|
5959
5960
|
}
|
|
@@ -6017,7 +6018,7 @@ const Ve = (e) => {
|
|
|
6017
6018
|
}, te = new Object({
|
|
6018
6019
|
CREDIT: "Other Income",
|
|
6019
6020
|
DEBIT: "Expense"
|
|
6020
|
-
}), ie = (y) => y.discountType === "COMPLIMENTARY" ? "@ COMPLIMENTARY" : `@ ${y.discountValue}${kh[y.discountType]}`, be = (y) => {
|
|
6021
|
+
}), ie = (y) => y.discountType === "COMPLIMENTARY" ? "@ COMPLIMENTARY" : y.discountType === "NON_CHARGEABLE" ? "@ NON CHARGEABLE" : `@ ${y.discountValue}${kh[y.discountType]}`, be = (y) => {
|
|
6021
6022
|
const d = new Array();
|
|
6022
6023
|
if (y && Object.keys(y).length !== 0) {
|
|
6023
6024
|
d.push(/* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center", children: "ACCOUNTS" }));
|
|
@@ -6205,7 +6206,7 @@ const Ve = (e) => {
|
|
|
6205
6206
|
":",
|
|
6206
6207
|
/* @__PURE__ */ s.jsxs("span", { children: [
|
|
6207
6208
|
y.couponCode ? `(${y.couponCode.toUpperCase()})` : "",
|
|
6208
|
-
m(y.dicsEnterValue) ? `@${y.dicsEnterValue}${y.discountType == "RELATIVE" || y.discountType == "COMPLIMENTARY" ? "%" : "AMT"}` : ""
|
|
6209
|
+
m(y.dicsEnterValue) ? `@${y.dicsEnterValue}${y.discountType == "RELATIVE" || y.discountType == "COMPLIMENTARY" || y.discountType == "NON_CHARGEABLE" ? "%" : "AMT"}` : ""
|
|
6209
6210
|
] })
|
|
6210
6211
|
] }) }),
|
|
6211
6212
|
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(j.orderDisc) })
|
|
@@ -6238,9 +6239,9 @@ const Ve = (e) => {
|
|
|
6238
6239
|
] }) : "",
|
|
6239
6240
|
y.taxObj && y.taxObj[U] && j ? /* @__PURE__ */ s.jsx(s.Fragment, { children: U === "GST" ? y.taxObj[U].map((b) => {
|
|
6240
6241
|
let F = new Array();
|
|
6241
|
-
for (const
|
|
6242
|
-
if (b[
|
|
6243
|
-
let he =
|
|
6242
|
+
for (const z in b)
|
|
6243
|
+
if (b[z] && b[z] != 0) {
|
|
6244
|
+
let he = z / 2;
|
|
6244
6245
|
F.push(
|
|
6245
6246
|
/* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
6246
6247
|
/* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
|
|
@@ -6248,14 +6249,14 @@ const Ve = (e) => {
|
|
|
6248
6249
|
/* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: d.cgst } }),
|
|
6249
6250
|
/* @__PURE__ */ s.jsx("span", { children: " @" + he + "%" })
|
|
6250
6251
|
] }) }),
|
|
6251
|
-
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(b[
|
|
6252
|
+
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(b[z] / 2) })
|
|
6252
6253
|
] }),
|
|
6253
6254
|
/* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
|
|
6254
6255
|
/* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
|
|
6255
6256
|
/* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: d[y.taxLabel.toLowerCase()] } }),
|
|
6256
6257
|
/* @__PURE__ */ s.jsx("span", { children: " @" + he + "%" })
|
|
6257
6258
|
] }) }),
|
|
6258
|
-
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(b[
|
|
6259
|
+
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(b[z] / 2) })
|
|
6259
6260
|
] })
|
|
6260
6261
|
] })
|
|
6261
6262
|
);
|
|
@@ -6263,16 +6264,16 @@ const Ve = (e) => {
|
|
|
6263
6264
|
return F;
|
|
6264
6265
|
}) : y.taxObj[U].map((b) => {
|
|
6265
6266
|
let F = new Array();
|
|
6266
|
-
for (const
|
|
6267
|
-
if (b[
|
|
6268
|
-
let he =
|
|
6267
|
+
for (const z in b)
|
|
6268
|
+
if (b[z] && b[z] != 0) {
|
|
6269
|
+
let he = z;
|
|
6269
6270
|
F.push(
|
|
6270
6271
|
/* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
|
|
6271
6272
|
/* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
|
|
6272
6273
|
/* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: d.vat } }),
|
|
6273
6274
|
/* @__PURE__ */ s.jsx("span", { children: " @" + he + "%" })
|
|
6274
6275
|
] }) }),
|
|
6275
|
-
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(b[
|
|
6276
|
+
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(b[z]) })
|
|
6276
6277
|
] }) })
|
|
6277
6278
|
);
|
|
6278
6279
|
}
|
|
@@ -6426,7 +6427,7 @@ const Ve = (e) => {
|
|
|
6426
6427
|
":",
|
|
6427
6428
|
/* @__PURE__ */ s.jsxs("span", { children: [
|
|
6428
6429
|
y.couponCode ? `(${y.couponCode.toUpperCase()})` : "",
|
|
6429
|
-
m(y.dicsEnterValue) ? `@${y.dicsEnterValue}${y.discountType == "RELATIVE" || y.discountType == "COMPLIMENTARY" ? "%" : "AMT"}` : ""
|
|
6430
|
+
m(y.dicsEnterValue) ? `@${y.dicsEnterValue}${y.discountType == "RELATIVE" || y.discountType == "COMPLIMENTARY" || y.discountType == "NON_CHARGEABLE" ? "%" : "AMT"}` : ""
|
|
6430
6431
|
] })
|
|
6431
6432
|
] }) }),
|
|
6432
6433
|
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(j.orderDisc) })
|
|
@@ -6475,9 +6476,9 @@ const Ve = (e) => {
|
|
|
6475
6476
|
] }) : "" })) : "",
|
|
6476
6477
|
y.taxObj && y.taxObj[U] && j ? /* @__PURE__ */ s.jsx(s.Fragment, { children: U === "GST" ? y.taxObj[U].map((b) => {
|
|
6477
6478
|
let F = new Array();
|
|
6478
|
-
for (const
|
|
6479
|
-
if (b[
|
|
6480
|
-
let he =
|
|
6479
|
+
for (const z in b)
|
|
6480
|
+
if (b[z] && b[z] != 0) {
|
|
6481
|
+
let he = z / 2;
|
|
6481
6482
|
F.push(
|
|
6482
6483
|
/* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
6483
6484
|
/* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
|
|
@@ -6485,14 +6486,14 @@ const Ve = (e) => {
|
|
|
6485
6486
|
/* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: d.cgst } }),
|
|
6486
6487
|
/* @__PURE__ */ s.jsx("span", { children: " @" + he + "%" })
|
|
6487
6488
|
] }) }),
|
|
6488
|
-
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(b[
|
|
6489
|
+
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(b[z] / 2) })
|
|
6489
6490
|
] }),
|
|
6490
6491
|
/* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
|
|
6491
6492
|
/* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
|
|
6492
6493
|
/* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: d[y.taxLabel.toLowerCase()] } }),
|
|
6493
6494
|
/* @__PURE__ */ s.jsx("span", { children: " @" + he + "%" })
|
|
6494
6495
|
] }) }),
|
|
6495
|
-
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(b[
|
|
6496
|
+
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(b[z] / 2) })
|
|
6496
6497
|
] })
|
|
6497
6498
|
] })
|
|
6498
6499
|
);
|
|
@@ -6500,16 +6501,16 @@ const Ve = (e) => {
|
|
|
6500
6501
|
return F;
|
|
6501
6502
|
}) : y.taxObj[U].map((b) => {
|
|
6502
6503
|
let F = new Array();
|
|
6503
|
-
for (const
|
|
6504
|
-
if (b[
|
|
6505
|
-
let he =
|
|
6504
|
+
for (const z in b)
|
|
6505
|
+
if (b[z] && b[z] != 0) {
|
|
6506
|
+
let he = z;
|
|
6506
6507
|
F.push(
|
|
6507
6508
|
/* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div", children: [
|
|
6508
6509
|
/* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
|
|
6509
6510
|
/* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: d.vat } }),
|
|
6510
6511
|
/* @__PURE__ */ s.jsx("span", { children: " @" + he + "%" })
|
|
6511
6512
|
] }) }),
|
|
6512
|
-
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(b[
|
|
6513
|
+
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: y.curr + " " + m(b[z]) })
|
|
6513
6514
|
] }) })
|
|
6514
6515
|
);
|
|
6515
6516
|
}
|
|
@@ -6528,7 +6529,7 @@ const Ve = (e) => {
|
|
|
6528
6529
|
})
|
|
6529
6530
|
] });
|
|
6530
6531
|
}, J = (y, d, { labels: O, doMultipleTax: j, type: I }) => {
|
|
6531
|
-
var b, F,
|
|
6532
|
+
var b, F, z, he, Oe, De, Ae, Ie, ke, He, at;
|
|
6532
6533
|
const U = y.discounts;
|
|
6533
6534
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
6534
6535
|
/* @__PURE__ */ s.jsx("hr", {}),
|
|
@@ -6600,7 +6601,7 @@ const Ve = (e) => {
|
|
|
6600
6601
|
Je.hsnCode
|
|
6601
6602
|
] }) })
|
|
6602
6603
|
] })) : "",
|
|
6603
|
-
K.instruction ? /* @__PURE__ */ s.jsx("h6", { className: "left-align-entity level2-bold", children: /* @__PURE__ */ s.jsx("h6", { className: "items products-heading-addon-kot", children: " (" + K.instruction + ")" }) }) : ""
|
|
6604
|
+
K.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: " (" + K.instruction + ")" }) }) : ""
|
|
6604
6605
|
] });
|
|
6605
6606
|
}),
|
|
6606
6607
|
/* @__PURE__ */ s.jsx("hr", {})
|
|
@@ -6645,7 +6646,7 @@ const Ve = (e) => {
|
|
|
6645
6646
|
] }) }),
|
|
6646
6647
|
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + m(K.discountAmt) })
|
|
6647
6648
|
] })) : "",
|
|
6648
|
-
(
|
|
6649
|
+
(z = U.ITEM_DISCOUNT) != null && z.length ? U.ITEM_DISCOUNT.map((K) => /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${je}`, children: [
|
|
6649
6650
|
/* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
6650
6651
|
/* @__PURE__ */ s.jsx(
|
|
6651
6652
|
"span",
|
|
@@ -6704,7 +6705,7 @@ const Ve = (e) => {
|
|
|
6704
6705
|
}
|
|
6705
6706
|
),
|
|
6706
6707
|
":",
|
|
6707
|
-
/* @__PURE__ */ s.jsx("span", { children: m(U.ORDER_DISCOUNT[0].discountValue) ? `@${U.ORDER_DISCOUNT[0].discountValue}${U.ORDER_DISCOUNT[0].discountType == "RELATIVE" || U.ORDER_DISCOUNT[0].discountType == "COMPLIMENTARY" ? "%" : "AMT"}` : "" })
|
|
6708
|
+
/* @__PURE__ */ s.jsx("span", { children: m(U.ORDER_DISCOUNT[0].discountValue) ? `@${U.ORDER_DISCOUNT[0].discountValue}${U.ORDER_DISCOUNT[0].discountType == "RELATIVE" || U.ORDER_DISCOUNT[0].discountType == "COMPLIMENTARY" || U.ORDER_DISCOUNT[0].discountType == "NON_CHARGEABLE" ? "%" : "AMT"}` : "" })
|
|
6708
6709
|
] }) }),
|
|
6709
6710
|
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: d.curr + " " + m(U.ORDER_DISCOUNT[0].discountAmt) })
|
|
6710
6711
|
] }) : "",
|
|
@@ -6762,7 +6763,7 @@ const Ve = (e) => {
|
|
|
6762
6763
|
/* @__PURE__ */ s.jsx("div", { className: "space-2rem" })
|
|
6763
6764
|
] }) : "" }) : ""
|
|
6764
6765
|
] });
|
|
6765
|
-
},
|
|
6766
|
+
}, W = (y, d) => {
|
|
6766
6767
|
var U, b;
|
|
6767
6768
|
let O = !1;
|
|
6768
6769
|
const j = y.distributedData;
|
|
@@ -6788,13 +6789,13 @@ const Ve = (e) => {
|
|
|
6788
6789
|
":"
|
|
6789
6790
|
] }) }),
|
|
6790
6791
|
d[U].map((F) => {
|
|
6791
|
-
var
|
|
6792
|
+
var z;
|
|
6792
6793
|
return /* @__PURE__ */ s.jsxs("div", { children: [
|
|
6793
6794
|
/* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
|
|
6794
6795
|
/* @__PURE__ */ s.jsx("h4", { className: `items products-heading-name-kot ${P[l].dynamicClassname}`, children: Be(F.serviceName) }),
|
|
6795
6796
|
/* @__PURE__ */ s.jsx("h4", { className: `items products-heading-qty-kot ${P[l].dynamicClassname}`, children: F.qty })
|
|
6796
6797
|
] }),
|
|
6797
|
-
((
|
|
6798
|
+
((z = F.addons) == null ? void 0 : z.length) && F.addons.map((he) => {
|
|
6798
6799
|
var Oe;
|
|
6799
6800
|
return /* @__PURE__ */ s.jsx("h5", { className: "items products-heading-addon-kot", children: "- " + ((Oe = he.serviceName) == null ? void 0 : Oe.toUpperCase()) });
|
|
6800
6801
|
}),
|
|
@@ -6806,7 +6807,7 @@ const Ve = (e) => {
|
|
|
6806
6807
|
/* @__PURE__ */ s.jsx("hr", {})
|
|
6807
6808
|
] })
|
|
6808
6809
|
] });
|
|
6809
|
-
},
|
|
6810
|
+
}, G = (y) => {
|
|
6810
6811
|
const d = y.slice(0, -4), O = y.slice(-4);
|
|
6811
6812
|
return { firstDigits: d, last4Dgits: O };
|
|
6812
6813
|
}, X = (y, d, O, j = {}) => {
|
|
@@ -6826,8 +6827,8 @@ const Ve = (e) => {
|
|
|
6826
6827
|
] })
|
|
6827
6828
|
] })
|
|
6828
6829
|
);
|
|
6829
|
-
for (let
|
|
6830
|
-
b = I[
|
|
6830
|
+
for (let z = 0; z < I.length; z++)
|
|
6831
|
+
b = I[z], d[b] && U.push(
|
|
6831
6832
|
/* @__PURE__ */ s.jsxs("h5", { className: `left-align-entity level3-bold ${F} second-span-right`, children: [
|
|
6832
6833
|
/* @__PURE__ */ s.jsx("span", { children: ` -- ${b.replaceAll("_", " ")}:` }),
|
|
6833
6834
|
/* @__PURE__ */ s.jsx("span", { children: le(d[b], o) }),
|
|
@@ -6856,11 +6857,11 @@ const Ve = (e) => {
|
|
|
6856
6857
|
fs(I)
|
|
6857
6858
|
] }),
|
|
6858
6859
|
/* @__PURE__ */ s.jsxs("section", { className: "products-section", children: [
|
|
6859
|
-
b.forEach((
|
|
6860
|
+
b.forEach((z) => {
|
|
6860
6861
|
F.push(
|
|
6861
6862
|
/* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
|
|
6862
|
-
/* @__PURE__ */ s.jsx("h6", { className: `items products-heading-name-kot ${P["3INCH"].dynamicClassname}`, children:
|
|
6863
|
-
/* @__PURE__ */ s.jsx("h6", { className: `items products-heading-qty-kot ${P["3INCH"].dynamicClassname}`, children: parseFloat(
|
|
6863
|
+
/* @__PURE__ */ s.jsx("h6", { className: `items products-heading-name-kot ${P["3INCH"].dynamicClassname}`, children: z.serviceName }),
|
|
6864
|
+
/* @__PURE__ */ s.jsx("h6", { className: `items products-heading-qty-kot ${P["3INCH"].dynamicClassname}`, children: parseFloat(z.qty.toFixed(2)) })
|
|
6864
6865
|
] }) })
|
|
6865
6866
|
);
|
|
6866
6867
|
}),
|
|
@@ -6886,11 +6887,11 @@ const Ve = (e) => {
|
|
|
6886
6887
|
fs(I)
|
|
6887
6888
|
] }),
|
|
6888
6889
|
/* @__PURE__ */ s.jsxs("section", { className: "products-section", children: [
|
|
6889
|
-
b.forEach((
|
|
6890
|
+
b.forEach((z) => {
|
|
6890
6891
|
F.push(
|
|
6891
6892
|
/* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
|
|
6892
|
-
/* @__PURE__ */ s.jsx("h6", { className: `items products-heading-name-kot ${P["3INCH"].dynamicClassname}`, children:
|
|
6893
|
-
/* @__PURE__ */ s.jsx("h6", { className: `items products-heading-qty-kot ${P["3INCH"].dynamicClassname}`, children: parseFloat(
|
|
6893
|
+
/* @__PURE__ */ s.jsx("h6", { className: `items products-heading-name-kot ${P["3INCH"].dynamicClassname}`, children: z.serviceName }),
|
|
6894
|
+
/* @__PURE__ */ s.jsx("h6", { className: `items products-heading-qty-kot ${P["3INCH"].dynamicClassname}`, children: parseFloat(z.qty.toFixed(2)) })
|
|
6894
6895
|
] }) })
|
|
6895
6896
|
);
|
|
6896
6897
|
}),
|
|
@@ -6924,6 +6925,7 @@ const Ve = (e) => {
|
|
|
6924
6925
|
order_disc: "ORDER DISC",
|
|
6925
6926
|
coupon_disc: "COUPON DISC",
|
|
6926
6927
|
complementary_disc: "COMPLIMENTARY BILL",
|
|
6928
|
+
nonChargeable_disc: "NON CHARGEABLE BILL",
|
|
6927
6929
|
amt_before_tax: "AMT BEFORE TAX",
|
|
6928
6930
|
total: "TOTAL",
|
|
6929
6931
|
grand_total: "GRAND TOTAL",
|
|
@@ -6950,7 +6952,7 @@ const Ve = (e) => {
|
|
|
6950
6952
|
}
|
|
6951
6953
|
return d;
|
|
6952
6954
|
}, _t = (y, d, O, j) => {
|
|
6953
|
-
var
|
|
6955
|
+
var z, he, Oe, De, Ae, Ie, ke, He, at, K, St, Je, Zt, Jt, Is, Xt, es, Cs, Os, Ms, As, Es, Rs, Ls, Et, ts, it, Rt, Lt, ss, ks, ns, Ps, rs, as, Fs, Ds, is, ls, Ys, Us, $s, Hs, x, M;
|
|
6954
6956
|
const I = Qe(r.customLabelsMap), U = ws(Sd(r.paymentModes), "internalName"), b = (C) => {
|
|
6955
6957
|
var N;
|
|
6956
6958
|
return (N = U[C]) != null && N.displayName ? U[C].displayName.toUpperCase() : C;
|
|
@@ -6984,7 +6986,7 @@ const Ve = (e) => {
|
|
|
6984
6986
|
/* @__PURE__ */ s.jsx("tr", { children: /* @__PURE__ */ s.jsx("td", { colSpan: 12, className: "text-center border-right", style: { padding: "0px 1.4rem" }, children: /* @__PURE__ */ s.jsx("h6", { children: /* @__PURE__ */ s.jsx("strong", { children: "Tax Invoice" }) }) }) }),
|
|
6985
6987
|
/* @__PURE__ */ s.jsxs("tr", { children: [
|
|
6986
6988
|
/* @__PURE__ */ s.jsx("td", { colSpan: 6, className: "v-align-baseline col-6", children: /* @__PURE__ */ s.jsxs("div", { className: "divPadding", children: [
|
|
6987
|
-
(N.customerInfo.custName || ((
|
|
6989
|
+
(N.customerInfo.custName || ((z = N.customFields) == null ? void 0 : z.length)) && /* @__PURE__ */ s.jsx("tr", { children: /* @__PURE__ */ s.jsx("td", { colSpan: "2", className: "text-center border-right", children: /* @__PURE__ */ s.jsx("strong", { children: "Bill To" }) }) }),
|
|
6988
6990
|
N.customerInfo.custName && N.customerInfo.custName !== "" && /* @__PURE__ */ s.jsx("tr", { children: /* @__PURE__ */ s.jsx("td", { width: "10%", children: N.customerInfo.custName }) }),
|
|
6989
6991
|
N.customerInfo.custContact && N.customerInfo.custContact !== "" && /* @__PURE__ */ s.jsx("tr", { children: /* @__PURE__ */ s.jsx("td", { width: "10%", children: N.customerInfo.custContact }) }),
|
|
6990
6992
|
N.customerInfo.custAddress && N.customerInfo.custAddress !== "" && /* @__PURE__ */ s.jsx("tr", { children: /* @__PURE__ */ s.jsx("td", { width: "10%", children: N.customerInfo.custAddress }) }),
|
|
@@ -7069,7 +7071,7 @@ const Ve = (e) => {
|
|
|
7069
7071
|
/* @__PURE__ */ s.jsx("strong", { className: "font-weight-bold", children: "Amount in words" }),
|
|
7070
7072
|
/* @__PURE__ */ s.jsx("br", {}),
|
|
7071
7073
|
jd(
|
|
7072
|
-
Me(N.finalAmount, o).toFixed(
|
|
7074
|
+
Me(N.finalAmount, o).toFixed(Wt[o].minimumFractionDigits ?? 2)
|
|
7073
7075
|
)
|
|
7074
7076
|
] }) }),
|
|
7075
7077
|
/* @__PURE__ */ s.jsx("hr", {}),
|
|
@@ -7174,7 +7176,7 @@ const Ve = (e) => {
|
|
|
7174
7176
|
}
|
|
7175
7177
|
}
|
|
7176
7178
|
),
|
|
7177
|
-
/* @__PURE__ */ s.jsx("span", { children: m(R.ORDER_DISCOUNT[0].discountValue) ? `@${R.ORDER_DISCOUNT[0].discountValue}${R.ORDER_DISCOUNT[0].discountType == "RELATIVE" || R.ORDER_DISCOUNT[0].discountType == "COMPLIMENTARY" ? "%" : "AMT"}` : "" })
|
|
7179
|
+
/* @__PURE__ */ s.jsx("span", { children: m(R.ORDER_DISCOUNT[0].discountValue) ? `@${R.ORDER_DISCOUNT[0].discountValue}${R.ORDER_DISCOUNT[0].discountType == "RELATIVE" || R.ORDER_DISCOUNT[0].discountType == "COMPLIMENTARY" || R.ORDER_DISCOUNT[0].discountType == "NON_CHARGEABLE" ? "%" : "AMT"}` : "" })
|
|
7178
7180
|
] }),
|
|
7179
7181
|
/* @__PURE__ */ s.jsx("td", { className: "text-align-right", width: "50%", children: B(R.ORDER_DISCOUNT[0].discountAmt, o) })
|
|
7180
7182
|
] }) : "",
|
|
@@ -7343,7 +7345,8 @@ const Ve = (e) => {
|
|
|
7343
7345
|
": ",
|
|
7344
7346
|
/* @__PURE__ */ s.jsx("span", { children: d.customerInfo.custAddress })
|
|
7345
7347
|
] }) }),
|
|
7346
|
-
|
|
7348
|
+
ft(d.appliedDiscounts ?? [], "COMPLIMENTARY", "discountType").discountType && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level2-bold", dangerouslySetInnerHTML: { __html: I.complementary_disc } }),
|
|
7349
|
+
ft(d.appliedDiscounts ?? [], "NON_CHARGEABLE", "discountType").discountType && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity level2-bold", dangerouslySetInnerHTML: { __html: I.nonChargeable_disc } }),
|
|
7347
7350
|
d.orderId && /* @__PURE__ */ s.jsx("h5", { className: "left-align-entity", style: { flexShrink: 0 }, children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
|
|
7348
7351
|
/* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: I.order_no } }),
|
|
7349
7352
|
": ",
|
|
@@ -7369,7 +7372,7 @@ const Ve = (e) => {
|
|
|
7369
7372
|
/* @__PURE__ */ s.jsx("hr", {}),
|
|
7370
7373
|
d.customFields.map((N) => /* @__PURE__ */ s.jsx("h4", { className: "left-align-entity", children: N.customName + ": " + N.customValue }))
|
|
7371
7374
|
] }) : "",
|
|
7372
|
-
d.newFormat ?
|
|
7375
|
+
d.newFormat ? W(d, I) : Q(d, I),
|
|
7373
7376
|
/* @__PURE__ */ s.jsx("br", {}),
|
|
7374
7377
|
/* @__PURE__ */ s.jsxs("div", { className: `bottom-section ${P[l].dynamicClassname}`, children: [
|
|
7375
7378
|
/* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
|
|
@@ -7715,7 +7718,7 @@ const Ve = (e) => {
|
|
|
7715
7718
|
] });
|
|
7716
7719
|
} else if (y === "AGGREGATOR_BILL") {
|
|
7717
7720
|
let C;
|
|
7718
|
-
return a.aggregatorOrderId && a.aggregatorOrderId !== "" && (C =
|
|
7721
|
+
return a.aggregatorOrderId && a.aggregatorOrderId !== "" && (C = G(a.aggregatorOrderId)), /* @__PURE__ */ s.jsx("div", { className: "main-div bill", style: { width: P[l].paperSize }, children: /* @__PURE__ */ s.jsxs("div", { children: [
|
|
7719
7722
|
/* @__PURE__ */ s.jsxs("div", { style: { width: "100%", textAlign: "left", marginLeft: "auto" }, children: [
|
|
7720
7723
|
/* @__PURE__ */ s.jsx("br", {}),
|
|
7721
7724
|
O && /* @__PURE__ */ s.jsx("div", { className: "image-bill", children: /* @__PURE__ */ s.jsx("img", { src: O, className: "single-entity-and-center", style: { width: P[l].logoWidth } }) }),
|
|
@@ -8329,7 +8332,7 @@ const Ve = (e) => {
|
|
|
8329
8332
|
return getRechargeDetails(C);
|
|
8330
8333
|
} else if (y === "PACKAGING_SLIP") {
|
|
8331
8334
|
let C, N = 0;
|
|
8332
|
-
d.aggregatorOrderId && d.aggregatorOrderId !== "" && (C =
|
|
8335
|
+
d.aggregatorOrderId && d.aggregatorOrderId !== "" && (C = G(d.aggregatorOrderId));
|
|
8333
8336
|
const Y = d.services;
|
|
8334
8337
|
for (let R in Y)
|
|
8335
8338
|
N += Y[R].length;
|
|
@@ -8470,7 +8473,7 @@ const Ve = (e) => {
|
|
|
8470
8473
|
let C, N = 0, Y, V;
|
|
8471
8474
|
for (let T = 0; T < (((x = a.services) == null ? void 0 : x.length) || 0); T++)
|
|
8472
8475
|
V = a.services[T], V.status === "CANCELLED" && !a.onlyCancelledItems && (N += V.qty);
|
|
8473
|
-
return a.aggregatorOrderId && a.aggregatorOrderId !== "" && (C =
|
|
8476
|
+
return a.aggregatorOrderId && a.aggregatorOrderId !== "" && (C = G(a.aggregatorOrderId)), /* @__PURE__ */ s.jsx("div", { className: "main-div", style: { width: P[l].paperSize }, children: /* @__PURE__ */ s.jsxs("div", { style: { maxWidth: "100%", textAlign: "left", marginLeft: "auto" }, children: [
|
|
8474
8477
|
/* @__PURE__ */ s.jsx("br", {}),
|
|
8475
8478
|
/* @__PURE__ */ s.jsxs("div", { className: "main-div", children: [
|
|
8476
8479
|
a.duplicate && !a.onlyCancelledItems ? /* @__PURE__ */ s.jsx("h4", { className: "single-entity-and-center", children: "DUPLICATE KOT" }) : "",
|
|
@@ -8812,7 +8815,7 @@ const Ve = (e) => {
|
|
|
8812
8815
|
} catch (u) {
|
|
8813
8816
|
a(u);
|
|
8814
8817
|
}
|
|
8815
|
-
}),
|
|
8818
|
+
}), Gh = async (e, t, n) => new Promise(async (r, i) => {
|
|
8816
8819
|
try {
|
|
8817
8820
|
let u = `counterDetailsPrint:::${Math.floor(Math.random() * 1e3)}`, f = [];
|
|
8818
8821
|
await new Promise((l) => {
|
|
@@ -8841,7 +8844,7 @@ const Ve = (e) => {
|
|
|
8841
8844
|
} catch (a) {
|
|
8842
8845
|
i(a);
|
|
8843
8846
|
}
|
|
8844
|
-
}),
|
|
8847
|
+
}), zh = async (e, t, n = {}, r = {}) => new Promise(async (i, a) => {
|
|
8845
8848
|
var u;
|
|
8846
8849
|
try {
|
|
8847
8850
|
const f = await kd(e, t);
|
|
@@ -8876,7 +8879,7 @@ const Ve = (e) => {
|
|
|
8876
8879
|
} catch (f) {
|
|
8877
8880
|
a(f);
|
|
8878
8881
|
}
|
|
8879
|
-
}),
|
|
8882
|
+
}), Wh = async (e, t, n = {}) => new Promise(async (r, i) => {
|
|
8880
8883
|
var a;
|
|
8881
8884
|
try {
|
|
8882
8885
|
const u = [];
|
|
@@ -8929,13 +8932,13 @@ const Ve = (e) => {
|
|
|
8929
8932
|
}
|
|
8930
8933
|
};
|
|
8931
8934
|
export {
|
|
8932
|
-
|
|
8935
|
+
Gh as counterDetailsPrint,
|
|
8933
8936
|
$h as handleAggregatorBillPrint,
|
|
8934
8937
|
Hh as handleBillPrint,
|
|
8935
8938
|
Uh as handleDashboardPrint,
|
|
8936
8939
|
Bh as handleItemWisePrint,
|
|
8937
8940
|
Dh as handleKOTPrint,
|
|
8938
|
-
|
|
8939
|
-
|
|
8941
|
+
Wh as handleOldBillPrints,
|
|
8942
|
+
zh as handleSummaryPrint,
|
|
8940
8943
|
Yh as handleUpdateTablePrint
|
|
8941
8944
|
};
|