@bahmni/home-app 0.0.1-dev.268 → 0.0.1-dev.270

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
1
  import { jsx as r, jsxs as h, Fragment as Y } from "react/jsx-runtime";
2
- import { u as K, a as Q, h as W, e as J, b as X, m as Z, c as ee, n as te } from "./index-Cb3jb-Bx.js";
2
+ import { u as K, a as Q, h as W, e as J, b as X, m as Z, c as ee, n as te } from "./index-DS-CiIQB.js";
3
3
  import { useQuery as ae } from "@tanstack/react-query";
4
4
  import { useState as m, useCallback as p, useEffect as f, useMemo as T } from "react";
5
5
  const ne = "_documentsTableBody_1voj8_1", oe = "_viewAttachmentsLink_1voj8_11", re = "_documentViewerContainer_1voj8_15", de = "_attachmentItem_1voj8_23", se = "_attachmentCounter_1voj8_27", ce = "_attachmentError_1voj8_36", ie = "_documentIframe_1voj8_44", me = "_documentImage_1voj8_50", d = {
@@ -0,0 +1,206 @@
1
+ import { jsx as s, jsxs as W, Fragment as Z } from "react/jsx-runtime";
2
+ import { a as ee, u as re, w as ae, X as oe, J as te, Q as se, G as ne, d as de, R as v, m as ie, b as me, c as U, C as ue, T as le, n as ce, f as fe, K as ye } from "./index-DS-CiIQB.js";
3
+ import { useQueryClient as pe, useQuery as f } from "@tanstack/react-query";
4
+ import { useState as S, useMemo as d, useCallback as y } from "react";
5
+ const be = "_formsTableBody_ourq9_5", Ne = "_customAccordianItem_ourq9_10", A = {
6
+ formsTableBody: be,
7
+ customAccordianItem: Ne
8
+ }, ge = (m) => m ? m.extension?.find(
9
+ (n) => n.url === ye
10
+ )?.valueString : void 0, Te = ({
11
+ episodeOfCareUuids: m,
12
+ encounterUuids: n,
13
+ config: w
14
+ }) => {
15
+ const { t } = ee(), u = re(), [l, O] = S(!1), [o, I] = S(null), {
16
+ numberOfVisits: K,
17
+ hideThumbnail: k = !1,
18
+ forms: c
19
+ } = w ?? {}, T = ae(
20
+ m,
21
+ n
22
+ ), H = pe(), {
23
+ data: L = [],
24
+ isLoading: B,
25
+ isError: C,
26
+ error: Q,
27
+ refetch: j
28
+ } = f({
29
+ queryKey: ["forms", u, m],
30
+ queryFn: () => oe(u, void 0, K),
31
+ enabled: !!u && !T
32
+ }), E = d(() => {
33
+ let e = L;
34
+ return n && n.length > 0 && (e = e.filter(
35
+ (r) => n.includes(r.encounterUuid)
36
+ )), Array.isArray(c) && c.length > 0 && (e = e.filter(
37
+ (r) => c.some((a) => a.toLowerCase() === r.formName.toLowerCase())
38
+ )), e;
39
+ }, [L, n, c]), { data: M = [] } = f({
40
+ queryKey: ["observationForms"],
41
+ queryFn: () => te()
42
+ }), R = y(
43
+ (e) => M.find((r) => r.name === e)?.uuid,
44
+ [M]
45
+ ), p = d(() => {
46
+ if (o)
47
+ return R(o.formName);
48
+ }, [o, R]), {
49
+ isLoading: x,
50
+ isError: G,
51
+ error: b
52
+ } = f({
53
+ queryKey: ["formMetadata", p],
54
+ queryFn: () => se(p),
55
+ enabled: !!p && l
56
+ }), {
57
+ data: N,
58
+ isLoading: V,
59
+ isError: $,
60
+ error: g
61
+ } = f({
62
+ queryKey: ["formsEncounterFHIR", o?.encounterUuid],
63
+ queryFn: () => ne(o.encounterUuid),
64
+ enabled: !!o?.encounterUuid && l
65
+ });
66
+ de(
67
+ (e) => {
68
+ e.patientUUID === u && e.updatedConcepts.size > 0 && (j(), H.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
69
+ },
70
+ [u]
71
+ );
72
+ const J = d(() => !N?.entry || !o?.formName ? [] : N.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => {
73
+ const r = ge(e);
74
+ return !r || r.includes(o.formName);
75
+ }), [N, o?.formName]), z = d(() => {
76
+ if (b)
77
+ return v(b).message;
78
+ if (g)
79
+ return v(g).message;
80
+ }, [b, g]), _ = d(
81
+ () => [
82
+ { key: "recordedOn", header: t("RECORDED_ON") },
83
+ { key: "recordedBy", header: t("RECORDED_BY") }
84
+ ],
85
+ [t]
86
+ ), X = d(
87
+ () => [
88
+ { key: "recordedOn", sortable: !0 },
89
+ { key: "recordedBy", sortable: !0 }
90
+ ],
91
+ []
92
+ ), F = d(() => {
93
+ const e = E.reduce(
94
+ (r, a) => {
95
+ const i = a.formName;
96
+ r[i] ??= [];
97
+ const h = a.providers.map((Y) => Y.providerName).filter(Boolean).join(", ");
98
+ return r[i].push({
99
+ id: a.encounterUuid,
100
+ formName: a.formName,
101
+ recordedOn: ie(a.encounterDateTime, t, !0).formattedResult,
102
+ recordedBy: h ?? "--",
103
+ encounterDateTime: a.encounterDateTime,
104
+ encounterUuid: a.encounterUuid
105
+ }), r;
106
+ },
107
+ {}
108
+ );
109
+ return Object.entries(e).map(
110
+ ([r, a]) => ({
111
+ formName: r,
112
+ records: a.sort(
113
+ (i, h) => h.encounterDateTime - i.encounterDateTime
114
+ )
115
+ })
116
+ ).sort((r, a) => r.formName.localeCompare(a.formName));
117
+ }, [E, t]), D = y((e) => {
118
+ I(e), O(!0);
119
+ }, []), P = y(() => {
120
+ O(!1), I(null);
121
+ }, []), q = y(
122
+ (e, r) => {
123
+ switch (r) {
124
+ case "recordedOn":
125
+ return /* @__PURE__ */ s(me, { onClick: () => D(e), children: e.recordedOn });
126
+ case "recordedBy":
127
+ return e.recordedBy;
128
+ default:
129
+ return null;
130
+ }
131
+ },
132
+ [D]
133
+ );
134
+ return /* @__PURE__ */ W(Z, { children: [
135
+ /* @__PURE__ */ s("div", { id: "forms-table", "data-testid": "forms-table", children: B || C || F.length === 0 || T ? /* @__PURE__ */ s(
136
+ U,
137
+ {
138
+ headers: _,
139
+ ariaLabel: t("FORMS_HEADING"),
140
+ rows: [],
141
+ loading: B,
142
+ errorStateMessage: C ? Q?.message : void 0,
143
+ emptyStateMessage: t("FORMS_UNAVAILABLE"),
144
+ renderCell: q,
145
+ className: A.formsTableBody,
146
+ dataTestId: "forms-table"
147
+ }
148
+ ) : /* @__PURE__ */ s(ue, { align: "start", children: F.map((e, r) => {
149
+ const { formName: a, records: i } = e;
150
+ return /* @__PURE__ */ s(
151
+ le,
152
+ {
153
+ title: a,
154
+ className: A.customAccordianItem,
155
+ testId: `accordian-title-${a}`,
156
+ open: r === 0,
157
+ children: /* @__PURE__ */ s(
158
+ U,
159
+ {
160
+ headers: _,
161
+ ariaLabel: t("FORMS_HEADING"),
162
+ rows: i,
163
+ loading: !1,
164
+ errorStateMessage: "",
165
+ sortable: X,
166
+ emptyStateMessage: t("FORMS_UNAVAILABLE"),
167
+ renderCell: q,
168
+ className: A.formsTableBody,
169
+ dataTestId: `forms-table-${a}`
170
+ }
171
+ )
172
+ },
173
+ a
174
+ );
175
+ }) }) }),
176
+ l && o && /* @__PURE__ */ s(
177
+ ce,
178
+ {
179
+ id: "modalIdForActionAreaLayout",
180
+ portalId: "main-display-area",
181
+ open: l,
182
+ onRequestClose: P,
183
+ modalHeading: o.formName,
184
+ modalLabel: `${o.recordedOn} | ${o.recordedBy}`,
185
+ passiveModal: !0,
186
+ size: "md",
187
+ testId: "form-details-modal",
188
+ children: /* @__PURE__ */ s(
189
+ fe,
190
+ {
191
+ observations: J,
192
+ isLoading: x || V,
193
+ isError: G || $,
194
+ errorMessage: z,
195
+ emptyStateMessage: t("NO_FORM_DATA_AVAILABLE"),
196
+ testIdPrefix: o.formName,
197
+ hideThumbnail: k
198
+ }
199
+ )
200
+ }
201
+ )
202
+ ] });
203
+ };
204
+ export {
205
+ Te as default
206
+ };
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-CE2Xp6XF.js";
2
- import { P as d, U as f, V as e } from "./index-Cb3jb-Bx.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-B--5WOex.js";
2
+ import { P as d, U as f, V as e } from "./index-DS-CiIQB.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-CE2Xp6XF.js";
2
- import { P as v, U as C, V as e } from "./index-Cb3jb-Bx.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-B--5WOex.js";
2
+ import { P as v, U as C, V as e } from "./index-DS-CiIQB.js";
3
3
  var h = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
1
  import { jsxs as S, jsx as u } from "react/jsx-runtime";
2
- import { u as M, h as k, a as N, W as q, Y as x, d as K, g as Q, i as X, s as Y, z as j, c as z, j as G, _ as A, o as H, y as P, k as W, M as J, S as Z, A as ee } from "./index-Cb3jb-Bx.js";
2
+ import { u as M, h as k, a as N, W as q, Y as x, d as K, g as Q, i as X, s as Y, z as j, c as z, j as G, _ as A, o as H, y as P, k as W, M as J, S as Z, A as ee } from "./index-DS-CiIQB.js";
3
3
  import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
4
4
  import { useRef as se, useEffect as $, useMemo as g } from "react";
5
5
  const D = (a, n, d, l, b, r) => {
@@ -1,4 +1,4 @@
1
- import { Z as we, $ as z, a0 as xt, a1 as B, U as q, V as y, a2 as Ro, a3 as ye, a4 as R, a5 as _, a6 as k, a7 as N, a8 as A, a9 as bs, aa as ir, ab as $e, ac as U, ad as Hn, ae as Vn, af as dt, ag as D, ah as xs, ai as cn, aj as Be, ak as ws, al as qt, am as zt, an as $s, ao as Cs, ap as $n, aq as Ss, ar as Nr, as as Bt, at as zo, au as ks, av as Es, aw as j, ax as Ur, ay as Ms, az as Ds, aA as sr, aB as As, aC as Ts, aD as zn, aE as Fs, aF as Is, aG as Z, aH as Ps, aI as Ls } from "./index-Cb3jb-Bx.js";
1
+ import { Z as we, $ as z, a0 as xt, a1 as B, U as q, V as y, a2 as Ro, a3 as ye, a4 as R, a5 as _, a6 as k, a7 as N, a8 as A, a9 as bs, aa as ir, ab as $e, ac as U, ad as Hn, ae as Vn, af as dt, ag as D, ah as xs, ai as cn, aj as Be, ak as ws, al as qt, am as zt, an as $s, ao as Cs, ap as $n, aq as Ss, ar as Nr, as as Bt, at as zo, au as ks, av as Es, aw as j, ax as Ur, ay as Ms, az as Ds, aA as sr, aB as As, aC as Ts, aD as zn, aE as Fs, aF as Is, aG as Z, aH as Ps, aI as Ls } from "./index-DS-CiIQB.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -1,5 +1,5 @@
1
1
  import { jsxs as Ne, jsx as ne, Fragment as Xi } from "react/jsx-runtime";
2
- import { a as ot, l as Qi, p as Ji, q as ec, r as tc, t as rc, E as nc, H as oc, v as hi, x as ac, B as lc, h as ic, D as cc, I as sc, L as fc, F as pc, N as hc, O as uc } from "./index-Cb3jb-Bx.js";
2
+ import { a as ot, l as Qi, p as Ji, q as ec, r as tc, t as rc, E as nc, H as oc, v as hi, x as ac, B as lc, h as ic, D as cc, I as sc, L as fc, F as pc, N as hc, O as uc } from "./index-DS-CiIQB.js";
3
3
  import * as X from "react";
4
4
  import r, { createContext as at, useContext as $e, Children as q1, useState as pe, useLayoutEffect as V1, useEffect as ie, useMemo as lt, useCallback as Me, useRef as oe, forwardRef as y1, useReducer as dc, cloneElement as G1, isValidElement as wc } from "react";
5
5
  import { useQuery as mc } from "@tanstack/react-query";
@@ -163929,7 +163929,7 @@ const CS0 = () => {
163929
163929
  );
163930
163930
  return t;
163931
163931
  };
163932
- Z0(() => Promise.resolve().then(() => kC0)), Z0(() => Promise.resolve().then(() => uA0)), Z0(() => Promise.resolve().then(() => PA0)), Z0(() => Promise.resolve().then(() => YA0)), Z0(() => import("./DocumentsTable-DpdDopmT-CJlHfGCV.js")), Z0(() => Promise.resolve().then(() => PT0)), Z0(() => import("./FormsTable-DpzSwpFX-5Wr4EHX9.js")), Z0(() => Promise.resolve().then(() => VT0)), Z0(() => import("./Observations-BGcqFMV8-DJR3XgVm.js")), Z0(
163932
+ Z0(() => Promise.resolve().then(() => kC0)), Z0(() => Promise.resolve().then(() => uA0)), Z0(() => Promise.resolve().then(() => PA0)), Z0(() => Promise.resolve().then(() => YA0)), Z0(() => import("./DocumentsTable-DEvlbfDU-DOf8A73N.js")), Z0(() => Promise.resolve().then(() => PT0)), Z0(() => import("./FormsTable-DBD0f2fD-Blmor6o1.js")), Z0(() => Promise.resolve().then(() => VT0)), Z0(() => import("./Observations-D6WZol9t-D4iyEESy.js")), Z0(
163933
163933
  () => Promise.resolve().then(() => QT0)
163934
163934
  ), Z0(
163935
163935
  () => Promise.resolve().then(() => q$0)
@@ -165865,7 +165865,7 @@ var ek0 = (t, e = !1) => {
165865
165865
  const e = eRe(() => {
165866
165866
  const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#t;
165867
165867
  let d;
165868
- return this.#l ? d = this.#l : (d = QDe(() => import("./LNWAZHJI-CUvA_HUU.js")), this.#l = d), ERe(this.#h, this.#r), GDe(d, JDe({
165868
+ return this.#l ? d = this.#l : (d = QDe(() => import("./LNWAZHJI-C846sF0P.js")), this.#l = d), ERe(this.#h, this.#r), GDe(d, JDe({
165869
165869
  get queryFlavor() {
165870
165870
  return r.#d;
165871
165871
  },
@@ -165963,7 +165963,7 @@ var ek0 = (t, e = !1) => {
165963
165963
  const e = eRe(() => {
165964
165964
  const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#t, [d] = this.#l;
165965
165965
  let u;
165966
- return this.#i ? u = this.#i : (u = QDe(() => import("./MWZ6AO7Z-BdEaEnI-.js")), this.#i = u), ERe(this.#h, this.#r), GDe(u, JDe({
165966
+ return this.#i ? u = this.#i : (u = QDe(() => import("./MWZ6AO7Z-D3M0ORyB.js")), this.#i = u), ERe(this.#h, this.#r), GDe(u, JDe({
165967
165967
  get queryFlavor() {
165968
165968
  return r.#d;
165969
165969
  },
@@ -166093,7 +166093,7 @@ const aR0 = {
166093
166093
  }
166094
166094
  }
166095
166095
  }, cR0 = "home", ak0 = "/bahmni/home/index.html#/login", ck0 = "/bahmni/home/index.html#/changePassword", lk0 = 6, lR0 = Z0(
166096
- () => import("./index-g54EhP3X.js").then((t) => ({
166096
+ () => import("./index-DGdvkBtM.js").then((t) => ({
166097
166097
  default: t.HomePage
166098
166098
  }))
166099
166099
  ), iR0 = [
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aJ as a } from "./index-Cb3jb-Bx.js";
1
+ import { aJ as a } from "./index-DS-CiIQB.js";
2
2
  export {
3
3
  a as HomeApp
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/home-app",
3
- "version": "0.0.1-dev.268",
3
+ "version": "0.0.1-dev.270",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -1,197 +0,0 @@
1
- import { jsx as s, jsxs as Y, Fragment as W } from "react/jsx-runtime";
2
- import { a as Z, u as ee, w as re, X as ae, J as te, Q as oe, G as se, d as ne, R as v, m as de, b as ie, c as C, C as ue, T as me, n as le, f as ce, K as fe } from "./index-Cb3jb-Bx.js";
3
- import { useQueryClient as ye, useQuery as c } from "@tanstack/react-query";
4
- import { useState as U, useMemo as d, useCallback as f } from "react";
5
- const pe = "_formsTableBody_ourq9_5", be = "_customAccordianItem_ourq9_10", I = {
6
- formsTableBody: pe,
7
- customAccordianItem: be
8
- }, ge = (u) => u ? u.extension?.find(
9
- (n) => n.url === fe
10
- )?.valueString : void 0, Ae = ({
11
- episodeOfCareUuids: u,
12
- encounterUuids: n,
13
- config: S
14
- }) => {
15
- const { t: o } = Z(), m = ee(), [l, O] = U(!1), [t, A] = U(null), { numberOfVisits: K, hideThumbnail: k = !1 } = S ?? {}, T = re(
16
- u,
17
- n
18
- ), w = ye(), {
19
- data: y = [],
20
- isLoading: E,
21
- isError: B,
22
- error: H,
23
- refetch: Q
24
- } = c({
25
- queryKey: ["forms", m, u],
26
- queryFn: () => ae(m, void 0, K),
27
- enabled: !!m && !T
28
- }), R = d(() => !n || n.length === 0 ? y : y.filter(
29
- (e) => n.includes(e.encounterUuid)
30
- ), [y, n]), { data: _ = [] } = c({
31
- queryKey: ["observationForms"],
32
- queryFn: () => te()
33
- }), F = f(
34
- (e) => _.find((r) => r.name === e)?.uuid,
35
- [_]
36
- ), p = d(() => {
37
- if (t)
38
- return F(t.formName);
39
- }, [t, F]), {
40
- isLoading: j,
41
- isError: x,
42
- error: b
43
- } = c({
44
- queryKey: ["formMetadata", p],
45
- queryFn: () => oe(p),
46
- enabled: !!p && l
47
- }), {
48
- data: g,
49
- isLoading: G,
50
- isError: V,
51
- error: N
52
- } = c({
53
- queryKey: ["formsEncounterFHIR", t?.encounterUuid],
54
- queryFn: () => se(t.encounterUuid),
55
- enabled: !!t?.encounterUuid && l
56
- });
57
- ne(
58
- (e) => {
59
- e.patientUUID === m && e.updatedConcepts.size > 0 && (Q(), w.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
60
- },
61
- [m]
62
- );
63
- const $ = d(() => !g?.entry || !t?.formName ? [] : g.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => {
64
- const r = ge(e);
65
- return !r || r.includes(t.formName);
66
- }), [g, t?.formName]), J = d(() => {
67
- if (b)
68
- return v(b).message;
69
- if (N)
70
- return v(N).message;
71
- }, [b, N]), L = d(
72
- () => [
73
- { key: "recordedOn", header: o("RECORDED_ON") },
74
- { key: "recordedBy", header: o("RECORDED_BY") }
75
- ],
76
- [o]
77
- ), z = d(
78
- () => [
79
- { key: "recordedOn", sortable: !0 },
80
- { key: "recordedBy", sortable: !0 }
81
- ],
82
- []
83
- ), M = d(() => {
84
- const e = R.reduce(
85
- (r, a) => {
86
- const i = a.formName;
87
- r[i] ??= [];
88
- const h = a.providers.map((P) => P.providerName).filter(Boolean).join(", ");
89
- return r[i].push({
90
- id: a.encounterUuid,
91
- formName: a.formName,
92
- recordedOn: de(a.encounterDateTime, o, !0).formattedResult,
93
- recordedBy: h ?? "--",
94
- encounterDateTime: a.encounterDateTime,
95
- encounterUuid: a.encounterUuid
96
- }), r;
97
- },
98
- {}
99
- );
100
- return Object.entries(e).map(
101
- ([r, a]) => ({
102
- formName: r,
103
- records: a.sort(
104
- (i, h) => h.encounterDateTime - i.encounterDateTime
105
- )
106
- })
107
- ).sort((r, a) => r.formName.localeCompare(a.formName));
108
- }, [R, o]), D = f((e) => {
109
- A(e), O(!0);
110
- }, []), X = f(() => {
111
- O(!1), A(null);
112
- }, []), q = f(
113
- (e, r) => {
114
- switch (r) {
115
- case "recordedOn":
116
- return /* @__PURE__ */ s(ie, { onClick: () => D(e), children: e.recordedOn });
117
- case "recordedBy":
118
- return e.recordedBy;
119
- default:
120
- return null;
121
- }
122
- },
123
- [D]
124
- );
125
- return /* @__PURE__ */ Y(W, { children: [
126
- /* @__PURE__ */ s("div", { id: "forms-table", "data-testid": "forms-table", children: E || B || M.length === 0 || T ? /* @__PURE__ */ s(
127
- C,
128
- {
129
- headers: L,
130
- ariaLabel: o("FORMS_HEADING"),
131
- rows: [],
132
- loading: E,
133
- errorStateMessage: B ? H?.message : void 0,
134
- emptyStateMessage: o("FORMS_UNAVAILABLE"),
135
- renderCell: q,
136
- className: I.formsTableBody,
137
- dataTestId: "forms-table"
138
- }
139
- ) : /* @__PURE__ */ s(ue, { align: "start", children: M.map((e, r) => {
140
- const { formName: a, records: i } = e;
141
- return /* @__PURE__ */ s(
142
- me,
143
- {
144
- title: a,
145
- className: I.customAccordianItem,
146
- testId: `accordian-title-${a}`,
147
- open: r === 0,
148
- children: /* @__PURE__ */ s(
149
- C,
150
- {
151
- headers: L,
152
- ariaLabel: o("FORMS_HEADING"),
153
- rows: i,
154
- loading: !1,
155
- errorStateMessage: "",
156
- sortable: z,
157
- emptyStateMessage: o("FORMS_UNAVAILABLE"),
158
- renderCell: q,
159
- className: I.formsTableBody,
160
- dataTestId: `forms-table-${a}`
161
- }
162
- )
163
- },
164
- a
165
- );
166
- }) }) }),
167
- l && t && /* @__PURE__ */ s(
168
- le,
169
- {
170
- id: "modalIdForActionAreaLayout",
171
- portalId: "main-display-area",
172
- open: l,
173
- onRequestClose: X,
174
- modalHeading: t.formName,
175
- modalLabel: `${t.recordedOn} | ${t.recordedBy}`,
176
- passiveModal: !0,
177
- size: "md",
178
- testId: "form-details-modal",
179
- children: /* @__PURE__ */ s(
180
- ce,
181
- {
182
- observations: $,
183
- isLoading: j || G,
184
- isError: x || V,
185
- errorMessage: J,
186
- emptyStateMessage: o("NO_FORM_DATA_AVAILABLE"),
187
- testIdPrefix: t.formName,
188
- hideThumbnail: k
189
- }
190
- )
191
- }
192
- )
193
- ] });
194
- };
195
- export {
196
- Ae as default
197
- };