@bahmni/appointments-app 0.0.1-dev.244 → 0.0.1-dev.246

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 p, Fragment as Y } from "react/jsx-runtime";
2
- import { c as K, u as Q, d as W, a as J, l as X, m as Z, b as ee, w as te, e as ae } from "./index-CF3QwtRK.js";
2
+ import { c as K, u as Q, d as W, a as J, l as X, m as Z, b as ee, w as te, e as ae } from "./index-DJ7fLWv8.js";
3
3
  import { useState as l, useCallback as h, useEffect as f, useMemo as T } from "react";
4
4
  const ne = "_documentsTableBody_1voj8_1", oe = "_viewAttachmentsLink_1voj8_11", re = "_documentViewerContainer_1voj8_15", de = "_attachmentItem_1voj8_23", se = "_attachmentCounter_1voj8_27", ce = "_attachmentError_1voj8_36", ie = "_documentIframe_1voj8_44", le = "_documentImage_1voj8_50", d = {
5
5
  documentsTableBody: ne,
@@ -1,17 +1,17 @@
1
- import { jsx as s, jsxs as W, Fragment as X } from "react/jsx-runtime";
2
- import { u as Z, c as ee, f as re, g as ae, a as c, Q as te, N as U, m as oe, l as se, b as S, x as ne, h as de, w as ie, $ as ue, o as me, i as le, s as ce, j as fe, k as ye } from "./index-CF3QwtRK.js";
1
+ import { jsx as s, jsxs as J, Fragment as W } from "react/jsx-runtime";
2
+ import { u as X, c as ee, f as re, g as ae, a as c, Q as te, N as U, m as oe, l as se, b as S, x as ne, h as de, w as ie, $ as ue, o as me, i as le, s as ce, j as fe, k as ye } from "./index-DJ7fLWv8.js";
3
3
  import { useState as q, useMemo as d, useCallback as f } from "react";
4
- const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
4
+ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", O = {
5
5
  formsTableBody: pe,
6
6
  customAccordianItem: be
7
7
  }, Ne = (u) => u ? u.extension?.find(
8
8
  (n) => n.url === me
9
- )?.valueString : void 0, Oe = ({
9
+ )?.valueString : void 0, Ae = ({
10
10
  episodeOfCareUuids: u,
11
11
  encounterUuids: n,
12
12
  config: C
13
13
  }) => {
14
- const { t: o } = Z(), m = ee(), [l, O] = q(!1), [t, A] = q(null), { numberOfVisits: x, hideThumbnail: k = !1 } = C ?? {}, T = re(
14
+ const { t: o } = X(), m = ee(), [l, A] = q(!1), [t, I] = q(null), { numberOfVisits: k, hideThumbnail: x = !1 } = C ?? {}, T = re(
15
15
  u,
16
16
  n
17
17
  ), $ = ae(), {
@@ -22,20 +22,20 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
22
22
  refetch: w
23
23
  } = c({
24
24
  queryKey: ["forms", m, u],
25
- queryFn: () => le(m, void 0, x),
25
+ queryFn: () => le(m, void 0, k),
26
26
  enabled: !!m && !T
27
- }), F = d(() => !n || n.length === 0 ? y : y.filter(
27
+ }), _ = d(() => !n || n.length === 0 ? y : y.filter(
28
28
  (e) => n.includes(e.encounterUuid)
29
- ), [y, n]), { data: _ = [] } = c({
29
+ ), [y, n]), { data: D = [] } = c({
30
30
  queryKey: ["observationForms"],
31
31
  queryFn: () => ce()
32
- }), L = f(
33
- (e) => _.find((r) => r.name === e)?.uuid,
34
- [_]
32
+ }), F = f(
33
+ (e) => D.find((r) => r.name === e)?.uuid,
34
+ [D]
35
35
  ), p = d(() => {
36
36
  if (t)
37
- return L(t.formName);
38
- }, [t, L]), {
37
+ return F(t.formName);
38
+ }, [t, F]), {
39
39
  isLoading: H,
40
40
  isError: K,
41
41
  error: b
@@ -67,7 +67,7 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
67
67
  return U(b).message;
68
68
  if (g)
69
69
  return U(g).message;
70
- }, [b, g]), M = d(
70
+ }, [b, g]), L = d(
71
71
  () => [
72
72
  { key: "recordedOn", header: o("RECORDED_ON") },
73
73
  { key: "recordedBy", header: o("RECORDED_BY") }
@@ -79,12 +79,12 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
79
79
  { key: "recordedBy", sortable: !0 }
80
80
  ],
81
81
  []
82
- ), D = d(() => {
83
- const e = F.reduce(
82
+ ), M = d(() => {
83
+ const e = _.reduce(
84
84
  (r, a) => {
85
85
  const i = a.formName;
86
86
  r[i] ??= [];
87
- const h = a.providers.map((J) => J.providerName).filter(Boolean).join(", ");
87
+ const h = a.providers.map((Z) => Z.providerName).filter(Boolean).join(", ");
88
88
  return r[i].push({
89
89
  id: a.encounterUuid,
90
90
  formName: a.formName,
@@ -104,10 +104,10 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
104
104
  )
105
105
  })
106
106
  ).sort((r, a) => r.formName.localeCompare(a.formName));
107
- }, [F, o]), R = f((e) => {
108
- A(e), O(!0);
107
+ }, [_, o]), R = f((e) => {
108
+ I(e), A(!0);
109
109
  }, []), Y = f(() => {
110
- O(!1), A(null);
110
+ A(!1), I(null);
111
111
  }, []), v = f(
112
112
  (e, r) => {
113
113
  switch (r) {
@@ -121,33 +121,33 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
121
121
  },
122
122
  [R]
123
123
  );
124
- return /* @__PURE__ */ W(X, { children: [
125
- /* @__PURE__ */ s("div", { "data-testid": "forms-table", children: B || E || D.length === 0 || T ? /* @__PURE__ */ s(
124
+ return /* @__PURE__ */ J(W, { children: [
125
+ /* @__PURE__ */ s("div", { "data-testid": "forms-table", children: B || E || M.length === 0 || T ? /* @__PURE__ */ s(
126
126
  S,
127
127
  {
128
- headers: M,
128
+ headers: L,
129
129
  ariaLabel: o("FORMS_HEADING"),
130
130
  rows: [],
131
131
  loading: B,
132
132
  errorStateMessage: E ? j?.message : void 0,
133
133
  emptyStateMessage: o("FORMS_UNAVAILABLE"),
134
134
  renderCell: v,
135
- className: I.formsTableBody,
135
+ className: O.formsTableBody,
136
136
  dataTestId: "forms-table"
137
137
  }
138
- ) : /* @__PURE__ */ s(ne, { align: "start", children: D.map((e, r) => {
138
+ ) : /* @__PURE__ */ s(ne, { align: "start", children: M.map((e, r) => {
139
139
  const { formName: a, records: i } = e;
140
140
  return /* @__PURE__ */ s(
141
141
  de,
142
142
  {
143
143
  title: a,
144
- className: I.customAccordianItem,
144
+ className: O.customAccordianItem,
145
145
  testId: `accordian-title-${a}`,
146
146
  open: r === 0,
147
147
  children: /* @__PURE__ */ s(
148
148
  S,
149
149
  {
150
- headers: M,
150
+ headers: L,
151
151
  ariaLabel: o("FORMS_HEADING"),
152
152
  rows: i,
153
153
  loading: !1,
@@ -155,7 +155,7 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
155
155
  sortable: P,
156
156
  emptyStateMessage: o("FORMS_UNAVAILABLE"),
157
157
  renderCell: v,
158
- className: I.formsTableBody,
158
+ className: O.formsTableBody,
159
159
  dataTestId: `forms-table-${a}`
160
160
  }
161
161
  )
@@ -184,7 +184,7 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
184
184
  errorMessage: G,
185
185
  emptyStateMessage: o("NO_FORM_DATA_AVAILABLE"),
186
186
  testIdPrefix: t.formName,
187
- hideThumbnail: k
187
+ hideThumbnail: x
188
188
  }
189
189
  )
190
190
  }
@@ -192,5 +192,5 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
192
192
  ] });
193
193
  };
194
194
  export {
195
- Oe as default
195
+ Ae as default
196
196
  };
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-BB0oTsZm.js";
2
- import { W as d, X as f, Y as e } from "./index-CF3QwtRK.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-B7gdVFI6.js";
2
+ import { W as d, X as f, Y as e } from "./index-DJ7fLWv8.js";
3
3
  var p = (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 u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-BB0oTsZm.js";
2
- import { W as v, X as C, Y as e } from "./index-CF3QwtRK.js";
1
+ import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-B7gdVFI6.js";
2
+ import { W as v, X as C, Y as e } from "./index-DJ7fLWv8.js";
3
3
  var h = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,6 +1,6 @@
1
1
  import { jsxs as N, jsx as u } from "react/jsx-runtime";
2
- import { c as Q, d as k, u as S, n as H, p as K, a as w, Q as M, q as x, r as G, t as X, H as j, b as z, v as P, Z as D, y as Z, z as Y, R as J, A as W, B as ee, C as ae, D as te } from "./index-CF3QwtRK.js";
3
- import { useRef as se, useEffect as $, useMemo as R } from "react";
2
+ import { c as Q, d as V, u as S, n as H, p as K, a as w, Q as x, q as G, r as M, t as X, H as j, b as z, v as P, Z as D, y as Z, z as Y, R as J, A as W, B as ee, C as ae, D as te } from "./index-DJ7fLWv8.js";
3
+ import { useRef as se, useEffect as O, useMemo as R } from "react";
4
4
  const A = (a, n, d, l, b, r) => {
5
5
  const t = Z(a, n, b), s = t.value, i = Y(s);
6
6
  let o = s;
@@ -112,20 +112,20 @@ const A = (a, n, d, l, b, r) => {
112
112
  conceptNames: d = [],
113
113
  conceptUuid: l = [],
114
114
  hideThumbnail: b = !1
115
- } = n, r = se(/* @__PURE__ */ new Set()), t = Q(), { addNotification: s } = k(), { t: i } = S(), o = H({
115
+ } = n, r = se(/* @__PURE__ */ new Set()), t = Q(), { addNotification: s } = V(), { t: i } = S(), o = H({
116
116
  queries: d.map((e) => ({
117
117
  queryKey: de(e),
118
118
  queryFn: () => K(e),
119
119
  enabled: !!e
120
120
  }))
121
121
  });
122
- $(() => {
122
+ O(() => {
123
123
  o.forEach((e, h) => {
124
124
  if (e.isError && !r.current.has(h)) {
125
- const V = d[h];
125
+ const k = d[h];
126
126
  s({
127
127
  title: i("ERROR_DEFAULT_TITLE"),
128
- message: i("ERROR_FETCHING_CONCEPT", { conceptName: V }),
128
+ message: i("ERROR_FETCHING_CONCEPT", { conceptName: k }),
129
129
  type: "error"
130
130
  }), r.current.add(h);
131
131
  } else e.isError || r.current.delete(h);
@@ -135,35 +135,35 @@ const A = (a, n, d, l, b, r) => {
135
135
  data: c,
136
136
  isLoading: F,
137
137
  isError: f,
138
- refetch: T
138
+ refetch: g
139
139
  } = w({
140
140
  queryKey: le(t, m),
141
141
  queryFn: () => te(t, m),
142
142
  enabled: !!t && m.length > 0 && y
143
143
  });
144
- M(
144
+ x(
145
145
  (e) => {
146
146
  e.patientUUID === t && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
147
147
  (h) => m.includes(h)
148
- ) && T();
148
+ ) && g();
149
149
  },
150
- [t, T]
151
- ), $(() => {
150
+ [t, g]
151
+ ), O(() => {
152
152
  f && s({
153
153
  title: i("ERROR_DEFAULT_TITLE"),
154
154
  message: i("ERROR_FETCHING_OBSERVATIONS"),
155
155
  type: "error"
156
156
  });
157
157
  }, [f]);
158
- const g = R(() => {
158
+ const T = R(() => {
159
159
  if (!c) return [];
160
- const e = x(c), h = G(e);
160
+ const e = G(c), h = M(e);
161
161
  return X(h);
162
- }, [c]), C = [
162
+ }, [c]), q = [
163
163
  { key: "name", header: "name" },
164
164
  { key: "value", header: "value" },
165
165
  { key: "form", header: "form" }
166
- ], O = F || !y, _ = f && y, L = (!c || c.entry?.length === 0 || m.length === 0) && y, q = _ ? i("ERROR_FETCHING_OBSERVATIONS") : null, B = L ? i("NO_OBSERVATIONS_FOUND") : void 0, U = g.length > 0 && !O && !_, E = n.titleTranslationKey, v = E ? i(E) : "";
166
+ ], _ = F || !y, $ = f && y, C = (!c || c.entry?.length === 0 || m.length === 0) && y, L = $ ? i("ERROR_FETCHING_OBSERVATIONS") : null, B = C ? i("NO_OBSERVATIONS_FOUND") : void 0, U = T.length > 0 && !_ && !$, E = n.titleTranslationKey, v = E ? i(E) : "";
167
167
  return /* @__PURE__ */ N(
168
168
  "div",
169
169
  {
@@ -185,18 +185,18 @@ const A = (a, n, d, l, b, r) => {
185
185
  U ? /* @__PURE__ */ u(
186
186
  ie,
187
187
  {
188
- groupedData: g,
188
+ groupedData: T,
189
189
  title: v,
190
190
  hideThumbnail: b
191
191
  }
192
192
  ) : /* @__PURE__ */ u(
193
193
  z,
194
194
  {
195
- headers: C,
195
+ headers: q,
196
196
  rows: [],
197
197
  ariaLabel: i("OBSERVATIONS"),
198
- loading: O,
199
- errorStateMessage: q,
198
+ loading: _,
199
+ errorStateMessage: L,
200
200
  emptyStateMessage: B,
201
201
  dataTestId: "observations-table"
202
202
  }
@@ -1,4 +1,4 @@
1
- import { _ as we, a0 as z, a1 as xt, a2 as B, X as q, Y as y, a3 as Ro, a4 as ye, a5 as R, a6 as _, a7 as k, a8 as N, a9 as A, aa as bs, ab as ir, ac as $e, ad as G, ae as Hn, af as Vn, ag as dt, ah as D, ai as xs, aj as cn, ak as Be, al as ws, am as qt, an as zt, ao as $s, ap as Cs, aq as $n, ar as Ss, as as Nr, at as Bt, au as zo, av as ks, aw as Es, ax as j, ay as Gr, az as Ms, aA as Ds, aB as sr, aC as As, aD as Ts, aE as zn, aF as Fs, aG as Is, aH as Z, aI as Ps, aJ as Ls } from "./index-CF3QwtRK.js";
1
+ import { _ as we, a0 as z, a1 as xt, a2 as B, X as q, Y as y, a3 as Ro, a4 as ye, a5 as R, a6 as _, a7 as k, a8 as N, a9 as A, aa as bs, ab as ir, ac as $e, ad as G, ae as Hn, af as Vn, ag as dt, ah as D, ai as xs, aj as cn, ak as Be, al as ws, am as qt, an as zt, ao as $s, ap as Cs, aq as $n, ar as Ss, as as Nr, at as Bt, au as zo, av as ks, aw as Es, ax as j, ay as Gr, az as Ms, aA as Ds, aB as sr, aC as As, aD as Ts, aE as zn, aF as Fs, aG as Is, aH as Z, aI as Ps, aJ as Ls } from "./index-DJ7fLWv8.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -1,7 +1,7 @@
1
- import { jsx as n, jsxs as V } from "react/jsx-runtime";
2
- import { E as f, F as O, u as C, G as h, V as P, g as B, d as G, U, I as L, a as x, J as q, K as F, L as $, M as k, O as w, P as K, S as j, T as H } from "./index-CF3QwtRK.js";
1
+ import { jsx as n, jsxs as f } from "react/jsx-runtime";
2
+ import { E as V, F as O, u as C, G as h, I as P, g as B, d as G, U, J as A, a as x, P as q, K as F, L as $, M as k, O as K, S as Q, T as j, V as w } from "./index-DJ7fLWv8.js";
3
3
  import { useState as I, useMemo as _ } from "react";
4
- const Q = f(
4
+ const H = V(
5
5
  O,
6
6
  "useAppointmentsConfig",
7
7
  "AppointmentsConfigProvider"
@@ -74,24 +74,24 @@ function ae(e, a) {
74
74
  }));
75
75
  }
76
76
  const re = () => {
77
- const { t: e } = C(), a = B(), { addNotification: t } = G(), { userPrivileges: s } = U(), { appointmentsConfig: i } = Q(), [E, c] = I(null), [v, S] = I(!1), l = i?.serviceTableFields ?? [
77
+ const { t: e } = C(), a = B(), { addNotification: t } = G(), { userPrivileges: s } = U(), { appointmentsConfig: i } = H(), [E, c] = I(null), [v, S] = I(!1), l = i?.serviceTableFields ?? [
78
78
  ...p
79
- ], u = L(s, z), M = L(
79
+ ], u = A(s, z), M = A(
80
80
  s,
81
81
  Y
82
82
  ), m = _(
83
83
  () => ee(l),
84
84
  [l]
85
- ), { data: A, isLoading: b, isError: g } = x({
85
+ ), { data: L, isLoading: b, isError: D } = x({
86
86
  queryKey: ["allAppointmentServices"],
87
- queryFn: H,
87
+ queryFn: w,
88
88
  enabled: u
89
- }), D = _(
89
+ }), g = _(
90
90
  () => te(l, e),
91
91
  [l]
92
92
  ), N = _(
93
- () => ae(A ?? [], m),
94
- [A, m]
93
+ () => ae(L ?? [], m),
94
+ [L, m]
95
95
  ), R = async () => {
96
96
  S(!0);
97
97
  try {
@@ -111,7 +111,7 @@ const re = () => {
111
111
  S(!1);
112
112
  }
113
113
  }, T = (r, o) => o === "actions" ? /* @__PURE__ */ n(
114
- w,
114
+ K,
115
115
  {
116
116
  id: `delete-service-${r.id}-btn`,
117
117
  testId: `delete-service-${r.id}-btn-test-id`,
@@ -120,7 +120,7 @@ const re = () => {
120
120
  label: e("ADMIN_ALL_SERVICES_DELETE_ICON_LABEL"),
121
121
  disabled: !M,
122
122
  onClick: () => c(r),
123
- children: /* @__PURE__ */ n(K, {})
123
+ children: /* @__PURE__ */ n(Q, {})
124
124
  }
125
125
  ) : p.includes(o) ? r[o] ?? "-" : r.attributes[o] ?? "-", y = [
126
126
  { id: "home", label: e("BREADCRUMB_HOME"), href: q },
@@ -130,7 +130,7 @@ const re = () => {
130
130
  F,
131
131
  {
132
132
  header: /* @__PURE__ */ n(k, { breadcrumbItems: y }),
133
- main: u ? /* @__PURE__ */ V(
133
+ main: u ? /* @__PURE__ */ f(
134
134
  "div",
135
135
  {
136
136
  id: "all-appointment-service-page",
@@ -143,11 +143,11 @@ const re = () => {
143
143
  {
144
144
  id: "all-services",
145
145
  title: e("ADMIN_ALL_SERVICES_TITLE"),
146
- headers: D,
146
+ headers: g,
147
147
  rows: N,
148
148
  ariaLabel: "all-services-table",
149
149
  loading: b,
150
- errorStateMessage: g ? e("ADMIN_ALL_SERVICES_ERROR_MESSAGE") : null,
150
+ errorStateMessage: D ? e("ADMIN_ALL_SERVICES_ERROR_MESSAGE") : null,
151
151
  emptyStateMessage: e("ADMIN_ALL_SERVICES_EMPTY_MESSAGE"),
152
152
  renderCell: T,
153
153
  className: d.table
@@ -69723,105 +69723,105 @@ function xI2(t, e) {
69723
69723
  });
69724
69724
  }
69725
69725
  let G0 = class {
69726
- constructor(t) {
69727
- t && this.set(t);
69726
+ constructor(e) {
69727
+ e && this.set(e);
69728
69728
  }
69729
- set(t, e, r) {
69730
- const o = this;
69731
- function a(l, i, s) {
69732
- const d = Na(i);
69733
- if (!d)
69729
+ set(e, r, o) {
69730
+ const a = this;
69731
+ function c(i, s, d) {
69732
+ const u = Na(s);
69733
+ if (!u)
69734
69734
  throw new Error("header name must be a non-empty string");
69735
- const u = C1.findKey(o, d);
69736
- (!u || o[u] === void 0 || s === !0 || s === void 0 && o[u] !== !1) && (o[u || i] = ys(l));
69737
- }
69738
- const c = (l, i) => C1.forEach(l, (s, d) => a(s, d, i));
69739
- if (C1.isPlainObject(t) || t instanceof this.constructor)
69740
- c(t, e);
69741
- else if (C1.isString(t) && (t = t.trim()) && !HI2(t))
69742
- c(EI2(t), e);
69743
- else if (C1.isObject(t) && C1.isIterable(t)) {
69744
- let l = {}, i, s;
69745
- for (const d of t) {
69746
- if (!C1.isArray(d))
69735
+ const h = C1.findKey(a, u);
69736
+ (!h || a[h] === void 0 || d === !0 || d === void 0 && a[h] !== !1) && (a[h || s] = ys(i));
69737
+ }
69738
+ const l = (i, s) => C1.forEach(i, (d, u) => c(d, u, s));
69739
+ if (C1.isPlainObject(e) || e instanceof this.constructor)
69740
+ l(e, r);
69741
+ else if (C1.isString(e) && (e = e.trim()) && !HI2(e))
69742
+ l(EI2(e), r);
69743
+ else if (C1.isObject(e) && C1.isIterable(e)) {
69744
+ let i = {}, s, d;
69745
+ for (const u of e) {
69746
+ if (!C1.isArray(u))
69747
69747
  throw TypeError("Object iterator must return a key-value pair");
69748
- l[s = d[0]] = (i = l[s]) ? C1.isArray(i) ? [...i, d[1]] : [i, d[1]] : d[1];
69748
+ i[d = u[0]] = (s = i[d]) ? C1.isArray(s) ? [...s, u[1]] : [s, u[1]] : u[1];
69749
69749
  }
69750
- c(l, e);
69750
+ l(i, r);
69751
69751
  } else
69752
- t != null && a(e, t, r);
69752
+ e != null && c(r, e, o);
69753
69753
  return this;
69754
69754
  }
69755
- get(t, e) {
69756
- if (t = Na(t), t) {
69757
- const r = C1.findKey(this, t);
69758
- if (r) {
69759
- const o = this[r];
69760
- if (!e)
69761
- return o;
69762
- if (e === !0)
69763
- return VI2(o);
69764
- if (C1.isFunction(e))
69765
- return e.call(this, o, r);
69766
- if (C1.isRegExp(e))
69767
- return e.exec(o);
69755
+ get(e, r) {
69756
+ if (e = Na(e), e) {
69757
+ const o = C1.findKey(this, e);
69758
+ if (o) {
69759
+ const a = this[o];
69760
+ if (!r)
69761
+ return a;
69762
+ if (r === !0)
69763
+ return VI2(a);
69764
+ if (C1.isFunction(r))
69765
+ return r.call(this, a, o);
69766
+ if (C1.isRegExp(r))
69767
+ return r.exec(a);
69768
69768
  throw new TypeError("parser must be boolean|regexp|function");
69769
69769
  }
69770
69770
  }
69771
69771
  }
69772
- has(t, e) {
69773
- if (t = Na(t), t) {
69774
- const r = C1.findKey(this, t);
69775
- return !!(r && this[r] !== void 0 && (!e || Cd(this, this[r], r, e)));
69772
+ has(e, r) {
69773
+ if (e = Na(e), e) {
69774
+ const o = C1.findKey(this, e);
69775
+ return !!(o && this[o] !== void 0 && (!r || Cd(this, this[o], o, r)));
69776
69776
  }
69777
69777
  return !1;
69778
69778
  }
69779
- delete(t, e) {
69780
- const r = this;
69781
- let o = !1;
69782
- function a(c) {
69783
- if (c = Na(c), c) {
69784
- const l = C1.findKey(r, c);
69785
- l && (!e || Cd(r, r[l], l, e)) && (delete r[l], o = !0);
69779
+ delete(e, r) {
69780
+ const o = this;
69781
+ let a = !1;
69782
+ function c(l) {
69783
+ if (l = Na(l), l) {
69784
+ const i = C1.findKey(o, l);
69785
+ i && (!r || Cd(o, o[i], i, r)) && (delete o[i], a = !0);
69786
69786
  }
69787
69787
  }
69788
- return C1.isArray(t) ? t.forEach(a) : a(t), o;
69788
+ return C1.isArray(e) ? e.forEach(c) : c(e), a;
69789
69789
  }
69790
- clear(t) {
69791
- const e = Object.keys(this);
69792
- let r = e.length, o = !1;
69793
- for (; r--; ) {
69794
- const a = e[r];
69795
- (!t || Cd(this, this[a], a, t, !0)) && (delete this[a], o = !0);
69790
+ clear(e) {
69791
+ const r = Object.keys(this);
69792
+ let o = r.length, a = !1;
69793
+ for (; o--; ) {
69794
+ const c = r[o];
69795
+ (!e || Cd(this, this[c], c, e, !0)) && (delete this[c], a = !0);
69796
69796
  }
69797
- return o;
69797
+ return a;
69798
69798
  }
69799
- normalize(t) {
69800
- const e = this, r = {};
69801
- return C1.forEach(this, (o, a) => {
69802
- const c = C1.findKey(r, a);
69803
- if (c) {
69804
- e[c] = ys(o), delete e[a];
69799
+ normalize(e) {
69800
+ const r = this, o = {};
69801
+ return C1.forEach(this, (a, c) => {
69802
+ const l = C1.findKey(o, c);
69803
+ if (l) {
69804
+ r[l] = ys(a), delete r[c];
69805
69805
  return;
69806
69806
  }
69807
- const l = t ? bI2(a) : String(a).trim();
69808
- l !== a && delete e[a], e[l] = ys(o), r[l] = !0;
69807
+ const i = e ? bI2(c) : String(c).trim();
69808
+ i !== c && delete r[c], r[i] = ys(a), o[i] = !0;
69809
69809
  }), this;
69810
69810
  }
69811
- concat(...t) {
69812
- return this.constructor.concat(this, ...t);
69811
+ concat(...e) {
69812
+ return this.constructor.concat(this, ...e);
69813
69813
  }
69814
- toJSON(t) {
69815
- const e = /* @__PURE__ */ Object.create(null);
69816
- return C1.forEach(this, (r, o) => {
69817
- r != null && r !== !1 && (e[o] = t && C1.isArray(r) ? r.join(", ") : r);
69818
- }), e;
69814
+ toJSON(e) {
69815
+ const r = /* @__PURE__ */ Object.create(null);
69816
+ return C1.forEach(this, (o, a) => {
69817
+ o != null && o !== !1 && (r[a] = e && C1.isArray(o) ? o.join(", ") : o);
69818
+ }), r;
69819
69819
  }
69820
69820
  [Symbol.iterator]() {
69821
69821
  return Object.entries(this.toJSON())[Symbol.iterator]();
69822
69822
  }
69823
69823
  toString() {
69824
- return Object.entries(this.toJSON()).map(([t, e]) => t + ": " + e).join(`
69824
+ return Object.entries(this.toJSON()).map(([e, r]) => e + ": " + r).join(`
69825
69825
  `);
69826
69826
  }
69827
69827
  getSetCookie() {
@@ -69830,22 +69830,22 @@ let G0 = class {
69830
69830
  get [Symbol.toStringTag]() {
69831
69831
  return "AxiosHeaders";
69832
69832
  }
69833
- static from(t) {
69834
- return t instanceof this ? t : new this(t);
69833
+ static from(e) {
69834
+ return e instanceof this ? e : new this(e);
69835
69835
  }
69836
- static concat(t, ...e) {
69837
- const r = new this(t);
69838
- return e.forEach((o) => r.set(o)), r;
69836
+ static concat(e, ...r) {
69837
+ const o = new this(e);
69838
+ return r.forEach((a) => o.set(a)), o;
69839
69839
  }
69840
- static accessor(t) {
69841
- const e = (this[of1] = this[of1] = {
69840
+ static accessor(e) {
69841
+ const r = (this[of1] = this[of1] = {
69842
69842
  accessors: {}
69843
- }).accessors, r = this.prototype;
69844
- function o(a) {
69845
- const c = Na(a);
69846
- e[c] || (xI2(r, a), e[c] = !0);
69843
+ }).accessors, o = this.prototype;
69844
+ function a(c) {
69845
+ const l = Na(c);
69846
+ r[l] || (xI2(o, c), r[l] = !0);
69847
69847
  }
69848
- return C1.isArray(t) ? t.forEach(o) : o(t), this;
69848
+ return C1.isArray(e) ? e.forEach(a) : a(e), this;
69849
69849
  }
69850
69850
  };
69851
69851
  G0.accessor([
@@ -71444,23 +71444,23 @@ K2.getAdapter = VCe.getAdapter;
71444
71444
  K2.HttpStatusCode = fp;
71445
71445
  K2.default = K2;
71446
71446
  const {
71447
- Axios: jS0,
71448
- AxiosError: FS0,
71449
- CanceledError: qS0,
71450
- isCancel: US0,
71451
- CancelToken: WS0,
71452
- VERSION: KS0,
71453
- all: GS0,
71454
- Cancel: JS0,
71455
- isAxiosError: YS0,
71456
- spread: QS0,
71457
- toFormData: XS0,
71458
- AxiosHeaders: ek0,
71459
- HttpStatusCode: tk0,
71460
- formToJSON: rk0,
71461
- getAdapter: nk0,
71462
- mergeConfig: ok0,
71463
- create: ak0
71447
+ Axios: FS0,
71448
+ AxiosError: qS0,
71449
+ CanceledError: US0,
71450
+ isCancel: WS0,
71451
+ CancelToken: KS0,
71452
+ VERSION: GS0,
71453
+ all: JS0,
71454
+ Cancel: YS0,
71455
+ isAxiosError: QS0,
71456
+ spread: XS0,
71457
+ toFormData: ek0,
71458
+ AxiosHeaders: tk0,
71459
+ HttpStatusCode: rk0,
71460
+ formToJSON: nk0,
71461
+ getAdapter: ok0,
71462
+ mergeConfig: ak0,
71463
+ create: ck0
71464
71464
  } = K2, gB2 = (t) => typeof t == "object" && t !== null && "resourceType" in t && t.resourceType === "OperationOutcome", vB2 = (t) => {
71465
71465
  if (!t.issue || !Array.isArray(t.issue))
71466
71466
  return null;
@@ -73333,7 +73333,7 @@ let OCe = class {
73333
73333
  }
73334
73334
  };
73335
73335
  OCe.type = "languageDetector";
73336
- const pP2 = process.env.PUBLIC_URL ?? "/", TCe = "/openmrs/ws/rest/v1", fk0 = "/bahmni/home/index.html", fP2 = "en", DCe = "NG_TRANSLATE_LANG_KEY", mP2 = (t, e) => pP2 + `${t}/locales/locale_${e}.json`, wP2 = (t, e) => `/bahmni_config/openmrs/i18n/${t}/locale_${e}.json`, gP2 = () => localStorage.getItem(DCe) ?? fP2, Df1 = async (t) => {
73336
+ const pP2 = process.env.PUBLIC_URL ?? "/", TCe = "/openmrs/ws/rest/v1", mk0 = "/bahmni/home/index.html", fP2 = "en", DCe = "NG_TRANSLATE_LANG_KEY", mP2 = (t, e) => pP2 + `${t}/locales/locale_${e}.json`, wP2 = (t, e) => `/bahmni_config/openmrs/i18n/${t}/locale_${e}.json`, gP2 = () => localStorage.getItem(DCe) ?? fP2, Df1 = async (t) => {
73337
73337
  try {
73338
73338
  return await Xg(t) || (console.error(`Invalid response from ${t}`), {});
73339
73339
  } catch (e) {
@@ -73379,10 +73379,10 @@ const pP2 = process.env.PUBLIC_URL ?? "/", TCe = "/openmrs/ws/rest/v1", fk0 = "/
73379
73379
  }
73380
73380
  }), q2;
73381
73381
  };
73382
- function mk0(t) {
73382
+ function wk0(t) {
73383
73383
  return t.replace(/[\s-]+/g, "_").replace(/([a-z])([A-Z])/g, "$1_$2").replace(/([A-Z])([A-Z][a-z])/g, "$1_$2").toUpperCase();
73384
73384
  }
73385
- const MP2 = TCe + "/appointmentService/all/full", yP2 = (t) => `${TCe}/appointmentService?uuid=${t}`, wk0 = async () => await Xg(MP2), gk0 = async (t) => {
73385
+ const MP2 = TCe + "/appointmentService/all/full", yP2 = (t) => `${TCe}/appointmentService?uuid=${t}`, gk0 = async () => await Xg(MP2), vk0 = async (t) => {
73386
73386
  await $B2(yP2(t));
73387
73387
  };
73388
73388
  function zP2(t) {
@@ -77917,7 +77917,7 @@ const Cj2 = /* @__PURE__ */ zP2(Lj2), nw1 = {
77917
77917
  if (!await $j2(r, e))
77918
77918
  throw new Error(nw1.VALIDATION_FAILED);
77919
77919
  return r;
77920
- }, _j2 = async (t) => await Xg(t), $j2 = async (t, e) => new Cj2().compile(e)(t), vk0 = (t, e) => {
77920
+ }, _j2 = async (t) => await Xg(t), $j2 = async (t, e) => new Cj2().compile(e)(t), Ek0 = (t, e) => {
77921
77921
  if (!t || t.length === 0)
77922
77922
  return !1;
77923
77923
  if (!e || e.length === 0)
@@ -116694,7 +116694,7 @@ function Z9({
116694
116694
  }, l), a));
116695
116695
  }
116696
116696
  const {
116697
- open: Ek0,
116697
+ open: Mk0,
116698
116698
  ...ud0
116699
116699
  } = ta.propTypes ?? {};
116700
116700
  Z9.propTypes = {
@@ -142487,7 +142487,7 @@ const av0 = ({
142487
142487
  container: cv0,
142488
142488
  accordion: lv0,
142489
142489
  rows: iv0
142490
- }, Mk0 = ({
142490
+ }, yk0 = ({
142491
142491
  title: t,
142492
142492
  rows: e,
142493
142493
  children: r,
@@ -144883,23 +144883,23 @@ J2.getAdapter = eDe.getAdapter;
144883
144883
  J2.HttpStatusCode = zf;
144884
144884
  J2.default = J2;
144885
144885
  const {
144886
- Axios: yk0,
144887
- AxiosError: zk0,
144888
- CanceledError: Vk0,
144889
- isCancel: Hk0,
144890
- CancelToken: bk0,
144891
- VERSION: xk0,
144892
- all: Nk0,
144893
- Cancel: Lk0,
144894
- isAxiosError: Ck0,
144895
- spread: Ak0,
144896
- toFormData: _k0,
144897
- AxiosHeaders: $k0,
144898
- HttpStatusCode: Ok0,
144899
- formToJSON: Tk0,
144900
- getAdapter: Dk0,
144901
- mergeConfig: Rk0,
144902
- create: Sk0
144886
+ Axios: zk0,
144887
+ AxiosError: Vk0,
144888
+ CanceledError: Hk0,
144889
+ isCancel: bk0,
144890
+ CancelToken: xk0,
144891
+ VERSION: Nk0,
144892
+ all: Lk0,
144893
+ Cancel: Ck0,
144894
+ isAxiosError: Ak0,
144895
+ spread: _k0,
144896
+ toFormData: $k0,
144897
+ AxiosHeaders: Ok0,
144898
+ HttpStatusCode: Tk0,
144899
+ formToJSON: Dk0,
144900
+ getAdapter: Rk0,
144901
+ mergeConfig: Sk0,
144902
+ create: kk0
144903
144903
  } = J2, wM0 = (t) => typeof t == "object" && t !== null && "resourceType" in t && t.resourceType === "OperationOutcome", gM0 = (t) => {
144904
144904
  if (!t.issue || !Array.isArray(t.issue))
144905
144905
  return null;
@@ -148306,7 +148306,7 @@ const Jz0 = () => {
148306
148306
  }
148307
148307
  };
148308
148308
  }, VDe = Jz0(), Yz0 = (t) => `${zr}/concept?s=byFullySpecifiedName&name=${encodeURIComponent(t)}`, Qz0 = "SHORT", Xz0 = "FULLY_SPECIFIED";
148309
- async function kk0(t) {
148309
+ async function Zk0(t) {
148310
148310
  const e = Yz0(t), r = await e0(e);
148311
148311
  return !r.results || r.results.length === 0 ? null : r.results[0];
148312
148312
  }
@@ -148356,7 +148356,7 @@ async function aV0(t) {
148356
148356
  return oV0(e);
148357
148357
  }
148358
148358
  var xf = /* @__PURE__ */ ((t) => (t.Active = "Active", t.Inactive = "Inactive", t))(xf || {}), Ds = /* @__PURE__ */ ((t) => (t.mild = "mild", t.moderate = "moderate", t.severe = "severe", t))(Ds || {});
148359
- const cV0 = "problem-list-item", lV0 = "encounter-diagnosis", iV0 = "http://fhir.bahmni.org/ext/lab-order-concept-type", Zk0 = "http://fhir.bahmni.org/ext/observation/form-namespace-path", sV0 = (t, e = 10, r = 0) => ft + `/Condition?category=${cV0}&patient=${t}&_count=${e}&_getpagesoffset=${r}&_sort=-_lastUpdated`;
148359
+ const cV0 = "problem-list-item", lV0 = "encounter-diagnosis", iV0 = "http://fhir.bahmni.org/ext/lab-order-concept-type", Ik0 = "http://fhir.bahmni.org/ext/observation/form-namespace-path", sV0 = (t, e = 10, r = 0) => ft + `/Condition?category=${cV0}&patient=${t}&_count=${e}&_getpagesoffset=${r}&_sort=-_lastUpdated`;
148360
148360
  async function dV0(t, e = 10, r = 1) {
148361
148361
  const o = (r - 1) * e, a = await e0(
148362
148362
  sV0(t, e, o)
@@ -153175,12 +153175,12 @@ const YH0 = (t) => zr + `/form/${t}?v=custom:(resources:(value))`, QH0 = (t) =>
153175
153175
  const r = e.join(",");
153176
153176
  return `${ft}/Observation?patient=${t}&code=${r}&_include=Observation:has-member&_include=Observation:encounter&_sort=-_lastUpdated`;
153177
153177
  };
153178
- async function Ik0(t, e) {
153178
+ async function Bk0(t, e) {
153179
153179
  const r = tb0(t, e);
153180
153180
  return await e0(r);
153181
153181
  }
153182
153182
  const rb0 = (t) => `${ft}/Observation/$fetch-all?encounter=${t}`;
153183
- async function Bk0(t) {
153183
+ async function Pk0(t) {
153184
153184
  return await e0(
153185
153185
  rb0(t)
153186
153186
  );
@@ -153230,12 +153230,12 @@ const b7 = (t, e) => t?.length === 0 ? !1 : e?.length === 0, nb0 = async () => {
153230
153230
  editable: o.editable
153231
153231
  }))
153232
153232
  };
153233
- }, Pk0 = async (t) => {
153233
+ }, jk0 = async (t) => {
153234
153234
  const e = await ob0(), r = cDe();
153235
153235
  return e.map(
153236
153236
  (o) => cb0(o, r)
153237
153237
  );
153238
- }, jk0 = async (t) => {
153238
+ }, Fk0 = async (t) => {
153239
153239
  const e = await fetch(YH0(t));
153240
153240
  if (!e.ok)
153241
153241
  throw new Error(
@@ -153269,7 +153269,7 @@ const b7 = (t, e) => t?.length === 0 ? !1 : e?.length === 0, nb0 = async () => {
153269
153269
  schema: o,
153270
153270
  translations: d
153271
153271
  };
153272
- }, Fk0 = async (t, e, r) => {
153272
+ }, qk0 = async (t, e, r) => {
153273
153273
  const o = eb0(t, r), a = await e0(o);
153274
153274
  return Array.isArray(a) ? a : [];
153275
153275
  }, lb0 = zr + "/bahmnicore/diseaseSummaryData?", ib0 = async (t, e, r, o) => {
@@ -153352,7 +153352,7 @@ function mb0(t) {
153352
153352
  };
153353
153353
  });
153354
153354
  }
153355
- async function qk0(t, e, r = 10, o = 1) {
153355
+ async function Uk0(t, e, r = 10, o = 1) {
153356
153356
  const a = (o - 1) * r, c = fb0(
153357
153357
  t,
153358
153358
  e,
@@ -163537,7 +163537,7 @@ function dO0(t) {
163537
163537
  a.push(i);
163538
163538
  }), a;
163539
163539
  }
163540
- const Uk0 = (t, e) => t?.date ? V2(t.date, e).formattedResult : e("DATE_ERROR_PARSE"), jM = (t, e) => {
163540
+ const Wk0 = (t, e) => t?.date ? V2(t.date, e).formattedResult : e("DATE_ERROR_PARSE"), jM = (t, e) => {
163541
163541
  if (!t.observationValue?.value)
163542
163542
  return "";
163543
163543
  const { value: r, unit: o, type: a } = t.observationValue;
@@ -163563,7 +163563,7 @@ const Uk0 = (t, e) => t?.date ? V2(t.date, e).formattedResult : e("DATE_ERROR_PA
163563
163563
  return `${e} (<${l})`;
163564
163564
  }
163565
163565
  return e;
163566
- }, Wk0 = (t, e, r) => ({
163566
+ }, Kk0 = (t, e, r) => ({
163567
163567
  index: e,
163568
163568
  header: uO0(t),
163569
163569
  value: jM(t, r),
@@ -163597,7 +163597,7 @@ function _Re(t, e, r) {
163597
163597
  // conceptId is required to group the multiselect obs
163598
163598
  };
163599
163599
  }
163600
- function Kk0(t) {
163600
+ function Gk0(t) {
163601
163601
  const e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set();
163602
163602
  t.entry?.forEach(({ resource: l }) => {
163603
163603
  l?.id && (l.resourceType === "Encounter" ? e.set(l.id, l) : l.resourceType === "Observation" && (r.set(l.id, l), l.hasMember?.forEach((i) => {
@@ -163616,7 +163616,7 @@ function Kk0(t) {
163616
163616
  s.members ? c.push(s) : a.push(s);
163617
163617
  }), { observations: a, groupedObservations: c };
163618
163618
  }
163619
- function Gk0(t) {
163619
+ function Jk0(t) {
163620
163620
  const e = /* @__PURE__ */ new Map();
163621
163621
  return t.observations.forEach((r) => {
163622
163622
  if (!r.encounter?.id) return;
@@ -163642,7 +163642,7 @@ function Gk0(t) {
163642
163642
  };
163643
163643
  });
163644
163644
  }
163645
- function Jk0(t) {
163645
+ function Yk0(t) {
163646
163646
  return [...t].sort((e, r) => {
163647
163647
  const o = e.encounterDetails?.date, a = r.encounterDetails?.date;
163648
163648
  return !o && !a ? 0 : o ? a ? new Date(a).getTime() - new Date(o).getTime() : -1 : 1;
@@ -166346,7 +166346,7 @@ function BD0(t) {
166346
166346
  };
166347
166347
  return s.displayName = i, s;
166348
166348
  }
166349
- function Yk0(t, e, r) {
166349
+ function Qk0(t, e, r) {
166350
166350
  return () => {
166351
166351
  const o = se(t);
166352
166352
  if (!o)
@@ -166354,7 +166354,7 @@ function Yk0(t, e, r) {
166354
166354
  return o;
166355
166355
  };
166356
166356
  }
166357
- N0(() => Promise.resolve().then(() => o_0)), N0(() => Promise.resolve().then(() => __0)), N0(() => Promise.resolve().then(() => l$0)), N0(() => Promise.resolve().then(() => f$0)), N0(() => import("./DocumentsTable-DEmnzSjR-Yc58l4_I.js")), N0(() => Promise.resolve().then(() => XT0)), N0(() => import("./FormsTable-CXitFQpW-DRhHj54Z.js")), N0(() => Promise.resolve().then(() => TT0)), N0(() => import("./Observations-DsQfPuhO-DE3Oc46H.js")), N0(
166357
+ N0(() => Promise.resolve().then(() => o_0)), N0(() => Promise.resolve().then(() => __0)), N0(() => Promise.resolve().then(() => l$0)), N0(() => Promise.resolve().then(() => f$0)), N0(() => import("./DocumentsTable-YDhjKVF1-B7xF104z.js")), N0(() => Promise.resolve().then(() => XT0)), N0(() => import("./FormsTable-Db-oc-9c-BJTR4H_N.js")), N0(() => Promise.resolve().then(() => TT0)), N0(() => import("./Observations-DIUn-YMi-CXbTfdBi.js")), N0(
166358
166358
  () => Promise.resolve().then(() => sD0)
166359
166359
  ), N0(
166360
166360
  () => Promise.resolve().then(() => rT0)
@@ -166512,7 +166512,7 @@ function UD0(t, e, r) {
166512
166512
  mutate: b
166513
166513
  }];
166514
166514
  }
166515
- function Qk0(t) {
166515
+ function Xk0(t) {
166516
166516
  return Yr(t, !1);
166517
166517
  }
166518
166518
  function x0(t) {
@@ -166525,7 +166525,7 @@ function x0(t) {
166525
166525
  N2 = e;
166526
166526
  }
166527
166527
  }
166528
- function Xk0(t, e, r) {
166528
+ function eZ0(t, e, r) {
166529
166529
  const o = Array.isArray(t);
166530
166530
  let a, c = r && r.defer;
166531
166531
  return (l) => {
@@ -166568,11 +166568,11 @@ function KD0(t) {
166568
166568
  return Yr(t, !1), N2 = Qe = null, o ? o.done : void 0;
166569
166569
  });
166570
166570
  }
166571
- var [GD0, eZ0] = /* @__PURE__ */ U2(!1);
166572
- function tZ0() {
166571
+ var [GD0, tZ0] = /* @__PURE__ */ U2(!1);
166572
+ function rZ0() {
166573
166573
  return [GD0, KD0];
166574
166574
  }
166575
- function rZ0(t, e) {
166575
+ function nZ0(t, e) {
166576
166576
  const r = Symbol("context");
166577
166577
  return {
166578
166578
  id: r,
@@ -166580,7 +166580,7 @@ function rZ0(t, e) {
166580
166580
  defaultValue: t
166581
166581
  };
166582
166582
  }
166583
- function nZ0(t) {
166583
+ function oZ0(t) {
166584
166584
  let e;
166585
166585
  return Qe && Qe.context && (e = Qe.context[t.id]) !== void 0 ? e : t.defaultValue;
166586
166586
  }
@@ -166980,23 +166980,23 @@ function lSe(t) {
166980
166980
  return o.preload = () => r || ((r = t()).then((a) => e = () => a.default), r), o;
166981
166981
  }
166982
166982
  var aR0 = 0;
166983
- function oZ0() {
166983
+ function aZ0() {
166984
166984
  return Ze.context ? Ze.getNextContextId() : `cl-${aR0++}`;
166985
166985
  }
166986
166986
  var iSe = (t) => `Stale read from <${t}>.`;
166987
- function aZ0(t) {
166987
+ function cZ0(t) {
166988
166988
  const e = "fallback" in t && {
166989
166989
  fallback: () => t.fallback
166990
166990
  };
166991
166991
  return p0(tR0(() => t.each, t.children, e || void 0));
166992
166992
  }
166993
- function cZ0(t) {
166993
+ function lZ0(t) {
166994
166994
  const e = "fallback" in t && {
166995
166995
  fallback: () => t.fallback
166996
166996
  };
166997
166997
  return p0(rR0(() => t.each, t.children, e || void 0));
166998
166998
  }
166999
- function lZ0(t) {
166999
+ function iZ0(t) {
167000
167000
  const e = t.keyed, r = p0(() => t.when, void 0, void 0), o = e ? r : p0(r, void 0, {
167001
167001
  equals: (a, c) => !a == !c
167002
167002
  });
@@ -167012,7 +167012,7 @@ function lZ0(t) {
167012
167012
  return t.fallback;
167013
167013
  }, void 0, void 0);
167014
167014
  }
167015
- function iZ0(t) {
167015
+ function sZ0(t) {
167016
167016
  const e = eSe(() => t.children), r = p0(() => {
167017
167017
  const o = e(), a = Array.isArray(o) ? o : [o];
167018
167018
  let c = () => {
@@ -167035,7 +167035,7 @@ function iZ0(t) {
167035
167035
  })) : i;
167036
167036
  }, void 0, void 0);
167037
167037
  }
167038
- function sZ0(t) {
167038
+ function dZ0(t) {
167039
167039
  return t;
167040
167040
  }
167041
167041
  var cR0 = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], lR0 = /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...cR0]), iR0 = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), sR0 = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
@@ -167155,7 +167155,7 @@ var hR0 = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextm
167155
167155
  ]), fR0 = {
167156
167156
  xlink: "http://www.w3.org/1999/xlink",
167157
167157
  xml: "http://www.w3.org/XML/1998/namespace"
167158
- }, dZ0 = (t) => p0(() => t());
167158
+ }, uZ0 = (t) => p0(() => t());
167159
167159
  function mR0(t, e, r) {
167160
167160
  let o = r.length, a = e.length, c = o, l = 0, i = 0, s = e[a - 1].nextSibling, d = null;
167161
167161
  for (; l < a || i < c; ) {
@@ -167204,7 +167204,7 @@ function sSe(t, e, r, o = {}) {
167204
167204
  a(), e.textContent = "";
167205
167205
  };
167206
167206
  }
167207
- function uZ0(t, e, r, o) {
167207
+ function hZ0(t, e, r, o) {
167208
167208
  let a;
167209
167209
  const c = () => {
167210
167210
  const i = document.createElement("template");
@@ -167219,7 +167219,7 @@ function wR0(t, e = window.document) {
167219
167219
  r.has(c) || (r.add(c), e.addEventListener(c, dSe));
167220
167220
  }
167221
167221
  }
167222
- function hZ0(t = window.document) {
167222
+ function pZ0(t = window.document) {
167223
167223
  if (t[pc]) {
167224
167224
  for (let e of t[pc].keys()) t.removeEventListener(e, dSe);
167225
167225
  delete t[pc];
@@ -167486,7 +167486,7 @@ var CR0 = "http://www.w3.org/2000/svg";
167486
167486
  function uSe(t, e = !1) {
167487
167487
  return e ? document.createElementNS(CR0, t) : document.createElement(t);
167488
167488
  }
167489
- function pZ0(t) {
167489
+ function fZ0(t) {
167490
167490
  const {
167491
167491
  useShadow: e
167492
167492
  } = t, r = document.createTextNode(""), o = () => t.mount || document.body, a = cge();
@@ -167525,7 +167525,7 @@ function AR0(t, e) {
167525
167525
  }
167526
167526
  });
167527
167527
  }
167528
- function fZ0(t) {
167528
+ function mZ0(t) {
167529
167529
  const [, e] = oR0(t, ["component"]);
167530
167530
  return AR0(() => t.component, e);
167531
167531
  }
@@ -168032,42 +168032,42 @@ C2.registerClass = C2.defaultInstance.registerClass.bind(C2.defaultInstance);
168032
168032
  C2.registerSymbol = C2.defaultInstance.registerSymbol.bind(C2.defaultInstance);
168033
168033
  C2.registerCustom = C2.defaultInstance.registerCustom.bind(C2.defaultInstance);
168034
168034
  C2.allowErrorProps = C2.defaultInstance.allowErrorProps.bind(C2.defaultInstance);
168035
- var cS0 = C2.serialize, mZ0 = C2.stringify;
168036
- function wZ0(t) {
168035
+ var cS0 = C2.serialize, wZ0 = C2.stringify;
168036
+ function gZ0(t) {
168037
168037
  return t.state.fetchStatus === "fetching" ? "fetching" : t.getObserversCount() ? t.state.fetchStatus === "paused" ? "paused" : t.isStale() ? "stale" : "fresh" : "inactive";
168038
168038
  }
168039
- function gZ0(t, e) {
168039
+ function vZ0(t, e) {
168040
168040
  return `${t}${e.charAt(0).toUpperCase() + e.slice(1)}`;
168041
168041
  }
168042
- function vZ0({
168042
+ function EZ0({
168043
168043
  queryState: t,
168044
168044
  observerCount: e,
168045
168045
  isStale: r
168046
168046
  }) {
168047
168047
  return t.fetchStatus === "fetching" ? "blue" : e ? t.fetchStatus === "paused" ? "purple" : r ? "yellow" : "green" : "gray";
168048
168048
  }
168049
- function EZ0({
168049
+ function MZ0({
168050
168050
  status: t,
168051
168051
  isPaused: e
168052
168052
  }) {
168053
168053
  return e ? "purple" : t === "error" ? "red" : t === "pending" ? "yellow" : t === "success" ? "green" : "gray";
168054
168054
  }
168055
- function MZ0(t) {
168055
+ function yZ0(t) {
168056
168056
  return t === "fresh" ? "green" : t === "stale" ? "yellow" : t === "paused" ? "purple" : t === "inactive" ? "gray" : "blue";
168057
168057
  }
168058
- var yZ0 = (t, e = !1) => {
168058
+ var zZ0 = (t, e = !1) => {
168059
168059
  const {
168060
168060
  json: r
168061
168061
  } = cS0(t);
168062
168062
  return JSON.stringify(r, null, e ? 2 : void 0);
168063
- }, is = (t) => t.state.fetchStatus !== "idle" ? 0 : t.getObserversCount() ? t.isStale() ? 2 : 1 : 3, lS0 = (t, e) => t.queryHash.localeCompare(e.queryHash), xSe = (t, e) => t.state.dataUpdatedAt < e.state.dataUpdatedAt ? 1 : -1, iS0 = (t, e) => is(t) === is(e) ? xSe(t, e) : is(t) > is(e) ? 1 : -1, zZ0 = {
168063
+ }, is = (t) => t.state.fetchStatus !== "idle" ? 0 : t.getObserversCount() ? t.isStale() ? 2 : 1 : 3, lS0 = (t, e) => t.queryHash.localeCompare(e.queryHash), xSe = (t, e) => t.state.dataUpdatedAt < e.state.dataUpdatedAt ? 1 : -1, iS0 = (t, e) => is(t) === is(e) ? xSe(t, e) : is(t) > is(e) ? 1 : -1, VZ0 = {
168064
168064
  status: iS0,
168065
168065
  "query hash": lS0,
168066
168066
  "last updated": xSe
168067
- }, ss = (t) => t.state.isPaused ? 0 : t.state.status === "error" ? 2 : t.state.status === "pending" ? 1 : 3, NSe = (t, e) => t.state.submittedAt < e.state.submittedAt ? 1 : -1, sS0 = (t, e) => ss(t) === ss(e) ? NSe(t, e) : ss(t) > ss(e) ? 1 : -1, VZ0 = {
168067
+ }, ss = (t) => t.state.isPaused ? 0 : t.state.status === "error" ? 2 : t.state.status === "pending" ? 1 : 3, NSe = (t, e) => t.state.submittedAt < e.state.submittedAt ? 1 : -1, sS0 = (t, e) => ss(t) === ss(e) ? NSe(t, e) : ss(t) > ss(e) ? 1 : -1, HZ0 = {
168068
168068
  status: sS0,
168069
168069
  "last updated": NSe
168070
- }, HZ0 = (t) => t * parseFloat(getComputedStyle(document.documentElement).fontSize), bZ0 = () => {
168070
+ }, bZ0 = (t) => t * parseFloat(getComputedStyle(document.documentElement).fontSize), xZ0 = () => {
168071
168071
  const [t, e] = U2("dark");
168072
168072
  return WD0(() => {
168073
168073
  const r = window.matchMedia("(prefers-color-scheme: dark)");
@@ -168193,7 +168193,7 @@ var yZ0 = (t, e = !1) => {
168193
168193
  const e = sSe(() => {
168194
168194
  const r = this, [o] = this.#a, [a] = this.#h, [c] = this.#d, [l] = this.#u, [i] = this.#p, [s] = this.#t;
168195
168195
  let d;
168196
- return this.#i ? d = this.#i : (d = lSe(() => import("./LNWAZHJI-CEOCc_PF.js")), this.#i = d), LSe(this.#l, this.#c), aSe(d, cSe({
168196
+ return this.#i ? d = this.#i : (d = lSe(() => import("./LNWAZHJI-WZWSEVG_.js")), this.#i = d), LSe(this.#l, this.#c), aSe(d, cSe({
168197
168197
  get queryFlavor() {
168198
168198
  return r.#r;
168199
168199
  },
@@ -168291,7 +168291,7 @@ var yZ0 = (t, e = !1) => {
168291
168291
  const e = sSe(() => {
168292
168292
  const r = this, [o] = this.#a, [a] = this.#h, [c] = this.#d, [l] = this.#u, [i] = this.#p, [s] = this.#t, [d] = this.#i;
168293
168293
  let u;
168294
- return this.#s ? u = this.#s : (u = lSe(() => import("./MWZ6AO7Z-BqnD3lNr.js")), this.#s = u), LSe(this.#l, this.#c), aSe(u, cSe({
168294
+ return this.#s ? u = this.#s : (u = lSe(() => import("./MWZ6AO7Z-CbirOsDV.js")), this.#s = u), LSe(this.#l, this.#c), aSe(u, cSe({
168295
168295
  get queryFlavor() {
168296
168296
  return r.#r;
168297
168297
  },
@@ -168451,7 +168451,7 @@ const mS0 = {
168451
168451
  }), LS0 = N0(
168452
168452
  () => import("./index-CFigb5vF.js").then((t) => ({ default: t.IndexPage }))
168453
168453
  ), CS0 = N0(
168454
- () => import("./index-DeXuaK_c.js").then((t) => ({
168454
+ () => import("./index-CLsSBZgQ.js").then((t) => ({
168455
168455
  default: t.default
168456
168456
  }))
168457
168457
  ), AS0 = [
@@ -168469,7 +168469,7 @@ const mS0 = {
168469
168469
  ...t.map((e) => /* @__PURE__ */ i1(UM, { path: e.path, element: /* @__PURE__ */ i1(e.component, {}) }, e.path)),
168470
168470
  /* @__PURE__ */ i1(UM, { path: "*", element: /* @__PURE__ */ i1(_Se, { to: "/", replace: !0 }) }, "not-found")
168471
168471
  ], $S0 = new Jj2(mS0);
168472
- function xZ0() {
168472
+ function NZ0() {
168473
168473
  const [t, e] = w1(!1);
168474
168474
  return u1(() => {
168475
168475
  (async () => {
@@ -168492,74 +168492,74 @@ export {
168492
168492
  mv0 as A,
168493
168493
  Nv0 as B,
168494
168494
  Ev0 as C,
168495
- Ik0 as D,
168496
- Yk0 as E,
168495
+ Bk0 as D,
168496
+ Qk0 as E,
168497
168497
  ES0 as F,
168498
168498
  Ug as G,
168499
168499
  c7 as H,
168500
- vk0 as I,
168501
- fk0 as J,
168500
+ wk0 as I,
168501
+ Ek0 as J,
168502
168502
  BS0 as K,
168503
168503
  IS0 as L,
168504
168504
  pZ2 as M,
168505
168505
  ht as N,
168506
168506
  ZS0 as O,
168507
- n32 as P,
168507
+ mk0 as P,
168508
168508
  rn as Q,
168509
168509
  Zg0 as R,
168510
- gk0 as S,
168511
- wk0 as T,
168510
+ n32 as S,
168511
+ vk0 as T,
168512
168512
  zRe as U,
168513
- mk0 as V,
168514
- bZ0 as W,
168513
+ gk0 as V,
168514
+ xZ0 as W,
168515
168515
  p0 as X,
168516
168516
  aSe as Y,
168517
- Mk0 as Z,
168518
- rZ0 as _,
168517
+ yk0 as Z,
168518
+ nZ0 as _,
168519
168519
  u0 as a,
168520
168520
  U2 as a0,
168521
168521
  WD0 as a1,
168522
168522
  QRe as a2,
168523
- pZ0 as a3,
168524
- dZ0 as a4,
168525
- lZ0 as a5,
168526
- uZ0 as a6,
168523
+ fZ0 as a3,
168524
+ uZ0 as a4,
168525
+ iZ0 as a5,
168526
+ hZ0 as a6,
168527
168527
  jf as a7,
168528
168528
  F3 as a8,
168529
168529
  ER0 as a9,
168530
- cZ0 as aA,
168530
+ lZ0 as aA,
168531
168531
  ds as aB,
168532
168532
  MR0 as aC,
168533
- mZ0 as aD,
168534
- sZ0 as aE,
168535
- iZ0 as aF,
168533
+ wZ0 as aD,
168534
+ dZ0 as aE,
168535
+ sZ0 as aF,
168536
168536
  us as aG,
168537
168537
  oR0 as aH,
168538
- fZ0 as aI,
168538
+ mZ0 as aI,
168539
168539
  FD0 as aJ,
168540
- xZ0 as aK,
168541
- hZ0 as aa,
168540
+ NZ0 as aK,
168541
+ pZ0 as aa,
168542
168542
  wR0 as ab,
168543
- nZ0 as ac,
168543
+ oZ0 as ac,
168544
168544
  Kc as ad,
168545
- zZ0 as ae,
168546
- VZ0 as af,
168547
- Xk0 as ag,
168545
+ VZ0 as ae,
168546
+ HZ0 as af,
168547
+ eZ0 as ag,
168548
168548
  Pf as ah,
168549
- gZ0 as ai,
168549
+ vZ0 as ai,
168550
168550
  HR0 as aj,
168551
- oZ0 as ak,
168552
- Qk0 as al,
168553
- wZ0 as am,
168554
- EZ0 as an,
168555
- vZ0 as ao,
168556
- MZ0 as ap,
168557
- yZ0 as aq,
168558
- aZ0 as ar,
168559
- HZ0 as as,
168551
+ aZ0 as ak,
168552
+ Xk0 as al,
168553
+ gZ0 as am,
168554
+ MZ0 as an,
168555
+ EZ0 as ao,
168556
+ yZ0 as ap,
168557
+ zZ0 as aq,
168558
+ cZ0 as ar,
168559
+ bZ0 as as,
168560
168560
  x0 as at,
168561
168561
  GRe as au,
168562
- tZ0 as av,
168562
+ rZ0 as av,
168563
168563
  VR0 as aw,
168564
168564
  cSe as ax,
168565
168565
  j3 as ay,
@@ -168567,26 +168567,26 @@ export {
168567
168567
  f0 as b,
168568
168568
  or as c,
168569
168569
  Hr as d,
168570
- qk0 as e,
168570
+ Uk0 as e,
168571
168571
  b7 as f,
168572
168572
  N9 as g,
168573
168573
  kl as h,
168574
- Fk0 as i,
168575
- jk0 as j,
168576
- Bk0 as k,
168574
+ qk0 as i,
168575
+ Fk0 as j,
168576
+ Pk0 as k,
168577
168577
  _s as l,
168578
168578
  V2 as m,
168579
168579
  oF2 as n,
168580
- Zk0 as o,
168581
- kk0 as p,
168582
- Kk0 as q,
168583
- Gk0 as r,
168584
- Pk0 as s,
168585
- Jk0 as t,
168580
+ Ik0 as o,
168581
+ Zk0 as p,
168582
+ Gk0 as q,
168583
+ Jk0 as r,
168584
+ jk0 as s,
168585
+ Yk0 as t,
168586
168586
  Y2 as u,
168587
- Uk0 as v,
168587
+ Wk0 as v,
168588
168588
  Gt as w,
168589
168589
  Sl as x,
168590
- Wk0 as y,
168590
+ Kk0 as y,
168591
168591
  ny0 as z
168592
168592
  };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aK as t } from "./index-CF3QwtRK.js";
1
+ import { aK as t } from "./index-DJ7fLWv8.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.244",
3
+ "version": "0.0.1-dev.246",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",