@bahmni/widgets 0.0.1-dev.119 → 0.0.1-dev.122

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,10 +1,10 @@
1
- import { jsxs as _, jsx as t, Fragment as J } from "react/jsx-runtime";
2
- import { c as h, u as W, C as X, F as Z, q as ee, U as re, I as oe, l as te, e as ae, P as $, i as ne, f as se, p as ce, a as de, b as U, d as le } from "./index-BSGBBl-w.js";
1
+ import { jsxs as _, jsx as t, Fragment as Q } from "react/jsx-runtime";
2
+ import { c as h, u as Y, C as W, F as Z, q as ee, U as re, D as oe, J as te, l as ae, K as $, a as ne, m as se, p as ce, X as de, b as U, o as me } from "./index-CQcHNtl1.js";
3
3
  import { useQuery as g } from "@tanstack/react-query";
4
4
  import { useState as q, useMemo as b, useCallback as N } from "react";
5
- import { createPortal as me } from "react-dom";
5
+ import { createPortal as le } from "react-dom";
6
6
  import { useTranslation as ie } from "react-i18next";
7
- const ue = "_formsTableBody_1pd36_1", pe = "_customAccordianItem_1pd36_6", _e = "_formContent_1pd36_18", be = "_formDetailsContainer_1pd36_25", fe = "_observation_1pd36_30", ge = "_groupContainer_1pd36_39", Ne = "_rowContainer_1pd36_43", he = "_groupLabel_1pd36_48", ye = "_rowLabel_1pd36_58", Me = "_rowValue_1pd36_67", Le = "_groupMembers_1pd36_75", Ae = "_memberRow_1pd36_81", Oe = "_memberLabel_1pd36_86", Re = "_memberValue_1pd36_94", Ce = "_abnormalValue_1pd36_102", De = "_commentSection_1pd36_110", Fe = "_commentText_1pd36_116", Te = "_nestedGroup_1pd36_125", ve = "_nestedGroupLabel_1pd36_132", Ee = "_nestedGroupMembers_1pd36_141", r = {
7
+ const ue = "_formsTableBody_1pd36_1", pe = "_customAccordianItem_1pd36_6", _e = "_formContent_1pd36_18", be = "_formDetailsContainer_1pd36_25", fe = "_observation_1pd36_30", ge = "_groupContainer_1pd36_39", Ne = "_rowContainer_1pd36_43", he = "_groupLabel_1pd36_48", ye = "_rowLabel_1pd36_58", Me = "_rowValue_1pd36_67", Le = "_groupMembers_1pd36_75", Ae = "_memberRow_1pd36_81", Oe = "_memberLabel_1pd36_86", De = "_memberValue_1pd36_94", Re = "_abnormalValue_1pd36_102", Ce = "_commentSection_1pd36_110", Fe = "_commentText_1pd36_116", Te = "_nestedGroup_1pd36_125", ve = "_nestedGroupLabel_1pd36_132", Ee = "_nestedGroupMembers_1pd36_141", r = {
8
8
  formsTableBody: ue,
9
9
  customAccordianItem: pe,
10
10
  formContent: _e,
@@ -18,17 +18,17 @@ const ue = "_formsTableBody_1pd36_1", pe = "_customAccordianItem_1pd36_6", _e =
18
18
  groupMembers: Le,
19
19
  memberRow: Ae,
20
20
  memberLabel: Oe,
21
- memberValue: Re,
22
- abnormalValue: Ce,
23
- commentSection: De,
21
+ memberValue: De,
22
+ abnormalValue: Re,
23
+ commentSection: Ce,
24
24
  commentText: Fe,
25
25
  nestedGroup: Te,
26
26
  nestedGroupLabel: ve,
27
27
  nestedGroupMembers: Ee
28
28
  }, we = "ABNORMAL", x = (e) => {
29
- const s = e.concept?.units, c = e.concept?.lowNormal, o = e.concept?.hiNormal, m = c != null, i = o != null, p = m && i ? ` (${c} - ${o})` : m ? ` (>${c})` : i ? ` (<${o})` : "", a = e.interpretation && e.interpretation.toUpperCase() === we;
29
+ const s = e.concept?.units, c = e.concept?.lowNormal, o = e.concept?.hiNormal, l = c != null, i = o != null, p = l && i ? ` (${c} - ${o})` : l ? ` (>${c})` : i ? ` (<${o})` : "", a = e.interpretation && e.interpretation.toUpperCase() === we;
30
30
  return { units: s, rangeString: p, isAbnormal: a };
31
- }, P = ({
31
+ }, k = ({
32
32
  member: e,
33
33
  depth: s = 0
34
34
  }) => {
@@ -44,7 +44,7 @@ const ue = "_formsTableBody_1pd36_1", pe = "_customAccordianItem_1pd36_6", _e =
44
44
  }
45
45
  ),
46
46
  /* @__PURE__ */ t("div", { className: r.nestedGroupMembers, children: e.groupMembers?.map((a) => /* @__PURE__ */ t(
47
- P,
47
+ k,
48
48
  {
49
49
  member: a,
50
50
  depth: s + 1
@@ -52,7 +52,7 @@ const ue = "_formsTableBody_1pd36_1", pe = "_customAccordianItem_1pd36_6", _e =
52
52
  `${a.concept.uuid}`
53
53
  )) })
54
54
  ] });
55
- const { units: m, rangeString: i, isAbnormal: p } = x(e);
55
+ const { units: l, rangeString: i, isAbnormal: p } = x(e);
56
56
  return /* @__PURE__ */ _(
57
57
  "div",
58
58
  {
@@ -81,18 +81,18 @@ const ue = "_formsTableBody_1pd36_1", pe = "_customAccordianItem_1pd36_6", _e =
81
81
  ),
82
82
  children: [
83
83
  e.valueAsString,
84
- m && ` ${m}`
84
+ l && ` ${l}`
85
85
  ]
86
86
  }
87
87
  )
88
88
  ]
89
89
  }
90
90
  );
91
- }, Ie = ({
91
+ }, Be = ({
92
92
  observation: e,
93
93
  index: s
94
94
  }) => {
95
- const c = e.groupMembers && e.groupMembers.length > 0, { units: o, rangeString: m, isAbnormal: i } = x(e);
95
+ const c = e.groupMembers && e.groupMembers.length > 0, { units: o, rangeString: l, isAbnormal: i } = x(e);
96
96
  return /* @__PURE__ */ _(
97
97
  "div",
98
98
  {
@@ -112,12 +112,12 @@ const ue = "_formsTableBody_1pd36_1", pe = "_customAccordianItem_1pd36_6", _e =
112
112
  ),
113
113
  children: [
114
114
  e.conceptNameToDisplay,
115
- !c && m && /* @__PURE__ */ t("span", { className: r.rangeInfo, children: m })
115
+ !c && l && /* @__PURE__ */ t("span", { className: r.rangeInfo, children: l })
116
116
  ]
117
117
  }
118
118
  ),
119
119
  c ? /* @__PURE__ */ t("div", { className: r.groupMembers, children: e.groupMembers?.map((p) => /* @__PURE__ */ t(
120
- P,
120
+ k,
121
121
  {
122
122
  member: p,
123
123
  depth: 0
@@ -152,18 +152,18 @@ const ue = "_formsTableBody_1pd36_1", pe = "_customAccordianItem_1pd36_6", _e =
152
152
  encounterUuids: s,
153
153
  config: c
154
154
  }) => {
155
- const { t: o } = ie(), m = W(), [i, p] = q(!1), [a, O] = q(null), k = c?.numberOfVisits, R = X(
155
+ const { t: o } = ie(), l = Y(), [i, p] = q(!1), [a, O] = q(null), H = c?.numberOfVisits, D = W(
156
156
  e,
157
157
  s
158
158
  ), {
159
159
  data: y = [],
160
- isLoading: C,
161
- isError: D,
162
- error: H
160
+ isLoading: R,
161
+ isError: C,
162
+ error: K
163
163
  } = g({
164
- queryKey: ["forms", m, e],
165
- queryFn: () => Z(m, void 0, k),
166
- enabled: !!m && !R
164
+ queryKey: ["forms", l, e],
165
+ queryFn: () => Z(l, void 0, H),
166
+ enabled: !!l && !D
167
167
  }), F = b(() => !s || s.length === 0 ? y : y.filter(
168
168
  (n) => s.includes(n.encounterUuid)
169
169
  ), [y, s]), { data: T = [] } = g({
@@ -176,8 +176,8 @@ const ue = "_formsTableBody_1pd36_1", pe = "_customAccordianItem_1pd36_6", _e =
176
176
  if (a)
177
177
  return v(a.formName);
178
178
  }, [a, v]), {
179
- data: Be,
180
- isLoading: j,
179
+ data: Ie,
180
+ isLoading: P,
181
181
  error: E
182
182
  } = g({
183
183
  queryKey: ["formMetadata", M],
@@ -185,21 +185,21 @@ const ue = "_formsTableBody_1pd36_1", pe = "_customAccordianItem_1pd36_6", _e =
185
185
  enabled: !!M && i
186
186
  }), {
187
187
  data: L,
188
- isLoading: K,
188
+ isLoading: j,
189
189
  error: w
190
190
  } = g({
191
191
  queryKey: ["formsEncounter", a?.encounterUuid],
192
192
  queryFn: () => oe(a.encounterUuid, !0),
193
193
  enabled: !!a?.encounterUuid && i
194
- }), I = b(() => !L?.observations || !a?.formName ? [] : L.observations.filter(
194
+ }), B = b(() => !L?.observations || !a?.formName ? [] : L.observations.filter(
195
195
  (u) => "formFieldPath" in u && typeof u.formFieldPath == "string" && u.formFieldPath.includes(a.formName)
196
- ), [L?.observations, a?.formName]), B = b(
196
+ ), [L?.observations, a?.formName]), I = b(
197
197
  () => [
198
198
  { key: "recordedOn", header: o("FORM_RECORDED_ON") },
199
199
  { key: "recordedBy", header: o("FORM_RECORDED_BY") }
200
200
  ],
201
201
  [o]
202
- ), z = b(
202
+ ), J = b(
203
203
  () => [
204
204
  { key: "recordedOn", sortable: !0 },
205
205
  { key: "recordedBy", sortable: !0 }
@@ -207,32 +207,32 @@ const ue = "_formsTableBody_1pd36_1", pe = "_customAccordianItem_1pd36_6", _e =
207
207
  []
208
208
  ), V = b(() => {
209
209
  const n = F.reduce(
210
- (d, l) => {
211
- const f = l.formName;
210
+ (d, m) => {
211
+ const f = m.formName;
212
212
  d[f] ??= [];
213
- const A = l.providers.map((Y) => Y.providerName).filter(Boolean).join(", ");
213
+ const A = m.providers.map((z) => z.providerName).filter(Boolean).join(", ");
214
214
  return d[f].push({
215
- id: l.encounterUuid,
216
- formName: l.formName,
217
- recordedOn: te(l.encounterDateTime, o, le).formattedResult,
215
+ id: m.encounterUuid,
216
+ formName: m.formName,
217
+ recordedOn: te(m.encounterDateTime, o, me).formattedResult,
218
218
  recordedBy: A ?? "--",
219
- encounterDateTime: l.encounterDateTime,
220
- encounterUuid: l.encounterUuid
219
+ encounterDateTime: m.encounterDateTime,
220
+ encounterUuid: m.encounterUuid
221
221
  }), d;
222
222
  },
223
223
  {}
224
224
  );
225
225
  return Object.entries(n).map(
226
- ([d, l]) => ({
226
+ ([d, m]) => ({
227
227
  formName: d,
228
- records: l.sort(
228
+ records: m.sort(
229
229
  (f, A) => A.encounterDateTime - f.encounterDateTime
230
230
  )
231
231
  })
232
- ).sort((d, l) => d.formName.localeCompare(l.formName));
232
+ ).sort((d, m) => d.formName.localeCompare(m.formName));
233
233
  }, [F, o]), S = N((n) => {
234
234
  O(n), p(!0);
235
- }, []), Q = N(() => {
235
+ }, []), X = N(() => {
236
236
  p(!1), O(null);
237
237
  }, []), G = N(
238
238
  (n, u) => {
@@ -247,22 +247,22 @@ const ue = "_formsTableBody_1pd36_1", pe = "_customAccordianItem_1pd36_6", _e =
247
247
  },
248
248
  [S]
249
249
  );
250
- return /* @__PURE__ */ _(J, { children: [
251
- /* @__PURE__ */ t("div", { "data-testid": "forms-table", children: C || D || V.length === 0 || R ? /* @__PURE__ */ t(
250
+ return /* @__PURE__ */ _(Q, { children: [
251
+ /* @__PURE__ */ t("div", { "data-testid": "forms-table", children: R || C || V.length === 0 || D ? /* @__PURE__ */ t(
252
252
  $,
253
253
  {
254
- headers: B,
254
+ headers: I,
255
255
  ariaLabel: o("FORMS_HEADING"),
256
256
  rows: [],
257
- loading: C,
258
- errorStateMessage: D ? H?.message : void 0,
257
+ loading: R,
258
+ errorStateMessage: C ? K?.message : void 0,
259
259
  emptyStateMessage: o("FORMS_UNAVAILABLE"),
260
260
  renderCell: G,
261
261
  className: r.formsTableBody,
262
262
  "data-testid": "sortable-data-table"
263
263
  }
264
264
  ) : /* @__PURE__ */ t(ne, { align: "start", children: V.map((n, u) => {
265
- const { formName: d, records: l } = n;
265
+ const { formName: d, records: m } = n;
266
266
  return /* @__PURE__ */ t(
267
267
  se,
268
268
  {
@@ -273,12 +273,12 @@ const ue = "_formsTableBody_1pd36_1", pe = "_customAccordianItem_1pd36_6", _e =
273
273
  children: /* @__PURE__ */ t(
274
274
  $,
275
275
  {
276
- headers: B,
276
+ headers: I,
277
277
  ariaLabel: o("FORMS_HEADING"),
278
- rows: l,
278
+ rows: m,
279
279
  loading: !1,
280
280
  errorStateMessage: "",
281
- sortable: z,
281
+ sortable: J,
282
282
  emptyStateMessage: o("FORMS_UNAVAILABLE"),
283
283
  renderCell: G,
284
284
  className: r.formsTableBody,
@@ -289,20 +289,20 @@ const ue = "_formsTableBody_1pd36_1", pe = "_customAccordianItem_1pd36_6", _e =
289
289
  d
290
290
  );
291
291
  }) }) }),
292
- i && a && me(
292
+ i && a && le(
293
293
  /* @__PURE__ */ t(
294
294
  ce,
295
295
  {
296
296
  id: "formDetailsModal",
297
297
  open: i,
298
- onRequestClose: Q,
298
+ onRequestClose: X,
299
299
  modalHeading: a.formName,
300
300
  modalLabel: `${a.recordedOn} | ${a.recordedBy}`,
301
301
  passiveModal: !0,
302
302
  size: "md",
303
303
  testId: "form-details-modal",
304
- children: /* @__PURE__ */ t("div", { className: r.formContent, children: j || K ? /* @__PURE__ */ t(de, { width: "100%", lineCount: 3 }) : E ? /* @__PURE__ */ t("div", { children: U(E).message ?? o("ERROR_FETCHING_FORM_METADATA") }) : w ? /* @__PURE__ */ t("div", { children: U(w).message ?? o("ERROR_FETCHING_FORM_DATA") }) : I.length > 0 ? /* @__PURE__ */ t("div", { className: r.formDetailsContainer, children: I.map((n, u) => /* @__PURE__ */ t(
305
- Ie,
304
+ children: /* @__PURE__ */ t("div", { className: r.formContent, children: P || j ? /* @__PURE__ */ t(de, { width: "100%", lineCount: 3 }) : E ? /* @__PURE__ */ t("div", { children: U(E).message ?? o("ERROR_FETCHING_FORM_METADATA") }) : w ? /* @__PURE__ */ t("div", { children: U(w).message ?? o("ERROR_FETCHING_FORM_DATA") }) : B.length > 0 ? /* @__PURE__ */ t("div", { className: r.formDetailsContainer, children: B.map((n, u) => /* @__PURE__ */ t(
305
+ Be,
306
306
  {
307
307
  observation: n,
308
308
  index: u
@@ -1,9 +1,9 @@
1
1
  import { jsx as d, jsxs as T } from "react/jsx-runtime";
2
- import { g as U, h as $, j as F, v as L, m as x, k as G, u as k, n as q, G as P, O as Q, y as K, P as H } from "./index-BSGBBl-w.js";
3
- import { useQueries as j, useQuery as Y } from "@tanstack/react-query";
2
+ import { Y as B, H as $, d as U, L as F, e as x, V as K, u as q, f as H, g as Q, A as k, S as G, K as P } from "./index-CQcHNtl1.js";
3
+ import { useQueries as Y, useQuery as j } from "@tanstack/react-query";
4
4
  import { useRef as z, useEffect as R, useMemo as m } from "react";
5
5
  import { useTranslation as _ } from "react-i18next";
6
- const J = "normal", W = "http://terminology.hl7.org/CodeSystem/referencerange-meaning", X = "A", Z = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", ee = (e, n) => e?.date ? U(e.date, n).formattedResult : n("DATE_ERROR_PARSE"), te = (e) => {
6
+ const J = "normal", W = "http://terminology.hl7.org/CodeSystem/referencerange-meaning", X = "A", Z = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", ee = (e, n) => e?.date ? B(e.date, n).formattedResult : n("DATE_ERROR_PARSE"), te = (e) => {
7
7
  if (!e.observationValue?.value)
8
8
  return "";
9
9
  const { value: n, unit: t } = e.observationValue;
@@ -34,7 +34,7 @@ const J = "normal", W = "http://terminology.hl7.org/CodeSystem/referencerange-me
34
34
  header: ne(e),
35
35
  value: te(e),
36
36
  provider: e.encounter?.provider
37
- }), b = (e) => (typeof e == "string" ? e : e?.reference)?.split("/")?.pop();
37
+ }), h = (e) => (typeof e == "string" ? e : e?.reference)?.split("/")?.pop();
38
38
  function oe(e) {
39
39
  return !e.interpretation || e.interpretation.length === 0 ? !1 : e.interpretation.some(
40
40
  (n) => n.coding?.some(
@@ -114,7 +114,7 @@ function se(e, n) {
114
114
  };
115
115
  }
116
116
  function I(e, n, t) {
117
- const r = b(e.encounter), o = (e.hasMember ?? []).map((i) => b(i)).map((i) => i ? t.get(i) : void 0).filter((i) => !!i).map(
117
+ const r = h(e.encounter), o = (e.hasMember ?? []).map((i) => h(i)).map((i) => i ? t.get(i) : void 0).filter((i) => !!i).map(
118
118
  (i) => I(i, n, t)
119
119
  );
120
120
  return {
@@ -131,7 +131,7 @@ function ae(e) {
131
131
  const n = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set();
132
132
  e.entry?.forEach(({ resource: s }) => {
133
133
  s?.id && (s.resourceType === "Encounter" ? n.set(s.id, s) : s.resourceType === "Observation" && (t.set(s.id, s), s.hasMember?.forEach((a) => {
134
- const u = b(a);
134
+ const u = h(a);
135
135
  u && r.add(u);
136
136
  })));
137
137
  });
@@ -179,14 +179,14 @@ function ce(e) {
179
179
  });
180
180
  }
181
181
  const N = (e, n, t) => {
182
- const r = re(e, n), o = r.value, i = F(o);
182
+ const r = re(e, n), o = r.value, i = U(o);
183
183
  let s = o;
184
- i === "Image" && (s = /* @__PURE__ */ d(x, { imageSrc: o, alt: o, id: `${o}-img` })), i === "Video" && (s = /* @__PURE__ */ d(G, { id: `${o}-video`, videoSrc: o }));
184
+ i === "Image" && (s = /* @__PURE__ */ d(x, { imageSrc: o, alt: o, id: `${o}-img` })), i === "Video" && (s = /* @__PURE__ */ d(K, { id: `${o}-video`, videoSrc: o }));
185
185
  const a = t("OBSERVATIONS_RECORDED_BY", {
186
186
  provider: r.provider
187
187
  }), u = e.observationValue?.isAbnormal ? `abnormal-obs-${e.id}` : `obs-${e.id}`;
188
188
  return /* @__PURE__ */ d(
189
- L,
189
+ F,
190
190
  {
191
191
  header: r.header,
192
192
  value: s,
@@ -246,20 +246,20 @@ const N = (e, n, t) => {
246
246
  observations: ve,
247
247
  title: pe
248
248
  }, fe = (e) => ["conceptUuid", e], ge = (e, n) => ["observations", e, ...n], Oe = ({ config: e }) => {
249
- const n = e, { conceptNames: t = [], conceptUuid: r = [] } = n, o = z(/* @__PURE__ */ new Set()), i = k(), { addNotification: s } = q(), { t: a } = _(), u = j({
249
+ const n = e, { conceptNames: t = [], conceptUuid: r = [] } = n, o = z(/* @__PURE__ */ new Set()), i = q(), { addNotification: s } = H(), { t: a } = _(), u = Y({
250
250
  queries: t.map((c) => ({
251
251
  queryKey: fe(c),
252
- queryFn: () => P(c),
252
+ queryFn: () => Q(c),
253
253
  enabled: !!c
254
254
  }))
255
255
  });
256
256
  R(() => {
257
257
  u.forEach((c, f) => {
258
258
  if (c.isError && !o.current.has(f)) {
259
- const B = t[f];
259
+ const M = t[f];
260
260
  s({
261
261
  title: a("ERROR_DEFAULT_TITLE"),
262
- message: a("ERROR_FETCHING_CONCEPT", { conceptName: B }),
262
+ message: a("ERROR_FETCHING_CONCEPT", { conceptName: M }),
263
263
  type: "error"
264
264
  }), o.current.add(f);
265
265
  } else c.isError || o.current.delete(f);
@@ -267,29 +267,29 @@ const N = (e, n, t) => {
267
267
  }, [u, t]);
268
268
  const l = m(() => u.map((c) => c.data?.uuid).filter((c) => !!c), [u]), p = m(() => [.../* @__PURE__ */ new Set([...l, ...r])], [l, r]), v = m(() => t.length === 0 ? !0 : u.every((c) => !c.isLoading), [u, t.length]), {
269
269
  data: g,
270
- isLoading: D,
271
- isError: h
272
- } = Y({
270
+ isLoading: A,
271
+ isError: b
272
+ } = j({
273
273
  queryKey: ge(i, p),
274
- queryFn: () => Q(i, p),
274
+ queryFn: () => k(i, p),
275
275
  enabled: !!i && p.length > 0 && v
276
276
  });
277
277
  R(() => {
278
- h && s({
278
+ b && s({
279
279
  title: a("ERROR_DEFAULT_TITLE"),
280
280
  message: a("ERROR_FETCHING_OBSERVATIONS"),
281
281
  type: "error"
282
282
  });
283
- }, [h]);
283
+ }, [b]);
284
284
  const y = m(() => {
285
285
  if (!g) return [];
286
286
  const c = ae(g), f = ue(c);
287
287
  return ce(f);
288
- }, [g]), A = [
288
+ }, [g]), D = [
289
289
  { key: "name", header: "name" },
290
290
  { key: "value", header: "value" },
291
291
  { key: "form", header: "form" }
292
- ], E = D || !v, O = h && v, w = (!g || g.entry?.length === 0 || p.length === 0) && v, C = O ? a("ERROR_FETCHING_OBSERVATIONS") : null, V = w ? a("NO_OBSERVATIONS_FOUND") : void 0, M = y.length > 0 && !E && !O;
292
+ ], E = A || !v, O = b && v, w = (!g || g.entry?.length === 0 || p.length === 0) && v, C = O ? a("ERROR_FETCHING_OBSERVATIONS") : null, V = w ? a("NO_OBSERVATIONS_FOUND") : void 0, L = y.length > 0 && !E && !O;
293
293
  return /* @__PURE__ */ T(
294
294
  "div",
295
295
  {
@@ -299,7 +299,7 @@ const N = (e, n, t) => {
299
299
  className: S.observations,
300
300
  children: [
301
301
  /* @__PURE__ */ d(
302
- K,
302
+ G,
303
303
  {
304
304
  id: "observations-title",
305
305
  testId: "observations-title-test-id",
@@ -308,10 +308,10 @@ const N = (e, n, t) => {
308
308
  children: /* @__PURE__ */ d("p", { children: a(n.titleTranslationKey) })
309
309
  }
310
310
  ),
311
- M ? /* @__PURE__ */ d(de, { groupedData: y }) : /* @__PURE__ */ d(
312
- H,
311
+ L ? /* @__PURE__ */ d(de, { groupedData: y }) : /* @__PURE__ */ d(
312
+ P,
313
313
  {
314
- headers: A,
314
+ headers: D,
315
315
  rows: [],
316
316
  ariaLabel: a("OBSERVATIONS"),
317
317
  loading: E,