hplx-feature-library 1.0.307 → 1.0.308

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.
Files changed (49) hide show
  1. package/dist/{APIAction-CsHSrMGS.cjs → APIAction-BPjQvoDr.cjs} +1 -1
  2. package/dist/{APIAction-DzFdW8eA.js → APIAction-Cn6CnUPj.js} +2 -2
  3. package/dist/AllInvestigations/index.js +1 -1
  4. package/dist/AllInvestigationsTable-DKMxC37E.cjs +80 -0
  5. package/dist/{AllInvestigationsTable-B8MboSJv.js → AllInvestigationsTable-o7sUrypz.js} +5718 -5188
  6. package/dist/Attachments/index.js +1 -1
  7. package/dist/{Attachments-CIYueFJF.js → Attachments-Bl0Bb93j.js} +36 -36
  8. package/dist/Attachments-DP1L4bRq.cjs +186 -0
  9. package/dist/NineDots/index.js +1 -1
  10. package/dist/{NineDots-Da4lmzBx.cjs → NineDots-BenIdNn6.cjs} +2 -2
  11. package/dist/{NineDots-BbUchUBX.js → NineDots-BovmR9lR.js} +1 -1
  12. package/dist/PatientAddEdit/index.js +1 -1
  13. package/dist/{PatientAddEdit-CqX2zr_o.js → PatientAddEdit-BsvMkDPi.js} +5 -5
  14. package/dist/{PatientAddEdit-HpPMq8Wc.cjs → PatientAddEdit-CiUyGlRS.cjs} +2 -2
  15. package/dist/PatientPopup/index.js +1 -1
  16. package/dist/{PatientPopupContainer-BwsiKzrc.js → PatientPopupContainer-BjejzoZp.js} +749 -749
  17. package/dist/PatientPopupContainer-CNb0MKZc.cjs +36 -0
  18. package/dist/PediatricsCalculator/index.js +1 -1
  19. package/dist/{PediatricsCalculatorTable-jrIsxnuu.cjs → PediatricsCalculatorTable-Bfnfpscv.cjs} +2 -2
  20. package/dist/{PediatricsCalculatorTable-D3nV9nYm.js → PediatricsCalculatorTable-CoHNZcKB.js} +2 -2
  21. package/dist/{PrintModal-CMsgj0Fx.cjs → PrintModal-BYaI_gvN.cjs} +52 -52
  22. package/dist/{PrintModal-BtXnauIC.js → PrintModal-Dnu4I6Bq.js} +3595 -3619
  23. package/dist/SearchPatients/index.js +1 -1
  24. package/dist/{SearchPatients-U7jvz_P2.js → SearchPatients-BTmBvIpk.js} +3 -3
  25. package/dist/{SearchPatients-CY8PAq3U.cjs → SearchPatients-BURn-eU9.cjs} +1 -1
  26. package/dist/UserProfile/index.js +1 -1
  27. package/dist/{UserProfile-B-Yidset.cjs → UserProfile-BcdsuEnn.cjs} +4 -4
  28. package/dist/{UserProfile-Dvxxt4ck.js → UserProfile-D9u7TGPM.js} +6 -6
  29. package/dist/{common-utils-DDQoB8lH.cjs → common-utils-BmJs-CNu.cjs} +1 -1
  30. package/dist/{common-utils-n9EfxOQR.js → common-utils-fQX0KRKT.js} +1 -1
  31. package/dist/{dayjs.min-CIprbO7P.js → dayjs.min-Dx50Uhvr.js} +15 -15
  32. package/dist/dayjs.min-QUFnA3Sz.cjs +1 -0
  33. package/dist/hplx-feature-library.css +1 -1
  34. package/dist/index-83gl7aAu.cjs +32 -0
  35. package/dist/{index-D_V85bv1.js → index-Cuk4eOa2.js} +19 -19
  36. package/dist/{index-CaEr5pIL.js → index-D-5bovl6.js} +840 -840
  37. package/dist/index-D-bucTJp.cjs +102 -0
  38. package/dist/{index-CJFGOBPb.js → index-DPIXOYYJ.js} +2 -2
  39. package/dist/index-Dsi-BJd2.cjs +17 -0
  40. package/dist/index.js +9 -9
  41. package/dist/print-pdf/index.js +1 -1
  42. package/package.json +2 -2
  43. package/dist/AllInvestigationsTable-smpg1QDK.cjs +0 -80
  44. package/dist/Attachments-CqPAQ0or.cjs +0 -186
  45. package/dist/PatientPopupContainer-Buf3U_bk.cjs +0 -36
  46. package/dist/dayjs.min-B8vCPONb.cjs +0 -1
  47. package/dist/index-B3-chQbw.cjs +0 -102
  48. package/dist/index-CahiknFx.cjs +0 -32
  49. package/dist/index-DfcUmlge.cjs +0 -17
@@ -1,10 +1,10 @@
1
- import { j as e, b as N, g as vn, t as kn, K as Le, h as Vn, P as Et, Z as Or, k as ll, a as Va, e as hr, A as ur, c as _n, N as yn, O as $l, E as bn, q as On } from "./index-CaEr5pIL.js";
1
+ import { j as e, b as N, g as vn, e as kn, K as Le, h as Vn, P as Et, Z as Or, k as ll, a as Va, t as hr, A as ur, c as _n, N as yn, O as $l, E as bn, q as On } from "./index-D-5bovl6.js";
2
2
  import ol, { createContext as Wn, useContext as Lt, useState as U, forwardRef as zn, useRef as Mr, useEffect as Ye, useCallback as $t, useMemo as Kt, useReducer as Oa } from "react";
3
3
  import { a as Ta } from "./CommonTypes-BzMrYraH.js";
4
- import { G as Yn, a as qn, b as $n, c as wn, U as Wa, d as Un, e as Cn, f as Zn, g as Kn, h as Xn, i as Jn, j as Qn, k as ei, l as ti, m as Rn, n as ri, o as jn, D as li, p as ai, q as ni, V as ii, r as Pn, s as si, t as oi, u as ci, v as di, w as ui, L as fi, x as hi, y as pi, z as mi, A as gi, F as At, B as xi, C as vi, E as _i, T as It, W as yi, H as Sn, I as bi, P as Nn } from "./PrintModal-BtXnauIC.js";
5
- import { R as bt, h as za, f as wi, v as an, n as nn, q as Ci, i as Ri } from "./common-utils-n9EfxOQR.js";
6
- import { d as Te } from "./dayjs.min-CIprbO7P.js";
7
- import { G as ji, U as Pi, A as Si, f as Ni, i as Di, j as sn, k as Ai } from "./APIAction-DzFdW8eA.js";
4
+ import { G as Yn, a as qn, b as $n, c as wn, U as Wa, d as Un, e as Cn, f as Zn, g as Kn, h as Xn, i as Jn, j as Qn, k as ei, l as ti, m as Rn, n as ri, o as jn, D as li, p as ai, q as ni, V as ii, r as Pn, s as si, t as oi, u as ci, v as di, w as ui, L as fi, x as hi, y as pi, z as mi, A as gi, F as At, B as xi, C as vi, E as _i, T as It, W as yi, H as Sn, I as bi, P as Nn } from "./PrintModal-Dnu4I6Bq.js";
5
+ import { R as bt, h as za, f as wi, v as an, n as nn, q as Ci, i as Ri } from "./common-utils-fQX0KRKT.js";
6
+ import { d as Te } from "./dayjs.min-Dx50Uhvr.js";
7
+ import { G as ji, U as Pi, A as Si, f as Ni, i as Di, j as sn, k as Ai } from "./APIAction-Cn6CnUPj.js";
8
8
  import { a as on, H as Ii, D as Pa, M as Sa, b as Ol, S as Ti, C as Na, O as Da } from "./CommonConstant-BMwbE0IZ.js";
9
9
  import { c as Ba } from "./index.esm-Bn1Rklqj.js";
10
10
  /* empty css */
@@ -909,10 +909,10 @@ const rl = {
909
909
  };
910
910
  var Yl = { exports: {} }, ms = Yl.exports, un;
