@bahmni/appointments-app 0.0.1-dev.394 → 0.0.1-dev.396

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,8 +1,8 @@
1
1
  import { jsx as r, jsxs as p } from "react/jsx-runtime";
2
- import { $ as f, a0 as P, a1 as O, a2 as V, a3 as Z, a4 as ee, a5 as te, a6 as ie, C as ae, a7 as ne, u as Q, a8 as R, a9 as le, aa as re, ab as se, ac as U, ad as C, ae as F, af as Y, ag as x, ah as k, ai as $, e as oe, L as de, x as q, aj as ce, z as me, ak as Ae, al as Ie, am as ue, G as _e, H as Te, I as Le } from "./index-BnMAhwqo.js";
3
- import { useState as g, useMemo as N, useEffect as h, useRef as ve, useCallback as E } from "react";
2
+ import { X as f, a0 as P, a1 as O, a2 as V, a3 as Z, a4 as ee, a5 as te, a6 as ie, M 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 $, e as oe, L as de, D as q, aj as ce, H as me, ak as Ae, al as Ie, am as ue, Q as _e, R as Te, S as Le } from "./index-B2ffg2ah.js";
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", w = "Get Appointment Unavailability", pe = "Add Appointment Unavailability", G = "Appointment Location", ye = () => {
5
+ const be = "Available for appointments", G = "Get Appointment Unavailability", pe = "Add Appointment Unavailability", w = "Appointment Location", Me = () => {
6
6
  try {
7
7
  return Z().uuid;
8
8
  } catch {
@@ -11,7 +11,7 @@ const be = "Available for appointments", w = "Get Appointment Unavailability", p
11
11
  }, H = (e) => ({
12
12
  id: "",
13
13
  text: e
14
- }), Me = (e) => ({
14
+ }), ye = (e) => ({
15
15
  display: e,
16
16
  uuid: ""
17
17
  }), De = (e, a) => {
@@ -25,7 +25,7 @@ const be = "Available for appointments", w = "Get Appointment Unavailability", p
25
25
  text: a,
26
26
  isSelectAll: !0
27
27
  }), n;
