hplx-feature-library 1.0.202 → 1.0.203

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 (94) hide show
  1. package/dist/APIAction-5-3i1gGx.cjs +1 -0
  2. package/dist/{APIAction-BpUGTq-P.js → APIAction-l6i46qgX.js} +24 -23
  3. package/dist/AllInvestigations/components/AllInvestigationsTable.d.ts +19 -0
  4. package/dist/AllInvestigations/index.d.ts +1 -0
  5. package/dist/AllInvestigations/index.js +4 -0
  6. package/dist/AllInvestigations/utils/test-tange-util.d.ts +8 -0
  7. package/dist/AllInvestigationsTable-BDLPOHjr.cjs +79 -0
  8. package/dist/AllInvestigationsTable-Dg-YXASz.js +17065 -0
  9. package/dist/Attachments/index.js +1 -1
  10. package/dist/{Attachments-3UkuRnaT.js → Attachments-BzZHI8d3.js} +6180 -6297
  11. package/dist/Attachments-CziD-_gm.cjs +186 -0
  12. package/dist/CommonConstant-Bj7SvPfU.js +436 -0
  13. package/dist/CommonConstant-COHqiSWL.cjs +1 -0
  14. package/dist/NineDots/index.js +4 -0
  15. package/dist/NineDots-BEzE3Pj8.cjs +3 -0
  16. package/dist/NineDots-CCtE2t9I.js +1788 -0
  17. package/dist/PatientAddEdit/index.js +1 -1
  18. package/dist/{PatientAddEdit-DjNwzBQV.js → PatientAddEdit-CPjv2_ZF.js} +20 -18
  19. package/dist/PatientAddEdit-UFho4sOA.cjs +7 -0
  20. package/dist/PatientPopup/index.js +1 -1
  21. package/dist/{PatientPopupContainer-RxozPrZy.js → PatientPopupContainer-AprY0NY2.js} +49 -47
  22. package/dist/PatientPopupContainer-Cwv4GWjB.cjs +36 -0
  23. package/dist/PediatricsCalculator/index.js +1 -1
  24. package/dist/PediatricsCalculatorTable-B4fTy1J5.cjs +9 -0
  25. package/dist/{PediatricsCalculatorTable-qu37FR7D.js → PediatricsCalculatorTable-G0ttbDpi.js} +228 -236
  26. package/dist/{PrintModal-DYCkcIdD.cjs → PrintModal-CHkA2pab.cjs} +50 -52
  27. package/dist/{PrintModal-D4AX-Rz-.js → PrintModal-DFzssQg2.js} +3261 -3227
  28. package/dist/{ReusableModal-2GKjVVbf.cjs → ReusableModal-CIgDYOWZ.cjs} +1 -1
  29. package/dist/{ReusableModal-BL_DwV8I.js → ReusableModal-CT4_gW1b.js} +1 -1
  30. package/dist/ReusableTable/ReusableTable.d.ts +3 -0
  31. package/dist/ReusableTable/ReusableTableConstants.d.ts +8 -0
  32. package/dist/ReusableTable/ReusableTableTypes.d.ts +96 -0
  33. package/dist/ReusableTable/components/EmptyTableContainer.d.ts +12 -0
  34. package/dist/ReusableTable/components/FilterCheckbox.d.ts +8 -0
  35. package/dist/ReusableTable/components/FilterDropdown.d.ts +17 -0
  36. package/dist/ReusableTable/components/Pagination.d.ts +2 -0
  37. package/dist/ReusableTable/components/TableBody.d.ts +2 -0
  38. package/dist/ReusableTable/components/TableCell.d.ts +3 -0
  39. package/dist/ReusableTable/components/TableFilterSelect.d.ts +12 -0
  40. package/dist/ReusableTable/components/TableHead.d.ts +2 -0
  41. package/dist/ReusableTable/components/TableMain.d.ts +2 -0
  42. package/dist/ReusableTable/components/TableRow.d.ts +3 -0
  43. package/dist/ReusableTable/context/TableContext.d.ts +21 -0
  44. package/dist/ReusableTable/context/TableContextBase.d.ts +26 -0
  45. package/dist/ReusableTable/context/useTableContext.d.ts +2 -0
  46. package/dist/SearchPatients/index.js +1 -1
  47. package/dist/{SearchPatients-CKu0XGDw.cjs → SearchPatients-BXNWucYz.cjs} +1 -1
  48. package/dist/{SearchPatients-B34Jmyh7.js → SearchPatients-BYGGaUoD.js} +3 -3
  49. package/dist/TrendGraphs/AreaChartComponent.d.ts +9 -0
  50. package/dist/TrendGraphs/LineChartComponent/DataPointToolTip.d.ts +16 -0
  51. package/dist/TrendGraphs/LineChartComponent/LineChartBody.d.ts +2 -0
  52. package/dist/TrendGraphs/LineChartComponent/LineChartHeader.d.ts +2 -0
  53. package/dist/TrendGraphs/LineChartComponent/index.d.ts +2 -0
  54. package/dist/TrendGraphs/context/index.d.ts +2 -0
  55. package/dist/TrendGraphs/hooks/useTrendGraphContext.d.ts +2 -0
  56. package/dist/TrendGraphs/utils/index.d.ts +4 -0
  57. package/dist/UserProfile/index.js +4 -0
  58. package/dist/UserProfile-CcEbhDhd.js +1761 -0
  59. package/dist/UserProfile-DkQgWGvV.cjs +14 -0
  60. package/dist/clsx-C11secjj.cjs +1 -0
  61. package/dist/clsx-OuTLNxxd.js +16 -0
  62. package/dist/common-utils-CJv4_aVl.cjs +6 -0
  63. package/dist/common-utils-Dq5TMP7t.js +1952 -0
  64. package/dist/components/Modal.d.ts +5 -0
  65. package/dist/constants/TrendGraphsConstants.d.ts +2 -0
  66. package/dist/dayjs.min-D52_GdfV.js +284 -0
  67. package/dist/dayjs.min-DXp74Ozx.cjs +1 -0
  68. package/dist/hplx-feature-library.css +1 -1
  69. package/dist/{index-UPYT3B9g.js → index-Bd0CDVpH.js} +3 -2
  70. package/dist/index-CJFGOBPb.js +122 -0
  71. package/dist/{index-CJ2AKRoq.cjs → index-DQlbIHh3.cjs} +26 -26
  72. package/dist/index-DfcUmlge.cjs +17 -0
  73. package/dist/{index-CRCsQdYf.cjs → index-DkA8S5IK.cjs} +1 -1
  74. package/dist/{index-BzwuwvT5.js → index-T1lUjzhG.js} +1 -1
  75. package/dist/index.d.ts +3 -0
  76. package/dist/index.js +18 -12
  77. package/dist/nineDots/index.d.ts +1 -0
  78. package/dist/print-pdf/index.js +1 -1
  79. package/dist/types/AllInvestigationTypes/index.js +4 -0
  80. package/dist/types/AllInvestigationTypes.d.ts +45 -0
  81. package/dist/types/CommonTypes.d.ts +1 -1
  82. package/dist/types/NineDotsTypes/index.js +1 -0
  83. package/dist/types/TrendGraphTypes.d.ts +19 -0
  84. package/dist/useClickOutside-BjJyGTec.js +14 -0
  85. package/dist/useClickOutside-DsVG12Cs.cjs +1 -0
  86. package/dist/userProfile/index.d.ts +1 -0
  87. package/package.json +14 -9
  88. package/dist/APIAction-Dh8yXpE0.cjs +0 -1
  89. package/dist/Attachments-B9GrTokn.cjs +0 -202
  90. package/dist/PatientAddEdit-DKtOZH2N.cjs +0 -7
  91. package/dist/PatientPopupContainer-Bg9zUots.cjs +0 -36
  92. package/dist/PediatricsCalculatorTable-bTvt7SWQ.cjs +0 -9
  93. package/dist/common-utils-B6431-iN.js +0 -2657
  94. package/dist/common-utils-DeErqLTB.cjs +0 -6
