@bahmni/clinical-app 0.0.1-dev.454 → 0.0.1-dev.455

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.
@@ -42233,7 +42233,7 @@ function mu({
42233
42233
  }, i), a));
42234
42234
  }
42235
42235
  const {
42236
- open: hTt,
42236
+ open: fTt,
42237
42237
  ...ZD2
42238
42238
  } = wi.propTypes ?? {};
42239
42239
  mu.propTypes = {
@@ -71600,7 +71600,7 @@ const FU2 = "_box_1jr6a_1", jU2 = "_header_1jr6a_8", $Ce = {
71600
71600
  container: qU2,
71601
71601
  accordion: WU2,
71602
71602
  rows: KU2
71603
- }, mTt = ({
71603
+ }, gTt = ({
71604
71604
  title: t,
71605
71605
  rows: e,
71606
71606
  children: r,
@@ -74269,23 +74269,23 @@ f0.getAdapter = wq1.getAdapter;
74269
74269
  f0.HttpStatusCode = bv;
74270
74270
  f0.default = f0;
74271
74271
  const {
74272
- Axios: vTt,
74273
- AxiosError: ETt,
74274
- CanceledError: yTt,
74275
- isCancel: MTt,
74276
- CancelToken: VTt,
74277
- VERSION: zTt,
74278
- all: bTt,
74279
- Cancel: HTt,
74280
- isAxiosError: xTt,
74281
- spread: NTt,
74282
- toFormData: CTt,
74283
- AxiosHeaders: ATt,
74284
- HttpStatusCode: LTt,
74285
- formToJSON: _Tt,
74286
- getAdapter: TTt,
74287
- mergeConfig: OTt,
74288
- create: $Tt
74272
+ Axios: ETt,
74273
+ AxiosError: yTt,
74274
+ CanceledError: MTt,
74275
+ isCancel: VTt,
74276
+ CancelToken: zTt,
74277
+ VERSION: bTt,
74278
+ all: HTt,
74279
+ Cancel: xTt,
74280
+ isAxiosError: NTt,
74281
+ spread: CTt,
74282
+ toFormData: ATt,
74283
+ AxiosHeaders: LTt,
74284
+ HttpStatusCode: _Tt,
74285
+ formToJSON: TTt,
74286
+ getAdapter: OTt,
74287
+ mergeConfig: $Tt,
74288
+ create: DTt
74289
74289
  } = f0, zK2 = (t) => typeof t == "object" && t !== null && "resourceType" in t && t.resourceType === "OperationOutcome", bK2 = (t) => {
74290
74290
  if (!t.issue || !Array.isArray(t.issue))
74291
74291
  return null;
@@ -83390,7 +83390,7 @@ async function mW1(t, e, r) {
83390
83390
  const n = fW1(t, e, r);
83391
83391
  return await r2(n);
83392
83392
  }
83393
- async function RTt(t, e, r) {
83393
+ async function STt(t, e, r) {
83394
83394
  const n = fW1(
83395
83395
  t,
83396
83396
  e,
@@ -83400,7 +83400,7 @@ async function RTt(t, e, r) {
83400
83400
  );
83401
83401
  return await r2(n);
83402
83402
  }
83403
- async function STt(t, e, r, n) {
83403
+ async function kTt(t, e, r, n) {
83404
83404
  const a = ze0(
83405
83405
  t,
83406
83406
  e,
@@ -83554,7 +83554,7 @@ const wW1 = async () => {
83554
83554
  schema: n,
83555
83555
  translations: d
83556
83556
  };
83557
- }, kTt = async (t, e, r) => {
83557
+ }, ITt = async (t, e, r) => {
83558
83558
  const n = Ve0(t, r), a = await r2(n);
83559
83559
  return Array.isArray(a) ? a : [];
83560
83560
  }, Be0 = m0 + "/bahmnicore/diseaseSummaryData?", Pe0 = async (t, e, r, n) => {
@@ -83677,7 +83677,7 @@ function n10(t) {
83677
83677
  };
83678
83678
  });
83679
83679
  }
83680
- async function ITt(t, e, r = 10, n = 1) {
83680
+ async function ZTt(t, e, r = 10, n = 1) {
83681
83681
  const a = (n - 1) * r, l = Xe0(
83682
83682
  t,
83683
83683
  e,
@@ -83942,7 +83942,7 @@ function _10(t, e) {
83942
83942
  t.addEventListener("afterprint", a), window.addEventListener("afterprint", a), window.addEventListener("blur", l), window.addEventListener("focus", i), e?.addEventListener("abort", a), e?.aborted && a();
83943
83943
  });
83944
83944
  }
83945
- async function ZTt(t, { container: e, focus: r = !0, signal: n } = {}) {
83945
+ async function BTt(t, { container: e, focus: r = !0, signal: n } = {}) {
83946
83946
  const a = await fetch(t, { credentials: "same-origin", signal: n });
83947
83947
  if (!a.ok)
83948
83948
  throw new Error(
@@ -83998,7 +83998,7 @@ function D10(t) {
83998
83998
  const e = M10[t.category];
83999
83999
  return e ? O10(e) : $10(t.category);
84000
84000
  }
84001
- const BTt = ({
84001
+ const PTt = ({
84002
84002
  printOptions: t,
84003
84003
  renderContext: e,
84004
84004
  renderData: r,
@@ -84209,7 +84209,7 @@ const J10 = (t) => t.startsWith("image/") || t.startsWith("video/") || t === "ap
84209
84209
  note: "",
84210
84210
  files: [],
84211
84211
  errors: {}
84212
- }), PTt = (t) => !t.documentType && !t.documentId.trim() && !t.note.trim() && t.files.length === 0, e_e = 5e3, r20 = ({
84212
+ }), FTt = (t) => !t.documentType && !t.documentId.trim() && !t.note.trim() && t.files.length === 0, e_e = 5e3, r20 = ({
84213
84213
  supportedFileTypes: t,
84214
84214
  maxFileSizeMb: e
84215
84215
  } = {}) => {
@@ -84387,7 +84387,7 @@ const mm = (t, e) => ({ ...t, [e]: void 0 }), a20 = ({ file: t }) => t.contentTy
84387
84387
  }
84388
84388
  ) })
84389
84389
  ] });
84390
- }, FTt = ({
84390
+ }, jTt = ({
84391
84391
  documents: t,
84392
84392
  onDocumentsChange: e,
84393
84393
  config: r,
@@ -90696,7 +90696,7 @@ function lo0(t, e) {
90696
90696
  ageDetails: ao0(t.birthDate, e)
90697
90697
  };
90698
90698
  }
90699
- const jTt = () => {
90699
+ const UTt = () => {
90700
90700
  const { t } = B1(), { addNotification: e } = O0(), r = Ct(), {
90701
90701
  data: n,
90702
90702
  isLoading: a,
@@ -95215,7 +95215,7 @@ const gz = (t) => t?.controls ?? [], OK1 = (t) => t.flatMap((e) => [
95215
95215
  const r = e.split("/")[0].split("^").pop()?.replace(/\.\d+$/, "");
95216
95216
  if (r)
95217
95217
  return r;
95218
- }, qTt = (t, e) => t?.date ? U1(t.date, e).formattedResult : e("DATE_ERROR_PARSE"), wz = (t, e, r) => {
95218
+ }, WTt = (t, e) => t?.date ? U1(t.date, e).formattedResult : e("DATE_ERROR_PARSE"), wz = (t, e, r) => {
95219
95219
  if (t.observationValue?.value == null)
95220
95220
  return "";
95221
95221
  const { value: n, unit: a, type: l } = t.observationValue;
@@ -95248,7 +95248,7 @@ const gz = (t) => t?.controls ?? [], OK1 = (t) => t.flatMap((e) => [
95248
95248
  display: e,
95249
95249
  referenceRange: i || void 0
95250
95250
  };
95251
- }, WTt = (t, e, r) => ({
95251
+ }, KTt = (t, e, r) => ({
95252
95252
  index: e,
95253
95253
  header: al0(t),
95254
95254
  value: wz(t, r),
@@ -95282,7 +95282,7 @@ function RK1(t, e, r) {
95282
95282
  // conceptId is required to group the multiselect obs
95283
95283
  };
95284
95284
  }
95285
- function KTt(t) {
95285
+ function GTt(t) {
95286
95286
  const e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set();
95287
95287
  t.entry?.forEach(({ resource: i }) => {
95288
95288
  i?.id && (i.resourceType === "Encounter" ? e.set(i.id, i) : i.resourceType === "Observation" && (r.set(i.id, i), i.hasMember?.forEach((c) => {
@@ -95301,7 +95301,7 @@ function KTt(t) {
95301
95301
  s.members ? l.push(s) : a.push(s);
95302
95302
  }), { observations: a, groupedObservations: l };
95303
95303
  }
95304
- function GTt(t) {
95304
+ function YTt(t) {
95305
95305
  const e = /* @__PURE__ */ new Map();
95306
95306
  return t.observations.forEach((r) => {
95307
95307
  if (!r.encounter?.id) return;
@@ -95327,13 +95327,13 @@ function GTt(t) {
95327
95327
  };
95328
95328
  });
95329
95329
  }
95330
- function YTt(t) {
95330
+ function JTt(t) {
95331
95331
  return [...t].sort((e, r) => {
95332
95332
  const n = e.encounterDetails?.date, a = r.encounterDetails?.date;
95333
95333
  return !n && !a ? 0 : n ? a ? new Date(a).getTime() - new Date(n).getTime() : -1 : 1;
95334
95334
  });
95335
95335
  }
95336
- function JTt(t) {
95336
+ function QTt(t) {
95337
95337
  const e = [...t.observations, ...t.groupedObservations];
95338
95338
  if (e.length === 0) return t;
95339
95339
  const r = e.reduce(
@@ -96780,7 +96780,7 @@ const Ti0 = ({
96780
96780
  key: t.key,
96781
96781
  component: t.component
96782
96782
  });
96783
- }, QTt = (t) => FK1.find((e) => e.key === t), Ri0 = (t) => {
96783
+ }, XTt = (t) => FK1.find((e) => e.key === t), Ri0 = (t) => {
96784
96784
  switch (t?.toLowerCase()) {
96785
96785
  case "scheduled":
96786
96786
  return "scheduledStatus";
@@ -103126,7 +103126,7 @@ const E60 = (t) => ["programs", t], y60 = async (t, e, r) => {
103126
103126
  );
103127
103127
  }
103128
103128
  return aRe(n, e);
103129
- }, XTt = ({
103129
+ }, eOt = ({
103130
103130
  programUUID: t,
103131
103131
  config: e
103132
103132
  }) => {
@@ -104628,7 +104628,7 @@ var s80 = function(t) {
104628
104628
  return a ? (n.push.apply(n, Array.from(a.querySelectorAll("[aria-live], script"))), u80(n, a, r, "aria-hidden")) : function() {
104629
104629
  return null;
104630
104630
  };
104631
- }, Vp = "Dialog", [mG1, eOt] = W60(Vp), [h80, An] = mG1(Vp), gG1 = (t) => {
104631
+ }, Vp = "Dialog", [mG1, tOt] = W60(Vp), [h80, An] = mG1(Vp), gG1 = (t) => {
104632
104632
  const {
104633
104633
  __scopeDialog: e,
104634
104634
  children: r,
@@ -104830,7 +104830,7 @@ V80.displayName = bG1;
104830
104830
  function Hz(t) {
104831
104831
  return t ? "open" : "closed";
104832
104832
  }
104833
- var HG1 = "DialogTitleWarning", [tOt, xG1] = q60(HG1, {
104833
+ var HG1 = "DialogTitleWarning", [rOt, xG1] = q60(HG1, {
104834
104834
  contentName: t4,
104835
104835
  titleName: bz,
104836
104836
  docsSlug: "dialog"
@@ -105789,7 +105789,7 @@ const RG1 = ({
105789
105789
  return /* @__PURE__ */ P(uK1.Provider, { value: c, children: t });
105790
105790
  };
105791
105791
  RG1.displayName = "UserPrivilegeProvider";
105792
- const rOt = {
105792
+ const nOt = {
105793
105793
  ADD_VISITS: ["Add Visits"],
105794
105794
  ENCOUNTER: ["Add Encounters"],
105795
105795
  ALLERGIES: ["Add Allergies"],
@@ -105867,7 +105867,7 @@ function K90(t) {
105867
105867
  };
105868
105868
  return s.displayName = c, s;
105869
105869
  }
105870
- function nOt(t, e, r) {
105870
+ function oOt(t, e, r) {
105871
105871
  return () => {
105872
105872
  const n = f1(t);
105873
105873
  if (!n)
@@ -107231,7 +107231,7 @@ const yd0 = [
107231
107231
  },
107232
107232
  {
107233
107233
  type: "patientDocuments",
107234
- component: B0(() => import("./DocumentsTable-DH1dnlXy-CDnlgcKX.js"))
107234
+ component: B0(() => import("./DocumentsTable-DZ1zyEeJ-kd0VewLu.js"))
107235
107235
  },
107236
107236
  {
107237
107237
  type: "flowSheet",
@@ -107239,7 +107239,7 @@ const yd0 = [
107239
107239
  },
107240
107240
  {
107241
107241
  type: "forms",
107242
- component: B0(() => import("./FormsTable-B8Zxjboo-Cy7HqC-X.js"))
107242
+ component: B0(() => import("./FormsTable-C1Yy7yQt-Cpcr6hZH.js"))
107243
107243
  },
107244
107244
  {
107245
107245
  type: "labOrders",
@@ -107247,7 +107247,7 @@ const yd0 = [
107247
107247
  },
107248
107248
  {
107249
107249
  type: "observations",
107250
- component: B0(() => import("./Observations-BzjjSeWg-Cz9cdvoF.js"))
107250
+ component: B0(() => import("./Observations-D079FoDG-CwfXmRAB.js"))
107251
107251
  },
107252
107252
  {
107253
107253
  type: "ordersControl",
@@ -107325,7 +107325,7 @@ let Md0 = class xc {
107325
107325
  this.registry.clear(), this.registerBuiltInWidgets();
107326
107326
  }
107327
107327
  };
107328
- const oOt = (t) => Md0.getInstance().get(t), Vd0 = "/bahmni/home/index.html#/changePassword", zd0 = {
107328
+ const aOt = (t) => Md0.getInstance().get(t), Vd0 = "/bahmni/home/index.html#/changePassword", zd0 = {
107329
107329
  id: "user-change-password-global-action",
107330
107330
  label: "USER_CHANGE_PASSWORD_GLOBAL_ACTION",
107331
107331
  onClick: () => {
@@ -109787,23 +109787,23 @@ E0.getAdapter = pY1.getAdapter;
109787
109787
  E0.HttpStatusCode = Jv;
109788
109788
  E0.default = E0;
109789
109789
  const {
109790
- Axios: sOt,
109791
- AxiosError: dOt,
109792
- CanceledError: uOt,
109793
- isCancel: pOt,
109794
- CancelToken: hOt,
109795
- VERSION: fOt,
109796
- all: mOt,
109797
- Cancel: gOt,
109798
- isAxiosError: wOt,
109799
- spread: vOt,
109800
- toFormData: EOt,
109801
- AxiosHeaders: yOt,
109802
- HttpStatusCode: MOt,
109803
- formToJSON: VOt,
109804
- getAdapter: zOt,
109805
- mergeConfig: bOt,
109806
- create: HOt
109790
+ Axios: dOt,
109791
+ AxiosError: uOt,
109792
+ CanceledError: pOt,
109793
+ isCancel: hOt,
109794
+ CancelToken: fOt,
109795
+ VERSION: mOt,
109796
+ all: gOt,
109797
+ Cancel: wOt,
109798
+ isAxiosError: vOt,
109799
+ spread: EOt,
109800
+ toFormData: yOt,
109801
+ AxiosHeaders: MOt,
109802
+ HttpStatusCode: VOt,
109803
+ formToJSON: zOt,
109804
+ getAdapter: bOt,
109805
+ mergeConfig: HOt,
109806
+ create: xOt
109807
109807
  } = E0, Dp0 = (t) => typeof t == "object" && t !== null && "resourceType" in t && t.resourceType === "OperationOutcome", Rp0 = (t) => {
109808
109808
  if (!t.issue || !Array.isArray(t.issue))
109809
109809
  return null;
@@ -109977,7 +109977,7 @@ function Jp0(t, e) {
109977
109977
  return Yp0(d, s);
109978
109978
  });
109979
109979
  }
109980
- const Qp0 = process.env.PUBLIC_URL ?? "/", At = "/openmrs/ws/fhir2/R4", $0 = "/openmrs/ws/rest/v1", Xp0 = "bahmni.user.location", eh0 = "/bahmni-v2", th0 = "/home", xOt = eh0 + th0, rh0 = $0 + "/session", nh0 = `${$0}/bahmnicore/template/api`, Qv = (t) => {
109980
+ const Qp0 = process.env.PUBLIC_URL ?? "/", At = "/openmrs/ws/fhir2/R4", $0 = "/openmrs/ws/rest/v1", Xp0 = "bahmni.user.location", eh0 = "/bahmni-v2", th0 = "/home", NOt = eh0 + th0, rh0 = $0 + "/session", nh0 = `${$0}/bahmnicore/template/api`, Qv = (t) => {
109981
109981
  if (typeof t == "string")
109982
109982
  return Jp0(t);
109983
109983
  if (Array.isArray(t))
@@ -111752,7 +111752,7 @@ const Bh0 = "en", bY1 = "NG_TRANSLATE_LANG_KEY", Ph0 = (t, e) => Qp0 + `${t}/loc
111752
111752
  useSuspense: !0
111753
111753
  }
111754
111754
  }), W2;
111755
- }, qh0 = "bahmni.enableAuditLog", Rz = (t) => `${$0}/bahmnicore/sql/globalproperty?property=${t}`, Wh0 = "http://hl7.org/fhir/StructureDefinition/patient-birthTime", ROt = "http://fhir.openmrs.org/code-system/encounter-type", Kh0 = "http://terminology.hl7.org/CodeSystem/v3-ActCode", Gh0 = "http://fhir.openmrs.org/ext/encounter-tag", Yh0 = "problem-list-item", SOt = "http://terminology.hl7.org/CodeSystem/condition-ver-status", Jh0 = "encounter-diagnosis", kOt = "http://terminology.hl7.org/CodeSystem/condition-clinical", IOt = "http://terminology.hl7.org/CodeSystem/condition-category", ZOt = "http://fhir.bahmni.org/ext/medicationRequest/note-category", BOt = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/, POt = () => Math.random().toString(36).substring(2, 9), xY1 = () => {
111755
+ }, qh0 = "bahmni.enableAuditLog", Rz = (t) => `${$0}/bahmnicore/sql/globalproperty?property=${t}`, Wh0 = "http://hl7.org/fhir/StructureDefinition/patient-birthTime", SOt = "http://fhir.openmrs.org/code-system/encounter-type", Kh0 = "http://terminology.hl7.org/CodeSystem/v3-ActCode", Gh0 = "http://fhir.openmrs.org/ext/encounter-tag", Yh0 = "problem-list-item", kOt = "http://terminology.hl7.org/CodeSystem/condition-ver-status", Jh0 = "encounter-diagnosis", IOt = "http://terminology.hl7.org/CodeSystem/condition-clinical", ZOt = "http://terminology.hl7.org/CodeSystem/condition-category", BOt = "http://fhir.bahmni.org/ext/medicationRequest/note-category", POt = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/, FOt = () => Math.random().toString(36).substring(2, 9), xY1 = () => {
111756
111756
  if (typeof globalThis < "u" && globalThis.crypto?.randomUUID)
111757
111757
  return globalThis.crypto.randomUUID();
111758
111758
  const t = globalThis.crypto || globalThis.msCrypto;
@@ -111764,7 +111764,7 @@ const Bh0 = "en", bY1 = "NG_TRANSLATE_LANG_KEY", Ph0 = (t, e) => Qp0 + `${t}/loc
111764
111764
  "Crypto API (crypto.randomUUID or crypto.getRandomValues) is not available. UUID generation requires cryptographically secure random number generation."
111765
111765
  );
111766
111766
  };
111767
- function FOt(t, e = " -") {
111767
+ function jOt(t, e = " -") {
111768
111768
  return t ? t.toLowerCase().split(new RegExp(`[${e}]+`)).map((r) => r.charAt(0).toUpperCase() + r.slice(1)).join(" ") : "";
111769
111769
  }
111770
111770
  function Qh0(t) {
@@ -111779,7 +111779,7 @@ function Qh0(t) {
111779
111779
  function Xh0(t) {
111780
111780
  return decodeURIComponent(t).replace(/^"(.*)"$/, "$1");
111781
111781
  }
111782
- const jOt = (t) => !t || t.trim().length === 0;
111782
+ const UOt = (t) => !t || t.trim().length === 0;
111783
111783
  function ef0(t, e, r) {
111784
111784
  const n = /{{([^}]*)}}/g, a = t.match(n);
111785
111785
  let l = t;
@@ -111789,7 +111789,7 @@ function ef0(t, e, r) {
111789
111789
  l = l.replace(i, s);
111790
111790
  }), l.trim();
111791
111791
  }
111792
- function UOt(t, e, r, n, a) {
111792
+ function qOt(t, e, r, n, a) {
111793
111793
  const l = (i) => ({
111794
111794
  ...n(i),
111795
111795
  disabled: !0
@@ -111816,7 +111816,7 @@ const NY1 = () => {
111816
111816
  startIndex: "0"
111817
111817
  });
111818
111818
  return `${$0}/bahmni/search/patient/lucene?${n.toString()}`;
111819
- }, nf0 = /^[a-f0-9-]{36}$/i, qOt = (t) => t === "male" ? "M" : t === "female" ? "F" : t === "other" ? "O" : "U", of0 = async (t) => {
111819
+ }, nf0 = /^[a-f0-9-]{36}$/i, WOt = (t) => t === "male" ? "M" : t === "female" ? "F" : t === "other" ? "O" : "U", of0 = async (t) => {
111820
111820
  if (!t || t.trim() === "" || !nf0.test(t))
111821
111821
  throw new Error(mY1);
111822
111822
  return D2(tf0(t));
@@ -111854,15 +111854,15 @@ const NY1 = () => {
111854
111854
  identifier: l,
111855
111855
  photoUrl: t.photo?.[0]?.url
111856
111856
  };
111857
- }, WOt = async (t) => {
111857
+ }, KOt = async (t) => {
111858
111858
  const e = await of0(t);
111859
111859
  return sf0(e);
111860
- }, KOt = async (t, e) => {
111860
+ }, GOt = async (t, e) => {
111861
111861
  const r = NY1();
111862
111862
  return await D2(
111863
111863
  rf0(t, r.uuid)
111864
111864
  );
111865
- }, GOt = (t) => {
111865
+ }, YOt = (t) => {
111866
111866
  const e = new CustomEvent("bahmni-audit-log", { detail: t });
111867
111867
  window.dispatchEvent(e);
111868
111868
  }, df0 = (t) => {
@@ -111990,7 +111990,7 @@ const NY1 = () => {
111990
111990
  episodeOfCare: [{ reference: `EpisodeOfCare/${n}` }]
111991
111991
  }
111992
111992
  }), wf0 = async (t) => D2(mf0(t)), vf0 = "/openmrs/ws/fhir2/R4/Encounter";
111993
- async function YOt(t, e, r, n, a) {
111993
+ async function JOt(t, e, r, n, a) {
111994
111994
  const l = gf0(
111995
111995
  t,
111996
111996
  e,
@@ -113492,7 +113492,7 @@ const kY1 = "dd/MM/yyyy", Gm0 = "default_dateFormat", da = {
113492
113492
  INVALID_FORMAT: "DATE_ERROR_INVALID_FORMAT",
113493
113493
  NULL_OR_UNDEFINED: "DATE_ERROR_NULL_OR_UNDEFINED"
113494
113494
  };
113495
- function JOt(t) {
113495
+ function QOt(t) {
113496
113496
  if (!t) return null;
113497
113497
  const e = RY1(t);
113498
113498
  if (!g6(e)) return null;
@@ -113559,7 +113559,7 @@ function Qm0() {
113559
113559
  return kY1;
113560
113560
  }
113561
113561
  }
113562
- function QOt(t, e, r = !1, n) {
113562
+ function XOt(t, e, r = !1, n) {
113563
113563
  const a = e ?? ((i) => i);
113564
113564
  let l;
113565
113565
  try {
@@ -113569,7 +113569,7 @@ function QOt(t, e, r = !1, n) {
113569
113569
  }
113570
113570
  return Jm0(t, l, a);
113571
113571
  }
113572
- function XOt(t, e, r) {
113572
+ function e$t(t, e, r) {
113573
113573
  if (!t || !g6(t) || e === null || e === void 0 || !r || typeof e != "number")
113574
113574
  return;
113575
113575
  const n = new Date(t);
@@ -113584,10 +113584,10 @@ function XOt(t, e, r) {
113584
113584
  return;
113585
113585
  }
113586
113586
  }
113587
- const e$t = () => {
113587
+ const t$t = () => {
113588
113588
  const t = /* @__PURE__ */ new Date();
113589
113589
  return t.setHours(0, 0, 0, 0), t;
113590
- }, Xm0 = (t) => At + `/ValueSet/${t}/$expand`, eg0 = (t) => At + `/ValueSet/$expand?filter=${encodeURIComponent(t)}`, tg0 = (t, e, r) => $0 + `/bahmni/terminologies/concepts?limit=${e}&locale=${r}&term=${t}`, t$t = async (t, e = 20) => {
113590
+ }, Xm0 = (t) => At + `/ValueSet/${t}/$expand`, eg0 = (t) => At + `/ValueSet/$expand?filter=${encodeURIComponent(t)}`, tg0 = (t, e, r) => $0 + `/bahmni/terminologies/concepts?limit=${e}&locale=${r}&term=${t}`, r$t = async (t, e = 20) => {
113591
113591
  const r = Cp(), n = tg0(t, e, r);
113592
113592
  return D2(n);
113593
113593
  }, K9 = async (t) => {
@@ -113619,14 +113619,14 @@ const e$t = () => {
113619
113619
  let IY1 = ag0;
113620
113620
  const sg0 = (t) => {
113621
113621
  IY1 = t;
113622
- }, r$t = (t) => t === IY1, dg0 = (t) => t.filter((e) => e.inactive !== !0), ug0 = (t, e) => ({
113622
+ }, n$t = (t) => t === IY1, dg0 = (t) => t.filter((e) => e.inactive !== !0), ug0 = (t, e) => ({
113623
113623
  uuid: t.code ?? "",
113624
113624
  display: t.display ?? "",
113625
113625
  type: e
113626
113626
  }), ig = (t, e) => {
113627
113627
  const r = t.expansion?.contains ?? [];
113628
113628
  return dg0(r).map((n) => ug0(n, e));
113629
- }, n$t = async (t, e, r) => {
113629
+ }, o$t = async (t, e, r) => {
113630
113630
  const n = t ?? W4.MEDICATION.code, a = e ?? W4.FOOD.code, l = r ?? W4.ENVIRONMENT.code, [i, c, s] = await Promise.all([
113631
113631
  K9(n),
113632
113632
  K9(a),
@@ -113646,7 +113646,7 @@ const sg0 = (t) => {
113646
113646
  W4.ENVIRONMENT.display
113647
113647
  )
113648
113648
  ];
113649
- }, o$t = async (t) => {
113649
+ }, a$t = async (t) => {
113650
113650
  const e = t ?? cg0.code;
113651
113651
  return (await K9(e)).compose?.include[0]?.concept ?? [];
113652
113652
  };
@@ -113687,12 +113687,12 @@ function fg0(t) {
113687
113687
  };
113688
113688
  });
113689
113689
  }
113690
- async function a$t(t) {
113690
+ async function l$t(t) {
113691
113691
  const e = await hg0(t);
113692
113692
  return fg0(e);
113693
113693
  }
113694
113694
  let s8 = null;
113695
- async function l$t() {
113695
+ async function i$t() {
113696
113696
  if (s8) return s8;
113697
113697
  const t = await Promise.all(
113698
113698
  Object.entries(ig0).map(
@@ -113707,7 +113707,7 @@ async function l$t() {
113707
113707
  return s8 = Object.fromEntries(t), s8;
113708
113708
  }
113709
113709
  let d8 = null;
113710
- async function i$t() {
113710
+ async function c$t() {
113711
113711
  if (d8) return d8;
113712
113712
  const t = await D2(
113713
113713
  Rz(lg0)
@@ -113716,30 +113716,30 @@ async function i$t() {
113716
113716
  throw new Error("OTHER_NON_CODED_ALLERGEN_CONCEPT_MISSING");
113717
113717
  return d8 = t, sg0(t), d8;
113718
113718
  }
113719
- async function c$t(t, e, r) {
113719
+ async function s$t(t, e, r) {
113720
113720
  return await m6(
113721
113721
  og0(t, r),
113722
113722
  e
113723
113723
  );
113724
113724
  }
113725
- const s$t = {
113725
+ const d$t = {
113726
113726
  medication: "DRUG",
113727
113727
  food: "FOOD",
113728
113728
  environment: "ENVIRONMENT"
113729
- }, d$t = (t) => ({
113729
+ }, u$t = (t) => ({
113730
113730
  resourceType: "EncounterBundle",
113731
113731
  type: "transaction",
113732
113732
  id: xY1(),
113733
113733
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
113734
113734
  entry: t
113735
- }), u$t = (t, e, r, n) => ({
113735
+ }), p$t = (t, e, r, n) => ({
113736
113736
  fullUrl: t,
113737
113737
  resource: e,
113738
113738
  request: {
113739
113739
  method: r,
113740
113740
  url: n ?? e.resourceType
113741
113741
  }
113742
- }), p$t = `${At}/EncounterBundle`, mg0 = (t, e, r) => At + `/Encounter?subject:Patient=${t}&_tag=visit&_sort=-_lastUpdated` + (e ? `&location=${e}` : "");
113742
+ }), h$t = `${At}/EncounterBundle`, mg0 = (t, e, r) => At + `/Encounter?subject:Patient=${t}&_tag=visit&_sort=-_lastUpdated` + (e ? `&location=${e}` : "");
113743
113743
  async function gg0(t, e, r) {
113744
113744
  return await D2(
113745
113745
  mg0(t, e)
@@ -113754,13 +113754,13 @@ async function wg0(t, e, r) {
113754
113754
  async function kz(t, e) {
113755
113755
  return (await wg0(t, e)).find((r) => !r.period?.end) ?? null;
113756
113756
  }
113757
- async function h$t(t, e) {
113757
+ async function f$t(t, e) {
113758
113758
  return await D2(
113759
113759
  `/openmrs/ws/fhir2/R4/Encounter/${t}`,
113760
113760
  e
113761
113761
  );
113762
113762
  }
113763
- async function f$t(t) {
113763
+ async function m$t(t) {
113764
113764
  const e = NY1().uuid, r = (await wf0(e)).uuid;
113765
113765
  return kz(t, r);
113766
113766
  }
@@ -113768,7 +113768,7 @@ const vg0 = (t) => At + `/Condition?category=${Yh0}&patient=${t}&_count=100&_sor
113768
113768
  async function Eg0(t) {
113769
113769
  return await D2(`${vg0(t)}`);
113770
113770
  }
113771
- async function m$t(t) {
113771
+ async function g$t(t) {
113772
113772
  return (await Eg0(t)).entry?.filter((e) => e.resource?.resourceType === "Condition").map((e) => e.resource) ?? [];
113773
113773
  }
113774
113774
  const yg0 = (t) => At + `/Condition?category=${Jh0}&patient=${t}&_count=100&_sort=-_lastUpdated`, cg = [
@@ -113823,27 +113823,27 @@ function Ng0(t) {
113823
113823
  }
113824
113824
  return Array.from(e.values());
113825
113825
  }
113826
- async function g$t(t) {
113826
+ async function w$t(t) {
113827
113827
  const e = await zg0(t), r = xg0(e);
113828
113828
  return Ng0(r);
113829
113829
  }
113830
113830
  var Cg0 = /* @__PURE__ */ ((t) => (t.Active = "active", t.OnHold = "on-hold", t.Completed = "completed", t.Stopped = "stopped", t.Cancelled = "cancelled", t.EnteredInError = "entered-in-error", t.Draft = "draft", t.Unknown = "unknown", t))(Cg0 || {});
113831
- const Ag0 = $0 + "/bahmnicore/config/drugOrders", Lg0 = (t, e) => At + `/Medication?name=${encodeURIComponent(t)}&_count=${e}&_sort=-_lastUpdated`, _g0 = At + "/Medication?code=http://hl7.org/fhir/sid/cvx|&_count=100", w$t = "medication";
113832
- async function v$t() {
113831
+ const Ag0 = $0 + "/bahmnicore/config/drugOrders", Lg0 = (t, e) => At + `/Medication?name=${encodeURIComponent(t)}&_count=${e}&_sort=-_lastUpdated`, _g0 = At + "/Medication?code=http://hl7.org/fhir/sid/cvx|&_count=100", v$t = "medication";
113832
+ async function E$t() {
113833
113833
  return await D2(
113834
113834
  Ag0
113835
113835
  );
113836
113836
  }
113837
- async function E$t(t, e = 20) {
113837
+ async function y$t(t, e = 20) {
113838
113838
  return await D2(
113839
113839
  Lg0(t, e)
113840
113840
  );
113841
113841
  }
113842
- async function y$t() {
113842
+ async function M$t() {
113843
113843
  return await D2(_g0);
113844
113844
  }
113845
113845
  const Tg0 = (t) => `${At}/Medication/${t}`;
113846
- async function M$t(t) {
113846
+ async function V$t(t) {
113847
113847
  return await D2(Tg0(t));
113848
113848
  }
113849
113849
  const Og0 = 200, $g0 = (t, e, r, n, a) => {
@@ -113891,10 +113891,10 @@ const Rg0 = "All Orderables", Sg0 = "/openmrs/ws/rest/v1/ordertype?v=custom:(uui
113891
113891
  });
113892
113892
  });
113893
113893
  }), r;
113894
- }, V$t = async () => {
113894
+ }, z$t = async () => {
113895
113895
  const t = await Zg0(), e = await Bg0();
113896
113896
  return jg0(t, Fg0(e));
113897
- }, z$t = async (t, e, r) => {
113897
+ }, b$t = async (t, e, r) => {
113898
113898
  const n = [];
113899
113899
  for (const a of t) {
113900
113900
  const l = a.uuid;
@@ -118666,11 +118666,11 @@ const Qw0 = /* @__PURE__ */ Ug0(Jw0), Pke = {
118666
118666
  }, Xw0 = async (t) => await D2(t), ev0 = async (t, e) => new Qw0().compile(e)(t), tv0 = (t) => $0 + `/form/${t}?v=custom:(uuid,name,version,published,resources:(value))`, rv0 = (t) => {
118667
118667
  const e = $0 + "/bahmniie/form/latestPublishedForms";
118668
118668
  return t ? e + `?episodeUuid=${t}` : e;
118669
- }, b$t = (t) => $0 + `/user/${t}?v=full`, nv0 = (t, e, r, n) => $0 + `/bahmniie/form/translations?formName=${encodeURIComponent(t)}&formUuid=${e}&formVersion=${r}&locale=${n}`, G9 = "Bahmni", ov0 = (t) => $0 + `/form?q=${encodeURIComponent(t)}&v=custom:(uuid,name,version,published,auditInfo:(dateCreated))`, av0 = (t, e, r) => $0 + "/bahmnicore/patient/" + t + "/forms", lv0 = (t, e) => {
118669
+ }, H$t = (t) => $0 + `/user/${t}?v=full`, nv0 = (t, e, r, n) => $0 + `/bahmniie/form/translations?formName=${encodeURIComponent(t)}&formUuid=${e}&formVersion=${r}&locale=${n}`, G9 = "Bahmni", ov0 = (t) => $0 + `/form?q=${encodeURIComponent(t)}&v=custom:(uuid,name,version,published,auditInfo:(dateCreated))`, av0 = (t, e, r) => $0 + "/bahmnicore/patient/" + t + "/forms", lv0 = (t, e) => {
118670
118670
  let r = `${At}/Observation/$fetch-all?encounter=${t}`;
118671
118671
  return e && (r += `&based-on=${e}`), r;
118672
118672
  };
118673
- async function H$t(t, e) {
118673
+ async function x$t(t, e) {
118674
118674
  return await D2(
118675
118675
  lv0(t, e)
118676
118676
  );
@@ -118706,7 +118706,7 @@ async function sv0(t, e, r) {
118706
118706
  return null;
118707
118707
  }
118708
118708
  }
118709
- async function x$t(t, e, r, n, a) {
118709
+ async function N$t(t, e, r, n, a) {
118710
118710
  try {
118711
118711
  if (!t) return null;
118712
118712
  const l = r ?? await GY1(), i = `ge${new Date(Date.now() - l * 60 * 1e3).toISOString()}`, c = {
@@ -118747,7 +118747,7 @@ function hg(t) {
118747
118747
  return new Date(r.period?.start ?? 0).getTime() - n;
118748
118748
  });
118749
118749
  }
118750
- async function N$t(t, e, r, n) {
118750
+ async function C$t(t, e, r, n) {
118751
118751
  try {
118752
118752
  const a = await kz(t);
118753
118753
  if (!a?.id)
@@ -118812,7 +118812,7 @@ async function N$t(t, e, r, n) {
118812
118812
  };
118813
118813
  }
118814
118814
  }
118815
- function C$t(t) {
118815
+ function A$t(t) {
118816
118816
  return t.matched || t.reasons.includes("LOCATION_MISMATCH") && !t.reasons.includes("SESSION_EXPIRED") && !t.reasons.includes("PROVIDER_MISMATCH");
118817
118817
  }
118818
118818
  const YY1 = {
@@ -118838,7 +118838,7 @@ function uv0(t) {
118838
118838
  function pv0() {
118839
118839
  return Es;
118840
118840
  }
118841
- function A$t(t) {
118841
+ function L$t(t) {
118842
118842
  const e = t.reasons.some(
118843
118843
  (r) => dv0.includes(r)
118844
118844
  );
@@ -118849,20 +118849,20 @@ function A$t(t) {
118849
118849
  isLoading: !1
118850
118850
  }, Fz();
118851
118851
  }
118852
- function L$t(t) {
118852
+ function _$t(t) {
118853
118853
  Es = { ...Es, isLoading: t }, Fz();
118854
118854
  }
118855
- function _$t() {
118855
+ function T$t() {
118856
118856
  Es = { ...YY1 }, Fz();
118857
118857
  }
118858
- function T$t() {
118858
+ function O$t() {
118859
118859
  return nB1(
118860
118860
  uv0,
118861
118861
  pv0
118862
118862
  );
118863
118863
  }
118864
118864
  const hv0 = (t) => At + `/EpisodeOfCare?_revinclude=Encounter:episode-of-care&_id=${t}`;
118865
- async function O$t(t) {
118865
+ async function $$t(t) {
118866
118866
  const e = t.join(","), r = await D2(hv0(e));
118867
118867
  if (r.total === 0)
118868
118868
  throw new Error(
@@ -118953,12 +118953,12 @@ const fg = /* @__PURE__ */ new Map(), fv0 = async (t) => {
118953
118953
  editable: n.editable
118954
118954
  }))
118955
118955
  };
118956
- }, $$t = async (t) => {
118956
+ }, D$t = async (t) => {
118957
118957
  const e = await Ev0(t), r = Cp();
118958
118958
  return e.map(
118959
118959
  (n) => Mv0(n, r)
118960
118960
  );
118961
- }, D$t = async (t) => {
118961
+ }, R$t = async (t) => {
118962
118962
  const e = await fetch(tv0(t));
118963
118963
  if (!e.ok)
118964
118964
  throw new Error(
@@ -118992,7 +118992,7 @@ const fg = /* @__PURE__ */ new Map(), fv0 = async (t) => {
118992
118992
  schema: n,
118993
118993
  translations: d
118994
118994
  };
118995
- }, R$t = async (t, e, r) => {
118995
+ }, S$t = async (t, e, r) => {
118996
118996
  const n = await fetch(ov0(t));
118997
118997
  if (!n.ok) return null;
118998
118998
  const a = await n.json(), l = (Array.isArray(a.results) ? a.results : []).filter(
@@ -119014,11 +119014,11 @@ const fg = /* @__PURE__ */ new Map(), fv0 = async (t) => {
119014
119014
  (s) => new Date(s.auditInfo.dateCreated).getTime() <= r
119015
119015
  );
119016
119016
  return c.length === 0 ? i[0].uuid : c.at(-1).uuid;
119017
- }, S$t = async (t, e, r) => {
119017
+ }, k$t = async (t, e, r) => {
119018
119018
  const n = av0(t), a = await D2(n);
119019
119019
  return Array.isArray(a) ? a : [];
119020
119020
  };
119021
- function k$t(t) {
119021
+ function I$t(t) {
119022
119022
  const e = (s) => String(s).padStart(2, "0"), r = t.getFullYear(), n = e(t.getMonth() + 1), a = e(t.getDate()), l = e(t.getHours()), i = e(t.getMinutes()), c = e(t.getSeconds());
119023
119023
  return `${r}-${n}-${a} ${l}:${i}:${c}`;
119024
119024
  }
@@ -119061,7 +119061,7 @@ function jz(t, e) {
119061
119061
  };
119062
119062
  return n(r.controls);
119063
119063
  }
119064
- function I$t(t, e) {
119064
+ function Z$t(t, e) {
119065
119065
  if (!t.controls || t.controls.length === 0)
119066
119066
  return [];
119067
119067
  const r = [], n = (/* @__PURE__ */ new Date()).toISOString();
@@ -119109,7 +119109,7 @@ function I$t(t, e) {
119109
119109
  function Vv0(t) {
119110
119110
  return t == null ? null : typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "object" ? t : null;
119111
119111
  }
119112
- function Z$t(t, e) {
119112
+ function B$t(t, e) {
119113
119113
  const r = (n) => {
119114
119114
  const a = n.concept, l = typeof a == "object" && a !== null && "uuid" in a ? a.uuid : a, i = (e && jz(e, l)) ?? (typeof a == "object" && a !== null && "datatype" in a ? a.datatype : void 0), c = {
119115
119115
  concept: {
@@ -119125,11 +119125,11 @@ function Z$t(t, e) {
119125
119125
  };
119126
119126
  return (t?.filter((n) => n.uuid && n.voided ? !0 : !(!n.uuid && n.voided || n.value && typeof n.value == "string" && n.value.endsWith("voided"))) ?? []).map(r);
119127
119127
  }
119128
- function B$t(t) {
119128
+ function P$t(t) {
119129
119129
  if (!(!t || typeof t != "object"))
119130
119130
  return "toJS" in t && typeof t.toJS == "function" ? t.toJS() : t;
119131
119131
  }
119132
- function P$t(t, e) {
119132
+ function F$t(t, e) {
119133
119133
  !t || !Array.isArray(t.children) || t.children.forEach((r) => {
119134
119134
  r && typeof r == "object" && eJ1(
119135
119135
  r,
@@ -119164,12 +119164,12 @@ function eJ1(t, e) {
119164
119164
  );
119165
119165
  });
119166
119166
  }
119167
- const oE = "consultation:saved", F$t = (t) => {
119167
+ const oE = "consultation:saved", j$t = (t) => {
119168
119168
  const e = new CustomEvent(oE, {
119169
119169
  detail: t
119170
119170
  });
119171
119171
  window.dispatchEvent(e);
119172
- }, j$t = (t, e = []) => {
119172
+ }, U$t = (t, e = []) => {
119173
119173
  const r = Ve(t);
119174
119174
  Me(() => {
119175
119175
  r.current = t;
@@ -119182,17 +119182,17 @@ const oE = "consultation:saved", F$t = (t) => {
119182
119182
  window.removeEventListener(oE, n);
119183
119183
  };
119184
119184
  }, e);
119185
- }, aE = "cdss:check", lE = "cdss:results", U$t = (t) => {
119185
+ }, aE = "cdss:check", lE = "cdss:results", q$t = (t) => {
119186
119186
  const e = new CustomEvent(aE, {
119187
119187
  detail: t
119188
119188
  });
119189
119189
  globalThis.dispatchEvent(e);
119190
- }, q$t = (t) => {
119190
+ }, W$t = (t) => {
119191
119191
  const e = new CustomEvent(lE, {
119192
119192
  detail: t
119193
119193
  });
119194
119194
  globalThis.dispatchEvent(e);
119195
- }, W$t = (t) => {
119195
+ }, K$t = (t) => {
119196
119196
  const e = Ve(t);
119197
119197
  Me(() => {
119198
119198
  e.current = t;
@@ -119205,7 +119205,7 @@ const oE = "consultation:saved", F$t = (t) => {
119205
119205
  globalThis.removeEventListener(aE, r);
119206
119206
  };
119207
119207
  }, []);
119208
- }, K$t = (t) => {
119208
+ }, G$t = (t) => {
119209
119209
  const e = Ve(t);
119210
119210
  Me(() => {
119211
119211
  e.current = t;
@@ -119219,7 +119219,7 @@ const oE = "consultation:saved", F$t = (t) => {
119219
119219
  };
119220
119220
  }, []);
119221
119221
  };
119222
- function G$t(t, e, r) {
119222
+ function Y$t(t, e, r) {
119223
119223
  const n = {
119224
119224
  resourceType: "DocumentReference",
119225
119225
  status: "current",
@@ -119240,7 +119240,7 @@ function G$t(t, e, r) {
119240
119240
  ]), n;
119241
119241
  }
119242
119242
  const zv0 = (t) => `${$0}/location?operator=ALL&s=byTags&tags=${encodeURIComponent(t)}&v=custom:(uuid,display,childLocations:(uuid,display,retired))`;
119243
- async function Y$t(t) {
119243
+ async function J$t(t) {
119244
119244
  return (await D2(zv0(t))).results ?? [];
119245
119245
  }
119246
119246
  const bv0 = $0 + "/bahmnicore/visitDocument/uploadDocument", Hv0 = "application";
@@ -119269,7 +119269,7 @@ async function xv0(t) {
119269
119269
  }, n.readAsDataURL(t);
119270
119270
  });
119271
119271
  }
119272
- async function J$t(t, e, r) {
119272
+ async function Q$t(t, e, r) {
119273
119273
  const n = await xv0(t), a = {
119274
119274
  content: n.content,
119275
119275
  encounterTypeName: e,
@@ -119289,7 +119289,7 @@ const Nv0 = "/bahmni_config/openmrs/apps", Cv0 = (t) => Array.isArray(t) ? t : O
119289
119289
  } catch (e) {
119290
119290
  throw console.error("Error fetching module extensions:", e), e;
119291
119291
  }
119292
- }, Lv0 = (t, e) => $0 + `/availableStocks?productUuid=${t}&locationUuid=${e}`, Q$t = async (t, e) => await D2(
119292
+ }, Lv0 = (t, e) => $0 + `/availableStocks?productUuid=${t}&locationUuid=${e}`, X$t = async (t, e) => await D2(
119293
119293
  Lv0(t, e)
119294
119294
  ), _v0 = (t, e, r) => {
119295
119295
  const n = t.find((l) => l.server === e);
@@ -119317,7 +119317,7 @@ const Nv0 = "/bahmni_config/openmrs/apps", Cv0 = (t) => Array.isArray(t) ? t : O
119317
119317
  entry: a
119318
119318
  });
119319
119319
  }), r;
119320
- }, X$t = async (t, e, r, n) => {
119320
+ }, eDt = async (t, e, r, n) => {
119321
119321
  const a = _v0(t, e.server, e.service), { serverConfig: l, serviceConfig: i } = a, c = Tv0(
119322
119322
  n,
119323
119323
  i.contextResourceMap
@@ -119335,7 +119335,7 @@ const Nv0 = "/bahmni_config/openmrs/apps", Cv0 = (t) => Array.isArray(t) ? t : O
119335
119335
  s,
119336
119336
  d
119337
119337
  )).cards || [];
119338
- }, eDt = (t, e) => {
119338
+ }, tDt = (t, e) => {
119339
119339
  const r = [];
119340
119340
  return t.forEach((n) => {
119341
119341
  !n.suggestions || n.suggestions.length === 0 || n.suggestions.forEach((a) => {
@@ -119351,14 +119351,14 @@ const Nv0 = "/bahmni_config/openmrs/apps", Cv0 = (t) => Array.isArray(t) ? t : O
119351
119351
  });
119352
119352
  });
119353
119353
  }), r;
119354
- }, tDt = (t) => {
119354
+ }, rDt = (t) => {
119355
119355
  const e = /* @__PURE__ */ new Map();
119356
119356
  for (const r of t) {
119357
119357
  const n = e.get(r.extensionPointId) ?? [];
119358
119358
  n.push(r), e.set(r.extensionPointId, n);
119359
119359
  }
119360
119360
  return e;
119361
- }, rDt = (t, e) => t.filter(
119361
+ }, nDt = (t, e) => t.filter(
119362
119362
  (r) => !r.requiredPrivileges || r.requiredPrivileges.length === 0 || JY1(e, r.requiredPrivileges)
119363
119363
  ), Ov0 = "command-palette", $v0 = "enableCommandPalette", Dv0 = "/bahmni_config/openmrs/apps/command-palette/app.json", Rv0 = {
119364
119364
  type: "combination",
@@ -161548,7 +161548,7 @@ function Gp({
161548
161548
  }, i), a));
161549
161549
  }
161550
161550
  const {
161551
- open: nDt,
161551
+ open: oDt,
161552
161552
  ...$X0
161553
161553
  } = Zi.propTypes ?? {};
161554
161554
  Gp.propTypes = {
@@ -198542,10 +198542,23 @@ const eNt = ({
198542
198542
  ...e
198543
198543
  }) => /* @__PURE__ */ P(ke2, { ...e, "data-testid": t }), SNt = (t) => {
198544
198544
  const e = t.replaceAll(/\D/g, "").slice(0, 4);
198545
- if (e.length <= 2) return e;
198546
- const r = Number(e.slice(0, 2)), n = r < 1 ? "01" : r > 12 ? "12" : e.slice(0, 2), a = Number(e.slice(2)) > 59 ? "59" : e.slice(2);
198545
+ if (e.length < 2) return e;
198546
+ const r = Number(e.slice(0, 2));
198547
+ if (r > 12) {
198548
+ const l = Number(e.slice(1, 3)) > 59 ? "59" : e.slice(1, 3);
198549
+ return `${e[0]}:${l}`;
198550
+ }
198551
+ if (e.length === 2) return e;
198552
+ const n = r < 1 ? "01" : e.slice(0, 2), a = Number(e.slice(2)) > 59 ? "59" : e.slice(2);
198547
198553
  return `${n}:${a}`;
198548
- }, kNt = ({
198554
+ }, kNt = (t) => {
198555
+ if (!t) return t;
198556
+ const [e, r = ""] = t.split(":");
198557
+ return `${String(Math.min(Math.max(Number(e), 1), 12)).padStart(
198558
+ 2,
198559
+ "0"
198560
+ )}:${r.padStart(2, "0")}`;
198561
+ }, INt = ({
198549
198562
  id: t,
198550
198563
  testId: e,
198551
198564
  labelText: r = "",
@@ -198556,10 +198569,13 @@ const eNt = ({
198556
198569
  invalid: c,
198557
198570
  invalidText: s
198558
198571
  }) => {
198559
- const d = (p) => {
198560
- i(SNt(p.target.value), l);
198561
- }, u = (p) => {
198562
- i(a, p.target.value);
198572
+ const d = (h) => {
198573
+ i(SNt(h.target.value), l);
198574
+ }, u = () => {
198575
+ const h = kNt(a);
198576
+ h !== a && i(h, l);
198577
+ }, p = (h) => {
198578
+ i(a, h.target.value);
198563
198579
  };
198564
198580
  return /* @__PURE__ */ P(
198565
198581
  L32,
@@ -198570,6 +198586,7 @@ const eNt = ({
198570
198586
  hideLabel: n,
198571
198587
  value: a,
198572
198588
  onChange: d,
198589
+ onBlur: u,
198573
198590
  invalid: c,
198574
198591
  invalidText: s,
198575
198592
  pattern: "(1[0-2]|0?[1-9]):[0-5][0-9]",
@@ -198580,7 +198597,7 @@ const eNt = ({
198580
198597
  id: `${t}-meridiem`,
198581
198598
  testId: e ? `${e}-meridiem` : `${t}-meridiem-test-id`,
198582
198599
  value: l,
198583
- onChange: u,
198600
+ onChange: p,
198584
198601
  children: [
198585
198602
  /* @__PURE__ */ P(ny, { text: "AM", value: "AM" }),
198586
198603
  /* @__PURE__ */ P(ny, { text: "PM", value: "PM" })
@@ -198590,21 +198607,21 @@ const eNt = ({
198590
198607
  }
198591
198608
  );
198592
198609
  };
198593
- function INt(t, e) {
198610
+ function ZNt(t, e) {
198594
198611
  const r = getComputedStyle(t), n = parseFloat(r.fontSize);
198595
198612
  return e * n;
198596
198613
  }
198597
- function ZNt(t, e) {
198614
+ function BNt(t, e) {
198598
198615
  const r = getComputedStyle(t.ownerDocument.body), n = parseFloat(r.fontSize);
198599
198616
  return e * n;
198600
198617
  }
198601
- function BNt(t) {
198618
+ function PNt(t) {
198602
198619
  return t / 100 * window.innerHeight;
198603
198620
  }
198604
- function PNt(t) {
198621
+ function FNt(t) {
198605
198622
  return t / 100 * window.innerWidth;
198606
198623
  }
198607
- function FNt(t) {
198624
+ function jNt(t) {
198608
198625
  switch (typeof t) {
198609
198626
  case "number":
198610
198627
  return [t, "px"];
@@ -198620,7 +198637,7 @@ function f9({
198620
198637
  styleProp: r
198621
198638
  }) {
198622
198639
  let n;
198623
- const [a, l] = FNt(r);
198640
+ const [a, l] = jNt(r);
198624
198641
  switch (l) {
198625
198642
  case "%": {
198626
198643
  n = a / 100 * t;
@@ -198631,19 +198648,19 @@ function f9({
198631
198648
  break;
198632
198649
  }
198633
198650
  case "rem": {
198634
- n = ZNt(e, a);
198651
+ n = BNt(e, a);
198635
198652
  break;
198636
198653
  }
198637
198654
  case "em": {
198638
- n = INt(e, a);
198655
+ n = ZNt(e, a);
198639
198656
  break;
198640
198657
  }
198641
198658
  case "vh": {
198642
- n = BNt(a);
198659
+ n = PNt(a);
198643
198660
  break;
198644
198661
  }
198645
198662
  case "vw": {
198646
- n = PNt(a);
198663
+ n = FNt(a);
198647
198664
  break;
198648
198665
  }
198649
198666
  }
@@ -198723,14 +198740,14 @@ function q2(t, e = "Assertion error") {
198723
198740
  }
198724
198741
  function ay(t, e) {
198725
198742
  return Array.from(e).sort(
198726
- t === "horizontal" ? jNt : UNt
198743
+ t === "horizontal" ? UNt : qNt
198727
198744
  );
198728
198745
  }
198729
- function jNt(t, e) {
198746
+ function UNt(t, e) {
198730
198747
  const r = t.element.offsetLeft - e.element.offsetLeft;
198731
198748
  return r !== 0 ? r : t.element.offsetWidth - e.element.offsetWidth;
198732
198749
  }
198733
- function UNt(t, e) {
198750
+ function qNt(t, e) {
198734
198751
  const r = t.element.offsetTop - e.element.offsetTop;
198735
198752
  return r !== 0 ? r : t.element.offsetHeight - e.element.offsetHeight;
198736
198753
  }
@@ -198749,7 +198766,7 @@ function O32(t, e) {
198749
198766
  )
198750
198767
  };
198751
198768
  }
198752
- function qNt({
198769
+ function WNt({
198753
198770
  orientation: t,
198754
198771
  rects: e,
198755
198772
  targetRect: r
@@ -198766,7 +198783,7 @@ function qNt({
198766
198783
  return q2(a, "No rect found"), a;
198767
198784
  }
198768
198785
  let m9;
198769
- function WNt() {
198786
+ function KNt() {
198770
198787
  return m9 === void 0 && (typeof matchMedia == "function" ? m9 = !!matchMedia("(pointer:coarse)").matches : m9 = !1), m9;
198771
198788
  }
198772
198789
  function $32(t) {
@@ -198813,7 +198830,7 @@ function $32(t) {
198813
198830
  break;
198814
198831
  }
198815
198832
  case 1: {
198816
- const _ = f[0], D = qNt({
198833
+ const _ = f[0], D = WNt({
198817
198834
  orientation: r,
198818
198835
  rects: [M, m],
198819
198836
  targetRect: _.element.getBoundingClientRect()
@@ -198845,7 +198862,7 @@ function $32(t) {
198845
198862
  ];
198846
198863
  for (const C of w) {
198847
198864
  let y = "width" in C ? C : C.element.getBoundingClientRect();
198848
- const _ = WNt() ? t.resizeTargetMinimumSize.coarse : t.resizeTargetMinimumSize.fine;
198865
+ const _ = KNt() ? t.resizeTargetMinimumSize.coarse : t.resizeTargetMinimumSize.fine;
198849
198866
  if (y.width < _) {
198850
198867
  const R = _ - y.width;
198851
198868
  y = new DOMRect(
@@ -198887,7 +198904,7 @@ function $32(t) {
198887
198904
  }
198888
198905
  return i;
198889
198906
  }
198890
- class KNt {
198907
+ class GNt {
198891
198908
  #e = {};
198892
198909
  addListener(e, r) {
198893
198910
  const n = this.#e[e];
@@ -198936,7 +198953,7 @@ let Sr = {
198936
198953
  },
198937
198954
  mountedGroups: /* @__PURE__ */ new Map()
198938
198955
  };
198939
- const Ao = new KNt();
198956
+ const Ao = new GNt();
198940
198957
  function Pt() {
198941
198958
  return Sr;
198942
198959
  }
@@ -198966,7 +198983,7 @@ function Ft(t) {
198966
198983
  });
198967
198984
  }), Ao.emit("mountedGroupsChange", Sr.mountedGroups)), Sr;
198968
198985
  }
198969
- function GNt(t, e, r) {
198986
+ function YNt(t, e, r) {
198970
198987
  let n, a = {
198971
198988
  x: 1 / 0,
198972
198989
  y: 1 / 0
@@ -198989,10 +199006,10 @@ function GNt(t, e, r) {
198989
199006
  hitRegion: n
198990
199007
  } : void 0;
198991
199008
  }
198992
- function YNt(t) {
199009
+ function JNt(t) {
198993
199010
  return t !== null && typeof t == "object" && "nodeType" in t && t.nodeType === Node.DOCUMENT_FRAGMENT_NODE;
198994
199011
  }
198995
- function JNt(t, e) {
199012
+ function QNt(t, e) {
198996
199013
  if (t === e) throw new Error("Cannot compare node with itself");
198997
199014
  const r = {
198998
199015
  a: AZ1(t),
@@ -199023,20 +199040,20 @@ function JNt(t, e) {
199023
199040
  }
199024
199041
  return Math.sign(a.a - a.b);
199025
199042
  }
199026
- const QNt = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
199027
- function XNt(t) {
199043
+ const XNt = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
199044
+ function eCt(t) {
199028
199045
  const e = getComputedStyle(D32(t) ?? t).display;
199029
199046
  return e === "flex" || e === "inline-flex";
199030
199047
  }
199031
- function eCt(t) {
199048
+ function tCt(t) {
199032
199049
  const e = getComputedStyle(t);
199033
- return !!(e.position === "fixed" || e.zIndex !== "auto" && (e.position !== "static" || XNt(t)) || +e.opacity < 1 || "transform" in e && e.transform !== "none" || "webkitTransform" in e && e.webkitTransform !== "none" || "mixBlendMode" in e && e.mixBlendMode !== "normal" || "filter" in e && e.filter !== "none" || "webkitFilter" in e && e.webkitFilter !== "none" || "isolation" in e && e.isolation === "isolate" || QNt.test(e.willChange) || e.webkitOverflowScrolling === "touch");
199050
+ return !!(e.position === "fixed" || e.zIndex !== "auto" && (e.position !== "static" || eCt(t)) || +e.opacity < 1 || "transform" in e && e.transform !== "none" || "webkitTransform" in e && e.webkitTransform !== "none" || "mixBlendMode" in e && e.mixBlendMode !== "normal" || "filter" in e && e.filter !== "none" || "webkitFilter" in e && e.webkitFilter !== "none" || "isolation" in e && e.isolation === "isolate" || XNt.test(e.willChange) || e.webkitOverflowScrolling === "touch");
199034
199051
  }
199035
199052
  function NZ1(t) {
199036
199053
  let e = t.length;
199037
199054
  for (; e--; ) {
199038
199055
  const r = t[e];
199039
- if (q2(r, "Missing node"), eCt(r)) return r;
199056
+ if (q2(r, "Missing node"), tCt(r)) return r;
199040
199057
  }
199041
199058
  return null;
199042
199059
  }
@@ -199051,24 +199068,24 @@ function AZ1(t) {
199051
199068
  }
199052
199069
  function D32(t) {
199053
199070
  const { parentNode: e } = t;
199054
- return YNt(e) ? e.host : e;
199071
+ return JNt(e) ? e.host : e;
199055
199072
  }
199056
- function tCt(t, e) {
199073
+ function rCt(t, e) {
199057
199074
  return t.x < e.x + e.width && t.x + t.width > e.x && t.y < e.y + e.height && t.y + t.height > e.y;
199058
199075
  }
199059
- function rCt({
199076
+ function nCt({
199060
199077
  groupElement: t,
199061
199078
  hitRegion: e,
199062
199079
  pointerEventTarget: r
199063
199080
  }) {
199064
199081
  if (!T32(r) || r.contains(t) || t.contains(r))
199065
199082
  return !0;
199066
- if (JNt(r, t) > 0) {
199083
+ if (QNt(r, t) > 0) {
199067
199084
  let n = r;
199068
199085
  for (; n; ) {
199069
199086
  if (n.contains(t))
199070
199087
  return !0;
199071
- if (tCt(n.getBoundingClientRect(), e))
199088
+ if (rCt(n.getBoundingClientRect(), e))
199072
199089
  return !1;
199073
199090
  n = n.parentElement;
199074
199091
  }
@@ -199080,18 +199097,18 @@ function Bx(t, e) {
199080
199097
  return e.forEach((n, a) => {
199081
199098
  if (a.disabled)
199082
199099
  return;
199083
- const l = $32(a), i = GNt(a.orientation, l, {
199100
+ const l = $32(a), i = YNt(a.orientation, l, {
199084
199101
  x: t.clientX,
199085
199102
  y: t.clientY
199086
199103
  });
199087
- i && i.distance.x <= 0 && i.distance.y <= 0 && rCt({
199104
+ i && i.distance.x <= 0 && i.distance.y <= 0 && nCt({
199088
199105
  groupElement: a.element,
199089
199106
  hitRegion: i.hitRegion.rect,
199090
199107
  pointerEventTarget: t.target
199091
199108
  }) && r.push(i.hitRegion);
199092
199109
  }), r;
199093
199110
  }
199094
- function nCt(t, e) {
199111
+ function oCt(t, e) {
199095
199112
  if (t.length !== e.length)
199096
199113
  return !1;
199097
199114
  for (let r = 0; r < t.length; r++)
@@ -199246,7 +199263,7 @@ function _s({
199246
199263
  t < 0 ? g-- : g++;
199247
199264
  }
199248
199265
  }
199249
- if (nCt(s, d))
199266
+ if (oCt(s, d))
199250
199267
  return a;
199251
199268
  {
199252
199269
  const g = t < 0 ? p : u, E = c[g];
@@ -199641,13 +199658,13 @@ function TZ1(t) {
199641
199658
  }
199642
199659
  }), r.length && t.preventDefault();
199643
199660
  }
199644
- const oCt = (t) => t, uw = () => {
199661
+ const aCt = (t) => t, uw = () => {
199645
199662
  }, I32 = 1, Z32 = 2, B32 = 4, P32 = 8, OZ1 = 3, $Z1 = 12;
199646
199663
  let g9;
199647
199664
  function DZ1() {
199648
199665
  return g9 === void 0 && (g9 = !1, typeof window < "u" && (window.navigator.userAgent.includes("Chrome") || window.navigator.userAgent.includes("Firefox")) && (g9 = !0)), g9;
199649
199666
  }
199650
- function aCt({
199667
+ function lCt({
199651
199668
  cursorFlags: t,
199652
199669
  groups: e,
199653
199670
  state: r
@@ -199700,7 +199717,7 @@ function Px(t) {
199700
199717
  switch (a.state) {
199701
199718
  case "active":
199702
199719
  case "hover": {
199703
- const l = aCt({
199720
+ const l = lCt({
199704
199721
  cursorFlags: n,
199705
199722
  groups: a.hitRegions.map((c) => c.group),
199706
199723
  state: a.state
@@ -199888,7 +199905,7 @@ function BZ1(t) {
199888
199905
  }
199889
199906
  return n;
199890
199907
  }
199891
- function lCt(t, e, r) {
199908
+ function iCt(t, e, r) {
199892
199909
  if (!r[0])
199893
199910
  return;
199894
199911
  const n = t.panels.find((s) => s.element === e);
@@ -199900,7 +199917,7 @@ function lCt(t, e, r) {
199900
199917
  };
199901
199918
  n.mutableValues.prevSize = c, n.onResize(c, n.id, i);
199902
199919
  }
199903
- function iCt(t, e) {
199920
+ function cCt(t, e) {
199904
199921
  if (Object.keys(t).length !== Object.keys(e).length)
199905
199922
  return !1;
199906
199923
  for (const r in t)
@@ -199908,7 +199925,7 @@ function iCt(t, e) {
199908
199925
  return !1;
199909
199926
  return !0;
199910
199927
  }
199911
- function cCt(t, e) {
199928
+ function sCt(t, e) {
199912
199929
  const r = t.map((a) => a.id), n = Object.keys(e);
199913
199930
  if (r.length !== n.length)
199914
199931
  return !1;
@@ -199918,7 +199935,7 @@ function cCt(t, e) {
199918
199935
  return !0;
199919
199936
  }
199920
199937
  const Q4 = /* @__PURE__ */ new Map();
199921
- function sCt(t) {
199938
+ function dCt(t) {
199922
199939
  let e = !0;
199923
199940
  q2(
199924
199941
  t.element.ownerDocument.defaultView,
@@ -199938,7 +199955,7 @@ function sCt(t) {
199938
199955
  layout: y,
199939
199956
  panelConstraints: C
199940
199957
  });
199941
- return !w.defaultLayoutDeferred && p4(y, _) && iCt(
199958
+ return !w.defaultLayoutDeferred && p4(y, _) && cCt(
199942
199959
  w.derivedPanelConstraints,
199943
199960
  C
199944
199961
  ) ? m : {
@@ -199954,7 +199971,7 @@ function sCt(t) {
199954
199971
  });
199955
199972
  }
199956
199973
  } else
199957
- lCt(t, M, E);
199974
+ iCt(t, M, E);
199958
199975
  }
199959
199976
  });
199960
199977
  l.observe(t.element), t.panels.forEach((v) => {
@@ -199965,7 +199982,7 @@ function sCt(t) {
199965
199982
  });
199966
199983
  const i = si({ group: t }), c = oy(t), s = t.panels.map(({ id: v }) => v).join(",");
199967
199984
  let d = t.defaultLayout;
199968
- d && (cCt(t.panels, d) || (d = void 0));
199985
+ d && (sCt(t.panels, d) || (d = void 0));
199969
199986
  const u = t.inMemoryLayouts[s] ?? d ?? BZ1(c), p = h4({
199970
199987
  layout: u,
199971
199988
  panelConstraints: c
@@ -200010,7 +200027,7 @@ function sCt(t) {
200010
200027
  ), f.removeEventListener("pointerleave", SZ1), f.removeEventListener("pointermove", kZ1), f.removeEventListener("pointerout", IZ1), f.removeEventListener("pointerup", ZZ1, !0)), l.disconnect();
200011
200028
  };
200012
200029
  }
200013
- function dCt() {
200030
+ function uCt() {
200014
200031
  const [t, e] = Ee({}), r = Se(() => e({}), []);
200015
200032
  return [t, r];
200016
200033
  }
@@ -200053,10 +200070,10 @@ function Ux(t) {
200053
200070
  }, [t]), e.current;
200054
200071
  }
200055
200072
  const j32 = Q2(null);
200056
- function uCt(t, e) {
200073
+ function pCt(t, e) {
200057
200074
  const r = Ve({
200058
200075
  getLayout: () => ({}),
200059
- setLayout: oCt
200076
+ setLayout: aCt
200060
200077
  });
200061
200078
  ui(e, () => r.current, []), V4(() => {
200062
200079
  Object.assign(
@@ -200091,14 +200108,14 @@ function U32({
200091
200108
  p4(v.current.onLayoutChange, F) || (v.current.onLayoutChange = F, s?.(F));
200092
200109
  }), E = Jc((F) => {
200093
200110
  p4(v.current.onLayoutChanged, F) || (v.current.onLayoutChanged = F, d?.(F));
200094
- }), M = Fx(c), m = Ve(null), [w, C] = dCt(), y = Ve({
200111
+ }), M = Fx(c), m = Ve(null), [w, C] = uCt(), y = Ve({
200095
200112
  lastExpandedPanelSizes: {},
200096
200113
  layouts: {},
200097
200114
  panels: [],
200098
200115
  resizeTargetMinimumSize: p,
200099
200116
  separators: []
200100
200117
  }), _ = jx(m, l);
200101
- uCt(M, i);
200118
+ pCt(M, i);
200102
200119
  const D = Jc(
200103
200120
  (F, K) => {
200104
200121
  const { interactionState: q, mountedGroups: X } = Pt();
@@ -200206,7 +200223,7 @@ function U32({
200206
200223
  separators: K.separators
200207
200224
  };
200208
200225
  k.current = X;
200209
- const oe = sCt(X), ce = Pt().mountedGroups.get(X);
200226
+ const oe = dCt(X), ce = Pt().mountedGroups.get(X);
200210
200227
  if (ce) {
200211
200228
  const { defaultLayoutDeferred: ae, derivedPanelConstraints: L, layout: $ } = ce;
200212
200229
  !ae && L.length > 0 && (g($), E($));
@@ -200273,7 +200290,7 @@ function qx() {
200273
200290
  "Group Context not found; did you render a Panel or Separator outside of a Group?"
200274
200291
  ), t;
200275
200292
  }
200276
- function pCt(t, e) {
200293
+ function hCt(t, e) {
200277
200294
  const { id: r } = qx(), n = Ve({
200278
200295
  collapse: uw,
200279
200296
  expand: uw,
@@ -200356,7 +200373,7 @@ function ly({
200356
200373
  E
200357
200374
  ]), Me(() => {
200358
200375
  _(g, !!l);
200359
- }, [l, g, _]), pCt(g, p);
200376
+ }, [l, g, _]), hCt(g, p);
200360
200377
  const I = nB1(
200361
200378
  (k) => (Ao.addListener("mountedGroupsChange", k), () => {
200362
200379
  Ao.removeListener("mountedGroupsChange", k);
@@ -200376,7 +200393,7 @@ function ly({
200376
200393
  id: g,
200377
200394
  ref: m,
200378
200395
  style: {
200379
- ...hCt,
200396
+ ...fCt,
200380
200397
  display: "flex",
200381
200398
  flexBasis: 0,
200382
200399
  flexShrink: 1,
@@ -200401,7 +200418,7 @@ function ly({
200401
200418
  );
200402
200419
  }
200403
200420
  ly.displayName = "Panel";
200404
- const hCt = {
200421
+ const fCt = {
200405
200422
  minHeight: 0,
200406
200423
  maxHeight: "100%",
200407
200424
  height: "auto",
@@ -200413,7 +200430,7 @@ const hCt = {
200413
200430
  padding: 0,
200414
200431
  margin: 0
200415
200432
  };
200416
- function fCt({
200433
+ function mCt({
200417
200434
  layout: t,
200418
200435
  panelConstraints: e,
200419
200436
  panelId: r,
@@ -200496,7 +200513,7 @@ function q32({
200496
200513
  if (ce) {
200497
200514
  const ie = ce[0], Y = oe.panels.indexOf(ie);
200498
200515
  u(
200499
- fCt({
200516
+ mCt({
200500
200517
  layout: q,
200501
200518
  panelConstraints: K,
200502
200519
  panelId: ie.id,
@@ -200546,19 +200563,19 @@ function q32({
200546
200563
  );
200547
200564
  }
200548
200565
  q32.displayName = "Separator";
200549
- const mCt = "_layout_95ahm_85", gCt = "_collapsedModal_95ahm_96", wCt = "_mainDisplay_95ahm_108", vCt = "_expand_95ahm_118", ECt = "_collapse_95ahm_96", yCt = "_actionArea_95ahm_127", MCt = "_extended_95ahm_132", VCt = "_separator_95ahm_138", zCt = "_separatorGrip_95ahm_146", bCt = "_panelGroup_95ahm_161", HCt = "_expanded_95ahm_176", Rr = {
200550
- layout: mCt,
200551
- collapsedModal: gCt,
200552
- mainDisplay: wCt,
200553
- expand: vCt,
200554
- collapse: ECt,
200555
- actionArea: yCt,
200556
- extended: MCt,
200557
- separator: VCt,
200558
- separatorGrip: zCt,
200559
- panelGroup: bCt,
200560
- expanded: HCt
200561
- }, xCt = 40, NCt = 0, CCt = 60, PZ1 = 40, ACt = ({
200566
+ const gCt = "_layout_95ahm_85", wCt = "_collapsedModal_95ahm_96", vCt = "_mainDisplay_95ahm_108", ECt = "_expand_95ahm_118", yCt = "_collapse_95ahm_96", MCt = "_actionArea_95ahm_127", VCt = "_extended_95ahm_132", zCt = "_separator_95ahm_138", bCt = "_separatorGrip_95ahm_146", HCt = "_panelGroup_95ahm_161", xCt = "_expanded_95ahm_176", Rr = {
200567
+ layout: gCt,
200568
+ collapsedModal: wCt,
200569
+ mainDisplay: vCt,
200570
+ expand: ECt,
200571
+ collapse: yCt,
200572
+ actionArea: MCt,
200573
+ extended: VCt,
200574
+ separator: zCt,
200575
+ separatorGrip: bCt,
200576
+ panelGroup: HCt,
200577
+ expanded: xCt
200578
+ }, NCt = 40, CCt = 0, ACt = 60, PZ1 = 40, LCt = ({
200562
200579
  headerWSideNav: t,
200563
200580
  mainDisplay: e,
200564
200581
  actionArea: r,
@@ -200592,8 +200609,8 @@ const mCt = "_layout_95ahm_85", gCt = "_collapsedModal_95ahm_96", wCt = "_mainDi
200592
200609
  ly,
200593
200610
  {
200594
200611
  id: "main-display-panel",
200595
- defaultSize: xCt,
200596
- minSize: i ? NCt : PZ1,
200612
+ defaultSize: NCt,
200613
+ minSize: i ? CCt : PZ1,
200597
200614
  children: /* @__PURE__ */ P(
200598
200615
  "div",
200599
200616
  {
@@ -200645,7 +200662,7 @@ const mCt = "_layout_95ahm_85", gCt = "_collapsedModal_95ahm_96", wCt = "_mainDi
200645
200662
  ly,
200646
200663
  {
200647
200664
  id: "action-area-panel",
200648
- defaultSize: CCt,
200665
+ defaultSize: ACt,
200649
200666
  minSize: PZ1,
200650
200667
  children: /* @__PURE__ */ P(
200651
200668
  "div",
@@ -200668,11 +200685,11 @@ const mCt = "_layout_95ahm_85", gCt = "_collapsedModal_95ahm_96", wCt = "_mainDi
200668
200685
  )
200669
200686
  ]
200670
200687
  }
200671
- ), LCt = "_layout_1avlc_85", _Ct = "_footer_1avlc_94", TCt = "_main_1avlc_103", pw = {
200672
- layout: LCt,
200673
- footer: _Ct,
200674
- main: TCt
200675
- }, OCt = ({ header: t, main: e, footer: r }) => /* @__PURE__ */ Ne(
200688
+ ), _Ct = "_layout_1avlc_85", TCt = "_footer_1avlc_94", OCt = "_main_1avlc_103", pw = {
200689
+ layout: _Ct,
200690
+ footer: TCt,
200691
+ main: OCt
200692
+ }, $Ct = ({ header: t, main: e, footer: r }) => /* @__PURE__ */ Ne(
200676
200693
  "div",
200677
200694
  {
200678
200695
  id: "base-layout",
@@ -200703,10 +200720,10 @@ const mCt = "_layout_95ahm_85", gCt = "_collapsedModal_95ahm_96", wCt = "_mainDi
200703
200720
  )
200704
200721
  ]
200705
200722
  }
200706
- ), $Ct = ({ testId: t, ...e }) => /* @__PURE__ */ P(dH, { ...e, "data-testid": t }), DCt = "_breadcrumb_hjxxm_74", RCt = "_sideNavItems_hjxxm_86", FZ1 = {
200707
- breadcrumb: DCt,
200708
- sideNavItems: RCt
200709
- }, SCt = (t, e = !0) => {
200723
+ ), DCt = ({ testId: t, ...e }) => /* @__PURE__ */ P(dH, { ...e, "data-testid": t }), RCt = "_breadcrumb_hjxxm_74", SCt = "_sideNavItems_hjxxm_86", FZ1 = {
200724
+ breadcrumb: RCt,
200725
+ sideNavItems: SCt
200726
+ }, kCt = (t, e = !0) => {
200710
200727
  const [r, n] = Ee(e);
200711
200728
  Me(() => {
200712
200729
  const l = () => {
@@ -200728,7 +200745,7 @@ const mCt = "_layout_95ahm_85", gCt = "_collapsedModal_95ahm_96", wCt = "_mainDi
200728
200745
  handleSideNavItemClick: a
200729
200746
  };
200730
200747
  };
200731
- function kCt() {
200748
+ function ICt() {
200732
200749
  const t = parseInt(yh.lg.width);
200733
200750
  return window.innerWidth < t * zH;
200734
200751
  }
@@ -200749,7 +200766,7 @@ const W32 = o.memo(
200749
200766
  extraContent: p,
200750
200767
  userMenu: h
200751
200768
  }) => {
200752
- const { isSideNavExpanded: f, handleSideNavItemClick: v } = SCt(s), g = () => !t && !e ? null : /* @__PURE__ */ P(
200769
+ const { isSideNavExpanded: f, handleSideNavItemClick: v } = kCt(s), g = () => !t && !e ? null : /* @__PURE__ */ P(
200753
200770
  Pe2,
200754
200771
  {
200755
200772
  href: r,
@@ -200794,7 +200811,7 @@ const W32 = o.memo(
200794
200811
  "aria-label": "SIDE_NAVIGATION",
200795
200812
  expanded: f && !d,
200796
200813
  isPersistent: !0,
200797
- isRail: d || kCt(),
200814
+ isRail: d || ICt(),
200798
200815
  "data-testid": "side-nav",
200799
200816
  className: FZ1.sideNavItems,
200800
200817
  children: /* @__PURE__ */ P(TH, { children: i.map((w) => /* @__PURE__ */ P(
@@ -200835,7 +200852,7 @@ const W32 = o.memo(
200835
200852
  }
200836
200853
  );
200837
200854
  W32.displayName = "Header";
200838
- const ICt = (t) => {
200855
+ const ZCt = (t) => {
200839
200856
  const [e, r] = Ee(null), n = je(() => t.length ? e && t.some((l) => l.id === e) ? e : t[0].id : null, [e, t]), a = Se((l) => {
200840
200857
  r(l);
200841
200858
  }, []);
@@ -200847,7 +200864,7 @@ const ICt = (t) => {
200847
200864
  testId: t,
200848
200865
  children: e,
200849
200866
  ...r
200850
- }) => /* @__PURE__ */ P(lh, { ...r, "data-testid": t, children: e }), ZCt = ({
200867
+ }) => /* @__PURE__ */ P(lh, { ...r, "data-testid": t, children: e }), BCt = ({
200851
200868
  testId: t,
200852
200869
  "data-testid": e,
200853
200870
  ...r
@@ -200857,15 +200874,15 @@ const ICt = (t) => {
200857
200874
  ...r,
200858
200875
  "data-testid": t ?? e
200859
200876
  }
200860
- ), BCt = ({
200877
+ ), PCt = ({
200861
200878
  testId: t,
200862
200879
  children: e,
200863
200880
  ...r
200864
- }) => /* @__PURE__ */ P(He2, { ...r, "data-testid": t, children: e }), PCt = "_grid_i0b21_1", FCt = "_children_i0b21_9", jCt = "_close_i0b21_16", hw = {
200865
- grid: PCt,
200866
- children: FCt,
200867
- close: jCt
200868
- }, UCt = ({
200881
+ }) => /* @__PURE__ */ P(He2, { ...r, "data-testid": t, children: e }), FCt = "_grid_i0b21_1", jCt = "_children_i0b21_9", UCt = "_close_i0b21_16", hw = {
200882
+ grid: FCt,
200883
+ children: jCt,
200884
+ close: UCt
200885
+ }, qCt = ({
200869
200886
  children: t,
200870
200887
  onClose: e,
200871
200888
  className: r,
@@ -200894,10 +200911,10 @@ const ICt = (t) => {
200894
200911
  ) })
200895
200912
  ]
200896
200913
  }
200897
- ), qCt = "_textAreaWCloseContainer_oex24_1", WCt = "_textAreaWCloseContainerWInvalid_oex24_12", KCt = "_closeButton_oex24_20", fw = {
200898
- textAreaWCloseContainer: qCt,
200899
- textAreaWCloseContainerWInvalid: WCt,
200900
- closeButton: KCt
200914
+ ), WCt = "_textAreaWCloseContainer_oex24_1", KCt = "_textAreaWCloseContainerWInvalid_oex24_12", GCt = "_closeButton_oex24_20", fw = {
200915
+ textAreaWCloseContainer: WCt,
200916
+ textAreaWCloseContainerWInvalid: KCt,
200917
+ closeButton: GCt
200901
200918
  }, K32 = ({
200902
200919
  id: t,
200903
200920
  labelText: e,
@@ -200959,10 +200976,10 @@ const ICt = (t) => {
200959
200976
  }
200960
200977
  ) });
200961
200978
  K32.displayName = "TextAreaWClose";
200962
- const GCt = "_box_1jr6a_1", YCt = "_header_1jr6a_8", jZ1 = {
200963
- box: GCt,
200964
- header: YCt
200965
- }, JCt = ({
200979
+ const YCt = "_box_1jr6a_1", JCt = "_header_1jr6a_8", jZ1 = {
200980
+ box: YCt,
200981
+ header: JCt
200982
+ }, QCt = ({
200966
200983
  title: t,
200967
200984
  children: e,
200968
200985
  className: r,
@@ -200982,11 +200999,11 @@ const GCt = "_box_1jr6a_1", YCt = "_header_1jr6a_8", jZ1 = {
200982
200999
  /* @__PURE__ */ P(Ia, { sm: 4, md: 8, lg: 16, xlg: 16, children: e })
200983
201000
  ]
200984
201001
  }
200985
- ), QCt = "_container_73unp_1", XCt = "_accordion_73unp_5", eAt = "_rows_73unp_35", mw = {
200986
- container: QCt,
200987
- accordion: XCt,
200988
- rows: eAt
200989
- }, tAt = ({
201002
+ ), XCt = "_container_73unp_1", eAt = "_accordion_73unp_5", tAt = "_rows_73unp_35", mw = {
201003
+ container: XCt,
201004
+ accordion: eAt,
201005
+ rows: tAt
201006
+ }, rAt = ({
200990
201007
  title: t,
200991
201008
  rows: e,
200992
201009
  children: r,
@@ -201049,14 +201066,14 @@ const GCt = "_box_1jr6a_1", YCt = "_header_1jr6a_8", jZ1 = {
201049
201066
  z4.Header = aH;
201050
201067
  z4.Body = RX1;
201051
201068
  z4.Footer = Rd;
201052
- const rAt = "/openmrs/auth?requested_document=/document_images/", Wx = (t) => t.startsWith("blob:") ? t : rAt + t, nAt = "_thumbnailButton_kkw8t_1", oAt = "_hideThumbnail_kkw8t_28", aAt = "_imageIcon_kkw8t_34", lAt = "_thumbnailImage_kkw8t_38", iAt = "_modalImageContainer_kkw8t_45", cAt = "_modalImage_kkw8t_45", X4 = {
201053
- thumbnailButton: nAt,
201054
- hideThumbnail: oAt,
201055
- imageIcon: aAt,
201056
- thumbnailImage: lAt,
201057
- modalImageContainer: iAt,
201058
- modalImage: cAt
201059
- }, sAt = ({
201069
+ const nAt = "/openmrs/auth?requested_document=/document_images/", Wx = (t) => t.startsWith("blob:") ? t : nAt + t, oAt = "_thumbnailButton_kkw8t_1", aAt = "_hideThumbnail_kkw8t_28", lAt = "_imageIcon_kkw8t_34", iAt = "_thumbnailImage_kkw8t_38", cAt = "_modalImageContainer_kkw8t_45", sAt = "_modalImage_kkw8t_45", X4 = {
201070
+ thumbnailButton: oAt,
201071
+ hideThumbnail: aAt,
201072
+ imageIcon: lAt,
201073
+ thumbnailImage: iAt,
201074
+ modalImageContainer: cAt,
201075
+ modalImage: sAt
201076
+ }, dAt = ({
201060
201077
  imageSrc: t,
201061
201078
  alt: e,
201062
201079
  id: r,
@@ -201131,11 +201148,11 @@ const rAt = "/openmrs/auth?requested_document=/document_images/", Wx = (t) => t.
201131
201148
  }
201132
201149
  )
201133
201150
  ] });
201134
- }, dAt = "_fileTileButton_io1kl_1", uAt = "_modalIframeContainer_io1kl_28", pAt = "_modalIframe_io1kl_28", gw = {
201135
- fileTileButton: dAt,
201136
- modalIframeContainer: uAt,
201137
- modalIframe: pAt
201138
- }, hAt = ({
201151
+ }, uAt = "_fileTileButton_io1kl_1", pAt = "_modalIframeContainer_io1kl_28", hAt = "_modalIframe_io1kl_28", gw = {
201152
+ fileTileButton: uAt,
201153
+ modalIframeContainer: pAt,
201154
+ modalIframe: hAt
201155
+ }, fAt = ({
201139
201156
  src: t,
201140
201157
  id: e,
201141
201158
  className: r,
@@ -201193,15 +201210,15 @@ const rAt = "/openmrs/auth?requested_document=/document_images/", Wx = (t) => t.
201193
201210
  }
201194
201211
  )
201195
201212
  ] });
201196
- }, fAt = "_thumbnailButton_1y563_1", mAt = "_hideThumbnail_1y563_29", gAt = "_videoIcon_1y563_35", wAt = "_thumbnailVideo_1y563_39", vAt = "_playIconOverlay_1y563_46", EAt = "_modalVideoContainer_1y563_68", yAt = "_modalVideo_1y563_68", g3 = {
201197
- thumbnailButton: fAt,
201198
- hideThumbnail: mAt,
201199
- videoIcon: gAt,
201200
- thumbnailVideo: wAt,
201201
- playIconOverlay: vAt,
201202
- modalVideoContainer: EAt,
201203
- modalVideo: yAt
201204
- }, MAt = ({
201213
+ }, mAt = "_thumbnailButton_1y563_1", gAt = "_hideThumbnail_1y563_29", wAt = "_videoIcon_1y563_35", vAt = "_thumbnailVideo_1y563_39", EAt = "_playIconOverlay_1y563_46", yAt = "_modalVideoContainer_1y563_68", MAt = "_modalVideo_1y563_68", g3 = {
201214
+ thumbnailButton: mAt,
201215
+ hideThumbnail: gAt,
201216
+ videoIcon: wAt,
201217
+ thumbnailVideo: vAt,
201218
+ playIconOverlay: EAt,
201219
+ modalVideoContainer: yAt,
201220
+ modalVideo: MAt
201221
+ }, VAt = ({
201205
201222
  videoSrc: t,
201206
201223
  id: e,
201207
201224
  hideThumbnail: r = !1,
@@ -201287,20 +201304,20 @@ const rAt = "/openmrs/auth?requested_document=/document_images/", Wx = (t) => t.
201287
201304
  }
201288
201305
  )
201289
201306
  ] });
201290
- }, VAt = "_actionArea_cxhw0_1", zAt = "_hidden_cxhw0_11", bAt = "_noBorder_cxhw0_16", HAt = "_header_cxhw0_20", xAt = "_title_cxhw0_30", NAt = "_headerActions_cxhw0_38", CAt = "_content_cxhw0_45", AAt = "_cappedWidth_cxhw0_50", LAt = "_buttonSet_cxhw0_55", _At = "_twoButtons_cxhw0_61", TAt = "_threeButtons_cxhw0_64", OAt = "_singleButton_cxhw0_67", Gt = {
201291
- actionArea: VAt,
201292
- hidden: zAt,
201293
- noBorder: bAt,
201294
- header: HAt,
201295
- title: xAt,
201296
- headerActions: NAt,
201297
- content: CAt,
201298
- cappedWidth: AAt,
201299
- buttonSet: LAt,
201300
- twoButtons: _At,
201301
- threeButtons: TAt,
201302
- singleButton: OAt
201303
- }, UZ1 = 16, $At = ({
201307
+ }, zAt = "_actionArea_cxhw0_1", bAt = "_hidden_cxhw0_11", HAt = "_noBorder_cxhw0_16", xAt = "_header_cxhw0_20", NAt = "_title_cxhw0_30", CAt = "_headerActions_cxhw0_38", AAt = "_content_cxhw0_45", LAt = "_cappedWidth_cxhw0_50", _At = "_buttonSet_cxhw0_55", TAt = "_twoButtons_cxhw0_61", OAt = "_threeButtons_cxhw0_64", $At = "_singleButton_cxhw0_67", Gt = {
201308
+ actionArea: zAt,
201309
+ hidden: bAt,
201310
+ noBorder: HAt,
201311
+ header: xAt,
201312
+ title: NAt,
201313
+ headerActions: CAt,
201314
+ content: AAt,
201315
+ cappedWidth: LAt,
201316
+ buttonSet: _At,
201317
+ twoButtons: TAt,
201318
+ threeButtons: OAt,
201319
+ singleButton: $At
201320
+ }, UZ1 = 16, DAt = ({
201304
201321
  title: t,
201305
201322
  primaryButtonText: e,
201306
201323
  onPrimaryButtonClick: r,
@@ -201422,21 +201439,21 @@ const rAt = "/openmrs/auth?requested_document=/document_images/", Wx = (t) => t.
201422
201439
  ]
201423
201440
  }
201424
201441
  );
201425
- }, DAt = ({ testId: t, ...e }) => /* @__PURE__ */ P(ji, { ...e, "data-testid": t }), RAt = ({
201442
+ }, RAt = ({ testId: t, ...e }) => /* @__PURE__ */ P(ji, { ...e, "data-testid": t }), SAt = ({
201426
201443
  testId: t,
201427
201444
  ...e
201428
- }) => /* @__PURE__ */ P(ah, { ...e, "data-testid": t }), SAt = ({
201445
+ }) => /* @__PURE__ */ P(ah, { ...e, "data-testid": t }), kAt = ({
201429
201446
  testId: t,
201430
201447
  ...e
201431
- }) => /* @__PURE__ */ P(HX1, { ...e, "data-testid": t }), kAt = ({
201448
+ }) => /* @__PURE__ */ P(HX1, { ...e, "data-testid": t }), IAt = ({
201432
201449
  testId: t,
201433
201450
  ...e
201434
- }) => /* @__PURE__ */ P(ce2, { ...e, "data-testid": t }), IAt = "_formCardContainer_1rru0_1", ZAt = "_title_1rru0_6", BAt = "_formsGrid_1rru0_12", PAt = "_noFormsMessage_1rru0_19", w9 = {
201435
- formCardContainer: IAt,
201436
- title: ZAt,
201437
- formsGrid: BAt,
201438
- noFormsMessage: PAt
201439
- }, FAt = ({
201451
+ }) => /* @__PURE__ */ P(ce2, { ...e, "data-testid": t }), ZAt = "_formCardContainer_1rru0_1", BAt = "_title_1rru0_6", PAt = "_formsGrid_1rru0_12", FAt = "_noFormsMessage_1rru0_19", w9 = {
201452
+ formCardContainer: ZAt,
201453
+ title: BAt,
201454
+ formsGrid: PAt,
201455
+ noFormsMessage: FAt
201456
+ }, jAt = ({
201440
201457
  title: t,
201441
201458
  children: e,
201442
201459
  noFormsMessage: r = "No forms found",
@@ -201455,17 +201472,17 @@ const rAt = "/openmrs/auth?requested_document=/document_images/", Wx = (t) => t.
201455
201472
  }
201456
201473
  ) : null
201457
201474
  ] });
201458
- }, jAt = "_formCard_pbepw_1", UAt = "_clickable_pbepw_10", qAt = "_disabled_pbepw_13", WAt = "_selected_pbepw_22", KAt = "_error_pbepw_36", GAt = "_header_pbepw_44", YAt = "_title_pbepw_51", JAt = "_errorMessage_pbepw_68", QAt = "_actionIcon_pbepw_78", Fn = {
201459
- formCard: jAt,
201460
- clickable: UAt,
201461
- disabled: qAt,
201462
- selected: WAt,
201463
- error: KAt,
201464
- header: GAt,
201465
- title: YAt,
201466
- errorMessage: JAt,
201467
- actionIcon: QAt
201468
- }, XAt = ({
201475
+ }, UAt = "_formCard_pbepw_1", qAt = "_clickable_pbepw_10", WAt = "_disabled_pbepw_13", KAt = "_selected_pbepw_22", GAt = "_error_pbepw_36", YAt = "_header_pbepw_44", JAt = "_title_pbepw_51", QAt = "_errorMessage_pbepw_68", XAt = "_actionIcon_pbepw_78", Fn = {
201476
+ formCard: UAt,
201477
+ clickable: qAt,
201478
+ disabled: WAt,
201479
+ selected: KAt,
201480
+ error: GAt,
201481
+ header: YAt,
201482
+ title: JAt,
201483
+ errorMessage: QAt,
201484
+ actionIcon: XAt
201485
+ }, eLt = ({
201469
201486
  icon: t,
201470
201487
  onClick: e,
201471
201488
  disabled: r = !1,
@@ -201498,7 +201515,7 @@ const rAt = "/openmrs/auth?requested_document=/document_images/", Wx = (t) => t.
201498
201515
  )
201499
201516
  }
201500
201517
  );
201501
- }, eLt = ({
201518
+ }, tLt = ({
201502
201519
  title: t,
201503
201520
  icon: e,
201504
201521
  iconSize: r,
@@ -201517,7 +201534,7 @@ const rAt = "/openmrs/auth?requested_document=/document_images/", Wx = (t) => t.
201517
201534
  ),
201518
201535
  /* @__PURE__ */ P("div", { className: Fn.title, children: t }),
201519
201536
  n && a && /* @__PURE__ */ P(
201520
- XAt,
201537
+ eLt,
201521
201538
  {
201522
201539
  icon: n,
201523
201540
  onClick: a,
@@ -201525,7 +201542,7 @@ const rAt = "/openmrs/auth?requested_document=/document_images/", Wx = (t) => t.
201525
201542
  ariaLabel: `Action for ${t}`
201526
201543
  }
201527
201544
  )
201528
- ] }), tLt = (t, e, r, n) => {
201545
+ ] }), rLt = (t, e, r, n) => {
201529
201546
  const a = t ?? e ?? r;
201530
201547
  return {
201531
201548
  handleCardClick: () => {
@@ -201536,7 +201553,7 @@ const rAt = "/openmrs/auth?requested_document=/document_images/", Wx = (t) => t.
201536
201553
  },
201537
201554
  hasClickHandler: !!a
201538
201555
  };
201539
- }, rLt = ({
201556
+ }, nLt = ({
201540
201557
  title: t,
201541
201558
  icon: e,
201542
201559
  iconSize: r = n3.LG,
@@ -201552,7 +201569,7 @@ const rAt = "/openmrs/auth?requested_document=/document_images/", Wx = (t) => t.
201552
201569
  ariaLabel: h,
201553
201570
  errorMessage: f
201554
201571
  }) => {
201555
- const { handleCardClick: v, handleKeyDown: g, hasClickHandler: E } = tLt(
201572
+ const { handleCardClick: v, handleKeyDown: g, hasClickHandler: E } = rLt(
201556
201573
  l,
201557
201574
  i,
201558
201575
  c,
@@ -201584,7 +201601,7 @@ const rAt = "/openmrs/auth?requested_document=/document_images/", Wx = (t) => t.
201584
201601
  ...m,
201585
201602
  children: [
201586
201603
  /* @__PURE__ */ P(
201587
- eLt,
201604
+ tLt,
201588
201605
  {
201589
201606
  title: t,
201590
201607
  icon: e,
@@ -201598,19 +201615,19 @@ const rAt = "/openmrs/auth?requested_document=/document_images/", Wx = (t) => t.
201598
201615
  ]
201599
201616
  }
201600
201617
  );
201601
- }, nLt = "_itemWithThumbnail_1o38m_1", oLt = "_thumbnail_1o38m_9", aLt = "_item_1o38m_1", lLt = "_selectedFile_1o38m_31", v9 = {
201602
- itemWithThumbnail: nLt,
201603
- thumbnail: oLt,
201604
- item: aLt,
201605
- selectedFile: lLt
201606
- }, iLt = ({
201618
+ }, oLt = "_itemWithThumbnail_1o38m_1", aLt = "_thumbnail_1o38m_9", lLt = "_item_1o38m_1", iLt = "_selectedFile_1o38m_31", v9 = {
201619
+ itemWithThumbnail: oLt,
201620
+ thumbnail: aLt,
201621
+ item: lLt,
201622
+ selectedFile: iLt
201623
+ }, cLt = ({
201607
201624
  testId: t,
201608
201625
  children: e,
201609
201626
  ...r
201610
- }) => /* @__PURE__ */ P(QX1, { ...r, "data-testid": t, children: e }), cLt = ({
201627
+ }) => /* @__PURE__ */ P(QX1, { ...r, "data-testid": t, children: e }), sLt = ({
201611
201628
  testId: t,
201612
201629
  ...e
201613
- }) => /* @__PURE__ */ P(yH, { ...e, "data-testid": t }), sLt = ({
201630
+ }) => /* @__PURE__ */ P(yH, { ...e, "data-testid": t }), dLt = ({
201614
201631
  testId: t,
201615
201632
  thumbnail: e,
201616
201633
  className: r,
@@ -201639,33 +201656,33 @@ const rAt = "/openmrs/auth?requested_document=/document_images/", Wx = (t) => t.
201639
201656
  className: r,
201640
201657
  "data-testid": t
201641
201658
  }
201642
- ), dLt = ({
201659
+ ), uLt = ({
201643
201660
  testId: t,
201644
201661
  ...e
201645
- }) => /* @__PURE__ */ P(pe2, { ...e, "data-testid": t }), uLt = ({
201662
+ }) => /* @__PURE__ */ P(pe2, { ...e, "data-testid": t }), pLt = ({
201646
201663
  testId: t,
201647
201664
  ...e
201648
- }) => /* @__PURE__ */ P(uH, { ...e, "data-testid": t }), pLt = ({
201665
+ }) => /* @__PURE__ */ P(uH, { ...e, "data-testid": t }), hLt = ({
201649
201666
  testId: t,
201650
201667
  ...e
201651
- }) => /* @__PURE__ */ P(ai, { ...e, "data-testid": t }), hLt = ({
201668
+ }) => /* @__PURE__ */ P(ai, { ...e, "data-testid": t }), fLt = ({
201652
201669
  testId: t,
201653
201670
  ...e
201654
- }) => /* @__PURE__ */ P(mh, { ...e, "data-testid": t }), fLt = ({
201671
+ }) => /* @__PURE__ */ P(mh, { ...e, "data-testid": t }), mLt = ({
201655
201672
  testId: t,
201656
201673
  ...e
201657
- }) => /* @__PURE__ */ P(fH, { ...e, "data-testid": t }), oDt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
201674
+ }) => /* @__PURE__ */ P(fH, { ...e, "data-testid": t }), aDt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
201658
201675
  __proto__: null,
201659
201676
  Accordion: i32,
201660
201677
  AccordionItem: c32,
201661
- ActionArea: $At,
201662
- ActionAreaLayout: ACt,
201678
+ ActionArea: DAt,
201679
+ ActionAreaLayout: LCt,
201663
201680
  ActionDataTable: fNt,
201664
201681
  Add: qz,
201665
201682
  ArrowRight: JY0,
201666
201683
  BAHMNI_DEFAULT_THEME: Jv0,
201667
- BaseLayout: OCt,
201668
- BoxWHeader: JCt,
201684
+ BaseLayout: $Ct,
201685
+ BoxWHeader: QCt,
201669
201686
  Breadcrumb: ntt,
201670
201687
  Button: Cs,
201671
201688
  Checkbox: _Nt,
@@ -201673,7 +201690,7 @@ const rAt = "/openmrs/auth?requested_document=/document_images/", Wx = (t) => t.
201673
201690
  ClickableTile: att,
201674
201691
  Close: st,
201675
201692
  CodeSnippetSkeleton: ANt,
201676
- CollapsibleRowGroup: tAt,
201693
+ CollapsibleRowGroup: rAt,
201677
201694
  Column: DNt,
201678
201695
  ComboBox: Kbt,
201679
201696
  ComboButton: rtt,
@@ -201686,53 +201703,53 @@ const rAt = "/openmrs/auth?requested_document=/document_images/", Wx = (t) => t.
201686
201703
  DropdownSkeleton: CNt,
201687
201704
  Edit: hJ1,
201688
201705
  ExpandableDataTable: vNt,
201689
- FileTile: hAt,
201690
- FileUploader: iLt,
201691
- FileUploaderButton: cLt,
201692
- FileUploaderItem: sLt,
201693
- FilterableMultiSelect: ZCt,
201694
- FormCard: rLt,
201695
- FormCardContainer: FAt,
201706
+ FileTile: fAt,
201707
+ FileUploader: cLt,
201708
+ FileUploaderButton: sLt,
201709
+ FileUploaderItem: dLt,
201710
+ FilterableMultiSelect: BCt,
201711
+ FormCard: nLt,
201712
+ FormCardContainer: jAt,
201696
201713
  Grid: ONt,
201697
201714
  Header: W32,
201698
201715
  ICON_PADDING: Pr,
201699
201716
  ICON_SIZE: n3,
201700
201717
  Icon: Ki,
201701
201718
  IconButton: $H,
201702
- ImageTile: sAt,
201703
- InlineLoading: pLt,
201704
- InlineNotification: dLt,
201719
+ ImageTile: dAt,
201720
+ InlineLoading: hLt,
201721
+ InlineNotification: uLt,
201705
201722
  LabelValue: Bbt,
201706
201723
  Link: RNt,
201707
201724
  Loading: iy,
201708
- Menu: DAt,
201709
- MenuButton: kAt,
201710
- MenuItem: RAt,
201711
- MenuItemDivider: SAt,
201725
+ Menu: RAt,
201726
+ MenuButton: IAt,
201727
+ MenuItem: SAt,
201728
+ MenuItemDivider: kAt,
201712
201729
  Modal: z4,
201713
201730
  NotificationContainer: aHt,
201714
201731
  NumberInput: s32,
201715
- OverflowMenu: hLt,
201716
- OverflowMenuItem: fLt,
201732
+ OverflowMenu: fLt,
201733
+ OverflowMenuItem: mLt,
201717
201734
  Printer: zJ1,
201718
201735
  Row: $Nt,
201719
201736
  RowCell: d32,
201720
201737
  Search: Pbt,
201721
- Section: $Ct,
201738
+ Section: DCt,
201722
201739
  SelectItem: ny,
201723
201740
  SelectableTag: itt,
201724
- SelectedItem: UCt,
201741
+ SelectedItem: qCt,
201725
201742
  SimpleDataTable: MNt,
201726
201743
  SkeletonPlaceholder: NNt,
201727
201744
  SkeletonText: xNt,
201728
201745
  SortableDataTable: A32,
201729
- Stack: BCt,
201746
+ Stack: PCt,
201730
201747
  StatusTag: HNt,
201731
201748
  Tab: Ubt,
201732
201749
  TabList: jbt,
201733
201750
  TabPanel: Wbt,
201734
201751
  TabPanels: qbt,
201735
- TableExpandedRow: uLt,
201752
+ TableExpandedRow: pLt,
201736
201753
  Tabs: Fbt,
201737
201754
  Tag: ltt,
201738
201755
  TextArea: Qbt,
@@ -201740,14 +201757,14 @@ const rAt = "/openmrs/auth?requested_document=/document_images/", Wx = (t) => t.
201740
201757
  TextInput: Gbt,
201741
201758
  Tile: ott,
201742
201759
  TimePicker: L32,
201743
- TimePickerInput: kNt,
201760
+ TimePickerInput: INt,
201744
201761
  TimePickerSelect: _32,
201745
201762
  TooltipIcon: bNt,
201746
201763
  TrashCan: NJ1,
201747
- VideoTile: MAt,
201764
+ VideoTile: VAt,
201748
201765
  applyBahmniTheme: Qv0,
201749
201766
  initFontAwesome: l32,
201750
- useSidebarNavigation: ICt
201767
+ useSidebarNavigation: ZCt
201751
201768
  }, Symbol.toStringTag, { value: "Module" }));
201752
201769
  var e2 = {
201753
201770
  context: void 0,
@@ -201768,14 +201785,14 @@ function qZ1(t) {
201768
201785
  function Cc(t) {
201769
201786
  e2.context = t;
201770
201787
  }
201771
- var G32 = !1, mLt = (t, e) => t === e, Wd = Symbol("solid-proxy"), Y32 = typeof Proxy == "function", J32 = Symbol("solid-track"), Kd = {
201772
- equals: mLt
201788
+ var G32 = !1, gLt = (t, e) => t === e, Wd = Symbol("solid-proxy"), Y32 = typeof Proxy == "function", J32 = Symbol("solid-track"), Kd = {
201789
+ equals: gLt
201773
201790
  }, Q32 = a42, jo = 1, Gd = 2, X32 = {
201774
201791
  owned: null,
201775
201792
  cleanups: null,
201776
201793
  context: null,
201777
201794
  owner: null
201778
- }, ww = {}, m2 = null, vw = null, gLt = null, Y2 = null, zt = null, Lo = null, Gh = 0;
201795
+ }, ww = {}, m2 = null, vw = null, wLt = null, Y2 = null, zt = null, Lo = null, Gh = 0;
201779
201796
  function F3(t, e) {
201780
201797
  const r = Y2, n = m2, a = t.length === 0, l = e === void 0 ? n : e, i = a ? X32 : {
201781
201798
  owned: null,
@@ -201800,7 +201817,7 @@ function V0(t, e) {
201800
201817
  }, n = (a) => (typeof a == "function" && (a = a(r.value)), o42(r, a));
201801
201818
  return [n42.bind(r), n];
201802
201819
  }
201803
- function wLt(t, e, r) {
201820
+ function vLt(t, e, r) {
201804
201821
  const n = Yh(t, e, !0, jo);
201805
201822
  Gi(n);
201806
201823
  }
@@ -201809,7 +201826,7 @@ function j3(t, e, r) {
201809
201826
  Gi(n);
201810
201827
  }
201811
201828
  function e42(t, e, r) {
201812
- Q32 = xLt;
201829
+ Q32 = NLt;
201813
201830
  const n = Yh(t, e, !1, jo);
201814
201831
  (!r || !r.render) && (n.user = !0), Lo ? Lo.push(n) : Gi(n);
201815
201832
  }
@@ -201818,10 +201835,10 @@ function q0(t, e, r) {
201818
201835
  const n = Yh(t, e, !0, 0);
201819
201836
  return n.observers = null, n.observerSlots = null, n.comparator = r.equals || void 0, Gi(n), n42.bind(n);
201820
201837
  }
201821
- function vLt(t) {
201838
+ function ELt(t) {
201822
201839
  return t && typeof t == "object" && "then" in t;
201823
201840
  }
201824
- function ELt(t, e, r) {
201841
+ function yLt(t, e, r) {
201825
201842
  let n, a, l;
201826
201843
  n = !0, a = t, l = {};
201827
201844
  let i = null, c = ww, s = null, d = !1, u = "initialValue" in l, p = typeof n == "function" && q0(n);
@@ -201842,7 +201859,7 @@ function ELt(t, e, r) {
201842
201859
  }, !1);
201843
201860
  }
201844
201861
  function D() {
201845
- const k = zLt, F = f(), K = g();
201862
+ const k = bLt, F = f(), K = g();
201846
201863
  if (K !== void 0 && !i) throw K;
201847
201864
  return Y2 && Y2.user, F;
201848
201865
  }
@@ -201868,7 +201885,7 @@ function ELt(t, e, r) {
201868
201885
  if (K !== void 0) {
201869
201886
  y(i, void 0, a7(K), F);
201870
201887
  return;
201871
- } else if (!vLt(q))
201888
+ } else if (!ELt(q))
201872
201889
  return y(i, q, void 0, F), q;
201873
201890
  return i = q, "v" in q ? (q.s === 1 ? y(i, q.v, void 0, F) : y(i, void 0, a7(q.v), F), q) : (d = !0, queueMicrotask(() => d = !1), uo(() => {
201874
201891
  C(u ? "refreshing" : "pending"), m();
@@ -201897,12 +201914,12 @@ function ELt(t, e, r) {
201897
201914
  }
201898
201915
  });
201899
201916
  let I = m2;
201900
- return p ? wLt(() => (I = m2, R(!1))) : R(!1), [D, {
201917
+ return p ? vLt(() => (I = m2, R(!1))) : R(!1), [D, {
201901
201918
  refetch: (k) => t42(I, () => R(k)),
201902
201919
  mutate: v
201903
201920
  }];
201904
201921
  }
201905
- function aDt(t) {
201922
+ function lDt(t) {
201906
201923
  return uo(t, !1);
201907
201924
  }
201908
201925
  function dt(t) {
@@ -201915,7 +201932,7 @@ function dt(t) {
201915
201932
  Y2 = e;
201916
201933
  }
201917
201934
  }
201918
- function lDt(t, e, r) {
201935
+ function iDt(t, e, r) {
201919
201936
  const n = Array.isArray(t);
201920
201937
  let a, l = r && r.defer;
201921
201938
  return (i) => {
@@ -201930,7 +201947,7 @@ function lDt(t, e, r) {
201930
201947
  return a = c, s;
201931
201948
  };
201932
201949
  }
201933
- function yLt(t) {
201950
+ function MLt(t) {
201934
201951
  e42(() => dt(t));
201935
201952
  }
201936
201953
  function Ts(t) {
@@ -201950,7 +201967,7 @@ function t42(t, e) {
201950
201967
  m2 = r, Y2 = n;
201951
201968
  }
201952
201969
  }
201953
- function MLt(t) {
201970
+ function VLt(t) {
201954
201971
  const e = Y2, r = m2;
201955
201972
  return Promise.resolve().then(() => {
201956
201973
  Y2 = e, m2 = r;
@@ -201958,19 +201975,19 @@ function MLt(t) {
201958
201975
  return uo(t, !1), Y2 = m2 = null, n ? n.done : void 0;
201959
201976
  });
201960
201977
  }
201961
- var [VLt, iDt] = /* @__PURE__ */ V0(!1);
201962
- function cDt() {
201963
- return [VLt, MLt];
201978
+ var [zLt, cDt] = /* @__PURE__ */ V0(!1);
201979
+ function sDt() {
201980
+ return [zLt, VLt];
201964
201981
  }
201965
- function sDt(t, e) {
201982
+ function dDt(t, e) {
201966
201983
  const r = Symbol("context");
201967
201984
  return {
201968
201985
  id: r,
201969
- Provider: NLt(r),
201986
+ Provider: CLt(r),
201970
201987
  defaultValue: t
201971
201988
  };
201972
201989
  }
201973
- function dDt(t) {
201990
+ function uDt(t) {
201974
201991
  let e;
201975
201992
  return m2 && m2.context && (e = m2.context[t.id]) !== void 0 ? e : t.defaultValue;
201976
201993
  }
@@ -201981,7 +201998,7 @@ function r42(t) {
201981
201998
  return Array.isArray(n) ? n : n != null ? [n] : [];
201982
201999
  }, r;
201983
202000
  }
201984
- var zLt;
202001
+ var bLt;
201985
202002
  function n42() {
201986
202003
  if (this.sources && this.state)
201987
202004
  if (this.state === jo) Gi(this);
@@ -202010,9 +202027,9 @@ function Gi(t) {
202010
202027
  if (!t.fn) return;
202011
202028
  Os(t);
202012
202029
  const e = Gh;
202013
- bLt(t, t.value, e);
202030
+ HLt(t, t.value, e);
202014
202031
  }
202015
- function bLt(t, e, r) {
202032
+ function HLt(t, e, r) {
202016
202033
  let n;
202017
202034
  const a = m2, l = Y2;
202018
202035
  Y2 = m2 = t;
@@ -202062,12 +202079,12 @@ function uo(t, e) {
202062
202079
  e || (zt = []), Lo ? r = !0 : Lo = [], Gh++;
202063
202080
  try {
202064
202081
  const n = t();
202065
- return HLt(r), n;
202082
+ return xLt(r), n;
202066
202083
  } catch (n) {
202067
202084
  r || (Lo = null), zt = null, Kx(n);
202068
202085
  }
202069
202086
  }
202070
- function HLt(t) {
202087
+ function xLt(t) {
202071
202088
  if (zt && (a42(zt), zt = null), t) return;
202072
202089
  const e = Lo;
202073
202090
  Lo = null, e.length && uo(() => Q32(e), !1);
@@ -202075,7 +202092,7 @@ function HLt(t) {
202075
202092
  function a42(t) {
202076
202093
  for (let e = 0; e < t.length; e++) Yd(t[e]);
202077
202094
  }
202078
- function xLt(t) {
202095
+ function NLt(t) {
202079
202096
  let e, r = 0;
202080
202097
  for (e = 0; e < t.length; e++) {
202081
202098
  const n = t[e];
@@ -202150,7 +202167,7 @@ function cy(t) {
202150
202167
  }
202151
202168
  return t;
202152
202169
  }
202153
- function NLt(t, e) {
202170
+ function CLt(t, e) {
202154
202171
  return function(n) {
202155
202172
  let a;
202156
202173
  return j3(() => a = dt(() => (m2.context = {
@@ -202163,7 +202180,7 @@ var sy = Symbol("fallback");
202163
202180
  function Qd(t) {
202164
202181
  for (let e = 0; e < t.length; e++) t[e]();
202165
202182
  }
202166
- function CLt(t, e, r = {}) {
202183
+ function ALt(t, e, r = {}) {
202167
202184
  let n = [], a = [], l = [], i = 0, c = e.length > 1 ? [] : null;
202168
202185
  return Ts(() => Qd(l)), () => {
202169
202186
  let s = t() || [], d = s.length, u, p;
@@ -202198,7 +202215,7 @@ function CLt(t, e, r = {}) {
202198
202215
  }
202199
202216
  };
202200
202217
  }
202201
- function ALt(t, e, r = {}) {
202218
+ function LLt(t, e, r = {}) {
202202
202219
  let n = [], a = [], l = [], i = [], c = 0, s;
202203
202220
  return Ts(() => Qd(l)), () => {
202204
202221
  const d = t() || [], u = d.length;
@@ -202251,7 +202268,7 @@ var dy = {
202251
202268
  function Ew(t) {
202252
202269
  return (t = typeof t == "function" ? t() : t) ? t : {};
202253
202270
  }
202254
- function LLt() {
202271
+ function _Lt() {
202255
202272
  for (let t = 0, e = this.length; t < e; ++t) {
202256
202273
  const r = this[t]();
202257
202274
  if (r !== void 0) return r;
@@ -202295,7 +202312,7 @@ function c42(...t) {
202295
202312
  n[u] = p.get ? {
202296
202313
  enumerable: !0,
202297
202314
  configurable: !0,
202298
- get: LLt.bind(r[u] = [p.get.bind(c)])
202315
+ get: _Lt.bind(r[u] = [p.get.bind(c)])
202299
202316
  } : p.value !== void 0 ? p : void 0;
202300
202317
  else {
202301
202318
  const h = r[u];
@@ -202310,7 +202327,7 @@ function c42(...t) {
202310
202327
  }
202311
202328
  return a;
202312
202329
  }
202313
- function _Lt(t, ...e) {
202330
+ function TLt(t, ...e) {
202314
202331
  if (Y32 && Wd in t) {
202315
202332
  const a = new Set(e.length > 1 ? e.flat() : e[0]), l = e.map((i) => new Proxy({
202316
202333
  get(c) {
@@ -202355,7 +202372,7 @@ function s42(t) {
202355
202372
  !e2.done && Cc(l), e2.count--, s(() => d.default), Cc();
202356
202373
  }), e = c;
202357
202374
  } else if (!e) {
202358
- const [c] = ELt(() => (r || (r = t())).then((s) => s.default));
202375
+ const [c] = yLt(() => (r || (r = t())).then((s) => s.default));
202359
202376
  e = c;
202360
202377
  }
202361
202378
  let i;
@@ -202369,24 +202386,24 @@ function s42(t) {
202369
202386
  };
202370
202387
  return n.preload = () => r || ((r = t()).then((a) => e = () => a.default), r), n;
202371
202388
  }
202372
- var TLt = 0;
202373
- function uDt() {
202374
- return e2.context ? e2.getNextContextId() : `cl-${TLt++}`;
202389
+ var OLt = 0;
202390
+ function pDt() {
202391
+ return e2.context ? e2.getNextContextId() : `cl-${OLt++}`;
202375
202392
  }
202376
202393
  var d42 = (t) => `Stale read from <${t}>.`;
202377
- function pDt(t) {
202394
+ function hDt(t) {
202378
202395
  const e = "fallback" in t && {
202379
202396
  fallback: () => t.fallback
202380
202397
  };
202381
- return q0(CLt(() => t.each, t.children, e || void 0));
202398
+ return q0(ALt(() => t.each, t.children, e || void 0));
202382
202399
  }
202383
- function hDt(t) {
202400
+ function fDt(t) {
202384
202401
  const e = "fallback" in t && {
202385
202402
  fallback: () => t.fallback
202386
202403
  };
202387
- return q0(ALt(() => t.each, t.children, e || void 0));
202404
+ return q0(LLt(() => t.each, t.children, e || void 0));
202388
202405
  }
202389
- function fDt(t) {
202406
+ function mDt(t) {
202390
202407
  const e = t.keyed, r = q0(() => t.when, void 0, void 0), n = e ? r : q0(r, void 0, {
202391
202408
  equals: (a, l) => !a == !l
202392
202409
  });
@@ -202402,7 +202419,7 @@ function fDt(t) {
202402
202419
  return t.fallback;
202403
202420
  }, void 0, void 0);
202404
202421
  }
202405
- function mDt(t) {
202422
+ function gDt(t) {
202406
202423
  const e = r42(() => t.children), r = q0(() => {
202407
202424
  const n = e(), a = Array.isArray(n) ? n : [n];
202408
202425
  let l = () => {
@@ -202425,13 +202442,13 @@ function mDt(t) {
202425
202442
  })) : c;
202426
202443
  }, void 0, void 0);
202427
202444
  }
202428
- function gDt(t) {
202445
+ function wDt(t) {
202429
202446
  return t;
202430
202447
  }
202431
- var OLt = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], $Lt = /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...OLt]), DLt = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), RLt = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
202448
+ var $Lt = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], DLt = /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...$Lt]), RLt = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), SLt = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
202432
202449
  className: "class",
202433
202450
  htmlFor: "for"
202434
- }), SLt = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
202451
+ }), kLt = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
202435
202452
  class: "className",
202436
202453
  novalidate: {
202437
202454
  $: "noValidate",
@@ -202460,11 +202477,11 @@ var OLt = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "cont
202460
202477
  TEXTAREA: 1
202461
202478
  }
202462
202479
  });
202463
- function kLt(t, e) {
202464
- const r = SLt[t];
202480
+ function ILt(t, e) {
202481
+ const r = kLt[t];
202465
202482
  return typeof r == "object" ? r[e] ? r.$ : void 0 : r;
202466
202483
  }
202467
- var ILt = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), ZLt = /* @__PURE__ */ new Set([
202484
+ var ZLt = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), BLt = /* @__PURE__ */ new Set([
202468
202485
  "altGlyph",
202469
202486
  "altGlyphDef",
202470
202487
  "altGlyphItem",
@@ -202542,11 +202559,11 @@ var ILt = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextm
202542
202559
  "use",
202543
202560
  "view",
202544
202561
  "vkern"
202545
- ]), BLt = {
202562
+ ]), PLt = {
202546
202563
  xlink: "http://www.w3.org/1999/xlink",
202547
202564
  xml: "http://www.w3.org/XML/1998/namespace"
202548
- }, wDt = (t) => q0(() => t());
202549
- function PLt(t, e, r) {
202565
+ }, vDt = (t) => q0(() => t());
202566
+ function FLt(t, e, r) {
202550
202567
  let n = r.length, a = e.length, l = n, i = 0, c = 0, s = e[a - 1].nextSibling, d = null;
202551
202568
  for (; i < a || c < l; ) {
202552
202569
  if (e[i] === r[c]) {
@@ -202594,7 +202611,7 @@ function u42(t, e, r, n = {}) {
202594
202611
  a(), e.textContent = "";
202595
202612
  };
202596
202613
  }
202597
- function vDt(t, e, r, n) {
202614
+ function EDt(t, e, r, n) {
202598
202615
  let a;
202599
202616
  const l = () => {
202600
202617
  const c = document.createElement("template");
@@ -202602,14 +202619,14 @@ function vDt(t, e, r, n) {
202602
202619
  }, i = () => (a || (a = l())).cloneNode(!0);
202603
202620
  return i.cloneNode = i, i;
202604
202621
  }
202605
- function FLt(t, e = window.document) {
202622
+ function jLt(t, e = window.document) {
202606
202623
  const r = e[Qc] || (e[Qc] = /* @__PURE__ */ new Set());
202607
202624
  for (let n = 0, a = t.length; n < a; n++) {
202608
202625
  const l = t[n];
202609
202626
  r.has(l) || (r.add(l), e.addEventListener(l, p42));
202610
202627
  }
202611
202628
  }
202612
- function EDt(t = window.document) {
202629
+ function yDt(t = window.document) {
202613
202630
  if (t[Qc]) {
202614
202631
  for (let e of t[Qc].keys()) t.removeEventListener(e, p42);
202615
202632
  delete t[Qc];
@@ -202618,16 +202635,16 @@ function EDt(t = window.document) {
202618
202635
  function uy(t, e, r) {
202619
202636
  b4(t) || (r == null ? t.removeAttribute(e) : t.setAttribute(e, r));
202620
202637
  }
202621
- function jLt(t, e, r, n) {
202638
+ function ULt(t, e, r, n) {
202622
202639
  b4(t) || (n == null ? t.removeAttributeNS(e, r) : t.setAttributeNS(e, r, n));
202623
202640
  }
202624
- function ULt(t, e, r) {
202641
+ function qLt(t, e, r) {
202625
202642
  b4(t) || (r ? t.setAttribute(e, "") : t.removeAttribute(e));
202626
202643
  }
202627
- function qLt(t, e) {
202644
+ function WLt(t, e) {
202628
202645
  b4(t) || (e == null ? t.removeAttribute("class") : t.className = e);
202629
202646
  }
202630
- function WLt(t, e, r, n) {
202647
+ function KLt(t, e, r, n) {
202631
202648
  if (n)
202632
202649
  Array.isArray(r) ? (t[`$$${e}`] = r[0], t[`$$${e}Data`] = r[1]) : t[`$$${e}`] = r;
202633
202650
  else if (Array.isArray(r)) {
@@ -202635,7 +202652,7 @@ function WLt(t, e, r, n) {
202635
202652
  t.addEventListener(e, r[0] = (l) => a.call(t, r[1], l));
202636
202653
  } else t.addEventListener(e, r, typeof r != "function" && r);
202637
202654
  }
202638
- function KLt(t, e, r = {}) {
202655
+ function GLt(t, e, r = {}) {
202639
202656
  const n = Object.keys(e || {}), a = Object.keys(r);
202640
202657
  let l, i;
202641
202658
  for (l = 0, i = a.length; l < i; l++) {
@@ -202648,7 +202665,7 @@ function KLt(t, e, r = {}) {
202648
202665
  }
202649
202666
  return r;
202650
202667
  }
202651
- function GLt(t, e, r) {
202668
+ function YLt(t, e, r) {
202652
202669
  if (!e) return r ? uy(t, "style") : e;
202653
202670
  const n = t.style;
202654
202671
  if (typeof e == "string") return n.cssText = e;
@@ -202660,18 +202677,18 @@ function GLt(t, e, r) {
202660
202677
  a = e[l], a !== r[l] && (n.setProperty(l, a), r[l] = a);
202661
202678
  return r;
202662
202679
  }
202663
- function YLt(t, e = {}, r, n) {
202680
+ function JLt(t, e = {}, r, n) {
202664
202681
  const a = {};
202665
- return n || j3(() => a.children = $s(t, e.children, a.children)), j3(() => typeof e.ref == "function" && JLt(e.ref, t)), j3(() => QLt(t, e, r, !0, a, !0)), a;
202682
+ return n || j3(() => a.children = $s(t, e.children, a.children)), j3(() => typeof e.ref == "function" && QLt(e.ref, t)), j3(() => XLt(t, e, r, !0, a, !0)), a;
202666
202683
  }
202667
- function JLt(t, e, r) {
202684
+ function QLt(t, e, r) {
202668
202685
  return dt(() => t(e, r));
202669
202686
  }
202670
202687
  function py(t, e, r, n) {
202671
202688
  if (r !== void 0 && !n && (n = []), typeof e != "function") return $s(t, e, n, r);
202672
202689
  j3((a) => $s(t, e(), a, r), n);
202673
202690
  }
202674
- function QLt(t, e, r, n, a = {}, l = !1) {
202691
+ function XLt(t, e, r, n, a = {}, l = !1) {
202675
202692
  e || (e = {});
202676
202693
  for (const i in a)
202677
202694
  if (!(i in e)) {
@@ -202685,14 +202702,14 @@ function QLt(t, e, r, n, a = {}, l = !1) {
202685
202702
  a[i] = GZ1(t, i, c, a[i], r, l, e);
202686
202703
  }
202687
202704
  }
202688
- function XLt(t) {
202705
+ function e_t(t) {
202689
202706
  let e, r;
202690
- return !b4() || !(e = e2.registry.get(r = t_t())) ? t() : (e2.completed && e2.completed.add(e), e2.registry.delete(r), e);
202707
+ return !b4() || !(e = e2.registry.get(r = r_t())) ? t() : (e2.completed && e2.completed.add(e), e2.registry.delete(r), e);
202691
202708
  }
202692
202709
  function b4(t) {
202693
202710
  return !!e2.context && !e2.done && (!t || t.isConnected);
202694
202711
  }
202695
- function e_t(t) {
202712
+ function t_t(t) {
202696
202713
  return t.toLowerCase().replace(/-([a-z])/g, (e, r) => r.toUpperCase());
202697
202714
  }
202698
202715
  function KZ1(t, e, r) {
@@ -202701,8 +202718,8 @@ function KZ1(t, e, r) {
202701
202718
  }
202702
202719
  function GZ1(t, e, r, n, a, l, i) {
202703
202720
  let c, s, d, u, p;
202704
- if (e === "style") return GLt(t, r, n);
202705
- if (e === "classList") return KLt(t, r, n);
202721
+ if (e === "style") return YLt(t, r, n);
202722
+ if (e === "classList") return GLt(t, r, n);
202706
202723
  if (r === n) return n;
202707
202724
  if (e === "ref")
202708
202725
  l || r(t);
@@ -202713,24 +202730,24 @@ function GZ1(t, e, r, n, a, l, i) {
202713
202730
  const h = e.slice(10);
202714
202731
  n && t.removeEventListener(h, n, !0), r && t.addEventListener(h, r, !0);
202715
202732
  } else if (e.slice(0, 2) === "on") {
202716
- const h = e.slice(2).toLowerCase(), f = ILt.has(h);
202733
+ const h = e.slice(2).toLowerCase(), f = ZLt.has(h);
202717
202734
  if (!f && n) {
202718
202735
  const v = Array.isArray(n) ? n[0] : n;
202719
202736
  t.removeEventListener(h, v);
202720
202737
  }
202721
- (f || r) && (WLt(t, h, r, f), f && FLt([h]));
202738
+ (f || r) && (KLt(t, h, r, f), f && jLt([h]));
202722
202739
  } else if (e.slice(0, 5) === "attr:")
202723
202740
  uy(t, e.slice(5), r);
202724
202741
  else if (e.slice(0, 5) === "bool:")
202725
- ULt(t, e.slice(5), r);
202726
- else if ((p = e.slice(0, 5) === "prop:") || (d = DLt.has(e)) || !a && ((u = kLt(e, t.tagName)) || (s = $Lt.has(e))) || (c = t.nodeName.includes("-") || "is" in i)) {
202742
+ qLt(t, e.slice(5), r);
202743
+ else if ((p = e.slice(0, 5) === "prop:") || (d = RLt.has(e)) || !a && ((u = ILt(e, t.tagName)) || (s = DLt.has(e))) || (c = t.nodeName.includes("-") || "is" in i)) {
202727
202744
  if (p)
202728
202745
  e = e.slice(5), s = !0;
202729
202746
  else if (b4(t)) return r;
202730
- e === "class" || e === "className" ? qLt(t, r) : c && !s && !d ? t[e_t(e)] = r : t[u || e] = r;
202747
+ e === "class" || e === "className" ? WLt(t, r) : c && !s && !d ? t[t_t(e)] = r : t[u || e] = r;
202731
202748
  } else {
202732
- const h = a && e.indexOf(":") > -1 && BLt[e.split(":")[0]];
202733
- h ? jLt(t, h, e, r) : uy(t, RLt[e] || e, r);
202749
+ const h = a && e.indexOf(":") > -1 && PLt[e.split(":")[0]];
202750
+ h ? ULt(t, h, e, r) : uy(t, SLt[e] || e, r);
202734
202751
  }
202735
202752
  return r;
202736
202753
  }
@@ -202817,7 +202834,7 @@ function $s(t, e, r, n, a) {
202817
202834
  }
202818
202835
  if (s.length === 0) {
202819
202836
  if (r = el(t, r, n), c) return r;
202820
- } else d ? r.length === 0 ? YZ1(t, s, n) : PLt(t, r, s) : (r && el(t), YZ1(t, s));
202837
+ } else d ? r.length === 0 ? YZ1(t, s, n) : FLt(t, r, s) : (r && el(t), YZ1(t, s));
202821
202838
  r = s;
202822
202839
  } else if (e.nodeType) {
202823
202840
  if (l && e.parentNode) return r = c ? [e] : e;
@@ -202869,14 +202886,14 @@ function el(t, e, r, n) {
202869
202886
  } else t.insertBefore(a, r);
202870
202887
  return [a];
202871
202888
  }
202872
- function t_t() {
202889
+ function r_t() {
202873
202890
  return e2.getNextContextId();
202874
202891
  }
202875
- var r_t = "http://www.w3.org/2000/svg";
202892
+ var n_t = "http://www.w3.org/2000/svg";
202876
202893
  function h42(t, e = !1) {
202877
- return e ? document.createElementNS(r_t, t) : document.createElement(t);
202894
+ return e ? document.createElementNS(n_t, t) : document.createElement(t);
202878
202895
  }
202879
- function yDt(t) {
202896
+ function MDt(t) {
202880
202897
  const {
202881
202898
  useShadow: e
202882
202899
  } = t, r = document.createTextNode(""), n = () => t.mount || document.body, a = WZ1();
@@ -202902,7 +202919,7 @@ function yDt(t) {
202902
202919
  render: !i
202903
202920
  }), r;
202904
202921
  }
202905
- function n_t(t, e) {
202922
+ function o_t(t, e) {
202906
202923
  const r = q0(t);
202907
202924
  return q0(() => {
202908
202925
  const n = r();
@@ -202910,16 +202927,16 @@ function n_t(t, e) {
202910
202927
  case "function":
202911
202928
  return dt(() => n(e));
202912
202929
  case "string":
202913
- const a = ZLt.has(n), l = e2.context ? XLt() : h42(n, a);
202914
- return YLt(l, e, a), l;
202930
+ const a = BLt.has(n), l = e2.context ? e_t() : h42(n, a);
202931
+ return JLt(l, e, a), l;
202915
202932
  }
202916
202933
  });
202917
202934
  }
202918
- function MDt(t) {
202919
- const [, e] = _Lt(t, ["component"]);
202920
- return n_t(() => t.component, e);
202935
+ function VDt(t) {
202936
+ const [, e] = TLt(t, ["component"]);
202937
+ return o_t(() => t.component, e);
202921
202938
  }
202922
- var o_t = class {
202939
+ var a_t = class {
202923
202940
  constructor() {
202924
202941
  this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
202925
202942
  }
@@ -202937,7 +202954,7 @@ var o_t = class {
202937
202954
  }
202938
202955
  }, f42 = class {
202939
202956
  constructor(t) {
202940
- this.generateIdentifier = t, this.kv = new o_t();
202957
+ this.generateIdentifier = t, this.kv = new a_t();
202941
202958
  }
202942
202959
  register(t, e) {
202943
202960
  this.kv.getByValue(t) || (e || (e = this.generateIdentifier(t)), this.kv.set(e, t));
@@ -202951,7 +202968,7 @@ var o_t = class {
202951
202968
  getValue(t) {
202952
202969
  return this.kv.getByKey(t);
202953
202970
  }
202954
- }, a_t = class extends f42 {
202971
+ }, l_t = class extends f42 {
202955
202972
  constructor() {
202956
202973
  super((t) => t.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
202957
202974
  }
@@ -202962,7 +202979,7 @@ var o_t = class {
202962
202979
  return this.classToAllowedProps.get(t);
202963
202980
  }
202964
202981
  };
202965
- function l_t(t) {
202982
+ function i_t(t) {
202966
202983
  if ("values" in Object)
202967
202984
  return Object.values(t);
202968
202985
  const e = [];
@@ -202970,8 +202987,8 @@ function l_t(t) {
202970
202987
  t.hasOwnProperty(r) && e.push(t[r]);
202971
202988
  return e;
202972
202989
  }
202973
- function i_t(t, e) {
202974
- const r = l_t(t);
202990
+ function c_t(t, e) {
202991
+ const r = i_t(t);
202975
202992
  if ("find" in r)
202976
202993
  return r.find(e);
202977
202994
  const n = r;
@@ -202994,7 +203011,7 @@ function JZ1(t, e) {
202994
203011
  return n;
202995
203012
  }
202996
203013
  }
202997
- var c_t = class {
203014
+ var s_t = class {
202998
203015
  constructor() {
202999
203016
  this.transfomers = {};
203000
203017
  }
@@ -203002,12 +203019,12 @@ var c_t = class {
203002
203019
  this.transfomers[t.name] = t;
203003
203020
  }
203004
203021
  findApplicable(t) {
203005
- return i_t(this.transfomers, (e) => e.isApplicable(t));
203022
+ return c_t(this.transfomers, (e) => e.isApplicable(t));
203006
203023
  }
203007
203024
  findByName(t) {
203008
203025
  return this.transfomers[t];
203009
203026
  }
203010
- }, s_t = (t) => Object.prototype.toString.call(t).slice(8, -1), m42 = (t) => typeof t > "u", d_t = (t) => t === null, Ds = (t) => typeof t != "object" || t === null || t === Object.prototype ? !1 : Object.getPrototypeOf(t) === null ? !0 : Object.getPrototypeOf(t) === Object.prototype, fy = (t) => Ds(t) && Object.keys(t).length === 0, ja = (t) => Array.isArray(t), u_t = (t) => typeof t == "string", p_t = (t) => typeof t == "number" && !isNaN(t), h_t = (t) => typeof t == "boolean", f_t = (t) => t instanceof RegExp, Rs = (t) => t instanceof Map, Ss = (t) => t instanceof Set, g42 = (t) => s_t(t) === "Symbol", m_t = (t) => t instanceof Date && !isNaN(t.valueOf()), g_t = (t) => t instanceof Error, QZ1 = (t) => typeof t == "number" && isNaN(t), w_t = (t) => h_t(t) || d_t(t) || m42(t) || p_t(t) || u_t(t) || g42(t), v_t = (t) => typeof t == "bigint", E_t = (t) => t === 1 / 0 || t === -1 / 0, y_t = (t) => ArrayBuffer.isView(t) && !(t instanceof DataView), M_t = (t) => t instanceof URL, w42 = (t) => t.replace(/\./g, "\\."), yw = (t) => t.map(String).map(w42).join("."), Xc = (t) => {
203027
+ }, d_t = (t) => Object.prototype.toString.call(t).slice(8, -1), m42 = (t) => typeof t > "u", u_t = (t) => t === null, Ds = (t) => typeof t != "object" || t === null || t === Object.prototype ? !1 : Object.getPrototypeOf(t) === null ? !0 : Object.getPrototypeOf(t) === Object.prototype, fy = (t) => Ds(t) && Object.keys(t).length === 0, ja = (t) => Array.isArray(t), p_t = (t) => typeof t == "string", h_t = (t) => typeof t == "number" && !isNaN(t), f_t = (t) => typeof t == "boolean", m_t = (t) => t instanceof RegExp, Rs = (t) => t instanceof Map, Ss = (t) => t instanceof Set, g42 = (t) => d_t(t) === "Symbol", g_t = (t) => t instanceof Date && !isNaN(t.valueOf()), w_t = (t) => t instanceof Error, QZ1 = (t) => typeof t == "number" && isNaN(t), v_t = (t) => f_t(t) || u_t(t) || m42(t) || h_t(t) || p_t(t) || g42(t), E_t = (t) => typeof t == "bigint", y_t = (t) => t === 1 / 0 || t === -1 / 0, M_t = (t) => ArrayBuffer.isView(t) && !(t instanceof DataView), V_t = (t) => t instanceof URL, w42 = (t) => t.replace(/\./g, "\\."), yw = (t) => t.map(String).map(w42).join("."), Xc = (t) => {
203011
203028
  const e = [];
203012
203029
  let r = "";
203013
203030
  for (let a = 0; a < t.length; a++) {
@@ -203036,9 +203053,9 @@ function kn(t, e, r, n) {
203036
203053
  var v42 = [
203037
203054
  kn(m42, "undefined", () => null, () => {
203038
203055
  }),
203039
- kn(v_t, "bigint", (t) => t.toString(), (t) => typeof BigInt < "u" ? BigInt(t) : t),
203040
- kn(m_t, "Date", (t) => t.toISOString(), (t) => new Date(t)),
203041
- kn(g_t, "Error", (t, e) => {
203056
+ kn(E_t, "bigint", (t) => t.toString(), (t) => typeof BigInt < "u" ? BigInt(t) : t),
203057
+ kn(g_t, "Date", (t) => t.toISOString(), (t) => new Date(t)),
203058
+ kn(w_t, "Error", (t, e) => {
203042
203059
  const r = {
203043
203060
  name: t.name,
203044
203061
  message: t.message
@@ -203052,7 +203069,7 @@ var v42 = [
203052
203069
  r[n] = t[n];
203053
203070
  }), r;
203054
203071
  }),
203055
- kn(f_t, "regexp", (t) => "" + t, (t) => {
203072
+ kn(m_t, "regexp", (t) => "" + t, (t) => {
203056
203073
  const e = t.slice(1, t.lastIndexOf("/")), r = t.slice(t.lastIndexOf("/") + 1);
203057
203074
  return new RegExp(e, r);
203058
203075
  }),
@@ -203065,9 +203082,9 @@ var v42 = [
203065
203082
  (t) => new Set(t)
203066
203083
  ),
203067
203084
  kn(Rs, "map", (t) => [...t.entries()], (t) => new Map(t)),
203068
- kn((t) => QZ1(t) || E_t(t), "number", (t) => QZ1(t) ? "NaN" : t > 0 ? "Infinity" : "-Infinity", Number),
203085
+ kn((t) => QZ1(t) || y_t(t), "number", (t) => QZ1(t) ? "NaN" : t > 0 ? "Infinity" : "-Infinity", Number),
203069
203086
  kn((t) => t === 0 && 1 / t === -1 / 0, "number", () => "-0", Number),
203070
- kn(M_t, "URL", (t) => t.toString(), (t) => new URL(t))
203087
+ kn(V_t, "URL", (t) => t.toString(), (t) => new URL(t))
203071
203088
  ];
203072
203089
  function Jh(t, e, r, n) {
203073
203090
  return {
@@ -203082,7 +203099,7 @@ var E42 = Jh((t, e) => g42(t) ? !!e.symbolRegistry.getIdentifier(t) : !1, (t, e)
203082
203099
  if (!n)
203083
203100
  throw new Error("Trying to deserialize unknown symbol");
203084
203101
  return n;
203085
- }), V_t = [
203102
+ }), z_t = [
203086
203103
  Int8Array,
203087
203104
  Uint8Array,
203088
203105
  Int16Array,
@@ -203092,8 +203109,8 @@ var E42 = Jh((t, e) => g42(t) ? !!e.symbolRegistry.getIdentifier(t) : !1, (t, e)
203092
203109
  Float32Array,
203093
203110
  Float64Array,
203094
203111
  Uint8ClampedArray
203095
- ].reduce((t, e) => (t[e.name] = e, t), {}), y42 = Jh(y_t, (t) => ["typed-array", t.constructor.name], (t) => [...t], (t, e) => {
203096
- const r = V_t[e[1]];
203112
+ ].reduce((t, e) => (t[e.name] = e, t), {}), y42 = Jh(M_t, (t) => ["typed-array", t.constructor.name], (t) => [...t], (t, e) => {
203113
+ const r = z_t[e[1]];
203097
203114
  if (!r)
203098
203115
  throw new Error("Trying to deserialize unknown typed array");
203099
203116
  return new r(t);
@@ -203119,8 +203136,8 @@ var V42 = Jh(M42, (t, e) => ["class", e.classRegistry.getIdentifier(t.constructo
203119
203136
  if (!n)
203120
203137
  throw new Error("Trying to deserialize unknown custom value");
203121
203138
  return n.deserialize(t);
203122
- }), z_t = [V42, E42, z42, y42], XZ1 = (t, e) => {
203123
- const r = JZ1(z_t, (a) => a.isApplicable(t, e));
203139
+ }), b_t = [V42, E42, z42, y42], XZ1 = (t, e) => {
203140
+ const r = JZ1(b_t, (a) => a.isApplicable(t, e));
203124
203141
  if (r)
203125
203142
  return {
203126
203143
  value: r.transform(t, e),
@@ -203136,7 +203153,7 @@ var V42 = Jh(M42, (t, e) => ["class", e.classRegistry.getIdentifier(t.constructo
203136
203153
  v42.forEach((t) => {
203137
203154
  b42[t.annotation] = t;
203138
203155
  });
203139
- var b_t = (t, e, r) => {
203156
+ var H_t = (t, e, r) => {
203140
203157
  if (ja(e))
203141
203158
  switch (e[0]) {
203142
203159
  case "symbol":
@@ -203172,7 +203189,7 @@ function H42(t) {
203172
203189
  if (l7(t, "constructor"))
203173
203190
  throw new Error("constructor is not allowed as a property");
203174
203191
  }
203175
- var H_t = (t, e) => {
203192
+ var x_t = (t, e) => {
203176
203193
  H42(e);
203177
203194
  for (let r = 0; r < e.length; r++) {
203178
203195
  const n = e[r];
@@ -203253,14 +203270,14 @@ function gy(t, e, r = []) {
203253
203270
  gy(l, e, [...r, ...Xc(i)]);
203254
203271
  }), e(n, r);
203255
203272
  }
203256
- function x_t(t, e, r) {
203273
+ function N_t(t, e, r) {
203257
203274
  return gy(e, (n, a) => {
203258
- t = my(t, a, (l) => b_t(l, n, r));
203275
+ t = my(t, a, (l) => H_t(l, n, r));
203259
203276
  }), t;
203260
203277
  }
203261
- function N_t(t, e) {
203278
+ function C_t(t, e) {
203262
203279
  function r(n, a) {
203263
- const l = H_t(t, Xc(a));
203280
+ const l = x_t(t, Xc(a));
203264
203281
  n.map(Xc).forEach((i) => {
203265
203282
  t = my(t, i, () => l);
203266
203283
  });
@@ -203274,12 +203291,12 @@ function N_t(t, e) {
203274
203291
  di(e, r);
203275
203292
  return t;
203276
203293
  }
203277
- var C_t = (t, e) => Ds(t) || ja(t) || Rs(t) || Ss(t) || M42(t, e);
203278
- function A_t(t, e, r) {
203294
+ var A_t = (t, e) => Ds(t) || ja(t) || Rs(t) || Ss(t) || M42(t, e);
203295
+ function L_t(t, e, r) {
203279
203296
  const n = r.get(t);
203280
203297
  n ? n.push(e) : r.set(t, [e]);
203281
203298
  }
203282
- function L_t(t, e) {
203299
+ function __t(t, e) {
203283
203300
  const r = {};
203284
203301
  let n;
203285
203302
  return t.forEach((a) => {
@@ -203291,16 +203308,16 @@ function L_t(t, e) {
203291
203308
  }), n ? fy(r) ? [n] : [n, r] : fy(r) ? void 0 : r;
203292
203309
  }
203293
203310
  var x42 = (t, e, r, n, a = [], l = [], i = /* @__PURE__ */ new Map()) => {
203294
- const c = w_t(t);
203311
+ const c = v_t(t);
203295
203312
  if (!c) {
203296
- A_t(t, a, e);
203313
+ L_t(t, a, e);
203297
203314
  const f = i.get(t);
203298
203315
  if (f)
203299
203316
  return n ? {
203300
203317
  transformedValue: null
203301
203318
  } : f;
203302
203319
  }
203303
- if (!C_t(t, r)) {
203320
+ if (!A_t(t, r)) {
203304
203321
  const f = XZ1(t, r), v = f ? {
203305
203322
  transformedValue: f.value,
203306
203323
  annotations: [f.type]
@@ -203337,13 +203354,13 @@ function N42(t) {
203337
203354
  function eB1(t) {
203338
203355
  return N42(t) === "Array";
203339
203356
  }
203340
- function __t(t) {
203357
+ function T_t(t) {
203341
203358
  if (N42(t) !== "Object")
203342
203359
  return !1;
203343
203360
  const e = Object.getPrototypeOf(t);
203344
203361
  return !!e && e.constructor === Object && e === Object.prototype;
203345
203362
  }
203346
- function T_t(t, e, r, n, a) {
203363
+ function O_t(t, e, r, n, a) {
203347
203364
  const l = {}.propertyIsEnumerable.call(n, e) ? "enumerable" : "nonenumerable";
203348
203365
  l === "enumerable" && (t[e] = r), a && l === "nonenumerable" && Object.defineProperty(t, e, {
203349
203366
  value: r,
@@ -203355,14 +203372,14 @@ function T_t(t, e, r, n, a) {
203355
203372
  function wy(t, e = {}) {
203356
203373
  if (eB1(t))
203357
203374
  return t.map((a) => wy(a, e));
203358
- if (!__t(t))
203375
+ if (!T_t(t))
203359
203376
  return t;
203360
203377
  const r = Object.getOwnPropertyNames(t), n = Object.getOwnPropertySymbols(t);
203361
203378
  return [...r, ...n].reduce((a, l) => {
203362
203379
  if (eB1(e.props) && !e.props.includes(l))
203363
203380
  return a;
203364
203381
  const i = t[l], c = wy(i, e);
203365
- return T_t(a, l, c, t, e.nonenumerable), a;
203382
+ return O_t(a, l, c, t, e.nonenumerable), a;
203366
203383
  }, {});
203367
203384
  }
203368
203385
  var J2 = class {
@@ -203370,7 +203387,7 @@ var J2 = class {
203370
203387
  * @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
203371
203388
  */
203372
203389
  constructor({ dedupe: t = !1 } = {}) {
203373
- this.classRegistry = new a_t(), this.symbolRegistry = new f42((e) => e.description ?? ""), this.customTransformerRegistry = new c_t(), this.allowedErrorProps = [], this.dedupe = t;
203390
+ this.classRegistry = new l_t(), this.symbolRegistry = new f42((e) => e.description ?? ""), this.customTransformerRegistry = new s_t(), this.allowedErrorProps = [], this.dedupe = t;
203374
203391
  }
203375
203392
  serialize(t) {
203376
203393
  const e = /* @__PURE__ */ new Map(), r = x42(t, e, this, this.dedupe), n = {
@@ -203380,7 +203397,7 @@ var J2 = class {
203380
203397
  ...n.meta,
203381
203398
  values: r.annotations
203382
203399
  });
203383
- const a = L_t(e, this.dedupe);
203400
+ const a = __t(e, this.dedupe);
203384
203401
  return a && (n.meta = {
203385
203402
  ...n.meta,
203386
203403
  referentialEqualities: a
@@ -203389,7 +203406,7 @@ var J2 = class {
203389
203406
  deserialize(t) {
203390
203407
  const { json: e, meta: r } = t;
203391
203408
  let n = wy(e);
203392
- return r?.values && (n = x_t(n, r.values, this)), r?.referentialEqualities && (n = N_t(n, r.referentialEqualities)), n;
203409
+ return r?.values && (n = N_t(n, r.values, this)), r?.referentialEqualities && (n = C_t(n, r.referentialEqualities)), n;
203393
203410
  }
203394
203411
  stringify(t) {
203395
203412
  return JSON.stringify(this.serialize(t));
@@ -203422,44 +203439,44 @@ J2.registerClass = J2.defaultInstance.registerClass.bind(J2.defaultInstance);
203422
203439
  J2.registerSymbol = J2.defaultInstance.registerSymbol.bind(J2.defaultInstance);
203423
203440
  J2.registerCustom = J2.defaultInstance.registerCustom.bind(J2.defaultInstance);
203424
203441
  J2.allowErrorProps = J2.defaultInstance.allowErrorProps.bind(J2.defaultInstance);
203425
- var O_t = J2.serialize, VDt = J2.stringify;
203426
- function zDt(t) {
203442
+ var $_t = J2.serialize, zDt = J2.stringify;
203443
+ function bDt(t) {
203427
203444
  return t.state.fetchStatus === "fetching" ? "fetching" : t.getObserversCount() ? t.state.fetchStatus === "paused" ? "paused" : t.isStale() ? "stale" : "fresh" : "inactive";
203428
203445
  }
203429
- function bDt(t, e) {
203446
+ function HDt(t, e) {
203430
203447
  return `${t}${e.charAt(0).toUpperCase() + e.slice(1)}`;
203431
203448
  }
203432
- function HDt({
203449
+ function xDt({
203433
203450
  queryState: t,
203434
203451
  observerCount: e,
203435
203452
  isStale: r
203436
203453
  }) {
203437
203454
  return t.fetchStatus === "fetching" ? "blue" : e ? t.fetchStatus === "paused" ? "purple" : r ? "yellow" : "green" : "gray";
203438
203455
  }
203439
- function xDt({
203456
+ function NDt({
203440
203457
  status: t,
203441
203458
  isPaused: e
203442
203459
  }) {
203443
203460
  return e ? "purple" : t === "error" ? "red" : t === "pending" ? "yellow" : t === "success" ? "green" : "gray";
203444
203461
  }
203445
- function NDt(t) {
203462
+ function CDt(t) {
203446
203463
  return t === "fresh" ? "green" : t === "stale" ? "yellow" : t === "paused" ? "purple" : t === "inactive" ? "gray" : "blue";
203447
203464
  }
203448
- var CDt = (t, e = !1) => {
203465
+ var ADt = (t, e = !1) => {
203449
203466
  const {
203450
203467
  json: r
203451
- } = O_t(t);
203468
+ } = $_t(t);
203452
203469
  return JSON.stringify(r, null, e ? 2 : void 0);
203453
- }, y9 = (t) => t.state.fetchStatus !== "idle" ? 0 : t.getObserversCount() ? t.isStale() ? 2 : 1 : 3, $_t = (t, e) => t.queryHash.localeCompare(e.queryHash), C42 = (t, e) => t.state.dataUpdatedAt < e.state.dataUpdatedAt ? 1 : -1, D_t = (t, e) => y9(t) === y9(e) ? C42(t, e) : y9(t) > y9(e) ? 1 : -1, ADt = {
203454
- status: D_t,
203455
- "query hash": $_t,
203456
- "last updated": C42
203457
- }, M9 = (t) => t.state.isPaused ? 0 : t.state.status === "error" ? 2 : t.state.status === "pending" ? 1 : 3, A42 = (t, e) => t.state.submittedAt < e.state.submittedAt ? 1 : -1, R_t = (t, e) => M9(t) === M9(e) ? A42(t, e) : M9(t) > M9(e) ? 1 : -1, LDt = {
203470
+ }, y9 = (t) => t.state.fetchStatus !== "idle" ? 0 : t.getObserversCount() ? t.isStale() ? 2 : 1 : 3, D_t = (t, e) => t.queryHash.localeCompare(e.queryHash), C42 = (t, e) => t.state.dataUpdatedAt < e.state.dataUpdatedAt ? 1 : -1, R_t = (t, e) => y9(t) === y9(e) ? C42(t, e) : y9(t) > y9(e) ? 1 : -1, LDt = {
203458
203471
  status: R_t,
203472
+ "query hash": D_t,
203473
+ "last updated": C42
203474
+ }, M9 = (t) => t.state.isPaused ? 0 : t.state.status === "error" ? 2 : t.state.status === "pending" ? 1 : 3, A42 = (t, e) => t.state.submittedAt < e.state.submittedAt ? 1 : -1, S_t = (t, e) => M9(t) === M9(e) ? A42(t, e) : M9(t) > M9(e) ? 1 : -1, _Dt = {
203475
+ status: S_t,
203459
203476
  "last updated": A42
203460
- }, _Dt = (t) => t * parseFloat(getComputedStyle(document.documentElement).fontSize), TDt = () => {
203477
+ }, TDt = (t) => t * parseFloat(getComputedStyle(document.documentElement).fontSize), ODt = () => {
203461
203478
  const [t, e] = V0("dark");
203462
- return yLt(() => {
203479
+ return MLt(() => {
203463
203480
  const r = window.matchMedia("(prefers-color-scheme: dark)");
203464
203481
  e(r.matches ? "dark" : "light");
203465
203482
  const n = (a) => {
@@ -203531,7 +203548,7 @@ var CDt = (t, e = !1) => {
203531
203548
  if (!t || document.querySelector("#_goober") || e?.querySelector("#_goober")) return;
203532
203549
  const n = document.createElement("style"), a = document.createTextNode("");
203533
203550
  n.appendChild(a), n.id = "_goober", n.setAttribute("nonce", t), e ? e.appendChild(n) : document.head.appendChild(n);
203534
- }, S_t = class {
203551
+ }, k_t = class {
203535
203552
  #e;
203536
203553
  #s;
203537
203554
  #d;
@@ -203583,7 +203600,7 @@ var CDt = (t, e = !1) => {
203583
203600
  const e = u42(() => {
203584
203601
  const r = this, [n] = this.#n, [a] = this.#o, [l] = this.#a, [i] = this.#l, [c] = this.#h, [s] = this.#e;
203585
203602
  let d;
203586
- return this.#i ? d = this.#i : (d = s42(() => import("./LNWAZHJI-C9KEv1sp.js")), this.#i = d), L42(this.#p, this.#r), i42(d, c42({
203603
+ return this.#i ? d = this.#i : (d = s42(() => import("./LNWAZHJI-82EJZHeR.js")), this.#i = d), L42(this.#p, this.#r), i42(d, c42({
203587
203604
  get queryFlavor() {
203588
203605
  return r.#d;
203589
203606
  },
@@ -203624,7 +203641,7 @@ var CDt = (t, e = !1) => {
203624
203641
  throw new Error("Devtools is not mounted");
203625
203642
  this.#c?.(), this.#t = !1;
203626
203643
  }
203627
- }, k_t = class {
203644
+ }, I_t = class {
203628
203645
  #e;
203629
203646
  #s;
203630
203647
  #d;
@@ -203681,7 +203698,7 @@ var CDt = (t, e = !1) => {
203681
203698
  const e = u42(() => {
203682
203699
  const r = this, [n] = this.#n, [a] = this.#o, [l] = this.#a, [i] = this.#l, [c] = this.#h, [s] = this.#e, [d] = this.#i;
203683
203700
  let u;
203684
- return this.#c ? u = this.#c : (u = s42(() => import("./MWZ6AO7Z-Dm1CN6bk.js")), this.#c = u), L42(this.#p, this.#r), i42(u, c42({
203701
+ return this.#c ? u = this.#c : (u = s42(() => import("./MWZ6AO7Z-ZuY8ITew.js")), this.#c = u), L42(this.#p, this.#r), i42(u, c42({
203685
203702
  get queryFlavor() {
203686
203703
  return r.#d;
203687
203704
  },
@@ -203726,7 +203743,7 @@ var CDt = (t, e = !1) => {
203726
203743
  this.#f?.(), this.#t = !1;
203727
203744
  }
203728
203745
  };
203729
- function I_t(t) {
203746
+ function Z_t(t) {
203730
203747
  const e = pi(t.client), r = pe.useRef(null), {
203731
203748
  buttonPosition: n,
203732
203749
  position: a,
@@ -203736,7 +203753,7 @@ function I_t(t) {
203736
203753
  shadowDOMTarget: s,
203737
203754
  hideDisabledQueries: d
203738
203755
  } = t, [u] = pe.useState(
203739
- new S_t({
203756
+ new k_t({
203740
203757
  client: e,
203741
203758
  queryFlavor: "React Query",
203742
203759
  version: "5",
@@ -203764,9 +203781,9 @@ function I_t(t) {
203764
203781
  u.unmount();
203765
203782
  }), [u]), /* @__PURE__ */ P("div", { dir: "ltr", className: "tsqd-parent-container", ref: r });
203766
203783
  }
203767
- function Z_t(t) {
203784
+ function B_t(t) {
203768
203785
  const e = pi(t.client), r = pe.useRef(null), { errorTypes: n, styleNonce: a, shadowDOMTarget: l, hideDisabledQueries: i } = t, [c] = pe.useState(
203769
- new k_t({
203786
+ new I_t({
203770
203787
  client: e,
203771
203788
  queryFlavor: "React Query",
203772
203789
  version: "5",
@@ -203799,11 +203816,11 @@ function Z_t(t) {
203799
203816
  }
203800
203817
  );
203801
203818
  }
203802
- var B_t = process.env.NODE_ENV !== "development" ? function() {
203819
+ var P_t = process.env.NODE_ENV !== "development" ? function() {
203803
203820
  return null;
203804
- } : I_t;
203821
+ } : Z_t;
203805
203822
  process.env.NODE_ENV;
203806
- const P_t = {
203823
+ const F_t = {
203807
203824
  defaultOptions: {
203808
203825
  queries: {
203809
203826
  staleTime: 300 * 1e3,
@@ -203816,19 +203833,19 @@ const P_t = {
203816
203833
  refetchIntervalInBackground: !1
203817
203834
  }
203818
203835
  }
203819
- }, ODt = "/bahmni/clinical/", $Dt = $0 + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", DDt = "bahmni.user.location", F_t = "clinical", _42 = "/bahmni_config/openmrs/apps/clinical/v2", RDt = `${_42}/cdss-servers.json`, SDt = "Stopped Order Reason", kDt = (t) => At + `/ValueSet/${t}/$expand`, j_t = _42 + "/app.json", U_t = Q2(void 0), q_t = "http://json-schema.org/draft-07/schema#", W_t = "Clinical App Configuration Schema", K_t = "Schema for global clinical app configuration including patient information, actions and available dashboards", G_t = "object", Y_t = ["patientInformation", "actions", "dashboards", "consultationPad"], J_t = !1, Q_t = { inputControl: { type: "object", required: ["type", "metadata", "encounterTypes", "privileges", "attributes"], additionalProperties: !0, properties: { type: { type: "string", description: "Identifier matching the registered form key (e.g. encounterDetails, allergies)" }, label: { type: "string", description: "Display label for the input control" }, metadata: { type: "object", description: "Additional metadata for the input control" }, encounterTypes: { type: "array", description: "Encounter types for which this control is shown", items: { type: "string" } }, privileges: { type: "array", description: "Privileges required to view this control", items: { type: "string" } }, attributes: { type: "array", description: "Form attributes configuration", items: { type: "object", required: ["name"], additionalProperties: !1, properties: { name: { type: "string", description: "Attribute name" }, required: { type: "boolean", description: "Whether this attribute is required" }, default: { type: ["string", "number", "boolean"], description: "Default value to pre-populate the field with" }, readOnly: { type: "boolean", description: "Whether this field is non-editable by the user" } } } }, cdss: { type: "array", description: "CDSS rules configuration for this input control", items: { type: "object", required: ["event", "server", "service"], additionalProperties: !1, properties: { event: { type: "string", description: "Event name that triggers CDSS check (e.g., onSelect, onSave)" }, server: { type: "string", description: "CDSS server identifier" }, service: { type: "string", description: "CDSS service endpoint name" } } } } } } }, X_t = { patientInformation: { type: "object", description: "Patient information configuration", additionalProperties: !1 }, contextInformation: { type: "object", description: "Context information configuration for displaying additional patient context", additionalProperties: !1, properties: { program: { type: "object", description: "Program details configuration", required: ["fields"], additionalProperties: !1, properties: { fields: { type: "array", description: "List of fields to display in program details", items: { type: "object", required: ["name"], additionalProperties: !1, properties: { name: { type: "string", description: "Field name to display" }, enableTranslation: { type: "boolean", description: "Whether to translate the value of this field" } } } } } } } }, patientSearch: { type: "object", description: "Configuration for patient search dropdown display", additionalProperties: !1, properties: { displayFields: { type: "array", description: "Fields to display in patient search dropdown results. Each entry maps to a PatientSearchResult field.", items: { type: "object", required: ["field"], additionalProperties: !1, properties: { field: { type: "string", enum: ["name", "identifier", "gender", "age"], description: "Field name from PatientSearchResult" }, bold: { type: "boolean", description: "Whether to render this field in bold" } } } } } }, actions: { type: "array", description: "List of available actions" }, dashboards: { type: "array", description: "List of available dashboards", items: { type: "object", required: ["name", "requiredPrivileges", "url"], additionalProperties: !1, properties: { name: { type: "string", description: "Display name of the dashboard" }, requiredPrivileges: { type: "array", items: { type: "string" }, description: "List of permissions required to access this dashboard" }, icon: { type: "string", description: "Icon class name for the dashboard" }, default: { type: "boolean", description: "Whether this is the default dashboard" }, url: { type: "string", description: "URL to access the dashboard data" }, printOptions: { type: "array", description: "Print options shown in the print button for this dashboard", items: { type: "object", required: ["translationKey", "templateId"], additionalProperties: !1, properties: { translationKey: { type: "string" }, templateId: { type: "string" }, category: { type: "string" }, privileges: { type: "array", items: { type: "string" } } } } } } } }, extensions: { type: "array", description: "List of app-specific extension configurations", items: { type: "object", required: ["id", "extensionPointId", "translationKey"], additionalProperties: !0, properties: { id: { type: "string" }, extensionPointId: { type: "string" }, translationKey: { type: "string" }, icon: { type: "string" }, requiredPrivileges: { type: "array", items: { type: "string" } }, extensionParams: { type: "object", additionalProperties: !0, properties: { searchHandler: { type: "string" }, configUrl: { type: "string" } } } } } }, consultationPad: { type: "object", description: "Configuration for consultation pad forms", required: ["allergyConceptMap", "inputControls"], additionalProperties: !0, properties: { allergyConceptMap: { type: "object", description: "UUID mappings for allergy concepts", required: ["medicationAllergenUuid", "foodAllergenUuid", "environmentalAllergenUuid", "allergyReactionUuid"], additionalProperties: !1, properties: { medicationAllergenUuid: { type: "string", description: "UUID for medication allergen concept" }, foodAllergenUuid: { type: "string", description: "UUID for food allergen concept" }, environmentalAllergenUuid: { type: "string", description: "UUID for environmental allergen concept" }, allergyReactionUuid: { type: "string", description: "UUID for allergy reaction concept" } } }, statDurationInMilliseconds: { type: "number", description: "Duration in milliseconds for which a STAT order is valid" }, allowedVisitTypes: { type: "array", description: "List of visit type names the user can choose from when starting a visit", items: { type: "string" } }, inputControls: { type: "array", description: "Ordered list of input controls to display in the consultation pad", items: { $ref: "#/definitions/inputControl" } } } } }, eTt = {
203820
- $schema: q_t,
203821
- title: W_t,
203822
- description: K_t,
203823
- type: G_t,
203824
- required: Y_t,
203825
- additionalProperties: J_t,
203826
- definitions: Q_t,
203827
- properties: X_t
203828
- }, tTt = K90({
203829
- context: U_t,
203836
+ }, $Dt = "/bahmni/clinical/", DDt = $0 + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", RDt = "bahmni.user.location", j_t = "clinical", _42 = "/bahmni_config/openmrs/apps/clinical/v2", SDt = `${_42}/cdss-servers.json`, kDt = "Stopped Order Reason", IDt = (t) => At + `/ValueSet/${t}/$expand`, U_t = _42 + "/app.json", q_t = Q2(void 0), W_t = "http://json-schema.org/draft-07/schema#", K_t = "Clinical App Configuration Schema", G_t = "Schema for global clinical app configuration including patient information, actions and available dashboards", Y_t = "object", J_t = ["patientInformation", "actions", "dashboards", "consultationPad"], Q_t = !1, X_t = { inputControl: { type: "object", required: ["type", "metadata", "encounterTypes", "privileges", "attributes"], additionalProperties: !0, properties: { type: { type: "string", description: "Identifier matching the registered form key (e.g. encounterDetails, allergies)" }, label: { type: "string", description: "Display label for the input control" }, metadata: { type: "object", description: "Additional metadata for the input control" }, encounterTypes: { type: "array", description: "Encounter types for which this control is shown", items: { type: "string" } }, privileges: { type: "array", description: "Privileges required to view this control", items: { type: "string" } }, attributes: { type: "array", description: "Form attributes configuration", items: { type: "object", required: ["name"], additionalProperties: !1, properties: { name: { type: "string", description: "Attribute name" }, required: { type: "boolean", description: "Whether this attribute is required" }, default: { type: ["string", "number", "boolean"], description: "Default value to pre-populate the field with" }, readOnly: { type: "boolean", description: "Whether this field is non-editable by the user" } } } }, cdss: { type: "array", description: "CDSS rules configuration for this input control", items: { type: "object", required: ["event", "server", "service"], additionalProperties: !1, properties: { event: { type: "string", description: "Event name that triggers CDSS check (e.g., onSelect, onSave)" }, server: { type: "string", description: "CDSS server identifier" }, service: { type: "string", description: "CDSS service endpoint name" } } } } } } }, eTt = { patientInformation: { type: "object", description: "Patient information configuration", additionalProperties: !1 }, contextInformation: { type: "object", description: "Context information configuration for displaying additional patient context", additionalProperties: !1, properties: { program: { type: "object", description: "Program details configuration", required: ["fields"], additionalProperties: !1, properties: { fields: { type: "array", description: "List of fields to display in program details", items: { type: "object", required: ["name"], additionalProperties: !1, properties: { name: { type: "string", description: "Field name to display" }, enableTranslation: { type: "boolean", description: "Whether to translate the value of this field" } } } } } } } }, patientSearch: { type: "object", description: "Configuration for patient search dropdown display", additionalProperties: !1, properties: { displayFields: { type: "array", description: "Fields to display in patient search dropdown results. Each entry maps to a PatientSearchResult field.", items: { type: "object", required: ["field"], additionalProperties: !1, properties: { field: { type: "string", enum: ["name", "identifier", "gender", "age"], description: "Field name from PatientSearchResult" }, bold: { type: "boolean", description: "Whether to render this field in bold" } } } } } }, actions: { type: "array", description: "List of available actions" }, dashboards: { type: "array", description: "List of available dashboards", items: { type: "object", required: ["name", "requiredPrivileges", "url"], additionalProperties: !1, properties: { name: { type: "string", description: "Display name of the dashboard" }, requiredPrivileges: { type: "array", items: { type: "string" }, description: "List of permissions required to access this dashboard" }, icon: { type: "string", description: "Icon class name for the dashboard" }, default: { type: "boolean", description: "Whether this is the default dashboard" }, url: { type: "string", description: "URL to access the dashboard data" }, printOptions: { type: "array", description: "Print options shown in the print button for this dashboard", items: { type: "object", required: ["translationKey", "templateId"], additionalProperties: !1, properties: { translationKey: { type: "string" }, templateId: { type: "string" }, category: { type: "string" }, privileges: { type: "array", items: { type: "string" } } } } } } } }, extensions: { type: "array", description: "List of app-specific extension configurations", items: { type: "object", required: ["id", "extensionPointId", "translationKey"], additionalProperties: !0, properties: { id: { type: "string" }, extensionPointId: { type: "string" }, translationKey: { type: "string" }, icon: { type: "string" }, requiredPrivileges: { type: "array", items: { type: "string" } }, extensionParams: { type: "object", additionalProperties: !0, properties: { searchHandler: { type: "string" }, configUrl: { type: "string" } } } } } }, consultationPad: { type: "object", description: "Configuration for consultation pad forms", required: ["allergyConceptMap", "inputControls"], additionalProperties: !0, properties: { allergyConceptMap: { type: "object", description: "UUID mappings for allergy concepts", required: ["medicationAllergenUuid", "foodAllergenUuid", "environmentalAllergenUuid", "allergyReactionUuid"], additionalProperties: !1, properties: { medicationAllergenUuid: { type: "string", description: "UUID for medication allergen concept" }, foodAllergenUuid: { type: "string", description: "UUID for food allergen concept" }, environmentalAllergenUuid: { type: "string", description: "UUID for environmental allergen concept" }, allergyReactionUuid: { type: "string", description: "UUID for allergy reaction concept" } } }, statDurationInMilliseconds: { type: "number", description: "Duration in milliseconds for which a STAT order is valid" }, allowedVisitTypes: { type: "array", description: "List of visit type names the user can choose from when starting a visit", items: { type: "string" } }, inputControls: { type: "array", description: "Ordered list of input controls to display in the consultation pad", items: { $ref: "#/definitions/inputControl" } } } } }, tTt = {
203837
+ $schema: W_t,
203838
+ title: K_t,
203839
+ description: G_t,
203840
+ type: Y_t,
203841
+ required: J_t,
203842
+ additionalProperties: Q_t,
203843
+ definitions: X_t,
203844
+ properties: eTt
203845
+ }, rTt = K90({
203846
+ context: q_t,
203830
203847
  queryKey: ["clinicalConfig"],
203831
- queryFn: () => KY1(j_t, eTt),
203848
+ queryFn: () => KY1(U_t, tTt),
203832
203849
  valueMapper: (t, e, r) => ({
203833
203850
  clinicalConfig: t,
203834
203851
  isLoading: e,
@@ -203837,39 +203854,39 @@ const P_t = {
203837
203854
  id: "clinical-config",
203838
203855
  name: "Clinical Config",
203839
203856
  displayName: "ClinicalConfigProvider"
203840
- }), rTt = B0(() => import("./ConsultationPage-vHHPzU51.js")), nTt = B0(() => import("./index-DJGrR7ms.js")), oTt = [
203857
+ }), nTt = B0(() => import("./ConsultationPage-BWefgY_A.js")), oTt = B0(() => import("./index-CD09xN3b.js")), aTt = [
203841
203858
  {
203842
203859
  path: ":patientUuid",
203843
- component: rTt
203860
+ component: nTt
203844
203861
  },
203845
203862
  {
203846
203863
  path: "/",
203847
- component: nTt
203864
+ component: oTt
203848
203865
  }
203849
- ], aTt = (t) => t.map((e) => /* @__PURE__ */ P(k42, { path: e.path, element: /* @__PURE__ */ P(e.component, {}) }, e.path)), lTt = new O42(P_t), IDt = () => {
203866
+ ], lTt = (t) => t.map((e) => /* @__PURE__ */ P(k42, { path: e.path, element: /* @__PURE__ */ P(e.component, {}) }, e.path)), iTt = new O42(F_t), ZDt = () => {
203850
203867
  const [t, e] = Ee(!1);
203851
203868
  return Me(() => wv0(), []), Me(() => {
203852
203869
  (async () => {
203853
203870
  try {
203854
- await HY1(F_t), l32(), e(!0);
203871
+ await HY1(j_t), l32(), e(!0);
203855
203872
  } catch (n) {
203856
203873
  console.error("Failed to initialize app:", n), e(!0);
203857
203874
  }
203858
203875
  })();
203859
203876
  }, []), t ? /* @__PURE__ */ P(CH, { children: /* @__PURE__ */ Ne(OW1, { children: [
203860
203877
  /* @__PURE__ */ P(Y10, {}),
203861
- /* @__PURE__ */ P($42, { client: lTt, children: /* @__PURE__ */ P(tTt, { children: /* @__PURE__ */ P(RG1, { children: /* @__PURE__ */ P(NW1, { children: /* @__PURE__ */ P(FG1, { children: /* @__PURE__ */ Ne(tJ1, { children: [
203862
- /* @__PURE__ */ P(T42, { fallback: /* @__PURE__ */ P(iy, {}), children: /* @__PURE__ */ P(I42, { children: aTt(oTt) }) }),
203863
- /* @__PURE__ */ P(B_t, { initialIsOpen: !1 })
203878
+ /* @__PURE__ */ P($42, { client: iTt, children: /* @__PURE__ */ P(rTt, { children: /* @__PURE__ */ P(RG1, { children: /* @__PURE__ */ P(NW1, { children: /* @__PURE__ */ P(FG1, { children: /* @__PURE__ */ Ne(tJ1, { children: [
203879
+ /* @__PURE__ */ P(T42, { fallback: /* @__PURE__ */ P(iy, {}), children: /* @__PURE__ */ P(I42, { children: lTt(aTt) }) }),
203880
+ /* @__PURE__ */ P(P_t, { initialIsOpen: !1 })
203864
203881
  ] }) }) }) }) }) })
203865
203882
  ] }) }) : /* @__PURE__ */ P(iy, {});
203866
203883
  };
203867
203884
  export {
203868
- GTt as $,
203885
+ YTt as $,
203869
203886
  ZTt as A,
203870
- mTt as B,
203887
+ gTt as B,
203871
203888
  DK1 as C,
203872
- qTt as D,
203889
+ WTt as D,
203873
203890
  R3 as E,
203874
203891
  rq2 as F,
203875
203892
  D2 as G,
@@ -203877,14 +203894,14 @@ export {
203877
203894
  W0 as I,
203878
203895
  fq2 as J,
203879
203896
  Ur as K,
203880
- $Dt as L,
203897
+ DDt as L,
203881
203898
  yz as M,
203882
- ITt as N,
203899
+ BTt as N,
203883
203900
  dd as O,
203884
- r$t as P,
203901
+ n$t as P,
203885
203902
  fF2 as Q,
203886
203903
  I0 as R,
203887
- WTt as S,
203904
+ KTt as S,
203888
203905
  v4 as T,
203889
203906
  yv as U,
203890
203907
  ka0 as V,
@@ -203895,7 +203912,7 @@ export {
203895
203912
  Qh0 as _,
203896
203913
  Cn as a,
203897
203914
  K9 as a$,
203898
- DDt as a0,
203915
+ RDt as a0,
203899
203916
  wg0 as a1,
203900
203917
  pp as a2,
203901
203918
  ONt as a3,
@@ -203904,201 +203921,201 @@ export {
203904
203921
  x32 as a6,
203905
203922
  ry as a7,
203906
203923
  xNt as a8,
203907
- jOt as a9,
203908
- s$t as aA,
203909
- V$t as aB,
203924
+ UOt as a9,
203925
+ d$t as aA,
203926
+ z$t as aB,
203910
203927
  _Nt as aC,
203911
- T$t as aD,
203928
+ O$t as aD,
203912
203929
  Bg0 as aE,
203913
- z$t as aF,
203914
- j$t as aG,
203915
- t$t as aH,
203916
- m$t as aI,
203917
- g$t as aJ,
203930
+ b$t as aF,
203931
+ U$t as aG,
203932
+ r$t as aH,
203933
+ g$t as aI,
203934
+ w$t as aJ,
203918
203935
  _42 as aK,
203919
- E$t as aL,
203920
- UOt as aM,
203936
+ y$t as aL,
203937
+ qOt as aM,
203921
203938
  xY1 as aN,
203922
- w$t as aO,
203923
- e$t as aP,
203924
- U$t as aQ,
203939
+ v$t as aO,
203940
+ t$t as aP,
203941
+ q$t as aQ,
203925
203942
  s32 as aR,
203926
203943
  KY1 as aS,
203927
- v$t as aT,
203928
- y$t as aU,
203929
- K$t as aV,
203944
+ E$t as aT,
203945
+ M$t as aU,
203946
+ G$t as aV,
203930
203947
  ANt as aW,
203931
- eDt as aX,
203932
- QOt as aY,
203933
- M$t as aZ,
203948
+ tDt as aX,
203949
+ XOt as aY,
203950
+ V$t as aZ,
203934
203951
  NY1 as a_,
203935
203952
  Jh0 as aa,
203936
- IOt as ab,
203937
- SOt as ac,
203938
- kOt as ad,
203953
+ ZOt as ab,
203954
+ kOt as ac,
203955
+ IOt as ad,
203939
203956
  Yh0 as ae,
203940
- oDt as af,
203941
- u$t as ag,
203957
+ aDt as af,
203958
+ p$t as ag,
203942
203959
  m6 as ah,
203943
- p$t as ai,
203944
- XOt as aj,
203945
- n$t as ak,
203946
- o$t as al,
203960
+ h$t as ai,
203961
+ e$t as aj,
203962
+ o$t as ak,
203963
+ a$t as al,
203947
203964
  RNt as am,
203948
- ZCt as an,
203965
+ BCt as an,
203949
203966
  Gbt as ao,
203950
203967
  K32 as ap,
203951
- a$t as aq,
203968
+ l$t as aq,
203952
203969
  ag0 as ar,
203953
- i$t as as,
203970
+ c$t as as,
203954
203971
  ott as at,
203955
203972
  Kbt as au,
203956
- dLt as av,
203957
- JCt as aw,
203958
- UCt as ax,
203959
- c$t as ay,
203960
- l$t as az,
203973
+ uLt as av,
203974
+ QCt as aw,
203975
+ qCt as ax,
203976
+ s$t as ay,
203977
+ i$t as az,
203961
203978
  Gs as b,
203962
- KOt as b$,
203963
- Y$t as b0,
203964
- Q$t as b1,
203965
- PTt as b2,
203966
- G$t as b3,
203979
+ GOt as b$,
203980
+ J$t as b0,
203981
+ X$t as b1,
203982
+ FTt as b2,
203983
+ Y$t as b3,
203967
203984
  $W1 as b4,
203968
- J$t as b5,
203969
- FTt as b6,
203970
- $$t as b7,
203971
- b$t as b8,
203972
- H$t as b9,
203973
- B$t as bA,
203974
- P$t as bB,
203975
- ROt as bC,
203976
- d$t as bD,
203977
- x$t as bE,
203978
- h$t as bF,
203979
- X$t as bG,
203980
- q$t as bH,
203981
- W$t as bI,
203982
- F$t as bJ,
203983
- RDt as bK,
203984
- f$t as bL,
203985
+ Q$t as b5,
203986
+ jTt as b6,
203987
+ D$t as b7,
203988
+ H$t as b8,
203989
+ x$t as b9,
203990
+ P$t as bA,
203991
+ F$t as bB,
203992
+ SOt as bC,
203993
+ u$t as bD,
203994
+ N$t as bE,
203995
+ f$t as bF,
203996
+ eDt as bG,
203997
+ W$t as bH,
203998
+ K$t as bI,
203999
+ j$t as bJ,
204000
+ SDt as bK,
204001
+ m$t as bL,
203985
204002
  wf0 as bM,
203986
- YOt as bN,
204003
+ JOt as bN,
203987
204004
  ta as bO,
203988
- oOt as bP,
203989
- $Ct as bQ,
204005
+ aOt as bP,
204006
+ DCt as bQ,
203990
204007
  pv0 as bR,
203991
- N$t as bS,
203992
- C$t as bT,
204008
+ C$t as bS,
204009
+ A$t as bT,
203993
204010
  NNt as bU,
203994
204011
  Cs as bV,
203995
- _$t as bW,
203996
- L$t as bX,
203997
- A$t as bY,
203998
- jTt as bZ,
203999
- BTt as b_,
204000
- FAt as ba,
204001
- rLt as bb,
204002
- S$t as bc,
204003
- R$t as bd,
204012
+ T$t as bW,
204013
+ _$t as bX,
204014
+ L$t as bY,
204015
+ UTt as bZ,
204016
+ PTt as b_,
204017
+ jAt as ba,
204018
+ nLt as bb,
204019
+ k$t as bc,
204020
+ S$t as bd,
204004
204021
  iy as be,
204005
204022
  At as bf,
204006
- kDt as bg,
204023
+ IDt as bg,
204007
204024
  Cg0 as bh,
204008
- ZOt as bi,
204009
- SDt as bj,
204010
- GOt as bk,
204025
+ BOt as bi,
204026
+ kDt as bj,
204027
+ YOt as bk,
204011
204028
  uf0 as bl,
204012
- SAt as bm,
204013
- D$t as bn,
204014
- I$t as bo,
204015
- WOt as bp,
204016
- JOt as bq,
204017
- qOt as br,
204029
+ kAt as bm,
204030
+ R$t as bn,
204031
+ Z$t as bo,
204032
+ KOt as bp,
204033
+ QOt as bq,
204034
+ WOt as br,
204018
204035
  Cp as bs,
204019
204036
  Ki as bt,
204020
204037
  n3 as bu,
204021
- $At as bv,
204022
- BOt as bw,
204038
+ DAt as bv,
204039
+ POt as bw,
204023
204040
  jz as bx,
204024
- k$t as by,
204025
- Z$t as bz,
204041
+ I$t as by,
204042
+ B$t as bz,
204026
204043
  ma as c,
204027
204044
  z9 as c$,
204028
- O$t as c0,
204045
+ $$t as c0,
204029
204046
  mY1 as c1,
204030
- xOt as c2,
204031
- ODt as c3,
204032
- FOt as c4,
204047
+ NOt as c2,
204048
+ $Dt as c3,
204049
+ jOt as c4,
204033
204050
  JY1 as c5,
204034
- ICt as c6,
204035
- ACt as c7,
204051
+ ZCt as c6,
204052
+ LCt as c7,
204036
204053
  W32 as c8,
204037
204054
  Dd0 as c9,
204038
- LDt as cA,
204039
- lDt as cB,
204055
+ _Dt as cA,
204056
+ iDt as cB,
204040
204057
  uy as cC,
204041
- bDt as cD,
204042
- JLt as cE,
204043
- uDt as cF,
204044
- aDt as cG,
204045
- zDt as cH,
204046
- xDt as cI,
204047
- HDt as cJ,
204048
- NDt as cK,
204049
- CDt as cL,
204050
- pDt as cM,
204051
- _Dt as cN,
204058
+ HDt as cD,
204059
+ QLt as cE,
204060
+ pDt as cF,
204061
+ lDt as cG,
204062
+ bDt as cH,
204063
+ NDt as cI,
204064
+ xDt as cJ,
204065
+ CDt as cK,
204066
+ ADt as cL,
204067
+ hDt as cM,
204068
+ TDt as cN,
204052
204069
  dt as cO,
204053
204070
  J32 as cP,
204054
- cDt as cQ,
204055
- YLt as cR,
204071
+ sDt as cQ,
204072
+ JLt as cR,
204056
204073
  c42 as cS,
204057
204074
  F3 as cT,
204058
- O_t as cU,
204059
- hDt as cV,
204075
+ $_t as cU,
204076
+ fDt as cV,
204060
204077
  V9 as cW,
204061
- WLt as cX,
204062
- VDt as cY,
204063
- gDt as cZ,
204064
- mDt as c_,
204065
- POt as ca,
204066
- XTt as cb,
204067
- tDt as cc,
204068
- rDt as cd,
204069
- OCt as ce,
204070
- nOt as cf,
204071
- U_t as cg,
204072
- TDt as ch,
204078
+ KLt as cX,
204079
+ zDt as cY,
204080
+ wDt as cZ,
204081
+ gDt as c_,
204082
+ FOt as ca,
204083
+ eOt as cb,
204084
+ rDt as cc,
204085
+ nDt as cd,
204086
+ $Ct as ce,
204087
+ oOt as cf,
204088
+ q_t as cg,
204089
+ ODt as ch,
204073
204090
  q0 as ci,
204074
204091
  i42 as cj,
204075
- sDt as ck,
204092
+ dDt as ck,
204076
204093
  V0 as cl,
204077
- yLt as cm,
204094
+ MLt as cm,
204078
204095
  e42 as cn,
204079
- yDt as co,
204080
- wDt as cp,
204081
- fDt as cq,
204082
- vDt as cr,
204096
+ MDt as co,
204097
+ vDt as cp,
204098
+ mDt as cq,
204099
+ EDt as cr,
204083
204100
  py as cs,
204084
204101
  j3 as ct,
204085
- qLt as cu,
204086
- EDt as cv,
204087
- FLt as cw,
204088
- dDt as cx,
204102
+ WLt as cu,
204103
+ yDt as cv,
204104
+ jLt as cw,
204105
+ uDt as cx,
204089
204106
  Ts as cy,
204090
- ADt as cz,
204107
+ LDt as cz,
204091
204108
  Ct as d,
204092
- _Lt as d0,
204093
- MDt as d1,
204094
- wLt as d2,
204109
+ TLt as d0,
204110
+ VDt as d1,
204111
+ vLt as d2,
204095
204112
  Fbt as d3,
204096
204113
  jbt as d4,
204097
204114
  Ubt as d5,
204098
204115
  qbt as d6,
204099
- QTt as d7,
204116
+ XTt as d7,
204100
204117
  Wbt as d8,
204101
- IDt as d9,
204118
+ ZDt as d9,
204102
204119
  cr as e,
204103
204120
  bw as f,
204104
204121
  n6 as g,
@@ -204107,18 +204124,18 @@ export {
204107
204124
  zi as j,
204108
204125
  ol0 as k,
204109
204126
  au as l,
204110
- rOt as m,
204127
+ nOt as m,
204111
204128
  Et as n,
204112
204129
  YJ2 as o,
204113
204130
  He0 as p,
204114
204131
  Hi as q,
204115
- STt as r,
204116
- RTt as s,
204117
- KTt as t,
204132
+ kTt as r,
204133
+ STt as s,
204134
+ GTt as t,
204118
204135
  B1 as u,
204119
- JTt as v,
204136
+ QTt as v,
204120
204137
  fz as w,
204121
- kTt as x,
204122
- YTt as y,
204138
+ ITt as x,
204139
+ JTt as y,
204123
204140
  O0 as z
204124
204141
  };