@bahmni/appointments-app 0.0.1-dev.199 → 0.0.1-dev.202

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,11 +1,11 @@
1
1
  import { jsx as o, jsxs as l, Fragment as k } from "react/jsx-runtime";
2
- import { l as V, u as x, Q as F, a as H, E as q, C as Q, x as P, T as G, b as W } from "./index-CVgIO3Cn.js";
3
- import { useState as I, useCallback as T, useEffect as L, useMemo as E } from "react";
4
- const Y = "_documentsTableBody_1voj8_1", z = "_viewAttachmentsLink_1voj8_11", J = "_documentViewerContainer_1voj8_15", K = "_attachmentItem_1voj8_23", X = "_attachmentCounter_1voj8_27", Z = "_attachmentError_1voj8_36", ee = "_documentIframe_1voj8_44", te = "_documentImage_1voj8_50", d = {
5
- documentsTableBody: Y,
6
- viewAttachmentsLink: z,
7
- documentViewerContainer: J,
8
- attachmentItem: K,
2
+ import { l as V, u as x, Q as F, a as H, y as q, C as Q, x as P, T as G, s as Y } from "./index-DIIxHxej.js";
3
+ import { useState as I, useCallback as T, useEffect as U, useMemo as p } from "react";
4
+ const z = "_documentsTableBody_1voj8_1", J = "_viewAttachmentsLink_1voj8_11", K = "_documentViewerContainer_1voj8_15", W = "_attachmentItem_1voj8_23", X = "_attachmentCounter_1voj8_27", Z = "_attachmentError_1voj8_36", ee = "_documentIframe_1voj8_44", te = "_documentImage_1voj8_50", d = {
5
+ documentsTableBody: z,
6
+ viewAttachmentsLink: J,
7
+ documentViewerContainer: K,
8
+ attachmentItem: W,
9
9
  attachmentCounter: X,
10
10
  attachmentError: Z,
11
11
  documentIframe: ee,
@@ -17,7 +17,7 @@ const Y = "_documentsTableBody_1voj8_1", z = "_viewAttachmentsLink_1voj8_11", J
17
17
  uploadedBy: "DOCUMENTS_UPLOADED_BY",
18
18
  action: "DOCUMENTS_ACTION"
19
19
  };
20
- function U(a) {
20
+ function v(a) {
21
21
  return !a || a.includes(":") ? "#" : `/openmrs/auth?requested_document=/document_images/${a}`;
22
22
  }
23
23
  function ne(a, u) {
@@ -32,35 +32,35 @@ const re = [
32
32
  "uploadedOn",
33
33
  "uploadedBy",
34
34
  "action"
35
- ], oe = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, v = (a) => a.attachments.length > 0 ? a.attachments : a.documentUrl ? [{ url: a.documentUrl, contentType: a.contentType }] : [], ie = ({ config: a, encounterUuids: u }) => {
36
- const [s, O] = I(!1), [r, A] = I(
35
+ ], oe = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, w = (a) => a.attachments.length > 0 ? a.attachments : a.documentUrl ? [{ url: a.documentUrl, contentType: a.contentType }] : [], ie = ({ config: a, encounterUuids: u }) => {
36
+ const [s, y] = I(!1), [r, O] = I(
37
37
  null
38
- ), [w, p] = I(
38
+ ), [L, E] = I(
39
39
  /* @__PURE__ */ new Set()
40
- ), N = V(), { t: n } = x(), { addNotification: y } = F(), D = T((e) => {
41
- A(e), O(!0);
42
- }, []), b = T(() => {
43
- O(!1), A(null), p(/* @__PURE__ */ new Set());
40
+ ), N = V(), { t: n } = x(), { addNotification: A } = F(), D = T((e) => {
41
+ O(e), y(!0);
42
+ }, []), M = T(() => {
43
+ y(!1), O(null), E(/* @__PURE__ */ new Set());
44
44
  }, []), S = T((e) => {
45
- p((t) => new Set(t).add(e));
46
- }, []), { data: M, isLoading: j, isError: f, error: g } = H({
45
+ E((t) => new Set(t).add(e));
46
+ }, []), { data: b, isLoading: j, isError: f, error: g } = H({
47
47
  queryKey: ["documents", N, u],
48
48
  enabled: !!N,
49
- queryFn: () => W(N, u)
49
+ queryFn: () => Y(N, u)
50
50
  });
51
- L(() => {
52
- f && y({
51
+ U(() => {
52
+ f && A({
53
53
  title: n("ERROR_DEFAULT_TITLE"),
54
54
  message: g?.message ?? "",
55
55
  type: "error"
56
56
  });
57
- }, [f, g, y, n]), L(() => {
57
+ }, [f, g, A, n]), U(() => {
58
58
  const e = new AbortController();
59
59
  return (async () => {
60
60
  if (!s || !r) return;
61
- const t = /* @__PURE__ */ new Set(), c = v(r);
61
+ const t = /* @__PURE__ */ new Set(), c = w(r);
62
62
  for (let i = 0; i < c.length; i++) {
63
- const C = U(c[i].url);
63
+ const C = v(c[i].url);
64
64
  try {
65
65
  (await fetch(C, {
66
66
  method: "HEAD",
@@ -70,20 +70,20 @@ const re = [
70
70
  h instanceof Error && h.name !== "AbortError" && t.add(i);
71
71
  }
72
72
  }
73
- e.signal.aborted || p(t);
73
+ e.signal.aborted || E(t);
74
74
  })(), () => e.abort();
75
75
  }, [s, r]);
76
- const _ = E(
76
+ const _ = p(
77
77
  () => a?.fields ?? re,
78
78
  [a?.fields]
79
- ), B = E(() => ne(_, n), [_, n]), R = E(
79
+ ), B = p(() => ne(_, n), [_, n]), R = p(
80
80
  () => _.map((e) => ({
81
81
  key: e,
82
82
  sortable: e !== "action"
83
83
  })),
84
84
  [_]
85
- ), m = E(
86
- () => r ? v(r) : [],
85
+ ), m = p(
86
+ () => r ? w(r) : [],
87
87
  [r]
88
88
  ), $ = T(
89
89
  (e, t) => {
@@ -122,7 +122,7 @@ const re = [
122
122
  {
123
123
  headers: B,
124
124
  ariaLabel: n("DOCUMENTS_TABLE_HEADING"),
125
- rows: M ?? [],
125
+ rows: b ?? [],
126
126
  loading: j,
127
127
  errorStateMessage: f ? g?.message : null,
128
128
  sortable: R,
@@ -138,13 +138,13 @@ const re = [
138
138
  id: "modalIdForActionAreaLayout",
139
139
  portalId: "main-display-area",
140
140
  open: s,
141
- onRequestClose: b,
141
+ onRequestClose: M,
142
142
  modalHeading: r.documentIdentifier,
143
143
  passiveModal: !0,
144
144
  size: "lg",
145
145
  testId: "document-view-modal",
146
146
  children: /* @__PURE__ */ o("div", { className: d.documentViewerContainer, children: m.map((e, t) => {
147
- const c = U(e.url), i = e.contentType?.toLowerCase().includes("pdf"), C = (e.contentType?.toLowerCase().includes("image") ?? !1) || oe.test(e.url ?? ""), h = w.has(t);
147
+ const c = v(e.url), i = e.contentType?.toLowerCase().includes("pdf"), C = (e.contentType?.toLowerCase().includes("image") ?? !1) || oe.test(e.url ?? ""), h = L.has(t);
148
148
  return c === "#" || h ? /* @__PURE__ */ l(
149
149
  "div",
150
150
  {
@@ -1,27 +1,27 @@
1
1
  import { jsx as o, jsxs as p, Fragment as k } from "react/jsx-runtime";
2
- import { u as O, l as ae, o as te, c as oe, a as A, f as ne, C as se, E as de, x as U, I as me, Z as ie, T as le, d as ce, S as H, W as ue, q as K, e as F, g as be, N as pe, A as fe, z as _e, h as $e, X as ge, Y as he, J as ve, G as ye } from "./index-CVgIO3Cn.js";
3
- import { useState as P, useMemo as v, useCallback as C } from "react";
4
- const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18", Fe = "_formDetailsContainer_1pd36_25", Le = "_observation_1pd36_30", Re = "_groupContainer_1pd36_39", Ie = "_rowContainer_1pd36_43", Me = "_groupLabel_1pd36_48", Oe = "_rowLabel_1pd36_58", Te = "_rowValue_1pd36_67", Se = "_groupMembers_1pd36_75", Ve = "_memberRow_1pd36_81", xe = "_memberLabel_1pd36_86", De = "_memberValue_1pd36_94", Ee = "_abnormalValue_1pd36_102", we = "_commentSection_1pd36_110", Be = "_commentText_1pd36_116", Ge = "_nestedGroup_1pd36_125", qe = "_nestedGroupLabel_1pd36_132", Ue = "_nestedGroupMembers_1pd36_141", n = {
2
+ import { u as M, l as ae, o as te, b as oe, a as R, f as ne, C as se, y as de, x as q, I as me, Z as ie, T as le, O as ce, $ as H, t as ue, U as K, c as A, d as be, D as pe, S as fe, R as _e, e as $e, i as ge, g as he, h as ye, n as ve } from "./index-DIIxHxej.js";
3
+ import { useState as P, useMemo as y, useCallback as C } from "react";
4
+ const Ne = "_formsTableBody_1pd36_1", Re = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18", Ae = "_formDetailsContainer_1pd36_25", Fe = "_observation_1pd36_30", Le = "_groupContainer_1pd36_39", Ie = "_rowContainer_1pd36_43", Oe = "_groupLabel_1pd36_48", Me = "_rowLabel_1pd36_58", Te = "_rowValue_1pd36_67", De = "_groupMembers_1pd36_75", Se = "_memberRow_1pd36_81", xe = "_memberLabel_1pd36_86", Ve = "_memberValue_1pd36_94", we = "_abnormalValue_1pd36_102", Ee = "_commentSection_1pd36_110", Be = "_commentText_1pd36_116", Ue = "_nestedGroup_1pd36_125", Ge = "_nestedGroupLabel_1pd36_132", qe = "_nestedGroupMembers_1pd36_141", n = {
5
5
  formsTableBody: Ne,
6
- customAccordianItem: Ae,
6
+ customAccordianItem: Re,
7
7
  formContent: Ce,
8
- formDetailsContainer: Fe,
9
- observation: Le,
10
- groupContainer: Re,
8
+ formDetailsContainer: Ae,
9
+ observation: Fe,
10
+ groupContainer: Le,
11
11
  rowContainer: Ie,
12
- groupLabel: Me,
13
- rowLabel: Oe,
12
+ groupLabel: Oe,
13
+ rowLabel: Me,
14
14
  rowValue: Te,
15
- groupMembers: Se,
16
- memberRow: Ve,
15
+ groupMembers: De,
16
+ memberRow: Se,
17
17
  memberLabel: xe,
18
- memberValue: De,
19
- abnormalValue: Ee,
20
- commentSection: we,
18
+ memberValue: Ve,
19
+ abnormalValue: we,
20
+ commentSection: Ee,
21
21
  commentText: Be,
22
- nestedGroup: Ge,
23
- nestedGroupLabel: qe,
24
- nestedGroupMembers: Ue
22
+ nestedGroup: Ue,
23
+ nestedGroupLabel: Ge,
24
+ nestedGroupMembers: qe
25
25
  }, j = (e) => {
26
26
  const r = be(e);
27
27
  return r === "Image" ? /* @__PURE__ */ o(
@@ -32,20 +32,20 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
32
32
  id: `${e}-img`
33
33
  }
34
34
  ) : r === "Video" ? /* @__PURE__ */ o(fe, { id: `${e}-video`, videoSrc: e }) : r === "PDF" ? /* @__PURE__ */ o(_e, { id: `${e}-pdf`, src: e }) : e;
35
- }, z = (e) => {
35
+ }, Q = (e) => {
36
36
  const r = e.observationValue?.referenceRange?.low?.value, s = e.observationValue?.referenceRange?.high?.value, a = r != null, l = s != null;
37
37
  let d = "";
38
38
  a && l ? d = ` (${r} - ${s})` : a ? d = ` (>${r})` : l && (d = ` (<${s})`);
39
39
  const b = e.observationValue?.isAbnormal === !0;
40
40
  return { rangeString: d, isAbnormal: b };
41
- }, W = ({
41
+ }, Z = ({
42
42
  member: e,
43
43
  depth: r = 0,
44
44
  memberIndex: s = 0,
45
45
  formName: a = "",
46
46
  comment: l
47
47
  }) => {
48
- const { t: d } = O(), b = e.members && e.members.length > 0, t = e.display, c = a ? `${a}-` : "";
48
+ const { t: d } = M(), b = e.members && e.members.length > 0, t = e.display, c = a ? `${a}-` : "";
49
49
  if (b)
50
50
  return /* @__PURE__ */ p(
51
51
  "div",
@@ -67,22 +67,22 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
67
67
  {
68
68
  className: n.nestedGroupMembers,
69
69
  "data-testid": `${c}obs-nested-group-members-${t}-${s}`,
70
- children: e.members?.map((y, N) => /* @__PURE__ */ o(
71
- W,
70
+ children: e.members?.map((v, N) => /* @__PURE__ */ o(
71
+ Z,
72
72
  {
73
- member: y,
73
+ member: v,
74
74
  depth: r + 1,
75
75
  memberIndex: N,
76
76
  formName: a
77
77
  },
78
- `${y.id}`
78
+ `${v.id}`
79
79
  ))
80
80
  }
81
81
  )
82
82
  ]
83
83
  }
84
84
  );
85
- const { rangeString: g, isAbnormal: f } = z(e), _ = K(e, d), $ = _ ? j(_) : null;
85
+ const { rangeString: g, isAbnormal: f } = Q(e), _ = K(e, d), $ = _ ? j(_) : null;
86
86
  return /* @__PURE__ */ p(k, { children: [
87
87
  /* @__PURE__ */ p(
88
88
  "div",
@@ -94,7 +94,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
94
94
  /* @__PURE__ */ p(
95
95
  "p",
96
96
  {
97
- className: F(
97
+ className: A(
98
98
  n.memberLabel,
99
99
  f ? n.abnormalValue : ""
100
100
  ),
@@ -108,7 +108,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
108
108
  /* @__PURE__ */ o(
109
109
  "div",
110
110
  {
111
- className: F(
111
+ className: A(
112
112
  n.memberValue,
113
113
  f ? n.abnormalValue : ""
114
114
  ),
@@ -138,7 +138,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
138
138
  formName: s = "",
139
139
  comment: a
140
140
  }) => {
141
- const { t: l } = O(), d = e.members && e.members.length > 0, { rangeString: b, isAbnormal: t } = z(e), c = s ? `${s}-` : "", g = K(e, l), f = g ? j(g) : null;
141
+ const { t: l } = M(), d = e.members && e.members.length > 0, { rangeString: b, isAbnormal: t } = Q(e), c = s ? `${s}-` : "", g = K(e, l), f = g ? j(g) : null;
142
142
  return /* @__PURE__ */ p(
143
143
  "div",
144
144
  {
@@ -154,7 +154,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
154
154
  /* @__PURE__ */ p(
155
155
  "p",
156
156
  {
157
- className: F(
157
+ className: A(
158
158
  d ? n.groupLabel : n.rowLabel,
159
159
  !d && t ? n.abnormalValue : ""
160
160
  ),
@@ -171,7 +171,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
171
171
  className: n.groupMembers,
172
172
  "data-testid": `${c}observation-group-members-${e.display}-${r}`,
173
173
  children: e.members?.map((_, $) => /* @__PURE__ */ o(
174
- W,
174
+ Z,
175
175
  {
176
176
  member: _,
177
177
  depth: 0,
@@ -184,7 +184,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
184
184
  ) : /* @__PURE__ */ o(
185
185
  "div",
186
186
  {
187
- className: F(
187
+ className: A(
188
188
  n.rowValue,
189
189
  t ? n.abnormalValue : ""
190
190
  ),
@@ -215,7 +215,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
215
215
  )?.valueString : void 0, ke = (e) => {
216
216
  if (e)
217
217
  return e.note?.[0]?.text;
218
- }, Ke = (e, r) => e.entry?.find((s) => s.resource?.id === r)?.resource, M = (e, r) => {
218
+ }, Ke = (e, r) => e.entry?.find((s) => s.resource?.id === r)?.resource, O = (e, r) => {
219
219
  const s = Ke(e, r);
220
220
  return s ? {
221
221
  formFieldPath: Pe(s),
@@ -227,86 +227,86 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
227
227
  const s = ue(e);
228
228
  return [
229
229
  ...s.observations.map((a) => {
230
- const { formFieldPath: l, comment: d } = M(
230
+ const { formFieldPath: l, comment: d } = O(
231
231
  e,
232
232
  a.id
233
233
  );
234
234
  return { obs: a, formFieldPath: l, comment: d };
235
235
  }),
236
236
  ...s.groupedObservations.flatMap((a) => {
237
- const { formFieldPath: l } = M(e, a.id);
237
+ const { formFieldPath: l } = O(e, a.id);
238
238
  return (a.members ?? []).map((d) => {
239
- const { comment: b } = M(e, d.id);
239
+ const { comment: b } = O(e, d.id);
240
240
  return { obs: d, formFieldPath: l, comment: b };
241
241
  });
242
242
  })
243
243
  ].filter(
244
244
  ({ formFieldPath: a }) => !a || a.includes(r)
245
245
  );
246
- }, Ye = ({
246
+ }, We = ({
247
247
  episodeOfCareUuids: e,
248
248
  encounterUuids: r,
249
249
  config: s
250
250
  }) => {
251
- const { t: a } = O(), l = ae(), [d, b] = P(!1), [t, c] = P(null), g = s?.numberOfVisits, f = te(
251
+ const { t: a } = M(), l = ae(), [d, b] = P(!1), [t, c] = P(null), g = s?.numberOfVisits, f = te(
252
252
  e,
253
253
  r
254
254
  ), _ = oe(), {
255
255
  data: $ = [],
256
- isLoading: y,
256
+ isLoading: v,
257
257
  isError: N,
258
- error: Q,
259
- refetch: Y
260
- } = A({
258
+ error: z,
259
+ refetch: W
260
+ } = R({
261
261
  queryKey: ["forms", l, e],
262
262
  queryFn: () => ge(l, void 0, g),
263
263
  enabled: !!l && !f
264
- }), T = v(() => !r || r.length === 0 ? $ : $.filter(
264
+ }), T = y(() => !r || r.length === 0 ? $ : $.filter(
265
265
  (m) => r.includes(m.encounterUuid)
266
- ), [$, r]), { data: S = [] } = A({
266
+ ), [$, r]), { data: D = [] } = R({
267
267
  queryKey: ["observationForms"],
268
268
  queryFn: () => he()
269
- }), V = C(
270
- (m) => S.find((u) => u.name === m)?.uuid,
271
- [S]
272
- ), L = v(() => {
269
+ }), S = C(
270
+ (m) => D.find((u) => u.name === m)?.uuid,
271
+ [D]
272
+ ), F = y(() => {
273
273
  if (t)
274
- return V(t.formName);
275
- }, [t, V]), { isLoading: Z, error: x } = A({
276
- queryKey: ["formMetadata", L],
277
- queryFn: () => ve(L),
278
- enabled: !!L && d
274
+ return S(t.formName);
275
+ }, [t, S]), { isLoading: Y, error: x } = R({
276
+ queryKey: ["formMetadata", F],
277
+ queryFn: () => ye(F),
278
+ enabled: !!F && d
279
279
  }), {
280
- data: R,
280
+ data: L,
281
281
  isLoading: J,
282
- error: D
283
- } = A({
282
+ error: V
283
+ } = R({
284
284
  queryKey: ["formsEncounterFHIR", t?.encounterUuid],
285
- queryFn: () => ye(t.encounterUuid),
285
+ queryFn: () => ve(t.encounterUuid),
286
286
  enabled: !!t?.encounterUuid && d
287
287
  });
288
288
  ne(
289
289
  (m) => {
290
- m.patientUUID === l && m.updatedConcepts.size > 0 && (Y(), _.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
290
+ m.patientUUID === l && m.updatedConcepts.size > 0 && (W(), _.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
291
291
  },
292
292
  [l]
293
293
  );
294
- const E = v(() => !R || !t?.formName ? [] : je(
295
- R,
294
+ const w = y(() => !L || !t?.formName ? [] : je(
295
+ L,
296
296
  t.formName
297
- ), [R, t?.formName]), w = v(
297
+ ), [L, t?.formName]), E = y(
298
298
  () => [
299
299
  { key: "recordedOn", header: a("FORM_RECORDED_ON") },
300
300
  { key: "recordedBy", header: a("FORM_RECORDED_BY") }
301
301
  ],
302
302
  [a]
303
- ), X = v(
303
+ ), X = y(
304
304
  () => [
305
305
  { key: "recordedOn", sortable: !0 },
306
306
  { key: "recordedBy", sortable: !0 }
307
307
  ],
308
308
  []
309
- ), B = v(() => {
309
+ ), B = y(() => {
310
310
  const m = T.reduce(
311
311
  (u, i) => {
312
312
  const h = i.formName;
@@ -331,34 +331,34 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
331
331
  )
332
332
  })
333
333
  ).sort((u, i) => u.formName.localeCompare(i.formName));
334
- }, [T, a]), G = C((m) => {
334
+ }, [T, a]), U = C((m) => {
335
335
  c(m), b(!0);
336
336
  }, []), ee = C(() => {
337
337
  b(!1), c(null);
338
- }, []), q = C(
338
+ }, []), G = C(
339
339
  (m, u) => {
340
340
  switch (u) {
341
341
  case "recordedOn":
342
- return /* @__PURE__ */ o(de, { onClick: () => G(m), children: m.recordedOn });
342
+ return /* @__PURE__ */ o(de, { onClick: () => U(m), children: m.recordedOn });
343
343
  case "recordedBy":
344
344
  return m.recordedBy;
345
345
  default:
346
346
  return null;
347
347
  }
348
348
  },
349
- [G]
349
+ [U]
350
350
  );
351
351
  return /* @__PURE__ */ p(k, { children: [
352
- /* @__PURE__ */ o("div", { "data-testid": "forms-table", children: y || N || B.length === 0 || f ? /* @__PURE__ */ o(
353
- U,
352
+ /* @__PURE__ */ o("div", { "data-testid": "forms-table", children: v || N || B.length === 0 || f ? /* @__PURE__ */ o(
353
+ q,
354
354
  {
355
- headers: w,
355
+ headers: E,
356
356
  ariaLabel: a("FORMS_HEADING"),
357
357
  rows: [],
358
- loading: y,
359
- errorStateMessage: N ? Q?.message : void 0,
358
+ loading: v,
359
+ errorStateMessage: N ? z?.message : void 0,
360
360
  emptyStateMessage: a("FORMS_UNAVAILABLE"),
361
- renderCell: q,
361
+ renderCell: G,
362
362
  className: n.formsTableBody,
363
363
  dataTestId: "forms-table"
364
364
  }
@@ -372,16 +372,16 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
372
372
  testId: `accordian-title-${i}`,
373
373
  open: u === 0,
374
374
  children: /* @__PURE__ */ o(
375
- U,
375
+ q,
376
376
  {
377
- headers: w,
377
+ headers: E,
378
378
  ariaLabel: a("FORMS_HEADING"),
379
379
  rows: h,
380
380
  loading: !1,
381
381
  errorStateMessage: "",
382
382
  sortable: X,
383
383
  emptyStateMessage: a("FORMS_UNAVAILABLE"),
384
- renderCell: q,
384
+ renderCell: G,
385
385
  className: n.formsTableBody,
386
386
  dataTestId: `forms-table-${i}`
387
387
  }
@@ -402,7 +402,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
402
402
  passiveModal: !0,
403
403
  size: "md",
404
404
  testId: "form-details-modal",
405
- children: /* @__PURE__ */ o("div", { className: n.formContent, children: Z || J ? /* @__PURE__ */ o(ce, { width: "100%", lineCount: 3 }) : x ? /* @__PURE__ */ o("div", { children: H(x).message ?? a("ERROR_FETCHING_FORM_METADATA") }) : D ? /* @__PURE__ */ o("div", { children: H(D).message ?? a("ERROR_FETCHING_FORM_DATA") }) : E.length > 0 ? /* @__PURE__ */ o("div", { className: n.formDetailsContainer, children: E.map(({ obs: m, comment: u }, i) => /* @__PURE__ */ o(
405
+ children: /* @__PURE__ */ o("div", { className: n.formContent, children: Y || J ? /* @__PURE__ */ o(ce, { width: "100%", lineCount: 3 }) : x ? /* @__PURE__ */ o("div", { children: H(x).message ?? a("ERROR_FETCHING_FORM_METADATA") }) : V ? /* @__PURE__ */ o("div", { children: H(V).message ?? a("ERROR_FETCHING_FORM_DATA") }) : w.length > 0 ? /* @__PURE__ */ o("div", { className: n.formDetailsContainer, children: w.map(({ obs: m, comment: u }, i) => /* @__PURE__ */ o(
406
406
  He,
407
407
  {
408
408
  observation: m,
@@ -417,5 +417,5 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
417
417
  ] });
418
418
  };
419
419
  export {
420
- Ye as default
420
+ We as default
421
421
  };
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-1iM9GDfP.js";
2
- import { V as d, $ as f, a0 as e } from "./index-CVgIO3Cn.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-BsbJcMaA.js";
2
+ import { X as d, Y as f, a0 as e } from "./index-DIIxHxej.js";
3
3
  var p = (a) => {
4
4
  const [r, t] = c({
5
5
  prefix: "TanstackQueryDevtools"
@@ -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-1iM9GDfP.js";
2
- import { V as v, $ as C, a0 as e } from "./index-CVgIO3Cn.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-BsbJcMaA.js";
2
+ import { X as v, Y as C, a0 as e } from "./index-DIIxHxej.js";
3
3
  var h = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"