hplx-feature-library 1.0.208 → 1.0.210

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.
@@ -1,7 +1,7 @@
1
- import { j as e, b as D, g as xn, t as Ln, K as Fe, h as kn, P as Tt, Z as Or, k as ll, a as Oa, e as hr, A as ur, c as vn, N as _n, O as Ul, E as yn, q as Vn } from "./index-Bd0CDVpH.js";
2
- import cl, { createContext as On, useContext as Lt, useState as z, forwardRef as Wn, useRef as Mr, useEffect as Ke, useCallback as Zt, useMemo as Qt, useReducer as Wa } from "react";
1
+ import { j as e, b as N, g as xn, t as Ln, K as Fe, h as kn, P as Tt, Z as Or, k as ll, a as Oa, e as hr, A as ur, c as vn, N as _n, O as Ul, E as yn, q as Vn } from "./index-Bd0CDVpH.js";
2
+ import cl, { createContext as On, useContext as Lt, useState as z, forwardRef as Wn, useRef as Mr, useEffect as Ke, useCallback as er, useMemo as Jt, useReducer as Wa } from "react";
3
3
  import { n as Ga, R as Ct, h as za, c as zn, v as an, j as nn, i as Yn } from "./common-utils-Dq5TMP7t.js";
4
- import { G as qn, a as $n, b as Un, c as bn, U as Ya, d as Zn, e as wn, f as Kn, g as Cn, h as Xn, i as Jn, j as Qn, k as jn, D as ei, l as ti, m as ri, n as li, o as ai, p as ni, q as ii, r as si, s as oi, V as ci, t as Rn, u as di, v as ui, w as fi, x as hi, y as pi, z as mi, A as gi, B as xi, C as vi, F as At, E as _i, H as yi, I as bi, T as It, W as Pn, J as Sn, K as wi, L as Ci, M as ji, P as Ri } from "./PrintModal-DrAZZYU8.js";
4
+ import { G as qn, a as $n, b as Un, c as bn, U as Ya, d as Zn, e as wn, f as Kn, g as Cn, h as Xn, i as Jn, j as Qn, k as jn, D as ei, l as ti, m as ri, n as li, o as ai, p as ni, q as ii, r as si, s as oi, V as ci, t as Rn, u as di, v as ui, w as fi, x as hi, y as pi, z as mi, A as gi, B as xi, C as vi, F as At, E as _i, H as yi, I as bi, T as It, W as Pn, J as Sn, K as wi, L as Ci, M as ji, P as Ri } from "./PrintModal-BQAOz-sR.js";
5
5
  import { d as Be } from "./dayjs.min-D52_GdfV.js";
6
6
  import { G as Pi, f as Si, h as sn, i as Ni } from "./APIAction-l6i46qgX.js";
7
7
  import { a as Di, H as Ai, D as Na, M as Da, b as Wl, S as Ii, C as Aa, O as Ia } from "./CommonConstant-Bj7SvPfU.js";