28
- }, Ue = (e, a) => {
28
+ }, Ee = (e, a) => {
29
29
  const n = e.map((t) => ({
30
30
  id: t.uuid,
31
31
  text: t.person?.display,
@@ -36,7 +36,7 @@ const be = "Available for appointments", w = "Get Appointment Unavailability", p
36
36
  text: a,
37
37
  isSelectAll: !0
38
38
  }), n;
39
- }, Ee = (e, a) => ({
39
+ }, Ue = (e, a) => ({
40
40
  locationUuid: e.locationUuid,
41
41
  startDate: f(e.startDate, a, !1, V).formattedResult,
42
42
  startTime: O(
@@ -63,7 +63,7 @@ const be = "Available for appointments", w = "Get Appointment Unavailability", p
63
63
  appointmentServiceName: e.service?.name ?? a("ADMIN_UNAVAILABILITY_ALL"),
64
64
  providerName: e.provider?.name ?? a("ADMIN_UNAVAILABILITY_ALL")
65
65
  }), K = (e) => e.filter((a) => !a.isSelectAll).map((a) => a.id), Re = (e, a) => {
66
- const n = Ee(
66
+ const n = Ue(
67
67
  {
68
68
  locationUuid: e.locationUuid,
69
69
  startDate: e.startDate,
@@ -82,11 +82,11 @@ const be = "Available for appointments", w = "Get Appointment Unavailability", p
82
82
  providerUuid: s
83
83
  }))
84
84
  );
85
- }, he = (e) => !e.entry || e.entry.length === 0 ? [] : e.entry.map((a) => ({
85
+ }, Se = (e) => !e.entry || e.entry.length === 0 ? [] : e.entry.map((a) => ({
86
86
  uuid: a.resource?.id ?? "",
87
87
  display: a.resource?.name ?? "",
88
88
  childLocations: []
89
- })), Se = () => {
89
+ })), he = () => {
90
90
  const {
91
91
  data: e,
92
92
  isLoading: a,
@@ -106,12 +106,12 @@ const be = "Available for appointments", w = "Get Appointment Unavailability", p
106
106
  );
107
107
  if (I.length === 0) {
108
108
  const u = await ie(
109
- G
109
+ w
110
110
  );
111
- return he(u);
111
+ return Se(u);
112
112
  }
113
113
  return I.filter(
114
- (u) => u.tags?.some((v) => v.display === G)
114
+ (u) => u.tags?.some((v) => v.display === w)
115
115
  );
116
116
  },
117
117
  enabled: !!e?.uuid
@@ -137,13 +137,13 @@ const be = "Available for appointments", w = "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", Pe = "UnavailabilityForm-module_formField__8he7o", Oe = "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 = {
140
+ }, Be = "UnavailabilityForm-module_formContent__WmNHR", Pe = "UnavailabilityForm-module_formField__8he7o", Oe = "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
141
  formContent: Be,
142
142
  formField: Pe,
143
143
  loading: Oe,
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", w = "Get Appointment Unavailability", p
152
152
  formDataRef: a,
153
153
  onClearErrors: n
154
154
  }) => {
155
- const { t } = Q(), { loginLocations: o, services: c, providers: A, isLoading: L, isError: m } = Se(), [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: [],
@@ -173,7 +173,7 @@ const be = "Available for appointments", w = "Get Appointment Unavailability", p
173
173
  ),
174
174
  [A]
175
175
  ), u = N(
176
- () => R(!1, !1, o, Me, {
176
+ () => R(!1, !1, o, ye, {
177
177
  loading: "",
178
178
  error: "",
179
179
  empty: t("ADMIN_UNAVAILABILITY_FORM_NO_LOCATIONS")
@@ -195,11 +195,11 @@ const be = "Available for appointments", w = "Get Appointment Unavailability", p
195
195
  }
196
196
  ),
197
197
  [_]
198
- ), y = N(
198
+ ), M = N(
199
199
  () => R(
200
200
  !1,
201
201
  !1,
202
- Ue(
202
+ Ee(
203
203
  I,
204
204
  t("ADMIN_UNAVAILABILITY_FORM_ALL_PROVIDERS")
205
205
  ),
@@ -212,26 +212,26 @@ const be = "Available for appointments", w = "Get Appointment Unavailability", p
212
212
  ),
213
213
  [I]
214
214
  );
215
- return h(() => {
215
+ return S(() => {
216
216
  if (o.length === 0) return;
217
- const i = ye(), b = o.some(
218
- (M) => M.uuid === i
217
+ const i = Me(), b = o.some(
218
+ (y) => y.uuid === i
219
219
  );
220
- s((M) => ({
221
- ...M,
220
+ s((y) => ({
221
+ ...y,
222
222
  locationUuid: b ? i : ""
223
223
  }));
224
- }, [o]), h(() => {
224
+ }, [o]), S(() => {
225
225
  _.length > 0 && s((i) => ({
226
226
  ...i,
227
227
  selectedServiceItems: v
228
228
  }));
229
- }, [v]), h(() => {
229
+ }, [v]), S(() => {
230
230
  I.length > 0 && s((i) => ({
231
231
  ...i,
232
- selectedProviderItems: y
232
+ selectedProviderItems: M
233
233
  }));
234
- }, [y]), a.current = {
234
+ }, [M]), a.current = {
235
235
  ...l,
236
236
  filteredServicesCount: _.length,
237
237
  availableProvidersCount: I.length
@@ -290,7 +290,7 @@ const be = "Available for appointments", w = "Get Appointment Unavailability", p
290
290
  className: d.grid,
291
291
  children: [
292
292
  /* @__PURE__ */ p(
293
- U,
293
+ E,
294
294
  {
295
295
  id: "unavailability-form-start-date-time",
296
296
  "data-testid": "unavailability-form-start-date-time-test-id",
@@ -301,10 +301,10 @@ const be = "Available for appointments", w = "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({
@@ -365,7 +365,7 @@ const be = "Available for appointments", w = "Get Appointment Unavailability", p
365
365
  }
366
366
  ),
367
367
  /* @__PURE__ */ p(
368
- U,
368
+ E,
369
369
  {
370
370
  id: "unavailability-form-end-date-time",
371
371
  "data-testid": "unavailability-form-end-date-time-test-id",
@@ -376,10 +376,10 @@ const be = "Available for appointments", w = "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({
@@ -440,7 +440,7 @@ const be = "Available for appointments", w = "Get Appointment Unavailability", p
440
440
  }
441
441
  ),
442
442
  /* @__PURE__ */ r(
443
- U,
443
+ E,
444
444
  {
445
445
  id: "unavailability-form-service",
446
446
  "data-testid": "unavailability-form-service-test-id",
@@ -468,7 +468,7 @@ const be = "Available for appointments", w = "Get Appointment Unavailability", p
468
468
  }
469
469
  ),
470
470
  /* @__PURE__ */ r(
471
- U,
471
+ E,
472
472
  {
473
473
  id: "unavailability-form-provider",
474
474
  "data-testid": "unavailability-form-provider-test-id",
@@ -484,7 +484,7 @@ const be = "Available for appointments", w = "Get Appointment Unavailability", p
484
484
  "data-testid": "provider-multiselect",
485
485
  titleText: t("ADMIN_UNAVAILABILITY_FORM_PROVIDER_LABEL"),
486
486
  placeholder: t("ADMIN_UNAVAILABILITY_FORM_PROVIDER_LABEL"),
487
- items: y,
487
+ items: M,
488
488
  itemToString: (i) => i?.text ?? "",
489
489
  selectedItems: l.selectedProviderItems,
490
490
  onChange: (i) => s({
@@ -501,16 +501,16 @@ const be = "Available for appointments", w = "Get Appointment Unavailability", p
501
501
  ]
502
502
  }
503
503
  );
504
- }, qe = "index-module_page__s2h2y", we = {
504
+ }, qe = "index-module_page__s2h2y", Ge = {
505
505
  page: qe
506
506
  }, je = () => {
507
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
- w
509
+ G
510
510
  ), I = q(n, [
511
511
  pe,
512
- w
513
- ]), { data: u, isLoading: v, isError: y } = D({
512
+ G
513
+ ]), { data: u, isLoading: v, isError: M } = D({
514
514
  queryKey: ["appointmentUnavailabilities"],
515
515
  queryFn: ce,
516
516
  enabled: _
@@ -537,7 +537,7 @@ const be = "Available for appointments", w = "Get Appointment Unavailability", p
537
537
  key: "providerName",
538
538
  header: e("ADMIN_UNAVAILABILITY_COLUMN_PROVIDER")
539
539
  }
540
- ], [e]), M = N(() => u ? u.map((T) => fe(T, e)) : [], [u, e]), S = E(
540
+ ], [e]), y = N(() => u ? u.map((T) => fe(T, e)) : [], [u, e]), h = U(
541
541
  async (T) => {
542
542
  L(!0);
543
543
  try {
@@ -560,19 +560,19 @@ const be = "Available for appointments", w = "Get Appointment Unavailability", p
560
560
  }
561
561
  },
562
562
  [t, a, e]
563
- ), j = E(async () => {
563
+ ), j = U(async () => {
564
564
  if (!m.current) return;
565
565
  const T = ge(m.current, e);
566
- s(T), !(Object.keys(T).length > 0) && await S(Re(m.current, e));
567
- }, [e, S]), z = E(
566
+ s(T), !(Object.keys(T).length > 0) && await h(Re(m.current, e));
567
+ }, [e, h]), W = U(
568
568
  (T) => {
569
- s((J) => {
570
- const B = { ...J };
571
- return T.forEach((X) => delete B[X]), B;
569
+ s((X) => {
570
+ const B = { ...X };
571
+ return T.forEach((J) => delete B[J]), B;
572
572
  });
573
573
  },
574
574
  []
575
- ), W = E(() => {
575
+ ), z = U(() => {
576
576
  c(!1), m.current = null, s({});
577
577
  }, []);
578
578
  return /* @__PURE__ */ r(
@@ -586,7 +586,7 @@ const be = "Available for appointments", w = "Get Appointment Unavailability", p
586
586
  id: "appointment-unavailability-page",
587
587
  "data-testid": "appointment-unavailability-page-test-id",
588
588
  "aria-label": "appointment-unavailability-page-aria-label",
589
- className: we.page,
589
+ className: Ge.page,
590
590
  children: /* @__PURE__ */ r(
591
591
  _e,
592
592
  {
@@ -595,10 +595,10 @@ const be = "Available for appointments", w = "Get Appointment Unavailability", p
595
595
  "aria-label": "appointment-unavailability-actions-table-aria-label",
596
596
  title: e("ADMIN_UNAVAILABILITY_TITLE"),
597
597
  headers: b,
598
- rows: M,
598
+ rows: y,
599
599
  ariaLabel: "unavailability-table",
600
600
  loading: v,
601
- errorStateMessage: y ? e("ADMIN_UNAVAILABILITY_ERROR_MESSAGE") : null,
601
+ errorStateMessage: M ? e("ADMIN_UNAVAILABILITY_ERROR_MESSAGE") : null,
602
602
  emptyStateMessage: e("ADMIN_UNAVAILABILITY_EMPTY_MESSAGE"),
603
603
  actionButton: !o && I ? {
604
604
  label: e("ADMIN_UNAVAILABILITY_ADD_BUTTON"),
@@ -619,14 +619,14 @@ const be = "Available for appointments", w = "Get Appointment Unavailability", p
619
619
  onPrimaryButtonClick: j,
620
620
  isPrimaryButtonDisabled: A,
621
621
  secondaryButtonText: e("ADMIN_UNAVAILABILITY_FORM_CANCEL"),
622
- onSecondaryButtonClick: W,
622
+ onSecondaryButtonClick: z,
623
623
  isSecondaryButtonDisabled: A,
624
624
  content: /* @__PURE__ */ r(
625
625
  $e,
626
626
  {
627
627
  errors: l,
628
628
  formDataRef: m,
629
- onClearErrors: z
629
+ onClearErrors: W
630
630
  }
631
631
  )
632
632
  }
@@ -1,19 +1,19 @@
1
- import { jsx as a, jsxs as y } from "react/jsx-runtime";
2
- import { Q as V, s as O, u as I, t as P, v as h, L as B, e as G, x as A, C as x, z as U, M as q, G as F, H as Q, I as k, S as H, W, X as $ } from "./index-BnMAhwqo.js";
3
- import { useState as C, useMemo as _ } from "react";
1
+ import { jsx as i, jsxs as y } from "react/jsx-runtime";
2
+ import { t as V, x as O, u as I, z as P, C as h, L as x, e as B, D as A, M as G, H as U, O as q, Q as F, R as k, S as H, T as Q, U as W, W as $ } from "./index-B2ffg2ah.js";
3
+ import { useState as C, useMemo as c } from "react";
4
4
  import { useQueryClient as j, useQuery as w } from "@tanstack/react-query";
5
5
  const K = V(
6
6
  O,
7
7
  "useAppointmentsConfig",
8
8
  "AppointmentsConfigProvider"
9
- ), Y = ({
9
+ ), z = ({
10
10
  serviceName: e,
11
- isDeleting: i,
11
+ isDeleting: a,
12
12
  onConfirm: t,
13
13
  onCancel: s
14
14
  }) => {
15
15
  const { t: n } = I();
16
- return /* @__PURE__ */ a(
16
+ return /* @__PURE__ */ i(
17
17
  P,
18
18
  {
19
19
  id: "delete-service-modal",
@@ -25,7 +25,7 @@ const K = V(
25
25
  onRequestSubmit: t,
26
26
  primaryButtonText: n("ADMIN_ALL_SERVICES_DELETE_BUTTON_LABEL"),
27
27
  secondaryButtonText: n("ADMIN_ALL_SERVICES_DELETE_CANCEL"),
28
- primaryButtonDisabled: i,
28
+ primaryButtonDisabled: a,
29
29
  modalHeading: n("ADMIN_ALL_SERVICES_DELETE_MODAL_TITLE"),
30
30
  children: n("ADMIN_ALL_SERVICES_DELETE_CONFIRM_BODY", { serviceName: e })
31
31
  }
@@ -36,29 +36,29 @@ const K = V(
36
36
  "speciality",
37
37
  "durationMins",
38
38
  "description"
39
- ], z = "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,
41
- noPrivilegeContainer: J,
39
+ ], Y = "app:appointments:manageServices", Z = "app:appointments:adminTab", J = "index-module_page__Gsfbu", X = "index-module_noPrivilegeContainer__Pu5WZ", ee = "index-module_table__GAPmb", d = {
40
+ page: J,
41
+ noPrivilegeContainer: X,
42
42
  table: ee
43
43
  };
44
44
  function te(e) {
45
- return e.filter((i) => !u.includes(i));
45
+ return e.filter((a) => !u.includes(a));
46
46
  }
47
- function ie(e, i) {
47
+ function ae(e, a) {
48
48
  return [
49
49
  ...e.map((t) => ({
50
50
  key: t,
51
- header: i(
51
+ header: a(
52
52
  `ADMIN_ALL_SERVICES_COLUMN_${h(t)}`
53
53
  )
54
54
  })),
55
55
  {
56
56
  key: "actions",
57
- header: i("ADMIN_ALL_SERVICES_COLUMN_ACTIONS")
57
+ header: a("ADMIN_ALL_SERVICES_COLUMN_ACTIONS")
58
58
  }
59
59
  ];
60
60
  }
61
- function ae(e, i) {
61
+ function ie(e, a) {
62
62
  return e.map((t) => ({
63
63
  id: t.uuid,
64
64
  name: t.name,
@@ -67,7 +67,7 @@ function ae(e, i) {
67
67
  durationMins: t.durationMins,
68
68
  description: t.description,
69
69
  attributes: Object.fromEntries(
70
- i.map((s) => [
70
+ a.map((s) => [
71
71
  s,
72
72
  t.attributes?.find((n) => n.attributeType === s)?.value ?? null
73
73
  ])
@@ -75,24 +75,24 @@ function ae(e, i) {
75
75
  }));
76
76
  }
77
77
  const oe = () => {
78
- const { t: e } = I(), i = j(), { addNotification: t } = B(), { userPrivileges: s } = G(), { appointmentsConfig: n } = K(), [E, c] = C(null), [M, p] = C(!1), l = n?.serviceTableFields ?? [
78
+ const { t: e } = I(), a = j(), { addNotification: t } = x(), { userPrivileges: s } = B(), { appointmentsConfig: n } = K(), [E, _] = C(null), [M, p] = C(!1), l = n?.serviceTableFields ?? [
79
79
  ...u
80
- ], S = A(s, X), b = A(
80
+ ], m = A(s, Z), b = A(
81
81
  s,
82
- z
83
- ), m = _(
82
+ Y
83
+ ), S = c(
84
84
  () => te(l),
85
85
  [l]
86
86
  ), { data: L, isLoading: v, isError: D } = w({
87
87
  queryKey: ["allAppointmentServices"],
88
- queryFn: x,
89
- enabled: S
90
- }), R = _(
91
- () => ie(l, e),
88
+ queryFn: G,
89
+ enabled: m
90
+ }), R = c(
91
+ () => ae(l, e),
92
92
  [l]
93
- ), N = _(
94
- () => ae(L ?? [], m),
95
- [L, m]
93
+ ), N = c(
94
+ () => ie(L ?? [], S),
95
+ [L, S]
96
96
  ), g = async () => {
97
97
  p(!0);
98
98
  try {
@@ -101,7 +101,7 @@ const oe = () => {
101
101
  message: e("ADMIN_ALL_SERVICES_DELETE_SUCCESS_MESSAGE"),
102
102
  type: "success",
103
103
  timeout: 5e3
104
- }), c(null), i.invalidateQueries({ queryKey: ["allAppointmentServices"] });
104
+ }), _(null), a.invalidateQueries({ queryKey: ["allAppointmentServices"] });
105
105
  } catch {
106
106
  t({
107
107
  title: e("ADMIN_ALL_SERVICES_DELETE_ERROR_TITLE"),
@@ -111,8 +111,8 @@ const oe = () => {
111
111
  } finally {
112
112
  p(!1);
113
113
  }
114
- }, T = (r, o) => o === "actions" ? /* @__PURE__ */ a(
115
- H,
114
+ }, T = (r, o) => o === "actions" ? /* @__PURE__ */ i(
115
+ Q,
116
116
  {
117
117
  id: `delete-service-${r.id}-btn`,
118
118
  testId: `delete-service-${r.id}-btn-test-id`,
@@ -120,18 +120,18 @@ const oe = () => {
120
120
  kind: "ghost",
121
121
  label: e("ADMIN_ALL_SERVICES_DELETE_ICON_LABEL"),
122
122
  disabled: !b,
123
- onClick: () => c(r),
124
- children: /* @__PURE__ */ a(W, {})
123
+ onClick: () => _(r),
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 },
128
128
  { id: "admin", label: e("BREADCRUMB_ADMIN"), isCurrentPage: !0 }
129
129
  ];
130
- return /* @__PURE__ */ a(
130
+ return /* @__PURE__ */ i(
131
131
  q,
132
132
  {
133
- header: /* @__PURE__ */ a(Q, { breadcrumbItems: f, userMenu: /* @__PURE__ */ a(k, {}) }),
134
- main: S ? /* @__PURE__ */ y(
133
+ header: /* @__PURE__ */ i(k, { breadcrumbItems: f, userMenu: /* @__PURE__ */ i(H, {}) }),
134
+ main: m ? /* @__PURE__ */ y(
135
135
  "div",
136
136
  {
137
137
  id: "all-appointment-service-page",
@@ -139,7 +139,7 @@ const oe = () => {
139
139
  "aria-label": "all-appointment-service-page-aria-label",
140
140
  className: d.page,
141
141
  children: [
142
- /* @__PURE__ */ a(
142
+ /* @__PURE__ */ i(
143
143
  F,
144
144
  {
145
145
  id: "all-services",
@@ -154,18 +154,18 @@ const oe = () => {
154
154
  className: d.table
155
155
  }
156
156
  ),
157
- E && /* @__PURE__ */ a(
158
- Y,
157
+ E && /* @__PURE__ */ i(
158
+ z,
159
159
  {
160
160
  serviceName: E.name,
161
161
  isDeleting: M,
162
162
  onConfirm: g,
163
- onCancel: () => c(null)
163
+ onCancel: () => _(null)
164
164
  }
165
165
  )
166
166
  ]
167
167
  }
168
- ) : /* @__PURE__ */ a(
168
+ ) : /* @__PURE__ */ i(
169
169
  "div",
170
170
  {
171
171
  id: "all-appointment-service-no-view-privilege",
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b9 as t } from "./index-BnMAhwqo.js";
1
+ import { b9 as t } from "./index-B2ffg2ah.js";
2
2
  export {
3
3
  t as AppointmentsApp
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/appointments-app",
3
- "version": "0.0.1-dev.394",
3
+ "version": "0.0.1-dev.396",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",