@bahmni/registration-app 0.0.1-dev.14 → 0.0.1-dev.141

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