@bahmni/registration-app 0.0.1-dev.184 → 0.0.1-dev.185

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 { jsxs as Z, jsx as i, Fragment as Bt } from "react/jsx-runtime";
2
- import { M as Rt, u as It, p as St, G as bt, j as kt, a as Wt, Y as Ut, P as $t, T as o, O as l } from "./index-B1XCKgec.js";
2
+ import { M as Rt, u as It, p as St, G as bt, j as kt, a as Wt, Y as Ut, P as $t, T as o, O as l } from "./index-CWA4ykdv.js";
3
3
  import { useQuery as jt } from "@tanstack/react-query";
4
4
  import e, { useState as x, useCallback as V, useEffect as qt, useMemo as u } from "react";
5
5
  var N, A, L, C, y, _, T, O, D, B, R, I, S, b, k, W, U, $, j, q, F, K, P, Y, G, Q, J, X, e2, r2, t2, c2, n2, o2, l2, h2, a2, i2, s2, p2, w2, v2, d2, f2, m2, E2, V2, u2, H2, M2, z2, g2, Z2, x2, N2, A2, L2, C2, y2, _2, T2, O2, D2, B2, R2, I2, S2, b2, k2, W2, U2, $2, j2, q2, F2, K2, P2, Y2, G2, Q2, J2, X2, e1, r1, t1, c1, n1, o1, l1, h1, a1, i1, s1, p1, w1, v1, d1, f1, m1, E1, V1, u1, H1, M1, z1, g1, Z1, x1, N1, A1, L1, C1, y1, _1, T1, O1, D1, B1, R1, I1, S1, b1, k1, W1, U1, $1, j1, q1, F1, K1, P1, Y1, G1, Q1, J1, X1, e0, r0, t0, c0, n0, o0, l0, h0, a0, i0, s0, p0, w0, v0, d0, f0, m0, E0, V0, u0, H0, M0, z0, g0, Z0, x0, N0, A0, L0, C0, y0, _0, T0, O0, D0, B0, R0, I0, S0, b0, k0, W0, U0, $0, j0, q0, F0, K0, P0, Y0, G0, Q0, J0, X0, ee, re, te, ce, ne, oe, le, he, ae, ie, se, pe, we, ve, de, fe, me, Ee, Ve, ue, He, Me, ze, ge, Ze, xe;
@@ -1,8 +1,8 @@
1
1
  import { jsx as s, jsxs as p, Fragment as P } from "react/jsx-runtime";
2
- import { u as ee, M as re, i as ae, b as te, q as oe, K as ne, U as se, S as de, j as me, C as ie, a as U, f as le, m as ce, Y as ue, V as be, c as q, d as pe, P as fe, g as F, e as _e, y as $e, x as ve, h as ge, F as he } from "./index-B1XCKgec.js";
2
+ import { u as ee, M as re, i as ae, b as te, q as oe, K as ne, U as se, S as de, j as me, C as ie, a as U, f as le, m as ce, Y as ue, V as be, c as q, d as pe, P as fe, g as F, e as _e, y as $e, h as ve, k as ge, F as he } from "./index-CWA4ykdv.js";
3
3
  import { useQueryClient as ye, useQuery as A } from "@tanstack/react-query";
4
4
  import { useState as z, useMemo as h, useCallback as C } from "react";
5
- const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18", Fe = "_formDetailsContainer_1pd36_25", Re = "_observation_1pd36_30", Le = "_groupContainer_1pd36_39", Me = "_rowContainer_1pd36_43", Oe = "_groupLabel_1pd36_48", Ve = "_rowLabel_1pd36_58", Ie = "_rowValue_1pd36_67", Se = "_groupMembers_1pd36_75", Te = "_memberRow_1pd36_81", De = "_memberLabel_1pd36_86", we = "_memberValue_1pd36_94", xe = "_abnormalValue_1pd36_102", Ee = "_commentSection_1pd36_110", Be = "_commentText_1pd36_116", Ge = "_nestedGroup_1pd36_125", Ue = "_nestedGroupLabel_1pd36_132", qe = "_nestedGroupMembers_1pd36_141", o = {
5
+ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18", Fe = "_formDetailsContainer_1pd36_25", Re = "_observation_1pd36_30", Le = "_groupContainer_1pd36_39", Me = "_rowContainer_1pd36_43", Oe = "_groupLabel_1pd36_48", Ve = "_rowLabel_1pd36_58", Ie = "_rowValue_1pd36_67", Se = "_groupMembers_1pd36_75", Te = "_memberRow_1pd36_81", De = "_memberLabel_1pd36_86", we = "_memberValue_1pd36_94", Ee = "_abnormalValue_1pd36_102", xe = "_commentSection_1pd36_110", Be = "_commentText_1pd36_116", Ge = "_nestedGroup_1pd36_125", Ue = "_nestedGroupLabel_1pd36_132", qe = "_nestedGroupMembers_1pd36_141", o = {
6
6
  formsTableBody: Ne,
