@bahmni/registration-app 0.0.1-dev.242 → 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 } from "./index-BoFTZe4P.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 } from "./index-DEREz8wc.js";
3
3
  import { useQuery as ae } from "@tanstack/react-query";
4
4
  import { useState as l, useCallback as h, useEffect as O, useMemo as T } from "react";
5
5
  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 = {
@@ -1,21 +1,21 @@
1
- import { jsx as s, jsxs as W, Fragment as X } from "react/jsx-runtime";
2
- import { u as Z, c as ee, e as re, f as ae, s as te, g as oe, i as se, Q as ne, N as U, m as de, l as ie, b as S, x as me, h as ue, w as le, $ as ce, o as fe } from "./index-BoFTZe4P.js";
1
+ import { jsx as s, jsxs as J, Fragment as W } from "react/jsx-runtime";
2
+ import { u as X, c as ee, e as re, f as ae, s as te, g as oe, i as se, Q as ne, N as U, m as de, l as ie, b as S, x as me, h as ue, w as le, $ as ce, o as fe } from "./index-DEREz8wc.js";
3
3
  import { useQueryClient as ye, useQuery as c } from "@tanstack/react-query";
4
4
  import { useState as q, useMemo as d, useCallback as f } from "react";
5
- const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
5
+ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", O = {
6
6
  formsTableBody: pe,
7
7
  customAccordianItem: be
8
8
  }, Ne = (m) => m ? m.extension?.find(
9
9
  (n) => n.url === fe
10
- )?.valueString : void 0, Ae = ({
10
+ )?.valueString : void 0, Ie = ({
11
11
  episodeOfCareUuids: m,
12
12
  encounterUuids: n,
13
13
  config: C
14
14
  }) => {
15
- const { t: o } = Z(), u = ee(), [l, O] = q(!1), [t, A] = q(null), { numberOfVisits: x, hideThumbnail: $ = !1 } = C ?? {}, T = re(
15
+ const { t: o } = X(), u = ee(), [l, A] = q(!1), [t, I] = q(null), { numberOfVisits: k, hideThumbnail: x = !1 } = C ?? {}, T = re(
16
16
  m,
17
17
  n
18
- ), k = ye(), {
18
+ ), $ = ye(), {
19
19
  data: y = [],
20
20
  isLoading: B,
21
21
  isError: E,
@@ -23,20 +23,20 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
23
23
  refetch: H
24
24
  } = c({
25
25
  queryKey: ["forms", u, m],
26
- queryFn: () => ae(u, void 0, x),
26
+ queryFn: () => ae(u, void 0, k),
27
27
  enabled: !!u && !T
28
- }), F = d(() => !n || n.length === 0 ? y : y.filter(
28
+ }), _ = d(() => !n || n.length === 0 ? y : y.filter(
29
29
  (e) => n.includes(e.encounterUuid)
30
- ), [y, n]), { data: _ = [] } = c({
30
+ ), [y, n]), { data: D = [] } = c({
31
31
  queryKey: ["observationForms"],
32
32
  queryFn: () => te()
33
- }), L = f(
34
- (e) => _.find((r) => r.name === e)?.uuid,
35
- [_]
33
+ }), F = f(
34
+ (e) => D.find((r) => r.name === e)?.uuid,
35
+ [D]
36
36
  ), p = d(() => {
37
37
  if (t)
38
- return L(t.formName);
39
- }, [t, L]), {
38
+ return F(t.formName);
39
+ }, [t, F]), {
40
40
  isLoading: K,
41
41
  isError: Q,
42
42
  error: b
@@ -56,7 +56,7 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
56
56
  });
