hplx-feature-library 1.0.319 → 1.0.321

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 (39) hide show
  1. package/dist/{APIAction-4R25WW2g.cjs → APIAction-0rLQ4PHF.cjs} +1 -1
  2. package/dist/{APIAction-CMfpd8Bv.js → APIAction-Dcn3XM-m.js} +2 -2
  3. package/dist/AllInvestigations/index.js +1 -1
  4. package/dist/{AllInvestigationsTable-CYzKgg74.js → AllInvestigationsTable-CmJTQP2C.js} +2 -2
  5. package/dist/{AllInvestigationsTable-CrJ4AJdo.cjs → AllInvestigationsTable-DeWdOst4.cjs} +1 -1
  6. package/dist/Attachments/index.js +1 -1
  7. package/dist/{Attachments-DscMe8ZD.cjs → Attachments-BnounSRo.cjs} +1 -1
  8. package/dist/{Attachments-BleCeiqj.js → Attachments-DdCoyN_x.js} +1 -1
  9. package/dist/NineDots/index.js +1 -1
  10. package/dist/{NineDots-CDoWX9g8.cjs → NineDots-DM7M9i8N.cjs} +1 -1
  11. package/dist/{NineDots-BvxC-xGI.js → NineDots-D_W6IUL_.js} +1 -1
  12. package/dist/PatientAddEdit/index.js +1 -1
  13. package/dist/{PatientAddEdit-WITRBHBI.cjs → PatientAddEdit-Blls1e9Q.cjs} +1 -1
  14. package/dist/{PatientAddEdit-B7fjeZlX.js → PatientAddEdit-D6WiHRt_.js} +5 -5
  15. package/dist/PatientPopup/index.js +1 -1
  16. package/dist/{PatientPopupContainer-CgIlH2UE.js → PatientPopupContainer-BQoLia5u.js} +390 -387
  17. package/dist/{PatientPopupContainer-B3P7ZFEZ.cjs → PatientPopupContainer-CDAsGDa9.cjs} +7 -7
  18. package/dist/PediatricsCalculator/index.js +1 -1
  19. package/dist/{PediatricsCalculatorTable-CXALqwAy.js → PediatricsCalculatorTable-TJeJlcEq.js} +2 -2
  20. package/dist/{PediatricsCalculatorTable-CV23H_7C.cjs → PediatricsCalculatorTable-kvH7TaMd.cjs} +1 -1
  21. package/dist/{PrintModal-BzV2tyFI.cjs → PrintModal-CACStf0f.cjs} +77 -77
  22. package/dist/{PrintModal-DM_bTqGC.js → PrintModal-CR0BPbwZ.js} +9129 -8463
  23. package/dist/SearchPatients/index.js +1 -1
  24. package/dist/{SearchPatients-D1PQUJ9C.js → SearchPatients-CyqB_I0i.js} +3 -3
  25. package/dist/{SearchPatients-COBd6WAT.cjs → SearchPatients-GJqYi8ym.cjs} +1 -1
  26. package/dist/UserProfile/index.js +1 -1
  27. package/dist/{UserProfile-p4l2HAx0.cjs → UserProfile-BIAgsyag.cjs} +1 -1
  28. package/dist/{UserProfile-BlN0ytk5.js → UserProfile-B_0H-h2m.js} +4 -4
  29. package/dist/{common-utils-DvxWGiX-.cjs → common-utils-As5_LEt3.cjs} +1 -1
  30. package/dist/{common-utils-CNR4r7ZZ.js → common-utils-BgxxqI8O.js} +1 -1
  31. package/dist/{dayjs.min-BawXyS7V.cjs → dayjs.min--kEce7p-.cjs} +1 -1
  32. package/dist/{dayjs.min-DHTzfD6l.js → dayjs.min-DZc7-mrk.js} +1 -1
  33. package/dist/{index-CZONCDCp.cjs → index-BUAd-2dO.cjs} +1 -1
  34. package/dist/{index-F4mvLxgX.js → index-Byd3zfUb.js} +1 -1
  35. package/dist/{index-D5vZvm7Z.cjs → index-m-TIhR9M.cjs} +18 -18
  36. package/dist/{index-CFBUzpnA.js → index-m95hZ8gA.js} +6 -6
  37. package/dist/index.js +9 -9
  38. package/dist/print-pdf/index.js +1 -1
  39. package/package.json +2 -2
@@ -1,10 +1,10 @@
1
- import { j as e, b as N, g as vn, e as kn, K as He, h as Vn, P as Et, Z as Or, k as ll, a as Va, t as hr, A as ur, c as _n, N as yn, O as $l, E as bn, q as On } from "./index-CFBUzpnA.js";
1
+ import { j as e, b as N, g as vn, e as kn, K as He, h as Vn, P as Et, Z as Or, k as ll, a as Va, t as hr, A as ur, c as _n, N as yn, O as $l, E as bn, q as On } from "./index-m95hZ8gA.js";
2
2
  import ol, { createContext as Wn, useContext as Vt, useState as K, forwardRef as zn, useRef as Mr, useEffect as Ye, useCallback as qt, useMemo as Kt, useReducer as Oa } from "react";
3
3
  import { a as Ba } from "./CommonTypes-BzMrYraH.js";
4
- import { G as Yn, a as qn, b as $n, c as wn, U as Wa, d as Un, e as Cn, f as Zn, g as Kn, h as Xn, i as Jn, j as Qn, k as ei, l as Rn, m as ti, n as ri, o as jn, D as li, p as ai, q as ni, V as ii, r as Pn, s as si, t as oi, u as ci, v as di, w as ui, L as fi, x as hi, y as pi, z as mi, A as gi, F as At, B as xi, C as vi, E as _i, T as Tt, W as yi, H as Sn, I as bi, P as Nn } from "./PrintModal-DM_bTqGC.js";
5
- import { R as _t, h as za, f as wi, v as an, n as nn, q as Ci, i as Ri } from "./common-utils-CNR4r7ZZ.js";
6
- import { d as Ie } from "./dayjs.min-DHTzfD6l.js";
7
- import { G as ji, U as Pi, A as Si, f as Ni, i as Di, j as sn, k as Ai } from "./APIAction-CMfpd8Bv.js";
4
+ import { G as Yn, a as qn, b as $n, c as wn, U as Wa, d as Un, e as Cn, f as Zn, g as Kn, h as Xn, i as Jn, j as Qn, k as ei, l as Rn, m as ti, n as ri, o as jn, D as li, p as ai, q as ni, V as ii, r as Pn, s as si, t as oi, u as ci, v as di, w as ui, L as fi, x as hi, y as pi, z as mi, A as gi, F as At, B as xi, C as vi, E as _i, T as Tt, W as yi, H as Sn, I as bi, P as Nn } from "./PrintModal-CR0BPbwZ.js";
5
+ import { R as _t, h as za, f as wi, v as an, n as nn, q as Ci, i as Ri } from "./common-utils-BgxxqI8O.js";
6
+ import { d as Ie } from "./dayjs.min-DZc7-mrk.js";
7
+ import { G as ji, U as Pi, A as Si, f as Ni, i as Di, j as sn, k as Ai } from "./APIAction-Dcn3XM-m.js";
8
8
  import { a as on, H as Ti, D as Sa, M as Na, b as Ol, S as Ii, C as Da, O as Aa } from "./CommonConstant-BMwbE0IZ.js";
9
9
  import { c as Ga } from "./index.esm-Bn1Rklqj.js";
10
10
  /* empty css */
@@ -295,10 +295,10 @@ const rl = {
295
295
  {
296
296
  ...i
297
297
  }
298
- ), { data: C } = v || {}, { error: a } = C || {};
298
+ ), { data: w } = v || {}, { error: a } = w || {};
299
299
  if (a)
300
300
  throw new Error(a);
301
- n(C);
301
+ n(w);
302
302
  } catch (i) {
303
303
  console.log(i), n(void 0);
304
304
  }
@@ -322,19 +322,19 @@ const rl = {
322
322
  }
323
323
  }, Ul = async (n = "all", u, d = 1, i = 20, v) => {
324
324
  try {
325
- const C = await _t(v.token, v.envName).get(
325
+ const w = await _t(v.token, v.envName).get(
326
326
  `${Rn}?date=${n}&patient_role_id=${u}&page_no=${d}&page_size=${i}&org_branch_id=${v.window_var.org_branch_id_for_seg}`
327
- ), { data: a } = C || {};
327
+ ), { data: a } = w || {};
328
328
  return Promise.resolve(a);
329
- } catch (C) {
330
- return console.log(C), Promise.reject(C);
329
+ } catch (w) {
330
+ return console.log(w), Promise.reject(w);
331
331
  }
332
332
  }, Ma = async (n, u = 1, d = 10, i) => {
333
333
  try {
334
334
  const v = await _t(i.token, i.envName).get(
335
335
  `${wn}?patient_role_id=${n}&branch_id=${i.window_var.org_branch_id_for_seg}&page_number=${u}&page_size=${d}`
336
- ), { data: C } = v || {};
337
- return Promise.resolve(C);
336
+ ), { data: w } = v || {};
337
+ return Promise.resolve(w);
338
338
  } catch (v) {
339
339
  return console.log(v), Promise.reject(v);
340
340
  }
@@ -351,8 +351,8 @@ const rl = {
351
351
  try {
352
352
  const v = await _t(i.token, i.envName).get(
353
353
  `${Zn}?bill_date=${n}&org_branch_id=${i.window_var.org_branch_id_for_seg}&patient_role_id=${u}&past_due=${d}`
354
- ), { data: C } = v || {};
355
- return Promise.resolve(C);
354
+ ), { data: w } = v || {};
355
+ return Promise.resolve(w);
356
356
  } catch (v) {
357
357
  return console.log(v), Promise.reject(v);
358
358
  }
@@ -391,9 +391,9 @@ const rl = {
391
391
  lab_owner_name: n?.bill_item_details?.lab_owner_name || "",
392
392
  lab_owner_id: +n?.bill_item_details?.lab_owner_id || 0
393
393
  }
394
- }, C = await _t(i.token, i.envName).post(Rn, {
394
+ }, w = await _t(i.token, i.envName).post(Rn, {
395
395
  ...v
396
- }), { data: a } = C || {};
396
+ }), { data: a } = w || {};
397
397
  return Promise.resolve(a);
398
398
  } catch (v) {
399
399
  return console.log(v), Promise.reject(v);
@@ -416,12 +416,12 @@ const rl = {
416
416
  is_discount_perc: n.is_discount_perc
417
417
  }, v = await _t(d.token, d.envName).put(di, {
418
418
  ...i
419
- }), { data: C } = v || {};
420
- return Promise.resolve(C);
419
+ }), { data: w } = v || {};
420
+ return Promise.resolve(w);
421
421
  } catch (i) {
422
422
  return console.log(i), Promise.reject(i);
423
423
  }
