@bahmni/appointments-app 0.0.1-dev.408 → 0.0.1-dev.409

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,10 +1,10 @@
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, I 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, H as q, aj as ce, K as me, ak as Ae, al as Ie, am as ue, R as _e, T as Te, U as Le } from "./index-SYnmvoqG.js";
2
+ import { a1 as f, a2 as B, a3 as P, a4 as V, a5 as J, a6 as ee, a7 as te, a8 as ie, O as ae, a9 as ne, u as Q, aa as R, ab as le, ac as re, ad as se, ae as E, af as F, ag as C, ah as Y, ai as x, aj as k, ak as $, a as oe, z as de, N as q, al as ce, _ as me, am as Ae, an as Ie, ao as ue, T as _e, U as Te, W as Le } from "./index-DqgfD6Rf.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 M, useQueryClient as Ne } from "@tanstack/react-query";
5
5
  const be = "Available for appointments", G = "Get Appointment Unavailability", pe = "Add Appointment Unavailability", w = "Appointment Location", ye = () => {
6
6
  try {
7
- return Z().uuid;
7
+ return J().uuid;
8
8
  } catch {
9
9
  return "";
10
10
  }
@@ -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"));
@@ -137,9 +137,9 @@ 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", 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: 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
145
  grid: Fe,
@@ -564,15 +564,15 @@ const be = "Available for appointments", G = "Get Appointment Unavailability", p
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
- }, [e, h]), z = U(
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 O = { ...X };
571
+ return T.forEach((Z) => delete O[Z]), O;
572
572
  });
573
573
  },
574
574
  []
575
- ), W = U(() => {
575
+ ), z = U(() => {
576
576
  c(!1), m.current = null, s({});
577
577
  }, []);
578
578
  return /* @__PURE__ */ r(
@@ -619,14 +619,14 @@ const be = "Available for appointments", G = "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
  }