hplx-feature-library 1.0.177 → 1.0.179

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 (32) hide show
  1. package/dist/{APIAction-owCQeK4h.js → APIAction-CyDmLDGJ.js} +1 -1
  2. package/dist/{APIAction-GKwgCFa7.cjs → APIAction-CygaXp73.cjs} +1 -1
  3. package/dist/CommonConstant-BL0tq5l_.js +436 -0
  4. package/dist/CommonConstant-X6DHVEfC.cjs +1 -0
  5. package/dist/NineDots/index.js +1 -1
  6. package/dist/{NineDots-Q7DH5xQq.js → NineDots-sOxfzp6L.js} +15 -14
  7. package/dist/NineDots-wBuj1tLD.cjs +3 -0
  8. package/dist/PatientAddEdit/index.js +1 -1
  9. package/dist/PatientAddEdit-CATkoJRU.cjs +7 -0
  10. package/dist/{PatientAddEdit-MgBWiJqX.js → PatientAddEdit-Cg2AXnbZ.js} +17 -16
  11. package/dist/PatientPopup/index.js +1 -1
  12. package/dist/{PatientPopupContainer-BREW2AZX.cjs → PatientPopupContainer-BPAU-J2G.cjs} +7 -7
  13. package/dist/{PatientPopupContainer-CyTTjYhk.js → PatientPopupContainer-w3gWr1DY.js} +46 -45
  14. package/dist/{PrintModal-CaqANEG3.cjs → PrintModal-AyvmVaFS.cjs} +5 -5
  15. package/dist/{PrintModal-BR_tTgyn.js → PrintModal-CjHcvcfq.js} +2 -1
  16. package/dist/SearchPatients/index.js +1 -1
  17. package/dist/{SearchPatients-BEQ0kjtj.js → SearchPatients-BRtrWjT9.js} +2 -2
  18. package/dist/{SearchPatients-eiOJOnND.cjs → SearchPatients-GDi5ZvNl.cjs} +1 -1
  19. package/dist/UserProfile/index.js +1 -1
  20. package/dist/{UserProfile-Bs3EzSqu.js → UserProfile-C7U9iJ6G.js} +1 -1
  21. package/dist/{UserProfile-C4cNhkeg.cjs → UserProfile-CjBsl-R3.cjs} +1 -1
  22. package/dist/common-utils-Bo5b1GnC.js +1900 -0
  23. package/dist/common-utils-DviOTrwv.cjs +6 -0
  24. package/dist/constants/CommonConstant.d.ts +19 -0
  25. package/dist/index.js +5 -5
  26. package/dist/print-pdf/index.js +1 -1
  27. package/dist/types/NineDotsTypes.d.ts +2 -2
  28. package/package.json +3 -3
  29. package/dist/NineDots-Cy5GdMqh.cjs +0 -3
  30. package/dist/PatientAddEdit-D-PuyA4h.cjs +0 -7
  31. package/dist/common-utils-CDvwCtzy.js +0 -2328
  32. package/dist/common-utils-lI6oOpoS.cjs +0 -6
@@ -1,9 +1,10 @@
1
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-BUI6-03D.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, h as za, q as zn, c as Yn, H as qn, v as an, j as nn, D as Na, M as Da, k as Wl, S as $n, C as Aa, O as Ia, i as Un } from "./common-utils-CDvwCtzy.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, N as Ni } from "./PrintModal-BR_tTgyn.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-Bo5b1GnC.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, N as Ri } from "./PrintModal-CjHcvcfq.js";
5
5
  import { d as Be } from "./dayjs.min-B2cg6pUo.js";
6
- import { G as Di, f as Ai, h as sn, i as Ii } from "./APIAction-owCQeK4h.js";
6
+ import { G as Pi, f as Si, h as sn, i as Ni } from "./APIAction-CyDmLDGJ.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-BL0tq5l_.js";
7
8
  import { c as ol } from "./index.esm-Bn1Rklqj.js";
8
9
  /* empty css */
9
10
  import { u as qa } from "./useMediaQuery-CZAbdJzN.js";
@@ -288,7 +289,7 @@ const rl = {
288
289
  };
