@bahmni/registration-app 0.0.1-dev.175 → 0.0.1-dev.177
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-vAC0-Du4-DzKnSTl8.js → DocumentsTable-BmGSz9jH-35FJL_Ao.js} +106 -105
- package/dist/{FormsTable-DmEpKKr3-h9M0DmeF.js → FormsTable-BJRW7p5f-LYdflWmM.js} +54 -53
- package/dist/{LNWAZHJI-9-lAdWfa.js → LNWAZHJI-Dt6npZIR.js} +2 -2
- package/dist/{MWZ6AO7Z-2l2Cm7oV.js → MWZ6AO7Z-k3gEJS9_.js} +2 -2
- package/dist/{Observations-CghkmYr1-DrxaMGaz.js → Observations-COFCQoqc-B02IxR_W.js} +21 -21
- package/dist/{YPM2AS64-5zLI5oHW.js → YPM2AS64-DY6hluiJ.js} +1 -1
- package/dist/{index-CHABx_nr.js → index-BWUKMECq.js} +1383 -1368
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +40 -41
- package/dist/locales/locale_es.json +52 -52
- package/package.json +1 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsx as s, jsxs as p, Fragment as
|
|
2
|
-
import { u as ee, f as re, E as ae,
|
|
1
|
+
import { jsx as s, jsxs as p, Fragment as P } from "react/jsx-runtime";
|
|
2
|
+
import { u as ee, f as re, E as ae, U as te, q as oe, W as ne, F as se, H as de, a as me, D as ie, A as U, c as le, Y as ce, G as ue, y as be, Z as q, P as pe, p as fe, T as F, d as _e, e as $e, g as ge, h as ve } from "./index-BWUKMECq.js";
|
|
3
3
|
import { useQueryClient as he, useQuery as A } from "@tanstack/react-query";
|
|
4
4
|
import { useState as H, useMemo as h, useCallback as R } from "react";
|
|
5
|
-
const
|
|
6
|
-
formsTableBody:
|
|
7
|
-
customAccordianItem:
|
|
5
|
+
const ye = "_formsTableBody_1pd36_1", Ne = "_customAccordianItem_1pd36_6", Ae = "_formContent_1pd36_18", Re = "_formDetailsContainer_1pd36_25", Fe = "_observation_1pd36_30", Le = "_groupContainer_1pd36_39", Ce = "_rowContainer_1pd36_43", Oe = "_groupLabel_1pd36_48", Ie = "_rowLabel_1pd36_58", Te = "_rowValue_1pd36_67", Me = "_groupMembers_1pd36_75", Ve = "_memberRow_1pd36_81", Se = "_memberLabel_1pd36_86", De = "_memberValue_1pd36_94", Ee = "_abnormalValue_1pd36_102", we = "_commentSection_1pd36_110", xe = "_commentText_1pd36_116", Be = "_nestedGroup_1pd36_125", Ge = "_nestedGroupLabel_1pd36_132", Ue = "_nestedGroupMembers_1pd36_141", o = {
|
|
6
|
+
formsTableBody: ye,
|
|
7
|
+
customAccordianItem: Ne,
|
|
8
8
|
formContent: Ae,
|
|
9
9
|
formDetailsContainer: Re,
|
|
10
10
|
observation: Fe,
|
|
11
11
|
groupContainer: Le,
|
|
12
12
|
rowContainer: Ce,
|
|
13
13
|
groupLabel: Oe,
|
|
14
|
-
rowLabel:
|
|
14
|
+
rowLabel: Ie,
|
|
15
15
|
rowValue: Te,
|
|
16
|
-
groupMembers:
|
|
17
|
-
memberRow:
|
|
16
|
+
groupMembers: Me,
|
|
17
|
+
memberRow: Ve,
|
|
18
18
|
memberLabel: Se,
|
|
19
19
|
memberValue: De,
|
|
20
20
|
abnormalValue: Ee,
|
|
21
21
|
commentSection: we,
|
|
22
|
-
commentText:
|
|
23
|
-
nestedGroup:
|
|
22
|
+
commentText: xe,
|
|
23
|
+
nestedGroup: Be,
|
|
24
24
|
nestedGroupLabel: Ge,
|
|
25
25
|
nestedGroupMembers: Ue
|
|
26
|
-
},
|
|
26
|
+
}, K = (e) => {
|
|
27
27
|
const r = _e(e);
|
|
28
28
|
return r === "Image" ? /* @__PURE__ */ s(
|
|
29
29
|
$e,
|
|
@@ -33,7 +33,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ae =
|
|
|
33
33
|
id: `${e}-img`
|
|
34
34
|
}
|
|
35
35
|
) : r === "Video" ? /* @__PURE__ */ s(ge, { id: `${e}-video`, videoSrc: e }) : e;
|
|
36
|
-
},
|
|
36
|
+
}, k = (e) => {
|
|
37
37
|
const r = e.observationValue?.unit, n = e.observationValue?.referenceRange?.low?.value, a = e.observationValue?.referenceRange?.high?.value, d = n != null, c = a != null, m = d && c ? ` (${n} - ${a})` : d ? ` (>${n})` : c ? ` (<${a})` : "", t = e.observationValue?.isAbnormal === !0;
|
|
38
38
|
return { units: r, rangeString: m, isAbnormal: t };
|
|
39
39
|
}, j = ({
|
|
@@ -65,23 +65,23 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ae =
|
|
|
65
65
|
{
|
|
66
66
|
className: o.nestedGroupMembers,
|
|
67
67
|
"data-testid": `${t}obs-nested-group-members-${m}-${n}`,
|
|
68
|
-
children: e.members?.map((
|
|
68
|
+
children: e.members?.map((y, N) => /* @__PURE__ */ s(
|
|
69
69
|
j,
|
|
70
70
|
{
|
|
71
|
-
member:
|
|
71
|
+
member: y,
|
|
72
72
|
depth: r + 1,
|
|
73
|
-
memberIndex:
|
|
73
|
+
memberIndex: N,
|
|
74
74
|
formName: a
|
|
75
75
|
},
|
|
76
|
-
`${
|
|
76
|
+
`${y.id}`
|
|
77
77
|
))
|
|
78
78
|
}
|
|
79
79
|
)
|
|
80
80
|
]
|
|
81
81
|
}
|
|
82
82
|
);
|
|
83
|
-
const { units: b, rangeString: g, isAbnormal: f } =
|
|
84
|
-
return /* @__PURE__ */ p(
|
|
83
|
+
const { units: b, rangeString: g, isAbnormal: f } = k(e), _ = e.observationValue?.value?.toString(), $ = _ ? K(_) : null;
|
|
84
|
+
return /* @__PURE__ */ p(P, { children: [
|
|
85
85
|
/* @__PURE__ */ p(
|
|
86
86
|
"div",
|
|
87
87
|
{
|
|
@@ -139,7 +139,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ae =
|
|
|
139
139
|
formName: n = "",
|
|
140
140
|
comment: a
|
|
141
141
|
}) => {
|
|
142
|
-
const d = e.members && e.members.length > 0, { units: c, rangeString: m, isAbnormal: t } =
|
|
142
|
+
const d = e.members && e.members.length > 0, { units: c, rangeString: m, isAbnormal: t } = k(e), b = n ? `${n}-` : "", g = e.observationValue?.value?.toString(), f = g ? K(g) : null;
|
|
143
143
|
return /* @__PURE__ */ p(
|
|
144
144
|
"div",
|
|
145
145
|
{
|
|
@@ -216,38 +216,38 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ae =
|
|
|
216
216
|
);
|
|
217
217
|
}, He = (e) => e ? e.extension?.find(
|
|
218
218
|
(r) => r.url === ve
|
|
219
|
-
)?.valueString : void 0,
|
|
219
|
+
)?.valueString : void 0, Pe = (e) => {
|
|
220
220
|
if (e)
|
|
221
221
|
return e.note?.[0]?.text;
|
|
222
|
-
},
|
|
223
|
-
const n =
|
|
222
|
+
}, Ke = (e, r) => e.entry?.find((n) => n.resource?.id === r)?.resource, I = (e, r) => {
|
|
223
|
+
const n = Ke(e, r);
|
|
224
224
|
return n ? {
|
|
225
225
|
formFieldPath: He(n),
|
|
226
|
-
comment:
|
|
226
|
+
comment: Pe(n)
|
|
227
227
|
} : {};
|
|
228
|
-
},
|
|
228
|
+
}, ke = (e, r) => {
|
|
229
229
|
if (!e?.entry || !r)
|
|
230
230
|
return [];
|
|
231
231
|
const n = pe(e);
|
|
232
232
|
return [
|
|
233
233
|
...n.observations.map((a) => {
|
|
234
|
-
const { formFieldPath: d, comment: c } =
|
|
234
|
+
const { formFieldPath: d, comment: c } = I(
|
|
235
235
|
e,
|
|
236
236
|
a.id
|
|
237
237
|
);
|
|
238
238
|
return { obs: a, formFieldPath: d, comment: c };
|
|
239
239
|
}),
|
|
240
240
|
...n.groupedObservations.flatMap((a) => {
|
|
241
|
-
const { formFieldPath: d } =
|
|
241
|
+
const { formFieldPath: d } = I(e, a.id);
|
|
242
242
|
return (a.members ?? []).map((c) => {
|
|
243
|
-
const { comment: m } =
|
|
243
|
+
const { comment: m } = I(e, c.id);
|
|
244
244
|
return { obs: c, formFieldPath: d, comment: m };
|
|
245
245
|
});
|
|
246
246
|
})
|
|
247
247
|
].filter(
|
|
248
248
|
({ formFieldPath: a }) => !a || a.includes(r)
|
|
249
249
|
);
|
|
250
|
-
},
|
|
250
|
+
}, ze = ({
|
|
251
251
|
episodeOfCareUuids: e,
|
|
252
252
|
encounterUuids: r,
|
|
253
253
|
config: n
|
|
@@ -257,8 +257,8 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ae =
|
|
|
257
257
|
r
|
|
258
258
|
), _ = he(), {
|
|
259
259
|
data: $ = [],
|
|
260
|
-
isLoading:
|
|
261
|
-
isError:
|
|
260
|
+
isLoading: y,
|
|
261
|
+
isError: N,
|
|
262
262
|
error: Q,
|
|
263
263
|
refetch: Y
|
|
264
264
|
} = A({
|
|
@@ -267,22 +267,22 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ae =
|
|
|
267
267
|
enabled: !!d && !f
|
|
268
268
|
}), T = h(() => !r || r.length === 0 ? $ : $.filter(
|
|
269
269
|
(i) => r.includes(i.encounterUuid)
|
|
270
|
-
), [$, r]), { data:
|
|
270
|
+
), [$, r]), { data: M = [] } = A({
|
|
271
271
|
queryKey: ["observationForms"],
|
|
272
272
|
queryFn: () => oe()
|
|
273
|
-
}),
|
|
274
|
-
(i) =>
|
|
275
|
-
[
|
|
273
|
+
}), V = R(
|
|
274
|
+
(i) => M.find((u) => u.name === i)?.uuid,
|
|
275
|
+
[M]
|
|
276
276
|
), L = h(() => {
|
|
277
277
|
if (t)
|
|
278
|
-
return
|
|
279
|
-
}, [t,
|
|
278
|
+
return V(t.formName);
|
|
279
|
+
}, [t, V]), { isLoading: Z, error: S } = A({
|
|
280
280
|
queryKey: ["formMetadata", L],
|
|
281
281
|
queryFn: () => ne(L),
|
|
282
282
|
enabled: !!L && c
|
|
283
283
|
}), {
|
|
284
284
|
data: C,
|
|
285
|
-
isLoading:
|
|
285
|
+
isLoading: z,
|
|
286
286
|
error: D
|
|
287
287
|
} = A({
|
|
288
288
|
queryKey: ["formsEncounterFHIR", t?.encounterUuid],
|
|
@@ -295,7 +295,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ae =
|
|
|
295
295
|
},
|
|
296
296
|
[d]
|
|
297
297
|
);
|
|
298
|
-
const E = h(() => !C || !t?.formName ? [] :
|
|
298
|
+
const E = h(() => !C || !t?.formName ? [] : ke(
|
|
299
299
|
C,
|
|
300
300
|
t.formName
|
|
301
301
|
), [C, t?.formName]), w = h(
|
|
@@ -304,13 +304,13 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ae =
|
|
|
304
304
|
{ key: "recordedBy", header: a("FORM_RECORDED_BY") }
|
|
305
305
|
],
|
|
306
306
|
[a]
|
|
307
|
-
),
|
|
307
|
+
), W = h(
|
|
308
308
|
() => [
|
|
309
309
|
{ key: "recordedOn", sortable: !0 },
|
|
310
310
|
{ key: "recordedBy", sortable: !0 }
|
|
311
311
|
],
|
|
312
312
|
[]
|
|
313
|
-
),
|
|
313
|
+
), x = h(() => {
|
|
314
314
|
const i = T.reduce(
|
|
315
315
|
(u, l) => {
|
|
316
316
|
const v = l.formName;
|
|
@@ -335,38 +335,38 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ae =
|
|
|
335
335
|
)
|
|
336
336
|
})
|
|
337
337
|
).sort((u, l) => u.formName.localeCompare(l.formName));
|
|
338
|
-
}, [T, a]),
|
|
338
|
+
}, [T, a]), B = R((i) => {
|
|
339
339
|
b(i), m(!0);
|
|
340
|
-
}, []),
|
|
340
|
+
}, []), X = R(() => {
|
|
341
341
|
m(!1), b(null);
|
|
342
342
|
}, []), G = R(
|
|
343
343
|
(i, u) => {
|
|
344
344
|
switch (u) {
|
|
345
345
|
case "recordedOn":
|
|
346
|
-
return /* @__PURE__ */ s(ie, { onClick: () =>
|
|
346
|
+
return /* @__PURE__ */ s(ie, { onClick: () => B(i), children: i.recordedOn });
|
|
347
347
|
case "recordedBy":
|
|
348
348
|
return i.recordedBy;
|
|
349
349
|
default:
|
|
350
350
|
return null;
|
|
351
351
|
}
|
|
352
352
|
},
|
|
353
|
-
[
|
|
353
|
+
[B]
|
|
354
354
|
);
|
|
355
|
-
return /* @__PURE__ */ p(
|
|
356
|
-
/* @__PURE__ */ s("div", { "data-testid": "forms-table", children:
|
|
355
|
+
return /* @__PURE__ */ p(P, { children: [
|
|
356
|
+
/* @__PURE__ */ s("div", { "data-testid": "forms-table", children: y || N || x.length === 0 || f ? /* @__PURE__ */ s(
|
|
357
357
|
U,
|
|
358
358
|
{
|
|
359
359
|
headers: w,
|
|
360
360
|
ariaLabel: a("FORMS_HEADING"),
|
|
361
361
|
rows: [],
|
|
362
|
-
loading:
|
|
363
|
-
errorStateMessage:
|
|
362
|
+
loading: y,
|
|
363
|
+
errorStateMessage: N ? Q?.message : void 0,
|
|
364
364
|
emptyStateMessage: a("FORMS_UNAVAILABLE"),
|
|
365
365
|
renderCell: G,
|
|
366
366
|
className: o.formsTableBody,
|
|
367
367
|
dataTestId: "forms-table"
|
|
368
368
|
}
|
|
369
|
-
) : /* @__PURE__ */ s(le, { align: "start", children:
|
|
369
|
+
) : /* @__PURE__ */ s(le, { align: "start", children: x.map((i, u) => {
|
|
370
370
|
const { formName: l, records: v } = i;
|
|
371
371
|
return /* @__PURE__ */ s(
|
|
372
372
|
ce,
|
|
@@ -383,7 +383,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ae =
|
|
|
383
383
|
rows: v,
|
|
384
384
|
loading: !1,
|
|
385
385
|
errorStateMessage: "",
|
|
386
|
-
sortable:
|
|
386
|
+
sortable: W,
|
|
387
387
|
emptyStateMessage: a("FORMS_UNAVAILABLE"),
|
|
388
388
|
renderCell: G,
|
|
389
389
|
className: o.formsTableBody,
|
|
@@ -398,14 +398,15 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ae =
|
|
|
398
398
|
ue,
|
|
399
399
|
{
|
|
400
400
|
id: "modalIdForActionAreaLayout",
|
|
401
|
+
portalId: "main-display-area",
|
|
401
402
|
open: c,
|
|
402
|
-
onRequestClose:
|
|
403
|
+
onRequestClose: X,
|
|
403
404
|
modalHeading: t.formName,
|
|
404
405
|
modalLabel: `${t.recordedOn} | ${t.recordedBy}`,
|
|
405
406
|
passiveModal: !0,
|
|
406
407
|
size: "md",
|
|
407
408
|
testId: "form-details-modal",
|
|
408
|
-
children: /* @__PURE__ */ s("div", { className: o.formContent, children:
|
|
409
|
+
children: /* @__PURE__ */ s("div", { className: o.formContent, children: Z || z ? /* @__PURE__ */ s(be, { width: "100%", lineCount: 3 }) : S ? /* @__PURE__ */ s("div", { children: q(S).message ?? a("ERROR_FETCHING_FORM_METADATA") }) : D ? /* @__PURE__ */ s("div", { children: q(D).message ?? a("ERROR_FETCHING_FORM_DATA") }) : E.length > 0 ? /* @__PURE__ */ s("div", { className: o.formDetailsContainer, children: E.map(({ obs: i, comment: u }, l) => /* @__PURE__ */ s(
|
|
409
410
|
qe,
|
|
410
411
|
{
|
|
411
412
|
observation: i,
|
|
@@ -420,5 +421,5 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ae =
|
|
|
420
421
|
] });
|
|
421
422
|
};
|
|
422
423
|
export {
|
|
423
|
-
|
|
424
|
+
ze as default
|
|
424
425
|
};
|
|
@@ -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 { l as d, m as f, n as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-DY6hluiJ.js";
|
|
2
|
+
import { l as d, m as f, n as e } from "./index-BWUKMECq.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 { l as v, m as C, n 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-DY6hluiJ.js";
|
|
2
|
+
import { l as v, m as C, n as e } from "./index-BWUKMECq.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as I, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { f as
|
|
2
|
+
import { f as q, o as C, u as N, B as H, j as Q, H as K, P as j, Q as w, i as x, k as G, A as M, J as P, V as S, X, d as J, R as z, e as Y, g as Z } from "./index-BWUKMECq.js";
|
|
3
3
|
import { useQueries as W, useQuery as ee } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as te, useEffect as T, useMemo as R } from "react";
|
|
5
5
|
const A = (t, d, i, l, s) => {
|
|
6
|
-
const a =
|
|
6
|
+
const a = X(t, d), r = a.value, o = J(r);
|
|
7
7
|
let n = r;
|
|
8
8
|
o === "Image" && (n = /* @__PURE__ */ c(Y, { imageSrc: r, alt: r, id: `${r}-img` })), o === "Video" && (n = /* @__PURE__ */ c(Z, { id: `${r}-video`, videoSrc: r }));
|
|
9
9
|
const b = s("OBSERVATIONS_RECORDED_BY", {
|
|
10
10
|
provider: a.provider
|
|
11
|
-
}), p = t.display,
|
|
11
|
+
}), p = t.display, v = t.observationValue?.isAbnormal ? "abnormal-obs" : "obs", u = l ? `${l}-${v}-${p}-${i}-${d}` : `${v}-${p}-${i}-${d}`;
|
|
12
12
|
return /* @__PURE__ */ c(
|
|
13
13
|
z,
|
|
14
14
|
{
|
|
@@ -37,7 +37,7 @@ const A = (t, d, i, l, s) => {
|
|
|
37
37
|
title: d = ""
|
|
38
38
|
}) => {
|
|
39
39
|
const { t: i } = N(), l = (s, a, r) => {
|
|
40
|
-
const o =
|
|
40
|
+
const o = P(s.encounterDetails, i);
|
|
41
41
|
return /* @__PURE__ */ I(
|
|
42
42
|
S,
|
|
43
43
|
{
|
|
@@ -78,34 +78,34 @@ const A = (t, d, i, l, s) => {
|
|
|
78
78
|
observations: re,
|
|
79
79
|
title: oe
|
|
80
80
|
}, ie = (t) => ["conceptUuid", t], ne = (t, d) => ["observations", t, ...d], be = ({ config: t }) => {
|
|
81
|
-
const d = t, { conceptNames: i = [], conceptUuid: l = [] } = d, s = te(/* @__PURE__ */ new Set()), a =
|
|
81
|
+
const d = t, { conceptNames: i = [], conceptUuid: l = [] } = d, s = te(/* @__PURE__ */ new Set()), a = q(), { addNotification: r } = C(), { t: o } = N(), n = W({
|
|
82
82
|
queries: i.map((e) => ({
|
|
83
83
|
queryKey: ie(e),
|
|
84
|
-
queryFn: () =>
|
|
84
|
+
queryFn: () => H(e),
|
|
85
85
|
enabled: !!e
|
|
86
86
|
}))
|
|
87
87
|
});
|
|
88
88
|
T(() => {
|
|
89
89
|
n.forEach((e, m) => {
|
|
90
90
|
if (e.isError && !s.current.has(m)) {
|
|
91
|
-
const
|
|
91
|
+
const k = i[m];
|
|
92
92
|
r({
|
|
93
93
|
title: o("ERROR_DEFAULT_TITLE"),
|
|
94
|
-
message: o("ERROR_FETCHING_CONCEPT", { conceptName:
|
|
94
|
+
message: o("ERROR_FETCHING_CONCEPT", { conceptName: k }),
|
|
95
95
|
type: "error"
|
|
96
96
|
}), s.current.add(m);
|
|
97
97
|
} else e.isError || s.current.delete(m);
|
|
98
98
|
});
|
|
99
99
|
}, [n, i]);
|
|
100
|
-
const b = R(() => n.map((e) => e.data?.uuid).filter((e) => !!e), [n]), p = R(() => [.../* @__PURE__ */ new Set([...b, ...l])], [b, l]),
|
|
100
|
+
const b = R(() => n.map((e) => e.data?.uuid).filter((e) => !!e), [n]), p = R(() => [.../* @__PURE__ */ new Set([...b, ...l])], [b, l]), v = R(() => i.length === 0 ? !0 : n.every((e) => !e.isLoading), [n, i.length]), {
|
|
101
101
|
data: u,
|
|
102
|
-
isLoading:
|
|
102
|
+
isLoading: B,
|
|
103
103
|
isError: f,
|
|
104
104
|
refetch: g
|
|
105
105
|
} = ee({
|
|
106
106
|
queryKey: ne(a, p),
|
|
107
|
-
queryFn: () =>
|
|
108
|
-
enabled: !!a && p.length > 0 &&
|
|
107
|
+
queryFn: () => Q(a, p),
|
|
108
|
+
enabled: !!a && p.length > 0 && v
|
|
109
109
|
});
|
|
110
110
|
K(
|
|
111
111
|
(e) => {
|
|
@@ -123,32 +123,32 @@ const A = (t, d, i, l, s) => {
|
|
|
123
123
|
}, [f]);
|
|
124
124
|
const h = R(() => {
|
|
125
125
|
if (!u) return [];
|
|
126
|
-
const e =
|
|
127
|
-
return
|
|
126
|
+
const e = j(u), m = w(e);
|
|
127
|
+
return x(m);
|
|
128
128
|
}, [u]), D = [
|
|
129
129
|
{ key: "name", header: "name" },
|
|
130
130
|
{ key: "value", header: "value" },
|
|
131
131
|
{ key: "form", header: "form" }
|
|
132
|
-
], O =
|
|
132
|
+
], O = B || !v, _ = f && v, F = (!u || u.entry?.length === 0 || p.length === 0) && v, L = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null, U = F ? o("NO_OBSERVATIONS_FOUND") : void 0, V = h.length > 0 && !O && !_, E = d.titleTranslationKey, y = E ? o(E) : "";
|
|
133
133
|
return /* @__PURE__ */ I(
|
|
134
134
|
"div",
|
|
135
135
|
{
|
|
136
136
|
id: "observations",
|
|
137
|
-
"data-testid": E ? `observations-${
|
|
137
|
+
"data-testid": E ? `observations-${y}` : "observations",
|
|
138
138
|
"aria-label": "observations-aria-label",
|
|
139
139
|
className: $.observations,
|
|
140
140
|
children: [
|
|
141
141
|
/* @__PURE__ */ c(
|
|
142
|
-
|
|
142
|
+
G,
|
|
143
143
|
{
|
|
144
144
|
id: "observations-title",
|
|
145
|
-
testId: E ? `observations-title-${
|
|
146
|
-
title:
|
|
145
|
+
testId: E ? `observations-title-${y}` : "observations-title",
|
|
146
|
+
title: y,
|
|
147
147
|
className: $.title,
|
|
148
|
-
children: /* @__PURE__ */ c("p", { children:
|
|
148
|
+
children: /* @__PURE__ */ c("p", { children: y })
|
|
149
149
|
}
|
|
150
150
|
),
|
|
151
|
-
V ? /* @__PURE__ */ c(se, { groupedData: h, title:
|
|
151
|
+
V ? /* @__PURE__ */ c(se, { groupedData: h, title: y }) : /* @__PURE__ */ c(
|
|
152
152
|
M,
|
|
153
153
|
{
|
|
154
154
|
headers: D,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as we, s as z, t as xt, v as B, m as q, n as m, w as Ro, x as me, S as R, z as _, C as k, I as N, L as A, M as bs, N as ir, O as $e, _ as U, $ as Hn, a0 as Vn, a1 as dt, a2 as D, a3 as xs, a4 as cn, a5 as Be, a6 as ws, a7 as qt, a8 as zt, a9 as $s, aa as Cs, ab as $n, ac as Ss, ad as Nr, ae as Bt, af as zo, ag as ks, ah as Es, ai as j, aj as Ur, ak as Ms, al as Ds, am as sr, an as As, ao as Ts, ap as zn, aq as Fs, ar as Is, as as Z, at as Ps, au as Ls } from "./index-
|
|
1
|
+
import { r as we, s as z, t as xt, v as B, m as q, n as m, w as Ro, x as me, S as R, z as _, C as k, I as N, L as A, M as bs, N as ir, O as $e, _ as U, $ as Hn, a0 as Vn, a1 as dt, a2 as D, a3 as xs, a4 as cn, a5 as Be, a6 as ws, a7 as qt, a8 as zt, a9 as $s, aa as Cs, ab as $n, ac as Ss, ad as Nr, ae as Bt, af as zo, ag as ks, ah as Es, ai as j, aj as Ur, ak as Ms, al as Ds, am as sr, an as As, ao as Ts, ap as zn, aq as Fs, ar as Is, as as Z, at as Ps, au as Ls } from "./index-BWUKMECq.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|