@bahmni/registration-app 0.0.1-dev.111 → 0.0.1-dev.112

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,9 +1,9 @@
1
- import { jsx as o, jsxs as p, Fragment as Q } from "react/jsx-runtime";
2
- import { u as Y, T as W, K as X, D as Z, O as ee, L as re, a as ae, _ as oe, b as ne, e as I, c as te, d as se, f as de, g as ie, w as G, F as me, h } from "./index-BRYkmKNU.js";
1
+ import { jsx as o, jsxs as p, Fragment as z } from "react/jsx-runtime";
2
+ import { u as Y, T as W, K as X, S as Z, D as ee, R as re, L as ae, _ as oe, O as ne, Q as I, a as te, b as se, c as de, C as ie, w as G, q as me, d as N } from "./index-BA-lmK5M.js";
3
3
  import { useQuery as f } from "@tanstack/react-query";
4
4
  import { useState as x, useMemo as b, useCallback as g } from "react";
5
5
  import { createPortal as le } from "react-dom";
6
- const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe = "_formContent_1pd36_18", _e = "_formDetailsContainer_1pd36_25", be = "_observation_1pd36_30", fe = "_groupContainer_1pd36_39", ge = "_rowContainer_1pd36_43", he = "_groupLabel_1pd36_48", Ne = "_rowLabel_1pd36_58", ye = "_rowValue_1pd36_67", ve = "_groupMembers_1pd36_75", Le = "_memberRow_1pd36_81", Me = "_memberLabel_1pd36_86", Ae = "_memberValue_1pd36_94", Oe = "_abnormalValue_1pd36_102", Te = "_commentSection_1pd36_110", Ce = "_commentText_1pd36_116", Re = "_nestedGroup_1pd36_125", De = "_nestedGroupLabel_1pd36_132", Fe = "_nestedGroupMembers_1pd36_141", r = {
6
+ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe = "_formContent_1pd36_18", _e = "_formDetailsContainer_1pd36_25", be = "_observation_1pd36_30", fe = "_groupContainer_1pd36_39", ge = "_rowContainer_1pd36_43", Ne = "_groupLabel_1pd36_48", he = "_rowLabel_1pd36_58", ye = "_rowValue_1pd36_67", ve = "_groupMembers_1pd36_75", Le = "_memberRow_1pd36_81", Me = "_memberLabel_1pd36_86", Ae = "_memberValue_1pd36_94", Oe = "_abnormalValue_1pd36_102", Ce = "_commentSection_1pd36_110", Re = "_commentText_1pd36_116", Te = "_nestedGroup_1pd36_125", De = "_nestedGroupLabel_1pd36_132", Fe = "_nestedGroupMembers_1pd36_141", r = {
7
7
  formsTableBody: ce,
8
8
  customAccordianItem: ue,
9
9
  formContent: pe,
@@ -11,23 +11,23 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
11
11
  observation: be,
12
12
  groupContainer: fe,
13
13
  rowContainer: ge,
14
- groupLabel: he,
15
- rowLabel: Ne,
14
+ groupLabel: Ne,
15
+ rowLabel: he,
16
16
  rowValue: ye,
17
17
  groupMembers: ve,
18
18
  memberRow: Le,
19
19
  memberLabel: Me,
20
20
  memberValue: Ae,
21
21
  abnormalValue: Oe,
22
- commentSection: Te,
23
- commentText: Ce,
24
- nestedGroup: Re,
22
+ commentSection: Ce,
23
+ commentText: Re,
24
+ nestedGroup: Te,
25
25
  nestedGroupLabel: De,
26
26
  nestedGroupMembers: Fe
27
27
  }, we = "ABNORMAL", U = (e) => {
28
28
  const i = e.concept?.units, m = e.concept?.lowNormal, a = e.concept?.hiNormal, l = m != null, c = a != null, u = l && c ? ` (${m} - ${a})` : l ? ` (>${m})` : c ? ` (<${a})` : "", t = e.interpretation && e.interpretation.toUpperCase() === we;
29
29
  return { units: i, rangeString: u, isAbnormal: t };
30
- }, k = ({
30
+ }, q = ({
31
31
  member: e,
32
32
  depth: i = 0
33
33
  }) => {
@@ -43,7 +43,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
43
43
  }
44
44
  ),
45
45
  /* @__PURE__ */ o("div", { className: r.nestedGroupMembers, children: e.groupMembers?.map((t) => /* @__PURE__ */ o(
46
- k,
46
+ q,
47
47
  {
48
48
  member: t,
49
49
  depth: i + 1
@@ -61,7 +61,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
61
61
  /* @__PURE__ */ p(
62
62
  "p",
63
63
  {
64
- className: h(
64
+ className: N(
65
65
  r.memberLabel,
66
66
  u ? r.abnormalValue : ""
67
67
  ),
@@ -74,7 +74,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
74
74
  /* @__PURE__ */ p(
75
75
  "p",
76
76
  {
77
- className: h(
77
+ className: N(
78
78
  r.memberValue,
79
79
  u ? r.abnormalValue : ""
80
80
  ),
@@ -87,7 +87,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
87
87
  ]
88
88
  }
89
89
  );
90
- }, Be = ({
90
+ }, Se = ({
91
91
  observation: e,
92
92
  index: i
93
93
  }) => {
@@ -105,7 +105,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
105
105
  /* @__PURE__ */ p(
106
106
  "p",
107
107
  {
108
- className: h(
108
+ className: N(
109
109
  m ? r.groupLabel : r.rowLabel,
110
110
  !m && c ? r.abnormalValue : ""
111
111
  ),
@@ -116,7 +116,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
116
116
  }
117
117
  ),
118
118
  m ? /* @__PURE__ */ o("div", { className: r.groupMembers, children: e.groupMembers?.map((u) => /* @__PURE__ */ o(
119
- k,
119
+ q,
120
120
  {
121
121
  member: u,
122
122
  depth: 0
@@ -125,7 +125,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
125
125
  )) }) : /* @__PURE__ */ p(
126
126
  "p",
127
127
  {
128
- className: h(
128
+ className: N(
129
129
  r.rowValue,
130
130
  c ? r.abnormalValue : ""
131
131
  ),
@@ -151,31 +151,31 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
151
151
  encounterUuids: i,
152
152
  config: m
153
153
  }) => {
154
- const { t: a } = Y(), l = W(), [c, u] = x(!1), [t, M] = x(null), q = m?.numberOfVisits, A = X(
154
+ const { t: a } = Y(), l = W(), [c, u] = x(!1), [t, M] = x(null), k = m?.numberOfVisits, A = X(
155
155
  e,
156
156
  i
157
157
  ), {
158
- data: N = [],
158
+ data: h = [],
159
159
  isLoading: O,
160
- isError: T,
160
+ isError: C,
161
161
  error: K
162
162
  } = f({
163
163
  queryKey: ["forms", l, e],
164
- queryFn: () => Z(l, void 0, q),
164
+ queryFn: () => Z(l, void 0, k),
165
165
  enabled: !!l && !A
166
- }), C = b(() => !i || i.length === 0 ? N : N.filter(
166
+ }), R = b(() => !i || i.length === 0 ? h : h.filter(
167
167
  (n) => i.includes(n.encounterUuid)
168
- ), [N, i]), { data: R = [] } = f({
168
+ ), [h, i]), { data: T = [] } = f({
169
169
  queryKey: ["observationForms"],
170
170
  queryFn: ee
171
171
  }), D = g(
172
- (n) => R.find((s) => s.name === n)?.uuid,
173
- [R]
172
+ (n) => T.find((s) => s.name === n)?.uuid,
173
+ [T]
174
174
  ), y = b(() => {
175
175
  if (t)
176
176
  return D(t.formName);
177
177
  }, [t, D]), {
178
- data: Ee,
178
+ data: Be,
179
179
  isLoading: H,
180
180
  error: F
181
181
  } = f({
@@ -190,9 +190,9 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
190
190
  queryKey: ["formsEncounter", t?.encounterUuid],
191
191
  queryFn: () => ae(t.encounterUuid, !0),
192
192
  enabled: !!t?.encounterUuid && c
193
- }), B = b(() => !v?.observations || !t?.formName ? [] : v.observations.filter(
193
+ }), S = b(() => !v?.observations || !t?.formName ? [] : v.observations.filter(
194
194
  (n) => "formFieldPath" in n && typeof n.formFieldPath == "string" && n.formFieldPath.includes(t.formName)
195
- ), [v?.observations, t?.formName]), E = b(
195
+ ), [v?.observations, t?.formName]), B = b(
196
196
  () => [
197
197
  { key: "recordedOn", header: a("FORM_RECORDED_ON") },
198
198
  { key: "recordedBy", header: a("FORM_RECORDED_BY") }
@@ -204,12 +204,12 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
204
204
  { key: "recordedBy", sortable: !0 }
205
205
  ],
206
206
  []
207
- ), S = b(() => {
208
- const n = C.reduce(
207
+ ), E = b(() => {
208
+ const n = R.reduce(
209
209
  (s, d) => {
210
210
  const _ = d.formName;
211
211
  s[_] ??= [];
212
- const L = d.providers.map((z) => z.providerName).filter(Boolean).join(", ");
212
+ const L = d.providers.map((Q) => Q.providerName).filter(Boolean).join(", ");
213
213
  return s[_].push({
214
214
  id: d.encounterUuid,
215
215
  formName: d.formName,
@@ -229,7 +229,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
229
229
  )
230
230
  })
231
231
  ).sort((s, d) => s.formName.localeCompare(d.formName));
232
- }, [C, a]), V = g((n) => {
232
+ }, [R, a]), V = g((n) => {
233
233
  M(n), u(!0);
234
234
  }, []), P = g(() => {
235
235
  u(!1), M(null);
@@ -246,21 +246,21 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
246
246
  },
247
247
  [V]
248
248
  );
249
- return /* @__PURE__ */ p(Q, { children: [
250
- /* @__PURE__ */ o("div", { "data-testid": "forms-table", children: O || T || S.length === 0 || A ? /* @__PURE__ */ o(
249
+ return /* @__PURE__ */ p(z, { children: [
250
+ /* @__PURE__ */ o("div", { "data-testid": "forms-table", children: O || C || E.length === 0 || A ? /* @__PURE__ */ o(
251
251
  I,
252
252
  {
253
- headers: E,
253
+ headers: B,
254
254
  ariaLabel: a("FORMS_HEADING"),
255
255
  rows: [],
256
256
  loading: O,
257
- errorStateMessage: T ? K?.message : void 0,
257
+ errorStateMessage: C ? K?.message : void 0,
258
258
  emptyStateMessage: a("FORMS_UNAVAILABLE"),
259
259
  renderCell: $,
260
260
  className: r.formsTableBody,
261
261
  "data-testid": "sortable-data-table"
262
262
  }
263
- ) : /* @__PURE__ */ o(te, { align: "start", children: S.map((n, s) => {
263
+ ) : /* @__PURE__ */ o(te, { align: "start", children: E.map((n, s) => {
264
264
  const { formName: d, records: _ } = n;
265
265
  return /* @__PURE__ */ o(
266
266
  se,
@@ -272,7 +272,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
272
272
  children: /* @__PURE__ */ o(
273
273
  I,
274
274
  {
275
- headers: E,
275
+ headers: B,
276
276
  ariaLabel: a("FORMS_HEADING"),
277
277
  rows: _,
278
278
  loading: !1,
@@ -300,8 +300,8 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
300
300
  passiveModal: !0,
301
301
  size: "md",
302
302
  testId: "form-details-modal",
303
- children: /* @__PURE__ */ o("div", { className: r.formContent, children: H || j ? /* @__PURE__ */ o(ie, { width: "100%", lineCount: 3 }) : F ? /* @__PURE__ */ o("div", { children: G(F).message ?? a("ERROR_FETCHING_FORM_METADATA") }) : w ? /* @__PURE__ */ o("div", { children: G(w).message ?? a("ERROR_FETCHING_FORM_DATA") }) : B.length > 0 ? /* @__PURE__ */ o("div", { className: r.formDetailsContainer, children: B.map((n, s) => /* @__PURE__ */ o(
304
- Be,
303
+ children: /* @__PURE__ */ o("div", { className: r.formContent, children: H || j ? /* @__PURE__ */ o(ie, { width: "100%", lineCount: 3 }) : F ? /* @__PURE__ */ o("div", { children: G(F).message ?? a("ERROR_FETCHING_FORM_METADATA") }) : w ? /* @__PURE__ */ o("div", { children: G(w).message ?? a("ERROR_FETCHING_FORM_DATA") }) : S.length > 0 ? /* @__PURE__ */ o("div", { className: r.formDetailsContainer, children: S.map((n, s) => /* @__PURE__ */ o(
304
+ Se,
305
305
  {
306
306
  observation: n,
307
307
  index: s
@@ -1,9 +1,9 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-D2vPrH3e.js";
2
- import { n as p, o as d, p as e } from "./index-BRYkmKNU.js";
3
- var f = (a) => {
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-k-PLbkE3.js";
2
+ import { m as d, n as f, o as e } from "./index-BA-lmK5M.js";
3
+ var p = (a) => {
4
4
  const [r, o] = c({
5
5
  prefix: "TanstackQueryDevtools"
6
- }), n = p(), s = d(() => {
6
+ }), n = d(), s = f(() => {
7
7
  const t = r.theme_preference || l;
8
8
  return t !== "system" ? t : n();
9
9
  });
@@ -27,7 +27,7 @@ var f = (a) => {
27
27
  });
28
28
  }
29
29
  });
30
- }, C = f;
30
+ }, C = p;
31
31
  export {
32
32
  C as default
33
33
  };
@@ -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-D2vPrH3e.js";
2
- import { n as v, o as C, p as e } from "./index-BRYkmKNU.js";
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-k-PLbkE3.js";
2
+ import { m as v, n as C, o as e } from "./index-BA-lmK5M.js";
3
3
  var h = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -36,7 +36,7 @@ var h = (t) => {
36
36
  });
37
37
  }
38
38
  });
39
- }, g = h;
39
+ }, p = h;
40
40
  export {
41
- g as default
41
+ p as default
42
42
  };
@@ -1,8 +1,8 @@
1
1
  import { jsxs as S, jsx as l } from "react/jsx-runtime";
2
- import { T as U, i as k, u as T, j as q, C as F, U as J, e as x, z as B, l as _, A as K, y as Q, k as j, m as G } from "./index-BRYkmKNU.js";
3
- import { useQueries as H, useQuery as z } from "@tanstack/react-query";
4
- import { useRef as P, useEffect as O, useMemo as m } from "react";
5
- const W = "normal", X = "http://terminology.hl7.org/CodeSystem/referencerange-meaning", Y = "A", Z = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", ee = (e, t) => e?.date ? B(e.date, t).formattedResult : t("DATE_ERROR_PARSE"), te = (e) => {
2
+ import { T as U, e as k, u as T, f as q, g as F, U as J, Q, h as x, i as _, j as B, V as K, k as j, l as G } from "./index-BA-lmK5M.js";
3
+ import { useQueries as H, useQuery as P } from "@tanstack/react-query";
4
+ import { useRef as W, useEffect as O, useMemo as m } from "react";
5
+ const X = "normal", Y = "http://terminology.hl7.org/CodeSystem/referencerange-meaning", Z = "A", z = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", ee = (e, t) => e?.date ? x(e.date, t).formattedResult : t("DATE_ERROR_PARSE"), te = (e) => {
6
6
  const { value: t, unit: n } = e.observationValue;
7
7
  return n ? `${t} ${n}` : String(t);
8
8
  }, ne = (e) => {
@@ -28,11 +28,11 @@ const W = "normal", X = "http://terminology.hl7.org/CodeSystem/referencerange-me
28
28
  header: ne(e),
29
29
  value: te(e),
30
30
  provider: e.encounter?.provider
31
- }), h = (e) => (typeof e == "string" ? e : e?.reference)?.split("/")?.pop();
31
+ }), f = (e) => (typeof e == "string" ? e : e?.reference)?.split("/")?.pop();
32
32
  function oe(e) {
33
33
  return !e.interpretation || e.interpretation.length === 0 ? !1 : e.interpretation.some(
34
34
  (t) => t.coding?.some(
35
- (n) => n.system === Z && n.code === Y
35
+ (n) => n.system === z && n.code === Z
36
36
  )
37
37
  );
38
38
  }
@@ -48,7 +48,7 @@ function ie(e) {
48
48
  if (o && o.length > 0) {
49
49
  const s = o.find(
50
50
  (u) => u.type?.coding?.some(
51
- (v) => v.system === X && v.code === W
51
+ (v) => v.system === Y && v.code === X
52
52
  )
53
53
  );
54
54
  s && (s.low || s.high) && (a.referenceRange = {
@@ -88,9 +88,9 @@ function ae(e, t) {
88
88
  location: n.location?.[0]?.location?.display
89
89
  };
90
90
  }
91
- function A(e, t, n) {
92
- const r = h(e.encounter), o = (e.hasMember ?? []).map((i) => h(i)).map((i) => i ? n.get(i) : void 0).filter((i) => !!i).map(
93
- (i) => A(i, t, n)
91
+ function I(e, t, n) {
92
+ const r = f(e.encounter), o = (e.hasMember ?? []).map((i) => f(i)).map((i) => i ? n.get(i) : void 0).filter((i) => !!i).map(
93
+ (i) => I(i, t, n)
94
94
  );
95
95
  return {
96
96
  id: e.id,
@@ -106,14 +106,14 @@ function se(e) {
106
106
  const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set();
107
107
  e.entry?.forEach(({ resource: a }) => {
108
108
  a?.id && (a.resourceType === "Encounter" ? t.set(a.id, a) : a.resourceType === "Observation" && (n.set(a.id, a), a.hasMember?.forEach((s) => {
109
- const u = h(s);
109
+ const u = f(s);
110
110
  u && r.add(u);
111
111
  })));
112
112
  });
113
113
  const o = [], i = [];
114
114
  return n.forEach((a, s) => {
115
115
  if (r.has(s)) return;
116
- const u = A(
116
+ const u = I(
117
117
  a,
118
118
  t,
119
119
  n
@@ -153,15 +153,15 @@ function de(e) {
153
153
  return !r && !o ? 0 : r ? o ? new Date(o).getTime() - new Date(r).getTime() : -1 : 1;
154
154
  });
155
155
  }
156
- const I = (e, t, n) => {
157
- const r = re(e, t), o = r.value, i = K(o);
156
+ const w = (e, t, n) => {
157
+ const r = re(e, t), o = r.value, i = B(o);
158
158
  let a = o;
159
159
  i === "Image" && (a = /* @__PURE__ */ l(j, { imageSrc: o, alt: o, id: `${o}-img` })), i === "Video" && (a = /* @__PURE__ */ l(G, { id: `${o}-video`, videoSrc: o }));
160
160
  const s = n("OBSERVATIONS_RECORDED_BY", {
161
161
  provider: r.provider
162
162
  }), u = e.observationValue?.isAbnormal ? `abnormal-obs-${e.id}` : `obs-${e.id}`;
163
163
  return /* @__PURE__ */ l(
164
- Q,
164
+ K,
165
165
  {
166
166
  header: r.header,
167
167
  value: a,
@@ -179,7 +179,7 @@ const I = (e, t, n) => {
179
179
  id: `grouped-obs-${e.id}`,
180
180
  open: n,
181
181
  children: e.children.map(
182
- (r, o) => I(r, o, t)
182
+ (r, o) => w(r, o, t)
183
183
  )
184
184
  },
185
185
  `grouped-obs-${e.id}`
@@ -196,7 +196,7 @@ const I = (e, t, n) => {
196
196
  open: o,
197
197
  children: [
198
198
  r.observations.map(
199
- (a, s) => I(a, s, t)
199
+ (a, s) => w(a, s, t)
200
200
  ),
201
201
  r.groupedObservations.map(
202
202
  (a) => le(a, t, o)
@@ -221,7 +221,7 @@ const I = (e, t, n) => {
221
221
  observations: ve,
222
222
  title: pe
223
223
  }, ge = (e) => ["conceptUuid", e], be = (e, t) => ["observations", e, ...t], $e = ({ config: e }) => {
224
- const t = e, { conceptNames: n = [], conceptUuid: r = [] } = t, o = P(/* @__PURE__ */ new Set()), i = U(), { addNotification: a } = k(), { t: s } = T(), u = H({
224
+ const t = e, { conceptNames: n = [], conceptUuid: r = [] } = t, o = W(/* @__PURE__ */ new Set()), i = U(), { addNotification: a } = k(), { t: s } = T(), u = H({
225
225
  queries: n.map((d) => ({
226
226
  queryKey: ge(d),
227
227
  queryFn: () => q(d),
@@ -242,29 +242,29 @@ const I = (e, t, n) => {
242
242
  }, [u, n]);
243
243
  const v = m(() => u.map((d) => d.data?.uuid).filter((d) => !!d), [u]), g = m(() => [.../* @__PURE__ */ new Set([...v, ...r])], [v, r]), b = m(() => n.length === 0 ? !0 : u.every((d) => !d.isLoading), [u, n.length]), {
244
244
  data: p,
245
- isLoading: w,
246
- isError: f
247
- } = z({
245
+ isLoading: D,
246
+ isError: h
247
+ } = P({
248
248
  queryKey: be(i, g),
249
249
  queryFn: () => F(i, g),
250
250
  enabled: !!i && g.length > 0 && b
251
251
  });
252
252
  O(() => {
253
- f && a({
253
+ h && a({
254
254
  title: s("ERROR_DEFAULT_TITLE"),
255
255
  message: s("ERROR_FETCHING_OBSERVATIONS"),
256
256
  type: "error"
257
257
  });
258
- }, [f]);
258
+ }, [h]);
259
259
  const y = m(() => {
260
260
  if (!p) return [];
261
261
  const d = se(p), c = ue(d);
262
262
  return de(c);
263
- }, [p]), D = [
263
+ }, [p]), N = [
264
264
  { key: "name", header: "name" },
265
265
  { key: "value", header: "value" },
266
266
  { key: "form", header: "form" }
267
- ], $ = w || !b, E = f && b, N = (!p || p.entry?.length === 0 || g.length === 0) && b, C = E ? s("ERROR_FETCHING_OBSERVATIONS") : null, V = N ? s("NO_OBSERVATIONS_FOUND") : void 0, L = y.length > 0 && !$ && !E;
267
+ ], $ = D || !b, E = h && b, A = (!p || p.entry?.length === 0 || g.length === 0) && b, V = E ? s("ERROR_FETCHING_OBSERVATIONS") : null, C = A ? s("NO_OBSERVATIONS_FOUND") : void 0, L = y.length > 0 && !$ && !E;
268
268
  return /* @__PURE__ */ S(
269
269
  "div",
270
270
  {
@@ -284,14 +284,14 @@ const I = (e, t, n) => {
284
284
  }
285
285
  ),
286
286
  L ? /* @__PURE__ */ l(ce, { groupedData: y }) : /* @__PURE__ */ l(
287
- x,
287
+ Q,
288
288
  {
289
- headers: D,
289
+ headers: N,
290
290
  rows: [],
291
291
  ariaLabel: s("OBSERVATIONS"),
292
292
  loading: $,
293
- errorStateMessage: C,
294
- emptyStateMessage: V
293
+ errorStateMessage: V,
294
+ emptyStateMessage: C
295
295
  }
296
296
  )
297
297
  ]
@@ -1,4 +1,4 @@
1
- import { q as we, r as z, s as xt, t as B, o as q, p as y, P as Ro, v as ye, S as R, x as _, B as k, E as N, G as A, H as bs, I as ir, J as $e, M as G, N as Hn, Q as Vn, R as dt, V as D, W as xs, X as cn, Y 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 Gr, 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-BRYkmKNU.js";
1
+ import { p as we, r as z, s as xt, t as B, n as q, o as y, P as Ro, v as ye, x as R, y as _, z as k, A as N, B as A, E as bs, F as ir, G as $e, H as G, I as Hn, J as Vn, M as dt, N as D, W as xs, X as cn, Y 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 Gr, 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-BA-lmK5M.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {