@bahmni/appointments-app 0.0.1-dev.275 → 0.0.1-dev.280

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,12 +1,12 @@
1
- import { jsx as n, jsxs as f } from "react/jsx-runtime";
2
- import { N as V, w as h, a as C, z as O, D as P, h as B, F as G, Y as L, G as x, H as U, I as q, J as F, K as w, M as Y, O as $, P as k } from "./index-DsIJbVEt.js";
1
+ import { jsx as n, jsxs as y } from "react/jsx-runtime";
2
+ import { r as V, A as O, a as C, I as h, D as P, h as B, F as G, Y as L, G as x, H as U, J as q, O as F, K as w, M as k, N as H, Q as K } from "./index-CaUizC9n.js";
3
3
  import { useState as I, useMemo as _ } from "react";
4
- import { useQueryClient as H, useQuery as K } from "@tanstack/react-query";
5
- const j = V(
6
- h,
4
+ import { useQueryClient as Q, useQuery as Y } from "@tanstack/react-query";
5
+ const $ = V(
6
+ O,
7
7
  "useAppointmentsConfig",
8
8
  "AppointmentsConfigProvider"
9
- ), Q = ({
9
+ ), j = ({
10
10
  serviceName: e,
11
11
  isDeleting: a,
12
12
  onConfirm: t,
@@ -14,7 +14,7 @@ const j = V(
14
14
  }) => {
15
15
  const { t: i } = C();
16
16
  return /* @__PURE__ */ n(
17
- O,
17
+ h,
18
18
  {
19
19
  id: "delete-service-modal",
20
20
  testId: "delete-service-modal-test-id",
@@ -36,9 +36,9 @@ const j = V(
36
36
  "speciality",
37
37
  "durationMins",
38
38
  "description"
39
- ], W = "app:appointments:manageServices", z = "app:appointments:adminTab", J = "index-module_page__Gsfbu", Z = "index-module_noPrivilegeContainer__Pu5WZ", X = "index-module_table__GAPmb", d = {
40
- page: J,
41
- noPrivilegeContainer: Z,
39
+ ], W = "app:appointments:manageServices", J = "app:appointments:adminTab", Z = "index-module_page__Gsfbu", z = "index-module_noPrivilegeContainer__Pu5WZ", X = "index-module_table__GAPmb", d = {
40
+ page: Z,
41
+ noPrivilegeContainer: z,
42
42
  table: X
43
43
  };
44
44
  function ee(e) {
@@ -75,15 +75,15 @@ function ae(e, a) {
75
75
  }));
76
76
  }
77
77
  const le = () => {
78
- const { t: e } = C(), a = H(), { addNotification: t } = B(), { userPrivileges: s } = G(), { appointmentsConfig: i } = j(), [E, c] = I(null), [M, u] = I(!1), l = i?.serviceTableFields ?? [
78
+ const { t: e } = C(), a = Q(), { addNotification: t } = B(), { userPrivileges: s } = G(), { appointmentsConfig: i } = $(), [E, c] = I(null), [M, u] = I(!1), l = i?.serviceTableFields ?? [
79
79
  ...p
80
- ], m = L(s, z), b = L(
80
+ ], m = L(s, J), b = L(
81
81
  s,
82
82
  W
83
83
  ), S = _(
84
84
  () => ee(l),
85
85
  [l]
86
- ), { data: A, isLoading: v, isError: D } = K({
86
+ ), { data: A, isLoading: v, isError: D } = Y({
87
87
  queryKey: ["allAppointmentServices"],
88
88
  queryFn: x,
89
89
  enabled: m
@@ -96,7 +96,7 @@ const le = () => {
96
96
  ), g = async () => {
97
97
  u(!0);
98
98
  try {
99
- await k(E.id), t({
99
+ await K(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",
@@ -112,7 +112,7 @@ const le = () => {
112
112
  u(!1);
113
113
  }
114
114
  }, T = (r, o) => o === "actions" ? /* @__PURE__ */ n(
115
- Y,
115
+ k,
116
116
  {
117
117
  id: `delete-service-${r.id}-btn`,
118
118
  testId: `delete-service-${r.id}-btn-test-id`,
@@ -121,17 +121,17 @@ const le = () => {
121
121
  label: e("ADMIN_ALL_SERVICES_DELETE_ICON_LABEL"),
122
122
  disabled: !b,
123
123
  onClick: () => c(r),
124
- children: /* @__PURE__ */ n($, {})
124
+ children: /* @__PURE__ */ n(H, {})
125
125
  }
126
- ) : p.includes(o) ? r[o] ?? "-" : r.attributes[o] ?? "-", y = [
126
+ ) : p.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(w, { breadcrumbItems: y }),
134
- main: m ? /* @__PURE__ */ f(
133
+ header: /* @__PURE__ */ n(w, { breadcrumbItems: f }),
134
+ main: m ? /* @__PURE__ */ y(
135
135
  "div",
136
136
  {
137
137
  id: "all-appointment-service-page",
@@ -155,7 +155,7 @@ const le = () => {
155
155
  }
156
156
  ),
157
157
  E && /* @__PURE__ */ n(
158
- Q,
158
+ j,
159
159
  {
160
160
  serviceName: E.name,
161
161
  isDeleting: M,