57
57
  ne(
58
58
  (e) => {
59
- e.patientUUID === u && e.updatedConcepts.size > 0 && (H(), k.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
59
+ e.patientUUID === u && e.updatedConcepts.size > 0 && (H(), $.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
60
60
  },
61
61
  [u]
62
62
  );
@@ -68,7 +68,7 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
68
68
  return U(b).message;
69
69
  if (g)
70
70
  return U(g).message;
71
- }, [b, g]), M = d(
71
+ }, [b, g]), L = d(
72
72
  () => [
73
73
  { key: "recordedOn", header: o("RECORDED_ON") },
74
74
  { key: "recordedBy", header: o("RECORDED_BY") }
@@ -80,12 +80,12 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
80
80
  { key: "recordedBy", sortable: !0 }
81
81
  ],
82
82
  []
83
- ), D = d(() => {
84
- const e = F.reduce(
83
+ ), M = d(() => {
84
+ const e = _.reduce(
85
85
  (r, a) => {
86
86
  const i = a.formName;
87
87
  r[i] ??= [];
88
- const h = a.providers.map((J) => J.providerName).filter(Boolean).join(", ");
88
+ const h = a.providers.map((Z) => Z.providerName).filter(Boolean).join(", ");
89
89
  return r[i].push({
90
90
  id: a.encounterUuid,
91
91
  formName: a.formName,
@@ -105,10 +105,10 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
105
105
  )
106
106
  })
107
107
  ).sort((r, a) => r.formName.localeCompare(a.formName));
108
- }, [F, o]), R = f((e) => {
109
- A(e), O(!0);
108
+ }, [_, o]), R = f((e) => {
109
+ I(e), A(!0);
110
110
  }, []), Y = f(() => {
111
- O(!1), A(null);
111
+ A(!1), I(null);
112
112
  }, []), v = f(
113
113
  (e, r) => {
114
114
  switch (r) {
@@ -122,33 +122,33 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
122
122
  },
123
123
  [R]
124
124
  );
125
- return /* @__PURE__ */ W(X, { children: [
126
- /* @__PURE__ */ s("div", { "data-testid": "forms-table", children: B || E || D.length === 0 || T ? /* @__PURE__ */ s(
125
+ return /* @__PURE__ */ J(W, { children: [
126
+ /* @__PURE__ */ s("div", { "data-testid": "forms-table", children: B || E || M.length === 0 || T ? /* @__PURE__ */ s(
127
127
  S,
128
128
  {
129
- headers: M,
129
+ headers: L,
130
130
  ariaLabel: o("FORMS_HEADING"),
131
131
  rows: [],
132
132
  loading: B,
133
133
  errorStateMessage: E ? w?.message : void 0,
134
134
  emptyStateMessage: o("FORMS_UNAVAILABLE"),
135
135
  renderCell: v,
136
- className: I.formsTableBody,
136
+ className: O.formsTableBody,
137
137
  dataTestId: "forms-table"
138
138
  }
139
- ) : /* @__PURE__ */ s(me, { align: "start", children: D.map((e, r) => {
139
+ ) : /* @__PURE__ */ s(me, { align: "start", children: M.map((e, r) => {
140
140
  const { formName: a, records: i } = e;
141
141
  return /* @__PURE__ */ s(
142
142
  ue,
143
143
  {
144
144
  title: a,
145
- className: I.customAccordianItem,
145
+ className: O.customAccordianItem,
146
146
  testId: `accordian-title-${a}`,
147
147
  open: r === 0,
148
148
  children: /* @__PURE__ */ s(
149
149
  S,
150
150
  {
151
- headers: M,
151
+ headers: L,
152
152
  ariaLabel: o("FORMS_HEADING"),
153
153
  rows: i,
154
154
  loading: !1,
@@ -156,7 +156,7 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
156
156
  sortable: P,
157
157
  emptyStateMessage: o("FORMS_UNAVAILABLE"),
158
158
  renderCell: v,
159
- className: I.formsTableBody,
159
+ className: O.formsTableBody,
160
160
  dataTestId: `forms-table-${a}`
161
161
  }
162
162
  )
@@ -185,7 +185,7 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
185
185
  errorMessage: G,
186
186
  emptyStateMessage: o("NO_FORM_DATA_AVAILABLE"),
187
187
  testIdPrefix: t.formName,
188
- hideThumbnail: $
188
+ hideThumbnail: x
189
189
  }
190
190
  )
191
191
  }
@@ -193,5 +193,5 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
193
193
  ] });
194
194
  };
195
195
  export {
196
- Ae as default
196
+ Ie as default
197
197
  };
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-3z4t25MI.js";
2
- import { B as d, C as f, D as e } from "./index-BoFTZe4P.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-zIdfseOL.js";
2
+ import { B as d, C as f, D as e } from "./index-DEREz8wc.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-3z4t25MI.js";
2
- import { B as C, C as v, D as e } from "./index-BoFTZe4P.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-zIdfseOL.js";
2
+ import { B as C, C as v, D as e } from "./index-DEREz8wc.js";
3
3
  var h = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,7 +1,7 @@
1
1
  import { jsxs as N, jsx as u } from "react/jsx-runtime";
2
- import { c as B, d as Q, u as S, n as H, j as K, Q as w, k as M, p as j, q as x, H as G, b as X, r as z, Z as A, t as P, v as Z, R as Y, y as J, z as W, A as ee } from "./index-BoFTZe4P.js";
2
+ import { c as Q, d as V, u as S, n as H, j as K, Q as w, k as j, p as x, q as G, H as M, b as X, r as z, Z as A, t as P, v as Z, R as Y, y as J, z as W, A as ee } from "./index-DEREz8wc.js";
3
3
  import { useQueries as te, useQuery as ae } from "@tanstack/react-query";
4
- import { useRef as se, useEffect as $, useMemo as R } from "react";
4
+ import { useRef as se, useEffect as O, useMemo as R } from "react";
5
5
  const D = (t, n, d, l, b, r) => {
6
6
  const a = P(t, n, b), s = a.value, i = Z(s);
7
7
  let o = s;
@@ -113,20 +113,20 @@ const D = (t, n, d, l, b, r) => {
113
113
  conceptNames: d = [],
114
114
  conceptUuid: l = [],
115
115
  hideThumbnail: b = !1
116
- } = n, r = se(/* @__PURE__ */ new Set()), a = B(), { addNotification: s } = Q(), { t: i } = S(), o = te({
116
+ } = n, r = se(/* @__PURE__ */ new Set()), a = Q(), { addNotification: s } = V(), { t: i } = S(), o = te({
117
117
  queries: d.map((e) => ({
118
118
  queryKey: de(e),
119
119
  queryFn: () => H(e),
120
120
  enabled: !!e
121
121
  }))
122
122
  });
123
- $(() => {
123
+ O(() => {
124
124
  o.forEach((e, h) => {
125
125
  if (e.isError && !r.current.has(h)) {
126
- const k = d[h];
126
+ const B = d[h];
127
127
  s({
128
128
  title: i("ERROR_DEFAULT_TITLE"),
129
- message: i("ERROR_FETCHING_CONCEPT", { conceptName: k }),
129
+ message: i("ERROR_FETCHING_CONCEPT", { conceptName: B }),
130
130
  type: "error"
131
131
  }), r.current.add(h);
132
132
  } else e.isError || r.current.delete(h);
@@ -136,7 +136,7 @@ const D = (t, n, d, l, b, r) => {
136
136
  data: c,
137
137
  isLoading: F,
138
138
  isError: f,
139
- refetch: T
139
+ refetch: g
140
140
  } = ae({
141
141
  queryKey: le(a, m),
142
142
  queryFn: () => K(a, m),
@@ -146,25 +146,25 @@ const D = (t, n, d, l, b, r) => {
146
146
  (e) => {
147
147
  e.patientUUID === a && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
148
148
  (h) => m.includes(h)
149
- ) && T();
149
+ ) && g();
150
150
  },
151
- [a, T]
152
- ), $(() => {
151
+ [a, g]
152
+ ), O(() => {
153
153
  f && s({
154
154
  title: i("ERROR_DEFAULT_TITLE"),
155
155
  message: i("ERROR_FETCHING_OBSERVATIONS"),
156
156
  type: "error"
157
157
  });
158
158
  }, [f]);
159
- const g = R(() => {
159
+ const T = R(() => {
160
160
  if (!c) return [];
161
- const e = M(c), h = j(e);
162
- return x(h);
163
- }, [c]), L = [
161
+ const e = j(c), h = x(e);
162
+ return G(h);
163
+ }, [c]), q = [
164
164
  { key: "name", header: "name" },
165
165
  { key: "value", header: "value" },
166
166
  { key: "form", header: "form" }
167
- ], O = F || !y, _ = f && y, q = (!c || c.entry?.length === 0 || m.length === 0) && y, C = _ ? i("ERROR_FETCHING_OBSERVATIONS") : null, U = q ? i("NO_OBSERVATIONS_FOUND") : void 0, V = g.length > 0 && !O && !_, E = n.titleTranslationKey, v = E ? i(E) : "";
167
+ ], _ = F || !y, $ = f && y, L = (!c || c.entry?.length === 0 || m.length === 0) && y, k = $ ? i("ERROR_FETCHING_OBSERVATIONS") : null, C = L ? i("NO_OBSERVATIONS_FOUND") : void 0, U = T.length > 0 && !_ && !$, E = n.titleTranslationKey, v = E ? i(E) : "";
168
168
  return /* @__PURE__ */ N(
169
169
  "div",
170
170
  {
@@ -174,7 +174,7 @@ const D = (t, n, d, l, b, r) => {
174
174
  className: I.observations,
175
175
  children: [
176
176
  /* @__PURE__ */ u(
177
- G,
177
+ M,
178
178
  {
179
179
  id: "observations-title",
180
180
  testId: E ? `observations-title-${v}` : "observations-title",
@@ -183,22 +183,22 @@ const D = (t, n, d, l, b, r) => {
183
183
  children: /* @__PURE__ */ u("p", { children: v })
184
184
  }
185
185
  ),
186
- V ? /* @__PURE__ */ u(
186
+ U ? /* @__PURE__ */ u(
187
187
  ie,
188
188
  {
189
- groupedData: g,
189
+ groupedData: T,
190
190
  title: v,
191
191
  hideThumbnail: b
192
192
  }
193
193
  ) : /* @__PURE__ */ u(
194
194
  X,
195
195
  {
196
- headers: L,
196
+ headers: q,
197
197
  rows: [],
198
198
  ariaLabel: i("OBSERVATIONS"),
199
- loading: O,
200
- errorStateMessage: C,
201
- emptyStateMessage: U,
199
+ loading: _,
200
+ errorStateMessage: k,
201
+ emptyStateMessage: C,
202
202
  dataTestId: "observations-table"
203
203
  }
204
204
  )
@@ -1,4 +1,4 @@
1
- import { E as we, F as z, G as xt, I as B, C as q, D as y, P as Ro, J as ye, S as R, K as _, L as k, M as N, O as A, T as bs, U as ir, V as $e, W as U, X as Hn, Y as Vn, _ as dt, a0 as D, a1 as xs, a2 as cn, a3 as Be, a4 as ws, a5 as qt, a6 as zt, a7 as $s, a8 as Cs, a9 as $n, aa as Ss, ab as Nr, ac as Bt, ad as zo, ae as ks, af as Es, ag as j, ah as Ur, ai as Ms, aj as Ds, ak as sr, al as As, am as Ts, an as zn, ao as Fs, ap as Is, aq as Z, ar as Ps, as as Ls } from "./index-BoFTZe4P.js";
1
+ import { E as we, F as z, G as xt, I as B, C as q, D as y, P as Ro, J as ye, S as R, K as _, L as k, M as N, O as A, T as bs, U as ir, V as $e, W as U, X as Hn, Y as Vn, _ as dt, a0 as D, a1 as xs, a2 as cn, a3 as Be, a4 as ws, a5 as qt, a6 as zt, a7 as $s, a8 as Cs, a9 as $n, aa as Ss, ab as Nr, ac as Bt, ad as zo, ae as ks, af as Es, ag as j, ah as Ur, ai as Ms, aj as Ds, ak as sr, al as As, am as Ts, an as zn, ao as Fs, ap as Is, aq as Z, ar as Ps, as as Ls } from "./index-DEREz8wc.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -70195,105 +70195,105 @@ function GK2(t, e) {
70195
70195
  });
70196
70196
  }
70197
70197
  let mt = class {
70198
- constructor(t) {
70199
- t && this.set(t);
70198
+ constructor(e) {
70199
+ e && this.set(e);
70200
70200
  }
70201
- set(t, e, r) {
70202
- const n = this;
70203
- function a(i, l, s) {
70204
- const u = Hc(l);
70205
- if (!u)
70201
+ set(e, r, n) {
70202
+ const a = this;
70203
+ function c(l, s, u) {
70204
+ const d = Hc(s);
70205
+ if (!d)
70206
70206
  throw new Error("header name must be a non-empty string");
70207
- const d = _e.findKey(n, u);
70208
- (!d || n[d] === void 0 || s === !0 || s === void 0 && n[d] !== !1) && (n[d || l] = k8(i));
70209
- }
70210
- const c = (i, l) => _e.forEach(i, (s, u) => a(s, u, l));
70211
- if (_e.isPlainObject(t) || t instanceof this.constructor)
70212
- c(t, e);
70213
- else if (_e.isString(t) && (t = t.trim()) && !WK2(t))
70214
- c(PK2(t), e);
70215
- else if (_e.isObject(t) && _e.isIterable(t)) {
70216
- let i = {}, l, s;
70217
- for (const u of t) {
70218
- if (!_e.isArray(u))
70207
+ const h = _e.findKey(a, d);
70208
+ (!h || a[h] === void 0 || u === !0 || u === void 0 && a[h] !== !1) && (a[h || s] = k8(l));
70209
+ }
70210
+ const i = (l, s) => _e.forEach(l, (u, d) => c(u, d, s));
70211
+ if (_e.isPlainObject(e) || e instanceof this.constructor)
70212
+ i(e, r);
70213
+ else if (_e.isString(e) && (e = e.trim()) && !WK2(e))
70214
+ i(PK2(e), r);
70215
+ else if (_e.isObject(e) && _e.isIterable(e)) {
70216
+ let l = {}, s, u;
70217
+ for (const d of e) {
70218
+ if (!_e.isArray(d))
70219
70219
  throw TypeError("Object iterator must return a key-value pair");
70220
- i[s = u[0]] = (l = i[s]) ? _e.isArray(l) ? [...l, u[1]] : [l, u[1]] : u[1];
70220
+ l[u = d[0]] = (s = l[u]) ? _e.isArray(s) ? [...s, d[1]] : [s, d[1]] : d[1];
70221
70221
  }
70222
- c(i, e);
70222
+ i(l, r);
70223
70223
  } else
70224
- t != null && a(e, t, r);
70224
+ e != null && c(r, e, n);
70225
70225
  return this;
70226
70226
  }
70227
- get(t, e) {
70228
- if (t = Hc(t), t) {
70229
- const r = _e.findKey(this, t);
70230
- if (r) {
70231
- const n = this[r];
70232
- if (!e)
70233
- return n;
70234
- if (e === !0)
70235
- return UK2(n);
70236
- if (_e.isFunction(e))
70237
- return e.call(this, n, r);
70238
- if (_e.isRegExp(e))
70239
- return e.exec(n);
70227
+ get(e, r) {
70228
+ if (e = Hc(e), e) {
70229
+ const n = _e.findKey(this, e);
70230
+ if (n) {
70231
+ const a = this[n];
70232
+ if (!r)
70233
+ return a;
70234
+ if (r === !0)
70235
+ return UK2(a);
70236
+ if (_e.isFunction(r))
70237
+ return r.call(this, a, n);
70238
+ if (_e.isRegExp(r))
70239
+ return r.exec(a);
70240
70240
  throw new TypeError("parser must be boolean|regexp|function");
70241
70241
  }
70242
70242
  }
70243
70243
  }
70244
- has(t, e) {
70245
- if (t = Hc(t), t) {
70246
- const r = _e.findKey(this, t);
70247
- return !!(r && this[r] !== void 0 && (!e || hh(this, this[r], r, e)));
70244
+ has(e, r) {
70245
+ if (e = Hc(e), e) {
70246
+ const n = _e.findKey(this, e);
70247
+ return !!(n && this[n] !== void 0 && (!r || hh(this, this[n], n, r)));
70248
70248
  }
70249
70249
  return !1;
70250
70250
  }
70251
- delete(t, e) {
70252
- const r = this;
70253
- let n = !1;
70254
- function a(c) {
70255
- if (c = Hc(c), c) {
70256
- const i = _e.findKey(r, c);
70257
- i && (!e || hh(r, r[i], i, e)) && (delete r[i], n = !0);
70251
+ delete(e, r) {
70252
+ const n = this;
70253
+ let a = !1;
70254
+ function c(i) {
70255
+ if (i = Hc(i), i) {
70256
+ const l = _e.findKey(n, i);
70257
+ l && (!r || hh(n, n[l], l, r)) && (delete n[l], a = !0);
70258
70258
  }
70259
70259
  }
70260
- return _e.isArray(t) ? t.forEach(a) : a(t), n;
70260
+ return _e.isArray(e) ? e.forEach(c) : c(e), a;
70261
70261
  }
70262
- clear(t) {
70263
- const e = Object.keys(this);
70264
- let r = e.length, n = !1;
70265
- for (; r--; ) {
70266
- const a = e[r];
70267
- (!t || hh(this, this[a], a, t, !0)) && (delete this[a], n = !0);
70262
+ clear(e) {
70263
+ const r = Object.keys(this);
70264
+ let n = r.length, a = !1;
70265
+ for (; n--; ) {
70266
+ const c = r[n];
70267
+ (!e || hh(this, this[c], c, e, !0)) && (delete this[c], a = !0);
70268
70268
  }
70269
- return n;
70269
+ return a;
70270
70270
  }
70271
- normalize(t) {
70272
- const e = this, r = {};
70273
- return _e.forEach(this, (n, a) => {
70274
- const c = _e.findKey(r, a);
70275
- if (c) {
70276
- e[c] = k8(n), delete e[a];
70271
+ normalize(e) {
70272
+ const r = this, n = {};
70273
+ return _e.forEach(this, (a, c) => {
70274
+ const i = _e.findKey(n, c);
70275
+ if (i) {
70276
+ r[i] = k8(a), delete r[c];
70277
70277
  return;
70278
70278
  }
70279
- const i = t ? KK2(a) : String(a).trim();
70280
- i !== a && delete e[a], e[i] = k8(n), r[i] = !0;
70279
+ const l = e ? KK2(c) : String(c).trim();
70280
+ l !== c && delete r[c], r[l] = k8(a), n[l] = !0;
70281
70281
  }), this;
70282
70282
  }
70283
- concat(...t) {
70284
- return this.constructor.concat(this, ...t);
70283
+ concat(...e) {
70284
+ return this.constructor.concat(this, ...e);
70285
70285
  }
70286
- toJSON(t) {
70287
- const e = /* @__PURE__ */ Object.create(null);
70288
- return _e.forEach(this, (r, n) => {
70289
- r != null && r !== !1 && (e[n] = t && _e.isArray(r) ? r.join(", ") : r);
70290
- }), e;
70286
+ toJSON(e) {
70287
+ const r = /* @__PURE__ */ Object.create(null);
70288
+ return _e.forEach(this, (n, a) => {
70289
+ n != null && n !== !1 && (r[a] = e && _e.isArray(n) ? n.join(", ") : n);
70290
+ }), r;
70291
70291
  }
70292
70292
  [Symbol.iterator]() {
70293
70293
  return Object.entries(this.toJSON())[Symbol.iterator]();
70294
70294
  }
70295
70295
  toString() {
70296
- return Object.entries(this.toJSON()).map(([t, e]) => t + ": " + e).join(`
70296
+ return Object.entries(this.toJSON()).map(([e, r]) => e + ": " + r).join(`
70297
70297
  `);
70298
70298
  }
70299
70299
  getSetCookie() {
@@ -70302,22 +70302,22 @@ let mt = class {
70302
70302
  get [Symbol.toStringTag]() {
70303
70303
  return "AxiosHeaders";
70304
70304
  }
70305
- static from(t) {
70306
- return t instanceof this ? t : new this(t);
70305
+ static from(e) {
70306
+ return e instanceof this ? e : new this(e);
70307
70307
  }
70308
- static concat(t, ...e) {
70309
- const r = new this(t);
70310
- return e.forEach((n) => r.set(n)), r;
70308
+ static concat(e, ...r) {
70309
+ const n = new this(e);
70310
+ return r.forEach((a) => n.set(a)), n;
70311
70311
  }
70312
- static accessor(t) {
70313
- const e = (this[awe] = this[awe] = {
70312
+ static accessor(e) {
70313
+ const r = (this[awe] = this[awe] = {
70314
70314
  accessors: {}
70315
- }).accessors, r = this.prototype;
70316
- function n(a) {
70317
- const c = Hc(a);
70318
- e[c] || (GK2(r, a), e[c] = !0);
70315
+ }).accessors, n = this.prototype;
70316
+ function a(c) {
70317
+ const i = Hc(c);
70318
+ r[i] || (GK2(n, c), r[i] = !0);
70319
70319
  }
70320
- return _e.isArray(t) ? t.forEach(n) : n(t), this;
70320
+ return _e.isArray(e) ? e.forEach(a) : a(e), this;
70321
70321
  }
70322
70322
  };
70323
70323
  mt.accessor([
@@ -71916,23 +71916,23 @@ i0.getAdapter = kR1.getAdapter;
71916
71916
  i0.HttpStatusCode = pm;
71917
71917
  i0.default = i0;
71918
71918
  const {
71919
- Axios: d2t,
71920
- AxiosError: u2t,
71921
- CanceledError: h2t,
71922
- isCancel: p2t,
71923
- CancelToken: f2t,
71924
- VERSION: m2t,
71925
- all: w2t,
71926
- Cancel: g2t,
71927
- isAxiosError: v2t,
71928
- spread: E2t,
71929
- toFormData: y2t,
71930
- AxiosHeaders: M2t,
71931
- HttpStatusCode: V2t,
71932
- formToJSON: z2t,
71933
- getAdapter: H2t,
71934
- mergeConfig: b2t,
71935
- create: x2t
71919
+ Axios: u2t,
71920
+ AxiosError: h2t,
71921
+ CanceledError: p2t,
71922
+ isCancel: f2t,
71923
+ CancelToken: m2t,
71924
+ VERSION: w2t,
71925
+ all: g2t,
71926
+ Cancel: v2t,
71927
+ isAxiosError: E2t,
71928
+ spread: y2t,
71929
+ toFormData: M2t,
71930
+ AxiosHeaders: V2t,
71931
+ HttpStatusCode: z2t,
71932
+ formToJSON: H2t,
71933
+ getAdapter: b2t,
71934
+ mergeConfig: x2t,
71935
+ create: N2t
71936
71936
  } = i0, IG2 = (t) => typeof t == "object" && t !== null && "resourceType" in t && t.resourceType === "OperationOutcome", BG2 = (t) => {
71937
71937
  if (!t.issue || !Array.isArray(t.issue))
71938
71938
  return null;
@@ -117113,7 +117113,7 @@ function wd({
117113
117113
  }, i), a));
117114
117114
  }
117115
117115
  const {
117116
- open: D2t,
117116
+ open: R2t,
117117
117117
  ...Fy0
117118
117118
  } = Ja.propTypes ?? {};
117119
117119
  wd.propTypes = {
@@ -142910,7 +142910,7 @@ const SC0 = ({
142910
142910
  container: kC0,
142911
142911
  accordion: ZC0,
142912
142912
  rows: IC0
142913
- }, R2t = ({
142913
+ }, S2t = ({
142914
142914
  title: t,
142915
142915
  rows: e,
142916
142916
  children: r,
@@ -145306,23 +145306,23 @@ s0.getAdapter = mP1.getAdapter;
145306
145306
  s0.HttpStatusCode = fw;
145307
145307
  s0.default = s0;
145308
145308
  const {
145309
- Axios: S2t,
145310
- AxiosError: k2t,
145311
- CanceledError: Z2t,
145312
- isCancel: I2t,
145313
- CancelToken: B2t,
145314
- VERSION: P2t,
145315
- all: F2t,
145316
- Cancel: j2t,
145317
- isAxiosError: q2t,
145318
- spread: U2t,
145319
- toFormData: W2t,
145320
- AxiosHeaders: K2t,
145321
- HttpStatusCode: G2t,
145322
- formToJSON: Y2t,
145323
- getAdapter: J2t,
145324
- mergeConfig: X2t,
145325
- create: Q2t
145309
+ Axios: k2t,
145310
+ AxiosError: Z2t,
145311
+ CanceledError: I2t,
145312
+ isCancel: B2t,
145313
+ CancelToken: P2t,
145314
+ VERSION: F2t,
145315
+ all: j2t,
145316
+ Cancel: q2t,
145317
+ isAxiosError: U2t,
145318
+ spread: W2t,
145319
+ toFormData: K2t,
145320
+ AxiosHeaders: G2t,
145321
+ HttpStatusCode: Y2t,
145322
+ formToJSON: J2t,
145323
+ getAdapter: X2t,
145324
+ mergeConfig: Q2t,
145325
+ create: e0t
145326
145326
  } = s0, KA0 = (t) => typeof t == "object" && t !== null && "resourceType" in t && t.resourceType === "OperationOutcome", GA0 = (t) => {
145327
145327
  if (!t.issue || !Array.isArray(t.issue))
145328
145328
  return null;
@@ -148729,7 +148729,7 @@ const C$0 = () => {
148729
148729
  }
148730
148730
  };
148731
148731
  }, kP1 = C$0(), L$0 = (t) => `${Wr}/concept?s=byFullySpecifiedName&name=${encodeURIComponent(t)}`, A$0 = "SHORT", _$0 = "FULLY_SPECIFIED";
148732
- async function e0t(t) {
148732
+ async function t0t(t) {
148733
148733
  const e = L$0(t), r = await m0(e);
148734
148734
  return !r.results || r.results.length === 0 ? null : r.results[0];
148735
148735
  }
@@ -148779,7 +148779,7 @@ async function S$0(t) {
148779
148779
  return R$0(e);
148780
148780
  }
148781
148781
  var vw = /* @__PURE__ */ ((t) => (t.Active = "Active", t.Inactive = "Inactive", t))(vw || {}), X8 = /* @__PURE__ */ ((t) => (t.mild = "mild", t.moderate = "moderate", t.severe = "severe", t))(X8 || {});
148782
- const k$0 = "problem-list-item", Z$0 = "encounter-diagnosis", I$0 = "http://fhir.bahmni.org/ext/lab-order-concept-type", t0t = "http://fhir.bahmni.org/ext/observation/form-namespace-path", B$0 = (t, e = 10, r = 0) => St + `/Condition?category=${k$0}&patient=${t}&_count=${e}&_getpagesoffset=${r}&_sort=-_lastUpdated`;
148782
+ const k$0 = "problem-list-item", Z$0 = "encounter-diagnosis", I$0 = "http://fhir.bahmni.org/ext/lab-order-concept-type", r0t = "http://fhir.bahmni.org/ext/observation/form-namespace-path", B$0 = (t, e = 10, r = 0) => St + `/Condition?category=${k$0}&patient=${t}&_count=${e}&_getpagesoffset=${r}&_sort=-_lastUpdated`;
148783
148783
  async function P$0(t, e = 10, r = 1) {
148784
148784
  const n = (r - 1) * e, a = await m0(
148785
148785
  B$0(t, e, n)
@@ -153598,12 +153598,12 @@ const LD0 = (t) => Wr + `/form/${t}?v=custom:(resources:(value))`, AD0 = (t) =>
153598
153598
  const r = e.join(",");
153599
153599
  return `${St}/Observation?patient=${t}&code=${r}&_include=Observation:has-member&_include=Observation:encounter&_sort=-_lastUpdated`;
153600
153600
  };
153601
- async function r0t(t, e) {
153601
+ async function n0t(t, e) {
153602
153602
  const r = $D0(t, e);
153603
153603
  return await m0(r);
153604
153604
  }
153605
153605
  const OD0 = (t) => `${St}/Observation/$fetch-all?encounter=${t}`;
153606
- async function n0t(t) {
153606
+ async function o0t(t) {
153607
153607
  return await m0(
153608
153608
  OD0(t)
153609
153609
  );
@@ -153653,12 +153653,12 @@ const nu = (t, e) => t?.length === 0 ? !1 : e?.length === 0, DD0 = async () => {
153653
153653
  editable: n.editable
153654
153654
  }))
153655
153655
  };
153656
- }, o0t = async (t) => {
153656
+ }, a0t = async (t) => {
153657
153657
  const e = await RD0(), r = MP1();
153658
153658
  return e.map(
153659
153659
  (n) => kD0(n, r)
153660
153660
  );
153661
- }, a0t = async (t) => {
153661
+ }, c0t = async (t) => {
153662
153662
  const e = await fetch(LD0(t));
153663
153663
  if (!e.ok)
153664
153664
  throw new Error(
@@ -153692,7 +153692,7 @@ const nu = (t, e) => t?.length === 0 ? !1 : e?.length === 0, DD0 = async () => {
153692
153692
  schema: n,
153693
153693
  translations: u
153694
153694
  };
153695
- }, c0t = async (t, e, r) => {
153695
+ }, i0t = async (t, e, r) => {
153696
153696
  const n = TD0(t, r), a = await m0(n);
153697
153697
  return Array.isArray(a) ? a : [];
153698
153698
  }, ZD0 = Wr + "/bahmnicore/diseaseSummaryData?", ID0 = async (t, e, r, n) => {
@@ -153775,7 +153775,7 @@ function WD0(t) {
153775
153775
  };
153776
153776
  });
153777
153777
  }
153778
- async function i0t(t, e, r = 10, n = 1) {
153778
+ async function l0t(t, e, r = 10, n = 1) {
153779
153779
  const a = (n - 1) * r, c = UD0(
153780
153780
  t,
153781
153781
  e,
@@ -163960,7 +163960,7 @@ function PF0(t) {
163960
163960
  a.push(l);
163961
163961
  }), a;
163962
163962
  }
163963
- const l0t = (t, e) => t?.date ? O2(t.date, e).formattedResult : e("DATE_ERROR_PARSE"), $V = (t, e) => {
163963
+ const s0t = (t, e) => t?.date ? O2(t.date, e).formattedResult : e("DATE_ERROR_PARSE"), $V = (t, e) => {
163964
163964
  if (!t.observationValue?.value)
163965
163965
  return "";
163966
163966
  const { value: r, unit: n, type: a } = t.observationValue;
@@ -163986,7 +163986,7 @@ const l0t = (t, e) => t?.date ? O2(t.date, e).formattedResult : e("DATE_ERROR_PA
163986
163986
  return `${e} (<${i})`;
163987
163987
  }
163988
163988
  return e;
163989
- }, s0t = (t, e, r) => ({
163989
+ }, d0t = (t, e, r) => ({
163990
163990
  index: e,
163991
163991
  header: FF0(t),
163992
163992
  value: $V(t, r),
@@ -164020,7 +164020,7 @@ function qF1(t, e, r) {
164020
164020
  // conceptId is required to group the multiselect obs
164021
164021
  };
164022
164022
  }
164023
- function d0t(t) {
164023
+ function u0t(t) {
164024
164024
  const e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set();
164025
164025
  t.entry?.forEach(({ resource: i }) => {
164026
164026
  i?.id && (i.resourceType === "Encounter" ? e.set(i.id, i) : i.resourceType === "Observation" && (r.set(i.id, i), i.hasMember?.forEach((l) => {
@@ -164039,7 +164039,7 @@ function d0t(t) {
164039
164039
  s.members ? c.push(s) : a.push(s);
164040
164040
  }), { observations: a, groupedObservations: c };
164041
164041
  }
164042
- function u0t(t) {
164042
+ function h0t(t) {
164043
164043
  const e = /* @__PURE__ */ new Map();
164044
164044
  return t.observations.forEach((r) => {
164045
164045
  if (!r.encounter?.id) return;
@@ -164065,7 +164065,7 @@ function u0t(t) {
164065
164065
  };
164066
164066
  });
164067
164067
  }
164068
- function h0t(t) {
164068
+ function p0t(t) {
164069
164069
  return [...t].sort((e, r) => {
164070
164070
  const n = e.encounterDetails?.date, a = r.encounterDetails?.date;
164071
164071
  return !n && !a ? 0 : n ? a ? new Date(a).getTime() - new Date(n).getTime() : -1 : 1;
@@ -167005,7 +167005,7 @@ function LU0(t, e, r) {
167005
167005
  return n;
167006
167006
  };
167007
167007
  }
167008
- Mt(() => Promise.resolve().then(() => RB0)), Mt(() => Promise.resolve().then(() => sP0)), Mt(() => Promise.resolve().then(() => ZP0)), Mt(() => Promise.resolve().then(() => UP0)), Mt(() => import("./DocumentsTable-DEmnzSjR-BoE9Nadz.js")), Mt(() => Promise.resolve().then(() => Iq0)), Mt(() => import("./FormsTable-CXitFQpW-Ccpeoepd.js")), Mt(() => Promise.resolve().then(() => hq0)), Mt(() => import("./Observations-DsQfPuhO-673kAosv.js")), Mt(
167008
+ Mt(() => Promise.resolve().then(() => RB0)), Mt(() => Promise.resolve().then(() => sP0)), Mt(() => Promise.resolve().then(() => ZP0)), Mt(() => Promise.resolve().then(() => UP0)), Mt(() => import("./DocumentsTable-YDhjKVF1-CVIrOP5q.js")), Mt(() => Promise.resolve().then(() => Iq0)), Mt(() => import("./FormsTable-Db-oc-9c-DxgOa9KC.js")), Mt(() => Promise.resolve().then(() => hq0)), Mt(() => import("./Observations-DIUn-YMi-S8MUeyA-.js")), Mt(
167009
167009
  () => Promise.resolve().then(() => Yq0)
167010
167010
  ), Mt(
167011
167011
  () => Promise.resolve().then(() => Oj0)
@@ -167163,7 +167163,7 @@ function OU0(t, e, r) {
167163
167163
  mutate: y
167164
167164
  }];
167165
167165
  }
167166
- function p0t(t) {
167166
+ function f0t(t) {
167167
167167
  return bn(t, !1);
167168
167168
  }
167169
167169
  function j0(t) {
@@ -167176,7 +167176,7 @@ function j0(t) {
167176
167176
  k2 = e;
167177
167177
  }
167178
167178
  }
167179
- function f0t(t, e, r) {
167179
+ function m0t(t, e, r) {
167180
167180
  const n = Array.isArray(t);
167181
167181
  let a, c = r && r.defer;
167182
167182
  return (i) => {
@@ -167219,11 +167219,11 @@ function RU0(t) {
167219
167219
  return bn(t, !1), k2 = r2 = null, n ? n.done : void 0;
167220
167220
  });
167221
167221
  }
167222
- var [SU0, m0t] = /* @__PURE__ */ a0(!1);
167223
- function w0t() {
167222
+ var [SU0, w0t] = /* @__PURE__ */ a0(!1);
167223
+ function g0t() {
167224
167224
  return [SU0, RU0];
167225
167225
  }
167226
- function g0t(t, e) {
167226
+ function v0t(t, e) {
167227
167227
  const r = Symbol("context");
167228
167228
  return {
167229
167229
  id: r,
@@ -167231,7 +167231,7 @@ function g0t(t, e) {
167231
167231
  defaultValue: t
167232
167232
  };
167233
167233
  }
167234
- function v0t(t) {
167234
+ function E0t(t) {
167235
167235
  let e;
167236
167236
  return r2 && r2.context && (e = r2.context[t.id]) !== void 0 ? e : t.defaultValue;
167237
167237
  }
@@ -167631,23 +167631,23 @@ function Mj1(t) {
167631
167631
  return n.preload = () => r || ((r = t()).then((a) => e = () => a.default), r), n;
167632
167632
  }
167633
167633
  var WU0 = 0;
167634
- function E0t() {
167634
+ function y0t() {
167635
167635
  return j1.context ? j1.getNextContextId() : `cl-${WU0++}`;
167636
167636
  }
167637
167637
  var Vj1 = (t) => `Stale read from <${t}>.`;
167638
- function y0t(t) {
167638
+ function M0t(t) {
167639
167639
  const e = "fallback" in t && {
167640
167640
  fallback: () => t.fallback
167641
167641
  };
167642
167642
  return A0(FU0(() => t.each, t.children, e || void 0));
167643
167643
  }
167644
- function M0t(t) {
167644
+ function V0t(t) {
167645
167645
  const e = "fallback" in t && {
167646
167646
  fallback: () => t.fallback
167647
167647
  };
167648
167648
  return A0(jU0(() => t.each, t.children, e || void 0));
167649
167649
  }
167650
- function V0t(t) {
167650
+ function z0t(t) {
167651
167651
  const e = t.keyed, r = A0(() => t.when, void 0, void 0), n = e ? r : A0(r, void 0, {
167652
167652
  equals: (a, c) => !a == !c
167653
167653
  });
@@ -167663,7 +167663,7 @@ function V0t(t) {
167663
167663
  return t.fallback;
167664
167664
  }, void 0, void 0);
167665
167665
  }
167666
- function z0t(t) {
167666
+ function H0t(t) {
167667
167667
  const e = fj1(() => t.children), r = A0(() => {
167668
167668
  const n = e(), a = Array.isArray(n) ? n : [n];
167669
167669
  let c = () => {
@@ -167686,7 +167686,7 @@ function z0t(t) {
167686
167686
  })) : l;
167687
167687
  }, void 0, void 0);
167688
167688
  }
167689
- function H0t(t) {
167689
+ function b0t(t) {
167690
167690
  return t;
167691
167691
  }
167692
167692
  var KU0 = ["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"], GU0 = /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...KU0]), YU0 = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), JU0 = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
@@ -167806,7 +167806,7 @@ var eW0 = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextm
167806
167806
  ]), rW0 = {
167807
167807
  xlink: "http://www.w3.org/1999/xlink",
167808
167808
  xml: "http://www.w3.org/XML/1998/namespace"
167809
- }, b0t = (t) => A0(() => t());
167809
+ }, x0t = (t) => A0(() => t());
167810
167810
  function nW0(t, e, r) {
167811
167811
  let n = r.length, a = e.length, c = n, i = 0, l = 0, s = e[a - 1].nextSibling, u = null;
167812
167812
  for (; i < a || l < c; ) {
@@ -167855,7 +167855,7 @@ function zj1(t, e, r, n = {}) {
167855
167855
  a(), e.textContent = "";
167856
167856
  };
167857
167857
  }
167858
- function x0t(t, e, r, n) {
167858
+ function N0t(t, e, r, n) {
167859
167859
  let a;
167860
167860
  const c = () => {
167861
167861
  const l = document.createElement("template");
@@ -167870,7 +167870,7 @@ function oW0(t, e = window.document) {
167870
167870
  r.has(c) || (r.add(c), e.addEventListener(c, Hj1));
167871
167871
  }
167872
167872
  }
167873
- function N0t(t = window.document) {
167873
+ function C0t(t = window.document) {
167874
167874
  if (t[Ei]) {
167875
167875
  for (let e of t[Ei].keys()) t.removeEventListener(e, Hj1);
167876
167876
  delete t[Ei];
@@ -168137,7 +168137,7 @@ var gW0 = "http://www.w3.org/2000/svg";
168137
168137
  function bj1(t, e = !1) {
168138
168138
  return e ? document.createElementNS(gW0, t) : document.createElement(t);
168139
168139
  }
168140
- function C0t(t) {
168140
+ function L0t(t) {
168141
168141
  const {
168142
168142
  useShadow: e
168143
168143
  } = t, r = document.createTextNode(""), n = () => t.mount || document.body, a = iE1();
@@ -168176,7 +168176,7 @@ function vW0(t, e) {
168176
168176
  }
168177
168177
  });
168178
168178
  }
168179
- function L0t(t) {
168179
+ function A0t(t) {
168180
168180
  const [, e] = UU0(t, ["component"]);
168181
168181
  return vW0(() => t.component, e);
168182
168182
  }
@@ -168683,42 +168683,42 @@ I2.registerClass = I2.defaultInstance.registerClass.bind(I2.defaultInstance);
168683
168683
  I2.registerSymbol = I2.defaultInstance.registerSymbol.bind(I2.defaultInstance);
168684
168684
  I2.registerCustom = I2.defaultInstance.registerCustom.bind(I2.defaultInstance);
168685
168685
  I2.allowErrorProps = I2.defaultInstance.allowErrorProps.bind(I2.defaultInstance);
168686
- var KW0 = I2.serialize, A0t = I2.stringify;
168687
- function _0t(t) {
168686
+ var KW0 = I2.serialize, _0t = I2.stringify;
168687
+ function T0t(t) {
168688
168688
  return t.state.fetchStatus === "fetching" ? "fetching" : t.getObserversCount() ? t.state.fetchStatus === "paused" ? "paused" : t.isStale() ? "stale" : "fresh" : "inactive";
168689
168689
  }
168690
- function T0t(t, e) {
168690
+ function $0t(t, e) {
168691
168691
  return `${t}${e.charAt(0).toUpperCase() + e.slice(1)}`;
168692
168692
  }
168693
- function $0t({
168693
+ function O0t({
168694
168694
  queryState: t,
168695
168695
  observerCount: e,
168696
168696
  isStale: r
168697
168697
  }) {
168698
168698
  return t.fetchStatus === "fetching" ? "blue" : e ? t.fetchStatus === "paused" ? "purple" : r ? "yellow" : "green" : "gray";
168699
168699
  }
168700
- function O0t({
168700
+ function D0t({
168701
168701
  status: t,
168702
168702
  isPaused: e
168703
168703
  }) {
168704
168704
  return e ? "purple" : t === "error" ? "red" : t === "pending" ? "yellow" : t === "success" ? "green" : "gray";
168705
168705
  }
168706
- function D0t(t) {
168706
+ function R0t(t) {
168707
168707
  return t === "fresh" ? "green" : t === "stale" ? "yellow" : t === "paused" ? "purple" : t === "inactive" ? "gray" : "blue";
168708
168708
  }
168709
- var R0t = (t, e = !1) => {
168709
+ var S0t = (t, e = !1) => {
168710
168710
  const {
168711
168711
  json: r
168712
168712
  } = KW0(t);
168713
168713
  return JSON.stringify(r, null, e ? 2 : void 0);
168714
- }, v8 = (t) => t.state.fetchStatus !== "idle" ? 0 : t.getObserversCount() ? t.isStale() ? 2 : 1 : 3, GW0 = (t, e) => t.queryHash.localeCompare(e.queryHash), Ij1 = (t, e) => t.state.dataUpdatedAt < e.state.dataUpdatedAt ? 1 : -1, YW0 = (t, e) => v8(t) === v8(e) ? Ij1(t, e) : v8(t) > v8(e) ? 1 : -1, S0t = {
168714
+ }, v8 = (t) => t.state.fetchStatus !== "idle" ? 0 : t.getObserversCount() ? t.isStale() ? 2 : 1 : 3, GW0 = (t, e) => t.queryHash.localeCompare(e.queryHash), Ij1 = (t, e) => t.state.dataUpdatedAt < e.state.dataUpdatedAt ? 1 : -1, YW0 = (t, e) => v8(t) === v8(e) ? Ij1(t, e) : v8(t) > v8(e) ? 1 : -1, k0t = {
168715
168715
  status: YW0,
168716
168716
  "query hash": GW0,
168717
168717
  "last updated": Ij1
168718
- }, E8 = (t) => t.state.isPaused ? 0 : t.state.status === "error" ? 2 : t.state.status === "pending" ? 1 : 3, Bj1 = (t, e) => t.state.submittedAt < e.state.submittedAt ? 1 : -1, JW0 = (t, e) => E8(t) === E8(e) ? Bj1(t, e) : E8(t) > E8(e) ? 1 : -1, k0t = {
168718
+ }, E8 = (t) => t.state.isPaused ? 0 : t.state.status === "error" ? 2 : t.state.status === "pending" ? 1 : 3, Bj1 = (t, e) => t.state.submittedAt < e.state.submittedAt ? 1 : -1, JW0 = (t, e) => E8(t) === E8(e) ? Bj1(t, e) : E8(t) > E8(e) ? 1 : -1, Z0t = {
168719
168719
  status: JW0,
168720
168720
  "last updated": Bj1
168721
- }, Z0t = (t) => t * parseFloat(getComputedStyle(document.documentElement).fontSize), I0t = () => {
168721
+ }, I0t = (t) => t * parseFloat(getComputedStyle(document.documentElement).fontSize), B0t = () => {
168722
168722
  const [t, e] = a0("dark");
168723
168723
  return DU0(() => {
168724
168724
  const r = window.matchMedia("(prefers-color-scheme: dark)");
@@ -168844,7 +168844,7 @@ var R0t = (t, e = !1) => {
168844
168844
  const e = zj1(() => {
168845
168845
  const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t;
168846
168846
  let u;
168847
- return this.#i ? u = this.#i : (u = Mj1(() => import("./LNWAZHJI-Dt-zg_b8.js")), this.#i = u), Pj1(this.#h, this.#r), Ej1(u, yj1({
168847
+ return this.#i ? u = this.#i : (u = Mj1(() => import("./LNWAZHJI-DlC_t-NU.js")), this.#i = u), Pj1(this.#h, this.#r), Ej1(u, yj1({
168848
168848
  get queryFlavor() {
168849
168849
  return r.#d;
168850
168850
  },
@@ -168942,7 +168942,7 @@ var R0t = (t, e = !1) => {
168942
168942
  const e = zj1(() => {
168943
168943
  const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t, [u] = this.#i;
168944
168944
  let d;
168945
- return this.#l ? d = this.#l : (d = Mj1(() => import("./MWZ6AO7Z-DcITN03u.js")), this.#l = d), Pj1(this.#h, this.#r), Ej1(d, yj1({
168945
+ return this.#l ? d = this.#l : (d = Mj1(() => import("./MWZ6AO7Z-DkSGMBX7.js")), this.#l = d), Pj1(this.#h, this.#r), Ej1(d, yj1({
168946
168946
  get queryFlavor() {
168947
168947
  return r.#d;
168948
168948
  },
@@ -181062,7 +181062,7 @@ const L1t = [
181062
181062
  return /* @__PURE__ */ ce(xq1.Provider, { value: f, children: t });
181063
181063
  };
181064
181064
  Pq1.displayName = "PersonAttributesProvider";
181065
- const t2t = new jq1(nK0), B0t = () => {
181065
+ const t2t = new jq1(nK0), P0t = () => {
181066
181066
  const [t, e] = pe(!1);
181067
181067
  return de(() => {
181068
181068
  (async () => {
@@ -181093,84 +181093,84 @@ const t2t = new jq1(nK0), B0t = () => {
181093
181093
  export {
181094
181094
  KF1 as $,
181095
181095
  JC0 as A,
181096
- I0t as B,
181096
+ B0t as B,
181097
181097
  A0 as C,
181098
181098
  Ej1 as D,
181099
- g0t as E,
181099
+ v0t as E,
181100
181100
  a0 as F,
181101
181101
  DU0 as G,
181102
181102
  kd as H,
181103
181103
  hj1 as I,
181104
- b0t as J,
181105
- x0t as K,
181104
+ x0t as J,
181105
+ N0t as K,
181106
181106
  Dw as L,
181107
181107
  L3 as M,
181108
181108
  Dt as N,
181109
181109
  iW0 as O,
181110
- C0t as P,
181110
+ L0t as P,
181111
181111
  _n as Q,
181112
181112
  wC0 as R,
181113
- V0t as S,
181114
- N0t as T,
181113
+ z0t as S,
181114
+ C0t as T,
181115
181115
  oW0 as U,
181116
- v0t as V,
181116
+ E0t as V,
181117
181117
  Qi as W,
181118
- S0t as X,
181119
- k0t as Y,
181120
- R2t as Z,
181121
- f0t as _,
181122
- i0t as a,
181118
+ k0t as X,
181119
+ Z0t as Y,
181120
+ S2t as Z,
181121
+ m0t as _,
181122
+ l0t as a,
181123
181123
  Ow as a0,
181124
- T0t as a1,
181124
+ $0t as a1,
181125
181125
  hW0 as a2,
181126
- E0t as a3,
181127
- p0t as a4,
181128
- _0t as a5,
181129
- O0t as a6,
181130
- $0t as a7,
181131
- D0t as a8,
181132
- R0t as a9,
181133
- y0t as aa,
181134
- Z0t as ab,
181126
+ y0t as a3,
181127
+ f0t as a4,
181128
+ T0t as a5,
181129
+ D0t as a6,
181130
+ O0t as a7,
181131
+ R0t as a8,
181132
+ S0t as a9,
181133
+ M0t as aa,
181134
+ I0t as ab,
181135
181135
  j0 as ac,
181136
181136
  sj1 as ad,
181137
- w0t as ae,
181137
+ g0t as ae,
181138
181138
  uW0 as af,
181139
181139
  yj1 as ag,
181140
181140
  C3 as ah,
181141
181141
  KW0 as ai,
181142
- M0t as aj,
181142
+ V0t as aj,
181143
181143
  y8 as ak,
181144
181144
  lW0 as al,
181145
- A0t as am,
181146
- H0t as an,
181147
- z0t as ao,
181145
+ _0t as am,
181146
+ b0t as an,
181147
+ H0t as ao,
181148
181148
  M8 as ap,
181149
181149
  UU0 as aq,
181150
- L0t as ar,
181150
+ A0t as ar,
181151
181151
  TU0 as as,
181152
- B0t as at,
181152
+ P0t as at,
181153
181153
  bq1 as au,
181154
181154
  _et as av,
181155
181155
  _0 as b,
181156
181156
  br as c,
181157
181157
  q0 as d,
181158
181158
  nu as e,
181159
- c0t as f,
181160
- a0t as g,
181159
+ i0t as f,
181160
+ c0t as g,
181161
181161
  Wl as h,
181162
- n0t as i,
181163
- r0t as j,
181164
- d0t as k,
181162
+ o0t as i,
181163
+ n0t as j,
181164
+ u0t as k,
181165
181165
  K8 as l,
181166
181166
  O2 as m,
181167
- e0t as n,
181168
- t0t as o,
181169
- u0t as p,
181170
- h0t as q,
181171
- l0t as r,
181172
- o0t as s,
181173
- s0t as t,
181167
+ t0t as n,
181168
+ r0t as o,
181169
+ h0t as p,
181170
+ p0t as q,
181171
+ s0t as r,
181172
+ a0t as s,
181173
+ d0t as t,
181174
181174
  q1 as u,
181175
181175
  D_0 as v,
181176
181176
  vr as w,
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { av as s, at as t, au as E } from "./index-BoFTZe4P.js";
1
+ import { av as s, at as t, au as E } from "./index-DEREz8wc.js";
2
2
  export {
3
3
  s as IDENTIFIER_TYPES_QUERY_KEY,
4
4
  t as RegistrationApp,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/registration-app",
3
- "version": "0.0.1-dev.242",
3
+ "version": "0.0.1-dev.246",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",