@bahmni/appointments-app 0.0.1-dev.306 → 0.0.1-dev.311

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,20 +1,20 @@
1
1
  import { jsx as n, jsxs as y } from "react/jsx-runtime";
2
- import { k as V, l as O, u as C, I as P, $ as h, Y as B, p as x, s as L, E as G, v as U, w as q, B as w, x as $, z as k, C as F, D as Y } from "./index-B1HVT5rB.js";
2
+ import { j as V, k as P, u as C, P as O, o as h, n as B, p as x, q as L, s as G, w as U, F as q, y as F, J as H, B as j, U as k, K as w } from "./index-CQHGL6-x.js";
3
3
  import { useState as I, useMemo as _ } from "react";
4
- import { useQueryClient as j, useQuery as H } from "@tanstack/react-query";
5
- const K = V(
6
- O,
4
+ import { useQueryClient as K, useQuery as $ } from "@tanstack/react-query";
5
+ const Q = V(
6
+ P,
7
7
  "useAppointmentsConfig",
8
8
  "AppointmentsConfigProvider"
9
- ), Q = ({
9
+ ), W = ({
10
10
  serviceName: e,
11
- isDeleting: a,
11
+ isDeleting: i,
12
12
  onConfirm: t,
13
13
  onCancel: s
14
14
  }) => {
15
- const { t: i } = C();
15
+ const { t: a } = C();
16
16
  return /* @__PURE__ */ n(
17
- P,
17
+ O,
18
18
  {
19
19
  id: "delete-service-modal",
20
20
  testId: "delete-service-modal-test-id",
@@ -23,42 +23,42 @@ const K = V(
23
23
  danger: !0,
24
24
  onRequestClose: s,
25
25
  onRequestSubmit: t,
26
- primaryButtonText: i("ADMIN_ALL_SERVICES_DELETE_BUTTON_LABEL"),
27
- secondaryButtonText: i("ADMIN_ALL_SERVICES_DELETE_CANCEL"),
28
- primaryButtonDisabled: a,
29
- modalHeading: i("ADMIN_ALL_SERVICES_DELETE_MODAL_TITLE"),
30
- children: i("ADMIN_ALL_SERVICES_DELETE_CONFIRM_BODY", { serviceName: e })
26
+ primaryButtonText: a("ADMIN_ALL_SERVICES_DELETE_BUTTON_LABEL"),
27
+ secondaryButtonText: a("ADMIN_ALL_SERVICES_DELETE_CANCEL"),
28
+ primaryButtonDisabled: i,
29
+ modalHeading: a("ADMIN_ALL_SERVICES_DELETE_MODAL_TITLE"),
30
+ children: a("ADMIN_ALL_SERVICES_DELETE_CONFIRM_BODY", { serviceName: e })
31
31
  }
32
32
  );
33
- }, p = [
33
+ }, u = [
34
34
  "name",
35
35
  "location",
36
36
  "speciality",
37
37
  "durationMins",
38
38
  "description"
39
- ], W = "app:appointments:manageServices", z = "app:appointments:adminTab", Z = "index-module_page__Gsfbu", J = "index-module_noPrivilegeContainer__Pu5WZ", X = "index-module_table__GAPmb", d = {
39
+ ], J = "app:appointments:manageServices", Y = "app:appointments:adminTab", Z = "index-module_page__Gsfbu", z = "index-module_noPrivilegeContainer__Pu5WZ", X = "index-module_table__GAPmb", d = {
40
40
  page: Z,
41
- noPrivilegeContainer: J,
41
+ noPrivilegeContainer: z,
42
42
  table: X
43
43
  };
44
44
  function ee(e) {
45
- return e.filter((a) => !p.includes(a));
45
+ return e.filter((i) => !u.includes(i));
46
46
  }
47
- function te(e, a) {
47
+ function te(e, i) {
48
48
  return [
49
49
  ...e.map((t) => ({
50
50
  key: t,
51
- header: a(
51
+ header: i(
52
52
  `ADMIN_ALL_SERVICES_COLUMN_${h(t)}`
53
53
  )
54
54
  })),
55
55
  {
56
56
  key: "actions",
57
- header: a("ADMIN_ALL_SERVICES_COLUMN_ACTIONS")
57
+ header: i("ADMIN_ALL_SERVICES_COLUMN_ACTIONS")
58
58
  }
59
59
  ];
60
60
  }
61
- function ae(e, a) {
61
+ function ie(e, i) {
62
62
  return e.map((t) => ({
63
63
  id: t.uuid,
64
64
  name: t.name,
@@ -67,41 +67,41 @@ function ae(e, a) {
67
67
  durationMins: t.durationMins,
68
68
  description: t.description,
69
69
  attributes: Object.fromEntries(
70
- a.map((s) => [
70
+ i.map((s) => [
71
71
  s,
72
- t.attributes?.find((i) => i.attributeType === s)?.value ?? null
72
+ t.attributes?.find((a) => a.attributeType === s)?.value ?? null
73
73
  ])
74
74
  )
75
75
  }));
76
76
  }
77
77
  const le = () => {
78
- const { t: e } = C(), a = j(), { addNotification: t } = B(), { userPrivileges: s } = x(), { appointmentsConfig: i } = K(), [E, c] = I(null), [M, u] = I(!1), l = i?.serviceTableFields ?? [
79
- ...p
80
- ], m = L(s, z), b = L(
78
+ const { t: e } = C(), i = K(), { addNotification: t } = B(), { userPrivileges: s } = x(), { appointmentsConfig: a } = Q(), [E, c] = I(null), [b, p] = I(!1), l = a?.serviceTableFields ?? [
79
+ ...u
80
+ ], m = L(s, Y), M = L(
81
81
  s,
82
- W
82
+ J
83
83
  ), S = _(
84
84
  () => ee(l),
85
85
  [l]
86
- ), { data: A, isLoading: v, isError: D } = H({
86
+ ), { data: A, isLoading: v, isError: D } = $({
87
87
  queryKey: ["allAppointmentServices"],
88
88
  queryFn: G,
89
89
  enabled: m
90
- }), R = _(
90
+ }), N = _(
91
91
  () => te(l, e),
92
92
  [l]
93
- ), N = _(
94
- () => ae(A ?? [], S),
93
+ ), R = _(
94
+ () => ie(A ?? [], S),
95
95
  [A, S]
96
96
  ), g = async () => {
97
- u(!0);
97
+ p(!0);
98
98
  try {
99
- await Y(E.id), t({
99
+ await w(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",
103
103
  timeout: 5e3
104
- }), c(null), a.invalidateQueries({ queryKey: ["allAppointmentServices"] });
104
+ }), c(null), i.invalidateQueries({ queryKey: ["allAppointmentServices"] });
105
105
  } catch {
106
106
  t({
107
107
  title: e("ADMIN_ALL_SERVICES_DELETE_ERROR_TITLE"),
@@ -109,28 +109,28 @@ const le = () => {
109
109
  type: "error"
110
110
  });
111
111
  } finally {
112
- u(!1);
112
+ p(!1);
113
113
  }
114
114
  }, T = (r, o) => o === "actions" ? /* @__PURE__ */ n(
115
- k,
115
+ j,
116
116
  {
117
117
  id: `delete-service-${r.id}-btn`,
118
118
  testId: `delete-service-${r.id}-btn-test-id`,
119
119
  "aria-label": `delete-service-${r.id}-btn-aria-label`,
120
120
  kind: "ghost",
121
121
  label: e("ADMIN_ALL_SERVICES_DELETE_ICON_LABEL"),
122
- disabled: !b,
122
+ disabled: !M,
123
123
  onClick: () => c(r),
124
- children: /* @__PURE__ */ n(F, {})
124
+ children: /* @__PURE__ */ n(k, {})
125
125
  }
126
- ) : p.includes(o) ? r[o] ?? "-" : r.attributes[o] ?? "-", f = [
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
130
  return /* @__PURE__ */ n(
131
131
  q,
132
132
  {
133
- header: /* @__PURE__ */ n($, { breadcrumbItems: f }),
133
+ header: /* @__PURE__ */ n(H, { breadcrumbItems: f }),
134
134
  main: m ? /* @__PURE__ */ y(
135
135
  "div",
136
136
  {
@@ -140,12 +140,12 @@ const le = () => {
140
140
  className: d.page,
141
141
  children: [
142
142
  /* @__PURE__ */ n(
143
- w,
143
+ F,
144
144
  {
145
145
  id: "all-services",
146
146
  title: e("ADMIN_ALL_SERVICES_TITLE"),
147
- headers: R,
148
- rows: N,
147
+ headers: N,
148
+ rows: R,
149
149
  ariaLabel: "all-services-table",
150
150
  loading: v,
151
151
  errorStateMessage: D ? e("ADMIN_ALL_SERVICES_ERROR_MESSAGE") : null,
@@ -155,10 +155,10 @@ const le = () => {
155
155
  }
156
156
  ),
157
157
  E && /* @__PURE__ */ n(
158
- Q,
158
+ W,
159
159
  {
160
160
  serviceName: E.name,
161
- isDeleting: M,
161
+ isDeleting: b,
162
162
  onConfirm: g,
163
163
  onCancel: () => c(null)
164
164
  }
@@ -1,20 +1,20 @@
1
1
  import { jsx as r, jsxs as b } from "react/jsx-runtime";
2
- import { H as f, L as P, M as O, S as V, N as Z, R as ee, V as te, a0 as ie, E 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 w, p as oe, Y as de, s as $, ad as ce, v as me, ae as Ae, af as Ie, ag as ue, B as _e, x as Te } from "./index-B1HVT5rB.js";
3
- import { useState as g, useMemo as N, useEffect as S, useRef as Le, useCallback as U } from "react";
4
- import { useQuery as D, useQueryClient as ve } from "@tanstack/react-query";
5
- const Ne = "Available for appointments", q = "Get Appointment Unavailability", pe = "Add Appointment Unavailability", G = "Appointment Location", be = () => {
2
+ import { Q as f, R as B, T as O, V, X as z, Y as ee, Z as te, a0 as ie, s 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 k, ab as x, ac as $, p as oe, n as de, q as H, ad as ce, w as me, ae as Ae, af as Ie, ag as ue, y as _e, J as Te } from "./index-CQHGL6-x.js";
3
+ import { useState as g, useMemo as N, useEffect as h, useRef as Le, useCallback as U } from "react";
4
+ import { useQuery as M, useQueryClient as ve } from "@tanstack/react-query";
5
+ const Ne = "Available for appointments", q = "Get Appointment Unavailability", pe = "Add Appointment Unavailability", w = "Appointment Location", be = () => {
6
6
  try {
7
- return Z().uuid;
7
+ return z().uuid;
8
8
  } catch {
9
9
  return "";
10
10
  }
11
- }, H = (e) => ({
11
+ }, G = (e) => ({
12
12
  id: "",
13
13
  text: e
14
14
  }), ye = (e) => ({
15
15
  display: e,
16
16
  uuid: ""
17
- }), Me = (e, a) => {
17
+ }), De = (e, a) => {
18
18
  const n = e.map((t) => ({
19
19
  id: t.uuid,
20
20
  text: t.name,
@@ -25,7 +25,7 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
25
25
  text: a,
26
26
  isSelectAll: !0
27
27
  }), n;
28
- }, De = (e, a) => {
28
+ }, Me = (e, a) => {
29
29
  const n = e.map((t) => ({
30
30
  id: t.uuid,
31
31
  text: t.person?.display,
@@ -47,9 +47,9 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
47
47
  }), Ue = (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 = P(
50
+ const o = B(
51
51
  `${e.startTime} ${e.startTimePeriod}`
52
- ), c = P(
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"));
@@ -86,19 +86,19 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
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,
93
93
  isError: n
94
- } = D({
94
+ } = M({
95
95
  queryKey: ["currentUser"],
96
96
  queryFn: ee
97
97
  }), {
98
98
  data: t = [],
99
99
  isLoading: o,
100
100
  isError: c
101
- } = D({
101
+ } = M({
102
102
  queryKey: ["providerLoginLocations", e?.uuid],
103
103
  queryFn: async () => {
104
104
  const I = await te(
@@ -106,12 +106,12 @@ const Ne = "Available for appointments", q = "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
111
  return Re(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
@@ -119,14 +119,14 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
119
119
  data: A = [],
120
120
  isLoading: L,
121
121
  isError: m
122
- } = D({
122
+ } = M({
123
123
  queryKey: ["appointmentServices"],
124
124
  queryFn: ae
125
125
  }), {
126
126
  data: l = [],
127
127
  isLoading: s,
128
128
  isError: _
129
- } = D({
129
+ } = M({
130
130
  queryKey: ["providers"],
131
131
  queryFn: ne
132
132
  });
@@ -137,22 +137,22 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
137
137
  isLoading: a || o || L || s,
138
138
  isError: n || c || m || _
139
139
  };
140
- }, he = "UnavailabilityForm-module_formContent__WmNHR", Be = "UnavailabilityForm-module_formField__8he7o", Pe = "UnavailabilityForm-module_loading__IDEY6", Oe = "UnavailabilityForm-module_error__jDeOm", Ve = "UnavailabilityForm-module_grid__t6NKR", Fe = "UnavailabilityForm-module_column__QFdnQ", Ce = "UnavailabilityForm-module_dateTimeColumn__6bi0F", Ye = "UnavailabilityForm-module_datePicker__6HgbO", xe = "UnavailabilityForm-module_timePicker__DHNpK", d = {
141
- formContent: he,
142
- formField: Be,
143
- loading: Pe,
140
+ }, Se = "UnavailabilityForm-module_formContent__WmNHR", Pe = "UnavailabilityForm-module_formField__8he7o", Be = "UnavailabilityForm-module_loading__IDEY6", Oe = "UnavailabilityForm-module_error__jDeOm", Ve = "UnavailabilityForm-module_grid__t6NKR", Fe = "UnavailabilityForm-module_column__QFdnQ", Ce = "UnavailabilityForm-module_dateTimeColumn__6bi0F", Ye = "UnavailabilityForm-module_datePicker__6HgbO", ke = "UnavailabilityForm-module_timePicker__DHNpK", d = {
141
+ formContent: Se,
142
+ formField: Pe,
143
+ loading: Be,
144
144
  error: Oe,
145
145
  grid: Ve,
146
146
  column: Fe,
147
147
  dateTimeColumn: Ce,
148
148
  datePicker: Ye,
149
- timePicker: xe
150
- }, ke = ({
149
+ timePicker: ke
150
+ }, xe = ({
151
151
  errors: e,
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: [],
@@ -183,11 +183,11 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
183
183
  () => R(
184
184
  !1,
185
185
  !1,
186
- Me(
186
+ De(
187
187
  _,
188
188
  t("ADMIN_UNAVAILABILITY_FORM_ALL_SERVICES")
189
189
  ),
190
- H,
190
+ G,
191
191
  {
192
192
  loading: "",
193
193
  error: "",
@@ -199,11 +199,11 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
199
199
  () => R(
200
200
  !1,
201
201
  !1,
202
- De(
202
+ Me(
203
203
  I,
204
204
  t("ADMIN_UNAVAILABILITY_FORM_ALL_PROVIDERS")
205
205
  ),
206
- H,
206
+ G,
207
207
  {
208
208
  loading: "",
209
209
  error: "",
@@ -212,21 +212,21 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
212
212
  ),
213
213
  [I]
214
214
  );
215
- return S(() => {
215
+ return h(() => {
216
216
  if (o.length === 0) return;
217
217
  const i = be(), p = o.some(
218
- (M) => M.uuid === i
218
+ (D) => D.uuid === i
219
219
  );
220
- s((M) => ({
221
- ...M,
220
+ s((D) => ({
221
+ ...D,
222
222
  locationUuid: p ? i : ""
223
223
  }));
224
- }, [o]), S(() => {
224
+ }, [o]), h(() => {
225
225
  _.length > 0 && s((i) => ({
226
226
  ...i,
227
227
  selectedServiceItems: v
228
228
  }));
229
- }, [v]), S(() => {
229
+ }, [v]), h(() => {
230
230
  I.length > 0 && s((i) => ({
231
231
  ...i,
232
232
  selectedProviderItems: y
@@ -327,7 +327,7 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
327
327
  }
328
328
  ),
329
329
  /* @__PURE__ */ r(
330
- x,
330
+ k,
331
331
  {
332
332
  id: "start-time",
333
333
  "data-testid": "start-time-input",
@@ -342,7 +342,7 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
342
342
  use24HourFormat: !1,
343
343
  className: d.timePicker,
344
344
  children: /* @__PURE__ */ b(
345
- k,
345
+ x,
346
346
  {
347
347
  id: "start-time-period",
348
348
  "data-testid": "start-time-period-select",
@@ -402,7 +402,7 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
402
402
  }
403
403
  ),
404
404
  /* @__PURE__ */ r(
405
- x,
405
+ k,
406
406
  {
407
407
  id: "end-time",
408
408
  "data-testid": "end-time-input",
@@ -417,7 +417,7 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
417
417
  use24HourFormat: !1,
418
418
  className: d.timePicker,
419
419
  children: /* @__PURE__ */ b(
420
- k,
420
+ x,
421
421
  {
422
422
  id: "end-time-period",
423
423
  "data-testid": "end-time-period-select",
@@ -450,7 +450,7 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
450
450
  lg: 8,
451
451
  className: d.column,
452
452
  children: /* @__PURE__ */ r(
453
- w,
453
+ $,
454
454
  {
455
455
  id: "service-multiselect",
456
456
  "data-testid": "service-multiselect",
@@ -478,7 +478,7 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
478
478
  lg: 8,
479
479
  className: d.column,
480
480
  children: /* @__PURE__ */ r(
481
- w,
481
+ $,
482
482
  {
483
483
  id: "provider-multiselect",
484
484
  "data-testid": "provider-multiselect",
@@ -501,16 +501,16 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
501
501
  ]
502
502
  }
503
503
  );
504
- }, we = "index-module_page__s2h2y", $e = {
505
- page: we
504
+ }, $e = "index-module_page__s2h2y", He = {
505
+ page: $e
506
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({}), _ = $(
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({}), _ = H(
508
508
  n,
509
509
  q
510
- ), I = $(n, [
510
+ ), I = H(n, [
511
511
  pe,
512
512
  q
513
- ]), { data: u, isLoading: v, isError: y } = D({
513
+ ]), { data: u, isLoading: v, isError: y } = M({
514
514
  queryKey: ["appointmentUnavailabilities"],
515
515
  queryFn: ce,
516
516
  enabled: _
@@ -537,7 +537,7 @@ const Ne = "Available for appointments", q = "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) => ge(T, e)) : [], [u, e]), h = U(
540
+ ], [e]), D = N(() => u ? u.map((T) => ge(T, e)) : [], [u, e]), S = U(
541
541
  async (T) => {
542
542
  L(!0);
543
543
  try {
@@ -563,16 +563,16 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
563
563
  ), j = U(async () => {
564
564
  if (!m.current) return;
565
565
  const T = Ue(m.current, e);
566
- s(T), !(Object.keys(T).length > 0) && await h(fe(m.current, e));
567
- }, [e, h]), W = U(
566
+ s(T), !(Object.keys(T).length > 0) && await S(fe(m.current, e));
567
+ }, [e, S]), J = U(
568
568
  (T) => {
569
- s((z) => {
570
- const B = { ...z };
571
- return T.forEach((J) => delete B[J]), B;
569
+ s((X) => {
570
+ const P = { ...X };
571
+ return T.forEach((Z) => delete P[Z]), P;
572
572
  });
573
573
  },
574
574
  []
575
- ), X = U(() => {
575
+ ), W = U(() => {
576
576
  c(!1), m.current = null, s({});
577
577
  }, []);
578
578
  return /* @__PURE__ */ r(
@@ -586,7 +586,7 @@ const Ne = "Available for appointments", q = "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: $e.page,
589
+ className: He.page,
590
590
  children: /* @__PURE__ */ r(
591
591
  _e,
592
592
  {
@@ -595,7 +595,7 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
595
595
  "aria-label": "appointment-unavailability-actions-table-aria-label",
596
596
  title: e("ADMIN_UNAVAILABILITY_TITLE"),
597
597
  headers: p,
598
- rows: M,
598
+ rows: D,
599
599
  ariaLabel: "unavailability-table",
600
600
  loading: v,
601
601
  errorStateMessage: y ? e("ADMIN_UNAVAILABILITY_ERROR_MESSAGE") : null,
@@ -619,14 +619,14 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
619
619
  onPrimaryButtonClick: j,
620
620
  isPrimaryButtonDisabled: A,
621
621
  secondaryButtonText: e("ADMIN_UNAVAILABILITY_FORM_CANCEL"),
622
- onSecondaryButtonClick: X,
622
+ onSecondaryButtonClick: W,
623
623
  isSecondaryButtonDisabled: A,
624
624
  content: /* @__PURE__ */ r(
625
- ke,
625
+ xe,
626
626
  {
627
627
  errors: l,
628
628
  formDataRef: m,
629
- onClearErrors: W
629
+ onClearErrors: J
630
630
  }
631
631
  )
632
632
  }