@bahmni/appointments-app 0.0.1-dev.328 → 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
- import { jsx as r, jsxs as p, Fragment as Q } from "react/jsx-runtime";
2
- import { n as G, u as W, o as Y, w as J, f as X, g as Z, O as ee, p as te } from "./index-Cn9KgKUO.js";
1
+ import { jsx as r, jsxs as p, Fragment as G } from "react/jsx-runtime";
2
+ import { n as Q, u as W, o as Y, w as J, f as X, g as Z, O as ee, p as te } from "./index-Bjd0Amzt.js";
3
3
  import { useQuery as ae } from "@tanstack/react-query";
4
4
  import { useState as l, useCallback as h, useEffect as N, useMemo as _ } from "react";
5
5
  const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTable-module_viewAttachmentsLink__aQ1on", re = "DocumentsTable-module_documentViewerContainer__F5m8D", de = "DocumentsTable-module_attachmentItem__17KA7", se = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", ce = "DocumentsTable-module_documentIframe__ptq5I", le = "DocumentsTable-module_documentImage__KQVgS", d = {
@@ -38,7 +38,7 @@ const Te = [
38
38
  null
39
39
  ), [$, D] = l(
40
40
  /* @__PURE__ */ new Set()
41
- ), E = G(), { t: n } = W(), { addNotification: L } = Y(), k = Number(a?.pageSize) || 5, [I, C] = l(1), [u, V] = l(k), [F, A] = l(void 0), M = h((e) => {
41
+ ), E = Q(), { t: n } = W(), { addNotification: L } = Y(), k = Number(a?.pageSize) || 5, [I, C] = l(1), [u, V] = l(k), [F, A] = l(void 0), M = h((e) => {
42
42
  U(e), w(!0);
43
43
  }, []), H = h(() => {
44
44
  w(!1), U(null), D(/* @__PURE__ */ new Set());
@@ -137,7 +137,7 @@ const Te = [
137
137
  },
138
138
  [M, n]
139
139
  );
140
- return /* @__PURE__ */ p(Q, { children: [
140
+ return /* @__PURE__ */ p(G, { children: [
141
141
  /* @__PURE__ */ r("div", { "data-testid": "documents-table", children: /* @__PURE__ */ r(
142
142
  ee,
143
143
  {
@@ -1,42 +1,42 @@
1
1
  import { jsx as i, jsxs as re, Fragment as ae } from "react/jsx-runtime";
2
- import { u as te, n as oe, N as se, a as ne, e as de, m as ie, b as le, j as me, D as q, g as ue, f as ce, O as x, v as fe, E as ye, p as be, c as pe, d as ge } from "./index-Cn9KgKUO.js";
2
+ import { u as te, n as oe, N as se, a as ne, e as de, m as ie, b as le, j as me, D as q, g as ue, f as ce, O as x, v as fe, E as ye, p as be, c as pe, d as ge } from "./index-Bjd0Amzt.js";
3
3
  import { useQueryClient as he, useQuery as b } from "@tanstack/react-query";
4
4
  import { useState as j, useMemo as d, useCallback as p } from "react";
5
- const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_customAccordianItem__isszs", v = {
5
+ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_customAccordianItem__isszs", E = {
6
6
  formsTableBody: Ne,
7
7
  customAccordianItem: Oe
8
8
  }, Ae = (u) => u ? u.extension?.find(
9
9
  (l) => l.url === ge
10
- )?.valueString : void 0, De = ({
10
+ )?.valueString : void 0, Fe = ({
11
11
  episodeOfCareUuids: u,
12
12
  encounterUuids: l,
13
13
  config: k
14
14
  }) => {
15
- const { t: n } = te(), c = oe(), [f, E] = j(!1), [o, I] = j(null), {
15
+ const { t: n } = te(), c = oe(), [f, T] = j(!1), [o, v] = j(null), {
16
16
  numberOfVisits: w,
17
17
  hideThumbnail: H = !1,
18
18
  forms: y
19
- } = k ?? {}, T = se(
19
+ } = k ?? {}, I = se(
20
20
  u,
21
21
  l
22
22
  ), K = he(), {
23
- data: D = [],
24
- isLoading: F,
25
- isError: L,
23
+ data: F = [],
24
+ isLoading: L,
25
+ isError: B,
26
26
  error: V,
27
27
  refetch: $
28
28
  } = b({
29
29
  queryKey: ["forms", c, u],
30
30
  queryFn: () => ne(c, void 0, w),
31
- enabled: !!c && !T
32
- }), B = d(() => {
33
- let e = D;
31
+ enabled: !!c && !I
32
+ }), D = d(() => {
33
+ let e = F;
34
34
  return l && l.length > 0 && (e = e.filter(
35
35
  (r) => l.includes(r.encounterUuid)
36
36
  )), Array.isArray(y) && y.length > 0 && (e = e.filter(
37
37
  (r) => y.some((a) => a.toLowerCase() === r.formName.toLowerCase())
38
38
  )), e;
39
- }, [D, l, y]), { data: M = [] } = b({
39
+ }, [F, l, y]), { data: M = [] } = b({
40
40
  queryKey: ["observationForms"],
41
41
  queryFn: () => de()
42
42
  }), S = p(
@@ -57,7 +57,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
57
57
  }), {
58
58
  data: N,
59
59
  isLoading: Q,
60
- isError: Y,
60
+ isError: P,
61
61
  error: O
62
62
  } = b({
63
63
  queryKey: ["formsEncounterFHIR", o?.encounterUuid],
@@ -70,10 +70,10 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
70
70
  },
71
71
  [c]
72
72
  );
73
- const J = d(() => !N?.entry || !o?.formName ? [] : N.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => {
73
+ const Y = d(() => !N?.entry || !o?.formName ? [] : N.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => {
74
74
  const r = Ae(e);
75
75
  return !r || r.includes(o.formName);
76
- }), [N, o?.formName]), P = d(() => {
76
+ }), [N, o?.formName]), J = d(() => {
77
77
  if (!m?.schema) return;
78
78
  const e = [], r = (a) => {
79
79
  (a ?? []).forEach((s) => {
@@ -116,7 +116,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
116
116
  ],
117
117
  []
118
118
  ), C = d(() => {
119
- const e = B.reduce(
119
+ const e = D.reduce(
120
120
  (r, a) => {
121
121
  const s = a.formName;
122
122
  r[s] ??= [];
@@ -140,10 +140,10 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
140
140
  )
141
141
  })
142
142
  ).sort((r, a) => r.formName.localeCompare(a.formName));
143
- }, [B, n]), R = p((e) => {
144
- I(e), E(!0);
143
+ }, [D, n]), R = p((e) => {
144
+ v(e), T(!0);
145
145
  }, []), ee = p(() => {
146
- E(!1), I(null);
146
+ T(!1), v(null);
147
147
  }, []), U = p(
148
148
  (e, r) => {
149
149
  switch (r) {
@@ -158,17 +158,17 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
158
158
  [R]
159
159
  );
160
160
  return /* @__PURE__ */ re(ae, { children: [
161
- /* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: F || L || C.length === 0 || T ? /* @__PURE__ */ i(
161
+ /* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: L || B || C.length === 0 || I ? /* @__PURE__ */ i(
162
162
  x,
163
163
  {
164
164
  headers: _,
165
165
  ariaLabel: n("FORMS_HEADING"),
166
166
  rows: [],
167
- loading: F,
168
- errorStateMessage: L ? V?.message : void 0,
167
+ loading: L,
168
+ errorStateMessage: B ? V?.message : void 0,
169
169
  emptyStateMessage: n("FORMS_UNAVAILABLE"),
170
170
  renderCell: U,
171
- className: v.formsTableBody,
171
+ className: E.formsTableBody,
172
172
  dataTestId: "forms-table"
173
173
  }
174
174
  ) : /* @__PURE__ */ i(fe, { align: "start", children: C.map((e, r) => {
@@ -177,7 +177,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
177
177
  ye,
178
178
  {
179
179
  title: a,
180
- className: v.customAccordianItem,
180
+ className: E.customAccordianItem,
181
181
  testId: `accordian-title-${a}`,
182
182
  open: r === 0,
183
183
  children: /* @__PURE__ */ i(
@@ -191,7 +191,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
191
191
  sortable: Z,
192
192
  emptyStateMessage: n("FORMS_UNAVAILABLE"),
193
193
  renderCell: U,
194
- className: v.formsTableBody,
194
+ className: E.formsTableBody,
195
195
  dataTestId: `forms-table-${a}`
196
196
  }
197
197
  )
@@ -214,14 +214,14 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
214
214
  children: /* @__PURE__ */ i(
215
215
  pe,
216
216
  {
217
- observations: J,
217
+ observations: Y,
218
218
  isLoading: z || Q,
219
- isError: G || Y,
219
+ isError: G || P,
220
220
  errorMessage: X,
221
221
  emptyStateMessage: n("NO_FORM_DATA_AVAILABLE"),
222
222
  testIdPrefix: o.formName,
223
223
  hideThumbnail: H,
224
- controlOrder: P,
224
+ controlOrder: J,
225
225
  sectionMap: W
226
226
  }
227
227
  )
@@ -230,5 +230,5 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
230
230
  ] });
231
231
  };
232
232
  export {
233
- De as default
233
+ Fe as default
234
234
  };
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-CvSTZe6d.js";
2
- import { ah as d, ai as f, aj as e } from "./index-Cn9KgKUO.js";
1
+ import { c, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-CdtvSJkL.js";
2
+ import { ah as d, ai as f, aj as e } from "./index-Bjd0Amzt.js";
3
3
  var h = (a) => {
4
4
  const [r, t] = c({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
- import { c as s, T as c, P as i, a as u, b as m, C as P, Q as d } from "./YPM2AS64-CvSTZe6d.js";
2
- import { ah as h, ai as v, aj as e } from "./index-Cn9KgKUO.js";
1
+ import { c as s, T as c, P as i, a as u, b as m, C as P, Q as d } from "./YPM2AS64-CdtvSJkL.js";
2
+ import { ah as h, ai as v, aj as e } from "./index-Bjd0Amzt.js";
3
3
  var C = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
1
  import { jsxs as S, jsx as u } from "react/jsx-runtime";
2
- import { n as B, o as M, u as N, h as K, i as k, j as H, H as Q, M as j, x as P, k as w, O as G, V as z, q as x, l as J, C as Y, r as W, _ as X, P as Z, R as ee } from "./index-Cn9KgKUO.js";
2
+ import { n as B, o as M, u as N, h as K, i as k, j as H, H as Q, M as j, x as P, k as w, O as G, V as z, q as x, l as J, C as Y, r as W, _ as X, P as Z, R as ee } from "./index-Bjd0Amzt.js";
3
3
  import { useQueries as te, useQuery as ae } from "@tanstack/react-query";
4
4
  import { useRef as se, useEffect as $, useMemo as E } from "react";
5
5
  const C = (t, n, d, l, b, r) => {
@@ -1,4 +1,4 @@
1
- import { ak as we, al as z, am as xt, an as B, ai as q, aj as y, ao as Ro, ap as ye, aq as R, ar as _, as as k, at as N, au as A, av as bs, aw as ir, ax as $e, ay as U, az as Hn, aA as Vn, aB as dt, aC as D, aD as xs, aE as cn, aF as Be, aG as ws, aH as qt, aI as zt, aJ as $s, aK as Cs, aL as $n, aM as Ss, aN as Nr, aO as Bt, aP as zo, aQ as ks, aR as Es, aS as j, aT as Ur, aU as Ms, aV as Ds, aW as sr, aX as As, aY as Ts, aZ as zn, a_ as Fs, a$ as Is, b0 as Z, b1 as Ps, b2 as Ls } from "./index-Cn9KgKUO.js";
1
+ import { ak as we, al as z, am as xt, an as B, ai as q, aj as y, ao as Ro, ap as ye, aq as R, ar as _, as as k, at as N, au as A, av as bs, aw as ir, ax as $e, ay as U, az as Hn, aA as Vn, aB as dt, aC as D, aD as xs, aE as cn, aF as Be, aG as ws, aH as qt, aI as zt, aJ as $s, aK as Cs, aL as $n, aM as Ss, aN as Nr, aO as Bt, aP as zo, aQ as ks, aR as Es, aS as j, aT as Ur, aU as Ms, aV as Ds, aW as sr, aX as As, aY as Ts, aZ as zn, a_ as Fs, a$ as Is, b0 as Z, b1 as Ps, b2 as Ls } from "./index-Bjd0Amzt.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -1,18 +1,18 @@
1
- import { jsx as n, jsxs as y } from "react/jsx-runtime";
2
- import { s as V, A as O, u as C, t as P, z as h, o as B, y as x, B as L, U as G, F as U, G as q, I as F, J as H, K as k, L as w, Q as K } from "./index-Cn9KgKUO.js";
1
+ import { jsx as n, jsxs as f } from "react/jsx-runtime";
2
+ import { s as V, A as O, u as C, t as P, G as h, o as B, y as G, z as L, F as x, B as U, I as F, J as q, K as H, L as j, U as k, Q as w } from "./index-Bjd0Amzt.js";
3
3
  import { useState as I, useMemo as _ } from "react";
4
- import { useQueryClient as Q, useQuery as $ } from "@tanstack/react-query";
5
- const j = V(
4
+ import { useQueryClient as K, useQuery as Q } from "@tanstack/react-query";
5
+ const $ = V(
6
6
  O,
7
7
  "useAppointmentsConfig",
8
8
  "AppointmentsConfigProvider"
9
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
17
  P,
18
18
  {
@@ -23,11 +23,11 @@ const j = 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
33
  }, u = [
@@ -36,29 +36,29 @@ const j = V(
36
36
  "speciality",
37
37
  "durationMins",
38
38
  "description"
39
- ], z = "app:appointments:manageServices", J = "app:appointments:adminTab", Y = "index-module_page__Gsfbu", Z = "index-module_noPrivilegeContainer__Pu5WZ", X = "index-module_table__GAPmb", d = {
40
- page: Y,
41
- noPrivilegeContainer: Z,
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
+ page: Z,
41
+ noPrivilegeContainer: z,
42
42
  table: X
43
43
  };
44
44
  function ee(e) {
45
- return e.filter((a) => !u.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 = Q(), { addNotification: t } = B(), { userPrivileges: s } = x(), { appointmentsConfig: i } = j(), [E, c] = I(null), [M, p] = I(!1), l = i?.serviceTableFields ?? [
78
+ const { t: e } = C(), i = K(), { addNotification: t } = B(), { userPrivileges: s } = G(), { appointmentsConfig: a } = $(), [E, c] = I(null), [M, p] = I(!1), l = a?.serviceTableFields ?? [
79
79
  ...u
80
- ], m = L(s, J), b = L(
80
+ ], m = L(s, Y), b = L(
81
81
  s,
82
- z
82
+ J
83
83
  ), S = _(
84
84
  () => ee(l),
85
85
  [l]
86
- ), { data: A, isLoading: v, isError: R } = $({
86
+ ), { data: A, isLoading: v, isError: R } = Q({
87
87
  queryKey: ["allAppointmentServices"],
88
- queryFn: G,
88
+ queryFn: x,
89
89
  enabled: m
90
90
  }), D = _(
91
91
  () => te(l, e),
92
92
  [l]
93
93
  ), N = _(
94
- () => ae(A ?? [], S),
94
+ () => ie(A ?? [], S),
95
95
  [A, S]
96
96
  ), g = async () => {
97
97
  p(!0);
98
98
  try {
99
- await K(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"),
@@ -112,7 +112,7 @@ const le = () => {
112
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`,
@@ -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(w, {})
124
+ children: /* @__PURE__ */ n(k, {})
125
125
  }
126
- ) : u.includes(o) ? r[o] ?? "-" : r.attributes[o] ?? "-", f = [
126
+ ) : u.includes(o) ? r[o] ?? "-" : r.attributes[o] ?? "-", y = [
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
- q,
131
+ F,
132
132
  {
133
- header: /* @__PURE__ */ n(H, { breadcrumbItems: f }),
134
- main: m ? /* @__PURE__ */ y(
133
+ header: /* @__PURE__ */ n(H, { breadcrumbItems: y }),
134
+ main: m ? /* @__PURE__ */ f(
135
135
  "div",
136
136
  {
137
137
  id: "all-appointment-service-page",
@@ -140,7 +140,7 @@ const le = () => {
140
140
  className: d.page,
141
141
  children: [
142
142
  /* @__PURE__ */ n(
143
- F,
143
+ q,
144
144
  {
145
145
  id: "all-services",
146
146
  title: e("ADMIN_ALL_SERVICES_TITLE"),
@@ -95212,7 +95212,7 @@ function Tlt(t, e, r) {
95212
95212
  return n;
95213
95213
  };
95214
95214
  }
95215
- b0(() => Promise.resolve().then(() => wF2)), b0(() => Promise.resolve().then(() => FF2)), b0(() => Promise.resolve().then(() => Vj2)), b0(() => Promise.resolve().then(() => Lj2)), b0(() => import("./DocumentsTable-Cd0rZQF3-lvqBhAUg.js")), b0(() => Promise.resolve().then(() => CW2)), b0(() => import("./FormsTable-CgyxKp9V-BnRN598g.js")), b0(() => Promise.resolve().then(() => sW2)), b0(() => import("./Observations-3VgJK5Ks-CkAVD461.js")), b0(
95215
+ b0(() => Promise.resolve().then(() => wF2)), b0(() => Promise.resolve().then(() => FF2)), b0(() => Promise.resolve().then(() => Vj2)), b0(() => Promise.resolve().then(() => Lj2)), b0(() => import("./DocumentsTable-y7KKSEft-Bu2e155r.js")), b0(() => Promise.resolve().then(() => CW2)), b0(() => import("./FormsTable-DWjxOeF0-BW0BApo4.js")), b0(() => Promise.resolve().then(() => sW2)), b0(() => import("./Observations-BVrVtdFC-CBFpx7Yu.js")), b0(
95216
95216
  () => Promise.resolve().then(() => lK2)
95217
95217
  ), b0(
95218
95218
  () => Promise.resolve().then(() => _U2)
@@ -183126,7 +183126,7 @@ var qst = (t, e = !1) => {
183126
183126
  const e = aJ1(() => {
183127
183127
  const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#e;
183128
183128
  let d;
183129
- return this.#l ? d = this.#l : (d = nJ1(() => import("./LNWAZHJI-Lk3z1KxI.js")), this.#l = d), HJ1(this.#h, this.#r), tJ1(d, rJ1({
183129
+ return this.#l ? d = this.#l : (d = nJ1(() => import("./LNWAZHJI-C9TP9MTc.js")), this.#l = d), HJ1(this.#h, this.#r), tJ1(d, rJ1({
183130
183130
  get queryFlavor() {
183131
183131
  return r.#d;
183132
183132
  },
@@ -183224,7 +183224,7 @@ var qst = (t, e = !1) => {
183224
183224
  const e = aJ1(() => {
183225
183225
  const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#e, [d] = this.#l;
183226
183226
  let u;
183227
- return this.#i ? u = this.#i : (u = nJ1(() => import("./MWZ6AO7Z-CjMyzowY.js")), this.#i = u), HJ1(this.#h, this.#r), tJ1(u, rJ1({
183227
+ return this.#i ? u = this.#i : (u = nJ1(() => import("./MWZ6AO7Z-tcjSIrcv.js")), this.#i = u), HJ1(this.#h, this.#r), tJ1(u, rJ1({
183228
183228
  get queryFlavor() {
183229
183229
  return r.#d;
183230
183230
  },
@@ -183384,11 +183384,11 @@ const zct = {
183384
183384
  }), Rct = b0(
183385
183385
  () => import("./index-CFigb5vF.js").then((t) => ({ default: t.IndexPage }))
183386
183386
  ), Sct = b0(
183387
- () => import("./index-C_Dcpmng.js").then((t) => ({
183387
+ () => import("./index-BP9aJpz3.js").then((t) => ({
183388
183388
  default: t.default
183389
183389
  }))
183390
183390
  ), kct = b0(
183391
- () => import("./index-BbpxfV9v.js").then((t) => ({
183391
+ () => import("./index-DUl_sIXv.js").then((t) => ({
183392
183392
  default: t.default
183393
183393
  }))
183394
183394
  ), Zct = [
@@ -183432,30 +183432,30 @@ function Yst() {
183432
183432
  export {
183433
183433
  ast as $,
183434
183434
  Nct as A,
183435
- Nt0 as B,
183435
+ tit as B,
183436
183436
  Yye as C,
183437
183437
  At as D,
183438
183438
  Fi as E,
183439
- tit as F,
183440
- Est as G,
183439
+ Yit as F,
183440
+ uit as G,
183441
183441
  Clt as H,
183442
- ust as I,
183443
- P4t as J,
183444
- ist as K,
183445
- SM0 as L,
183442
+ Est as I,
183443
+ ust as J,
183444
+ P4t as K,
183445
+ ist as L,
183446
183446
  Llt as M,
183447
183447
  Gi as N,
183448
183448
  K0 as O,
183449
183449
  CA2 as P,
183450
183450
  Jit as Q,
183451
183451
  MA2 as R,
183452
- tst as S,
183453
- nst as T,
183454
- Yit as U,
183452
+ nst as S,
183453
+ p00 as T,
183454
+ SM0 as U,
183455
183455
  xlt as V,
183456
- p00 as W,
183457
- est as X,
183458
- fit as Y,
183456
+ tst as W,
183457
+ fit as X,
183458
+ est as Y,
183459
183459
  pit as Z,
183460
183460
  wA2 as _,
183461
183461
  zlt as a,
@@ -183551,5 +183551,5 @@ export {
183551
183551
  Hlt as w,
183552
183552
  Alt as x,
183553
183553
  Nd as y,
183554
- uit as z
183554
+ Nt0 as z
183555
183555
  };
@@ -1,10 +1,10 @@
1
1
  import { jsx as r, jsxs as b } from "react/jsx-runtime";
2
- import { S as f, T as P, W as O, X as V, Y as z, Z 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, y as oe, o as de, B as $, ad as ce, F as me, ae as Ae, af as Ie, ag as ue, I as _e, J as Te } from "./index-Cn9KgKUO.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 = () => {
6
6
  try {
7
- return z().uuid;
7
+ return Z().uuid;
8
8
  } catch {
9
9
  return "";
10
10
  }
@@ -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 B = { ...X };
571
- return T.forEach((Z) => delete B[Z]), B;
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-Cn9KgKUO.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.328",
3
+ "version": "0.0.1-dev.329",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",