@@ -1,12 +1,14 @@
1
- import { j as e, b as D, g as xn, t as Ln, K as Fe, h as kn, P as Tt, Z as Or, k as ll, a as Oa, e as hr, A as ur, c as vn, N as _n, O as Ul, E as yn, q as Vn } from "./index-UPYT3B9g.js";
1
+ import { j as e, b as D, g as xn, t as Ln, K as Fe, h as kn, P as Tt, Z as Or, k as ll, a as Oa, e as hr, A as ur, c as vn, N as _n, O as Ul, E as yn, q as Vn } from "./index-Bd0CDVpH.js";
2
2
  import cl, { createContext as On, useContext as kt, useState as Y, forwardRef as Wn, useRef as Mr, useEffect as Ke, useCallback as Lt, useMemo as Kt, useReducer as Wa } from "react";
3
- import { o as Ga, R as Ct, c as Be, h as za, q as zn, e as Yn, H as qn, v as an, k as nn, D as Na, M as Da, l as Wl, S as $n, C as Aa, O as Ia, i as Un } from "./common-utils-B6431-iN.js";
4
- import { G as Zn, a as Kn, b as Xn, c as bn, U as Ya, d as Jn, e as wn, f as Qn, g as Cn, h as ei, i as ti, j as ri, k as li, l as ai, m as ni, n as ii, o as jn, D as si, p as oi, q as ci, r as di, s as ui, V as fi, t as Rn, u as hi, v as pi, w as mi, x as gi, y as xi, z as vi, A as _i, B as yi, C as bi, F as At, E as wi, H as Ci, I as ji, T as It, W as Pn, J as Sn, K as Ri, L as Pi, M as Si, P as Ni } from "./PrintModal-D4AX-Rz-.js";
5
- import { G as Di, f as Ai, h as sn, i as Ii } from "./APIAction-BpUGTq-P.js";
3
+ import { n as Ga, R as Ct, h as za, c as zn, v as an, j as nn, i as Yn } from "./common-utils-Dq5TMP7t.js";
4
+ import { G as qn, a as $n, b as Un, c as bn, U as Ya, d as Zn, e as wn, f as Kn, g as Cn, h as Xn, i as Jn, j as Qn, k as ei, l as ti, m as ri, n as li, o as jn, D as ai, p as ni, q as ii, r as si, s as oi, V as ci, t as Rn, u as di, v as ui, w as fi, x as hi, y as pi, z as mi, A as gi, B as xi, C as vi, F as At, E as _i, H as yi, I as bi, T as It, W as Pn, J as Sn, K as wi, L as Ci, M as ji, P as Ri } from "./PrintModal-DFzssQg2.js";
5
+ import { d as Be } from "./dayjs.min-D52_GdfV.js";
6
+ import { G as Pi, f as Si, h as sn, i as Ni } from "./APIAction-l6i46qgX.js";
7
+ import { a as Di, H as Ai, D as Na, M as Da, b as Wl, S as Ii, C as Aa, O as Ia } from "./CommonConstant-Bj7SvPfU.js";
6
8
  import { c as ol } from "./index.esm-Bn1Rklqj.js";
