hplx-feature-library 1.0.219 → 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.
Files changed (89) hide show
  1. package/dist/APIAction-Bev2spv1.cjs +1 -0
  2. package/dist/{APIAction-l6i46qgX.js → APIAction-DLCcL2Li.js} +23 -24
  3. package/dist/Attachments/index.js +1 -1
  4. package/dist/{Attachments-BzZHI8d3.js → Attachments-3UkuRnaT.js} +6297 -6180
  5. package/dist/Attachments-B9GrTokn.cjs +202 -0
  6. package/dist/NineDots/index.js +1 -1
  7. package/dist/{NineDots-CCtE2t9I.js → NineDots-gflwjmeo.js} +1 -1
  8. package/dist/{NineDots-BEzE3Pj8.cjs → NineDots-q--wtv3_.cjs} +1 -1
  9. package/dist/PatientAddEdit/index.js +1 -1
  10. package/dist/{PatientAddEdit-CPjv2_ZF.js → PatientAddEdit-DRQcxWYN.js} +6 -7
  11. package/dist/PatientAddEdit-DtcwFtoA.cjs +7 -0
  12. package/dist/PatientPopup/index.js +1 -1
  13. package/dist/PatientPopupContainer-01TVoq-l.cjs +36 -0
  14. package/dist/{PatientPopupContainer-Duqcxwvh.js → PatientPopupContainer-DR5aP_eg.js} +3402 -3376
  15. package/dist/PediatricsCalculator/index.js +1 -1
  16. package/dist/PediatricsCalculatorTable-bTvt7SWQ.cjs +9 -0
  17. package/dist/{PediatricsCalculatorTable-G0ttbDpi.js → PediatricsCalculatorTable-qu37FR7D.js} +236 -228
  18. package/dist/{PrintModal-JdrjFZDR.cjs → PrintModal-C0ullnUh.cjs} +13 -13
  19. package/dist/{PrintModal-B-OS9evV.js → PrintModal-D25hmhNL.js} +83 -42
  20. package/dist/{ReusableModal-CIgDYOWZ.cjs → ReusableModal-2GKjVVbf.cjs} +1 -1
  21. package/dist/{ReusableModal-CT4_gW1b.js → ReusableModal-BL_DwV8I.js} +1 -1
  22. package/dist/SearchPatients/index.js +1 -1
  23. package/dist/{SearchPatients-BYGGaUoD.js → SearchPatients-BbtytMYS.js} +3 -3
  24. package/dist/{SearchPatients-BXNWucYz.cjs → SearchPatients-DbYAGumB.cjs} +1 -1
  25. package/dist/UserProfile/index.js +1 -1
  26. package/dist/{UserProfile-DkQgWGvV.cjs → UserProfile-D3Rhhuj9.cjs} +4 -4
  27. package/dist/{UserProfile-CcEbhDhd.js → UserProfile-jDWt9g20.js} +8 -9
  28. package/dist/common-utils-BNaPcohw.cjs +6 -0
  29. package/dist/common-utils-BidUvSFN.js +2233 -0
  30. package/dist/hplx-feature-library.css +1 -1
  31. package/dist/{index-T1lUjzhG.js → index-BzwuwvT5.js} +1 -1
  32. package/dist/{index-DQlbIHh3.cjs → index-CJ2AKRoq.cjs} +26 -26
  33. package/dist/{index-DkA8S5IK.cjs → index-CRCsQdYf.cjs} +1 -1
  34. package/dist/{index-Bd0CDVpH.js → index-UPYT3B9g.js} +2 -3
  35. package/dist/index.d.ts +0 -1
  36. package/dist/index.js +14 -16
  37. package/dist/print-pdf/index.js +1 -1
  38. package/package.json +9 -14
  39. package/dist/APIAction-5-3i1gGx.cjs +0 -1
  40. package/dist/AllInvestigations/components/AllInvestigationsTable.d.ts +0 -19
  41. package/dist/AllInvestigations/index.d.ts +0 -1
  42. package/dist/AllInvestigations/index.js +0 -4
  43. package/dist/AllInvestigations/utils/test-tange-util.d.ts +0 -8
  44. package/dist/AllInvestigationsTable-BDLPOHjr.cjs +0 -79
  45. package/dist/AllInvestigationsTable-Dg-YXASz.js +0 -17065
  46. package/dist/Attachments-CziD-_gm.cjs +0 -186
  47. package/dist/PatientAddEdit-UFho4sOA.cjs +0 -7
  48. package/dist/PatientPopupContainer-DT2S0ZxQ.cjs +0 -36
  49. package/dist/PediatricsCalculatorTable-B4fTy1J5.cjs +0 -9
  50. package/dist/ReusableTable/ReusableTable.d.ts +0 -3
  51. package/dist/ReusableTable/ReusableTableConstants.d.ts +0 -8
  52. package/dist/ReusableTable/ReusableTableTypes.d.ts +0 -96
  53. package/dist/ReusableTable/components/EmptyTableContainer.d.ts +0 -12
  54. package/dist/ReusableTable/components/FilterCheckbox.d.ts +0 -8
  55. package/dist/ReusableTable/components/FilterDropdown.d.ts +0 -17
  56. package/dist/ReusableTable/components/Pagination.d.ts +0 -2
  57. package/dist/ReusableTable/components/TableBody.d.ts +0 -2
  58. package/dist/ReusableTable/components/TableCell.d.ts +0 -3
  59. package/dist/ReusableTable/components/TableFilterSelect.d.ts +0 -12
  60. package/dist/ReusableTable/components/TableHead.d.ts +0 -2
  61. package/dist/ReusableTable/components/TableMain.d.ts +0 -2
  62. package/dist/ReusableTable/components/TableRow.d.ts +0 -3
  63. package/dist/ReusableTable/context/TableContext.d.ts +0 -21
  64. package/dist/ReusableTable/context/TableContextBase.d.ts +0 -26
  65. package/dist/ReusableTable/context/useTableContext.d.ts +0 -2
  66. package/dist/TrendGraphs/AreaChartComponent.d.ts +0 -9
  67. package/dist/TrendGraphs/LineChartComponent/DataPointToolTip.d.ts +0 -16
  68. package/dist/TrendGraphs/LineChartComponent/LineChartBody.d.ts +0 -2
  69. package/dist/TrendGraphs/LineChartComponent/LineChartHeader.d.ts +0 -2
  70. package/dist/TrendGraphs/LineChartComponent/index.d.ts +0 -2
  71. package/dist/TrendGraphs/context/index.d.ts +0 -2
  72. package/dist/TrendGraphs/hooks/useTrendGraphContext.d.ts +0 -2
  73. package/dist/TrendGraphs/utils/index.d.ts +0 -4
  74. package/dist/clsx-C11secjj.cjs +0 -1
  75. package/dist/clsx-OuTLNxxd.js +0 -16
  76. package/dist/common-utils-CJv4_aVl.cjs +0 -6
  77. package/dist/common-utils-Dq5TMP7t.js +0 -1952
  78. package/dist/components/Modal.d.ts +0 -5
  79. package/dist/constants/TrendGraphsConstants.d.ts +0 -2
  80. package/dist/dayjs.min-D52_GdfV.js +0 -284
  81. package/dist/dayjs.min-DXp74Ozx.cjs +0 -1
  82. package/dist/index-CJFGOBPb.js +0 -122
  83. package/dist/index-DfcUmlge.cjs +0 -17
  84. package/dist/types/AllInvestigationTypes/index.js +0 -4
  85. package/dist/types/AllInvestigationTypes.d.ts +0 -45
  86. package/dist/types/NineDotsTypes/index.js +0 -1
  87. package/dist/types/TrendGraphTypes.d.ts +0 -19
  88. package/dist/useClickOutside-BjJyGTec.js +0 -14
  89. 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, l as requireObjectAssign, m as PropTypes, b as bs } from "./index-Bd0CDVpH.js";
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, n as E_ENVIRONMENT, o as getDurationFormat, j as isValidDate, m as capitalizeFirstLetter, i as isJson, d as debounceFn } from "./common-utils-Dq5TMP7t.js";
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 W;
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;
@@ -6956,7 +6945,36 @@ var renderElement = function(N, W) {
6956
6945
  var Y = W.ownerDocument, X = Y.documentElement ? parseColor$1(N, getComputedStyle(Y.documentElement).backgroundColor) : COLORS.TRANSPARENT, I = Y.body ? parseColor$1(N, getComputedStyle(Y.body).backgroundColor) : COLORS.TRANSPARENT, w = typeof M == "string" ? parseColor$1(N, M) : M === null ? COLORS.TRANSPARENT : 4294967295;
6957
6946
  return W === Y.documentElement ? isTransparent(X) ? isTransparent(I) ? w : I : X : w;
6958
6947
  };
6959
- const convertDaysToWeeksAndDays = (N) => {
6948
+ const findChangedProperties = (N, W, M = "") => {
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
+ });
6965
+ else
6966
+ Y[`${M ? `${M}.` : ""}${X}`] = {
6967
+ oldValue: I,
6968
+ newValue: void 0
6969
+ };
6970
+ }
6971
+ for (const X in W)
6972
+ Object.prototype.hasOwnProperty.call(W, X) || (Y[`${M ? `${M}.` : ""}${X}`] = {
6973
+ oldValue: void 0,
6974
+ newValue: W[X]
6975
+ });
6976
+ return Y;
6977
+ }, convertDaysToWeeksAndDays = (N) => {
6960
6978
  if (!N) return { weeks: 0, days: 0 };
6961
6979
  const W = Math.floor(N / 7), M = N % 7;
6962
6980
  return { weeks: W, days: M };
@@ -12215,14 +12233,14 @@ function requireContext() {
12215
12233
  512
12216
12234
  ])), context;
12217
12235
  }
12218
- var prefix = {}, hasRequiredPrefix;
12236
+ var prefix$1 = {}, hasRequiredPrefix;
12219
12237
  function requirePrefix() {
12220
- if (hasRequiredPrefix) return prefix;
12238
+ if (hasRequiredPrefix) return prefix$1;
12221
12239
  hasRequiredPrefix = 1;
12222
12240
  function N(W, M) {
12223
12241
  this.offset = W, this.nbits = M;
12224
12242
  }
12225
- return prefix.kBlockLengthPrefixCode = [
12243
+ return prefix$1.kBlockLengthPrefixCode = [
12226
12244
  new N(1, 2),
12227
12245
  new N(5, 2),
12228
12246
  new N(9, 2),
@@ -12249,7 +12267,7 @@ function requirePrefix() {
12249
12267
  new N(4337, 12),
12250
12268
  new N(8433, 13),
12251
12269
  new N(16625, 24)
12252
- ], prefix.kInsertLengthPrefixCode = [
12270
+ ], prefix$1.kInsertLengthPrefixCode = [
12253
12271
  new N(0, 0),
12254
12272
  new N(1, 0),
12255
12273
  new N(2, 0),
@@ -12274,7 +12292,7 @@ function requirePrefix() {
12274
12292
  new N(2114, 12),
12275
12293
  new N(6210, 14),
12276
12294
  new N(22594, 24)
12277
- ], prefix.kCopyLengthPrefixCode = [
12295
+ ], prefix$1.kCopyLengthPrefixCode = [
12278
12296
  new N(2, 0),
12279
12297
  new N(3, 0),
12280
12298
  new N(4, 0),
@@ -12299,7 +12317,7 @@ function requirePrefix() {
12299
12317
  new N(582, 9),
12300
12318
  new N(1094, 10),
12301
12319
  new N(2118, 24)
12302
- ], prefix.kInsertRangeLut = [
12320
+ ], prefix$1.kInsertRangeLut = [
12303
12321
  0,
12304
12322
  0,
12305
12323
  8,
@@ -12309,7 +12327,7 @@ function requirePrefix() {
12309
12327
  8,
12310
12328
  16,
12311
12329
  16
12312
- ], prefix.kCopyRangeLut = [
12330
+ ], prefix$1.kCopyRangeLut = [
12313
12331
  0,
12314
12332
  8,
12315
12333
  0,
@@ -12319,7 +12337,7 @@ function requirePrefix() {
12319
12337
  16,
12320
12338
  8,
12321
12339
  16
12322
- ], prefix;
12340
+ ], prefix$1;
12323
12341
  }
12324
12342
  var transform = {}, hasRequiredTransform;
12325
12343
  function requireTransform() {
@@ -82803,7 +82821,7 @@ function wrapAssembly(N) {
82803
82821
  async function loadYoga$1() {
82804
82822
  return wrapAssembly(await loadYoga$2());
82805
82823
  }
82806
- const r$2 = String.raw, seq = r$2`(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})`, sTags = r$2`\u{E0061}-\u{E007A}`, emojiRegex = () => new RegExp(r$2`[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[${sTags}]{2}[\u{E0030}-\u{E0039}${sTags}]{1,3}\u{E007F}|${seq}(?:\u200D${seq})*`, "gu");
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");
82807
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;
82808
82826
  function init() {
82809
82827
  inited = !0;
@@ -85482,7 +85500,7 @@ const index$1 = /* @__PURE__ */ getDefaultExportFromCjs$2(schedulerExports), n =
85482
85500
  function t(N) {
85483
85501
  return N && N.__esModule && Object.prototype.hasOwnProperty.call(N, "default") ? N.default : N;
85484
85502
  }
85485
- function r$1(N) {
85503
+ function r$2(N) {
85486
85504
  if (N.__esModule) return N;
85487
85505
  var W = N.default;
85488
85506
  if (typeof W == "function") {
@@ -85498,7 +85516,7 @@ function r$1(N) {
85498
85516
  } });
85499
85517
  }), M;
85500
85518
  }
85501
- var l$1, a$1 = { exports: {} }, o$1 = { exports: {} }, u$1 = r$1(n), i$1, s$1, c$1 = { exports: {} };
85519
+ var l$1, a$1 = { exports: {} }, o$1 = { exports: {} }, u$1 = r$2(n), i$1, s$1, c$1 = { exports: {} };
85502
85520
  /**
85503
85521
  * @license React
85504
85522
  * react-reconciler.development.js
@@ -93722,7 +93740,7 @@ const b = (N, W) => {
93722
93740
  };
93723
93741
  var objectAssignExports = requireObjectAssign();
93724
93742
  const e = /* @__PURE__ */ getDefaultExportFromCjs$2(objectAssignExports);
93725
- function r(N) {
93743
+ function r$1(N) {
93726
93744
  return N && N.__esModule && Object.prototype.hasOwnProperty.call(N, "default") ? N.default : N;
93727
93745
  }
93728
93746
  function l(N) {
@@ -96197,7 +96215,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
96197
96215
  var Du = i.exports;
96198
96216
  return i.exports = N, Du;
96199
96217
  };
96200
- var o = r(a.exports);
96218
+ var o = r$1(a.exports);
96201
96219
  const f = (N, W) => {
96202
96220
  const M = Object.keys(N), Y = Object.keys(W);
96203
96221
  if (M.length !== Y.length) return !1;
@@ -112834,6 +112852,28 @@ function makeCancellablePromise(N) {
112834
112852
  }
112835
112853
  };
112836
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
+ }
112837
112877
  var warningExports = requireWarning();
112838
112878
  const warning = /* @__PURE__ */ getDefaultExportFromCjs$2(warningExports);
112839
112879
  var has = Object.prototype.hasOwnProperty;
@@ -120369,9 +120409,7 @@ const PrintPediaChartsPdf = memo(
120369
120409
  // phPrintConfiguration,
120370
120410
  obhPregnancyHistory: ue
120371
120411
  // obhPrintConfiguration,
120372
- } = typeof H == "string" && H && JSON.parse(H) || {}, re = useRef(null), [me, he] = useState(!1), [Xe, be] = useState(null);
120373
- console.log("showPatientPopModal 444777");
120374
- 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(
120375
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 : ""
120376
120414
  ), [Le, fe] = useState(
120377
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 : ""
@@ -120957,7 +120995,10 @@ const PrintPediaChartsPdf = memo(
120957
120995
  ),
120958
120996
  ht() && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "hfl-fixed hfl-inset-0 hfl-z-[51] hfl-bg-Black hfl-opacity-25" })
120959
120997
  ] });
120960
- };
120998
+ }, PrintModal$1 = memo(PrintModal, (N, W) => {
120999
+ const M = findChangedProperties(N, W);
121000
+ return !Object.keys(M).length;
121001
+ });
120961
121002
  export {
120962
121003
  GET_ABHA_CONSENT as A,
120963
121004
  GENERATE_OTP_BY_ABHA_ADDRESS as B,
@@ -120972,7 +121013,7 @@ export {
120972
121013
  sendAttachLISReport as K,
120973
121014
  getHplxLabPdfUrl as L,
120974
121015
  sendV2PrintEmailOrSMS as M,
120975
- PrintModal as P,
121016
+ PrintModal$1 as P,
120976
121017
  Text as T,
120977
121018
  UPDATE_WALLET as U,
120978
121019
  VERIFY_INSURANCE as V,
@@ -120984,14 +121025,14 @@ export {
120984
121025
  GET_APPOINTMENTS as e,
120985
121026
  GET_PAST_DUE as f,
120986
121027
  GET_BILLS as g,
120987
- GET_REFERREDBY_DOCTOR as h,
120988
- GET_BILL_SUMMARY as i,
120989
- GET_BILL_ITEM as j,
120990
- GET_REFERRAL as k,
120991
- GET_PATIENT_POPUP_VISIT as l,
120992
- GET_CUSTOM_TRANSLATIONS as m,
120993
- GET_ONLINE_TEST_RANGES as n,
120994
- GET_VISIT_ALL as o,
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,
120995
121036
  GET_IPD_CASE as p,
120996
121037
  GET_PATIENT_POPUP_HPLXLAB as q,
120997
121038
  GET_INSURANCE_LIST as r,
@@ -1 +1 @@
1
- "use strict";const n=require("./index-DQlbIHh3.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
+ "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,4 +1,4 @@
1
- import { j as n } from "./index-Bd0CDVpH.js";
1
+ import { j as n } from "./index-UPYT3B9g.js";
2
2
  import { useEffect as l } from "react";
3
3
  const c = ({
4
4
  childModalRef: e,
@@ -1,4 +1,4 @@
1
- import { S as f } from "../SearchPatients-BYGGaUoD.js";
1
+ import { S as f } from "../SearchPatients-BbtytMYS.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,8 +1,8 @@
1
- import { j as t, b as r, q as Y, K as Z } from "./index-Bd0CDVpH.js";
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-l6i46qgX.js";
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-Dq5TMP7t.js";
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-DQlbIHh3.cjs"),n=require("react"),W=require("./APIAction-5-3i1gGx.cjs"),J=require("./useMediaQuery-D4SIgdMW.cjs"),p=require("./common-utils-CJv4_aVl.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;
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;
@@ -1,4 +1,4 @@
1
- import { U as f } from "../UserProfile-CcEbhDhd.js";
1
+ import { U as f } from "../UserProfile-jDWt9g20.js";
2
2
  export {
3
3
  f as default
4
4
  };