@bahmni/reports-app 0.0.1-dev.445 → 0.0.1-dev.447

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,14 +1,14 @@
1
- import { jsxs as S, jsx as n } from "react/jsx-runtime";
2
- import { d as H, z as M, u as V, r as j, H as x, o as G, n as X, w as J, f as P, g as Y, m as Z, j as W, l as ee, $ as ae, p as se, s as B, t as re, v as te, h as ie, A as oe, X as ne, B as de, Q as le } from "./index-BJ2mligI.js";
1
+ import { jsxs as I, jsx as n } from "react/jsx-runtime";
2
+ import { d as H, z as Q, u as V, q as x, H as M, K as j, G as Y, w as J, l as P, n as W, o as X, s as Z, p as ee, I as ae, r as se, _ as B, t as te, v as re, h as ie, x as oe, B as ne, C as de, D as le } from "./index-CRUk3_DP.js";
3
3
  import { useQueries as ue, useQuery as ce } from "@tanstack/react-query";
4
- import { useRef as pe, useEffect as L, useMemo as E } from "react";
5
- const me = "Observations-module_observations__RKSyo", be = "Observations-module_title__TJL3z", he = "Observations-module_wrapper__muk2L", ve = "Observations-module_secondary__14nuS", f = {
4
+ import { useRef as pe, useEffect as L, useMemo as g } from "react";
5
+ const me = "Observations-module_observations__RKSyo", be = "Observations-module_title__TJL3z", he = "Observations-module_wrapper__muk2L", ve = "Observations-module_secondary__14nuS", O = {
6
6
  observations: me,
7
7
  title: be,
8
8
  wrapper: he,
9
9
  secondary: ve
10
- }, w = (s, l, o, d, c, r) => {
11
- const t = re(s, l, c), e = t.value, p = te(e);
10
+ }, F = (s, l, o, d, c, t) => {
11
+ const r = te(s, l, c), e = r.value, p = re(e);
12
12
  let i = e;
13
13
  p === "Image" && (i = /* @__PURE__ */ n(
14
14
  ne,
@@ -16,71 +16,71 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
16
16
  imageSrc: e,
17
17
  alt: e,
18
18
  id: `${e}-img`,
19
- hideThumbnail: r
19
+ hideThumbnail: t
20
20
  }
21
21
  )), p === "Video" && (i = /* @__PURE__ */ n(
22
22
  de,
23
23
  {
24
24
  id: `${e}-video`,
25
25
  videoSrc: e,
26
- hideThumbnail: r
26
+ hideThumbnail: t
27
27
  }
28
28
  )), p === "PDF" && (i = /* @__PURE__ */ n(le, { id: `${e}-pdf`, src: e }));
29
- const m = /* @__PURE__ */ S("div", { className: f.wrapper, children: [
30
- /* @__PURE__ */ n("span", { children: t.header.display }),
31
- t.header.referenceRange && /* @__PURE__ */ n("span", { className: f.secondary, children: t.header.referenceRange })
29
+ const m = /* @__PURE__ */ I("div", { className: O.wrapper, children: [
30
+ /* @__PURE__ */ n("span", { children: r.header.display }),
31
+ r.header.referenceRange && /* @__PURE__ */ n("span", { className: O.secondary, children: r.header.referenceRange })
32
32
  ] }), u = c("OBSERVATIONS_RECORDED_BY", {
33
- provider: t.provider
34
- }), b = s.effectiveDateTime ? ie(s.effectiveDateTime, c, !0).formattedResult : void 0, g = /* @__PURE__ */ S("div", { className: f.wrapper, children: [
33
+ provider: r.provider
34
+ }), b = s.effectiveDateTime ? ie(s.effectiveDateTime, c, !0).formattedResult : void 0, T = /* @__PURE__ */ I("div", { className: O.wrapper, children: [
35
35
  /* @__PURE__ */ n("span", { children: u }),
36
- b && /* @__PURE__ */ n("span", { className: f.secondary, children: b })
37
- ] }), h = s.display, v = s.observationValue?.isAbnormal ? "abnormal-obs" : "obs", O = d ? `${d}-${v}-${h}-${o}-${l}` : `${v}-${h}-${o}-${l}`;
36
+ b && /* @__PURE__ */ n("span", { className: O.secondary, children: b })
37
+ ] }), h = s.display, v = s.observationValue?.isAbnormal ? "abnormal-obs" : "obs", _ = d ? `${d}-${v}-${h}-${o}-${l}` : `${v}-${h}-${o}-${l}`;
38
38
  return /* @__PURE__ */ n(
39
39
  oe,
40
40
  {
41
41
  header: m,
42
42
  value: i,
43
- info: g,
44
- id: O,
45
- testId: O,
46
- ariaLabel: O
43
+ info: T,
44
+ id: _,
45
+ testId: _,
46
+ ariaLabel: _
47
47
  },
48
48
  `obs-${s.id}`
49
49
  );
50
- }, ye = (s, l, o, d, c, r, t) => /* @__PURE__ */ n(
50
+ }, ye = (s, l, o, d, c, t, r) => /* @__PURE__ */ n(
51
51
  B,
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, p) => w(
57
+ (e, p) => F(
58
58
  e,
59
59
  p,
60
60
  c,
61
- r,
61
+ t,
62
62
  l,
63
- t
63
+ r
64
64
  )
65
65
  )
66
66
  },
