@bahmni/registration-app 0.0.1-dev.171 → 0.0.1-dev.173

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 (43) hide show
  1. package/dist/{DocumentsTable-TPfrZJSk-CnPlwf3u.js → DocumentsTable-DV_nkz4--BGsIQv3U.js} +1 -1
  2. package/dist/{FormsTable-BSKlMAJe-BWz6Ww8f.js → FormsTable-DL_zg0dG-Dtzz6_q4.js} +97 -97
  3. package/dist/{LNWAZHJI-DYHV_n8s.js → LNWAZHJI-hJhqylVc.js} +5 -5
  4. package/dist/{MWZ6AO7Z-DgMjJOza.js → MWZ6AO7Z-Bh8B_EOv.js} +7 -7
  5. package/dist/{Observations-Diygv8o5-VWfyxp1Z.js → Observations-c94Dp42v-gtJn7WfV.js} +52 -52
  6. package/dist/{YPM2AS64-Dyj543hX.js → YPM2AS64-COjNsPdl.js} +181 -181
  7. package/dist/components/forms/additionalInfo/AdditionalInfo.d.ts.map +1 -1
  8. package/dist/components/forms/contactInfo/ContactInfo.d.ts.map +1 -1
  9. package/dist/components/forms/profile/Profile.d.ts.map +1 -1
  10. package/dist/components/registrationActions/RegistrationActions.d.ts.map +1 -1
  11. package/dist/constants/app.d.ts +1 -0
  12. package/dist/constants/app.d.ts.map +1 -1
  13. package/dist/hooks/useAddressFieldsWithConfig.d.ts.map +1 -1
  14. package/dist/hooks/useFilteredExtensions.d.ts +1 -1
  15. package/dist/hooks/useFilteredExtensions.d.ts.map +1 -1
  16. package/dist/{index-Qc9d1D1J.js → index-DAYe3WiF.js} +33612 -33605
  17. package/dist/index.css +1 -1
  18. package/dist/index.js +1 -1
  19. package/dist/locales/locale_en.json +3 -0
  20. package/dist/locales/locale_es.json +2 -0
  21. package/dist/pages/patientSearchPage/index.d.ts.map +1 -1
  22. package/dist/providers/registrationConfig/constants.d.ts +2 -0
  23. package/dist/providers/registrationConfig/constants.d.ts.map +1 -0
  24. package/dist/providers/registrationConfig/context.d.ts +3 -0
  25. package/dist/providers/registrationConfig/context.d.ts.map +1 -0
  26. package/dist/providers/registrationConfig/hook.d.ts +3 -0
  27. package/dist/providers/registrationConfig/hook.d.ts.map +1 -0
  28. package/dist/providers/registrationConfig/index.d.ts +5 -0
  29. package/dist/providers/registrationConfig/index.d.ts.map +1 -0
  30. package/dist/providers/registrationConfig/models.d.ts +84 -0
  31. package/dist/providers/registrationConfig/models.d.ts.map +1 -0
  32. package/dist/providers/registrationConfig/provider.d.ts +4 -0
  33. package/dist/providers/registrationConfig/provider.d.ts.map +1 -0
  34. package/dist/providers/registrationConfig/schema.json.d.ts +406 -0
  35. package/package.json +1 -1
  36. package/dist/contexts/RegistrationConfigContext.d.ts +0 -3
  37. package/dist/contexts/RegistrationConfigContext.d.ts.map +0 -1
  38. package/dist/hooks/useRegistrationConfig.d.ts +0 -3
  39. package/dist/hooks/useRegistrationConfig.d.ts.map +0 -1
  40. package/dist/models/registrationConfig.d.ts +0 -15
  41. package/dist/models/registrationConfig.d.ts.map +0 -1
  42. package/dist/providers/RegistrationConfigProvider.d.ts +0 -9
  43. package/dist/providers/RegistrationConfigProvider.d.ts.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { jsxs as N, jsx as w, Fragment as St } from "react/jsx-runtime";
2
- import { p as kt, u as Wt, f as jt, t as Pt, i as Ut, z as $t, G as Yt, g as qt, W as h } from "./index-Qc9d1D1J.js";
2
+ import { f as kt, u as Wt, n as jt, P as Pt, a as Ut, z as $t, G as Yt, g as qt, W as h } from "./index-DAYe3WiF.js";
3
3
  import { useQuery as Ft } from "@tanstack/react-query";
4
4
  import e, { useState as A, useCallback as g, useEffect as Gt, useMemo as z } from "react";
5
5
  function Kt(t, r, n) {
@@ -1,30 +1,30 @@
1
- import { jsx as s, jsxs as p, Fragment as H } from "react/jsx-runtime";
2
- import { u as ee, p as re, v as ae, e as te, X as oe, Q as ne, J as se, a as de, i as me, T as ie, z as U, Y as le, b as ce, G as ue, c as be, V as q, d as pe, g as _e, C as R, h as fe, _ as $e, j as ve, k as ge } from "./index-Qc9d1D1J.js";
3
- import { useQueryClient as he, useQuery as C } from "@tanstack/react-query";
4
- import { useState as k, useMemo as h, useCallback as L } from "react";
5
- const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18", Le = "_formDetailsContainer_1pd36_25", Re = "_observation_1pd36_30", Ae = "_groupContainer_1pd36_39", Fe = "_rowContainer_1pd36_43", Ve = "_groupLabel_1pd36_48", Me = "_rowLabel_1pd36_58", Oe = "_rowValue_1pd36_67", Te = "_groupMembers_1pd36_75", Ie = "_memberRow_1pd36_81", Se = "_memberLabel_1pd36_86", we = "_memberValue_1pd36_94", De = "_abnormalValue_1pd36_102", xe = "_commentSection_1pd36_110", Ee = "_commentText_1pd36_116", Ge = "_nestedGroup_1pd36_125", Be = "_nestedGroupLabel_1pd36_132", Ue = "_nestedGroupMembers_1pd36_141", o = {
1
+ import { jsx as s, jsxs as p, Fragment as K } from "react/jsx-runtime";
2
+ import { u as ee, f as re, v as ae, B as te, k as oe, Z as ne, I as se, e as de, a as me, L as ie, z as U, K as le, Y as ce, G as ue, b as be, c as q, $ as pe, g as fe, C as A, D as _e, d as $e, w as ge, S as ve } from "./index-DAYe3WiF.js";
3
+ import { useQueryClient as he, useQuery as L } from "@tanstack/react-query";
4
+ import { useState as k, useMemo as h, useCallback as R } from "react";
5
+ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Le = "_formContent_1pd36_18", Re = "_formDetailsContainer_1pd36_25", Ae = "_observation_1pd36_30", Ce = "_groupContainer_1pd36_39", Fe = "_rowContainer_1pd36_43", Ie = "_groupLabel_1pd36_48", Oe = "_rowLabel_1pd36_58", Me = "_rowValue_1pd36_67", Se = "_groupMembers_1pd36_75", Ve = "_memberRow_1pd36_81", Te = "_memberLabel_1pd36_86", we = "_memberValue_1pd36_94", De = "_abnormalValue_1pd36_102", Be = "_commentSection_1pd36_110", Ee = "_commentText_1pd36_116", xe = "_nestedGroup_1pd36_125", Ge = "_nestedGroupLabel_1pd36_132", Ue = "_nestedGroupMembers_1pd36_141", o = {
6
6
  formsTableBody: Ne,
7
7
  customAccordianItem: ye,
8
- formContent: Ce,
9
- formDetailsContainer: Le,
10
- observation: Re,
11
- groupContainer: Ae,
8
+ formContent: Le,
9
+ formDetailsContainer: Re,
10
+ observation: Ae,
11
+ groupContainer: Ce,
12
12
  rowContainer: Fe,
13
- groupLabel: Ve,
14
- rowLabel: Me,
15
- rowValue: Oe,
16
- groupMembers: Te,
17
- memberRow: Ie,
18
- memberLabel: Se,
13
+ groupLabel: Ie,
14
+ rowLabel: Oe,
15
+ rowValue: Me,
16
+ groupMembers: Se,
17
+ memberRow: Ve,
18
+ memberLabel: Te,
19
19
  memberValue: we,
20
20
  abnormalValue: De,
21
- commentSection: xe,
21
+ commentSection: Be,
22
22
  commentText: Ee,
23
- nestedGroup: Ge,
24
- nestedGroupLabel: Be,
23
+ nestedGroup: xe,
24
+ nestedGroupLabel: Ge,
25
25
  nestedGroupMembers: Ue
26
- }, j = (e) => {
27
- const r = fe(e);
26
+ }, H = (e) => {
27
+ const r = _e(e);
28
28
  return r === "Image" ? /* @__PURE__ */ s(
29
29
  $e,
30
30
  {
@@ -32,11 +32,11 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
32
32
  alt: e,
33
33
  id: `${e}-img`
34
34
  }
35
- ) : r === "Video" ? /* @__PURE__ */ s(ve, { id: `${e}-video`, videoSrc: e }) : e;
36
- }, K = (e) => {
35
+ ) : r === "Video" ? /* @__PURE__ */ s(ge, { id: `${e}-video`, videoSrc: e }) : e;
36
+ }, P = (e) => {
37
37
  const r = e.observationValue?.unit, n = e.observationValue?.referenceRange?.low?.value, a = e.observationValue?.referenceRange?.high?.value, d = n != null, c = a != null, m = d && c ? ` (${n} - ${a})` : d ? ` (>${n})` : c ? ` (<${a})` : "", t = e.observationValue?.isAbnormal === !0;
38
38
  return { units: r, rangeString: m, isAbnormal: t };
39
- }, P = ({
39
+ }, j = ({
40
40
  member: e,
41
41
  depth: r = 0,
42
42
  memberIndex: n = 0,
@@ -66,7 +66,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
66
66
  className: o.nestedGroupMembers,
67
67
  "data-testid": `${t}obs-nested-group-members-${m}-${n}`,
68
68
  children: e.members?.map((N, y) => /* @__PURE__ */ s(
69
- P,
69
+ j,
70
70
  {
71
71
  member: N,
72
72
  depth: r + 1,
@@ -80,8 +80,8 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
80
80
  ]
81
81
  }
82
82
  );
83
- const { units: b, rangeString: v, isAbnormal: _ } = K(e), f = e.observationValue?.value?.toString(), $ = f ? j(f) : null;
84
- return /* @__PURE__ */ p(H, { children: [
83
+ const { units: b, rangeString: g, isAbnormal: f } = P(e), _ = e.observationValue?.value?.toString(), $ = _ ? H(_) : null;
84
+ return /* @__PURE__ */ p(K, { children: [
85
85
  /* @__PURE__ */ p(
86
86
  "div",
87
87
  {
@@ -92,23 +92,23 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
92
92
  /* @__PURE__ */ p(
93
93
  "p",
94
94
  {
95
- className: R(
95
+ className: A(
96
96
  o.memberLabel,
97
- _ ? o.abnormalValue : ""
97
+ f ? o.abnormalValue : ""
98
98
  ),
99
99
  "data-testid": `${t}obs-member-label-${m}-${n}`,
100
100
  children: [
101
101
  m,
102
- v
102
+ g
103
103
  ]
104
104
  }
105
105
  ),
106
106
  /* @__PURE__ */ p(
107
107
  "div",
108
108
  {
109
- className: R(
109
+ className: A(
110
110
  o.memberValue,
111
- _ ? o.abnormalValue : ""
111
+ f ? o.abnormalValue : ""
112
112
  ),
113
113
  "data-testid": `${t}obs-member-value-${m}-${n}`,
114
114
  children: [
@@ -139,7 +139,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
139
139
  formName: n = "",
140
140
  comment: a
141
141
  }) => {
142
- const d = e.members && e.members.length > 0, { units: c, rangeString: m, isAbnormal: t } = K(e), b = n ? `${n}-` : "", v = e.observationValue?.value?.toString(), _ = v ? j(v) : null;
142
+ const d = e.members && e.members.length > 0, { units: c, rangeString: m, isAbnormal: t } = P(e), b = n ? `${n}-` : "", g = e.observationValue?.value?.toString(), f = g ? H(g) : null;
143
143
  return /* @__PURE__ */ p(
144
144
  "div",
145
145
  {
@@ -155,7 +155,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
155
155
  /* @__PURE__ */ p(
156
156
  "p",
157
157
  {
158
- className: R(
158
+ className: A(
159
159
  d ? o.groupLabel : o.rowLabel,
160
160
  !d && t ? o.abnormalValue : ""
161
161
  ),
@@ -171,27 +171,27 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
171
171
  {
172
172
  className: o.groupMembers,
173
173
  "data-testid": `${b}observation-group-members-${e.display}-${r}`,
174
- children: e.members?.map((f, $) => /* @__PURE__ */ s(
175
- P,
174
+ children: e.members?.map((_, $) => /* @__PURE__ */ s(
175
+ j,
176
176
  {
177
- member: f,
177
+ member: _,
178
178
  depth: 0,
179
179
  memberIndex: $,
180
180
  formName: n
181
181
  },
182
- `${f.id}`
182
+ `${_.id}`
183
183
  ))
184
184
  }
185
185
  ) : /* @__PURE__ */ p(
186
186
  "div",
187
187
  {
188
- className: R(
188
+ className: A(
189
189
  o.rowValue,
190
190
  t ? o.abnormalValue : ""
191
191
  ),
192
192
  "data-testid": `${b}observation-value-${e.display}-${r}`,
193
193
  children: [
194
- _,
194
+ f,
195
195
  c && ` ${c}`
196
196
  ]
197
197
  }
@@ -215,90 +215,90 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
215
215
  `${e.id}-${r}`
216
216
  );
217
217
  }, ke = (e) => e ? e.extension?.find(
218
- (r) => r.url === ge
219
- )?.valueString : void 0, He = (e) => {
218
+ (r) => r.url === ve
219
+ )?.valueString : void 0, Ke = (e) => {
220
220
  if (e)
221
221
  return e.note?.[0]?.text;
222
- }, je = (e, r) => e.entry?.find((n) => n.resource?.id === r)?.resource, M = (e, r) => {
223
- const n = je(e, r);
222
+ }, He = (e, r) => e.entry?.find((n) => n.resource?.id === r)?.resource, O = (e, r) => {
223
+ const n = He(e, r);
224
224
  return n ? {
225
225
  formFieldPath: ke(n),
226
- comment: He(n)
226
+ comment: Ke(n)
227
227
  } : {};
228
- }, Ke = (e, r) => {
228
+ }, Pe = (e, r) => {
229
229
  if (!e?.entry || !r)
230
230
  return [];
231
231
  const n = pe(e);
232
232
  return [
233
233
  ...n.observations.map((a) => {
234
- const { formFieldPath: d, comment: c } = M(
234
+ const { formFieldPath: d, comment: c } = O(
235
235
  e,
236
236
  a.id
237
237
  );
238
238
  return { obs: a, formFieldPath: d, comment: c };
239
239
  }),
240
240
  ...n.groupedObservations.flatMap((a) => {
241
- const { formFieldPath: d } = M(e, a.id);
241
+ const { formFieldPath: d } = O(e, a.id);
242
242
  return (a.members ?? []).map((c) => {
243
- const { comment: m } = M(e, c.id);
243
+ const { comment: m } = O(e, c.id);
244
244
  return { obs: c, formFieldPath: d, comment: m };
245
245
  });
246
246
  })
247
247
  ].filter(
248
248
  ({ formFieldPath: a }) => !a || a.includes(r)
249
249
  );
250
- }, Ye = ({
250
+ }, Ze = ({
251
251
  episodeOfCareUuids: e,
252
252
  encounterUuids: r,
253
253
  config: n
254
254
  }) => {
255
- const { t: a } = ee(), d = re(), [c, m] = k(!1), [t, b] = k(null), v = n?.numberOfVisits, _ = ae(
255
+ const { t: a } = ee(), d = re(), [c, m] = k(!1), [t, b] = k(null), g = n?.numberOfVisits, f = ae(
256
256
  e,
257
257
  r
258
- ), f = he(), {
258
+ ), _ = he(), {
259
259
  data: $ = [],
260
260
  isLoading: N,
261
261
  isError: y,
262
- error: Q,
263
- refetch: z
264
- } = C({
262
+ error: z,
263
+ refetch: Q
264
+ } = L({
265
265
  queryKey: ["forms", d, e],
266
- queryFn: () => te(d, void 0, v),
267
- enabled: !!d && !_
268
- }), O = h(() => !r || r.length === 0 ? $ : $.filter(
266
+ queryFn: () => te(d, void 0, g),
267
+ enabled: !!d && !f
268
+ }), M = h(() => !r || r.length === 0 ? $ : $.filter(
269
269
  (i) => r.includes(i.encounterUuid)
270
- ), [$, r]), { data: T = [] } = C({
270
+ ), [$, r]), { data: S = [] } = L({
271
271
  queryKey: ["observationForms"],
272
272
  queryFn: () => oe()
273
- }), I = L(
274
- (i) => T.find((u) => u.name === i)?.uuid,
275
- [T]
276
- ), A = h(() => {
273
+ }), V = R(
274
+ (i) => S.find((u) => u.name === i)?.uuid,
275
+ [S]
276
+ ), C = h(() => {
277
277
  if (t)
278
- return I(t.formName);
279
- }, [t, I]), { isLoading: X, error: S } = C({
280
- queryKey: ["formMetadata", A],
281
- queryFn: () => ne(A),
282
- enabled: !!A && c
278
+ return V(t.formName);
279
+ }, [t, V]), { isLoading: Y, error: T } = L({
280
+ queryKey: ["formMetadata", C],
281
+ queryFn: () => ne(C),
282
+ enabled: !!C && c
283
283
  }), {
284
284
  data: F,
285
- isLoading: Y,
285
+ isLoading: Z,
286
286
  error: w
287
- } = C({
287
+ } = L({
288
288
  queryKey: ["formsEncounterFHIR", t?.encounterUuid],
289
289
  queryFn: () => se(t.encounterUuid),
290
290
  enabled: !!t?.encounterUuid && c
291
291
  });
292
292
  de(
293
293
  (i) => {
294
- i.patientUUID === d && i.updatedConcepts.size > 0 && (z(), f.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
294
+ i.patientUUID === d && i.updatedConcepts.size > 0 && (Q(), _.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
295
295
  },
296
296
  [d]
297
297
  );
298
- const D = h(() => !F || !t?.formName ? [] : Ke(
298
+ const D = h(() => !F || !t?.formName ? [] : Pe(
299
299
  F,
300
300
  t.formName
301
- ), [F, t?.formName]), x = h(
301
+ ), [F, t?.formName]), B = h(
302
302
  () => [
303
303
  { key: "recordedOn", header: a("FORM_RECORDED_ON") },
304
304
  { key: "recordedBy", header: a("FORM_RECORDED_BY") }
@@ -311,16 +311,16 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
311
311
  ],
312
312
  []
313
313
  ), E = h(() => {
314
- const i = O.reduce(
314
+ const i = M.reduce(
315
315
  (u, l) => {
316
- const g = l.formName;
317
- u[g] ??= [];
318
- const V = l.providers.map((Z) => Z.providerName).filter(Boolean).join(", ");
319
- return u[g].push({
316
+ const v = l.formName;
317
+ u[v] ??= [];
318
+ const I = l.providers.map((W) => W.providerName).filter(Boolean).join(", ");
319
+ return u[v].push({
320
320
  id: l.encounterUuid,
321
321
  formName: l.formName,
322
- recordedOn: me(l.encounterDateTime, a, _e).formattedResult,
323
- recordedBy: V ?? "--",
322
+ recordedOn: me(l.encounterDateTime, a, fe).formattedResult,
323
+ recordedBy: I ?? "--",
324
324
  encounterDateTime: l.encounterDateTime,
325
325
  encounterUuid: l.encounterUuid
326
326
  }), u;
@@ -331,43 +331,43 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
331
331
  ([u, l]) => ({
332
332
  formName: u,
333
333
  records: l.sort(
334
- (g, V) => V.encounterDateTime - g.encounterDateTime
334
+ (v, I) => I.encounterDateTime - v.encounterDateTime
335
335
  )
336
336
  })
337
337
  ).sort((u, l) => u.formName.localeCompare(l.formName));
338
- }, [O, a]), G = L((i) => {
338
+ }, [M, a]), x = R((i) => {
339
339
  b(i), m(!0);
340
- }, []), W = L(() => {
340
+ }, []), X = R(() => {
341
341
  m(!1), b(null);
342
- }, []), B = L(
342
+ }, []), G = R(
343
343
  (i, u) => {
344
344
  switch (u) {
345
345
  case "recordedOn":
346
- return /* @__PURE__ */ s(ie, { onClick: () => G(i), children: i.recordedOn });
346
+ return /* @__PURE__ */ s(ie, { onClick: () => x(i), children: i.recordedOn });
347
347
  case "recordedBy":
348
348
  return i.recordedBy;
349
349
  default:
350
350
  return null;
351
351
  }
352
352
  },
353
- [G]
353
+ [x]
354
354
  );
355
- return /* @__PURE__ */ p(H, { children: [
356
- /* @__PURE__ */ s("div", { "data-testid": "forms-table", children: N || y || E.length === 0 || _ ? /* @__PURE__ */ s(
355
+ return /* @__PURE__ */ p(K, { children: [
356
+ /* @__PURE__ */ s("div", { "data-testid": "forms-table", children: N || y || E.length === 0 || f ? /* @__PURE__ */ s(
357
357
  U,
358
358
  {
359
- headers: x,
359
+ headers: B,
360
360
  ariaLabel: a("FORMS_HEADING"),
361
361
  rows: [],
362
362
  loading: N,
363
- errorStateMessage: y ? Q?.message : void 0,
363
+ errorStateMessage: y ? z?.message : void 0,
364
364
  emptyStateMessage: a("FORMS_UNAVAILABLE"),
365
- renderCell: B,
365
+ renderCell: G,
366
366
  className: o.formsTableBody,
367
367
  dataTestId: "forms-table"
368
368
  }
369
369
  ) : /* @__PURE__ */ s(le, { align: "start", children: E.map((i, u) => {
370
- const { formName: l, records: g } = i;
370
+ const { formName: l, records: v } = i;
371
371
  return /* @__PURE__ */ s(
372
372
  ce,
373
373
  {
@@ -378,14 +378,14 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
378
378
  children: /* @__PURE__ */ s(
379
379
  U,
380
380
  {
381
- headers: x,
381
+ headers: B,
382
382
  ariaLabel: a("FORMS_HEADING"),
383
- rows: g,
383
+ rows: v,
384
384
  loading: !1,
385
385
  errorStateMessage: "",
386
386
  sortable: J,
387
387
  emptyStateMessage: a("FORMS_UNAVAILABLE"),
388
- renderCell: B,
388
+ renderCell: G,
389
389
  className: o.formsTableBody,
390
390
  dataTestId: `forms-table-${l}`
391
391
  }
@@ -399,13 +399,13 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
399
399
  {
400
400
  id: "modalIdForActionAreaLayout",
401
401
  open: c,
402
- onRequestClose: W,
402
+ onRequestClose: X,
403
403
  modalHeading: t.formName,
404
404
  modalLabel: `${t.recordedOn} | ${t.recordedBy}`,
405
405
  passiveModal: !0,
406
406
  size: "md",
407
407
  testId: "form-details-modal",
408
- children: /* @__PURE__ */ s("div", { className: o.formContent, children: X || Y ? /* @__PURE__ */ s(be, { width: "100%", lineCount: 3 }) : S ? /* @__PURE__ */ s("div", { children: q(S).message ?? a("ERROR_FETCHING_FORM_METADATA") }) : w ? /* @__PURE__ */ s("div", { children: q(w).message ?? a("ERROR_FETCHING_FORM_DATA") }) : D.length > 0 ? /* @__PURE__ */ s("div", { className: o.formDetailsContainer, children: D.map(({ obs: i, comment: u }, l) => /* @__PURE__ */ s(
408
+ children: /* @__PURE__ */ s("div", { className: o.formContent, children: Y || Z ? /* @__PURE__ */ s(be, { width: "100%", lineCount: 3 }) : T ? /* @__PURE__ */ s("div", { children: q(T).message ?? a("ERROR_FETCHING_FORM_METADATA") }) : w ? /* @__PURE__ */ s("div", { children: q(w).message ?? a("ERROR_FETCHING_FORM_DATA") }) : D.length > 0 ? /* @__PURE__ */ s("div", { className: o.formDetailsContainer, children: D.map(({ obs: i, comment: u }, l) => /* @__PURE__ */ s(
409
409
  qe,
410
410
  {
411
411
  observation: i,
@@ -420,5 +420,5 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
420
420
  ] });
421
421
  };
422
422
  export {
423
- Ye as default
423
+ Ze as default
424
424
  };
@@ -1,9 +1,9 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-Dyj543hX.js";
2
- import { r as d, w as f, x as e } from "./index-Qc9d1D1J.js";
3
- var p = (a) => {
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-COjNsPdl.js";
2
+ import { p, r as d, s as e } from "./index-DAYe3WiF.js";
3
+ var f = (a) => {
4
4
  const [r, t] = c({
5
5
  prefix: "TanstackQueryDevtools"
6
- }), n = d(), s = f(() => {
6
+ }), n = p(), s = d(() => {
7
7
  const o = r.theme_preference || l;
8
8
  return o !== "system" ? o : n();
9
9
  });
@@ -27,7 +27,7 @@ var p = (a) => {
27
27
  });
28
28
  }
29
29
  });
30
- }, C = p;
30
+ }, C = f;
31
31
  export {
32
32
  C as default
33
33
  };
@@ -1,9 +1,9 @@
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-Dyj543hX.js";
2
- import { r as v, w as C, x as e } from "./index-Qc9d1D1J.js";
1
+ import { c as l, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-COjNsPdl.js";
2
+ import { p as v, r as C, s as e } from "./index-DAYe3WiF.js";
3
3
  var h = (t) => {
4
- const [r, o] = s({
4
+ const [r, o] = l({
5
5
  prefix: "TanstackQueryDevtools"
6
- }), a = v(), l = C(() => {
6
+ }), a = v(), s = C(() => {
7
7
  const n = r.theme_preference || c;
8
8
  return n !== "system" ? n : a();
9
9
  });
@@ -16,7 +16,7 @@ var h = (t) => {
16
16
  setLocalStore: o,
17
17
  get children() {
18
18
  return e(i.Provider, {
19
- value: l,
19
+ value: s,
20
20
  get children() {
21
21
  return e(m, {
22
22
  get children() {
@@ -36,7 +36,7 @@ var h = (t) => {
36
36
  });
37
37
  }
38
38
  });
39
- }, p = h;
39
+ }, g = h;
40
40
  export {
41
- p as default
41
+ g as default
42
42
  };