recaho-print-react 0.0.164 → 0.0.166

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.
@@ -4492,9 +4492,7 @@ const R2 = (s, i, o) => {
4492
4492
  }, yf = (s, i, o = {}) => new Promise(async (c, h) => {
4493
4493
  var p, d, x, u, v, b, y;
4494
4494
  try {
4495
- const { invoiceFormat: w, custName: k, custMobile: N, custAddress: B, formSchemas: T, userData: S = {} } = o;
4496
- console.log("formSchemas", T), console.log("orderData", s);
4497
- const { itemList: D } = s;
4495
+ const { invoiceFormat: w, custName: k, custMobile: N, custAddress: B, formSchemas: T, userData: S = {} } = o, { itemList: D } = s;
4498
4496
  let V = S == null ? void 0 : S.userRole;
4499
4497
  if (S.userRole == "admin" ? V = "ADMIN" : V = S == null ? void 0 : S.name, !(D != null && D.length)) return;
4500
4498
  let L = i.printerSize, F = Gl(null, { type: "BILL", siteSetting: i }, { occupiedServer: o.occupiedServer });
@@ -4529,7 +4527,7 @@ const R2 = (s, i, o) => {
4529
4527
  var q1;
4530
4528
  return Q1.customType == "GUEST" && ((q1 = Q1.availability) == null ? void 0 : q1.includes("BILL"));
4531
4529
  });
4532
- if (console.log("isguest", H1), H1 != -1 && s.noOfGuest && U1.push({
4530
+ if (H1 != -1 && s.noOfGuest && U1.push({
4533
4531
  customName: H1 ? T[H1].customName : "",
4534
4532
  customValue: s.noOfGuest
4535
4533
  }), (b = s.customFeilds) != null && b.length) {
@@ -4539,9 +4537,8 @@ const R2 = (s, i, o) => {
4539
4537
  customName: Q1.customName,
4540
4538
  customValue: Q1.customValue
4541
4539
  });
4542
- u1.customFields = U1;
4543
4540
  }
4544
- console.log("customFields :::", U1);
4541
+ u1.customFields = U1;
4545
4542
  let V1 = null, X1 = null;
4546
4543
  w.companyLogo && (V1 = await vi(`https://${w.companyLogo.bucket}.s3.amazonaws.com/${w.companyLogo.key}`)), w.qrcode && (X1 = await vi(`https://${w.qrcode.bucket}.s3.amazonaws.com/${w.qrcode.key}`));
4547
4544
  var m = "Unknown OS";
@@ -27194,7 +27191,6 @@ var Gs = Pl(), na = "normal-class";
27194
27191
  (Gs == "Android OS" || Gs === "iOS") && (na = "bold-class");
27195
27192
  const Gn = (s) => {
27196
27193
  var L1, re, Q1, q1, de;
27197
- console.log("props", s);
27198
27194
  const i = s.additionalActions ?? {}, { invoiceFormat: o = {} } = s, { cashGivenDetails: c = [] } = s, h = N3(null), m = s.settingData ? s.settingData : s.value.settingData, p = localStorage.getItem("siteId"), { staticDataKOT: d, printer: x, type: u } = s.printerDataObject, v = ((re = (L1 = s.value) == null ? void 0 : L1.settingData) == null ? void 0 : re.curr) ?? ((Q1 = s.settingData) == null ? void 0 : Q1.curr) ?? "INR";
27199
27195
  m == null || m.fontTheme;
27200
27196
  let b = s.printerDataObject.paperSize, y = Gl(
@@ -28315,7 +28311,6 @@ const Gn = (s) => {
28315
28311
  return j;
28316
28312
  }, X1 = (Q, j, h1, a1) => {
28317
28313
  var D1, Z1, ue, se, me, ie, ee, he, ye, je, P1, be, Ie, ke, ge, Qe, De, Pe, Ee, xe, M, Y, O, $, Z, p1, W, N1, H, f1, c1, k1, X, x1, j1, i1, S1, M1, E1, z1, Y1, R, m1, y1, s1;
28318
- console.log("staticData", j);
28319
28314
  const w1 = V1(m.customLabelsMap), T1 = v2(Nb(m.paymentModes), "internalName"), v1 = (A1) => {
28320
28315
  var U;
28321
28316
  return (U = T1[A1]) != null && U.displayName ? T1[A1].displayName.toUpperCase() : A1;
@@ -30139,9 +30134,7 @@ const Gn = (s) => {
30139
30134
  }
30140
30135
  }), T8 = async (s, i, o) => new Promise(async (c, h) => {
30141
30136
  try {
30142
- let m = await yf(s, i, o);
30143
- console.log("resp", m);
30144
- let p = [];
30137
+ let m = await yf(s, i, o), p = [];
30145
30138
  await new Promise(async (x) => {
30146
30139
  if (o.isSplitBill && m.obj.splitDetails && m.obj.splitDetails.length) {
30147
30140
  const u = m.obj.splitDetails.map((v, b) => new Promise((y) => {