@bahmni/clinical-app 0.0.1-dev.282 → 0.0.1-dev.284

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 h, Fragment as x } from "react/jsx-runtime";
2
- import { u as G, a as W, h as Y, K as J, w as X, m as Z, c as ee, n as te } from "./index-ib3P37Hz.js";
2
+ import { u as G, a as W, h as Y, K as J, w as X, m as Z, c as ee, n as te } from "./index-CkOFUTSw.js";
3
3
  import { useQuery as ae } from "@tanstack/react-query";
4
4
  import { useState as l, useCallback as _, useEffect as N, useMemo as p } 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,5 +1,5 @@
1
1
  import { jsx as s, jsxs as X, Fragment as Z } from "react/jsx-runtime";
2
- import { a as ee, u as re, E as ae, q as oe, U as te, W as se, j as ne, t as de, _ as R, m as ie, w as me, c as q, O as ue, L as le, n as ce, Y as fe, P as ye } from "./index-ib3P37Hz.js";
2
+ import { a as ee, u as re, E as ae, q as oe, U as te, W as se, j as ne, t as de, _ as R, m as ie, w as me, c as q, O as ue, L as le, n as ce, Y as fe, P as ye } from "./index-CkOFUTSw.js";
3
3
  import { useQueryClient as be, useQuery as f } from "@tanstack/react-query";
4
4
  import { useState as S, useMemo as d, useCallback as y } from "react";
5
5
  const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_customAccordianItem__isszs", A = {
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-DK2G1oCF.js";
2
- import { g as d, d as f, f as e } from "./index-ib3P37Hz.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-uF3yrimm.js";
2
+ import { g as d, d as f, f as e } from "./index-CkOFUTSw.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 d, Q as P } from "./YPM2AS64-DK2G1oCF.js";
2
- import { g as v, d as C, f as e } from "./index-ib3P37Hz.js";
1
+ import { c as s, T as c, P as u, a as i, b as m, C as d, Q as P } from "./YPM2AS64-uF3yrimm.js";
2
+ import { g as v, d as C, f as e } from "./index-CkOFUTSw.js";
3
3
  var f = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
1
  import { jsxs as N, jsx as u } from "react/jsx-runtime";
2
- import { u as U, h as K, a as S, B as Q, F as q, t as k, e as w, b as z, r as x, z as G, c as J, X as j, M as F, Q as P, V as X, J as Y, N as W, I as Z, C as ee } from "./index-ib3P37Hz.js";
2
+ import { u as U, h as K, a as S, B as Q, F as q, t as k, e as w, b as z, r as x, z as G, c as J, X as j, M as F, Q as P, V as X, J as Y, N as W, I as Z, C as ee } from "./index-CkOFUTSw.js";
3
3
  import { useQueries as te, useQuery as ae } from "@tanstack/react-query";
4
4
  import { useRef as se, useEffect as $, useMemo as R } from "react";
