@bahmni/appointments-app 0.0.1-dev.340 → 0.0.1-dev.342
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-DLUCAqub-ByDEFM3T.js → DocumentsTable-CwsQxB8z-CwsUelGo.js} +5 -5
- package/dist/{FormsTable-DfcTBBcW-DY-qO08P.js → FormsTable-D7qAq2oV-BFG4xmCS.js} +34 -34
- package/dist/{LNWAZHJI-CS5E9Nxi.js → LNWAZHJI-DYLA9-Fk.js} +2 -2
- package/dist/{MWZ6AO7Z-BT5HM6gO.js → MWZ6AO7Z-BGlwn-5g.js} +2 -2
- package/dist/{Observations-d1dtuDfC-Dnn0fXmm.js → Observations-CuU8iPzI-3KTugQKM.js} +19 -19
- package/dist/{YPM2AS64-DrrVU9ug.js → YPM2AS64-mOL-lbUD.js} +1 -1
- package/dist/{index-B92O3_On.js → index-C9IFErQw.js} +7 -7
- package/dist/{index-C49jsVFh.js → index-DjcvXRG2.js} +9 -9
- package/dist/{index-BDBSFoaD.js → index-eyrL1dkG.js} +9107 -9085
- 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 h, Fragment as x } from "react/jsx-runtime";
|
|
2
|
-
import { l as G, u as W, B as Y,
|
|
2
|
+
import { l as G, u as W, B as Y, V as J, j as X, v as Z, S as ee, m as te } from "./index-eyrL1dkG.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
4
|
import { useState as c, useCallback as _, useEffect as I, useMemo as p } from "react";
|
|
5
5
|
const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTable-module_viewAttachmentsLink__aQ1on", re = "DocumentsTable-module_documentViewerContainer__F5m8D", de = "DocumentsTable-module_attachmentItem__17KA7", se = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", le = "DocumentsTable-module_documentIframe__ptq5I", ce = "DocumentsTable-module_documentImage__KQVgS", d = {
|
|
@@ -36,9 +36,9 @@ const Te = [
|
|
|
36
36
|
], he = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, R = (a) => a.attachments.length > 0 ? a.attachments : a.documentUrl ? [{ url: a.documentUrl, contentType: a.contentType }] : [], Ne = ({ config: a, encounterUuids: E }) => {
|
|
37
37
|
const [s, w] = c(!1), [o, U] = c(
|
|
38
38
|
null
|
|
39
|
-
), [
|
|
39
|
+
), [V, O] = c(
|
|
40
40
|
/* @__PURE__ */ new Set()
|
|
41
|
-
), g = G(), { t: n } = W(), { addNotification: L } = Y(),
|
|
41
|
+
), g = G(), { t: n } = W(), { addNotification: L } = Y(), $ = Number(a?.pageSize) || 5, [f, C] = c(1), [u, k] = c($), [F, A] = c(void 0), M = _((e) => {
|
|
42
42
|
U(e), w(!0);
|
|
43
43
|
}, []), j = _(() => {
|
|
44
44
|
w(!1), U(null), O(/* @__PURE__ */ new Set());
|
|
@@ -91,7 +91,7 @@ const Te = [
|
|
|
91
91
|
}, [s, o]);
|
|
92
92
|
const q = _(
|
|
93
93
|
(e, t) => {
|
|
94
|
-
t !== u ? (
|
|
94
|
+
t !== u ? (k(t), C(1), A(void 0)) : C(e);
|
|
95
95
|
},
|
|
96
96
|
[u]
|
|
97
97
|
), N = p(
|
|
@@ -169,7 +169,7 @@ const Te = [
|
|
|
169
169
|
size: "lg",
|
|
170
170
|
testId: "document-view-modal",
|
|
171
171
|
children: /* @__PURE__ */ r("div", { className: d.documentViewerContainer, children: T.map((e, t) => {
|
|
172
|
-
const m = B(e.url), l = e.contentType?.toLowerCase().includes("pdf"), S = (e.contentType?.toLowerCase().includes("image") ?? !1) || he.test(e.url ?? ""), D =
|
|
172
|
+
const m = B(e.url), l = e.contentType?.toLowerCase().includes("pdf"), S = (e.contentType?.toLowerCase().includes("image") ?? !1) || he.test(e.url ?? ""), D = V.has(t);
|
|
173
173
|
return m === "#" || D ? /* @__PURE__ */ h(
|
|
174
174
|
"div",
|
|
175
175
|
{
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import { jsx as i, jsxs as re, Fragment as oe } from "react/jsx-runtime";
|
|
2
|
-
import { u as ae, l as se, k as te,
|
|
2
|
+
import { u as ae, l as se, k as te, E as ne, N as de, a as ie, g as me, K as le, _ as ce, Z as q, v as ue, j as fe, S as k, L as ye, R as he, m as be, H as ge } from "./index-eyrL1dkG.js";
|
|
3
3
|
import { useQueryClient as pe, useQuery as y } from "@tanstack/react-query";
|
|
4
|
-
import { useState as
|
|
4
|
+
import { useState as H, useMemo as d, useCallback as h } from "react";
|
|
5
5
|
const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_customAccordianItem__isszs", A = {
|
|
6
6
|
formsTableBody: Ne,
|
|
7
7
|
customAccordianItem: Oe
|
|
8
8
|
}, ve = ({
|
|
9
9
|
episodeOfCareUuids: I,
|
|
10
10
|
encounterUuids: l,
|
|
11
|
-
config:
|
|
11
|
+
config: K
|
|
12
12
|
}) => {
|
|
13
|
-
const { t: n } = ae(), c = se(), [u, L] =
|
|
14
|
-
numberOfVisits:
|
|
15
|
-
hideThumbnail:
|
|
13
|
+
const { t: n } = ae(), c = se(), [u, L] = H(!1), [s, T] = H(null), {
|
|
14
|
+
numberOfVisits: j,
|
|
15
|
+
hideThumbnail: w = !1,
|
|
16
16
|
forms: f
|
|
17
|
-
} =
|
|
17
|
+
} = K ?? {}, v = te(
|
|
18
18
|
I,
|
|
19
19
|
l
|
|
20
|
-
),
|
|
21
|
-
data:
|
|
22
|
-
isLoading:
|
|
23
|
-
isError:
|
|
24
|
-
error:
|
|
25
|
-
refetch:
|
|
20
|
+
), G = pe(), {
|
|
21
|
+
data: _ = [],
|
|
22
|
+
isLoading: B,
|
|
23
|
+
isError: E,
|
|
24
|
+
error: V,
|
|
25
|
+
refetch: $
|
|
26
26
|
} = y({
|
|
27
27
|
queryKey: ["forms", c, I],
|
|
28
|
-
queryFn: () => ne(c, void 0,
|
|
28
|
+
queryFn: () => ne(c, void 0, j),
|
|
29
29
|
enabled: !!c && !v
|
|
30
|
-
}),
|
|
31
|
-
let e =
|
|
30
|
+
}), F = d(() => {
|
|
31
|
+
let e = _;
|
|
32
32
|
return l && l.length > 0 && (e = e.filter(
|
|
33
33
|
(r) => l.includes(r.encounterUuid)
|
|
34
34
|
)), Array.isArray(f) && f.length > 0 && (e = e.filter(
|
|
35
35
|
(r) => f.some((o) => o.toLowerCase() === r.formName.toLowerCase())
|
|
36
36
|
)), e;
|
|
37
|
-
}, [
|
|
37
|
+
}, [_, l, f]), { data: S = [] } = y({
|
|
38
38
|
queryKey: ["observationForms"],
|
|
39
39
|
queryFn: () => de()
|
|
40
|
-
}),
|
|
41
|
-
(e) =>
|
|
42
|
-
[
|
|
40
|
+
}), M = h(
|
|
41
|
+
(e) => S.find((r) => r.name === e)?.uuid,
|
|
42
|
+
[S]
|
|
43
43
|
), b = d(() => {
|
|
44
44
|
if (s)
|
|
45
|
-
return
|
|
46
|
-
}, [s,
|
|
45
|
+
return M(s.formName);
|
|
46
|
+
}, [s, M]), {
|
|
47
47
|
data: m,
|
|
48
|
-
isLoading:
|
|
48
|
+
isLoading: x,
|
|
49
49
|
isError: z,
|
|
50
50
|
error: g
|
|
51
51
|
} = y({
|
|
@@ -64,7 +64,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
64
64
|
});
|
|
65
65
|
le(
|
|
66
66
|
(e) => {
|
|
67
|
-
e.patientUUID === c && e.updatedConcepts.size > 0 && (
|
|
67
|
+
e.patientUUID === c && e.updatedConcepts.size > 0 && ($(), G.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
68
68
|
},
|
|
69
69
|
[c]
|
|
70
70
|
);
|
|
@@ -101,7 +101,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
101
101
|
return q(g).message;
|
|
102
102
|
if (N)
|
|
103
103
|
return q(N).message;
|
|
104
|
-
}, [g, N]),
|
|
104
|
+
}, [g, N]), R = d(
|
|
105
105
|
() => [
|
|
106
106
|
{ key: "recordedOn", header: n("RECORDED_ON") },
|
|
107
107
|
{ key: "recordedBy", header: n("RECORDED_BY") }
|
|
@@ -114,7 +114,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
114
114
|
],
|
|
115
115
|
[]
|
|
116
116
|
), C = d(() => {
|
|
117
|
-
const e =
|
|
117
|
+
const e = F.reduce(
|
|
118
118
|
(r, o) => {
|
|
119
119
|
const t = o.formName;
|
|
120
120
|
r[t] ??= [];
|
|
@@ -138,7 +138,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
138
138
|
)
|
|
139
139
|
})
|
|
140
140
|
).sort((r, o) => r.formName.localeCompare(o.formName));
|
|
141
|
-
}, [
|
|
141
|
+
}, [F, n]), D = h((e) => {
|
|
142
142
|
T(e), L(!0);
|
|
143
143
|
}, []), ee = h(() => {
|
|
144
144
|
L(!1), T(null);
|
|
@@ -156,14 +156,14 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
156
156
|
[D]
|
|
157
157
|
);
|
|
158
158
|
return /* @__PURE__ */ re(oe, { children: [
|
|
159
|
-
/* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children:
|
|
159
|
+
/* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: B || E || C.length === 0 || v ? /* @__PURE__ */ i(
|
|
160
160
|
k,
|
|
161
161
|
{
|
|
162
|
-
headers:
|
|
162
|
+
headers: R,
|
|
163
163
|
ariaLabel: n("FORMS_HEADING"),
|
|
164
164
|
rows: [],
|
|
165
|
-
loading:
|
|
166
|
-
errorStateMessage:
|
|
165
|
+
loading: B,
|
|
166
|
+
errorStateMessage: E ? V?.message : void 0,
|
|
167
167
|
emptyStateMessage: n("FORMS_UNAVAILABLE"),
|
|
168
168
|
renderCell: U,
|
|
169
169
|
className: A.formsTableBody,
|
|
@@ -181,7 +181,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
181
181
|
children: /* @__PURE__ */ i(
|
|
182
182
|
k,
|
|
183
183
|
{
|
|
184
|
-
headers:
|
|
184
|
+
headers: R,
|
|
185
185
|
ariaLabel: n("FORMS_HEADING"),
|
|
186
186
|
rows: t,
|
|
187
187
|
loading: !1,
|
|
@@ -213,12 +213,12 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
213
213
|
ge,
|
|
214
214
|
{
|
|
215
215
|
observations: P,
|
|
216
|
-
isLoading:
|
|
216
|
+
isLoading: x || Q,
|
|
217
217
|
isError: z || Z,
|
|
218
218
|
errorMessage: W,
|
|
219
219
|
emptyStateMessage: n("NO_FORM_DATA_AVAILABLE"),
|
|
220
220
|
testIdPrefix: s.formName,
|
|
221
|
-
hideThumbnail:
|
|
221
|
+
hideThumbnail: w,
|
|
222
222
|
controlOrder: Y,
|
|
223
223
|
sectionMap: J
|
|
224
224
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-
|
|
2
|
-
import { ai as d, aj as f, ak as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-mOL-lbUD.js";
|
|
2
|
+
import { ai as d, aj as f, ak as e } from "./index-eyrL1dkG.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 i, a as u, b as m, C as P, Q as d } from "./YPM2AS64-
|
|
2
|
-
import { ai as v, aj as C, ak as e } from "./index-
|
|
1
|
+
import { c as s, T as c, P as i, a as u, b as m, C as P, Q as d } from "./YPM2AS64-mOL-lbUD.js";
|
|
2
|
+
import { ai as v, aj as C, ak as e } from "./index-eyrL1dkG.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as S, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { l as q, B as
|
|
2
|
+
import { l as q, B as w, u as N, b as Q, w as k, K as z, A as H, C as M, z as x, c as G, S as Y, d as j, Y as A, e as P, f as J, h as W, o as X, i as Z, n as ee } from "./index-eyrL1dkG.js";
|
|
3
3
|
import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as se, useEffect as I, useMemo as R } from "react";
|
|
5
5
|
const C = (a, n, d, l, b, r) => {
|
|
6
|
-
const t =
|
|
6
|
+
const t = P(a, n, b), s = t.value, o = J(s);
|
|
7
7
|
let i = s;
|
|
8
8
|
o === "Image" && (i = /* @__PURE__ */ u(
|
|
9
9
|
X,
|
|
@@ -60,7 +60,7 @@ const C = (a, n, d, l, b, r) => {
|
|
|
60
60
|
hideThumbnail: d
|
|
61
61
|
}) => {
|
|
62
62
|
const { t: l } = N(), b = (r, t, s) => {
|
|
63
|
-
const o =
|
|
63
|
+
const o = j(r.encounterDetails, l);
|
|
64
64
|
return /* @__PURE__ */ S(
|
|
65
65
|
A,
|
|
66
66
|
{
|
|
@@ -113,7 +113,7 @@ const C = (a, n, d, l, b, r) => {
|
|
|
113
113
|
conceptNames: d = [],
|
|
114
114
|
conceptUuid: l = [],
|
|
115
115
|
hideThumbnail: b = !1
|
|
116
|
-
} = n, r = se(/* @__PURE__ */ new Set()), t = q(), { addNotification: s } =
|
|
116
|
+
} = n, r = se(/* @__PURE__ */ new Set()), t = q(), { addNotification: s } = w(), { t: o } = N(), i = ae({
|
|
117
117
|
queries: d.map((e) => ({
|
|
118
118
|
queryKey: de(e),
|
|
119
119
|
queryFn: () => Q(e),
|
|
@@ -123,10 +123,10 @@ const C = (a, n, d, l, b, r) => {
|
|
|
123
123
|
I(() => {
|
|
124
124
|
i.forEach((e, h) => {
|
|
125
125
|
if (e.isError && !r.current.has(h)) {
|
|
126
|
-
const
|
|
126
|
+
const V = d[h];
|
|
127
127
|
s({
|
|
128
128
|
title: o("ERROR_DEFAULT_TITLE"),
|
|
129
|
-
message: o("ERROR_FETCHING_CONCEPT", { conceptName:
|
|
129
|
+
message: o("ERROR_FETCHING_CONCEPT", { conceptName: V }),
|
|
130
130
|
type: "error"
|
|
131
131
|
}), r.current.add(h);
|
|
132
132
|
} else e.isError || r.current.delete(h);
|
|
@@ -136,19 +136,19 @@ const C = (a, n, d, l, b, r) => {
|
|
|
136
136
|
data: c,
|
|
137
137
|
isLoading: D,
|
|
138
138
|
isError: T,
|
|
139
|
-
refetch:
|
|
139
|
+
refetch: g
|
|
140
140
|
} = te({
|
|
141
141
|
queryKey: le(t, p),
|
|
142
142
|
queryFn: () => k(t, p),
|
|
143
143
|
enabled: !!t && p.length > 0 && y
|
|
144
144
|
});
|
|
145
|
-
|
|
145
|
+
z(
|
|
146
146
|
(e) => {
|
|
147
147
|
e.patientUUID === t && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
|
|
148
148
|
(h) => p.includes(h)
|
|
149
|
-
) &&
|
|
149
|
+
) && g();
|
|
150
150
|
},
|
|
151
|
-
[t,
|
|
151
|
+
[t, g]
|
|
152
152
|
), I(() => {
|
|
153
153
|
T && s({
|
|
154
154
|
title: o("ERROR_DEFAULT_TITLE"),
|
|
@@ -156,15 +156,15 @@ const C = (a, n, d, l, b, r) => {
|
|
|
156
156
|
type: "error"
|
|
157
157
|
});
|
|
158
158
|
}, [T]);
|
|
159
|
-
const
|
|
159
|
+
const O = R(() => {
|
|
160
160
|
if (!c) return [];
|
|
161
161
|
const e = H(c), h = M(e);
|
|
162
|
-
return
|
|
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
|
+
], f = D || !y, _ = T && y, L = (!c || c.entry?.length === 0 || p.length === 0) && y, B = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null, K = L ? o("NO_OBSERVATIONS_FOUND") : void 0, U = O.length > 0 && !f && !_, E = n.titleTranslationKey, v = E ? o(E) : "";
|
|
168
168
|
return /* @__PURE__ */ S(
|
|
169
169
|
"div",
|
|
170
170
|
{
|
|
@@ -174,7 +174,7 @@ const C = (a, n, d, l, b, r) => {
|
|
|
174
174
|
className: $.observations,
|
|
175
175
|
children: [
|
|
176
176
|
/* @__PURE__ */ u(
|
|
177
|
-
|
|
177
|
+
G,
|
|
178
178
|
{
|
|
179
179
|
id: "observations-title",
|
|
180
180
|
testId: E ? `observations-title-${v}` : "observations-title",
|
|
@@ -183,22 +183,22 @@ const C = (a, n, d, l, b, r) => {
|
|
|
183
183
|
children: /* @__PURE__ */ u("p", { children: v })
|
|
184
184
|
}
|
|
185
185
|
),
|
|
186
|
-
|
|
186
|
+
U ? /* @__PURE__ */ u(
|
|
187
187
|
oe,
|
|
188
188
|
{
|
|
189
|
-
groupedData:
|
|
189
|
+
groupedData: O,
|
|
190
190
|
title: v,
|
|
191
191
|
hideThumbnail: b
|
|
192
192
|
}
|
|
193
193
|
) : /* @__PURE__ */ u(
|
|
194
|
-
|
|
194
|
+
Y,
|
|
195
195
|
{
|
|
196
196
|
headers: F,
|
|
197
197
|
rows: [],
|
|
198
198
|
ariaLabel: o("OBSERVATIONS"),
|
|
199
|
-
loading:
|
|
199
|
+
loading: f,
|
|
200
200
|
errorStateMessage: B,
|
|
201
|
-
emptyStateMessage:
|
|
201
|
+
emptyStateMessage: K,
|
|
202
202
|
dataTestId: "observations-table"
|
|
203
203
|
}
|
|
204
204
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { al as we, am as z, an as xt, ao as B, aj as q, ak as y, ap as Ro, aq as ye, ar as R, as as _, at as k, au as N, av as A, aw as bs, ax as ir, ay as $e, az as U, aA as Hn, aB as Vn, aC as dt, aD as D, aE as xs, aF as cn, aG as Be, aH as ws, aI as qt, aJ as zt, aK as $s, aL as Cs, aM as $n, aN as Ss, aO as Nr, aP as Bt, aQ as zo, aR as ks, aS as Es, aT as j, aU as Ur, aV as Ms, aW as Ds, aX as sr, aY as As, aZ as Ts, a_ as zn, a$ as Fs, b0 as Is, b1 as Z, b2 as Ps, b3 as Ls } from "./index-
|
|
1
|
+
import { al as we, am as z, an as xt, ao as B, aj as q, ak as y, ap as Ro, aq as ye, ar as R, as as _, at as k, au as N, av as A, aw as bs, ax as ir, ay as $e, az as U, aA as Hn, aB as Vn, aC as dt, aD as D, aE as xs, aF as cn, aG as Be, aH as ws, aI as qt, aJ as zt, aK as $s, aL as Cs, aM as $n, aN as Ss, aO as Nr, aP as Bt, aQ as zo, aR as ks, aS as Es, aT as j, aU as Ur, aV as Ms, aW as Ds, aX as sr, aY as As, aZ as Ts, a_ as zn, a$ as Fs, b0 as Is, b1 as Z, b2 as Ps, b3 as Ls } from "./index-eyrL1dkG.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i, jsxs as y } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { I as V, p as P, u as C, F as O, q as B, B as h, r as x, s as L, W as G, P as U, t as F, x as q, J as H, y as W, D as k, U as w, G as Q } from "./index-eyrL1dkG.js";
|
|
3
3
|
import { useState as I, useMemo as _ } from "react";
|
|
4
|
-
import { useQueryClient as
|
|
4
|
+
import { useQueryClient as $, useQuery as j } from "@tanstack/react-query";
|
|
5
5
|
const J = V(
|
|
6
6
|
P,
|
|
7
7
|
"useAppointmentsConfig",
|
|
@@ -75,7 +75,7 @@ function ie(e, a) {
|
|
|
75
75
|
}));
|
|
76
76
|
}
|
|
77
77
|
const oe = () => {
|
|
78
|
-
const { t: e } = C(), a =
|
|
78
|
+
const { t: e } = C(), a = $(), { addNotification: t } = h(), { userPrivileges: s } = x(), { appointmentsConfig: n } = J(), [E, c] = I(null), [M, p] = I(!1), l = n?.serviceTableFields ?? [
|
|
79
79
|
...u
|
|
80
80
|
], m = L(s, Z), b = L(
|
|
81
81
|
s,
|
|
@@ -96,7 +96,7 @@ const oe = () => {
|
|
|
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",
|
|
@@ -112,7 +112,7 @@ const oe = () => {
|
|
|
112
112
|
p(!1);
|
|
113
113
|
}
|
|
114
114
|
}, T = (r, o) => o === "actions" ? /* @__PURE__ */ i(
|
|
115
|
-
|
|
115
|
+
k,
|
|
116
116
|
{
|
|
117
117
|
id: `delete-service-${r.id}-btn`,
|
|
118
118
|
testId: `delete-service-${r.id}-btn-test-id`,
|
|
@@ -121,7 +121,7 @@ const oe = () => {
|
|
|
121
121
|
label: e("ADMIN_ALL_SERVICES_DELETE_ICON_LABEL"),
|
|
122
122
|
disabled: !b,
|
|
123
123
|
onClick: () => c(r),
|
|
124
|
-
children: /* @__PURE__ */ i(
|
|
124
|
+
children: /* @__PURE__ */ i(w, {})
|
|
125
125
|
}
|
|
126
126
|
) : u.includes(o) ? r[o] ?? "-" : r.attributes[o] ?? "-", f = [
|
|
127
127
|
{ id: "home", label: e("BREADCRUMB_HOME"), href: U },
|
|
@@ -130,7 +130,7 @@ const oe = () => {
|
|
|
130
130
|
return /* @__PURE__ */ i(
|
|
131
131
|
F,
|
|
132
132
|
{
|
|
133
|
-
header: /* @__PURE__ */ i(H, { breadcrumbItems: f, userMenu: /* @__PURE__ */ i(
|
|
133
|
+
header: /* @__PURE__ */ i(H, { breadcrumbItems: f, userMenu: /* @__PURE__ */ i(W, {}) }),
|
|
134
134
|
main: m ? /* @__PURE__ */ y(
|
|
135
135
|
"div",
|
|
136
136
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as p } from "react/jsx-runtime";
|
|
2
|
-
import { M as f, O as P, Q as O, T as V, X as z,
|
|
2
|
+
import { M as f, O as P, Q as O, T as V, X as z, $ as ee, a0 as te, a1 as ie, W as ae, a2 as ne, u as Q, a3 as R, a4 as le, a5 as re, a6 as se, a7 as E, a8 as F, a9 as C, aa as Y, ab as x, ac as k, ad as $, r as oe, B as de, s as H, ae as ce, P as me, af as Ae, ag as Ie, ah as ue, x as _e, J as Te, y as Le } from "./index-eyrL1dkG.js";
|
|
3
3
|
import { useState as g, useMemo as N, useEffect as h, useRef as ve, useCallback as U } from "react";
|
|
4
4
|
import { useQuery as D, useQueryClient as Ne } from "@tanstack/react-query";
|
|
5
5
|
const be = "Available for appointments", q = "Get Appointment Unavailability", pe = "Add Appointment Unavailability", w = "Appointment Location", ye = () => {
|
|
@@ -147,7 +147,7 @@ const be = "Available for appointments", q = "Get Appointment Unavailability", p
|
|
|
147
147
|
dateTimeColumn: Ye,
|
|
148
148
|
datePicker: xe,
|
|
149
149
|
timePicker: ke
|
|
150
|
-
},
|
|
150
|
+
}, $e = ({
|
|
151
151
|
errors: e,
|
|
152
152
|
formDataRef: a,
|
|
153
153
|
onClearErrors: n
|
|
@@ -450,7 +450,7 @@ const be = "Available for appointments", q = "Get Appointment Unavailability", p
|
|
|
450
450
|
lg: 8,
|
|
451
451
|
className: d.column,
|
|
452
452
|
children: /* @__PURE__ */ r(
|
|
453
|
-
|
|
453
|
+
$,
|
|
454
454
|
{
|
|
455
455
|
id: "service-multiselect",
|
|
456
456
|
"data-testid": "service-multiselect",
|
|
@@ -478,7 +478,7 @@ const be = "Available for appointments", q = "Get Appointment Unavailability", p
|
|
|
478
478
|
lg: 8,
|
|
479
479
|
className: d.column,
|
|
480
480
|
children: /* @__PURE__ */ r(
|
|
481
|
-
|
|
481
|
+
$,
|
|
482
482
|
{
|
|
483
483
|
id: "provider-multiselect",
|
|
484
484
|
"data-testid": "provider-multiselect",
|
|
@@ -501,13 +501,13 @@ const be = "Available for appointments", q = "Get Appointment Unavailability", p
|
|
|
501
501
|
]
|
|
502
502
|
}
|
|
503
503
|
);
|
|
504
|
-
},
|
|
505
|
-
page:
|
|
504
|
+
}, He = "index-module_page__s2h2y", qe = {
|
|
505
|
+
page: He
|
|
506
506
|
}, je = () => {
|
|
507
|
-
const { t: e } = Q(), a = Ne(), { userPrivileges: n } = oe(), { addNotification: t } = de(), [o, c] = g(!1), [A, L] = g(!1), m = ve(null), [l, s] = g({}), _ =
|
|
507
|
+
const { t: e } = Q(), a = Ne(), { userPrivileges: n } = oe(), { addNotification: t } = de(), [o, c] = g(!1), [A, L] = g(!1), m = ve(null), [l, s] = g({}), _ = H(
|
|
508
508
|
n,
|
|
509
509
|
q
|
|
510
|
-
), I =
|
|
510
|
+
), I = H(n, [
|
|
511
511
|
pe,
|
|
512
512
|
q
|
|
513
513
|
]), { data: u, isLoading: v, isError: y } = D({
|
|
@@ -622,7 +622,7 @@ const be = "Available for appointments", q = "Get Appointment Unavailability", p
|
|
|
622
622
|
onSecondaryButtonClick: J,
|
|
623
623
|
isSecondaryButtonDisabled: A,
|
|
624
624
|
content: /* @__PURE__ */ r(
|
|
625
|
-
|
|
625
|
+
$e,
|
|
626
626
|
{
|
|
627
627
|
errors: l,
|
|
628
628
|
formDataRef: m,
|