67
67
  `grouped-obs-${s.id}`
68
- ), fe = ({
68
+ ), Oe = ({
69
69
  groupedData: s,
70
70
  title: l = "",
71
71
  hideThumbnail: o
72
72
  }) => {
73
- const { t: d } = V(), c = (r, t, e) => {
74
- const p = se(r.encounterDetails, d);
75
- return /* @__PURE__ */ S(
73
+ const { t: d } = V(), c = (t, r, e) => {
74
+ const p = se(t.encounterDetails, d);
75
+ return /* @__PURE__ */ I(
76
76
  B,
77
77
  {
78
78
  title: p,
79
- id: `encounter-${r.encounterId}`,
80
- open: t,
79
+ id: `encounter-${t.encounterId}`,
80
+ open: r,
81
81
  children: [
82
- r.observations.map(
83
- (i, m) => w(
82
+ t.observations.map(
83
+ (i, m) => F(
84
84
  i,
85
85
  m,
86
86
  e,
@@ -89,11 +89,11 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
89
89
  o
90
90
  )
91
91
  ),
92
- r.groupedObservations.map(
92
+ t.groupedObservations.map(
93
93
  (i, m) => ye(
94
94
  i,
95
95
  d,
96
- t,
96
+ r,
97
97
  m,
98
98
  e,
99
99
  l,
@@ -102,7 +102,7 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
102
102
  )
103
103
  ]
104
104
  },
105
- `encounter-${r.encounterId}`
105
+ `encounter-${t.encounterId}`
106
106
  );
107
107
  };
108
108
  return /* @__PURE__ */ n(
@@ -112,30 +112,30 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
112
112
  "data-testid": "obs-by-encounter-test-id",
113
113
  "aria-label": "obs-by-encounter-aria-label",
114
114
  children: s.map(
115
- (r, t) => c(r, t === 0, t)
115
+ (t, r) => c(t, r === 0, r)
116
116
  )
117
117
  }
118
118
  );
119
- }, Oe = (s) => ["conceptUuid", s], Re = (s, l, o, d) => [
119
+ }, _e = (s) => ["conceptUuid", s], Re = (s, l, o, d) => [
120
120
  "observations",
121
121
  s,
122
122
  ...l,
123
123
  o,
124
124
  d
125
- ], Se = ({
125
+ ], Ie = ({
126
126
  config: s,
127
127
  episodeOfCareUuids: l,
128
128
  encounterUuids: o
129
129
  }) => {
130
130
  const d = s, {
131
131
  conceptNames: c = [],
132
- conceptUuid: r = [],
133
- hideThumbnail: t = !1,
132
+ conceptUuid: t = [],
133
+ hideThumbnail: r = !1,
134
134
  scope: e = "all"
135
- } = d, p = pe(/* @__PURE__ */ new Set()), i = H(), { addNotification: m } = M(), { t: u } = V(), b = ue({
135
+ } = d, p = pe(/* @__PURE__ */ new Set()), i = H(), { addNotification: m } = Q(), { t: u } = V(), b = ue({
136
136
  queries: c.map((a) => ({
137
- queryKey: Oe(a),
138
- queryFn: () => j(a),
137
+ queryKey: _e(a),
138
+ queryFn: () => x(a),
139
139
  enabled: !!a
140
140
  }))
141
141
  });
@@ -147,14 +147,14 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
147
147
  type: "error"
148
148
  }), p.current.add(0)) : !a && y && p.current.clear();
149
149
  }, [b, m, u]);
150
- const g = E(() => b.map((a) => a.data?.uuid).filter((a) => !!a), [b]), h = E(() => [.../* @__PURE__ */ new Set([...g, ...r])], [g, r]), v = E(() => c.length === 0 ? !0 : b.every((a) => !a.isLoading), [b, c.length]), O = e === "latest" || e === "latest-encounter", F = x(
150
+ const T = g(() => b.map((a) => a.data?.uuid).filter((a) => !!a), [b]), h = g(() => [.../* @__PURE__ */ new Set([...T, ...t])], [T, t]), v = g(() => c.length === 0 ? !0 : b.every((a) => !a.isLoading), [b, c.length]), _ = e === "latest" || e === "latest-encounter", K = M(
151
151
  l,
152
152
  o
153
153
  ), {
154
154
  data: R,
155
155
  isLoading: U,
156
- isError: $,
157
- refetch: I
156
+ isError: S,
157
+ refetch: N
158
158
  } = ce({
159
159
  queryKey: Re(
160
160
  i,
@@ -162,75 +162,75 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
162
162
  o,
163
163
  e
164
164
  ),
165
- queryFn: () => O ? G(
165
+ queryFn: () => _ ? j(
166
166
  i,
167
167
  h,
168
168
  o
169
- ) : X(
169
+ ) : Y(
170
170
  i,
171
171
  h,
172
172
  o
173
173
  ),
174
- enabled: !!i && h.length > 0 && v && !F
174
+ enabled: !!i && h.length > 0 && v && !K
175
175
  });
176
176
  J(
177
177
  (a) => {
178
178
  a.patientUUID === i && a.updatedConcepts.size > 0 && [...a.updatedConcepts.keys()].some(
179
179
  (y) => h.includes(y)
180
- ) && I();
180
+ ) && N();
181
181
  },
182
- [i, I]
182
+ [i, N]
183
183
  ), L(() => {
184
- $ && m({
184
+ S && m({
185
185
  title: u("ERROR_DEFAULT_TITLE"),
186
186
  message: u("ERROR_FETCHING_OBSERVATIONS"),
187
187
  type: "error"
188
188
  });
189
- }, [$]);
190
- const N = E(() => {
189
+ }, [S]);
190
+ const $ = g(() => {
191
191
  if (!R) return [];
192
192
  let a = P(R);
193
- e === "latest-encounter" && (a = Y(a));
194
- const y = Z(a);
195
- return W(y);
196
- }, [R, e]), C = [
193
+ e === "latest-encounter" && (a = W(a));
194
+ const y = X(a);
195
+ return Z(y);
196
+ }, [R, e]), w = [
197
197
  { key: "name", header: "name" },
198
198
  { key: "value", header: "value" },
199
199
  { key: "form", header: "form" }
200
- ], A = U || !v, D = $ && v, K = (!R || R.entry?.length === 0 || h.length === 0) && v, Q = D ? u("ERROR_FETCHING_OBSERVATIONS") : null, k = K ? u("NO_OBSERVATIONS_FOUND") : void 0, q = N.length > 0 && !A && !D, T = d.titleTranslationKey, _ = T ? u(T) : "";
201
- return /* @__PURE__ */ S(
200
+ ], A = U || !v, D = S && v, q = (!R || R.entry?.length === 0 || h.length === 0) && v, C = D ? u("ERROR_FETCHING_OBSERVATIONS") : null, k = q ? u("NO_OBSERVATIONS_FOUND") : void 0, G = $.length > 0 && !A && !D, E = d.titleTranslationKey, f = E ? u(E) : "";
201
+ return /* @__PURE__ */ I(
202
202
  "div",
203
203
  {
204
204
  id: "observations",
205
- "data-testid": T ? `observations-${_}` : "observations",
205
+ "data-testid": E ? `observations-${f}` : "observations",
206
206
  "aria-label": "observations-aria-label",
207
- className: f.observations,
207
+ className: O.observations,
208
208
  children: [
209
209
  /* @__PURE__ */ n(
210
210
  ee,
211
211
  {
212
212
  id: "observations-title",
213
- testId: T ? `observations-title-${_}` : "observations-title",
214
- title: _,
215
- className: f.title,
216
- children: /* @__PURE__ */ n("p", { children: _ })
213
+ testId: E ? `observations-title-${f}` : "observations-title",
214
+ title: f,
215
+ className: O.title,
216
+ children: /* @__PURE__ */ n("p", { children: f })
217
217
  }
218
218
  ),
219
- q ? /* @__PURE__ */ n(
220
- fe,
219
+ G ? /* @__PURE__ */ n(
220
+ Oe,
221
221
  {
222
- groupedData: N,
223
- title: _,
224
- hideThumbnail: t
222
+ groupedData: $,
223
+ title: f,
224
+ hideThumbnail: r
225
225
  }
226
226
  ) : /* @__PURE__ */ n(
227
227
  ae,
228
228
  {
229
- headers: C,
229
+ headers: w,
230
230
  rows: [],
231
231
  ariaLabel: u("OBSERVATIONS"),
232
232
  loading: A,
233
- errorStateMessage: Q,
233
+ errorStateMessage: C,
234
234
  emptyStateMessage: k ?? u("NO_OBSERVATIONS_AVAILABLE"),
235
235
  dataTestId: "observations-table"
236
236
  }
@@ -240,7 +240,7 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
240
240
  );
241
241
  };
242
242
  export {
243
- Oe as conceptUuidQueryKeys,
244
- Se as default,
243
+ _e as conceptUuidQueryKeys,
244
+ Ie as default,
245
245
  Re as observationsQueryKeys
246
246
  };
@@ -1,8 +1,8 @@
1
- import { jsx as a, jsxs as m, Fragment as Y } from "react/jsx-runtime";
2
- import { C as W, E as se, F as oe, G as ie, Y as le, I as de, K as Re, N as ce, O as H, u as b, z as X, P as N, U as F, V as M, Z as _e, _ as Te, a0 as pe, a1 as x, k as ue, a2 as me, a3 as Ee, a4 as U, a5 as Se, a6 as q, a7 as fe, a8 as Oe, a9 as ge, aa as Pe, ab as $, ac as Ae, ad as j, ae as he, af as De } from "./index-BJ2mligI.js";
1
+ import { jsx as a, jsxs as m, Fragment as H } from "react/jsx-runtime";
2
+ import { E as W, F as se, L as oe, M as ie, N as le, O as de, P as Re, Q as ce, S as Y, u as C, z as X, T as N, V as F, X as M, Z as _e, $ as Te, a0 as pe, a1 as x, k as ue, a2 as me, a3 as Ee, a4 as q, a5 as Se, a6 as U, a7 as fe, a8 as Oe, a9 as ge, aa as Pe, ab as $, ac as Ae, ad as j, ae as he, af as De } from "./index-CRUk3_DP.js";
3
3
  import Le, { useCallback as K, useState as A, useEffect as V, useMemo as y } from "react";
4
4
  import { useQuery as J } from "@tanstack/react-query";
5
- import { useLocation as Ce, useNavigate as be } from "react-router-dom";
5
+ import { useLocation as be, useNavigate as Ce } from "react-router-dom";
6
6
  const ye = "http://json-schema.org/draft-07/schema#", Ne = "Reports App Configuration", Fe = "object", ve = { config: { type: "object", properties: { supportedFormats: { type: "array", items: { type: "string" }, description: "List of supported report formats" }, paperSize: { type: "string", description: "Default paper size for generated reports (e.g., A4)" } }, additionalProperties: !0 } }, Ie = !0, Be = {
7
7
  $schema: ye,
8
8
  title: Ne,
@@ -20,14 +20,14 @@ const ye = "http://json-schema.org/draft-07/schema#", Ne = "Reports App Configur
20
20
  "TODAY",
21
21
  "THIS_MONTH",
22
22
  "LAST_7_DAYS"
23
- ], Ye = {
23
+ ], He = {
24
24
  TODAY: "REPORTS_PRESET_TODAY",
25
25
  THIS_MONTH: "REPORTS_PRESET_THIS_MONTH",
26
26
  LAST_7_DAYS: "REPORTS_PRESET_LAST_7_DAYS"
27
27
  }, Q = {
28
28
  reportsConfig: ["reportsConfig"],
29
29
  reportsAppConfig: ["reportsAppConfig"]
30
- }, He = () => J({
30
+ }, Ye = () => J({
31
31
  queryKey: Q.reportsAppConfig,
32
32
  queryFn: async () => {
33
33
  try {
@@ -39,10 +39,10 @@ const ye = "http://json-schema.org/draft-07/schema#", Ne = "Reports App Configur
39
39
  return {};
40
40
  }
41
41
  }
42
- }), xe = "http://json-schema.org/draft-07/schema#", Ue = "Reports Configuration", qe = "object", $e = { type: "object", required: ["name", "type"], properties: { name: { type: "string", description: "Display name of the report" }, type: { type: "string", description: "Report generator type" }, requiredPrivilege: { type: "string", description: "Privilege required to view/run this report" }, config: { type: "object", properties: { dateRangeRequired: { type: "boolean", description: "Whether this report requires a date range (defaults to true)" }, paperSize: { type: "string", description: "Paper size for PDF generation (e.g., A4)" }, macroTemplatePath: { type: "string", description: "Path to macro template for custom Excel reports" } }, additionalProperties: !0 } } }, je = {
42
+ }), xe = "http://json-schema.org/draft-07/schema#", qe = "Reports Configuration", Ue = "object", $e = { type: "object", required: ["name", "type"], properties: { name: { type: "string", description: "Display name of the report" }, type: { type: "string", description: "Report generator type" }, requiredPrivilege: { type: "string", description: "Privilege required to view/run this report" }, config: { type: "object", properties: { dateRangeRequired: { type: "boolean", description: "Whether this report requires a date range (defaults to true)" }, paperSize: { type: "string", description: "Paper size for PDF generation (e.g., A4)" }, macroTemplatePath: { type: "string", description: "Path to macro template for custom Excel reports" } }, additionalProperties: !0 } } }, je = {
43
43
  $schema: xe,
44
- title: Ue,
45
- type: qe,
44
+ title: qe,
45
+ type: Ue,
46
46
  additionalProperties: $e
47
47
  }, ke = () => J({
48
48
  queryKey: Q.reportsConfig,
@@ -68,9 +68,9 @@ function We(e, t, s) {
68
68
  }
69
69
  const Xe = (e, t) => t ? de(e, t) : !0, Ke = (e, t) => e.filter(
70
70
  (s) => Xe(t, s.requiredPrivilege)
71
- ), C = (e) => e.config?.dateRangeRequired !== !1, Ve = (e) => ({
72
- dateRangeReports: e.filter(C),
73
- noDateRangeReports: e.filter((t) => !C(t))
71
+ ), b = (e) => e.config?.dateRangeRequired !== !1, Ve = (e) => ({
72
+ dateRangeReports: e.filter(b),
73
+ noDateRangeReports: e.filter((t) => !b(t))
74
74
  }), Je = (e) => !e || e.length === 0 ? ie : e.map(
75
75
  (s) => s.toUpperCase()
76
76
  ).filter((s) => s in le), Qe = (e) => {
@@ -119,9 +119,9 @@ const Xe = (e, t) => t ? de(e, t) : !0, Ke = (e, t) => e.filter(
119
119
  t.config?.paperSize ?? _
120
120
  ), u = window.open(R, "_blank");
121
121
  return u ? (u.opener = null, ce({
122
- eventType: H.RUN_REPORT.eventType,
122
+ eventType: Y.RUN_REPORT.eventType,
123
123
  messageParams: { reportName: t.name },
124
- module: H.RUN_REPORT.module
124
+ module: Y.RUN_REPORT.module
125
125
  }), !0) : !1;
126
126
  } catch (R) {
127
127
  return console.error("Error running report:", R), !1;
@@ -129,7 +129,7 @@ const Xe = (e, t) => t ? de(e, t) : !0, Ke = (e, t) => e.filter(
129
129
  },
130
130
  []
131
131
  ) }), at = (e, t, s) => {
132
- const { t: d } = b(), { addNotification: n } = X(), { runReport: _ } = tt(), [R, u] = A({}), [f, p] = A({}), [g, i] = A(null);
132
+ const { t: d } = C(), { addNotification: n } = X(), { runReport: _ } = tt(), [R, u] = A({}), [f, p] = A({}), [g, i] = A(null);
133
133
  V(() => {
134
134
  u({}), p({});
135
135
  }, [t.version]);
@@ -155,7 +155,7 @@ const Xe = (e, t) => t ? de(e, t) : !0, Ke = (e, t) => e.filter(
155
155
  const l = r(o.id), c = Ze(
156
156
  {
157
157
  report: o,
158
- requiresDateRange: C(o),
158
+ requiresDateRange: b(o),
159
159
  format: l.format,
160
160
  startDate: l.startDate,
161
161
  endDate: l.endDate
@@ -218,7 +218,7 @@ const Xe = (e, t) => t ? de(e, t) : !0, Ke = (e, t) => e.filter(
218
218
  emptyState: Rt
219
219
  }, w = Le.memo(
220
220
  ({ reports: e, appliedFilters: t, availableFormats: s, defaultPaperSize: d }) => {
221
- const { t: n } = b(), {
221
+ const { t: n } = C(), {
222
222
  rowFilters: _,
223
223
  errors: R,
224
224
  isRunning: u,
@@ -228,7 +228,7 @@ const Xe = (e, t) => t ? de(e, t) : !0, Ke = (e, t) => e.filter(
228
228
  } = at(e, t, d);
229
229
  if (e.length === 0)
230
230
  return /* @__PURE__ */ a("div", { className: E.emptyState, "data-testid": "reports-table-empty", children: n("REPORTS_NO_REPORTS_IN_SECTION") });
231
- const i = e.some(C);
231
+ const i = e.some(b);
232
232
  return /* @__PURE__ */ a("div", { className: E.tableContainer, children: /* @__PURE__ */ m("table", { className: E.table, "data-testid": "reports-table", children: [
233
233
  /* @__PURE__ */ a("thead", { children: /* @__PURE__ */ m("tr", { children: [
234
234
  /* @__PURE__ */ a(
@@ -238,7 +238,7 @@ const Xe = (e, t) => t ? de(e, t) : !0, Ke = (e, t) => e.filter(
238
238
  children: n("REPORTS_NAME_HEADER")
239
239
  }
240
240
  ),
241
- i && /* @__PURE__ */ m(Y, { children: [
241
+ i && /* @__PURE__ */ m(H, { children: [
242
242
  /* @__PURE__ */ a("th", { className: E.dateColumn, children: n("REPORTS_START_DATE_LABEL") }),
243
243
  /* @__PURE__ */ a("th", { className: E.dateColumn, children: n("REPORTS_END_DATE_LABEL") })
244
244
  ] }),
@@ -246,7 +246,7 @@ const Xe = (e, t) => t ? de(e, t) : !0, Ke = (e, t) => e.filter(
246
246
  /* @__PURE__ */ a("th", { className: E.actionsColumn, children: n("REPORTS_ACTIONS_HEADER") })
247
247
  ] }) }),
248
248
  /* @__PURE__ */ a("tbody", { children: e.map((r) => {
249
- const O = _(r.id), S = R(r.id), h = C(r), o = u(r.id);
249
+ const O = _(r.id), S = R(r.id), h = b(r), o = u(r.id);
250
250
  return /* @__PURE__ */ m("tr", { children: [
251
251
  /* @__PURE__ */ a(
252
252
  "td",
@@ -255,7 +255,7 @@ const Xe = (e, t) => t ? de(e, t) : !0, Ke = (e, t) => e.filter(
255
255
  children: r.name
256
256
  }
257
257
  ),
258
- i && /* @__PURE__ */ m(Y, { children: [
258
+ i && /* @__PURE__ */ m(H, { children: [
259
259
  /* @__PURE__ */ a("td", { children: h && /* @__PURE__ */ a(
260
260
  N,
261
261
  {
@@ -371,7 +371,7 @@ const ct = "ReportList-module_reportList__tPpsJ", _t = "ReportList-module_fullWi
371
371
  onReset: p,
372
372
  onApply: g
373
373
  }) => {
374
- const { t: i } = b();
374
+ const { t: i } = C();
375
375
  return /* @__PURE__ */ m("section", { className: L.filtersContainer, "data-testid": "reports-filters", children: [
376
376
  /* @__PURE__ */ a("h2", { className: L.filtersTitle, children: i("REPORTS_FILTERS_LABEL") }),
377
377
  /* @__PURE__ */ m("div", { className: L.filtersRow, children: [
@@ -382,7 +382,7 @@ const ct = "ReportList-module_reportList__tPpsJ", _t = "ReportList-module_fullWi
382
382
  titleText: i("REPORTS_SELECT_DATE_RANGE"),
383
383
  label: "",
384
384
  items: we,
385
- itemToString: (r) => r ? i(Ye[r]) : "",
385
+ itemToString: (r) => r ? i(He[r]) : "",
386
386
  selectedItem: d,
387
387
  onChange: ({ selectedItem: r }) => {
388
388
  if (f(r ?? null), !r) return;
@@ -451,11 +451,11 @@ const ct = "ReportList-module_reportList__tPpsJ", _t = "ReportList-module_fullWi
451
451
  format: null,
452
452
  version: 0
453
453
  }, Ot = () => {
454
- const { t: e } = b(), { userPrivileges: t, isLoading: s } = ue(), { addNotification: d } = X(), {
454
+ const { t: e } = C(), { userPrivileges: t, isLoading: s } = ue(), { addNotification: d } = X(), {
455
455
  data: n,
456
456
  isLoading: _,
457
457
  error: R
458
- } = ke(), { data: u } = He();
458
+ } = ke(), { data: u } = Ye();
459
459
  V(() => {
460
460
  R && d({
461
461
  title: e("REPORTS_ERROR_TITLE"),
@@ -523,7 +523,7 @@ const ct = "ReportList-module_reportList__tPpsJ", _t = "ReportList-module_fullWi
523
523
  ),
524
524
  /* @__PURE__ */ m(Ee, { align: "start", children: [
525
525
  /* @__PURE__ */ a(
526
- U,
526
+ q,
527
527
  {
528
528
  title: e("REPORTS_DATE_RANGE_SECTION_TITLE"),
529
529
  testId: "reports-date-range-section",
@@ -540,7 +540,7 @@ const ct = "ReportList-module_reportList__tPpsJ", _t = "ReportList-module_fullWi
540
540
  }
541
541
  ),
542
542
  /* @__PURE__ */ a(
543
- U,
543
+ q,
544
544
  {
545
545
  title: e("REPORTS_NO_DATE_RANGE_SECTION_TITLE"),
546
546
  testId: "reports-no-date-range-section",
@@ -564,16 +564,16 @@ const ct = "ReportList-module_reportList__tPpsJ", _t = "ReportList-module_fullWi
564
564
  page: gt,
565
565
  panel: Pt
566
566
  }, z = 1, At = 0, yt = () => {
567
- const { t: e } = b(), t = Ce(), s = be(), d = y(
567
+ const { t: e } = C(), t = be(), s = Ce(), d = y(
568
568
  () => [
569
569
  { id: "home", label: e("REPORTS_HOME_LABEL"), href: Se },
570
570
  { id: "reports", label: e("REPORTS_LABEL"), isCurrentPage: !0 }
571
571
  ],
572
572
  [e]
573
- ), n = t.pathname === q ? z : At, _ = K(
573
+ ), n = t.pathname === U ? z : At, _ = K(
574
574
  ({ selectedIndex: R }) => {
575
575
  s(
576
- R === z ? q : fe
576
+ R === z ? U : fe
577
577
  );
578
578
  },
579
579
  [s]
@@ -1,4 +1,4 @@
1
- import { aj as we, ak as z, al as xt, am as B, ah as q, ai as y, an as Ro, ao as ye, ap as R, aq as _, ar as k, as as N, at as A, au as bs, av as ir, aw as $e, ax as U, ay as Hn, az as Vn, aA as dt, aB as D, aC as xs, aD as cn, aE as Be, aF as ws, aG as qt, aH as zt, aI as $s, aJ as Cs, aK as $n, aL as Ss, aM as Nr, aN as Bt, aO as zo, aP as ks, aQ as Es, aR as j, aS as Ur, aT as Ms, aU as Ds, aV as sr, aW as As, aX as Ts, aY as zn, aZ as Fs, a_ as Is, a$ as Z, b0 as Ps, b1 as Ls } from "./index-BJ2mligI.js";
1
+ import { aj as we, ak as z, al as xt, am as B, ah as q, ai as y, an as Ro, ao as ye, ap as R, aq as _, ar as k, as as N, at as A, au as bs, av as ir, aw as $e, ax as U, ay as Hn, az as Vn, aA as dt, aB as D, aC as xs, aD as cn, aE as Be, aF as ws, aG as qt, aH as zt, aI as $s, aJ as Cs, aK as $n, aL as Ss, aM as Nr, aN as Bt, aO as zo, aP as ks, aQ as Es, aR as j, aS as Ur, aT as Ms, aU as Ds, aV as sr, aW as As, aX as Ts, aY as zn, aZ as Fs, a_ as Is, a$ as Z, b0 as Ps, b1 as Ls } from "./index-CRUk3_DP.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {