@bahmni/clinical-app 0.0.1-dev.407 → 0.0.1-dev.408

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import { u as useTranslation, H as B, I as ENCOUNTER_CONCEPTS_URL, L as Yr, $ as $Ut, M as Li, N as BAHMNI_USER_LOCATION_COOKIE_NAME, O as Fm, Q as Qh, v as v0, R as vb2, S as Eb2, T as mb2, W as Wx2, U as ll1, X as pb2, Z as ME, a0 as Ci, a1 as Md, a2 as _E, a3 as kd, a4 as vs, a5 as dist, a6 as yt, a7 as ge, a8 as ss, a9 as G_, aa as sb, ab as ob, ac as Vb2, ad as bb2, ae as Rz2, z as z1, e as e8, af as ab, ag as Fy2, ah as tb2, ai as jb2, aj as $b2, ak as Ab2, k as pr1, al as xb, am as wb2, an as rv, ao as Ps, ap as Ub, aq as Ov, ar as rb, as as nb2, at as pb, au as gb, av as CLINICAL_V2_CONFIG_BASE_URL, aw as bb, ax as HE, ay as Qr, az as wb, aA as W_, aB as Av, aC as aL2, aD as qb, aE as _b, aF as vb, aG as Nv, aH as ub2, aI as Hv, aJ as Y_, aK as Tb, aL as St, aM as jr, aN as kv, aO as jv, a as en, aP as iv, aQ as jb, aR as Bb, h as eGt, aS as Pb2, aT as Fb2, aU as lv, aV as uv, aW as yb2, aX as ne, aY as STOP_REASON_VALUESET_EXPAND_URL, aZ as Be, a_ as vE, a$ as _f, b0 as es$2, b1 as STOP_REASON_VALUESET_TITLE, b2 as kb2, b3 as cv, b4 as fv, b5 as r_, b6 as B_, b7 as t_, b8 as an, b9 as N4, ba as c3, bb as Ob2, bc as IE, bd as dv, be as hv, bf as mv, bg as gv, bh as Di, bi as ns, bj as Jb, bk as ub, bl as Vv, bm as Pv, bn as $v, bo as Sv, bp as CDSS_SERVER_CONFIG_URL, bq as db, br as Ui, bs as P_, bt as Ze, bu as gr1, bv as _b2, bw as aw, bx as Qb, by as Xb, bz as hb2, bA as Xt, bB as tv, bC as ev, bD as Zb, bE as rr1, bF as X01, bG as s_, bH as nv, bI as wi, bJ as mE, bK as BAHMNI_CLINICAL_PATH, bL as xE, bM as fw, bN as zb2, bO as Lb2, bP as bz2, bQ as h01, bR as LE, bS as dr1 } from "./index-C-cFWAl8.js";
2
+ import { u as useTranslation, C as B, E as ENCOUNTER_CONCEPTS_URL, D as Yr, G as BUt, U as Ui, H as BAHMNI_USER_LOCATION_COOKIE_NAME, I as Hm, K as Qh, v as v0, N as vb2, R as Eb2, T as mb2, W as Wx2, Z as ll1, _ as pb2, $ as jE, a0 as Mi, a1 as jd, a2 as RE, a3 as Fd, a4 as vs, a5 as dist, a6 as yt, a7 as ge, a8 as ss, a9 as Q_, aa as cb, ab as ub, ac as Vb2, ad as bb2, ae as Rz2, z as z1, e as e8, af as lb, ag as Fy2, ah as tb2, ai as jb2, aj as $b2, ak as Ab2, i as gr1, al as qb, am as wb2, an as av, ao as Ps, ap as Vb, aq as Nv, ar as ab, as as nb2, at as yb, au as _b, av as CLINICAL_V2_CONFIG_BASE_URL, aw as Sb, ax as GE, ay as Qr, az as vb, aA as Z_, aB as Iv, aC as aL2, aD as Hb, aE as Rb, aF as Ob, aG as Lv, aH as ub2, aI as Gv, aJ as J_, aK as Ab, aL as St, aM as jr, aN as Fv, aO as zv, a as en, aP as dv, aQ as zb, aR as Kb, o as oGt, aS as Pb2, aT as Fb2, aU as hv, aV as pv, aW as yb2, aX as ne, aY as STOP_REASON_VALUESET_EXPAND_URL, aZ as Be, a_ as OE, a$ as Tf, b0 as es$2, b1 as STOP_REASON_VALUESET_TITLE, b2 as kb2, b3 as fv, b4 as gv, b5 as a_, b6 as K_, b7 as o_, b8 as an, b9 as N4, ba as c3, bb as Ob2, bc as xE, bd as mv, be as wv, bf as Ev, bg as _v, bh as ki, bi as ns, bj as ev, bk as pb, bl as Yv, bm as Dv, bn as Cv, bo as $v, bp as CDSS_SERVER_CONFIG_URL, bq as mb, br as Vi, bs as D_, bt as Ze, bu as Vr1, bv as _b2, bw as lw, bx as tv, by as rv, bz as hb2, bA as Xt, bB as ov, bC as sv, bD as nv, bE as ir1, bF as rr1, bG as c_, bH as iv, bI as vi, bJ as EE, bK as BAHMNI_CLINICAL_PATH, bL as qE, bM as gw, bN as zb2, bO as Lb2, bP as bz2, bQ as w01, bR as UE, bS as fr1 } from "./index-BEwvzERM.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-BHuXXaPS.js";
7
+ import { u as useClinicalConfig } from "./hook-ZFTGrxft.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 : {};
@@ -1954,7 +1954,7 @@ const createImpl = (p) => {
1954
1954
  validate: () => {
1955
1955
  const a = c();
1956
1956
  if (!a.medicationToStop) return !0;
1957
- const s = a.inputControlKey === $Ut, f = {}, d = a.fieldConfig;
1957
+ const s = a.inputControlKey === BUt, f = {}, d = a.fieldConfig;
1958
1958
  let h = !0;
1959
1959
  return d.stopDate?.isVisible !== !1 && d.stopDate?.isMandatory && !a.stopDate && (f.stopDate = "STOP_MEDICATION_DATE_REQUIRED", h = !1), d.stopReason?.isVisible !== !1 && d.stopReason?.isMandatory && !a.stopReason && (f.stopReason = s ? "CANCEL_VACCINATION_REASON_REQUIRED" : "STOP_MEDICATION_REASON_REQUIRED", h = !1), d.note?.isVisible !== !1 && d.note?.isMandatory && !a.note && (f.note = "STOP_MEDICATION_NOTE_REQUIRED", h = !1), p({ errors: f }), h;
1960
1960
  },
@@ -1980,7 +1980,7 @@ function getRegisteredInputControls() {
1980
1980
  }
1981
1981
  async function getLocations() {
1982
1982
  try {
1983
- const p = Li(BAHMNI_USER_LOCATION_COOKIE_NAME);
1983
+ const p = Ui(BAHMNI_USER_LOCATION_COOKIE_NAME);
1984
1984
  if (!p)
1985
1985
  return [];
1986
1986
  const c = decodeURIComponent(p), a = JSON.parse(c);
@@ -2028,7 +2028,7 @@ const useLocations = () => {
2028
2028
  }
2029
2029
  try {
2030
2030
  h(!0);
2031
- const H = await Fm(p), M = H.find(($) => !$.period?.end) ?? null;
2031
+ const H = await Hm(p), M = H.find(($) => !$.period?.end) ?? null;
2032
2032
  if (a(M), M)
2033
2033
  f(null), g(null);
2034
2034
  else {
@@ -2359,12 +2359,12 @@ const ALLERGY_INTOLERANCE_RESOURCE_TYPE = "AllergyIntolerance", ALLERGY_SEVERITY
2359
2359
  const a = {
2360
2360
  coding: p
2361
2361
  };
2362
- return ME(c) || (a.text = c), a;
2362
+ return jE(c) || (a.text = c), a;
2363
2363
  }, createCoding = (p, c, a) => {
2364
2364
  const s = {
2365
2365
  code: p
2366
2366
  };
2367
- return ME(c) || (s.system = c), ME(a) || (s.display = a), s;
2367
+ return jE(c) || (s.system = c), jE(a) || (s.display = a), s;
2368
2368
  }, createEncounterAllergyResource = (p, c, a, s, f, d, h) => {
2369
2369
  const E = {
2370
2370
  resourceType: "AllergyIntolerance",
@@ -2413,8 +2413,8 @@ const ALLERGY_INTOLERANCE_RESOURCE_TYPE = "AllergyIntolerance", ALLERGY_SEVERITY
2413
2413
  {
2414
2414
  coding: [
2415
2415
  {
2416
- system: Md,
2417
- code: Ci
2416
+ system: jd,
2417
+ code: Mi
2418
2418
  }
2419
2419
  ]
2420
2420
  }
@@ -2423,12 +2423,12 @@ const ALLERGY_INTOLERANCE_RESOURCE_TYPE = "AllergyIntolerance", ALLERGY_SEVERITY
2423
2423
  h ? createCoding(p, h) : createCoding(p)
2424
2424
  ]),
2425
2425
  clinicalStatus: createCodeableConcept([
2426
- createCoding("active", kd)
2426
+ createCoding("active", Fd)
2427
2427
  ]),
2428
2428
  verificationStatus: createCodeableConcept([
2429
2429
  createCoding(
2430
2430
  c,
2431
- _E
2431
+ RE
2432
2432
  )
2433
2433
  ]),
2434
2434
  encounter: s,
@@ -2441,7 +2441,7 @@ const ALLERGY_INTOLERANCE_RESOURCE_TYPE = "AllergyIntolerance", ALLERGY_SEVERITY
2441
2441
  {
2442
2442
  coding: [
2443
2443
  {
2444
- system: Md,
2444
+ system: jd,
2445
2445
  code: vs
2446
2446
  }
2447
2447
  ]
@@ -2451,7 +2451,7 @@ const ALLERGY_INTOLERANCE_RESOURCE_TYPE = "AllergyIntolerance", ALLERGY_SEVERITY
2451
2451
  E ? createCoding(p, E) : createCoding(p)
2452
2452
  ]),
2453
2453
  clinicalStatus: createCodeableConcept([
2454
- createCoding(h, kd)
2454
+ createCoding(h, Fd)
2455
2455
  ]),
2456
2456
  encounter: a,
2457
2457
  recorder: s,
@@ -103333,7 +103333,7 @@ function requireBundle() {
103333
103333
  function Al(C, b) {
103334
103334
  return A2(C) && Ee(b) ? hi(s1(C), b) : function(S) {
103335
103335
  var Y = mc(S, C);
103336
- return Y === f && Y === b ? Ii(S, C) : Zn(b, Y, 3);
103336
+ return Y === f && Y === b ? Ni(S, C) : Zn(b, Y, 3);
103337
103337
  };
103338
103338
  }
103339
103339
  function J2(C, b, S, Y, ie) {
@@ -104148,7 +104148,7 @@ function requireBundle() {
104148
104148
  return H1(ie, S) ? +ie : ie;
104149
104149
  }).sort(li)), Y;
104150
104150
  });
104151
- function vi(C) {
104151
+ function wi(C) {
104152
104152
  return C == null ? C : u0.call(C);
104153
104153
  }
104154
104154
  var af = ya(function(C) {
@@ -104169,7 +104169,7 @@ function requireBundle() {
104169
104169
  return En(C, z2(S));
104170
104170
  });
104171
104171
  }
104172
- function yi(C, b) {
104172
+ function Ci(C, b) {
104173
104173
  if (!C || !C.length) return [];
104174
104174
  var S = sc(C);
104175
104175
  return b == null ? S : En(S, function(Y) {
@@ -104188,7 +104188,7 @@ function requireBundle() {
104188
104188
  return b = typeof b == "function" ? b : f, U1(P1(C, Nn), f, b);
104189
104189
  }), Wl = ya(sc), Kl = ya(function(C) {
104190
104190
  var b = C.length, S = b > 1 ? C[b - 1] : f;
104191
- return S = typeof S == "function" ? (C.pop(), S) : f, yi(C, S);
104191
+ return S = typeof S == "function" ? (C.pop(), S) : f, Ci(C, S);
104192
104192
  });
104193
104193
  function v2(C) {
104194
104194
  var b = me(C);
@@ -104197,7 +104197,7 @@ function requireBundle() {
104197
104197
  function C2(C, b) {
104198
104198
  return b(C);
104199
104199
  }
104200
- var Ri = V1(function(C) {
104200
+ var yi = V1(function(C) {
104201
104201
  var b = C.length, S = b ? C[0] : 0, Y = this.__wrapped__, ie = function(be) {
104202
104202
  return m0(be, C);
104203
104203
  };
@@ -104207,10 +104207,10 @@ function requireBundle() {
104207
104207
  }), Gl = On(function(C, b, S) {
104208
104208
  un.call(C, S) ? ++C[S] : Z1(C, S, 1);
104209
104209
  }), I0 = Tl(x0), fc = Tl(gi);
104210
- function bi(C, b) {
104210
+ function Ri(C, b) {
104211
104211
  return (Ia(C) ? Ar : j1)(C, wa(b, 3));
104212
104212
  }
104213
- function Vi(C, b) {
104213
+ function bi(C, b) {
104214
104214
  return (Ia(C) ? A1 : dl)(C, wa(b, 3));
104215
104215
  }
104216
104216
  var Yl = On(function(C, b, S) {
@@ -104366,7 +104366,7 @@ function requireBundle() {
104366
104366
  function Nn(C) {
104367
104367
  return Bn(C) && sr(C);
104368
104368
  }
104369
- var f1 = il || mo, Mi = Pr ? cr(Pr) : function(C) {
104369
+ var f1 = il || mo, xi = Pr ? cr(Pr) : function(C) {
104370
104370
  return Bn(C) && br(C) == O;
104371
104371
  };
104372
104372
  function dc(C) {
@@ -104418,7 +104418,7 @@ function requireBundle() {
104418
104418
  }
104419
104419
  var Ao = Ka ? cr(Ka) : function(C) {
104420
104420
  return Bn(C) && J1(C.length) && !!ma[br(C)];
104421
- }, xi = nc(f2), $i = nc(function(C, b) {
104421
+ }, $i = nc(f2), Ii = nc(function(C, b) {
104422
104422
  return C <= b;
104423
104423
  });
104424
104424
  function cs(C) {
@@ -104483,12 +104483,12 @@ function requireBundle() {
104483
104483
  var Y = C == null ? f : Zo(C, b);
104484
104484
  return Y === f ? S : Y;
104485
104485
  }
104486
- function Ii(C, b) {
104486
+ function Ni(C, b) {
104487
104487
  return C != null && di(C, b, dn);
104488
104488
  }
104489
104489
  var cf = Hl(function(C, b, S) {
104490
104490
  b != null && typeof b.toString != "function" && (b = X0.call(b)), C[b] = S;
104491
- }, B0(Fr)), Ni = Hl(function(C, b, S) {
104491
+ }, B0(Fr)), Pi = Hl(function(C, b, S) {
104492
104492
  b != null && typeof b.toString != "function" && (b = X0.call(b)), un.call(C, b) ? C[b].push(S) : C[b] = [S];
104493
104493
  }, wa), lf = ya(g0);
104494
104494
  function rr(C) {
@@ -104522,7 +104522,7 @@ function requireBundle() {
104522
104522
  }), Q1 = V1(function(C, b) {
104523
104523
  return C == null ? {} : (function(S, Y) {
104524
104524
  return ml(S, Y, function(ie, be) {
104525
- return Ii(S, be);
104525
+ return Ni(S, be);
104526
104526
  });
104527
104527
  })(C, b);
104528
104528
  });
@@ -104540,10 +104540,10 @@ function requireBundle() {
104540
104540
  return C == null ? [] : K0(C, rr(C));
104541
104541
  }
104542
104542
  var Go = V0(function(C, b, S) {
104543
- return b = b.toLowerCase(), C + (S ? Pi(b) : b);
104543
+ return b = b.toLowerCase(), C + (S ? Di(b) : b);
104544
104544
  });
104545
- function Pi(C) {
104546
- return Oi(Pt(C).toLowerCase());
104545
+ function Di(C) {
104546
+ return Li(Pt(C).toLowerCase());
104547
104547
  }
104548
104548
  function Yo(C) {
104549
104549
  return (C = Pt(C)) && C.replace(cn, a0).replace(hr, "");
@@ -104555,10 +104555,10 @@ function requireBundle() {
104555
104555
  }), Si = Vl("toLowerCase"), ms = V0(function(C, b, S) {
104556
104556
  return C + (S ? "_" : "") + b.toLowerCase();
104557
104557
  }), or = V0(function(C, b, S) {
104558
- return C + (S ? " " : "") + Oi(b);
104558
+ return C + (S ? " " : "") + Li(b);
104559
104559
  }), u1 = V0(function(C, b, S) {
104560
104560
  return C + (S ? " " : "") + b.toUpperCase();
104561
- }), Oi = Vl("toUpperCase");
104561
+ }), Li = Vl("toUpperCase");
104562
104562
  function wc(C, b, S) {
104563
104563
  return C = Pt(C), (b = S ? f : b) === f ? (function(Y) {
104564
104564
  return Wt.test(Y);
@@ -104568,13 +104568,13 @@ function requireBundle() {
104568
104568
  return Y.match(ot) || [];
104569
104569
  })(C) : C.match(b) || [];
104570
104570
  }
104571
- var Bi = ya(function(C, b) {
104571
+ var Oi = ya(function(C, b) {
104572
104572
  try {
104573
104573
  return Ga(C, f, b);
104574
104574
  } catch (S) {
104575
104575
  return dc(S) ? S : new Ja(S);
104576
104576
  }
104577
- }), ki = V1(function(C, b) {
104577
+ }), Bi = V1(function(C, b) {
104578
104578
  return Ar(b, function(S) {
104579
104579
  S = s1(S), Z1(C, S, R2(C[S], C));
104580
104580
  }), C;
@@ -104647,7 +104647,7 @@ function requireBundle() {
104647
104647
  return C = Oa(C), function() {
104648
104648
  if (--C < 1) return b.apply(this, arguments);
104649
104649
  };
104650
- }, me.ary = ts, me.assign = fs, me.assignIn = T2, me.assignInWith = H2, me.assignWith = ps, me.at = us, me.before = yn, me.bind = R2, me.bindAll = ki, me.bindKey = pc, me.castArray = function() {
104650
+ }, me.ary = ts, me.assign = fs, me.assignIn = T2, me.assignInWith = H2, me.assignWith = ps, me.at = us, me.before = yn, me.bind = R2, me.bindAll = Bi, me.bindKey = pc, me.castArray = function() {
104651
104651
  if (!arguments.length) return [];
104652
104652
  var C = arguments[0];
104653
104653
  return Ia(C) ? C : [C];
@@ -104738,7 +104738,7 @@ function requireBundle() {
104738
104738
  return C == null ? [] : c1(C, fr(C));
104739
104739
  }, me.groupBy = Yl, me.initial = function(C) {
104740
104740
  return C != null && C.length ? gn(C, 0, -1) : [];
104741
- }, me.intersection = Bl, me.intersectionBy = kl, me.intersectionWith = Fl, me.invert = cf, me.invertBy = Ni, me.invokeMap = Jl, me.iteratee = Fi, me.keyBy = Ql, me.keys = rr, me.keysIn = fr, me.map = y2, me.mapKeys = function(C, b) {
104741
+ }, me.intersection = Bl, me.intersectionBy = kl, me.intersectionWith = Fl, me.invert = cf, me.invertBy = Pi, me.invokeMap = Jl, me.iteratee = Fi, me.keyBy = Ql, me.keys = rr, me.keysIn = fr, me.map = y2, me.mapKeys = function(C, b) {
104742
104742
  var S = {};
104743
104743
  return b = wa(b, 3), qr(C, function(Y, ie, be) {
104744
104744
  Z1(S, b(Y, ie, be), Y);
@@ -104784,7 +104784,7 @@ function requireBundle() {
104784
104784
  }, me.rest = function(C, b) {
104785
104785
  if (typeof C != "function") throw new Er(d);
104786
104786
  return ya(C, b = b === f ? b : Oa(b));
104787
- }, me.reverse = vi, me.sampleSize = function(C, b, S) {
104787
+ }, me.reverse = wi, me.sampleSize = function(C, b, S) {
104788
104788
  return b = (S ? Vr(C, b, S) : b === f) ? 1 : Oa(b), (Ia(C) ? l2 : gl)(C, b);
104789
104789
  }, me.set = function(C, b, S) {
104790
104790
  return C == null ? C : y0(C, b, S);
@@ -104846,7 +104846,7 @@ function requireBundle() {
104846
104846
  return b = typeof b == "function" ? b : f, C && C.length ? q1(C, f, b) : [];
104847
104847
  }, me.unset = function(C, b) {
104848
104848
  return C == null || X2(C, b);
104849
- }, me.unzip = sc, me.unzipWith = yi, me.update = function(C, b, S) {
104849
+ }, me.unzip = sc, me.unzipWith = Ci, me.update = function(C, b, S) {
104850
104850
  return C == null ? C : wl(C, b, oi(S));
104851
104851
  }, me.updateWith = function(C, b, S, Y) {
104852
104852
  return Y = typeof Y == "function" ? Y : f, C == null ? C : wl(C, b, oi(S), Y);
@@ -104858,7 +104858,7 @@ function requireBundle() {
104858
104858
  return b0(C || [], b || [], s2);
104859
104859
  }, me.zipObjectDeep = function(C, b) {
104860
104860
  return b0(C || [], b || [], y0);
104861
- }, me.zipWith = Kl, me.entries = gc, me.entriesIn = M2, me.extend = T2, me.extendWith = H2, Cc(me, me), me.add = zr, me.attempt = Bi, me.camelCase = Go, me.capitalize = Pi, me.ceil = Jn, me.clamp = function(C, b, S) {
104861
+ }, me.zipWith = Kl, me.entries = gc, me.entriesIn = M2, me.extend = T2, me.extendWith = H2, Cc(me, me), me.add = zr, me.attempt = Oi, me.camelCase = Go, me.capitalize = Di, me.ceil = Jn, me.clamp = function(C, b, S) {
104862
104862
  return S === f && (S = b, b = f), S !== f && (S = (S = r1(S)) == S ? S : 0), b !== f && (b = (b = r1(b)) == b ? b : 0), Fo(r1(C), b, S);
104863
104863
  }, me.clone = function(C) {
104864
104864
  return vr(C, 4);
@@ -104887,7 +104887,7 @@ function requireBundle() {
104887
104887
  return B2(C, wa(b, 3), qr);
104888
104888
  }, me.findLast = fc, me.findLastIndex = gi, me.findLastKey = function(C, b) {
104889
104889
  return B2(C, wa(b, 3), jc);
104890
- }, me.floor = bc, me.forEach = bi, me.forEachRight = Vi, me.forIn = function(C, b) {
104890
+ }, me.floor = bc, me.forEach = Ri, me.forEachRight = bi, me.forIn = function(C, b) {
104891
104891
  return C == null ? C : zc(C, wa(b, 3), fr);
104892
104892
  }, me.forInRight = function(C, b) {
104893
104893
  return C == null ? C : Zc(C, wa(b, 3), fr);
@@ -104897,7 +104897,7 @@ function requireBundle() {
104897
104897
  return C && jc(C, wa(b, 3));
104898
104898
  }, me.get = mc, me.gt = of, me.gte = os, me.has = function(C, b) {
104899
104899
  return C != null && di(C, b, E0);
104900
- }, me.hasIn = Ii, me.head = g2, me.identity = Fr, me.includes = function(C, b, S, Y) {
104900
+ }, me.hasIn = Ni, me.head = g2, me.identity = Fr, me.includes = function(C, b, S, Y) {
104901
104901
  C = sr(C) ? C : M1(C), S = S && !Y ? Oa(S) : 0;
104902
104902
  var ie = C.length;
104903
104903
  return S < 0 && (S = Gn(ie + S, 0)), L0(C) ? S <= ie && C.indexOf(b, S) > -1 : !!ie && Io(C, b, S) > -1;
@@ -104912,7 +104912,7 @@ function requireBundle() {
104912
104912
  })(C = r1(C), b, S);
104913
104913
  }, me.invoke = lf, me.isArguments = Y1, me.isArray = Ia, me.isArrayBuffer = _o, me.isArrayLike = sr, me.isArrayLikeObject = Nn, me.isBoolean = function(C) {
104914
104914
  return C === !0 || C === !1 || Bn(C) && br(C) == Z;
104915
- }, me.isBuffer = f1, me.isDate = Mi, me.isElement = function(C) {
104915
+ }, me.isBuffer = f1, me.isDate = xi, me.isElement = function(C) {
104916
104916
  return Bn(C) && C.nodeType === 1 && !V2(C);
104917
104917
  }, me.isEmpty = function(C) {
104918
104918
  if (C == null) return !0;
@@ -104960,7 +104960,7 @@ function requireBundle() {
104960
104960
  for (var Ge = ze + 1; Ge--; ) if (be[Ge] === Pe) return Ge;
104961
104961
  return Ge;
104962
104962
  })(C, b, ie) : U0(C, k2, ie, !0);
104963
- }, me.lowerCase = pa, me.lowerFirst = Si, me.lt = xi, me.lte = $i, me.max = function(C) {
104963
+ }, me.lowerCase = pa, me.lowerFirst = Si, me.lt = $i, me.lte = Ii, me.max = function(C) {
104964
104964
  return C && C.length ? Y2(C, Fr, jo) : f;
104965
104965
  }, me.maxBy = function(C, b) {
104966
104966
  return C && C.length ? Y2(C, wa(b, 2), jo) : f;
@@ -105092,7 +105092,7 @@ function print() { __p += __j.call(arguments, '') }
105092
105092
  ` : `;
105093
105093
  `) + Vt + `return __p
105094
105094
  }`;
105095
- var pt = Bi(function() {
105095
+ var pt = Oi(function() {
105096
105096
  return Wn(ze, oa + "return " + Vt).apply(f, Ge);
105097
105097
  });
105098
105098
  if (pt.source = Vt, dc(pt)) throw pt;
@@ -105156,7 +105156,7 @@ function print() { __p += __j.call(arguments, '') }
105156
105156
  }, me.uniqueId = function(C) {
105157
105157
  var b = ++io;
105158
105158
  return Pt(C) + b;
105159
- }, me.upperCase = u1, me.upperFirst = Oi, me.each = bi, me.eachRight = Vi, me.first = g2, Cc(me, (Rc = {}, qr(me, function(C, b) {
105159
+ }, me.upperCase = u1, me.upperFirst = Li, me.each = Ri, me.eachRight = bi, me.first = g2, Cc(me, (Rc = {}, qr(me, function(C, b) {
105160
105160
  un.call(me.prototype, b) || (Rc[b] = C);
105161
105161
  }), Rc), { chain: !1 }), me.VERSION = "4.17.21", Ar(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(C) {
105162
105162
  me[C].placeholder = me;
@@ -105281,7 +105281,7 @@ function print() { __p += __j.call(arguments, '') }
105281
105281
  Dt[Nt++] = Ht;
105282
105282
  }
105283
105283
  return Dt;
105284
- }, me.prototype.at = Ri, me.prototype.chain = function() {
105284
+ }, me.prototype.at = yi, me.prototype.chain = function() {
105285
105285
  return v2(this);
105286
105286
  }, me.prototype.commit = function() {
105287
105287
  return new Xr(this.value(), this.__chain__);
@@ -105301,9 +105301,9 @@ function print() { __p += __j.call(arguments, '') }
105301
105301
  var C = this.__wrapped__;
105302
105302
  if (C instanceof Da) {
105303
105303
  var b = C;
105304
- return this.__actions__.length && (b = new Da(this)), (b = b.reverse()).__actions__.push({ func: C2, args: [vi], thisArg: f }), new Xr(b, this.__chain__);
105304
+ return this.__actions__.length && (b = new Da(this)), (b = b.reverse()).__actions__.push({ func: C2, args: [wi], thisArg: f }), new Xr(b, this.__chain__);
105305
105305
  }
105306
- return this.thru(vi);
105306
+ return this.thru(wi);
105307
105307
  }, me.prototype.toJSON = me.prototype.valueOf = me.prototype.value = function() {
105308
105308
  return vl(this.__wrapped__, this.__actions__);
105309
105309
  }, me.prototype.first = me.prototype.head, Do && (me.prototype[Do] = function() {
@@ -134015,7 +134015,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
134015
134015
  m && (y && u.set(y, m), m.id && (u.set(`urn:uuid:${m.id}`, m), u.set(`Observation/${m.id}`, m), u.set(m.id, m)));
134016
134016
  }
134017
134017
  return u;
134018
- }, vi = (_) => {
134018
+ }, wi = (_) => {
134019
134019
  const u = /* @__PURE__ */ new Set();
134020
134020
  for (const A of _) {
134021
134021
  const { resource: m } = A;
@@ -134089,7 +134089,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
134089
134089
  return console.warn("FhirObservationTransformer: Failed to normalise input", P), [];
134090
134090
  }
134091
134091
  if (!u || u.length === 0) return [];
134092
- const A = tf(u), m = vi(u), y = u.filter((P) => {
134092
+ const A = tf(u), m = wi(u), y = u.filter((P) => {
134093
134093
  const { fullUrl: q, resource: j } = P;
134094
134094
  return !(q && m.has(q) || j && j.id && (m.has(`urn:uuid:${j.id}`) || m.has(`Observation/${j.id}`) || m.has(j.id)));
134095
134095
  }), x = [];
@@ -134104,7 +134104,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
134104
134104
  }
134105
134105
  return x;
134106
134106
  }
134107
- const yi = (_, u, A) => {
134107
+ const Ci = (_, u, A) => {
134108
134108
  const m = { code: _ };
134109
134109
  return u && (m.system = u), A && (m.display = A), m;
134110
134110
  }, ql = (_, u) => ({ coding: _ }), w2 = () => typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : (console.warn("FhirObservationTransformer: Using Math.random() for UUID generation. This is not cryptographically secure and should not be used for healthcare data in production. Please ensure crypto.randomUUID() is available."), "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (_) => {
@@ -134114,7 +134114,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
134114
134114
  const y = { url: u };
134115
134115
  A && (y.title = A), m && (y.contentType = m), _.extension = _.extension || [], _.extension.push({ url: ic, valueAttachment: y }), _.valueString = u;
134116
134116
  }, $0 = (_, u) => {
134117
- const { patientReference: A, encounterReference: m, performerReference: y } = u, x = typeof _.concept == "object" ? _.concept.uuid : _.concept, P = { resourceType: x0, status: Ei, code: ql([yi(x)]), subject: A, encounter: m, performer: [y], effectiveDateTime: _.obsDatetime || _.observationDateTime || (/* @__PURE__ */ new Date()).toISOString() }, q = _.value, j = typeof _.concept == "object" ? _.concept.datatype : void 0;
134117
+ const { patientReference: A, encounterReference: m, performerReference: y } = u, x = typeof _.concept == "object" ? _.concept.uuid : _.concept, P = { resourceType: x0, status: Ei, code: ql([Ci(x)]), subject: A, encounter: m, performer: [y], effectiveDateTime: _.obsDatetime || _.observationDateTime || (/* @__PURE__ */ new Date()).toISOString() }, q = _.value, j = typeof _.concept == "object" ? _.concept.datatype : void 0;
134118
134118
  if (q != null) switch (typeof q) {
134119
134119
  case $t.uk:
134120
134120
  P.valueQuantity = { value: q };
@@ -134142,7 +134142,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
134142
134142
  if (q instanceof Date && !isNaN(q.getTime())) P.valueDateTime = q.toISOString();
134143
134143
  else if (q && "uuid" in q) {
134144
134144
  const G = q.system && q.code ? q.code : q.uuid;
134145
- P.valueCodeableConcept = ql([yi(G, q.system, q.display || q.displayString)]);
134145
+ P.valueCodeableConcept = ql([Ci(G, q.system, q.display || q.displayString)]);
134146
134146
  } else q && "url" in q && Ul(P, q.url, q.fileName, q.contentType);
134147
134147
  }
134148
134148
  if (_.interpretation) {
@@ -134180,7 +134180,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
134180
134180
  if ("url" in A || "url" in m) return A.url === m.url;
134181
134181
  }
134182
134182
  return !(!Kl(A) || !Kl(m)) && Number(A) === Number(m);
134183
- })(_.value, u.value) && v2(_.comment) === v2(u.comment) && v2(_.interpretation) === v2(u.interpretation), Ri = (_) => {
134183
+ })(_.value, u.value) && v2(_.comment) === v2(u.comment) && v2(_.interpretation) === v2(u.interpretation), yi = (_) => {
134184
134184
  const u = /* @__PURE__ */ new Map(), A = (m) => {
134185
134185
  m && (m.uuid && u.set(m.uuid, m), Array.isArray(m.groupMembers) && m.groupMembers.forEach(A));
134186
134186
  };
@@ -134192,10 +134192,10 @@ Try polyfilling it using "@formatjs/intl-displaynames"
134192
134192
  return y ? !!A.voided || !C2(A, y) : !(A.voided || A.value === null || A.value === void 0);
134193
134193
  })(_, u);
134194
134194
  }
134195
- const I0 = (_) => `${x0}/${_}`, fc = (_, u) => u.basedOnReference ? { ..._, basedOn: [u.basedOnReference] } : _, bi = (_, u, A) => {
134195
+ const I0 = (_) => `${x0}/${_}`, fc = (_, u) => u.basedOnReference ? { ..._, basedOn: [u.basedOnReference] } : _, Ri = (_, u, A) => {
134196
134196
  const m = w2(), y = `urn:uuid:${m}`, x = fc({ ...$0(_, u), id: m }, u);
134197
134197
  return A && (x.hasMember = A.map((P) => ({ reference: P }))), { fullUrl: y, resource: x, request: { method: "POST", url: x0 } };
134198
- }, Vi = (_, u, A, m) => {
134198
+ }, bi = (_, u, A, m) => {
134199
134199
  const y = I0(_.uuid), x = fc({ ...$0(_, A), id: _.uuid, status: u && u.status || Ei }, A);
134200
134200
  return m && (x.hasMember = m.map((P) => ({ reference: P }))), { fullUrl: y, resource: x, request: { method: "PUT", url: y } };
134201
134201
  }, Yl = (_) => {
@@ -134207,21 +134207,21 @@ Try polyfilling it using "@formatjs/intl-displaynames"
134207
134207
  const P = m.groupMembers.map((Ce) => Jl(Ce, y, x)), q = P.flatMap((Ce) => Ce.entries), j = P.map((Ce) => Ce.hasMemberRef).filter(Boolean), G = P.some((Ce) => Ce.stillExists), te = m.uuid ? y.get(m.uuid) : void 0;
134208
134208
  if (!te) {
134209
134209
  if (j.length === 0) return { entries: q, hasMemberRef: null, stillExists: !1 };
134210
- const Ce = bi(m, x, j);
134210
+ const Ce = Ri(m, x, j);
134211
134211
  return { entries: [...q, Ce], hasMemberRef: Ce.fullUrl, stillExists: !0 };
134212
134212
  }
134213
134213
  if (m.voided || !G) return { entries: [...q, Yl(m.uuid)], hasMemberRef: null, stillExists: !1 };
134214
134214
  if (j.length === 0) return { entries: q, hasMemberRef: null, stillExists: !0 };
134215
- const pe = Vi(m, te, x, j);
134215
+ const pe = bi(m, te, x, j);
134216
134216
  return { entries: [...q, pe], hasMemberRef: I0(m.uuid), stillExists: !0 };
134217
134217
  })(_, u, A) : ((m, y, x) => {
134218
134218
  const P = m.uuid ? y.get(m.uuid) : void 0;
134219
134219
  if (!P) {
134220
134220
  if (m.voided || m.value === null || m.value === void 0) return { entries: [], hasMemberRef: null, stillExists: !1 };
134221
- const q = bi(m, x);
134221
+ const q = Ri(m, x);
134222
134222
  return { entries: [q], hasMemberRef: q.fullUrl, stillExists: !0 };
134223
134223
  }
134224
- return m.voided ? { entries: [Yl(m.uuid)], hasMemberRef: null, stillExists: !1 } : C2(m, P) ? { entries: [], hasMemberRef: null, stillExists: !0 } : { entries: [Vi(m, P, x)], hasMemberRef: I0(m.uuid), stillExists: !0 };
134224
+ return m.voided ? { entries: [Yl(m.uuid)], hasMemberRef: null, stillExists: !1 } : C2(m, P) ? { entries: [], hasMemberRef: null, stillExists: !0 } : { entries: [bi(m, P, x)], hasMemberRef: I0(m.uuid), stillExists: !0 };
134225
134225
  })(_, u, A);
134226
134226
  }
134227
134227
  const Ql = (_) => {
@@ -134306,9 +134306,9 @@ Try polyfilling it using "@formatjs/intl-displaynames"
134306
134306
  onValueUpdated() {
134307
134307
  if (this.props.onValueUpdated && this.props.onValueUpdated(this.state.data), this.props.setIsFormUpdated) {
134308
134308
  const u = (function(A, m) {
134309
- const y = Ri(m);
134309
+ const y = yi(m);
134310
134310
  if ((A || []).some((P) => Gl(P, y))) return !0;
134311
- const x = Ri(A);
134311
+ const x = yi(A);
134312
134312
  return [...y.keys()].some((P) => !x.has(P));
134313
134313
  })(this.getValue().observations, this.initialObservations);
134314
134314
  u !== this.lastHasChanges && (this.lastHasChanges = u, this.props.setIsFormUpdated(u));
@@ -134360,7 +134360,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
134360
134360
  if (!ee()(y)) throw N0.fromFieldErrors(y);
134361
134361
  return (function(x, P, q) {
134362
134362
  Ql(q);
134363
- const j = Ri(P);
134363
+ const j = yi(P);
134364
134364
  return { resourceType: "Bundle", type: "transaction", entry: (x || []).flatMap((G) => Jl(G, j, q).entries) };
134365
134365
  })(m, this.initialObservations, u);
134366
134366
  }
@@ -134911,7 +134911,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
134911
134911
  } }) });
134912
134912
  });
134913
134913
  f1.propTypes = { asynchronous: T().bool, autofocus: T().bool, autoload: T().bool, cache: T().bool, conceptUuid: T().string, enabled: T().bool, filterOptions: T().func, formFieldPath: T().string, labelKey: T().string, minimumInput: T().number, multiSelect: T().bool, onBlur: T().func, onValueChange: T().func, options: T().array, optionsUrl: T().string, searchable: T().bool, terminologyServiceConfig: T().object, url: T().string, validate: T().bool, validateForm: T().bool, validations: T().array, value: T().any, valueKey: T().string };
134914
- class Mi extends N.Component {
134914
+ class xi extends N.Component {
134915
134915
  constructor(u) {
134916
134916
  super(u), this.state = { locationData: [], loaded: !1 }, this._isMounted = !1, this.onValueChange = this.onValueChange.bind(this);
134917
134917
  }
@@ -134939,7 +134939,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
134939
134939
  return (0, Ee.jsx)(f1, { asynchronous: !1, conceptUuid: j, enabled: m, formFieldPath: y, labelKey: "name", minimumInput: te, multiSelect: !1, onValueChange: this.onValueChange, options: this.state.locationData, searchable: G, validate: x, validateForm: P, validations: q, value: u });
134940
134940
  }
134941
134941
  }
134942
- Mi.propTypes = { addMore: T().bool, conceptUuid: T().string, enabled: T().bool, formFieldPath: T().string, onChange: T().func.isRequired, properties: T().object.isRequired, showNotification: T().func.isRequired, validate: T().bool.isRequired, validateForm: T().bool, validations: T().array.isRequired, value: T().string }, Mi.defaultProps = { autofocus: !1, enabled: !0, searchable: !1 };
134942
+ xi.propTypes = { addMore: T().bool, conceptUuid: T().string, enabled: T().bool, formFieldPath: T().string, onChange: T().func.isRequired, properties: T().object.isRequired, showNotification: T().func.isRequired, validate: T().bool.isRequired, validateForm: T().bool, validations: T().array.isRequired, value: T().string }, xi.defaultProps = { autofocus: !1, enabled: !0, searchable: !1 };
134943
134943
  const dc = (_) => _.show ? (0, Ee.jsx)("div", { className: "overlay" }) : null;
134944
134944
  dc.propTypes = { show: T().bool.isRequired };
134945
134945
  const n1 = dc;
@@ -135240,7 +135240,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
135240
135240
  }
135241
135241
  }
135242
135242
  Ao.propTypes = Yn.propTypes, Ao.defaultProps = Yn.defaultProps;
135243
- class xi extends Yn {
135243
+ class $i extends Yn {
135244
135244
  displayVideo() {
135245
135245
  const u = this.state.loading === !0, A = this.getFileName(this.props.value);
135246
135246
  return (0, Ee.jsxs)("div", { className: _a()("carbon-video-upload", { "carbon-error": this.state.hasErrors }), children: [u && (0, Ee.jsx)(Fa.Loading, { active: !0, small: !0 }), (0, Ee.jsx)("p", { className: "upload-label", children: "Upload video" }), (0, Ee.jsx)("p", { className: "upload-description", children: "Supported video formats: .mp4, .avi and more." }), (0, Ee.jsx)(Tr.FileUploaderButton, { accept: [".mkv", ".flv", ".ogg", "video/*", "audio/3gpp"], labelText: "Upload video", onChange: this.handleChange, disabled: !this.props.enabled, disableLabelChanges: !0 }), this.props.value && (0, Ee.jsx)("div", { className: "file-row", children: (0, Ee.jsx)(Tr.FileUploaderItem, { uuid: typeof this.props.value == "object" ? this.props.value.url : this.props.value, name: A, status: "edit", onDelete: this.handleDelete, iconDescription: "Delete video" }) })] });
@@ -135249,8 +135249,8 @@ Try polyfilling it using "@formatjs/intl-displaynames"
135249
135249
  return this.displayVideo();
135250
135250
  }
135251
135251
  }
135252
- xi.propTypes = Yn.propTypes, xi.defaultProps = Yn.defaultProps;
135253
- class $i extends N.Component {
135252
+ $i.propTypes = Yn.propTypes, $i.defaultProps = Yn.defaultProps;
135253
+ class Ii extends N.Component {
135254
135254
  render() {
135255
135255
  const { enabled: u, formName: A, formVersion: m, metadata: { label: y, controls: x, columnHeaders: P }, onEventTrigger: q, patientUuid: j, validate: G, validateForm: te, showNotification: pe } = this.props, Ce = { enabled: u, formName: A, formVersion: m, validate: G, validateForm: te, onValueChanged: this.props.onValueChanged, onEventTrigger: q, patientUuid: j, showNotification: pe, componentStore: this.props.componentStore }, Me = l1(x, "row"), xe = this.props.children.toArray();
135256
135256
  return (0, Ee.jsxs)("div", { children: [(0, Ee.jsx)("strong", { className: "table-header test-table-label", children: this.props.intl.formatMessage({ defaultMessage: y.value, id: y.translationKey || `table-label-${this.props.metadata.id}` }) }), (0, Ee.jsxs)(Tr.Table, { className: "carbon-form-table", children: [(0, Ee.jsx)(Tr.TableHead, { children: (0, Ee.jsx)(Tr.TableRow, { children: P.map((Oe) => (0, Ee.jsx)(Tr.TableHeader, { children: this.props.intl.formatMessage({ defaultMessage: Oe.value, id: Oe.translationKey || `table-header-${Oe.id}` }) }, Oe.id)) }) }), (0, Ee.jsx)(Tr.TableBody, { children: (0, Ee.jsx)(T1, { ...this.props.intl, children: Me.map((Oe, Je) => {
@@ -135263,8 +135263,8 @@ Try polyfilling it using "@formatjs/intl-displaynames"
135263
135263
  }) }) })] })] });
135264
135264
  }
135265
135265
  }
135266
- $i.propTypes = { children: T().any, componentStore: T().object, enabled: T().bool, formName: T().string.isRequired, formVersion: T().string.isRequired, intl: T().object, metadata: T().shape({ id: T().string.isRequired, label: T().shape({ type: T().string.isRequired, value: T().string.isRequired, translationKey: T().string }).isRequired, properties: T().object, type: T().string.isRequired, controls: T().array, columnHeaders: T().arrayOf(T().shape({ id: T().string, translationKey: T().string, type: T().string.isRequired, value: T().string.isRequired })).isRequired }), onEventTrigger: T().func, onValueChanged: T().func.isRequired, patientUuid: T().string, showNotification: T().func.isRequired, validate: T().bool.isRequired, validateForm: T().bool.isRequired }, $i.defaultProps = { children: Vn(), enabled: !0 };
135267
- const cs = b1($i, { forwardRef: !0 });
135266
+ Ii.propTypes = { children: T().any, componentStore: T().object, enabled: T().bool, formName: T().string.isRequired, formVersion: T().string.isRequired, intl: T().object, metadata: T().shape({ id: T().string.isRequired, label: T().shape({ type: T().string.isRequired, value: T().string.isRequired, translationKey: T().string }).isRequired, properties: T().object, type: T().string.isRequired, controls: T().array, columnHeaders: T().arrayOf(T().shape({ id: T().string, translationKey: T().string, type: T().string.isRequired, value: T().string.isRequired })).isRequired }), onEventTrigger: T().func, onValueChanged: T().func.isRequired, patientUuid: T().string, showNotification: T().func.isRequired, validate: T().bool.isRequired, validateForm: T().bool.isRequired }, Ii.defaultProps = { children: Vn(), enabled: !0 };
135267
+ const cs = b1(Ii, { forwardRef: !0 });
135268
135268
  class p1 extends N.Component {
135269
135269
  constructor(u) {
135270
135270
  super(u);
@@ -135350,7 +135350,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
135350
135350
  const Ba = nt(da), Na = ea(Ba, $t.Ay.errorTypes.error), ba = ea(Ba, $t.Ay.errorTypes.warning);
135351
135351
  xe(Na), Je(ba), A({ value: da, errors: Ba, triggerControlEvent: !0 });
135352
135352
  }, invalid: Me, warn: Oe, disabled: !m, step: 1, ...Ti()(Ce, rs) }, wt), Kt() && (0, Ee.jsx)("span", { className: "obs-numeric-range", children: Kt() })] });
135353
- }, dropdown: Hi, button: Y1, freetextautocomplete: Ia, autocomplete: f1, locationobshandler: Mi, providerobshandler: hc, obscontrol: V2, radio: Ac, imageurlhandler: Ao, videourlhandler: xi, table: cs, boolean: Oa }, r1 = { getRegisteredComponent: (_) => is[_.toLowerCase()] || la.A.getRegisteredComponent(_) }, ls = (0, N.forwardRef)(function(_, u) {
135353
+ }, dropdown: Hi, button: Y1, freetextautocomplete: Ia, autocomplete: f1, locationobshandler: xi, providerobshandler: hc, obscontrol: V2, radio: Ac, imageurlhandler: Ao, videourlhandler: $i, table: cs, boolean: Oa }, r1 = { getRegisteredComponent: (_) => is[_.toLowerCase()] || la.A.getRegisteredComponent(_) }, ls = (0, N.forwardRef)(function(_, u) {
135354
135354
  return (0, Ee.jsx)(P0, { ..._, ref: u, componentStore: r1 });
135355
135355
  });
135356
135356
  function Pt() {
@@ -135381,8 +135381,8 @@ Try polyfilling it using "@formatjs/intl-displaynames"
135381
135381
  var A = _.scrollHeight;
135382
135382
  return u.sizingStyle.boxSizing === "border-box" ? A + u.borderSize : A - u.paddingSize;
135383
135383
  }, mc = function() {
135384
- }, Ii = ["borderBottomWidth", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "boxSizing", "fontFamily", "fontSize", "fontStyle", "fontWeight", "letterSpacing", "lineHeight", "paddingBottom", "paddingLeft", "paddingRight", "paddingTop", "tabSize", "textIndent", "textRendering", "textTransform", "width", "wordBreak", "wordSpacing", "scrollbarGutter"], cf = !!document.documentElement.currentStyle;
135385
- function Ni(_, u, A) {
135384
+ }, Ni = ["borderBottomWidth", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "boxSizing", "fontFamily", "fontSize", "fontStyle", "fontWeight", "letterSpacing", "lineHeight", "paddingBottom", "paddingLeft", "paddingRight", "paddingTop", "tabSize", "textIndent", "textRendering", "textTransform", "width", "wordBreak", "wordSpacing", "scrollbarGutter"], cf = !!document.documentElement.currentStyle;
135385
+ function Pi(_, u, A) {
135386
135386
  var m, y, x = (m = A, y = K().useRef(m), T2(function() {
135387
135387
  y.current = m;
135388
135388
  }), y);
@@ -135405,7 +135405,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
135405
135405
  var et = Ce.current, tt = m && Oe.current ? Oe.current : (function(ct) {
135406
135406
  var nt = window.getComputedStyle(ct);
135407
135407
  if (nt === null) return null;
135408
- var ea, Kt = (ea = nt, Ii.reduce(function(da, Yt) {
135408
+ var ea, Kt = (ea = nt, Ni.reduce(function(da, Yt) {
135409
135409
  return da[Yt] = ea[Yt], da;
135410
135410
  }, {})), ra = Kt.boxSizing;
135411
135411
  return ra === "" ? null : (cf && ra === "border-box" && (Kt.width = parseFloat(Kt.width) + parseFloat(Kt.borderRightWidth) + parseFloat(Kt.borderLeftWidth) + parseFloat(Kt.paddingRight) + parseFloat(Kt.paddingLeft) + "px"), { sizingStyle: Kt, paddingSize: parseFloat(Kt.paddingBottom) + parseFloat(Kt.paddingTop), borderSize: parseFloat(Kt.borderBottomWidth) + parseFloat(Kt.borderTopWidth) });
@@ -135430,7 +135430,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
135430
135430
  }
135431
135431
  };
135432
135432
  return N.useLayoutEffect(Je), (function(et, tt) {
135433
- Ni(document.body, "reset", function(wt) {
135433
+ Pi(document.body, "reset", function(wt) {
135434
135434
  et.current.form === wt.target && tt();
135435
135435
  });
135436
135436
  })(Ce, function() {
@@ -135441,7 +135441,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
135441
135441
  tt && et !== tt.value && Je();
135442
135442
  });
135443
135443
  }
135444
- }), Ni(window, "resize", Je), A = Je, Ni(document.fonts, "loadingdone", A), N.createElement("textarea", Pt({}, te, { onChange: function(et) {
135444
+ }), Pi(window, "resize", Je), A = Je, Pi(document.fonts, "loadingdone", A), N.createElement("textarea", Pt({}, te, { onChange: function(et) {
135445
135445
  pe || Je(), q(et);
135446
135446
  }, ref: Me }));
135447
135447
  }, fr = N.forwardRef(rr);
@@ -135719,7 +135719,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
135719
135719
  return u && typeof Symbol == "function" && u.constructor === Symbol && u !== Symbol.prototype ? "symbol" : typeof u;
135720
135720
  }, Go(_);
135721
135721
  }
135722
- function Pi(_) {
135722
+ function Di(_) {
135723
135723
  var u = (function(A) {
135724
135724
  if (Go(A) != "object" || !A) return A;
135725
135725
  var m = A[Symbol.toPrimitive];
@@ -135733,7 +135733,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
135733
135733
  return Go(u) == "symbol" ? u : u + "";
135734
135734
  }
135735
135735
  function Yo(_, u, A) {
135736
- return (u = Pi(u)) in _ ? Object.defineProperty(_, u, { value: A, enumerable: !0, configurable: !0, writable: !0 }) : _[u] = A, _;
135736
+ return (u = Di(u)) in _ ? Object.defineProperty(_, u, { value: A, enumerable: !0, configurable: !0, writable: !0 }) : _[u] = A, _;
135737
135737
  }
135738
135738
  function As(_, u) {
135739
135739
  var A = Object.keys(_);
@@ -135806,9 +135806,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
135806
135806
  return y;
135807
135807
  }
135808
135808
  M1.propTypes = { children: T().any, collapse: T().bool, formName: T().string.isRequired, formVersion: T().string.isRequired, metadata: T().shape({ concept: T().object.isRequired, displayType: T().string, id: T().string.isRequired, label: T().shape({ type: T().string.isRequired, value: T().string.isRequired }).isRequired, properties: T().object, type: T().string.isRequired, controls: T().array }), onControlAdd: T().func, onControlRemove: T().func, onEventTrigger: T().func, onValueChanged: T().func.isRequired, patientUuid: T().string, showAddMore: T().bool.isRequired, showNotification: T().func.isRequired, showRemove: T().bool.isRequired, validate: T().bool.isRequired, validateForm: T().bool.isRequired, value: T().object.isRequired }, M1.defaultProps = { enabled: !0, hidden: !1, showAddMore: !1, showRemove: !1, children: Vn.of([]) }, b1(M1, { forwardRef: !0 }), la.A.registerComponent("obsGroupControl", M1);
135809
- var Oi = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
135809
+ var Li = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
135810
135810
  function wc(_) {
135811
- var u = _.defaultInputValue, A = u === void 0 ? "" : u, m = _.defaultMenuIsOpen, y = m !== void 0 && m, x = _.defaultValue, P = x === void 0 ? null : x, q = _.inputValue, j = _.menuIsOpen, G = _.onChange, te = _.onInputChange, pe = _.onMenuClose, Ce = _.onMenuOpen, Me = _.value, xe = u1(_, Oi), Oe = or((0, N.useState)(q !== void 0 ? q : A), 2), Je = Oe[0], et = Oe[1], tt = or((0, N.useState)(j !== void 0 ? j : y), 2), wt = tt[0], gt = tt[1], It = or((0, N.useState)(Me !== void 0 ? Me : P), 2), ct = It[0], nt = It[1], ea = (0, N.useCallback)(function(ba, Za) {
135811
+ var u = _.defaultInputValue, A = u === void 0 ? "" : u, m = _.defaultMenuIsOpen, y = m !== void 0 && m, x = _.defaultValue, P = x === void 0 ? null : x, q = _.inputValue, j = _.menuIsOpen, G = _.onChange, te = _.onInputChange, pe = _.onMenuClose, Ce = _.onMenuOpen, Me = _.value, xe = u1(_, Li), Oe = or((0, N.useState)(q !== void 0 ? q : A), 2), Je = Oe[0], et = Oe[1], tt = or((0, N.useState)(j !== void 0 ? j : y), 2), wt = tt[0], gt = tt[1], It = or((0, N.useState)(Me !== void 0 ? Me : P), 2), ct = It[0], nt = It[1], ea = (0, N.useCallback)(function(ba, Za) {
135812
135812
  typeof G == "function" && G(ba, Za), nt(ba);
135813
135813
  }, [G]), Kt = (0, N.useCallback)(function(ba, Za) {
135814
135814
  var ja;
@@ -135820,16 +135820,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
135820
135820
  }, [pe]), Yt = q !== void 0 ? q : Je, Ba = j !== void 0 ? j : wt, Na = Me !== void 0 ? Me : ct;
135821
135821
  return pa(pa({}, xe), {}, { inputValue: Yt, menuIsOpen: Ba, onChange: ea, onInputChange: Kt, onMenuClose: da, onMenuOpen: ra, value: Na });
135822
135822
  }
135823
- function Bi(_, u) {
135823
+ function Oi(_, u) {
135824
135824
  for (var A = 0; A < u.length; A++) {
135825
135825
  var m = u[A];
135826
- m.enumerable = m.enumerable || !1, m.configurable = !0, "value" in m && (m.writable = !0), Object.defineProperty(_, Pi(m.key), m);
135826
+ m.enumerable = m.enumerable || !1, m.configurable = !0, "value" in m && (m.writable = !0), Object.defineProperty(_, Di(m.key), m);
135827
135827
  }
135828
135828
  }
135829
- function ki(_, u) {
135830
- return ki = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(A, m) {
135829
+ function Bi(_, u) {
135830
+ return Bi = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(A, m) {
135831
135831
  return A.__proto__ = m, A;
135832
- }, ki(_, u);
135832
+ }, Bi(_, u);
135833
135833
  }
135834
135834
  function B0(_) {
135835
135835
  return B0 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(u) {
@@ -136479,7 +136479,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
136479
136479
  }
136480
136480
  pf = Aa || (Aa = {}), lp || (lp = pf.JSX || (pf.JSX = {}));
136481
136481
  var Bu = __webpack_require__(6003);
136482
- const ku = Math.min, Fu = Math.max, ws = Math.round, Cs = Math.floor, Af = (_) => ({ x: _, y: _ });
136482
+ const ku = Math.min, Fu = Math.max, ws = Math.round, Cs = Math.floor, _f = (_) => ({ x: _, y: _ });
136483
136483
  function ys() {
136484
136484
  return typeof window < "u";
136485
136485
  }
@@ -136500,7 +136500,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
136500
136500
  function zu(_) {
136501
136501
  return !!ys() && (_ instanceof Element || _ instanceof P2(_).Element);
136502
136502
  }
136503
- function mf(_) {
136503
+ function Af(_) {
136504
136504
  return !!ys() && (_ instanceof HTMLElement || _ instanceof P2(_).HTMLElement);
136505
136505
  }
136506
136506
  function hp(_) {
@@ -136521,7 +136521,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
136521
136521
  })(_);
136522
136522
  return (function(A) {
136523
136523
  return /^(html|body|#document)$/.test(pp(A));
136524
- })(u) ? (_.ownerDocument || _).body : mf(u) && _p(u) ? u : mp(u);
136524
+ })(u) ? (_.ownerDocument || _).body : Af(u) && _p(u) ? u : mp(u);
136525
136525
  }
136526
136526
  function Rs(_, u, A) {
136527
136527
  var m;
@@ -136536,16 +136536,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
136536
136536
  function Zu(_) {
136537
136537
  return _.parent && Object.getPrototypeOf(_.parent) ? _.frameElement : null;
136538
136538
  }
136539
- function Ef(_) {
136539
+ function mf(_) {
136540
136540
  return zu(_) ? _ : _.contextElement;
136541
136541
  }
136542
136542
  function ju(_) {
136543
- const u = Ef(_);
136544
- if (!mf(u)) return Af(1);
136543
+ const u = mf(_);
136544
+ if (!Af(u)) return _f(1);
136545
136545
  const A = u.getBoundingClientRect(), { width: m, height: y, $: x } = (function(j) {
136546
136546
  const G = Ap(j);
136547
136547
  let te = parseFloat(G.width) || 0, pe = parseFloat(G.height) || 0;
136548
- const Ce = mf(j), Me = Ce ? j.offsetWidth : te, xe = Ce ? j.offsetHeight : pe, Oe = ws(te) !== Me || ws(pe) !== xe;
136548
+ const Ce = Af(j), Me = Ce ? j.offsetWidth : te, xe = Ce ? j.offsetHeight : pe, Oe = ws(te) !== Me || ws(pe) !== xe;
136549
136549
  return Oe && (te = Me, pe = xe), { width: te, height: pe, $: Oe };
136550
136550
  })(u);
136551
136551
  let P = (x ? ws(A.width) : A.width) / m, q = (x ? ws(A.height) : A.height) / y;
@@ -136554,10 +136554,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
136554
136554
  function Ep(_, u, A, m) {
136555
136555
  u === void 0 && (u = !1);
136556
136556
  const y = _.getBoundingClientRect();
136557
- Ef(_);
136558
- let x = Af(1);
136557
+ mf(_);
136558
+ let x = _f(1);
136559
136559
  u && (x = ju(_));
136560
- const P = Af(0);
136560
+ const P = _f(0);
136561
136561
  let q = (y.left + P.x) / x.x, j = (y.top + P.y) / x.y, G = y.width / x.x, te = y.height / x.y;
136562
136562
  return (function(pe) {
136563
136563
  const { x: Ce, y: Me, width: xe, height: Oe } = pe;
@@ -136629,7 +136629,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
136629
136629
  function Gi(_, u, A) {
136630
136630
  return _ ? u : A;
136631
136631
  }
136632
- var Ju = ["children", "innerProps"], Qu = ["children", "innerProps"], bp, gf, wf, Vp = function(_) {
136632
+ var Ju = ["children", "innerProps"], Qu = ["children", "innerProps"], bp, Ef, gf, Vp = function(_) {
136633
136633
  return _ === "auto" ? "bottom" : _;
136634
136634
  }, Tp = (0, N.createContext)(null), Xu = function(_) {
136635
136635
  var u = _.children, A = _.minMenuHeight, m = _.maxMenuHeight, y = _.menuPlacement, x = _.menuPosition, P = _.menuShouldScrollIntoView, q = _.theme, j = ((0, N.useContext)(Tp) || {}).setPortalPlacement, G = (0, N.useRef)(null), te = or((0, N.useState)(m), 2), pe = te[0], Ce = te[1], Me = or((0, N.useState)(null), 2), xe = Me[0], Oe = Me[1], Je = q.spacing.controlHeight;
@@ -136679,7 +136679,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
136679
136679
  }, ed = Hp, td = Hp, ad = ["size"], nd = ["innerProps", "isRtl", "size"], rd = { name: "8mmkcg", styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0" }, Mp = function(_) {
136680
136680
  var u = _.size, A = u1(_, ad);
136681
136681
  return Aa("svg", Pt({ height: u, width: u, viewBox: "0 0 20 20", "aria-hidden": "true", focusable: "false", css: rd }, A));
136682
- }, vf = function(_) {
136682
+ }, wf = function(_) {
136683
136683
  return Aa(Mp, Pt({ size: 20 }, _), Aa("path", { d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z" }));
136684
136684
  }, xp = function(_) {
136685
136685
  return Aa(Mp, Pt({ size: 20 }, _), Aa("path", { d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z" }));
@@ -136691,10 +136691,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
136691
136691
  return { name: u, styles: "@keyframes " + u + "{" + _.styles + "}", anim: 1, toString: function() {
136692
136692
  return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
136693
136693
  } };
136694
- })(bp || (gf = [`
136694
+ })(bp || (Ef = [`
136695
136695
  0%, 80%, 100% { opacity: 0; }
136696
136696
  40% { opacity: 1; }
136697
- `], wf || (wf = gf.slice(0)), bp = Object.freeze(Object.defineProperties(gf, { raw: { value: Object.freeze(wf) } })))), Cf = function(_) {
136697
+ `], gf || (gf = Ef.slice(0)), bp = Object.freeze(Object.defineProperties(Ef, { raw: { value: Object.freeze(gf) } })))), vf = function(_) {
136698
136698
  var u = _.delay, A = _.offset;
136699
136699
  return Aa("span", { css: hf({ animation: "".concat(id, " 1s ease-in-out ").concat(u, "ms infinite;"), backgroundColor: "currentColor", borderRadius: "1em", display: "inline-block", marginLeft: A ? "1em" : void 0, height: "1em", verticalAlign: "top", width: "1em" }, "", "") });
136700
136700
  }, ld = ["data"], sd = ["innerRef", "isDisabled", "isHidden", "inputClassName"], Np = { gridArea: "1 / 2", font: "inherit", minWidth: "2px", border: 0, margin: 0, outline: 0, padding: 0 }, fd = { flex: "1 1 auto", display: "inline-grid", gridArea: "1 / 1 / 2 / 3", gridTemplateColumns: "0 min-content", "&:after": pa({ content: 'attr(data-value) " "', visibility: "hidden", whiteSpace: "pre" }, Np) }, pd = function(_) {
@@ -136704,14 +136704,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
136704
136704
  return Aa("div", A, u);
136705
136705
  }, ud = { ClearIndicator: function(_) {
136706
136706
  var u = _.children, A = _.innerProps;
136707
- return Aa("div", Pt({}, Qn(_, "clearIndicator", { indicator: !0, "clear-indicator": !0 }), A), u || Aa(vf, null));
136707
+ return Aa("div", Pt({}, Qn(_, "clearIndicator", { indicator: !0, "clear-indicator": !0 }), A), u || Aa(wf, null));
136708
136708
  }, Control: function(_) {
136709
136709
  var u = _.children, A = _.isDisabled, m = _.isFocused, y = _.innerRef, x = _.innerProps, P = _.menuIsOpen;
136710
136710
  return Aa("div", Pt({ ref: y }, Qn(_, "control", { control: !0, "control--is-disabled": A, "control--is-focused": m, "control--menu-is-open": P }), x, { "aria-disabled": A || void 0 }), u);
136711
136711
  }, DropdownIndicator: function(_) {
136712
136712
  var u = _.children, A = _.innerProps;
136713
136713
  return Aa("div", Pt({}, Qn(_, "dropdownIndicator", { indicator: !0, "dropdown-indicator": !0 }), A), u || Aa(xp, null));
136714
- }, DownChevron: xp, CrossIcon: vf, Group: function(_) {
136714
+ }, DownChevron: xp, CrossIcon: wf, Group: function(_) {
136715
136715
  var u = _.children, A = _.cx, m = _.getStyles, y = _.getClassNames, x = _.Heading, P = _.headingProps, q = _.innerProps, j = _.label, G = _.theme, te = _.selectProps;
136716
136716
  return Aa("div", Pt({}, Qn(_, "group", { group: !0 }), q), Aa(x, Pt({}, P, { selectProps: te, theme: G, getStyles: m, getClassNames: y, cx: A }), j), Aa("div", null, u));
136717
136717
  }, GroupHeading: function(_) {
@@ -136730,7 +136730,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
136730
136730
  return Aa("div", Pt({}, Qn(_, "input", { "input-container": !0 }), { "data-value": A || "" }), Aa("input", Pt({ className: u({ input: !0 }, q), ref: y, style: pd(P), disabled: x }, j)));
136731
136731
  }, LoadingIndicator: function(_) {
136732
136732
  var u = _.innerProps, A = _.isRtl, m = _.size, y = m === void 0 ? 4 : m, x = u1(_, nd);
136733
- return Aa("div", Pt({}, Qn(pa(pa({}, x), {}, { innerProps: u, isRtl: A, size: y }), "loadingIndicator", { indicator: !0, "loading-indicator": !0 }), u), Aa(Cf, { delay: 0, offset: A }), Aa(Cf, { delay: 160, offset: !0 }), Aa(Cf, { delay: 320, offset: !A }));
136733
+ return Aa("div", Pt({}, Qn(pa(pa({}, x), {}, { innerProps: u, isRtl: A, size: y }), "loadingIndicator", { indicator: !0, "loading-indicator": !0 }), u), Aa(vf, { delay: 0, offset: A }), Aa(vf, { delay: 160, offset: !0 }), Aa(vf, { delay: 320, offset: !A }));
136734
136734
  }, Menu: function(_) {
136735
136735
  var u = _.children, A = _.innerRef, m = _.innerProps;
136736
136736
  return Aa("div", Pt({}, Qn(_, "menu", { menu: !0 }), { ref: A }, m), u);
@@ -136755,7 +136755,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
136755
136755
  var et = (0, N.useCallback)(function() {
136756
136756
  typeof j.current == "function" && (j.current(), j.current = null), m && q.current && (j.current = (function(gt, It, ct, nt) {
136757
136757
  nt === void 0 && (nt = {});
136758
- const { ancestorScroll: ea = !0, ancestorResize: Kt = !0, elementResize: ra = typeof ResizeObserver == "function", layoutShift: da = typeof IntersectionObserver == "function", animationFrame: Yt = !1 } = nt, Ba = Ef(gt), Na = ea || Kt ? [...Ba ? Rs(Ba) : [], ...It ? Rs(It) : []] : [];
136758
+ const { ancestorScroll: ea = !0, ancestorResize: Kt = !0, elementResize: ra = typeof ResizeObserver == "function", layoutShift: da = typeof IntersectionObserver == "function", animationFrame: Yt = !1 } = nt, Ba = mf(gt), Na = ea || Kt ? [...Ba ? Rs(Ba) : [], ...It ? Rs(It) : []] : [];
136759
136759
  Na.forEach((sn) => {
136760
136760
  ea && sn.addEventListener("scroll", ct), Kt && sn.addEventListener("resize", ct);
136761
136761
  });
@@ -136835,7 +136835,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
136835
136835
  return Aa(j, { data: m, innerProps: pa(pa({}, Qn(_, "multiValue", { "multi-value": !0, "multi-value--is-disabled": x })), y), selectProps: q }, Aa(G, { data: m, innerProps: pa({}, Qn(_, "multiValueLabel", { "multi-value__label": !0 })), selectProps: q }, u), Aa(te, { data: m, innerProps: pa(pa({}, Qn(_, "multiValueRemove", { "multi-value__remove": !0 })), {}, { "aria-label": "Remove ".concat(u || "option") }, P), selectProps: q }));
136836
136836
  }, MultiValueContainer: Pp, MultiValueLabel: Pp, MultiValueRemove: function(_) {
136837
136837
  var u = _.children, A = _.innerProps;
136838
- return Aa("div", Pt({ role: "button" }, A), u || Aa(vf, { size: 14 }));
136838
+ return Aa("div", Pt({ role: "button" }, A), u || Aa(wf, { size: 14 }));
136839
136839
  }, Option: function(_) {
136840
136840
  var u = _.children, A = _.isDisabled, m = _.isFocused, y = _.isSelected, x = _.innerRef, P = _.innerProps;
136841
136841
  return Aa("div", Pt({}, Qn(_, "option", { option: !0, "option--is-disabled": A, "option--is-focused": m, "option--is-selected": y }), { ref: x, "aria-disabled": A }, P), u);
@@ -136938,9 +136938,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
136938
136938
  return Na;
136939
136939
  }, [It, A, m, Me, xe, Oe, Je, nt, P, wt, da]), Ba = Aa(N.Fragment, null, Aa("span", { id: "aria-selection" }, ea), Aa("span", { id: "aria-focused" }, Kt), Aa("span", { id: "aria-results" }, ra), Aa("span", { id: "aria-guidance" }, Yt));
136940
136940
  return Aa(N.Fragment, null, Aa(Sp, { id: j }, da && Ba), Aa(Sp, { "aria-live": ct, "aria-atomic": "false", "aria-relevant": "additions text", role: "log" }, x && !da && Ba));
136941
- }, yf = [{ base: "A", letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ" }, { base: "AA", letters: "Ꜳ" }, { base: "AE", letters: "ÆǼǢ" }, { base: "AO", letters: "Ꜵ" }, { base: "AU", letters: "Ꜷ" }, { base: "AV", letters: "ꜸꜺ" }, { base: "AY", letters: "Ꜽ" }, { base: "B", letters: "BⒷBḂḄḆɃƂƁ" }, { base: "C", letters: "CⒸCĆĈĊČÇḈƇȻꜾ" }, { base: "D", letters: "DⒹDḊĎḌḐḒḎĐƋƊƉꝹ" }, { base: "DZ", letters: "DZDŽ" }, { base: "Dz", letters: "DzDž" }, { base: "E", letters: "EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ" }, { base: "F", letters: "FⒻFḞƑꝻ" }, { base: "G", letters: "GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ" }, { base: "H", letters: "HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ" }, { base: "I", letters: "IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ" }, { base: "J", letters: "JⒿJĴɈ" }, { base: "K", letters: "KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ" }, { base: "L", letters: "LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ" }, { base: "LJ", letters: "LJ" }, { base: "Lj", letters: "Lj" }, { base: "M", letters: "MⓂMḾṀṂⱮƜ" }, { base: "N", letters: "NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ" }, { base: "NJ", letters: "NJ" }, { base: "Nj", letters: "Nj" }, { base: "O", letters: "OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ" }, { base: "OI", letters: "Ƣ" }, { base: "OO", letters: "Ꝏ" }, { base: "OU", letters: "Ȣ" }, { base: "P", letters: "PⓅPṔṖƤⱣꝐꝒꝔ" }, { base: "Q", letters: "QⓆQꝖꝘɊ" }, { base: "R", letters: "RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ" }, { base: "S", letters: "SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ" }, { base: "T", letters: "TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ" }, { base: "TZ", letters: "Ꜩ" }, { base: "U", letters: "UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ" }, { base: "V", letters: "VⓋVṼṾƲꝞɅ" }, { base: "VY", letters: "Ꝡ" }, { base: "W", letters: "WⓌWẀẂŴẆẄẈⱲ" }, { base: "X", letters: "XⓍXẊẌ" }, { base: "Y", letters: "YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ" }, { base: "Z", letters: "ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ" }, { base: "a", letters: "aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ" }, { base: "aa", letters: "ꜳ" }, { base: "ae", letters: "æǽǣ" }, { base: "ao", letters: "ꜵ" }, { base: "au", letters: "ꜷ" }, { base: "av", letters: "ꜹꜻ" }, { base: "ay", letters: "ꜽ" }, { base: "b", letters: "bⓑbḃḅḇƀƃɓ" }, { base: "c", letters: "cⓒcćĉċčçḉƈȼꜿↄ" }, { base: "d", letters: "dⓓdḋďḍḑḓḏđƌɖɗꝺ" }, { base: "dz", letters: "dzdž" }, { base: "e", letters: "eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ" }, { base: "f", letters: "fⓕfḟƒꝼ" }, { base: "g", letters: "gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ" }, { base: "h", letters: "hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ" }, { base: "hv", letters: "ƕ" }, { base: "i", letters: "iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı" }, { base: "j", letters: "jⓙjĵǰɉ" }, { base: "k", letters: "kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ" }, { base: "l", letters: "lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ" }, { base: "lj", letters: "lj" }, { base: "m", letters: "mⓜmḿṁṃɱɯ" }, { base: "n", letters: "nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ" }, { base: "nj", letters: "nj" }, { base: "o", letters: "oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ" }, { base: "oi", letters: "ƣ" }, { base: "ou", letters: "ȣ" }, { base: "oo", letters: "ꝏ" }, { base: "p", letters: "pⓟpṕṗƥᵽꝑꝓꝕ" }, { base: "q", letters: "qⓠqɋꝗꝙ" }, { base: "r", letters: "rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ" }, { base: "s", letters: "sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ" }, { base: "t", letters: "tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ" }, { base: "tz", letters: "ꜩ" }, { base: "u", letters: "uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ" }, { base: "v", letters: "vⓥvṽṿʋꝟʌ" }, { base: "vy", letters: "ꝡ" }, { base: "w", letters: "wⓦwẁẃŵẇẅẘẉⱳ" }, { base: "x", letters: "xⓧxẋẍ" }, { base: "y", letters: "yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ" }, { base: "z", letters: "zⓩzźẑżžẓẕƶȥɀⱬꝣ" }], Ed = new RegExp("[" + yf.map(function(_) {
136941
+ }, Cf = [{ base: "A", letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ" }, { base: "AA", letters: "Ꜳ" }, { base: "AE", letters: "ÆǼǢ" }, { base: "AO", letters: "Ꜵ" }, { base: "AU", letters: "Ꜷ" }, { base: "AV", letters: "ꜸꜺ" }, { base: "AY", letters: "Ꜽ" }, { base: "B", letters: "BⒷBḂḄḆɃƂƁ" }, { base: "C", letters: "CⒸCĆĈĊČÇḈƇȻꜾ" }, { base: "D", letters: "DⒹDḊĎḌḐḒḎĐƋƊƉꝹ" }, { base: "DZ", letters: "DZDŽ" }, { base: "Dz", letters: "DzDž" }, { base: "E", letters: "EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ" }, { base: "F", letters: "FⒻFḞƑꝻ" }, { base: "G", letters: "GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ" }, { base: "H", letters: "HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ" }, { base: "I", letters: "IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ" }, { base: "J", letters: "JⒿJĴɈ" }, { base: "K", letters: "KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ" }, { base: "L", letters: "LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ" }, { base: "LJ", letters: "LJ" }, { base: "Lj", letters: "Lj" }, { base: "M", letters: "MⓂMḾṀṂⱮƜ" }, { base: "N", letters: "NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ" }, { base: "NJ", letters: "NJ" }, { base: "Nj", letters: "Nj" }, { base: "O", letters: "OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ" }, { base: "OI", letters: "Ƣ" }, { base: "OO", letters: "Ꝏ" }, { base: "OU", letters: "Ȣ" }, { base: "P", letters: "PⓅPṔṖƤⱣꝐꝒꝔ" }, { base: "Q", letters: "QⓆQꝖꝘɊ" }, { base: "R", letters: "RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ" }, { base: "S", letters: "SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ" }, { base: "T", letters: "TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ" }, { base: "TZ", letters: "Ꜩ" }, { base: "U", letters: "UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ" }, { base: "V", letters: "VⓋVṼṾƲꝞɅ" }, { base: "VY", letters: "Ꝡ" }, { base: "W", letters: "WⓌWẀẂŴẆẄẈⱲ" }, { base: "X", letters: "XⓍXẊẌ" }, { base: "Y", letters: "YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ" }, { base: "Z", letters: "ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ" }, { base: "a", letters: "aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ" }, { base: "aa", letters: "ꜳ" }, { base: "ae", letters: "æǽǣ" }, { base: "ao", letters: "ꜵ" }, { base: "au", letters: "ꜷ" }, { base: "av", letters: "ꜹꜻ" }, { base: "ay", letters: "ꜽ" }, { base: "b", letters: "bⓑbḃḅḇƀƃɓ" }, { base: "c", letters: "cⓒcćĉċčçḉƈȼꜿↄ" }, { base: "d", letters: "dⓓdḋďḍḑḓḏđƌɖɗꝺ" }, { base: "dz", letters: "dzdž" }, { base: "e", letters: "eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ" }, { base: "f", letters: "fⓕfḟƒꝼ" }, { base: "g", letters: "gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ" }, { base: "h", letters: "hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ" }, { base: "hv", letters: "ƕ" }, { base: "i", letters: "iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı" }, { base: "j", letters: "jⓙjĵǰɉ" }, { base: "k", letters: "kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ" }, { base: "l", letters: "lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ" }, { base: "lj", letters: "lj" }, { base: "m", letters: "mⓜmḿṁṃɱɯ" }, { base: "n", letters: "nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ" }, { base: "nj", letters: "nj" }, { base: "o", letters: "oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ" }, { base: "oi", letters: "ƣ" }, { base: "ou", letters: "ȣ" }, { base: "oo", letters: "ꝏ" }, { base: "p", letters: "pⓟpṕṗƥᵽꝑꝓꝕ" }, { base: "q", letters: "qⓠqɋꝗꝙ" }, { base: "r", letters: "rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ" }, { base: "s", letters: "sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ" }, { base: "t", letters: "tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ" }, { base: "tz", letters: "ꜩ" }, { base: "u", letters: "uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ" }, { base: "v", letters: "vⓥvṽṿʋꝟʌ" }, { base: "vy", letters: "ꝡ" }, { base: "w", letters: "wⓦwẁẃŵẇẅẘẉⱳ" }, { base: "x", letters: "xⓧxẋẍ" }, { base: "y", letters: "yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ" }, { base: "z", letters: "zⓩzźẑżžẓẕƶȥɀⱬꝣ" }], Ed = new RegExp("[" + Cf.map(function(_) {
136942
136942
  return _.letters;
136943
- }).join("") + "]", "g"), Lp = {}, Rf = 0; Rf < yf.length; Rf++) for (var bf = yf[Rf], Vf = 0; Vf < bf.letters.length; Vf++) Lp[bf.letters[Vf]] = bf.base;
136943
+ }).join("") + "]", "g"), Lp = {}, yf = 0; yf < Cf.length; yf++) for (var Rf = Cf[yf], bf = 0; bf < Rf.letters.length; bf++) Lp[Rf.letters[bf]] = Rf.base;
136944
136944
  var Op = function(_) {
136945
136945
  return _.replace(Ed, function(u) {
136946
136946
  return Lp[u];
@@ -137073,18 +137073,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
137073
137073
  return Aa("input", { required: !0, name: u, tabIndex: -1, "aria-hidden": "true", onFocus: A, css: Vd, value: "", onChange: function() {
137074
137074
  } });
137075
137075
  };
137076
- function Tf(_) {
137076
+ function Vf(_) {
137077
137077
  var u;
137078
137078
  return typeof window < "u" && window.navigator != null && _.test(((u = window.navigator.userAgentData) === null || u === void 0 ? void 0 : u.platform) || window.navigator.platform);
137079
137079
  }
137080
137080
  function Wp() {
137081
- return Tf(/^Mac/i);
137081
+ return Vf(/^Mac/i);
137082
137082
  }
137083
137083
  var Kp = function(_) {
137084
137084
  return _.label;
137085
137085
  }, Gp = function(_) {
137086
137086
  return _.value;
137087
- }, xd = { clearIndicator: cd, container: function(_) {
137087
+ }, Md = { clearIndicator: cd, container: function(_) {
137088
137088
  var u = _.isDisabled;
137089
137089
  return { label: "container", direction: _.isRtl ? "rtl" : void 0, pointerEvents: u ? "none" : void 0, position: "relative" };
137090
137090
  }, control: function(_, u) {
@@ -137139,7 +137139,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
137139
137139
  }, valueContainer: function(_, u) {
137140
137140
  var A = _.theme.spacing, m = _.isMulti, y = _.hasValue, x = _.selectProps.controlShouldRenderValue;
137141
137141
  return pa({ alignItems: "center", display: m && y && x ? "flex" : "grid", flex: 1, flexWrap: "wrap", WebkitOverflowScrolling: "touch", position: "relative", overflow: "hidden" }, u ? {} : { padding: "".concat(A.baseUnit / 2, "px ").concat(2 * A.baseUnit, "px") });
137142
- } }, Hf = { borderRadius: 4, colors: { primary: "#2684FF", primary75: "#4C9AFF", primary50: "#B2D4FF", primary25: "#DEEBFF", danger: "#DE350B", dangerLight: "#FFBDAD", neutral0: "hsl(0, 0%, 100%)", neutral5: "hsl(0, 0%, 95%)", neutral10: "hsl(0, 0%, 90%)", neutral20: "hsl(0, 0%, 80%)", neutral30: "hsl(0, 0%, 70%)", neutral40: "hsl(0, 0%, 60%)", neutral50: "hsl(0, 0%, 50%)", neutral60: "hsl(0, 0%, 40%)", neutral70: "hsl(0, 0%, 30%)", neutral80: "hsl(0, 0%, 20%)", neutral90: "hsl(0, 0%, 10%)" }, spacing: { baseUnit: 4, controlHeight: 38, menuGutter: 8 } }, $d = { "aria-live": "polite", backspaceRemovesValue: !0, blurInputOnSelect: yp(), captureMenuScroll: !yp(), classNames: {}, closeMenuOnSelect: !0, closeMenuOnScroll: !1, components: {}, controlShouldRenderValue: !0, escapeClearsValue: !1, filterOption: function(_, u) {
137142
+ } }, Hf = { borderRadius: 4, colors: { primary: "#2684FF", primary75: "#4C9AFF", primary50: "#B2D4FF", primary25: "#DEEBFF", danger: "#DE350B", dangerLight: "#FFBDAD", neutral0: "hsl(0, 0%, 100%)", neutral5: "hsl(0, 0%, 95%)", neutral10: "hsl(0, 0%, 90%)", neutral20: "hsl(0, 0%, 80%)", neutral30: "hsl(0, 0%, 70%)", neutral40: "hsl(0, 0%, 60%)", neutral50: "hsl(0, 0%, 50%)", neutral60: "hsl(0, 0%, 40%)", neutral70: "hsl(0, 0%, 30%)", neutral80: "hsl(0, 0%, 20%)", neutral90: "hsl(0, 0%, 10%)" }, spacing: { baseUnit: 4, controlHeight: 38, menuGutter: 8 } }, xd = { "aria-live": "polite", backspaceRemovesValue: !0, blurInputOnSelect: yp(), captureMenuScroll: !yp(), classNames: {}, closeMenuOnSelect: !0, closeMenuOnScroll: !1, components: {}, controlShouldRenderValue: !0, escapeClearsValue: !1, filterOption: function(_, u) {
137143
137143
  if (_.data.__isNew__) return !0;
137144
137144
  var A = pa({ ignoreCase: !0, ignoreAccents: !0, stringify: wd, trim: !0, matchFrom: "any" }, void 0), m = A.ignoreCase, y = A.ignoreAccents, x = A.stringify, P = A.trim, q = A.matchFrom, j = P ? Bp(u) : u, G = P ? Bp(x(_)) : x(_);
137145
137145
  return m && (j = j.toLowerCase(), G = G.toLowerCase()), y && (j = gd(j), G = Op(G)), q === "start" ? G.substr(0, j.length) === j : G.indexOf(j) > -1;
@@ -137223,10 +137223,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
137223
137223
  var ru = function(_) {
137224
137224
  var u = _.hideSelectedOptions, A = _.isMulti;
137225
137225
  return u === void 0 ? A : u;
137226
- }, Id = 1, Ns = (function(_) {
137226
+ }, $d = 1, Ns = (function(_) {
137227
137227
  (function(m, y) {
137228
137228
  if (typeof y != "function" && y !== null) throw new TypeError("Super expression must either be null or a function");
137229
- m.prototype = Object.create(y && y.prototype, { constructor: { value: m, writable: !0, configurable: !0 } }), Object.defineProperty(m, "prototype", { writable: !1 }), y && ki(m, y);
137229
+ m.prototype = Object.create(y && y.prototype, { constructor: { value: m, writable: !0, configurable: !0 } }), Object.defineProperty(m, "prototype", { writable: !1 }), y && Bi(m, y);
137230
137230
  })(A, _);
137231
137231
  var u = (function(m) {
137232
137232
  var y = Es();
@@ -137301,7 +137301,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
137301
137301
  }, y.getOptionValue = function(j) {
137302
137302
  return Is(y.props, j);
137303
137303
  }, y.getStyles = function(j, G) {
137304
- var te = y.props.unstyled, pe = xd[j](G, te);
137304
+ var te = y.props.unstyled, pe = Md[j](G, te);
137305
137305
  pe.boxSizing = "border-box";
137306
137306
  var Ce = y.props.styles[j];
137307
137307
  return Ce ? Ce(pe, G) : pe;
@@ -137453,16 +137453,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
137453
137453
  }
137454
137454
  j.preventDefault();
137455
137455
  }
137456
- }, y.state.instancePrefix = "react-select-" + (y.props.instanceId || ++Id), y.state.selectValue = Vs(m.value), m.menuIsOpen && y.state.selectValue.length) {
137456
+ }, y.state.instancePrefix = "react-select-" + (y.props.instanceId || ++$d), y.state.selectValue = Vs(m.value), m.menuIsOpen && y.state.selectValue.length) {
137457
137457
  var x = y.getFocusableOptionsWithIds(), P = y.buildFocusableOptions(), q = P.indexOf(y.state.selectValue[0]);
137458
137458
  y.state.focusableOptionsWithIds = x, y.state.focusedOption = P[q], y.state.focusedOptionId = Mf(x, P[q]);
137459
137459
  }
137460
137460
  return y;
137461
137461
  }
137462
137462
  return (function(m, y, x) {
137463
- y && Bi(m.prototype, y), x && Bi(m, x), Object.defineProperty(m, "prototype", { writable: !1 });
137463
+ y && Oi(m.prototype, y), x && Oi(m, x), Object.defineProperty(m, "prototype", { writable: !1 });
137464
137464
  })(A, [{ key: "componentDidMount", value: function() {
137465
- this.startListeningComposition(), this.startListeningToTouch(), this.props.closeMenuOnScroll && document && document.addEventListener && document.addEventListener("scroll", this.onScroll, !0), this.props.autoFocus && this.focusInput(), this.props.menuIsOpen && this.state.focusedOption && this.menuListRef && this.focusedOptionRef && Cp(this.menuListRef, this.focusedOptionRef), (Wp() || Tf(/^iPhone/i) || Tf(/^iPad/i) || Wp() && navigator.maxTouchPoints > 1) && this.setState({ isAppleDevice: !0 });
137465
+ this.startListeningComposition(), this.startListeningToTouch(), this.props.closeMenuOnScroll && document && document.addEventListener && document.addEventListener("scroll", this.onScroll, !0), this.props.autoFocus && this.focusInput(), this.props.menuIsOpen && this.state.focusedOption && this.menuListRef && this.focusedOptionRef && Cp(this.menuListRef, this.focusedOptionRef), (Wp() || Vf(/^iPhone/i) || Vf(/^iPad/i) || Wp() && navigator.maxTouchPoints > 1) && this.setState({ isAppleDevice: !0 });
137466
137466
  } }, { key: "componentDidUpdate", value: function(m) {
137467
137467
  var y = this.props, x = y.isDisabled, P = y.menuIsOpen, q = this.state.isFocused;
137468
137468
  (q && !x && m.isDisabled || q && P && !m.menuIsOpen) && this.focusInput(), q && x && !m.isDisabled ? this.setState({ isFocused: !1 }, this.onMenuClose) : q || x || !m.isDisabled || this.inputRef !== document.activeElement || this.setState({ isFocused: !0 }), this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate && (Cp(this.menuListRef, this.focusedOptionRef), this.scrollToFocusedOptionOnUpdate = !1);
@@ -137667,15 +137667,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
137667
137667
  return G && !Kt && (ea = { value: Gi(Je, et, et[0] || null), options: et, action: "initial-input-focus" }, Kt = !te), j?.action === "initial-input-focus" && (ea = null), pa(pa(pa({}, tt), nt), {}, { prevProps: m, ariaSelection: ea, prevWasFocused: Kt });
137668
137668
  } }]), A;
137669
137669
  })(N.Component);
137670
- Ns.defaultProps = $d;
137671
- var Nd = (0, N.forwardRef)(function(_, u) {
137670
+ Ns.defaultProps = xd;
137671
+ var Id = (0, N.forwardRef)(function(_, u) {
137672
137672
  var A = wc(_);
137673
137673
  return N.createElement(Ns, Pt({ ref: u }, A));
137674
- }), Pd = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading", "onInputChange", "filterOption"], Dd = (0, N.forwardRef)(function(_, u) {
137674
+ }), Nd = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading", "onInputChange", "filterOption"], Pd = (0, N.forwardRef)(function(_, u) {
137675
137675
  var A = (function(y) {
137676
137676
  var x = y.defaultOptions, P = x !== void 0 && x, q = y.cacheOptions, j = q !== void 0 && q, G = y.loadOptions;
137677
137677
  y.options;
137678
- var te = y.isLoading, pe = te !== void 0 && te, Ce = y.onInputChange, Me = y.filterOption, xe = Me === void 0 ? null : Me, Oe = u1(y, Pd), Je = Oe.inputValue, et = (0, N.useRef)(void 0), tt = (0, N.useRef)(!1), wt = or((0, N.useState)(Array.isArray(P) ? P : void 0), 2), gt = wt[0], It = wt[1], ct = or((0, N.useState)(Je !== void 0 ? Je : ""), 2), nt = ct[0], ea = ct[1], Kt = or((0, N.useState)(P === !0), 2), ra = Kt[0], da = Kt[1], Yt = or((0, N.useState)(void 0), 2), Ba = Yt[0], Na = Yt[1], ba = or((0, N.useState)([]), 2), Za = ba[0], ja = ba[1], za = or((0, N.useState)(!1), 2), Ln = za[0], sn = za[1], Ta = or((0, N.useState)({}), 2), wn = Ta[0], Pn = Ta[1], hn = or((0, N.useState)(void 0), 2), _n = hn[0], Xn = hn[1], vn = or((0, N.useState)(void 0), 2), Wr = vn[0], Mr = vn[1];
137678
+ var te = y.isLoading, pe = te !== void 0 && te, Ce = y.onInputChange, Me = y.filterOption, xe = Me === void 0 ? null : Me, Oe = u1(y, Nd), Je = Oe.inputValue, et = (0, N.useRef)(void 0), tt = (0, N.useRef)(!1), wt = or((0, N.useState)(Array.isArray(P) ? P : void 0), 2), gt = wt[0], It = wt[1], ct = or((0, N.useState)(Je !== void 0 ? Je : ""), 2), nt = ct[0], ea = ct[1], Kt = or((0, N.useState)(P === !0), 2), ra = Kt[0], da = Kt[1], Yt = or((0, N.useState)(void 0), 2), Ba = Yt[0], Na = Yt[1], ba = or((0, N.useState)([]), 2), Za = ba[0], ja = ba[1], za = or((0, N.useState)(!1), 2), Ln = za[0], sn = za[1], Ta = or((0, N.useState)({}), 2), wn = Ta[0], Pn = Ta[1], hn = or((0, N.useState)(void 0), 2), _n = hn[0], Xn = hn[1], vn = or((0, N.useState)(void 0), 2), Wr = vn[0], Mr = vn[1];
137679
137679
  j !== Wr && (Pn({}), Mr(j)), P !== _n && (It(Array.isArray(P) ? P : void 0), Xn(P)), (0, N.useEffect)(function() {
137680
137680
  return tt.current = !0, function() {
137681
137681
  tt.current = !1;
@@ -137713,7 +137713,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
137713
137713
  return pa(pa({}, Oe), {}, { options: er, isLoading: ra || pe, onInputChange: ka, filterOption: xe });
137714
137714
  })(_), m = wc(A);
137715
137715
  return N.createElement(Ns, Pt({ ref: u }, m));
137716
- }), Sd = Dd;
137716
+ }), Dd = Pd;
137717
137717
  class go extends N.Component {
137718
137718
  constructor(u) {
137719
137719
  super(u), this.optionsUrl = u.optionsUrl, this.terminologyServiceConfig = u.terminologyServiceConfig, this.childRef = void 0, this.getValue = this.getValue.bind(this), this.getOptions = this.getOptions.bind(this), this.handleChange = this.handleChange.bind(this), this.onInputChange = this.onInputChange.bind(this), this.handleFocus = this.handleFocus.bind(this), this.storeChildRef = this.storeChildRef.bind(this), this.debouncedOnInputChange = zn.J.debounce(this.onInputChange, 300);
@@ -137782,22 +137782,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
137782
137782
  }
137783
137783
  render() {
137784
137784
  const { autofocus: u, autoload: A, cache: m, enabled: y, filterOptions: x, labelKey: P, valueKey: q, asynchronous: j, multiSelect: G, minimumInput: te, searchable: pe, conceptUuid: Ce } = this.props, Me = { autofocus: u, backspaceRemovesValue: !0, isClearable: !0, isDisabled: !y, filterOption: x, getOptionLabel: (Oe) => Oe[P], getOptionValue: (Oe) => Oe[q], minimumInput: te, isMulti: G, onChange: this.handleChange, value: this.state.value, isSearchable: pe, matchProp: "label" }, xe = _a()("obs-control-select-wrapper", { "form-builder-error": this.state.hasErrors });
137785
- return j ? (0, Ee.jsx)("div", { className: xe, children: (0, Ee.jsx)(Sd, { id: Ce, ...Me, classNamePrefix: "needsclick", defaultOptions: A, cacheOptions: m, loadOptions: this.getOptions, onFocus: this.handleFocus, ref: this.storeChildRef }) }) : (0, Ee.jsx)("div", { className: xe, children: (0, Ee.jsx)(Nd, { id: Ce, ...Me, classNamePrefix: "needsclick", filterOption: null, noOptionsMessage: () => this.state.noResultsText, onInputChange: (Oe, Je) => {
137785
+ return j ? (0, Ee.jsx)("div", { className: xe, children: (0, Ee.jsx)(Dd, { id: Ce, ...Me, classNamePrefix: "needsclick", defaultOptions: A, cacheOptions: m, loadOptions: this.getOptions, onFocus: this.handleFocus, ref: this.storeChildRef }) }) : (0, Ee.jsx)("div", { className: xe, children: (0, Ee.jsx)(Id, { id: Ce, ...Me, classNamePrefix: "needsclick", filterOption: null, noOptionsMessage: () => this.state.noResultsText, onInputChange: (Oe, Je) => {
137786
137786
  this.debouncedOnInputChange(Oe, Je);
137787
137787
  }, options: this.state.options, ref: this.storeChildRef }) });
137788
137788
  }
137789
137789
  }
137790
137790
  go.propTypes = { asynchronous: T().bool, autofocus: T().bool, autoload: T().bool, cache: T().bool, conceptUuid: T().string, enabled: T().bool, filterOptions: T().func, formFieldPath: T().string, hidden: T().bool, labelKey: T().string, minimumInput: T().number, multiSelect: T().bool, onValueChange: T().func, options: T().array, optionsUrl: T().string, searchable: T().bool, terminologyServiceConfig: T().object, url: T().string, validate: T().bool, validateForm: T().bool, validations: T().array, value: T().any, valueKey: T().string }, go.defaultProps = { asynchronous: !0, autofocus: !1, autoload: !1, cache: !1, enabled: !0, formFieldPath: "-0", labelKey: "display", minimumInput: 3, multiSelect: !1, optionsUrl: "/openmrs/ws/rest/v1/concept?v=full&q=", url: "", valueKey: "uuid", searchable: !0 };
137791
- const Ld = { control: go, designProperties: { isTopLevelComponent: !1 }, metadata: { attributes: [{ name: "properties", dataType: "complex", attributes: [] }] } };
137792
- la.A.registerDesignerComponent("autoComplete", Ld), la.A.registerComponent("autoComplete", go);
137791
+ const Sd = { control: go, designProperties: { isTopLevelComponent: !1 }, metadata: { attributes: [{ name: "properties", dataType: "complex", attributes: [] }] } };
137792
+ la.A.registerDesignerComponent("autoComplete", Sd), la.A.registerComponent("autoComplete", go);
137793
137793
  class Ji extends N.PureComponent {
137794
137794
  render() {
137795
137795
  return (0, Ee.jsx)(go, { ...this.props, asynchronous: !1, minimumInput: 0, searchable: this.props.searchable });
137796
137796
  }
137797
137797
  }
137798
137798
  Ji.propTypes = { autofocus: T().bool, conceptUuid: T().string, enabled: T().bool, labelKey: T().string, onValueChange: T().func, options: T().array, searchable: T().bool, validations: T().array, value: T().any, valueKey: T().string }, Ji.defaultProps = { autofocus: !1, enabled: !0, labelKey: "display", valueKey: "uuid", searchable: !1 };
137799
- const Od = { control: Ji, designProperties: { isTopLevelComponent: !1 }, metadata: { attributes: [{ name: "properties", dataType: "complex", attributes: [] }] } };
137800
- la.A.registerDesignerComponent("dropDown", Od), la.A.registerComponent("dropDown", Ji);
137799
+ const Ld = { control: Ji, designProperties: { isTopLevelComponent: !1 }, metadata: { attributes: [{ name: "properties", dataType: "complex", attributes: [] }] } };
137800
+ la.A.registerDesignerComponent("dropDown", Ld), la.A.registerComponent("dropDown", Ji);
137801
137801
  class Ds extends N.Component {
137802
137802
  constructor(u) {
137803
137803
  super(u), this.onValueChange = this.onValueChange.bind(this);
@@ -138371,7 +138371,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
138371
138371
  }
138372
138372
  }
138373
138373
  ks.propTypes = { addMore: T().bool, conceptUuid: T().string, enabled: T().bool, formFieldPath: T().string, onChange: T().func.isRequired, properties: T().object.isRequired, showNotification: T().func.isRequired, validate: T().bool.isRequired, validations: T().array.isRequired, value: T().string }, ks.defaultProps = { autofocus: !1, enabled: !0, labelKey: "name", valueKey: "id", searchable: !1 }, la.A.registerComponent("ProviderObsHandler", ks);
138374
- var Bd = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "onCreateOption", "options", "onChange"], ou = function() {
138374
+ var Od = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "onCreateOption", "options", "onChange"], ou = function() {
138375
138375
  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();
138376
138376
  return m === A || y === A;
138377
138377
  }, Pf = { formatCreateLabel: function(_) {
@@ -138384,9 +138384,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
138384
138384
  }));
138385
138385
  }, getNewOptionData: function(_, u) {
138386
138386
  return { label: u, value: _, __isNew__: !0 };
138387
- } }, Fd = (0, N.forwardRef)(function(_, u) {
138387
+ } }, Bd = (0, N.forwardRef)(function(_, u) {
138388
138388
  var A = (function(m) {
138389
- var y = m.allowCreateWhileLoading, x = y !== void 0 && y, P = m.createOptionPosition, q = P === void 0 ? "last" : P, j = m.formatCreateLabel, G = j === void 0 ? Pf.formatCreateLabel : j, te = m.isValidNewOption, pe = te === void 0 ? Pf.isValidNewOption : te, Ce = m.getNewOptionData, Me = Ce === void 0 ? Pf.getNewOptionData : Ce, xe = m.onCreateOption, Oe = m.options, Je = Oe === void 0 ? [] : Oe, et = m.onChange, tt = u1(m, Bd), wt = tt.getOptionValue, gt = wt === void 0 ? Gp : wt, It = tt.getOptionLabel, ct = It === void 0 ? Kp : It, nt = tt.inputValue, ea = tt.isLoading, Kt = tt.isMulti, ra = tt.value, da = tt.name, Yt = (0, N.useMemo)(function() {
138389
+ var y = m.allowCreateWhileLoading, x = y !== void 0 && y, P = m.createOptionPosition, q = P === void 0 ? "last" : P, j = m.formatCreateLabel, G = j === void 0 ? Pf.formatCreateLabel : j, te = m.isValidNewOption, pe = te === void 0 ? Pf.isValidNewOption : te, Ce = m.getNewOptionData, Me = Ce === void 0 ? Pf.getNewOptionData : Ce, xe = m.onCreateOption, Oe = m.options, Je = Oe === void 0 ? [] : Oe, et = m.onChange, tt = u1(m, Od), wt = tt.getOptionValue, gt = wt === void 0 ? Gp : wt, It = tt.getOptionLabel, ct = It === void 0 ? Kp : It, nt = tt.inputValue, ea = tt.isLoading, Kt = tt.isMulti, ra = tt.value, da = tt.name, Yt = (0, N.useMemo)(function() {
138390
138390
  return pe(nt, Vs(ra), Je, { getOptionValue: gt, getOptionLabel: ct }) ? Me(nt, G(nt)) : void 0;
138391
138391
  }, [G, Me, ct, gt, nt, pe, Je, ra]), Ba = (0, N.useMemo)(function() {
138392
138392
  return !x && ea || !Yt ? Je : q === "first" ? [Yt].concat(k0(Je)) : [].concat(k0(Je), [Yt]);
@@ -138403,7 +138403,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
138403
138403
  return pa(pa({}, tt), {}, { options: Ba, onChange: Na });
138404
138404
  })(wc(_));
138405
138405
  return N.createElement(Ns, Pt({ ref: u }, A));
138406
- }), zd = Fd;
138406
+ }), kd = Bd;
138407
138407
  class Fs extends N.Component {
138408
138408
  constructor(u) {
138409
138409
  super(u);
@@ -138420,7 +138420,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
138420
138420
  }
138421
138421
  render() {
138422
138422
  const { options: u, value: A } = this.state, { multi: m, clearable: y, backspaceRemoves: x, deleteRemoves: P } = this.props;
138423
- return (0, Ee.jsx)(zd, { backspaceRemovesValue: x, isClearable: y, id: this.props.conceptUuid, isMulti: m, onChange: this.handleOnChange, options: u, value: A, classNamePrefix: "needsclick" });
138423
+ return (0, Ee.jsx)(kd, { backspaceRemovesValue: x, isClearable: y, id: this.props.conceptUuid, isMulti: m, onChange: this.handleOnChange, options: u, value: A, classNamePrefix: "needsclick" });
138424
138424
  }
138425
138425
  }
138426
138426
  Fs.propTypes = { backspaceRemoves: T().bool.isRequired, clearable: T().bool.isRequired, conceptUuid: T().string, deleteRemoves: T().bool.isRequired, locale: T().string, multi: T().bool.isRequired, onChange: T().func.isRequired, options: T().array.isRequired, translationKey: T().string, type: T().string, value: T().string }, Fs.defaultProps = { multi: !1, clearable: !1, backspaceRemoves: !1, deleteRemoves: !1 }, la.A.registerComponent("freeTextAutoComplete", Fs);
@@ -138478,9 +138478,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
138478
138478
  }
138479
138479
  }
138480
138480
  wo.injectConceptToMetadata = (_) => _, wo.propTypes = { clearSelectedControl: T().func, deleteControl: T().func, dispatch: T().func, metadata: T().shape({ id: T().string, translationKey: T().string, type: T().string.isRequired, units: T().string, value: T().string.isRequired, properties: T().shape({ location: T().shape({ row: T().number, column: T().number }) }) }), showDeleteButton: T().bool.isRequired, visible: T().bool.isRequired }, wo.defaultProps = { visible: !0 };
138481
- const Zd = { control: wo, designProperties: { isTopLevelComponent: !0, displayName: "Label" }, metadata: { attributes: [{ name: "type", dataType: "text", defaultValue: "label" }, { name: "value", dataType: "text", defaultValue: "Label" }, { name: "properties", dataType: "complex", attributes: [] }] } };
138482
- la.A.registerDesignerComponent("label", Zd);
138483
- class jd extends N.PureComponent {
138481
+ const zd = { control: wo, designProperties: { isTopLevelComponent: !0, displayName: "Label" }, metadata: { attributes: [{ name: "type", dataType: "text", defaultValue: "label" }, { name: "value", dataType: "text", defaultValue: "Label" }, { name: "properties", dataType: "complex", attributes: [] }] } };
138482
+ la.A.registerDesignerComponent("label", zd);
138483
+ class Zd extends N.PureComponent {
138484
138484
  constructor() {
138485
138485
  super(), this.state = { showCommentSection: !1 };
138486
138486
  }
@@ -138567,7 +138567,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
138567
138567
  }
138568
138568
  showComment() {
138569
138569
  const { properties: u } = this.props.metadata;
138570
- return Ua()(u, (A, m) => m === "notes" && A) ? (0, Ee.jsx)("div", { className: _a()("obs-comment-wrap"), children: (0, Ee.jsx)("div", { className: _a()("obs-comment-content"), children: (0, Ee.jsx)(jd, {}) }) }) : null;
138570
+ return Ua()(u, (A, m) => m === "notes" && A) ? (0, Ee.jsx)("div", { className: _a()("obs-comment-wrap"), children: (0, Ee.jsx)("div", { className: _a()("obs-comment-content"), children: (0, Ee.jsx)(Zd, {}) }) }) : null;
138571
138571
  }
138572
138572
  showAddMore() {
138573
138573
  const { properties: u } = this.props.metadata;
@@ -139560,7 +139560,7 @@ function createConditionsBundleEntries({
139560
139560
  for (const h of p) {
139561
139561
  if (!h || typeof h.durationValue != "number" || !h.durationUnit || h.durationValue === null || h.durationUnit === null)
139562
139562
  throw new Error(CONSULTATION_ERROR_MESSAGES.INVALID_CONDITION_PARAMS);
139563
- const E = G_(
139563
+ const E = Q_(
139564
139564
  f,
139565
139565
  h.durationValue,
139566
139566
  h.durationUnit
@@ -139669,13 +139669,13 @@ const useAllergenSearch = (p = "") => {
139669
139669
  allergyReactionUuid: z
139670
139670
  } = V.consultationPad.allergyConceptMap;
139671
139671
  try {
139672
- const F = await sb(
139672
+ const F = await cb(
139673
139673
  D,
139674
139674
  Z,
139675
139675
  O
139676
139676
  );
139677
139677
  a(F);
139678
- const U = await ob(z);
139678
+ const U = await ub(z);
139679
139679
  f(U);
139680
139680
  } catch (F) {
139681
139681
  const U = Yr(F);
@@ -139847,9 +139847,9 @@ const allergiesFormTile = "AllergiesForm-module_allergiesFormTile__1UsbU", aller
139847
139847
  duplicateNotification: duplicateNotification$2
139848
139848
  }, allergiesQueryKeys = (p) => ["allergies", p], AllergiesForm = React__default.memo(({ encounterSessionStartContext: p }) => {
139849
139849
  const c = !!p?.preloadedAllergies, { t: a } = useTranslation(), s = v0(), { addNotification: f } = z1(), d = e8(
139850
- pr1.ALLERGIES
139850
+ gr1.ALLERGIES
139851
139851
  ), h = e8(
139852
- pr1.EDIT_ALLERGIES
139852
+ gr1.EDIT_ALLERGIES
139853
139853
  ), [E, g] = useState(""), [R, V] = useState(null), [H, M] = useState(!1), [$, k] = useState(
139854
139854
  null
139855
139855
  ), {
@@ -139871,7 +139871,7 @@ const allergiesFormTile = "AllergiesForm-module_allergiesFormTile__1UsbU", aller
139871
139871
  } = useQuery({
139872
139872
  queryKey: allergiesQueryKeys(s),
139873
139873
  enabled: !!s && d,
139874
- queryFn: () => ab(s)
139874
+ queryFn: () => lb(s)
139875
139875
  });
139876
139876
  useEffect(() => {
139877
139877
  se && f({
@@ -140062,7 +140062,7 @@ const useInvestigationsSearch = (p = "") => {
140062
140062
  (async () => {
140063
140063
  try {
140064
140064
  d(!0), E(null);
140065
- const H = await xb();
140065
+ const H = await qb();
140066
140066
  s(H);
140067
140067
  } catch (H) {
140068
140068
  const M = Yr(H);
@@ -140172,8 +140172,8 @@ const investigationsFormTile = "InvestigationsForm-module_investigationsFormTile
140172
140172
  duplicateNotification: duplicateNotification$1
140173
140173
  }, InvestigationsForm = React__default.memo(() => {
140174
140174
  const { t: p } = useTranslation(), c = v0(), { addNotification: a } = z1(), s = e8(
140175
- pr1.INVESTIGATIONS
140176
- ), [f, d] = useState(""), [h, E] = useState(null), [g, R] = useState(!1), { activeEncounter: V, matchReasons: H } = rv(), $ = H.includes("MATCHED") ? V?.id : void 0, {
140175
+ gr1.INVESTIGATIONS
140176
+ ), [f, d] = useState(""), [h, E] = useState(null), [g, R] = useState(!1), { activeEncounter: V, matchReasons: H } = av(), $ = H.includes("MATCHED") ? V?.id : void 0, {
140177
140177
  data: k,
140178
140178
  refetch: I,
140179
140179
  error: D
@@ -140183,7 +140183,7 @@ const investigationsFormTile = "InvestigationsForm-module_investigationsFormTile
140183
140183
  staleTime: 3e4,
140184
140184
  queryFn: async () => {
140185
140185
  const re = await Ps();
140186
- return Ub(
140186
+ return Vb(
140187
140187
  re.results,
140188
140188
  c,
140189
140189
  [$]
@@ -140196,7 +140196,7 @@ const investigationsFormTile = "InvestigationsForm-module_investigationsFormTile
140196
140196
  message: D.message,
140197
140197
  type: "error"
140198
140198
  });
140199
- }, [D, a, p]), Ov(
140199
+ }, [D, a, p]), Nv(
140200
140200
  (re) => {
140201
140201
  re.patientUUID === c && Object.keys(re.updatedResources.serviceRequests ?? {}).length > 0 && I();
140202
140202
  },
@@ -140389,7 +140389,7 @@ const useConceptSearch = (p, c = 20, a = 500) => {
140389
140389
  (async () => {
140390
140390
  h(!0), g(null);
140391
140391
  try {
140392
- const H = await rb(R, c);
140392
+ const H = await ab(R, c);
140393
140393
  f(H);
140394
140394
  } catch (H) {
140395
140395
  g(
@@ -140585,7 +140585,7 @@ const conditionsAndDiagnosesTile = "ConditionsAndDiagnoses-module_conditionsAndD
140585
140585
  duplicateNotification
140586
140586
  }, ConditionsAndDiagnoses = React__default.memo(() => {
140587
140587
  const { t: p } = useTranslation(), c = v0(), { addNotification: a } = z1(), s = e8(
140588
- pr1.CONDITIONS_AND_DIAGNOSES
140588
+ gr1.CONDITIONS_AND_DIAGNOSES
140589
140589
  ), [f, d] = useState(""), [h, E] = useState(null), [g, R] = useState(!1), {
140590
140590
  selectedDiagnoses: V,
140591
140591
  selectedConditions: H,
@@ -140607,7 +140607,7 @@ const conditionsAndDiagnosesTile = "ConditionsAndDiagnoses-module_conditionsAndD
140607
140607
  } = useQuery({
140608
140608
  queryKey: ["conditions", c],
140609
140609
  enabled: !!c && s,
140610
- queryFn: () => pb(c)
140610
+ queryFn: () => yb(c)
140611
140611
  }), {
140612
140612
  data: X,
140613
140613
  isLoading: T,
@@ -140616,9 +140616,9 @@ const conditionsAndDiagnosesTile = "ConditionsAndDiagnoses-module_conditionsAndD
140616
140616
  } = useQuery({
140617
140617
  queryKey: ["diagnoses", c],
140618
140618
  enabled: !!c && s,
140619
- queryFn: () => gb(c)
140619
+ queryFn: () => _b(c)
140620
140620
  });
140621
- Ov(
140621
+ Nv(
140622
140622
  (ce) => {
140623
140623
  ce.patientUUID === c && ce.updatedResources.conditions && (ee(), K());
140624
140624
  },
@@ -140852,7 +140852,7 @@ const useMedicationSearch = (p, c = 20, a = 500) => {
140852
140852
  (async () => {
140853
140853
  h(!0), g(null);
140854
140854
  try {
140855
- const H = await bb(R, c);
140855
+ const H = await Sb(R, c);
140856
140856
  f(getMedicationsFromBundle(H));
140857
140857
  } catch (H) {
140858
140858
  g(
@@ -141172,7 +141172,7 @@ function getMedicationRequestComboBoxItems(p, c, a, s, f) {
141172
141172
  displayName: getMedicationDisplay(h),
141173
141173
  disabled: !1
141174
141174
  }));
141175
- return HE(a, s, d, toSentinel, f);
141175
+ return GE(a, s, d, toSentinel, f);
141176
141176
  }
141177
141177
  function getVaccinationComboBoxItems(p, c, a, s, f) {
141178
141178
  if (!p.trim()) return [];
@@ -141183,7 +141183,7 @@ function getVaccinationComboBoxItems(p, c, a, s, f) {
141183
141183
  displayName: getMedicationDisplay(h),
141184
141184
  disabled: !1
141185
141185
  }));
141186
- return HE(
141186
+ return GE(
141187
141187
  a,
141188
141188
  s,
141189
141189
  d,
@@ -141377,7 +141377,7 @@ function validateEntry$1(p, c) {
141377
141377
  return { entry: { ...p, errors: a, hasBeenValidated: !0 }, valid: s };
141378
141378
  }
141379
141379
  function createMedicationRequestStore(p) {
141380
- const c = p === wb;
141380
+ const c = p === vb;
141381
141381
  return createStore((a, s) => ({
141382
141382
  selectedMedicationRequests: [],
141383
141383
  attributes: void 0,
@@ -141603,7 +141603,7 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141603
141603
  updateDispenseQuantity: I,
141604
141604
  updateDispenseUnit: D,
141605
141605
  updateNote: Z
141606
- } = useMedicationRequestStore(a), { t: O } = useTranslation(), z = a === wb, {
141606
+ } = useMedicationRequestStore(a), { t: O } = useTranslation(), z = a === vb, {
141607
141607
  id: F,
141608
141608
  dosage: U,
141609
141609
  dosageUnit: W,
@@ -141648,10 +141648,10 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141648
141648
  const he = c.frequencies.find(isImmediateFrequency);
141649
141649
  he && E(F, he);
141650
141650
  }
141651
- ue && k(F, W_());
141651
+ ue && k(F, Z_());
141652
141652
  } else if (ue) {
141653
141653
  const he = c.frequencies.find(isImmediateFrequency);
141654
- he && E(F, he), R(F, 0), V(F, null), k(F, W_());
141654
+ he && E(F, he), R(F, 0), V(F, null), k(F, Z_());
141655
141655
  }
141656
141656
  }
141657
141657
  }, [
@@ -141678,7 +141678,7 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141678
141678
  });
141679
141679
  }, []), useEffect(() => {
141680
141680
  const he = f?.filter((de) => de.event === "onSelect") ?? [];
141681
- he.length > 0 && Av({
141681
+ he.length > 0 && Iv({
141682
141682
  controlKey: a,
141683
141683
  itemId: F,
141684
141684
  rules: he
@@ -141937,7 +141937,7 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141937
141937
  datePickerType: "single",
141938
141938
  "data-testid": `${a}-start-date-picker-${F}-test-id`,
141939
141939
  value: fe,
141940
- minDate: W_(),
141940
+ minDate: Z_(),
141941
141941
  onChange: (he) => {
141942
141942
  k(F, he[0]);
141943
141943
  },
@@ -142038,11 +142038,11 @@ const $schema$2 = "http://json-schema.org/draft-07/schema#", title$4 = "Medicati
142038
142038
  cdsCard: cdsCard$1
142039
142039
  }, MedicationRequestForm = React__default.memo(({ inputControlConfig: p }) => {
142040
142040
  const { t: c } = useTranslation(), {
142041
- type: a = wb,
142041
+ type: a = vb,
142042
142042
  label: s = "MEDICATIONS_INPUT_CONTROL_TITLE",
142043
142043
  attributes: f = [],
142044
142044
  cdss: d = []
142045
- } = p ?? {}, h = a === wb, [E, g] = useState(""), {
142045
+ } = p ?? {}, h = a === vb, [E, g] = useState(""), {
142046
142046
  data: R,
142047
142047
  isLoading: V,
142048
142048
  error: H
@@ -142050,11 +142050,11 @@ const $schema$2 = "http://json-schema.org/draft-07/schema#", title$4 = "Medicati
142050
142050
  queryKey: ["medicationConfig"],
142051
142051
  queryFn: async () => {
142052
142052
  const [J, re] = await Promise.all([
142053
- qb(
142053
+ Hb(
142054
142054
  MEDICATIONS_CONFIG_URL,
142055
142055
  medicationConfigSchema
142056
142056
  ),
142057
- _b()
142057
+ Rb()
142058
142058
  ]);
142059
142059
  return { ...re, ...J };
142060
142060
  }
@@ -142068,7 +142068,7 @@ const $schema$2 = "http://json-schema.org/draft-07/schema#", title$4 = "Medicati
142068
142068
  error: Z
142069
142069
  } = useQuery({
142070
142070
  queryKey: ["vaccination"],
142071
- queryFn: vb,
142071
+ queryFn: Ob,
142072
142072
  enabled: !h
142073
142073
  }), O = useMemo(
142074
142074
  () => I ? getMedicationsFromBundle(I) : [],
@@ -142085,11 +142085,11 @@ const $schema$2 = "http://json-schema.org/draft-07/schema#", title$4 = "Medicati
142085
142085
  ), [N, R]);
142086
142086
  useEffect(() => {
142087
142087
  W(f), T && getMedicationRequestStore(a).getState().loadMedicationsForEdit(T);
142088
- }, [T, a]), Nv((J) => {
142088
+ }, [T, a]), Lv((J) => {
142089
142089
  const { cards: re } = J, oe = new Set(
142090
142090
  z.map((ce) => ce.id)
142091
142091
  );
142092
- Hv(re, oe).forEach(({ card: ce, resourceId: ae }) => {
142092
+ Gv(re, oe).forEach(({ card: ce, resourceId: ae }) => {
142093
142093
  K(ae, [ce]);
142094
142094
  });
142095
142095
  });
@@ -142237,7 +142237,7 @@ const registerMedicationRequestControl = (p) => {
142237
142237
  hasCriticalCDSCards: () => c().getState().hasCriticalCDSCards()
142238
142238
  });
142239
142239
  };
142240
- registerMedicationRequestControl(wb);
142240
+ registerMedicationRequestControl(vb);
142241
142241
  registerMedicationRequestControl(VACCINATIONS_INPUT_CONTROL_KEY);
142242
142242
  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";
142243
142243
  function resolveAdministeredProductExtension(p) {
@@ -142331,7 +142331,7 @@ function getBatchNumberComboBoxItems(p, c, a) {
142331
142331
  }
142332
142332
  function formatBatchItemDisplay(p, c) {
142333
142333
  if (!p) return "";
142334
- const a = p.expiryDate ? ` [${Y_(p.expiryDate, c, !1, "d MMM yyyy").formattedResult}]` : "", s = p.stockLocationName ? ` - ${p.stockLocationName}` : "";
142334
+ const a = p.expiryDate ? ` [${J_(p.expiryDate, c, !1, "d MMM yyyy").formattedResult}]` : "", s = p.stockLocationName ? ` - ${p.stockLocationName}` : "";
142335
142335
  return p.batchNumber + a + s;
142336
142336
  }
142337
142337
  function getLocationComboBoxItems(p, c) {
@@ -142344,7 +142344,7 @@ function getComboBoxItems(p, c, a, s, f) {
142344
142344
  const h = (c?.expansion?.contains ?? []).filter(
142345
142345
  (E) => E.display?.toLowerCase().includes(p.toLowerCase())
142346
142346
  );
142347
- return HE(
142347
+ return GE(
142348
142348
  a,
142349
142349
  s,
142350
142350
  h,
@@ -142764,7 +142764,7 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
142764
142764
  se && re(!0);
142765
142765
  }, [se]), useEffect(() => {
142766
142766
  const je = M?.filter((Qe) => Qe.event === "onSelect") ?? [];
142767
- je.length > 0 && Av({
142767
+ je.length > 0 && Iv({
142768
142768
  controlKey: g,
142769
142769
  itemId: T,
142770
142770
  rules: je
@@ -143127,7 +143127,7 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
143127
143127
  isError: O
143128
143128
  } = useQuery({
143129
143129
  queryKey: ["medication", I],
143130
- queryFn: () => Tb(I),
143130
+ queryFn: () => Ab(I),
143131
143131
  enabled: !!$ && !!I,
143132
143132
  staleTime: 1 / 0
143133
143133
  }), { isLoading: z, error: F } = useClinicalConfig(), U = St(), {
@@ -143140,11 +143140,11 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
143140
143140
  N && V(N);
143141
143141
  }, [N, V]), useEffect(() => {
143142
143142
  fe && H({ otherReasonConceptUuid: fe });
143143
- }, [fe, H]), Nv((ht) => {
143143
+ }, [fe, H]), Lv((ht) => {
143144
143144
  const { cards: lt } = ht, Bt = new Set(
143145
143145
  R.map((Ct) => Ct.id)
143146
143146
  );
143147
- Hv(lt, Bt).forEach(({ card: Ct, resourceId: Tt }) => {
143147
+ Gv(lt, Bt).forEach(({ card: Ct, resourceId: Tt }) => {
143148
143148
  M(Tt, [Ct]);
143149
143149
  });
143150
143150
  });
@@ -143163,7 +143163,7 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
143163
143163
  error: le
143164
143164
  } = useQuery({
143165
143165
  queryKey: ["administeredLocationTag", ue],
143166
- queryFn: () => kv(ue),
143166
+ queryFn: () => Fv(ue),
143167
143167
  enabled: !h && !!ue && !z && !F && !!findAttr("administeredLocation", N),
143168
143168
  staleTime: 1 / 0
143169
143169
  }), {
@@ -143199,7 +143199,7 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
143199
143199
  error: We
143200
143200
  } = useQuery({
143201
143201
  queryKey: ["vaccination"],
143202
- queryFn: vb,
143202
+ queryFn: Ob,
143203
143203
  staleTime: 1 / 0
143204
143204
  }), Xe = useMemo(
143205
143205
  () => Fe?.entry?.filter((ht) => ht.resource?.resourceType === "Medication").map((ht) => ht.resource) ?? [],
@@ -143209,7 +143209,7 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
143209
143209
  const lt = ht.administeredLocation?.uuid;
143210
143210
  return {
143211
143211
  queryKey: ["availableStocks", ht.drug?.code, lt],
143212
- queryFn: () => jv(ht.drug.code, lt),
143212
+ queryFn: () => zv(ht.drug.code, lt),
143213
143213
  enabled: !h && !!re && !!ht.drug?.code && !!lt
143214
143214
  };
143215
143215
  })
@@ -143407,7 +143407,7 @@ const canUserAccessForm = (p, c) => {
143407
143407
  error: h
143408
143408
  } = useQuery({
143409
143409
  queryKey: ["observationForms", c],
143410
- queryFn: () => iv(c)
143410
+ queryFn: () => dv(c)
143411
143411
  });
143412
143412
  return {
143413
143413
  forms: useMemo(() => {
@@ -143432,7 +143432,7 @@ const canUserAccessForm = (p, c) => {
143432
143432
  try {
143433
143433
  if (!p)
143434
143434
  throw new Error(PINNED_FORMS_ERROR_MESSAGES.USER_NOT_FOUND);
143435
- const c = await B(jb(p));
143435
+ const c = await B(zb(p));
143436
143436
  if (!c || typeof c != "object")
143437
143437
  return [];
143438
143438
  const a = c.userProperties?.pinnedObsTemplates ?? "";
@@ -143450,7 +143450,7 @@ const canUserAccessForm = (p, c) => {
143450
143450
  const a = c.filter(
143451
143451
  (s) => typeof s == "string" && s.trim().length > 0
143452
143452
  );
143453
- await ge(jb(p), {
143453
+ await ge(zb(p), {
143454
143454
  userProperties: {
143455
143455
  pinnedObsTemplates: a.join(PINNED_FORMS_DELIMITER)
143456
143456
  }
@@ -143520,7 +143520,7 @@ function usePinnedObservationForms(p, c) {
143520
143520
  return { pinnedForms: f, updatePinnedForms: M, isLoading: !h, error: g, refetch: $ };
143521
143521
  }
143522
143522
  function useSubmittedEncounterForms(p) {
143523
- const c = v0(), { activeEncounter: a, matchReasons: s } = rv(), f = s.includes("MATCHED") ? a?.id : void 0, {
143523
+ const c = v0(), { activeEncounter: a, matchReasons: s } = av(), f = s.includes("MATCHED") ? a?.id : void 0, {
143524
143524
  data: d,
143525
143525
  refetch: h,
143526
143526
  error: E
@@ -143528,11 +143528,11 @@ function useSubmittedEncounterForms(p) {
143528
143528
  queryKey: ["submittedEncounterForms", c, f],
143529
143529
  enabled: !!f && !!c,
143530
143530
  staleTime: 3e4,
143531
- queryFn: () => Bb(f)
143531
+ queryFn: () => Kb(f)
143532
143532
  });
143533
143533
  return useEffect(() => {
143534
143534
  E && console.error("Failed to fetch submitted encounter forms", E);
143535
- }, [E]), Ov(
143535
+ }, [E]), Nv(
143536
143536
  (g) => {
143537
143537
  g.patientUUID === c && h();
143538
143538
  },
@@ -143540,7 +143540,7 @@ function useSubmittedEncounterForms(p) {
143540
143540
  ), useMemo(() => {
143541
143541
  const g = d?.entry?.map((V) => V.resource).filter((V) => V?.resourceType === "Observation") ?? [], R = /* @__PURE__ */ new Set();
143542
143542
  for (const V of g) {
143543
- const H = eGt(V);
143543
+ const H = oGt(V);
143544
143544
  if (!H) continue;
143545
143545
  const M = p.find(($) => $.name === H);
143546
143546
  M && R.add(M.uuid);
@@ -143565,7 +143565,7 @@ const observationFormsTile = "ObservationForms-module_observationFormsTile__AZ0b
143565
143565
  submittedFormUuids: R = EMPTY_SET
143566
143566
  }) => {
143567
143567
  const { t: V } = useTranslation(), H = e8(
143568
- pr1.OBSERVATIONS
143568
+ gr1.OBSERVATIONS
143569
143569
  ), [M, $] = useState(""), [k, I] = useState(null), { getFormData: D } = useObservationFormsStore(), Z = useMemo(() => {
143570
143570
  if (!M.trim()) return h;
143571
143571
  const re = M.toLowerCase().trim().split(/\s+/);
@@ -143814,18 +143814,18 @@ const formView = "ObservationFormsContainer-module_formView__d3K6Z", inlineNotif
143814
143814
  );
143815
143815
  if (!ce) return;
143816
143816
  const ae = `${g}:${h}:${D ? "copyover" : "edit"}`;
143817
- oe.current !== ae && (oe.current = ae, Bb(g, $).then(async (Q) => {
143817
+ oe.current !== ae && (oe.current = ae, Kb(g, $).then(async (Q) => {
143818
143818
  const ye = bundleExports.getObservationsFromFhir(Q).filter(
143819
143819
  (we) => we.formFieldPath?.toLowerCase().startsWith(`${h.toLowerCase()}.`)
143820
143820
  );
143821
143821
  let ve = ce, le = null;
143822
143822
  if (s) {
143823
- const Ae = (await lv(s).catch(
143823
+ const Ae = (await hv(s).catch(
143824
143824
  () => []
143825
143825
  )).find(
143826
143826
  (Ie) => Ie.encounterUuid === g && Ie.formName.toLowerCase() === h.toLowerCase()
143827
143827
  );
143828
- le = Ae?.formUuid ?? await uv(
143828
+ le = Ae?.formUuid ?? await pv(
143829
143829
  h,
143830
143830
  Ae?.formVersion,
143831
143831
  Ae?.encounterDateTime
@@ -143958,7 +143958,7 @@ function createStopMedicationEntry(p) {
143958
143958
  if (!c.medicationToStop?.id || !c.stopReason) return [];
143959
143959
  const a = c.medicationToStop.subject?.reference?.split("/").pop();
143960
143960
  if (!a) return [];
143961
- const f = c.inputControlKey === $Ut ? Be.Cancelled : Be.Stopped, d = `${c.stopDate.getFullYear()}-${String(c.stopDate.getMonth() + 1).padStart(2, "0")}-${String(c.stopDate.getDate()).padStart(2, "0")}`, h = {
143961
+ const f = c.inputControlKey === BUt ? Be.Cancelled : Be.Stopped, d = `${c.stopDate.getFullYear()}-${String(c.stopDate.getMonth() + 1).padStart(2, "0")}-${String(c.stopDate.getDate()).padStart(2, "0")}`, h = {
143962
143962
  resourceType: "MedicationRequest",
143963
143963
  status: f,
143964
143964
  intent: "order",
@@ -143985,13 +143985,13 @@ function createStopMedicationEntry(p) {
143985
143985
  {
143986
143986
  extension: [
143987
143987
  {
143988
- url: vE,
143988
+ url: OE,
143989
143989
  valueCode: "cancellation-note"
143990
143990
  }
143991
143991
  ],
143992
143992
  text: c.note
143993
143993
  }
143994
- ]), _f({
143994
+ ]), Tf({
143995
143995
  eventType: es$2.STOP_MEDICATION.eventType,
143996
143996
  patientUuid: a,
143997
143997
  messageParams: {}
@@ -144011,7 +144011,7 @@ const stopMedicationFormTile = "StopMedicationForm-module_stopMedicationFormTile
144011
144011
  noteColumn
144012
144012
  }, StopMedicationForm = React__default.memo(
144013
144013
  ({ encounterSessionStartContext: p, inputControlConfig: c }) => {
144014
- const { t: a } = useTranslation(), s = c?.type === $Ut, f = p?.stopMedication, {
144014
+ const { t: a } = useTranslation(), s = c?.type === BUt, f = p?.stopMedication, {
144015
144015
  stopDate: d,
144016
144016
  stopReason: h,
144017
144017
  note: E,
@@ -144032,11 +144032,11 @@ const stopMedicationFormTile = "StopMedicationForm-module_stopMedicationFormTile
144032
144032
  staleTime: 0,
144033
144033
  queryFn: async () => {
144034
144034
  const [oe, fe] = await Promise.all([
144035
- qb(
144035
+ Hb(
144036
144036
  MEDICATIONS_CONFIG_URL,
144037
144037
  medicationConfigSchema
144038
144038
  ),
144039
- _b()
144039
+ Rb()
144040
144040
  ]);
144041
144041
  return { ...fe, ...oe };
144042
144042
  }
@@ -144230,7 +144230,7 @@ function useObservationFormData(p) {
144230
144230
  error: d
144231
144231
  } = useQuery({
144232
144232
  queryKey: ["formMetadata", p?.formUuid],
144233
- queryFn: () => cv(p.formUuid),
144233
+ queryFn: () => fv(p.formUuid),
144234
144234
  enabled: !!p?.formUuid
144235
144235
  }), h = p?.formMetadata ?? s, E = d || null, g = useCallback((H) => {
144236
144236
  if (!H) {
@@ -144284,7 +144284,7 @@ function useObservationFormData(p) {
144284
144284
  a(k);
144285
144285
  }, []), R = () => {
144286
144286
  a(null);
144287
- }, V = c && h ? fv(c, h) : [];
144287
+ }, V = c && h ? gv(c, h) : [];
144288
144288
  return {
144289
144289
  formData: c,
144290
144290
  observations: V,
@@ -144422,11 +144422,11 @@ const executeOnFormSaveEvent = (p, c, a, s) => {
144422
144422
  error: ee
144423
144423
  } = useQuery({
144424
144424
  queryKey: ["patient", W],
144425
- queryFn: () => r_(W),
144425
+ queryFn: () => a_(W),
144426
144426
  enabled: !!W
144427
144427
  }), ue = useMemo(() => {
144428
144428
  if (!T || !W) return null;
144429
- const ot = T.birthDate ? B_(T.birthDate) : null;
144429
+ const ot = T.birthDate ? K_(T.birthDate) : null;
144430
144430
  return {
144431
144431
  uuid: W,
144432
144432
  identifier: T.identifier ?? void 0,
@@ -144437,7 +144437,7 @@ const executeOnFormSaveEvent = (p, c, a, s) => {
144437
144437
  ageInDays: ot?.ageInDays,
144438
144438
  birthdate: T.birthDate ?? void 0,
144439
144439
  birthtime: T.birthtime ?? void 0,
144440
- gender: T.gender ? t_(T.gender) : void 0,
144440
+ gender: T.gender ? o_(T.gender) : void 0,
144441
144441
  activeVisitUuid: X ?? void 0,
144442
144442
  currentEncounterUuid: k?.id ?? void 0,
144443
144443
  getAgeDetails: () => ot ?? AGE_DETAILS_DEFAULT
@@ -144484,7 +144484,7 @@ const executeOnFormSaveEvent = (p, c, a, s) => {
144484
144484
  groupMembers: Ea.groupMembers.map(Tt)
144485
144485
  } : Ea;
144486
144486
  }, ta = (Ft) => {
144487
- const Ea = typeof Ft.value == "string" && IE.test(Ft.value) ? { ...Ft, value: dv(new Date(Ft.value)) } : Ft;
144487
+ const Ea = typeof Ft.value == "string" && xE.test(Ft.value) ? { ...Ft, value: mv(new Date(Ft.value)) } : Ft;
144488
144488
  return Ea.groupMembers ? {
144489
144489
  ...Ea,
144490
144490
  groupMembers: Ea.groupMembers.map(ta)
@@ -144519,7 +144519,7 @@ const executeOnFormSaveEvent = (p, c, a, s) => {
144519
144519
  if (le.current) {
144520
144520
  if (ae && !ot) {
144521
144521
  Q(null);
144522
- const { observations: ga } = le.current.getValue(), Qt = ga && ga.length > 0 ? hv(
144522
+ const { observations: ga } = le.current.getValue(), Qt = ga && ga.length > 0 ? wv(
144523
144523
  ga,
144524
144524
  de
144525
144525
  ) : [];
@@ -144535,7 +144535,7 @@ const executeOnFormSaveEvent = (p, c, a, s) => {
144535
144535
  ), Ke(Qt, ae);
144536
144536
  return;
144537
144537
  }
144538
- const { observations: Ct, errors: Tt } = le.current.getValue(), ta = Ct && Ct.length > 0 ? hv(
144538
+ const { observations: Ct, errors: Tt } = le.current.getValue(), ta = Ct && Ct.length > 0 ? wv(
144539
144539
  Ct,
144540
144540
  de
144541
144541
  ) : [], kt = (ga) => ga.value !== null && ga.value !== void 0 && ga.value !== "" ? !0 : ga.groupMembers && ga.groupMembers.length > 0 ? ga.groupMembers.some(kt) : !1, Ea = !ta.some(kt);
@@ -144579,7 +144579,7 @@ const executeOnFormSaveEvent = (p, c, a, s) => {
144579
144579
  }
144580
144580
  }, Qe = () => {
144581
144581
  if (Q(null), le.current) {
144582
- const { observations: ot } = le.current.getValue(), Ct = ot && ot.length > 0 ? hv(
144582
+ const { observations: ot } = le.current.getValue(), Ct = ot && ot.length > 0 ? wv(
144583
144583
  ot,
144584
144584
  de
144585
144585
  ) : [];
@@ -144722,8 +144722,8 @@ const executeOnFormSaveEvent = (p, c, a, s) => {
144722
144722
  return null;
144723
144723
  }, extractAndAppendNotesFromFormData = (p, c) => {
144724
144724
  if (!p.current) return;
144725
- const a = p.current?.state, s = mv(a?.data);
144726
- gv(s, c);
144725
+ const a = p.current?.state, s = Ev(a?.data);
144726
+ _v(s, c);
144727
144727
  }, $schema$1 = "http://json-schema.org/draft-07/schema#", title$1 = "CDSS Servers Configuration Schema", description$1 = "Schema for CDSS (Clinical Decision Support System) server configurations", type$1 = "array", items = { type: "object", required: ["server", "url", "services"], additionalProperties: !1, properties: { server: { type: "string", description: "CDSS server identifier" }, url: { type: "string", description: "Base URL for the CDSS server" }, services: { type: "array", description: "List of CDS Hooks services provided by this server", items: { type: "object", required: ["name", "description"], additionalProperties: !1, properties: { name: { type: "string", description: "Service/hook name" }, description: { type: "string", description: "Service description" }, contextResourceMap: { type: "array", description: "Mapping of FHIR resources to context attributes", items: { type: "object", required: ["type", "attribute"], additionalProperties: !1, properties: { type: { type: "string", description: "FHIR resource type" }, attribute: { type: "string", description: "Context attribute name" } } } }, prefetch: { type: "object", description: "Prefetch templates for the service", additionalProperties: { type: "string" } } } } } } }, cdssConfigSchema = {
144728
144728
  $schema: $schema$1,
144729
144729
  title: title$1,
@@ -144759,7 +144759,7 @@ const executeOnFormSaveEvent = (p, c, a, s) => {
144759
144759
  createCodeableConcept([
144760
144760
  createCoding(
144761
144761
  p,
144762
- Di,
144762
+ ki,
144763
144763
  c
144764
144764
  )
144765
144765
  ])
@@ -144883,7 +144883,7 @@ const ConsultationPad = ({
144883
144883
  error: U
144884
144884
  } = useQuery({
144885
144885
  queryKey: ["cdssConfig"],
144886
- queryFn: () => qb(CDSS_SERVER_CONFIG_URL, cdssConfigSchema),
144886
+ queryFn: () => Hb(CDSS_SERVER_CONFIG_URL, cdssConfigSchema),
144887
144887
  enabled: k
144888
144888
  });
144889
144889
  useEffect(() => {
@@ -144932,7 +144932,7 @@ const ConsultationPad = ({
144932
144932
  ae,
144933
144933
  ye
144934
144934
  ],
144935
- queryFn: () => Jb(
144935
+ queryFn: () => ev(
144936
144936
  fe,
144937
144937
  ve?.uuid,
144938
144938
  void 0,
@@ -144947,7 +144947,7 @@ const ConsultationPad = ({
144947
144947
  error: he
144948
144948
  } = useQuery({
144949
144949
  queryKey: ["encounter", g],
144950
- queryFn: ({ signal: kt }) => ub(g, { signal: kt }),
144950
+ queryFn: ({ signal: kt }) => pb(g, { signal: kt }),
144951
144951
  enabled: !!g
144952
144952
  });
144953
144953
  useEffect(() => {
@@ -144987,7 +144987,7 @@ const ConsultationPad = ({
144987
144987
  });
144988
144988
  useEffect(() => {
144989
144989
  const kt = p.editMedications;
144990
- getMedicationRequestStore(wb).getState().setPendingFhirEdits(kt?.length ? kt : []);
144990
+ getMedicationRequestStore(vb).getState().setPendingFhirEdits(kt?.length ? kt : []);
144991
144991
  }, [p.editMedications]), useEffect(() => () => se.forEach((kt) => kt.reset()), []), useEffect(() => {
144992
144992
  f?.length && useAllergyStore.getState().preloadAllergies(f);
144993
144993
  }, [f]);
@@ -145027,7 +145027,7 @@ const ConsultationPad = ({
145027
145027
  visitId: Qt,
145028
145028
  episodeId: ae ?? void 0
145029
145029
  }, na = xt.map(
145030
- (Cn) => Vv(z, Cn, cn, ga).catch(
145030
+ (Cn) => Yv(z, Cn, cn, ga).catch(
145031
145031
  () => (H({
145032
145032
  title: V("ERROR_DEFAULT_TITLE"),
145033
145033
  message: V("CDSS_RULE_INVOCATION_ERROR", {
@@ -145038,7 +145038,7 @@ const ConsultationPad = ({
145038
145038
  }), [])
145039
145039
  )
145040
145040
  ), Ha = (await Promise.all(na)).flat();
145041
- Pv({
145041
+ Dv({
145042
145042
  cards: Ha,
145043
145043
  triggerItemId: Ea,
145044
145044
  controlKey: Ft
@@ -145070,7 +145070,7 @@ const ConsultationPad = ({
145070
145070
  k
145071
145071
  ]
145072
145072
  );
145073
- $v(vt);
145073
+ Cv(vt);
145074
145074
  const at = async () => {
145075
145075
  const kt = se.map((xt) => ({
145076
145076
  key: xt.key,
@@ -145106,7 +145106,7 @@ const ConsultationPad = ({
145106
145106
  await na.onDirectSubmit();
145107
145107
  if (xt.length > 0 && ga.length === 0) {
145108
145108
  const na = captureUpdatedResources(se);
145109
- Sv({
145109
+ $v({
145110
145110
  patientUUID: useEncounterDetailsStore.getState().patientUUID ?? "",
145111
145111
  updatedResources: na,
145112
145112
  updatedConcepts: /* @__PURE__ */ new Map()
@@ -145124,13 +145124,13 @@ const ConsultationPad = ({
145124
145124
  statDurationInMilliseconds: Te,
145125
145125
  activeEntries: se
145126
145126
  });
145127
- _f({
145127
+ Tf({
145128
145128
  eventType: es$2.EDIT_ENCOUNTER.eventType,
145129
145129
  patientUuid: Qt.patientUUID,
145130
145130
  messageParams: { encounterType: Qt.encounterTypeName }
145131
145131
  });
145132
145132
  const cn = captureUpdatedResources(se);
145133
- Sv({
145133
+ $v({
145134
145134
  patientUUID: Qt.patientUUID,
145135
145135
  updatedResources: cn,
145136
145136
  updatedConcepts: Qt.updatedConcepts
@@ -145164,9 +145164,9 @@ const ConsultationPad = ({
145164
145164
  encounterSessionStartContext: He
145165
145165
  },
145166
145166
  kt.key
145167
- )) }), ot = !!h, Ct = getMedicationRequestStore(wb), Tt = useSyncExternalStore(
145167
+ )) }), ot = !!h, Ct = getMedicationRequestStore(vb), Tt = useSyncExternalStore(
145168
145168
  (kt) => Ct.subscribe(kt),
145169
- () => !ot || h !== wb ? !0 : Ct.getState().hasEditChanges()
145169
+ () => !ot || h !== vb ? !0 : Ct.getState().hasEditChanges()
145170
145170
  ), ta = lt || !J || M || !ue || !Tt || Ie || de === void 0;
145171
145171
  return /* @__PURE__ */ jsxs(Fragment, { children: [
145172
145172
  /* @__PURE__ */ jsx(
@@ -145211,7 +145211,7 @@ const ConsultationPad = ({
145211
145211
  onToggleActionAreaExpand: s
145212
145212
  }) => {
145213
145213
  const { t: f } = useTranslation(), { addNotification: d } = z1(), h = v0(), { activeEpisodeId: E } = useClinicalAppData(), { clinicalConfig: g, isLoading: R } = useClinicalConfig(), { encounterConcepts: V } = useEncounterConcepts(), H = e8(
145214
- pr1.ADD_VISITS
145214
+ gr1.ADD_VISITS
145215
145215
  ), M = useActionAreaExpandProps({
145216
145216
  isExpanded: a,
145217
145217
  onToggleExpand: s
@@ -145221,7 +145221,7 @@ const ConsultationPad = ({
145221
145221
  isLoading: W
145222
145222
  } = useQuery({
145223
145223
  queryKey: ["activeVisitAtLoginLocation", h],
145224
- queryFn: () => db(h),
145224
+ queryFn: () => mb(h),
145225
145225
  enabled: !!h,
145226
145226
  retry: !1
145227
145227
  }), N = useMemo(
@@ -145242,15 +145242,15 @@ const ConsultationPad = ({
145242
145242
  async (ae, Q) => {
145243
145243
  Z(!0), z(null);
145244
145244
  try {
145245
- const ye = await Ui(
145245
+ const ye = await Vi(
145246
145246
  St().uuid
145247
145247
  );
145248
- await P_(
145248
+ await D_(
145249
145249
  h,
145250
145250
  ye.uuid,
145251
145251
  ae,
145252
145252
  E ?? void 0
145253
- ), _f({
145253
+ ), Tf({
145254
145254
  eventType: "START_VISIT",
145255
145255
  patientUuid: h,
145256
145256
  messageParams: { visitType: Q },
@@ -145376,8 +145376,8 @@ const ConsultationPad = ({
145376
145376
  encounterUuids: s,
145377
145377
  visitUuids: f
145378
145378
  }) => {
145379
- const { t: d } = useTranslation(), { matchReasons: h, canEditOrCreate: E, activeEncounter: g } = rv(), R = h.includes("NO_ACTIVE_VISIT"), V = h.includes("MATCHED"), M = h.includes("MATCHED") ? g?.id ?? null : null, $ = (I, D, Z) => {
145380
- const O = gr1(I.type);
145379
+ const { t: d } = useTranslation(), { matchReasons: h, canEditOrCreate: E, activeEncounter: g } = av(), R = h.includes("NO_ACTIVE_VISIT"), V = h.includes("MATCHED"), M = h.includes("MATCHED") ? g?.id ?? null : null, $ = (I, D, Z) => {
145380
+ const O = Vr1(I.type);
145381
145381
  if (!O)
145382
145382
  return /* @__PURE__ */ jsx("div", { className: styles$4.widgetError, children: /* @__PURE__ */ jsx("p", { children: d("CONTROL_NOT_FOUND", { type: I.type }) }) }, `${I.type}-${D}`);
145383
145383
  const z = D < Z - 1;
@@ -145451,7 +145451,7 @@ const ConsultationPad = ({
145451
145451
  ])
145452
145452
  );
145453
145453
  return useEffect(() => {
145454
- f && _f({
145454
+ f && Tf({
145455
145455
  eventType: es$2.VIEWED_CLINICAL_DASHBOARD.eventType,
145456
145456
  patientUuid: f
145457
145457
  });
@@ -145508,21 +145508,21 @@ function useEncounterSession(p) {
145508
145508
  F = St().uuid;
145509
145509
  } catch {
145510
145510
  }
145511
- const U = aw();
145511
+ const U = lw();
145512
145512
  if (U.matchReasons.includes("MATCHED") && U.activeEncounter?.id && U.activeEncounter.subject?.reference?.endsWith(I) && !z.ignored) {
145513
145513
  f(!0), h(U.activeEncounter), g(!0), k(U.matchReasons), V(!1);
145514
145514
  return;
145515
145515
  }
145516
145516
  V(!0), M(null);
145517
145517
  try {
145518
- const W = await Qb(
145518
+ const W = await tv(
145519
145519
  I,
145520
145520
  D,
145521
145521
  F,
145522
145522
  a
145523
145523
  );
145524
145524
  if (z.ignored) return;
145525
- const N = Xb(W);
145525
+ const N = rv(W);
145526
145526
  f(N), h(W.encounter), g(N), k(W.reasons);
145527
145527
  } catch (W) {
145528
145528
  if (z.ignored) return;
@@ -145570,7 +145570,7 @@ const CONSULTATION_START_EVENT = "startConsultation", dispatchConsultationStart
145570
145570
  }) => {
145571
145571
  const { t: s } = useTranslation();
145572
145572
  return e8(
145573
- pr1.ENCOUNTER
145573
+ gr1.ENCOUNTER
145574
145574
  ) ? a ? /* @__PURE__ */ jsx(
145575
145575
  hb2,
145576
145576
  {
@@ -145611,15 +145611,15 @@ const CONSULTATION_START_EVENT = "startConsultation", dispatchConsultationStart
145611
145611
  encounterTypeUUID: g
145612
145612
  }), k = useRef(null);
145613
145613
  useEffect(() => {
145614
- k.current !== h && (k.current = h, tv());
145614
+ k.current !== h && (k.current = h, ov());
145615
145615
  }, [h]), useEffect(() => {
145616
- ev(M);
145616
+ sv(M);
145617
145617
  }, [M]), useEffect(() => {
145618
- M || Zb({
145618
+ M || nv({
145619
145619
  reasons: R,
145620
145620
  encounter: H
145621
145621
  });
145622
- }, [M, R, H]), Ov(
145622
+ }, [M, R, H]), Nv(
145623
145623
  (F) => {
145624
145624
  F.patientUUID === h && $();
145625
145625
  },
@@ -145648,7 +145648,7 @@ const CONSULTATION_START_EVENT = "startConsultation", dispatchConsultationStart
145648
145648
  "data-active-encounter-uuid": V && H?.id ? H.id : void 0,
145649
145649
  "data-active-practitioner-uuid": s?.uuid ?? void 0,
145650
145650
  children: [
145651
- /* @__PURE__ */ jsx(rr1, {}),
145651
+ /* @__PURE__ */ jsx(ir1, {}),
145652
145652
  /* @__PURE__ */ jsxs("div", { className: styles$2.actionButtons, children: [
145653
145653
  /* @__PURE__ */ jsx(
145654
145654
  ConsultationActionButton,
@@ -145659,7 +145659,7 @@ const CONSULTATION_START_EVENT = "startConsultation", dispatchConsultationStart
145659
145659
  }
145660
145660
  ),
145661
145661
  /* @__PURE__ */ jsx(
145662
- X01,
145662
+ rr1,
145663
145663
  {
145664
145664
  printOptions: c,
145665
145665
  renderContext: z,
@@ -145680,7 +145680,7 @@ const CONSULTATION_START_EVENT = "startConsultation", dispatchConsultationStart
145680
145680
  error: f
145681
145681
  } = useQuery({
145682
145682
  queryKey: ["patientSearch", p],
145683
- queryFn: () => s_(p),
145683
+ queryFn: () => c_(p),
145684
145684
  enabled: p.trim().length > 0
145685
145685
  });
145686
145686
  return { results: useMemo(
@@ -145811,7 +145811,7 @@ const CONSULTATION_START_EVENT = "startConsultation", dispatchConsultationStart
145811
145811
  const { t: s } = useTranslation(), f = useQueryClient(), d = useQueries({
145812
145812
  queries: c.map((g) => ({
145813
145813
  queryKey: ["encounters-for-eoc", g],
145814
- queryFn: () => nv([g]),
145814
+ queryFn: () => iv([g]),
145815
145815
  enabled: !!g
145816
145816
  })),
145817
145817
  combine: (g) => ({
@@ -145824,7 +145824,7 @@ const CONSULTATION_START_EVENT = "startConsultation", dispatchConsultationStart
145824
145824
  error: g.find((R) => R.error)?.error ?? null
145825
145825
  })
145826
145826
  }), { activeVisit: h } = usePatientVisit(a);
145827
- Ov(() => {
145827
+ Nv(() => {
145828
145828
  c.forEach((g) => {
145829
145829
  f.invalidateQueries({
145830
145830
  queryKey: ["encounters-for-eoc", g]
@@ -145869,14 +145869,14 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
145869
145869
  ), filterSectionsByPrivileges = (p) => p.map((c) => ({
145870
145870
  ...c,
145871
145871
  controls: filterControlsByPrivileges(c.controls)
145872
- })).filter((c) => c.controls.length > 0), isPatientNotFoundError = (p) => (typeof p == "string" ? p : p instanceof Error ? p.message : "") === wi, getSidebarItems = (p, c) => p.sections.map((a) => ({
145872
+ })).filter((c) => c.controls.length > 0), isPatientNotFoundError = (p) => (typeof p == "string" ? p : p instanceof Error ? p.message : "") === vi, getSidebarItems = (p, c) => p.sections.map((a) => ({
145873
145873
  id: a.id,
145874
145874
  icon: a.icon,
145875
145875
  label: c(a.translationKey ?? a.name)
145876
145876
  })), addSectionIds = (p) => p?.sections?.length ? {
145877
145877
  ...p,
145878
145878
  sections: p.sections.map(
145879
- (c) => c.id ? c : { ...c, id: LE() }
145879
+ (c) => c.id ? c : { ...c, id: UE() }
145880
145880
  )
145881
145881
  } : p, ConsultationPage = () => {
145882
145882
  const { t: p } = useTranslation(), { clinicalConfig: c, isLoading: a } = useClinicalConfig(), { userPrivileges: s } = en(), { addNotification: f } = z1(), [d, h] = useState(!1), [E, g] = useState(!1), [R, V] = useState(null);
@@ -145902,11 +145902,11 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
145902
145902
  isPending: W
145903
145903
  } = useQuery({
145904
145904
  queryKey: ["patient", O],
145905
- queryFn: () => r_(O),
145905
+ queryFn: () => a_(O),
145906
145906
  enabled: !!O
145907
- }), N = useMemo(() => U ? isPatientNotFoundError(F) ? wi : "ERROR_FETCHING_PATIENT_DATA" : null, [U, F]), K = !O || !!z, X = useMemo(
145907
+ }), N = useMemo(() => U ? isPatientNotFoundError(F) ? vi : "ERROR_FETCHING_PATIENT_DATA" : null, [U, F]), K = !O || !!z, X = useMemo(
145908
145908
  () => [
145909
- { id: "home", label: p("HOME_LABEL"), href: mE },
145909
+ { id: "home", label: p("HOME_LABEL"), href: EE },
145910
145910
  {
145911
145911
  id: "clinical",
145912
145912
  label: p("CLINICAL_LABEL"),
@@ -145914,7 +145914,7 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
145914
145914
  },
145915
145915
  {
145916
145916
  id: "current",
145917
- label: z?.fullName ? xE(z.fullName) : p("CURRENT_PATIENT"),
145917
+ label: z?.fullName ? qE(z.fullName) : p("CURRENT_PATIENT"),
145918
145918
  isCurrentPage: !0
145919
145919
  }
145920
145920
  ],
@@ -145932,7 +145932,7 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
145932
145932
  error: oe
145933
145933
  } = useQuery({
145934
145934
  queryKey: ["dashboardConfig", ue],
145935
- queryFn: () => qb(
145935
+ queryFn: () => Hb(
145936
145936
  DASHBOARD_CONFIG_URL(ue),
145937
145937
  dashboardConfigSchema
145938
145938
  ),
@@ -145956,7 +145956,7 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
145956
145956
  ...J,
145957
145957
  sections: filterSectionsByPrivileges(J.sections)
145958
145958
  }, [J, s]), ce = useMemo(() => !ee?.printOptions || !s ? [] : ee.printOptions.filter(
145959
- (Ie) => fw(s, Ie.privileges)
145959
+ (Ie) => gw(s, Ie.privileges)
145960
145960
  ), [ee, s]), ae = useMemo(() => fe ? getSidebarItems(fe, p) : [], [fe, p]), [Q, ye] = useState(0), { activeItemId: ve, handleItemClick: le } = zb2(ae), we = useCallback(
145961
145961
  (Ie) => {
145962
145962
  le(Ie), ye((he) => he + 1);
@@ -146012,7 +146012,7 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
146012
146012
  const Ae = () => {
146013
146013
  const Ie = $.get(PROGRAM_UUID_SEARCH_PARAMS_KEY);
146014
146014
  return Ie && c.contextInformation?.program ? /* @__PURE__ */ jsx(
146015
- dr1,
146015
+ fr1,
146016
146016
  {
146017
146017
  programUUID: Ie,
146018
146018
  config: {
@@ -146031,7 +146031,7 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
146031
146031
  {
146032
146032
  breadcrumbItems: X,
146033
146033
  globalActions: D,
146034
- userMenu: /* @__PURE__ */ jsx(h01, {}),
146034
+ userMenu: /* @__PURE__ */ jsx(w01, {}),
146035
146035
  sideNavItems: E ? [] : ae,
146036
146036
  activeSideNavItemId: ve,
146037
146037
  onSideNavItemClick: we,