@bahmni/clinical-app 0.0.1-dev.349 → 0.0.1-dev.350
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/{ConsultationPage-3qK8RV6o.js → ConsultationPage-oWnx8161.js} +271 -271
- package/dist/{DocumentsTable-CUERw540-DNwq47jg.js → DocumentsTable-D07TTQvw-BE03gh0S.js} +37 -37
- package/dist/{FormsTable-BiSt9X9y-GfSnOhAP.js → FormsTable-CPV7G3yP-xbYgVNgG.js} +80 -80
- package/dist/{LNWAZHJI-DklJAly_.js → LNWAZHJI-DkYA-mID.js} +2 -2
- package/dist/{MWZ6AO7Z-pJNxlx6T.js → MWZ6AO7Z-DiL24-b5.js} +2 -2
- package/dist/{Observations-DG-AmCpd-BuJ3kLZo.js → Observations-tLsS82qM-B7Dh5NSA.js} +33 -33
- package/dist/{YPM2AS64-CWWMfFV2.js → YPM2AS64-SeqWXm0n.js} +1 -1
- package/dist/{hook-Dfbe9Yfh.js → hook-D1L0XgP4.js} +1 -1
- package/dist/{index-aVz5vm6R.js → index-CErj4Z3U.js} +13390 -13357
- package/dist/{index-BmPRpoe2.js → index-DPTlw-B-.js} +5 -5
- package/dist/{index-DhSka-Il.js → index-RgW2gd5e.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +2 -0
- package/dist/locales/locale_es.json +2 -0
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { H,
|
|
2
|
+
import { H, t as ENCOUNTER_CONCEPTS_URL, w as Br, S as Si, x as BAHMNI_USER_LOCATION_COOKIE_NAME, u as useTranslation, y as My, A as SDt, m as mr, C as kH2, D as IH2, K as TH2, N as gM2, V as rc1, W as AH2, _ as _E, $ as Ri, a0 as aE, a1 as oE, a2 as Ad, a3 as Ti, a4 as dist, a5 as qa, a6 as ve, a7 as Gy, a8 as Nb, a9 as jb, aa as Vb, ab as BH2, ac as KH2, ad as oV2, o as or, b as a3, ae as Hb, af as sH2, ag as VH2, ah as pC2, ai as XH2, aj as JH2, f as Yqt, ak as p_, al as RH2, am as F_, an as vs, ao as g_, ap as cv, aq as qb, ar as HH2, as as zb, at as Kb, au as CLINICAL_V2_CONFIG_BASE_URL, av as Zb, aw as AE, ax as Wr, ay as Jb, az as Db, aA as uv, aB as Og2, aC as y_, aD as Xb, aE as e_, aF as fv, aG as DH2, aH as Sv, aI as Pb, aJ as t_, aK as on$1, aL as qr, aM as wv, aN as Tv, M as M2, aO as z_, aP as E_, aQ as v_, k as kqt, aR as iC2, aS as sC2, aT as K_, aU as G_, aV as STOP_REASON_VALUESET_URL, aW as STOP_REASON_VALUESET_EXPAND_URL, aX as STOP_MEDICATION_URL, aY as CH2, aZ as df, a_ as Xn, a$ as oC2, b0 as Y_, b1 as W_, b2 as FE, b3 as Ab, b4 as qE, b5 as Q_, b6 as sn, b7 as N4, b8 as c3, b9 as rC2, ba as rw, bb as X_, bc as Z_, bd as Rd, be as Yy, bf as L_, bg as P_, bh as Rv, bi as lv, bj as dv, bk as iv, bl as CDSS_SERVER_CONFIG_URL, bm as rKt, bn as UH2, bo as x_, bp as k_, bq as $H2, br as ml1, bs as q_, bt as M_, bu as U_, bv as Zqt, bw as Dqt, bx as VE, by as j_, bz as GH2, bA as eE, bB as BAHMNI_CLINICAL_PATH, bC as EE, bD as B_, bE as qH2, bF as WH2, bG as QE2, bH as GWt, bI as wE, bJ as qqt } from "./index-CErj4Z3U.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import React__default, { createContext, useContext, useState, useCallback, useEffect, useMemo, Children, useRef, useLayoutEffect, forwardRef, isValidElement, cloneElement, useReducer, Component, useImperativeHandle, PureComponent, createRef, useSyncExternalStore, Suspense } from "react";
|
|
5
5
|
import { useQuery, useQueries, useQueryClient } from "@tanstack/react-query";
|
|
6
6
|
import { useNavigate, useSearchParams } from "react-router-dom";
|
|
7
|
-
import { u as useClinicalConfig } from "./hook-
|
|
7
|
+
import { u as useClinicalConfig } from "./hook-D1L0XgP4.js";
|
|
8
8
|
import * as ReactDOM from "react-dom";
|
|
9
9
|
import ReactDOM__default, { createPortal } from "react-dom";
|
|
10
10
|
var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -1962,7 +1962,7 @@ function getRegisteredInputControls() {
|
|
|
1962
1962
|
}
|
|
1963
1963
|
async function getLocations() {
|
|
1964
1964
|
try {
|
|
1965
|
-
const p =
|
|
1965
|
+
const p = Si(BAHMNI_USER_LOCATION_COOKIE_NAME);
|
|
1966
1966
|
if (!p)
|
|
1967
1967
|
return [];
|
|
1968
1968
|
const c = decodeURIComponent(p), a = JSON.parse(c);
|
|
@@ -2042,7 +2042,7 @@ const useLocations = () => {
|
|
|
2042
2042
|
skeletonBody,
|
|
2043
2043
|
skeletonTitle
|
|
2044
2044
|
}, EncounterDetails = () => {
|
|
2045
|
-
const { t: p } = useTranslation(), c =
|
|
2045
|
+
const { t: p } = useTranslation(), c = SDt(), a = mr(), {
|
|
2046
2046
|
activeVisit: s,
|
|
2047
2047
|
loading: f,
|
|
2048
2048
|
error: d
|
|
@@ -2312,12 +2312,12 @@ const ALLERGY_INTOLERANCE_RESOURCE_TYPE = "AllergyIntolerance", ALLERGY_SEVERITY
|
|
|
2312
2312
|
const a = {
|
|
2313
2313
|
coding: p
|
|
2314
2314
|
};
|
|
2315
|
-
return
|
|
2315
|
+
return _E(c) || (a.text = c), a;
|
|
2316
2316
|
}, createCoding = (p, c, a) => {
|
|
2317
2317
|
const s = {
|
|
2318
2318
|
code: p
|
|
2319
2319
|
};
|
|
2320
|
-
return
|
|
2320
|
+
return _E(c) || (s.system = c), _E(a) || (s.display = a), s;
|
|
2321
2321
|
}, createEncounterAllergyResource = (p, c, a, s, f, d, h) => {
|
|
2322
2322
|
const E = {
|
|
2323
2323
|
resourceType: "AllergyIntolerance",
|
|
@@ -2366,8 +2366,8 @@ const ALLERGY_INTOLERANCE_RESOURCE_TYPE = "AllergyIntolerance", ALLERGY_SEVERITY
|
|
|
2366
2366
|
{
|
|
2367
2367
|
coding: [
|
|
2368
2368
|
{
|
|
2369
|
-
system:
|
|
2370
|
-
code:
|
|
2369
|
+
system: aE,
|
|
2370
|
+
code: Ri
|
|
2371
2371
|
}
|
|
2372
2372
|
]
|
|
2373
2373
|
}
|
|
@@ -2376,12 +2376,12 @@ const ALLERGY_INTOLERANCE_RESOURCE_TYPE = "AllergyIntolerance", ALLERGY_SEVERITY
|
|
|
2376
2376
|
h ? createCoding(p, h) : createCoding(p)
|
|
2377
2377
|
]),
|
|
2378
2378
|
clinicalStatus: createCodeableConcept([
|
|
2379
|
-
createCoding("active",
|
|
2379
|
+
createCoding("active", Ad)
|
|
2380
2380
|
]),
|
|
2381
2381
|
verificationStatus: createCodeableConcept([
|
|
2382
2382
|
createCoding(
|
|
2383
2383
|
c,
|
|
2384
|
-
|
|
2384
|
+
oE
|
|
2385
2385
|
)
|
|
2386
2386
|
]),
|
|
2387
2387
|
encounter: s,
|
|
@@ -2394,7 +2394,7 @@ const ALLERGY_INTOLERANCE_RESOURCE_TYPE = "AllergyIntolerance", ALLERGY_SEVERITY
|
|
|
2394
2394
|
{
|
|
2395
2395
|
coding: [
|
|
2396
2396
|
{
|
|
2397
|
-
system:
|
|
2397
|
+
system: aE,
|
|
2398
2398
|
code: Ti
|
|
2399
2399
|
}
|
|
2400
2400
|
]
|
|
@@ -2404,7 +2404,7 @@ const ALLERGY_INTOLERANCE_RESOURCE_TYPE = "AllergyIntolerance", ALLERGY_SEVERITY
|
|
|
2404
2404
|
E ? createCoding(p, E) : createCoding(p)
|
|
2405
2405
|
]),
|
|
2406
2406
|
clinicalStatus: createCodeableConcept([
|
|
2407
|
-
createCoding(h,
|
|
2407
|
+
createCoding(h, Ad)
|
|
2408
2408
|
]),
|
|
2409
2409
|
encounter: a,
|
|
2410
2410
|
recorder: s,
|
|
@@ -67818,7 +67818,7 @@ const mergeRefs = (...p) => (c) => {
|
|
|
67818
67818
|
}), mn = La["aria-disabled"], {
|
|
67819
67819
|
"aria-disabled": Vn,
|
|
67820
67820
|
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
67821
|
-
...
|
|
67821
|
+
...pr
|
|
67822
67822
|
} = La;
|
|
67823
67823
|
return /* @__PURE__ */ React__default.createElement(ListBox.MenuItem, _extends$1({
|
|
67824
67824
|
key: La.id,
|
|
@@ -67826,7 +67826,7 @@ const mergeRefs = (...p) => (c) => {
|
|
|
67826
67826
|
isHighlighted: mt === Pt,
|
|
67827
67827
|
title: _a,
|
|
67828
67828
|
disabled: mn
|
|
67829
|
-
},
|
|
67829
|
+
}, pr), Ga ? /* @__PURE__ */ React__default.createElement(Ga, _extends$1({
|
|
67830
67830
|
key: La.id
|
|
67831
67831
|
}, ot)) : F(ot), bt === ot && /* @__PURE__ */ React__default.createElement(Checkmark, {
|
|
67832
67832
|
className: `${ze}--list-box__menu-item__selected-icon`
|
|
@@ -75126,8 +75126,8 @@ function FlatpickrInstance(p, c) {
|
|
|
75126
75126
|
return void a.config.position(a, ue);
|
|
75127
75127
|
if (a.calendarContainer !== void 0) {
|
|
75128
75128
|
aa("onPreCalendarPosition");
|
|
75129
|
-
var be = ue || a._positionElement, Se = Array.prototype.reduce.call(a.calendarContainer.children, (function(Vn,
|
|
75130
|
-
return Vn +
|
|
75129
|
+
var be = ue || a._positionElement, Se = Array.prototype.reduce.call(a.calendarContainer.children, (function(Vn, pr) {
|
|
75130
|
+
return Vn + pr.offsetHeight;
|
|
75131
75131
|
}), 0), je = a.calendarContainer.offsetWidth, mt = a.config.position.split(" "), bt = mt[0], Kt = mt.length > 1 ? mt[1] : null, $t = be.getBoundingClientRect(), ta = window.innerHeight - $t.bottom, Rt = bt === "above" || bt !== "below" && ta < Se && $t.top > Se, jt = window.pageYOffset + $t.top + (Rt ? -Se - 2 : be.offsetHeight + 2);
|
|
75132
75132
|
if (toggleClass(a.calendarContainer, "arrowTop", !Rt), toggleClass(a.calendarContainer, "arrowBottom", Rt), !a.config.inline) {
|
|
75133
75133
|
var ma = window.pageXOffset + $t.left, dn = !1, Ma = !1;
|
|
@@ -75412,8 +75412,8 @@ function requireL10n() {
|
|
|
75412
75412
|
})(l10n$1, (function(a) {
|
|
75413
75413
|
var s = function() {
|
|
75414
75414
|
return s = Object.assign || function(Fa) {
|
|
75415
|
-
for (var Vo,
|
|
75416
|
-
Vo = arguments[
|
|
75415
|
+
for (var Vo, dr = 1, _1 = arguments.length; dr < _1; dr++) {
|
|
75416
|
+
Vo = arguments[dr];
|
|
75417
75417
|
for (var A1 in Vo) Object.prototype.hasOwnProperty.call(Vo, A1) && (Fa[A1] = Vo[A1]);
|
|
75418
75418
|
}
|
|
75419
75419
|
return Fa;
|
|
@@ -78144,7 +78144,7 @@ function requireL10n() {
|
|
|
78144
78144
|
}
|
|
78145
78145
|
};
|
|
78146
78146
|
mn.l10ns.sk = Vn, mn.l10ns;
|
|
78147
|
-
var
|
|
78147
|
+
var pr = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
78148
78148
|
l10ns: {}
|
|
78149
78149
|
}, $r = {
|
|
78150
78150
|
weekdays: {
|
|
@@ -78196,7 +78196,7 @@ function requireL10n() {
|
|
|
78196
78196
|
return ".";
|
|
78197
78197
|
}
|
|
78198
78198
|
};
|
|
78199
|
-
|
|
78199
|
+
pr.l10ns.sl = $r, pr.l10ns;
|
|
78200
78200
|
var G1 = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
78201
78201
|
l10ns: {}
|
|
78202
78202
|
}, I1 = {
|
|
@@ -78636,7 +78636,7 @@ function requireL10n() {
|
|
|
78636
78636
|
N1.l10ns.uz_latn = Q1, N1.l10ns;
|
|
78637
78637
|
var Ya = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
78638
78638
|
l10ns: {}
|
|
78639
|
-
},
|
|
78639
|
+
}, ur = {
|
|
78640
78640
|
weekdays: {
|
|
78641
78641
|
shorthand: ["CN", "T2", "T3", "T4", "T5", "T6", "T7"],
|
|
78642
78642
|
longhand: [
|
|
@@ -78682,7 +78682,7 @@ function requireL10n() {
|
|
|
78682
78682
|
firstDayOfWeek: 1,
|
|
78683
78683
|
rangeSeparator: " đến "
|
|
78684
78684
|
};
|
|
78685
|
-
Ya.l10ns.vn =
|
|
78685
|
+
Ya.l10ns.vn = ur, Ya.l10ns;
|
|
78686
78686
|
var Ro = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
78687
78687
|
l10ns: {}
|
|
78688
78688
|
}, Ir = {
|
|
@@ -78846,7 +78846,7 @@ function requireL10n() {
|
|
|
78846
78846
|
th: Zn,
|
|
78847
78847
|
tr: Co,
|
|
78848
78848
|
uk: yo,
|
|
78849
|
-
vn:
|
|
78849
|
+
vn: ur,
|
|
78850
78850
|
zh: Ir,
|
|
78851
78851
|
zh_tw: Go,
|
|
78852
78852
|
uz: J1,
|
|
@@ -82975,7 +82975,7 @@ const defaultFilterItems = (p, {
|
|
|
82975
82975
|
ref: c ? wt.setFloating : null
|
|
82976
82976
|
}, {
|
|
82977
82977
|
suppressRefError: !0
|
|
82978
|
-
}), [c, Kt, wt.setFloating]),
|
|
82978
|
+
}), [c, Kt, wt.setFloating]), pr = (Dt) => {
|
|
82979
82979
|
Dt?.target.classList.contains(`${zt}--tag__close-icon`) || Dt?.target.classList.contains(`${zt}--list-box__selection`) ? Ae(!1) : Ae(Dt?.type === "focus");
|
|
82980
82980
|
}, $r = mergeRefs(ha, mn.ref), G1 = fe ? {
|
|
82981
82981
|
onClick: (Dt) => {
|
|
@@ -82992,8 +82992,8 @@ const defaultFilterItems = (p, {
|
|
|
82992
82992
|
}, _a), te, /* @__PURE__ */ React__default.createElement("span", {
|
|
82993
82993
|
className: `${zt}--visually-hidden`
|
|
82994
82994
|
}, I1)) : null, /* @__PURE__ */ React__default.createElement(ListBox, {
|
|
82995
|
-
onFocus: _e ?
|
|
82996
|
-
onBlur: _e ?
|
|
82995
|
+
onFocus: _e ? pr : void 0,
|
|
82996
|
+
onBlur: _e ? pr : void 0,
|
|
82997
82997
|
className: Xa,
|
|
82998
82998
|
disabled: C,
|
|
82999
82999
|
light: F,
|
|
@@ -83562,13 +83562,13 @@ const {
|
|
|
83562
83562
|
// we don't want Downshift to set aria-selected for us
|
|
83563
83563
|
// we also don't want to set 'false' for reader verbosity's sake
|
|
83564
83564
|
"aria-selected": La
|
|
83565
|
-
}),
|
|
83565
|
+
}), pr = h(Ot);
|
|
83566
83566
|
return /* @__PURE__ */ React__default.createElement(ListBox.MenuItem, _extends$1({
|
|
83567
83567
|
key: Vn.id,
|
|
83568
83568
|
isActive: La && !Ot.isSelectAll,
|
|
83569
|
-
"aria-label":
|
|
83569
|
+
"aria-label": pr,
|
|
83570
83570
|
isHighlighted: zt === ot,
|
|
83571
|
-
title:
|
|
83571
|
+
title: pr,
|
|
83572
83572
|
disabled: Vn["aria-disabled"]
|
|
83573
83573
|
}, Vn), /* @__PURE__ */ React__default.createElement("div", {
|
|
83574
83574
|
className: `${Ee}--checkbox-wrapper`
|
|
@@ -83576,9 +83576,9 @@ const {
|
|
|
83576
83576
|
id: `${Vn.id}__checkbox`,
|
|
83577
83577
|
labelText: d ? /* @__PURE__ */ React__default.createElement(je, _extends$1({
|
|
83578
83578
|
key: Vn.id
|
|
83579
|
-
}, Ot)) :
|
|
83579
|
+
}, Ot)) : pr,
|
|
83580
83580
|
checked: La,
|
|
83581
|
-
title: X ?
|
|
83581
|
+
title: X ? pr : void 0,
|
|
83582
83582
|
indeterminate: mn,
|
|
83583
83583
|
disabled: I
|
|
83584
83584
|
})));
|
|
@@ -102558,16 +102558,16 @@ function requireBundle() {
|
|
|
102558
102558
|
}, 2543: function(p, c, a) {
|
|
102559
102559
|
var s;
|
|
102560
102560
|
p = a.nmd(p), (function() {
|
|
102561
|
-
var f, d = "Expected a function", h = "__lodash_hash_undefined__", E = "__lodash_placeholder__", C = 32, R = 128, T = 1 / 0, M = 9007199254740991, x = NaN, I = 4294967295, k = [["ary", R], ["bind", 1], ["bindKey", 2], ["curry", 8], ["curryRight", 16], ["flip", 512], ["partial", C], ["partialRight", 64], ["rearg", 256]], N = "[object Arguments]", B = "[object Array]", z = "[object Boolean]", O = "[object Date]", Z = "[object Error]", F = "[object Function]", U = "[object GeneratorFunction]", W = "[object Map]", P = "[object Number]", K = "[object Object]", X = "[object Promise]", V = "[object RegExp]", fe = "[object Set]", te = "[object String]", pe = "[object Symbol]", Q = "[object WeakMap]", ee = "[object ArrayBuffer]", oe = "[object DataView]", le = "[object Float32Array]", re = "[object Float64Array]", ae = "[object Int8Array]", J = "[object Int16Array]", Ce = "[object Int32Array]", we = "[object Uint8Array]", ie = "[object Uint8ClampedArray]", Ee = "[object Uint16Array]", _e = "[object Uint32Array]", Pe = /\b__p \+= '';/g, me = /\b(__p \+=) '' \+/g, Ae = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Te = /&(?:amp|lt|gt|quot|#39);/g, $e = /[&<>"']/g, Oe = RegExp(Te.source), Ve = RegExp($e.source), Be = /<%-([\s\S]+?)%>/g, Ie = /<%([\s\S]+?)%>/g, ze = /<%=([\s\S]+?)%>/g, Ye = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, qe = /^\w*$/, Fe = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Ge = /[\\^$.*+?()[\]{}|]/g, rt = RegExp(Ge.source), it = /^\s+/, Je = /\s/, lt = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, tt = /\{\n\/\* \[wrapped with (.+)\] \*/, at = /,? & /, st = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Vt = /[()=,{}\[\]\/\s]/, wt = /\\(\\)?/g, Ut = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, da = /\w*$/, ha = /^[-+]0x[0-9a-f]+$/i, Na = /^0b[01]+$/i, zt = /^\[object .+?Constructor\]$/, nn = /^0o[0-7]+$/i, aa = /^(?:0|[1-9]\d*)$/, xn = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, sa = /($^)/, Ga = /['\n\r\u2028\u2029\\]/g, ya = "\\ud800-\\udfff", bn = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff", ht = "\\u2700-\\u27bf", Wt = "a-z\\xdf-\\xf6\\xf8-\\xff", Mt = "A-Z\\xc0-\\xd6\\xd8-\\xde", ue = "\\ufe0e\\ufe0f", be = "\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Se = "[" + ya + "]", je = "[" + be + "]", mt = "[" + bn + "]", bt = "\\d+", Kt = "[" + ht + "]", $t = "[" + Wt + "]", ta = "[^" + ya + be + bt + ht + Wt + Mt + "]", Rt = "\\ud83c[\\udffb-\\udfff]", jt = "[^" + ya + "]", ma = "(?:\\ud83c[\\udde6-\\uddff]){2}", dn = "[\\ud800-\\udbff][\\udc00-\\udfff]", Ma = "[" + Mt + "]", Fn = "\\u200d", Dn = "(?:" + $t + "|" + ta + ")", xr = "(?:" + Ma + "|" + ta + ")", Ot = "(?:['’](?:d|ll|m|re|s|t|ve))?", ot = "(?:['’](?:D|LL|M|RE|S|T|VE))?", Pt = "(?:" + mt + "|" + Rt + ")?", Xa = "[" + ue + "]?", _a = Xa + Pt + "(?:" + Fn + "(?:" + [jt, ma, dn].join("|") + ")" + Xa + Pt + ")*", La = "(?:" + [Kt, ma, dn].join("|") + ")" + _a, mn = "(?:" + [jt + mt + "?", mt, ma, dn, Se].join("|") + ")", Vn = RegExp("['’]", "g"),
|
|
102561
|
+
var f, d = "Expected a function", h = "__lodash_hash_undefined__", E = "__lodash_placeholder__", C = 32, R = 128, T = 1 / 0, M = 9007199254740991, x = NaN, I = 4294967295, k = [["ary", R], ["bind", 1], ["bindKey", 2], ["curry", 8], ["curryRight", 16], ["flip", 512], ["partial", C], ["partialRight", 64], ["rearg", 256]], N = "[object Arguments]", B = "[object Array]", z = "[object Boolean]", O = "[object Date]", Z = "[object Error]", F = "[object Function]", U = "[object GeneratorFunction]", W = "[object Map]", P = "[object Number]", K = "[object Object]", X = "[object Promise]", V = "[object RegExp]", fe = "[object Set]", te = "[object String]", pe = "[object Symbol]", Q = "[object WeakMap]", ee = "[object ArrayBuffer]", oe = "[object DataView]", le = "[object Float32Array]", re = "[object Float64Array]", ae = "[object Int8Array]", J = "[object Int16Array]", Ce = "[object Int32Array]", we = "[object Uint8Array]", ie = "[object Uint8ClampedArray]", Ee = "[object Uint16Array]", _e = "[object Uint32Array]", Pe = /\b__p \+= '';/g, me = /\b(__p \+=) '' \+/g, Ae = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Te = /&(?:amp|lt|gt|quot|#39);/g, $e = /[&<>"']/g, Oe = RegExp(Te.source), Ve = RegExp($e.source), Be = /<%-([\s\S]+?)%>/g, Ie = /<%([\s\S]+?)%>/g, ze = /<%=([\s\S]+?)%>/g, Ye = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, qe = /^\w*$/, Fe = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Ge = /[\\^$.*+?()[\]{}|]/g, rt = RegExp(Ge.source), it = /^\s+/, Je = /\s/, lt = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, tt = /\{\n\/\* \[wrapped with (.+)\] \*/, at = /,? & /, st = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Vt = /[()=,{}\[\]\/\s]/, wt = /\\(\\)?/g, Ut = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, da = /\w*$/, ha = /^[-+]0x[0-9a-f]+$/i, Na = /^0b[01]+$/i, zt = /^\[object .+?Constructor\]$/, nn = /^0o[0-7]+$/i, aa = /^(?:0|[1-9]\d*)$/, xn = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, sa = /($^)/, Ga = /['\n\r\u2028\u2029\\]/g, ya = "\\ud800-\\udfff", bn = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff", ht = "\\u2700-\\u27bf", Wt = "a-z\\xdf-\\xf6\\xf8-\\xff", Mt = "A-Z\\xc0-\\xd6\\xd8-\\xde", ue = "\\ufe0e\\ufe0f", be = "\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Se = "[" + ya + "]", je = "[" + be + "]", mt = "[" + bn + "]", bt = "\\d+", Kt = "[" + ht + "]", $t = "[" + Wt + "]", ta = "[^" + ya + be + bt + ht + Wt + Mt + "]", Rt = "\\ud83c[\\udffb-\\udfff]", jt = "[^" + ya + "]", ma = "(?:\\ud83c[\\udde6-\\uddff]){2}", dn = "[\\ud800-\\udbff][\\udc00-\\udfff]", Ma = "[" + Mt + "]", Fn = "\\u200d", Dn = "(?:" + $t + "|" + ta + ")", xr = "(?:" + Ma + "|" + ta + ")", Ot = "(?:['’](?:d|ll|m|re|s|t|ve))?", ot = "(?:['’](?:D|LL|M|RE|S|T|VE))?", Pt = "(?:" + mt + "|" + Rt + ")?", Xa = "[" + ue + "]?", _a = Xa + Pt + "(?:" + Fn + "(?:" + [jt, ma, dn].join("|") + ")" + Xa + Pt + ")*", La = "(?:" + [Kt, ma, dn].join("|") + ")" + _a, mn = "(?:" + [jt + mt + "?", mt, ma, dn, Se].join("|") + ")", Vn = RegExp("['’]", "g"), pr = RegExp(mt, "g"), $r = RegExp(Rt + "(?=" + Rt + ")|" + mn + _a, "g"), G1 = RegExp([Ma + "?" + $t + "+" + Ot + "(?=" + [je, Ma, "$"].join("|") + ")", xr + "+" + ot + "(?=" + [je, Ma + Dn, "$"].join("|") + ")", Ma + "?" + Dn + "+" + Ot, Ma + "+" + ot, "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", bt, La].join("|"), "g"), I1 = RegExp("[" + Fn + ya + bn + ue + "]"), Dt = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, Ka = ["Array", "Buffer", "DataView", "Date", "Error", "Float32Array", "Float64Array", "Function", "Int8Array", "Int16Array", "Int32Array", "Map", "Math", "Object", "Promise", "RegExp", "Set", "String", "Symbol", "TypeError", "Uint8Array", "Uint8ClampedArray", "Uint16Array", "Uint32Array", "WeakMap", "_", "clearTimeout", "isFinite", "parseInt", "setTimeout"], En = -1, ca = {};
|
|
102562
102562
|
ca[le] = ca[re] = ca[ae] = ca[J] = ca[Ce] = ca[we] = ca[ie] = ca[Ee] = ca[_e] = !0, ca[N] = ca[B] = ca[ee] = ca[z] = ca[oe] = ca[O] = ca[Z] = ca[F] = ca[W] = ca[P] = ca[K] = ca[V] = ca[fe] = ca[te] = ca[Q] = !1;
|
|
102563
102563
|
var It = {};
|
|
102564
102564
|
It[N] = It[B] = It[ee] = It[oe] = It[z] = It[O] = It[le] = It[re] = It[ae] = It[J] = It[Ce] = It[W] = It[P] = It[K] = It[V] = It[fe] = It[te] = It[pe] = It[we] = It[ie] = It[Ee] = It[_e] = !0, It[Z] = It[F] = It[Q] = !1;
|
|
102565
|
-
var Zn = { "\\": "\\", "'": "'", "\n": "n", "\r": "r", "\u2028": "u2028", "\u2029": "u2029" }, h1 = parseFloat, Co = parseInt, Y1 = typeof a.g == "object" && a.g && a.g.Object === Object && a.g, yo = typeof self == "object" && self && self.Object === Object && self, Tn = Y1 || yo || Function("return this")(), J1 = c && !c.nodeType && c, N1 = J1 && p && !p.nodeType && p, Q1 = N1 && N1.exports === J1, Ya = Q1 && Y1.process,
|
|
102565
|
+
var Zn = { "\\": "\\", "'": "'", "\n": "n", "\r": "r", "\u2028": "u2028", "\u2029": "u2029" }, h1 = parseFloat, Co = parseInt, Y1 = typeof a.g == "object" && a.g && a.g.Object === Object && a.g, yo = typeof self == "object" && self && self.Object === Object && self, Tn = Y1 || yo || Function("return this")(), J1 = c && !c.nodeType && c, N1 = J1 && p && !p.nodeType && p, Q1 = N1 && N1.exports === J1, Ya = Q1 && Y1.process, ur = (function() {
|
|
102566
102566
|
try {
|
|
102567
102567
|
return N1 && N1.require && N1.require("util").types || Ya && Ya.binding && Ya.binding("util");
|
|
102568
102568
|
} catch {
|
|
102569
102569
|
}
|
|
102570
|
-
})(), Ro =
|
|
102570
|
+
})(), Ro = ur && ur.isArrayBuffer, Ir = ur && ur.isDate, bo = ur && ur.isMap, Go = ur && ur.isRegExp, Fr = ur && ur.isSet, ka = ur && ur.isTypedArray;
|
|
102571
102571
|
function Fa(We, ut, _t) {
|
|
102572
102572
|
switch (_t.length) {
|
|
102573
102573
|
case 0:
|
|
@@ -102588,7 +102588,7 @@ function requireBundle() {
|
|
|
102588
102588
|
}
|
|
102589
102589
|
return Bt;
|
|
102590
102590
|
}
|
|
102591
|
-
function
|
|
102591
|
+
function dr(We, ut) {
|
|
102592
102592
|
for (var _t = -1, Bt = We == null ? 0 : We.length; ++_t < Bt && ut(We[_t], _t, We) !== !1; ) ;
|
|
102593
102593
|
return We;
|
|
102594
102594
|
}
|
|
@@ -102751,7 +102751,7 @@ function requireBundle() {
|
|
|
102751
102751
|
_t[++ut] = [Bt, Bt];
|
|
102752
102752
|
}), _t;
|
|
102753
102753
|
}
|
|
102754
|
-
function
|
|
102754
|
+
function hr(We) {
|
|
102755
102755
|
return Nr(We) ? (function(ut) {
|
|
102756
102756
|
for (var _t = $r.lastIndex = 0; $r.test(ut); ) ++_t;
|
|
102757
102757
|
return _t;
|
|
@@ -102769,7 +102769,7 @@ function requireBundle() {
|
|
|
102769
102769
|
return ut;
|
|
102770
102770
|
}
|
|
102771
102771
|
var Qi = $2({ "&": "&", "<": "<", ">": ">", """: '"', "'": "'" }), t0 = (function We(ut) {
|
|
102772
|
-
var _t, Bt = (ut = ut == null ? Tn : t0.defaults(Tn.Object(), ut, t0.pick(Tn, Ka))).Array, va = ut.Date, ja = ut.Error, zn = ut.Function, gn = ut.Math, Ra = ut.Object, g1 = ut.RegExp, Xi = ut.String,
|
|
102772
|
+
var _t, Bt = (ut = ut == null ? Tn : t0.defaults(Tn.Object(), ut, t0.pick(Tn, Ka))).Array, va = ut.Date, ja = ut.Error, zn = ut.Function, gn = ut.Math, Ra = ut.Object, g1 = ut.RegExp, Xi = ut.String, _r = ut.TypeError, F0 = Bt.prototype, Z0 = zn.prototype, S1 = Ra.prototype, a0 = ut["__core-js_shared__"], L1 = Z0.toString, rn = S1.hasOwnProperty, eo = 0, n0 = (_t = /[^.]+$/.exec(a0 && a0.keys && a0.keys.IE_PROTO || "")) ? "Symbol(src)_1." + _t : "", z0 = S1.toString, O1 = L1.call(Ra), Hc = Tn._, j0 = g1("^" + L1.call(rn).replace(Ge, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), q0 = Q1 ? ut.Buffer : f, B1 = ut.Symbol, r0 = ut.Uint8Array, D2 = q0 ? q0.allocUnsafe : f, U0 = Ji(Ra.getPrototypeOf, Ra), Ar = Ra.create, o0 = S1.propertyIsEnumerable, Mo = F0.splice, Mc = B1 ? B1.isConcatSpreadable : f, xo = B1 ? B1.iterator : f, to = B1 ? B1.toStringTag : f, W0 = (function() {
|
|
102773
102773
|
try {
|
|
102774
102774
|
var g = ko(Ra, "defineProperty");
|
|
102775
102775
|
return g({}, "", {}), g;
|
|
@@ -102788,7 +102788,7 @@ function requireBundle() {
|
|
|
102788
102788
|
}
|
|
102789
102789
|
return function(b) {
|
|
102790
102790
|
if (!In(b)) return {};
|
|
102791
|
-
if (
|
|
102791
|
+
if (Ar) return Ar(b);
|
|
102792
102792
|
g.prototype = b;
|
|
102793
102793
|
var S = new g();
|
|
102794
102794
|
return g.prototype = f, S;
|
|
@@ -102948,7 +102948,7 @@ function requireBundle() {
|
|
|
102948
102948
|
Ne.set(Xe, Rr(dt, b, S, Xe, g, Re));
|
|
102949
102949
|
});
|
|
102950
102950
|
var ia = pt ? f : (ft ? Ue ? ei : Xc : Ue ? er : Ba)(g);
|
|
102951
|
-
return
|
|
102951
|
+
return dr(ia || g, function(dt, Xe) {
|
|
102952
102952
|
ia && (dt = g[Xe = dt]), X0(Ne, Xe, Rr(dt, b, S, Xe, g, Re));
|
|
102953
102953
|
}), Ne;
|
|
102954
102954
|
}
|
|
@@ -102962,7 +102962,7 @@ function requireBundle() {
|
|
|
102962
102962
|
return !0;
|
|
102963
102963
|
}
|
|
102964
102964
|
function ol(g, b, S) {
|
|
102965
|
-
if (typeof g != "function") throw new
|
|
102965
|
+
if (typeof g != "function") throw new _r(d);
|
|
102966
102966
|
return Fo(function() {
|
|
102967
102967
|
g.apply(f, S);
|
|
102968
102968
|
}, b);
|
|
@@ -103635,7 +103635,7 @@ function requireBundle() {
|
|
|
103635
103635
|
var S = b.length, Y = S, ce = t1.prototype.thru;
|
|
103636
103636
|
for (g && b.reverse(); Y--; ) {
|
|
103637
103637
|
var Re = b[Y];
|
|
103638
|
-
if (typeof Re != "function") throw new
|
|
103638
|
+
if (typeof Re != "function") throw new _r(d);
|
|
103639
103639
|
if (ce && !Ne && v0(Re) == "wrapper") var Ne = new t1([], !0);
|
|
103640
103640
|
}
|
|
103641
103641
|
for (Y = Ne ? Y : S; ++Y < S; ) {
|
|
@@ -103705,7 +103705,7 @@ function requireBundle() {
|
|
|
103705
103705
|
function W2(g, b) {
|
|
103706
103706
|
var S = (b = b === f ? " " : jr(b)).length;
|
|
103707
103707
|
if (S < 2) return S ? Wn(b, g) : b;
|
|
103708
|
-
var Y = Wn(b, K0(g /
|
|
103708
|
+
var Y = Wn(b, K0(g / hr(b)));
|
|
103709
103709
|
return Nr(b) ? Ur(e1(Y), 0, g).join("") : Y.slice(0, g);
|
|
103710
103710
|
}
|
|
103711
103711
|
function Rl(g) {
|
|
@@ -103752,7 +103752,7 @@ function requireBundle() {
|
|
|
103752
103752
|
}
|
|
103753
103753
|
function q1(g, b, S, Y, ce, Re, Ne, ke) {
|
|
103754
103754
|
var Ue = 2 & b;
|
|
103755
|
-
if (!Ue && typeof g != "function") throw new
|
|
103755
|
+
if (!Ue && typeof g != "function") throw new _r(d);
|
|
103756
103756
|
var ft = Y ? Y.length : 0;
|
|
103757
103757
|
if (ft || (b &= -97, Y = ce = f), Ne = Ne === f ? Ne : qn(ga(Ne), 0), ke = ke === f ? ke : ga(ke), ft -= ce ? ce.length : 0, 64 & b) {
|
|
103758
103758
|
var pt = Y, yt = ce;
|
|
@@ -103971,7 +103971,7 @@ function requireBundle() {
|
|
|
103971
103971
|
/* [wrapped with ` + Re + `] */
|
|
103972
103972
|
`);
|
|
103973
103973
|
})(Y, (function(ce, Re) {
|
|
103974
|
-
return
|
|
103974
|
+
return dr(k, function(Ne) {
|
|
103975
103975
|
var ke = "_." + Ne[0];
|
|
103976
103976
|
Re & Ne[1] && !X1(ce, ke) && ce.push(ke);
|
|
103977
103977
|
}), ce.sort();
|
|
@@ -104140,7 +104140,7 @@ function requireBundle() {
|
|
|
104140
104140
|
rn.call(g, S) ? ++g[S] : Z1(g, S, 1);
|
|
104141
104141
|
}), di = vl($l), Sl = vl(ii);
|
|
104142
104142
|
function hi(g, b) {
|
|
104143
|
-
return (Ea(g) ?
|
|
104143
|
+
return (Ea(g) ? dr : z1)(g, Jt(b, 3));
|
|
104144
104144
|
}
|
|
104145
104145
|
function sc(g, b) {
|
|
104146
104146
|
return (Ea(g) ? _1 : cl)(g, Jt(b, 3));
|
|
@@ -104174,7 +104174,7 @@ function requireBundle() {
|
|
|
104174
104174
|
}
|
|
104175
104175
|
function Ol(g, b) {
|
|
104176
104176
|
var S;
|
|
104177
|
-
if (typeof b != "function") throw new
|
|
104177
|
+
if (typeof b != "function") throw new _r(d);
|
|
104178
104178
|
return g = ga(g), function() {
|
|
104179
104179
|
return --g > 0 && (S = b.apply(this, arguments)), g <= 1 && (b = f), S;
|
|
104180
104180
|
};
|
|
@@ -104196,7 +104196,7 @@ function requireBundle() {
|
|
|
104196
104196
|
});
|
|
104197
104197
|
function wi(g, b, S) {
|
|
104198
104198
|
var Y, ce, Re, Ne, ke, Ue, ft = 0, pt = !1, yt = !1, Ft = !0;
|
|
104199
|
-
if (typeof g != "function") throw new
|
|
104199
|
+
if (typeof g != "function") throw new _r(d);
|
|
104200
104200
|
function Gt(St) {
|
|
104201
104201
|
var Va = Y, wa = ce;
|
|
104202
104202
|
return Y = ce = f, ft = St, Ne = g.apply(wa, Va);
|
|
@@ -104238,7 +104238,7 @@ function requireBundle() {
|
|
|
104238
104238
|
return ol(g, l1(b) || 0, S);
|
|
104239
104239
|
});
|
|
104240
104240
|
function u2(g, b) {
|
|
104241
|
-
if (typeof g != "function" || b != null && typeof b != "function") throw new
|
|
104241
|
+
if (typeof g != "function" || b != null && typeof b != "function") throw new _r(d);
|
|
104242
104242
|
var S = function() {
|
|
104243
104243
|
var Y = arguments, ce = b ? b.apply(this, Y) : Y[0], Re = S.cache;
|
|
104244
104244
|
if (Re.has(ce)) return Re.get(ce);
|
|
@@ -104248,7 +104248,7 @@ function requireBundle() {
|
|
|
104248
104248
|
return S.cache = new (u2.Cache || F1)(), S;
|
|
104249
104249
|
}
|
|
104250
104250
|
function d2(g) {
|
|
104251
|
-
if (typeof g != "function") throw new
|
|
104251
|
+
if (typeof g != "function") throw new _r(d);
|
|
104252
104252
|
return function() {
|
|
104253
104253
|
var b = arguments;
|
|
104254
104254
|
switch (b.length) {
|
|
@@ -104478,7 +104478,7 @@ function requireBundle() {
|
|
|
104478
104478
|
return _c(ln(g).toLowerCase());
|
|
104479
104479
|
}
|
|
104480
104480
|
function g2(g) {
|
|
104481
|
-
return (g = ln(g)) && g.replace(xn, Xo).replace(
|
|
104481
|
+
return (g = ln(g)) && g.replace(xn, Xo).replace(pr, "");
|
|
104482
104482
|
}
|
|
104483
104483
|
var Bs = w0(function(g, b, S) {
|
|
104484
104484
|
return g + (S ? "-" : "") + b.toLowerCase();
|
|
@@ -104507,7 +104507,7 @@ function requireBundle() {
|
|
|
104507
104507
|
return h2(S) ? S : new ja(S);
|
|
104508
104508
|
}
|
|
104509
104509
|
}), $i = U1(function(g, b) {
|
|
104510
|
-
return
|
|
104510
|
+
return dr(b, function(S) {
|
|
104511
104511
|
S = Pa(S), Z1(g, S, gi(g[S], g));
|
|
104512
104512
|
}), g;
|
|
104513
104513
|
});
|
|
@@ -104536,7 +104536,7 @@ function requireBundle() {
|
|
|
104536
104536
|
var Y = Ba(b), ce = e2(b, Y);
|
|
104537
104537
|
S != null || In(b) && (ce.length || !Y.length) || (S = b, b = g, g = this, ce = e2(b, Ba(b)));
|
|
104538
104538
|
var Re = !(In(S) && "chain" in S && !S.chain), Ne = i1(g);
|
|
104539
|
-
return
|
|
104539
|
+
return dr(ce, function(ke) {
|
|
104540
104540
|
var Ue = b[ke];
|
|
104541
104541
|
g[ke] = Ue, Ne && (g.prototype[ke] = function() {
|
|
104542
104542
|
var ft = this.__chain__;
|
|
@@ -104575,7 +104575,7 @@ function requireBundle() {
|
|
|
104575
104575
|
return g - b;
|
|
104576
104576
|
}, 0);
|
|
104577
104577
|
return de.after = function(g, b) {
|
|
104578
|
-
if (typeof b != "function") throw new
|
|
104578
|
+
if (typeof b != "function") throw new _r(d);
|
|
104579
104579
|
return g = ga(g), function() {
|
|
104580
104580
|
if (--g < 1) return b.apply(this, arguments);
|
|
104581
104581
|
};
|
|
@@ -104603,7 +104603,7 @@ function requireBundle() {
|
|
|
104603
104603
|
}, de.cond = function(g) {
|
|
104604
104604
|
var b = g == null ? 0 : g.length, S = Jt();
|
|
104605
104605
|
return g = b ? hn(g, function(Y) {
|
|
104606
|
-
if (typeof Y[1] != "function") throw new
|
|
104606
|
+
if (typeof Y[1] != "function") throw new _r(d);
|
|
104607
104607
|
return [S(Y[0]), Y[1]];
|
|
104608
104608
|
}) : [], $a(function(Y) {
|
|
104609
104609
|
for (var ce = -1; ++ce < b; ) {
|
|
@@ -104714,7 +104714,7 @@ function requireBundle() {
|
|
|
104714
104714
|
}
|
|
104715
104715
|
return pl(g, ce), S;
|
|
104716
104716
|
}, de.rest = function(g, b) {
|
|
104717
|
-
if (typeof g != "function") throw new
|
|
104717
|
+
if (typeof g != "function") throw new _r(d);
|
|
104718
104718
|
return $a(g, b = b === f ? b : ga(b));
|
|
104719
104719
|
}, de.reverse = y1, de.sampleSize = function(g, b, S) {
|
|
104720
104720
|
return b = (S ? gr(g, b, S) : b === f) ? 1 : ga(b), (Ea(g) ? Q0 : Hs)(g, b);
|
|
@@ -104734,7 +104734,7 @@ function requireBundle() {
|
|
|
104734
104734
|
}, de.split = function(g, b, S) {
|
|
104735
104735
|
return S && typeof S != "number" && gr(g, b, S) && (b = S = f), (S = S === f ? I : S >>> 0) ? (g = ln(g)) && (typeof b == "string" || b != null && !dc(b)) && !(b = jr(b)) && Nr(g) ? Ur(e1(g), 0, S) : g.split(b, S) : [];
|
|
104736
104736
|
}, de.spread = function(g, b) {
|
|
104737
|
-
if (typeof g != "function") throw new
|
|
104737
|
+
if (typeof g != "function") throw new _r(d);
|
|
104738
104738
|
return b = b == null ? 0 : qn(ga(b), 0), $a(function(S) {
|
|
104739
104739
|
var Y = S[b], ce = Ur(S, 0, b);
|
|
104740
104740
|
return Y && D1(ce, Y), Fa(g, this, ce);
|
|
@@ -104755,7 +104755,7 @@ function requireBundle() {
|
|
|
104755
104755
|
return b(g), g;
|
|
104756
104756
|
}, de.throttle = function(g, b, S) {
|
|
104757
104757
|
var Y = !0, ce = !0;
|
|
104758
|
-
if (typeof g != "function") throw new
|
|
104758
|
+
if (typeof g != "function") throw new _r(d);
|
|
104759
104759
|
return In(S) && (Y = "leading" in S ? !!S.leading : Y, ce = "trailing" in S ? !!S.trailing : ce), wi(g, b, { leading: Y, maxWait: b, trailing: ce });
|
|
104760
104760
|
}, de.thru = lc, de.toArray = _2, de.toPairs = E2, de.toPairsIn = $0, de.toPath = function(g) {
|
|
104761
104761
|
return Ea(g) ? hn(g, Pa) : Gr(g) ? [g] : Dr(jo(ln(g)));
|
|
@@ -104765,7 +104765,7 @@ function requireBundle() {
|
|
|
104765
104765
|
var Re = g && g.constructor;
|
|
104766
104766
|
S = ce ? Y ? new Re() : [] : In(g) && i1(Re) ? no(U0(g)) : {};
|
|
104767
104767
|
}
|
|
104768
|
-
return (ce ?
|
|
104768
|
+
return (ce ? dr : Zr)(g, function(Ne, ke, Ue) {
|
|
104769
104769
|
return b(S, Ne, ke, Ue);
|
|
104770
104770
|
}), S;
|
|
104771
104771
|
}, de.unary = function(g) {
|
|
@@ -104916,17 +104916,17 @@ function requireBundle() {
|
|
|
104916
104916
|
return Tn._ === this && (Tn._ = Hc), this;
|
|
104917
104917
|
}, de.noop = mc, de.now = fc, de.pad = function(g, b, S) {
|
|
104918
104918
|
g = ln(g);
|
|
104919
|
-
var Y = (b = ga(b)) ?
|
|
104919
|
+
var Y = (b = ga(b)) ? hr(g) : 0;
|
|
104920
104920
|
if (!b || Y >= b) return g;
|
|
104921
104921
|
var ce = (b - Y) / 2;
|
|
104922
104922
|
return W2(jn(ce), S) + g + W2(K0(ce), S);
|
|
104923
104923
|
}, de.padEnd = function(g, b, S) {
|
|
104924
104924
|
g = ln(g);
|
|
104925
|
-
var Y = (b = ga(b)) ?
|
|
104925
|
+
var Y = (b = ga(b)) ? hr(g) : 0;
|
|
104926
104926
|
return b && Y < b ? g + W2(b - Y, S) : g;
|
|
104927
104927
|
}, de.padStart = function(g, b, S) {
|
|
104928
104928
|
g = ln(g);
|
|
104929
|
-
var Y = (b = ga(b)) ?
|
|
104929
|
+
var Y = (b = ga(b)) ? hr(g) : 0;
|
|
104930
104930
|
return b && Y < b ? W2(b - Y, S) + g : g;
|
|
104931
104931
|
}, de.parseInt = function(g, b, S) {
|
|
104932
104932
|
return S || b == null ? b = 0 : b && (b = +b), Er(ln(g).replace(it, ""), b || 0);
|
|
@@ -104962,7 +104962,7 @@ function requireBundle() {
|
|
|
104962
104962
|
return (Ea(g) ? J0 : Ts)(g);
|
|
104963
104963
|
}, de.size = function(g) {
|
|
104964
104964
|
if (g == null) return 0;
|
|
104965
|
-
if (ar(g)) return Lr(g) ?
|
|
104965
|
+
if (ar(g)) return Lr(g) ? hr(g) : g.length;
|
|
104966
104966
|
var b = tr(g);
|
|
104967
104967
|
return b == W || b == fe ? g.size : Fc(g).length;
|
|
104968
104968
|
}, de.snakeCase = Fs, de.some = function(g, b, S) {
|
|
@@ -105068,7 +105068,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
105068
105068
|
Re = Ne.length;
|
|
105069
105069
|
}
|
|
105070
105070
|
if (S >= Re) return g;
|
|
105071
|
-
var ke = S -
|
|
105071
|
+
var ke = S - hr(Y);
|
|
105072
105072
|
if (ke < 1) return Y;
|
|
105073
105073
|
var Ue = Ne ? Ur(Ne, 0, ke).join("") : g.slice(0, ke);
|
|
105074
105074
|
if (ce === f) return Ue + Y;
|
|
@@ -105090,9 +105090,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
105090
105090
|
return ln(g) + b;
|
|
105091
105091
|
}, de.upperCase = vr, de.upperFirst = _c, de.each = hi, de.eachRight = sc, de.first = ac, Ni(de, (Di = {}, Zr(de, function(g, b) {
|
|
105092
105092
|
rn.call(de.prototype, b) || (Di[b] = g);
|
|
105093
|
-
}), Di), { chain: !1 }), de.VERSION = "4.17.21",
|
|
105093
|
+
}), Di), { chain: !1 }), de.VERSION = "4.17.21", dr(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(g) {
|
|
105094
105094
|
de[g].placeholder = de;
|
|
105095
|
-
}),
|
|
105095
|
+
}), dr(["drop", "take"], function(g, b) {
|
|
105096
105096
|
ba.prototype[g] = function(S) {
|
|
105097
105097
|
S = S === f ? 1 : qn(ga(S), 0);
|
|
105098
105098
|
var Y = this.__filtered__ && !b ? new ba(this) : this.clone();
|
|
@@ -105100,18 +105100,18 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
105100
105100
|
}, ba.prototype[g + "Right"] = function(S) {
|
|
105101
105101
|
return this.reverse()[g](S).reverse();
|
|
105102
105102
|
};
|
|
105103
|
-
}),
|
|
105103
|
+
}), dr(["filter", "map", "takeWhile"], function(g, b) {
|
|
105104
105104
|
var S = b + 1, Y = S == 1 || S == 3;
|
|
105105
105105
|
ba.prototype[g] = function(ce) {
|
|
105106
105106
|
var Re = this.clone();
|
|
105107
105107
|
return Re.__iteratees__.push({ iteratee: Jt(ce, 3), type: S }), Re.__filtered__ = Re.__filtered__ || Y, Re;
|
|
105108
105108
|
};
|
|
105109
|
-
}),
|
|
105109
|
+
}), dr(["head", "last"], function(g, b) {
|
|
105110
105110
|
var S = "take" + (b ? "Right" : "");
|
|
105111
105111
|
ba.prototype[g] = function() {
|
|
105112
105112
|
return this[S](1).value()[0];
|
|
105113
105113
|
};
|
|
105114
|
-
}),
|
|
105114
|
+
}), dr(["initial", "tail"], function(g, b) {
|
|
105115
105115
|
var S = "drop" + (b ? "" : "Right");
|
|
105116
105116
|
ba.prototype[g] = function() {
|
|
105117
105117
|
return this.__filtered__ ? new ba(this) : this[S](1);
|
|
@@ -105152,7 +105152,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
105152
105152
|
}
|
|
105153
105153
|
return ia && dt ? g.apply(this, ke) : (Xe = this.thru(yt), ia ? Y ? Xe.value()[0] : Xe.value() : Xe);
|
|
105154
105154
|
});
|
|
105155
|
-
}),
|
|
105155
|
+
}), dr(["pop", "push", "shift", "sort", "splice", "unshift"], function(g) {
|
|
105156
105156
|
var b = F0[g], S = /^(?:push|sort|unshift)$/.test(g) ? "tap" : "thru", Y = /^(?:pop|shift)$/.test(g);
|
|
105157
105157
|
de.prototype[g] = function() {
|
|
105158
105158
|
var ce = arguments;
|
|
@@ -130042,7 +130042,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
130042
130042
|
}, __webpack_require__.nmd = (p) => (p.paths = [], p.children || (p.children = []), p), __webpack_require__.b = document.baseURI || self.location.href, __webpack_require__.nc = void 0;
|
|
130043
130043
|
var __webpack_exports__ = {};
|
|
130044
130044
|
return (() => {
|
|
130045
|
-
__webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_exports__, { AutoComplete: () => ho, BooleanControl: () => fs, BooleanControlDesigner: () => wf, BooleanValueMapper: () => Tp, Button: () => ps, ButtonDesigner: () => gf, CarbonContainer: () => gi, CellDesigner: () => Ao, CodedControl: () =>
|
|
130045
|
+
__webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_exports__, { AutoComplete: () => ho, BooleanControl: () => fs, BooleanControlDesigner: () => wf, BooleanValueMapper: () => Tp, Button: () => ps, ButtonDesigner: () => gf, CarbonContainer: () => gi, CellDesigner: () => Ao, CodedControl: () => lf, CodedControlDesigner: () => vf, CodedMultiSelectValueMapper: () => Mp, CodedValueMapper: () => Hp, ComplexControl: () => i1, ComplexControlDesigner: () => mf, ComponentStore: () => Yt.A, Container: () => tc, Date: () => sf, DateDesigner: () => Cf, DateTime: () => ff, DateTimeDesigner: () => yf, DescriptorParser: () => Vp, Draggable: () => bd, DropDown: () => ji, FhirConstants: () => p, FreeTextAutoComplete: () => As, GridDesigner: () => C2, IDGenerator: () => Zd, Image: () => us, ImageDesigner: () => Vf, Label: () => y0, LabelDesigner: () => _o, Location: () => hs, LocationDesigner: () => Hf, NumericBox: () => h2, NumericBoxDesigner: () => wr, ObsControl: () => ar, ObsControlDesigner: () => ms, ObsGroupControl: () => b0, ObsGroupControlDesigner: () => Es, Provider: () => _s, ProviderDesigner: () => Mf, RadioButton: () => cf, RadioButtonDesigner: () => Ef, RowDesigner: () => Wi, Section: () => qi, SectionDesigner: () => Rf, Table: () => Ui, TableDesigner: () => bf, TextBox: () => $n, TextBoxDesigner: () => Af, TranslationKeyGenerator: () => uf, Video: () => ds, VideoDesigner: () => Tf, getFhirObservations: () => qp, getObservationsFromFhir: () => Gd, runEventScript: () => zd });
|
|
130046
130046
|
var p = {};
|
|
130047
130047
|
__webpack_require__.r(p), __webpack_require__.d(p, { CODE_TO_INTERPRETATION: () => Lp, CONCEPT_DATATYPE_COMPLEX: () => Np, CONCEPT_DATATYPE_NUMERIC: () => $p, DATETIME_REGEX_PATTERN: () => jd, DATE_REGEX_PATTERN: () => Sp, FHIR_OBSERVATION_FORM_NAMESPACE_PATH_URL: () => xf, FHIR_OBSERVATION_INTERPRETATION_SYSTEM: () => xp, FHIR_OBSERVATION_STATUS_FINAL: () => Pp, FHIR_OBSERVATION_VALUE_ATTACHMENT_URL: () => $f, FHIR_RESOURCE_TYPE_OBSERVATION: () => Dp, INTERPRETATION_TO_CODE: () => gs });
|
|
130048
130048
|
var c = __webpack_require__(5072), a = __webpack_require__.n(c), s = __webpack_require__(7825), f = __webpack_require__.n(s), d = __webpack_require__(7659), h = __webpack_require__.n(d), E = __webpack_require__(5056), C = __webpack_require__.n(E), R = __webpack_require__(540), T = __webpack_require__.n(R), M = __webpack_require__(1113), x = __webpack_require__.n(M), I = __webpack_require__(7699), k = {};
|
|
@@ -130368,7 +130368,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
130368
130368
|
return ma(D);
|
|
130369
130369
|
})(y);
|
|
130370
130370
|
case "string":
|
|
130371
|
-
return y.length > Vn ? ((m = G1[A = y]) === void 0 && (m = Dn(A), $r ===
|
|
130371
|
+
return y.length > Vn ? ((m = G1[A = y]) === void 0 && (m = Dn(A), $r === pr && ($r = 0, G1 = {}), $r++, G1[A] = m), m) : Dn(y);
|
|
130372
130372
|
case "object":
|
|
130373
130373
|
case "function":
|
|
130374
130374
|
return (function($) {
|
|
@@ -130428,7 +130428,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
130428
130428
|
Xa && (Pt = /* @__PURE__ */ new WeakMap());
|
|
130429
130429
|
var _a = /* @__PURE__ */ Object.create(null), La = 0, mn = "__immutablehash__";
|
|
130430
130430
|
typeof Symbol == "function" && (mn = Symbol(mn));
|
|
130431
|
-
var Vn = 16,
|
|
130431
|
+
var Vn = 16, pr = 255, $r = 0, G1 = {}, I1 = (function(_) {
|
|
130432
130432
|
function u(A, m) {
|
|
130433
130433
|
this._iter = A, this._useKeys = m, this.size = A.size;
|
|
130434
130434
|
}
|
|
@@ -130504,7 +130504,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
130504
130504
|
var y = this;
|
|
130505
130505
|
return this._iter.__iterate(function($) {
|
|
130506
130506
|
if ($) {
|
|
130507
|
-
|
|
130507
|
+
ur($);
|
|
130508
130508
|
var D = Ae($);
|
|
130509
130509
|
return A(D ? $.get(1) : $[1], D ? $.get(0) : $[0], y);
|
|
130510
130510
|
}
|
|
@@ -130517,7 +130517,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
130517
130517
|
if ($.done) return $;
|
|
130518
130518
|
var D = $.value;
|
|
130519
130519
|
if (D) {
|
|
130520
|
-
|
|
130520
|
+
ur(D);
|
|
130521
130521
|
var q = Ae(D);
|
|
130522
130522
|
return Ut(A, q ? D.get(0) : D[0], q ? D.get(1) : D[1], $);
|
|
130523
130523
|
}
|
|
@@ -130774,7 +130774,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
130774
130774
|
function Ya(_, u) {
|
|
130775
130775
|
return _ === u ? _ : Ge(_) ? u : _.constructor(u);
|
|
130776
130776
|
}
|
|
130777
|
-
function
|
|
130777
|
+
function ur(_) {
|
|
130778
130778
|
if (_ !== Object(_)) throw new TypeError("Expected [K, V] tuple: " + _);
|
|
130779
130779
|
}
|
|
130780
130780
|
function Ro(_) {
|
|
@@ -130806,10 +130806,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
130806
130806
|
throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: " + _);
|
|
130807
130807
|
}
|
|
130808
130808
|
Dt.prototype.cacheResult = I1.prototype.cacheResult = Ka.prototype.cacheResult = En.prototype.cacheResult = bo;
|
|
130809
|
-
var
|
|
130809
|
+
var dr = Object.prototype.toString;
|
|
130810
130810
|
function _1(_) {
|
|
130811
130811
|
return typeof _ == "object" && (Je(_) || Array.isArray(_) || (function(u) {
|
|
130812
|
-
if (!u || typeof u != "object" ||
|
|
130812
|
+
if (!u || typeof u != "object" || dr.call(u) !== "[object Object]") return !1;
|
|
130813
130813
|
var A = Object.getPrototypeOf(u);
|
|
130814
130814
|
if (A === null) return !0;
|
|
130815
130815
|
for (var m = A, y = Object.getPrototypeOf(A); y !== null; ) m = y, y = Object.getPrototypeOf(m);
|
|
@@ -130869,7 +130869,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
130869
130869
|
if (aa.call(ge, He) && Me === ge[He]) return ge;
|
|
130870
130870
|
var Le = Yo(ge);
|
|
130871
130871
|
return Le[He] = Me, Le;
|
|
130872
|
-
})(D ? _ ?
|
|
130872
|
+
})(D ? _ ? hr() : {} : u, G, se);
|
|
130873
130873
|
}
|
|
130874
130874
|
function D0(_, u) {
|
|
130875
130875
|
return (function(A, m, y) {
|
|
@@ -130949,13 +130949,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
130949
130949
|
}
|
|
130950
130950
|
function I2(_) {
|
|
130951
130951
|
for (var u = [], A = arguments.length - 1; A-- > 0; ) u[A] = arguments[A + 1];
|
|
130952
|
-
return hn(this, _,
|
|
130952
|
+
return hn(this, _, hr(), function(m) {
|
|
130953
130953
|
return H2(m, u);
|
|
130954
130954
|
});
|
|
130955
130955
|
}
|
|
130956
130956
|
function L0(_) {
|
|
130957
130957
|
for (var u = [], A = arguments.length - 1; A-- > 0; ) u[A] = arguments[A + 1];
|
|
130958
|
-
return hn(this, _,
|
|
130958
|
+
return hn(this, _, hr(), function(m) {
|
|
130959
130959
|
return T2(m, u);
|
|
130960
130960
|
});
|
|
130961
130961
|
}
|
|
@@ -130974,7 +130974,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
130974
130974
|
}
|
|
130975
130975
|
var m1 = (function(_) {
|
|
130976
130976
|
function u(A) {
|
|
130977
|
-
return A == null ?
|
|
130977
|
+
return A == null ? hr() : Kt(A) && !tt(A) ? A : hr().withMutations(function(m) {
|
|
130978
130978
|
var y = _(A);
|
|
130979
130979
|
Fa(y.size), y.forEach(function($, D) {
|
|
130980
130980
|
return m.set(D, $);
|
|
@@ -130983,7 +130983,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
130983
130983
|
}
|
|
130984
130984
|
return _ && (u.__proto__ = _), u.prototype = Object.create(_ && _.prototype), u.prototype.constructor = u, u.of = function() {
|
|
130985
130985
|
for (var A = [], m = arguments.length; m--; ) A[m] = arguments[m];
|
|
130986
|
-
return
|
|
130986
|
+
return hr().withMutations(function(y) {
|
|
130987
130987
|
for (var $ = 0; $ < A.length; $ += 2) {
|
|
130988
130988
|
if ($ + 1 >= A.length) throw new Error("Missing value for key: " + A[$]);
|
|
130989
130989
|
y.set(A[$], A[$ + 1]);
|
|
@@ -131005,7 +131005,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
131005
131005
|
});
|
|
131006
131006
|
});
|
|
131007
131007
|
}, u.prototype.clear = function() {
|
|
131008
|
-
return this.size === 0 ? this : this.__ownerID ? (this.size = 0, this._root = null, this.__hash = void 0, this.__altered = !0, this) :
|
|
131008
|
+
return this.size === 0 ? this : this.__ownerID ? (this.size = 0, this._root = null, this.__hash = void 0, this.__altered = !0, this) : hr();
|
|
131009
131009
|
}, u.prototype.sort = function(A) {
|
|
131010
131010
|
return O1(Tn(this, A));
|
|
131011
131011
|
}, u.prototype.sortBy = function(A, m) {
|
|
@@ -131025,7 +131025,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
131025
131025
|
return $++, A(D[1], D[0], y);
|
|
131026
131026
|
}, m), $;
|
|
131027
131027
|
}, u.prototype.__ensureOwner = function(A) {
|
|
131028
|
-
return A === this.__ownerID ? this : A ? Tc(this.size, this._root, A, this.__hash) : this.size === 0 ?
|
|
131028
|
+
return A === this.__ownerID ? this : A ? Tc(this.size, this._root, A, this.__hash) : this.size === 0 ? hr() : (this.__ownerID = A, this.__altered = !1, this);
|
|
131029
131029
|
}, u;
|
|
131030
131030
|
})(ze);
|
|
131031
131031
|
m1.isMap = Kt;
|
|
@@ -131185,7 +131185,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
131185
131185
|
var y = Object.create(Cn);
|
|
131186
131186
|
return y.size = _, y._root = u, y.__ownerID = A, y.__hash = m, y.__altered = !1, y;
|
|
131187
131187
|
}
|
|
131188
|
-
function
|
|
131188
|
+
function hr() {
|
|
131189
131189
|
return N2 || (N2 = Tc(0));
|
|
131190
131190
|
}
|
|
131191
131191
|
function e1(_, u, A) {
|
|
@@ -131198,7 +131198,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
131198
131198
|
if (A === oe) return _;
|
|
131199
131199
|
y = 1, m = new Qo(_.__ownerID, [[u, A]]);
|
|
131200
131200
|
}
|
|
131201
|
-
return _.__ownerID ? (_.size = y, _._root = m, _.__hash = void 0, _.__altered = !0, _) : m ? Tc(y, m) :
|
|
131201
|
+
return _.__ownerID ? (_.size = y, _._root = m, _.__hash = void 0, _.__altered = !0, _) : m ? Tc(y, m) : hr();
|
|
131202
131202
|
}
|
|
131203
131203
|
function P2(_, u, A, m, y, $, D, q) {
|
|
131204
131204
|
return _ ? _.update(u, A, m, y, $, D, q) : $ === oe ? _ : (le(q), le(D), new Nr(u, m, [y, $]));
|
|
@@ -131302,10 +131302,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
131302
131302
|
var y = m ? this.size : 0, $ = F0(this, m);
|
|
131303
131303
|
return new wt(function() {
|
|
131304
131304
|
var D = $();
|
|
131305
|
-
return D ===
|
|
131305
|
+
return D === _r ? { value: void 0, done: !0 } : Ut(A, m ? --y : y++, D);
|
|
131306
131306
|
});
|
|
131307
131307
|
}, u.prototype.__iterate = function(A, m) {
|
|
131308
|
-
for (var y, $ = m ? this.size : 0, D = F0(this, m); (y = D()) !==
|
|
131308
|
+
for (var y, $ = m ? this.size : 0, D = F0(this, m); (y = D()) !== _r && A(y, m ? --$ : $++, this) !== !1; ) ;
|
|
131309
131309
|
return $;
|
|
131310
131310
|
}, u.prototype.__ensureOwner = function(A) {
|
|
131311
131311
|
return A === this.__ownerID ? this : A ? Z0(this._origin, this._capacity, this._level, this._root, this._tail, A, this.__hash) : this.size === 0 ? S1() : (this.__ownerID = A, this.__altered = !1, this);
|
|
@@ -131345,14 +131345,14 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
131345
131345
|
var D = L1(this, _);
|
|
131346
131346
|
return D.array.splice(y + 1), m && (D.array[y] = m), D;
|
|
131347
131347
|
};
|
|
131348
|
-
var Xi,
|
|
131348
|
+
var Xi, _r = {};
|
|
131349
131349
|
function F0(_, u) {
|
|
131350
131350
|
var A = _._origin, m = _._capacity, y = n0(m), $ = _._tail;
|
|
131351
131351
|
return (function D(q, j, G) {
|
|
131352
131352
|
return j === 0 ? (function(ne, se) {
|
|
131353
131353
|
var ge = se === y ? $ && $.array : ne && ne.array, He = se > A ? 0 : A - se, Me = m - se;
|
|
131354
131354
|
return Me > Q && (Me = Q), function() {
|
|
131355
|
-
if (He === Me) return
|
|
131355
|
+
if (He === Me) return _r;
|
|
131356
131356
|
var Le = u ? --Me : He++;
|
|
131357
131357
|
return ge && ge[Le];
|
|
131358
131358
|
};
|
|
@@ -131362,10 +131362,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
131362
131362
|
for (; ; ) {
|
|
131363
131363
|
if (He) {
|
|
131364
131364
|
var Qe = He();
|
|
131365
|
-
if (Qe !==
|
|
131365
|
+
if (Qe !== _r) return Qe;
|
|
131366
131366
|
He = null;
|
|
131367
131367
|
}
|
|
131368
|
-
if (Le === Ke) return
|
|
131368
|
+
if (Le === Ke) return _r;
|
|
131369
131369
|
var et = u ? --Ke : Le++;
|
|
131370
131370
|
He = D(Me && Me[et], se - 5, ge + (et << se));
|
|
131371
131371
|
}
|
|
@@ -131469,7 +131469,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
131469
131469
|
return y.size = _ ? _.size : 0, y._map = _, y._list = u, y.__ownerID = A, y.__hash = m, y.__altered = !1, y;
|
|
131470
131470
|
}
|
|
131471
131471
|
function j0() {
|
|
131472
|
-
return z0 || (z0 = Hc(
|
|
131472
|
+
return z0 || (z0 = Hc(hr(), S1()));
|
|
131473
131473
|
}
|
|
131474
131474
|
function q0(_, u, A) {
|
|
131475
131475
|
var m, y, $ = _._map, D = _._list, q = $.get(u), j = q !== void 0;
|
|
@@ -131550,17 +131550,17 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
131550
131550
|
}, u;
|
|
131551
131551
|
})(Ye);
|
|
131552
131552
|
D2.isStack = r0;
|
|
131553
|
-
var U0,
|
|
131553
|
+
var U0, Ar = D2.prototype;
|
|
131554
131554
|
function o0(_, u, A, m) {
|
|
131555
|
-
var y = Object.create(
|
|
131555
|
+
var y = Object.create(Ar);
|
|
131556
131556
|
return y.size = _, y._head = u, y.__ownerID = A, y.__hash = m, y.__altered = !1, y;
|
|
131557
131557
|
}
|
|
131558
131558
|
function Mo() {
|
|
131559
131559
|
return U0 || (U0 = o0(0));
|
|
131560
131560
|
}
|
|
131561
|
-
|
|
131561
|
+
Ar[B1] = !0, Ar.shift = Ar.pop, Ar.unshift = Ar.push, Ar.unshiftAll = Ar.pushAll, Ar.withMutations = Ho, Ar.wasAltered = O0, Ar.asImmutable = nr, Ar["@@transducer/init"] = Ar.asMutable = Jo, Ar["@@transducer/step"] = function(_, u) {
|
|
131562
131562
|
return _.unshift(u);
|
|
131563
|
-
},
|
|
131563
|
+
}, Ar["@@transducer/result"] = function(_) {
|
|
131564
131564
|
return _.asImmutable();
|
|
131565
131565
|
};
|
|
131566
131566
|
var Mc = "@@__IMMUTABLE_SET__@@";
|
|
@@ -131720,7 +131720,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
131720
131720
|
return A.size = _ ? _.size : 0, A._map = _, A.__ownerID = u, A;
|
|
131721
131721
|
}
|
|
131722
131722
|
function i0() {
|
|
131723
|
-
return K0 || (K0 = el(
|
|
131723
|
+
return K0 || (K0 = el(hr()));
|
|
131724
131724
|
}
|
|
131725
131725
|
jn[Mc] = !0, jn[pe] = jn.remove, jn.merge = jn.concat = jn.union, jn.withMutations = Ho, jn.asImmutable = nr, jn["@@transducer/init"] = jn.asMutable = Jo, jn["@@transducer/step"] = function(_, u) {
|
|
131726
131726
|
return _.add(u);
|
|
@@ -132846,39 +132846,39 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
132846
132846
|
return De.join("");
|
|
132847
132847
|
}, q = function(De) {
|
|
132848
132848
|
return br({ type: Jn.literal, value: De }, wo());
|
|
132849
|
-
}, j = "#", G =
|
|
132849
|
+
}, j = "#", G = fr("#", !1), ne = function() {
|
|
132850
132850
|
return br({ type: Jn.pound }, wo());
|
|
132851
|
-
}, se = $1("argumentElement"), ge = "{", He =
|
|
132851
|
+
}, se = $1("argumentElement"), ge = "{", He = fr("{", !1), Me = "}", Le = fr("}", !1), Ke = function(De) {
|
|
132852
132852
|
return br({ type: Jn.argument, value: De }, wo());
|
|
132853
|
-
}, Qe = $1("numberSkeletonId"), et = /^['\/{}]/, vt = P0(["'", "/", "{", "}"], !1, !1), gt = { type: "any" }, Tt = $1("numberSkeletonTokenOption"), ct = "/", nt =
|
|
132853
|
+
}, Qe = $1("numberSkeletonId"), et = /^['\/{}]/, vt = P0(["'", "/", "{", "}"], !1, !1), gt = { type: "any" }, Tt = $1("numberSkeletonTokenOption"), ct = "/", nt = fr("/", !1), kt = function(De) {
|
|
132854
132854
|
return De;
|
|
132855
132855
|
}, Lt = $1("numberSkeletonToken"), qt = function(De, xe) {
|
|
132856
132856
|
return { stem: De, options: xe };
|
|
132857
132857
|
}, ra = function(De) {
|
|
132858
132858
|
return br({ type: 0, tokens: De }, wo());
|
|
132859
|
-
}, Zt = "::", Ta =
|
|
132859
|
+
}, Zt = "::", Ta = fr("::", !1), Ca = function(De) {
|
|
132860
132860
|
return De;
|
|
132861
132861
|
}, ua = function() {
|
|
132862
132862
|
return go.push("numberArgStyle"), !0;
|
|
132863
132863
|
}, Da = function(De) {
|
|
132864
132864
|
return go.pop(), De.replace(/\s*$/, "");
|
|
132865
|
-
}, Sa = ",", Ia =
|
|
132865
|
+
}, Sa = ",", Ia = fr(",", !1), Nn = "number", en = fr("number", !1), Aa = function(De, xe, Ze) {
|
|
132866
132866
|
return br({ type: xe === "number" ? Jn.number : xe === "date" ? Jn.date : Jn.time, style: Ze && Ze[2], value: De }, wo());
|
|
132867
|
-
}, _n = "'", Hn =
|
|
132867
|
+
}, _n = "'", Hn = fr("'", !1), fn = /^[^']/, pn = P0(["'"], !0, !1), Gn = /^[^a-zA-Z'{}]/, An = P0([["a", "z"], ["A", "Z"], "'", "{", "}"], !0, !1), Jr = /^[a-zA-Z]/, Tr = P0([["a", "z"], ["A", "Z"]], !1, !1), ea = function(De) {
|
|
132868
132868
|
return br({ type: 1, pattern: De }, wo());
|
|
132869
132869
|
}, xa = function() {
|
|
132870
132870
|
return go.push("dateOrTimeArgStyle"), !0;
|
|
132871
|
-
}, Yn = "date", sr =
|
|
132871
|
+
}, Yn = "date", sr = fr("date", !1), Cr = "time", Pn = fr("time", !1), yr = "plural", Hr = fr("plural", !1), d1 = "selectordinal", Mr = fr("selectordinal", !1), mo = "offset:", Ki = fr("offset:", !1), Yd = function(De, xe, Ze, Ct) {
|
|
132872
132872
|
return br({ type: Jn.plural, pluralType: xe === "plural" ? "cardinal" : "ordinal", value: De, offset: Ze ? Ze[2] : 0, options: Ct.reduce(function(xt, Ha) {
|
|
132873
132873
|
var Wa = Ha.id, pa = Ha.value, za = Ha.location;
|
|
132874
132874
|
return Wa in xt && Yp('Duplicate option "' + Wa + '" in plural element: "' + Gp() + '"', Pf()), xt[Wa] = { value: pa, location: za }, xt;
|
|
132875
132875
|
}, {}) }, wo());
|
|
132876
|
-
}, Up = "select", Jd =
|
|
132876
|
+
}, Up = "select", Jd = fr("select", !1), Qd = function(De, xe) {
|
|
132877
132877
|
return br({ type: Jn.select, value: De, options: xe.reduce(function(Ze, Ct) {
|
|
132878
132878
|
var xt = Ct.id, Ha = Ct.value, Wa = Ct.location;
|
|
132879
132879
|
return xt in Ze && Yp('Duplicate option "' + xt + '" in select element: "' + Gp() + '"', Pf()), Ze[xt] = { value: Ha, location: Wa }, Ze;
|
|
132880
132880
|
}, {}) }, wo());
|
|
132881
|
-
}, Xd = "=", e3 =
|
|
132881
|
+
}, Xd = "=", e3 = fr("=", !1), t3 = function(De) {
|
|
132882
132882
|
return go.push("select"), !0;
|
|
132883
132883
|
}, n3 = function(De, xe) {
|
|
132884
132884
|
return go.pop(), br({ id: De, value: xe }, wo());
|
|
@@ -132886,19 +132886,19 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
132886
132886
|
return go.push("plural"), !0;
|
|
132887
132887
|
}, o3 = function(De, xe) {
|
|
132888
132888
|
return go.pop(), br({ id: De, value: xe }, wo());
|
|
132889
|
-
}, i3 = $1("whitespace"), l3 = /^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, s3 = P0([[" ", "\r"], " ", "
", " ", " ", [" ", " "], "\u2028", "\u2029", " ", " ", " "], !1, !1), f3 = $1("syntax pattern"), p3 = /^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/, u3 = P0([["!", "/"], [":", "@"], ["[", "^"], "`", ["{", "~"], ["¡", "§"], "©", "«", "¬", "®", "°", "±", "¶", "»", "¿", "×", "÷", ["‐", "‧"], ["‰", "‾"], ["⁁", "⁓"], ["⁕", "⁞"], ["←", ""], ["─", "❵"], ["➔", "⯿"], ["⸀", ""], ["、", "〃"], ["〈", "〠"], "〰", "﴾", "﴿", "﹅", "﹆"], !1, !1), d3 = $1("optional whitespace"), h3 = $1("number"), _3 = "-", A3 =
|
|
132889
|
+
}, i3 = $1("whitespace"), l3 = /^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, s3 = P0([[" ", "\r"], " ", "
", " ", " ", [" ", " "], "\u2028", "\u2029", " ", " ", " "], !1, !1), f3 = $1("syntax pattern"), p3 = /^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/, u3 = P0([["!", "/"], [":", "@"], ["[", "^"], "`", ["{", "~"], ["¡", "§"], "©", "«", "¬", "®", "°", "±", "¶", "»", "¿", "×", "÷", ["‐", "‧"], ["‰", "‾"], ["⁁", "⁓"], ["⁕", "⁞"], ["←", ""], ["─", "❵"], ["➔", "⯿"], ["⸀", ""], ["、", "〃"], ["〈", "〠"], "〰", "﴾", "﴿", "﹅", "﹆"], !1, !1), d3 = $1("optional whitespace"), h3 = $1("number"), _3 = "-", A3 = fr("-", !1), m3 = function(De, xe) {
|
|
132890
132890
|
return xe ? De ? -xe : xe : 0;
|
|
132891
|
-
}, E3 = $1("double apostrophes"), Cc = "''", If =
|
|
132891
|
+
}, E3 = $1("double apostrophes"), Cc = "''", If = fr("''", !1), g3 = function() {
|
|
132892
132892
|
return "'";
|
|
132893
132893
|
}, w3 = function(De, xe) {
|
|
132894
132894
|
return De + xe.replace("''", "'");
|
|
132895
132895
|
}, v3 = function(De) {
|
|
132896
132896
|
return !(De === "{" || du() && De === "#" || go.length > 1 && De === "}");
|
|
132897
132897
|
}, C3 = `
|
|
132898
|
-
`, y3 =
|
|
132898
|
+
`, y3 = fr(`
|
|
132899
132899
|
`, !1), R3 = function(De) {
|
|
132900
132900
|
return De === "{" || De === "}" || du() && De === "#";
|
|
132901
|
-
}, b3 = $1("argNameOrNumber"), V3 = $1("argNumber"), T3 = "0", H3 =
|
|
132901
|
+
}, b3 = $1("argNameOrNumber"), V3 = $1("argNumber"), T3 = "0", H3 = fr("0", !1), M3 = function() {
|
|
132902
132902
|
return 0;
|
|
132903
132903
|
}, x3 = /^[1-9]/, $3 = P0([["1", "9"]], !1, !1), Wp = /^[0-9]/, Kp = P0([["0", "9"]], !1, !1), I3 = function(De) {
|
|
132904
132904
|
return parseInt(De.join(""), 10);
|
|
@@ -132918,7 +132918,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
132918
132918
|
return new B2(Ze, [], "", Ct);
|
|
132919
132919
|
})(De, xe = xe !== void 0 ? xe : ys(un, ye));
|
|
132920
132920
|
}
|
|
132921
|
-
function
|
|
132921
|
+
function fr(De, xe) {
|
|
132922
132922
|
return { type: "literal", text: De, ignoreCase: xe };
|
|
132923
132923
|
}
|
|
132924
132924
|
function P0(De, xe, Ze) {
|
|
@@ -137467,7 +137467,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
137467
137467
|
}
|
|
137468
137468
|
}
|
|
137469
137469
|
ps.propTypes = { conceptUuid: V().string, enabled: V().bool, formFieldPath: V().string, multiSelect: V().bool, nameKey: V().string, onValueChange: V().func.isRequired, options: V().array.isRequired, validate: V().bool.isRequired, validateForm: V().bool.isRequired, validations: V().array.isRequired, value: V().any, valueKey: V().string }, ps.defaultProps = { enabled: !0, nameKey: "name", valueKey: "value" }, Yt.A.registerComponent("button", ps);
|
|
137470
|
-
class
|
|
137470
|
+
class lf extends P.Component {
|
|
137471
137471
|
constructor(u) {
|
|
137472
137472
|
super(u), this.onValueChange = this.onValueChange.bind(this), this.state = { codedData: this.props.options, success: !1, terminologyServiceConfig: { limit: 30 } };
|
|
137473
137473
|
}
|
|
@@ -137535,8 +137535,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
137535
137535
|
return null;
|
|
137536
137536
|
}
|
|
137537
137537
|
}
|
|
137538
|
-
|
|
137539
|
-
class
|
|
137538
|
+
lf.propTypes = { conceptUuid: V().string, enabled: V().bool, formFieldPath: V().string, intl: V().object, onChange: V().func.isRequired, options: V().array.isRequired, properties: V().object.isRequired, showNotification: V().func.isRequired, validate: V().bool.isRequired, validateForm: V().bool.isRequired, validations: V().array.isRequired, value: V().any }, Yt.A.registerComponent("Coded", lf);
|
|
137539
|
+
class sf extends P.Component {
|
|
137540
137540
|
constructor(u) {
|
|
137541
137541
|
super(u);
|
|
137542
137542
|
const A = this._getErrors(u.value) || [], m = !!this._isCreateByAddMore() && this._hasErrors(A);
|
|
@@ -137578,8 +137578,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
137578
137578
|
return (0, he.jsx)("input", { className: fa()({ "form-builder-error": this.state.hasErrors }), disabled: !this.props.enabled, id: this.props.conceptUuid, onChange: (A) => this.handleChange(A), type: "date", value: u });
|
|
137579
137579
|
}
|
|
137580
137580
|
}
|
|
137581
|
-
|
|
137582
|
-
class
|
|
137581
|
+
sf.propTypes = { conceptUuid: V().string, enabled: V().bool, formFieldPath: V().string, onChange: V().func.isRequired, validate: V().bool.isRequired, validateForm: V().bool.isRequired, validations: V().array.isRequired, value: V().string }, Yt.A.registerComponent("date", sf);
|
|
137582
|
+
class ff extends P.Component {
|
|
137583
137583
|
constructor(u) {
|
|
137584
137584
|
super(u), this.dateValue = u.value ? u.value.split(" ")[0] : "", this.timeValue = u.value ? u.value.split(" ")[1] : "";
|
|
137585
137585
|
const A = this._getAllErrors(), m = !!this._isCreateByAddMore() && this._hasErrors(A);
|
|
@@ -137641,7 +137641,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
137641
137641
|
return (0, he.jsxs)("div", { children: [(0, he.jsx)("input", { className: fa()({ "form-builder-error": this.state.hasErrors }), disabled: !this.props.enabled, id: this.props.conceptUuid, onChange: (u) => this.handleDateChange(u), type: "date", value: this.dateValue }), (0, he.jsx)("input", { className: fa()({ "form-builder-error": this.state.hasErrors }), disabled: !this.props.enabled, id: this.props.conceptUuid, onChange: (u) => this.handleTimeChange(u), type: "time", value: this.timeValue })] });
|
|
137642
137642
|
}
|
|
137643
137643
|
}
|
|
137644
|
-
|
|
137644
|
+
ff.propTypes = { conceptUuid: V().string, enabled: V().bool, formFieldPath: V().string, onChange: V().func.isRequired, validate: V().bool.isRequired, validateForm: V().bool.isRequired, validations: V().array.isRequired, value: V().string }, Yt.A.registerComponent("dateTime", ff);
|
|
137645
137645
|
class qi extends so(P.Component) {
|
|
137646
137646
|
constructor(u) {
|
|
137647
137647
|
super(u);
|
|
@@ -137906,7 +137906,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
137906
137906
|
var od = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "onCreateOption", "options", "onChange"], Rp = function() {
|
|
137907
137907
|
var _ = arguments.length > 1 ? arguments[1] : void 0, u = arguments.length > 2 ? arguments[2] : void 0, A = String(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "").toLowerCase(), m = String(u.getOptionValue(_)).toLowerCase(), y = String(u.getOptionLabel(_)).toLowerCase();
|
|
137908
137908
|
return m === A || y === A;
|
|
137909
|
-
},
|
|
137909
|
+
}, pf = { formatCreateLabel: function(_) {
|
|
137910
137910
|
return 'Create "'.concat(_, '"');
|
|
137911
137911
|
}, isValidNewOption: function(_, u, A, m) {
|
|
137912
137912
|
return !(!_ || u.some(function(y) {
|
|
@@ -137918,7 +137918,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
137918
137918
|
return { label: u, value: _, __isNew__: !0 };
|
|
137919
137919
|
} }, cd = (0, P.forwardRef)(function(_, u) {
|
|
137920
137920
|
var A = (function(m) {
|
|
137921
|
-
var y = m.allowCreateWhileLoading, $ = y !== void 0 && y, D = m.createOptionPosition, q = D === void 0 ? "last" : D, j = m.formatCreateLabel, G = j === void 0 ?
|
|
137921
|
+
var y = m.allowCreateWhileLoading, $ = y !== void 0 && y, D = m.createOptionPosition, q = D === void 0 ? "last" : D, j = m.formatCreateLabel, G = j === void 0 ? pf.formatCreateLabel : j, ne = m.isValidNewOption, se = ne === void 0 ? pf.isValidNewOption : ne, ge = m.getNewOptionData, He = ge === void 0 ? pf.getNewOptionData : ge, Me = m.onCreateOption, Le = m.options, Ke = Le === void 0 ? [] : Le, Qe = m.onChange, et = Lr(m, od), vt = et.getOptionValue, gt = vt === void 0 ? hp : vt, Tt = et.getOptionLabel, ct = Tt === void 0 ? dp : Tt, nt = et.inputValue, kt = et.isLoading, Lt = et.isMulti, qt = et.value, ra = et.name, Zt = (0, P.useMemo)(function() {
|
|
137922
137922
|
return se(nt, as(qt), Ke, { getOptionValue: gt, getOptionLabel: ct }) ? He(nt, G(nt)) : void 0;
|
|
137923
137923
|
}, [G, He, ct, gt, nt, se, Ke, qt]), Ta = (0, P.useMemo)(function() {
|
|
137924
137924
|
return !$ && kt || !Zt ? Ke : q === "first" ? [Zt].concat(ga(Ke)) : [].concat(ga(Ke), [Zt]);
|
|
@@ -137956,7 +137956,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
137956
137956
|
}
|
|
137957
137957
|
}
|
|
137958
137958
|
As.propTypes = { backspaceRemoves: V().bool.isRequired, clearable: V().bool.isRequired, conceptUuid: V().string, deleteRemoves: V().bool.isRequired, locale: V().string, multi: V().bool.isRequired, onChange: V().func.isRequired, options: V().array.isRequired, translationKey: V().string, type: V().string, value: V().string }, As.defaultProps = { multi: !1, clearable: !1, backspaceRemoves: !1, deleteRemoves: !1 }, Yt.A.registerComponent("freeTextAutoComplete", As);
|
|
137959
|
-
class
|
|
137959
|
+
class uf {
|
|
137960
137960
|
constructor(u) {
|
|
137961
137961
|
let A = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
137962
137962
|
this.value = u, this.id = A;
|
|
@@ -137968,7 +137968,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
137968
137968
|
class _o extends P.Component {
|
|
137969
137969
|
constructor(u) {
|
|
137970
137970
|
super(u);
|
|
137971
|
-
const { metadata: A, metadata: { id: m, value: y } } = u, $ = A.translationKey || new
|
|
137971
|
+
const { metadata: A, metadata: { id: m, value: y } } = u, $ = A.translationKey || new uf(y, m).build();
|
|
137972
137972
|
this.state = { value: y, translationKey: $ }, this.onDoubleClick = this.onDoubleClick.bind(this), this.onBlur = this.onBlur.bind(this), this.showDeleteButton = this.showDeleteButton.bind(this), this.onEnterKey = this.onEnterKey.bind(this), this.storeComponentRef = this.storeComponentRef.bind(this), this.getJsonDefinition = this.getJsonDefinition.bind(this);
|
|
137973
137973
|
}
|
|
137974
137974
|
componentDidUpdate() {
|
|
@@ -138279,9 +138279,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
138279
138279
|
}
|
|
138280
138280
|
}
|
|
138281
138281
|
Wi.propTypes = { columns: V().number, dragAllowed: V().bool, dragSourceCell: V().instanceOf(Ao), idGenerator: V().object.isRequired, isBeingDragged: V().bool, loadFormJson: V().func, onChange: V().func.isRequired, onControlDrop: V().func, rowData: V().array.isRequired, rowPosition: V().number.isRequired, setError: V().func, showDeleteButton: V().bool, wrapper: V().object.isRequired }, Wi.defaultProps = { columns: bp };
|
|
138282
|
-
const
|
|
138283
|
-
Yt.A.registerDesignerComponent("row",
|
|
138284
|
-
var
|
|
138282
|
+
const md = { control: Wi, designProperties: { isTopLevelComponent: !1 }, metadata: { attributes: [{ name: "columns", dataType: "number", defaultValue: bp.toString() }, { name: "rowPosition", dataType: "number", defaultValue: 0 }] } };
|
|
138283
|
+
Yt.A.registerDesignerComponent("row", md);
|
|
138284
|
+
var Ed = __webpack_require__(7551), gd = __webpack_require__.n(Ed);
|
|
138285
138285
|
class C2 extends P.Component {
|
|
138286
138286
|
constructor(u) {
|
|
138287
138287
|
super(u), this.rowData = Lo()(u.controls, "properties.location.row"), this.state = { rowCount: this._getRowCount() }, this.changeHandler = this.changeHandler.bind(this), this.rowReference = this.rowReference.bind(this), this.rowRef = {};
|
|
@@ -138294,7 +138294,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
138294
138294
|
return [].concat(...u);
|
|
138295
138295
|
}
|
|
138296
138296
|
_getRowCount() {
|
|
138297
|
-
const u =
|
|
138297
|
+
const u = gd()(this.props.controls, (A) => A.properties.location.row);
|
|
138298
138298
|
return u ? Math.max(u.properties.location.row + 2, this.props.minRows) : this.props.minRows;
|
|
138299
138299
|
}
|
|
138300
138300
|
changeHandler(u) {
|
|
@@ -138313,8 +138313,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
138313
138313
|
}
|
|
138314
138314
|
}
|
|
138315
138315
|
C2.propTypes = { controls: V().array.isRequired, dragAllowed: V().bool, dragSourceCell: V().instanceOf(Ao), idGenerator: V().object.isRequired, isBeingDragged: V().bool, loadFormJson: V().func, minColumns: V().number, minRows: V().number, onControlDrop: V().func, setError: V().func, showDeleteButton: V().bool, wrapper: V().object.isRequired }, C2.defaultProps = { minColumns: Ht.Ay.Grid.minColumns, minRows: Ht.Ay.Grid.minRows, unsupportedProperties: [] };
|
|
138316
|
-
const
|
|
138317
|
-
Yt.A.registerDesignerComponent("grid",
|
|
138316
|
+
const wd = { control: C2, designProperties: { isTopLevelComponent: !1 }, metadata: { attributes: [{ name: "rowCount", dataType: "number" }] } };
|
|
138317
|
+
Yt.A.registerDesignerComponent("grid", wd);
|
|
138318
138318
|
class Ef extends P.Component {
|
|
138319
138319
|
getJsonDefinition() {
|
|
138320
138320
|
return this.props.metadata;
|
|
@@ -138327,8 +138327,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
138327
138327
|
}
|
|
138328
138328
|
}
|
|
138329
138329
|
Ef.propTypes = { metadata: V().shape({ concept: V().object.isRequired, displayType: V().string, id: V().string.isRequired, options: V().array.isRequired, properties: V().object.isRequired, type: V().string }) };
|
|
138330
|
-
const
|
|
138331
|
-
Yt.A.registerDesignerComponent("radio",
|
|
138330
|
+
const vd = { control: Ef, designProperties: { isTopLevelComponent: !1 }, metadata: { attributes: [] } };
|
|
138331
|
+
Yt.A.registerDesignerComponent("radio", vd);
|
|
138332
138332
|
class gf extends P.Component {
|
|
138333
138333
|
getJsonDefinition() {
|
|
138334
138334
|
return this.props.options;
|
|
@@ -138341,8 +138341,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
138341
138341
|
}
|
|
138342
138342
|
}
|
|
138343
138343
|
gf.propTypes = { options: V().array.isRequired };
|
|
138344
|
-
const
|
|
138345
|
-
Yt.A.registerDesignerComponent("button",
|
|
138344
|
+
const Cd = { control: gf, designProperties: { isTopLevelComponent: !1 }, metadata: { attributes: [] } };
|
|
138345
|
+
Yt.A.registerDesignerComponent("button", Cd);
|
|
138346
138346
|
class wf extends P.Component {
|
|
138347
138347
|
getJsonDefinition() {
|
|
138348
138348
|
return this.updatedMetadata;
|
|
@@ -138355,9 +138355,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
138355
138355
|
}
|
|
138356
138356
|
}
|
|
138357
138357
|
wf.propTypes = { metadata: V().shape({ concept: V().object.isRequired, id: V().string.isRequired, options: V().array, properties: V().object, type: V().string.isRequired }) };
|
|
138358
|
-
const
|
|
138359
|
-
Yt.A.registerDesignerComponent("boolean",
|
|
138360
|
-
class
|
|
138358
|
+
const yd = { control: wf, designProperties: { isTopLevelComponent: !1 }, metadata: { attributes: [{ name: "properties", dataType: "complex", attributes: [] }] } };
|
|
138359
|
+
Yt.A.registerDesignerComponent("boolean", yd);
|
|
138360
|
+
class bd extends P.Component {
|
|
138361
138361
|
constructor(u) {
|
|
138362
138362
|
super(u), this.data = u, this.onDragStart = this.onDragStart.bind(this), this.onDragEnd = this.onDragEnd.bind(this);
|
|
138363
138363
|
}
|
|
@@ -138376,7 +138376,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
138376
138376
|
return u;
|
|
138377
138377
|
}
|
|
138378
138378
|
}
|
|
138379
|
-
var
|
|
138379
|
+
var Vd = __webpack_require__(8055), Td = __webpack_require__.n(Vd);
|
|
138380
138380
|
class vf extends P.Component {
|
|
138381
138381
|
constructor(u) {
|
|
138382
138382
|
super(u), this.storeChildRef = this.storeChildRef.bind(this), this.state = { codedData: this._getOptionsRepresentation(this.props.metadata.concept.answers), success: !1 };
|
|
@@ -138398,11 +138398,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
138398
138398
|
}) : this.setState({ success: !0 });
|
|
138399
138399
|
}
|
|
138400
138400
|
getJsonDefinition() {
|
|
138401
|
-
const u =
|
|
138401
|
+
const u = Td()(this.props.metadata), { concept: A, id: m } = u, y = u.properties.url ? this.state.codedData : A.answers;
|
|
138402
138402
|
return Vr()(y, ($) => {
|
|
138403
138403
|
if (!$.translationKey) {
|
|
138404
138404
|
const D = u.properties.url ? $.name : $.name.display;
|
|
138405
|
-
$.translationKey = new
|
|
138405
|
+
$.translationKey = new uf(D, m).build();
|
|
138406
138406
|
}
|
|
138407
138407
|
}), Object.assign({}, this.props.metadata, { concept: A });
|
|
138408
138408
|
}
|
|
@@ -138422,8 +138422,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
138422
138422
|
}
|
|
138423
138423
|
}
|
|
138424
138424
|
vf.propTypes = { metadata: V().shape({ concept: V().object.isRequired, displayType: V().string, id: V().string.isRequired, options: V().array, properties: V().object, type: V().string.isRequired }), setError: V().func };
|
|
138425
|
-
const
|
|
138426
|
-
Yt.A.registerDesignerComponent("Coded",
|
|
138425
|
+
const Md = { control: vf, designProperties: { isTopLevelComponent: !1 }, metadata: { attributes: [{ name: "properties", dataType: "complex", attributes: [{ name: "url", dataType: "string", elementType: "text", defaultValue: "" }, { name: "autoComplete", dataType: "boolean", defaultValue: !1 }, { name: "multiSelect", dataType: "boolean", defaultValue: !1 }, { name: "dropDown", dataType: "boolean", defaultValue: !1 }] }] } };
|
|
138426
|
+
Yt.A.registerDesignerComponent("Coded", Md);
|
|
138427
138427
|
class Vp {
|
|
138428
138428
|
constructor(u) {
|
|
138429
138429
|
this.descriptor = u, this.metadata = this.metadata.bind(this), this.data = this.data.bind(this), this.parsedMetadata = this.metadata();
|
|
@@ -138464,7 +138464,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
138464
138464
|
return { designProperties: this.descriptor.designProperties, metadata: this.parsedMetadata, control: this.descriptor.control };
|
|
138465
138465
|
}
|
|
138466
138466
|
}
|
|
138467
|
-
class
|
|
138467
|
+
class xd {
|
|
138468
138468
|
getMetadataForConcept(u, A) {
|
|
138469
138469
|
let m, y = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "obsGroupControl", $ = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "obsControl", D = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : { row: 0, column: 0 }, q = arguments.length > 5 ? arguments[5] : void 0;
|
|
138470
138470
|
if (u.set) {
|
|
@@ -138518,10 +138518,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
138518
138518
|
}
|
|
138519
138519
|
Es.propTypes = { clearSelectedControl: V().func.isRequired, deleteControl: V().func.isRequired, dragSourceCell: V().instanceOf(Ao), idGenerator: V().object.isRequired, isBeingDragged: V().bool, loadFormJson: V().func, metadata: V().shape({ concept: V().object, controls: V().array, displayType: V().string, id: V().string.isRequired, label: V().object, properties: V().shape({ location: V().shape({ row: V().number, column: V().number }) }), type: V().string.isRequired }), onControlDrop: V().func, onSelect: V().func.isRequired, showDeleteButton: V().bool, wrapper: V().object.isRequired }, Es.injectConceptToMetadata = (_, u, A) => {
|
|
138520
138520
|
const m = new _f(u), y = _.properties && _.properties.location;
|
|
138521
|
-
return new
|
|
138521
|
+
return new xd().getMetadataForConcept(m.getConcept(), A, "obsGroupControl", "obsControl", y, _.id);
|
|
138522
138522
|
};
|
|
138523
|
-
const
|
|
138524
|
-
Yt.A.registerDesignerComponent("obsGroupControl",
|
|
138523
|
+
const $d = { control: Es, designProperties: { displayName: "ObsGroup", isTopLevelComponent: !0 }, metadata: { attributes: [{ name: "type", dataType: "text", defaultValue: "obsGroupControl" }, { name: "label", dataType: "complex", attributes: [{ name: "type", dataType: "text", defaultValue: "label" }, { name: "value", dataType: "text", defaultValue: "Label" }] }, { name: "properties", dataType: "complex", attributes: [{ name: "addMore", dataType: "boolean", defaultValue: !1 }] }] } };
|
|
138524
|
+
Yt.A.registerDesignerComponent("obsGroupControl", $d);
|
|
138525
138525
|
class Cf extends P.Component {
|
|
138526
138526
|
getJsonDefinition() {
|
|
138527
138527
|
return this.props.metadata;
|
|
@@ -138531,8 +138531,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
138531
138531
|
}
|
|
138532
138532
|
}
|
|
138533
138533
|
Cf.propTypes = { metadata: V().shape({ concept: V().object.isRequired, displayType: V().string, id: V().string.isRequired, properties: V().object.isRequired, type: V().string }) };
|
|
138534
|
-
const
|
|
138535
|
-
Yt.A.registerDesignerComponent("date",
|
|
138534
|
+
const Id = { control: Cf, designProperties: { isTopLevelComponent: !1 }, metadata: { attributes: [{ name: "properties", dataType: "complex", attributes: [{ name: "allowFutureDates", dataType: "boolean", defaultValue: !1 }] }] } };
|
|
138535
|
+
Yt.A.registerDesignerComponent("date", Id);
|
|
138536
138536
|
class yf extends P.Component {
|
|
138537
138537
|
getJsonDefinition() {
|
|
138538
138538
|
return this.props.metadata;
|
|
@@ -138542,8 +138542,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
138542
138542
|
}
|
|
138543
138543
|
}
|
|
138544
138544
|
yf.propTypes = { metadata: V().shape({ concept: V().object.isRequired, displayType: V().string, id: V().string.isRequired, properties: V().object.isRequired, type: V().string }) };
|
|
138545
|
-
const
|
|
138546
|
-
Yt.A.registerDesignerComponent("dateTime",
|
|
138545
|
+
const Nd = { control: yf, designProperties: { isTopLevelComponent: !1 }, metadata: { attributes: [{ name: "properties", dataType: "complex", attributes: [{ name: "allowFutureDates", dataType: "boolean", defaultValue: !1 }] }] } };
|
|
138546
|
+
Yt.A.registerDesignerComponent("dateTime", Nd);
|
|
138547
138547
|
class Rf extends P.Component {
|
|
138548
138548
|
constructor(u) {
|
|
138549
138549
|
super(u), this.metadata = u.metadata, this.mapper = new z1(), this.storeGridRef = this.storeGridRef.bind(this), this.storeLabelRef = this.storeLabelRef.bind(this), this.deleteControl = this.deleteControl.bind(this);
|
|
@@ -138584,9 +138584,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
138584
138584
|
}
|
|
138585
138585
|
}
|
|
138586
138586
|
Rf.propTypes = { clearSelectedControl: V().func.isRequired, deleteControl: V().func.isRequired, dispatch: V().func, dragSourceCell: V().instanceOf(Ao), idGenerator: V().object.isRequired, isBeingDragged: V().bool, loadFormJson: V().func, metadata: V().shape({ controls: V().array, displayType: V().string, id: V().string.isRequired, label: V().object, properties: V().shape({ location: V().shape({ row: V().number, column: V().number }) }), type: V().string.isRequired }), onControlDrop: V().func, onSelect: V().func.isRequired, showDeleteButton: V().bool, wrapper: V().func.isRequired };
|
|
138587
|
-
const
|
|
138588
|
-
Yt.A.registerDesignerComponent("section",
|
|
138589
|
-
const
|
|
138587
|
+
const Pd = { control: Rf, designProperties: { displayName: "Section", isTopLevelComponent: !0 }, metadata: { attributes: [{ name: "type", dataType: "text", defaultValue: "section" }, { name: "label", dataType: "complex", attributes: [{ name: "type", dataType: "text", defaultValue: "label" }, { name: "value", dataType: "text", defaultValue: "Section" }] }, { name: "properties", dataType: "complex", attributes: [{ name: "addMore", dataType: "boolean", defaultValue: !1 }] }] } };
|
|
138588
|
+
Yt.A.registerDesignerComponent("section", Pd);
|
|
138589
|
+
const Dd = ["obsControl"], Sd = ["addMore"];
|
|
138590
138590
|
class bf extends P.Component {
|
|
138591
138591
|
constructor(u) {
|
|
138592
138592
|
super(u), this.metadata = u.metadata, this.labelControls = [], this.handleControlDrop = this.handleControlDrop.bind(this), this.storeGridRef = this.storeGridRef.bind(this), this.storeLabelRef = this.storeLabelRef.bind(this), this.storeHeaderRef = this.storeHeaderRef.bind(this), this.deleteControl = this.deleteControl.bind(this);
|
|
@@ -138639,8 +138639,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
138639
138639
|
let { metadata: A, cellMetadata: m, successCallback: y, dropCell: $ } = u;
|
|
138640
138640
|
const D = this.props.dragSourceCell;
|
|
138641
138641
|
this.props.onControlDrop({ metadata: A, cellMetadata: m, successCallback: function() {
|
|
138642
|
-
const q =
|
|
138643
|
-
q && j ? y(Object.assign({}, A, { unsupportedProperties:
|
|
138642
|
+
const q = Dd.includes(A.type), j = m.length === 0;
|
|
138643
|
+
q && j ? y(Object.assign({}, A, { unsupportedProperties: Sd })) : D && D.updateMetadata(A);
|
|
138644
138644
|
}, dropCell: $ });
|
|
138645
138645
|
}
|
|
138646
138646
|
render() {
|
|
@@ -138651,16 +138651,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
138651
138651
|
}
|
|
138652
138652
|
}
|
|
138653
138653
|
bf.propTypes = { clearSelectedControl: V().func.isRequired, deleteControl: V().func.isRequired, dispatch: V().func, dragSourceCell: V().instanceOf(Ao), idGenerator: V().object.isRequired, isBeingDragged: V().bool, loadFormJson: V().func, metadata: V().shape({ columnHeaders: V().arrayOf(V().string), controls: V().array, displayType: V().string, id: V().string.isRequired, label: V().object, properties: V().shape({ location: V().shape({ column: V().number, row: V().number }) }), type: V().string.isRequired }), onControlDrop: V().func, onSelect: V().func.isRequired, showDeleteButton: V().bool, wrapper: V().func.isRequired };
|
|
138654
|
-
const
|
|
138655
|
-
Yt.A.registerDesignerComponent("table",
|
|
138654
|
+
const Ld = { control: bf, designProperties: { displayName: "Table", isTopLevelComponent: !0 }, metadata: { attributes: [{ name: "type", dataType: "text", defaultValue: "table" }, { name: "label", dataType: "complex", attributes: [{ name: "type", dataType: "text", defaultValue: "label" }, { name: "value", dataType: "text", defaultValue: "Table" }] }, { name: "properties", dataType: "complex", attributes: [] }] } };
|
|
138655
|
+
Yt.A.registerDesignerComponent("table", Ld);
|
|
138656
138656
|
class Vf extends P.PureComponent {
|
|
138657
138657
|
render() {
|
|
138658
138658
|
return (0, he.jsx)("div", { className: "fl complex-component-designer", children: (0, he.jsx)("input", { disabled: !0, type: "file" }) });
|
|
138659
138659
|
}
|
|
138660
138660
|
}
|
|
138661
138661
|
Vf.propTypes = { metadata: V().shape({ concept: V().object.isRequired, displayType: V().string, id: V().string.isRequired, properties: V().object.isRequired, type: V().string }) };
|
|
138662
|
-
const
|
|
138663
|
-
Yt.A.registerDesignerComponent("ImageUrlHandler",
|
|
138662
|
+
const Od = { control: Vf, designProperties: { isTopLevelComponent: !1 }, metadata: { attributes: [{ name: "properties", dataType: "complex", attributes: [{ name: "sameLine", dataType: "boolean", defaultValue: !1 }] }] } };
|
|
138663
|
+
Yt.A.registerDesignerComponent("ImageUrlHandler", Od);
|
|
138664
138664
|
class Tf extends P.PureComponent {
|
|
138665
138665
|
render() {
|
|
138666
138666
|
return (0, he.jsx)("div", { className: "fl complex-component-designer", children: (0, he.jsx)("input", { disabled: !0, type: "file" }) });
|
|
@@ -139265,7 +139265,7 @@ function createConditionsBundleEntries({
|
|
|
139265
139265
|
for (const h of p) {
|
|
139266
139266
|
if (!h || typeof h.durationValue != "number" || !h.durationUnit || h.durationValue === null || h.durationUnit === null)
|
|
139267
139267
|
throw new Error(CONSULTATION_ERROR_MESSAGES.INVALID_CONDITION_PARAMS);
|
|
139268
|
-
const E =
|
|
139268
|
+
const E = Nb(
|
|
139269
139269
|
f,
|
|
139270
139270
|
h.durationValue,
|
|
139271
139271
|
h.durationUnit
|
|
@@ -139328,7 +139328,7 @@ function getEncounterReference(p, c) {
|
|
|
139328
139328
|
return p ? `Encounter/${p.id}` : c;
|
|
139329
139329
|
}
|
|
139330
139330
|
async function postEncounterBundle(p) {
|
|
139331
|
-
return await ve(
|
|
139331
|
+
return await ve(Gy, p);
|
|
139332
139332
|
}
|
|
139333
139333
|
function useDebounce(p, c = 500) {
|
|
139334
139334
|
const [a, s] = useState(p);
|
|
@@ -139374,13 +139374,13 @@ const useAllergenSearch = (p = "") => {
|
|
|
139374
139374
|
allergyReactionUuid: Z
|
|
139375
139375
|
} = T.consultationPad.allergyConceptMap;
|
|
139376
139376
|
try {
|
|
139377
|
-
const F = await
|
|
139377
|
+
const F = await jb(
|
|
139378
139378
|
B,
|
|
139379
139379
|
z,
|
|
139380
139380
|
O
|
|
139381
139381
|
);
|
|
139382
139382
|
a(F);
|
|
139383
|
-
const U = await
|
|
139383
|
+
const U = await Vb(Z);
|
|
139384
139384
|
f(U);
|
|
139385
139385
|
} catch (F) {
|
|
139386
139386
|
const U = Br(F);
|
|
@@ -139551,10 +139551,10 @@ const allergiesFormTile = "AllergiesForm-module_allergiesFormTile__1UsbU", aller
|
|
|
139551
139551
|
selectedAllergyItem,
|
|
139552
139552
|
duplicateNotification: duplicateNotification$2
|
|
139553
139553
|
}, allergiesQueryKeys = (p) => ["allergies", p], AllergiesForm = React__default.memo(({ encounterSessionStartContext: p }) => {
|
|
139554
|
-
const c = !!p?.preloadedAllergies, { t: a } = useTranslation(), s =
|
|
139555
|
-
|
|
139554
|
+
const c = !!p?.preloadedAllergies, { t: a } = useTranslation(), s = mr(), { addNotification: f } = or(), d = a3(
|
|
139555
|
+
Yqt.ALLERGIES
|
|
139556
139556
|
), h = a3(
|
|
139557
|
-
|
|
139557
|
+
Yqt.EDIT_ALLERGIES
|
|
139558
139558
|
), [E, C] = useState(""), [R, T] = useState(null), [M, x] = useState(!1), [I, k] = useState(
|
|
139559
139559
|
null
|
|
139560
139560
|
), {
|
|
@@ -139576,7 +139576,7 @@ const allergiesFormTile = "AllergiesForm-module_allergiesFormTile__1UsbU", aller
|
|
|
139576
139576
|
} = useQuery({
|
|
139577
139577
|
queryKey: allergiesQueryKeys(s),
|
|
139578
139578
|
enabled: !!s && d,
|
|
139579
|
-
queryFn: () =>
|
|
139579
|
+
queryFn: () => Hb(s)
|
|
139580
139580
|
});
|
|
139581
139581
|
useEffect(() => {
|
|
139582
139582
|
fe && f({
|
|
@@ -139767,7 +139767,7 @@ const useInvestigationsSearch = (p = "") => {
|
|
|
139767
139767
|
(async () => {
|
|
139768
139768
|
try {
|
|
139769
139769
|
d(!0), E(null);
|
|
139770
|
-
const M = await
|
|
139770
|
+
const M = await p_();
|
|
139771
139771
|
s(M);
|
|
139772
139772
|
} catch (M) {
|
|
139773
139773
|
const x = Br(M);
|
|
@@ -139876,9 +139876,9 @@ const investigationsFormTile = "InvestigationsForm-module_investigationsFormTile
|
|
|
139876
139876
|
selectedInvestigationItem,
|
|
139877
139877
|
duplicateNotification: duplicateNotification$1
|
|
139878
139878
|
}, InvestigationsForm = React__default.memo(() => {
|
|
139879
|
-
const { t: p } = useTranslation(), c =
|
|
139880
|
-
|
|
139881
|
-
), [f, d] = useState(""), [h, E] = useState(null), [C, R] = useState(!1), { activeEncounter: T, matchReasons: M } =
|
|
139879
|
+
const { t: p } = useTranslation(), c = mr(), { addNotification: a } = or(), s = a3(
|
|
139880
|
+
Yqt.INVESTIGATIONS
|
|
139881
|
+
), [f, d] = useState(""), [h, E] = useState(null), [C, R] = useState(!1), { activeEncounter: T, matchReasons: M } = F_(), I = M.includes("MATCHED") ? T?.id : void 0, {
|
|
139882
139882
|
data: k,
|
|
139883
139883
|
refetch: N,
|
|
139884
139884
|
error: B
|
|
@@ -139888,7 +139888,7 @@ const investigationsFormTile = "InvestigationsForm-module_investigationsFormTile
|
|
|
139888
139888
|
staleTime: 3e4,
|
|
139889
139889
|
queryFn: async () => {
|
|
139890
139890
|
const ee = await vs();
|
|
139891
|
-
return
|
|
139891
|
+
return g_(
|
|
139892
139892
|
ee.results,
|
|
139893
139893
|
c,
|
|
139894
139894
|
[I]
|
|
@@ -139901,7 +139901,7 @@ const investigationsFormTile = "InvestigationsForm-module_investigationsFormTile
|
|
|
139901
139901
|
message: B.message,
|
|
139902
139902
|
type: "error"
|
|
139903
139903
|
});
|
|
139904
|
-
}, [B, a, p]),
|
|
139904
|
+
}, [B, a, p]), cv(
|
|
139905
139905
|
(ee) => {
|
|
139906
139906
|
ee.patientUUID === c && Object.keys(ee.updatedResources.serviceRequests ?? {}).length > 0 && N();
|
|
139907
139907
|
},
|
|
@@ -140094,7 +140094,7 @@ const useConceptSearch = (p, c = 20, a = 500) => {
|
|
|
140094
140094
|
(async () => {
|
|
140095
140095
|
h(!0), C(null);
|
|
140096
140096
|
try {
|
|
140097
|
-
const M = await
|
|
140097
|
+
const M = await qb(R, c);
|
|
140098
140098
|
f(M);
|
|
140099
140099
|
} catch (M) {
|
|
140100
140100
|
C(
|
|
@@ -140289,8 +140289,8 @@ const conditionsAndDiagnosesTile = "ConditionsAndDiagnoses-module_conditionsAndD
|
|
|
140289
140289
|
selectedConditionItem,
|
|
140290
140290
|
duplicateNotification
|
|
140291
140291
|
}, ConditionsAndDiagnoses = React__default.memo(() => {
|
|
140292
|
-
const { t: p } = useTranslation(), c =
|
|
140293
|
-
|
|
140292
|
+
const { t: p } = useTranslation(), c = mr(), { addNotification: a } = or(), s = a3(
|
|
140293
|
+
Yqt.CONDITIONS_AND_DIAGNOSES
|
|
140294
140294
|
), [f, d] = useState(""), [h, E] = useState(null), [C, R] = useState(!1), {
|
|
140295
140295
|
selectedDiagnoses: T,
|
|
140296
140296
|
selectedConditions: M,
|
|
@@ -140312,7 +140312,7 @@ const conditionsAndDiagnosesTile = "ConditionsAndDiagnoses-module_conditionsAndD
|
|
|
140312
140312
|
} = useQuery({
|
|
140313
140313
|
queryKey: ["conditions", c],
|
|
140314
140314
|
enabled: !!c && s,
|
|
140315
|
-
queryFn: () =>
|
|
140315
|
+
queryFn: () => zb(c)
|
|
140316
140316
|
}), {
|
|
140317
140317
|
data: X,
|
|
140318
140318
|
isLoading: V,
|
|
@@ -140321,9 +140321,9 @@ const conditionsAndDiagnosesTile = "ConditionsAndDiagnoses-module_conditionsAndD
|
|
|
140321
140321
|
} = useQuery({
|
|
140322
140322
|
queryKey: ["diagnoses", c],
|
|
140323
140323
|
enabled: !!c && s,
|
|
140324
|
-
queryFn: () =>
|
|
140324
|
+
queryFn: () => Kb(c)
|
|
140325
140325
|
});
|
|
140326
|
-
|
|
140326
|
+
cv(
|
|
140327
140327
|
(re) => {
|
|
140328
140328
|
re.patientUUID === c && re.updatedResources.conditions && (te(), K());
|
|
140329
140329
|
},
|
|
@@ -140557,7 +140557,7 @@ const useMedicationSearch = (p, c = 20, a = 500) => {
|
|
|
140557
140557
|
(async () => {
|
|
140558
140558
|
h(!0), C(null);
|
|
140559
140559
|
try {
|
|
140560
|
-
const M = await
|
|
140560
|
+
const M = await Zb(R, c);
|
|
140561
140561
|
f(getMedicationsFromBundle(M));
|
|
140562
140562
|
} catch (M) {
|
|
140563
140563
|
C(
|
|
@@ -141082,7 +141082,7 @@ function validateEntry$1(p, c) {
|
|
|
141082
141082
|
return { entry: { ...p, errors: a, hasBeenValidated: !0 }, valid: s };
|
|
141083
141083
|
}
|
|
141084
141084
|
function createMedicationRequestStore(p) {
|
|
141085
|
-
const c = p ===
|
|
141085
|
+
const c = p === Jb;
|
|
141086
141086
|
return createStore((a, s) => ({
|
|
141087
141087
|
selectedMedicationRequests: [],
|
|
141088
141088
|
attributes: void 0,
|
|
@@ -141308,7 +141308,7 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
|
|
|
141308
141308
|
updateDispenseQuantity: N,
|
|
141309
141309
|
updateDispenseUnit: B,
|
|
141310
141310
|
updateNote: z
|
|
141311
|
-
} = useMedicationRequestStore(a), { t: O } = useTranslation(), Z = a ===
|
|
141311
|
+
} = useMedicationRequestStore(a), { t: O } = useTranslation(), Z = a === Jb, {
|
|
141312
141312
|
id: F,
|
|
141313
141313
|
dosage: U,
|
|
141314
141314
|
dosageUnit: W,
|
|
@@ -141353,10 +141353,10 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
|
|
|
141353
141353
|
const me = c.frequencies.find(isImmediateFrequency);
|
|
141354
141354
|
me && E(F, me);
|
|
141355
141355
|
}
|
|
141356
|
-
pe && k(F,
|
|
141356
|
+
pe && k(F, Db());
|
|
141357
141357
|
} else if (pe) {
|
|
141358
141358
|
const me = c.frequencies.find(isImmediateFrequency);
|
|
141359
|
-
me && E(F, me), R(F, 0), T(F, null), k(F,
|
|
141359
|
+
me && E(F, me), R(F, 0), T(F, null), k(F, Db());
|
|
141360
141360
|
}
|
|
141361
141361
|
}
|
|
141362
141362
|
}, [
|
|
@@ -141383,7 +141383,7 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
|
|
|
141383
141383
|
});
|
|
141384
141384
|
}, []), useEffect(() => {
|
|
141385
141385
|
const me = f?.filter((Ae) => Ae.event === "onSelect") ?? [];
|
|
141386
|
-
me.length > 0 &&
|
|
141386
|
+
me.length > 0 && uv({
|
|
141387
141387
|
controlKey: a,
|
|
141388
141388
|
itemId: F,
|
|
141389
141389
|
rules: me
|
|
@@ -141642,7 +141642,7 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
|
|
|
141642
141642
|
datePickerType: "single",
|
|
141643
141643
|
"data-testid": `${a}-start-date-picker-${F}-test-id`,
|
|
141644
141644
|
value: le,
|
|
141645
|
-
minDate:
|
|
141645
|
+
minDate: Db(),
|
|
141646
141646
|
onChange: (me) => {
|
|
141647
141647
|
k(F, me[0]);
|
|
141648
141648
|
},
|
|
@@ -141743,11 +141743,11 @@ const $schema$2 = "http://json-schema.org/draft-07/schema#", title$4 = "Medicati
|
|
|
141743
141743
|
cdsCard: cdsCard$1
|
|
141744
141744
|
}, MedicationRequestForm = React__default.memo(({ inputControlConfig: p }) => {
|
|
141745
141745
|
const { t: c } = useTranslation(), {
|
|
141746
|
-
type: a =
|
|
141746
|
+
type: a = Jb,
|
|
141747
141747
|
label: s = "MEDICATIONS_INPUT_CONTROL_TITLE",
|
|
141748
141748
|
attributes: f = [],
|
|
141749
141749
|
cdss: d = []
|
|
141750
|
-
} = p ?? {}, h = a ===
|
|
141750
|
+
} = p ?? {}, h = a === Jb, [E, C] = useState(""), {
|
|
141751
141751
|
data: R,
|
|
141752
141752
|
isLoading: T,
|
|
141753
141753
|
error: M
|
|
@@ -141755,11 +141755,11 @@ const $schema$2 = "http://json-schema.org/draft-07/schema#", title$4 = "Medicati
|
|
|
141755
141755
|
queryKey: ["medicationConfig"],
|
|
141756
141756
|
queryFn: async () => {
|
|
141757
141757
|
const [Q, ee] = await Promise.all([
|
|
141758
|
-
|
|
141758
|
+
y_(
|
|
141759
141759
|
MEDICATIONS_CONFIG_URL,
|
|
141760
141760
|
medicationConfigSchema
|
|
141761
141761
|
),
|
|
141762
|
-
|
|
141762
|
+
Xb()
|
|
141763
141763
|
]);
|
|
141764
141764
|
return { ...ee, ...Q };
|
|
141765
141765
|
}
|
|
@@ -141773,7 +141773,7 @@ const $schema$2 = "http://json-schema.org/draft-07/schema#", title$4 = "Medicati
|
|
|
141773
141773
|
error: z
|
|
141774
141774
|
} = useQuery({
|
|
141775
141775
|
queryKey: ["vaccination"],
|
|
141776
|
-
queryFn:
|
|
141776
|
+
queryFn: e_,
|
|
141777
141777
|
enabled: !h
|
|
141778
141778
|
}), O = useMemo(
|
|
141779
141779
|
() => N ? getMedicationsFromBundle(N) : [],
|
|
@@ -141790,11 +141790,11 @@ const $schema$2 = "http://json-schema.org/draft-07/schema#", title$4 = "Medicati
|
|
|
141790
141790
|
), [P, R]);
|
|
141791
141791
|
useEffect(() => {
|
|
141792
141792
|
W(f), V && getMedicationRequestStore(a).getState().loadMedicationsForEdit(V);
|
|
141793
|
-
}, [V, a]),
|
|
141793
|
+
}, [V, a]), fv((Q) => {
|
|
141794
141794
|
const { cards: ee } = Q, oe = new Set(
|
|
141795
141795
|
Z.map((re) => re.id)
|
|
141796
141796
|
);
|
|
141797
|
-
|
|
141797
|
+
Sv(ee, oe).forEach(({ card: re, resourceId: ae }) => {
|
|
141798
141798
|
K(ae, [re]);
|
|
141799
141799
|
});
|
|
141800
141800
|
});
|
|
@@ -141942,7 +141942,7 @@ const registerMedicationRequestControl = (p) => {
|
|
|
141942
141942
|
hasCriticalCDSCards: () => c().getState().hasCriticalCDSCards()
|
|
141943
141943
|
});
|
|
141944
141944
|
};
|
|
141945
|
-
registerMedicationRequestControl(
|
|
141945
|
+
registerMedicationRequestControl(Jb);
|
|
141946
141946
|
registerMedicationRequestControl(VACCINATIONS_INPUT_CONTROL_KEY);
|
|
141947
141947
|
const IMMUNIZATION_HISTORY_INPUT_CONTROL_KEY = "immunizationHistory", IMMUNIZATION_ADMINISTRATION_INPUT_CONTROL_KEY = "immunizationAdministration", IMMUNIZATION_WAIVER_INPUT_CONTROL_KEY = "immunizationWaiver", ADMINISTERED_PRODUCT_EXTENSION_URL = "http://fhir.bahmni.org/ext/immunization/administeredProduct", BASED_ON_EXTENSION_URL = "http://fhir.bahmni.org/ext/immunization/basedOn", STOCK_LOCATION_EXTENSION_URL = "http://fhir.bahmni.org/ext/immunization/stockLocation", ENTERING_PROVIDER_SYSTEM = "http://terminology.hl7.org/CodeSystem/v2-0443", ENTERING_PROVIDER_CODE = "EP", ENTERING_PROVIDER_DISPLAY = "Entering Provider";
|
|
141948
141948
|
function resolveAdministeredProductExtension(p) {
|
|
@@ -142036,7 +142036,7 @@ function getBatchNumberComboBoxItems(p, c, a) {
|
|
|
142036
142036
|
}
|
|
142037
142037
|
function formatBatchItemDisplay(p, c) {
|
|
142038
142038
|
if (!p) return "";
|
|
142039
|
-
const a = p.expiryDate ? ` [${
|
|
142039
|
+
const a = p.expiryDate ? ` [${Pb(p.expiryDate, c, !1, "d MMM yyyy").formattedResult}]` : "", s = p.stockLocationName ? ` - ${p.stockLocationName}` : "";
|
|
142040
142040
|
return p.batchNumber + a + s;
|
|
142041
142041
|
}
|
|
142042
142042
|
function getLocationComboBoxItems(p, c) {
|
|
@@ -142469,7 +142469,7 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
|
|
|
142469
142469
|
fe && ee(!0);
|
|
142470
142470
|
}, [fe]), useEffect(() => {
|
|
142471
142471
|
const Fe = x?.filter((Ge) => Ge.event === "onSelect") ?? [];
|
|
142472
|
-
Fe.length > 0 &&
|
|
142472
|
+
Fe.length > 0 && uv({
|
|
142473
142473
|
controlKey: C,
|
|
142474
142474
|
itemId: V,
|
|
142475
142475
|
rules: Fe
|
|
@@ -142832,7 +142832,7 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
|
|
|
142832
142832
|
isError: O
|
|
142833
142833
|
} = useQuery({
|
|
142834
142834
|
queryKey: ["medication", N],
|
|
142835
|
-
queryFn: () =>
|
|
142835
|
+
queryFn: () => t_(N),
|
|
142836
142836
|
enabled: !!I && !!N,
|
|
142837
142837
|
staleTime: 1 / 0
|
|
142838
142838
|
}), { isLoading: Z, error: F } = useClinicalConfig(), U = on$1(), {
|
|
@@ -142845,11 +142845,11 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
|
|
|
142845
142845
|
P && T(P);
|
|
142846
142846
|
}, [P, T]), useEffect(() => {
|
|
142847
142847
|
le && M({ otherReasonConceptUuid: le });
|
|
142848
|
-
}, [le, M]),
|
|
142848
|
+
}, [le, M]), fv((lt) => {
|
|
142849
142849
|
const { cards: tt } = lt, at = new Set(
|
|
142850
142850
|
R.map((Vt) => Vt.id)
|
|
142851
142851
|
);
|
|
142852
|
-
|
|
142852
|
+
Sv(tt, at).forEach(({ card: Vt, resourceId: wt }) => {
|
|
142853
142853
|
x(wt, [Vt]);
|
|
142854
142854
|
});
|
|
142855
142855
|
});
|
|
@@ -142868,7 +142868,7 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
|
|
|
142868
142868
|
error: ie
|
|
142869
142869
|
} = useQuery({
|
|
142870
142870
|
queryKey: ["administeredLocationTag", pe],
|
|
142871
|
-
queryFn: () =>
|
|
142871
|
+
queryFn: () => wv(pe),
|
|
142872
142872
|
enabled: !h && !!pe && !Z && !F && !!findAttr("administeredLocation", P),
|
|
142873
142873
|
staleTime: 1 / 0
|
|
142874
142874
|
}), {
|
|
@@ -142904,7 +142904,7 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
|
|
|
142904
142904
|
error: ze
|
|
142905
142905
|
} = useQuery({
|
|
142906
142906
|
queryKey: ["vaccination"],
|
|
142907
|
-
queryFn:
|
|
142907
|
+
queryFn: e_,
|
|
142908
142908
|
staleTime: 1 / 0
|
|
142909
142909
|
}), Ye = useMemo(
|
|
142910
142910
|
() => Be?.entry?.filter((lt) => lt.resource?.resourceType === "Medication").map((lt) => lt.resource) ?? [],
|
|
@@ -142914,7 +142914,7 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
|
|
|
142914
142914
|
const tt = lt.administeredLocation?.uuid;
|
|
142915
142915
|
return {
|
|
142916
142916
|
queryKey: ["availableStocks", lt.drug?.code, tt],
|
|
142917
|
-
queryFn: () =>
|
|
142917
|
+
queryFn: () => Tv(lt.drug.code, tt),
|
|
142918
142918
|
enabled: !h && !!ee && !!lt.drug?.code && !!tt
|
|
142919
142919
|
};
|
|
142920
142920
|
})
|
|
@@ -143112,7 +143112,7 @@ const canUserAccessForm = (p, c) => {
|
|
|
143112
143112
|
error: h
|
|
143113
143113
|
} = useQuery({
|
|
143114
143114
|
queryKey: ["observationForms", c],
|
|
143115
|
-
queryFn: () =>
|
|
143115
|
+
queryFn: () => z_(c)
|
|
143116
143116
|
});
|
|
143117
143117
|
return {
|
|
143118
143118
|
forms: useMemo(() => {
|
|
@@ -143137,7 +143137,7 @@ const canUserAccessForm = (p, c) => {
|
|
|
143137
143137
|
try {
|
|
143138
143138
|
if (!p)
|
|
143139
143139
|
throw new Error(PINNED_FORMS_ERROR_MESSAGES.USER_NOT_FOUND);
|
|
143140
|
-
const c = await H(
|
|
143140
|
+
const c = await H(E_(p));
|
|
143141
143141
|
if (!c || typeof c != "object")
|
|
143142
143142
|
return [];
|
|
143143
143143
|
const a = c.userProperties?.pinnedObsTemplates ?? "";
|
|
@@ -143155,7 +143155,7 @@ const canUserAccessForm = (p, c) => {
|
|
|
143155
143155
|
const a = c.filter(
|
|
143156
143156
|
(s) => typeof s == "string" && s.trim().length > 0
|
|
143157
143157
|
);
|
|
143158
|
-
await ve(
|
|
143158
|
+
await ve(E_(p), {
|
|
143159
143159
|
userProperties: {
|
|
143160
143160
|
pinnedObsTemplates: a.join(PINNED_FORMS_DELIMITER)
|
|
143161
143161
|
}
|
|
@@ -143225,7 +143225,7 @@ function usePinnedObservationForms(p, c) {
|
|
|
143225
143225
|
return { pinnedForms: f, updatePinnedForms: x, isLoading: !h, error: C, refetch: I };
|
|
143226
143226
|
}
|
|
143227
143227
|
function useSubmittedEncounterForms(p) {
|
|
143228
|
-
const c =
|
|
143228
|
+
const c = mr(), { activeEncounter: a, matchReasons: s } = F_(), f = s.includes("MATCHED") ? a?.id : void 0, {
|
|
143229
143229
|
data: d,
|
|
143230
143230
|
refetch: h,
|
|
143231
143231
|
error: E
|
|
@@ -143233,11 +143233,11 @@ function useSubmittedEncounterForms(p) {
|
|
|
143233
143233
|
queryKey: ["submittedEncounterForms", c, f],
|
|
143234
143234
|
enabled: !!f && !!c,
|
|
143235
143235
|
staleTime: 3e4,
|
|
143236
|
-
queryFn: () =>
|
|
143236
|
+
queryFn: () => v_(f)
|
|
143237
143237
|
});
|
|
143238
143238
|
return useEffect(() => {
|
|
143239
143239
|
E && console.error("Failed to fetch submitted encounter forms", E);
|
|
143240
|
-
}, [E]),
|
|
143240
|
+
}, [E]), cv(
|
|
143241
143241
|
(C) => {
|
|
143242
143242
|
C.patientUUID === c && h();
|
|
143243
143243
|
},
|
|
@@ -143245,7 +143245,7 @@ function useSubmittedEncounterForms(p) {
|
|
|
143245
143245
|
), useMemo(() => {
|
|
143246
143246
|
const C = d?.entry?.map((T) => T.resource).filter((T) => T?.resourceType === "Observation") ?? [], R = /* @__PURE__ */ new Set();
|
|
143247
143247
|
for (const T of C) {
|
|
143248
|
-
const M =
|
|
143248
|
+
const M = kqt(T);
|
|
143249
143249
|
if (!M) continue;
|
|
143250
143250
|
const x = p.find((I) => I.name === M);
|
|
143251
143251
|
x && R.add(x.uuid);
|
|
@@ -143270,7 +143270,7 @@ const observationFormsTile = "ObservationForms-module_observationFormsTile__AZ0b
|
|
|
143270
143270
|
submittedFormUuids: R = EMPTY_SET
|
|
143271
143271
|
}) => {
|
|
143272
143272
|
const { t: T } = useTranslation(), M = a3(
|
|
143273
|
-
|
|
143273
|
+
Yqt.OBSERVATIONS
|
|
143274
143274
|
), [x, I] = useState(""), [k, N] = useState(null), { getFormData: B } = useObservationFormsStore(), z = useMemo(() => {
|
|
143275
143275
|
if (!x.trim()) return h;
|
|
143276
143276
|
const ee = x.toLowerCase().trim().split(/\s+/);
|
|
@@ -143454,7 +143454,7 @@ ObservationForms.displayName = "ObservationForms";
|
|
|
143454
143454
|
const ObservationFormsPanel = ({
|
|
143455
143455
|
encounterSessionStartContext: p
|
|
143456
143456
|
}) => {
|
|
143457
|
-
const { user: c } =
|
|
143457
|
+
const { user: c } = SDt(), a = mr(), { episodeOfCare: s } = useClinicalAppData(), f = s.map((V) => V.uuid), {
|
|
143458
143458
|
forms: d,
|
|
143459
143459
|
isLoading: h,
|
|
143460
143460
|
error: E
|
|
@@ -143496,18 +143496,18 @@ const ObservationFormsPanel = ({
|
|
|
143496
143496
|
);
|
|
143497
143497
|
if (!V) return;
|
|
143498
143498
|
const fe = `${U}:${F}`;
|
|
143499
|
-
K.current !== fe && (K.current = fe,
|
|
143499
|
+
K.current !== fe && (K.current = fe, v_(U).then(async (te) => {
|
|
143500
143500
|
const pe = bundleExports.getObservationsFromFhir(te).filter(
|
|
143501
143501
|
(oe) => oe.formFieldPath?.toLowerCase().startsWith(`${F.toLowerCase()}.`)
|
|
143502
143502
|
);
|
|
143503
143503
|
let Q = V, ee = null;
|
|
143504
143504
|
if (a) {
|
|
143505
|
-
const le = (await
|
|
143505
|
+
const le = (await K_(a).catch(
|
|
143506
143506
|
() => []
|
|
143507
143507
|
)).find(
|
|
143508
143508
|
(re) => re.encounterUuid === U && re.formName.toLowerCase() === F.toLowerCase()
|
|
143509
143509
|
);
|
|
143510
|
-
ee = le?.formUuid ?? await
|
|
143510
|
+
ee = le?.formUuid ?? await G_(
|
|
143511
143511
|
F,
|
|
143512
143512
|
le?.formVersion,
|
|
143513
143513
|
le?.encounterDateTime
|
|
@@ -143647,11 +143647,11 @@ const stopMedicationFormTile = "StopMedicationForm-module_stopMedicationFormTile
|
|
|
143647
143647
|
queryKey: ["medicationConfig"],
|
|
143648
143648
|
queryFn: async () => {
|
|
143649
143649
|
const [V, fe] = await Promise.all([
|
|
143650
|
-
|
|
143650
|
+
y_(
|
|
143651
143651
|
MEDICATIONS_CONFIG_URL,
|
|
143652
143652
|
medicationConfigSchema
|
|
143653
143653
|
),
|
|
143654
|
-
|
|
143654
|
+
Xb()
|
|
143655
143655
|
]);
|
|
143656
143656
|
return { ...fe, ...V };
|
|
143657
143657
|
}
|
|
@@ -143793,7 +143793,7 @@ registerInputControl({
|
|
|
143793
143793
|
note: p.note || void 0
|
|
143794
143794
|
});
|
|
143795
143795
|
const c = p.medicationToStop.subject?.reference?.split("/").pop();
|
|
143796
|
-
c &&
|
|
143796
|
+
c && df({
|
|
143797
143797
|
eventType: Xn.STOP_MEDICATION.eventType,
|
|
143798
143798
|
patientUuid: c,
|
|
143799
143799
|
messageParams: {}
|
|
@@ -143829,7 +143829,7 @@ function useObservationFormData(p) {
|
|
|
143829
143829
|
error: d
|
|
143830
143830
|
} = useQuery({
|
|
143831
143831
|
queryKey: ["formMetadata", p?.formUuid],
|
|
143832
|
-
queryFn: () =>
|
|
143832
|
+
queryFn: () => Y_(p.formUuid),
|
|
143833
143833
|
enabled: !!p?.formUuid
|
|
143834
143834
|
}), h = p?.formMetadata ?? s, E = d || null, C = useCallback((M) => {
|
|
143835
143835
|
if (!M) {
|
|
@@ -143883,7 +143883,7 @@ function useObservationFormData(p) {
|
|
|
143883
143883
|
a(k);
|
|
143884
143884
|
}, []), R = () => {
|
|
143885
143885
|
a(null);
|
|
143886
|
-
}, T = c && h ?
|
|
143886
|
+
}, T = c && h ? W_(c, h) : [];
|
|
143887
143887
|
return {
|
|
143888
143888
|
formData: c,
|
|
143889
143889
|
observations: T,
|
|
@@ -143947,17 +143947,17 @@ const formView = "ObservationFormsContainer-module_formView__d3K6Z", errorNotifi
|
|
|
143947
143947
|
}) => {
|
|
143948
143948
|
const { t: T } = useTranslation(), M = R?.editOnly === "observationForms", x = React__default.useRef(!M), I = React__default.useRef(
|
|
143949
143949
|
null
|
|
143950
|
-
), [k, N] = React__default.useState([]), z = R?.task?.basedOn?.[0], O =
|
|
143950
|
+
), [k, N] = React__default.useState([]), z = R?.task?.basedOn?.[0], O = mr(), { user: Z } = SDt(), { episodeOfCare: F, activeVisitId: U } = useClinicalAppData(), {
|
|
143951
143951
|
data: W,
|
|
143952
143952
|
isLoading: P,
|
|
143953
143953
|
error: K
|
|
143954
143954
|
} = useQuery({
|
|
143955
143955
|
queryKey: ["patient", O],
|
|
143956
|
-
queryFn: () =>
|
|
143956
|
+
queryFn: () => FE(O),
|
|
143957
143957
|
enabled: !!O
|
|
143958
143958
|
}), X = useMemo(() => {
|
|
143959
143959
|
if (!W || !O) return null;
|
|
143960
|
-
const rt = W.birthDate ?
|
|
143960
|
+
const rt = W.birthDate ? Ab(W.birthDate) : null;
|
|
143961
143961
|
return {
|
|
143962
143962
|
uuid: O,
|
|
143963
143963
|
identifier: W.identifier ?? void 0,
|
|
@@ -143968,7 +143968,7 @@ const formView = "ObservationFormsContainer-module_formView__d3K6Z", errorNotifi
|
|
|
143968
143968
|
ageInDays: rt?.ageInDays,
|
|
143969
143969
|
birthdate: W.birthDate ?? void 0,
|
|
143970
143970
|
birthtime: W.birthtime ?? void 0,
|
|
143971
|
-
gender: W.gender ?
|
|
143971
|
+
gender: W.gender ? qE(W.gender) : void 0,
|
|
143972
143972
|
activeVisitUuid: U ?? void 0,
|
|
143973
143973
|
currentEncounterUuid: d ?? void 0,
|
|
143974
143974
|
getAgeDetails: () => rt ?? AGE_DETAILS_DEFAULT
|
|
@@ -143996,7 +143996,7 @@ const formView = "ObservationFormsContainer-module_formView__d3K6Z", errorNotifi
|
|
|
143996
143996
|
if (I.current = null, x.current = !0, ae.current) {
|
|
143997
143997
|
const { observations: it } = ae.current.getValue();
|
|
143998
143998
|
if (it && it.length > 0) {
|
|
143999
|
-
const Je =
|
|
143999
|
+
const Je = Q_(it);
|
|
144000
144000
|
N(Je);
|
|
144001
144001
|
}
|
|
144002
144002
|
}
|
|
@@ -144056,7 +144056,7 @@ const formView = "ObservationFormsContainer-module_formView__d3K6Z", errorNotifi
|
|
|
144056
144056
|
if (ae.current) {
|
|
144057
144057
|
if (ee && !rt) {
|
|
144058
144058
|
oe(null);
|
|
144059
|
-
const { observations: da } = ae.current.getValue(), ha = da && da.length > 0 ?
|
|
144059
|
+
const { observations: da } = ae.current.getValue(), ha = da && da.length > 0 ? Q_(
|
|
144060
144060
|
da
|
|
144061
144061
|
) : [];
|
|
144062
144062
|
mergeObservationStatuses(
|
|
@@ -144071,10 +144071,10 @@ const formView = "ObservationFormsContainer-module_formView__d3K6Z", errorNotifi
|
|
|
144071
144071
|
), Be(ha, ee);
|
|
144072
144072
|
return;
|
|
144073
144073
|
}
|
|
144074
|
-
const { observations: it, errors: Je } = ae.current.getValue(), lt = it && it.length > 0 ?
|
|
144074
|
+
const { observations: it, errors: Je } = ae.current.getValue(), lt = it && it.length > 0 ? Q_(
|
|
144075
144075
|
it
|
|
144076
|
-
) : [], tt = (da) => da.value !== null && da.value !== void 0 && da.value !== "" ? !0 : da.groupMembers && da.groupMembers.length > 0 ? da.groupMembers.some(tt) : !1, st = !lt.some(tt), Vt = Je && Je.length > 0, wt = ae.current?.state?.data, Ut =
|
|
144077
|
-
|
|
144076
|
+
) : [], tt = (da) => da.value !== null && da.value !== void 0 && da.value !== "" ? !0 : da.groupMembers && da.groupMembers.length > 0 ? da.groupMembers.some(tt) : !1, st = !lt.some(tt), Vt = Je && Je.length > 0, wt = ae.current?.state?.data, Ut = rw(
|
|
144077
|
+
X_(wt)
|
|
144078
144078
|
);
|
|
144079
144079
|
if (st && !Ut) {
|
|
144080
144080
|
oe(VALIDATION_STATE_EMPTY);
|
|
@@ -144116,7 +144116,7 @@ const formView = "ObservationFormsContainer-module_formView__d3K6Z", errorNotifi
|
|
|
144116
144116
|
}
|
|
144117
144117
|
}, ze = () => {
|
|
144118
144118
|
if (oe(null), ae.current) {
|
|
144119
|
-
const { observations: rt } = ae.current.getValue(), it = rt && rt.length > 0 ?
|
|
144119
|
+
const { observations: rt } = ae.current.getValue(), it = rt && rt.length > 0 ? Q_(
|
|
144120
144120
|
rt
|
|
144121
144121
|
) : [];
|
|
144122
144122
|
extractAndAppendNotesFromFormData(
|
|
@@ -144339,8 +144339,8 @@ const formView = "ObservationFormsContainer-module_formView__d3K6Z", errorNotifi
|
|
|
144339
144339
|
}
|
|
144340
144340
|
}, extractAndAppendNotesFromFormData = (p, c) => {
|
|
144341
144341
|
if (!p.current) return;
|
|
144342
|
-
const a = p.current?.state, s =
|
|
144343
|
-
|
|
144342
|
+
const a = p.current?.state, s = X_(a?.data);
|
|
144343
|
+
Z_(s, c);
|
|
144344
144344
|
}, valueFingerprint = (p) => {
|
|
144345
144345
|
if (p == null) return "";
|
|
144346
144346
|
if (p instanceof Date && !Number.isNaN(p.getTime()))
|
|
@@ -144421,7 +144421,7 @@ const $schema$1 = "http://json-schema.org/draft-07/schema#", title$1 = "CDSS Ser
|
|
|
144421
144421
|
createCodeableConcept([
|
|
144422
144422
|
createCoding(
|
|
144423
144423
|
p,
|
|
144424
|
-
|
|
144424
|
+
Rd,
|
|
144425
144425
|
c
|
|
144426
144426
|
)
|
|
144427
144427
|
])
|
|
@@ -144469,7 +144469,7 @@ async function submitConsultation(p) {
|
|
|
144469
144469
|
practitionerUUID: h.uuid,
|
|
144470
144470
|
consultationDate: /* @__PURE__ */ new Date(),
|
|
144471
144471
|
statDurationInMilliseconds: p.statDurationInMilliseconds
|
|
144472
|
-
}, x = p.activeEntries.filter((N) => N.hasData() && N.createBundleEntries).flatMap((N) => N.createBundleEntries(M)), I =
|
|
144472
|
+
}, x = p.activeEntries.filter((N) => N.hasData() && N.createBundleEntries).flatMap((N) => N.createBundleEntries(M)), I = Yy([
|
|
144473
144473
|
C,
|
|
144474
144474
|
...x
|
|
144475
144475
|
]), k = await postEncounterBundle(I);
|
|
@@ -144533,7 +144533,7 @@ const ConsultationPad = ({
|
|
|
144533
144533
|
error: Z
|
|
144534
144534
|
} = useQuery({
|
|
144535
144535
|
queryKey: ["cdssConfig"],
|
|
144536
|
-
queryFn: () =>
|
|
144536
|
+
queryFn: () => y_(CDSS_SERVER_CONFIG_URL, cdssConfigSchema),
|
|
144537
144537
|
enabled: x
|
|
144538
144538
|
});
|
|
144539
144539
|
useEffect(() => {
|
|
@@ -144573,14 +144573,14 @@ const ConsultationPad = ({
|
|
|
144573
144573
|
useEffect(() => {
|
|
144574
144574
|
useEncounterDetailsStore.getState().setRequestedEncounterType(K);
|
|
144575
144575
|
}, [K]);
|
|
144576
|
-
const { episodeOfCare: ee, patientId: oe, activeVisitId: le, activeEpisodeId: re } = useClinicalAppData(), { practitioner: ae } =
|
|
144576
|
+
const { episodeOfCare: ee, patientId: oe, activeVisitId: le, activeEpisodeId: re } = useClinicalAppData(), { practitioner: ae } = SDt(), { data: J, status: Ce } = useQuery({
|
|
144577
144577
|
queryKey: [
|
|
144578
144578
|
"activeEncounter",
|
|
144579
144579
|
oe,
|
|
144580
144580
|
ae?.uuid,
|
|
144581
144581
|
Q?.uuid
|
|
144582
144582
|
],
|
|
144583
|
-
queryFn: () =>
|
|
144583
|
+
queryFn: () => L_(
|
|
144584
144584
|
oe,
|
|
144585
144585
|
ae?.uuid,
|
|
144586
144586
|
void 0,
|
|
@@ -144594,7 +144594,7 @@ const ConsultationPad = ({
|
|
|
144594
144594
|
error: Ee
|
|
144595
144595
|
} = useQuery({
|
|
144596
144596
|
queryKey: ["encounter", h],
|
|
144597
|
-
queryFn: ({ signal: at }) =>
|
|
144597
|
+
queryFn: ({ signal: at }) => P_(h, { signal: at }),
|
|
144598
144598
|
enabled: !!h
|
|
144599
144599
|
});
|
|
144600
144600
|
useEffect(() => {
|
|
@@ -144622,7 +144622,7 @@ const ConsultationPad = ({
|
|
|
144622
144622
|
} = useObservationFormsStore();
|
|
144623
144623
|
useEffect(() => {
|
|
144624
144624
|
const at = p.editMedications;
|
|
144625
|
-
getMedicationRequestStore(
|
|
144625
|
+
getMedicationRequestStore(Jb).getState().setPendingFhirEdits(at?.length ? at : []);
|
|
144626
144626
|
}, [p.editMedications]), useEffect(() => () => X.forEach((at) => at.reset()), []), useEffect(() => {
|
|
144627
144627
|
a?.length && useAllergyStore.getState().preloadAllergies(a);
|
|
144628
144628
|
}, [a]);
|
|
@@ -144662,7 +144662,7 @@ const ConsultationPad = ({
|
|
|
144662
144662
|
visitId: da,
|
|
144663
144663
|
episodeId: re ?? void 0
|
|
144664
144664
|
}, Na = wt.map(
|
|
144665
|
-
(aa) =>
|
|
144665
|
+
(aa) => Rv(z, aa, ha, Ut).catch(
|
|
144666
144666
|
() => (R({
|
|
144667
144667
|
title: C("ERROR_DEFAULT_TITLE"),
|
|
144668
144668
|
message: C("CDSS_RULE_INVOCATION_ERROR", {
|
|
@@ -144673,7 +144673,7 @@ const ConsultationPad = ({
|
|
|
144673
144673
|
}), [])
|
|
144674
144674
|
)
|
|
144675
144675
|
), nn = (await Promise.all(Na)).flat();
|
|
144676
|
-
|
|
144676
|
+
lv({
|
|
144677
144677
|
cards: nn,
|
|
144678
144678
|
triggerItemId: Vt,
|
|
144679
144679
|
controlKey: st
|
|
@@ -144705,7 +144705,7 @@ const ConsultationPad = ({
|
|
|
144705
144705
|
x
|
|
144706
144706
|
]
|
|
144707
144707
|
);
|
|
144708
|
-
|
|
144708
|
+
dv(Ye);
|
|
144709
144709
|
const qe = async () => {
|
|
144710
144710
|
const at = X.map((wt) => ({
|
|
144711
144711
|
key: wt.key,
|
|
@@ -144741,7 +144741,7 @@ const ConsultationPad = ({
|
|
|
144741
144741
|
await Na.onDirectSubmit();
|
|
144742
144742
|
if (wt.length > 0 && Ut.length === 0) {
|
|
144743
144743
|
const Na = captureUpdatedResources(X);
|
|
144744
|
-
|
|
144744
|
+
iv({
|
|
144745
144745
|
patientUUID: useEncounterDetailsStore.getState().patientUUID ?? "",
|
|
144746
144746
|
updatedResources: Na,
|
|
144747
144747
|
updatedConcepts: /* @__PURE__ */ new Map()
|
|
@@ -144759,13 +144759,13 @@ const ConsultationPad = ({
|
|
|
144759
144759
|
statDurationInMilliseconds: Ae,
|
|
144760
144760
|
activeEntries: X
|
|
144761
144761
|
});
|
|
144762
|
-
|
|
144762
|
+
df({
|
|
144763
144763
|
eventType: Xn.EDIT_ENCOUNTER.eventType,
|
|
144764
144764
|
patientUuid: da.patientUUID,
|
|
144765
144765
|
messageParams: { encounterType: da.encounterTypeName }
|
|
144766
144766
|
});
|
|
144767
144767
|
const ha = captureUpdatedResources(X);
|
|
144768
|
-
|
|
144768
|
+
iv({
|
|
144769
144769
|
patientUUID: da.patientUUID,
|
|
144770
144770
|
updatedResources: ha,
|
|
144771
144771
|
updatedConcepts: da.updatedConcepts
|
|
@@ -144799,9 +144799,9 @@ const ConsultationPad = ({
|
|
|
144799
144799
|
encounterSessionStartContext: p
|
|
144800
144800
|
},
|
|
144801
144801
|
at.key
|
|
144802
|
-
)) }), it = !!f, Je = getMedicationRequestStore(
|
|
144802
|
+
)) }), it = !!f, Je = getMedicationRequestStore(Jb), lt = useSyncExternalStore(
|
|
144803
144803
|
(at) => Je.subscribe(at),
|
|
144804
|
-
() => !it || f !==
|
|
144804
|
+
() => !it || f !== Jb ? !0 : Je.getState().hasEditChanges()
|
|
144805
144805
|
), tt = Ge || !te || T || !fe || !lt || ie;
|
|
144806
144806
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
144807
144807
|
/* @__PURE__ */ jsx(
|
|
@@ -144848,8 +144848,8 @@ const ConsultationPad = ({
|
|
|
144848
144848
|
encounterUuids: s,
|
|
144849
144849
|
visitUuids: f
|
|
144850
144850
|
}) => {
|
|
144851
|
-
const { t: d } = useTranslation(), { matchReasons: h, canEditOrCreate: E, activeEncounter: C } =
|
|
144852
|
-
const z =
|
|
144851
|
+
const { t: d } = useTranslation(), { matchReasons: h, canEditOrCreate: E, activeEncounter: C } = F_(), R = h.includes("NO_ACTIVE_VISIT"), M = h.includes("MATCHED") ? C?.id ?? null : null, x = (k, N, B) => {
|
|
144852
|
+
const z = rKt(k.type);
|
|
144853
144853
|
if (!z)
|
|
144854
144854
|
return /* @__PURE__ */ jsx("div", { className: styles$4.widgetError, children: /* @__PURE__ */ jsx("p", { children: d("CONTROL_NOT_FOUND", { type: k.type }) }) }, `${k.type}-${N}`);
|
|
144855
144855
|
const O = N < B - 1;
|
|
@@ -144906,7 +144906,7 @@ const ConsultationPad = ({
|
|
|
144906
144906
|
activeItemId: c,
|
|
144907
144907
|
scrollTrigger: a
|
|
144908
144908
|
}) => {
|
|
144909
|
-
const { t: s } = useTranslation(), f =
|
|
144909
|
+
const { t: s } = useTranslation(), f = mr(), d = useRef({}), { episodeOfCare: h, visit: E, encounter: C } = useClinicalAppData(), R = Array.from(
|
|
144910
144910
|
new Set(h.map((x) => x.uuid))
|
|
144911
144911
|
), T = Array.from(
|
|
144912
144912
|
/* @__PURE__ */ new Set([
|
|
@@ -144921,7 +144921,7 @@ const ConsultationPad = ({
|
|
|
144921
144921
|
])
|
|
144922
144922
|
);
|
|
144923
144923
|
return useEffect(() => {
|
|
144924
|
-
f &&
|
|
144924
|
+
f && df({
|
|
144925
144925
|
eventType: Xn.VIEWED_CLINICAL_DASHBOARD.eventType,
|
|
144926
144926
|
patientUuid: f
|
|
144927
144927
|
});
|
|
@@ -144968,7 +144968,7 @@ const ConsultationPad = ({
|
|
|
144968
144968
|
function useEncounterSession(p) {
|
|
144969
144969
|
const { practitioner: c, encounterTypeUUID: a } = p, [s, f] = useState(!1), [d, h] = useState(
|
|
144970
144970
|
null
|
|
144971
|
-
), [E, C] = useState(!1), [R, T] = useState(!0), [M, x] = useState(null), [I, k] = useState([]), N =
|
|
144971
|
+
), [E, C] = useState(!1), [R, T] = useState(!0), [M, x] = useState(null), [I, k] = useState([]), N = mr(), B = c?.uuid, z = async (Z) => {
|
|
144972
144972
|
if (!N || !B || !a) {
|
|
144973
144973
|
f(!1), h(null), C(!1), k([]), x(null);
|
|
144974
144974
|
return;
|
|
@@ -144980,14 +144980,14 @@ function useEncounterSession(p) {
|
|
|
144980
144980
|
}
|
|
144981
144981
|
T(!0), x(null);
|
|
144982
144982
|
try {
|
|
144983
|
-
const U = await
|
|
144983
|
+
const U = await x_(
|
|
144984
144984
|
N,
|
|
144985
144985
|
B,
|
|
144986
144986
|
F,
|
|
144987
144987
|
a
|
|
144988
144988
|
);
|
|
144989
144989
|
if (Z.ignored) return;
|
|
144990
|
-
const W =
|
|
144990
|
+
const W = k_(U);
|
|
144991
144991
|
f(W), h(U.encounter), C(W), k(U.reasons);
|
|
144992
144992
|
} catch (U) {
|
|
144993
144993
|
if (Z.ignored) return;
|
|
@@ -145036,7 +145036,7 @@ const CONSULTATION_START_EVENT = "startConsultation", dispatchConsultationStart
|
|
|
145036
145036
|
}) => {
|
|
145037
145037
|
const { t: s } = useTranslation();
|
|
145038
145038
|
return a3(
|
|
145039
|
-
|
|
145039
|
+
Yqt.ENCOUNTER
|
|
145040
145040
|
) ? a ? /* @__PURE__ */ jsx(
|
|
145041
145041
|
$H2,
|
|
145042
145042
|
{
|
|
@@ -145060,7 +145060,7 @@ const CONSULTATION_START_EVENT = "startConsultation", dispatchConsultationStart
|
|
|
145060
145060
|
isActionAreaVisible: p,
|
|
145061
145061
|
printOptions: c
|
|
145062
145062
|
}) => {
|
|
145063
|
-
const { t: a } = useTranslation(), { practitioner: s } =
|
|
145063
|
+
const { t: a } = useTranslation(), { practitioner: s } = SDt(), { clinicalConfig: f } = useClinicalConfig(), { encounterConcepts: d } = useEncounterConcepts(), h = mr(), E = f?.consultationPad?.inputControls?.find(
|
|
145064
145064
|
(F) => F.type === "encounterDetails"
|
|
145065
145065
|
)?.metadata?.defaultEncounterType, C = useMemo(() => {
|
|
145066
145066
|
if (!(!E || !d))
|
|
@@ -145078,15 +145078,15 @@ const CONSULTATION_START_EVENT = "startConsultation", dispatchConsultationStart
|
|
|
145078
145078
|
encounterTypeUUID: C
|
|
145079
145079
|
}), k = useRef(null);
|
|
145080
145080
|
useEffect(() => {
|
|
145081
|
-
k.current !== h && (k.current = h,
|
|
145081
|
+
k.current !== h && (k.current = h, q_());
|
|
145082
145082
|
}, [h]), useEffect(() => {
|
|
145083
|
-
|
|
145083
|
+
M_(x);
|
|
145084
145084
|
}, [x]), useEffect(() => {
|
|
145085
|
-
x ||
|
|
145085
|
+
x || U_({
|
|
145086
145086
|
reasons: R,
|
|
145087
145087
|
encounter: M
|
|
145088
145088
|
});
|
|
145089
|
-
}, [x, R, M]),
|
|
145089
|
+
}, [x, R, M]), cv(
|
|
145090
145090
|
(F) => {
|
|
145091
145091
|
F.patientUUID === h && I();
|
|
145092
145092
|
},
|
|
@@ -145115,7 +145115,7 @@ const CONSULTATION_START_EVENT = "startConsultation", dispatchConsultationStart
|
|
|
145115
145115
|
"data-active-encounter-uuid": T && M?.id ? M.id : void 0,
|
|
145116
145116
|
"data-active-practitioner-uuid": s?.uuid ?? void 0,
|
|
145117
145117
|
children: [
|
|
145118
|
-
/* @__PURE__ */ jsx(
|
|
145118
|
+
/* @__PURE__ */ jsx(Zqt, {}),
|
|
145119
145119
|
/* @__PURE__ */ jsxs("div", { className: styles$2.actionButtons, children: [
|
|
145120
145120
|
/* @__PURE__ */ jsx(
|
|
145121
145121
|
ConsultationActionButton,
|
|
@@ -145126,7 +145126,7 @@ const CONSULTATION_START_EVENT = "startConsultation", dispatchConsultationStart
|
|
|
145126
145126
|
}
|
|
145127
145127
|
),
|
|
145128
145128
|
/* @__PURE__ */ jsx(
|
|
145129
|
-
|
|
145129
|
+
Dqt,
|
|
145130
145130
|
{
|
|
145131
145131
|
printOptions: c,
|
|
145132
145132
|
renderContext: Z,
|
|
@@ -145147,7 +145147,7 @@ const CONSULTATION_START_EVENT = "startConsultation", dispatchConsultationStart
|
|
|
145147
145147
|
error: f
|
|
145148
145148
|
} = useQuery({
|
|
145149
145149
|
queryKey: ["patientSearch", p],
|
|
145150
|
-
queryFn: () =>
|
|
145150
|
+
queryFn: () => VE(p),
|
|
145151
145151
|
enabled: p.trim().length > 0
|
|
145152
145152
|
});
|
|
145153
145153
|
return { results: useMemo(
|
|
@@ -145281,10 +145281,10 @@ const CONSULTATION_START_EVENT = "startConsultation", dispatchConsultationStart
|
|
|
145281
145281
|
error: E
|
|
145282
145282
|
} = useQuery({
|
|
145283
145283
|
queryKey: ["encounters-for-eoc", c],
|
|
145284
|
-
queryFn: () =>
|
|
145284
|
+
queryFn: () => j_(c),
|
|
145285
145285
|
enabled: c.length > 0
|
|
145286
145286
|
}), { activeVisit: C } = usePatientVisit(a);
|
|
145287
|
-
|
|
145287
|
+
cv(() => {
|
|
145288
145288
|
c.length > 0 && f.invalidateQueries({
|
|
145289
145289
|
queryKey: ["encounters-for-eoc", c]
|
|
145290
145290
|
});
|
|
@@ -145349,7 +145349,7 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
|
|
|
145349
145349
|
})), addSectionIds = (p) => p?.sections?.length ? {
|
|
145350
145350
|
...p,
|
|
145351
145351
|
sections: p.sections.map(
|
|
145352
|
-
(c) => c.id ? c : { ...c, id:
|
|
145352
|
+
(c) => c.id ? c : { ...c, id: wE() }
|
|
145353
145353
|
)
|
|
145354
145354
|
} : p, ConsultationPage = () => {
|
|
145355
145355
|
const { t: p } = useTranslation(), { clinicalConfig: c, isLoading: a } = useClinicalConfig(), { userPrivileges: s } = M2(), { addNotification: f } = or(), [d, h] = useState(!1), [E, C] = useState(null);
|
|
@@ -145368,17 +145368,17 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
|
|
|
145368
145368
|
}
|
|
145369
145369
|
],
|
|
145370
145370
|
[x, p]
|
|
145371
|
-
), N = useObservationFormsStore((ae) => ae.viewingForm), B =
|
|
145371
|
+
), N = useObservationFormsStore((ae) => ae.viewingForm), B = mr(), { data: z } = useQuery({
|
|
145372
145372
|
queryKey: ["patient", B],
|
|
145373
|
-
queryFn: () =>
|
|
145373
|
+
queryFn: () => FE(B),
|
|
145374
145374
|
enabled: !!B
|
|
145375
145375
|
}), O = useMemo(
|
|
145376
145376
|
() => [
|
|
145377
|
-
{ id: "home", label: "Home", href:
|
|
145377
|
+
{ id: "home", label: "Home", href: eE },
|
|
145378
145378
|
{ id: "clinical", label: "Clinical", href: BAHMNI_CLINICAL_PATH },
|
|
145379
145379
|
{
|
|
145380
145380
|
id: "current",
|
|
145381
|
-
label: z?.fullName ?
|
|
145381
|
+
label: z?.fullName ? EE(z.fullName) : p("CURRENT_PATIENT"),
|
|
145382
145382
|
isCurrentPage: !0
|
|
145383
145383
|
}
|
|
145384
145384
|
],
|
|
@@ -145396,7 +145396,7 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
|
|
|
145396
145396
|
error: X
|
|
145397
145397
|
} = useQuery({
|
|
145398
145398
|
queryKey: ["dashboardConfig", W],
|
|
145399
|
-
queryFn: () =>
|
|
145399
|
+
queryFn: () => y_(
|
|
145400
145400
|
DASHBOARD_CONFIG_URL(W),
|
|
145401
145401
|
dashboardConfigSchema
|
|
145402
145402
|
),
|
|
@@ -145414,7 +145414,7 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
|
|
|
145414
145414
|
...P,
|
|
145415
145415
|
sections: filterSectionsByPrivileges(P.sections)
|
|
145416
145416
|
}, [P, s]), fe = useMemo(() => !U?.printOptions || !s ? [] : U.printOptions.filter(
|
|
145417
|
-
(ae) =>
|
|
145417
|
+
(ae) => B_(s, ae.privileges)
|
|
145418
145418
|
), [U, s]), te = useMemo(() => V ? getSidebarItems(V, p) : [], [V, p]), [pe, Q] = useState(0), { activeItemId: ee, handleItemClick: oe } = qH2(te), le = useCallback(
|
|
145419
145419
|
(ae) => {
|
|
145420
145420
|
oe(ae), Q((J) => J + 1);
|
|
@@ -145470,7 +145470,7 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
|
|
|
145470
145470
|
const re = () => {
|
|
145471
145471
|
const ae = M.get(PROGRAM_UUID_SEARCH_PARAMS_KEY);
|
|
145472
145472
|
return ae && c.contextInformation?.program ? /* @__PURE__ */ jsx(
|
|
145473
|
-
|
|
145473
|
+
qqt,
|
|
145474
145474
|
{
|
|
145475
145475
|
programUUID: ae,
|
|
145476
145476
|
config: {
|
|
@@ -145489,7 +145489,7 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
|
|
|
145489
145489
|
{
|
|
145490
145490
|
breadcrumbItems: O,
|
|
145491
145491
|
globalActions: k,
|
|
145492
|
-
userMenu: /* @__PURE__ */ jsx(
|
|
145492
|
+
userMenu: /* @__PURE__ */ jsx(GWt, {}),
|
|
145493
145493
|
sideNavItems: te,
|
|
145494
145494
|
activeSideNavItemId: ee,
|
|
145495
145495
|
onSideNavItemClick: le,
|