@bahmni/clinical-app 0.0.1-dev.339 → 0.0.1-dev.341

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,12 +1,12 @@
1
- import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
- import { u as r, ct as o, cu as l, cv as c, b4 as m, b5 as g, cw as h, cx as b, cy as u, aF as p } from "./index-CY5LDnxk.js";
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
+ import { u as r, cu as o, cv as l, cw as c, b4 as m, b5 as g, cx as h, cy as b, cz as u, aF as p } from "./index-BlRHR230.js";
3
3
  import { Suspense as $ } from "react";
4
- const _ = "index-module_loading__FAL7n", E = "index-module_message__KjCnF", t = {
4
+ const _ = "index-module_loading__FAL7n", E = "index-module_message__KjCnF", d = {
5
5
  loading: _,
6
6
  message: E
7
- }, I = ({ extensions: i }) => {
7
+ }, f = ({ extensions: i }) => {
8
8
  const { t: s } = r();
9
- return i.length === 0 ? null : /* @__PURE__ */ d(o, { children: [
9
+ return i.length === 0 ? null : /* @__PURE__ */ t(o, { children: [
10
10
  /* @__PURE__ */ e(
11
11
  l,
12
12
  {
@@ -52,7 +52,7 @@ const _ = "index-module_loading__FAL7n", E = "index-module_message__KjCnF", t =
52
52
  p,
53
53
  {
54
54
  type: "multi",
55
- className: t.loading
55
+ className: d.loading
56
56
  }
57
57
  ),
58
58
  children: /* @__PURE__ */ e(n, { extensionParams: a.extensionParams })
@@ -63,7 +63,7 @@ const _ = "index-module_loading__FAL7n", E = "index-module_message__KjCnF", t =
63
63
  id: "extension-widget-not-registered",
64
64
  "data-testid": "extension-widget-not-registered-test-id",
65
65
  "aria-label": "Extension widget not registered",
66
- className: t.message,
66
+ className: d.message,
67
67
  children: s("EXTENSION_WIDGET_NOT_REGISTERED")
68
68
  }
69
69
  )
@@ -74,5 +74,5 @@ const _ = "index-module_loading__FAL7n", E = "index-module_message__KjCnF", t =
74
74
  ] });
75
75
  };
76
76
  export {
77
- I as default
77
+ f as default
78
78
  };
@@ -1,60 +1,60 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { by as m, u, aM as b, bv as f, bE as p, aF as _, bB as x } from "./index-CY5LDnxk.js";
2
+ import { by as m, u, aM as f, bv as p, bF as b, aF as _, bB as x } from "./index-BlRHR230.js";
3
3
  import { lazy as N, useMemo as r, Suspense as h } from "react";
4
- import { u as E } from "./hook-DEiGaCdw.js";
5
- const v = (s) => {
4
+ import { u as E } from "./hook-CEX1xw06.js";
5
+ const P = (s) => {
6
6
  const i = /* @__PURE__ */ new Map();
7
7
  for (const e of s) {
8
- const l = i.get(e.extensionPointId) ?? [];
9
- l.push(e), i.set(e.extensionPointId, l);
8
+ const o = i.get(e.extensionPointId) ?? [];
9
+ o.push(e), i.set(e.extensionPointId, o);
10
10
  }
11
11
  return i;
12
- }, P = (s, i) => s.filter(
12
+ }, v = (s, i) => s.filter(
13
13
  (e) => !e.requiredPrivileges || e.requiredPrivileges.length === 0 || m(i, e.requiredPrivileges)
14
14
  ), C = {
15
15
  "org.bahmni.clinical.v2.search": N(
16
- () => import("./index-CB8k8eHO.js")
16
+ () => import("./index-CAbD6V_D.js")
17
17
  )
18
- }, L = "index-module_page__16xxw", y = "index-module_loading__wNI-4", I = "index-module_tabs__ZZv8Y", B = "index-module_message__Ib5Iw", o = {
18
+ }, L = "index-module_page__16xxw", y = "index-module_loading__wNI-4", I = "index-module_tabs__ZZv8Y", w = "index-module_message__Ib5Iw", l = {
19
19
  page: L,
20
20
  loading: y,
21
21
  tabs: I,
22
- message: B
22
+ message: w
23
23
  }, S = () => {
24
- const { t: s } = u(), { clinicalConfig: i } = E(), { userPrivileges: e } = b(), l = r(
24
+ const { t: s } = u(), { clinicalConfig: i } = E(), { userPrivileges: e } = f(), o = r(
25
25
  () => [
26
- { id: "home", label: s("HOME_LABEL"), href: f },
26
+ { id: "home", label: s("HOME_LABEL"), href: p },
27
27
  { id: "clinical", label: s("CLINICAL_LABEL"), isCurrentPage: !0 }
28
28
  ],
29
29
  [s]
30
30
  ), c = r(
31
- () => v(i?.extensions ?? []),
31
+ () => P(i?.extensions ?? []),
32
32
  [i]
33
33
  ), d = r(
34
34
  () => Array.from(c.entries()).map(([n, t]) => ({
35
35
  pointId: n,
36
36
  Handler: C[n],
37
- filtered: P(t, e)
37
+ filtered: v(t, e)
38
38
  })).filter(({ Handler: n, filtered: t }) => !!n && t.length > 0),
39
39
  [c, e]
40
40
  );
41
41
  return /* @__PURE__ */ a(
42
- p,
42
+ b,
43
43
  {
44
- header: /* @__PURE__ */ a(x, { breadcrumbItems: l }),
44
+ header: /* @__PURE__ */ a(x, { breadcrumbItems: o }),
45
45
  main: /* @__PURE__ */ a(
46
46
  "div",
47
47
  {
48
48
  id: "clinical-list-page",
49
49
  "data-testid": "clinical-list-page-test-id",
50
50
  "aria-label": "Clinical List Page",
51
- className: o.page,
51
+ className: l.page,
52
52
  children: d.length > 0 ? d.map(({ pointId: n, Handler: t, filtered: g }) => /* @__PURE__ */ a(
53
53
  "div",
54
54
  {
55
55
  id: n,
56
56
  "data-testid": `${n}-test-id`,
57
- className: o.tabs,
57
+ className: l.tabs,
58
58
  children: /* @__PURE__ */ a(
59
59
  h,
60
60
  {
@@ -62,7 +62,7 @@ const v = (s) => {
62
62
  _,
63
63
  {
64
64
  type: "multi",
65
- className: o.loading
65
+ className: l.loading
66
66
  }
67
67
  ),
68
68
  children: /* @__PURE__ */ a(t, { extensions: g })
@@ -76,7 +76,7 @@ const v = (s) => {
76
76
  id: "no-extensions-configured",
77
77
  "data-testid": "no-extensions-configured-test-id",
78
78
  "aria-label": "No extensions configured",
79
- className: o.message,
79
+ className: l.message,
80
80
  children: s("NO_EXTENSIONS_CONFIGURED")
81
81
  }
82
82
  )