@bahmni/appointments-app 0.0.1-dev.289 → 0.0.1-dev.292

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 h, Fragment as x } from "react/jsx-runtime";
2
- import { u as G, a as W, h as Y, k as J, w as X, m as Z, c as ee, n as te } from "./index-CKmNESyE.js";
2
+ import { u as G, a as W, h as Y, k as J, w as X, m as Z, c as ee, n as te } from "./index-Dy7BWvsq.js";
3
3
  import { useQuery as ae } from "@tanstack/react-query";
4
4
  import { useState as l, useCallback as _, useEffect as N, useMemo as p } 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 = {
@@ -1,5 +1,5 @@
1
- import { jsx as s, jsxs as W, Fragment as X } from "react/jsx-runtime";
2
- import { a as ee, u as re, v as ae, Z as oe, S as te, I as se, $ as ne, e as de, _ as R, m as ie, w as me, c as q, O as ue, L as le, n as ce, q as fe, D as ye } from "./index-CKmNESyE.js";
1
+ import { jsx as s, jsxs as X, Fragment as Y } from "react/jsx-runtime";
2
+ import { a as ee, u as re, v as ae, Z as oe, S as te, I as se, $ as ne, e as de, _ as R, m as ie, w as me, c as q, O as ue, L as le, n as ce, q as fe, D as ye } from "./index-Dy7BWvsq.js";
3
3
  import { useQueryClient as be, useQuery as f } from "@tanstack/react-query";
4
4
  import { useState as U, useMemo as d, useCallback as y } from "react";
5
5
  const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_customAccordianItem__isszs", A = {
@@ -83,7 +83,7 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
83
83
  { key: "recordedBy", header: t("RECORDED_BY") }
84
84
  ],
85
85
  [t]
