@bahmni/registration-app 0.0.1-dev.13 → 0.0.1-dev.130

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.
Files changed (121) hide show
  1. package/dist/App.d.ts.map +1 -1
  2. package/dist/FormsTable-symiaWjC-CB_KEfzD.js +363 -0
  3. package/dist/{LNWAZHJI-Bw_4ID3r.js → LNWAZHJI-DTfiGcc5.js} +2 -2
  4. package/dist/{MWZ6AO7Z-CaqB01sB.js → MWZ6AO7Z-zxcs_vVh.js} +2 -2
  5. package/dist/Observations-Dkuz2yfC-CZ2o54xj.js +338 -0
  6. package/dist/{YPM2AS64-Ck9T4Pfw.js → YPM2AS64-Dz2qGqyu.js} +3197 -3381
  7. package/dist/components/common/PersonAttributeInput.d.ts +27 -0
  8. package/dist/components/common/PersonAttributeInput.d.ts.map +1 -0
  9. package/dist/components/common/personAttributeHelpers.d.ts +11 -0
  10. package/dist/components/common/personAttributeHelpers.d.ts.map +1 -0
  11. package/dist/components/common/personAttributeValidation.d.ts +20 -0
  12. package/dist/components/common/personAttributeValidation.d.ts.map +1 -0
  13. package/dist/components/forms/additionalIdentifiers/AdditionalIdentifiers.d.ts +15 -0
  14. package/dist/components/forms/additionalIdentifiers/AdditionalIdentifiers.d.ts.map +1 -0
  15. package/dist/components/forms/additionalInfo/AdditionalInfo.d.ts +4 -4
  16. package/dist/components/forms/additionalInfo/AdditionalInfo.d.ts.map +1 -1
  17. package/dist/components/forms/addressInfo/AddressAutocompleteField.d.ts +19 -0
  18. package/dist/components/forms/addressInfo/AddressAutocompleteField.d.ts.map +1 -0
  19. package/dist/components/forms/addressInfo/AddressInfo.d.ts +3 -1
  20. package/dist/components/forms/addressInfo/AddressInfo.d.ts.map +1 -1
  21. package/dist/components/forms/contactInfo/ContactInfo.d.ts +4 -4
  22. package/dist/components/forms/contactInfo/ContactInfo.d.ts.map +1 -1
  23. package/dist/components/forms/patientRelationships/PatientRelationships.d.ts +27 -0
  24. package/dist/components/forms/patientRelationships/PatientRelationships.d.ts.map +1 -0
  25. package/dist/components/forms/patientRelationships/RelationshipRow.d.ts +33 -0
  26. package/dist/components/forms/patientRelationships/RelationshipRow.d.ts.map +1 -0
  27. package/dist/components/forms/patientRelationships/index.d.ts +3 -0
  28. package/dist/components/forms/patientRelationships/index.d.ts.map +1 -0
  29. package/dist/components/forms/patientRelationships/usePatientRelationship.d.ts +26 -0
  30. package/dist/components/forms/patientRelationships/usePatientRelationship.d.ts.map +1 -0
  31. package/dist/components/forms/patientRelationships/useRelationshipManager.d.ts +26 -0
  32. package/dist/components/forms/patientRelationships/useRelationshipManager.d.ts.map +1 -0
  33. package/dist/components/forms/profile/Profile.d.ts +4 -1
  34. package/dist/components/forms/profile/Profile.d.ts.map +1 -1
  35. package/dist/components/forms/profile/dateAgeUtils.d.ts +2 -0
  36. package/dist/components/forms/profile/dateAgeUtils.d.ts.map +1 -1
  37. package/dist/components/patientPhotoUpload/PatientPhotoUpload.d.ts +8 -0
  38. package/dist/components/patientPhotoUpload/PatientPhotoUpload.d.ts.map +1 -0
  39. package/dist/components/registrationActions/RegistrationActions.d.ts +16 -0
  40. package/dist/components/registrationActions/RegistrationActions.d.ts.map +1 -0
  41. package/dist/components/registrationActions/index.d.ts +3 -0
  42. package/dist/components/registrationActions/index.d.ts.map +1 -0
  43. package/dist/constants/app.d.ts +4 -0
  44. package/dist/constants/app.d.ts.map +1 -1
  45. package/dist/contexts/PersonAttributesContext.d.ts +16 -0
  46. package/dist/contexts/PersonAttributesContext.d.ts.map +1 -0
  47. package/dist/hooks/useAdditionalIdentifiers.d.ts +11 -0
  48. package/dist/hooks/useAdditionalIdentifiers.d.ts.map +1 -0
  49. package/dist/hooks/useAddressFields.d.ts +46 -0
  50. package/dist/hooks/useAddressFields.d.ts.map +1 -0
  51. package/dist/hooks/useAddressFieldsWithConfig.d.ts +32 -0
  52. package/dist/hooks/useAddressFieldsWithConfig.d.ts.map +1 -0
  53. package/dist/hooks/useAddressSuggestions.d.ts +12 -0
  54. package/dist/hooks/useAddressSuggestions.d.ts.map +1 -0
  55. package/dist/hooks/useCreatePatient.d.ts +7 -15
  56. package/dist/hooks/useCreatePatient.d.ts.map +1 -1
  57. package/dist/hooks/useFilteredExtensions.d.ts +15 -0
  58. package/dist/hooks/useFilteredExtensions.d.ts.map +1 -0
  59. package/dist/hooks/usePatientDetails.d.ts +22 -0
  60. package/dist/hooks/usePatientDetails.d.ts.map +1 -0
  61. package/dist/hooks/usePatientPhoto.d.ts +9 -0
  62. package/dist/hooks/usePatientPhoto.d.ts.map +1 -0
  63. package/dist/hooks/usePatientSearch.d.ts +15 -0
  64. package/dist/hooks/usePatientSearch.d.ts.map +1 -0
  65. package/dist/hooks/usePersonAttributeFields.d.ts +35 -0
  66. package/dist/hooks/usePersonAttributeFields.d.ts.map +1 -0
  67. package/dist/hooks/usePersonAttributes.d.ts +8 -0
  68. package/dist/hooks/usePersonAttributes.d.ts.map +1 -0
  69. package/dist/hooks/useRegistrationConfig.d.ts +0 -5
  70. package/dist/hooks/useRegistrationConfig.d.ts.map +1 -1
  71. package/dist/hooks/useRelationshipValidation.d.ts +19 -0
  72. package/dist/hooks/useRelationshipValidation.d.ts.map +1 -0
  73. package/dist/hooks/useUpdatePatient.d.ts +20 -0
  74. package/dist/hooks/useUpdatePatient.d.ts.map +1 -0
  75. package/dist/hooks/useVisit.d.ts +13 -0
  76. package/dist/hooks/useVisit.d.ts.map +1 -0
  77. package/dist/{index-Ce5nX17l.js → index-D_Nrhuhz.js} +86900 -75164
  78. package/dist/index.css +1 -1
  79. package/dist/index.d.ts +1 -0
  80. package/dist/index.d.ts.map +1 -1
  81. package/dist/index.js +4 -2
  82. package/dist/locales/locale_en.json +80 -9
  83. package/dist/locales/locale_es.json +80 -9
  84. package/dist/models/patient.d.ts +17 -13
  85. package/dist/models/patient.d.ts.map +1 -1
  86. package/dist/models/validation.d.ts +2 -0
  87. package/dist/models/validation.d.ts.map +1 -1
  88. package/dist/pages/PatientRegister/PatientRegister.d.ts +3 -0
  89. package/dist/pages/PatientRegister/PatientRegister.d.ts.map +1 -0
  90. package/dist/pages/PatientRegister/patientFormService.d.ts +41 -0
  91. package/dist/pages/PatientRegister/patientFormService.d.ts.map +1 -0
  92. package/dist/pages/PatientRegister/visitTypeSelector.d.ts +9 -0
  93. package/dist/pages/PatientRegister/visitTypeSelector.d.ts.map +1 -0
  94. package/dist/pages/patientSearchPage/appointmentSearchResultActionHandler.d.ts.map +1 -1
  95. package/dist/pages/patientSearchPage/index.d.ts.map +1 -1
  96. package/dist/providers/PersonAttributesProvider.d.ts +9 -0
  97. package/dist/providers/PersonAttributesProvider.d.ts.map +1 -0
  98. package/dist/providers/RegistrationConfigProvider.d.ts.map +1 -1
  99. package/dist/utils/extensionNavigation.d.ts +9 -0
  100. package/dist/utils/extensionNavigation.d.ts.map +1 -0
  101. package/dist/utils/identifierGenderUtils.d.ts +1 -0
  102. package/dist/utils/identifierGenderUtils.d.ts.map +1 -1
  103. package/dist/utils/patientDataConverter.d.ts +10 -0
  104. package/dist/utils/patientDataConverter.d.ts.map +1 -0
  105. package/dist/utils/relationshipTypesCache.d.ts +15 -0
  106. package/dist/utils/relationshipTypesCache.d.ts.map +1 -0
  107. package/dist/utils/translation.d.ts +3 -0
  108. package/dist/utils/translation.d.ts.map +1 -0
  109. package/dist/utils/visitUtils.d.ts +5 -0
  110. package/dist/utils/visitUtils.d.ts.map +1 -0
  111. package/package.json +1 -1
  112. package/dist/components/Header/Header.d.ts +0 -18
  113. package/dist/components/Header/Header.d.ts.map +0 -1
  114. package/dist/components/Header/index.d.ts +0 -3
  115. package/dist/components/Header/index.d.ts.map +0 -1
  116. package/dist/pages/createPatientPage/CreatePatient.d.ts +0 -3
  117. package/dist/pages/createPatientPage/CreatePatient.d.ts.map +0 -1
  118. package/dist/pages/createPatientPage/patientFormService.d.ts +0 -36
  119. package/dist/pages/createPatientPage/patientFormService.d.ts.map +0 -1
  120. package/dist/pages/createPatientPage/visitTypeSelector.d.ts +0 -7
  121. package/dist/pages/createPatientPage/visitTypeSelector.d.ts.map +0 -1
