hplx-feature-library 1.0.220 → 1.0.221
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-Bev2spv1.cjs +1 -0
- package/dist/{APIAction-CTNOzVOC.js → APIAction-DLCcL2Li.js} +23 -24
- package/dist/Attachments/index.js +1 -1
- package/dist/{Attachments-BzZHI8d3.js → Attachments-3UkuRnaT.js} +6297 -6180
- package/dist/Attachments-B9GrTokn.cjs +202 -0
- package/dist/NineDots/index.js +1 -1
- package/dist/{NineDots-CCtE2t9I.js → NineDots-gflwjmeo.js} +1 -1
- package/dist/{NineDots-BEzE3Pj8.cjs → NineDots-q--wtv3_.cjs} +1 -1
- package/dist/PatientAddEdit/index.js +1 -1
- package/dist/{PatientAddEdit-9W7ONHSd.js → PatientAddEdit-DRQcxWYN.js} +6 -7
- package/dist/PatientAddEdit-DtcwFtoA.cjs +7 -0
- package/dist/PatientPopup/index.js +1 -1
- package/dist/PatientPopupContainer-01TVoq-l.cjs +36 -0
- package/dist/{PatientPopupContainer-BpqwmITO.js → PatientPopupContainer-DR5aP_eg.js} +3402 -3376
- package/dist/PediatricsCalculator/index.js +1 -1
- package/dist/PediatricsCalculatorTable-bTvt7SWQ.cjs +9 -0
- package/dist/{PediatricsCalculatorTable-G0ttbDpi.js → PediatricsCalculatorTable-qu37FR7D.js} +236 -228
- package/dist/{PrintModal-DpJ3WZlU.cjs → PrintModal-C0ullnUh.cjs} +13 -13
- package/dist/{PrintModal-DJrnqOVW.js → PrintModal-D25hmhNL.js} +74 -52
- package/dist/{ReusableModal-CIgDYOWZ.cjs → ReusableModal-2GKjVVbf.cjs} +1 -1
- package/dist/{ReusableModal-CT4_gW1b.js → ReusableModal-BL_DwV8I.js} +1 -1
- package/dist/SearchPatients/index.js +1 -1
- package/dist/{SearchPatients-D7cCFV9o.js → SearchPatients-BbtytMYS.js} +3 -3
- package/dist/{SearchPatients-6D7IL_wj.cjs → SearchPatients-DbYAGumB.cjs} +1 -1
- package/dist/UserProfile/index.js +1 -1
- package/dist/{UserProfile-4L3aOHNv.cjs → UserProfile-D3Rhhuj9.cjs} +4 -4
- package/dist/{UserProfile-D3cCwQxw.js → UserProfile-jDWt9g20.js} +8 -9
- package/dist/common-utils-BNaPcohw.cjs +6 -0
- package/dist/common-utils-BidUvSFN.js +2233 -0
- package/dist/hplx-feature-library.css +1 -1
- package/dist/{index-T1lUjzhG.js → index-BzwuwvT5.js} +1 -1
- package/dist/{index-DQlbIHh3.cjs → index-CJ2AKRoq.cjs} +26 -26
- package/dist/{index-DkA8S5IK.cjs → index-CRCsQdYf.cjs} +1 -1
- package/dist/{index-Bd0CDVpH.js → index-UPYT3B9g.js} +2 -3
- package/dist/index.d.ts +0 -1
- package/dist/index.js +14 -16
- package/dist/print-pdf/index.js +1 -1
- package/package.json +9 -14
- package/dist/APIAction-DB6Ulkss.cjs +0 -1
- package/dist/AllInvestigations/components/AllInvestigationsTable.d.ts +0 -19
- package/dist/AllInvestigations/index.d.ts +0 -1
- package/dist/AllInvestigations/index.js +0 -4
- package/dist/AllInvestigations/utils/test-tange-util.d.ts +0 -8
- package/dist/AllInvestigationsTable-BDLPOHjr.cjs +0 -79
- package/dist/AllInvestigationsTable-Dg-YXASz.js +0 -17065
- package/dist/Attachments-CziD-_gm.cjs +0 -186
- package/dist/PatientAddEdit-DmpV8z5a.cjs +0 -7
- package/dist/PatientPopupContainer-D4Me6ygu.cjs +0 -36
- package/dist/PediatricsCalculatorTable-B4fTy1J5.cjs +0 -9
- package/dist/ReusableTable/ReusableTable.d.ts +0 -3
- package/dist/ReusableTable/ReusableTableConstants.d.ts +0 -8
- package/dist/ReusableTable/ReusableTableTypes.d.ts +0 -96
- package/dist/ReusableTable/components/EmptyTableContainer.d.ts +0 -12
- package/dist/ReusableTable/components/FilterCheckbox.d.ts +0 -8
- package/dist/ReusableTable/components/FilterDropdown.d.ts +0 -17
- package/dist/ReusableTable/components/Pagination.d.ts +0 -2
- package/dist/ReusableTable/components/TableBody.d.ts +0 -2
- package/dist/ReusableTable/components/TableCell.d.ts +0 -3
- package/dist/ReusableTable/components/TableFilterSelect.d.ts +0 -12
- package/dist/ReusableTable/components/TableHead.d.ts +0 -2
- package/dist/ReusableTable/components/TableMain.d.ts +0 -2
- package/dist/ReusableTable/components/TableRow.d.ts +0 -3
- package/dist/ReusableTable/context/TableContext.d.ts +0 -21
- package/dist/ReusableTable/context/TableContextBase.d.ts +0 -26
- package/dist/ReusableTable/context/useTableContext.d.ts +0 -2
- package/dist/TrendGraphs/AreaChartComponent.d.ts +0 -9
- package/dist/TrendGraphs/LineChartComponent/DataPointToolTip.d.ts +0 -16
- package/dist/TrendGraphs/LineChartComponent/LineChartBody.d.ts +0 -2
- package/dist/TrendGraphs/LineChartComponent/LineChartHeader.d.ts +0 -2
- package/dist/TrendGraphs/LineChartComponent/index.d.ts +0 -2
- package/dist/TrendGraphs/context/index.d.ts +0 -2
- package/dist/TrendGraphs/hooks/useTrendGraphContext.d.ts +0 -2
- package/dist/TrendGraphs/utils/index.d.ts +0 -4
- package/dist/clsx-C11secjj.cjs +0 -1
- package/dist/clsx-OuTLNxxd.js +0 -16
- package/dist/common-utils-CprPMjtz.js +0 -1952
- package/dist/common-utils-DrDXKNhv.cjs +0 -6
- package/dist/components/Modal.d.ts +0 -5
- package/dist/constants/TrendGraphsConstants.d.ts +0 -2
- package/dist/dayjs.min-D52_GdfV.js +0 -284
- package/dist/dayjs.min-DXp74Ozx.cjs +0 -1
- package/dist/index-CJFGOBPb.js +0 -122
- package/dist/index-DfcUmlge.cjs +0 -17
- package/dist/types/AllInvestigationTypes/index.js +0 -4
- package/dist/types/AllInvestigationTypes.d.ts +0 -45
- package/dist/types/NineDotsTypes/index.js +0 -1
- package/dist/types/TrendGraphTypes.d.ts +0 -19
- package/dist/useClickOutside-BjJyGTec.js +0 -14
- package/dist/useClickOutside-DsVG12Cs.cjs +0 -1
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports, K as Ku, A as Ap, P as Ps, g as getDefaultExportFromCjs$2, f as getAugmentedNamespace$2, d as commonjsGlobal$1,
|
|
1
|
+
import { j as jsxRuntimeExports, K as Ku, A as Ap, P as Ps, g as getDefaultExportFromCjs$2, f as getAugmentedNamespace$2, d as commonjsGlobal$1, i as requireObjectAssign, l as PropTypes, b as bs } from "./index-UPYT3B9g.js";
|
|
2
2
|
import React__default, { useState, useEffect, useRef, useCallback, Fragment, memo, createContext, useReducer, forwardRef, useImperativeHandle, useMemo, useContext, useLayoutEffect } from "react";
|
|
3
|
-
import { h as hplxAPI,
|
|
4
|
-
import { d as dayjs } from "./dayjs.min-D52_GdfV.js";
|
|
3
|
+
import { h as hplxAPI, o as E_ENVIRONMENT, c as dayjs, q as getDurationFormat, k as isValidDate, n as capitalizeFirstLetter, i as isJson, d as debounceFn } from "./common-utils-BidUvSFN.js";
|
|
5
4
|
import { g as genderList, D as DefinedLanguages } from "./CommonConstant-Bj7SvPfU.js";
|
|
6
5
|
import { c as create$6 } from "./index.esm-Bn1Rklqj.js";
|
|
7
6
|
import { r as requireWarning } from "./warning-BozzKWdr.js";
|
|
8
|
-
import { c as clsx } from "./clsx-OuTLNxxd.js";
|
|
9
7
|
function _mergeNamespaces(N, W) {
|
|
10
8
|
for (var M = 0; M < W.length; M++) {
|
|
11
9
|
const Y = W[M];
|
|
@@ -22,15 +20,6 @@ function _mergeNamespaces(N, W) {
|
|
|
22
20
|
}
|
|
23
21
|
return Object.freeze(Object.defineProperty(N, Symbol.toStringTag, { value: "Module" }));
|
|
24
22
|
}
|
|
25
|
-
var isProduction = process.env.NODE_ENV === "production", prefix$1 = "Invariant failed";
|
|
26
|
-
function invariant(N, W) {
|
|
27
|
-
if (!N) {
|
|
28
|
-
if (isProduction)
|
|
29
|
-
throw new Error(prefix$1);
|
|
30
|
-
var M = typeof W == "function" ? W() : W, Y = M ? "".concat(prefix$1, ": ").concat(M) : prefix$1;
|
|
31
|
-
throw new Error(Y);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
23
|
const GET_SERVICE_LIST = "/v1/services", GET_DOCTORS_LIST = "/v1/doctors", GET_BILLS = "/v1/bill", PUT_BILLS = "/v2/bill", GET_PAST_DUE = "v1/bills/pastAmount", GET_BILL_ITEM = "/v1/bills/item", DELETE_BILL_ITEM = "/v2/bills/item", PUT_BILL_ITEM = "v1/bills/items", GET_APPOINTMENTS = "/v1/appointments", GET_BILL_SUMMARY = "v1/bill-summary", GET_VISIT_ALL = "/v2/visit/all", GET_PATIENT_POPUP_VISIT = "/v1/visits", GET_PATIENT_POPUP_HPLXLAB = "v1/labs/patients", GET_BRANCH_PREFERENCE = "/preferences/branch", PUT_APPOINTMENTS = "/v1/appointment", UPDATE_PATIENT_DETAIL = "/v1/patients", GET_REFERREDBY_DOCTOR = "../api/modelGetAddPatientSuggestion.php", ADD_PATIENT_IMAGE = "../api/modelSavePatientImage.php", POST_PAYMENT = "/v2/payments", GET_PAYMENT = "/v1/payments", GET_REFERRAL = "v1/referral", DELETE_TRANSACTION = "/v1/transaction", GET_BILLS_PAYMENTS_BILL_ID = "/v1/bills", GET_ABHA_INFO = "/abha/v1/fetch", GENERATE_OTP_BY_ABHA_ADDRESS = "/abha/v0.5/otp/generate", VERIFY_ABHA_OTP = "/abha/v0.5/otp/verify", GET_ABHA_CONSENT = "/v1/consent/request", GET_INSURANCE_LIST = "v1/partner/insurance-companies", VERIFY_INSURANCE = "v1/insurance/verify", GET_CUSTOM_TRANSLATIONS = "/customTranslations", GET_ONLINE_TEST_RANGES = "/tests/ranges", UPDATE_WALLET = "v1/wallet", GET_IPD_CASE = "../ipd/api/modelCheckIpdCase.php", GET_LIS_BY_ORGBIDSTR = "/v2/lis-reports", SEND_ATTACH_LIS = "v1/partner/lis-reports/share", SEND_EMAIL_SMS = "visit/send/rx", SEND_GOOGLE_REVIEW = "/send/review/google", GET_SINGLE_BILL_PRINT_EMAIL_SEND = "../api/modelBillPdfEmail.php", GET_ALL_BILL_PRINT_EMAIL_SEND = "../api/modelAllBillPdfEmail.php", PATCH_VISIT_PDF_DETAILS = "v1/visits", UPLOAD_FILE = "s3/upload", TAT_LOG = "v1/tat/log", SEND_V2_SMS_EMAIL = "v2/campaign/trigger", GET_HPLX_REPORT_PDF_URL = "../api/modelGenerateLabPdf.php", getCookie = (N) => {
|
|
35
24
|
const W = N + "=", M = document.cookie.split(";");
|
|
36
25
|
for (let Y = 0; Y < M.length; Y++) {
|
|
@@ -200,9 +189,9 @@ const GET_SERVICE_LIST = "/v1/services", GET_DOCTORS_LIST = "/v1/doctors", GET_B
|
|
|
200
189
|
}
|
|
201
190
|
}, getTranslation = async (N, W) => {
|
|
202
191
|
try {
|
|
203
|
-
return N;
|
|
192
|
+
return await window._getTranslationTemp(N, W);
|
|
204
193
|
} catch {
|
|
205
|
-
return
|
|
194
|
+
return N;
|
|
206
195
|
}
|
|
207
196
|
}, transformString = (N, W) => N ? W ? N.toUpperCase() : N : "", toCapitaliseString = (N, W) => N ? N.charAt(0).toUpperCase() + N.slice(1) : "", getInvestigationTestName = async (N, W, M) => {
|
|
208
197
|
let Y;
|
|
@@ -6957,21 +6946,34 @@ var renderElement = function(N, W) {
|
|
|
6957
6946
|
return W === Y.documentElement ? isTransparent(X) ? isTransparent(I) ? w : I : X : w;
|
|
6958
6947
|
};
|
|
6959
6948
|
const findChangedProperties = (N, W, M = "") => {
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6949
|
+
const Y = {};
|
|
6950
|
+
for (const X in N) {
|
|
6951
|
+
if (!Object.prototype.hasOwnProperty.call(N, X)) continue;
|
|
6952
|
+
const I = N[X], w = W[X];
|
|
6953
|
+
if (Object.prototype.hasOwnProperty.call(W, X))
|
|
6954
|
+
if (typeof I == "object" && I !== null && typeof w == "object" && w !== null) {
|
|
6955
|
+
const D = findChangedProperties(
|
|
6956
|
+
I,
|
|
6957
|
+
w,
|
|
6958
|
+
M ? `${M}.${X}` : X
|
|
6959
|
+
);
|
|
6960
|
+
Object.assign(Y, D);
|
|
6961
|
+
} else I !== w && (Y[`${M ? `${M}.` : ""}${X}`] = {
|
|
6962
|
+
oldValue: I,
|
|
6963
|
+
newValue: w
|
|
6964
|
+
});
|
|
6970
6965
|
else
|
|
6971
|
-
Y[`${M}
|
|
6966
|
+
Y[`${M ? `${M}.` : ""}${X}`] = {
|
|
6967
|
+
oldValue: I,
|
|
6968
|
+
newValue: void 0
|
|
6969
|
+
};
|
|
6970
|
+
}
|
|
6972
6971
|
for (const X in W)
|
|
6973
|
-
|
|
6974
|
-
|
|
6972
|
+
Object.prototype.hasOwnProperty.call(W, X) || (Y[`${M ? `${M}.` : ""}${X}`] = {
|
|
6973
|
+
oldValue: void 0,
|
|
6974
|
+
newValue: W[X]
|
|
6975
|
+
});
|
|
6976
|
+
return Y;
|
|
6975
6977
|
}, convertDaysToWeeksAndDays = (N) => {
|
|
6976
6978
|
if (!N) return { weeks: 0, days: 0 };
|
|
6977
6979
|
const W = Math.floor(N / 7), M = N % 7;
|
|
@@ -12231,14 +12233,14 @@ function requireContext() {
|
|
|
12231
12233
|
512
|
|
12232
12234
|
])), context;
|
|
12233
12235
|
}
|
|
12234
|
-
var prefix = {}, hasRequiredPrefix;
|
|
12236
|
+
var prefix$1 = {}, hasRequiredPrefix;
|
|
12235
12237
|
function requirePrefix() {
|
|
12236
|
-
if (hasRequiredPrefix) return prefix;
|
|
12238
|
+
if (hasRequiredPrefix) return prefix$1;
|
|
12237
12239
|
hasRequiredPrefix = 1;
|
|
12238
12240
|
function N(W, M) {
|
|
12239
12241
|
this.offset = W, this.nbits = M;
|
|
12240
12242
|
}
|
|
12241
|
-
return prefix.kBlockLengthPrefixCode = [
|
|
12243
|
+
return prefix$1.kBlockLengthPrefixCode = [
|
|
12242
12244
|
new N(1, 2),
|
|
12243
12245
|
new N(5, 2),
|
|
12244
12246
|
new N(9, 2),
|
|
@@ -12265,7 +12267,7 @@ function requirePrefix() {
|
|
|
12265
12267
|
new N(4337, 12),
|
|
12266
12268
|
new N(8433, 13),
|
|
12267
12269
|
new N(16625, 24)
|
|
12268
|
-
], prefix.kInsertLengthPrefixCode = [
|
|
12270
|
+
], prefix$1.kInsertLengthPrefixCode = [
|
|
12269
12271
|
new N(0, 0),
|
|
12270
12272
|
new N(1, 0),
|
|
12271
12273
|
new N(2, 0),
|
|
@@ -12290,7 +12292,7 @@ function requirePrefix() {
|
|
|
12290
12292
|
new N(2114, 12),
|
|
12291
12293
|
new N(6210, 14),
|
|
12292
12294
|
new N(22594, 24)
|
|
12293
|
-
], prefix.kCopyLengthPrefixCode = [
|
|
12295
|
+
], prefix$1.kCopyLengthPrefixCode = [
|
|
12294
12296
|
new N(2, 0),
|
|
12295
12297
|
new N(3, 0),
|
|
12296
12298
|
new N(4, 0),
|
|
@@ -12315,7 +12317,7 @@ function requirePrefix() {
|
|
|
12315
12317
|
new N(582, 9),
|
|
12316
12318
|
new N(1094, 10),
|
|
12317
12319
|
new N(2118, 24)
|
|
12318
|
-
], prefix.kInsertRangeLut = [
|
|
12320
|
+
], prefix$1.kInsertRangeLut = [
|
|
12319
12321
|
0,
|
|
12320
12322
|
0,
|
|
12321
12323
|
8,
|
|
@@ -12325,7 +12327,7 @@ function requirePrefix() {
|
|
|
12325
12327
|
8,
|
|
12326
12328
|
16,
|
|
12327
12329
|
16
|
|
12328
|
-
], prefix.kCopyRangeLut = [
|
|
12330
|
+
], prefix$1.kCopyRangeLut = [
|
|
12329
12331
|
0,
|
|
12330
12332
|
8,
|
|
12331
12333
|
0,
|
|
@@ -12335,7 +12337,7 @@ function requirePrefix() {
|
|
|
12335
12337
|
16,
|
|
12336
12338
|
8,
|
|
12337
12339
|
16
|
|
12338
|
-
], prefix;
|
|
12340
|
+
], prefix$1;
|
|
12339
12341
|
}
|
|
12340
12342
|
var transform = {}, hasRequiredTransform;
|
|
12341
12343
|
function requireTransform() {
|
|
@@ -82819,7 +82821,7 @@ function wrapAssembly(N) {
|
|
|
82819
82821
|
async function loadYoga$1() {
|
|
82820
82822
|
return wrapAssembly(await loadYoga$2());
|
|
82821
82823
|
}
|
|
82822
|
-
const r$
|
|
82824
|
+
const r$3 = String.raw, seq = r$3`(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})`, sTags = r$3`\u{E0061}-\u{E007A}`, emojiRegex = () => new RegExp(r$3`[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[${sTags}]{2}[\u{E0030}-\u{E0039}${sTags}]{1,3}\u{E007F}|${seq}(?:\u200D${seq})*`, "gu");
|
|
82823
82825
|
var global$1 = typeof global < "u" ? global : typeof self < "u" ? self : typeof window < "u" ? window : {}, lookup = [], revLookup = [], Arr = typeof Uint8Array < "u" ? Uint8Array : Array, inited = !1;
|
|
82824
82826
|
function init() {
|
|
82825
82827
|
inited = !0;
|
|
@@ -85498,7 +85500,7 @@ const index$1 = /* @__PURE__ */ getDefaultExportFromCjs$2(schedulerExports), n =
|
|
|
85498
85500
|
function t(N) {
|
|
85499
85501
|
return N && N.__esModule && Object.prototype.hasOwnProperty.call(N, "default") ? N.default : N;
|
|
85500
85502
|
}
|
|
85501
|
-
function r$
|
|
85503
|
+
function r$2(N) {
|
|
85502
85504
|
if (N.__esModule) return N;
|
|
85503
85505
|
var W = N.default;
|
|
85504
85506
|
if (typeof W == "function") {
|
|
@@ -85514,7 +85516,7 @@ function r$1(N) {
|
|
|
85514
85516
|
} });
|
|
85515
85517
|
}), M;
|
|
85516
85518
|
}
|
|
85517
|
-
var l$1, a$1 = { exports: {} }, o$1 = { exports: {} }, u$1 = r$
|
|
85519
|
+
var l$1, a$1 = { exports: {} }, o$1 = { exports: {} }, u$1 = r$2(n), i$1, s$1, c$1 = { exports: {} };
|
|
85518
85520
|
/**
|
|
85519
85521
|
* @license React
|
|
85520
85522
|
* react-reconciler.development.js
|
|
@@ -93738,7 +93740,7 @@ const b = (N, W) => {
|
|
|
93738
93740
|
};
|
|
93739
93741
|
var objectAssignExports = requireObjectAssign();
|
|
93740
93742
|
const e = /* @__PURE__ */ getDefaultExportFromCjs$2(objectAssignExports);
|
|
93741
|
-
function r(N) {
|
|
93743
|
+
function r$1(N) {
|
|
93742
93744
|
return N && N.__esModule && Object.prototype.hasOwnProperty.call(N, "default") ? N.default : N;
|
|
93743
93745
|
}
|
|
93744
93746
|
function l(N) {
|
|
@@ -96213,7 +96215,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
96213
96215
|
var Du = i.exports;
|
|
96214
96216
|
return i.exports = N, Du;
|
|
96215
96217
|
};
|
|
96216
|
-
var o = r(a.exports);
|
|
96218
|
+
var o = r$1(a.exports);
|
|
96217
96219
|
const f = (N, W) => {
|
|
96218
96220
|
const M = Object.keys(N), Y = Object.keys(W);
|
|
96219
96221
|
if (M.length !== Y.length) return !1;
|
|
@@ -112850,6 +112852,28 @@ function makeCancellablePromise(N) {
|
|
|
112850
112852
|
}
|
|
112851
112853
|
};
|
|
112852
112854
|
}
|
|
112855
|
+
function r(N) {
|
|
112856
|
+
var W, M, Y = "";
|
|
112857
|
+
if (typeof N == "string" || typeof N == "number") Y += N;
|
|
112858
|
+
else if (typeof N == "object") if (Array.isArray(N)) {
|
|
112859
|
+
var X = N.length;
|
|
112860
|
+
for (W = 0; W < X; W++) N[W] && (M = r(N[W])) && (Y && (Y += " "), Y += M);
|
|
112861
|
+
} else for (M in N) N[M] && (Y && (Y += " "), Y += M);
|
|
112862
|
+
return Y;
|
|
112863
|
+
}
|
|
112864
|
+
function clsx() {
|
|
112865
|
+
for (var N, W, M = 0, Y = "", X = arguments.length; M < X; M++) (N = arguments[M]) && (W = r(N)) && (Y && (Y += " "), Y += W);
|
|
112866
|
+
return Y;
|
|
112867
|
+
}
|
|
112868
|
+
var isProduction = process.env.NODE_ENV === "production", prefix = "Invariant failed";
|
|
112869
|
+
function invariant(N, W) {
|
|
112870
|
+
if (!N) {
|
|
112871
|
+
if (isProduction)
|
|
112872
|
+
throw new Error(prefix);
|
|
112873
|
+
var M = typeof W == "function" ? W() : W, Y = M ? "".concat(prefix, ": ").concat(M) : prefix;
|
|
112874
|
+
throw new Error(Y);
|
|
112875
|
+
}
|
|
112876
|
+
}
|
|
112853
112877
|
var warningExports = requireWarning();
|
|
112854
112878
|
const warning = /* @__PURE__ */ getDefaultExportFromCjs$2(warningExports);
|
|
112855
112879
|
var has = Object.prototype.hasOwnProperty;
|
|
@@ -120385,9 +120409,7 @@ const PrintPediaChartsPdf = memo(
|
|
|
120385
120409
|
// phPrintConfiguration,
|
|
120386
120410
|
obhPregnancyHistory: ue
|
|
120387
120411
|
// obhPrintConfiguration,
|
|
120388
|
-
} = typeof H == "string" && H && JSON.parse(H) || {}, re = useRef(null), [me, he] = useState(!1), [Xe, be] = useState(null)
|
|
120389
|
-
console.log("showPatientPopModal 444777");
|
|
120390
|
-
const { chartIds: Ne = [], chartKey: Ce = "" } = w || {}, [Ke, xe] = useState(1), [Te, pe] = useState($), [Ae, Ge] = useState(
|
|
120412
|
+
} = typeof H == "string" && H && JSON.parse(H) || {}, re = useRef(null), [me, he] = useState(!1), [Xe, be] = useState(null), { chartIds: Ne = [], chartKey: Ce = "" } = w || {}, [Ke, xe] = useState(1), [Te, pe] = useState($), [Ae, Ge] = useState(
|
|
120391
120413
|
N.printType === "bill" || N.printType === "bill_deposit_refund" ? M?.billPatientDetails?.email : N?.printType === "visit" || N?.printType === "pedia_charts" || N?.printType === "pedia_vaccine" ? W?.patientDetails?.email : N?.printType === "casesheet" ? I?.patientDetails?.email : ""
|
|
120392
120414
|
), [Le, fe] = useState(
|
|
120393
120415
|
N.printType === "bill" || N.printType === "bill_deposit_refund" ? M?.billPatientDetails?.mobileNumber : N?.printType === "visit" || N?.printType === "pedia_charts" || N?.printType === "pedia_vaccine" ? W?.patientDetails?.phone_number : N?.printType === "casesheet" ? I?.patientDetails?.phone_number : ""
|
|
@@ -121003,14 +121025,14 @@ export {
|
|
|
121003
121025
|
GET_APPOINTMENTS as e,
|
|
121004
121026
|
GET_PAST_DUE as f,
|
|
121005
121027
|
GET_BILLS as g,
|
|
121006
|
-
|
|
121007
|
-
|
|
121008
|
-
|
|
121009
|
-
|
|
121010
|
-
|
|
121011
|
-
|
|
121012
|
-
|
|
121013
|
-
|
|
121028
|
+
GET_PATIENT_POPUP_VISIT as h,
|
|
121029
|
+
GET_VISIT_ALL as i,
|
|
121030
|
+
GET_CUSTOM_TRANSLATIONS as j,
|
|
121031
|
+
GET_ONLINE_TEST_RANGES as k,
|
|
121032
|
+
GET_REFERREDBY_DOCTOR as l,
|
|
121033
|
+
GET_BILL_SUMMARY as m,
|
|
121034
|
+
GET_BILL_ITEM as n,
|
|
121035
|
+
GET_REFERRAL as o,
|
|
121014
121036
|
GET_IPD_CASE as p,
|
|
121015
121037
|
GET_PATIENT_POPUP_HPLXLAB as q,
|
|
121016
121038
|
GET_INSURANCE_LIST as r,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("./index-
|
|
1
|
+
"use strict";const n=require("./index-CJ2AKRoq.cjs"),c=require("react"),h=({childModalRef:e,children:u,hideBackDrop:f=!1,backdropClasses:o="",modalClasses:i="",closeOnClickOutside:t,clickOutsideHandler:r,position:l="hfl-inset-0"})=>(c.useEffect(()=>{if(!t)return;const s=a=>{e.current&&!e.current.contains(a.target)&&r()};return document.addEventListener("mousedown",s),()=>{document.removeEventListener("mousedown",s)}},[r,e,t]),n.jsxRuntimeExports.jsx("div",{className:`hfl-fixed ${l} hfl-z-50 hfl-flex hfl-items-center hfl-justify-center ${o} ${f?"":"hfl-bg-Gray-750 hfl-backdrop-blur-sm"}`,children:n.jsxRuntimeExports.jsx("div",{ref:e,className:`hfl-rounded-lg hfl-shadow-md hfl-bg-White ${i??""}`,children:u})}));exports.ReusableModal=h;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as t, b as r, q as Y, K as Z } from "./index-
|
|
1
|
+
import { j as t, b as r, q as Y, K as Z } from "./index-UPYT3B9g.js";
|
|
2
2
|
import { useState as o, useRef as C, useCallback as y, useMemo as ee, useEffect as D } from "react";
|
|
3
|
-
import { g as te } from "./APIAction-
|
|
3
|
+
import { g as te } from "./APIAction-DLCcL2Li.js";
|
|
4
4
|
import { u as ne } from "./useMediaQuery-CZAbdJzN.js";
|
|
5
|
-
import { d as re, g as le, a as T, E as se } from "./common-utils-
|
|
5
|
+
import { d as re, g as le, a as T, E as se } from "./common-utils-BidUvSFN.js";
|
|
6
6
|
const oe = Math.abs(window.orientation || 0) === 90, de = (G) => {
|
|
7
7
|
const {
|
|
8
8
|
addPatientHandler: R,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./index-
|
|
1
|
+
"use strict";const t=require("./index-CJ2AKRoq.cjs"),n=require("react"),W=require("./APIAction-Bev2spv1.cjs"),J=require("./useMediaQuery-D4SIgdMW.cjs"),p=require("./common-utils-BNaPcohw.cjs"),V=Math.abs(window.orientation||0)===90,X=P=>{const{addPatientHandler:k,disabled:x,manipulateExistingDOM:C,onPatientSelect:w,showSearchBar:D,setShowSearchBar:a,variable:T}=P,{window_var:o,token:y,envName:v}=T,[c,f]=n.useState(!1),d=n.useRef(null),u=n.useRef(null),[A,G]=n.useState(0),[L,l]=n.useState([]),U=6,[E,b]=n.useState(""),[F,B]=n.useState([]),[$,R]=n.useState(!0),[q,S]=n.useState([]),h=J.useMediaQuery("(max-width: 1024px)"),m=(e,s,r,i)=>{B([{id:1,title:e,description:s,type:r,duration:i}])},_=n.useCallback(async e=>{try{const s={branch_id:o?.org_branch_id_for_seg||"",doctor_id:o?.person_id_for_seg||"",doctor_role_id:o?.doctor_role_id_for_seg||"",term:encodeURIComponent(e),limit:30},r=await W.getPatientList(s,{envName:v,token:y});if(!r){l([]),m("Error","No response received from server","Error",3e3);return}const i=r,N=window.filteredUpcomingAppts||[];if(i.apiError){l([]),m("Error",i.apiError,"Error",3e3);return}i?.persons?.length?(l(i.persons),f(!0),G(Number(i.total_persons))):l([]),N?.length?(R(!1),S(N.slice(0,5))):(R(!0),S([]))}catch(s){console.error(s),m("Error","Something went wrong while fetching patients","Error",3e3)}},[v,y,o?.doctor_role_id_for_seg,o?.org_branch_id_for_seg,o?.person_id_for_seg]),z=n.useMemo(()=>p.debounceFn(e=>{_(e)},500),[_]),H=e=>{const s=e.currentTarget.value.trim();(!isNaN(Number(s.charAt(0)))||s.length>=2)&&z(s)},M=()=>{c||_(E)},O=()=>{x||f(e=>!e)},g=n.useCallback(e=>{u.current&&c&&!u.current.contains(e.target)&&(f(!1),l([]))},[c]);n.useEffect(()=>(document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)),[g,c]);const Q=e=>{window.location.href.includes("/frontdesk")?window.patientPopupHandlerFromFD(e.patient_role_id,e.patient_person_id):p.goToPage(`viewPatientDashboard.php?pid=${e.patient_role_id}`)},I=async e=>{let s=!0;if(typeof window.beforePatientChange=="function"&&window.location.pathname==p.EAPP_ROUTES.visitpad&&(s=window.beforePatientChange()),f(!1),l([]),!s)return;if(w){w(e);return}window.patient_role_id=e.person_role_id!=="0"?e.person_role_id.toString():"0",window.patient_person_id=e.person_id!=="0"?e.person_id.toString():"0";const r=(e.person_role_id==="0",e.person_role_id);if(r&&(C?.(),window.location.href.includes("/frontdesk"))){window.patientPopupHandlerFromFD(r,e.person_id);return}p.goToPage(`viewPatientDashboard.php?pid=${r}`)},K=()=>{O(),k(),b("")},j=n.useCallback(e=>{d.current&&!d.current.contains(e.target)&&h&&a(!1)},[h,a]);return n.useEffect(()=>(document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)),[j]),t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[D?t.jsxRuntimeExports.jsxs("div",{className:`hfl-flex hfl-items-center hfl-justify-center hfl-rounded-full hfl-bg-Blue-900 hfl-text-White ${x?"hfl-pointer-events-none hfl-opacity-60":""}`,title:x?"Low internet speed. Feature available only in online mode":"Search Patient",children:[t.jsxRuntimeExports.jsx("input",{ref:d,type:"text",placeholder:"Search Patient 🔍",className:`hfl-rounded-full hfl-border-none hfl-bg-Blue-900 hfl-py-2 hfl-pl-4 ${h&&!V?"xxs:hfl-w-[400px]":"hfl-min-w-[150px]"} sm:hfl-w-full`,"data-qa":"testid_patientSearch",value:E,onKeyUp:H,onChange:e=>b(e.target.value),onClick:M,onBlur:()=>h&&a(!1)}),h&&t.jsxRuntimeExports.jsx("div",{className:"hx_close hfl-cursor-pointer hfl-pr-4",onClick:()=>a(e=>!e)})]}):t.jsxRuntimeExports.jsxs("div",{onClick:()=>a(e=>!e),className:"hfl-flex hfl-cursor-pointer hfl-flex-col hfl-items-center xs:hfl-mr-1 md:hfl-mr-0",children:[t.jsxRuntimeExports.jsx("i",{className:"hx_search",style:{fontSize:"18px"}}),t.jsxRuntimeExports.jsx(t.bs,{variant:"Regular",type:"Text md",children:"Search"})]}),t.jsxRuntimeExports.jsx(t.qh,{toastList:F}),t.jsxRuntimeExports.jsxs("div",{ref:u,className:`hfl-absolute hfl-right-[255px] hfl-top-[50px] hfl-max-h-[400px] hfl-w-[430px] hfl-overflow-y-auto hfl-rounded-lg hfl-border hfl-border-Gray-300 hfl-bg-White hfl-shadow-md ${c?"hfl-block":"hfl-hidden"}`,children:[!$&&t.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-flex-col",children:[t.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-items-center hfl-py-[10px] ",children:[t.jsxRuntimeExports.jsx(t.bs,{className:"hfl-px-[12px] hfl-text-Gray-400",variant:"Semibold",type:"Text xs",children:"Upcoming Appointments"}),t.jsxRuntimeExports.jsx("a",{href:"viewPatientAppointments.php",children:t.jsxRuntimeExports.jsx("i",{className:"hx_r-open hfl-text-Primary-700"})})]}),q.map((e,s)=>t.jsxRuntimeExports.jsxs("div",{className:`hfl-flex hfl-cursor-pointer hfl-justify-between hfl-px-[12px] hfl-py-[4px] hover:hfl-bg-Blue_gray-200 ${s%2===1?"":"hfl-bg-Gray-100"}`,onClick:()=>Q(e),children:[t.jsxRuntimeExports.jsx("div",{className:"hfl-flex hfl-min-w-[92px] hfl-items-center hfl-justify-center hfl-rounded-lg hfl-border hfl-border-Gray-100 hfl-bg-White_20 hfl-p-2",children:t.jsxRuntimeExports.jsx(t.bs,{className:"hfl-whitespace-nowrap hfl-text-Gray-500",variant:"Regular",type:"Text lg",children:e.appnt_time})}),t.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-w-full hfl-flex-col hfl-px-3",children:[t.jsxRuntimeExports.jsx(t.bs,{variant:"Regular",type:"Text md",className:"hfl-text-Gray-700",children:e.org_person_name}),t.jsxRuntimeExports.jsx(t.bs,{variant:"Regular",type:"Text sm",className:"hfl-text-Gray-500",children:e.org_person_phone})]}),t.jsxRuntimeExports.jsx("div",{className:"hfl-flex hfl-items-center",children:t.jsxRuntimeExports.jsx("i",{className:"hx_play-filled hfl-text-Gray-300"})})]},e.patient_role_id))]}),t.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-flex-col",children:[t.jsxRuntimeExports.jsx(t.bs,{style:{fontSize:"14px"},variant:"Semibold",type:"Text sm",className:"hfl-px-[12px] hfl-py-[8px] hfl-text-Primary-600",children:"Patients List"}),t.jsxRuntimeExports.jsx("div",{className:"hfl-max-h-[40vh] hfl-overflow-y-auto scrollbar-hide",children:L.map((e,s)=>t.jsxRuntimeExports.jsxs("div",{className:`hfl-cursor-pointer hfl-px-[11px] hfl-py-[12px] hfl-leading-9 hover:hfl-bg-Blue_gray-200 ${s%2===1?"":"hfl-bg-Gray-100"}`,onClick:()=>I(e),children:[t.jsxRuntimeExports.jsx(t.bs,{variant:"Regular",type:"Text sm",className:"hfl-inline hfl-uppercase hfl-text-Gray-700",style:{fontSize:"14px"},children:e.org_person_bid_str?e.org_person_bid_str+": ":""}),t.jsxRuntimeExports.jsxs(t.bs,{variant:"Medium",type:"Text sm",className:" hfl-inline hfl-capitalize hfl-text-Gray-700",style:{fontSize:"14px"},children:[e.org_person_name," ",t.jsxRuntimeExports.jsxs("div",{className:"hfl-inline-block",children:["(",e.ageStr.split(" ")[0],", ",p.getGender(Number(e.org_person_gender)),")"]})," "]}),t.jsxRuntimeExports.jsx(t.bs,{variant:"Regular",type:"Text sm",className:"hfl-inline-block hfl-text-Gray-700",style:{fontSize:"14px"},children:e.org_person_phone?`Ph: ${e.org_person_phone}`:""})]},e.person_role_id))})]}),A<U&&t.jsxRuntimeExports.jsx("div",{className:"hfl-flex hfl-justify-center",id:"newPatientAdd",children:t.jsxRuntimeExports.jsx(t.Ku,{hierarchy:"Secondary",icon:"Left",iconFile:"hx_add",onClick:K,size:"lg",textField:"Create New Patient",className:"hfl-flex hfl-w-full hfl-justify-center"})})]})]})};exports.SearchPatients=X;
|