@bahmni/appointments-app 0.0.1-dev.363 → 0.0.1-dev.366
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/{DocumentsTable-ClhCu3Gn-IjTd1ihL.js → DocumentsTable-gaNpd5Oz-CTCqDf5n.js} +29 -29
- package/dist/{FormsTable-B1Jf7c-q-CYj0PcqY.js → FormsTable-D4dXAIbr-D_LTX3bd.js} +29 -29
- package/dist/{LNWAZHJI-DA6_qvB2.js → LNWAZHJI-DHqYNoHL.js} +2 -2
- package/dist/{MWZ6AO7Z-BFwAZzmX.js → MWZ6AO7Z-BtPN0axu.js} +2 -2
- package/dist/{Observations-BU2hE5R4-C1AqoRwn.js → Observations-DA1z7g3V-DjRioyaG.js} +22 -22
- package/dist/{YPM2AS64-CYO0ZGVv.js → YPM2AS64-CEh8M9KD.js} +1 -1
- package/dist/{index-CQhqijOM.js → index-1Z6BAYr6.js} +9 -9
- package/dist/{index-CsHPUgwM.js → index-BTbPRgCo.js} +93 -80
- package/dist/{index-C1IZ00DT.js → index-Dm0m9h95.js} +5 -5
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r, jsxs as p, Fragment as x } from "react/jsx-runtime";
|
|
2
|
-
import { g as G, u as Y, K as W,
|
|
2
|
+
import { g as G, u as Y, K as W, w as J, a as X, b as Z, U as ee, p as te } from "./index-BTbPRgCo.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
|
-
import { useState as l, useCallback as h, useEffect as
|
|
4
|
+
import { useState as l, useCallback as h, useEffect as I, useMemo as _ } from "react";
|
|
5
5
|
const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTable-module_viewAttachmentsLink__aQ1on", re = "DocumentsTable-module_documentViewerContainer__F5m8D", de = "DocumentsTable-module_attachmentItem__17KA7", se = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", ce = "DocumentsTable-module_documentIframe__ptq5I", le = "DocumentsTable-module_documentImage__KQVgS", d = {
|
|
6
6
|
documentsTableBody: ne,
|
|
7
7
|
viewAttachmentsLink: oe,
|
|
@@ -33,23 +33,23 @@ const Te = [
|
|
|
33
33
|
"attachments",
|
|
34
34
|
"uploadedOn",
|
|
35
35
|
"uploadedBy"
|
|
36
|
-
], pe = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, B = (a) => a.attachments.length > 0 ? a.attachments : a.documentUrl ? [{ url: a.documentUrl, contentType: a.contentType }] : [],
|
|
37
|
-
const [s,
|
|
36
|
+
], pe = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, B = (a) => a.attachments.length > 0 ? a.attachments : a.documentUrl ? [{ url: a.documentUrl, contentType: a.contentType }] : [], Ne = ({ config: a, encounterUuids: g }) => {
|
|
37
|
+
const [s, S] = l(!1), [o, U] = l(
|
|
38
38
|
null
|
|
39
|
-
), [$,
|
|
39
|
+
), [$, O] = l(
|
|
40
40
|
/* @__PURE__ */ new Set()
|
|
41
|
-
), E = G(), { t: n } = Y(), { addNotification: L } = W(), k = Number(a?.pageSize) || 5, [
|
|
42
|
-
|
|
41
|
+
), E = G(), { t: n } = Y(), { addNotification: L } = W(), k = Number(a?.pageSize) || 5, [f, C] = l(1), [u, V] = l(k), [F, A] = l(void 0), M = h((e) => {
|
|
42
|
+
U(e), S(!0);
|
|
43
43
|
}, []), H = h(() => {
|
|
44
|
-
|
|
44
|
+
S(!1), U(null), O(/* @__PURE__ */ new Set());
|
|
45
45
|
}, []), v = h((e) => {
|
|
46
|
-
|
|
46
|
+
O((t) => new Set(t).add(e));
|
|
47
47
|
}, []), { data: i, isLoading: q, isError: b, error: y } = ae({
|
|
48
48
|
queryKey: [
|
|
49
49
|
"documents",
|
|
50
50
|
E,
|
|
51
51
|
g,
|
|
52
|
-
|
|
52
|
+
f,
|
|
53
53
|
u
|
|
54
54
|
],
|
|
55
55
|
enabled: !!E,
|
|
@@ -57,36 +57,36 @@ const Te = [
|
|
|
57
57
|
E,
|
|
58
58
|
g,
|
|
59
59
|
u,
|
|
60
|
-
|
|
60
|
+
f
|
|
61
61
|
)
|
|
62
62
|
});
|
|
63
|
-
|
|
63
|
+
I(() => {
|
|
64
64
|
i && A(i.total);
|
|
65
|
-
}, [i]),
|
|
65
|
+
}, [i]), I(() => {
|
|
66
66
|
C(1), A(void 0);
|
|
67
|
-
}, [E]),
|
|
67
|
+
}, [E]), I(() => {
|
|
68
68
|
b && L({
|
|
69
69
|
title: n("ERROR_DEFAULT_TITLE"),
|
|
70
70
|
message: y?.message ?? "",
|
|
71
71
|
type: "error"
|
|
72
72
|
});
|
|
73
|
-
}, [b, y, L, n]),
|
|
73
|
+
}, [b, y, L, n]), I(() => {
|
|
74
74
|
const e = new AbortController();
|
|
75
75
|
return (async () => {
|
|
76
76
|
if (!s || !o) return;
|
|
77
77
|
const t = /* @__PURE__ */ new Set(), m = B(o);
|
|
78
78
|
for (let c = 0; c < m.length; c++) {
|
|
79
|
-
const
|
|
79
|
+
const w = R(m[c].url);
|
|
80
80
|
try {
|
|
81
|
-
(await fetch(
|
|
81
|
+
(await fetch(w, {
|
|
82
82
|
method: "HEAD",
|
|
83
83
|
signal: e.signal
|
|
84
84
|
})).ok || t.add(c);
|
|
85
|
-
} catch (
|
|
86
|
-
|
|
85
|
+
} catch (D) {
|
|
86
|
+
D instanceof Error && D.name !== "AbortError" && t.add(c);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
e.signal.aborted ||
|
|
89
|
+
e.signal.aborted || O(t);
|
|
90
90
|
})(), () => e.abort();
|
|
91
91
|
}, [s, o]);
|
|
92
92
|
const K = h(
|
|
@@ -94,15 +94,15 @@ const Te = [
|
|
|
94
94
|
t !== u ? (V(t), C(1), A(void 0)) : C(e);
|
|
95
95
|
},
|
|
96
96
|
[u]
|
|
97
|
-
),
|
|
97
|
+
), N = _(
|
|
98
98
|
() => a?.fields ?? Te,
|
|
99
99
|
[a?.fields]
|
|
100
|
-
), j = _(() => [...i?.documents ?? []].sort((e, t) => !e.uploadedOn && !t.uploadedOn ? 0 : e.uploadedOn ? t.uploadedOn ? new Date(t.uploadedOn).getTime() - new Date(e.uploadedOn).getTime() : -1 : 1), [i]), P = _(() => ie(
|
|
101
|
-
() =>
|
|
100
|
+
), j = _(() => [...i?.documents ?? []].sort((e, t) => !e.uploadedOn && !t.uploadedOn ? 0 : e.uploadedOn ? t.uploadedOn ? new Date(t.uploadedOn).getTime() - new Date(e.uploadedOn).getTime() : -1 : 1), [i]), P = _(() => ie(N, n), [N, n]), z = _(
|
|
101
|
+
() => N.map((e) => ({
|
|
102
102
|
key: e,
|
|
103
103
|
sortable: e !== "attachments"
|
|
104
104
|
})),
|
|
105
|
-
[
|
|
105
|
+
[N]
|
|
106
106
|
), T = _(
|
|
107
107
|
() => o ? B(o) : [],
|
|
108
108
|
[o]
|
|
@@ -153,7 +153,7 @@ const Te = [
|
|
|
153
153
|
dataTestId: "documents-table",
|
|
154
154
|
pageSize: u,
|
|
155
155
|
totalItems: F,
|
|
156
|
-
page:
|
|
156
|
+
page: f,
|
|
157
157
|
onPageChange: K
|
|
158
158
|
}
|
|
159
159
|
) }),
|
|
@@ -169,8 +169,8 @@ const Te = [
|
|
|
169
169
|
size: "lg",
|
|
170
170
|
testId: "document-view-modal",
|
|
171
171
|
children: /* @__PURE__ */ r("div", { className: d.documentViewerContainer, children: T.map((e, t) => {
|
|
172
|
-
const m = R(e.url), c = e.contentType?.toLowerCase().includes("pdf"),
|
|
173
|
-
return m === "#" ||
|
|
172
|
+
const m = R(e.url), c = e.contentType?.toLowerCase().includes("pdf"), w = (e.contentType?.toLowerCase().includes("image") ?? !1) || pe.test(e.url ?? ""), D = $.has(t);
|
|
173
|
+
return m === "#" || D ? /* @__PURE__ */ p(
|
|
174
174
|
"div",
|
|
175
175
|
{
|
|
176
176
|
className: d.attachmentError,
|
|
@@ -196,7 +196,7 @@ const Te = [
|
|
|
196
196
|
"/",
|
|
197
197
|
T.length
|
|
198
198
|
] }),
|
|
199
|
-
|
|
199
|
+
w ? /* @__PURE__ */ r(
|
|
200
200
|
"img",
|
|
201
201
|
{
|
|
202
202
|
src: m,
|
|
@@ -223,5 +223,5 @@ const Te = [
|
|
|
223
223
|
] });
|
|
224
224
|
};
|
|
225
225
|
export {
|
|
226
|
-
|
|
226
|
+
Ne as default
|
|
227
227
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as i, jsxs as G, Fragment as
|
|
2
|
-
import { u as ge, g as pe, v as be, J as
|
|
3
|
-
import { useQueryClient as Me, useQuery as
|
|
1
|
+
import { jsx as i, jsxs as G, Fragment as ye } from "react/jsx-runtime";
|
|
2
|
+
import { u as ge, g as pe, v as be, J as Oe, c as Ne, m as Te, h as Ie, f as Ee, e as Ae, d as ve, R as _e, H as Se, s as K, b as Fe, i as Y, t as x, a as Re, U as P, S as Ue, $ as Ce, p as Be, G as Le, O as De } from "./index-BTbPRgCo.js";
|
|
3
|
+
import { useQueryClient as Me, useQuery as N } from "@tanstack/react-query";
|
|
4
4
|
import { useState as Q, useMemo as d, useCallback as l } from "react";
|
|
5
5
|
const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_modalHeading__wnTmA", we = "FormsTable-module_customAccordianItem__isszs", T = {
|
|
6
6
|
formsTableBody: ke,
|
|
@@ -11,7 +11,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
11
11
|
encounterUuids: u,
|
|
12
12
|
config: J,
|
|
13
13
|
disableActions: X = !1,
|
|
14
|
-
activeEncounterUuid:
|
|
14
|
+
activeEncounterUuid: y = null
|
|
15
15
|
}) => {
|
|
16
16
|
const { t: n } = ge(), c = pe(), [g, U] = Q(!1), [s, C] = Q(null), {
|
|
17
17
|
numberOfVisits: Z,
|
|
@@ -19,7 +19,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
19
19
|
forms: p
|
|
20
20
|
} = J ?? {}, ee = be(
|
|
21
21
|
De.EDIT_OBSERVATIONS
|
|
22
|
-
), { userPrivileges: b } =
|
|
22
|
+
), { userPrivileges: b } = Oe(), I = ee && !X && !!y, B = Ne(
|
|
23
23
|
R,
|
|
24
24
|
u
|
|
25
25
|
), re = Me(), {
|
|
@@ -28,7 +28,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
28
28
|
isError: M,
|
|
29
29
|
error: oe,
|
|
30
30
|
refetch: ae
|
|
31
|
-
} =
|
|
31
|
+
} = N({
|
|
32
32
|
queryKey: ["forms", c, R],
|
|
33
33
|
queryFn: () => Te(c, void 0, Z),
|
|
34
34
|
enabled: !!c && !B
|
|
@@ -39,12 +39,12 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
39
39
|
)), Array.isArray(p) && p.length > 0 && (e = e.filter(
|
|
40
40
|
(r) => p.some((o) => o.toLowerCase() === r.formName.toLowerCase())
|
|
41
41
|
)), e;
|
|
42
|
-
}, [L, u, p]), { data:
|
|
42
|
+
}, [L, u, p]), { data: O = [] } = N({
|
|
43
43
|
queryKey: ["observationForms"],
|
|
44
44
|
queryFn: () => Ie()
|
|
45
45
|
}), q = l(
|
|
46
46
|
(e) => {
|
|
47
|
-
const r =
|
|
47
|
+
const r = O.find((a) => a.name === e);
|
|
48
48
|
if (!r?.privileges || r.privileges.length === 0) return !0;
|
|
49
49
|
if (!b || b.length === 0) return !1;
|
|
50
50
|
const o = new Set(b.map((a) => a.name));
|
|
@@ -52,13 +52,13 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
52
52
|
(a) => o.has(a.privilegeName) && a.editable
|
|
53
53
|
);
|
|
54
54
|
},
|
|
55
|
-
[
|
|
55
|
+
[O, b]
|
|
56
56
|
), f = l(
|
|
57
|
-
(e) => !
|
|
58
|
-
[
|
|
57
|
+
(e) => !y || e.encounterUuid !== y ? !1 : q(e.formName),
|
|
58
|
+
[y, q]
|
|
59
59
|
), w = l(
|
|
60
|
-
(e) =>
|
|
61
|
-
[
|
|
60
|
+
(e) => O.find((r) => r.name === e)?.uuid,
|
|
61
|
+
[O]
|
|
62
62
|
), E = d(() => {
|
|
63
63
|
if (s)
|
|
64
64
|
return w(s.formName);
|
|
@@ -67,7 +67,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
67
67
|
isLoading: te,
|
|
68
68
|
isError: se,
|
|
69
69
|
error: A
|
|
70
|
-
} =
|
|
70
|
+
} = N({
|
|
71
71
|
queryKey: ["formMetadata", E],
|
|
72
72
|
queryFn: () => Ee(E),
|
|
73
73
|
enabled: !!E && g
|
|
@@ -76,7 +76,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
76
76
|
isLoading: ne,
|
|
77
77
|
isError: ie,
|
|
78
78
|
error: _
|
|
79
|
-
} =
|
|
79
|
+
} = N({
|
|
80
80
|
queryKey: ["formsEncounterFHIR", s?.encounterUuid],
|
|
81
81
|
queryFn: () => Ae(s.encounterUuid),
|
|
82
82
|
enabled: !!s?.encounterUuid && g
|
|
@@ -117,19 +117,19 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
117
117
|
return K(A).message;
|
|
118
118
|
if (_)
|
|
119
119
|
return K(_).message;
|
|
120
|
-
}, [A, _]),
|
|
120
|
+
}, [A, _]), h = d(
|
|
121
121
|
() => [
|
|
122
122
|
{ key: "recordedOn", header: n("RECORDED_ON") },
|
|
123
123
|
{ key: "recordedBy", header: n("RECORDED_BY") }
|
|
124
124
|
],
|
|
125
125
|
[n]
|
|
126
126
|
), H = d(
|
|
127
|
-
() => [...
|
|
128
|
-
[
|
|
127
|
+
() => [...h, { key: "actions", header: n("ACTIONS") }],
|
|
128
|
+
[h, n]
|
|
129
129
|
), ce = l(
|
|
130
|
-
(e) => I && e.some((r) => f(r)) ? H :
|
|
131
|
-
[I, f, H,
|
|
132
|
-
), fe =
|
|
130
|
+
(e) => I && e.some((r) => f(r)) ? H : h,
|
|
131
|
+
[I, f, H, h]
|
|
132
|
+
), fe = h, he = d(
|
|
133
133
|
() => [
|
|
134
134
|
{ key: "recordedOn", sortable: !0 },
|
|
135
135
|
{ key: "recordedBy", sortable: !0 }
|
|
@@ -162,7 +162,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
162
162
|
).sort((r, o) => r.formName.localeCompare(o.formName));
|
|
163
163
|
}, [k, n]), $ = l((e) => {
|
|
164
164
|
C(e), U(!0);
|
|
165
|
-
}, []),
|
|
165
|
+
}, []), j = l(() => {
|
|
166
166
|
U(!1), C(null);
|
|
167
167
|
}, []), S = l((e) => {
|
|
168
168
|
globalThis.dispatchEvent(
|
|
@@ -176,7 +176,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
176
176
|
}
|
|
177
177
|
})
|
|
178
178
|
);
|
|
179
|
-
}, []),
|
|
179
|
+
}, []), z = l(
|
|
180
180
|
(e, r) => {
|
|
181
181
|
switch (r) {
|
|
182
182
|
case "recordedOn":
|
|
@@ -201,7 +201,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
201
201
|
},
|
|
202
202
|
[$, S, f, n]
|
|
203
203
|
);
|
|
204
|
-
return /* @__PURE__ */ G(
|
|
204
|
+
return /* @__PURE__ */ G(ye, { children: [
|
|
205
205
|
/* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: D || M || V.length === 0 || B ? /* @__PURE__ */ i(
|
|
206
206
|
P,
|
|
207
207
|
{
|
|
@@ -211,7 +211,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
211
211
|
loading: D,
|
|
212
212
|
errorStateMessage: M ? oe?.message : void 0,
|
|
213
213
|
emptyStateMessage: n("FORMS_UNAVAILABLE"),
|
|
214
|
-
renderCell:
|
|
214
|
+
renderCell: z,
|
|
215
215
|
className: T.formsTableBody,
|
|
216
216
|
dataTestId: "forms-table"
|
|
217
217
|
}
|
|
@@ -232,9 +232,9 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
232
232
|
rows: a,
|
|
233
233
|
loading: !1,
|
|
234
234
|
errorStateMessage: "",
|
|
235
|
-
sortable:
|
|
235
|
+
sortable: he,
|
|
236
236
|
emptyStateMessage: n("FORMS_UNAVAILABLE"),
|
|
237
|
-
renderCell:
|
|
237
|
+
renderCell: z,
|
|
238
238
|
className: T.formsTableBody,
|
|
239
239
|
dataTestId: `forms-table-${o}`
|
|
240
240
|
}
|
|
@@ -249,7 +249,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
249
249
|
id: "modalIdForActionAreaLayout",
|
|
250
250
|
portalId: "main-display-area",
|
|
251
251
|
open: g,
|
|
252
|
-
onRequestClose:
|
|
252
|
+
onRequestClose: j,
|
|
253
253
|
modalHeading: /* @__PURE__ */ G("div", { className: T.modalHeading, children: [
|
|
254
254
|
/* @__PURE__ */ i("span", { children: s.formName }),
|
|
255
255
|
I && f(s) && /* @__PURE__ */ i(
|
|
@@ -260,7 +260,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
260
260
|
size: "sm",
|
|
261
261
|
testId: `edit-form-modal-${s.encounterUuid}`,
|
|
262
262
|
onClick: () => {
|
|
263
|
-
|
|
263
|
+
j(), S(s);
|
|
264
264
|
},
|
|
265
265
|
children: /* @__PURE__ */ i(x, {})
|
|
266
266
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-
|
|
2
|
-
import { an as p, ao as d, ap as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-CEh8M9KD.js";
|
|
2
|
+
import { an as p, ao as d, ap as e } from "./index-BTbPRgCo.js";
|
|
3
3
|
var f = (a) => {
|
|
4
4
|
const [r, o] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-
|
|
2
|
-
import { an as v, ao as C, ap as e } from "./index-
|
|
1
|
+
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-CEh8M9KD.js";
|
|
2
|
+
import { an as v, ao as C, ap as e } from "./index-BTbPRgCo.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as S, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { g as
|
|
2
|
+
import { g as B, K as V, u as N, j as M, k, d as x, x as Q, A as G, _ as j, l as w, U as z, M as H, q as A, n as P, o as J, I as W, r as X, y as Z, z as ee } from "./index-BTbPRgCo.js";
|
|
3
3
|
import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as se, useEffect as $, useMemo as E } from "react";
|
|
5
|
-
const
|
|
5
|
+
const D = (a, n, d, l, b, r) => {
|
|
6
6
|
const t = P(a, n, b), s = t.value, o = J(s);
|
|
7
7
|
let i = s;
|
|
8
8
|
o === "Image" && (i = /* @__PURE__ */ u(
|
|
@@ -37,13 +37,13 @@ const A = (a, n, d, l, b, r) => {
|
|
|
37
37
|
`obs-${a.id}`
|
|
38
38
|
);
|
|
39
39
|
}, re = (a, n, d, l, b, r, t) => /* @__PURE__ */ u(
|
|
40
|
-
|
|
40
|
+
A,
|
|
41
41
|
{
|
|
42
42
|
title: a.display,
|
|
43
43
|
id: `grouped-obs-${a.display}-${l}`,
|
|
44
44
|
open: d,
|
|
45
45
|
children: a.members?.map(
|
|
46
|
-
(s, o) =>
|
|
46
|
+
(s, o) => D(
|
|
47
47
|
s,
|
|
48
48
|
o,
|
|
49
49
|
b,
|
|
@@ -60,16 +60,16 @@ const A = (a, n, d, l, b, r) => {
|
|
|
60
60
|
hideThumbnail: d
|
|
61
61
|
}) => {
|
|
62
62
|
const { t: l } = N(), b = (r, t, s) => {
|
|
63
|
-
const o =
|
|
63
|
+
const o = H(r.encounterDetails, l);
|
|
64
64
|
return /* @__PURE__ */ S(
|
|
65
|
-
|
|
65
|
+
A,
|
|
66
66
|
{
|
|
67
67
|
title: o,
|
|
68
68
|
id: `encounter-${r.encounterId}`,
|
|
69
69
|
open: t,
|
|
70
70
|
children: [
|
|
71
71
|
r.observations.map(
|
|
72
|
-
(i, m) =>
|
|
72
|
+
(i, m) => D(
|
|
73
73
|
i,
|
|
74
74
|
m,
|
|
75
75
|
s,
|
|
@@ -113,7 +113,7 @@ const A = (a, n, d, l, b, r) => {
|
|
|
113
113
|
conceptNames: d = [],
|
|
114
114
|
conceptUuid: l = [],
|
|
115
115
|
hideThumbnail: b = !1
|
|
116
|
-
} = n, r = se(/* @__PURE__ */ new Set()), t =
|
|
116
|
+
} = n, r = se(/* @__PURE__ */ new Set()), t = B(), { addNotification: s } = V(), { t: o } = N(), i = ae({
|
|
117
117
|
queries: d.map((e) => ({
|
|
118
118
|
queryKey: de(e),
|
|
119
119
|
queryFn: () => M(e),
|
|
@@ -123,10 +123,10 @@ const A = (a, n, d, l, b, r) => {
|
|
|
123
123
|
$(() => {
|
|
124
124
|
i.forEach((e, h) => {
|
|
125
125
|
if (e.isError && !r.current.has(h)) {
|
|
126
|
-
const
|
|
126
|
+
const q = d[h];
|
|
127
127
|
s({
|
|
128
128
|
title: o("ERROR_DEFAULT_TITLE"),
|
|
129
|
-
message: o("ERROR_FETCHING_CONCEPT", { conceptName:
|
|
129
|
+
message: o("ERROR_FETCHING_CONCEPT", { conceptName: q }),
|
|
130
130
|
type: "error"
|
|
131
131
|
}), r.current.add(h);
|
|
132
132
|
} else e.isError || r.current.delete(h);
|
|
@@ -134,7 +134,7 @@ const A = (a, n, d, l, b, r) => {
|
|
|
134
134
|
}, [i, d]);
|
|
135
135
|
const m = E(() => i.map((e) => e.data?.uuid).filter((e) => !!e), [i]), p = E(() => [.../* @__PURE__ */ new Set([...m, ...l])], [m, l]), y = E(() => d.length === 0 ? !0 : i.every((e) => !e.isLoading), [i, d.length]), {
|
|
136
136
|
data: c,
|
|
137
|
-
isLoading:
|
|
137
|
+
isLoading: F,
|
|
138
138
|
isError: g,
|
|
139
139
|
refetch: T
|
|
140
140
|
} = te({
|
|
@@ -158,13 +158,13 @@ const A = (a, n, d, l, b, r) => {
|
|
|
158
158
|
}, [g]);
|
|
159
159
|
const O = E(() => {
|
|
160
160
|
if (!c) return [];
|
|
161
|
-
const e =
|
|
162
|
-
return
|
|
163
|
-
}, [c]),
|
|
161
|
+
const e = Q(c), h = G(e);
|
|
162
|
+
return j(h);
|
|
163
|
+
}, [c]), L = [
|
|
164
164
|
{ key: "name", header: "name" },
|
|
165
165
|
{ key: "value", header: "value" },
|
|
166
166
|
{ key: "form", header: "form" }
|
|
167
|
-
],
|
|
167
|
+
], _ = F || !y, f = g && y, U = (!c || c.entry?.length === 0 || p.length === 0) && y, C = f ? o("ERROR_FETCHING_OBSERVATIONS") : null, K = U ? o("NO_OBSERVATIONS_FOUND") : void 0, Y = O.length > 0 && !_ && !f, R = n.titleTranslationKey, v = R ? o(R) : "";
|
|
168
168
|
return /* @__PURE__ */ S(
|
|
169
169
|
"div",
|
|
170
170
|
{
|
|
@@ -174,7 +174,7 @@ const A = (a, n, d, l, b, r) => {
|
|
|
174
174
|
className: I.observations,
|
|
175
175
|
children: [
|
|
176
176
|
/* @__PURE__ */ u(
|
|
177
|
-
|
|
177
|
+
w,
|
|
178
178
|
{
|
|
179
179
|
id: "observations-title",
|
|
180
180
|
testId: R ? `observations-title-${v}` : "observations-title",
|
|
@@ -183,7 +183,7 @@ const A = (a, n, d, l, b, r) => {
|
|
|
183
183
|
children: /* @__PURE__ */ u("p", { children: v })
|
|
184
184
|
}
|
|
185
185
|
),
|
|
186
|
-
|
|
186
|
+
Y ? /* @__PURE__ */ u(
|
|
187
187
|
oe,
|
|
188
188
|
{
|
|
189
189
|
groupedData: O,
|
|
@@ -191,14 +191,14 @@ const A = (a, n, d, l, b, r) => {
|
|
|
191
191
|
hideThumbnail: b
|
|
192
192
|
}
|
|
193
193
|
) : /* @__PURE__ */ u(
|
|
194
|
-
|
|
194
|
+
z,
|
|
195
195
|
{
|
|
196
|
-
headers:
|
|
196
|
+
headers: L,
|
|
197
197
|
rows: [],
|
|
198
198
|
ariaLabel: o("OBSERVATIONS"),
|
|
199
|
-
loading:
|
|
200
|
-
errorStateMessage:
|
|
201
|
-
emptyStateMessage:
|
|
199
|
+
loading: _,
|
|
200
|
+
errorStateMessage: C,
|
|
201
|
+
emptyStateMessage: K,
|
|
202
202
|
dataTestId: "observations-table"
|
|
203
203
|
}
|
|
204
204
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aq as we, ar as z, as as xt, at as B, ao as q, ap as y, au as Ro, av as ye, aw as R, ax as _, ay as k, az as N, aA as A, aB as bs, aC as ir, aD as $e, aE as U, aF as Hn, aG as Vn, aH as dt, aI as D, aJ as xs, aK as cn, aL as Be, aM as ws, aN as qt, aO as zt, aP as $s, aQ as Cs, aR as $n, aS as Ss, aT as Nr, aU as Bt, aV as zo, aW as ks, aX as Es, aY as j, aZ as Ur, a_ as Ms, a$ as Ds, b0 as sr, b1 as As, b2 as Ts, b3 as zn, b4 as Fs, b5 as Is, b6 as Z, b7 as Ps, b8 as Ls } from "./index-
|
|
1
|
+
import { aq as we, ar as z, as as xt, at as B, ao as q, ap as y, au as Ro, av as ye, aw as R, ax as _, ay as k, az as N, aA as A, aB as bs, aC as ir, aD as $e, aE as U, aF as Hn, aG as Vn, aH as dt, aI as D, aJ as xs, aK as cn, aL as Be, aM as ws, aN as qt, aO as zt, aP as $s, aQ as Cs, aR as $n, aS as Ss, aT as Nr, aU as Bt, aV as zo, aW as ks, aX as Es, aY as j, aZ as Ur, a_ as Ms, a$ as Ds, b0 as sr, b1 as As, b2 as Ts, b3 as zn, b4 as Fs, b5 as Is, b6 as Z, b7 as Ps, b8 as Ls } from "./index-BTbPRgCo.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a, jsxs as y } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { B as V, C as O, u as I, F as P, D as h, K as B, J as G, E as L, L as x, N as U, P as F, Q as H, T as q, V as K, W as Q, X as j, Y as k } from "./index-BTbPRgCo.js";
|
|
3
3
|
import { useState as C, useMemo as c } from "react";
|
|
4
4
|
import { useQueryClient as W, useQuery as Y } from "@tanstack/react-query";
|
|
5
5
|
const $ = V(
|
|
@@ -36,8 +36,8 @@ const $ = V(
|
|
|
36
36
|
"speciality",
|
|
37
37
|
"durationMins",
|
|
38
38
|
"description"
|
|
39
|
-
],
|
|
40
|
-
page:
|
|
39
|
+
], z = "app:appointments:manageServices", J = "app:appointments:adminTab", Z = "index-module_page__Gsfbu", X = "index-module_noPrivilegeContainer__Pu5WZ", ee = "index-module_table__GAPmb", d = {
|
|
40
|
+
page: Z,
|
|
41
41
|
noPrivilegeContainer: X,
|
|
42
42
|
table: ee
|
|
43
43
|
};
|
|
@@ -77,9 +77,9 @@ function ae(e, i) {
|
|
|
77
77
|
const oe = () => {
|
|
78
78
|
const { t: e } = I(), i = W(), { addNotification: t } = B(), { userPrivileges: s } = G(), { appointmentsConfig: n } = $(), [E, _] = C(null), [b, p] = C(!1), l = n?.serviceTableFields ?? [
|
|
79
79
|
...u
|
|
80
|
-
], m = L(s,
|
|
80
|
+
], m = L(s, J), M = L(
|
|
81
81
|
s,
|
|
82
|
-
|
|
82
|
+
z
|
|
83
83
|
), S = c(
|
|
84
84
|
() => te(l),
|
|
85
85
|
[l]
|
|
@@ -87,10 +87,10 @@ const oe = () => {
|
|
|
87
87
|
queryKey: ["allAppointmentServices"],
|
|
88
88
|
queryFn: x,
|
|
89
89
|
enabled: m
|
|
90
|
-
}),
|
|
90
|
+
}), R = c(
|
|
91
91
|
() => ie(l, e),
|
|
92
92
|
[l]
|
|
93
|
-
),
|
|
93
|
+
), N = c(
|
|
94
94
|
() => ae(A ?? [], S),
|
|
95
95
|
[A, S]
|
|
96
96
|
), g = async () => {
|
|
@@ -144,8 +144,8 @@ const oe = () => {
|
|
|
144
144
|
{
|
|
145
145
|
id: "all-services",
|
|
146
146
|
title: e("ADMIN_ALL_SERVICES_TITLE"),
|
|
147
|
-
headers:
|
|
148
|
-
rows:
|
|
147
|
+
headers: R,
|
|
148
|
+
rows: N,
|
|
149
149
|
ariaLabel: "all-services-table",
|
|
150
150
|
loading: v,
|
|
151
151
|
errorStateMessage: D ? e("ADMIN_ALL_SERVICES_ERROR_MESSAGE") : null,
|
|
@@ -98061,22 +98061,31 @@ function wY1(t, e) {
|
|
|
98061
98061
|
const c = gY1(o), { issued: l } = o, i = o.performer?.[0].display ?? "-";
|
|
98062
98062
|
o?.basedOn?.forEach((s) => {
|
|
98063
98063
|
const d = s.reference?.split("/").pop();
|
|
98064
|
-
|
|
98065
|
-
|
|
98066
|
-
|
|
98067
|
-
|
|
98068
|
-
|
|
98069
|
-
|
|
98064
|
+
if (d) {
|
|
98065
|
+
const u = {
|
|
98066
|
+
reportId: a,
|
|
98067
|
+
attachments: c,
|
|
98068
|
+
reportedDate: l,
|
|
98069
|
+
reportedBy: i
|
|
98070
|
+
}, h = r.get(d) ?? [];
|
|
98071
|
+
r.set(d, [...h, u]);
|
|
98072
|
+
}
|
|
98070
98073
|
});
|
|
98071
98074
|
}), t.map((o) => {
|
|
98072
98075
|
const a = r.get(o.id);
|
|
98073
|
-
|
|
98074
|
-
|
|
98075
|
-
|
|
98076
|
-
|
|
98077
|
-
|
|
98078
|
-
|
|
98079
|
-
|
|
98076
|
+
if (a && a.length > 0) {
|
|
98077
|
+
const c = a.map((s) => s.reportId), l = a.flatMap(
|
|
98078
|
+
(s) => s.attachments ?? []
|
|
98079
|
+
), i = a.at(-1);
|
|
98080
|
+
return {
|
|
98081
|
+
...o,
|
|
98082
|
+
reportIds: c,
|
|
98083
|
+
attachments: l.length > 0 ? l : void 0,
|
|
98084
|
+
reportedDate: i.reportedDate,
|
|
98085
|
+
reportedBy: i.reportedBy
|
|
98086
|
+
};
|
|
98087
|
+
}
|
|
98088
|
+
return o;
|
|
98080
98089
|
});
|
|
98081
98090
|
}
|
|
98082
98091
|
function gY1(t) {
|
|
@@ -98105,7 +98114,7 @@ const Fl0 = "RadiologyInvestigationTable-module_inProgressStatus__PKgxl", ql0 =
|
|
|
98105
98114
|
reportDetails: ri0,
|
|
98106
98115
|
reportTile: ni0
|
|
98107
98116
|
}, oi0 = ({ investigation: t, headers: e, renderCell: r, showLinkedOrders: o, showReport: a }) => {
|
|
98108
|
-
const { t: c } = E2(), l = t.status === "completed", i = !!t.
|
|
98117
|
+
const { t: c } = E2(), l = t.status === "completed", i = !!t.reportIds?.[0];
|
|
98109
98118
|
if (!o && !a)
|
|
98110
98119
|
return null;
|
|
98111
98120
|
const s = (h) => /* @__PURE__ */ Ke(
|
|
@@ -98143,7 +98152,12 @@ const Fl0 = "RadiologyInvestigationTable-module_inProgressStatus__PKgxl", ql0 =
|
|
|
98143
98152
|
" ",
|
|
98144
98153
|
u
|
|
98145
98154
|
] }),
|
|
98146
|
-
/* @__PURE__ */ de(
|
|
98155
|
+
/* @__PURE__ */ de(
|
|
98156
|
+
fY1,
|
|
98157
|
+
{
|
|
98158
|
+
reportId: t.reportIds?.[0]
|
|
98159
|
+
}
|
|
98160
|
+
)
|
|
98147
98161
|
] }) }) })
|
|
98148
98162
|
] });
|
|
98149
98163
|
}, ai0 = ({
|
|
@@ -98353,8 +98367,8 @@ const EY1 = (t) => ["radiologyInvestigation", t], wi0 = async (t, e, r, o) => {
|
|
|
98353
98367
|
X.imagingStudies
|
|
98354
98368
|
), ae = I.length > 0 && s, ee = !W;
|
|
98355
98369
|
let ie = !1;
|
|
98356
|
-
d && !u ? ie = !!X.
|
|
98357
|
-
const fe = X.imagingStudies && X.imagingStudies.length > 0 && X.imagingStudies[0]?.id, ye = (W ? !!W.
|
|
98370
|
+
d && !u ? ie = !!X.reportIds?.[0] && ee : u || (ie = !!X.reportIds?.[0]);
|
|
98371
|
+
const fe = X.imagingStudies && X.imagingStudies.length > 0 && X.imagingStudies[0]?.id, ye = (W ? !!W.reportIds?.[0] : !!X.reportIds?.[0]) && fe;
|
|
98358
98372
|
return ae || ie || ye ? /* @__PURE__ */ Ke(
|
|
98359
98373
|
"div",
|
|
98360
98374
|
{
|
|
@@ -98510,7 +98524,7 @@ const EY1 = (t) => ["radiologyInvestigation", t], wi0 = async (t, e, r, o) => {
|
|
|
98510
98524
|
}
|
|
98511
98525
|
);
|
|
98512
98526
|
const J = m?.reportedDate && a2(m.reportedDate, a, !0).formattedResult, U = M && a2(M, a, !0).formattedResult, j = m?.reportedBy, te = (X) => {
|
|
98513
|
-
const W = X.linkedOrders && X.linkedOrders.length > 0, I = X.status === "completed", ae = !!X.
|
|
98527
|
+
const W = X.linkedOrders && X.linkedOrders.length > 0, I = X.status === "completed", ae = !!X.reportIds?.[0], ee = d && W, ie = u && I && ae;
|
|
98514
98528
|
return !ee && !ie ? null : /* @__PURE__ */ de(
|
|
98515
98529
|
oi0,
|
|
98516
98530
|
{
|
|
@@ -98580,7 +98594,7 @@ const EY1 = (t) => ["radiologyInvestigation", t], wi0 = async (t, e, r, o) => {
|
|
|
98580
98594
|
I
|
|
98581
98595
|
);
|
|
98582
98596
|
}) }),
|
|
98583
|
-
m && w === "report" && /* @__PURE__ */ de(
|
|
98597
|
+
m?.reportIds?.[0] && w === "report" && /* @__PURE__ */ de(
|
|
98584
98598
|
xt,
|
|
98585
98599
|
{
|
|
98586
98600
|
open: !!m,
|
|
@@ -98597,7 +98611,7 @@ const EY1 = (t) => ["radiologyInvestigation", t], wi0 = async (t, e, r, o) => {
|
|
|
98597
98611
|
children: /* @__PURE__ */ de(xt.Body, { children: /* @__PURE__ */ de(
|
|
98598
98612
|
fY1,
|
|
98599
98613
|
{
|
|
98600
|
-
reportId: m.
|
|
98614
|
+
reportId: m.reportIds[0]
|
|
98601
98615
|
}
|
|
98602
98616
|
) })
|
|
98603
98617
|
}
|
|
@@ -98789,21 +98803,21 @@ function Ui0(t, e) {
|
|
|
98789
98803
|
const Wi0 = ({
|
|
98790
98804
|
test: t,
|
|
98791
98805
|
isOpen: e,
|
|
98792
|
-
hasProcessedReport: r
|
|
98793
|
-
reportId: o
|
|
98806
|
+
hasProcessedReport: r
|
|
98794
98807
|
}) => {
|
|
98795
|
-
const { t:
|
|
98808
|
+
const { t: o } = E2(), [a, c] = be(!1), l = t.reportIds ?? [], {
|
|
98796
98809
|
data: i,
|
|
98797
98810
|
isLoading: s,
|
|
98798
98811
|
isError: d
|
|
98799
98812
|
} = f0({
|
|
98800
|
-
queryKey: ["
|
|
98801
|
-
queryFn: () =>
|
|
98802
|
-
|
|
98803
|
-
|
|
98804
|
-
|
|
98805
|
-
|
|
98806
|
-
|
|
98813
|
+
queryKey: ["diagnosticReportBundles", l],
|
|
98814
|
+
queryFn: async () => await Promise.all(
|
|
98815
|
+
l.map((p) => oK1(p))
|
|
98816
|
+
),
|
|
98817
|
+
enabled: e && r && l.length > 0
|
|
98818
|
+
}), u = e1(() => !i || i.length === 0 ? void 0 : i.flatMap(
|
|
98819
|
+
(p) => Ui0(p, o) ?? []
|
|
98820
|
+
), [i, o]), h = Array.isArray(u) && u.length > 0, f = e1(() => !h || !u ? [] : u.map((p, g) => ({
|
|
98807
98821
|
id: `${t.id}-${g}`,
|
|
98808
98822
|
testName: p.TestName,
|
|
98809
98823
|
value: p.value,
|
|
@@ -98814,12 +98828,12 @@ const Wi0 = ({
|
|
|
98814
98828
|
interpretation: p.interpretation
|
|
98815
98829
|
})), [h, u, t.id]), m = e1(
|
|
98816
98830
|
() => [
|
|
98817
|
-
{ key: "testName", header:
|
|
98818
|
-
{ key: "result", header:
|
|
98819
|
-
{ key: "referenceRange", header:
|
|
98820
|
-
{ key: "reportedOn", header:
|
|
98831
|
+
{ key: "testName", header: o("LAB_TEST_NAME") },
|
|
98832
|
+
{ key: "result", header: o("LAB_TEST_RESULT") },
|
|
98833
|
+
{ key: "referenceRange", header: o("LAB_TEST_REFERENCE_RANGE") },
|
|
98834
|
+
{ key: "reportedOn", header: o("LAB_TEST_REPORTED_ON") }
|
|
98821
98835
|
],
|
|
98822
|
-
[
|
|
98836
|
+
[o]
|
|
98823
98837
|
), y = (p, g) => {
|
|
98824
98838
|
const C = p.interpretation === "A";
|
|
98825
98839
|
switch (g) {
|
|
@@ -98846,22 +98860,22 @@ const Wi0 = ({
|
|
|
98846
98860
|
headers: m,
|
|
98847
98861
|
rows: f,
|
|
98848
98862
|
loading: s,
|
|
98849
|
-
errorStateMessage: d ?
|
|
98863
|
+
errorStateMessage: d ? o("LAB_TEST_ERROR_LOADING") : void 0,
|
|
98850
98864
|
ariaLabel: `${t.testName} results`,
|
|
98851
98865
|
dataTestId: `lab-test-results-table-${t.testName}`,
|
|
98852
98866
|
renderCell: y,
|
|
98853
98867
|
className: x0.labTestResultsTable
|
|
98854
98868
|
}
|
|
98855
|
-
) : /* @__PURE__ */ de("div", { className: x0.testResultsPending, children:
|
|
98869
|
+
) : /* @__PURE__ */ de("div", { className: x0.testResultsPending, children: o("LAB_TEST_RESULTS_PENDING") + " ...." }) : null, v = t.attachments && t.attachments.length > 0, M = t.attachments && o("LAB_TEST_VIEW_ATTACHMENT", { count: t.attachments.length });
|
|
98856
98870
|
return /* @__PURE__ */ Ke("div", { className: x0.labTest, children: [
|
|
98857
98871
|
/* @__PURE__ */ Ke("div", { className: x0.labTestHeader, children: [
|
|
98858
98872
|
/* @__PURE__ */ Ke("div", { className: x0.labTestInfo, children: [
|
|
98859
98873
|
/* @__PURE__ */ de("span", { children: t.testName }),
|
|
98860
|
-
t.testType === "Panel" && /* @__PURE__ */ de("span", { className: x0.testDetails, children:
|
|
98874
|
+
t.testType === "Panel" && /* @__PURE__ */ de("span", { className: x0.testDetails, children: o(`LAB_TEST_${t.testType.toUpperCase()}`) }),
|
|
98861
98875
|
v && /* @__PURE__ */ de(
|
|
98862
98876
|
kl,
|
|
98863
98877
|
{
|
|
98864
|
-
onClick: () =>
|
|
98878
|
+
onClick: () => c(!0),
|
|
98865
98879
|
className: x0.viewAttachmentsLink,
|
|
98866
98880
|
children: M
|
|
98867
98881
|
}
|
|
@@ -98874,20 +98888,20 @@ const Wi0 = ({
|
|
|
98874
98888
|
ariaLabel: t.note
|
|
98875
98889
|
}
|
|
98876
98890
|
),
|
|
98877
|
-
t.priority === jl.stat && /* @__PURE__ */ de(Yo, { type: "red", "data-testid": `lab-test-priority-${t.priority}`, children:
|
|
98891
|
+
t.priority === jl.stat && /* @__PURE__ */ de(Yo, { type: "red", "data-testid": `lab-test-priority-${t.priority}`, children: o(`LAB_TEST_${t.priority.toUpperCase()}`) })
|
|
98878
98892
|
] }),
|
|
98879
98893
|
/* @__PURE__ */ Ke("span", { className: x0.testDetails, children: [
|
|
98880
|
-
|
|
98894
|
+
o("LAB_TEST_ORDERED_BY"),
|
|
98881
98895
|
": ",
|
|
98882
98896
|
t.orderedBy
|
|
98883
98897
|
] })
|
|
98884
98898
|
] }),
|
|
98885
98899
|
w(),
|
|
98886
|
-
v &&
|
|
98900
|
+
v && a && /* @__PURE__ */ de(
|
|
98887
98901
|
xt,
|
|
98888
98902
|
{
|
|
98889
|
-
open:
|
|
98890
|
-
onRequestClose: () =>
|
|
98903
|
+
open: a,
|
|
98904
|
+
onRequestClose: () => c(!1),
|
|
98891
98905
|
passiveModal: !0,
|
|
98892
98906
|
modalHeading: M,
|
|
98893
98907
|
testId: "attachments-modal",
|
|
@@ -99030,8 +99044,7 @@ const Wi0 = ({
|
|
|
99030
99044
|
{
|
|
99031
99045
|
test: oe,
|
|
99032
99046
|
isOpen: s.has(re),
|
|
99033
|
-
hasProcessedReport: !!oe.
|
|
99034
|
-
reportId: oe.reportId
|
|
99047
|
+
hasProcessedReport: !!oe.reportIds && oe.reportIds.length > 0
|
|
99035
99048
|
},
|
|
99036
99049
|
oe.id ?? `${Y.date}-${oe.testName}`
|
|
99037
99050
|
))
|
|
@@ -106880,7 +106893,7 @@ I90();
|
|
|
106880
106893
|
const B90 = [];
|
|
106881
106894
|
for (let t = 0; t < 256; ++t)
|
|
106882
106895
|
B90.push((t + 256).toString(16).slice(1));
|
|
106883
|
-
R0(() => Promise.resolve().then(() => na0)), R0(() => Promise.resolve().then(() => La0)), R0(() => Promise.resolve().then(() => sc0)), R0(() => Promise.resolve().then(() => wc0)), R0(() => import("./DocumentsTable-
|
|
106896
|
+
R0(() => Promise.resolve().then(() => na0)), R0(() => Promise.resolve().then(() => La0)), R0(() => Promise.resolve().then(() => sc0)), R0(() => Promise.resolve().then(() => wc0)), R0(() => import("./DocumentsTable-gaNpd5Oz-CTCqDf5n.js")), R0(() => Promise.resolve().then(() => ms0)), R0(() => import("./FormsTable-D4dXAIbr-D_LTX3bd.js")), R0(() => Promise.resolve().then(() => Yi0)), R0(() => import("./Observations-DA1z7g3V-DjRioyaG.js")), R0(
|
|
106884
106897
|
() => Promise.resolve().then(() => Qs0)
|
|
106885
106898
|
), R0(
|
|
106886
106899
|
() => Promise.resolve().then(() => vi0)
|
|
@@ -195116,7 +195129,7 @@ var obt = (t, e = !1) => {
|
|
|
195116
195129
|
const e = Wa2(() => {
|
|
195117
195130
|
const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#e;
|
|
195118
195131
|
let d;
|
|
195119
|
-
return this.#l ? d = this.#l : (d = qa2(() => import("./LNWAZHJI-
|
|
195132
|
+
return this.#l ? d = this.#l : (d = qa2(() => import("./LNWAZHJI-DHqYNoHL.js")), this.#l = d), hc2(this.#h, this.#r), ja2(d, Fa2({
|
|
195120
195133
|
get queryFlavor() {
|
|
195121
195134
|
return r.#d;
|
|
195122
195135
|
},
|
|
@@ -195214,7 +195227,7 @@ var obt = (t, e = !1) => {
|
|
|
195214
195227
|
const e = Wa2(() => {
|
|
195215
195228
|
const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#e, [d] = this.#l;
|
|
195216
195229
|
let u;
|
|
195217
|
-
return this.#i ? u = this.#i : (u = qa2(() => import("./MWZ6AO7Z-
|
|
195230
|
+
return this.#i ? u = this.#i : (u = qa2(() => import("./MWZ6AO7Z-BtPN0axu.js")), this.#i = u), hc2(this.#h, this.#r), ja2(u, Fa2({
|
|
195218
195231
|
get queryFlavor() {
|
|
195219
195232
|
return r.#d;
|
|
195220
195233
|
},
|
|
@@ -195374,11 +195387,11 @@ const RVt = {
|
|
|
195374
195387
|
}), KVt = R0(
|
|
195375
195388
|
() => import("./index-CFigb5vF.js").then((t) => ({ default: t.IndexPage }))
|
|
195376
195389
|
), YVt = R0(
|
|
195377
|
-
() => import("./index-
|
|
195390
|
+
() => import("./index-1Z6BAYr6.js").then((t) => ({
|
|
195378
195391
|
default: t.default
|
|
195379
195392
|
}))
|
|
195380
195393
|
), JVt = R0(
|
|
195381
|
-
() => import("./index-
|
|
195394
|
+
() => import("./index-Dm0m9h95.js").then((t) => ({
|
|
195382
195395
|
default: t.default
|
|
195383
195396
|
}))
|
|
195384
195397
|
), XVt = [
|
|
@@ -195421,34 +195434,34 @@ function sbt() {
|
|
|
195421
195434
|
}
|
|
195422
195435
|
export {
|
|
195423
195436
|
es as $,
|
|
195424
|
-
|
|
195425
|
-
|
|
195437
|
+
Bzt as A,
|
|
195438
|
+
Uzt as B,
|
|
195426
195439
|
IVt as C,
|
|
195427
195440
|
HHt as D,
|
|
195428
195441
|
Im0 as E,
|
|
195429
195442
|
jz as F,
|
|
195430
195443
|
wM as G,
|
|
195431
|
-
|
|
195444
|
+
Szt as H,
|
|
195432
195445
|
TB2 as I,
|
|
195433
195446
|
Zc as J,
|
|
195434
195447
|
$r as K,
|
|
195435
|
-
|
|
195436
|
-
|
|
195437
|
-
|
|
195438
|
-
|
|
195439
|
-
|
|
195440
|
-
|
|
195448
|
+
sxt as L,
|
|
195449
|
+
kzt as M,
|
|
195450
|
+
fHt as N,
|
|
195451
|
+
qzt as O,
|
|
195452
|
+
Txt as P,
|
|
195453
|
+
Hxt as Q,
|
|
195441
195454
|
hY1 as R,
|
|
195442
195455
|
Qi as S,
|
|
195443
|
-
|
|
195456
|
+
tyt as T,
|
|
195444
195457
|
lt as U,
|
|
195445
|
-
|
|
195458
|
+
W90 as V,
|
|
195446
195459
|
yxt as W,
|
|
195447
195460
|
YB0 as X,
|
|
195448
195461
|
dxt as Y,
|
|
195449
195462
|
fxt as Z,
|
|
195450
|
-
|
|
195451
|
-
|
|
195463
|
+
Pzt as _,
|
|
195464
|
+
kl as a,
|
|
195452
195465
|
jxt as a$,
|
|
195453
195466
|
wxt as a0,
|
|
195454
195467
|
bf0 as a1,
|
|
@@ -195513,7 +195526,7 @@ export {
|
|
|
195513
195526
|
Gxt as ax,
|
|
195514
195527
|
fg as ay,
|
|
195515
195528
|
c4 as az,
|
|
195516
|
-
|
|
195529
|
+
a2 as b,
|
|
195517
195530
|
n8 as b0,
|
|
195518
195531
|
Byt as b1,
|
|
195519
195532
|
Xxt as b2,
|
|
@@ -195524,28 +195537,28 @@ export {
|
|
|
195524
195537
|
Jxt as b7,
|
|
195525
195538
|
uyt as b8,
|
|
195526
195539
|
sbt as b9,
|
|
195527
|
-
|
|
195528
|
-
|
|
195540
|
+
as as c,
|
|
195541
|
+
an as d,
|
|
195529
195542
|
NJ2 as e,
|
|
195530
|
-
|
|
195543
|
+
Tzt as f,
|
|
195531
195544
|
Gt as g,
|
|
195532
195545
|
kJ2 as h,
|
|
195533
|
-
|
|
195534
|
-
|
|
195535
|
-
|
|
195536
|
-
|
|
195537
|
-
|
|
195538
|
-
|
|
195539
|
-
|
|
195546
|
+
Ki as i,
|
|
195547
|
+
Lzt as j,
|
|
195548
|
+
_zt as k,
|
|
195549
|
+
uE as l,
|
|
195550
|
+
Ozt as m,
|
|
195551
|
+
Zzt as n,
|
|
195552
|
+
aVe as o,
|
|
195540
195553
|
xt as p,
|
|
195541
195554
|
szt as q,
|
|
195542
|
-
|
|
195555
|
+
cF2 as r,
|
|
195543
195556
|
Ut as s,
|
|
195544
195557
|
Hg as t,
|
|
195545
195558
|
E2 as u,
|
|
195546
195559
|
uM as v,
|
|
195547
|
-
|
|
195548
|
-
|
|
195549
|
-
|
|
195550
|
-
|
|
195560
|
+
$zt as w,
|
|
195561
|
+
Izt as x,
|
|
195562
|
+
vF2 as y,
|
|
195563
|
+
dF2 as z
|
|
195551
195564
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as p } from "react/jsx-runtime";
|
|
2
|
-
import { Z as f, a0 as B, a1 as O, a2 as V, a3 as X, a4 as ee, a5 as te, a6 as ie,
|
|
2
|
+
import { Z as f, a0 as B, a1 as O, a2 as V, a3 as X, a4 as ee, a5 as te, a6 as ie, L as ae, a7 as ne, u as Q, a8 as R, a9 as le, aa as re, ab as se, ac as E, ad as F, ae as C, af as Y, ag as k, ah as x, ai as H, J as oe, K as de, E as $, aj as ce, N as me, ak as Ae, al as Ie, am as ue, Q as _e, T as Te, V as Le } from "./index-BTbPRgCo.js";
|
|
3
3
|
import { useState as g, useMemo as N, useEffect as h, useRef as ve, useCallback as U } from "react";
|
|
4
4
|
import { useQuery as M, useQueryClient as Ne } from "@tanstack/react-query";
|
|
5
5
|
const be = "Available for appointments", q = "Get Appointment Unavailability", pe = "Add Appointment Unavailability", G = "Appointment Location", De = () => {
|
|
@@ -566,13 +566,13 @@ const be = "Available for appointments", q = "Get Appointment Unavailability", p
|
|
|
566
566
|
s(T), !(Object.keys(T).length > 0) && await S(Re(m.current, e));
|
|
567
567
|
}, [e, S]), W = U(
|
|
568
568
|
(T) => {
|
|
569
|
-
s((
|
|
570
|
-
const P = { ...
|
|
569
|
+
s((J) => {
|
|
570
|
+
const P = { ...J };
|
|
571
571
|
return T.forEach((Z) => delete P[Z]), P;
|
|
572
572
|
});
|
|
573
573
|
},
|
|
574
574
|
[]
|
|
575
|
-
),
|
|
575
|
+
), z = U(() => {
|
|
576
576
|
c(!1), m.current = null, s({});
|
|
577
577
|
}, []);
|
|
578
578
|
return /* @__PURE__ */ r(
|
|
@@ -619,7 +619,7 @@ const be = "Available for appointments", q = "Get Appointment Unavailability", p
|
|
|
619
619
|
onPrimaryButtonClick: j,
|
|
620
620
|
isPrimaryButtonDisabled: A,
|
|
621
621
|
secondaryButtonText: e("ADMIN_UNAVAILABILITY_FORM_CANCEL"),
|
|
622
|
-
onSecondaryButtonClick:
|
|
622
|
+
onSecondaryButtonClick: z,
|
|
623
623
|
isSecondaryButtonDisabled: A,
|
|
624
624
|
content: /* @__PURE__ */ r(
|
|
625
625
|
He,
|
package/dist/index.js
CHANGED