@bahmni/clinical-app 0.0.1-dev.362 → 0.0.1-dev.363

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,37 +1,36 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { bD as m, u, J as p, bA as f, bK as b, aG as _, bG as x } from "./index-DVofVra1.js";
3
- import { lazy as N, useMemo as r, Suspense as h } from "react";
2
+ import { bD as m, u, J as p, bA as f, bK as x, aG as _, bG as b } from "./index-DQ3rDVjy.js";
3
+ import { lazy as h, useMemo as l, Suspense as E } from "react";
4
4
  import "@tanstack/react-query";
5
- import { u as E } from "./hook-BoQL42hZ.js";
6
- const P = (s) => {
7
- const i = /* @__PURE__ */ new Map();
8
- for (const e of s) {
9
- const o = i.get(e.extensionPointId) ?? [];
10
- o.push(e), i.set(e.extensionPointId, o);
5
+ import { u as N } from "./hook-Co0J9NE_.js";
6
+ const P = (i) => {
7
+ const s = /* @__PURE__ */ new Map();
8
+ for (const e of i) {
9
+ const o = s.get(e.extensionPointId) ?? [];
10
+ o.push(e), s.set(e.extensionPointId, o);
11
11
  }
12
- return i;
13
- }, v = (s, i) => s.filter(
14
- (e) => !e.requiredPrivileges || e.requiredPrivileges.length === 0 || m(i, e.requiredPrivileges)
12
+ return s;
13
+ }, v = (i, s) => i.filter(
14
+ (e) => !e.requiredPrivileges || e.requiredPrivileges.length === 0 || m(s, e.requiredPrivileges)
15
15
  ), C = {
16
- "org.bahmni.clinical.v2.search": N(
17
- () => import("./index-8hfTiSbB.js")
16
+ "org.bahmni.clinical.v2.search": h(
17
+ () => import("./index-2_vXyzzs.js")
18
18
  )
19
- }, L = "index-module_page__16xxw", I = "index-module_loading__wNI-4", y = "index-module_tabs__ZZv8Y", H = "index-module_message__Ib5Iw", l = {
19
+ }, L = "index-module_page__16xxw", I = "index-module_loading__wNI-4", y = "index-module_message__Ib5Iw", r = {
20
20
  page: L,
21
21
  loading: I,
22
- tabs: y,
23
- message: H
24
- }, D = () => {
25
- const { t: s } = u(), { clinicalConfig: i } = E(), { userPrivileges: e } = p(), o = r(
22
+ message: y
23
+ }, w = () => {
24
+ const { t: i } = u(), { clinicalConfig: s } = N(), { userPrivileges: e } = p(), o = l(
26
25
  () => [
27
- { id: "home", label: s("HOME_LABEL"), href: f },
28
- { id: "clinical", label: s("CLINICAL_LABEL"), isCurrentPage: !0 }
26
+ { id: "home", label: i("HOME_LABEL"), href: f },
27
+ { id: "clinical", label: i("CLINICAL_LABEL"), isCurrentPage: !0 }
29
28
  ],
30
- [s]
31
- ), c = r(
32
- () => P(i?.extensions ?? []),
33
29
  [i]
34
- ), d = r(
30
+ ), c = l(
31
+ () => P(s?.extensions ?? []),
32
+ [s]
33
+ ), d = l(
35
34
  () => Array.from(c.entries()).map(([n, a]) => ({
36
35
  pointId: n,
37
36
  Handler: C[n],
@@ -40,30 +39,29 @@ const P = (s) => {
40
39
  [c, e]
41
40
  );
42
41
  return /* @__PURE__ */ t(
43
- b,
42
+ x,
44
43
  {
45
- header: /* @__PURE__ */ t(x, { breadcrumbItems: o }),
44
+ header: /* @__PURE__ */ t(b, { breadcrumbItems: o }),
46
45
  main: /* @__PURE__ */ t(
47
46
  "div",
48
47
  {
49
48
  id: "clinical-list-page",
50
49
  "data-testid": "clinical-list-page-test-id",
51
50
  "aria-label": "Clinical List Page",
52
- className: l.page,
51
+ className: r.page,
53
52
  children: d.length > 0 ? d.map(({ pointId: n, Handler: a, filtered: g }) => /* @__PURE__ */ t(
54
53
  "div",
55
54
  {
56
55
  id: n,
57
56
  "data-testid": `${n}-test-id`,
58
- className: l.tabs,
59
57
  children: /* @__PURE__ */ t(
60
- h,
58
+ E,
61
59
  {
62
60
  fallback: /* @__PURE__ */ t(
63
61
  _,
64
62
  {
65
63
  type: "multi",
66
- className: l.loading
64
+ className: r.loading
67
65
  }
68
66
  ),
69
67
  children: /* @__PURE__ */ t(a, { extensions: g })
@@ -77,8 +75,8 @@ const P = (s) => {
77
75
  id: "no-extensions-configured",
78
76
  "data-testid": "no-extensions-configured-test-id",
79
77
  "aria-label": "No extensions configured",
80
- className: l.message,
81
- children: s("NO_EXTENSIONS_CONFIGURED")
78
+ className: r.message,
79
+ children: i("NO_EXTENSIONS_CONFIGURED")
82
80
  }
83
81
  )
84
82
  }
@@ -87,5 +85,5 @@ const P = (s) => {
87
85
  );
88
86
  };
89
87
  export {
90
- D as default
88
+ w as default
91
89
  };