5
5
  const C = (t, n, d, l, b, r) => {
@@ -123,10 +123,10 @@ const C = (t, n, d, l, b, r) => {
123
123
  $(() => {
124
124
  i.forEach((e, h) => {
125
125
  if (e.isError && !r.current.has(h)) {
126
- const H = d[h];
126
+ const M = d[h];
127
127
  s({
128
128
  title: o("ERROR_DEFAULT_TITLE"),
129
- message: o("ERROR_FETCHING_CONCEPT", { conceptName: H }),
129
+ message: o("ERROR_FETCHING_CONCEPT", { conceptName: M }),
130
130
  type: "error"
131
131
  }), r.current.add(h);
132
132
  } else e.isError || r.current.delete(h);
@@ -136,7 +136,7 @@ const C = (t, n, d, l, b, r) => {
136
136
  data: c,
137
137
  isLoading: D,
138
138
  isError: T,
139
- refetch: O
139
+ refetch: g
140
140
  } = ae({
141
141
  queryKey: le(a, p),
142
142
  queryFn: () => q(a, p),
@@ -146,9 +146,9 @@ const C = (t, n, d, l, b, r) => {
146
146
  (e) => {
147
147
  e.patientUUID === a && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
148
148
  (h) => p.includes(h)
149
- ) && O();
149
+ ) && g();
150
150
  },
151
- [a, O]
151
+ [a, g]
152
152
  ), $(() => {
153
153
  T && s({
154
154
  title: o("ERROR_DEFAULT_TITLE"),
@@ -156,7 +156,7 @@ const C = (t, n, d, l, b, r) => {
156
156
  type: "error"
157
157
  });
158
158
  }, [T]);
159
- const g = R(() => {
159
+ const O = R(() => {
160
160
  if (!c) return [];
161
161
  const e = w(c), h = z(e);
162
162
  return x(h);
@@ -164,7 +164,7 @@ const C = (t, n, d, l, b, r) => {
164
164
  { key: "name", header: "name" },
165
165
  { key: "value", header: "value" },
166
166
  { key: "form", header: "form" }
167
- ], f = D || !y, _ = T && y, A = (!c || c.entry?.length === 0 || p.length === 0) && y, B = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null, M = A ? o("NO_OBSERVATIONS_FOUND") : void 0, V = g.length > 0 && !f && !_, E = n.titleTranslationKey, v = E ? o(E) : "";
167
+ ], f = D || !y, _ = T && y, A = (!c || c.entry?.length === 0 || p.length === 0) && y, B = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null, V = A ? o("NO_OBSERVATIONS_FOUND") : void 0, H = O.length > 0 && !f && !_, E = n.titleTranslationKey, v = E ? o(E) : "";
168
168
  return /* @__PURE__ */ N(
169
169
  "div",
170
170
  {
@@ -183,10 +183,10 @@ const C = (t, n, d, l, b, r) => {
183
183
  children: /* @__PURE__ */ u("p", { children: v })
184
184
  }
185
185
  ),
186
- V ? /* @__PURE__ */ u(
186
+ H ? /* @__PURE__ */ u(
187
187
  oe,
188
188
  {
189
- groupedData: g,
189
+ groupedData: O,
190
190
  title: v,
191
191
  hideThumbnail: b
192
192
  }
@@ -198,7 +198,7 @@ const C = (t, n, d, l, b, r) => {
198
198
  ariaLabel: o("OBSERVATIONS"),
199
199
  loading: f,
200
200
  errorStateMessage: B,
201
- emptyStateMessage: M,
201
+ emptyStateMessage: V,
202
202
  dataTestId: "observations-table"
203
203
  }
204
204
  )
@@ -1,4 +1,4 @@
1
- import { i as we, k as z, o as xt, l as B, d as q, f as y, p as Ro, s as ye, S as R, v as _, x as k, y as N, A, D as bs, G as ir, H as $e, R as G, T as Hn, Z as Vn, $ as dt, a0 as D, a1 as xs, a2 as cn, a3 as Be, a4 as ws, a5 as qt, a6 as zt, a7 as $s, a8 as Cs, a9 as $n, aa as Ss, ab as Nr, ac as Bt, ad as zo, ae as ks, af as Es, ag as j, ah as Gr, ai as Ms, aj as Ds, ak as sr, al as As, am as Ts, an as zn, ao as Fs, ap as Is, aq as Z, ar as Ps, as as Ls } from "./index-ib3P37Hz.js";
1
+ import { i as we, k as z, o as xt, l as B, d as q, f as y, p as Ro, s as ye, S as R, v as _, x as k, y as N, A, D as bs, G as ir, H as $e, R as G, T as Hn, Z as Vn, $ as dt, a0 as D, a1 as xs, a2 as cn, a3 as Be, a4 as ws, a5 as qt, a6 as zt, a7 as $s, a8 as Cs, a9 as $n, aa as Ss, ab as Nr, ac as Bt, ad as zo, ae as ks, af as Es, ag as j, ah as Gr, ai as Ms, aj as Ds, ak as sr, al as As, am as Ts, an as zn, ao as Fs, ap as Is, aq as Z, ar as Ps, as as Ls } from "./index-CkOFUTSw.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {