hplx-feature-library 1.0.323 → 1.0.324
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{APIAction-Dh1jeN3Q.js → APIAction-BQ9teGJW.js} +2 -2
- package/dist/AllInvestigations/index.js +1 -1
- package/dist/{AllInvestigationsTable-CBNvVZ4a.js → AllInvestigationsTable-RxKEi1oZ.js} +2 -2
- package/dist/Attachments/index.js +1 -1
- package/dist/{Attachments-Cpe_ogln.js → Attachments-Dn4I_VGB.js} +1 -1
- package/dist/NineDots/index.js +1 -1
- package/dist/{NineDots-CZxm95h0.js → NineDots-lJuHzSds.js} +1 -1
- package/dist/PatientAddEdit/index.js +1 -1
- package/dist/{PatientAddEdit-Bsa6mPrj.js → PatientAddEdit-BsHEMXG4.js} +5 -5
- package/dist/PatientPopup/index.js +1 -1
- package/dist/{PatientPopupContainer-Bwh3GYPG.js → PatientPopupContainer-BeIy8UXR.js} +390 -387
- package/dist/{PatientPopupContainer-BOszREV9.cjs → PatientPopupContainer-DMlG8RIK.cjs} +7 -7
- package/dist/PediatricsCalculator/index.js +1 -1
- package/dist/{PediatricsCalculatorTable-Bsotwgba.js → PediatricsCalculatorTable-MiyDnBXR.js} +2 -2
- package/dist/{PrintModal-sf-sgt_o.cjs → PrintModal-C6CqotCi.cjs} +91 -91
- package/dist/{PrintModal-DdCNwJgU.js → PrintModal-Cl4uUWgD.js} +11349 -10683
- package/dist/SearchPatients/index.js +1 -1
- package/dist/{SearchPatients-tEIv_TBu.js → SearchPatients-BFfL62yW.js} +3 -3
- package/dist/UserProfile/index.js +1 -1
- package/dist/{UserProfile-BULmvcRC.js → UserProfile-BTIhJrPQ.js} +4 -4
- package/dist/{common-utils-P_6EPLut.js → common-utils-Xwn35s7D.js} +1 -1
- package/dist/{dayjs.min-CI-igRZR.js → dayjs.min-Bk353hCE.js} +1 -1
- package/dist/{index-D9tHKxGo.js → index-0w7RM_ri.js} +1 -1
- package/dist/{index-Ku_Lrm51.js → index-f3VHwsio.js} +3 -3
- package/dist/index.js +9 -9
- package/dist/print-pdf/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { j as e, b as N, g as vn, e as kn, K as Le, 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-
|
|
1
|
+
import { j as e, b as N, g as vn, e as kn, K as Le, 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-f3VHwsio.js";
|
|
2
2
|
import ol, { createContext as Wn, useContext as Lt, useState as U, forwardRef as zn, useRef as Mr, useEffect as Ye, useCallback as $t, useMemo as Kt, useReducer as Oa } from "react";
|
|
3
3
|
import { a as Ta } 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 ti, m as Rn, 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 It, W as yi, H as Sn, I as bi, P as Nn } from "./PrintModal-
|
|
5
|
-
import { R as bt, h as za, f as wi, v as an, n as nn, q as Ci, i as Ri } from "./common-utils-
|
|
6
|
-
import { d as Te } from "./dayjs.min-
|
|
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-
|
|
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 ti, m as Rn, 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 It, W as yi, H as Sn, I as bi, P as Nn } from "./PrintModal-Cl4uUWgD.js";
|
|
5
|
+
import { R as bt, h as za, f as wi, v as an, n as nn, q as Ci, i as Ri } from "./common-utils-Xwn35s7D.js";
|
|
6
|
+
import { d as Te } from "./dayjs.min-Bk353hCE.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-BQ9teGJW.js";
|
|
8
8
|
import { a as on, H as Ii, D as Pa, M as Sa, b as Ol, S as Ti, C as Na, O as Da } from "./CommonConstant-BMwbE0IZ.js";
|
|
9
9
|
import { c as Ba } from "./index.esm-Bn1Rklqj.js";
|
|
10
10
|
/* empty css */
|
|
@@ -293,10 +293,10 @@ const rl = {
|
|
|
293
293
|
{
|
|
294
294
|
...i
|
|
295
295
|
}
|
|
296
|
-
), { data:
|
|
296
|
+
), { data: w } = v || {}, { error: a } = w || {};
|
|
297
297
|
if (a)
|
|
298
298
|
throw new Error(a);
|
|
299
|
-
n(
|
|
299
|
+
n(w);
|
|
300
300
|
} catch (i) {
|
|
301
301
|
console.log(i), n(void 0);
|
|
302
302
|
}
|
|
@@ -320,19 +320,19 @@ const rl = {
|
|
|
320
320
|
}
|
|
321
321
|
}, Fa = async (n = "all", u, d = 1, i = 20, v) => {
|
|
322
322
|
try {
|
|
323
|
-
const
|
|
323
|
+
const w = await bt(v.token, v.envName).get(
|
|
324
324
|
`${Rn}?date=${n}&patient_role_id=${u}&page_no=${d}&page_size=${i}&org_branch_id=${v.window_var.org_branch_id_for_seg}`
|
|
325
|
-
), { data: a } =
|
|
325
|
+
), { data: a } = w || {};
|
|
326
326
|
return Promise.resolve(a);
|
|
327
|
-
} catch (
|
|
328
|
-
return console.log(
|
|
327
|
+
} catch (w) {
|
|
328
|
+
return console.log(w), Promise.reject(w);
|
|
329
329
|
}
|
|
330
330
|
}, Ma = async (n, u = 1, d = 10, i) => {
|
|
331
331
|
try {
|
|
332
332
|
const v = await bt(i.token, i.envName).get(
|
|
333
333
|
`${wn}?patient_role_id=${n}&branch_id=${i.window_var.org_branch_id_for_seg}&page_number=${u}&page_size=${d}`
|
|
334
|
-
), { data:
|
|
335
|
-
return Promise.resolve(
|
|
334
|
+
), { data: w } = v || {};
|
|
335
|
+
return Promise.resolve(w);
|
|
336
336
|
} catch (v) {
|
|
337
337
|
return console.log(v), Promise.reject(v);
|
|
338
338
|
}
|
|
@@ -349,8 +349,8 @@ const rl = {
|
|
|
349
349
|
try {
|
|
350
350
|
const v = await bt(i.token, i.envName).get(
|
|
351
351
|
`${Zn}?bill_date=${n}&org_branch_id=${i.window_var.org_branch_id_for_seg}&patient_role_id=${u}&past_due=${d}`
|
|
352
|
-
), { data:
|
|
353
|
-
return Promise.resolve(
|
|
352
|
+
), { data: w } = v || {};
|
|
353
|
+
return Promise.resolve(w);
|
|
354
354
|
} catch (v) {
|
|
355
355
|
return console.log(v), Promise.reject(v);
|
|
356
356
|
}
|
|
@@ -388,9 +388,9 @@ const rl = {
|
|
|
388
388
|
lab_owner_name: n?.bill_item_details?.lab_owner_name || "",
|
|
389
389
|
lab_owner_id: +n?.bill_item_details?.lab_owner_id || 0
|
|
390
390
|
}
|
|
391
|
-
},
|
|
391
|
+
}, w = await bt(i.token, i.envName).post(Rn, {
|
|
392
392
|
...v
|
|
393
|
-
}), { data: a } =
|
|
393
|
+
}), { data: a } = w || {};
|
|
394
394
|
return Promise.resolve(a);
|
|
395
395
|
} catch (v) {
|
|
396
396
|
return console.log(v), Promise.reject(v);
|
|
@@ -411,12 +411,12 @@ const rl = {
|
|
|
411
411
|
order_item_service_tax: Math.floor(n.order_item_service_tax)
|
|
412
412
|
}, v = await bt(d.token, d.envName).put(di, {
|
|
413
413
|
...i
|
|
414
|
-
}), { data:
|
|
415
|
-
return Promise.resolve(
|
|
414
|
+
}), { data: w } = v || {};
|
|
415
|
+
return Promise.resolve(w);
|
|
416
416
|
} catch (i) {
|
|
417
417
|
return console.log(i), Promise.reject(i);
|
|
418
418
|
}
|
|
419
|
-
}, Ia = async (n, u, d, i, v,
|
|
419
|
+
}, Ia = async (n, u, d, i, v, w = {}, a) => {
|
|
420
420
|
try {
|
|
421
421
|
const A = {
|
|
422
422
|
action: n,
|
|
@@ -426,7 +426,7 @@ const rl = {
|
|
|
426
426
|
patient_role_id: +v,
|
|
427
427
|
payment_split: i,
|
|
428
428
|
org_branch_id: +a.window_var.org_branch_id_for_seg,
|
|
429
|
-
refund_details:
|
|
429
|
+
refund_details: w
|
|
430
430
|
// refund_details={
|
|
431
431
|
// give_discount: true,
|
|
432
432
|
// existing_discount: '6',
|
|
@@ -438,19 +438,19 @@ const rl = {
|
|
|
438
438
|
} catch (A) {
|
|
439
439
|
return console.log(A), Promise.reject(A);
|
|
440
440
|
}
|
|
441
|
-
}, An = async (n, u, d, i, v,
|
|
441
|
+
}, An = async (n, u, d, i, v, w) => {
|
|
442
442
|
try {
|
|
443
|
-
const a = await bt(
|
|
444
|
-
`${li}?deleting_person_role_id=${
|
|
443
|
+
const a = await bt(w.token, w.envName).delete(
|
|
444
|
+
`${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}`
|
|
445
445
|
), { data: A } = a || {};
|
|
446
446
|
return Promise.resolve(A);
|
|
447
447
|
} catch (a) {
|
|
448
448
|
return console.log(a), Promise.reject(a);
|
|
449
449
|
}
|
|
450
|
-
}, Ul = async (n = "all", u, d = 1, i = 10, v = !1,
|
|
450
|
+
}, Ul = async (n = "all", u, d = 1, i = 10, v = !1, w) => {
|
|
451
451
|
try {
|
|
452
|
-
const a = await bt(
|
|
453
|
-
`${Cn}?appnt_date=${n}&patient_role_id=${u}&doctor_id=${
|
|
452
|
+
const a = await bt(w.token, w.envName).get(
|
|
453
|
+
`${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}`
|
|
454
454
|
), { data: A } = a || {};
|
|
455
455
|
return Promise.resolve(A);
|
|
456
456
|
} catch (a) {
|
|
@@ -461,12 +461,12 @@ const rl = {
|
|
|
461
461
|
const v = await bt(i.token, i.envName).get(
|
|
462
462
|
`${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}`
|
|
463
463
|
//&page_no=${page}&page_size=${limit}
|
|
464
|
-
), { data:
|
|
465
|
-
return Promise.resolve(
|
|
464
|
+
), { data: w } = v || {};
|
|
465
|
+
return Promise.resolve(w);
|
|
466
466
|
} catch (v) {
|
|
467
467
|
return console.log(v), Promise.reject(v);
|
|
468
468
|
}
|
|
469
|
-
}, zi = async (n, u, d, i, v,
|
|
469
|
+
}, zi = async (n, u, d, i, v, w, a) => {
|
|
470
470
|
try {
|
|
471
471
|
const A = {
|
|
472
472
|
doctor_id: +a.window_var.person_id_for_seg,
|
|
@@ -491,7 +491,7 @@ const rl = {
|
|
|
491
491
|
order_item_price: +n.order_item_price,
|
|
492
492
|
order_item_service_tax: Math.floor(n.order_item_service_tax),
|
|
493
493
|
order_unit_item_price: +n.order_unit_item_price,
|
|
494
|
-
is_partner_appointment:
|
|
494
|
+
is_partner_appointment: w
|
|
495
495
|
}, S = await bt(a.token, a.envName).post(
|
|
496
496
|
Pn,
|
|
497
497
|
{
|
|
@@ -504,7 +504,7 @@ const rl = {
|
|
|
504
504
|
}
|
|
505
505
|
}, Yi = async (n, u, d, i, v) => {
|
|
506
506
|
try {
|
|
507
|
-
const
|
|
507
|
+
const w = {
|
|
508
508
|
doctor_id: v.window_var.person_id_for_seg,
|
|
509
509
|
patient_role_id: i,
|
|
510
510
|
org_branch_id: +v.window_var.org_branch_id_for_seg,
|
|
@@ -529,11 +529,11 @@ const rl = {
|
|
|
529
529
|
order_item_service_tax: Math.floor(n.order_item_service_tax),
|
|
530
530
|
order_unit_item_price: +n.order_unit_item_price
|
|
531
531
|
}, a = await bt(v.token, v.envName).put(Pn, {
|
|
532
|
-
...
|
|
532
|
+
...w
|
|
533
533
|
}), { data: A } = a || {};
|
|
534
534
|
return Promise.resolve(A);
|
|
535
|
-
} catch (
|
|
536
|
-
return console.log(
|
|
535
|
+
} catch (w) {
|
|
536
|
+
return console.log(w), Promise.reject(w);
|
|
537
537
|
}
|
|
538
538
|
}, qi = async (n = "", u) => {
|
|
539
539
|
try {
|
|
@@ -565,9 +565,9 @@ const rl = {
|
|
|
565
565
|
drawing_board: !0
|
|
566
566
|
},
|
|
567
567
|
visit_id: d
|
|
568
|
-
},
|
|
568
|
+
}, w = await bt(i.token, i.envName).post(Xn, {
|
|
569
569
|
...v
|
|
570
|
-
}), { data: a } =
|
|
570
|
+
}), { data: a } = w || {};
|
|
571
571
|
return Promise.resolve(a);
|
|
572
572
|
} catch (v) {
|
|
573
573
|
return console.log(v), Promise.reject(v);
|
|
@@ -579,9 +579,9 @@ const rl = {
|
|
|
579
579
|
size: n.toString(),
|
|
580
580
|
lab_type: "ALL",
|
|
581
581
|
page: u.toString()
|
|
582
|
-
}),
|
|
582
|
+
}), w = await bt(i.enc_token, i.envName).get(
|
|
583
583
|
`${fi}?${v.toString()}`
|
|
584
|
-
), { data: a } =
|
|
584
|
+
), { data: a } = w || {};
|
|
585
585
|
if (!a || !a.status)
|
|
586
586
|
throw new Error(a?.message || "Failed to fetch lab orders.");
|
|
587
587
|
return Promise.resolve({
|
|
@@ -595,7 +595,7 @@ const rl = {
|
|
|
595
595
|
try {
|
|
596
596
|
if (!n || n.length === 0)
|
|
597
597
|
throw new Error("No result IDs provided to fetch lab details.");
|
|
598
|
-
const d = bt(u.enc_token, u.envName), i = n.map((A) => `result_ids=${encodeURIComponent(A)}`).join("&"), v = `${hi}?${i}`,
|
|
598
|
+
const d = bt(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 || {};
|
|
599
599
|
return Promise.resolve(a.data);
|
|
600
600
|
} catch (d) {
|
|
601
601
|
return console.error("Error fetching lab report details:", d), Promise.reject(d);
|
|
@@ -604,17 +604,17 @@ const rl = {
|
|
|
604
604
|
try {
|
|
605
605
|
const v = await bt(i.token, i.envName).get(
|
|
606
606
|
`${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}`
|
|
607
|
-
), { data:
|
|
607
|
+
), { data: w } = v || {}, { error: a } = w || {};
|
|
608
608
|
if (a)
|
|
609
609
|
throw new Error(a);
|
|
610
|
-
return Promise.resolve(
|
|
610
|
+
return Promise.resolve(w);
|
|
611
611
|
} catch (v) {
|
|
612
612
|
return console.log(v), Promise.reject(v);
|
|
613
613
|
}
|
|
614
614
|
}, Xi = async (n, u, d) => {
|
|
615
615
|
const { patientRoleID: i, patientID: v } = d || {};
|
|
616
616
|
try {
|
|
617
|
-
const
|
|
617
|
+
const w = await bt(u.token, u.envName).put(
|
|
618
618
|
Pi + "/" + i,
|
|
619
619
|
{
|
|
620
620
|
...n,
|
|
@@ -624,10 +624,10 @@ const rl = {
|
|
|
624
624
|
patient_role_id: i,
|
|
625
625
|
patient_id: v
|
|
626
626
|
}
|
|
627
|
-
), { data: a } =
|
|
627
|
+
), { data: a } = w || {};
|
|
628
628
|
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);
|
|
629
|
-
} catch (
|
|
630
|
-
return console.log(
|
|
629
|
+
} catch (w) {
|
|
630
|
+
return console.log(w), Promise.reject(w);
|
|
631
631
|
}
|
|
632
632
|
}, Ji = async (n) => {
|
|
633
633
|
try {
|
|
@@ -678,7 +678,7 @@ const rl = {
|
|
|
678
678
|
}
|
|
679
679
|
}, ls = async (n, u, d, i, v) => {
|
|
680
680
|
try {
|
|
681
|
-
const
|
|
681
|
+
const w = {
|
|
682
682
|
billing_person_id: v.window_var.person_id_for_seg,
|
|
683
683
|
billing_person_role_id: v.window_var.doctor_role_id_for_seg,
|
|
684
684
|
patient_role_id: i,
|
|
@@ -687,11 +687,11 @@ const rl = {
|
|
|
687
687
|
data: u,
|
|
688
688
|
payment_split: d
|
|
689
689
|
}, a = await bt(v.token, v.envName).post(si, {
|
|
690
|
-
...
|
|
690
|
+
...w
|
|
691
691
|
}), { data: A } = a || {};
|
|
692
692
|
return Promise.resolve(A);
|
|
693
|
-
} catch (
|
|
694
|
-
return console.log(
|
|
693
|
+
} catch (w) {
|
|
694
|
+
return console.log(w), Promise.reject(w);
|
|
695
695
|
}
|
|
696
696
|
}, as = async (n = "", u) => {
|
|
697
697
|
try {
|
|
@@ -713,19 +713,19 @@ const rl = {
|
|
|
713
713
|
is_lab_referral: !0
|
|
714
714
|
}, v = await bt(d.token, d.envName).post(jn, {
|
|
715
715
|
...i
|
|
716
|
-
}), { data:
|
|
717
|
-
return Promise.resolve(
|
|
716
|
+
}), { data: w } = v || {};
|
|
717
|
+
return Promise.resolve(w);
|
|
718
718
|
} catch (i) {
|
|
719
719
|
return console.log(i), Promise.reject(i);
|
|
720
720
|
}
|
|
721
721
|
}, is = async (n, u, d, i, v) => {
|
|
722
722
|
try {
|
|
723
|
-
const
|
|
723
|
+
const w = await bt(v.token, v.envName).delete(
|
|
724
724
|
`${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}`
|
|
725
|
-
), { data: a } =
|
|
725
|
+
), { data: a } = w || {};
|
|
726
726
|
return Promise.resolve(a);
|
|
727
|
-
} catch (
|
|
728
|
-
return console.log(
|
|
727
|
+
} catch (w) {
|
|
728
|
+
return console.log(w), Promise.reject(w);
|
|
729
729
|
}
|
|
730
730
|
}, $a = async (n, u, d, i) => {
|
|
731
731
|
try {
|
|
@@ -733,9 +733,9 @@ const rl = {
|
|
|
733
733
|
d.forEach((A, S) => {
|
|
734
734
|
v = "fields=" + A + (S < d.length - 1 ? "&" : "");
|
|
735
735
|
});
|
|
736
|
-
const
|
|
736
|
+
const w = await bt(i.token, i.envName).get(
|
|
737
737
|
`${ci}/${n}?branch_id=${i.window_var.org_branch_id_for_seg}&patient_role_id=${u}&${v}`
|
|
738
|
-
), { data: a } =
|
|
738
|
+
), { data: a } = w || {};
|
|
739
739
|
return Promise.resolve(a);
|
|
740
740
|
} catch (v) {
|
|
741
741
|
return console.log(v), Promise.reject(v);
|
|
@@ -750,8 +750,8 @@ const rl = {
|
|
|
750
750
|
const v = await bt(d.token, d.envName).post(
|
|
751
751
|
$n,
|
|
752
752
|
i
|
|
753
|
-
), { data:
|
|
754
|
-
return Promise.resolve(
|
|
753
|
+
), { data: w } = v || {};
|
|
754
|
+
return Promise.resolve(w);
|
|
755
755
|
} catch (v) {
|
|
756
756
|
return console.log(v), Promise.reject(v);
|
|
757
757
|
}
|
|
@@ -771,7 +771,7 @@ const rl = {
|
|
|
771
771
|
return console.log(i), Promise.reject(i);
|
|
772
772
|
}
|
|
773
773
|
}, os = async (n, u, d, i, v) => {
|
|
774
|
-
const
|
|
774
|
+
const w = {
|
|
775
775
|
abha_address: n,
|
|
776
776
|
otp: u,
|
|
777
777
|
patient_role_id: d,
|
|
@@ -781,7 +781,7 @@ const rl = {
|
|
|
781
781
|
try {
|
|
782
782
|
const a = await bt(v.token, v.envName).post(
|
|
783
783
|
pi,
|
|
784
|
-
|
|
784
|
+
w
|
|
785
785
|
), { data: A } = a || {};
|
|
786
786
|
return Promise.resolve(A);
|
|
787
787
|
} catch (a) {
|
|
@@ -888,8 +888,8 @@ const rl = {
|
|
|
888
888
|
try {
|
|
889
889
|
const v = await bt(i.enc_token, i.envName).get(
|
|
890
890
|
`${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`
|
|
891
|
-
), { data:
|
|
892
|
-
return Promise.resolve(
|
|
891
|
+
), { data: w } = v || {};
|
|
892
|
+
return Promise.resolve(w);
|
|
893
893
|
} catch (v) {
|
|
894
894
|
return console.log(v), Promise.reject(v);
|
|
895
895
|
}
|
|
@@ -898,10 +898,10 @@ const rl = {
|
|
|
898
898
|
const v = {
|
|
899
899
|
mode: Number(u),
|
|
900
900
|
transaction_type: d
|
|
901
|
-
},
|
|
901
|
+
}, w = await bt(i.token, i.envName).patch(
|
|
902
902
|
`${wn}/${n}`,
|
|
903
903
|
v
|
|
904
|
-
), { data: a } =
|
|
904
|
+
), { data: a } = w || {};
|
|
905
905
|
return Promise.resolve(a);
|
|
906
906
|
} catch (v) {
|
|
907
907
|
return console.log(v), Promise.reject(v);
|
|
@@ -913,7 +913,7 @@ function gs() {
|
|
|
913
913
|
(function(d, i) {
|
|
914
914
|
n.exports = i();
|
|
915
915
|
})(ms, function() {
|
|
916
|
-
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/,
|
|
916
|
+
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) {
|
|
917
917
|
return (D = +D) + (D > 68 ? 1900 : 2e3);
|
|
918
918
|
}, k = function(D) {
|
|
919
919
|
return function(P) {
|
|
@@ -945,14 +945,14 @@ function gs() {
|
|
|
945
945
|
this.month = 3 * (D - 1) + 1;
|
|
946
946
|
}], S: [v, function(D) {
|
|
947
947
|
this.milliseconds = 100 * +D;
|
|
948
|
-
}], SS: [
|
|
948
|
+
}], SS: [w, function(D) {
|
|
949
949
|
this.milliseconds = 10 * +D;
|
|
950
950
|
}], SSS: [/\d{3}/, function(D) {
|
|
951
951
|
this.milliseconds = +D;
|
|
952
|
-
}], 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: [
|
|
952
|
+
}], 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) {
|
|
953
953
|
var P = S.ordinal, T = D.match(/\d+/);
|
|
954
954
|
if (this.day = T[0], P) for (var b = 1; b <= 31; b += 1) P(b).replace(/\[|\]/g, "") === D && (this.day = b);
|
|
955
|
-
}], w: [a, k("week")], ww: [
|
|
955
|
+
}], w: [a, k("week")], ww: [w, k("week")], M: [a, k("month")], MM: [w, k("month")], MMM: [A, function(D) {
|
|
956
956
|
var P = L("months"), T = (L("monthsShort") || P.map(function(b) {
|
|
957
957
|
return b.slice(0, 3);
|
|
958
958
|
})).indexOf(D) + 1;
|
|
@@ -962,7 +962,7 @@ function gs() {
|
|
|
962
962
|
var P = L("months").indexOf(D) + 1;
|
|
963
963
|
if (P < 1) throw new Error();
|
|
964
964
|
this.month = P % 12 || P;
|
|
965
|
-
}], Y: [/[+-]?\d+/, k("year")], YY: [
|
|
965
|
+
}], Y: [/[+-]?\d+/, k("year")], YY: [w, function(D) {
|
|
966
966
|
this.year = h(D);
|
|
967
967
|
}], YYYY: [/\d{4}/, k("year")], Z: g, ZZ: g };
|
|
968
968
|
function I(D) {
|
|
@@ -1048,7 +1048,7 @@ const Tn = (...n) => {
|
|
|
1048
1048
|
return !1;
|
|
1049
1049
|
}
|
|
1050
1050
|
return u;
|
|
1051
|
-
}, Bn = async (n, u = !0, d, i, v,
|
|
1051
|
+
}, Bn = async (n, u = !0, d, i, v, w, a, A = !1, S) => {
|
|
1052
1052
|
let h = {
|
|
1053
1053
|
appnt_id: 0,
|
|
1054
1054
|
error: "",
|
|
@@ -1132,14 +1132,14 @@ const Tn = (...n) => {
|
|
|
1132
1132
|
} catch {
|
|
1133
1133
|
d("Error", "Something went wrong while creating/updating appointment", "Error", 3e3);
|
|
1134
1134
|
}
|
|
1135
|
-
}, Za = async (n, u, d, i, v,
|
|
1135
|
+
}, Za = async (n, u, d, i, v, w = Nt[0], a) => {
|
|
1136
1136
|
let A = {};
|
|
1137
1137
|
try {
|
|
1138
|
-
if (
|
|
1138
|
+
if (w === Nt[0] && !n.appnt_doctor_role_id) {
|
|
1139
1139
|
u("Error", "Doctor name is missing", "Error", 3e3);
|
|
1140
1140
|
return;
|
|
1141
1141
|
}
|
|
1142
|
-
if (
|
|
1142
|
+
if (w === Nt[0]) {
|
|
1143
1143
|
const I = n.appnt_time_time + " " + n.appnt_time_format;
|
|
1144
1144
|
if (!new RegExp(/^(0?[1-9]|1[012])(:[0-5]\d) [APap][mM]$/).test(I)) {
|
|
1145
1145
|
u("Error", "Error in time format", "Error", 3e3);
|
|
@@ -1192,14 +1192,14 @@ const Tn = (...n) => {
|
|
|
1192
1192
|
u,
|
|
1193
1193
|
["payments"],
|
|
1194
1194
|
d
|
|
1195
|
-
), v = Array.isArray(i?.payments) ? i.payments : [],
|
|
1195
|
+
), v = Array.isArray(i?.payments) ? i.payments : [], w = [
|
|
1196
1196
|
...new Set(
|
|
1197
1197
|
v.map((a) => vr[a.mode]).filter((a) => typeof a == "string")
|
|
1198
1198
|
)
|
|
1199
1199
|
];
|
|
1200
1200
|
return {
|
|
1201
1201
|
lab_owner_name: i?.lab_owner_name ?? "",
|
|
1202
|
-
paymentModes:
|
|
1202
|
+
paymentModes: w
|
|
1203
1203
|
};
|
|
1204
1204
|
} catch (i) {
|
|
1205
1205
|
return console.error("Error in fetching payment modes from bill id:", i), null;
|
|
@@ -1241,7 +1241,7 @@ const Tn = (...n) => {
|
|
|
1241
1241
|
systemic: "SystemicExaminations",
|
|
1242
1242
|
pickle: "GeneralExaminations",
|
|
1243
1243
|
assessment: "Assessment",
|
|
1244
|
-
glassPrescription: "",
|
|
1244
|
+
glassPrescription: "Opthal",
|
|
1245
1245
|
pediatrics: "",
|
|
1246
1246
|
jointExamination: "",
|
|
1247
1247
|
customField: "",
|
|
@@ -1258,13 +1258,13 @@ const Tn = (...n) => {
|
|
|
1258
1258
|
let d = {};
|
|
1259
1259
|
try {
|
|
1260
1260
|
d = JSON.parse(u);
|
|
1261
|
-
} catch (
|
|
1262
|
-
return console.error("Failed to parse visit_pad_json:",
|
|
1261
|
+
} catch (w) {
|
|
1262
|
+
return console.error("Failed to parse visit_pad_json:", w), [];
|
|
1263
1263
|
}
|
|
1264
1264
|
const i = Array.isArray(n) ? n : n.split(","), v = [];
|
|
1265
|
-
return i.forEach((
|
|
1265
|
+
return i.forEach((w) => {
|
|
1266
1266
|
let a = "";
|
|
1267
|
-
switch (
|
|
1267
|
+
switch (w) {
|
|
1268
1268
|
case "nextvisit":
|
|
1269
1269
|
a = "use_next_visit";
|
|
1270
1270
|
break;
|
|
@@ -1334,12 +1334,15 @@ const Tn = (...n) => {
|
|
|
1334
1334
|
case "drawing_board":
|
|
1335
1335
|
a = "drawing_board";
|
|
1336
1336
|
break;
|
|
1337
|
+
case "glassPrescription":
|
|
1338
|
+
a = "glass_presc_include";
|
|
1339
|
+
break;
|
|
1337
1340
|
default:
|
|
1338
|
-
a = "use_" +
|
|
1341
|
+
a = "use_" + w;
|
|
1339
1342
|
}
|
|
1340
1343
|
const A = d?.[a];
|
|
1341
|
-
A && (
|
|
1342
|
-
}), v.map((
|
|
1344
|
+
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));
|
|
1345
|
+
}), v.map((w) => ys[w] || w);
|
|
1343
1346
|
}, 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 = "") => {
|
|
1344
1347
|
const u = new Date(n), i = Math.abs((/* @__PURE__ */ new Date()).getTime() - u.getTime()), v = Math.ceil(i / (1e3 * 60 * 60 * 24));
|
|
1345
1348
|
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`;
|
|
@@ -1353,12 +1356,12 @@ const Tn = (...n) => {
|
|
|
1353
1356
|
return "";
|
|
1354
1357
|
}
|
|
1355
1358
|
}, Cs = (n) => {
|
|
1356
|
-
const { handleCurrentWindow: u, setShowPatientPopModal: d, patientIDs: i, redirectionPage: v, closePrintModal:
|
|
1359
|
+
const { handleCurrentWindow: u, setShowPatientPopModal: d, patientIDs: i, redirectionPage: v, closePrintModal: w } = n, a = Lt(Mt);
|
|
1357
1360
|
if (!a)
|
|
1358
1361
|
throw new Error("PatientPopupHeader must be used within an AppContext.Provider");
|
|
1359
1362
|
const { currentWindow: A, patientDetails: S, docPreference: h, billPreferences: k, setLastBillPaymentData: g, variable: L } = a, { name: V, age: W, gender: I, image_link: D, org_person_bid_str: P, org_person_dob: T, honorific: b } = S || {};
|
|
1360
1363
|
window.patientPopupClosehandler = () => {
|
|
1361
|
-
if (d(!1),
|
|
1364
|
+
if (d(!1), w(), g({
|
|
1362
1365
|
created_on: "",
|
|
1363
1366
|
category_name: ""
|
|
1364
1367
|
}), window.location.pathname.indexOf("/frontdesk/") !== -1) {
|
|
@@ -1367,7 +1370,7 @@ const Tn = (...n) => {
|
|
|
1367
1370
|
}
|
|
1368
1371
|
};
|
|
1369
1372
|
const ee = () => {
|
|
1370
|
-
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),
|
|
1373
|
+
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();
|
|
1371
1374
|
};
|
|
1372
1375
|
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: [
|
|
1373
1376
|
/* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-justify-center hfl-gap-[13px]", children: [
|
|
@@ -1572,7 +1575,7 @@ const Tn = (...n) => {
|
|
|
1572
1575
|
/* @__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" }) }),
|
|
1573
1576
|
/* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-justify-end hfl-pt-[160px] ", children: /* @__PURE__ */ e.jsx(Le, { hierarchy: "Primary", size: "lg", textField: "Send Message" }) })
|
|
1574
1577
|
] }), js = (n) => {
|
|
1575
|
-
const { patientAbhaDetails: u, savePatientDetailsHandler: d, setPatientAbhaDetails: i, patientData: v } = n, { showToast:
|
|
1578
|
+
const { patientAbhaDetails: u, savePatientDetailsHandler: d, setPatientAbhaDetails: i, patientData: v } = n, { showToast: w, patientIDs: a, variable: A } = Lt(Mt) || {}, [S, h] = U(""), [k, g] = U(""), [L, V] = U(), W = async (I = !1) => {
|
|
1576
1579
|
try {
|
|
1577
1580
|
if (L?.status && !I) {
|
|
1578
1581
|
const D = await os(
|
|
@@ -1591,10 +1594,10 @@ const Tn = (...n) => {
|
|
|
1591
1594
|
) : v?.org_person_dob;
|
|
1592
1595
|
d(D.PatientDetails[0].name, T || "");
|
|
1593
1596
|
} else
|
|
1594
|
-
|
|
1597
|
+
w("Error", D.error, "Error", 3e3);
|
|
1595
1598
|
} else {
|
|
1596
1599
|
const D = await ss(S, A);
|
|
1597
|
-
V(D), D.status ||
|
|
1600
|
+
V(D), D.status || w("Error", D.error, "Error", 3e3);
|
|
1598
1601
|
}
|
|
1599
1602
|
} catch (D) {
|
|
1600
1603
|
console.error("Error while generating OTP", D);
|
|
@@ -1716,7 +1719,7 @@ const Tn = (...n) => {
|
|
|
1716
1719
|
setPatientData: d,
|
|
1717
1720
|
preferences: i,
|
|
1718
1721
|
referredByDocList: v,
|
|
1719
|
-
throughChannelList:
|
|
1722
|
+
throughChannelList: w,
|
|
1720
1723
|
showImageFromLink: a,
|
|
1721
1724
|
validators: A,
|
|
1722
1725
|
setValidators: S,
|
|
@@ -1793,9 +1796,9 @@ const Tn = (...n) => {
|
|
|
1793
1796
|
} else
|
|
1794
1797
|
return [];
|
|
1795
1798
|
}, wt = (E) => {
|
|
1796
|
-
if (
|
|
1797
|
-
let ve =
|
|
1798
|
-
return E?.length && (ve =
|
|
1799
|
+
if (w?.length) {
|
|
1800
|
+
let ve = w;
|
|
1801
|
+
return E?.length && (ve = w.filter(
|
|
1799
1802
|
(Rt) => Rt.title.toLowerCase().includes(E.toLowerCase())
|
|
1800
1803
|
// last keyboad input after ,
|
|
1801
1804
|
)), ve;
|
|
@@ -2662,7 +2665,7 @@ const Tn = (...n) => {
|
|
|
2662
2665
|
] })
|
|
2663
2666
|
] }) });
|
|
2664
2667
|
}), Ss = (n) => {
|
|
2665
|
-
const { getPatientDetails: u, setPatientAbhaDetails: d, patientAbhaDetails: i, isPartnerServiceEnabled: v, partnerConfig:
|
|
2668
|
+
const { getPatientDetails: u, setPatientAbhaDetails: d, patientAbhaDetails: i, isPartnerServiceEnabled: v, partnerConfig: w } = n, [a, A] = U(""), [S, h] = U(!1), [k, g] = U(!1), [L, V] = U(!1), [W, I] = U([]), [D, P] = U([]), T = Mr(null), b = Mr(null), [ee, B] = U("profile"), {
|
|
2666
2669
|
docPreference: H,
|
|
2667
2670
|
patientDetails: z,
|
|
2668
2671
|
preferences: Q,
|
|
@@ -2762,7 +2765,7 @@ const Tn = (...n) => {
|
|
|
2762
2765
|
Fe?.current?.scrollIntoView({ behavior: "smooth" });
|
|
2763
2766
|
}, [M.partner_name]);
|
|
2764
2767
|
const Ue = async (se) => {
|
|
2765
|
-
if (
|
|
2768
|
+
if (w && w[se?.partner_name]?.verify_insurance?.enable) {
|
|
2766
2769
|
const Be = await fs(
|
|
2767
2770
|
{
|
|
2768
2771
|
...se,
|
|
@@ -2831,7 +2834,7 @@ const Tn = (...n) => {
|
|
|
2831
2834
|
isAbhaVerified: i?.patient_details_mongo?.length,
|
|
2832
2835
|
isPartnerServiceEnabled: v,
|
|
2833
2836
|
insuranceData: tt,
|
|
2834
|
-
partnerConfig:
|
|
2837
|
+
partnerConfig: w,
|
|
2835
2838
|
verifyInsuranceHandler: Ue,
|
|
2836
2839
|
policyNumberErrorMessage: X,
|
|
2837
2840
|
selectedInsuranceDetails: M,
|
|
@@ -3022,24 +3025,24 @@ function Ds() {
|
|
|
3022
3025
|
(function(d, i) {
|
|
3023
3026
|
i(u, ol);
|
|
3024
3027
|
})(Ns, function(d, i) {
|
|
3025
|
-
function v(t, o, f, p,
|
|
3028
|
+
function v(t, o, f, p, C, _, R) {
|
|
3026
3029
|
try {
|
|
3027
3030
|
var q = t[_](R), K = q.value;
|
|
3028
3031
|
} catch (te) {
|
|
3029
3032
|
return void f(te);
|
|
3030
3033
|
}
|
|
3031
|
-
q.done ? o(K) : Promise.resolve(K).then(p,
|
|
3034
|
+
q.done ? o(K) : Promise.resolve(K).then(p, C);
|
|
3032
3035
|
}
|
|
3033
|
-
function
|
|
3036
|
+
function w(t) {
|
|
3034
3037
|
return function() {
|
|
3035
3038
|
var o = this, f = arguments;
|
|
3036
|
-
return new Promise(function(p,
|
|
3039
|
+
return new Promise(function(p, C) {
|
|
3037
3040
|
var _ = t.apply(o, f);
|
|
3038
3041
|
function R(K) {
|
|
3039
|
-
v(_, p,
|
|
3042
|
+
v(_, p, C, R, q, "next", K);
|
|
3040
3043
|
}
|
|
3041
3044
|
function q(K) {
|
|
3042
|
-
v(_, p,
|
|
3045
|
+
v(_, p, C, R, q, "throw", K);
|
|
3043
3046
|
}
|
|
3044
3047
|
R(void 0);
|
|
3045
3048
|
});
|
|
@@ -3056,16 +3059,16 @@ function Ds() {
|
|
|
3056
3059
|
}
|
|
3057
3060
|
function A(t, o) {
|
|
3058
3061
|
if (t == null) return {};
|
|
3059
|
-
var f, p,
|
|
3060
|
-
for (p = 0; p < _.length; p++) f = _[p], o.indexOf(f) >= 0 || (
|
|
3061
|
-
return
|
|
3062
|
+
var f, p, C = {}, _ = Object.keys(t);
|
|
3063
|
+
for (p = 0; p < _.length; p++) f = _[p], o.indexOf(f) >= 0 || (C[f] = t[f]);
|
|
3064
|
+
return C;
|
|
3062
3065
|
}
|
|
3063
3066
|
function S(t) {
|
|
3064
3067
|
var o = function(f, p) {
|
|
3065
3068
|
if (typeof f != "object" || f === null) return f;
|
|
3066
|
-
var
|
|
3067
|
-
if (
|
|
3068
|
-
var _ =
|
|
3069
|
+
var C = f[Symbol.toPrimitive];
|
|
3070
|
+
if (C !== void 0) {
|
|
3071
|
+
var _ = C.call(f, p);
|
|
3069
3072
|
if (typeof _ != "object") return _;
|
|
3070
3073
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3071
3074
|
}
|
|
@@ -3082,22 +3085,22 @@ function Ds() {
|
|
|
3082
3085
|
}, L = { Cell: k, width: 150, minWidth: 0, maxWidth: Number.MAX_SAFE_INTEGER };
|
|
3083
3086
|
function V() {
|
|
3084
3087
|
for (var t = arguments.length, o = new Array(t), f = 0; f < t; f++) o[f] = arguments[f];
|
|
3085
|
-
return o.reduce(function(p,
|
|
3086
|
-
var _ =
|
|
3087
|
-
return p = a({}, p, {}, A(
|
|
3088
|
+
return o.reduce(function(p, C) {
|
|
3089
|
+
var _ = C.style, R = C.className;
|
|
3090
|
+
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;
|
|
3088
3091
|
}, {});
|
|
3089
3092
|
}
|
|
3090
3093
|
var W = function(t, o) {
|
|
3091
3094
|
return o === void 0 && (o = {}), function(f) {
|
|
3092
|
-
return f === void 0 && (f = {}), [].concat(t, [f]).reduce(function(p,
|
|
3095
|
+
return f === void 0 && (f = {}), [].concat(t, [f]).reduce(function(p, C) {
|
|
3093
3096
|
return function _(R, q, K) {
|
|
3094
3097
|
return typeof q == "function" ? _({}, q(R, K)) : Array.isArray(q) ? V.apply(void 0, [R].concat(q)) : V(R, q);
|
|
3095
|
-
}(p,
|
|
3098
|
+
}(p, C, a({}, o, { userProps: f }));
|
|
3096
3099
|
}, {});
|
|
3097
3100
|
};
|
|
3098
3101
|
}, I = function(t, o, f, p) {
|
|
3099
|
-
return f === void 0 && (f = {}), t.reduce(function(
|
|
3100
|
-
return _(
|
|
3102
|
+
return f === void 0 && (f = {}), t.reduce(function(C, _) {
|
|
3103
|
+
return _(C, f);
|
|
3101
3104
|
}, o);
|
|
3102
3105
|
}, D = function(t, o, f) {
|
|
3103
3106
|
return f === void 0 && (f = {}), t.forEach(function(p) {
|
|
@@ -3105,11 +3108,11 @@ function Ds() {
|
|
|
3105
3108
|
});
|
|
3106
3109
|
};
|
|
3107
3110
|
function P(t, o, f, p) {
|
|
3108
|
-
t.findIndex(function(
|
|
3109
|
-
return
|
|
3110
|
-
}), o.forEach(function(
|
|
3111
|
+
t.findIndex(function(C) {
|
|
3112
|
+
return C.pluginName === f;
|
|
3113
|
+
}), o.forEach(function(C) {
|
|
3111
3114
|
t.findIndex(function(_) {
|
|
3112
|
-
return _.pluginName ===
|
|
3115
|
+
return _.pluginName === C;
|
|
3113
3116
|
});
|
|
3114
3117
|
});
|
|
3115
3118
|
}
|
|
@@ -3130,17 +3133,17 @@ function Ds() {
|
|
|
3130
3133
|
}, o);
|
|
3131
3134
|
}
|
|
3132
3135
|
function H(t, o, f) {
|
|
3133
|
-
return f === void 0 && (f = {}), function(p,
|
|
3134
|
-
|
|
3136
|
+
return f === void 0 && (f = {}), function(p, C) {
|
|
3137
|
+
C === void 0 && (C = {});
|
|
3135
3138
|
var _ = typeof p == "string" ? o[p] : p;
|
|
3136
3139
|
if (_ === void 0) throw console.info(o), new Error("Renderer Error ☝️");
|
|
3137
|
-
return z(_, a({}, t, { column: o }, f, {},
|
|
3140
|
+
return z(_, a({}, t, { column: o }, f, {}, C));
|
|
3138
3141
|
};
|
|
3139
3142
|
}
|
|
3140
3143
|
function z(t, o) {
|
|
3141
3144
|
return function(p) {
|
|
3142
|
-
return typeof p == "function" && (
|
|
3143
|
-
var
|
|
3145
|
+
return typeof p == "function" && (C = Object.getPrototypeOf(p)).prototype && C.prototype.isReactComponent;
|
|
3146
|
+
var C;
|
|
3144
3147
|
}(f = t) || typeof f == "function" || function(p) {
|
|
3145
3148
|
return typeof p == "object" && typeof p.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(p.$$typeof.description);
|
|
3146
3149
|
}(f) ? i.createElement(t, o) : t;
|
|
@@ -3158,7 +3161,7 @@ function Ds() {
|
|
|
3158
3161
|
var o = t.id, f = t.accessor, p = t.Header;
|
|
3159
3162
|
if (typeof f == "string") {
|
|
3160
3163
|
o = o || f;
|
|
3161
|
-
var
|
|
3164
|
+
var C = f.split(".");
|
|
3162
3165
|
f = function(_) {
|
|
3163
3166
|
return function(R, q, K) {
|
|
3164
3167
|
if (!q) return R;
|
|
@@ -3181,7 +3184,7 @@ function Ds() {
|
|
|
3181
3184
|
} catch {
|
|
3182
3185
|
}
|
|
3183
3186
|
return te !== void 0 ? te : K;
|
|
3184
|
-
}(_,
|
|
3187
|
+
}(_, C);
|
|
3185
3188
|
};
|
|
3186
3189
|
}
|
|
3187
3190
|
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!');
|
|
@@ -3196,17 +3199,17 @@ function Ds() {
|
|
|
3196
3199
|
f === void 0 && (f = function() {
|
|
3197
3200
|
return {};
|
|
3198
3201
|
});
|
|
3199
|
-
for (var p = [],
|
|
3202
|
+
for (var p = [], C = t, _ = 0, R = function() {
|
|
3200
3203
|
return _++;
|
|
3201
3204
|
}, q = function() {
|
|
3202
|
-
var K = { headers: [] }, te = [], ge =
|
|
3205
|
+
var K = { headers: [] }, te = [], ge = C.some(function(ue) {
|
|
3203
3206
|
return ue.parent;
|
|
3204
3207
|
});
|
|
3205
|
-
|
|
3208
|
+
C.forEach(function(ue) {
|
|
3206
3209
|
var fe, ae = [].concat(te).reverse()[0];
|
|
3207
3210
|
ge && (ue.parent ? fe = a({}, ue.parent, { originalId: ue.parent.id, id: ue.parent.id + "_" + R(), headers: [ue] }, f(ue)) : fe = O(a({ originalId: ue.id + "_placeholder", id: ue.id + "_placeholder_" + R(), placeholderOf: ue, headers: [ue] }, f(ue)), o), ae && ae.originalId === fe.originalId ? ae.headers.push(ue) : te.push(fe)), K.headers.push(ue);
|
|
3208
|
-
}), p.push(K),
|
|
3209
|
-
};
|
|
3211
|
+
}), p.push(K), C = te;
|
|
3212
|
+
}; C.length; ) q();
|
|
3210
3213
|
return p.reverse();
|
|
3211
3214
|
}
|
|
3212
3215
|
var we = /* @__PURE__ */ new Map();
|
|
@@ -3219,14 +3222,14 @@ function Ds() {
|
|
|
3219
3222
|
}
|
|
3220
3223
|
function he(t, o) {
|
|
3221
3224
|
var f = [];
|
|
3222
|
-
return function p(
|
|
3223
|
-
|
|
3225
|
+
return function p(C) {
|
|
3226
|
+
C.forEach(function(_) {
|
|
3224
3227
|
_[o] ? p(_[o]) : f.push(_);
|
|
3225
3228
|
});
|
|
3226
3229
|
}(t), f;
|
|
3227
3230
|
}
|
|
3228
3231
|
function X(t, o) {
|
|
3229
|
-
var f = o.manualExpandedKey, p = o.expanded,
|
|
3232
|
+
var f = o.manualExpandedKey, p = o.expanded, C = o.expandSubRows, _ = C === void 0 || C, R = [];
|
|
3230
3233
|
return t.forEach(function(q) {
|
|
3231
3234
|
return function K(te, ge) {
|
|
3232
3235
|
ge === void 0 && (ge = !0), te.isExpanded = te.original && te.original[f] || p[te.id], te.canExpand = te.subRows && !!te.subRows.length, ge && R.push(te), te.subRows && te.subRows.length && te.isExpanded && te.subRows.forEach(function(ue) {
|
|
@@ -3290,10 +3293,10 @@ function Ds() {
|
|
|
3290
3293
|
if (o.type === h.init) return a({ hiddenColumns: [] }, t);
|
|
3291
3294
|
if (o.type === h.resetHiddenColumns) return a({}, t, { hiddenColumns: p.initialState.hiddenColumns || [] });
|
|
3292
3295
|
if (o.type === h.toggleHideColumn) {
|
|
3293
|
-
var
|
|
3296
|
+
var C = (o.value !== void 0 ? o.value : !t.hiddenColumns.includes(o.columnId)) ? [].concat(t.hiddenColumns, [o.columnId]) : t.hiddenColumns.filter(function(_) {
|
|
3294
3297
|
return _ !== o.columnId;
|
|
3295
3298
|
});
|
|
3296
|
-
return a({}, t, { hiddenColumns:
|
|
3299
|
+
return a({}, t, { hiddenColumns: C });
|
|
3297
3300
|
}
|
|
3298
3301
|
return o.type === h.setHiddenColumns ? a({}, t, { hiddenColumns: T(o.value, t.hiddenColumns) }) : o.type === h.toggleHideAllColumns ? a({}, t, { hiddenColumns: (o.value !== void 0 ? o.value : !t.hiddenColumns.length) ? p.allColumns.map(function(_) {
|
|
3299
3302
|
return _.id;
|
|
@@ -3303,18 +3306,18 @@ function Ds() {
|
|
|
3303
3306
|
var o = t.headers, f = t.state.hiddenColumns;
|
|
3304
3307
|
i.useRef(!1).current;
|
|
3305
3308
|
var p = 0;
|
|
3306
|
-
o.forEach(function(
|
|
3309
|
+
o.forEach(function(C) {
|
|
3307
3310
|
return p += function _(R, q) {
|
|
3308
3311
|
R.isVisible = q && !f.includes(R.id);
|
|
3309
3312
|
var K = 0;
|
|
3310
3313
|
return R.headers && R.headers.length ? R.headers.forEach(function(te) {
|
|
3311
3314
|
return K += _(te, R.isVisible);
|
|
3312
3315
|
}) : K = R.isVisible ? 1 : 0, R.totalVisibleHeaderCount = K, K;
|
|
3313
|
-
}(
|
|
3316
|
+
}(C, !0);
|
|
3314
3317
|
});
|
|
3315
3318
|
}
|
|
3316
3319
|
function se(t) {
|
|
3317
|
-
var o = t.columns, f = t.flatHeaders, p = t.dispatch,
|
|
3320
|
+
var o = t.columns, f = t.flatHeaders, p = t.dispatch, C = t.allColumns, _ = t.getHooks, R = t.state.hiddenColumns, q = t.autoResetHiddenColumns, K = q === void 0 || q, te = b(t), ge = C.length === R.length, ue = i.useCallback(function(Se, ke) {
|
|
3318
3321
|
return p({ type: h.toggleHideColumn, columnId: Se, value: ke });
|
|
3319
3322
|
}, [p]), fe = i.useCallback(function(Se) {
|
|
3320
3323
|
return p({ type: h.setHiddenColumns, value: Se });
|
|
@@ -3341,31 +3344,31 @@ function Ds() {
|
|
|
3341
3344
|
return t;
|
|
3342
3345
|
};
|
|
3343
3346
|
function Vt(t) {
|
|
3344
|
-
var o = t.initialState, f = o === void 0 ? Be : o, p = t.defaultColumn,
|
|
3345
|
-
return a({}, A(t, ["initialState", "defaultColumn", "getSubRows", "getRowId", "stateReducer", "useControlledState"]), { initialState: f, defaultColumn:
|
|
3347
|
+
var o = t.initialState, f = o === void 0 ? Be : o, p = t.defaultColumn, C = p === void 0 ? Pe : p, _ = t.getSubRows, R = _ === void 0 ? nr : _, q = t.getRowId, K = q === void 0 ? _t : q, te = t.stateReducer, ge = te === void 0 ? mt : te, ue = t.useControlledState, fe = ue === void 0 ? Xt : ue;
|
|
3348
|
+
return a({}, A(t, ["initialState", "defaultColumn", "getSubRows", "getRowId", "stateReducer", "useControlledState"]), { initialState: f, defaultColumn: C, getSubRows: R, getRowId: K, stateReducer: ge, useControlledState: fe });
|
|
3346
3349
|
}
|
|
3347
3350
|
function sr(t, o) {
|
|
3348
3351
|
o === void 0 && (o = 0);
|
|
3349
|
-
var f = 0, p = 0,
|
|
3352
|
+
var f = 0, p = 0, C = 0, _ = 0;
|
|
3350
3353
|
return t.forEach(function(R) {
|
|
3351
3354
|
var q = R.headers;
|
|
3352
3355
|
if (R.totalLeft = o, q && q.length) {
|
|
3353
3356
|
var K = sr(q, o), te = K[0], ge = K[1], ue = K[2], fe = K[3];
|
|
3354
3357
|
R.totalMinWidth = te, R.totalWidth = ge, R.totalMaxWidth = ue, R.totalFlexWidth = fe;
|
|
3355
3358
|
} 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;
|
|
3356
|
-
R.isVisible && (o += R.totalWidth, f += R.totalMinWidth, p += R.totalWidth,
|
|
3357
|
-
}), [f, p,
|
|
3359
|
+
R.isVisible && (o += R.totalWidth, f += R.totalMinWidth, p += R.totalWidth, C += R.totalMaxWidth, _ += R.totalFlexWidth);
|
|
3360
|
+
}), [f, p, C, _];
|
|
3358
3361
|
}
|
|
3359
3362
|
function or(t) {
|
|
3360
|
-
var o = t.data, f = t.rows, p = t.flatRows,
|
|
3363
|
+
var o = t.data, f = t.rows, p = t.flatRows, C = t.rowsById, _ = t.column, R = t.getRowId, q = t.getSubRows, K = t.accessValueHooks, te = t.getInstance;
|
|
3361
3364
|
o.forEach(function(ge, ue) {
|
|
3362
3365
|
return function fe(ae, de, Ce, Se, ke) {
|
|
3363
3366
|
Ce === void 0 && (Ce = 0);
|
|
3364
|
-
var at = ae, Ve = R(ae, de, Se), xe =
|
|
3367
|
+
var at = ae, Ve = R(ae, de, Se), xe = C[Ve];
|
|
3365
3368
|
if (xe) xe.subRows && xe.originalSubRows.forEach(function(Ee, Je) {
|
|
3366
3369
|
return fe(Ee, Je, Ce + 1, xe);
|
|
3367
3370
|
});
|
|
3368
|
-
else if ((xe = { id: Ve, original: at, index: de, depth: Ce, cells: [{}] }).cells.map = Ae, xe.cells.filter = Ae, xe.cells.forEach = Ae, xe.cells[0].getCellProps = Ae, xe.values = {}, ke.push(xe), p.push(xe),
|
|
3371
|
+
else if ((xe = { id: Ve, original: at, index: de, depth: Ce, cells: [{}] }).cells.map = Ae, xe.cells.filter = Ae, xe.cells.forEach = Ae, xe.cells[0].getCellProps = Ae, xe.values = {}, ke.push(xe), p.push(xe), C[Ve] = xe, xe.originalSubRows = q(ae, de), xe.originalSubRows) {
|
|
3369
3372
|
var rt = [];
|
|
3370
3373
|
xe.originalSubRows.forEach(function(Ee, Je) {
|
|
3371
3374
|
return fe(Ee, Je, Ce + 1, xe, rt);
|
|
@@ -3395,8 +3398,8 @@ function Ds() {
|
|
|
3395
3398
|
if (o.type === h.init) return a({ expanded: {} }, t);
|
|
3396
3399
|
if (o.type === h.resetExpanded) return a({}, t, { expanded: p.initialState.expanded || {} });
|
|
3397
3400
|
if (o.type === h.toggleAllRowsExpanded) {
|
|
3398
|
-
var
|
|
3399
|
-
if (
|
|
3401
|
+
var C = o.value, _ = p.rowsById, R = Object.keys(_).length === Object.keys(t.expanded).length;
|
|
3402
|
+
if (C !== void 0 ? C : !R) {
|
|
3400
3403
|
var q = {};
|
|
3401
3404
|
return Object.keys(_).forEach(function(de) {
|
|
3402
3405
|
q[de] = !0;
|
|
@@ -3415,7 +3418,7 @@ function Ds() {
|
|
|
3415
3418
|
}
|
|
3416
3419
|
}
|
|
3417
3420
|
function yt(t) {
|
|
3418
|
-
var o = t.data, f = t.rows, p = t.rowsById,
|
|
3421
|
+
var o = t.data, f = t.rows, p = t.rowsById, C = t.manualExpandedKey, _ = C === void 0 ? "expanded" : C, R = t.paginateExpandedRows, q = R === void 0 || R, K = t.expandSubRows, te = K === void 0 || K, ge = t.autoResetExpanded, ue = ge === void 0 || ge, fe = t.getHooks, ae = t.plugins, de = t.state.expanded, Ce = t.dispatch;
|
|
3419
3422
|
P(ae, ["useSortBy", "useGroupBy", "usePivotColumns", "useGlobalFilter"], "useExpanded");
|
|
3420
3423
|
var Se = b(ue), ke = !!(Object.keys(p).length && Object.keys(de).length);
|
|
3421
3424
|
ke && Object.keys(p).some(function(vt) {
|
|
@@ -3442,14 +3445,14 @@ function Ds() {
|
|
|
3442
3445
|
}
|
|
3443
3446
|
function cr(t, o) {
|
|
3444
3447
|
var f = o.instance.getHooks, p = o.instance;
|
|
3445
|
-
t.toggleRowExpanded = function(
|
|
3446
|
-
return p.toggleRowExpanded(t.id,
|
|
3448
|
+
t.toggleRowExpanded = function(C) {
|
|
3449
|
+
return p.toggleRowExpanded(t.id, C);
|
|
3447
3450
|
}, t.getToggleRowExpandedProps = W(f().getToggleRowExpandedProps, { instance: p, row: t });
|
|
3448
3451
|
}
|
|
3449
3452
|
var yr = function(t, o, f) {
|
|
3450
3453
|
return t = t.filter(function(p) {
|
|
3451
|
-
return o.some(function(
|
|
3452
|
-
var _ = p.values[
|
|
3454
|
+
return o.some(function(C) {
|
|
3455
|
+
var _ = p.values[C];
|
|
3453
3456
|
return String(_).toLowerCase().includes(String(f).toLowerCase());
|
|
3454
3457
|
});
|
|
3455
3458
|
});
|
|
@@ -3459,8 +3462,8 @@ function Ds() {
|
|
|
3459
3462
|
};
|
|
3460
3463
|
var Rr = function(t, o, f) {
|
|
3461
3464
|
return t.filter(function(p) {
|
|
3462
|
-
return o.some(function(
|
|
3463
|
-
var _ = p.values[
|
|
3465
|
+
return o.some(function(C) {
|
|
3466
|
+
var _ = p.values[C];
|
|
3464
3467
|
return _ === void 0 || String(_).toLowerCase() === String(f).toLowerCase();
|
|
3465
3468
|
});
|
|
3466
3469
|
});
|
|
@@ -3470,8 +3473,8 @@ function Ds() {
|
|
|
3470
3473
|
};
|
|
3471
3474
|
var gr = function(t, o, f) {
|
|
3472
3475
|
return t.filter(function(p) {
|
|
3473
|
-
return o.some(function(
|
|
3474
|
-
var _ = p.values[
|
|
3476
|
+
return o.some(function(C) {
|
|
3477
|
+
var _ = p.values[C];
|
|
3475
3478
|
return _ === void 0 || String(_) === String(f);
|
|
3476
3479
|
});
|
|
3477
3480
|
});
|
|
@@ -3481,8 +3484,8 @@ function Ds() {
|
|
|
3481
3484
|
};
|
|
3482
3485
|
var jr = function(t, o, f) {
|
|
3483
3486
|
return t.filter(function(p) {
|
|
3484
|
-
return o.some(function(
|
|
3485
|
-
return p.values[
|
|
3487
|
+
return o.some(function(C) {
|
|
3488
|
+
return p.values[C].includes(f);
|
|
3486
3489
|
});
|
|
3487
3490
|
});
|
|
3488
3491
|
};
|
|
@@ -3491,8 +3494,8 @@ function Ds() {
|
|
|
3491
3494
|
};
|
|
3492
3495
|
var dt = function(t, o, f) {
|
|
3493
3496
|
return t.filter(function(p) {
|
|
3494
|
-
return o.some(function(
|
|
3495
|
-
var _ = p.values[
|
|
3497
|
+
return o.some(function(C) {
|
|
3498
|
+
var _ = p.values[C];
|
|
3496
3499
|
return _ && _.length && f.every(function(R) {
|
|
3497
3500
|
return _.includes(R);
|
|
3498
3501
|
});
|
|
@@ -3504,8 +3507,8 @@ function Ds() {
|
|
|
3504
3507
|
};
|
|
3505
3508
|
var wt = function(t, o, f) {
|
|
3506
3509
|
return t.filter(function(p) {
|
|
3507
|
-
return o.some(function(
|
|
3508
|
-
var _ = p.values[
|
|
3510
|
+
return o.some(function(C) {
|
|
3511
|
+
var _ = p.values[C];
|
|
3509
3512
|
return _ && _.length && f.some(function(R) {
|
|
3510
3513
|
return _.includes(R);
|
|
3511
3514
|
});
|
|
@@ -3517,8 +3520,8 @@ function Ds() {
|
|
|
3517
3520
|
};
|
|
3518
3521
|
var ut = function(t, o, f) {
|
|
3519
3522
|
return t.filter(function(p) {
|
|
3520
|
-
return o.some(function(
|
|
3521
|
-
var _ = p.values[
|
|
3523
|
+
return o.some(function(C) {
|
|
3524
|
+
var _ = p.values[C];
|
|
3522
3525
|
return f.includes(_);
|
|
3523
3526
|
});
|
|
3524
3527
|
});
|
|
@@ -3528,8 +3531,8 @@ function Ds() {
|
|
|
3528
3531
|
};
|
|
3529
3532
|
var St = function(t, o, f) {
|
|
3530
3533
|
return t.filter(function(p) {
|
|
3531
|
-
return o.some(function(
|
|
3532
|
-
return p.values[
|
|
3534
|
+
return o.some(function(C) {
|
|
3535
|
+
return p.values[C] === f;
|
|
3533
3536
|
});
|
|
3534
3537
|
});
|
|
3535
3538
|
};
|
|
@@ -3538,8 +3541,8 @@ function Ds() {
|
|
|
3538
3541
|
};
|
|
3539
3542
|
var zt = function(t, o, f) {
|
|
3540
3543
|
return t.filter(function(p) {
|
|
3541
|
-
return o.some(function(
|
|
3542
|
-
return p.values[
|
|
3544
|
+
return o.some(function(C) {
|
|
3545
|
+
return p.values[C] == f;
|
|
3543
3546
|
});
|
|
3544
3547
|
});
|
|
3545
3548
|
};
|
|
@@ -3547,15 +3550,15 @@ function Ds() {
|
|
|
3547
3550
|
return t == null;
|
|
3548
3551
|
};
|
|
3549
3552
|
var Ot = function(t, o, f) {
|
|
3550
|
-
var p = f || [],
|
|
3551
|
-
if ((
|
|
3552
|
-
var R =
|
|
3553
|
-
|
|
3553
|
+
var p = f || [], C = p[0], _ = p[1];
|
|
3554
|
+
if ((C = typeof C == "number" ? C : -1 / 0) > (_ = typeof _ == "number" ? _ : 1 / 0)) {
|
|
3555
|
+
var R = C;
|
|
3556
|
+
C = _, _ = R;
|
|
3554
3557
|
}
|
|
3555
3558
|
return t.filter(function(q) {
|
|
3556
3559
|
return o.some(function(K) {
|
|
3557
3560
|
var te = q.values[K];
|
|
3558
|
-
return te >=
|
|
3561
|
+
return te >= C && te <= _;
|
|
3559
3562
|
});
|
|
3560
3563
|
});
|
|
3561
3564
|
};
|
|
@@ -3571,18 +3574,18 @@ function Ds() {
|
|
|
3571
3574
|
if (o.type === h.init) return a({ filters: [] }, t);
|
|
3572
3575
|
if (o.type === h.resetFilters) return a({}, t, { filters: p.initialState.filters || [] });
|
|
3573
3576
|
if (o.type === h.setFilter) {
|
|
3574
|
-
var
|
|
3575
|
-
return Ce.id ===
|
|
3577
|
+
var C = o.columnId, _ = o.filterValue, R = p.allColumns, q = p.filterTypes, K = R.find(function(Ce) {
|
|
3578
|
+
return Ce.id === C;
|
|
3576
3579
|
});
|
|
3577
|
-
if (!K) throw new Error("React-Table: Could not find a column with id: " +
|
|
3580
|
+
if (!K) throw new Error("React-Table: Could not find a column with id: " + C);
|
|
3578
3581
|
var te = ce(K.filter, q || {}, Yt), ge = t.filters.find(function(Ce) {
|
|
3579
|
-
return Ce.id ===
|
|
3582
|
+
return Ce.id === C;
|
|
3580
3583
|
}), ue = T(_, ge && ge.value);
|
|
3581
3584
|
return M(te.autoRemove, ue, K) ? a({}, t, { filters: t.filters.filter(function(Ce) {
|
|
3582
|
-
return Ce.id !==
|
|
3585
|
+
return Ce.id !== C;
|
|
3583
3586
|
}) }) : a({}, t, ge ? { filters: t.filters.map(function(Ce) {
|
|
3584
|
-
return Ce.id ===
|
|
3585
|
-
}) } : { filters: [].concat(t.filters, [{ id:
|
|
3587
|
+
return Ce.id === C ? { id: C, value: ue } : Ce;
|
|
3588
|
+
}) } : { filters: [].concat(t.filters, [{ id: C, value: ue }]) });
|
|
3586
3589
|
}
|
|
3587
3590
|
if (o.type === h.setAllFilters) {
|
|
3588
3591
|
var fe = o.filters, ae = p.allColumns, de = p.filterTypes;
|
|
@@ -3595,7 +3598,7 @@ function Ds() {
|
|
|
3595
3598
|
}
|
|
3596
3599
|
}
|
|
3597
3600
|
function E(t) {
|
|
3598
|
-
var o = t.data, f = t.rows, p = t.flatRows,
|
|
3601
|
+
var o = t.data, f = t.rows, p = t.flatRows, C = t.rowsById, _ = t.allColumns, R = t.filterTypes, q = t.manualFilters, K = t.defaultCanFilter, te = K !== void 0 && K, ge = t.disableFilters, ue = t.state.filters, fe = t.dispatch, ae = t.autoResetFilters, de = ae === void 0 || ae, Ce = i.useCallback(function(Ee, Je) {
|
|
3599
3602
|
fe({ type: h.setFilter, columnId: Ee, filterValue: Je });
|
|
3600
3603
|
}, [fe]), Se = i.useCallback(function(Ee) {
|
|
3601
3604
|
fe({ type: h.setAllFilters, filters: Ee });
|
|
@@ -3611,7 +3614,7 @@ function Ds() {
|
|
|
3611
3614
|
Ee.filterValue = Pt && Pt.value;
|
|
3612
3615
|
});
|
|
3613
3616
|
var ke = i.useMemo(function() {
|
|
3614
|
-
if (q || !ue.length) return [f, p,
|
|
3617
|
+
if (q || !ue.length) return [f, p, C];
|
|
3615
3618
|
var Ee = [], Je = {};
|
|
3616
3619
|
return [function vt(qe, Ke) {
|
|
3617
3620
|
Ke === void 0 && (Ke = 0);
|
|
@@ -3628,7 +3631,7 @@ function Ds() {
|
|
|
3628
3631
|
Ee.push(et), Je[et.id] = et, et.subRows && (et.subRows = et.subRows && et.subRows.length > 0 ? vt(et.subRows, Ke + 1) : et.subRows);
|
|
3629
3632
|
}), Pt;
|
|
3630
3633
|
}(f), Ee, Je];
|
|
3631
|
-
}, [q, ue, f, p,
|
|
3634
|
+
}, [q, ue, f, p, C, _, R]), at = ke[0], Ve = ke[1], xe = ke[2];
|
|
3632
3635
|
i.useMemo(function() {
|
|
3633
3636
|
_.filter(function(Ee) {
|
|
3634
3637
|
return !ue.find(function(Je) {
|
|
@@ -3641,7 +3644,7 @@ function Ds() {
|
|
|
3641
3644
|
var rt = b(de);
|
|
3642
3645
|
B(function() {
|
|
3643
3646
|
rt() && fe({ type: h.resetFilters });
|
|
3644
|
-
}, [fe, q ? null : o]), Object.assign(t, { preFilteredRows: f, preFilteredFlatRows: p, preFilteredRowsById:
|
|
3647
|
+
}, [fe, q ? null : o]), Object.assign(t, { preFilteredRows: f, preFilteredFlatRows: p, preFilteredRowsById: C, filteredRows: at, filteredFlatRows: Ve, filteredRowsById: xe, rows: at, flatRows: Ve, rowsById: xe, setFilter: Ce, setAllFilters: Se });
|
|
3645
3648
|
}
|
|
3646
3649
|
Ut.pluginName = "useFilters", h.resetGlobalFilter = "resetGlobalFilter", h.setGlobalFilter = "setGlobalFilter";
|
|
3647
3650
|
var ve = function(t) {
|
|
@@ -3650,15 +3653,15 @@ function Ds() {
|
|
|
3650
3653
|
function Rt(t, o, f, p) {
|
|
3651
3654
|
if (o.type === h.resetGlobalFilter) return a({}, t, { globalFilter: p.initialState.globalFilter || void 0 });
|
|
3652
3655
|
if (o.type === h.setGlobalFilter) {
|
|
3653
|
-
var
|
|
3656
|
+
var C = o.filterValue, _ = p.userFilterTypes, R = ce(p.globalFilter, _ || {}, Yt), q = T(C, t.globalFilter);
|
|
3654
3657
|
return M(R.autoRemove, q) ? (t.globalFilter, A(t, ["globalFilter"])) : a({}, t, { globalFilter: q });
|
|
3655
3658
|
}
|
|
3656
3659
|
}
|
|
3657
3660
|
function qt(t) {
|
|
3658
|
-
var o = t.data, f = t.rows, p = t.flatRows,
|
|
3661
|
+
var o = t.data, f = t.rows, p = t.flatRows, C = t.rowsById, _ = t.allColumns, R = t.filterTypes, q = t.globalFilter, K = t.manualGlobalFilter, te = t.state.globalFilter, ge = t.dispatch, ue = t.autoResetGlobalFilter, fe = ue === void 0 || ue, ae = t.disableGlobalFilter, de = i.useCallback(function(xe) {
|
|
3659
3662
|
ge({ type: h.setGlobalFilter, filterValue: xe });
|
|
3660
3663
|
}, [ge]), Ce = i.useMemo(function() {
|
|
3661
|
-
if (K || te === void 0) return [f, p,
|
|
3664
|
+
if (K || te === void 0) return [f, p, C];
|
|
3662
3665
|
var xe = [], rt = {}, Ee = ce(q, R || {}, Yt);
|
|
3663
3666
|
if (!Ee) return console.warn("Could not find a valid 'globalFilter' option."), f;
|
|
3664
3667
|
_.forEach(function(vt) {
|
|
@@ -3675,10 +3678,10 @@ function Ds() {
|
|
|
3675
3678
|
xe.push(Ke), rt[Ke.id] = Ke, Ke.subRows = Ke.subRows && Ke.subRows.length ? vt(Ke.subRows) : Ke.subRows;
|
|
3676
3679
|
}), qe;
|
|
3677
3680
|
}(f), xe, rt];
|
|
3678
|
-
}, [K, te, q, R, _, f, p,
|
|
3681
|
+
}, [K, te, q, R, _, f, p, C, ae]), Se = Ce[0], ke = Ce[1], at = Ce[2], Ve = b(fe);
|
|
3679
3682
|
B(function() {
|
|
3680
3683
|
Ve() && ge({ type: h.resetGlobalFilter });
|
|
3681
|
-
}, [ge, K ? null : o]), Object.assign(t, { preGlobalFilteredRows: f, preGlobalFilteredFlatRows: p, preGlobalFilteredRowsById:
|
|
3684
|
+
}, [ge, K ? null : o]), Object.assign(t, { preGlobalFilteredRows: f, preGlobalFilteredFlatRows: p, preGlobalFilteredRowsById: C, globalFilteredRows: Se, globalFilteredFlatRows: ke, globalFilteredRowsById: at, rows: Se, flatRows: ke, rowsById: at, setGlobalFilter: de, disableGlobalFilter: ae });
|
|
3682
3685
|
}
|
|
3683
3686
|
function tr(t, o) {
|
|
3684
3687
|
return o.reduce(function(f, p) {
|
|
@@ -3705,8 +3708,8 @@ function Ds() {
|
|
|
3705
3708
|
return tr(0, t) / t.length;
|
|
3706
3709
|
}, median: function(t) {
|
|
3707
3710
|
if (!t.length) return null;
|
|
3708
|
-
var o = Math.floor(t.length / 2), f = [].concat(t).sort(function(p,
|
|
3709
|
-
return p -
|
|
3711
|
+
var o = Math.floor(t.length / 2), f = [].concat(t).sort(function(p, C) {
|
|
3712
|
+
return p - C;
|
|
3710
3713
|
});
|
|
3711
3714
|
return t.length % 2 != 0 ? f[o] : (f[o - 1] + f[o]) / 2;
|
|
3712
3715
|
}, unique: function(t) {
|
|
@@ -3735,9 +3738,9 @@ function Ds() {
|
|
|
3735
3738
|
if (o.type === h.resetGroupBy) return a({}, t, { groupBy: p.initialState.groupBy || [] });
|
|
3736
3739
|
if (o.type === h.setGroupBy) return a({}, t, { groupBy: o.value });
|
|
3737
3740
|
if (o.type === h.toggleGroupBy) {
|
|
3738
|
-
var
|
|
3739
|
-
return a({}, t, R ? { groupBy: [].concat(t.groupBy, [
|
|
3740
|
-
return q !==
|
|
3741
|
+
var C = o.columnId, _ = o.value, R = _ !== void 0 ? _ : !t.groupBy.includes(C);
|
|
3742
|
+
return a({}, t, R ? { groupBy: [].concat(t.groupBy, [C]) } : { groupBy: t.groupBy.filter(function(q) {
|
|
3743
|
+
return q !== C;
|
|
3741
3744
|
}) });
|
|
3742
3745
|
}
|
|
3743
3746
|
}
|
|
@@ -3746,16 +3749,16 @@ function Ds() {
|
|
|
3746
3749
|
return t.find(function(R) {
|
|
3747
3750
|
return R.id === _;
|
|
3748
3751
|
});
|
|
3749
|
-
}).filter(Boolean),
|
|
3752
|
+
}).filter(Boolean), C = t.filter(function(_) {
|
|
3750
3753
|
return !f.includes(_.id);
|
|
3751
3754
|
});
|
|
3752
|
-
return (t = [].concat(p,
|
|
3755
|
+
return (t = [].concat(p, C)).forEach(function(_) {
|
|
3753
3756
|
_.isGrouped = f.includes(_.id), _.groupedIndex = f.indexOf(_.id);
|
|
3754
3757
|
}), t;
|
|
3755
3758
|
}
|
|
3756
3759
|
var Zl = {};
|
|
3757
3760
|
function Kl(t) {
|
|
3758
|
-
var o = t.data, f = t.rows, p = t.flatRows,
|
|
3761
|
+
var o = t.data, f = t.rows, p = t.flatRows, C = t.rowsById, _ = t.allColumns, R = t.flatHeaders, q = t.groupByFn, K = q === void 0 ? ml : q, te = t.manualGroupBy, ge = t.aggregations, ue = ge === void 0 ? Zl : ge, fe = t.plugins, ae = t.state.groupBy, de = t.dispatch, Ce = t.autoResetGroupBy, Se = Ce === void 0 || Ce, ke = t.disableGroupBy, at = t.defaultCanGroupBy, Ve = t.getHooks;
|
|
3759
3762
|
P(fe, ["useColumnOrder", "useFilters"], "useGroupBy");
|
|
3760
3763
|
var xe = b(t);
|
|
3761
3764
|
_.forEach(function(c) {
|
|
@@ -3773,7 +3776,7 @@ function Ds() {
|
|
|
3773
3776
|
c.getGroupByToggleProps = W(Ve().getGroupByToggleProps, { instance: xe(), header: c });
|
|
3774
3777
|
});
|
|
3775
3778
|
var Je = i.useMemo(function() {
|
|
3776
|
-
if (te || !ae.length) return [f, p,
|
|
3779
|
+
if (te || !ae.length) return [f, p, C, dr, Hr, p, C];
|
|
3777
3780
|
var c = ae.filter(function(re) {
|
|
3778
3781
|
return _.find(function(ye) {
|
|
3779
3782
|
return ye.id === re;
|
|
@@ -3818,10 +3821,10 @@ function Ds() {
|
|
|
3818
3821
|
return $.forEach(function(re) {
|
|
3819
3822
|
s.push(re), x[re.id] = re, re.isGrouped ? (y.push(re), m[re.id] = re) : (j.push(re), F[re.id] = re);
|
|
3820
3823
|
}), [$, s, x, y, m, j, F];
|
|
3821
|
-
}, [te, ae, f, p,
|
|
3824
|
+
}, [te, ae, f, p, C, _, ue, K]), vt = Je[0], qe = Je[1], Ke = Je[2], Pt = Je[3], et = Je[4], Ct = Je[5], r = Je[6], l = b(Se);
|
|
3822
3825
|
B(function() {
|
|
3823
3826
|
l() && de({ type: h.resetGroupBy });
|
|
3824
|
-
}, [de, te ? null : o]), Object.assign(t, { preGroupedRows: f, preGroupedFlatRow: p, preGroupedRowsById:
|
|
3827
|
+
}, [de, te ? null : o]), Object.assign(t, { preGroupedRows: f, preGroupedFlatRow: p, preGroupedRowsById: C, groupedRows: vt, groupedFlatRows: qe, groupedRowsById: Ke, onlyGroupedFlatRows: Pt, onlyGroupedRowsById: et, nonGroupedFlatRows: Ct, nonGroupedRowsById: r, rows: vt, flatRows: qe, rowsById: Ke, toggleGroupBy: rt, setGroupBy: Ee });
|
|
3825
3828
|
}
|
|
3826
3829
|
function pl(t) {
|
|
3827
3830
|
t.allCells.forEach(function(o) {
|
|
@@ -3830,7 +3833,7 @@ function Ds() {
|
|
|
3830
3833
|
});
|
|
3831
3834
|
}
|
|
3832
3835
|
function ml(t, o) {
|
|
3833
|
-
return t.reduce(function(f, p,
|
|
3836
|
+
return t.reduce(function(f, p, C) {
|
|
3834
3837
|
var _ = "" + p.values[o];
|
|
3835
3838
|
return f[_] = Array.isArray(f[_]) ? f[_] : [], f[_].push(p), f;
|
|
3836
3839
|
}, {});
|
|
@@ -3846,9 +3849,9 @@ function Ds() {
|
|
|
3846
3849
|
return typeof t == "number" ? isNaN(t) || t === 1 / 0 || t === -1 / 0 ? "" : String(t) : typeof t == "string" ? t : "";
|
|
3847
3850
|
}
|
|
3848
3851
|
var Xl = Object.freeze({ __proto__: null, alphanumeric: function(t, o, f) {
|
|
3849
|
-
var p = Br(t, o, f),
|
|
3850
|
-
for (
|
|
3851
|
-
var R =
|
|
3852
|
+
var p = Br(t, o, f), C = p[0], _ = p[1];
|
|
3853
|
+
for (C = xl(C), _ = xl(_), C = C.split(gl).filter(Boolean), _ = _.split(gl).filter(Boolean); C.length && _.length; ) {
|
|
3854
|
+
var R = C.shift(), q = _.shift(), K = parseInt(R, 10), te = parseInt(q, 10), ge = [K, te].sort();
|
|
3852
3855
|
if (isNaN(ge[0])) {
|
|
3853
3856
|
if (R > q) return 1;
|
|
3854
3857
|
if (q > R) return -1;
|
|
@@ -3858,26 +3861,26 @@ function Ds() {
|
|
|
3858
3861
|
if (te > K) return -1;
|
|
3859
3862
|
}
|
|
3860
3863
|
}
|
|
3861
|
-
return
|
|
3864
|
+
return C.length - _.length;
|
|
3862
3865
|
}, datetime: function(t, o, f) {
|
|
3863
|
-
var p = Br(t, o, f),
|
|
3864
|
-
return Lr(
|
|
3866
|
+
var p = Br(t, o, f), C = p[0], _ = p[1];
|
|
3867
|
+
return Lr(C = C.getTime(), _ = _.getTime());
|
|
3865
3868
|
}, basic: function(t, o, f) {
|
|
3866
3869
|
var p = Br(t, o, f);
|
|
3867
3870
|
return Lr(p[0], p[1]);
|
|
3868
3871
|
}, string: function(t, o, f) {
|
|
3869
|
-
var p = Br(t, o, f),
|
|
3870
|
-
for (
|
|
3871
|
-
var R =
|
|
3872
|
+
var p = Br(t, o, f), C = p[0], _ = p[1];
|
|
3873
|
+
for (C = C.split("").filter(Boolean), _ = _.split("").filter(Boolean); C.length && _.length; ) {
|
|
3874
|
+
var R = C.shift(), q = _.shift(), K = R.toLowerCase(), te = q.toLowerCase();
|
|
3872
3875
|
if (K > te) return 1;
|
|
3873
3876
|
if (te > K) return -1;
|
|
3874
3877
|
if (R > q) return 1;
|
|
3875
3878
|
if (q > R) return -1;
|
|
3876
3879
|
}
|
|
3877
|
-
return
|
|
3880
|
+
return C.length - _.length;
|
|
3878
3881
|
}, number: function(t, o, f) {
|
|
3879
|
-
var p = Br(t, o, f),
|
|
3880
|
-
return Lr(
|
|
3882
|
+
var p = Br(t, o, f), C = p[0], _ = p[1], R = /[^0-9.]/gi;
|
|
3883
|
+
return Lr(C = Number(String(C).replace(R, "")), _ = Number(String(_).replace(R, "")));
|
|
3881
3884
|
} });
|
|
3882
3885
|
h.resetSortBy = "resetSortBy", h.setSortBy = "setSortBy", h.toggleSortBy = "toggleSortBy", h.clearSortBy = "clearSortBy", L.sortType = "alphanumeric", L.sortDescFirst = !1;
|
|
3883
3886
|
var vl = function(t) {
|
|
@@ -3885,9 +3888,9 @@ function Ds() {
|
|
|
3885
3888
|
};
|
|
3886
3889
|
vl.pluginName = "useSortBy";
|
|
3887
3890
|
var Jl = function(t, o) {
|
|
3888
|
-
var f = o.instance, p = o.column,
|
|
3891
|
+
var f = o.instance, p = o.column, C = f.isMultiSortEvent, _ = C === void 0 ? function(R) {
|
|
3889
3892
|
return R.shiftKey;
|
|
3890
|
-
} :
|
|
3893
|
+
} : C;
|
|
3891
3894
|
return [t, { onClick: p.canSort ? function(R) {
|
|
3892
3895
|
R.persist(), p.toggleSortBy(void 0, !f.disableMultiSort && _(R));
|
|
3893
3896
|
} : void 0, style: { cursor: p.canSort ? "pointer" : void 0 }, title: p.canSort ? "Toggle SortBy" : void 0 }];
|
|
@@ -3900,22 +3903,22 @@ function Ds() {
|
|
|
3900
3903
|
}) });
|
|
3901
3904
|
if (o.type === h.setSortBy) return a({}, t, { sortBy: o.sortBy });
|
|
3902
3905
|
if (o.type === h.toggleSortBy) {
|
|
3903
|
-
var
|
|
3906
|
+
var C, _ = o.columnId, R = o.desc, q = o.multi, K = p.allColumns, te = p.disableMultiSort, ge = p.disableSortRemove, ue = p.disableMultiRemove, fe = p.maxMultiSortColCount, ae = fe === void 0 ? Number.MAX_SAFE_INTEGER : fe, de = t.sortBy, Ce = K.find(function(xe) {
|
|
3904
3907
|
return xe.id === _;
|
|
3905
3908
|
}).sortDescFirst, Se = de.find(function(xe) {
|
|
3906
3909
|
return xe.id === _;
|
|
3907
3910
|
}), ke = de.findIndex(function(xe) {
|
|
3908
3911
|
return xe.id === _;
|
|
3909
3912
|
}), at = R != null, Ve = [];
|
|
3910
|
-
return (
|
|
3913
|
+
return (C = !te && q ? Se ? "toggle" : "add" : ke !== de.length - 1 || de.length !== 1 ? "replace" : Se ? "toggle" : "replace") != "toggle" || ge || at || q && ue || !(Se && Se.desc && !Ce || !Se.desc && Ce) || (C = "remove"), C === "replace" ? Ve = [{ id: _, desc: at ? R : Ce }] : C === "add" ? (Ve = [].concat(de, [{ id: _, desc: at ? R : Ce }])).splice(0, Ve.length - ae) : C === "toggle" ? Ve = de.map(function(xe) {
|
|
3911
3914
|
return xe.id === _ ? a({}, xe, { desc: at ? R : !Se.desc }) : xe;
|
|
3912
|
-
}) :
|
|
3915
|
+
}) : C === "remove" && (Ve = de.filter(function(xe) {
|
|
3913
3916
|
return xe.id !== _;
|
|
3914
3917
|
})), a({}, t, { sortBy: Ve });
|
|
3915
3918
|
}
|
|
3916
3919
|
}
|
|
3917
3920
|
function ea(t) {
|
|
3918
|
-
var o = t.data, f = t.rows, p = t.flatRows,
|
|
3921
|
+
var o = t.data, f = t.rows, p = t.flatRows, C = t.allColumns, _ = t.orderByFn, R = _ === void 0 ? _l : _, q = t.sortTypes, K = t.manualSortBy, te = t.defaultCanSort, ge = t.disableSortBy, ue = t.flatHeaders, fe = t.state.sortBy, ae = t.dispatch, de = t.plugins, Ce = t.getHooks, Se = t.autoResetSortBy, ke = Se === void 0 || Se;
|
|
3919
3922
|
P(de, ["useFilters", "useGlobalFilter", "useGroupBy", "usePivotColumns"], "useSortBy");
|
|
3920
3923
|
var at = i.useCallback(function(qe) {
|
|
3921
3924
|
ae({ type: h.setSortBy, sortBy: qe });
|
|
@@ -3939,13 +3942,13 @@ function Ds() {
|
|
|
3939
3942
|
var rt = i.useMemo(function() {
|
|
3940
3943
|
if (K || !fe.length) return [f, p];
|
|
3941
3944
|
var qe = [], Ke = fe.filter(function(Pt) {
|
|
3942
|
-
return
|
|
3945
|
+
return C.find(function(et) {
|
|
3943
3946
|
return et.id === Pt.id;
|
|
3944
3947
|
});
|
|
3945
3948
|
});
|
|
3946
3949
|
return [function Pt(et) {
|
|
3947
3950
|
var Ct = R(et, Ke.map(function(r) {
|
|
3948
|
-
var l =
|
|
3951
|
+
var l = C.find(function(x) {
|
|
3949
3952
|
return x.id === r.id;
|
|
3950
3953
|
});
|
|
3951
3954
|
if (!l) throw new Error("React-Table: Could not find a column with id: " + r.id + " while sorting");
|
|
@@ -3955,7 +3958,7 @@ function Ds() {
|
|
|
3955
3958
|
return s(x, y, r.id, r.desc);
|
|
3956
3959
|
};
|
|
3957
3960
|
}), Ke.map(function(r) {
|
|
3958
|
-
var l =
|
|
3961
|
+
var l = C.find(function(c) {
|
|
3959
3962
|
return c.id === r.id;
|
|
3960
3963
|
});
|
|
3961
3964
|
return l && l.sortInverted ? r.desc : !r.desc;
|
|
@@ -3964,18 +3967,18 @@ function Ds() {
|
|
|
3964
3967
|
qe.push(r), r.subRows && r.subRows.length !== 0 && (r.subRows = Pt(r.subRows));
|
|
3965
3968
|
}), Ct;
|
|
3966
3969
|
}(f), qe];
|
|
3967
|
-
}, [K, fe, f, p,
|
|
3970
|
+
}, [K, fe, f, p, C, R, q]), Ee = rt[0], Je = rt[1], vt = b(ke);
|
|
3968
3971
|
B(function() {
|
|
3969
3972
|
vt() && ae({ type: h.resetSortBy });
|
|
3970
3973
|
}, [K ? null : o]), Object.assign(t, { preSortedRows: f, preSortedFlatRows: p, sortedRows: Ee, sortedFlatRows: Je, rows: Ee, flatRows: Je, setSortBy: at, toggleSortBy: Ve });
|
|
3971
3974
|
}
|
|
3972
3975
|
function _l(t, o, f) {
|
|
3973
|
-
return [].concat(t).sort(function(p,
|
|
3976
|
+
return [].concat(t).sort(function(p, C) {
|
|
3974
3977
|
for (var _ = 0; _ < o.length; _ += 1) {
|
|
3975
|
-
var R = o[_], q = f[_] === !1 || f[_] === "desc", K = R(p,
|
|
3978
|
+
var R = o[_], q = f[_] === !1 || f[_] === "desc", K = R(p, C);
|
|
3976
3979
|
if (K !== 0) return q ? -K : K;
|
|
3977
3980
|
}
|
|
3978
|
-
return f[0] ? p.index -
|
|
3981
|
+
return f[0] ? p.index - C.index : C.index - p.index;
|
|
3979
3982
|
});
|
|
3980
3983
|
}
|
|
3981
3984
|
h.resetPage = "resetPage", h.gotoPage = "gotoPage", h.setPageSize = "setPageSize";
|
|
@@ -3986,8 +3989,8 @@ function Ds() {
|
|
|
3986
3989
|
if (o.type === h.init) return a({ pageSize: 10, pageIndex: 0 }, t);
|
|
3987
3990
|
if (o.type === h.resetPage) return a({}, t, { pageIndex: p.initialState.pageIndex || 0 });
|
|
3988
3991
|
if (o.type === h.gotoPage) {
|
|
3989
|
-
var
|
|
3990
|
-
return R > t.pageIndex ? q =
|
|
3992
|
+
var C = p.pageCount, _ = p.page, R = T(o.pageIndex, t.pageIndex), q = !1;
|
|
3993
|
+
return R > t.pageIndex ? q = C === -1 ? _.length >= t.pageSize : R < C : R < t.pageIndex && (q = R > -1), q ? a({}, t, { pageIndex: R }) : t;
|
|
3991
3994
|
}
|
|
3992
3995
|
if (o.type === h.setPageSize) {
|
|
3993
3996
|
var K = o.pageSize, te = t.pageSize * t.pageIndex;
|
|
@@ -3995,7 +3998,7 @@ function Ds() {
|
|
|
3995
3998
|
}
|
|
3996
3999
|
}
|
|
3997
4000
|
function ra(t) {
|
|
3998
|
-
var o = t.rows, f = t.autoResetPage, p = f === void 0 || f,
|
|
4001
|
+
var o = t.rows, f = t.autoResetPage, p = f === void 0 || f, C = t.manualExpandedKey, _ = C === void 0 ? "expanded" : C, R = t.plugins, q = t.pageCount, K = t.paginateExpandedRows, te = K === void 0 || K, ge = t.expandSubRows, ue = ge === void 0 || ge, fe = t.state, ae = fe.pageSize, de = fe.pageIndex, Ce = fe.expanded, Se = fe.globalFilter, ke = fe.filters, at = fe.groupBy, Ve = fe.sortBy, xe = t.dispatch, rt = t.data, Ee = t.manualPagination;
|
|
3999
4002
|
P(R, ["useGlobalFilter", "useFilters", "useGroupBy", "useSortBy", "useExpanded"], "usePagination");
|
|
4000
4003
|
var Je = b(p);
|
|
4001
4004
|
B(function() {
|
|
@@ -4043,9 +4046,9 @@ function Ds() {
|
|
|
4043
4046
|
if (o.type === h.init) return a({ pivotColumns: yl }, t);
|
|
4044
4047
|
if (o.type === h.resetPivot) return a({}, t, { pivotColumns: p.initialState.pivotColumns || yl });
|
|
4045
4048
|
if (o.type === h.togglePivot) {
|
|
4046
|
-
var
|
|
4047
|
-
return a({}, t, R ? { pivotColumns: [].concat(t.pivotColumns, [
|
|
4048
|
-
return q !==
|
|
4049
|
+
var C = o.columnId, _ = o.value, R = _ !== void 0 ? _ : !t.pivotColumns.includes(C);
|
|
4050
|
+
return a({}, t, R ? { pivotColumns: [].concat(t.pivotColumns, [C]) } : { pivotColumns: t.pivotColumns.filter(function(q) {
|
|
4051
|
+
return q !== C;
|
|
4049
4052
|
}) });
|
|
4050
4053
|
}
|
|
4051
4054
|
}
|
|
@@ -4065,14 +4068,14 @@ function Ds() {
|
|
|
4065
4068
|
return f.uniqueValues && t !== void 0 && f.uniqueValues.add(t), t;
|
|
4066
4069
|
}
|
|
4067
4070
|
function bl(t, o) {
|
|
4068
|
-
var f = o.instance, p = f.allColumns,
|
|
4069
|
-
if (!
|
|
4070
|
-
var _ =
|
|
4071
|
+
var f = o.instance, p = f.allColumns, C = f.state;
|
|
4072
|
+
if (!C.pivotColumns.length || !C.groupBy || !C.groupBy.length) return t;
|
|
4073
|
+
var _ = C.pivotColumns.map(function(K) {
|
|
4071
4074
|
return p.find(function(te) {
|
|
4072
4075
|
return te.id === K;
|
|
4073
4076
|
});
|
|
4074
4077
|
}).filter(Boolean), R = p.filter(function(K) {
|
|
4075
|
-
return !K.isPivotSource && !
|
|
4078
|
+
return !K.isPivotSource && !C.groupBy.includes(K.id) && !C.pivotColumns.includes(K.id);
|
|
4076
4079
|
}), q = Y(function K(te, ge, ue) {
|
|
4077
4080
|
te === void 0 && (te = 0), ue === void 0 && (ue = []);
|
|
4078
4081
|
var fe = _[te];
|
|
@@ -4092,8 +4095,8 @@ function Ds() {
|
|
|
4092
4095
|
return [].concat(t, q);
|
|
4093
4096
|
}
|
|
4094
4097
|
function wl(t, o) {
|
|
4095
|
-
var f = o.instance.state, p = f.pivotColumns,
|
|
4096
|
-
return [].concat(t, [p,
|
|
4098
|
+
var f = o.instance.state, p = f.pivotColumns, C = f.groupBy;
|
|
4099
|
+
return [].concat(t, [p, C]);
|
|
4097
4100
|
}
|
|
4098
4101
|
function oa(t, o) {
|
|
4099
4102
|
var f = o.instance.state;
|
|
@@ -4108,7 +4111,7 @@ function Ds() {
|
|
|
4108
4111
|
return [].concat(t, [f.state.pivotColumns, f.state.groupBy]);
|
|
4109
4112
|
}
|
|
4110
4113
|
function da(t) {
|
|
4111
|
-
var o = t.columns, f = t.allColumns, p = t.flatHeaders,
|
|
4114
|
+
var o = t.columns, f = t.allColumns, p = t.flatHeaders, C = t.getHooks, _ = t.plugins, R = t.dispatch, q = t.autoResetPivot, K = q === void 0 || q, te = t.manaulPivot, ge = t.disablePivot, ue = t.defaultCanPivot;
|
|
4112
4115
|
P(_, ["useGroupBy"], "usePivotColumns");
|
|
4113
4116
|
var fe = b(t);
|
|
4114
4117
|
f.forEach(function(de) {
|
|
@@ -4117,7 +4120,7 @@ function Ds() {
|
|
|
4117
4120
|
return t.togglePivot(de.id);
|
|
4118
4121
|
}), de.Aggregated = de.Aggregated || de.Cell;
|
|
4119
4122
|
}), p.forEach(function(de) {
|
|
4120
|
-
de.getPivotToggleProps = W(
|
|
4123
|
+
de.getPivotToggleProps = W(C().getPivotToggleProps, { instance: fe(), header: de });
|
|
4121
4124
|
});
|
|
4122
4125
|
var ae = b(K);
|
|
4123
4126
|
B(function() {
|
|
@@ -4137,7 +4140,7 @@ function Ds() {
|
|
|
4137
4140
|
};
|
|
4138
4141
|
Cl.pluginName = "useRowSelect";
|
|
4139
4142
|
var $r = function(t, o) {
|
|
4140
|
-
var f = o.instance, p = o.row,
|
|
4143
|
+
var f = o.instance, p = o.row, C = f.manualRowSelectedKey, _ = C === void 0 ? "isSelected" : C;
|
|
4141
4144
|
return [t, { onChange: function(R) {
|
|
4142
4145
|
p.toggleRowSelected(R.target.checked);
|
|
4143
4146
|
}, style: { cursor: "pointer" }, checked: !(!p.original || !p.original[_]) || p.isSelected, title: "Toggle Row Selected", indeterminate: p.isSomeSelected }];
|
|
@@ -4151,15 +4154,15 @@ function Ds() {
|
|
|
4151
4154
|
return [t, { onChange: function(p) {
|
|
4152
4155
|
f.toggleAllPageRowsSelected(p.target.checked);
|
|
4153
4156
|
}, style: { cursor: "pointer" }, checked: f.isAllPageRowsSelected, title: "Toggle All Current Page Rows Selected", indeterminate: !!(!f.isAllPageRowsSelected && f.page.some(function(p) {
|
|
4154
|
-
var
|
|
4155
|
-
return f.state.selectedRowIds[
|
|
4157
|
+
var C = p.id;
|
|
4158
|
+
return f.state.selectedRowIds[C];
|
|
4156
4159
|
})) }];
|
|
4157
4160
|
};
|
|
4158
4161
|
function fa(t, o, f, p) {
|
|
4159
4162
|
if (o.type === h.init) return a({ selectedRowIds: {} }, t);
|
|
4160
4163
|
if (o.type === h.resetSelectedRows) return a({}, t, { selectedRowIds: p.initialState.selectedRowIds || {} });
|
|
4161
4164
|
if (o.type === h.toggleAllRowsSelected) {
|
|
4162
|
-
var
|
|
4165
|
+
var C = o.value, _ = p.isAllRowsSelected, R = p.rowsById, q = p.nonGroupedRowsById, K = q === void 0 ? R : q, te = C !== void 0 ? C : !_, ge = Object.assign({}, t.selectedRowIds);
|
|
4163
4166
|
return te ? Object.keys(K).forEach(function(Ct) {
|
|
4164
4167
|
ge[Ct] = !0;
|
|
4165
4168
|
}) : Object.keys(K).forEach(function(Ct) {
|
|
@@ -4191,8 +4194,8 @@ function Ds() {
|
|
|
4191
4194
|
return t;
|
|
4192
4195
|
}
|
|
4193
4196
|
function jl(t) {
|
|
4194
|
-
var o = t.data, f = t.rows, p = t.getHooks,
|
|
4195
|
-
P(
|
|
4197
|
+
var o = t.data, f = t.rows, p = t.getHooks, C = t.plugins, _ = t.rowsById, R = t.nonGroupedRowsById, q = R === void 0 ? _ : R, K = t.autoResetSelectedRows, te = K === void 0 || K, ge = t.state.selectedRowIds, ue = t.selectSubRows, fe = ue === void 0 || ue, ae = t.dispatch, de = t.page, Ce = t.getSubRows;
|
|
4198
|
+
P(C, ["useFilters", "useGroupBy", "useSortBy", "useExpanded", "usePagination"], "useRowSelect");
|
|
4196
4199
|
var Se = i.useMemo(function() {
|
|
4197
4200
|
var Ke = [];
|
|
4198
4201
|
return f.forEach(function(Pt) {
|
|
@@ -4245,7 +4248,7 @@ function Ds() {
|
|
|
4245
4248
|
t.stateReducers.push(pa), t.useInstance.push(Nl), t.prepareRow.push(ma);
|
|
4246
4249
|
};
|
|
4247
4250
|
function pa(t, o, f, p) {
|
|
4248
|
-
var
|
|
4251
|
+
var C = p.initialRowStateAccessor, _ = C === void 0 ? Pl : C, R = p.initialCellStateAccessor, q = R === void 0 ? Sl : R, K = p.rowsById;
|
|
4249
4252
|
if (o.type === h.init) return a({ rowState: {} }, t);
|
|
4250
4253
|
if (o.type === h.resetRowState) return a({}, t, { rowState: p.initialState.rowState || {} });
|
|
4251
4254
|
if (o.type === h.setRowState) {
|
|
@@ -4260,18 +4263,18 @@ function Ds() {
|
|
|
4260
4263
|
}
|
|
4261
4264
|
}
|
|
4262
4265
|
function Nl(t) {
|
|
4263
|
-
var o = t.autoResetRowState, f = o === void 0 || o, p = t.data,
|
|
4264
|
-
return
|
|
4265
|
-
}, [
|
|
4266
|
-
return
|
|
4267
|
-
}, [
|
|
4266
|
+
var o = t.autoResetRowState, f = o === void 0 || o, p = t.data, C = t.dispatch, _ = i.useCallback(function(K, te) {
|
|
4267
|
+
return C({ type: h.setRowState, rowId: K, value: te });
|
|
4268
|
+
}, [C]), R = i.useCallback(function(K, te, ge) {
|
|
4269
|
+
return C({ type: h.setCellState, rowId: K, columnId: te, value: ge });
|
|
4270
|
+
}, [C]), q = b(f);
|
|
4268
4271
|
B(function() {
|
|
4269
|
-
q() &&
|
|
4272
|
+
q() && C({ type: h.resetRowState });
|
|
4270
4273
|
}, [p]), Object.assign(t, { setRowState: _, setCellState: R });
|
|
4271
4274
|
}
|
|
4272
4275
|
function ma(t, o) {
|
|
4273
|
-
var f = o.instance, p = f.initialRowStateAccessor,
|
|
4274
|
-
t && (t.state = q[t.id] !== void 0 ? q[t.id] :
|
|
4276
|
+
var f = o.instance, p = f.initialRowStateAccessor, C = p === void 0 ? Pl : p, _ = f.initialCellStateAccessor, R = _ === void 0 ? Sl : _, q = f.state.rowState;
|
|
4277
|
+
t && (t.state = q[t.id] !== void 0 ? q[t.id] : C(t), t.setState = function(K) {
|
|
4275
4278
|
return f.setRowState(t.id, K);
|
|
4276
4279
|
}, t.cells.forEach(function(K) {
|
|
4277
4280
|
t.state.cellState || (t.state.cellState = {}), K.state = t.state.cellState[K.column.id] !== void 0 ? t.state.cellState[K.column.id] : R(K), K.setState = function(te) {
|
|
@@ -4292,13 +4295,13 @@ function Ds() {
|
|
|
4292
4295
|
function Il(t, o) {
|
|
4293
4296
|
var f = o.instance.state.columnOrder;
|
|
4294
4297
|
if (!f || !f.length) return t;
|
|
4295
|
-
for (var p = [].concat(f),
|
|
4296
|
-
var q = p.shift(), K =
|
|
4298
|
+
for (var p = [].concat(f), C = [].concat(t), _ = [], R = function() {
|
|
4299
|
+
var q = p.shift(), K = C.findIndex(function(te) {
|
|
4297
4300
|
return te.id === q;
|
|
4298
4301
|
});
|
|
4299
|
-
K > -1 && _.push(
|
|
4300
|
-
};
|
|
4301
|
-
return [].concat(_,
|
|
4302
|
+
K > -1 && _.push(C.splice(K, 1)[0]);
|
|
4303
|
+
}; C.length && p.length; ) R();
|
|
4304
|
+
return [].concat(_, C);
|
|
4302
4305
|
}
|
|
4303
4306
|
function ga(t) {
|
|
4304
4307
|
var o = t.dispatch;
|
|
@@ -4310,7 +4313,7 @@ function Ds() {
|
|
|
4310
4313
|
var Tl = function(t) {
|
|
4311
4314
|
t.getResizerProps = [xa], t.getHeaderProps.push({ style: { position: "relative" } }), t.stateReducers.push(va), t.useInstance.push(ya), t.useInstanceBeforeDimensions.push(_a);
|
|
4312
4315
|
}, xa = function(t, o) {
|
|
4313
|
-
var f = o.instance, p = o.header,
|
|
4316
|
+
var f = o.instance, p = o.header, C = f.dispatch, _ = function(R, q) {
|
|
4314
4317
|
var K = !1;
|
|
4315
4318
|
if (R.type === "touchstart") {
|
|
4316
4319
|
if (R.touches && R.touches.length > 1) return;
|
|
@@ -4324,9 +4327,9 @@ function Ds() {
|
|
|
4324
4327
|
}(q).map(function(Ve) {
|
|
4325
4328
|
return [Ve.id, Ve.totalWidth];
|
|
4326
4329
|
}), fe = K ? Math.round(R.touches[0].clientX) : R.clientX, ae = function() {
|
|
4327
|
-
window.cancelAnimationFrame(te), te = null,
|
|
4330
|
+
window.cancelAnimationFrame(te), te = null, C({ type: h.columnDoneResizing });
|
|
4328
4331
|
}, de = function() {
|
|
4329
|
-
window.cancelAnimationFrame(te), te = null,
|
|
4332
|
+
window.cancelAnimationFrame(te), te = null, C({ type: h.columnResizing, clientX: ge });
|
|
4330
4333
|
}, Ce = function(Ve) {
|
|
4331
4334
|
ge = Ve, te || (te = window.requestAnimationFrame(de));
|
|
4332
4335
|
}, Se = { mouse: { moveEvent: "mousemove", moveHandler: function(Ve) {
|
|
@@ -4350,7 +4353,7 @@ function Ds() {
|
|
|
4350
4353
|
}
|
|
4351
4354
|
return Fe = Ve;
|
|
4352
4355
|
}() && { passive: !1 };
|
|
4353
|
-
document.addEventListener(ke.moveEvent, ke.moveHandler, at), document.addEventListener(ke.upEvent, ke.upHandler, at),
|
|
4356
|
+
document.addEventListener(ke.moveEvent, ke.moveHandler, at), document.addEventListener(ke.upEvent, ke.upHandler, at), C({ type: h.columnStartResizing, columnId: q.id, columnWidth: q.totalWidth, headerIdWidths: ue, clientX: fe });
|
|
4354
4357
|
};
|
|
4355
4358
|
return [t, { onMouseDown: function(R) {
|
|
4356
4359
|
return R.persist() || _(R, p);
|
|
@@ -4362,8 +4365,8 @@ function Ds() {
|
|
|
4362
4365
|
if (o.type === h.init) return a({ columnResizing: { columnWidths: {} } }, t);
|
|
4363
4366
|
if (o.type === h.resetResize) return a({}, t, { columnResizing: { columnWidths: {} } });
|
|
4364
4367
|
if (o.type === h.columnStartResizing) {
|
|
4365
|
-
var f = o.clientX, p = o.columnId,
|
|
4366
|
-
return a({}, t, { columnResizing: a({}, t.columnResizing, { startX: f, headerIdWidths: _, columnWidth:
|
|
4368
|
+
var f = o.clientX, p = o.columnId, C = o.columnWidth, _ = o.headerIdWidths;
|
|
4369
|
+
return a({}, t, { columnResizing: a({}, t.columnResizing, { startX: f, headerIdWidths: _, columnWidth: C, isResizingColumn: p }) });
|
|
4367
4370
|
}
|
|
4368
4371
|
if (o.type === h.columnResizing) {
|
|
4369
4372
|
var R = o.clientX, q = t.columnResizing, K = q.startX, te = q.columnWidth, ge = q.headerIdWidths, ue = (R - K) / te, fe = {};
|
|
@@ -4376,16 +4379,16 @@ function Ds() {
|
|
|
4376
4379
|
}
|
|
4377
4380
|
Tl.pluginName = "useResizeColumns";
|
|
4378
4381
|
var _a = function(t) {
|
|
4379
|
-
var o = t.flatHeaders, f = t.disableResizing, p = t.getHooks,
|
|
4382
|
+
var o = t.flatHeaders, f = t.disableResizing, p = t.getHooks, C = t.state.columnResizing, _ = b(t);
|
|
4380
4383
|
o.forEach(function(R) {
|
|
4381
4384
|
var q = _e(R.disableResizing !== !0 && void 0, f !== !0 && void 0, !0);
|
|
4382
|
-
R.canResize = q, R.width =
|
|
4385
|
+
R.canResize = q, R.width = C.columnWidths[R.id] || R.originalWidth || R.width, R.isResizing = C.isResizingColumn === R.id, q && (R.getResizerProps = W(p().getResizerProps, { instance: _(), header: R }));
|
|
4383
4386
|
});
|
|
4384
4387
|
};
|
|
4385
4388
|
function ya(t) {
|
|
4386
|
-
var o = t.plugins, f = t.dispatch, p = t.autoResetResize,
|
|
4389
|
+
var o = t.plugins, f = t.dispatch, p = t.autoResetResize, C = p === void 0 || p, _ = t.columns;
|
|
4387
4390
|
P(o, ["useAbsoluteLayout"], "useResizeColumns");
|
|
4388
|
-
var R = b(
|
|
4391
|
+
var R = b(C);
|
|
4389
4392
|
B(function() {
|
|
4390
4393
|
R() && f({ type: h.resetResize });
|
|
4391
4394
|
}, [_]);
|
|
@@ -4448,8 +4451,8 @@ function Ds() {
|
|
|
4448
4451
|
var Fl = function(t, o) {
|
|
4449
4452
|
var f = o.instance;
|
|
4450
4453
|
return [t, { style: { display: "grid", gridTemplateColumns: f.visibleColumns.map(function(p) {
|
|
4451
|
-
var
|
|
4452
|
-
return f.state.gridLayout.columnWidths[p.id] ? f.state.gridLayout.columnWidths[p.id] + "px" : (
|
|
4454
|
+
var C;
|
|
4455
|
+
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;
|
|
4453
4456
|
}).join(" ") } }];
|
|
4454
4457
|
}, Ml = function(t, o) {
|
|
4455
4458
|
var f = o.column;
|
|
@@ -4462,7 +4465,7 @@ function Ds() {
|
|
|
4462
4465
|
if (o.type === h.init) return a({ gridLayout: { columnWidths: {} } }, t);
|
|
4463
4466
|
if (o.type === h.resetResize) return a({}, t, { gridLayout: { columnWidths: {} } });
|
|
4464
4467
|
if (o.type === h.columnStartResizing) {
|
|
4465
|
-
var
|
|
4468
|
+
var C = o.columnId, _ = o.headerIdWidths, R = el(C);
|
|
4466
4469
|
if (R !== void 0) {
|
|
4467
4470
|
var q = p.visibleColumns.reduce(function(xe, rt) {
|
|
4468
4471
|
var Ee;
|
|
@@ -4496,9 +4499,9 @@ function Ds() {
|
|
|
4496
4499
|
}
|
|
4497
4500
|
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 = z, d.functionalUpdate = T, d.loopHooks = D, d.makePropGetter = W, d.makeRenderer = H, d.reduceHooks = I, d.safeUseLayoutEffect = ee, d.useAbsoluteLayout = Bl, d.useAsyncDebounce = function(t, o) {
|
|
4498
4501
|
o === void 0 && (o = 0);
|
|
4499
|
-
var f = i.useRef({}), p = b(t),
|
|
4502
|
+
var f = i.useRef({}), p = b(t), C = b(o);
|
|
4500
4503
|
return i.useCallback(function() {
|
|
4501
|
-
var _ =
|
|
4504
|
+
var _ = w(regeneratorRuntime.mark(function R() {
|
|
4502
4505
|
var q, K, te, ge = arguments;
|
|
4503
4506
|
return regeneratorRuntime.wrap(function(ue) {
|
|
4504
4507
|
for (; ; ) switch (ue.prev = ue.next) {
|
|
@@ -4506,7 +4509,7 @@ function Ds() {
|
|
|
4506
4509
|
for (q = ge.length, K = new Array(q), te = 0; te < q; te++) K[te] = ge[te];
|
|
4507
4510
|
return f.current.promise || (f.current.promise = new Promise(function(fe, ae) {
|
|
4508
4511
|
f.current.resolve = fe, f.current.reject = ae;
|
|
4509
|
-
})), f.current.timeout && clearTimeout(f.current.timeout), f.current.timeout = setTimeout(
|
|
4512
|
+
})), f.current.timeout && clearTimeout(f.current.timeout), f.current.timeout = setTimeout(w(regeneratorRuntime.mark(function fe() {
|
|
4510
4513
|
return regeneratorRuntime.wrap(function(ae) {
|
|
4511
4514
|
for (; ; ) switch (ae.prev = ae.next) {
|
|
4512
4515
|
case 0:
|
|
@@ -4523,7 +4526,7 @@ function Ds() {
|
|
|
4523
4526
|
return ae.stop();
|
|
4524
4527
|
}
|
|
4525
4528
|
}, fe, null, [[1, 9, 12, 15]]);
|
|
4526
|
-
})),
|
|
4529
|
+
})), C()), ue.abrupt("return", f.current.promise);
|
|
4527
4530
|
case 5:
|
|
4528
4531
|
case "end":
|
|
4529
4532
|
return ue.stop();
|
|
@@ -4533,11 +4536,11 @@ function Ds() {
|
|
|
4533
4536
|
return function() {
|
|
4534
4537
|
return _.apply(this, arguments);
|
|
4535
4538
|
};
|
|
4536
|
-
}(), [p,
|
|
4539
|
+
}(), [p, C]);
|
|
4537
4540
|
}, d.useBlockLayout = Gl, d.useColumnOrder = Dl, d.useExpanded = fr, d.useFilters = Ut, d.useFlexLayout = Jr, d.useGetLatest = b, d.useGlobalFilter = ve, d.useGridLayout = El, d.useGroupBy = zr, d.useMountedLayoutEffect = B, d.usePagination = Yr, d.useResizeColumns = Tl, d.useRowSelect = Cl, d.useRowState = Ur, d.useSortBy = vl, d.useTable = function(t) {
|
|
4538
4541
|
for (var o = arguments.length, f = new Array(o > 1 ? o - 1 : 0), p = 1; p < o; p++) f[p - 1] = arguments[p];
|
|
4539
4542
|
t = Vt(t), f = [Ie].concat(f);
|
|
4540
|
-
var
|
|
4543
|
+
var C = i.useRef({}), _ = b(C.current);
|
|
4541
4544
|
Object.assign(_(), a({}, t, { plugins: f, hooks: G() })), f.filter(Boolean).forEach(function(m) {
|
|
4542
4545
|
m(_().hooks);
|
|
4543
4546
|
});
|
|
@@ -4644,7 +4647,7 @@ function Is() {
|
|
|
4644
4647
|
}
|
|
4645
4648
|
j.done ? l(F) : Promise.resolve(F).then(s, x);
|
|
4646
4649
|
}
|
|
4647
|
-
function
|
|
4650
|
+
function w(r) {
|
|
4648
4651
|
return function() {
|
|
4649
4652
|
var l = this, c = arguments;
|
|
4650
4653
|
return new Promise(function(s, x) {
|
|
@@ -4777,7 +4780,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
4777
4780
|
var c = i.useRef({}), s = H(r), x = H(l);
|
|
4778
4781
|
return i.useCallback(
|
|
4779
4782
|
/* @__PURE__ */ function() {
|
|
4780
|
-
var y =
|
|
4783
|
+
var y = w(
|
|
4781
4784
|
/* @__PURE__ */ regeneratorRuntime.mark(function m() {
|
|
4782
4785
|
var j, F, $, re = arguments;
|
|
4783
4786
|
return regeneratorRuntime.wrap(function(oe) {
|
|
@@ -4789,7 +4792,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
4789
4792
|
return c.current.promise || (c.current.promise = new Promise(function(pe, be) {
|
|
4790
4793
|
c.current.resolve = pe, c.current.reject = be;
|
|
4791
4794
|
})), c.current.timeout && clearTimeout(c.current.timeout), c.current.timeout = setTimeout(
|
|
4792
|
-
/* @__PURE__ */
|
|
4795
|
+
/* @__PURE__ */ w(
|
|
4793
4796
|
/* @__PURE__ */ regeneratorRuntime.mark(function pe() {
|
|
4794
4797
|
return regeneratorRuntime.wrap(function(ie) {
|
|
4795
4798
|
for (; ; )
|
|
@@ -6885,7 +6888,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
6885
6888
|
l.stateReducers.push(p), l.visibleColumnsDeps.push(function(c, s) {
|
|
6886
6889
|
var x = s.instance;
|
|
6887
6890
|
return [].concat(c, [x.state.columnOrder]);
|
|
6888
|
-
}), l.visibleColumns.push(
|
|
6891
|
+
}), l.visibleColumns.push(C), l.useInstance.push(_);
|
|
6889
6892
|
};
|
|
6890
6893
|
f.pluginName = "useColumnOrder";
|
|
6891
6894
|
function p(r, l, c, s) {
|
|
@@ -6902,7 +6905,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
6902
6905
|
columnOrder: B(l.columnOrder, r.columnOrder)
|
|
6903
6906
|
});
|
|
6904
6907
|
}
|
|
6905
|
-
function
|
|
6908
|
+
function C(r, l) {
|
|
6906
6909
|
var c = l.instance.state.columnOrder;
|
|
6907
6910
|
if (!c || !c.length)
|
|
6908
6911
|
return r;
|
|
@@ -7317,7 +7320,7 @@ const Bs = ({
|
|
|
7317
7320
|
isDisabled: d = !1,
|
|
7318
7321
|
currRowData: i = {},
|
|
7319
7322
|
onlyDropdownItemsAllowed: v,
|
|
7320
|
-
handleValueChange:
|
|
7323
|
+
handleValueChange: w,
|
|
7321
7324
|
rowId: a = "",
|
|
7322
7325
|
setTableData: A,
|
|
7323
7326
|
handleRightSegment: S
|
|
@@ -7388,7 +7391,7 @@ const Bs = ({
|
|
|
7388
7391
|
className: `hfl-flex-1 focus-visible:hfl-outline-0 ${i?.original?.order_item_id ? "hfl-bg-Gray-50 hfl-caret-Gray-50" : ""}`,
|
|
7389
7392
|
value: k,
|
|
7390
7393
|
onChange: (H) => {
|
|
7391
|
-
i?.original?.order_item_id || (b(H),
|
|
7394
|
+
i?.original?.order_item_id || (b(H), w(H, "service_name", a));
|
|
7392
7395
|
},
|
|
7393
7396
|
onFocus: () => {
|
|
7394
7397
|
i?.original?.order_item_id || (V(!0), I(u));
|
|
@@ -7439,7 +7442,7 @@ const Bs = ({
|
|
|
7439
7442
|
patientIDs: d,
|
|
7440
7443
|
serviceListArr: i,
|
|
7441
7444
|
showToast: v,
|
|
7442
|
-
billPreferences:
|
|
7445
|
+
billPreferences: w,
|
|
7443
7446
|
formattedService: a,
|
|
7444
7447
|
docPreference: A,
|
|
7445
7448
|
// currentWindow,
|
|
@@ -7631,7 +7634,7 @@ const Bs = ({
|
|
|
7631
7634
|
{
|
|
7632
7635
|
Header: "Discount",
|
|
7633
7636
|
accessor: "order_item_discount",
|
|
7634
|
-
Cell: ({ row: M }) => /* @__PURE__ */ e.jsx(e.Fragment, { children:
|
|
7637
|
+
Cell: ({ row: M }) => /* @__PURE__ */ e.jsx(e.Fragment, { children: w?.billing?.enable_order_discount == 1 ? /* @__PURE__ */ e.jsx(
|
|
7635
7638
|
"input",
|
|
7636
7639
|
{
|
|
7637
7640
|
type: "number",
|
|
@@ -7701,7 +7704,7 @@ const Bs = ({
|
|
|
7701
7704
|
)
|
|
7702
7705
|
}
|
|
7703
7706
|
],
|
|
7704
|
-
[
|
|
7707
|
+
[w, A, i?.service_list]
|
|
7705
7708
|
), O = Kt(() => k ? L : ee, [ee, L]), { getTableProps: me, getTableBodyProps: we, headerGroups: _e, rows: tt, prepareRow: he } = dl.useTable({
|
|
7706
7709
|
columns: ne,
|
|
7707
7710
|
data: O
|
|
@@ -7792,7 +7795,7 @@ const Bs = ({
|
|
|
7792
7795
|
summaryData: d,
|
|
7793
7796
|
pastDueData: i,
|
|
7794
7797
|
showDeposit: v = !1,
|
|
7795
|
-
showPayment:
|
|
7798
|
+
showPayment: w = !0,
|
|
7796
7799
|
showDiscount: a = !0,
|
|
7797
7800
|
showRefund: A = !0,
|
|
7798
7801
|
showDepositRefund: S = !1,
|
|
@@ -7810,7 +7813,7 @@ const Bs = ({
|
|
|
7810
7813
|
setRefreshWallet: b
|
|
7811
7814
|
} = n, ee = () => {
|
|
7812
7815
|
if (v) return "deposit";
|
|
7813
|
-
if (
|
|
7816
|
+
if (w) return "payment";
|
|
7814
7817
|
if (a) return "discount";
|
|
7815
7818
|
if (A) return "refund";
|
|
7816
7819
|
if (S) return "deposit_refund";
|
|
@@ -7863,11 +7866,11 @@ const Bs = ({
|
|
|
7863
7866
|
{ key: "discount", label: "Discount" },
|
|
7864
7867
|
{ key: "refund", label: "Refund" },
|
|
7865
7868
|
{ key: "deposit_refund", label: "Refund" }
|
|
7866
|
-
].filter((le) => le.key === "payment" ?
|
|
7869
|
+
].filter((le) => le.key === "payment" ? w : le.key === "discount" ? a : le.key === "refund" ? A : le.key === "deposit" ? v : le.key === "deposit_refund" ? S : !0), Bt = (le) => {
|
|
7867
7870
|
O(le);
|
|
7868
7871
|
}, kt = (le) => {
|
|
7869
7872
|
const J = (le === "payment" ? me.length : le === "discount" ? _e.length : he.length) + 1;
|
|
7870
|
-
le === "payment" &&
|
|
7873
|
+
le === "payment" && w && me.length < 2 ? we([
|
|
7871
7874
|
...me,
|
|
7872
7875
|
{
|
|
7873
7876
|
id: J,
|
|
@@ -7973,7 +7976,7 @@ const Bs = ({
|
|
|
7973
7976
|
))
|
|
7974
7977
|
}
|
|
7975
7978
|
),
|
|
7976
|
-
(ne === "payment" || ne === "deposit") && (
|
|
7979
|
+
(ne === "payment" || ne === "deposit") && (w || v) && /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-flex-col hfl-gap-2 hfl-p-2", children: [
|
|
7977
7980
|
me.map((le, J) => /* @__PURE__ */ e.jsxs("div", { children: [
|
|
7978
7981
|
/* @__PURE__ */ e.jsxs("div", { className: "hfl-items-flex hfl-inline-flex hfl-items-center hfl-justify-center hfl-gap-2", children: [
|
|
7979
7982
|
/* @__PURE__ */ e.jsx(
|
|
@@ -8533,7 +8536,7 @@ const Bs = ({
|
|
|
8533
8536
|
rightSegment: d,
|
|
8534
8537
|
handleRightSegment: i,
|
|
8535
8538
|
billSummaryClicked: v,
|
|
8536
|
-
showDiscount:
|
|
8539
|
+
showDiscount: w = !1,
|
|
8537
8540
|
showRefund: a = !1,
|
|
8538
8541
|
handleServiceItem: A,
|
|
8539
8542
|
pastDueData: S,
|
|
@@ -8824,7 +8827,7 @@ const Bs = ({
|
|
|
8824
8827
|
isPayDue: I,
|
|
8825
8828
|
rightSegment: d,
|
|
8826
8829
|
pastDueData: S,
|
|
8827
|
-
showDiscount:
|
|
8830
|
+
showDiscount: w,
|
|
8828
8831
|
showRefund: a,
|
|
8829
8832
|
summaryData: h,
|
|
8830
8833
|
date: u,
|
|
@@ -8875,7 +8878,7 @@ const Bs = ({
|
|
|
8875
8878
|
handleRightSegment: d,
|
|
8876
8879
|
getBillSummarydata: i,
|
|
8877
8880
|
order_date: v,
|
|
8878
|
-
editRowId:
|
|
8881
|
+
editRowId: w,
|
|
8879
8882
|
setTableData: a,
|
|
8880
8883
|
refreshBillsList: A,
|
|
8881
8884
|
handleRevertEdit: S
|
|
@@ -9062,7 +9065,7 @@ const Bs = ({
|
|
|
9062
9065
|
);
|
|
9063
9066
|
b.bill_item_details.lab_owner_name && ns(b.bill_item_details.lab_owner_name, h?.patientRoleID || "", I), Q && (a(
|
|
9064
9067
|
(Y) => Y.map(
|
|
9065
|
-
(ne, O) =>
|
|
9068
|
+
(ne, O) => w == O.toString() ? {
|
|
9066
9069
|
...ne,
|
|
9067
9070
|
order_item_id: Q.order_item_id || b.order_item_id
|
|
9068
9071
|
} : ne
|
|
@@ -9093,7 +9096,7 @@ const Bs = ({
|
|
|
9093
9096
|
patientIDs: d,
|
|
9094
9097
|
doctorListArr: i,
|
|
9095
9098
|
patientDetails: v,
|
|
9096
|
-
billPreferences:
|
|
9099
|
+
billPreferences: w,
|
|
9097
9100
|
formattedService: a,
|
|
9098
9101
|
ppEventProps: A,
|
|
9099
9102
|
variable: S
|
|
@@ -9118,7 +9121,7 @@ const Bs = ({
|
|
|
9118
9121
|
...Dn,
|
|
9119
9122
|
appnt_doctor_name: window.role_id == "11" ? window.doc_name_for_seg : B?.doctor_name,
|
|
9120
9123
|
appnt_doctor_role_id: window.role_id == "11" ? window.doctor_role_id_for_seg : B?.doctor_identifier,
|
|
9121
|
-
appnt_duration: +
|
|
9124
|
+
appnt_duration: +w?.print?.bill?.appnt_minute_slab,
|
|
9122
9125
|
appnt_time_time: ee?.split(" ")[0] || "",
|
|
9123
9126
|
appnt_time_format: ee?.split(" ")[1] || "",
|
|
9124
9127
|
total_price: "",
|
|
@@ -9518,7 +9521,7 @@ const Bs = ({
|
|
|
9518
9521
|
editedTableData: d,
|
|
9519
9522
|
getBillSummarydata: i,
|
|
9520
9523
|
order_date: v,
|
|
9521
|
-
setTableData:
|
|
9524
|
+
setTableData: w,
|
|
9522
9525
|
editRowId: a,
|
|
9523
9526
|
refreshBillsList: A,
|
|
9524
9527
|
handleRevertEdit: S
|
|
@@ -9662,7 +9665,7 @@ const Bs = ({
|
|
|
9662
9665
|
Nt[1],
|
|
9663
9666
|
I
|
|
9664
9667
|
);
|
|
9665
|
-
B && (
|
|
9668
|
+
B && (w(
|
|
9666
9669
|
(H) => H.map(
|
|
9667
9670
|
(z, Q) => a == Q.toString() ? {
|
|
9668
9671
|
...z,
|
|
@@ -9697,7 +9700,7 @@ function Os() {
|
|
|
9697
9700
|
n.exports = i();
|
|
9698
9701
|
})(Vs, function() {
|
|
9699
9702
|
var d = "minute", i = /[+-]\d\d(?::?\d\d)?/g, v = /([+-]|\d\d)/g;
|
|
9700
|
-
return function(
|
|
9703
|
+
return function(w, a, A) {
|
|
9701
9704
|
var S = a.prototype;
|
|
9702
9705
|
A.utc = function(I) {
|
|
9703
9706
|
var D = { date: I, utc: !0, args: arguments };
|
|
@@ -9773,7 +9776,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
9773
9776
|
serviceDetails: d,
|
|
9774
9777
|
walletBalance: i,
|
|
9775
9778
|
rightSegment: v,
|
|
9776
|
-
serviceItem:
|
|
9779
|
+
serviceItem: w,
|
|
9777
9780
|
bill_date: a,
|
|
9778
9781
|
handleRightSegment: A,
|
|
9779
9782
|
getBillSummarydata: S,
|
|
@@ -9785,7 +9788,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
9785
9788
|
if (!V)
|
|
9786
9789
|
throw new Error("ServiceLevelBillSummary must be used within an AppContext.Provider");
|
|
9787
9790
|
const { patientDetails: W, patientIDs: I, billPreferences: D, setShowPrintModal: P, currentWindow: T, showPrintModal: b, variable: ee } = V, B = () => {
|
|
9788
|
-
switch (
|
|
9791
|
+
switch (w) {
|
|
9789
9792
|
case Nt[0]:
|
|
9790
9793
|
return "Consultation Bill";
|
|
9791
9794
|
case Nt[1]:
|
|
@@ -9793,7 +9796,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
9793
9796
|
case Nt[2]:
|
|
9794
9797
|
return "Lab Service Bill";
|
|
9795
9798
|
default:
|
|
9796
|
-
return `${
|
|
9799
|
+
return `${w} Bill`;
|
|
9797
9800
|
}
|
|
9798
9801
|
}, H = async (z, Q, Y) => {
|
|
9799
9802
|
if (b?.visible && g(), !u) return;
|
|
@@ -9942,7 +9945,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
9942
9945
|
summaryData: u,
|
|
9943
9946
|
getBillSummarydata: S,
|
|
9944
9947
|
handleRightSegment: A,
|
|
9945
|
-
serviceItem:
|
|
9948
|
+
serviceItem: w,
|
|
9946
9949
|
getPastDueAmount: h,
|
|
9947
9950
|
date: a,
|
|
9948
9951
|
refreshBillsList: k,
|
|
@@ -10041,7 +10044,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
10041
10044
|
patientIDs: d,
|
|
10042
10045
|
billPreferences: i,
|
|
10043
10046
|
setShowPrintModal: v,
|
|
10044
|
-
showPrintModal:
|
|
10047
|
+
showPrintModal: w,
|
|
10045
10048
|
setLoading: a,
|
|
10046
10049
|
// ppEventProps,
|
|
10047
10050
|
showToast: A,
|
|
@@ -10204,7 +10207,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
10204
10207
|
break;
|
|
10205
10208
|
}
|
|
10206
10209
|
}, xt = (G, Ie) => Ie.reduce((Ue, le) => Ue + (parseInt(we.bill_summary[le]?.[G] || "0") || 0), 0), Bt = (G, Ie) => Ie.map((Ue) => we.bill_summary[Ue]?.[G]).filter((Ue) => Ue), kt = async (G, Ie, Ue) => {
|
|
10207
|
-
if (
|
|
10210
|
+
if (w?.visible && n(), we?.bill_summary && Object.keys(we?.bill_summary).length > 0) {
|
|
10208
10211
|
const le = await _s(
|
|
10209
10212
|
Bt("order_id", G),
|
|
10210
10213
|
d?.patientRoleID,
|
|
@@ -10466,7 +10469,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
10466
10469
|
] })
|
|
10467
10470
|
] });
|
|
10468
10471
|
}, ka = (n) => {
|
|
10469
|
-
const { appointments: u, isDisabled: d, handleAppointData: i, leftNav: v, today:
|
|
10472
|
+
const { appointments: u, isDisabled: d, handleAppointData: i, leftNav: v, today: w } = n, a = $t(
|
|
10470
10473
|
(D) => {
|
|
10471
10474
|
i(D);
|
|
10472
10475
|
},
|
|
@@ -10637,7 +10640,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
10637
10640
|
return /* @__PURE__ */ e.jsx(
|
|
10638
10641
|
"div",
|
|
10639
10642
|
{
|
|
10640
|
-
className: `${d ? " hfl-pointer-events-none" : "hfl-cursor-pointer"} ${
|
|
10643
|
+
className: `${d ? " hfl-pointer-events-none" : "hfl-cursor-pointer"} ${w ? " hfl-h-[500px] hfl-overflow-y-scroll" : ""} `,
|
|
10641
10644
|
children: u && /* @__PURE__ */ e.jsxs(
|
|
10642
10645
|
"table",
|
|
10643
10646
|
{
|
|
@@ -10659,11 +10662,11 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
10659
10662
|
}
|
|
10660
10663
|
);
|
|
10661
10664
|
}, ul = (n) => {
|
|
10662
|
-
const { currentPage: u, totalRecord: d, handleLoadMore: i, isLoading: v = !1, currentTotal:
|
|
10665
|
+
const { currentPage: u, totalRecord: d, handleLoadMore: i, isLoading: v = !1, currentTotal: w } = n;
|
|
10663
10666
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
10664
10667
|
!v && /* @__PURE__ */ e.jsxs("div", { className: "hfl-flex hfl-items-center hfl-justify-between", children: [
|
|
10665
|
-
/* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text sm", className: "hfl-text-Gray-500", children: `1 — ${
|
|
10666
|
-
|
|
10668
|
+
/* @__PURE__ */ e.jsx(N, { variant: "Medium", type: "Text sm", className: "hfl-text-Gray-500", children: `1 — ${w} of ${d} results` }),
|
|
10669
|
+
w !== d ? /* @__PURE__ */ e.jsx(
|
|
10667
10670
|
Le,
|
|
10668
10671
|
{
|
|
10669
10672
|
className: "hfl-text-Blue-^00 hfl-flex hfl-justify-center",
|
|
@@ -10677,7 +10680,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
10677
10680
|
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 }) })
|
|
10678
10681
|
] });
|
|
10679
10682
|
}, Ys = (n) => {
|
|
10680
|
-
const { handleAddNewAppnt: u, handleAppointData: d, sortAppointments: i } = n, [v,
|
|
10683
|
+
const { handleAddNewAppnt: u, handleAppointData: d, sortAppointments: i } = n, [v, w] = U(), [a, A] = U(1), [S, h] = U([]), [k, g] = U([]), [L, V] = U(""), { patientIDs: W, setLoading: I, variable: D } = Lt(Mt), P = async (T) => {
|
|
10681
10684
|
let b = T;
|
|
10682
10685
|
if (I(!0), b <= Math.ceil((v?.total_records || 0) / 10)) {
|
|
10683
10686
|
if (b = T + 1, b !== T) {
|
|
@@ -10699,7 +10702,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
10699
10702
|
const T = async () => {
|
|
10700
10703
|
try {
|
|
10701
10704
|
const b = await Ul("all", W?.patientRoleID || "", 1, 10, !1, D);
|
|
10702
|
-
b && (
|
|
10705
|
+
b && (w(b), h(
|
|
10703
10706
|
b?.appointments?.filter((ee) => ee.appnt_date >= Te(/* @__PURE__ */ new Date()).format("YYYY-MM-DD"))
|
|
10704
10707
|
), g(
|
|
10705
10708
|
b?.appointments?.filter((ee) => ee.appnt_date < Te(/* @__PURE__ */ new Date()).format("YYYY-MM-DD"))
|
|
@@ -10780,7 +10783,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
10780
10783
|
doctorListArr: d,
|
|
10781
10784
|
serviceListArr: i,
|
|
10782
10785
|
patientIDs: v,
|
|
10783
|
-
setLoading:
|
|
10786
|
+
setLoading: w,
|
|
10784
10787
|
billPreferences: a,
|
|
10785
10788
|
docPreference: A,
|
|
10786
10789
|
formattedService: S,
|
|
@@ -11105,7 +11108,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
11105
11108
|
), xt = $t(() => {
|
|
11106
11109
|
I("today"), Q(H), P(!0);
|
|
11107
11110
|
}, [H]), Bt = $t(async () => {
|
|
11108
|
-
|
|
11111
|
+
w(!0);
|
|
11109
11112
|
try {
|
|
11110
11113
|
const G = await Ul(
|
|
11111
11114
|
W == "today" ? Te().format("YYYY-MM-DD") : "all",
|
|
@@ -11117,11 +11120,11 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
11117
11120
|
);
|
|
11118
11121
|
b(
|
|
11119
11122
|
G?.appointments?.filter((Ie) => Ie.appnt_date === Te().format("YYYY-MM-DD"))
|
|
11120
|
-
), G.appointments.length === 0 && xt(),
|
|
11123
|
+
), G.appointments.length === 0 && xt(), w(!1);
|
|
11121
11124
|
} catch {
|
|
11122
|
-
|
|
11125
|
+
w(!1), console.log("error in getAppointmentsList API Call");
|
|
11123
11126
|
}
|
|
11124
|
-
}, [xt, W, v?.patientRoleID,
|
|
11127
|
+
}, [xt, W, v?.patientRoleID, w, g]);
|
|
11125
11128
|
Ye(() => {
|
|
11126
11129
|
D || Bt();
|
|
11127
11130
|
}, [D, Bt]), Ye(() => {
|
|
@@ -11464,7 +11467,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
11464
11467
|
)
|
|
11465
11468
|
] });
|
|
11466
11469
|
}, $s = ({ columns: n, data: u }) => {
|
|
11467
|
-
const { getTableProps: d, getTableBodyProps: i, headerGroups: v, rows:
|
|
11470
|
+
const { getTableProps: d, getTableBodyProps: i, headerGroups: v, rows: w, prepareRow: a } = dl.useTable({
|
|
11468
11471
|
columns: n,
|
|
11469
11472
|
data: u
|
|
11470
11473
|
}), A = (h) => {
|
|
@@ -11483,7 +11486,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
11483
11486
|
}), k;
|
|
11484
11487
|
}, S = () => {
|
|
11485
11488
|
const h = [];
|
|
11486
|
-
return
|
|
11489
|
+
return w.map((k, g) => {
|
|
11487
11490
|
a(k), h.push(
|
|
11488
11491
|
/* @__PURE__ */ e.jsx(
|
|
11489
11492
|
"tr",
|
|
@@ -11537,7 +11540,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
11537
11540
|
setInvestigationDropdown: d,
|
|
11538
11541
|
setCustomTranslations: i,
|
|
11539
11542
|
getVisitpadPreferenceHandler: v,
|
|
11540
|
-
updateVPPrefUsingDocPref:
|
|
11543
|
+
updateVPPrefUsingDocPref: w
|
|
11541
11544
|
}) => {
|
|
11542
11545
|
const {
|
|
11543
11546
|
patientIDs: a,
|
|
@@ -11600,7 +11603,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
11600
11603
|
k.window_var.doctor_role_id_for_seg !== he ? _e = await v({
|
|
11601
11604
|
doc_id: tt,
|
|
11602
11605
|
doc_rid: he
|
|
11603
|
-
}) : h && await
|
|
11606
|
+
}) : h && await w(h, h.printDefaultPrefIndex, he, !1), u(we.latest_visit_metadata || {}), A({
|
|
11604
11607
|
printDataFrom: "patient_popup",
|
|
11605
11608
|
visible: !0,
|
|
11606
11609
|
whichPreview: "offlinePrint",
|
|
@@ -11636,7 +11639,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
11636
11639
|
S,
|
|
11637
11640
|
u,
|
|
11638
11641
|
A,
|
|
11639
|
-
|
|
11642
|
+
w,
|
|
11640
11643
|
D
|
|
11641
11644
|
]
|
|
11642
11645
|
), b = $t(async () => {
|
|
@@ -11946,7 +11949,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
11946
11949
|
/* @__PURE__ */ e.jsx(It, { style: { fontFamily: "Arial-BoldItalic" }, children: "load font" }),
|
|
11947
11950
|
/* @__PURE__ */ e.jsx(It, { style: { fontFamily: "Rupee" }, children: "load font" })
|
|
11948
11951
|
] }) }) })), Xs = (n) => {
|
|
11949
|
-
const { billsData: u, handleRowClick: d, handleRightSegment: i, getRowIndices: v, getRefundAmt:
|
|
11952
|
+
const { billsData: u, handleRowClick: d, handleRightSegment: i, getRowIndices: v, getRefundAmt: w, closePrintModal: a } = n, {
|
|
11950
11953
|
patientIDs: A,
|
|
11951
11954
|
patientDetails: S,
|
|
11952
11955
|
billPreferences: h,
|
|
@@ -12183,7 +12186,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12183
12186
|
"data-qa": ee + 1 + "-" + (H + 1) + "-delete-bill",
|
|
12184
12187
|
className: `${P.td_without_truncate} hfl-max-w-[36px] hfl-cursor-pointer`,
|
|
12185
12188
|
onClick: () => {
|
|
12186
|
-
v(ee, H), i(ht[6]), parseInt(b.order_paid_amount) - parseInt(b.refund_amount) <= parseInt(b.net_bill_amount) - parseInt(b.order_items[H].net_amount) ?
|
|
12189
|
+
v(ee, H), i(ht[6]), parseInt(b.order_paid_amount) - parseInt(b.refund_amount) <= parseInt(b.net_bill_amount) - parseInt(b.order_items[H].net_amount) ? w(0) : w(parseInt(b.order_paid_amount) - parseInt(b.refund_amount));
|
|
12187
12190
|
},
|
|
12188
12191
|
children: /* @__PURE__ */ e.jsx("i", { className: "hx_delete hfl-text-Gray-500" })
|
|
12189
12192
|
}
|
|
@@ -12196,7 +12199,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12196
12199
|
handleRightSegment: d,
|
|
12197
12200
|
bills: i,
|
|
12198
12201
|
billsListIndex: v,
|
|
12199
|
-
orderItemsIndex:
|
|
12202
|
+
orderItemsIndex: w,
|
|
12200
12203
|
// handleDeleteItem,
|
|
12201
12204
|
getBillsList: a
|
|
12202
12205
|
} = n, { patientIDs: A, showToast: S, variable: h } = Lt(Mt) || {}, [k, g] = U("");
|
|
@@ -12218,7 +12221,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12218
12221
|
/* @__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: [
|
|
12219
12222
|
/* @__PURE__ */ e.jsxs(N, { variant: "Semibold", type: "Text sm", children: [
|
|
12220
12223
|
"Service: ",
|
|
12221
|
-
i?.bill_list[v].order_items[
|
|
12224
|
+
i?.bill_list[v].order_items[w].service_name
|
|
12222
12225
|
] }),
|
|
12223
12226
|
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: [
|
|
12224
12227
|
"Refund of",
|
|
@@ -12269,7 +12272,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12269
12272
|
if (i?.bill_list?.[v].order_id) {
|
|
12270
12273
|
const L = await An(
|
|
12271
12274
|
i?.bill_list?.[v].order_id,
|
|
12272
|
-
i?.bill_list?.[v].order_items[
|
|
12275
|
+
i?.bill_list?.[v].order_items[w].order_item_id,
|
|
12273
12276
|
A?.patientRoleID || "",
|
|
12274
12277
|
k,
|
|
12275
12278
|
"0",
|
|
@@ -12302,7 +12305,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12302
12305
|
) })
|
|
12303
12306
|
] });
|
|
12304
12307
|
}, 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) => {
|
|
12305
|
-
const { closePrintModal: u, handleCurrentWindow: d, billIdToOpen: i, onBillHandled: v } = n, [
|
|
12308
|
+
const { closePrintModal: u, handleCurrentWindow: d, billIdToOpen: i, onBillHandled: v } = n, [w, a] = U(), [A, S] = U(""), [h, k] = U(""), [g, L] = U(), [V, W] = U(), [I, D] = U(1), [P, T] = U([]), [b, ee] = U(-1), [B, H] = U(-1), [z, Q] = U(0), [Y, ne] = U(0), [O, me] = U(!1), we = Lt(Mt);
|
|
12306
12309
|
if (!we)
|
|
12307
12310
|
throw new Error("Bills component must be used within an AppContext.Provider");
|
|
12308
12311
|
const { patientIDs: _e, setLoading: tt, variable: he } = we, X = (We) => Q(We), ce = (We = ht[0]) => S(We), M = (We) => k(We), Ae = (We) => {
|
|
@@ -12336,7 +12339,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12336
12339
|
tt(!1);
|
|
12337
12340
|
}, it = async (We) => {
|
|
12338
12341
|
let st = We;
|
|
12339
|
-
if (tt(!0), st <= Math.ceil(
|
|
12342
|
+
if (tt(!0), st <= Math.ceil(w.total_pages)) {
|
|
12340
12343
|
if (st = We + 1, st !== We) {
|
|
12341
12344
|
const Dt = await Fa("all", _e.patientRoleID, We, 10, he);
|
|
12342
12345
|
if (Dt?.bill_list) {
|
|
@@ -12396,7 +12399,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12396
12399
|
] })
|
|
12397
12400
|
] })
|
|
12398
12401
|
] }),
|
|
12399
|
-
|
|
12402
|
+
w?.bill_list?.length > 0 ? /* @__PURE__ */ e.jsx(
|
|
12400
12403
|
Xs,
|
|
12401
12404
|
{
|
|
12402
12405
|
billsData: P,
|
|
@@ -12431,12 +12434,12 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12431
12434
|
] })
|
|
12432
12435
|
] })
|
|
12433
12436
|
] }) }),
|
|
12434
|
-
|
|
12437
|
+
w?.bill_list?.length > 0 && /* @__PURE__ */ e.jsx("div", { className: "hfl-px-6 hfl-py-2", children: /* @__PURE__ */ e.jsx(
|
|
12435
12438
|
ul,
|
|
12436
12439
|
{
|
|
12437
12440
|
currentPage: I,
|
|
12438
|
-
totalRecord:
|
|
12439
|
-
currentTotal: I === Math.ceil(
|
|
12441
|
+
totalRecord: w?.total_records,
|
|
12442
|
+
currentTotal: I === Math.ceil(w?.total_records / 20) ? w?.total_records : I * 20,
|
|
12440
12443
|
handleLoadMore: it
|
|
12441
12444
|
}
|
|
12442
12445
|
) })
|
|
@@ -12465,7 +12468,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12465
12468
|
Js,
|
|
12466
12469
|
{
|
|
12467
12470
|
refundAmt: z,
|
|
12468
|
-
bills:
|
|
12471
|
+
bills: w,
|
|
12469
12472
|
billsListIndex: b,
|
|
12470
12473
|
orderItemsIndex: B,
|
|
12471
12474
|
handleRightSegment: ce,
|
|
@@ -12489,18 +12492,18 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12489
12492
|
hideBackDrop: d = !1,
|
|
12490
12493
|
backdropClasses: i = "",
|
|
12491
12494
|
modalClasses: v = "",
|
|
12492
|
-
closeOnClickOutside:
|
|
12495
|
+
closeOnClickOutside: w,
|
|
12493
12496
|
clickOutsideHandler: a,
|
|
12494
12497
|
position: A = "hfl-inset-0"
|
|
12495
12498
|
}) => (Ye(() => {
|
|
12496
|
-
if (!
|
|
12499
|
+
if (!w) return;
|
|
12497
12500
|
const S = (h) => {
|
|
12498
12501
|
n.current && !n.current.contains(h.target) && a();
|
|
12499
12502
|
};
|
|
12500
12503
|
return document.addEventListener("mousedown", S), () => {
|
|
12501
12504
|
document.removeEventListener("mousedown", S);
|
|
12502
12505
|
};
|
|
12503
|
-
}, [a, n,
|
|
12506
|
+
}, [a, n, w]), /* @__PURE__ */ e.jsx(
|
|
12504
12507
|
"div",
|
|
12505
12508
|
{
|
|
12506
12509
|
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"}`,
|
|
@@ -12512,13 +12515,13 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12512
12515
|
payment_id: d,
|
|
12513
12516
|
currentMode: i,
|
|
12514
12517
|
transactionType: v,
|
|
12515
|
-
refreshPaymentData:
|
|
12518
|
+
refreshPaymentData: w
|
|
12516
12519
|
}) => {
|
|
12517
12520
|
const { showToast: a, variable: A } = Lt(Mt) || {}, [S, h] = U({
|
|
12518
12521
|
paymentMethod: i
|
|
12519
12522
|
}), k = async () => {
|
|
12520
12523
|
const g = await ps(d, S.paymentMethod, v, A);
|
|
12521
|
-
g.status ? (a("Update Success", g.message, "Success", 3e3),
|
|
12524
|
+
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: "" });
|
|
12522
12525
|
};
|
|
12523
12526
|
return /* @__PURE__ */ e.jsxs("div", { ref: n, className: "hfl-flex hfl-w-[400px] hfl-flex-col hfl-rounded-lg hfl-border-none", children: [
|
|
12524
12527
|
/* @__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: [
|
|
@@ -12582,7 +12585,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12582
12585
|
handleDeleteRow: d,
|
|
12583
12586
|
handleRightSegment: i,
|
|
12584
12587
|
handleRowClick: v,
|
|
12585
|
-
getType:
|
|
12588
|
+
getType: w,
|
|
12586
12589
|
getTypeColor: a,
|
|
12587
12590
|
refreshPaymentData: A
|
|
12588
12591
|
}) => {
|
|
@@ -12656,7 +12659,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12656
12659
|
variant: "Regular",
|
|
12657
12660
|
type: "Text sm",
|
|
12658
12661
|
className: ` -hfl-ml-1 hfl-px-1 ${a(V.payment_refund)}`,
|
|
12659
|
-
children:
|
|
12662
|
+
children: w(V.payment_refund)
|
|
12660
12663
|
}
|
|
12661
12664
|
)
|
|
12662
12665
|
] })
|
|
@@ -12683,7 +12686,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12683
12686
|
show: !0,
|
|
12684
12687
|
payment_id: V.order_payment_id,
|
|
12685
12688
|
mode: V.paid_mode,
|
|
12686
|
-
payment_type:
|
|
12689
|
+
payment_type: w(V.payment_refund).toLowerCase()
|
|
12687
12690
|
});
|
|
12688
12691
|
}
|
|
12689
12692
|
}
|
|
@@ -12749,7 +12752,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12749
12752
|
patient_entity_id: v
|
|
12750
12753
|
}) => {
|
|
12751
12754
|
const {
|
|
12752
|
-
patientDetails:
|
|
12755
|
+
patientDetails: w,
|
|
12753
12756
|
patientIDs: a,
|
|
12754
12757
|
billPreferences: A,
|
|
12755
12758
|
setShowPrintModal: S,
|
|
@@ -12760,19 +12763,19 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12760
12763
|
} = Lt(Mt), k = async (g, L, V, W) => {
|
|
12761
12764
|
h?.visible && i();
|
|
12762
12765
|
const D = [
|
|
12763
|
-
|
|
12764
|
-
cl[
|
|
12765
|
-
|
|
12766
|
+
w?.age && typeof w?.age == "number" ? `${w?.age}y` : w?.org_person_dob ? wr(w?.org_person_dob) : "",
|
|
12767
|
+
cl[w?.gender] ?? "",
|
|
12768
|
+
w?.blood_group
|
|
12766
12769
|
].filter((T) => T).join(", "), P = {
|
|
12767
|
-
name: pr(
|
|
12770
|
+
name: pr(w?.name) + (D ? ` (${D}) ` : ""),
|
|
12768
12771
|
billDate: Te(g?.transaction_time).format("DD-MMM-YYYY"),
|
|
12769
|
-
mobileNumber:
|
|
12770
|
-
email:
|
|
12772
|
+
mobileNumber: w?.phone_number,
|
|
12773
|
+
email: w?.email,
|
|
12771
12774
|
billNumber: g?.bill_number,
|
|
12772
|
-
patientId:
|
|
12775
|
+
patientId: w?.org_person_bid_str,
|
|
12773
12776
|
patientIdForEmail: a?.patientRoleID,
|
|
12774
12777
|
billStatus: "PAID",
|
|
12775
|
-
address: [
|
|
12778
|
+
address: [w?.address ?? "", w?.city ?? "", w?.pincode ?? ""].filter((T) => T).join(", ")
|
|
12776
12779
|
};
|
|
12777
12780
|
S({
|
|
12778
12781
|
printDataFrom: "patient_popup",
|
|
@@ -12855,7 +12858,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12855
12858
|
setTableData: d,
|
|
12856
12859
|
handleRightSegment: i,
|
|
12857
12860
|
handleRowClick: v,
|
|
12858
|
-
activeTab:
|
|
12861
|
+
activeTab: w,
|
|
12859
12862
|
closePrintModal: a,
|
|
12860
12863
|
patient_entity_id: A,
|
|
12861
12864
|
refreshPaymentData: S
|
|
@@ -12908,7 +12911,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12908
12911
|
default:
|
|
12909
12912
|
return "";
|
|
12910
12913
|
}
|
|
12911
|
-
}, I = Kt(() =>
|
|
12914
|
+
}, I = Kt(() => w === br[Ir.consultation_lab_other_services].key ? [
|
|
12912
12915
|
{
|
|
12913
12916
|
label: "Date/Time",
|
|
12914
12917
|
className: "focus:hfl-outline-none hfl-items-start hfl-w-[162px] hfl-border-Gray-200 hfl-border-1"
|
|
@@ -12974,7 +12977,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12974
12977
|
label: "Details",
|
|
12975
12978
|
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"
|
|
12976
12979
|
}
|
|
12977
|
-
], [
|
|
12980
|
+
], [w]), D = ({ label: T, className: b }) => /* @__PURE__ */ e.jsx("th", { className: b, children: /* @__PURE__ */ e.jsxs(N, { variant: "Semibold", type: "Text sm", className: "hfl-text-Gray-600", children: [
|
|
12978
12981
|
" ",
|
|
12979
12982
|
T
|
|
12980
12983
|
] }) }), P = {
|
|
@@ -12984,7 +12987,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
12984
12987
|
};
|
|
12985
12988
|
return /* @__PURE__ */ e.jsx("div", { className: "", children: /* @__PURE__ */ e.jsxs("table", { className: `${P.table}`, children: [
|
|
12986
12989
|
/* @__PURE__ */ e.jsx("thead", { className: `${P.th}`, children: /* @__PURE__ */ e.jsx("tr", { children: I.map((T, b) => /* @__PURE__ */ e.jsx(D, { label: T.label, className: T.className }, b)) }) }),
|
|
12987
|
-
/* @__PURE__ */ e.jsx("tbody", { children:
|
|
12990
|
+
/* @__PURE__ */ e.jsx("tbody", { children: w === br[Ir.consultation_lab_other_services].key ? /* @__PURE__ */ e.jsx(
|
|
12988
12991
|
lo,
|
|
12989
12992
|
{
|
|
12990
12993
|
styles: P,
|
|
@@ -13036,7 +13039,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
13036
13039
|
billPreferences: i,
|
|
13037
13040
|
setShowPrintModal: v,
|
|
13038
13041
|
// currentWindow,
|
|
13039
|
-
showPrintModal:
|
|
13042
|
+
showPrintModal: w
|
|
13040
13043
|
// setLoading,
|
|
13041
13044
|
// ppEventProps,
|
|
13042
13045
|
} = Lt(Mt) || {}, {
|
|
@@ -13046,7 +13049,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
13046
13049
|
summaryData: S,
|
|
13047
13050
|
patient_entity_id: h
|
|
13048
13051
|
} = n, k = async (g, L) => {
|
|
13049
|
-
|
|
13052
|
+
w?.visible && A();
|
|
13050
13053
|
const W = [
|
|
13051
13054
|
u?.age && typeof u?.age == "number" ? `${u?.age}y` : u?.org_person_dob ? wr(u?.org_person_dob) : "",
|
|
13052
13055
|
cl[u?.gender] ?? "",
|
|
@@ -13180,7 +13183,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
13180
13183
|
br[Ir.consultation_lab_other_services].key
|
|
13181
13184
|
), [i, v] = U(
|
|
13182
13185
|
null
|
|
13183
|
-
), [
|
|
13186
|
+
), [w, a] = U(ht[5]), [A, S] = U(""), [h, k] = U(), [g, L] = U([]), [V, W] = U(1), [I, D] = U(), { setLoading: P, patientIDs: T, variable: b } = Lt(Mt), [ee, B] = U(0), [H, z] = U(!1), Q = $t(async () => {
|
|
13184
13187
|
try {
|
|
13185
13188
|
if (P(!0), T?.patientRoleID) {
|
|
13186
13189
|
const X = await Ma(T.patientRoleID, 1, 10, b);
|
|
@@ -13245,7 +13248,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
13245
13248
|
/* @__PURE__ */ e.jsxs(
|
|
13246
13249
|
"div",
|
|
13247
13250
|
{
|
|
13248
|
-
className: `hfl-flex hfl-w-[938px] hfl-flex-col hfl-justify-start hfl-px-4 hfl-py-2 xxs:max-md:hfl-w-[750px] ${
|
|
13251
|
+
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 === ht[7] ? "hfl-opacity-30" : ""}`,
|
|
13249
13252
|
children: [
|
|
13250
13253
|
/* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-items-center", children: Object.values(br).map((X, ce) => /* @__PURE__ */ e.jsx(
|
|
13251
13254
|
N,
|
|
@@ -13306,10 +13309,10 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
13306
13309
|
}
|
|
13307
13310
|
),
|
|
13308
13311
|
/* @__PURE__ */ e.jsxs(Ka, { children: [
|
|
13309
|
-
|
|
13312
|
+
w === ht[1] && /* @__PURE__ */ e.jsx(
|
|
13310
13313
|
Qa,
|
|
13311
13314
|
{
|
|
13312
|
-
rightSegment:
|
|
13315
|
+
rightSegment: w,
|
|
13313
13316
|
categorySummaryData: {
|
|
13314
13317
|
...h,
|
|
13315
13318
|
order_date: I?.order_date ?? ""
|
|
@@ -13328,16 +13331,16 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
13328
13331
|
bill_date: ""
|
|
13329
13332
|
}
|
|
13330
13333
|
),
|
|
13331
|
-
|
|
13334
|
+
w === ht[7] && /* @__PURE__ */ e.jsx(
|
|
13332
13335
|
en,
|
|
13333
13336
|
{
|
|
13334
13337
|
depositAmount: ee,
|
|
13335
13338
|
handleRightSegment: ne,
|
|
13336
|
-
rightSegment:
|
|
13339
|
+
rightSegment: w,
|
|
13337
13340
|
setRefreshWallet: z
|
|
13338
13341
|
}
|
|
13339
13342
|
),
|
|
13340
|
-
|
|
13343
|
+
w === ht[8] && /* @__PURE__ */ e.jsx(
|
|
13341
13344
|
oo,
|
|
13342
13345
|
{
|
|
13343
13346
|
summaryData: {
|
|
@@ -13352,7 +13355,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
13352
13355
|
] })
|
|
13353
13356
|
] });
|
|
13354
13357
|
}, 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 }) => {
|
|
13355
|
-
const { getTableProps: d, getTableBodyProps: i, headerGroups: v, rows:
|
|
13358
|
+
const { getTableProps: d, getTableBodyProps: i, headerGroups: v, rows: w, prepareRow: a } = dl.useTable({
|
|
13356
13359
|
columns: n,
|
|
13357
13360
|
data: u
|
|
13358
13361
|
}), A = (h) => {
|
|
@@ -13371,7 +13374,7 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
13371
13374
|
}), k;
|
|
13372
13375
|
}, S = () => {
|
|
13373
13376
|
const h = [];
|
|
13374
|
-
return
|
|
13377
|
+
return w.map((k, g) => {
|
|
13375
13378
|
a(k), h.push(
|
|
13376
13379
|
/* @__PURE__ */ e.jsx(
|
|
13377
13380
|
"tr",
|
|
@@ -13412,9 +13415,9 @@ const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|
|
|
13412
13415
|
}
|
|
13413
13416
|
) });
|
|
13414
13417
|
}, uo = (n) => {
|
|
13415
|
-
const { visits: u = [], setPdfUrl: d, pdfUrl: i } = n, [v,
|
|
13418
|
+
const { visits: u = [], setPdfUrl: d, pdfUrl: i } = n, [v, w] = U([]);
|
|
13416
13419
|
return Ye(() => {
|
|
13417
|
-
|
|
13420
|
+
w(fo(u));
|
|
13418
13421
|
}, []), /* @__PURE__ */ e.jsx("div", { children: v && v.length && v.map(
|
|
13419
13422
|
(a, A) => a.reports.length > 0 && a.reports.map((S, h) => {
|
|
13420
13423
|
const k = a.date || "No date available";
|
|
@@ -13467,7 +13470,7 @@ ${g}`,
|
|
|
13467
13470
|
patientDetails: d,
|
|
13468
13471
|
lisPDFUrl: i = { report_link: "", lab_number: "" },
|
|
13469
13472
|
showListing: v = !0,
|
|
13470
|
-
showToast:
|
|
13473
|
+
showToast: w,
|
|
13471
13474
|
openLISReportHandler: a = () => {
|
|
13472
13475
|
},
|
|
13473
13476
|
variable: A
|
|
@@ -13504,7 +13507,7 @@ ${g}`,
|
|
|
13504
13507
|
label: ce?.label || "",
|
|
13505
13508
|
patient_name: L
|
|
13506
13509
|
}, Fe = await bi(Ae, A), He = M === "SMS/WA" ? "WhatsApp" : M;
|
|
13507
|
-
Fe ||
|
|
13510
|
+
Fe || w("", He + " failed to sent", "Error", 3e3), w("", He + " sent successfully", "Success", 3e3);
|
|
13508
13511
|
}, X = (ce) => ce ? `${ce}#toolbar=0&navpanes=0` : `data:text/html;charset=utf-8,${encodeURIComponent(`
|
|
13509
13512
|
<html>
|
|
13510
13513
|
<body style="font-family: sans-serif; display: flex; align-items: center; justify-content: center; height: 100%; margin:0; background:#f9f9f9;">
|
|
@@ -13732,7 +13735,7 @@ ${g}`,
|
|
|
13732
13735
|
}
|
|
13733
13736
|
);
|
|
13734
13737
|
}, po = (n) => {
|
|
13735
|
-
const { patientDetails: u, showToast: d, variable: i } = n, [v,
|
|
13738
|
+
const { patientDetails: u, showToast: d, variable: i } = n, [v, w] = U(!1), [a, A] = U(""), { org_person_bid_str: S = "" } = u, h = Oa(
|
|
13736
13739
|
(ee, B) => ({ ...ee, ...B }),
|
|
13737
13740
|
{
|
|
13738
13741
|
currentPage: 1,
|
|
@@ -13741,7 +13744,7 @@ ${g}`,
|
|
|
13741
13744
|
isLabTableLoading: !1
|
|
13742
13745
|
}
|
|
13743
13746
|
), [k, g] = h, { LabRecords: L, currentPage: V, isLabTableLoading: W } = k, I = (ee, B) => {
|
|
13744
|
-
ee === "print_pdf" ? window.open(B.report_link, "_blank") : ee === "print_preview" && (
|
|
13747
|
+
ee === "print_pdf" ? window.open(B.report_link, "_blank") : ee === "print_preview" && (w(!0), A(B));
|
|
13745
13748
|
}, D = $t(
|
|
13746
13749
|
async (ee) => {
|
|
13747
13750
|
try {
|
|
@@ -13840,7 +13843,7 @@ ${g}`,
|
|
|
13840
13843
|
v && /* @__PURE__ */ e.jsx("div", { className: "hfl-absolute hfl-left-[50%] hfl-top-[50%]", children: /* @__PURE__ */ e.jsx(
|
|
13841
13844
|
ho,
|
|
13842
13845
|
{
|
|
13843
|
-
setLisModalOpen:
|
|
13846
|
+
setLisModalOpen: w,
|
|
13844
13847
|
patientDetails: u,
|
|
13845
13848
|
lisPDFUrl: a,
|
|
13846
13849
|
showListing: !1,
|
|
@@ -13880,7 +13883,7 @@ ${g}`,
|
|
|
13880
13883
|
});
|
|
13881
13884
|
}), u;
|
|
13882
13885
|
}, go = (n) => {
|
|
13883
|
-
const { patientDetails: u, showToast: d, variable: i, visitpad_preference: v, branch_preference:
|
|
13886
|
+
const { patientDetails: u, showToast: d, variable: i, visitpad_preference: v, branch_preference: w } = n, [a, A] = U({
|
|
13884
13887
|
printDataFrom: "",
|
|
13885
13888
|
visible: !1,
|
|
13886
13889
|
printType: "",
|
|
@@ -14067,7 +14070,7 @@ ${g}`,
|
|
|
14067
14070
|
labReportData: a.details.labReportData,
|
|
14068
14071
|
labOrderData: a.details.labOrderData,
|
|
14069
14072
|
preferences: v,
|
|
14070
|
-
branch_preference:
|
|
14073
|
+
branch_preference: w,
|
|
14071
14074
|
// The patientDetails for the print component is simpler, so we construct it
|
|
14072
14075
|
patientDetails: a.details.patientDetails
|
|
14073
14076
|
} : void 0
|
|
@@ -14075,7 +14078,7 @@ ${g}`,
|
|
|
14075
14078
|
)
|
|
14076
14079
|
] });
|
|
14077
14080
|
}, xo = (n) => {
|
|
14078
|
-
const { showToast: u } = n, { patientDetails: d, billPreferences: i, variable: v, preferences:
|
|
14081
|
+
const { showToast: u } = n, { patientDetails: d, billPreferences: i, variable: v, preferences: w } = Lt(Mt) || {}, [a, A] = U(""), [S, h] = U(), k = i?.features?.enable_lis_v1 ?? !1, g = v.window_var.permit_lab_tech == "1";
|
|
14079
14082
|
Ye(() => {
|
|
14080
14083
|
(async () => {
|
|
14081
14084
|
if (g)
|
|
@@ -14124,7 +14127,7 @@ ${g}`,
|
|
|
14124
14127
|
patientDetails: d,
|
|
14125
14128
|
showToast: u,
|
|
14126
14129
|
variable: v,
|
|
14127
|
-
visitpad_preference:
|
|
14130
|
+
visitpad_preference: w,
|
|
14128
14131
|
branch_preference: S
|
|
14129
14132
|
}
|
|
14130
14133
|
)
|
|
@@ -14132,7 +14135,7 @@ ${g}`,
|
|
|
14132
14135
|
] }) : /* @__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." }) }) }) }) });
|
|
14133
14136
|
};
|
|
14134
14137
|
function Do({ variable: n }) {
|
|
14135
|
-
const { window_var: u, token: d, envName: i, IMGREP_DIRECTORY: v } = n,
|
|
14138
|
+
const { window_var: u, token: d, envName: i, IMGREP_DIRECTORY: v } = n, w = Ya("(max-width: 1080px)"), a = Mr(null), [A, S] = U(!1), [h, k] = U(!1), [g, L] = U([]), [V, W] = U(jt[2]), [I, D] = U(), [P, T] = U(), [b, ee] = U(), [B, H] = U(), [z, Q] = U(), [Y, ne] = U(), [O, me] = U({
|
|
14136
14139
|
printDataFrom: "",
|
|
14137
14140
|
visible: !1,
|
|
14138
14141
|
whichPreview: "offlinePrint",
|
|
@@ -14408,7 +14411,7 @@ function Do({ variable: n }) {
|
|
|
14408
14411
|
backgroundColor: "var(--White, #FFFFFD)",
|
|
14409
14412
|
boxShadow: "0px 8px 8px -4px rgba(16, 24, 40, 0.03), 0px 20px 24px -4px rgba(16, 24, 40, 0.08)",
|
|
14410
14413
|
padding: "0px",
|
|
14411
|
-
width:
|
|
14414
|
+
width: w ? "980px" : "1267px",
|
|
14412
14415
|
maxHeight: "80.45vh",
|
|
14413
14416
|
minHeight: "70vh",
|
|
14414
14417
|
inset: "6%"
|