@bahmni/appointments-app 0.0.1-dev.195 → 0.0.1-dev.198
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-CeadVs9A-DSrtdrxm.js → DocumentsTable-7_5Znf7I-Cuo_TJie.js} +1 -1
- package/dist/{FormsTable-BOY-EyPE-B8DOoGyT.js → FormsTable-BR7769_Y-DYhjmgFy.js} +48 -48
- package/dist/{LNWAZHJI-BCxVKFdq.js → LNWAZHJI-CY3CaaSs.js} +2 -2
- package/dist/{MWZ6AO7Z-CtdFB9mI.js → MWZ6AO7Z-DsLQiVF6.js} +2 -2
- package/dist/{Observations-BrQeD7aG-Zazkt_Ma.js → Observations-3hCgfnVw-Bz_n4eaQ.js} +11 -11
- package/dist/{YPM2AS64-BuPQnfdo.js → YPM2AS64-BVWfpCoW.js} +138 -138
- package/dist/{index-CxMx6dqh.js → index-DmuuX7Oa.js} +23968 -23926
- package/dist/index-GeBdsEdY.js +182 -0
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +10 -0
- package/dist/locales/locale_es.json +10 -0
- package/dist/pages/admin/allServices/components/DeleteServiceModal.d.ts +10 -0
- package/dist/pages/admin/allServices/components/DeleteServiceModal.d.ts.map +1 -0
- package/dist/pages/admin/allServices/constants.d.ts +2 -0
- package/dist/pages/admin/allServices/constants.d.ts.map +1 -1
- package/dist/pages/admin/allServices/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index-DE_bLhMX.js +0 -94
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o, jsxs as l, Fragment as k } from "react/jsx-runtime";
|
|
2
|
-
import { l as V, u as x, Q as F, a as H, E as q, C as Q, x as P, T as G, b as W } from "./index-
|
|
2
|
+
import { l as V, u as x, Q as F, a as H, E as q, C as Q, x as P, T as G, b as W } from "./index-DmuuX7Oa.js";
|
|
3
3
|
import { useState as I, useCallback as T, useEffect as L, useMemo as E } from "react";
|
|
4
4
|
const Y = "_documentsTableBody_1voj8_1", z = "_viewAttachmentsLink_1voj8_11", J = "_documentViewerContainer_1voj8_15", K = "_attachmentItem_1voj8_23", X = "_attachmentCounter_1voj8_27", Z = "_attachmentError_1voj8_36", ee = "_documentIframe_1voj8_44", te = "_documentImage_1voj8_50", d = {
|
|
5
5
|
documentsTableBody: Y,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as o, jsxs as p, Fragment as k } from "react/jsx-runtime";
|
|
2
|
-
import { u as
|
|
2
|
+
import { u as O, l as ae, o as te, c as oe, a as A, f as ne, C as se, E as de, x as U, I as me, Z as ie, T as le, d as ce, S as H, W as ue, q as K, e as F, g as be, N as pe, A as fe, z as _e, h as $e, X as ge, Y as he, J as ve, G as ye } from "./index-DmuuX7Oa.js";
|
|
3
3
|
import { useState as P, useMemo as v, useCallback as C } from "react";
|
|
4
|
-
const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18",
|
|
4
|
+
const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18", Fe = "_formDetailsContainer_1pd36_25", Le = "_observation_1pd36_30", Re = "_groupContainer_1pd36_39", Ie = "_rowContainer_1pd36_43", Me = "_groupLabel_1pd36_48", Oe = "_rowLabel_1pd36_58", Te = "_rowValue_1pd36_67", Se = "_groupMembers_1pd36_75", xe = "_memberRow_1pd36_81", De = "_memberLabel_1pd36_86", Ee = "_memberValue_1pd36_94", Ve = "_abnormalValue_1pd36_102", we = "_commentSection_1pd36_110", Be = "_commentText_1pd36_116", Ge = "_nestedGroup_1pd36_125", qe = "_nestedGroupLabel_1pd36_132", Ue = "_nestedGroupMembers_1pd36_141", n = {
|
|
5
5
|
formsTableBody: Ne,
|
|
6
6
|
customAccordianItem: Ae,
|
|
7
7
|
formContent: Ce,
|
|
8
|
-
formDetailsContainer:
|
|
9
|
-
observation:
|
|
10
|
-
groupContainer:
|
|
8
|
+
formDetailsContainer: Fe,
|
|
9
|
+
observation: Le,
|
|
10
|
+
groupContainer: Re,
|
|
11
11
|
rowContainer: Ie,
|
|
12
|
-
groupLabel:
|
|
13
|
-
rowLabel:
|
|
14
|
-
rowValue:
|
|
12
|
+
groupLabel: Me,
|
|
13
|
+
rowLabel: Oe,
|
|
14
|
+
rowValue: Te,
|
|
15
15
|
groupMembers: Se,
|
|
16
16
|
memberRow: xe,
|
|
17
17
|
memberLabel: De,
|
|
@@ -22,7 +22,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
22
22
|
nestedGroup: Ge,
|
|
23
23
|
nestedGroupLabel: qe,
|
|
24
24
|
nestedGroupMembers: Ue
|
|
25
|
-
},
|
|
25
|
+
}, j = (e) => {
|
|
26
26
|
const r = be(e);
|
|
27
27
|
return r === "Image" ? /* @__PURE__ */ o(
|
|
28
28
|
pe,
|
|
@@ -32,20 +32,20 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
32
32
|
id: `${e}-img`
|
|
33
33
|
}
|
|
34
34
|
) : r === "Video" ? /* @__PURE__ */ o(fe, { id: `${e}-video`, videoSrc: e }) : r === "PDF" ? /* @__PURE__ */ o(_e, { id: `${e}-pdf`, src: e }) : e;
|
|
35
|
-
},
|
|
35
|
+
}, z = (e) => {
|
|
36
36
|
const r = e.observationValue?.referenceRange?.low?.value, s = e.observationValue?.referenceRange?.high?.value, a = r != null, l = s != null;
|
|
37
37
|
let d = "";
|
|
38
38
|
a && l ? d = ` (${r} - ${s})` : a ? d = ` (>${r})` : l && (d = ` (<${s})`);
|
|
39
39
|
const b = e.observationValue?.isAbnormal === !0;
|
|
40
40
|
return { rangeString: d, isAbnormal: b };
|
|
41
|
-
},
|
|
41
|
+
}, W = ({
|
|
42
42
|
member: e,
|
|
43
43
|
depth: r = 0,
|
|
44
44
|
memberIndex: s = 0,
|
|
45
45
|
formName: a = "",
|
|
46
46
|
comment: l
|
|
47
47
|
}) => {
|
|
48
|
-
const { t: d } =
|
|
48
|
+
const { t: d } = O(), b = e.members && e.members.length > 0, t = e.display, c = a ? `${a}-` : "";
|
|
49
49
|
if (b)
|
|
50
50
|
return /* @__PURE__ */ p(
|
|
51
51
|
"div",
|
|
@@ -68,7 +68,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
68
68
|
className: n.nestedGroupMembers,
|
|
69
69
|
"data-testid": `${c}obs-nested-group-members-${t}-${s}`,
|
|
70
70
|
children: e.members?.map((y, N) => /* @__PURE__ */ o(
|
|
71
|
-
|
|
71
|
+
W,
|
|
72
72
|
{
|
|
73
73
|
member: y,
|
|
74
74
|
depth: r + 1,
|
|
@@ -82,7 +82,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
82
82
|
]
|
|
83
83
|
}
|
|
84
84
|
);
|
|
85
|
-
const { rangeString: g, isAbnormal: f } =
|
|
85
|
+
const { rangeString: g, isAbnormal: f } = z(e), _ = K(e, d), $ = _ ? j(_) : null;
|
|
86
86
|
return /* @__PURE__ */ p(k, { children: [
|
|
87
87
|
/* @__PURE__ */ p(
|
|
88
88
|
"div",
|
|
@@ -94,7 +94,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
94
94
|
/* @__PURE__ */ p(
|
|
95
95
|
"p",
|
|
96
96
|
{
|
|
97
|
-
className:
|
|
97
|
+
className: F(
|
|
98
98
|
n.memberLabel,
|
|
99
99
|
f ? n.abnormalValue : ""
|
|
100
100
|
),
|
|
@@ -108,7 +108,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
108
108
|
/* @__PURE__ */ o(
|
|
109
109
|
"div",
|
|
110
110
|
{
|
|
111
|
-
className:
|
|
111
|
+
className: F(
|
|
112
112
|
n.memberValue,
|
|
113
113
|
f ? n.abnormalValue : ""
|
|
114
114
|
),
|
|
@@ -138,7 +138,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
138
138
|
formName: s = "",
|
|
139
139
|
comment: a
|
|
140
140
|
}) => {
|
|
141
|
-
const { t: l } =
|
|
141
|
+
const { t: l } = O(), d = e.members && e.members.length > 0, { rangeString: b, isAbnormal: t } = z(e), c = s ? `${s}-` : "", g = K(e, l), f = g ? j(g) : null;
|
|
142
142
|
return /* @__PURE__ */ p(
|
|
143
143
|
"div",
|
|
144
144
|
{
|
|
@@ -154,7 +154,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
154
154
|
/* @__PURE__ */ p(
|
|
155
155
|
"p",
|
|
156
156
|
{
|
|
157
|
-
className:
|
|
157
|
+
className: F(
|
|
158
158
|
d ? n.groupLabel : n.rowLabel,
|
|
159
159
|
!d && t ? n.abnormalValue : ""
|
|
160
160
|
),
|
|
@@ -171,7 +171,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
171
171
|
className: n.groupMembers,
|
|
172
172
|
"data-testid": `${c}observation-group-members-${e.display}-${r}`,
|
|
173
173
|
children: e.members?.map((_, $) => /* @__PURE__ */ o(
|
|
174
|
-
|
|
174
|
+
W,
|
|
175
175
|
{
|
|
176
176
|
member: _,
|
|
177
177
|
depth: 0,
|
|
@@ -184,7 +184,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
184
184
|
) : /* @__PURE__ */ o(
|
|
185
185
|
"div",
|
|
186
186
|
{
|
|
187
|
-
className:
|
|
187
|
+
className: F(
|
|
188
188
|
n.rowValue,
|
|
189
189
|
t ? n.abnormalValue : ""
|
|
190
190
|
),
|
|
@@ -215,53 +215,53 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
215
215
|
)?.valueString : void 0, ke = (e) => {
|
|
216
216
|
if (e)
|
|
217
217
|
return e.note?.[0]?.text;
|
|
218
|
-
},
|
|
219
|
-
const s =
|
|
218
|
+
}, Ke = (e, r) => e.entry?.find((s) => s.resource?.id === r)?.resource, M = (e, r) => {
|
|
219
|
+
const s = Ke(e, r);
|
|
220
220
|
return s ? {
|
|
221
221
|
formFieldPath: Pe(s),
|
|
222
222
|
comment: ke(s)
|
|
223
223
|
} : {};
|
|
224
|
-
},
|
|
224
|
+
}, je = (e, r) => {
|
|
225
225
|
if (!e?.entry || !r)
|
|
226
226
|
return [];
|
|
227
227
|
const s = ue(e);
|
|
228
228
|
return [
|
|
229
229
|
...s.observations.map((a) => {
|
|
230
|
-
const { formFieldPath: l, comment: d } =
|
|
230
|
+
const { formFieldPath: l, comment: d } = M(
|
|
231
231
|
e,
|
|
232
232
|
a.id
|
|
233
233
|
);
|
|
234
234
|
return { obs: a, formFieldPath: l, comment: d };
|
|
235
235
|
}),
|
|
236
236
|
...s.groupedObservations.flatMap((a) => {
|
|
237
|
-
const { formFieldPath: l } =
|
|
237
|
+
const { formFieldPath: l } = M(e, a.id);
|
|
238
238
|
return (a.members ?? []).map((d) => {
|
|
239
|
-
const { comment: b } =
|
|
239
|
+
const { comment: b } = M(e, d.id);
|
|
240
240
|
return { obs: d, formFieldPath: l, comment: b };
|
|
241
241
|
});
|
|
242
242
|
})
|
|
243
243
|
].filter(
|
|
244
244
|
({ formFieldPath: a }) => !a || a.includes(r)
|
|
245
245
|
);
|
|
246
|
-
},
|
|
246
|
+
}, Xe = ({
|
|
247
247
|
episodeOfCareUuids: e,
|
|
248
248
|
encounterUuids: r,
|
|
249
249
|
config: s
|
|
250
250
|
}) => {
|
|
251
|
-
const { t: a } =
|
|
251
|
+
const { t: a } = O(), l = ae(), [d, b] = P(!1), [t, c] = P(null), g = s?.numberOfVisits, f = te(
|
|
252
252
|
e,
|
|
253
253
|
r
|
|
254
254
|
), _ = oe(), {
|
|
255
255
|
data: $ = [],
|
|
256
256
|
isLoading: y,
|
|
257
257
|
isError: N,
|
|
258
|
-
error:
|
|
259
|
-
refetch:
|
|
258
|
+
error: Q,
|
|
259
|
+
refetch: X
|
|
260
260
|
} = A({
|
|
261
261
|
queryKey: ["forms", l, e],
|
|
262
262
|
queryFn: () => ge(l, void 0, g),
|
|
263
263
|
enabled: !!l && !f
|
|
264
|
-
}),
|
|
264
|
+
}), T = v(() => !r || r.length === 0 ? $ : $.filter(
|
|
265
265
|
(m) => r.includes(m.encounterUuid)
|
|
266
266
|
), [$, r]), { data: S = [] } = A({
|
|
267
267
|
queryKey: ["observationForms"],
|
|
@@ -269,15 +269,15 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
269
269
|
}), x = C(
|
|
270
270
|
(m) => S.find((u) => u.name === m)?.uuid,
|
|
271
271
|
[S]
|
|
272
|
-
),
|
|
272
|
+
), L = v(() => {
|
|
273
273
|
if (t)
|
|
274
274
|
return x(t.formName);
|
|
275
|
-
}, [t, x]), { isLoading:
|
|
276
|
-
queryKey: ["formMetadata",
|
|
277
|
-
queryFn: () => ve(
|
|
278
|
-
enabled: !!
|
|
275
|
+
}, [t, x]), { isLoading: Y, error: D } = A({
|
|
276
|
+
queryKey: ["formMetadata", L],
|
|
277
|
+
queryFn: () => ve(L),
|
|
278
|
+
enabled: !!L && d
|
|
279
279
|
}), {
|
|
280
|
-
data:
|
|
280
|
+
data: R,
|
|
281
281
|
isLoading: J,
|
|
282
282
|
error: E
|
|
283
283
|
} = A({
|
|
@@ -287,27 +287,27 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
287
287
|
});
|
|
288
288
|
ne(
|
|
289
289
|
(m) => {
|
|
290
|
-
m.patientUUID === l && m.updatedConcepts.size > 0 && (
|
|
290
|
+
m.patientUUID === l && m.updatedConcepts.size > 0 && (X(), _.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
291
291
|
},
|
|
292
292
|
[l]
|
|
293
293
|
);
|
|
294
|
-
const V = v(() => !
|
|
295
|
-
|
|
294
|
+
const V = v(() => !R || !t?.formName ? [] : je(
|
|
295
|
+
R,
|
|
296
296
|
t.formName
|
|
297
|
-
), [
|
|
297
|
+
), [R, t?.formName]), w = v(
|
|
298
298
|
() => [
|
|
299
299
|
{ key: "recordedOn", header: a("FORM_RECORDED_ON") },
|
|
300
300
|
{ key: "recordedBy", header: a("FORM_RECORDED_BY") }
|
|
301
301
|
],
|
|
302
302
|
[a]
|
|
303
|
-
),
|
|
303
|
+
), Z = v(
|
|
304
304
|
() => [
|
|
305
305
|
{ key: "recordedOn", sortable: !0 },
|
|
306
306
|
{ key: "recordedBy", sortable: !0 }
|
|
307
307
|
],
|
|
308
308
|
[]
|
|
309
309
|
), B = v(() => {
|
|
310
|
-
const m =
|
|
310
|
+
const m = T.reduce(
|
|
311
311
|
(u, i) => {
|
|
312
312
|
const h = i.formName;
|
|
313
313
|
u[h] ??= [];
|
|
@@ -331,7 +331,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
331
331
|
)
|
|
332
332
|
})
|
|
333
333
|
).sort((u, i) => u.formName.localeCompare(i.formName));
|
|
334
|
-
}, [
|
|
334
|
+
}, [T, a]), G = C((m) => {
|
|
335
335
|
c(m), b(!0);
|
|
336
336
|
}, []), ee = C(() => {
|
|
337
337
|
b(!1), c(null);
|
|
@@ -356,7 +356,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
356
356
|
ariaLabel: a("FORMS_HEADING"),
|
|
357
357
|
rows: [],
|
|
358
358
|
loading: y,
|
|
359
|
-
errorStateMessage: N ?
|
|
359
|
+
errorStateMessage: N ? Q?.message : void 0,
|
|
360
360
|
emptyStateMessage: a("FORMS_UNAVAILABLE"),
|
|
361
361
|
renderCell: q,
|
|
362
362
|
className: n.formsTableBody,
|
|
@@ -379,7 +379,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
379
379
|
rows: h,
|
|
380
380
|
loading: !1,
|
|
381
381
|
errorStateMessage: "",
|
|
382
|
-
sortable:
|
|
382
|
+
sortable: Z,
|
|
383
383
|
emptyStateMessage: a("FORMS_UNAVAILABLE"),
|
|
384
384
|
renderCell: q,
|
|
385
385
|
className: n.formsTableBody,
|
|
@@ -402,7 +402,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
402
402
|
passiveModal: !0,
|
|
403
403
|
size: "md",
|
|
404
404
|
testId: "form-details-modal",
|
|
405
|
-
children: /* @__PURE__ */ o("div", { className: n.formContent, children:
|
|
405
|
+
children: /* @__PURE__ */ o("div", { className: n.formContent, children: Y || J ? /* @__PURE__ */ o(ce, { width: "100%", lineCount: 3 }) : D ? /* @__PURE__ */ o("div", { children: H(D).message ?? a("ERROR_FETCHING_FORM_METADATA") }) : E ? /* @__PURE__ */ o("div", { children: H(E).message ?? a("ERROR_FETCHING_FORM_DATA") }) : V.length > 0 ? /* @__PURE__ */ o("div", { className: n.formDetailsContainer, children: V.map(({ obs: m, comment: u }, i) => /* @__PURE__ */ o(
|
|
406
406
|
He,
|
|
407
407
|
{
|
|
408
408
|
observation: m,
|
|
@@ -417,5 +417,5 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
417
417
|
] });
|
|
418
418
|
};
|
|
419
419
|
export {
|
|
420
|
-
|
|
420
|
+
Xe as default
|
|
421
421
|
};
|
|
@@ -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 {
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-BVWfpCoW.js";
|
|
2
|
+
import { V as d, $ as f, a0 as e } from "./index-DmuuX7Oa.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 {
|
|
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-BVWfpCoW.js";
|
|
2
|
+
import { V as v, $ as C, a0 as e } from "./index-DmuuX7Oa.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as T, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { l as B, Q as K, u as I, i as
|
|
2
|
+
import { l as B, Q as K, u as I, i as Q, U as V, a as x, f as w, W as j, j as z, k as G, m as H, x as M, r as P, n as S, p as W, g as Y, w as J, N as X, A as Z, z as ee, K as te } from "./index-DmuuX7Oa.js";
|
|
3
3
|
import { useRef as ae, useEffect as $, useMemo as f } from "react";
|
|
4
4
|
const A = (t, d, i, u, r) => {
|
|
5
5
|
const a = W(t, d, r), s = a.value, o = Y(s);
|
|
@@ -77,20 +77,20 @@ const A = (t, d, i, u, r) => {
|
|
|
77
77
|
observations: oe,
|
|
78
78
|
title: ne
|
|
79
79
|
}, ie = (t) => ["conceptUuid", t], de = (t, d) => ["observations", t, ...d], be = ({ config: t }) => {
|
|
80
|
-
const d = t, { conceptNames: i = [], conceptUuid: u = [] } = d, r = ae(/* @__PURE__ */ new Set()), a = B(), { addNotification: s } = K(), { t: o } = I(), n =
|
|
80
|
+
const d = t, { conceptNames: i = [], conceptUuid: u = [] } = d, r = ae(/* @__PURE__ */ new Set()), a = B(), { addNotification: s } = K(), { t: o } = I(), n = Q({
|
|
81
81
|
queries: i.map((e) => ({
|
|
82
82
|
queryKey: ie(e),
|
|
83
|
-
queryFn: () =>
|
|
83
|
+
queryFn: () => V(e),
|
|
84
84
|
enabled: !!e
|
|
85
85
|
}))
|
|
86
86
|
});
|
|
87
87
|
$(() => {
|
|
88
88
|
n.forEach((e, m) => {
|
|
89
89
|
if (e.isError && !r.current.has(m)) {
|
|
90
|
-
const
|
|
90
|
+
const k = i[m];
|
|
91
91
|
s({
|
|
92
92
|
title: o("ERROR_DEFAULT_TITLE"),
|
|
93
|
-
message: o("ERROR_FETCHING_CONCEPT", { conceptName:
|
|
93
|
+
message: o("ERROR_FETCHING_CONCEPT", { conceptName: k }),
|
|
94
94
|
type: "error"
|
|
95
95
|
}), r.current.add(m);
|
|
96
96
|
} else e.isError || r.current.delete(m);
|
|
@@ -98,10 +98,10 @@ const A = (t, d, i, u, r) => {
|
|
|
98
98
|
}, [n, i]);
|
|
99
99
|
const b = f(() => n.map((e) => e.data?.uuid).filter((e) => !!e), [n]), p = f(() => [.../* @__PURE__ */ new Set([...b, ...u])], [b, u]), v = f(() => i.length === 0 ? !0 : n.every((e) => !e.isLoading), [n, i.length]), {
|
|
100
100
|
data: c,
|
|
101
|
-
isLoading:
|
|
101
|
+
isLoading: D,
|
|
102
102
|
isError: g,
|
|
103
103
|
refetch: R
|
|
104
|
-
} =
|
|
104
|
+
} = x({
|
|
105
105
|
queryKey: de(a, p),
|
|
106
106
|
queryFn: () => te(a, p),
|
|
107
107
|
enabled: !!a && p.length > 0 && v
|
|
@@ -124,11 +124,11 @@ const A = (t, d, i, u, r) => {
|
|
|
124
124
|
if (!c) return [];
|
|
125
125
|
const e = j(c), m = z(e);
|
|
126
126
|
return G(m);
|
|
127
|
-
}, [c]),
|
|
127
|
+
}, [c]), F = [
|
|
128
128
|
{ key: "name", header: "name" },
|
|
129
129
|
{ key: "value", header: "value" },
|
|
130
130
|
{ key: "form", header: "form" }
|
|
131
|
-
], O =
|
|
131
|
+
], O = D || !v, _ = g && v, U = (!c || c.entry?.length === 0 || p.length === 0) && v, q = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null, L = U ? o("NO_OBSERVATIONS_FOUND") : void 0, C = h.length > 0 && !O && !_, E = d.titleTranslationKey, y = E ? o(E) : "";
|
|
132
132
|
return /* @__PURE__ */ T(
|
|
133
133
|
"div",
|
|
134
134
|
{
|
|
@@ -147,10 +147,10 @@ const A = (t, d, i, u, r) => {
|
|
|
147
147
|
children: /* @__PURE__ */ l("p", { children: y })
|
|
148
148
|
}
|
|
149
149
|
),
|
|
150
|
-
|
|
150
|
+
C ? /* @__PURE__ */ l(re, { groupedData: h, title: y }) : /* @__PURE__ */ l(
|
|
151
151
|
M,
|
|
152
152
|
{
|
|
153
|
-
headers:
|
|
153
|
+
headers: F,
|
|
154
154
|
rows: [],
|
|
155
155
|
ariaLabel: o("OBSERVATIONS"),
|
|
156
156
|
loading: O,
|