911
911
  function gs() {
912
- return un || (un = 1, function(n, u) {
912
+ return un || (un = 1, (function(n, u) {
913
913
  (function(d, i) {
914
914
  n.exports = i();
915
- })(ms, function() {
915
+ })(ms, (function() {
916
916
  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/, C = /\d\d/, a = /\d\d?/, A = /\d*[^-_:/,()\s\d]+/, S = {}, h = function(D) {
917
917
  return (D = +D) + (D > 68 ? 1900 : 2e3);
918
918
  }, k = function(D) {
@@ -920,11 +920,11 @@ function gs() {
920
920
  this[D] = +P;
921
921
  };
922
922
  }, g = [/[+-]\d\d:?(\d\d)?|Z/, function(D) {
923
- (this.zone || (this.zone = {})).offset = function(P) {
923
+ (this.zone || (this.zone = {})).offset = (function(P) {
924
924
  if (!P || P === "Z") return 0;
925
925
  var T = P.match(/([+-]|\d\d)/g), b = 60 * T[1] + (+T[2] || 0);
926
926
  return b === 0 ? 0 : T[0] === "+" ? -b : b;
927
- }(D);
927
+ })(D);
928
928
  }], L = function(D) {
929
929
  var P = S[D];
930
930
  return P && (P.indexOf ? P : P.s.concat(P.f));
@@ -937,7 +937,7 @@ function gs() {
937
937
  }
938
938
  } else T = D === (P ? "pm" : "PM");
939
939
  return T;
940
- }, W = { A: [A, function(D) {
940
+ }, O = { A: [A, function(D) {
941
941
  this.afternoon = V(D, !1);
942
942
  }], a: [A, function(D) {
943
943
  this.afternoon = V(D, !0);
@@ -953,9 +953,9 @@ function gs() {
953
953
  var P = S.ordinal, T = D.match(/\d+/);
954
954
  if (this.day = T[0], P) for (var b = 1; b <= 31; b += 1) P(b).replace(/\[|\]/g, "") === D && (this.day = b);
955
955
  }], w: [a, k("week")], ww: [C, k("week")], M: [a, k("month")], MM: [C, k("month")], MMM: [A, function(D) {
956
- var P = L("months"), T = (L("monthsShort") || P.map(function(b) {
956
+ var P = L("months"), T = (L("monthsShort") || P.map((function(b) {
957
957
  return b.slice(0, 3);
958
- })).indexOf(D) + 1;
958
+ }))).indexOf(D) + 1;
959
959
  if (T < 1) throw new Error();
960
960
  this.month = T % 12 || T;
961
961
  }], MMMM: [A, function(D) {
@@ -968,31 +968,31 @@ function gs() {
968
968
  function I(D) {
969
969
  var P, T;
970
970
  P = D, T = S && S.formats;
971
- for (var b = (D = P.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(ne, O, me) {
971
+ for (var b = (D = P.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(ne, W, me) {
972
972
  var we = me && me.toUpperCase();
973
- return O || T[me] || d[me] || T[we].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(_e, tt, he) {
973
+ return W || T[me] || d[me] || T[we].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(_e, tt, he) {
974
974
  return tt || he.slice(1);
975
- });
976
- })).match(i), ee = b.length, B = 0; B < ee; B += 1) {
977
- var H = b[B], z = W[H], Q = z && z[0], Y = z && z[1];
975
+ }));
976
+ }))).match(i), ee = b.length, B = 0; B < ee; B += 1) {
977
+ var H = b[B], z = O[H], Q = z && z[0], Y = z && z[1];
978
978
  b[B] = Y ? { regex: Q, parser: Y } : H.replace(/^\[|\]$/g, "");
979
979
  }
980
980
  return function(ne) {
981
- for (var O = {}, me = 0, we = 0; me < ee; me += 1) {
981
+ for (var W = {}, me = 0, we = 0; me < ee; me += 1) {
982
982
  var _e = b[me];
983
983
  if (typeof _e == "string") we += _e.length;
984
984
  else {
985
985
  var tt = _e.regex, he = _e.parser, X = ne.slice(we), ce = tt.exec(X)[0];
986
- he.call(O, ce), ne = ne.replace(ce, "");
986
+ he.call(W, ce), ne = ne.replace(ce, "");
987
987
  }
988
988
  }
989
- return function(M) {
989
+ return (function(M) {
990
990
  var Ae = M.afternoon;
991
991
  if (Ae !== void 0) {
992
992
  var Fe = M.hours;
993
993
  Ae ? Fe < 12 && (M.hours += 12) : Fe === 12 && (M.hours = 0), delete M.afternoon;
994
994
  }
995
- }(O), O;
995
+ })(W), W;
996
996
  };
997
997
  }
998
998
  return function(D, P, T) {
@@ -1003,8 +1003,8 @@ function gs() {
1003
1003
  this.$u = z;
1004
1004
  var Y = Q[1];
1005
1005
  if (typeof Y == "string") {
1006
- var ne = Q[2] === !0, O = Q[3] === !0, me = ne || O, we = Q[2];
1007
- O && (we = Q[2]), S = this.$locale(), !ne && we && (S = T.Ls[we]), this.$d = function(X, ce, M, Ae) {
1006
+ var ne = Q[2] === !0, W = Q[3] === !0, me = ne || W, we = Q[2];
1007
+ W && (we = Q[2]), S = this.$locale(), !ne && we && (S = T.Ls[we]), this.$d = (function(X, ce, M, Ae) {
1008
1008
  try {
1009
1009
  if (["x", "X"].indexOf(ce) > -1) return new Date((ce === "X" ? 1e3 : 1) * X);
1010
1010
  var Fe = I(ce)(X), He = Fe.year, gt = Fe.month, pt = Fe.day, it = Fe.hours, We = Fe.minutes, st = Fe.seconds, Dt = Fe.milliseconds, xt = Fe.zone, Bt = Fe.week, kt = /* @__PURE__ */ new Date(), G = pt || (He || gt ? 1 : kt.getDate()), Ie = He || kt.getFullYear(), Ue = 0;
@@ -1014,7 +1014,7 @@ function gs() {
1014
1014
  } catch {
1015
1015
  return /* @__PURE__ */ new Date("");
1016
1016
  }
1017
- }(H, Y, z, T), this.init(), we && we !== !0 && (this.$L = this.locale(we).$L), me && H != this.format(Y) && (this.$d = /* @__PURE__ */ new Date("")), S = {};
1017
+ })(H, Y, z, T), this.init(), we && we !== !0 && (this.$L = this.locale(we).$L), me && H != this.format(Y) && (this.$d = /* @__PURE__ */ new Date("")), S = {};
1018
1018
  } else if (Y instanceof Array) for (var _e = Y.length, tt = 1; tt <= _e; tt += 1) {
1019
1019
  Q[1] = Y[tt - 1];
1020
1020
  var he = T.apply(this, Q);
@@ -1027,8 +1027,8 @@ function gs() {
1027
1027
  else ee.call(this, B);
1028
1028
  };
1029
1029
  };
1030
- });
1031
- }(Yl)), Yl.exports;
1030
+ }));
1031
+ })(Yl)), Yl.exports;
1032
1032
  }
1033
1033
  var xs = gs();
1034
1034
  const vs = /* @__PURE__ */ vn(xs);
@@ -1076,7 +1076,7 @@ const Tn = (...n) => {
1076
1076
  const {
1077
1077
  item_quantity: L,
1078
1078
  order_unit_item_price: V,
1079
- order_item_discount: W,
1079
+ order_item_discount: O,
1080
1080
  order_item_service_tax: I,
1081
1081
  order_item_service_tax_percentage: D = 0,
1082
1082
  order_item_price: P
@@ -1084,7 +1084,7 @@ const Tn = (...n) => {
1084
1084
  if (!u && Tn(
1085
1085
  L,
1086
1086
  V,
1087
- W,
1087
+ O,
1088
1088
  I,
1089
1089
  P
1090
1090
  )) {
@@ -1356,7 +1356,7 @@ const Tn = (...n) => {
1356
1356
  const { handleCurrentWindow: u, setShowPatientPopModal: d, patientIDs: i, redirectionPage: v, closePrintModal: C } = n, a = Lt(Mt);
1357
1357
  if (!a)
1358
1358
  throw new Error("PatientPopupHeader must be used within an AppContext.Provider");
1359
- const { currentWindow: A, patientDetails: S, docPreference: h, billPreferences: k, setLastBillPaymentData: g, variable: L } = a, { name: V, age: W, gender: I, image_link: D, org_person_bid_str: P, org_person_dob: T, honorific: b } = S || {};
1359
+ const { currentWindow: A, patientDetails: S, docPreference: h, billPreferences: k, setLastBillPaymentData: g, variable: L } = a, { name: V, age: O, gender: I, image_link: D, org_person_bid_str: P, org_person_dob: T, honorific: b } = S || {};
1360
1360
  window.patientPopupClosehandler = () => {
1361
1361
  if (d(!1), C(), g({
1362
1362
  created_on: "",
@@ -1406,7 +1406,7 @@ const Tn = (...n) => {
1406
1406
  children: [
1407
1407
  En(I) || /* @__PURE__ */ e.jsx("div", { className: "hfl-top-1 hfl-h-3 hfl-w-10 hfl-rounded-3xl hfl-bg-Gray-100" }),
1408
1408
  /* @__PURE__ */ e.jsx("div", { className: "hfl-h-[18px] hfl-w-[1px] hfl-bg-Gray-200" }),
1409
- W ? typeof W == "number" ? `${W} Years` : wr(`${W}`) : T && wr(T) || /* @__PURE__ */ e.jsx("div", { className: "hfl-h-3 hfl-w-12 hfl-rounded-3xl hfl-bg-Gray-100" }),
1409
+ O ? typeof O == "number" ? `${O} Years` : wr(`${O}`) : T && wr(T) || /* @__PURE__ */ e.jsx("div", { className: "hfl-h-3 hfl-w-12 hfl-rounded-3xl hfl-bg-Gray-100" }),
1410
1410
  /* @__PURE__ */ e.jsx("div", { className: "hfl-h-[18px] hfl-w-[1px] hfl-bg-Gray-200" }),
1411
1411
  P || /* @__PURE__ */ e.jsx("div", { className: "hfl-top-1 hfl-h-3 hfl-w-10 hfl-rounded-3xl hfl-bg-Gray-100" })
1412
1412
  ]
@@ -1572,7 +1572,7 @@ const Tn = (...n) => {
1572
1572
  /* @__PURE__ */ e.jsx("div", { className: "flex hfl-top-0 hfl-pt-3 ", children: /* @__PURE__ */ e.jsx(Vn, { className: "hfl-bg-Gray-200", rows: 10, suffixPlaceholder: "Load Message Template from right" }) }),
1573
1573
  /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-justify-end hfl-pt-[160px] ", children: /* @__PURE__ */ e.jsx(Le, { hierarchy: "Primary", size: "lg", textField: "Send Message" }) })
1574
1574
  ] }), js = (n) => {
1575
- const { patientAbhaDetails: u, savePatientDetailsHandler: d, setPatientAbhaDetails: i, patientData: v } = n, { showToast: C, patientIDs: a, variable: A } = Lt(Mt) || {}, [S, h] = U(""), [k, g] = U(""), [L, V] = U(), W = async (I = !1) => {
1575
+ const { patientAbhaDetails: u, savePatientDetailsHandler: d, setPatientAbhaDetails: i, patientData: v } = n, { showToast: C, patientIDs: a, variable: A } = Lt(Mt) || {}, [S, h] = U(""), [k, g] = U(""), [L, V] = U(), O = async (I = !1) => {
1576
1576
  try {
1577
1577
  if (L?.status && !I) {
1578
1578
  const D = await os(
@@ -1670,7 +1670,7 @@ const Tn = (...n) => {
1670
1670
  type: "Text sm",
1671
1671
  className: "hfl-flex hfl-cursor-pointer hfl-items-center hfl-gap-1 hfl-text-1 hfl-text-Primary-600",
1672
1672
  onClick: async () => {
1673
- await W(!0);
1673
+ await O(!0);
1674
1674
  },
1675
1675
  children: [
1676
1676
  /* @__PURE__ */ e.jsx("div", { className: "hx_rewind hfl-font-bold hfl-text-3" }),
@@ -1705,7 +1705,7 @@ const Tn = (...n) => {
1705
1705
  size: "sm",
1706
1706
  textField: L?.status ? "Submit OTP" : "Verify ABHA",
1707
1707
  onClick: async () => {
1708
- await W();
1708
+ await O();
1709
1709
  }
1710
1710
  }
1711
1711
  )
@@ -1725,13 +1725,13 @@ const Tn = (...n) => {
1725
1725
  isPartnerServiceEnabled: g,
1726
1726
  insuranceData: L,
1727
1727
  partnerConfig: V,
1728
- verifyInsuranceHandler: W,
1728
+ verifyInsuranceHandler: O,
1729
1729
  policyNumberErrorMessage: I,
1730
1730
  selectedInsuranceDetails: D,
1731
1731
  setSelectedInsuranceDetails: P,
1732
1732
  insuranceDivRef: T,
1733
1733
  patientCustomFieldData: b
1734
- } = n, [ee, B] = U(!1), [H, z] = U([]), [Q, Y] = U([]), [ne, O] = U(!1), [me, we] = U(!1), [_e, tt] = U([]), he = h?.permissions?.edit_patient_name, {
1734
+ } = n, [ee, B] = U(!1), [H, z] = U([]), [Q, Y] = U([]), [ne, W] = U(!1), [me, we] = U(!1), [_e, tt] = U([]), he = h?.permissions?.edit_patient_name, {
1735
1735
  phone_number: X,
1736
1736
  age: ce,
1737
1737
  org_person_dob: M,
@@ -1774,7 +1774,7 @@ const Tn = (...n) => {
1774
1774
  const { value: ve } = E.target, Rt = wt(ve);
1775
1775
  z(Rt);
1776
1776
  }, yr = (E) => {
1777
- yt("occupation", E.trim()), O(!1);
1777
+ yt("occupation", E.trim()), W(!1);
1778
1778
  }, Rr = (E) => {
1779
1779
  yt("city", E.trim()), we(!1);
1780
1780
  }, gr = (E) => {
@@ -2483,10 +2483,10 @@ const Tn = (...n) => {
2483
2483
  value: u?.occupation,
2484
2484
  placeholder: "Enter Occupation",
2485
2485
  onChange: (E) => {
2486
- yt("occupation", E.target.value), O(!0), gr(E);
2486
+ yt("occupation", E.target.value), W(!0), gr(E);
2487
2487
  },
2488
2488
  onBlur: (E) => {
2489
- E.stopPropagation(), O(!1);
2489
+ E.stopPropagation(), W(!1);
2490
2490
  }
2491
2491
  },
2492
2492
  width: 23.5 + "em"
@@ -2645,7 +2645,7 @@ const Tn = (...n) => {
2645
2645
  className: "hfl-ml-4 hfl-px-4 hfl-py-[1.2rem]",
2646
2646
  hierarchy: "Primary",
2647
2647
  size: "md",
2648
- onClick: () => W(D),
2648
+ onClick: () => O(D),
2649
2649
  textField: u?.insurance_details?.policy_id ? "Verified" : "Verify",
2650
2650
  style: {
2651
2651
  pointerEvents: u?.insurance_details?.policy_id ? "none" : "unset"
@@ -2662,14 +2662,14 @@ const Tn = (...n) => {
2662
2662
  ] })
2663
2663
  ] }) });
2664
2664
  }), Ss = (n) => {
2665
- const { getPatientDetails: u, setPatientAbhaDetails: d, patientAbhaDetails: i, isPartnerServiceEnabled: v, partnerConfig: C } = n, [a, A] = U(""), [S, h] = U(!1), [k, g] = U(!1), [L, V] = U(!1), [W, I] = U([]), [D, P] = U([]), T = Mr(null), b = Mr(null), [ee, B] = U("profile"), {
2665
+ const { getPatientDetails: u, setPatientAbhaDetails: d, patientAbhaDetails: i, isPartnerServiceEnabled: v, partnerConfig: C } = n, [a, A] = U(""), [S, h] = U(!1), [k, g] = U(!1), [L, V] = U(!1), [O, I] = U([]), [D, P] = U([]), T = Mr(null), b = Mr(null), [ee, B] = U("profile"), {
2666
2666
  docPreference: H,
2667
2667
  patientDetails: z,
2668
2668
  preferences: Q,
2669
2669
  patientIDs: Y,
2670
2670
  billPreferences: ne,
2671
2671
  // ppEventProps,
2672
- showToast: O,
2672
+ showToast: W,
2673
2673
  patientCustomFieldData: me,
2674
2674
  variable: we
2675
2675
  } = Lt(Mt) || {}, _e = z?.org_person_bid_str || "", [tt, he] = U([]), [X, ce] = U(""), [M, Ae] = U({ partner_name: "", policy_company: "", policy_id: "" }), Fe = Mr(null), [He, gt] = U({
@@ -2712,7 +2712,7 @@ const Tn = (...n) => {
2712
2712
  }, xt = () => {
2713
2713
  document.getElementById("upload-local-file")?.click();
2714
2714
  }, Bt = () => {
2715
- O?.("Success", "Image deleted successfully", "Success", 3e3), h(!0), A(""), V(!1), G();
2715
+ W?.("Success", "Image deleted successfully", "Success", 3e3), h(!0), A(""), V(!1), G();
2716
2716
  }, kt = (se) => {
2717
2717
  A(se), h(!1), V(!1);
2718
2718
  }, G = () => {
@@ -2771,7 +2771,7 @@ const Tn = (...n) => {
2771
2771
  we
2772
2772
  ), { data: Pe } = Be || {};
2773
2773
  if (Pe.status_code === 200)
2774
- ce(""), O?.("Insurance Verified Successfully", "", "Success", 3e3);
2774
+ ce(""), W?.("Insurance Verified Successfully", "", "Success", 3e3);
2775
2775
  else if (Pe?.error || Be?.status === 500)
2776
2776
  throw ce("Policy Number is Incorrect"), console.log(Pe?.error), new Error(Pe?.error);
2777
2777
  }
@@ -2779,15 +2779,15 @@ const Tn = (...n) => {
2779
2779
  const Pe = new FormData();
2780
2780
  Pe.append("pid", se), Pe.append("bidstr", Be), Pe.append("imgData", a);
2781
2781
  const mt = await rs(Pe, we);
2782
- mt.apiError && O?.("Error", mt.apiError, "Error", 3e3);
2782
+ mt.apiError && W?.("Error", mt.apiError, "Error", 3e3);
2783
2783
  }, J = async (se) => {
2784
2784
  const Be = new FormData();
2785
2785
  Be.append("pid", se);
2786
2786
  const Pe = await Ni(Be, we);
2787
- Pe.apiError && O("Error", Pe.apiError, "Error", 3e3);
2787
+ Pe.apiError && W("Error", Pe.apiError, "Error", 3e3);
2788
2788
  }, Z = async (se = it?.name ?? "", Be = it?.org_person_dob ?? "") => {
2789
2789
  if (!it || !Y?.patientRoleID) {
2790
- O?.("Error", "Patient data not available.", "Error", 3e3);
2790
+ W?.("Error", "Patient data not available.", "Error", 3e3);
2791
2791
  return;
2792
2792
  }
2793
2793
  const Pe = {
@@ -2798,7 +2798,7 @@ const Tn = (...n) => {
2798
2798
  try {
2799
2799
  it.image_link && !a ? await J(Y.patientRoleID) : a && k && (await le(Y.patientRoleID, _e), g(!1));
2800
2800
  const mt = await Xi(Pe, we, Y);
2801
- mt.status ? (O?.("Success", mt.message, "Success", 3e3), u(Y.patientRoleID)) : O?.("Error", mt.message, "Error", 3e3);
2801
+ mt.status ? (W?.("Success", mt.message, "Success", 3e3), u(Y.patientRoleID)) : W?.("Error", mt.message, "Error", 3e3);
2802
2802
  } catch (mt) {
2803
2803
  console.error("Error updating patient details:", mt);
2804
2804
  }
@@ -2822,7 +2822,7 @@ const Tn = (...n) => {
2822
2822
  setPatientData: We,
2823
2823
  patientData: it,
2824
2824
  preferences: Q,
2825
- referredByDocList: W,
2825
+ referredByDocList: O,
2826
2826
  throughChannelList: D,
2827
2827
  showImageFromLink: kt,
2828
2828
  setValidators: gt,
@@ -3018,10 +3018,10 @@ const Tn = (...n) => {
3018
3018
  };
3019
3019
  var zl = { exports: {} }, il = { exports: {} }, Ns = il.exports, hn;
3020
3020
  function Ds() {
3021
- return hn || (hn = 1, function(n, u) {
3021
+ return hn || (hn = 1, (function(n, u) {
3022
3022
  (function(d, i) {
3023
3023
  i(u, ol);
3024
- })(Ns, function(d, i) {
3024
+ })(Ns, (function(d, i) {
3025
3025
  function v(t, o, f, p, w, _, R) {
3026
3026
  try {
3027
3027
  var q = t[_](R), K = q.value;
@@ -3033,7 +3033,7 @@ function Ds() {
3033
3033
  function C(t) {
3034
3034
  return function() {
3035
3035
  var o = this, f = arguments;
3036
- return new Promise(function(p, w) {
3036
+ return new Promise((function(p, w) {
3037
3037
  var _ = t.apply(o, f);
3038
3038
  function R(K) {
3039
3039
  v(_, p, w, R, q, "next", K);
@@ -3042,7 +3042,7 @@ function Ds() {
3042
3042
  v(_, p, w, R, q, "throw", K);
3043
3043
  }
3044
3044
  R(void 0);
3045
- });
3045
+ }));
3046
3046
  };
3047
3047
  }
3048
3048
  function a() {
@@ -3061,7 +3061,7 @@ function Ds() {
3061
3061
  return w;
3062
3062
  }
3063
3063
  function S(t) {
3064
- var o = function(f, p) {
3064
+ var o = (function(f, p) {
3065
3065
  if (typeof f != "object" || f === null) return f;
3066
3066
  var w = f[Symbol.toPrimitive];
3067
3067
  if (w !== void 0) {
@@ -3070,7 +3070,7 @@ function Ds() {
3070
3070
  throw new TypeError("@@toPrimitive must return a primitive value.");
3071
3071
  }
3072
3072
  return String(f);
3073
- }(t, "string");
3073
+ })(t, "string");
3074
3074
  return typeof o == "symbol" ? o : String(o);
3075
3075
  }
3076
3076
  i = i && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
@@ -3082,52 +3082,52 @@ function Ds() {
3082
3082
  }, L = { Cell: k, width: 150, minWidth: 0, maxWidth: Number.MAX_SAFE_INTEGER };
3083
3083
  function V() {
3084
3084
  for (var t = arguments.length, o = new Array(t), f = 0; f < t; f++) o[f] = arguments[f];
3085
- return o.reduce(function(p, w) {
3085
+ return o.reduce((function(p, w) {
3086
3086
  var _ = w.style, R = w.className;
3087
3087
  return p = a({}, p, {}, A(w, ["style", "className"])), _ && (p.style = p.style ? a({}, p.style || {}, {}, _ || {}) : _), R && (p.className = p.className ? p.className + " " + R : R), p.className === "" && delete p.className, p;
3088
- }, {});
3088
+ }), {});
3089
3089
  }
3090
- var W = function(t, o) {
3090
+ var O = function(t, o) {
3091
3091
  return o === void 0 && (o = {}), function(f) {
3092
- return f === void 0 && (f = {}), [].concat(t, [f]).reduce(function(p, w) {
3093
- return function _(R, q, K) {
3092
+ return f === void 0 && (f = {}), [].concat(t, [f]).reduce((function(p, w) {
3093
+ return (function _(R, q, K) {
3094
3094
  return typeof q == "function" ? _({}, q(R, K)) : Array.isArray(q) ? V.apply(void 0, [R].concat(q)) : V(R, q);
3095
- }(p, w, a({}, o, { userProps: f }));
3096
- }, {});
3095
+ })(p, w, a({}, o, { userProps: f }));
3096
+ }), {});
3097
3097
  };
3098
3098
  }, I = function(t, o, f, p) {
3099
- return f === void 0 && (f = {}), t.reduce(function(w, _) {
3099
+ return f === void 0 && (f = {}), t.reduce((function(w, _) {
3100
3100
  return _(w, f);
3101
- }, o);
3101
+ }), o);
3102
3102
  }, D = function(t, o, f) {
3103
- return f === void 0 && (f = {}), t.forEach(function(p) {
3103
+ return f === void 0 && (f = {}), t.forEach((function(p) {
3104
3104
  p(o, f);
3105
- });
3105
+ }));
3106
3106
  };
3107
3107
  function P(t, o, f, p) {
3108
- t.findIndex(function(w) {
3108
+ t.findIndex((function(w) {
3109
3109
  return w.pluginName === f;
3110
- }), o.forEach(function(w) {
3111
- t.findIndex(function(_) {
3110
+ })), o.forEach((function(w) {
3111
+ t.findIndex((function(_) {
3112
3112
  return _.pluginName === w;
3113
- });
3114
- });
3113
+ }));
3114
+ }));
3115
3115
  }
3116
3116
  function T(t, o) {
3117
3117
  return typeof t == "function" ? t(o) : t;
3118
3118
  }
3119
3119
  function b(t) {
3120
3120
  var o = i.useRef();
3121
- return o.current = t, i.useCallback(function() {
3121
+ return o.current = t, i.useCallback((function() {
3122
3122
  return o.current;
3123
- }, []);
3123
+ }), []);
3124
3124
  }
3125
3125
  var ee = typeof document < "u" ? i.useLayoutEffect : i.useEffect;
3126
3126
  function B(t, o) {
3127
3127
  var f = i.useRef(!1);
3128
- ee(function() {
3128
+ ee((function() {
3129
3129
  f.current && t(), f.current = !0;
3130
- }, o);
3130
+ }), o);
3131
3131
  }
3132
3132
  function H(t, o, f) {
3133
3133
  return f === void 0 && (f = {}), function(p, w) {
@@ -3138,18 +3138,18 @@ function Ds() {
3138
3138
  };
3139
3139
  }
3140
3140
  function z(t, o) {
3141
- return function(p) {
3141
+ return (function(p) {
3142
3142
  return typeof p == "function" && (w = Object.getPrototypeOf(p)).prototype && w.prototype.isReactComponent;
3143
3143
  var w;
3144
- }(f = t) || typeof f == "function" || function(p) {
3144
+ })(f = t) || typeof f == "function" || (function(p) {
3145
3145
  return typeof p == "object" && typeof p.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(p.$$typeof.description);
3146
- }(f) ? i.createElement(t, o) : t;
3146
+ })(f) ? i.createElement(t, o) : t;
3147
3147
  var f;
3148
3148
  }
3149
3149
  function Q(t, o, f) {
3150
- return f === void 0 && (f = 0), t.map(function(p) {
3150
+ return f === void 0 && (f = 0), t.map((function(p) {
3151
3151
  return ne(p = a({}, p, { parent: o, depth: f })), p.columns && (p.columns = Q(p.columns, p, f + 1)), p;
3152
- });
3152
+ }));
3153
3153
  }
3154
3154
  function Y(t) {
3155
3155
  return he(t, "columns");
@@ -3160,35 +3160,35 @@ function Ds() {
3160
3160
  o = o || f;
3161
3161
  var w = f.split(".");
3162
3162
  f = function(_) {
3163
- return function(R, q, K) {
3163
+ return (function(R, q, K) {
3164
3164
  if (!q) return R;
3165
- var te, ge = typeof q == "function" ? q : JSON.stringify(q), ue = we.get(ge) || function() {
3166
- var fe = function(ae) {
3167
- return function de(Ce, Se) {
3165
+ var te, ge = typeof q == "function" ? q : JSON.stringify(q), ue = we.get(ge) || (function() {
3166
+ var fe = (function(ae) {
3167
+ return (function de(Ce, Se) {
3168
3168
  if (Se === void 0 && (Se = []), Array.isArray(Ce)) for (var ke = 0; ke < Ce.length; ke += 1) de(Ce[ke], Se);
3169
3169
  else Se.push(Ce);
3170
3170
  return Se;
3171
- }(ae).map(function(de) {
3171
+ })(ae).map((function(de) {
3172
3172
  return String(de).replace(".", "_");
3173
- }).join(".").replace(He, ".").replace(gt, "").split(".");
3174
- }(q);
3173
+ })).join(".").replace(He, ".").replace(gt, "").split(".");
3174
+ })(q);
3175
3175
  return we.set(ge, fe), fe;
3176
- }();
3176
+ })();
3177
3177
  try {
3178
- te = ue.reduce(function(fe, ae) {
3178
+ te = ue.reduce((function(fe, ae) {
3179
3179
  return fe[ae];
3180
- }, R);
3180
+ }), R);
3181
3181
  } catch {
3182
3182
  }
3183
3183
  return te !== void 0 ? te : K;
3184
- }(_, w);
3184
+ })(_, w);
3185
3185
  };
3186
3186
  }
3187
3187
  if (!o && typeof p == "string" && p && (o = p), !o && t.columns) throw console.error(t), new Error('A column ID (or unique "Header" value) is required!');
3188
3188
  if (!o) throw console.error(t), new Error("A column ID (or string accessor) is required!");
3189
3189
  return Object.assign(t, { id: o, accessor: f }), t;
3190
3190
  }
3191
- function O(t, o) {
3191
+ function W(t, o) {
3192
3192
  if (!o) throw new Error();
3193
3193
  return Object.assign(t, a({ Header: g, Footer: g }, L, {}, o, {}, t)), Object.assign(t, { originalWidth: t.width }), t;
3194
3194
  }
@@ -3199,13 +3199,13 @@ function Ds() {
3199
3199
  for (var p = [], w = t, _ = 0, R = function() {
3200
3200
  return _++;
3201
3201
  }, q = function() {
3202
- var K = { headers: [] }, te = [], ge = w.some(function(ue) {
3202
+ var K = { headers: [] }, te = [], ge = w.some((function(ue) {
3203
3203
  return ue.parent;
3204
- });
3205
- w.forEach(function(ue) {
3204
+ }));
3205
+ w.forEach((function(ue) {
3206
3206
  var fe, ae = [].concat(te).reverse()[0];
3207
- ge && (ue.parent ? fe = a({}, ue.parent, { originalId: ue.parent.id, id: ue.parent.id + "_" + R(), headers: [ue] }, f(ue)) : fe = O(a({ originalId: ue.id + "_placeholder", id: ue.id + "_placeholder_" + R(), placeholderOf: ue, headers: [ue] }, f(ue)), o), ae && ae.originalId === fe.originalId ? ae.headers.push(ue) : te.push(fe)), K.headers.push(ue);
3208
- }), p.push(K), w = te;
3207
+ ge && (ue.parent ? fe = a({}, ue.parent, { originalId: ue.parent.id, id: ue.parent.id + "_" + R(), headers: [ue] }, f(ue)) : fe = W(a({ originalId: ue.id + "_placeholder", id: ue.id + "_placeholder_" + R(), placeholderOf: ue, headers: [ue] }, f(ue)), o), ae && ae.originalId === fe.originalId ? ae.headers.push(ue) : te.push(fe)), K.headers.push(ue);
3208
+ })), p.push(K), w = te;
3209
3209
  }; w.length; ) q();
3210
3210
  return p.reverse();
3211
3211
  }
@@ -3219,21 +3219,21 @@ function Ds() {
3219
3219
  }
3220
3220
  function he(t, o) {
3221
3221
  var f = [];
3222
- return function p(w) {
3223
- w.forEach(function(_) {
3222
+ return (function p(w) {
3223
+ w.forEach((function(_) {
3224
3224
  _[o] ? p(_[o]) : f.push(_);
3225
- });
3226
- }(t), f;
3225
+ }));
3226
+ })(t), f;
3227
3227
  }
3228
3228
  function X(t, o) {
3229
3229
  var f = o.manualExpandedKey, p = o.expanded, w = o.expandSubRows, _ = w === void 0 || w, R = [];
3230
- return t.forEach(function(q) {
3231
- return function K(te, ge) {
3232
- ge === void 0 && (ge = !0), te.isExpanded = te.original && te.original[f] || p[te.id], te.canExpand = te.subRows && !!te.subRows.length, ge && R.push(te), te.subRows && te.subRows.length && te.isExpanded && te.subRows.forEach(function(ue) {
3230
+ return t.forEach((function(q) {
3231
+ return (function K(te, ge) {
3232
+ ge === void 0 && (ge = !0), te.isExpanded = te.original && te.original[f] || p[te.id], te.canExpand = te.subRows && !!te.subRows.length, ge && R.push(te), te.subRows && te.subRows.length && te.isExpanded && te.subRows.forEach((function(ue) {
3233
3233
  return K(ue, _);
3234
- });
3235
- }(q);
3236
- }), R;
3234
+ }));
3235
+ })(q);
3236
+ })), R;
3237
3237
  }
3238
3238
  function ce(t, o, f) {
3239
3239
  return tt(t) || o[t] || f[t] || f.text;
@@ -3269,10 +3269,10 @@ function Ds() {
3269
3269
  }
3270
3270
  h.resetHiddenColumns = "resetHiddenColumns", h.toggleHideColumn = "toggleHideColumn", h.setHiddenColumns = "setHiddenColumns", h.toggleHideAllColumns = "toggleHideAllColumns";
3271
3271
  var Ie = function(t) {
3272
- t.getToggleHiddenProps = [Ue], t.getToggleHideAllColumnsProps = [le], t.stateReducers.push(J), t.useInstanceBeforeDimensions.push(Z), t.headerGroupsDeps.push(function(o, f) {
3272
+ t.getToggleHiddenProps = [Ue], t.getToggleHideAllColumnsProps = [le], t.stateReducers.push(J), t.useInstanceBeforeDimensions.push(Z), t.headerGroupsDeps.push((function(o, f) {
3273
3273
  var p = f.instance;
3274
3274
  return [].concat(o, [p.state.hiddenColumns]);
3275
- }), t.useInstance.push(se);
3275
+ })), t.useInstance.push(se);
3276
3276
  };
3277
3277
  Ie.pluginName = "useColumnVisibility";
3278
3278
  var Ue = function(t, o) {
@@ -3290,46 +3290,46 @@ function Ds() {
3290
3290
  if (o.type === h.init) return a({ hiddenColumns: [] }, t);
3291
3291
  if (o.type === h.resetHiddenColumns) return a({}, t, { hiddenColumns: p.initialState.hiddenColumns || [] });
3292
3292
  if (o.type === h.toggleHideColumn) {
3293
- var w = (o.value !== void 0 ? o.value : !t.hiddenColumns.includes(o.columnId)) ? [].concat(t.hiddenColumns, [o.columnId]) : t.hiddenColumns.filter(function(_) {
3293
+ var w = (o.value !== void 0 ? o.value : !t.hiddenColumns.includes(o.columnId)) ? [].concat(t.hiddenColumns, [o.columnId]) : t.hiddenColumns.filter((function(_) {
3294
3294
  return _ !== o.columnId;
3295
- });
3295
+ }));
3296
3296
  return a({}, t, { hiddenColumns: w });
3297
3297
  }
3298
- return o.type === h.setHiddenColumns ? a({}, t, { hiddenColumns: T(o.value, t.hiddenColumns) }) : o.type === h.toggleHideAllColumns ? a({}, t, { hiddenColumns: (o.value !== void 0 ? o.value : !t.hiddenColumns.length) ? p.allColumns.map(function(_) {
3298
+ return o.type === h.setHiddenColumns ? a({}, t, { hiddenColumns: T(o.value, t.hiddenColumns) }) : o.type === h.toggleHideAllColumns ? a({}, t, { hiddenColumns: (o.value !== void 0 ? o.value : !t.hiddenColumns.length) ? p.allColumns.map((function(_) {
3299
3299
  return _.id;
3300
- }) : [] }) : void 0;
3300
+ })) : [] }) : void 0;
3301
3301
  }
3302
3302
  function Z(t) {
3303
3303
  var o = t.headers, f = t.state.hiddenColumns;
3304
3304
  i.useRef(!1).current;
3305
3305
  var p = 0;
3306
- o.forEach(function(w) {
3307
- return p += function _(R, q) {
3306
+ o.forEach((function(w) {
3307
+ return p += (function _(R, q) {
3308
3308
  R.isVisible = q && !f.includes(R.id);
3309
3309
  var K = 0;
3310
- return R.headers && R.headers.length ? R.headers.forEach(function(te) {
3310
+ return R.headers && R.headers.length ? R.headers.forEach((function(te) {
3311
3311
  return K += _(te, R.isVisible);
3312
- }) : K = R.isVisible ? 1 : 0, R.totalVisibleHeaderCount = K, K;
3313
- }(w, !0);
3314
- });
3312
+ })) : K = R.isVisible ? 1 : 0, R.totalVisibleHeaderCount = K, K;
3313
+ })(w, !0);
3314
+ }));
3315
3315
  }
3316
3316
  function se(t) {
3317
- var o = t.columns, f = t.flatHeaders, p = t.dispatch, w = t.allColumns, _ = t.getHooks, R = t.state.hiddenColumns, q = t.autoResetHiddenColumns, K = q === void 0 || q, te = b(t), ge = w.length === R.length, ue = i.useCallback(function(Se, ke) {
3317
+ var o = t.columns, f = t.flatHeaders, p = t.dispatch, w = t.allColumns, _ = t.getHooks, R = t.state.hiddenColumns, q = t.autoResetHiddenColumns, K = q === void 0 || q, te = b(t), ge = w.length === R.length, ue = i.useCallback((function(Se, ke) {
3318
3318
  return p({ type: h.toggleHideColumn, columnId: Se, value: ke });
3319
- }, [p]), fe = i.useCallback(function(Se) {
3319
+ }), [p]), fe = i.useCallback((function(Se) {
3320
3320
  return p({ type: h.setHiddenColumns, value: Se });
3321
- }, [p]), ae = i.useCallback(function(Se) {
3321
+ }), [p]), ae = i.useCallback((function(Se) {
3322
3322
  return p({ type: h.toggleHideAllColumns, value: Se });
3323
- }, [p]), de = W(_().getToggleHideAllColumnsProps, { instance: te() });
3324
- f.forEach(function(Se) {
3323
+ }), [p]), de = O(_().getToggleHideAllColumnsProps, { instance: te() });
3324
+ f.forEach((function(Se) {
3325
3325
  Se.toggleHidden = function(ke) {
3326
3326
  p({ type: h.toggleHideColumn, columnId: Se.id, value: ke });
3327
- }, Se.getToggleHiddenProps = W(_().getToggleHiddenProps, { instance: te(), column: Se });
3328
- });
3327
+ }, Se.getToggleHiddenProps = O(_().getToggleHiddenProps, { instance: te(), column: Se });
3328
+ }));
3329
3329
  var Ce = b(K);
3330
- B(function() {
3330
+ B((function() {
3331
3331
  Ce() && p({ type: h.resetHiddenColumns });
3332
- }, [p, o]), Object.assign(t, { allColumnsHidden: ge, toggleHideColumn: ue, setHiddenColumns: fe, toggleHideAllColumns: ae, getToggleHideAllColumnsProps: de });
3332
+ }), [p, o]), Object.assign(t, { allColumnsHidden: ge, toggleHideColumn: ue, setHiddenColumns: fe, toggleHideAllColumns: ae, getToggleHideAllColumnsProps: de });
3333
3333
  }
3334
3334
  var Be = {}, Pe = {}, mt = function(t, o, f) {
3335
3335
  return t;
@@ -3347,33 +3347,33 @@ function Ds() {
3347
3347
  function sr(t, o) {
3348
3348
  o === void 0 && (o = 0);
3349
3349
  var f = 0, p = 0, w = 0, _ = 0;
3350
- return t.forEach(function(R) {
3350
+ return t.forEach((function(R) {
3351
3351
  var q = R.headers;
3352
3352
  if (R.totalLeft = o, q && q.length) {
3353
3353
  var K = sr(q, o), te = K[0], ge = K[1], ue = K[2], fe = K[3];
3354
3354
  R.totalMinWidth = te, R.totalWidth = ge, R.totalMaxWidth = ue, R.totalFlexWidth = fe;
3355
3355
  } else R.totalMinWidth = R.minWidth, R.totalWidth = Math.min(Math.max(R.minWidth, R.width), R.maxWidth), R.totalMaxWidth = R.maxWidth, R.totalFlexWidth = R.canResize ? R.totalWidth : 0;
3356
3356
  R.isVisible && (o += R.totalWidth, f += R.totalMinWidth, p += R.totalWidth, w += R.totalMaxWidth, _ += R.totalFlexWidth);
3357
- }), [f, p, w, _];
3357
+ })), [f, p, w, _];
3358
3358
  }
3359
3359
  function or(t) {
3360
3360
  var o = t.data, f = t.rows, p = t.flatRows, w = t.rowsById, _ = t.column, R = t.getRowId, q = t.getSubRows, K = t.accessValueHooks, te = t.getInstance;
3361
- o.forEach(function(ge, ue) {
3362
- return function fe(ae, de, Ce, Se, ke) {
3361
+ o.forEach((function(ge, ue) {
3362
+ return (function fe(ae, de, Ce, Se, ke) {
3363
3363
  Ce === void 0 && (Ce = 0);
3364
3364
  var at = ae, Ve = R(ae, de, Se), xe = w[Ve];
3365
- if (xe) xe.subRows && xe.originalSubRows.forEach(function(Ee, Je) {
3365
+ if (xe) xe.subRows && xe.originalSubRows.forEach((function(Ee, Je) {
3366
3366
  return fe(Ee, Je, Ce + 1, xe);
3367
- });
3367
+ }));
3368
3368
  else if ((xe = { id: Ve, original: at, index: de, depth: Ce, cells: [{}] }).cells.map = Ae, xe.cells.filter = Ae, xe.cells.forEach = Ae, xe.cells[0].getCellProps = Ae, xe.values = {}, ke.push(xe), p.push(xe), w[Ve] = xe, xe.originalSubRows = q(ae, de), xe.originalSubRows) {
3369
3369
  var rt = [];
3370
- xe.originalSubRows.forEach(function(Ee, Je) {
3370
+ xe.originalSubRows.forEach((function(Ee, Je) {
3371
3371
  return fe(Ee, Je, Ce + 1, xe, rt);
3372
- }), xe.subRows = rt;
3372
+ })), xe.subRows = rt;
3373
3373
  }
3374
3374
  _.accessor && (xe.values[_.id] = _.accessor(ae, de, xe, ke, o)), xe.values[_.id] = I(K, xe.values[_.id], { row: xe, column: _, instance: te() });
3375
- }(ge, ue, 0, void 0, f);
3376
- });
3375
+ })(ge, ue, 0, void 0, f);
3376
+ }));
3377
3377
  }
3378
3378
  h.resetExpanded = "resetExpanded", h.toggleRowExpanded = "toggleRowExpanded", h.toggleAllRowsExpanded = "toggleAllRowsExpanded";
3379
3379
  var fr = function(t) {
@@ -3398,9 +3398,9 @@ function Ds() {
3398
3398
  var w = o.value, _ = p.rowsById, R = Object.keys(_).length === Object.keys(t.expanded).length;
3399
3399
  if (w !== void 0 ? w : !R) {
3400
3400
  var q = {};
3401
- return Object.keys(_).forEach(function(de) {
3401
+ return Object.keys(_).forEach((function(de) {
3402
3402
  q[de] = !0;
3403
- }), a({}, t, { expanded: q });
3403
+ })), a({}, t, { expanded: q });
3404
3404
  }
3405
3405
  return a({}, t, { expanded: {} });
3406
3406
  }
@@ -3418,130 +3418,130 @@ function Ds() {
3418
3418
  var o = t.data, f = t.rows, p = t.rowsById, w = t.manualExpandedKey, _ = w === void 0 ? "expanded" : w, R = t.paginateExpandedRows, q = R === void 0 || R, K = t.expandSubRows, te = K === void 0 || K, ge = t.autoResetExpanded, ue = ge === void 0 || ge, fe = t.getHooks, ae = t.plugins, de = t.state.expanded, Ce = t.dispatch;
3419
3419
  P(ae, ["useSortBy", "useGroupBy", "usePivotColumns", "useGlobalFilter"], "useExpanded");
3420
3420
  var Se = b(ue), ke = !!(Object.keys(p).length && Object.keys(de).length);
3421
- ke && Object.keys(p).some(function(vt) {
3421
+ ke && Object.keys(p).some((function(vt) {
3422
3422
  return !de[vt];
3423
- }) && (ke = !1), B(function() {
3423
+ })) && (ke = !1), B((function() {
3424
3424
  Se() && Ce({ type: h.resetExpanded });
3425
- }, [Ce, o]);
3426
- var at = i.useCallback(function(vt, qe) {
3425
+ }), [Ce, o]);
3426
+ var at = i.useCallback((function(vt, qe) {
3427
3427
  Ce({ type: h.toggleRowExpanded, id: vt, value: qe });
3428
- }, [Ce]), Ve = i.useCallback(function(vt) {
3428
+ }), [Ce]), Ve = i.useCallback((function(vt) {
3429
3429
  return Ce({ type: h.toggleAllRowsExpanded, value: vt });
3430
- }, [Ce]), xe = i.useMemo(function() {
3430
+ }), [Ce]), xe = i.useMemo((function() {
3431
3431
  return q ? X(f, { manualExpandedKey: _, expanded: de, expandSubRows: te }) : f;
3432
- }, [q, f, _, de, te]), rt = i.useMemo(function() {
3433
- return function(vt) {
3432
+ }), [q, f, _, de, te]), rt = i.useMemo((function() {
3433
+ return (function(vt) {
3434
3434
  var qe = 0;
3435
- return Object.keys(vt).forEach(function(Ke) {
3435
+ return Object.keys(vt).forEach((function(Ke) {
3436
3436
  var Pt = Ke.split(".");
3437
3437
  qe = Math.max(qe, Pt.length);
3438
- }), qe;
3439
- }(de);
3440
- }, [de]), Ee = b(t), Je = W(fe().getToggleAllRowsExpandedProps, { instance: Ee() });
3438
+ })), qe;
3439
+ })(de);
3440
+ }), [de]), Ee = b(t), Je = O(fe().getToggleAllRowsExpandedProps, { instance: Ee() });
3441
3441
  Object.assign(t, { preExpandedRows: f, expandedRows: xe, rows: xe, expandedDepth: rt, isAllRowsExpanded: ke, toggleRowExpanded: at, toggleAllRowsExpanded: Ve, getToggleAllRowsExpandedProps: Je });
3442
3442
  }
3443
3443
  function cr(t, o) {
3444
3444
  var f = o.instance.getHooks, p = o.instance;
3445
3445
  t.toggleRowExpanded = function(w) {
3446
3446
  return p.toggleRowExpanded(t.id, w);
3447
- }, t.getToggleRowExpandedProps = W(f().getToggleRowExpandedProps, { instance: p, row: t });
3447
+ }, t.getToggleRowExpandedProps = O(f().getToggleRowExpandedProps, { instance: p, row: t });
3448
3448
  }
3449
3449
  var yr = function(t, o, f) {
3450
- return t = t.filter(function(p) {
3451
- return o.some(function(w) {
3450
+ return t = t.filter((function(p) {
3451
+ return o.some((function(w) {
3452
3452
  var _ = p.values[w];
3453
3453
  return String(_).toLowerCase().includes(String(f).toLowerCase());
3454
- });
3455
- });
3454
+ }));
3455
+ }));
3456
3456
  };
3457
3457
  yr.autoRemove = function(t) {
3458
3458
  return !t;
3459
3459
  };
3460
3460
  var Rr = function(t, o, f) {
3461
- return t.filter(function(p) {
3462
- return o.some(function(w) {
3461
+ return t.filter((function(p) {
3462
+ return o.some((function(w) {
3463
3463
  var _ = p.values[w];
3464
3464
  return _ === void 0 || String(_).toLowerCase() === String(f).toLowerCase();
3465
- });
3466
- });
3465
+ }));
3466
+ }));
3467
3467
  };
3468
3468
  Rr.autoRemove = function(t) {
3469
3469
  return !t;
3470
3470
  };
3471
3471
  var gr = function(t, o, f) {
3472
- return t.filter(function(p) {
3473
- return o.some(function(w) {
3472
+ return t.filter((function(p) {
3473
+ return o.some((function(w) {
3474
3474
  var _ = p.values[w];
3475
3475
  return _ === void 0 || String(_) === String(f);
3476
- });
3477
- });
3476
+ }));
3477
+ }));
3478
3478
  };
3479
3479
  gr.autoRemove = function(t) {
3480
3480
  return !t;
3481
3481
  };
3482
3482
  var jr = function(t, o, f) {
3483
- return t.filter(function(p) {
3484
- return o.some(function(w) {
3483
+ return t.filter((function(p) {
3484
+ return o.some((function(w) {
3485
3485
  return p.values[w].includes(f);
3486
- });
3487
- });
3486
+ }));
3487
+ }));
3488
3488
  };
3489
3489
  jr.autoRemove = function(t) {
3490
3490
  return !t || !t.length;
3491
3491
  };
3492
3492
  var dt = function(t, o, f) {
3493
- return t.filter(function(p) {
3494
- return o.some(function(w) {
3493
+ return t.filter((function(p) {
3494
+ return o.some((function(w) {
3495
3495
  var _ = p.values[w];
3496
- return _ && _.length && f.every(function(R) {
3496
+ return _ && _.length && f.every((function(R) {
3497
3497
  return _.includes(R);
3498
- });
3499
- });
3500
- });
3498
+ }));
3499
+ }));
3500
+ }));
3501
3501
  };
3502
3502
  dt.autoRemove = function(t) {
3503
3503
  return !t || !t.length;
3504
3504
  };
3505
3505
  var wt = function(t, o, f) {
3506
- return t.filter(function(p) {
3507
- return o.some(function(w) {
3506
+ return t.filter((function(p) {
3507
+ return o.some((function(w) {
3508
3508
  var _ = p.values[w];
3509
- return _ && _.length && f.some(function(R) {
3509
+ return _ && _.length && f.some((function(R) {
3510
3510
  return _.includes(R);
3511
- });
3512
- });
3513
- });
3511
+ }));
3512
+ }));
3513
+ }));
3514
3514
  };
3515
3515
  wt.autoRemove = function(t) {
3516
3516
  return !t || !t.length;
3517
3517
  };
3518
3518
  var ut = function(t, o, f) {
3519
- return t.filter(function(p) {
3520
- return o.some(function(w) {
3519
+ return t.filter((function(p) {
3520
+ return o.some((function(w) {
3521
3521
  var _ = p.values[w];
3522
3522
  return f.includes(_);
3523
- });
3524
- });
3523
+ }));
3524
+ }));
3525
3525
  };
3526
3526
  ut.autoRemove = function(t) {
3527
3527
  return !t || !t.length;
3528
3528
  };
3529
3529
  var St = function(t, o, f) {
3530
- return t.filter(function(p) {
3531
- return o.some(function(w) {
3530
+ return t.filter((function(p) {
3531
+ return o.some((function(w) {
3532
3532
  return p.values[w] === f;
3533
- });
3534
- });
3533
+ }));
3534
+ }));
3535
3535
  };
3536
3536
  St.autoRemove = function(t) {
3537
3537
  return t === void 0;
3538
3538
  };
3539
3539
  var zt = function(t, o, f) {
3540
- return t.filter(function(p) {
3541
- return o.some(function(w) {
3540
+ return t.filter((function(p) {
3541
+ return o.some((function(w) {
3542
3542
  return p.values[w] == f;
3543
- });
3544
- });
3543
+ }));
3544
+ }));
3545
3545
  };
3546
3546
  zt.autoRemove = function(t) {
3547
3547
  return t == null;
@@ -3552,12 +3552,12 @@ function Ds() {
3552
3552
  var R = w;
3553
3553
  w = _, _ = R;
3554
3554
  }
3555
- return t.filter(function(q) {
3556
- return o.some(function(K) {
3555
+ return t.filter((function(q) {
3556
+ return o.some((function(K) {
3557
3557
  var te = q.values[K];
3558
3558
  return te >= w && te <= _;
3559
- });
3560
- });
3559
+ }));
3560
+ }));
3561
3561
  };
3562
3562
  Ot.autoRemove = function(t) {
3563
3563
  return !t || typeof t[0] != "number" && typeof t[1] != "number";
@@ -3571,77 +3571,77 @@ function Ds() {
3571
3571
  if (o.type === h.init) return a({ filters: [] }, t);
3572
3572
  if (o.type === h.resetFilters) return a({}, t, { filters: p.initialState.filters || [] });
3573
3573
  if (o.type === h.setFilter) {
3574
- var w = o.columnId, _ = o.filterValue, R = p.allColumns, q = p.filterTypes, K = R.find(function(Ce) {
3574
+ var w = o.columnId, _ = o.filterValue, R = p.allColumns, q = p.filterTypes, K = R.find((function(Ce) {
3575
3575
  return Ce.id === w;
3576
- });
3576
+ }));
3577
3577
  if (!K) throw new Error("React-Table: Could not find a column with id: " + w);
3578
- var te = ce(K.filter, q || {}, Yt), ge = t.filters.find(function(Ce) {
3578
+ var te = ce(K.filter, q || {}, Yt), ge = t.filters.find((function(Ce) {
3579
3579
  return Ce.id === w;
3580
- }), ue = T(_, ge && ge.value);
3581
- return M(te.autoRemove, ue, K) ? a({}, t, { filters: t.filters.filter(function(Ce) {
3580
+ })), ue = T(_, ge && ge.value);
3581
+ return M(te.autoRemove, ue, K) ? a({}, t, { filters: t.filters.filter((function(Ce) {
3582
3582
  return Ce.id !== w;
3583
- }) }) : a({}, t, ge ? { filters: t.filters.map(function(Ce) {
3583
+ })) }) : a({}, t, ge ? { filters: t.filters.map((function(Ce) {
3584
3584
  return Ce.id === w ? { id: w, value: ue } : Ce;
3585
- }) } : { filters: [].concat(t.filters, [{ id: w, value: ue }]) });
3585
+ })) } : { filters: [].concat(t.filters, [{ id: w, value: ue }]) });
3586
3586
  }
3587
3587
  if (o.type === h.setAllFilters) {
3588
3588
  var fe = o.filters, ae = p.allColumns, de = p.filterTypes;
3589
- return a({}, t, { filters: T(fe, t.filters).filter(function(Ce) {
3590
- var Se = ae.find(function(ke) {
3589
+ return a({}, t, { filters: T(fe, t.filters).filter((function(Ce) {
3590
+ var Se = ae.find((function(ke) {
3591
3591
  return ke.id === Ce.id;
3592
- });
3592
+ }));
3593
3593
  return !M(ce(Se.filter, de || {}, Yt).autoRemove, Ce.value, Se);
3594
- }) });
3594
+ })) });
3595
3595
  }
3596
3596
  }
3597
3597
  function E(t) {
3598
- var o = t.data, f = t.rows, p = t.flatRows, w = t.rowsById, _ = t.allColumns, R = t.filterTypes, q = t.manualFilters, K = t.defaultCanFilter, te = K !== void 0 && K, ge = t.disableFilters, ue = t.state.filters, fe = t.dispatch, ae = t.autoResetFilters, de = ae === void 0 || ae, Ce = i.useCallback(function(Ee, Je) {
3598
+ var o = t.data, f = t.rows, p = t.flatRows, w = t.rowsById, _ = t.allColumns, R = t.filterTypes, q = t.manualFilters, K = t.defaultCanFilter, te = K !== void 0 && K, ge = t.disableFilters, ue = t.state.filters, fe = t.dispatch, ae = t.autoResetFilters, de = ae === void 0 || ae, Ce = i.useCallback((function(Ee, Je) {
3599
3599
  fe({ type: h.setFilter, columnId: Ee, filterValue: Je });
3600
- }, [fe]), Se = i.useCallback(function(Ee) {
3600
+ }), [fe]), Se = i.useCallback((function(Ee) {
3601
3601
  fe({ type: h.setAllFilters, filters: Ee });
3602
- }, [fe]);
3603
- _.forEach(function(Ee) {
3602
+ }), [fe]);
3603
+ _.forEach((function(Ee) {
3604
3604
  var Je = Ee.id, vt = Ee.accessor, qe = Ee.defaultCanFilter, Ke = Ee.disableFilters;
3605
3605
  Ee.canFilter = vt ? _e(Ke !== !0 && void 0, ge !== !0 && void 0, !0) : _e(qe, te, !1), Ee.setFilter = function(et) {
3606
3606
  return Ce(Ee.id, et);
3607
3607
  };
3608
- var Pt = ue.find(function(et) {
3608
+ var Pt = ue.find((function(et) {
3609
3609
  return et.id === Je;
3610
- });
3610
+ }));
3611
3611
  Ee.filterValue = Pt && Pt.value;
3612
- });
3613
- var ke = i.useMemo(function() {
3612
+ }));
3613
+ var ke = i.useMemo((function() {
3614
3614
  if (q || !ue.length) return [f, p, w];
3615
3615
  var Ee = [], Je = {};
3616
- return [function vt(qe, Ke) {
3616
+ return [(function vt(qe, Ke) {
3617
3617
  Ke === void 0 && (Ke = 0);
3618
3618
  var Pt = qe;
3619
- return (Pt = ue.reduce(function(et, Ct) {
3620
- var r = Ct.id, l = Ct.value, c = _.find(function(x) {
3619
+ return (Pt = ue.reduce((function(et, Ct) {
3620
+ var r = Ct.id, l = Ct.value, c = _.find((function(x) {
3621
3621
  return x.id === r;
3622
- });
3622
+ }));
3623
3623
  if (!c) return et;
3624
3624
  Ke === 0 && (c.preFilteredRows = et);
3625
3625
  var s = ce(c.filter, R || {}, Yt);
3626
3626
  return s ? (c.filteredRows = s(et, [r], l), c.filteredRows) : (console.warn("Could not find a valid 'column.filter' for column with the ID: " + c.id + "."), et);
3627
- }, qe)).forEach(function(et) {
3627
+ }), qe)).forEach((function(et) {
3628
3628
  Ee.push(et), Je[et.id] = et, et.subRows && (et.subRows = et.subRows && et.subRows.length > 0 ? vt(et.subRows, Ke + 1) : et.subRows);
3629
- }), Pt;
3630
- }(f), Ee, Je];
3631
- }, [q, ue, f, p, w, _, R]), at = ke[0], Ve = ke[1], xe = ke[2];
3632
- i.useMemo(function() {
3633
- _.filter(function(Ee) {
3634
- return !ue.find(function(Je) {
3629
+ })), Pt;
3630
+ })(f), Ee, Je];
3631
+ }), [q, ue, f, p, w, _, R]), at = ke[0], Ve = ke[1], xe = ke[2];
3632
+ i.useMemo((function() {
3633
+ _.filter((function(Ee) {
3634
+ return !ue.find((function(Je) {
3635
3635
  return Je.id === Ee.id;
3636
- });
3637
- }).forEach(function(Ee) {
3636
+ }));
3637
+ })).forEach((function(Ee) {
3638
3638
  Ee.preFilteredRows = at, Ee.filteredRows = at;
3639
- });
3640
- }, [at, ue, _]);
3639
+ }));
3640
+ }), [at, ue, _]);
3641
3641
  var rt = b(de);
3642
- B(function() {
3642
+ B((function() {
3643
3643
  rt() && fe({ type: h.resetFilters });
3644
- }, [fe, q ? null : o]), Object.assign(t, { preFilteredRows: f, preFilteredFlatRows: p, preFilteredRowsById: w, filteredRows: at, filteredFlatRows: Ve, filteredRowsById: xe, rows: at, flatRows: Ve, rowsById: xe, setFilter: Ce, setAllFilters: Se });
3644
+ }), [fe, q ? null : o]), Object.assign(t, { preFilteredRows: f, preFilteredFlatRows: p, preFilteredRowsById: w, filteredRows: at, filteredFlatRows: Ve, filteredRowsById: xe, rows: at, flatRows: Ve, rowsById: xe, setFilter: Ce, setAllFilters: Se });
3645
3645
  }
3646
3646
  Ut.pluginName = "useFilters", h.resetGlobalFilter = "resetGlobalFilter", h.setGlobalFilter = "setGlobalFilter";
3647
3647
  var ve = function(t) {
@@ -3655,59 +3655,59 @@ function Ds() {
3655
3655
  }
3656
3656
  }
3657
3657
  function qt(t) {
3658
- var o = t.data, f = t.rows, p = t.flatRows, w = t.rowsById, _ = t.allColumns, R = t.filterTypes, q = t.globalFilter, K = t.manualGlobalFilter, te = t.state.globalFilter, ge = t.dispatch, ue = t.autoResetGlobalFilter, fe = ue === void 0 || ue, ae = t.disableGlobalFilter, de = i.useCallback(function(xe) {
3658
+ var o = t.data, f = t.rows, p = t.flatRows, w = t.rowsById, _ = t.allColumns, R = t.filterTypes, q = t.globalFilter, K = t.manualGlobalFilter, te = t.state.globalFilter, ge = t.dispatch, ue = t.autoResetGlobalFilter, fe = ue === void 0 || ue, ae = t.disableGlobalFilter, de = i.useCallback((function(xe) {
3659
3659
  ge({ type: h.setGlobalFilter, filterValue: xe });
3660
- }, [ge]), Ce = i.useMemo(function() {
3660
+ }), [ge]), Ce = i.useMemo((function() {
3661
3661
  if (K || te === void 0) return [f, p, w];
3662
3662
  var xe = [], rt = {}, Ee = ce(q, R || {}, Yt);
3663
3663
  if (!Ee) return console.warn("Could not find a valid 'globalFilter' option."), f;
3664
- _.forEach(function(vt) {
3664
+ _.forEach((function(vt) {
3665
3665
  var qe = vt.disableGlobalFilter;
3666
3666
  vt.canFilter = _e(qe !== !0 && void 0, ae !== !0 && void 0, !0);
3667
- });
3668
- var Je = _.filter(function(vt) {
3667
+ }));
3668
+ var Je = _.filter((function(vt) {
3669
3669
  return vt.canFilter === !0;
3670
- });
3671
- return [function vt(qe) {
3672
- return (qe = Ee(qe, Je.map(function(Ke) {
3670
+ }));
3671
+ return [(function vt(qe) {
3672
+ return (qe = Ee(qe, Je.map((function(Ke) {
3673
3673
  return Ke.id;
3674
- }), te)).forEach(function(Ke) {
3674
+ })), te)).forEach((function(Ke) {
3675
3675
  xe.push(Ke), rt[Ke.id] = Ke, Ke.subRows = Ke.subRows && Ke.subRows.length ? vt(Ke.subRows) : Ke.subRows;
3676
- }), qe;
3677
- }(f), xe, rt];
3678
- }, [K, te, q, R, _, f, p, w, ae]), Se = Ce[0], ke = Ce[1], at = Ce[2], Ve = b(fe);
3679
- B(function() {
3676
+ })), qe;
3677
+ })(f), xe, rt];
3678
+ }), [K, te, q, R, _, f, p, w, ae]), Se = Ce[0], ke = Ce[1], at = Ce[2], Ve = b(fe);
3679
+ B((function() {
3680
3680
  Ve() && ge({ type: h.resetGlobalFilter });
3681
- }, [ge, K ? null : o]), Object.assign(t, { preGlobalFilteredRows: f, preGlobalFilteredFlatRows: p, preGlobalFilteredRowsById: w, globalFilteredRows: Se, globalFilteredFlatRows: ke, globalFilteredRowsById: at, rows: Se, flatRows: ke, rowsById: at, setGlobalFilter: de, disableGlobalFilter: ae });
3681
+ }), [ge, K ? null : o]), Object.assign(t, { preGlobalFilteredRows: f, preGlobalFilteredFlatRows: p, preGlobalFilteredRowsById: w, globalFilteredRows: Se, globalFilteredFlatRows: ke, globalFilteredRowsById: at, rows: Se, flatRows: ke, rowsById: at, setGlobalFilter: de, disableGlobalFilter: ae });
3682
3682
  }
3683
3683
  function tr(t, o) {
3684
- return o.reduce(function(f, p) {
3684
+ return o.reduce((function(f, p) {
3685
3685
  return f + (typeof p == "number" ? p : 0);
3686
- }, 0);
3686
+ }), 0);
3687
3687
  }
3688
3688
  ve.pluginName = "useGlobalFilter";
3689
3689
  var lr = Object.freeze({ __proto__: null, sum: tr, min: function(t) {
3690
3690
  var o = t[0] || 0;
3691
- return t.forEach(function(f) {
3691
+ return t.forEach((function(f) {
3692
3692
  typeof f == "number" && (o = Math.min(o, f));
3693
- }), o;
3693
+ })), o;
3694
3694
  }, max: function(t) {
3695
3695
  var o = t[0] || 0;
3696
- return t.forEach(function(f) {
3696
+ return t.forEach((function(f) {
3697
3697
  typeof f == "number" && (o = Math.max(o, f));
3698
- }), o;
3698
+ })), o;
3699
3699
  }, minMax: function(t) {
3700
3700
  var o = t[0] || 0, f = t[0] || 0;
3701
- return t.forEach(function(p) {
3701
+ return t.forEach((function(p) {
3702
3702
  typeof p == "number" && (o = Math.min(o, p), f = Math.max(f, p));
3703
- }), o + ".." + f;
3703
+ })), o + ".." + f;
3704
3704
  }, average: function(t) {
3705
3705
  return tr(0, t) / t.length;
3706
3706
  }, median: function(t) {
3707
3707
  if (!t.length) return null;
3708
- var o = Math.floor(t.length / 2), f = [].concat(t).sort(function(p, w) {
3708
+ var o = Math.floor(t.length / 2), f = [].concat(t).sort((function(p, w) {
3709
3709
  return p - w;
3710
- });
3710
+ }));
3711
3711
  return t.length % 2 != 0 ? f[o] : (f[o - 1] + f[o]) / 2;
3712
3712
  }, unique: function(t) {
3713
3713
  return Array.from(new Set(t).values());
@@ -3718,10 +3718,10 @@ function Ds() {
3718
3718
  } }), dr = [], Hr = {};
3719
3719
  h.resetGroupBy = "resetGroupBy", h.setGroupBy = "setGroupBy", h.toggleGroupBy = "toggleGroupBy";
3720
3720
  var zr = function(t) {
3721
- t.getGroupByToggleProps = [fl], t.stateReducers.push(Tr), t.visibleColumnsDeps.push(function(o, f) {
3721
+ t.getGroupByToggleProps = [fl], t.stateReducers.push(Tr), t.visibleColumnsDeps.push((function(o, f) {
3722
3722
  var p = f.instance;
3723
3723
  return [].concat(o, [p.state.groupBy]);
3724
- }), t.visibleColumns.push(hl), t.useInstance.push(Kl), t.prepareRow.push(pl);
3724
+ })), t.visibleColumns.push(hl), t.useInstance.push(Kl), t.prepareRow.push(pl);
3725
3725
  };
3726
3726
  zr.pluginName = "useGroupBy";
3727
3727
  var fl = function(t, o) {
@@ -3736,64 +3736,64 @@ function Ds() {
3736
3736
  if (o.type === h.setGroupBy) return a({}, t, { groupBy: o.value });
3737
3737
  if (o.type === h.toggleGroupBy) {
3738
3738
  var w = o.columnId, _ = o.value, R = _ !== void 0 ? _ : !t.groupBy.includes(w);
3739
- return a({}, t, R ? { groupBy: [].concat(t.groupBy, [w]) } : { groupBy: t.groupBy.filter(function(q) {
3739
+ return a({}, t, R ? { groupBy: [].concat(t.groupBy, [w]) } : { groupBy: t.groupBy.filter((function(q) {
3740
3740
  return q !== w;
3741
- }) });
3741
+ })) });
3742
3742
  }
3743
3743
  }
3744
3744
  function hl(t, o) {
3745
- var f = o.instance.state.groupBy, p = f.map(function(_) {
3746
- return t.find(function(R) {
3745
+ var f = o.instance.state.groupBy, p = f.map((function(_) {
3746
+ return t.find((function(R) {
3747
3747
  return R.id === _;
3748
- });
3749
- }).filter(Boolean), w = t.filter(function(_) {
3748
+ }));
3749
+ })).filter(Boolean), w = t.filter((function(_) {
3750
3750
  return !f.includes(_.id);
3751
- });
3752
- return (t = [].concat(p, w)).forEach(function(_) {
3751
+ }));
3752
+ return (t = [].concat(p, w)).forEach((function(_) {
3753
3753
  _.isGrouped = f.includes(_.id), _.groupedIndex = f.indexOf(_.id);
3754
- }), t;
3754
+ })), t;
3755
3755
  }
3756
3756
  var Zl = {};
3757
3757
  function Kl(t) {
3758
3758
  var o = t.data, f = t.rows, p = t.flatRows, w = t.rowsById, _ = t.allColumns, R = t.flatHeaders, q = t.groupByFn, K = q === void 0 ? ml : q, te = t.manualGroupBy, ge = t.aggregations, ue = ge === void 0 ? Zl : ge, fe = t.plugins, ae = t.state.groupBy, de = t.dispatch, Ce = t.autoResetGroupBy, Se = Ce === void 0 || Ce, ke = t.disableGroupBy, at = t.defaultCanGroupBy, Ve = t.getHooks;
3759
3759
  P(fe, ["useColumnOrder", "useFilters"], "useGroupBy");
3760
3760
  var xe = b(t);
3761
- _.forEach(function(c) {
3761
+ _.forEach((function(c) {
3762
3762
  var s = c.accessor, x = c.defaultGroupBy, y = c.disableGroupBy;
3763
3763
  c.canGroupBy = s ? _e(c.canGroupBy, y !== !0 && void 0, ke !== !0 && void 0, !0) : _e(c.canGroupBy, x, at, !1), c.canGroupBy && (c.toggleGroupBy = function() {
3764
3764
  return t.toggleGroupBy(c.id);
3765
3765
  }), c.Aggregated = c.Aggregated || c.Cell;
3766
- });
3767
- var rt = i.useCallback(function(c, s) {
3766
+ }));
3767
+ var rt = i.useCallback((function(c, s) {
3768
3768
  de({ type: h.toggleGroupBy, columnId: c, value: s });
3769
- }, [de]), Ee = i.useCallback(function(c) {
3769
+ }), [de]), Ee = i.useCallback((function(c) {
3770
3770
  de({ type: h.setGroupBy, value: c });
3771
- }, [de]);
3772
- R.forEach(function(c) {
3773
- c.getGroupByToggleProps = W(Ve().getGroupByToggleProps, { instance: xe(), header: c });
3774
- });
3775
- var Je = i.useMemo(function() {
3771
+ }), [de]);
3772
+ R.forEach((function(c) {
3773
+ c.getGroupByToggleProps = O(Ve().getGroupByToggleProps, { instance: xe(), header: c });
3774
+ }));
3775
+ var Je = i.useMemo((function() {
3776
3776
  if (te || !ae.length) return [f, p, w, dr, Hr, p, w];
3777
- var c = ae.filter(function(re) {
3778
- return _.find(function(ye) {
3777
+ var c = ae.filter((function(re) {
3778
+ return _.find((function(ye) {
3779
3779
  return ye.id === re;
3780
- });
3781
- }), s = [], x = {}, y = [], m = {}, j = [], F = {}, $ = function re(ye, oe, pe) {
3782
- if (oe === void 0 && (oe = 0), oe === c.length) return ye.map(function(Ge) {
3780
+ }));
3781
+ })), s = [], x = {}, y = [], m = {}, j = [], F = {}, $ = (function re(ye, oe, pe) {
3782
+ if (oe === void 0 && (oe = 0), oe === c.length) return ye.map((function(Ge) {
3783
3783
  return a({}, Ge, { depth: oe });
3784
- });
3784
+ }));
3785
3785
  var be = c[oe], ie = K(ye, be);
3786
- return Object.entries(ie).map(function(Ge, ze) {
3787
- var Ze = Ge[0], je = Ge[1], lt = be + ":" + Ze, ft = re(je, oe + 1, lt = pe ? pe + ">" + lt : lt), Ne = oe ? he(je, "leafRows") : je, Re = function(Oe, nt, ot) {
3786
+ return Object.entries(ie).map((function(Ge, ze) {
3787
+ var Ze = Ge[0], je = Ge[1], lt = be + ":" + Ze, ft = re(je, oe + 1, lt = pe ? pe + ">" + lt : lt), Ne = oe ? he(je, "leafRows") : je, Re = (function(Oe, nt, ot) {
3788
3788
  var Tt = {};
3789
- return _.forEach(function(Me) {
3789
+ return _.forEach((function(Me) {
3790
3790
  if (c.includes(Me.id)) Tt[Me.id] = nt[0] ? nt[0].values[Me.id] : null;
3791
3791
  else {
3792
3792
  var Jt = typeof Me.aggregate == "function" ? Me.aggregate : ue[Me.aggregate] || lr[Me.aggregate];
3793
3793
  if (Jt) {
3794
- var ct = nt.map(function(Qe) {
3794
+ var ct = nt.map((function(Qe) {
3795
3795
  return Qe.values[Me.id];
3796
- }), Xe = Oe.map(function(Qe) {
3796
+ })), Xe = Oe.map((function(Qe) {
3797
3797
  var Gt = Qe.values[Me.id];
3798
3798
  if (!ot && Me.aggregateValue) {
3799
3799
  var er = typeof Me.aggregateValue == "function" ? Me.aggregateValue : ue[Me.aggregateValue] || lr[Me.aggregateValue];
@@ -3801,39 +3801,39 @@ function Ds() {
3801
3801
  Gt = er(Gt, Qe, Me);
3802
3802
  }
3803
3803
  return Gt;
3804
- });
3804
+ }));
3805
3805
  Tt[Me.id] = Jt(Xe, ct);
3806
3806
  } else {
3807
3807
  if (Me.aggregate) throw console.info({ column: Me }), new Error("React Table: Invalid column.aggregate option for column listed above");
3808
3808
  Tt[Me.id] = null;
3809
3809
  }
3810
3810
  }
3811
- }), Tt;
3812
- }(Ne, je, oe), De = { id: lt, isGrouped: !0, groupByID: be, groupByVal: Ze, values: Re, subRows: ft, leafRows: Ne, depth: oe, index: ze };
3813
- return ft.forEach(function(Oe) {
3811
+ })), Tt;
3812
+ })(Ne, je, oe), De = { id: lt, isGrouped: !0, groupByID: be, groupByVal: Ze, values: Re, subRows: ft, leafRows: Ne, depth: oe, index: ze };
3813
+ return ft.forEach((function(Oe) {
3814
3814
  s.push(Oe), x[Oe.id] = Oe, Oe.isGrouped ? (y.push(Oe), m[Oe.id] = Oe) : (j.push(Oe), F[Oe.id] = Oe);
3815
- }), De;
3816
- });
3817
- }(f);
3818
- return $.forEach(function(re) {
3815
+ })), De;
3816
+ }));
3817
+ })(f);
3818
+ return $.forEach((function(re) {
3819
3819
  s.push(re), x[re.id] = re, re.isGrouped ? (y.push(re), m[re.id] = re) : (j.push(re), F[re.id] = re);
3820
- }), [$, s, x, y, m, j, F];
3821
- }, [te, ae, f, p, w, _, ue, K]), vt = Je[0], qe = Je[1], Ke = Je[2], Pt = Je[3], et = Je[4], Ct = Je[5], r = Je[6], l = b(Se);
3822
- B(function() {
3820
+ })), [$, s, x, y, m, j, F];
3821
+ }), [te, ae, f, p, w, _, ue, K]), vt = Je[0], qe = Je[1], Ke = Je[2], Pt = Je[3], et = Je[4], Ct = Je[5], r = Je[6], l = b(Se);
3822
+ B((function() {
3823
3823
  l() && de({ type: h.resetGroupBy });
3824
- }, [de, te ? null : o]), Object.assign(t, { preGroupedRows: f, preGroupedFlatRow: p, preGroupedRowsById: w, groupedRows: vt, groupedFlatRows: qe, groupedRowsById: Ke, onlyGroupedFlatRows: Pt, onlyGroupedRowsById: et, nonGroupedFlatRows: Ct, nonGroupedRowsById: r, rows: vt, flatRows: qe, rowsById: Ke, toggleGroupBy: rt, setGroupBy: Ee });
3824
+ }), [de, te ? null : o]), Object.assign(t, { preGroupedRows: f, preGroupedFlatRow: p, preGroupedRowsById: w, groupedRows: vt, groupedFlatRows: qe, groupedRowsById: Ke, onlyGroupedFlatRows: Pt, onlyGroupedRowsById: et, nonGroupedFlatRows: Ct, nonGroupedRowsById: r, rows: vt, flatRows: qe, rowsById: Ke, toggleGroupBy: rt, setGroupBy: Ee });
3825
3825
  }
3826
3826
  function pl(t) {
3827
- t.allCells.forEach(function(o) {
3827
+ t.allCells.forEach((function(o) {
3828
3828
  var f;
3829
3829
  o.isGrouped = o.column.isGrouped && o.column.id === t.groupByID, o.isPlaceholder = !o.isGrouped && o.column.isGrouped, o.isAggregated = !o.isGrouped && !o.isPlaceholder && ((f = t.subRows) == null ? void 0 : f.length);
3830
- });
3830
+ }));
3831
3831
  }
3832
3832
  function ml(t, o) {
3833
- return t.reduce(function(f, p, w) {
3833
+ return t.reduce((function(f, p, w) {
3834
3834
  var _ = "" + p.values[o];
3835
3835
  return f[_] = Array.isArray(f[_]) ? f[_] : [], f[_].push(p), f;
3836
- }, {});
3836
+ }), {});
3837
3837
  }
3838
3838
  var gl = /([0-9]+)/gm;
3839
3839
  function Lr(t, o) {
@@ -3895,88 +3895,88 @@ function Ds() {
3895
3895
  function Ql(t, o, f, p) {
3896
3896
  if (o.type === h.init) return a({ sortBy: [] }, t);
3897
3897
  if (o.type === h.resetSortBy) return a({}, t, { sortBy: p.initialState.sortBy || [] });
3898
- if (o.type === h.clearSortBy) return a({}, t, { sortBy: t.sortBy.filter(function(xe) {
3898
+ if (o.type === h.clearSortBy) return a({}, t, { sortBy: t.sortBy.filter((function(xe) {
3899
3899
  return xe.id !== o.columnId;
3900
- }) });
3900
+ })) });
3901
3901
  if (o.type === h.setSortBy) return a({}, t, { sortBy: o.sortBy });
3902
3902
  if (o.type === h.toggleSortBy) {
3903
- var w, _ = o.columnId, R = o.desc, q = o.multi, K = p.allColumns, te = p.disableMultiSort, ge = p.disableSortRemove, ue = p.disableMultiRemove, fe = p.maxMultiSortColCount, ae = fe === void 0 ? Number.MAX_SAFE_INTEGER : fe, de = t.sortBy, Ce = K.find(function(xe) {
3903
+ var w, _ = o.columnId, R = o.desc, q = o.multi, K = p.allColumns, te = p.disableMultiSort, ge = p.disableSortRemove, ue = p.disableMultiRemove, fe = p.maxMultiSortColCount, ae = fe === void 0 ? Number.MAX_SAFE_INTEGER : fe, de = t.sortBy, Ce = K.find((function(xe) {
3904
3904
  return xe.id === _;
3905
- }).sortDescFirst, Se = de.find(function(xe) {
3905
+ })).sortDescFirst, Se = de.find((function(xe) {
3906
3906
  return xe.id === _;
3907
- }), ke = de.findIndex(function(xe) {
3907
+ })), ke = de.findIndex((function(xe) {
3908
3908
  return xe.id === _;
3909
- }), at = R != null, Ve = [];
3910
- return (w = !te && q ? Se ? "toggle" : "add" : ke !== de.length - 1 || de.length !== 1 ? "replace" : Se ? "toggle" : "replace") != "toggle" || ge || at || q && ue || !(Se && Se.desc && !Ce || !Se.desc && Ce) || (w = "remove"), w === "replace" ? Ve = [{ id: _, desc: at ? R : Ce }] : w === "add" ? (Ve = [].concat(de, [{ id: _, desc: at ? R : Ce }])).splice(0, Ve.length - ae) : w === "toggle" ? Ve = de.map(function(xe) {
3909
+ })), at = R != null, Ve = [];
3910
+ return (w = !te && q ? Se ? "toggle" : "add" : ke !== de.length - 1 || de.length !== 1 ? "replace" : Se ? "toggle" : "replace") != "toggle" || ge || at || q && ue || !(Se && Se.desc && !Ce || !Se.desc && Ce) || (w = "remove"), w === "replace" ? Ve = [{ id: _, desc: at ? R : Ce }] : w === "add" ? (Ve = [].concat(de, [{ id: _, desc: at ? R : Ce }])).splice(0, Ve.length - ae) : w === "toggle" ? Ve = de.map((function(xe) {
3911
3911
  return xe.id === _ ? a({}, xe, { desc: at ? R : !Se.desc }) : xe;
3912
- }) : w === "remove" && (Ve = de.filter(function(xe) {
3912
+ })) : w === "remove" && (Ve = de.filter((function(xe) {
3913
3913
  return xe.id !== _;
3914
- })), a({}, t, { sortBy: Ve });
3914
+ }))), a({}, t, { sortBy: Ve });
3915
3915
  }
3916
3916
  }
3917
3917
  function ea(t) {
3918
3918
  var o = t.data, f = t.rows, p = t.flatRows, w = t.allColumns, _ = t.orderByFn, R = _ === void 0 ? _l : _, q = t.sortTypes, K = t.manualSortBy, te = t.defaultCanSort, ge = t.disableSortBy, ue = t.flatHeaders, fe = t.state.sortBy, ae = t.dispatch, de = t.plugins, Ce = t.getHooks, Se = t.autoResetSortBy, ke = Se === void 0 || Se;
3919
3919
  P(de, ["useFilters", "useGlobalFilter", "useGroupBy", "usePivotColumns"], "useSortBy");
3920
- var at = i.useCallback(function(qe) {
3920
+ var at = i.useCallback((function(qe) {
3921
3921
  ae({ type: h.setSortBy, sortBy: qe });
3922
- }, [ae]), Ve = i.useCallback(function(qe, Ke, Pt) {
3922
+ }), [ae]), Ve = i.useCallback((function(qe, Ke, Pt) {
3923
3923
  ae({ type: h.toggleSortBy, columnId: qe, desc: Ke, multi: Pt });
3924
- }, [ae]), xe = b(t);
3925
- ue.forEach(function(qe) {
3924
+ }), [ae]), xe = b(t);
3925
+ ue.forEach((function(qe) {
3926
3926
  var Ke = qe.accessor, Pt = qe.canSort, et = qe.disableSortBy, Ct = qe.id, r = Ke ? _e(et !== !0 && void 0, ge !== !0 && void 0, !0) : _e(te, Pt, !1);
3927
3927
  qe.canSort = r, qe.canSort && (qe.toggleSortBy = function(c, s) {
3928
3928
  return Ve(qe.id, c, s);
3929
3929
  }, qe.clearSortBy = function() {
3930
3930
  ae({ type: h.clearSortBy, columnId: qe.id });
3931
- }), qe.getSortByToggleProps = W(Ce().getSortByToggleProps, { instance: xe(), column: qe });
3932
- var l = fe.find(function(c) {
3931
+ }), qe.getSortByToggleProps = O(Ce().getSortByToggleProps, { instance: xe(), column: qe });
3932
+ var l = fe.find((function(c) {
3933
3933
  return c.id === Ct;
3934
- });
3935
- qe.isSorted = !!l, qe.sortedIndex = fe.findIndex(function(c) {
3934
+ }));
3935
+ qe.isSorted = !!l, qe.sortedIndex = fe.findIndex((function(c) {
3936
3936
  return c.id === Ct;
3937
- }), qe.isSortedDesc = qe.isSorted ? l.desc : void 0;
3938
- });
3939
- var rt = i.useMemo(function() {
3937
+ })), qe.isSortedDesc = qe.isSorted ? l.desc : void 0;
3938
+ }));
3939
+ var rt = i.useMemo((function() {
3940
3940
  if (K || !fe.length) return [f, p];
3941
- var qe = [], Ke = fe.filter(function(Pt) {
3942
- return w.find(function(et) {
3941
+ var qe = [], Ke = fe.filter((function(Pt) {
3942
+ return w.find((function(et) {
3943
3943
  return et.id === Pt.id;
3944
- });
3945
- });
3946
- return [function Pt(et) {
3947
- var Ct = R(et, Ke.map(function(r) {
3948
- var l = w.find(function(x) {
3944
+ }));
3945
+ }));
3946
+ return [(function Pt(et) {
3947
+ var Ct = R(et, Ke.map((function(r) {
3948
+ var l = w.find((function(x) {
3949
3949
  return x.id === r.id;
3950
- });
3950
+ }));
3951
3951
  if (!l) throw new Error("React-Table: Could not find a column with id: " + r.id + " while sorting");
3952
3952
  var c = l.sortType, s = tt(c) || (q || {})[c] || Xl[c];
3953
3953
  if (!s) throw new Error("React-Table: Could not find a valid sortType of '" + c + "' for column '" + r.id + "'.");
3954
3954
  return function(x, y) {
3955
3955
  return s(x, y, r.id, r.desc);
3956
3956
  };
3957
- }), Ke.map(function(r) {
3958
- var l = w.find(function(c) {
3957
+ })), Ke.map((function(r) {
3958
+ var l = w.find((function(c) {
3959
3959
  return c.id === r.id;
3960
- });
3960
+ }));
3961
3961
  return l && l.sortInverted ? r.desc : !r.desc;
3962
- }));
3963
- return Ct.forEach(function(r) {
3962
+ })));
3963
+ return Ct.forEach((function(r) {
3964
3964
  qe.push(r), r.subRows && r.subRows.length !== 0 && (r.subRows = Pt(r.subRows));
3965
- }), Ct;
3966
- }(f), qe];
3967
- }, [K, fe, f, p, w, R, q]), Ee = rt[0], Je = rt[1], vt = b(ke);
3968
- B(function() {
3965
+ })), Ct;
3966
+ })(f), qe];
3967
+ }), [K, fe, f, p, w, R, q]), Ee = rt[0], Je = rt[1], vt = b(ke);
3968
+ B((function() {
3969
3969
  vt() && ae({ type: h.resetSortBy });
3970
- }, [K ? null : o]), Object.assign(t, { preSortedRows: f, preSortedFlatRows: p, sortedRows: Ee, sortedFlatRows: Je, rows: Ee, flatRows: Je, setSortBy: at, toggleSortBy: Ve });
3970
+ }), [K ? null : o]), Object.assign(t, { preSortedRows: f, preSortedFlatRows: p, sortedRows: Ee, sortedFlatRows: Je, rows: Ee, flatRows: Je, setSortBy: at, toggleSortBy: Ve });
3971
3971
  }
3972
3972
  function _l(t, o, f) {
3973
- return [].concat(t).sort(function(p, w) {
3973
+ return [].concat(t).sort((function(p, w) {
3974
3974
  for (var _ = 0; _ < o.length; _ += 1) {
3975
3975
  var R = o[_], q = f[_] === !1 || f[_] === "desc", K = R(p, w);
3976
3976
  if (K !== 0) return q ? -K : K;
3977
3977
  }
3978
3978
  return f[0] ? p.index - w.index : w.index - p.index;
3979
- });
3979
+ }));
3980
3980
  }
3981
3981
  h.resetPage = "resetPage", h.gotoPage = "gotoPage", h.setPageSize = "setPageSize";
3982
3982
  var Yr = function(t) {
@@ -3998,14 +3998,14 @@ function Ds() {
3998
3998
  var o = t.rows, f = t.autoResetPage, p = f === void 0 || f, w = t.manualExpandedKey, _ = w === void 0 ? "expanded" : w, R = t.plugins, q = t.pageCount, K = t.paginateExpandedRows, te = K === void 0 || K, ge = t.expandSubRows, ue = ge === void 0 || ge, fe = t.state, ae = fe.pageSize, de = fe.pageIndex, Ce = fe.expanded, Se = fe.globalFilter, ke = fe.filters, at = fe.groupBy, Ve = fe.sortBy, xe = t.dispatch, rt = t.data, Ee = t.manualPagination;
3999
3999
  P(R, ["useGlobalFilter", "useFilters", "useGroupBy", "useSortBy", "useExpanded"], "usePagination");
4000
4000
  var Je = b(p);
4001
- B(function() {
4001
+ B((function() {
4002
4002
  Je() && xe({ type: h.resetPage });
4003
- }, [xe, Ee ? null : rt, Se, ke, at, Ve]);
4004
- var vt = Ee ? q : Math.ceil(o.length / ae), qe = i.useMemo(function() {
4005
- return vt > 0 ? [].concat(new Array(vt)).fill(null).map(function(s, x) {
4003
+ }), [xe, Ee ? null : rt, Se, ke, at, Ve]);
4004
+ var vt = Ee ? q : Math.ceil(o.length / ae), qe = i.useMemo((function() {
4005
+ return vt > 0 ? [].concat(new Array(vt)).fill(null).map((function(s, x) {
4006
4006
  return x;
4007
- }) : [];
4008
- }, [vt]), Ke = i.useMemo(function() {
4007
+ })) : [];
4008
+ }), [vt]), Ke = i.useMemo((function() {
4009
4009
  var s;
4010
4010
  if (Ee) s = o;
4011
4011
  else {
@@ -4013,19 +4013,19 @@ function Ds() {
4013
4013
  s = o.slice(x, y);
4014
4014
  }
4015
4015
  return te ? s : X(s, { manualExpandedKey: _, expanded: Ce, expandSubRows: ue });
4016
- }, [ue, Ce, _, Ee, de, ae, te, o]), Pt = de > 0, et = vt === -1 ? Ke.length >= ae : de < vt - 1, Ct = i.useCallback(function(s) {
4016
+ }), [ue, Ce, _, Ee, de, ae, te, o]), Pt = de > 0, et = vt === -1 ? Ke.length >= ae : de < vt - 1, Ct = i.useCallback((function(s) {
4017
4017
  xe({ type: h.gotoPage, pageIndex: s });
4018
- }, [xe]), r = i.useCallback(function() {
4019
- return Ct(function(s) {
4018
+ }), [xe]), r = i.useCallback((function() {
4019
+ return Ct((function(s) {
4020
4020
  return s - 1;
4021
- });
4022
- }, [Ct]), l = i.useCallback(function() {
4023
- return Ct(function(s) {
4021
+ }));
4022
+ }), [Ct]), l = i.useCallback((function() {
4023
+ return Ct((function(s) {
4024
4024
  return s + 1;
4025
- });
4026
- }, [Ct]), c = i.useCallback(function(s) {
4025
+ }));
4026
+ }), [Ct]), c = i.useCallback((function(s) {
4027
4027
  xe({ type: h.setPageSize, pageSize: s });
4028
- }, [xe]);
4028
+ }), [xe]);
4029
4029
  Object.assign(t, { pageOptions: qe, pageCount: vt, page: Ke, canPreviousPage: Pt, canNextPage: et, gotoPage: Ct, previousPage: r, nextPage: l, setPageSize: c });
4030
4030
  }
4031
4031
  Yr.pluginName = "usePagination", h.resetPivot = "resetPivot", h.togglePivot = "togglePivot";
@@ -4044,21 +4044,21 @@ function Ds() {
4044
4044
  if (o.type === h.resetPivot) return a({}, t, { pivotColumns: p.initialState.pivotColumns || yl });
4045
4045
  if (o.type === h.togglePivot) {
4046
4046
  var w = o.columnId, _ = o.value, R = _ !== void 0 ? _ : !t.pivotColumns.includes(w);
4047
- return a({}, t, R ? { pivotColumns: [].concat(t.pivotColumns, [w]) } : { pivotColumns: t.pivotColumns.filter(function(q) {
4047
+ return a({}, t, R ? { pivotColumns: [].concat(t.pivotColumns, [w]) } : { pivotColumns: t.pivotColumns.filter((function(q) {
4048
4048
  return q !== w;
4049
- }) });
4049
+ })) });
4050
4050
  }
4051
4051
  }
4052
4052
  function na(t) {
4053
- t.allColumns.forEach(function(o) {
4053
+ t.allColumns.forEach((function(o) {
4054
4054
  o.isPivotSource = t.state.pivotColumns.includes(o.id);
4055
- });
4055
+ }));
4056
4056
  }
4057
4057
  function ia(t, o) {
4058
4058
  var f = o.instance;
4059
- return t.forEach(function(p) {
4059
+ return t.forEach((function(p) {
4060
4060
  p.isPivotSource = f.state.pivotColumns.includes(p.id), p.uniqueValues = /* @__PURE__ */ new Set();
4061
- }), t;
4061
+ })), t;
4062
4062
  }
4063
4063
  function sa(t, o) {
4064
4064
  var f = o.column;
@@ -4067,28 +4067,28 @@ function Ds() {
4067
4067
  function bl(t, o) {
4068
4068
  var f = o.instance, p = f.allColumns, w = f.state;
4069
4069
  if (!w.pivotColumns.length || !w.groupBy || !w.groupBy.length) return t;
4070
- var _ = w.pivotColumns.map(function(K) {
4071
- return p.find(function(te) {
4070
+ var _ = w.pivotColumns.map((function(K) {
4071
+ return p.find((function(te) {
4072
4072
  return te.id === K;
4073
- });
4074
- }).filter(Boolean), R = p.filter(function(K) {
4073
+ }));
4074
+ })).filter(Boolean), R = p.filter((function(K) {
4075
4075
  return !K.isPivotSource && !w.groupBy.includes(K.id) && !w.pivotColumns.includes(K.id);
4076
- }), q = Y(function K(te, ge, ue) {
4076
+ })), q = Y((function K(te, ge, ue) {
4077
4077
  te === void 0 && (te = 0), ue === void 0 && (ue = []);
4078
4078
  var fe = _[te];
4079
- return fe ? Array.from(fe.uniqueValues).sort().map(function(ae) {
4079
+ return fe ? Array.from(fe.uniqueValues).sort().map((function(ae) {
4080
4080
  var de = a({}, fe, { Header: fe.PivotHeader || typeof fe.header == "string" ? fe.Header + ": " + ae : ae, isPivotGroup: !0, parent: ge, depth: te, id: ge ? ge.id + "." + fe.id + "." + ae : fe.id + "." + ae, pivotValue: ae });
4081
4081
  return de.columns = K(te + 1, de, [].concat(ue, [function(Ce) {
4082
4082
  return Ce.values[fe.id] === ae;
4083
4083
  }])), de;
4084
- }) : R.map(function(ae) {
4084
+ })) : R.map((function(ae) {
4085
4085
  return a({}, ae, { canPivot: !1, isPivoted: !0, parent: ge, depth: te, id: "" + (ge ? ge.id + "." + ae.id : ae.id), accessor: function(de, Ce, Se) {
4086
- if (ue.every(function(ke) {
4086
+ if (ue.every((function(ke) {
4087
4087
  return ke(Se);
4088
- })) return Se.values[ae.id];
4088
+ }))) return Se.values[ae.id];
4089
4089
  } });
4090
- });
4091
- }());
4090
+ }));
4091
+ })());
4092
4092
  return [].concat(t, q);
4093
4093
  }
4094
4094
  function wl(t, o) {
@@ -4097,11 +4097,11 @@ function Ds() {
4097
4097
  }
4098
4098
  function oa(t, o) {
4099
4099
  var f = o.instance.state;
4100
- return t = t.filter(function(p) {
4100
+ return t = t.filter((function(p) {
4101
4101
  return !p.isPivotSource;
4102
- }), f.pivotColumns.length && f.groupBy && f.groupBy.length && (t = t.filter(function(p) {
4102
+ })), f.pivotColumns.length && f.groupBy && f.groupBy.length && (t = t.filter((function(p) {
4103
4103
  return p.isGrouped || p.isPivoted;
4104
- })), t;
4104
+ }))), t;
4105
4105
  }
4106
4106
  function ca(t, o) {
4107
4107
  var f = o.instance;
@@ -4111,25 +4111,25 @@ function Ds() {
4111
4111
  var o = t.columns, f = t.allColumns, p = t.flatHeaders, w = t.getHooks, _ = t.plugins, R = t.dispatch, q = t.autoResetPivot, K = q === void 0 || q, te = t.manaulPivot, ge = t.disablePivot, ue = t.defaultCanPivot;
4112
4112
  P(_, ["useGroupBy"], "usePivotColumns");
4113
4113
  var fe = b(t);
4114
- f.forEach(function(de) {
4114
+ f.forEach((function(de) {
4115
4115
  var Ce = de.accessor, Se = de.defaultPivot, ke = de.disablePivot;
4116
4116
  de.canPivot = Ce ? _e(de.canPivot, ke !== !0 && void 0, ge !== !0 && void 0, !0) : _e(de.canPivot, Se, ue, !1), de.canPivot && (de.togglePivot = function() {
4117
4117
  return t.togglePivot(de.id);
4118
4118
  }), de.Aggregated = de.Aggregated || de.Cell;
4119
- }), p.forEach(function(de) {
4120
- de.getPivotToggleProps = W(w().getPivotToggleProps, { instance: fe(), header: de });
4121
- });
4119
+ })), p.forEach((function(de) {
4120
+ de.getPivotToggleProps = O(w().getPivotToggleProps, { instance: fe(), header: de });
4121
+ }));
4122
4122
  var ae = b(K);
4123
- B(function() {
4123
+ B((function() {
4124
4124
  ae() && R({ type: h.resetPivot });
4125
- }, [R, te ? null : o]), Object.assign(t, { togglePivot: function(de, Ce) {
4125
+ }), [R, te ? null : o]), Object.assign(t, { togglePivot: function(de, Ce) {
4126
4126
  R({ type: h.togglePivot, columnId: de, value: Ce });
4127
4127
  } });
4128
4128
  }
4129
4129
  function ua(t) {
4130
- t.allCells.forEach(function(o) {
4130
+ t.allCells.forEach((function(o) {
4131
4131
  o.isPivoted = o.column.isPivoted;
4132
- });
4132
+ }));
4133
4133
  }
4134
4134
  h.resetSelectedRows = "resetSelectedRows", h.toggleAllRowsSelected = "toggleAllRowsSelected", h.toggleRowSelected = "toggleRowSelected", h.toggleAllPageRowsSelected = "toggleAllPageRowsSelected";
4135
4135
  var Cl = function(t) {
@@ -4150,90 +4150,90 @@ function Ds() {
4150
4150
  var f = o.instance;
4151
4151
  return [t, { onChange: function(p) {
4152
4152
  f.toggleAllPageRowsSelected(p.target.checked);
4153
- }, style: { cursor: "pointer" }, checked: f.isAllPageRowsSelected, title: "Toggle All Current Page Rows Selected", indeterminate: !!(!f.isAllPageRowsSelected && f.page.some(function(p) {
4153
+ }, style: { cursor: "pointer" }, checked: f.isAllPageRowsSelected, title: "Toggle All Current Page Rows Selected", indeterminate: !!(!f.isAllPageRowsSelected && f.page.some((function(p) {
4154
4154
  var w = p.id;
4155
4155
  return f.state.selectedRowIds[w];
4156
- })) }];
4156
+ }))) }];
4157
4157
  };
4158
4158
  function fa(t, o, f, p) {
4159
4159
  if (o.type === h.init) return a({ selectedRowIds: {} }, t);
4160
4160
  if (o.type === h.resetSelectedRows) return a({}, t, { selectedRowIds: p.initialState.selectedRowIds || {} });
4161
4161
  if (o.type === h.toggleAllRowsSelected) {
4162
4162
  var w = o.value, _ = p.isAllRowsSelected, R = p.rowsById, q = p.nonGroupedRowsById, K = q === void 0 ? R : q, te = w !== void 0 ? w : !_, ge = Object.assign({}, t.selectedRowIds);
4163
- return te ? Object.keys(K).forEach(function(Ct) {
4163
+ return te ? Object.keys(K).forEach((function(Ct) {
4164
4164
  ge[Ct] = !0;
4165
- }) : Object.keys(K).forEach(function(Ct) {
4165
+ })) : Object.keys(K).forEach((function(Ct) {
4166
4166
  delete ge[Ct];
4167
- }), a({}, t, { selectedRowIds: ge });
4167
+ })), a({}, t, { selectedRowIds: ge });
4168
4168
  }
4169
4169
  if (o.type === h.toggleRowSelected) {
4170
4170
  var ue = o.id, fe = o.value, ae = p.rowsById, de = p.selectSubRows, Ce = de === void 0 || de, Se = p.getSubRows, ke = t.selectedRowIds[ue], at = fe !== void 0 ? fe : !ke;
4171
4171
  if (ke === at) return t;
4172
4172
  var Ve = a({}, t.selectedRowIds);
4173
- return function Ct(r) {
4173
+ return (function Ct(r) {
4174
4174
  var l = ae[r];
4175
- if (l && (l.isGrouped || (at ? Ve[r] = !0 : delete Ve[r]), Ce && Se(l))) return Se(l).forEach(function(c) {
4175
+ if (l && (l.isGrouped || (at ? Ve[r] = !0 : delete Ve[r]), Ce && Se(l))) return Se(l).forEach((function(c) {
4176
4176
  return Ct(c.id);
4177
- });
4178
- }(ue), a({}, t, { selectedRowIds: Ve });
4177
+ }));
4178
+ })(ue), a({}, t, { selectedRowIds: Ve });
4179
4179
  }
4180
4180
  if (o.type === h.toggleAllPageRowsSelected) {
4181
4181
  var xe = o.value, rt = p.page, Ee = p.rowsById, Je = p.selectSubRows, vt = Je === void 0 || Je, qe = p.isAllPageRowsSelected, Ke = p.getSubRows, Pt = xe !== void 0 ? xe : !qe, et = a({}, t.selectedRowIds);
4182
- return rt.forEach(function(Ct) {
4183
- return function r(l) {
4182
+ return rt.forEach((function(Ct) {
4183
+ return (function r(l) {
4184
4184
  var c = Ee[l];
4185
- if (c.isGrouped || (Pt ? et[l] = !0 : delete et[l]), vt && Ke(c)) return Ke(c).forEach(function(s) {
4185
+ if (c.isGrouped || (Pt ? et[l] = !0 : delete et[l]), vt && Ke(c)) return Ke(c).forEach((function(s) {
4186
4186
  return r(s.id);
4187
- });
4188
- }(Ct.id);
4189
- }), a({}, t, { selectedRowIds: et });
4187
+ }));
4188
+ })(Ct.id);
4189
+ })), a({}, t, { selectedRowIds: et });
4190
4190
  }
4191
4191
  return t;
4192
4192
  }
4193
4193
  function jl(t) {
4194
4194
  var o = t.data, f = t.rows, p = t.getHooks, w = t.plugins, _ = t.rowsById, R = t.nonGroupedRowsById, q = R === void 0 ? _ : R, K = t.autoResetSelectedRows, te = K === void 0 || K, ge = t.state.selectedRowIds, ue = t.selectSubRows, fe = ue === void 0 || ue, ae = t.dispatch, de = t.page, Ce = t.getSubRows;
4195
4195
  P(w, ["useFilters", "useGroupBy", "useSortBy", "useExpanded", "usePagination"], "useRowSelect");
4196
- var Se = i.useMemo(function() {
4196
+ var Se = i.useMemo((function() {
4197
4197
  var Ke = [];
4198
- return f.forEach(function(Pt) {
4199
- var et = fe ? function Ct(r, l, c) {
4198
+ return f.forEach((function(Pt) {
4199
+ var et = fe ? (function Ct(r, l, c) {
4200
4200
  if (l[r.id]) return !0;
4201
4201
  var s = c(r);
4202
4202
  if (s && s.length) {
4203
4203
  var x = !0, y = !1;
4204
- return s.forEach(function(m) {
4204
+ return s.forEach((function(m) {
4205
4205
  y && !x || (Ct(m, l, c) ? y = !0 : x = !1);
4206
- }), !!x || !!y && null;
4206
+ })), !!x || !!y && null;
4207
4207
  }
4208
4208
  return !1;
4209
- }(Pt, ge, Ce) : !!ge[Pt.id];
4209
+ })(Pt, ge, Ce) : !!ge[Pt.id];
4210
4210
  Pt.isSelected = !!et, Pt.isSomeSelected = et === null, et && Ke.push(Pt);
4211
- }), Ke;
4212
- }, [f, fe, ge, Ce]), ke = !!(Object.keys(q).length && Object.keys(ge).length), at = ke;
4213
- ke && Object.keys(q).some(function(Ke) {
4211
+ })), Ke;
4212
+ }), [f, fe, ge, Ce]), ke = !!(Object.keys(q).length && Object.keys(ge).length), at = ke;
4213
+ ke && Object.keys(q).some((function(Ke) {
4214
4214
  return !ge[Ke];
4215
- }) && (ke = !1), ke || de && de.length && de.some(function(Ke) {
4215
+ })) && (ke = !1), ke || de && de.length && de.some((function(Ke) {
4216
4216
  var Pt = Ke.id;
4217
4217
  return !ge[Pt];
4218
- }) && (at = !1);
4218
+ })) && (at = !1);
4219
4219
  var Ve = b(te);
4220
- B(function() {
4220
+ B((function() {
4221
4221
  Ve() && ae({ type: h.resetSelectedRows });
4222
- }, [ae, o]);
4223
- var xe = i.useCallback(function(Ke) {
4222
+ }), [ae, o]);
4223
+ var xe = i.useCallback((function(Ke) {
4224
4224
  return ae({ type: h.toggleAllRowsSelected, value: Ke });
4225
- }, [ae]), rt = i.useCallback(function(Ke) {
4225
+ }), [ae]), rt = i.useCallback((function(Ke) {
4226
4226
  return ae({ type: h.toggleAllPageRowsSelected, value: Ke });
4227
- }, [ae]), Ee = i.useCallback(function(Ke, Pt) {
4227
+ }), [ae]), Ee = i.useCallback((function(Ke, Pt) {
4228
4228
  return ae({ type: h.toggleRowSelected, id: Ke, value: Pt });
4229
- }, [ae]), Je = b(t), vt = W(p().getToggleAllRowsSelectedProps, { instance: Je() }), qe = W(p().getToggleAllPageRowsSelectedProps, { instance: Je() });
4229
+ }), [ae]), Je = b(t), vt = O(p().getToggleAllRowsSelectedProps, { instance: Je() }), qe = O(p().getToggleAllPageRowsSelectedProps, { instance: Je() });
4230
4230
  Object.assign(t, { selectedFlatRows: Se, isAllRowsSelected: ke, isAllPageRowsSelected: at, toggleRowSelected: Ee, toggleAllRowsSelected: xe, getToggleAllRowsSelectedProps: vt, getToggleAllPageRowsSelectedProps: qe, toggleAllPageRowsSelected: rt });
4231
4231
  }
4232
4232
  function ha(t, o) {
4233
4233
  var f = o.instance;
4234
4234
  t.toggleRowSelected = function(p) {
4235
4235
  return f.toggleRowSelected(t.id, p);
4236
- }, t.getToggleRowSelectedProps = W(f.getHooks().getToggleRowSelectedProps, { instance: f, row: t });
4236
+ }, t.getToggleRowSelectedProps = O(f.getHooks().getToggleRowSelectedProps, { instance: f, row: t });
4237
4237
  }
4238
4238
  var Pl = function(t) {
4239
4239
  return {};
@@ -4253,38 +4253,38 @@ function Ds() {
4253
4253
  return a({}, t, { rowState: a({}, t.rowState, (te = {}, te[ge] = T(ue, fe), te)) });
4254
4254
  }
4255
4255
  if (o.type === h.setCellState) {
4256
- var ae, de, Ce, Se, ke, at = o.rowId, Ve = o.columnId, xe = o.value, rt = t.rowState[at] !== void 0 ? t.rowState[at] : _(K[at]), Ee = (rt == null || (ae = rt.cellState) == null ? void 0 : ae[Ve]) !== void 0 ? rt.cellState[Ve] : q((de = K[at]) == null || (Ce = de.cells) == null ? void 0 : Ce.find(function(Je) {
4256
+ var ae, de, Ce, Se, ke, at = o.rowId, Ve = o.columnId, xe = o.value, rt = t.rowState[at] !== void 0 ? t.rowState[at] : _(K[at]), Ee = (rt == null || (ae = rt.cellState) == null ? void 0 : ae[Ve]) !== void 0 ? rt.cellState[Ve] : q((de = K[at]) == null || (Ce = de.cells) == null ? void 0 : Ce.find((function(Je) {
4257
4257
  return Je.column.id === Ve;
4258
- }));
4258
+ })));
4259
4259
  return a({}, t, { rowState: a({}, t.rowState, (ke = {}, ke[at] = a({}, rt, { cellState: a({}, rt.cellState || {}, (Se = {}, Se[Ve] = T(xe, Ee), Se)) }), ke)) });
4260
4260
  }
4261
4261
  }
4262
4262
  function Nl(t) {
4263
- var o = t.autoResetRowState, f = o === void 0 || o, p = t.data, w = t.dispatch, _ = i.useCallback(function(K, te) {
4263
+ var o = t.autoResetRowState, f = o === void 0 || o, p = t.data, w = t.dispatch, _ = i.useCallback((function(K, te) {
4264
4264
  return w({ type: h.setRowState, rowId: K, value: te });
4265
- }, [w]), R = i.useCallback(function(K, te, ge) {
4265
+ }), [w]), R = i.useCallback((function(K, te, ge) {
4266
4266
  return w({ type: h.setCellState, rowId: K, columnId: te, value: ge });
4267
- }, [w]), q = b(f);
4268
- B(function() {
4267
+ }), [w]), q = b(f);
4268
+ B((function() {
4269
4269
  q() && w({ type: h.resetRowState });
4270
- }, [p]), Object.assign(t, { setRowState: _, setCellState: R });
4270
+ }), [p]), Object.assign(t, { setRowState: _, setCellState: R });
4271
4271
  }
4272
4272
  function ma(t, o) {
4273
4273
  var f = o.instance, p = f.initialRowStateAccessor, w = p === void 0 ? Pl : p, _ = f.initialCellStateAccessor, R = _ === void 0 ? Sl : _, q = f.state.rowState;
4274
4274
  t && (t.state = q[t.id] !== void 0 ? q[t.id] : w(t), t.setState = function(K) {
4275
4275
  return f.setRowState(t.id, K);
4276
- }, t.cells.forEach(function(K) {
4276
+ }, t.cells.forEach((function(K) {
4277
4277
  t.state.cellState || (t.state.cellState = {}), K.state = t.state.cellState[K.column.id] !== void 0 ? t.state.cellState[K.column.id] : R(K), K.setState = function(te) {
4278
4278
  return f.setCellState(t.id, K.column.id, te);
4279
4279
  };
4280
- }));
4280
+ })));
4281
4281
  }
4282
4282
  Ur.pluginName = "useRowState", h.resetColumnOrder = "resetColumnOrder", h.setColumnOrder = "setColumnOrder";
4283
4283
  var Dl = function(t) {
4284
- t.stateReducers.push(Al), t.visibleColumnsDeps.push(function(o, f) {
4284
+ t.stateReducers.push(Al), t.visibleColumnsDeps.push((function(o, f) {
4285
4285
  var p = f.instance;
4286
4286
  return [].concat(o, [p.state.columnOrder]);
4287
- }), t.visibleColumns.push(Il), t.useInstance.push(ga);
4287
+ })), t.visibleColumns.push(Il), t.useInstance.push(ga);
4288
4288
  };
4289
4289
  function Al(t, o, f, p) {
4290
4290
  return o.type === h.init ? a({ columnOrder: [] }, t) : o.type === h.resetColumnOrder ? a({}, t, { columnOrder: p.initialState.columnOrder || [] }) : o.type === h.setColumnOrder ? a({}, t, { columnOrder: T(o.columnOrder, t.columnOrder) }) : void 0;
@@ -4293,18 +4293,18 @@ function Ds() {
4293
4293
  var f = o.instance.state.columnOrder;
4294
4294
  if (!f || !f.length) return t;
4295
4295
  for (var p = [].concat(f), w = [].concat(t), _ = [], R = function() {
4296
- var q = p.shift(), K = w.findIndex(function(te) {
4296
+ var q = p.shift(), K = w.findIndex((function(te) {
4297
4297
  return te.id === q;
4298
- });
4298
+ }));
4299
4299
  K > -1 && _.push(w.splice(K, 1)[0]);
4300
4300
  }; w.length && p.length; ) R();
4301
4301
  return [].concat(_, w);
4302
4302
  }
4303
4303
  function ga(t) {
4304
4304
  var o = t.dispatch;
4305
- t.setColumnOrder = i.useCallback(function(f) {
4305
+ t.setColumnOrder = i.useCallback((function(f) {
4306
4306
  return o({ type: h.setColumnOrder, columnOrder: f });
4307
- }, [o]);
4307
+ }), [o]);
4308
4308
  }
4309
4309
  Dl.pluginName = "useColumnOrder", L.canResize = !0, h.columnStartResizing = "columnStartResizing", h.columnResizing = "columnResizing", h.columnDoneResizing = "columnDoneResizing", h.resetResize = "resetResize";
4310
4310
  var Tl = function(t) {
@@ -4316,14 +4316,14 @@ function Ds() {
4316
4316
  if (R.touches && R.touches.length > 1) return;
4317
4317
  K = !0;
4318
4318
  }
4319
- var te, ge, ue = function(Ve) {
4319
+ var te, ge, ue = (function(Ve) {
4320
4320
  var xe = [];
4321
- return function rt(Ee) {
4321
+ return (function rt(Ee) {
4322
4322
  Ee.columns && Ee.columns.length && Ee.columns.map(rt), xe.push(Ee);
4323
- }(Ve), xe;
4324
- }(q).map(function(Ve) {
4323
+ })(Ve), xe;
4324
+ })(q).map((function(Ve) {
4325
4325
  return [Ve.id, Ve.totalWidth];
4326
- }), fe = K ? Math.round(R.touches[0].clientX) : R.clientX, ae = function() {
4326
+ })), fe = K ? Math.round(R.touches[0].clientX) : R.clientX, ae = function() {
4327
4327
  window.cancelAnimationFrame(te), te = null, w({ type: h.columnDoneResizing });
4328
4328
  }, de = function() {
4329
4329
  window.cancelAnimationFrame(te), te = null, w({ type: h.columnResizing, clientX: ge });
@@ -4337,7 +4337,7 @@ function Ds() {
4337
4337
  return Ve.cancelable && (Ve.preventDefault(), Ve.stopPropagation()), Ce(Ve.touches[0].clientX), !1;
4338
4338
  }, upEvent: "touchend", upHandler: function(Ve) {
4339
4339
  document.removeEventListener(Se.touch.moveEvent, Se.touch.moveHandler), document.removeEventListener(Se.touch.upEvent, Se.touch.moveHandler), ae();
4340
- } } }, ke = K ? Se.touch : Se.mouse, at = !!function() {
4340
+ } } }, ke = K ? Se.touch : Se.mouse, at = !!(function() {
4341
4341
  if (typeof Fe == "boolean") return Fe;
4342
4342
  var Ve = !1;
4343
4343
  try {
@@ -4349,7 +4349,7 @@ function Ds() {
4349
4349
  Ve = !1;
4350
4350
  }
4351
4351
  return Fe = Ve;
4352
- }() && { passive: !1 };
4352
+ })() && { passive: !1 };
4353
4353
  document.addEventListener(ke.moveEvent, ke.moveHandler, at), document.addEventListener(ke.upEvent, ke.upHandler, at), w({ type: h.columnStartResizing, columnId: q.id, columnWidth: q.totalWidth, headerIdWidths: ue, clientX: fe });
4354
4354
  };
4355
4355
  return [t, { onMouseDown: function(R) {
@@ -4367,44 +4367,44 @@ function Ds() {
4367
4367
  }
4368
4368
  if (o.type === h.columnResizing) {
4369
4369
  var R = o.clientX, q = t.columnResizing, K = q.startX, te = q.columnWidth, ge = q.headerIdWidths, ue = (R - K) / te, fe = {};
4370
- return (ge === void 0 ? [] : ge).forEach(function(ae) {
4370
+ return (ge === void 0 ? [] : ge).forEach((function(ae) {
4371
4371
  var de = ae[0], Ce = ae[1];
4372
4372
  fe[de] = Math.max(Ce + Ce * ue, 0);
4373
- }), a({}, t, { columnResizing: a({}, t.columnResizing, { columnWidths: a({}, t.columnResizing.columnWidths, {}, fe) }) });
4373
+ })), a({}, t, { columnResizing: a({}, t.columnResizing, { columnWidths: a({}, t.columnResizing.columnWidths, {}, fe) }) });
4374
4374
  }
4375
4375
  return o.type === h.columnDoneResizing ? a({}, t, { columnResizing: a({}, t.columnResizing, { startX: null, isResizingColumn: null }) }) : void 0;
4376
4376
  }
4377
4377
  Tl.pluginName = "useResizeColumns";
4378
4378
  var _a = function(t) {
4379
4379
  var o = t.flatHeaders, f = t.disableResizing, p = t.getHooks, w = t.state.columnResizing, _ = b(t);
4380
- o.forEach(function(R) {
4380
+ o.forEach((function(R) {
4381
4381
  var q = _e(R.disableResizing !== !0 && void 0, f !== !0 && void 0, !0);
4382
- R.canResize = q, R.width = w.columnWidths[R.id] || R.originalWidth || R.width, R.isResizing = w.isResizingColumn === R.id, q && (R.getResizerProps = W(p().getResizerProps, { instance: _(), header: R }));
4383
- });
4382
+ R.canResize = q, R.width = w.columnWidths[R.id] || R.originalWidth || R.width, R.isResizing = w.isResizingColumn === R.id, q && (R.getResizerProps = O(p().getResizerProps, { instance: _(), header: R }));
4383
+ }));
4384
4384
  };
4385
4385
  function ya(t) {
4386
4386
  var o = t.plugins, f = t.dispatch, p = t.autoResetResize, w = p === void 0 || p, _ = t.columns;
4387
4387
  P(o, ["useAbsoluteLayout"], "useResizeColumns");
4388
4388
  var R = b(w);
4389
- B(function() {
4389
+ B((function() {
4390
4390
  R() && f({ type: h.resetResize });
4391
- }, [_]);
4392
- var q = i.useCallback(function() {
4391
+ }), [_]);
4392
+ var q = i.useCallback((function() {
4393
4393
  return f({ type: h.resetResize });
4394
- }, [f]);
4394
+ }), [f]);
4395
4395
  Object.assign(t, { resetResizing: q });
4396
4396
  }
4397
4397
  var Zr = { position: "absolute", top: 0 }, Bl = function(t) {
4398
- t.getTableBodyProps.push(kr), t.getRowProps.push(kr), t.getHeaderGroupProps.push(kr), t.getFooterGroupProps.push(kr), t.getHeaderProps.push(function(o, f) {
4398
+ t.getTableBodyProps.push(kr), t.getRowProps.push(kr), t.getHeaderGroupProps.push(kr), t.getFooterGroupProps.push(kr), t.getHeaderProps.push((function(o, f) {
4399
4399
  var p = f.column;
4400
4400
  return [o, { style: a({}, Zr, { left: p.totalLeft + "px", width: p.totalWidth + "px" }) }];
4401
- }), t.getCellProps.push(function(o, f) {
4401
+ })), t.getCellProps.push((function(o, f) {
4402
4402
  var p = f.cell;
4403
4403
  return [o, { style: a({}, Zr, { left: p.column.totalLeft + "px", width: p.column.totalWidth + "px" }) }];
4404
- }), t.getFooterProps.push(function(o, f) {
4404
+ })), t.getFooterProps.push((function(o, f) {
4405
4405
  var p = f.column;
4406
4406
  return [o, { style: a({}, Zr, { left: p.totalLeft + "px", width: p.totalWidth + "px" }) }];
4407
- });
4407
+ }));
4408
4408
  };
4409
4409
  Bl.pluginName = "useAbsoluteLayout";
4410
4410
  var kr = function(t, o) {
@@ -4412,16 +4412,16 @@ function Ds() {
4412
4412
  }, Kr = { display: "inline-block", boxSizing: "border-box" }, Xr = function(t, o) {
4413
4413
  return [t, { style: { display: "flex", width: o.instance.totalColumnsWidth + "px" } }];
4414
4414
  }, Gl = function(t) {
4415
- t.getRowProps.push(Xr), t.getHeaderGroupProps.push(Xr), t.getFooterGroupProps.push(Xr), t.getHeaderProps.push(function(o, f) {
4415
+ t.getRowProps.push(Xr), t.getHeaderGroupProps.push(Xr), t.getFooterGroupProps.push(Xr), t.getHeaderProps.push((function(o, f) {
4416
4416
  var p = f.column;
4417
4417
  return [o, { style: a({}, Kr, { width: p.totalWidth + "px" }) }];
4418
- }), t.getCellProps.push(function(o, f) {
4418
+ })), t.getCellProps.push((function(o, f) {
4419
4419
  var p = f.cell;
4420
4420
  return [o, { style: a({}, Kr, { width: p.column.totalWidth + "px" }) }];
4421
- }), t.getFooterProps.push(function(o, f) {
4421
+ })), t.getFooterProps.push((function(o, f) {
4422
4422
  var p = f.column;
4423
4423
  return [o, { style: a({}, Kr, { width: p.totalWidth + "px" }) }];
4424
- });
4424
+ }));
4425
4425
  };
4426
4426
  function Jr(t) {
4427
4427
  t.getTableProps.push(ba), t.getRowProps.push(Qr), t.getHeaderGroupProps.push(Qr), t.getFooterGroupProps.push(Qr), t.getHeaderProps.push(wa), t.getCellProps.push(Ca), t.getFooterProps.push(Ra);
@@ -4447,10 +4447,10 @@ function Ds() {
4447
4447
  h.columnStartResizing = "columnStartResizing", h.columnResizing = "columnResizing", h.columnDoneResizing = "columnDoneResizing", h.resetResize = "resetResize", El.pluginName = "useGridLayout";
4448
4448
  var Fl = function(t, o) {
4449
4449
  var f = o.instance;
4450
- return [t, { style: { display: "grid", gridTemplateColumns: f.visibleColumns.map(function(p) {
4450
+ return [t, { style: { display: "grid", gridTemplateColumns: f.visibleColumns.map((function(p) {
4451
4451
  var w;
4452
4452
  return f.state.gridLayout.columnWidths[p.id] ? f.state.gridLayout.columnWidths[p.id] + "px" : (w = f.state.columnResizing) != null && w.isResizingColumn ? f.state.gridLayout.startWidths[p.id] + "px" : typeof p.width == "number" ? p.width + "px" : p.width;
4453
- }).join(" ") } }];
4453
+ })).join(" ") } }];
4454
4454
  }, Ml = function(t, o) {
4455
4455
  var f = o.column;
4456
4456
  return [t, { id: "header-cell-" + f.id, style: { position: "sticky", gridColumn: "span " + f.totalVisibleHeaderCount } }];
@@ -4464,29 +4464,29 @@ function Ds() {
4464
4464
  if (o.type === h.columnStartResizing) {
4465
4465
  var w = o.columnId, _ = o.headerIdWidths, R = el(w);
4466
4466
  if (R !== void 0) {
4467
- var q = p.visibleColumns.reduce(function(xe, rt) {
4467
+ var q = p.visibleColumns.reduce((function(xe, rt) {
4468
4468
  var Ee;
4469
4469
  return a({}, xe, ((Ee = {})[rt.id] = el(rt.id), Ee));
4470
- }, {}), K = p.visibleColumns.reduce(function(xe, rt) {
4470
+ }), {}), K = p.visibleColumns.reduce((function(xe, rt) {
4471
4471
  var Ee;
4472
4472
  return a({}, xe, ((Ee = {})[rt.id] = rt.minWidth, Ee));
4473
- }, {}), te = p.visibleColumns.reduce(function(xe, rt) {
4473
+ }), {}), te = p.visibleColumns.reduce((function(xe, rt) {
4474
4474
  var Ee;
4475
4475
  return a({}, xe, ((Ee = {})[rt.id] = rt.maxWidth, Ee));
4476
- }, {}), ge = _.map(function(xe) {
4476
+ }), {}), ge = _.map((function(xe) {
4477
4477
  var rt = xe[0];
4478
4478
  return [rt, el(rt)];
4479
- });
4479
+ }));
4480
4480
  return a({}, t, { gridLayout: a({}, t.gridLayout, { startWidths: q, minWidths: K, maxWidths: te, headerIdGridWidths: ge, columnWidth: R }) });
4481
4481
  }
4482
4482
  return t;
4483
4483
  }
4484
4484
  if (o.type === h.columnResizing) {
4485
4485
  var ue = o.clientX, fe = t.columnResizing.startX, ae = t.gridLayout, de = ae.columnWidth, Ce = ae.minWidths, Se = ae.maxWidths, ke = ae.headerIdGridWidths, at = (ue - fe) / de, Ve = {};
4486
- return (ke === void 0 ? [] : ke).forEach(function(xe) {
4486
+ return (ke === void 0 ? [] : ke).forEach((function(xe) {
4487
4487
  var rt = xe[0], Ee = xe[1];
4488
4488
  Ve[rt] = Math.min(Math.max(Ce[rt], Ee + Ee * at), Se[rt]);
4489
- }), a({}, t, { gridLayout: a({}, t.gridLayout, { columnWidths: a({}, t.gridLayout.columnWidths, {}, Ve) }) });
4489
+ })), a({}, t, { gridLayout: a({}, t.gridLayout, { columnWidths: a({}, t.gridLayout.columnWidths, {}, Ve) }) });
4490
4490
  }
4491
4491
  return o.type === h.columnDoneResizing ? a({}, t, { gridLayout: a({}, t.gridLayout, { startWidths: {}, minWidths: {}, maxWidths: {} }) }) : void 0;
4492
4492
  }
@@ -4494,20 +4494,20 @@ function Ds() {
4494
4494
  var o, f = (o = document.getElementById("header-cell-" + t)) == null ? void 0 : o.offsetWidth;
4495
4495
  if (f !== void 0) return f;
4496
4496
  }
4497
- d._UNSTABLE_usePivotColumns = qr, d.actions = h, d.defaultColumn = L, d.defaultGroupByFn = ml, d.defaultOrderByFn = _l, d.defaultRenderer = k, d.emptyRenderer = g, d.ensurePluginOrder = P, d.flexRender = z, d.functionalUpdate = T, d.loopHooks = D, d.makePropGetter = W, d.makeRenderer = H, d.reduceHooks = I, d.safeUseLayoutEffect = ee, d.useAbsoluteLayout = Bl, d.useAsyncDebounce = function(t, o) {
4497
+ d._UNSTABLE_usePivotColumns = qr, d.actions = h, d.defaultColumn = L, d.defaultGroupByFn = ml, d.defaultOrderByFn = _l, d.defaultRenderer = k, d.emptyRenderer = g, d.ensurePluginOrder = P, d.flexRender = z, d.functionalUpdate = T, d.loopHooks = D, d.makePropGetter = O, d.makeRenderer = H, d.reduceHooks = I, d.safeUseLayoutEffect = ee, d.useAbsoluteLayout = Bl, d.useAsyncDebounce = function(t, o) {
4498
4498
  o === void 0 && (o = 0);
4499
4499
  var f = i.useRef({}), p = b(t), w = b(o);
4500
- return i.useCallback(function() {
4501
- var _ = C(regeneratorRuntime.mark(function R() {
4500
+ return i.useCallback((function() {
4501
+ var _ = C(regeneratorRuntime.mark((function R() {
4502
4502
  var q, K, te, ge = arguments;
4503
- return regeneratorRuntime.wrap(function(ue) {
4503
+ return regeneratorRuntime.wrap((function(ue) {
4504
4504
  for (; ; ) switch (ue.prev = ue.next) {
4505
4505
  case 0:
4506
4506
  for (q = ge.length, K = new Array(q), te = 0; te < q; te++) K[te] = ge[te];
4507
- return f.current.promise || (f.current.promise = new Promise(function(fe, ae) {
4507
+ return f.current.promise || (f.current.promise = new Promise((function(fe, ae) {
4508
4508
  f.current.resolve = fe, f.current.reject = ae;
4509
- })), f.current.timeout && clearTimeout(f.current.timeout), f.current.timeout = setTimeout(C(regeneratorRuntime.mark(function fe() {
4510
- return regeneratorRuntime.wrap(function(ae) {
4509
+ }))), f.current.timeout && clearTimeout(f.current.timeout), f.current.timeout = setTimeout(C(regeneratorRuntime.mark((function fe() {
4510
+ return regeneratorRuntime.wrap((function(ae) {
4511
4511
  for (; ; ) switch (ae.prev = ae.next) {
4512
4512
  case 0:
4513
4513
  return delete f.current.timeout, ae.prev = 1, ae.t0 = f.current, ae.next = 5, p().apply(void 0, K);
@@ -4522,118 +4522,118 @@ function Ds() {
4522
4522
  case "end":
4523
4523
  return ae.stop();
4524
4524
  }
4525
- }, fe, null, [[1, 9, 12, 15]]);
4526
- })), w()), ue.abrupt("return", f.current.promise);
4525
+ }), fe, null, [[1, 9, 12, 15]]);
4526
+ }))), w()), ue.abrupt("return", f.current.promise);
4527
4527
  case 5:
4528
4528
  case "end":
4529
4529
  return ue.stop();
4530
4530
  }
4531
- }, R);
4532
- }));
4531
+ }), R);
4532
+ })));
4533
4533
  return function() {
4534
4534
  return _.apply(this, arguments);
4535
4535
  };
4536
- }(), [p, w]);
4536
+ })(), [p, w]);
4537
4537
  }, d.useBlockLayout = Gl, d.useColumnOrder = Dl, d.useExpanded = fr, d.useFilters = Ut, d.useFlexLayout = Jr, d.useGetLatest = b, d.useGlobalFilter = ve, d.useGridLayout = El, d.useGroupBy = zr, d.useMountedLayoutEffect = B, d.usePagination = Yr, d.useResizeColumns = Tl, d.useRowSelect = Cl, d.useRowState = Ur, d.useSortBy = vl, d.useTable = function(t) {
4538
4538
  for (var o = arguments.length, f = new Array(o > 1 ? o - 1 : 0), p = 1; p < o; p++) f[p - 1] = arguments[p];
4539
4539
  t = Vt(t), f = [Ie].concat(f);
4540
4540
  var w = i.useRef({}), _ = b(w.current);
4541
- Object.assign(_(), a({}, t, { plugins: f, hooks: G() })), f.filter(Boolean).forEach(function(m) {
4541
+ Object.assign(_(), a({}, t, { plugins: f, hooks: G() })), f.filter(Boolean).forEach((function(m) {
4542
4542
  m(_().hooks);
4543
- });
4543
+ }));
4544
4544
  var R = b(_().hooks);
4545
4545
  _().getHooks = R, delete _().hooks, Object.assign(_(), I(R().useOptions, Vt(t)));
4546
- var q = _(), K = q.data, te = q.columns, ge = q.initialState, ue = q.defaultColumn, fe = q.getSubRows, ae = q.getRowId, de = q.stateReducer, Ce = q.useControlledState, Se = b(de), ke = i.useCallback(function(m, j) {
4546
+ var q = _(), K = q.data, te = q.columns, ge = q.initialState, ue = q.defaultColumn, fe = q.getSubRows, ae = q.getRowId, de = q.stateReducer, Ce = q.useControlledState, Se = b(de), ke = i.useCallback((function(m, j) {
4547
4547
  if (!j.type) throw console.info({ action: j }), new Error("Unknown Action 👆");
4548
- return [].concat(R().stateReducers, Array.isArray(Se()) ? Se() : [Se()]).reduce(function(F, $) {
4548
+ return [].concat(R().stateReducers, Array.isArray(Se()) ? Se() : [Se()]).reduce((function(F, $) {
4549
4549
  return $(F, j, m, _()) || F;
4550
- }, m);
4551
- }, [R, Se, _]), at = i.useReducer(ke, void 0, function() {
4550
+ }), m);
4551
+ }), [R, Se, _]), at = i.useReducer(ke, void 0, (function() {
4552
4552
  return ke(ge, { type: h.init });
4553
- }), Ve = at[0], xe = at[1], rt = I([].concat(R().useControlledState, [Ce]), Ve, { instance: _() });
4553
+ })), Ve = at[0], xe = at[1], rt = I([].concat(R().useControlledState, [Ce]), Ve, { instance: _() });
4554
4554
  Object.assign(_(), { state: rt, dispatch: xe });
4555
- var Ee = i.useMemo(function() {
4555
+ var Ee = i.useMemo((function() {
4556
4556
  return Q(I(R().columns, te, { instance: _() }));
4557
- }, [R, _, te].concat(I(R().columnsDeps, [], { instance: _() })));
4557
+ }), [R, _, te].concat(I(R().columnsDeps, [], { instance: _() })));
4558
4558
  _().columns = Ee;
4559
- var Je = i.useMemo(function() {
4559
+ var Je = i.useMemo((function() {
4560
4560
  return I(R().allColumns, Y(Ee), { instance: _() }).map(ne);
4561
- }, [Ee, R, _].concat(I(R().allColumnsDeps, [], { instance: _() })));
4561
+ }), [Ee, R, _].concat(I(R().allColumnsDeps, [], { instance: _() })));
4562
4562
  _().allColumns = Je;
4563
- var vt = i.useMemo(function() {
4563
+ var vt = i.useMemo((function() {
4564
4564
  for (var m = [], j = [], F = {}, $ = [].concat(Je); $.length; ) {
4565
4565
  var re = $.shift();
4566
4566
  or({ data: K, rows: m, flatRows: j, rowsById: F, column: re, getRowId: ae, getSubRows: fe, accessValueHooks: R().accessValue, getInstance: _ });
4567
4567
  }
4568
4568
  return [m, j, F];
4569
- }, [Je, K, ae, fe, R, _]), qe = vt[0], Ke = vt[1], Pt = vt[2];
4569
+ }), [Je, K, ae, fe, R, _]), qe = vt[0], Ke = vt[1], Pt = vt[2];
4570
4570
  Object.assign(_(), { rows: qe, initialRows: [].concat(qe), flatRows: Ke, rowsById: Pt }), D(R().useInstanceAfterData, _());
4571
- var et = i.useMemo(function() {
4572
- return I(R().visibleColumns, Je, { instance: _() }).map(function(m) {
4573
- return O(m, ue);
4574
- });
4575
- }, [R, Je, _, ue].concat(I(R().visibleColumnsDeps, [], { instance: _() })));
4576
- Je = i.useMemo(function() {
4571
+ var et = i.useMemo((function() {
4572
+ return I(R().visibleColumns, Je, { instance: _() }).map((function(m) {
4573
+ return W(m, ue);
4574
+ }));
4575
+ }), [R, Je, _, ue].concat(I(R().visibleColumnsDeps, [], { instance: _() })));
4576
+ Je = i.useMemo((function() {
4577
4577
  var m = [].concat(et);
4578
- return Je.forEach(function(j) {
4579
- m.find(function(F) {
4578
+ return Je.forEach((function(j) {
4579
+ m.find((function(F) {
4580
4580
  return F.id === j.id;
4581
- }) || m.push(j);
4582
- }), m;
4583
- }, [Je, et]), _().allColumns = Je;
4584
- var Ct = i.useMemo(function() {
4581
+ })) || m.push(j);
4582
+ })), m;
4583
+ }), [Je, et]), _().allColumns = Je;
4584
+ var Ct = i.useMemo((function() {
4585
4585
  return I(R().headerGroups, me(et, ue), _());
4586
- }, [R, et, ue, _].concat(I(R().headerGroupsDeps, [], { instance: _() })));
4586
+ }), [R, et, ue, _].concat(I(R().headerGroupsDeps, [], { instance: _() })));
4587
4587
  _().headerGroups = Ct;
4588
- var r = i.useMemo(function() {
4588
+ var r = i.useMemo((function() {
4589
4589
  return Ct.length ? Ct[0].headers : [];
4590
- }, [Ct]);
4591
- _().headers = r, _().flatHeaders = Ct.reduce(function(m, j) {
4590
+ }), [Ct]);
4591
+ _().headers = r, _().flatHeaders = Ct.reduce((function(m, j) {
4592
4592
  return [].concat(m, j.headers);
4593
- }, []), D(R().useInstanceBeforeDimensions, _());
4594
- var l = et.filter(function(m) {
4593
+ }), []), D(R().useInstanceBeforeDimensions, _());
4594
+ var l = et.filter((function(m) {
4595
4595
  return m.isVisible;
4596
- }).map(function(m) {
4596
+ })).map((function(m) {
4597
4597
  return m.id;
4598
- }).sort().join("_");
4599
- et = i.useMemo(function() {
4600
- return et.filter(function(m) {
4598
+ })).sort().join("_");
4599
+ et = i.useMemo((function() {
4600
+ return et.filter((function(m) {
4601
4601
  return m.isVisible;
4602
- });
4603
- }, [et, l]), _().visibleColumns = et;
4602
+ }));
4603
+ }), [et, l]), _().visibleColumns = et;
4604
4604
  var c = sr(r), s = c[0], x = c[1], y = c[2];
4605
- return _().totalColumnsMinWidth = s, _().totalColumnsWidth = x, _().totalColumnsMaxWidth = y, D(R().useInstance, _()), [].concat(_().flatHeaders, _().allColumns).forEach(function(m) {
4606
- m.render = H(_(), m), m.getHeaderProps = W(R().getHeaderProps, { instance: _(), column: m }), m.getFooterProps = W(R().getFooterProps, { instance: _(), column: m });
4607
- }), _().headerGroups = i.useMemo(function() {
4608
- return Ct.filter(function(m, j) {
4609
- return m.headers = m.headers.filter(function(F) {
4610
- return F.headers ? function $(re) {
4611
- return re.filter(function(ye) {
4605
+ return _().totalColumnsMinWidth = s, _().totalColumnsWidth = x, _().totalColumnsMaxWidth = y, D(R().useInstance, _()), [].concat(_().flatHeaders, _().allColumns).forEach((function(m) {
4606
+ m.render = H(_(), m), m.getHeaderProps = O(R().getHeaderProps, { instance: _(), column: m }), m.getFooterProps = O(R().getFooterProps, { instance: _(), column: m });
4607
+ })), _().headerGroups = i.useMemo((function() {
4608
+ return Ct.filter((function(m, j) {
4609
+ return m.headers = m.headers.filter((function(F) {
4610
+ return F.headers ? (function $(re) {
4611
+ return re.filter((function(ye) {
4612
4612
  return ye.headers ? $(ye.headers) : ye.isVisible;
4613
- }).length;
4614
- }(F.headers) : F.isVisible;
4615
- }), !!m.headers.length && (m.getHeaderGroupProps = W(R().getHeaderGroupProps, { instance: _(), headerGroup: m, index: j }), m.getFooterGroupProps = W(R().getFooterGroupProps, { instance: _(), headerGroup: m, index: j }), !0);
4616
- });
4617
- }, [Ct, _, R]), _().footerGroups = [].concat(_().headerGroups).reverse(), _().prepareRow = i.useCallback(function(m) {
4618
- m.getRowProps = W(R().getRowProps, { instance: _(), row: m }), m.allCells = Je.map(function(j) {
4613
+ })).length;
4614
+ })(F.headers) : F.isVisible;
4615
+ })), !!m.headers.length && (m.getHeaderGroupProps = O(R().getHeaderGroupProps, { instance: _(), headerGroup: m, index: j }), m.getFooterGroupProps = O(R().getFooterGroupProps, { instance: _(), headerGroup: m, index: j }), !0);
4616
+ }));
4617
+ }), [Ct, _, R]), _().footerGroups = [].concat(_().headerGroups).reverse(), _().prepareRow = i.useCallback((function(m) {
4618
+ m.getRowProps = O(R().getRowProps, { instance: _(), row: m }), m.allCells = Je.map((function(j) {
4619
4619
  var F = m.values[j.id], $ = { column: j, row: m, value: F };
4620
- return $.getCellProps = W(R().getCellProps, { instance: _(), cell: $ }), $.render = H(_(), j, { row: m, cell: $, value: F }), $;
4621
- }), m.cells = et.map(function(j) {
4622
- return m.allCells.find(function(F) {
4620
+ return $.getCellProps = O(R().getCellProps, { instance: _(), cell: $ }), $.render = H(_(), j, { row: m, cell: $, value: F }), $;
4621
+ })), m.cells = et.map((function(j) {
4622
+ return m.allCells.find((function(F) {
4623
4623
  return F.column.id === j.id;
4624
- });
4625
- }), D(R().prepareRow, m, { instance: _() });
4626
- }, [R, _, Je, et]), _().getTableProps = W(R().getTableProps, { instance: _() }), _().getTableBodyProps = W(R().getTableBodyProps, { instance: _() }), D(R().useFinalInstance, _()), _();
4624
+ }));
4625
+ })), D(R().prepareRow, m, { instance: _() });
4626
+ }), [R, _, Je, et]), _().getTableProps = O(R().getTableProps, { instance: _() }), _().getTableBodyProps = O(R().getTableBodyProps, { instance: _() }), D(R().useFinalInstance, _()), _();
4627
4627
  }, Object.defineProperty(d, "__esModule", { value: !0 });
4628
- });
4629
- }(il, il.exports)), il.exports;
4628
+ }));
4629
+ })(il, il.exports)), il.exports;
4630
4630
  }
4631
4631
  var sl = { exports: {} }, As = sl.exports, pn;
4632
4632
  function Is() {
4633
- return pn || (pn = 1, function(n, u) {
4633
+ return pn || (pn = 1, (function(n, u) {
4634
4634
  (function(d, i) {
4635
4635
  i(u, ol);
4636
- })(As, function(d, i) {
4636
+ })(As, (function(d, i) {
4637
4637
  i = i && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
4638
4638
  function v(r, l, c, s, x, y, m) {
4639
4639
  try {
@@ -4697,7 +4697,7 @@ function Is() {
4697
4697
  return s;
4698
4698
  }, V = function() {
4699
4699
  return i.createElement(i.Fragment, null, " ");
4700
- }, W = {
4700
+ }, O = {
4701
4701
  Cell: L,
4702
4702
  width: 150,
4703
4703
  minWidth: 0,
@@ -4776,7 +4776,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
4776
4776
  l === void 0 && (l = 0);
4777
4777
  var c = i.useRef({}), s = H(r), x = H(l);
4778
4778
  return i.useCallback(
4779
- /* @__PURE__ */ function() {
4779
+ /* @__PURE__ */ (function() {
4780
4780
  var y = C(
4781
4781
  /* @__PURE__ */ regeneratorRuntime.mark(function m() {
4782
4782
  var j, F, $, re = arguments;
@@ -4822,7 +4822,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
4822
4822
  return function() {
4823
4823
  return y.apply(this, arguments);
4824
4824
  };
4825
- }(),
4825
+ })(),
4826
4826
  [s, x]
4827
4827
  );
4828
4828
  }
@@ -4832,22 +4832,22 @@ This usually means you need to need to name your plugin hook by setting the 'plu
4832
4832
  var y = typeof s == "string" ? l[s] : s;
4833
4833
  if (typeof y > "u")
4834
4834
  throw console.info(l), new Error(k);
4835
- return O(y, a({}, r, {
4835
+ return W(y, a({}, r, {
4836
4836
  column: l
4837
4837
  }, c, {}, x));
4838
4838
  };
4839
4839
  }
4840
- function O(r, l) {
4840
+ function W(r, l) {
4841
4841
  return me(r) ? i.createElement(r, l) : r;
4842
4842
  }
4843
4843
  function me(r) {
4844
4844
  return we(r) || typeof r == "function" || _e(r);
4845
4845
  }
4846
4846
  function we(r) {
4847
- return typeof r == "function" && function() {
4847
+ return typeof r == "function" && (function() {
4848
4848
  var l = Object.getPrototypeOf(r);
4849
4849
  return l.prototype && l.prototype.isReactComponent;
4850
- }();
4850
+ })();
4851
4851
  }
4852
4852
  function _e(r) {
4853
4853
  return typeof r == "object" && typeof r.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(r.$$typeof.description);
@@ -4888,7 +4888,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
4888
4888
  // Make sure there is a fallback header, just in case
4889
4889
  Header: V,
4890
4890
  Footer: V
4891
- }, W, {}, l, {}, r)), Object.assign(r, {
4891
+ }, O, {}, l, {}, r)), Object.assign(r, {
4892
4892
  originalWidth: r.width
4893
4893
  }), r;
4894
4894
  }
@@ -4934,10 +4934,10 @@ This usually means you need to need to name your plugin hook by setting the 'plu
4934
4934
  function Fe(r, l, c) {
4935
4935
  if (!l)
4936
4936
  return r;
4937
- var s = typeof l == "function" ? l : JSON.stringify(l), x = Ae.get(s) || function() {
4937
+ var s = typeof l == "function" ? l : JSON.stringify(l), x = Ae.get(s) || (function() {
4938
4938
  var m = Ie(l);
4939
4939
  return Ae.set(s, m), m;
4940
- }(), y;
4940
+ })(), y;
4941
4941
  try {
4942
4942
  y = x.reduce(function(m, j) {
4943
4943
  return m[j];
@@ -6227,7 +6227,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
6227
6227
  string: ua,
6228
6228
  number: Cl
6229
6229
  });
6230
- g.resetSortBy = "resetSortBy", g.setSortBy = "setSortBy", g.toggleSortBy = "toggleSortBy", g.clearSortBy = "clearSortBy", W.sortType = "alphanumeric", W.sortDescFirst = !1;
6230
+ g.resetSortBy = "resetSortBy", g.setSortBy = "setSortBy", g.toggleSortBy = "toggleSortBy", g.clearSortBy = "clearSortBy", O.sortType = "alphanumeric", O.sortDescFirst = !1;
6231
6231
  var jl = function(l) {
6232
6232
  l.getSortByToggleProps = [ha], l.stateReducers.push(Pl), l.useInstance.push(Sl);
6233
6233
  };
@@ -6924,7 +6924,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
6924
6924
  });
6925
6925
  }, [l]);
6926
6926
  }
6927
- W.canResize = !0, g.columnStartResizing = "columnStartResizing", g.columnResizing = "columnResizing", g.columnDoneResizing = "columnDoneResizing", g.resetResize = "resetResize";
6927
+ O.canResize = !0, g.columnStartResizing = "columnStartResizing", g.columnResizing = "columnResizing", g.columnDoneResizing = "columnDoneResizing", g.resetResize = "resetResize";
6928
6928
  var R = function(l) {
6929
6929
  l.getResizerProps = [q], l.getHeaderProps.push({
6930
6930
  style: {
@@ -7302,9 +7302,9 @@ This usually means you need to need to name your plugin hook by setting the 'plu
7302
7302
  if (c !== void 0)
7303
7303
  return c;
7304
7304
  }
7305
- d._UNSTABLE_usePivotColumns = Al, d.actions = g, d.defaultColumn = W, d.defaultGroupByFn = bl, d.defaultOrderByFn = Ur, d.defaultRenderer = L, d.emptyRenderer = V, d.ensurePluginOrder = ee, d.flexRender = O, d.functionalUpdate = B, d.loopHooks = b, d.makePropGetter = P, d.makeRenderer = ne, d.reduceHooks = T, d.safeUseLayoutEffect = z, d.useAbsoluteLayout = ae, d.useAsyncDebounce = Y, d.useBlockLayout = ke, d.useColumnOrder = f, d.useExpanded = ut, d.useFilters = hl, d.useFlexLayout = at, d.useGetLatest = H, d.useGlobalFilter = pl, d.useGridLayout = vt, d.useGroupBy = qr, d.useMountedLayoutEffect = Q, d.usePagination = Nl, d.useResizeColumns = R, d.useRowSelect = Jr, d.useRowState = Ll, d.useSortBy = jl, d.useTable = jr, Object.defineProperty(d, "__esModule", { value: !0 });
7306
- });
7307
- }(sl, sl.exports)), sl.exports;
7305
+ d._UNSTABLE_usePivotColumns = Al, d.actions = g, d.defaultColumn = O, d.defaultGroupByFn = bl, d.defaultOrderByFn = Ur, d.defaultRenderer = L, d.emptyRenderer = V, d.ensurePluginOrder = ee, d.flexRender = W, d.functionalUpdate = B, d.loopHooks = b, d.makePropGetter = P, d.makeRenderer = ne, d.reduceHooks = T, d.safeUseLayoutEffect = z, d.useAbsoluteLayout = ae, d.useAsyncDebounce = Y, d.useBlockLayout = ke, d.useColumnOrder = f, d.useExpanded = ut, d.useFilters = hl, d.useFlexLayout = at, d.useGetLatest = H, d.useGlobalFilter = pl, d.useGridLayout = vt, d.useGroupBy = qr, d.useMountedLayoutEffect = Q, d.usePagination = Nl, d.useResizeColumns = R, d.useRowSelect = Jr, d.useRowState = Ll, d.useSortBy = jl, d.useTable = jr, Object.defineProperty(d, "__esModule", { value: !0 });
7306
+ }));
7307
+ })(sl, sl.exports)), sl.exports;
7308
7308
  }
7309
7309
  var mn;
7310
7310
  function Ts() {
@@ -7322,7 +7322,7 @@ const Bs = ({
7322
7322
  setTableData: A,
7323
7323
  handleRightSegment: S
7324
7324
  }) => {
7325
- const h = Mr(null), [k, g] = U(i?.original?.service_name || ""), [L, V] = U(!1), [W, I] = U([]), [D, P] = U(!1), T = $t(
7325
+ const h = Mr(null), [k, g] = U(i?.original?.service_name || ""), [L, V] = U(!1), [O, I] = U([]), [D, P] = U(!1), T = $t(
7326
7326
  (H) => {
7327
7327
  h.current && !h.current.contains(H.target) && (D && v && g(""), V(!1));
7328
7328
  },
@@ -7334,7 +7334,7 @@ const Bs = ({
7334
7334
  const b = (H) => {
7335
7335
  if (P(!0), V(!0), u?.length > 0) {
7336
7336
  const Q = u.filter((Y) => Y.service_name.toLowerCase().includes(H.target.value.toLowerCase())).sort((Y, ne) => {
7337
- const O = H.target.value.toLowerCase(), me = Y.service_name.toLowerCase().startsWith(O), we = ne.service_name.toLowerCase().startsWith(O);
7337
+ const W = H.target.value.toLowerCase(), me = Y.service_name.toLowerCase().startsWith(W), we = ne.service_name.toLowerCase().startsWith(W);
7338
7338
  return me && !we ? -1 : !me && we ? 1 : Y.service_name.localeCompare(ne.service_name);
7339
7339
  });
7340
7340
  I(Q);
@@ -7415,7 +7415,7 @@ const Bs = ({
7415
7415
  {
7416
7416
  ref: h,
7417
7417
  className: "hfl-absolute hfl-right-0 hfl-z-10 hfl-max-h-[270px] hfl-w-[330px] hfl-overflow-scroll hfl-overflow-x-hidden hfl-rounded-lg hfl-border-1 hfl-border-Gray-200 hfl-bg-White hfl-shadow-md",
7418
- children: W.map((H, z) => /* @__PURE__ */ e.jsx(
7418
+ children: O.map((H, z) => /* @__PURE__ */ e.jsx(
7419
7419
  ll,
7420
7420
  {
7421
7421
  label: H.service_name,
@@ -7451,7 +7451,7 @@ const Bs = ({
7451
7451
  addBillButton: g,
7452
7452
  tableBodyData: L,
7453
7453
  handleEditRow: V,
7454
- handleRightSegment: W,
7454
+ handleRightSegment: O,
7455
7455
  tableData: I,
7456
7456
  setTableData: D,
7457
7457
  setEditRowId: P,
@@ -7563,7 +7563,7 @@ const Bs = ({
7563
7563
  isDisabled: k,
7564
7564
  handleValueChange: H,
7565
7565
  setTableData: D,
7566
- handleRightSegment: W
7566
+ handleRightSegment: O
7567
7567
  }
7568
7568
  )
7569
7569
  }
@@ -7693,7 +7693,7 @@ const Bs = ({
7693
7693
  {
7694
7694
  className: ` ${k ? "hx_delete hfl-text-White" : "hx_delete"} ${parseInt(M?.original?.balance_amount) >= parseInt(M?.original?.net_amount) ? "" : " hfl-cursor-not-allowed hfl-opacity-20"} `,
7695
7695
  onClick: (Ae) => {
7696
- Ae.stopPropagation(), W(), Y(M, M.id);
7696
+ Ae.stopPropagation(), O(), Y(M, M.id);
7697
7697
  }
7698
7698
  }
7699
7699
  )
@@ -7702,9 +7702,9 @@ const Bs = ({
7702
7702
  }
7703
7703
  ],
7704
7704
  [C, A, i?.service_list]
7705
- ), O = Kt(() => k ? L : ee, [ee, L]), { getTableProps: me, getTableBodyProps: we, headerGroups: _e, rows: tt, prepareRow: he } = dl.useTable({
7705
+ ), W = Kt(() => k ? L : ee, [ee, L]), { getTableProps: me, getTableBodyProps: we, headerGroups: _e, rows: tt, prepareRow: he } = dl.useTable({
7706
7706
  columns: ne,
7707
- data: O
7707
+ data: W
7708
7708
  }), X = (M) => {
7709
7709
  const Ae = [];
7710
7710
  return M?.headers?.length && M.headers.map((Fe) => {
@@ -7739,7 +7739,7 @@ const Bs = ({
7739
7739
  ...He.getCellProps(),
7740
7740
  className: `hfl-relative hfl-border-1 hfl-border-Gray-200 hfl-px-2 hfl-text-left ${gt == 1 && Ae?.original?.order_item_id ? "hfl-bg-Gray-50" : ""} `,
7741
7741
  onClick: (pt) => {
7742
- gt === 6 ? (pt.stopPropagation(), W()) : z(Ae);
7742
+ gt === 6 ? (pt.stopPropagation(), O()) : z(Ae);
7743
7743
  },
7744
7744
  children: /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "", children: He.render("Cell") })
7745
7745
  }
@@ -7801,7 +7801,7 @@ const Bs = ({
7801
7801
  getPastDueAmount: g,
7802
7802
  handleRightSegment: L,
7803
7803
  serviceItem: V,
7804
- date: W,
7804
+ date: O,
7805
7805
  refreshBillsList: I,
7806
7806
  deleteLastPaymemntMode: D = !1,
7807
7807
  setDeleteLastPaymentMode: P = () => {
@@ -7814,7 +7814,7 @@ const Bs = ({
7814
7814
  if (a) return "discount";
7815
7815
  if (A) return "refund";
7816
7816
  if (S) return "deposit_refund";
7817
- }, { patientIDs: B, showToast: H, billPreferences: z, getLastBillsPaymentData: Q, variable: Y } = Lt(Mt) || {}, [ne, O] = U(ee()), [me, we] = U([]), [_e, tt] = U([{ id: 1, item_level: "0", bill_level: "0" }]), [he, X] = U([{ id: 1, label: "CASH", value: "0", detail: "" }]), [ce, M] = U(!1), Ae = {
7817
+ }, { patientIDs: B, showToast: H, billPreferences: z, getLastBillsPaymentData: Q, variable: Y } = Lt(Mt) || {}, [ne, W] = U(ee()), [me, we] = U([]), [_e, tt] = U([{ id: 1, item_level: "0", bill_level: "0" }]), [he, X] = U([{ id: 1, label: "CASH", value: "0", detail: "" }]), [ce, M] = U(!1), Ae = {
7818
7818
  color: "#98A2B3",
7819
7819
  fontFamily: "Inter",
7820
7820
  fontSize: "14px",
@@ -7864,7 +7864,7 @@ const Bs = ({
7864
7864
  { key: "refund", label: "Refund" },
7865
7865
  { key: "deposit_refund", label: "Refund" }
7866
7866
  ].filter((le) => le.key === "payment" ? C : le.key === "discount" ? a : le.key === "refund" ? A : le.key === "deposit" ? v : le.key === "deposit_refund" ? S : !0), Bt = (le) => {
7867
- O(le);
7867
+ W(le);
7868
7868
  }, kt = (le) => {
7869
7869
  const J = (le === "payment" ? me.length : le === "discount" ? _e.length : he.length) + 1;
7870
7870
  le === "payment" && C && me.length < 2 ? we([
@@ -7889,7 +7889,7 @@ const Bs = ({
7889
7889
  d?.bill_summary ? le = Object.entries(d?.bill_summary).map(([Be, Pe]) => ({
7890
7890
  order_id: Pe?.order_id,
7891
7891
  amount: Number(Pe?.balance_amount),
7892
- order_date: Te(W).format("YYYY-MM-DD"),
7892
+ order_date: Te(O).format("YYYY-MM-DD"),
7893
7893
  service_category_id: Number(Be)
7894
7894
  })).filter((Be) => Be.amount !== 0) : d?.balance_amount && le.push({ amount: parseInt(d?.balance_amount) });
7895
7895
  const J = h ? (i?.bill_amount_details ?? []).map((Be) => ({
@@ -7897,7 +7897,7 @@ const Bs = ({
7897
7897
  amount: Number(Be.balance_amount) || 0
7898
7898
  })) : [];
7899
7899
  return [...le, ...J].reduce((Be, Pe) => Be + Pe.amount, 0);
7900
- }, [d, h, i?.bill_amount_details, W]), Ie = $t(() => T <= G ? T : G, [G, T]);
7900
+ }, [d, h, i?.bill_amount_details, O]), Ie = $t(() => T <= G ? T : G, [G, T]);
7901
7901
  Ye(() => {
7902
7902
  const le = Ie();
7903
7903
  ne !== "deposit" && ne !== "deposit_refund" && we((J) => {
@@ -8096,7 +8096,7 @@ const Bs = ({
8096
8096
  const le = Object.entries(d?.bill_summary).map(([Pe, mt]) => ({
8097
8097
  order_id: mt?.order_id,
8098
8098
  amount: Number(mt?.balance_amount),
8099
- order_date: Te(W).format("YYYY-MM-DD"),
8099
+ order_date: Te(O).format("YYYY-MM-DD"),
8100
8100
  service_category_id: +Pe
8101
8101
  })).filter((Pe) => Pe.amount !== 0), J = h ? i?.bill_amount_details.map((Pe) => ({
8102
8102
  order_id: Pe.order_id,
@@ -8123,7 +8123,7 @@ const Bs = ({
8123
8123
  B?.patientRoleID || "",
8124
8124
  Y
8125
8125
  );
8126
- Pe ? (it("payment", 1), H("Success", Pe?.message, "Success", 3e3), b?.((mt) => !mt), k?.(), I?.(W), g?.(), await Q(B?.patientRoleID || ""), L(), M(!1)) : (M(!1), H("Error", "Something went wrong please try again", "Error", 3e3));
8126
+ Pe ? (it("payment", 1), H("Success", Pe?.message, "Success", 3e3), b?.((mt) => !mt), k?.(), I?.(O), g?.(), await Q(B?.patientRoleID || ""), L(), M(!1)) : (M(!1), H("Error", "Something went wrong please try again", "Error", 3e3));
8127
8127
  }
8128
8128
  else
8129
8129
  H(
@@ -8167,7 +8167,7 @@ const Bs = ({
8167
8167
  } catch (Z) {
8168
8168
  M(!1), H("Error", Z.data.message, "Error", 3e3);
8169
8169
  }
8170
- le && (it("payment", 1), H("Success", le?.message, "Success", 3e3), k?.(), I?.(W), g?.(), await Q(B?.patientRoleID || ""), L(), M(!1));
8170
+ le && (it("payment", 1), H("Success", le?.message, "Success", 3e3), k?.(), I?.(O), g?.(), await Q(B?.patientRoleID || ""), L(), M(!1));
8171
8171
  }
8172
8172
  }
8173
8173
  }
@@ -8240,7 +8240,7 @@ const Bs = ({
8240
8240
  } catch (Z) {
8241
8241
  M(!1), console.error("Error in updateBill", Z);
8242
8242
  }
8243
- le && (H("Success", le?.message, "Success", 3e3), k?.(), I?.(W), g?.(), L(), M(!1));
8243
+ le && (H("Success", le?.message, "Success", 3e3), k?.(), I?.(O), g?.(), L(), M(!1));
8244
8244
  }
8245
8245
  }
8246
8246
  )
@@ -8387,7 +8387,7 @@ const Bs = ({
8387
8387
  } catch (Z) {
8388
8388
  console.error("Error in update refund", Z), M(!1);
8389
8389
  }
8390
- le && (H("Success", le?.message, "Success", 3e3), k?.(), I?.(W), g?.(), L(), M(!1));
8390
+ le && (H("Success", le?.message, "Success", 3e3), k?.(), I?.(O), g?.(), L(), M(!1));
8391
8391
  }
8392
8392
  }
8393
8393
  )
@@ -8542,7 +8542,7 @@ const Bs = ({
8542
8542
  getPastDueAmount: g,
8543
8543
  refreshBillsList: L,
8544
8544
  walletBalance: V = 0,
8545
- setRefreshWallet: W
8545
+ setRefreshWallet: O
8546
8546
  } = n, [I, D] = U(!1), [P, T] = U(!1), b = () => {
8547
8547
  T(!0), D(!0);
8548
8548
  }, ee = () => {
@@ -8835,7 +8835,7 @@ const Bs = ({
8835
8835
  deleteLastPaymemntMode: P,
8836
8836
  setDeleteLastPaymentMode: T,
8837
8837
  walletBalance: V,
8838
- setRefreshWallet: W
8838
+ setRefreshWallet: O
8839
8839
  }
8840
8840
  )
8841
8841
  ] }),
@@ -8879,7 +8879,7 @@ const Bs = ({
8879
8879
  setTableData: a,
8880
8880
  refreshBillsList: A,
8881
8881
  handleRevertEdit: S
8882
- } = n, { patientIDs: h, showToast: k, doctorListArr: g, billPreferences: L, formattedService: V, ppEventProps: W, variable: I } = Lt(Mt), [D, P] = U(), T = {
8882
+ } = n, { patientIDs: h, showToast: k, doctorListArr: g, billPreferences: L, formattedService: V, ppEventProps: O, variable: I } = Lt(Mt), [D, P] = U(), T = {
8883
8883
  bill_item_details: {
8884
8884
  doctor_name: I.window_var.doc_name_for_seg,
8885
8885
  referrer_doctor_role_id: I.window_var.doctor_role_id_for_seg,
@@ -8906,10 +8906,10 @@ const Bs = ({
8906
8906
  } : ne = {
8907
8907
  doctor_name: Y.docName,
8908
8908
  referrer_doctor_role_id: Y.docRoleID
8909
- }, ee((O) => ({
8910
- ...O,
8909
+ }, ee((W) => ({
8910
+ ...W,
8911
8911
  bill_item_details: {
8912
- ...O.bill_item_details,
8912
+ ...W.bill_item_details,
8913
8913
  ...ne
8914
8914
  }
8915
8915
  }));
@@ -9056,13 +9056,13 @@ const Bs = ({
9056
9056
  k,
9057
9057
  h.patientRoleID,
9058
9058
  Te(v).format("YYYY-MM-DD"),
9059
- W,
9059
+ O,
9060
9060
  Nt[2],
9061
9061
  I
9062
9062
  );
9063
9063
  b.bill_item_details.lab_owner_name && ns(b.bill_item_details.lab_owner_name, h?.patientRoleID || "", I), Q && (a(
9064
9064
  (Y) => Y.map(
9065
- (ne, O) => C == O.toString() ? {
9065
+ (ne, W) => C == W.toString() ? {
9066
9066
  ...ne,
9067
9067
  order_item_id: Q.order_item_id || b.order_item_id
9068
9068
  } : ne
@@ -9103,7 +9103,7 @@ const Bs = ({
9103
9103
  getBillSummarydata: g,
9104
9104
  editedTableData: L,
9105
9105
  setTableData: V,
9106
- editRowId: W,
9106
+ editRowId: O,
9107
9107
  refreshBillsList: I,
9108
9108
  handleRevertEdit: D,
9109
9109
  checkAppointmentForBilling: P
@@ -9126,7 +9126,7 @@ const Bs = ({
9126
9126
  appnt_service_id: L?.service_id || "",
9127
9127
  appnt_service_name: L?.service_name || "",
9128
9128
  ...L
9129
- }, [z, Q] = U(H), [Y, ne] = U(!1), O = async () => {
9129
+ }, [z, Q] = U(H), [Y, ne] = U(!1), W = async () => {
9130
9130
  if (L?.order_item_id)
9131
9131
  try {
9132
9132
  const X = await qa(
@@ -9193,7 +9193,7 @@ const Bs = ({
9193
9193
  Ye(() => {
9194
9194
  L && Q({ ...z, ...L });
9195
9195
  }, [L]), Ye(() => {
9196
- O();
9196
+ W();
9197
9197
  }, [z.order_item_id]);
9198
9198
  const [me, we] = U(!1), _e = (X, ce) => {
9199
9199
  Q((M) => ({
@@ -9470,7 +9470,7 @@ const Bs = ({
9470
9470
  );
9471
9471
  X && (V(
9472
9472
  (ce) => ce.map(
9473
- (M, Ae) => W == Ae.toString() ? {
9473
+ (M, Ae) => O == Ae.toString() ? {
9474
9474
  ...M,
9475
9475
  order_item_id: X.order_item_id || z.order_item_id
9476
9476
  } : M
@@ -9522,7 +9522,7 @@ const Bs = ({
9522
9522
  editRowId: a,
9523
9523
  refreshBillsList: A,
9524
9524
  handleRevertEdit: S
9525
- } = n, { patientIDs: h, showToast: k, doctorListArr: g, billPreferences: L, formattedService: V, ppEventProps: W, variable: I } = Lt(Mt) || {}, D = {
9525
+ } = n, { patientIDs: h, showToast: k, doctorListArr: g, billPreferences: L, formattedService: V, ppEventProps: O, variable: I } = Lt(Mt) || {}, D = {
9526
9526
  bill_item_details: {
9527
9527
  appointment_details: {
9528
9528
  appnt_id: "",
@@ -9658,7 +9658,7 @@ const Bs = ({
9658
9658
  k,
9659
9659
  h?.patientRoleID || "",
9660
9660
  Te(v).format("YYYY-MM-DD"),
9661
- W,
9661
+ O,
9662
9662
  Nt[1],
9663
9663
  I
9664
9664
  );
@@ -9692,10 +9692,10 @@ const Bs = ({
9692
9692
  };
9693
9693
  var ql = { exports: {} }, Vs = ql.exports, xn;
9694
9694
  function Os() {
9695
- return xn || (xn = 1, function(n, u) {
9695
+ return xn || (xn = 1, (function(n, u) {
9696
9696
  (function(d, i) {
9697
9697
  n.exports = i();
9698
- })(Vs, function() {
9698
+ })(Vs, (function() {
9699
9699
  var d = "minute", i = /[+-]\d\d(?::?\d\d)?/g, v = /([+-]|\d\d)/g;
9700
9700
  return function(C, a, A) {
9701
9701
  var S = a.prototype;
@@ -9723,13 +9723,13 @@ function Os() {
9723
9723
  S.utcOffset = function(I, D) {
9724
9724
  var P = this.$utils().u;
9725
9725
  if (P(I)) return this.$u ? 0 : P(this.$offset) ? g.call(this) : this.$offset;
9726
- if (typeof I == "string" && (I = function(B) {
9726
+ if (typeof I == "string" && (I = (function(B) {
9727
9727
  B === void 0 && (B = "");
9728
9728
  var H = B.match(i);
9729
9729
  if (!H) return null;
9730
9730
  var z = ("" + H[0]).match(v) || ["-", 0, 0], Q = z[0], Y = 60 * +z[1] + +z[2];
9731
9731
  return Y === 0 ? 0 : Q === "+" ? Y : -Y;
9732
- }(I), I === null)) return this;
9732
+ })(I), I === null)) return this;
9733
9733
  var T = Math.abs(I) <= 16 ? 60 * I : I;
9734
9734
  if (T === 0) return this.utc(D);
9735
9735
  var b = this.clone();
@@ -9755,15 +9755,15 @@ function Os() {
9755
9755
  S.toDate = function(I) {
9756
9756
  return I === "s" && this.$offset ? A(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : V.call(this);
9757
9757
  };
9758
- var W = S.diff;
9758
+ var O = S.diff;
9759
9759
  S.diff = function(I, D, P) {
9760
- if (I && this.$u === I.$u) return W.call(this, I, D, P);
9760
+ if (I && this.$u === I.$u) return O.call(this, I, D, P);
9761
9761
  var T = this.local(), b = A(I).local();
9762
- return W.call(T, b, D, P);
9762
+ return O.call(T, b, D, P);
9763
9763
  };
9764
9764
  };
9765
- });
9766
- }(ql)), ql.exports;
9765
+ }));
9766
+ })(ql)), ql.exports;
9767
9767
  }
9768
9768
  var Ws = Os();
9769
9769
  const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
@@ -9784,7 +9784,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
9784
9784
  } = n, V = Lt(Mt);
9785
9785
  if (!V)
9786
9786
  throw new Error("ServiceLevelBillSummary must be used within an AppContext.Provider");
9787
- const { patientDetails: W, patientIDs: I, billPreferences: D, setShowPrintModal: P, currentWindow: T, showPrintModal: b, variable: ee } = V, B = () => {
9787
+ const { patientDetails: O, patientIDs: I, billPreferences: D, setShowPrintModal: P, currentWindow: T, showPrintModal: b, variable: ee } = V, B = () => {
9788
9788
  switch (C) {
9789
9789
  case Nt[0]:
9790
9790
  return "Consultation Bill";
@@ -9797,7 +9797,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
9797
9797
  }
9798
9798
  }, H = async (z, Q, Y) => {
9799
9799
  if (b?.visible && g(), !u) return;
9800
- const ne = await Gn(u.order_id, I?.patientRoleID || "", ee), O = d.map((He) => ({
9800
+ const ne = await Gn(u.order_id, I?.patientRoleID || "", ee), W = d.map((He) => ({
9801
9801
  serviceName: He.service_name,
9802
9802
  price: +He.order_unit_item_price,
9803
9803
  gst: +He.order_item_service_tax,
@@ -9817,20 +9817,20 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
9817
9817
  balanceAmount: _e,
9818
9818
  refundAmount: we
9819
9819
  }, Ae = [
9820
- W?.age && typeof W.age == "number" ? `${W.age}y` : W?.org_person_dob ? wr(W.org_person_dob) : "",
9821
- W?.gender ? cl[W.gender] : "",
9822
- W?.blood_group
9820
+ O?.age && typeof O.age == "number" ? `${O.age}y` : O?.org_person_dob ? wr(O.org_person_dob) : "",
9821
+ O?.gender ? cl[O.gender] : "",
9822
+ O?.blood_group
9823
9823
  ].filter(Boolean).join(", "), Fe = {
9824
- name: `${pr(W?.name ?? "")}${Ae ? ` (${Ae})` : ""}`,
9824
+ name: `${pr(O?.name ?? "")}${Ae ? ` (${Ae})` : ""}`,
9825
9825
  billDate: Te(u.order_date).format("DD-MMM-YYYY"),
9826
- mobileNumber: W?.phone_number ?? "",
9827
- email: W?.email ?? "",
9826
+ mobileNumber: O?.phone_number ?? "",
9827
+ email: O?.email ?? "",
9828
9828
  billNumber: u.order_id_str,
9829
- patientId: W?.org_person_bid_str ?? "",
9829
+ patientId: O?.org_person_bid_str ?? "",
9830
9830
  patientIdForEmail: I?.patientRoleID ?? "",
9831
9831
  billStatus: _e === 0 ? "PAID" : "UNPAID",
9832
- address: [W?.address, W?.city, W?.pincode].filter(Boolean).join(", "),
9833
- referredBy: ne?.lab_owner_name ? pr(ne.lab_owner_name) : W?.ref_doc_name ? pr(W.ref_doc_name) : "--"
9832
+ address: [O?.address, O?.city, O?.pincode].filter(Boolean).join(", "),
9833
+ referredBy: ne?.lab_owner_name ? pr(ne.lab_owner_name) : O?.ref_doc_name ? pr(O.ref_doc_name) : "--"
9834
9834
  };
9835
9835
  P({
9836
9836
  printDataFrom: "patient_popup",
@@ -9846,7 +9846,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
9846
9846
  showPrintPreviewForBill: Q,
9847
9847
  preferences: { ...D?.print?.bill, ...D?.org_details },
9848
9848
  billSummaryDetails: ce,
9849
- billServiceDetails: O,
9849
+ billServiceDetails: W,
9850
9850
  billPatientDetails: Fe,
9851
9851
  isWholeBill: !1,
9852
9852
  payloadDataforEmail: {
@@ -10047,7 +10047,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
10047
10047
  showToast: A,
10048
10048
  // currentWindow,
10049
10049
  variable: S
10050
- } = Lt(Mt), [h, k] = U(/* @__PURE__ */ new Date()), [g, L] = U(), [V, W] = U(ht[0]), [I, D] = U([]), [P, T] = U([]), [b, ee] = U(""), [B, H] = U(), [z, Q] = U(!1), [Y, ne] = U(Aa), [O, me] = U("-1"), [we, _e] = U({
10050
+ } = Lt(Mt), [h, k] = U(/* @__PURE__ */ new Date()), [g, L] = U(), [V, O] = U(ht[0]), [I, D] = U([]), [P, T] = U([]), [b, ee] = U(""), [B, H] = U(), [z, Q] = U(!1), [Y, ne] = U(Aa), [W, me] = U("-1"), [we, _e] = U({
10051
10051
  bill_summary: {},
10052
10052
  status: !1,
10053
10053
  message: ""
@@ -10073,36 +10073,36 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
10073
10073
  console.error("Error in getBillSummary API Call:", G);
10074
10074
  }
10075
10075
  }, He = () => {
10076
- ne((G) => P.length > +O && +O >= 0 ? [
10077
- ...G.slice(0, +O),
10076
+ ne((G) => P.length > +W && +W >= 0 ? [
10077
+ ...G.slice(0, +W),
10078
10078
  {
10079
- order_id: P[O].order_id,
10080
- order_date: P[O].order_date,
10081
- order_created_on: P[O].order_created_on,
10082
- service_category: P[O].service_category,
10083
- service_category_id: P[O].service_category_id,
10084
- order_id_str: P[O].order_id_str,
10085
- order_total: P[O].order_total,
10086
- order_paid_amount: P[O].order_paid_amount,
10087
- order_item_sum_discount: P[O].order_item_sum_discount,
10088
- order_discount: P[O].order_discount,
10089
- refund_amount: P[O].refund_amount,
10090
- order_service_tax: P[O].order_service_tax,
10091
- balance_amount: P[O].balance_amount,
10092
- net_bill_amount: P[O].net_bill_amount,
10093
- order_item_id: P[O].order_item_id,
10094
- service_id: P[O]?.service_id,
10095
- service_name: P[O].service_name,
10096
- item_quantity: P[O].item_quantity,
10097
- order_unit_item_price: P[O].order_unit_item_price,
10098
- order_item_price: P[O].order_item_price,
10099
- order_item_discount: P[O].order_item_discount,
10100
- order_item_service_tax: "" + Math.floor(P[O].order_item_service_tax),
10101
- order_item_service_tax_percent: P[O].order_item_service_tax_percent,
10102
- net_amount: P[O].net_amount,
10103
- created_on: P[O].created_on
10079
+ order_id: P[W].order_id,
10080
+ order_date: P[W].order_date,
10081
+ order_created_on: P[W].order_created_on,
10082
+ service_category: P[W].service_category,
10083
+ service_category_id: P[W].service_category_id,
10084
+ order_id_str: P[W].order_id_str,
10085
+ order_total: P[W].order_total,
10086
+ order_paid_amount: P[W].order_paid_amount,
10087
+ order_item_sum_discount: P[W].order_item_sum_discount,
10088
+ order_discount: P[W].order_discount,
10089
+ refund_amount: P[W].refund_amount,
10090
+ order_service_tax: P[W].order_service_tax,
10091
+ balance_amount: P[W].balance_amount,
10092
+ net_bill_amount: P[W].net_bill_amount,
10093
+ order_item_id: P[W].order_item_id,
10094
+ service_id: P[W]?.service_id,
10095
+ service_name: P[W].service_name,
10096
+ item_quantity: P[W].item_quantity,
10097
+ order_unit_item_price: P[W].order_unit_item_price,
10098
+ order_item_price: P[W].order_item_price,
10099
+ order_item_discount: P[W].order_item_discount,
10100
+ order_item_service_tax: "" + Math.floor(P[W].order_item_service_tax),
10101
+ order_item_service_tax_percent: P[W].order_item_service_tax_percent,
10102
+ net_amount: P[W].net_amount,
10103
+ created_on: P[W].created_on
10104
10104
  },
10105
- ...G.slice(+O + 1)
10105
+ ...G.slice(+W + 1)
10106
10106
  ] : G);
10107
10107
  }, gt = async () => {
10108
10108
  try {
@@ -10187,7 +10187,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
10187
10187
  We();
10188
10188
  }, [We]);
10189
10189
  const st = (G = ht[0]) => {
10190
- W(G);
10190
+ O(G);
10191
10191
  }, Dt = (G) => {
10192
10192
  switch (G?.original?.service_category.toLowerCase()) {
10193
10193
  case Nt[0].toLowerCase():
@@ -10420,9 +10420,9 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
10420
10420
  bill_date: h,
10421
10421
  handleRightSegment: st,
10422
10422
  getBillSummarydata: Fe,
10423
- editedTableData: Y?.[O],
10423
+ editedTableData: Y?.[W],
10424
10424
  setTableData: ne,
10425
- editRowId: O,
10425
+ editRowId: W,
10426
10426
  handleRevertEdit: He,
10427
10427
  refreshBillsList: pt,
10428
10428
  checkAppointmentForBilling: gt
@@ -10434,9 +10434,9 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
10434
10434
  order_date: h,
10435
10435
  handleRightSegment: st,
10436
10436
  getBillSummarydata: Fe,
10437
- editedTableData: Y?.[O],
10437
+ editedTableData: Y?.[W],
10438
10438
  setTableData: ne,
10439
- editRowId: O,
10439
+ editRowId: W,
10440
10440
  refreshBillsList: pt,
10441
10441
  handleRevertEdit: He
10442
10442
  }
@@ -10446,10 +10446,10 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
10446
10446
  {
10447
10447
  order_date: h,
10448
10448
  handleRightSegment: st,
10449
- editedTableData: Y?.[O],
10449
+ editedTableData: Y?.[W],
10450
10450
  getBillSummarydata: Fe,
10451
10451
  setTableData: ne,
10452
- editRowId: O,
10452
+ editRowId: W,
10453
10453
  refreshBillsList: pt,
10454
10454
  handleRevertEdit: He
10455
10455
  }
@@ -10588,7 +10588,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
10588
10588
  ), S = Kt(() => u || [], [u]), { getTableProps: h, getTableBodyProps: k, headerGroups: g, rows: L, prepareRow: V } = dl.useTable({
10589
10589
  columns: A,
10590
10590
  data: S
10591
- }), W = (D) => {
10591
+ }), O = (D) => {
10592
10592
  const P = [];
10593
10593
  return D?.headers?.length && D.headers.map((T) => {
10594
10594
  P.push(
@@ -10649,7 +10649,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
10649
10649
  {
10650
10650
  ...D.getHeaderGroupProps(),
10651
10651
  className: "hfl-h-9 hfl-rounded-lg hfl-bg-Blue_gray-50 hfl-py-2",
10652
- children: W(D)
10652
+ children: O(D)
10653
10653
  }
10654
10654
  )) }),
10655
10655
  /* @__PURE__ */ e.jsx("tbody", { ...k(), className: "hfl-rounded-lg hfl-border-1 hfl-border-Gray-200", children: I() })
@@ -10677,11 +10677,11 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
10677
10677
  v && /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center hfl-justify-center", children: /* @__PURE__ */ e.jsx(bn, { size: "xxs", progress: 10, spinnerMode: !0 }) })
10678
10678
  ] });
10679
10679
  }, Ys = (n) => {
10680
- const { handleAddNewAppnt: u, handleAppointData: d, sortAppointments: i } = n, [v, C] = U(), [a, A] = U(1), [S, h] = U([]), [k, g] = U([]), [L, V] = U(""), { patientIDs: W, setLoading: I, variable: D } = Lt(Mt), P = async (T) => {
10680
+ const { handleAddNewAppnt: u, handleAppointData: d, sortAppointments: i } = n, [v, C] = U(), [a, A] = U(1), [S, h] = U([]), [k, g] = U([]), [L, V] = U(""), { patientIDs: O, setLoading: I, variable: D } = Lt(Mt), P = async (T) => {
10681
10681
  let b = T;
10682
10682
  if (I(!0), b <= Math.ceil((v?.total_records || 0) / 10)) {
10683
10683
  if (b = T + 1, b !== T) {
10684
- const ee = await Ul("all", W?.patientRoleID || "", b, 10, !1, D);
10684
+ const ee = await Ul("all", O?.patientRoleID || "", b, 10, !1, D);
10685
10685
  h((B) => [
10686
10686
  ...B,
10687
10687
  ...ee.appointments.filter((H) => H.appnt_date >= Te(/* @__PURE__ */ new Date()).format("YYYY-MM-DD"))
@@ -10698,7 +10698,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
10698
10698
  I(!0);
10699
10699
  const T = async () => {
10700
10700
  try {
10701
- const b = await Ul("all", W?.patientRoleID || "", 1, 10, !1, D);
10701
+ const b = await Ul("all", O?.patientRoleID || "", 1, 10, !1, D);
10702
10702
  b && (C(b), h(
10703
10703
  b?.appointments?.filter((ee) => ee.appnt_date >= Te(/* @__PURE__ */ new Date()).format("YYYY-MM-DD"))
10704
10704
  ), g(
@@ -10709,7 +10709,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
10709
10709
  }
10710
10710
  };
10711
10711
  I(!1), T();
10712
- }, [W?.patientRoleID, I, D]), /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-col", children: [
10712
+ }, [O?.patientRoleID, I, D]), /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-col", children: [
10713
10713
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-max-h-[550px] hfl-w-full hfl-flex-col hfl-overflow-y-scroll", children: [
10714
10714
  S.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
10715
10715
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-w-full hfl-items-center hfl-justify-between hfl-px-3 hfl-py-2 ", children: [
@@ -10789,7 +10789,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
10789
10789
  variable: g
10790
10790
  } = Lt(Mt), [L, V] = U(
10791
10791
  g.window_var?.partner_service_enabled === "1" && u?.insurance_details?.policy_id?.length ? !0 : a?.billing?.prepaid_consultation !== "1"
10792
- ), [W, I] = U("today"), [D, P] = U(!1), [T, b] = U([]), ee = (/* @__PURE__ */ new Date()).toLocaleString("en-US", {
10792
+ ), [O, I] = U("today"), [D, P] = U(!1), [T, b] = U([]), ee = (/* @__PURE__ */ new Date()).toLocaleString("en-US", {
10793
10793
  hour: "numeric",
10794
10794
  minute: "numeric",
10795
10795
  hour12: !0
@@ -10846,7 +10846,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
10846
10846
  V(
10847
10847
  g.window_var?.partner_service_enabled === "1" && u?.insurance_details?.policy_id ? !0 : a?.billing?.prepaid_consultation !== "1"
10848
10848
  );
10849
- }, [D, a, W, u, g.window_var?.partner_service_enabled]), Ye(() => {
10849
+ }, [D, a, O, u, g.window_var?.partner_service_enabled]), Ye(() => {
10850
10850
  ne((G) => L && G);
10851
10851
  }, [L]), Ye(() => {
10852
10852
  if (!+z?.order_item_id && !z?.order_unit_item_price) {
@@ -10867,7 +10867,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
10867
10867
  z.appnt_service_id,
10868
10868
  S
10869
10869
  ]);
10870
- const O = $t(
10870
+ const W = $t(
10871
10871
  (G) => {
10872
10872
  const { order_unit_item_price: Ie = 0, item_quantity: Ue = 0, order_item_discount: le = 0, appnt_service_id: J } = G;
10873
10873
  if (!J) return;
@@ -10928,7 +10928,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
10928
10928
  order_item_discount: J,
10929
10929
  order_item_service_tax_percentage: Be
10930
10930
  };
10931
- Q(Pe), O(Pe);
10931
+ Q(Pe), W(Pe);
10932
10932
  } else
10933
10933
  G === "appnt_date" && Ie > Te().format("YYYY-MM-DD") && (V(!0), L || n("Error", "Cannot add bill for future appointments. Continue without billing?", "Error", 5e3)), Q((Ue) => ({ ...Ue, [G]: Ie }));
10934
10934
  }, tt = () => {
@@ -10939,12 +10939,12 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
10939
10939
  Q((Ue) => ({ ...Ue, [Ie]: G }));
10940
10940
  };
10941
10941
  Ye(() => {
10942
- O(z);
10942
+ W(z);
10943
10943
  }, [
10944
10944
  z.order_unit_item_price,
10945
10945
  z.item_quantity,
10946
10946
  z.order_item_discount,
10947
- O,
10947
+ W,
10948
10948
  z
10949
10949
  ]);
10950
10950
  const ce = (G) => [...G].sort((Ie, Ue) => new Date(Ie.appnt_date).getTime() - new Date(Ue.appnt_date).getTime()), M = Kt(
@@ -11093,7 +11093,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
11093
11093
  }, Dt = (G, Ie, Ue) => /* @__PURE__ */ e.jsxs(
11094
11094
  "div",
11095
11095
  {
11096
- className: `hfl-flex hfl-w-[60px] hfl-flex-col hfl-items-center hfl-rounded hfl-px-1 hfl-py-2 hfl-text-center ${W === G ? "hfl-bg-Primary-50 hfl-text-Primary-600" : ""} hfl-cursor-pointer`,
11096
+ className: `hfl-flex hfl-w-[60px] hfl-flex-col hfl-items-center hfl-rounded hfl-px-1 hfl-py-2 hfl-text-center ${O === G ? "hfl-bg-Primary-50 hfl-text-Primary-600" : ""} hfl-cursor-pointer`,
11097
11097
  onClick: () => I(G),
11098
11098
  "data-qa": G,
11099
11099
  children: [
@@ -11108,10 +11108,10 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
11108
11108
  C(!0);
11109
11109
  try {
11110
11110
  const G = await Ul(
11111
- W == "today" ? Te().format("YYYY-MM-DD") : "all",
11111
+ O == "today" ? Te().format("YYYY-MM-DD") : "all",
11112
11112
  v?.patientRoleID || "",
11113
11113
  1,
11114
- W == "today" ? 100 : 10,
11114
+ O == "today" ? 100 : 10,
11115
11115
  !1,
11116
11116
  g
11117
11117
  );
@@ -11121,12 +11121,12 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
11121
11121
  } catch {
11122
11122
  C(!1), console.log("error in getAppointmentsList API Call");
11123
11123
  }
11124
- }, [xt, W, v?.patientRoleID, C, g]);
11124
+ }, [xt, O, v?.patientRoleID, C, g]);
11125
11125
  Ye(() => {
11126
11126
  D || Bt();
11127
11127
  }, [D, Bt]), Ye(() => {
11128
- W === "today" && Bt();
11129
- }, [Bt, W]);
11128
+ O === "today" && Bt();
11129
+ }, [Bt, O]);
11130
11130
  const kt = async () => {
11131
11131
  z.appnt_date > Te().format("YYYY-MM-DD") && (V(!0), L || n("Error", "Cannot add bill for future appointments. Continue without billing?", "Error", 5e3)), await Bn(
11132
11132
  z,
@@ -11145,7 +11145,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
11145
11145
  Dt("today", "hx_calendar-add hfl-text-5", "Today's Appts"),
11146
11146
  Dt("all", "hx_calendar hfl-text-5", "All Appts")
11147
11147
  ] }),
11148
- W === "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: T.length <= 0 || D ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
11148
+ O === "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: T.length <= 0 || D ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
11149
11149
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-gap-2 hfl-self-stretch hfl-bg-Gray-100 hfl-p-2", children: [
11150
11150
  /* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text lg", className: "hfl-flex-1", children: z.appnt_id.length ? "Update Appointment" : "New Appointment" }),
11151
11151
  /* @__PURE__ */ e.jsx(
@@ -11448,13 +11448,13 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
11448
11448
  ka,
11449
11449
  {
11450
11450
  today: !0,
11451
- leftNav: W,
11451
+ leftNav: O,
11452
11452
  appointments: ce(T),
11453
11453
  handleAppointData: we
11454
11454
  }
11455
11455
  ) })
11456
11456
  ] }) }),
11457
- W === "all" && /* @__PURE__ */ e.jsx(
11457
+ O === "all" && /* @__PURE__ */ e.jsx(
11458
11458
  Ys,
11459
11459
  {
11460
11460
  sortAppointments: ce,
@@ -11559,7 +11559,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
11559
11559
  pastVisits: [],
11560
11560
  isVisitLoading: !1
11561
11561
  }
11562
- ), { pastVisits: V, currentPage: W, isVisitLoading: I, totalRecord: D } = g, P = $t(
11562
+ ), { pastVisits: V, currentPage: O, isVisitLoading: I, totalRecord: D } = g, P = $t(
11563
11563
  async (Y) => {
11564
11564
  if (a?.patientRoleID)
11565
11565
  try {
@@ -11569,10 +11569,10 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
11569
11569
  Y,
11570
11570
  a.patientRoleID,
11571
11571
  k
11572
- ), O = ne?.visits ?? [];
11572
+ ), W = ne?.visits ?? [];
11573
11573
  L({
11574
11574
  currentPage: Y,
11575
- pastVisits: Y === 1 ? O : [...V, ...O],
11575
+ pastVisits: Y === 1 ? W : [...V, ...W],
11576
11576
  isVisitLoading: !1,
11577
11577
  totalRecord: +ne.total_visit_count
11578
11578
  });
@@ -11583,7 +11583,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
11583
11583
  // eslint-disable-next-line react-hooks/exhaustive-deps
11584
11584
  [a?.patientRoleID]
11585
11585
  ), T = $t(
11586
- async (Y, ne, O = !0) => {
11586
+ async (Y, ne, W = !0) => {
11587
11587
  if (a?.patientRoleID) {
11588
11588
  n(), L({ isVisitLoading: !0 });
11589
11589
  try {
@@ -11619,7 +11619,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
11619
11619
  trackEventHandler: () => {
11620
11620
  }
11621
11621
  // Provide a default no-op function
11622
- }), S(O);
11622
+ }), S(W);
11623
11623
  } catch (me) {
11624
11624
  console.error("Failed to prepare print data:", me);
11625
11625
  } finally {
@@ -11642,8 +11642,8 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
11642
11642
  ), b = $t(async () => {
11643
11643
  try {
11644
11644
  const Y = await us(k), ne = {};
11645
- Y.transalation_records.forEach((O) => {
11646
- ne[O.language] = O;
11645
+ Y.transalation_records.forEach((W) => {
11646
+ ne[W.language] = W;
11647
11647
  }), i(ne);
11648
11648
  } catch (Y) {
11649
11649
  console.error("Failed to get custom translations:", Y);
@@ -11652,13 +11652,13 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
11652
11652
  try {
11653
11653
  const Y = await hs(k);
11654
11654
  if (Y?.test_ranges) {
11655
- const ne = Y.test_ranges.map((O) => ({
11656
- test_id: O.test_id,
11657
- test_names: O.test_names,
11658
- test_range_rule: O.test_range_rule,
11659
- test_range_text: O.test_range_text,
11660
- test_units: O.test_units,
11661
- value: O.test_names
11655
+ const ne = Y.test_ranges.map((W) => ({
11656
+ test_id: W.test_id,
11657
+ test_names: W.test_names,
11658
+ test_range_rule: W.test_range_rule,
11659
+ test_range_text: W.test_range_text,
11660
+ test_units: W.test_units,
11661
+ value: W.test_names
11662
11662
  }));
11663
11663
  d(ne);
11664
11664
  }
@@ -11769,8 +11769,8 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
11769
11769
  if (k.window_var?.enable_ipd_v2 !== "1") {
11770
11770
  Y = "../ipd/viewPatientsCase.php";
11771
11771
  try {
11772
- const ne = await Qi(k, a.patientRoleID), { status: O = 0, case_id: me = 0 } = ne, we = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
11773
- Y = O && me ? `../ipd/viewPatientRecords.php?pid=${a.patientRoleID}&case_id=${me}` : `../ipd/viewAddPatientsCase.php?pid=${a.patientRoleID}&date=${we}`;
11772
+ const ne = await Qi(k, a.patientRoleID), { status: W = 0, case_id: me = 0 } = ne, we = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
11773
+ Y = W && me ? `../ipd/viewPatientRecords.php?pid=${a.patientRoleID}&case_id=${me}` : `../ipd/viewAddPatientsCase.php?pid=${a.patientRoleID}&date=${we}`;
11774
11774
  } catch (ne) {
11775
11775
  console.error("Failed to get IPD Case by PID:", ne);
11776
11776
  }
@@ -11799,9 +11799,9 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
11799
11799
  /* @__PURE__ */ e.jsx(
11800
11800
  ul,
11801
11801
  {
11802
- currentPage: W,
11802
+ currentPage: O,
11803
11803
  totalRecord: D,
11804
- handleLoadMore: () => P(W + 1),
11804
+ handleLoadMore: () => P(O + 1),
11805
11805
  isLoading: I,
11806
11806
  currentTotal: z.length
11807
11807
  }
@@ -11912,7 +11912,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
11912
11912
  src: `${n}/fonts/Arial-Bold-Italic.ttf`
11913
11913
  }), At.register({
11914
11914
  family: "Rupee",
11915
- src: `${n}/fonts/Roboto-Regular.ttf`
11915
+ src: `${n}/fonts/IndianRupee.ttf`
11916
11916
  }), /* @__PURE__ */ e.jsx(xi, { style: { display: "none" }, children: /* @__PURE__ */ e.jsx(vi, { children: /* @__PURE__ */ e.jsxs(_i, { children: [
11917
11917
  /* @__PURE__ */ e.jsx(It, { style: { fontFamily: "notoKannada" }, children: "load font" }),
11918
11918
  /* @__PURE__ */ e.jsx(It, { style: { fontFamily: "notoHindi" }, children: "load font" }),
@@ -11959,7 +11959,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
11959
11959
  } = Lt(Mt) || {}, V = ({ label: b, className: ee }) => /* @__PURE__ */ e.jsx("th", { className: ee, children: /* @__PURE__ */ e.jsxs(N, { variant: "Semibold", type: "Text sm", className: "hfl-text-Gray-600", children: [
11960
11960
  " ",
11961
11961
  b
11962
- ] }) }), W = (b) => {
11962
+ ] }) }), O = (b) => {
11963
11963
  switch (b) {
11964
11964
  case Nt[0]:
11965
11965
  return "hx_service-appointment-filled hfl-text-Primary-500";
@@ -12119,7 +12119,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12119
12119
  ) }),
12120
12120
  /* @__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 }) }),
12121
12121
  /* @__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: [
12122
- /* @__PURE__ */ e.jsx("i", { className: ` hfl-flex ${W(b.service_category)}` }),
12122
+ /* @__PURE__ */ e.jsx("i", { className: ` hfl-flex ${O(b.service_category)}` }),
12123
12123
  /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", className: "hfl-truncate", children: [
12124
12124
  " ",
12125
12125
  I(b.service_category)
@@ -12302,7 +12302,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12302
12302
  ) })
12303
12303
  ] });
12304
12304
  }, Qs = "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", eo = (n) => {
12305
- const { closePrintModal: u, handleCurrentWindow: d, billIdToOpen: i, onBillHandled: v } = n, [C, a] = U(), [A, S] = U(""), [h, k] = U(""), [g, L] = U(), [V, W] = U(), [I, D] = U(1), [P, T] = U([]), [b, ee] = U(-1), [B, H] = U(-1), [z, Q] = U(0), [Y, ne] = U(0), [O, me] = U(!1), we = Lt(Mt);
12305
+ const { closePrintModal: u, handleCurrentWindow: d, billIdToOpen: i, onBillHandled: v } = n, [C, a] = U(), [A, S] = U(""), [h, k] = U(""), [g, L] = U(), [V, O] = U(), [I, D] = U(1), [P, T] = U([]), [b, ee] = U(-1), [B, H] = U(-1), [z, Q] = U(0), [Y, ne] = U(0), [W, me] = U(!1), we = Lt(Mt);
12306
12306
  if (!we)
12307
12307
  throw new Error("Bills component must be used within an AppContext.Provider");
12308
12308
  const { patientIDs: _e, setLoading: tt, variable: he } = we, X = (We) => Q(We), ce = (We = ht[0]) => S(We), M = (We) => k(We), Ae = (We) => {
@@ -12313,7 +12313,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12313
12313
  if (_e?.patientRoleID)
12314
12314
  try {
12315
12315
  const We = await Ha(Te().format("YYYY-MM-DD"), _e.patientRoleID, !1, he);
12316
- W(We);
12316
+ O(We);
12317
12317
  } catch (We) {
12318
12318
  console.error("Error in getPastDueAmount API Call:", We);
12319
12319
  }
@@ -12352,7 +12352,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12352
12352
  pt();
12353
12353
  }, []), Ye(() => {
12354
12354
  gt();
12355
- }, [O]), Ye(() => {
12355
+ }, [W]), Ye(() => {
12356
12356
  if (i && P.length) {
12357
12357
  const We = P.find((st) => st.order_id_str === i);
12358
12358
  We && (Ae(We), v?.());
@@ -12610,7 +12610,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12610
12610
  }
12611
12611
  };
12612
12612
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
12613
- u.length > 0 && u.map((V, W) => /* @__PURE__ */ e.jsx(ol.Fragment, { children: /* @__PURE__ */ e.jsxs("tr", { className: "hfl-border-1", children: [
12613
+ u.length > 0 && u.map((V, O) => /* @__PURE__ */ e.jsx(ol.Fragment, { children: /* @__PURE__ */ e.jsxs("tr", { className: "hfl-border-1", children: [
12614
12614
  /* @__PURE__ */ e.jsx(
12615
12615
  "td",
12616
12616
  {
@@ -12638,7 +12638,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12638
12638
  onClick: () => {
12639
12639
  v(V);
12640
12640
  },
12641
- "data-qa": W + 1 + "-bill-amount",
12641
+ "data-qa": O + 1 + "-bill-amount",
12642
12642
  children: "₹" + V.paid_amount
12643
12643
  }
12644
12644
  ) })
@@ -12711,12 +12711,12 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12711
12711
  {
12712
12712
  className: " hx_delete hfl-flex hfl-cursor-pointer hfl-text-2",
12713
12713
  onClick: (I) => {
12714
- I.stopPropagation(), i(), d(V, W);
12714
+ I.stopPropagation(), i(), d(V, O);
12715
12715
  },
12716
- "data-qa": W + 1 + "-delete-transaction"
12716
+ "data-qa": O + 1 + "-delete-transaction"
12717
12717
  }
12718
12718
  ) })
12719
- ] }, `${W}`) }, W)),
12719
+ ] }, `${O}`) }, O)),
12720
12720
  S.show && /* @__PURE__ */ e.jsx(
12721
12721
  to,
12722
12722
  {
@@ -12757,7 +12757,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12757
12757
  showPrintModal: h
12758
12758
  // setLoading,
12759
12759
  // ppEventProps,
12760
- } = Lt(Mt), k = async (g, L, V, W) => {
12760
+ } = Lt(Mt), k = async (g, L, V, O) => {
12761
12761
  h?.visible && i();
12762
12762
  const D = [
12763
12763
  C?.age && typeof C?.age == "number" ? `${C?.age}y` : C?.org_person_dob ? wr(C?.org_person_dob) : "",
@@ -12797,7 +12797,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12797
12797
  }
12798
12798
  },
12799
12799
  trackEventHandler: () => {
12800
- console.log(W);
12800
+ console.log(O);
12801
12801
  }
12802
12802
  });
12803
12803
  };
@@ -12895,7 +12895,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12895
12895
  default:
12896
12896
  return "";
12897
12897
  }
12898
- }, W = (T) => {
12898
+ }, O = (T) => {
12899
12899
  switch (T) {
12900
12900
  case "DEPOSIT":
12901
12901
  case "P":
@@ -12992,7 +12992,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12992
12992
  handleDeleteRow: L,
12993
12993
  handleRightSegment: i,
12994
12994
  handleRowClick: v,
12995
- getTypeColor: W,
12995
+ getTypeColor: O,
12996
12996
  getType: V,
12997
12997
  refreshPaymentData: S
12998
12998
  }
@@ -13047,12 +13047,12 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
13047
13047
  patient_entity_id: h
13048
13048
  } = n, k = async (g, L) => {
13049
13049
  C?.visible && A();
13050
- const W = [
13050
+ const O = [
13051
13051
  u?.age && typeof u?.age == "number" ? `${u?.age}y` : u?.org_person_dob ? wr(u?.org_person_dob) : "",
13052
13052
  cl[u?.gender] ?? "",
13053
13053
  u?.blood_group
13054
13054
  ].filter((D) => D).join(", "), I = {
13055
- name: pr(u?.name) + (W ? ` (${W}) ` : ""),
13055
+ name: pr(u?.name) + (O ? ` (${O}) ` : ""),
13056
13056
  billDate: Te(S?.transaction_time).format("DD-MMM-YYYY"),
13057
13057
  mobileNumber: u?.phone_number,
13058
13058
  email: u?.email,
@@ -13180,7 +13180,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
13180
13180
  br[Ir.consultation_lab_other_services].key
13181
13181
  ), [i, v] = U(
13182
13182
  null
13183
- ), [C, a] = U(ht[5]), [A, S] = U(""), [h, k] = U(), [g, L] = U([]), [V, W] = U(1), [I, D] = U(), { setLoading: P, patientIDs: T, variable: b } = Lt(Mt), [ee, B] = U(0), [H, z] = U(!1), Q = $t(async () => {
13183
+ ), [C, a] = U(ht[5]), [A, S] = U(""), [h, k] = U(), [g, L] = U([]), [V, O] = U(1), [I, D] = U(), { setLoading: P, patientIDs: T, variable: b } = Lt(Mt), [ee, B] = U(0), [H, z] = U(!1), Q = $t(async () => {
13184
13184
  try {
13185
13185
  if (P(!0), T?.patientRoleID) {
13186
13186
  const X = await Ma(T.patientRoleID, 1, 10, b);
@@ -13200,11 +13200,11 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
13200
13200
  }
13201
13201
  }, [T?.patientRoleID, P, b]), ne = (X = ht[5]) => {
13202
13202
  a(X);
13203
- }, O = (X) => {
13203
+ }, W = (X) => {
13204
13204
  S(X);
13205
13205
  }, me = async (X) => {
13206
13206
  if (k(X), u === br[Ir.consultation_lab_other_services].key) {
13207
- if (O(Nt[parseInt(X?.service_category_id) - 1]), a(ht[1]), X?.order_id) {
13207
+ if (W(Nt[parseInt(X?.service_category_id) - 1]), a(ht[1]), X?.order_id) {
13208
13208
  const ce = await _e(X.order_id);
13209
13209
  D(ce);
13210
13210
  }
@@ -13217,7 +13217,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
13217
13217
  let M, Ae;
13218
13218
  u == br[Ir.deposit_refund].key ? (M = await La(T?.patientRoleID || "", ce, 10, b), Ae = [...g, ...M.wallet_transactions]) : (M = await Ma(T?.patientRoleID || "", ce, 10, b), Ae = [...g, ...M.data]), L(Ae);
13219
13219
  }
13220
- W(ce);
13220
+ O(ce);
13221
13221
  }
13222
13222
  P(!1);
13223
13223
  }, _e = async (X) => {
@@ -13471,7 +13471,7 @@ ${g}`,
13471
13471
  openLISReportHandler: a = () => {
13472
13472
  },
13473
13473
  variable: A
13474
- } = n, { org_person_bid_str: S = "", email: h = "", phone_number: k = "", patient_id: g, name: L = "" } = d, [V, W] = U(), [I, D] = U(i), [P, T] = U(!0), [b, ee] = U(!1), [B, H] = U(""), [z, Q] = U(h), [Y, ne] = U(k), [O, me] = U(!1), we = (ce) => {
13474
+ } = n, { org_person_bid_str: S = "", email: h = "", phone_number: k = "", patient_id: g, name: L = "" } = d, [V, O] = U(), [I, D] = U(i), [P, T] = U(!0), [b, ee] = U(!1), [B, H] = U(""), [z, Q] = U(h), [Y, ne] = U(k), [W, me] = U(!1), we = (ce) => {
13475
13475
  const { value: M } = ce.target;
13476
13476
  ee(!!M && !Ba().email().isValidSync(M)), Q(M);
13477
13477
  }, _e = (ce) => {
@@ -13483,7 +13483,7 @@ ${g}`,
13483
13483
  try {
13484
13484
  T(!0);
13485
13485
  const M = await Sn(S, A), { visits: Ae = [] } = M;
13486
- W(M), Ae.length && Ae[0]?.reports?.length ? D(Ae[0].reports[0]) : T(!1);
13486
+ O(M), Ae.length && Ae[0]?.reports?.length ? D(Ae[0].reports[0]) : T(!1);
13487
13487
  } catch (M) {
13488
13488
  console.error("Error:", M), T(!1);
13489
13489
  }
@@ -13645,7 +13645,7 @@ ${g}`,
13645
13645
  label: "Phone Number",
13646
13646
  height: "hfl-h-10 hfl-border-Purple-200 hfl-h-10 hfl-border-Purple-200",
13647
13647
  start_icon: "hx_phone",
13648
- errorMsg: O && B !== "phone" ? "Invalid Phone Number" : void 0,
13648
+ errorMsg: W && B !== "phone" ? "Invalid Phone Number" : void 0,
13649
13649
  inputProps: {
13650
13650
  placeholder: "Enter Phone Number",
13651
13651
  onFocus: () => H("phone"),
@@ -13687,7 +13687,7 @@ ${g}`,
13687
13687
  hierarchy: "Primary",
13688
13688
  size: "lg",
13689
13689
  textField: "WhatsApp",
13690
- disabled: !Y || O || P,
13690
+ disabled: !Y || W || P,
13691
13691
  icon: "Left",
13692
13692
  onClick: () => he(I, "SMS/WA"),
13693
13693
  iconFile: "hfl-mr-2",
@@ -13740,7 +13740,7 @@ ${g}`,
13740
13740
  LabRecords: [],
13741
13741
  isLabTableLoading: !1
13742
13742
  }
13743
- ), [k, g] = h, { LabRecords: L, currentPage: V, isLabTableLoading: W } = k, I = (ee, B) => {
13743
+ ), [k, g] = h, { LabRecords: L, currentPage: V, isLabTableLoading: O } = k, I = (ee, B) => {
13744
13744
  ee === "print_pdf" ? window.open(B.report_link, "_blank") : ee === "print_preview" && (C(!0), A(B));
13745
13745
  }, D = $t(
13746
13746
  async (ee) => {
@@ -13850,7 +13850,7 @@ ${g}`,
13850
13850
  }
13851
13851
  ) })
13852
13852
  ] }),
13853
- b.length === 0 && !W && /* @__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(
13853
+ b.length === 0 && !O && /* @__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(
13854
13854
  N,
13855
13855
  {
13856
13856
  variant: "Regular",
@@ -13859,7 +13859,7 @@ ${g}`,
13859
13859
  children: "These are no Reports for the Patient"
13860
13860
  }
13861
13861
  ) }),
13862
- W && /* @__PURE__ */ e.jsx(
13862
+ O && /* @__PURE__ */ e.jsx(
13863
13863
  "div",
13864
13864
  {
13865
13865
  className: "hfl-flex hfl-h-[calc(100%_-_80px)] hfl-flex-col hfl-items-center hfl-justify-center hfl-gap-4",
@@ -13896,7 +13896,7 @@ ${g}`,
13896
13896
  totalRecord: 0,
13897
13897
  LabRecords: [],
13898
13898
  isLabTableLoading: !1
13899
- }), [h, k] = S, { LabRecords: g, currentPage: L, isLabTableLoading: V, totalRecord: W } = h, I = (B, H, z) => {
13899
+ }), [h, k] = S, { LabRecords: g, currentPage: L, isLabTableLoading: V, totalRecord: O } = h, I = (B, H, z) => {
13900
13900
  A((Q) => ({
13901
13901
  ...Q,
13902
13902
  visible: !0,
@@ -13930,9 +13930,9 @@ ${g}`,
13930
13930
  try {
13931
13931
  k({ isLabTableLoading: !0 });
13932
13932
  const H = await Ui(Ei, B, u?.patient_role_id || "", i), Q = (H?.orders ?? []).flatMap((Y) => {
13933
- const { test_templates: ne, ...O } = Y;
13933
+ const { test_templates: ne, ...W } = Y;
13934
13934
  return !ne || ne.length === 0 ? [] : ne.map((me) => ({
13935
- ...O,
13935
+ ...W,
13936
13936
  ...me
13937
13937
  }));
13938
13938
  });
@@ -14019,7 +14019,7 @@ ${g}`,
14019
14019
  ul,
14020
14020
  {
14021
14021
  currentPage: L,
14022
- totalRecord: W,
14022
+ totalRecord: O,
14023
14023
  handleLoadMore: () => T(L + 1),
14024
14024
  isLoading: V,
14025
14025
  currentTotal: ee.length
@@ -14080,10 +14080,10 @@ ${g}`,
14080
14080
  (async () => {
14081
14081
  if (g)
14082
14082
  try {
14083
- const W = v.window_var.org_branch_id_for_seg, I = await Di("lab_print", W, v);
14083
+ const O = v.window_var.org_branch_id_for_seg, I = await Di("lab_print", O, v);
14084
14084
  h(I);
14085
- } catch (W) {
14086
- console.error("Failed to fetch lab print branch preference:", W), u("Error", "Could not load lab print settings.", "Error", 3e3);
14085
+ } catch (O) {
14086
+ console.error("Failed to fetch lab print branch preference:", O), u("Error", "Could not load lab print settings.", "Error", 3e3);
14087
14087
  }
14088
14088
  })();
14089
14089
  }, [g, u, v]), Ye(() => {
@@ -14132,7 +14132,7 @@ ${g}`,
14132
14132
  ] }) : /* @__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." }) }) }) }) });
14133
14133
  };
14134
14134
  function Do({ variable: n }) {
14135
- const { window_var: u, token: d, envName: i, IMGREP_DIRECTORY: v } = n, C = Ya("(max-width: 1080px)"), a = Mr(null), [A, S] = U(!1), [h, k] = U(!1), [g, L] = U([]), [V, W] = U(jt[2]), [I, D] = U(), [P, T] = U(), [b, ee] = U(), [B, H] = U(), [z, Q] = U(), [Y, ne] = U(), [O, me] = U({
14135
+ const { window_var: u, token: d, envName: i, IMGREP_DIRECTORY: v } = n, C = Ya("(max-width: 1080px)"), a = Mr(null), [A, S] = U(!1), [h, k] = U(!1), [g, L] = U([]), [V, O] = U(jt[2]), [I, D] = U(), [P, T] = U(), [b, ee] = U(), [B, H] = U(), [z, Q] = U(), [Y, ne] = U(), [W, me] = U({
14136
14136
  printDataFrom: "",
14137
14137
  visible: !1,
14138
14138
  whichPreview: "offlinePrint",
@@ -14182,7 +14182,7 @@ function Do({ variable: n }) {
14182
14182
  },
14183
14183
  [Q]
14184
14184
  ), or = (dt) => {
14185
- cr(), W(dt);
14185
+ cr(), O(dt);
14186
14186
  }, fr = (dt, wt, ut, St) => {
14187
14187
  const zt = Date.now();
14188
14188
  L((Ot) => [
@@ -14271,7 +14271,7 @@ function Do({ variable: n }) {
14271
14271
  window.patientPopupHandler = async (dt, wt, ut, St, zt, Ot, Yt) => {
14272
14272
  S(!0), _e(dt), H({ patientRoleID: wt, patientID: ut }), a.current = Yt ?? null, await mr(St, St.printDefaultPrefIndex, "", !1);
14273
14273
  try {
14274
- W(
14274
+ O(
14275
14275
  jt.includes(Ot?.toLowerCase() ?? "") ? Ot.toLowerCase() : jt[2]
14276
14276
  ), sr(wt), Li(n).then(T), qi("patient_config", n).then(ne), sn(
14277
14277
  "print_configs",
@@ -14362,7 +14362,7 @@ function Do({ variable: n }) {
14362
14362
  currentWindow: V,
14363
14363
  patientDetails: z,
14364
14364
  setShowPrintModal: me,
14365
- showPrintModal: O,
14365
+ showPrintModal: W,
14366
14366
  setEndConsultationClicked: Z,
14367
14367
  doctorListArr: P,
14368
14368
  docPreference: X,
@@ -14484,22 +14484,22 @@ function Do({ variable: n }) {
14484
14484
  )
14485
14485
  }
14486
14486
  ),
14487
- O?.visible && /* @__PURE__ */ e.jsx(
14487
+ W?.visible && /* @__PURE__ */ e.jsx(
14488
14488
  Nn,
14489
14489
  {
14490
14490
  modalProps: {
14491
14491
  mfePrefix: "hfl",
14492
- printType: O.printType,
14492
+ printType: W.printType,
14493
14493
  onCloseModal: cr,
14494
14494
  showToast: fr,
14495
- currentPrintTime: O.currentPrintTime,
14496
- whichPreview: O.whichPreview,
14495
+ currentPrintTime: W.currentPrintTime,
14496
+ whichPreview: W.whichPreview,
14497
14497
  envName: n
14498
14498
  },
14499
- billPrintProps: O.printType === "bill" || O.printType === "bill_deposit_refund" ? {
14500
- billPatientDetails: O.details.billPatientDetails,
14501
- billServiceDetails: O.details.billServiceDetails,
14502
- billSummaryDetails: O.details.billSummaryDetails,
14499
+ billPrintProps: W.printType === "bill" || W.printType === "bill_deposit_refund" ? {
14500
+ billPatientDetails: W.details.billPatientDetails,
14501
+ billServiceDetails: W.details.billServiceDetails,
14502
+ billSummaryDetails: W.details.billSummaryDetails,
14503
14503
  preferences: {
14504
14504
  ...Y?.print?.bill,
14505
14505
  ...Y?.org_details,
@@ -14507,45 +14507,45 @@ function Do({ variable: n }) {
14507
14507
  doc_sign_img: G,
14508
14508
  doc_sign_text: kt
14509
14509
  },
14510
- showPrintPreviewForBill: O.details.showPrintPreviewForBill,
14511
- isWholeBill: O.details.isWholeBill,
14512
- payloadDataforEmail: O.details.payloadDataforEmail,
14513
- printDataFrom: O.printDataFrom,
14514
- depositRefundBillDetails: O.details.depositRefundBillDetails
14510
+ showPrintPreviewForBill: W.details.showPrintPreviewForBill,
14511
+ isWholeBill: W.details.isWholeBill,
14512
+ payloadDataforEmail: W.details.payloadDataforEmail,
14513
+ printDataFrom: W.printDataFrom,
14514
+ depositRefundBillDetails: W.details.depositRefundBillDetails
14515
14515
  } : void 0,
14516
14516
  optionFormProps: {
14517
14517
  selectedLanguage: tt,
14518
- showLanguageDropDown: O.printType === "visit" && Ie?.print === "1" || O.printType === "visit" && window.role_id != "11",
14518
+ showLanguageDropDown: W.printType === "visit" && Ie?.print === "1" || W.printType === "visit" && window.role_id != "11",
14519
14519
  showPrintPrefDropDown: !0,
14520
14520
  setSelectedLanguage: (dt) => he(dt),
14521
14521
  googleReview: !1,
14522
14522
  showEmailInput: !0,
14523
- showPhoneInput: O.printType === "visit" || O.printType === "bill"
14523
+ showPhoneInput: W.printType === "visit"
14524
14524
  },
14525
14525
  ampEventProps: {
14526
14526
  vpEventProps: "",
14527
14527
  setvpEventProps: () => {
14528
14528
  },
14529
14529
  trackEventHandler: (dt) => {
14530
- O.trackEventHandler?.(dt);
14530
+ W.trackEventHandler?.(dt);
14531
14531
  }
14532
14532
  },
14533
- visitpadProps: O.printType === "visit" ? {
14534
- printDataFrom: O.printDataFrom,
14533
+ visitpadProps: W.printType === "visit" ? {
14534
+ printDataFrom: W.printDataFrom,
14535
14535
  patientDetails: z,
14536
- visitDetails: O.details,
14536
+ visitDetails: W.details,
14537
14537
  offlineMode: !1,
14538
- visitId: O.visitId,
14539
- preferences: O?.visitpadPref || b,
14538
+ visitId: W.visitId,
14539
+ preferences: W?.visitpadPref || b,
14540
14540
  // If the logged in doc is printing his own visit use pref else showPrintModal?.visitpadPref
14541
14541
  endConsultationClicked: J,
14542
- visitDate: O.visit_date,
14543
- visitPadOrder: O?.visitpadPref?.visitpad_order ? fn(
14544
- O?.visitpadPref?.visitpad_order,
14545
- O?.visitpadPref?.visit_pad_json
14542
+ visitDate: W.visit_date,
14543
+ visitPadOrder: W?.visitpadPref?.visitpad_order ? fn(
14544
+ W?.visitpadPref?.visitpad_order,
14545
+ W?.visitpadPref?.visit_pad_json
14546
14546
  ) : We,
14547
14547
  // If the logged in doc is printing his own visit use visitPadOrder else showPrintModal?.visitpadPref?. visitpad_order
14548
- visitNumber: O.visit_number,
14548
+ visitNumber: W.visit_number,
14549
14549
  customTranslations: se,
14550
14550
  latestMetaData: nr,
14551
14551
  investigationDropdown: Pe,
@@ -14555,7 +14555,7 @@ function Do({ variable: n }) {
14555
14555
  updateVPPrefUsingDocPref: mr,
14556
14556
  patientCustomFields: yr
14557
14557
  } : void 0,
14558
- appointmentInfoProps: O.printType === "visit" && O.printDataFrom === "patient_popup" ? O.appointmentInfo : void 0
14558
+ appointmentInfoProps: W.printType === "visit" && W.printDataFrom === "patient_popup" ? W.appointmentInfo : void 0
14559
14559
  }
14560
14560
  )
14561
14561
  ] }) }),