@bahmni/widgets 0.0.1-dev.441 → 0.0.1-dev.442

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 r, jsxs as T, Fragment as Y } from "react/jsx-runtime";
2
- import { u as W, a as X, U as J, V as Z, F as x, b as ee, c as te } from "./index-CEV5WGH8.js";
1
+ import { jsx as r, jsxs as T, Fragment as Q } from "react/jsx-runtime";
2
+ import { u as Y, a as X, G as J, V as Z, W as x, b as ee, F as te } from "./index-Dpa6c73O.js";
3
3
  import { useQuery as ne } from "@tanstack/react-query";
4
4
  import { useState as l, useCallback as _, useEffect as I, useMemo as p } from "react";
5
5
  import { useTranslation as ae } from "react-i18next";
@@ -35,14 +35,14 @@ const Te = [
35
35
  "uploadedOn",
36
36
  "uploadedBy"
37
37
  ], _e = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, B = (n) => n.attachments.length > 0 ? n.attachments : n.documentUrl ? [{ url: n.documentUrl, contentType: n.contentType }] : [], Ie = ({ config: n, encounterUuids: f }) => {
38
- const [d, M] = l(!1), [s, L] = l(
38
+ const [d, L] = l(!1), [s, U] = l(
39
39
  null
40
40
  ), [V, A] = l(
41
41
  /* @__PURE__ */ new Set()
42
- ), E = W(), { t: o } = ae(), { addNotification: w } = X(), P = Number(n?.pageSize) || 5, [N, C] = l(1), [u, $] = l(P), [k, O] = l(void 0), v = _((e) => {
43
- L(e), M(!0);
42
+ ), E = Y(), { t: o } = ae(), { addNotification: w } = X(), P = Number(n?.pageSize) || 5, [N, C] = l(1), [u, $] = l(P), [k, O] = l(void 0), v = _((e) => {
43
+ U(e), L(!0);
44
44
  }, []), z = _(() => {
45
- M(!1), L(null), A(/* @__PURE__ */ new Set());
45
+ L(!1), U(null), A(/* @__PURE__ */ new Set());
46
46
  }, []), F = _((e) => {
47
47
  A((t) => new Set(t).add(e));
48
48
  }, []), { data: i, isLoading: H, isError: S, error: b } = ne({
@@ -83,8 +83,8 @@ const Te = [
83
83
  method: "HEAD",
84
84
  signal: e.signal
85
85
  })).ok || a.add(m);
86
- } catch (U) {
87
- U instanceof Error && U.name !== "AbortError" && a.add(m);
86
+ } catch (M) {
87
+ M instanceof Error && M.name !== "AbortError" && a.add(m);
88
88
  }
89
89
  }
90
90
  e.signal.aborted || A(a);
@@ -98,7 +98,7 @@ const Te = [
98
98
  ), D = p(
99
99
  () => n?.fields ?? Te,
100
100
  [n?.fields]
101
- ), j = p(() => [...i?.documents ?? []].sort((t, a) => !t.uploadedOn && !a.uploadedOn ? 0 : t.uploadedOn ? a.uploadedOn ? new Date(a.uploadedOn).getTime() - new Date(t.uploadedOn).getTime() : -1 : 1), [i]), K = p(() => he(D, o), [D, o]), G = p(
101
+ ), G = p(() => [...i?.documents ?? []].sort((t, a) => !t.uploadedOn && !a.uploadedOn ? 0 : t.uploadedOn ? a.uploadedOn ? new Date(a.uploadedOn).getTime() - new Date(t.uploadedOn).getTime() : -1 : 1), [i]), j = p(() => he(D, o), [D, o]), K = p(
102
102
  () => D.map((e) => ({
103
103
  key: e,
104
104
  sortable: e !== "attachments"
@@ -107,7 +107,7 @@ const Te = [
107
107
  ), h = p(
108
108
  () => s ? B(s) : [],
109
109
  [s]
110
- ), Q = _(
110
+ ), W = _(
111
111
  (e, t) => {
112
112
  switch (t) {
113
113
  case "documentIdentifier":
@@ -138,18 +138,18 @@ const Te = [
138
138
  },
139
139
  [v, o]
140
140
  );
141
- return /* @__PURE__ */ T(Y, { children: [
141
+ return /* @__PURE__ */ T(Q, { children: [
142
142
  /* @__PURE__ */ r("div", { "data-testid": "documents-table", children: /* @__PURE__ */ r(
143
143
  ee,
144
144
  {
145
- headers: K,
145
+ headers: j,
146
146
  ariaLabel: o("DOCUMENTS_TABLE_HEADING"),
147
- rows: j,
147
+ rows: G,
148
148
  loading: H,
149
149
  errorStateMessage: S ? b?.message : null,
150
- sortable: G,
150
+ sortable: K,
151
151
  emptyStateMessage: o("DOCUMENTS_NO_RECORDS"),
152
- renderCell: Q,
152
+ renderCell: W,
153
153
  className: c.documentsTableBody,
154
154
  dataTestId: "documents-table",
155
155
  pageSize: u,
@@ -1,84 +1,84 @@
1
1
  import { jsx as n, jsxs as P, Fragment as ie } from "react/jsx-runtime";
2
- import { u as de, d as le, e as me, l as ce, p as ue, f as fe, B as be, N as Ne, g as he, h as ye, J as Oe, F as ge, C as q, i as x, V as pe, b as $, r as Te, j as Ee, c as Fe, O as Ie, k as Ae } from "./index-CEV5WGH8.js";
3
- import { useQueryClient as ve, useQuery as I } from "@tanstack/react-query";
2
+ import { u as de, c as le, d as me, _ as ce, S as ue, e as fe, f as be, g as he, h as Ne, i as ye, J as Oe, W as ge, C as q, B as x, V as Te, b as $, r as pe, j as Ee, F as Fe, O as Ie, k as _e } from "./index-Dpa6c73O.js";
3
+ import { useQueryClient as Ae, useQuery as I } from "@tanstack/react-query";
4
4
  import { useState as j, useMemo as i, useCallback as d } from "react";
5
- import { useTranslation as _e } from "react-i18next";
5
+ import { useTranslation as ve } from "react-i18next";
6
6
  const Re = "FormsTable-module_formsTableBody__SvGha", De = "FormsTable-module_modalHeading__wnTmA", Le = "FormsTable-module_customAccordianItem__isszs", y = {
7
7
  formsTableBody: Re,
8
8
  modalHeading: De,
9
9
  customAccordianItem: Le
10
- }, Be = "startConsultation", ke = ({
11
- episodeOfCareUuids: A,
10
+ }, Ce = "startConsultation", ke = ({
11
+ episodeOfCareUuids: _,
12
12
  encounterUuids: m,
13
13
  config: G,
14
14
  disableActions: z = !1,
15
15
  activeEncounterUuid: b = null
16
16
  }) => {
17
- const { t: o } = _e(), c = de(), [O, v] = j(!1), [a, _] = j(null), {
17
+ const { t: o } = ve(), c = de(), [O, A] = j(!1), [a, v] = j(null), {
18
18
  numberOfVisits: K,
19
19
  hideThumbnail: Q = !1,
20
- forms: N
21
- } = G ?? {}, J = le(
22
- Ae.EDIT_OBSERVATIONS
23
- ), { userPrivileges: h } = me(), g = J && !z && !!b, R = ce(
24
- A,
20
+ forms: h
21
+ } = G ?? {}, W = le(
22
+ _e.EDIT_OBSERVATIONS
23
+ ), { userPrivileges: N } = me(), g = W && !z && !!b, R = ce(
24
+ _,
25
25
  m
26
- ), W = ve(), {
26
+ ), J = Ae(), {
27
27
  data: D = [],
28
28
  isLoading: L,
29
- isError: B,
29
+ isError: C,
30
30
  error: Y,
31
31
  refetch: X
32
32
  } = I({
33
- queryKey: ["forms", c, A],
33
+ queryKey: ["forms", c, _],
34
34
  queryFn: () => ue(c, void 0, K),
35
35
  enabled: !!c && !R
36
- }), C = i(() => {
36
+ }), S = i(() => {
37
37
  let e = D;
38
38
  return m && m.length > 0 && (e = e.filter(
39
39
  (t) => m.includes(t.encounterUuid)
40
- )), Array.isArray(N) && N.length > 0 && (e = e.filter(
41
- (t) => N.some((s) => s.toLowerCase() === t.formName.toLowerCase())
40
+ )), Array.isArray(h) && h.length > 0 && (e = e.filter(
41
+ (t) => h.some((s) => s.toLowerCase() === t.formName.toLowerCase())
42
42
  )), e;
43
- }, [D, m, N]), { data: S = [] } = I({
43
+ }, [D, m, h]), { data: B = [] } = I({
44
44
  queryKey: ["observationForms"],
45
45
  queryFn: () => fe()
46
46
  }), M = d(
47
47
  (e) => {
48
- const t = S.find(
48
+ const t = B.find(
49
49
  (r) => r.name.toLowerCase() === e.toLowerCase()
50
50
  );
51
51
  if (!t?.privileges || t.privileges.length === 0) return !0;
52
- if (!h || h.length === 0) return !1;
53
- const s = new Set(h.map((r) => r.name));
52
+ if (!N || N.length === 0) return !1;
53
+ const s = new Set(N.map((r) => r.name));
54
54
  return t.privileges.some(
55
55
  (r) => s.has(r.privilegeName) && r.editable
56
56
  );
57
57
  },
58
- [S, h]
58
+ [B, N]
59
59
  ), u = d(
60
60
  (e) => !b || e.encounterUuid !== b ? !1 : M(e.formName),
61
61
  [b, M]
62
62
  ), {
63
- data: p,
63
+ data: T,
64
64
  isLoading: Z,
65
65
  isError: ee,
66
- error: T
66
+ error: p
67
67
  } = I({
68
68
  queryKey: ["formsEncounterFHIR", a?.encounterUuid],
69
69
  queryFn: () => be(a.encounterUuid),
70
70
  enabled: !!a?.encounterUuid && O
71
71
  });
72
- Ne(
72
+ he(
73
73
  (e) => {
74
- e.patientUUID === c && (X(), W.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
74
+ e.patientUUID === c && (X(), J.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
75
75
  },
76
76
  [c]
77
77
  );
78
- const re = i(() => !p?.entry || !a?.formName ? [] : p.entry.filter((t) => t.resource?.resourceType === "Observation").map((t) => t.resource).filter((t) => he(t) ? ye(t)?.toLowerCase() === a.formName.toLowerCase() : !0), [p, a?.formName]), te = i(() => {
79
- if (T)
80
- return Oe(T).message;
81
- }, [T]), f = i(
78
+ const re = i(() => !T?.entry || !a?.formName ? [] : T.entry.filter((t) => t.resource?.resourceType === "Observation").map((t) => t.resource).filter((t) => Ne(t) ? ye(t)?.toLowerCase() === a.formName.toLowerCase() : !0), [T, a?.formName]), te = i(() => {
79
+ if (p)
80
+ return Oe(p).message;
81
+ }, [p]), f = i(
82
82
  () => [
83
83
  { key: "recordedOn", header: o("RECORDED_ON") },
84
84
  { key: "recordedBy", header: o("RECORDED_BY") }
@@ -97,7 +97,7 @@ const Re = "FormsTable-module_formsTableBody__SvGha", De = "FormsTable-module_mo
97
97
  ],
98
98
  []
99
99
  ), U = i(() => {
100
- const e = C.reduce(
100
+ const e = S.reduce(
101
101
  (s, r) => {
102
102
  const l = r.formName;
103
103
  s[l] ??= [];
@@ -121,13 +121,13 @@ const Re = "FormsTable-module_formsTableBody__SvGha", De = "FormsTable-module_mo
121
121
  )
122
122
  })
123
123
  ).sort((s, r) => s.formName.localeCompare(r.formName));
124
- }, [C, o]), k = d((e) => {
125
- _(e), v(!0);
124
+ }, [S, o]), k = d((e) => {
125
+ v(e), A(!0);
126
126
  }, []), H = d(() => {
127
- v(!1), _(null);
127
+ A(!1), v(null);
128
128
  }, []), E = d((e) => {
129
129
  globalThis.dispatchEvent(
130
- new CustomEvent(Be, {
130
+ new CustomEvent(Ce, {
131
131
  detail: {
132
132
  editOnly: "observationForms",
133
133
  editTitle: "EDIT_OBSERVATION_FORM_TITLE",
@@ -141,7 +141,7 @@ const Re = "FormsTable-module_formsTableBody__SvGha", De = "FormsTable-module_mo
141
141
  (e, t) => {
142
142
  switch (t) {
143
143
  case "recordedOn":
144
- return /* @__PURE__ */ n(pe, { onClick: () => k(e), children: e.recordedOn });
144
+ return /* @__PURE__ */ n(Te, { onClick: () => k(e), children: e.recordedOn });
145
145
  case "recordedBy":
146
146
  return e.recordedBy;
147
147
  case "actions":
@@ -163,20 +163,20 @@ const Re = "FormsTable-module_formsTableBody__SvGha", De = "FormsTable-module_mo
163
163
  [k, E, u, o]
164
164
  );
165
165
  return /* @__PURE__ */ P(ie, { children: [
166
- /* @__PURE__ */ n("div", { id: "forms-table", "data-testid": "forms-table", children: L || B || U.length === 0 || R ? /* @__PURE__ */ n(
166
+ /* @__PURE__ */ n("div", { id: "forms-table", "data-testid": "forms-table", children: L || C || U.length === 0 || R ? /* @__PURE__ */ n(
167
167
  $,
168
168
  {
169
169
  headers: oe,
170
170
  ariaLabel: o("FORMS_HEADING"),
171
171
  rows: [],
172
172
  loading: L,
173
- errorStateMessage: B ? Y?.message : void 0,
173
+ errorStateMessage: C ? Y?.message : void 0,
174
174
  emptyStateMessage: o("FORMS_UNAVAILABLE"),
175
175
  renderCell: V,
176
176
  className: y.formsTableBody,
177
177
  dataTestId: "forms-table"
178
178
  }
179
- ) : /* @__PURE__ */ n(Te, { align: "start", children: U.map((e, t) => {
179
+ ) : /* @__PURE__ */ n(pe, { align: "start", children: U.map((e, t) => {
180
180
  const { formName: s, records: r } = e, l = se(r);
181
181
  return /* @__PURE__ */ n(
182
182
  Ee,
@@ -1,18 +1,18 @@
1
1
  import { jsx as i, jsxs as N } from "react/jsx-runtime";
2
- import { m as z, D as C, t as G, n as j, F as H, o as P, T as x, R as J, S as Y, u as W, a as X, z as Z, l as ee, q as se, s as te, N as re, v as ae, w as oe, x as ne, y as ie, A as ce, b as le } from "./index-CEV5WGH8.js";
2
+ import { l as G, D as C, t as z, m as H, W as P, n as j, T as W, R as X, o as Z, u as x, a as J, Z as Y, _ as ee, X as se, Q as te, g as re, p as ae, q as oe, s as ne, v as ie, w as ce, b as le } from "./index-Dpa6c73O.js";
3
3
  import { useQueries as de, useQuery as ue } from "@tanstack/react-query";
4
4
  import { useRef as pe, useEffect as F, useMemo as I } from "react";
5
- import { useTranslation as V } from "react-i18next";
5
+ import { useTranslation as w } from "react-i18next";
6
6
  const be = "Observations-module_observations__RKSyo", me = "Observations-module_title__TJL3z", ve = "Observations-module_wrapper__muk2L", ye = "Observations-module_secondary__14nuS", y = {
7
7
  observations: be,
8
8
  title: me,
9
9
  wrapper: ve,
10
10
  secondary: ye
11
- }, w = (t, l, n, c, u, r) => {
12
- const a = G(t, l, u), e = a.value, p = j(e);
11
+ }, U = (t, l, n, c, u, r) => {
12
+ const a = z(t, l, u), e = a.value, p = H(e);
13
13
  let o = e;
14
14
  p === "Image" && (o = /* @__PURE__ */ i(
15
- x,
15
+ W,
16
16
  {
17
17
  imageSrc: e,
18
18
  alt: e,
@@ -20,24 +20,24 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
20
20
  hideThumbnail: r
21
21
  }
22
22
  )), p === "Video" && (o = /* @__PURE__ */ i(
23
- J,
23
+ X,
24
24
  {
25
25
  id: `${e}-video`,
26
26
  videoSrc: e,
27
27
  hideThumbnail: r
28
28
  }
29
- )), p === "PDF" && (o = /* @__PURE__ */ i(Y, { id: `${e}-pdf`, src: e }));
29
+ )), p === "PDF" && (o = /* @__PURE__ */ i(Z, { id: `${e}-pdf`, src: e }));
30
30
  const b = /* @__PURE__ */ N("div", { className: y.wrapper, children: [
31
31
  /* @__PURE__ */ i("span", { children: a.header.display }),
32
32
  a.header.referenceRange && /* @__PURE__ */ i("span", { className: y.secondary, children: a.header.referenceRange })
33
33
  ] }), d = u("OBSERVATIONS_RECORDED_BY", {
34
34
  provider: a.provider
35
- }), m = t.effectiveDateTime ? H(t.effectiveDateTime, u, !0).formattedResult : void 0, _ = /* @__PURE__ */ N("div", { className: y.wrapper, children: [
35
+ }), m = t.effectiveDateTime ? P(t.effectiveDateTime, u, !0).formattedResult : void 0, _ = /* @__PURE__ */ N("div", { className: y.wrapper, children: [
36
36
  /* @__PURE__ */ i("span", { children: d }),
37
37
  m && /* @__PURE__ */ i("span", { className: y.secondary, children: m })
38
- ] }), v = t.display, T = t.observationValue?.isAbnormal ? "abnormal-obs" : "obs", O = c ? `${c}-${T}-${v}-${n}-${l}` : `${T}-${v}-${n}-${l}`;
38
+ ] }), v = t.display, g = t.observationValue?.isAbnormal ? "abnormal-obs" : "obs", O = c ? `${c}-${g}-${v}-${n}-${l}` : `${g}-${v}-${n}-${l}`;
39
39
  return /* @__PURE__ */ i(
40
- P,
40
+ j,
41
41
  {
42
42
  header: b,
43
43
  value: o,
@@ -55,7 +55,7 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
55
55
  id: `grouped-obs-${t.display}-${c}`,
56
56
  open: n,
57
57
  children: t.members?.map(
58
- (e, p) => w(
58
+ (e, p) => U(
59
59
  e,
60
60
  p,
61
61
  u,
@@ -71,8 +71,8 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
71
71
  title: l = "",
72
72
  hideThumbnail: n
73
73
  }) => {
74
- const { t: c } = V(), u = (r, a, e) => {
75
- const p = z(r.encounterDetails, c);
74
+ const { t: c } = w(), u = (r, a, e) => {
75
+ const p = G(r.encounterDetails, c);
76
76
  return /* @__PURE__ */ N(
77
77
  C,
78
78
  {
@@ -81,7 +81,7 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
81
81
  open: a,
82
82
  children: [
83
83
  r.observations.map(
84
- (o, b) => w(
84
+ (o, b) => U(
85
85
  o,
86
86
  b,
87
87
  e,
@@ -133,29 +133,29 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
133
133
  conceptUuid: r = [],
134
134
  hideThumbnail: a = !1,
135
135
  scope: e = "all"
136
- } = c, p = pe(/* @__PURE__ */ new Set()), o = W(), { addNotification: b } = X(), { t: d } = V(), m = de({
136
+ } = c, p = pe(/* @__PURE__ */ new Set()), o = x(), { addNotification: b } = J(), { t: d } = w(), m = de({
137
137
  queries: u.map((s) => ({
138
138
  queryKey: he(s),
139
- queryFn: () => Z(s),
139
+ queryFn: () => Y(s),
140
140
  enabled: !!s
141
141
  }))
142
142
  });
143
143
  F(() => {
144
- const s = m.some((D) => D.isError), R = p.current.size > 0;
144
+ const s = m.some(($) => $.isError), R = p.current.size > 0;
145
145
  s && !R ? (b({
146
146
  title: d("ERROR_DEFAULT_TITLE"),
147
147
  message: d("ERROR_FETCHING_OBSERVATIONS"),
148
148
  type: "error"
149
149
  }), p.current.add(0)) : !s && R && p.current.clear();
150
150
  }, [m, b, d]);
151
- const _ = I(() => m.map((s) => s.data?.uuid).filter((s) => !!s), [m]), v = I(() => [.../* @__PURE__ */ new Set([..._, ...r])], [_, r]), f = I(() => u.length === 0 ? !0 : m.every((s) => !s.isLoading), [m, u.length]), T = e === "latest" || e === "latest-encounter", O = ee(
151
+ const _ = I(() => m.map((s) => s.data?.uuid).filter((s) => !!s), [m]), v = I(() => [.../* @__PURE__ */ new Set([..._, ...r])], [_, r]), f = I(() => u.length === 0 ? !0 : m.every((s) => !s.isLoading), [m, u.length]), g = e === "latest" || e === "latest-encounter", O = ee(
152
152
  l,
153
153
  n
154
154
  ), {
155
155
  data: h,
156
- isLoading: U,
156
+ isLoading: V,
157
157
  isError: S,
158
- refetch: $
158
+ refetch: D
159
159
  } = ue({
160
160
  queryKey: Ee(
161
161
  o,
@@ -163,7 +163,7 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
163
163
  n,
164
164
  e
165
165
  ),
166
- queryFn: () => T ? se(
166
+ queryFn: () => g ? se(
167
167
  o,
168
168
  v,
169
169
  n
@@ -177,10 +177,10 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
177
177
  re(
178
178
  (s) => {
179
179
  s.patientUUID === o && s.updatedConcepts.size > 0 && [...s.updatedConcepts.keys()].some(
180
- (D) => v.includes(D)
181
- ) && $();
180
+ ($) => v.includes($)
181
+ ) && D();
182
182
  },
183
- [o, $]
183
+ [o, D]
184
184
  ), F(() => {
185
185
  S && b({
186
186
  title: d("ERROR_DEFAULT_TITLE"),
@@ -194,16 +194,16 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
194
194
  e === "latest-encounter" && (s = oe(s));
195
195
  const R = ne(s);
196
196
  return ie(R);
197
- }, [h, e]), K = [
197
+ }, [h, e]), Q = [
198
198
  { key: "name", header: "name" },
199
199
  { key: "value", header: "value" },
200
200
  { key: "form", header: "form" }
201
- ], L = U || !f, B = S && f, M = (!h || h.entry?.length === 0 || v.length === 0) && f, q = B ? d("ERROR_FETCHING_OBSERVATIONS") : null, Q = M ? d("NO_OBSERVATIONS_FOUND") : void 0, k = A.length > 0 && !L && !B, g = c.titleTranslationKey, E = g ? d(g) : "";
201
+ ], L = V || !f, B = S && f, K = (!h || h.entry?.length === 0 || v.length === 0) && f, M = B ? d("ERROR_FETCHING_OBSERVATIONS") : null, q = K ? d("NO_OBSERVATIONS_FOUND") : void 0, k = A.length > 0 && !L && !B, T = c.titleTranslationKey, E = T ? d(T) : "";
202
202
  return /* @__PURE__ */ N(
203
203
  "div",
204
204
  {
205
205
  id: "observations",
206
- "data-testid": g ? `observations-${E}` : "observations",
206
+ "data-testid": T ? `observations-${E}` : "observations",
207
207
  "aria-label": "observations-aria-label",
208
208
  className: y.observations,
209
209
  children: [
@@ -211,7 +211,7 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
211
211
  ce,
212
212
  {
213
213
  id: "observations-title",
214
- testId: g ? `observations-title-${E}` : "observations-title",
214
+ testId: T ? `observations-title-${E}` : "observations-title",
215
215
  title: E,
216
216
  className: y.title,
217
217
  children: /* @__PURE__ */ i("p", { children: E })
@@ -227,12 +227,12 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
227
227
  ) : /* @__PURE__ */ i(
228
228
  le,
229
229
  {
230
- headers: K,
230
+ headers: Q,
231
231
  rows: [],
232
232
  ariaLabel: d("OBSERVATIONS"),
233
233
  loading: L,
234
- errorStateMessage: q,
235
- emptyStateMessage: Q ?? d("NO_OBSERVATIONS_AVAILABLE"),
234
+ errorStateMessage: M,
235
+ emptyStateMessage: q ?? d("NO_OBSERVATIONS_AVAILABLE"),
236
236
  dataTestId: "observations-table"
237
237
  }
238
238
  )