@bahmni/clinical-app 0.0.1-dev.378 → 0.0.1-dev.380

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, C as B, E as ENCOUNTER_CONCEPTS_URL, D as Yr, F as Ci, G as BAHMNI_USER_LOCATION_COOKIE_NAME, L as Lm, M as yke, g as g0, O as pb2, P as db2, R as ib2, S as Zx2, T as al1, U as cb2, _ as AE, $ as Di, a0 as Dd, a1 as dE, a2 as Id, a3 as vs, a4 as dist, a5 as yt, a6 as ge, a7 as ss, a8 as Mb, a9 as Kb, aa as Wb, ab as ub2, ac as Hb2, ad as bz2, K as K1, H as H3, ae as Jb, af as Ry2, ag as Gy2, ah as Zb2, ai as xb2, aj as Lb2, i as w01, ak as R_, al as sb2, am as Y_, an as Ps, ao as P_, ap as mv, aq as Yb, ar as Ky2, as as n_, at as a_, au as CLINICAL_V2_CONFIG_BASE_URL, av as d_, aw as CE, ax as Qr, ay as c_, az as qb, aA as gv, aB as cL2, aC as $_, aD as l_, aE as f_, aF as Ev, aG as lb2, aH as Dv, aI as kb, aJ as p_, aK as Rt, aL as jr, aM as Rv, aN as Nv, X as Xr, aO as Q_, aP as I_, aQ as L_, d as a01, aR as Sb2, aS as Rb2, aT as ev, aU as Z_, aV as STOP_REASON_VALUESET_URL, aW as STOP_REASON_VALUESET_EXPAND_URL, aX as STOP_MEDICATION_URL, aY as Yy2, aZ as mf, a_ as es$2, a$ as Db2, b0 as X_, b1 as rv, b2 as YE, b3 as Lb, b4 as zE, b5 as an, b6 as N4, b7 as c3, b8 as Nb2, b9 as _E, ba as tv, bb as sv, bc as ov, bd as av, be as Ii, bf as ns, bg as F_, bh as Zb, bi as Iv, bj as yv, bk as wv, bl as hv, bm as CDSS_SERVER_CONFIG_URL, bn as t_, bo as Mi, bp as wb, bq as Ze, br as Vb2, bs as y01, bt as Mb2, bu as Xy, bv as j_, bw as V_, bx as ab2, by as Vs1, bz as z_, bA as B_, bB as H_, bC as o01, bD as e01, bE as KE, bF as G_, bG as aE, bH as BAHMNI_CLINICAL_PATH, bI as RE, bJ as sw, bK as Eb2, bL as gb2, bM as Hz2, bN as f11, bO as SE, bP as p01 } from "./index-IpWGYU_A.js";
2
+ import { u as useTranslation, D as B, E as ENCOUNTER_CONCEPTS_URL, Y as Yr, F as Ci, I as BAHMNI_USER_LOCATION_COOKIE_NAME, O as Lm, P as e8, g as g0, Q as hb2, R as ub2, S as sb2, T as Bx2, U as ol1, X as ab2, _ as AE, $ as Di, a0 as Dd, a1 as dE, a2 as Id, a3 as vs, a4 as dist, a5 as yt, a6 as ge, a7 as ss, a8 as Mb, a9 as Kb, aa as Wb, ab as mb2, ac as Cb2, ad as Nz2, Z as Z1, b as b3, ae as Jb, af as Oy2, ag as Ky2, ah as Bb2, ai as _b2, aj as xb2, j as L01, ak as R_, al as fb2, am as Y_, an as Ps, ao as P_, ap as mv, aq as Yb, ar as Yy2, as as n_, at as a_, au as CLINICAL_V2_CONFIG_BASE_URL, av as d_, aw as CE, ax as Qr, ay as c_, az as qb, aA as gv, aB as aL2, aC as $_, aD as l_, aE as f_, aF as Ev, aG as ib2, aH as Dv, aI as kb, aJ as p_, aK as Rt, aL as jr, aM as Rv, aN as Nv, J as Jr, aO as Q_, aP as I_, aQ as L_, H as H01, aR as Rb2, aS as Ob2, aT as ev, aU as Z_, aV as STOP_REASON_VALUESET_URL, aW as STOP_REASON_VALUESET_EXPAND_URL, aX as STOP_MEDICATION_URL, aY as Jy2, aZ as mf, a_ as es$2, a$ as Tb2, b0 as X_, b1 as rv, b2 as YE, b3 as Lb, b4 as zE, b5 as an, b6 as N4, b7 as c3, b8 as Ab2, b9 as _E, ba as tv, bb as sv, bc as ov, bd as av, be as Ii, bf as ns, bg as F_, bh as Zb, bi as Iv, bj as yv, bk as wv, bl as hv, bm as CDSS_SERVER_CONFIG_URL, bn as t_, bo as Mi, bp as wb, bq as Ze, br as Hb2, bs as $01, bt as Eb2, bu as Xy, bv as j_, bw as V_, bx as ob2, by as Hs1, bz as z_, bA as B_, bB as H_, bC as V01, bD as g01, bE as KE, bF as G_, bG as aE, bH as BAHMNI_CLINICAL_PATH, bI as RE, bJ as sw, bK as Vb2, bL as vb2, bM as Cz2, bN as T11, bO as SE, bP as z01 } from "./index-CZ8_yvJC.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-Ba7gNLSV.js";
7
+ import { u as useClinicalConfig } from "./hook-DClwnGw8.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 : {};
@@ -2058,7 +2058,7 @@ const useLocations = () => {
2058
2058
  encounterSessionStartContext: p,
2059
2059
  inputControlConfig: c
2060
2060
  }) => {
2061
- const a = p?.isVisitActive ?? !0, { t: s } = useTranslation(), f = yke(), d = g0(), {
2061
+ const a = p?.isVisitActive ?? !0, { t: s } = useTranslation(), f = e8(), d = g0(), {
2062
2062
  activeVisit: h,
2063
2063
  loading: E,
2064
2064
  error: C
@@ -2202,14 +2202,14 @@ const useLocations = () => {
2202
2202
  O,
2203
2203
  C,
2204
2204
  ve
2205
- ]), /* @__PURE__ */ jsxs(pb2, { condensed: !1, narrow: !1, "data-testid": "encounter-details-grid", children: [
2206
- /* @__PURE__ */ jsx(db2, { sm: 4, md: 8, lg: 5, xl: 12, className: styles$k.column, children: /* @__PURE__ */ jsx(
2205
+ ]), /* @__PURE__ */ jsxs(hb2, { condensed: !1, narrow: !1, "data-testid": "encounter-details-grid", children: [
2206
+ /* @__PURE__ */ jsx(ub2, { sm: 4, md: 8, lg: 5, xl: 12, className: styles$k.column, children: /* @__PURE__ */ jsx(
2207
2207
  FormField,
2208
2208
  {
2209
2209
  isLoading: !Z && !H,
2210
2210
  placeholder: /* @__PURE__ */ jsx(DropdownPlaceholder, {}),
2211
2211
  children: /* @__PURE__ */ jsx(
2212
- ib2,
2212
+ sb2,
2213
2213
  {
2214
2214
  id: "location-dropdown",
2215
2215
  "data-testid": "location-dropdown",
@@ -2224,13 +2224,13 @@ const useLocations = () => {
2224
2224
  )
2225
2225
  }
2226
2226
  ) }),
2227
- /* @__PURE__ */ jsx(db2, { sm: 4, md: 8, lg: 5, xl: 12, className: styles$k.column, children: /* @__PURE__ */ jsx(
2227
+ /* @__PURE__ */ jsx(ub2, { sm: 4, md: 8, lg: 5, xl: 12, className: styles$k.column, children: /* @__PURE__ */ jsx(
2228
2228
  FormField,
2229
2229
  {
2230
2230
  isLoading: !F && !k,
2231
2231
  placeholder: /* @__PURE__ */ jsx(DropdownPlaceholder, {}),
2232
2232
  children: /* @__PURE__ */ jsx(
2233
- ib2,
2233
+ sb2,
2234
2234
  {
2235
2235
  id: "encounter-type-dropdown",
2236
2236
  "data-testid": "encounter-type-dropdown",
@@ -2245,13 +2245,13 @@ const useLocations = () => {
2245
2245
  )
2246
2246
  }
2247
2247
  ) }),
2248
- /* @__PURE__ */ jsx(db2, { sm: 4, md: 8, lg: 5, xl: 12, className: styles$k.column, children: /* @__PURE__ */ jsx(
2248
+ /* @__PURE__ */ jsx(ub2, { sm: 4, md: 8, lg: 5, xl: 12, className: styles$k.column, children: /* @__PURE__ */ jsx(
2249
2249
  FormField,
2250
2250
  {
2251
2251
  isLoading: !U && !k,
2252
2252
  placeholder: /* @__PURE__ */ jsx(DropdownPlaceholder, {}),
2253
2253
  children: /* @__PURE__ */ jsx(
2254
- ib2,
2254
+ sb2,
2255
2255
  {
2256
2256
  id: "visit-type-dropdown",
2257
2257
  "data-testid": "visit-type-dropdown",
@@ -2270,13 +2270,13 @@ const useLocations = () => {
2270
2270
  )
2271
2271
  }
2272
2272
  ) }),
2273
- /* @__PURE__ */ jsx(db2, { sm: 4, md: 8, lg: 5, className: styles$k.column, children: /* @__PURE__ */ jsx(
2273
+ /* @__PURE__ */ jsx(ub2, { sm: 4, md: 8, lg: 5, className: styles$k.column, children: /* @__PURE__ */ jsx(
2274
2274
  FormField,
2275
2275
  {
2276
2276
  isLoading: !I && !O,
2277
2277
  placeholder: /* @__PURE__ */ jsx(DropdownPlaceholder, {}),
2278
2278
  children: /* @__PURE__ */ jsx(
2279
- ib2,
2279
+ sb2,
2280
2280
  {
2281
2281
  id: "practitioner-dropdown",
2282
2282
  "data-testid": "practitioner-dropdown",
@@ -2291,19 +2291,19 @@ const useLocations = () => {
2291
2291
  )
2292
2292
  }
2293
2293
  ) }),
2294
- /* @__PURE__ */ jsx(db2, { sm: 4, md: 8, lg: 5, className: styles$k.column, children: /* @__PURE__ */ jsx(
2294
+ /* @__PURE__ */ jsx(ub2, { sm: 4, md: 8, lg: 5, className: styles$k.column, children: /* @__PURE__ */ jsx(
2295
2295
  FormField,
2296
2296
  {
2297
2297
  isLoading: !K,
2298
2298
  placeholder: /* @__PURE__ */ jsx(DropdownPlaceholder, {}),
2299
2299
  children: /* @__PURE__ */ jsx(
2300
- Zx2,
2300
+ Bx2,
2301
2301
  {
2302
2302
  datePickerType: "single",
2303
2303
  "data-testid": "encounter-date-picker",
2304
2304
  value: N,
2305
2305
  children: /* @__PURE__ */ jsx(
2306
- al1,
2306
+ ol1,
2307
2307
  {
2308
2308
  id: "encounter-date-picker-input",
2309
2309
  "data-testid": "encounter-date-picker-input",
@@ -2322,8 +2322,8 @@ const useLocations = () => {
2322
2322
  placeholder: c,
2323
2323
  children: a
2324
2324
  }) => p ? c : a, DropdownPlaceholder = React__default.memo(() => /* @__PURE__ */ jsxs(Fragment, { children: [
2325
- /* @__PURE__ */ jsx(cb2, { className: styles$k.skeletonTitle }),
2326
- /* @__PURE__ */ jsx(cb2, { className: styles$k.skeletonBody })
2325
+ /* @__PURE__ */ jsx(ab2, { className: styles$k.skeletonTitle }),
2326
+ /* @__PURE__ */ jsx(ab2, { className: styles$k.skeletonBody })
2327
2327
  ] }));
2328
2328
  DropdownPlaceholder.displayName = "DropdownPlaceholder";
2329
2329
  registerInputControl({
@@ -102889,25 +102889,25 @@ function requireBundle() {
102889
102889
  return d2(Xn(g));
102890
102890
  }
102891
102891
  function Bn(g, b, D) {
102892
- (D !== f && !i1(g[b], D) || D === f && !(b in g)) && Z1(g, b, D);
102892
+ (D !== f && !i1(g[b], D) || D === f && !(b in g)) && z1(g, b, D);
102893
102893
  }
102894
102894
  function o2(g, b, D) {
102895
102895
  var Y = g[b];
102896
- ln.call(g, b) && i1(Y, D) && (D !== f || b in g) || Z1(g, b, D);
102896
+ ln.call(g, b) && i1(Y, D) && (D !== f || b in g) || z1(g, b, D);
102897
102897
  }
102898
102898
  function It(g, b) {
102899
102899
  for (var D = g.length; D--; ) if (i1(g[D][0], b)) return D;
102900
102900
  return -1;
102901
102901
  }
102902
102902
  function ks(g, b, D, Y) {
102903
- return z1(g, function(ce, Ce, Ne) {
102903
+ return j1(g, function(ce, Ce, Ne) {
102904
102904
  b(Y, ce, D(ce), Ne);
102905
102905
  }), Y;
102906
102906
  }
102907
102907
  function Fa(g, b) {
102908
102908
  return g && r1(b, Fn(b), g);
102909
102909
  }
102910
- function Z1(g, b, D) {
102910
+ function z1(g, b, D) {
102911
102911
  b == "__proto__" && X0 ? X0(g, b, { configurable: !0, enumerable: !0, value: D, writable: !0 }) : g[b] = D;
102912
102912
  }
102913
102913
  function A0(g, b) {
@@ -103009,7 +103009,7 @@ function requireBundle() {
103009
103009
  g.apply(f, D);
103010
103010
  }, b);
103011
103011
  }
103012
- function Jr(g, b, D, Y) {
103012
+ function Xr(g, b, D, Y) {
103013
103013
  var ce = -1, Ce = ro, Ne = !0, Be = g.length, We = [], it = b.length;
103014
103014
  if (!Be) return We;
103015
103015
  D && (b = hn(b, nr(D))), Y ? (Ce = Qo, Ne = !1) : b.length >= 200 && (Ce = A1, Ne = !1, b = new so(b));
@@ -103087,10 +103087,10 @@ function requireBundle() {
103087
103087
  }
103088
103088
  return D.set(g, b), this.size = D.size, this;
103089
103089
  };
103090
- var z1 = tc(Fr), il = tc(Uc, !0);
103090
+ var j1 = tc(Fr), il = tc(Uc, !0);
103091
103091
  function zc(g, b) {
103092
103092
  var D = !0;
103093
- return z1(g, function(Y, ce, Ce) {
103093
+ return j1(g, function(Y, ce, Ce) {
103094
103094
  return D = !!b(Y, ce, Ce);
103095
103095
  }), D;
103096
103096
  }
@@ -103103,7 +103103,7 @@ function requireBundle() {
103103
103103
  }
103104
103104
  function Fo(g, b) {
103105
103105
  var D = [];
103106
- return z1(g, function(Y, ce, Ce) {
103106
+ return j1(g, function(Y, ce, Ce) {
103107
103107
  b(Y, ce, Ce) && D.push(Y);
103108
103108
  }), D;
103109
103109
  }
@@ -103294,7 +103294,7 @@ function requireBundle() {
103294
103294
  }
103295
103295
  function ll(g, b) {
103296
103296
  var D = -1, Y = tr(g) ? qt(g.length) : [];
103297
- return z1(g, function(ce, Ce, Ne) {
103297
+ return j1(g, function(ce, Ce, Ne) {
103298
103298
  Y[++D] = b(ce, Ce, Ne);
103299
103299
  }), Y;
103300
103300
  }
@@ -103434,7 +103434,7 @@ function requireBundle() {
103434
103434
  }
103435
103435
  function Zs(g, b) {
103436
103436
  var D;
103437
- return z1(g, function(Y, ce, Ce) {
103437
+ return j1(g, function(Y, ce, Ce) {
103438
103438
  return !(D = b(Y, ce, Ce));
103439
103439
  }), !!D;
103440
103440
  }
@@ -103480,7 +103480,7 @@ function requireBundle() {
103480
103480
  var b = g + "";
103481
103481
  return b == "0" && 1 / g == -1 / 0 ? "-0" : b;
103482
103482
  }
103483
- function j1(g, b, D) {
103483
+ function q1(g, b, D) {
103484
103484
  var Y = -1, ce = ro, Ce = g.length, Ne = !0, Be = [], We = Be;
103485
103485
  if (D) Ne = !1, ce = Qo;
103486
103486
  else if (Ce >= 200) {
@@ -103513,11 +103513,11 @@ function requireBundle() {
103513
103513
  return ce.func.apply(ce.thisArg, D1([Y], ce.args));
103514
103514
  }, D);
103515
103515
  }
103516
- function q1(g, b, D) {
103516
+ function U1(g, b, D) {
103517
103517
  var Y = g.length;
103518
- if (Y < 2) return Y ? j1(g[0]) : [];
103519
- for (var ce = -1, Ce = qt(Y); ++ce < Y; ) for (var Ne = g[ce], Be = -1; ++Be < Y; ) Be != ce && (Ce[ce] = Jr(Ce[ce] || Ne, g[Be], b, D));
103520
- return j1(or(Ce, 1), b, D);
103518
+ if (Y < 2) return Y ? q1(g[0]) : [];
103519
+ for (var ce = -1, Ce = qt(Y); ++ce < Y; ) for (var Ne = g[ce], Be = -1; ++Be < Y; ) Be != ce && (Ce[ce] = Xr(Ce[ce] || Ne, g[Be], b, D));
103520
+ return q1(or(Ce, 1), b, D);
103521
103521
  }
103522
103522
  function R0(g, b, D) {
103523
103523
  for (var Y = -1, ce = g.length, Ce = b.length, Ne = {}; ++Y < ce; ) {
@@ -103536,7 +103536,7 @@ function requireBundle() {
103536
103536
  return ma(g) ? g : u2(g, b) ? [g] : H0(tn(g));
103537
103537
  }
103538
103538
  var zs = Aa;
103539
- function U1(g, b, D) {
103539
+ function W1(g, b, D) {
103540
103540
  var Y = g.length;
103541
103541
  return D = D === f ? Y : D, !b && D >= Y ? g : _n(g, b, D);
103542
103542
  }
@@ -103586,7 +103586,7 @@ function requireBundle() {
103586
103586
  D || (D = {});
103587
103587
  for (var Ce = -1, Ne = b.length; ++Ce < Ne; ) {
103588
103588
  var Be = b[Ce], We = Y ? Y(D[Be], g[Be], Be, D, g) : f;
103589
- We === f && (We = g[Be]), ce ? Z1(D, Be, We) : o2(D, Be, We);
103589
+ We === f && (We = g[Be]), ce ? z1(D, Be, We) : o2(D, Be, We);
103590
103590
  }
103591
103591
  return D;
103592
103592
  }
@@ -103625,7 +103625,7 @@ function requireBundle() {
103625
103625
  }
103626
103626
  function wl(g) {
103627
103627
  return function(b) {
103628
- var D = Nr(b = tn(b)) ? Wr(b) : f, Y = D ? D[0] : b.charAt(0), ce = D ? U1(D, 1).join("") : b.slice(1);
103628
+ var D = Nr(b = tn(b)) ? Wr(b) : f, Y = D ? D[0] : b.charAt(0), ce = D ? W1(D, 1).join("") : b.slice(1);
103629
103629
  return Y[g]() + ce;
103630
103630
  };
103631
103631
  }
@@ -103748,7 +103748,7 @@ function requireBundle() {
103748
103748
  var D = (b = b === f ? " " : Sr(b)).length;
103749
103749
  if (D < 2) return D ? ei(b, g) : b;
103750
103750
  var Y = ei(b, e2(g / dr(b)));
103751
- return Nr(b) ? U1(Wr(Y), 0, g).join("") : Y.slice(0, g);
103751
+ return Nr(b) ? W1(Wr(Y), 0, g).join("") : Y.slice(0, g);
103752
103752
  }
103753
103753
  function yl(g) {
103754
103754
  return function(b, D, Y) {
@@ -103792,7 +103792,7 @@ function requireBundle() {
103792
103792
  })(b, g(b));
103793
103793
  };
103794
103794
  }
103795
- function W1(g, b, D, Y, ce, Ce, Ne, Be) {
103795
+ function K1(g, b, D, Y, ce, Ce, Ne, Be) {
103796
103796
  var We = 2 & b;
103797
103797
  if (!We && typeof g != "function") throw new hr(d);
103798
103798
  var it = Y ? Y.length : 0;
@@ -104072,13 +104072,13 @@ function requireBundle() {
104072
104072
  return b.__actions__ = Xn(g.__actions__), b.__index__ = g.__index__, b.__values__ = g.__values__, b;
104073
104073
  }
104074
104074
  var Ml = Aa(function(g, b) {
104075
- return Nn(g) ? Jr(g, or(b, 1, Nn, !0)) : [];
104075
+ return Nn(g) ? Xr(g, or(b, 1, Nn, !0)) : [];
104076
104076
  }), $l = Aa(function(g, b) {
104077
104077
  var D = Lr(b);
104078
- return Nn(D) && (D = f), Nn(g) ? Jr(g, or(b, 1, Nn, !0), ha(D, 2)) : [];
104078
+ return Nn(D) && (D = f), Nn(g) ? Xr(g, or(b, 1, Nn, !0), ha(D, 2)) : [];
104079
104079
  }), wi = Aa(function(g, b) {
104080
104080
  var D = Lr(b);
104081
- return Nn(D) && (D = f), Nn(g) ? Jr(g, or(b, 1, Nn, !0), f, D) : [];
104081
+ return Nn(D) && (D = f), Nn(g) ? Xr(g, or(b, 1, Nn, !0), f, D) : [];
104082
104082
  });
104083
104083
  function x0(g, b, D) {
104084
104084
  var Y = g == null ? 0 : g.length;
@@ -104126,13 +104126,13 @@ function requireBundle() {
104126
104126
  return g == null ? g : p0.call(g);
104127
104127
  }
104128
104128
  var Gs = Aa(function(g) {
104129
- return j1(or(g, 1, Nn, !0));
104129
+ return q1(or(g, 1, Nn, !0));
104130
104130
  }), Ll = Aa(function(g) {
104131
104131
  var b = Lr(g);
104132
- return Nn(b) && (b = f), j1(or(g, 1, Nn, !0), ha(b, 2));
104132
+ return Nn(b) && (b = f), q1(or(g, 1, Nn, !0), ha(b, 2));
104133
104133
  }), Ol = Aa(function(g) {
104134
104134
  var b = Lr(g);
104135
- return b = typeof b == "function" ? b : f, j1(or(g, 1, Nn, !0), f, b);
104135
+ return b = typeof b == "function" ? b : f, q1(or(g, 1, Nn, !0), f, b);
104136
104136
  });
104137
104137
  function fc(g) {
104138
104138
  if (!g || !g.length) return [];
@@ -104151,15 +104151,15 @@ function requireBundle() {
104151
104151
  });
104152
104152
  }
104153
104153
  var Bl = Aa(function(g, b) {
104154
- return Nn(g) ? Jr(g, b) : [];
104154
+ return Nn(g) ? Xr(g, b) : [];
104155
104155
  }), A2 = Aa(function(g) {
104156
- return q1(P1(g, Nn));
104156
+ return U1(P1(g, Nn));
104157
104157
  }), kl = Aa(function(g) {
104158
104158
  var b = Lr(g);
104159
- return Nn(b) && (b = f), q1(P1(g, Nn), ha(b, 2));
104159
+ return Nn(b) && (b = f), U1(P1(g, Nn), ha(b, 2));
104160
104160
  }), M0 = Aa(function(g) {
104161
104161
  var b = Lr(g);
104162
- return b = typeof b == "function" ? b : f, q1(P1(g, Nn), f, b);
104162
+ return b = typeof b == "function" ? b : f, U1(P1(g, Nn), f, b);
104163
104163
  }), Fl = Aa(fc), Zl = Aa(function(g) {
104164
104164
  var b = g.length, D = b > 1 ? g[b - 1] : f;
104165
104165
  return D = typeof D == "function" ? (g.pop(), D) : f, Ri(g, D);
@@ -104179,23 +104179,23 @@ function requireBundle() {
104179
104179
  return b && !Ce.length && Ce.push(f), Ce;
104180
104180
  })) : this.thru(ce);
104181
104181
  }), zl = Sn(function(g, b, D) {
104182
- ln.call(g, D) ? ++g[D] : Z1(g, D, 1);
104182
+ ln.call(g, D) ? ++g[D] : z1(g, D, 1);
104183
104183
  }), $0 = vl(x0), pc = vl(vi);
104184
104184
  function Vi(g, b) {
104185
- return (ma(g) ? ur : z1)(g, ha(b, 3));
104185
+ return (ma(g) ? ur : j1)(g, ha(b, 3));
104186
104186
  }
104187
104187
  function Ti(g, b) {
104188
104188
  return (ma(g) ? h1 : il)(g, ha(b, 3));
104189
104189
  }
104190
104190
  var jl = Sn(function(g, b, D) {
104191
- ln.call(g, D) ? g[D].push(b) : Z1(g, D, [b]);
104191
+ ln.call(g, D) ? g[D].push(b) : z1(g, D, [b]);
104192
104192
  }), ql = Aa(function(g, b, D) {
104193
104193
  var Y = -1, ce = typeof b == "function", Ce = tr(g) ? qt(g.length) : [];
104194
- return z1(g, function(Ne) {
104194
+ return j1(g, function(Ne) {
104195
104195
  Ce[++Y] = ce ? ja(b, Ne, D) : E0(Ne, b, D);
104196
104196
  }), Ce;
104197
104197
  }), Ul = Sn(function(g, b, D) {
104198
- Z1(g, D, b);
104198
+ z1(g, D, b);
104199
104199
  });
104200
104200
  function g2(g, b) {
104201
104201
  return (ma(g) ? hn : ll)(g, ha(b, 3));
@@ -104212,7 +104212,7 @@ function requireBundle() {
104212
104212
  return xn.Date.now();
104213
104213
  };
104214
104214
  function Kl(g, b, D) {
104215
- return b = D ? f : b, b = g && b == null ? g.length : b, W1(g, R, f, f, f, f, b);
104215
+ return b = D ? f : b, b = g && b == null ? g.length : b, K1(g, R, f, f, f, f, b);
104216
104216
  }
104217
104217
  function En(g, b) {
104218
104218
  var D;
@@ -104227,14 +104227,14 @@ function requireBundle() {
104227
104227
  var ce = m1(D, T0(w2));
104228
104228
  Y |= C;
104229
104229
  }
104230
- return W1(g, Y, b, D, ce);
104230
+ return K1(g, Y, b, D, ce);
104231
104231
  }), uc = Aa(function(g, b, D) {
104232
104232
  var Y = 3;
104233
104233
  if (D.length) {
104234
104234
  var ce = m1(D, T0(uc));
104235
104235
  Y |= C;
104236
104236
  }
104237
- return W1(b, Y, g, D, ce);
104237
+ return K1(b, Y, g, D, ce);
104238
104238
  });
104239
104239
  function dc(g, b, D) {
104240
104240
  var Y, ce, Ce, Ne, Be, We, it = 0, lt = !1, dt = !1, Kt = !0;
@@ -104315,12 +104315,12 @@ function requireBundle() {
104315
104315
  });
104316
104316
  }), xi = Aa(function(g, b) {
104317
104317
  var D = m1(b, T0(xi));
104318
- return W1(g, C, f, b, D);
104318
+ return K1(g, C, f, b, D);
104319
104319
  }), Yl = Aa(function(g, b) {
104320
104320
  var D = m1(b, T0(Yl));
104321
- return W1(g, 64, f, b, D);
104321
+ return K1(g, 64, f, b, D);
104322
104322
  }), Jl = R1(function(g, b) {
104323
- return W1(g, 256, f, f, f, b);
104323
+ return K1(g, 256, f, f, f, b);
104324
104324
  });
104325
104325
  function i1(g, b) {
104326
104326
  return g === b || g != g && b != b;
@@ -104550,7 +104550,7 @@ function requireBundle() {
104550
104550
  }
104551
104551
  }), vc = R1(function(g, b) {
104552
104552
  return ur(b, function(D) {
104553
- D = c1(D), Z1(g, D, w2(g[D], g));
104553
+ D = c1(D), z1(g, D, w2(g[D], g));
104554
104554
  }), g;
104555
104555
  });
104556
104556
  function Cc(g) {
@@ -104664,10 +104664,10 @@ function requireBundle() {
104664
104664
  var D = lo(g);
104665
104665
  return b == null ? D : Fa(D, b);
104666
104666
  }, _e.curry = function g(b, D, Y) {
104667
- var ce = W1(b, 8, f, f, f, f, f, D = Y ? f : D);
104667
+ var ce = K1(b, 8, f, f, f, f, f, D = Y ? f : D);
104668
104668
  return ce.placeholder = g.placeholder, ce;
104669
104669
  }, _e.curryRight = function g(b, D, Y) {
104670
- var ce = W1(b, 16, f, f, f, f, f, D = Y ? f : D);
104670
+ var ce = K1(b, 16, f, f, f, f, f, D = Y ? f : D);
104671
104671
  return ce.placeholder = g.placeholder, ce;
104672
104672
  }, _e.debounce = dc, _e.defaults = os, _e.defaultsDeep = cs, _e.defer = Ys, _e.delay = Gl, _e.difference = Ml, _e.differenceBy = $l, _e.differenceWith = wi, _e.drop = function(g, b, D) {
104673
104673
  var Y = g == null ? 0 : g.length;
@@ -104699,7 +104699,7 @@ function requireBundle() {
104699
104699
  }, _e.flattenDepth = function(g, b) {
104700
104700
  return g != null && g.length ? or(g, b = b === f ? 1 : Na(b)) : [];
104701
104701
  }, _e.flip = function(g) {
104702
- return W1(g, 512);
104702
+ return K1(g, 512);
104703
104703
  }, _e.flow = L0, _e.flowRight = af, _e.fromPairs = function(g) {
104704
104704
  for (var b = -1, D = g == null ? 0 : g.length, Y = {}; ++b < D; ) {
104705
104705
  var ce = g[b];
@@ -104715,12 +104715,12 @@ function requireBundle() {
104715
104715
  }, _e.intersection = Nl, _e.intersectionBy = Pl, _e.intersectionWith = Dl, _e.invert = Oi, _e.invertBy = Qs, _e.invokeMap = ql, _e.iteratee = O0, _e.keyBy = Ul, _e.keys = Fn, _e.keysIn = Vr, _e.map = g2, _e.mapKeys = function(g, b) {
104716
104716
  var D = {};
104717
104717
  return b = ha(b, 3), Fr(g, function(Y, ce, Ce) {
104718
- Z1(D, b(Y, ce, Ce), Y);
104718
+ z1(D, b(Y, ce, Ce), Y);
104719
104719
  }), D;
104720
104720
  }, _e.mapValues = function(g, b) {
104721
104721
  var D = {};
104722
104722
  return b = ha(b, 3), Fr(g, function(Y, ce, Ce) {
104723
- Z1(D, ce, b(Y, ce, Ce));
104723
+ z1(D, ce, b(Y, ce, Ce));
104724
104724
  }), D;
104725
104725
  }, _e.matches = function(g) {
104726
104726
  return sl(mr(g, 1));
@@ -104774,11 +104774,11 @@ function requireBundle() {
104774
104774
  }, _e.sortedUniqBy = function(g, b) {
104775
104775
  return g && g.length ? ri(g, ha(b, 2)) : [];
104776
104776
  }, _e.split = function(g, b, D) {
104777
- return D && typeof D != "number" && Rr(g, b, D) && (b = D = f), (D = D === f ? $ : D >>> 0) ? (g = tn(g)) && (typeof b == "string" || b != null && !y2(b)) && !(b = Sr(b)) && Nr(g) ? U1(Wr(g), 0, D) : g.split(b, D) : [];
104777
+ return D && typeof D != "number" && Rr(g, b, D) && (b = D = f), (D = D === f ? $ : D >>> 0) ? (g = tn(g)) && (typeof b == "string" || b != null && !y2(b)) && !(b = Sr(b)) && Nr(g) ? W1(Wr(g), 0, D) : g.split(b, D) : [];
104778
104778
  }, _e.spread = function(g, b) {
104779
104779
  if (typeof g != "function") throw new hr(d);
104780
104780
  return b = b == null ? 0 : Wn(Na(b), 0), Aa(function(D) {
104781
- var Y = D[b], ce = U1(D, 0, b);
104781
+ var Y = D[b], ce = W1(D, 0, b);
104782
104782
  return Y && D1(ce, Y), ja(g, this, ce);
104783
104783
  });
104784
104784
  }, _e.tail = function(g) {
@@ -104813,11 +104813,11 @@ function requireBundle() {
104813
104813
  }, _e.unary = function(g) {
104814
104814
  return Kl(g, 1);
104815
104815
  }, _e.union = Gs, _e.unionBy = Ll, _e.unionWith = Ol, _e.uniq = function(g) {
104816
- return g && g.length ? j1(g) : [];
104816
+ return g && g.length ? q1(g) : [];
104817
104817
  }, _e.uniqBy = function(g, b) {
104818
- return g && g.length ? j1(g, ha(b, 2)) : [];
104818
+ return g && g.length ? q1(g, ha(b, 2)) : [];
104819
104819
  }, _e.uniqWith = function(g, b) {
104820
- return b = typeof b == "function" ? b : f, g && g.length ? j1(g, f, b) : [];
104820
+ return b = typeof b == "function" ? b : f, g && g.length ? q1(g, f, b) : [];
104821
104821
  }, _e.unset = function(g, b) {
104822
104822
  return g == null || ec(g, b);
104823
104823
  }, _e.unzip = fc, _e.unzipWith = Ri, _e.update = function(g, b, D) {
@@ -104984,7 +104984,7 @@ function requireBundle() {
104984
104984
  return v0(g, b);
104985
104985
  }, _e.reduce = function(g, b, D) {
104986
104986
  var Y = ma(g) ? F0 : q2, ce = arguments.length < 3;
104987
- return Y(g, ha(b, 4), D, ce, z1);
104987
+ return Y(g, ha(b, 4), D, ce, j1);
104988
104988
  }, _e.reduceRight = function(g, b, D) {
104989
104989
  var Y = ma(g) ? Pc : q2, ce = arguments.length < 3;
104990
104990
  return Y(g, ha(b, 4), D, ce, il);
@@ -105087,17 +105087,17 @@ function print() { __p += __j.call(arguments, '') }
105087
105087
  if ((g = tn(g)) && (D || b === f)) return Xo(g);
105088
105088
  if (!g || !(b = Sr(b))) return g;
105089
105089
  var Y = Wr(g), ce = Wr(b);
105090
- return U1(Y, Rn(Y, ce), e0(Y, ce) + 1).join("");
105090
+ return W1(Y, Rn(Y, ce), e0(Y, ce) + 1).join("");
105091
105091
  }, _e.trimEnd = function(g, b, D) {
105092
105092
  if ((g = tn(g)) && (D || b === f)) return g.slice(0, W2(g) + 1);
105093
105093
  if (!g || !(b = Sr(b))) return g;
105094
105094
  var Y = Wr(g);
105095
- return U1(Y, 0, e0(Y, Wr(b)) + 1).join("");
105095
+ return W1(Y, 0, e0(Y, Wr(b)) + 1).join("");
105096
105096
  }, _e.trimStart = function(g, b, D) {
105097
105097
  if ((g = tn(g)) && (D || b === f)) return g.replace(vt, "");
105098
105098
  if (!g || !(b = Sr(b))) return g;
105099
105099
  var Y = Wr(g);
105100
- return U1(Y, Rn(Y, Wr(b))).join("");
105100
+ return W1(Y, Rn(Y, Wr(b))).join("");
105101
105101
  }, _e.truncate = function(g, b) {
105102
105102
  var D = 30, Y = "...";
105103
105103
  if (Pn(b)) {
@@ -105112,7 +105112,7 @@ function print() { __p += __j.call(arguments, '') }
105112
105112
  if (D >= Ce) return g;
105113
105113
  var Be = D - dr(Y);
105114
105114
  if (Be < 1) return Y;
105115
- var We = Ne ? U1(Ne, 0, Be).join("") : g.slice(0, Be);
105115
+ var We = Ne ? W1(Ne, 0, Be).join("") : g.slice(0, Be);
105116
105116
  if (ce === f) return We + Y;
105117
105117
  if (Ne && (Be += We.length - Be), y2(ce)) {
105118
105118
  if (g.slice(Be).search(ce)) {
@@ -132443,7 +132443,7 @@ function print() { __p += __j.call(arguments, '') }
132443
132443
  }
132444
132444
  }
132445
132445
  var It = __webpack_require__(3832), ks = __webpack_require__(7309), Fa = __webpack_require__.n(ks);
132446
- class Z1 {
132446
+ class z1 {
132447
132447
  getInitialObject(u, A, m, y) {
132448
132448
  return n2(u, A, m, y);
132449
132449
  }
@@ -132510,9 +132510,9 @@ function print() { __p += __j.call(arguments, '') }
132510
132510
  }
132511
132511
  }
132512
132512
  const cl = bn({ inactive: !1, formFieldPath: void 0, obs: void 0, obsList: new Cn() });
132513
- class Jr extends cl {
132513
+ class Xr extends cl {
132514
132514
  cloneForAddMore(u) {
132515
- return new Jr({ obs: this.get("obs").set("formFieldPath", u), formNamespace: this.get("formNamespace"), obsList: new Cn(), formFieldPath: u });
132515
+ return new Xr({ obs: this.get("obs").set("formFieldPath", u), formNamespace: this.get("formNamespace"), obsList: new Cn(), formFieldPath: u });
132516
132516
  }
132517
132517
  void() {
132518
132518
  const u = this.obsList.map((A) => A.void());
@@ -132537,7 +132537,7 @@ function print() { __p += __j.call(arguments, '') }
132537
132537
  }), Gr()(A);
132538
132538
  }
132539
132539
  }
132540
- class z1 {
132540
+ class j1 {
132541
132541
  getInitialObject(u, A, m, y, M, P) {
132542
132542
  return this._getInitialObjectInternal(u, A, m, M, P);
132543
132543
  }
@@ -132547,11 +132547,11 @@ function print() { __p += __j.call(arguments, '') }
132547
132547
  const j = (0, Ha.aD)(u, A, m.id, M), G = this.segregateObsByAddMoreSections(j, P);
132548
132548
  if (!g1().isEmpty(G)) return G.map((te) => {
132549
132549
  const fe = te[0].formFieldPath.substring(0, j.formFieldPath.length + 2);
132550
- return new Jr({ obsList: te, formFieldPath: fe });
132550
+ return new Xr({ obsList: te, formFieldPath: fe });
132551
132551
  });
132552
132552
  }
132553
132553
  const { formFieldPath: q } = (0, Ha.C)(u, A, m.id, M);
132554
- return [new Jr({ obsList: P, formFieldPath: q })];
132554
+ return [new Xr({ obsList: P, formFieldPath: q })];
132555
132555
  }
132556
132556
  segregateObsByAddMoreSections(u, A) {
132557
132557
  const m = A.filter((M) => M.formFieldPath.startsWith(u.formFieldPath)), y = g1().groupBy(m, (M) => M.formFieldPath.slice(u.formFieldPath.length).split("/")[0]);
@@ -132577,8 +132577,8 @@ function print() { __p += __j.call(arguments, '') }
132577
132577
  return Object.keys(fe).sort().forEach((He) => {
132578
132578
  let xe = new Cn(), Le = !1;
132579
132579
  for (const Ye of fe[He]) xe = xe.concat(n2(u, A, m, [Ye], P)), Le = Ye.inactive;
132580
- j = j.set("formFieldPath", He), we.push(new Jr({ obsList: xe, formFieldPath: He, obs: j, inactive: Le }));
132581
- }), we.length === 0 ? [new Jr({ obsList: new Cn(), formFieldPath: q.formFieldPath, obs: j })] : we;
132580
+ j = j.set("formFieldPath", He), we.push(new Xr({ obsList: xe, formFieldPath: He, obs: j, inactive: Le }));
132581
+ }), we.length === 0 ? [new Xr({ obsList: new Cn(), formFieldPath: q.formFieldPath, obs: j })] : we;
132582
132582
  }
132583
132583
  getValue(u) {
132584
132584
  let A;
@@ -132618,11 +132618,11 @@ function print() { __p += __j.call(arguments, '') }
132618
132618
  const j = (0, Ha.aD)(u, A, m.id, M), G = this.segregateObsByAddMoreSections(j, P);
132619
132619
  if (!g1().isEmpty(G)) return G.map((te) => {
132620
132620
  const fe = te[0].formFieldPath.substring(0, j.formFieldPath.length + 2);
132621
- return new Jr({ obsList: te, formFieldPath: fe });
132621
+ return new Xr({ obsList: te, formFieldPath: fe });
132622
132622
  });
132623
132623
  }
132624
132624
  const { formFieldPath: q } = (0, Ha.C)(u, A, m.id, M);
132625
- return [new Jr({ obsList: P, formFieldPath: q })];
132625
+ return [new Xr({ obsList: P, formFieldPath: q })];
132626
132626
  }
132627
132627
  segregateObsByAddMoreSections(u, A) {
132628
132628
  const m = A.filter((M) => M.formFieldPath.startsWith(`${u.formFieldPath}-`)), y = g1().groupBy(m, (M) => M.formFieldPath.slice(u.formFieldPath.length).split("/")[0]);
@@ -132641,7 +132641,7 @@ function print() { __p += __j.call(arguments, '') }
132641
132641
  }
132642
132642
  const qc = new class {
132643
132643
  getMapper(_) {
132644
- return _.type === "obsControl" && _.properties.multiSelect ? new or() : _.type === "obsGroupControl" && _.properties.abnormal ? new Z1() : _.type === "obsGroupControl" ? new Zc() : _.type === "section" ? new z1() : _.type === "table" ? new jc() : new o2();
132644
+ return _.type === "obsControl" && _.properties.multiSelect ? new or() : _.type === "obsGroupControl" && _.properties.abnormal ? new z1() : _.type === "obsGroupControl" ? new Zc() : _.type === "section" ? new j1() : _.type === "table" ? new jc() : new o2();
132645
132645
  }
132646
132646
  }(), Fr = new class {
132647
132647
  constructor() {
@@ -132964,11 +132964,11 @@ function print() { __p += __j.call(arguments, '') }
132964
132964
  return yo.push("select"), !0;
132965
132965
  }, R3 = function(De, Me) {
132966
132966
  return yo.pop(), Aa({ id: De, value: Me }, Ro());
132967
- }, b3 = function(De) {
132967
+ }, V3 = function(De) {
132968
132968
  return yo.push("plural"), !0;
132969
- }, V3 = function(De, Me) {
132969
+ }, T3 = function(De, Me) {
132970
132970
  return yo.pop(), Aa({ id: De, value: Me }, Ro());
132971
- }, T3 = $1("whitespace"), x3 = /^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, M3 = k0([[" ", "\r"], " ", "…", " ", " ", [" ", " "], "\u2028", "\u2029", " ", " ", " "], !1, !1), $3 = $1("syntax pattern"), I3 = /^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/, N3 = k0([["!", "/"], [":", "@"], ["[", "^"], "`", ["{", "~"], ["¡", "§"], "©", "«", "¬", "®", "°", "±", "¶", "»", "¿", "×", "÷", ["‐", "‧"], ["‰", "‾"], ["⁁", "⁓"], ["⁕", "⁞"], ["←", "⑟"], ["─", "❵"], ["➔", "⯿"], ["⸀", "⹿"], ["、", "〃"], ["〈", "〠"], "〰", "﴾", "﴿", "﹅", "﹆"], !1, !1), P3 = $1("optional whitespace"), D3 = $1("number"), S3 = "-", L3 = sr("-", !1), O3 = function(De, Me) {
132971
+ }, H3 = $1("whitespace"), x3 = /^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, M3 = k0([[" ", "\r"], " ", "…", " ", " ", [" ", " "], "\u2028", "\u2029", " ", " ", " "], !1, !1), $3 = $1("syntax pattern"), I3 = /^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/, N3 = k0([["!", "/"], [":", "@"], ["[", "^"], "`", ["{", "~"], ["¡", "§"], "©", "«", "¬", "®", "°", "±", "¶", "»", "¿", "×", "÷", ["‐", "‧"], ["‰", "‾"], ["⁁", "⁓"], ["⁕", "⁞"], ["←", "⑟"], ["─", "❵"], ["➔", "⯿"], ["⸀", "⹿"], ["、", "〃"], ["〈", "〠"], "〰", "﴾", "﴿", "﹅", "﹆"], !1, !1), P3 = $1("optional whitespace"), D3 = $1("number"), S3 = "-", L3 = sr("-", !1), O3 = function(De, Me) {
132972
132972
  return Me ? De ? -Me : Me : 0;
132973
132973
  }, B3 = $1("double apostrophes"), $c = "''", Wf = sr("''", !1), k3 = function() {
132974
132974
  return "'";
@@ -133156,11 +133156,11 @@ function print() { __p += __j.call(arguments, '') }
133156
133156
  return De = ye, rn() !== m ? (Me = (function() {
133157
133157
  var $a, Ka, _a, qa;
133158
133158
  return $a = ye, Ka = ye, _.charCodeAt(ye) === 61 ? (_a = v3, ye++) : (_a = m, _t === 0 && Bt(C3)), _a !== m && (qa = Cu()) !== m ? Ka = _a = [_a, qa] : (ye = Ka, Ka = m), ($a = Ka !== m ? _.substring($a, ye) : Ka) === m && ($a = Qf()), $a;
133159
- })(), Me !== m && rn() !== m ? (_.charCodeAt(ye) === 123 ? (ze = we, ye++) : (ze = m, _t === 0 && Bt(He)), ze !== m ? (un = ye, (b3() ? void 0 : m) !== m && (Ct = Yf()) !== m ? (_.charCodeAt(ye) === 125 ? (St = xe, ye++) : (St = m, _t === 0 && Bt(Le)), St !== m ? (un = De, De = V3(Me, Ct)) : (ye = De, De = m)) : (ye = De, De = m)) : (ye = De, De = m)) : (ye = De, De = m)) : (ye = De, De = m), De;
133159
+ })(), Me !== m && rn() !== m ? (_.charCodeAt(ye) === 123 ? (ze = we, ye++) : (ze = m, _t === 0 && Bt(He)), ze !== m ? (un = ye, (V3() ? void 0 : m) !== m && (Ct = Yf()) !== m ? (_.charCodeAt(ye) === 125 ? (St = xe, ye++) : (St = m, _t === 0 && Bt(Le)), St !== m ? (un = De, De = T3(Me, Ct)) : (ye = De, De = m)) : (ye = De, De = m)) : (ye = De, De = m)) : (ye = De, De = m)) : (ye = De, De = m), De;
133160
133160
  }
133161
133161
  function Ic() {
133162
133162
  var De;
133163
- return _t++, x3.test(_.charAt(ye)) ? (De = _.charAt(ye), ye++) : (De = m, _t === 0 && Bt(M3)), _t--, De === m && _t === 0 && Bt(T3), De;
133163
+ return _t++, x3.test(_.charAt(ye)) ? (De = _.charAt(ye), ye++) : (De = m, _t === 0 && Bt(M3)), _t--, De === m && _t === 0 && Bt(H3), De;
133164
133164
  }
133165
133165
  function vu() {
133166
133166
  var De;
@@ -133376,7 +133376,7 @@ function print() { __p += __j.call(arguments, '') }
133376
133376
  return typeof y != "string" ? (u.minimumSignificantDigits = m.length, u.maximumSignificantDigits = m.length) : y === "+" ? u.minimumSignificantDigits = m.length : m[0] === "#" ? u.maximumSignificantDigits = m.length : (u.minimumSignificantDigits = m.length, u.maximumSignificantDigits = m.length + (typeof y == "string" ? y.length : 0)), "";
133377
133377
  }), u;
133378
133378
  }
133379
- function j1(_) {
133379
+ function q1(_) {
133380
133380
  switch (_) {
133381
133381
  case "sign-auto":
133382
133382
  return { signDisplay: "auto" };
@@ -133395,7 +133395,7 @@ function print() { __p += __j.call(arguments, '') }
133395
133395
  }
133396
133396
  }
133397
133397
  function ec(_) {
133398
- return j1(_) || {};
133398
+ return q1(_) || {};
133399
133399
  }
133400
133400
  function hl(_) {
133401
133401
  for (var u = {}, A = 0, m = _; A < m.length; A++) {
@@ -133455,7 +133455,7 @@ function print() { __p += __j.call(arguments, '') }
133455
133455
  }), y.options.length && (u = _n(_n({}, u), Sr(y.options[0])));
133456
133456
  } else if (oi.test(y.stem)) u = _n(_n({}, u), Sr(y.stem));
133457
133457
  else {
133458
- var M = j1(y.stem);
133458
+ var M = q1(y.stem);
133459
133459
  M && (u = _n(_n({}, u), M));
133460
133460
  }
133461
133461
  }
@@ -133475,7 +133475,7 @@ function print() { __p += __j.call(arguments, '') }
133475
133475
  }
133476
133476
  _(u, A), u.prototype = A === null ? Object.create(A) : (m.prototype = A.prototype, new m());
133477
133477
  };
133478
- })(), q1 = (function(_) {
133478
+ })(), U1 = (function(_) {
133479
133479
  function u(A, m) {
133480
133480
  var y = _.call(this, A) || this;
133481
133481
  return y.variableId = m, y;
@@ -133490,7 +133490,7 @@ function print() { __p += __j.call(arguments, '') }
133490
133490
  else if (pl(fe)) typeof M == "number" && j.push({ type: 0, value: A.getNumberFormat(u).format(M) });
133491
133491
  else {
133492
133492
  var we = fe.value;
133493
- if (!y || !(we in y)) throw new q1('The intl string context variable "' + we + '" was not provided to the string "' + P + '"');
133493
+ if (!y || !(we in y)) throw new U1('The intl string context variable "' + we + '" was not provided to the string "' + P + '"');
133494
133494
  var He = y[we];
133495
133495
  if (ll(fe)) He && typeof He != "string" && typeof He != "number" || (He = typeof He == "string" || typeof He == "number" ? String(He) : ""), j.push({ type: 1, value: He });
133496
133496
  else if (fl(fe)) {
@@ -133504,7 +133504,7 @@ function print() { __p += __j.call(arguments, '') }
133504
133504
  } else if (Qc(fe)) {
133505
133505
  var Le;
133506
133506
  if (!(Le = fe.options["=" + He])) {
133507
- if (!Intl.PluralRules) throw new q1(`Intl.PluralRules is not available in this environment.
133507
+ if (!Intl.PluralRules) throw new U1(`Intl.PluralRules is not available in this environment.
133508
133508
  Try polyfilling it using "@formatjs/intl-pluralrules"
133509
133509
  `);
133510
133510
  var Ye = A.getPluralRules(u, { type: fe.pluralType }).select(He - (fe.offset || 0));
@@ -133528,13 +133528,13 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
133528
133528
  return A.length && typeof m == "string" && typeof A[A.length - 1] == "string" ? A[A.length - 1] += m : A.push(m), A;
133529
133529
  }, []);
133530
133530
  }
133531
- var zs = /(<([0-9a-zA-Z-_]*?)>(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/, U1 = Date.now() + "@@", Al = ["area", "base", "br", "col", "embed", "hr", "img", "input", "link", "meta", "param", "source", "track", "wbr"];
133531
+ var zs = /(<([0-9a-zA-Z-_]*?)>(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/, W1 = Date.now() + "@@", Al = ["area", "base", "br", "col", "embed", "hr", "img", "input", "link", "meta", "param", "source", "track", "wbr"];
133532
133532
  function li(_, u, A) {
133533
133533
  var m = _.tagName, y = _.outerHTML, M = _.textContent, P = _.childNodes;
133534
133534
  if (!m) return v1(M || "", u);
133535
133535
  m = m.toLowerCase();
133536
133536
  var q = ~Al.indexOf(m), j = A[m];
133537
- if (j && q) throw new q1(m + " is a self-closing tag and can not be used, please use another tag name.");
133537
+ if (j && q) throw new U1(m + " is a self-closing tag and can not be used, please use another tag name.");
133538
133538
  if (!P.length) return [y];
133539
133539
  var G = Array.prototype.slice.call(P).reduce(function(te, fe) {
133540
133540
  return te.concat(li(fe, u, A));
@@ -133572,11 +133572,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
133572
133572
  return Xe[Ut] = nt.value, ct + "@@" + Ut + "@@";
133573
133573
  }, "");
133574
133574
  if (!zs.test(et)) return v1(et, Xe);
133575
- if (!xe) throw new q1("Message has placeholders but no values was given");
133576
- if (typeof DOMParser > "u") throw new q1("Cannot format XML message without DOMParser");
133575
+ if (!xe) throw new U1("Message has placeholders but no values was given");
133576
+ if (typeof DOMParser > "u") throw new U1("Cannot format XML message without DOMParser");
133577
133577
  y0 || (y0 = new DOMParser());
133578
- var wt = y0.parseFromString('<formatted-message id="' + U1 + '">' + et + "</formatted-message>", "text/html").getElementById(U1);
133579
- if (!wt) throw new q1("Malformed HTML message " + et);
133578
+ var wt = y0.parseFromString('<formatted-message id="' + W1 + '">' + et + "</formatted-message>", "text/html").getElementById(W1);
133579
+ if (!wt) throw new U1("Malformed HTML message " + et);
133580
133580
  var Et = Object.keys(xe).filter(function(ct) {
133581
133581
  return !!wt.getElementsByTagName(ct).length;
133582
133582
  });
@@ -133584,7 +133584,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
133584
133584
  var Nt = Et.filter(function(ct) {
133585
133585
  return ct !== ct.toLowerCase();
133586
133586
  });
133587
- if (Nt.length) throw new q1("HTML tag must be lowercased but the following tags are not: " + Nt.join(", "));
133587
+ if (Nt.length) throw new U1("HTML tag must be lowercased but the following tags are not: " + Nt.join(", "));
133588
133588
  return Array.prototype.slice.call(wt.childNodes).reduce(function(ct, nt) {
133589
133589
  return ct.concat(li(nt, Xe, xe));
133590
133590
  }, []);
@@ -133696,7 +133696,7 @@ Try polyfilling it using "@formatjs/intl-relativetimeformat"
133696
133696
  }
133697
133697
  return String(y);
133698
133698
  }
133699
- function W1(_, u, A, m = {}) {
133699
+ function K1(_, u, A, m = {}) {
133700
133700
  const y = typeof A == "string" ? new Date(A || 0) : A;
133701
133701
  try {
133702
133702
  return V0(_, "date", u, m).formatToParts(y);
@@ -133815,7 +133815,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
133815
133815
  const { locale: y, defaultLocale: M, onError: P } = m;
133816
133816
  typeof P == "function" && P(Sn(`Missing locale data for locale: "${y}". Using default locale: "${M}" as fallback.`)), m.locale = m.defaultLocale || "en";
133817
133817
  }
133818
- return Object.assign(Object.assign({}, m), { formatters: A, formatNumber: pi.bind(null, m, A.getNumberFormat), formatNumberToParts: nc.bind(null, m, A.getNumberFormat), formatRelativeTime: rc.bind(null, m, A.getRelativeTimeFormat), formatDate: js.bind(null, m, A.getDateTimeFormat), formatDateToParts: W1.bind(null, m, A.getDateTimeFormat), formatTime: bl.bind(null, m, A.getDateTimeFormat), formatTimeToParts: Vl.bind(null, m, A.getDateTimeFormat), formatPlural: qs.bind(null, m, A.getPluralRules), formatMessage: cc.bind(null, m, A), formatHTMLMessage: ui.bind(null, m, A), formatList: di.bind(null, m, A.getListFormat), formatDisplayName: hi.bind(null, m, A.getDisplayNames) });
133818
+ return Object.assign(Object.assign({}, m), { formatters: A, formatNumber: pi.bind(null, m, A.getNumberFormat), formatNumberToParts: nc.bind(null, m, A.getNumberFormat), formatRelativeTime: rc.bind(null, m, A.getRelativeTimeFormat), formatDate: js.bind(null, m, A.getDateTimeFormat), formatDateToParts: K1.bind(null, m, A.getDateTimeFormat), formatTime: bl.bind(null, m, A.getDateTimeFormat), formatTimeToParts: Vl.bind(null, m, A.getDateTimeFormat), formatPlural: qs.bind(null, m, A.getPluralRules), formatMessage: cc.bind(null, m, A), formatHTMLMessage: ui.bind(null, m, A), formatList: di.bind(null, m, A.getListFormat), formatDisplayName: hi.bind(null, m, A.getDisplayNames) });
133819
133819
  }
133820
133820
  class b1 extends N.PureComponent {
133821
133821
  constructor() {
@@ -138949,7 +138949,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
138949
138949
  ta.A.registerDesignerComponent("dateTime", i3);
138950
138950
  class Ff extends N.Component {
138951
138951
  constructor(u) {
138952
- super(u), this.metadata = u.metadata, this.mapper = new z1(), this.storeGridRef = this.storeGridRef.bind(this), this.storeLabelRef = this.storeLabelRef.bind(this), this.deleteControl = this.deleteControl.bind(this);
138952
+ super(u), this.metadata = u.metadata, this.mapper = new j1(), this.storeGridRef = this.storeGridRef.bind(this), this.storeLabelRef = this.storeLabelRef.bind(this), this.deleteControl = this.deleteControl.bind(this);
138953
138953
  }
138954
138954
  getJsonDefinition() {
138955
138955
  if (!this.gridRef) return;
@@ -139662,9 +139662,9 @@ const useAllergenSearch = (p = "") => {
139662
139662
  hasBeenValidated: $
139663
139663
  } = p, k = !!($ && x.severity), I = !!($ && x.reactions), [S, z] = useState(!!H);
139664
139664
  return /* @__PURE__ */ jsxs(Fragment, { children: [
139665
- /* @__PURE__ */ jsxs(pb2, { "data-testid": `selected-allergy-item-grid-${h}`, children: [
139665
+ /* @__PURE__ */ jsxs(hb2, { "data-testid": `selected-allergy-item-grid-${h}`, children: [
139666
139666
  /* @__PURE__ */ jsxs(
139667
- db2,
139667
+ ub2,
139668
139668
  {
139669
139669
  sm: 4,
139670
139670
  md: 5,
@@ -139679,7 +139679,7 @@ const useAllergenSearch = (p = "") => {
139679
139679
  "]"
139680
139680
  ] }),
139681
139681
  !S && /* @__PURE__ */ jsx(
139682
- ub2,
139682
+ mb2,
139683
139683
  {
139684
139684
  href: "#",
139685
139685
  "data-testid": `allergy-add-note-link-${h}`,
@@ -139694,7 +139694,7 @@ const useAllergenSearch = (p = "") => {
139694
139694
  }
139695
139695
  ),
139696
139696
  /* @__PURE__ */ jsx(
139697
- db2,
139697
+ ub2,
139698
139698
  {
139699
139699
  sm: 4,
139700
139700
  md: 3,
@@ -139702,7 +139702,7 @@ const useAllergenSearch = (p = "") => {
139702
139702
  xlg: 3,
139703
139703
  className: styles$j.selectedAllergySeverity,
139704
139704
  children: /* @__PURE__ */ jsx(
139705
- ib2,
139705
+ sb2,
139706
139706
  {
139707
139707
  id: `allergy-severity-dropdown-${h}`,
139708
139708
  "data-testid": `allergy-severity-dropdown-${h}`,
@@ -139724,7 +139724,7 @@ const useAllergenSearch = (p = "") => {
139724
139724
  }
139725
139725
  ),
139726
139726
  /* @__PURE__ */ jsx(
139727
- db2,
139727
+ ub2,
139728
139728
  {
139729
139729
  sm: 4,
139730
139730
  md: 4,
@@ -139732,7 +139732,7 @@ const useAllergenSearch = (p = "") => {
139732
139732
  xlg: 4,
139733
139733
  className: styles$j.selectedAllergyReactions,
139734
139734
  children: /* @__PURE__ */ jsx(
139735
- Hb2,
139735
+ Cb2,
139736
139736
  {
139737
139737
  id: `allergy-reactions-multiselect-${h}`,
139738
139738
  "data-testid": `allergy-reactions-multiselect-${h}`,
@@ -139755,7 +139755,7 @@ const useAllergenSearch = (p = "") => {
139755
139755
  )
139756
139756
  ] }),
139757
139757
  S && /* @__PURE__ */ jsx(
139758
- bz2,
139758
+ Nz2,
139759
139759
  {
139760
139760
  id: `allergy-note-${h}`,
139761
139761
  "data-testid": `allergy-note-${h}`,
@@ -139781,10 +139781,10 @@ const allergiesFormTile = "AllergiesForm-module_allergiesFormTile__1UsbU", aller
139781
139781
  selectedAllergyItem,
139782
139782
  duplicateNotification: duplicateNotification$2
139783
139783
  }, allergiesQueryKeys = (p) => ["allergies", p], AllergiesForm = React__default.memo(({ encounterSessionStartContext: p }) => {
139784
- const c = !!p?.preloadedAllergies, { t: a } = useTranslation(), s = g0(), { addNotification: f } = K1(), d = H3(
139785
- w01.ALLERGIES
139786
- ), h = H3(
139787
- w01.EDIT_ALLERGIES
139784
+ const c = !!p?.preloadedAllergies, { t: a } = useTranslation(), s = g0(), { addNotification: f } = Z1(), d = b3(
139785
+ L01.ALLERGIES
139786
+ ), h = b3(
139787
+ L01.EDIT_ALLERGIES
139788
139788
  ), [E, C] = useState(""), [R, T] = useState(null), [H, x] = useState(!1), [$, k] = useState(
139789
139789
  null
139790
139790
  ), {
@@ -139899,7 +139899,7 @@ const allergiesFormTile = "AllergiesForm-module_allergiesFormTile__1UsbU", aller
139899
139899
  a
139900
139900
  ]);
139901
139901
  return !d && !(c && h) ? null : /* @__PURE__ */ jsxs(
139902
- Ry2,
139902
+ Oy2,
139903
139903
  {
139904
139904
  className: styles$i.allergiesFormTile,
139905
139905
  "data-testid": "allergies-form-tile",
@@ -139913,7 +139913,7 @@ const allergiesFormTile = "AllergiesForm-module_allergiesFormTile__1UsbU", aller
139913
139913
  }
139914
139914
  ),
139915
139915
  !c && /* @__PURE__ */ jsx(
139916
- Gy2,
139916
+ Ky2,
139917
139917
  {
139918
139918
  id: "allergies-search",
139919
139919
  "data-testid": "allergies-search-combobox",
@@ -139934,7 +139934,7 @@ const allergiesFormTile = "AllergiesForm-module_allergiesFormTile__1UsbU", aller
139934
139934
  }
139935
139935
  ),
139936
139936
  H && /* @__PURE__ */ jsx(
139937
- Zb2,
139937
+ Bb2,
139938
139938
  {
139939
139939
  kind: "error",
139940
139940
  lowContrast: !0,
@@ -139945,12 +139945,12 @@ const allergiesFormTile = "AllergiesForm-module_allergiesFormTile__1UsbU", aller
139945
139945
  }
139946
139946
  ),
139947
139947
  I && I.length > 0 && /* @__PURE__ */ jsx(
139948
- xb2,
139948
+ _b2,
139949
139949
  {
139950
139950
  title: a("ALLERGIES_ADDED_ALLERGIES"),
139951
139951
  className: styles$i.allergiesBox,
139952
139952
  children: I.map((oe) => /* @__PURE__ */ jsx(
139953
- Lb2,
139953
+ xb2,
139954
139954
  {
139955
139955
  className: styles$i.selectedAllergyItem,
139956
139956
  onClose: () => z(oe.id),
@@ -140031,9 +140031,9 @@ const useInvestigationsSearch = (p = "") => {
140031
140031
  c(T ? "stat" : "routine");
140032
140032
  };
140033
140033
  return /* @__PURE__ */ jsxs(Fragment, { children: [
140034
- /* @__PURE__ */ jsxs(pb2, { "data-testid": `selected-investigation-item-grid-${s}`, children: [
140034
+ /* @__PURE__ */ jsxs(hb2, { "data-testid": `selected-investigation-item-grid-${s}`, children: [
140035
140035
  /* @__PURE__ */ jsxs(
140036
- db2,
140036
+ ub2,
140037
140037
  {
140038
140038
  sm: 4,
140039
140039
  md: 7,
@@ -140043,7 +140043,7 @@ const useInvestigationsSearch = (p = "") => {
140043
140043
  children: [
140044
140044
  /* @__PURE__ */ jsx("span", { "data-testid": `investigation-display-name-${s}`, children: f }),
140045
140045
  !E && /* @__PURE__ */ jsx(
140046
- ub2,
140046
+ mb2,
140047
140047
  {
140048
140048
  href: "#",
140049
140049
  "data-testid": `investigation-add-note-link-${s}`,
@@ -140058,7 +140058,7 @@ const useInvestigationsSearch = (p = "") => {
140058
140058
  }
140059
140059
  ),
140060
140060
  /* @__PURE__ */ jsx(
140061
- db2,
140061
+ ub2,
140062
140062
  {
140063
140063
  sm: 4,
140064
140064
  md: 2,
@@ -140066,7 +140066,7 @@ const useInvestigationsSearch = (p = "") => {
140066
140066
  xlg: 4,
140067
140067
  className: styles$h.selectedInvestigationUrgentPriority,
140068
140068
  children: /* @__PURE__ */ jsx(
140069
- sb2,
140069
+ fb2,
140070
140070
  {
140071
140071
  id: `investigation-priority-checkbox-${s}`,
140072
140072
  "data-testid": `investigation-priority-checkbox-${s}`,
@@ -140078,7 +140078,7 @@ const useInvestigationsSearch = (p = "") => {
140078
140078
  )
140079
140079
  ] }),
140080
140080
  E && /* @__PURE__ */ jsx(
140081
- bz2,
140081
+ Nz2,
140082
140082
  {
140083
140083
  id: `investigation-note-${s}`,
140084
140084
  "data-testid": `investigation-note-${s}`,
@@ -140106,8 +140106,8 @@ const investigationsFormTile = "InvestigationsForm-module_investigationsFormTile
140106
140106
  selectedInvestigationItem,
140107
140107
  duplicateNotification: duplicateNotification$1
140108
140108
  }, InvestigationsForm = React__default.memo(() => {
140109
- const { t: p } = useTranslation(), c = g0(), { addNotification: a } = K1(), s = H3(
140110
- w01.INVESTIGATIONS
140109
+ const { t: p } = useTranslation(), c = g0(), { addNotification: a } = Z1(), s = b3(
140110
+ L01.INVESTIGATIONS
140111
140111
  ), [f, d] = useState(""), [h, E] = useState(null), [C, R] = useState(!1), { activeEncounter: T, matchReasons: H } = Y_(), $ = H.includes("MATCHED") ? T?.id : void 0, {
140112
140112
  data: k,
140113
140113
  refetch: I,
@@ -140227,7 +140227,7 @@ const investigationsFormTile = "InvestigationsForm-module_investigationsFormTile
140227
140227
  }
140228
140228
  };
140229
140229
  return s ? /* @__PURE__ */ jsxs(
140230
- Ry2,
140230
+ Oy2,
140231
140231
  {
140232
140232
  className: styles$g.investigationsFormTile,
140233
140233
  "data-testid": "investigations-form-tile",
@@ -140241,7 +140241,7 @@ const investigationsFormTile = "InvestigationsForm-module_investigationsFormTile
140241
140241
  }
140242
140242
  ),
140243
140243
  /* @__PURE__ */ jsx(
140244
- Gy2,
140244
+ Ky2,
140245
140245
  {
140246
140246
  id: "investigations-procedures-search",
140247
140247
  "data-testid": "investigations-search-combobox",
@@ -140259,7 +140259,7 @@ const investigationsFormTile = "InvestigationsForm-module_investigationsFormTile
140259
140259
  }
140260
140260
  ),
140261
140261
  C && /* @__PURE__ */ jsx(
140262
- Zb2,
140262
+ Bb2,
140263
140263
  {
140264
140264
  kind: "error",
140265
140265
  lowContrast: !0,
@@ -140270,14 +140270,14 @@ const investigationsFormTile = "InvestigationsForm-module_investigationsFormTile
140270
140270
  }
140271
140271
  ),
140272
140272
  U && U.size > 0 && Array.from(U.keys()).map((ae) => /* @__PURE__ */ jsx(
140273
- xb2,
140273
+ _b2,
140274
140274
  {
140275
140275
  title: p("INVESTIGATIONS_ADDED", {
140276
140276
  investigationType: V(ae)
140277
140277
  }),
140278
140278
  className: styles$g.addedInvestigationsBox,
140279
140279
  children: U.get(ae)?.map((oe) => /* @__PURE__ */ jsx(
140280
- Lb2,
140280
+ xb2,
140281
140281
  {
140282
140282
  onClose: () => X(ae, oe.uid),
140283
140283
  className: styles$g.selectedInvestigationItem,
@@ -140354,9 +140354,9 @@ const useConceptSearch = (p, c = 20, a = 500) => {
140354
140354
  errors: E,
140355
140355
  hasBeenValidated: C
140356
140356
  } = p, R = !!(C && E.durationValue), T = !!(C && E.durationUnit);
140357
- return /* @__PURE__ */ jsxs(pb2, { children: [
140357
+ return /* @__PURE__ */ jsxs(hb2, { children: [
140358
140358
  /* @__PURE__ */ jsx(
140359
- db2,
140359
+ ub2,
140360
140360
  {
140361
140361
  sm: 4,
140362
140362
  md: 7,
@@ -140367,7 +140367,7 @@ const useConceptSearch = (p, c = 20, a = 500) => {
140367
140367
  }
140368
140368
  ),
140369
140369
  /* @__PURE__ */ jsxs(
140370
- db2,
140370
+ ub2,
140371
140371
  {
140372
140372
  sm: 4,
140373
140373
  md: 2,
@@ -140376,7 +140376,7 @@ const useConceptSearch = (p, c = 20, a = 500) => {
140376
140376
  className: styles$f.selectedConditionDuration,
140377
140377
  children: [
140378
140378
  /* @__PURE__ */ jsx(
140379
- Ky2,
140379
+ Yy2,
140380
140380
  {
140381
140381
  id: `condition-duration-value-${s}`,
140382
140382
  labelText: a("CONDITIONS_DURATION_VALUE_LABEL"),
@@ -140400,7 +140400,7 @@ const useConceptSearch = (p, c = 20, a = 500) => {
140400
140400
  }
140401
140401
  ),
140402
140402
  /* @__PURE__ */ jsx(
140403
- ib2,
140403
+ sb2,
140404
140404
  {
140405
140405
  id: `condition-duration-unit-${s}`,
140406
140406
  titleText: a("CONDITIONS_DURATION_UNIT_LABEL"),
@@ -140449,9 +140449,9 @@ const CERTAINITY_CONCEPTS = [
140449
140449
  doesConditionExist: s = !1
140450
140450
  }) => {
140451
140451
  const { t: f } = useTranslation(), { id: d, display: h, selectedCertainty: E, errors: C, hasBeenValidated: R } = p, T = !!(R && C.certainty);
140452
- return /* @__PURE__ */ jsxs(pb2, { "data-testid": "selected-diagnosis-item-grid", children: [
140452
+ return /* @__PURE__ */ jsxs(hb2, { "data-testid": "selected-diagnosis-item-grid", children: [
140453
140453
  /* @__PURE__ */ jsxs(
140454
- db2,
140454
+ ub2,
140455
140455
  {
140456
140456
  sm: 4,
140457
140457
  md: 7,
@@ -140461,7 +140461,7 @@ const CERTAINITY_CONCEPTS = [
140461
140461
  children: [
140462
140462
  /* @__PURE__ */ jsx("span", { "data-testid": `diagnosis-display-name-${d}`, children: h }),
140463
140463
  /* @__PURE__ */ jsx(
140464
- ub2,
140464
+ mb2,
140465
140465
  {
140466
140466
  "data-testid": "add-as-condition-link",
140467
140467
  href: "#",
@@ -140478,7 +140478,7 @@ const CERTAINITY_CONCEPTS = [
140478
140478
  }
140479
140479
  ),
140480
140480
  /* @__PURE__ */ jsx(
140481
- db2,
140481
+ ub2,
140482
140482
  {
140483
140483
  sm: 4,
140484
140484
  md: 2,
@@ -140486,7 +140486,7 @@ const CERTAINITY_CONCEPTS = [
140486
140486
  xlg: 4,
140487
140487
  className: styles$e.selectedDiagnosisCertainty,
140488
140488
  children: /* @__PURE__ */ jsx(
140489
- ib2,
140489
+ sb2,
140490
140490
  {
140491
140491
  id: `diagnoses-certainty-dropdown-${d}`,
140492
140492
  testId: `diagnoses-certainty-dropdown-${d}`,
@@ -140519,8 +140519,8 @@ const conditionsAndDiagnosesTile = "ConditionsAndDiagnoses-module_conditionsAndD
140519
140519
  selectedConditionItem,
140520
140520
  duplicateNotification
140521
140521
  }, ConditionsAndDiagnoses = React__default.memo(() => {
140522
- const { t: p } = useTranslation(), c = g0(), { addNotification: a } = K1(), s = H3(
140523
- w01.CONDITIONS_AND_DIAGNOSES
140522
+ const { t: p } = useTranslation(), c = g0(), { addNotification: a } = Z1(), s = b3(
140523
+ L01.CONDITIONS_AND_DIAGNOSES
140524
140524
  ), [f, d] = useState(""), [h, E] = useState(null), [C, R] = useState(!1), {
140525
140525
  selectedDiagnoses: T,
140526
140526
  selectedConditions: H,
@@ -140638,7 +140638,7 @@ const conditionsAndDiagnosesTile = "ConditionsAndDiagnoses-module_conditionsAndD
140638
140638
  p
140639
140639
  ]);
140640
140640
  return s ? /* @__PURE__ */ jsxs(
140641
- Ry2,
140641
+ Oy2,
140642
140642
  {
140643
140643
  className: styles$d.conditionsAndDiagnosesTile,
140644
140644
  "data-testid": "conditions-and-diagnoses-tile",
@@ -140652,7 +140652,7 @@ const conditionsAndDiagnosesTile = "ConditionsAndDiagnoses-module_conditionsAndD
140652
140652
  }
140653
140653
  ),
140654
140654
  /* @__PURE__ */ jsx(
140655
- Gy2,
140655
+ Ky2,
140656
140656
  {
140657
140657
  id: "diagnoses-search",
140658
140658
  "data-testid": "diagnoses-search-combobox",
@@ -140670,7 +140670,7 @@ const conditionsAndDiagnosesTile = "ConditionsAndDiagnoses-module_conditionsAndD
140670
140670
  }
140671
140671
  ),
140672
140672
  C && /* @__PURE__ */ jsx(
140673
- Zb2,
140673
+ Bb2,
140674
140674
  {
140675
140675
  kind: "error",
140676
140676
  lowContrast: !0,
@@ -140681,12 +140681,12 @@ const conditionsAndDiagnosesTile = "ConditionsAndDiagnoses-module_conditionsAndD
140681
140681
  }
140682
140682
  ),
140683
140683
  T && T.length > 0 && /* @__PURE__ */ jsx(
140684
- xb2,
140684
+ _b2,
140685
140685
  {
140686
140686
  title: p("DIAGNOSES_ADDED_DIAGNOSES"),
140687
140687
  className: styles$d.conditionsAndDiagnosesBox,
140688
140688
  children: T.map((ne) => /* @__PURE__ */ jsx(
140689
- Lb2,
140689
+ xb2,
140690
140690
  {
140691
140691
  className: styles$d.selectedDiagnosisItem,
140692
140692
  onClose: () => $(ne.id),
@@ -140705,12 +140705,12 @@ const conditionsAndDiagnosesTile = "ConditionsAndDiagnoses-module_conditionsAndD
140705
140705
  }
140706
140706
  ),
140707
140707
  H && H.length > 0 && /* @__PURE__ */ jsx(
140708
- xb2,
140708
+ _b2,
140709
140709
  {
140710
140710
  title: p("CONDITIONS_SECTION_TITLE"),
140711
140711
  className: styles$d.conditionsAndDiagnosesBox,
140712
140712
  children: H.map((ne) => /* @__PURE__ */ jsx(
140713
- Lb2,
140713
+ xb2,
140714
140714
  {
140715
140715
  className: styles$d.selectedConditionItem,
140716
140716
  onClose: () => S(ne.id),
@@ -140888,7 +140888,7 @@ function parseStartDate(p, c) {
140888
140888
  return a ? new Date(a) : c ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date();
140889
140889
  }
140890
140890
  const CDSCardAlert = ({ card: p, className: c }) => /* @__PURE__ */ jsx(
140891
- Zb2,
140891
+ Bb2,
140892
140892
  {
140893
140893
  kind: ((s) => {
140894
140894
  switch (s) {
@@ -141622,7 +141622,7 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141622
141622
  const me = ee.split("(")[0], Pe = ee.includes("(") ? "(" + ee.split("(").slice(1).join("(") : "";
141623
141623
  return /* @__PURE__ */ jsxs(Fragment, { children: [
141624
141624
  /* @__PURE__ */ jsxs(
141625
- pb2,
141625
+ hb2,
141626
141626
  {
141627
141627
  condensed: !1,
141628
141628
  narrow: !1,
@@ -141630,7 +141630,7 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141630
141630
  "data-testid": `${a}-selected-item-${F}-test-id`,
141631
141631
  "aria-label": `${a}-selected-item-${F}-aria-label`,
141632
141632
  children: [
141633
- /* @__PURE__ */ jsxs(db2, { sm: 2, md: 4, lg: 8, className: styles$c.itemTitle, children: [
141633
+ /* @__PURE__ */ jsxs(ub2, { sm: 2, md: 4, lg: 8, className: styles$c.itemTitle, children: [
141634
141634
  /* @__PURE__ */ jsx(
141635
141635
  "span",
141636
141636
  {
@@ -141661,9 +141661,9 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141661
141661
  }
141662
141662
  )
141663
141663
  ] }),
141664
- /* @__PURE__ */ jsxs(db2, { sm: 2, md: 4, lg: 8, className: styles$c.itemActions, children: [
141664
+ /* @__PURE__ */ jsxs(ub2, { sm: 2, md: 4, lg: 8, className: styles$c.itemActions, children: [
141665
141665
  findAttr$1("stat", s) && /* @__PURE__ */ jsx(
141666
- sb2,
141666
+ fb2,
141667
141667
  {
141668
141668
  id: `${a}-stat-checkbox-${F}`,
141669
141669
  "data-testid": `${a}-stat-checkbox-${F}-test-id`,
@@ -141678,7 +141678,7 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141678
141678
  }
141679
141679
  ),
141680
141680
  Z && findAttr$1("prn", s) && /* @__PURE__ */ jsx(
141681
- sb2,
141681
+ fb2,
141682
141682
  {
141683
141683
  id: `${a}-prn-checkbox-${F}`,
141684
141684
  "data-testid": `${a}-prn-checkbox-${F}-test-id`,
@@ -141692,9 +141692,9 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141692
141692
  }
141693
141693
  )
141694
141694
  ] }),
141695
- (findAttr$1("dosage", s) ?? findAttr$1("dosageUnit", s)) && /* @__PURE__ */ jsxs(db2, { sm: 2, md: 4, lg: 8, className: styles$c.dosageControls, children: [
141695
+ (findAttr$1("dosage", s) ?? findAttr$1("dosageUnit", s)) && /* @__PURE__ */ jsxs(ub2, { sm: 2, md: 4, lg: 8, className: styles$c.dosageControls, children: [
141696
141696
  findAttr$1("dosage", s) && /* @__PURE__ */ jsx(
141697
- cL2,
141697
+ aL2,
141698
141698
  {
141699
141699
  id: `${a}-dosage-input-${F}`,
141700
141700
  "data-testid": `${a}-dosage-input-${F}-test-id`,
@@ -141719,7 +141719,7 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141719
141719
  }
141720
141720
  ),
141721
141721
  findAttr$1("dosageUnit", s) && /* @__PURE__ */ jsx(
141722
- ib2,
141722
+ sb2,
141723
141723
  {
141724
141724
  id: `${a}-dosage-unit-dropdown-${F}`,
141725
141725
  "data-testid": `${a}-dosage-unit-dropdown-${F}-test-id`,
@@ -141744,8 +141744,8 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141744
141744
  }
141745
141745
  )
141746
141746
  ] }),
141747
- findAttr$1("frequency", s) && /* @__PURE__ */ jsx(db2, { sm: 1, md: 4, lg: 8, className: styles$c.column, children: /* @__PURE__ */ jsx(
141748
- ib2,
141747
+ findAttr$1("frequency", s) && /* @__PURE__ */ jsx(ub2, { sm: 1, md: 4, lg: 8, className: styles$c.column, children: /* @__PURE__ */ jsx(
141748
+ sb2,
141749
141749
  {
141750
141750
  id: `${a}-frequency-dropdown-${F}`,
141751
141751
  "data-testid": `${a}-frequency-dropdown-${F}-test-id`,
@@ -141768,9 +141768,9 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141768
141768
  disabled: (Z ? pe && !J : pe) || !!findAttr$1("frequency", s)?.readOnly
141769
141769
  }
141770
141770
  ) }),
141771
- (findAttr$1("duration", s) ?? findAttr$1("durationUnit", s)) && /* @__PURE__ */ jsxs(db2, { sm: 2, md: 4, lg: 8, className: styles$c.durationControls, children: [
141771
+ (findAttr$1("duration", s) ?? findAttr$1("durationUnit", s)) && /* @__PURE__ */ jsxs(ub2, { sm: 2, md: 4, lg: 8, className: styles$c.durationControls, children: [
141772
141772
  findAttr$1("duration", s) && /* @__PURE__ */ jsx(
141773
- cL2,
141773
+ aL2,
141774
141774
  {
141775
141775
  id: `${a}-duration-input-${F}`,
141776
141776
  "data-testid": `${a}-duration-input-${F}-test-id`,
@@ -141794,7 +141794,7 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141794
141794
  }
141795
141795
  ),
141796
141796
  findAttr$1("durationUnit", s) && /* @__PURE__ */ jsx(
141797
- ib2,
141797
+ sb2,
141798
141798
  {
141799
141799
  id: `${a}-duration-unit-dropdown-${F}`,
141800
141800
  "data-testid": `${a}-duration-unit-dropdown-${F}-test-id`,
@@ -141819,8 +141819,8 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141819
141819
  }
141820
141820
  )
141821
141821
  ] }),
141822
- findAttr$1("instruction", s) && /* @__PURE__ */ jsx(db2, { sm: 1, md: 4, lg: 8, className: styles$c.column, children: /* @__PURE__ */ jsx(
141823
- ib2,
141822
+ findAttr$1("instruction", s) && /* @__PURE__ */ jsx(ub2, { sm: 1, md: 4, lg: 8, className: styles$c.column, children: /* @__PURE__ */ jsx(
141823
+ sb2,
141824
141824
  {
141825
141825
  id: `${a}-instructions-dropdown-${F}`,
141826
141826
  "data-testid": `${a}-instructions-dropdown-${F}-test-id`,
@@ -141842,8 +141842,8 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141842
141842
  disabled: findAttr$1("instruction", s)?.readOnly
141843
141843
  }
141844
141844
  ) }),
141845
- findAttr$1("route", s) && /* @__PURE__ */ jsx(db2, { sm: 1, md: 4, lg: 8, className: styles$c.column, children: /* @__PURE__ */ jsx(
141846
- ib2,
141845
+ findAttr$1("route", s) && /* @__PURE__ */ jsx(ub2, { sm: 1, md: 4, lg: 8, className: styles$c.column, children: /* @__PURE__ */ jsx(
141846
+ sb2,
141847
141847
  {
141848
141848
  id: `${a}-route-dropdown-${F}`,
141849
141849
  "data-testid": `${a}-route-dropdown-${F}-test-id`,
@@ -141866,8 +141866,8 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141866
141866
  disabled: findAttr$1("route", s)?.readOnly
141867
141867
  }
141868
141868
  ) }),
141869
- findAttr$1("startDate", s) && /* @__PURE__ */ jsx(db2, { sm: 2, md: 4, lg: 8, className: styles$c.column, children: /* @__PURE__ */ jsx(
141870
- Zx2,
141869
+ findAttr$1("startDate", s) && /* @__PURE__ */ jsx(ub2, { sm: 2, md: 4, lg: 8, className: styles$c.column, children: /* @__PURE__ */ jsx(
141870
+ Bx2,
141871
141871
  {
141872
141872
  datePickerType: "single",
141873
141873
  "data-testid": `${a}-start-date-picker-${F}-test-id`,
@@ -141878,7 +141878,7 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141878
141878
  },
141879
141879
  className: styles$c.datePicker,
141880
141880
  children: /* @__PURE__ */ jsx(
141881
- al1,
141881
+ ol1,
141882
141882
  {
141883
141883
  id: `${a}-start-date-input-${F}`,
141884
141884
  "data-testid": `${a}-start-date-input-${F}-test-id`,
@@ -141893,9 +141893,9 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141893
141893
  )
141894
141894
  }
141895
141895
  ) }),
141896
- /* @__PURE__ */ jsxs(db2, { sm: 4, md: 8, lg: 16, className: styles$c.footerRow, children: [
141896
+ /* @__PURE__ */ jsxs(ub2, { sm: 4, md: 8, lg: 16, className: styles$c.footerRow, children: [
141897
141897
  findAttr$1("note", s) && !he && !se && /* @__PURE__ */ jsx(
141898
- ub2,
141898
+ mb2,
141899
141899
  {
141900
141900
  href: "#",
141901
141901
  id: `${a}-add-note-link-${F}`,
@@ -141929,7 +141929,7 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141929
141929
  }
141930
141930
  ),
141931
141931
  findAttr$1("note", s) && (he || se) && /* @__PURE__ */ jsx(
141932
- bz2,
141932
+ Nz2,
141933
141933
  {
141934
141934
  id: `${a}-note-${F}`,
141935
141935
  "data-testid": `${a}-note-${F}-test-id`,
@@ -142066,7 +142066,7 @@ const $schema$2 = "http://json-schema.org/draft-07/schema#", title$4 = "Medicati
142066
142066
  O
142067
142067
  ]);
142068
142068
  return /* @__PURE__ */ jsxs(
142069
- Ry2,
142069
+ Oy2,
142070
142070
  {
142071
142071
  id: `${a}-form-tile`,
142072
142072
  className: styles$b.form,
@@ -142084,7 +142084,7 @@ const $schema$2 = "http://json-schema.org/draft-07/schema#", title$4 = "Medicati
142084
142084
  }
142085
142085
  ),
142086
142086
  T && /* @__PURE__ */ jsx(
142087
- lb2,
142087
+ ib2,
142088
142088
  {
142089
142089
  id: `${a}-loading-skeleton`,
142090
142090
  testId: `${a}-loading-skeleton-test-id`,
@@ -142104,7 +142104,7 @@ const $schema$2 = "http://json-schema.org/draft-07/schema#", title$4 = "Medicati
142104
142104
  }
142105
142105
  ),
142106
142106
  !T && !H && !X && /* @__PURE__ */ jsx(
142107
- Gy2,
142107
+ Ky2,
142108
142108
  {
142109
142109
  id: `${a}-search`,
142110
142110
  "data-testid": `${a}-search-combobox-test-id`,
@@ -142121,14 +142121,14 @@ const $schema$2 = "http://json-schema.org/draft-07/schema#", title$4 = "Medicati
142121
142121
  }
142122
142122
  ),
142123
142123
  R && Z && Z.length > 0 && /* @__PURE__ */ jsx(
142124
- xb2,
142124
+ _b2,
142125
142125
  {
142126
142126
  title: c(`${a.toUpperCase()}_ADDED_TITLE`),
142127
142127
  className: styles$b.itemsBox,
142128
142128
  children: Z.map((J) => /* @__PURE__ */ jsxs("div", { children: [
142129
142129
  J.cdsCards?.map((ae) => /* @__PURE__ */ jsx("div", { className: styles$b.cdsCardContainer, children: /* @__PURE__ */ jsx(CDSCardAlert, { card: ae, className: styles$b.cdsCard }) }, ae.summary)),
142130
142130
  /* @__PURE__ */ jsx(
142131
- Lb2,
142131
+ xb2,
142132
142132
  {
142133
142133
  onClose: () => U(J.id),
142134
142134
  className: styles$b.selectedItem,
@@ -142771,13 +142771,13 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
142771
142771
  }
142772
142772
  ),
142773
142773
  /* @__PURE__ */ jsxs(
142774
- pb2,
142774
+ hb2,
142775
142775
  {
142776
142776
  id: `selected-immunization-item-grid-${V}`,
142777
142777
  "data-testid": `selected-immunization-item-grid-${V}-test-id`,
142778
142778
  children: [
142779
- findAttr("drug", d) && /* @__PURE__ */ jsx(db2, { sm: 4, md: 8, lg: 16, className: styles$a.column, children: /* @__PURE__ */ jsx(
142780
- Gy2,
142779
+ findAttr("drug", d) && /* @__PURE__ */ jsx(ub2, { sm: 4, md: 8, lg: 16, className: styles$a.column, children: /* @__PURE__ */ jsx(
142780
+ Ky2,
142781
142781
  {
142782
142782
  id: `immunization-drug-name-combobox-${V}`,
142783
142783
  "data-testid": `immunization-drug-name-combobox-${V}-test-id`,
@@ -142806,8 +142806,8 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
142806
142806
  invalidText: p.errors.drug ? $(p.errors.drug) : ""
142807
142807
  }
142808
142808
  ) }),
142809
- findAttr("administeredOn", d) && /* @__PURE__ */ jsx(db2, { sm: 4, md: 2, lg: 5, className: styles$a.column, children: /* @__PURE__ */ jsx(
142810
- Zx2,
142809
+ findAttr("administeredOn", d) && /* @__PURE__ */ jsx(ub2, { sm: 4, md: 2, lg: 5, className: styles$a.column, children: /* @__PURE__ */ jsx(
142810
+ Bx2,
142811
142811
  {
142812
142812
  datePickerType: "single",
142813
142813
  value: p.administeredOn ?? void 0,
@@ -142815,7 +142815,7 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
142815
142815
  maxDate: /* @__PURE__ */ new Date(),
142816
142816
  className: styles$a.datePicker,
142817
142817
  children: /* @__PURE__ */ jsx(
142818
- al1,
142818
+ ol1,
142819
142819
  {
142820
142820
  id: `immunization-administered-on-${V}`,
142821
142821
  "data-testid": `immunization-administered-on-input-${V}-test-id`,
@@ -142828,8 +142828,8 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
142828
142828
  )
142829
142829
  }
142830
142830
  ) }),
142831
- findAttr("administeredLocation", d) && /* @__PURE__ */ jsx(db2, { sm: 4, md: 2, lg: 5, className: styles$a.column, children: /* @__PURE__ */ jsx(
142832
- Gy2,
142831
+ findAttr("administeredLocation", d) && /* @__PURE__ */ jsx(ub2, { sm: 4, md: 2, lg: 5, className: styles$a.column, children: /* @__PURE__ */ jsx(
142832
+ Ky2,
142833
142833
  {
142834
142834
  id: `immunization-administered-location-combobox-${V}`,
142835
142835
  "data-testid": `immunization-administered-location-${V}-test-id`,
@@ -142861,8 +142861,8 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
142861
142861
  invalidText: p.errors.administeredLocation ? $(p.errors.administeredLocation) : ""
142862
142862
  }
142863
142863
  ) }),
142864
- findAttr("route", d) && /* @__PURE__ */ jsx(db2, { sm: 4, md: 2, lg: 5, className: styles$a.column, children: /* @__PURE__ */ jsx(
142865
- Gy2,
142864
+ findAttr("route", d) && /* @__PURE__ */ jsx(ub2, { sm: 4, md: 2, lg: 5, className: styles$a.column, children: /* @__PURE__ */ jsx(
142865
+ Ky2,
142866
142866
  {
142867
142867
  id: `immunization-route-combobox-${V}`,
142868
142868
  "data-testid": `immunization-route-${V}-test-id`,
@@ -142879,8 +142879,8 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
142879
142879
  invalidText: p.errors.route ? $(p.errors.route) : ""
142880
142880
  }
142881
142881
  ) }),
142882
- findAttr("site", d) && /* @__PURE__ */ jsx(db2, { sm: 4, md: 2, lg: 5, className: styles$a.column, children: /* @__PURE__ */ jsx(
142883
- Gy2,
142882
+ findAttr("site", d) && /* @__PURE__ */ jsx(ub2, { sm: 4, md: 2, lg: 5, className: styles$a.column, children: /* @__PURE__ */ jsx(
142883
+ Ky2,
142884
142884
  {
142885
142885
  id: `immunization-site-combobox-${V}`,
142886
142886
  "data-testid": `immunization-site-${V}-test-id`,
@@ -142897,8 +142897,8 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
142897
142897
  invalidText: p.errors.site ? $(p.errors.site) : ""
142898
142898
  }
142899
142899
  ) }),
142900
- findAttr("statusReason", d) && /* @__PURE__ */ jsx(db2, { sm: 4, md: 8, lg: 16, className: styles$a.column, children: /* @__PURE__ */ jsx(
142901
- Gy2,
142900
+ findAttr("statusReason", d) && /* @__PURE__ */ jsx(ub2, { sm: 4, md: 8, lg: 16, className: styles$a.column, children: /* @__PURE__ */ jsx(
142901
+ Ky2,
142902
142902
  {
142903
142903
  id: `immunization-status-reason-combobox-${V}`,
142904
142904
  "data-testid": `immunization-status-reason-${V}-test-id`,
@@ -142925,8 +142925,8 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
142925
142925
  invalidText: p.errors.statusReason ? $(p.errors.statusReason) : ""
142926
142926
  }
142927
142927
  ) }),
142928
- findAttr("manufacturer", d) && /* @__PURE__ */ jsx(db2, { sm: 4, md: 2, lg: 5, className: styles$a.column, children: /* @__PURE__ */ jsx(
142929
- Ky2,
142928
+ findAttr("manufacturer", d) && /* @__PURE__ */ jsx(ub2, { sm: 4, md: 2, lg: 5, className: styles$a.column, children: /* @__PURE__ */ jsx(
142929
+ Yy2,
142930
142930
  {
142931
142931
  id: `immunization-manufacturer-${V}`,
142932
142932
  "data-testid": `immunization-manufacturer-${V}`,
@@ -142940,8 +142940,8 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
142940
142940
  invalidText: p.errors.manufacturer ? $(p.errors.manufacturer) : ""
142941
142941
  }
142942
142942
  ) }),
142943
- findAttr("batchNumber", d) && /* @__PURE__ */ jsx(db2, { sm: 4, md: 2, lg: 5, className: styles$a.column, children: /* @__PURE__ */ jsx(
142944
- Gy2,
142943
+ findAttr("batchNumber", d) && /* @__PURE__ */ jsx(ub2, { sm: 4, md: 2, lg: 5, className: styles$a.column, children: /* @__PURE__ */ jsx(
142944
+ Ky2,
142945
142945
  {
142946
142946
  id: `immunization-batch-number-${V}`,
142947
142947
  "data-testid": `immunization-batch-number-${V}`,
@@ -142967,8 +142967,8 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
142967
142967
  invalidText: p.errors.batchNumber ? $(p.errors.batchNumber) : ""
142968
142968
  }
142969
142969
  ) }),
142970
- findAttr("doseSequence", d) && /* @__PURE__ */ jsx(db2, { sm: 4, md: 2, lg: 5, className: styles$a.column, children: /* @__PURE__ */ jsx(
142971
- cL2,
142970
+ findAttr("doseSequence", d) && /* @__PURE__ */ jsx(ub2, { sm: 4, md: 2, lg: 5, className: styles$a.column, children: /* @__PURE__ */ jsx(
142971
+ aL2,
142972
142972
  {
142973
142973
  id: `immunization-dose-sequence-${V}`,
142974
142974
  "data-testid": `immunization-dose-sequence-${V}`,
@@ -142984,8 +142984,8 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
142984
142984
  className: styles$a.doseSequenceInput
142985
142985
  }
142986
142986
  ) }),
142987
- findAttr("expiryDate", d) && /* @__PURE__ */ jsx(db2, { sm: 4, md: 2, lg: 5, className: styles$a.column, children: /* @__PURE__ */ jsx(
142988
- Zx2,
142987
+ findAttr("expiryDate", d) && /* @__PURE__ */ jsx(ub2, { sm: 4, md: 2, lg: 5, className: styles$a.column, children: /* @__PURE__ */ jsx(
142988
+ Bx2,
142989
142989
  {
142990
142990
  datePickerType: "single",
142991
142991
  value: p.expiryDate ?? void 0,
@@ -142997,7 +142997,7 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
142997
142997
  ) : void 0,
142998
142998
  className: styles$a.datePicker,
142999
142999
  children: /* @__PURE__ */ jsx(
143000
- al1,
143000
+ ol1,
143001
143001
  {
143002
143002
  id: `immunization-expiry-date-${V}`,
143003
143003
  "data-testid": `immunization-expiry-date-input-${V}`,
@@ -143010,8 +143010,8 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
143010
143010
  )
143011
143011
  }
143012
143012
  ) }),
143013
- findAttr("note", d) && /* @__PURE__ */ jsx(db2, { sm: 4, md: 8, lg: 16, className: styles$a.column, children: !J && !pe && !p.errors.note ? /* @__PURE__ */ jsx(
143014
- ub2,
143013
+ findAttr("note", d) && /* @__PURE__ */ jsx(ub2, { sm: 4, md: 8, lg: 16, className: styles$a.column, children: !J && !pe && !p.errors.note ? /* @__PURE__ */ jsx(
143014
+ mb2,
143015
143015
  {
143016
143016
  href: "#",
143017
143017
  "data-testid": `immunization-add-note-link-${V}-test-id`,
@@ -143021,7 +143021,7 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
143021
143021
  children: $("IMMUNIZATION_INPUT_CONTROL_ADD_NOTE")
143022
143022
  }
143023
143023
  ) : /* @__PURE__ */ jsx(
143024
- bz2,
143024
+ Nz2,
143025
143025
  {
143026
143026
  id: `immunization-note-${V}`,
143027
143027
  "data-testid": `immunization-note-${V}-test-id`,
@@ -143228,7 +143228,7 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
143228
143228
  }
143229
143229
  ),
143230
143230
  !(k && J) && /* @__PURE__ */ jsx(
143231
- Gy2,
143231
+ Ky2,
143232
143232
  {
143233
143233
  id: "immunization-history-search",
143234
143234
  "data-testid": "immunization-history-search-combobox",
@@ -143249,7 +143249,7 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
143249
143249
  }
143250
143250
  ),
143251
143251
  gt ? /* @__PURE__ */ jsx(
143252
- lb2,
143252
+ ib2,
143253
143253
  {
143254
143254
  id: "immunization-history-loading",
143255
143255
  testId: "immunization-history-loading-test-id",
@@ -143266,10 +143266,10 @@ const form = "ImmunizationForm-module_form__e68vP", title$2 = "ImmunizationForm-
143266
143266
  children: a("ERROR_LOADING_IMMUNIZATION_DETAILS")
143267
143267
  }
143268
143268
  ) : null,
143269
- tt && /* @__PURE__ */ jsx(xb2, { title: a("IMMUNIZATION_INPUT_CONTROL_ADDED_ITEMS"), children: R.map((at, rt) => /* @__PURE__ */ jsxs("div", { children: [
143269
+ tt && /* @__PURE__ */ jsx(_b2, { title: a("IMMUNIZATION_INPUT_CONTROL_ADDED_ITEMS"), children: R.map((at, rt) => /* @__PURE__ */ jsxs("div", { children: [
143270
143270
  at.cdsCards?.map((xt) => /* @__PURE__ */ jsx("div", { className: styles$a.cdsCardContainer, children: /* @__PURE__ */ jsx(CDSCardAlert, { card: xt, className: styles$a.cdsCard }) }, xt.summary)),
143271
143271
  /* @__PURE__ */ jsx(
143272
- Lb2,
143272
+ xb2,
143273
143273
  {
143274
143274
  className: styles$a.selectedItem,
143275
143275
  onClose: () => C(at.id),
@@ -143336,7 +143336,7 @@ const canUserAccessForm = (p, c) => {
143336
143336
  }, filterFormsByUserPrivileges = (p, c) => !p || p.length === 0 ? [] : c.filter(
143337
143337
  (s) => canUserAccessForm(p, s)
143338
143338
  ), useObservationFormsSearch = (p = "", c) => {
143339
- const a = useDebounce(p), { userPrivileges: s } = Xr(), {
143339
+ const a = useDebounce(p), { userPrivileges: s } = Jr(), {
143340
143340
  data: f = [],
143341
143341
  isLoading: d,
143342
143342
  error: h
@@ -143475,7 +143475,7 @@ function useSubmittedEncounterForms(p) {
143475
143475
  ), useMemo(() => {
143476
143476
  const C = d?.entry?.map((T) => T.resource).filter((T) => T?.resourceType === "Observation") ?? [], R = /* @__PURE__ */ new Set();
143477
143477
  for (const T of C) {
143478
- const H = a01(T);
143478
+ const H = H01(T);
143479
143479
  if (!H) continue;
143480
143480
  const x = p.find(($) => $.name === H);
143481
143481
  x && R.add(x.uuid);
@@ -143499,8 +143499,8 @@ const observationFormsTile = "ObservationForms-module_observationFormsTile__AZ0b
143499
143499
  observationFormsError: C,
143500
143500
  submittedFormUuids: R = EMPTY_SET
143501
143501
  }) => {
143502
- const { t: T } = useTranslation(), H = H3(
143503
- w01.OBSERVATIONS
143502
+ const { t: T } = useTranslation(), H = b3(
143503
+ L01.OBSERVATIONS
143504
143504
  ), [x, $] = useState(""), [k, I] = useState(null), { getFormData: S } = useObservationFormsStore(), z = useMemo(() => {
143505
143505
  if (!x.trim()) return h;
143506
143506
  const ae = x.toLowerCase().trim().split(/\s+/);
@@ -143583,7 +143583,7 @@ const observationFormsTile = "ObservationForms-module_observationFormsTile__AZ0b
143583
143583
  T
143584
143584
  ]);
143585
143585
  return H ? /* @__PURE__ */ jsxs(
143586
- Ry2,
143586
+ Oy2,
143587
143587
  {
143588
143588
  className: styles$9.observationFormsTile,
143589
143589
  "data-testid": "observation-forms-tile",
@@ -143597,7 +143597,7 @@ const observationFormsTile = "ObservationForms-module_observationFormsTile__AZ0b
143597
143597
  }
143598
143598
  ),
143599
143599
  /* @__PURE__ */ jsx("div", { "data-testid": "observation-forms-search-section", children: /* @__PURE__ */ jsx(
143600
- Gy2,
143600
+ Ky2,
143601
143601
  {
143602
143602
  id: "observation-forms-search",
143603
143603
  placeholder: T("OBSERVATION_FORMS_SEARCH_PLACEHOLDER"),
@@ -143616,7 +143616,7 @@ const observationFormsTile = "ObservationForms-module_observationFormsTile__AZ0b
143616
143616
  }
143617
143617
  ) }),
143618
143618
  c && c.length > 0 && /* @__PURE__ */ jsx("div", { "data-testid": "added-forms-section", children: /* @__PURE__ */ jsx(
143619
- Sb2,
143619
+ Rb2,
143620
143620
  {
143621
143621
  title: T("OBSERVATION_FORMS_ADDED_FORMS"),
143622
143622
  dataTestId: "added-forms-container",
@@ -143625,7 +143625,7 @@ const observationFormsTile = "ObservationForms-module_observationFormsTile__AZ0b
143625
143625
  `OBSERVATION_ADDED_FORM_VALIDATION_ERROR_TITLE_${oe.toUpperCase()}`
143626
143626
  ) : void 0;
143627
143627
  return /* @__PURE__ */ jsx(
143628
- Rb2,
143628
+ Ob2,
143629
143629
  {
143630
143630
  title: J.name,
143631
143631
  icon: "fa-file-lines",
@@ -143642,21 +143642,21 @@ const observationFormsTile = "ObservationForms-module_observationFormsTile__AZ0b
143642
143642
  }
143643
143643
  ) }),
143644
143644
  /* @__PURE__ */ jsx("div", { "data-testid": "pinned-forms-section", children: /* @__PURE__ */ jsx(
143645
- Sb2,
143645
+ Rb2,
143646
143646
  {
143647
143647
  title: T("DEFAULT_AND_PINNED_FORMS_TITLE"),
143648
143648
  showNoFormsMessage: !E && V.length === 0,
143649
143649
  noFormsMessage: T("DEFAULT_AND_PINNED_FORMS_NO_FORMS_FOUND"),
143650
143650
  dataTestId: "pinned-forms-container",
143651
143651
  children: E || d ? /* @__PURE__ */ jsx(
143652
- cb2,
143652
+ ab2,
143653
143653
  {
143654
143654
  width: "100%",
143655
143655
  lineCount: 3,
143656
143656
  testId: "pinned-forms-skeleton"
143657
143657
  }
143658
143658
  ) : V.map((J) => /* @__PURE__ */ jsx(
143659
- Rb2,
143659
+ Ob2,
143660
143660
  {
143661
143661
  title: J.name,
143662
143662
  icon: "fa-file-lines",
@@ -143684,7 +143684,7 @@ ObservationForms.displayName = "ObservationForms";
143684
143684
  const ObservationFormsPanel = ({
143685
143685
  encounterSessionStartContext: p
143686
143686
  }) => {
143687
- const { user: c } = yke(), a = g0(), { episodeOfCare: s } = useClinicalAppData(), f = s.map((V) => V.uuid), {
143687
+ const { user: c } = e8(), a = g0(), { episodeOfCare: s } = useClinicalAppData(), f = s.map((V) => V.uuid), {
143688
143688
  forms: d,
143689
143689
  isLoading: h,
143690
143690
  error: E
@@ -143914,16 +143914,16 @@ const stopMedicationFormTile = "StopMedicationForm-module_stopMedicationFormTile
143914
143914
  display: V
143915
143915
  })), N = E.stopDate?.isVisible !== !1, K = E.stopReason?.isVisible !== !1, X = E.note?.isVisible !== !1;
143916
143916
  return /* @__PURE__ */ jsxs(
143917
- Ry2,
143917
+ Oy2,
143918
143918
  {
143919
143919
  className: styles$8.stopMedicationFormTile,
143920
143920
  "data-testid": "stop-medication-form-tile",
143921
143921
  children: [
143922
143922
  /* @__PURE__ */ jsx("div", { className: styles$8.formTitle, children: c("STOP_MEDICATION_FORM_TITLE") }),
143923
- /* @__PURE__ */ jsxs(pb2, { condensed: !1, children: [
143924
- /* @__PURE__ */ jsx(db2, { sm: 4, md: 8, lg: 16, children: /* @__PURE__ */ jsx("p", { className: styles$8.medicationName, children: U }) }),
143925
- N && /* @__PURE__ */ jsx(db2, { sm: 2, md: 4, lg: 8, className: styles$8.column, children: /* @__PURE__ */ jsx(
143926
- Zx2,
143923
+ /* @__PURE__ */ jsxs(hb2, { condensed: !1, children: [
143924
+ /* @__PURE__ */ jsx(ub2, { sm: 4, md: 8, lg: 16, children: /* @__PURE__ */ jsx("p", { className: styles$8.medicationName, children: U }) }),
143925
+ N && /* @__PURE__ */ jsx(ub2, { sm: 2, md: 4, lg: 8, className: styles$8.column, children: /* @__PURE__ */ jsx(
143926
+ Bx2,
143927
143927
  {
143928
143928
  datePickerType: "single",
143929
143929
  "data-testid": "stop-medication-date-picker",
@@ -143934,7 +143934,7 @@ const stopMedicationFormTile = "StopMedicationForm-module_stopMedicationFormTile
143934
143934
  V.length > 0 && C(V[0]);
143935
143935
  },
143936
143936
  children: /* @__PURE__ */ jsx(
143937
- al1,
143937
+ ol1,
143938
143938
  {
143939
143939
  id: "stop-medication-date",
143940
143940
  "data-testid": "stop-medication-date-input",
@@ -143948,8 +143948,8 @@ const stopMedicationFormTile = "StopMedicationForm-module_stopMedicationFormTile
143948
143948
  },
143949
143949
  z?.effectiveStartDate ?? "pending"
143950
143950
  ) }),
143951
- K && /* @__PURE__ */ jsx(db2, { sm: 2, md: 4, lg: 8, className: styles$8.column, children: /* @__PURE__ */ jsx(
143952
- ib2,
143951
+ K && /* @__PURE__ */ jsx(ub2, { sm: 2, md: 4, lg: 8, className: styles$8.column, children: /* @__PURE__ */ jsx(
143952
+ sb2,
143953
143953
  {
143954
143954
  id: "stop-medication-reason",
143955
143955
  "data-testid": "stop-medication-reason-dropdown",
@@ -143968,7 +143968,7 @@ const stopMedicationFormTile = "StopMedicationForm-module_stopMedicationFormTile
143968
143968
  invalidText: c(h.stopReason ?? "")
143969
143969
  }
143970
143970
  ) }),
143971
- X && /* @__PURE__ */ jsxs(db2, { sm: 4, md: 8, lg: 16, className: styles$8.column, children: [
143971
+ X && /* @__PURE__ */ jsxs(ub2, { sm: 4, md: 8, lg: 16, className: styles$8.column, children: [
143972
143972
  /* @__PURE__ */ jsxs("div", { className: styles$8.noteLabelRow, children: [
143973
143973
  /* @__PURE__ */ jsx(
143974
143974
  "label",
@@ -143984,7 +143984,7 @@ const stopMedicationFormTile = "StopMedicationForm-module_stopMedicationFormTile
143984
143984
  ] })
143985
143985
  ] }),
143986
143986
  /* @__PURE__ */ jsx(
143987
- Yy2,
143987
+ Jy2,
143988
143988
  {
143989
143989
  id: "stop-medication-note",
143990
143990
  "data-testid": "stop-medication-note",
@@ -144035,7 +144035,7 @@ const InputControlRenderer = ({
144035
144035
  encounterType: c,
144036
144036
  encounterSessionStartContext: a
144037
144037
  }) => {
144038
- const s = H3(p.privilege);
144038
+ const s = b3(p.privilege);
144039
144039
  if (p.encounterTypes && !p.encounterTypes.includes(c) || !s)
144040
144040
  return null;
144041
144041
  const f = p.component;
@@ -144047,7 +144047,7 @@ const InputControlRenderer = ({
144047
144047
  inputControlConfig: p.inputControlConfig
144048
144048
  }
144049
144049
  ),
144050
- /* @__PURE__ */ jsx(Db2, { "data-testid": `${p.key}-divider` })
144050
+ /* @__PURE__ */ jsx(Tb2, { "data-testid": `${p.key}-divider` })
144051
144051
  ] });
144052
144052
  }, isImmutableData = (p) => typeof p == "object" && p !== null && "toJS" in p && typeof p.toJS == "function", isFormControlTree = (p) => typeof p == "object" && p !== null && "formFieldPath" in p && "children" in p, isFormData = (p) => typeof p == "object" && p !== null && "controls" in p && Array.isArray(p.controls);
144053
144053
  function useObservationFormData(p) {
@@ -144255,7 +144255,7 @@ const formView = "ObservationFormsContainer-module_formView__d3K6Z", errorNotifi
144255
144255
  const { t: x } = useTranslation(), $ = useActionAreaExpandProps({
144256
144256
  isExpanded: T,
144257
144257
  onToggleExpand: H
144258
- }), k = R?.editOnly === "observationForms", [I, S] = React__default.useState(!1), O = R?.task?.basedOn?.[0], Z = g0(), { user: F } = yke(), { episodeOfCare: U, activeVisitId: W } = useClinicalAppData(), {
144258
+ }), k = R?.editOnly === "observationForms", [I, S] = React__default.useState(!1), O = R?.task?.basedOn?.[0], Z = g0(), { user: F } = e8(), { episodeOfCare: U, activeVisitId: W } = useClinicalAppData(), {
144259
144259
  data: N,
144260
144260
  isLoading: K,
144261
144261
  error: X
@@ -144445,7 +144445,7 @@ const formView = "ObservationFormsContainer-module_formView__d3K6Z", errorNotifi
144445
144445
  encounterSessionStartContext: R
144446
144446
  }
144447
144447
  ),
144448
- /* @__PURE__ */ jsx(Db2, {}),
144448
+ /* @__PURE__ */ jsx(Tb2, {}),
144449
144449
  k && c && /* @__PURE__ */ jsx(
144450
144450
  "div",
144451
144451
  {
@@ -144456,7 +144456,7 @@ const formView = "ObservationFormsContainer-module_formView__d3K6Z", errorNotifi
144456
144456
  )
144457
144457
  ] }),
144458
144458
  oe && oe !== VALIDATION_STATE_SCRIPT_ERROR && /* @__PURE__ */ jsx("div", { className: styles$7.errorNotificationWrapper, children: /* @__PURE__ */ jsx(
144459
- Zb2,
144459
+ Bb2,
144460
144460
  {
144461
144461
  kind: "error",
144462
144462
  title: x(
@@ -144471,7 +144471,7 @@ const formView = "ObservationFormsContainer-module_formView__d3K6Z", errorNotifi
144471
144471
  }
144472
144472
  ) }),
144473
144473
  oe === VALIDATION_STATE_SCRIPT_ERROR && ne && /* @__PURE__ */ jsx("div", { className: styles$7.errorNotificationWrapper, children: /* @__PURE__ */ jsx(
144474
- Zb2,
144474
+ Bb2,
144475
144475
  {
144476
144476
  kind: "error",
144477
144477
  title: x("OBSERVATION_FORM_SCRIPT_ERROR_TITLE"),
@@ -144489,7 +144489,7 @@ const formView = "ObservationFormsContainer-module_formView__d3K6Z", errorNotifi
144489
144489
  className: styles$7.formContent,
144490
144490
  "data-testid": "observation-form-content",
144491
144491
  children: Pe || K ? /* @__PURE__ */ jsx(
144492
- cb2,
144492
+ ab2,
144493
144493
  {
144494
144494
  width: "100%",
144495
144495
  lineCount: 3,
@@ -144532,7 +144532,7 @@ const formView = "ObservationFormsContainer-module_formView__d3K6Z", errorNotifi
144532
144532
  if (c) {
144533
144533
  const at = x(h ? "CONSULTATION_PAD_DONE_BUTTON" : oe ? "OBSERVATION_FORM_CONTINUE_ANYWAY_BUTTON" : "OBSERVATION_FORM_SAVE_BUTTON"), rt = x(h ? "CONSULTATION_PAD_CANCEL_BUTTON" : "OBSERVATION_FORM_DISCARD_BUTTON"), mt = h ? () => qe(E) : oe ? Je : qe, $t = h ? C ?? Ue : Ue;
144534
144534
  return /* @__PURE__ */ jsx(
144535
- Nb2,
144535
+ Ab2,
144536
144536
  {
144537
144537
  className: styles$7.formViewActionArea,
144538
144538
  title: gt,
@@ -144692,7 +144692,7 @@ const ConsultationPad = ({
144692
144692
  isActionAreaExpanded: a,
144693
144693
  onToggleActionAreaExpand: s
144694
144694
  }) => {
144695
- const f = p.preloadedAllergies, d = p.encounterType, h = p.editOnly, E = p.editTitle, C = p.editEncounterUuid, R = p.directFormMode, { t: T } = useTranslation(), { addNotification: H } = K1(), [x, $] = useState(!1), [k, I] = useState(!1), S = useRef(null), { clinicalConfig: z } = useClinicalConfig(), O = useMemo(
144695
+ const f = p.preloadedAllergies, d = p.encounterType, h = p.editOnly, E = p.editTitle, C = p.editEncounterUuid, R = p.directFormMode, { t: T } = useTranslation(), { addNotification: H } = Z1(), [x, $] = useState(!1), [k, I] = useState(!1), S = useRef(null), { clinicalConfig: z } = useClinicalConfig(), O = useMemo(
144696
144696
  () => loadEncounterInputControls(z?.consultationPad),
144697
144697
  [z]
144698
144698
  ), {
@@ -144741,7 +144741,7 @@ const ConsultationPad = ({
144741
144741
  useEffect(() => {
144742
144742
  useEncounterDetailsStore.getState().setRequestedEncounterType(V);
144743
144743
  }, [V]);
144744
- const { episodeOfCare: ie, patientId: ne, activeVisitId: re, activeEpisodeId: Q } = useClinicalAppData(), { practitioner: he } = yke(), { data: ve, status: se } = useQuery({
144744
+ const { episodeOfCare: ie, patientId: ne, activeVisitId: re, activeEpisodeId: Q } = useClinicalAppData(), { practitioner: he } = e8(), { data: ve, status: se } = useQuery({
144745
144745
  queryKey: [
144746
144746
  "activeEncounter",
144747
144747
  ne,
@@ -144977,7 +144977,7 @@ const ConsultationPad = ({
144977
144977
  ), $t = tt || !J || x || !pe || !mt || me;
144978
144978
  return /* @__PURE__ */ jsxs(Fragment, { children: [
144979
144979
  /* @__PURE__ */ jsx(
144980
- Nb2,
144980
+ Ab2,
144981
144981
  {
144982
144982
  "data-testid": "consultation-pad-action-area",
144983
144983
  title: tt ? "" : T(E || "CONSULTATION_ACTION_NEW"),
@@ -145018,8 +145018,8 @@ const ConsultationPad = ({
145018
145018
  isActionAreaExpanded: a,
145019
145019
  onToggleActionAreaExpand: s
145020
145020
  }) => {
145021
- const { t: f } = useTranslation(), { addNotification: d } = K1(), h = g0(), { activeEpisodeId: E } = useClinicalAppData(), { clinicalConfig: C, isLoading: R } = useClinicalConfig(), { encounterConcepts: T } = useEncounterConcepts(), H = H3(
145022
- w01.ADD_VISITS
145021
+ const { t: f } = useTranslation(), { addNotification: d } = Z1(), h = g0(), { activeEpisodeId: E } = useClinicalAppData(), { clinicalConfig: C, isLoading: R } = useClinicalConfig(), { encounterConcepts: T } = useEncounterConcepts(), H = b3(
145022
+ L01.ADD_VISITS
145023
145023
  ), x = useActionAreaExpandProps({
145024
145024
  isExpanded: a,
145025
145025
  onToggleExpand: s
@@ -145113,16 +145113,16 @@ const ConsultationPad = ({
145113
145113
  {
145114
145114
  className: styles$5.loadingWrapper,
145115
145115
  "data-testid": "consultation-pad-container-loading",
145116
- children: /* @__PURE__ */ jsx(Vb2, { description: f("STARTING_VISIT"), withOverlay: !1 })
145116
+ children: /* @__PURE__ */ jsx(Hb2, { description: f("STARTING_VISIT"), withOverlay: !1 })
145117
145117
  }
145118
145118
  ) : ee && (!H || le) ? /* @__PURE__ */ jsx(
145119
- Nb2,
145119
+ Ab2,
145120
145120
  {
145121
145121
  title: f("CONSULTATION_PAD_TITLE"),
145122
145122
  primaryButtonText: f("CLOSE_BUTTON"),
145123
145123
  onPrimaryButtonClick: c,
145124
145124
  content: /* @__PURE__ */ jsx("div", { className: styles$5.bannerWrapper, children: /* @__PURE__ */ jsx(
145125
- Zb2,
145125
+ Bb2,
145126
145126
  {
145127
145127
  kind: "warning",
145128
145128
  title: f("START_VISIT_REQUEST_TO_BE_STARTED"),
@@ -145135,7 +145135,7 @@ const ConsultationPad = ({
145135
145135
  ...x
145136
145136
  }
145137
145137
  ) : ee && H && V.length > 1 ? /* @__PURE__ */ jsx(
145138
- Nb2,
145138
+ Ab2,
145139
145139
  {
145140
145140
  title: f("CONSULTATION_PAD_TITLE"),
145141
145141
  primaryButtonText: f("START_VISIT_BUTTON"),
@@ -145145,7 +145145,7 @@ const ConsultationPad = ({
145145
145145
  onSecondaryButtonClick: ie,
145146
145146
  content: /* @__PURE__ */ jsxs(Fragment, { children: [
145147
145147
  /* @__PURE__ */ jsx("div", { className: styles$5.bannerWrapper, children: /* @__PURE__ */ jsx(
145148
- Zb2,
145148
+ Bb2,
145149
145149
  {
145150
145150
  kind: "warning",
145151
145151
  title: f("START_VISIT_NO_ACTIVE_VISIT_BANNER"),
@@ -145183,7 +145183,7 @@ const ConsultationPad = ({
145183
145183
  visitUuids: f
145184
145184
  }) => {
145185
145185
  const { t: d } = useTranslation(), { matchReasons: h, canEditOrCreate: E, activeEncounter: C } = Y_(), R = h.includes("NO_ACTIVE_VISIT"), T = h.includes("MATCHED"), x = h.includes("MATCHED") ? C?.id ?? null : null, $ = (I, S, z) => {
145186
- const O = y01(I.type);
145186
+ const O = $01(I.type);
145187
145187
  if (!O)
145188
145188
  return /* @__PURE__ */ jsx("div", { className: styles$4.widgetError, children: /* @__PURE__ */ jsx("p", { children: d("CONTROL_NOT_FOUND", { type: I.type }) }) }, `${I.type}-${S}`);
145189
145189
  const Z = S < z - 1;
@@ -145222,7 +145222,7 @@ const ConsultationPad = ({
145222
145222
  "data-testid": `dashboard-section-wrapper-${p.name}`,
145223
145223
  children: [
145224
145224
  /* @__PURE__ */ jsx(
145225
- Ry2,
145225
+ Oy2,
145226
145226
  {
145227
145227
  id: `section-${p.id}`,
145228
145228
  className: styles$4.sectionName,
@@ -145275,7 +145275,7 @@ const ConsultationPad = ({
145275
145275
  });
145276
145276
  }
145277
145277
  }, [c, p, a]), p.length ? /* @__PURE__ */ jsx(
145278
- Mb2,
145278
+ Eb2,
145279
145279
  {
145280
145280
  className: styles$3.sectionContainer,
145281
145281
  "data-testid": "dashboard-container",
@@ -145375,16 +145375,16 @@ const CONSULTATION_START_EVENT = "startConsultation", dispatchConsultationStart
145375
145375
  isLoading: a
145376
145376
  }) => {
145377
145377
  const { t: s } = useTranslation();
145378
- return H3(
145379
- w01.ENCOUNTER
145378
+ return b3(
145379
+ L01.ENCOUNTER
145380
145380
  ) ? a ? /* @__PURE__ */ jsx(
145381
- ab2,
145381
+ ob2,
145382
145382
  {
145383
145383
  className: styles$2.newConsultationButtonSkeleton,
145384
145384
  testId: "consultation-action-button-skeleton"
145385
145385
  }
145386
145386
  ) : /* @__PURE__ */ jsx(
145387
- Vs1,
145387
+ Hs1,
145388
145388
  {
145389
145389
  size: "md",
145390
145390
  disabled: p,
@@ -145399,7 +145399,7 @@ const CONSULTATION_START_EVENT = "startConsultation", dispatchConsultationStart
145399
145399
  isActionAreaVisible: p,
145400
145400
  printOptions: c
145401
145401
  }) => {
145402
- const { t: a } = useTranslation(), { practitioner: s } = yke(), { clinicalConfig: f } = useClinicalConfig(), { encounterConcepts: d } = useEncounterConcepts(), h = g0(), E = f?.consultationPad?.inputControls?.find(
145402
+ const { t: a } = useTranslation(), { practitioner: s } = e8(), { clinicalConfig: f } = useClinicalConfig(), { encounterConcepts: d } = useEncounterConcepts(), h = g0(), E = f?.consultationPad?.inputControls?.find(
145403
145403
  (F) => F.type === "encounterDetails"
145404
145404
  )?.metadata?.defaultEncounterType, C = useMemo(() => {
145405
145405
  if (!(!E || !d))
@@ -145454,7 +145454,7 @@ const CONSULTATION_START_EVENT = "startConsultation", dispatchConsultationStart
145454
145454
  "data-active-encounter-uuid": T && H?.id ? H.id : void 0,
145455
145455
  "data-active-practitioner-uuid": s?.uuid ?? void 0,
145456
145456
  children: [
145457
- /* @__PURE__ */ jsx(o01, {}),
145457
+ /* @__PURE__ */ jsx(V01, {}),
145458
145458
  /* @__PURE__ */ jsxs("div", { className: styles$2.actionButtons, children: [
145459
145459
  /* @__PURE__ */ jsx(
145460
145460
  ConsultationActionButton,
@@ -145465,7 +145465,7 @@ const CONSULTATION_START_EVENT = "startConsultation", dispatchConsultationStart
145465
145465
  }
145466
145466
  ),
145467
145467
  /* @__PURE__ */ jsx(
145468
- e01,
145468
+ g01,
145469
145469
  {
145470
145470
  printOptions: c,
145471
145471
  renderContext: Z,
@@ -145518,7 +145518,7 @@ const CONSULTATION_START_EVENT = "startConsultation", dispatchConsultationStart
145518
145518
  return null;
145519
145519
  }
145520
145520
  }, isPatientResult = (p) => "uuid" in p, alwaysTrue = () => !0, PatientSearch = ({ isOpen: p, onClose: c }) => {
145521
- const { t: a } = useTranslation(), s = useNavigate(), { addNotification: f } = K1(), { clinicalConfig: d } = useClinicalConfig(), h = useRef(null), [E, C] = useState(""), [R, T] = useState(""), H = d?.patientSearch?.displayFields ?? DEFAULT_DISPLAY_FIELDS, { results: x, isLoading: $, isError: k, error: I } = usePatientSearch(R), S = useMemo(() => R.trim() ? $ ? [{ display: a("SEARCHING"), disabled: !0 }] : k ? [
145521
+ const { t: a } = useTranslation(), s = useNavigate(), { addNotification: f } = Z1(), { clinicalConfig: d } = useClinicalConfig(), h = useRef(null), [E, C] = useState(""), [R, T] = useState(""), H = d?.patientSearch?.displayFields ?? DEFAULT_DISPLAY_FIELDS, { results: x, isLoading: $, isError: k, error: I } = usePatientSearch(R), S = useMemo(() => R.trim() ? $ ? [{ display: a("SEARCHING"), disabled: !0 }] : k ? [
145522
145522
  {
145523
145523
  display: I?.message ?? a("ERROR_DEFAULT_TITLE"),
145524
145524
  disabled: !0
@@ -145587,7 +145587,7 @@ const CONSULTATION_START_EVENT = "startConsultation", dispatchConsultationStart
145587
145587
  className: styles$1.patientSearchContainer,
145588
145588
  "data-testid": "patient-search-container",
145589
145589
  children: /* @__PURE__ */ jsx(
145590
- Gy2,
145590
+ Ky2,
145591
145591
  {
145592
145592
  id: "patient-search-combobox",
145593
145593
  "data-testid": "patient-search-combobox",
@@ -145656,7 +145656,7 @@ const CONSULTATION_START_EVENT = "startConsultation", dispatchConsultationStart
145656
145656
  a,
145657
145657
  C?.id
145658
145658
  ]);
145659
- return h && c.length > 0 ? /* @__PURE__ */ jsx(Vb2, { description: s("LOADING_CLINICAL_DATA"), role: "status" }) : E ? /* @__PURE__ */ jsx("div", { className: "alert alert-danger", children: s("ERROR_FETCHING_CLINICAL_DATA") }) : /* @__PURE__ */ jsx(ClinicalAppContext.Provider, { value: R, children: p });
145659
+ return h && c.length > 0 ? /* @__PURE__ */ jsx(Hb2, { description: s("LOADING_CLINICAL_DATA"), role: "status" }) : E ? /* @__PURE__ */ jsx("div", { className: "alert alert-danger", children: s("ERROR_FETCHING_CLINICAL_DATA") }) : /* @__PURE__ */ jsx(ClinicalAppContext.Provider, { value: R, children: p });
145660
145660
  };
145661
145661
  ClinicalAppProvider.displayName = "clinical apps provider";
145662
145662
  const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/${p}`, EPISODE_UUID_SEARCH_PARAMS_KEY = "episodeUuid", CURRENT_DASHBOARD_SEARCH_PARAMS_KEY = "currentDashboard", PROGRAM_UUID_SEARCH_PARAMS_KEY = "programUuid", $schema = "http://json-schema.org/draft-07/schema#", title = "Clinical Dashboard Configuration Schema", description = "Schema for dashboards in clinical app which contains sections and associated controls", type = "object", additionalProperties = !1, required = ["sections"], properties = { sections: { type: "array", description: "Section in a dashboard", items: { type: "object", additionalProperties: !1, required: ["name", "icon", "controls"], properties: { name: { type: "string", description: "Display name of the section" }, translationKey: { type: "string", description: "Translation key for the section name" }, icon: { type: "string", description: "Fontawesome Icon name for the section" }, controls: { type: "array", description: "List of controls in the section", items: { type: "object", additionalProperties: !1, required: ["type"], properties: { type: { type: "string", description: "Type of the control" }, requiredPrivileges: { type: "array", description: "List of required privileges for the control", items: { type: "string" } }, config: { type: "object", description: "Configuration for the control. For 'programs' type, see programsConfig definition." } } } } } } } }, dashboardConfigSchema = {
@@ -145677,7 +145677,7 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
145677
145677
  );
145678
145678
  return c || p[0];
145679
145679
  }, filterControlsByPrivileges = (p) => p.filter(
145680
- (c) => H3(c.requiredPrivileges)
145680
+ (c) => b3(c.requiredPrivileges)
145681
145681
  ), filterSectionsByPrivileges = (p) => p.map((c) => ({
145682
145682
  ...c,
145683
145683
  controls: filterControlsByPrivileges(c.controls)
@@ -145691,7 +145691,7 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
145691
145691
  (c) => c.id ? c : { ...c, id: SE() }
145692
145692
  )
145693
145693
  } : p, ConsultationPage = () => {
145694
- const { t: p } = useTranslation(), { clinicalConfig: c, isLoading: a } = useClinicalConfig(), { userPrivileges: s } = Xr(), { addNotification: f } = K1(), [d, h] = useState(!1), [E, C] = useState(!1), [R, T] = useState(null);
145694
+ const { t: p } = useTranslation(), { clinicalConfig: c, isLoading: a } = useClinicalConfig(), { userPrivileges: s } = Jr(), { addNotification: f } = Z1(), [d, h] = useState(!1), [E, C] = useState(!1), [R, T] = useState(null);
145695
145695
  useSubscribeConsultationStart(
145696
145696
  useCallback((he) => {
145697
145697
  T(he), h(!0), C(!1);
@@ -145754,7 +145754,7 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
145754
145754
  sections: filterSectionsByPrivileges(X.sections)
145755
145755
  }, [X, s]), pe = useMemo(() => !N?.printOptions || !s ? [] : N.printOptions.filter(
145756
145756
  (he) => sw(s, he.privileges)
145757
- ), [N, s]), J = useMemo(() => ee ? getSidebarItems(ee, p) : [], [ee, p]), [ae, oe] = useState(0), { activeItemId: ie, handleItemClick: ne } = Eb2(J), re = useCallback(
145757
+ ), [N, s]), J = useMemo(() => ee ? getSidebarItems(ee, p) : [], [ee, p]), [ae, oe] = useState(0), { activeItemId: ie, handleItemClick: ne } = Vb2(J), re = useCallback(
145758
145758
  (he) => {
145759
145759
  ne(he), oe((ve) => ve + 1);
145760
145760
  },
@@ -145762,7 +145762,7 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
145762
145762
  );
145763
145763
  if (a)
145764
145764
  return /* @__PURE__ */ jsx(
145765
- Vb2,
145765
+ Hb2,
145766
145766
  {
145767
145767
  id: "loading-clinical-config",
145768
145768
  description: p("LOADING_CLINICAL_CONFIG"),
@@ -145770,7 +145770,7 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
145770
145770
  }
145771
145771
  );
145772
145772
  if (!s)
145773
- return /* @__PURE__ */ jsx(Vb2, { description: p("LOADING_USER_PRIVILEGES"), role: "status" });
145773
+ return /* @__PURE__ */ jsx(Hb2, { description: p("LOADING_USER_PRIVILEGES"), role: "status" });
145774
145774
  if (!N) {
145775
145775
  const he = W ? p("ERROR_DASHBOARD_NOT_CONFIGURED", {
145776
145776
  dashboardName: W
@@ -145789,7 +145789,7 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
145789
145789
  }
145790
145790
  if (V)
145791
145791
  return /* @__PURE__ */ jsx(
145792
- Vb2,
145792
+ Hb2,
145793
145793
  {
145794
145794
  id: "loading-dashboard-config",
145795
145795
  "data-testid": "loading-dashboard-config-test-id",
@@ -145809,7 +145809,7 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
145809
145809
  const Q = () => {
145810
145810
  const he = $.get(PROGRAM_UUID_SEARCH_PARAMS_KEY);
145811
145811
  return he && c.contextInformation?.program ? /* @__PURE__ */ jsx(
145812
- p01,
145812
+ z01,
145813
145813
  {
145814
145814
  programUUID: he,
145815
145815
  config: {
@@ -145821,14 +145821,14 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
145821
145821
  return /* @__PURE__ */ jsxs(ClinicalAppProvider, { episodeUuids: U, patientId: O, children: [
145822
145822
  /* @__PURE__ */ jsx(PatientSearch, { isOpen: H, onClose: I }),
145823
145823
  /* @__PURE__ */ jsx(
145824
- gb2,
145824
+ vb2,
145825
145825
  {
145826
145826
  headerWSideNav: /* @__PURE__ */ jsx(
145827
- Hz2,
145827
+ Cz2,
145828
145828
  {
145829
145829
  breadcrumbItems: F,
145830
145830
  globalActions: S,
145831
- userMenu: /* @__PURE__ */ jsx(f11, {}),
145831
+ userMenu: /* @__PURE__ */ jsx(T11, {}),
145832
145832
  sideNavItems: E ? [] : J,
145833
145833
  activeSideNavItemId: ie,
145834
145834
  onSideNavItemClick: re,
@@ -145840,7 +145840,7 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
145840
145840
  {
145841
145841
  "data-testid": "suspense-dashboard-container-test-id",
145842
145842
  fallback: /* @__PURE__ */ jsx(
145843
- Vb2,
145843
+ Hb2,
145844
145844
  {
145845
145845
  id: "loading-dashboard-content",
145846
145846
  "data-testid": "loading-dashboard-content-test-id",