@bahmni/appointments-app 0.0.1-dev.329 → 0.0.1-dev.331
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.
- package/dist/{DocumentsTable-y7KKSEft-Bu2e155r.js → DocumentsTable-BWdWCSEF-Cpnzq0wf.js} +43 -43
- package/dist/FormsTable-BeIgWoc7-BPWtraA4.js +234 -0
- package/dist/{LNWAZHJI-C9TP9MTc.js → LNWAZHJI-N8VLUrXt.js} +2 -2
- package/dist/{MWZ6AO7Z-tcjSIrcv.js → MWZ6AO7Z-m58ABGmj.js} +2 -2
- package/dist/{Observations-BVrVtdFC-CBFpx7Yu.js → Observations-BjoSIa29-rm3uPnHU.js} +58 -58
- package/dist/{YPM2AS64-CdtvSJkL.js → YPM2AS64-CJKBvHg9.js} +1 -1
- package/dist/{index-BP9aJpz3.js → index-CX3JDWBT.js} +48 -48
- package/dist/{index-DUl_sIXv.js → index-YPHzSbMw.js} +42 -42
- package/dist/{index-Bjd0Amzt.js → index-rGSUMz8Z.js} +75372 -64266
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/FormsTable-DWjxOeF0-BW0BApo4.js +0 -234
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as S, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { useQueries as
|
|
4
|
-
import { useRef as se, useEffect as
|
|
5
|
-
const
|
|
6
|
-
const
|
|
2
|
+
import { a as B, q as k, u as N, l as K, j as H, U as j, V as w, y as M, H as x, k as G, R as z, m as P, n as Q, E as W, o as J, r as X, t as Y, W as Z, w as ee } from "./index-rGSUMz8Z.js";
|
|
3
|
+
import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
|
|
4
|
+
import { useRef as se, useEffect as _, useMemo as R } from "react";
|
|
5
|
+
const U = (a, n, d, l, b, r) => {
|
|
6
|
+
const t = W(a, n, b), s = t.value, o = J(s);
|
|
7
7
|
let i = s;
|
|
8
8
|
o === "Image" && (i = /* @__PURE__ */ u(
|
|
9
|
-
|
|
9
|
+
Y,
|
|
10
10
|
{
|
|
11
11
|
imageSrc: s,
|
|
12
12
|
alt: s,
|
|
@@ -22,54 +22,54 @@ const C = (t, n, d, l, b, r) => {
|
|
|
22
22
|
}
|
|
23
23
|
)), o === "PDF" && (i = /* @__PURE__ */ u(ee, { id: `${s}-pdf`, src: s }));
|
|
24
24
|
const m = b("OBSERVATIONS_RECORDED_BY", {
|
|
25
|
-
provider:
|
|
26
|
-
}), p =
|
|
25
|
+
provider: t.provider
|
|
26
|
+
}), p = a.display, y = a.observationValue?.isAbnormal ? "abnormal-obs" : "obs", c = l ? `${l}-${y}-${p}-${d}-${n}` : `${y}-${p}-${d}-${n}`;
|
|
27
27
|
return /* @__PURE__ */ u(
|
|
28
|
-
|
|
28
|
+
X,
|
|
29
29
|
{
|
|
30
|
-
header:
|
|
30
|
+
header: t.header,
|
|
31
31
|
value: i,
|
|
32
32
|
info: m,
|
|
33
33
|
id: c,
|
|
34
34
|
testId: c,
|
|
35
35
|
ariaLabel: c
|
|
36
36
|
},
|
|
37
|
-
`obs-${
|
|
37
|
+
`obs-${a.id}`
|
|
38
38
|
);
|
|
39
|
-
}, re = (
|
|
40
|
-
|
|
39
|
+
}, re = (a, n, d, l, b, r, t) => /* @__PURE__ */ u(
|
|
40
|
+
Q,
|
|
41
41
|
{
|
|
42
|
-
title:
|
|
43
|
-
id: `grouped-obs-${
|
|
42
|
+
title: a.display,
|
|
43
|
+
id: `grouped-obs-${a.display}-${l}`,
|
|
44
44
|
open: d,
|
|
45
|
-
children:
|
|
46
|
-
(s, o) =>
|
|
45
|
+
children: a.members?.map(
|
|
46
|
+
(s, o) => U(
|
|
47
47
|
s,
|
|
48
48
|
o,
|
|
49
49
|
b,
|
|
50
50
|
r,
|
|
51
51
|
n,
|
|
52
|
-
|
|
52
|
+
t
|
|
53
53
|
)
|
|
54
54
|
)
|
|
55
55
|
},
|
|
56
|
-
`grouped-obs-${
|
|
56
|
+
`grouped-obs-${a.id}`
|
|
57
57
|
), oe = ({
|
|
58
|
-
groupedData:
|
|
58
|
+
groupedData: a,
|
|
59
59
|
title: n = "",
|
|
60
60
|
hideThumbnail: d
|
|
61
61
|
}) => {
|
|
62
|
-
const { t: l } = N(), b = (r,
|
|
63
|
-
const o =
|
|
62
|
+
const { t: l } = N(), b = (r, t, s) => {
|
|
63
|
+
const o = P(r.encounterDetails, l);
|
|
64
64
|
return /* @__PURE__ */ S(
|
|
65
|
-
|
|
65
|
+
Q,
|
|
66
66
|
{
|
|
67
67
|
title: o,
|
|
68
68
|
id: `encounter-${r.encounterId}`,
|
|
69
|
-
open:
|
|
69
|
+
open: t,
|
|
70
70
|
children: [
|
|
71
71
|
r.observations.map(
|
|
72
|
-
(i, m) =>
|
|
72
|
+
(i, m) => U(
|
|
73
73
|
i,
|
|
74
74
|
m,
|
|
75
75
|
s,
|
|
@@ -82,7 +82,7 @@ const C = (t, n, d, l, b, r) => {
|
|
|
82
82
|
(i, m) => re(
|
|
83
83
|
i,
|
|
84
84
|
l,
|
|
85
|
-
|
|
85
|
+
t,
|
|
86
86
|
m,
|
|
87
87
|
s,
|
|
88
88
|
n,
|
|
@@ -100,27 +100,27 @@ const C = (t, n, d, l, b, r) => {
|
|
|
100
100
|
id: "obs-by-encounter",
|
|
101
101
|
"data-testid": "obs-by-encounter-test-id",
|
|
102
102
|
"aria-label": "obs-by-encounter-aria-label",
|
|
103
|
-
children:
|
|
104
|
-
(r,
|
|
103
|
+
children: a.map(
|
|
104
|
+
(r, t) => b(r, t === 0, t)
|
|
105
105
|
)
|
|
106
106
|
}
|
|
107
107
|
);
|
|
108
108
|
}, ie = "Observations-module_observations__RKSyo", ne = "Observations-module_title__TJL3z", I = {
|
|
109
109
|
observations: ie,
|
|
110
110
|
title: ne
|
|
111
|
-
}, de = (
|
|
112
|
-
const n =
|
|
111
|
+
}, de = (a) => ["conceptUuid", a], le = (a, n) => ["observations", a, ...n], pe = ({ config: a }) => {
|
|
112
|
+
const n = a, {
|
|
113
113
|
conceptNames: d = [],
|
|
114
114
|
conceptUuid: l = [],
|
|
115
115
|
hideThumbnail: b = !1
|
|
116
|
-
} = n, r = se(/* @__PURE__ */ new Set()),
|
|
116
|
+
} = n, r = se(/* @__PURE__ */ new Set()), t = B(), { addNotification: s } = k(), { t: o } = N(), i = ae({
|
|
117
117
|
queries: d.map((e) => ({
|
|
118
118
|
queryKey: de(e),
|
|
119
119
|
queryFn: () => K(e),
|
|
120
120
|
enabled: !!e
|
|
121
121
|
}))
|
|
122
122
|
});
|
|
123
|
-
|
|
123
|
+
_(() => {
|
|
124
124
|
i.forEach((e, h) => {
|
|
125
125
|
if (e.isError && !r.current.has(h)) {
|
|
126
126
|
const q = d[h];
|
|
@@ -132,73 +132,73 @@ const C = (t, n, d, l, b, r) => {
|
|
|
132
132
|
} else e.isError || r.current.delete(h);
|
|
133
133
|
});
|
|
134
134
|
}, [i, d]);
|
|
135
|
-
const m =
|
|
135
|
+
const m = R(() => i.map((e) => e.data?.uuid).filter((e) => !!e), [i]), p = R(() => [.../* @__PURE__ */ new Set([...m, ...l])], [m, l]), y = R(() => d.length === 0 ? !0 : i.every((e) => !e.isLoading), [i, d.length]), {
|
|
136
136
|
data: c,
|
|
137
137
|
isLoading: D,
|
|
138
|
-
isError:
|
|
139
|
-
refetch:
|
|
140
|
-
} =
|
|
141
|
-
queryKey: le(
|
|
142
|
-
queryFn: () =>
|
|
143
|
-
enabled: !!
|
|
138
|
+
isError: T,
|
|
139
|
+
refetch: $
|
|
140
|
+
} = te({
|
|
141
|
+
queryKey: le(t, p),
|
|
142
|
+
queryFn: () => H(t, p),
|
|
143
|
+
enabled: !!t && p.length > 0 && y
|
|
144
144
|
});
|
|
145
|
-
|
|
145
|
+
j(
|
|
146
146
|
(e) => {
|
|
147
|
-
e.patientUUID ===
|
|
147
|
+
e.patientUUID === t && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
|
|
148
148
|
(h) => p.includes(h)
|
|
149
|
-
) &&
|
|
149
|
+
) && $();
|
|
150
150
|
},
|
|
151
|
-
[
|
|
152
|
-
),
|
|
153
|
-
|
|
151
|
+
[t, $]
|
|
152
|
+
), _(() => {
|
|
153
|
+
T && s({
|
|
154
154
|
title: o("ERROR_DEFAULT_TITLE"),
|
|
155
155
|
message: o("ERROR_FETCHING_OBSERVATIONS"),
|
|
156
156
|
type: "error"
|
|
157
157
|
});
|
|
158
|
-
}, [
|
|
159
|
-
const
|
|
158
|
+
}, [T]);
|
|
159
|
+
const g = R(() => {
|
|
160
160
|
if (!c) return [];
|
|
161
|
-
const e =
|
|
162
|
-
return
|
|
161
|
+
const e = w(c), h = M(e);
|
|
162
|
+
return x(h);
|
|
163
163
|
}, [c]), F = [
|
|
164
164
|
{ key: "name", header: "name" },
|
|
165
165
|
{ key: "value", header: "value" },
|
|
166
166
|
{ key: "form", header: "form" }
|
|
167
|
-
],
|
|
167
|
+
], O = D || !y, f = T && y, L = (!c || c.entry?.length === 0 || p.length === 0) && y, A = f ? o("ERROR_FETCHING_OBSERVATIONS") : null, C = L ? o("NO_OBSERVATIONS_FOUND") : void 0, V = g.length > 0 && !O && !f, E = n.titleTranslationKey, v = E ? o(E) : "";
|
|
168
168
|
return /* @__PURE__ */ S(
|
|
169
169
|
"div",
|
|
170
170
|
{
|
|
171
171
|
id: "observations",
|
|
172
|
-
"data-testid":
|
|
172
|
+
"data-testid": E ? `observations-${v}` : "observations",
|
|
173
173
|
"aria-label": "observations-aria-label",
|
|
174
174
|
className: I.observations,
|
|
175
175
|
children: [
|
|
176
176
|
/* @__PURE__ */ u(
|
|
177
|
-
|
|
177
|
+
G,
|
|
178
178
|
{
|
|
179
179
|
id: "observations-title",
|
|
180
|
-
testId:
|
|
180
|
+
testId: E ? `observations-title-${v}` : "observations-title",
|
|
181
181
|
title: v,
|
|
182
182
|
className: I.title,
|
|
183
183
|
children: /* @__PURE__ */ u("p", { children: v })
|
|
184
184
|
}
|
|
185
185
|
),
|
|
186
|
-
|
|
186
|
+
V ? /* @__PURE__ */ u(
|
|
187
187
|
oe,
|
|
188
188
|
{
|
|
189
|
-
groupedData:
|
|
189
|
+
groupedData: g,
|
|
190
190
|
title: v,
|
|
191
191
|
hideThumbnail: b
|
|
192
192
|
}
|
|
193
193
|
) : /* @__PURE__ */ u(
|
|
194
|
-
|
|
194
|
+
z,
|
|
195
195
|
{
|
|
196
196
|
headers: F,
|
|
197
197
|
rows: [],
|
|
198
198
|
ariaLabel: o("OBSERVATIONS"),
|
|
199
|
-
loading:
|
|
199
|
+
loading: O,
|
|
200
200
|
errorStateMessage: A,
|
|
201
|
-
emptyStateMessage:
|
|
201
|
+
emptyStateMessage: C,
|
|
202
202
|
dataTestId: "observations-table"
|
|
203
203
|
}
|
|
204
204
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ak as we, al as z, am as xt, an as B, ai as q, aj as y, ao as Ro, ap as ye, aq as R, ar as _, as as k, at as N, au as A, av as bs, aw as ir, ax as $e, ay as U, az as Hn, aA as Vn, aB as dt, aC as D, aD as xs, aE as cn, aF as Be, aG as ws, aH as qt, aI as zt, aJ as $s, aK as Cs, aL as $n, aM as Ss, aN as Nr, aO as Bt, aP as zo, aQ as ks, aR as Es, aS as j, aT as Ur, aU as Ms, aV as Ds, aW as sr, aX as As, aY as Ts, aZ as zn, a_ as Fs, a$ as Is, b0 as Z, b1 as Ps, b2 as Ls } from "./index-
|
|
1
|
+
import { ak as we, al as z, am as xt, an as B, ai as q, aj as y, ao as Ro, ap as ye, aq as R, ar as _, as as k, at as N, au as A, av as bs, aw as ir, ax as $e, ay as U, az as Hn, aA as Vn, aB as dt, aC as D, aD as xs, aE as cn, aF as Be, aG as ws, aH as qt, aI as zt, aJ as $s, aK as Cs, aL as $n, aM as Ss, aN as Nr, aO as Bt, aP as zo, aQ as ks, aR as Es, aS as j, aT as Ur, aU as Ms, aV as Ds, aW as sr, aX as As, aY as Ts, aZ as zn, a_ as Fs, a$ as Is, b0 as Z, b1 as Ps, b2 as Ls } from "./index-rGSUMz8Z.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as n, jsxs as y } from "react/jsx-runtime";
|
|
2
|
+
import { z as V, x as P, u as C, P as O, B as h, q as B, C as x, D as L, X as G, F as q, G as U, I as F, J as H, K as k, L as K, Z as Q } from "./index-rGSUMz8Z.js";
|
|
3
3
|
import { useState as I, useMemo as _ } from "react";
|
|
4
|
-
import { useQueryClient as
|
|
5
|
-
const
|
|
6
|
-
|
|
4
|
+
import { useQueryClient as Z, useQuery as $ } from "@tanstack/react-query";
|
|
5
|
+
const j = V(
|
|
6
|
+
P,
|
|
7
7
|
"useAppointmentsConfig",
|
|
8
8
|
"AppointmentsConfigProvider"
|
|
9
|
-
),
|
|
9
|
+
), w = ({
|
|
10
10
|
serviceName: e,
|
|
11
|
-
isDeleting:
|
|
11
|
+
isDeleting: a,
|
|
12
12
|
onConfirm: t,
|
|
13
13
|
onCancel: s
|
|
14
14
|
}) => {
|
|
15
|
-
const { t:
|
|
15
|
+
const { t: i } = C();
|
|
16
16
|
return /* @__PURE__ */ n(
|
|
17
|
-
|
|
17
|
+
O,
|
|
18
18
|
{
|
|
19
19
|
id: "delete-service-modal",
|
|
20
20
|
testId: "delete-service-modal-test-id",
|
|
@@ -23,11 +23,11 @@ const $ = V(
|
|
|
23
23
|
danger: !0,
|
|
24
24
|
onRequestClose: s,
|
|
25
25
|
onRequestSubmit: t,
|
|
26
|
-
primaryButtonText:
|
|
27
|
-
secondaryButtonText:
|
|
28
|
-
primaryButtonDisabled:
|
|
29
|
-
modalHeading:
|
|
30
|
-
children:
|
|
26
|
+
primaryButtonText: i("ADMIN_ALL_SERVICES_DELETE_BUTTON_LABEL"),
|
|
27
|
+
secondaryButtonText: i("ADMIN_ALL_SERVICES_DELETE_CANCEL"),
|
|
28
|
+
primaryButtonDisabled: a,
|
|
29
|
+
modalHeading: i("ADMIN_ALL_SERVICES_DELETE_MODAL_TITLE"),
|
|
30
|
+
children: i("ADMIN_ALL_SERVICES_DELETE_CONFIRM_BODY", { serviceName: e })
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
33
|
}, u = [
|
|
@@ -36,29 +36,29 @@ const $ = V(
|
|
|
36
36
|
"speciality",
|
|
37
37
|
"durationMins",
|
|
38
38
|
"description"
|
|
39
|
-
],
|
|
40
|
-
page:
|
|
41
|
-
noPrivilegeContainer:
|
|
42
|
-
table:
|
|
39
|
+
], W = "app:appointments:manageServices", z = "app:appointments:adminTab", J = "index-module_page__Gsfbu", X = "index-module_noPrivilegeContainer__Pu5WZ", Y = "index-module_table__GAPmb", d = {
|
|
40
|
+
page: J,
|
|
41
|
+
noPrivilegeContainer: X,
|
|
42
|
+
table: Y
|
|
43
43
|
};
|
|
44
44
|
function ee(e) {
|
|
45
|
-
return e.filter((
|
|
45
|
+
return e.filter((a) => !u.includes(a));
|
|
46
46
|
}
|
|
47
|
-
function te(e,
|
|
47
|
+
function te(e, a) {
|
|
48
48
|
return [
|
|
49
49
|
...e.map((t) => ({
|
|
50
50
|
key: t,
|
|
51
|
-
header:
|
|
51
|
+
header: a(
|
|
52
52
|
`ADMIN_ALL_SERVICES_COLUMN_${h(t)}`
|
|
53
53
|
)
|
|
54
54
|
})),
|
|
55
55
|
{
|
|
56
56
|
key: "actions",
|
|
57
|
-
header:
|
|
57
|
+
header: a("ADMIN_ALL_SERVICES_COLUMN_ACTIONS")
|
|
58
58
|
}
|
|
59
59
|
];
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function ae(e, a) {
|
|
62
62
|
return e.map((t) => ({
|
|
63
63
|
id: t.uuid,
|
|
64
64
|
name: t.name,
|
|
@@ -67,41 +67,41 @@ function ie(e, i) {
|
|
|
67
67
|
durationMins: t.durationMins,
|
|
68
68
|
description: t.description,
|
|
69
69
|
attributes: Object.fromEntries(
|
|
70
|
-
|
|
70
|
+
a.map((s) => [
|
|
71
71
|
s,
|
|
72
|
-
t.attributes?.find((
|
|
72
|
+
t.attributes?.find((i) => i.attributeType === s)?.value ?? null
|
|
73
73
|
])
|
|
74
74
|
)
|
|
75
75
|
}));
|
|
76
76
|
}
|
|
77
77
|
const le = () => {
|
|
78
|
-
const { t: e } = C(),
|
|
78
|
+
const { t: e } = C(), a = Z(), { addNotification: t } = B(), { userPrivileges: s } = x(), { appointmentsConfig: i } = j(), [E, c] = I(null), [b, p] = I(!1), l = i?.serviceTableFields ?? [
|
|
79
79
|
...u
|
|
80
|
-
], m = L(s,
|
|
80
|
+
], m = L(s, z), M = L(
|
|
81
81
|
s,
|
|
82
|
-
|
|
82
|
+
W
|
|
83
83
|
), S = _(
|
|
84
84
|
() => ee(l),
|
|
85
85
|
[l]
|
|
86
|
-
), { data: A, isLoading:
|
|
86
|
+
), { data: A, isLoading: D, isError: v } = $({
|
|
87
87
|
queryKey: ["allAppointmentServices"],
|
|
88
|
-
queryFn:
|
|
88
|
+
queryFn: G,
|
|
89
89
|
enabled: m
|
|
90
|
-
}),
|
|
90
|
+
}), R = _(
|
|
91
91
|
() => te(l, e),
|
|
92
92
|
[l]
|
|
93
93
|
), N = _(
|
|
94
|
-
() =>
|
|
94
|
+
() => ae(A ?? [], S),
|
|
95
95
|
[A, S]
|
|
96
96
|
), g = async () => {
|
|
97
97
|
p(!0);
|
|
98
98
|
try {
|
|
99
|
-
await
|
|
99
|
+
await Q(E.id), t({
|
|
100
100
|
title: e("ADMIN_ALL_SERVICES_DELETE_SUCCESS_TITLE"),
|
|
101
101
|
message: e("ADMIN_ALL_SERVICES_DELETE_SUCCESS_MESSAGE"),
|
|
102
102
|
type: "success",
|
|
103
103
|
timeout: 5e3
|
|
104
|
-
}), c(null),
|
|
104
|
+
}), c(null), a.invalidateQueries({ queryKey: ["allAppointmentServices"] });
|
|
105
105
|
} catch {
|
|
106
106
|
t({
|
|
107
107
|
title: e("ADMIN_ALL_SERVICES_DELETE_ERROR_TITLE"),
|
|
@@ -112,26 +112,26 @@ const le = () => {
|
|
|
112
112
|
p(!1);
|
|
113
113
|
}
|
|
114
114
|
}, T = (r, o) => o === "actions" ? /* @__PURE__ */ n(
|
|
115
|
-
|
|
115
|
+
k,
|
|
116
116
|
{
|
|
117
117
|
id: `delete-service-${r.id}-btn`,
|
|
118
118
|
testId: `delete-service-${r.id}-btn-test-id`,
|
|
119
119
|
"aria-label": `delete-service-${r.id}-btn-aria-label`,
|
|
120
120
|
kind: "ghost",
|
|
121
121
|
label: e("ADMIN_ALL_SERVICES_DELETE_ICON_LABEL"),
|
|
122
|
-
disabled: !
|
|
122
|
+
disabled: !M,
|
|
123
123
|
onClick: () => c(r),
|
|
124
|
-
children: /* @__PURE__ */ n(
|
|
124
|
+
children: /* @__PURE__ */ n(K, {})
|
|
125
125
|
}
|
|
126
|
-
) : u.includes(o) ? r[o] ?? "-" : r.attributes[o] ?? "-",
|
|
127
|
-
{ id: "home", label: e("BREADCRUMB_HOME"), href:
|
|
126
|
+
) : u.includes(o) ? r[o] ?? "-" : r.attributes[o] ?? "-", f = [
|
|
127
|
+
{ id: "home", label: e("BREADCRUMB_HOME"), href: q },
|
|
128
128
|
{ id: "admin", label: e("BREADCRUMB_ADMIN"), isCurrentPage: !0 }
|
|
129
129
|
];
|
|
130
130
|
return /* @__PURE__ */ n(
|
|
131
|
-
|
|
131
|
+
U,
|
|
132
132
|
{
|
|
133
|
-
header: /* @__PURE__ */ n(H, { breadcrumbItems:
|
|
134
|
-
main: m ? /* @__PURE__ */
|
|
133
|
+
header: /* @__PURE__ */ n(H, { breadcrumbItems: f }),
|
|
134
|
+
main: m ? /* @__PURE__ */ y(
|
|
135
135
|
"div",
|
|
136
136
|
{
|
|
137
137
|
id: "all-appointment-service-page",
|
|
@@ -140,25 +140,25 @@ const le = () => {
|
|
|
140
140
|
className: d.page,
|
|
141
141
|
children: [
|
|
142
142
|
/* @__PURE__ */ n(
|
|
143
|
-
|
|
143
|
+
F,
|
|
144
144
|
{
|
|
145
145
|
id: "all-services",
|
|
146
146
|
title: e("ADMIN_ALL_SERVICES_TITLE"),
|
|
147
|
-
headers:
|
|
147
|
+
headers: R,
|
|
148
148
|
rows: N,
|
|
149
149
|
ariaLabel: "all-services-table",
|
|
150
|
-
loading:
|
|
151
|
-
errorStateMessage:
|
|
150
|
+
loading: D,
|
|
151
|
+
errorStateMessage: v ? e("ADMIN_ALL_SERVICES_ERROR_MESSAGE") : null,
|
|
152
152
|
emptyStateMessage: e("ADMIN_ALL_SERVICES_EMPTY_MESSAGE"),
|
|
153
153
|
renderCell: T,
|
|
154
154
|
className: d.table
|
|
155
155
|
}
|
|
156
156
|
),
|
|
157
157
|
E && /* @__PURE__ */ n(
|
|
158
|
-
|
|
158
|
+
w,
|
|
159
159
|
{
|
|
160
160
|
serviceName: E.name,
|
|
161
|
-
isDeleting:
|
|
161
|
+
isDeleting: b,
|
|
162
162
|
onConfirm: g,
|
|
163
163
|
onCancel: () => c(null)
|
|
164
164
|
}
|