recaho-print-react 0.0.136 → 0.0.137
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 +209 -192
- package/dist/recaho-print-react.umd.cjs +7 -7
- package/package.json +3 -3
|
@@ -130,14 +130,14 @@ function ai() {
|
|
|
130
130
|
}
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
|
-
var G = Object.assign, de = 0, W, X,
|
|
133
|
+
var G = Object.assign, de = 0, W, X, Ke, Qe, _t, Ze, bt;
|
|
134
134
|
function ee() {
|
|
135
135
|
}
|
|
136
136
|
ee.__reactDisabledLog = !0;
|
|
137
137
|
function Ne() {
|
|
138
138
|
{
|
|
139
139
|
if (de === 0) {
|
|
140
|
-
W = console.log, X = console.info,
|
|
140
|
+
W = console.log, X = console.info, Ke = console.warn, Qe = console.error, _t = console.group, Ze = console.groupCollapsed, bt = console.groupEnd;
|
|
141
141
|
var g = {
|
|
142
142
|
configurable: !0,
|
|
143
143
|
enumerable: !0,
|
|
@@ -157,7 +157,7 @@ function ai() {
|
|
|
157
157
|
de++;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function at() {
|
|
161
161
|
{
|
|
162
162
|
if (de--, de === 0) {
|
|
163
163
|
var g = {
|
|
@@ -173,16 +173,16 @@ function ai() {
|
|
|
173
173
|
value: X
|
|
174
174
|
}),
|
|
175
175
|
warn: G({}, g, {
|
|
176
|
-
value:
|
|
176
|
+
value: Ke
|
|
177
177
|
}),
|
|
178
178
|
error: G({}, g, {
|
|
179
|
-
value:
|
|
179
|
+
value: Qe
|
|
180
180
|
}),
|
|
181
181
|
group: G({}, g, {
|
|
182
182
|
value: _t
|
|
183
183
|
}),
|
|
184
184
|
groupCollapsed: G({}, g, {
|
|
185
|
-
value:
|
|
185
|
+
value: Ze
|
|
186
186
|
}),
|
|
187
187
|
groupEnd: G({}, g, {
|
|
188
188
|
value: bt
|
|
@@ -277,7 +277,7 @@ function ai() {
|
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
} finally {
|
|
280
|
-
j = !1, y.current = V,
|
|
280
|
+
j = !1, y.current = V, at(), Error.prepareStackTrace = Y;
|
|
281
281
|
}
|
|
282
282
|
var kt = g ? g.displayName || g.name : "", Tt = kt ? O(kt) : "";
|
|
283
283
|
return typeof g == "function" && I.set(g, Tt), Tt;
|
|
@@ -346,7 +346,7 @@ function ai() {
|
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
var He = Array.isArray;
|
|
349
|
-
function
|
|
349
|
+
function it(g) {
|
|
350
350
|
return He(g);
|
|
351
351
|
}
|
|
352
352
|
function K(g) {
|
|
@@ -357,17 +357,17 @@ function ai() {
|
|
|
357
357
|
}
|
|
358
358
|
function St(g) {
|
|
359
359
|
try {
|
|
360
|
-
return
|
|
360
|
+
return Je(g), !1;
|
|
361
361
|
} catch {
|
|
362
362
|
return !0;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function Je(g) {
|
|
366
366
|
return "" + g;
|
|
367
367
|
}
|
|
368
368
|
function Zt(g) {
|
|
369
369
|
if (St(g))
|
|
370
|
-
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", K(g)),
|
|
370
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", K(g)), Je(g);
|
|
371
371
|
}
|
|
372
372
|
var Jt = E.ReactCurrentOwner, Is = {
|
|
373
373
|
key: !0,
|
|
@@ -464,7 +464,7 @@ function ai() {
|
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
466
|
var Et = E.ReactCurrentOwner, ts = E.ReactDebugCurrentFrame;
|
|
467
|
-
function
|
|
467
|
+
function lt(g) {
|
|
468
468
|
if (g) {
|
|
469
469
|
var M = g._owner, C = he(g.type, g._source, M ? M.type : null);
|
|
470
470
|
ts.setExtraStackFrame(C);
|
|
@@ -514,14 +514,14 @@ Check the top-level render call using <` + C + ">.");
|
|
|
514
514
|
return;
|
|
515
515
|
ns[C] = !0;
|
|
516
516
|
var N = "";
|
|
517
|
-
g && g._owner && g._owner !== Et.current && (N = " It was passed a child from " + J(g._owner.type) + "."),
|
|
517
|
+
g && g._owner && g._owner !== Et.current && (N = " It was passed a child from " + J(g._owner.type) + "."), lt(g), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, N), lt(null);
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
function as(g, M) {
|
|
521
521
|
{
|
|
522
522
|
if (typeof g != "object")
|
|
523
523
|
return;
|
|
524
|
-
if (
|
|
524
|
+
if (it(g))
|
|
525
525
|
for (var C = 0; C < g.length; C++) {
|
|
526
526
|
var N = g[C];
|
|
527
527
|
Lt(N) && rs(N, M);
|
|
@@ -566,11 +566,11 @@ Check the top-level render call using <` + C + ">.");
|
|
|
566
566
|
for (var M = Object.keys(g.props), C = 0; C < M.length; C++) {
|
|
567
567
|
var N = M[C];
|
|
568
568
|
if (N !== "children" && N !== "key") {
|
|
569
|
-
|
|
569
|
+
lt(g), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", N), lt(null);
|
|
570
570
|
break;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
g.ref !== null && (
|
|
573
|
+
g.ref !== null && (lt(g), S("Invalid attribute `ref` supplied to `React.Fragment`."), lt(null));
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
var is = {};
|
|
@@ -583,7 +583,7 @@ Check the top-level render call using <` + C + ">.");
|
|
|
583
583
|
var ye = ks();
|
|
584
584
|
ye ? T += ye : T += ss();
|
|
585
585
|
var me;
|
|
586
|
-
g === null ? me = "null" :
|
|
586
|
+
g === null ? me = "null" : it(g) ? me = "array" : g !== void 0 && g.$$typeof === t ? (me = "<" + (J(g.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : me = typeof g, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", me, T);
|
|
587
587
|
}
|
|
588
588
|
var xe = Ls(g, M, C, Y, V);
|
|
589
589
|
if (xe == null)
|
|
@@ -592,7 +592,7 @@ Check the top-level render call using <` + C + ">.");
|
|
|
592
592
|
var Te = M.children;
|
|
593
593
|
if (Te !== void 0)
|
|
594
594
|
if (N)
|
|
595
|
-
if (
|
|
595
|
+
if (it(Te)) {
|
|
596
596
|
for (var kt = 0; kt < Te.length; kt++)
|
|
597
597
|
as(Te[kt], g);
|
|
598
598
|
Object.freeze && Object.freeze(Te);
|
|
@@ -697,7 +697,7 @@ function $n(e) {
|
|
|
697
697
|
function Re(e) {
|
|
698
698
|
return e === void 0;
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function ft(e) {
|
|
701
701
|
return typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]";
|
|
702
702
|
}
|
|
703
703
|
function _s(e) {
|
|
@@ -714,7 +714,7 @@ function gt(e, 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;
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function nt(e, t, n, r) {
|
|
718
718
|
return oa(e, t, n, r, !0).utc();
|
|
719
719
|
}
|
|
720
720
|
function hi() {
|
|
@@ -759,7 +759,7 @@ function Hn(e) {
|
|
|
759
759
|
return e._isValid;
|
|
760
760
|
}
|
|
761
761
|
function on(e) {
|
|
762
|
-
var t =
|
|
762
|
+
var t = nt(NaN);
|
|
763
763
|
return e != null ? gt(se(t), e) : se(t).userInvalidated = !0, t;
|
|
764
764
|
}
|
|
765
765
|
var Nr = L.momentProperties = [], _n = !1;
|
|
@@ -810,13 +810,13 @@ function $r(e, t) {
|
|
|
810
810
|
}
|
|
811
811
|
L.suppressDeprecationWarnings = !1;
|
|
812
812
|
L.deprecationHandler = null;
|
|
813
|
-
function
|
|
813
|
+
function rt(e) {
|
|
814
814
|
return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
|
|
815
815
|
}
|
|
816
816
|
function ui(e) {
|
|
817
817
|
var t, n;
|
|
818
818
|
for (n in e)
|
|
819
|
-
oe(e, n) && (t = e[n],
|
|
819
|
+
oe(e, n) && (t = e[n], rt(t) ? this[n] = t : this["_" + n] = t);
|
|
820
820
|
this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp(
|
|
821
821
|
(this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
|
|
822
822
|
);
|
|
@@ -849,9 +849,9 @@ var mi = {
|
|
|
849
849
|
};
|
|
850
850
|
function fi(e, t, n) {
|
|
851
851
|
var r = this._calendar[e] || this._calendar.sameElse;
|
|
852
|
-
return
|
|
852
|
+
return rt(r) ? r.call(t, n) : r;
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
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
|
}
|
|
@@ -861,7 +861,7 @@ function q(e, t, n, r) {
|
|
|
861
861
|
typeof r == "string" && (i = function() {
|
|
862
862
|
return this[r]();
|
|
863
863
|
}), e && (Bt[e] = i), t && (Bt[t[0]] = function() {
|
|
864
|
-
return
|
|
864
|
+
return tt(i.apply(this, arguments), t[1], t[2]);
|
|
865
865
|
}), n && (Bt[n] = function() {
|
|
866
866
|
return this.localeData().ordinal(
|
|
867
867
|
i.apply(this, arguments),
|
|
@@ -879,7 +879,7 @@ function yi(e) {
|
|
|
879
879
|
return function(i) {
|
|
880
880
|
var a = "", u;
|
|
881
881
|
for (u = 0; u < r; u++)
|
|
882
|
-
a +=
|
|
882
|
+
a += rt(t[u]) ? t[u].call(i, e) : t[u];
|
|
883
883
|
return a;
|
|
884
884
|
};
|
|
885
885
|
}
|
|
@@ -940,11 +940,11 @@ var Si = {
|
|
|
940
940
|
};
|
|
941
941
|
function Ti(e, t, n, r) {
|
|
942
942
|
var i = this._relativeTime[n];
|
|
943
|
-
return
|
|
943
|
+
return rt(i) ? i(e, t, n, r) : i.replace(/%d/i, e);
|
|
944
944
|
}
|
|
945
945
|
function wi(e, t) {
|
|
946
946
|
var n = this._relativeTime[e > 0 ? "future" : "past"];
|
|
947
|
-
return
|
|
947
|
+
return rt(n) ? n(t) : n.replace(/%s/i, t);
|
|
948
948
|
}
|
|
949
949
|
var vr = {
|
|
950
950
|
D: "date",
|
|
@@ -1034,7 +1034,7 @@ function Ci(e) {
|
|
|
1034
1034
|
var Br = /\d/, Fe = /\d\d/, Wr = /\d{3}/, Vn = /\d{4}/, cn = /[+-]?\d{6}/, pe = /\d\d?/, zr = /\d\d\d\d?/, Gr = /\d\d\d\d\d\d?/, dn = /\d{1,3}/, qn = /\d{1,4}/, hn = /[+-]?\d{1,6}/, qt = /\d+/, un = /[+-]?\d+/, Oi = /Z|[+-]\d\d:?\d\d/gi, mn = /Z|[+-]\d\d(?::?\d\d)?/gi, Mi = /[+-]?\d+(\.\d{1,3})?/, Ss = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, Kt = /^[1-9]\d?/, Kn = /^([1-9]\d|\d)/, Js;
|
|
1035
1035
|
Js = {};
|
|
1036
1036
|
function H(e, t, n) {
|
|
1037
|
-
Js[e] =
|
|
1037
|
+
Js[e] = rt(t) ? t : function(r, i) {
|
|
1038
1038
|
return r && n ? n : t;
|
|
1039
1039
|
};
|
|
1040
1040
|
}
|
|
@@ -1042,7 +1042,7 @@ function Ai(e, t) {
|
|
|
1042
1042
|
return oe(Js, e) ? Js[e](t._strict, t._locale) : new RegExp(Ei(e));
|
|
1043
1043
|
}
|
|
1044
1044
|
function Ei(e) {
|
|
1045
|
-
return
|
|
1045
|
+
return ut(
|
|
1046
1046
|
e.replace("\\", "").replace(
|
|
1047
1047
|
/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
|
|
1048
1048
|
function(t, n, r, i, a) {
|
|
@@ -1051,7 +1051,7 @@ function Ei(e) {
|
|
|
1051
1051
|
)
|
|
1052
1052
|
);
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1054
|
+
function ut(e) {
|
|
1055
1055
|
return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
1056
1056
|
}
|
|
1057
1057
|
function Ye(e) {
|
|
@@ -1064,7 +1064,7 @@ function re(e) {
|
|
|
1064
1064
|
var Ln = {};
|
|
1065
1065
|
function ue(e, t) {
|
|
1066
1066
|
var n, r = t, i;
|
|
1067
|
-
for (typeof e == "string" && (e = [e]),
|
|
1067
|
+
for (typeof e == "string" && (e = [e]), ft(t) && (r = function(a, u) {
|
|
1068
1068
|
u[t] = re(a);
|
|
1069
1069
|
}), i = e.length, n = 0; n < i; n++)
|
|
1070
1070
|
Ln[e[n]] = r;
|
|
@@ -1080,10 +1080,10 @@ function Ri(e, t, n) {
|
|
|
1080
1080
|
function fn(e) {
|
|
1081
1081
|
return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
|
|
1082
1082
|
}
|
|
1083
|
-
var Ce = 0,
|
|
1083
|
+
var Ce = 0, dt = 1, et = 2, Se = 3, We = 4, ht = 5, Ct = 6, Li = 7, ki = 8;
|
|
1084
1084
|
q("Y", 0, 0, function() {
|
|
1085
1085
|
var e = this.year();
|
|
1086
|
-
return e <= 9999 ?
|
|
1086
|
+
return e <= 9999 ? tt(e, 4) : "+" + e;
|
|
1087
1087
|
});
|
|
1088
1088
|
q(0, ["YY", 2], 0, function() {
|
|
1089
1089
|
return this.year() % 100;
|
|
@@ -1174,7 +1174,7 @@ function qr(e, t, n) {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
1176
|
function Fi(e) {
|
|
1177
|
-
return e = $e(e),
|
|
1177
|
+
return e = $e(e), rt(this[e]) ? this[e]() : this;
|
|
1178
1178
|
}
|
|
1179
1179
|
function Di(e, t) {
|
|
1180
1180
|
if (typeof e == "object") {
|
|
@@ -1182,7 +1182,7 @@ function Di(e, t) {
|
|
|
1182
1182
|
var n = Ci(e), r, i = n.length;
|
|
1183
1183
|
for (r = 0; r < i; r++)
|
|
1184
1184
|
this[n[r].unit](e[n[r].unit]);
|
|
1185
|
-
} else if (e = $e(e),
|
|
1185
|
+
} else if (e = $e(e), rt(this[e]))
|
|
1186
1186
|
return this[e](t);
|
|
1187
1187
|
return this;
|
|
1188
1188
|
}
|
|
@@ -1221,11 +1221,11 @@ H("MMMM", function(e, t) {
|
|
|
1221
1221
|
return t.monthsRegex(e);
|
|
1222
1222
|
});
|
|
1223
1223
|
ue(["M", "MM"], function(e, t) {
|
|
1224
|
-
t[
|
|
1224
|
+
t[dt] = re(e) - 1;
|
|
1225
1225
|
});
|
|
1226
1226
|
ue(["MMM", "MMMM"], function(e, t, n, r) {
|
|
1227
1227
|
var i = n._locale.monthsParse(e, r, n._strict);
|
|
1228
|
-
i != null ? t[
|
|
1228
|
+
i != null ? t[dt] = i : se(n).invalidMonth = e;
|
|
1229
1229
|
});
|
|
1230
1230
|
var Ui = "January_February_March_April_May_June_July_August_September_October_November_December".split(
|
|
1231
1231
|
"_"
|
|
@@ -1240,7 +1240,7 @@ function zi(e, t, n) {
|
|
|
1240
1240
|
var r, i, a, u = e.toLocaleLowerCase();
|
|
1241
1241
|
if (!this._monthsParse)
|
|
1242
1242
|
for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], r = 0; r < 12; ++r)
|
|
1243
|
-
a =
|
|
1243
|
+
a = nt([2e3, r]), this._shortMonthsParse[r] = this.monthsShort(
|
|
1244
1244
|
a,
|
|
1245
1245
|
""
|
|
1246
1246
|
).toLocaleLowerCase(), this._longMonthsParse[r] = this.months(a, "").toLocaleLowerCase();
|
|
@@ -1251,7 +1251,7 @@ function Gi(e, t, n) {
|
|
|
1251
1251
|
if (this._monthsParseExact)
|
|
1252
1252
|
return zi.call(this, e, t, n);
|
|
1253
1253
|
for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), r = 0; r < 12; r++) {
|
|
1254
|
-
if (i =
|
|
1254
|
+
if (i = nt([2e3, r]), n && !this._longMonthsParse[r] && (this._longMonthsParse[r] = new RegExp(
|
|
1255
1255
|
"^" + this.months(i, "").replace(".", "") + "$",
|
|
1256
1256
|
"i"
|
|
1257
1257
|
), this._shortMonthsParse[r] = new RegExp(
|
|
@@ -1271,7 +1271,7 @@ function Zr(e, t) {
|
|
|
1271
1271
|
if (typeof t == "string") {
|
|
1272
1272
|
if (/^\d+$/.test(t))
|
|
1273
1273
|
t = re(t);
|
|
1274
|
-
else if (t = e.localeData().monthsParse(t), !
|
|
1274
|
+
else if (t = e.localeData().monthsParse(t), !ft(t))
|
|
1275
1275
|
return e;
|
|
1276
1276
|
}
|
|
1277
1277
|
var n = t, r = e.date();
|
|
@@ -1295,7 +1295,7 @@ function Xr() {
|
|
|
1295
1295
|
}
|
|
1296
1296
|
var t = [], n = [], r = [], i, a, u, f;
|
|
1297
1297
|
for (i = 0; i < 12; i++)
|
|
1298
|
-
a =
|
|
1298
|
+
a = nt([2e3, i]), u = ut(this.monthsShort(a, "")), f = ut(this.months(a, "")), t.push(u), n.push(f), r.push(f), r.push(u);
|
|
1299
1299
|
t.sort(e), n.sort(e), r.sort(e), this._monthsRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
|
|
1300
1300
|
"^(" + n.join("|") + ")",
|
|
1301
1301
|
"i"
|
|
@@ -1325,12 +1325,12 @@ function ea(e, t, n, r, i) {
|
|
|
1325
1325
|
}
|
|
1326
1326
|
function xs(e, t, n) {
|
|
1327
1327
|
var r = Xs(e.year(), t, n), i = Math.floor((e.dayOfYear() - r - 1) / 7) + 1, a, u;
|
|
1328
|
-
return i < 1 ? (u = e.year() - 1, a = i +
|
|
1328
|
+
return i < 1 ? (u = e.year() - 1, a = i + mt(u, t, n)) : i > mt(e.year(), t, n) ? (a = i - mt(e.year(), t, n), u = e.year() + 1) : (u = e.year(), a = i), {
|
|
1329
1329
|
week: a,
|
|
1330
1330
|
year: u
|
|
1331
1331
|
};
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function mt(e, t, n) {
|
|
1334
1334
|
var r = Xs(e, t, n), i = Xs(e + 1, t, n);
|
|
1335
1335
|
return (ps(e) - r + i) / 7;
|
|
1336
1336
|
}
|
|
@@ -1424,7 +1424,7 @@ function ml(e, t, n) {
|
|
|
1424
1424
|
var r, i, a, u = e.toLocaleLowerCase();
|
|
1425
1425
|
if (!this._weekdaysParse)
|
|
1426
1426
|
for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], r = 0; r < 7; ++r)
|
|
1427
|
-
a =
|
|
1427
|
+
a = nt([2e3, 1]).day(r), this._minWeekdaysParse[r] = this.weekdaysMin(
|
|
1428
1428
|
a,
|
|
1429
1429
|
""
|
|
1430
1430
|
).toLocaleLowerCase(), this._shortWeekdaysParse[r] = this.weekdaysShort(
|
|
@@ -1438,7 +1438,7 @@ function fl(e, t, n) {
|
|
|
1438
1438
|
if (this._weekdaysParseExact)
|
|
1439
1439
|
return ml.call(this, e, t, n);
|
|
1440
1440
|
for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), r = 0; r < 7; r++) {
|
|
1441
|
-
if (i =
|
|
1441
|
+
if (i = nt([2e3, 1]).day(r), n && !this._fullWeekdaysParse[r] && (this._fullWeekdaysParse[r] = new RegExp(
|
|
1442
1442
|
"^" + this.weekdays(i, "").replace(".", "\\.?") + "$",
|
|
1443
1443
|
"i"
|
|
1444
1444
|
), this._shortWeekdaysParse[r] = new RegExp(
|
|
@@ -1493,7 +1493,7 @@ function Jn() {
|
|
|
1493
1493
|
}
|
|
1494
1494
|
var t = [], n = [], r = [], i = [], a, u, f, o, l;
|
|
1495
1495
|
for (a = 0; a < 7; a++)
|
|
1496
|
-
u =
|
|
1496
|
+
u = nt([2e3, 1]).day(a), f = ut(this.weekdaysMin(u, "")), o = ut(this.weekdaysShort(u, "")), l = ut(this.weekdays(u, "")), t.push(f), n.push(o), r.push(l), i.push(f), i.push(o), i.push(l);
|
|
1497
1497
|
t.sort(e), n.sort(e), r.sort(e), i.sort(e), this._weekdaysRegex = new RegExp("^(" + i.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
|
|
1498
1498
|
"^(" + r.join("|") + ")",
|
|
1499
1499
|
"i"
|
|
@@ -1515,16 +1515,16 @@ q("H", ["HH", 2], 0, "hour");
|
|
|
1515
1515
|
q("h", ["hh", 2], 0, Xn);
|
|
1516
1516
|
q("k", ["kk", 2], 0, vl);
|
|
1517
1517
|
q("hmm", 0, 0, function() {
|
|
1518
|
-
return "" + Xn.apply(this) +
|
|
1518
|
+
return "" + Xn.apply(this) + tt(this.minutes(), 2);
|
|
1519
1519
|
});
|
|
1520
1520
|
q("hmmss", 0, 0, function() {
|
|
1521
|
-
return "" + Xn.apply(this) +
|
|
1521
|
+
return "" + Xn.apply(this) + tt(this.minutes(), 2) + tt(this.seconds(), 2);
|
|
1522
1522
|
});
|
|
1523
1523
|
q("Hmm", 0, 0, function() {
|
|
1524
|
-
return "" + this.hours() +
|
|
1524
|
+
return "" + this.hours() + tt(this.minutes(), 2);
|
|
1525
1525
|
});
|
|
1526
1526
|
q("Hmmss", 0, 0, function() {
|
|
1527
|
-
return "" + this.hours() +
|
|
1527
|
+
return "" + this.hours() + tt(this.minutes(), 2) + tt(this.seconds(), 2);
|
|
1528
1528
|
});
|
|
1529
1529
|
function sa(e, t) {
|
|
1530
1530
|
q(e, 0, 0, function() {
|
|
@@ -1569,7 +1569,7 @@ ue("hmm", function(e, t, n) {
|
|
|
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[We] = re(e.substr(r, 2)), t[
|
|
1572
|
+
t[Se] = re(e.substr(0, r)), t[We] = re(e.substr(r, 2)), t[ht] = re(e.substr(i)), se(n).bigHour = !0;
|
|
1573
1573
|
});
|
|
1574
1574
|
ue("Hmm", function(e, t, n) {
|
|
1575
1575
|
var r = e.length - 2;
|
|
@@ -1577,7 +1577,7 @@ ue("Hmm", function(e, t, n) {
|
|
|
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[We] = re(e.substr(r, 2)), t[
|
|
1580
|
+
t[Se] = re(e.substr(0, r)), t[We] = re(e.substr(r, 2)), t[ht] = re(e.substr(i));
|
|
1581
1581
|
});
|
|
1582
1582
|
function _l(e) {
|
|
1583
1583
|
return (e + "").toLowerCase().charAt(0) === "p";
|
|
@@ -1639,7 +1639,7 @@ function pn(e) {
|
|
|
1639
1639
|
}
|
|
1640
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
|
}
|
|
@@ -1675,7 +1675,7 @@ function Ol(e, t) {
|
|
|
1675
1675
|
ge[e] != null && (ge[e].parentLocale != null ? (ge[e] = ge[e].parentLocale, e === Nt() && Nt(e)) : ge[e] != null && delete ge[e]);
|
|
1676
1676
|
return ge[e];
|
|
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;
|
|
@@ -1691,7 +1691,7 @@ function Ml() {
|
|
|
1691
1691
|
}
|
|
1692
1692
|
function tr(e) {
|
|
1693
1693
|
var t, n = e._a;
|
|
1694
|
-
return n && se(e).overflow === -2 && (t = n[
|
|
1694
|
+
return n && se(e).overflow === -2 && (t = n[dt] < 0 || n[dt] > 11 ? dt : n[et] < 1 || n[et] > Qn(n[Ce], n[dt]) ? et : n[Se] < 0 || n[Se] > 24 || n[Se] === 24 && (n[We] !== 0 || n[ht] !== 0 || n[Ct] !== 0) ? Se : n[We] < 0 || n[We] > 59 ? We : n[ht] < 0 || n[ht] > 59 ? ht : n[Ct] < 0 || n[Ct] > 999 ? Ct : -1, se(e)._overflowDayOfYear && (t < Ce || t > et) && (t = et), se(e)._overflowWeeks && t === -1 && (t = Li), se(e)._overflowWeekday && t === -1 && (t = ki), se(e).overflow = t), e;
|
|
1695
1695
|
}
|
|
1696
1696
|
var Al = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, El = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, Rl = /Z|[+-]\d\d(?::?\d\d)?/, zs = [
|
|
1697
1697
|
["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
|
|
@@ -1856,11 +1856,11 @@ function Bl(e) {
|
|
|
1856
1856
|
function sr(e) {
|
|
1857
1857
|
var t, n, r = [], i, a, u;
|
|
1858
1858
|
if (!e._d) {
|
|
1859
|
-
for (i = Bl(e), e._w && e._a[
|
|
1859
|
+
for (i = Bl(e), e._w && e._a[et] == null && e._a[dt] == null && Wl(e), e._dayOfYear != null && (u = Ut(e._a[Ce], i[Ce]), (e._dayOfYear > ps(u) || e._dayOfYear === 0) && (se(e)._overflowDayOfYear = !0), n = gs(u, 0, e._dayOfYear), e._a[dt] = n.getUTCMonth(), e._a[et] = n.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
|
|
1860
1860
|
e._a[t] = r[t] = i[t];
|
|
1861
1861
|
for (; t < 7; t++)
|
|
1862
1862
|
e._a[t] = r[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
|
|
1863
|
-
e._a[Se] === 24 && e._a[We] === 0 && e._a[
|
|
1863
|
+
e._a[Se] === 24 && e._a[We] === 0 && e._a[ht] === 0 && e._a[Ct] === 0 && (e._nextDay = !0, e._a[Se] = 0), e._d = (e._useUTC ? gs : Qi).apply(
|
|
1864
1864
|
null,
|
|
1865
1865
|
r
|
|
1866
1866
|
), a = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[Se] = 24), e._w && typeof e._w.d < "u" && e._w.d !== a && (se(e).weekdayMismatch = !0);
|
|
@@ -1872,7 +1872,7 @@ function Wl(e) {
|
|
|
1872
1872
|
t.GG,
|
|
1873
1873
|
e._a[Ce],
|
|
1874
1874
|
xs(fe(), 1, 4).year
|
|
1875
|
-
), r = Ut(t.W, 1), i = Ut(t.E, 1), (i < 1 || i > 7) && (o = !0)) : (a = e._locale._week.dow, u = e._locale._week.doy, l = xs(fe(), a, u), n = Ut(t.gg, e._a[Ce], l.year), r = Ut(t.w, l.week), t.d != null ? (i = t.d, (i < 0 || i > 6) && (o = !0)) : t.e != null ? (i = t.e + a, (t.e < 0 || t.e > 6) && (o = !0)) : i = a), r < 1 || r >
|
|
1875
|
+
), r = Ut(t.W, 1), i = Ut(t.E, 1), (i < 1 || i > 7) && (o = !0)) : (a = e._locale._week.dow, u = e._locale._week.doy, l = xs(fe(), a, u), n = Ut(t.gg, e._a[Ce], l.year), r = Ut(t.w, l.week), t.d != null ? (i = t.d, (i < 0 || i > 6) && (o = !0)) : t.e != null ? (i = t.e + a, (t.e < 0 || t.e > 6) && (o = !0)) : i = a), r < 1 || r > mt(n, a, u) ? se(e)._overflowWeeks = !0 : o != null ? se(e)._overflowWeekday = !0 : (f = ea(n, r, i, a, u), e._a[Ce] = f.year, e._dayOfYear = f.dayOfYear);
|
|
1876
1876
|
}
|
|
1877
1877
|
L.ISO_8601 = function() {
|
|
1878
1878
|
};
|
|
@@ -1930,13 +1930,13 @@ function ql(e) {
|
|
|
1930
1930
|
}
|
|
1931
1931
|
function la(e) {
|
|
1932
1932
|
var t = e._i, n = e._f;
|
|
1933
|
-
return e._locale = e._locale ||
|
|
1933
|
+
return e._locale = e._locale || pt(e._l), t === null || n === void 0 && t === "" ? on({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), Ge(t) ? new bs(tr(t)) : (_s(t) ? e._d = t : ze(n) ? Gl(e) : n ? nr(e) : Kl(e), Hn(e) || (e._d = null), e));
|
|
1934
1934
|
}
|
|
1935
1935
|
function Kl(e) {
|
|
1936
1936
|
var t = e._i;
|
|
1937
1937
|
Re(t) ? e._d = new Date(L.now()) : _s(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? Hl(e) : ze(t) ? (e._a = Yr(t.slice(0), function(n) {
|
|
1938
1938
|
return parseInt(n, 10);
|
|
1939
|
-
}), sr(e)) : Ot(t) ? Vl(e) :
|
|
1939
|
+
}), sr(e)) : Ot(t) ? Vl(e) : ft(t) ? e._d = new Date(t) : L.createFromInputFallback(e);
|
|
1940
1940
|
}
|
|
1941
1941
|
function oa(e, t, n, r, i) {
|
|
1942
1942
|
var a = {};
|
|
@@ -2004,13 +2004,13 @@ function so() {
|
|
|
2004
2004
|
return this._isValid;
|
|
2005
2005
|
}
|
|
2006
2006
|
function no() {
|
|
2007
|
-
return
|
|
2007
|
+
return qe(NaN);
|
|
2008
2008
|
}
|
|
2009
2009
|
function yn(e) {
|
|
2010
2010
|
var t = Gn(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 = to(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;
|
|
@@ -2027,7 +2027,7 @@ function ro(e, t, n) {
|
|
|
2027
2027
|
function da(e, t) {
|
|
2028
2028
|
q(e, 0, 0, function() {
|
|
2029
2029
|
var n = this.utcOffset(), r = "+";
|
|
2030
|
-
return n < 0 && (n = -n, r = "-"), r +
|
|
2030
|
+
return n < 0 && (n = -n, r = "-"), r + tt(~~(n / 60), 2) + t + tt(~~n % 60, 2);
|
|
2031
2031
|
});
|
|
2032
2032
|
}
|
|
2033
2033
|
da("Z", ":");
|
|
@@ -2062,7 +2062,7 @@ function io(e, t, n) {
|
|
|
2062
2062
|
} else Math.abs(e) < 16 && !n && (e = e * 60);
|
|
2063
2063
|
return !this._isUTC && t && (i = Pn(this)), this._offset = e, this._isUTC = !0, i != null && this.add(i, "m"), r !== e && (!t || this._changeInProgress ? ma(
|
|
2064
2064
|
this,
|
|
2065
|
-
|
|
2065
|
+
qe(e - r, "m"),
|
|
2066
2066
|
1,
|
|
2067
2067
|
!1
|
|
2068
2068
|
) : this._changeInProgress || (this._changeInProgress = !0, L.updateOffset(this, !0), this._changeInProgress = null)), this;
|
|
@@ -2097,7 +2097,7 @@ function fo() {
|
|
|
2097
2097
|
if (!Re(this._isDSTShifted))
|
|
2098
2098
|
return this._isDSTShifted;
|
|
2099
2099
|
var e = {}, t;
|
|
2100
|
-
return Bn(e, this), e = la(e), e._a ? (t = e._isUTC ?
|
|
2100
|
+
return Bn(e, this), e = la(e), e._a ? (t = e._isUTC ? nt(e._a) : fe(e._a), this._isDSTShifted = this.isValid() && ro(e._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
|
|
2101
2101
|
}
|
|
2102
2102
|
function po() {
|
|
2103
2103
|
return this.isValid() ? !this._isUTC : !1;
|
|
@@ -2109,18 +2109,18 @@ function ha() {
|
|
|
2109
2109
|
return this.isValid() ? this._isUTC && this._offset === 0 : !1;
|
|
2110
2110
|
}
|
|
2111
2111
|
var go = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, xo = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
|
2112
|
-
function
|
|
2112
|
+
function qe(e, t) {
|
|
2113
2113
|
var n = e, r = null, i, a, u;
|
|
2114
2114
|
return Ks(e) ? n = {
|
|
2115
2115
|
ms: e._milliseconds,
|
|
2116
2116
|
d: e._days,
|
|
2117
2117
|
M: e._months
|
|
2118
|
-
} :
|
|
2118
|
+
} : ft(e) || !isNaN(+e) ? (n = {}, t ? n[t] = +e : n.milliseconds = +e) : (r = go.exec(e)) ? (i = r[1] === "-" ? -1 : 1, n = {
|
|
2119
2119
|
y: 0,
|
|
2120
|
-
d: re(r[
|
|
2120
|
+
d: re(r[et]) * i,
|
|
2121
2121
|
h: re(r[Se]) * i,
|
|
2122
2122
|
m: re(r[We]) * i,
|
|
2123
|
-
s: re(r[
|
|
2123
|
+
s: re(r[ht]) * i,
|
|
2124
2124
|
ms: re(kn(r[Ct] * 1e3)) * i
|
|
2125
2125
|
// the millisecond decimal point is included in the match
|
|
2126
2126
|
}) : (r = xo.exec(e)) ? (i = r[1] === "-" ? -1 : 1, n = {
|
|
@@ -2136,8 +2136,8 @@ function Ve(e, t) {
|
|
|
2136
2136
|
fe(n.to)
|
|
2137
2137
|
), n = {}, n.ms = u.milliseconds, n.M = u.months), a = new yn(n), Ks(e) && oe(e, "_locale") && (a._locale = e._locale), Ks(e) && oe(e, "_isValid") && (a._isValid = e._isValid), a;
|
|
2138
2138
|
}
|
|
2139
|
-
|
|
2140
|
-
|
|
2139
|
+
qe.fn = yn.prototype;
|
|
2140
|
+
qe.invalid = no;
|
|
2141
2141
|
function wt(e, t) {
|
|
2142
2142
|
var n = e && parseFloat(e.replace(",", "."));
|
|
2143
2143
|
return (isNaN(n) ? 0 : n) * t;
|
|
@@ -2156,7 +2156,7 @@ function ua(e, t) {
|
|
|
2156
2156
|
return r !== null && !isNaN(+r) && ($r(
|
|
2157
2157
|
t,
|
|
2158
2158
|
"moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
|
|
2159
|
-
), a = n, n = r, r = a), i =
|
|
2159
|
+
), a = n, n = r, r = a), i = qe(n, r), ma(this, i, e), this;
|
|
2160
2160
|
};
|
|
2161
2161
|
}
|
|
2162
2162
|
function ma(e, t, n, r) {
|
|
@@ -2168,7 +2168,7 @@ function fa(e) {
|
|
|
2168
2168
|
return typeof e == "string" || e instanceof String;
|
|
2169
2169
|
}
|
|
2170
2170
|
function _o(e) {
|
|
2171
|
-
return Ge(e) || _s(e) || fa(e) ||
|
|
2171
|
+
return Ge(e) || _s(e) || fa(e) || ft(e) || So(e) || bo(e) || e === null || e === void 0;
|
|
2172
2172
|
}
|
|
2173
2173
|
function bo(e) {
|
|
2174
2174
|
var t = Ot(e) && !$n(e), n = !1, r = [
|
|
@@ -2204,7 +2204,7 @@ function bo(e) {
|
|
|
2204
2204
|
function So(e) {
|
|
2205
2205
|
var t = ze(e), n = !1;
|
|
2206
2206
|
return t && (n = e.filter(function(r) {
|
|
2207
|
-
return !
|
|
2207
|
+
return !ft(r) && fa(e);
|
|
2208
2208
|
}).length === 0), t && n;
|
|
2209
2209
|
}
|
|
2210
2210
|
function To(e) {
|
|
@@ -2226,7 +2226,7 @@ function wo(e, t) {
|
|
|
2226
2226
|
}
|
|
2227
2227
|
function Io(e, t) {
|
|
2228
2228
|
arguments.length === 1 && (arguments[0] ? _o(arguments[0]) ? (e = arguments[0], t = void 0) : To(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
|
|
2229
|
-
var n = e || fe(), r = ar(n, this).startOf("day"), i = L.calendarFormat(this, r) || "sameElse", a = t && (
|
|
2229
|
+
var n = e || fe(), r = ar(n, this).startOf("day"), i = L.calendarFormat(this, r) || "sameElse", a = t && (rt(t[i]) ? t[i].call(this, n) : t[i]);
|
|
2230
2230
|
return this.format(
|
|
2231
2231
|
a || this.localeData().calendar(i, this, fe(n))
|
|
2232
2232
|
);
|
|
@@ -2315,7 +2315,7 @@ function Fo(e) {
|
|
|
2315
2315
|
return n.year() < 0 || n.year() > 9999 ? qs(
|
|
2316
2316
|
n,
|
|
2317
2317
|
t ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
|
|
2318
|
-
) :
|
|
2318
|
+
) : rt(Date.prototype.toISOString) ? t ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", qs(n, "Z")) : qs(
|
|
2319
2319
|
n,
|
|
2320
2320
|
t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
|
|
2321
2321
|
);
|
|
@@ -2332,20 +2332,20 @@ function Yo(e) {
|
|
|
2332
2332
|
return this.localeData().postformat(t);
|
|
2333
2333
|
}
|
|
2334
2334
|
function Uo(e, t) {
|
|
2335
|
-
return this.isValid() && (Ge(e) && e.isValid() || fe(e).isValid()) ?
|
|
2335
|
+
return this.isValid() && (Ge(e) && e.isValid() || fe(e).isValid()) ? qe({ to: this, from: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
2336
2336
|
}
|
|
2337
2337
|
function $o(e) {
|
|
2338
2338
|
return this.from(fe(), e);
|
|
2339
2339
|
}
|
|
2340
2340
|
function Ho(e, t) {
|
|
2341
|
-
return this.isValid() && (Ge(e) && e.isValid() || fe(e).isValid()) ?
|
|
2341
|
+
return this.isValid() && (Ge(e) && e.isValid() || fe(e).isValid()) ? qe({ from: this, to: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
2342
2342
|
}
|
|
2343
2343
|
function Bo(e) {
|
|
2344
2344
|
return this.to(fe(), e);
|
|
2345
2345
|
}
|
|
2346
2346
|
function pa(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 ya = Ue(
|
|
2351
2351
|
"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
|
|
@@ -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 sc(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":
|
|
@@ -2651,7 +2651,7 @@ function fc(e, t) {
|
|
|
2651
2651
|
function lr() {
|
|
2652
2652
|
var e = [], t = [], n = [], r = [], i, a, u, f, o, l = this.eras();
|
|
2653
2653
|
for (i = 0, a = l.length; i < a; ++i)
|
|
2654
|
-
u =
|
|
2654
|
+
u = ut(l[i].name), f = ut(l[i].abbr), o = ut(l[i].narrow), t.push(u), e.push(f), n.push(o), r.push(u), r.push(f), r.push(o);
|
|
2655
2655
|
this._erasRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + t.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + e.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
|
|
2656
2656
|
"^(" + n.join("|") + ")",
|
|
2657
2657
|
"i"
|
|
@@ -2708,22 +2708,22 @@ function yc(e) {
|
|
|
2708
2708
|
);
|
|
2709
2709
|
}
|
|
2710
2710
|
function gc() {
|
|
2711
|
-
return
|
|
2711
|
+
return mt(this.year(), 1, 4);
|
|
2712
2712
|
}
|
|
2713
2713
|
function xc() {
|
|
2714
|
-
return
|
|
2714
|
+
return mt(this.isoWeekYear(), 1, 4);
|
|
2715
2715
|
}
|
|
2716
2716
|
function Nc() {
|
|
2717
2717
|
var e = this.localeData()._week;
|
|
2718
|
-
return
|
|
2718
|
+
return mt(this.year(), e.dow, e.doy);
|
|
2719
2719
|
}
|
|
2720
2720
|
function jc() {
|
|
2721
2721
|
var e = this.localeData()._week;
|
|
2722
|
-
return
|
|
2722
|
+
return mt(this.weekYear(), e.dow, e.doy);
|
|
2723
2723
|
}
|
|
2724
2724
|
function va(e, t, n, r, i) {
|
|
2725
2725
|
var a;
|
|
2726
|
-
return e == null ? xs(this, r, i).year : (a =
|
|
2726
|
+
return e == null ? xs(this, r, i).year : (a = mt(e, r, i), t > a && (t = a), vc.call(this, e, t, n, r, i));
|
|
2727
2727
|
}
|
|
2728
2728
|
function vc(e, t, n, r, i) {
|
|
2729
2729
|
var a = ea(e, t, n, r, i), u = gs(a.year, 0, a.dayOfYear);
|
|
@@ -2732,7 +2732,7 @@ function vc(e, t, n, r, i) {
|
|
|
2732
2732
|
q("Q", 0, "Qo", "quarter");
|
|
2733
2733
|
H("Q", Br);
|
|
2734
2734
|
ue("Q", function(e, t) {
|
|
2735
|
-
t[
|
|
2735
|
+
t[dt] = (re(e) - 1) * 3;
|
|
2736
2736
|
});
|
|
2737
2737
|
function _c(e) {
|
|
2738
2738
|
return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
|
|
@@ -2743,9 +2743,9 @@ H("DD", pe, Fe);
|
|
|
2743
2743
|
H("Do", function(e, t) {
|
|
2744
2744
|
return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
|
|
2745
2745
|
});
|
|
2746
|
-
ue(["D", "DD"],
|
|
2746
|
+
ue(["D", "DD"], et);
|
|
2747
2747
|
ue("Do", function(e, t) {
|
|
2748
|
-
t[
|
|
2748
|
+
t[et] = re(e.match(pe)[0]);
|
|
2749
2749
|
});
|
|
2750
2750
|
var _a = Qt("Date", !0);
|
|
2751
2751
|
q("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
|
|
@@ -2768,7 +2768,7 @@ var Sc = Qt("Minutes", !1);
|
|
|
2768
2768
|
q("s", ["ss", 2], 0, "second");
|
|
2769
2769
|
H("s", pe, Kn);
|
|
2770
2770
|
H("ss", pe, Fe);
|
|
2771
|
-
ue(["s", "ss"],
|
|
2771
|
+
ue(["s", "ss"], ht);
|
|
2772
2772
|
var Tc = Qt("Seconds", !1);
|
|
2773
2773
|
q("S", 0, 0, function() {
|
|
2774
2774
|
return ~~(this.millisecond() / 100);
|
|
@@ -2958,11 +2958,11 @@ ce.weekdaysMinRegex = jl;
|
|
|
2958
2958
|
ce.isPM = _l;
|
|
2959
2959
|
ce.meridiem = Tl;
|
|
2960
2960
|
function sn(e, t, n, r) {
|
|
2961
|
-
var i =
|
|
2961
|
+
var i = pt(), a = nt().set(r, t);
|
|
2962
2962
|
return i[n](a, e);
|
|
2963
2963
|
}
|
|
2964
2964
|
function Ta(e, t, n) {
|
|
2965
|
-
if (
|
|
2965
|
+
if (ft(e) && (t = e, e = void 0), e = e || "", t != null)
|
|
2966
2966
|
return sn(e, t, n, "month");
|
|
2967
2967
|
var r, i = [];
|
|
2968
2968
|
for (r = 0; r < 12; r++)
|
|
@@ -2970,8 +2970,8 @@ function Ta(e, t, n) {
|
|
|
2970
2970
|
return i;
|
|
2971
2971
|
}
|
|
2972
2972
|
function or(e, t, n, r) {
|
|
2973
|
-
typeof e == "boolean" ? (
|
|
2974
|
-
var i =
|
|
2973
|
+
typeof e == "boolean" ? (ft(t) && (n = t, t = void 0), t = t || "") : (t = e, n = t, e = !1, ft(t) && (n = t, t = void 0), t = t || "");
|
|
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++)
|
|
@@ -3024,15 +3024,15 @@ L.lang = Ue(
|
|
|
3024
3024
|
);
|
|
3025
3025
|
L.langData = Ue(
|
|
3026
3026
|
"moment.langData is deprecated. Use moment.localeData instead.",
|
|
3027
|
-
|
|
3027
|
+
pt
|
|
3028
3028
|
);
|
|
3029
|
-
var
|
|
3029
|
+
var ot = Math.abs;
|
|
3030
3030
|
function Pc() {
|
|
3031
3031
|
var e = this._data;
|
|
3032
|
-
return this._milliseconds =
|
|
3032
|
+
return this._milliseconds = ot(this._milliseconds), this._days = ot(this._days), this._months = ot(this._months), e.milliseconds = ot(e.milliseconds), e.seconds = ot(e.seconds), e.minutes = ot(e.minutes), e.hours = ot(e.hours), e.months = ot(e.months), e.years = ot(e.years), this;
|
|
3033
3033
|
}
|
|
3034
3034
|
function wa(e, t, n, r) {
|
|
3035
|
-
var i =
|
|
3035
|
+
var i = qe(t, n);
|
|
3036
3036
|
return e._milliseconds += r * i._milliseconds, e._days += r * i._days, e._months += r * i._months, e._bubble();
|
|
3037
3037
|
}
|
|
3038
3038
|
function Fc(e, t) {
|
|
@@ -3086,14 +3086,14 @@ function Uc(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 Ca =
|
|
3094
|
+
var Ca = yt("ms"), $c = yt("s"), Hc = yt("m"), Bc = yt("h"), Wc = yt("d"), zc = yt("w"), Gc = yt("M"), Vc = yt("Q"), qc = yt("y"), Kc = Ca;
|
|
3095
3095
|
function Qc() {
|
|
3096
|
-
return
|
|
3096
|
+
return qe(this);
|
|
3097
3097
|
}
|
|
3098
3098
|
function Zc(e) {
|
|
3099
3099
|
return e = $e(e), this.isValid() ? this[e + "s"]() : NaN;
|
|
@@ -3107,7 +3107,7 @@ var Jc = At("milliseconds"), Xc = At("seconds"), ed = At("minutes"), td = At("ho
|
|
|
3107
3107
|
function ad() {
|
|
3108
3108
|
return Ye(this.days() / 7);
|
|
3109
3109
|
}
|
|
3110
|
-
var
|
|
3110
|
+
var ct = Math.round, $t = {
|
|
3111
3111
|
ss: 44,
|
|
3112
3112
|
// a few seconds to seconds
|
|
3113
3113
|
s: 45,
|
|
@@ -3127,11 +3127,11 @@ function id(e, t, n, r, i) {
|
|
|
3127
3127
|
return i.relativeTime(t || 1, !!n, e, r);
|
|
3128
3128
|
}
|
|
3129
3129
|
function ld(e, t, n, r) {
|
|
3130
|
-
var i =
|
|
3130
|
+
var i = qe(e).abs(), a = ct(i.as("s")), u = ct(i.as("m")), f = ct(i.as("h")), o = ct(i.as("d")), l = ct(i.as("M")), c = ct(i.as("w")), h = ct(i.as("y")), p = a <= n.ss && ["s", a] || a < n.s && ["ss", a] || u <= 1 && ["m"] || u < n.m && ["mm", u] || f <= 1 && ["h"] || f < n.h && ["hh", f] || o <= 1 && ["d"] || o < n.d && ["dd", o];
|
|
3131
3131
|
return n.w != null && (p = p || c <= 1 && ["w"] || c < n.w && ["ww", c]), p = p || l <= 1 && ["M"] || l < n.M && ["MM", l] || h <= 1 && ["y"] || ["yy", h], p[2] = t, p[3] = +e > 0, p[4] = r, id.apply(null, p);
|
|
3132
3132
|
}
|
|
3133
3133
|
function od(e) {
|
|
3134
|
-
return e === void 0 ?
|
|
3134
|
+
return e === void 0 ? ct : typeof e == "function" ? (ct = e, !0) : !1;
|
|
3135
3135
|
}
|
|
3136
3136
|
function cd(e, t) {
|
|
3137
3137
|
return $t[e] === void 0 ? !1 : t === void 0 ? $t[e] : ($t[e] = t, e === "s" && ($t.ss = t - 1), !0);
|
|
@@ -3207,17 +3207,17 @@ L.fn = A;
|
|
|
3207
3207
|
L.min = Jl;
|
|
3208
3208
|
L.max = Xl;
|
|
3209
3209
|
L.now = eo;
|
|
3210
|
-
L.utc =
|
|
3210
|
+
L.utc = nt;
|
|
3211
3211
|
L.unix = Oc;
|
|
3212
3212
|
L.months = Ac;
|
|
3213
3213
|
L.isDate = _s;
|
|
3214
3214
|
L.locale = Nt;
|
|
3215
3215
|
L.invalid = on;
|
|
3216
|
-
L.duration =
|
|
3216
|
+
L.duration = qe;
|
|
3217
3217
|
L.isMoment = Ge;
|
|
3218
3218
|
L.weekdays = Rc;
|
|
3219
3219
|
L.parseZone = Mc;
|
|
3220
|
-
L.localeData =
|
|
3220
|
+
L.localeData = pt;
|
|
3221
3221
|
L.isDuration = Ks;
|
|
3222
3222
|
L.monthsShort = Ec;
|
|
3223
3223
|
L.weekdaysMin = kc;
|
|
@@ -3697,11 +3697,11 @@ function fd() {
|
|
|
3697
3697
|
}(Zs)), Zs.exports;
|
|
3698
3698
|
}
|
|
3699
3699
|
var pd = fd();
|
|
3700
|
-
const nn = /* @__PURE__ */ Fr(pd), _e = (e) => +(Math.round(parseFloat(e) + "e+3") + "e-3"),
|
|
3700
|
+
const nn = /* @__PURE__ */ Fr(pd), _e = (e) => +(Math.round(parseFloat(e) + "e+3") + "e-3"), Xe = (e) => +(Math.round(parseFloat(e) + "e+2") + "e-2"), yd = /^\d+(\.\d{1,2})?$/, gd = /^\d+(\.\d{1,3})?$/, xd = {
|
|
3701
3701
|
_2: {
|
|
3702
3702
|
reg: yd,
|
|
3703
3703
|
message: "Only Positive value upto 2 decimals is allowed",
|
|
3704
|
-
roundUpto:
|
|
3704
|
+
roundUpto: Xe
|
|
3705
3705
|
},
|
|
3706
3706
|
_3: {
|
|
3707
3707
|
reg: gd,
|
|
@@ -3951,7 +3951,7 @@ const _d = (e) => ({
|
|
|
3951
3951
|
for (let f in e.paymentModes)
|
|
3952
3952
|
!r[f] && e.paymentModes[f] && (u = a[f], n.push({
|
|
3953
3953
|
displayName: u ? u.displayName : Be(f.replace("_", " ")),
|
|
3954
|
-
value:
|
|
3954
|
+
value: Xe(e.paymentModes[f])
|
|
3955
3955
|
}));
|
|
3956
3956
|
return n;
|
|
3957
3957
|
}, wd = (e, t) => e > 0 && t > 0 ? e / t : 0;
|
|
@@ -4189,7 +4189,7 @@ const Gs = (e, t, n) => {
|
|
|
4189
4189
|
...x,
|
|
4190
4190
|
instruction: x.isUrgent && x.instruction ? `(URGENT -${x.instruction})` : x.instruction ? `(${x.instruction})` : x.isUrgent ? "(URGENT)" : null
|
|
4191
4191
|
}, D = !1, x.status === r && ((a = l.stations) != null && a.length ? ($ = hd(l.stations), $[x.station] && (D = !0)) : D = !0), D && x.kotId && x.station && (E = x.station.split("::")[1], k += x.qty, w[`${E}/${x.kotId}`] ? w[`${E}/${x.kotId}`].push(x) : w[`${E}/${x.kotId}`] = [x]);
|
|
4192
|
-
Object.keys(w).length && (S.services = w, S.totalQty =
|
|
4192
|
+
Object.keys(w).length && (S.services = w, S.totalQty = Xe(k), o.push({
|
|
4193
4193
|
printer: f,
|
|
4194
4194
|
paperSize: u,
|
|
4195
4195
|
obj: S
|
|
@@ -4277,7 +4277,7 @@ const Gs = (e, t, n) => {
|
|
|
4277
4277
|
if (r != null && r.menuWiseSales) {
|
|
4278
4278
|
const $ = r.menuWiseSales;
|
|
4279
4279
|
for (const k in $)
|
|
4280
|
-
k.endsWith("collection") ? l[fs(k)] =
|
|
4280
|
+
k.endsWith("collection") ? l[fs(k)] = Xe($[k]) : l[fs(k)] = $[k];
|
|
4281
4281
|
}
|
|
4282
4282
|
if (r.swiggy_aggregator && (l.Swiggy = r.swiggy_aggregator, l.Swiggy_collection = r.swiggy_collection), r.zomato_aggregator && (l.Zomato = r.zomato_aggregator, l.Zomato_collection = r.zomato_collection), r.itemTypeList && ((w = Object.keys(r.itemTypeList)) != null && w.length))
|
|
4283
4283
|
for (let $ in r.itemTypeList)
|
|
@@ -4286,7 +4286,7 @@ const Gs = (e, t, n) => {
|
|
|
4286
4286
|
return f.toDate !== f.fromDate && (E = `${Dn(f.fromDate)} - ${Dn(f.toDate)}`), {
|
|
4287
4287
|
salesCollection: c ? {
|
|
4288
4288
|
...r,
|
|
4289
|
-
totalCollection:
|
|
4289
|
+
totalCollection: Xe(r.totalCollection),
|
|
4290
4290
|
totalOrders: r.totalOrders,
|
|
4291
4291
|
online_aggregator: r.aggregator,
|
|
4292
4292
|
zomato_aggregator: r.zomato_aggregator,
|
|
@@ -4297,13 +4297,13 @@ const Gs = (e, t, n) => {
|
|
|
4297
4297
|
itemTypes: o
|
|
4298
4298
|
} : void 0,
|
|
4299
4299
|
todayCollection: Td(i, e.paymentModes),
|
|
4300
|
-
totalCollection:
|
|
4300
|
+
totalCollection: Xe(i.totalCollection),
|
|
4301
4301
|
averageCollection: {
|
|
4302
4302
|
avgTableTime: v,
|
|
4303
4303
|
avgorderValue: wd(r.totalCollection, r.totalOrders).toFixed(2),
|
|
4304
|
-
todayExpense: a && ((D = a.DEBIT) != null && D.total) ?
|
|
4305
|
-
totalDiscountAmt: r && r.totalDiscountAmt ?
|
|
4306
|
-
totalBalanceAmt: r && r.totalBalanceAmt ?
|
|
4304
|
+
todayExpense: a && ((D = a.DEBIT) != null && D.total) ? Xe(a.DEBIT.total) : 0,
|
|
4305
|
+
totalDiscountAmt: r && r.totalDiscountAmt ? Xe(r.totalDiscountAmt) : 0,
|
|
4306
|
+
totalBalanceAmt: r && r.totalBalanceAmt ? Xe(r.totalBalanceAmt) : 0,
|
|
4307
4307
|
dailyExpanse: a,
|
|
4308
4308
|
noOfGuest: r.noOfGuest,
|
|
4309
4309
|
avgPerCover: r.avgPerCover,
|
|
@@ -4315,7 +4315,7 @@ const Gs = (e, t, n) => {
|
|
|
4315
4315
|
selectedDate: E,
|
|
4316
4316
|
id: Math.random(),
|
|
4317
4317
|
otherFields: {
|
|
4318
|
-
salesCollection: i.salesCollection ?
|
|
4318
|
+
salesCollection: i.salesCollection ? Xe(i.salesCollection) : 0,
|
|
4319
4319
|
outstandingAmt: i.outstandingAmt,
|
|
4320
4320
|
totalDiscountAmt: r.totalDiscountAmt,
|
|
4321
4321
|
discountList: r.discountList,
|
|
@@ -4365,7 +4365,7 @@ const Gs = (e, t, n) => {
|
|
|
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
4367
|
J.services.forEach(async (G, de) => {
|
|
4368
|
-
var
|
|
4368
|
+
var Ke, Qe;
|
|
4369
4369
|
let W = "kitchen", X = e.tableName ? e.tableName : e.orderFrom;
|
|
4370
4370
|
W && (f[W] || (f[W] = {}, f[W].station = W, f[W].services = [], f[W].tableName = X, f[W].customerName = e.name, f[W].time = L.unix(e.timestamp).format("DD-MM-YYYY hh:mm a"), f[W].type = e.orderFrom, f[W].orderId = e.orderId, f[W].instruction = e.instruction, f[W].totalQty = 0, f[W].tokenId = e.tokenId, f[W].orderSource = e.orderSource, f[W].aggregatorOrderId = e.externalOrderId, f[W].otp = e.otp, f[W].paymentState = e.paymentState, f[W].discountAmt = c, f[W].otherCharges = e.otherCharges, f[W].taxAmt = e.taxAmt, f[W].customFeilds = l, f[W].curr = t.curr ?? "INR", f[W].zomatoInstant = x), f[W] ? (o = {
|
|
4371
4371
|
serviceName: G.serviceName,
|
|
@@ -4374,7 +4374,7 @@ const Gs = (e, t, n) => {
|
|
|
4374
4374
|
subOrderId: J.subOrderId,
|
|
4375
4375
|
isUrgent: G.isUrgent,
|
|
4376
4376
|
index: de
|
|
4377
|
-
}, (
|
|
4377
|
+
}, (Ke = G.addons) != null && Ke.length && (o.addons = G.addons), f[W].services.push(o), f[W].totalQty += G.qty) : (f[W] = [], f[W].services.push({
|
|
4378
4378
|
serviceName: G.serviceName,
|
|
4379
4379
|
qty: G.qty,
|
|
4380
4380
|
instruction: G.instruction ? G.instruction : "",
|
|
@@ -4387,7 +4387,7 @@ const Gs = (e, t, n) => {
|
|
|
4387
4387
|
customerInfo: ne,
|
|
4388
4388
|
gst: D,
|
|
4389
4389
|
curr: te
|
|
4390
|
-
}, f[W].domain = a.siteURL, f[W].paymentMethods = a.paymentMode ? ie.paymentMethods : null, f[W].companyInfo.companyName = a.companyName, f[W].companyInfo.companyEmail = a.email, f[W].companyInfo.companyAddress = a.address, f[W].companyInfo.companyContact = a.mobile, f[W].tokenId = a.token ? ie.tokenId : null, a.isPayQR && a.upiId && a.upiId !== "" && (ie.upiId = a.upiId), f[W].gstNo = a.gst ? ie.gst : null, f[W].footerMessage = a.footerMessage, f[W].orderFrom = (
|
|
4390
|
+
}, f[W].domain = a.siteURL, f[W].paymentMethods = a.paymentMode ? ie.paymentMethods : null, f[W].companyInfo.companyName = a.companyName, f[W].companyInfo.companyEmail = a.email, f[W].companyInfo.companyAddress = a.address, f[W].companyInfo.companyContact = a.mobile, f[W].tokenId = a.token ? ie.tokenId : null, a.isPayQR && a.upiId && a.upiId !== "" && (ie.upiId = a.upiId), f[W].gstNo = a.gst ? ie.gst : null, f[W].footerMessage = a.footerMessage, f[W].orderFrom = (Qe = e.subOrderFrom) == null ? void 0 : Qe.toUpperCase(), f[W].fssai = t.fssai, f[W].vatNo = t.vatNo, f[W].printOperatorInfo = a.printOperatorInfo === null || a.printOperatorInfo === !0, f[W].disabledPoweredBy = t.disabledPoweredBy === !0, f[W].printTime = L().format("DD-MM-YYYY hh:mm A"), f[W].printedBy = u.userRole == "admin" ? "Admin" : u.name, e.deliveryTimestamp && (f[W].deliveryTimestamp = L.unix(e.deliveryTimestamp).format("DD-MM-YYYY hh:mm A")), f[W].itemInstructionOnBill = a.itemInstructionOnBill, f[W] = {
|
|
4391
4391
|
...f[W],
|
|
4392
4392
|
companyLogo: be,
|
|
4393
4393
|
companyQrCode: Q
|
|
@@ -4520,30 +4520,30 @@ const Gs = (e, t, n) => {
|
|
|
4520
4520
|
t.enabledOutstandingOnPay && ((c = e.custoutStandingData) != null && c.balanceAmt) && (X.custoutStandingData = {
|
|
4521
4521
|
balanceAmt: e.custoutStandingData.balanceAmt
|
|
4522
4522
|
});
|
|
4523
|
-
let
|
|
4523
|
+
let Ke = [];
|
|
4524
4524
|
if ((h = e.customFeilds) != null && h.length) {
|
|
4525
4525
|
let ee;
|
|
4526
4526
|
for (let Ne = 0; Ne < e.customFeilds.length; Ne++)
|
|
4527
|
-
ee = e.customFeilds[Ne], ee != null && ee.customValue && ((p = ee.availability) != null && p.includes("BILL")) &&
|
|
4527
|
+
ee = e.customFeilds[Ne], ee != null && ee.customValue && ((p = ee.availability) != null && p.includes("BILL")) && Ke.push({
|
|
4528
4528
|
customName: ee.customName,
|
|
4529
4529
|
customValue: ee.customValue
|
|
4530
4530
|
});
|
|
4531
|
-
X.customFields =
|
|
4531
|
+
X.customFields = Ke;
|
|
4532
4532
|
}
|
|
4533
|
-
let
|
|
4534
|
-
m.companyLogo && (
|
|
4533
|
+
let Qe = null, _t = null;
|
|
4534
|
+
m.companyLogo && (Qe = await Vt(`https://${m.companyLogo.bucket}.s3.amazonaws.com/${m.companyLogo.key}`)), m.qrcode && (_t = await Vt(`https://${m.qrcode.bucket}.s3.amazonaws.com/${m.qrcode.key}`));
|
|
4535
4535
|
var a = "Unknown OS";
|
|
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
|
-
let
|
|
4537
|
+
let Ze = {};
|
|
4538
4538
|
(function() {
|
|
4539
|
-
let ee, Ne,
|
|
4539
|
+
let ee, Ne, at = 0, y = 0, d = 0, O = 0, j = 0, I = 0, U = 0, b = 0, F = [], z = [], he = 0, Oe;
|
|
4540
4540
|
if (D === "A4" || D === "A5") {
|
|
4541
4541
|
for (Ne = 0; Ne < S.length; Ne++)
|
|
4542
|
-
ee = S[Ne], y += ee.sub_total, d += ee.afterdiscAmt, O += ee.afterdiscAmt + (ee.total_charges ?? 0),
|
|
4542
|
+
ee = S[Ne], y += ee.sub_total, d += ee.afterdiscAmt, O += ee.afterdiscAmt + (ee.total_charges ?? 0), at += ee.afterdiscAmt + (ee.total_charges ?? 0), he += ee.qty;
|
|
4543
4543
|
let De = wn(S, "discountName", { separateItemsDisc: !0 });
|
|
4544
4544
|
const Ae = Cn(De);
|
|
4545
4545
|
let { obj: Ie, sum: ke } = Vs(S);
|
|
4546
|
-
|
|
4546
|
+
Ze = {
|
|
4547
4547
|
itemList: On(S, {
|
|
4548
4548
|
itemInstructionOnBill: m.itemInstructionOnBill,
|
|
4549
4549
|
printZeroPriceAddons: m.printZeroPriceAddons
|
|
@@ -4554,18 +4554,18 @@ const Gs = (e, t, n) => {
|
|
|
4554
4554
|
subTotal: _e(y),
|
|
4555
4555
|
afterDisc: _e(d),
|
|
4556
4556
|
afterCharges: _e(O),
|
|
4557
|
-
total: _e(
|
|
4557
|
+
total: _e(at + ke),
|
|
4558
4558
|
qty: he
|
|
4559
4559
|
};
|
|
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" ? (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),
|
|
4563
|
+
ee = S[Ne], ee.taxType === "VAT" ? (z.push(ee), b += ee.sub_total, I += ee.afterdiscAmt, j += ee.afterdiscAmt + (ee.total_charges ?? 0), U += ee.afterdiscAmt + (ee.total_charges ?? 0)) : (F.push(ee), y += ee.sub_total, d += ee.afterdiscAmt, O += ee.afterdiscAmt + (ee.total_charges ?? 0), at += ee.afterdiscAmt + (ee.total_charges ?? 0));
|
|
4564
4564
|
if (F.length) {
|
|
4565
4565
|
let Ae = wn(F, "discountName", { separateItemsDisc: !0 });
|
|
4566
4566
|
const Ie = Cn(Ae);
|
|
4567
4567
|
let { obj: ke, sum: He } = Vs(F);
|
|
4568
|
-
|
|
4568
|
+
Ze.GST = {
|
|
4569
4569
|
itemList: On(F, {
|
|
4570
4570
|
itemInstructionOnBill: m.itemInstructionOnBill,
|
|
4571
4571
|
printZeroPriceAddons: m.printZeroPriceAddons
|
|
@@ -4576,14 +4576,14 @@ const Gs = (e, t, n) => {
|
|
|
4576
4576
|
subTotal: _e(y),
|
|
4577
4577
|
afterDisc: _e(d),
|
|
4578
4578
|
afterCharges: _e(O),
|
|
4579
|
-
total: _e(
|
|
4579
|
+
total: _e(at + He)
|
|
4580
4580
|
};
|
|
4581
4581
|
}
|
|
4582
4582
|
if (z.length) {
|
|
4583
4583
|
let Ae = wn(z, "discountName", { separateItemsDisc: !0 });
|
|
4584
4584
|
const Ie = Cn(Ae);
|
|
4585
4585
|
let { obj: ke, sum: He } = Vs(z);
|
|
4586
|
-
|
|
4586
|
+
Ze.VAT = {
|
|
4587
4587
|
itemList: On(z, {
|
|
4588
4588
|
itemInstructionOnBill: m.itemInstructionOnBill,
|
|
4589
4589
|
printZeroPriceAddons: m.printZeroPriceAddons
|
|
@@ -4598,8 +4598,8 @@ const Gs = (e, t, n) => {
|
|
|
4598
4598
|
};
|
|
4599
4599
|
}
|
|
4600
4600
|
}
|
|
4601
|
-
})(), X.distributedData =
|
|
4602
|
-
let bt = { obj: X, companyLogo:
|
|
4601
|
+
})(), X.distributedData = Ze;
|
|
4602
|
+
let bt = { obj: X, companyLogo: Qe, companyQrCode: _t, paperSize: t.printerSize, Name: a };
|
|
4603
4603
|
r(bt);
|
|
4604
4604
|
}
|
|
4605
4605
|
} catch (m) {
|
|
@@ -5852,9 +5852,9 @@ const ms = (e, t) => t * 100 / e, Rh = (e) => !!(e || e === 0), Lh = {
|
|
|
5852
5852
|
});
|
|
5853
5853
|
var It = cr(), je = "normal-class";
|
|
5854
5854
|
(It == "Android OS" || It === "iOS") && (je = "bold-class");
|
|
5855
|
-
const
|
|
5856
|
-
var
|
|
5857
|
-
const t = e.additionalActions ?? {}, n = ti(null), r = e.settingData ? e.settingData : e.value.settingData, i = localStorage.getItem("siteId"), { staticDataKOT: a, printer: u, type: f } = e.printerDataObject, o = ((bt = (
|
|
5855
|
+
const Ve = (e) => {
|
|
5856
|
+
var Ze, bt, ee, Ne, at;
|
|
5857
|
+
const t = e.additionalActions ?? {}, n = ti(null), r = e.settingData ? e.settingData : e.value.settingData, i = localStorage.getItem("siteId"), { staticDataKOT: a, printer: u, type: f } = e.printerDataObject, o = ((bt = (Ze = e.value) == null ? void 0 : Ze.settingData) == null ? void 0 : bt.curr) ?? ((ee = e.settingData) == null ? void 0 : ee.curr) ?? "INR";
|
|
5858
5858
|
r == null || r.fontTheme;
|
|
5859
5859
|
let l = e.printerDataObject.paperSize, c = dr(
|
|
5860
5860
|
u,
|
|
@@ -5862,7 +5862,7 @@ const tt = (e) => {
|
|
|
5862
5862
|
t
|
|
5863
5863
|
);
|
|
5864
5864
|
const h = r.customLabels ?? _d();
|
|
5865
|
-
l = c ? (Ne = c[0]) != null && Ne.paperSize ? (
|
|
5865
|
+
l = c ? (Ne = c[0]) != null && Ne.paperSize ? (at = c[0]) == null ? void 0 : at.paperSize : l || "3INCH" : e.printerDataObject.paperSize;
|
|
5866
5866
|
function p(y) {
|
|
5867
5867
|
const d = Math.abs(parseFloat(y));
|
|
5868
5868
|
return m(d);
|
|
@@ -6528,7 +6528,7 @@ const tt = (e) => {
|
|
|
6528
6528
|
})
|
|
6529
6529
|
] });
|
|
6530
6530
|
}, J = (y, d, { labels: O, doMultipleTax: j, type: I }) => {
|
|
6531
|
-
var b, F, z, he, Oe, De, Ae, Ie, ke, He,
|
|
6531
|
+
var b, F, z, he, Oe, De, Ae, Ie, ke, He, it;
|
|
6532
6532
|
const U = y.discounts;
|
|
6533
6533
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
6534
6534
|
/* @__PURE__ */ s.jsx("hr", {}),
|
|
@@ -6585,19 +6585,19 @@ const tt = (e) => {
|
|
|
6585
6585
|
"HSN: ",
|
|
6586
6586
|
K.hsnCode
|
|
6587
6587
|
] }),
|
|
6588
|
-
(St = K.addons) != null && St.length ? K.addons.map((
|
|
6588
|
+
(St = K.addons) != null && St.length ? K.addons.map((Je) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
6589
6589
|
/* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
|
|
6590
|
-
/* @__PURE__ */ s.jsx("h6", { className: `items products-heading-name ${P[l].dynamicClassname}`, style: { lineHeight: 1.2 }, children: "+ " + Be(
|
|
6590
|
+
/* @__PURE__ */ s.jsx("h6", { className: `items products-heading-name ${P[l].dynamicClassname}`, style: { lineHeight: 1.2 }, children: "+ " + Be(Je.serviceName) }),
|
|
6591
6591
|
/* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-qty ${P[l].dynamicClassname}`, children: [
|
|
6592
6592
|
K.status === "RETURNED" ? "-" : "",
|
|
6593
|
-
|
|
6593
|
+
Je.qty * K.qty
|
|
6594
6594
|
] }),
|
|
6595
6595
|
/* @__PURE__ */ s.jsx("h6", { className: `items products-heading-rate ${P[l].dynamicClassname}` }),
|
|
6596
6596
|
/* @__PURE__ */ s.jsx("h6", { className: `items products-heading-amt ${P[l].dynamicClassname}` })
|
|
6597
6597
|
] }),
|
|
6598
|
-
/* @__PURE__ */ s.jsx("div", { children:
|
|
6598
|
+
/* @__PURE__ */ s.jsx("div", { children: Je.hsnCode && d.printHSNCodeOnBill && /* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-name ${P[l].dynamicClassname}`, style: { lineHeight: 1.2 }, children: [
|
|
6599
6599
|
"HSN: ",
|
|
6600
|
-
|
|
6600
|
+
Je.hsnCode
|
|
6601
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 + ")" }) }) : ""
|
|
@@ -6728,7 +6728,7 @@ const tt = (e) => {
|
|
|
6728
6728
|
/* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: "المبلغ قبل الضريبة" }),
|
|
6729
6729
|
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty" })
|
|
6730
6730
|
] }) : "",
|
|
6731
|
-
d.invoiceType !== "INCLUSIVE_SIMPLIFIED" && ((
|
|
6731
|
+
d.invoiceType !== "INCLUSIVE_SIMPLIFIED" && ((it = y.taxation) != null && it.length) ? y.taxation.map((K) => {
|
|
6732
6732
|
if (K.taxAmt)
|
|
6733
6733
|
return K.taxType === "GST" ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
6734
6734
|
/* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div ${je}`, children: [
|
|
@@ -6837,7 +6837,7 @@ const tt = (e) => {
|
|
|
6837
6837
|
U.push(/* @__PURE__ */ s.jsx("hr", {}));
|
|
6838
6838
|
}
|
|
6839
6839
|
return U;
|
|
6840
|
-
},
|
|
6840
|
+
}, Ke = (y) => {
|
|
6841
6841
|
const d = Object.keys(y.Category), O = Object.keys(y.Addon);
|
|
6842
6842
|
let j = new Array();
|
|
6843
6843
|
return j.push(
|
|
@@ -6900,7 +6900,7 @@ const tt = (e) => {
|
|
|
6900
6900
|
] })
|
|
6901
6901
|
);
|
|
6902
6902
|
})), j;
|
|
6903
|
-
},
|
|
6903
|
+
}, Qe = (y) => {
|
|
6904
6904
|
var O;
|
|
6905
6905
|
const d = {
|
|
6906
6906
|
company_mobile: "Mob",
|
|
@@ -6950,8 +6950,8 @@ const tt = (e) => {
|
|
|
6950
6950
|
}
|
|
6951
6951
|
return d;
|
|
6952
6952
|
}, _t = (y, d, O, j) => {
|
|
6953
|
-
var z, he, Oe, De, Ae, Ie, ke, He,
|
|
6954
|
-
const I =
|
|
6953
|
+
var z, he, Oe, De, Ae, Ie, ke, He, it, K, St, Je, Zt, Jt, Is, Xt, es, Cs, Os, Ms, As, Es, Rs, Ls, Et, ts, lt, Rt, Lt, ss, ks, ns, Ps, rs, as, Fs, Ds, is, ls, Ys, Us, $s, Hs, g, M;
|
|
6954
|
+
const I = Qe(r.customLabelsMap), U = ws(bd(r.paymentModes), "internalName"), b = (C) => {
|
|
6955
6955
|
var N;
|
|
6956
6956
|
return (N = U[C]) != null && N.displayName ? U[C].displayName.toUpperCase() : C;
|
|
6957
6957
|
};
|
|
@@ -7148,7 +7148,7 @@ const tt = (e) => {
|
|
|
7148
7148
|
] }),
|
|
7149
7149
|
/* @__PURE__ */ s.jsx("td", { className: "text-align-right", width: "50%", children: B(R.SEGMENT_DISCOUNT[0].discountAmt, o) })
|
|
7150
7150
|
] }) : "",
|
|
7151
|
-
(K = (
|
|
7151
|
+
(K = (it = R == null ? void 0 : R.COUPON_DISCOUNT) == null ? void 0 : it[0]) != null && K.discountAmt ? /* @__PURE__ */ s.jsxs("tr", { className: "subtotalTr", children: [
|
|
7152
7152
|
/* @__PURE__ */ s.jsxs("td", { width: "50%", children: [
|
|
7153
7153
|
/* @__PURE__ */ s.jsx(
|
|
7154
7154
|
"span",
|
|
@@ -7163,7 +7163,7 @@ const tt = (e) => {
|
|
|
7163
7163
|
] }),
|
|
7164
7164
|
/* @__PURE__ */ s.jsx("td", { className: "text-align-right", width: "50%", children: B(R.COUPON_DISCOUNT[0].discountAmt, o) })
|
|
7165
7165
|
] }) : "",
|
|
7166
|
-
(
|
|
7166
|
+
(Je = (St = R == null ? void 0 : R.ORDER_DISCOUNT) == null ? void 0 : St[0]) != null && Je.discountAmt ? /* @__PURE__ */ s.jsxs("tr", { className: "subtotalTr", children: [
|
|
7167
7167
|
/* @__PURE__ */ s.jsxs("td", { width: "50%", children: [
|
|
7168
7168
|
/* @__PURE__ */ s.jsx(
|
|
7169
7169
|
"span",
|
|
@@ -7513,7 +7513,7 @@ const tt = (e) => {
|
|
|
7513
7513
|
] })
|
|
7514
7514
|
))
|
|
7515
7515
|
] }) : "",
|
|
7516
|
-
d.invoiceType === "INCLUSIVE_SIMPLIFIED" && ((
|
|
7516
|
+
d.invoiceType === "INCLUSIVE_SIMPLIFIED" && ((lt = d.taxation) != null && lt.length) ? /* @__PURE__ */ s.jsxs("div", { children: [
|
|
7517
7517
|
/* @__PURE__ */ s.jsx("div", { className: "single-entity-and-center", style: { marginTop: "6px" }, children: /* @__PURE__ */ s.jsx("h6", { className: "level2-bold", children: "Tax Summary" }) }),
|
|
7518
7518
|
/* @__PURE__ */ s.jsx("div", { className: "single-entity-and-center", style: { marginTop: "6px" }, children: /* @__PURE__ */ s.jsxs("table", { border: "1", style: { textAlign: "center", margin: "0 auto", marginBottom: "6px", width: "100%" }, children: [
|
|
7519
7519
|
/* @__PURE__ */ s.jsxs("tr", { className: P[l].dynamicClassname, children: [
|
|
@@ -8319,7 +8319,7 @@ const tt = (e) => {
|
|
|
8319
8319
|
N.logoutTime
|
|
8320
8320
|
] }),
|
|
8321
8321
|
N.CounterName && /* @__PURE__ */ s.jsx("hr", {}),
|
|
8322
|
-
|
|
8322
|
+
Ke(a),
|
|
8323
8323
|
/* @__PURE__ */ s.jsx("hr", {}),
|
|
8324
8324
|
/* @__PURE__ */ s.jsx("h6", { className: "left-align-entity", children: `Printed By: ${N.openedBy}` }),
|
|
8325
8325
|
/* @__PURE__ */ s.jsx("h6", { className: "left-align-entity", children: `Printed On: ${N.printedOn}` })
|
|
@@ -8567,7 +8567,7 @@ const tt = (e) => {
|
|
|
8567
8567
|
const S = new Promise((w) => {
|
|
8568
8568
|
x.push(
|
|
8569
8569
|
/* @__PURE__ */ s.jsx(
|
|
8570
|
-
|
|
8570
|
+
Ve,
|
|
8571
8571
|
{
|
|
8572
8572
|
printerDataObject: {
|
|
8573
8573
|
staticDataKOT: v,
|
|
@@ -8599,7 +8599,7 @@ const tt = (e) => {
|
|
|
8599
8599
|
new Promise((E) => {
|
|
8600
8600
|
x.push(
|
|
8601
8601
|
/* @__PURE__ */ s.jsx(
|
|
8602
|
-
|
|
8602
|
+
Ve,
|
|
8603
8603
|
{
|
|
8604
8604
|
printerDataObject: {
|
|
8605
8605
|
staticDataKOT: { obj: _.obj },
|
|
@@ -8626,7 +8626,7 @@ const tt = (e) => {
|
|
|
8626
8626
|
);
|
|
8627
8627
|
});
|
|
8628
8628
|
}
|
|
8629
|
-
x.length &&
|
|
8629
|
+
x.length && st("root2", x), await Promise.all(m), i(p);
|
|
8630
8630
|
} catch (l) {
|
|
8631
8631
|
a(l);
|
|
8632
8632
|
}
|
|
@@ -8640,7 +8640,7 @@ const tt = (e) => {
|
|
|
8640
8640
|
var m;
|
|
8641
8641
|
return (m = c[p.station]) == null ? void 0 : m.map((x) => new Promise((v) => {
|
|
8642
8642
|
const _ = /* @__PURE__ */ s.jsx(
|
|
8643
|
-
|
|
8643
|
+
Ve,
|
|
8644
8644
|
{
|
|
8645
8645
|
printerDataObject: {
|
|
8646
8646
|
staticDataKOT: p,
|
|
@@ -8666,7 +8666,7 @@ const tt = (e) => {
|
|
|
8666
8666
|
}));
|
|
8667
8667
|
}
|
|
8668
8668
|
);
|
|
8669
|
-
h.length &&
|
|
8669
|
+
h.length && st("root1", h), await Promise.all(f.map((p) => new Promise(p)));
|
|
8670
8670
|
}
|
|
8671
8671
|
r(u);
|
|
8672
8672
|
} catch (a) {
|
|
@@ -8678,7 +8678,7 @@ const tt = (e) => {
|
|
|
8678
8678
|
let a = [];
|
|
8679
8679
|
await new Promise((f) => {
|
|
8680
8680
|
const o = /* @__PURE__ */ s.jsx(
|
|
8681
|
-
|
|
8681
|
+
Ve,
|
|
8682
8682
|
{
|
|
8683
8683
|
printerDataObject: {
|
|
8684
8684
|
staticDataKOT: { obj: i },
|
|
@@ -8697,7 +8697,7 @@ const tt = (e) => {
|
|
|
8697
8697
|
additionalActions: t
|
|
8698
8698
|
}
|
|
8699
8699
|
);
|
|
8700
|
-
|
|
8700
|
+
st("root1", o);
|
|
8701
8701
|
}), n(a);
|
|
8702
8702
|
} catch (i) {
|
|
8703
8703
|
r(i);
|
|
@@ -8708,7 +8708,7 @@ const tt = (e) => {
|
|
|
8708
8708
|
let u = [];
|
|
8709
8709
|
await new Promise((o) => {
|
|
8710
8710
|
const l = /* @__PURE__ */ s.jsx(
|
|
8711
|
-
|
|
8711
|
+
Ve,
|
|
8712
8712
|
{
|
|
8713
8713
|
printerDataObject: { staticDataKOT: a, paperSize: a.paperSize, type: "AGGREGATOR_BILL" },
|
|
8714
8714
|
newId: Math.random(),
|
|
@@ -8723,7 +8723,7 @@ const tt = (e) => {
|
|
|
8723
8723
|
additionalActions: n
|
|
8724
8724
|
}
|
|
8725
8725
|
);
|
|
8726
|
-
|
|
8726
|
+
st("root1", l);
|
|
8727
8727
|
}), r(u);
|
|
8728
8728
|
} catch (a) {
|
|
8729
8729
|
i(a);
|
|
@@ -8732,23 +8732,40 @@ const tt = (e) => {
|
|
|
8732
8732
|
try {
|
|
8733
8733
|
let a = await Ma(e, t, n), u = [];
|
|
8734
8734
|
await new Promise((o) => {
|
|
8735
|
-
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
|
|
8741
|
-
|
|
8742
|
-
|
|
8743
|
-
paperSize: a.paperSize,
|
|
8744
|
-
|
|
8745
|
-
|
|
8746
|
-
}
|
|
8747
|
-
|
|
8748
|
-
|
|
8735
|
+
if (n.isSplitBill && a.obj.splitDetails && a.obj.splitDetails.length)
|
|
8736
|
+
for (let l = 0; l < a.obj.splitDetails.length; l++) {
|
|
8737
|
+
const c = a.obj.splitDetails[l];
|
|
8738
|
+
let h = JSON.parse(JSON.stringify(a));
|
|
8739
|
+
h.obj.splitDetails = [c];
|
|
8740
|
+
const p = /* @__PURE__ */ s.jsx(
|
|
8741
|
+
Ve,
|
|
8742
|
+
{
|
|
8743
|
+
printerDataObject: { staticDataKOT: h, paperSize: a.paperSize, type: "BILL" },
|
|
8744
|
+
newId: Math.random(),
|
|
8745
|
+
settingData: t
|
|
8746
|
+
}
|
|
8747
|
+
);
|
|
8748
|
+
st(p);
|
|
8749
8749
|
}
|
|
8750
|
-
|
|
8751
|
-
|
|
8750
|
+
else {
|
|
8751
|
+
const l = /* @__PURE__ */ s.jsx(
|
|
8752
|
+
Ve,
|
|
8753
|
+
{
|
|
8754
|
+
printerDataObject: { staticDataKOT: a, paperSize: a.paperSize, type: "BILL" },
|
|
8755
|
+
newId: Math.random(),
|
|
8756
|
+
settingData: t,
|
|
8757
|
+
onImageGenerated: (c) => {
|
|
8758
|
+
u.push({
|
|
8759
|
+
paperSize: a.paperSize,
|
|
8760
|
+
image: c,
|
|
8761
|
+
type: "BILL"
|
|
8762
|
+
}), o();
|
|
8763
|
+
},
|
|
8764
|
+
additionalActions: n
|
|
8765
|
+
}
|
|
8766
|
+
);
|
|
8767
|
+
st("root1", l);
|
|
8768
|
+
}
|
|
8752
8769
|
}), r(u);
|
|
8753
8770
|
} catch (a) {
|
|
8754
8771
|
i(a);
|
|
@@ -8760,7 +8777,7 @@ const tt = (e) => {
|
|
|
8760
8777
|
let o = `ItemWiseSales:::${Math.floor(Math.random() * 1e3)}`, l = [];
|
|
8761
8778
|
await new Promise((h) => {
|
|
8762
8779
|
const p = /* @__PURE__ */ s.jsx(
|
|
8763
|
-
|
|
8780
|
+
Ve,
|
|
8764
8781
|
{
|
|
8765
8782
|
printerDataObject: {
|
|
8766
8783
|
staticDataKOT: u,
|
|
@@ -8780,7 +8797,7 @@ const tt = (e) => {
|
|
|
8780
8797
|
additionalActions: r
|
|
8781
8798
|
}
|
|
8782
8799
|
);
|
|
8783
|
-
|
|
8800
|
+
st("root1", p);
|
|
8784
8801
|
}), i(l);
|
|
8785
8802
|
} else
|
|
8786
8803
|
i([]);
|
|
@@ -8792,7 +8809,7 @@ const tt = (e) => {
|
|
|
8792
8809
|
let u = `counterDetailsPrint:::${Math.floor(Math.random() * 1e3)}`, f = [];
|
|
8793
8810
|
await new Promise((l) => {
|
|
8794
8811
|
const c = /* @__PURE__ */ s.jsx(
|
|
8795
|
-
|
|
8812
|
+
Ve,
|
|
8796
8813
|
{
|
|
8797
8814
|
printerDataObject: {
|
|
8798
8815
|
staticDataKOT: e,
|
|
@@ -8811,7 +8828,7 @@ const tt = (e) => {
|
|
|
8811
8828
|
additionalActions: n
|
|
8812
8829
|
}
|
|
8813
8830
|
);
|
|
8814
|
-
|
|
8831
|
+
st("root1", c);
|
|
8815
8832
|
}), r(f);
|
|
8816
8833
|
} catch (a) {
|
|
8817
8834
|
i(a);
|
|
@@ -8827,7 +8844,7 @@ const tt = (e) => {
|
|
|
8827
8844
|
}), c = l ? (u = l[0]) == null ? void 0 : u.paperSize : t.printerSize;
|
|
8828
8845
|
await new Promise((p) => {
|
|
8829
8846
|
const m = /* @__PURE__ */ s.jsx(
|
|
8830
|
-
|
|
8847
|
+
Ve,
|
|
8831
8848
|
{
|
|
8832
8849
|
printerDataObject: {
|
|
8833
8850
|
staticDataKOT: { ...f, name: n.name, mobile: n.mobile },
|
|
@@ -8846,7 +8863,7 @@ const tt = (e) => {
|
|
|
8846
8863
|
additionalActions: r
|
|
8847
8864
|
}
|
|
8848
8865
|
);
|
|
8849
|
-
|
|
8866
|
+
st("root1", m);
|
|
8850
8867
|
}), i(o);
|
|
8851
8868
|
} catch (f) {
|
|
8852
8869
|
a(f);
|
|
@@ -8862,7 +8879,7 @@ const tt = (e) => {
|
|
|
8862
8879
|
let c = ud(l.invoiceFormats, "createdAt")[0], h = await kd(c);
|
|
8863
8880
|
await new Promise((m) => {
|
|
8864
8881
|
const x = /* @__PURE__ */ s.jsx(
|
|
8865
|
-
|
|
8882
|
+
Ve,
|
|
8866
8883
|
{
|
|
8867
8884
|
printerDataObject: { staticDataKOT: h, paperSize: h.paperSize, type: "BILL" },
|
|
8868
8885
|
newId: Math.random(),
|
|
@@ -8881,11 +8898,11 @@ const tt = (e) => {
|
|
|
8881
8898
|
});
|
|
8882
8899
|
}
|
|
8883
8900
|
}
|
|
8884
|
-
u.length &&
|
|
8901
|
+
u.length && st("root1", u), r(f);
|
|
8885
8902
|
} catch (u) {
|
|
8886
8903
|
i(u);
|
|
8887
8904
|
}
|
|
8888
|
-
}),
|
|
8905
|
+
}), st = (e, t) => {
|
|
8889
8906
|
const n = document.getElementById(e);
|
|
8890
8907
|
n && ci.createRoot(n).render(t);
|
|
8891
8908
|
};
|