@bahmni/appointments-app 0.0.1-dev.401 → 0.0.1-dev.404

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.
@@ -1,11 +1,11 @@
1
1
  import { jsxs as S, jsx as u } from "react/jsx-runtime";
2
- import { g as q, C as k, u as N, $ as x, I as G, m as Q, f as j, h as w, J as H, i as J, K as M, j as z, l as C, r as P, s as Y, y as W, t as X, V as Z, x as ee } from "./index-BtK4jcwc.js";
2
+ import { v as q, z as G, u as N, l as k, G as x, m as z, n as Q, o as w, s as H, r as M, K as j, t as P, _ as D, x as J, C as Y, y as W, E as X, B as Z, D as ee } from "./index-CvkiQs0R.js";
3
3
  import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
4
- import { useRef as se, useEffect as $, useMemo as g } from "react";
5
- const D = (a, n, d, l, b, r) => {
6
- const t = P(a, n, b), s = t.value, i = Y(s);
7
- let o = s;
8
- i === "Image" && (o = /* @__PURE__ */ u(
4
+ import { useRef as se, useEffect as I, useMemo as T } from "react";
5
+ const C = (a, n, d, l, b, r) => {
6
+ const t = J(a, n, b), s = t.value, o = Y(s);
7
+ let i = s;
8
+ o === "Image" && (i = /* @__PURE__ */ u(
9
9
  X,
10
10
  {
11
11
  imageSrc: s,
@@ -13,14 +13,14 @@ const D = (a, n, d, l, b, r) => {
13
13
  id: `${s}-img`,
14
14
  hideThumbnail: r
15
15
  }
16
- )), i === "Video" && (o = /* @__PURE__ */ u(
16
+ )), o === "Video" && (i = /* @__PURE__ */ u(
17
17
  Z,
18
18
  {
19
19
  id: `${s}-video`,
20
20
  videoSrc: s,
21
21
  hideThumbnail: r
22
22
  }
23
- )), i === "PDF" && (o = /* @__PURE__ */ u(ee, { id: `${s}-pdf`, src: s }));
23
+ )), o === "PDF" && (i = /* @__PURE__ */ u(ee, { id: `${s}-pdf`, src: s }));
24
24
  const m = b("OBSERVATIONS_RECORDED_BY", {
25
25
  provider: t.provider
26
26
  }), p = a.display, h = a.observationValue?.isAbnormal ? "abnormal-obs" : "obs", c = l ? `${l}-${h}-${p}-${d}-${n}` : `${h}-${p}-${d}-${n}`;
@@ -28,7 +28,7 @@ const D = (a, n, d, l, b, r) => {
28
28
  W,
29
29
  {
30
30
  header: t.header,
31
- value: o,
31
+ value: i,
32
32
  info: m,
33
33
  id: c,
34
34
  testId: c,
@@ -37,15 +37,15 @@ const D = (a, n, d, l, b, r) => {
37
37
  `obs-${a.id}`
38
38
  );
39
39
  }, re = (a, n, d, l, b, r, t) => /* @__PURE__ */ u(
40
- C,
40
+ D,
41
41
  {
42
42
  title: a.display,
43
43
  id: `grouped-obs-${a.display}-${l}`,
44
44
  open: d,
45
45
  children: a.members?.map(
46
- (s, i) => D(
46
+ (s, o) => C(
47
47
  s,
48
- i,
48
+ o,
49
49
  b,
50
50
  r,
51
51
  n,
@@ -54,23 +54,23 @@ const D = (a, n, d, l, b, r) => {
54
54
  )
55
55
  },
56
56
  `grouped-obs-${a.id}`
57
- ), ie = ({
57
+ ), oe = ({
58
58
  groupedData: a,
59
59
  title: n = "",
60
60
  hideThumbnail: d
61
61
  }) => {
62
62
  const { t: l } = N(), b = (r, t, s) => {
63
- const i = z(r.encounterDetails, l);
63
+ const o = P(r.encounterDetails, l);
64
64
  return /* @__PURE__ */ S(
65
- C,
65
+ D,
66
66
  {
67
- title: i,
67
+ title: o,
68
68
  id: `encounter-${r.encounterId}`,
69
69
  open: t,
70
70
  children: [
71
71
  r.observations.map(
72
- (o, m) => D(
73
- o,
72
+ (i, m) => C(
73
+ i,
74
74
  m,
75
75
  s,
76
76
  n,
@@ -79,8 +79,8 @@ const D = (a, n, d, l, b, r) => {
79
79
  )
80
80
  ),
81
81
  r.groupedObservations.map(
82
- (o, m) => re(
83
- o,
82
+ (i, m) => re(
83
+ i,
84
84
  l,
85
85
  t,
86
86
  m,
@@ -105,100 +105,100 @@ const D = (a, n, d, l, b, r) => {
105
105
  )
106
106
  }
107
107
  );
108
- }, oe = "Observations-module_observations__RKSyo", ne = "Observations-module_title__TJL3z", _ = {
109
- observations: oe,
108
+ }, ie = "Observations-module_observations__RKSyo", ne = "Observations-module_title__TJL3z", $ = {
109
+ observations: ie,
110
110
  title: ne
111
111
  }, de = (a) => ["conceptUuid", a], le = (a, n) => ["observations", a, ...n], pe = ({ config: a }) => {
112
112
  const n = a, {
113
113
  conceptNames: d = [],
114
114
  conceptUuid: l = [],
115
115
  hideThumbnail: b = !1
116
- } = n, r = se(/* @__PURE__ */ new Set()), t = q(), { addNotification: s } = k(), { t: i } = N(), o = ae({
116
+ } = n, r = se(/* @__PURE__ */ new Set()), t = q(), { addNotification: s } = G(), { t: o } = N(), i = ae({
117
117
  queries: d.map((e) => ({
118
118
  queryKey: de(e),
119
- queryFn: () => x(e),
119
+ queryFn: () => k(e),
120
120
  enabled: !!e
121
121
  }))
122
122
  });
123
- $(() => {
124
- o.forEach((e, y) => {
123
+ I(() => {
124
+ i.forEach((e, y) => {
125
125
  if (e.isError && !r.current.has(y)) {
126
- const B = d[y];
126
+ const U = d[y];
127
127
  s({
128
- title: i("ERROR_DEFAULT_TITLE"),
129
- message: i("ERROR_FETCHING_CONCEPT", { conceptName: B }),
128
+ title: o("ERROR_DEFAULT_TITLE"),
129
+ message: o("ERROR_FETCHING_CONCEPT", { conceptName: U }),
130
130
  type: "error"
131
131
  }), r.current.add(y);
132
132
  } else e.isError || r.current.delete(y);
133
133
  });
134
- }, [o, d]);
135
- const m = g(() => o.map((e) => e.data?.uuid).filter((e) => !!e), [o]), p = g(() => [.../* @__PURE__ */ new Set([...m, ...l])], [m, l]), h = g(() => d.length === 0 ? !0 : o.every((e) => !e.isLoading), [o, d.length]), {
134
+ }, [i, d]);
135
+ const m = T(() => i.map((e) => e.data?.uuid).filter((e) => !!e), [i]), p = T(() => [.../* @__PURE__ */ new Set([...m, ...l])], [m, l]), h = T(() => d.length === 0 ? !0 : i.every((e) => !e.isLoading), [i, d.length]), {
136
136
  data: c,
137
137
  isLoading: F,
138
138
  isError: R,
139
- refetch: T
139
+ refetch: g
140
140
  } = te({
141
141
  queryKey: le(t, p),
142
- queryFn: () => G(t, p),
142
+ queryFn: () => x(t, p),
143
143
  enabled: !!t && p.length > 0 && h
144
144
  });
145
- Q(
145
+ z(
146
146
  (e) => {
147
147
  e.patientUUID === t && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
148
148
  (y) => p.includes(y)
149
- ) && T();
149
+ ) && g();
150
150
  },
151
- [t, T]
152
- ), $(() => {
151
+ [t, g]
152
+ ), I(() => {
153
153
  R && s({
154
- title: i("ERROR_DEFAULT_TITLE"),
155
- message: i("ERROR_FETCHING_OBSERVATIONS"),
154
+ title: o("ERROR_DEFAULT_TITLE"),
155
+ message: o("ERROR_FETCHING_OBSERVATIONS"),
156
156
  type: "error"
157
157
  });
158
158
  }, [R]);
159
- const f = g(() => {
159
+ const O = T(() => {
160
160
  if (!c) return [];
161
- const e = j(c), y = w(e);
161
+ const e = Q(c), y = w(e);
162
162
  return H(y);
163
- }, [c]), K = [
163
+ }, [c]), L = [
164
164
  { key: "name", header: "name" },
165
165
  { key: "value", header: "value" },
166
166
  { key: "form", header: "form" }
167
- ], I = F || !h, O = R && h, L = (!c || c.entry?.length === 0 || p.length === 0) && h, V = O ? i("ERROR_FETCHING_OBSERVATIONS") : null, A = L ? i("NO_OBSERVATIONS_FOUND") : void 0, U = f.length > 0 && !I && !O, E = n.titleTranslationKey, v = E ? i(E) : "";
167
+ ], _ = F || !h, f = R && h, A = (!c || c.entry?.length === 0 || p.length === 0) && h, K = f ? o("ERROR_FETCHING_OBSERVATIONS") : null, V = A ? o("NO_OBSERVATIONS_FOUND") : void 0, B = O.length > 0 && !_ && !f, E = n.titleTranslationKey, v = E ? o(E) : "";
168
168
  return /* @__PURE__ */ S(
169
169
  "div",
170
170
  {
171
171
  id: "observations",
172
172
  "data-testid": E ? `observations-${v}` : "observations",
173
173
  "aria-label": "observations-aria-label",
174
- className: _.observations,
174
+ className: $.observations,
175
175
  children: [
176
176
  /* @__PURE__ */ u(
177
- J,
177
+ M,
178
178
  {
179
179
  id: "observations-title",
180
180
  testId: E ? `observations-title-${v}` : "observations-title",
181
181
  title: v,
182
- className: _.title,
182
+ className: $.title,
183
183
  children: /* @__PURE__ */ u("p", { children: v })
184
184
  }
185
185
  ),
186
- U ? /* @__PURE__ */ u(
187
- ie,
186
+ B ? /* @__PURE__ */ u(
187
+ oe,
188
188
  {
189
- groupedData: f,
189
+ groupedData: O,
190
190
  title: v,
191
191
  hideThumbnail: b
192
192
  }
193
193
  ) : /* @__PURE__ */ u(
194
- M,
194
+ j,
195
195
  {
196
- headers: K,
196
+ headers: L,
197
197
  rows: [],
198
- ariaLabel: i("OBSERVATIONS"),
199
- loading: I,
200
- errorStateMessage: V,
201
- emptyStateMessage: A,
198
+ ariaLabel: o("OBSERVATIONS"),
199
+ loading: _,
200
+ errorStateMessage: K,
201
+ emptyStateMessage: V,
202
202
  dataTestId: "observations-table"
203
203
  }
204
204
  )
@@ -1,4 +1,4 @@
1
- import { aq as we, ar as z, as as xt, at as B, ao as q, ap as y, au as Ro, av as ye, aw as R, ax as _, ay as k, az as N, aA as A, aB as bs, aC as ir, aD as $e, aE as U, aF as Hn, aG as Vn, aH as dt, aI as D, aJ as xs, aK as cn, aL as Be, aM as ws, aN as qt, aO as zt, aP as $s, aQ as Cs, aR as $n, aS as Ss, aT as Nr, aU as Bt, aV as zo, aW as ks, aX as Es, aY as j, aZ as Ur, a_ as Ms, a$ as Ds, b0 as sr, b1 as As, b2 as Ts, b3 as zn, b4 as Fs, b5 as Is, b6 as Z, b7 as Ps, b8 as Ls } from "./index-BtK4jcwc.js";
1
+ import { aq as we, ar as z, as as xt, at as B, ao as q, ap as y, au as Ro, av as ye, aw as R, ax as _, ay as k, az as N, aA as A, aB as bs, aC as ir, aD as $e, aE as U, aF as Hn, aG as Vn, aH as dt, aI as D, aJ as xs, aK as cn, aL as Be, aM as ws, aN as qt, aO as zt, aP as $s, aQ as Cs, aR as $n, aS as Ss, aT as Nr, aU as Bt, aV as zo, aW as ks, aX as Es, aY as j, aZ as Ur, a_ as Ms, a$ as Ds, b0 as sr, b1 as As, b2 as Ts, b3 as zn, b4 as Fs, b5 as Is, b6 as Z, b7 as Ps, b8 as Ls } from "./index-CvkiQs0R.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -1,14 +1,14 @@
1
1
  import { jsx as r, jsxs as p } from "react/jsx-runtime";
2
- import { _ as f, a0 as O, a1 as P, a2 as V, a3 as Z, a4 as ee, a5 as te, a6 as ie, M as ae, a7 as ne, u as j, a8 as R, a9 as le, aa as re, ab as se, ac as E, ad as C, ae as F, af as Y, ag as x, ah as k, ai as $, a as oe, C as de, L as q, aj as ce, O as me, ak as Ae, al as Ie, am as ue, R as _e, S as Te, T as Le } from "./index-BtK4jcwc.js";
2
+ import { $ as f, a0 as B, a1 as P, a2 as V, a3 as Z, a4 as ee, a5 as te, a6 as ie, O as ae, a7 as ne, u as Q, a8 as R, a9 as le, aa as re, ab as se, ac as E, ad as F, ae as C, af as Y, ag as x, ah as k, ai as $, a as oe, z as de, N as q, aj as ce, Q as me, ak as Ae, al as Ie, am as ue, S as _e, T as Te, U as Le } from "./index-CvkiQs0R.js";
3
3
  import { useState as g, useMemo as N, useEffect as S, useRef as ve, useCallback as U } from "react";
4
4
  import { useQuery as D, useQueryClient as Ne } from "@tanstack/react-query";
5
- const be = "Available for appointments", G = "Get Appointment Unavailability", pe = "Add Appointment Unavailability", w = "Appointment Location", Me = () => {
5
+ const be = "Available for appointments", G = "Get Appointment Unavailability", pe = "Add Appointment Unavailability", H = "Appointment Location", Me = () => {
6
6
  try {
7
7
  return Z().uuid;
8
8
  } catch {
9
9
  return "";
10
10
  }
11
- }, H = (e) => ({
11
+ }, w = (e) => ({
12
12
  id: "",
13
13
  text: e
14
14
  }), ye = (e) => ({
@@ -47,9 +47,9 @@ const be = "Available for appointments", G = "Get Appointment Unavailability", p
47
47
  }), ge = (e, a) => {
48
48
  const n = {}, t = a("ADMIN_UNAVAILABILITY_FORM_REQUIRED");
49
49
  if (e.locationUuid || (n.location = t), e.startDate || (n.startDate = t), e.startTime || (n.startTime = t), e.endDate || (n.endDate = t), e.endTime || (n.endTime = t), e.startDate && e.startTime && e.endDate && e.endTime && e.startDate.toDateString() === e.endDate.toDateString()) {
50
- const o = O(
50
+ const o = B(
51
51
  `${e.startTime} ${e.startTimePeriod}`
52
- ), c = O(
52
+ ), c = B(
53
53
  `${e.endTime} ${e.endTimePeriod}`
54
54
  );
55
55
  o !== null && c !== null && c <= o && (n.dateTime = a("ADMIN_UNAVAILABILITY_DATETIME_ERROR_MESSAGE"));
@@ -106,12 +106,12 @@ const be = "Available for appointments", G = "Get Appointment Unavailability", p
106
106
  );
107
107
  if (I.length === 0) {
108
108
  const u = await ie(
109
- w
109
+ H
110
110
  );
111
111
  return Se(u);
112
112
  }
113
113
  return I.filter(
114
- (u) => u.tags?.some((v) => v.display === w)
114
+ (u) => u.tags?.some((v) => v.display === H)
115
115
  );
116
116
  },
117
117
  enabled: !!e?.uuid
@@ -137,13 +137,13 @@ const be = "Available for appointments", G = "Get Appointment Unavailability", p
137
137
  isLoading: a || o || L || s,
138
138
  isError: n || c || m || _
139
139
  };
140
- }, Be = "UnavailabilityForm-module_formContent__WmNHR", Oe = "UnavailabilityForm-module_formField__8he7o", Pe = "UnavailabilityForm-module_loading__IDEY6", Ve = "UnavailabilityForm-module_error__jDeOm", Ce = "UnavailabilityForm-module_grid__t6NKR", Fe = "UnavailabilityForm-module_column__QFdnQ", Ye = "UnavailabilityForm-module_dateTimeColumn__6bi0F", xe = "UnavailabilityForm-module_datePicker__6HgbO", ke = "UnavailabilityForm-module_timePicker__DHNpK", d = {
141
- formContent: Be,
142
- formField: Oe,
140
+ }, Oe = "UnavailabilityForm-module_formContent__WmNHR", Be = "UnavailabilityForm-module_formField__8he7o", Pe = "UnavailabilityForm-module_loading__IDEY6", Ve = "UnavailabilityForm-module_error__jDeOm", Fe = "UnavailabilityForm-module_grid__t6NKR", Ce = "UnavailabilityForm-module_column__QFdnQ", Ye = "UnavailabilityForm-module_dateTimeColumn__6bi0F", xe = "UnavailabilityForm-module_datePicker__6HgbO", ke = "UnavailabilityForm-module_timePicker__DHNpK", d = {
141
+ formContent: Oe,
142
+ formField: Be,
143
143
  loading: Pe,
144
144
  error: Ve,
145
- grid: Ce,
146
- column: Fe,
145
+ grid: Fe,
146
+ column: Ce,
147
147
  dateTimeColumn: Ye,
148
148
  datePicker: xe,
149
149
  timePicker: ke
@@ -152,7 +152,7 @@ const be = "Available for appointments", G = "Get Appointment Unavailability", p
152
152
  formDataRef: a,
153
153
  onClearErrors: n
154
154
  }) => {
155
- const { t } = j(), { loginLocations: o, services: c, providers: A, isLoading: L, isError: m } = he(), [l, s] = g({
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: [],
@@ -187,7 +187,7 @@ const be = "Available for appointments", G = "Get Appointment Unavailability", p
187
187
  _,
188
188
  t("ADMIN_UNAVAILABILITY_FORM_ALL_SERVICES")
189
189
  ),
190
- H,
190
+ w,
191
191
  {
192
192
  loading: "",
193
193
  error: "",
@@ -203,7 +203,7 @@ const be = "Available for appointments", G = "Get Appointment Unavailability", p
203
203
  I,
204
204
  t("ADMIN_UNAVAILABILITY_FORM_ALL_PROVIDERS")
205
205
  ),
206
- H,
206
+ w,
207
207
  {
208
208
  loading: "",
209
209
  error: "",
@@ -301,10 +301,10 @@ const be = "Available for appointments", G = "Get Appointment Unavailability", p
301
301
  className: `${d.column} ${d.dateTimeColumn}`,
302
302
  children: [
303
303
  /* @__PURE__ */ r(
304
- C,
304
+ F,
305
305
  {
306
306
  datePickerType: "single",
307
- minDate: F(),
307
+ minDate: C(),
308
308
  value: l.startDate ?? void 0,
309
309
  onChange: (i) => {
310
310
  i[0] && (n(["startDate", "dateTime"]), s({
@@ -376,10 +376,10 @@ const be = "Available for appointments", G = "Get Appointment Unavailability", p
376
376
  className: `${d.column} ${d.dateTimeColumn}`,
377
377
  children: [
378
378
  /* @__PURE__ */ r(
379
- C,
379
+ F,
380
380
  {
381
381
  datePickerType: "single",
382
- minDate: l.startDate ?? F(),
382
+ minDate: l.startDate ?? C(),
383
383
  value: l.endDate ?? void 0,
384
384
  onChange: (i) => {
385
385
  i[0] && (n(["endDate", "dateTime"]), s({
@@ -503,8 +503,8 @@ const be = "Available for appointments", G = "Get Appointment Unavailability", p
503
503
  );
504
504
  }, qe = "index-module_page__s2h2y", Ge = {
505
505
  page: qe
506
- }, Qe = () => {
507
- const { t: e } = j(), a = Ne(), { userPrivileges: n } = oe(), { addNotification: t } = de(), [o, c] = g(!1), [A, L] = g(!1), m = ve(null), [l, s] = g({}), _ = q(
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({}), _ = q(
508
508
  n,
509
509
  G
510
510
  ), I = q(n, [
@@ -560,15 +560,15 @@ const be = "Available for appointments", G = "Get Appointment Unavailability", p
560
560
  }
561
561
  },
562
562
  [t, a, e]
563
- ), Q = U(async () => {
563
+ ), j = U(async () => {
564
564
  if (!m.current) return;
565
565
  const T = ge(m.current, e);
566
566
  s(T), !(Object.keys(T).length > 0) && await h(Re(m.current, e));
567
567
  }, [e, h]), W = U(
568
568
  (T) => {
569
569
  s((J) => {
570
- const B = { ...J };
571
- return T.forEach((X) => delete B[X]), B;
570
+ const O = { ...J };
571
+ return T.forEach((X) => delete O[X]), O;
572
572
  });
573
573
  },
574
574
  []
@@ -616,7 +616,7 @@ const be = "Available for appointments", G = "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: Q,
619
+ onPrimaryButtonClick: j,
620
620
  isPrimaryButtonDisabled: A,
621
621
  secondaryButtonText: e("ADMIN_UNAVAILABILITY_FORM_CANCEL"),
622
622
  onSecondaryButtonClick: z,
@@ -636,5 +636,5 @@ const be = "Available for appointments", G = "Get Appointment Unavailability", p
636
636
  );
637
637
  };
638
638
  export {
639
- Qe as default
639
+ je as default
640
640
  };
@@ -1,18 +1,18 @@
1
1
  import { jsx as i, jsxs as y } from "react/jsx-runtime";
2
- import { z as V, A as O, u as I, D as P, H as h, C as B, a as x, L, M as G, O as U, Q as q, R as F, S as k, T as H, U as Q, W, X as $ } from "./index-BtK4jcwc.js";
3
- import { useState as C, useMemo as c } from "react";
2
+ import { H as V, I as O, u as C, L as P, M as h, z as x, a as B, N as L, O as G, Q as U, R as q, S as F, T as k, U as H, W as Q, X as W, Z as $ } from "./index-CvkiQs0R.js";
3
+ import { useState as I, useMemo as c } from "react";
4
4
  import { useQueryClient as j, useQuery as w } from "@tanstack/react-query";
5
- const K = V(
5
+ const z = V(
6
6
  O,
7
7
  "useAppointmentsConfig",
8
8
  "AppointmentsConfigProvider"
9
- ), z = ({
9
+ ), K = ({
10
10
  serviceName: e,
11
11
  isDeleting: a,
12
12
  onConfirm: t,
13
13
  onCancel: s
14
14
  }) => {
15
- const { t: n } = I();
15
+ const { t: n } = C();
16
16
  return /* @__PURE__ */ i(
17
17
  P,
18
18
  {
@@ -36,8 +36,8 @@ const K = V(
36
36
  "speciality",
37
37
  "durationMins",
38
38
  "description"
39
- ], Y = "app:appointments:manageServices", X = "app:appointments:adminTab", Z = "index-module_page__Gsfbu", J = "index-module_noPrivilegeContainer__Pu5WZ", ee = "index-module_table__GAPmb", d = {
40
- page: Z,
39
+ ], Y = "app:appointments:manageServices", Z = "app:appointments:adminTab", X = "index-module_page__Gsfbu", J = "index-module_noPrivilegeContainer__Pu5WZ", ee = "index-module_table__GAPmb", d = {
40
+ page: X,
41
41
  noPrivilegeContainer: J,
42
42
  table: ee
43
43
  };
@@ -75,26 +75,26 @@ function ie(e, a) {
75
75
  }));
76
76
  }
77
77
  const oe = () => {
78
- const { t: e } = I(), a = j(), { addNotification: t } = B(), { userPrivileges: s } = x(), { appointmentsConfig: n } = K(), [E, _] = C(null), [M, p] = C(!1), l = n?.serviceTableFields ?? [
78
+ const { t: e } = C(), a = j(), { addNotification: t } = x(), { userPrivileges: s } = B(), { appointmentsConfig: n } = z(), [E, _] = I(null), [M, m] = I(!1), l = n?.serviceTableFields ?? [
79
79
  ...u
80
- ], m = L(s, X), b = L(
80
+ ], p = L(s, Z), b = L(
81
81
  s,
82
82
  Y
83
83
  ), S = c(
84
84
  () => te(l),
85
85
  [l]
86
- ), { data: A, isLoading: v, isError: D } = w({
86
+ ), { data: A, isLoading: v, isError: R } = w({
87
87
  queryKey: ["allAppointmentServices"],
88
88
  queryFn: G,
89
- enabled: m
90
- }), R = c(
89
+ enabled: p
90
+ }), D = c(
91
91
  () => ae(l, e),
92
92
  [l]
93
93
  ), N = c(
94
94
  () => ie(A ?? [], S),
95
95
  [A, S]
96
96
  ), g = async () => {
97
- p(!0);
97
+ m(!0);
98
98
  try {
99
99
  await $(E.id), t({
100
100
  title: e("ADMIN_ALL_SERVICES_DELETE_SUCCESS_TITLE"),
@@ -109,7 +109,7 @@ const oe = () => {
109
109
  type: "error"
110
110
  });
111
111
  } finally {
112
- p(!1);
112
+ m(!1);
113
113
  }
114
114
  }, T = (r, o) => o === "actions" ? /* @__PURE__ */ i(
115
115
  Q,
@@ -131,7 +131,7 @@ const oe = () => {
131
131
  q,
132
132
  {
133
133
  header: /* @__PURE__ */ i(k, { breadcrumbItems: f, userMenu: /* @__PURE__ */ i(H, {}) }),
134
- main: m ? /* @__PURE__ */ y(
134
+ main: p ? /* @__PURE__ */ y(
135
135
  "div",
136
136
  {
137
137
  id: "all-appointment-service-page",
@@ -144,18 +144,18 @@ const oe = () => {
144
144
  {
145
145
  id: "all-services",
146
146
  title: e("ADMIN_ALL_SERVICES_TITLE"),
147
- headers: R,
147
+ headers: D,
148
148
  rows: N,
149
149
  ariaLabel: "all-services-table",
150
150
  loading: v,
151
- errorStateMessage: D ? e("ADMIN_ALL_SERVICES_ERROR_MESSAGE") : null,
151
+ errorStateMessage: R ? 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__ */ i(
158
- z,
158
+ K,
159
159
  {
160
160
  serviceName: E.name,
161
161
  isDeleting: M,