@bahmni/appointments-app 0.0.1-dev.316 → 0.0.1-dev.318
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-CGQkFmPv-BKFnrvAL.js → DocumentsTable-N3KZd9ZV-Bx1G4QJt.js} +6 -6
- package/dist/{FormsTable-H67oOCKk-BtY_42ac.js → FormsTable-F1FaoFiu-COUNSfBa.js} +72 -72
- package/dist/{LNWAZHJI-C_gMA2Us.js → LNWAZHJI-C75miInF.js} +2 -2
- package/dist/{MWZ6AO7Z-DlXqVFk-.js → MWZ6AO7Z-BfH0CTwE.js} +2 -2
- package/dist/{Observations-BLNBreYi-B5P63mIa.js → Observations-HyR2_B59-DICEoprT.js} +1 -1
- package/dist/{YPM2AS64-weDYMuWi.js → YPM2AS64-PBuOFH88.js} +1 -1
- package/dist/{index-BSG5TIo2.js → index-BgjGSUEu.js} +7 -7
- package/dist/{index-wWZTiEer.js → index-CdVMN1nw.js} +7 -6
- package/dist/{index-ckbwvCIt.js → index-DK_CNSnQ.js} +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as r, jsxs as h, Fragment as
|
|
2
|
-
import { n as
|
|
1
|
+
import { jsx as r, jsxs as h, Fragment as x } from "react/jsx-runtime";
|
|
2
|
+
import { n as G, u as W, o as Y, U as J, a as X, g as Z, O as ee, h as te } from "./index-CdVMN1nw.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
4
|
import { useState as l, useCallback as _, useEffect as N, 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", ce = "DocumentsTable-module_documentIframe__ptq5I", le = "DocumentsTable-module_documentImage__KQVgS", d = {
|
|
@@ -38,7 +38,7 @@ const Te = [
|
|
|
38
38
|
null
|
|
39
39
|
), [$, D] = l(
|
|
40
40
|
/* @__PURE__ */ new Set()
|
|
41
|
-
), E =
|
|
41
|
+
), E = G(), { t: n } = W(), { addNotification: M } = Y(), k = Number(a?.pageSize) || 5, [I, C] = l(1), [u, V] = l(k), [F, A] = l(void 0), L = _((e) => {
|
|
42
42
|
w(e), U(!0);
|
|
43
43
|
}, []), H = _(() => {
|
|
44
44
|
U(!1), w(null), D(/* @__PURE__ */ new Set());
|
|
@@ -106,7 +106,7 @@ const Te = [
|
|
|
106
106
|
), T = p(
|
|
107
107
|
() => o ? B(o) : [],
|
|
108
108
|
[o]
|
|
109
|
-
),
|
|
109
|
+
), Q = _(
|
|
110
110
|
(e, t) => {
|
|
111
111
|
switch (t) {
|
|
112
112
|
case "documentIdentifier":
|
|
@@ -137,7 +137,7 @@ const Te = [
|
|
|
137
137
|
},
|
|
138
138
|
[L, n]
|
|
139
139
|
);
|
|
140
|
-
return /* @__PURE__ */ h(
|
|
140
|
+
return /* @__PURE__ */ h(x, { children: [
|
|
141
141
|
/* @__PURE__ */ r("div", { "data-testid": "documents-table", children: /* @__PURE__ */ r(
|
|
142
142
|
ee,
|
|
143
143
|
{
|
|
@@ -148,7 +148,7 @@ const Te = [
|
|
|
148
148
|
errorStateMessage: b ? y?.message : null,
|
|
149
149
|
sortable: K,
|
|
150
150
|
emptyStateMessage: n("DOCUMENTS_NO_RECORDS"),
|
|
151
|
-
renderCell:
|
|
151
|
+
renderCell: Q,
|
|
152
152
|
className: d.documentsTableBody,
|
|
153
153
|
dataTestId: "documents-table",
|
|
154
154
|
pageSize: u,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as i, jsxs as re, Fragment as
|
|
2
|
-
import { u as
|
|
1
|
+
import { jsx as i, jsxs as re, Fragment as ae } from "react/jsx-runtime";
|
|
2
|
+
import { u as te, n as oe, x as se, j as ne, B as de, F as ie, P as le, b as ue, D as q, g as me, a as ce, O as j, w as fe, v as ye, h as he, Q as be, $ as ge } from "./index-CdVMN1nw.js";
|
|
3
3
|
import { useQueryClient as pe, useQuery as h } from "@tanstack/react-query";
|
|
4
4
|
import { useState as w, useMemo as d, useCallback as b } from "react";
|
|
5
5
|
const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_customAccordianItem__isszs", M = {
|
|
@@ -7,47 +7,47 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
7
7
|
customAccordianItem: Oe
|
|
8
8
|
}, Ae = (m) => m ? m.extension?.find(
|
|
9
9
|
(l) => l.url === ge
|
|
10
|
-
)?.valueString : void 0,
|
|
10
|
+
)?.valueString : void 0, Te = ({
|
|
11
11
|
episodeOfCareUuids: m,
|
|
12
12
|
encounterUuids: l,
|
|
13
13
|
config: k
|
|
14
14
|
}) => {
|
|
15
|
-
const { t: n } =
|
|
15
|
+
const { t: n } = te(), c = oe(), [f, v] = w(!1), [o, F] = w(null), {
|
|
16
16
|
numberOfVisits: x,
|
|
17
17
|
hideThumbnail: $ = !1,
|
|
18
18
|
forms: y
|
|
19
|
-
} = k ?? {},
|
|
19
|
+
} = k ?? {}, I = se(
|
|
20
20
|
m,
|
|
21
21
|
l
|
|
22
|
-
),
|
|
23
|
-
data:
|
|
22
|
+
), H = pe(), {
|
|
23
|
+
data: T = [],
|
|
24
24
|
isLoading: B,
|
|
25
|
-
isError:
|
|
26
|
-
error:
|
|
27
|
-
refetch:
|
|
25
|
+
isError: D,
|
|
26
|
+
error: K,
|
|
27
|
+
refetch: Q
|
|
28
28
|
} = h({
|
|
29
29
|
queryKey: ["forms", c, m],
|
|
30
30
|
queryFn: () => ne(c, void 0, x),
|
|
31
|
-
enabled: !!c && !
|
|
32
|
-
}),
|
|
33
|
-
let e =
|
|
31
|
+
enabled: !!c && !I
|
|
32
|
+
}), E = d(() => {
|
|
33
|
+
let e = T;
|
|
34
34
|
return l && l.length > 0 && (e = e.filter(
|
|
35
35
|
(r) => l.includes(r.encounterUuid)
|
|
36
36
|
)), Array.isArray(y) && y.length > 0 && (e = e.filter(
|
|
37
|
-
(r) => y.some((
|
|
37
|
+
(r) => y.some((a) => a.toLowerCase() === r.formName.toLowerCase())
|
|
38
38
|
)), e;
|
|
39
|
-
}, [
|
|
39
|
+
}, [T, l, y]), { data: L = [] } = h({
|
|
40
40
|
queryKey: ["observationForms"],
|
|
41
41
|
queryFn: () => de()
|
|
42
42
|
}), S = b(
|
|
43
|
-
(e) =>
|
|
44
|
-
[
|
|
43
|
+
(e) => L.find((r) => r.name === e)?.uuid,
|
|
44
|
+
[L]
|
|
45
45
|
), g = d(() => {
|
|
46
|
-
if (
|
|
47
|
-
return S(
|
|
48
|
-
}, [
|
|
46
|
+
if (o)
|
|
47
|
+
return S(o.formName);
|
|
48
|
+
}, [o, S]), {
|
|
49
49
|
data: u,
|
|
50
|
-
isLoading:
|
|
50
|
+
isLoading: V,
|
|
51
51
|
isError: z,
|
|
52
52
|
error: p
|
|
53
53
|
} = h({
|
|
@@ -60,25 +60,25 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
60
60
|
isError: P,
|
|
61
61
|
error: O
|
|
62
62
|
} = h({
|
|
63
|
-
queryKey: ["formsEncounterFHIR",
|
|
64
|
-
queryFn: () => le(
|
|
65
|
-
enabled: !!
|
|
63
|
+
queryKey: ["formsEncounterFHIR", o?.encounterUuid],
|
|
64
|
+
queryFn: () => le(o.encounterUuid),
|
|
65
|
+
enabled: !!o?.encounterUuid && f
|
|
66
66
|
});
|
|
67
67
|
ue(
|
|
68
68
|
(e) => {
|
|
69
|
-
e.patientUUID === c && e.updatedConcepts.size > 0 && (
|
|
69
|
+
e.patientUUID === c && e.updatedConcepts.size > 0 && (Q(), H.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
70
70
|
},
|
|
71
71
|
[c]
|
|
72
72
|
);
|
|
73
|
-
const Y = d(() => !N?.entry || !
|
|
73
|
+
const Y = d(() => !N?.entry || !o?.formName ? [] : N.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => {
|
|
74
74
|
const r = Ae(e);
|
|
75
|
-
return !r || r.includes(
|
|
76
|
-
}), [N,
|
|
75
|
+
return !r || r.includes(o.formName);
|
|
76
|
+
}), [N, o?.formName]), J = d(() => {
|
|
77
77
|
if (!u?.schema) return;
|
|
78
|
-
const e = [], r = (
|
|
79
|
-
(
|
|
80
|
-
const
|
|
81
|
-
|
|
78
|
+
const e = [], r = (a) => {
|
|
79
|
+
(a ?? []).forEach((s) => {
|
|
80
|
+
const t = s;
|
|
81
|
+
t.id != null && e.push(String(t.id)), t.controls && r(t.controls);
|
|
82
82
|
});
|
|
83
83
|
};
|
|
84
84
|
return r(
|
|
@@ -86,13 +86,13 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
86
86
|
), e.length > 0 ? e : void 0;
|
|
87
87
|
}, [u]), W = d(() => {
|
|
88
88
|
if (!u?.schema) return;
|
|
89
|
-
const e = {}, r = (
|
|
90
|
-
for (const
|
|
91
|
-
if (
|
|
92
|
-
const A =
|
|
93
|
-
r(
|
|
89
|
+
const e = {}, r = (a, s) => {
|
|
90
|
+
for (const t of a)
|
|
91
|
+
if (t.type === "section") {
|
|
92
|
+
const A = t.label?.value ?? "Section";
|
|
93
|
+
r(t.controls ?? [], A);
|
|
94
94
|
} else
|
|
95
|
-
|
|
95
|
+
t.id != null && s && (e[String(t.id)] = s), t.controls && r(t.controls, s);
|
|
96
96
|
};
|
|
97
97
|
return r(
|
|
98
98
|
u.schema.controls ?? [],
|
|
@@ -116,34 +116,34 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
116
116
|
],
|
|
117
117
|
[]
|
|
118
118
|
), C = d(() => {
|
|
119
|
-
const e =
|
|
120
|
-
(r,
|
|
121
|
-
const
|
|
122
|
-
r[
|
|
123
|
-
const
|
|
124
|
-
return r[
|
|
125
|
-
id:
|
|
126
|
-
formName:
|
|
127
|
-
recordedOn: me(
|
|
128
|
-
recordedBy:
|
|
129
|
-
encounterDateTime:
|
|
130
|
-
encounterUuid:
|
|
119
|
+
const e = E.reduce(
|
|
120
|
+
(r, a) => {
|
|
121
|
+
const s = a.formName;
|
|
122
|
+
r[s] ??= [];
|
|
123
|
+
const t = a.providers.map((A) => A.providerName).filter(Boolean).join(", ");
|
|
124
|
+
return r[s].push({
|
|
125
|
+
id: a.encounterUuid,
|
|
126
|
+
formName: a.formName,
|
|
127
|
+
recordedOn: me(a.encounterDateTime, n, !0).formattedResult,
|
|
128
|
+
recordedBy: t ?? "--",
|
|
129
|
+
encounterDateTime: a.encounterDateTime,
|
|
130
|
+
encounterUuid: a.encounterUuid
|
|
131
131
|
}), r;
|
|
132
132
|
},
|
|
133
133
|
{}
|
|
134
134
|
);
|
|
135
135
|
return Object.entries(e).map(
|
|
136
|
-
([r,
|
|
136
|
+
([r, a]) => ({
|
|
137
137
|
formName: r,
|
|
138
|
-
records:
|
|
139
|
-
(
|
|
138
|
+
records: a.sort(
|
|
139
|
+
(s, t) => t.encounterDateTime - s.encounterDateTime
|
|
140
140
|
)
|
|
141
141
|
})
|
|
142
|
-
).sort((r,
|
|
143
|
-
}, [
|
|
144
|
-
|
|
142
|
+
).sort((r, a) => r.formName.localeCompare(a.formName));
|
|
143
|
+
}, [E, n]), R = b((e) => {
|
|
144
|
+
F(e), v(!0);
|
|
145
145
|
}, []), ee = b(() => {
|
|
146
|
-
|
|
146
|
+
v(!1), F(null);
|
|
147
147
|
}, []), U = b(
|
|
148
148
|
(e, r) => {
|
|
149
149
|
switch (r) {
|
|
@@ -157,57 +157,57 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
157
157
|
},
|
|
158
158
|
[R]
|
|
159
159
|
);
|
|
160
|
-
return /* @__PURE__ */ re(
|
|
161
|
-
/* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: B ||
|
|
160
|
+
return /* @__PURE__ */ re(ae, { children: [
|
|
161
|
+
/* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: B || D || C.length === 0 || I ? /* @__PURE__ */ i(
|
|
162
162
|
j,
|
|
163
163
|
{
|
|
164
164
|
headers: _,
|
|
165
165
|
ariaLabel: n("FORMS_HEADING"),
|
|
166
166
|
rows: [],
|
|
167
167
|
loading: B,
|
|
168
|
-
errorStateMessage:
|
|
168
|
+
errorStateMessage: D ? K?.message : void 0,
|
|
169
169
|
emptyStateMessage: n("FORMS_UNAVAILABLE"),
|
|
170
170
|
renderCell: U,
|
|
171
171
|
className: M.formsTableBody,
|
|
172
172
|
dataTestId: "forms-table"
|
|
173
173
|
}
|
|
174
174
|
) : /* @__PURE__ */ i(fe, { align: "start", children: C.map((e, r) => {
|
|
175
|
-
const { formName:
|
|
175
|
+
const { formName: a, records: s } = e;
|
|
176
176
|
return /* @__PURE__ */ i(
|
|
177
177
|
ye,
|
|
178
178
|
{
|
|
179
|
-
title:
|
|
179
|
+
title: a,
|
|
180
180
|
className: M.customAccordianItem,
|
|
181
|
-
testId: `accordian-title-${
|
|
181
|
+
testId: `accordian-title-${a}`,
|
|
182
182
|
open: r === 0,
|
|
183
183
|
children: /* @__PURE__ */ i(
|
|
184
184
|
j,
|
|
185
185
|
{
|
|
186
186
|
headers: _,
|
|
187
187
|
ariaLabel: n("FORMS_HEADING"),
|
|
188
|
-
rows:
|
|
188
|
+
rows: s,
|
|
189
189
|
loading: !1,
|
|
190
190
|
errorStateMessage: "",
|
|
191
191
|
sortable: Z,
|
|
192
192
|
emptyStateMessage: n("FORMS_UNAVAILABLE"),
|
|
193
193
|
renderCell: U,
|
|
194
194
|
className: M.formsTableBody,
|
|
195
|
-
dataTestId: `forms-table-${
|
|
195
|
+
dataTestId: `forms-table-${a}`
|
|
196
196
|
}
|
|
197
197
|
)
|
|
198
198
|
},
|
|
199
|
-
|
|
199
|
+
a
|
|
200
200
|
);
|
|
201
201
|
}) }) }),
|
|
202
|
-
f &&
|
|
202
|
+
f && o && /* @__PURE__ */ i(
|
|
203
203
|
he,
|
|
204
204
|
{
|
|
205
205
|
id: "modalIdForActionAreaLayout",
|
|
206
206
|
portalId: "main-display-area",
|
|
207
207
|
open: f,
|
|
208
208
|
onRequestClose: ee,
|
|
209
|
-
modalHeading:
|
|
210
|
-
modalLabel: `${
|
|
209
|
+
modalHeading: o.formName,
|
|
210
|
+
modalLabel: `${o.recordedOn} | ${o.recordedBy}`,
|
|
211
211
|
passiveModal: !0,
|
|
212
212
|
size: "md",
|
|
213
213
|
testId: "form-details-modal",
|
|
@@ -215,11 +215,11 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
215
215
|
be,
|
|
216
216
|
{
|
|
217
217
|
observations: Y,
|
|
218
|
-
isLoading:
|
|
218
|
+
isLoading: V || G,
|
|
219
219
|
isError: z || P,
|
|
220
220
|
errorMessage: X,
|
|
221
221
|
emptyStateMessage: n("NO_FORM_DATA_AVAILABLE"),
|
|
222
|
-
testIdPrefix:
|
|
222
|
+
testIdPrefix: o.formName,
|
|
223
223
|
hideThumbnail: $,
|
|
224
224
|
controlOrder: J,
|
|
225
225
|
sectionMap: W
|
|
@@ -230,5 +230,5 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
230
230
|
] });
|
|
231
231
|
};
|
|
232
232
|
export {
|
|
233
|
-
|
|
233
|
+
Te as default
|
|
234
234
|
};
|
|
@@ -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 { ah as d, ai as f, aj as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-PBuOFH88.js";
|
|
2
|
+
import { ah as d, ai as f, aj as e } from "./index-CdVMN1nw.js";
|
|
3
3
|
var h = (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 { ah as h, ai as v, aj 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-PBuOFH88.js";
|
|
2
|
+
import { ah as h, ai as v, aj as e } from "./index-CdVMN1nw.js";
|
|
3
3
|
var C = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as I, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { n as k, o as K, u as N, k as Q, Z as q, b as G, J as x, X as z, c as w, d as H, O as J, G as Y, E as M, Y as j, e as P, f as X, M as Z, S as W, z as ee } from "./index-
|
|
2
|
+
import { n as k, o as K, u as N, k as Q, Z as q, b as G, J as x, X as z, c as w, d as H, O as J, G as Y, E as M, Y as j, e as P, f as X, M as Z, S as W, z as ee } from "./index-CdVMN1nw.js";
|
|
3
3
|
import { useQueries as te, useQuery as ae } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as se, useEffect as $, useMemo as O } from "react";
|
|
5
5
|
const D = (t, n, d, l, b, r) => {
|
|
@@ -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-CdVMN1nw.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as b } from "react/jsx-runtime";
|
|
2
|
-
import { L as f, N as B, R as O, T as V, V as Z, W as ee, _ as te, a0 as ie, q as ae, a1 as ne, u as
|
|
2
|
+
import { L as f, N as B, R as O, T as V, V as Z, W as ee, _ as te, a0 as ie, q as ae, a1 as ne, u as Q, a2 as R, a3 as le, a4 as re, a5 as se, a6 as E, a7 as F, a8 as C, a9 as Y, aa as x, ab as k, ac as H, m as oe, o as de, p as $, ad as ce, r as me, ae as Ae, af as Ie, ag as ue, y as _e, C as Te } from "./index-CdVMN1nw.js";
|
|
3
3
|
import { useState as g, useMemo as N, useEffect as h, useRef as Le, useCallback as U } from "react";
|
|
4
4
|
import { useQuery as M, useQueryClient as ve } from "@tanstack/react-query";
|
|
5
5
|
const Ne = "Available for appointments", q = "Get Appointment Unavailability", pe = "Add Appointment Unavailability", w = "Appointment Location", be = () => {
|
|
@@ -152,7 +152,7 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
|
|
|
152
152
|
formDataRef: a,
|
|
153
153
|
onClearErrors: n
|
|
154
154
|
}) => {
|
|
155
|
-
const { t } =
|
|
155
|
+
const { t } = Q(), { loginLocations: o, services: c, providers: A, isLoading: L, isError: m } = he(), [l, s] = g({
|
|
156
156
|
locationUuid: "",
|
|
157
157
|
selectedServiceItems: [],
|
|
158
158
|
selectedProviderItems: [],
|
|
@@ -503,8 +503,8 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
|
|
|
503
503
|
);
|
|
504
504
|
}, He = "index-module_page__s2h2y", $e = {
|
|
505
505
|
page: He
|
|
506
|
-
},
|
|
507
|
-
const { t: e } =
|
|
506
|
+
}, Qe = () => {
|
|
507
|
+
const { t: e } = Q(), a = ve(), { userPrivileges: n } = oe(), { addNotification: t } = de(), [o, c] = g(!1), [A, L] = g(!1), m = Le(null), [l, s] = g({}), _ = $(
|
|
508
508
|
n,
|
|
509
509
|
q
|
|
510
510
|
), I = $(n, [
|
|
@@ -560,7 +560,7 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
|
|
|
560
560
|
}
|
|
561
561
|
},
|
|
562
562
|
[t, a, e]
|
|
563
|
-
),
|
|
563
|
+
), j = U(async () => {
|
|
564
564
|
if (!m.current) return;
|
|
565
565
|
const T = Ue(m.current, e);
|
|
566
566
|
s(T), !(Object.keys(T).length > 0) && await S(fe(m.current, e));
|
|
@@ -616,7 +616,7 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
|
|
|
616
616
|
"aria-label": "appointment-unavailability-form-panel-aria-label",
|
|
617
617
|
title: e("ADMIN_UNAVAILABILITY_FORM_TITLE"),
|
|
618
618
|
primaryButtonText: e("ADMIN_UNAVAILABILITY_FORM_ADD"),
|
|
619
|
-
onPrimaryButtonClick:
|
|
619
|
+
onPrimaryButtonClick: j,
|
|
620
620
|
isPrimaryButtonDisabled: A,
|
|
621
621
|
secondaryButtonText: e("ADMIN_UNAVAILABILITY_FORM_CANCEL"),
|
|
622
622
|
onSecondaryButtonClick: J,
|
|
@@ -636,5 +636,5 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
|
|
|
636
636
|
);
|
|
637
637
|
};
|
|
638
638
|
export {
|
|
639
|
-
|
|
639
|
+
Qe as default
|
|
640
640
|
};
|
|
@@ -91398,7 +91398,8 @@ class iW2 {
|
|
|
91398
91398
|
appointmentNumber: e.appointmentNumber,
|
|
91399
91399
|
appointmentDate: r2(e.startDateTime, r, !0).formattedResult,
|
|
91400
91400
|
appointmentReason: this.getAppointmentReasons(e),
|
|
91401
|
-
appointmentStatus: e.status
|
|
91401
|
+
appointmentStatus: e.status,
|
|
91402
|
+
appointmentServiceUuid: e.service?.uuid
|
|
91402
91403
|
});
|
|
91403
91404
|
/**
|
|
91404
91405
|
* Extract and format appointment reasons
|
|
@@ -95109,7 +95110,7 @@ function zlt(t, e, r) {
|
|
|
95109
95110
|
return n;
|
|
95110
95111
|
};
|
|
95111
95112
|
}
|
|
95112
|
-
b0(() => Promise.resolve().then(() => fF2)), b0(() => Promise.resolve().then(() => BF2)), b0(() => Promise.resolve().then(() => Mj2)), b0(() => Promise.resolve().then(() => Nj2)), b0(() => import("./DocumentsTable-
|
|
95113
|
+
b0(() => Promise.resolve().then(() => fF2)), b0(() => Promise.resolve().then(() => BF2)), b0(() => Promise.resolve().then(() => Mj2)), b0(() => Promise.resolve().then(() => Nj2)), b0(() => import("./DocumentsTable-N3KZd9ZV-Bx1G4QJt.js")), b0(() => Promise.resolve().then(() => xW2)), b0(() => import("./FormsTable-F1FaoFiu-COUNSfBa.js")), b0(() => Promise.resolve().then(() => lW2)), b0(() => import("./Observations-HyR2_B59-DICEoprT.js")), b0(
|
|
95113
95114
|
() => Promise.resolve().then(() => XW2)
|
|
95114
95115
|
), b0(
|
|
95115
95116
|
() => Promise.resolve().then(() => LU2)
|
|
@@ -183021,7 +183022,7 @@ var Dst = (t, e = !1) => {
|
|
|
183021
183022
|
const e = oJ1(() => {
|
|
183022
183023
|
const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#e;
|
|
183023
183024
|
let d;
|
|
183024
|
-
return this.#l ? d = this.#l : (d = rJ1(() => import("./LNWAZHJI-
|
|
183025
|
+
return this.#l ? d = this.#l : (d = rJ1(() => import("./LNWAZHJI-C75miInF.js")), this.#l = d), zJ1(this.#h, this.#r), eJ1(d, tJ1({
|
|
183025
183026
|
get queryFlavor() {
|
|
183026
183027
|
return r.#d;
|
|
183027
183028
|
},
|
|
@@ -183119,7 +183120,7 @@ var Dst = (t, e = !1) => {
|
|
|
183119
183120
|
const e = oJ1(() => {
|
|
183120
183121
|
const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#e, [d] = this.#l;
|
|
183121
183122
|
let u;
|
|
183122
|
-
return this.#i ? u = this.#i : (u = rJ1(() => import("./MWZ6AO7Z-
|
|
183123
|
+
return this.#i ? u = this.#i : (u = rJ1(() => import("./MWZ6AO7Z-BfH0CTwE.js")), this.#i = u), zJ1(this.#h, this.#r), eJ1(u, tJ1({
|
|
183123
183124
|
get queryFlavor() {
|
|
183124
183125
|
return r.#d;
|
|
183125
183126
|
},
|
|
@@ -183279,11 +183280,11 @@ const hct = {
|
|
|
183279
183280
|
}), bct = b0(
|
|
183280
183281
|
() => import("./index-CFigb5vF.js").then((t) => ({ default: t.IndexPage }))
|
|
183281
183282
|
), xct = b0(
|
|
183282
|
-
() => import("./index-
|
|
183283
|
+
() => import("./index-DK_CNSnQ.js").then((t) => ({
|
|
183283
183284
|
default: t.default
|
|
183284
183285
|
}))
|
|
183285
183286
|
), Nct = b0(
|
|
183286
|
-
() => import("./index-
|
|
183287
|
+
() => import("./index-BgjGSUEu.js").then((t) => ({
|
|
183287
183288
|
default: t.default
|
|
183288
183289
|
}))
|
|
183289
183290
|
), Cct = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n, jsxs as y } from "react/jsx-runtime";
|
|
2
|
-
import { s as V, A as O, u as C, i as P, l as h, o as x, m as B, p as L, q as G, r as U, t as q, y as H, C as F, H as $, I as k, K as w } from "./index-
|
|
2
|
+
import { s as V, A as O, u as C, i as P, l as h, o as x, m as B, p as L, q as G, r as U, t as q, y as H, C as F, H as $, I as k, K as w } from "./index-CdVMN1nw.js";
|
|
3
3
|
import { useState as I, useMemo as _ } from "react";
|
|
4
4
|
import { useQueryClient as K, useQuery as j } from "@tanstack/react-query";
|
|
5
5
|
const Q = V(
|
package/dist/index.js
CHANGED