7
9
  /* empty css */
8
10
  import { u as qa } from "./useMediaQuery-CZAbdJzN.js";
9
- import { R as Bi } from "./ReusableModal-BL_DwV8I.js";
11
+ import { R as Bi } from "./ReusableModal-CT4_gW1b.js";
10
12
  const on = {
11
13
  color: "white"
12
14
  }, Ar = (s) => /* @__PURE__ */ e.jsx("div", { children: s.isRequired && /* @__PURE__ */ e.jsx("a", { href: s.goToPage, children: /* @__PURE__ */ e.jsxs(
@@ -287,7 +289,7 @@ const rl = {
287
289
  };
288
290
  window?.partner_service_enabled === "1" && (n.partner_service_enabled = !0);
289
291
  const v = await Ct(d.token, d.envName).post(
290
- Di,
292
+ Pi,
291
293
  {
292
294
  ...n
293
295
  }
@@ -301,7 +303,7 @@ const rl = {
301
303
  }, Hi = async (s) => {
302
304
  try {
303
305
  const u = await Ct(s.token, s.envName).get(
304
- Jn + "/" + s.window_var.org_branch_id_for_seg + "?doctor_role_id=" + s.window_var.doctor_role_id_for_seg + "&doctor_id=" + s.window_var.person_id_for_seg
306
+ Zn + "/" + s.window_var.org_branch_id_for_seg + "?doctor_role_id=" + s.window_var.doctor_role_id_for_seg + "&doctor_id=" + s.window_var.person_id_for_seg
305
307
  ), { data: d } = u || {};
306
308
  return Promise.resolve(d);
307
309
  } catch (u) {
@@ -310,7 +312,7 @@ const rl = {
310
312
  }, Li = async (s) => {
311
313
  try {
312
314
  const u = await Ct(s.token, s.envName).get(
313
- Zn + "/" + s.window_var.org_branch_id_for_seg + "?doctor_role_id=" + s.window_var.doctor_role_id_for_seg + "&doctor_id=" + s.window_var.person_id_for_seg
315
+ qn + "/" + s.window_var.org_branch_id_for_seg + "?doctor_role_id=" + s.window_var.doctor_role_id_for_seg + "&doctor_id=" + s.window_var.person_id_for_seg
314
316
  ), { data: d } = u || {};
315
317
  return Promise.resolve(d);
316
318
  } catch (u) {
@@ -337,7 +339,7 @@ const rl = {
337
339
  }, $a = async (s, u, d) => {
338
340
  try {
339
341
  const n = await Ct(d.token, d.envName).get(
340
- `${ii}?order_item_id=${s}&patient_role_id=${u}&org_branch_id=${d.window_var.org_branch_id_for_seg}`
342
+ `${li}?order_item_id=${s}&patient_role_id=${u}&org_branch_id=${d.window_var.org_branch_id_for_seg}`
341
343
  ), { data: v } = n || {};
342
344
  return Promise.resolve(v);
343
345
  } catch (n) {
@@ -346,7 +348,7 @@ const rl = {
346
348
  }, La = async (s, u, d = !0, n) => {
347
349
  try {
348
350
  const v = await Ct(n.token, n.envName).get(
349
- `${Qn}?bill_date=${s}&org_branch_id=${n.window_var.org_branch_id_for_seg}&patient_role_id=${u}&past_due=${d}`
351
+ `${Kn}?bill_date=${s}&org_branch_id=${n.window_var.org_branch_id_for_seg}&patient_role_id=${u}&past_due=${d}`
350
352
  ), { data: w } = v || {};
351
353
  return Promise.resolve(w);
352
354
  } catch (v) {
@@ -355,7 +357,7 @@ const rl = {
355
357
  }, ki = async (s, u, d) => {
356
358
  try {
357
359
  const n = await Ct(d.token, d.envName).get(
358
- `${ni}/${s}/${u}?doctor_role_id=${d.window_var.doctor_role_id_for_seg}&doctor_id=${d.window_var.person_id_for_seg}&org_branch_id=${d.window_var.org_branch_id_for_seg}`
360
+ `${ri}/${s}/${u}?doctor_role_id=${d.window_var.doctor_role_id_for_seg}&doctor_id=${d.window_var.person_id_for_seg}&org_branch_id=${d.window_var.org_branch_id_for_seg}`
359
361
  ), { data: v } = n || {};
360
362
  return Promise.resolve(v);
361
363
  } catch (n) {
@@ -407,7 +409,7 @@ const rl = {
407
409
  order_unit_item_price: +s.order_unit_item_price,
408
410
  order_item_discount: +s.order_item_discount,
409
411
  order_item_service_tax: Math.floor(s.order_item_service_tax)
410
- }, v = await Ct(d.token, d.envName).put(gi, {
412
+ }, v = await Ct(d.token, d.envName).put(hi, {
411
413
  ...n
412
414
  }), { data: w } = v || {};
413
415
  return Promise.resolve(w);
@@ -429,7 +431,7 @@ const rl = {
429
431
  // give_discount: true,
430
432
  // existing_discount: '6',
431
433
  // },
432
- }, S = await Ct(a.token, a.envName).put(pi, {
434
+ }, S = await Ct(a.token, a.envName).put(ui, {
433
435
  ...A
434
436
  }), { data: h } = S || {};
435
437
  return Promise.resolve(h);
@@ -439,7 +441,7 @@ const rl = {
439
441
  }, Dn = async (s, u, d, n, v, w) => {
440
442
  try {
441
443
  const a = await Ct(w.token, w.envName).delete(
442
- `${si}?deleting_person_role_id=${w.window_var.doctor_role_id_for_seg}&mode=${v}&order_id=${s}&order_item_id=${u}&org_branch_id=${w.window_var.org_branch_id_for_seg}&patient_role_id=${d}&reason=${n}`
444
+ `${ai}?deleting_person_role_id=${w.window_var.doctor_role_id_for_seg}&mode=${v}&order_id=${s}&order_item_id=${u}&org_branch_id=${w.window_var.org_branch_id_for_seg}&patient_role_id=${d}&reason=${n}`
443
445
  ), { data: A } = a || {};
444
446
  return Promise.resolve(A);
445
447
  } catch (a) {
@@ -536,7 +538,7 @@ const rl = {
536
538
  }, qi = async (s = "", u) => {
537
539
  try {
538
540
  const d = await Ct(u.token, u.envName).get(
539
- `${Kn}/${u.window_var.org_branch_id_for_seg}?fields_required=${s}`
541
+ `${$n}/${u.window_var.org_branch_id_for_seg}?fields_required=${s}`
540
542
  ), { data: n } = d || {};
541
543
  return Promise.resolve(n);
542
544
  } catch (d) {
@@ -563,7 +565,7 @@ const rl = {
563
565
  drawing_board: !0
564
566
  },
565
567
  visit_id: d
566
- }, w = await Ct(n.token, n.envName).post(ti, {
568
+ }, w = await Ct(n.token, n.envName).post(Jn, {
567
569
  ...v
568
570
  }), { data: a } = w || {};
569
571
  return Promise.resolve(a);
@@ -573,7 +575,7 @@ const rl = {
573
575
  }, Ui = async (s, u, d, n) => {
574
576
  try {
575
577
  const v = await Ct(n.enc_token, n.envName).get(
576
- `${ci}/${d}/reports?page=${u}&limit=${s}`
578
+ `${ii}/${d}/reports?page=${u}&limit=${s}`
577
579
  ), { data: w } = v || {}, { status: a, message: A } = w || {};
578
580
  if (!a)
579
581
  throw new Error(A);
@@ -584,7 +586,7 @@ const rl = {
584
586
  }, Zi = async (s, u, d, n) => {
585
587
  try {
586
588
  const v = await Ct(n.token, n.envName).get(
587
- `${ei}/${d}?doctor_role_id=${n.window_var.doctor_role_id_for_seg}&doctor_id=${n.window_var.person_id_for_seg}&branch_id=${n.window_var.org_branch_id_for_seg}&page_size=${s}&page_number=${u}`
589
+ `${Xn}/${d}?doctor_role_id=${n.window_var.doctor_role_id_for_seg}&doctor_id=${n.window_var.person_id_for_seg}&branch_id=${n.window_var.org_branch_id_for_seg}&page_size=${s}&page_number=${u}`
588
590
  ), { data: w } = v || {}, { error: a } = w || {};
589
591
  if (a)
590
592
  throw new Error(a);
@@ -596,7 +598,7 @@ const rl = {
596
598
  const { patientRoleID: n, patientID: v } = d || {};
597
599
  try {
598
600
  const w = await Ct(u.token, u.envName).put(
599
- ui + "/" + n,
601
+ oi + "/" + n,
600
602
  {
601
603
  ...s,
602
604
  person_role_id: u.window_var.doctor_role_id_for_seg,
@@ -613,7 +615,7 @@ const rl = {
613
615
  }, Xi = async (s) => {
614
616
  try {
615
617
  const u = await za(s.token, s.envName).post(
616
- ai
618
+ ti
617
619
  ), { data: d } = u || {}, { apiError: n } = d || {};
618
620
  if (n)
619
621
  throw new Error(n);
@@ -624,7 +626,7 @@ const rl = {
624
626
  }, Ji = async (s, u) => {
625
627
  try {
626
628
  const d = await za(s.token, s.envName).post(
627
- `${oi}?pid=${u}`
629
+ `${ni}?pid=${u}`
628
630
  ), { data: n } = d || {};
629
631
  return Promise.resolve(n);
630
632
  } catch (d) {
@@ -650,7 +652,7 @@ const rl = {
650
652
  }, ts = async (s, u) => {
651
653
  try {
652
654
  const d = await za(u.token, u.envName).post(
653
- bi,
655
+ vi,
654
656
  s
655
657
  ), { data: n } = d || {};
656
658
  return Promise.resolve(n);
@@ -667,7 +669,7 @@ const rl = {
667
669
  total_amount: s,
668
670
  data: u,
669
671
  payment_split: d
670
- }, a = await Ct(v.token, v.envName).post(hi, {
672
+ }, a = await Ct(v.token, v.envName).post(di, {
671
673
  ...w
672
674
  }), { data: A } = a || {};
673
675
  return Promise.resolve(A);
@@ -702,7 +704,7 @@ const rl = {
702
704
  }, ns = async (s, u, d, n, v) => {
703
705
  try {
704
706
  const w = await Ct(v.token, v.envName).delete(
705
- `${xi}/${s}/${u}?org_branch_id=${v.window_var.org_branch_id_for_seg}&patient_role_id=${n}&order_id=${d}&deleting_person_role_id=${v.window_var.doctor_role_id_for_seg}&doctor_role_id=${v.window_var.doctor_role_id_for_seg}&doctor_id=${v.window_var.person_id_for_seg}`
707
+ `${pi}/${s}/${u}?org_branch_id=${v.window_var.org_branch_id_for_seg}&patient_role_id=${n}&order_id=${d}&deleting_person_role_id=${v.window_var.doctor_role_id_for_seg}&doctor_role_id=${v.window_var.doctor_role_id_for_seg}&doctor_id=${v.window_var.person_id_for_seg}`
706
708
  ), { data: a } = w || {};
707
709
  return Promise.resolve(a);
708
710
  } catch (w) {
@@ -715,7 +717,7 @@ const rl = {
715
717
  v = "fields=" + A + (S < d.length - 1 ? "&" : "");
716
718
  });
717
719
  const w = await Ct(n.token, n.envName).get(
718
- `${mi}/${s}?branch_id=${n.window_var.org_branch_id_for_seg}&patient_role_id=${u}&${v}`
720
+ `${fi}/${s}?branch_id=${n.window_var.org_branch_id_for_seg}&patient_role_id=${u}&${v}`
719
721
  ), { data: a } = w || {};
720
722
  return Promise.resolve(a);
721
723
  } catch (v) {
@@ -729,7 +731,7 @@ const rl = {
729
731
  };
730
732
  try {
731
733
  const v = await Ct(d.token, d.envName).post(
732
- Xn,
734
+ Un,
733
735
  n
734
736
  ), { data: w } = v || {};
735
737
  return Promise.resolve(w);
@@ -744,7 +746,7 @@ const rl = {
744
746
  };
745
747
  try {
746
748
  const n = await Ct(u.token, u.envName).post(
747
- yi,
749
+ xi,
748
750
  d
749
751
  ), { data: v } = n || {};
750
752
  return Promise.resolve(v);
@@ -761,7 +763,7 @@ const rl = {
761
763
  };
762
764
  try {
763
765
  const a = await Ct(v.token, v.envName).post(
764
- vi,
766
+ mi,
765
767
  w
766
768
  ), { data: A } = a || {};
767
769
  return Promise.resolve(A);
@@ -779,7 +781,7 @@ const rl = {
779
781
  };
780
782
  try {
781
783
  const n = await Ct(u.token, u.envName).post(
782
- _i,
784
+ gi,
783
785
  d
784
786
  ), { data: v } = n || {};
785
787
  return Promise.resolve(v);
@@ -789,7 +791,7 @@ const rl = {
789
791
  }, cs = async (s, u) => {
790
792
  try {
791
793
  const d = await Ct(u.token, u.envName).get(
792
- `${di}/${s}`
794
+ `${si}/${s}`
793
795
  ), { data: n } = d || {};
794
796
  return Promise.resolve(n);
795
797
  } catch (d) {
@@ -799,7 +801,7 @@ const rl = {
799
801
  try {
800
802
  const u = {
801
803
  doctor_id: s.window_var.person_id_for_seg
802
- }, d = await Ct(s.token, s.envName).post(ri, { ...u }), { data: n, status: v } = d || {};
804
+ }, d = await Ct(s.token, s.envName).post(Qn, { ...u }), { data: n, status: v } = d || {};
803
805
  if (v !== 200)
804
806
  throw new Error("error");
805
807
  return Promise.resolve(n);
@@ -812,7 +814,7 @@ const rl = {
812
814
  branch_id: u.window_var.org_branch_id_for_seg,
813
815
  doctor_id: u.window_var.person_id_for_seg,
814
816
  ...s
815
- }, n = await Ct(u.token, u.envName).post(fi, {
817
+ }, n = await Ct(u.token, u.envName).post(ci, {
816
818
  ...d
817
819
  });
818
820
  return Promise.resolve(n);
@@ -827,7 +829,7 @@ const rl = {
827
829
  doctor_role_id: s.window_var.doctor_role_id_for_seg,
828
830
  master_tests_needed: !1
829
831
  }, d = await Ct(s.token, s.envName).post(
830
- li,
832
+ ei,
831
833
  {
832
834
  ...u
833
835
  }
@@ -1348,7 +1350,7 @@ const In = (...s) => {
1348
1350
  }
1349
1351
  };
1350
1352
  const Q = () => {
1351
- v === "appointments" ? typeof window.redirectVPFromAppnt == "function" && window.redirectVPFromAppnt(n?.patientRoleID || "", n?.patientID || "") : v === "consultations" ? typeof window.redirectVPFromConsult == "function" && window.redirectVPFromConsult(n?.patientRoleID || "", n?.patientID || "") : v === "addpatient" || v === "frontDeskDashboard" ? window.location.href = `${window.origin}${zn.visitpad}?pid=${n?.patientRoleID}` : window.location.reload(), d(!1), w();
1353
+ v === "appointments" ? typeof window.redirectVPFromAppnt == "function" && window.redirectVPFromAppnt(n?.patientRoleID || "", n?.patientID || "") : v === "consultations" ? typeof window.redirectVPFromConsult == "function" && window.redirectVPFromConsult(n?.patientRoleID || "", n?.patientID || "") : v === "addpatient" || v === "frontDeskDashboard" ? window.location.href = `${window.origin}${Di.visitpad}?pid=${n?.patientRoleID}` : window.location.reload(), d(!1), w();
1352
1354
  };
1353
1355
  return /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-h-[56px] hfl-shrink-0 hfl-items-center hfl-justify-between hfl-rounded-t-xl hfl-bg-Blue_gray-600 hfl-py-1 hfl-pl-[11px] hfl-pr-1.5", children: [
1354
1356
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-justify-center hfl-gap-[13px]", children: [
@@ -1797,7 +1799,7 @@ const In = (...s) => {
1797
1799
  };
1798
1800
  Ke(() => {
1799
1801
  if (!H) {
1800
- const G = Yn(u.age, _t);
1802
+ const G = zn(u.age, _t);
1801
1803
  G && d((_e) => ({
1802
1804
  ..._e,
1803
1805
  org_person_dob: G
@@ -1935,7 +1937,7 @@ const In = (...s) => {
1935
1937
  style: {
1936
1938
  boxShadow: "0px 24px 48px -12px rgba(16, 24, 40, 0.18)"
1937
1939
  },
1938
- children: qn.map((G) => /* @__PURE__ */ e.jsx(
1940
+ children: Ai.map((G) => /* @__PURE__ */ e.jsx(
1939
1941
  ll,
1940
1942
  {
1941
1943
  className: "hfl-text-Primary-700",
@@ -2344,7 +2346,7 @@ const In = (...s) => {
2344
2346
  suffixClassName: "hfl-w-[100px]",
2345
2347
  suffixDropdownClassName: "hfl-ml-[160px]",
2346
2348
  options: v,
2347
- suffixOptions: $n,
2349
+ suffixOptions: Ii,
2348
2350
  handleValChange: (G) => {
2349
2351
  yt("ref_doc_name", G);
2350
2352
  },
@@ -2764,7 +2766,7 @@ const In = (...s) => {
2764
2766
  }, J = async (oe) => {
2765
2767
  const Te = new FormData();
2766
2768
  Te.append("pid", oe);
2767
- const Se = await Ai(Te, be);
2769
+ const Se = await Si(Te, be);
2768
2770
  Se.apiError && z("Error", Se.apiError, "Error", 3e3);
2769
2771
  }, K = async (oe = it?.name ?? "", Te = it?.org_person_dob ?? "") => {
2770
2772
  if (!it || !q?.patientRoleID) {
@@ -11894,7 +11896,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
11894
11896
  }), At.register({
11895
11897
  family: "Rupee",
11896
11898
  src: `${s}/fonts/IndianRupee.ttf`
11897
- }), /* @__PURE__ */ e.jsx(wi, { style: { display: "none" }, children: /* @__PURE__ */ e.jsx(Ci, { children: /* @__PURE__ */ e.jsxs(ji, { children: [
11899
+ }), /* @__PURE__ */ e.jsx(_i, { style: { display: "none" }, children: /* @__PURE__ */ e.jsx(yi, { children: /* @__PURE__ */ e.jsxs(bi, { children: [
11898
11900
  /* @__PURE__ */ e.jsx(It, { style: { fontFamily: "notoKannada" }, children: "load font" }),
11899
11901
  /* @__PURE__ */ e.jsx(It, { style: { fontFamily: "notoHindi" }, children: "load font" }),
11900
11902
  /* @__PURE__ */ e.jsx(It, { style: { fontFamily: "notoUrdu" }, children: "load font" }),
@@ -13465,7 +13467,7 @@ ${x}`,
13465
13467
  receiver_phone_numbers: q ? [q] : [],
13466
13468
  label: de?.label || "",
13467
13469
  patient_name: L
13468
- }, Me = await Ri(Re, A), ke = H === "SMS/WA" ? "WhatsApp" : H;
13470
+ }, Me = await wi(Re, A), ke = H === "SMS/WA" ? "WhatsApp" : H;
13469
13471
  Me || w("", ke + " failed to sent", "Error", 3e3), w("", ke + " sent successfully", "Success", 3e3);
13470
13472
  }, $ = (de) => de ? `${de}#toolbar=0&navpanes=0` : `data:text/html;charset=utf-8,${encodeURIComponent(`
13471
13473
  <html>
@@ -13851,7 +13853,7 @@ ${x}`,
13851
13853
  rids: L
13852
13854
  };
13853
13855
  try {
13854
- const $ = await Pi(ne, a);
13856
+ const $ = await Ci(ne, a);
13855
13857
  if ($ && $?.pdf) {
13856
13858
  ie($.pdf);
13857
13859
  const H = await (await fetch($.pdf)).blob(), Re = URL.createObjectURL(H);
@@ -13886,7 +13888,7 @@ ${x}`,
13886
13888
  },
13887
13889
  triggerCode: Le === "WA" ? "EHR-LAB-REPORT-WHATSAPP" : "EHR-LAB-REPORT-EMAIL"
13888
13890
  };
13889
- if (await Si(ne, a))
13891
+ if (await ji(ne, a))
13890
13892
  w("", `${Le === "Email" ? "Email" : "WhatsApp"} Sent Successfully`, "Success", 1e3, "topRight");
13891
13893
  else
13892
13894
  throw new Error("Error while uploading the file");
@@ -14258,7 +14260,7 @@ ${x}`,
14258
14260
  ] })
14259
14261
  ] }) : /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-h-full hfl-items-center hfl-justify-center", children: /* @__PURE__ */ e.jsx(D, { variant: "Regular", type: "Text lg", className: "hfl-text-Gray-500", children: "Lab is not active." }) }) }) }) });
14260
14262
  };
14261
- function Po({ variable: s }) {
14263
+ function No({ variable: s }) {
14262
14264
  const { window_var: u, token: d, envName: n, IMGREP_DIRECTORY: v } = s, w = qa("(max-width: 1080px)"), a = Mr(null), [A, S] = Y(!1), [h, O] = Y(!1), [x, L] = Y([]), [k, W] = Y(Rt[2]), [I, N] = Y(), [P, B] = Y(), [b, Q] = Y(), [F, M] = Y(), [V, te] = Y(), [q, ie] = Y(), [z, ge] = Y({
14263
14265
  printDataFrom: "",
14264
14266
  visible: !1,
@@ -14337,7 +14339,7 @@ function Po({ variable: s }) {
14337
14339
  Cr();
14338
14340
  }, [St, le, Cr]);
14339
14341
  const mr = async (ct, bt, dt, Nt = !0) => {
14340
- const { unmodifiedVisitPadJson: Yt, printPrefMasterArr: Wt } = ct, qt = Yt && Un(Yt) ? JSON.parse(Yt) : {}, Ut = Wt?.[bt] || {
14342
+ const { unmodifiedVisitPadJson: Yt, printPrefMasterArr: Wt } = ct, qt = Yt && Yn(Yt) ? JSON.parse(Yt) : {}, Ut = Wt?.[bt] || {
14341
14343
  config: {}
14342
14344
  }, Ht = Ut?.config || {}, _e = {
14343
14345
  ...qt,
@@ -14366,7 +14368,7 @@ function Po({ variable: s }) {
14366
14368
  else
14367
14369
  return $t;
14368
14370
  }, _r = async (ct = { doc_id: "", doc_rid: "" }) => {
14369
- const bt = await Ii(
14371
+ const bt = await Ni(
14370
14372
  ct,
14371
14373
  { token: d, envName: n },
14372
14374
  u.org_branch_id_for_seg || "",
@@ -14606,7 +14608,7 @@ function Po({ variable: s }) {
14606
14608
  }
14607
14609
  ),
14608
14610
  z?.visible && /* @__PURE__ */ e.jsx(
14609
- Ni,
14611
+ Ri,
14610
14612
  {
14611
14613
  modalProps: {
14612
14614
  mfePrefix: "hfl",
@@ -14686,5 +14688,5 @@ function Po({ variable: s }) {
14686
14688
  ) });
14687
14689
  }
14688
14690
  export {
14689
- Po as P
14691
+ No as P
14690
14692
  };