@bahmni/clinical-app 0.0.1-dev.235 → 0.0.1-dev.236
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.
- package/dist/{DocumentsTable-Cl0S6I_z-cGPjxM0V.js → DocumentsTable-CswucB2R-cyB86bBz.js} +1 -1
- package/dist/{FormsTable-Iqc9AxOy-Bgl-_qJN.js → FormsTable-CVDEyMEn-6yAIFDMZ.js} +26 -26
- package/dist/{LNWAZHJI-BxYFXdec.js → LNWAZHJI-BFx4hbP4.js} +2 -2
- package/dist/{MWZ6AO7Z-Dfy068rh.js → MWZ6AO7Z-CVMY9APb.js} +2 -2
- package/dist/{Observations-DBbsNLYV-Dt1_UZZg.js → Observations-Q_KSYNBQ-CzthPpOF.js} +1 -1
- package/dist/{YPM2AS64-CoYRg1FN.js → YPM2AS64-BlXCb37S.js} +1 -1
- package/dist/{index-C1s-9o0M.js → index-etRty-O_.js} +88 -88
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as _, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
-
import { t as K, u as Q, r as W, a as J, x as X, V as Z, o as ee, s as te, p as ae } from "./index-
|
|
2
|
+
import { t as K, u as Q, r as W, a as J, x as X, V as Z, o as ee, s as te, p as ae } from "./index-etRty-O_.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
1
|
import { jsx as o, jsxs as W, Fragment as X } from "react/jsx-runtime";
|
|
2
|
-
import { u as Z, t as ee, g as re, b as ae, a as c, k as te, c as v, V as se, x as oe, o as
|
|
2
|
+
import { u as Z, t as ee, g as re, b as ae, a as c, k as te, c as v, V as se, x as oe, o as S, J as ne, Q as de, s as ie, d as ue, e as me, h as le, f as ce, i as fe, j as ye } from "./index-etRty-O_.js";
|
|
3
3
|
import { useState as C, useMemo as d, useCallback as f } from "react";
|
|
4
|
-
const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6",
|
|
4
|
+
const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", O = {
|
|
5
5
|
formsTableBody: be,
|
|
6
6
|
customAccordianItem: ge
|
|
7
7
|
}, he = (u) => u ? u.extension?.find(
|
|
8
8
|
(n) => n.url === me
|
|
9
|
-
)?.valueString : void 0,
|
|
9
|
+
)?.valueString : void 0, Ae = ({
|
|
10
10
|
episodeOfCareUuids: u,
|
|
11
11
|
encounterUuids: n,
|
|
12
|
-
config:
|
|
12
|
+
config: k
|
|
13
13
|
}) => {
|
|
14
|
-
const { t: s } = Z(), m = ee(), [l,
|
|
14
|
+
const { t: s } = Z(), m = ee(), [l, A] = C(!1), [t, I] = C(null), { numberOfVisits: q, hideThumbnail: V = !1 } = k ?? {}, T = re(
|
|
15
15
|
u,
|
|
16
16
|
n
|
|
17
17
|
), x = ae(), {
|
|
@@ -22,20 +22,20 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", I = {
|
|
|
22
22
|
refetch: H
|
|
23
23
|
} = c({
|
|
24
24
|
queryKey: ["forms", m, u],
|
|
25
|
-
queryFn: () => le(m, void 0,
|
|
25
|
+
queryFn: () => le(m, void 0, q),
|
|
26
26
|
enabled: !!m && !T
|
|
27
27
|
}), _ = d(() => !n || n.length === 0 ? y : y.filter(
|
|
28
28
|
(e) => n.includes(e.encounterUuid)
|
|
29
|
-
), [y, n]), { data:
|
|
29
|
+
), [y, n]), { data: D = [] } = c({
|
|
30
30
|
queryKey: ["observationForms"],
|
|
31
31
|
queryFn: () => ce()
|
|
32
|
-
}),
|
|
33
|
-
(e) =>
|
|
34
|
-
[
|
|
32
|
+
}), F = f(
|
|
33
|
+
(e) => D.find((r) => r.name === e)?.uuid,
|
|
34
|
+
[D]
|
|
35
35
|
), b = d(() => {
|
|
36
36
|
if (t)
|
|
37
|
-
return
|
|
38
|
-
}, [t,
|
|
37
|
+
return F(t.formName);
|
|
38
|
+
}, [t, F]), {
|
|
39
39
|
isLoading: K,
|
|
40
40
|
isError: Q,
|
|
41
41
|
error: g
|
|
@@ -67,7 +67,7 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", I = {
|
|
|
67
67
|
return v(g).message;
|
|
68
68
|
if (p)
|
|
69
69
|
return v(p).message;
|
|
70
|
-
}, [g, p]),
|
|
70
|
+
}, [g, p]), L = d(
|
|
71
71
|
() => [
|
|
72
72
|
{ key: "recordedOn", header: s("RECORDED_ON") },
|
|
73
73
|
{ key: "recordedBy", header: s("RECORDED_BY") }
|
|
@@ -79,7 +79,7 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", I = {
|
|
|
79
79
|
{ key: "recordedBy", sortable: !0 }
|
|
80
80
|
],
|
|
81
81
|
[]
|
|
82
|
-
),
|
|
82
|
+
), M = d(() => {
|
|
83
83
|
const e = _.reduce(
|
|
84
84
|
(r, a) => {
|
|
85
85
|
const i = a.formName;
|
|
@@ -105,9 +105,9 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", I = {
|
|
|
105
105
|
})
|
|
106
106
|
).sort((r, a) => r.formName.localeCompare(a.formName));
|
|
107
107
|
}, [_, s]), R = f((e) => {
|
|
108
|
-
|
|
108
|
+
I(e), A(!0);
|
|
109
109
|
}, []), P = f(() => {
|
|
110
|
-
|
|
110
|
+
A(!1), I(null);
|
|
111
111
|
}, []), U = f(
|
|
112
112
|
(e, r) => {
|
|
113
113
|
switch (r) {
|
|
@@ -122,32 +122,32 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", I = {
|
|
|
122
122
|
[R]
|
|
123
123
|
);
|
|
124
124
|
return /* @__PURE__ */ W(X, { children: [
|
|
125
|
-
/* @__PURE__ */ o("div", { "data-testid": "forms-table", children: B || E ||
|
|
126
|
-
|
|
125
|
+
/* @__PURE__ */ o("div", { "data-testid": "forms-table", children: B || E || M.length === 0 || T ? /* @__PURE__ */ o(
|
|
126
|
+
S,
|
|
127
127
|
{
|
|
128
|
-
headers:
|
|
128
|
+
headers: L,
|
|
129
129
|
ariaLabel: s("FORMS_HEADING"),
|
|
130
130
|
rows: [],
|
|
131
131
|
loading: B,
|
|
132
132
|
errorStateMessage: E ? j?.message : void 0,
|
|
133
133
|
emptyStateMessage: s("FORMS_UNAVAILABLE"),
|
|
134
134
|
renderCell: U,
|
|
135
|
-
className:
|
|
135
|
+
className: O.formsTableBody,
|
|
136
136
|
dataTestId: "forms-table"
|
|
137
137
|
}
|
|
138
|
-
) : /* @__PURE__ */ o(ne, { align: "start", children:
|
|
138
|
+
) : /* @__PURE__ */ o(ne, { align: "start", children: M.map((e, r) => {
|
|
139
139
|
const { formName: a, records: i } = e;
|
|
140
140
|
return /* @__PURE__ */ o(
|
|
141
141
|
de,
|
|
142
142
|
{
|
|
143
143
|
title: a,
|
|
144
|
-
className:
|
|
144
|
+
className: O.customAccordianItem,
|
|
145
145
|
testId: `accordian-title-${a}`,
|
|
146
146
|
open: r === 0,
|
|
147
147
|
children: /* @__PURE__ */ o(
|
|
148
|
-
|
|
148
|
+
S,
|
|
149
149
|
{
|
|
150
|
-
headers:
|
|
150
|
+
headers: L,
|
|
151
151
|
ariaLabel: s("FORMS_HEADING"),
|
|
152
152
|
rows: i,
|
|
153
153
|
loading: !1,
|
|
@@ -155,7 +155,7 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", I = {
|
|
|
155
155
|
sortable: J,
|
|
156
156
|
emptyStateMessage: s("FORMS_UNAVAILABLE"),
|
|
157
157
|
renderCell: U,
|
|
158
|
-
className:
|
|
158
|
+
className: O.formsTableBody,
|
|
159
159
|
dataTestId: `forms-table-${a}`
|
|
160
160
|
}
|
|
161
161
|
)
|
|
@@ -192,5 +192,5 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", I = {
|
|
|
192
192
|
] });
|
|
193
193
|
};
|
|
194
194
|
export {
|
|
195
|
-
|
|
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-
|
|
2
|
-
import { F as d, G as f, H as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-BlXCb37S.js";
|
|
2
|
+
import { F as d, G as f, H as e } from "./index-etRty-O_.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-
|
|
2
|
-
import { F as v, G as C, H as e } from "./index-
|
|
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-BlXCb37S.js";
|
|
2
|
+
import { F as v, G as C, H as e } from "./index-etRty-O_.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as N, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { t as k, r as w, u as S, l as K, m as Q, a as P, k as x, v as G, E as H, y as M, n as j, o as z, w as Y, P as D, q as J, z as W, B as X, A as Z, _ as ee, C as ae, D as te } from "./index-
|
|
2
|
+
import { t as k, r as w, u as S, l as K, m as Q, a as P, k as x, v as G, E as H, y as M, n as j, o as z, w as Y, P as D, q as J, z as W, B as X, A as Z, _ as ee, C as ae, D as te } from "./index-etRty-O_.js";
|
|
3
3
|
import { useRef as se, useEffect as $, useMemo as g } from "react";
|
|
4
4
|
const U = (a, n, d, l, b, r) => {
|
|
5
5
|
const t = J(a, n, b), s = t.value, i = W(s);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as we, K as z, L as xt, M as B, G as q, H as y, N as Ro, O as ye, S as R, R as _, T as k, U as N, W as A, X as bs, Y as ir, Z as $e, $ as U, a0 as Hn, a1 as Vn, a2 as dt, a3 as D, a4 as xs, a5 as cn, a6 as Be, a7 as ws, a8 as qt, a9 as zt, aa as $s, ab as Cs, ac as $n, ad as Ss, ae as Nr, af as Bt, ag as zo, ah as ks, ai as Es, aj as j, ak as Ur, al as Ms, am as Ds, an as sr, ao as As, ap as Ts, aq as zn, ar as Fs, as as Is, at as Z, au as Ps, av as Ls } from "./index-
|
|
1
|
+
import { I as we, K as z, L as xt, M as B, G as q, H as y, N as Ro, O as ye, S as R, R as _, T as k, U as N, W as A, X as bs, Y as ir, Z as $e, $ as U, a0 as Hn, a1 as Vn, a2 as dt, a3 as D, a4 as xs, a5 as cn, a6 as Be, a7 as ws, a8 as qt, a9 as zt, aa as $s, ab as Cs, ac as $n, ad as Ss, ae as Nr, af as Bt, ag as zo, ah as ks, ai as Es, aj as j, ak as Ur, al as Ms, am as Ds, an as sr, ao as As, ap as Ts, aq as zn, ar as Fs, as as Is, at as Z, au as Ps, av as Ls } from "./index-etRty-O_.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -3297,7 +3297,7 @@ const xt1 = /* @__PURE__ */ t__default.forwardRef(function({
|
|
|
3297
3297
|
})), n);
|
|
3298
3298
|
});
|
|
3299
3299
|
process.env.NODE_ENV !== "production" && (xt1.propTypes = s);
|
|
3300
|
-
var F7$1, W7$1, j7$1, U7$1, q7$1, K7$1, G7$1, Y7$1, J7$1, X7$1, Q7$1, e9$1, t9$1, n9$1, c9$1, r9$1, a9$1, o9$1, l9$1, i9$1, s9$1, f9$1, p9$1, h9$1, d9$1, u9$1, m9$1, w9$1, v9$1, g9$1, M9$1, E9$1, V9$1, H9$1, L9$1, C9$1, x9$1, z9$1, b9$1, y9$1, _9$1, N9$1, A9$1, $9$1, T9$1, D9$1, S9$1, O9$1, R9$1, k9$1, Z9$1, I9$1, B9$1, P9$1, F9$1, W9$1, j9$1, U9$1, q9$1, K9$1, G9$1, Y9$1, J9$1, X9$1, Q9$1, ei$2, ti$2, ni$2, ci$2, ri$2, ai$2, oi$2, li$2, ii$2, si$2, fi$1, pi$1, hi$1, di$2, ui$2, mi$1, wi$2, vi$2, gi$1, Mi$2, Ei$2, Vi$2, Hi$2, Li$2, Ci$2, xi$2, zi$2, bi$2, yi$2, _i$2, Ni$2, Ai$2, $i$2, Ti$2, Di$2, Si$2, Oi$2, Ri$2, ki$2, Zi$2, Ii$2, Bi$2, Pi$2, Fi$2, Wi$2, ji$2, Ui$2, qi$2, Ki$2, Gi$2, Yi$2, Ji$2, Xi$2, Qi$2, es$1, ts$2, ns$2, cs$2, rs$2, as$2, os$2, ls$2, is$2, ss$2, fs$2, ps$2, hs$2, ds$2, us$2, ms$2, ws$2, vs$2, gs$2, Ms$
|
|
3300
|
+
var F7$1, W7$1, j7$1, U7$1, q7$1, K7$1, G7$1, Y7$1, J7$1, X7$1, Q7$1, e9$1, t9$1, n9$1, c9$1, r9$1, a9$1, o9$1, l9$1, i9$1, s9$1, f9$1, p9$1, h9$1, d9$1, u9$1, m9$1, w9$1, v9$1, g9$1, M9$1, E9$1, V9$1, H9$1, L9$1, C9$1, x9$1, z9$1, b9$1, y9$1, _9$1, N9$1, A9$1, $9$1, T9$1, D9$1, S9$1, O9$1, R9$1, k9$1, Z9$1, I9$1, B9$1, P9$1, F9$1, W9$1, j9$1, U9$1, q9$1, K9$1, G9$1, Y9$1, J9$1, X9$1, Q9$1, ei$2, ti$2, ni$2, ci$2, ri$2, ai$2, oi$2, li$2, ii$2, si$2, fi$1, pi$1, hi$1, di$2, ui$2, mi$1, wi$2, vi$2, gi$1, Mi$2, Ei$2, Vi$2, Hi$2, Li$2, Ci$2, xi$2, zi$2, bi$2, yi$2, _i$2, Ni$2, Ai$2, $i$2, Ti$2, Di$2, Si$2, Oi$2, Ri$2, ki$2, Zi$2, Ii$2, Bi$2, Pi$2, Fi$2, Wi$2, ji$2, Ui$2, qi$2, Ki$2, Gi$2, Yi$2, Ji$2, Xi$2, Qi$2, es$1, ts$2, ns$2, cs$2, rs$2, as$2, os$2, ls$2, is$2, ss$2, fs$2, ps$2, hs$2, ds$2, us$2, ms$2, ws$2, vs$2, gs$2, Ms$1, Es$2, Vs$1, Hs$1, Ls$2, Cs$2, xs$2, zs$2, bs$2, ys$1, _s$2, Ns$2, As$2, $s$2, Ts$2, Ds$2, Ss$2, Os$2, Rs$2, ks$2, Zs$2, Is$2, Bs$1, Ps$2, Fs$2, Ws$2, js$2, Us$2, qs$2, Ks$2, Gs$2, Ys$2, Js$2, Xs$2, Qs$2, ef$2, tf$2, nf$2, cf$2, rf$2, af$2, of$2, lf$2, sf$2, ff$2, pf$2, hf$2, df$2, uf$2, mf$2, wf$2, vf$2, gf$2, Mf$1, Ef$2, Vf$2, Hf$1, Lf$1, Cf$1, xf$1, zf$2, bf$2, yf$2, _f$2, Nf$2, Af$1, $f$2, Tf$2, Df$1, Sf$2, Of$2, Rf$2, kf$1, Zf$1, If$1, Bf$1, Pf$1, Ff$2, Wf$1, jf$2, Uf$1, qf$2, Kf$2, Gf$2, Yf$1, Jf$1, Xf$1, Qf$2, ep$2, tp$2, np$2, cp$1, rp$2, ap$2, op$2, lp$2, ip$1, sp$2, fp$2, pp$2, hp$1, dp$1, up$1, mp$2, wp$1, vp$2, gp$2, Mp$1, Ep$2, Vp$1, Hp$1, Lp$1, Cp$1, xp$1, zp$1, bp$2, yp$2, _p$2, Np$1, Ap$2, $p$1, Tp$2, Dp$1, Sp$2, Op$2, Rp$2, kp$1, Zp$2, Ip$1, Bp$1, Pp$1, Fp$1, Wp$2, jp$1, Up$1, qp$1, Kp$2, Gp$2, Yp$2, Jp$2, Xp$2, Qp$2, eh$2, th$2, nh$2, ch$2, rh$2, ah$2, oh$2, lh$2, ih$2, sh$2, fh$2, ph$2, hh$2, dh$2, uh$2, mh$2, wh$2, vh$2, gh$2, Mh$2, Eh$2, Vh$2, Hh$2, Lh$2, Ch$2, xh$2, zh$2, bh$2, yh$2, _h$2, Nh$2, Ah$2, $h$2, Th$2, Dh$2, Sh$2, Oh$2, Rh$2, kh$2, Zh$2, Ih$2;
|
|
3301
3301
|
const Hp1 = /* @__PURE__ */ t__default.forwardRef(function({
|
|
3302
3302
|
children: n,
|
|
3303
3303
|
size: e = 16,
|
|
@@ -4404,7 +4404,7 @@ const fh1 = /* @__PURE__ */ t__default.forwardRef(function({
|
|
|
4404
4404
|
...r
|
|
4405
4405
|
}, gs$2 || (gs$2 = /* @__PURE__ */ t__default.createElement("path", {
|
|
4406
4406
|
d: "M27 11H26V10a2 2 0 00-2-2H20v2h4v3h3v6H24v3H19v2h5a2 2 0 002-2V21h1a2 2 0 002-2V13A2 2 0 0027 11zM11 22H6V10h6V8H6a2 2 0 00-2 2V22a2 2 0 002 2h5z"
|
|
4407
|
-
})), Ms$
|
|
4407
|
+
})), Ms$1 || (Ms$1 = /* @__PURE__ */ t__default.createElement("path", {
|
|
4408
4408
|
d: "M14.81 23.58L13.19 22.42 17.06 17 9.37 17 16.22 8.38 17.78 9.62 13.51 15 20.94 15 14.81 23.58z"
|
|
4409
4409
|
})), n);
|
|
4410
4410
|
});
|
|
@@ -4760,7 +4760,7 @@ const yh1 = /* @__PURE__ */ t__default.forwardRef(function({
|
|
|
4760
4760
|
viewBox: "0 0 32 32",
|
|
4761
4761
|
fill: "currentColor",
|
|
4762
4762
|
...r
|
|
4763
|
-
}, qs$
|
|
4763
|
+
}, qs$2 || (qs$2 = /* @__PURE__ */ t__default.createElement("path", {
|
|
4764
4764
|
d: "M28,20H26v2h2v6H4V22H6V20H4a2.0024,2.0024,0,0,0-2,2v6a2.0024,2.0024,0,0,0,2,2H28a2.0024,2.0024,0,0,0,2-2V22A2.0024,2.0024,0,0,0,28,20Z"
|
|
4765
4765
|
})), Ks$2 || (Ks$2 = /* @__PURE__ */ t__default.createElement("circle", {
|
|
4766
4766
|
cx: "7",
|
|
@@ -5027,7 +5027,7 @@ const Bh1 = /* @__PURE__ */ t__default.forwardRef(function({
|
|
|
5027
5027
|
})), gf$2 || (gf$2 = /* @__PURE__ */ t__default.createElement("path", {
|
|
5028
5028
|
d: "M27 11H29V13H27z",
|
|
5029
5029
|
transform: "rotate(180 28 12)"
|
|
5030
|
-
})), Mf$
|
|
5030
|
+
})), Mf$1 || (Mf$1 = /* @__PURE__ */ t__default.createElement("path", {
|
|
5031
5031
|
d: "M27 7H29V9H27z",
|
|
5032
5032
|
transform: "rotate(180 28 8)"
|
|
5033
5033
|
})), Ef$2 || (Ef$2 = /* @__PURE__ */ t__default.createElement("path", {
|
|
@@ -5140,7 +5140,7 @@ const Fh1 = /* @__PURE__ */ t__default.forwardRef(function({
|
|
|
5140
5140
|
})), Uf$1 || (Uf$1 = /* @__PURE__ */ t__default.createElement("path", {
|
|
5141
5141
|
d: "M27 11H29V13H27z",
|
|
5142
5142
|
transform: "rotate(-90 28 12)"
|
|
5143
|
-
})), qf$
|
|
5143
|
+
})), qf$2 || (qf$2 = /* @__PURE__ */ t__default.createElement("path", {
|
|
5144
5144
|
d: "M7 3H9V5H7z",
|
|
5145
5145
|
transform: "rotate(-90 8 4)"
|
|
5146
5146
|
})), Kf$2 || (Kf$2 = /* @__PURE__ */ t__default.createElement("path", {
|
|
@@ -6152,7 +6152,7 @@ const Rd1 = /* @__PURE__ */ t__default.forwardRef(function({
|
|
|
6152
6152
|
})), n);
|
|
6153
6153
|
});
|
|
6154
6154
|
process.env.NODE_ENV !== "production" && (Rd1.propTypes = s);
|
|
6155
|
-
var Bh$2, Ph$2, Fh$2, Wh$2, jh$2, Uh$2, qh$2, Kh$2, Gh$2, Yh$2, Jh$2, Xh$2, Qh$2, ed$2, td$2, nd$1, cd$1, rd$2, ad$1, od$1, ld$2, id$1, sd$2, fd$1, pd$1, hd$1, dd$2, ud$1, md$1, wd$1, vd$1, gd$1, Md$2, Ed$1, Vd$1, Hd$1, Ld$2, Cd$2, xd$2, zd$2, bd$1, yd$1, _d$2, Nd$2, Ad$2, $d$2, Td$2, Dd$2, Sd$2, Od$2, Rd$2, kd$2, Zd$2, Id$2, Bd$2, Pd$2, Fd$2, Wd$2, jd$2, Ud$2, qd$2, Kd$2, Gd$2, Yd$2, Jd$2, Xd$2, Qd$2, eu$2, tu$2, nu$2, cu$2, ru$2, au$2, ou$2, lu$2, iu$2, su$2, fu$2, pu$2, hu$2, du$2, uu$2, mu$2, wu$2, vu$2, gu$2, Mu$2, Eu$2, Vu$2, Hu$2, Lu$2, Cu$2, xu$2, zu$2, bu$2, yu$2, _u$2, Nu$2, Au$2, $u$2, Tu$2, Du$2, Su$2, Ou$2, Ru$2, ku$2, Zu$1, Iu$2, Bu$2, Pu$2, Fu$2, Wu$2, ju$2, Uu$2, qu$2, Ku$2, Gu$2, Yu$2, Ju$2, Xu$2, Qu$2, em$2, tm$2, nm$2, cm$2, rm$2, am$2, om$2, lm$2, im$2, sm$2, fm$2, pm$2, hm$2, dm$2, um$2, mm$1, wm$1, vm$1, gm$1, Mm$1, Em$2, Vm$2, Hm$1, Lm$2, Cm$2, xm$2, zm$1, bm$2, ym$1, _m$1, Nm$2, Am$2, $m$2, Tm$2, Dm$2, Sm$2, Om$2, Rm$2, km$2, Zm$1, Im$2, Bm$1, Pm$2, Fm$1, Wm$1, jm$1, Um$1, qm$1, Km$1, Gm$1, Ym$1, Jm$1, Xm$1, Qm$1, ew$1, tw$2, nw$2, cw$2, rw$1, aw$2, ow$1, lw$1, iw$2, sw$1, fw$1, pw$1, hw$1, dw$1, uw$1, mw$1, ww$1, vw$1, gw$1, Mw$
|
|
6155
|
+
var Bh$2, Ph$2, Fh$2, Wh$2, jh$2, Uh$2, qh$2, Kh$2, Gh$2, Yh$2, Jh$2, Xh$2, Qh$2, ed$2, td$2, nd$1, cd$1, rd$2, ad$1, od$1, ld$2, id$1, sd$2, fd$1, pd$1, hd$1, dd$2, ud$1, md$1, wd$1, vd$1, gd$1, Md$2, Ed$1, Vd$1, Hd$1, Ld$2, Cd$2, xd$2, zd$2, bd$1, yd$1, _d$2, Nd$2, Ad$2, $d$2, Td$2, Dd$2, Sd$2, Od$2, Rd$2, kd$2, Zd$2, Id$2, Bd$2, Pd$2, Fd$2, Wd$2, jd$2, Ud$2, qd$2, Kd$2, Gd$2, Yd$2, Jd$2, Xd$2, Qd$2, eu$2, tu$2, nu$2, cu$2, ru$2, au$2, ou$2, lu$2, iu$2, su$2, fu$2, pu$2, hu$2, du$2, uu$2, mu$2, wu$2, vu$2, gu$2, Mu$2, Eu$2, Vu$2, Hu$2, Lu$2, Cu$2, xu$2, zu$2, bu$2, yu$2, _u$2, Nu$2, Au$2, $u$2, Tu$2, Du$2, Su$2, Ou$2, Ru$2, ku$2, Zu$1, Iu$2, Bu$2, Pu$2, Fu$2, Wu$2, ju$2, Uu$2, qu$2, Ku$2, Gu$2, Yu$2, Ju$2, Xu$2, Qu$2, em$2, tm$2, nm$2, cm$2, rm$2, am$2, om$2, lm$2, im$2, sm$2, fm$2, pm$2, hm$2, dm$2, um$2, mm$1, wm$1, vm$1, gm$1, Mm$1, Em$2, Vm$2, Hm$1, Lm$2, Cm$2, xm$2, zm$1, bm$2, ym$1, _m$1, Nm$2, Am$2, $m$2, Tm$2, Dm$2, Sm$2, Om$2, Rm$2, km$2, Zm$1, Im$2, Bm$1, Pm$2, Fm$1, Wm$1, jm$1, Um$1, qm$1, Km$1, Gm$1, Ym$1, Jm$1, Xm$1, Qm$1, ew$1, tw$2, nw$2, cw$2, rw$1, aw$2, ow$1, lw$1, iw$2, sw$1, fw$1, pw$1, hw$1, dw$1, uw$1, mw$1, ww$1, vw$1, gw$1, Mw$1, Ew$2, Vw$2, Hw$1, Lw$1, Cw$2, xw$2, zw$1, bw$1, yw$1, _w$1, Nw$1, Aw$1, $w$1, Tw$1, Dw$2, Sw$1, Ow$2, Rw$2, kw$1, Zw$1, Iw$2, Bw$2, Pw$1, Fw$1, Ww$1, jw$2, Uw$2, qw$2, Kw$1, Gw$1, Yw$1, Jw$1, Xw$2, Qw$2, ev$1, tv$2, nv$1, cv$1, rv$1, av$1, ov$1, lv$1, iv$1, sv$1, fv$1, pv$1, hv$1, dv$1, uv$1, mv$1, wv$1, vv$1, gv$1, Mv$1, Ev$1, Vv$1, Hv$1, Lv$1, Cv$1, xv$1;
|
|
6156
6156
|
const kd1 = /* @__PURE__ */ t__default.forwardRef(function({
|
|
6157
6157
|
children: n,
|
|
6158
6158
|
size: e = 16,
|
|
@@ -8275,7 +8275,7 @@ const bm1 = /* @__PURE__ */ t__default.forwardRef(function({
|
|
|
8275
8275
|
d: "M18,28V26H16v2H4V2H2V28a2,2,0,0,0,2,2H30V28Z"
|
|
8276
8276
|
})), gw$1 || (gw$1 = /* @__PURE__ */ t__default.createElement("path", {
|
|
8277
8277
|
d: "M26.0532,19.6787A3.44,3.44,0,0,1,23,22c-2.17,0-3.3115-3.333-4.52-6.8623-.3557-1.0386-.7239-2.1094-1.1382-3.1377H18V10H16.4221C15.2124,7.7148,13.5811,6,11,6,7.3218,6,6.1016,9.5332,6.0513,9.6836l1.8955.6377A3.44,3.44,0,0,1,11,8c2.92,0,4.2764,3.958,5.5874,7.7861.2544.7422.5105,1.4893.7813,2.2139H16v2h2.2019c1.0828,2.2886,2.4959,4,4.7981,4,3.6782,0,4.8984-3.5332,4.9487-3.6836Z"
|
|
8278
|
-
})), Mw$
|
|
8278
|
+
})), Mw$1 || (Mw$1 = /* @__PURE__ */ t__default.createElement("path", {
|
|
8279
8279
|
d: "M16 6H18V8H16z",
|
|
8280
8280
|
transform: "rotate(-90 17 7)"
|
|
8281
8281
|
})), Ew$2 || (Ew$2 = /* @__PURE__ */ t__default.createElement("path", {
|
|
@@ -8529,7 +8529,7 @@ const km1 = /* @__PURE__ */ t__default.forwardRef(function({
|
|
|
8529
8529
|
d: "M16,30A14.0158,14.0158,0,0,1,2,16H4A12,12,0,1,0,16,4V2a14,14,0,0,1,0,28Z"
|
|
8530
8530
|
})), Uw$2 || (Uw$2 = /* @__PURE__ */ t__default.createElement("path", {
|
|
8531
8531
|
d: "M16,26A10.0115,10.0115,0,0,1,6,16H8a8,8,0,1,0,8-8V6a10,10,0,0,1,0,20Z"
|
|
8532
|
-
})), qw$
|
|
8532
|
+
})), qw$2 || (qw$2 = /* @__PURE__ */ t__default.createElement("path", {
|
|
8533
8533
|
d: "M16,22a6.0069,6.0069,0,0,1-6-6h2a4,4,0,1,0,4-4V10a6,6,0,0,1,0,12Z"
|
|
8534
8534
|
})), n);
|
|
8535
8535
|
});
|
|
@@ -71525,7 +71525,7 @@ const Ui$1 = (n, e, r, { allOwnKeys: a } = {}) => ($t$1(
|
|
|
71525
71525
|
});
|
|
71526
71526
|
},
|
|
71527
71527
|
{ allOwnKeys: a }
|
|
71528
|
-
), n),
|
|
71528
|
+
), n), Mi$1 = (n) => (n.charCodeAt(0) === 65279 && (n = n.slice(1)), n), qi$1 = (n, e, r, a) => {
|
|
71529
71529
|
n.prototype = Object.create(e.prototype, a), Object.defineProperty(n.prototype, "constructor", {
|
|
71530
71530
|
__proto__: null,
|
|
71531
71531
|
value: n,
|
|
@@ -71666,8 +71666,8 @@ const ec$1 = (n) => {
|
|
|
71666
71666
|
merge: On$1,
|
|
71667
71667
|
extend: Ui$1,
|
|
71668
71668
|
trim: xi$1,
|
|
71669
|
-
stripBOM:
|
|
71670
|
-
inherits:
|
|
71669
|
+
stripBOM: Mi$1,
|
|
71670
|
+
inherits: qi$1,
|
|
71671
71671
|
toFlatObject: Fi$1,
|
|
71672
71672
|
kindOf: kr$1,
|
|
71673
71673
|
kindOfTest: Ne,
|
|
@@ -72486,15 +72486,15 @@ const Rr$1 = (n, e, r = 3) => {
|
|
|
72486
72486
|
}
|
|
72487
72487
|
}
|
|
72488
72488
|
);
|
|
72489
|
-
function
|
|
72489
|
+
function Mc$1(n) {
|
|
72490
72490
|
return typeof n != "string" ? !1 : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(n);
|
|
72491
72491
|
}
|
|
72492
|
-
function
|
|
72492
|
+
function qc$1(n, e) {
|
|
72493
72493
|
return e ? n.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : n;
|
|
72494
72494
|
}
|
|
72495
72495
|
function _a$1(n, e, r) {
|
|
72496
|
-
let a = !
|
|
72497
|
-
return n && (a || r === !1) ?
|
|
72496
|
+
let a = !Mc$1(e);
|
|
72497
|
+
return n && (a || r === !1) ? qc$1(n, e) : e;
|
|
72498
72498
|
}
|
|
72499
72499
|
const cs$1 = (n) => n instanceof we ? { ...n } : n;
|
|
72500
72500
|
function Ke$1(n, e) {
|
|
@@ -72797,7 +72797,7 @@ function Wc$1(n) {
|
|
|
72797
72797
|
}
|
|
72798
72798
|
return l;
|
|
72799
72799
|
}
|
|
72800
|
-
const
|
|
72800
|
+
const Mn$1 = "1.16.0", ls$1 = 64 * 1024, { isFunction: Dt$1 } = A, ds$1 = (n, ...e) => {
|
|
72801
72801
|
try {
|
|
72802
72802
|
return !!n(...e);
|
|
72803
72803
|
} catch {
|
|
@@ -72924,7 +72924,7 @@ const qn$1 = "1.16.0", ls$1 = 64 * 1024, { isFunction: Dt$1 } = A, ds$1 = (n, ..
|
|
|
72924
72924
|
const $ae = n1.getContentType();
|
|
72925
72925
|
$ae && /^multipart\/form-data/i.test($ae) && !/boundary=/i.test($ae) && n1.delete("content-type");
|
|
72926
72926
|
}
|
|
72927
|
-
n1.set("User-Agent", "axios/" +
|
|
72927
|
+
n1.set("User-Agent", "axios/" + Mn$1, !1);
|
|
72928
72928
|
const F = {
|
|
72929
72929
|
...Lle,
|
|
72930
72930
|
signal: a5e,
|
|
@@ -73027,14 +73027,14 @@ const qn$1 = "1.16.0", ls$1 = 64 * 1024, { isFunction: Dt$1 } = A, ds$1 = (n, ..
|
|
|
73027
73027
|
return g;
|
|
73028
73028
|
};
|
|
73029
73029
|
Sa$1();
|
|
73030
|
-
const
|
|
73030
|
+
const qn$1 = {
|
|
73031
73031
|
http: yc$1,
|
|
73032
73032
|
xhr: Hc$1,
|
|
73033
73033
|
fetch: {
|
|
73034
73034
|
get: Sa$1
|
|
73035
73035
|
}
|
|
73036
73036
|
};
|
|
73037
|
-
A.forEach(
|
|
73037
|
+
A.forEach(qn$1, (n, e) => {
|
|
73038
73038
|
if (n) {
|
|
73039
73039
|
try {
|
|
73040
73040
|
Object.defineProperty(n, "name", { __proto__: null, value: e });
|
|
@@ -73052,7 +73052,7 @@ function Zc$1(n, e) {
|
|
|
73052
73052
|
for (let d = 0; d < r; d++) {
|
|
73053
73053
|
a = n[d];
|
|
73054
73054
|
let p;
|
|
73055
|
-
if (l = a, !Qc$1(a) && (l =
|
|
73055
|
+
if (l = a, !Qc$1(a) && (l = qn$1[(p = String(a)).toLowerCase()], l === void 0))
|
|
73056
73056
|
throw new B(`Unknown adapter '${p}'`);
|
|
73057
73057
|
if (l && (A.isFunction(l) || (l = l.get(e))))
|
|
73058
73058
|
break;
|
|
@@ -73082,7 +73082,7 @@ const Ra$1 = {
|
|
|
73082
73082
|
* Exposes all known adapters
|
|
73083
73083
|
* @type {Object<string, Function|Object>}
|
|
73084
73084
|
*/
|
|
73085
|
-
adapters:
|
|
73085
|
+
adapters: qn$1
|
|
73086
73086
|
};
|
|
73087
73087
|
function tn$1(n) {
|
|
73088
73088
|
if (n.cancelToken && n.cancelToken.throwIfRequested(), n.signal && n.signal.aborted)
|
|
@@ -73117,16 +73117,16 @@ function ps$1(n) {
|
|
|
73117
73117
|
}
|
|
73118
73118
|
);
|
|
73119
73119
|
}
|
|
73120
|
-
const
|
|
73120
|
+
const Mr$1 = {};
|
|
73121
73121
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((n, e) => {
|
|
73122
|
-
|
|
73122
|
+
Mr$1[n] = function(r) {
|
|
73123
73123
|
return typeof r === n || "a" + (e < 1 ? "n " : " ") + n;
|
|
73124
73124
|
};
|
|
73125
73125
|
});
|
|
73126
73126
|
const hs$1 = {};
|
|
73127
|
-
|
|
73127
|
+
Mr$1.transitional = function(n, e, r) {
|
|
73128
73128
|
function a(l, f) {
|
|
73129
|
-
return "[Axios v" +
|
|
73129
|
+
return "[Axios v" + Mn$1 + "] Transitional option '" + l + "'" + f + (r ? ". " + r : "");
|
|
73130
73130
|
}
|
|
73131
73131
|
return (l, f, d) => {
|
|
73132
73132
|
if (n === !1)
|
|
@@ -73142,7 +73142,7 @@ qr$1.transitional = function(n, e, r) {
|
|
|
73142
73142
|
)), n ? n(l, f, d) : !0;
|
|
73143
73143
|
};
|
|
73144
73144
|
};
|
|
73145
|
-
|
|
73145
|
+
Mr$1.spelling = function(n) {
|
|
73146
73146
|
return (e, r) => (console.warn(`${r} is likely a misspelling of ${n}`), !0);
|
|
73147
73147
|
};
|
|
73148
73148
|
function eu$1(n, e, r) {
|
|
@@ -73167,7 +73167,7 @@ function eu$1(n, e, r) {
|
|
|
73167
73167
|
}
|
|
73168
73168
|
const _r$1 = {
|
|
73169
73169
|
assertOptions: eu$1,
|
|
73170
|
-
validators:
|
|
73170
|
+
validators: Mr$1
|
|
73171
73171
|
}, Re = _r$1.validators;
|
|
73172
73172
|
let Ge = class {
|
|
73173
73173
|
constructor(n) {
|
|
@@ -73487,7 +73487,7 @@ ue.Axios = Ge;
|
|
|
73487
73487
|
ue.CanceledError = Nt$1;
|
|
73488
73488
|
ue.CancelToken = tu$1;
|
|
73489
73489
|
ue.isCancel = va$1;
|
|
73490
|
-
ue.VERSION =
|
|
73490
|
+
ue.VERSION = Mn$1;
|
|
73491
73491
|
ue.toFormData = Ur$1;
|
|
73492
73492
|
ue.AxiosError = B;
|
|
73493
73493
|
ue.Cancel = ue.CanceledError;
|
|
@@ -73693,9 +73693,9 @@ const Pn$1 = (n) => {
|
|
|
73693
73693
|
return e;
|
|
73694
73694
|
}
|
|
73695
73695
|
return n;
|
|
73696
|
-
}, yu$1 = (n) => n.includes("/openmrs/ws"), wu$1 = (n) => n.url ?? n.baseURL ?? "",
|
|
73697
|
-
|
|
73698
|
-
|
|
73696
|
+
}, yu$1 = (n) => n.includes("/openmrs/ws"), wu$1 = (n) => n.url ?? n.baseURL ?? "", qe$1 = ue.create();
|
|
73697
|
+
qe$1.defaults.headers.common["Content-Type"] = "application/json";
|
|
73698
|
+
qe$1.interceptors.request.use(
|
|
73699
73699
|
function(n) {
|
|
73700
73700
|
return n;
|
|
73701
73701
|
},
|
|
@@ -73704,7 +73704,7 @@ Me.interceptors.request.use(
|
|
|
73704
73704
|
return Promise.reject(`${e}: ${r}`);
|
|
73705
73705
|
}
|
|
73706
73706
|
);
|
|
73707
|
-
|
|
73707
|
+
qe$1.interceptors.response.use(
|
|
73708
73708
|
function(n) {
|
|
73709
73709
|
try {
|
|
73710
73710
|
const e = wu$1(n.config);
|
|
@@ -73721,7 +73721,7 @@ Me.interceptors.response.use(
|
|
|
73721
73721
|
return r.startsWith("ERROR_") || /^[A-Z_]+$/.test(r) ? Promise.reject(new Error(r)) : Promise.reject(`${e}: ${r}`);
|
|
73722
73722
|
}
|
|
73723
73723
|
);
|
|
73724
|
-
const V = async (n) => (await
|
|
73724
|
+
const V = async (n) => (await qe$1.get(n)).data, De = async (n, e) => (await qe$1.post(n, e)).data, Y = (n) => typeof n == "string", pt$1 = () => {
|
|
73725
73725
|
let n, e;
|
|
73726
73726
|
const r = new Promise((a, l) => {
|
|
73727
73727
|
n = a, e = l;
|
|
@@ -73888,7 +73888,7 @@ let Ar$1 = class Y6t {
|
|
|
73888
73888
|
}
|
|
73889
73889
|
};
|
|
73890
73890
|
var Ie$1 = new Ar$1();
|
|
73891
|
-
let
|
|
73891
|
+
let qr$1 = class {
|
|
73892
73892
|
constructor() {
|
|
73893
73893
|
this.observers = {};
|
|
73894
73894
|
}
|
|
@@ -73921,7 +73921,7 @@ let Mr$1 = class {
|
|
|
73921
73921
|
d.apply(d, [e, ...a]);
|
|
73922
73922
|
});
|
|
73923
73923
|
}
|
|
73924
|
-
}, Es$1 = class extends
|
|
73924
|
+
}, Es$1 = class extends qr$1 {
|
|
73925
73925
|
constructor(e) {
|
|
73926
73926
|
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
73927
73927
|
ns: ["translation"],
|
|
@@ -74006,7 +74006,7 @@ var Pa$1 = {
|
|
|
74006
74006
|
}
|
|
74007
74007
|
};
|
|
74008
74008
|
const _s$1 = {}, bs$1 = (n) => !Y(n) && typeof n != "boolean" && typeof n != "number";
|
|
74009
|
-
let Nr$1 = class Eut extends
|
|
74009
|
+
let Nr$1 = class Eut extends qr$1 {
|
|
74010
74010
|
constructor(e) {
|
|
74011
74011
|
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
74012
74012
|
super(), vu$1(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = r, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = Ie$1.create("translator");
|
|
@@ -74622,7 +74622,7 @@ let Cu$1 = class {
|
|
|
74622
74622
|
const Lu$1 = (n, e) => {
|
|
74623
74623
|
n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
|
|
74624
74624
|
};
|
|
74625
|
-
let ku$1 = class extends
|
|
74625
|
+
let ku$1 = class extends qr$1 {
|
|
74626
74626
|
constructor(e, r, a) {
|
|
74627
74627
|
let l = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
74628
74628
|
super(), this.backend = e, this.store = r, this.services = a, this.languageUtils = a.languageUtils, this.options = l, this.logger = Ie$1.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = l.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = l.maxRetries >= 0 ? l.maxRetries : 5, this.retryTimeout = l.retryTimeout >= 1 ? l.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(a, l.backend, l);
|
|
@@ -74819,7 +74819,7 @@ const $s$1 = () => ({
|
|
|
74819
74819
|
typeof n[e] == "function" && (n[e] = n[e].bind(n));
|
|
74820
74820
|
});
|
|
74821
74821
|
};
|
|
74822
|
-
class St extends
|
|
74822
|
+
class St extends qr$1 {
|
|
74823
74823
|
constructor() {
|
|
74824
74824
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
|
|
74825
74825
|
if (super(), this.options = As$1(e), this.services = {}, this.logger = Ie$1, this.modules = {
|
|
@@ -75085,10 +75085,10 @@ ie.loadNamespaces;
|
|
|
75085
75085
|
ie.loadLanguages;
|
|
75086
75086
|
const {
|
|
75087
75087
|
slice: Uu$1,
|
|
75088
|
-
forEach:
|
|
75088
|
+
forEach: Mu$1
|
|
75089
75089
|
} = [];
|
|
75090
|
-
function
|
|
75091
|
-
return
|
|
75090
|
+
function qu$1(n) {
|
|
75091
|
+
return Mu$1.call(Uu$1.call(arguments, 1), (e) => {
|
|
75092
75092
|
if (e)
|
|
75093
75093
|
for (const r in e)
|
|
75094
75094
|
n[r] === void 0 && (n[r] = e[r]);
|
|
@@ -75369,7 +75369,7 @@ let Ca$1 = class {
|
|
|
75369
75369
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
75370
75370
|
languageUtils: {}
|
|
75371
75371
|
}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
75372
|
-
this.services = e, this.options =
|
|
75372
|
+
this.services = e, this.options = qu$1(r, this.options || {}, Xu$1()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (l) => l.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = a, this.addDetector(Vu$1), this.addDetector(Bu$1), this.addDetector(zu$1), this.addDetector(Gu$1), this.addDetector(Ku$1), this.addDetector(Yu$1), this.addDetector(Wu$1), this.addDetector(Ju$1), this.addDetector(Hu$1);
|
|
75373
75373
|
}
|
|
75374
75374
|
addDetector(e) {
|
|
75375
75375
|
return this.detectors[e.name] = e, this;
|
|
@@ -75462,7 +75462,7 @@ const Qu$1 = process.env.PUBLIC_URL ?? "/", ce = "/openmrs/ws/fhir2/R4", W = "/o
|
|
|
75462
75462
|
"Crypto API (crypto.randomUUID or crypto.getRandomValues) is not available. UUID generation requires cryptographically secure random number generation."
|
|
75463
75463
|
);
|
|
75464
75464
|
};
|
|
75465
|
-
function
|
|
75465
|
+
function Ma$1(n) {
|
|
75466
75466
|
const e = document.cookie.split(";");
|
|
75467
75467
|
for (const r of e) {
|
|
75468
75468
|
const [a, l] = r.trim().split("=");
|
|
@@ -75479,8 +75479,8 @@ function kg$1(n, e, r, a, l) {
|
|
|
75479
75479
|
});
|
|
75480
75480
|
return n ? [f(l.loading)] : e ? [f(l.error)] : r.length ? r : [f(l.empty)];
|
|
75481
75481
|
}
|
|
75482
|
-
const
|
|
75483
|
-
const n =
|
|
75482
|
+
const qa$1 = "bahmni.user.location", jn$1 = () => {
|
|
75483
|
+
const n = Ma$1(qa$1) ?? null;
|
|
75484
75484
|
if (!n)
|
|
75485
75485
|
throw new Error(ie.t("ERROR_FETCHING_USER_LOCATION_DETAILS"));
|
|
75486
75486
|
const e = JSON.parse(
|
|
@@ -76011,12 +76011,12 @@ const Pd$1 = /^(\d+)(th|st|nd|rd)?/i, Id$1 = /\d+/i, Dd$1 = {
|
|
|
76011
76011
|
/^n/i,
|
|
76012
76012
|
/^d/i
|
|
76013
76013
|
]
|
|
76014
|
-
},
|
|
76014
|
+
}, Md$1 = {
|
|
76015
76015
|
narrow: /^[smtwf]/i,
|
|
76016
76016
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
76017
76017
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
76018
76018
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
76019
|
-
},
|
|
76019
|
+
}, qd$1 = {
|
|
76020
76020
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
76021
76021
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
76022
76022
|
}, Fd$1 = {
|
|
@@ -76059,9 +76059,9 @@ const Pd$1 = /^(\d+)(th|st|nd|rd)?/i, Id$1 = /\d+/i, Dd$1 = {
|
|
|
76059
76059
|
defaultParseWidth: "any"
|
|
76060
76060
|
}),
|
|
76061
76061
|
day: mt$1({
|
|
76062
|
-
matchPatterns:
|
|
76062
|
+
matchPatterns: Md$1,
|
|
76063
76063
|
defaultMatchWidth: "wide",
|
|
76064
|
-
parsePatterns:
|
|
76064
|
+
parsePatterns: qd$1,
|
|
76065
76065
|
defaultParseWidth: "any"
|
|
76066
76066
|
}),
|
|
76067
76067
|
dayPeriod: mt$1({
|
|
@@ -76171,7 +76171,7 @@ const Ue = {
|
|
|
76171
76171
|
afternoon: "afternoon",
|
|
76172
76172
|
evening: "evening",
|
|
76173
76173
|
night: "night"
|
|
76174
|
-
},
|
|
76174
|
+
}, qs$1 = {
|
|
76175
76175
|
// Era
|
|
76176
76176
|
G: function(n, e, r) {
|
|
76177
76177
|
const a = n.getFullYear() > 0 ? 1 : 0;
|
|
@@ -76818,7 +76818,7 @@ function uf$1(n, e, r) {
|
|
|
76818
76818
|
const v = w[0];
|
|
76819
76819
|
if (v === "'")
|
|
76820
76820
|
return { isToken: !1, value: lf$1(w) };
|
|
76821
|
-
if (
|
|
76821
|
+
if (qs$1[v])
|
|
76822
76822
|
return { isToken: !0, value: w };
|
|
76823
76823
|
if (v.match(cf$1))
|
|
76824
76824
|
throw new RangeError(
|
|
@@ -76836,7 +76836,7 @@ function uf$1(n, e, r) {
|
|
|
76836
76836
|
if (!w.isToken) return w.value;
|
|
76837
76837
|
const v = w.value;
|
|
76838
76838
|
(ef$1(v) || Zd$1(v)) && tf$1(v, e, String(n));
|
|
76839
|
-
const E =
|
|
76839
|
+
const E = qs$1[v[0]];
|
|
76840
76840
|
return E(p, v, l.localize, g);
|
|
76841
76841
|
}).join("");
|
|
76842
76842
|
}
|
|
@@ -76968,7 +76968,7 @@ function $f$1(n, e, r) {
|
|
|
76968
76968
|
function Nf$1(n, e, r) {
|
|
76969
76969
|
return Hn$1(n, -e, r);
|
|
76970
76970
|
}
|
|
76971
|
-
const Ja$1 = "dd/MM/yyyy",
|
|
76971
|
+
const Ja$1 = "dd/MM/yyyy", qf$1 = "default_dateFormat", Ff$1 = "h:mm a", Oe = {
|
|
76972
76972
|
PARSE_ERROR: "DATE_ERROR_PARSE",
|
|
76973
76973
|
FORMAT_ERROR: "DATE_ERROR_FORMAT",
|
|
76974
76974
|
EMPTY_OR_INVALID: "DATE_ERROR_EMPTY_OR_INVALID",
|
|
@@ -77037,7 +77037,7 @@ function Ty$1(n, e, r = !1, a) {
|
|
|
77037
77037
|
const l = e ?? ((d) => d);
|
|
77038
77038
|
let f;
|
|
77039
77039
|
try {
|
|
77040
|
-
f = a ?? localStorage.getItem(
|
|
77040
|
+
f = a ?? localStorage.getItem(qf$1) ?? Vf$1();
|
|
77041
77041
|
} catch {
|
|
77042
77042
|
f = Ja$1;
|
|
77043
77043
|
}
|
|
@@ -77092,7 +77092,7 @@ const Ny$1 = () => {
|
|
|
77092
77092
|
}), un$1 = (n, e) => {
|
|
77093
77093
|
const r = n.expansion?.contains ?? [];
|
|
77094
77094
|
return rp$1(r).map((a) => np$1(a, e));
|
|
77095
|
-
},
|
|
77095
|
+
}, My$1 = async (n, e, r) => {
|
|
77096
77096
|
const a = n ?? tt$1.MEDICATION.code, l = e ?? tt$1.FOOD.code, f = r ?? tt$1.ENVIRONMENT.code, [d, p, m] = await Promise.all([
|
|
77097
77097
|
br$1(a),
|
|
77098
77098
|
br$1(l),
|
|
@@ -77112,7 +77112,7 @@ const Ny$1 = () => {
|
|
|
77112
77112
|
tt$1.ENVIRONMENT.display
|
|
77113
77113
|
)
|
|
77114
77114
|
];
|
|
77115
|
-
},
|
|
77115
|
+
}, qy$1 = async (n) => {
|
|
77116
77116
|
const e = n ?? tp$1.code;
|
|
77117
77117
|
return (await br$1(e)).compose?.include[0]?.concept ?? [];
|
|
77118
77118
|
};
|
|
@@ -79383,17 +79383,17 @@ function Wn$1() {
|
|
|
79383
79383
|
}
|
|
79384
79384
|
return Ut.default = n, Ut;
|
|
79385
79385
|
}
|
|
79386
|
-
var
|
|
79386
|
+
var Mt$1 = {}, lo$1;
|
|
79387
79387
|
function Kr$1() {
|
|
79388
|
-
if (lo$1) return
|
|
79389
|
-
lo$1 = 1, Object.defineProperty(
|
|
79388
|
+
if (lo$1) return Mt$1;
|
|
79389
|
+
lo$1 = 1, Object.defineProperty(Mt$1, "__esModule", { value: !0 });
|
|
79390
79390
|
const n = zr$1();
|
|
79391
79391
|
class e extends Error {
|
|
79392
79392
|
constructor(a, l, f, d) {
|
|
79393
79393
|
super(d || `can't resolve reference ${f} from id ${l}`), this.missingRef = (0, n.resolveUrl)(a, l, f), this.missingSchema = (0, n.normalizeId)((0, n.getFullPath)(a, this.missingRef));
|
|
79394
79394
|
}
|
|
79395
79395
|
}
|
|
79396
|
-
return
|
|
79396
|
+
return Mt$1.default = e, Mt$1;
|
|
79397
79397
|
}
|
|
79398
79398
|
var be$1 = {}, fo$1;
|
|
79399
79399
|
function Jn$1() {
|
|
@@ -79561,7 +79561,7 @@ const ah$1 = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/ref
|
|
|
79561
79561
|
properties: lh$1,
|
|
79562
79562
|
additionalProperties: dh$1
|
|
79563
79563
|
};
|
|
79564
|
-
var
|
|
79564
|
+
var qt$1 = {}, wt = { exports: {} }, wn$1, po$1;
|
|
79565
79565
|
function ph$1() {
|
|
79566
79566
|
return po$1 || (po$1 = 1, wn$1 = {
|
|
79567
79567
|
HEX: {
|
|
@@ -79918,10 +79918,10 @@ function gh$1() {
|
|
|
79918
79918
|
}
|
|
79919
79919
|
var yo$1;
|
|
79920
79920
|
function yh$1() {
|
|
79921
|
-
if (yo$1) return
|
|
79922
|
-
yo$1 = 1, Object.defineProperty(
|
|
79921
|
+
if (yo$1) return qt$1;
|
|
79922
|
+
yo$1 = 1, Object.defineProperty(qt$1, "__esModule", { value: !0 });
|
|
79923
79923
|
const n = gh$1();
|
|
79924
|
-
return n.code = 'require("ajv/dist/runtime/uri").default',
|
|
79924
|
+
return n.code = 'require("ajv/dist/runtime/uri").default', qt$1.default = n, qt$1;
|
|
79925
79925
|
}
|
|
79926
79926
|
var wo$1;
|
|
79927
79927
|
function wh$1() {
|
|
@@ -80378,10 +80378,10 @@ function vh$1() {
|
|
|
80378
80378
|
};
|
|
80379
80379
|
return Vt$1.default = n, Vt$1;
|
|
80380
80380
|
}
|
|
80381
|
-
var
|
|
80381
|
+
var Me = {}, Eo$1;
|
|
80382
80382
|
function Eh$1() {
|
|
80383
|
-
if (Eo$1) return
|
|
80384
|
-
Eo$1 = 1, Object.defineProperty(
|
|
80383
|
+
if (Eo$1) return Me;
|
|
80384
|
+
Eo$1 = 1, Object.defineProperty(Me, "__esModule", { value: !0 }), Me.callRef = Me.getValidate = void 0;
|
|
80385
80385
|
const n = Kr$1(), e = Pe$1(), r = ee(), a = Fe$1(), l = Jn$1(), f = ne(), d = {
|
|
80386
80386
|
keyword: "$ref",
|
|
80387
80387
|
schemaType: "string",
|
|
@@ -80421,7 +80421,7 @@ function Eh$1() {
|
|
|
80421
80421
|
const { gen: v } = g;
|
|
80422
80422
|
return w.validate ? v.scopeValue("validate", { ref: w.validate }) : (0, r._)`${v.scopeValue("wrapper", { ref: w })}.validate`;
|
|
80423
80423
|
}
|
|
80424
|
-
|
|
80424
|
+
Me.getValidate = p;
|
|
80425
80425
|
function m(g, w, v, E) {
|
|
80426
80426
|
const { gen: b, it: H } = g, { allErrors: y, schemaEnv: C, opts: z } = H, _ = z.passContext ? a.default.this : r.nil;
|
|
80427
80427
|
E ? M() : O();
|
|
@@ -80463,7 +80463,7 @@ function Eh$1() {
|
|
|
80463
80463
|
}
|
|
80464
80464
|
}
|
|
80465
80465
|
}
|
|
80466
|
-
return
|
|
80466
|
+
return Me.callRef = m, Me.default = d, Me;
|
|
80467
80467
|
}
|
|
80468
80468
|
var _o$1;
|
|
80469
80469
|
function _h$1() {
|
|
@@ -80909,10 +80909,10 @@ function Lh$1() {
|
|
|
80909
80909
|
};
|
|
80910
80910
|
return nr$1.default = e, nr$1;
|
|
80911
80911
|
}
|
|
80912
|
-
var sr = {},
|
|
80912
|
+
var sr = {}, Mo$1;
|
|
80913
80913
|
function kh$1() {
|
|
80914
|
-
if (
|
|
80915
|
-
|
|
80914
|
+
if (Mo$1) return sr;
|
|
80915
|
+
Mo$1 = 1, Object.defineProperty(sr, "__esModule", { value: !0 });
|
|
80916
80916
|
const n = ee(), e = ne(), r = Pe$1(), a = oi$1(), l = {
|
|
80917
80917
|
keyword: "items",
|
|
80918
80918
|
type: "array",
|
|
@@ -80929,10 +80929,10 @@ function kh$1() {
|
|
|
80929
80929
|
};
|
|
80930
80930
|
return sr.default = l, sr;
|
|
80931
80931
|
}
|
|
80932
|
-
var or$1 = {},
|
|
80932
|
+
var or$1 = {}, qo$1;
|
|
80933
80933
|
function xh$1() {
|
|
80934
|
-
if (
|
|
80935
|
-
|
|
80934
|
+
if (qo$1) return or$1;
|
|
80935
|
+
qo$1 = 1, Object.defineProperty(or$1, "__esModule", { value: !0 });
|
|
80936
80936
|
const n = ee(), e = ne(), r = {
|
|
80937
80937
|
keyword: "contains",
|
|
80938
80938
|
type: "array",
|
|
@@ -81060,7 +81060,7 @@ function Uh$1() {
|
|
|
81060
81060
|
})(_n$1)), _n$1;
|
|
81061
81061
|
}
|
|
81062
81062
|
var ar$1 = {}, jo$1;
|
|
81063
|
-
function
|
|
81063
|
+
function Mh$1() {
|
|
81064
81064
|
if (jo$1) return ar$1;
|
|
81065
81065
|
jo$1 = 1, Object.defineProperty(ar$1, "__esModule", { value: !0 });
|
|
81066
81066
|
const n = ee(), e = ne(), r = {
|
|
@@ -81163,7 +81163,7 @@ function ii$1() {
|
|
|
81163
81163
|
return ir.default = l, ir;
|
|
81164
81164
|
}
|
|
81165
81165
|
var cr$1 = {}, Bo$1;
|
|
81166
|
-
function
|
|
81166
|
+
function qh$1() {
|
|
81167
81167
|
if (Bo$1) return cr$1;
|
|
81168
81168
|
Bo$1 = 1, Object.defineProperty(cr$1, "__esModule", { value: !0 });
|
|
81169
81169
|
const n = Gr$1(), e = Pe$1(), r = ne(), a = ii$1(), l = {
|
|
@@ -81399,7 +81399,7 @@ var Xo$1;
|
|
|
81399
81399
|
function Kh$1() {
|
|
81400
81400
|
if (Xo$1) return rr$1;
|
|
81401
81401
|
Xo$1 = 1, Object.defineProperty(rr$1, "__esModule", { value: !0 });
|
|
81402
|
-
const n = oi$1(), e = Lh$1(), r = ai$1(), a = kh$1(), l = xh$1(), f = Uh$1(), d =
|
|
81402
|
+
const n = oi$1(), e = Lh$1(), r = ai$1(), a = kh$1(), l = xh$1(), f = Uh$1(), d = Mh$1(), p = ii$1(), m = qh$1(), g = Fh$1(), w = jh$1(), v = Vh$1(), E = Bh$1(), b = Hh$1(), H = zh$1(), y = Gh$1();
|
|
81403
81403
|
function C(z = !1) {
|
|
81404
81404
|
const _ = [
|
|
81405
81405
|
// any
|
|
@@ -81894,7 +81894,7 @@ function li$1(n, e) {
|
|
|
81894
81894
|
};
|
|
81895
81895
|
return a(r.controls);
|
|
81896
81896
|
}
|
|
81897
|
-
function
|
|
81897
|
+
function qw$1(n, e) {
|
|
81898
81898
|
if (!n.controls || n.controls.length === 0)
|
|
81899
81899
|
return [];
|
|
81900
81900
|
const r = [], a = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -164277,7 +164277,7 @@ const D0t = [
|
|
|
164277
164277
|
},
|
|
164278
164278
|
{
|
|
164279
164279
|
type: "patientDocuments",
|
|
164280
|
-
component: lazy$1(() => import("./DocumentsTable-
|
|
164280
|
+
component: lazy$1(() => import("./DocumentsTable-CswucB2R-cyB86bBz.js"))
|
|
164281
164281
|
},
|
|
164282
164282
|
{
|
|
164283
164283
|
type: "flowSheet",
|
|
@@ -164285,7 +164285,7 @@ const D0t = [
|
|
|
164285
164285
|
},
|
|
164286
164286
|
{
|
|
164287
164287
|
type: "forms",
|
|
164288
|
-
component: lazy$1(() => import("./FormsTable-
|
|
164288
|
+
component: lazy$1(() => import("./FormsTable-CVDEyMEn-6yAIFDMZ.js"))
|
|
164289
164289
|
},
|
|
164290
164290
|
{
|
|
164291
164291
|
type: "labOrders",
|
|
@@ -164293,7 +164293,7 @@ const D0t = [
|
|
|
164293
164293
|
},
|
|
164294
164294
|
{
|
|
164295
164295
|
type: "observations",
|
|
164296
|
-
component: lazy$1(() => import("./Observations-
|
|
164296
|
+
component: lazy$1(() => import("./Observations-Q_KSYNBQ-CzthPpOF.js"))
|
|
164297
164297
|
},
|
|
164298
164298
|
{
|
|
164299
164299
|
type: "ordersControl",
|
|
@@ -166198,7 +166198,7 @@ var displayValue = (n, e = !1) => {
|
|
|
166198
166198
|
const e = render(() => {
|
|
166199
166199
|
const r = this, [a] = this.#o, [l] = this.#d, [f] = this.#f, [d] = this.#u, [p] = this.#h, [m] = this.#t;
|
|
166200
166200
|
let g;
|
|
166201
|
-
return this.#s ? g = this.#s : (g = lazy(() => import("./LNWAZHJI-
|
|
166201
|
+
return this.#s ? g = this.#s : (g = lazy(() => import("./LNWAZHJI-BFx4hbP4.js")), this.#s = g), setupStyleSheet(this.#i, this.#l), createComponent(g, mergeProps({
|
|
166202
166202
|
get queryFlavor() {
|
|
166203
166203
|
return r.#n;
|
|
166204
166204
|
},
|
|
@@ -166296,7 +166296,7 @@ var displayValue = (n, e = !1) => {
|
|
|
166296
166296
|
const e = render(() => {
|
|
166297
166297
|
const r = this, [a] = this.#o, [l] = this.#d, [f] = this.#f, [d] = this.#u, [p] = this.#h, [m] = this.#t, [g] = this.#s;
|
|
166298
166298
|
let w;
|
|
166299
|
-
return this.#c ? w = this.#c : (w = lazy(() => import("./MWZ6AO7Z-
|
|
166299
|
+
return this.#c ? w = this.#c : (w = lazy(() => import("./MWZ6AO7Z-CVMY9APb.js")), this.#c = w), setupStyleSheet(this.#i, this.#l), createComponent(w, mergeProps({
|
|
166300
166300
|
get queryFlavor() {
|
|
166301
166301
|
return r.#n;
|
|
166302
166302
|
},
|
|
@@ -168759,7 +168759,7 @@ const useActiveVisit = (n) => {
|
|
|
168759
168759
|
};
|
|
168760
168760
|
async function getLocations() {
|
|
168761
168761
|
try {
|
|
168762
|
-
const n =
|
|
168762
|
+
const n = Ma$1(BAHMNI_USER_LOCATION_COOKIE_NAME);
|
|
168763
168763
|
if (!n)
|
|
168764
168764
|
return [];
|
|
168765
168765
|
const e = decodeURIComponent(n), r = JSON.parse(e);
|
|
@@ -209505,13 +209505,13 @@ const useAllergenSearch = (n = "") => {
|
|
|
209505
209505
|
allergyReactionUuid: M
|
|
209506
209506
|
} = w.consultationPad.allergyConceptMap;
|
|
209507
209507
|
try {
|
|
209508
|
-
const O = await
|
|
209508
|
+
const O = await My$1(
|
|
209509
209509
|
C,
|
|
209510
209510
|
z,
|
|
209511
209511
|
_
|
|
209512
209512
|
);
|
|
209513
209513
|
r(O);
|
|
209514
|
-
const N = await
|
|
209514
|
+
const N = await qy$1(M);
|
|
209515
209515
|
l(N);
|
|
209516
209516
|
} catch (O) {
|
|
209517
209517
|
const N = Or(O);
|
|
@@ -213099,7 +213099,7 @@ function useObservationFormData(n) {
|
|
|
213099
213099
|
r(H);
|
|
213100
213100
|
}, []), g = () => {
|
|
213101
213101
|
r(null);
|
|
213102
|
-
}, w = e && d ?
|
|
213102
|
+
}, w = e && d ? qw$1(e, d) : [];
|
|
213103
213103
|
return {
|
|
213104
213104
|
formData: e,
|
|
213105
213105
|
observations: w,
|
package/dist/index.js
CHANGED