424
- }, Ia = async (n, u, d, i, v, C = {}, a, A, S, h) => {
424
+ }, Ia = async (n, u, d, i, v, w = {}, a, A, S, h) => {
425
425
  try {
426
426
  const k = {
427
427
  action: n,
@@ -431,7 +431,7 @@ const rl = {
431
431
  patient_role_id: +v,
432
432
  payment_split: i,
433
433
  org_branch_id: +a.window_var.org_branch_id_for_seg,
434
- refund_details: C,
434
+ refund_details: w,
435
435
  amount_perc: S,
436
436
  // TO-DO
437
437
  is_discount_perc: h,
@@ -444,19 +444,19 @@ const rl = {
444
444
  } catch (k) {
445
445
  return console.log(k), Promise.reject(k);
446
446
  }
447
- }, An = async (n, u, d, i, v, C) => {
447
+ }, An = async (n, u, d, i, v, w) => {
448
448
  try {
449
- const a = await _t(C.token, C.envName).delete(
450
- `${li}?deleting_person_role_id=${C.window_var.doctor_role_id_for_seg}&mode=${v}&order_id=${n}&order_item_id=${u}&org_branch_id=${C.window_var.org_branch_id_for_seg}&patient_role_id=${d}&reason=${i}`
449
+ const a = await _t(w.token, w.envName).delete(
450
+ `${li}?deleting_person_role_id=${w.window_var.doctor_role_id_for_seg}&mode=${v}&order_id=${n}&order_item_id=${u}&org_branch_id=${w.window_var.org_branch_id_for_seg}&patient_role_id=${d}&reason=${i}`
451
451
  ), { data: A } = a || {};
452
452
  return Promise.resolve(A);
453
453
  } catch (a) {
454
454
  return console.log(a), Promise.reject(a);
455
455
  }
456
- }, Zl = async (n = "all", u, d = 1, i = 10, v = !1, C) => {
456
+ }, Zl = async (n = "all", u, d = 1, i = 10, v = !1, w) => {
457
457
  try {
458
- const a = await _t(C.token, C.envName).get(
459
- `${Cn}?appnt_date=${n}&patient_role_id=${u}&doctor_id=${C.window_var.person_id_for_seg}&org_branch_id=${C.window_var.org_branch_id_for_seg}&page_no=${d}&page_size=${i}&skip_appnt_with_bill=${v}`
458
+ const a = await _t(w.token, w.envName).get(
459
+ `${Cn}?appnt_date=${n}&patient_role_id=${u}&doctor_id=${w.window_var.person_id_for_seg}&org_branch_id=${w.window_var.org_branch_id_for_seg}&page_no=${d}&page_size=${i}&skip_appnt_with_bill=${v}`
460
460
  ), { data: A } = a || {};
461
461
  return Promise.resolve(A);
462
462
  } catch (a) {
@@ -467,12 +467,12 @@ const rl = {
467
467
  const v = await _t(i.token, i.envName).get(
468
468
  `${Cn}/services/${n}?appnt_date=${u}&doctor_id=${i.window_var.person_id_for_seg}&org_branch_id=${i.window_var.org_branch_id_for_seg}&patient_role_id=${d}`
469
469
  //&page_no=${page}&page_size=${limit}
470
- ), { data: C } = v || {};
471
- return Promise.resolve(C);
470
+ ), { data: w } = v || {};
471
+ return Promise.resolve(w);
472
472
  } catch (v) {
473
473
  return console.log(v), Promise.reject(v);
474
474
  }
475
- }, zi = async (n, u, d, i, v, C, a) => {
475
+ }, zi = async (n, u, d, i, v, w, a) => {
476
476
  try {
477
477
  const A = {
478
478
  doctor_id: +a.window_var.person_id_for_seg,
@@ -499,7 +499,7 @@ const rl = {
499
499
  order_item_price: +n.order_item_price,
500
500
  order_item_service_tax: Math.floor(n.order_item_service_tax),
501
501
  order_unit_item_price: +n.order_unit_item_price,
502
- is_partner_appointment: C
502
+ is_partner_appointment: w
503
503
  }, S = await _t(a.token, a.envName).post(
504
504
  Pn,
505
505
  {
@@ -512,7 +512,7 @@ const rl = {
512
512
  }
513
513
  }, Yi = async (n, u, d, i, v) => {
514
514
  try {
515
- const C = {
515
+ const w = {
516
516
  doctor_id: v.window_var.person_id_for_seg,
517
517
  patient_role_id: i,
518
518
  org_branch_id: +v.window_var.org_branch_id_for_seg,
@@ -539,11 +539,11 @@ const rl = {
539
539
  order_item_service_tax: Math.floor(n.order_item_service_tax),
540
540
  order_unit_item_price: +n.order_unit_item_price
541
541
  }, a = await _t(v.token, v.envName).put(Pn, {
542
- ...C
542
+ ...w
543
543
  }), { data: A } = a || {};
544
544
  return Promise.resolve(A);
545
- } catch (C) {
546
- return console.log(C), Promise.reject(C);
545
+ } catch (w) {
546
+ return console.log(w), Promise.reject(w);
547
547
  }
548
548
  }, qi = async (n = "", u) => {
549
549
  try {
@@ -575,9 +575,9 @@ const rl = {
575
575
  drawing_board: !0
576
576
  },
577
577
  visit_id: d
578
- }, C = await _t(i.token, i.envName).post(Xn, {
578
+ }, w = await _t(i.token, i.envName).post(Xn, {
579
579
  ...v
580
- }), { data: a } = C || {};
580
+ }), { data: a } = w || {};
581
581
  return Promise.resolve(a);
582
582
  } catch (v) {
583
583
  return console.log(v), Promise.reject(v);
@@ -589,9 +589,9 @@ const rl = {
589
589
  size: n.toString(),
590
590
  lab_type: "ALL",
591
591
  page: u.toString()
592
- }), C = await _t(i.enc_token, i.envName).get(
592
+ }), w = await _t(i.enc_token, i.envName).get(
593
593
  `${fi}?${v.toString()}`
594
- ), { data: a } = C || {};
594
+ ), { data: a } = w || {};
595
595
  if (!a || !a.status)
596
596
  throw new Error(a?.message || "Failed to fetch lab orders.");
597
597
  return Promise.resolve({
@@ -605,7 +605,7 @@ const rl = {
605
605
  try {
606
606
  if (!n || n.length === 0)
607
607
  throw new Error("No result IDs provided to fetch lab details.");
608
- const d = _t(u.enc_token, u.envName), i = n.map((A) => `result_ids=${encodeURIComponent(A)}`).join("&"), v = `${hi}?${i}`, C = await d.get(v), { data: a } = C || {};
608
+ const d = _t(u.enc_token, u.envName), i = n.map((A) => `result_ids=${encodeURIComponent(A)}`).join("&"), v = `${hi}?${i}`, w = await d.get(v), { data: a } = w || {};
609
609
  return Promise.resolve(a.data);
610
610
  } catch (d) {
611
611
  return console.error("Error fetching lab report details:", d), Promise.reject(d);
@@ -614,17 +614,17 @@ const rl = {
614
614
  try {
615
615
  const v = await _t(i.token, i.envName).get(
616
616
  `${Kn}/${d}?doctor_role_id=${i.window_var.doctor_role_id_for_seg}&doctor_id=${i.window_var.person_id_for_seg}&branch_id=${i.window_var.org_branch_id_for_seg}&page_size=${n}&page_number=${u}`
617
- ), { data: C } = v || {}, { error: a } = C || {};
617
+ ), { data: w } = v || {}, { error: a } = w || {};
618
618
  if (a)
619
619
  throw new Error(a);
620
- return Promise.resolve(C);
620
+ return Promise.resolve(w);
621
621
  } catch (v) {
622
622
  return console.log(v), Promise.reject(v);
623
623
  }
624
624
  }, Xi = async (n, u, d) => {
625
625
  const { patientRoleID: i, patientID: v } = d || {};
626
626
  try {
627
- const C = await _t(u.token, u.envName).put(
627
+ const w = await _t(u.token, u.envName).put(
628
628
  Pi + "/" + i,
629
629
  {
630
630
  ...n,
@@ -634,10 +634,10 @@ const rl = {
634
634
  patient_role_id: i,
635
635
  patient_id: v
636
636
  }
637
- ), { data: a } = C || {};
637
+ ), { data: a } = w || {};
638
638
  return a?.status && typeof u.window_var.getUpdatedPatientDetails == "function" && v === u.window_var.patient_person_id && i === u.window_var.patient_role_id && u.window_var.getUpdatedPatientDetails(), Promise.resolve(a);
639
- } catch (C) {
640
- return console.log(C), Promise.reject(C);
639
+ } catch (w) {
640
+ return console.log(w), Promise.reject(w);
641
641
  }
642
642
  }, Ji = async (n) => {
643
643
  try {
@@ -688,7 +688,7 @@ const rl = {
688
688
  }
689
689
  }, ls = async (n, u, d, i, v) => {
690
690
  try {
691
- const C = {
691
+ const w = {
692
692
  billing_person_id: v.window_var.person_id_for_seg,
693
693
  billing_person_role_id: v.window_var.doctor_role_id_for_seg,
694
694
  patient_role_id: i,
@@ -697,11 +697,11 @@ const rl = {
697
697
  data: u,
698
698
  payment_split: d
699
699
  }, a = await _t(v.token, v.envName).post(si, {
700
- ...C
700
+ ...w
701
701
  }), { data: A } = a || {};
702
702
  return Promise.resolve(A);
703
- } catch (C) {
704
- return console.log(C), Promise.reject(C);
703
+ } catch (w) {
704
+ return console.log(w), Promise.reject(w);
705
705
  }
706
706
  }, as = async (n = "", u) => {
707
707
  try {
@@ -723,19 +723,19 @@ const rl = {
723
723
  is_lab_referral: !0
724
724
  }, v = await _t(d.token, d.envName).post(jn, {
725
725
  ...i
726
- }), { data: C } = v || {};
727
- return Promise.resolve(C);
726
+ }), { data: w } = v || {};
727
+ return Promise.resolve(w);
728
728
  } catch (i) {
729
729
  return console.log(i), Promise.reject(i);
730
730
  }
731
731
  }, is = async (n, u, d, i, v) => {
732
732
  try {
733
- const C = await _t(v.token, v.envName).delete(
733
+ const w = await _t(v.token, v.envName).delete(
734
734
  `${ui}/${n}/${u}?org_branch_id=${v.window_var.org_branch_id_for_seg}&patient_role_id=${i}&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}`
735
- ), { data: a } = C || {};
735
+ ), { data: a } = w || {};
736
736
  return Promise.resolve(a);
737
- } catch (C) {
738
- return console.log(C), Promise.reject(C);
737
+ } catch (w) {
738
+ return console.log(w), Promise.reject(w);
739
739
  }
740
740
  }, $a = async (n, u, d, i) => {
741
741
  try {
@@ -743,9 +743,9 @@ const rl = {
743
743
  d.forEach((A, S) => {
744
744
  v = "fields=" + A + (S < d.length - 1 ? "&" : "");
745
745
  });
746
- const C = await _t(i.token, i.envName).get(
746
+ const w = await _t(i.token, i.envName).get(
747
747
  `${ci}/${n}?branch_id=${i.window_var.org_branch_id_for_seg}&patient_role_id=${u}&${v}`
748
- ), { data: a } = C || {};
748
+ ), { data: a } = w || {};
749
749
  return Promise.resolve(a);
750
750
  } catch (v) {
751
751
  return console.log(v), Promise.reject(v);
@@ -760,8 +760,8 @@ const rl = {
760
760
  const v = await _t(d.token, d.envName).post(
761
761
  $n,
762
762
  i
763
- ), { data: C } = v || {};
764
- return Promise.resolve(C);
763
+ ), { data: w } = v || {};
764
+ return Promise.resolve(w);
765
765
  } catch (v) {
766
766
  return console.log(v), Promise.reject(v);
767
767
  }
@@ -781,7 +781,7 @@ const rl = {
781
781
  return console.log(i), Promise.reject(i);
782
782
  }
783
783
  }, os = async (n, u, d, i, v) => {
784
- const C = {
784
+ const w = {
785
785
  abha_address: n,
786
786
  otp: u,
787
787
  patient_role_id: d,
@@ -791,7 +791,7 @@ const rl = {
791
791
  try {
792
792
  const a = await _t(v.token, v.envName).post(
793
793
  pi,
794
- C
794
+ w
795
795
  ), { data: A } = a || {};
796
796
  return Promise.resolve(A);
797
797
  } catch (a) {
@@ -898,8 +898,8 @@ const rl = {
898
898
  try {
899
899
  const v = await _t(i.enc_token, i.envName).get(
900
900
  `${Wa}/transaction?emr_entity_id=${n}&branch_id=${i.window_var.org_branch_id_for_seg}&page_no=${u}&page_size=${d}&entity_type=PATIENT_BRANCH`
901
- ), { data: C } = v || {};
902
- return Promise.resolve(C);
901
+ ), { data: w } = v || {};
902
+ return Promise.resolve(w);
903
903
  } catch (v) {
904
904
  return console.log(v), Promise.reject(v);
905
905
  }
@@ -908,10 +908,10 @@ const rl = {
908
908
  const v = {
909
909
  mode: Number(u),
910
910
  transaction_type: d
911
- }, C = await _t(i.token, i.envName).patch(
911
+ }, w = await _t(i.token, i.envName).patch(
912
912
  `${wn}/${n}`,
913
913
  v
914
- ), { data: a } = C || {};
914
+ ), { data: a } = w || {};
915
915
  return Promise.resolve(a);
916
916
  } catch (v) {
917
917
  return console.log(v), Promise.reject(v);
@@ -923,7 +923,7 @@ function gs() {
923
923
  (function(d, i) {
924
924
  n.exports = i();
925
925
  })(ms, function() {
926
- var d = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, i = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, v = /\d/, C = /\d\d/, a = /\d\d?/, A = /\d*[^-_:/,()\s\d]+/, S = {}, h = function(D) {
926
+ var d = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, i = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, v = /\d/, w = /\d\d/, a = /\d\d?/, A = /\d*[^-_:/,()\s\d]+/, S = {}, h = function(D) {
927
927
  return (D = +D) + (D > 68 ? 1900 : 2e3);
928
928
  }, k = function(D) {
929
929
  return function(P) {
@@ -955,14 +955,14 @@ function gs() {
955
955
  this.month = 3 * (D - 1) + 1;
956
956
  }], S: [v, function(D) {
957
957
  this.milliseconds = 100 * +D;
958
- }], SS: [C, function(D) {
958
+ }], SS: [w, function(D) {
959
959
  this.milliseconds = 10 * +D;
960
960
  }], SSS: [/\d{3}/, function(D) {
961
961
  this.milliseconds = +D;
962
- }], s: [a, k("seconds")], ss: [a, k("seconds")], m: [a, k("minutes")], mm: [a, k("minutes")], H: [a, k("hours")], h: [a, k("hours")], HH: [a, k("hours")], hh: [a, k("hours")], D: [a, k("day")], DD: [C, k("day")], Do: [A, function(D) {
962
+ }], s: [a, k("seconds")], ss: [a, k("seconds")], m: [a, k("minutes")], mm: [a, k("minutes")], H: [a, k("hours")], h: [a, k("hours")], HH: [a, k("hours")], hh: [a, k("hours")], D: [a, k("day")], DD: [w, k("day")], Do: [A, function(D) {
963
963
  var P = S.ordinal, I = D.match(/\d+/);
964
964
  if (this.day = I[0], P) for (var b = 1; b <= 31; b += 1) P(b).replace(/\[|\]/g, "") === D && (this.day = b);
965
- }], w: [a, k("week")], ww: [C, k("week")], M: [a, k("month")], MM: [C, k("month")], MMM: [A, function(D) {
965
+ }], w: [a, k("week")], ww: [w, k("week")], M: [a, k("month")], MM: [w, k("month")], MMM: [A, function(D) {
966
966
  var P = L("months"), I = (L("monthsShort") || P.map(function(b) {
967
967
  return b.slice(0, 3);
968
968
  })).indexOf(D) + 1;
@@ -972,7 +972,7 @@ function gs() {
972
972
  var P = L("months").indexOf(D) + 1;
973
973
  if (P < 1) throw new Error();
974
974
  this.month = P % 12 || P;
975
- }], Y: [/[+-]?\d+/, k("year")], YY: [C, function(D) {
975
+ }], Y: [/[+-]?\d+/, k("year")], YY: [w, function(D) {
976
976
  this.year = h(D);
977
977
  }], YYYY: [/\d{4}/, k("year")], Z: g, ZZ: g };
978
978
  function T(D) {
@@ -1058,7 +1058,7 @@ const In = (...n) => {
1058
1058
  return !1;
1059
1059
  }
1060
1060
  return u;
1061
- }, Bn = async (n, u = !0, d, i, v, C, a, A = !1, S) => {
1061
+ }, Bn = async (n, u = !0, d, i, v, w, a, A = !1, S) => {
1062
1062
  let h = {
1063
1063
  appnt_id: "0",
1064
1064
  error: "",
@@ -1142,14 +1142,14 @@ const In = (...n) => {
1142
1142
  } catch {
1143
1143
  d("Error", "Something went wrong while creating/updating appointment", "Error", 3e3);
1144
1144
  }
1145
- }, Za = async (n, u, d, i, v, C = Dt[0], a) => {
1145
+ }, Za = async (n, u, d, i, v, w = Dt[0], a) => {
1146
1146
  let A = {};
1147
1147
  try {
1148
- if (C === Dt[0] && !n.appnt_doctor_role_id) {
1148
+ if (w === Dt[0] && !n.appnt_doctor_role_id) {
1149
1149
  u("Error", "Doctor name is missing", "Error", 3e3);
1150
1150
  return;
1151
1151
  }
1152
- if (C === Dt[0]) {
1152
+ if (w === Dt[0]) {
1153
1153
  const T = n.appnt_time_time + " " + n.appnt_time_format;
1154
1154
  if (!new RegExp(/^(0?[1-9]|1[012])(:[0-5]\d) [APap][mM]$/).test(T)) {
1155
1155
  u("Error", "Error in time format", "Error", 3e3);
@@ -1202,14 +1202,14 @@ const In = (...n) => {
1202
1202
  u,
1203
1203
  ["payments"],
1204
1204
  d
1205
- ), v = Array.isArray(i?.payments) ? i.payments : [], C = [
1205
+ ), v = Array.isArray(i?.payments) ? i.payments : [], w = [
1206
1206
  ...new Set(
1207
1207
  v.map((a) => vr[a.mode]).filter((a) => typeof a == "string")
1208
1208
  )
1209
1209
  ];
1210
1210
  return {
1211
1211
  lab_owner_name: i?.lab_owner_name ?? "",
1212
- paymentModes: C
1212
+ paymentModes: w
1213
1213
  };
1214
1214
  } catch (i) {
1215
1215
  return console.error("Error in fetching payment modes from bill id:", i), null;
@@ -1251,7 +1251,7 @@ const In = (...n) => {
1251
1251
  systemic: "SystemicExaminations",
1252
1252
  pickle: "GeneralExaminations",
1253
1253
  assessment: "Assessment",
1254
- glassPrescription: "",
1254
+ glassPrescription: "Opthal",
1255
1255
  pediatrics: "",
1256
1256
  jointExamination: "",
1257
1257
  customField: "",
@@ -1268,13 +1268,13 @@ const In = (...n) => {
1268
1268
  let d = {};
1269
1269
  try {
1270
1270
  d = JSON.parse(u);
1271
- } catch (C) {
1272
- return console.error("Failed to parse visit_pad_json:", C), [];
1271
+ } catch (w) {
1272
+ return console.error("Failed to parse visit_pad_json:", w), [];
1273
1273
  }
1274
1274
  const i = Array.isArray(n) ? n : n.split(","), v = [];
1275
- return i.forEach((C) => {
1275
+ return i.forEach((w) => {
1276
1276
  let a = "";
1277
- switch (C) {
1277
+ switch (w) {
1278
1278
  case "nextvisit":
1279
1279
  a = "use_next_visit";
1280
1280
  break;
@@ -1344,12 +1344,15 @@ const In = (...n) => {
1344
1344
  case "drawing_board":
1345
1345
  a = "drawing_board";
1346
1346
  break;
1347
+ case "glassPrescription":
1348
+ a = "glass_presc_include";
1349
+ break;
1347
1350
  default:
1348
- a = "use_" + C;
1351
+ a = "use_" + w;
1349
1352
  }
1350
1353
  const A = d?.[a];
1351
- A && (C === "presc" || A?.include === "1") && (C === "obstetricHistory" && d?.obhGpla?.include === "0" && d?.obhPregnancyHistory?.include === "0" || v.push(C));
1352
- }), v.map((C) => ys[C] || C);
1354
+ w === "glassPrescription" && A && A?.include === "0" && v.push(w), A && (w === "presc" || A?.include === "1") && (w === "obstetricHistory" && d?.obhGpla?.include === "0" && d?.obhPregnancyHistory?.include === "0" || v.push(w));
1355
+ }), v.map((w) => ys[w] || w);
1353
1356
  }, bs = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20d='M7.6665%206.00004C8.95517%206.00004%209.99984%204.95537%209.99984%203.66671C9.99984%202.37804%208.95517%201.33337%207.6665%201.33337C6.37784%201.33337%205.33317%202.37804%205.33317%203.66671C5.33317%204.95537%206.37784%206.00004%207.6665%206.00004Z'%20fill='%23039855'/%3e%3cpath%20d='M4.65017%205.75205C4.49106%205.52233%204.4115%205.40747%204.32581%205.36953C4.24888%205.33547%204.1679%205.3313%204.08788%205.35729C3.99875%205.38624%203.92865%205.46803%203.78845%205.6316C3.22585%206.28801%202.84213%207.10277%202.71374%208.00016H2.6665C2.29831%208.00016%201.99984%207.70168%201.99984%207.33349C1.99984%207.08757%202.13265%206.87188%202.33365%206.75561C2.65236%206.57125%202.76127%206.16343%202.57691%205.84472C2.39255%205.52601%201.98473%205.4171%201.66602%205.60147C1.06996%205.94627%200.666504%206.59237%200.666504%207.33349C0.666504%208.43806%201.56193%209.33349%202.6665%209.33349H2.71377C2.85774%2010.339%203.32239%2011.2416%203.9998%2011.9329L3.99979%2013.4823C3.99976%2013.5617%203.99973%2013.6565%204.00655%2013.7401C4.01446%2013.8369%204.03476%2013.9756%204.10879%2014.1209C4.20466%2014.309%204.35764%2014.462%204.54581%2014.5579C4.6911%2014.6319%204.82976%2014.6522%204.92658%2014.6601C5.0101%2014.6669%205.10492%2014.6669%205.18432%2014.6669H6.4819C6.56129%2014.6669%206.65616%2014.6669%206.73968%2014.6601C6.8365%2014.6522%206.97516%2014.6319%207.12045%2014.5579C7.30862%2014.462%207.4616%2014.309%207.55747%2014.1209C7.6315%2013.9756%207.6518%2013.8369%207.65971%2013.7401C7.66653%2013.6565%207.6665%2013.5617%207.66647%2013.4823L7.66646%2013.3335H8.33314L8.33313%2013.482C8.3331%2013.5615%208.33307%2013.6563%208.33989%2013.7398C8.3478%2013.8366%208.3681%2013.9753%208.44213%2014.1206C8.538%2014.3088%208.69099%2014.4618%208.87915%2014.5576C9.02444%2014.6317%209.16311%2014.652%209.25992%2014.6599C9.34344%2014.6667%209.43824%2014.6667%209.51764%2014.6666H10.8153C10.8947%2014.6667%2010.9896%2014.6667%2011.0731%2014.6599C11.1699%2014.652%2011.3085%2014.6317%2011.4538%2014.5576C11.642%2014.4618%2011.795%2014.3088%2011.8909%2014.1206C11.9649%2013.9753%2011.9852%2013.8366%2011.9931%2013.7398C11.9999%2013.6563%2011.9999%2013.5615%2011.9999%2013.482L11.9999%2012.884C12.7373%2012.5338%2013.3676%2011.9963%2013.83%2011.3333L14.1486%2011.3333C14.228%2011.3333%2014.3229%2011.3334%2014.4064%2011.3265C14.5032%2011.3186%2014.6419%2011.2983%2014.7872%2011.2243C14.9753%2011.1284%2015.1283%2010.9754%2015.2242%2010.7873C15.2982%2010.642%2015.3185%2010.5033%2015.3264%2010.4065C15.3333%2010.323%2015.3332%2010.2282%2015.3332%2010.1488V7.84245C15.3332%207.76683%2015.3333%207.67651%2015.327%207.59685C15.3199%207.50472%2015.3015%207.37257%2015.2341%207.23269C15.1358%207.02862%2014.9712%206.86396%2014.7671%206.76567C14.6272%206.6983%2014.4951%206.67993%2014.403%206.67276C14.3435%206.66813%2014.2781%206.66697%2014.2173%206.66669C13.9935%206.19554%2013.6934%205.76825%2013.3332%205.40063L13.3332%204.68824C13.3332%204.58502%2013.3333%204.46819%2013.3243%204.36769C13.3144%204.25673%2013.2886%204.08518%2013.1832%203.91515C13.0519%203.70315%2012.846%203.54789%2012.6061%203.47982C12.4137%203.42523%2012.2416%203.44753%2012.1322%203.4685C12.0331%203.48749%2011.9208%203.51963%2011.8216%203.54801L11.7177%203.57769C11.581%203.61674%2011.5127%203.63626%2011.4646%203.67145C11.4182%203.70542%2011.3899%203.73891%2011.364%203.79026C11.3371%203.84344%2011.3279%203.92456%2011.3094%204.08678C11.101%205.91399%209.54949%207.33337%207.6665%207.33337C6.41617%207.33337%205.31201%206.70755%204.65017%205.75205Z'%20fill='%23039855'/%3e%3c/svg%3e", ws = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cg%20clip-path='url(%23clip0_3744_11287)'%3e%3cpath%20d='M7.99984%200.666626C3.94975%200.666626%200.666504%203.94987%200.666504%207.99996C0.666504%2012.05%203.94975%2015.3333%207.99984%2015.3333C8.47083%2015.3333%208.93145%2015.2889%209.37774%2015.204C8.53209%2014.4484%207.99976%2013.3495%207.99976%2012.1262C7.99976%2012.0103%208.00454%2011.8954%208.01391%2011.7819L5.24834%209.5192C5.2413%209.51353%205.23438%209.50771%205.22758%209.50175C5.15845%209.44136%205.10469%209.36959%205.06681%209.29153C5.02391%209.20345%204.99984%209.10452%204.99984%208.99996L4.99984%208.99919C4.99985%208.97688%205.00098%208.95454%205.00323%208.93228C5.01844%208.7814%205.08397%208.64537%205.18277%208.54122C5.23645%208.48449%205.29814%208.43911%205.36462%208.4054C5.45526%208.35929%205.55791%208.33329%205.66657%208.33329H6.6665C7.21472%208.33329%207.58295%208.12528%207.82444%207.84003C7.94632%207.69607%208.04285%207.52355%208.11027%207.33329H5.6665C5.29831%207.33329%204.99984%207.03482%204.99984%206.66663C4.99984%206.29844%205.29831%205.99996%205.6665%205.99996H8.11027C8.04285%205.8097%207.94632%205.63718%207.82444%205.49322C7.58295%205.20797%207.21472%204.99996%206.6665%204.99996H5.6665C5.29831%204.99996%204.99984%204.70148%204.99984%204.33329C4.99984%203.9651%205.29831%203.66663%205.6665%203.66663H10.3332C10.7014%203.66663%2010.9998%203.9651%2010.9998%204.33329C10.9998%204.70148%2010.7014%204.99996%2010.3332%204.99996H9.10602C9.29303%205.31016%209.41955%205.65102%209.48954%205.99996H10.3332C10.7014%205.99996%2010.9998%206.29844%2010.9998%206.66663C10.9998%207.03482%2010.7014%207.33329%2010.3332%207.33329H9.48954C9.39054%207.82684%209.17845%208.30422%208.84207%208.70155C8.48663%209.12139%208.00773%209.43255%207.42456%209.577L8.39182%2010.3684C9.05188%208.96864%2010.4758%207.99996%2012.126%207.99996C13.3493%207.99996%2014.4483%208.53232%2015.2039%209.37801C15.2888%208.93167%2015.3332%208.471%2015.3332%207.99996C15.3332%203.94987%2012.0499%200.666626%207.99984%200.666626Z'%20fill='%23DC6803'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.126%208.91891C10.3547%208.91891%208.91878%2010.3548%208.91878%2012.1261C8.91878%2013.8974%2010.3547%2015.3333%2012.126%2015.3333C13.8973%2015.3333%2015.3332%2013.8974%2015.3332%2012.1261C15.3332%2010.3548%2013.8973%208.91891%2012.126%208.91891ZM12.126%209.57157C12.4082%209.57157%2012.6369%209.80032%2012.6369%2010.0825V11.6152H14.1697C14.4518%2011.6152%2014.6806%2011.844%2014.6806%2012.1262C14.6806%2012.4083%2014.4518%2012.6371%2014.1697%2012.6371H12.6369V14.1698C12.6369%2014.452%2012.4082%2014.6807%2012.126%2014.6807C11.8438%2014.6807%2011.6151%2014.452%2011.6151%2014.1698V12.6371H10.0823C9.80016%2012.6371%209.57141%2012.4083%209.57141%2012.1262C9.57141%2011.844%209.80016%2011.6152%2010.0823%2011.6152H11.6151V10.0825C11.6151%209.80032%2011.8438%209.57157%2012.126%209.57157Z'%20fill='%23DC6803'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_3744_11287'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", wr = (n = "") => {
1354
1357
  const u = new Date(n), i = Math.abs((/* @__PURE__ */ new Date()).getTime() - u.getTime()), v = Math.ceil(i / (1e3 * 60 * 60 * 24));
1355
1358
  return v <= 7 ? `${v - 1}d` : v <= 30 ? `${Math.floor(v / 7)}w` : v <= 365 ? `${Math.floor(v / 30)}m` : `${Math.floor(v / 365)}y`;
@@ -1363,12 +1366,12 @@ const In = (...n) => {
1363
1366
  return "";
1364
1367
  }
1365
1368
  }, Cs = (n) => {
1366
- const { handleCurrentWindow: u, setShowPatientPopModal: d, patientIDs: i, redirectionPage: v, closePrintModal: C } = n, a = Vt(Lt);
1369
+ const { handleCurrentWindow: u, setShowPatientPopModal: d, patientIDs: i, redirectionPage: v, closePrintModal: w } = n, a = Vt(Lt);
1367
1370
  if (!a)
1368
1371
  throw new Error("PatientPopupHeader must be used within an AppContext.Provider");
1369
1372
  const { currentWindow: A, patientDetails: S, docPreference: h, billPreferences: k, setLastBillPaymentData: g, variable: L } = a, { name: q, age: W, gender: T, image_link: D, org_person_bid_str: P, org_person_dob: I, honorific: b } = S || {};
1370
1373
  window.patientPopupClosehandler = () => {
1371
- if (d(!1), C(), g({
1374
+ if (d(!1), w(), g({
1372
1375
  created_on: "",
1373
1376
  category_name: ""
1374
1377
  }), window.location.pathname.indexOf("/frontdesk/") !== -1) {
@@ -1377,7 +1380,7 @@ const In = (...n) => {
1377
1380
  }
1378
1381
  };
1379
1382
  const $ = () => {
1380
- v === "appointments" ? typeof window.redirectVPFromAppnt == "function" && window.redirectVPFromAppnt(i?.patientRoleID || "", i?.patientID || "") : v === "consultations" ? typeof window.redirectVPFromConsult == "function" && window.redirectVPFromConsult(i?.patientRoleID || "", i?.patientID || "") : v === "addpatient" || v === "frontDeskDashboard" ? window.location.href = `${window.origin}${on.visitpad}?pid=${i?.patientRoleID}` : window.location.href = `${window.origin}${on.visitpad}?pid=${i?.patientRoleID}`, d(!1), C();
1383
+ v === "appointments" ? typeof window.redirectVPFromAppnt == "function" && window.redirectVPFromAppnt(i?.patientRoleID || "", i?.patientID || "") : v === "consultations" ? typeof window.redirectVPFromConsult == "function" && window.redirectVPFromConsult(i?.patientRoleID || "", i?.patientID || "") : v === "addpatient" || v === "frontDeskDashboard" ? window.location.href = `${window.origin}${on.visitpad}?pid=${i?.patientRoleID}` : window.location.href = `${window.origin}${on.visitpad}?pid=${i?.patientRoleID}`, d(!1), w();
1381
1384
  };
1382
1385
  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: [
1383
1386
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-justify-center hfl-gap-[13px]", children: [
@@ -1582,7 +1585,7 @@ const In = (...n) => {
1582
1585
  /* @__PURE__ */ e.jsx("div", { className: "flex hfl-top-0 hfl-pt-3 ", children: /* @__PURE__ */ e.jsx(Vn, { className: "hfl-bg-Gray-200", rows: 10, suffixPlaceholder: "Load Message Template from right" }) }),
1583
1586
  /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-justify-end hfl-pt-[160px] ", children: /* @__PURE__ */ e.jsx(He, { hierarchy: "Primary", size: "lg", textField: "Send Message" }) })
1584
1587
  ] }), js = (n) => {
1585
- const { patientAbhaDetails: u, savePatientDetailsHandler: d, setPatientAbhaDetails: i, patientData: v } = n, { showToast: C, patientIDs: a, variable: A } = Vt(Lt) || {}, [S, h] = K(""), [k, g] = K(""), [L, q] = K(), W = async (T = !1) => {
1588
+ const { patientAbhaDetails: u, savePatientDetailsHandler: d, setPatientAbhaDetails: i, patientData: v } = n, { showToast: w, patientIDs: a, variable: A } = Vt(Lt) || {}, [S, h] = K(""), [k, g] = K(""), [L, q] = K(), W = async (T = !1) => {
1586
1589
  try {
1587
1590
  if (L?.status && !T) {
1588
1591
  const D = await os(
@@ -1601,10 +1604,10 @@ const In = (...n) => {
1601
1604
  ) : v?.org_person_dob;
1602
1605
  d(D.PatientDetails[0].name, I || "");
1603
1606
  } else
1604
- C("Error", D.error, "Error", 3e3);
1607
+ w("Error", D.error, "Error", 3e3);
1605
1608
  } else {
1606
1609
  const D = await ss(S, A);
1607
- q(D), D.status || C("Error", D.error, "Error", 3e3);
1610
+ q(D), D.status || w("Error", D.error, "Error", 3e3);
1608
1611
  }
1609
1612
  } catch (D) {
1610
1613
  console.error("Error while generating OTP", D);
@@ -1726,7 +1729,7 @@ const In = (...n) => {
1726
1729
  setPatientData: d,
1727
1730
  preferences: i,
1728
1731
  referredByDocList: v,
1729
- throughChannelList: C,
1732
+ throughChannelList: w,
1730
1733
  showImageFromLink: a,
1731
1734
  validators: A,
1732
1735
  setValidators: S,
@@ -1803,9 +1806,9 @@ const In = (...n) => {
1803
1806
  } else
1804
1807
  return [];
1805
1808
  }, yt = (E) => {
1806
- if (C?.length) {
1807
- let xe = C;
1808
- return E?.length && (xe = C.filter(
1809
+ if (w?.length) {
1810
+ let xe = w;
1811
+ return E?.length && (xe = w.filter(
1809
1812
  (wt) => wt.title.toLowerCase().includes(E.toLowerCase())
1810
1813
  // last keyboad input after ,
1811
1814
  )), xe;
@@ -2672,7 +2675,7 @@ const In = (...n) => {
2672
2675
  ] })
2673
2676
  ] }) });
2674
2677
  }), Ss = (n) => {
2675
- const { getPatientDetails: u, setPatientAbhaDetails: d, patientAbhaDetails: i, isPartnerServiceEnabled: v, partnerConfig: C } = n, [a, A] = K(""), [S, h] = K(!1), [k, g] = K(!1), [L, q] = K(!1), [W, T] = K([]), [D, P] = K([]), I = Mr(null), b = Mr(null), [$, G] = K("profile"), {
2678
+ const { getPatientDetails: u, setPatientAbhaDetails: d, patientAbhaDetails: i, isPartnerServiceEnabled: v, partnerConfig: w } = n, [a, A] = K(""), [S, h] = K(!1), [k, g] = K(!1), [L, q] = K(!1), [W, T] = K([]), [D, P] = K([]), I = Mr(null), b = Mr(null), [$, G] = K("profile"), {
2676
2679
  docPreference: J,
2677
2680
  patientDetails: X,
2678
2681
  preferences: ee,
@@ -2772,7 +2775,7 @@ const In = (...n) => {
2772
2775
  ve?.current?.scrollIntoView({ behavior: "smooth" });
2773
2776
  }, [Re.partner_name]);
2774
2777
  const _e = async (B) => {
2775
- if (C && C[B?.partner_name]?.verify_insurance?.enable) {
2778
+ if (w && w[B?.partner_name]?.verify_insurance?.enable) {
2776
2779
  const de = await fs(
2777
2780
  {
2778
2781
  ...B,
@@ -2841,7 +2844,7 @@ const In = (...n) => {
2841
2844
  isAbhaVerified: i?.patient_details_mongo?.length,
2842
2845
  isPartnerServiceEnabled: v,
2843
2846
  insuranceData: qe,
2844
- partnerConfig: C,
2847
+ partnerConfig: w,
2845
2848
  verifyInsuranceHandler: _e,
2846
2849
  policyNumberErrorMessage: H,
2847
2850
  selectedInsuranceDetails: Re,
@@ -3032,24 +3035,24 @@ function Ds() {
3032
3035
  (function(d, i) {
3033
3036
  i(u, ol);
3034
3037
  })(Ns, function(d, i) {
3035
- function v(t, o, f, p, w, _, R) {
3038
+ function v(t, o, f, p, C, _, R) {
3036
3039
  try {
3037
3040
  var U = t[_](R), Q = U.value;
3038
3041
  } catch (re) {
3039
3042
  return void f(re);
3040
3043
  }
3041
- U.done ? o(Q) : Promise.resolve(Q).then(p, w);
3044
+ U.done ? o(Q) : Promise.resolve(Q).then(p, C);
3042
3045
  }
3043
- function C(t) {
3046
+ function w(t) {
3044
3047
  return function() {
3045
3048
  var o = this, f = arguments;
3046
- return new Promise(function(p, w) {
3049
+ return new Promise(function(p, C) {
3047
3050
  var _ = t.apply(o, f);
3048
3051
  function R(Q) {
3049
- v(_, p, w, R, U, "next", Q);
3052
+ v(_, p, C, R, U, "next", Q);
3050
3053
  }
3051
3054
  function U(Q) {
3052
- v(_, p, w, R, U, "throw", Q);
3055
+ v(_, p, C, R, U, "throw", Q);
3053
3056
  }
3054
3057
  R(void 0);
3055
3058
  });
@@ -3066,16 +3069,16 @@ function Ds() {
3066
3069
  }
3067
3070
  function A(t, o) {
3068
3071
  if (t == null) return {};
3069
- var f, p, w = {}, _ = Object.keys(t);
3070
- for (p = 0; p < _.length; p++) f = _[p], o.indexOf(f) >= 0 || (w[f] = t[f]);
3071
- return w;
3072
+ var f, p, C = {}, _ = Object.keys(t);
3073
+ for (p = 0; p < _.length; p++) f = _[p], o.indexOf(f) >= 0 || (C[f] = t[f]);
3074
+ return C;
3072
3075
  }
3073
3076
  function S(t) {
3074
3077
  var o = function(f, p) {
3075
3078
  if (typeof f != "object" || f === null) return f;
3076
- var w = f[Symbol.toPrimitive];
3077
- if (w !== void 0) {
3078
- var _ = w.call(f, p);
3079
+ var C = f[Symbol.toPrimitive];
3080
+ if (C !== void 0) {
3081
+ var _ = C.call(f, p);
3079
3082
  if (typeof _ != "object") return _;
3080
3083
  throw new TypeError("@@toPrimitive must return a primitive value.");
3081
3084
  }
@@ -3092,22 +3095,22 @@ function Ds() {
3092
3095
  }, L = { Cell: k, width: 150, minWidth: 0, maxWidth: Number.MAX_SAFE_INTEGER };
3093
3096
  function q() {
3094
3097
  for (var t = arguments.length, o = new Array(t), f = 0; f < t; f++) o[f] = arguments[f];
3095
- return o.reduce(function(p, w) {
3096
- var _ = w.style, R = w.className;
3097
- return p = a({}, p, {}, A(w, ["style", "className"])), _ && (p.style = p.style ? a({}, p.style || {}, {}, _ || {}) : _), R && (p.className = p.className ? p.className + " " + R : R), p.className === "" && delete p.className, p;
3098
+ return o.reduce(function(p, C) {
3099
+ var _ = C.style, R = C.className;
3100
+ return p = a({}, p, {}, A(C, ["style", "className"])), _ && (p.style = p.style ? a({}, p.style || {}, {}, _ || {}) : _), R && (p.className = p.className ? p.className + " " + R : R), p.className === "" && delete p.className, p;
3098
3101
  }, {});
3099
3102
  }
3100
3103
  var W = function(t, o) {
3101
3104
  return o === void 0 && (o = {}), function(f) {
3102
- return f === void 0 && (f = {}), [].concat(t, [f]).reduce(function(p, w) {
3105
+ return f === void 0 && (f = {}), [].concat(t, [f]).reduce(function(p, C) {
3103
3106
  return function _(R, U, Q) {
3104
3107
  return typeof U == "function" ? _({}, U(R, Q)) : Array.isArray(U) ? q.apply(void 0, [R].concat(U)) : q(R, U);
3105
- }(p, w, a({}, o, { userProps: f }));
3108
+ }(p, C, a({}, o, { userProps: f }));
3106
3109
  }, {});
3107
3110
  };
3108
3111
  }, T = function(t, o, f, p) {
3109
- return f === void 0 && (f = {}), t.reduce(function(w, _) {
3110
- return _(w, f);
3112
+ return f === void 0 && (f = {}), t.reduce(function(C, _) {
3113
+ return _(C, f);
3111
3114
  }, o);
3112
3115
  }, D = function(t, o, f) {
3113
3116
  return f === void 0 && (f = {}), t.forEach(function(p) {
@@ -3115,11 +3118,11 @@ function Ds() {
3115
3118
  });
3116
3119
  };
3117
3120
  function P(t, o, f, p) {
3118
- t.findIndex(function(w) {
3119
- return w.pluginName === f;
3120
- }), o.forEach(function(w) {
3121
+ t.findIndex(function(C) {
3122
+ return C.pluginName === f;
3123
+ }), o.forEach(function(C) {
3121
3124
  t.findIndex(function(_) {
3122
- return _.pluginName === w;
3125
+ return _.pluginName === C;
3123
3126
  });
3124
3127
  });
3125
3128
  }
@@ -3140,17 +3143,17 @@ function Ds() {
3140
3143
  }, o);
3141
3144
  }
3142
3145
  function J(t, o, f) {
3143
- return f === void 0 && (f = {}), function(p, w) {
3144
- w === void 0 && (w = {});
3146
+ return f === void 0 && (f = {}), function(p, C) {
3147
+ C === void 0 && (C = {});
3145
3148
  var _ = typeof p == "string" ? o[p] : p;
3146
3149
  if (_ === void 0) throw console.info(o), new Error("Renderer Error ☝️");
3147
- return X(_, a({}, t, { column: o }, f, {}, w));
3150
+ return X(_, a({}, t, { column: o }, f, {}, C));
3148
3151
  };
3149
3152
  }
3150
3153
  function X(t, o) {
3151
3154
  return function(p) {
3152
- return typeof p == "function" && (w = Object.getPrototypeOf(p)).prototype && w.prototype.isReactComponent;
3153
- var w;
3155
+ return typeof p == "function" && (C = Object.getPrototypeOf(p)).prototype && C.prototype.isReactComponent;
3156
+ var C;
3154
3157
  }(f = t) || typeof f == "function" || function(p) {
3155
3158
  return typeof p == "object" && typeof p.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(p.$$typeof.description);
3156
3159
  }(f) ? i.createElement(t, o) : t;
@@ -3168,7 +3171,7 @@ function Ds() {
3168
3171
  var o = t.id, f = t.accessor, p = t.Header;
3169
3172
  if (typeof f == "string") {
3170
3173
  o = o || f;
3171
- var w = f.split(".");
3174
+ var C = f.split(".");
3172
3175
  f = function(_) {
3173
3176
  return function(R, U, Q) {
3174
3177
  if (!U) return R;
@@ -3191,7 +3194,7 @@ function Ds() {
3191
3194
  } catch {
3192
3195
  }
3193
3196
  return re !== void 0 ? re : Q;
3194
- }(_, w);
3197
+ }(_, C);
3195
3198
  };
3196
3199
  }
3197
3200
  if (!o && typeof p == "string" && p && (o = p), !o && t.columns) throw console.error(t), new Error('A column ID (or unique "Header" value) is required!');
@@ -3206,17 +3209,17 @@ function Ds() {
3206
3209
  f === void 0 && (f = function() {
3207
3210
  return {};
3208
3211
  });
3209
- for (var p = [], w = t, _ = 0, R = function() {
3212
+ for (var p = [], C = t, _ = 0, R = function() {
3210
3213
  return _++;
3211
3214
  }, U = function() {
3212
- var Q = { headers: [] }, re = [], me = w.some(function(fe) {
3215
+ var Q = { headers: [] }, re = [], me = C.some(function(fe) {
3213
3216
  return fe.parent;
3214
3217
  });
3215
- w.forEach(function(fe) {
3218
+ C.forEach(function(fe) {
3216
3219
  var he, ne = [].concat(re).reverse()[0];
3217
3220
  me && (fe.parent ? he = a({}, fe.parent, { originalId: fe.parent.id, id: fe.parent.id + "_" + R(), headers: [fe] }, f(fe)) : he = V(a({ originalId: fe.id + "_placeholder", id: fe.id + "_placeholder_" + R(), placeholderOf: fe, headers: [fe] }, f(fe)), o), ne && ne.originalId === he.originalId ? ne.headers.push(fe) : re.push(he)), Q.headers.push(fe);
3218
- }), p.push(Q), w = re;
3219
- }; w.length; ) U();
3221
+ }), p.push(Q), C = re;
3222
+ }; C.length; ) U();
3220
3223
  return p.reverse();
3221
3224
  }
3222
3225
  var se = /* @__PURE__ */ new Map();
@@ -3229,14 +3232,14 @@ function Ds() {
3229
3232
  }
3230
3233
  function We(t, o) {
3231
3234
  var f = [];
3232
- return function p(w) {
3233
- w.forEach(function(_) {
3235
+ return function p(C) {
3236
+ C.forEach(function(_) {
3234
3237
  _[o] ? p(_[o]) : f.push(_);
3235
3238
  });
3236
3239
  }(t), f;
3237
3240
  }
3238
3241
  function H(t, o) {
3239
- var f = o.manualExpandedKey, p = o.expanded, w = o.expandSubRows, _ = w === void 0 || w, R = [];
3242
+ var f = o.manualExpandedKey, p = o.expanded, C = o.expandSubRows, _ = C === void 0 || C, R = [];
3240
3243
  return t.forEach(function(U) {
3241
3244
  return function Q(re, me) {
3242
3245
  me === void 0 && (me = !0), re.isExpanded = re.original && re.original[f] || p[re.id], re.canExpand = re.subRows && !!re.subRows.length, me && R.push(re), re.subRows && re.subRows.length && re.isExpanded && re.subRows.forEach(function(fe) {
@@ -3300,10 +3303,10 @@ function Ds() {
3300
3303
  if (o.type === h.init) return a({ hiddenColumns: [] }, t);
3301
3304
  if (o.type === h.resetHiddenColumns) return a({}, t, { hiddenColumns: p.initialState.hiddenColumns || [] });
3302
3305
  if (o.type === h.toggleHideColumn) {
3303
- var w = (o.value !== void 0 ? o.value : !t.hiddenColumns.includes(o.columnId)) ? [].concat(t.hiddenColumns, [o.columnId]) : t.hiddenColumns.filter(function(_) {
3306
+ var C = (o.value !== void 0 ? o.value : !t.hiddenColumns.includes(o.columnId)) ? [].concat(t.hiddenColumns, [o.columnId]) : t.hiddenColumns.filter(function(_) {
3304
3307
  return _ !== o.columnId;
3305
3308
  });
3306
- return a({}, t, { hiddenColumns: w });
3309
+ return a({}, t, { hiddenColumns: C });
3307
3310
  }
3308
3311
  return o.type === h.setHiddenColumns ? a({}, t, { hiddenColumns: I(o.value, t.hiddenColumns) }) : o.type === h.toggleHideAllColumns ? a({}, t, { hiddenColumns: (o.value !== void 0 ? o.value : !t.hiddenColumns.length) ? p.allColumns.map(function(_) {
3309
3312
  return _.id;
@@ -3313,18 +3316,18 @@ function Ds() {
3313
3316
  var o = t.headers, f = t.state.hiddenColumns;
3314
3317
  i.useRef(!1).current;
3315
3318
  var p = 0;
3316
- o.forEach(function(w) {
3319
+ o.forEach(function(C) {
3317
3320
  return p += function _(R, U) {
3318
3321
  R.isVisible = U && !f.includes(R.id);
3319
3322
  var Q = 0;
3320
3323
  return R.headers && R.headers.length ? R.headers.forEach(function(re) {
3321
3324
  return Q += _(re, R.isVisible);
3322
3325
  }) : Q = R.isVisible ? 1 : 0, R.totalVisibleHeaderCount = Q, Q;
3323
- }(w, !0);
3326
+ }(C, !0);
3324
3327
  });
3325
3328
  }
3326
3329
  function B(t) {
3327
- var o = t.columns, f = t.flatHeaders, p = t.dispatch, w = t.allColumns, _ = t.getHooks, R = t.state.hiddenColumns, U = t.autoResetHiddenColumns, Q = U === void 0 || U, re = b(t), me = w.length === R.length, fe = i.useCallback(function(De, Le) {
3330
+ var o = t.columns, f = t.flatHeaders, p = t.dispatch, C = t.allColumns, _ = t.getHooks, R = t.state.hiddenColumns, U = t.autoResetHiddenColumns, Q = U === void 0 || U, re = b(t), me = C.length === R.length, fe = i.useCallback(function(De, Le) {
3328
3331
  return p({ type: h.toggleHideColumn, columnId: De, value: Le });
3329
3332
  }, [p]), he = i.useCallback(function(De) {
3330
3333
  return p({ type: h.setHiddenColumns, value: De });
@@ -3351,31 +3354,31 @@ function Ds() {
3351
3354
  return t;
3352
3355
  };
3353
3356
  function mt(t) {
3354
- var o = t.initialState, f = o === void 0 ? de : o, p = t.defaultColumn, w = p === void 0 ? je : p, _ = t.getSubRows, R = _ === void 0 ? jt : _, U = t.getRowId, Q = U === void 0 ? Wt : U, re = t.stateReducer, me = re === void 0 ? Ee : re, fe = t.useControlledState, he = fe === void 0 ? Ht : fe;
3355
- return a({}, A(t, ["initialState", "defaultColumn", "getSubRows", "getRowId", "stateReducer", "useControlledState"]), { initialState: f, defaultColumn: w, getSubRows: R, getRowId: Q, stateReducer: me, useControlledState: he });
3357
+ var o = t.initialState, f = o === void 0 ? de : o, p = t.defaultColumn, C = p === void 0 ? je : p, _ = t.getSubRows, R = _ === void 0 ? jt : _, U = t.getRowId, Q = U === void 0 ? Wt : U, re = t.stateReducer, me = re === void 0 ? Ee : re, fe = t.useControlledState, he = fe === void 0 ? Ht : fe;
3358
+ return a({}, A(t, ["initialState", "defaultColumn", "getSubRows", "getRowId", "stateReducer", "useControlledState"]), { initialState: f, defaultColumn: C, getSubRows: R, getRowId: Q, stateReducer: me, useControlledState: he });
3356
3359
  }
3357
3360
  function Xt(t, o) {
3358
3361
  o === void 0 && (o = 0);
3359
- var f = 0, p = 0, w = 0, _ = 0;
3362
+ var f = 0, p = 0, C = 0, _ = 0;
3360
3363
  return t.forEach(function(R) {
3361
3364
  var U = R.headers;
3362
3365
  if (R.totalLeft = o, U && U.length) {
3363
3366
  var Q = Xt(U, o), re = Q[0], me = Q[1], fe = Q[2], he = Q[3];
3364
3367
  R.totalMinWidth = re, R.totalWidth = me, R.totalMaxWidth = fe, R.totalFlexWidth = he;
3365
3368
  } else R.totalMinWidth = R.minWidth, R.totalWidth = Math.min(Math.max(R.minWidth, R.width), R.maxWidth), R.totalMaxWidth = R.maxWidth, R.totalFlexWidth = R.canResize ? R.totalWidth : 0;
3366
- R.isVisible && (o += R.totalWidth, f += R.totalMinWidth, p += R.totalWidth, w += R.totalMaxWidth, _ += R.totalFlexWidth);
3367
- }), [f, p, w, _];
3369
+ R.isVisible && (o += R.totalWidth, f += R.totalMinWidth, p += R.totalWidth, C += R.totalMaxWidth, _ += R.totalFlexWidth);
3370
+ }), [f, p, C, _];
3368
3371
  }
3369
3372
  function fr(t) {
3370
- var o = t.data, f = t.rows, p = t.flatRows, w = t.rowsById, _ = t.column, R = t.getRowId, U = t.getSubRows, Q = t.accessValueHooks, re = t.getInstance;
3373
+ var o = t.data, f = t.rows, p = t.flatRows, C = t.rowsById, _ = t.column, R = t.getRowId, U = t.getSubRows, Q = t.accessValueHooks, re = t.getInstance;
3371
3374
  o.forEach(function(me, fe) {
3372
3375
  return function he(ne, ue, we, De, Le) {
3373
3376
  we === void 0 && (we = 0);
3374
- var nt = ne, ke = R(ne, ue, De), ge = w[ke];
3377
+ var nt = ne, ke = R(ne, ue, De), ge = C[ke];
3375
3378
  if (ge) ge.subRows && ge.originalSubRows.forEach(function(Fe, Je) {
3376
3379
  return he(Fe, Je, we + 1, ge);
3377
3380
  });
3378
- else if ((ge = { id: ke, original: nt, index: ue, depth: we, cells: [{}] }).cells.map = te, ge.cells.filter = te, ge.cells.forEach = te, ge.cells[0].getCellProps = te, ge.values = {}, Le.push(ge), p.push(ge), w[ke] = ge, ge.originalSubRows = U(ne, ue), ge.originalSubRows) {
3381
+ else if ((ge = { id: ke, original: nt, index: ue, depth: we, cells: [{}] }).cells.map = te, ge.cells.filter = te, ge.cells.forEach = te, ge.cells[0].getCellProps = te, ge.values = {}, Le.push(ge), p.push(ge), C[ke] = ge, ge.originalSubRows = U(ne, ue), ge.originalSubRows) {
3379
3382
  var lt = [];
3380
3383
  ge.originalSubRows.forEach(function(Fe, Je) {
3381
3384
  return he(Fe, Je, we + 1, ge, lt);
@@ -3405,8 +3408,8 @@ function Ds() {
3405
3408
  if (o.type === h.init) return a({ expanded: {} }, t);
3406
3409
  if (o.type === h.resetExpanded) return a({}, t, { expanded: p.initialState.expanded || {} });
3407
3410
  if (o.type === h.toggleAllRowsExpanded) {
3408
- var w = o.value, _ = p.rowsById, R = Object.keys(_).length === Object.keys(t.expanded).length;
3409
- if (w !== void 0 ? w : !R) {
3411
+ var C = o.value, _ = p.rowsById, R = Object.keys(_).length === Object.keys(t.expanded).length;
3412
+ if (C !== void 0 ? C : !R) {
3410
3413
  var U = {};
3411
3414
  return Object.keys(_).forEach(function(ue) {
3412
3415
  U[ue] = !0;
@@ -3425,7 +3428,7 @@ function Ds() {
3425
3428
  }
3426
3429
  }
3427
3430
  function xt(t) {
3428
- var o = t.data, f = t.rows, p = t.rowsById, w = t.manualExpandedKey, _ = w === void 0 ? "expanded" : w, R = t.paginateExpandedRows, U = R === void 0 || R, Q = t.expandSubRows, re = Q === void 0 || Q, me = t.autoResetExpanded, fe = me === void 0 || me, he = t.getHooks, ne = t.plugins, ue = t.state.expanded, we = t.dispatch;
3431
+ var o = t.data, f = t.rows, p = t.rowsById, C = t.manualExpandedKey, _ = C === void 0 ? "expanded" : C, R = t.paginateExpandedRows, U = R === void 0 || R, Q = t.expandSubRows, re = Q === void 0 || Q, me = t.autoResetExpanded, fe = me === void 0 || me, he = t.getHooks, ne = t.plugins, ue = t.state.expanded, we = t.dispatch;
3429
3432
  P(ne, ["useSortBy", "useGroupBy", "usePivotColumns", "useGlobalFilter"], "useExpanded");
3430
3433
  var De = b(fe), Le = !!(Object.keys(p).length && Object.keys(ue).length);
3431
3434
  Le && Object.keys(p).some(function(gt) {
@@ -3452,14 +3455,14 @@ function Ds() {
3452
3455
  }
3453
3456
  function cr(t, o) {
3454
3457
  var f = o.instance.getHooks, p = o.instance;
3455
- t.toggleRowExpanded = function(w) {
3456
- return p.toggleRowExpanded(t.id, w);
3458
+ t.toggleRowExpanded = function(C) {
3459
+ return p.toggleRowExpanded(t.id, C);
3457
3460
  }, t.getToggleRowExpandedProps = W(f().getToggleRowExpandedProps, { instance: p, row: t });
3458
3461
  }
3459
3462
  var yr = function(t, o, f) {
3460
3463
  return t = t.filter(function(p) {
3461
- return o.some(function(w) {
3462
- var _ = p.values[w];
3464
+ return o.some(function(C) {
3465
+ var _ = p.values[C];
3463
3466
  return String(_).toLowerCase().includes(String(f).toLowerCase());
3464
3467
  });
3465
3468
  });
@@ -3469,8 +3472,8 @@ function Ds() {
3469
3472
  };
3470
3473
  var Rr = function(t, o, f) {
3471
3474
  return t.filter(function(p) {
3472
- return o.some(function(w) {
3473
- var _ = p.values[w];
3475
+ return o.some(function(C) {
3476
+ var _ = p.values[C];
3474
3477
  return _ === void 0 || String(_).toLowerCase() === String(f).toLowerCase();
3475
3478
  });
3476
3479
  });
@@ -3480,8 +3483,8 @@ function Ds() {
3480
3483
  };
3481
3484
  var gr = function(t, o, f) {
3482
3485
  return t.filter(function(p) {
3483
- return o.some(function(w) {
3484
- var _ = p.values[w];
3486
+ return o.some(function(C) {
3487
+ var _ = p.values[C];
3485
3488
  return _ === void 0 || String(_) === String(f);
3486
3489
  });
3487
3490
  });
@@ -3491,8 +3494,8 @@ function Ds() {
3491
3494
  };
3492
3495
  var jr = function(t, o, f) {
3493
3496
  return t.filter(function(p) {
3494
- return o.some(function(w) {
3495
- return p.values[w].includes(f);
3497
+ return o.some(function(C) {
3498
+ return p.values[C].includes(f);
3496
3499
  });
3497
3500
  });
3498
3501
  };
@@ -3501,8 +3504,8 @@ function Ds() {
3501
3504
  };
3502
3505
  var ct = function(t, o, f) {
3503
3506
  return t.filter(function(p) {
3504
- return o.some(function(w) {
3505
- var _ = p.values[w];
3507
+ return o.some(function(C) {
3508
+ var _ = p.values[C];
3506
3509
  return _ && _.length && f.every(function(R) {
3507
3510
  return _.includes(R);
3508
3511
  });
@@ -3514,8 +3517,8 @@ function Ds() {
3514
3517
  };
3515
3518
  var yt = function(t, o, f) {
3516
3519
  return t.filter(function(p) {
3517
- return o.some(function(w) {
3518
- var _ = p.values[w];
3520
+ return o.some(function(C) {
3521
+ var _ = p.values[C];
3519
3522
  return _ && _.length && f.some(function(R) {
3520
3523
  return _.includes(R);
3521
3524
  });
@@ -3527,8 +3530,8 @@ function Ds() {
3527
3530
  };
3528
3531
  var dt = function(t, o, f) {
3529
3532
  return t.filter(function(p) {
3530
- return o.some(function(w) {
3531
- var _ = p.values[w];
3533
+ return o.some(function(C) {
3534
+ var _ = p.values[C];
3532
3535
  return f.includes(_);
3533
3536
  });
3534
3537
  });
@@ -3538,8 +3541,8 @@ function Ds() {
3538
3541
  };
3539
3542
  var Pt = function(t, o, f) {
3540
3543
  return t.filter(function(p) {
3541
- return o.some(function(w) {
3542
- return p.values[w] === f;
3544
+ return o.some(function(C) {
3545
+ return p.values[C] === f;
3543
3546
  });
3544
3547
  });
3545
3548
  };
@@ -3548,8 +3551,8 @@ function Ds() {
3548
3551
  };
3549
3552
  var $t = function(t, o, f) {
3550
3553
  return t.filter(function(p) {
3551
- return o.some(function(w) {
3552
- return p.values[w] == f;
3554
+ return o.some(function(C) {
3555
+ return p.values[C] == f;
3553
3556
  });
3554
3557
  });
3555
3558
  };
@@ -3557,15 +3560,15 @@ function Ds() {
3557
3560
  return t == null;
3558
3561
  };
3559
3562
  var zt = function(t, o, f) {
3560
- var p = f || [], w = p[0], _ = p[1];
3561
- if ((w = typeof w == "number" ? w : -1 / 0) > (_ = typeof _ == "number" ? _ : 1 / 0)) {
3562
- var R = w;
3563
- w = _, _ = R;
3563
+ var p = f || [], C = p[0], _ = p[1];
3564
+ if ((C = typeof C == "number" ? C : -1 / 0) > (_ = typeof _ == "number" ? _ : 1 / 0)) {
3565
+ var R = C;
3566
+ C = _, _ = R;
3564
3567
  }
3565
3568
  return t.filter(function(U) {
3566
3569
  return o.some(function(Q) {
3567
3570
  var re = U.values[Q];
3568
- return re >= w && re <= _;
3571
+ return re >= C && re <= _;
3569
3572
  });
3570
3573
  });
3571
3574
  };
@@ -3581,18 +3584,18 @@ function Ds() {
3581
3584
  if (o.type === h.init) return a({ filters: [] }, t);
3582
3585
  if (o.type === h.resetFilters) return a({}, t, { filters: p.initialState.filters || [] });
3583
3586
  if (o.type === h.setFilter) {
3584
- var w = o.columnId, _ = o.filterValue, R = p.allColumns, U = p.filterTypes, Q = R.find(function(we) {
3585
- return we.id === w;
3587
+ var C = o.columnId, _ = o.filterValue, R = p.allColumns, U = p.filterTypes, Q = R.find(function(we) {
3588
+ return we.id === C;
3586
3589
  });
3587
- if (!Q) throw new Error("React-Table: Could not find a column with id: " + w);
3590
+ if (!Q) throw new Error("React-Table: Could not find a column with id: " + C);
3588
3591
  var re = ce(Q.filter, U || {}, Ut), me = t.filters.find(function(we) {
3589
- return we.id === w;
3592
+ return we.id === C;
3590
3593
  }), fe = I(_, me && me.value);
3591
3594
  return Re(re.autoRemove, fe, Q) ? a({}, t, { filters: t.filters.filter(function(we) {
3592
- return we.id !== w;
3595
+ return we.id !== C;
3593
3596
  }) }) : a({}, t, me ? { filters: t.filters.map(function(we) {
3594
- return we.id === w ? { id: w, value: fe } : we;
3595
- }) } : { filters: [].concat(t.filters, [{ id: w, value: fe }]) });
3597
+ return we.id === C ? { id: C, value: fe } : we;
3598
+ }) } : { filters: [].concat(t.filters, [{ id: C, value: fe }]) });
3596
3599
  }
3597
3600
  if (o.type === h.setAllFilters) {
3598
3601
  var he = o.filters, ne = p.allColumns, ue = p.filterTypes;
@@ -3605,7 +3608,7 @@ function Ds() {
3605
3608
  }
3606
3609
  }
3607
3610
  function E(t) {
3608
- var o = t.data, f = t.rows, p = t.flatRows, w = t.rowsById, _ = t.allColumns, R = t.filterTypes, U = t.manualFilters, Q = t.defaultCanFilter, re = Q !== void 0 && Q, me = t.disableFilters, fe = t.state.filters, he = t.dispatch, ne = t.autoResetFilters, ue = ne === void 0 || ne, we = i.useCallback(function(Fe, Je) {
3611
+ var o = t.data, f = t.rows, p = t.flatRows, C = t.rowsById, _ = t.allColumns, R = t.filterTypes, U = t.manualFilters, Q = t.defaultCanFilter, re = Q !== void 0 && Q, me = t.disableFilters, fe = t.state.filters, he = t.dispatch, ne = t.autoResetFilters, ue = ne === void 0 || ne, we = i.useCallback(function(Fe, Je) {
3609
3612
  he({ type: h.setFilter, columnId: Fe, filterValue: Je });
3610
3613
  }, [he]), De = i.useCallback(function(Fe) {
3611
3614
  he({ type: h.setAllFilters, filters: Fe });
@@ -3621,7 +3624,7 @@ function Ds() {
3621
3624
  Fe.filterValue = Rt && Rt.value;
3622
3625
  });
3623
3626
  var Le = i.useMemo(function() {
3624
- if (U || !fe.length) return [f, p, w];
3627
+ if (U || !fe.length) return [f, p, C];
3625
3628
  var Fe = [], Je = {};
3626
3629
  return [function gt($e, Ke) {
3627
3630
  Ke === void 0 && (Ke = 0);
@@ -3638,7 +3641,7 @@ function Ds() {
3638
3641
  Fe.push(tt), Je[tt.id] = tt, tt.subRows && (tt.subRows = tt.subRows && tt.subRows.length > 0 ? gt(tt.subRows, Ke + 1) : tt.subRows);
3639
3642
  }), Rt;
3640
3643
  }(f), Fe, Je];
3641
- }, [U, fe, f, p, w, _, R]), nt = Le[0], ke = Le[1], ge = Le[2];
3644
+ }, [U, fe, f, p, C, _, R]), nt = Le[0], ke = Le[1], ge = Le[2];
3642
3645
  i.useMemo(function() {
3643
3646
  _.filter(function(Fe) {
3644
3647
  return !fe.find(function(Je) {
@@ -3651,7 +3654,7 @@ function Ds() {
3651
3654
  var lt = b(ue);
3652
3655
  G(function() {
3653
3656
  lt() && he({ type: h.resetFilters });
3654
- }, [he, U ? null : o]), Object.assign(t, { preFilteredRows: f, preFilteredFlatRows: p, preFilteredRowsById: w, filteredRows: nt, filteredFlatRows: ke, filteredRowsById: ge, rows: nt, flatRows: ke, rowsById: ge, setFilter: we, setAllFilters: De });
3657
+ }, [he, U ? null : o]), Object.assign(t, { preFilteredRows: f, preFilteredFlatRows: p, preFilteredRowsById: C, filteredRows: nt, filteredFlatRows: ke, filteredRowsById: ge, rows: nt, flatRows: ke, rowsById: ge, setFilter: we, setAllFilters: De });
3655
3658
  }
3656
3659
  Jt.pluginName = "useFilters", h.resetGlobalFilter = "resetGlobalFilter", h.setGlobalFilter = "setGlobalFilter";
3657
3660
  var xe = function(t) {
@@ -3660,15 +3663,15 @@ function Ds() {
3660
3663
  function wt(t, o, f, p) {
3661
3664
  if (o.type === h.resetGlobalFilter) return a({}, t, { globalFilter: p.initialState.globalFilter || void 0 });
3662
3665
  if (o.type === h.setGlobalFilter) {
3663
- var w = o.filterValue, _ = p.userFilterTypes, R = ce(p.globalFilter, _ || {}, Ut), U = I(w, t.globalFilter);
3666
+ var C = o.filterValue, _ = p.userFilterTypes, R = ce(p.globalFilter, _ || {}, Ut), U = I(C, t.globalFilter);
3664
3667
  return Re(R.autoRemove, U) ? (t.globalFilter, A(t, ["globalFilter"])) : a({}, t, { globalFilter: U });
3665
3668
  }
3666
3669
  }
3667
3670
  function Zt(t) {
3668
- var o = t.data, f = t.rows, p = t.flatRows, w = t.rowsById, _ = t.allColumns, R = t.filterTypes, U = t.globalFilter, Q = t.manualGlobalFilter, re = t.state.globalFilter, me = t.dispatch, fe = t.autoResetGlobalFilter, he = fe === void 0 || fe, ne = t.disableGlobalFilter, ue = i.useCallback(function(ge) {
3671
+ var o = t.data, f = t.rows, p = t.flatRows, C = t.rowsById, _ = t.allColumns, R = t.filterTypes, U = t.globalFilter, Q = t.manualGlobalFilter, re = t.state.globalFilter, me = t.dispatch, fe = t.autoResetGlobalFilter, he = fe === void 0 || fe, ne = t.disableGlobalFilter, ue = i.useCallback(function(ge) {
3669
3672
  me({ type: h.setGlobalFilter, filterValue: ge });
3670
3673
  }, [me]), we = i.useMemo(function() {
3671
- if (Q || re === void 0) return [f, p, w];
3674
+ if (Q || re === void 0) return [f, p, C];
3672
3675
  var ge = [], lt = {}, Fe = ce(U, R || {}, Ut);
3673
3676
  if (!Fe) return console.warn("Could not find a valid 'globalFilter' option."), f;
3674
3677
  _.forEach(function(gt) {
@@ -3685,10 +3688,10 @@ function Ds() {
3685
3688
  ge.push(Ke), lt[Ke.id] = Ke, Ke.subRows = Ke.subRows && Ke.subRows.length ? gt(Ke.subRows) : Ke.subRows;
3686
3689
  }), $e;
3687
3690
  }(f), ge, lt];
3688
- }, [Q, re, U, R, _, f, p, w, ne]), De = we[0], Le = we[1], nt = we[2], ke = b(he);
3691
+ }, [Q, re, U, R, _, f, p, C, ne]), De = we[0], Le = we[1], nt = we[2], ke = b(he);
3689
3692
  G(function() {
3690
3693
  ke() && me({ type: h.resetGlobalFilter });
3691
- }, [me, Q ? null : o]), Object.assign(t, { preGlobalFilteredRows: f, preGlobalFilteredFlatRows: p, preGlobalFilteredRowsById: w, globalFilteredRows: De, globalFilteredFlatRows: Le, globalFilteredRowsById: nt, rows: De, flatRows: Le, rowsById: nt, setGlobalFilter: ue, disableGlobalFilter: ne });
3694
+ }, [me, Q ? null : o]), Object.assign(t, { preGlobalFilteredRows: f, preGlobalFilteredFlatRows: p, preGlobalFilteredRowsById: C, globalFilteredRows: De, globalFilteredFlatRows: Le, globalFilteredRowsById: nt, rows: De, flatRows: Le, rowsById: nt, setGlobalFilter: ue, disableGlobalFilter: ne });
3692
3695
  }
3693
3696
  function lr(t, o) {
3694
3697
  return o.reduce(function(f, p) {
@@ -3715,8 +3718,8 @@ function Ds() {
3715
3718
  return lr(0, t) / t.length;
3716
3719
  }, median: function(t) {
3717
3720
  if (!t.length) return null;
3718
- var o = Math.floor(t.length / 2), f = [].concat(t).sort(function(p, w) {
3719
- return p - w;
3721
+ var o = Math.floor(t.length / 2), f = [].concat(t).sort(function(p, C) {
3722
+ return p - C;
3720
3723
  });
3721
3724
  return t.length % 2 != 0 ? f[o] : (f[o - 1] + f[o]) / 2;
3722
3725
  }, unique: function(t) {
@@ -3745,9 +3748,9 @@ function Ds() {
3745
3748
  if (o.type === h.resetGroupBy) return a({}, t, { groupBy: p.initialState.groupBy || [] });
3746
3749
  if (o.type === h.setGroupBy) return a({}, t, { groupBy: o.value });
3747
3750
  if (o.type === h.toggleGroupBy) {
3748
- var w = o.columnId, _ = o.value, R = _ !== void 0 ? _ : !t.groupBy.includes(w);
3749
- return a({}, t, R ? { groupBy: [].concat(t.groupBy, [w]) } : { groupBy: t.groupBy.filter(function(U) {
3750
- return U !== w;
3751
+ var C = o.columnId, _ = o.value, R = _ !== void 0 ? _ : !t.groupBy.includes(C);
3752
+ return a({}, t, R ? { groupBy: [].concat(t.groupBy, [C]) } : { groupBy: t.groupBy.filter(function(U) {
3753
+ return U !== C;
3751
3754
  }) });
3752
3755
  }
3753
3756
  }
@@ -3756,16 +3759,16 @@ function Ds() {
3756
3759
  return t.find(function(R) {
3757
3760
  return R.id === _;
3758
3761
  });
3759
- }).filter(Boolean), w = t.filter(function(_) {
3762
+ }).filter(Boolean), C = t.filter(function(_) {
3760
3763
  return !f.includes(_.id);
3761
3764
  });
3762
- return (t = [].concat(p, w)).forEach(function(_) {
3765
+ return (t = [].concat(p, C)).forEach(function(_) {
3763
3766
  _.isGrouped = f.includes(_.id), _.groupedIndex = f.indexOf(_.id);
3764
3767
  }), t;
3765
3768
  }
3766
3769
  var Kl = {};
3767
3770
  function Xl(t) {
3768
- var o = t.data, f = t.rows, p = t.flatRows, w = t.rowsById, _ = t.allColumns, R = t.flatHeaders, U = t.groupByFn, Q = U === void 0 ? ml : U, re = t.manualGroupBy, me = t.aggregations, fe = me === void 0 ? Kl : me, he = t.plugins, ne = t.state.groupBy, ue = t.dispatch, we = t.autoResetGroupBy, De = we === void 0 || we, Le = t.disableGroupBy, nt = t.defaultCanGroupBy, ke = t.getHooks;
3771
+ var o = t.data, f = t.rows, p = t.flatRows, C = t.rowsById, _ = t.allColumns, R = t.flatHeaders, U = t.groupByFn, Q = U === void 0 ? ml : U, re = t.manualGroupBy, me = t.aggregations, fe = me === void 0 ? Kl : me, he = t.plugins, ne = t.state.groupBy, ue = t.dispatch, we = t.autoResetGroupBy, De = we === void 0 || we, Le = t.disableGroupBy, nt = t.defaultCanGroupBy, ke = t.getHooks;
3769
3772
  P(he, ["useColumnOrder", "useFilters"], "useGroupBy");
3770
3773
  var ge = b(t);
3771
3774
  _.forEach(function(c) {
@@ -3783,7 +3786,7 @@ function Ds() {
3783
3786
  c.getGroupByToggleProps = W(ke().getGroupByToggleProps, { instance: ge(), header: c });
3784
3787
  });
3785
3788
  var Je = i.useMemo(function() {
3786
- if (re || !ne.length) return [f, p, w, dr, Hr, p, w];
3789
+ if (re || !ne.length) return [f, p, C, dr, Hr, p, C];
3787
3790
  var c = ne.filter(function(le) {
3788
3791
  return _.find(function(ye) {
3789
3792
  return ye.id === le;
@@ -3828,10 +3831,10 @@ function Ds() {
3828
3831
  return Z.forEach(function(le) {
3829
3832
  s.push(le), x[le.id] = le, le.isGrouped ? (y.push(le), m[le.id] = le) : (j.push(le), M[le.id] = le);
3830
3833
  }), [Z, s, x, y, m, j, M];
3831
- }, [re, ne, f, p, w, _, fe, Q]), gt = Je[0], $e = Je[1], Ke = Je[2], Rt = Je[3], tt = Je[4], bt = Je[5], r = Je[6], l = b(De);
3834
+ }, [re, ne, f, p, C, _, fe, Q]), gt = Je[0], $e = Je[1], Ke = Je[2], Rt = Je[3], tt = Je[4], bt = Je[5], r = Je[6], l = b(De);
3832
3835
  G(function() {
3833
3836
  l() && ue({ type: h.resetGroupBy });
3834
- }, [ue, re ? null : o]), Object.assign(t, { preGroupedRows: f, preGroupedFlatRow: p, preGroupedRowsById: w, groupedRows: gt, groupedFlatRows: $e, groupedRowsById: Ke, onlyGroupedFlatRows: Rt, onlyGroupedRowsById: tt, nonGroupedFlatRows: bt, nonGroupedRowsById: r, rows: gt, flatRows: $e, rowsById: Ke, toggleGroupBy: lt, setGroupBy: Fe });
3837
+ }, [ue, re ? null : o]), Object.assign(t, { preGroupedRows: f, preGroupedFlatRow: p, preGroupedRowsById: C, groupedRows: gt, groupedFlatRows: $e, groupedRowsById: Ke, onlyGroupedFlatRows: Rt, onlyGroupedRowsById: tt, nonGroupedFlatRows: bt, nonGroupedRowsById: r, rows: gt, flatRows: $e, rowsById: Ke, toggleGroupBy: lt, setGroupBy: Fe });
3835
3838
  }
3836
3839
  function pl(t) {
3837
3840
  t.allCells.forEach(function(o) {
@@ -3840,7 +3843,7 @@ function Ds() {
3840
3843
  });
3841
3844
  }
3842
3845
  function ml(t, o) {
3843
- return t.reduce(function(f, p, w) {
3846
+ return t.reduce(function(f, p, C) {
3844
3847
  var _ = "" + p.values[o];
3845
3848
  return f[_] = Array.isArray(f[_]) ? f[_] : [], f[_].push(p), f;
3846
3849
  }, {});
@@ -3856,9 +3859,9 @@ function Ds() {
3856
3859
  return typeof t == "number" ? isNaN(t) || t === 1 / 0 || t === -1 / 0 ? "" : String(t) : typeof t == "string" ? t : "";
3857
3860
  }
3858
3861
  var Jl = Object.freeze({ __proto__: null, alphanumeric: function(t, o, f) {
3859
- var p = Br(t, o, f), w = p[0], _ = p[1];
3860
- for (w = xl(w), _ = xl(_), w = w.split(gl).filter(Boolean), _ = _.split(gl).filter(Boolean); w.length && _.length; ) {
3861
- var R = w.shift(), U = _.shift(), Q = parseInt(R, 10), re = parseInt(U, 10), me = [Q, re].sort();
3862
+ var p = Br(t, o, f), C = p[0], _ = p[1];
3863
+ for (C = xl(C), _ = xl(_), C = C.split(gl).filter(Boolean), _ = _.split(gl).filter(Boolean); C.length && _.length; ) {
3864
+ var R = C.shift(), U = _.shift(), Q = parseInt(R, 10), re = parseInt(U, 10), me = [Q, re].sort();
3862
3865
  if (isNaN(me[0])) {
3863
3866
  if (R > U) return 1;
3864
3867
  if (U > R) return -1;
@@ -3868,26 +3871,26 @@ function Ds() {
3868
3871
  if (re > Q) return -1;
3869
3872
  }
3870
3873
  }
3871
- return w.length - _.length;
3874
+ return C.length - _.length;
3872
3875
  }, datetime: function(t, o, f) {
3873
- var p = Br(t, o, f), w = p[0], _ = p[1];
3874
- return Lr(w = w.getTime(), _ = _.getTime());
3876
+ var p = Br(t, o, f), C = p[0], _ = p[1];
3877
+ return Lr(C = C.getTime(), _ = _.getTime());
3875
3878
  }, basic: function(t, o, f) {
3876
3879
  var p = Br(t, o, f);
3877
3880
  return Lr(p[0], p[1]);
3878
3881
  }, string: function(t, o, f) {
3879
- var p = Br(t, o, f), w = p[0], _ = p[1];
3880
- for (w = w.split("").filter(Boolean), _ = _.split("").filter(Boolean); w.length && _.length; ) {
3881
- var R = w.shift(), U = _.shift(), Q = R.toLowerCase(), re = U.toLowerCase();
3882
+ var p = Br(t, o, f), C = p[0], _ = p[1];
3883
+ for (C = C.split("").filter(Boolean), _ = _.split("").filter(Boolean); C.length && _.length; ) {
3884
+ var R = C.shift(), U = _.shift(), Q = R.toLowerCase(), re = U.toLowerCase();
3882
3885
  if (Q > re) return 1;
3883
3886
  if (re > Q) return -1;
3884
3887
  if (R > U) return 1;
3885
3888
  if (U > R) return -1;
3886
3889
  }
3887
- return w.length - _.length;
3890
+ return C.length - _.length;
3888
3891
  }, number: function(t, o, f) {
3889
- var p = Br(t, o, f), w = p[0], _ = p[1], R = /[^0-9.]/gi;
3890
- return Lr(w = Number(String(w).replace(R, "")), _ = Number(String(_).replace(R, "")));
3892
+ var p = Br(t, o, f), C = p[0], _ = p[1], R = /[^0-9.]/gi;
3893
+ return Lr(C = Number(String(C).replace(R, "")), _ = Number(String(_).replace(R, "")));
3891
3894
  } });
3892
3895
  h.resetSortBy = "resetSortBy", h.setSortBy = "setSortBy", h.toggleSortBy = "toggleSortBy", h.clearSortBy = "clearSortBy", L.sortType = "alphanumeric", L.sortDescFirst = !1;
3893
3896
  var vl = function(t) {
@@ -3895,9 +3898,9 @@ function Ds() {
3895
3898
  };
3896
3899
  vl.pluginName = "useSortBy";
3897
3900
  var Ql = function(t, o) {
3898
- var f = o.instance, p = o.column, w = f.isMultiSortEvent, _ = w === void 0 ? function(R) {
3901
+ var f = o.instance, p = o.column, C = f.isMultiSortEvent, _ = C === void 0 ? function(R) {
3899
3902
  return R.shiftKey;
3900
- } : w;
3903
+ } : C;
3901
3904
  return [t, { onClick: p.canSort ? function(R) {
3902
3905
  R.persist(), p.toggleSortBy(void 0, !f.disableMultiSort && _(R));
3903
3906
  } : void 0, style: { cursor: p.canSort ? "pointer" : void 0 }, title: p.canSort ? "Toggle SortBy" : void 0 }];
@@ -3910,22 +3913,22 @@ function Ds() {
3910
3913
  }) });
3911
3914
  if (o.type === h.setSortBy) return a({}, t, { sortBy: o.sortBy });
3912
3915
  if (o.type === h.toggleSortBy) {
3913
- var w, _ = o.columnId, R = o.desc, U = o.multi, Q = p.allColumns, re = p.disableMultiSort, me = p.disableSortRemove, fe = p.disableMultiRemove, he = p.maxMultiSortColCount, ne = he === void 0 ? Number.MAX_SAFE_INTEGER : he, ue = t.sortBy, we = Q.find(function(ge) {
3916
+ var C, _ = o.columnId, R = o.desc, U = o.multi, Q = p.allColumns, re = p.disableMultiSort, me = p.disableSortRemove, fe = p.disableMultiRemove, he = p.maxMultiSortColCount, ne = he === void 0 ? Number.MAX_SAFE_INTEGER : he, ue = t.sortBy, we = Q.find(function(ge) {
3914
3917
  return ge.id === _;
3915
3918
  }).sortDescFirst, De = ue.find(function(ge) {
3916
3919
  return ge.id === _;
3917
3920
  }), Le = ue.findIndex(function(ge) {
3918
3921
  return ge.id === _;
3919
3922
  }), nt = R != null, ke = [];
3920
- return (w = !re && U ? De ? "toggle" : "add" : Le !== ue.length - 1 || ue.length !== 1 ? "replace" : De ? "toggle" : "replace") != "toggle" || me || nt || U && fe || !(De && De.desc && !we || !De.desc && we) || (w = "remove"), w === "replace" ? ke = [{ id: _, desc: nt ? R : we }] : w === "add" ? (ke = [].concat(ue, [{ id: _, desc: nt ? R : we }])).splice(0, ke.length - ne) : w === "toggle" ? ke = ue.map(function(ge) {
3923
+ return (C = !re && U ? De ? "toggle" : "add" : Le !== ue.length - 1 || ue.length !== 1 ? "replace" : De ? "toggle" : "replace") != "toggle" || me || nt || U && fe || !(De && De.desc && !we || !De.desc && we) || (C = "remove"), C === "replace" ? ke = [{ id: _, desc: nt ? R : we }] : C === "add" ? (ke = [].concat(ue, [{ id: _, desc: nt ? R : we }])).splice(0, ke.length - ne) : C === "toggle" ? ke = ue.map(function(ge) {
3921
3924
  return ge.id === _ ? a({}, ge, { desc: nt ? R : !De.desc }) : ge;
3922
- }) : w === "remove" && (ke = ue.filter(function(ge) {
3925
+ }) : C === "remove" && (ke = ue.filter(function(ge) {
3923
3926
  return ge.id !== _;
3924
3927
  })), a({}, t, { sortBy: ke });
3925
3928
  }
3926
3929
  }
3927
3930
  function ta(t) {
3928
- var o = t.data, f = t.rows, p = t.flatRows, w = t.allColumns, _ = t.orderByFn, R = _ === void 0 ? _l : _, U = t.sortTypes, Q = t.manualSortBy, re = t.defaultCanSort, me = t.disableSortBy, fe = t.flatHeaders, he = t.state.sortBy, ne = t.dispatch, ue = t.plugins, we = t.getHooks, De = t.autoResetSortBy, Le = De === void 0 || De;
3931
+ var o = t.data, f = t.rows, p = t.flatRows, C = t.allColumns, _ = t.orderByFn, R = _ === void 0 ? _l : _, U = t.sortTypes, Q = t.manualSortBy, re = t.defaultCanSort, me = t.disableSortBy, fe = t.flatHeaders, he = t.state.sortBy, ne = t.dispatch, ue = t.plugins, we = t.getHooks, De = t.autoResetSortBy, Le = De === void 0 || De;
3929
3932
  P(ue, ["useFilters", "useGlobalFilter", "useGroupBy", "usePivotColumns"], "useSortBy");
3930
3933
  var nt = i.useCallback(function($e) {
3931
3934
  ne({ type: h.setSortBy, sortBy: $e });
@@ -3949,13 +3952,13 @@ function Ds() {
3949
3952
  var lt = i.useMemo(function() {
3950
3953
  if (Q || !he.length) return [f, p];
3951
3954
  var $e = [], Ke = he.filter(function(Rt) {
3952
- return w.find(function(tt) {
3955
+ return C.find(function(tt) {
3953
3956
  return tt.id === Rt.id;
3954
3957
  });
3955
3958
  });
3956
3959
  return [function Rt(tt) {
3957
3960
  var bt = R(tt, Ke.map(function(r) {
3958
- var l = w.find(function(x) {
3961
+ var l = C.find(function(x) {
3959
3962
  return x.id === r.id;
3960
3963
  });
3961
3964
  if (!l) throw new Error("React-Table: Could not find a column with id: " + r.id + " while sorting");
@@ -3965,7 +3968,7 @@ function Ds() {
3965
3968
  return s(x, y, r.id, r.desc);
3966
3969
  };
3967
3970
  }), Ke.map(function(r) {
3968
- var l = w.find(function(c) {
3971
+ var l = C.find(function(c) {
3969
3972
  return c.id === r.id;
3970
3973
  });
3971
3974
  return l && l.sortInverted ? r.desc : !r.desc;
@@ -3974,18 +3977,18 @@ function Ds() {
3974
3977
  $e.push(r), r.subRows && r.subRows.length !== 0 && (r.subRows = Rt(r.subRows));
3975
3978
  }), bt;
3976
3979
  }(f), $e];
3977
- }, [Q, he, f, p, w, R, U]), Fe = lt[0], Je = lt[1], gt = b(Le);
3980
+ }, [Q, he, f, p, C, R, U]), Fe = lt[0], Je = lt[1], gt = b(Le);
3978
3981
  G(function() {
3979
3982
  gt() && ne({ type: h.resetSortBy });
3980
3983
  }, [Q ? null : o]), Object.assign(t, { preSortedRows: f, preSortedFlatRows: p, sortedRows: Fe, sortedFlatRows: Je, rows: Fe, flatRows: Je, setSortBy: nt, toggleSortBy: ke });
3981
3984
  }
3982
3985
  function _l(t, o, f) {
3983
- return [].concat(t).sort(function(p, w) {
3986
+ return [].concat(t).sort(function(p, C) {
3984
3987
  for (var _ = 0; _ < o.length; _ += 1) {
3985
- var R = o[_], U = f[_] === !1 || f[_] === "desc", Q = R(p, w);
3988
+ var R = o[_], U = f[_] === !1 || f[_] === "desc", Q = R(p, C);
3986
3989
  if (Q !== 0) return U ? -Q : Q;
3987
3990
  }
3988
- return f[0] ? p.index - w.index : w.index - p.index;
3991
+ return f[0] ? p.index - C.index : C.index - p.index;
3989
3992
  });
3990
3993
  }
3991
3994
  h.resetPage = "resetPage", h.gotoPage = "gotoPage", h.setPageSize = "setPageSize";
@@ -3996,8 +3999,8 @@ function Ds() {
3996
3999
  if (o.type === h.init) return a({ pageSize: 10, pageIndex: 0 }, t);
3997
4000
  if (o.type === h.resetPage) return a({}, t, { pageIndex: p.initialState.pageIndex || 0 });
3998
4001
  if (o.type === h.gotoPage) {
3999
- var w = p.pageCount, _ = p.page, R = I(o.pageIndex, t.pageIndex), U = !1;
4000
- return R > t.pageIndex ? U = w === -1 ? _.length >= t.pageSize : R < w : R < t.pageIndex && (U = R > -1), U ? a({}, t, { pageIndex: R }) : t;
4002
+ var C = p.pageCount, _ = p.page, R = I(o.pageIndex, t.pageIndex), U = !1;
4003
+ return R > t.pageIndex ? U = C === -1 ? _.length >= t.pageSize : R < C : R < t.pageIndex && (U = R > -1), U ? a({}, t, { pageIndex: R }) : t;
4001
4004
  }
4002
4005
  if (o.type === h.setPageSize) {
4003
4006
  var Q = o.pageSize, re = t.pageSize * t.pageIndex;
@@ -4005,7 +4008,7 @@ function Ds() {
4005
4008
  }
4006
4009
  }
4007
4010
  function la(t) {
4008
- var o = t.rows, f = t.autoResetPage, p = f === void 0 || f, w = t.manualExpandedKey, _ = w === void 0 ? "expanded" : w, R = t.plugins, U = t.pageCount, Q = t.paginateExpandedRows, re = Q === void 0 || Q, me = t.expandSubRows, fe = me === void 0 || me, he = t.state, ne = he.pageSize, ue = he.pageIndex, we = he.expanded, De = he.globalFilter, Le = he.filters, nt = he.groupBy, ke = he.sortBy, ge = t.dispatch, lt = t.data, Fe = t.manualPagination;
4011
+ var o = t.rows, f = t.autoResetPage, p = f === void 0 || f, C = t.manualExpandedKey, _ = C === void 0 ? "expanded" : C, R = t.plugins, U = t.pageCount, Q = t.paginateExpandedRows, re = Q === void 0 || Q, me = t.expandSubRows, fe = me === void 0 || me, he = t.state, ne = he.pageSize, ue = he.pageIndex, we = he.expanded, De = he.globalFilter, Le = he.filters, nt = he.groupBy, ke = he.sortBy, ge = t.dispatch, lt = t.data, Fe = t.manualPagination;
4009
4012
  P(R, ["useGlobalFilter", "useFilters", "useGroupBy", "useSortBy", "useExpanded"], "usePagination");
4010
4013
  var Je = b(p);
4011
4014
  G(function() {
@@ -4053,9 +4056,9 @@ function Ds() {
4053
4056
  if (o.type === h.init) return a({ pivotColumns: yl }, t);
4054
4057
  if (o.type === h.resetPivot) return a({}, t, { pivotColumns: p.initialState.pivotColumns || yl });
4055
4058
  if (o.type === h.togglePivot) {
4056
- var w = o.columnId, _ = o.value, R = _ !== void 0 ? _ : !t.pivotColumns.includes(w);
4057
- return a({}, t, R ? { pivotColumns: [].concat(t.pivotColumns, [w]) } : { pivotColumns: t.pivotColumns.filter(function(U) {
4058
- return U !== w;
4059
+ var C = o.columnId, _ = o.value, R = _ !== void 0 ? _ : !t.pivotColumns.includes(C);
4060
+ return a({}, t, R ? { pivotColumns: [].concat(t.pivotColumns, [C]) } : { pivotColumns: t.pivotColumns.filter(function(U) {
4061
+ return U !== C;
4059
4062
  }) });
4060
4063
  }
4061
4064
  }
@@ -4075,14 +4078,14 @@ function Ds() {
4075
4078
  return f.uniqueValues && t !== void 0 && f.uniqueValues.add(t), t;
4076
4079
  }
4077
4080
  function bl(t, o) {
4078
- var f = o.instance, p = f.allColumns, w = f.state;
4079
- if (!w.pivotColumns.length || !w.groupBy || !w.groupBy.length) return t;
4080
- var _ = w.pivotColumns.map(function(Q) {
4081
+ var f = o.instance, p = f.allColumns, C = f.state;
4082
+ if (!C.pivotColumns.length || !C.groupBy || !C.groupBy.length) return t;
4083
+ var _ = C.pivotColumns.map(function(Q) {
4081
4084
  return p.find(function(re) {
4082
4085
  return re.id === Q;
4083
4086
  });
4084
4087
  }).filter(Boolean), R = p.filter(function(Q) {
4085
- return !Q.isPivotSource && !w.groupBy.includes(Q.id) && !w.pivotColumns.includes(Q.id);
4088
+ return !Q.isPivotSource && !C.groupBy.includes(Q.id) && !C.pivotColumns.includes(Q.id);
4086
4089
  }), U = F(function Q(re, me, fe) {
4087
4090
  re === void 0 && (re = 0), fe === void 0 && (fe = []);
4088
4091
  var he = _[re];
@@ -4102,8 +4105,8 @@ function Ds() {
4102
4105
  return [].concat(t, U);
4103
4106
  }
4104
4107
  function wl(t, o) {
4105
- var f = o.instance.state, p = f.pivotColumns, w = f.groupBy;
4106
- return [].concat(t, [p, w]);
4108
+ var f = o.instance.state, p = f.pivotColumns, C = f.groupBy;
4109
+ return [].concat(t, [p, C]);
4107
4110
  }
4108
4111
  function ca(t, o) {
4109
4112
  var f = o.instance.state;
@@ -4118,7 +4121,7 @@ function Ds() {
4118
4121
  return [].concat(t, [f.state.pivotColumns, f.state.groupBy]);
4119
4122
  }
4120
4123
  function ua(t) {
4121
- var o = t.columns, f = t.allColumns, p = t.flatHeaders, w = t.getHooks, _ = t.plugins, R = t.dispatch, U = t.autoResetPivot, Q = U === void 0 || U, re = t.manaulPivot, me = t.disablePivot, fe = t.defaultCanPivot;
4124
+ var o = t.columns, f = t.allColumns, p = t.flatHeaders, C = t.getHooks, _ = t.plugins, R = t.dispatch, U = t.autoResetPivot, Q = U === void 0 || U, re = t.manaulPivot, me = t.disablePivot, fe = t.defaultCanPivot;
4122
4125
  P(_, ["useGroupBy"], "usePivotColumns");
4123
4126
  var he = b(t);
4124
4127
  f.forEach(function(ue) {
@@ -4127,7 +4130,7 @@ function Ds() {
4127
4130
  return t.togglePivot(ue.id);
4128
4131
  }), ue.Aggregated = ue.Aggregated || ue.Cell;
4129
4132
  }), p.forEach(function(ue) {
4130
- ue.getPivotToggleProps = W(w().getPivotToggleProps, { instance: he(), header: ue });
4133
+ ue.getPivotToggleProps = W(C().getPivotToggleProps, { instance: he(), header: ue });
4131
4134
  });
4132
4135
  var ne = b(Q);
4133
4136
  G(function() {
@@ -4147,7 +4150,7 @@ function Ds() {
4147
4150
  };
4148
4151
  Cl.pluginName = "useRowSelect";
4149
4152
  var $r = function(t, o) {
4150
- var f = o.instance, p = o.row, w = f.manualRowSelectedKey, _ = w === void 0 ? "isSelected" : w;
4153
+ var f = o.instance, p = o.row, C = f.manualRowSelectedKey, _ = C === void 0 ? "isSelected" : C;
4151
4154
  return [t, { onChange: function(R) {
4152
4155
  p.toggleRowSelected(R.target.checked);
4153
4156
  }, style: { cursor: "pointer" }, checked: !(!p.original || !p.original[_]) || p.isSelected, title: "Toggle Row Selected", indeterminate: p.isSomeSelected }];
@@ -4161,15 +4164,15 @@ function Ds() {
4161
4164
  return [t, { onChange: function(p) {
4162
4165
  f.toggleAllPageRowsSelected(p.target.checked);
4163
4166
  }, style: { cursor: "pointer" }, checked: f.isAllPageRowsSelected, title: "Toggle All Current Page Rows Selected", indeterminate: !!(!f.isAllPageRowsSelected && f.page.some(function(p) {
4164
- var w = p.id;
4165
- return f.state.selectedRowIds[w];
4167
+ var C = p.id;
4168
+ return f.state.selectedRowIds[C];
4166
4169
  })) }];
4167
4170
  };
4168
4171
  function ha(t, o, f, p) {
4169
4172
  if (o.type === h.init) return a({ selectedRowIds: {} }, t);
4170
4173
  if (o.type === h.resetSelectedRows) return a({}, t, { selectedRowIds: p.initialState.selectedRowIds || {} });
4171
4174
  if (o.type === h.toggleAllRowsSelected) {
4172
- var w = o.value, _ = p.isAllRowsSelected, R = p.rowsById, U = p.nonGroupedRowsById, Q = U === void 0 ? R : U, re = w !== void 0 ? w : !_, me = Object.assign({}, t.selectedRowIds);
4175
+ var C = o.value, _ = p.isAllRowsSelected, R = p.rowsById, U = p.nonGroupedRowsById, Q = U === void 0 ? R : U, re = C !== void 0 ? C : !_, me = Object.assign({}, t.selectedRowIds);
4173
4176
  return re ? Object.keys(Q).forEach(function(bt) {
4174
4177
  me[bt] = !0;
4175
4178
  }) : Object.keys(Q).forEach(function(bt) {
@@ -4201,8 +4204,8 @@ function Ds() {
4201
4204
  return t;
4202
4205
  }
4203
4206
  function jl(t) {
4204
- var o = t.data, f = t.rows, p = t.getHooks, w = t.plugins, _ = t.rowsById, R = t.nonGroupedRowsById, U = R === void 0 ? _ : R, Q = t.autoResetSelectedRows, re = Q === void 0 || Q, me = t.state.selectedRowIds, fe = t.selectSubRows, he = fe === void 0 || fe, ne = t.dispatch, ue = t.page, we = t.getSubRows;
4205
- P(w, ["useFilters", "useGroupBy", "useSortBy", "useExpanded", "usePagination"], "useRowSelect");
4207
+ var o = t.data, f = t.rows, p = t.getHooks, C = t.plugins, _ = t.rowsById, R = t.nonGroupedRowsById, U = R === void 0 ? _ : R, Q = t.autoResetSelectedRows, re = Q === void 0 || Q, me = t.state.selectedRowIds, fe = t.selectSubRows, he = fe === void 0 || fe, ne = t.dispatch, ue = t.page, we = t.getSubRows;
4208
+ P(C, ["useFilters", "useGroupBy", "useSortBy", "useExpanded", "usePagination"], "useRowSelect");
4206
4209
  var De = i.useMemo(function() {
4207
4210
  var Ke = [];
4208
4211
  return f.forEach(function(Rt) {
@@ -4255,7 +4258,7 @@ function Ds() {
4255
4258
  t.stateReducers.push(ma), t.useInstance.push(Nl), t.prepareRow.push(ga);
4256
4259
  };
4257
4260
  function ma(t, o, f, p) {
4258
- var w = p.initialRowStateAccessor, _ = w === void 0 ? Pl : w, R = p.initialCellStateAccessor, U = R === void 0 ? Sl : R, Q = p.rowsById;
4261
+ var C = p.initialRowStateAccessor, _ = C === void 0 ? Pl : C, R = p.initialCellStateAccessor, U = R === void 0 ? Sl : R, Q = p.rowsById;
4259
4262
  if (o.type === h.init) return a({ rowState: {} }, t);
4260
4263
  if (o.type === h.resetRowState) return a({}, t, { rowState: p.initialState.rowState || {} });
4261
4264
  if (o.type === h.setRowState) {
@@ -4270,18 +4273,18 @@ function Ds() {
4270
4273
  }
4271
4274
  }
4272
4275
  function Nl(t) {
4273
- var o = t.autoResetRowState, f = o === void 0 || o, p = t.data, w = t.dispatch, _ = i.useCallback(function(Q, re) {
4274
- return w({ type: h.setRowState, rowId: Q, value: re });
4275
- }, [w]), R = i.useCallback(function(Q, re, me) {
4276
- return w({ type: h.setCellState, rowId: Q, columnId: re, value: me });
4277
- }, [w]), U = b(f);
4276
+ var o = t.autoResetRowState, f = o === void 0 || o, p = t.data, C = t.dispatch, _ = i.useCallback(function(Q, re) {
4277
+ return C({ type: h.setRowState, rowId: Q, value: re });
4278
+ }, [C]), R = i.useCallback(function(Q, re, me) {
4279
+ return C({ type: h.setCellState, rowId: Q, columnId: re, value: me });
4280
+ }, [C]), U = b(f);
4278
4281
  G(function() {
4279
- U() && w({ type: h.resetRowState });
4282
+ U() && C({ type: h.resetRowState });
4280
4283
  }, [p]), Object.assign(t, { setRowState: _, setCellState: R });
4281
4284
  }
4282
4285
  function ga(t, o) {
4283
- var f = o.instance, p = f.initialRowStateAccessor, w = p === void 0 ? Pl : p, _ = f.initialCellStateAccessor, R = _ === void 0 ? Sl : _, U = f.state.rowState;
4284
- t && (t.state = U[t.id] !== void 0 ? U[t.id] : w(t), t.setState = function(Q) {
4286
+ var f = o.instance, p = f.initialRowStateAccessor, C = p === void 0 ? Pl : p, _ = f.initialCellStateAccessor, R = _ === void 0 ? Sl : _, U = f.state.rowState;
4287
+ t && (t.state = U[t.id] !== void 0 ? U[t.id] : C(t), t.setState = function(Q) {
4285
4288
  return f.setRowState(t.id, Q);
4286
4289
  }, t.cells.forEach(function(Q) {
4287
4290
  t.state.cellState || (t.state.cellState = {}), Q.state = t.state.cellState[Q.column.id] !== void 0 ? t.state.cellState[Q.column.id] : R(Q), Q.setState = function(re) {
@@ -4302,13 +4305,13 @@ function Ds() {
4302
4305
  function Tl(t, o) {
4303
4306
  var f = o.instance.state.columnOrder;
4304
4307
  if (!f || !f.length) return t;
4305
- for (var p = [].concat(f), w = [].concat(t), _ = [], R = function() {
4306
- var U = p.shift(), Q = w.findIndex(function(re) {
4308
+ for (var p = [].concat(f), C = [].concat(t), _ = [], R = function() {
4309
+ var U = p.shift(), Q = C.findIndex(function(re) {
4307
4310
  return re.id === U;
4308
4311
  });
4309
- Q > -1 && _.push(w.splice(Q, 1)[0]);
4310
- }; w.length && p.length; ) R();
4311
- return [].concat(_, w);
4312
+ Q > -1 && _.push(C.splice(Q, 1)[0]);
4313
+ }; C.length && p.length; ) R();
4314
+ return [].concat(_, C);
4312
4315
  }
4313
4316
  function xa(t) {
4314
4317
  var o = t.dispatch;
@@ -4320,7 +4323,7 @@ function Ds() {
4320
4323
  var Il = function(t) {
4321
4324
  t.getResizerProps = [va], t.getHeaderProps.push({ style: { position: "relative" } }), t.stateReducers.push(_a), t.useInstance.push(ba), t.useInstanceBeforeDimensions.push(ya);
4322
4325
  }, va = function(t, o) {
4323
- var f = o.instance, p = o.header, w = f.dispatch, _ = function(R, U) {
4326
+ var f = o.instance, p = o.header, C = f.dispatch, _ = function(R, U) {
4324
4327
  var Q = !1;
4325
4328
  if (R.type === "touchstart") {
4326
4329
  if (R.touches && R.touches.length > 1) return;
@@ -4334,9 +4337,9 @@ function Ds() {
4334
4337
  }(U).map(function(ke) {
4335
4338
  return [ke.id, ke.totalWidth];
4336
4339
  }), he = Q ? Math.round(R.touches[0].clientX) : R.clientX, ne = function() {
4337
- window.cancelAnimationFrame(re), re = null, w({ type: h.columnDoneResizing });
4340
+ window.cancelAnimationFrame(re), re = null, C({ type: h.columnDoneResizing });
4338
4341
  }, ue = function() {
4339
- window.cancelAnimationFrame(re), re = null, w({ type: h.columnResizing, clientX: me });
4342
+ window.cancelAnimationFrame(re), re = null, C({ type: h.columnResizing, clientX: me });
4340
4343
  }, we = function(ke) {
4341
4344
  me = ke, re || (re = window.requestAnimationFrame(ue));
4342
4345
  }, De = { mouse: { moveEvent: "mousemove", moveHandler: function(ke) {
@@ -4360,7 +4363,7 @@ function Ds() {
4360
4363
  }
4361
4364
  return ve = ke;
4362
4365
  }() && { passive: !1 };
4363
- document.addEventListener(Le.moveEvent, Le.moveHandler, nt), document.addEventListener(Le.upEvent, Le.upHandler, nt), w({ type: h.columnStartResizing, columnId: U.id, columnWidth: U.totalWidth, headerIdWidths: fe, clientX: he });
4366
+ document.addEventListener(Le.moveEvent, Le.moveHandler, nt), document.addEventListener(Le.upEvent, Le.upHandler, nt), C({ type: h.columnStartResizing, columnId: U.id, columnWidth: U.totalWidth, headerIdWidths: fe, clientX: he });
4364
4367
  };
4365
4368
  return [t, { onMouseDown: function(R) {
4366
4369
  return R.persist() || _(R, p);
@@ -4372,8 +4375,8 @@ function Ds() {
4372
4375
  if (o.type === h.init) return a({ columnResizing: { columnWidths: {} } }, t);
4373
4376
  if (o.type === h.resetResize) return a({}, t, { columnResizing: { columnWidths: {} } });
4374
4377
  if (o.type === h.columnStartResizing) {
4375
- var f = o.clientX, p = o.columnId, w = o.columnWidth, _ = o.headerIdWidths;
4376
- return a({}, t, { columnResizing: a({}, t.columnResizing, { startX: f, headerIdWidths: _, columnWidth: w, isResizingColumn: p }) });
4378
+ var f = o.clientX, p = o.columnId, C = o.columnWidth, _ = o.headerIdWidths;
4379
+ return a({}, t, { columnResizing: a({}, t.columnResizing, { startX: f, headerIdWidths: _, columnWidth: C, isResizingColumn: p }) });
4377
4380
  }
4378
4381
  if (o.type === h.columnResizing) {
4379
4382
  var R = o.clientX, U = t.columnResizing, Q = U.startX, re = U.columnWidth, me = U.headerIdWidths, fe = (R - Q) / re, he = {};
@@ -4386,16 +4389,16 @@ function Ds() {
4386
4389
  }
4387
4390
  Il.pluginName = "useResizeColumns";
4388
4391
  var ya = function(t) {
4389
- var o = t.flatHeaders, f = t.disableResizing, p = t.getHooks, w = t.state.columnResizing, _ = b(t);
4392
+ var o = t.flatHeaders, f = t.disableResizing, p = t.getHooks, C = t.state.columnResizing, _ = b(t);
4390
4393
  o.forEach(function(R) {
4391
4394
  var U = Se(R.disableResizing !== !0 && void 0, f !== !0 && void 0, !0);
4392
- R.canResize = U, R.width = w.columnWidths[R.id] || R.originalWidth || R.width, R.isResizing = w.isResizingColumn === R.id, U && (R.getResizerProps = W(p().getResizerProps, { instance: _(), header: R }));
4395
+ R.canResize = U, R.width = C.columnWidths[R.id] || R.originalWidth || R.width, R.isResizing = C.isResizingColumn === R.id, U && (R.getResizerProps = W(p().getResizerProps, { instance: _(), header: R }));
4393
4396
  });
4394
4397
  };
4395
4398
  function ba(t) {
4396
- var o = t.plugins, f = t.dispatch, p = t.autoResetResize, w = p === void 0 || p, _ = t.columns;
4399
+ var o = t.plugins, f = t.dispatch, p = t.autoResetResize, C = p === void 0 || p, _ = t.columns;
4397
4400
  P(o, ["useAbsoluteLayout"], "useResizeColumns");
4398
- var R = b(w);
4401
+ var R = b(C);
4399
4402
  G(function() {
4400
4403
  R() && f({ type: h.resetResize });
4401
4404
  }, [_]);
@@ -4458,8 +4461,8 @@ function Ds() {
4458
4461
  var Fl = function(t, o) {
4459
4462
  var f = o.instance;
4460
4463
  return [t, { style: { display: "grid", gridTemplateColumns: f.visibleColumns.map(function(p) {
4461
- var w;
4462
- return f.state.gridLayout.columnWidths[p.id] ? f.state.gridLayout.columnWidths[p.id] + "px" : (w = f.state.columnResizing) != null && w.isResizingColumn ? f.state.gridLayout.startWidths[p.id] + "px" : typeof p.width == "number" ? p.width + "px" : p.width;
4464
+ var C;
4465
+ return f.state.gridLayout.columnWidths[p.id] ? f.state.gridLayout.columnWidths[p.id] + "px" : (C = f.state.columnResizing) != null && C.isResizingColumn ? f.state.gridLayout.startWidths[p.id] + "px" : typeof p.width == "number" ? p.width + "px" : p.width;
4463
4466
  }).join(" ") } }];
4464
4467
  }, Ml = function(t, o) {
4465
4468
  var f = o.column;
@@ -4472,7 +4475,7 @@ function Ds() {
4472
4475
  if (o.type === h.init) return a({ gridLayout: { columnWidths: {} } }, t);
4473
4476
  if (o.type === h.resetResize) return a({}, t, { gridLayout: { columnWidths: {} } });
4474
4477
  if (o.type === h.columnStartResizing) {
4475
- var w = o.columnId, _ = o.headerIdWidths, R = el(w);
4478
+ var C = o.columnId, _ = o.headerIdWidths, R = el(C);
4476
4479
  if (R !== void 0) {
4477
4480
  var U = p.visibleColumns.reduce(function(ge, lt) {
4478
4481
  var Fe;
@@ -4506,9 +4509,9 @@ function Ds() {
4506
4509
  }
4507
4510
  d._UNSTABLE_usePivotColumns = qr, d.actions = h, d.defaultColumn = L, d.defaultGroupByFn = ml, d.defaultOrderByFn = _l, d.defaultRenderer = k, d.emptyRenderer = g, d.ensurePluginOrder = P, d.flexRender = X, d.functionalUpdate = I, d.loopHooks = D, d.makePropGetter = W, d.makeRenderer = J, d.reduceHooks = T, d.safeUseLayoutEffect = $, d.useAbsoluteLayout = Bl, d.useAsyncDebounce = function(t, o) {
4508
4511
  o === void 0 && (o = 0);
4509
- var f = i.useRef({}), p = b(t), w = b(o);
4512
+ var f = i.useRef({}), p = b(t), C = b(o);
4510
4513
  return i.useCallback(function() {
4511
- var _ = C(regeneratorRuntime.mark(function R() {
4514
+ var _ = w(regeneratorRuntime.mark(function R() {
4512
4515
  var U, Q, re, me = arguments;
4513
4516
  return regeneratorRuntime.wrap(function(fe) {
4514
4517
  for (; ; ) switch (fe.prev = fe.next) {
@@ -4516,7 +4519,7 @@ function Ds() {
4516
4519
  for (U = me.length, Q = new Array(U), re = 0; re < U; re++) Q[re] = me[re];
4517
4520
  return f.current.promise || (f.current.promise = new Promise(function(he, ne) {
4518
4521
  f.current.resolve = he, f.current.reject = ne;
4519
- })), f.current.timeout && clearTimeout(f.current.timeout), f.current.timeout = setTimeout(C(regeneratorRuntime.mark(function he() {
4522
+ })), f.current.timeout && clearTimeout(f.current.timeout), f.current.timeout = setTimeout(w(regeneratorRuntime.mark(function he() {
4520
4523
  return regeneratorRuntime.wrap(function(ne) {
4521
4524
  for (; ; ) switch (ne.prev = ne.next) {
4522
4525
  case 0:
@@ -4533,7 +4536,7 @@ function Ds() {
4533
4536
  return ne.stop();
4534
4537
  }
4535
4538
  }, he, null, [[1, 9, 12, 15]]);
4536
- })), w()), fe.abrupt("return", f.current.promise);
4539
+ })), C()), fe.abrupt("return", f.current.promise);
4537
4540
  case 5:
4538
4541
  case "end":
4539
4542
  return fe.stop();
@@ -4543,11 +4546,11 @@ function Ds() {
4543
4546
  return function() {
4544
4547
  return _.apply(this, arguments);
4545
4548
  };
4546
- }(), [p, w]);
4549
+ }(), [p, C]);
4547
4550
  }, d.useBlockLayout = Gl, d.useColumnOrder = Dl, d.useExpanded = nr, d.useFilters = Jt, d.useFlexLayout = Jr, d.useGetLatest = b, d.useGlobalFilter = xe, d.useGridLayout = El, d.useGroupBy = zr, d.useMountedLayoutEffect = G, d.usePagination = Yr, d.useResizeColumns = Il, d.useRowSelect = Cl, d.useRowState = Ur, d.useSortBy = vl, d.useTable = function(t) {
4548
4551
  for (var o = arguments.length, f = new Array(o > 1 ? o - 1 : 0), p = 1; p < o; p++) f[p - 1] = arguments[p];
4549
4552
  t = mt(t), f = [Bt].concat(f);
4550
- var w = i.useRef({}), _ = b(w.current);
4553
+ var C = i.useRef({}), _ = b(C.current);
4551
4554
  Object.assign(_(), a({}, t, { plugins: f, hooks: Nt() })), f.filter(Boolean).forEach(function(m) {
4552
4555
  m(_().hooks);
4553
4556
  });
@@ -4654,7 +4657,7 @@ function Ts() {
4654
4657
  }
4655
4658
  j.done ? l(M) : Promise.resolve(M).then(s, x);
4656
4659
  }
4657
- function C(r) {
4660
+ function w(r) {
4658
4661
  return function() {
4659
4662
  var l = this, c = arguments;
4660
4663
  return new Promise(function(s, x) {
@@ -4787,7 +4790,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
4787
4790
  var c = i.useRef({}), s = J(r), x = J(l);
4788
4791
  return i.useCallback(
4789
4792
  /* @__PURE__ */ function() {
4790
- var y = C(
4793
+ var y = w(
4791
4794
  /* @__PURE__ */ regeneratorRuntime.mark(function m() {
4792
4795
  var j, M, Z, le = arguments;
4793
4796
  return regeneratorRuntime.wrap(function(oe) {
@@ -4799,7 +4802,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
4799
4802
  return c.current.promise || (c.current.promise = new Promise(function(pe, be) {
4800
4803
  c.current.resolve = pe, c.current.reject = be;
4801
4804
  })), c.current.timeout && clearTimeout(c.current.timeout), c.current.timeout = setTimeout(
4802
- /* @__PURE__ */ C(
4805
+ /* @__PURE__ */ w(
4803
4806
  /* @__PURE__ */ regeneratorRuntime.mark(function pe() {
4804
4807
  return regeneratorRuntime.wrap(function(ie) {
4805
4808
  for (; ; )
@@ -6895,7 +6898,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
6895
6898
  l.stateReducers.push(p), l.visibleColumnsDeps.push(function(c, s) {
6896
6899
  var x = s.instance;
6897
6900
  return [].concat(c, [x.state.columnOrder]);
6898
- }), l.visibleColumns.push(w), l.useInstance.push(_);
6901
+ }), l.visibleColumns.push(C), l.useInstance.push(_);
6899
6902
  };
6900
6903
  f.pluginName = "useColumnOrder";
6901
6904
  function p(r, l, c, s) {
@@ -6912,7 +6915,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
6912
6915
  columnOrder: G(l.columnOrder, r.columnOrder)
6913
6916
  });
6914
6917
  }
6915
- function w(r, l) {
6918
+ function C(r, l) {
6916
6919
  var c = l.instance.state.columnOrder;
6917
6920
  if (!c || !c.length)
6918
6921
  return r;
@@ -7327,7 +7330,7 @@ const Bs = ({
7327
7330
  isDisabled: d = !1,
7328
7331
  currRowData: i = {},
7329
7332
  onlyDropdownItemsAllowed: v,
7330
- handleValueChange: C,
7333
+ handleValueChange: w,
7331
7334
  rowId: a = "",
7332
7335
  setTableData: A,
7333
7336
  handleRightSegment: S,
@@ -7400,7 +7403,7 @@ const Bs = ({
7400
7403
  className: `hfl-flex-1 focus-visible:hfl-outline-0 ${i?.original?.order_item_id ? "hfl-bg-Gray-50 hfl-caret-Gray-50" : ""}`,
7401
7404
  value: g,
7402
7405
  onChange: (X) => {
7403
- i?.original?.order_item_id || ($(X), C(X, "service_name", a));
7406
+ i?.original?.order_item_id || ($(X), w(X, "service_name", a));
7404
7407
  },
7405
7408
  onFocus: () => {
7406
7409
  i?.original?.order_item_id || (W(!0), D(u));
@@ -7451,7 +7454,7 @@ const Bs = ({
7451
7454
  patientIDs: d,
7452
7455
  serviceListArr: i,
7453
7456
  showToast: v,
7454
- billPreferences: C,
7457
+ billPreferences: w,
7455
7458
  formattedService: a,
7456
7459
  docPreference: A,
7457
7460
  // currentWindow,
@@ -7647,7 +7650,7 @@ const Bs = ({
7647
7650
  accessor: $ ? "order_item_discount_perc" : "order_item_discount",
7648
7651
  Cell: ({ row: te }) => {
7649
7652
  const ve = $ ? "order_item_discount_perc" : "order_item_discount";
7650
- return /* @__PURE__ */ e.jsx(e.Fragment, { children: C?.billing?.enable_order_discount == "1" ? /* @__PURE__ */ e.jsx(
7653
+ return /* @__PURE__ */ e.jsx(e.Fragment, { children: w?.billing?.enable_order_discount == "1" ? /* @__PURE__ */ e.jsx(
7651
7654
  "input",
7652
7655
  {
7653
7656
  type: "number",
@@ -7710,7 +7713,7 @@ const Bs = ({
7710
7713
  )
7711
7714
  }
7712
7715
  ],
7713
- [C, A, i?.service_list, $]
7716
+ [w, A, i?.service_list, $]
7714
7717
  ), ze = Kt(() => k ? L : G, [G, L]), { getTableProps: se, getTableBodyProps: Se, headerGroups: qe, rows: We, prepareRow: H } = dl.useTable({
7715
7718
  columns: V,
7716
7719
  data: ze
@@ -7801,7 +7804,7 @@ const Bs = ({
7801
7804
  summaryData: d,
7802
7805
  pastDueData: i,
7803
7806
  showDeposit: v = !1,
7804
- showPayment: C = !0,
7807
+ showPayment: w = !0,
7805
7808
  showDiscount: a = !0,
7806
7809
  showRefund: A = !0,
7807
7810
  showDepositRefund: S = !1,
@@ -7820,7 +7823,7 @@ const Bs = ({
7820
7823
  isDiscountPercentage: $ = !1
7821
7824
  } = n, G = () => {
7822
7825
  if (v) return "deposit";
7823
- if (C) return "payment";
7826
+ if (w) return "payment";
7824
7827
  if (a) return "discount";
7825
7828
  if (A) return "refund";
7826
7829
  if (S) return "deposit_refund";
@@ -7873,11 +7876,11 @@ const Bs = ({
7873
7876
  { key: "discount", label: "Discount" },
7874
7877
  { key: "refund", label: "Refund" },
7875
7878
  { key: "deposit_refund", label: "Refund" }
7876
- ].filter((z) => z.key === "payment" ? C : z.key === "discount" ? a : z.key === "refund" ? A : z.key === "deposit" ? v : z.key === "deposit_refund" ? S : !0), Ot = (z) => {
7879
+ ].filter((z) => z.key === "payment" ? w : z.key === "discount" ? a : z.key === "refund" ? A : z.key === "deposit" ? v : z.key === "deposit_refund" ? S : !0), Ot = (z) => {
7877
7880
  ze(z);
7878
7881
  }, Nt = (z) => {
7879
7882
  const O = (z === "payment" ? se.length : z === "discount" ? qe.length : H.length) + 1;
7880
- z === "payment" && C && se.length < 2 ? Se([
7883
+ z === "payment" && w && se.length < 2 ? Se([
7881
7884
  ...se,
7882
7885
  {
7883
7886
  id: O,
@@ -7984,7 +7987,7 @@ const Bs = ({
7984
7987
  ))
7985
7988
  }
7986
7989
  ),
7987
- (V === "payment" || V === "deposit") && (C || v) && /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-col hfl-gap-2 hfl-p-2", children: [
7990
+ (V === "payment" || V === "deposit") && (w || v) && /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-col hfl-gap-2 hfl-p-2", children: [
7988
7991
  se.map((z, O) => /* @__PURE__ */ e.jsxs("div", { children: [
7989
7992
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-items-flex hfl-inline-flex hfl-items-center hfl-justify-center hfl-gap-2", children: [
7990
7993
  /* @__PURE__ */ e.jsx(
@@ -8556,7 +8559,7 @@ const Bs = ({
8556
8559
  rightSegment: d,
8557
8560
  handleRightSegment: i,
8558
8561
  billSummaryClicked: v,
8559
- showDiscount: C = !1,
8562
+ showDiscount: w = !1,
8560
8563
  showRefund: a = !1,
8561
8564
  handleServiceItem: A,
8562
8565
  pastDueData: S,
@@ -8848,7 +8851,7 @@ const Bs = ({
8848
8851
  isPayDue: D,
8849
8852
  rightSegment: d,
8850
8853
  pastDueData: S,
8851
- showDiscount: C,
8854
+ showDiscount: w,
8852
8855
  showRefund: a,
8853
8856
  summaryData: h,
8854
8857
  date: u,
@@ -8900,7 +8903,7 @@ const Bs = ({
8900
8903
  handleRightSegment: d,
8901
8904
  getBillSummarydata: i,
8902
8905
  order_date: v,
8903
- editRowId: C,
8906
+ editRowId: w,
8904
8907
  setTableData: a,
8905
8908
  refreshBillsList: A,
8906
8909
  handleRevertEdit: S
@@ -9087,7 +9090,7 @@ const Bs = ({
9087
9090
  );
9088
9091
  b.bill_item_details.lab_owner_name && ns(b.bill_item_details.lab_owner_name, h?.patientRoleID || "", T), ee && (a(
9089
9092
  (F) => F.map(
9090
- (ae, V) => C == V.toString() ? {
9093
+ (ae, V) => w == V.toString() ? {
9091
9094
  ...ae,
9092
9095
  order_item_id: ee.order_item_id || b.order_item_id
9093
9096
  } : ae
@@ -9118,7 +9121,7 @@ const Bs = ({
9118
9121
  patientIDs: d,
9119
9122
  doctorListArr: i,
9120
9123
  patientDetails: v,
9121
- billPreferences: C,
9124
+ billPreferences: w,
9122
9125
  formattedService: a,
9123
9126
  ppEventProps: A,
9124
9127
  variable: S
@@ -9143,7 +9146,7 @@ const Bs = ({
9143
9146
  ...Dn,
9144
9147
  appnt_doctor_name: window.role_id == "11" ? window.doc_name_for_seg : G?.doctor_name,
9145
9148
  appnt_doctor_role_id: window.role_id == "11" ? window.doctor_role_id_for_seg : G?.doctor_identifier,
9146
- appnt_duration: +C?.print?.bill?.appnt_minute_slab,
9149
+ appnt_duration: +w?.print?.bill?.appnt_minute_slab,
9147
9150
  appnt_time_time: $?.split(" ")[0] || "",
9148
9151
  appnt_time_format: $?.split(" ")[1] || "",
9149
9152
  total_price: "",
@@ -9543,7 +9546,7 @@ const Bs = ({
9543
9546
  editedTableData: d,
9544
9547
  getBillSummarydata: i,
9545
9548
  order_date: v,
9546
- setTableData: C,
9549
+ setTableData: w,
9547
9550
  editRowId: a,
9548
9551
  refreshBillsList: A,
9549
9552
  handleRevertEdit: S
@@ -9687,7 +9690,7 @@ const Bs = ({
9687
9690
  Dt[1],
9688
9691
  T
9689
9692
  );
9690
- G && (C(
9693
+ G && (w(
9691
9694
  (J) => J.map(
9692
9695
  (X, ee) => a == ee.toString() ? {
9693
9696
  ...X,
@@ -9722,7 +9725,7 @@ function Os() {
9722
9725
  n.exports = i();
9723
9726
  })(Vs, function() {
9724
9727
  var d = "minute", i = /[+-]\d\d(?::?\d\d)?/g, v = /([+-]|\d\d)/g;
9725
- return function(C, a, A) {
9728
+ return function(w, a, A) {
9726
9729
  var S = a.prototype;
9727
9730
  A.utc = function(T) {
9728
9731
  var D = { date: T, utc: !0, args: arguments };
@@ -9798,7 +9801,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
9798
9801
  serviceDetails: d,
9799
9802
  walletBalance: i,
9800
9803
  rightSegment: v,
9801
- serviceItem: C,
9804
+ serviceItem: w,
9802
9805
  bill_date: a,
9803
9806
  handleRightSegment: A,
9804
9807
  getBillSummarydata: S,
@@ -9810,7 +9813,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
9810
9813
  if (!q)
9811
9814
  throw new Error("ServiceLevelBillSummary must be used within an AppContext.Provider");
9812
9815
  const { patientDetails: W, patientIDs: T, billPreferences: D, setShowPrintModal: P, currentWindow: I, showPrintModal: b, variable: $ } = q, G = () => {
9813
- switch (C) {
9816
+ switch (w) {
9814
9817
  case Dt[0]:
9815
9818
  return "Consultation Bill";
9816
9819
  case Dt[1]:
@@ -9818,7 +9821,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
9818
9821
  case Dt[2]:
9819
9822
  return "Lab Service Bill";
9820
9823
  default:
9821
- return `${C} Bill`;
9824
+ return `${w} Bill`;
9822
9825
  }
9823
9826
  }, J = async (X, ee, F) => {
9824
9827
  if (b?.visible && g(), !u) return;
@@ -9969,7 +9972,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
9969
9972
  summaryData: u,
9970
9973
  getBillSummarydata: S,
9971
9974
  handleRightSegment: A,
9972
- serviceItem: C,
9975
+ serviceItem: w,
9973
9976
  getPastDueAmount: h,
9974
9977
  date: a,
9975
9978
  refreshBillsList: k,
@@ -10069,7 +10072,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
10069
10072
  patientIDs: d,
10070
10073
  billPreferences: i,
10071
10074
  setShowPrintModal: v,
10072
- showPrintModal: C,
10075
+ showPrintModal: w,
10073
10076
  setLoading: a,
10074
10077
  // ppEventProps,
10075
10078
  showToast: A,
@@ -10249,7 +10252,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
10249
10252
  );
10250
10253
  }, [Nt, i?.billing?.is_discount_perc]);
10251
10254
  const Bt = async (_e, Y, z) => {
10252
- if (C?.visible && n(), se?.bill_summary && Object.keys(se?.bill_summary).length > 0) {
10255
+ if (w?.visible && n(), se?.bill_summary && Object.keys(se?.bill_summary).length > 0) {
10253
10256
  const O = await _s(
10254
10257
  Ft("order_id", _e),
10255
10258
  d?.patientRoleID,
@@ -10519,7 +10522,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
10519
10522
  ] })
10520
10523
  ] });
10521
10524
  }, ka = (n) => {
10522
- const { appointments: u, isDisabled: d, handleAppointData: i, leftNav: v, today: C } = n, a = qt(
10525
+ const { appointments: u, isDisabled: d, handleAppointData: i, leftNav: v, today: w } = n, a = qt(
10523
10526
  (D) => {
10524
10527
  i(D);
10525
10528
  },
@@ -10690,7 +10693,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
10690
10693
  return /* @__PURE__ */ e.jsx(
10691
10694
  "div",
10692
10695
  {
10693
- className: `${d ? " hfl-pointer-events-none" : "hfl-cursor-pointer"} ${C ? " hfl-h-[500px] hfl-overflow-y-scroll" : ""} `,
10696
+ className: `${d ? " hfl-pointer-events-none" : "hfl-cursor-pointer"} ${w ? " hfl-h-[500px] hfl-overflow-y-scroll" : ""} `,
10694
10697
  children: u && /* @__PURE__ */ e.jsxs(
10695
10698
  "table",
10696
10699
  {
@@ -10712,11 +10715,11 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
10712
10715
  }
10713
10716
  );
10714
10717
  }, ul = (n) => {
10715
- const { currentPage: u, totalRecord: d, handleLoadMore: i, isLoading: v = !1, currentTotal: C } = n;
10718
+ const { currentPage: u, totalRecord: d, handleLoadMore: i, isLoading: v = !1, currentTotal: w } = n;
10716
10719
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
10717
10720
  !v && /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-justify-between", children: [
10718
- /* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text sm", className: "hfl-text-Gray-500", children: `1 — ${C} of ${d} results` }),
10719
- C !== d ? /* @__PURE__ */ e.jsx(
10721
+ /* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text sm", className: "hfl-text-Gray-500", children: `1 — ${w} of ${d} results` }),
10722
+ w !== d ? /* @__PURE__ */ e.jsx(
10720
10723
  He,
10721
10724
  {
10722
10725
  className: "hfl-text-Blue-^00 hfl-flex hfl-justify-center",
@@ -10730,7 +10733,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
10730
10733
  v && /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center hfl-justify-center", children: /* @__PURE__ */ e.jsx(bn, { size: "xxs", progress: 10, spinnerMode: !0 }) })
10731
10734
  ] });
10732
10735
  }, Ys = (n) => {
10733
- const { handleAddNewAppnt: u, handleAppointData: d, sortAppointments: i } = n, [v, C] = K(), [a, A] = K(1), [S, h] = K([]), [k, g] = K([]), [L, q] = K(""), { patientIDs: W, setLoading: T, variable: D } = Vt(Lt), P = async (I) => {
10736
+ const { handleAddNewAppnt: u, handleAppointData: d, sortAppointments: i } = n, [v, w] = K(), [a, A] = K(1), [S, h] = K([]), [k, g] = K([]), [L, q] = K(""), { patientIDs: W, setLoading: T, variable: D } = Vt(Lt), P = async (I) => {
10734
10737
  let b = I;
10735
10738
  if (T(!0), b <= Math.ceil((v?.total_records || 0) / 10)) {
10736
10739
  if (b = I + 1, b !== I) {
@@ -10752,7 +10755,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
10752
10755
  const I = async () => {
10753
10756
  try {
10754
10757
  const b = await Zl("all", W?.patientRoleID || "", 1, 10, !1, D);
10755
- b && (C(b), h(
10758
+ b && (w(b), h(
10756
10759
  b?.appointments?.filter(($) => $.appnt_date >= Ie(/* @__PURE__ */ new Date()).format("YYYY-MM-DD"))
10757
10760
  ), g(
10758
10761
  b?.appointments?.filter(($) => $.appnt_date < Ie(/* @__PURE__ */ new Date()).format("YYYY-MM-DD"))
@@ -10833,7 +10836,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
10833
10836
  doctorListArr: d,
10834
10837
  serviceListArr: i,
10835
10838
  patientIDs: v,
10836
- setLoading: C,
10839
+ setLoading: w,
10837
10840
  billPreferences: a,
10838
10841
  docPreference: A,
10839
10842
  formattedService: S,
@@ -11188,7 +11191,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
11188
11191
  ), Nt = qt(() => {
11189
11192
  T("today"), ae(ee), P(!0);
11190
11193
  }, [ee]), Bt = qt(async () => {
11191
- C(!0);
11194
+ w(!0);
11192
11195
  try {
11193
11196
  const Y = await Zl(
11194
11197
  W == "today" ? Ie().format("YYYY-MM-DD") : "all",
@@ -11200,11 +11203,11 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
11200
11203
  );
11201
11204
  b(
11202
11205
  Y?.appointments?.filter((z) => z.appnt_date === Ie().format("YYYY-MM-DD"))
11203
- ), Y.appointments.length === 0 && Nt(), C(!1);
11206
+ ), Y.appointments.length === 0 && Nt(), w(!1);
11204
11207
  } catch {
11205
- C(!1), console.log("error in getAppointmentsList API Call");
11208
+ w(!1), console.log("error in getAppointmentsList API Call");
11206
11209
  }
11207
- }, [Nt, W, v?.patientRoleID, C, g]);
11210
+ }, [Nt, W, v?.patientRoleID, w, g]);
11208
11211
  Ye(() => {
11209
11212
  D || Bt();
11210
11213
  }, [D, Bt]), Ye(() => {
@@ -11547,7 +11550,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
11547
11550
  )
11548
11551
  ] });
11549
11552
  }, $s = ({ columns: n, data: u }) => {
11550
- const { getTableProps: d, getTableBodyProps: i, headerGroups: v, rows: C, prepareRow: a } = dl.useTable({
11553
+ const { getTableProps: d, getTableBodyProps: i, headerGroups: v, rows: w, prepareRow: a } = dl.useTable({
11551
11554
  columns: n,
11552
11555
  data: u
11553
11556
  }), A = (h) => {
@@ -11566,7 +11569,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
11566
11569
  }), k;
11567
11570
  }, S = () => {
11568
11571
  const h = [];
11569
- return C.map((k, g) => {
11572
+ return w.map((k, g) => {
11570
11573
  a(k), h.push(
11571
11574
  /* @__PURE__ */ e.jsx(
11572
11575
  "tr",
@@ -11620,7 +11623,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
11620
11623
  setInvestigationDropdown: d,
11621
11624
  setCustomTranslations: i,
11622
11625
  getVisitpadPreferenceHandler: v,
11623
- updateVPPrefUsingDocPref: C
11626
+ updateVPPrefUsingDocPref: w
11624
11627
  }) => {
11625
11628
  const {
11626
11629
  patientIDs: a,
@@ -11683,7 +11686,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
11683
11686
  k.window_var.doctor_role_id_for_seg !== We ? Se = await v({
11684
11687
  doc_id: qe,
11685
11688
  doc_rid: We
11686
- }) : h && await C(h, h.printDefaultPrefIndex, We, !1), u(se.latest_visit_metadata || {}), A({
11689
+ }) : h && await w(h, h.printDefaultPrefIndex, We, !1), u(se.latest_visit_metadata || {}), A({
11687
11690
  printDataFrom: "patient_popup",
11688
11691
  visible: !0,
11689
11692
  whichPreview: "offlinePrint",
@@ -11719,7 +11722,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
11719
11722
  S,
11720
11723
  u,
11721
11724
  A,
11722
- C,
11725
+ w,
11723
11726
  D
11724
11727
  ]
11725
11728
  ), b = qt(async () => {
@@ -12029,7 +12032,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12029
12032
  /* @__PURE__ */ e.jsx(Tt, { style: { fontFamily: "Arial-BoldItalic" }, children: "load font" }),
12030
12033
  /* @__PURE__ */ e.jsx(Tt, { style: { fontFamily: "Rupee" }, children: "load font" })
12031
12034
  ] }) }) })), Xs = (n) => {
12032
- const { billsData: u, handleRowClick: d, handleRightSegment: i, getRowIndices: v, getRefundAmt: C, closePrintModal: a } = n, {
12035
+ const { billsData: u, handleRowClick: d, handleRightSegment: i, getRowIndices: v, getRefundAmt: w, closePrintModal: a } = n, {
12033
12036
  patientIDs: A,
12034
12037
  patientDetails: S,
12035
12038
  billPreferences: h,
@@ -12265,7 +12268,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12265
12268
  "data-qa": $ + 1 + "-" + (J + 1) + "-delete-bill",
12266
12269
  className: `${P.td_without_truncate} hfl-max-w-[36px] hfl-cursor-pointer`,
12267
12270
  onClick: () => {
12268
- v($, J), i(pt[6]), parseInt(b.order_paid_amount) - parseInt(b.refund_amount) <= parseInt(b.net_bill_amount) - parseInt(b.order_items[J].net_amount) ? C(0) : C(parseInt(b.order_paid_amount) - parseInt(b.refund_amount));
12271
+ v($, J), i(pt[6]), parseInt(b.order_paid_amount) - parseInt(b.refund_amount) <= parseInt(b.net_bill_amount) - parseInt(b.order_items[J].net_amount) ? w(0) : w(parseInt(b.order_paid_amount) - parseInt(b.refund_amount));
12269
12272
  },
12270
12273
  children: /* @__PURE__ */ e.jsx("i", { className: "hx_delete hfl-text-Gray-500" })
12271
12274
  }
@@ -12278,7 +12281,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12278
12281
  handleRightSegment: d,
12279
12282
  bills: i,
12280
12283
  billsListIndex: v,
12281
- orderItemsIndex: C,
12284
+ orderItemsIndex: w,
12282
12285
  // handleDeleteItem,
12283
12286
  getBillsList: a
12284
12287
  } = n, { patientIDs: A, showToast: S, variable: h } = Vt(Lt) || {}, [k, g] = K("");
@@ -12300,7 +12303,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12300
12303
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-w-full hfl-shrink-0 hfl-flex-col hfl-items-start hfl-gap-[5px] hfl-rounded-md hfl-border-Gray-200 hfl-bg-White_20 hfl-px-3 hfl-py-2 hfl-shadow-md", children: [
12301
12304
  /* @__PURE__ */ e.jsxs(N, { variant: "Semibold", type: "Text sm", children: [
12302
12305
  "Service: ",
12303
- i?.bill_list[v].order_items[C].service_name
12306
+ i?.bill_list[v].order_items[w].service_name
12304
12307
  ] }),
12305
12308
  u > 0 && /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center hfl-gap-3", children: /* @__PURE__ */ e.jsxs(N, { variant: "Regular", type: "Text sm", children: [
12306
12309
  "Refund of",
@@ -12351,7 +12354,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12351
12354
  if (i?.bill_list?.[v].order_id) {
12352
12355
  const L = await An(
12353
12356
  i?.bill_list?.[v].order_id,
12354
- i?.bill_list?.[v].order_items[C].order_item_id,
12357
+ i?.bill_list?.[v].order_items[w].order_item_id,
12355
12358
  A?.patientRoleID || "",
12356
12359
  k,
12357
12360
  "0",
@@ -12384,7 +12387,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12384
12387
  ) })
12385
12388
  ] });
12386
12389
  }, Qs = "data:image/svg+xml,%3csvg%20width='87'%20height='86'%20viewBox='0%200%2087%2086'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cellipse%20opacity='0.1'%20cx='43.5'%20cy='83.42'%20rx='43.5'%20ry='2.58'%20fill='%234E5BA6'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M33.6751%2018.92C34.2431%2016.9347%2036.0897%2015.48%2038.2799%2015.48H55.9277C54.4566%2016.3563%2053.188%2017.5313%2052.2081%2018.92H33.6751ZM51.1971%2020.64H25.6649C22.782%2020.64%2020.445%2022.9502%2020.445%2025.8V57.62H47.4149H47.8499C48.3304%2057.62%2048.7199%2058.005%2048.7199%2058.48V62.995C48.7199%2066.676%2051.7387%2069.66%2055.4624%2069.66C59.1862%2069.66%2062.2049%2066.676%2062.2049%2062.995V37.84C55.4781%2037.84%2050.0249%2032.4495%2050.0249%2025.8C50.0249%2023.9534%2050.4455%2022.2039%2051.1971%2020.64ZM63.9449%2037.7181V61.8486C66.4138%2061.4392%2068.2949%2059.3168%2068.2949%2056.76V36.2293C66.9805%2036.9809%2065.5108%2037.4967%2063.9449%2037.7181ZM70.0349%2035.0228V56.76C70.0349%2060.2756%2067.3674%2063.1753%2063.924%2063.5893C63.6156%2067.9429%2059.9451%2071.38%2055.4624%2071.38C55.3865%2071.38%2055.3108%2071.379%2055.2354%2071.377L55.2449%2071.38H23.925C19.1201%2071.38%2015.225%2067.5296%2015.225%2062.78V61.06C15.225%2059.1601%2016.783%2057.62%2018.705%2057.62V25.8C18.705%2022.0003%2021.821%2018.92%2025.6649%2018.92H31.8855C32.49%2015.9759%2035.1232%2013.76%2038.2799%2013.76H61.3349V13.7902C61.6223%2013.7702%2061.9124%2013.76%2062.2049%2013.76C68.9318%2013.76%2074.3849%2019.1505%2074.3849%2025.8C74.3849%2029.5023%2072.6945%2032.8142%2070.0349%2035.0228ZM10.44%2066.005C10.44%2065.6488%2010.7321%2065.36%2011.0925%2065.36C11.4528%2065.36%2011.745%2065.6488%2011.745%2066.005V66.22C11.745%2070.9696%2015.6401%2074.82%2020.445%2074.82H22.4459C22.7823%2074.82%2023.055%2075.0895%2023.055%2075.422C23.055%2075.7545%2022.7823%2076.024%2022.4459%2076.024H20.445C14.6698%2076.024%2010.44%2071.9104%2010.44%2066.22V66.005ZM11.0925%2063.64C9.77111%2063.64%208.69995%2064.6988%208.69995%2066.005V66.22C8.69995%2072.8786%2013.7274%2077.744%2020.445%2077.744H22.4459C23.7433%2077.744%2024.795%2076.7044%2024.795%2075.422C24.795%2074.1396%2023.7433%2073.1%2022.4459%2073.1H20.445C16.601%2073.1%2013.485%2070.0197%2013.485%2066.22V66.005C13.485%2064.6988%2012.4138%2063.64%2011.0925%2063.64ZM24.795%2043.43C24.795%2042.2426%2025.7687%2041.28%2026.9699%2041.28H40.0199C41.2212%2041.28%2042.195%2042.2426%2042.195%2043.43C42.195%2044.6174%2041.2212%2045.58%2040.0199%2045.58H26.9699C25.7687%2045.58%2024.795%2044.6174%2024.795%2043.43ZM26.9699%2043C26.7297%2043%2026.535%2043.1925%2026.535%2043.43C26.535%2043.6675%2026.7297%2043.86%2026.9699%2043.86H40.0199C40.2602%2043.86%2040.4549%2043.6675%2040.4549%2043.43C40.4549%2043.1925%2040.2602%2043%2040.0199%2043H26.9699ZM32.15%2037.9752C32.2163%2038.0407%2032.3208%2038.0735%2032.4635%2038.0735C32.5859%2038.0735%2032.6751%2038.0407%2032.7312%2037.9752C32.7923%2037.9097%2032.8229%2037.8064%2032.8229%2037.6653V37.0531C33.297%2037.0027%2033.7277%2036.8691%2034.1152%2036.6525C34.5026%2036.4307%2034.8135%2036.1082%2035.048%2035.685C35.2876%2035.2566%2035.4074%2034.7275%2035.4074%2034.0977C35.4074%2033.5534%2035.2825%2033.105%2035.0327%2032.7522C34.783%2032.3944%2034.4924%2032.1198%2034.161%2031.9283C33.8297%2031.7368%2033.3837%2031.5202%2032.8229%2031.2783V29.2375C33.0778%2029.2476%2033.2919%2029.2753%2033.4652%2029.3206C33.6436%2029.366%2033.8246%2029.4239%2034.0081%2029.4945C34.1356%2029.5449%2034.2197%2029.5701%2034.2604%2029.5701C34.3624%2029.5701%2034.4695%2029.4995%2034.5816%2029.3584C34.6988%2029.2173%2034.7983%2029.0535%2034.8798%2028.8671C34.9614%2028.6756%2035.0022%2028.5194%2035.0022%2028.3985C35.0022%2028.2624%2034.9079%2028.1264%2034.7192%2027.9903C34.5357%2027.8543%2034.2757%2027.7384%2033.9393%2027.6426C33.6079%2027.5469%2033.2358%2027.4914%2032.8229%2027.4763V27.0606C32.8229%2026.9145%2032.7923%2026.8112%2032.7312%2026.7507C32.67%2026.6902%2032.5655%2026.66%2032.4176%2026.66C32.2953%2026.66%2032.2035%2026.6927%2032.1424%2026.7583C32.0812%2026.8187%2032.0506%2026.9195%2032.0506%2027.0606V27.4839C31.5561%2027.5393%2031.1024%2027.6728%2030.6895%2027.8845C30.2817%2028.0961%2029.9529%2028.3985%2029.7031%2028.7915C29.4585%2029.1795%2029.3361%2029.6557%2029.3361%2030.2201C29.3361%2030.8147%2029.4661%2031.2985%2029.7261%2031.6713C29.9912%2032.0392%2030.2996%2032.3189%2030.6513%2032.5103C31.0081%2032.6968%2031.4746%2032.8958%2032.0506%2033.1075V35.3221C31.7346%2035.3221%2031.444%2035.2793%2031.1789%2035.1936C30.9189%2035.108%2030.6513%2034.9971%2030.376%2034.8611C30.1823%2034.7603%2030.0549%2034.7099%2029.9937%2034.7099C29.902%2034.7099%2029.7873%2034.7804%2029.6496%2034.9215C29.512%2035.0576%2029.3922%2035.2214%2029.2902%2035.4128C29.1934%2035.6043%2029.1449%2035.7656%2029.1449%2035.8966C29.1449%2036.0528%2029.2596%2036.2191%2029.489%2036.3955C29.7235%2036.5718%2030.06%2036.7255%2030.4984%2036.8565C30.9419%2036.9825%2031.4593%2037.0556%2032.0506%2037.0757V37.6653C32.0506%2037.8064%2032.0837%2037.9097%2032.15%2037.9752ZM31.5001%2029.6154C31.602%2029.4793%2031.7855%2029.3786%2032.0506%2029.3131V30.9306C31.8212%2030.7996%2031.6453%2030.6635%2031.523%2030.5224C31.4058%2030.3813%2031.3471%2030.2151%2031.3471%2030.0236C31.3471%2029.8825%2031.3981%2029.7464%2031.5001%2029.6154ZM33.2511%2034.8611C33.1441%2034.9971%2033.0013%2035.1004%2032.8229%2035.171V33.4703C33.2154%2033.692%2033.4117%2033.9843%2033.4117%2034.3471C33.4117%2034.5537%2033.3582%2034.725%2033.2511%2034.8611ZM24.795%2050.31C24.795%2049.1226%2025.7687%2048.16%2026.9699%2048.16H53.07C54.2712%2048.16%2055.2449%2049.1226%2055.2449%2050.31C55.2449%2051.4974%2054.2712%2052.46%2053.07%2052.46H26.9699C25.7687%2052.46%2024.795%2051.4974%2024.795%2050.31ZM26.9699%2049.88C26.7297%2049.88%2026.535%2050.0725%2026.535%2050.31C26.535%2050.5475%2026.7297%2050.74%2026.9699%2050.74H53.07C53.3102%2050.74%2053.5049%2050.5475%2053.5049%2050.31C53.5049%2050.0725%2053.3102%2049.88%2053.07%2049.88H26.9699ZM51.7649%2025.8C51.7649%2020.1004%2056.4391%2015.48%2062.2049%2015.48C67.9708%2015.48%2072.6449%2020.1004%2072.6449%2025.8C72.6449%2031.4996%2067.9708%2036.12%2062.2049%2036.12C56.4391%2036.12%2051.7649%2031.4996%2051.7649%2025.8ZM60.0299%2020.21C60.0299%2019.0226%2061.0037%2018.06%2062.2049%2018.06C63.4062%2018.06%2064.3799%2019.0226%2064.3799%2020.21V25.37C64.3799%2026.5574%2063.4062%2027.52%2062.2049%2027.52C61.0037%2027.52%2060.0299%2026.5574%2060.0299%2025.37V20.21ZM62.2049%2019.78C61.9647%2019.78%2061.7699%2019.9725%2061.7699%2020.21V25.37C61.7699%2025.6075%2061.9647%2025.8%2062.2049%2025.8C62.4452%2025.8%2062.6399%2025.6075%2062.6399%2025.37V20.21C62.6399%2019.9725%2062.4452%2019.78%2062.2049%2019.78ZM62.2049%2033.54C61.0037%2033.54%2060.0299%2032.5774%2060.0299%2031.39C60.0299%2030.2026%2061.0037%2029.24%2062.2049%2029.24C63.4062%2029.24%2064.3799%2030.2026%2064.3799%2031.39C64.3799%2032.5774%2063.4062%2033.54%2062.2049%2033.54ZM61.7699%2031.39C61.7699%2031.6275%2061.9647%2031.82%2062.2049%2031.82C62.4452%2031.82%2062.6399%2031.6275%2062.6399%2031.39C62.6399%2031.1525%2062.4452%2030.96%2062.2049%2030.96C61.9647%2030.96%2061.7699%2031.1525%2061.7699%2031.39Z'%20fill='%23AFB5D9'/%3e%3c/svg%3e", eo = (n) => {
12387
- const { closePrintModal: u, handleCurrentWindow: d, billIdToOpen: i, onBillHandled: v } = n, [C, a] = K(), [A, S] = K(""), [h, k] = K(""), [g, L] = K(), [q, W] = K(), [T, D] = K(1), [P, I] = K([]), [b, $] = K(-1), [G, J] = K(-1), [X, ee] = K(0), [F, ae] = K(0), [V, ze] = K(!1), se = Vt(Lt);
12390
+ const { closePrintModal: u, handleCurrentWindow: d, billIdToOpen: i, onBillHandled: v } = n, [w, a] = K(), [A, S] = K(""), [h, k] = K(""), [g, L] = K(), [q, W] = K(), [T, D] = K(1), [P, I] = K([]), [b, $] = K(-1), [G, J] = K(-1), [X, ee] = K(0), [F, ae] = K(0), [V, ze] = K(!1), se = Vt(Lt);
12388
12391
  if (!se)
12389
12392
  throw new Error("Bills component must be used within an AppContext.Provider");
12390
12393
  const { patientIDs: Se, setLoading: qe, variable: We } = se, H = (Ge) => ee(Ge), ce = (Ge = pt[0]) => S(Ge), Re = (Ge) => k(Ge), te = (Ge) => {
@@ -12418,7 +12421,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12418
12421
  qe(!1);
12419
12422
  }, ht = async (Ge) => {
12420
12423
  let et = Ge;
12421
- if (qe(!0), et <= Math.ceil(C.total_pages)) {
12424
+ if (qe(!0), et <= Math.ceil(w.total_pages)) {
12422
12425
  if (et = Ge + 1, et !== Ge) {
12423
12426
  const St = await Ul("all", Se.patientRoleID, Ge, 10, We);
12424
12427
  if (St?.bill_list) {
@@ -12478,7 +12481,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12478
12481
  ] })
12479
12482
  ] })
12480
12483
  ] }),
12481
- C?.bill_list?.length > 0 ? /* @__PURE__ */ e.jsx(
12484
+ w?.bill_list?.length > 0 ? /* @__PURE__ */ e.jsx(
12482
12485
  Xs,
12483
12486
  {
12484
12487
  billsData: P,
@@ -12513,12 +12516,12 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12513
12516
  ] })
12514
12517
  ] })
12515
12518
  ] }) }),
12516
- C?.bill_list?.length > 0 && /* @__PURE__ */ e.jsx("div", { className: "hfl-px-6 hfl-py-2", children: /* @__PURE__ */ e.jsx(
12519
+ w?.bill_list?.length > 0 && /* @__PURE__ */ e.jsx("div", { className: "hfl-px-6 hfl-py-2", children: /* @__PURE__ */ e.jsx(
12517
12520
  ul,
12518
12521
  {
12519
12522
  currentPage: T,
12520
- totalRecord: C?.total_records,
12521
- currentTotal: T === Math.ceil(C?.total_records / 20) ? C?.total_records : T * 20,
12523
+ totalRecord: w?.total_records,
12524
+ currentTotal: T === Math.ceil(w?.total_records / 20) ? w?.total_records : T * 20,
12522
12525
  handleLoadMore: ht
12523
12526
  }
12524
12527
  ) })
@@ -12547,7 +12550,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12547
12550
  Js,
12548
12551
  {
12549
12552
  refundAmt: X,
12550
- bills: C,
12553
+ bills: w,
12551
12554
  billsListIndex: b,
12552
12555
  orderItemsIndex: G,
12553
12556
  handleRightSegment: ce,
@@ -12571,18 +12574,18 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12571
12574
  hideBackDrop: d = !1,
12572
12575
  backdropClasses: i = "",
12573
12576
  modalClasses: v = "",
12574
- closeOnClickOutside: C,
12577
+ closeOnClickOutside: w,
12575
12578
  clickOutsideHandler: a,
12576
12579
  position: A = "hfl-inset-0"
12577
12580
  }) => (Ye(() => {
12578
- if (!C) return;
12581
+ if (!w) return;
12579
12582
  const S = (h) => {
12580
12583
  n.current && !n.current.contains(h.target) && a();
12581
12584
  };
12582
12585
  return document.addEventListener("mousedown", S), () => {
12583
12586
  document.removeEventListener("mousedown", S);
12584
12587
  };
12585
- }, [a, n, C]), /* @__PURE__ */ e.jsx(
12588
+ }, [a, n, w]), /* @__PURE__ */ e.jsx(
12586
12589
  "div",
12587
12590
  {
12588
12591
  className: `hfl-fixed ${A} hfl-z-50 hfl-flex hfl-items-center hfl-justify-center ${i} ${d ? "" : "hfl-bg-Gray-750 hfl-backdrop-blur-sm"}`,
@@ -12594,13 +12597,13 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12594
12597
  payment_id: d,
12595
12598
  currentMode: i,
12596
12599
  transactionType: v,
12597
- refreshPaymentData: C
12600
+ refreshPaymentData: w
12598
12601
  }) => {
12599
12602
  const { showToast: a, variable: A } = Vt(Lt) || {}, [S, h] = K({
12600
12603
  paymentMethod: i
12601
12604
  }), k = async () => {
12602
12605
  const g = await ps(d, S.paymentMethod, v, A);
12603
- g.status ? (a("Update Success", g.message, "Success", 3e3), C?.()) : a("Update Failed", g.message, "Error", 3e3), u({ show: !1, payment_id: "", mode: "", payment_type: "" });
12606
+ g.status ? (a("Update Success", g.message, "Success", 3e3), w?.()) : a("Update Failed", g.message, "Error", 3e3), u({ show: !1, payment_id: "", mode: "", payment_type: "" });
12604
12607
  };
12605
12608
  return /* @__PURE__ */ e.jsxs("div", { ref: n, className: "hfl-flex hfl-w-[400px] hfl-flex-col hfl-rounded-lg hfl-border-none", children: [
12606
12609
  /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-col hfl-rounded-t-lg hfl-bg-gradient_primary_600_500_90 hfl-px-6 hfl-py-5 hfl-text-White hfl-shadow-sm", children: [
@@ -12664,7 +12667,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12664
12667
  handleDeleteRow: d,
12665
12668
  handleRightSegment: i,
12666
12669
  handleRowClick: v,
12667
- getType: C,
12670
+ getType: w,
12668
12671
  getTypeColor: a,
12669
12672
  refreshPaymentData: A
12670
12673
  }) => {
@@ -12738,7 +12741,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12738
12741
  variant: "Regular",
12739
12742
  type: "Text sm",
12740
12743
  className: ` -hfl-ml-1 hfl-px-1 ${a(q.payment_refund)}`,
12741
- children: C(q.payment_refund)
12744
+ children: w(q.payment_refund)
12742
12745
  }
12743
12746
  )
12744
12747
  ] })
@@ -12765,7 +12768,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12765
12768
  show: !0,
12766
12769
  payment_id: q.order_payment_id,
12767
12770
  mode: q.paid_mode,
12768
- payment_type: C(q.payment_refund).toLowerCase()
12771
+ payment_type: w(q.payment_refund).toLowerCase()
12769
12772
  });
12770
12773
  }
12771
12774
  }
@@ -12831,7 +12834,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12831
12834
  patient_entity_id: v
12832
12835
  }) => {
12833
12836
  const {
12834
- patientDetails: C,
12837
+ patientDetails: w,
12835
12838
  patientIDs: a,
12836
12839
  billPreferences: A,
12837
12840
  setShowPrintModal: S,
@@ -12842,19 +12845,19 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12842
12845
  } = Vt(Lt), k = async (g, L, q, W) => {
12843
12846
  h?.visible && i();
12844
12847
  const D = [
12845
- C?.age && typeof C?.age == "number" ? `${C?.age}y` : C?.org_person_dob ? wr(C?.org_person_dob) : "",
12846
- cl[C?.gender] ?? "",
12847
- C?.blood_group
12848
+ w?.age && typeof w?.age == "number" ? `${w?.age}y` : w?.org_person_dob ? wr(w?.org_person_dob) : "",
12849
+ cl[w?.gender] ?? "",
12850
+ w?.blood_group
12848
12851
  ].filter((I) => I).join(", "), P = {
12849
- name: pr(C?.name) + (D ? ` (${D}) ` : ""),
12852
+ name: pr(w?.name) + (D ? ` (${D}) ` : ""),
12850
12853
  billDate: Ie(g?.transaction_time).format("DD-MMM-YYYY"),
12851
- mobileNumber: C?.phone_number,
12852
- email: C?.email,
12854
+ mobileNumber: w?.phone_number,
12855
+ email: w?.email,
12853
12856
  billNumber: g?.bill_number,
12854
- patientId: C?.org_person_bid_str,
12857
+ patientId: w?.org_person_bid_str,
12855
12858
  patientIdForEmail: a?.patientRoleID,
12856
12859
  billStatus: "PAID",
12857
- address: [C?.address ?? "", C?.city ?? "", C?.pincode ?? ""].filter((I) => I).join(", ")
12860
+ address: [w?.address ?? "", w?.city ?? "", w?.pincode ?? ""].filter((I) => I).join(", ")
12858
12861
  };
12859
12862
  S({
12860
12863
  printDataFrom: "patient_popup",
@@ -12937,7 +12940,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12937
12940
  setTableData: d,
12938
12941
  handleRightSegment: i,
12939
12942
  handleRowClick: v,
12940
- activeTab: C,
12943
+ activeTab: w,
12941
12944
  closePrintModal: a,
12942
12945
  patient_entity_id: A,
12943
12946
  refreshPaymentData: S
@@ -12990,7 +12993,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
12990
12993
  default:
12991
12994
  return "";
12992
12995
  }
12993
- }, T = Kt(() => C === br[Tr.consultation_lab_other_services].key ? [
12996
+ }, T = Kt(() => w === br[Tr.consultation_lab_other_services].key ? [
12994
12997
  {
12995
12998
  label: "Date/Time",
12996
12999
  className: "focus:hfl-outline-none hfl-items-start hfl-w-[162px] hfl-border-Gray-200 hfl-border-1"
@@ -13056,7 +13059,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
13056
13059
  label: "Details",
13057
13060
  className: "focus:hfl-outline-none hfl-items-start hfl-w-[160px] hfl-border-1 hfl-px-2 hfl-border-Gray-200 hfl-py-1 hfl-text-left"
13058
13061
  }
13059
- ], [C]), D = ({ label: I, className: b }) => /* @__PURE__ */ e.jsx("th", { className: b, children: /* @__PURE__ */ e.jsxs(N, { variant: "Semibold", type: "Text sm", className: "hfl-text-Gray-600", children: [
13062
+ ], [w]), D = ({ label: I, className: b }) => /* @__PURE__ */ e.jsx("th", { className: b, children: /* @__PURE__ */ e.jsxs(N, { variant: "Semibold", type: "Text sm", className: "hfl-text-Gray-600", children: [
13060
13063
  " ",
13061
13064
  I
13062
13065
  ] }) }), P = {
@@ -13066,7 +13069,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
13066
13069
  };
13067
13070
  return /* @__PURE__ */ e.jsx("div", { className: "", children: /* @__PURE__ */ e.jsxs("table", { className: `${P.table}`, children: [
13068
13071
  /* @__PURE__ */ e.jsx("thead", { className: `${P.th}`, children: /* @__PURE__ */ e.jsx("tr", { children: T.map((I, b) => /* @__PURE__ */ e.jsx(D, { label: I.label, className: I.className }, b)) }) }),
13069
- /* @__PURE__ */ e.jsx("tbody", { children: C === br[Tr.consultation_lab_other_services].key ? /* @__PURE__ */ e.jsx(
13072
+ /* @__PURE__ */ e.jsx("tbody", { children: w === br[Tr.consultation_lab_other_services].key ? /* @__PURE__ */ e.jsx(
13070
13073
  lo,
13071
13074
  {
13072
13075
  styles: P,
@@ -13118,7 +13121,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
13118
13121
  billPreferences: i,
13119
13122
  setShowPrintModal: v,
13120
13123
  // currentWindow,
13121
- showPrintModal: C
13124
+ showPrintModal: w
13122
13125
  // setLoading,
13123
13126
  // ppEventProps,
13124
13127
  } = Vt(Lt) || {}, {
@@ -13128,7 +13131,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
13128
13131
  summaryData: S,
13129
13132
  patient_entity_id: h
13130
13133
  } = n, k = async (g, L) => {
13131
- C?.visible && A();
13134
+ w?.visible && A();
13132
13135
  const W = [
13133
13136
  u?.age && typeof u?.age == "number" ? `${u?.age}y` : u?.org_person_dob ? wr(u?.org_person_dob) : "",
13134
13137
  cl[u?.gender] ?? "",
@@ -13262,7 +13265,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
13262
13265
  br[Tr.consultation_lab_other_services].key
13263
13266
  ), [i, v] = K(
13264
13267
  null
13265
- ), [C, a] = K(pt[5]), [A, S] = K(""), [h, k] = K(), [g, L] = K([]), [q, W] = K(1), [T, D] = K(), { setLoading: P, patientIDs: I, variable: b } = Vt(Lt), [$, G] = K(0), [J, X] = K(!1), ee = qt(async () => {
13268
+ ), [w, a] = K(pt[5]), [A, S] = K(""), [h, k] = K(), [g, L] = K([]), [q, W] = K(1), [T, D] = K(), { setLoading: P, patientIDs: I, variable: b } = Vt(Lt), [$, G] = K(0), [J, X] = K(!1), ee = qt(async () => {
13266
13269
  try {
13267
13270
  if (P(!0), I?.patientRoleID) {
13268
13271
  const H = await Ma(I.patientRoleID, 1, 10, b);
@@ -13327,7 +13330,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
13327
13330
  /* @__PURE__ */ e.jsxs(
13328
13331
  "div",
13329
13332
  {
13330
- className: `hfl-flex hfl-w-[938px] hfl-flex-col hfl-justify-start hfl-px-4 hfl-py-2 xxs:max-md:hfl-w-[750px] ${C === pt[7] ? "hfl-opacity-30" : ""}`,
13333
+ className: `hfl-flex hfl-w-[938px] hfl-flex-col hfl-justify-start hfl-px-4 hfl-py-2 xxs:max-md:hfl-w-[750px] ${w === pt[7] ? "hfl-opacity-30" : ""}`,
13331
13334
  children: [
13332
13335
  /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center", children: Object.values(br).map((H, ce) => /* @__PURE__ */ e.jsx(
13333
13336
  N,
@@ -13388,10 +13391,10 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
13388
13391
  }
13389
13392
  ),
13390
13393
  /* @__PURE__ */ e.jsxs(Ka, { children: [
13391
- C === pt[1] && /* @__PURE__ */ e.jsx(
13394
+ w === pt[1] && /* @__PURE__ */ e.jsx(
13392
13395
  Qa,
13393
13396
  {
13394
- rightSegment: C,
13397
+ rightSegment: w,
13395
13398
  categorySummaryData: {
13396
13399
  ...h,
13397
13400
  order_date: T?.order_date ?? ""
@@ -13410,16 +13413,16 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
13410
13413
  bill_date: ""
13411
13414
  }
13412
13415
  ),
13413
- C === pt[7] && /* @__PURE__ */ e.jsx(
13416
+ w === pt[7] && /* @__PURE__ */ e.jsx(
13414
13417
  en,
13415
13418
  {
13416
13419
  depositAmount: $,
13417
13420
  handleRightSegment: ae,
13418
- rightSegment: C,
13421
+ rightSegment: w,
13419
13422
  setRefreshWallet: X
13420
13423
  }
13421
13424
  ),
13422
- C === pt[8] && /* @__PURE__ */ e.jsx(
13425
+ w === pt[8] && /* @__PURE__ */ e.jsx(
13423
13426
  oo,
13424
13427
  {
13425
13428
  summaryData: {
@@ -13434,7 +13437,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
13434
13437
  ] })
13435
13438
  ] });
13436
13439
  }, tn = () => /* @__PURE__ */ e.jsx("div", { className: "hfl-inset-0 hfl-z-[100] hfl-flex hfl-h-full hfl-w-full hfl-items-center hfl-justify-center hfl-overflow-y-auto hfl-outline-none focus:hfl-outline-none", children: /* @__PURE__ */ e.jsx(bn, { progress: 10, spinnerMode: !0 }) }), Mn = ({ columns: n, data: u }) => {
13437
- const { getTableProps: d, getTableBodyProps: i, headerGroups: v, rows: C, prepareRow: a } = dl.useTable({
13440
+ const { getTableProps: d, getTableBodyProps: i, headerGroups: v, rows: w, prepareRow: a } = dl.useTable({
13438
13441
  columns: n,
13439
13442
  data: u
13440
13443
  }), A = (h) => {
@@ -13453,7 +13456,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
13453
13456
  }), k;
13454
13457
  }, S = () => {
13455
13458
  const h = [];
13456
- return C.map((k, g) => {
13459
+ return w.map((k, g) => {
13457
13460
  a(k), h.push(
13458
13461
  /* @__PURE__ */ e.jsx(
13459
13462
  "tr",
@@ -13494,9 +13497,9 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
13494
13497
  }
13495
13498
  ) });
13496
13499
  }, uo = (n) => {
13497
- const { visits: u = [], setPdfUrl: d, pdfUrl: i } = n, [v, C] = K([]);
13500
+ const { visits: u = [], setPdfUrl: d, pdfUrl: i } = n, [v, w] = K([]);
13498
13501
  return Ye(() => {
13499
- C(fo(u));
13502
+ w(fo(u));
13500
13503
  }, []), /* @__PURE__ */ e.jsx("div", { children: v && v.length && v.map(
13501
13504
  (a, A) => a.reports.length > 0 && a.reports.map((S, h) => {
13502
13505
  const k = a.date || "No date available";
@@ -13549,7 +13552,7 @@ ${g}`,
13549
13552
  patientDetails: d,
13550
13553
  lisPDFUrl: i = { report_link: "", lab_number: "" },
13551
13554
  showListing: v = !0,
13552
- showToast: C,
13555
+ showToast: w,
13553
13556
  openLISReportHandler: a = () => {
13554
13557
  },
13555
13558
  variable: A
@@ -13586,7 +13589,7 @@ ${g}`,
13586
13589
  label: ce?.label || "",
13587
13590
  patient_name: L
13588
13591
  }, ve = await bi(te, A), Ne = Re === "SMS/WA" ? "WhatsApp" : Re;
13589
- ve || C("", Ne + " failed to sent", "Error", 3e3), C("", Ne + " sent successfully", "Success", 3e3);
13592
+ ve || w("", Ne + " failed to sent", "Error", 3e3), w("", Ne + " sent successfully", "Success", 3e3);
13590
13593
  }, H = (ce) => ce ? `${ce}#toolbar=0&navpanes=0` : `data:text/html;charset=utf-8,${encodeURIComponent(`
13591
13594
  <html>
13592
13595
  <body style="font-family: sans-serif; display: flex; align-items: center; justify-content: center; height: 100%; margin:0; background:#f9f9f9;">
@@ -13814,7 +13817,7 @@ ${g}`,
13814
13817
  }
13815
13818
  );
13816
13819
  }, po = (n) => {
13817
- const { patientDetails: u, showToast: d, variable: i } = n, [v, C] = K(!1), [a, A] = K(""), { org_person_bid_str: S = "" } = u, h = Oa(
13820
+ const { patientDetails: u, showToast: d, variable: i } = n, [v, w] = K(!1), [a, A] = K(""), { org_person_bid_str: S = "" } = u, h = Oa(
13818
13821
  ($, G) => ({ ...$, ...G }),
13819
13822
  {
13820
13823
  currentPage: 1,
@@ -13823,7 +13826,7 @@ ${g}`,
13823
13826
  isLabTableLoading: !1
13824
13827
  }
13825
13828
  ), [k, g] = h, { LabRecords: L, currentPage: q, isLabTableLoading: W } = k, T = ($, G) => {
13826
- $ === "print_pdf" ? window.open(G.report_link, "_blank") : $ === "print_preview" && (C(!0), A(G));
13829
+ $ === "print_pdf" ? window.open(G.report_link, "_blank") : $ === "print_preview" && (w(!0), A(G));
13827
13830
  }, D = qt(
13828
13831
  async ($) => {
13829
13832
  try {
@@ -13922,7 +13925,7 @@ ${g}`,
13922
13925
  v && /* @__PURE__ */ e.jsx("div", { className: "hfl-absolute hfl-left-[50%] hfl-top-[50%]", children: /* @__PURE__ */ e.jsx(
13923
13926
  ho,
13924
13927
  {
13925
- setLisModalOpen: C,
13928
+ setLisModalOpen: w,
13926
13929
  patientDetails: u,
13927
13930
  lisPDFUrl: a,
13928
13931
  showListing: !1,
@@ -13962,7 +13965,7 @@ ${g}`,
13962
13965
  });
13963
13966
  }), u;
13964
13967
  }, go = (n) => {
13965
- const { patientDetails: u, showToast: d, variable: i, visitpad_preference: v, branch_preference: C } = n, [a, A] = K({
13968
+ const { patientDetails: u, showToast: d, variable: i, visitpad_preference: v, branch_preference: w } = n, [a, A] = K({
13966
13969
  printDataFrom: "",
13967
13970
  visible: !1,
13968
13971
  printType: "",
@@ -14149,7 +14152,7 @@ ${g}`,
14149
14152
  labReportData: a.details.labReportData,
14150
14153
  labOrderData: a.details.labOrderData,
14151
14154
  preferences: v,
14152
- branch_preference: C,
14155
+ branch_preference: w,
14153
14156
  // The patientDetails for the print component is simpler, so we construct it
14154
14157
  patientDetails: a.details.patientDetails
14155
14158
  } : void 0
@@ -14157,7 +14160,7 @@ ${g}`,
14157
14160
  )
14158
14161
  ] });
14159
14162
  }, xo = (n) => {
14160
- const { showToast: u } = n, { patientDetails: d, billPreferences: i, variable: v, preferences: C } = Vt(Lt) || {}, [a, A] = K(""), [S, h] = K(), k = i?.features?.enable_lis_v1 ?? !1, g = v.window_var.permit_lab_tech == "1";
14163
+ const { showToast: u } = n, { patientDetails: d, billPreferences: i, variable: v, preferences: w } = Vt(Lt) || {}, [a, A] = K(""), [S, h] = K(), k = i?.features?.enable_lis_v1 ?? !1, g = v.window_var.permit_lab_tech == "1";
14161
14164
  Ye(() => {
14162
14165
  (async () => {
14163
14166
  if (g)
@@ -14206,7 +14209,7 @@ ${g}`,
14206
14209
  patientDetails: d,
14207
14210
  showToast: u,
14208
14211
  variable: v,
14209
- visitpad_preference: C,
14212
+ visitpad_preference: w,
14210
14213
  branch_preference: S
14211
14214
  }
14212
14215
  )
@@ -14214,7 +14217,7 @@ ${g}`,
14214
14217
  ] }) : /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-h-full hfl-items-center hfl-justify-center", children: /* @__PURE__ */ e.jsx(N, { variant: "Regular", type: "Text lg", className: "hfl-text-Gray-500", children: "Lab is not active." }) }) }) }) });
14215
14218
  };
14216
14219
  function Do({ variable: n }) {
14217
- const { window_var: u, token: d, envName: i, IMGREP_DIRECTORY: v } = n, C = Ya("(max-width: 1080px)"), a = Mr(null), [A, S] = K(!1), [h, k] = K(!1), [g, L] = K([]), [q, W] = K(Ct[2]), [T, D] = K(), [P, I] = K(), [b, $] = K(), [G, J] = K(), [X, ee] = K(), [F, ae] = K(), [V, ze] = K({
14220
+ const { window_var: u, token: d, envName: i, IMGREP_DIRECTORY: v } = n, w = Ya("(max-width: 1080px)"), a = Mr(null), [A, S] = K(!1), [h, k] = K(!1), [g, L] = K([]), [q, W] = K(Ct[2]), [T, D] = K(), [P, I] = K(), [b, $] = K(), [G, J] = K(), [X, ee] = K(), [F, ae] = K(), [V, ze] = K({
14218
14221
  printDataFrom: "",
14219
14222
  visible: !1,
14220
14223
  whichPreview: "offlinePrint",
@@ -14490,7 +14493,7 @@ function Do({ variable: n }) {
14490
14493
  backgroundColor: "var(--White, #FFFFFD)",
14491
14494
  boxShadow: "0px 8px 8px -4px rgba(16, 24, 40, 0.03), 0px 20px 24px -4px rgba(16, 24, 40, 0.08)",
14492
14495
  padding: "0px",
14493
- width: C ? "980px" : "1267px",
14496
+ width: w ? "980px" : "1267px",
14494
14497
  maxHeight: "80.45vh",
14495
14498
  minHeight: "70vh",
14496
14499
  inset: "6%"