@bahmni/appointments-app 0.0.1-dev.326 → 0.0.1-dev.329

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,5 +1,5 @@
1
1
  import { jsx as r, jsxs as b } from "react/jsx-runtime";
2
- import { S as f, T as B, V as O, W as V, X as Z, Y as ee, _ as te, a0 as ie, U 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 H, $ as oe, o as de, H as $, ad as ce, J as me, ae as Ae, af as Ie, ag as ue, L as _e, M as Te } from "./index-FpExOSHJ.js";
2
+ import { W as f, S as P, T as O, Y as V, X as Z, Z as ee, $ as te, a0 as ie, F 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 H, y as oe, o as de, z as $, ad as ce, B as me, ae as Ae, af as Ie, ag as ue, J as _e, K as Te } from "./index-Bjd0Amzt.js";
3
3
  import { useState as g, useMemo as N, useEffect as S, useRef as Le, useCallback as U } from "react";
4
4
  import { useQuery as M, useQueryClient as ve } from "@tanstack/react-query";
5
5
  const Ne = "Available for appointments", q = "Get Appointment Unavailability", pe = "Add Appointment Unavailability", w = "Appointment Location", be = () => {
@@ -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 = B(
50
+ const o = P(
51
51
  `${e.startTime} ${e.startTimePeriod}`
52
- ), c = B(
52
+ ), c = P(
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,10 +137,10 @@ 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", 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", xe = "UnavailabilityForm-module_timePicker__DHNpK", d = {
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
141
  formContent: he,
142
- formField: Pe,
143
- loading: Be,
142
+ formField: Be,
143
+ loading: Pe,
144
144
  error: Oe,
145
145
  grid: Ve,
146
146
  column: Fe,
@@ -564,15 +564,15 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
564
564
  if (!m.current) return;
565
565
  const T = Ue(m.current, e);
566
566
  s(T), !(Object.keys(T).length > 0) && await h(fe(m.current, e));
567
- }, [e, h]), J = U(
567
+ }, [e, h]), W = U(
568
568
  (T) => {
569
- s((X) => {
570
- const P = { ...X };
571
- return T.forEach((z) => delete P[z]), P;
569
+ s((z) => {
570
+ const B = { ...z };
571
+ return T.forEach((X) => delete B[X]), B;
572
572
  });
573
573
  },
574
574
  []
575
- ), W = U(() => {
575
+ ), J = U(() => {
576
576
  c(!1), m.current = null, s({});
577
577
  }, []);
578
578
  return /* @__PURE__ */ r(
@@ -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: W,
622
+ onSecondaryButtonClick: J,
623
623
  isSecondaryButtonDisabled: A,
624
624
  content: /* @__PURE__ */ r(
625
625
  ke,
626
626
  {
627
627
  errors: l,
628
628
  formDataRef: m,
629
- onClearErrors: J
629
+ onClearErrors: W
630
630
  }
631
631
  )
632
632
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b3 as t } from "./index-FpExOSHJ.js";
1
+ import { b3 as t } from "./index-Bjd0Amzt.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.326",
3
+ "version": "0.0.1-dev.329",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",