recaho-print-react 0.0.119 → 0.0.120
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 +138 -138
- package/dist/recaho-print-react.umd.cjs +9 -9
- package/package.json +1 -1
|
@@ -51,14 +51,14 @@ function ni() {
|
|
|
51
51
|
var w = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
52
|
function T(y) {
|
|
53
53
|
{
|
|
54
|
-
for (var N = arguments.length, P = new Array(N > 1 ? N - 1 : 0),
|
|
55
|
-
P[
|
|
54
|
+
for (var N = arguments.length, P = new Array(N > 1 ? N - 1 : 0), z = 1; z < N; z++)
|
|
55
|
+
P[z - 1] = arguments[z];
|
|
56
56
|
M("error", y, P);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
function M(y, N, P) {
|
|
60
60
|
{
|
|
61
|
-
var
|
|
61
|
+
var z = w.ReactDebugCurrentFrame, le = z.getStackAddendum();
|
|
62
62
|
le !== "" && (N += "%s", P = P.concat([le]));
|
|
63
63
|
var ce = P.map(function(re) {
|
|
64
64
|
return String(re);
|
|
@@ -66,19 +66,19 @@ function ni() {
|
|
|
66
66
|
ce.unshift("Warning: " + N), Function.prototype.apply.call(console[y], console, ce);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
var F = !1, O = !1,
|
|
69
|
+
var F = !1, O = !1, G = !1, K = !1, te = !1, Q;
|
|
70
70
|
Q = Symbol.for("react.module.reference");
|
|
71
71
|
function ie(y) {
|
|
72
|
-
return !!(typeof y == "string" || typeof y == "function" || y === r || y === a || te || y === i || y === l || y === c || K || y === p || F || O ||
|
|
72
|
+
return !!(typeof y == "string" || typeof y == "function" || y === r || y === a || te || y === i || y === l || y === c || K || y === p || F || O || G || typeof y == "object" && y !== null && (y.$$typeof === f || y.$$typeof === u || y.$$typeof === d || y.$$typeof === m || y.$$typeof === o || // This needs to include all possible module reference object
|
|
73
73
|
// types supported by any Flight configuration anywhere since
|
|
74
74
|
// we don't know which Flight build this will end up being used
|
|
75
75
|
// with.
|
|
76
76
|
y.$$typeof === Q || y.getModuleId !== void 0));
|
|
77
77
|
}
|
|
78
78
|
function W(y, N, P) {
|
|
79
|
-
var
|
|
80
|
-
if (
|
|
81
|
-
return
|
|
79
|
+
var z = y.displayName;
|
|
80
|
+
if (z)
|
|
81
|
+
return z;
|
|
82
82
|
var le = N.displayName || N.name || "";
|
|
83
83
|
return le !== "" ? P + "(" + le + ")" : P;
|
|
84
84
|
}
|
|
@@ -117,8 +117,8 @@ function ni() {
|
|
|
117
117
|
case o:
|
|
118
118
|
return W(y, y.render, "ForwardRef");
|
|
119
119
|
case u:
|
|
120
|
-
var
|
|
121
|
-
return
|
|
120
|
+
var z = y.displayName || null;
|
|
121
|
+
return z !== null ? z : $(y.type) || "Memo";
|
|
122
122
|
case f: {
|
|
123
123
|
var le = y, ce = le._payload, re = le._init;
|
|
124
124
|
try {
|
|
@@ -130,7 +130,7 @@ function ni() {
|
|
|
130
130
|
}
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
|
-
var
|
|
133
|
+
var V = Object.assign, ve = 0, A, Ye, Ke, Qe, st, St, J;
|
|
134
134
|
function xe() {
|
|
135
135
|
}
|
|
136
136
|
xe.__reactDisabledLog = !0;
|
|
@@ -166,25 +166,25 @@ function ni() {
|
|
|
166
166
|
writable: !0
|
|
167
167
|
};
|
|
168
168
|
Object.defineProperties(console, {
|
|
169
|
-
log:
|
|
169
|
+
log: V({}, y, {
|
|
170
170
|
value: A
|
|
171
171
|
}),
|
|
172
|
-
info:
|
|
172
|
+
info: V({}, y, {
|
|
173
173
|
value: Ye
|
|
174
174
|
}),
|
|
175
|
-
warn:
|
|
175
|
+
warn: V({}, y, {
|
|
176
176
|
value: Ke
|
|
177
177
|
}),
|
|
178
|
-
error:
|
|
178
|
+
error: V({}, y, {
|
|
179
179
|
value: Qe
|
|
180
180
|
}),
|
|
181
|
-
group:
|
|
181
|
+
group: V({}, y, {
|
|
182
182
|
value: st
|
|
183
183
|
}),
|
|
184
|
-
groupCollapsed:
|
|
184
|
+
groupCollapsed: V({}, y, {
|
|
185
185
|
value: St
|
|
186
186
|
}),
|
|
187
|
-
groupEnd:
|
|
187
|
+
groupEnd: V({}, y, {
|
|
188
188
|
value: J
|
|
189
189
|
})
|
|
190
190
|
});
|
|
@@ -199,8 +199,8 @@ function ni() {
|
|
|
199
199
|
try {
|
|
200
200
|
throw Error();
|
|
201
201
|
} catch (le) {
|
|
202
|
-
var
|
|
203
|
-
h =
|
|
202
|
+
var z = le.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
+
h = z && z[1] || "";
|
|
204
204
|
}
|
|
205
205
|
return `
|
|
206
206
|
` + h + y;
|
|
@@ -219,7 +219,7 @@ function ni() {
|
|
|
219
219
|
if (P !== void 0)
|
|
220
220
|
return P;
|
|
221
221
|
}
|
|
222
|
-
var
|
|
222
|
+
var z;
|
|
223
223
|
j = !0;
|
|
224
224
|
var le = Error.prepareStackTrace;
|
|
225
225
|
Error.prepareStackTrace = void 0;
|
|
@@ -238,14 +238,14 @@ function ni() {
|
|
|
238
238
|
try {
|
|
239
239
|
Reflect.construct(re, []);
|
|
240
240
|
} catch (ke) {
|
|
241
|
-
|
|
241
|
+
z = ke;
|
|
242
242
|
}
|
|
243
243
|
Reflect.construct(y, [], re);
|
|
244
244
|
} else {
|
|
245
245
|
try {
|
|
246
246
|
re.call();
|
|
247
247
|
} catch (ke) {
|
|
248
|
-
|
|
248
|
+
z = ke;
|
|
249
249
|
}
|
|
250
250
|
y.call(re.prototype);
|
|
251
251
|
}
|
|
@@ -253,14 +253,14 @@ function ni() {
|
|
|
253
253
|
try {
|
|
254
254
|
throw Error();
|
|
255
255
|
} catch (ke) {
|
|
256
|
-
|
|
256
|
+
z = ke;
|
|
257
257
|
}
|
|
258
258
|
y();
|
|
259
259
|
}
|
|
260
260
|
} catch (ke) {
|
|
261
|
-
if (ke &&
|
|
261
|
+
if (ke && z && typeof ke.stack == "string") {
|
|
262
262
|
for (var se = ke.stack.split(`
|
|
263
|
-
`), Ae =
|
|
263
|
+
`), Ae = z.stack.split(`
|
|
264
264
|
`), Ne = se.length - 1, be = Ae.length - 1; Ne >= 1 && be >= 0 && se[Ne] !== Ae[be]; )
|
|
265
265
|
be--;
|
|
266
266
|
for (; Ne >= 1 && be >= 0; Ne--, be--)
|
|
@@ -309,7 +309,7 @@ function ni() {
|
|
|
309
309
|
case u:
|
|
310
310
|
return fe(y.type, N, P);
|
|
311
311
|
case f: {
|
|
312
|
-
var
|
|
312
|
+
var z = y, le = z._payload, ce = z._init;
|
|
313
313
|
try {
|
|
314
314
|
return fe(ce(le), N, P);
|
|
315
315
|
} catch {
|
|
@@ -326,7 +326,7 @@ function ni() {
|
|
|
326
326
|
} else
|
|
327
327
|
Re.setExtraStackFrame(null);
|
|
328
328
|
}
|
|
329
|
-
function Tt(y, N, P,
|
|
329
|
+
function Tt(y, N, P, z, le) {
|
|
330
330
|
{
|
|
331
331
|
var ce = Function.call.bind(_e);
|
|
332
332
|
for (var re in y)
|
|
@@ -334,14 +334,14 @@ function ni() {
|
|
|
334
334
|
var se = void 0;
|
|
335
335
|
try {
|
|
336
336
|
if (typeof y[re] != "function") {
|
|
337
|
-
var Ae = Error((
|
|
337
|
+
var Ae = Error((z || "React class") + ": " + P + " type `" + re + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof y[re] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
338
|
throw Ae.name = "Invariant Violation", Ae;
|
|
339
339
|
}
|
|
340
|
-
se = y[re](N, re,
|
|
340
|
+
se = y[re](N, re, z, P, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
341
|
} catch (Ne) {
|
|
342
342
|
se = Ne;
|
|
343
343
|
}
|
|
344
|
-
se && !(se instanceof Error) && (Oe(le), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",
|
|
344
|
+
se && !(se instanceof Error) && (Oe(le), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", z || "React class", P, re, typeof se), Oe(null)), se instanceof Error && !(se.message in Ee) && (Ee[se.message] = !0, Oe(le), T("Failed %s type: %s", P, se.message), Oe(null));
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
@@ -349,7 +349,7 @@ function ni() {
|
|
|
349
349
|
function at(y) {
|
|
350
350
|
return wt(y);
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function q(y) {
|
|
353
353
|
{
|
|
354
354
|
var N = typeof Symbol == "function" && Symbol.toStringTag, P = N && y[Symbol.toStringTag] || y.constructor.name || "Object";
|
|
355
355
|
return P;
|
|
@@ -367,7 +367,7 @@ function ni() {
|
|
|
367
367
|
}
|
|
368
368
|
function Jt(y) {
|
|
369
369
|
if (It(y))
|
|
370
|
-
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
370
|
+
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", q(y)), xt(y);
|
|
371
371
|
}
|
|
372
372
|
var Xt = w.ReactCurrentOwner, Cs = {
|
|
373
373
|
key: !0,
|
|
@@ -416,7 +416,7 @@ function ni() {
|
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
var ks = function(y, N, P,
|
|
419
|
+
var ks = function(y, N, P, z, le, ce, re) {
|
|
420
420
|
var se = {
|
|
421
421
|
// This tag allows us to uniquely identify this as a React Element
|
|
422
422
|
$$typeof: t,
|
|
@@ -437,7 +437,7 @@ function ni() {
|
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !1,
|
|
440
|
-
value:
|
|
440
|
+
value: z
|
|
441
441
|
}), Object.defineProperty(se, "_source", {
|
|
442
442
|
configurable: !1,
|
|
443
443
|
enumerable: !1,
|
|
@@ -445,7 +445,7 @@ function ni() {
|
|
|
445
445
|
value: le
|
|
446
446
|
}), Object.freeze && (Object.freeze(se.props), Object.freeze(se)), se;
|
|
447
447
|
};
|
|
448
|
-
function Ls(y, N, P,
|
|
448
|
+
function Ls(y, N, P, z, le) {
|
|
449
449
|
{
|
|
450
450
|
var ce, re = {}, se = null, Ae = null;
|
|
451
451
|
P !== void 0 && (Jt(P), se = "" + P), Ms(N) && (Jt(N.key), se = "" + N.key), Os(N) && (Ae = N.ref, As(N, le));
|
|
@@ -460,7 +460,7 @@ function ni() {
|
|
|
460
460
|
var be = typeof y == "function" ? y.displayName || y.name || "Unknown" : y;
|
|
461
461
|
se && Es(re, be), Ae && Rs(re, be);
|
|
462
462
|
}
|
|
463
|
-
return ks(y, se, Ae, le,
|
|
463
|
+
return ks(y, se, Ae, le, z, Xt.current, re);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
466
|
var kt = w.ReactCurrentOwner, ss = w.ReactDebugCurrentFrame;
|
|
@@ -513,8 +513,8 @@ Check the top-level render call using <` + P + ">.");
|
|
|
513
513
|
if (rs[P])
|
|
514
514
|
return;
|
|
515
515
|
rs[P] = !0;
|
|
516
|
-
var
|
|
517
|
-
y && y._owner && y._owner !== kt.current && (
|
|
516
|
+
var z = "";
|
|
517
|
+
y && y._owner && y._owner !== kt.current && (z = " It was passed a child from " + $(y._owner.type) + "."), it(y), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', P, z), it(null);
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
function is(y, N) {
|
|
@@ -523,8 +523,8 @@ Check the top-level render call using <` + P + ">.");
|
|
|
523
523
|
return;
|
|
524
524
|
if (at(y))
|
|
525
525
|
for (var P = 0; P < y.length; P++) {
|
|
526
|
-
var
|
|
527
|
-
Pt(
|
|
526
|
+
var z = y[P];
|
|
527
|
+
Pt(z) && as(z, N);
|
|
528
528
|
}
|
|
529
529
|
else if (Pt(y))
|
|
530
530
|
y._store && (y._store.validated = !0);
|
|
@@ -551,8 +551,8 @@ Check the top-level render call using <` + P + ">.");
|
|
|
551
551
|
else
|
|
552
552
|
return;
|
|
553
553
|
if (P) {
|
|
554
|
-
var
|
|
555
|
-
Tt(P, y.props, "prop",
|
|
554
|
+
var z = $(N);
|
|
555
|
+
Tt(P, y.props, "prop", z, y);
|
|
556
556
|
} else if (N.PropTypes !== void 0 && !Lt) {
|
|
557
557
|
Lt = !0;
|
|
558
558
|
var le = $(N);
|
|
@@ -564,9 +564,9 @@ Check the top-level render call using <` + P + ">.");
|
|
|
564
564
|
function Ys(y) {
|
|
565
565
|
{
|
|
566
566
|
for (var N = Object.keys(y.props), P = 0; P < N.length; P++) {
|
|
567
|
-
var
|
|
568
|
-
if (
|
|
569
|
-
it(y), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
567
|
+
var z = N[P];
|
|
568
|
+
if (z !== "children" && z !== "key") {
|
|
569
|
+
it(y), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", z), it(null);
|
|
570
570
|
break;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
@@ -574,7 +574,7 @@ Check the top-level render call using <` + P + ">.");
|
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
var ls = {};
|
|
577
|
-
function os(y, N, P,
|
|
577
|
+
function os(y, N, P, z, le, ce) {
|
|
578
578
|
{
|
|
579
579
|
var re = ie(y);
|
|
580
580
|
if (!re) {
|
|
@@ -591,7 +591,7 @@ Check the top-level render call using <` + P + ">.");
|
|
|
591
591
|
if (re) {
|
|
592
592
|
var Ue = N.children;
|
|
593
593
|
if (Ue !== void 0)
|
|
594
|
-
if (
|
|
594
|
+
if (z)
|
|
595
595
|
if (at(Ue)) {
|
|
596
596
|
for (var Ft = 0; Ft < Ue.length; Ft++)
|
|
597
597
|
is(Ue[Ft], y);
|
|
@@ -3337,7 +3337,7 @@ function hd(e) {
|
|
|
3337
3337
|
}
|
|
3338
3338
|
}
|
|
3339
3339
|
function a(f) {
|
|
3340
|
-
var p = f.toString(), g, b, _, w, T, M, F, O,
|
|
3340
|
+
var p = f.toString(), g, b, _, w, T, M, F, O, G, K, te, Q, ie = "and";
|
|
3341
3341
|
if (p = p.replace(/[, ]/g, ""), parseInt(p) === 0)
|
|
3342
3342
|
return "zero";
|
|
3343
3343
|
for (g = [
|
|
@@ -3390,7 +3390,7 @@ function hd(e) {
|
|
|
3390
3390
|
if (F = M.length, F > _.length)
|
|
3391
3391
|
return "";
|
|
3392
3392
|
for (Q = [], K = 0; K < F; K++)
|
|
3393
|
-
O = parseInt(M[K]), O && (
|
|
3393
|
+
O = parseInt(M[K]), O && (G = M[K].split("").reverse().map(parseFloat), G[1] === 1 && (G[0] += 10), (te = _[K]) && Q.push(te), (te = g[G[0]]) && Q.push(te), (te = b[G[1]]) && Q.push(te), (G[0] || G[1]) && (G[2] || K + 1 > F) && Q.push(ie), (te = g[G[2]]) && Q.push(te + " Hundred"));
|
|
3394
3394
|
return Q.reverse().join(" ");
|
|
3395
3395
|
}
|
|
3396
3396
|
const [d, m] = e.toString().split("."), o = a(parseInt(d, 10)), l = i(parseInt(m, 10)), c = l ? `${l} Paise` : "";
|
|
@@ -3630,7 +3630,7 @@ const Bs = (e, t, n) => {
|
|
|
3630
3630
|
e.orderList.filter((w) => {
|
|
3631
3631
|
a = w.services.sort((T) => T.status === "CANCELLED" ? -1 : 0), a.forEach((T, M) => {
|
|
3632
3632
|
var W, we, $;
|
|
3633
|
-
let F = T.station ? T.station.split("::") : "", O = F && F.length > 1 ? F[1] : F[0],
|
|
3633
|
+
let F = T.station ? T.station.split("::") : "", O = F && F.length > 1 ? F[1] : F[0], G = e.tableNo ? e.tableNo.split("::") : null, K = G && G.length > 0 ? G[0] : e.orderFrom, te = e.tableName ? e.tableName : e.tableNo ? K : e.orderFrom, Q;
|
|
3634
3634
|
(W = r == null ? void 0 : r[w.createdBy]) != null && W.name && (Q = r[w.createdBy].name);
|
|
3635
3635
|
let ie = !1;
|
|
3636
3636
|
(m || O && T.status == l) && (ie = !0), ie && Fn(O) && (i[O] || (i[O] = {}, i[O].station = O, i[O].services = [], i[O].tableName = te, i[O].customerName = e.name == t.companyName ? null : e.name, i[O].time = R().format("DD-MM-YYYY hh:mm a"), i[O].type = e.orderFrom, i[O].subOrderFrom = e.subOrderFrom, i[O].orderId = e.externalOrderId || e.offlineOrderId ? e.orderId : w.subOrderId, i[O].orderId = /* @__PURE__ */ new Set([i[O].orderId]), i[O].instruction = e.instruction, i[O].orderSource = e.orderSource, i[O].deliveryTimestamp = e.deliveryTimestamp ? R.unix(e.deliveryTimestamp).format("DD-MM-YYYY hh:mm A") : null, i[O].aggregatorOrderId = e.externalOrderId, i[O].otp = e.otp, i[O].totalQty = 0, i[O].tokenId = e.tokenId, i[O].kotId = T.kotId ? /* @__PURE__ */ new Set([T.kotId]) : null, i[O].waiterName = e.waiterName, i[O].duplicate = m, i[O].createdBy = Q, i[O].zomatoInstant = c, d && (i[O].customFields = d), o && (i[O].onlyCancelledItems = o), e.preparationTime && (i[O].prepareBy = R().add(e.preparationTime, "minutes").format("DD-MM-YYYY hh:mm A"))), i[O] ? (i[O].services.push({
|
|
@@ -3669,8 +3669,8 @@ const Bs = (e, t, n) => {
|
|
|
3669
3669
|
paperSize: t.printerSize || f
|
|
3670
3670
|
});
|
|
3671
3671
|
for (let M = 0; M < T.services.length; M++) {
|
|
3672
|
-
let F = T.services[M], O = e.orderList.find((K) => K.subOrderId == F.subOrderId),
|
|
3673
|
-
O && (
|
|
3672
|
+
let F = T.services[M], O = e.orderList.find((K) => K.subOrderId == F.subOrderId), G = u[F.subOrderId];
|
|
3673
|
+
O && (G ? G.services.push(O.services[F.index]) : (u[F.subOrderId] = {}, u[F.subOrderId].subOrderId = O.subOrderId, u[F.subOrderId].services = [O.services[F.index]]));
|
|
3674
3674
|
}
|
|
3675
3675
|
} catch (M) {
|
|
3676
3676
|
console.log(M);
|
|
@@ -3720,14 +3720,14 @@ const Bs = (e, t, n) => {
|
|
|
3720
3720
|
orderSource: e.orderSource,
|
|
3721
3721
|
otp: e.otp,
|
|
3722
3722
|
zomatoInstant: u
|
|
3723
|
-
}, M = {}, F = !1, O,
|
|
3723
|
+
}, M = {}, F = !1, O, G = 0;
|
|
3724
3724
|
for (e.preparationTime && (T.prepareBy = R().add(e.preparationTime, "minutes").format("DD-MM-YYYY hh:mm A")), c && (T.customFields = c), b = 0; b < e.orderList.length; b++)
|
|
3725
3725
|
for (p = e.orderList[b], _ = 0; _ < p.services.length; _++)
|
|
3726
3726
|
g = p.services[_], g = {
|
|
3727
3727
|
...g,
|
|
3728
3728
|
instruction: g.isUrgent && g.instruction ? `(URGENT -${g.instruction})` : g.instruction ? `(${g.instruction})` : g.isUrgent ? "(URGENT)" : null
|
|
3729
|
-
}, F = !1, g.status === r && ((a = l.stations) != null && a.length ? (O = cd(l.stations), O[g.station] && (F = !0)) : F = !0), F && g.kotId && g.station && (w = g.station.split("::")[1],
|
|
3730
|
-
Object.keys(M).length && (T.services = M, T.totalQty = ct(
|
|
3729
|
+
}, F = !1, g.status === r && ((a = l.stations) != null && a.length ? (O = cd(l.stations), O[g.station] && (F = !0)) : F = !0), F && g.kotId && g.station && (w = g.station.split("::")[1], G += g.qty, M[`${w}/${g.kotId}`] ? M[`${w}/${g.kotId}`].push(g) : M[`${w}/${g.kotId}`] = [g]);
|
|
3730
|
+
Object.keys(M).length && (T.services = M, T.totalQty = ct(G), o.push({
|
|
3731
3731
|
printer: m,
|
|
3732
3732
|
paperSize: d,
|
|
3733
3733
|
obj: T
|
|
@@ -3806,16 +3806,16 @@ const Bs = (e, t, n) => {
|
|
|
3806
3806
|
let { serviceTypeConfig: n, salesCollection: r, todayCollection: i, dailyExpanse: a, collectionDate: d, rangeDate: m } = t, o = {}, l;
|
|
3807
3807
|
const c = !!bt(n, "dine-in", "slugName").slugName;
|
|
3808
3808
|
if (i != null && i.AGGREGATOR_PAYMENT) {
|
|
3809
|
-
const { AGGREGATOR_PAYMENT: O, ...
|
|
3810
|
-
i = { ...
|
|
3809
|
+
const { AGGREGATOR_PAYMENT: O, ...G } = i;
|
|
3810
|
+
i = { ...G, swiggy: r.swiggy_collection ?? 0, zomato: r.zomato_collection ?? 0 };
|
|
3811
3811
|
}
|
|
3812
3812
|
let u = c && (n == null ? void 0 : n.length) && n.some((O) => O.slugName === "online-menu") && e.isAggregatorEnabled == !0, f = u ? r.aggregator_collection : void 0, p = u ? r.zomato_collection : void 0, g = u ? r.swiggy_collection : void 0, b = c ? yd(r.avgTableTime) : void 0;
|
|
3813
3813
|
l = {};
|
|
3814
3814
|
let _ = 0;
|
|
3815
3815
|
if (r != null && r.menuWiseSales) {
|
|
3816
3816
|
const O = r.menuWiseSales;
|
|
3817
|
-
for (const
|
|
3818
|
-
|
|
3817
|
+
for (const G in O)
|
|
3818
|
+
G.endsWith("collection") ? l[ps(G)] = ct(O[G]) : l[ps(G)] = O[G];
|
|
3819
3819
|
}
|
|
3820
3820
|
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 && ((M = Object.keys(r.itemTypeList)) != null && M.length))
|
|
3821
3821
|
for (let O in r.itemTypeList)
|
|
@@ -3902,23 +3902,23 @@ const Bs = (e, t, n) => {
|
|
|
3902
3902
|
custContact: e.mobile ?? null
|
|
3903
3903
|
}, Q = pn(t.curr), ie = { ...e, companyInfo: O, orderInfo: K, customerInfo: te, gst: F, curr: Q }, W = null, we = null;
|
|
3904
3904
|
a.companyLogo && (W = await qt(`https://${a.companyLogo.bucket}.s3.amazonaws.com/${a.companyLogo.key}`)), a.qrcode && (we = await qt(`https://${a.qrcode.bucket}.s3.amazonaws.com/${a.qrcode.key}`)), e.orderList.filter(($) => {
|
|
3905
|
-
$.services.forEach(async (
|
|
3905
|
+
$.services.forEach(async (V, ve) => {
|
|
3906
3906
|
var Ke, Qe;
|
|
3907
3907
|
let A = "kitchen", Ye = e.tableName ? e.tableName : e.orderFrom;
|
|
3908
3908
|
A && (m[A] || (m[A] = {}, m[A].station = A, m[A].services = [], m[A].tableName = Ye, m[A].customerName = e.name, m[A].time = R.unix(e.timestamp).format("DD-MM-YYYY hh:mm a"), m[A].type = e.orderFrom, m[A].orderId = e.orderId, m[A].instruction = e.instruction, m[A].totalQty = 0, m[A].tokenId = e.tokenId, m[A].orderSource = e.orderSource, m[A].aggregatorOrderId = e.externalOrderId, m[A].otp = e.otp, m[A].paymentState = e.paymentState, m[A].discountAmt = c, m[A].otherCharges = e.otherCharges, m[A].taxAmt = e.taxAmt, m[A].customFeilds = l, m[A].curr = t.curr ?? "INR", m[A].zomatoInstant = g), m[A] ? (o = {
|
|
3909
|
-
serviceName:
|
|
3910
|
-
qty:
|
|
3911
|
-
instruction:
|
|
3909
|
+
serviceName: V.serviceName,
|
|
3910
|
+
qty: V.qty,
|
|
3911
|
+
instruction: V.isUrgent && V.instruction ? `(URGENT -${V.instruction})` : V.instruction ? `(${V.instruction})` : V.isUrgent ? "(URGENT)" : "",
|
|
3912
3912
|
subOrderId: $.subOrderId,
|
|
3913
|
-
isUrgent:
|
|
3913
|
+
isUrgent: V.isUrgent,
|
|
3914
3914
|
index: ve
|
|
3915
|
-
}, (Ke =
|
|
3916
|
-
serviceName:
|
|
3917
|
-
qty:
|
|
3918
|
-
instruction:
|
|
3915
|
+
}, (Ke = V.addons) != null && Ke.length && (o.addons = V.addons), m[A].services.push(o), m[A].totalQty += V.qty) : (m[A] = [], m[A].services.push({
|
|
3916
|
+
serviceName: V.serviceName,
|
|
3917
|
+
qty: V.qty,
|
|
3918
|
+
instruction: V.instruction ? V.instruction : "",
|
|
3919
3919
|
subOrderId: $.subOrderId,
|
|
3920
3920
|
index: ve
|
|
3921
|
-
}), m[A].totalQty +=
|
|
3921
|
+
}), m[A].totalQty += V.qty), m[A] = {
|
|
3922
3922
|
...m[A],
|
|
3923
3923
|
companyInfo: O,
|
|
3924
3924
|
orderInfo: K,
|
|
@@ -3934,13 +3934,13 @@ const Bs = (e, t, n) => {
|
|
|
3934
3934
|
});
|
|
3935
3935
|
for (const $ in m)
|
|
3936
3936
|
if (Object.hasOwnProperty.call(m, $)) {
|
|
3937
|
-
const
|
|
3937
|
+
const V = m[$];
|
|
3938
3938
|
try {
|
|
3939
3939
|
let ve = t.printerSize ?? "2inch";
|
|
3940
3940
|
r(
|
|
3941
3941
|
new Object({
|
|
3942
3942
|
obj: new Object({
|
|
3943
|
-
...
|
|
3943
|
+
...V,
|
|
3944
3944
|
paperSize: ve
|
|
3945
3945
|
}),
|
|
3946
3946
|
orderList: e.orderList
|
|
@@ -4032,7 +4032,7 @@ const Bs = (e, t, n) => {
|
|
|
4032
4032
|
if (_.userRole == "admin" ? T = "ADMIN" : T = _ == null ? void 0 : _.name, !(w != null && w.length)) return;
|
|
4033
4033
|
let M = t.printerSize, F = or(null, { type: "BILL", siteSetting: t }, { occupiedServer: n.occupiedServer });
|
|
4034
4034
|
M = F ? (d = F[0]) != null && d.paperSize ? (m = F[0]) == null ? void 0 : m.paperSize : M || "2INCH" : M;
|
|
4035
|
-
let O = t.footerAddress.addressLineOne ? t.footerAddress.addressLineOne : "",
|
|
4035
|
+
let O = t.footerAddress.addressLineOne ? t.footerAddress.addressLineOne : "", G = t.footerAddress.addressLineTwo ? t.footerAddress.addressLineTwo : "", K = t.footerAddress.city ? t.footerAddress.city : "", te = t.footerAddress.zip ? t.footerAddress.zip : "", Q = (O != "" ? O + "," : "") + (G != "" ? G + "," : "") + (K != "" ? K + "," : "") + (te != "" ? te + "," : ""), ie = t.gstNo, W = {
|
|
4036
4036
|
companyName: t.companyName,
|
|
4037
4037
|
companyAddress: Q,
|
|
4038
4038
|
companyContact: t.contactNumber,
|
|
@@ -4042,13 +4042,13 @@ const Bs = (e, t, n) => {
|
|
|
4042
4042
|
orderDate: e && e.timestamp ? R.unix(e.timestamp).format("DD-MM-YYYY hh:mm A") : null,
|
|
4043
4043
|
orderNumber: e && e.orderId ? e.orderId : null,
|
|
4044
4044
|
timestamp: e.timestamp
|
|
4045
|
-
},
|
|
4045
|
+
}, V = {
|
|
4046
4046
|
custName: f && f.custName ? p == t.companyName ? null : p : null,
|
|
4047
4047
|
// "custName": null,
|
|
4048
4048
|
custAddress: f && f.custAddress && b || null,
|
|
4049
4049
|
custContact: f && f.custMobile ? g : null,
|
|
4050
4050
|
custEmail: "ajaybaglane7@gmail.com"
|
|
4051
|
-
}, ve = pn(t.curr), A = { ...e, companyInfo: W, orderInfo: $, customerInfo:
|
|
4051
|
+
}, ve = pn(t.curr), A = { ...e, companyInfo: W, orderInfo: $, customerInfo: V, gst: ie, curr: ve };
|
|
4052
4052
|
if (f) {
|
|
4053
4053
|
if (A.domain = f.siteURL, A.paymentMethods = f.paymentMode ? A.paymentMethods : null, A.companyInfo.companyName = f.companyName, A.companyInfo.companyEmail = f.email, A.companyInfo.companyAddress = f.address, A.companyInfo.companyContact = f.mobile, A.customerInfo.custName = f.custName ? p : null, A.tokenId = f.token ? A.tokenId : null, f.isPayQR && f.upiId && f.upiId !== "" && (A.upiId = f.upiId), A.gstNo = f.gst ? A.gst : null, A.footerMessage = f.footerMessage, A.orderFrom = (o = e.subOrderFrom) == null ? void 0 : o.toUpperCase(), A.fssai = t.fssai, A.vatNo = t.vatNo, A.taxLabel = Ia(t), A.printOperatorInfo = f.printOperatorInfo === null || f.printOperatorInfo === !0, A.disabledPoweredBy = t.disabledPoweredBy === !0, A.printTime = R().format("DD-MM-YYYY hh:mm A"), e.deliveryTimestamp && (A.deliveryTimestamp = R.unix(e.deliveryTimestamp).format("DD-MM-YYYY hh:mm A")), A.itemInstructionOnBill = f.itemInstructionOnBill, A.noOfInvoice = f.noOfInvoice, A.printby = T, A.newFormat = !0, !f.itemInstructionOnBill && A.itemList) {
|
|
4054
4054
|
let J;
|
|
@@ -4166,8 +4166,8 @@ const Bs = (e, t, n) => {
|
|
|
4166
4166
|
if (c) {
|
|
4167
4167
|
if (W.domain = c.siteURL, W.paymentMethods = c.paymentMode ? W.paymentMethods : null, W.companyInfo.companyName = c.companyName, W.companyInfo.companyEmail = c.email, W.companyInfo.companyAddress = c.address, W.companyInfo.companyContact = c.mobile, W.customerInfo.custName = c.custName ? u : null, W.tokenId = c.token ? W.tokenId : null, c.isPayQR && c.upiId && c.upiId !== "" && (W.upiId = c.upiId), W.gstNo = c.gst ? W.gst : null, W.footerMessage = c.footerMessage, W.orderFrom = (d = g.subOrderFrom) == null ? void 0 : d.toUpperCase(), W.fssai = t.fssai, W.vatNo = t.vatNo, W.taxLabel = Ia(t), W.printOperatorInfo = c.printOperatorInfo === null || c.printOperatorInfo === !0, W.disabledPoweredBy = t.disabledPoweredBy === !0, W.printTime = R().format("DD-MM-YYYY hh:mm A"), g.deliveryTimestamp && (W.deliveryTimestamp = R.unix(g.deliveryTimestamp).format("DD-MM-YYYY hh:mm A")), W.itemInstructionOnBill = c.itemInstructionOnBill, W.noOfInvoice = c.noOfInvoice, W.area = g.area, W.captainName = g.captainName, !c.itemInstructionOnBill && W.itemList) {
|
|
4168
4168
|
let $;
|
|
4169
|
-
for (let
|
|
4170
|
-
$ = W.itemList[
|
|
4169
|
+
for (let V = 0; V < W.itemList.length; V++)
|
|
4170
|
+
$ = W.itemList[V], $.instruction && delete $.instruction;
|
|
4171
4171
|
}
|
|
4172
4172
|
t.enabledOutstandingOnPay && ((m = e.custoutStandingData) != null && m.balanceAmt) && (W.custoutStandingData = {
|
|
4173
4173
|
balanceAmt: e.custoutStandingData.balanceAmt
|
|
@@ -4175,19 +4175,19 @@ const Bs = (e, t, n) => {
|
|
|
4175
4175
|
let we = [];
|
|
4176
4176
|
if ((o = g.customFeilds) != null && o.length) {
|
|
4177
4177
|
let $;
|
|
4178
|
-
for (let
|
|
4179
|
-
$ = g.customFeilds[
|
|
4178
|
+
for (let V = 0; V < g.customFeilds.length; V++)
|
|
4179
|
+
$ = g.customFeilds[V], $ != null && $.customValue && ((l = $.availability) != null && l.includes("BILL")) && we.push({
|
|
4180
4180
|
customName: $.customName,
|
|
4181
4181
|
customValue: $.customValue
|
|
4182
4182
|
});
|
|
4183
4183
|
W.customFields = we;
|
|
4184
4184
|
}
|
|
4185
4185
|
if (t && t.isOld && t.isOld == !0) {
|
|
4186
|
-
let $ = null,
|
|
4187
|
-
c.companyLogo && ($ = await qt(`https://${c.companyLogo.bucket}.s3.amazonaws.com/${c.companyLogo.key}`)), c.qrcode && (
|
|
4186
|
+
let $ = null, V = null;
|
|
4187
|
+
c.companyLogo && ($ = await qt(`https://${c.companyLogo.bucket}.s3.amazonaws.com/${c.companyLogo.key}`)), c.qrcode && (V = await qt(`https://${c.qrcode.bucket}.s3.amazonaws.com/${c.qrcode.key}`));
|
|
4188
4188
|
var a = "Unknown OS";
|
|
4189
4189
|
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");
|
|
4190
|
-
let ve = { obj: W, companyLogo: $, companyQrCode:
|
|
4190
|
+
let ve = { obj: W, companyLogo: $, companyQrCode: V, paperSize: t.printerSize, Name: a };
|
|
4191
4191
|
r(ve);
|
|
4192
4192
|
}
|
|
4193
4193
|
}
|
|
@@ -4795,7 +4795,7 @@ function vh() {
|
|
|
4795
4795
|
}, t._ = n = {
|
|
4796
4796
|
// formats numbers separators, decimals places, signs, abbreviations
|
|
4797
4797
|
numberToFormat: function(l, c, u) {
|
|
4798
|
-
var f = a[t.options.currentLocale], p = !1, g = !1, b = 0, _ = "", w = 1e12, T = 1e9, M = 1e6, F = 1e3, O = "",
|
|
4798
|
+
var f = a[t.options.currentLocale], p = !1, g = !1, b = 0, _ = "", w = 1e12, T = 1e9, M = 1e6, F = 1e3, O = "", G = !1, K, te, Q, ie, W, we, $;
|
|
4799
4799
|
if (l = l || 0, te = Math.abs(l), t._.includes(c, "(") ? (p = !0, c = c.replace(/[\(|\)]/g, "")) : (t._.includes(c, "+") || t._.includes(c, "-")) && (W = t._.includes(c, "+") ? c.indexOf("+") : l < 0 ? c.indexOf("-") : -1, c = c.replace(/[\+|\-]/g, "")), t._.includes(c, "a") && (K = c.match(/a(k|m|b|t)?/), K = K ? K[1] : !1, t._.includes(c, " a") && (_ = " "), c = c.replace(new RegExp(_ + "a[kmbt]?"), ""), te >= w && !K || K === "t" ? (_ += f.abbreviations.trillion, l = l / w) : te < w && te >= T && !K || K === "b" ? (_ += f.abbreviations.billion, l = l / T) : te < T && te >= M && !K || K === "m" ? (_ += f.abbreviations.million, l = l / M) : (te < M && te >= F && !K || K === "k") && (_ += f.abbreviations.thousand, l = l / F)), t._.includes(c, "[.]") && (g = !0, c = c.replace("[.]", ".")), Q = l.toString().split(".")[0], ie = c.split(".")[1], we = c.indexOf(","), b = (c.split(".")[0].split(",")[0].match(/0/g) || []).length, ie ? (t._.includes(ie, "[") ? (ie = ie.replace("]", ""), ie = ie.split("["), O = t._.toFixed(l, ie[0].length + ie[1].length, u, ie[1].length)) : O = t._.toFixed(l, ie.length, u), Q = O.split(".")[0], t._.includes(O, ".") ? O = f.delimiters.decimal + O.split(".")[1] : O = "", g && Number(O.slice(1)) === 0 && (O = "")) : Q = t._.toFixed(l, 0, u), _ && !K && Number(Q) >= 1e3 && _ !== f.abbreviations.trillion)
|
|
4800
4800
|
switch (Q = String(Number(Q) / 1e3), _) {
|
|
4801
4801
|
case f.abbreviations.thousand:
|
|
@@ -4808,10 +4808,10 @@ function vh() {
|
|
|
4808
4808
|
_ = f.abbreviations.trillion;
|
|
4809
4809
|
break;
|
|
4810
4810
|
}
|
|
4811
|
-
if (t._.includes(Q, "-") && (Q = Q.slice(1),
|
|
4812
|
-
for (var
|
|
4811
|
+
if (t._.includes(Q, "-") && (Q = Q.slice(1), G = !0), Q.length < b)
|
|
4812
|
+
for (var V = b - Q.length; V > 0; V--)
|
|
4813
4813
|
Q = "0" + Q;
|
|
4814
|
-
return we > -1 && (Q = Q.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + f.delimiters.thousands)), c.indexOf(".") === 0 && (Q = ""), $ = Q + O + (_ || ""), p ? $ = (p &&
|
|
4814
|
+
return we > -1 && (Q = Q.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + f.delimiters.thousands)), c.indexOf(".") === 0 && (Q = ""), $ = Q + O + (_ || ""), p ? $ = (p && G ? "(" : "") + $ + (p && G ? ")" : "") : W >= 0 ? $ = W === 0 ? (G ? "-" : "+") + $ : $ + (G ? "-" : "+") : G && ($ = "-" + $), $;
|
|
4815
4815
|
},
|
|
4816
4816
|
// unformats numbers separators, decimals places, signs, abbreviations
|
|
4817
4817
|
stringToNumber: function(l) {
|
|
@@ -5317,8 +5317,8 @@ var Et;
|
|
|
5317
5317
|
for (let M = 0, F = 0; M < u; M++) {
|
|
5318
5318
|
let O = o.slice(F, F + b - f + (M < g ? 0 : 1));
|
|
5319
5319
|
F += O.length;
|
|
5320
|
-
const
|
|
5321
|
-
M < g && O.push(0), _.push(O.concat(
|
|
5320
|
+
const G = t.reedSolomonComputeRemainder(O, w);
|
|
5321
|
+
M < g && O.push(0), _.push(O.concat(G));
|
|
5322
5322
|
}
|
|
5323
5323
|
let T = [];
|
|
5324
5324
|
for (let M = 0; M < _[0].length; M++)
|
|
@@ -5679,14 +5679,14 @@ function wh(e) {
|
|
|
5679
5679
|
if (!M)
|
|
5680
5680
|
return;
|
|
5681
5681
|
let F = Wt.QrCode.encodeText(n, Ha[i]).getModules();
|
|
5682
|
-
const O = m ? ur : 0,
|
|
5682
|
+
const O = m ? ur : 0, G = F.length + O * 2, K = Qa(F, r, m, l), te = p.current, Q = K != null && te !== null && te.complete && te.naturalHeight !== 0 && te.naturalWidth !== 0;
|
|
5683
5683
|
Q && K.excavation != null && (F = Ka(F, K.excavation));
|
|
5684
5684
|
const ie = window.devicePixelRatio || 1;
|
|
5685
5685
|
T.height = T.width = r * ie;
|
|
5686
|
-
const W = r /
|
|
5687
|
-
M.scale(W, W), M.fillStyle = a, M.fillRect(0, 0,
|
|
5688
|
-
we.forEach(function(
|
|
5689
|
-
|
|
5686
|
+
const W = r / G * ie;
|
|
5687
|
+
M.scale(W, W), M.fillStyle = a, M.fillRect(0, 0, G, G), M.fillStyle = d, Th ? M.fill(new Path2D(qa(F, O))) : F.forEach(function(we, $) {
|
|
5688
|
+
we.forEach(function(V, ve) {
|
|
5689
|
+
V && M.fillRect(ve + O, $ + O, 1, 1);
|
|
5690
5690
|
});
|
|
5691
5691
|
}), Q && M.drawImage(te, K.x + O, K.y + O, K.w, K.h);
|
|
5692
5692
|
}
|
|
@@ -5934,7 +5934,7 @@ const Xe = (e) => {
|
|
|
5934
5934
|
j.invoiceVatTotal.toFixed(2)
|
|
5935
5935
|
);
|
|
5936
5936
|
return /* @__PURE__ */ s.jsx(kr, { value: I, renderAs: "canvas", size: 250 });
|
|
5937
|
-
},
|
|
5937
|
+
}, G = (x) => {
|
|
5938
5938
|
const h = [];
|
|
5939
5939
|
return (x.totalBalanceAmt || x.refundAmt || x.writeOffAmt || x.rewardAmt || x.cashCard) && (h.push(/* @__PURE__ */ s.jsx("hr", {})), x.rewardAmt && h.push(
|
|
5940
5940
|
/* @__PURE__ */ s.jsxs("h5", { className: "left-align-entity level3-bold flex-two-items", children: [
|
|
@@ -6528,31 +6528,31 @@ const Xe = (e) => {
|
|
|
6528
6528
|
/* @__PURE__ */ s.jsx("hr", {})
|
|
6529
6529
|
] }),
|
|
6530
6530
|
/* @__PURE__ */ s.jsxs("section", { className: "products-section", style: { paddingTop: "12px" }, children: [
|
|
6531
|
-
x.itemList.map((
|
|
6531
|
+
x.itemList.map((q) => {
|
|
6532
6532
|
var It;
|
|
6533
|
-
return /* @__PURE__ */ s.jsxs("div", { style:
|
|
6533
|
+
return /* @__PURE__ */ s.jsxs("div", { style: q.serviceName.startsWith("+ ") ? {} : { paddingTop: "12px" }, children: [
|
|
6534
6534
|
/* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
|
|
6535
6535
|
/* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-name ${L[l].dynamicClassname}`, style: { lineHeight: 1.2 }, children: [
|
|
6536
|
-
|
|
6537
|
-
|
|
6536
|
+
q.status === "RETURNED" ? "(R) " : "",
|
|
6537
|
+
q.serviceName.toUpperCase()
|
|
6538
6538
|
] }),
|
|
6539
6539
|
/* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-qty ${L[l].dynamicClassname}`, children: [
|
|
6540
|
-
|
|
6541
|
-
|
|
6540
|
+
q.status === "RETURNED" ? "-" : "",
|
|
6541
|
+
q.qty
|
|
6542
6542
|
] }),
|
|
6543
|
-
/* @__PURE__ */ s.jsx("h6", { className: `items products-heading-rate ${L[l].dynamicClassname}`, children:
|
|
6544
|
-
/* @__PURE__ */ s.jsx("h6", { className: `items products-heading-amt ${L[l].dynamicClassname}`, children:
|
|
6543
|
+
/* @__PURE__ */ s.jsx("h6", { className: `items products-heading-rate ${L[l].dynamicClassname}`, children: q.serviceRate ? f(q.serviceRate) : "" }),
|
|
6544
|
+
/* @__PURE__ */ s.jsx("h6", { className: `items products-heading-amt ${L[l].dynamicClassname}`, children: q.sub_total ? p(q.sub_total) : "" })
|
|
6545
6545
|
] }),
|
|
6546
|
-
(It =
|
|
6546
|
+
(It = q.addons) != null && It.length ? q.addons.map((xt) => /* @__PURE__ */ s.jsxs("div", { className: "products-heading-div", children: [
|
|
6547
6547
|
/* @__PURE__ */ s.jsx("h6", { className: `items products-heading-name ${L[l].dynamicClassname}`, style: { lineHeight: 1.2 }, children: "+ " + We(xt.serviceName) }),
|
|
6548
6548
|
/* @__PURE__ */ s.jsxs("h6", { className: `items products-heading-qty ${L[l].dynamicClassname}`, children: [
|
|
6549
|
-
|
|
6549
|
+
q.status === "RETURNED" ? "-" : "",
|
|
6550
6550
|
xt.qty
|
|
6551
6551
|
] }),
|
|
6552
6552
|
/* @__PURE__ */ s.jsx("h6", { className: `items products-heading-rate ${L[l].dynamicClassname}` }),
|
|
6553
6553
|
/* @__PURE__ */ s.jsx("h6", { className: `items products-heading-amt ${L[l].dynamicClassname}` })
|
|
6554
6554
|
] })) : "",
|
|
6555
|
-
|
|
6555
|
+
q.instruction ? /* @__PURE__ */ s.jsx("h6", { className: "left-align-entity level2-bold", children: /* @__PURE__ */ s.jsx("h6", { className: "items products-heading-addon-kot", children: " (" + q.instruction + ")" }) }) : ""
|
|
6556
6556
|
] });
|
|
6557
6557
|
}),
|
|
6558
6558
|
/* @__PURE__ */ s.jsx("hr", {})
|
|
@@ -6567,50 +6567,50 @@ const Xe = (e) => {
|
|
|
6567
6567
|
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty" })
|
|
6568
6568
|
] }) : ""
|
|
6569
6569
|
] }),
|
|
6570
|
-
(S = D.DISCOUNT_ITEMS) != null && S.length ? D.DISCOUNT_ITEMS.map((
|
|
6570
|
+
(S = D.DISCOUNT_ITEMS) != null && S.length ? D.DISCOUNT_ITEMS.map((q) => /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${Se}`, children: [
|
|
6571
6571
|
/* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
6572
6572
|
/* @__PURE__ */ s.jsx(
|
|
6573
6573
|
"span",
|
|
6574
6574
|
{
|
|
6575
6575
|
className: "spaced-text",
|
|
6576
6576
|
dangerouslySetInnerHTML: {
|
|
6577
|
-
__html: C[`disc_${
|
|
6577
|
+
__html: C[`disc_${q.discountName.toLowerCase()}`] ?? "DISC-" + q.discountName.toUpperCase()
|
|
6578
6578
|
}
|
|
6579
6579
|
}
|
|
6580
6580
|
),
|
|
6581
|
-
/* @__PURE__ */ s.jsx("span", { children: ie(
|
|
6581
|
+
/* @__PURE__ */ s.jsx("span", { children: ie(q) })
|
|
6582
6582
|
] }) }),
|
|
6583
|
-
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + p(
|
|
6583
|
+
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + p(q.discountAmt) })
|
|
6584
6584
|
] })) : "",
|
|
6585
|
-
(k = D.CATEGORY_DISCOUNT) != null && k.length ? D.CATEGORY_DISCOUNT.map((
|
|
6585
|
+
(k = D.CATEGORY_DISCOUNT) != null && k.length ? D.CATEGORY_DISCOUNT.map((q) => /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${Se}`, children: [
|
|
6586
6586
|
/* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
6587
6587
|
/* @__PURE__ */ s.jsx(
|
|
6588
6588
|
"span",
|
|
6589
6589
|
{
|
|
6590
6590
|
className: "spaced-text",
|
|
6591
6591
|
dangerouslySetInnerHTML: {
|
|
6592
|
-
__html: C[`disc_${
|
|
6592
|
+
__html: C[`disc_${q.discountName.toLowerCase()}`] ?? "DISC-" + q.discountName.toUpperCase()
|
|
6593
6593
|
}
|
|
6594
6594
|
}
|
|
6595
6595
|
),
|
|
6596
|
-
/* @__PURE__ */ s.jsx("span", { children: " @" +
|
|
6596
|
+
/* @__PURE__ */ s.jsx("span", { children: " @" + q.discountValue + "%" })
|
|
6597
6597
|
] }) }),
|
|
6598
|
-
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + p(
|
|
6598
|
+
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + p(q.discountAmt) })
|
|
6599
6599
|
] })) : "",
|
|
6600
|
-
(H = D.ITEM_DISCOUNT) != null && H.length ? D.ITEM_DISCOUNT.map((
|
|
6600
|
+
(H = D.ITEM_DISCOUNT) != null && H.length ? D.ITEM_DISCOUNT.map((q) => /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${Se}`, children: [
|
|
6601
6601
|
/* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
6602
6602
|
/* @__PURE__ */ s.jsx(
|
|
6603
6603
|
"span",
|
|
6604
6604
|
{
|
|
6605
6605
|
className: "spaced-text",
|
|
6606
6606
|
dangerouslySetInnerHTML: {
|
|
6607
|
-
__html: C[`disc_${
|
|
6607
|
+
__html: C[`disc_${q.discountName.toLowerCase()}`] ?? "DISC-" + ps(q.discountName).toUpperCase()
|
|
6608
6608
|
}
|
|
6609
6609
|
}
|
|
6610
6610
|
),
|
|
6611
|
-
/* @__PURE__ */ s.jsx("span", { children: " @" +
|
|
6611
|
+
/* @__PURE__ */ s.jsx("span", { children: " @" + q.discountValue + "%" })
|
|
6612
6612
|
] }) }),
|
|
6613
|
-
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + p(
|
|
6613
|
+
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + p(q.discountAmt) })
|
|
6614
6614
|
] })) : "",
|
|
6615
6615
|
(_e = (fe = D.SEGMENT_DISCOUNT) == null ? void 0 : fe[0]) != null && _e.discountAmt ? /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${Se}`, children: [
|
|
6616
6616
|
/* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
@@ -6668,9 +6668,9 @@ const Xe = (e) => {
|
|
|
6668
6668
|
] }),
|
|
6669
6669
|
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty" })
|
|
6670
6670
|
] }) : "",
|
|
6671
|
-
(wt = x.charges) != null && wt.length ? x.charges.map((
|
|
6672
|
-
/* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: C[`charges_${
|
|
6673
|
-
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + p(
|
|
6671
|
+
(wt = x.charges) != null && wt.length ? x.charges.map((q) => /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${Se}`, children: [
|
|
6672
|
+
/* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: C[`charges_${q.name.toLowerCase()}`] ?? q.name } }) }),
|
|
6673
|
+
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + p(q.amt) })
|
|
6674
6674
|
] }) })) : "",
|
|
6675
6675
|
x.subTotal !== x.afterCharges && x.afterCharges !== x.total ? /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${Se}`, children: [
|
|
6676
6676
|
/* @__PURE__ */ s.jsx("h5", { className: "total-qty", dangerouslySetInnerHTML: { __html: C.amt_before_tax } }),
|
|
@@ -6680,29 +6680,29 @@ const Xe = (e) => {
|
|
|
6680
6680
|
/* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: "المبلغ قبل الضريبة" }),
|
|
6681
6681
|
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty" })
|
|
6682
6682
|
] }) : "",
|
|
6683
|
-
(at = x.taxation) != null && at.length ? x.taxation.map((
|
|
6684
|
-
if (
|
|
6685
|
-
return
|
|
6683
|
+
(at = x.taxation) != null && at.length ? x.taxation.map((q) => {
|
|
6684
|
+
if (q.taxAmt)
|
|
6685
|
+
return q.taxType === "GST" ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
6686
6686
|
/* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div ${Se}`, children: [
|
|
6687
6687
|
/* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
|
|
6688
6688
|
/* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: C.cgst } }),
|
|
6689
|
-
/* @__PURE__ */ s.jsx("span", { children: "@" +
|
|
6689
|
+
/* @__PURE__ */ s.jsx("span", { children: "@" + q.tax / 2 + "%" })
|
|
6690
6690
|
] }) }),
|
|
6691
|
-
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + p(
|
|
6691
|
+
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + p(q.taxAmt / 2) })
|
|
6692
6692
|
] }),
|
|
6693
6693
|
/* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div ${Se}`, children: [
|
|
6694
6694
|
/* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
|
|
6695
6695
|
/* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: C[h.taxLabel.toLowerCase()] } }),
|
|
6696
|
-
/* @__PURE__ */ s.jsx("span", { children: "@" +
|
|
6696
|
+
/* @__PURE__ */ s.jsx("span", { children: "@" + q.tax / 2 + "%" })
|
|
6697
6697
|
] }) }),
|
|
6698
|
-
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + p(
|
|
6698
|
+
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + p(q.taxAmt / 2) })
|
|
6699
6699
|
] })
|
|
6700
6700
|
] }) : /* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div ${Se}`, children: [
|
|
6701
6701
|
/* @__PURE__ */ s.jsx("h5", { className: "total-qty", children: /* @__PURE__ */ s.jsxs("div", { className: "inline-display", children: [
|
|
6702
6702
|
/* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: C.vat } }),
|
|
6703
|
-
/* @__PURE__ */ s.jsx("span", { children: "@" +
|
|
6703
|
+
/* @__PURE__ */ s.jsx("span", { children: "@" + q.tax + "%" })
|
|
6704
6704
|
] }) }),
|
|
6705
|
-
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + p(
|
|
6705
|
+
/* @__PURE__ */ s.jsx("h5", { className: "actual-qty", children: h.curr + " " + p(q.taxAmt) })
|
|
6706
6706
|
] });
|
|
6707
6707
|
}) : "",
|
|
6708
6708
|
/* @__PURE__ */ s.jsxs("div", { className: `bottom-section-div inline-display ${Se}`, children: [
|
|
@@ -6714,7 +6714,7 @@ const Xe = (e) => {
|
|
|
6714
6714
|
/* @__PURE__ */ s.jsx("div", { className: "space-2rem" })
|
|
6715
6715
|
] }) : "" }) : ""
|
|
6716
6716
|
] });
|
|
6717
|
-
},
|
|
6717
|
+
}, V = (x, h) => {
|
|
6718
6718
|
var D, S;
|
|
6719
6719
|
let C = !1;
|
|
6720
6720
|
const j = x.distributedData;
|
|
@@ -6902,7 +6902,7 @@ const Xe = (e) => {
|
|
|
6902
6902
|
}
|
|
6903
6903
|
return h;
|
|
6904
6904
|
}, st = (x, h, C, j) => {
|
|
6905
|
-
var H, fe, _e, Ee, Re, Oe, Tt, wt, at,
|
|
6905
|
+
var H, fe, _e, Ee, Re, Oe, Tt, wt, at, q, It, xt, Jt, Xt, Cs, es, ts, Os, Ms, As, Es, Rs, ks, Ls, kt, ss, it, Lt, Pt, ns, Ps, rs, Fs, as, is, Ds, Ys, ls, os;
|
|
6906
6906
|
const I = Qe(r.customLabelsMap), D = fn(pd(r.paymentModes), "internalName"), S = (X) => {
|
|
6907
6907
|
var v;
|
|
6908
6908
|
return (v = D[X]) != null && v.displayName ? D[X].displayName.toUpperCase() : X;
|
|
@@ -6978,8 +6978,8 @@ const Xe = (e) => {
|
|
|
6978
6978
|
/* @__PURE__ */ s.jsxs("tbody", { children: [
|
|
6979
6979
|
v.itemList.map((N) => {
|
|
6980
6980
|
var le;
|
|
6981
|
-
let P = "",
|
|
6982
|
-
return Z++,
|
|
6981
|
+
let P = "", z = [];
|
|
6982
|
+
return Z++, z.push(
|
|
6983
6983
|
/* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
6984
6984
|
/* @__PURE__ */ s.jsxs("tr", { style: { lineHeight: "10px" }, className: P, children: [
|
|
6985
6985
|
/* @__PURE__ */ s.jsx("td", { className: "text-align-left", children: N.serviceRate ? Z : "" }),
|
|
@@ -6994,7 +6994,7 @@ const Xe = (e) => {
|
|
|
6994
6994
|
] })
|
|
6995
6995
|
] })
|
|
6996
6996
|
), (le = N.addons) != null && le.length && N.addons.map((ce) => {
|
|
6997
|
-
|
|
6997
|
+
z.push(
|
|
6998
6998
|
/* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
6999
6999
|
/* @__PURE__ */ s.jsxs("tr", { style: { lineHeight: "10px" }, className: "fs-8", children: [
|
|
7000
7000
|
/* @__PURE__ */ s.jsx("td", {}),
|
|
@@ -7010,7 +7010,7 @@ const Xe = (e) => {
|
|
|
7010
7010
|
] })
|
|
7011
7011
|
] })
|
|
7012
7012
|
);
|
|
7013
|
-
}),
|
|
7013
|
+
}), z;
|
|
7014
7014
|
}),
|
|
7015
7015
|
/* @__PURE__ */ s.jsx("tr", { style: { lineHeight: "10px", fontSize: "14px" }, children: /* @__PURE__ */ s.jsx("td", { colSpan: 5, children: /* @__PURE__ */ s.jsx("strong", { className: "font-weight-bold", children: `Total ${Z} Items and ${Te(ue.qty)} Quantity` }) }) })
|
|
7016
7016
|
] })
|
|
@@ -7113,7 +7113,7 @@ const Xe = (e) => {
|
|
|
7113
7113
|
] }),
|
|
7114
7114
|
/* @__PURE__ */ s.jsx("td", { className: "text-align-right", width: "50%", children: U(y.COUPON_DISCOUNT[0].discountAmt, o) })
|
|
7115
7115
|
] }) : "",
|
|
7116
|
-
(It = (
|
|
7116
|
+
(It = (q = y == null ? void 0 : y.ORDER_DISCOUNT) == null ? void 0 : q[0]) != null && It.discountAmt ? /* @__PURE__ */ s.jsxs("tr", { className: "subtotalTr", children: [
|
|
7117
7117
|
/* @__PURE__ */ s.jsxs("td", { width: "50%", children: [
|
|
7118
7118
|
/* @__PURE__ */ s.jsx(
|
|
7119
7119
|
"span",
|
|
@@ -7312,7 +7312,7 @@ const Xe = (e) => {
|
|
|
7312
7312
|
/* @__PURE__ */ s.jsx("hr", {}),
|
|
7313
7313
|
h.customFields.map((v) => /* @__PURE__ */ s.jsx("h4", { className: "left-align-entity", children: v.customName + ": " + v.customValue }))
|
|
7314
7314
|
] }) : "",
|
|
7315
|
-
h.newFormat ?
|
|
7315
|
+
h.newFormat ? V(h, I) : we(h, I),
|
|
7316
7316
|
/* @__PURE__ */ s.jsx("br", {}),
|
|
7317
7317
|
/* @__PURE__ */ s.jsxs("div", { className: `bottom-section ${L[l].dynamicClassname}`, children: [
|
|
7318
7318
|
/* @__PURE__ */ s.jsxs("div", { className: "bottom-section-div inline-display", children: [
|
|
@@ -7568,7 +7568,7 @@ const Xe = (e) => {
|
|
|
7568
7568
|
] }),
|
|
7569
7569
|
M(h)
|
|
7570
7570
|
] }),
|
|
7571
|
-
|
|
7571
|
+
G(h.averageCollection),
|
|
7572
7572
|
h.otherFields.outstandingAmt ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
7573
7573
|
/* @__PURE__ */ s.jsx("hr", {}),
|
|
7574
7574
|
/* @__PURE__ */ s.jsxs("div", { children: [
|