@bahmni/appointments-app 0.0.1-dev.264 → 0.0.1-dev.266
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-BReXAZIp-CzVbtfG8.js → DocumentsTable-CnklBHjw-D3MuxzAH.js} +1 -1
- package/dist/{FormsTable-C2TMKYSS-B_m3QC2T.js → FormsTable-CBcQZdmr-fYW9hpOP.js} +27 -27
- package/dist/{LNWAZHJI-DRgcOAER.js → LNWAZHJI-DWbcRFOv.js} +2 -2
- package/dist/{MWZ6AO7Z-Cicl0m02.js → MWZ6AO7Z-p0JMkR7J.js} +2 -2
- package/dist/{Observations-CicWM0Ea-CAZMXS9N.js → Observations-C7p_jHRY-CXwe8c7S.js} +28 -28
- package/dist/{YPM2AS64-C5iXprY9.js → YPM2AS64-CIix-ijy.js} +1 -1
- package/dist/{index-TAII9cTU.js → index-C7V0cO9R.js} +11 -11
- package/dist/{index-C4PZwwNE.js → index-DtJvSxJc.js} +7295 -7286
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as p, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
-
import { d as K, u as Q, a as W, b as J, c as X, m as Z, e as ee, r as te, F as ae } from "./index-
|
|
2
|
+
import { d as K, u as Q, a as W, b as J, c as X, m as Z, e as ee, r as te, F as ae } from "./index-DtJvSxJc.js";
|
|
3
3
|
import { useState as m, useCallback as h, useEffect as f, useMemo as T } from "react";
|
|
4
4
|
const ne = "_documentsTableBody_1voj8_1", oe = "_viewAttachmentsLink_1voj8_11", re = "_documentViewerContainer_1voj8_15", de = "_attachmentItem_1voj8_23", se = "_attachmentCounter_1voj8_27", ce = "_attachmentError_1voj8_36", ie = "_documentIframe_1voj8_44", me = "_documentImage_1voj8_50", d = {
|
|
5
5
|
documentsTableBody: ne,
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { jsx as s, jsxs as J, Fragment as W } from "react/jsx-runtime";
|
|
2
|
-
import { u as Z, d as ee, f as re, g as ae, b as c, X as te, R as
|
|
3
|
-
import { useState as
|
|
4
|
-
const pe = "
|
|
2
|
+
import { u as Z, d as ee, f as re, g as ae, b as c, X as te, R as v, m as oe, c as se, e as U, A as ne, _ as de, r as ie, Y as ue, I as me, j as le, B as ce, P as fe, k as ye } from "./index-DtJvSxJc.js";
|
|
3
|
+
import { useState as S, useMemo as d, useCallback as f } from "react";
|
|
4
|
+
const pe = "_formsTableBody_ourq9_5", be = "_customAccordianItem_ourq9_10", A = {
|
|
5
5
|
formsTableBody: pe,
|
|
6
6
|
customAccordianItem: be
|
|
7
7
|
}, ge = (u) => u ? u.extension?.find(
|
|
8
8
|
(n) => n.url === me
|
|
9
|
-
)?.valueString : void 0,
|
|
9
|
+
)?.valueString : void 0, Oe = ({
|
|
10
10
|
episodeOfCareUuids: u,
|
|
11
11
|
encounterUuids: n,
|
|
12
12
|
config: C
|
|
13
13
|
}) => {
|
|
14
|
-
const { t: o } = Z(), m = ee(), [l,
|
|
14
|
+
const { t: o } = Z(), m = ee(), [l, O] = S(!1), [t, h] = S(null), { numberOfVisits: k, hideThumbnail: j = !1 } = C ?? {}, B = re(
|
|
15
15
|
u,
|
|
16
16
|
n
|
|
17
|
-
),
|
|
17
|
+
), H = ae(), {
|
|
18
18
|
data: y = [],
|
|
19
19
|
isLoading: _,
|
|
20
20
|
isError: T,
|
|
21
|
-
error:
|
|
22
|
-
refetch:
|
|
21
|
+
error: K,
|
|
22
|
+
refetch: x
|
|
23
23
|
} = c({
|
|
24
24
|
queryKey: ["forms", m, u],
|
|
25
25
|
queryFn: () => le(m, void 0, k),
|
|
@@ -55,7 +55,7 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", A = {
|
|
|
55
55
|
});
|
|
56
56
|
te(
|
|
57
57
|
(e) => {
|
|
58
|
-
e.patientUUID === m && e.updatedConcepts.size > 0 && (
|
|
58
|
+
e.patientUUID === m && e.updatedConcepts.size > 0 && (x(), H.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
59
59
|
},
|
|
60
60
|
[m]
|
|
61
61
|
);
|
|
@@ -64,9 +64,9 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", A = {
|
|
|
64
64
|
return !r || r.includes(t.formName);
|
|
65
65
|
}), [g, t?.formName]), Y = d(() => {
|
|
66
66
|
if (b)
|
|
67
|
-
return
|
|
67
|
+
return v(b).message;
|
|
68
68
|
if (N)
|
|
69
|
-
return
|
|
69
|
+
return v(N).message;
|
|
70
70
|
}, [b, N]), L = d(
|
|
71
71
|
() => [
|
|
72
72
|
{ key: "recordedOn", header: o("RECORDED_ON") },
|
|
@@ -84,12 +84,12 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", A = {
|
|
|
84
84
|
(r, a) => {
|
|
85
85
|
const i = a.formName;
|
|
86
86
|
r[i] ??= [];
|
|
87
|
-
const
|
|
87
|
+
const I = a.providers.map((X) => X.providerName).filter(Boolean).join(", ");
|
|
88
88
|
return r[i].push({
|
|
89
89
|
id: a.encounterUuid,
|
|
90
90
|
formName: a.formName,
|
|
91
91
|
recordedOn: oe(a.encounterDateTime, o, !0).formattedResult,
|
|
92
|
-
recordedBy:
|
|
92
|
+
recordedBy: I ?? "--",
|
|
93
93
|
encounterDateTime: a.encounterDateTime,
|
|
94
94
|
encounterUuid: a.encounterUuid
|
|
95
95
|
}), r;
|
|
@@ -100,38 +100,38 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", A = {
|
|
|
100
100
|
([r, a]) => ({
|
|
101
101
|
formName: r,
|
|
102
102
|
records: a.sort(
|
|
103
|
-
(i,
|
|
103
|
+
(i, I) => I.encounterDateTime - i.encounterDateTime
|
|
104
104
|
)
|
|
105
105
|
})
|
|
106
106
|
).sort((r, a) => r.formName.localeCompare(a.formName));
|
|
107
|
-
}, [E, o]),
|
|
108
|
-
|
|
107
|
+
}, [E, o]), D = f((e) => {
|
|
108
|
+
h(e), O(!0);
|
|
109
109
|
}, []), G = f(() => {
|
|
110
|
-
|
|
111
|
-
}, []),
|
|
110
|
+
O(!1), h(null);
|
|
111
|
+
}, []), q = f(
|
|
112
112
|
(e, r) => {
|
|
113
113
|
switch (r) {
|
|
114
114
|
case "recordedOn":
|
|
115
|
-
return /* @__PURE__ */ s(se, { onClick: () =>
|
|
115
|
+
return /* @__PURE__ */ s(se, { onClick: () => D(e), children: e.recordedOn });
|
|
116
116
|
case "recordedBy":
|
|
117
117
|
return e.recordedBy;
|
|
118
118
|
default:
|
|
119
119
|
return null;
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
|
-
[
|
|
122
|
+
[D]
|
|
123
123
|
);
|
|
124
124
|
return /* @__PURE__ */ J(W, { children: [
|
|
125
|
-
/* @__PURE__ */ s("div", { "data-testid": "forms-table", children: _ || T || M.length === 0 || B ? /* @__PURE__ */ s(
|
|
126
|
-
|
|
125
|
+
/* @__PURE__ */ s("div", { id: "forms-table", "data-testid": "forms-table", children: _ || T || M.length === 0 || B ? /* @__PURE__ */ s(
|
|
126
|
+
U,
|
|
127
127
|
{
|
|
128
128
|
headers: L,
|
|
129
129
|
ariaLabel: o("FORMS_HEADING"),
|
|
130
130
|
rows: [],
|
|
131
131
|
loading: _,
|
|
132
|
-
errorStateMessage: T ?
|
|
132
|
+
errorStateMessage: T ? K?.message : void 0,
|
|
133
133
|
emptyStateMessage: o("FORMS_UNAVAILABLE"),
|
|
134
|
-
renderCell:
|
|
134
|
+
renderCell: q,
|
|
135
135
|
className: A.formsTableBody,
|
|
136
136
|
dataTestId: "forms-table"
|
|
137
137
|
}
|
|
@@ -145,7 +145,7 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", A = {
|
|
|
145
145
|
testId: `accordian-title-${a}`,
|
|
146
146
|
open: r === 0,
|
|
147
147
|
children: /* @__PURE__ */ s(
|
|
148
|
-
|
|
148
|
+
U,
|
|
149
149
|
{
|
|
150
150
|
headers: L,
|
|
151
151
|
ariaLabel: o("FORMS_HEADING"),
|
|
@@ -154,7 +154,7 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", A = {
|
|
|
154
154
|
errorStateMessage: "",
|
|
155
155
|
sortable: z,
|
|
156
156
|
emptyStateMessage: o("FORMS_UNAVAILABLE"),
|
|
157
|
-
renderCell:
|
|
157
|
+
renderCell: q,
|
|
158
158
|
className: A.formsTableBody,
|
|
159
159
|
dataTestId: `forms-table-${a}`
|
|
160
160
|
}
|
|
@@ -192,5 +192,5 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", A = {
|
|
|
192
192
|
] });
|
|
193
193
|
};
|
|
194
194
|
export {
|
|
195
|
-
|
|
195
|
+
Oe as default
|
|
196
196
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-
|
|
2
|
-
import { S as d, T as f, U as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-CIix-ijy.js";
|
|
2
|
+
import { S as d, T as f, U as e } from "./index-DtJvSxJc.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-
|
|
2
|
-
import { S as v, T as C, U as e } from "./index-
|
|
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-CIix-ijy.js";
|
|
2
|
+
import { S as v, T as C, U as e } from "./index-DtJvSxJc.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as I, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { d as
|
|
2
|
+
import { d as V, a as w, u as S, h as q, $ as G, b as H, X as Q, i as X, G as k, J as M, x as W, e as j, W as J, E as D, K as P, v as Y, l as Z, H as z, D as ee, N as ae, Z as te } from "./index-DtJvSxJc.js";
|
|
3
3
|
import { useRef as se, useEffect as O, useMemo as R } from "react";
|
|
4
|
-
const F = (a, n, d, l,
|
|
5
|
-
const t = P(a, n,
|
|
4
|
+
const F = (a, n, d, l, p, r) => {
|
|
5
|
+
const t = P(a, n, p), s = t.value, i = Y(s);
|
|
6
6
|
let o = s;
|
|
7
7
|
i === "Image" && (o = /* @__PURE__ */ u(
|
|
8
8
|
z,
|
|
@@ -20,7 +20,7 @@ const F = (a, n, d, l, b, r) => {
|
|
|
20
20
|
hideThumbnail: r
|
|
21
21
|
}
|
|
22
22
|
)), i === "PDF" && (o = /* @__PURE__ */ u(ae, { id: `${s}-pdf`, src: s }));
|
|
23
|
-
const
|
|
23
|
+
const b = p("OBSERVATIONS_RECORDED_BY", {
|
|
24
24
|
provider: t.provider
|
|
25
25
|
}), m = a.display, v = a.observationValue?.isAbnormal ? "abnormal-obs" : "obs", c = l ? `${l}-${v}-${m}-${d}-${n}` : `${v}-${m}-${d}-${n}`;
|
|
26
26
|
return /* @__PURE__ */ u(
|
|
@@ -28,14 +28,14 @@ const F = (a, n, d, l, b, r) => {
|
|
|
28
28
|
{
|
|
29
29
|
header: t.header,
|
|
30
30
|
value: o,
|
|
31
|
-
info:
|
|
31
|
+
info: b,
|
|
32
32
|
id: c,
|
|
33
33
|
testId: c,
|
|
34
34
|
ariaLabel: c
|
|
35
35
|
},
|
|
36
36
|
`obs-${a.id}`
|
|
37
37
|
);
|
|
38
|
-
}, re = (a, n, d, l,
|
|
38
|
+
}, re = (a, n, d, l, p, r, t) => /* @__PURE__ */ u(
|
|
39
39
|
D,
|
|
40
40
|
{
|
|
41
41
|
title: a.display,
|
|
@@ -45,7 +45,7 @@ const F = (a, n, d, l, b, r) => {
|
|
|
45
45
|
(s, i) => F(
|
|
46
46
|
s,
|
|
47
47
|
i,
|
|
48
|
-
|
|
48
|
+
p,
|
|
49
49
|
r,
|
|
50
50
|
n,
|
|
51
51
|
t
|
|
@@ -58,7 +58,7 @@ const F = (a, n, d, l, b, r) => {
|
|
|
58
58
|
title: n = "",
|
|
59
59
|
hideThumbnail: d
|
|
60
60
|
}) => {
|
|
61
|
-
const { t: l } = S(),
|
|
61
|
+
const { t: l } = S(), p = (r, t, s) => {
|
|
62
62
|
const i = J(r.encounterDetails, l);
|
|
63
63
|
return /* @__PURE__ */ I(
|
|
64
64
|
D,
|
|
@@ -68,9 +68,9 @@ const F = (a, n, d, l, b, r) => {
|
|
|
68
68
|
open: t,
|
|
69
69
|
children: [
|
|
70
70
|
r.observations.map(
|
|
71
|
-
(o,
|
|
71
|
+
(o, b) => F(
|
|
72
72
|
o,
|
|
73
|
-
|
|
73
|
+
b,
|
|
74
74
|
s,
|
|
75
75
|
n,
|
|
76
76
|
l,
|
|
@@ -78,11 +78,11 @@ const F = (a, n, d, l, b, r) => {
|
|
|
78
78
|
)
|
|
79
79
|
),
|
|
80
80
|
r.groupedObservations.map(
|
|
81
|
-
(o,
|
|
81
|
+
(o, b) => re(
|
|
82
82
|
o,
|
|
83
83
|
l,
|
|
84
84
|
t,
|
|
85
|
-
|
|
85
|
+
b,
|
|
86
86
|
s,
|
|
87
87
|
n,
|
|
88
88
|
d
|
|
@@ -100,19 +100,19 @@ const F = (a, n, d, l, b, r) => {
|
|
|
100
100
|
"data-testid": "obs-by-encounter-test-id",
|
|
101
101
|
"aria-label": "obs-by-encounter-aria-label",
|
|
102
102
|
children: a.map(
|
|
103
|
-
(r, t) =>
|
|
103
|
+
(r, t) => p(r, t === 0, t)
|
|
104
104
|
)
|
|
105
105
|
}
|
|
106
106
|
);
|
|
107
|
-
}, oe = "
|
|
107
|
+
}, oe = "_observations_w45xp_1", ne = "_title_w45xp_18", N = {
|
|
108
108
|
observations: oe,
|
|
109
109
|
title: ne
|
|
110
|
-
}, de = (a) => ["conceptUuid", a], le = (a, n) => ["observations", a, ...n],
|
|
110
|
+
}, de = (a) => ["conceptUuid", a], le = (a, n) => ["observations", a, ...n], be = ({ config: a }) => {
|
|
111
111
|
const n = a, {
|
|
112
112
|
conceptNames: d = [],
|
|
113
113
|
conceptUuid: l = [],
|
|
114
|
-
hideThumbnail:
|
|
115
|
-
} = n, r = se(/* @__PURE__ */ new Set()), t =
|
|
114
|
+
hideThumbnail: p = !1
|
|
115
|
+
} = n, r = se(/* @__PURE__ */ new Set()), t = V(), { addNotification: s } = w(), { t: i } = S(), o = q({
|
|
116
116
|
queries: d.map((e) => ({
|
|
117
117
|
queryKey: de(e),
|
|
118
118
|
queryFn: () => G(e),
|
|
@@ -122,16 +122,16 @@ const F = (a, n, d, l, b, r) => {
|
|
|
122
122
|
O(() => {
|
|
123
123
|
o.forEach((e, h) => {
|
|
124
124
|
if (e.isError && !r.current.has(h)) {
|
|
125
|
-
const
|
|
125
|
+
const K = d[h];
|
|
126
126
|
s({
|
|
127
127
|
title: i("ERROR_DEFAULT_TITLE"),
|
|
128
|
-
message: i("ERROR_FETCHING_CONCEPT", { conceptName:
|
|
128
|
+
message: i("ERROR_FETCHING_CONCEPT", { conceptName: K }),
|
|
129
129
|
type: "error"
|
|
130
130
|
}), r.current.add(h);
|
|
131
131
|
} else e.isError || r.current.delete(h);
|
|
132
132
|
});
|
|
133
133
|
}, [o, d]);
|
|
134
|
-
const
|
|
134
|
+
const b = R(() => o.map((e) => e.data?.uuid).filter((e) => !!e), [o]), m = R(() => [.../* @__PURE__ */ new Set([...b, ...l])], [b, l]), v = R(() => d.length === 0 ? !0 : o.every((e) => !e.isLoading), [o, d.length]), {
|
|
135
135
|
data: c,
|
|
136
136
|
isLoading: A,
|
|
137
137
|
isError: T,
|
|
@@ -157,13 +157,13 @@ const F = (a, n, d, l, b, r) => {
|
|
|
157
157
|
}, [T]);
|
|
158
158
|
const $ = R(() => {
|
|
159
159
|
if (!c) return [];
|
|
160
|
-
const e = X(c), h =
|
|
160
|
+
const e = X(c), h = k(e);
|
|
161
161
|
return M(h);
|
|
162
162
|
}, [c]), L = [
|
|
163
163
|
{ key: "name", header: "name" },
|
|
164
164
|
{ key: "value", header: "value" },
|
|
165
165
|
{ key: "form", header: "form" }
|
|
166
|
-
],
|
|
166
|
+
], _ = A || !v, f = T && v, C = (!c || c.entry?.length === 0 || m.length === 0) && v, U = f ? i("ERROR_FETCHING_OBSERVATIONS") : null, x = C ? i("NO_OBSERVATIONS_FOUND") : void 0, B = $.length > 0 && !_ && !f, E = n.titleTranslationKey, y = E ? i(E) : "";
|
|
167
167
|
return /* @__PURE__ */ I(
|
|
168
168
|
"div",
|
|
169
169
|
{
|
|
@@ -182,12 +182,12 @@ const F = (a, n, d, l, b, r) => {
|
|
|
182
182
|
children: /* @__PURE__ */ u("p", { children: y })
|
|
183
183
|
}
|
|
184
184
|
),
|
|
185
|
-
|
|
185
|
+
B ? /* @__PURE__ */ u(
|
|
186
186
|
ie,
|
|
187
187
|
{
|
|
188
188
|
groupedData: $,
|
|
189
189
|
title: y,
|
|
190
|
-
hideThumbnail:
|
|
190
|
+
hideThumbnail: p
|
|
191
191
|
}
|
|
192
192
|
) : /* @__PURE__ */ u(
|
|
193
193
|
j,
|
|
@@ -195,9 +195,9 @@ const F = (a, n, d, l, b, r) => {
|
|
|
195
195
|
headers: L,
|
|
196
196
|
rows: [],
|
|
197
197
|
ariaLabel: i("OBSERVATIONS"),
|
|
198
|
-
loading:
|
|
199
|
-
errorStateMessage:
|
|
200
|
-
emptyStateMessage:
|
|
198
|
+
loading: _,
|
|
199
|
+
errorStateMessage: U,
|
|
200
|
+
emptyStateMessage: x,
|
|
201
201
|
dataTestId: "observations-table"
|
|
202
202
|
}
|
|
203
203
|
)
|
|
@@ -207,6 +207,6 @@ const F = (a, n, d, l, b, r) => {
|
|
|
207
207
|
};
|
|
208
208
|
export {
|
|
209
209
|
de as conceptUuidQueryKeys,
|
|
210
|
-
|
|
210
|
+
be as default,
|
|
211
211
|
le as observationsQueryKeys
|
|
212
212
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as we, a0 as z, a1 as xt, a2 as B, T as q, U as y, a3 as Ro, a4 as ye, a5 as R, a6 as _, a7 as k, a8 as N, a9 as A, aa as bs, ab as ir, ac as $e, ad as U, ae as Hn, af as Vn, ag as dt, ah as D, ai as xs, aj as cn, ak as Be, al as ws, am as qt, an as zt, ao as $s, ap as Cs, aq as $n, ar as Ss, as as Nr, at as Bt, au as zo, av as ks, aw as Es, ax as j, ay as Ur, az as Ms, aA as Ds, aB as sr, aC as As, aD as Ts, aE as zn, aF as Fs, aG as Is, aH as Z, aI as Ps, aJ as Ls } from "./index-
|
|
1
|
+
import { V as we, a0 as z, a1 as xt, a2 as B, T as q, U as y, a3 as Ro, a4 as ye, a5 as R, a6 as _, a7 as k, a8 as N, a9 as A, aa as bs, ab as ir, ac as $e, ad as U, ae as Hn, af as Vn, ag as dt, ah as D, ai as xs, aj as cn, ak as Be, al as ws, am as qt, an as zt, ao as $s, ap as Cs, aq as $n, ar as Ss, as as Nr, at as Bt, au as zo, av as ks, aw as Es, ax as j, ay as Ur, az as Ms, aA as Ds, aB as sr, aC as As, aD as Ts, aE as zn, aF as Fs, aG as Is, aH as Z, aI as Ps, aJ as Ls } from "./index-DtJvSxJc.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as n, jsxs as f } from "react/jsx-runtime";
|
|
2
|
-
import { n as V, o as O, u as C, y as h,
|
|
2
|
+
import { n as V, o as O, u as C, y as h, p as P, g as B, a as G, q as x, s as A, b as q, t as U, w as F, z as $, C as k, L as w, M as Q, O as j, Q as H } from "./index-DtJvSxJc.js";
|
|
3
3
|
import { useState as I, useMemo as _ } from "react";
|
|
4
4
|
const K = V(
|
|
5
5
|
O,
|
|
6
6
|
"useAppointmentsConfig",
|
|
7
7
|
"AppointmentsConfigProvider"
|
|
8
|
-
),
|
|
8
|
+
), Y = ({
|
|
9
9
|
serviceName: e,
|
|
10
10
|
isDeleting: a,
|
|
11
11
|
onConfirm: t,
|
|
@@ -35,10 +35,10 @@ const K = V(
|
|
|
35
35
|
"speciality",
|
|
36
36
|
"durationMins",
|
|
37
37
|
"description"
|
|
38
|
-
],
|
|
39
|
-
page:
|
|
40
|
-
noPrivilegeContainer:
|
|
41
|
-
table:
|
|
38
|
+
], W = "app:appointments:manageServices", z = "app:appointments:adminTab", Z = "_page_10v94_1", J = "_noPrivilegeContainer_10v94_1", X = "_table_10v94_18", d = {
|
|
39
|
+
page: Z,
|
|
40
|
+
noPrivilegeContainer: J,
|
|
41
|
+
table: X
|
|
42
42
|
};
|
|
43
43
|
function ee(e) {
|
|
44
44
|
return e.filter((a) => !p.includes(a));
|
|
@@ -78,13 +78,13 @@ const re = () => {
|
|
|
78
78
|
...p
|
|
79
79
|
], S = A(s, z), M = A(
|
|
80
80
|
s,
|
|
81
|
-
|
|
81
|
+
W
|
|
82
82
|
), m = _(
|
|
83
83
|
() => ee(l),
|
|
84
84
|
[l]
|
|
85
85
|
), { data: L, isLoading: b, isError: D } = q({
|
|
86
86
|
queryKey: ["allAppointmentServices"],
|
|
87
|
-
queryFn:
|
|
87
|
+
queryFn: H,
|
|
88
88
|
enabled: S
|
|
89
89
|
}), N = _(
|
|
90
90
|
() => te(l, e),
|
|
@@ -95,7 +95,7 @@ const re = () => {
|
|
|
95
95
|
), g = async () => {
|
|
96
96
|
u(!0);
|
|
97
97
|
try {
|
|
98
|
-
await
|
|
98
|
+
await j(E.id), t({
|
|
99
99
|
title: e("ADMIN_ALL_SERVICES_DELETE_SUCCESS_TITLE"),
|
|
100
100
|
message: e("ADMIN_ALL_SERVICES_DELETE_SUCCESS_MESSAGE"),
|
|
101
101
|
type: "success",
|
|
@@ -120,7 +120,7 @@ const re = () => {
|
|
|
120
120
|
label: e("ADMIN_ALL_SERVICES_DELETE_ICON_LABEL"),
|
|
121
121
|
disabled: !M,
|
|
122
122
|
onClick: () => c(r),
|
|
123
|
-
children: /* @__PURE__ */ n(
|
|
123
|
+
children: /* @__PURE__ */ n(Q, {})
|
|
124
124
|
}
|
|
125
125
|
) : p.includes(o) ? r[o] ?? "-" : r.attributes[o] ?? "-", y = [
|
|
126
126
|
{ id: "home", label: e("BREADCRUMB_HOME"), href: U },
|
|
@@ -154,7 +154,7 @@ const re = () => {
|
|
|
154
154
|
}
|
|
155
155
|
),
|
|
156
156
|
E && /* @__PURE__ */ n(
|
|
157
|
-
|
|
157
|
+
Y,
|
|
158
158
|
{
|
|
159
159
|
serviceName: E.name,
|
|
160
160
|
isDeleting: v,
|