86
- ), Y = d(
86
+ ), Z = d(
87
87
  () => [
88
88
  { key: "recordedOn", sortable: !0 },
89
89
  { key: "recordedBy", sortable: !0 }
@@ -94,7 +94,7 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
94
94
  (r, a) => {
95
95
  const i = a.formName;
96
96
  r[i] ??= [];
97
- const h = a.providers.map((J) => J.providerName).filter(Boolean).join(", ");
97
+ const h = a.providers.map((W) => W.providerName).filter(Boolean).join(", ");
98
98
  return r[i].push({
99
99
  id: a.encounterUuid,
100
100
  formName: a.formName,
@@ -116,7 +116,7 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
116
116
  ).sort((r, a) => r.formName.localeCompare(a.formName));
117
117
  }, [v, t]), S = y((e) => {
118
118
  I(e), O(!0);
119
- }, []), Z = y(() => {
119
+ }, []), J = y(() => {
120
120
  O(!1), I(null);
121
121
  }, []), C = y(
122
122
  (e, r) => {
@@ -131,7 +131,7 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
131
131
  },
132
132
  [S]
133
133
  );
134
- return /* @__PURE__ */ W(X, { children: [
134
+ return /* @__PURE__ */ X(Y, { children: [
135
135
  /* @__PURE__ */ s("div", { id: "forms-table", "data-testid": "forms-table", children: F || _ || M.length === 0 || L ? /* @__PURE__ */ s(
136
136
  q,
137
137
  {
@@ -162,7 +162,7 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
162
162
  rows: i,
163
163
  loading: !1,
164
164
  errorStateMessage: "",
165
- sortable: Y,
165
+ sortable: Z,
166
166
  emptyStateMessage: t("FORMS_UNAVAILABLE"),
167
167
  renderCell: C,
168
168
  className: A.formsTableBody,
@@ -179,7 +179,7 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
179
179
  id: "modalIdForActionAreaLayout",
180
180
  portalId: "main-display-area",
181
181
  open: l,
182
- onRequestClose: Z,
182
+ onRequestClose: J,
183
183
  modalHeading: o.formName,
184
184
  modalLabel: `${o.recordedOn} | ${o.recordedBy}`,
185
185
  passiveModal: !0,
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-BYVUVZZ1.js";
2
- import { ah as d, ai as f, aj as e } from "./index-CKmNESyE.js";
1
+ import { c, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-BtdrEPZe.js";
2
+ import { ah as d, ai as f, aj as e } from "./index-Dy7BWvsq.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-BYVUVZZ1.js";
2
- import { ah as h, ai as v, aj as e } from "./index-CKmNESyE.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-BtdrEPZe.js";
2
+ import { ah as h, ai as v, aj as e } from "./index-Dy7BWvsq.js";
3
3
  var C = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
- import { jsxs as I, jsx as u } from "react/jsx-runtime";
2
- import { u as B, h as V, a as S, b as w, R as j, e as k, W as z, d as Q, K as x, z as G, c as M, j as P, f as H, U as W, g as J, i as Y, H as X, l as Z, N as ee } from "./index-CKmNESyE.js";
1
+ import { jsxs as N, jsx as u } from "react/jsx-runtime";
2
+ import { u as B, h as V, a as S, b as w, R as j, e as k, W as z, d as M, K as Q, z as x, c as G, j as P, f as H, U as W, g as J, i as Y, H as X, l as Z, N as ee } from "./index-Dy7BWvsq.js";
3
3
  import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
4
4
  import { useRef as se, useEffect as $, useMemo as E } from "react";
5
5
  const D = (a, n, d, l, b, r) => {
@@ -61,7 +61,7 @@ const D = (a, n, d, l, b, r) => {
61
61
  }) => {
62
62
  const { t: l } = S(), b = (r, t, s) => {
63
63
  const o = P(r.encounterDetails, l);
64
- return /* @__PURE__ */ I(
64
+ return /* @__PURE__ */ N(
65
65
  H,
66
66
  {
67
67
  title: o,
@@ -105,7 +105,7 @@ const D = (a, n, d, l, b, r) => {
105
105
  )
106
106
  }
107
107
  );
108
- }, ie = "Observations-module_observations__RKSyo", ne = "Observations-module_title__TJL3z", N = {
108
+ }, ie = "Observations-module_observations__RKSyo", ne = "Observations-module_title__TJL3z", I = {
109
109
  observations: ie,
110
110
  title: ne
111
111
  }, de = (a) => ["conceptUuid", a], le = (a, n) => ["observations", a, ...n], pe = ({ config: a }) => {
@@ -158,32 +158,32 @@ const D = (a, n, d, l, b, r) => {
158
158
  }, [T]);
159
159
  const O = E(() => {
160
160
  if (!c) return [];
161
- const e = z(c), h = Q(e);
162
- return x(h);
161
+ const e = z(c), h = M(e);
162
+ return Q(h);
163
163
  }, [c]), F = [
164
164
  { key: "name", header: "name" },
165
165
  { key: "value", header: "value" },
166
166
  { key: "form", header: "form" }
167
- ], f = L || !y, _ = T && y, U = (!c || c.entry?.length === 0 || p.length === 0) && y, A = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null, K = U ? o("NO_OBSERVATIONS_FOUND") : void 0, C = O.length > 0 && !f && !_, R = n.titleTranslationKey, v = R ? o(R) : "";
168
- return /* @__PURE__ */ I(
167
+ ], f = L || !y, _ = T && y, U = (!c || c.entry?.length === 0 || p.length === 0) && y, A = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null, C = U ? o("NO_OBSERVATIONS_FOUND") : void 0, K = O.length > 0 && !f && !_, R = n.titleTranslationKey, v = R ? o(R) : "";
168
+ return /* @__PURE__ */ N(
169
169
  "div",
170
170
  {
171
171
  id: "observations",
172
172
  "data-testid": R ? `observations-${v}` : "observations",
173
173
  "aria-label": "observations-aria-label",
174
- className: N.observations,
174
+ className: I.observations,
175
175
  children: [
176
176
  /* @__PURE__ */ u(
177
- G,
177
+ x,
178
178
  {
179
179
  id: "observations-title",
180
180
  testId: R ? `observations-title-${v}` : "observations-title",
181
181
  title: v,
182
- className: N.title,
182
+ className: I.title,
183
183
  children: /* @__PURE__ */ u("p", { children: v })
184
184
  }
185
185
  ),
186
- C ? /* @__PURE__ */ u(
186
+ K ? /* @__PURE__ */ u(
187
187
  oe,
188
188
  {
189
189
  groupedData: O,
@@ -191,14 +191,14 @@ const D = (a, n, d, l, b, r) => {
191
191
  hideThumbnail: b
192
192
  }
193
193
  ) : /* @__PURE__ */ u(
194
- M,
194
+ G,
195
195
  {
196
196
  headers: F,
197
197
  rows: [],
198
198
  ariaLabel: o("OBSERVATIONS"),
199
199
  loading: f,
200
200
  errorStateMessage: A,
201
- emptyStateMessage: K,
201
+ emptyStateMessage: C,
202
202
  dataTestId: "observations-table"
203
203
  }
204
204
  )
@@ -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-CKmNESyE.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-Dy7BWvsq.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -1,5 +1,5 @@
1
1
  import { jsx as r, jsxs as b } from "react/jsx-runtime";
2
- import { J as f, M as P, P as O, Q as V, V as Z, X as ee, Y as te, a0 as ie, t as ae, a1 as ne, a 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 w, r as oe, h as de, s as $, ad as ce, x as me, ae as Ae, af as Ie, ag as ue, B as _e, C as Te } from "./index-CKmNESyE.js";
2
+ import { T as f, M as P, P as O, Q as V, V as Z, X as ee, Y as te, a0 as ie, y as ae, a1 as ne, a as Q, a2 as R, a3 as le, a4 as re, a5 as se, a6 as E, a7 as C, a8 as F, a9 as Y, aa as x, ab as k, ac as w, s as oe, h as de, t as $, ad as ce, x as me, ae as Ae, af as Ie, ag as ue, C as _e, E as Te } from "./index-Dy7BWvsq.js";
3
3
  import { useState as g, useMemo as N, useEffect as h, 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", G = "Appointment Location", be = () => {
@@ -11,10 +11,10 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
11
11
  }, K = (e) => ({
12
12
  id: "",
13
13
  text: e
14
- }), De = (e) => ({
14
+ }), ye = (e) => ({
15
15
  display: e,
16
16
  uuid: ""
17
- }), ye = (e, a) => {
17
+ }), De = (e, a) => {
18
18
  const n = e.map((t) => ({
19
19
  id: t.uuid,
20
20
  text: t.name,
@@ -137,14 +137,14 @@ 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
- }, Se = "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 = {
140
+ }, Se = "UnavailabilityForm-module_formContent__WmNHR", Be = "UnavailabilityForm-module_formField__8he7o", Pe = "UnavailabilityForm-module_loading__IDEY6", Oe = "UnavailabilityForm-module_error__jDeOm", Ve = "UnavailabilityForm-module_grid__t6NKR", Ce = "UnavailabilityForm-module_column__QFdnQ", Fe = "UnavailabilityForm-module_dateTimeColumn__6bi0F", Ye = "UnavailabilityForm-module_datePicker__6HgbO", xe = "UnavailabilityForm-module_timePicker__DHNpK", d = {
141
141
  formContent: Se,
142
142
  formField: Be,
143
143
  loading: Pe,
144
144
  error: Oe,
145
145
  grid: Ve,
146
- column: Fe,
147
- dateTimeColumn: Ce,
146
+ column: Ce,
147
+ dateTimeColumn: Fe,
148
148
  datePicker: Ye,
149
149
  timePicker: xe
150
150
  }, ke = ({
@@ -173,7 +173,7 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
173
173
  ),
174
174
  [A]
175
175
  ), u = N(
176
- () => R(!1, !1, o, De, {
176
+ () => R(!1, !1, o, ye, {
177
177
  loading: "",
178
178
  error: "",
179
179
  empty: t("ADMIN_UNAVAILABILITY_FORM_NO_LOCATIONS")
@@ -183,7 +183,7 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
183
183
  () => R(
184
184
  !1,
185
185
  !1,
186
- ye(
186
+ De(
187
187
  _,
188
188
  t("ADMIN_UNAVAILABILITY_FORM_ALL_SERVICES")
189
189
  ),
@@ -195,7 +195,7 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
195
195
  }
196
196
  ),
197
197
  [_]
198
- ), D = N(
198
+ ), y = N(
199
199
  () => R(
200
200
  !1,
201
201
  !1,
@@ -215,10 +215,10 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
215
215
  return h(() => {
216
216
  if (o.length === 0) return;
217
217
  const i = be(), p = o.some(
218
- (y) => y.uuid === i
218
+ (D) => D.uuid === i
219
219
  );
220
- s((y) => ({
221
- ...y,
220
+ s((D) => ({
221
+ ...D,
222
222
  locationUuid: p ? i : ""
223
223
  }));
224
224
  }, [o]), h(() => {
@@ -229,9 +229,9 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
229
229
  }, [v]), h(() => {
230
230
  I.length > 0 && s((i) => ({
231
231
  ...i,
232
- selectedProviderItems: D
232
+ selectedProviderItems: y
233
233
  }));
234
- }, [D]), a.current = {
234
+ }, [y]), a.current = {
235
235
  ...l,
236
236
  filteredServicesCount: _.length,
237
237
  availableProvidersCount: I.length
@@ -301,10 +301,10 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
301
301
  className: `${d.column} ${d.dateTimeColumn}`,
302
302
  children: [
303
303
  /* @__PURE__ */ r(
304
- F,
304
+ C,
305
305
  {
306
306
  datePickerType: "single",
307
- minDate: C(),
307
+ minDate: F(),
308
308
  value: l.startDate ?? void 0,
309
309
  onChange: (i) => {
310
310
  i[0] && (n(["startDate", "dateTime"]), s({
@@ -376,10 +376,10 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
376
376
  className: `${d.column} ${d.dateTimeColumn}`,
377
377
  children: [
378
378
  /* @__PURE__ */ r(
379
- F,
379
+ C,
380
380
  {
381
381
  datePickerType: "single",
382
- minDate: l.startDate ?? C(),
382
+ minDate: l.startDate ?? F(),
383
383
  value: l.endDate ?? void 0,
384
384
  onChange: (i) => {
385
385
  i[0] && (n(["endDate", "dateTime"]), s({
@@ -484,7 +484,7 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
484
484
  "data-testid": "provider-multiselect",
485
485
  titleText: t("ADMIN_UNAVAILABILITY_FORM_PROVIDER_LABEL"),
486
486
  placeholder: t("ADMIN_UNAVAILABILITY_FORM_PROVIDER_LABEL"),
487
- items: D,
487
+ items: y,
488
488
  itemToString: (i) => i?.text ?? "",
489
489
  selectedItems: l.selectedProviderItems,
490
490
  onChange: (i) => s({
@@ -510,7 +510,7 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
510
510
  ), I = $(n, [
511
511
  pe,
512
512
  q
513
- ]), { data: u, isLoading: v, isError: D } = M({
513
+ ]), { data: u, isLoading: v, isError: y } = M({
514
514
  queryKey: ["appointmentUnavailabilities"],
515
515
  queryFn: ce,
516
516
  enabled: _
@@ -537,7 +537,7 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
537
537
  key: "providerName",
538
538
  header: e("ADMIN_UNAVAILABILITY_COLUMN_PROVIDER")
539
539
  }
540
- ], [e]), y = N(() => u ? u.map((T) => ge(T, e)) : [], [u, e]), S = U(
540
+ ], [e]), D = N(() => u ? u.map((T) => ge(T, e)) : [], [u, e]), S = U(
541
541
  async (T) => {
542
542
  L(!0);
543
543
  try {
@@ -566,9 +566,9 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
566
566
  s(T), !(Object.keys(T).length > 0) && await S(fe(m.current, e));
567
567
  }, [e, S]), W = U(
568
568
  (T) => {
569
- s((J) => {
570
- const B = { ...J };
571
- return T.forEach((z) => delete B[z]), B;
569
+ s((z) => {
570
+ const B = { ...z };
571
+ return T.forEach((J) => delete B[J]), B;
572
572
  });
573
573
  },
574
574
  []
@@ -595,10 +595,10 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
595
595
  "aria-label": "appointment-unavailability-actions-table-aria-label",
596
596
  title: e("ADMIN_UNAVAILABILITY_TITLE"),
597
597
  headers: p,
598
- rows: y,
598
+ rows: D,
599
599
  ariaLabel: "unavailability-table",
600
600
  loading: v,
601
- errorStateMessage: D ? e("ADMIN_UNAVAILABILITY_ERROR_MESSAGE") : null,
601
+ errorStateMessage: y ? e("ADMIN_UNAVAILABILITY_ERROR_MESSAGE") : null,
602
602
  emptyStateMessage: e("ADMIN_UNAVAILABILITY_EMPTY_MESSAGE"),
603
603
  actionButton: !o && I ? {
604
604
  label: e("ADMIN_UNAVAILABILITY_ADD_BUTTON"),
@@ -175576,7 +175576,7 @@ function Itt(t, e, r) {
175576
175576
  return o;
175577
175577
  };
175578
175578
  }
175579
- b0(() => Promise.resolve().then(() => CG0)), b0(() => Promise.resolve().then(() => rY0)), b0(() => Promise.resolve().then(() => TY0)), b0(() => Promise.resolve().then(() => BY0)), b0(() => import("./DocumentsTable-DXWkjdux-DPHdJIkQ.js")), b0(() => Promise.resolve().then(() => DX0)), b0(() => import("./FormsTable-DLJpQ6yJ-BsnUkeXd.js")), b0(() => Promise.resolve().then(() => wX0)), b0(() => import("./Observations-Dk1JBpvB-CLxEklVq.js")), b0(
175579
+ b0(() => Promise.resolve().then(() => CG0)), b0(() => Promise.resolve().then(() => rY0)), b0(() => Promise.resolve().then(() => TY0)), b0(() => Promise.resolve().then(() => BY0)), b0(() => import("./DocumentsTable-CfVupTB9-HXKvEzQF.js")), b0(() => Promise.resolve().then(() => DX0)), b0(() => import("./FormsTable-CoYEb-r4-Dr8ah-5F.js")), b0(() => Promise.resolve().then(() => wX0)), b0(() => import("./Observations-CXe_EFqX-BFV8vHf7.js")), b0(
175580
175580
  () => Promise.resolve().then(() => qX0)
175581
175581
  ), b0(
175582
175582
  () => Promise.resolve().then(() => kQ0)
@@ -177416,7 +177416,7 @@ var urt = (t, e = !1) => {
177416
177416
  const e = PWe(() => {
177417
177417
  const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#e;
177418
177418
  let d;
177419
- return this.#l ? d = this.#l : (d = BWe(() => import("./LNWAZHJI-MQmeJpyh.js")), this.#l = d), lKe(this.#h, this.#r), kWe(d, ZWe({
177419
+ return this.#l ? d = this.#l : (d = BWe(() => import("./LNWAZHJI-DwlMuZJ1.js")), this.#l = d), lKe(this.#h, this.#r), kWe(d, ZWe({
177420
177420
  get queryFlavor() {
177421
177421
  return r.#d;
177422
177422
  },
@@ -177514,7 +177514,7 @@ var urt = (t, e = !1) => {
177514
177514
  const e = PWe(() => {
177515
177515
  const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#e, [d] = this.#l;
177516
177516
  let u;
177517
- return this.#i ? u = this.#i : (u = BWe(() => import("./MWZ6AO7Z-DFzfj7oi.js")), this.#i = u), lKe(this.#h, this.#r), kWe(u, ZWe({
177517
+ return this.#i ? u = this.#i : (u = BWe(() => import("./MWZ6AO7Z-HPK43MHZ.js")), this.#i = u), lKe(this.#h, this.#r), kWe(u, ZWe({
177518
177518
  get queryFlavor() {
177519
177519
  return r.#d;
177520
177520
  },
@@ -177674,11 +177674,11 @@ const Qet = {
177674
177674
  }), u2t = b0(
177675
177675
  () => import("./index-CFigb5vF.js").then((t) => ({ default: t.IndexPage }))
177676
177676
  ), h2t = b0(
177677
- () => import("./index-CWWn6JGL.js").then((t) => ({
177677
+ () => import("./index-oofmsur6.js").then((t) => ({
177678
177678
  default: t.default
177679
177679
  }))
177680
177680
  ), p2t = b0(
177681
- () => import("./index-tUeb3uQs.js").then((t) => ({
177681
+ () => import("./index-BDZ84XyF.js").then((t) => ({
177682
177682
  default: t.default
177683
177683
  }))
177684
177684
  ), f2t = [
@@ -177722,15 +177722,15 @@ function wrt() {
177722
177722
  export {
177723
177723
  _tt as $,
177724
177724
  r2t as A,
177725
- L2t as B,
177726
- IY2 as C,
177725
+ R2t as B,
177726
+ L2t as C,
177727
177727
  Ctt as D,
177728
- x2t as E,
177729
- I52 as F,
177730
- Q0t as G,
177728
+ IY2 as E,
177729
+ x2t as F,
177730
+ I52 as G,
177731
177731
  Y_0 as H,
177732
177732
  Ttt as I,
177733
- rtt as J,
177733
+ Q0t as J,
177734
177734
  Btt as K,
177735
177735
  zi as L,
177736
177736
  ott as M,
@@ -177740,7 +177740,7 @@ export {
177740
177740
  ttt as Q,
177741
177741
  Att as R,
177742
177742
  $tt as S,
177743
- p0t as T,
177743
+ rtt as T,
177744
177744
  Stt as U,
177745
177745
  w0t as V,
177746
177746
  ktt as W,
@@ -177833,13 +177833,13 @@ export {
177833
177833
  Itt as o,
177834
177834
  Sv as p,
177835
177835
  pWe as q,
177836
- Sy as r,
177837
- ltt as s,
177838
- J0t as t,
177836
+ p0t as r,
177837
+ Sy as s,
177838
+ ltt as t,
177839
177839
  mr as u,
177840
177840
  ud as v,
177841
177841
  v8 as w,
177842
177842
  n0t as x,
177843
- R2t as y,
177843
+ J0t as y,
177844
177844
  W7 as z
177845
177845
  };
@@ -1,9 +1,9 @@
1
1
  import { jsx as n, jsxs as f } from "react/jsx-runtime";
2
- import { o as V, A as h, a as C, p as O, T as P, h as B, r as G, s as L, t as x, x as U, y as q, B as F, C as w, E as k, F as K, G as $ } from "./index-CKmNESyE.js";
2
+ import { o as V, A as O, a as C, p as h, r as P, h as B, s as G, t as L, y as x, x as U, B as q, C as w, E as F, F as k, G as K, J as $ } from "./index-Dy7BWvsq.js";
3
3
  import { useState as I, useMemo as _ } from "react";
4
4
  import { useQueryClient as j, useQuery as H } from "@tanstack/react-query";
5
5
  const Q = V(
6
- h,
6
+ O,
7
7
  "useAppointmentsConfig",
8
8
  "AppointmentsConfigProvider"
9
9
  ), W = ({
@@ -14,7 +14,7 @@ const Q = 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 Q = V(
36
36
  "speciality",
37
37
  "durationMins",
38
38
  "description"
39
- ], Y = "app:appointments:manageServices", Z = "app:appointments:adminTab", z = "index-module_page__Gsfbu", J = "index-module_noPrivilegeContainer__Pu5WZ", X = "index-module_table__GAPmb", d = {
40
- page: z,
41
- noPrivilegeContainer: J,
39
+ ], Y = "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) {
@@ -77,7 +77,7 @@ function ae(e, a) {
77
77
  const le = () => {
78
78
  const { t: e } = C(), a = j(), { addNotification: t } = B(), { userPrivileges: s } = G(), { appointmentsConfig: i } = Q(), [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
  Y
83
83
  ), S = _(
@@ -130,7 +130,7 @@ const le = () => {
130
130
  return /* @__PURE__ */ n(
131
131
  q,
132
132
  {
133
- header: /* @__PURE__ */ n(w, { breadcrumbItems: y }),
133
+ header: /* @__PURE__ */ n(F, { breadcrumbItems: y }),
134
134
  main: m ? /* @__PURE__ */ f(
135
135
  "div",
136
136
  {
@@ -140,7 +140,7 @@ const le = () => {
140
140
  className: d.page,
141
141
  children: [
142
142
  /* @__PURE__ */ n(
143
- F,
143
+ w,
144
144
  {
145
145
  id: "all-services",
146
146
  title: e("ADMIN_ALL_SERVICES_TITLE"),
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b3 as t } from "./index-CKmNESyE.js";
1
+ import { b3 as t } from "./index-Dy7BWvsq.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.289",
3
+ "version": "0.0.1-dev.292",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",