hplx-feature-library 1.0.297 → 1.0.299
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{APIAction-Cd5JI78S.js → APIAction-C4GFv-ck.js} +2 -2
- package/dist/AllInvestigations/index.js +1 -1
- package/dist/AllInvestigationsTable-B3zbMrBr.cjs +80 -0
- package/dist/{AllInvestigationsTable-2K35PFTn.js → AllInvestigationsTable-Dl5e6_Wk.js} +7507 -7557
- package/dist/Attachments/index.js +1 -1
- package/dist/{Attachments-DJGZozIu.js → Attachments-KDvUuiBM.js} +1 -1
- package/dist/NineDots/index.js +1 -1
- package/dist/{NineDots-BHRkMivu.js → NineDots-BvxC-xGI.js} +1 -1
- package/dist/PatientAddEdit/index.js +1 -1
- package/dist/{PatientAddEdit-_YdWTsdj.js → PatientAddEdit-D3R1OpAK.js} +5 -5
- package/dist/PatientPopup/index.js +1 -1
- package/dist/{PatientPopupContainer-DWipgEzh.js → PatientPopupContainer-CiG65wai.js} +251 -251
- package/dist/{PatientPopupContainer-CkEnjp5T.cjs → PatientPopupContainer-J3yRTsFc.cjs} +7 -7
- package/dist/PediatricsCalculator/index.js +1 -1
- package/dist/{PediatricsCalculatorTable-awqyE356.js → PediatricsCalculatorTable-CXALqwAy.js} +2 -2
- package/dist/{PrintModal-6W-6pQBG.js → PrintModal-BbP9sQ08.js} +913 -889
- package/dist/{PrintModal-HGeH3XG0.cjs → PrintModal-DUHc2_7D.cjs} +29 -29
- package/dist/SearchPatients/index.js +1 -1
- package/dist/{SearchPatients-BJ3V5cUY.js → SearchPatients-D9McylH4.js} +3 -3
- package/dist/UserProfile/index.js +1 -1
- package/dist/{UserProfile-BKkZ_6M3.js → UserProfile-_JHPLC6G.js} +4 -4
- package/dist/{common-utils-wopcE6EB.js → common-utils-BMUxEK3j.js} +1 -1
- package/dist/{dayjs.min-DEuEIfhE.js → dayjs.min-DHTzfD6l.js} +1 -1
- package/dist/{index-CAhkB6R3.js → index-CFBUzpnA.js} +3 -3
- package/dist/{index-DN7adyT-.js → index-F4mvLxgX.js} +1 -1
- package/dist/index.js +9 -9
- package/dist/print-pdf/index.js +1 -1
- package/package.json +2 -2
- package/dist/AllInvestigationsTable-Eh-HR5xr.cjs +0 -79
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
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-CFBUzpnA.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
|
-
import { q as Ta, R as bt, h as Wa, f as Yn, v as an, n as nn, s as qn, i as $n } from "./common-utils-
|
|
4
|
-
import { G as Un, a as Zn, b as Kn, c as wn, U as za, d as Xn, e as Cn, f as Jn, g as Qn, h as ei, i as ti, j as ri, k as li, l as ai, m as Rn, n as ni, o as jn, D as ii, p as si, q as oi, V as ci, r as Pn, s as di, t as ui, u as fi, v as hi, w as pi, L as mi, x as gi, y as xi, z as vi, A as _i, F as At, B as yi, C as bi, E as wi, T as It, W as Ci, H as Sn, I as Ri, P as Nn } from "./PrintModal-
|
|
5
|
-
import { d as Te } from "./dayjs.min-
|
|
6
|
-
import { G as ji, U as Pi, A as Si, f as Ni, i as Di, j as sn, k as Ai } from "./APIAction-
|
|
3
|
+
import { q as Ta, R as bt, h as Wa, f as Yn, v as an, n as nn, s as qn, i as $n } from "./common-utils-BMUxEK3j.js";
|
|
4
|
+
import { G as Un, a as Zn, b as Kn, c as wn, U as za, d as Xn, e as Cn, f as Jn, g as Qn, h as ei, i as ti, j as ri, k as li, l as ai, m as Rn, n as ni, o as jn, D as ii, p as si, q as oi, V as ci, r as Pn, s as di, t as ui, u as fi, v as hi, w as pi, L as mi, x as gi, y as xi, z as vi, A as _i, F as At, B as yi, C as bi, E as wi, T as It, W as Ci, H as Sn, I as Ri, P as Nn } from "./PrintModal-BbP9sQ08.js";
|
|
5
|
+
import { d as Te } from "./dayjs.min-DHTzfD6l.js";
|
|
6
|
+
import { G as ji, U as Pi, A as Si, f as Ni, i as Di, j as sn, k as Ai } from "./APIAction-C4GFv-ck.js";
|
|
7
7
|
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";
|
|
8
8
|
import { c as Ba } from "./index.esm-Bn1Rklqj.js";
|
|
9
9
|
/* empty css */
|
|
@@ -936,7 +936,7 @@ function gs() {
|
|
|
936
936
|
}
|
|
937
937
|
} else T = D === (P ? "pm" : "PM");
|
|
938
938
|
return T;
|
|
939
|
-
},
|
|
939
|
+
}, W = { A: [A, function(D) {
|
|
940
940
|
this.afternoon = V(D, !1);
|
|
941
941
|
}], a: [A, function(D) {
|
|
942
942
|
this.afternoon = V(D, !0);
|
|
@@ -967,22 +967,22 @@ function gs() {
|
|
|
967
967
|
function I(D) {
|
|
968
968
|
var P, T;
|
|
969
969
|
P = D, T = S && S.formats;
|
|
970
|
-
for (var b = (D = P.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(ne,
|
|
970
|
+
for (var b = (D = P.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(ne, O, me) {
|
|
971
971
|
var we = me && me.toUpperCase();
|
|
972
|
-
return
|
|
972
|
+
return O || T[me] || d[me] || T[we].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(_e, tt, he) {
|
|
973
973
|
return tt || he.slice(1);
|
|
974
974
|
});
|
|
975
975
|
})).match(i), ee = b.length, B = 0; B < ee; B += 1) {
|
|
976
|
-
var H = b[B], z =
|
|
976
|
+
var H = b[B], z = W[H], Q = z && z[0], Y = z && z[1];
|
|
977
977
|
b[B] = Y ? { regex: Q, parser: Y } : H.replace(/^\[|\]$/g, "");
|
|
978
978
|
}
|
|
979
979
|
return function(ne) {
|
|
980
|
-
for (var
|
|
980
|
+
for (var O = {}, me = 0, we = 0; me < ee; me += 1) {
|
|
981
981
|
var _e = b[me];
|
|
982
982
|
if (typeof _e == "string") we += _e.length;
|
|
983
983
|
else {
|
|
984
984
|
var tt = _e.regex, he = _e.parser, X = ne.slice(we), ce = tt.exec(X)[0];
|
|
985
|
-
he.call(
|
|
985
|
+
he.call(O, ce), ne = ne.replace(ce, "");
|
|
986
986
|
}
|
|
987
987
|
}
|
|
988
988
|
return function(M) {
|
|
@@ -991,7 +991,7 @@ function gs() {
|
|
|
991
991
|
var Fe = M.hours;
|
|
992
992
|
Ae ? Fe < 12 && (M.hours += 12) : Fe === 12 && (M.hours = 0), delete M.afternoon;
|
|
993
993
|
}
|
|
994
|
-
}(
|
|
994
|
+
}(O), O;
|
|
995
995
|
};
|
|
996
996
|
}
|
|
997
997
|
return function(D, P, T) {
|
|
@@ -1002,8 +1002,8 @@ function gs() {
|
|
|
1002
1002
|
this.$u = z;
|
|
1003
1003
|
var Y = Q[1];
|
|
1004
1004
|
if (typeof Y == "string") {
|
|
1005
|
-
var ne = Q[2] === !0,
|
|
1006
|
-
|
|
1005
|
+
var ne = Q[2] === !0, O = Q[3] === !0, me = ne || O, we = Q[2];
|
|
1006
|
+
O && (we = Q[2]), S = this.$locale(), !ne && we && (S = T.Ls[we]), this.$d = function(X, ce, M, Ae) {
|
|
1007
1007
|
try {
|
|
1008
1008
|
if (["x", "X"].indexOf(ce) > -1) return new Date((ce === "X" ? 1e3 : 1) * X);
|
|
1009
1009
|
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;
|
|
@@ -1075,7 +1075,7 @@ const Tn = (...n) => {
|
|
|
1075
1075
|
const {
|
|
1076
1076
|
item_quantity: L,
|
|
1077
1077
|
order_unit_item_price: V,
|
|
1078
|
-
order_item_discount:
|
|
1078
|
+
order_item_discount: W,
|
|
1079
1079
|
order_item_service_tax: I,
|
|
1080
1080
|
order_item_service_tax_percentage: D = 0,
|
|
1081
1081
|
order_item_price: P
|
|
@@ -1083,7 +1083,7 @@ const Tn = (...n) => {
|
|
|
1083
1083
|
if (!u && Tn(
|
|
1084
1084
|
L,
|
|
1085
1085
|
V,
|
|
1086
|
-
|
|
1086
|
+
W,
|
|
1087
1087
|
I,
|
|
1088
1088
|
P
|
|
1089
1089
|
)) {
|
|
@@ -1355,7 +1355,7 @@ const Tn = (...n) => {
|
|
|
1355
1355
|
const { handleCurrentWindow: u, setShowPatientPopModal: d, patientIDs: i, redirectionPage: v, closePrintModal: C } = n, a = Lt(Mt);
|
|
1356
1356
|
if (!a)
|
|
1357
1357
|
throw new Error("PatientPopupHeader must be used within an AppContext.Provider");
|
|
1358
|
-
const { currentWindow: A, patientDetails: S, docPreference: h, billPreferences: k, setLastBillPaymentData: g, variable: L } = a, { name: V, age:
|
|
1358
|
+
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
1359
|
window.patientPopupClosehandler = () => {
|
|
1360
1360
|
if (d(!1), C(), g({
|
|
1361
1361
|
created_on: "",
|
|
@@ -1405,7 +1405,7 @@ const Tn = (...n) => {
|
|
|
1405
1405
|
children: [
|
|
1406
1406
|
En(I) || /* @__PURE__ */ e.jsx("div", { className: "hfl-top-1 hfl-h-3 hfl-w-10 hfl-rounded-3xl hfl-bg-Gray-100" }),
|
|
1407
1407
|
/* @__PURE__ */ e.jsx("div", { className: "hfl-h-[18px] hfl-w-[1px] hfl-bg-Gray-200" }),
|
|
1408
|
-
|
|
1408
|
+
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
1409
|
/* @__PURE__ */ e.jsx("div", { className: "hfl-h-[18px] hfl-w-[1px] hfl-bg-Gray-200" }),
|
|
1410
1410
|
P || /* @__PURE__ */ e.jsx("div", { className: "hfl-top-1 hfl-h-3 hfl-w-10 hfl-rounded-3xl hfl-bg-Gray-100" })
|
|
1411
1411
|
]
|
|
@@ -1571,7 +1571,7 @@ const Tn = (...n) => {
|
|
|
1571
1571
|
/* @__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" }) }),
|
|
1572
1572
|
/* @__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" }) })
|
|
1573
1573
|
] }), js = (n) => {
|
|
1574
|
-
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(),
|
|
1574
|
+
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
1575
|
try {
|
|
1576
1576
|
if (L?.status && !I) {
|
|
1577
1577
|
const D = await os(
|
|
@@ -1669,7 +1669,7 @@ const Tn = (...n) => {
|
|
|
1669
1669
|
type: "Text sm",
|
|
1670
1670
|
className: "hfl-flex hfl-cursor-pointer hfl-items-center hfl-gap-1 hfl-text-1 hfl-text-Primary-600",
|
|
1671
1671
|
onClick: async () => {
|
|
1672
|
-
await
|
|
1672
|
+
await W(!0);
|
|
1673
1673
|
},
|
|
1674
1674
|
children: [
|
|
1675
1675
|
/* @__PURE__ */ e.jsx("div", { className: "hx_rewind hfl-font-bold hfl-text-3" }),
|
|
@@ -1704,7 +1704,7 @@ const Tn = (...n) => {
|
|
|
1704
1704
|
size: "sm",
|
|
1705
1705
|
textField: L?.status ? "Submit OTP" : "Verify ABHA",
|
|
1706
1706
|
onClick: async () => {
|
|
1707
|
-
await
|
|
1707
|
+
await W();
|
|
1708
1708
|
}
|
|
1709
1709
|
}
|
|
1710
1710
|
)
|
|
@@ -1724,13 +1724,13 @@ const Tn = (...n) => {
|
|
|
1724
1724
|
isPartnerServiceEnabled: g,
|
|
1725
1725
|
insuranceData: L,
|
|
1726
1726
|
partnerConfig: V,
|
|
1727
|
-
verifyInsuranceHandler:
|
|
1727
|
+
verifyInsuranceHandler: W,
|
|
1728
1728
|
policyNumberErrorMessage: I,
|
|
1729
1729
|
selectedInsuranceDetails: D,
|
|
1730
1730
|
setSelectedInsuranceDetails: P,
|
|
1731
1731
|
insuranceDivRef: T,
|
|
1732
1732
|
patientCustomFieldData: b
|
|
1733
|
-
} = n, [ee, B] = U(!1), [H, z] = U([]), [Q, Y] = U([]), [ne,
|
|
1733
|
+
} = 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
1734
|
phone_number: X,
|
|
1735
1735
|
age: ce,
|
|
1736
1736
|
org_person_dob: M,
|
|
@@ -1773,7 +1773,7 @@ const Tn = (...n) => {
|
|
|
1773
1773
|
const { value: ve } = E.target, Rt = wt(ve);
|
|
1774
1774
|
z(Rt);
|
|
1775
1775
|
}, yr = (E) => {
|
|
1776
|
-
yt("occupation", E.trim()),
|
|
1776
|
+
yt("occupation", E.trim()), O(!1);
|
|
1777
1777
|
}, Rr = (E) => {
|
|
1778
1778
|
yt("city", E.trim()), we(!1);
|
|
1779
1779
|
}, gr = (E) => {
|
|
@@ -2482,10 +2482,10 @@ const Tn = (...n) => {
|
|
|
2482
2482
|
value: u?.occupation,
|
|
2483
2483
|
placeholder: "Enter Occupation",
|
|
2484
2484
|
onChange: (E) => {
|
|
2485
|
-
yt("occupation", E.target.value),
|
|
2485
|
+
yt("occupation", E.target.value), O(!0), gr(E);
|
|
2486
2486
|
},
|
|
2487
2487
|
onBlur: (E) => {
|
|
2488
|
-
E.stopPropagation(),
|
|
2488
|
+
E.stopPropagation(), O(!1);
|
|
2489
2489
|
}
|
|
2490
2490
|
},
|
|
2491
2491
|
width: 23.5 + "em"
|
|
@@ -2644,7 +2644,7 @@ const Tn = (...n) => {
|
|
|
2644
2644
|
className: "hfl-ml-4 hfl-px-4 hfl-py-[1.2rem]",
|
|
2645
2645
|
hierarchy: "Primary",
|
|
2646
2646
|
size: "md",
|
|
2647
|
-
onClick: () =>
|
|
2647
|
+
onClick: () => W(D),
|
|
2648
2648
|
textField: u?.insurance_details?.policy_id ? "Verified" : "Verify",
|
|
2649
2649
|
style: {
|
|
2650
2650
|
pointerEvents: u?.insurance_details?.policy_id ? "none" : "unset"
|
|
@@ -2661,14 +2661,14 @@ const Tn = (...n) => {
|
|
|
2661
2661
|
] })
|
|
2662
2662
|
] }) });
|
|
2663
2663
|
}), Ss = (n) => {
|
|
2664
|
-
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), [
|
|
2664
|
+
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
2665
|
docPreference: H,
|
|
2666
2666
|
patientDetails: z,
|
|
2667
2667
|
preferences: Q,
|
|
2668
2668
|
patientIDs: Y,
|
|
2669
2669
|
billPreferences: ne,
|
|
2670
2670
|
// ppEventProps,
|
|
2671
|
-
showToast:
|
|
2671
|
+
showToast: O,
|
|
2672
2672
|
patientCustomFieldData: me,
|
|
2673
2673
|
variable: we
|
|
2674
2674
|
} = 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({
|
|
@@ -2711,7 +2711,7 @@ const Tn = (...n) => {
|
|
|
2711
2711
|
}, xt = () => {
|
|
2712
2712
|
document.getElementById("upload-local-file")?.click();
|
|
2713
2713
|
}, Bt = () => {
|
|
2714
|
-
|
|
2714
|
+
O?.("Success", "Image deleted successfully", "Success", 3e3), h(!0), A(""), V(!1), G();
|
|
2715
2715
|
}, kt = (se) => {
|
|
2716
2716
|
A(se), h(!1), V(!1);
|
|
2717
2717
|
}, G = () => {
|
|
@@ -2770,7 +2770,7 @@ const Tn = (...n) => {
|
|
|
2770
2770
|
we
|
|
2771
2771
|
), { data: Pe } = Be || {};
|
|
2772
2772
|
if (Pe.status_code === 200)
|
|
2773
|
-
ce(""),
|
|
2773
|
+
ce(""), O?.("Insurance Verified Successfully", "", "Success", 3e3);
|
|
2774
2774
|
else if (Pe?.error || Be?.status === 500)
|
|
2775
2775
|
throw ce("Policy Number is Incorrect"), console.log(Pe?.error), new Error(Pe?.error);
|
|
2776
2776
|
}
|
|
@@ -2778,15 +2778,15 @@ const Tn = (...n) => {
|
|
|
2778
2778
|
const Pe = new FormData();
|
|
2779
2779
|
Pe.append("pid", se), Pe.append("bidstr", Be), Pe.append("imgData", a);
|
|
2780
2780
|
const mt = await rs(Pe, we);
|
|
2781
|
-
mt.apiError &&
|
|
2781
|
+
mt.apiError && O?.("Error", mt.apiError, "Error", 3e3);
|
|
2782
2782
|
}, J = async (se) => {
|
|
2783
2783
|
const Be = new FormData();
|
|
2784
2784
|
Be.append("pid", se);
|
|
2785
2785
|
const Pe = await Ni(Be, we);
|
|
2786
|
-
Pe.apiError &&
|
|
2786
|
+
Pe.apiError && O("Error", Pe.apiError, "Error", 3e3);
|
|
2787
2787
|
}, Z = async (se = it?.name ?? "", Be = it?.org_person_dob ?? "") => {
|
|
2788
2788
|
if (!it || !Y?.patientRoleID) {
|
|
2789
|
-
|
|
2789
|
+
O?.("Error", "Patient data not available.", "Error", 3e3);
|
|
2790
2790
|
return;
|
|
2791
2791
|
}
|
|
2792
2792
|
const Pe = {
|
|
@@ -2797,7 +2797,7 @@ const Tn = (...n) => {
|
|
|
2797
2797
|
try {
|
|
2798
2798
|
it.image_link && !a ? await J(Y.patientRoleID) : a && k && (await le(Y.patientRoleID, _e), g(!1));
|
|
2799
2799
|
const mt = await Xi(Pe, we, Y);
|
|
2800
|
-
mt.status ? (
|
|
2800
|
+
mt.status ? (O?.("Success", mt.message, "Success", 3e3), u(Y.patientRoleID)) : O?.("Error", mt.message, "Error", 3e3);
|
|
2801
2801
|
} catch (mt) {
|
|
2802
2802
|
console.error("Error updating patient details:", mt);
|
|
2803
2803
|
}
|
|
@@ -2821,7 +2821,7 @@ const Tn = (...n) => {
|
|
|
2821
2821
|
setPatientData: We,
|
|
2822
2822
|
patientData: it,
|
|
2823
2823
|
preferences: Q,
|
|
2824
|
-
referredByDocList:
|
|
2824
|
+
referredByDocList: W,
|
|
2825
2825
|
throughChannelList: D,
|
|
2826
2826
|
showImageFromLink: kt,
|
|
2827
2827
|
setValidators: gt,
|
|
@@ -3086,7 +3086,7 @@ function Ds() {
|
|
|
3086
3086
|
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;
|
|
3087
3087
|
}, {});
|
|
3088
3088
|
}
|
|
3089
|
-
var
|
|
3089
|
+
var W = function(t, o) {
|
|
3090
3090
|
return o === void 0 && (o = {}), function(f) {
|
|
3091
3091
|
return f === void 0 && (f = {}), [].concat(t, [f]).reduce(function(p, w) {
|
|
3092
3092
|
return function _(R, q, K) {
|
|
@@ -3187,7 +3187,7 @@ function Ds() {
|
|
|
3187
3187
|
if (!o) throw console.error(t), new Error("A column ID (or string accessor) is required!");
|
|
3188
3188
|
return Object.assign(t, { id: o, accessor: f }), t;
|
|
3189
3189
|
}
|
|
3190
|
-
function
|
|
3190
|
+
function O(t, o) {
|
|
3191
3191
|
if (!o) throw new Error();
|
|
3192
3192
|
return Object.assign(t, a({ Header: g, Footer: g }, L, {}, o, {}, t)), Object.assign(t, { originalWidth: t.width }), t;
|
|
3193
3193
|
}
|
|
@@ -3203,7 +3203,7 @@ function Ds() {
|
|
|
3203
3203
|
});
|
|
3204
3204
|
w.forEach(function(ue) {
|
|
3205
3205
|
var fe, ae = [].concat(te).reverse()[0];
|
|
3206
|
-
ge && (ue.parent ? fe = a({}, ue.parent, { originalId: ue.parent.id, id: ue.parent.id + "_" + R(), headers: [ue] }, f(ue)) : fe =
|
|
3206
|
+
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);
|
|
3207
3207
|
}), p.push(K), w = te;
|
|
3208
3208
|
}; w.length; ) q();
|
|
3209
3209
|
return p.reverse();
|
|
@@ -3319,11 +3319,11 @@ function Ds() {
|
|
|
3319
3319
|
return p({ type: h.setHiddenColumns, value: Se });
|
|
3320
3320
|
}, [p]), ae = i.useCallback(function(Se) {
|
|
3321
3321
|
return p({ type: h.toggleHideAllColumns, value: Se });
|
|
3322
|
-
}, [p]), de =
|
|
3322
|
+
}, [p]), de = W(_().getToggleHideAllColumnsProps, { instance: te() });
|
|
3323
3323
|
f.forEach(function(Se) {
|
|
3324
3324
|
Se.toggleHidden = function(ke) {
|
|
3325
3325
|
p({ type: h.toggleHideColumn, columnId: Se.id, value: ke });
|
|
3326
|
-
}, Se.getToggleHiddenProps =
|
|
3326
|
+
}, Se.getToggleHiddenProps = W(_().getToggleHiddenProps, { instance: te(), column: Se });
|
|
3327
3327
|
});
|
|
3328
3328
|
var Ce = b(K);
|
|
3329
3329
|
B(function() {
|
|
@@ -3436,14 +3436,14 @@ function Ds() {
|
|
|
3436
3436
|
qe = Math.max(qe, Pt.length);
|
|
3437
3437
|
}), qe;
|
|
3438
3438
|
}(de);
|
|
3439
|
-
}, [de]), Ee = b(t), Je =
|
|
3439
|
+
}, [de]), Ee = b(t), Je = W(fe().getToggleAllRowsExpandedProps, { instance: Ee() });
|
|
3440
3440
|
Object.assign(t, { preExpandedRows: f, expandedRows: xe, rows: xe, expandedDepth: rt, isAllRowsExpanded: ke, toggleRowExpanded: at, toggleAllRowsExpanded: Ve, getToggleAllRowsExpandedProps: Je });
|
|
3441
3441
|
}
|
|
3442
3442
|
function cr(t, o) {
|
|
3443
3443
|
var f = o.instance.getHooks, p = o.instance;
|
|
3444
3444
|
t.toggleRowExpanded = function(w) {
|
|
3445
3445
|
return p.toggleRowExpanded(t.id, w);
|
|
3446
|
-
}, t.getToggleRowExpandedProps =
|
|
3446
|
+
}, t.getToggleRowExpandedProps = W(f().getToggleRowExpandedProps, { instance: p, row: t });
|
|
3447
3447
|
}
|
|
3448
3448
|
var yr = function(t, o, f) {
|
|
3449
3449
|
return t = t.filter(function(p) {
|
|
@@ -3769,7 +3769,7 @@ function Ds() {
|
|
|
3769
3769
|
de({ type: h.setGroupBy, value: c });
|
|
3770
3770
|
}, [de]);
|
|
3771
3771
|
R.forEach(function(c) {
|
|
3772
|
-
c.getGroupByToggleProps =
|
|
3772
|
+
c.getGroupByToggleProps = W(Ve().getGroupByToggleProps, { instance: xe(), header: c });
|
|
3773
3773
|
});
|
|
3774
3774
|
var Je = i.useMemo(function() {
|
|
3775
3775
|
if (te || !ae.length) return [f, p, w, dr, Hr, p, w];
|
|
@@ -3927,7 +3927,7 @@ function Ds() {
|
|
|
3927
3927
|
return Ve(qe.id, c, s);
|
|
3928
3928
|
}, qe.clearSortBy = function() {
|
|
3929
3929
|
ae({ type: h.clearSortBy, columnId: qe.id });
|
|
3930
|
-
}), qe.getSortByToggleProps =
|
|
3930
|
+
}), qe.getSortByToggleProps = W(Ce().getSortByToggleProps, { instance: xe(), column: qe });
|
|
3931
3931
|
var l = fe.find(function(c) {
|
|
3932
3932
|
return c.id === Ct;
|
|
3933
3933
|
});
|
|
@@ -4116,7 +4116,7 @@ function Ds() {
|
|
|
4116
4116
|
return t.togglePivot(de.id);
|
|
4117
4117
|
}), de.Aggregated = de.Aggregated || de.Cell;
|
|
4118
4118
|
}), p.forEach(function(de) {
|
|
4119
|
-
de.getPivotToggleProps =
|
|
4119
|
+
de.getPivotToggleProps = W(w().getPivotToggleProps, { instance: fe(), header: de });
|
|
4120
4120
|
});
|
|
4121
4121
|
var ae = b(K);
|
|
4122
4122
|
B(function() {
|
|
@@ -4225,14 +4225,14 @@ function Ds() {
|
|
|
4225
4225
|
return ae({ type: h.toggleAllPageRowsSelected, value: Ke });
|
|
4226
4226
|
}, [ae]), Ee = i.useCallback(function(Ke, Pt) {
|
|
4227
4227
|
return ae({ type: h.toggleRowSelected, id: Ke, value: Pt });
|
|
4228
|
-
}, [ae]), Je = b(t), vt =
|
|
4228
|
+
}, [ae]), Je = b(t), vt = W(p().getToggleAllRowsSelectedProps, { instance: Je() }), qe = W(p().getToggleAllPageRowsSelectedProps, { instance: Je() });
|
|
4229
4229
|
Object.assign(t, { selectedFlatRows: Se, isAllRowsSelected: ke, isAllPageRowsSelected: at, toggleRowSelected: Ee, toggleAllRowsSelected: xe, getToggleAllRowsSelectedProps: vt, getToggleAllPageRowsSelectedProps: qe, toggleAllPageRowsSelected: rt });
|
|
4230
4230
|
}
|
|
4231
4231
|
function ha(t, o) {
|
|
4232
4232
|
var f = o.instance;
|
|
4233
4233
|
t.toggleRowSelected = function(p) {
|
|
4234
4234
|
return f.toggleRowSelected(t.id, p);
|
|
4235
|
-
}, t.getToggleRowSelectedProps =
|
|
4235
|
+
}, t.getToggleRowSelectedProps = W(f.getHooks().getToggleRowSelectedProps, { instance: f, row: t });
|
|
4236
4236
|
}
|
|
4237
4237
|
var Pl = function(t) {
|
|
4238
4238
|
return {};
|
|
@@ -4378,7 +4378,7 @@ function Ds() {
|
|
|
4378
4378
|
var o = t.flatHeaders, f = t.disableResizing, p = t.getHooks, w = t.state.columnResizing, _ = b(t);
|
|
4379
4379
|
o.forEach(function(R) {
|
|
4380
4380
|
var q = _e(R.disableResizing !== !0 && void 0, f !== !0 && void 0, !0);
|
|
4381
|
-
R.canResize = q, R.width = w.columnWidths[R.id] || R.originalWidth || R.width, R.isResizing = w.isResizingColumn === R.id, q && (R.getResizerProps =
|
|
4381
|
+
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 }));
|
|
4382
4382
|
});
|
|
4383
4383
|
};
|
|
4384
4384
|
function ya(t) {
|
|
@@ -4493,7 +4493,7 @@ function Ds() {
|
|
|
4493
4493
|
var o, f = (o = document.getElementById("header-cell-" + t)) == null ? void 0 : o.offsetWidth;
|
|
4494
4494
|
if (f !== void 0) return f;
|
|
4495
4495
|
}
|
|
4496
|
-
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 =
|
|
4496
|
+
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
4497
|
o === void 0 && (o = 0);
|
|
4498
4498
|
var f = i.useRef({}), p = b(t), w = b(o);
|
|
4499
4499
|
return i.useCallback(function() {
|
|
@@ -4569,7 +4569,7 @@ function Ds() {
|
|
|
4569
4569
|
Object.assign(_(), { rows: qe, initialRows: [].concat(qe), flatRows: Ke, rowsById: Pt }), D(R().useInstanceAfterData, _());
|
|
4570
4570
|
var et = i.useMemo(function() {
|
|
4571
4571
|
return I(R().visibleColumns, Je, { instance: _() }).map(function(m) {
|
|
4572
|
-
return
|
|
4572
|
+
return O(m, ue);
|
|
4573
4573
|
});
|
|
4574
4574
|
}, [R, Je, _, ue].concat(I(R().visibleColumnsDeps, [], { instance: _() })));
|
|
4575
4575
|
Je = i.useMemo(function() {
|
|
@@ -4602,7 +4602,7 @@ function Ds() {
|
|
|
4602
4602
|
}, [et, l]), _().visibleColumns = et;
|
|
4603
4603
|
var c = sr(r), s = c[0], x = c[1], y = c[2];
|
|
4604
4604
|
return _().totalColumnsMinWidth = s, _().totalColumnsWidth = x, _().totalColumnsMaxWidth = y, D(R().useInstance, _()), [].concat(_().flatHeaders, _().allColumns).forEach(function(m) {
|
|
4605
|
-
m.render = H(_(), m), m.getHeaderProps =
|
|
4605
|
+
m.render = H(_(), m), m.getHeaderProps = W(R().getHeaderProps, { instance: _(), column: m }), m.getFooterProps = W(R().getFooterProps, { instance: _(), column: m });
|
|
4606
4606
|
}), _().headerGroups = i.useMemo(function() {
|
|
4607
4607
|
return Ct.filter(function(m, j) {
|
|
4608
4608
|
return m.headers = m.headers.filter(function(F) {
|
|
@@ -4611,18 +4611,18 @@ function Ds() {
|
|
|
4611
4611
|
return ye.headers ? $(ye.headers) : ye.isVisible;
|
|
4612
4612
|
}).length;
|
|
4613
4613
|
}(F.headers) : F.isVisible;
|
|
4614
|
-
}), !!m.headers.length && (m.getHeaderGroupProps =
|
|
4614
|
+
}), !!m.headers.length && (m.getHeaderGroupProps = W(R().getHeaderGroupProps, { instance: _(), headerGroup: m, index: j }), m.getFooterGroupProps = W(R().getFooterGroupProps, { instance: _(), headerGroup: m, index: j }), !0);
|
|
4615
4615
|
});
|
|
4616
4616
|
}, [Ct, _, R]), _().footerGroups = [].concat(_().headerGroups).reverse(), _().prepareRow = i.useCallback(function(m) {
|
|
4617
|
-
m.getRowProps =
|
|
4617
|
+
m.getRowProps = W(R().getRowProps, { instance: _(), row: m }), m.allCells = Je.map(function(j) {
|
|
4618
4618
|
var F = m.values[j.id], $ = { column: j, row: m, value: F };
|
|
4619
|
-
return $.getCellProps =
|
|
4619
|
+
return $.getCellProps = W(R().getCellProps, { instance: _(), cell: $ }), $.render = H(_(), j, { row: m, cell: $, value: F }), $;
|
|
4620
4620
|
}), m.cells = et.map(function(j) {
|
|
4621
4621
|
return m.allCells.find(function(F) {
|
|
4622
4622
|
return F.column.id === j.id;
|
|
4623
4623
|
});
|
|
4624
4624
|
}), D(R().prepareRow, m, { instance: _() });
|
|
4625
|
-
}, [R, _, Je, et]), _().getTableProps =
|
|
4625
|
+
}, [R, _, Je, et]), _().getTableProps = W(R().getTableProps, { instance: _() }), _().getTableBodyProps = W(R().getTableBodyProps, { instance: _() }), D(R().useFinalInstance, _()), _();
|
|
4626
4626
|
}, Object.defineProperty(d, "__esModule", { value: !0 });
|
|
4627
4627
|
});
|
|
4628
4628
|
}(il, il.exports)), il.exports;
|
|
@@ -4696,7 +4696,7 @@ function Is() {
|
|
|
4696
4696
|
return s;
|
|
4697
4697
|
}, V = function() {
|
|
4698
4698
|
return i.createElement(i.Fragment, null, " ");
|
|
4699
|
-
},
|
|
4699
|
+
}, W = {
|
|
4700
4700
|
Cell: L,
|
|
4701
4701
|
width: 150,
|
|
4702
4702
|
minWidth: 0,
|
|
@@ -4831,12 +4831,12 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
4831
4831
|
var y = typeof s == "string" ? l[s] : s;
|
|
4832
4832
|
if (typeof y > "u")
|
|
4833
4833
|
throw console.info(l), new Error(k);
|
|
4834
|
-
return
|
|
4834
|
+
return O(y, a({}, r, {
|
|
4835
4835
|
column: l
|
|
4836
4836
|
}, c, {}, x));
|
|
4837
4837
|
};
|
|
4838
4838
|
}
|
|
4839
|
-
function
|
|
4839
|
+
function O(r, l) {
|
|
4840
4840
|
return me(r) ? i.createElement(r, l) : r;
|
|
4841
4841
|
}
|
|
4842
4842
|
function me(r) {
|
|
@@ -4887,7 +4887,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
4887
4887
|
// Make sure there is a fallback header, just in case
|
|
4888
4888
|
Header: V,
|
|
4889
4889
|
Footer: V
|
|
4890
|
-
},
|
|
4890
|
+
}, W, {}, l, {}, r)), Object.assign(r, {
|
|
4891
4891
|
originalWidth: r.width
|
|
4892
4892
|
}), r;
|
|
4893
4893
|
}
|
|
@@ -6226,7 +6226,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
6226
6226
|
string: ua,
|
|
6227
6227
|
number: Cl
|
|
6228
6228
|
});
|
|
6229
|
-
g.resetSortBy = "resetSortBy", g.setSortBy = "setSortBy", g.toggleSortBy = "toggleSortBy", g.clearSortBy = "clearSortBy",
|
|
6229
|
+
g.resetSortBy = "resetSortBy", g.setSortBy = "setSortBy", g.toggleSortBy = "toggleSortBy", g.clearSortBy = "clearSortBy", W.sortType = "alphanumeric", W.sortDescFirst = !1;
|
|
6230
6230
|
var jl = function(l) {
|
|
6231
6231
|
l.getSortByToggleProps = [ha], l.stateReducers.push(Pl), l.useInstance.push(Sl);
|
|
6232
6232
|
};
|
|
@@ -6923,7 +6923,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
6923
6923
|
});
|
|
6924
6924
|
}, [l]);
|
|
6925
6925
|
}
|
|
6926
|
-
|
|
6926
|
+
W.canResize = !0, g.columnStartResizing = "columnStartResizing", g.columnResizing = "columnResizing", g.columnDoneResizing = "columnDoneResizing", g.resetResize = "resetResize";
|
|
6927
6927
|
var R = function(l) {
|
|
6928
6928
|
l.getResizerProps = [q], l.getHeaderProps.push({
|
|
6929
6929
|
style: {
|
|
@@ -7301,7 +7301,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
7301
7301
|
if (c !== void 0)
|
|
7302
7302
|
return c;
|
|
7303
7303
|
}
|
|
7304
|
-
d._UNSTABLE_usePivotColumns = Al, d.actions = g, d.defaultColumn =
|
|
7304
|
+
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 });
|
|
7305
7305
|
});
|
|
7306
7306
|
}(sl, sl.exports)), sl.exports;
|
|
7307
7307
|
}
|
|
@@ -7321,7 +7321,7 @@ const Bs = ({
|
|
|
7321
7321
|
setTableData: A,
|
|
7322
7322
|
handleRightSegment: S
|
|
7323
7323
|
}) => {
|
|
7324
|
-
const h = Mr(null), [k, g] = U(i?.original?.service_name || ""), [L, V] = U(!1), [
|
|
7324
|
+
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
7325
|
(H) => {
|
|
7326
7326
|
h.current && !h.current.contains(H.target) && (D && v && g(""), V(!1));
|
|
7327
7327
|
},
|
|
@@ -7333,7 +7333,7 @@ const Bs = ({
|
|
|
7333
7333
|
const b = (H) => {
|
|
7334
7334
|
if (P(!0), V(!0), u?.length > 0) {
|
|
7335
7335
|
const Q = u.filter((Y) => Y.service_name.toLowerCase().includes(H.target.value.toLowerCase())).sort((Y, ne) => {
|
|
7336
|
-
const
|
|
7336
|
+
const O = H.target.value.toLowerCase(), me = Y.service_name.toLowerCase().startsWith(O), we = ne.service_name.toLowerCase().startsWith(O);
|
|
7337
7337
|
return me && !we ? -1 : !me && we ? 1 : Y.service_name.localeCompare(ne.service_name);
|
|
7338
7338
|
});
|
|
7339
7339
|
I(Q);
|
|
@@ -7414,7 +7414,7 @@ const Bs = ({
|
|
|
7414
7414
|
{
|
|
7415
7415
|
ref: h,
|
|
7416
7416
|
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",
|
|
7417
|
-
children:
|
|
7417
|
+
children: W.map((H, z) => /* @__PURE__ */ e.jsx(
|
|
7418
7418
|
ll,
|
|
7419
7419
|
{
|
|
7420
7420
|
label: H.service_name,
|
|
@@ -7450,7 +7450,7 @@ const Bs = ({
|
|
|
7450
7450
|
addBillButton: g,
|
|
7451
7451
|
tableBodyData: L,
|
|
7452
7452
|
handleEditRow: V,
|
|
7453
|
-
handleRightSegment:
|
|
7453
|
+
handleRightSegment: W,
|
|
7454
7454
|
tableData: I,
|
|
7455
7455
|
setTableData: D,
|
|
7456
7456
|
setEditRowId: P,
|
|
@@ -7562,7 +7562,7 @@ const Bs = ({
|
|
|
7562
7562
|
isDisabled: k,
|
|
7563
7563
|
handleValueChange: H,
|
|
7564
7564
|
setTableData: D,
|
|
7565
|
-
handleRightSegment:
|
|
7565
|
+
handleRightSegment: W
|
|
7566
7566
|
}
|
|
7567
7567
|
)
|
|
7568
7568
|
}
|
|
@@ -7692,7 +7692,7 @@ const Bs = ({
|
|
|
7692
7692
|
{
|
|
7693
7693
|
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"} `,
|
|
7694
7694
|
onClick: (Ae) => {
|
|
7695
|
-
Ae.stopPropagation(),
|
|
7695
|
+
Ae.stopPropagation(), W(), Y(M, M.id);
|
|
7696
7696
|
}
|
|
7697
7697
|
}
|
|
7698
7698
|
)
|
|
@@ -7701,9 +7701,9 @@ const Bs = ({
|
|
|
7701
7701
|
}
|
|
7702
7702
|
],
|
|
7703
7703
|
[C, A, i?.service_list]
|
|
7704
|
-
),
|
|
7704
|
+
), O = Kt(() => k ? L : ee, [ee, L]), { getTableProps: me, getTableBodyProps: we, headerGroups: _e, rows: tt, prepareRow: he } = dl.useTable({
|
|
7705
7705
|
columns: ne,
|
|
7706
|
-
data:
|
|
7706
|
+
data: O
|
|
7707
7707
|
}), X = (M) => {
|
|
7708
7708
|
const Ae = [];
|
|
7709
7709
|
return M?.headers?.length && M.headers.map((Fe) => {
|
|
@@ -7738,7 +7738,7 @@ const Bs = ({
|
|
|
7738
7738
|
...He.getCellProps(),
|
|
7739
7739
|
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" : ""} `,
|
|
7740
7740
|
onClick: (pt) => {
|
|
7741
|
-
gt === 6 ? (pt.stopPropagation(),
|
|
7741
|
+
gt === 6 ? (pt.stopPropagation(), W()) : z(Ae);
|
|
7742
7742
|
},
|
|
7743
7743
|
children: /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text sm", className: "", children: He.render("Cell") })
|
|
7744
7744
|
}
|
|
@@ -7800,7 +7800,7 @@ const Bs = ({
|
|
|
7800
7800
|
getPastDueAmount: g,
|
|
7801
7801
|
handleRightSegment: L,
|
|
7802
7802
|
serviceItem: V,
|
|
7803
|
-
date:
|
|
7803
|
+
date: W,
|
|
7804
7804
|
refreshBillsList: I,
|
|
7805
7805
|
deleteLastPaymemntMode: D = !1,
|
|
7806
7806
|
setDeleteLastPaymentMode: P = () => {
|
|
@@ -7813,7 +7813,7 @@ const Bs = ({
|
|
|
7813
7813
|
if (a) return "discount";
|
|
7814
7814
|
if (A) return "refund";
|
|
7815
7815
|
if (S) return "deposit_refund";
|
|
7816
|
-
}, { patientIDs: B, showToast: H, billPreferences: z, getLastBillsPaymentData: Q, variable: Y } = Lt(Mt) || {}, [ne,
|
|
7816
|
+
}, { 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
7817
|
color: "#98A2B3",
|
|
7818
7818
|
fontFamily: "Inter",
|
|
7819
7819
|
fontSize: "14px",
|
|
@@ -7863,7 +7863,7 @@ const Bs = ({
|
|
|
7863
7863
|
{ key: "refund", label: "Refund" },
|
|
7864
7864
|
{ key: "deposit_refund", label: "Refund" }
|
|
7865
7865
|
].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) => {
|
|
7866
|
-
|
|
7866
|
+
O(le);
|
|
7867
7867
|
}, kt = (le) => {
|
|
7868
7868
|
const J = (le === "payment" ? me.length : le === "discount" ? _e.length : he.length) + 1;
|
|
7869
7869
|
le === "payment" && C && me.length < 2 ? we([
|
|
@@ -7888,7 +7888,7 @@ const Bs = ({
|
|
|
7888
7888
|
d?.bill_summary ? le = Object.entries(d?.bill_summary).map(([Be, Pe]) => ({
|
|
7889
7889
|
order_id: Pe?.order_id,
|
|
7890
7890
|
amount: Number(Pe?.balance_amount),
|
|
7891
|
-
order_date: Te(
|
|
7891
|
+
order_date: Te(W).format("YYYY-MM-DD"),
|
|
7892
7892
|
service_category_id: Number(Be)
|
|
7893
7893
|
})).filter((Be) => Be.amount !== 0) : d?.balance_amount && le.push({ amount: parseInt(d?.balance_amount) });
|
|
7894
7894
|
const J = h ? (i?.bill_amount_details ?? []).map((Be) => ({
|
|
@@ -7896,7 +7896,7 @@ const Bs = ({
|
|
|
7896
7896
|
amount: Number(Be.balance_amount) || 0
|
|
7897
7897
|
})) : [];
|
|
7898
7898
|
return [...le, ...J].reduce((Be, Pe) => Be + Pe.amount, 0);
|
|
7899
|
-
}, [d, h, i?.bill_amount_details,
|
|
7899
|
+
}, [d, h, i?.bill_amount_details, W]), Ie = $t(() => T <= G ? T : G, [G, T]);
|
|
7900
7900
|
Ye(() => {
|
|
7901
7901
|
const le = Ie();
|
|
7902
7902
|
ne !== "deposit" && ne !== "deposit_refund" && we((J) => {
|
|
@@ -8095,7 +8095,7 @@ const Bs = ({
|
|
|
8095
8095
|
const le = Object.entries(d?.bill_summary).map(([Pe, mt]) => ({
|
|
8096
8096
|
order_id: mt?.order_id,
|
|
8097
8097
|
amount: Number(mt?.balance_amount),
|
|
8098
|
-
order_date: Te(
|
|
8098
|
+
order_date: Te(W).format("YYYY-MM-DD"),
|
|
8099
8099
|
service_category_id: +Pe
|
|
8100
8100
|
})).filter((Pe) => Pe.amount !== 0), J = h ? i?.bill_amount_details.map((Pe) => ({
|
|
8101
8101
|
order_id: Pe.order_id,
|
|
@@ -8122,7 +8122,7 @@ const Bs = ({
|
|
|
8122
8122
|
B?.patientRoleID || "",
|
|
8123
8123
|
Y
|
|
8124
8124
|
);
|
|
8125
|
-
Pe ? (it("payment", 1), H("Success", Pe?.message, "Success", 3e3), b?.((mt) => !mt), k?.(), I?.(
|
|
8125
|
+
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
8126
|
}
|
|
8127
8127
|
else
|
|
8128
8128
|
H(
|
|
@@ -8166,7 +8166,7 @@ const Bs = ({
|
|
|
8166
8166
|
} catch (Z) {
|
|
8167
8167
|
M(!1), H("Error", Z.data.message, "Error", 3e3);
|
|
8168
8168
|
}
|
|
8169
|
-
le && (it("payment", 1), H("Success", le?.message, "Success", 3e3), k?.(), I?.(
|
|
8169
|
+
le && (it("payment", 1), H("Success", le?.message, "Success", 3e3), k?.(), I?.(W), g?.(), await Q(B?.patientRoleID || ""), L(), M(!1));
|
|
8170
8170
|
}
|
|
8171
8171
|
}
|
|
8172
8172
|
}
|
|
@@ -8239,7 +8239,7 @@ const Bs = ({
|
|
|
8239
8239
|
} catch (Z) {
|
|
8240
8240
|
M(!1), console.error("Error in updateBill", Z);
|
|
8241
8241
|
}
|
|
8242
|
-
le && (H("Success", le?.message, "Success", 3e3), k?.(), I?.(
|
|
8242
|
+
le && (H("Success", le?.message, "Success", 3e3), k?.(), I?.(W), g?.(), L(), M(!1));
|
|
8243
8243
|
}
|
|
8244
8244
|
}
|
|
8245
8245
|
)
|
|
@@ -8386,7 +8386,7 @@ const Bs = ({
|
|
|
8386
8386
|
} catch (Z) {
|
|
8387
8387
|
console.error("Error in update refund", Z), M(!1);
|
|
8388
8388
|
}
|
|
8389
|
-
le && (H("Success", le?.message, "Success", 3e3), k?.(), I?.(
|
|
8389
|
+
le && (H("Success", le?.message, "Success", 3e3), k?.(), I?.(W), g?.(), L(), M(!1));
|
|
8390
8390
|
}
|
|
8391
8391
|
}
|
|
8392
8392
|
)
|
|
@@ -8541,7 +8541,7 @@ const Bs = ({
|
|
|
8541
8541
|
getPastDueAmount: g,
|
|
8542
8542
|
refreshBillsList: L,
|
|
8543
8543
|
walletBalance: V = 0,
|
|
8544
|
-
setRefreshWallet:
|
|
8544
|
+
setRefreshWallet: W
|
|
8545
8545
|
} = n, [I, D] = U(!1), [P, T] = U(!1), b = () => {
|
|
8546
8546
|
T(!0), D(!0);
|
|
8547
8547
|
}, ee = () => {
|
|
@@ -8834,7 +8834,7 @@ const Bs = ({
|
|
|
8834
8834
|
deleteLastPaymemntMode: P,
|
|
8835
8835
|
setDeleteLastPaymentMode: T,
|
|
8836
8836
|
walletBalance: V,
|
|
8837
|
-
setRefreshWallet:
|
|
8837
|
+
setRefreshWallet: W
|
|
8838
8838
|
}
|
|
8839
8839
|
)
|
|
8840
8840
|
] }),
|
|
@@ -8878,7 +8878,7 @@ const Bs = ({
|
|
|
8878
8878
|
setTableData: a,
|
|
8879
8879
|
refreshBillsList: A,
|
|
8880
8880
|
handleRevertEdit: S
|
|
8881
|
-
} = n, { patientIDs: h, showToast: k, doctorListArr: g, billPreferences: L, formattedService: V, ppEventProps:
|
|
8881
|
+
} = n, { patientIDs: h, showToast: k, doctorListArr: g, billPreferences: L, formattedService: V, ppEventProps: W, variable: I } = Lt(Mt), [D, P] = U(), T = {
|
|
8882
8882
|
bill_item_details: {
|
|
8883
8883
|
doctor_name: I.window_var.doc_name_for_seg,
|
|
8884
8884
|
referrer_doctor_role_id: I.window_var.doctor_role_id_for_seg,
|
|
@@ -8905,10 +8905,10 @@ const Bs = ({
|
|
|
8905
8905
|
} : ne = {
|
|
8906
8906
|
doctor_name: Y.docName,
|
|
8907
8907
|
referrer_doctor_role_id: Y.docRoleID
|
|
8908
|
-
}, ee((
|
|
8909
|
-
...
|
|
8908
|
+
}, ee((O) => ({
|
|
8909
|
+
...O,
|
|
8910
8910
|
bill_item_details: {
|
|
8911
|
-
...
|
|
8911
|
+
...O.bill_item_details,
|
|
8912
8912
|
...ne
|
|
8913
8913
|
}
|
|
8914
8914
|
}));
|
|
@@ -9055,13 +9055,13 @@ const Bs = ({
|
|
|
9055
9055
|
k,
|
|
9056
9056
|
h.patientRoleID,
|
|
9057
9057
|
Te(v).format("YYYY-MM-DD"),
|
|
9058
|
-
|
|
9058
|
+
W,
|
|
9059
9059
|
Nt[2],
|
|
9060
9060
|
I
|
|
9061
9061
|
);
|
|
9062
9062
|
b.bill_item_details.lab_owner_name && ns(b.bill_item_details.lab_owner_name, h?.patientRoleID || "", I), Q && (a(
|
|
9063
9063
|
(Y) => Y.map(
|
|
9064
|
-
(ne,
|
|
9064
|
+
(ne, O) => C == O.toString() ? {
|
|
9065
9065
|
...ne,
|
|
9066
9066
|
order_item_id: Q.order_item_id || b.order_item_id
|
|
9067
9067
|
} : ne
|
|
@@ -9102,7 +9102,7 @@ const Bs = ({
|
|
|
9102
9102
|
getBillSummarydata: g,
|
|
9103
9103
|
editedTableData: L,
|
|
9104
9104
|
setTableData: V,
|
|
9105
|
-
editRowId:
|
|
9105
|
+
editRowId: W,
|
|
9106
9106
|
refreshBillsList: I,
|
|
9107
9107
|
handleRevertEdit: D,
|
|
9108
9108
|
checkAppointmentForBilling: P
|
|
@@ -9125,7 +9125,7 @@ const Bs = ({
|
|
|
9125
9125
|
appnt_service_id: L?.service_id || "",
|
|
9126
9126
|
appnt_service_name: L?.service_name || "",
|
|
9127
9127
|
...L
|
|
9128
|
-
}, [z, Q] = U(H), [Y, ne] = U(!1),
|
|
9128
|
+
}, [z, Q] = U(H), [Y, ne] = U(!1), O = async () => {
|
|
9129
9129
|
if (L?.order_item_id)
|
|
9130
9130
|
try {
|
|
9131
9131
|
const X = await qa(
|
|
@@ -9192,7 +9192,7 @@ const Bs = ({
|
|
|
9192
9192
|
Ye(() => {
|
|
9193
9193
|
L && Q({ ...z, ...L });
|
|
9194
9194
|
}, [L]), Ye(() => {
|
|
9195
|
-
|
|
9195
|
+
O();
|
|
9196
9196
|
}, [z.order_item_id]);
|
|
9197
9197
|
const [me, we] = U(!1), _e = (X, ce) => {
|
|
9198
9198
|
Q((M) => ({
|
|
@@ -9469,7 +9469,7 @@ const Bs = ({
|
|
|
9469
9469
|
);
|
|
9470
9470
|
X && (V(
|
|
9471
9471
|
(ce) => ce.map(
|
|
9472
|
-
(M, Ae) =>
|
|
9472
|
+
(M, Ae) => W == Ae.toString() ? {
|
|
9473
9473
|
...M,
|
|
9474
9474
|
order_item_id: X.order_item_id || z.order_item_id
|
|
9475
9475
|
} : M
|
|
@@ -9521,7 +9521,7 @@ const Bs = ({
|
|
|
9521
9521
|
editRowId: a,
|
|
9522
9522
|
refreshBillsList: A,
|
|
9523
9523
|
handleRevertEdit: S
|
|
9524
|
-
} = n, { patientIDs: h, showToast: k, doctorListArr: g, billPreferences: L, formattedService: V, ppEventProps:
|
|
9524
|
+
} = n, { patientIDs: h, showToast: k, doctorListArr: g, billPreferences: L, formattedService: V, ppEventProps: W, variable: I } = Lt(Mt) || {}, D = {
|
|
9525
9525
|
bill_item_details: {
|
|
9526
9526
|
appointment_details: {
|
|
9527
9527
|
appnt_id: "",
|
|
@@ -9657,7 +9657,7 @@ const Bs = ({
|
|
|
9657
9657
|
k,
|
|
9658
9658
|
h?.patientRoleID || "",
|
|
9659
9659
|
Te(v).format("YYYY-MM-DD"),
|
|
9660
|
-
|
|
9660
|
+
W,
|
|
9661
9661
|
Nt[1],
|
|
9662
9662
|
I
|
|
9663
9663
|
);
|
|
@@ -9754,11 +9754,11 @@ function Os() {
|
|
|
9754
9754
|
S.toDate = function(I) {
|
|
9755
9755
|
return I === "s" && this.$offset ? A(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : V.call(this);
|
|
9756
9756
|
};
|
|
9757
|
-
var
|
|
9757
|
+
var W = S.diff;
|
|
9758
9758
|
S.diff = function(I, D, P) {
|
|
9759
|
-
if (I && this.$u === I.$u) return
|
|
9759
|
+
if (I && this.$u === I.$u) return W.call(this, I, D, P);
|
|
9760
9760
|
var T = this.local(), b = A(I).local();
|
|
9761
|
-
return
|
|
9761
|
+
return W.call(T, b, D, P);
|
|
9762
9762
|
};
|
|
9763
9763
|
};
|
|
9764
9764
|
});
|
|
@@ -9783,7 +9783,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
9783
9783
|
} = n, V = Lt(Mt);
|
|
9784
9784
|
if (!V)
|
|
9785
9785
|
throw new Error("ServiceLevelBillSummary must be used within an AppContext.Provider");
|
|
9786
|
-
const { patientDetails:
|
|
9786
|
+
const { patientDetails: W, patientIDs: I, billPreferences: D, setShowPrintModal: P, currentWindow: T, showPrintModal: b, variable: ee } = V, B = () => {
|
|
9787
9787
|
switch (C) {
|
|
9788
9788
|
case Nt[0]:
|
|
9789
9789
|
return "Consultation Bill";
|
|
@@ -9796,7 +9796,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
9796
9796
|
}
|
|
9797
9797
|
}, H = async (z, Q, Y) => {
|
|
9798
9798
|
if (b?.visible && g(), !u) return;
|
|
9799
|
-
const ne = await Gn(u.order_id, I?.patientRoleID || "", ee),
|
|
9799
|
+
const ne = await Gn(u.order_id, I?.patientRoleID || "", ee), O = d.map((He) => ({
|
|
9800
9800
|
serviceName: He.service_name,
|
|
9801
9801
|
price: +He.order_unit_item_price,
|
|
9802
9802
|
gst: +He.order_item_service_tax,
|
|
@@ -9816,20 +9816,20 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
9816
9816
|
balanceAmount: _e,
|
|
9817
9817
|
refundAmount: we
|
|
9818
9818
|
}, Ae = [
|
|
9819
|
-
|
|
9820
|
-
|
|
9821
|
-
|
|
9819
|
+
W?.age && typeof W.age == "number" ? `${W.age}y` : W?.org_person_dob ? wr(W.org_person_dob) : "",
|
|
9820
|
+
W?.gender ? cl[W.gender] : "",
|
|
9821
|
+
W?.blood_group
|
|
9822
9822
|
].filter(Boolean).join(", "), Fe = {
|
|
9823
|
-
name: `${pr(
|
|
9823
|
+
name: `${pr(W?.name ?? "")}${Ae ? ` (${Ae})` : ""}`,
|
|
9824
9824
|
billDate: Te(u.order_date).format("DD-MMM-YYYY"),
|
|
9825
|
-
mobileNumber:
|
|
9826
|
-
email:
|
|
9825
|
+
mobileNumber: W?.phone_number ?? "",
|
|
9826
|
+
email: W?.email ?? "",
|
|
9827
9827
|
billNumber: u.order_id_str,
|
|
9828
|
-
patientId:
|
|
9828
|
+
patientId: W?.org_person_bid_str ?? "",
|
|
9829
9829
|
patientIdForEmail: I?.patientRoleID ?? "",
|
|
9830
9830
|
billStatus: _e === 0 ? "PAID" : "UNPAID",
|
|
9831
|
-
address: [
|
|
9832
|
-
referredBy: ne?.lab_owner_name ? pr(ne.lab_owner_name) :
|
|
9831
|
+
address: [W?.address, W?.city, W?.pincode].filter(Boolean).join(", "),
|
|
9832
|
+
referredBy: ne?.lab_owner_name ? pr(ne.lab_owner_name) : W?.ref_doc_name ? pr(W.ref_doc_name) : "--"
|
|
9833
9833
|
};
|
|
9834
9834
|
P({
|
|
9835
9835
|
printDataFrom: "patient_popup",
|
|
@@ -9845,7 +9845,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
9845
9845
|
showPrintPreviewForBill: Q,
|
|
9846
9846
|
preferences: { ...D?.print?.bill, ...D?.org_details },
|
|
9847
9847
|
billSummaryDetails: ce,
|
|
9848
|
-
billServiceDetails:
|
|
9848
|
+
billServiceDetails: O,
|
|
9849
9849
|
billPatientDetails: Fe,
|
|
9850
9850
|
isWholeBill: !1,
|
|
9851
9851
|
payloadDataforEmail: {
|
|
@@ -10046,7 +10046,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
10046
10046
|
showToast: A,
|
|
10047
10047
|
// currentWindow,
|
|
10048
10048
|
variable: S
|
|
10049
|
-
} = Lt(Mt), [h, k] = U(/* @__PURE__ */ new Date()), [g, L] = U(), [V,
|
|
10049
|
+
} = 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
10050
|
bill_summary: {},
|
|
10051
10051
|
status: !1,
|
|
10052
10052
|
message: ""
|
|
@@ -10072,36 +10072,36 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
10072
10072
|
console.error("Error in getBillSummary API Call:", G);
|
|
10073
10073
|
}
|
|
10074
10074
|
}, He = () => {
|
|
10075
|
-
ne((G) => P.length > +
|
|
10076
|
-
...G.slice(0, +
|
|
10075
|
+
ne((G) => P.length > +O && +O >= 0 ? [
|
|
10076
|
+
...G.slice(0, +O),
|
|
10077
10077
|
{
|
|
10078
|
-
order_id: P[
|
|
10079
|
-
order_date: P[
|
|
10080
|
-
order_created_on: P[
|
|
10081
|
-
service_category: P[
|
|
10082
|
-
service_category_id: P[
|
|
10083
|
-
order_id_str: P[
|
|
10084
|
-
order_total: P[
|
|
10085
|
-
order_paid_amount: P[
|
|
10086
|
-
order_item_sum_discount: P[
|
|
10087
|
-
order_discount: P[
|
|
10088
|
-
refund_amount: P[
|
|
10089
|
-
order_service_tax: P[
|
|
10090
|
-
balance_amount: P[
|
|
10091
|
-
net_bill_amount: P[
|
|
10092
|
-
order_item_id: P[
|
|
10093
|
-
service_id: P[
|
|
10094
|
-
service_name: P[
|
|
10095
|
-
item_quantity: P[
|
|
10096
|
-
order_unit_item_price: P[
|
|
10097
|
-
order_item_price: P[
|
|
10098
|
-
order_item_discount: P[
|
|
10099
|
-
order_item_service_tax: "" + Math.floor(P[
|
|
10100
|
-
order_item_service_tax_percent: P[
|
|
10101
|
-
net_amount: P[
|
|
10102
|
-
created_on: P[
|
|
10078
|
+
order_id: P[O].order_id,
|
|
10079
|
+
order_date: P[O].order_date,
|
|
10080
|
+
order_created_on: P[O].order_created_on,
|
|
10081
|
+
service_category: P[O].service_category,
|
|
10082
|
+
service_category_id: P[O].service_category_id,
|
|
10083
|
+
order_id_str: P[O].order_id_str,
|
|
10084
|
+
order_total: P[O].order_total,
|
|
10085
|
+
order_paid_amount: P[O].order_paid_amount,
|
|
10086
|
+
order_item_sum_discount: P[O].order_item_sum_discount,
|
|
10087
|
+
order_discount: P[O].order_discount,
|
|
10088
|
+
refund_amount: P[O].refund_amount,
|
|
10089
|
+
order_service_tax: P[O].order_service_tax,
|
|
10090
|
+
balance_amount: P[O].balance_amount,
|
|
10091
|
+
net_bill_amount: P[O].net_bill_amount,
|
|
10092
|
+
order_item_id: P[O].order_item_id,
|
|
10093
|
+
service_id: P[O]?.service_id,
|
|
10094
|
+
service_name: P[O].service_name,
|
|
10095
|
+
item_quantity: P[O].item_quantity,
|
|
10096
|
+
order_unit_item_price: P[O].order_unit_item_price,
|
|
10097
|
+
order_item_price: P[O].order_item_price,
|
|
10098
|
+
order_item_discount: P[O].order_item_discount,
|
|
10099
|
+
order_item_service_tax: "" + Math.floor(P[O].order_item_service_tax),
|
|
10100
|
+
order_item_service_tax_percent: P[O].order_item_service_tax_percent,
|
|
10101
|
+
net_amount: P[O].net_amount,
|
|
10102
|
+
created_on: P[O].created_on
|
|
10103
10103
|
},
|
|
10104
|
-
...G.slice(+
|
|
10104
|
+
...G.slice(+O + 1)
|
|
10105
10105
|
] : G);
|
|
10106
10106
|
}, gt = async () => {
|
|
10107
10107
|
try {
|
|
@@ -10186,7 +10186,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
10186
10186
|
We();
|
|
10187
10187
|
}, [We]);
|
|
10188
10188
|
const st = (G = ht[0]) => {
|
|
10189
|
-
|
|
10189
|
+
W(G);
|
|
10190
10190
|
}, Dt = (G) => {
|
|
10191
10191
|
switch (G?.original?.service_category.toLowerCase()) {
|
|
10192
10192
|
case Nt[0].toLowerCase():
|
|
@@ -10419,9 +10419,9 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
10419
10419
|
bill_date: h,
|
|
10420
10420
|
handleRightSegment: st,
|
|
10421
10421
|
getBillSummarydata: Fe,
|
|
10422
|
-
editedTableData: Y?.[
|
|
10422
|
+
editedTableData: Y?.[O],
|
|
10423
10423
|
setTableData: ne,
|
|
10424
|
-
editRowId:
|
|
10424
|
+
editRowId: O,
|
|
10425
10425
|
handleRevertEdit: He,
|
|
10426
10426
|
refreshBillsList: pt,
|
|
10427
10427
|
checkAppointmentForBilling: gt
|
|
@@ -10433,9 +10433,9 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
10433
10433
|
order_date: h,
|
|
10434
10434
|
handleRightSegment: st,
|
|
10435
10435
|
getBillSummarydata: Fe,
|
|
10436
|
-
editedTableData: Y?.[
|
|
10436
|
+
editedTableData: Y?.[O],
|
|
10437
10437
|
setTableData: ne,
|
|
10438
|
-
editRowId:
|
|
10438
|
+
editRowId: O,
|
|
10439
10439
|
refreshBillsList: pt,
|
|
10440
10440
|
handleRevertEdit: He
|
|
10441
10441
|
}
|
|
@@ -10445,10 +10445,10 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
10445
10445
|
{
|
|
10446
10446
|
order_date: h,
|
|
10447
10447
|
handleRightSegment: st,
|
|
10448
|
-
editedTableData: Y?.[
|
|
10448
|
+
editedTableData: Y?.[O],
|
|
10449
10449
|
getBillSummarydata: Fe,
|
|
10450
10450
|
setTableData: ne,
|
|
10451
|
-
editRowId:
|
|
10451
|
+
editRowId: O,
|
|
10452
10452
|
refreshBillsList: pt,
|
|
10453
10453
|
handleRevertEdit: He
|
|
10454
10454
|
}
|
|
@@ -10587,7 +10587,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
10587
10587
|
), S = Kt(() => u || [], [u]), { getTableProps: h, getTableBodyProps: k, headerGroups: g, rows: L, prepareRow: V } = dl.useTable({
|
|
10588
10588
|
columns: A,
|
|
10589
10589
|
data: S
|
|
10590
|
-
}),
|
|
10590
|
+
}), W = (D) => {
|
|
10591
10591
|
const P = [];
|
|
10592
10592
|
return D?.headers?.length && D.headers.map((T) => {
|
|
10593
10593
|
P.push(
|
|
@@ -10648,7 +10648,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
10648
10648
|
{
|
|
10649
10649
|
...D.getHeaderGroupProps(),
|
|
10650
10650
|
className: "hfl-h-9 hfl-rounded-lg hfl-bg-Blue_gray-50 hfl-py-2",
|
|
10651
|
-
children:
|
|
10651
|
+
children: W(D)
|
|
10652
10652
|
}
|
|
10653
10653
|
)) }),
|
|
10654
10654
|
/* @__PURE__ */ e.jsx("tbody", { ...k(), className: "hfl-rounded-lg hfl-border-1 hfl-border-Gray-200", children: I() })
|
|
@@ -10676,11 +10676,11 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
10676
10676
|
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 }) })
|
|
10677
10677
|
] });
|
|
10678
10678
|
}, Ys = (n) => {
|
|
10679
|
-
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:
|
|
10679
|
+
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
10680
|
let b = T;
|
|
10681
10681
|
if (I(!0), b <= Math.ceil((v?.total_records || 0) / 10)) {
|
|
10682
10682
|
if (b = T + 1, b !== T) {
|
|
10683
|
-
const ee = await Ul("all",
|
|
10683
|
+
const ee = await Ul("all", W?.patientRoleID || "", b, 10, !1, D);
|
|
10684
10684
|
h((B) => [
|
|
10685
10685
|
...B,
|
|
10686
10686
|
...ee.appointments.filter((H) => H.appnt_date >= Te(/* @__PURE__ */ new Date()).format("YYYY-MM-DD"))
|
|
@@ -10697,7 +10697,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
10697
10697
|
I(!0);
|
|
10698
10698
|
const T = async () => {
|
|
10699
10699
|
try {
|
|
10700
|
-
const b = await Ul("all",
|
|
10700
|
+
const b = await Ul("all", W?.patientRoleID || "", 1, 10, !1, D);
|
|
10701
10701
|
b && (C(b), h(
|
|
10702
10702
|
b?.appointments?.filter((ee) => ee.appnt_date >= Te(/* @__PURE__ */ new Date()).format("YYYY-MM-DD"))
|
|
10703
10703
|
), g(
|
|
@@ -10708,7 +10708,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
10708
10708
|
}
|
|
10709
10709
|
};
|
|
10710
10710
|
I(!1), T();
|
|
10711
|
-
}, [
|
|
10711
|
+
}, [W?.patientRoleID, I, D]), /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-col", children: [
|
|
10712
10712
|
/* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-max-h-[550px] hfl-w-full hfl-flex-col hfl-overflow-y-scroll", children: [
|
|
10713
10713
|
S.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
10714
10714
|
/* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-w-full hfl-items-center hfl-justify-between hfl-px-3 hfl-py-2 ", children: [
|
|
@@ -10788,7 +10788,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
10788
10788
|
variable: g
|
|
10789
10789
|
} = Lt(Mt), [L, V] = U(
|
|
10790
10790
|
g.window_var?.partner_service_enabled === "1" && u?.insurance_details?.policy_id?.length ? !0 : a?.billing?.prepaid_consultation !== "1"
|
|
10791
|
-
), [
|
|
10791
|
+
), [W, I] = U("today"), [D, P] = U(!1), [T, b] = U([]), ee = (/* @__PURE__ */ new Date()).toLocaleString("en-US", {
|
|
10792
10792
|
hour: "numeric",
|
|
10793
10793
|
minute: "numeric",
|
|
10794
10794
|
hour12: !0
|
|
@@ -10845,7 +10845,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
10845
10845
|
V(
|
|
10846
10846
|
g.window_var?.partner_service_enabled === "1" && u?.insurance_details?.policy_id ? !0 : a?.billing?.prepaid_consultation !== "1"
|
|
10847
10847
|
);
|
|
10848
|
-
}, [D, a,
|
|
10848
|
+
}, [D, a, W, u, g.window_var?.partner_service_enabled]), Ye(() => {
|
|
10849
10849
|
ne((G) => L && G);
|
|
10850
10850
|
}, [L]), Ye(() => {
|
|
10851
10851
|
if (!+z?.order_item_id && !z?.order_unit_item_price) {
|
|
@@ -10866,7 +10866,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
10866
10866
|
z.appnt_service_id,
|
|
10867
10867
|
S
|
|
10868
10868
|
]);
|
|
10869
|
-
const
|
|
10869
|
+
const O = $t(
|
|
10870
10870
|
(G) => {
|
|
10871
10871
|
const { order_unit_item_price: Ie = 0, item_quantity: Ue = 0, order_item_discount: le = 0, appnt_service_id: J } = G;
|
|
10872
10872
|
if (!J) return;
|
|
@@ -10927,7 +10927,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
10927
10927
|
order_item_discount: J,
|
|
10928
10928
|
order_item_service_tax_percentage: Be
|
|
10929
10929
|
};
|
|
10930
|
-
Q(Pe),
|
|
10930
|
+
Q(Pe), O(Pe);
|
|
10931
10931
|
} else
|
|
10932
10932
|
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 }));
|
|
10933
10933
|
}, tt = () => {
|
|
@@ -10938,12 +10938,12 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
10938
10938
|
Q((Ue) => ({ ...Ue, [Ie]: G }));
|
|
10939
10939
|
};
|
|
10940
10940
|
Ye(() => {
|
|
10941
|
-
|
|
10941
|
+
O(z);
|
|
10942
10942
|
}, [
|
|
10943
10943
|
z.order_unit_item_price,
|
|
10944
10944
|
z.item_quantity,
|
|
10945
10945
|
z.order_item_discount,
|
|
10946
|
-
|
|
10946
|
+
O,
|
|
10947
10947
|
z
|
|
10948
10948
|
]);
|
|
10949
10949
|
const ce = (G) => [...G].sort((Ie, Ue) => new Date(Ie.appnt_date).getTime() - new Date(Ue.appnt_date).getTime()), M = Kt(
|
|
@@ -11092,7 +11092,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
11092
11092
|
}, Dt = (G, Ie, Ue) => /* @__PURE__ */ e.jsxs(
|
|
11093
11093
|
"div",
|
|
11094
11094
|
{
|
|
11095
|
-
className: `hfl-flex hfl-w-[60px] hfl-flex-col hfl-items-center hfl-rounded hfl-px-1 hfl-py-2 hfl-text-center ${
|
|
11095
|
+
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
11096
|
onClick: () => I(G),
|
|
11097
11097
|
"data-qa": G,
|
|
11098
11098
|
children: [
|
|
@@ -11107,10 +11107,10 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
11107
11107
|
C(!0);
|
|
11108
11108
|
try {
|
|
11109
11109
|
const G = await Ul(
|
|
11110
|
-
|
|
11110
|
+
W == "today" ? Te().format("YYYY-MM-DD") : "all",
|
|
11111
11111
|
v?.patientRoleID || "",
|
|
11112
11112
|
1,
|
|
11113
|
-
|
|
11113
|
+
W == "today" ? 100 : 10,
|
|
11114
11114
|
!1,
|
|
11115
11115
|
g
|
|
11116
11116
|
);
|
|
@@ -11120,12 +11120,12 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
11120
11120
|
} catch {
|
|
11121
11121
|
C(!1), console.log("error in getAppointmentsList API Call");
|
|
11122
11122
|
}
|
|
11123
|
-
}, [xt,
|
|
11123
|
+
}, [xt, W, v?.patientRoleID, C, g]);
|
|
11124
11124
|
Ye(() => {
|
|
11125
11125
|
D || Bt();
|
|
11126
11126
|
}, [D, Bt]), Ye(() => {
|
|
11127
|
-
|
|
11128
|
-
}, [Bt,
|
|
11127
|
+
W === "today" && Bt();
|
|
11128
|
+
}, [Bt, W]);
|
|
11129
11129
|
const kt = async () => {
|
|
11130
11130
|
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(
|
|
11131
11131
|
z,
|
|
@@ -11144,7 +11144,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
11144
11144
|
Dt("today", "hx_calendar-add hfl-text-5", "Today's Appts"),
|
|
11145
11145
|
Dt("all", "hx_calendar hfl-text-5", "All Appts")
|
|
11146
11146
|
] }),
|
|
11147
|
-
|
|
11147
|
+
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
11148
|
/* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-gap-2 hfl-self-stretch hfl-bg-Gray-100 hfl-p-2", children: [
|
|
11149
11149
|
/* @__PURE__ */ e.jsx(N, { variant: "Semibold", type: "Text lg", className: "hfl-flex-1", children: z.appnt_id.length ? "Update Appointment" : "New Appointment" }),
|
|
11150
11150
|
/* @__PURE__ */ e.jsx(
|
|
@@ -11447,13 +11447,13 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
11447
11447
|
ka,
|
|
11448
11448
|
{
|
|
11449
11449
|
today: !0,
|
|
11450
|
-
leftNav:
|
|
11450
|
+
leftNav: W,
|
|
11451
11451
|
appointments: ce(T),
|
|
11452
11452
|
handleAppointData: we
|
|
11453
11453
|
}
|
|
11454
11454
|
) })
|
|
11455
11455
|
] }) }),
|
|
11456
|
-
|
|
11456
|
+
W === "all" && /* @__PURE__ */ e.jsx(
|
|
11457
11457
|
Ys,
|
|
11458
11458
|
{
|
|
11459
11459
|
sortAppointments: ce,
|
|
@@ -11558,7 +11558,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
11558
11558
|
pastVisits: [],
|
|
11559
11559
|
isVisitLoading: !1
|
|
11560
11560
|
}
|
|
11561
|
-
), { pastVisits: V, currentPage:
|
|
11561
|
+
), { pastVisits: V, currentPage: W, isVisitLoading: I, totalRecord: D } = g, P = $t(
|
|
11562
11562
|
async (Y) => {
|
|
11563
11563
|
if (a?.patientRoleID)
|
|
11564
11564
|
try {
|
|
@@ -11568,10 +11568,10 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
11568
11568
|
Y,
|
|
11569
11569
|
a.patientRoleID,
|
|
11570
11570
|
k
|
|
11571
|
-
),
|
|
11571
|
+
), O = ne?.visits ?? [];
|
|
11572
11572
|
L({
|
|
11573
11573
|
currentPage: Y,
|
|
11574
|
-
pastVisits: Y === 1 ?
|
|
11574
|
+
pastVisits: Y === 1 ? O : [...V, ...O],
|
|
11575
11575
|
isVisitLoading: !1,
|
|
11576
11576
|
totalRecord: +ne.total_visit_count
|
|
11577
11577
|
});
|
|
@@ -11582,7 +11582,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
11582
11582
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
11583
11583
|
[a?.patientRoleID]
|
|
11584
11584
|
), T = $t(
|
|
11585
|
-
async (Y, ne,
|
|
11585
|
+
async (Y, ne, O = !0) => {
|
|
11586
11586
|
if (a?.patientRoleID) {
|
|
11587
11587
|
n(), L({ isVisitLoading: !0 });
|
|
11588
11588
|
try {
|
|
@@ -11618,7 +11618,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
11618
11618
|
trackEventHandler: () => {
|
|
11619
11619
|
}
|
|
11620
11620
|
// Provide a default no-op function
|
|
11621
|
-
}), S(
|
|
11621
|
+
}), S(O);
|
|
11622
11622
|
} catch (me) {
|
|
11623
11623
|
console.error("Failed to prepare print data:", me);
|
|
11624
11624
|
} finally {
|
|
@@ -11641,8 +11641,8 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
11641
11641
|
), b = $t(async () => {
|
|
11642
11642
|
try {
|
|
11643
11643
|
const Y = await us(k), ne = {};
|
|
11644
|
-
Y.transalation_records.forEach((
|
|
11645
|
-
ne[
|
|
11644
|
+
Y.transalation_records.forEach((O) => {
|
|
11645
|
+
ne[O.language] = O;
|
|
11646
11646
|
}), i(ne);
|
|
11647
11647
|
} catch (Y) {
|
|
11648
11648
|
console.error("Failed to get custom translations:", Y);
|
|
@@ -11651,13 +11651,13 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
11651
11651
|
try {
|
|
11652
11652
|
const Y = await hs(k);
|
|
11653
11653
|
if (Y?.test_ranges) {
|
|
11654
|
-
const ne = Y.test_ranges.map((
|
|
11655
|
-
test_id:
|
|
11656
|
-
test_names:
|
|
11657
|
-
test_range_rule:
|
|
11658
|
-
test_range_text:
|
|
11659
|
-
test_units:
|
|
11660
|
-
value:
|
|
11654
|
+
const ne = Y.test_ranges.map((O) => ({
|
|
11655
|
+
test_id: O.test_id,
|
|
11656
|
+
test_names: O.test_names,
|
|
11657
|
+
test_range_rule: O.test_range_rule,
|
|
11658
|
+
test_range_text: O.test_range_text,
|
|
11659
|
+
test_units: O.test_units,
|
|
11660
|
+
value: O.test_names
|
|
11661
11661
|
}));
|
|
11662
11662
|
d(ne);
|
|
11663
11663
|
}
|
|
@@ -11768,8 +11768,8 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
11768
11768
|
if (k.window_var?.enable_ipd_v2 !== "1") {
|
|
11769
11769
|
Y = "../ipd/viewPatientsCase.php";
|
|
11770
11770
|
try {
|
|
11771
|
-
const ne = await Qi(k, a.patientRoleID), { status:
|
|
11772
|
-
Y =
|
|
11771
|
+
const ne = await Qi(k, a.patientRoleID), { status: O = 0, case_id: me = 0 } = ne, we = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
11772
|
+
Y = O && me ? `../ipd/viewPatientRecords.php?pid=${a.patientRoleID}&case_id=${me}` : `../ipd/viewAddPatientsCase.php?pid=${a.patientRoleID}&date=${we}`;
|
|
11773
11773
|
} catch (ne) {
|
|
11774
11774
|
console.error("Failed to get IPD Case by PID:", ne);
|
|
11775
11775
|
}
|
|
@@ -11798,9 +11798,9 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
11798
11798
|
/* @__PURE__ */ e.jsx(
|
|
11799
11799
|
ul,
|
|
11800
11800
|
{
|
|
11801
|
-
currentPage:
|
|
11801
|
+
currentPage: W,
|
|
11802
11802
|
totalRecord: D,
|
|
11803
|
-
handleLoadMore: () => P(
|
|
11803
|
+
handleLoadMore: () => P(W + 1),
|
|
11804
11804
|
isLoading: I,
|
|
11805
11805
|
currentTotal: z.length
|
|
11806
11806
|
}
|
|
@@ -11958,7 +11958,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
11958
11958
|
} = 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: [
|
|
11959
11959
|
" ",
|
|
11960
11960
|
b
|
|
11961
|
-
] }) }),
|
|
11961
|
+
] }) }), W = (b) => {
|
|
11962
11962
|
switch (b) {
|
|
11963
11963
|
case Nt[0]:
|
|
11964
11964
|
return "hx_service-appointment-filled hfl-text-Primary-500";
|
|
@@ -12118,7 +12118,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12118
12118
|
) }),
|
|
12119
12119
|
/* @__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 }) }),
|
|
12120
12120
|
/* @__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: [
|
|
12121
|
-
/* @__PURE__ */ e.jsx("i", { className: ` hfl-flex ${
|
|
12121
|
+
/* @__PURE__ */ e.jsx("i", { className: ` hfl-flex ${W(b.service_category)}` }),
|
|
12122
12122
|
/* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", className: "hfl-truncate", children: [
|
|
12123
12123
|
" ",
|
|
12124
12124
|
I(b.service_category)
|
|
@@ -12301,7 +12301,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12301
12301
|
) })
|
|
12302
12302
|
] });
|
|
12303
12303
|
}, 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) => {
|
|
12304
|
-
const { closePrintModal: u, handleCurrentWindow: d, billIdToOpen: i, onBillHandled: v } = n, [C, a] = U(), [A, S] = U(""), [h, k] = U(""), [g, L] = U(), [V,
|
|
12304
|
+
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
12305
|
if (!we)
|
|
12306
12306
|
throw new Error("Bills component must be used within an AppContext.Provider");
|
|
12307
12307
|
const { patientIDs: _e, setLoading: tt, variable: he } = we, X = (We) => Q(We), ce = (We = ht[0]) => S(We), M = (We) => k(We), Ae = (We) => {
|
|
@@ -12312,7 +12312,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12312
12312
|
if (_e?.patientRoleID)
|
|
12313
12313
|
try {
|
|
12314
12314
|
const We = await Ha(Te().format("YYYY-MM-DD"), _e.patientRoleID, !1, he);
|
|
12315
|
-
|
|
12315
|
+
W(We);
|
|
12316
12316
|
} catch (We) {
|
|
12317
12317
|
console.error("Error in getPastDueAmount API Call:", We);
|
|
12318
12318
|
}
|
|
@@ -12351,7 +12351,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12351
12351
|
pt();
|
|
12352
12352
|
}, []), Ye(() => {
|
|
12353
12353
|
gt();
|
|
12354
|
-
}, [
|
|
12354
|
+
}, [O]), Ye(() => {
|
|
12355
12355
|
if (i && P.length) {
|
|
12356
12356
|
const We = P.find((st) => st.order_id_str === i);
|
|
12357
12357
|
We && (Ae(We), v?.());
|
|
@@ -12609,7 +12609,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12609
12609
|
}
|
|
12610
12610
|
};
|
|
12611
12611
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
12612
|
-
u.length > 0 && u.map((V,
|
|
12612
|
+
u.length > 0 && u.map((V, W) => /* @__PURE__ */ e.jsx(ol.Fragment, { children: /* @__PURE__ */ e.jsxs("tr", { className: "hfl-border-1", children: [
|
|
12613
12613
|
/* @__PURE__ */ e.jsx(
|
|
12614
12614
|
"td",
|
|
12615
12615
|
{
|
|
@@ -12637,7 +12637,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12637
12637
|
onClick: () => {
|
|
12638
12638
|
v(V);
|
|
12639
12639
|
},
|
|
12640
|
-
"data-qa":
|
|
12640
|
+
"data-qa": W + 1 + "-bill-amount",
|
|
12641
12641
|
children: "₹" + V.paid_amount
|
|
12642
12642
|
}
|
|
12643
12643
|
) })
|
|
@@ -12710,12 +12710,12 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12710
12710
|
{
|
|
12711
12711
|
className: " hx_delete hfl-flex hfl-cursor-pointer hfl-text-2",
|
|
12712
12712
|
onClick: (I) => {
|
|
12713
|
-
I.stopPropagation(), i(), d(V,
|
|
12713
|
+
I.stopPropagation(), i(), d(V, W);
|
|
12714
12714
|
},
|
|
12715
|
-
"data-qa":
|
|
12715
|
+
"data-qa": W + 1 + "-delete-transaction"
|
|
12716
12716
|
}
|
|
12717
12717
|
) })
|
|
12718
|
-
] }, `${
|
|
12718
|
+
] }, `${W}`) }, W)),
|
|
12719
12719
|
S.show && /* @__PURE__ */ e.jsx(
|
|
12720
12720
|
to,
|
|
12721
12721
|
{
|
|
@@ -12756,7 +12756,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12756
12756
|
showPrintModal: h
|
|
12757
12757
|
// setLoading,
|
|
12758
12758
|
// ppEventProps,
|
|
12759
|
-
} = Lt(Mt), k = async (g, L, V,
|
|
12759
|
+
} = Lt(Mt), k = async (g, L, V, W) => {
|
|
12760
12760
|
h?.visible && i();
|
|
12761
12761
|
const D = [
|
|
12762
12762
|
C?.age && typeof C?.age == "number" ? `${C?.age}y` : C?.org_person_dob ? wr(C?.org_person_dob) : "",
|
|
@@ -12796,7 +12796,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12796
12796
|
}
|
|
12797
12797
|
},
|
|
12798
12798
|
trackEventHandler: () => {
|
|
12799
|
-
console.log(
|
|
12799
|
+
console.log(W);
|
|
12800
12800
|
}
|
|
12801
12801
|
});
|
|
12802
12802
|
};
|
|
@@ -12894,7 +12894,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12894
12894
|
default:
|
|
12895
12895
|
return "";
|
|
12896
12896
|
}
|
|
12897
|
-
},
|
|
12897
|
+
}, W = (T) => {
|
|
12898
12898
|
switch (T) {
|
|
12899
12899
|
case "DEPOSIT":
|
|
12900
12900
|
case "P":
|
|
@@ -12991,7 +12991,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12991
12991
|
handleDeleteRow: L,
|
|
12992
12992
|
handleRightSegment: i,
|
|
12993
12993
|
handleRowClick: v,
|
|
12994
|
-
getTypeColor:
|
|
12994
|
+
getTypeColor: W,
|
|
12995
12995
|
getType: V,
|
|
12996
12996
|
refreshPaymentData: S
|
|
12997
12997
|
}
|
|
@@ -13046,12 +13046,12 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
13046
13046
|
patient_entity_id: h
|
|
13047
13047
|
} = n, k = async (g, L) => {
|
|
13048
13048
|
C?.visible && A();
|
|
13049
|
-
const
|
|
13049
|
+
const W = [
|
|
13050
13050
|
u?.age && typeof u?.age == "number" ? `${u?.age}y` : u?.org_person_dob ? wr(u?.org_person_dob) : "",
|
|
13051
13051
|
cl[u?.gender] ?? "",
|
|
13052
13052
|
u?.blood_group
|
|
13053
13053
|
].filter((D) => D).join(", "), I = {
|
|
13054
|
-
name: pr(u?.name) + (
|
|
13054
|
+
name: pr(u?.name) + (W ? ` (${W}) ` : ""),
|
|
13055
13055
|
billDate: Te(S?.transaction_time).format("DD-MMM-YYYY"),
|
|
13056
13056
|
mobileNumber: u?.phone_number,
|
|
13057
13057
|
email: u?.email,
|
|
@@ -13179,7 +13179,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
13179
13179
|
br[Ir.consultation_lab_other_services].key
|
|
13180
13180
|
), [i, v] = U(
|
|
13181
13181
|
null
|
|
13182
|
-
), [C, a] = U(ht[5]), [A, S] = U(""), [h, k] = U(), [g, L] = U([]), [V,
|
|
13182
|
+
), [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
13183
|
try {
|
|
13184
13184
|
if (P(!0), T?.patientRoleID) {
|
|
13185
13185
|
const X = await Ma(T.patientRoleID, 1, 10, b);
|
|
@@ -13199,11 +13199,11 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
13199
13199
|
}
|
|
13200
13200
|
}, [T?.patientRoleID, P, b]), ne = (X = ht[5]) => {
|
|
13201
13201
|
a(X);
|
|
13202
|
-
},
|
|
13202
|
+
}, O = (X) => {
|
|
13203
13203
|
S(X);
|
|
13204
13204
|
}, me = async (X) => {
|
|
13205
13205
|
if (k(X), u === br[Ir.consultation_lab_other_services].key) {
|
|
13206
|
-
if (
|
|
13206
|
+
if (O(Nt[parseInt(X?.service_category_id) - 1]), a(ht[1]), X?.order_id) {
|
|
13207
13207
|
const ce = await _e(X.order_id);
|
|
13208
13208
|
D(ce);
|
|
13209
13209
|
}
|
|
@@ -13216,7 +13216,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
13216
13216
|
let M, Ae;
|
|
13217
13217
|
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);
|
|
13218
13218
|
}
|
|
13219
|
-
|
|
13219
|
+
W(ce);
|
|
13220
13220
|
}
|
|
13221
13221
|
P(!1);
|
|
13222
13222
|
}, _e = async (X) => {
|
|
@@ -13470,7 +13470,7 @@ ${g}`,
|
|
|
13470
13470
|
openLISReportHandler: a = () => {
|
|
13471
13471
|
},
|
|
13472
13472
|
variable: A
|
|
13473
|
-
} = n, { org_person_bid_str: S = "", email: h = "", phone_number: k = "", patient_id: g, name: L = "" } = d, [V,
|
|
13473
|
+
} = 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
13474
|
const { value: M } = ce.target;
|
|
13475
13475
|
ee(!!M && !Ba().email().isValidSync(M)), Q(M);
|
|
13476
13476
|
}, _e = (ce) => {
|
|
@@ -13482,7 +13482,7 @@ ${g}`,
|
|
|
13482
13482
|
try {
|
|
13483
13483
|
T(!0);
|
|
13484
13484
|
const M = await Sn(S, A), { visits: Ae = [] } = M;
|
|
13485
|
-
|
|
13485
|
+
W(M), Ae.length && Ae[0]?.reports?.length ? D(Ae[0].reports[0]) : T(!1);
|
|
13486
13486
|
} catch (M) {
|
|
13487
13487
|
console.error("Error:", M), T(!1);
|
|
13488
13488
|
}
|
|
@@ -13644,7 +13644,7 @@ ${g}`,
|
|
|
13644
13644
|
label: "Phone Number",
|
|
13645
13645
|
height: "hfl-h-10 hfl-border-Purple-200 hfl-h-10 hfl-border-Purple-200",
|
|
13646
13646
|
start_icon: "hx_phone",
|
|
13647
|
-
errorMsg:
|
|
13647
|
+
errorMsg: O && B !== "phone" ? "Invalid Phone Number" : void 0,
|
|
13648
13648
|
inputProps: {
|
|
13649
13649
|
placeholder: "Enter Phone Number",
|
|
13650
13650
|
onFocus: () => H("phone"),
|
|
@@ -13686,7 +13686,7 @@ ${g}`,
|
|
|
13686
13686
|
hierarchy: "Primary",
|
|
13687
13687
|
size: "lg",
|
|
13688
13688
|
textField: "WhatsApp",
|
|
13689
|
-
disabled: !Y ||
|
|
13689
|
+
disabled: !Y || O || P,
|
|
13690
13690
|
icon: "Left",
|
|
13691
13691
|
onClick: () => he(I, "SMS/WA"),
|
|
13692
13692
|
iconFile: "hfl-mr-2",
|
|
@@ -13739,7 +13739,7 @@ ${g}`,
|
|
|
13739
13739
|
LabRecords: [],
|
|
13740
13740
|
isLabTableLoading: !1
|
|
13741
13741
|
}
|
|
13742
|
-
), [k, g] = h, { LabRecords: L, currentPage: V, isLabTableLoading:
|
|
13742
|
+
), [k, g] = h, { LabRecords: L, currentPage: V, isLabTableLoading: W } = k, I = (ee, B) => {
|
|
13743
13743
|
ee === "print_pdf" ? window.open(B.report_link, "_blank") : ee === "print_preview" && (C(!0), A(B));
|
|
13744
13744
|
}, D = $t(
|
|
13745
13745
|
async (ee) => {
|
|
@@ -13849,7 +13849,7 @@ ${g}`,
|
|
|
13849
13849
|
}
|
|
13850
13850
|
) })
|
|
13851
13851
|
] }),
|
|
13852
|
-
b.length === 0 && !
|
|
13852
|
+
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
13853
|
N,
|
|
13854
13854
|
{
|
|
13855
13855
|
variant: "Regular",
|
|
@@ -13858,7 +13858,7 @@ ${g}`,
|
|
|
13858
13858
|
children: "These are no Reports for the Patient"
|
|
13859
13859
|
}
|
|
13860
13860
|
) }),
|
|
13861
|
-
|
|
13861
|
+
W && /* @__PURE__ */ e.jsx(
|
|
13862
13862
|
"div",
|
|
13863
13863
|
{
|
|
13864
13864
|
className: "hfl-flex hfl-h-[calc(100%_-_80px)] hfl-flex-col hfl-items-center hfl-justify-center hfl-gap-4",
|
|
@@ -13895,7 +13895,7 @@ ${g}`,
|
|
|
13895
13895
|
totalRecord: 0,
|
|
13896
13896
|
LabRecords: [],
|
|
13897
13897
|
isLabTableLoading: !1
|
|
13898
|
-
}), [h, k] = S, { LabRecords: g, currentPage: L, isLabTableLoading: V, totalRecord:
|
|
13898
|
+
}), [h, k] = S, { LabRecords: g, currentPage: L, isLabTableLoading: V, totalRecord: W } = h, I = (B, H, z) => {
|
|
13899
13899
|
A((Q) => ({
|
|
13900
13900
|
...Q,
|
|
13901
13901
|
visible: !0,
|
|
@@ -13929,9 +13929,9 @@ ${g}`,
|
|
|
13929
13929
|
try {
|
|
13930
13930
|
k({ isLabTableLoading: !0 });
|
|
13931
13931
|
const H = await Ui(Ei, B, u?.patient_role_id || "", i), Q = (H?.orders ?? []).flatMap((Y) => {
|
|
13932
|
-
const { test_templates: ne, ...
|
|
13932
|
+
const { test_templates: ne, ...O } = Y;
|
|
13933
13933
|
return !ne || ne.length === 0 ? [] : ne.map((me) => ({
|
|
13934
|
-
...
|
|
13934
|
+
...O,
|
|
13935
13935
|
...me
|
|
13936
13936
|
}));
|
|
13937
13937
|
});
|
|
@@ -14018,7 +14018,7 @@ ${g}`,
|
|
|
14018
14018
|
ul,
|
|
14019
14019
|
{
|
|
14020
14020
|
currentPage: L,
|
|
14021
|
-
totalRecord:
|
|
14021
|
+
totalRecord: W,
|
|
14022
14022
|
handleLoadMore: () => T(L + 1),
|
|
14023
14023
|
isLoading: V,
|
|
14024
14024
|
currentTotal: ee.length
|
|
@@ -14079,10 +14079,10 @@ ${g}`,
|
|
|
14079
14079
|
(async () => {
|
|
14080
14080
|
if (g)
|
|
14081
14081
|
try {
|
|
14082
|
-
const
|
|
14082
|
+
const W = v.window_var.org_branch_id_for_seg, I = await Di("lab_print", W, v);
|
|
14083
14083
|
h(I);
|
|
14084
|
-
} catch (
|
|
14085
|
-
console.error("Failed to fetch lab print branch preference:",
|
|
14084
|
+
} catch (W) {
|
|
14085
|
+
console.error("Failed to fetch lab print branch preference:", W), u("Error", "Could not load lab print settings.", "Error", 3e3);
|
|
14086
14086
|
}
|
|
14087
14087
|
})();
|
|
14088
14088
|
}, [g, u, v]), Ye(() => {
|
|
@@ -14131,7 +14131,7 @@ ${g}`,
|
|
|
14131
14131
|
] }) : /* @__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." }) }) }) }) });
|
|
14132
14132
|
};
|
|
14133
14133
|
function No({ variable: n }) {
|
|
14134
|
-
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,
|
|
14134
|
+
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
14135
|
printDataFrom: "",
|
|
14136
14136
|
visible: !1,
|
|
14137
14137
|
whichPreview: "offlinePrint",
|
|
@@ -14181,7 +14181,7 @@ function No({ variable: n }) {
|
|
|
14181
14181
|
},
|
|
14182
14182
|
[Q]
|
|
14183
14183
|
), or = (dt) => {
|
|
14184
|
-
cr(),
|
|
14184
|
+
cr(), W(dt);
|
|
14185
14185
|
}, fr = (dt, wt, ut, St) => {
|
|
14186
14186
|
const zt = Date.now();
|
|
14187
14187
|
L((Ot) => [
|
|
@@ -14270,7 +14270,7 @@ function No({ variable: n }) {
|
|
|
14270
14270
|
window.patientPopupHandler = async (dt, wt, ut, St, zt, Ot, Yt) => {
|
|
14271
14271
|
S(!0), _e(dt), H({ patientRoleID: wt, patientID: ut }), a.current = Yt ?? null, await mr(St, St.printDefaultPrefIndex, "", !1);
|
|
14272
14272
|
try {
|
|
14273
|
-
|
|
14273
|
+
W(
|
|
14274
14274
|
jt.includes(Ot?.toLowerCase() ?? "") ? Ot.toLowerCase() : jt[2]
|
|
14275
14275
|
), sr(wt), Li(n).then(T), qi("patient_config", n).then(ne), sn(
|
|
14276
14276
|
"print_configs",
|
|
@@ -14361,7 +14361,7 @@ function No({ variable: n }) {
|
|
|
14361
14361
|
currentWindow: V,
|
|
14362
14362
|
patientDetails: z,
|
|
14363
14363
|
setShowPrintModal: me,
|
|
14364
|
-
showPrintModal:
|
|
14364
|
+
showPrintModal: O,
|
|
14365
14365
|
setEndConsultationClicked: Z,
|
|
14366
14366
|
doctorListArr: P,
|
|
14367
14367
|
docPreference: X,
|
|
@@ -14483,22 +14483,22 @@ function No({ variable: n }) {
|
|
|
14483
14483
|
)
|
|
14484
14484
|
}
|
|
14485
14485
|
),
|
|
14486
|
-
|
|
14486
|
+
O?.visible && /* @__PURE__ */ e.jsx(
|
|
14487
14487
|
Nn,
|
|
14488
14488
|
{
|
|
14489
14489
|
modalProps: {
|
|
14490
14490
|
mfePrefix: "hfl",
|
|
14491
|
-
printType:
|
|
14491
|
+
printType: O.printType,
|
|
14492
14492
|
onCloseModal: cr,
|
|
14493
14493
|
showToast: fr,
|
|
14494
|
-
currentPrintTime:
|
|
14495
|
-
whichPreview:
|
|
14494
|
+
currentPrintTime: O.currentPrintTime,
|
|
14495
|
+
whichPreview: O.whichPreview,
|
|
14496
14496
|
envName: n
|
|
14497
14497
|
},
|
|
14498
|
-
billPrintProps:
|
|
14499
|
-
billPatientDetails:
|
|
14500
|
-
billServiceDetails:
|
|
14501
|
-
billSummaryDetails:
|
|
14498
|
+
billPrintProps: O.printType === "bill" || O.printType === "bill_deposit_refund" ? {
|
|
14499
|
+
billPatientDetails: O.details.billPatientDetails,
|
|
14500
|
+
billServiceDetails: O.details.billServiceDetails,
|
|
14501
|
+
billSummaryDetails: O.details.billSummaryDetails,
|
|
14502
14502
|
preferences: {
|
|
14503
14503
|
...Y?.print?.bill,
|
|
14504
14504
|
...Y?.org_details,
|
|
@@ -14506,45 +14506,45 @@ function No({ variable: n }) {
|
|
|
14506
14506
|
doc_sign_img: G,
|
|
14507
14507
|
doc_sign_text: kt
|
|
14508
14508
|
},
|
|
14509
|
-
showPrintPreviewForBill:
|
|
14510
|
-
isWholeBill:
|
|
14511
|
-
payloadDataforEmail:
|
|
14512
|
-
printDataFrom:
|
|
14513
|
-
depositRefundBillDetails:
|
|
14509
|
+
showPrintPreviewForBill: O.details.showPrintPreviewForBill,
|
|
14510
|
+
isWholeBill: O.details.isWholeBill,
|
|
14511
|
+
payloadDataforEmail: O.details.payloadDataforEmail,
|
|
14512
|
+
printDataFrom: O.printDataFrom,
|
|
14513
|
+
depositRefundBillDetails: O.details.depositRefundBillDetails
|
|
14514
14514
|
} : void 0,
|
|
14515
14515
|
optionFormProps: {
|
|
14516
14516
|
selectedLanguage: tt,
|
|
14517
|
-
showLanguageDropDown:
|
|
14517
|
+
showLanguageDropDown: O.printType === "visit" && Ie?.print === "1" || O.printType === "visit" && window.role_id != "11",
|
|
14518
14518
|
showPrintPrefDropDown: !0,
|
|
14519
14519
|
setSelectedLanguage: (dt) => he(dt),
|
|
14520
14520
|
googleReview: !1,
|
|
14521
14521
|
showEmailInput: !0,
|
|
14522
|
-
showPhoneInput:
|
|
14522
|
+
showPhoneInput: O.printType === "visit" || O.printType === "bill"
|
|
14523
14523
|
},
|
|
14524
14524
|
ampEventProps: {
|
|
14525
14525
|
vpEventProps: "",
|
|
14526
14526
|
setvpEventProps: () => {
|
|
14527
14527
|
},
|
|
14528
14528
|
trackEventHandler: (dt) => {
|
|
14529
|
-
|
|
14529
|
+
O.trackEventHandler?.(dt);
|
|
14530
14530
|
}
|
|
14531
14531
|
},
|
|
14532
|
-
visitpadProps:
|
|
14533
|
-
printDataFrom:
|
|
14532
|
+
visitpadProps: O.printType === "visit" ? {
|
|
14533
|
+
printDataFrom: O.printDataFrom,
|
|
14534
14534
|
patientDetails: z,
|
|
14535
|
-
visitDetails:
|
|
14535
|
+
visitDetails: O.details,
|
|
14536
14536
|
offlineMode: !1,
|
|
14537
|
-
visitId:
|
|
14538
|
-
preferences:
|
|
14537
|
+
visitId: O.visitId,
|
|
14538
|
+
preferences: O?.visitpadPref || b,
|
|
14539
14539
|
// If the logged in doc is printing his own visit use pref else showPrintModal?.visitpadPref
|
|
14540
14540
|
endConsultationClicked: J,
|
|
14541
|
-
visitDate:
|
|
14542
|
-
visitPadOrder:
|
|
14543
|
-
|
|
14544
|
-
|
|
14541
|
+
visitDate: O.visit_date,
|
|
14542
|
+
visitPadOrder: O?.visitpadPref?.visitpad_order ? fn(
|
|
14543
|
+
O?.visitpadPref?.visitpad_order,
|
|
14544
|
+
O?.visitpadPref?.visit_pad_json
|
|
14545
14545
|
) : We,
|
|
14546
14546
|
// If the logged in doc is printing his own visit use visitPadOrder else showPrintModal?.visitpadPref?. visitpad_order
|
|
14547
|
-
visitNumber:
|
|
14547
|
+
visitNumber: O.visit_number,
|
|
14548
14548
|
customTranslations: se,
|
|
14549
14549
|
latestMetaData: nr,
|
|
14550
14550
|
investigationDropdown: Pe,
|
|
@@ -14554,7 +14554,7 @@ function No({ variable: n }) {
|
|
|
14554
14554
|
updateVPPrefUsingDocPref: mr,
|
|
14555
14555
|
patientCustomFields: yr
|
|
14556
14556
|
} : void 0,
|
|
14557
|
-
appointmentInfoProps:
|
|
14557
|
+
appointmentInfoProps: O.printType === "visit" && O.printDataFrom === "patient_popup" ? O.appointmentInfo : void 0
|
|
14558
14558
|
}
|
|
14559
14559
|
)
|
|
14560
14560
|
] }) }),
|