package/dist/App.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AASA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAUnD,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EA0C5B,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AASA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAWnD,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAgD5B,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1,363 @@
1
+ import { jsx as t, jsxs as p, Fragment as J } from "react/jsx-runtime";
2
+ import { u as W, C as Q, J as Y, I as Z, $ as ee, S as re, R as ae, c as oe, F as te, q as x, D as ne, a as se, b as me, d as de, v as G, h as ie, W as v } from "./index-D_Nrhuhz.js";
3
+ import { useQuery as h } from "@tanstack/react-query";
4
+ import { useState as q, useMemo as $, useCallback as y } from "react";
5
+ import { createPortal as le } from "react-dom";
6
+ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe = "_formContent_1pd36_18", be = "_formDetailsContainer_1pd36_25", _e = "_observation_1pd36_30", fe = "_groupContainer_1pd36_39", $e = "_rowContainer_1pd36_43", Ne = "_groupLabel_1pd36_48", ge = "_rowLabel_1pd36_58", he = "_rowValue_1pd36_67", ye = "_groupMembers_1pd36_75", ve = "_memberRow_1pd36_81", Ae = "_memberLabel_1pd36_86", Me = "_memberValue_1pd36_94", Te = "_abnormalValue_1pd36_102", Le = "_commentSection_1pd36_110", Re = "_commentText_1pd36_116", Ce = "_nestedGroup_1pd36_125", De = "_nestedGroupLabel_1pd36_132", Oe = "_nestedGroupMembers_1pd36_141", o = {
7
+ formsTableBody: ce,
8
+ customAccordianItem: ue,
9
+ formContent: pe,
10
+ formDetailsContainer: be,
11
+ observation: _e,
12
+ groupContainer: fe,
13
+ rowContainer: $e,
14
+ groupLabel: Ne,
15
+ rowLabel: ge,
16
+ rowValue: he,
17
+ groupMembers: ye,
18
+ memberRow: ve,
19
+ memberLabel: Ae,
20
+ memberValue: Me,
21
+ abnormalValue: Te,
22
+ commentSection: Le,
23
+ commentText: Re,
24
+ nestedGroup: Ce,
25
+ nestedGroupLabel: De,
26
+ nestedGroupMembers: Oe
27
+ }, Fe = "ABNORMAL", U = (e) => {
28
+ const s = e.concept?.units, d = e.concept?.lowNormal, r = e.concept?.hiNormal, u = d != null, m = r != null, c = u && m ? ` (${d} - ${r})` : u ? ` (>${d})` : m ? ` (<${r})` : "", a = e.interpretation && e.interpretation.toUpperCase() === Fe;
29
+ return { units: s, rangeString: c, isAbnormal: a };
30
+ }, k = ({
31
+ member: e,
32
+ depth: s = 0,
33
+ memberIndex: d = 0,
34
+ formName: r = ""
35
+ }) => {
36
+ const u = e.groupMembers && e.groupMembers.length > 0, m = e.conceptNameToDisplay ?? e.concept?.shortName ?? e.concept?.name, c = r ? `${r}-` : "";
37
+ if (u)
38
+ return /* @__PURE__ */ p(
39
+ "div",
40
+ {
41
+ className: o.nestedGroup,
42
+ "data-testid": `${c}obs-nested-group-${m}-${d}`,
43
+ children: [
44
+ /* @__PURE__ */ t(
45
+ "div",
46
+ {
47
+ className: o.nestedGroupLabel,
48
+ "data-testid": `${c}obs-nested-group-label-${m}-${d}`,
49
+ style: { paddingLeft: `${s * 16}px` },
50
+ children: m
51
+ }
52
+ ),
53
+ /* @__PURE__ */ t(
54
+ "div",
55
+ {
56
+ className: o.nestedGroupMembers,
57
+ "data-testid": `${c}obs-nested-group-members-${m}-${d}`,
58
+ children: e.groupMembers?.map((N, g) => /* @__PURE__ */ t(
59
+ k,
60
+ {
61
+ member: N,
62
+ depth: s + 1,
63
+ memberIndex: g,
64
+ formName: r
65
+ },
66
+ `${N.concept.uuid}`
67
+ ))
68
+ }
69
+ )
70
+ ]
71
+ }
72
+ );
73
+ const { units: a, rangeString: b, isAbnormal: _ } = U(e);
74
+ return /* @__PURE__ */ p(
75
+ "div",
76
+ {
77
+ className: o.memberRow,
78
+ "data-testid": `${c}obs-member-row-${m}-${d}`,
79
+ style: { paddingLeft: `${s * 16}px` },
80
+ children: [
81
+ /* @__PURE__ */ p(
82
+ "p",
83
+ {
84
+ className: v(
85
+ o.memberLabel,
86
+ _ ? o.abnormalValue : ""
87
+ ),
88
+ "data-testid": `${c}obs-member-label-${m}-${d}`,
89
+ children: [
90
+ m,
91
+ b
92
+ ]
93
+ }
94
+ ),
95
+ /* @__PURE__ */ p(
96
+ "p",
97
+ {
98
+ className: v(
99
+ o.memberValue,
100
+ _ ? o.abnormalValue : ""
101
+ ),
102
+ "data-testid": `${c}obs-member-value-${m}-${d}`,
103
+ children: [
104
+ e.valueAsString,
105
+ a && ` ${a}`
106
+ ]
107
+ }
108
+ )
109
+ ]
110
+ }
111
+ );
112
+ }, Ie = ({
113
+ observation: e,
114
+ index: s,
115
+ formName: d = ""
116
+ }) => {
117
+ const r = e.groupMembers && e.groupMembers.length > 0, { units: u, rangeString: m, isAbnormal: c } = U(e), a = d ? `${d}-` : "";
118
+ return /* @__PURE__ */ p(
119
+ "div",
120
+ {
121
+ className: o.observation,
122
+ "data-testid": `${a}observation-item-${e.conceptNameToDisplay}-${s}`,
123
+ children: [
124
+ /* @__PURE__ */ p(
125
+ "div",
126
+ {
127
+ className: r ? o.groupContainer : o.rowContainer,
128
+ "data-testid": `${a}observation-container-${e.conceptNameToDisplay}-${s}`,
129
+ children: [
130
+ /* @__PURE__ */ p(
131
+ "p",
132
+ {
133
+ className: v(
134
+ r ? o.groupLabel : o.rowLabel,
135
+ !r && c ? o.abnormalValue : ""
136
+ ),
137
+ "data-testid": `${a}observation-label-${e.conceptNameToDisplay}-${s}`,
138
+ children: [
139
+ e.conceptNameToDisplay,
140
+ !r && m && /* @__PURE__ */ t("span", { className: o.rangeInfo, children: m })
141
+ ]
142
+ }
143
+ ),
144
+ r ? /* @__PURE__ */ t(
145
+ "div",
146
+ {
147
+ className: o.groupMembers,
148
+ "data-testid": `${a}observation-group-members-${e.conceptNameToDisplay}-${s}`,
149
+ children: e.groupMembers?.map((b, _) => /* @__PURE__ */ t(
150
+ k,
151
+ {
152
+ member: b,
153
+ depth: 0,
154
+ memberIndex: _,
155
+ formName: d
156
+ },
157
+ `${b.concept.uuid}`
158
+ ))
159
+ }
160
+ ) : /* @__PURE__ */ p(
161
+ "p",
162
+ {
163
+ className: v(
164
+ o.rowValue,
165
+ c ? o.abnormalValue : ""
166
+ ),
167
+ "data-testid": `${a}observation-value-${e.conceptNameToDisplay}-${s}`,
168
+ children: [
169
+ e.valueAsString,
170
+ u && ` ${u}`
171
+ ]
172
+ }
173
+ )
174
+ ]
175
+ }
176
+ ),
177
+ e.comment && /* @__PURE__ */ t(
178
+ "div",
179
+ {
180
+ className: o.commentSection,
181
+ "data-testid": `${a}observation-comment-${e.conceptNameToDisplay}-${s}`,
182
+ children: /* @__PURE__ */ p("span", { className: o.commentText, children: [
183
+ e.comment,
184
+ e.providers?.[0]?.name && ` - by ${e.providers[0].name}`
185
+ ] })
186
+ }
187
+ )
188
+ ]
189
+ },
190
+ `${e.concept.uuid}-${s}`
191
+ );
192
+ }, Ge = ({
193
+ episodeOfCareUuids: e,
194
+ encounterUuids: s,
195
+ config: d
196
+ }) => {
197
+ const { t: r } = W(), u = Q(), [m, c] = q(!1), [a, b] = q(null), _ = d?.numberOfVisits, N = Y(
198
+ e,
199
+ s
200
+ ), {
201
+ data: g = [],
202
+ isLoading: L,
203
+ isError: R,
204
+ error: H
205
+ } = h({
206
+ queryKey: ["forms", u, e],
207
+ queryFn: () => Z(u, void 0, _),
208
+ enabled: !!u && !N
209
+ }), C = $(() => !s || s.length === 0 ? g : g.filter(
210
+ (n) => s.includes(n.encounterUuid)
211
+ ), [g, s]), { data: D = [] } = h({
212
+ queryKey: ["observationForms"],
213
+ queryFn: () => ee()
214
+ }), O = y(
215
+ (n) => D.find((l) => l.name === n)?.uuid,
216
+ [D]
217
+ ), A = $(() => {
218
+ if (a)
219
+ return O(a.formName);
220
+ }, [a, O]), {
221
+ data: we,
222
+ isLoading: X,
223
+ error: F
224
+ } = h({
225
+ queryKey: ["formMetadata", A],
226
+ queryFn: () => re(A),
227
+ enabled: !!A && m
228
+ }), {
229
+ data: M,
230
+ isLoading: j,
231
+ error: I
232
+ } = h({
233
+ queryKey: ["formsEncounter", a?.encounterUuid],
234
+ queryFn: () => ae(a.encounterUuid, !0),
235
+ enabled: !!a?.encounterUuid && m
236
+ }), w = $(() => !M?.observations || !a?.formName ? [] : M.observations.filter(
237
+ (n) => "formFieldPath" in n && typeof n.formFieldPath == "string" && n.formFieldPath.includes(a.formName)
238
+ ), [M?.observations, a?.formName]), S = $(
239
+ () => [
240
+ { key: "recordedOn", header: r("FORM_RECORDED_ON") },
241
+ { key: "recordedBy", header: r("FORM_RECORDED_BY") }
242
+ ],
243
+ [r]
244
+ ), K = $(
245
+ () => [
246
+ { key: "recordedOn", sortable: !0 },
247
+ { key: "recordedBy", sortable: !0 }
248
+ ],
249
+ []
250
+ ), B = $(() => {
251
+ const n = C.reduce(
252
+ (l, i) => {
253
+ const f = i.formName;
254
+ l[f] ??= [];
255
+ const T = i.providers.map((z) => z.providerName).filter(Boolean).join(", ");
256
+ return l[f].push({
257
+ id: i.encounterUuid,
258
+ formName: i.formName,
259
+ recordedOn: oe(i.encounterDateTime, r, ie).formattedResult,
260
+ recordedBy: T ?? "--",
261
+ encounterDateTime: i.encounterDateTime,
262
+ encounterUuid: i.encounterUuid
263
+ }), l;
264
+ },
265
+ {}
266
+ );
267
+ return Object.entries(n).map(
268
+ ([l, i]) => ({
269
+ formName: l,
270
+ records: i.sort(
271
+ (f, T) => T.encounterDateTime - f.encounterDateTime
272
+ )
273
+ })
274
+ ).sort((l, i) => l.formName.localeCompare(i.formName));
275
+ }, [C, r]), E = y((n) => {
276
+ b(n), c(!0);
277
+ }, []), P = y(() => {
278
+ c(!1), b(null);
279
+ }, []), V = y(
280
+ (n, l) => {
281
+ switch (l) {
282
+ case "recordedOn":
283
+ return /* @__PURE__ */ t(te, { onClick: () => E(n), children: n.recordedOn });
284
+ case "recordedBy":
285
+ return n.recordedBy;
286
+ default:
287
+ return null;
288
+ }
289
+ },
290
+ [E]
291
+ );
292
+ return /* @__PURE__ */ p(J, { children: [
293
+ /* @__PURE__ */ t("div", { "data-testid": "forms-table", children: L || R || B.length === 0 || N ? /* @__PURE__ */ t(
294
+ x,
295
+ {
296
+ headers: S,
297
+ ariaLabel: r("FORMS_HEADING"),
298
+ rows: [],
299
+ loading: L,
300
+ errorStateMessage: R ? H?.message : void 0,
301
+ emptyStateMessage: r("FORMS_UNAVAILABLE"),
302
+ renderCell: V,
303
+ className: o.formsTableBody,
304
+ dataTestId: "forms-table"
305
+ }
306
+ ) : /* @__PURE__ */ t(ne, { align: "start", children: B.map((n, l) => {
307
+ const { formName: i, records: f } = n;
308
+ return /* @__PURE__ */ t(
309
+ se,
310
+ {
311
+ title: i,
312
+ className: o.customAccordianItem,
313
+ testId: `accordian-title-${i}`,
314
+ open: l === 0,
315
+ children: /* @__PURE__ */ t(
316
+ x,
317
+ {
318
+ headers: S,
319
+ ariaLabel: r("FORMS_HEADING"),
320
+ rows: f,
321
+ loading: !1,
322
+ errorStateMessage: "",
323
+ sortable: K,
324
+ emptyStateMessage: r("FORMS_UNAVAILABLE"),
325
+ renderCell: V,
326
+ className: o.formsTableBody,
327
+ dataTestId: `forms-table-${i}`
328
+ }
329
+ )
330
+ },
331
+ i
332
+ );
333
+ }) }) }),
334
+ m && a && le(
335
+ /* @__PURE__ */ t(
336
+ me,
337
+ {
338
+ id: "modalIdForActionAreaLayout",
339
+ open: m,
340
+ onRequestClose: P,
341
+ modalHeading: a.formName,
342
+ modalLabel: `${a.recordedOn} | ${a.recordedBy}`,
343
+ passiveModal: !0,
344
+ size: "md",
345
+ testId: "form-details-modal",
346
+ children: /* @__PURE__ */ t("div", { className: o.formContent, children: X || j ? /* @__PURE__ */ t(de, { width: "100%", lineCount: 3 }) : F ? /* @__PURE__ */ t("div", { children: G(F).message ?? r("ERROR_FETCHING_FORM_METADATA") }) : I ? /* @__PURE__ */ t("div", { children: G(I).message ?? r("ERROR_FETCHING_FORM_DATA") }) : w.length > 0 ? /* @__PURE__ */ t("div", { className: o.formDetailsContainer, children: w.map((n, l) => /* @__PURE__ */ t(
347
+ Ie,
348
+ {
349
+ observation: n,
350
+ index: l,
351
+ formName: a.formName
352
+ },
353
+ `${n.concept.uuid}`
354
+ )) }) : /* @__PURE__ */ t("div", { children: r("NO_FORM_DATA_AVAILABLE") }) })
355
+ }
356
+ ),
357
+ document.getElementById("actionAreaLayout") ?? document.body
358
+ )
359
+ ] });
360
+ };
361
+ export {
362
+ Ge as default
363
+ };
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-Ck9T4Pfw.js";
2
- import { g as d, c as f, a as e } from "./index-Ce5nX17l.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-Dz2qGqyu.js";
2
+ import { k as d, l as f, m as e } from "./index-D_Nrhuhz.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-Ck9T4Pfw.js";
2
- import { g as v, c as C, a as e } from "./index-Ce5nX17l.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-Dz2qGqyu.js";
2
+ import { k as v, l as C, m as e } from "./index-D_Nrhuhz.js";
3
3
  var h = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"