@bahmni/home-app 0.0.1-dev.400 → 0.0.1-dev.404
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-BYyXnEYb-d-1DeyJf.js → DocumentsTable-BmYFio6a-zmPPe9BV.js} +37 -37
- package/dist/{FormsTable-lAAkDRQQ-Guc6FXyo.js → FormsTable-Dn0dYzgO-COihlfn-.js} +61 -61
- package/dist/{LNWAZHJI-BSLKWU3r.js → LNWAZHJI--EdTiJwJ.js} +2 -2
- package/dist/{MWZ6AO7Z-BtZBHJTK.js → MWZ6AO7Z-VB4PD1cY.js} +2 -2
- package/dist/{Observations-DGEkuYFv-DcDKALac.js → Observations-BgGdEmnb-BvZt75bk.js} +55 -55
- package/dist/{YPM2AS64-Ck5l8dJV.js → YPM2AS64-Ze1E-dld.js} +1 -1
- package/dist/{index-DBQrvf3J.js → index-BUK4yYWQ.js} +25 -25
- package/dist/{index-DxLqK-Hp.js → index-dkqs2X3C.js} +28180 -28028
- package/dist/index.css +1 -1
- 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 G } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { v as Q, u as Y, z as J, J as W, q as X, w as Z, K as ee, p as te } from "./index-dkqs2X3C.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,
|
|
@@ -18,13 +18,13 @@ const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTab
|
|
|
18
18
|
uploadedBy: "DOCUMENTS_UPLOADED_BY",
|
|
19
19
|
attachments: "DOCUMENTS_ATTACHMENTS"
|
|
20
20
|
};
|
|
21
|
-
function
|
|
21
|
+
function R(a) {
|
|
22
22
|
return !a || a.includes(":") ? "#" : `/openmrs/auth?requested_document=/document_images/${a}`;
|
|
23
23
|
}
|
|
24
|
-
function ie(a,
|
|
24
|
+
function ie(a, E) {
|
|
25
25
|
return a.map((s) => ({
|
|
26
26
|
key: s,
|
|
27
|
-
header:
|
|
27
|
+
header: E(ue[s])
|
|
28
28
|
}));
|
|
29
29
|
}
|
|
30
30
|
const Te = [
|
|
@@ -33,78 +33,78 @@ const Te = [
|
|
|
33
33
|
"attachments",
|
|
34
34
|
"uploadedOn",
|
|
35
35
|
"uploadedBy"
|
|
36
|
-
], pe = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i,
|
|
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: E }) => {
|
|
37
37
|
const [s, w] = l(!1), [o, U] = l(
|
|
38
38
|
null
|
|
39
|
-
), [$,
|
|
39
|
+
), [$, O] = l(
|
|
40
40
|
/* @__PURE__ */ new Set()
|
|
41
|
-
),
|
|
41
|
+
), g = Q(), { t: n } = Y(), { addNotification: L } = J(), k = Number(a?.pageSize) || 5, [f, C] = l(1), [u, V] = l(k), [q, A] = l(void 0), M = h((e) => {
|
|
42
42
|
U(e), w(!0);
|
|
43
43
|
}, []), F = h(() => {
|
|
44
|
-
w(!1), U(null),
|
|
44
|
+
w(!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: H, isError: y, error: b } = ae({
|
|
48
48
|
queryKey: [
|
|
49
49
|
"documents",
|
|
50
|
-
E,
|
|
51
50
|
g,
|
|
52
|
-
|
|
51
|
+
E,
|
|
52
|
+
f,
|
|
53
53
|
u
|
|
54
54
|
],
|
|
55
|
-
enabled: !!
|
|
56
|
-
queryFn: () =>
|
|
57
|
-
E,
|
|
55
|
+
enabled: !!g,
|
|
56
|
+
queryFn: () => W(
|
|
58
57
|
g,
|
|
58
|
+
E,
|
|
59
59
|
u,
|
|
60
|
-
|
|
60
|
+
f
|
|
61
61
|
)
|
|
62
62
|
});
|
|
63
|
-
|
|
63
|
+
I(() => {
|
|
64
64
|
i && A(i.total);
|
|
65
|
-
}, [i]),
|
|
66
|
-
|
|
67
|
-
}, [
|
|
65
|
+
}, [i]), I(() => {
|
|
66
|
+
C(1), A(void 0);
|
|
67
|
+
}, [g]), I(() => {
|
|
68
68
|
y && L({
|
|
69
69
|
title: n("ERROR_DEFAULT_TITLE"),
|
|
70
70
|
message: b?.message ?? "",
|
|
71
71
|
type: "error"
|
|
72
72
|
});
|
|
73
|
-
}, [y, b, L, n]),
|
|
73
|
+
}, [y, b, L, n]), I(() => {
|
|
74
74
|
const e = new AbortController();
|
|
75
75
|
return (async () => {
|
|
76
76
|
if (!s || !o) return;
|
|
77
|
-
const t = /* @__PURE__ */ new Set(), m =
|
|
77
|
+
const t = /* @__PURE__ */ new Set(), m = B(o);
|
|
78
78
|
for (let c = 0; c < m.length; c++) {
|
|
79
|
-
const S =
|
|
79
|
+
const S = R(m[c].url);
|
|
80
80
|
try {
|
|
81
81
|
(await fetch(S, {
|
|
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
|
-
const
|
|
92
|
+
const z = h(
|
|
93
93
|
(e, t) => {
|
|
94
|
-
t !== u ? (V(t),
|
|
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
|
-
),
|
|
100
|
+
), K = _(() => [...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]), j = _(() => ie(N, n), [N, n]), P = _(
|
|
101
101
|
() => N.map((e) => ({
|
|
102
102
|
key: e,
|
|
103
103
|
sortable: e !== "attachments"
|
|
104
104
|
})),
|
|
105
105
|
[N]
|
|
106
106
|
), T = _(
|
|
107
|
-
() => o ?
|
|
107
|
+
() => o ? B(o) : [],
|
|
108
108
|
[o]
|
|
109
109
|
), x = h(
|
|
110
110
|
(e, t) => {
|
|
@@ -141,20 +141,20 @@ const Te = [
|
|
|
141
141
|
/* @__PURE__ */ r("div", { "data-testid": "documents-table", children: /* @__PURE__ */ r(
|
|
142
142
|
ee,
|
|
143
143
|
{
|
|
144
|
-
headers:
|
|
144
|
+
headers: j,
|
|
145
145
|
ariaLabel: n("DOCUMENTS_TABLE_HEADING"),
|
|
146
|
-
rows:
|
|
146
|
+
rows: K,
|
|
147
147
|
loading: H,
|
|
148
148
|
errorStateMessage: y ? b?.message : null,
|
|
149
|
-
sortable:
|
|
149
|
+
sortable: P,
|
|
150
150
|
emptyStateMessage: n("DOCUMENTS_NO_RECORDS"),
|
|
151
151
|
renderCell: x,
|
|
152
152
|
className: d.documentsTableBody,
|
|
153
153
|
dataTestId: "documents-table",
|
|
154
154
|
pageSize: u,
|
|
155
155
|
totalItems: q,
|
|
156
|
-
page:
|
|
157
|
-
onPageChange:
|
|
156
|
+
page: f,
|
|
157
|
+
onPageChange: z
|
|
158
158
|
}
|
|
159
159
|
) }),
|
|
160
160
|
s && o && /* @__PURE__ */ r(
|
|
@@ -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 =
|
|
173
|
-
return m === "#" ||
|
|
172
|
+
const m = R(e.url), c = e.contentType?.toLowerCase().includes("pdf"), S = (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,
|
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
import { jsx as i, jsxs as P, Fragment as ye } from "react/jsx-runtime";
|
|
2
|
-
import { u as ge,
|
|
3
|
-
import { useQueryClient as
|
|
2
|
+
import { u as ge, v as be, e as Oe, a as Ne, b as Te, Y as Ie, d as Ae, c as Ee, f as ve, m as _e, g as Fe, h as Se, i as $, w as Me, A as x, V as Y, q as Re, K as G, P as Be, F as Ce, p as Le, j as Ue, k as De } from "./index-dkqs2X3C.js";
|
|
3
|
+
import { useQueryClient as ke, useQuery as N } from "@tanstack/react-query";
|
|
4
4
|
import { useState as Q, useMemo as d, useCallback as c } from "react";
|
|
5
|
-
const qe = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_modalHeading__wnTmA",
|
|
5
|
+
const qe = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_modalHeading__wnTmA", Ve = "FormsTable-module_customAccordianItem__isszs", T = {
|
|
6
6
|
formsTableBody: qe,
|
|
7
7
|
modalHeading: we,
|
|
8
|
-
customAccordianItem:
|
|
9
|
-
},
|
|
10
|
-
episodeOfCareUuids:
|
|
8
|
+
customAccordianItem: Ve
|
|
9
|
+
}, He = "startConsultation", $e = ({
|
|
10
|
+
episodeOfCareUuids: M,
|
|
11
11
|
encounterUuids: m,
|
|
12
|
-
config:
|
|
13
|
-
disableActions:
|
|
12
|
+
config: X,
|
|
13
|
+
disableActions: Z = !1,
|
|
14
14
|
activeEncounterUuid: h = null
|
|
15
15
|
}) => {
|
|
16
|
-
const { t: n } = ge(), u = be(), [y,
|
|
16
|
+
const { t: n } = ge(), u = be(), [y, R] = Q(!1), [s, B] = Q(null), {
|
|
17
17
|
numberOfVisits: J,
|
|
18
18
|
hideThumbnail: W = !1,
|
|
19
19
|
forms: g
|
|
20
|
-
} =
|
|
21
|
-
|
|
22
|
-
), { userPrivileges: b } =
|
|
23
|
-
|
|
20
|
+
} = X ?? {}, ee = Oe(
|
|
21
|
+
De.EDIT_OBSERVATIONS
|
|
22
|
+
), { userPrivileges: b } = Ne(), I = ee && !Z && !!h, C = Te(
|
|
23
|
+
M,
|
|
24
24
|
m
|
|
25
|
-
), re =
|
|
25
|
+
), re = ke(), {
|
|
26
26
|
data: L = [],
|
|
27
27
|
isLoading: U,
|
|
28
|
-
isError:
|
|
28
|
+
isError: D,
|
|
29
29
|
error: oe,
|
|
30
30
|
refetch: ae
|
|
31
|
-
} =
|
|
32
|
-
queryKey: ["forms", u,
|
|
33
|
-
queryFn: () =>
|
|
31
|
+
} = N({
|
|
32
|
+
queryKey: ["forms", u, M],
|
|
33
|
+
queryFn: () => Ie(u, void 0, J),
|
|
34
34
|
enabled: !!u && !C
|
|
35
|
-
}),
|
|
35
|
+
}), k = d(() => {
|
|
36
36
|
let e = L;
|
|
37
37
|
return m && m.length > 0 && (e = e.filter(
|
|
38
38
|
(r) => m.includes(r.encounterUuid)
|
|
39
39
|
)), Array.isArray(g) && g.length > 0 && (e = e.filter(
|
|
40
40
|
(r) => g.some((o) => o.toLowerCase() === r.formName.toLowerCase())
|
|
41
41
|
)), e;
|
|
42
|
-
}, [L, m, g]), { data:
|
|
42
|
+
}, [L, m, g]), { data: O = [] } = N({
|
|
43
43
|
queryKey: ["observationForms"],
|
|
44
|
-
queryFn: () =>
|
|
44
|
+
queryFn: () => Ae()
|
|
45
45
|
}), q = c(
|
|
46
46
|
(e) => {
|
|
47
|
-
const r =
|
|
47
|
+
const r = O.find((t) => t.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((t) => t.name));
|
|
@@ -52,33 +52,33 @@ const qe = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
52
52
|
(t) => o.has(t.privilegeName) && t.editable
|
|
53
53
|
);
|
|
54
54
|
},
|
|
55
|
-
[
|
|
55
|
+
[O, b]
|
|
56
56
|
), f = c(
|
|
57
57
|
(e) => !h || e.encounterUuid !== h ? !1 : q(e.formName),
|
|
58
58
|
[h, q]
|
|
59
59
|
), w = c(
|
|
60
|
-
(e) =>
|
|
61
|
-
[
|
|
62
|
-
),
|
|
60
|
+
(e) => O.find((r) => r.name === e)?.uuid,
|
|
61
|
+
[O]
|
|
62
|
+
), A = d(() => {
|
|
63
63
|
if (s)
|
|
64
64
|
return w(s.formName);
|
|
65
65
|
}, [s, w]), {
|
|
66
66
|
data: l,
|
|
67
67
|
isLoading: te,
|
|
68
68
|
isError: se,
|
|
69
|
-
error:
|
|
70
|
-
} =
|
|
71
|
-
queryKey: ["formMetadata",
|
|
72
|
-
queryFn: () =>
|
|
73
|
-
enabled: !!
|
|
69
|
+
error: E
|
|
70
|
+
} = N({
|
|
71
|
+
queryKey: ["formMetadata", A],
|
|
72
|
+
queryFn: () => Ee(A),
|
|
73
|
+
enabled: !!A && y
|
|
74
74
|
}), {
|
|
75
|
-
data:
|
|
75
|
+
data: v,
|
|
76
76
|
isLoading: ne,
|
|
77
77
|
isError: ie,
|
|
78
78
|
error: _
|
|
79
|
-
} =
|
|
79
|
+
} = N({
|
|
80
80
|
queryKey: ["formsEncounterFHIR", s?.encounterUuid],
|
|
81
|
-
queryFn: () =>
|
|
81
|
+
queryFn: () => ve(s.encounterUuid),
|
|
82
82
|
enabled: !!s?.encounterUuid && y
|
|
83
83
|
});
|
|
84
84
|
_e(
|
|
@@ -87,7 +87,7 @@ const qe = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
87
87
|
},
|
|
88
88
|
[u]
|
|
89
89
|
);
|
|
90
|
-
const de = d(() => !
|
|
90
|
+
const de = d(() => !v?.entry || !s?.formName ? [] : v.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => Fe(e) ? Se(e)?.toLowerCase() === s.formName.toLowerCase() : !0), [v, s?.formName]), le = d(() => {
|
|
91
91
|
if (!l?.schema) return;
|
|
92
92
|
const e = [], r = (o) => {
|
|
93
93
|
(o ?? []).forEach((t) => {
|
|
@@ -124,30 +124,30 @@ const qe = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
124
124
|
l.schema.controls ?? []
|
|
125
125
|
), Object.keys(e).length > 0 ? e : void 0;
|
|
126
126
|
}, [l]), ue = d(() => {
|
|
127
|
-
if (
|
|
128
|
-
return $(
|
|
127
|
+
if (E)
|
|
128
|
+
return $(E).message;
|
|
129
129
|
if (_)
|
|
130
130
|
return $(_).message;
|
|
131
|
-
}, [
|
|
131
|
+
}, [E, _]), p = d(
|
|
132
132
|
() => [
|
|
133
133
|
{ key: "recordedOn", header: n("RECORDED_ON") },
|
|
134
134
|
{ key: "recordedBy", header: n("RECORDED_BY") }
|
|
135
135
|
],
|
|
136
136
|
[n]
|
|
137
|
-
),
|
|
137
|
+
), V = d(
|
|
138
138
|
() => [...p, { key: "actions", header: n("ACTIONS") }],
|
|
139
139
|
[p, n]
|
|
140
140
|
), fe = c(
|
|
141
|
-
(e) =>
|
|
142
|
-
[
|
|
141
|
+
(e) => I && e.some((r) => f(r)) ? V : p,
|
|
142
|
+
[I, f, V, p]
|
|
143
143
|
), pe = p, he = d(
|
|
144
144
|
() => [
|
|
145
145
|
{ key: "recordedOn", sortable: !0 },
|
|
146
146
|
{ key: "recordedBy", sortable: !0 }
|
|
147
147
|
],
|
|
148
148
|
[]
|
|
149
|
-
),
|
|
150
|
-
const e =
|
|
149
|
+
), H = d(() => {
|
|
150
|
+
const e = k.reduce(
|
|
151
151
|
(r, o) => {
|
|
152
152
|
const t = o.formName;
|
|
153
153
|
r[t] ??= [];
|
|
@@ -155,7 +155,7 @@ const qe = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
155
155
|
return r[t].push({
|
|
156
156
|
id: o.encounterUuid,
|
|
157
157
|
formName: o.formName,
|
|
158
|
-
recordedOn:
|
|
158
|
+
recordedOn: Me(o.encounterDateTime, n, !0).formattedResult,
|
|
159
159
|
recordedBy: a ?? "--",
|
|
160
160
|
encounterDateTime: o.encounterDateTime,
|
|
161
161
|
encounterUuid: o.encounterUuid
|
|
@@ -171,13 +171,13 @@ const qe = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
171
171
|
)
|
|
172
172
|
})
|
|
173
173
|
).sort((r, o) => r.formName.localeCompare(o.formName));
|
|
174
|
-
}, [
|
|
175
|
-
|
|
176
|
-
}, []),
|
|
177
|
-
|
|
174
|
+
}, [k, n]), K = c((e) => {
|
|
175
|
+
B(e), R(!0);
|
|
176
|
+
}, []), j = c(() => {
|
|
177
|
+
R(!1), B(null);
|
|
178
178
|
}, []), F = c((e) => {
|
|
179
179
|
globalThis.dispatchEvent(
|
|
180
|
-
new CustomEvent(
|
|
180
|
+
new CustomEvent(He, {
|
|
181
181
|
detail: {
|
|
182
182
|
editOnly: "observationForms",
|
|
183
183
|
editTitle: "EDIT_OBSERVATION_FORM_TITLE",
|
|
@@ -191,7 +191,7 @@ const qe = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
191
191
|
(e, r) => {
|
|
192
192
|
switch (r) {
|
|
193
193
|
case "recordedOn":
|
|
194
|
-
return /* @__PURE__ */ i(
|
|
194
|
+
return /* @__PURE__ */ i(Re, { onClick: () => K(e), children: e.recordedOn });
|
|
195
195
|
case "recordedBy":
|
|
196
196
|
return e.recordedBy;
|
|
197
197
|
case "actions":
|
|
@@ -203,30 +203,30 @@ const qe = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
203
203
|
size: "sm",
|
|
204
204
|
testId: `edit-form-${e.encounterUuid}`,
|
|
205
205
|
onClick: () => F(e),
|
|
206
|
-
children: /* @__PURE__ */ i(
|
|
206
|
+
children: /* @__PURE__ */ i(Y, {})
|
|
207
207
|
}
|
|
208
208
|
) : null;
|
|
209
209
|
default:
|
|
210
210
|
return null;
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
|
-
[
|
|
213
|
+
[K, F, f, n]
|
|
214
214
|
);
|
|
215
215
|
return /* @__PURE__ */ P(ye, { children: [
|
|
216
|
-
/* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: U ||
|
|
217
|
-
|
|
216
|
+
/* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: U || D || H.length === 0 || C ? /* @__PURE__ */ i(
|
|
217
|
+
G,
|
|
218
218
|
{
|
|
219
219
|
headers: pe,
|
|
220
220
|
ariaLabel: n("FORMS_HEADING"),
|
|
221
221
|
rows: [],
|
|
222
222
|
loading: U,
|
|
223
|
-
errorStateMessage:
|
|
223
|
+
errorStateMessage: D ? oe?.message : void 0,
|
|
224
224
|
emptyStateMessage: n("FORMS_UNAVAILABLE"),
|
|
225
225
|
renderCell: z,
|
|
226
226
|
className: T.formsTableBody,
|
|
227
227
|
dataTestId: "forms-table"
|
|
228
228
|
}
|
|
229
|
-
) : /* @__PURE__ */ i(
|
|
229
|
+
) : /* @__PURE__ */ i(Be, { align: "start", children: H.map((e, r) => {
|
|
230
230
|
const { formName: o, records: t } = e, a = fe(t);
|
|
231
231
|
return /* @__PURE__ */ i(
|
|
232
232
|
Ce,
|
|
@@ -236,7 +236,7 @@ const qe = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
236
236
|
testId: `accordian-title-${o}`,
|
|
237
237
|
open: r === 0,
|
|
238
238
|
children: /* @__PURE__ */ i(
|
|
239
|
-
|
|
239
|
+
G,
|
|
240
240
|
{
|
|
241
241
|
headers: a,
|
|
242
242
|
ariaLabel: n("FORMS_HEADING"),
|
|
@@ -260,10 +260,10 @@ const qe = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
260
260
|
id: "modalIdForActionAreaLayout",
|
|
261
261
|
portalId: "main-display-area",
|
|
262
262
|
open: y,
|
|
263
|
-
onRequestClose:
|
|
263
|
+
onRequestClose: j,
|
|
264
264
|
modalHeading: /* @__PURE__ */ P("div", { className: T.modalHeading, children: [
|
|
265
265
|
/* @__PURE__ */ i("span", { children: s.formName }),
|
|
266
|
-
|
|
266
|
+
I && f(s) && /* @__PURE__ */ i(
|
|
267
267
|
x,
|
|
268
268
|
{
|
|
269
269
|
label: n("EDIT_OBSERVATION_FORM"),
|
|
@@ -271,9 +271,9 @@ const qe = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
271
271
|
size: "sm",
|
|
272
272
|
testId: `edit-form-modal-${s.encounterUuid}`,
|
|
273
273
|
onClick: () => {
|
|
274
|
-
|
|
274
|
+
j(), F(s);
|
|
275
275
|
},
|
|
276
|
-
children: /* @__PURE__ */ i(
|
|
276
|
+
children: /* @__PURE__ */ i(Y, {})
|
|
277
277
|
}
|
|
278
278
|
)
|
|
279
279
|
] }),
|
|
@@ -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 { U as d,
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-Ze1E-dld.js";
|
|
2
|
+
import { U as d, X as f, Z as e } from "./index-dkqs2X3C.js";
|
|
3
3
|
var p = (a) => {
|
|
4
4
|
const [r, t] = 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 { U as v,
|
|
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-Ze1E-dld.js";
|
|
2
|
+
import { U as v, X as C, Z as e } from "./index-dkqs2X3C.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|