7
7
  customAccordianItem: Ae,
8
8
  formContent: Ce,
@@ -17,8 +17,8 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
17
17
  memberRow: Te,
18
18
  memberLabel: De,
19
19
  memberValue: we,
20
- abnormalValue: xe,
21
- commentSection: Ee,
20
+ abnormalValue: Ee,
21
+ commentSection: xe,
22
22
  commentText: Be,
23
23
  nestedGroup: Ge,
24
24
  nestedGroupLabel: Ue,
@@ -36,7 +36,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
36
36
  }, j = (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
- }, H = ({
39
+ }, k = ({
40
40
  member: e,
41
41
  depth: r = 0,
42
42
  memberIndex: n = 0,
@@ -66,7 +66,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_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((y, N) => /* @__PURE__ */ s(
69
- H,
69
+ k,
70
70
  {
71
71
  member: y,
72
72
  depth: r + 1,
@@ -172,7 +172,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
172
172
  className: o.groupMembers,
173
173
  "data-testid": `${b}observation-group-members-${e.display}-${r}`,
174
174
  children: e.members?.map((_, $) => /* @__PURE__ */ s(
175
- H,
175
+ k,
176
176
  {
177
177
  member: _,
178
178
  depth: 0,
@@ -225,7 +225,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
225
225
  formFieldPath: Pe(n),
226
226
  comment: Ke(n)
227
227
  } : {};
228
- }, He = (e, r) => {
228
+ }, ke = (e, r) => {
229
229
  if (!e?.entry || !r)
230
230
  return [];
231
231
  const n = pe(e);
@@ -259,7 +259,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
259
259
  data: $ = [],
260
260
  isLoading: y,
261
261
  isError: N,
262
- error: k,
262
+ error: H,
263
263
  refetch: Y
264
264
  } = A({
265
265
  queryKey: ["forms", d, e],
@@ -295,10 +295,10 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
295
295
  },
296
296
  [d]
297
297
  );
298
- const w = h(() => !L || !t?.formName ? [] : He(
298
+ const w = h(() => !L || !t?.formName ? [] : ke(
299
299
  L,
300
300
  t.formName
301
- ), [L, t?.formName]), x = h(
301
+ ), [L, t?.formName]), E = h(
302
302
  () => [
303
303
  { key: "recordedOn", header: a("FORM_RECORDED_ON") },
304
304
  { key: "recordedBy", header: a("FORM_RECORDED_BY") }
@@ -310,7 +310,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
310
310
  { key: "recordedBy", sortable: !0 }
311
311
  ],
312
312
  []
313
- ), E = h(() => {
313
+ ), x = h(() => {
314
314
  const i = V.reduce(
315
315
  (u, l) => {
316
316
  const g = l.formName;
@@ -353,20 +353,20 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
353
353
  [B]
354
354
  );
355
355
  return /* @__PURE__ */ p(P, { children: [
356
- /* @__PURE__ */ s("div", { "data-testid": "forms-table", children: y || N || E.length === 0 || f ? /* @__PURE__ */ s(
356
+ /* @__PURE__ */ s("div", { "data-testid": "forms-table", children: y || N || x.length === 0 || f ? /* @__PURE__ */ s(
357
357
  U,
358
358
  {
359
- headers: x,
359
+ headers: E,
360
360
  ariaLabel: a("FORMS_HEADING"),
361
361
  rows: [],
362
362
  loading: y,
363
- errorStateMessage: N ? k?.message : void 0,
363
+ errorStateMessage: N ? H?.message : void 0,
364
364
  emptyStateMessage: a("FORMS_UNAVAILABLE"),
365
365
  renderCell: G,
366
366
  className: o.formsTableBody,
367
367
  dataTestId: "forms-table"
368
368
  }
369
- ) : /* @__PURE__ */ s(le, { align: "start", children: E.map((i, u) => {
369
+ ) : /* @__PURE__ */ s(le, { align: "start", children: x.map((i, u) => {
370
370
  const { formName: l, records: g } = i;
371
371
  return /* @__PURE__ */ s(
372
372
  ce,
@@ -378,7 +378,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
378
378
  children: /* @__PURE__ */ s(
379
379
  U,
380
380
  {
381
- headers: x,
381
+ headers: E,
382
382
  ariaLabel: a("FORMS_HEADING"),
383
383
  rows: g,
384
384
  loading: !1,
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-BJIc_uyE.js";
2
- import { n as d, o as f, s as e } from "./index-B1XCKgec.js";
1
+ import { c, T as l, P as m, a as v, D as u, Q as i } from "./YPM2AS64-CJvr7CaK.js";
2
+ import { o as d, s as f, v as e } from "./index-CWA4ykdv.js";
3
3
  var p = (a) => {
4
4
  const [r, o] = c({
5
5
  prefix: "TanstackQueryDevtools"
@@ -14,10 +14,10 @@ var p = (a) => {
14
14
  localStore: r,
15
15
  setLocalStore: o,
16
16
  get children() {
17
- return e(u.Provider, {
17
+ return e(v.Provider, {
18
18
  value: s,
19
19
  get children() {
20
- return e(v, {
20
+ return e(u, {
21
21
  localStore: r,
22
22
  setLocalStore: o
23
23
  });
@@ -1,5 +1,5 @@
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-BJIc_uyE.js";
2
- import { n as v, o as C, s as e } from "./index-B1XCKgec.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-CJvr7CaK.js";
2
+ import { o as v, s as C, v as e } from "./index-CWA4ykdv.js";
3
3
  var h = (t) => {
4
4
  const [r, o] = l({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
1
  import { jsxs as T, jsx as l } from "react/jsx-runtime";
2
- import { M as k, p as B, u as I, k as V, W as M, S as Q, d as x, t as H, r as K, R as G, a as j, Q as w, H as S, l as P, e as W, N as Y, y as J, x as X, h as Z } from "./index-B1XCKgec.js";
2
+ import { M as k, p as B, u as I, l as V, W as M, S as Q, d as H, t as K, r as G, R as j, a as w, Q as x, H as S, n as P, e as W, N as Y, y as J, h as X, k as Z } from "./index-CWA4ykdv.js";
3
3
  import { useQueries as ee, useQuery as te } from "@tanstack/react-query";
4
4
  import { useRef as ae, useEffect as N, useMemo as h } from "react";
5
5
  const C = (t, d, n, u, o) => {
@@ -37,7 +37,7 @@ const C = (t, d, n, u, o) => {
37
37
  title: d = ""
38
38
  }) => {
39
39
  const { t: n } = I(), u = (o, a, r) => {
40
- const s = w(o.encounterDetails, n);
40
+ const s = x(o.encounterDetails, n);
41
41
  return /* @__PURE__ */ T(
42
42
  S,
43
43
  {
@@ -123,8 +123,8 @@ const C = (t, d, n, u, o) => {
123
123
  }, [E]);
124
124
  const g = h(() => {
125
125
  if (!c) return [];
126
- const e = x(c), m = H(e);
127
- return K(m);
126
+ const e = H(c), m = K(e);
127
+ return G(m);
128
128
  }, [c]), F = [
129
129
  { key: "name", header: "name" },
130
130
  { key: "value", header: "value" },
@@ -139,7 +139,7 @@ const C = (t, d, n, u, o) => {
139
139
  className: $.observations,
140
140
  children: [
141
141
  /* @__PURE__ */ l(
142
- G,
142
+ j,
143
143
  {
144
144
  id: "observations-title",
145
145
  testId: R ? `observations-title-${v}` : "observations-title",
@@ -149,7 +149,7 @@ const C = (t, d, n, u, o) => {
149
149
  }
150
150
  ),
151
151
  U ? /* @__PURE__ */ l(se, { groupedData: g, title: v }) : /* @__PURE__ */ l(
152
- j,
152
+ w,
153
153
  {
154
154
  headers: F,
155
155
  rows: [],
@@ -1,4 +1,4 @@
1
- import { v as we, w as z, z as xt, A as B, o as q, s as y, B as Ro, D as ye, E as R, I as _, J as k, L as N, X as A, Z as bs, _ as ir, $ as $e, a0 as U, a1 as Hn, a2 as Vn, a3 as dt, a4 as D, a5 as xs, a6 as cn, a7 as Be, a8 as ws, a9 as qt, aa as zt, ab as $s, ac as Cs, ad as $n, ae as Ss, af as Nr, ag as Bt, ah as zo, ai as ks, aj as Es, ak as j, al as Ur, am as Ms, an as Ds, ao as sr, ap as As, aq as Ts, ar as zn, as as Fs, at as Is, au as Z, av as Ps, aw as Ls } from "./index-B1XCKgec.js";
1
+ import { w as we, x as z, z as xt, A as B, s as q, v as y, B as Ro, D as ye, E as R, I as _, J as k, L as N, X as A, Z as bs, _ as ir, $ as $e, a0 as U, a1 as Hn, a2 as Vn, a3 as dt, a4 as D, a5 as xs, a6 as cn, a7 as Be, a8 as ws, a9 as qt, aa as zt, ab as $s, ac as Cs, ad as $n, ae as Ss, af as Nr, ag as Bt, ah as zo, ai as ks, aj as Es, ak as j, al as Ur, am as Ms, an as Ds, ao as sr, ap as As, aq as Ts, ar as zn, as as Fs, at as Is, au as Z, av as Ps, aw as Ls } from "./index-CWA4ykdv.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -143225,7 +143225,7 @@ const Pi = "/openmrs/auth?requested_document=/document_images/", yj0 = "_thumbna
143225
143225
  }
143226
143226
  )
143227
143227
  ] });
143228
- }, bj0 = "_fileTileButton_1l0yx_1", Nj0 = "_modalIframeContainer_1l0yx_28", Aj0 = "_modalIframe_1l0yx_28", Xu = {
143228
+ }, bj0 = "_fileTileButton_io1kl_1", Nj0 = "_modalIframeContainer_io1kl_28", Aj0 = "_modalIframe_io1kl_28", Xu = {
143229
143229
  fileTileButton: bj0,
143230
143230
  modalIframeContainer: Nj0,
143231
143231
  modalIframe: Aj0
@@ -175704,7 +175704,7 @@ function dst(t, e, r) {
175704
175704
  return o;
175705
175705
  };
175706
175706
  }
175707
- It(() => Promise.resolve().then(() => Wot)), It(() => Promise.resolve().then(() => Bct)), It(() => Promise.resolve().then(() => vit)), It(() => Promise.resolve().then(() => xit)), It(() => import("./DocumentsTable-hpkFTeGK-BClu2BQI.js")), It(() => Promise.resolve().then(() => P6t)), It(() => import("./FormsTable-BkP1ehMS-CBR171uV.js")), It(() => Promise.resolve().then(() => m6t)), It(() => import("./Observations-tr0tfJLj-Kg6tPmu0.js")), It(
175707
+ It(() => Promise.resolve().then(() => Wot)), It(() => Promise.resolve().then(() => Bct)), It(() => Promise.resolve().then(() => vit)), It(() => Promise.resolve().then(() => xit)), It(() => import("./DocumentsTable-8I-Vd16r-km4LFS57.js")), It(() => Promise.resolve().then(() => P6t)), It(() => import("./FormsTable-BolXVuK_-Valh6jbC.js")), It(() => Promise.resolve().then(() => m6t)), It(() => import("./Observations-D6R8bXEi-DsZIH3gw.js")), It(
175708
175708
  () => Promise.resolve().then(() => Y6t)
175709
175709
  ), It(
175710
175710
  () => Promise.resolve().then(() => Ilt)
@@ -177543,7 +177543,7 @@ var hwt = (t, e = !1) => {
177543
177543
  const e = tt2(() => {
177544
177544
  const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t;
177545
177545
  let d;
177546
- return this.#i ? d = this.#i : (d = Q02(() => import("./LNWAZHJI-DhjexE8J.js")), this.#i = d), Mt2(this.#u, this.#r), J02(d, X02({
177546
+ return this.#i ? d = this.#i : (d = Q02(() => import("./LNWAZHJI-Clz3sKQU.js")), this.#i = d), Mt2(this.#u, this.#r), J02(d, X02({
177547
177547
  get queryFlavor() {
177548
177548
  return r.#d;
177549
177549
  },
@@ -177641,7 +177641,7 @@ var hwt = (t, e = !1) => {
177641
177641
  const e = tt2(() => {
177642
177642
  const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t, [d] = this.#i;
177643
177643
  let h;
177644
- return this.#l ? h = this.#l : (h = Q02(() => import("./MWZ6AO7Z-Kdgwks7G.js")), this.#l = h), Mt2(this.#u, this.#r), J02(h, X02({
177644
+ return this.#l ? h = this.#l : (h = Q02(() => import("./MWZ6AO7Z-CjjLewjV.js")), this.#l = h), Mt2(this.#u, this.#r), J02(h, X02({
177645
177645
  get queryFlavor() {
177646
177646
  return r.#d;
177647
177647
  },
@@ -188201,23 +188201,23 @@ export {
188201
188201
  Lmt as e,
188202
188202
  M12 as f,
188203
188203
  E2 as g,
188204
- dmt as h,
188204
+ hmt as h,
188205
188205
  Gd as i,
188206
188206
  yr as j,
188207
- Cmt as k,
188208
- Zmt as l,
188207
+ dmt as k,
188208
+ Cmt as l,
188209
188209
  V12 as m,
188210
- mwt as n,
188211
- O0 as o,
188210
+ Zmt as n,
188211
+ mwt as o,
188212
188212
  W0 as p,
188213
188213
  Omt as q,
188214
188214
  Bmt as r,
188215
- J02 as s,
188215
+ O0 as s,
188216
188216
  Imt as t,
188217
188217
  r2 as u,
188218
- Umt as v,
188219
- r0 as w,
188220
- hmt as x,
188218
+ J02 as v,
188219
+ Umt as w,
188220
+ r0 as x,
188221
188221
  smt as y,
188222
188222
  wst as z
188223
188223
  };