@bahmni/appointments-app 0.0.1-dev.262 → 0.0.1-dev.264

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 { jsx as n, jsxs as f } from "react/jsx-runtime";
2
- import { B as V, v as O, u as C, y as h, w as P, e as B, a as G, C as x, F as L, b as q, G as U, I as F, J as $, K as k, P as w, Q as H, S as K, W as Q } from "./index-CiBTO22M.js";
2
+ import { n as V, o as O, u as C, y as h, s as P, g as B, a as G, p as x, q as A, b as q, t as U, w as F, z as $, C as k, L as w, M as H, O as Q, Q as j } from "./index-C4PZwwNE.js";
3
3
  import { useState as I, useMemo as _ } from "react";
4
- const W = V(
4
+ const K = V(
5
5
  O,
6
6
  "useAppointmentsConfig",
7
7
  "AppointmentsConfigProvider"
8
- ), j = ({
8
+ ), W = ({
9
9
  serviceName: e,
10
10
  isDeleting: a,
11
11
  onConfirm: t,
@@ -35,8 +35,8 @@ const W = V(
35
35
  "speciality",
36
36
  "durationMins",
37
37
  "description"
38
- ], J = "app:appointments:manageServices", Y = "app:appointments:adminTab", z = "_page_10v94_1", X = "_noPrivilegeContainer_10v94_1", Z = "_table_10v94_18", d = {
39
- page: z,
38
+ ], Y = "app:appointments:manageServices", z = "app:appointments:adminTab", J = "_page_10v94_1", X = "_noPrivilegeContainer_10v94_1", Z = "_table_10v94_18", d = {
39
+ page: J,
40
40
  noPrivilegeContainer: X,
41
41
  table: Z
42
42
  };
@@ -74,28 +74,28 @@ function ae(e, a) {
74
74
  }));
75
75
  }
76
76
  const re = () => {
77
- const { t: e } = C(), a = B(), { addNotification: t } = G(), { userPrivileges: s } = x(), { appointmentsConfig: i } = W(), [E, c] = I(null), [v, u] = I(!1), l = i?.serviceTableFields ?? [
77
+ const { t: e } = C(), a = B(), { addNotification: t } = G(), { userPrivileges: s } = x(), { appointmentsConfig: i } = K(), [E, c] = I(null), [v, u] = I(!1), l = i?.serviceTableFields ?? [
78
78
  ...p
79
- ], S = L(s, Y), M = L(
79
+ ], S = A(s, z), M = A(
80
80
  s,
81
- J
81
+ Y
82
82
  ), m = _(
83
83
  () => ee(l),
84
84
  [l]
85
- ), { data: A, isLoading: b, isError: D } = q({
85
+ ), { data: L, isLoading: b, isError: D } = q({
86
86
  queryKey: ["allAppointmentServices"],
87
- queryFn: Q,
87
+ queryFn: j,
88
88
  enabled: S
89
89
  }), N = _(
90
90
  () => te(l, e),
91
91
  [l]
92
92
  ), R = _(
93
- () => ae(A ?? [], m),
94
- [A, m]
93
+ () => ae(L ?? [], m),
94
+ [L, m]
95
95
  ), g = async () => {
96
96
  u(!0);
97
97
  try {
98
- await K(E.id), t({
98
+ await Q(E.id), t({
99
99
  title: e("ADMIN_ALL_SERVICES_DELETE_SUCCESS_TITLE"),
100
100
  message: e("ADMIN_ALL_SERVICES_DELETE_SUCCESS_MESSAGE"),
101
101
  type: "success",
@@ -154,7 +154,7 @@ const re = () => {
154
154
  }
155
155
  ),
156
156
  E && /* @__PURE__ */ n(
157
- j,
157
+ W,
158
158
  {
159
159
  serviceName: E.name,
160
160
  isDeleting: v,