@bahmni/reports-app 0.0.1-dev.422 → 0.0.1-dev.423

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 p, Fragment as Y } from "react/jsx-runtime";
2
- import { v as x, u as G, z as W, E as J, q as X, w as Z, Y as ee, p as te } from "./index-BMa5QlCF.js";
2
+ import { v as x, u as G, z as W, E as J, q as X, w as Z, Y as ee, p as te } from "./index-Dr9Re1-R.js";
3
3
  import { useQuery as ae } from "@tanstack/react-query";
4
4
  import { useState as l, useCallback as h, useEffect as I, useMemo as _ } from "react";
5
5
  const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTable-module_viewAttachmentsLink__aQ1on", re = "DocumentsTable-module_documentViewerContainer__F5m8D", de = "DocumentsTable-module_attachmentItem__17KA7", se = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", ce = "DocumentsTable-module_documentIframe__ptq5I", le = "DocumentsTable-module_documentImage__KQVgS", d = {
@@ -1,30 +1,30 @@
1
- import { jsx as n, jsxs as $, Fragment as ge } from "react/jsx-runtime";
2
- import { u as he, v as Ne, i as Te, e as Oe, a as be, b as Ie, J as Ae, N as Ee, c as _e, m as ve, d as Fe, V as Me, y as Se, S as x, w as Be, A as K, f as j, q as Ce, Y as z, P as De, F as Le, p as Ue, h as Re, g as qe } from "./index-BMa5QlCF.js";
1
+ import { jsx as n, jsxs as P, Fragment as he } from "react/jsx-runtime";
2
+ import { u as ge, v as Ne, i as Te, e as Oe, a as be, b as Ie, J as Ae, N as Ee, c as _e, m as ve, d as Fe, V as Me, y as Se, S as K, w as Be, A as j, f as x, q as Re, Y as z, P as Ce, F as Le, p as Ue, h as De, g as qe } from "./index-Dr9Re1-R.js";
3
3
  import { useQueryClient as we, useQuery as T } from "@tanstack/react-query";
4
4
  import { useState as Q, useMemo as i, useCallback as d } from "react";
5
- const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_modalHeading__wnTmA", He = "FormsTable-module_customAccordianItem__isszs", O = {
6
- formsTableBody: ke,
7
- modalHeading: Ve,
5
+ const Ve = "FormsTable-module_formsTableBody__SvGha", ke = "FormsTable-module_modalHeading__wnTmA", He = "FormsTable-module_customAccordianItem__isszs", O = {
6
+ formsTableBody: Ve,
7
+ modalHeading: ke,
8
8
  customAccordianItem: He
9
- }, Ge = "startConsultation", je = ({
9
+ }, $e = "startConsultation", xe = ({
10
10
  episodeOfCareUuids: F,
11
11
  encounterUuids: l,
12
12
  config: Y,
13
13
  disableActions: J = !1,
14
14
  activeEncounterUuid: y = null
15
15
  }) => {
16
- const { t } = he(), m = Ne(), [p, M] = Q(!1), [o, S] = Q(null), {
16
+ const { t } = ge(), m = Ne(), [p, M] = Q(!1), [o, S] = Q(null), {
17
17
  numberOfVisits: Z,
18
18
  hideThumbnail: X = !1,
19
- forms: g
19
+ forms: h
20
20
  } = Y ?? {}, W = Te(
21
21
  qe.EDIT_OBSERVATIONS
22
- ), { userPrivileges: h } = Oe(), b = W && !J && !!y, B = be(
22
+ ), { userPrivileges: g } = Oe(), b = W && !J && !!y, B = be(
23
23
  F,
24
24
  l
25
25
  ), ee = we(), {
26
- data: C = [],
27
- isLoading: D,
26
+ data: R = [],
27
+ isLoading: C,
28
28
  isError: L,
29
29
  error: re,
30
30
  refetch: ae
@@ -33,29 +33,29 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
33
33
  queryFn: () => Ie(m, void 0, Z),
34
34
  enabled: !!m && !B
35
35
  }), U = i(() => {
36
- let e = C;
36
+ let e = R;
37
37
  return l && l.length > 0 && (e = e.filter(
38
38
  (r) => l.includes(r.encounterUuid)
39
- )), Array.isArray(g) && g.length > 0 && (e = e.filter(
40
- (r) => g.some((a) => a.toLowerCase() === r.formName.toLowerCase())
39
+ )), Array.isArray(h) && h.length > 0 && (e = e.filter(
40
+ (r) => h.some((a) => a.toLowerCase() === r.formName.toLowerCase())
41
41
  )), e;
42
- }, [C, l, g]), { data: N = [] } = T({
42
+ }, [R, l, h]), { data: N = [] } = T({
43
43
  queryKey: ["observationForms"],
44
44
  queryFn: () => Ae()
45
- }), R = d(
45
+ }), D = d(
46
46
  (e) => {
47
47
  const r = N.find((s) => s.name === e);
48
48
  if (!r?.privileges || r.privileges.length === 0) return !0;
49
- if (!h || h.length === 0) return !1;
50
- const a = new Set(h.map((s) => s.name));
49
+ if (!g || g.length === 0) return !1;
50
+ const a = new Set(g.map((s) => s.name));
51
51
  return r.privileges.some(
52
52
  (s) => a.has(s.privilegeName) && s.editable
53
53
  );
54
54
  },
55
- [N, h]
55
+ [N, g]
56
56
  ), u = d(
57
- (e) => !y || e.encounterUuid !== y ? !1 : R(e.formName),
58
- [y, R]
57
+ (e) => !y || e.encounterUuid !== y ? !1 : D(e.formName),
58
+ [y, D]
59
59
  ), q = d(
60
60
  (e) => N.find((r) => r.name === e)?.uuid,
61
61
  [N]
@@ -92,28 +92,28 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
92
92
  [w]
93
93
  ), ue = i(() => {
94
94
  if (A)
95
- return x(A).message;
95
+ return K(A).message;
96
96
  if (_)
97
- return x(_).message;
97
+ return K(_).message;
98
98
  }, [A, _]), c = i(
99
99
  () => [
100
100
  { key: "recordedOn", header: t("RECORDED_ON") },
101
101
  { key: "recordedBy", header: t("RECORDED_BY") }
102
102
  ],
103
103
  [t]
104
- ), k = i(
104
+ ), V = i(
105
105
  () => [...c, { key: "actions", header: t("ACTIONS") }],
106
106
  [c, t]
107
107
  ), ce = d(
108
- (e) => b && e.some((r) => u(r)) ? k : c,
109
- [b, u, k, c]
108
+ (e) => b && e.some((r) => u(r)) ? V : c,
109
+ [b, u, V, c]
110
110
  ), fe = c, ye = i(
111
111
  () => [
112
112
  { key: "recordedOn", sortable: !0 },
113
113
  { key: "recordedBy", sortable: !0 }
114
114
  ],
115
115
  []
116
- ), V = i(() => {
116
+ ), k = i(() => {
117
117
  const e = U.reduce(
118
118
  (r, a) => {
119
119
  const s = a.formName;
@@ -140,11 +140,11 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
140
140
  ).sort((r, a) => r.formName.localeCompare(a.formName));
141
141
  }, [U, t]), H = d((e) => {
142
142
  S(e), M(!0);
143
- }, []), G = d(() => {
143
+ }, []), $ = d(() => {
144
144
  M(!1), S(null);
145
145
  }, []), v = d((e) => {
146
146
  globalThis.dispatchEvent(
147
- new CustomEvent(Ge, {
147
+ new CustomEvent($e, {
148
148
  detail: {
149
149
  editOnly: "observationForms",
150
150
  editTitle: "EDIT_OBSERVATION_FORM_TITLE",
@@ -154,23 +154,23 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
154
154
  }
155
155
  })
156
156
  );
157
- }, []), P = d(
157
+ }, []), G = d(
158
158
  (e, r) => {
159
159
  switch (r) {
160
160
  case "recordedOn":
161
- return /* @__PURE__ */ n(Ce, { onClick: () => H(e), children: e.recordedOn });
161
+ return /* @__PURE__ */ n(Re, { onClick: () => H(e), children: e.recordedOn });
162
162
  case "recordedBy":
163
163
  return e.recordedBy;
164
164
  case "actions":
165
165
  return u(e) ? /* @__PURE__ */ n(
166
- K,
166
+ j,
167
167
  {
168
168
  label: t("EDIT_OBSERVATION_FORM"),
169
169
  kind: "ghost",
170
170
  size: "sm",
171
171
  testId: `edit-form-${e.encounterUuid}`,
172
172
  onClick: () => v(e),
173
- children: /* @__PURE__ */ n(j, {})
173
+ children: /* @__PURE__ */ n(x, {})
174
174
  }
175
175
  ) : null;
176
176
  default:
@@ -179,21 +179,21 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
179
179
  },
180
180
  [H, v, u, t]
181
181
  );
182
- return /* @__PURE__ */ $(ge, { children: [
183
- /* @__PURE__ */ n("div", { id: "forms-table", "data-testid": "forms-table", children: D || L || V.length === 0 || B ? /* @__PURE__ */ n(
182
+ return /* @__PURE__ */ P(he, { children: [
183
+ /* @__PURE__ */ n("div", { id: "forms-table", "data-testid": "forms-table", children: C || L || k.length === 0 || B ? /* @__PURE__ */ n(
184
184
  z,
185
185
  {
186
186
  headers: fe,
187
187
  ariaLabel: t("FORMS_HEADING"),
188
188
  rows: [],
189
- loading: D,
189
+ loading: C,
190
190
  errorStateMessage: L ? re?.message : void 0,
191
191
  emptyStateMessage: t("FORMS_UNAVAILABLE"),
192
- renderCell: P,
192
+ renderCell: G,
193
193
  className: O.formsTableBody,
194
194
  dataTestId: "forms-table"
195
195
  }
196
- ) : /* @__PURE__ */ n(De, { align: "start", children: V.map((e, r) => {
196
+ ) : /* @__PURE__ */ n(Ce, { align: "start", children: k.map((e, r) => {
197
197
  const { formName: a, records: s } = e, f = ce(s);
198
198
  return /* @__PURE__ */ n(
199
199
  Le,
@@ -212,7 +212,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
212
212
  errorStateMessage: "",
213
213
  sortable: ye,
214
214
  emptyStateMessage: t("FORMS_UNAVAILABLE"),
215
- renderCell: P,
215
+ renderCell: G,
216
216
  className: O.formsTableBody,
217
217
  dataTestId: `forms-table-${a}`
218
218
  }
@@ -227,20 +227,20 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
227
227
  id: "modalIdForActionAreaLayout",
228
228
  portalId: "main-display-area",
229
229
  open: p,
230
- onRequestClose: G,
231
- modalHeading: /* @__PURE__ */ $("div", { className: O.modalHeading, children: [
230
+ onRequestClose: $,
231
+ modalHeading: /* @__PURE__ */ P("div", { className: O.modalHeading, children: [
232
232
  /* @__PURE__ */ n("span", { children: o.formName }),
233
233
  b && u(o) && /* @__PURE__ */ n(
234
- K,
234
+ j,
235
235
  {
236
236
  label: t("EDIT_OBSERVATION_FORM"),
237
237
  kind: "ghost",
238
238
  size: "sm",
239
239
  testId: `edit-form-modal-${o.encounterUuid}`,
240
240
  onClick: () => {
241
- G(), v(o);
241
+ $(), v(o);
242
242
  },
243
- children: /* @__PURE__ */ n(j, {})
243
+ children: /* @__PURE__ */ n(x, {})
244
244
  }
245
245
  )
246
246
  ] }),
@@ -249,7 +249,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
249
249
  size: "md",
250
250
  testId: "form-details-modal",
251
251
  children: /* @__PURE__ */ n(
252
- Re,
252
+ De,
253
253
  {
254
254
  observations: ie,
255
255
  isLoading: oe || se,
@@ -268,5 +268,5 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
268
268
  ] });
269
269
  };
270
270
  export {
271
- je as default
271
+ xe as default
272
272
  };
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-C0pi-hgq.js";
2
- import { Z as d, a0 as f, a1 as e } from "./index-BMa5QlCF.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-PromLoOA.js";
2
+ import { $ as d, a0 as f, a1 as e } from "./index-Dr9Re1-R.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-C0pi-hgq.js";
2
- import { Z as v, a0 as C, a1 as e } from "./index-BMa5QlCF.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-PromLoOA.js";
2
+ import { $ as v, a0 as C, a1 as e } from "./index-Dr9Re1-R.js";
3
3
  var h = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,13 +1,13 @@
1
1
  import { jsxs as I, jsx as n } from "react/jsx-runtime";
2
- import { v as Q, z as M, u as w, j as Y, a as j, k as G, l as H, m as J, n as P, o as W, _ as X, C as Z, r as ee, Y as ae, x as se, s as B, t as re, B as te, w as ie, R as oe, T as ne, L as de, O as le } from "./index-BMa5QlCF.js";
2
+ import { v as Q, z as M, u as B, j as Y, a as j, k as G, l as H, m as J, n as P, o as W, _ as X, C as Z, r as ee, Y as ae, x as se, s as U, t as re, B as te, w as ie, R as oe, T as ne, L as de, O as le } from "./index-Dr9Re1-R.js";
3
3
  import { useQueries as ue, useQuery as ce } from "@tanstack/react-query";
4
- import { useRef as me, useEffect as D, useMemo as E } from "react";
4
+ import { useRef as me, useEffect as D, useMemo as g } from "react";
5
5
  const pe = "Observations-module_observations__RKSyo", be = "Observations-module_title__TJL3z", ve = "Observations-module_wrapper__muk2L", he = "Observations-module_secondary__14nuS", O = {
6
6
  observations: pe,
7
7
  title: be,
8
8
  wrapper: ve,
9
9
  secondary: he
10
- }, U = (s, l, o, d, c, r) => {
10
+ }, V = (s, l, o, d, c, r) => {
11
11
  const t = re(s, l, c), e = t.value, m = te(e);
12
12
  let i = e;
13
13
  m === "Image" && (i = /* @__PURE__ */ n(
@@ -48,13 +48,13 @@ const pe = "Observations-module_observations__RKSyo", be = "Observations-module_
48
48
  `obs-${s.id}`
49
49
  );
50
50
  }, ye = (s, l, o, d, c, r, t) => /* @__PURE__ */ n(
51
- B,
51
+ U,
52
52
  {
53
53
  title: s.display,
54
54
  id: `grouped-obs-${s.display}-${d}`,
55
55
  open: o,
56
56
  children: s.members?.map(
57
- (e, m) => U(
57
+ (e, m) => V(
58
58
  e,
59
59
  m,
60
60
  c,
@@ -70,17 +70,17 @@ const pe = "Observations-module_observations__RKSyo", be = "Observations-module_
70
70
  title: l = "",
71
71
  hideThumbnail: o
72
72
  }) => {
73
- const { t: d } = w(), c = (r, t, e) => {
73
+ const { t: d } = B(), c = (r, t, e) => {
74
74
  const m = se(r.encounterDetails, d);
75
75
  return /* @__PURE__ */ I(
76
- B,
76
+ U,
77
77
  {
78
78
  title: m,
79
79
  id: `encounter-${r.encounterId}`,
80
80
  open: t,
81
81
  children: [
82
82
  r.observations.map(
83
- (i, p) => U(
83
+ (i, p) => V(
84
84
  i,
85
85
  p,
86
86
  e,
@@ -132,7 +132,7 @@ const pe = "Observations-module_observations__RKSyo", be = "Observations-module_
132
132
  conceptUuid: r = [],
133
133
  hideThumbnail: t = !1,
134
134
  scope: e = "all"
135
- } = d, m = me(/* @__PURE__ */ new Set()), i = Q(), { addNotification: p } = M(), { t: u } = w(), b = ue({
135
+ } = d, m = me(/* @__PURE__ */ new Set()), i = Q(), { addNotification: p } = M(), { t: u } = B(), b = ue({
136
136
  queries: c.map((a) => ({
137
137
  queryKey: Re(a),
138
138
  queryFn: () => Y(a),
@@ -147,7 +147,7 @@ const pe = "Observations-module_observations__RKSyo", be = "Observations-module_
147
147
  type: "error"
148
148
  }), m.current.add(0)) : !a && y && m.current.clear();
149
149
  }, [b, p, u]);
150
- const f = E(() => b.map((a) => a.data?.uuid).filter((a) => !!a), [b]), v = E(() => [.../* @__PURE__ */ new Set([...f, ...r])], [f, r]), h = E(() => c.length === 0 ? !0 : b.every((a) => !a.isLoading), [b, c.length]), R = e === "latest" || e === "latest-encounter", V = j(
150
+ const f = g(() => b.map((a) => a.data?.uuid).filter((a) => !!a), [b]), v = g(() => [.../* @__PURE__ */ new Set([...f, ...r])], [f, r]), h = g(() => c.length === 0 ? !0 : b.every((a) => !a.isLoading), [b, c.length]), R = e === "latest" || e === "latest-encounter", w = j(
151
151
  l,
152
152
  o
153
153
  ), {
@@ -171,7 +171,7 @@ const pe = "Observations-module_observations__RKSyo", be = "Observations-module_
171
171
  v,
172
172
  o
173
173
  ),
174
- enabled: !!i && v.length > 0 && h && !V
174
+ enabled: !!i && v.length > 0 && h && !w
175
175
  });
176
176
  J(
177
177
  (a) => {
@@ -187,7 +187,7 @@ const pe = "Observations-module_observations__RKSyo", be = "Observations-module_
187
187
  type: "error"
188
188
  });
189
189
  }, [N]);
190
- const $ = E(() => {
190
+ const $ = g(() => {
191
191
  if (!_) return [];
192
192
  let a = P(_);
193
193
  e === "latest-encounter" && (a = W(a));
@@ -197,12 +197,12 @@ const pe = "Observations-module_observations__RKSyo", be = "Observations-module_
197
197
  { key: "name", header: "name" },
198
198
  { key: "value", header: "value" },
199
199
  { key: "form", header: "form" }
200
- ], A = C || !h, L = N && h, k = (!_ || _.entry?.length === 0 || v.length === 0) && h, K = L ? u("ERROR_FETCHING_OBSERVATIONS") : null, q = k ? u("NO_OBSERVATIONS_FOUND") : void 0, z = $.length > 0 && !A && !L, g = d.titleTranslationKey, T = g ? u(g) : "";
200
+ ], A = C || !h, L = N && h, k = (!_ || _.entry?.length === 0 || v.length === 0) && h, K = L ? u("ERROR_FETCHING_OBSERVATIONS") : null, q = k ? u("NO_OBSERVATIONS_FOUND") : void 0, z = $.length > 0 && !A && !L, E = d.titleTranslationKey, T = E ? u(E) : "";
201
201
  return /* @__PURE__ */ I(
202
202
  "div",
203
203
  {
204
204
  id: "observations",
205
- "data-testid": g ? `observations-${T}` : "observations",
205
+ "data-testid": E ? `observations-${T}` : "observations",
206
206
  "aria-label": "observations-aria-label",
207
207
  className: O.observations,
208
208
  children: [
@@ -210,7 +210,7 @@ const pe = "Observations-module_observations__RKSyo", be = "Observations-module_
210
210
  ee,
211
211
  {
212
212
  id: "observations-title",
213
- testId: g ? `observations-title-${T}` : "observations-title",
213
+ testId: E ? `observations-title-${T}` : "observations-title",
214
214
  title: T,
215
215
  className: O.title,
216
216
  children: /* @__PURE__ */ n("p", { children: T })
@@ -1,12 +1,12 @@
1
1
  import { jsx as a, jsxs as t } from "react/jsx-runtime";
2
- import { u as E, $ as c, M as i, D as P, G as A, H as b, I as m, X as d, Q as L, K as l, U as B, W as O } from "./index-BMa5QlCF.js";
2
+ import { u as E, D as c, M as i, G as P, H as A, I as b, K as m, X as d, Q as L, U as l, W as B, Z as O } from "./index-Dr9Re1-R.js";
3
3
  import { useMemo as h, useCallback as S } from "react";
4
4
  import "@tanstack/react-query";
5
5
  import { useLocation as g, useNavigate as u } from "react-router-dom";
6
6
  const M = "ReportsPage-module_page__ewRXe", y = "ReportsPage-module_panel__HFBCt", s = {
7
7
  page: M,
8
8
  panel: y
9
- }, o = 1, H = 0, N = () => {
9
+ }, o = 1, H = 0, D = () => {
10
10
  const { t: e } = E(), n = g(), r = u(), R = h(
11
11
  () => [
12
12
  { id: "home", label: e("REPORTS_HOME_LABEL"), href: c },
@@ -104,6 +104,6 @@ const M = "ReportsPage-module_page__ewRXe", y = "ReportsPage-module_panel__HFBCt
104
104
  );
105
105
  };
106
106
  export {
107
- N as ReportsPage,
108
- N as default
107
+ D as ReportsPage,
108
+ D as default
109
109
  };
@@ -1,4 +1,4 @@
1
- import { a2 as we, a3 as z, a4 as xt, a5 as B, a0 as q, a1 as y, a6 as Ro, a7 as ye, a8 as R, a9 as _, aa as k, ab as N, ac as A, ad as bs, ae as ir, af as $e, ag as G, ah as Hn, ai as Vn, aj as dt, ak as D, al as xs, am as cn, an as Be, ao as ws, ap as qt, aq as zt, ar as $s, as as Cs, at as $n, au as Ss, av as Nr, aw as Bt, ax as zo, ay as ks, az as Es, aA as j, aB as Gr, aC as Ms, aD as Ds, aE as sr, aF as As, aG as Ts, aH as zn, aI as Fs, aJ as Is, aK as Z, aL as Ps, aM as Ls } from "./index-BMa5QlCF.js";
1
+ import { a2 as we, a3 as z, a4 as xt, a5 as B, a0 as q, a1 as y, a6 as Ro, a7 as ye, a8 as R, a9 as _, aa as k, ab as N, ac as A, ad as bs, ae as ir, af as $e, ag as G, ah as Hn, ai as Vn, aj as dt, ak as D, al as xs, am as cn, an as Be, ao as ws, ap as qt, aq as zt, ar as $s, as as Cs, at as $n, au as Ss, av as Nr, aw as Bt, ax as zo, ay as ks, az as Es, aA as j, aB as Gr, aC as Ms, aD as Ds, aE as sr, aF as As, aG as Ts, aH as zn, aI as Fs, aJ as Is, aK as Z, aL as Ps, aM as Ls } from "./index-Dr9Re1-R.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -75054,7 +75054,7 @@ function s42(t, e, r) {
75054
75054
  }
75055
75055
  return t;
75056
75056
  }
75057
- class kH1 {
75057
+ let kH1 = class {
75058
75058
  constructor() {
75059
75059
  this.handlers = [];
75060
75060
  }
@@ -75108,7 +75108,7 @@ class kH1 {
75108
75108
  r !== null && e(r);
75109
75109
  });
75110
75110
  }
75111
- }
75111
+ };
75112
75112
  const GE = {
75113
75113
  silentJSONParsing: !0,
75114
75114
  forcedJSONParsing: !0,
@@ -76542,23 +76542,23 @@ s0.getAdapter = g42.getAdapter;
76542
76542
  s0.HttpStatusCode = bm;
76543
76543
  s0.default = s0;
76544
76544
  const {
76545
- Axios: ZOt,
76546
- AxiosError: kOt,
76547
- CanceledError: BOt,
76548
- isCancel: IOt,
76549
- CancelToken: POt,
76550
- VERSION: FOt,
76551
- all: jOt,
76552
- Cancel: UOt,
76553
- isAxiosError: qOt,
76554
- spread: WOt,
76555
- toFormData: KOt,
76556
- AxiosHeaders: GOt,
76557
- HttpStatusCode: YOt,
76558
- formToJSON: JOt,
76559
- getAdapter: XOt,
76560
- mergeConfig: QOt,
76561
- create: eDt
76545
+ Axios: kOt,
76546
+ AxiosError: BOt,
76547
+ CanceledError: IOt,
76548
+ isCancel: POt,
76549
+ CancelToken: FOt,
76550
+ VERSION: jOt,
76551
+ all: UOt,
76552
+ Cancel: qOt,
76553
+ isAxiosError: WOt,
76554
+ spread: KOt,
76555
+ toFormData: GOt,
76556
+ AxiosHeaders: YOt,
76557
+ HttpStatusCode: JOt,
76558
+ formToJSON: XOt,
76559
+ getAdapter: QOt,
76560
+ mergeConfig: eDt,
76561
+ create: tDt
76562
76562
  } = s0, pw0 = (t) => typeof t == "object" && t !== null && "resourceType" in t && t.resourceType === "OperationOutcome", fw0 = (t) => {
76563
76563
  if (!t.issue || !Array.isArray(t.issue))
76564
76564
  return null;
@@ -76732,7 +76732,7 @@ function Lw0(t, e) {
76732
76732
  return Aw0(d, s);
76733
76733
  });
76734
76734
  }
76735
- const _w0 = process.env.PUBLIC_URL ?? "/", eM = "/openmrs/ws/rest/v1", Tw0 = "/bahmni-v2", tDt = Tw0 + "/home", Ow0 = `${eM}/bahmnicore/template/api`, Cm = (t) => {
76735
+ const _w0 = process.env.PUBLIC_URL ?? "/", eM = "/openmrs/ws/rest/v1", Tw0 = "/bahmni-v2", rDt = Tw0 + "/home", Ow0 = `${eM}/bahmnicore/template/api`, Cm = (t) => {
76736
76736
  if (typeof t == "string")
76737
76737
  return Lw0(t);
76738
76738
  if (Array.isArray(t))
@@ -125416,7 +125416,7 @@ function zd({
125416
125416
  }, l), a));
125417
125417
  }
125418
125418
  const {
125419
- open: uDt,
125419
+ open: hDt,
125420
125420
  ...HQ0
125421
125421
  } = pc.propTypes ?? {};
125422
125422
  zd.propTypes = {
@@ -154448,7 +154448,7 @@ const Mi2 = ({
154448
154448
  container: Vot,
154449
154449
  accordion: yot,
154450
154450
  rows: zot
154451
- }, hDt = ({
154451
+ }, pDt = ({
154452
154452
  title: t,
154453
154453
  rows: e,
154454
154454
  children: r,
@@ -157074,23 +157074,23 @@ o0.getAdapter = Fi2.getAdapter;
157074
157074
  o0.HttpStatusCode = Cw;
157075
157075
  o0.default = o0;
157076
157076
  const {
157077
- Axios: pDt,
157078
- AxiosError: fDt,
157079
- CanceledError: mDt,
157080
- isCancel: wDt,
157081
- CancelToken: gDt,
157082
- VERSION: vDt,
157083
- all: EDt,
157084
- Cancel: MDt,
157085
- isAxiosError: VDt,
157086
- spread: yDt,
157087
- toFormData: zDt,
157088
- AxiosHeaders: HDt,
157089
- HttpStatusCode: xDt,
157090
- formToJSON: bDt,
157091
- getAdapter: NDt,
157092
- mergeConfig: CDt,
157093
- create: ADt
157077
+ Axios: fDt,
157078
+ AxiosError: mDt,
157079
+ CanceledError: wDt,
157080
+ isCancel: gDt,
157081
+ CancelToken: vDt,
157082
+ VERSION: EDt,
157083
+ all: MDt,
157084
+ Cancel: VDt,
157085
+ isAxiosError: yDt,
157086
+ spread: zDt,
157087
+ toFormData: HDt,
157088
+ AxiosHeaders: xDt,
157089
+ HttpStatusCode: bDt,
157090
+ formToJSON: NDt,
157091
+ getAdapter: CDt,
157092
+ mergeConfig: ADt,
157093
+ create: LDt
157094
157094
  } = o0, qct = (t) => typeof t == "object" && t !== null && "resourceType" in t && t.resourceType === "OperationOutcome", Wct = (t) => {
157095
157095
  if (!t.issue || !Array.isArray(t.issue))
157096
157096
  return null;
@@ -160651,7 +160651,7 @@ const W6t = (t) => /^\d{4}-\d{2}-\d{2}T/.test(t), K6t = () => {
160651
160651
  }
160652
160652
  };
160653
160653
  }, M62 = K6t(), G6t = (t, e) => `${N0}/concept?s=byFullySpecifiedName&name=${encodeURIComponent(t)}`, Y6t = "SHORT", J6t = "FULLY_SPECIFIED";
160654
- async function LDt(t, e) {
160654
+ async function _Dt(t, e) {
160655
160655
  const r = G6t(t), o = await c2(r);
160656
160656
  return !o.results || o.results.length === 0 ? null : o.results[0];
160657
160657
  }
@@ -166026,7 +166026,7 @@ async function D62(t, e, r) {
166026
166026
  const o = O62(t, e, r);
166027
166027
  return await c2(o);
166028
166028
  }
166029
- async function _Dt(t, e, r) {
166029
+ async function TDt(t, e, r) {
166030
166030
  const o = O62(
166031
166031
  t,
166032
166032
  e,
@@ -166036,7 +166036,7 @@ async function _Dt(t, e, r) {
166036
166036
  );
166037
166037
  return await c2(o);
166038
166038
  }
166039
- async function TDt(t, e, r, o) {
166039
+ async function ODt(t, e, r, o) {
166040
166040
  const a = g8t(
166041
166041
  t,
166042
166042
  e,
@@ -166190,7 +166190,7 @@ const $62 = async () => {
166190
166190
  schema: o,
166191
166191
  translations: d
166192
166192
  };
166193
- }, ODt = async (t, e, r) => {
166193
+ }, DDt = async (t, e, r) => {
166194
166194
  const o = w8t(t, r), a = await c2(o);
166195
166195
  return Array.isArray(a) ? a : [];
166196
166196
  }, R8t = N0 + "/bahmnicore/diseaseSummaryData?", S8t = async (t, e, r, o) => {
@@ -166280,7 +166280,7 @@ function W8t(t) {
166280
166280
  };
166281
166281
  });
166282
166282
  }
166283
- async function DDt(t, e, r = 10, o = 1) {
166283
+ async function $Dt(t, e, r = 10, o = 1) {
166284
166284
  const a = (o - 1) * r, c = q8t(
166285
166285
  t,
166286
166286
  e,
@@ -180460,7 +180460,7 @@ function jy({
180460
180460
  }, l), a));
180461
180461
  }
180462
180462
  const {
180463
- open: $Dt,
180463
+ open: RDt,
180464
180464
  ...AEt
180465
180465
  } = a6.propTypes ?? {};
180466
180466
  jy.propTypes = {
@@ -185681,7 +185681,7 @@ const Jy = (t) => t?.controls ?? [], Ps2 = (t) => t.flatMap((e) => [
185681
185681
  const r = e.split("/")[0].split("^").pop()?.replace(/\.\d+$/, "");
185682
185682
  if (r)
185683
185683
  return r;
185684
- }, RDt = (t, e) => t?.date ? e2(t.date, e).formattedResult : e("DATE_ERROR_PARSE"), Xy = (t, e, r) => {
185684
+ }, SDt = (t, e) => t?.date ? e2(t.date, e).formattedResult : e("DATE_ERROR_PARSE"), Xy = (t, e, r) => {
185685
185685
  if (t.observationValue?.value == null)
185686
185686
  return "";
185687
185687
  const { value: o, unit: a, type: c } = t.observationValue;
@@ -185714,7 +185714,7 @@ const Jy = (t) => t?.controls ?? [], Ps2 = (t) => t.flatMap((e) => [
185714
185714
  display: e,
185715
185715
  referenceRange: l || void 0
185716
185716
  };
185717
- }, SDt = (t, e, r) => ({
185717
+ }, ZDt = (t, e, r) => ({
185718
185718
  index: e,
185719
185719
  header: Rzt(t),
185720
185720
  value: Xy(t, r),
@@ -185748,7 +185748,7 @@ function Us2(t, e, r) {
185748
185748
  // conceptId is required to group the multiselect obs
185749
185749
  };
185750
185750
  }
185751
- function ZDt(t) {
185751
+ function kDt(t) {
185752
185752
  const e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set();
185753
185753
  t.entry?.forEach(({ resource: l }) => {
185754
185754
  l?.id && (l.resourceType === "Encounter" ? e.set(l.id, l) : l.resourceType === "Observation" && (r.set(l.id, l), l.hasMember?.forEach((i) => {
@@ -185767,7 +185767,7 @@ function ZDt(t) {
185767
185767
  s.members ? c.push(s) : a.push(s);
185768
185768
  }), { observations: a, groupedObservations: c };
185769
185769
  }
185770
- function kDt(t) {
185770
+ function BDt(t) {
185771
185771
  const e = /* @__PURE__ */ new Map();
185772
185772
  return t.observations.forEach((r) => {
185773
185773
  if (!r.encounter?.id) return;
@@ -185793,13 +185793,13 @@ function kDt(t) {
185793
185793
  };
185794
185794
  });
185795
185795
  }
185796
- function BDt(t) {
185796
+ function IDt(t) {
185797
185797
  return [...t].sort((e, r) => {
185798
185798
  const o = e.encounterDetails?.date, a = r.encounterDetails?.date;
185799
185799
  return !o && !a ? 0 : o ? a ? new Date(a).getTime() - new Date(o).getTime() : -1 : 1;
185800
185800
  });
185801
185801
  }
185802
- function IDt(t) {
185802
+ function PDt(t) {
185803
185803
  const e = [...t.observations, ...t.groupedObservations];
185804
185804
  if (e.length === 0) return t;
185805
185805
  const r = e.reduce(
@@ -194527,7 +194527,7 @@ var dAt = function(t) {
194527
194527
  return a ? (o.push.apply(o, Array.from(a.querySelectorAll("[aria-live], script"))), hAt(o, a, r, "aria-hidden")) : function() {
194528
194528
  return null;
194529
194529
  };
194530
- }, xu = "Dialog", [y52, PDt] = KNt(xu), [fAt, Qr] = y52(xu), z52 = (t) => {
194530
+ }, xu = "Dialog", [y52, FDt] = KNt(xu), [fAt, Qr] = y52(xu), z52 = (t) => {
194531
194531
  const {
194532
194532
  __scopeDialog: e,
194533
194533
  children: r,
@@ -194729,7 +194729,7 @@ zAt.displayName = _52;
194729
194729
  function cz(t) {
194730
194730
  return t ? "open" : "closed";
194731
194731
  }
194732
- var T52 = "DialogTitleWarning", [FDt, O52] = WNt(T52, {
194732
+ var T52 = "DialogTitleWarning", [jDt, O52] = WNt(T52, {
194733
194733
  contentName: uo,
194734
194734
  titleName: az,
194735
194735
  docsSlug: "dialog"
@@ -195156,7 +195156,7 @@ const P52 = ({
195156
195156
  return /* @__PURE__ */ l1(zs2.Provider, { value: i, children: t });
195157
195157
  };
195158
195158
  P52.displayName = "UserPrivilegeProvider";
195159
- const jDt = {
195159
+ const UDt = {
195160
195160
  EDIT_OBSERVATIONS: ["Edit Observations"]
195161
195161
  }, tLt = "CommonSearchWidget-module_fullWidth__8l-xH", rLt = "CommonSearchWidget-module_searchForm__gwnfT", nLt = "CommonSearchWidget-module_dropdownCol__LSvLq", oLt = "CommonSearchWidget-module_fullWidthCol__QzpMW", aLt = "CommonSearchWidget-module_criterionRow__Wqkgr", cLt = "CommonSearchWidget-module_criterionSelector__ZoiWU", lLt = "CommonSearchWidget-module_criterionInput__rkgZX", iLt = "CommonSearchWidget-module_criterionClose__JVNti", sLt = "CommonSearchWidget-module_rangeContainer__1f8ls", dLt = "CommonSearchWidget-module_footer__V9a1l", uLt = "CommonSearchWidget-module_rangeInputCol__vpbY1", hLt = "CommonSearchWidget-module_datePicker__G1-0L", pLt = "CommonSearchWidget-module_numericInput__qGTvI", fLt = "CommonSearchWidget-module_dataTable__FH5MA", mLt = "CommonSearchWidget-module_searchSummary__FxisO", wLt = "CommonSearchWidget-module_summaryLabel__hcXNY", gLt = "CommonSearchWidget-module_criteriaSummary__NjPO-", vLt = "CommonSearchWidget-module_searchCriteriaAccordion__ULZzl", ELt = "CommonSearchWidget-module_searchCriteriaAccordionItem__4R7pn", C2 = {
195162
195162
  fullWidth: tLt,
@@ -196411,7 +196411,7 @@ Xs2({
196411
196411
  key: "commonSearch",
196412
196412
  component: b_t
196413
196413
  });
196414
- X0(() => Promise.resolve().then(() => tMt)), X0(() => Promise.resolve().then(() => CMt)), X0(() => Promise.resolve().then(() => cVt)), X0(() => Promise.resolve().then(() => pVt)), X0(() => import("./DocumentsTable-Cik3MQZO-BEOP3gXe.js")), X0(() => Promise.resolve().then(() => gbt)), X0(() => import("./FormsTable-BdcB_G8V-Bv8kdRrU.js")), X0(() => Promise.resolve().then(() => dxt)), X0(() => import("./Observations-f5ZvMmFn-_Fn9yyIz.js")), X0(
196414
+ X0(() => Promise.resolve().then(() => tMt)), X0(() => Promise.resolve().then(() => CMt)), X0(() => Promise.resolve().then(() => cVt)), X0(() => Promise.resolve().then(() => pVt)), X0(() => import("./DocumentsTable-BVnv0gpO-CxXo0prU.js")), X0(() => Promise.resolve().then(() => gbt)), X0(() => import("./FormsTable-BOBb-hEm-BW0X21Di.js")), X0(() => Promise.resolve().then(() => dxt)), X0(() => import("./Observations-GQNCaUuo-BVRAL9k7.js")), X0(
196415
196415
  () => Promise.resolve().then(() => cNt)
196416
196416
  ), X0(
196417
196417
  () => Promise.resolve().then(() => THt)
@@ -196747,7 +196747,7 @@ function q_t(t, e, r) {
196747
196747
  mutate: y
196748
196748
  }];
196749
196749
  }
196750
- function UDt(t) {
196750
+ function qDt(t) {
196751
196751
  return An(t, !1);
196752
196752
  }
196753
196753
  function K0(t) {
@@ -196760,7 +196760,7 @@ function K0(t) {
196760
196760
  P2 = e;
196761
196761
  }
196762
196762
  }
196763
- function qDt(t, e, r) {
196763
+ function WDt(t, e, r) {
196764
196764
  const o = Array.isArray(t);
196765
196765
  let a, c = r && r.defer;
196766
196766
  return (l) => {
@@ -196803,11 +196803,11 @@ function K_t(t) {
196803
196803
  return An(t, !1), P2 = s2 = null, o ? o.done : void 0;
196804
196804
  });
196805
196805
  }
196806
- var [G_t, WDt] = /* @__PURE__ */ h0(!1);
196807
- function KDt() {
196806
+ var [G_t, KDt] = /* @__PURE__ */ h0(!1);
196807
+ function GDt() {
196808
196808
  return [G_t, K_t];
196809
196809
  }
196810
- function GDt(t, e) {
196810
+ function YDt(t, e) {
196811
196811
  const r = Symbol("context");
196812
196812
  return {
196813
196813
  id: r,
@@ -196815,7 +196815,7 @@ function GDt(t, e) {
196815
196815
  defaultValue: t
196816
196816
  };
196817
196817
  }
196818
- function YDt(t) {
196818
+ function JDt(t) {
196819
196819
  let e;
196820
196820
  return s2 && s2.context && (e = s2.context[t.id]) !== void 0 ? e : t.defaultValue;
196821
196821
  }
@@ -197215,23 +197215,23 @@ function s82(t) {
197215
197215
  return o.preload = () => r || ((r = t()).then((a) => e = () => a.default), r), o;
197216
197216
  }
197217
197217
  var aTt = 0;
197218
- function JDt() {
197218
+ function XDt() {
197219
197219
  return Ge.context ? Ge.getNextContextId() : `cl-${aTt++}`;
197220
197220
  }
197221
197221
  var d82 = (t) => `Stale read from <${t}>.`;
197222
- function XDt(t) {
197222
+ function QDt(t) {
197223
197223
  const e = "fallback" in t && {
197224
197224
  fallback: () => t.fallback
197225
197225
  };
197226
197226
  return _0(tTt(() => t.each, t.children, e || void 0));
197227
197227
  }
197228
- function QDt(t) {
197228
+ function e$t(t) {
197229
197229
  const e = "fallback" in t && {
197230
197230
  fallback: () => t.fallback
197231
197231
  };
197232
197232
  return _0(rTt(() => t.each, t.children, e || void 0));
197233
197233
  }
197234
- function e$t(t) {
197234
+ function t$t(t) {
197235
197235
  const e = t.keyed, r = _0(() => t.when, void 0, void 0), o = e ? r : _0(r, void 0, {
197236
197236
  equals: (a, c) => !a == !c
197237
197237
  });
@@ -197247,7 +197247,7 @@ function e$t(t) {
197247
197247
  return t.fallback;
197248
197248
  }, void 0, void 0);
197249
197249
  }
197250
- function t$t(t) {
197250
+ function r$t(t) {
197251
197251
  const e = r82(() => t.children), r = _0(() => {
197252
197252
  const o = e(), a = Array.isArray(o) ? o : [o];
197253
197253
  let c = () => {
@@ -197270,7 +197270,7 @@ function t$t(t) {
197270
197270
  })) : i;
197271
197271
  }, void 0, void 0);
197272
197272
  }
197273
- function r$t(t) {
197273
+ function n$t(t) {
197274
197274
  return t;
197275
197275
  }
197276
197276
  var cTt = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], lTt = /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...cTt]), iTt = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), sTt = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
@@ -197390,7 +197390,7 @@ var hTt = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextm
197390
197390
  ]), fTt = {
197391
197391
  xlink: "http://www.w3.org/1999/xlink",
197392
197392
  xml: "http://www.w3.org/XML/1998/namespace"
197393
- }, n$t = (t) => _0(() => t());
197393
+ }, o$t = (t) => _0(() => t());
197394
197394
  function mTt(t, e, r) {
197395
197395
  let o = r.length, a = e.length, c = o, l = 0, i = 0, s = e[a - 1].nextSibling, d = null;
197396
197396
  for (; l < a || i < c; ) {
@@ -197439,7 +197439,7 @@ function u82(t, e, r, o = {}) {
197439
197439
  a(), e.textContent = "";
197440
197440
  };
197441
197441
  }
197442
- function o$t(t, e, r, o) {
197442
+ function a$t(t, e, r, o) {
197443
197443
  let a;
197444
197444
  const c = () => {
197445
197445
  const i = document.createElement("template");
@@ -197454,7 +197454,7 @@ function wTt(t, e = window.document) {
197454
197454
  r.has(c) || (r.add(c), e.addEventListener(c, h82));
197455
197455
  }
197456
197456
  }
197457
- function a$t(t = window.document) {
197457
+ function c$t(t = window.document) {
197458
197458
  if (t[Vl]) {
197459
197459
  for (let e of t[Vl].keys()) t.removeEventListener(e, h82);
197460
197460
  delete t[Vl];
@@ -197721,7 +197721,7 @@ var ATt = "http://www.w3.org/2000/svg";
197721
197721
  function p82(t, e = !1) {
197722
197722
  return e ? document.createElementNS(ATt, t) : document.createElement(t);
197723
197723
  }
197724
- function c$t(t) {
197724
+ function l$t(t) {
197725
197725
  const {
197726
197726
  useShadow: e
197727
197727
  } = t, r = document.createTextNode(""), o = () => t.mount || document.body, a = QGe();
@@ -197760,7 +197760,7 @@ function LTt(t, e) {
197760
197760
  }
197761
197761
  });
197762
197762
  }
197763
- function l$t(t) {
197763
+ function i$t(t) {
197764
197764
  const [, e] = oTt(t, ["component"]);
197765
197765
  return LTt(() => t.component, e);
197766
197766
  }
@@ -198267,42 +198267,42 @@ F2.registerClass = F2.defaultInstance.registerClass.bind(F2.defaultInstance);
198267
198267
  F2.registerSymbol = F2.defaultInstance.registerSymbol.bind(F2.defaultInstance);
198268
198268
  F2.registerCustom = F2.defaultInstance.registerCustom.bind(F2.defaultInstance);
198269
198269
  F2.allowErrorProps = F2.defaultInstance.allowErrorProps.bind(F2.defaultInstance);
198270
- var cOt = F2.serialize, i$t = F2.stringify;
198271
- function s$t(t) {
198270
+ var cOt = F2.serialize, s$t = F2.stringify;
198271
+ function d$t(t) {
198272
198272
  return t.state.fetchStatus === "fetching" ? "fetching" : t.getObserversCount() ? t.state.fetchStatus === "paused" ? "paused" : t.isStale() ? "stale" : "fresh" : "inactive";
198273
198273
  }
198274
- function d$t(t, e) {
198274
+ function u$t(t, e) {
198275
198275
  return `${t}${e.charAt(0).toUpperCase() + e.slice(1)}`;
198276
198276
  }
198277
- function u$t({
198277
+ function h$t({
198278
198278
  queryState: t,
198279
198279
  observerCount: e,
198280
198280
  isStale: r
198281
198281
  }) {
198282
198282
  return t.fetchStatus === "fetching" ? "blue" : e ? t.fetchStatus === "paused" ? "purple" : r ? "yellow" : "green" : "gray";
198283
198283
  }
198284
- function h$t({
198284
+ function p$t({
198285
198285
  status: t,
198286
198286
  isPaused: e
198287
198287
  }) {
198288
198288
  return e ? "purple" : t === "error" ? "red" : t === "pending" ? "yellow" : t === "success" ? "green" : "gray";
198289
198289
  }
198290
- function p$t(t) {
198290
+ function f$t(t) {
198291
198291
  return t === "fresh" ? "green" : t === "stale" ? "yellow" : t === "paused" ? "purple" : t === "inactive" ? "gray" : "blue";
198292
198292
  }
198293
- var f$t = (t, e = !1) => {
198293
+ var m$t = (t, e = !1) => {
198294
198294
  const {
198295
198295
  json: r
198296
198296
  } = cOt(t);
198297
198297
  return JSON.stringify(r, null, e ? 2 : void 0);
198298
- }, _5 = (t) => t.state.fetchStatus !== "idle" ? 0 : t.getObserversCount() ? t.isStale() ? 2 : 1 : 3, lOt = (t, e) => t.queryHash.localeCompare(e.queryHash), C82 = (t, e) => t.state.dataUpdatedAt < e.state.dataUpdatedAt ? 1 : -1, iOt = (t, e) => _5(t) === _5(e) ? C82(t, e) : _5(t) > _5(e) ? 1 : -1, m$t = {
198298
+ }, _5 = (t) => t.state.fetchStatus !== "idle" ? 0 : t.getObserversCount() ? t.isStale() ? 2 : 1 : 3, lOt = (t, e) => t.queryHash.localeCompare(e.queryHash), C82 = (t, e) => t.state.dataUpdatedAt < e.state.dataUpdatedAt ? 1 : -1, iOt = (t, e) => _5(t) === _5(e) ? C82(t, e) : _5(t) > _5(e) ? 1 : -1, w$t = {
198299
198299
  status: iOt,
198300
198300
  "query hash": lOt,
198301
198301
  "last updated": C82
198302
- }, T5 = (t) => t.state.isPaused ? 0 : t.state.status === "error" ? 2 : t.state.status === "pending" ? 1 : 3, A82 = (t, e) => t.state.submittedAt < e.state.submittedAt ? 1 : -1, sOt = (t, e) => T5(t) === T5(e) ? A82(t, e) : T5(t) > T5(e) ? 1 : -1, w$t = {
198302
+ }, T5 = (t) => t.state.isPaused ? 0 : t.state.status === "error" ? 2 : t.state.status === "pending" ? 1 : 3, A82 = (t, e) => t.state.submittedAt < e.state.submittedAt ? 1 : -1, sOt = (t, e) => T5(t) === T5(e) ? A82(t, e) : T5(t) > T5(e) ? 1 : -1, g$t = {
198303
198303
  status: sOt,
198304
198304
  "last updated": A82
198305
- }, g$t = (t) => t * parseFloat(getComputedStyle(document.documentElement).fontSize), v$t = () => {
198305
+ }, v$t = (t) => t * parseFloat(getComputedStyle(document.documentElement).fontSize), E$t = () => {
198306
198306
  const [t, e] = h0("dark");
198307
198307
  return W_t(() => {
198308
198308
  const r = window.matchMedia("(prefers-color-scheme: dark)");
@@ -198428,7 +198428,7 @@ var f$t = (t, e = !1) => {
198428
198428
  const e = u82(() => {
198429
198429
  const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#t;
198430
198430
  let d;
198431
- return this.#l ? d = this.#l : (d = s82(() => import("./LNWAZHJI-B83w9zem.js")), this.#l = d), L82(this.#h, this.#r), l82(d, i82({
198431
+ return this.#l ? d = this.#l : (d = s82(() => import("./LNWAZHJI-fsHxeVCA.js")), this.#l = d), L82(this.#h, this.#r), l82(d, i82({
198432
198432
  get queryFlavor() {
198433
198433
  return r.#d;
198434
198434
  },
@@ -198526,7 +198526,7 @@ var f$t = (t, e = !1) => {
198526
198526
  const e = u82(() => {
198527
198527
  const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#t, [d] = this.#l;
198528
198528
  let u;
198529
- return this.#i ? u = this.#i : (u = s82(() => import("./MWZ6AO7Z-D07k4ozG.js")), this.#i = u), L82(this.#h, this.#r), l82(u, i82({
198529
+ return this.#i ? u = this.#i : (u = s82(() => import("./MWZ6AO7Z-13YRi96_.js")), this.#i = u), L82(this.#h, this.#r), l82(u, i82({
198530
198530
  get queryFlavor() {
198531
198531
  return r.#d;
198532
198532
  },
@@ -198648,7 +198648,7 @@ var fOt = process.env.NODE_ENV !== "development" ? function() {
198648
198648
  return null;
198649
198649
  } : hOt;
198650
198650
  process.env.NODE_ENV;
198651
- const mOt = "reports", wOt = "app:reports", E$t = "/reports/", M$t = "/reports/my-reports", gOt = ({ children: t }) => {
198651
+ const mOt = "reports", wOt = "app:reports", M$t = "/reports/", V$t = "/reports/my-reports", gOt = ({ children: t }) => {
198652
198652
  const { userPrivileges: e, error: r } = o3();
198653
198653
  return e === null && !r ? /* @__PURE__ */ l1(Em, { testId: "privilege-guard-loading-test-id" }) : kv0(e, wOt) ? t : /* @__PURE__ */ l1(uYe, { to: "/home/", replace: !0 });
198654
198654
  }, vOt = {
@@ -198665,7 +198665,7 @@ const mOt = "reports", wOt = "app:reports", E$t = "/reports/", M$t = "/reports/m
198665
198665
  }
198666
198666
  }
198667
198667
  }, lYe = X0(
198668
- () => import("./ReportsPage-DEhk2rFR.js").then((t) => ({
198668
+ () => import("./ReportsPage-CKGlEk62.js").then((t) => ({
198669
198669
  default: t.ReportsPage
198670
198670
  }))
198671
198671
  ), EOt = [
@@ -198683,7 +198683,7 @@ const mOt = "reports", wOt = "app:reports", E$t = "/reports/", M$t = "/reports/m
198683
198683
  ...t.map((e) => /* @__PURE__ */ l1(sz, { path: e.path, element: /* @__PURE__ */ l1(e.component, {}) }, e.path)),
198684
198684
  /* @__PURE__ */ l1(sz, { path: "*", element: /* @__PURE__ */ l1(uYe, { to: "/", replace: !0 }) }, "not-found")
198685
198685
  ], VOt = new O82(vOt);
198686
- function V$t() {
198686
+ function y$t() {
198687
198687
  const [t, e] = x1(!1);
198688
198688
  return z1(() => {
198689
198689
  (async () => {
@@ -198700,20 +198700,20 @@ function V$t() {
198700
198700
  ] }) }) }) }) }) }) : /* @__PURE__ */ l1(Em, {});
198701
198701
  }
198702
198702
  export {
198703
- tDt as $,
198703
+ E$t as $,
198704
198704
  qi as A,
198705
198705
  nAe as B,
198706
- BDt as C,
198707
- E$t as D,
198708
- DDt as E,
198706
+ IDt as C,
198707
+ rDt as D,
198708
+ $Dt as E,
198709
198709
  Mc as F,
198710
- $Ot as G,
198711
- LOt as H,
198712
- _Ot as I,
198710
+ M$t as G,
198711
+ $Ot as H,
198712
+ LOt as I,
198713
198713
  R62 as J,
198714
- DOt as K,
198714
+ _Ot as K,
198715
198715
  Fot as L,
198716
- M$t as M,
198716
+ V$t as M,
198717
198717
  $8t as N,
198718
198718
  $ot as O,
198719
198719
  Ec as P,
@@ -198721,87 +198721,87 @@ export {
198721
198721
  Qnt as R,
198722
198722
  q0 as S,
198723
198723
  _ot as T,
198724
- Xp0 as U,
198724
+ DOt as U,
198725
198725
  $zt as V,
198726
- B_t as W,
198726
+ Xp0 as W,
198727
198727
  TOt as X,
198728
198728
  U0 as Y,
198729
- v$t as Z,
198730
- kDt as _,
198729
+ B_t as Z,
198730
+ BDt as _,
198731
198731
  t6 as a,
198732
198732
  _0 as a0,
198733
198733
  l82 as a1,
198734
- GDt as a2,
198734
+ YDt as a2,
198735
198735
  h0 as a3,
198736
198736
  W_t as a4,
198737
198737
  e82 as a5,
198738
- c$t as a6,
198739
- n$t as a7,
198740
- e$t as a8,
198741
- o$t as a9,
198738
+ l$t as a6,
198739
+ o$t as a7,
198740
+ t$t as a8,
198741
+ a$t as a9,
198742
198742
  i82 as aA,
198743
198743
  P4 as aB,
198744
198744
  cOt as aC,
198745
- QDt as aD,
198745
+ e$t as aD,
198746
198746
  O5 as aE,
198747
198747
  MTt as aF,
198748
- i$t as aG,
198749
- r$t as aH,
198750
- t$t as aI,
198748
+ s$t as aG,
198749
+ n$t as aH,
198750
+ r$t as aI,
198751
198751
  D5 as aJ,
198752
198752
  oTt as aK,
198753
- l$t as aL,
198753
+ i$t as aL,
198754
198754
  j_t as aM,
198755
- V$t as aN,
198755
+ y$t as aN,
198756
198756
  tg as aa,
198757
198757
  F4 as ab,
198758
198758
  ETt as ac,
198759
- a$t as ad,
198759
+ c$t as ad,
198760
198760
  wTt as ae,
198761
- YDt as af,
198761
+ JDt as af,
198762
198762
  ai as ag,
198763
- m$t as ah,
198764
- w$t as ai,
198765
- qDt as aj,
198763
+ w$t as ah,
198764
+ g$t as ai,
198765
+ WDt as aj,
198766
198766
  eg as ak,
198767
- d$t as al,
198767
+ u$t as al,
198768
198768
  HTt as am,
198769
- JDt as an,
198770
- UDt as ao,
198771
- s$t as ap,
198772
- h$t as aq,
198773
- u$t as ar,
198774
- p$t as as,
198775
- f$t as at,
198776
- XDt as au,
198777
- g$t as av,
198769
+ XDt as an,
198770
+ qDt as ao,
198771
+ d$t as ap,
198772
+ p$t as aq,
198773
+ h$t as ar,
198774
+ f$t as as,
198775
+ m$t as at,
198776
+ QDt as au,
198777
+ v$t as av,
198778
198778
  K0 as aw,
198779
198779
  J52 as ax,
198780
- KDt as ay,
198780
+ GDt as ay,
198781
198781
  zTt as az,
198782
- ODt as b,
198782
+ DDt as b,
198783
198783
  E8t as c,
198784
198784
  js2 as d,
198785
198785
  o3 as e,
198786
198786
  pd as f,
198787
- jDt as g,
198787
+ UDt as g,
198788
198788
  tz as h,
198789
198789
  Gy as i,
198790
- LDt as j,
198791
- TDt as k,
198792
- _Dt as l,
198790
+ _Dt as j,
198791
+ ODt as k,
198792
+ TDt as l,
198793
198793
  Xr as m,
198794
- ZDt as n,
198795
- IDt as o,
198794
+ kDt as n,
198795
+ PDt as o,
198796
198796
  Vt as p,
198797
198797
  C3 as q,
198798
198798
  Gd as r,
198799
- hDt as s,
198800
- SDt as t,
198799
+ pDt as s,
198800
+ ZDt as t,
198801
198801
  Xe as u,
198802
198802
  kt as v,
198803
198803
  e2 as w,
198804
- RDt as x,
198804
+ SDt as x,
198805
198805
  Dzt as y,
198806
198806
  dt as z
198807
198807
  };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aN as r } from "./index-BMa5QlCF.js";
1
+ import { aN as r } from "./index-Dr9Re1-R.js";
2
2
  export {
3
3
  r as ReportsApp
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/reports-app",
3
- "version": "0.0.1-dev.422",
3
+ "version": "0.0.1-dev.423",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",