289
290
  window?.partner_service_enabled === "1" && (n.partner_service_enabled = !0);
290
291
  const v = await Ct(d.token, d.envName).post(
291
- Di,
292
+ Pi,
292
293
  {
293
294
  ...n
294
295
  }
@@ -302,7 +303,7 @@ const rl = {
302
303
  }, Hi = async (s) => {
303
304
  try {
304
305
  const u = await Ct(s.token, s.envName).get(
305
- 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
306
307
  ), { data: d } = u || {};
307
308
  return Promise.resolve(d);
308
309
  } catch (u) {
@@ -311,7 +312,7 @@ const rl = {
311
312
  }, Li = async (s) => {
312
313
  try {
313
314
  const u = await Ct(s.token, s.envName).get(
314
- 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
315
316
  ), { data: d } = u || {};
316
317
  return Promise.resolve(d);
317
318
  } catch (u) {
@@ -338,7 +339,7 @@ const rl = {
338
339
  }, $a = async (s, u, d) => {
339
340
  try {
340
341
  const n = await Ct(d.token, d.envName).get(
341
- `${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}`
342
343
  ), { data: v } = n || {};
343
344
  return Promise.resolve(v);
344
345
  } catch (n) {
@@ -347,7 +348,7 @@ const rl = {
347
348
  }, La = async (s, u, d = !0, n) => {
348
349
  try {
349
350
  const v = await Ct(n.token, n.envName).get(
350
- `${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}`
351
352
  ), { data: w } = v || {};
352
353
  return Promise.resolve(w);
353
354
  } catch (v) {
@@ -356,7 +357,7 @@ const rl = {
356
357
  }, ki = async (s, u, d) => {
357
358
  try {
358
359
  const n = await Ct(d.token, d.envName).get(
359
- `${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}`
360
361
  ), { data: v } = n || {};
361
362
  return Promise.resolve(v);
362
363
  } catch (n) {
@@ -408,7 +409,7 @@ const rl = {
408
409
  order_unit_item_price: +s.order_unit_item_price,
409
410
  order_item_discount: +s.order_item_discount,
410
411
  order_item_service_tax: Math.floor(s.order_item_service_tax)
411
- }, v = await Ct(d.token, d.envName).put(gi, {
412
+ }, v = await Ct(d.token, d.envName).put(hi, {
412
413
  ...n
413
414
  }), { data: w } = v || {};
414
415
  return Promise.resolve(w);
@@ -430,7 +431,7 @@ const rl = {
430
431
  // give_discount: true,
431
432
  // existing_discount: '6',
432
433
  // },
433
- }, S = await Ct(a.token, a.envName).put(pi, {
434
+ }, S = await Ct(a.token, a.envName).put(ui, {
434
435
  ...A
435
436
  }), { data: h } = S || {};
436
437
  return Promise.resolve(h);
@@ -440,7 +441,7 @@ const rl = {
440
441
  }, Dn = async (s, u, d, n, v, w) => {
441
442
  try {
442
443
  const a = await Ct(w.token, w.envName).delete(
443
- `${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}`
444
445
  ), { data: A } = a || {};
445
446
  return Promise.resolve(A);
446
447
  } catch (a) {
@@ -537,7 +538,7 @@ const rl = {
537
538
  }, qi = async (s = "", u) => {
538
539
  try {
539
540
  const d = await Ct(u.token, u.envName).get(
540
- `${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}`
541
542
  ), { data: n } = d || {};
542
543
  return Promise.resolve(n);
543
544
  } catch (d) {
@@ -564,7 +565,7 @@ const rl = {
564
565
  drawing_board: !0
565
566
  },
566
567
  visit_id: d
567
- }, w = await Ct(n.token, n.envName).post(ti, {
568
+ }, w = await Ct(n.token, n.envName).post(Jn, {
568
569
  ...v
569
570
  }), { data: a } = w || {};
570
571
  return Promise.resolve(a);
@@ -574,7 +575,7 @@ const rl = {
574
575
  }, Ui = async (s, u, d, n) => {
575
576
  try {
576
577
  const v = await Ct(n.enc_token, n.envName).get(
577
- `${ci}/${d}/reports?page=${u}&limit=${s}`
578
+ `${ii}/${d}/reports?page=${u}&limit=${s}`
578
579
  ), { data: w } = v || {}, { status: a, message: A } = w || {};
579
580
  if (!a)
580
581
  throw new Error(A);
@@ -585,7 +586,7 @@ const rl = {
585
586
  }, Zi = async (s, u, d, n) => {
586
587
  try {
587
588
  const v = await Ct(n.token, n.envName).get(
588
- `${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}`
589
590
  ), { data: w } = v || {}, { error: a } = w || {};
590
591
  if (a)
591
592
  throw new Error(a);
@@ -597,7 +598,7 @@ const rl = {
597
598
  const { patientRoleID: n, patientID: v } = d || {};
598
599
  try {
599
600
  const w = await Ct(u.token, u.envName).put(
600
- ui + "/" + n,
601
+ oi + "/" + n,
601
602
  {
602
603
  ...s,
603
604
  person_role_id: u.window_var.doctor_role_id_for_seg,
@@ -614,7 +615,7 @@ const rl = {
614
615
  }, Xi = async (s) => {
615
616
  try {
616
617
  const u = await za(s.token, s.envName).post(
617
- ai
618
+ ti
618
619
  ), { data: d } = u || {}, { apiError: n } = d || {};
619
620
  if (n)
620
621
  throw new Error(n);
@@ -625,7 +626,7 @@ const rl = {
625
626
  }, Ji = async (s, u) => {
626
627
  try {
627
628
  const d = await za(s.token, s.envName).post(
628
- `${oi}?pid=${u}`
629
+ `${ni}?pid=${u}`
629
630
  ), { data: n } = d || {};
630
631
  return Promise.resolve(n);
631
632
  } catch (d) {
@@ -651,7 +652,7 @@ const rl = {
651
652
  }, ts = async (s, u) => {
652
653
  try {
653
654
  const d = await za(u.token, u.envName).post(
654
- bi,
655
+ vi,
655
656
  s
656
657
  ), { data: n } = d || {};
657
658
  return Promise.resolve(n);
@@ -668,7 +669,7 @@ const rl = {
668
669
  total_amount: s,
669
670
  data: u,
670
671
  payment_split: d
671
- }, a = await Ct(v.token, v.envName).post(hi, {
672
+ }, a = await Ct(v.token, v.envName).post(di, {
672
673
  ...w
673
674
  }), { data: A } = a || {};
674
675
  return Promise.resolve(A);
@@ -703,7 +704,7 @@ const rl = {
703
704
  }, ns = async (s, u, d, n, v) => {
704
705
  try {
705
706
  const w = await Ct(v.token, v.envName).delete(
706
- `${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}`
707
708
  ), { data: a } = w || {};
708
709
  return Promise.resolve(a);
709
710
  } catch (w) {
@@ -716,7 +717,7 @@ const rl = {
716
717
  v = "fields=" + A + (S < d.length - 1 ? "&" : "");
717
718
  });
718
719
  const w = await Ct(n.token, n.envName).get(
719
- `${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}`
720
721
  ), { data: a } = w || {};
721
722
  return Promise.resolve(a);
722
723
  } catch (v) {
@@ -730,7 +731,7 @@ const rl = {
730
731
  };
731
732
  try {
732
733
  const v = await Ct(d.token, d.envName).post(
733
- Xn,
734
+ Un,
734
735
  n
735
736
  ), { data: w } = v || {};
736
737
  return Promise.resolve(w);
@@ -745,7 +746,7 @@ const rl = {
745
746
  };
746
747
  try {
747
748
  const n = await Ct(u.token, u.envName).post(
748
- yi,
749
+ xi,
749
750
  d
750
751
  ), { data: v } = n || {};
751
752
  return Promise.resolve(v);
@@ -762,7 +763,7 @@ const rl = {
762
763
  };
763
764
  try {
764
765
  const a = await Ct(v.token, v.envName).post(
765
- vi,
766
+ mi,
766
767
  w
767
768
  ), { data: A } = a || {};
768
769
  return Promise.resolve(A);
@@ -780,7 +781,7 @@ const rl = {
780
781
  };
781
782
  try {
782
783
  const n = await Ct(u.token, u.envName).post(
783
- _i,
784
+ gi,
784
785
  d
785
786
  ), { data: v } = n || {};
786
787
  return Promise.resolve(v);
@@ -790,7 +791,7 @@ const rl = {
790
791
  }, cs = async (s, u) => {
791
792
  try {
792
793
  const d = await Ct(u.token, u.envName).get(
793
- `${di}/${s}`
794
+ `${si}/${s}`
794
795
  ), { data: n } = d || {};
795
796
  return Promise.resolve(n);
796
797
  } catch (d) {
@@ -800,7 +801,7 @@ const rl = {
800
801
  try {
801
802
  const u = {
802
803
  doctor_id: s.window_var.person_id_for_seg
803
- }, 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 || {};
804
805
  if (v !== 200)
805
806
  throw new Error("error");
806
807
  return Promise.resolve(n);
@@ -813,7 +814,7 @@ const rl = {
813
814
  branch_id: u.window_var.org_branch_id_for_seg,
814
815
  doctor_id: u.window_var.person_id_for_seg,
815
816
  ...s
816
- }, n = await Ct(u.token, u.envName).post(fi, {
817
+ }, n = await Ct(u.token, u.envName).post(ci, {
817
818
  ...d
818
819
  });
819
820
  return Promise.resolve(n);
@@ -828,7 +829,7 @@ const rl = {
828
829
  doctor_role_id: s.window_var.doctor_role_id_for_seg,
829
830
  master_tests_needed: !1
830
831
  }, d = await Ct(s.token, s.envName).post(
831
- li,
832
+ ei,
832
833
  {
833
834
  ...u
834
835
  }
@@ -1349,7 +1350,7 @@ const In = (...s) => {
1349
1350
  }
1350
1351
  };
1351
1352
  const Q = () => {
1352
- 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();
1353
1354
  };
1354
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: [
1355
1356
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-justify-center hfl-gap-[13px]", children: [
@@ -1798,7 +1799,7 @@ const In = (...s) => {
1798
1799
  };
1799
1800
  Ke(() => {
1800
1801
  if (!H) {
1801
- const G = Yn(u.age, _t);
1802
+ const G = zn(u.age, _t);
1802
1803
  G && d((_e) => ({
1803
1804
  ..._e,
1804
1805
  org_person_dob: G
@@ -1936,7 +1937,7 @@ const In = (...s) => {
1936
1937
  style: {
1937
1938
  boxShadow: "0px 24px 48px -12px rgba(16, 24, 40, 0.18)"
1938
1939
  },
1939
- children: qn.map((G) => /* @__PURE__ */ e.jsx(
1940
+ children: Ai.map((G) => /* @__PURE__ */ e.jsx(
1940
1941
  ll,
1941
1942
  {
1942
1943
  className: "hfl-text-Primary-700",
@@ -2345,7 +2346,7 @@ const In = (...s) => {
2345
2346
  suffixClassName: "hfl-w-[100px]",
2346
2347
  suffixDropdownClassName: "hfl-ml-[160px]",
2347
2348
  options: v,
2348
- suffixOptions: $n,
2349
+ suffixOptions: Ii,
2349
2350
  handleValChange: (G) => {
2350
2351
  yt("ref_doc_name", G);
2351
2352
  },
@@ -2765,7 +2766,7 @@ const In = (...s) => {
2765
2766
  }, J = async (oe) => {
2766
2767
  const Te = new FormData();
2767
2768
  Te.append("pid", oe);
2768
- const Se = await Ai(Te, be);
2769
+ const Se = await Si(Te, be);
2769
2770
  Se.apiError && z("Error", Se.apiError, "Error", 3e3);
2770
2771
  }, K = async (oe = it?.name ?? "", Te = it?.org_person_dob ?? "") => {
2771
2772
  if (!it || !q?.patientRoleID) {
@@ -11895,7 +11896,7 @@ const Qa = /* @__PURE__ */ xn(Os), en = (s) => {
11895
11896
  }), At.register({
11896
11897
  family: "Rupee",
11897
11898
  src: `${s}/fonts/IndianRupee.ttf`
11898
- }), /* @__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: [
11899
11900
  /* @__PURE__ */ e.jsx(It, { style: { fontFamily: "notoKannada" }, children: "load font" }),
11900
11901
  /* @__PURE__ */ e.jsx(It, { style: { fontFamily: "notoHindi" }, children: "load font" }),
11901
11902
  /* @__PURE__ */ e.jsx(It, { style: { fontFamily: "notoUrdu" }, children: "load font" }),
@@ -13466,7 +13467,7 @@ ${x}`,
13466
13467
  receiver_phone_numbers: q ? [q] : [],
13467
13468
  label: de?.label || "",
13468
13469
  patient_name: L
13469
- }, Me = await Ri(Re, A), ke = H === "SMS/WA" ? "WhatsApp" : H;
13470
+ }, Me = await wi(Re, A), ke = H === "SMS/WA" ? "WhatsApp" : H;
13470
13471
  Me || w("", ke + " failed to sent", "Error", 3e3), w("", ke + " sent successfully", "Success", 3e3);
13471
13472
  }, $ = (de) => de ? `${de}#toolbar=0&navpanes=0` : `data:text/html;charset=utf-8,${encodeURIComponent(`
13472
13473
  <html>
@@ -13852,7 +13853,7 @@ ${x}`,
13852
13853
  rids: L
13853
13854
  };
13854
13855
  try {
13855
- const $ = await Pi(ne, a);
13856
+ const $ = await Ci(ne, a);
13856
13857
  if ($ && $?.pdf) {
13857
13858
  ie($.pdf);
13858
13859
  const H = await (await fetch($.pdf)).blob(), Re = URL.createObjectURL(H);
@@ -13887,7 +13888,7 @@ ${x}`,
13887
13888
  },
13888
13889
  triggerCode: Le === "WA" ? "EHR-LAB-REPORT-WHATSAPP" : "EHR-LAB-REPORT-EMAIL"
13889
13890
  };
13890
- if (await Si(ne, a))
13891
+ if (await ji(ne, a))
13891
13892
  w("", `${Le === "Email" ? "Email" : "WhatsApp"} Sent Successfully`, "Success", 1e3, "topRight");
13892
13893
  else
13893
13894
  throw new Error("Error while uploading the file");
@@ -14259,7 +14260,7 @@ ${x}`,
14259
14260
  ] })
14260
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." }) }) }) }) });
14261
14262
  };
14262
- function So({ variable: s }) {
14263
+ function No({ variable: s }) {
14263
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({
14264
14265
  printDataFrom: "",
14265
14266
  visible: !1,
@@ -14338,7 +14339,7 @@ function So({ variable: s }) {
14338
14339
  Cr();
14339
14340
  }, [St, le, Cr]);
14340
14341
  const mr = async (ct, bt, dt, Nt = !0) => {
14341
- 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] || {
14342
14343
  config: {}
14343
14344
  }, Ht = Ut?.config || {}, _e = {
14344
14345
  ...qt,
@@ -14367,7 +14368,7 @@ function So({ variable: s }) {
14367
14368
  else
14368
14369
  return $t;
14369
14370
  }, _r = async (ct = { doc_id: "", doc_rid: "" }) => {
14370
- const bt = await Ii(
14371
+ const bt = await Ni(
14371
14372
  ct,
14372
14373
  { token: d, envName: n },
14373
14374
  u.org_branch_id_for_seg || "",
@@ -14607,7 +14608,7 @@ function So({ variable: s }) {
14607
14608
  }
14608
14609
  ),
14609
14610
  z?.visible && /* @__PURE__ */ e.jsx(
14610
- Ni,
14611
+ Ri,
14611
14612
  {
14612
14613
  modalProps: {
14613
14614
  mfePrefix: "hfl",
@@ -14687,5 +14688,5 @@ function So({ variable: s }) {
14687
14688
  ) });
14688
14689
  }
14689
14690
  export {
14690
- So as P
14691
+ No as P
14691
14692
  };