@bahmni/appointments-app 0.0.1-dev.198 → 0.0.1-dev.199
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-7_5Znf7I-Cuo_TJie.js → DocumentsTable-CFwrptgn-HVHgyex_.js} +1 -1
- package/dist/{FormsTable-BR7769_Y-DYhjmgFy.js → FormsTable-CB5_nrlS-Drmtu21a.js} +18 -18
- package/dist/{LNWAZHJI-CY3CaaSs.js → LNWAZHJI-C2UL-2iZ.js} +2 -2
- package/dist/{MWZ6AO7Z-DsLQiVF6.js → MWZ6AO7Z-DXxXzMqv.js} +2 -2
- package/dist/{Observations-3hCgfnVw-Bz_n4eaQ.js → Observations-C7BBw4Hj-BfR9bRl4.js} +14 -14
- package/dist/{YPM2AS64-BVWfpCoW.js → YPM2AS64-1iM9GDfP.js} +1 -1
- package/dist/{index-DmuuX7Oa.js → index-CVgIO3Cn.js} +4 -4
- package/dist/{index-GeBdsEdY.js → index-DdKMP9Ia.js} +11 -11
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o, jsxs as l, Fragment as k } from "react/jsx-runtime";
|
|
2
|
-
import { l as V, u as x, Q as F, a as H, E as q, C as Q, x as P, T as G, b as W } from "./index-
|
|
2
|
+
import { l as V, u as x, Q as F, a as H, E as q, C as Q, x as P, T as G, b as W } from "./index-CVgIO3Cn.js";
|
|
3
3
|
import { useState as I, useCallback as T, useEffect as L, useMemo as E } from "react";
|
|
4
4
|
const Y = "_documentsTableBody_1voj8_1", z = "_viewAttachmentsLink_1voj8_11", J = "_documentViewerContainer_1voj8_15", K = "_attachmentItem_1voj8_23", X = "_attachmentCounter_1voj8_27", Z = "_attachmentError_1voj8_36", ee = "_documentIframe_1voj8_44", te = "_documentImage_1voj8_50", d = {
|
|
5
5
|
documentsTableBody: Y,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o, jsxs as p, Fragment as k } from "react/jsx-runtime";
|
|
2
|
-
import { u as O, l as ae, o as te, c as oe, a as A, f as ne, C as se, E as de, x as U, I as me, Z as ie, T as le, d as ce, S as H, W as ue, q as K, e as F, g as be, N as pe, A as fe, z as _e, h as $e, X as ge, Y as he, J as ve, G as ye } from "./index-
|
|
2
|
+
import { u as O, l as ae, o as te, c as oe, a as A, f as ne, C as se, E as de, x as U, I as me, Z as ie, T as le, d as ce, S as H, W as ue, q as K, e as F, g as be, N as pe, A as fe, z as _e, h as $e, X as ge, Y as he, J as ve, G as ye } from "./index-CVgIO3Cn.js";
|
|
3
3
|
import { useState as P, useMemo as v, useCallback as C } from "react";
|
|
4
|
-
const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18", Fe = "_formDetailsContainer_1pd36_25", Le = "_observation_1pd36_30", Re = "_groupContainer_1pd36_39", Ie = "_rowContainer_1pd36_43", Me = "_groupLabel_1pd36_48", Oe = "_rowLabel_1pd36_58", Te = "_rowValue_1pd36_67", Se = "_groupMembers_1pd36_75",
|
|
4
|
+
const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18", Fe = "_formDetailsContainer_1pd36_25", Le = "_observation_1pd36_30", Re = "_groupContainer_1pd36_39", Ie = "_rowContainer_1pd36_43", Me = "_groupLabel_1pd36_48", Oe = "_rowLabel_1pd36_58", Te = "_rowValue_1pd36_67", Se = "_groupMembers_1pd36_75", Ve = "_memberRow_1pd36_81", xe = "_memberLabel_1pd36_86", De = "_memberValue_1pd36_94", Ee = "_abnormalValue_1pd36_102", we = "_commentSection_1pd36_110", Be = "_commentText_1pd36_116", Ge = "_nestedGroup_1pd36_125", qe = "_nestedGroupLabel_1pd36_132", Ue = "_nestedGroupMembers_1pd36_141", n = {
|
|
5
5
|
formsTableBody: Ne,
|
|
6
6
|
customAccordianItem: Ae,
|
|
7
7
|
formContent: Ce,
|
|
@@ -13,10 +13,10 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
13
13
|
rowLabel: Oe,
|
|
14
14
|
rowValue: Te,
|
|
15
15
|
groupMembers: Se,
|
|
16
|
-
memberRow:
|
|
17
|
-
memberLabel:
|
|
18
|
-
memberValue:
|
|
19
|
-
abnormalValue:
|
|
16
|
+
memberRow: Ve,
|
|
17
|
+
memberLabel: xe,
|
|
18
|
+
memberValue: De,
|
|
19
|
+
abnormalValue: Ee,
|
|
20
20
|
commentSection: we,
|
|
21
21
|
commentText: Be,
|
|
22
22
|
nestedGroup: Ge,
|
|
@@ -243,7 +243,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
243
243
|
].filter(
|
|
244
244
|
({ formFieldPath: a }) => !a || a.includes(r)
|
|
245
245
|
);
|
|
246
|
-
},
|
|
246
|
+
}, Ye = ({
|
|
247
247
|
episodeOfCareUuids: e,
|
|
248
248
|
encounterUuids: r,
|
|
249
249
|
config: s
|
|
@@ -256,7 +256,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
256
256
|
isLoading: y,
|
|
257
257
|
isError: N,
|
|
258
258
|
error: Q,
|
|
259
|
-
refetch:
|
|
259
|
+
refetch: Y
|
|
260
260
|
} = A({
|
|
261
261
|
queryKey: ["forms", l, e],
|
|
262
262
|
queryFn: () => ge(l, void 0, g),
|
|
@@ -266,20 +266,20 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
266
266
|
), [$, r]), { data: S = [] } = A({
|
|
267
267
|
queryKey: ["observationForms"],
|
|
268
268
|
queryFn: () => he()
|
|
269
|
-
}),
|
|
269
|
+
}), V = C(
|
|
270
270
|
(m) => S.find((u) => u.name === m)?.uuid,
|
|
271
271
|
[S]
|
|
272
272
|
), L = v(() => {
|
|
273
273
|
if (t)
|
|
274
|
-
return
|
|
275
|
-
}, [t,
|
|
274
|
+
return V(t.formName);
|
|
275
|
+
}, [t, V]), { isLoading: Z, error: x } = A({
|
|
276
276
|
queryKey: ["formMetadata", L],
|
|
277
277
|
queryFn: () => ve(L),
|
|
278
278
|
enabled: !!L && d
|
|
279
279
|
}), {
|
|
280
280
|
data: R,
|
|
281
281
|
isLoading: J,
|
|
282
|
-
error:
|
|
282
|
+
error: D
|
|
283
283
|
} = A({
|
|
284
284
|
queryKey: ["formsEncounterFHIR", t?.encounterUuid],
|
|
285
285
|
queryFn: () => ye(t.encounterUuid),
|
|
@@ -287,11 +287,11 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
287
287
|
});
|
|
288
288
|
ne(
|
|
289
289
|
(m) => {
|
|
290
|
-
m.patientUUID === l && m.updatedConcepts.size > 0 && (
|
|
290
|
+
m.patientUUID === l && m.updatedConcepts.size > 0 && (Y(), _.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
291
291
|
},
|
|
292
292
|
[l]
|
|
293
293
|
);
|
|
294
|
-
const
|
|
294
|
+
const E = v(() => !R || !t?.formName ? [] : je(
|
|
295
295
|
R,
|
|
296
296
|
t.formName
|
|
297
297
|
), [R, t?.formName]), w = v(
|
|
@@ -300,7 +300,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
300
300
|
{ key: "recordedBy", header: a("FORM_RECORDED_BY") }
|
|
301
301
|
],
|
|
302
302
|
[a]
|
|
303
|
-
),
|
|
303
|
+
), X = v(
|
|
304
304
|
() => [
|
|
305
305
|
{ key: "recordedOn", sortable: !0 },
|
|
306
306
|
{ key: "recordedBy", sortable: !0 }
|
|
@@ -379,7 +379,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
379
379
|
rows: h,
|
|
380
380
|
loading: !1,
|
|
381
381
|
errorStateMessage: "",
|
|
382
|
-
sortable:
|
|
382
|
+
sortable: X,
|
|
383
383
|
emptyStateMessage: a("FORMS_UNAVAILABLE"),
|
|
384
384
|
renderCell: q,
|
|
385
385
|
className: n.formsTableBody,
|
|
@@ -402,7 +402,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
402
402
|
passiveModal: !0,
|
|
403
403
|
size: "md",
|
|
404
404
|
testId: "form-details-modal",
|
|
405
|
-
children: /* @__PURE__ */ o("div", { className: n.formContent, children:
|
|
405
|
+
children: /* @__PURE__ */ o("div", { className: n.formContent, children: Z || J ? /* @__PURE__ */ o(ce, { width: "100%", lineCount: 3 }) : x ? /* @__PURE__ */ o("div", { children: H(x).message ?? a("ERROR_FETCHING_FORM_METADATA") }) : D ? /* @__PURE__ */ o("div", { children: H(D).message ?? a("ERROR_FETCHING_FORM_DATA") }) : E.length > 0 ? /* @__PURE__ */ o("div", { className: n.formDetailsContainer, children: E.map(({ obs: m, comment: u }, i) => /* @__PURE__ */ o(
|
|
406
406
|
He,
|
|
407
407
|
{
|
|
408
408
|
observation: m,
|
|
@@ -417,5 +417,5 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
417
417
|
] });
|
|
418
418
|
};
|
|
419
419
|
export {
|
|
420
|
-
|
|
420
|
+
Ye as default
|
|
421
421
|
};
|
|
@@ -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 { V as d, $ as f, a0 as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-1iM9GDfP.js";
|
|
2
|
+
import { V as d, $ as f, a0 as e } from "./index-CVgIO3Cn.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 { V as v, $ as C, a0 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-1iM9GDfP.js";
|
|
2
|
+
import { V as v, $ as C, a0 as e } from "./index-CVgIO3Cn.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as T, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { l as B, Q as K, u as I, i as
|
|
2
|
+
import { l as B, Q as K, u as I, i as V, U as x, a as Q, f as w, W as j, j as z, k as G, m as H, x as M, r as P, n as S, p as W, g as Y, w as J, N as X, A as Z, z as ee, K as te } from "./index-CVgIO3Cn.js";
|
|
3
3
|
import { useRef as ae, useEffect as $, useMemo as f } from "react";
|
|
4
4
|
const A = (t, d, i, u, r) => {
|
|
5
5
|
const a = W(t, d, r), s = a.value, o = Y(s);
|
|
@@ -77,10 +77,10 @@ const A = (t, d, i, u, r) => {
|
|
|
77
77
|
observations: oe,
|
|
78
78
|
title: ne
|
|
79
79
|
}, ie = (t) => ["conceptUuid", t], de = (t, d) => ["observations", t, ...d], be = ({ config: t }) => {
|
|
80
|
-
const d = t, { conceptNames: i = [], conceptUuid: u = [] } = d, r = ae(/* @__PURE__ */ new Set()), a = B(), { addNotification: s } = K(), { t: o } = I(), n =
|
|
80
|
+
const d = t, { conceptNames: i = [], conceptUuid: u = [] } = d, r = ae(/* @__PURE__ */ new Set()), a = B(), { addNotification: s } = K(), { t: o } = I(), n = V({
|
|
81
81
|
queries: i.map((e) => ({
|
|
82
82
|
queryKey: ie(e),
|
|
83
|
-
queryFn: () =>
|
|
83
|
+
queryFn: () => x(e),
|
|
84
84
|
enabled: !!e
|
|
85
85
|
}))
|
|
86
86
|
});
|
|
@@ -98,10 +98,10 @@ const A = (t, d, i, u, r) => {
|
|
|
98
98
|
}, [n, i]);
|
|
99
99
|
const b = f(() => n.map((e) => e.data?.uuid).filter((e) => !!e), [n]), p = f(() => [.../* @__PURE__ */ new Set([...b, ...u])], [b, u]), v = f(() => i.length === 0 ? !0 : n.every((e) => !e.isLoading), [n, i.length]), {
|
|
100
100
|
data: c,
|
|
101
|
-
isLoading:
|
|
101
|
+
isLoading: U,
|
|
102
102
|
isError: g,
|
|
103
|
-
refetch:
|
|
104
|
-
} =
|
|
103
|
+
refetch: h
|
|
104
|
+
} = Q({
|
|
105
105
|
queryKey: de(a, p),
|
|
106
106
|
queryFn: () => te(a, p),
|
|
107
107
|
enabled: !!a && p.length > 0 && v
|
|
@@ -110,9 +110,9 @@ const A = (t, d, i, u, r) => {
|
|
|
110
110
|
(e) => {
|
|
111
111
|
e.patientUUID === a && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
|
|
112
112
|
(m) => p.includes(m)
|
|
113
|
-
) &&
|
|
113
|
+
) && h();
|
|
114
114
|
},
|
|
115
|
-
[a,
|
|
115
|
+
[a, h]
|
|
116
116
|
), $(() => {
|
|
117
117
|
g && s({
|
|
118
118
|
title: o("ERROR_DEFAULT_TITLE"),
|
|
@@ -120,15 +120,15 @@ const A = (t, d, i, u, r) => {
|
|
|
120
120
|
type: "error"
|
|
121
121
|
});
|
|
122
122
|
}, [g]);
|
|
123
|
-
const
|
|
123
|
+
const R = f(() => {
|
|
124
124
|
if (!c) return [];
|
|
125
125
|
const e = j(c), m = z(e);
|
|
126
126
|
return G(m);
|
|
127
|
-
}, [c]),
|
|
127
|
+
}, [c]), q = [
|
|
128
128
|
{ key: "name", header: "name" },
|
|
129
129
|
{ key: "value", header: "value" },
|
|
130
130
|
{ key: "form", header: "form" }
|
|
131
|
-
], O =
|
|
131
|
+
], O = U || !v, _ = g && v, D = (!c || c.entry?.length === 0 || p.length === 0) && v, F = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null, L = D ? o("NO_OBSERVATIONS_FOUND") : void 0, C = R.length > 0 && !O && !_, E = d.titleTranslationKey, y = E ? o(E) : "";
|
|
132
132
|
return /* @__PURE__ */ T(
|
|
133
133
|
"div",
|
|
134
134
|
{
|
|
@@ -147,14 +147,14 @@ const A = (t, d, i, u, r) => {
|
|
|
147
147
|
children: /* @__PURE__ */ l("p", { children: y })
|
|
148
148
|
}
|
|
149
149
|
),
|
|
150
|
-
C ? /* @__PURE__ */ l(re, { groupedData:
|
|
150
|
+
C ? /* @__PURE__ */ l(re, { groupedData: R, title: y }) : /* @__PURE__ */ l(
|
|
151
151
|
M,
|
|
152
152
|
{
|
|
153
|
-
headers:
|
|
153
|
+
headers: q,
|
|
154
154
|
rows: [],
|
|
155
155
|
ariaLabel: o("OBSERVATIONS"),
|
|
156
156
|
loading: O,
|
|
157
|
-
errorStateMessage:
|
|
157
|
+
errorStateMessage: F,
|
|
158
158
|
emptyStateMessage: L,
|
|
159
159
|
dataTestId: "observations-table"
|
|
160
160
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a1 as we, a2 as z, a3 as xt, a4 as B, $ as q, a0 as y, a5 as Ro, a6 as ye, a7 as R, a8 as _, a9 as k, aa as N, ab as A, ac as bs, ad as ir, ae as $e, af as G, ag as Hn, ah as Vn, ai as dt, aj as D, ak as xs, al as cn, am as Be, an as ws, ao as qt, ap as zt, aq as $s, ar as Cs, as as $n, at as Ss, au as Nr, av as Bt, aw as zo, ax as ks, ay as Es, az as j, aA as Gr, aB as Ms, aC as Ds, aD as sr, aE as As, aF as Ts, aG as zn, aH as Fs, aI as Is, aJ as Z, aK as Ps, aL as Ls } from "./index-
|
|
1
|
+
import { a1 as we, a2 as z, a3 as xt, a4 as B, $ as q, a0 as y, a5 as Ro, a6 as ye, a7 as R, a8 as _, a9 as k, aa as N, ab as A, ac as bs, ad as ir, ae as $e, af as G, ag as Hn, ah as Vn, ai as dt, aj as D, ak as xs, al as cn, am as Be, an as ws, ao as qt, ap as zt, aq as $s, ar as Cs, as as $n, at as Ss, au as Nr, av as Bt, aw as zo, ax as ks, ay as Es, az as j, aA as Gr, aB as Ms, aC as Ds, aD as sr, aE as As, aF as Ts, aG as zn, aH as Fs, aI as Is, aJ as Z, aK as Ps, aL as Ls } from "./index-CVgIO3Cn.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -156839,7 +156839,7 @@ function ux0(t, e, r) {
|
|
|
156839
156839
|
return o;
|
|
156840
156840
|
};
|
|
156841
156841
|
}
|
|
156842
|
-
R0(() => Promise.resolve().then(() => qg0)), R0(() => Promise.resolve().then(() => gv0)), R0(() => Promise.resolve().then(() => Kv0)), R0(() => Promise.resolve().then(() => tE0)), R0(() => import("./DocumentsTable-
|
|
156842
|
+
R0(() => Promise.resolve().then(() => qg0)), R0(() => Promise.resolve().then(() => gv0)), R0(() => Promise.resolve().then(() => Kv0)), R0(() => Promise.resolve().then(() => tE0)), R0(() => import("./DocumentsTable-CFwrptgn-HVHgyex_.js")), R0(() => Promise.resolve().then(() => Ly0)), R0(() => import("./FormsTable-CB5_nrlS-Drmtu21a.js")), R0(() => Promise.resolve().then(() => dy0)), R0(() => import("./Observations-C7BBw4Hj-BfR9bRl4.js")), R0(
|
|
156843
156843
|
() => Promise.resolve().then(() => ky0)
|
|
156844
156844
|
), R0(
|
|
156845
156845
|
() => Promise.resolve().then(() => $M0)
|
|
@@ -158678,7 +158678,7 @@ var Dx0 = (t, e = !1) => {
|
|
|
158678
158678
|
const e = bCe(() => {
|
|
158679
158679
|
const r = this, [o] = this.#a, [a] = this.#h, [c] = this.#d, [l] = this.#u, [i] = this.#p, [s] = this.#t;
|
|
158680
158680
|
let d;
|
|
158681
|
-
return this.#i ? d = this.#i : (d = HCe(() => import("./LNWAZHJI-
|
|
158681
|
+
return this.#i ? d = this.#i : (d = HCe(() => import("./LNWAZHJI-C2UL-2iZ.js")), this.#i = d), qCe(this.#l, this.#c), VCe(d, zCe({
|
|
158682
158682
|
get queryFlavor() {
|
|
158683
158683
|
return r.#r;
|
|
158684
158684
|
},
|
|
@@ -158776,7 +158776,7 @@ var Dx0 = (t, e = !1) => {
|
|
|
158776
158776
|
const e = bCe(() => {
|
|
158777
158777
|
const r = this, [o] = this.#a, [a] = this.#h, [c] = this.#d, [l] = this.#u, [i] = this.#p, [s] = this.#t, [d] = this.#i;
|
|
158778
158778
|
let u;
|
|
158779
|
-
return this.#s ? u = this.#s : (u = HCe(() => import("./MWZ6AO7Z-
|
|
158779
|
+
return this.#s ? u = this.#s : (u = HCe(() => import("./MWZ6AO7Z-DXxXzMqv.js")), this.#s = u), qCe(this.#l, this.#c), VCe(u, zCe({
|
|
158780
158780
|
get queryFlavor() {
|
|
158781
158781
|
return r.#r;
|
|
158782
158782
|
},
|
|
@@ -158936,7 +158936,7 @@ const xz0 = {
|
|
|
158936
158936
|
}), kz0 = R0(
|
|
158937
158937
|
() => import("./index-CFigb5vF.js").then((t) => ({ default: t.IndexPage }))
|
|
158938
158938
|
), Zz0 = R0(
|
|
158939
|
-
() => import("./index-
|
|
158939
|
+
() => import("./index-DdKMP9Ia.js").then((t) => ({
|
|
158940
158940
|
default: t.default
|
|
158941
158941
|
}))
|
|
158942
158942
|
), Iz0 = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n, jsxs as f } from "react/jsx-runtime";
|
|
2
|
-
import { s as V, t as h, u as C, y as O, v as P, c as B, Q as G, M as
|
|
2
|
+
import { s as V, t as h, u as C, y as O, v as P, c as B, Q as G, M as q, B as L, a as x, F, D as U, _ as Q, H as k, L as H, O as K, P as $, R as j } from "./index-CVgIO3Cn.js";
|
|
3
3
|
import { useState as I, useMemo as _ } from "react";
|
|
4
4
|
const w = V(
|
|
5
5
|
h,
|
|
@@ -74,17 +74,17 @@ function ae(e, a) {
|
|
|
74
74
|
}));
|
|
75
75
|
}
|
|
76
76
|
const re = () => {
|
|
77
|
-
const { t: e } = C(), a = B(), { addNotification: t } = G(), { userPrivileges: s } =
|
|
77
|
+
const { t: e } = C(), a = B(), { addNotification: t } = G(), { userPrivileges: s } = q(), { appointmentsConfig: i } = w(), [E, c] = I(null), [M, S] = I(!1), l = i?.serviceTableFields ?? [
|
|
78
78
|
...p
|
|
79
|
-
], u = L(s, z),
|
|
79
|
+
], u = L(s, z), v = L(
|
|
80
80
|
s,
|
|
81
81
|
Y
|
|
82
82
|
), m = _(
|
|
83
83
|
() => ee(l),
|
|
84
84
|
[l]
|
|
85
|
-
), { data: A, isLoading: D, isError: R } =
|
|
85
|
+
), { data: A, isLoading: D, isError: R } = x({
|
|
86
86
|
queryKey: ["allAppointmentServices"],
|
|
87
|
-
queryFn:
|
|
87
|
+
queryFn: j,
|
|
88
88
|
enabled: u
|
|
89
89
|
}), b = _(
|
|
90
90
|
() => te(l, e),
|
|
@@ -95,7 +95,7 @@ const re = () => {
|
|
|
95
95
|
), N = async () => {
|
|
96
96
|
S(!0);
|
|
97
97
|
try {
|
|
98
|
-
await
|
|
98
|
+
await $(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",
|
|
@@ -118,16 +118,16 @@ const re = () => {
|
|
|
118
118
|
"aria-label": `delete-service-${r.id}-btn-aria-label`,
|
|
119
119
|
kind: "ghost",
|
|
120
120
|
label: e("ADMIN_ALL_SERVICES_DELETE_ICON_LABEL"),
|
|
121
|
-
disabled: !
|
|
121
|
+
disabled: !v,
|
|
122
122
|
onClick: () => c(r),
|
|
123
|
-
children: /* @__PURE__ */ n(
|
|
123
|
+
children: /* @__PURE__ */ n(K, {})
|
|
124
124
|
}
|
|
125
125
|
) : p.includes(o) ? r[o] ?? "-" : r.attributes[o] ?? "-", y = [
|
|
126
|
-
{ id: "home", label: e("BREADCRUMB_HOME"), href:
|
|
126
|
+
{ id: "home", label: e("BREADCRUMB_HOME"), href: F },
|
|
127
127
|
{ id: "admin", label: e("BREADCRUMB_ADMIN"), isCurrentPage: !0 }
|
|
128
128
|
];
|
|
129
129
|
return /* @__PURE__ */ n(
|
|
130
|
-
|
|
130
|
+
U,
|
|
131
131
|
{
|
|
132
132
|
header: /* @__PURE__ */ n(k, { breadcrumbItems: y }),
|
|
133
133
|
main: u ? /* @__PURE__ */ f(
|
|
@@ -157,7 +157,7 @@ const re = () => {
|
|
|
157
157
|
W,
|
|
158
158
|
{
|
|
159
159
|
serviceName: E.name,
|
|
160
|
-
isDeleting:
|
|
160
|
+
isDeleting: M,
|
|
161
161
|
onConfirm: N,
|
|
162
162
|
onCancel: () => c(null)
|
|
163
163
|
}
|
package/dist/index.js
CHANGED