@@ -24,7 +24,7 @@ const on = {
24
24
  s.src && /* @__PURE__ */ e.jsx("img", { className: "hfl-w-[22px]", src: s.src, alt: "no-img" }),
25
25
  s.icon && /* @__PURE__ */ e.jsx("i", { className: s.icon + " hfl-text-5 ", style: on }),
26
26
  /* @__PURE__ */ e.jsx("div", { className: "hfl-text-1", children: /* @__PURE__ */ e.jsx(
27
- D,
27
+ N,
28
28
  {
29
29
  variant: s.isSelected ? "Bold" : "Regular",
30
30
  type: "Text sm",
@@ -896,62 +896,62 @@ function ms() {
896
896
  (function(d, i) {
897
897
  s.exports = i();
898
898
  })(ps, function() {
899
- var d = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, i = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, v = /\d/, w = /\d\d/, a = /\d\d?/, A = /\d*[^-_:/,()\s\d]+/, S = {}, h = function(N) {
900
- return (N = +N) + (N > 68 ? 1900 : 2e3);
901
- }, Y = function(N) {
899
+ var d = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, i = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, v = /\d/, w = /\d\d/, a = /\d\d?/, A = /\d*[^-_:/,()\s\d]+/, S = {}, h = function(D) {
900
+ return (D = +D) + (D > 68 ? 1900 : 2e3);
901
+ }, Y = function(D) {
902
902
  return function(P) {
903
- this[N] = +P;
903
+ this[D] = +P;
904
904
  };
905
- }, x = [/[+-]\d\d:?(\d\d)?|Z/, function(N) {
905
+ }, x = [/[+-]\d\d:?(\d\d)?|Z/, function(D) {
906
906
  (this.zone || (this.zone = {})).offset = function(P) {
907
907
  if (!P || P === "Z") return 0;
908
908
  var B = P.match(/([+-]|\d\d)/g), b = 60 * B[1] + (+B[2] || 0);
909
909
  return b === 0 ? 0 : B[0] === "+" ? -b : b;
910
- }(N);
911
- }], k = function(N) {
912
- var P = S[N];
910
+ }(D);
911
+ }], k = function(D) {
912
+ var P = S[D];
913
913
  return P && (P.indexOf ? P : P.s.concat(P.f));
914
- }, L = function(N, P) {
914
+ }, L = function(D, P) {
915
915
  var B, b = S.meridiem;
916
916
  if (b) {
917
- for (var te = 1; te <= 24; te += 1) if (N.indexOf(b(te, 0, P)) > -1) {
917
+ for (var te = 1; te <= 24; te += 1) if (D.indexOf(b(te, 0, P)) > -1) {
918
918
  B = te > 12;
919
919
  break;
920
920
  }
921
- } else B = N === (P ? "pm" : "PM");
921
+ } else B = D === (P ? "pm" : "PM");
922
922
  return B;
923
- }, V = { A: [A, function(N) {
924
- this.afternoon = L(N, !1);
925
- }], a: [A, function(N) {
926
- this.afternoon = L(N, !0);
927
- }], Q: [v, function(N) {
928
- this.month = 3 * (N - 1) + 1;
929
- }], S: [v, function(N) {
930
- this.milliseconds = 100 * +N;
931
- }], SS: [w, function(N) {
932
- this.milliseconds = 10 * +N;
933
- }], SSS: [/\d{3}/, function(N) {
934
- this.milliseconds = +N;
935
- }], s: [a, Y("seconds")], ss: [a, Y("seconds")], m: [a, Y("minutes")], mm: [a, Y("minutes")], H: [a, Y("hours")], h: [a, Y("hours")], HH: [a, Y("hours")], hh: [a, Y("hours")], D: [a, Y("day")], DD: [w, Y("day")], Do: [A, function(N) {
936
- var P = S.ordinal, B = N.match(/\d+/);
937
- if (this.day = B[0], P) for (var b = 1; b <= 31; b += 1) P(b).replace(/\[|\]/g, "") === N && (this.day = b);
938
- }], w: [a, Y("week")], ww: [w, Y("week")], M: [a, Y("month")], MM: [w, Y("month")], MMM: [A, function(N) {
923
+ }, V = { A: [A, function(D) {
924
+ this.afternoon = L(D, !1);
925
+ }], a: [A, function(D) {
926
+ this.afternoon = L(D, !0);
927
+ }], Q: [v, function(D) {
928
+ this.month = 3 * (D - 1) + 1;
929
+ }], S: [v, function(D) {
930
+ this.milliseconds = 100 * +D;
931
+ }], SS: [w, function(D) {
932
+ this.milliseconds = 10 * +D;
933
+ }], SSS: [/\d{3}/, function(D) {
934
+ this.milliseconds = +D;
935
+ }], s: [a, Y("seconds")], ss: [a, Y("seconds")], m: [a, Y("minutes")], mm: [a, Y("minutes")], H: [a, Y("hours")], h: [a, Y("hours")], HH: [a, Y("hours")], hh: [a, Y("hours")], D: [a, Y("day")], DD: [w, Y("day")], Do: [A, function(D) {
936
+ var P = S.ordinal, B = D.match(/\d+/);
937
+ if (this.day = B[0], P) for (var b = 1; b <= 31; b += 1) P(b).replace(/\[|\]/g, "") === D && (this.day = b);
938
+ }], w: [a, Y("week")], ww: [w, Y("week")], M: [a, Y("month")], MM: [w, Y("month")], MMM: [A, function(D) {
939
939
  var P = k("months"), B = (k("monthsShort") || P.map(function(b) {
940
940
  return b.slice(0, 3);
941
- })).indexOf(N) + 1;
941
+ })).indexOf(D) + 1;
942
942
  if (B < 1) throw new Error();
943
943
  this.month = B % 12 || B;
944
- }], MMMM: [A, function(N) {
945
- var P = k("months").indexOf(N) + 1;
944
+ }], MMMM: [A, function(D) {
945
+ var P = k("months").indexOf(D) + 1;
946
946
  if (P < 1) throw new Error();
947
947
  this.month = P % 12 || P;
948
- }], Y: [/[+-]?\d+/, Y("year")], YY: [w, function(N) {
949
- this.year = h(N);
948
+ }], Y: [/[+-]?\d+/, Y("year")], YY: [w, function(D) {
949
+ this.year = h(D);
950
950
  }], YYYY: [/\d{4}/, Y("year")], Z: x, ZZ: x };
951
- function I(N) {
951
+ function I(D) {
952
952
  var P, B;
953
- P = N, B = S && S.formats;
954
- for (var b = (N = P.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function($, O, ue) {
953
+ P = D, B = S && S.formats;
954
+ for (var b = (D = P.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function($, O, ue) {
955
955
  var we = ue && ue.toUpperCase();
956
956
  return O || B[ue] || d[ue] || B[we].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(de, Me, ie) {
957
957
  return Me || ie.slice(1);
@@ -978,8 +978,8 @@ function ms() {
978
978
  }(O), O;
979
979
  };
980
980
  }
981
- return function(N, P, B) {
982
- B.p.customParseFormat = !0, N && N.parseTwoDigitYear && (h = N.parseTwoDigitYear);
981
+ return function(D, P, B) {
982
+ B.p.customParseFormat = !0, D && D.parseTwoDigitYear && (h = D.parseTwoDigitYear);
983
983
  var b = P.prototype, te = b.parse;
984
984
  b.parse = function(H) {
985
985
  var E = H.date, W = H.utc, Q = H.args;
@@ -990,9 +990,9 @@ function ms() {
990
990
  O && (we = Q[2]), S = this.$locale(), !$ && we && (S = B.Ls[we]), this.$d = function(q, fe, M, Re) {
991
991
  try {
992
992
  if (["x", "X"].indexOf(fe) > -1) return new Date((fe === "X" ? 1e3 : 1) * q);
993
- var He = I(fe)(q), ke = He.year, pt = He.month, ft = He.day, it = He.hours, Ve = He.minutes, mt = He.seconds, St = He.milliseconds, xt = He.zone, Gt = He.week, kt = /* @__PURE__ */ new Date(), T = ft || (ke || pt ? 1 : kt.getDate()), Ie = ke || kt.getFullYear(), Ue = 0;
993
+ var He = I(fe)(q), ke = He.year, pt = He.month, ft = He.day, it = He.hours, Ve = He.minutes, mt = He.seconds, Nt = He.milliseconds, xt = He.zone, Gt = He.week, kt = /* @__PURE__ */ new Date(), T = ft || (ke || pt ? 1 : kt.getDate()), Ie = ke || kt.getFullYear(), Ue = 0;
994
994
  ke && !pt || (Ue = pt > 0 ? pt - 1 : kt.getMonth());
995
- var le, J = it || 0, K = Ve || 0, se = mt || 0, Te = St || 0;
995
+ var le, J = it || 0, K = Ve || 0, se = mt || 0, Te = Nt || 0;
996
996
  return xt ? new Date(Date.UTC(Ie, Ue, T, J, K, se, Te + 60 * xt.offset * 1e3)) : M ? new Date(Date.UTC(Ie, Ue, T, J, K, se, Te)) : (le = new Date(Ie, Ue, T, J, K, se, Te), Gt && (le = Re(le).week(Gt).toDate()), le);
997
997
  } catch {
998
998
  return /* @__PURE__ */ new Date("");
@@ -1061,7 +1061,7 @@ const In = (...s) => {
1061
1061
  order_unit_item_price: L,
1062
1062
  order_item_discount: V,
1063
1063
  order_item_service_tax: I,
1064
- order_item_service_tax_percentage: N = 0,
1064
+ order_item_service_tax_percentage: D = 0,
1065
1065
  order_item_price: P
1066
1066
  } = s;
1067
1067
  if (!u && In(
@@ -1077,7 +1077,7 @@ const In = (...s) => {
1077
1077
  if (s = {
1078
1078
  ...s,
1079
1079
  order_item_service_tax: Math.floor(
1080
- L * k * 0.01 * N
1080
+ L * k * 0.01 * D
1081
1081
  ),
1082
1082
  appnt_time: Be(Y, "hh:mm A").format("HH:mm:ss")
1083
1083
  }, s.appnt_id.length)
@@ -1339,7 +1339,7 @@ const In = (...s) => {
1339
1339
  const { handleCurrentWindow: u, setShowPatientPopModal: d, patientIDs: i, redirectionPage: v, closePrintModal: w } = s, a = Lt(Mt);
1340
1340
  if (!a)
1341
1341
  throw new Error("PatientPopupHeader must be used within an AppContext.Provider");
1342
- const { currentWindow: A, patientDetails: S, docPreference: h, billPreferences: Y, setLastBillPaymentData: x, variable: k } = a, { name: L, age: V, gender: I, image_link: N, org_person_bid_str: P, org_person_dob: B, honorific: b } = S || {};
1342
+ const { currentWindow: A, patientDetails: S, docPreference: h, billPreferences: Y, setLastBillPaymentData: x, variable: k } = a, { name: L, age: V, gender: I, image_link: D, org_person_bid_str: P, org_person_dob: B, honorific: b } = S || {};
1343
1343
  window.patientPopupClosehandler = () => {
1344
1344
  if (d(!1), w(), x({
1345
1345
  created_on: "",
@@ -1358,7 +1358,7 @@ const In = (...s) => {
1358
1358
  /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-h-8 hfl-w-8 hfl-flex-col hfl-items-center hfl-justify-center hfl-rounded hfl-bg-White_20", children: /* @__PURE__ */ e.jsx(
1359
1359
  Ln,
1360
1360
  {
1361
- url: N,
1361
+ url: D,
1362
1362
  name: "",
1363
1363
  placeholder: !1,
1364
1364
  text: !1,
@@ -1368,7 +1368,7 @@ const In = (...s) => {
1368
1368
  ) }),
1369
1369
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-col hfl-items-start hfl-text-White_20", children: [
1370
1370
  /* @__PURE__ */ e.jsxs(
1371
- D,
1371
+ N,
1372
1372
  {
1373
1373
  variant: "Bold",
1374
1374
  type: "Text sm",
@@ -1381,7 +1381,7 @@ const In = (...s) => {
1381
1381
  }
1382
1382
  ),
1383
1383
  /* @__PURE__ */ e.jsxs(
1384
- D,
1384
+ N,
1385
1385
  {
1386
1386
  variant: "Regular",
1387
1387
  type: "Text lg",
@@ -1526,7 +1526,7 @@ const In = (...s) => {
1526
1526
  ] });
1527
1527
  }, Cs = () => /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-w-[900px] hfl-flex-col hfl-p-3 ", children: [
1528
1528
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-justify-between", children: [
1529
- /* @__PURE__ */ e.jsx("div", { className: " hfl-flex", children: /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text lg", children: "Select Message Template" }) }),
1529
+ /* @__PURE__ */ e.jsx("div", { className: " hfl-flex", children: /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text lg", children: "Select Message Template" }) }),
1530
1530
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex", children: [
1531
1531
  /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-pr-2", children: /* @__PURE__ */ e.jsx(
1532
1532
  Fe,
@@ -1558,34 +1558,34 @@ const In = (...s) => {
1558
1558
  const { patientAbhaDetails: u, savePatientDetailsHandler: d, setPatientAbhaDetails: i, patientData: v } = s, { showToast: w, patientIDs: a, variable: A } = Lt(Mt) || {}, [S, h] = z(""), [Y, x] = z(""), [k, L] = z(), V = async (I = !1) => {
1559
1559
  try {
1560
1560
  if (k?.status && !I) {
1561
- const N = await ss(
1561
+ const D = await ss(
1562
1562
  k.abha_address,
1563
1563
  Y,
1564
1564
  a?.patientRoleID || "",
1565
1565
  a?.patientID || "",
1566
1566
  A
1567
1567
  );
1568
- if (N.status) {
1568
+ if (D.status) {
1569
1569
  const P = await An(a?.patientRoleID || "", a?.patientID || "", A);
1570
1570
  i(P), os(k.abha_address, A);
1571
- const B = N.PatientDetails[0].yearOfBirth ? v?.org_person_dob.replace(
1571
+ const B = D.PatientDetails[0].yearOfBirth ? v?.org_person_dob.replace(
1572
1572
  v.org_person_dob.split("-")[0],
1573
- N.PatientDetails[0].yearOfBirth
1573
+ D.PatientDetails[0].yearOfBirth
1574
1574
  ) : v?.org_person_dob;
1575
- d(N.PatientDetails[0].name, B || "");
1575
+ d(D.PatientDetails[0].name, B || "");
1576
1576
  } else
1577
- w("Error", N.error, "Error", 3e3);
1577
+ w("Error", D.error, "Error", 3e3);
1578
1578
  } else {
1579
- const N = await is(S, A);
1580
- L(N), N.status || w("Error", N.error, "Error", 3e3);
1579
+ const D = await is(S, A);
1580
+ L(D), D.status || w("Error", D.error, "Error", 3e3);
1581
1581
  }
1582
- } catch (N) {
1583
- console.error("Error while generating OTP", N);
1582
+ } catch (D) {
1583
+ console.error("Error while generating OTP", D);
1584
1584
  }
1585
1585
  };
1586
1586
  return u?.patient_details_mongo?.length ? /* @__PURE__ */ e.jsxs("div", { className: "hfl-mx-[40px] hfl-flex hfl-items-center hfl-justify-between hfl-rounded-lg hfl-bg-Purple-25 hfl-px-3 hfl-py-2 hfl-shadow-lg", children: [
1587
1587
  /* @__PURE__ */ e.jsx("div", { className: "", children: /* @__PURE__ */ e.jsxs(
1588
- D,
1588
+ N,
1589
1589
  {
1590
1590
  variant: "Medium",
1591
1591
  type: "Text lg",
@@ -1595,7 +1595,7 @@ const In = (...s) => {
1595
1595
  u.patient_details_mongo[0].abha_address,
1596
1596
  /* @__PURE__ */ e.jsx("div", { className: "hfl-h-[31px] hfl-w-[1px] hfl-bg-Gray-200" }),
1597
1597
  /* @__PURE__ */ e.jsx(
1598
- D,
1598
+ N,
1599
1599
  {
1600
1600
  variant: "Medium",
1601
1601
  type: "Text lg",
@@ -1607,7 +1607,7 @@ const In = (...s) => {
1607
1607
  }
1608
1608
  ) }),
1609
1609
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
1610
- D,
1610
+ N,
1611
1611
  {
1612
1612
  variant: "Medium",
1613
1613
  type: "Text sm",
@@ -1637,7 +1637,7 @@ const In = (...s) => {
1637
1637
  }
1638
1638
  ),
1639
1639
  k?.status && /* @__PURE__ */ e.jsxs(
1640
- D,
1640
+ N,
1641
1641
  {
1642
1642
  variant: "Regular",
1643
1643
  type: "Text sm",
@@ -1647,7 +1647,7 @@ const In = (...s) => {
1647
1647
  /* @__PURE__ */ e.jsx("div", { className: "hfl-h-[18px] hfl-w-[1px] hfl-bg-Gray-200" }),
1648
1648
  /* @__PURE__ */ e.jsx("div", { className: "hfl-h-[18px] hfl-w-[1px] hfl-bg-Gray-200" }),
1649
1649
  /* @__PURE__ */ e.jsxs(
1650
- D,
1650
+ N,
1651
1651
  {
1652
1652
  variant: "Regular",
1653
1653
  type: "Text sm",
@@ -1710,7 +1710,7 @@ const In = (...s) => {
1710
1710
  partnerConfig: L,
1711
1711
  verifyInsuranceHandler: V,
1712
1712
  policyNumberErrorMessage: I,
1713
- selectedInsuranceDetails: N,
1713
+ selectedInsuranceDetails: D,
1714
1714
  setSelectedInsuranceDetails: P,
1715
1715
  insuranceDivRef: B,
1716
1716
  patientCustomFieldData: b
@@ -1726,7 +1726,7 @@ const In = (...s) => {
1726
1726
  spouse_name: it,
1727
1727
  marital_status: Ve,
1728
1728
  married_since: mt,
1729
- spouse_blood_group: St,
1729
+ spouse_blood_group: Nt,
1730
1730
  org_person_bid_str: xt,
1731
1731
  ref_doc_name: Gt,
1732
1732
  ref_doc_spec: kt,
@@ -1739,7 +1739,7 @@ const In = (...s) => {
1739
1739
  tag: se,
1740
1740
  image_link: Te,
1741
1741
  aadhar_number: Se
1742
- } = u, [gt, nr] = z(Re), [_t, Kt] = z("Years"), [Vt, sr] = z(""), [or, fr] = z(!1), [Cr, mr] = z([]), _r = Mr(), yt = (G, _e) => {
1742
+ } = u, [gt, nr] = z(Re), [_t, Zt] = z("Years"), [Vt, sr] = z(""), [or, fr] = z(!1), [Cr, mr] = z([]), _r = Mr(), yt = (G, _e) => {
1743
1743
  d((jt) => ({ ...jt, [G]: _e })), G == "gender" && _e == "" ? S((jt) => ({
1744
1744
  ...jt,
1745
1745
  gender: "Select Gender"
@@ -1793,7 +1793,7 @@ const In = (...s) => {
1793
1793
  )), _e;
1794
1794
  } else
1795
1795
  return [];
1796
- }, Nt = (G = "") => {
1796
+ }, St = (G = "") => {
1797
1797
  const _e = G?.toLowerCase();
1798
1798
  return M !== "" ? "" : fe !== "" && Number(fe) < 0 && M === "" ? "Invalid Age" : _e === "weeks" && fe !== "" && Number(fe) < 5907 || _e === "days" && fe !== "" && Number(fe) < 9999 || _e === "months" && fe !== "" && Number(fe) < 1358 || _e === "years" && fe !== "" && Number(fe) < 114 ? "" : "Invalid Age";
1799
1799
  };
@@ -1827,7 +1827,7 @@ const In = (...s) => {
1827
1827
  custom_fields: tr
1828
1828
  };
1829
1829
  });
1830
- }, Ht = Zt(() => b?.map((G) => {
1830
+ }, Ht = er(() => b?.map((G) => {
1831
1831
  const { id: _e, type: jt, title: qt } = G || {};
1832
1832
  if (!_e || !jt || !qt) return null;
1833
1833
  const tr = u.custom_fields?.find((lr) => lr.id === _e)?.value || "";
@@ -1901,7 +1901,7 @@ const In = (...s) => {
1901
1901
  className: "-hfl-ml-2 hfl-flex hfl-w-16 hfl-items-center hfl-justify-between hfl-bg-Gray-50",
1902
1902
  onClick: () => fr((G) => !G),
1903
1903
  children: [
1904
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text md", className: "hfl-px-1 hfl-py-1 hfl-text-Gray-700", children: Vt }),
1904
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text md", className: "hfl-px-1 hfl-py-1 hfl-text-Gray-700", children: Vt }),
1905
1905
  !Vt.length && /* @__PURE__ */ e.jsx("div", { className: `${or ? "hx_up" : "hx_down"} -hfl-mr-2` })
1906
1906
  ]
1907
1907
  }
@@ -1983,7 +1983,7 @@ const In = (...s) => {
1983
1983
  ] }),
1984
1984
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-row hfl-justify-between hfl-space-x-2 hfl-pt-8", children: [
1985
1985
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-h-[40px] hfl-space-y-1", children: [
1986
- /* @__PURE__ */ e.jsx(D, { variant: "Medium", type: "Text sm", className: "hfl-pb-[1px] hfl-text-Gray-600", children: "Gender*" }),
1986
+ /* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text sm", className: "hfl-pb-[1px] hfl-text-Gray-600", children: "Gender*" }),
1987
1987
  /* @__PURE__ */ e.jsxs("div", { children: [
1988
1988
  /* @__PURE__ */ e.jsx(
1989
1989
  Oa,
@@ -2030,7 +2030,7 @@ const In = (...s) => {
2030
2030
  onBlur: () => {
2031
2031
  S((G) => ({
2032
2032
  ...G,
2033
- age: Nt(_t)
2033
+ age: St(_t)
2034
2034
  }));
2035
2035
  }
2036
2036
  },
@@ -2048,23 +2048,23 @@ const In = (...s) => {
2048
2048
  handleValChange: (G) => {
2049
2049
  yt("age", G), S((_e) => ({
2050
2050
  ..._e,
2051
- age: Nt(_t)
2051
+ age: St(_t)
2052
2052
  }));
2053
2053
  },
2054
2054
  handleSuffixValChange: (G) => {
2055
- Kt(G), S((_e) => ({
2055
+ Zt(G), S((_e) => ({
2056
2056
  ..._e,
2057
- age: Nt(G)
2057
+ age: St(G)
2058
2058
  }));
2059
2059
  },
2060
2060
  onSuffixDropdownClick: (G) => {
2061
- Kt(G.label), d((_e) => ({
2061
+ Zt(G.label), d((_e) => ({
2062
2062
  ..._e,
2063
2063
  age_selector: G.value,
2064
2064
  org_person_dob: ""
2065
2065
  })), S((_e) => ({
2066
2066
  ..._e,
2067
- age: Nt(G.value)
2067
+ age: St(G.value)
2068
2068
  }));
2069
2069
  }
2070
2070
  }
@@ -2196,7 +2196,7 @@ const In = (...s) => {
2196
2196
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-relative", children: [
2197
2197
  /* @__PURE__ */ e.jsx("span", { className: "hfl-absolute hfl-left-0 hfl-right-0 hfl-top-1/2 hfl-h-px hfl-bg-Gray-200" }),
2198
2198
  /* @__PURE__ */ e.jsx("span", { className: "hfl-relative hfl-bg-White hfl-px-4", children: /* @__PURE__ */ e.jsx(
2199
- D,
2199
+ N,
2200
2200
  {
2201
2201
  variant: "Medium",
2202
2202
  type: "Text sm",
@@ -2289,7 +2289,7 @@ const In = (...s) => {
2289
2289
  label: "Spouse Blood Group",
2290
2290
  placeholder: "Enter blood group",
2291
2291
  value: {
2292
- label: St ? Wl.find((G) => G.value === St)?.label || "Spouse Blood group" : "Blood group"
2292
+ label: Nt ? Wl.find((G) => G.value === Nt)?.label || "Spouse Blood group" : "Blood group"
2293
2293
  },
2294
2294
  onChange: (G) => {
2295
2295
  yt("spouse_blood_group", G.value);
@@ -2305,7 +2305,7 @@ const In = (...s) => {
2305
2305
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-relative", children: [
2306
2306
  /* @__PURE__ */ e.jsx("span", { className: "hfl-absolute hfl-left-0 hfl-right-0 hfl-top-1/2 hfl-h-px hfl-bg-Gray-200" }),
2307
2307
  /* @__PURE__ */ e.jsx("span", { className: "hfl-relative hfl-bg-White hfl-px-4", children: /* @__PURE__ */ e.jsx(
2308
- D,
2308
+ N,
2309
2309
  {
2310
2310
  variant: "Medium",
2311
2311
  type: "Text sm",
@@ -2556,7 +2556,7 @@ const In = (...s) => {
2556
2556
  label: "Partner Company",
2557
2557
  placeholder: "Select Partner",
2558
2558
  value: {
2559
- label: N?.partner_name ?? ""
2559
+ label: D?.partner_name ?? ""
2560
2560
  },
2561
2561
  onChange: (G) => {
2562
2562
  P((_e) => ({
@@ -2570,7 +2570,7 @@ const In = (...s) => {
2570
2570
  "data-qa": "opd-insurance"
2571
2571
  }
2572
2572
  ) }),
2573
- x && N?.partner_name && /* @__PURE__ */ e.jsxs(
2573
+ x && D?.partner_name && /* @__PURE__ */ e.jsxs(
2574
2574
  "div",
2575
2575
  {
2576
2576
  ref: B,
@@ -2582,7 +2582,7 @@ const In = (...s) => {
2582
2582
  label: "Insurance Company",
2583
2583
  placeholder: "Select Provider",
2584
2584
  value: {
2585
- label: N?.policy_company ?? "Select Provider"
2585
+ label: D?.policy_company ?? "Select Provider"
2586
2586
  },
2587
2587
  onChange: (G) => {
2588
2588
  P((_e) => ({
@@ -2608,7 +2608,7 @@ const In = (...s) => {
2608
2608
  labelColor: "hfl-text-Gray-600",
2609
2609
  labelSize: "Text sm",
2610
2610
  inputProps: {
2611
- value: N?.policy_id ?? "",
2611
+ value: D?.policy_id ?? "",
2612
2612
  placeholder: "Enter Policy Number",
2613
2613
  onChange: (G) => {
2614
2614
  P((_e) => ({
@@ -2628,7 +2628,7 @@ const In = (...s) => {
2628
2628
  className: "hfl-ml-4 hfl-px-4 hfl-py-[1.2rem]",
2629
2629
  hierarchy: "Primary",
2630
2630
  size: "md",
2631
- onClick: () => V(N),
2631
+ onClick: () => V(D),
2632
2632
  textField: u?.insurance_details?.policy_id ? "Verified" : "Verify",
2633
2633
  style: {
2634
2634
  pointerEvents: u?.insurance_details?.policy_id ? "none" : "unset"
@@ -2645,7 +2645,7 @@ const In = (...s) => {
2645
2645
  ] })
2646
2646
  ] }) });
2647
2647
  }), Ps = (s) => {
2648
- const { getPatientDetails: u, setPatientAbhaDetails: d, patientAbhaDetails: i, isPartnerServiceEnabled: v, partnerConfig: w } = s, [a, A] = z(""), [S, h] = z(!1), [Y, x] = z(!1), [k, L] = z(!1), [V, I] = z([]), [N, P] = z([]), B = Mr(null), b = Mr(null), [te, H] = z("profile"), {
2648
+ const { getPatientDetails: u, setPatientAbhaDetails: d, patientAbhaDetails: i, isPartnerServiceEnabled: v, partnerConfig: w } = s, [a, A] = z(""), [S, h] = z(!1), [Y, x] = z(!1), [k, L] = z(!1), [V, I] = z([]), [D, P] = z([]), B = Mr(null), b = Mr(null), [te, H] = z("profile"), {
2649
2649
  docPreference: E,
2650
2650
  patientDetails: W,
2651
2651
  preferences: Q,
@@ -2668,7 +2668,7 @@ const In = (...s) => {
2668
2668
  onClick: () => H(se),
2669
2669
  children: [
2670
2670
  /* @__PURE__ */ e.jsx("div", { className: Te }),
2671
- /* @__PURE__ */ e.jsx(D, { variant: "Medium", type: "Text sm", children: Se })
2671
+ /* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text sm", children: Se })
2672
2672
  ]
2673
2673
  },
2674
2674
  se
@@ -2680,7 +2680,7 @@ const In = (...s) => {
2680
2680
  } catch (se) {
2681
2681
  console.error("Error accessing camera:", se);
2682
2682
  }
2683
- }, St = (se) => {
2683
+ }, Nt = (se) => {
2684
2684
  h(!1), L(!1);
2685
2685
  const Te = se.target.files?.[0];
2686
2686
  if (!Te)
@@ -2731,9 +2731,9 @@ const In = (...s) => {
2731
2731
  }, [it?.insurance_details]), Ke(() => {
2732
2732
  const se = async (Te) => {
2733
2733
  try {
2734
- const gt = (await cs(Te, we))?.insurance_companies || {}, nr = Object.entries(gt).map(([_t, Kt]) => ({
2734
+ const gt = (await cs(Te, we))?.insurance_companies || {}, nr = Object.entries(gt).map(([_t, Zt]) => ({
2735
2735
  value: _t,
2736
- label: Kt
2736
+ label: Zt
2737
2737
  }));
2738
2738
  ie(nr);
2739
2739
  } catch (Se) {
@@ -2806,7 +2806,7 @@ const In = (...s) => {
2806
2806
  patientData: it,
2807
2807
  preferences: Q,
2808
2808
  referredByDocList: V,
2809
- throughChannelList: N,
2809
+ throughChannelList: D,
2810
2810
  showImageFromLink: kt,
2811
2811
  setValidators: pt,
2812
2812
  validators: ke,
@@ -2859,7 +2859,7 @@ const In = (...s) => {
2859
2859
  type: "file",
2860
2860
  style: { display: "none" },
2861
2861
  accept: "image/*",
2862
- onChange: St
2862
+ onChange: Nt
2863
2863
  }
2864
2864
  ),
2865
2865
  /* @__PURE__ */ e.jsx(
@@ -3082,7 +3082,7 @@ function Ns() {
3082
3082
  return f === void 0 && (f = {}), t.reduce(function(C, _) {
3083
3083
  return _(C, f);
3084
3084
  }, o);
3085
- }, N = function(t, o, f) {
3085
+ }, D = function(t, o, f) {
3086
3086
  return f === void 0 && (f = {}), t.forEach(function(p) {
3087
3087
  p(o, f);
3088
3088
  });
@@ -3237,7 +3237,7 @@ function Ns() {
3237
3237
  }, mt = function(t, o) {
3238
3238
  var f = o.column;
3239
3239
  return a({ key: "footer_" + f.id, colSpan: f.totalVisibleHeaderCount }, t);
3240
- }, St = function(t, o) {
3240
+ }, Nt = function(t, o) {
3241
3241
  return a({ key: "headerGroup_" + o.index, role: "row" }, t);
3242
3242
  }, xt = function(t, o) {
3243
3243
  return a({ key: "footerGroup_" + o.index }, t);
@@ -3248,7 +3248,7 @@ function Ns() {
3248
3248
  return a({ key: "cell_" + f.row.id + "_" + f.column.id, role: "cell" }, t);
3249
3249
  };
3250
3250
  function T() {
3251
- return { useOptions: [], stateReducers: [], useControlledState: [], columns: [], columnsDeps: [], allColumns: [], allColumnsDeps: [], accessValue: [], materializedColumns: [], materializedColumnsDeps: [], useInstanceAfterData: [], visibleColumns: [], visibleColumnsDeps: [], headerGroups: [], headerGroupsDeps: [], useInstanceBeforeDimensions: [], useInstance: [], prepareRow: [], getTableProps: [ft], getTableBodyProps: [it], getHeaderGroupProps: [St], getFooterGroupProps: [xt], getHeaderProps: [Ve], getFooterProps: [mt], getRowProps: [Gt], getCellProps: [kt], useFinalInstance: [] };
3251
+ return { useOptions: [], stateReducers: [], useControlledState: [], columns: [], columnsDeps: [], allColumns: [], allColumnsDeps: [], accessValue: [], materializedColumns: [], materializedColumnsDeps: [], useInstanceAfterData: [], visibleColumns: [], visibleColumnsDeps: [], headerGroups: [], headerGroupsDeps: [], useInstanceBeforeDimensions: [], useInstance: [], prepareRow: [], getTableProps: [ft], getTableBodyProps: [it], getHeaderGroupProps: [Nt], getFooterGroupProps: [xt], getHeaderProps: [Ve], getFooterProps: [mt], getRowProps: [Gt], getCellProps: [kt], useFinalInstance: [] };
3252
3252
  }
3253
3253
  h.resetHiddenColumns = "resetHiddenColumns", h.toggleHideColumn = "toggleHideColumn", h.setHiddenColumns = "setHiddenColumns", h.toggleHideAllColumns = "toggleHideAllColumns";
3254
3254
  var Ie = function(t) {
@@ -3320,11 +3320,11 @@ function Ns() {
3320
3320
  return t.subRows || [];
3321
3321
  }, _t = function(t, o, f) {
3322
3322
  return "" + (f ? [f.id, o].join(".") : o);
3323
- }, Kt = function(t) {
3323
+ }, Zt = function(t) {
3324
3324
  return t;
3325
3325
  };
3326
3326
  function Vt(t) {
3327
- var o = t.initialState, f = o === void 0 ? Te : o, p = t.defaultColumn, C = p === void 0 ? Se : p, _ = t.getSubRows, j = _ === void 0 ? nr : _, U = t.getRowId, X = U === void 0 ? _t : U, ee = t.stateReducer, xe = ee === void 0 ? gt : ee, pe = t.useControlledState, me = pe === void 0 ? Kt : pe;
3327
+ var o = t.initialState, f = o === void 0 ? Te : o, p = t.defaultColumn, C = p === void 0 ? Se : p, _ = t.getSubRows, j = _ === void 0 ? nr : _, U = t.getRowId, X = U === void 0 ? _t : U, ee = t.stateReducer, xe = ee === void 0 ? gt : ee, pe = t.useControlledState, me = pe === void 0 ? Zt : pe;
3328
3328
  return a({}, A(t, ["initialState", "defaultColumn", "getSubRows", "getRowId", "stateReducer", "useControlledState"]), { initialState: f, defaultColumn: C, getSubRows: j, getRowId: X, stateReducer: xe, useControlledState: me });
3329
3329
  }
3330
3330
  function sr(t, o) {
@@ -3509,14 +3509,14 @@ function Ns() {
3509
3509
  dt.autoRemove = function(t) {
3510
3510
  return !t || !t.length;
3511
3511
  };
3512
- var Nt = function(t, o, f) {
3512
+ var St = function(t, o, f) {
3513
3513
  return t.filter(function(p) {
3514
3514
  return o.some(function(C) {
3515
3515
  return p.values[C] === f;
3516
3516
  });
3517
3517
  });
3518
3518
  };
3519
- Nt.autoRemove = function(t) {
3519
+ St.autoRemove = function(t) {
3520
3520
  return t === void 0;
3521
3521
  };
3522
3522
  var zt = function(t, o, f) {
@@ -3545,7 +3545,7 @@ function Ns() {
3545
3545
  Ot.autoRemove = function(t) {
3546
3546
  return !t || typeof t[0] != "number" && typeof t[1] != "number";
3547
3547
  };
3548
- var Yt = Object.freeze({ __proto__: null, text: yr, exactText: jr, exactTextCase: gr, includes: Rr, includesAll: ct, includesSome: bt, includesValue: dt, exact: Nt, equals: zt, between: Ot });
3548
+ var Yt = Object.freeze({ __proto__: null, text: yr, exactText: jr, exactTextCase: gr, includes: Rr, includesAll: ct, includesSome: bt, includesValue: dt, exact: St, equals: zt, between: Ot });
3549
3549
  h.resetFilters = "resetFilters", h.setFilter = "setFilter", h.setAllFilters = "setAllFilters";
3550
3550
  var $t = function(t) {
3551
3551
  t.stateReducers.push(Ht), t.useInstance.push(G);
@@ -3772,20 +3772,20 @@ function Ns() {
3772
3772
  return _.forEach(function(Le) {
3773
3773
  if (c.includes(Le.id)) Bt[Le.id] = nt[0] ? nt[0].values[Le.id] : null;
3774
3774
  else {
3775
- var Xt = typeof Le.aggregate == "function" ? Le.aggregate : pe[Le.aggregate] || lr[Le.aggregate];
3776
- if (Xt) {
3775
+ var Kt = typeof Le.aggregate == "function" ? Le.aggregate : pe[Le.aggregate] || lr[Le.aggregate];
3776
+ if (Kt) {
3777
3777
  var ot = nt.map(function(et) {
3778
3778
  return et.values[Le.id];
3779
3779
  }), Je = ze.map(function(et) {
3780
3780
  var Et = et.values[Le.id];
3781
3781
  if (!st && Le.aggregateValue) {
3782
- var er = typeof Le.aggregateValue == "function" ? Le.aggregateValue : pe[Le.aggregateValue] || lr[Le.aggregateValue];
3783
- if (!er) throw console.info({ column: Le }), new Error("React Table: Invalid column.aggregateValue option for column listed above");
3784
- Et = er(Et, et, Le);
3782
+ var Qt = typeof Le.aggregateValue == "function" ? Le.aggregateValue : pe[Le.aggregateValue] || lr[Le.aggregateValue];
3783
+ if (!Qt) throw console.info({ column: Le }), new Error("React Table: Invalid column.aggregateValue option for column listed above");
3784
+ Et = Qt(Et, et, Le);
3785
3785
  }
3786
3786
  return Et;
3787
3787
  });
3788
- Bt[Le.id] = Xt(Je, ot);
3788
+ Bt[Le.id] = Kt(Je, ot);
3789
3789
  } else {
3790
3790
  if (Le.aggregate) throw console.info({ column: Le }), new Error("React Table: Invalid column.aggregate option for column listed above");
3791
3791
  Bt[Le.id] = null;
@@ -4477,7 +4477,7 @@ function Ns() {
4477
4477
  var o, f = (o = document.getElementById("header-cell-" + t)) == null ? void 0 : o.offsetWidth;
4478
4478
  if (f !== void 0) return f;
4479
4479
  }
4480
- d._UNSTABLE_usePivotColumns = qr, d.actions = h, d.defaultColumn = k, d.defaultGroupByFn = gl, d.defaultOrderByFn = yl, d.defaultRenderer = Y, d.emptyRenderer = x, d.ensurePluginOrder = P, d.flexRender = W, d.functionalUpdate = B, d.loopHooks = N, d.makePropGetter = V, d.makeRenderer = E, d.reduceHooks = I, d.safeUseLayoutEffect = te, d.useAbsoluteLayout = Gl, d.useAsyncDebounce = function(t, o) {
4480
+ d._UNSTABLE_usePivotColumns = qr, d.actions = h, d.defaultColumn = k, d.defaultGroupByFn = gl, d.defaultOrderByFn = yl, d.defaultRenderer = Y, d.emptyRenderer = x, d.ensurePluginOrder = P, d.flexRender = W, d.functionalUpdate = B, d.loopHooks = D, d.makePropGetter = V, d.makeRenderer = E, d.reduceHooks = I, d.safeUseLayoutEffect = te, d.useAbsoluteLayout = Gl, d.useAsyncDebounce = function(t, o) {
4481
4481
  o === void 0 && (o = 0);
4482
4482
  var f = i.useRef({}), p = b(t), C = b(o);
4483
4483
  return i.useCallback(function() {
@@ -4550,7 +4550,7 @@ function Ns() {
4550
4550
  }
4551
4551
  return [m, R, F];
4552
4552
  }, [Qe, X, ae, me, j, _]), qe = vt[0], Xe = vt[1], Pt = vt[2];
4553
- Object.assign(_(), { rows: qe, initialRows: [].concat(qe), flatRows: Xe, rowsById: Pt }), N(j().useInstanceAfterData, _());
4553
+ Object.assign(_(), { rows: qe, initialRows: [].concat(qe), flatRows: Xe, rowsById: Pt }), D(j().useInstanceAfterData, _());
4554
4554
  var tt = i.useMemo(function() {
4555
4555
  return I(j().visibleColumns, Qe, { instance: _() }).map(function(m) {
4556
4556
  return O(m, pe);
@@ -4573,7 +4573,7 @@ function Ns() {
4573
4573
  }, [wt]);
4574
4574
  _().headers = r, _().flatHeaders = wt.reduce(function(m, R) {
4575
4575
  return [].concat(m, R.headers);
4576
- }, []), N(j().useInstanceBeforeDimensions, _());
4576
+ }, []), D(j().useInstanceBeforeDimensions, _());
4577
4577
  var l = tt.filter(function(m) {
4578
4578
  return m.isVisible;
4579
4579
  }).map(function(m) {
@@ -4585,7 +4585,7 @@ function Ns() {
4585
4585
  });
4586
4586
  }, [tt, l]), _().visibleColumns = tt;
4587
4587
  var c = sr(r), n = c[0], g = c[1], y = c[2];
4588
- return _().totalColumnsMinWidth = n, _().totalColumnsWidth = g, _().totalColumnsMaxWidth = y, N(j().useInstance, _()), [].concat(_().flatHeaders, _().allColumns).forEach(function(m) {
4588
+ return _().totalColumnsMinWidth = n, _().totalColumnsWidth = g, _().totalColumnsMaxWidth = y, D(j().useInstance, _()), [].concat(_().flatHeaders, _().allColumns).forEach(function(m) {
4589
4589
  m.render = E(_(), m), m.getHeaderProps = V(j().getHeaderProps, { instance: _(), column: m }), m.getFooterProps = V(j().getFooterProps, { instance: _(), column: m });
4590
4590
  }), _().headerGroups = i.useMemo(function() {
4591
4591
  return wt.filter(function(m, R) {
@@ -4605,8 +4605,8 @@ function Ns() {
4605
4605
  return m.allCells.find(function(F) {
4606
4606
  return F.column.id === R.id;
4607
4607
  });
4608
- }), N(j().prepareRow, m, { instance: _() });
4609
- }, [j, _, Qe, tt]), _().getTableProps = V(j().getTableProps, { instance: _() }), _().getTableBodyProps = V(j().getTableBodyProps, { instance: _() }), N(j().useFinalInstance, _()), _();
4608
+ }), D(j().prepareRow, m, { instance: _() });
4609
+ }, [j, _, Qe, tt]), _().getTableProps = V(j().getTableProps, { instance: _() }), _().getTableBodyProps = V(j().getTableBodyProps, { instance: _() }), D(j().useFinalInstance, _()), _();
4610
4610
  }, Object.defineProperty(d, "__esModule", { value: !0 });
4611
4611
  });
4612
4612
  }(il, il.exports)), il.exports;
@@ -4694,13 +4694,13 @@ function As() {
4694
4694
  return n = a({}, n, {}, R), y && (n.style = n.style ? a({}, n.style || {}, {}, y || {}) : y), m && (n.className = n.className ? n.className + " " + m : m), n.className === "" && delete n.className, n;
4695
4695
  }, {});
4696
4696
  }
4697
- function N(r, l, c) {
4698
- return typeof l == "function" ? N({}, l(r, c)) : Array.isArray(l) ? I.apply(void 0, [r].concat(l)) : I(r, l);
4697
+ function D(r, l, c) {
4698
+ return typeof l == "function" ? D({}, l(r, c)) : Array.isArray(l) ? I.apply(void 0, [r].concat(l)) : I(r, l);
4699
4699
  }
4700
4700
  var P = function(l, c) {
4701
4701
  return c === void 0 && (c = {}), function(n) {
4702
4702
  return n === void 0 && (n = {}), [].concat(l, [n]).reduce(function(g, y) {
4703
- return N(g, y, a({}, c, {
4703
+ return D(g, y, a({}, c, {
4704
4704
  userProps: n
4705
4705
  }));
4706
4706
  }, {});
@@ -4964,7 +4964,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
4964
4964
  function mt(r, l, c) {
4965
4965
  return r ? r(l, c) : typeof l > "u";
4966
4966
  }
4967
- function St() {
4967
+ function Nt() {
4968
4968
  throw new Error("React-Table: You have not called prepareRow(row) one or more rows you are attempting to render.");
4969
4969
  }
4970
4970
  var xt = null;
@@ -5074,13 +5074,13 @@ This usually means you need to need to name your plugin hook by setting the 'plu
5074
5074
  };
5075
5075
  }
5076
5076
  x.resetHiddenColumns = "resetHiddenColumns", x.toggleHideColumn = "toggleHideColumn", x.setHiddenColumns = "setHiddenColumns", x.toggleHideAllColumns = "toggleHideAllColumns";
5077
- var Kt = function(l) {
5077
+ var Zt = function(l) {
5078
5078
  l.getToggleHiddenProps = [Vt], l.getToggleHideAllColumnsProps = [sr], l.stateReducers.push(or), l.useInstanceBeforeDimensions.push(fr), l.headerGroupsDeps.push(function(c, n) {
5079
5079
  var g = n.instance;
5080
5080
  return [].concat(c, [g.state.hiddenColumns]);
5081
5081
  }), l.useInstance.push(Cr);
5082
5082
  };
5083
- Kt.pluginName = "useColumnVisibility";
5083
+ Zt.pluginName = "useColumnVisibility";
5084
5084
  var Vt = function(l, c) {
5085
5085
  var n = c.column;
5086
5086
  return [l, {
@@ -5219,7 +5219,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
5219
5219
  var Rr = function(l) {
5220
5220
  for (var c = arguments.length, n = new Array(c > 1 ? c - 1 : 0), g = 1; g < c; g++)
5221
5221
  n[g - 1] = arguments[g];
5222
- l = gr(l), n = [Kt].concat(n);
5222
+ l = gr(l), n = [Zt].concat(n);
5223
5223
  var y = i.useRef({}), m = E(y.current);
5224
5224
  Object.assign(m(), a({}, l, {
5225
5225
  plugins: n,
@@ -5266,13 +5266,13 @@ This usually means you need to need to name your plugin hook by setting the 'plu
5266
5266
  m().allColumns = Ae;
5267
5267
  var ze = i.useMemo(function() {
5268
5268
  for (var $e = [], Ft = [], Ut = {}, ir = [].concat(Ae); ir.length; ) {
5269
- var Jt = ir.shift();
5269
+ var Xt = ir.shift();
5270
5270
  bt({
5271
5271
  data: Z,
5272
5272
  rows: $e,
5273
5273
  flatRows: Ft,
5274
5274
  rowsById: Ut,
5275
- column: Jt,
5275
+ column: Xt,
5276
5276
  getRowId: be,
5277
5277
  getSubRows: ge,
5278
5278
  accessValueHooks: R().accessValue,
@@ -5306,13 +5306,13 @@ This usually means you need to need to name your plugin hook by setting the 'plu
5306
5306
  }), $e;
5307
5307
  }, [Ae, Le]), m().allColumns = Ae;
5308
5308
  {
5309
- var Xt = Ae.filter(function($e, Ft) {
5309
+ var Kt = Ae.filter(function($e, Ft) {
5310
5310
  return Ae.findIndex(function(Ut) {
5311
5311
  return Ut.id === $e.id;
5312
5312
  }) !== Ft;
5313
5313
  });
5314
- if (Xt.length)
5315
- throw console.info(Ae), new Error('Duplicate columns were found with ids: "' + Xt.map(function($e) {
5314
+ if (Kt.length)
5315
+ throw console.info(Ae), new Error('Duplicate columns were found with ids: "' + Kt.map(function($e) {
5316
5316
  return $e.id;
5317
5317
  }).join(", ") + '" in the columns array above');
5318
5318
  }
@@ -5342,8 +5342,8 @@ This usually means you need to need to name your plugin hook by setting the 'plu
5342
5342
  // eslint-disable-next-line react-hooks/exhaustive-deps
5343
5343
  [Le, et]
5344
5344
  ), m().visibleColumns = Le;
5345
- var Et = ct(Je), er = Et[0], Er = Et[1], tl = Et[2];
5346
- return m().totalColumnsMinWidth = er, m().totalColumnsWidth = Er, m().totalColumnsMaxWidth = tl, b(R().useInstance, m()), [].concat(m().flatHeaders, m().allColumns).forEach(function($e) {
5345
+ var Et = ct(Je), Qt = Et[0], Er = Et[1], tl = Et[2];
5346
+ return m().totalColumnsMinWidth = Qt, m().totalColumnsWidth = Er, m().totalColumnsMaxWidth = tl, b(R().useInstance, m()), [].concat(m().flatHeaders, m().allColumns).forEach(function($e) {
5347
5347
  $e.render = $(m(), $e), $e.getHeaderProps = P(R().getHeaderProps, {
5348
5348
  instance: m(),
5349
5349
  column: $e
@@ -5354,9 +5354,9 @@ This usually means you need to need to name your plugin hook by setting the 'plu
5354
5354
  }), m().headerGroups = i.useMemo(function() {
5355
5355
  return ot.filter(function($e, Ft) {
5356
5356
  return $e.headers = $e.headers.filter(function(Ut) {
5357
- var ir = function Jt(Pr) {
5357
+ var ir = function Xt(Pr) {
5358
5358
  return Pr.filter(function(rr) {
5359
- return rr.headers ? Jt(rr.headers) : rr.isVisible;
5359
+ return rr.headers ? Xt(rr.headers) : rr.isVisible;
5360
5360
  }).length;
5361
5361
  };
5362
5362
  return Ut.headers ? ir(Ut.headers) : Ut.isVisible;
@@ -5429,7 +5429,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
5429
5429
  depth: be,
5430
5430
  cells: [{}]
5431
5431
  // This is a dummy cell
5432
- }, Pe.cells.map = St, Pe.cells.filter = St, Pe.cells.forEach = St, Pe.cells[0].getCellProps = St, Pe.values = {}, Ge.push(Pe), n.push(Pe), g[Ze] = Pe, Pe.originalSubRows = R(oe, ge), Pe.originalSubRows) {
5432
+ }, Pe.cells.map = Nt, Pe.cells.filter = Nt, Pe.cells.forEach = Nt, Pe.cells[0].getCellProps = Nt, Pe.values = {}, Ge.push(Pe), n.push(Pe), g[Ze] = Pe, Pe.originalSubRows = R(oe, ge), Pe.originalSubRows) {
5433
5433
  var lt = [];
5434
5434
  Pe.originalSubRows.forEach(function(ut, De) {
5435
5435
  return ye(ut, De, be + 1, Pe, lt);
@@ -5447,10 +5447,10 @@ This usually means you need to need to name your plugin hook by setting the 'plu
5447
5447
  }
5448
5448
  x.resetExpanded = "resetExpanded", x.toggleRowExpanded = "toggleRowExpanded", x.toggleAllRowsExpanded = "toggleAllRowsExpanded";
5449
5449
  var dt = function(l) {
5450
- l.getToggleAllRowsExpandedProps = [Nt], l.getToggleRowExpandedProps = [zt], l.stateReducers.push(Ot), l.useInstance.push(Yt), l.prepareRow.push($t);
5450
+ l.getToggleAllRowsExpandedProps = [St], l.getToggleRowExpandedProps = [zt], l.stateReducers.push(Ot), l.useInstance.push(Yt), l.prepareRow.push($t);
5451
5451
  };
5452
5452
  dt.pluginName = "useExpanded";
5453
- var Nt = function(l, c) {
5453
+ var St = function(l, c) {
5454
5454
  var n = c.instance;
5455
5455
  return [l, {
5456
5456
  onClick: function(y) {
@@ -5789,9 +5789,9 @@ This usually means you need to need to name your plugin hook by setting the 'plu
5789
5789
  var De = [], je = {}, Ae = function ze(nt, st) {
5790
5790
  st === void 0 && (st = 0);
5791
5791
  var Bt = nt;
5792
- return Bt = ye.reduce(function(Le, Xt) {
5793
- var ot = Xt.id, Je = Xt.value, et = y.find(function(er) {
5794
- return er.id === ot;
5792
+ return Bt = ye.reduce(function(Le, Kt) {
5793
+ var ot = Kt.id, Je = Kt.value, et = y.find(function(Qt) {
5794
+ return Qt.id === ot;
5795
5795
  });
5796
5796
  if (!et)
5797
5797
  return Le;
@@ -6019,8 +6019,8 @@ This usually means you need to need to name your plugin hook by setting the 'plu
6019
6019
  te(oe, ["useColumnOrder", "useFilters"], "useGroupBy");
6020
6020
  var lt = E(r);
6021
6021
  y.forEach(function(Je) {
6022
- var et = Je.accessor, Et = Je.defaultGroupBy, er = Je.disableGroupBy;
6023
- Je.canGroupBy = et ? ke(Je.canGroupBy, er === !0 ? !1 : void 0, Ye === !0 ? !1 : void 0, !0) : ke(Je.canGroupBy, Et, Ze, !1), Je.canGroupBy && (Je.toggleGroupBy = function() {
6022
+ var et = Je.accessor, Et = Je.defaultGroupBy, Qt = Je.disableGroupBy;
6023
+ Je.canGroupBy = et ? ke(Je.canGroupBy, Qt === !0 ? !1 : void 0, Ye === !0 ? !1 : void 0, !0) : ke(Je.canGroupBy, Et, Ze, !1), Je.canGroupBy && (Je.toggleGroupBy = function() {
6024
6024
  return r.toggleGroupBy(Je.id);
6025
6025
  }), Je.Aggregated = Je.Aggregated || Je.Cell;
6026
6026
  });
@@ -6045,9 +6045,9 @@ This usually means you need to need to name your plugin hook by setting the 'plu
6045
6045
  var je = i.useMemo(function() {
6046
6046
  if (Z || !ge.length)
6047
6047
  return [c, n, g, la, aa, n, g];
6048
- var Je = ge.filter(function(Jt) {
6048
+ var Je = ge.filter(function(Xt) {
6049
6049
  return y.find(function(Pr) {
6050
- return Pr.id === Jt;
6050
+ return Pr.id === Xt;
6051
6051
  });
6052
6052
  }), et = function(Pr, rr, Vl) {
6053
6053
  var Sr = {};
@@ -6081,7 +6081,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
6081
6081
  Sr[Wt.id] = null;
6082
6082
  }
6083
6083
  }), Sr;
6084
- }, Et = [], er = {}, Er = [], tl = {}, $e = [], Ft = {}, Ut = function Jt(Pr, rr, Vl) {
6084
+ }, Et = [], Qt = {}, Er = [], tl = {}, $e = [], Ft = {}, Ut = function Xt(Pr, rr, Vl) {
6085
6085
  if (rr === void 0 && (rr = 0), rr === Je.length)
6086
6086
  return Pr.map(function(Vr) {
6087
6087
  return a({}, Vr, {
@@ -6091,7 +6091,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
6091
6091
  var Sr = Je[rr], Wt = F(Pr, Sr), Ol = Object.entries(Wt).map(function(Vr, Sa) {
6092
6092
  var Fr = Vr[0], Nr = Vr[1], Dr = Sr + ":" + Fr;
6093
6093
  Dr = Vl ? Vl + ">" + Dr : Dr;
6094
- var rn = Jt(Nr, rr + 1, Dr), ln = rr ? ft(Nr, "leafRows") : Nr, Mn = et(ln, Nr, rr), Hn = {
6094
+ var rn = Xt(Nr, rr + 1, Dr), ln = rr ? ft(Nr, "leafRows") : Nr, Mn = et(ln, Nr, rr), Hn = {
6095
6095
  id: Dr,
6096
6096
  isGrouped: !0,
6097
6097
  groupByID: Sr,
@@ -6103,15 +6103,15 @@ This usually means you need to need to name your plugin hook by setting the 'plu
6103
6103
  index: Sa
6104
6104
  };
6105
6105
  return rn.forEach(function(xr) {
6106
- Et.push(xr), er[xr.id] = xr, xr.isGrouped ? (Er.push(xr), tl[xr.id] = xr) : ($e.push(xr), Ft[xr.id] = xr);
6106
+ Et.push(xr), Qt[xr.id] = xr, xr.isGrouped ? (Er.push(xr), tl[xr.id] = xr) : ($e.push(xr), Ft[xr.id] = xr);
6107
6107
  }), Hn;
6108
6108
  });
6109
6109
  return Ol;
6110
6110
  }, ir = Ut(c);
6111
- return ir.forEach(function(Jt) {
6112
- Et.push(Jt), er[Jt.id] = Jt, Jt.isGrouped ? (Er.push(Jt), tl[Jt.id] = Jt) : ($e.push(Jt), Ft[Jt.id] = Jt);
6113
- }), [ir, Et, er, Er, tl, $e, Ft];
6114
- }, [Z, ge, c, n, g, y, ye, F]), Ae = je[0], ze = je[1], nt = je[2], st = je[3], Bt = je[4], Le = je[5], Xt = je[6], ot = E(Ge);
6111
+ return ir.forEach(function(Xt) {
6112
+ Et.push(Xt), Qt[Xt.id] = Xt, Xt.isGrouped ? (Er.push(Xt), tl[Xt.id] = Xt) : ($e.push(Xt), Ft[Xt.id] = Xt);
6113
+ }), [ir, Et, Qt, Er, tl, $e, Ft];
6114
+ }, [Z, ge, c, n, g, y, ye, F]), Ae = je[0], ze = je[1], nt = je[2], st = je[3], Bt = je[4], Le = je[5], Kt = je[6], ot = E(Ge);
6115
6115
  Q(function() {
6116
6116
  ot() && be({
6117
6117
  type: x.resetGroupBy
@@ -6126,7 +6126,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
6126
6126
  onlyGroupedFlatRows: st,
6127
6127
  onlyGroupedRowsById: Bt,
6128
6128
  nonGroupedFlatRows: Le,
6129
- nonGroupedRowsById: Xt,
6129
+ nonGroupedRowsById: Kt,
6130
6130
  rows: Ae,
6131
6131
  flatRows: ze,
6132
6132
  rowsById: nt,
@@ -6299,8 +6299,8 @@ This usually means you need to need to name your plugin hook by setting the 'plu
6299
6299
  });
6300
6300
  }, [ge]), lt = E(r);
6301
6301
  ye.forEach(function(ze) {
6302
- var nt = ze.accessor, st = ze.canSort, Bt = ze.disableSortBy, Le = ze.id, Xt = nt ? ke(Bt === !0 ? !1 : void 0, re === !0 ? !1 : void 0, !0) : ke(Z, st, !1);
6303
- ze.canSort = Xt, ze.canSort && (ze.toggleSortBy = function(Je, et) {
6302
+ var nt = ze.accessor, st = ze.canSort, Bt = ze.disableSortBy, Le = ze.id, Kt = nt ? ke(Bt === !0 ? !1 : void 0, re === !0 ? !1 : void 0, !0) : ke(Z, st, !1);
6303
+ ze.canSort = Kt, ze.canSort && (ze.toggleSortBy = function(Je, et) {
6304
6304
  return Pe(ze.id, Je, et);
6305
6305
  }, ze.clearSortBy = function() {
6306
6306
  ge({
@@ -6326,19 +6326,19 @@ This usually means you need to need to name your plugin hook by setting the 'plu
6326
6326
  return Le.id === Bt.id;
6327
6327
  });
6328
6328
  }), st = function Bt(Le) {
6329
- var Xt = m(
6329
+ var Kt = m(
6330
6330
  Le,
6331
6331
  nt.map(function(ot) {
6332
- var Je = g.find(function(er) {
6333
- return er.id === ot.id;
6332
+ var Je = g.find(function(Qt) {
6333
+ return Qt.id === ot.id;
6334
6334
  });
6335
6335
  if (!Je)
6336
6336
  throw new Error("React-Table: Could not find a column with id: " + ot.id + " while sorting");
6337
6337
  var et = Je.sortType, Et = pt(et) || (R || {})[et] || pa[et];
6338
6338
  if (!Et)
6339
6339
  throw new Error("React-Table: Could not find a valid sortType of '" + et + "' for column '" + ot.id + "'.");
6340
- return function(er, Er) {
6341
- return Et(er, Er, ot.id, ot.desc);
6340
+ return function(Qt, Er) {
6341
+ return Et(Qt, Er, ot.id, ot.desc);
6342
6342
  };
6343
6343
  }),
6344
6344
  // Map the directions
@@ -6349,9 +6349,9 @@ This usually means you need to need to name your plugin hook by setting the 'plu
6349
6349
  return Je && Je.sortInverted ? ot.desc : !ot.desc;
6350
6350
  })
6351
6351
  );
6352
- return Xt.forEach(function(ot) {
6352
+ return Kt.forEach(function(ot) {
6353
6353
  ze.push(ot), !(!ot.subRows || ot.subRows.length === 0) && (ot.subRows = Bt(ot.subRows));
6354
- }), Xt;
6354
+ }), Kt;
6355
6355
  };
6356
6356
  return [st(c), ze];
6357
6357
  }, [F, oe, c, n, g, m, R]), De = ut[0], je = ut[1], Ae = E(Ye);
@@ -6428,8 +6428,8 @@ This usually means you need to need to name your plugin hook by setting the 'plu
6428
6428
  if (De)
6429
6429
  et = l;
6430
6430
  else {
6431
- var Et = ge * be, er = Et + ge;
6432
- et = l.slice(Et, er);
6431
+ var Et = ge * be, Qt = Et + ge;
6432
+ et = l.slice(Et, Qt);
6433
6433
  }
6434
6434
  return Z ? et : it(et, {
6435
6435
  manualExpandedKey: y,
@@ -6441,7 +6441,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
6441
6441
  type: x.gotoPage,
6442
6442
  pageIndex: et
6443
6443
  });
6444
- }, [lt]), Xt = i.useCallback(function() {
6444
+ }, [lt]), Kt = i.useCallback(function() {
6445
6445
  return Le(function(et) {
6446
6446
  return et - 1;
6447
6447
  });
@@ -6462,7 +6462,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
6462
6462
  canPreviousPage: st,
6463
6463
  canNextPage: Bt,
6464
6464
  gotoPage: Le,
6465
- previousPage: Xt,
6465
+ previousPage: Kt,
6466
6466
  nextPage: ot,
6467
6467
  setPageSize: Je
6468
6468
  });
@@ -6702,7 +6702,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
6702
6702
  });
6703
6703
  }
6704
6704
  if (l.type === x.toggleAllPageRowsSelected) {
6705
- var ut = l.value, De = n.page, je = n.rowsById, Ae = n.selectSubRows, ze = Ae === void 0 ? !0 : Ae, nt = n.isAllPageRowsSelected, st = n.getSubRows, Bt = typeof ut < "u" ? ut : !nt, Le = a({}, r.selectedRowIds), Xt = function ot(Je) {
6705
+ var ut = l.value, De = n.page, je = n.rowsById, Ae = n.selectSubRows, ze = Ae === void 0 ? !0 : Ae, nt = n.isAllPageRowsSelected, st = n.getSubRows, Bt = typeof ut < "u" ? ut : !nt, Le = a({}, r.selectedRowIds), Kt = function ot(Je) {
6706
6706
  var et = je[Je];
6707
6707
  if (et.isGrouped || (Bt ? Le[Je] = !0 : delete Le[Je]), ze && st(et))
6708
6708
  return st(et).forEach(function(Et) {
@@ -6710,7 +6710,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
6710
6710
  });
6711
6711
  };
6712
6712
  return De.forEach(function(ot) {
6713
- return Xt(ot.id);
6713
+ return Kt(ot.id);
6714
6714
  }), a({}, r, {
6715
6715
  selectedRowIds: Le
6716
6716
  });
@@ -7305,12 +7305,9 @@ const Bs = ({
7305
7305
  setTableData: A,
7306
7306
  handleRightSegment: S
7307
7307
  }) => {
7308
- const h = Mr(null), [Y, x] = z(i?.original?.service_name || ""), [k, L] = z(!1), [V, I] = z([]), [N, P] = z(!1), B = Zt(
7309
- (E) => {
7310
- h.current && !h.current.contains(E.target) && (N && v && x(""), L(!1));
7311
- },
7312
- [v, N]
7313
- );
7308
+ const h = Mr(null), [Y, x] = z(i?.original?.service_name || ""), [k, L] = z(!1), [V, I] = z([]), [D, P] = z(!1), B = (E) => {
7309
+ h.current && !h.current.contains(E.target) && (D && v && x(""), L(!1));
7310
+ };
7314
7311
  Ke(() => {
7315
7312
  x(s);
7316
7313
  }, [s]);
@@ -7436,16 +7433,16 @@ const Bs = ({
7436
7433
  handleEditRow: L,
7437
7434
  handleRightSegment: V,
7438
7435
  tableData: I,
7439
- setTableData: N,
7436
+ setTableData: D,
7440
7437
  setEditRowId: P,
7441
7438
  getBillSummarydata: B,
7442
7439
  refreshBillsList: b
7443
- } = s, te = Qt(() => I.length >= 0 && !Y ? I.map((M) => ({
7440
+ } = s, te = Jt(() => I.length >= 0 && !Y ? I.map((M) => ({
7444
7441
  ...M,
7445
7442
  order_item_service_tax: Math.floor(M?.order_item_service_tax),
7446
7443
  deleted: !1
7447
7444
  })) : [], [I]), H = () => {
7448
- N((M) => [
7445
+ D((M) => [
7449
7446
  ...M,
7450
7447
  {
7451
7448
  index: "",
@@ -7484,11 +7481,11 @@ const Bs = ({
7484
7481
  ]);
7485
7482
  };
7486
7483
  Ke(() => {
7487
- k?.length > 0 && !Y && N(k);
7484
+ k?.length > 0 && !Y && D(k);
7488
7485
  }, [k]);
7489
7486
  const E = (M, Re, He) => {
7490
7487
  const { value: ke } = M.target;
7491
- N((pt) => pt.map((ft, it) => He == it ? { ...ft, [Re]: ke } : ft));
7488
+ D((pt) => pt.map((ft, it) => He == it ? { ...ft, [Re]: ke } : ft));
7492
7489
  }, W = (M) => {
7493
7490
  P(M.id), L(M);
7494
7491
  }, Q = (M, Re, He, ke, pt) => {
@@ -7511,14 +7508,14 @@ const Bs = ({
7511
7508
  // mode,
7512
7509
  h
7513
7510
  );
7514
- He && (await B(), N((ke) => {
7511
+ He && (await B(), D((ke) => {
7515
7512
  const pt = [...ke];
7516
7513
  return pt.splice(Re, 1), pt?.length === 0 && H(), pt;
7517
7514
  }), await b()), v?.(He.status ? "Success" : "Error", He.message, He.status ? "Success" : "Error", 3e3);
7518
7515
  } catch (He) {
7519
7516
  console.log("Error while deleting row", He);
7520
7517
  }
7521
- }, $ = Qt(
7518
+ }, $ = Jt(
7522
7519
  () => [
7523
7520
  {
7524
7521
  Header: "#",
@@ -7545,7 +7542,7 @@ const Bs = ({
7545
7542
  options: i?.service_list,
7546
7543
  isDisabled: Y,
7547
7544
  handleValueChange: E,
7548
- setTableData: N,
7545
+ setTableData: D,
7549
7546
  handleRightSegment: V
7550
7547
  }
7551
7548
  )
@@ -7685,7 +7682,7 @@ const Bs = ({
7685
7682
  }
7686
7683
  ],
7687
7684
  [w, A, i?.service_list]
7688
- ), O = Qt(() => Y ? k : te, [te, k]), { getTableProps: ue, getTableBodyProps: we, headerGroups: de, rows: Me, prepareRow: ie } = ul.useTable({
7685
+ ), O = Jt(() => Y ? k : te, [te, k]), { getTableProps: ue, getTableBodyProps: we, headerGroups: de, rows: Me, prepareRow: ie } = ul.useTable({
7689
7686
  columns: $,
7690
7687
  data: O
7691
7688
  }), q = (M) => {
@@ -7697,7 +7694,7 @@ const Bs = ({
7697
7694
  {
7698
7695
  ...He.getHeaderProps(),
7699
7696
  className: "hfl-rounded hfl-border-1 hfl-border-Gray-200 hfl-bg-Blue_gray-50 hfl-px-2 hfl-py-1 hfl-text-left",
7700
- children: /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text sm", className: "hfl-text-Gray-600", children: He.render("Header") })
7697
+ children: /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text sm", className: "hfl-text-Gray-600", children: He.render("Header") })
7701
7698
  }
7702
7699
  )
7703
7700
  );
@@ -7724,7 +7721,7 @@ const Bs = ({
7724
7721
  onClick: (ft) => {
7725
7722
  pt === 6 ? (ft.stopPropagation(), V()) : W(Re);
7726
7723
  },
7727
- children: /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "", children: ke.render("Cell") })
7724
+ children: /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "", children: ke.render("Cell") })
7728
7725
  }
7729
7726
  ))
7730
7727
  }
@@ -7747,7 +7744,7 @@ const Bs = ({
7747
7744
  ) });
7748
7745
  }, Ts = () => /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-h-9 hfl-items-center hfl-gap-2 hfl-border-t-Gray-200 hfl-bg-Gray-50 hfl-p-1.5", children: [
7749
7746
  /* @__PURE__ */ e.jsx("div", { className: "hx_star hfl-text-Purple-500" }),
7750
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text xs", className: "hfl-text-1", children: "Patient has an Appointment on this day which doesn’t have a Bill" })
7747
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text xs", className: "hfl-text-1", children: "Patient has an Appointment on this day which doesn’t have a Bill" })
7751
7748
  ] }), Gs = (s) => {
7752
7749
  const { className: u, children: d, tab: i } = s, v = qa("(max-width: 1080px)");
7753
7750
  return /* @__PURE__ */ e.jsxs(
@@ -7786,7 +7783,7 @@ const Bs = ({
7786
7783
  serviceItem: L,
7787
7784
  date: V,
7788
7785
  refreshBillsList: I,
7789
- deleteLastPaymemntMode: N = !1,
7786
+ deleteLastPaymemntMode: D = !1,
7790
7787
  setDeleteLastPaymentMode: P = () => {
7791
7788
  },
7792
7789
  walletBalance: B = 0,
@@ -7803,7 +7800,7 @@ const Bs = ({
7803
7800
  fontSize: "14px",
7804
7801
  fontWeight: 400,
7805
7802
  lineHeight: "18px"
7806
- }, [He, ke] = z(""), [pt, ft] = z(""), it = Zt(
7803
+ }, [He, ke] = z(""), [pt, ft] = z(""), it = er(
7807
7804
  (le, J) => {
7808
7805
  if (P(!1), le === "payment" || le === "deposit") {
7809
7806
  const K = [...ue];
@@ -7819,8 +7816,8 @@ const Bs = ({
7819
7816
  [de, ue, ie, P]
7820
7817
  );
7821
7818
  Ke(() => {
7822
- N && it("payment", 1);
7823
- }, [N, it]), Ke(() => {
7819
+ D && it("payment", 1);
7820
+ }, [D, it]), Ke(() => {
7824
7821
  if (W) {
7825
7822
  const le = vr[W.billing?.default_payment_mode || 0] || "CASH";
7826
7823
  we((J) => [
@@ -7838,7 +7835,7 @@ const Bs = ({
7838
7835
  ]);
7839
7836
  }
7840
7837
  }, [W]);
7841
- const [Ve, mt] = z(!0), St = () => {
7838
+ const [Ve, mt] = z(!0), Nt = () => {
7842
7839
  mt((le) => !le);
7843
7840
  }, xt = [
7844
7841
  { key: "deposit", label: "Add Deposit" },
@@ -7867,7 +7864,7 @@ const Bs = ({
7867
7864
  detail: ""
7868
7865
  }
7869
7866
  ]) : le === "deposit_refund" && S && ie.length < 2 && q([...ie, { id: J, label: "CASH", value: "0", detail: "" }]);
7870
- }, T = Qt(() => {
7867
+ }, T = Jt(() => {
7871
7868
  let le = [];
7872
7869
  d?.bill_summary ? le = Object.entries(d?.bill_summary).map(([Te, Se]) => ({
7873
7870
  order_id: Se?.order_id,
@@ -7880,7 +7877,7 @@ const Bs = ({
7880
7877
  amount: Number(Te.balance_amount) || 0
7881
7878
  })) : [];
7882
7879
  return [...le, ...J].reduce((Te, Se) => Te + Se.amount, 0);
7883
- }, [d, h, i?.bill_amount_details, V]), Ie = Zt(() => B <= T ? B : T, [T, B]);
7880
+ }, [d, h, i?.bill_amount_details, V]), Ie = er(() => B <= T ? B : T, [T, B]);
7884
7881
  Ke(() => {
7885
7882
  const le = Ie();
7886
7883
  $ !== "deposit" && $ !== "deposit_refund" && we((J) => {
@@ -7913,7 +7910,7 @@ const Bs = ({
7913
7910
  i?.total_amount
7914
7911
  ]);
7915
7912
  const Ue = (le = !0, J, K, se = "") => {
7916
- const Te = ue.findIndex((_t, Kt) => Kt !== K), Se = typeof J == "string" && J?.trim() === "" ? 0 : parseInt(J) || 0, gt = Ie(), nr = ue.some((_t, Kt) => _t.label === "DEPOSIT" && Kt !== K);
7913
+ const Te = ue.findIndex((_t, Zt) => Zt !== K), Se = typeof J == "string" && J?.trim() === "" ? 0 : parseInt(J) || 0, gt = Ie(), nr = ue.some((_t, Zt) => _t.label === "DEPOSIT" && Zt !== K);
7917
7914
  if (Se >= 0) {
7918
7915
  const _t = T - Se;
7919
7916
  return ue.map((Vt, sr) => {
@@ -8028,7 +8025,7 @@ const Bs = ({
8028
8025
  }
8029
8026
  )
8030
8027
  ] }, J),
8031
- He && ue[J].label === "DEPOSIT" && /* @__PURE__ */ e.jsx(D, { className: "hfl-mt-1 hfl-text-Error-600", variant: "Regular", type: "Text xs", children: He }),
8028
+ He && ue[J].label === "DEPOSIT" && /* @__PURE__ */ e.jsx(N, { className: "hfl-mt-1 hfl-text-Error-600", variant: "Regular", type: "Text xs", children: He }),
8032
8029
  /* @__PURE__ */ e.jsx(
8033
8030
  Tt,
8034
8031
  {
@@ -8061,7 +8058,7 @@ const Bs = ({
8061
8058
  "data-qa": "payment-mode",
8062
8059
  children: [
8063
8060
  /* @__PURE__ */ e.jsx("div", { className: "hx_add-circle hfl-text-3" }),
8064
- /* @__PURE__ */ e.jsx(D, { variant: "Medium", type: "Text xs", children: "Payment Mode" })
8061
+ /* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text xs", children: "Payment Mode" })
8065
8062
  ]
8066
8063
  }
8067
8064
  ),
@@ -8159,7 +8156,7 @@ const Bs = ({
8159
8156
  $ === "discount" && a && /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-col hfl-gap-2 hfl-p-2", children: [
8160
8157
  de.map((le, J) => /* @__PURE__ */ e.jsxs("div", { className: "hfl-contents hfl-gap-1.5", children: [
8161
8158
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-justify-between", children: [
8162
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "hfl-whitespace-nowrap", children: "Item level discount:" }),
8159
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "hfl-whitespace-nowrap", children: "Item level discount:" }),
8163
8160
  /* @__PURE__ */ e.jsx(
8164
8161
  Tt,
8165
8162
  {
@@ -8174,7 +8171,7 @@ const Bs = ({
8174
8171
  )
8175
8172
  ] }),
8176
8173
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-justify-between", children: [
8177
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "hfl-whitespace-nowrap", children: "Bill Level Discount:" }),
8174
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "hfl-whitespace-nowrap", children: "Bill Level Discount:" }),
8178
8175
  /* @__PURE__ */ e.jsx(
8179
8176
  Tt,
8180
8177
  {
@@ -8236,7 +8233,7 @@ const Bs = ({
8236
8233
  disabled: !1,
8237
8234
  isMarked: Ve,
8238
8235
  text: "Refund amount as Discount",
8239
- onClick: St
8236
+ onClick: Nt
8240
8237
  }
8241
8238
  ),
8242
8239
  ie.map((le, J) => /* @__PURE__ */ e.jsxs("div", { children: [
@@ -8333,7 +8330,7 @@ const Bs = ({
8333
8330
  onClick: () => kt("refund"),
8334
8331
  children: [
8335
8332
  /* @__PURE__ */ e.jsx("div", { className: "hx_add-circle hfl-text-3" }),
8336
- /* @__PURE__ */ e.jsx(D, { variant: "Medium", type: "Text xs", children: "Refund Mode" })
8333
+ /* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text xs", children: "Refund Mode" })
8337
8334
  ]
8338
8335
  }
8339
8336
  ),
@@ -8462,7 +8459,7 @@ const Bs = ({
8462
8459
  }
8463
8460
  }
8464
8461
  ),
8465
- pt && /* @__PURE__ */ e.jsx(D, { className: "hfl-mt-1 hfl-text-Error-600", variant: "Regular", type: "Text xs", children: pt })
8462
+ pt && /* @__PURE__ */ e.jsx(N, { className: "hfl-mt-1 hfl-text-Error-600", variant: "Regular", type: "Text xs", children: pt })
8466
8463
  ] })),
8467
8464
  ie.length < 2 && /* @__PURE__ */ e.jsxs(
8468
8465
  "div",
@@ -8471,7 +8468,7 @@ const Bs = ({
8471
8468
  onClick: () => kt("deposit_refund"),
8472
8469
  children: [
8473
8470
  /* @__PURE__ */ e.jsx("div", { className: "hx_add-circle hfl-text-3" }),
8474
- /* @__PURE__ */ e.jsx(D, { variant: "Medium", type: "Text xs", children: "Refund Mode" })
8471
+ /* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text xs", children: "Refund Mode" })
8475
8472
  ]
8476
8473
  }
8477
8474
  ),
@@ -8526,23 +8523,23 @@ const Bs = ({
8526
8523
  refreshBillsList: k,
8527
8524
  walletBalance: L = 0,
8528
8525
  setRefreshWallet: V
8529
- } = s, [I, N] = z(!1), [P, B] = z(!1), b = () => {
8530
- B(!0), N(!0);
8526
+ } = s, [I, D] = z(!1), [P, B] = z(!1), b = () => {
8527
+ B(!0), D(!0);
8531
8528
  }, te = () => {
8532
- B(!0), N(!1);
8529
+ B(!0), D(!1);
8533
8530
  };
8534
8531
  return /* @__PURE__ */ e.jsxs("div", { children: [
8535
- /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-h-8 hfl-shrink-0 hfl-items-center hfl-justify-between hfl-gap-2 hfl-border-b-1 hfl-border-b-Gray-200 hfl-px-2", children: /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text md", children: "Bills Summary:" }) }),
8532
+ /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-h-8 hfl-shrink-0 hfl-items-center hfl-justify-between hfl-gap-2 hfl-border-b-1 hfl-border-b-Gray-200 hfl-px-2", children: /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text md", children: "Bills Summary:" }) }),
8536
8533
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-col hfl-items-start hfl-gap-0.5 hfl-px-3 hfl-py-2", children: [
8537
8534
  S?.total_amount !== "0" && //hfl-overflow-scroll
8538
8535
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-h-8 hfl-w-full hfl-items-center hfl-gap-[5px] hfl-rounded hfl-border-1 hfl-border-Warning-300 hfl-bg-Warning-50 hfl-px-3", children: [
8539
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: "Past Due Amount:" }),
8540
- /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-flex-1", children: /* @__PURE__ */ e.jsxs(D, { variant: "Semibold", type: "Text sm", className: "hfl-text-Warning-600", children: [
8536
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: "Past Due Amount:" }),
8537
+ /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-flex-1", children: /* @__PURE__ */ e.jsxs(N, { variant: "Semibold", type: "Text sm", className: "hfl-text-Warning-600", children: [
8541
8538
  "₹ ",
8542
8539
  S?.total_amount
8543
8540
  ] }) }),
8544
8541
  /* @__PURE__ */ e.jsx(
8545
- D,
8542
+ N,
8546
8543
  {
8547
8544
  variant: "Regular",
8548
8545
  type: "Text sm",
@@ -8563,9 +8560,9 @@ const Bs = ({
8563
8560
  },
8564
8561
  children: [
8565
8562
  /* @__PURE__ */ e.jsx("i", { className: "hx_service-appointment-filled " }),
8566
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Consultations Bill" }),
8563
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Consultations Bill" }),
8567
8564
  /* @__PURE__ */ e.jsxs(
8568
- D,
8565
+ N,
8569
8566
  {
8570
8567
  variant: "Regular",
8571
8568
  type: "Text sm",
@@ -8603,9 +8600,9 @@ const Bs = ({
8603
8600
  },
8604
8601
  children: [
8605
8602
  /* @__PURE__ */ e.jsx("i", { className: " hx_service-other-filled hfl-text-Pink-500" }),
8606
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800 ", children: "Other Services Bill" }),
8603
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800 ", children: "Other Services Bill" }),
8607
8604
  /* @__PURE__ */ e.jsxs(
8608
- D,
8605
+ N,
8609
8606
  {
8610
8607
  variant: "Regular",
8611
8608
  type: "Text sm",
@@ -8643,9 +8640,9 @@ const Bs = ({
8643
8640
  },
8644
8641
  children: [
8645
8642
  /* @__PURE__ */ e.jsx("i", { className: " hx_service-lab-filled hfl-text-Purple-600" }),
8646
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Lab Services Bill" }),
8643
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Lab Services Bill" }),
8647
8644
  /* @__PURE__ */ e.jsxs(
8648
- D,
8645
+ N,
8649
8646
  {
8650
8647
  variant: "Regular",
8651
8648
  type: "Text sm",
@@ -8674,8 +8671,8 @@ const Bs = ({
8674
8671
  )
8675
8672
  ] }),
8676
8673
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-start hfl-gap-2 hfl-self-stretch hfl-py-[7px] hfl-pr-9", children: [
8677
- /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Total Billed Amount" }),
8678
- /* @__PURE__ */ e.jsxs(D, { variant: "Semibold", type: "Text sm", className: "hfl-text-Gray-800", children: [
8674
+ /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Total Billed Amount" }),
8675
+ /* @__PURE__ */ e.jsxs(N, { variant: "Semibold", type: "Text sm", className: "hfl-text-Gray-800", children: [
8679
8676
  "₹",
8680
8677
  " ",
8681
8678
  parseInt(h.bill_summary[1]?.order_total || "0") + parseInt(h.bill_summary[2]?.order_total || "0") + parseInt(h.bill_summary[3]?.order_total || "0")
@@ -8683,7 +8680,7 @@ const Bs = ({
8683
8680
  ] }),
8684
8681
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-start hfl-gap-2 hfl-self-stretch hfl-py-[7px] hfl-pr-9", children: [
8685
8682
  /* @__PURE__ */ e.jsxs(
8686
- D,
8683
+ N,
8687
8684
  {
8688
8685
  variant: "Regular",
8689
8686
  type: "Text sm",
@@ -8704,8 +8701,8 @@ const Bs = ({
8704
8701
  children: [
8705
8702
  h && /* @__PURE__ */ e.jsxs("div", { className: "text:hfl-Gray-700 hfl-mb-3 hfl-w-[207px] hfl-rounded-lg hfl-bg-White hfl-p-3 hfl-shadow-lg", children: [
8706
8703
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-justify-between", children: [
8707
- /* @__PURE__ */ e.jsx(D, { variant: "Medium", type: "Text sm", children: "Line Item Discount" }),
8708
- /* @__PURE__ */ e.jsxs(D, { variant: "Medium", type: "Text sm", children: [
8704
+ /* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text sm", children: "Line Item Discount" }),
8705
+ /* @__PURE__ */ e.jsxs(N, { variant: "Medium", type: "Text sm", children: [
8709
8706
  "₹",
8710
8707
  " ",
8711
8708
  ["1", "2", "3"].reduce(
@@ -8714,8 +8711,8 @@ const Bs = ({
8714
8711
  )
8715
8712
  ] })
8716
8713
  ] }),
8717
- /* @__PURE__ */ e.jsx(D, { variant: "Medium", type: "Text sm", children: "Additional Discount" }),
8718
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", children: ["1", "2", "3"].map((H) => /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-justify-between", children: [
8714
+ /* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text sm", children: "Additional Discount" }),
8715
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", children: ["1", "2", "3"].map((H) => /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-justify-between", children: [
8719
8716
  /* @__PURE__ */ e.jsxs("div", { children: [
8720
8717
  H === "1" && "Consultations",
8721
8718
  H === "2" && "Lab Services",
@@ -8733,7 +8730,7 @@ const Bs = ({
8733
8730
  ]
8734
8731
  }
8735
8732
  ),
8736
- /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
8733
+ /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
8737
8734
  "₹",
8738
8735
  " - ",
8739
8736
  parseInt(h.bill_summary[1]?.order_item_sum_discount || "0") + parseInt(h.bill_summary[2]?.order_item_sum_discount || "0") + parseInt(h.bill_summary[3]?.order_item_sum_discount || "0") + parseInt(h.bill_summary[1]?.order_discount || "0") + parseInt(h.bill_summary[2]?.order_discount || "0") + parseInt(h.bill_summary[3]?.order_discount || "0")
@@ -8741,7 +8738,7 @@ const Bs = ({
8741
8738
  ] }),
8742
8739
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-start hfl-gap-2 hfl-self-stretch hfl-py-[7px] hfl-pr-9", children: [
8743
8740
  /* @__PURE__ */ e.jsx(
8744
- D,
8741
+ N,
8745
8742
  {
8746
8743
  variant: "Regular",
8747
8744
  type: "Text sm",
@@ -8749,39 +8746,39 @@ const Bs = ({
8749
8746
  children: "Tax Amount"
8750
8747
  }
8751
8748
  ),
8752
- /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
8749
+ /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
8753
8750
  "₹",
8754
8751
  " ",
8755
8752
  parseInt(h.bill_summary[1]?.order_service_tax || "0") + parseInt(h.bill_summary[2]?.order_service_tax || "0") + parseInt(h.bill_summary[3]?.order_service_tax || "0")
8756
8753
  ] })
8757
8754
  ] }),
8758
8755
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-start hfl-gap-2 hfl-self-stretch hfl-py-[7px] hfl-pr-9", children: [
8759
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Final Amount" }),
8760
- /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
8756
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Final Amount" }),
8757
+ /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
8761
8758
  "₹",
8762
8759
  " ",
8763
8760
  parseInt(h.bill_summary[1]?.net_bill_amount || "0") + parseInt(h.bill_summary[2]?.net_bill_amount || "0") + parseInt(h.bill_summary[3]?.net_bill_amount || "0")
8764
8761
  ] })
8765
8762
  ] }),
8766
8763
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-start hfl-gap-2 hfl-self-stretch hfl-py-[7px] hfl-pr-9", children: [
8767
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Received Amount" }),
8768
- /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
8764
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Received Amount" }),
8765
+ /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
8769
8766
  "₹",
8770
8767
  " ",
8771
8768
  parseInt(h.bill_summary[1]?.order_paid_amount || "0") + parseInt(h.bill_summary[2]?.order_paid_amount || "0") + parseInt(h.bill_summary[3]?.order_paid_amount || "0")
8772
8769
  ] })
8773
8770
  ] }),
8774
8771
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-start hfl-gap-2 hfl-self-stretch hfl-py-[7px] hfl-pr-9", children: [
8775
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Refund Amount" }),
8776
- /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
8772
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Refund Amount" }),
8773
+ /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
8777
8774
  "₹",
8778
8775
  " - ",
8779
8776
  parseInt(h.bill_summary[1]?.refund_amount || "0") + parseInt(h.bill_summary[2]?.refund_amount || "0") + parseInt(h.bill_summary[3]?.refund_amount || "0")
8780
8777
  ] })
8781
8778
  ] }),
8782
8779
  I && /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-start hfl-gap-2 hfl-self-stretch hfl-py-[7px]", children: [
8783
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Past Due Amount" }),
8784
- /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
8780
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Past Due Amount" }),
8781
+ /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
8785
8782
  "₹ ",
8786
8783
  S?.total_amount
8787
8784
  ] }),
@@ -8794,8 +8791,8 @@ const Bs = ({
8794
8791
  )
8795
8792
  ] }),
8796
8793
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-start hfl-gap-2 hfl-self-stretch hfl-py-[7px] hfl-pr-9", children: [
8797
- /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Total Balance" }),
8798
- /* @__PURE__ */ e.jsxs(D, { variant: "Bold", type: "Text lg", className: "hfl-text-Gray-800", children: [
8794
+ /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Total Balance" }),
8795
+ /* @__PURE__ */ e.jsxs(N, { variant: "Bold", type: "Text lg", className: "hfl-text-Gray-800", children: [
8799
8796
  "₹",
8800
8797
  " ",
8801
8798
  (parseInt(h.bill_summary[1]?.balance_amount || "0") || 0) + (parseInt(h.bill_summary[2]?.balance_amount || "0") || 0) + (parseInt(h.bill_summary[3]?.balance_amount || "0") || 0) + (I && parseInt(S?.total_amount || "0") || 0)
@@ -8862,7 +8859,7 @@ const Bs = ({
8862
8859
  setTableData: a,
8863
8860
  refreshBillsList: A,
8864
8861
  handleRevertEdit: S
8865
- } = s, { patientIDs: h, showToast: Y, doctorListArr: x, billPreferences: k, formattedService: L, ppEventProps: V, variable: I } = Lt(Mt), [N, P] = z(), B = {
8862
+ } = s, { patientIDs: h, showToast: Y, doctorListArr: x, billPreferences: k, formattedService: L, ppEventProps: V, variable: I } = Lt(Mt), [D, P] = z(), B = {
8866
8863
  bill_item_details: {
8867
8864
  doctor_name: I.window_var.doc_name_for_seg,
8868
8865
  referrer_doctor_role_id: I.window_var.doctor_role_id_for_seg,
@@ -8942,7 +8939,7 @@ const Bs = ({
8942
8939
  W();
8943
8940
  }, [b.order_item_id]), /* @__PURE__ */ e.jsxs("div", { className: "hfl-relative hfl-h-full", children: [
8944
8941
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-h-8 hfl-shrink-0 hfl-items-center hfl-justify-between hfl-gap-2 hfl-border-b-1 hfl-border-b-Gray-200 hfl-px-2", children: [
8945
- /* @__PURE__ */ e.jsx(D, { variant: "Medium", type: "Text md", className: "hfl-max-w-[300px] hfl-truncate", children: b?.service_name }),
8942
+ /* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text md", className: "hfl-max-w-[300px] hfl-truncate", children: b?.service_name }),
8946
8943
  /* @__PURE__ */ e.jsx(
8947
8944
  "div",
8948
8945
  {
@@ -9006,7 +9003,7 @@ const Bs = ({
9006
9003
  className: "hfl-hidden hfl-w-12 hfl-text-ellipsis hfl-bg-Gray-50 hfl-text-Gray-500",
9007
9004
  suffixClassName: " hfl-border-l-0 hfl-w-[270px] hfl-text-ellipsis hfl-bg-White_20",
9008
9005
  widthSufixDrpdwn: "hfl-w-[305px]",
9009
- suffixOptions: N?.referrals?.map((Q) => ({
9006
+ suffixOptions: D?.referrals?.map((Q) => ({
9010
9007
  label: Q.referralName,
9011
9008
  value: Q.referralName,
9012
9009
  referralId: Q.referralId
@@ -9088,7 +9085,7 @@ const Bs = ({
9088
9085
  setTableData: L,
9089
9086
  editRowId: V,
9090
9087
  refreshBillsList: I,
9091
- handleRevertEdit: N,
9088
+ handleRevertEdit: D,
9092
9089
  checkAppointmentForBilling: P
9093
9090
  } = s, [B, b] = z([]), te = (/* @__PURE__ */ new Date()).toLocaleString("en-US", {
9094
9091
  hour: "numeric",
@@ -9127,14 +9124,14 @@ const Bs = ({
9127
9124
  order_item_price: it,
9128
9125
  order_item_discount: Ve,
9129
9126
  service_name: mt
9130
- } = q.data, { appointment_details: St, doctor_name: xt } = He, {
9127
+ } = q.data, { appointment_details: Nt, doctor_name: xt } = He, {
9131
9128
  appnt_id: Gt,
9132
9129
  appnt_date: kt = Be().format("YYYY-MM-DD"),
9133
9130
  appnt_time: T,
9134
9131
  appnt_status: Ie,
9135
9132
  appnt_duration: Ue,
9136
9133
  doctor_role_id: le
9137
- } = St, J = (/* @__PURE__ */ new Date("1970-01-01T" + T + "Z")).toLocaleTimeString("en-US", {
9134
+ } = Nt, J = (/* @__PURE__ */ new Date("1970-01-01T" + T + "Z")).toLocaleTimeString("en-US", {
9138
9135
  timeZone: "UTC",
9139
9136
  hour12: !0,
9140
9137
  hour: "numeric",
@@ -9213,7 +9210,7 @@ const Bs = ({
9213
9210
  return /* @__PURE__ */ e.jsxs("div", { className: "hfl-relative hfl-h-full", children: [
9214
9211
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-h-8 hfl-w-[340px] hfl-shrink-0 hfl-items-center hfl-justify-between hfl-gap-2 hfl-border-b-1 hfl-border-b-Gray-200 hfl-px-2", children: [
9215
9212
  /* @__PURE__ */ e.jsx(
9216
- D,
9213
+ N,
9217
9214
  {
9218
9215
  variant: "Semibold",
9219
9216
  type: "Text md",
@@ -9227,7 +9224,7 @@ const Bs = ({
9227
9224
  {
9228
9225
  className: "hx_close hfl-flex-shrink-0 hfl-cursor-pointer hfl-text-4",
9229
9226
  onClick: () => {
9230
- Y(), N();
9227
+ Y(), D();
9231
9228
  }
9232
9229
  }
9233
9230
  )
@@ -9244,16 +9241,16 @@ const Bs = ({
9244
9241
  }));
9245
9242
  },
9246
9243
  children: [
9247
- /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", children: [
9244
+ /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", children: [
9248
9245
  "Consultation with ",
9249
9246
  q.appnt_doctor_name
9250
9247
  ] }),
9251
9248
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-gap-3", children: [
9252
- /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text sm", children: `${q.appnt_time_time} ${q.appnt_time_format}` }),
9249
+ /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text sm", children: `${q.appnt_time_time} ${q.appnt_time_format}` }),
9253
9250
  /* @__PURE__ */ e.jsx("div", { className: "hfl-h-[11px] hfl-w-[1px] hfl-bg-Gray-200" }),
9254
9251
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex", children: [
9255
9252
  /* @__PURE__ */ e.jsx("div", { className: "hx_inperson hfl-text-3" }),
9256
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", children: "In-Person" })
9253
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", children: "In-Person" })
9257
9254
  ] })
9258
9255
  ] })
9259
9256
  ]
@@ -9308,7 +9305,7 @@ const Bs = ({
9308
9305
  }
9309
9306
  ),
9310
9307
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-col hfl-gap-1.5", children: [
9311
- /* @__PURE__ */ e.jsx(D, { variant: "Medium", type: "Text sm", children: "Date & Time of Appointment" }),
9308
+ /* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text sm", children: "Date & Time of Appointment" }),
9312
9309
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-gap-2", children: [
9313
9310
  ie ? /* @__PURE__ */ e.jsx(
9314
9311
  Tt,
@@ -9379,7 +9376,7 @@ const Bs = ({
9379
9376
  }
9380
9377
  ),
9381
9378
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-col hfl-gap-1.5", children: [
9382
- /* @__PURE__ */ e.jsx(D, { variant: "Medium", type: "Text sm", children: "Type" }),
9379
+ /* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text sm", children: "Type" }),
9383
9380
  /* @__PURE__ */ e.jsx(
9384
9381
  Oa,
9385
9382
  {
@@ -9476,9 +9473,9 @@ const Bs = ({
9476
9473
  /* @__PURE__ */ e.jsx("img", { className: "hfl-w-[58px] hfl-pb-4", src: Ms, alt: "no-bills" }),
9477
9474
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-gap-1.5 hfl-text-Error-600", children: [
9478
9475
  /* @__PURE__ */ e.jsx("div", { className: "hx_error-filled hfl-h-5 hfl-w-5 " }),
9479
- /* @__PURE__ */ e.jsx(D, { variant: "Medium", type: "Text sm", children: "There is no visit/prescription on this date." })
9476
+ /* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text sm", children: "There is no visit/prescription on this date." })
9480
9477
  ] }),
9481
- /* @__PURE__ */ e.jsx(D, { variant: "Medium", type: "Text sm", children: "Bill cannot be created without a visit" })
9478
+ /* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text sm", children: "Bill cannot be created without a visit" })
9482
9479
  ] }),
9483
9480
  /* @__PURE__ */ e.jsx("div", { className: "hfl-sticky hfl-bottom-4 hfl-left-2 hfl-w-full", children: /* @__PURE__ */ e.jsx(
9484
9481
  Fe,
@@ -9490,7 +9487,7 @@ const Bs = ({
9490
9487
  icon: "Left",
9491
9488
  iconFile: "hx_arrow-left hfl-text-Gray-500",
9492
9489
  onClick: () => {
9493
- ue ? we(!1) : Y(), N();
9490
+ ue ? we(!1) : Y(), D();
9494
9491
  }
9495
9492
  }
9496
9493
  ) })
@@ -9505,7 +9502,7 @@ const Bs = ({
9505
9502
  editRowId: a,
9506
9503
  refreshBillsList: A,
9507
9504
  handleRevertEdit: S
9508
- } = s, { patientIDs: h, showToast: Y, doctorListArr: x, billPreferences: k, formattedService: L, ppEventProps: V, variable: I } = Lt(Mt) || {}, N = {
9505
+ } = s, { patientIDs: h, showToast: Y, doctorListArr: x, billPreferences: k, formattedService: L, ppEventProps: V, variable: I } = Lt(Mt) || {}, D = {
9509
9506
  bill_item_details: {
9510
9507
  appointment_details: {
9511
9508
  appnt_id: "",
@@ -9523,8 +9520,8 @@ const Bs = ({
9523
9520
  }
9524
9521
  }, [P, B] = z({
9525
9522
  ...d,
9526
- ...N
9527
- }), b = Zt(async () => {
9523
+ ...D
9524
+ }), b = er(async () => {
9528
9525
  if (d?.order_item_id)
9529
9526
  try {
9530
9527
  const H = await $a(
@@ -9539,7 +9536,7 @@ const Bs = ({
9539
9536
  service_category_id: "2",
9540
9537
  order_item_service_tax_percentage: L?.[+H.data.service_id]?.service_tax || 0,
9541
9538
  bill_item_details: {
9542
- ...N.bill_item_details,
9539
+ ...D.bill_item_details,
9543
9540
  ...H.data.bill_item_details,
9544
9541
  appointment_details: {
9545
9542
  appnt_id: "",
@@ -9560,7 +9557,7 @@ const Bs = ({
9560
9557
  } catch (H) {
9561
9558
  console.error("Error fetching bill item data:", H);
9562
9559
  }
9563
- }, [N.bill_item_details, d, L, h?.patientRoleID, I]);
9560
+ }, [D.bill_item_details, d, L, h?.patientRoleID, I]);
9564
9561
  Ke(() => {
9565
9562
  d && B((H) => ({ ...H, ...d }));
9566
9563
  }, [d]), Ke(() => {
@@ -9582,7 +9579,7 @@ const Bs = ({
9582
9579
  };
9583
9580
  return /* @__PURE__ */ e.jsxs("div", { className: "hfl-relative hfl-h-full", children: [
9584
9581
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-h-8 hfl-w-[330px] hfl-shrink-0 hfl-items-center hfl-justify-between hfl-gap-2 hfl-border-b-1 hfl-border-b-Gray-200 hfl-px-2", children: [
9585
- /* @__PURE__ */ e.jsx(D, { variant: "Medium", type: "Text lg", children: P?.service_name }),
9582
+ /* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text lg", children: P?.service_name }),
9586
9583
  /* @__PURE__ */ e.jsx(
9587
9584
  "div",
9588
9585
  {
@@ -9683,11 +9680,11 @@ function Vs() {
9683
9680
  return function(w, a, A) {
9684
9681
  var S = a.prototype;
9685
9682
  A.utc = function(I) {
9686
- var N = { date: I, utc: !0, args: arguments };
9687
- return new a(N);
9683
+ var D = { date: I, utc: !0, args: arguments };
9684
+ return new a(D);
9688
9685
  }, S.utc = function(I) {
9689
- var N = A(this.toDate(), { locale: this.$L, utc: !0 });
9690
- return I ? N.add(this.utcOffset(), d) : N;
9686
+ var D = A(this.toDate(), { locale: this.$L, utc: !0 });
9687
+ return I ? D.add(this.utcOffset(), d) : D;
9691
9688
  }, S.local = function() {
9692
9689
  return A(this.toDate(), { locale: this.$L, utc: !1 });
9693
9690
  };
@@ -9703,7 +9700,7 @@ function Vs() {
9703
9700
  } else Y.call(this);
9704
9701
  };
9705
9702
  var x = S.utcOffset;
9706
- S.utcOffset = function(I, N) {
9703
+ S.utcOffset = function(I, D) {
9707
9704
  var P = this.$utils().u;
9708
9705
  if (P(I)) return this.$u ? 0 : P(this.$offset) ? x.call(this) : this.$offset;
9709
9706
  if (typeof I == "string" && (I = function(H) {
@@ -9714,16 +9711,16 @@ function Vs() {
9714
9711
  return ce === 0 ? 0 : Q === "+" ? ce : -ce;
9715
9712
  }(I), I === null)) return this;
9716
9713
  var B = Math.abs(I) <= 16 ? 60 * I : I;
9717
- if (B === 0) return this.utc(N);
9714
+ if (B === 0) return this.utc(D);
9718
9715
  var b = this.clone();
9719
- if (N) return b.$offset = B, b.$u = !1, b;
9716
+ if (D) return b.$offset = B, b.$u = !1, b;
9720
9717
  var te = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
9721
9718
  return (b = this.local().add(B + te, d)).$offset = B, b.$x.$localOffset = te, b;
9722
9719
  };
9723
9720
  var k = S.format;
9724
9721
  S.format = function(I) {
9725
- var N = I || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
9726
- return k.call(this, N);
9722
+ var D = I || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
9723
+ return k.call(this, D);
9727
9724
  }, S.valueOf = function() {
9728
9725
  var I = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
9729
9726
  return this.$d.valueOf() - 6e4 * I;
@@ -9739,10 +9736,10 @@ function Vs() {
9739
9736
  return I === "s" && this.$offset ? A(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : L.call(this);
9740
9737
  };
9741
9738
  var V = S.diff;
9742
- S.diff = function(I, N, P) {
9743
- if (I && this.$u === I.$u) return V.call(this, I, N, P);
9739
+ S.diff = function(I, D, P) {
9740
+ if (I && this.$u === I.$u) return V.call(this, I, D, P);
9744
9741
  var B = this.local(), b = A(I).local();
9745
- return V.call(B, b, N, P);
9742
+ return V.call(B, b, D, P);
9746
9743
  };
9747
9744
  };
9748
9745
  });
@@ -9767,7 +9764,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
9767
9764
  } = s, L = Lt(Mt);
9768
9765
  if (!L)
9769
9766
  throw new Error("ServiceLevelBillSummary must be used within an AppContext.Provider");
9770
- const { patientDetails: V, patientIDs: I, billPreferences: N, setShowPrintModal: P, currentWindow: B, showPrintModal: b, variable: te } = L, H = () => {
9767
+ const { patientDetails: V, patientIDs: I, billPreferences: D, setShowPrintModal: P, currentWindow: B, showPrintModal: b, variable: te } = L, H = () => {
9771
9768
  switch (w) {
9772
9769
  case Dt[0]:
9773
9770
  return "Consultation Bill";
@@ -9827,7 +9824,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
9827
9824
  printType: "bill",
9828
9825
  details: {
9829
9826
  showPrintPreviewForBill: Q,
9830
- preferences: { ...N?.print?.bill, ...N?.org_details },
9827
+ preferences: { ...D?.print?.bill, ...D?.org_details },
9831
9828
  billSummaryDetails: fe,
9832
9829
  billServiceDetails: O,
9833
9830
  billPatientDetails: He,
@@ -9851,67 +9848,67 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
9851
9848
  onClick: () => A(ht[0])
9852
9849
  }
9853
9850
  ),
9854
- /* @__PURE__ */ e.jsxs(D, { variant: "Semibold", type: "Text sm", className: "hfl-flex hfl-items-center", children: [
9851
+ /* @__PURE__ */ e.jsxs(N, { variant: "Semibold", type: "Text sm", className: "hfl-flex hfl-items-center", children: [
9855
9852
  H(),
9856
9853
  " : ",
9857
- /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text lg", className: "hfl-text-Primary-600", children: u?.order_id_str })
9854
+ /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text lg", className: "hfl-text-Primary-600", children: u?.order_id_str })
9858
9855
  ] })
9859
9856
  ] }),
9860
9857
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-col hfl-items-start hfl-px-3 hfl-py-2", children: [
9861
9858
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-start hfl-gap-2 hfl-self-stretch hfl-py-[7px] hfl-pr-9", children: [
9862
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Gross Bill Amount" }),
9863
- /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
9859
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Gross Bill Amount" }),
9860
+ /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
9864
9861
  "₹ ",
9865
9862
  u?.order_total ?? 0
9866
9863
  ] })
9867
9864
  ] }),
9868
9865
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-start hfl-gap-2 hfl-self-stretch hfl-py-[7px] hfl-pr-9", children: [
9869
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Discount" }),
9870
- /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
9866
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Discount" }),
9867
+ /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
9871
9868
  "₹",
9872
9869
  " - ",
9873
9870
  +(u?.order_discount || 0) + +(u?.order_item_sum_discount || 0)
9874
9871
  ] })
9875
9872
  ] }),
9876
9873
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-start hfl-gap-2 hfl-self-stretch hfl-py-[7px] hfl-pr-9", children: [
9877
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Tax Amount" }),
9878
- /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
9874
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Tax Amount" }),
9875
+ /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
9879
9876
  "₹ ",
9880
9877
  u?.order_service_tax
9881
9878
  ] })
9882
9879
  ] }),
9883
9880
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-start hfl-gap-2 hfl-self-stretch hfl-py-[7px] hfl-pr-9", children: [
9884
- /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Net Amount" }),
9885
- /* @__PURE__ */ e.jsxs(D, { variant: "Semibold", type: "Text sm", className: "hfl-text-Gray-800", children: [
9881
+ /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Net Amount" }),
9882
+ /* @__PURE__ */ e.jsxs(N, { variant: "Semibold", type: "Text sm", className: "hfl-text-Gray-800", children: [
9886
9883
  "₹ ",
9887
9884
  u?.net_bill_amount
9888
9885
  ] })
9889
9886
  ] }),
9890
9887
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-start hfl-gap-2 hfl-self-stretch hfl-py-[7px] hfl-pr-9", children: [
9891
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Collected Amount" }),
9892
- /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
9888
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Collected Amount" }),
9889
+ /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
9893
9890
  "₹ ",
9894
9891
  u?.order_paid_amount
9895
9892
  ] })
9896
9893
  ] }),
9897
9894
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-start hfl-gap-2 hfl-self-stretch hfl-py-[7px] hfl-pr-9", children: [
9898
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Refund Amount" }),
9899
- /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
9895
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Refund Amount" }),
9896
+ /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
9900
9897
  "₹",
9901
9898
  " - ",
9902
9899
  u?.refund_amount
9903
9900
  ] })
9904
9901
  ] }),
9905
9902
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-start hfl-gap-2 hfl-self-stretch hfl-py-[7px] hfl-pr-9", children: [
9906
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Net Paid Amount" }),
9907
- /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", className: "hfl-text-Success-500", children: [
9903
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Net Paid Amount" }),
9904
+ /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", className: "hfl-text-Success-500", children: [
9908
9905
  "₹ ",
9909
9906
  +(u?.order_paid_amount || 0) - +(u?.refund_amount || 0)
9910
9907
  ] })
9911
9908
  ] }),
9912
9909
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-start hfl-gap-2 hfl-self-stretch hfl-py-[7px] hfl-pr-9", children: [
9913
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Total Balance Amount" }),
9914
- /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", className: "hfl-text-Warning-500 ", children: [
9910
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: "Total Balance Amount" }),
9911
+ /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", className: "hfl-text-Warning-500 ", children: [
9915
9912
  "₹ ",
9916
9913
  u?.balance_amount
9917
9914
  ] })
@@ -9974,7 +9971,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
9974
9971
  }
9975
9972
  }
9976
9973
  ),
9977
- /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text md", className: "hfl-flex hfl-items-center", children: "Deposit Amount" })
9974
+ /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text md", className: "hfl-flex hfl-items-center", children: "Deposit Amount" })
9978
9975
  ] }),
9979
9976
  /* @__PURE__ */ e.jsx(
9980
9977
  "i",
@@ -10030,7 +10027,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10030
10027
  showToast: A,
10031
10028
  // currentWindow,
10032
10029
  variable: S
10033
- } = Lt(Mt), [h, Y] = z(/* @__PURE__ */ new Date()), [x, k] = z(), [L, V] = z(ht[0]), [I, N] = z([]), [P, B] = z([]), [b, te] = z(""), [H, E] = z(), [W, Q] = z(!1), [ce, $] = z(Ba), [O, ue] = z("-1"), [we, de] = z({
10030
+ } = Lt(Mt), [h, Y] = z(/* @__PURE__ */ new Date()), [x, k] = z(), [L, V] = z(ht[0]), [I, D] = z([]), [P, B] = z([]), [b, te] = z(""), [H, E] = z(), [W, Q] = z(!1), [ce, $] = z(Ba), [O, ue] = z("-1"), [we, de] = z({
10034
10031
  bill_summary: {},
10035
10032
  status: !1,
10036
10033
  message: ""
@@ -10131,9 +10128,9 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10131
10128
  }));
10132
10129
  return [...J, ...se];
10133
10130
  }, []);
10134
- N(le);
10131
+ D(le);
10135
10132
  } else
10136
- $(Ba), N([]);
10133
+ $(Ba), D([]);
10137
10134
  } catch {
10138
10135
  console.log("error in getBillsList API Call");
10139
10136
  }
@@ -10153,7 +10150,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10153
10150
  Ke(() => {
10154
10151
  it();
10155
10152
  }, [Me]);
10156
- const Ve = Zt(async () => {
10153
+ const Ve = er(async () => {
10157
10154
  try {
10158
10155
  const T = await La(
10159
10156
  Be(h).format("YYYY-MM-DD"),
@@ -10171,7 +10168,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10171
10168
  }, [Ve]);
10172
10169
  const mt = (T = ht[0]) => {
10173
10170
  V(T);
10174
- }, St = (T) => {
10171
+ }, Nt = (T) => {
10175
10172
  switch (T?.original?.service_category.toLowerCase()) {
10176
10173
  case Dt[0].toLowerCase():
10177
10174
  mt(ht[2]);
@@ -10271,7 +10268,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10271
10268
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-ml-4 hfl-mr-1 hfl-flex hfl-flex-col hfl-gap-1 hfl-self-stretch", children: [
10272
10269
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-start hfl-justify-between", children: [
10273
10270
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-gap-3", children: [
10274
- /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text lg", className: "hfl-text-Gray-700", children: "Bill Date :" }),
10271
+ /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text lg", className: "hfl-text-Gray-700", children: "Bill Date :" }),
10275
10272
  /* @__PURE__ */ e.jsx("div", { "data-qa": "calendar", children: /* @__PURE__ */ e.jsx(
10276
10273
  Or,
10277
10274
  {
@@ -10295,10 +10292,10 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10295
10292
  )
10296
10293
  ] }),
10297
10294
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-row hfl-items-center hfl-justify-center hfl-text-Gray-700", children: [
10298
- /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text lg", children: "Deposit Amount:" }),
10295
+ /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text lg", children: "Deposit Amount:" }),
10299
10296
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-justify-center hfl-gap-1 hfl-rounded-lg hfl-bg-Gray-50 hfl-p-1", children: [
10300
10297
  /* @__PURE__ */ e.jsx("i", { className: "hx_rupee hfl-text-3 hfl-text-Success-500" }),
10301
- /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text lg", className: " hfl-text-Success-500", children: q }),
10298
+ /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text lg", className: " hfl-text-Success-500", children: q }),
10302
10299
  /* @__PURE__ */ e.jsx(
10303
10300
  Fe,
10304
10301
  {
@@ -10322,7 +10319,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10322
10319
  tableData: ce,
10323
10320
  isDisabled: !1,
10324
10321
  addBillButton: !0,
10325
- handleEditRow: St,
10322
+ handleEditRow: Nt,
10326
10323
  handleRightSegment: mt,
10327
10324
  setTableData: $,
10328
10325
  setEditRowId: ue,
@@ -10332,7 +10329,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10332
10329
  ),
10333
10330
  I && I?.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
10334
10331
  " ",
10335
- /* @__PURE__ */ e.jsxs(D, { variant: "Semibold", type: "Text lg", className: "hfl-py-3 hfl-text-Gray-700", children: [
10332
+ /* @__PURE__ */ e.jsxs(N, { variant: "Semibold", type: "Text lg", className: "hfl-py-3 hfl-text-Gray-700", children: [
10336
10333
  "Old Bill",
10337
10334
  " "
10338
10335
  ] }),
@@ -10343,7 +10340,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10343
10340
  tableData: I,
10344
10341
  isDisabled: !0,
10345
10342
  addBillButton: !1,
10346
- handleEditRow: St,
10343
+ handleEditRow: Nt,
10347
10344
  handleRightSegment: mt,
10348
10345
  setTableData: $,
10349
10346
  setEditRowId: ue,
@@ -10449,30 +10446,30 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10449
10446
  ] })
10450
10447
  ] });
10451
10448
  }, Va = (s) => {
10452
- const { appointments: u, isDisabled: d, handleAppointData: i, leftNav: v, today: w } = s, a = Zt(
10453
- (N) => {
10454
- i(N);
10449
+ const { appointments: u, isDisabled: d, handleAppointData: i, leftNav: v, today: w } = s, a = er(
10450
+ (D) => {
10451
+ i(D);
10455
10452
  },
10456
10453
  [i]
10457
- ), A = Qt(
10454
+ ), A = Jt(
10458
10455
  () => [
10459
10456
  {
10460
10457
  Header: "Date",
10461
10458
  accessor: "appnt_date",
10462
- Cell: ({ row: N }) => /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-w-[130px] hfl-items-center hfl-justify-center", children: /* @__PURE__ */ e.jsx(
10463
- D,
10459
+ Cell: ({ row: D }) => /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-w-[130px] hfl-items-center hfl-justify-center", children: /* @__PURE__ */ e.jsx(
10460
+ N,
10464
10461
  {
10465
10462
  variant: "Regular",
10466
10463
  type: "Text sm",
10467
10464
  className: ` ${d ? "" : "hfl-rounded-sm hfl-bg-Success-50 hfl-px-2 hfl-text-Success-600"} `,
10468
- children: Be(N?.original?.appnt_date).format("DD-MMM-YYYY")
10465
+ children: Be(D?.original?.appnt_date).format("DD-MMM-YYYY")
10469
10466
  }
10470
10467
  ) })
10471
10468
  },
10472
10469
  {
10473
10470
  Header: "Time",
10474
10471
  accessor: "appnt_time",
10475
- Cell: ({ row: N }) => /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: " ", children: N?.original?.appnt_time && (/* @__PURE__ */ new Date("1970-01-01T" + N?.original?.appnt_time + "Z")).toLocaleTimeString("en-US", {
10472
+ Cell: ({ row: D }) => /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: " ", children: D?.original?.appnt_time && (/* @__PURE__ */ new Date("1970-01-01T" + D?.original?.appnt_time + "Z")).toLocaleTimeString("en-US", {
10476
10473
  timeZone: "UTC",
10477
10474
  hour12: !0,
10478
10475
  hour: "numeric",
@@ -10482,26 +10479,26 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10482
10479
  {
10483
10480
  Header: "Status",
10484
10481
  accessor: "appnt_status",
10485
- Cell: ({ row: N }) => /* @__PURE__ */ e.jsx("div", { className: " hfl-flex hfl-w-[100px] hfl-items-center hfl-justify-center focus:hfl-outline-none", children: /* @__PURE__ */ e.jsx(
10486
- D,
10482
+ Cell: ({ row: D }) => /* @__PURE__ */ e.jsx("div", { className: " hfl-flex hfl-w-[100px] hfl-items-center hfl-justify-center focus:hfl-outline-none", children: /* @__PURE__ */ e.jsx(
10483
+ N,
10487
10484
  {
10488
10485
  className: " hfl-flex hfl-w-[100px] hfl-items-center focus:hfl-outline-none",
10489
10486
  variant: "Regular",
10490
10487
  type: "Text sm",
10491
- children: Fa.find((P) => P.value == N?.original?.appnt_status)?.text
10488
+ children: Fa.find((P) => P.value == D?.original?.appnt_status)?.text
10492
10489
  }
10493
10490
  ) })
10494
10491
  },
10495
10492
  {
10496
10493
  Header: "Doctor",
10497
10494
  accessor: "appnt_doctor_name",
10498
- Cell: ({ row: N }) => /* @__PURE__ */ e.jsx(
10499
- D,
10495
+ Cell: ({ row: D }) => /* @__PURE__ */ e.jsx(
10496
+ N,
10500
10497
  {
10501
10498
  className: " hfl-flex hfl-w-[316px] hfl-items-center hfl-capitalize focus:hfl-outline-none",
10502
10499
  variant: "Regular",
10503
10500
  type: "Text sm",
10504
- children: "Dr. " + N.original.appnt_doctor_name
10501
+ children: "Dr. " + D.original.appnt_doctor_name
10505
10502
  }
10506
10503
  )
10507
10504
  },
@@ -10509,7 +10506,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10509
10506
  Header: "Type",
10510
10507
  accessor: "order_unit_item_price",
10511
10508
  Cell: () => /* @__PURE__ */ e.jsx(
10512
- D,
10509
+ N,
10513
10510
  {
10514
10511
  className: " hfl-flex hfl-w-[100px] hfl-items-center focus:hfl-outline-none",
10515
10512
  variant: "Regular",
@@ -10521,22 +10518,22 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10521
10518
  {
10522
10519
  Header: "Service",
10523
10520
  accessor: "appnt_service_name",
10524
- Cell: ({ row: N }) => /* @__PURE__ */ e.jsx("div", { className: " [100px] hfl-flex hfl-items-center hfl-justify-center ", children: /* @__PURE__ */ e.jsx(
10525
- D,
10521
+ Cell: ({ row: D }) => /* @__PURE__ */ e.jsx("div", { className: " [100px] hfl-flex hfl-items-center hfl-justify-center ", children: /* @__PURE__ */ e.jsx(
10522
+ N,
10526
10523
  {
10527
10524
  variant: "Regular",
10528
10525
  type: "Text sm",
10529
10526
  className: "hfl-flex hfl-w-[116px] hfl-items-center hfl-capitalize",
10530
- children: N.original.appnt_service_name
10527
+ children: D.original.appnt_service_name
10531
10528
  }
10532
10529
  ) })
10533
10530
  },
10534
10531
  {
10535
10532
  Header: "Bill",
10536
10533
  accessor: "total_price",
10537
- Cell: ({ row: N }) => N.original.order_item_id != 0 || d || v != "today" ? /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-justify-center hfl-text-Error-500 ", children: [
10534
+ Cell: ({ row: D }) => D.original.order_item_id != 0 || d || v != "today" ? /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-justify-center hfl-text-Error-500 ", children: [
10538
10535
  /* @__PURE__ */ e.jsx("i", { className: " hx_f-rupee" }),
10539
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "hfl-flex hfl-w-[106px] hfl-items-center", children: N.original.total_price })
10536
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "hfl-flex hfl-w-[106px] hfl-items-center", children: D.original.total_price })
10540
10537
  ] }) : /* @__PURE__ */ e.jsx(
10541
10538
  Fe,
10542
10539
  {
@@ -10546,7 +10543,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10546
10543
  icon: "Left",
10547
10544
  iconFile: "hx_rupee-bill-filled hfl-text-3",
10548
10545
  onClick: () => {
10549
- a(N.original);
10546
+ a(D.original);
10550
10547
  },
10551
10548
  children: "Add Bill"
10552
10549
  }
@@ -10555,12 +10552,12 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10555
10552
  {
10556
10553
  Header: "",
10557
10554
  accessor: "edit",
10558
- Cell: ({ row: N }) => /* @__PURE__ */ e.jsx(
10555
+ Cell: ({ row: D }) => /* @__PURE__ */ e.jsx(
10559
10556
  "i",
10560
10557
  {
10561
10558
  className: ` ${d ? "hfl-text-White" : ""} ${v === "today" && "hx_edit"} hfl-p-4 hfl-text-Primary-700 `,
10562
10559
  onClick: () => {
10563
- v === "today" && a(N.original);
10560
+ v === "today" && a(D.original);
10564
10561
  },
10565
10562
  "data-qa": "edit-icon"
10566
10563
  }
@@ -10568,27 +10565,27 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10568
10565
  }
10569
10566
  ],
10570
10567
  [a, d, v]
10571
- ), S = Qt(() => u || [], [u]), { getTableProps: h, getTableBodyProps: Y, headerGroups: x, rows: k, prepareRow: L } = ul.useTable({
10568
+ ), S = Jt(() => u || [], [u]), { getTableProps: h, getTableBodyProps: Y, headerGroups: x, rows: k, prepareRow: L } = ul.useTable({
10572
10569
  columns: A,
10573
10570
  data: S
10574
- }), V = (N) => {
10571
+ }), V = (D) => {
10575
10572
  const P = [];
10576
- return N?.headers?.length && N.headers.map((B) => {
10573
+ return D?.headers?.length && D.headers.map((B) => {
10577
10574
  P.push(
10578
10575
  /* @__PURE__ */ e.jsx(
10579
10576
  "th",
10580
10577
  {
10581
10578
  ...B.getHeaderProps(),
10582
10579
  className: "hfl-rounded hfl-border-1 hfl-border-Gray-200 hfl-bg-Blue_gray-50 hfl-px-2 hfl-py-1 hfl-text-left",
10583
- children: /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text sm", className: "hfl-text-Gray-600", children: B.render("Header") })
10580
+ children: /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text sm", className: "hfl-text-Gray-600", children: B.render("Header") })
10584
10581
  }
10585
10582
  )
10586
10583
  );
10587
10584
  }), P;
10588
10585
  }, I = () => {
10589
- const N = [];
10586
+ const D = [];
10590
10587
  return k.map((P, B) => {
10591
- L(P), N.push(
10588
+ L(P), D.push(
10592
10589
  /* @__PURE__ */ e.jsx(
10593
10590
  "tr",
10594
10591
  {
@@ -10602,7 +10599,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10602
10599
  ...b.getCellProps(),
10603
10600
  className: "hfl-relative hfl-border-1 hfl-border-Gray-200 hfl-px-2 hfl-text-left",
10604
10601
  children: /* @__PURE__ */ e.jsx(
10605
- D,
10602
+ N,
10606
10603
  {
10607
10604
  variant: "Regular",
10608
10605
  type: "Text sm",
@@ -10615,7 +10612,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10615
10612
  }
10616
10613
  )
10617
10614
  );
10618
- }), N;
10615
+ }), D;
10619
10616
  };
10620
10617
  return /* @__PURE__ */ e.jsx(
10621
10618
  "div",
@@ -10627,12 +10624,12 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10627
10624
  ...h(),
10628
10625
  className: "hfl-table-fixed hfl-rounded-lg hfl-border-1 hfl-border-Gray-200 hfl-pb-8 hfl-shadow-md",
10629
10626
  children: [
10630
- /* @__PURE__ */ e.jsx("thead", { children: x.map((N) => /* @__PURE__ */ e.jsx(
10627
+ /* @__PURE__ */ e.jsx("thead", { children: x.map((D) => /* @__PURE__ */ e.jsx(
10631
10628
  "tr",
10632
10629
  {
10633
- ...N.getHeaderGroupProps(),
10630
+ ...D.getHeaderGroupProps(),
10634
10631
  className: "hfl-h-9 hfl-rounded-lg hfl-bg-Blue_gray-50 hfl-py-2",
10635
- children: V(N)
10632
+ children: V(D)
10636
10633
  }
10637
10634
  )) }),
10638
10635
  /* @__PURE__ */ e.jsx("tbody", { ...Y(), className: "hfl-rounded-lg hfl-border-1 hfl-border-Gray-200", children: I() })
@@ -10645,7 +10642,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10645
10642
  const { currentPage: u, totalRecord: d, handleLoadMore: i, isLoading: v = !1, currentTotal: w } = s;
10646
10643
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
10647
10644
  !v && /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-justify-between", children: [
10648
- /* @__PURE__ */ e.jsx(D, { variant: "Medium", type: "Text sm", className: "hfl-text-Gray-500", children: `1 — ${w} of ${d} results` }),
10645
+ /* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text sm", className: "hfl-text-Gray-500", children: `1 — ${w} of ${d} results` }),
10649
10646
  w !== d ? /* @__PURE__ */ e.jsx(
10650
10647
  Fe,
10651
10648
  {
@@ -10655,16 +10652,16 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10655
10652
  textField: "Load more... ",
10656
10653
  onClick: () => i(u)
10657
10654
  }
10658
- ) : /* @__PURE__ */ e.jsx(D, { variant: "Medium", type: "Text sm", className: "hfl-text-Gray-500", children: "End of List" })
10655
+ ) : /* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text sm", className: "hfl-text-Gray-500", children: "End of List" })
10659
10656
  ] }),
10660
10657
  v && /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center hfl-justify-center", children: /* @__PURE__ */ e.jsx(yn, { size: "xxs", progress: 10, spinnerMode: !0 }) })
10661
10658
  ] });
10662
10659
  }, zs = (s) => {
10663
- const { handleAddNewAppnt: u, handleAppointData: d, sortAppointments: i } = s, [v, w] = z(), [a, A] = z(1), [S, h] = z([]), [Y, x] = z([]), [k, L] = z(""), { patientIDs: V, setLoading: I, variable: N } = Lt(Mt), P = async (B) => {
10660
+ const { handleAddNewAppnt: u, handleAppointData: d, sortAppointments: i } = s, [v, w] = z(), [a, A] = z(1), [S, h] = z([]), [Y, x] = z([]), [k, L] = z(""), { patientIDs: V, setLoading: I, variable: D } = Lt(Mt), P = async (B) => {
10664
10661
  let b = B;
10665
10662
  if (I(!0), b <= Math.ceil((v?.total_records || 0) / 10)) {
10666
10663
  if (b = B + 1, b !== B) {
10667
- const te = await Zl("all", V?.patientRoleID || "", b, 10, !1, N);
10664
+ const te = await Zl("all", V?.patientRoleID || "", b, 10, !1, D);
10668
10665
  h((H) => [
10669
10666
  ...H,
10670
10667
  ...te.appointments.filter((E) => E.appnt_date >= Be(/* @__PURE__ */ new Date()).format("YYYY-MM-DD"))
@@ -10681,7 +10678,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10681
10678
  I(!0);
10682
10679
  const B = async () => {
10683
10680
  try {
10684
- const b = await Zl("all", V?.patientRoleID || "", 1, 10, !1, N);
10681
+ const b = await Zl("all", V?.patientRoleID || "", 1, 10, !1, D);
10685
10682
  b && (w(b), h(
10686
10683
  b?.appointments?.filter((te) => te.appnt_date >= Be(/* @__PURE__ */ new Date()).format("YYYY-MM-DD"))
10687
10684
  ), x(
@@ -10692,11 +10689,11 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10692
10689
  }
10693
10690
  };
10694
10691
  I(!1), B();
10695
- }, [V?.patientRoleID, I, N]), /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-col", children: [
10692
+ }, [V?.patientRoleID, I, D]), /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-col", children: [
10696
10693
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-max-h-[550px] hfl-w-full hfl-flex-col hfl-overflow-y-scroll", children: [
10697
10694
  S.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
10698
10695
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-w-full hfl-items-center hfl-justify-between hfl-px-3 hfl-py-2 ", children: [
10699
- /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text lg", className: "", children: "Upcoming Appointments" }),
10696
+ /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text lg", className: "", children: "Upcoming Appointments" }),
10700
10697
  /* @__PURE__ */ e.jsx(
10701
10698
  Fe,
10702
10699
  {
@@ -10721,7 +10718,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10721
10718
  ] }),
10722
10719
  Y.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
10723
10720
  /* @__PURE__ */ e.jsx(
10724
- D,
10721
+ N,
10725
10722
  {
10726
10723
  variant: "Semibold",
10727
10724
  type: "Text lg",
@@ -10754,7 +10751,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10754
10751
  currentTotal: a === Math.ceil((v?.total_records || 0) / 10) ? v?.total_records || 0 : a * 10,
10755
10752
  handleLoadMore: P
10756
10753
  }
10757
- ) }) : /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-h-full hfl-w-full hfl-items-center hfl-justify-center", children: /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text lg", children: k }) })
10754
+ ) }) : /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-h-full hfl-w-full hfl-items-center hfl-justify-center", children: /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text lg", children: k }) })
10758
10755
  ] });
10759
10756
  }, Ys = () => {
10760
10757
  const {
@@ -10772,14 +10769,14 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10772
10769
  variable: x
10773
10770
  } = Lt(Mt), [k, L] = z(
10774
10771
  x.window_var?.partner_service_enabled === "1" && u?.insurance_details?.policy_id?.length ? !0 : a?.billing?.prepaid_consultation !== "1"
10775
- ), [V, I] = z("today"), [N, P] = z(!1), [B, b] = z([]), te = (/* @__PURE__ */ new Date()).toLocaleString("en-US", {
10772
+ ), [V, I] = z("today"), [D, P] = z(!1), [B, b] = z([]), te = (/* @__PURE__ */ new Date()).toLocaleString("en-US", {
10776
10773
  hour: "numeric",
10777
10774
  minute: "numeric",
10778
10775
  hour12: !0
10779
- }), H = Qt(
10776
+ }), H = Jt(
10780
10777
  () => d?.doctor_list?.length === 1 ? d.doctor_list[0] : { doctor_name: "", doctor_identifier: "" },
10781
10778
  [d]
10782
- ), E = Qt(
10779
+ ), E = Jt(
10783
10780
  () => ({
10784
10781
  ...Nn,
10785
10782
  deleted: !1,
@@ -10829,7 +10826,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10829
10826
  L(
10830
10827
  x.window_var?.partner_service_enabled === "1" && u?.insurance_details?.policy_id ? !0 : a?.billing?.prepaid_consultation !== "1"
10831
10828
  );
10832
- }, [N, a, V, u, x.window_var?.partner_service_enabled]), Ke(() => {
10829
+ }, [D, a, V, u, x.window_var?.partner_service_enabled]), Ke(() => {
10833
10830
  $((T) => k && T);
10834
10831
  }, [k]), Ke(() => {
10835
10832
  if (!+W?.order_item_id && !W?.order_unit_item_price) {
@@ -10844,13 +10841,13 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10844
10841
  }
10845
10842
  }, [
10846
10843
  k,
10847
- N,
10844
+ D,
10848
10845
  W.order_item_id,
10849
10846
  W.order_unit_item_price,
10850
10847
  W.appnt_service_id,
10851
10848
  S
10852
10849
  ]);
10853
- const O = Zt(
10850
+ const O = er(
10854
10851
  (T) => {
10855
10852
  const { order_unit_item_price: Ie = 0, item_quantity: Ue = 0, order_item_discount: le = 0, appnt_service_id: J } = T;
10856
10853
  if (!J) return;
@@ -10868,7 +10865,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10868
10865
  }));
10869
10866
  },
10870
10867
  [S]
10871
- ), ue = Qt(
10868
+ ), ue = Jt(
10872
10869
  () => [
10873
10870
  {
10874
10871
  ...W,
@@ -10930,7 +10927,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
10930
10927
  O,
10931
10928
  W
10932
10929
  ]);
10933
- const fe = (T) => [...T].sort((Ie, Ue) => new Date(Ie.appnt_date).getTime() - new Date(Ue.appnt_date).getTime()), M = Qt(
10930
+ const fe = (T) => [...T].sort((Ie, Ue) => new Date(Ie.appnt_date).getTime() - new Date(Ue.appnt_date).getTime()), M = Jt(
10934
10931
  () => [
10935
10932
  {
10936
10933
  Header: "Unit Price",
@@ -11025,7 +11022,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
11025
11022
  }
11026
11023
  ],
11027
11024
  [A?.permissions?.edit_service_unit_price, S]
11028
- ), Re = Qt(() => ue, [ue]), { getTableProps: He, getTableBodyProps: ke, headerGroups: pt, rows: ft, prepareRow: it } = ul.useTable({
11025
+ ), Re = Jt(() => ue, [ue]), { getTableProps: He, getTableBodyProps: ke, headerGroups: pt, rows: ft, prepareRow: it } = ul.useTable({
11029
11026
  columns: M,
11030
11027
  data: Re
11031
11028
  }), Ve = (T) => {
@@ -11037,7 +11034,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
11037
11034
  {
11038
11035
  ...Ue.getHeaderProps(),
11039
11036
  className: "hfl-rounded hfl-border-1 hfl-border-Gray-200 hfl-bg-Blue_gray-50 hfl-px-2 hfl-py-1 hfl-text-left",
11040
- children: /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text sm", className: "hfl-text-Indigo-600", children: Ue.render("Header") })
11037
+ children: /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text sm", className: "hfl-text-Indigo-600", children: Ue.render("Header") })
11041
11038
  }
11042
11039
  )
11043
11040
  );
@@ -11059,7 +11056,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
11059
11056
  ...le.getCellProps(),
11060
11057
  className: "hfl-relative hfl-border-1 hfl-border-Gray-200 hfl-px-2 hfl-text-left",
11061
11058
  children: /* @__PURE__ */ e.jsx(
11062
- D,
11059
+ N,
11063
11060
  {
11064
11061
  variant: "Regular",
11065
11062
  type: "Text sm",
@@ -11073,7 +11070,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
11073
11070
  )
11074
11071
  );
11075
11072
  }), T;
11076
- }, St = (T, Ie, Ue) => /* @__PURE__ */ e.jsxs(
11073
+ }, Nt = (T, Ie, Ue) => /* @__PURE__ */ e.jsxs(
11077
11074
  "div",
11078
11075
  {
11079
11076
  className: `hfl-flex hfl-w-[60px] hfl-flex-col hfl-items-center hfl-rounded hfl-px-1 hfl-py-2 hfl-text-center ${V === T ? "hfl-bg-Primary-50 hfl-text-Primary-600" : ""} hfl-cursor-pointer`,
@@ -11081,13 +11078,13 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
11081
11078
  "data-qa": T,
11082
11079
  children: [
11083
11080
  /* @__PURE__ */ e.jsx("div", { className: Ie }),
11084
- /* @__PURE__ */ e.jsx(D, { variant: "Medium", type: "Text sm", children: Ue })
11081
+ /* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text sm", children: Ue })
11085
11082
  ]
11086
11083
  },
11087
11084
  T
11088
- ), xt = Zt(() => {
11085
+ ), xt = er(() => {
11089
11086
  I("today"), Q(E), P(!0);
11090
- }, [E]), Gt = Zt(async () => {
11087
+ }, [E]), Gt = er(async () => {
11091
11088
  w(!0);
11092
11089
  try {
11093
11090
  const T = await Zl(
@@ -11106,8 +11103,8 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
11106
11103
  }
11107
11104
  }, [xt, V, v?.patientRoleID, w, x]);
11108
11105
  Ke(() => {
11109
- N || Gt();
11110
- }, [N, Gt]), Ke(() => {
11106
+ D || Gt();
11107
+ }, [D, Gt]), Ke(() => {
11111
11108
  V === "today" && Gt();
11112
11109
  }, [Gt, V]);
11113
11110
  const kt = async () => {
@@ -11125,12 +11122,12 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
11125
11122
  };
11126
11123
  return /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-h-[73.55vh] hfl-bg-White", children: [
11127
11124
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-col hfl-gap-4 hfl-border-r-1 hfl-border-Gray-200 hfl-bg-Gray-50 hfl-px-1 hfl-py-2", children: [
11128
- St("today", "hx_calendar-add hfl-text-5", "Today's Appts"),
11129
- St("all", "hx_calendar hfl-text-5", "All Appts")
11125
+ Nt("today", "hx_calendar-add hfl-text-5", "Today's Appts"),
11126
+ Nt("all", "hx_calendar hfl-text-5", "All Appts")
11130
11127
  ] }),
11131
- V === "today" && /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-flex-1 hfl-flex-col hfl-items-center hfl-gap-6 hfl-overflow-y-auto", children: B.length <= 0 || N ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
11128
+ V === "today" && /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-flex-1 hfl-flex-col hfl-items-center hfl-gap-6 hfl-overflow-y-auto", children: B.length <= 0 || D ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
11132
11129
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-gap-2 hfl-self-stretch hfl-bg-Gray-100 hfl-p-2", children: [
11133
- /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text lg", className: "hfl-flex-1", children: W.appnt_id.length ? "Update Appointment" : "New Appointment" }),
11130
+ /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text lg", className: "hfl-flex-1", children: W.appnt_id.length ? "Update Appointment" : "New Appointment" }),
11134
11131
  /* @__PURE__ */ e.jsx(
11135
11132
  "div",
11136
11133
  {
@@ -11176,7 +11173,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
11176
11173
  }
11177
11174
  ),
11178
11175
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-w-[350px] hfl-flex-col hfl-gap-1.5", children: [
11179
- /* @__PURE__ */ e.jsx(D, { variant: "Medium", type: "Text sm", children: "Date & Time of Appointment" }),
11176
+ /* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text sm", children: "Date & Time of Appointment" }),
11180
11177
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-gap-2 ", children: [
11181
11178
  /* @__PURE__ */ e.jsx(
11182
11179
  Or,
@@ -11316,7 +11313,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
11316
11313
  }
11317
11314
  ),
11318
11315
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-w-[350px] hfl-flex-col hfl-gap-1.5", children: [
11319
- /* @__PURE__ */ e.jsx(D, { variant: "Medium", type: "Text sm", children: "Type" }),
11316
+ /* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text sm", children: "Type" }),
11320
11317
  /* @__PURE__ */ e.jsx(
11321
11318
  Oa,
11322
11319
  {
@@ -11412,7 +11409,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
11412
11409
  ] })
11413
11410
  ] }) : /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-w-full hfl-flex-col", children: [
11414
11411
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-w-full hfl-items-center hfl-justify-between hfl-px-3 hfl-py-2", children: [
11415
- /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text lg", children: "Today’s Appointments" }),
11412
+ /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text lg", children: "Today’s Appointments" }),
11416
11413
  /* @__PURE__ */ e.jsx(
11417
11414
  Fe,
11418
11415
  {
@@ -11459,7 +11456,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
11459
11456
  {
11460
11457
  ...x.getHeaderProps(),
11461
11458
  className: "hfl-rounded hfl-border-1 hfl-border-Gray-200 hfl-bg-Blue_gray-50 hfl-px-2 hfl-py-1 hfl-text-left",
11462
- children: /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text sm", className: "hfl-text-Gray-600", children: x.render("Header") })
11459
+ children: /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text sm", className: "hfl-text-Gray-600", children: x.render("Header") })
11463
11460
  }
11464
11461
  )
11465
11462
  );
@@ -11481,7 +11478,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
11481
11478
  ...k.getCellProps(),
11482
11479
  className: "hfl-relative hfl-border-1 hfl-border-Gray-200 hfl-px-2 hfl-text-left",
11483
11480
  children: /* @__PURE__ */ e.jsx(
11484
- D,
11481
+ N,
11485
11482
  {
11486
11483
  variant: "Regular",
11487
11484
  type: "Text sm",
@@ -11539,7 +11536,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
11539
11536
  pastVisits: [],
11540
11537
  isVisitLoading: !1
11541
11538
  }
11542
- ), [k, L] = x, { pastVisits: V, currentPage: I, isVisitLoading: N, totalRecord: P } = k, B = async ($) => {
11539
+ ), [k, L] = x, { pastVisits: V, currentPage: I, isVisitLoading: D, totalRecord: P } = k, B = async ($) => {
11543
11540
  try {
11544
11541
  L({ isVisitLoading: !0 });
11545
11542
  const O = await Zi(
@@ -11629,13 +11626,13 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
11629
11626
  appnt_type: "100px",
11630
11627
  service_name: "150px",
11631
11628
  view: "250px"
11632
- }, W = Qt(
11629
+ }, W = Jt(
11633
11630
  () => [
11634
11631
  {
11635
11632
  Header: "Date",
11636
11633
  accessor: "visit_date",
11637
11634
  Cell: ({ row: $ }) => /* @__PURE__ */ e.jsx("div", { className: "hfl-max-[100px] hfl-w-[100px]", children: /* @__PURE__ */ e.jsx(
11638
- D,
11635
+ N,
11639
11636
  {
11640
11637
  variant: "Regular",
11641
11638
  type: "Text [13px]",
@@ -11648,7 +11645,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
11648
11645
  Header: "Doctor",
11649
11646
  accessor: "doctor_name",
11650
11647
  Cell: ({ row: $ }) => /* @__PURE__ */ e.jsxs(
11651
- D,
11648
+ N,
11652
11649
  {
11653
11650
  variant: "Regular",
11654
11651
  type: "Text [13px]",
@@ -11664,7 +11661,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
11664
11661
  Header: "Type",
11665
11662
  accessor: "appnt_type",
11666
11663
  Cell: ({ row: $ }) => /* @__PURE__ */ e.jsx(
11667
- D,
11664
+ N,
11668
11665
  {
11669
11666
  variant: "Regular",
11670
11667
  type: "Text [13px]",
@@ -11677,7 +11674,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
11677
11674
  Header: "Service",
11678
11675
  accessor: "service_name",
11679
11676
  Cell: ({ row: $ }) => /* @__PURE__ */ e.jsx(
11680
- D,
11677
+ N,
11681
11678
  {
11682
11679
  variant: "Regular",
11683
11680
  type: "Text [13px]",
@@ -11722,7 +11719,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
11722
11719
  }
11723
11720
  ],
11724
11721
  [V]
11725
- ), Q = Qt(() => V, [V]), ce = async () => {
11722
+ ), Q = Jt(() => V, [V]), ce = async () => {
11726
11723
  if (!a?.patientRoleID) return;
11727
11724
  let $ = "../ipdv2/viewPatientsCase";
11728
11725
  if (Y.window_var?.enable_ipd_v2 !== "1") {
@@ -11738,7 +11735,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
11738
11735
  };
11739
11736
  return /* @__PURE__ */ e.jsxs("div", { className: "hfl-mx-[12%] hfl-h-[69vh] hfl-overflow-auto hfl-py-[20px]", children: [
11740
11737
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-justify-between hfl-pb-2", children: [
11741
- /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text md", className: "hfl-text-Gray-600", children: "Past Visits" }),
11738
+ /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text md", className: "hfl-text-Gray-600", children: "Past Visits" }),
11742
11739
  Y.window_var.ipd_module === "1" && /* @__PURE__ */ e.jsx(
11743
11740
  Fe,
11744
11741
  {
@@ -11761,15 +11758,15 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
11761
11758
  currentPage: I,
11762
11759
  totalRecord: P,
11763
11760
  handleLoadMore: () => B(I + 1),
11764
- isLoading: N,
11761
+ isLoading: D,
11765
11762
  currentTotal: Q.length
11766
11763
  }
11767
11764
  )
11768
11765
  ] }),
11769
- Q.length === 0 && !N && /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-h-[calc(100%_-_80px)] hfl-flex-col hfl-items-center hfl-justify-center hfl-gap-4", children: [
11766
+ Q.length === 0 && !D && /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-h-[calc(100%_-_80px)] hfl-flex-col hfl-items-center hfl-justify-center hfl-gap-4", children: [
11770
11767
  /* @__PURE__ */ e.jsx("img", { className: "hfl-w-[80px] hfl-text-Blue_gray-500", src: $s, alt: "empty-bills" }),
11771
11768
  /* @__PURE__ */ e.jsx(
11772
- D,
11769
+ N,
11773
11770
  {
11774
11771
  variant: "Regular",
11775
11772
  type: "Text md",
@@ -11915,7 +11912,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
11915
11912
  // ppEventProps,
11916
11913
  // currentWindow,
11917
11914
  variable: k
11918
- } = Lt(Mt) || {}, L = ({ label: b, className: te }) => /* @__PURE__ */ e.jsx("th", { className: te, children: /* @__PURE__ */ e.jsxs(D, { variant: "Semibold", type: "Text sm", className: "hfl-text-Gray-600", children: [
11915
+ } = Lt(Mt) || {}, L = ({ label: b, className: te }) => /* @__PURE__ */ e.jsx("th", { className: te, children: /* @__PURE__ */ e.jsxs(N, { variant: "Semibold", type: "Text sm", className: "hfl-text-Gray-600", children: [
11919
11916
  " ",
11920
11917
  b
11921
11918
  ] }) }), V = (b) => {
@@ -11940,7 +11937,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
11940
11937
  default:
11941
11938
  return "Other";
11942
11939
  }
11943
- }, N = async (b, te, H) => {
11940
+ }, D = async (b, te, H) => {
11944
11941
  if (x?.visible && a(), b?.order_id) {
11945
11942
  const E = await Tn(b?.order_id, A?.patientRoleID || "", k), W = {
11946
11943
  finalAmount: b.net_bill_amount,
@@ -12068,7 +12065,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12068
12065
  /* @__PURE__ */ e.jsx("tbody", { children: u.length > 0 && u.map((b, te) => /* @__PURE__ */ e.jsx(cl.Fragment, { children: b.order_items.map((H, E) => /* @__PURE__ */ e.jsxs("tr", { className: "hfl-border-1", children: [
12069
12066
  E === 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
12070
12067
  /* @__PURE__ */ e.jsx("td", { rowSpan: b.order_items.length, className: `${P.td}`, children: /* @__PURE__ */ e.jsx(
12071
- D,
12068
+ N,
12072
12069
  {
12073
12070
  variant: "Regular",
12074
12071
  type: "Text sm",
@@ -12076,25 +12073,25 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12076
12073
  children: Be(b.order_date).format("DD-MMM-YY")
12077
12074
  }
12078
12075
  ) }),
12079
- /* @__PURE__ */ e.jsx("td", { rowSpan: b.order_items.length, className: `${P.td} hfl-w-[70px]`, children: /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", children: b.order_id_str }) }),
12076
+ /* @__PURE__ */ e.jsx("td", { rowSpan: b.order_items.length, className: `${P.td} hfl-w-[70px]`, children: /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", children: b.order_id_str }) }),
12080
12077
  /* @__PURE__ */ e.jsx("td", { rowSpan: b.order_items.length, className: `${P.td} hfl-w-[70px]`, children: /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center", children: [
12081
12078
  /* @__PURE__ */ e.jsx("i", { className: ` hfl-flex ${V(b.service_category)}` }),
12082
- /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", className: "hfl-truncate", children: [
12079
+ /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", className: "hfl-truncate", children: [
12083
12080
  " ",
12084
12081
  I(b.service_category)
12085
12082
  ] })
12086
12083
  ] }) }),
12087
- /* @__PURE__ */ e.jsx("td", { rowSpan: b.order_items.length, className: `${P.td} hfl-w-[70px]`, children: /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center", children: /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", children: [
12084
+ /* @__PURE__ */ e.jsx("td", { rowSpan: b.order_items.length, className: `${P.td} hfl-w-[70px]`, children: /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center", children: /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", children: [
12088
12085
  "₹ ",
12089
12086
  parseInt(b.order_paid_amount) - parseInt(b.refund_amount)
12090
12087
  ] }) }) }),
12091
- /* @__PURE__ */ e.jsx("td", { rowSpan: b.order_items.length, className: `${P.td} hfl-w-[70px]`, children: /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center", children: /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", "data-qa": te + 1 + "-due-amount", children: [
12088
+ /* @__PURE__ */ e.jsx("td", { rowSpan: b.order_items.length, className: `${P.td} hfl-w-[70px]`, children: /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center", children: /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", "data-qa": te + 1 + "-due-amount", children: [
12092
12089
  "₹ ",
12093
12090
  b.balance_amount
12094
12091
  ] }) }) }),
12095
12092
  /* @__PURE__ */ e.jsx("td", { rowSpan: b.order_items.length, className: `${P.td} hfl-w-[84px]`, children: /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-justify-between", children: [
12096
12093
  /* @__PURE__ */ e.jsxs(
12097
- D,
12094
+ N,
12098
12095
  {
12099
12096
  variant: "Regular",
12100
12097
  type: "Text sm",
@@ -12113,26 +12110,26 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12113
12110
  "i",
12114
12111
  {
12115
12112
  className: " hx_print-filled hfl-cursor-pointer hfl-text-2 hfl-text-Gray-500",
12116
- onClick: () => N(b, "billPrintPreview", !1),
12113
+ onClick: () => D(b, "billPrintPreview", !1),
12117
12114
  "data-qa": te + 1 + "-print-bill"
12118
12115
  }
12119
12116
  )
12120
12117
  ] }) }),
12121
- /* @__PURE__ */ e.jsx("td", { rowSpan: b.order_items.length, className: `${P.td} hfl-w-[84px]`, children: /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center", children: /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", children: [
12118
+ /* @__PURE__ */ e.jsx("td", { rowSpan: b.order_items.length, className: `${P.td} hfl-w-[84px]`, children: /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center", children: /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", children: [
12122
12119
  "₹ ",
12123
12120
  parseInt(b.order_discount) + parseInt(b.order_item_sum_discount)
12124
12121
  ] }) }) }),
12125
- /* @__PURE__ */ e.jsx("td", { rowSpan: b.order_items.length, className: `${P.td} hfl-max-w-[70px]`, children: /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center", children: /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", children: [
12122
+ /* @__PURE__ */ e.jsx("td", { rowSpan: b.order_items.length, className: `${P.td} hfl-max-w-[70px]`, children: /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center", children: /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", children: [
12126
12123
  "₹ ",
12127
12124
  b.refund_amount
12128
12125
  ] }) }) })
12129
12126
  ] }),
12130
- /* @__PURE__ */ e.jsx("td", { className: `${P.td} hfl-w-8 hfl-max-w-[96px]`, title: H.service_name, children: /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "hfl-truncate", children: H.service_name }) }),
12131
- /* @__PURE__ */ e.jsx("td", { className: `${P.td} hfl-max-w-[64px]`, children: /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center", children: /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", children: [
12127
+ /* @__PURE__ */ e.jsx("td", { className: `${P.td} hfl-w-8 hfl-max-w-[96px]`, title: H.service_name, children: /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "hfl-truncate", children: H.service_name }) }),
12128
+ /* @__PURE__ */ e.jsx("td", { className: `${P.td} hfl-max-w-[64px]`, children: /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center", children: /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", children: [
12132
12129
  "₹ ",
12133
12130
  H.order_item_price
12134
12131
  ] }) }) }),
12135
- /* @__PURE__ */ e.jsx("td", { className: `${P.td} hfl-max-w-[46px]`, children: /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center", children: /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", children: [
12132
+ /* @__PURE__ */ e.jsx("td", { className: `${P.td} hfl-max-w-[46px]`, children: /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center", children: /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", children: [
12136
12133
  "₹ ",
12137
12134
  H.order_item_service_tax
12138
12135
  ] }) }) }),
@@ -12161,9 +12158,9 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12161
12158
  } = s, { patientIDs: A, showToast: S, variable: h } = Lt(Mt) || {}, [Y, x] = z("");
12162
12159
  return /* @__PURE__ */ e.jsxs("div", { className: "hfl-relative hfl-h-full hfl-bg-Error-25", children: [
12163
12160
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-h-8 hfl-shrink-0 hfl-items-center hfl-justify-between hfl-gap-2 hfl-border-b-1 hfl-border-b-Gray-200 hfl-px-2", children: [
12164
- /* @__PURE__ */ e.jsxs(D, { variant: "Medium", type: "Text lg", className: "hfl-flex", children: [
12161
+ /* @__PURE__ */ e.jsxs(N, { variant: "Medium", type: "Text lg", className: "hfl-flex", children: [
12165
12162
  "Bill :",
12166
- /* @__PURE__ */ e.jsx(D, { variant: "Medium", type: "Text lg", className: "hfl-flex hfl-text-Blue-600", children: i?.bill_list[v].order_id_str })
12163
+ /* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text lg", className: "hfl-flex hfl-text-Blue-600", children: i?.bill_list[v].order_id_str })
12167
12164
  ] }),
12168
12165
  /* @__PURE__ */ e.jsx(
12169
12166
  "div",
@@ -12175,11 +12172,11 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12175
12172
  ] }),
12176
12173
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-col hfl-items-center hfl-gap-2.5 hfl-px-[13px] hfl-py-3", children: [
12177
12174
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-w-full hfl-shrink-0 hfl-flex-col hfl-items-start hfl-gap-[5px] hfl-rounded-md hfl-border-Gray-200 hfl-bg-White_20 hfl-px-3 hfl-py-2 hfl-shadow-md", children: [
12178
- /* @__PURE__ */ e.jsxs(D, { variant: "Semibold", type: "Text sm", children: [
12175
+ /* @__PURE__ */ e.jsxs(N, { variant: "Semibold", type: "Text sm", children: [
12179
12176
  "Service: ",
12180
12177
  i?.bill_list[v].order_items[w].service_name
12181
12178
  ] }),
12182
- u > 0 && /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center hfl-gap-3", children: /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", children: [
12179
+ u > 0 && /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center hfl-gap-3", children: /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", children: [
12183
12180
  "Refund of",
12184
12181
  /* @__PURE__ */ e.jsx("div", { className: "hfl-inline hfl-font-inter-2 hfl-text-Error-600", children: " ₹ " + u + " " }),
12185
12182
  "will be given to delete this item"
@@ -12261,14 +12258,14 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12261
12258
  ) })
12262
12259
  ] });
12263
12260
  }, Js = "data:image/svg+xml,%3csvg%20width='87'%20height='86'%20viewBox='0%200%2087%2086'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cellipse%20opacity='0.1'%20cx='43.5'%20cy='83.42'%20rx='43.5'%20ry='2.58'%20fill='%234E5BA6'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M33.6751%2018.92C34.2431%2016.9347%2036.0897%2015.48%2038.2799%2015.48H55.9277C54.4566%2016.3563%2053.188%2017.5313%2052.2081%2018.92H33.6751ZM51.1971%2020.64H25.6649C22.782%2020.64%2020.445%2022.9502%2020.445%2025.8V57.62H47.4149H47.8499C48.3304%2057.62%2048.7199%2058.005%2048.7199%2058.48V62.995C48.7199%2066.676%2051.7387%2069.66%2055.4624%2069.66C59.1862%2069.66%2062.2049%2066.676%2062.2049%2062.995V37.84C55.4781%2037.84%2050.0249%2032.4495%2050.0249%2025.8C50.0249%2023.9534%2050.4455%2022.2039%2051.1971%2020.64ZM63.9449%2037.7181V61.8486C66.4138%2061.4392%2068.2949%2059.3168%2068.2949%2056.76V36.2293C66.9805%2036.9809%2065.5108%2037.4967%2063.9449%2037.7181ZM70.0349%2035.0228V56.76C70.0349%2060.2756%2067.3674%2063.1753%2063.924%2063.5893C63.6156%2067.9429%2059.9451%2071.38%2055.4624%2071.38C55.3865%2071.38%2055.3108%2071.379%2055.2354%2071.377L55.2449%2071.38H23.925C19.1201%2071.38%2015.225%2067.5296%2015.225%2062.78V61.06C15.225%2059.1601%2016.783%2057.62%2018.705%2057.62V25.8C18.705%2022.0003%2021.821%2018.92%2025.6649%2018.92H31.8855C32.49%2015.9759%2035.1232%2013.76%2038.2799%2013.76H61.3349V13.7902C61.6223%2013.7702%2061.9124%2013.76%2062.2049%2013.76C68.9318%2013.76%2074.3849%2019.1505%2074.3849%2025.8C74.3849%2029.5023%2072.6945%2032.8142%2070.0349%2035.0228ZM10.44%2066.005C10.44%2065.6488%2010.7321%2065.36%2011.0925%2065.36C11.4528%2065.36%2011.745%2065.6488%2011.745%2066.005V66.22C11.745%2070.9696%2015.6401%2074.82%2020.445%2074.82H22.4459C22.7823%2074.82%2023.055%2075.0895%2023.055%2075.422C23.055%2075.7545%2022.7823%2076.024%2022.4459%2076.024H20.445C14.6698%2076.024%2010.44%2071.9104%2010.44%2066.22V66.005ZM11.0925%2063.64C9.77111%2063.64%208.69995%2064.6988%208.69995%2066.005V66.22C8.69995%2072.8786%2013.7274%2077.744%2020.445%2077.744H22.4459C23.7433%2077.744%2024.795%2076.7044%2024.795%2075.422C24.795%2074.1396%2023.7433%2073.1%2022.4459%2073.1H20.445C16.601%2073.1%2013.485%2070.0197%2013.485%2066.22V66.005C13.485%2064.6988%2012.4138%2063.64%2011.0925%2063.64ZM24.795%2043.43C24.795%2042.2426%2025.7687%2041.28%2026.9699%2041.28H40.0199C41.2212%2041.28%2042.195%2042.2426%2042.195%2043.43C42.195%2044.6174%2041.2212%2045.58%2040.0199%2045.58H26.9699C25.7687%2045.58%2024.795%2044.6174%2024.795%2043.43ZM26.9699%2043C26.7297%2043%2026.535%2043.1925%2026.535%2043.43C26.535%2043.6675%2026.7297%2043.86%2026.9699%2043.86H40.0199C40.2602%2043.86%2040.4549%2043.6675%2040.4549%2043.43C40.4549%2043.1925%2040.2602%2043%2040.0199%2043H26.9699ZM32.15%2037.9752C32.2163%2038.0407%2032.3208%2038.0735%2032.4635%2038.0735C32.5859%2038.0735%2032.6751%2038.0407%2032.7312%2037.9752C32.7923%2037.9097%2032.8229%2037.8064%2032.8229%2037.6653V37.0531C33.297%2037.0027%2033.7277%2036.8691%2034.1152%2036.6525C34.5026%2036.4307%2034.8135%2036.1082%2035.048%2035.685C35.2876%2035.2566%2035.4074%2034.7275%2035.4074%2034.0977C35.4074%2033.5534%2035.2825%2033.105%2035.0327%2032.7522C34.783%2032.3944%2034.4924%2032.1198%2034.161%2031.9283C33.8297%2031.7368%2033.3837%2031.5202%2032.8229%2031.2783V29.2375C33.0778%2029.2476%2033.2919%2029.2753%2033.4652%2029.3206C33.6436%2029.366%2033.8246%2029.4239%2034.0081%2029.4945C34.1356%2029.5449%2034.2197%2029.5701%2034.2604%2029.5701C34.3624%2029.5701%2034.4695%2029.4995%2034.5816%2029.3584C34.6988%2029.2173%2034.7983%2029.0535%2034.8798%2028.8671C34.9614%2028.6756%2035.0022%2028.5194%2035.0022%2028.3985C35.0022%2028.2624%2034.9079%2028.1264%2034.7192%2027.9903C34.5357%2027.8543%2034.2757%2027.7384%2033.9393%2027.6426C33.6079%2027.5469%2033.2358%2027.4914%2032.8229%2027.4763V27.0606C32.8229%2026.9145%2032.7923%2026.8112%2032.7312%2026.7507C32.67%2026.6902%2032.5655%2026.66%2032.4176%2026.66C32.2953%2026.66%2032.2035%2026.6927%2032.1424%2026.7583C32.0812%2026.8187%2032.0506%2026.9195%2032.0506%2027.0606V27.4839C31.5561%2027.5393%2031.1024%2027.6728%2030.6895%2027.8845C30.2817%2028.0961%2029.9529%2028.3985%2029.7031%2028.7915C29.4585%2029.1795%2029.3361%2029.6557%2029.3361%2030.2201C29.3361%2030.8147%2029.4661%2031.2985%2029.7261%2031.6713C29.9912%2032.0392%2030.2996%2032.3189%2030.6513%2032.5103C31.0081%2032.6968%2031.4746%2032.8958%2032.0506%2033.1075V35.3221C31.7346%2035.3221%2031.444%2035.2793%2031.1789%2035.1936C30.9189%2035.108%2030.6513%2034.9971%2030.376%2034.8611C30.1823%2034.7603%2030.0549%2034.7099%2029.9937%2034.7099C29.902%2034.7099%2029.7873%2034.7804%2029.6496%2034.9215C29.512%2035.0576%2029.3922%2035.2214%2029.2902%2035.4128C29.1934%2035.6043%2029.1449%2035.7656%2029.1449%2035.8966C29.1449%2036.0528%2029.2596%2036.2191%2029.489%2036.3955C29.7235%2036.5718%2030.06%2036.7255%2030.4984%2036.8565C30.9419%2036.9825%2031.4593%2037.0556%2032.0506%2037.0757V37.6653C32.0506%2037.8064%2032.0837%2037.9097%2032.15%2037.9752ZM31.5001%2029.6154C31.602%2029.4793%2031.7855%2029.3786%2032.0506%2029.3131V30.9306C31.8212%2030.7996%2031.6453%2030.6635%2031.523%2030.5224C31.4058%2030.3813%2031.3471%2030.2151%2031.3471%2030.0236C31.3471%2029.8825%2031.3981%2029.7464%2031.5001%2029.6154ZM33.2511%2034.8611C33.1441%2034.9971%2033.0013%2035.1004%2032.8229%2035.171V33.4703C33.2154%2033.692%2033.4117%2033.9843%2033.4117%2034.3471C33.4117%2034.5537%2033.3582%2034.725%2033.2511%2034.8611ZM24.795%2050.31C24.795%2049.1226%2025.7687%2048.16%2026.9699%2048.16H53.07C54.2712%2048.16%2055.2449%2049.1226%2055.2449%2050.31C55.2449%2051.4974%2054.2712%2052.46%2053.07%2052.46H26.9699C25.7687%2052.46%2024.795%2051.4974%2024.795%2050.31ZM26.9699%2049.88C26.7297%2049.88%2026.535%2050.0725%2026.535%2050.31C26.535%2050.5475%2026.7297%2050.74%2026.9699%2050.74H53.07C53.3102%2050.74%2053.5049%2050.5475%2053.5049%2050.31C53.5049%2050.0725%2053.3102%2049.88%2053.07%2049.88H26.9699ZM51.7649%2025.8C51.7649%2020.1004%2056.4391%2015.48%2062.2049%2015.48C67.9708%2015.48%2072.6449%2020.1004%2072.6449%2025.8C72.6449%2031.4996%2067.9708%2036.12%2062.2049%2036.12C56.4391%2036.12%2051.7649%2031.4996%2051.7649%2025.8ZM60.0299%2020.21C60.0299%2019.0226%2061.0037%2018.06%2062.2049%2018.06C63.4062%2018.06%2064.3799%2019.0226%2064.3799%2020.21V25.37C64.3799%2026.5574%2063.4062%2027.52%2062.2049%2027.52C61.0037%2027.52%2060.0299%2026.5574%2060.0299%2025.37V20.21ZM62.2049%2019.78C61.9647%2019.78%2061.7699%2019.9725%2061.7699%2020.21V25.37C61.7699%2025.6075%2061.9647%2025.8%2062.2049%2025.8C62.4452%2025.8%2062.6399%2025.6075%2062.6399%2025.37V20.21C62.6399%2019.9725%2062.4452%2019.78%2062.2049%2019.78ZM62.2049%2033.54C61.0037%2033.54%2060.0299%2032.5774%2060.0299%2031.39C60.0299%2030.2026%2061.0037%2029.24%2062.2049%2029.24C63.4062%2029.24%2064.3799%2030.2026%2064.3799%2031.39C64.3799%2032.5774%2063.4062%2033.54%2062.2049%2033.54ZM61.7699%2031.39C61.7699%2031.6275%2061.9647%2031.82%2062.2049%2031.82C62.4452%2031.82%2062.6399%2031.6275%2062.6399%2031.39C62.6399%2031.1525%2062.4452%2030.96%2062.2049%2030.96C61.9647%2030.96%2061.7699%2031.1525%2061.7699%2031.39Z'%20fill='%23AFB5D9'/%3e%3c/svg%3e", Qs = (s) => {
12264
- const { closePrintModal: u, handleCurrentWindow: d, billIdToOpen: i, onBillHandled: v } = s, [w, a] = z(), [A, S] = z(""), [h, Y] = z(""), [x, k] = z(), [L, V] = z(), [I, N] = z(1), [P, B] = z([]), [b, te] = z(-1), [H, E] = z(-1), [W, Q] = z(0), [ce, $] = z(0), [O, ue] = z(!1), we = Lt(Mt);
12261
+ const { closePrintModal: u, handleCurrentWindow: d, billIdToOpen: i, onBillHandled: v } = s, [w, a] = z(), [A, S] = z(""), [h, Y] = z(""), [x, k] = z(), [L, V] = z(), [I, D] = z(1), [P, B] = z([]), [b, te] = z(-1), [H, E] = z(-1), [W, Q] = z(0), [ce, $] = z(0), [O, ue] = z(!1), we = Lt(Mt);
12265
12262
  if (!we)
12266
12263
  throw new Error("Bills component must be used within an AppContext.Provider");
12267
12264
  const { patientIDs: de, setLoading: Me, variable: ie } = we, q = (Ve) => Q(Ve), fe = (Ve = ht[0]) => S(Ve), M = (Ve) => Y(Ve), Re = (Ve) => {
12268
12265
  k(Ve), M(Ve?.service_category ?? ""), S(ht[1]);
12269
12266
  }, He = (Ve, mt) => {
12270
12267
  te(Ve), E(mt);
12271
- }, ke = Zt(async () => {
12268
+ }, ke = er(async () => {
12272
12269
  if (de?.patientRoleID)
12273
12270
  try {
12274
12271
  const Ve = await La(Be().format("YYYY-MM-DD"), de.patientRoleID, !1, ie);
@@ -12276,7 +12273,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12276
12273
  } catch (Ve) {
12277
12274
  console.error("Error in getPastDueAmount API Call:", Ve);
12278
12275
  }
12279
- }, [de.patientRoleID, ie]), pt = Zt(async () => {
12276
+ }, [de.patientRoleID, ie]), pt = er(async () => {
12280
12277
  if (de?.patientRoleID)
12281
12278
  try {
12282
12279
  const Ve = await Za(de.patientRoleID, ie);
@@ -12284,7 +12281,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12284
12281
  } catch (Ve) {
12285
12282
  console.error("Error fetching wallet balance:", Ve), $(0);
12286
12283
  }
12287
- }, [de.patientRoleID, ie]), ft = Zt(async () => {
12284
+ }, [de.patientRoleID, ie]), ft = er(async () => {
12288
12285
  if (de?.patientRoleID) {
12289
12286
  Me(!0);
12290
12287
  try {
@@ -12302,10 +12299,10 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12302
12299
  if (!(Ve > mt)) {
12303
12300
  Me(!0);
12304
12301
  try {
12305
- const St = await Ma("all", de.patientRoleID, Ve, 10, ie);
12306
- St?.bill_list && B((xt) => [...xt, ...St.bill_list]), N(Ve);
12307
- } catch (St) {
12308
- console.error("Failed to load more bills:", St);
12302
+ const Nt = await Ma("all", de.patientRoleID, Ve, 10, ie);
12303
+ Nt?.bill_list && B((xt) => [...xt, ...Nt.bill_list]), D(Ve);
12304
+ } catch (Nt) {
12305
+ console.error("Failed to load more bills:", Nt);
12309
12306
  } finally {
12310
12307
  Me(!1);
12311
12308
  }
@@ -12328,21 +12325,21 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12328
12325
  children: [
12329
12326
  /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-max-h-[470px] hfl-w-full hfl-flex-col hfl-overflow-y-auto", children: /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-1 hfl-flex-col hfl-items-center hfl-gap-6 hfl-overflow-y-auto ", children: [
12330
12327
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-justify-between hfl-self-stretch", children: [
12331
- /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text lg", className: "hfl-text-Gray-700", children: "Bills" }),
12328
+ /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text lg", className: "hfl-text-Gray-700", children: "Bills" }),
12332
12329
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-gap-2 ", children: [
12333
12330
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center", children: [
12334
- /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text lg", className: "hfl-text-Blue_gray-600", children: "Total Due Amount :" }),
12335
- /* @__PURE__ */ e.jsxs(D, { variant: "Semibold", type: "Text lg", className: "hfl-text-Error-500", children: [
12331
+ /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text lg", className: "hfl-text-Blue_gray-600", children: "Total Due Amount :" }),
12332
+ /* @__PURE__ */ e.jsxs(N, { variant: "Semibold", type: "Text lg", className: "hfl-text-Error-500", children: [
12336
12333
  "₹ ",
12337
12334
  L?.total_amount || 0
12338
12335
  ] })
12339
12336
  ] }),
12340
12337
  /* @__PURE__ */ e.jsx("div", { className: "hfl-h-[30px] hfl-w-[2px] hfl-bg-Gray-200" }),
12341
12338
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-row hfl-items-center hfl-justify-center hfl-text-Gray-700", children: [
12342
- /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text lg", children: "Deposit Amount:" }),
12339
+ /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text lg", children: "Deposit Amount:" }),
12343
12340
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-justify-center hfl-gap-1 hfl-rounded-lg hfl-bg-Gray-50 hfl-p-1", children: [
12344
12341
  /* @__PURE__ */ e.jsx("i", { className: "hx_rupee hfl-text-3 hfl-text-Success-500" }),
12345
- /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text lg", className: " hfl-text-Success-500", children: ce }),
12342
+ /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text lg", className: " hfl-text-Success-500", children: ce }),
12346
12343
  /* @__PURE__ */ e.jsx(
12347
12344
  Fe,
12348
12345
  {
@@ -12372,7 +12369,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12372
12369
  ) : /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-col hfl-items-center hfl-justify-center hfl-gap-4", children: [
12373
12370
  /* @__PURE__ */ e.jsx("img", { className: "hfl-w-[80px] hfl-text-Blue_gray-500", src: Js, alt: "empty-bills" }),
12374
12371
  /* @__PURE__ */ e.jsx(
12375
- D,
12372
+ N,
12376
12373
  {
12377
12374
  variant: "Regular",
12378
12375
  type: "Text md",
@@ -12380,7 +12377,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12380
12377
  children: "No Past Bills Available"
12381
12378
  }
12382
12379
  ),
12383
- /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text md", className: "hfl-text-Gray-500", children: [
12380
+ /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text md", className: "hfl-text-Gray-500", children: [
12384
12381
  "To create a new bill go to",
12385
12382
  " ",
12386
12383
  /* @__PURE__ */ e.jsx(
@@ -12462,7 +12459,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12462
12459
  };
12463
12460
  return /* @__PURE__ */ e.jsxs("div", { ref: s, className: "hfl-flex hfl-w-[400px] hfl-flex-col hfl-rounded-lg hfl-border-none", children: [
12464
12461
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-col hfl-rounded-t-lg hfl-bg-gradient_primary_600_500_90 hfl-px-6 hfl-py-5 hfl-text-White hfl-shadow-sm", children: [
12465
- /* @__PURE__ */ e.jsx(D, { variant: "Bold", type: "Text md", className: "hfl-text-White", children: "Please make required changes" }),
12462
+ /* @__PURE__ */ e.jsx(N, { variant: "Bold", type: "Text md", className: "hfl-text-White", children: "Please make required changes" }),
12466
12463
  " "
12467
12464
  ] }),
12468
12465
  /* @__PURE__ */ e.jsx("div", { className: "hfl-bg-White hfl-p-6", children: /* @__PURE__ */ e.jsx(
@@ -12555,14 +12552,14 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12555
12552
  "td",
12556
12553
  {
12557
12554
  className: `${s.td} `,
12558
- children: /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", children: Be.utc(new Date(L.created_on)).format("YYYY-MM-DD / HH:mm") })
12555
+ children: /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", children: Be.utc(new Date(L.created_on)).format("YYYY-MM-DD / HH:mm") })
12559
12556
  }
12560
12557
  ),
12561
12558
  /* @__PURE__ */ e.jsx(
12562
12559
  "td",
12563
12560
  {
12564
12561
  className: `${s.td} hfl-max-w-[70px]`,
12565
- children: /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center", children: /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "-hfl-ml-1 ", children: L.order_id_str }) })
12562
+ children: /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center", children: /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "-hfl-ml-1 ", children: L.order_id_str }) })
12566
12563
  }
12567
12564
  ),
12568
12565
  /* @__PURE__ */ e.jsx(
@@ -12570,7 +12567,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12570
12567
  {
12571
12568
  className: `${s.td} hfl-max-w-[90px]`,
12572
12569
  children: /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center", children: /* @__PURE__ */ e.jsx(
12573
- D,
12570
+ N,
12574
12571
  {
12575
12572
  variant: "Regular",
12576
12573
  type: "Text sm",
@@ -12591,7 +12588,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12591
12588
  children: /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center", children: [
12592
12589
  /* @__PURE__ */ e.jsx("i", { className: " hx_f_rupee hfl-flex " }),
12593
12590
  /* @__PURE__ */ e.jsx(
12594
- D,
12591
+ N,
12595
12592
  {
12596
12593
  variant: "Regular",
12597
12594
  type: "Text sm",
@@ -12604,7 +12601,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12604
12601
  ),
12605
12602
  /* @__PURE__ */ e.jsx("td", { className: `${s.td} hfl-w-[90px]`, children: /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-justify-between hfl-gap-2", children: [
12606
12603
  /* @__PURE__ */ e.jsx(
12607
- D,
12604
+ N,
12608
12605
  {
12609
12606
  variant: "Regular",
12610
12607
  type: "Text sm",
@@ -12636,16 +12633,16 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12636
12633
  className: `hfl-flex hfl-text-3 hfl-text-Error-500 ${k(L.service_category_id)}`
12637
12634
  }
12638
12635
  ),
12639
- /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", className: "-hfl-ml-0 ", children: [
12636
+ /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", className: "-hfl-ml-0 ", children: [
12640
12637
  " ",
12641
12638
  x(L?.service_category_id)
12642
12639
  ] })
12643
12640
  ] }) }),
12644
12641
  /* @__PURE__ */ e.jsx("td", { className: `${s.td} hfl-max-w-[50px]`, children: /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center", children: [
12645
12642
  /* @__PURE__ */ e.jsx("i", { className: " hx_f-rupee hfl-flex hfl-text-0" }),
12646
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "-hfl-ml-1", children: L.order_total })
12643
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "-hfl-ml-1", children: L.order_total })
12647
12644
  ] }) }),
12648
- /* @__PURE__ */ e.jsx("td", { className: `${s.td} hfl-max-w-[70px]`, title: L.details, children: /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center", children: /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "-hfl-ml-1 hfl-truncate", children: L.details }) }) }),
12645
+ /* @__PURE__ */ e.jsx("td", { className: `${s.td} hfl-max-w-[70px]`, title: L.details, children: /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center", children: /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "-hfl-ml-1 hfl-truncate", children: L.details }) }) }),
12649
12646
  /* @__PURE__ */ e.jsx("td", { className: `${s.td} hfl-max-w-[70px]`, children: /* @__PURE__ */ e.jsx(
12650
12647
  "i",
12651
12648
  {
@@ -12699,12 +12696,12 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12699
12696
  // ppEventProps,
12700
12697
  } = Lt(Mt), Y = async (x, k, L, V) => {
12701
12698
  h?.visible && i();
12702
- const N = [
12699
+ const D = [
12703
12700
  w?.age && typeof w?.age == "number" ? `${w?.age}y` : w?.org_person_dob ? wr(w?.org_person_dob) : "",
12704
12701
  dl[w?.gender] ?? "",
12705
12702
  w?.blood_group
12706
12703
  ].filter((B) => B).join(", "), P = {
12707
- name: pr(w?.name) + (N ? ` (${N}) ` : ""),
12704
+ name: pr(w?.name) + (D ? ` (${D}) ` : ""),
12708
12705
  billDate: Be(x?.transaction_time).format("DD-MMM-YYYY"),
12709
12706
  mobileNumber: w?.phone_number,
12710
12707
  email: w?.email,
@@ -12742,15 +12739,15 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12742
12739
  });
12743
12740
  };
12744
12741
  return /* @__PURE__ */ e.jsx(e.Fragment, { children: u.length > 0 && u.map((x, k) => /* @__PURE__ */ e.jsx(cl.Fragment, { children: /* @__PURE__ */ e.jsxs("tr", { className: "hfl-border-1", children: [
12745
- /* @__PURE__ */ e.jsx("td", { className: `${s.td} `, children: /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", children: Be.utc(new Date(x.transaction_time)).format("YYYY-MM-DD / HH:mm") }) }),
12746
- /* @__PURE__ */ e.jsx("td", { className: `${s.td} hfl-max-w-[70px]`, children: /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center", children: /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "-hfl-ml-1 hfl-text-Primary-600", children: x.bill_number }) }) }),
12742
+ /* @__PURE__ */ e.jsx("td", { className: `${s.td} `, children: /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", children: Be.utc(new Date(x.transaction_time)).format("YYYY-MM-DD / HH:mm") }) }),
12743
+ /* @__PURE__ */ e.jsx("td", { className: `${s.td} hfl-max-w-[70px]`, children: /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center", children: /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "-hfl-ml-1 hfl-text-Primary-600", children: x.bill_number }) }) }),
12747
12744
  /* @__PURE__ */ e.jsx("td", { className: `${s.td} hfl-max-w-[105px]`, children: /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center", children: [
12748
12745
  /* @__PURE__ */ e.jsx("i", { className: " hx_f-rupee hfl-flex hfl-text-0" }),
12749
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "-hfl-ml-1", children: x.bill_amount })
12746
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "-hfl-ml-1", children: x.bill_amount })
12750
12747
  ] }) }),
12751
12748
  /* @__PURE__ */ e.jsx("td", { className: `${s.td} hfl-max-w-[115px]`, children: /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center", children: [
12752
12749
  /* @__PURE__ */ e.jsx(
12753
- D,
12750
+ N,
12754
12751
  {
12755
12752
  variant: "Regular",
12756
12753
  type: "Text sm",
@@ -12778,16 +12775,16 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12778
12775
  ] }) }),
12779
12776
  /* @__PURE__ */ e.jsx("td", { className: `${s.td} hfl-w-[90px]`, children: /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center", children: [
12780
12777
  /* @__PURE__ */ e.jsx("i", { className: " hfl-flex hfl-text-0" }),
12781
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "-hfl-ml-1", children: x.mode })
12778
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "-hfl-ml-1", children: x.mode })
12782
12779
  ] }) }),
12783
12780
  /* @__PURE__ */ e.jsx("td", { className: `${s.td} hfl-max-w-[90px]`, children: /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center ", children: [
12784
12781
  /* @__PURE__ */ e.jsx("img", { src: En(x.type) }),
12785
- /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", className: "-hfl-ml-0 ", children: [
12782
+ /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", className: "-hfl-ml-0 ", children: [
12786
12783
  " ",
12787
12784
  x.type
12788
12785
  ] })
12789
12786
  ] }) }),
12790
- /* @__PURE__ */ e.jsx("td", { className: `${s.td} hfl-max-w-[160px]`, title: x.details, children: /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center", children: /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "-hfl-ml-1 hfl-truncate", children: x.details }) }) })
12787
+ /* @__PURE__ */ e.jsx("td", { className: `${s.td} hfl-max-w-[160px]`, title: x.details, children: /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center", children: /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "-hfl-ml-1 hfl-truncate", children: x.details }) }) })
12791
12788
  ] }, `${k}`) }, k)) });
12792
12789
  }, lo = (s) => {
12793
12790
  const {
@@ -12848,7 +12845,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12848
12845
  default:
12849
12846
  return "";
12850
12847
  }
12851
- }, I = Qt(() => w === br[Ir.consultation_lab_other_services].key ? [
12848
+ }, I = Jt(() => w === br[Ir.consultation_lab_other_services].key ? [
12852
12849
  {
12853
12850
  label: "Date/Time",
12854
12851
  className: "focus:hfl-outline-none hfl-items-start hfl-w-[162px] hfl-border-Gray-200 hfl-border-1"
@@ -12914,7 +12911,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12914
12911
  label: "Details",
12915
12912
  className: "focus:hfl-outline-none hfl-items-start hfl-w-[160px] hfl-border-1 hfl-px-2 hfl-border-Gray-200 hfl-py-1 hfl-text-left"
12916
12913
  }
12917
- ], [w]), N = ({ label: B, className: b }) => /* @__PURE__ */ e.jsx("th", { className: b, children: /* @__PURE__ */ e.jsxs(D, { variant: "Semibold", type: "Text sm", className: "hfl-text-Gray-600", children: [
12914
+ ], [w]), D = ({ label: B, className: b }) => /* @__PURE__ */ e.jsx("th", { className: b, children: /* @__PURE__ */ e.jsxs(N, { variant: "Semibold", type: "Text sm", className: "hfl-text-Gray-600", children: [
12918
12915
  " ",
12919
12916
  B
12920
12917
  ] }) }), P = {
@@ -12923,7 +12920,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12923
12920
  td: "hfl-px-2 hfl-h-[36px] hfl-align-top hfl-border-Gray-200 hfl-py-1.5 hfl-border-1 hfl-truncate hfl-text-Gray-500"
12924
12921
  };
12925
12922
  return /* @__PURE__ */ e.jsx("div", { className: "", children: /* @__PURE__ */ e.jsxs("table", { className: `${P.table}`, children: [
12926
- /* @__PURE__ */ e.jsx("thead", { className: `${P.th}`, children: /* @__PURE__ */ e.jsx("tr", { children: I.map((B, b) => /* @__PURE__ */ e.jsx(N, { label: B.label, className: B.className }, b)) }) }),
12923
+ /* @__PURE__ */ e.jsx("thead", { className: `${P.th}`, children: /* @__PURE__ */ e.jsx("tr", { children: I.map((B, b) => /* @__PURE__ */ e.jsx(D, { label: B.label, className: B.className }, b)) }) }),
12927
12924
  /* @__PURE__ */ e.jsx("tbody", { children: w === br[Ir.consultation_lab_other_services].key ? /* @__PURE__ */ e.jsx(
12928
12925
  to,
12929
12926
  {
@@ -12948,12 +12945,12 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12948
12945
  ) })
12949
12946
  ] }) });
12950
12947
  }, ao = "data:image/svg+xml,%3csvg%20width='88'%20height='87'%20viewBox='0%200%2088%2087'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cellipse%20opacity='0.1'%20cx='44'%20cy='83.92'%20rx='43.5'%20ry='2.58'%20fill='%234E5BA6'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.6799%2017.3857C12.6799%2016.1344%2013.7061%2015.12%2014.972%2015.12C16.2379%2015.12%2017.2641%2016.1344%2017.2641%2017.3857V22.0468C17.2641%2023.2981%2016.2379%2024.3125%2014.972%2024.3125C13.7061%2024.3125%2012.6799%2023.2981%2012.6799%2022.0468V17.3857ZM14.972%2016.84C14.6671%2016.84%2014.4199%2017.0843%2014.4199%2017.3857V22.0468C14.4199%2022.3482%2014.6671%2022.5925%2014.972%2022.5925C15.2769%2022.5925%2015.5241%2022.3482%2015.5241%2022.0468V17.3857C15.5241%2017.0843%2015.2769%2016.84%2014.972%2016.84ZM23.1199%2026.3C23.1199%2023.9252%2025.0675%2022%2027.4699%2022H56.4199C55.1757%2023.464%2054.2776%2025.225%2053.8502%2027.16H23.1199V26.3ZM53.6005%2028.88H19.6399C17.2375%2028.88%2015.2899%2030.8052%2015.2899%2033.18V37.48L56.4199%2037.48C54.6412%2035.3872%2053.5699%2032.6872%2053.5699%2029.74C53.5699%2029.4508%2053.5802%2029.1641%2053.6005%2028.88ZM67.4899%2041.6581V58.98H69.2299C71.6324%2058.98%2073.5799%2057.0548%2073.5799%2054.68V38.9628C71.8823%2040.3727%2069.7897%2041.3329%2067.4899%2041.6581ZM75.3199%2037.1886V54.68C75.3199%2058.0047%2072.5933%2060.7%2069.2299%2060.7H67.4899V61.56C67.4899%2064.8848%2064.7633%2067.58%2061.3999%2067.58H19.6399C16.2765%2067.58%2013.5499%2064.8848%2013.5499%2061.56V33.18C13.5499%2029.8552%2016.2765%2027.16%2019.6399%2027.16H21.3799V26.3C21.3799%2022.9752%2024.1065%2020.28%2027.4699%2020.28H57.9199V20.5172C60.0371%2018.759%2062.7684%2017.7%2065.7499%2017.7C72.4768%2017.7%2077.9299%2023.0905%2077.9299%2029.74C77.9299%2032.5522%2076.9545%2035.1393%2075.3199%2037.1886ZM15.2899%2042.64L65.7499%2042.64V58.98V60.7V61.56C65.7499%2063.9348%2063.8024%2065.86%2061.3999%2065.86H19.6399C17.2375%2065.86%2015.2899%2063.9348%2015.2899%2061.56V42.64ZM73.262%2063.28C71.9961%2063.28%2070.9699%2064.2944%2070.9699%2065.5457V70.2068C70.9699%2071.4581%2071.9961%2072.4725%2073.262%2072.4725C74.5279%2072.4725%2075.5541%2071.4581%2075.5541%2070.2068V65.5457C75.5541%2064.2944%2074.5279%2063.28%2073.262%2063.28ZM72.7099%2065.5457C72.7099%2065.2443%2072.9571%2065%2073.262%2065C73.5669%2065%2073.8141%2065.2443%2073.8141%2065.5457V70.2068C73.8141%2070.5082%2073.5669%2070.7525%2073.262%2070.7525C72.9571%2070.7525%2072.7099%2070.5082%2072.7099%2070.2068V65.5457ZM55.3099%2029.74C55.3099%2024.0404%2059.9841%2019.42%2065.7499%2019.42C71.5158%2019.42%2076.1899%2024.0404%2076.1899%2029.74C76.1899%2035.4396%2071.5158%2040.06%2065.7499%2040.06C59.9841%2040.06%2055.3099%2035.4396%2055.3099%2029.74ZM63.5749%2024.15C63.5749%2022.9626%2064.5487%2022%2065.7499%2022C66.9511%2022%2067.9249%2022.9626%2067.9249%2024.15V29.31C67.9249%2030.4974%2066.9511%2031.46%2065.7499%2031.46C64.5487%2031.46%2063.5749%2030.4974%2063.5749%2029.31V24.15ZM65.7499%2023.72C65.5097%2023.72%2065.3149%2023.9125%2065.3149%2024.15V29.31C65.3149%2029.5475%2065.5097%2029.74%2065.7499%2029.74C65.9902%2029.74%2066.1849%2029.5475%2066.1849%2029.31V24.15C66.1849%2023.9125%2065.9902%2023.72%2065.7499%2023.72ZM65.7499%2037.48C64.5487%2037.48%2063.5749%2036.5174%2063.5749%2035.33C63.5749%2034.1426%2064.5487%2033.18%2065.7499%2033.18C66.9511%2033.18%2067.9249%2034.1426%2067.9249%2035.33C67.9249%2036.5174%2066.9511%2037.48%2065.7499%2037.48ZM65.3149%2035.33C65.3149%2035.5675%2065.5097%2035.76%2065.7499%2035.76C65.9902%2035.76%2066.1849%2035.5675%2066.1849%2035.33C66.1849%2035.0925%2065.9902%2034.9%2065.7499%2034.9C65.5097%2034.9%2065.3149%2035.0925%2065.3149%2035.33ZM35.7349%2050.38C34.5337%2050.38%2033.5599%2051.3426%2033.5599%2052.53C33.5599%2053.7174%2034.5337%2054.68%2035.7349%2054.68H59.2249C60.4262%2054.68%2061.3999%2053.7174%2061.3999%2052.53C61.3999%2051.3426%2060.4262%2050.38%2059.2249%2050.38H35.7349ZM35.2999%2052.53C35.2999%2052.2925%2035.4947%2052.1%2035.7349%2052.1H59.2249C59.4652%2052.1%2059.6599%2052.2925%2059.6599%2052.53C59.6599%2052.7675%2059.4652%2052.96%2059.2249%2052.96H35.7349C35.4947%2052.96%2035.2999%2052.7675%2035.2999%2052.53ZM24.4249%2056.4C26.5871%2056.4%2028.3399%2054.6673%2028.3399%2052.53C28.3399%2050.3927%2026.5871%2048.66%2024.4249%2048.66C22.2627%2048.66%2020.5099%2050.3927%2020.5099%2052.53C20.5099%2054.6673%2022.2627%2056.4%2024.4249%2056.4Z'%20fill='%23AFB5D9'/%3e%3c/svg%3e", no = ({ walletBalance: s, handleRightSegment: u, headerText: d }) => /* @__PURE__ */ e.jsxs("div", { className: "hfl-mt-2 hfl-flex hfl-w-full hfl-flex-row hfl-items-center hfl-justify-between hfl-text-Gray-700", children: [
12951
- /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text lg", children: d }),
12948
+ /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text lg", children: d }),
12952
12949
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center", children: [
12953
- /* @__PURE__ */ e.jsx(D, { variant: "Medium", type: "Text lg", children: "Deposit Amount:" }),
12950
+ /* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text lg", children: "Deposit Amount:" }),
12954
12951
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-justify-center hfl-gap-1 hfl-rounded-lg hfl-bg-Gray-50 hfl-p-1", children: [
12955
12952
  /* @__PURE__ */ e.jsx("i", { className: "hx_rupee hfl-text-3 hfl-text-Success-500" }),
12956
- /* @__PURE__ */ e.jsx(D, { variant: "Medium", type: "Text lg", className: " hfl-text-Success-500", children: s }),
12953
+ /* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text lg", className: " hfl-text-Success-500", children: s }),
12957
12954
  /* @__PURE__ */ e.jsx(
12958
12955
  Fe,
12959
12956
  {
@@ -12991,7 +12988,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
12991
12988
  u?.age && typeof u?.age == "number" ? `${u?.age}y` : u?.org_person_dob ? wr(u?.org_person_dob) : "",
12992
12989
  dl[u?.gender] ?? "",
12993
12990
  u?.blood_group
12994
- ].filter((N) => N).join(", "), I = {
12991
+ ].filter((D) => D).join(", "), I = {
12995
12992
  name: pr(u?.name) + (V ? ` (${V}) ` : ""),
12996
12993
  billDate: Be(S?.transaction_time).format("DD-MMM-YYYY"),
12997
12994
  mobileNumber: u?.phone_number,
@@ -13000,7 +12997,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
13000
12997
  patientId: u?.org_person_bid_str,
13001
12998
  patientIdForEmail: d?.patientRoleID,
13002
12999
  billStatus: "PAID",
13003
- address: [u?.address ?? "", u?.city ?? "", u?.pincode ?? ""].filter((N) => N).join(", ")
13000
+ address: [u?.address ?? "", u?.city ?? "", u?.pincode ?? ""].filter((D) => D).join(", ")
13004
13001
  };
13005
13002
  v?.({
13006
13003
  printDataFrom: "patient_popup",
@@ -13037,45 +13034,45 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
13037
13034
  onClick: () => a(ht[0])
13038
13035
  }
13039
13036
  ),
13040
- /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text sm", className: "hfl-flex hfl-items-center", children: "Bills Summary" })
13037
+ /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text sm", className: "hfl-flex hfl-items-center", children: "Bills Summary" })
13041
13038
  ] }),
13042
13039
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-col hfl-items-start hfl-px-3 hfl-py-2", children: [
13043
13040
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-start hfl-justify-between hfl-self-stretch hfl-py-[7px] hfl-pr-7", children: [
13044
13041
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-w-[60%] hfl-gap-2", children: [
13045
13042
  /* @__PURE__ */ e.jsx("img", { src: En(S.type), alt: "" }),
13046
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: S.type === "DEPOSIT" ? "Deposit" : "Refund(Deposit)" })
13043
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "hfl-flex-1 hfl-text-Gray-800", children: S.type === "DEPOSIT" ? "Deposit" : "Refund(Deposit)" })
13047
13044
  ] }),
13048
- /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
13045
+ /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
13049
13046
  "₹ ",
13050
13047
  S?.bill_amount
13051
13048
  ] })
13052
13049
  ] }),
13053
13050
  S.type === "DEPOSIT" && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
13054
13051
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-start hfl-self-stretch hfl-py-[7px] hfl-pr-7", children: [
13055
- /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text sm", className: "hfl-w-[60%] hfl-flex-1 hfl-text-Gray-800", children: "Total Billed Amount" }),
13056
- /* @__PURE__ */ e.jsxs(D, { variant: "Semibold", type: "Text sm", className: "hfl-text-Gray-800", children: [
13052
+ /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text sm", className: "hfl-w-[60%] hfl-flex-1 hfl-text-Gray-800", children: "Total Billed Amount" }),
13053
+ /* @__PURE__ */ e.jsxs(N, { variant: "Semibold", type: "Text sm", className: "hfl-text-Gray-800", children: [
13057
13054
  "₹ ",
13058
13055
  S?.bill_amount
13059
13056
  ] })
13060
13057
  ] }),
13061
13058
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-start hfl-self-stretch hfl-py-[7px] hfl-pr-7", children: [
13062
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "hfl-w-[60%] hfl-flex-1 hfl-text-Gray-800", children: "Paid Amount" }),
13063
- /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
13059
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "hfl-w-[60%] hfl-flex-1 hfl-text-Gray-800", children: "Paid Amount" }),
13060
+ /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
13064
13061
  "₹ ",
13065
13062
  S?.paid_amount
13066
13063
  ] })
13067
13064
  ] })
13068
13065
  ] }),
13069
13066
  S.type === "REFUND" && /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-start hfl-self-stretch hfl-py-[7px] hfl-pr-7", children: [
13070
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "hfl-w-[60%] hfl-flex-1 hfl-text-Gray-800", children: "Deposit Amount" }),
13071
- /* @__PURE__ */ e.jsxs(D, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
13067
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "hfl-w-[60%] hfl-flex-1 hfl-text-Gray-800", children: "Deposit Amount" }),
13068
+ /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", className: "hfl-text-Gray-800", children: [
13072
13069
  "₹ ",
13073
13070
  S?.opening_balance
13074
13071
  ] })
13075
13072
  ] }),
13076
13073
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-start hfl-self-stretch hfl-py-[7px] hfl-pr-7", children: [
13077
- /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text sm", className: "hfl-w-[60%] hfl-flex-1 hfl-text-Gray-800", children: "Total Balance" }),
13078
- /* @__PURE__ */ e.jsxs(D, { variant: "Semibold", type: "Text sm", className: "hfl-text-Gray-800", children: [
13074
+ /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text sm", className: "hfl-w-[60%] hfl-flex-1 hfl-text-Gray-800", children: "Total Balance" }),
13075
+ /* @__PURE__ */ e.jsxs(N, { variant: "Semibold", type: "Text sm", className: "hfl-text-Gray-800", children: [
13079
13076
  "₹",
13080
13077
  " ",
13081
13078
  S.type === "DEPOSIT" ? parseInt(S?.bill_amount) - parseInt(S?.paid_amount) : S?.closing_balance
@@ -13120,7 +13117,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
13120
13117
  br[Ir.consultation_lab_other_services].key
13121
13118
  ), [i, v] = z(
13122
13119
  null
13123
- ), [w, a] = z(ht[5]), [A, S] = z(""), [h, Y] = z(), [x, k] = z([]), [L, V] = z(1), [I, N] = z(), { setLoading: P, patientIDs: B, variable: b } = Lt(Mt), [te, H] = z(0), [E, W] = z(!1), Q = Zt(async () => {
13120
+ ), [w, a] = z(ht[5]), [A, S] = z(""), [h, Y] = z(), [x, k] = z([]), [L, V] = z(1), [I, D] = z(), { setLoading: P, patientIDs: B, variable: b } = Lt(Mt), [te, H] = z(0), [E, W] = z(!1), Q = er(async () => {
13124
13121
  try {
13125
13122
  if (P(!0), B?.patientRoleID) {
13126
13123
  const q = await Ha(B.patientRoleID, 1, 10, b);
@@ -13130,7 +13127,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
13130
13127
  } catch {
13131
13128
  v(null), k([]), P(!1), console.log("error in getPaymentsList API Call");
13132
13129
  }
13133
- }, [B.patientRoleID, P, b]), ce = Zt(async () => {
13130
+ }, [B.patientRoleID, P, b]), ce = er(async () => {
13134
13131
  try {
13135
13132
  P(!0);
13136
13133
  const q = await ka(B?.patientRoleID || "", 1, 10, b);
@@ -13146,7 +13143,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
13146
13143
  if (Y(q), u === br[Ir.consultation_lab_other_services].key) {
13147
13144
  if (O(Dt[parseInt(q?.service_category_id) - 1]), a(ht[1]), q?.order_id) {
13148
13145
  const fe = await de(q.order_id);
13149
- N(fe);
13146
+ D(fe);
13150
13147
  }
13151
13148
  } else
13152
13149
  a(ht[8]);
@@ -13171,7 +13168,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
13171
13168
  } catch {
13172
13169
  console.log("Error in Loading Bill Details from Bill Id");
13173
13170
  }
13174
- }, Me = Zt(async () => {
13171
+ }, Me = er(async () => {
13175
13172
  const q = await Za(B?.patientRoleID || "", b);
13176
13173
  H(q?.wallet_balance || 0);
13177
13174
  }, [B?.patientRoleID, b]), ie = (q) => {
@@ -13188,7 +13185,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
13188
13185
  className: `hfl-flex hfl-w-[938px] hfl-flex-col hfl-justify-start hfl-px-4 hfl-py-2 xxs:max-md:hfl-w-[750px] ${w === ht[7] ? "hfl-opacity-30" : ""}`,
13189
13186
  children: [
13190
13187
  /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center", children: Object.values(br).map((q, fe) => /* @__PURE__ */ e.jsx(
13191
- D,
13188
+ N,
13192
13189
  {
13193
13190
  variant: `${u === q.key ? "Semibold" : "Regular"}`,
13194
13191
  type: "Text md",
@@ -13233,7 +13230,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
13233
13230
  ] }) : /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-col hfl-items-center hfl-justify-center hfl-gap-4", children: [
13234
13231
  /* @__PURE__ */ e.jsx("img", { className: "hfl-w-[80px] hfl-text-Blue_gray-500", src: ao, alt: "empty-bills" }),
13235
13232
  /* @__PURE__ */ e.jsx(
13236
- D,
13233
+ N,
13237
13234
  {
13238
13235
  variant: "Regular",
13239
13236
  type: "Text md",
@@ -13304,7 +13301,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
13304
13301
  {
13305
13302
  ...x.getHeaderProps(),
13306
13303
  className: "hfl-rounded hfl-border-1 hfl-border-Gray-200 hfl-bg-Blue_gray-50 hfl-px-2 hfl-py-1 hfl-text-left",
13307
- children: /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text sm", className: "hfl-text-Gray-600", children: x.render("Header") })
13304
+ children: /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text sm", className: "hfl-text-Gray-600", children: x.render("Header") })
13308
13305
  }
13309
13306
  )
13310
13307
  );
@@ -13325,7 +13322,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
13325
13322
  "data-qa": x + 1 + "-" + (L + 1),
13326
13323
  ...k.getCellProps(),
13327
13324
  className: "hfl-relative hfl-border-1 hfl-border-Gray-200 hfl-px-2 hfl-text-left",
13328
- children: /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "hfl-text-[13px] hfl-text-Gray-500", children: k.render("Cell") })
13325
+ children: /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "hfl-text-[13px] hfl-text-Gray-500", children: k.render("Cell") })
13329
13326
  }
13330
13327
  ))
13331
13328
  }
@@ -13411,7 +13408,7 @@ ${x}`,
13411
13408
  openLISReportHandler: a = () => {
13412
13409
  },
13413
13410
  variable: A
13414
- } = s, { org_person_bid_str: S = "", email: h = "", phone_number: Y = "", patient_id: x, name: k = "" } = d, [L, V] = z(), [I, N] = z(i), [P, B] = z(!0), [b, te] = z(!1), [H, E] = z(""), [W, Q] = z(h), [ce, $] = z(Y), [O, ue] = z(!1), we = (fe) => {
13411
+ } = s, { org_person_bid_str: S = "", email: h = "", phone_number: Y = "", patient_id: x, name: k = "" } = d, [L, V] = z(), [I, D] = z(i), [P, B] = z(!0), [b, te] = z(!1), [H, E] = z(""), [W, Q] = z(h), [ce, $] = z(Y), [O, ue] = z(!1), we = (fe) => {
13415
13412
  const { value: M } = fe.target;
13416
13413
  te(!!M && !ol().email().isValidSync(M)), Q(M);
13417
13414
  }, de = (fe) => {
@@ -13423,7 +13420,7 @@ ${x}`,
13423
13420
  try {
13424
13421
  B(!0);
13425
13422
  const M = await Sn(S, A), { visits: Re = [] } = M;
13426
- V(M), Re.length && Re[0]?.reports?.length ? N(Re[0].reports[0]) : B(!1);
13423
+ V(M), Re.length && Re[0]?.reports?.length ? D(Re[0].reports[0]) : B(!1);
13427
13424
  } catch (M) {
13428
13425
  console.error("Error:", M), B(!1);
13429
13426
  }
@@ -13466,7 +13463,7 @@ ${x}`,
13466
13463
  className: "hfl-flex hfl-items-center hfl-justify-between hfl-rounded-t hfl-px-4 hfl-py-2 hfl-shadow-sm",
13467
13464
  style: { borderBottom: "1px solid var(--gray-300, #D0D5DD)" },
13468
13465
  children: [
13469
- /* @__PURE__ */ e.jsx(D, { type: "Text md", variant: "Regular", children: "Report" }),
13466
+ /* @__PURE__ */ e.jsx(N, { type: "Text md", variant: "Regular", children: "Report" }),
13470
13467
  /* @__PURE__ */ e.jsx(
13471
13468
  Fe,
13472
13469
  {
@@ -13515,9 +13512,9 @@ ${x}`,
13515
13512
  paddingBottom: "60px"
13516
13513
  },
13517
13514
  children: L?.visits && L.visits.length > 0 ? /* @__PURE__ */ e.jsxs("div", { className: "hfl-p-6 hfl-pb-0", children: [
13518
- /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "hfl-font-inter-2 !hfl-text-Black", children: "Please Choose Date:" }),
13519
- /* @__PURE__ */ e.jsx(oo, { visits: L?.visits, setPdfUrl: N, pdfUrl: I })
13520
- ] }) : !P && /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-h-full hfl-flex-1 hfl-items-center hfl-justify-center", children: /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text sm", className: "!hfl-text-Gray hfl-font-inter-2", children: "No reports available." }) })
13515
+ /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "hfl-font-inter-2 !hfl-text-Black", children: "Please Choose Date:" }),
13516
+ /* @__PURE__ */ e.jsx(oo, { visits: L?.visits, setPdfUrl: D, pdfUrl: I })
13517
+ ] }) : !P && /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-h-full hfl-flex-1 hfl-items-center hfl-justify-center", children: /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "!hfl-text-Gray hfl-font-inter-2", children: "No reports available." }) })
13521
13518
  }
13522
13519
  ),
13523
13520
  L?.visits && L.visits.length > 0 && /* @__PURE__ */ e.jsx(
@@ -13682,7 +13679,7 @@ ${x}`,
13682
13679
  }
13683
13680
  ), [Y, x] = h, { LabRecords: k, currentPage: L, isLabTableLoading: V } = Y, I = (te, H) => {
13684
13681
  te === "print_pdf" ? window.open(H.report_link, "_blank") : te === "print_preview" && (w(!0), A(H));
13685
- }, N = Zt(
13682
+ }, D = er(
13686
13683
  async (te) => {
13687
13684
  try {
13688
13685
  x({
@@ -13708,15 +13705,15 @@ ${x}`,
13708
13705
  lab_number: "350px"
13709
13706
  };
13710
13707
  Ke(() => {
13711
- N(L);
13712
- }, [L, N]);
13713
- const B = Qt(
13708
+ D(L);
13709
+ }, [L, D]);
13710
+ const B = Jt(
13714
13711
  () => [
13715
13712
  {
13716
13713
  Header: "Date",
13717
13714
  accessor: "lab_date",
13718
13715
  Cell: ({ row: te }) => /* @__PURE__ */ e.jsx("div", { className: "hfl-max-[100px] hfl-w-[100px]", children: /* @__PURE__ */ e.jsx(
13719
- D,
13716
+ N,
13720
13717
  {
13721
13718
  variant: "Regular",
13722
13719
  type: "Text [13px]",
@@ -13729,7 +13726,7 @@ ${x}`,
13729
13726
  Header: "Lab Number / Service Name.",
13730
13727
  accessor: "lab_number",
13731
13728
  Cell: ({ row: te }) => /* @__PURE__ */ e.jsx(
13732
- D,
13729
+ N,
13733
13730
  {
13734
13731
  variant: "Regular",
13735
13732
  type: "Text [13px]",
@@ -13772,7 +13769,7 @@ ${x}`,
13772
13769
  }
13773
13770
  ],
13774
13771
  [P.lab_date, P.lab_number]
13775
- ), b = Qt(() => k, [k]);
13772
+ ), b = Jt(() => k, [k]);
13776
13773
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
13777
13774
  " ",
13778
13775
  b?.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
@@ -13791,7 +13788,7 @@ ${x}`,
13791
13788
  ) })
13792
13789
  ] }),
13793
13790
  b.length === 0 && !V && /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-h-[calc(100%_-_80px)] hfl-flex-col hfl-items-center hfl-justify-center hfl-gap-4", children: /* @__PURE__ */ e.jsx(
13794
- D,
13791
+ N,
13795
13792
  {
13796
13793
  variant: "Regular",
13797
13794
  type: "Text md",
@@ -13820,7 +13817,7 @@ ${x}`,
13820
13817
  });
13821
13818
  }), u;
13822
13819
  }, po = (s) => {
13823
- const { setHplxLabModalOpen: u, patientDetails: d, showHPLXPrintPreview: i, reportsData: v, showToast: w, envName: a } = s, { patient_role_id: A = "", email: S = "", phone_number: h = "", name: Y = "" } = d, { order_date: x, report_id: k } = v, [L, V] = z(!1), [I, N] = z(""), [P, B] = z(S), [b, te] = z(h), [H, E] = z(!1), [W, Q] = z(null), [ce, $] = z("");
13820
+ const { setHplxLabModalOpen: u, patientDetails: d, showHPLXPrintPreview: i, reportsData: v, showToast: w, envName: a } = s, { patient_role_id: A = "", email: S = "", phone_number: h = "", name: Y = "" } = d, { order_date: x, report_id: k } = v, [L, V] = z(!1), [I, D] = z(""), [P, B] = z(S), [b, te] = z(h), [H, E] = z(!1), [W, Q] = z(null), [ce, $] = z("");
13824
13821
  Ke(() => {
13825
13822
  A && x && (async () => {
13826
13823
  const ie = {
@@ -13897,7 +13894,7 @@ ${x}`,
13897
13894
  className: "hfl-flex hfl-items-center hfl-justify-between hfl-rounded-t hfl-px-4 hfl-py-2 hfl-shadow-sm",
13898
13895
  style: { borderBottom: "1px solid var(--gray-300, #D0D5DD)" },
13899
13896
  children: [
13900
- /* @__PURE__ */ e.jsx(D, { type: "Text md", variant: "Regular", children: "Report" }),
13897
+ /* @__PURE__ */ e.jsx(N, { type: "Text md", variant: "Regular", children: "Report" }),
13901
13898
  /* @__PURE__ */ e.jsx(
13902
13899
  Fe,
13903
13900
  {
@@ -13951,8 +13948,8 @@ ${x}`,
13951
13948
  start_icon: "hx_mail",
13952
13949
  errorMsg: L && I !== "email" && "Email format is wrong",
13953
13950
  inputProps: {
13954
- onFocus: () => N("email"),
13955
- onBlur: () => N(""),
13951
+ onFocus: () => D("email"),
13952
+ onBlur: () => D(""),
13956
13953
  autoFocus: !0,
13957
13954
  type: "text",
13958
13955
  placeholder: "Enter Email",
@@ -13972,8 +13969,8 @@ ${x}`,
13972
13969
  errorMsg: H && I !== "phone" && "Invalid Phone Number",
13973
13970
  inputProps: {
13974
13971
  placeholder: "Enter Phone Number",
13975
- onFocus: () => N("phone"),
13976
- onBlur: () => N(""),
13972
+ onFocus: () => D("phone"),
13973
+ onBlur: () => D(""),
13977
13974
  onChange: (Me) => {
13978
13975
  we(Me);
13979
13976
  },
@@ -14063,13 +14060,13 @@ ${x}`,
14063
14060
  LabRecords: [],
14064
14061
  isLabTableLoading: !1
14065
14062
  }
14066
- ), [x, k] = Y, { LabRecords: L, currentPage: V, isLabTableLoading: I, totalRecord: N } = x, P = {
14063
+ ), [x, k] = Y, { LabRecords: L, currentPage: V, isLabTableLoading: I, totalRecord: D } = x, P = {
14067
14064
  order_date: "100px",
14068
14065
  test: "350px"
14069
14066
  // status: '200px',
14070
14067
  }, B = (E, W) => {
14071
14068
  w(!0), A(E), h(W);
14072
- }, b = Zt(
14069
+ }, b = er(
14073
14070
  async (E) => {
14074
14071
  k({ isLabTableLoading: !0 });
14075
14072
  try {
@@ -14091,13 +14088,13 @@ ${x}`,
14091
14088
  Ke(() => {
14092
14089
  b(V);
14093
14090
  }, [V, b]);
14094
- const te = Qt(
14091
+ const te = Jt(
14095
14092
  () => [
14096
14093
  {
14097
14094
  Header: "Date",
14098
14095
  accessor: "order_date",
14099
14096
  Cell: ({ row: E }) => /* @__PURE__ */ e.jsx("div", { className: "hfl-max-[100px] hfl-w-[100px]", children: /* @__PURE__ */ e.jsx(
14100
- D,
14097
+ N,
14101
14098
  {
14102
14099
  variant: "Regular",
14103
14100
  type: "Text [13px]",
@@ -14110,7 +14107,7 @@ ${x}`,
14110
14107
  Header: "Test Name",
14111
14108
  accessor: "test",
14112
14109
  Cell: ({ row: E }) => /* @__PURE__ */ e.jsx(
14113
- D,
14110
+ N,
14114
14111
  {
14115
14112
  variant: "Regular",
14116
14113
  type: "Text [13px]",
@@ -14153,7 +14150,7 @@ ${x}`,
14153
14150
  }
14154
14151
  ],
14155
14152
  [P.order_date, P.test]
14156
- ), H = Qt(() => L, [L]);
14153
+ ), H = Jt(() => L, [L]);
14157
14154
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
14158
14155
  " ",
14159
14156
  H?.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
@@ -14162,7 +14159,7 @@ ${x}`,
14162
14159
  fl,
14163
14160
  {
14164
14161
  currentPage: V,
14165
- totalRecord: N,
14162
+ totalRecord: D,
14166
14163
  handleLoadMore: () => b(V + 1),
14167
14164
  isLoading: I,
14168
14165
  currentTotal: H.length
@@ -14181,7 +14178,7 @@ ${x}`,
14181
14178
  ) })
14182
14179
  ] }),
14183
14180
  H.length === 0 && !I && /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-h-[calc(100%_-_80px)] hfl-flex-col hfl-items-center hfl-justify-center hfl-gap-4", children: /* @__PURE__ */ e.jsx(
14184
- D,
14181
+ N,
14185
14182
  {
14186
14183
  variant: "Regular",
14187
14184
  type: "Text md",
@@ -14209,7 +14206,7 @@ ${x}`,
14209
14206
  return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-h-[73.55vh] hfl-bg-White", children: /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-w-[913px] hfl-flex-col hfl-justify-start hfl-px-4 hfl-py-2", children: A || S ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
14210
14207
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center", children: [
14211
14208
  A && /* @__PURE__ */ e.jsx(
14212
- D,
14209
+ N,
14213
14210
  {
14214
14211
  variant: `${w === ar.lis_report ? "Semibold" : "Regular"}`,
14215
14212
  type: "Text md",
@@ -14219,7 +14216,7 @@ ${x}`,
14219
14216
  }
14220
14217
  ),
14221
14218
  S && /* @__PURE__ */ e.jsx(
14222
- D,
14219
+ N,
14223
14220
  {
14224
14221
  variant: `${w === ar.healthplix_report ? "Semibold" : "Regular"}`,
14225
14222
  type: "Text md",
@@ -14230,14 +14227,14 @@ ${x}`,
14230
14227
  )
14231
14228
  ] }),
14232
14229
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-relative hfl-mx-[12%] hfl-h-full hfl-overflow-auto hfl-py-[20px]", children: [
14233
- /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center hfl-justify-between hfl-pb-2", children: /* @__PURE__ */ e.jsx(D, { variant: "Semibold", type: "Text md", className: "hfl-text-Gray-600", children: w === ar.lis_report ? "Lab reports of LIS" : w === ar.healthplix_report ? "Lab reports of Healthplix" : "" }) }),
14230
+ /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center hfl-justify-between hfl-pb-2", children: /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text md", className: "hfl-text-Gray-600", children: w === ar.lis_report ? "Lab reports of LIS" : w === ar.healthplix_report ? "Lab reports of Healthplix" : "" }) }),
14234
14231
  w === ar.lis_report && /* @__PURE__ */ e.jsx(fo, { patientDetails: d, showToast: u, variable: v }),
14235
14232
  w === ar.healthplix_report && /* @__PURE__ */ e.jsx(mo, { patientDetails: d, showToast: u, variable: v })
14236
14233
  ] })
14237
- ] }) : /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-h-full hfl-items-center hfl-justify-center", children: /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text lg", className: "hfl-text-Gray-500", children: "Lab is not active." }) }) }) }) });
14234
+ ] }) : /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-h-full hfl-items-center hfl-justify-center", children: /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text lg", className: "hfl-text-Gray-500", children: "Lab is not active." }) }) }) }) });
14238
14235
  };
14239
14236
  function No({ variable: s }) {
14240
- const { window_var: u, token: d, envName: i, IMGREP_DIRECTORY: v } = s, w = qa("(max-width: 1080px)"), a = Mr(null), [A, S] = z(!1), [h, Y] = z(!1), [x, k] = z([]), [L, V] = z(Rt[2]), [I, N] = z(), [P, B] = z(), [b, te] = z(), [H, E] = z(), [W, Q] = z(), [ce, $] = z(), [O, ue] = z({
14237
+ const { window_var: u, token: d, envName: i, IMGREP_DIRECTORY: v } = s, w = qa("(max-width: 1080px)"), a = Mr(null), [A, S] = z(!1), [h, Y] = z(!1), [x, k] = z([]), [L, V] = z(Rt[2]), [I, D] = z(), [P, B] = z(), [b, te] = z(), [H, E] = z(), [W, Q] = z(), [ce, $] = z(), [O, ue] = z({
14241
14238
  printDataFrom: "",
14242
14239
  visible: !1,
14243
14240
  whichPreview: "offlinePrint",
@@ -14255,12 +14252,12 @@ function No({ variable: s }) {
14255
14252
  patient_registered_date: "",
14256
14253
  patient_age: "",
14257
14254
  patient_gender: ""
14258
- }), it = window?.partner_config ? JSON.parse(window?.partner_config) : {}, [Ve, mt] = z([]), { patient_preferred_language: St } = W || {}, {
14255
+ }), it = window?.partner_config ? JSON.parse(window?.partner_config) : {}, [Ve, mt] = z([]), { patient_preferred_language: Nt } = W || {}, {
14259
14256
  visit_pad_json: xt,
14260
14257
  visitpad_order: Gt,
14261
14258
  org_person_sign_text: kt,
14262
14259
  org_person_signature_url: T
14263
- } = b || {}, { add_lang_change: Ie, defaultLanguage: Ue } = typeof xt == "string" && xt && JSON.parse(xt) || {}, { rows: le } = Ue || {}, [J, K] = z(!1), [se, Te] = z({}), [Se, gt] = z([]), [nr, _t] = z({}), [Kt, Vt] = z({
14260
+ } = b || {}, { add_lang_change: Ie, defaultLanguage: Ue } = typeof xt == "string" && xt && JSON.parse(xt) || {}, { rows: le } = Ue || {}, [J, K] = z(!1), [se, Te] = z({}), [Se, gt] = z([]), [nr, _t] = z({}), [Zt, Vt] = z({
14264
14261
  created_on: "",
14265
14262
  category_name: ""
14266
14263
  });
@@ -14269,12 +14266,12 @@ function No({ variable: s }) {
14269
14266
  if (!ct)
14270
14267
  return;
14271
14268
  const bt = +ct;
14272
- bt && (Wr.find((Nt) => Nt.value == bt) || Wr.unshift({
14269
+ bt && (Wr.find((St) => St.value == bt) || Wr.unshift({
14273
14270
  label: `${bt} min`,
14274
14271
  value: bt
14275
14272
  }));
14276
14273
  }, [ce]);
14277
- const sr = Zt(
14274
+ const sr = er(
14278
14275
  (ct) => {
14279
14276
  Mi({ callback: (dt) => {
14280
14277
  Q(dt), ft({
@@ -14285,10 +14282,10 @@ function No({ variable: s }) {
14285
14282
  });
14286
14283
  } }, ct, s);
14287
14284
  },
14288
- [Q]
14285
+ []
14289
14286
  ), or = (ct) => {
14290
14287
  cr(), V(ct);
14291
- }, fr = (ct, bt, dt, Nt) => {
14288
+ }, fr = (ct, bt, dt, St) => {
14292
14289
  const zt = Date.now();
14293
14290
  k((Ot) => [
14294
14291
  ...Ot,
@@ -14297,24 +14294,24 @@ function No({ variable: s }) {
14297
14294
  title: ct,
14298
14295
  description: bt,
14299
14296
  type: dt,
14300
- duration: Nt
14297
+ duration: St
14301
14298
  }
14302
14299
  ]), setTimeout(() => {
14303
14300
  k((Ot) => [...Ot].filter(({ id: Yt }) => Yt !== zt));
14304
- }, Nt);
14301
+ }, St);
14305
14302
  };
14306
14303
  Ke(() => {
14307
14304
  Gt && xt && mt(un(Gt, xt));
14308
14305
  }, [b, xt, Gt]);
14309
- const Cr = Zt(() => {
14306
+ const Cr = () => {
14310
14307
  ie(
14311
- typeof St == "string" && St.length >= 2 ? St : typeof le == "string" && le.length >= 2 ? le : "en"
14308
+ typeof Nt == "string" && Nt.length >= 2 ? Nt : typeof le == "string" && le.length >= 2 ? le : "en"
14312
14309
  );
14313
- }, [le, St]);
14310
+ };
14314
14311
  Ke(() => {
14315
14312
  Cr();
14316
- }, [St, le, Cr]);
14317
- const mr = async (ct, bt, dt, Nt = !0) => {
14313
+ }, [Nt, le, Cr]);
14314
+ const mr = async (ct, bt, dt, St = !0) => {
14318
14315
  const { unmodifiedVisitPadJson: zt, printPrefMasterArr: Ot } = ct, Yt = zt && Yn(zt) ? JSON.parse(zt) : {}, $t = Ot?.[bt] || {
14319
14316
  config: {}
14320
14317
  }, Ht = $t?.config || {}, _e = {
@@ -14335,7 +14332,7 @@ function No({ variable: s }) {
14335
14332
  };
14336
14333
  if (dt === "" || window.doctor_role_id_for_seg == dt)
14337
14334
  te(qt);
14338
- else if (Nt)
14335
+ else if (St)
14339
14336
  ue((tr) => ({
14340
14337
  ...tr,
14341
14338
  visible: !0,
@@ -14356,16 +14353,16 @@ function No({ variable: s }) {
14356
14353
  u.doctor_role_id_for_seg || "",
14357
14354
  u.org_branch_id_for_seg || "",
14358
14355
  { token: d, envName: i || Ga.STAGING }
14359
- ), Nt = bt?.visit_pad_json, zt = {};
14356
+ ), St = bt?.visit_pad_json, zt = {};
14360
14357
  let Ot = 0;
14361
14358
  dt?.print_templates?.forEach(($t, Ht) => {
14362
14359
  $t?.name && (zt[Ht] = $t.name, Ot = $t.is_default ? Ht : Ot);
14363
- }), bt.printPreferenceList = zt, bt.printPrefMasterArr = dt?.print_templates || [], bt.unmodifiedVisitPadJson = Nt, bt.printDefaultPrefIndex = Ot;
14360
+ }), bt.printPreferenceList = zt, bt.printPrefMasterArr = dt?.print_templates || [], bt.unmodifiedVisitPadJson = St, bt.printDefaultPrefIndex = Ot;
14364
14361
  const Yt = await mr(bt, Ot, ct.doc_rid, !1);
14365
14362
  if (!(ct.doc_rid === "" || window.doctor_role_id_for_seg == ct.doc_rid)) return Yt;
14366
14363
  }, yt = async () => {
14367
14364
  const ct = await Hi(s);
14368
- N(ct);
14365
+ D(ct);
14369
14366
  const bt = {};
14370
14367
  if (ct?.service_list) {
14371
14368
  for (const dt of ct.service_list)
@@ -14373,8 +14370,8 @@ function No({ variable: s }) {
14373
14370
  Re(bt);
14374
14371
  }
14375
14372
  };
14376
- window.patientPopupHandler = async (ct, bt, dt, Nt, zt, Ot, Yt) => {
14377
- S(!0), de(ct), E({ patientRoleID: bt, patientID: dt }), a.current = Yt ?? null, await mr(Nt, Nt.printDefaultPrefIndex, "", !1);
14373
+ window.patientPopupHandler = async (ct, bt, dt, St, zt, Ot, Yt) => {
14374
+ S(!0), de(ct), E({ patientRoleID: bt, patientID: dt }), a.current = Yt ?? null, await mr(St, St.printDefaultPrefIndex, "", !1);
14378
14375
  try {
14379
14376
  V(
14380
14377
  Rt.includes(Ot?.toLowerCase() ?? "") ? Ot.toLowerCase() : Rt[2]
@@ -14408,12 +14405,12 @@ function No({ variable: s }) {
14408
14405
  Ke(() => {
14409
14406
  document.body.style.overflow = A ? "hidden" : "auto";
14410
14407
  }, [A]);
14411
- const yr = Qt(() => [...ce?.patient_config?.custom_fields || []].sort((dt, Nt) => dt.sort - Nt.sort).map((dt) => {
14412
- const Nt = W?.custom_fields?.find((zt) => zt.id === dt.id);
14408
+ const yr = Jt(() => [...ce?.patient_config?.custom_fields || []].sort((dt, St) => dt.sort - St.sort).map((dt) => {
14409
+ const St = W?.custom_fields?.find((zt) => zt.id === dt.id);
14413
14410
  return {
14414
14411
  ...dt,
14415
- value: Nt?.value || "",
14416
- title: Nt?.value ? Nt?.title : dt.title
14412
+ value: St?.value || "",
14413
+ title: St?.value ? St?.title : dt.title
14417
14414
  };
14418
14415
  }), [ce?.patient_config?.custom_fields, W?.custom_fields]), jr = (ct) => {
14419
14416
  switch (ct) {
@@ -14431,10 +14428,10 @@ function No({ variable: s }) {
14431
14428
  return dt ? dt.replace("Z", "").replace(" +0000 UTC", "").trim() : null;
14432
14429
  }
14433
14430
  try {
14434
- const [dt, Nt] = await Promise.all([
14431
+ const [dt, St] = await Promise.all([
14435
14432
  Ha(ct, 1, 1, s),
14436
14433
  ka(ct, 1, 10, s)
14437
- ]), zt = Nt?.wallet_transactions?.filter((Ht) => Ht.type?.toUpperCase() === "DEPOSIT").map((Ht) => ({
14434
+ ]), zt = St?.wallet_transactions?.filter((Ht) => Ht.type?.toUpperCase() === "DEPOSIT").map((Ht) => ({
14438
14435
  ...Ht,
14439
14436
  created_on: Ht.transaction_time
14440
14437
  })) ?? [], Ot = dt?.data?.filter((Ht) => Ht.payment_refund?.toUpperCase() === "P") ?? [], Yt = [...zt, ...Ot].sort((Ht, G) => {
@@ -14455,8 +14452,8 @@ function No({ variable: s }) {
14455
14452
  }
14456
14453
  };
14457
14454
  function Rr(ct) {
14458
- const bt = Be(ct).startOf("day"), Nt = Be().startOf("day").diff(bt, "day");
14459
- return Nt === 0 ? "Today" : Nt === 1 ? "Yesterday" : Nt >= 2 ? `${Nt} days ago` : bt.format("DD MMM YYYY");
14455
+ const bt = Be(ct).startOf("day"), St = Be().startOf("day").diff(bt, "day");
14456
+ return St === 0 ? "Today" : St === 1 ? "Yesterday" : St >= 2 ? `${St} days ago` : bt.format("DD MMM YYYY");
14460
14457
  }
14461
14458
  return /* @__PURE__ */ e.jsx("div", { id: "react_patientpopup_mfe", children: /* @__PURE__ */ e.jsxs(
14462
14459
  Mt.Provider,
@@ -14572,10 +14569,10 @@ function No({ variable: s }) {
14572
14569
  partnerConfig: it
14573
14570
  }
14574
14571
  ),
14575
- /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-h-[40px] hfl-items-center hfl-rounded-b-md hfl-border-t-1 hfl-border-Gray-200 hfl-bg-White hfl-p-4 ", children: Kt.created_on && /* @__PURE__ */ e.jsxs(D, { variant: "Medium", type: "Text sm", children: [
14572
+ /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-h-[40px] hfl-items-center hfl-rounded-b-md hfl-border-t-1 hfl-border-Gray-200 hfl-bg-White hfl-p-4 ", children: Zt.created_on && /* @__PURE__ */ e.jsxs(N, { variant: "Medium", type: "Text sm", children: [
14576
14573
  "Last Payment: ",
14577
- Rr(Kt.created_on),
14578
- Kt.category_name && ` (${Kt.category_name})`
14574
+ Rr(Zt.created_on),
14575
+ Zt.category_name && ` (${Zt.category_name})`
14579
14576
  ] }) }),
14580
14577
  /* @__PURE__ */ e.jsx("div", { className: "hfl-absolute hfl-z-[100]", children: /* @__PURE__ */ e.jsx(Vn, { toastList: x }) })
14581
14578
  ]