@bahmni/clinical-app 0.0.1-dev.434 → 0.0.1-dev.438

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 d, jsxs as h, Fragment as x } from "react/jsx-runtime";
2
- import { d as G, u as W, z as Y, R as J, s as X, h as Z, $ as ee, a as te } from "./index-C-03mlGl.js";
2
+ import { d as G, u as W, z as Y, R as J, s as X, h as Z, $ as ee, a as te } from "./index-oWgjP_o2.js";
3
3
  import { useQuery as ae } from "@tanstack/react-query";
4
4
  import { useState as l, useCallback as _, useEffect as I, useMemo as p } from "react";
5
5
  const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTable-module_viewAttachmentsLink__aQ1on", de = "DocumentsTable-module_documentViewerContainer__F5m8D", re = "DocumentsTable-module_attachmentItem__17KA7", se = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", ce = "DocumentsTable-module_documentIframe__ptq5I", le = "DocumentsTable-module_documentImage__KQVgS", r = {
@@ -1,12 +1,12 @@
1
1
  import { jsx as n, jsxs as q, Fragment as ne } from "react/jsx-runtime";
2
- import { u as ie, d as de, g as le, k as me, H as ue, L as ce, b as fe, A as ye, w as ge, M as he, l as Ne, c as Oe, h as Te, O as V, x as $, s as pe, $ as x, W as be, q as Ie, a as Ae, e as Ee, J as _e } from "./index-C-03mlGl.js";
2
+ import { u as ie, d as de, g as le, k as me, H as ue, L as ce, b as fe, A as ye, w as ge, M as he, l as Ne, c as Oe, h as Te, O as V, x as $, s as pe, $ as x, W as be, q as Ie, a as Ae, e as Ee, J as _e } from "./index-oWgjP_o2.js";
3
3
  import { useQueryClient as Le, useQuery as A } from "@tanstack/react-query";
4
4
  import { useState as K, useMemo as i, useCallback as d } from "react";
5
- const ve = "FormsTable-module_formsTableBody__SvGha", Ce = "FormsTable-module_modalHeading__wnTmA", Re = "FormsTable-module_customAccordianItem__isszs", N = {
6
- formsTableBody: ve,
7
- modalHeading: Ce,
8
- customAccordianItem: Re
9
- }, Be = "startConsultation", Se = ({
5
+ const Re = "FormsTable-module_formsTableBody__SvGha", ve = "FormsTable-module_modalHeading__wnTmA", Be = "FormsTable-module_customAccordianItem__isszs", N = {
6
+ formsTableBody: Re,
7
+ modalHeading: ve,
8
+ customAccordianItem: Be
9
+ }, Ce = "startConsultation", Se = ({
10
10
  episodeOfCareUuids: E,
11
11
  encounterUuids: l,
12
12
  config: j,
@@ -19,27 +19,27 @@ const ve = "FormsTable-module_formsTableBody__SvGha", Ce = "FormsTable-module_mo
19
19
  forms: g
20
20
  } = j ?? {}, J = le(
21
21
  _e.EDIT_OBSERVATIONS
22
- ), { userPrivileges: h } = me(), T = J && !z && !!y, v = ue(
22
+ ), { userPrivileges: h } = me(), T = J && !z && !!y, R = ue(
23
23
  E,
24
24
  l
25
25
  ), W = Le(), {
26
- data: C = [],
27
- isLoading: R,
28
- isError: B,
26
+ data: v = [],
27
+ isLoading: B,
28
+ isError: C,
29
29
  error: P,
30
30
  refetch: Y
31
31
  } = A({
32
32
  queryKey: ["forms", m, E],
33
33
  queryFn: () => ce(m, void 0, Q),
34
- enabled: !!m && !v
34
+ enabled: !!m && !R
35
35
  }), F = i(() => {
36
- let e = C;
36
+ let e = v;
37
37
  return l && l.length > 0 && (e = e.filter(
38
38
  (r) => l.includes(r.encounterUuid)
39
39
  )), Array.isArray(g) && g.length > 0 && (e = e.filter(
40
40
  (r) => g.some((a) => a.toLowerCase() === r.formName.toLowerCase())
41
41
  )), e;
42
- }, [C, l, g]), { data: M = [] } = A({
42
+ }, [v, l, g]), { data: M = [] } = A({
43
43
  queryKey: ["observationForms"],
44
44
  queryFn: () => fe()
45
45
  }), U = d(
@@ -126,7 +126,7 @@ const ve = "FormsTable-module_formsTableBody__SvGha", Ce = "FormsTable-module_mo
126
126
  _(!1), L(null);
127
127
  }, []), I = d((e) => {
128
128
  globalThis.dispatchEvent(
129
- new CustomEvent(Be, {
129
+ new CustomEvent(Ce, {
130
130
  detail: {
131
131
  editOnly: "observationForms",
132
132
  editTitle: "EDIT_OBSERVATION_FORM_TITLE",
@@ -162,14 +162,14 @@ const ve = "FormsTable-module_formsTableBody__SvGha", Ce = "FormsTable-module_mo
162
162
  [k, I, u, o]
163
163
  );
164
164
  return /* @__PURE__ */ q(ne, { children: [
165
- /* @__PURE__ */ n("div", { id: "forms-table", "data-testid": "forms-table", children: R || B || S.length === 0 || v ? /* @__PURE__ */ n(
165
+ /* @__PURE__ */ n("div", { id: "forms-table", "data-testid": "forms-table", children: B || C || S.length === 0 || R ? /* @__PURE__ */ n(
166
166
  x,
167
167
  {
168
168
  headers: oe,
169
169
  ariaLabel: o("FORMS_HEADING"),
170
170
  rows: [],
171
- loading: R,
172
- errorStateMessage: B ? P?.message : void 0,
171
+ loading: B,
172
+ errorStateMessage: C ? P?.message : void 0,
173
173
  emptyStateMessage: o("FORMS_UNAVAILABLE"),
174
174
  renderCell: H,
175
175
  className: N.formsTableBody,
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-CWEFFQTS.js";
2
- import { bZ as d, b_ as f, b$ as e } from "./index-C-03mlGl.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-D3wFjpju.js";
2
+ import { bZ as d, b_ as f, b$ as e } from "./index-oWgjP_o2.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-CWEFFQTS.js";
2
- import { bZ as v, b_ as C, b$ as e } from "./index-C-03mlGl.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-D3wFjpju.js";
2
+ import { bZ as v, b_ as C, b$ as e } from "./index-oWgjP_o2.js";
3
3
  var h = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
1
  import { jsxs as I, jsx as o } from "react/jsx-runtime";
2
- import { d as Q, z as j, u as L, f as M, H as P, i as x, T as G, w as Y, P as J, U as W, F as X, j as Z, m as ee, $ as ae, n as se, o as F, B as te, Y as re, h as ie, p as ne, r as oe, t as de, v as le } from "./index-C-03mlGl.js";
2
+ import { d as Q, z as j, u as L, f as M, H as P, i as x, T as G, w as Y, P as J, U as W, F as X, j as Z, m as ee, $ as ae, n as se, o as F, B as te, Y as re, h as ie, p as ne, r as oe, t as de, v as le } from "./index-oWgjP_o2.js";
3
3
  import { useQueries as ue, useQuery as ce } from "@tanstack/react-query";
4
4
  import { useRef as pe, useEffect as D, useMemo as g } from "react";
5
5
  const me = "Observations-module_observations__RKSyo", be = "Observations-module_title__TJL3z", he = "Observations-module_wrapper__muk2L", ve = "Observations-module_secondary__14nuS", O = {
@@ -116,7 +116,7 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
116
116
  )
117
117
  }
118
118
  );
119
- }, Re = (s) => ["conceptUuid", s], Te = (s, l, n, d) => [
119
+ }, Re = (s) => ["conceptUuid", s], fe = (s, l, n, d) => [
120
120
  "observations",
121
121
  s,
122
122
  ...l,
@@ -151,12 +151,12 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
151
151
  l,
152
152
  n
153
153
  ), {
154
- data: T,
154
+ data: f,
155
155
  isLoading: w,
156
156
  isError: S,
157
157
  refetch: N
158
158
  } = ce({
159
- queryKey: Te(
159
+ queryKey: fe(
160
160
  i,
161
161
  h,
162
162
  n,
@@ -188,21 +188,21 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
188
188
  });
189
189
  }, [S]);
190
190
  const $ = g(() => {
191
- if (!T) return [];
192
- let a = J(T);
191
+ if (!f) return [];
192
+ let a = J(f);
193
193
  e === "latest-encounter" && (a = W(a));
194
194
  const y = X(a);
195
195
  return Z(y);
196
- }, [T, e]), k = [
196
+ }, [f, e]), k = [
197
197
  { key: "name", header: "name" },
198
198
  { key: "value", header: "value" },
199
199
  { key: "form", header: "form" }
200
- ], A = w || !v, B = S && v, q = (!T || T.entry?.length === 0 || h.length === 0) && v, C = B ? u("ERROR_FETCHING_OBSERVATIONS") : null, K = q ? u("NO_OBSERVATIONS_FOUND") : void 0, z = $.length > 0 && !A && !B, E = d.titleTranslationKey, f = E ? u(E) : "";
200
+ ], A = w || !v, B = S && v, q = (!f || f.entry?.length === 0 || h.length === 0) && v, C = B ? u("ERROR_FETCHING_OBSERVATIONS") : null, K = q ? u("NO_OBSERVATIONS_FOUND") : void 0, z = $.length > 0 && !A && !B, E = d.titleTranslationKey, T = E ? u(E) : "";
201
201
  return /* @__PURE__ */ I(
202
202
  "div",
203
203
  {
204
204
  id: "observations",
205
- "data-testid": E ? `observations-${f}` : "observations",
205
+ "data-testid": E ? `observations-${T}` : "observations",
206
206
  "aria-label": "observations-aria-label",
207
207
  className: O.observations,
208
208
  children: [
@@ -210,17 +210,17 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
210
210
  ee,
211
211
  {
212
212
  id: "observations-title",
213
- testId: E ? `observations-title-${f}` : "observations-title",
214
- title: f,
213
+ testId: E ? `observations-title-${T}` : "observations-title",
214
+ title: T,
215
215
  className: O.title,
216
- children: /* @__PURE__ */ o("p", { children: f })
216
+ children: /* @__PURE__ */ o("p", { children: T })
217
217
  }
218
218
  ),
219
219
  z ? /* @__PURE__ */ o(
220
220
  Oe,
221
221
  {
222
222
  groupedData: $,
223
- title: f,
223
+ title: T,
224
224
  hideThumbnail: r
225
225
  }
226
226
  ) : /* @__PURE__ */ o(
@@ -242,5 +242,5 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
242
242
  export {
243
243
  Re as conceptUuidQueryKeys,
244
244
  Ie as default,
245
- Te as observationsQueryKeys
245
+ fe as observationsQueryKeys
246
246
  };
@@ -1,4 +1,4 @@
1
- import { c0 as we, c1 as z, c2 as xt, c3 as B, b_ as q, b$ as y, c4 as Ro, c5 as ye, c6 as R, c7 as _, c8 as k, c9 as N, ca as A, cb as bs, cc as ir, cd as $e, ce as G, cf as Hn, cg as Vn, ch as dt, ci as D, cj as xs, ck as cn, cl as Be, cm as ws, cn as qt, co as zt, cp as $s, cq as Cs, cr as $n, cs as Ss, ct as Nr, cu as Bt, cv as zo, cw as ks, cx as Es, cy as j, cz as Gr, cA as Ms, cB as Ds, cC as sr, cD as As, cE as Ts, cF as zn, cG as Fs, cH as Is, cI as Z, cJ as Ps, cK as Ls } from "./index-C-03mlGl.js";
1
+ import { c0 as we, c1 as z, c2 as xt, c3 as B, b_ as q, b$ as y, c4 as Ro, c5 as ye, c6 as R, c7 as _, c8 as k, c9 as N, ca as A, cb as bs, cc as ir, cd as $e, ce as G, cf as Hn, cg as Vn, ch as dt, ci as D, cj as xs, ck as cn, cl as Be, cm as ws, cn as qt, co as zt, cp as $s, cq as Cs, cr as $n, cs as Ss, ct as Nr, cu as Bt, cv as zo, cw as ks, cx as Es, cy as j, cz as Gr, cA as Ms, cB as Ds, cC as sr, cD as As, cE as Ts, cF as zn, cG as Fs, cH as Is, cI as Z, cJ as Ps, cK as Ls } from "./index-oWgjP_o2.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -1,4 +1,4 @@
1
- import { bX as i, bY as o } from "./index-C-03mlGl.js";
1
+ import { bX as i, bY as o } from "./index-oWgjP_o2.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "@tanstack/react-query";
@@ -1,5 +1,5 @@
1
1
  import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
- import { u as r, cL as l, cM as o, cN as c, ba as m, bb as g, cO as h, cP as p, cQ as b, aI as u } from "./index-C-03mlGl.js";
2
+ import { u as r, cL as l, cM as o, cN as c, ba as m, bb as g, cO as h, cP as p, cQ as b, aI as u } from "./index-oWgjP_o2.js";
3
3
  import { Suspense as _ } from "react";
4
4
  import "@tanstack/react-query";
5
5
  const E = "index-module_loading__eyE2k", $ = "index-module_message__95HmH", y = "index-module_panel__8VJh2", s = {
@@ -1,11 +1,11 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { u as g, k as u, bK as b, bU as f, bV as x, bW as p, aI as _, bQ as N } from "./index-C-03mlGl.js";
2
+ import { u as g, k as u, bK as b, bU as f, bV as x, bW as p, aI as _, bQ as N } from "./index-oWgjP_o2.js";
3
3
  import { lazy as h, useMemo as t, Suspense as E } from "react";
4
4
  import "@tanstack/react-query";
5
- import { u as C } from "./hook-BlCA0Nsj.js";
5
+ import { u as C } from "./hook-5YN_fGC_.js";
6
6
  const L = {
7
7
  "org.bahmni.clinical.v2.search": h(
8
- () => import("./index-DBjlqkrQ.js")
8
+ () => import("./index-CjTXJaEx.js")
9
9
  )
10
10
  }, v = "index-module_page__16xxw", I = "index-module_loading__wNI-4", P = "index-module_message__Ib5Iw", l = {
11
11
  page: v,
@@ -69979,7 +69979,7 @@ function ot0(t) {
69979
69979
  }
69980
69980
  })), r.current;
69981
69981
  }
69982
- const at0 = "_dataTableBody_145ic_1", lt0 = "_skeleton_145ic_65", ct0 = "_statePlaceholder_145ic_70", it0 = "_emptyStateCell_145ic_81", st0 = "_pagination_145ic_92", dt0 = "_setPagination_145ic_97", ut0 = "_setNavButton_145ic_107", ht0 = "_setPaginationPages_145ic_119", pt0 = "_setPaginationPage_145ic_119", ft0 = "_setPaginationPageActive_145ic_149", mt0 = "_filterRow_145ic_158", wt0 = "_filterCell_145ic_162", gt0 = "_filterPlaceholderCell_145ic_167", vt0 = "_groupRow_145ic_172", Et0 = "_groupCell_145ic_176", Mt0 = "_groupToggle_145ic_180", yt0 = "_groupCount_145ic_194", Vt0 = "_groupByDropdown_145ic_199", zt0 = "_actionButtons_145ic_204", Ht0 = "_visuallyHidden_145ic_209", bt0 = "_selectFilter_145ic_221", xt0 = "_dateRangeFilter_145ic_225", s0 = {
69982
+ const at0 = "_dataTableBody_11n0o_1", lt0 = "_skeleton_11n0o_72", ct0 = "_statePlaceholder_11n0o_77", it0 = "_emptyStateCell_11n0o_88", st0 = "_pagination_11n0o_99", dt0 = "_setPagination_11n0o_104", ut0 = "_setNavButton_11n0o_114", ht0 = "_setPaginationPages_11n0o_126", pt0 = "_setPaginationPage_11n0o_126", ft0 = "_setPaginationPageActive_11n0o_156", mt0 = "_filterRow_11n0o_165", wt0 = "_filterCell_11n0o_169", gt0 = "_filterPlaceholderCell_11n0o_174", vt0 = "_groupRow_11n0o_179", Et0 = "_groupCell_11n0o_183", Mt0 = "_groupToggle_11n0o_187", yt0 = "_groupCount_11n0o_201", Vt0 = "_groupByDropdown_11n0o_206", zt0 = "_actionButtons_11n0o_211", Ht0 = "_visuallyHidden_11n0o_216", bt0 = "_selectFilter_11n0o_228", xt0 = "_dateRangeFilter_11n0o_232", s0 = {
69983
69983
  dataTableBody: at0,
69984
69984
  skeleton: lt0,
69985
69985
  statePlaceholder: ct0,
@@ -70469,12 +70469,13 @@ const L9 = ({
70469
70469
  startPage: n = 1,
70470
70470
  hasNext: a,
70471
70471
  hasPrevious: l,
70472
- onSetChange: c,
70473
- previousLabel: i = "Previous set",
70474
- nextLabel: s = "Next set"
70475
- } = e, d = t.getPageCount();
70476
- if (d <= 1 && !l && !a) return null;
70477
- const u = n + t.getState().pagination.pageIndex;
70472
+ disabled: c = !1,
70473
+ onSetChange: i,
70474
+ previousLabel: s = "Previous set",
70475
+ nextLabel: d = "Next set"
70476
+ } = e, u = t.getPageCount();
70477
+ if (u <= 1 && !l && !a) return null;
70478
+ const h = n + t.getState().pagination.pageIndex;
70478
70479
  return /* @__PURE__ */ Le(
70479
70480
  "nav",
70480
70481
  {
@@ -70488,29 +70489,30 @@ const L9 = ({
70488
70489
  kind: "ghost",
70489
70490
  size: "sm",
70490
70491
  className: s0.setNavButton,
70491
- onClick: () => c("prev", t),
70492
+ onClick: () => i("prev", t),
70493
+ disabled: c,
70492
70494
  testId: `${r}-previous-set`,
70493
70495
  children: [
70494
70496
  /* @__PURE__ */ F(Yd, {}),
70495
- i
70497
+ s
70496
70498
  ]
70497
70499
  }
70498
70500
  ),
70499
- /* @__PURE__ */ F("ul", { className: s0.setPaginationPages, children: Array.from({ length: d }, (h, p) => {
70500
- const f = n + p, E = f === u;
70501
+ /* @__PURE__ */ F("ul", { className: s0.setPaginationPages, children: Array.from({ length: u }, (p, f) => {
70502
+ const E = n + f, w = E === h;
70501
70503
  return /* @__PURE__ */ F("li", { children: /* @__PURE__ */ F(
70502
70504
  "button",
70503
70505
  {
70504
70506
  type: "button",
70505
70507
  className: _e(s0.setPaginationPage, {
70506
- [s0.setPaginationPageActive]: E
70508
+ [s0.setPaginationPageActive]: w
70507
70509
  }),
70508
- "aria-current": E ? "page" : void 0,
70509
- onClick: () => t.setPageIndex(p),
70510
- "data-testid": `${r}-page-${f}`,
70511
- children: f
70510
+ "aria-current": w ? "page" : void 0,
70511
+ onClick: () => t.setPageIndex(f),
70512
+ "data-testid": `${r}-page-${E}`,
70513
+ children: E
70512
70514
  }
70513
- ) }, f);
70515
+ ) }, E);
70514
70516
  }) }),
70515
70517
  a && /* @__PURE__ */ Le(
70516
70518
  sr,
@@ -70518,10 +70520,11 @@ const L9 = ({
70518
70520
  kind: "ghost",
70519
70521
  size: "sm",
70520
70522
  className: s0.setNavButton,
70521
- onClick: () => c("next", t),
70523
+ onClick: () => i("next", t),
70524
+ disabled: c,
70522
70525
  testId: `${r}-next-set`,
70523
70526
  children: [
70524
- s,
70527
+ d,
70525
70528
  /* @__PURE__ */ F(Jd, {})
70526
70529
  ]
70527
70530
  }
@@ -115655,7 +115658,7 @@ const gL0 = [
115655
115658
  },
115656
115659
  {
115657
115660
  type: "patientDocuments",
115658
- component: B0(() => import("./DocumentsTable-BQixFMr5-C4_iApAO.js"))
115661
+ component: B0(() => import("./DocumentsTable-CBaZduLC-DvuC7XfT.js"))
115659
115662
  },
115660
115663
  {
115661
115664
  type: "flowSheet",
@@ -115663,7 +115666,7 @@ const gL0 = [
115663
115666
  },
115664
115667
  {
115665
115668
  type: "forms",
115666
- component: B0(() => import("./FormsTable-BHzxx42h-Wyx6XBFG.js"))
115669
+ component: B0(() => import("./FormsTable-BYeW3DRV-CfCum4hw.js"))
115667
115670
  },
115668
115671
  {
115669
115672
  type: "labOrders",
@@ -115671,7 +115674,7 @@ const gL0 = [
115671
115674
  },
115672
115675
  {
115673
115676
  type: "observations",
115674
- component: B0(() => import("./Observations-DzFwc3dW-CZDTwBaQ.js"))
115677
+ component: B0(() => import("./Observations-Brw1YHvF-a_cjjPlH.js"))
115675
115678
  },
115676
115679
  {
115677
115680
  type: "ordersControl",
@@ -205420,7 +205423,7 @@ function KUt(t) {
205420
205423
  }
205421
205424
  })), r.current;
205422
205425
  }
205423
- const GUt = "_dataTableBody_145ic_1", YUt = "_skeleton_145ic_65", JUt = "_statePlaceholder_145ic_70", XUt = "_emptyStateCell_145ic_81", QUt = "_pagination_145ic_92", eqt = "_setPagination_145ic_97", tqt = "_setNavButton_145ic_107", rqt = "_setPaginationPages_145ic_119", nqt = "_setPaginationPage_145ic_119", oqt = "_setPaginationPageActive_145ic_149", aqt = "_filterRow_145ic_158", lqt = "_filterCell_145ic_162", cqt = "_filterPlaceholderCell_145ic_167", iqt = "_groupRow_145ic_172", sqt = "_groupCell_145ic_176", dqt = "_groupToggle_145ic_180", uqt = "_groupCount_145ic_194", hqt = "_groupByDropdown_145ic_199", pqt = "_actionButtons_145ic_204", fqt = "_visuallyHidden_145ic_209", mqt = "_selectFilter_145ic_221", wqt = "_dateRangeFilter_145ic_225", d0 = {
205426
+ const GUt = "_dataTableBody_11n0o_1", YUt = "_skeleton_11n0o_72", JUt = "_statePlaceholder_11n0o_77", XUt = "_emptyStateCell_11n0o_88", QUt = "_pagination_11n0o_99", eqt = "_setPagination_11n0o_104", tqt = "_setNavButton_11n0o_114", rqt = "_setPaginationPages_11n0o_126", nqt = "_setPaginationPage_11n0o_126", oqt = "_setPaginationPageActive_11n0o_156", aqt = "_filterRow_11n0o_165", lqt = "_filterCell_11n0o_169", cqt = "_filterPlaceholderCell_11n0o_174", iqt = "_groupRow_11n0o_179", sqt = "_groupCell_11n0o_183", dqt = "_groupToggle_11n0o_187", uqt = "_groupCount_11n0o_201", hqt = "_groupByDropdown_11n0o_206", pqt = "_actionButtons_11n0o_211", fqt = "_visuallyHidden_11n0o_216", mqt = "_selectFilter_11n0o_228", wqt = "_dateRangeFilter_11n0o_232", d0 = {
205424
205427
  dataTableBody: GUt,
205425
205428
  skeleton: YUt,
205426
205429
  statePlaceholder: JUt,
@@ -205910,12 +205913,13 @@ const fp2 = ({
205910
205913
  startPage: n = 1,
205911
205914
  hasNext: a,
205912
205915
  hasPrevious: l,
205913
- onSetChange: c,
205914
- previousLabel: i = "Previous set",
205915
- nextLabel: s = "Next set"
205916
- } = e, d = t.getPageCount();
205917
- if (d <= 1 && !l && !a) return null;
205918
- const u = n + t.getState().pagination.pageIndex;
205916
+ disabled: c = !1,
205917
+ onSetChange: i,
205918
+ previousLabel: s = "Previous set",
205919
+ nextLabel: d = "Next set"
205920
+ } = e, u = t.getPageCount();
205921
+ if (u <= 1 && !l && !a) return null;
205922
+ const h = n + t.getState().pagination.pageIndex;
205919
205923
  return /* @__PURE__ */ Le(
205920
205924
  "nav",
205921
205925
  {
@@ -205929,29 +205933,30 @@ const fp2 = ({
205929
205933
  kind: "ghost",
205930
205934
  size: "sm",
205931
205935
  className: d0.setNavButton,
205932
- onClick: () => c("prev", t),
205936
+ onClick: () => i("prev", t),
205937
+ disabled: c,
205933
205938
  testId: `${r}-previous-set`,
205934
205939
  children: [
205935
205940
  /* @__PURE__ */ F(Lh, {}),
205936
- i
205941
+ s
205937
205942
  ]
205938
205943
  }
205939
205944
  ),
205940
- /* @__PURE__ */ F("ul", { className: d0.setPaginationPages, children: Array.from({ length: d }, (h, p) => {
205941
- const f = n + p, E = f === u;
205945
+ /* @__PURE__ */ F("ul", { className: d0.setPaginationPages, children: Array.from({ length: u }, (p, f) => {
205946
+ const E = n + f, w = E === h;
205942
205947
  return /* @__PURE__ */ F("li", { children: /* @__PURE__ */ F(
205943
205948
  "button",
205944
205949
  {
205945
205950
  type: "button",
205946
205951
  className: Ae(d0.setPaginationPage, {
205947
- [d0.setPaginationPageActive]: E
205952
+ [d0.setPaginationPageActive]: w
205948
205953
  }),
205949
- "aria-current": E ? "page" : void 0,
205950
- onClick: () => t.setPageIndex(p),
205951
- "data-testid": `${r}-page-${f}`,
205952
- children: f
205954
+ "aria-current": w ? "page" : void 0,
205955
+ onClick: () => t.setPageIndex(f),
205956
+ "data-testid": `${r}-page-${E}`,
205957
+ children: E
205953
205958
  }
205954
- ) }, f);
205959
+ ) }, E);
205955
205960
  }) }),
205956
205961
  a && /* @__PURE__ */ Le(
205957
205962
  Cs,
@@ -205959,10 +205964,11 @@ const fp2 = ({
205959
205964
  kind: "ghost",
205960
205965
  size: "sm",
205961
205966
  className: d0.setNavButton,
205962
- onClick: () => c("next", t),
205967
+ onClick: () => i("next", t),
205968
+ disabled: c,
205963
205969
  testId: `${r}-next-set`,
205964
205970
  children: [
205965
- s,
205971
+ d,
205966
205972
  /* @__PURE__ */ F(_h, {})
205967
205973
  ]
205968
205974
  }
@@ -211775,7 +211781,7 @@ var a1r = (t, e = !1) => {
211775
211781
  const e = Jp2(() => {
211776
211782
  const r = this, [n] = this.#n, [a] = this.#o, [l] = this.#a, [c] = this.#l, [i] = this.#p, [s] = this.#e;
211777
211783
  let d;
211778
- return this.#c ? d = this.#c : (d = Gp2(() => import("./LNWAZHJI-BV4-VQtd.js")), this.#c = d), wf2(this.#h, this.#r), Wp2(d, Kp2({
211784
+ return this.#c ? d = this.#c : (d = Gp2(() => import("./LNWAZHJI-pY0_FhNO.js")), this.#c = d), wf2(this.#h, this.#r), Wp2(d, Kp2({
211779
211785
  get queryFlavor() {
211780
211786
  return r.#d;
211781
211787
  },
@@ -211873,7 +211879,7 @@ var a1r = (t, e = !1) => {
211873
211879
  const e = Jp2(() => {
211874
211880
  const r = this, [n] = this.#n, [a] = this.#o, [l] = this.#a, [c] = this.#l, [i] = this.#p, [s] = this.#e, [d] = this.#c;
211875
211881
  let u;
211876
- return this.#i ? u = this.#i : (u = Gp2(() => import("./MWZ6AO7Z-BRIhbEPV.js")), this.#i = u), wf2(this.#h, this.#r), Wp2(u, Kp2({
211882
+ return this.#i ? u = this.#i : (u = Gp2(() => import("./MWZ6AO7Z-DUAXx-Zf.js")), this.#i = u), wf2(this.#h, this.#r), Wp2(u, Kp2({
211877
211883
  get queryFlavor() {
211878
211884
  return r.#d;
211879
211885
  },
@@ -212029,7 +212035,7 @@ const NJt = {
212029
212035
  id: "clinical-config",
212030
212036
  name: "Clinical Config",
212031
212037
  displayName: "ClinicalConfigProvider"
212032
- }), BJt = B0(() => import("./ConsultationPage-nX4qfFc2.js")), PJt = B0(() => import("./index-CW2KLTDM.js")), FJt = [
212038
+ }), BJt = B0(() => import("./ConsultationPage-B57YOvYW.js")), PJt = B0(() => import("./index-DuBrxkQU.js")), FJt = [
212033
212039
  {
212034
212040
  path: ":patientUuid",
212035
212041
  component: BJt