@bahmni/registration-app 0.0.1-dev.348 → 0.0.1-dev.349

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,7 +1,7 @@
1
1
  import { jsx as r, jsxs as h, Fragment as x } from "react/jsx-runtime";
2
- import { f as G, u as W, o as X, C as Y, X as J, V as Z, Q as ee, d as te } from "./index-BGWHjTc3.js";
2
+ import { f as G, u as W, o as X, z as Y, X as J, V as Z, Q as ee, d as te } from "./index-CTlXew_3.js";
3
3
  import { useQuery as ae } from "@tanstack/react-query";
4
- import { useState as l, useCallback as _, useEffect as C, useMemo as p } from "react";
4
+ import { useState as l, useCallback as _, useEffect as D, useMemo as p } from "react";
5
5
  const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTable-module_viewAttachmentsLink__aQ1on", re = "DocumentsTable-module_documentViewerContainer__F5m8D", de = "DocumentsTable-module_attachmentItem__17KA7", se = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", ce = "DocumentsTable-module_documentIframe__ptq5I", le = "DocumentsTable-module_documentImage__KQVgS", d = {
6
6
  documentsTableBody: ne,
7
7
  viewAttachmentsLink: oe,
@@ -36,20 +36,20 @@ const Te = [
36
36
  ], he = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, B = (a) => a.attachments.length > 0 ? a.attachments : a.documentUrl ? [{ url: a.documentUrl, contentType: a.contentType }] : [], fe = ({ config: a, encounterUuids: E }) => {
37
37
  const [s, w] = l(!1), [o, U] = l(
38
38
  null
39
- ), [V, D] = l(
39
+ ), [V, I] = l(
40
40
  /* @__PURE__ */ new Set()
41
- ), g = G(), { t: n } = W(), { addNotification: L } = X(), $ = Number(a?.pageSize) || 5, [I, O] = l(1), [u, k] = l($), [F, A] = l(void 0), M = _((e) => {
41
+ ), g = G(), { t: n } = W(), { addNotification: L } = X(), $ = Number(a?.pageSize) || 5, [O, C] = l(1), [u, k] = l($), [F, A] = l(void 0), M = _((e) => {
42
42
  U(e), w(!0);
43
43
  }, []), q = _(() => {
44
- w(!1), U(null), D(/* @__PURE__ */ new Set());
44
+ w(!1), U(null), I(/* @__PURE__ */ new Set());
45
45
  }, []), v = _((e) => {
46
- D((t) => new Set(t).add(e));
46
+ I((t) => new Set(t).add(e));
47
47
  }, []), { data: i, isLoading: H, isError: b, error: y } = ae({
48
48
  queryKey: [
49
49
  "documents",
50
50
  g,
51
51
  E,
52
- I,
52
+ O,
53
53
  u
54
54
  ],
55
55
  enabled: !!g,
@@ -57,20 +57,20 @@ const Te = [
57
57
  g,
58
58
  E,
59
59
  u,
60
- I
60
+ O
61
61
  )
62
62
  });
63
- C(() => {
63
+ D(() => {
64
64
  i && A(i.total);
65
- }, [i]), C(() => {
66
- O(1), A(void 0);
67
- }, [g]), C(() => {
65
+ }, [i]), D(() => {
66
+ C(1), A(void 0);
67
+ }, [g]), D(() => {
68
68
  b && L({
69
69
  title: n("ERROR_DEFAULT_TITLE"),
70
70
  message: y?.message ?? "",
71
71
  type: "error"
72
72
  });
73
- }, [b, y, L, n]), C(() => {
73
+ }, [b, y, L, n]), D(() => {
74
74
  const e = new AbortController();
75
75
  return (async () => {
76
76
  if (!s || !o) return;
@@ -86,18 +86,18 @@ const Te = [
86
86
  N instanceof Error && N.name !== "AbortError" && t.add(c);
87
87
  }
88
88
  }
89
- e.signal.aborted || D(t);
89
+ e.signal.aborted || I(t);
90
90
  })(), () => e.abort();
91
91
  }, [s, o]);
92
- const Q = _(
92
+ const z = _(
93
93
  (e, t) => {
94
- t !== u ? (k(t), O(1), A(void 0)) : O(e);
94
+ t !== u ? (k(t), C(1), A(void 0)) : C(e);
95
95
  },
96
96
  [u]
97
97
  ), f = p(
98
98
  () => a?.fields ?? Te,
99
99
  [a?.fields]
100
- ), j = p(() => [...i?.documents ?? []].sort((e, t) => !e.uploadedOn && !t.uploadedOn ? 0 : e.uploadedOn ? t.uploadedOn ? new Date(t.uploadedOn).getTime() - new Date(e.uploadedOn).getTime() : -1 : 1), [i]), P = p(() => ie(f, n), [f, n]), z = p(
100
+ ), Q = p(() => [...i?.documents ?? []].sort((e, t) => !e.uploadedOn && !t.uploadedOn ? 0 : e.uploadedOn ? t.uploadedOn ? new Date(t.uploadedOn).getTime() - new Date(e.uploadedOn).getTime() : -1 : 1), [i]), j = p(() => ie(f, n), [f, n]), P = p(
101
101
  () => f.map((e) => ({
102
102
  key: e,
103
103
  sortable: e !== "attachments"
@@ -141,20 +141,20 @@ const Te = [
141
141
  /* @__PURE__ */ r("div", { "data-testid": "documents-table", children: /* @__PURE__ */ r(
142
142
  ee,
143
143
  {
144
- headers: P,
144
+ headers: j,
145
145
  ariaLabel: n("DOCUMENTS_TABLE_HEADING"),
146
- rows: j,
146
+ rows: Q,
147
147
  loading: H,
148
148
  errorStateMessage: b ? y?.message : null,
149
- sortable: z,
149
+ sortable: P,
150
150
  emptyStateMessage: n("DOCUMENTS_NO_RECORDS"),
151
151
  renderCell: K,
152
152
  className: d.documentsTableBody,
153
153
  dataTestId: "documents-table",
154
154
  pageSize: u,
155
155
  totalItems: F,
156
- page: I,
157
- onPageChange: Q
156
+ page: O,
157
+ onPageChange: z
158
158
  }
159
159
  ) }),
160
160
  s && o && /* @__PURE__ */ r(
@@ -0,0 +1,293 @@
1
+ import { jsx as i, jsxs as Q, Fragment as he } from "react/jsx-runtime";
2
+ import { u as ge, f as pe, a as Ne, M as Oe, r as Te, C as be, w as Ee, _ as Ie, b as _e, G as Ae, c as ve, S as Fe, n as z, V as Me, E as K, e as x, X as Se, Q as P, g as Ce, Y as Re, d as Le, T as Ue, W as Be } from "./index-CTlXew_3.js";
3
+ import { useQueryClient as De, useQuery as T } from "@tanstack/react-query";
4
+ import { useState as X, useMemo as d, useCallback as l } from "react";
5
+ const qe = "FormsTable-module_formsTableBody__SvGha", ke = "FormsTable-module_modalHeading__wnTmA", we = "FormsTable-module_customAccordianItem__isszs", b = {
6
+ formsTableBody: qe,
7
+ modalHeading: ke,
8
+ customAccordianItem: we
9
+ }, Ve = "startConsultation", Qe = ({
10
+ episodeOfCareUuids: S,
11
+ encounterUuids: u,
12
+ config: Y,
13
+ disableActions: W = !1,
14
+ activeEncounterUuid: h = null
15
+ }) => {
16
+ const { t: n } = ge(), c = pe(), [g, C] = X(!1), [s, R] = X(null), {
17
+ numberOfVisits: Z,
18
+ hideThumbnail: J = !1,
19
+ forms: p
20
+ } = Y ?? {}, ee = Ne(
21
+ Be.EDIT_OBSERVATIONS
22
+ ), { userPrivileges: N } = Oe(), E = ee && !W && !!h, L = Te(
23
+ S,
24
+ u
25
+ ), re = De(), {
26
+ data: U = [],
27
+ isLoading: B,
28
+ isError: D,
29
+ error: ae,
30
+ refetch: oe
31
+ } = T({
32
+ queryKey: ["forms", c, S],
33
+ queryFn: () => be(c, void 0, Z),
34
+ enabled: !!c && !L
35
+ }), q = d(() => {
36
+ let e = U;
37
+ return u && u.length > 0 && (e = e.filter(
38
+ (r) => u.includes(r.encounterUuid)
39
+ )), Array.isArray(p) && p.length > 0 && (e = e.filter(
40
+ (r) => p.some((a) => a.toLowerCase() === r.formName.toLowerCase())
41
+ )), e;
42
+ }, [U, u, p]), { data: O = [] } = T({
43
+ queryKey: ["observationForms"],
44
+ queryFn: () => Ee()
45
+ }), k = l(
46
+ (e) => {
47
+ const r = O.find((o) => o.name === e);
48
+ if (!r?.privileges || r.privileges.length === 0) return !0;
49
+ if (!N || N.length === 0) return !1;
50
+ const a = new Set(N.map((o) => o.name));
51
+ return r.privileges.some(
52
+ (o) => a.has(o.privilegeName) && o.editable
53
+ );
54
+ },
55
+ [O, N]
56
+ ), f = l(
57
+ (e) => !h || e.encounterUuid !== h ? !1 : k(e.formName),
58
+ [h, k]
59
+ ), w = l(
60
+ (e) => O.find((r) => r.name === e)?.uuid,
61
+ [O]
62
+ ), I = d(() => {
63
+ if (s)
64
+ return w(s.formName);
65
+ }, [s, w]), {
66
+ data: m,
67
+ isLoading: te,
68
+ isError: se,
69
+ error: _
70
+ } = T({
71
+ queryKey: ["formMetadata", I],
72
+ queryFn: () => Ie(I),
73
+ enabled: !!I && g
74
+ }), {
75
+ data: A,
76
+ isLoading: ne,
77
+ isError: ie,
78
+ error: v
79
+ } = T({
80
+ queryKey: ["formsEncounterFHIR", s?.encounterUuid],
81
+ queryFn: () => _e(s.encounterUuid),
82
+ enabled: !!s?.encounterUuid && g
83
+ });
84
+ Ae(
85
+ (e) => {
86
+ e.patientUUID === c && e.updatedConcepts.size > 0 && (oe(), re.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
87
+ },
88
+ [c]
89
+ );
90
+ const de = d(() => !A?.entry || !s?.formName ? [] : A.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => ve(e) ? Fe(e)?.toLowerCase() === s.formName.toLowerCase() : !0), [A, s?.formName]), le = d(() => {
91
+ if (!m?.schema) return;
92
+ const e = [], r = (a) => {
93
+ (a ?? []).forEach((o) => {
94
+ const t = o;
95
+ t.id != null && e.push(String(t.id)), t.controls && r(t.controls);
96
+ });
97
+ };
98
+ return r(
99
+ m.schema.controls ?? []
100
+ ), e.length > 0 ? e : void 0;
101
+ }, [m]), me = d(() => {
102
+ if (!m?.schema) return;
103
+ const e = {}, r = (a, o) => {
104
+ for (const t of a)
105
+ if (t.type === "section") {
106
+ const M = t.label?.value ?? "Section";
107
+ r(t.controls ?? [], M);
108
+ } else
109
+ t.id != null && o && (e[String(t.id)] = o), t.controls && r(t.controls, o);
110
+ };
111
+ return r(
112
+ m.schema.controls ?? [],
113
+ null
114
+ ), Object.keys(e).length > 0 ? e : void 0;
115
+ }, [m]), ue = d(() => {
116
+ if (_)
117
+ return z(_).message;
118
+ if (v)
119
+ return z(v).message;
120
+ }, [_, v]), y = d(
121
+ () => [
122
+ { key: "recordedOn", header: n("RECORDED_ON") },
123
+ { key: "recordedBy", header: n("RECORDED_BY") }
124
+ ],
125
+ [n]
126
+ ), V = d(
127
+ () => [...y, { key: "actions", header: n("ACTIONS") }],
128
+ [y, n]
129
+ ), ce = l(
130
+ (e) => E && e.some((r) => f(r)) ? V : y,
131
+ [E, f, V, y]
132
+ ), fe = y, ye = d(
133
+ () => [
134
+ { key: "recordedOn", sortable: !0 },
135
+ { key: "recordedBy", sortable: !0 }
136
+ ],
137
+ []
138
+ ), H = d(() => {
139
+ const e = q.reduce(
140
+ (r, a) => {
141
+ const o = a.formName;
142
+ r[o] ??= [];
143
+ const t = a.providers.map((M) => M.providerName).filter(Boolean).join(", ");
144
+ return r[o].push({
145
+ id: a.encounterUuid,
146
+ formName: a.formName,
147
+ recordedOn: Me(a.encounterDateTime, n, !0).formattedResult,
148
+ recordedBy: t ?? "--",
149
+ encounterDateTime: a.encounterDateTime,
150
+ encounterUuid: a.encounterUuid
151
+ }), r;
152
+ },
153
+ {}
154
+ );
155
+ return Object.entries(e).map(
156
+ ([r, a]) => ({
157
+ formName: r,
158
+ records: a.sort(
159
+ (o, t) => t.encounterDateTime - o.encounterDateTime
160
+ )
161
+ })
162
+ ).sort((r, a) => r.formName.localeCompare(a.formName));
163
+ }, [q, n]), G = l((e) => {
164
+ R(e), C(!0);
165
+ }, []), $ = l(() => {
166
+ C(!1), R(null);
167
+ }, []), F = l((e) => {
168
+ globalThis.dispatchEvent(
169
+ new CustomEvent(Ve, {
170
+ detail: {
171
+ editOnly: "observationForms",
172
+ editTitle: "EDIT_OBSERVATION_FORM_TITLE",
173
+ editEncounterUuid: e.encounterUuid,
174
+ editFormName: e.formName,
175
+ directFormMode: !0
176
+ }
177
+ })
178
+ );
179
+ }, []), j = l(
180
+ (e, r) => {
181
+ switch (r) {
182
+ case "recordedOn":
183
+ return /* @__PURE__ */ i(Se, { onClick: () => G(e), children: e.recordedOn });
184
+ case "recordedBy":
185
+ return e.recordedBy;
186
+ case "actions":
187
+ return f(e) ? /* @__PURE__ */ i(
188
+ K,
189
+ {
190
+ label: n("EDIT_OBSERVATION_FORM"),
191
+ kind: "ghost",
192
+ size: "sm",
193
+ testId: `edit-form-${e.encounterUuid}`,
194
+ onClick: () => F(e),
195
+ children: /* @__PURE__ */ i(x, {})
196
+ }
197
+ ) : null;
198
+ default:
199
+ return null;
200
+ }
201
+ },
202
+ [G, F, f, n]
203
+ );
204
+ return /* @__PURE__ */ Q(he, { children: [
205
+ /* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: B || D || H.length === 0 || L ? /* @__PURE__ */ i(
206
+ P,
207
+ {
208
+ headers: fe,
209
+ ariaLabel: n("FORMS_HEADING"),
210
+ rows: [],
211
+ loading: B,
212
+ errorStateMessage: D ? ae?.message : void 0,
213
+ emptyStateMessage: n("FORMS_UNAVAILABLE"),
214
+ renderCell: j,
215
+ className: b.formsTableBody,
216
+ dataTestId: "forms-table"
217
+ }
218
+ ) : /* @__PURE__ */ i(Ce, { align: "start", children: H.map((e, r) => {
219
+ const { formName: a, records: o } = e, t = ce(o);
220
+ return /* @__PURE__ */ i(
221
+ Re,
222
+ {
223
+ title: a,
224
+ className: b.customAccordianItem,
225
+ testId: `accordian-title-${a}`,
226
+ open: r === 0,
227
+ children: /* @__PURE__ */ i(
228
+ P,
229
+ {
230
+ headers: t,
231
+ ariaLabel: n("FORMS_HEADING"),
232
+ rows: o,
233
+ loading: !1,
234
+ errorStateMessage: "",
235
+ sortable: ye,
236
+ emptyStateMessage: n("FORMS_UNAVAILABLE"),
237
+ renderCell: j,
238
+ className: b.formsTableBody,
239
+ dataTestId: `forms-table-${a}`
240
+ }
241
+ )
242
+ },
243
+ a
244
+ );
245
+ }) }) }),
246
+ g && s && /* @__PURE__ */ i(
247
+ Le,
248
+ {
249
+ id: "modalIdForActionAreaLayout",
250
+ portalId: "main-display-area",
251
+ open: g,
252
+ onRequestClose: $,
253
+ modalHeading: /* @__PURE__ */ Q("div", { className: b.modalHeading, children: [
254
+ /* @__PURE__ */ i("span", { children: s.formName }),
255
+ E && f(s) && /* @__PURE__ */ i(
256
+ K,
257
+ {
258
+ label: n("EDIT_OBSERVATION_FORM"),
259
+ kind: "ghost",
260
+ size: "sm",
261
+ testId: `edit-form-modal-${s.encounterUuid}`,
262
+ onClick: () => {
263
+ $(), F(s);
264
+ },
265
+ children: /* @__PURE__ */ i(x, {})
266
+ }
267
+ )
268
+ ] }),
269
+ modalLabel: `${s.recordedOn} | ${s.recordedBy}`,
270
+ passiveModal: !0,
271
+ size: "md",
272
+ testId: "form-details-modal",
273
+ children: /* @__PURE__ */ i(
274
+ Ue,
275
+ {
276
+ observations: de,
277
+ isLoading: te || ne,
278
+ isError: se || ie,
279
+ errorMessage: ue,
280
+ emptyStateMessage: n("NO_FORM_DATA_AVAILABLE"),
281
+ testIdPrefix: s.formName,
282
+ hideThumbnail: J,
283
+ controlOrder: le,
284
+ sectionMap: me
285
+ }
286
+ )
287
+ }
288
+ )
289
+ ] });
290
+ };
291
+ export {
292
+ Qe as default
293
+ };
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-C_Qm0IGA.js";
2
- import { p, q as d, s as e } from "./index-BGWHjTc3.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-BfNWpVcW.js";
2
+ import { p, q as d, t as e } from "./index-CTlXew_3.js";
3
3
  var f = (a) => {
4
4
  const [r, t] = c({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,9 +1,9 @@
1
- import { c as l, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-C_Qm0IGA.js";
2
- import { p as v, q as C, s as e } from "./index-BGWHjTc3.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-BfNWpVcW.js";
2
+ import { p as v, q as C, t as e } from "./index-CTlXew_3.js";
3
3
  var h = (t) => {
4
- const [r, o] = l({
4
+ const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
6
- }), a = v(), s = C(() => {
6
+ }), a = v(), l = C(() => {
7
7
  const n = r.theme_preference || c;
8
8
  return n !== "system" ? n : a();
9
9
  });
@@ -16,7 +16,7 @@ var h = (t) => {
16
16
  setLocalStore: o,
17
17
  get children() {
18
18
  return e(i.Provider, {
19
- value: s,
19
+ value: l,
20
20
  get children() {
21
21
  return e(m, {
22
22
  get children() {
@@ -1,5 +1,5 @@
1
- import { jsxs as S, jsx as u } from "react/jsx-runtime";
2
- import { f as Q, o as V, u as N, x as K, A as x, G, I as M, Z as j, k as w, O as H, Q as Z, S as z, l as q, $ as P, e as J, g as X, h as Y, i as W, j as ee } from "./index-BGWHjTc3.js";
1
+ import { jsxs as N, jsx as u } from "react/jsx-runtime";
2
+ import { f as Q, o as V, u as S, A as K, N as G, G as M, Z as j, k as w, B as x, O as H, Q as Z, $ as z, s as q, I as P, h as J, i as X, j as Y, l as W, m as ee } from "./index-CTlXew_3.js";
3
3
  import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
4
4
  import { useRef as se, useEffect as I, useMemo as O } from "react";
5
5
  const L = (a, n, d, l, b, r) => {
@@ -59,9 +59,9 @@ const L = (a, n, d, l, b, r) => {
59
59
  title: n = "",
60
60
  hideThumbnail: d
61
61
  }) => {
62
- const { t: l } = N(), b = (r, t, s) => {
62
+ const { t: l } = S(), b = (r, t, s) => {
63
63
  const o = z(r.encounterDetails, l);
64
- return /* @__PURE__ */ S(
64
+ return /* @__PURE__ */ N(
65
65
  q,
66
66
  {
67
67
  title: o,
@@ -113,7 +113,7 @@ const L = (a, n, d, l, b, r) => {
113
113
  conceptNames: d = [],
114
114
  conceptUuid: l = [],
115
115
  hideThumbnail: b = !1
116
- } = n, r = se(/* @__PURE__ */ new Set()), t = Q(), { addNotification: s } = V(), { t: o } = N(), i = ae({
116
+ } = n, r = se(/* @__PURE__ */ new Set()), t = Q(), { addNotification: s } = V(), { t: o } = S(), i = ae({
117
117
  queries: d.map((e) => ({
118
118
  queryKey: de(e),
119
119
  queryFn: () => K(e),
@@ -123,10 +123,10 @@ const L = (a, n, d, l, b, r) => {
123
123
  I(() => {
124
124
  i.forEach((e, h) => {
125
125
  if (e.isError && !r.current.has(h)) {
126
- const B = d[h];
126
+ const k = d[h];
127
127
  s({
128
128
  title: o("ERROR_DEFAULT_TITLE"),
129
- message: o("ERROR_FETCHING_CONCEPT", { conceptName: B }),
129
+ message: o("ERROR_FETCHING_CONCEPT", { conceptName: k }),
130
130
  type: "error"
131
131
  }), r.current.add(h);
132
132
  } else e.isError || r.current.delete(h);
@@ -139,10 +139,10 @@ const L = (a, n, d, l, b, r) => {
139
139
  refetch: T
140
140
  } = te({
141
141
  queryKey: le(t, p),
142
- queryFn: () => x(t, p),
142
+ queryFn: () => G(t, p),
143
143
  enabled: !!t && p.length > 0 && y
144
144
  });
145
- G(
145
+ M(
146
146
  (e) => {
147
147
  e.patientUUID === t && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
148
148
  (h) => p.includes(h)
@@ -158,14 +158,14 @@ const L = (a, n, d, l, b, r) => {
158
158
  }, [R]);
159
159
  const f = O(() => {
160
160
  if (!c) return [];
161
- const e = M(c), h = j(e);
162
- return w(h);
161
+ const e = j(c), h = w(e);
162
+ return x(h);
163
163
  }, [c]), D = [
164
164
  { key: "name", header: "name" },
165
165
  { key: "value", header: "value" },
166
166
  { key: "form", header: "form" }
167
- ], g = A || !y, $ = R && y, F = (!c || c.entry?.length === 0 || p.length === 0) && y, C = $ ? o("ERROR_FETCHING_OBSERVATIONS") : null, U = F ? o("NO_OBSERVATIONS_FOUND") : void 0, k = f.length > 0 && !g && !$, E = n.titleTranslationKey, v = E ? o(E) : "";
168
- return /* @__PURE__ */ S(
167
+ ], $ = A || !y, g = R && y, F = (!c || c.entry?.length === 0 || p.length === 0) && y, B = g ? o("ERROR_FETCHING_OBSERVATIONS") : null, C = F ? o("NO_OBSERVATIONS_FOUND") : void 0, U = f.length > 0 && !$ && !g, E = n.titleTranslationKey, v = E ? o(E) : "";
168
+ return /* @__PURE__ */ N(
169
169
  "div",
170
170
  {
171
171
  id: "observations",
@@ -183,7 +183,7 @@ const L = (a, n, d, l, b, r) => {
183
183
  children: /* @__PURE__ */ u("p", { children: v })
184
184
  }
185
185
  ),
186
- k ? /* @__PURE__ */ u(
186
+ U ? /* @__PURE__ */ u(
187
187
  oe,
188
188
  {
189
189
  groupedData: f,
@@ -196,9 +196,9 @@ const L = (a, n, d, l, b, r) => {
196
196
  headers: D,
197
197
  rows: [],
198
198
  ariaLabel: o("OBSERVATIONS"),
199
- loading: g,
200
- errorStateMessage: C,
201
- emptyStateMessage: U,
199
+ loading: $,
200
+ errorStateMessage: B,
201
+ emptyStateMessage: C,
202
202
  dataTestId: "observations-table"
203
203
  }
204
204
  )
@@ -1,4 +1,4 @@
1
- import { t as we, v as z, w as xt, y as B, q, s as y, P as Ro, z as ye, B as R, D as _, E as k, F as N, H as A, J as bs, K as ir, L as $e, M as U, R as Hn, U as Vn, W as dt, a0 as D, a1 as xs, a2 as cn, a3 as Be, a4 as ws, a5 as qt, a6 as zt, a7 as $s, a8 as Cs, a9 as $n, aa as Ss, ab as Nr, ac as Bt, ad as zo, ae as ks, af as Es, ag as j, ah as Ur, ai as Ms, aj as Ds, ak as sr, al as As, am as Ts, an as zn, ao as Fs, ap as Is, aq as Z, ar as Ps, as as Ls } from "./index-BGWHjTc3.js";
1
+ import { v as we, x as z, y as xt, D as B, q, t as y, P as Ro, F as ye, H as R, J as _, K as k, L as N, R as A, U as bs, a0 as ir, a1 as $e, a2 as U, a3 as Hn, a4 as Vn, a5 as dt, a6 as D, a7 as xs, a8 as cn, a9 as Be, aa as ws, ab as qt, ac as zt, ad as $s, ae as Cs, af as $n, ag as Ss, ah as Nr, ai as Bt, aj as zo, ak as ks, al as Es, am as j, an as Ur, ao as Ms, ap as Ds, aq as sr, ar as As, as as Ts, at as zn, au as Fs, av as Is, aw as Z, ax as Ps, ay as Ls } from "./index-CTlXew_3.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {