@bahmni/registration-app 0.0.1-dev.143 → 0.0.1-dev.145

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.
@@ -1,5 +1,5 @@
1
- import { jsx as t, jsxs as p, Fragment as J } from "react/jsx-runtime";
2
- import { u as z, V as Y, a as W, Q as Z, J as ee, X as re, G as ae, d as oe, g as te, $ as x, F as ne, q as se, b as me, x as de, y as G, B as ie, E as v } from "./index-C8JfSqHC.js";
1
+ import { jsx as t, jsxs as p, Fragment as Q } from "react/jsx-runtime";
2
+ import { u as X, V as Y, h as J, n as Z, t as ee, r as re, e as ae, d as oe, w as te, $ as x, q as ne, W as se, F as de, _ as me, y as G, P as ie, a as v } from "./index-Bz9hJQp5.js";
3
3
  import { useQuery as h } from "@tanstack/react-query";
4
4
  import { useState as U, useMemo as $, useCallback as y } from "react";
5
5
  const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue = "_formContent_1pd36_18", pe = "_formDetailsContainer_1pd36_25", be = "_observation_1pd36_30", _e = "_groupContainer_1pd36_39", fe = "_rowContainer_1pd36_43", $e = "_groupLabel_1pd36_48", Ne = "_rowLabel_1pd36_58", ge = "_rowValue_1pd36_67", he = "_groupMembers_1pd36_75", ye = "_memberRow_1pd36_81", ve = "_memberLabel_1pd36_86", Ae = "_memberValue_1pd36_94", Me = "_abnormalValue_1pd36_102", Te = "_commentSection_1pd36_110", Le = "_commentText_1pd36_116", Ce = "_nestedGroup_1pd36_125", De = "_nestedGroupLabel_1pd36_132", Oe = "_nestedGroupMembers_1pd36_141", o = {
@@ -24,36 +24,36 @@ const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue =
24
24
  nestedGroupLabel: De,
25
25
  nestedGroupMembers: Oe
26
26
  }, Re = "ABNORMAL", q = (e) => {
27
- const s = e.concept?.units, d = e.concept?.lowNormal, r = e.concept?.hiNormal, u = d != null, m = r != null, c = u && m ? ` (${d} - ${r})` : u ? ` (>${d})` : m ? ` (<${r})` : "", a = e.interpretation && e.interpretation.toUpperCase() === Re;
27
+ const s = e.concept?.units, m = e.concept?.lowNormal, r = e.concept?.hiNormal, u = m != null, d = r != null, c = u && d ? ` (${m} - ${r})` : u ? ` (>${m})` : d ? ` (<${r})` : "", a = e.interpretation && e.interpretation.toUpperCase() === Re;
28
28
  return { units: s, rangeString: c, isAbnormal: a };
29
29
  }, k = ({
30
30
  member: e,
31
31
  depth: s = 0,
32
- memberIndex: d = 0,
32
+ memberIndex: m = 0,
33
33
  formName: r = ""
34
34
  }) => {
35
- const u = e.groupMembers && e.groupMembers.length > 0, m = e.conceptNameToDisplay ?? e.concept?.shortName ?? e.concept?.name, c = r ? `${r}-` : "";
35
+ const u = e.groupMembers && e.groupMembers.length > 0, d = e.conceptNameToDisplay ?? e.concept?.shortName ?? e.concept?.name, c = r ? `${r}-` : "";
36
36
  if (u)
37
37
  return /* @__PURE__ */ p(
38
38
  "div",
39
39
  {
40
40
  className: o.nestedGroup,
41
- "data-testid": `${c}obs-nested-group-${m}-${d}`,
41
+ "data-testid": `${c}obs-nested-group-${d}-${m}`,
42
42
  children: [
43
43
  /* @__PURE__ */ t(
44
44
  "div",
45
45
  {
46
46
  className: o.nestedGroupLabel,
47
- "data-testid": `${c}obs-nested-group-label-${m}-${d}`,
47
+ "data-testid": `${c}obs-nested-group-label-${d}-${m}`,
48
48
  style: { paddingLeft: `${s * 16}px` },
49
- children: m
49
+ children: d
50
50
  }
51
51
  ),
52
52
  /* @__PURE__ */ t(
53
53
  "div",
54
54
  {
55
55
  className: o.nestedGroupMembers,
56
- "data-testid": `${c}obs-nested-group-members-${m}-${d}`,
56
+ "data-testid": `${c}obs-nested-group-members-${d}-${m}`,
57
57
  children: e.groupMembers?.map((N, g) => /* @__PURE__ */ t(
58
58
  k,
59
59
  {
@@ -74,7 +74,7 @@ const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue =
74
74
  "div",
75
75
  {
76
76
  className: o.memberRow,
77
- "data-testid": `${c}obs-member-row-${m}-${d}`,
77
+ "data-testid": `${c}obs-member-row-${d}-${m}`,
78
78
  style: { paddingLeft: `${s * 16}px` },
79
79
  children: [
80
80
  /* @__PURE__ */ p(
@@ -84,9 +84,9 @@ const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue =
84
84
  o.memberLabel,
85
85
  _ ? o.abnormalValue : ""
86
86
  ),
87
- "data-testid": `${c}obs-member-label-${m}-${d}`,
87
+ "data-testid": `${c}obs-member-label-${d}-${m}`,
88
88
  children: [
89
- m,
89
+ d,
90
90
  b
91
91
  ]
92
92
  }
@@ -98,7 +98,7 @@ const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue =
98
98
  o.memberValue,
99
99
  _ ? o.abnormalValue : ""
100
100
  ),
101
- "data-testid": `${c}obs-member-value-${m}-${d}`,
101
+ "data-testid": `${c}obs-member-value-${d}-${m}`,
102
102
  children: [
103
103
  e.valueAsString,
104
104
  a && ` ${a}`
@@ -111,9 +111,9 @@ const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue =
111
111
  }, Fe = ({
112
112
  observation: e,
113
113
  index: s,
114
- formName: d = ""
114
+ formName: m = ""
115
115
  }) => {
116
- const r = e.groupMembers && e.groupMembers.length > 0, { units: u, rangeString: m, isAbnormal: c } = q(e), a = d ? `${d}-` : "";
116
+ const r = e.groupMembers && e.groupMembers.length > 0, { units: u, rangeString: d, isAbnormal: c } = q(e), a = m ? `${m}-` : "";
117
117
  return /* @__PURE__ */ p(
118
118
  "div",
119
119
  {
@@ -136,7 +136,7 @@ const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue =
136
136
  "data-testid": `${a}observation-label-${e.conceptNameToDisplay}-${s}`,
137
137
  children: [
138
138
  e.conceptNameToDisplay,
139
- !r && m && /* @__PURE__ */ t("span", { className: o.rangeInfo, children: m })
139
+ !r && d && /* @__PURE__ */ t("span", { className: o.rangeInfo, children: d })
140
140
  ]
141
141
  }
142
142
  ),
@@ -151,7 +151,7 @@ const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue =
151
151
  member: b,
152
152
  depth: 0,
153
153
  memberIndex: _,
154
- formName: d
154
+ formName: m
155
155
  },
156
156
  `${b.concept.uuid}`
157
157
  ))
@@ -188,12 +188,12 @@ const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue =
188
188
  },
189
189
  `${e.concept.uuid}-${s}`
190
190
  );
191
- }, Se = ({
191
+ }, Be = ({
192
192
  episodeOfCareUuids: e,
193
193
  encounterUuids: s,
194
- config: d
194
+ config: m
195
195
  }) => {
196
- const { t: r } = z(), u = Y(), [m, c] = U(!1), [a, b] = U(null), _ = d?.numberOfVisits, N = W(
196
+ const { t: r } = X(), u = Y(), [d, c] = U(!1), [a, b] = U(null), _ = m?.numberOfVisits, N = J(
197
197
  e,
198
198
  s
199
199
  ), {
@@ -218,40 +218,40 @@ const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue =
218
218
  return R(a.formName);
219
219
  }, [a, R]), {
220
220
  data: we,
221
- isLoading: j,
221
+ isLoading: P,
222
222
  error: F
223
223
  } = h({
224
224
  queryKey: ["formMetadata", A],
225
225
  queryFn: () => re(A),
226
- enabled: !!A && m
226
+ enabled: !!A && d
227
227
  }), {
228
228
  data: M,
229
- isLoading: K,
229
+ isLoading: j,
230
230
  error: w
231
231
  } = h({
232
232
  queryKey: ["formsEncounter", a?.encounterUuid],
233
233
  queryFn: () => ae(a.encounterUuid, !0),
234
- enabled: !!a?.encounterUuid && m
235
- }), E = $(() => !M?.observations || !a?.formName ? [] : M.observations.filter(
234
+ enabled: !!a?.encounterUuid && d
235
+ }), I = $(() => !M?.observations || !a?.formName ? [] : M.observations.filter(
236
236
  (n) => "formFieldPath" in n && typeof n.formFieldPath == "string" && n.formFieldPath.includes(a.formName)
237
- ), [M?.observations, a?.formName]), I = $(
237
+ ), [M?.observations, a?.formName]), V = $(
238
238
  () => [
239
239
  { key: "recordedOn", header: r("FORM_RECORDED_ON") },
240
240
  { key: "recordedBy", header: r("FORM_RECORDED_BY") }
241
241
  ],
242
242
  [r]
243
- ), P = $(
243
+ ), K = $(
244
244
  () => [
245
245
  { key: "recordedOn", sortable: !0 },
246
246
  { key: "recordedBy", sortable: !0 }
247
247
  ],
248
248
  []
249
- ), B = $(() => {
249
+ ), E = $(() => {
250
250
  const n = D.reduce(
251
251
  (l, i) => {
252
252
  const f = i.formName;
253
253
  l[f] ??= [];
254
- const T = i.providers.map((X) => X.providerName).filter(Boolean).join(", ");
254
+ const T = i.providers.map((W) => W.providerName).filter(Boolean).join(", ");
255
255
  return l[f].push({
256
256
  id: i.encounterUuid,
257
257
  formName: i.formName,
@@ -271,38 +271,38 @@ const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue =
271
271
  )
272
272
  })
273
273
  ).sort((l, i) => l.formName.localeCompare(i.formName));
274
- }, [D, r]), V = y((n) => {
274
+ }, [D, r]), S = y((n) => {
275
275
  b(n), c(!0);
276
- }, []), Q = y(() => {
276
+ }, []), z = y(() => {
277
277
  c(!1), b(null);
278
- }, []), S = y(
278
+ }, []), B = y(
279
279
  (n, l) => {
280
280
  switch (l) {
281
281
  case "recordedOn":
282
- return /* @__PURE__ */ t(te, { onClick: () => V(n), children: n.recordedOn });
282
+ return /* @__PURE__ */ t(te, { onClick: () => S(n), children: n.recordedOn });
283
283
  case "recordedBy":
284
284
  return n.recordedBy;
285
285
  default:
286
286
  return null;
287
287
  }
288
288
  },
289
- [V]
289
+ [S]
290
290
  );
291
- return /* @__PURE__ */ p(J, { children: [
292
- /* @__PURE__ */ t("div", { "data-testid": "forms-table", children: L || C || B.length === 0 || N ? /* @__PURE__ */ t(
291
+ return /* @__PURE__ */ p(Q, { children: [
292
+ /* @__PURE__ */ t("div", { "data-testid": "forms-table", children: L || C || E.length === 0 || N ? /* @__PURE__ */ t(
293
293
  x,
294
294
  {
295
- headers: I,
295
+ headers: V,
296
296
  ariaLabel: r("FORMS_HEADING"),
297
297
  rows: [],
298
298
  loading: L,
299
299
  errorStateMessage: C ? H?.message : void 0,
300
300
  emptyStateMessage: r("FORMS_UNAVAILABLE"),
301
- renderCell: S,
301
+ renderCell: B,
302
302
  className: o.formsTableBody,
303
303
  dataTestId: "forms-table"
304
304
  }
305
- ) : /* @__PURE__ */ t(ne, { align: "start", children: B.map((n, l) => {
305
+ ) : /* @__PURE__ */ t(ne, { align: "start", children: E.map((n, l) => {
306
306
  const { formName: i, records: f } = n;
307
307
  return /* @__PURE__ */ t(
308
308
  se,
@@ -314,14 +314,14 @@ const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue =
314
314
  children: /* @__PURE__ */ t(
315
315
  x,
316
316
  {
317
- headers: I,
317
+ headers: V,
318
318
  ariaLabel: r("FORMS_HEADING"),
319
319
  rows: f,
320
320
  loading: !1,
321
321
  errorStateMessage: "",
322
- sortable: P,
322
+ sortable: K,
323
323
  emptyStateMessage: r("FORMS_UNAVAILABLE"),
324
- renderCell: S,
324
+ renderCell: B,
325
325
  className: o.formsTableBody,
326
326
  dataTestId: `forms-table-${i}`
327
327
  }
@@ -330,18 +330,18 @@ const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue =
330
330
  i
331
331
  );
332
332
  }) }) }),
333
- m && a && /* @__PURE__ */ t(
334
- me,
333
+ d && a && /* @__PURE__ */ t(
334
+ de,
335
335
  {
336
336
  id: "modalIdForActionAreaLayout",
337
- open: m,
338
- onRequestClose: Q,
337
+ open: d,
338
+ onRequestClose: z,
339
339
  modalHeading: a.formName,
340
340
  modalLabel: `${a.recordedOn} | ${a.recordedBy}`,
341
341
  passiveModal: !0,
342
342
  size: "md",
343
343
  testId: "form-details-modal",
344
- children: /* @__PURE__ */ t("div", { className: o.formContent, children: j || K ? /* @__PURE__ */ t(de, { width: "100%", lineCount: 3 }) : F ? /* @__PURE__ */ t("div", { children: G(F).message ?? r("ERROR_FETCHING_FORM_METADATA") }) : w ? /* @__PURE__ */ t("div", { children: G(w).message ?? r("ERROR_FETCHING_FORM_DATA") }) : E.length > 0 ? /* @__PURE__ */ t("div", { className: o.formDetailsContainer, children: E.map((n, l) => /* @__PURE__ */ t(
344
+ children: /* @__PURE__ */ t("div", { className: o.formContent, children: P || j ? /* @__PURE__ */ t(me, { width: "100%", lineCount: 3 }) : F ? /* @__PURE__ */ t("div", { children: G(F).message ?? r("ERROR_FETCHING_FORM_METADATA") }) : w ? /* @__PURE__ */ t("div", { children: G(w).message ?? r("ERROR_FETCHING_FORM_DATA") }) : I.length > 0 ? /* @__PURE__ */ t("div", { className: o.formDetailsContainer, children: I.map((n, l) => /* @__PURE__ */ t(
345
345
  Fe,
346
346
  {
347
347
  observation: n,
@@ -355,5 +355,5 @@ const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue =
355
355
  ] });
356
356
  };
357
357
  export {
358
- Se as default
358
+ Be as default
359
359
  };
@@ -1,6 +1,6 @@
1
- import { c, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-DYb-0X63.js";
2
- import { h as d, i as f, j as e } from "./index-C8JfSqHC.js";
3
- var h = (a) => {
1
+ import { c, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-9Q9qiie5.js";
2
+ import { g as d, i as f, j as e } from "./index-Bz9hJQp5.js";
3
+ var p = (a) => {
4
4
  const [r, t] = c({
5
5
  prefix: "TanstackQueryDevtools"
6
6
  }), n = d(), s = f(() => {
@@ -27,7 +27,7 @@ var h = (a) => {
27
27
  });
28
28
  }
29
29
  });
30
- }, C = h;
30
+ }, C = p;
31
31
  export {
32
32
  C as default
33
33
  };
@@ -1,9 +1,9 @@
1
- import { c as s, T as c, P as i, a as u, b as m, C as P, Q as d } from "./YPM2AS64-DYb-0X63.js";
2
- import { h, i as v, j as e } from "./index-C8JfSqHC.js";
3
- var C = (t) => {
1
+ import { c as s, T as c, P as i, a as u, b as m, C as P, Q as d } from "./YPM2AS64-9Q9qiie5.js";
2
+ import { g as v, i as C, j as e } from "./index-Bz9hJQp5.js";
3
+ var h = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
6
- }), a = h(), l = v(() => {
6
+ }), a = v(), l = C(() => {
7
7
  const n = r.theme_preference || c;
8
8
  return n !== "system" ? n : a();
9
9
  });
@@ -36,7 +36,7 @@ var C = (t) => {
36
36
  });
37
37
  }
38
38
  });
39
- }, p = C;
39
+ }, p = h;
40
40
  export {
41
41
  p as default
42
42
  };
@@ -1,8 +1,8 @@
1
1
  import { jsxs as _, jsx as b } from "react/jsx-runtime";
2
- import { V as B, c as F, u as I, K as k, Y as K, e as x, $ as Q, W as G, N as A, U as H, f as Y, z as j, A as z } from "./index-C8JfSqHC.js";
3
- import { useQueries as P, useQuery as W } from "@tanstack/react-query";
4
- import { useRef as X, useEffect as S, useMemo as h } from "react";
5
- const Z = "normal", J = "http://terminology.hl7.org/CodeSystem/referencerange-meaning", ee = "A", te = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", ne = (e, n) => e?.date ? G(e.date, n).formattedResult : n("DATE_ERROR_PARSE"), re = (e) => {
2
+ import { V as F, b as U, u as I, X as k, Q, c as x, $ as G, G as K, C as w, J as H, f as X, T as j, O as J } from "./index-Bz9hJQp5.js";
3
+ import { useQueries as P, useQuery as Y } from "@tanstack/react-query";
4
+ import { useRef as Z, useEffect as S, useMemo as h } from "react";
5
+ const z = "normal", W = "http://terminology.hl7.org/CodeSystem/referencerange-meaning", ee = "A", te = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", ne = (e, n) => e?.date ? K(e.date, n).formattedResult : n("DATE_ERROR_PARSE"), re = (e) => {
6
6
  if (!e.observationValue?.value)
7
7
  return "";
8
8
  const { value: n, unit: t } = e.observationValue;
@@ -60,7 +60,7 @@ function se(e) {
60
60
  if (i && i.length > 0) {
61
61
  const l = i.find(
62
62
  (v) => v.type?.coding?.some(
63
- (c) => c.system === J && c.code === Z
63
+ (c) => c.system === W && c.code === z
64
64
  )
65
65
  );
66
66
  l && (l.low || l.high) && (u.referenceRange = {
@@ -112,9 +112,9 @@ function ue(e, n) {
112
112
  location: t.location?.[0]?.location?.display
113
113
  };
114
114
  }
115
- function N(e, n, t) {
115
+ function A(e, n, t) {
116
116
  const a = $(e.encounter), r = (e.hasMember ?? []).map((o) => $(o)).map((o) => o ? t.get(o) : void 0).filter((o) => !!o).map(
117
- (o) => N(o, n, t)
117
+ (o) => A(o, n, t)
118
118
  );
119
119
  return {
120
120
  id: e.id,
@@ -137,7 +137,7 @@ function le(e) {
137
137
  const r = [], o = [];
138
138
  return t.forEach((i, s) => {
139
139
  if (a.has(s)) return;
140
- const u = N(
140
+ const u = A(
141
141
  i,
142
142
  n,
143
143
  t
@@ -177,15 +177,15 @@ function ce(e) {
177
177
  return !a && !r ? 0 : a ? r ? new Date(r).getTime() - new Date(a).getTime() : -1 : 1;
178
178
  });
179
179
  }
180
- const w = (e, n, t, a, r) => {
180
+ const D = (e, n, t, a, r) => {
181
181
  const o = ae(e, n), i = o.value, s = H(i);
182
182
  let u = i;
183
- s === "Image" && (u = /* @__PURE__ */ b(j, { imageSrc: i, alt: i, id: `${i}-img` })), s === "Video" && (u = /* @__PURE__ */ b(z, { id: `${i}-video`, videoSrc: i }));
183
+ s === "Image" && (u = /* @__PURE__ */ b(j, { imageSrc: i, alt: i, id: `${i}-img` })), s === "Video" && (u = /* @__PURE__ */ b(J, { id: `${i}-video`, videoSrc: i }));
184
184
  const l = r("OBSERVATIONS_RECORDED_BY", {
185
185
  provider: o.provider
186
186
  }), v = e.display, c = e.observationValue?.isAbnormal ? "abnormal-obs" : "obs", p = a ? `${a}-${c}-${v}-${t}-${n}` : `${c}-${v}-${t}-${n}`;
187
187
  return /* @__PURE__ */ b(
188
- Y,
188
+ X,
189
189
  {
190
190
  header: o.header,
191
191
  value: u,
@@ -197,13 +197,13 @@ const w = (e, n, t, a, r) => {
197
197
  `obs-${e.id}`
198
198
  );
199
199
  }, ve = (e, n, t, a, r, o) => /* @__PURE__ */ b(
200
- A,
200
+ w,
201
201
  {
202
202
  title: e.display,
203
203
  id: `grouped-obs-${e.display}-${a}`,
204
204
  open: t,
205
205
  children: e.children.map(
206
- (i, s) => w(i, s, r, o, n)
206
+ (i, s) => D(i, s, r, o, n)
207
207
  )
208
208
  },
209
209
  `grouped-obs-${e.id}`
@@ -214,14 +214,14 @@ const w = (e, n, t, a, r) => {
214
214
  const { t } = I(), a = (r, o, i) => {
215
215
  const s = ne(r.encounterDetails, t);
216
216
  return /* @__PURE__ */ _(
217
- A,
217
+ w,
218
218
  {
219
219
  title: s,
220
220
  id: `encounter-${r.encounterId}`,
221
221
  open: o,
222
222
  children: [
223
223
  r.observations.map(
224
- (u, l) => w(u, l, i, n, t)
224
+ (u, l) => D(u, l, i, n, t)
225
225
  ),
226
226
  r.groupedObservations.map(
227
227
  (u, l) => ve(
@@ -253,7 +253,7 @@ const w = (e, n, t, a, r) => {
253
253
  observations: be,
254
254
  title: ge
255
255
  }, me = (e) => ["conceptUuid", e], fe = (e, n) => ["observations", e, ...n], Oe = ({ config: e }) => {
256
- const n = e, { conceptNames: t = [], conceptUuid: a = [] } = n, r = X(/* @__PURE__ */ new Set()), o = B(), { addNotification: i } = F(), { t: s } = I(), u = P({
256
+ const n = e, { conceptNames: t = [], conceptUuid: a = [] } = n, r = Z(/* @__PURE__ */ new Set()), o = F(), { addNotification: i } = U(), { t: s } = I(), u = P({
257
257
  queries: t.map((d) => ({
258
258
  queryKey: me(d),
259
259
  queryFn: () => k(d),
@@ -263,10 +263,10 @@ const w = (e, n, t, a, r) => {
263
263
  S(() => {
264
264
  u.forEach((d, g) => {
265
265
  if (d.isError && !r.current.has(g)) {
266
- const q = t[g];
266
+ const B = t[g];
267
267
  i({
268
268
  title: s("ERROR_DEFAULT_TITLE"),
269
- message: s("ERROR_FETCHING_CONCEPT", { conceptName: q }),
269
+ message: s("ERROR_FETCHING_CONCEPT", { conceptName: B }),
270
270
  type: "error"
271
271
  }), r.current.add(g);
272
272
  } else d.isError || r.current.delete(g);
@@ -274,11 +274,11 @@ const w = (e, n, t, a, r) => {
274
274
  }, [u, t]);
275
275
  const l = h(() => u.map((d) => d.data?.uuid).filter((d) => !!d), [u]), v = h(() => [.../* @__PURE__ */ new Set([...l, ...a])], [l, a]), c = h(() => t.length === 0 ? !0 : u.every((d) => !d.isLoading), [u, t.length]), {
276
276
  data: p,
277
- isLoading: D,
277
+ isLoading: N,
278
278
  isError: y
279
- } = W({
279
+ } = Y({
280
280
  queryKey: fe(o, v),
281
- queryFn: () => K(o, v),
281
+ queryFn: () => Q(o, v),
282
282
  enabled: !!o && v.length > 0 && c
283
283
  });
284
284
  S(() => {
@@ -296,7 +296,7 @@ const w = (e, n, t, a, r) => {
296
296
  { key: "name", header: "name" },
297
297
  { key: "value", header: "value" },
298
298
  { key: "form", header: "form" }
299
- ], O = D || !c, R = y && c, C = (!p || p.entry?.length === 0 || v.length === 0) && c, U = R ? s("ERROR_FETCHING_OBSERVATIONS") : null, L = C ? s("NO_OBSERVATIONS_FOUND") : void 0, M = E.length > 0 && !O && !R, f = n.titleTranslationKey, m = f ? s(f) : "";
299
+ ], O = N || !c, R = y && c, C = (!p || p.entry?.length === 0 || v.length === 0) && c, L = R ? s("ERROR_FETCHING_OBSERVATIONS") : null, M = C ? s("NO_OBSERVATIONS_FOUND") : void 0, q = E.length > 0 && !O && !R, f = n.titleTranslationKey, m = f ? s(f) : "";
300
300
  return /* @__PURE__ */ _(
301
301
  "div",
302
302
  {
@@ -315,15 +315,15 @@ const w = (e, n, t, a, r) => {
315
315
  children: /* @__PURE__ */ b("p", { children: m })
316
316
  }
317
317
  ),
318
- M ? /* @__PURE__ */ b(pe, { groupedData: E, title: m }) : /* @__PURE__ */ b(
319
- Q,
318
+ q ? /* @__PURE__ */ b(pe, { groupedData: E, title: m }) : /* @__PURE__ */ b(
319
+ G,
320
320
  {
321
321
  headers: V,
322
322
  rows: [],
323
323
  ariaLabel: s("OBSERVATIONS"),
324
324
  loading: O,
325
- errorStateMessage: U,
326
- emptyStateMessage: L,
325
+ errorStateMessage: L,
326
+ emptyStateMessage: M,
327
327
  dataTestId: "observations-table"
328
328
  }
329
329
  )
@@ -1,4 +1,4 @@
1
- import { k as we, l as z, o as xt, m as B, i as q, j as m, P as Ro, n as me, S as R, t as _, p as k, r as N, s as A, v as bs, w as ir, C as $e, D as U, H as Hn, I as Vn, L as dt, M as D, O as xs, R as cn, T as Be, Z as ws, _ as qt, a0 as zt, a1 as $s, a2 as Cs, a3 as $n, a4 as Ss, a5 as Nr, a6 as Bt, a7 as zo, a8 as ks, a9 as Es, aa as j, ab as Ur, ac as Ms, ad as Ds, ae as sr, af as As, ag as Ts, ah as zn, ai as Fs, aj as Is, ak as Z, al as Ps, am as Ls } from "./index-C8JfSqHC.js";
1
+ import { k as we, l as z, o as xt, m as B, i as q, j as m, p as Ro, s as me, S as R, v as _, x as k, z as N, A, B as bs, D as ir, E as $e, H as U, I as Hn, K as Vn, L as dt, M as D, N as xs, R as cn, U as Be, Y as ws, Z as qt, a0 as zt, a1 as $s, a2 as Cs, a3 as $n, a4 as Ss, a5 as Nr, a6 as Bt, a7 as zo, a8 as ks, a9 as Es, aa as j, ab as Ur, ac as Ms, ad as Ds, ae as sr, af as As, ag as Ts, ah as zn, ai as Fs, aj as Is, ak as Z, al as Ps, am as Ls } from "./index-Bz9hJQp5.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {