@bahmni/home-app 0.0.1-dev.314 → 0.0.1-dev.316

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.
@@ -72308,7 +72308,7 @@ const aA2 = "en", cA2 = "NG_TRANSLATE_LANG_KEY", FT1 = () => localStorage.getIte
72308
72308
  labels: o.labels ?? {},
72309
72309
  concepts: o.concepts ?? {}
72310
72310
  };
72311
- }, iA2 = () => Math.random().toString(36).substring(2, 9);
72311
+ }, iA2 = "problem-list-item", sA2 = "encounter-diagnosis", dA2 = "http://terminology.hl7.org/CodeSystem/condition-clinical", uA2 = "http://fhir.bahmni.org/ext/lab-order-concept-type", Srt = "http://fhir.bahmni.org/ext/observation/form-namespace-path", hA2 = () => Math.random().toString(36).substring(2, 9);
72312
72312
  function jT1(t) {
72313
72313
  const e = document.cookie.split(";");
72314
72314
  for (const r of e) {
@@ -72318,7 +72318,7 @@ function jT1(t) {
72318
72318
  }
72319
72319
  return "";
72320
72320
  }
72321
- function sA2(t, e) {
72321
+ function pA2(t, e) {
72322
72322
  document.cookie = `${t}=${e}; path=/;`;
72323
72323
  }
72324
72324
  const xv = (t, e) => {
@@ -72366,7 +72366,7 @@ const HMe = (t) => {
72366
72366
  function i7(t) {
72367
72367
  return t.replace(/[\s-]+/g, "_").replace(/([a-z])([A-Z])/g, "$1_$2").replace(/([A-Z])([A-Z][a-z])/g, "$1_$2").toUpperCase();
72368
72368
  }
72369
- const dA2 = (t) => P0 + `/user?username=${t}&v=custom:(display,username,uuid)`, UT1 = "bahmni.user.location", uA2 = `${P0}/location?tags=Login Location&v=default`, hA2 = (t) => P0 + `/user/${t}?v=full`, pA2 = kT1;
72369
+ const fA2 = (t) => P0 + `/user?username=${t}&v=custom:(display,username,uuid)`, UT1 = "bahmni.user.location", mA2 = `${P0}/location?tags=Login Location&v=default`, wA2 = (t) => P0 + `/user/${t}?v=full`, gA2 = kT1;
72370
72370
  async function WT1() {
72371
72371
  const t = jT1(OC2);
72372
72372
  if (!t)
@@ -72375,7 +72375,7 @@ async function WT1() {
72375
72375
  const e = decodeURIComponent(t).replace(
72376
72376
  /^"(.*)"$/,
72377
72377
  "$1"
72378
- ), r = await F2(dA2(e));
72378
+ ), r = await F2(fA2(e));
72379
72379
  return !r.results || r.results.length === 0 ? null : r.results[0];
72380
72380
  } catch {
72381
72381
  throw new Error(v0.t("ERROR_FETCHING_USER_DETAILS"));
@@ -72391,12 +72391,12 @@ const Lv = () => {
72391
72391
  if (!e.uuid)
72392
72392
  throw new Error(v0.t("ERROR_FETCHING_USER_LOCATION_DETAILS"));
72393
72393
  return e;
72394
- }, fA2 = async () => (await F2(uA2)).results ?? [], mA2 = async (t, e) => {
72395
- await bv(hA2(t), {
72394
+ }, vA2 = async () => (await F2(mA2)).results ?? [], EA2 = async (t, e) => {
72395
+ await bv(wA2(t), {
72396
72396
  userProperties: { loginLocation: e.uuid }
72397
72397
  });
72398
- }, wA2 = async (t) => {
72399
- await bv(pA2, { sessionLocation: t });
72398
+ }, MA2 = async (t) => {
72399
+ await bv(gA2, { sessionLocation: t });
72400
72400
  }, Cv = {
72401
72401
  person: {
72402
72402
  searchParam: "customAttribute",
@@ -72408,14 +72408,14 @@ const Lv = () => {
72408
72408
  searchFieldParam: "addressFieldName",
72409
72409
  resultParam: "addressSearchResultsConfig"
72410
72410
  }
72411
- }, gA2 = (t, e) => {
72411
+ }, yA2 = (t, e) => {
72412
72412
  e.forEach((r) => {
72413
72413
  const o = Cv[r.type];
72414
72414
  o && r.fields.forEach((a) => {
72415
72415
  t.append(o.resultParam, a);
72416
72416
  });
72417
72417
  });
72418
- }, vA2 = (t, e, r) => {
72418
+ }, VA2 = (t, e, r) => {
72419
72419
  const o = new URLSearchParams({
72420
72420
  filterOnAllIdentifiers: "false",
72421
72421
  identifier: t,
@@ -72430,7 +72430,7 @@ const Lv = () => {
72430
72430
  o.append(c.searchFieldParam, l), o.append(c.resultParam, l);
72431
72431
  });
72432
72432
  }), `${P0}/bahmni/search/patient/lucene?${o.toString()}`;
72433
- }, EA2 = (t, e, r, o, a) => {
72433
+ }, zA2 = (t, e, r, o, a) => {
72434
72434
  const c = t.trim(), l = new URLSearchParams({
72435
72435
  loginLocationUuid: a,
72436
72436
  startIndex: "0",
@@ -72439,16 +72439,16 @@ const Lv = () => {
72439
72439
  }), i = Cv[e];
72440
72440
  return i && (l.set(i.searchParam, c), r.forEach((s) => {
72441
72441
  l.append(i.searchFieldParam, s);
72442
- })), gA2(l, o), P0 + `/bahmni/search/patient?${l.toString()}`;
72442
+ })), yA2(l, o), P0 + `/bahmni/search/patient?${l.toString()}`;
72443
72443
  }, KT1 = async (t, e) => {
72444
72444
  const r = Lv();
72445
72445
  return await F2(
72446
- vA2(t, r.uuid, e)
72446
+ VA2(t, r.uuid, e)
72447
72447
  );
72448
72448
  }, GT1 = async (t, e, r, o, a) => {
72449
72449
  const c = Lv();
72450
72450
  return await F2(
72451
- EA2(
72451
+ zA2(
72452
72452
  t,
72453
72453
  e,
72454
72454
  r,
@@ -72508,7 +72508,7 @@ const Lv = () => {
72508
72508
  message: "CREATE_ENCOUNTER_MESSAGE",
72509
72509
  module: G4.REGISTRATION
72510
72510
  }
72511
- }, XT1 = 6048e5, MA2 = 864e5, Av = 6e4, QT1 = 36e5, bMe = Symbol.for("constructDateFrom");
72511
+ }, XT1 = 6048e5, HA2 = 864e5, Av = 6e4, QT1 = 36e5, bMe = Symbol.for("constructDateFrom");
72512
72512
  function Mr(t, e) {
72513
72513
  return typeof t == "function" ? t(e) : t && typeof t == "object" && bMe in t ? t[bMe](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
72514
72514
  }
@@ -72529,9 +72529,9 @@ function eO1(t, e, r) {
72529
72529
  a
72530
72530
  ), o);
72531
72531
  }
72532
- let yA2 = {};
72532
+ let bA2 = {};
72533
72533
  function s7() {
72534
- return yA2;
72534
+ return bA2;
72535
72535
  }
72536
72536
  function nl(t, e) {
72537
72537
  const r = s7(), o = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, a = d0(t, e?.in), c = a.getDay(), l = (c < o ? 7 : 0) + c - o;
@@ -72579,30 +72579,30 @@ function rO1(t, e, r) {
72579
72579
  t,
72580
72580
  e
72581
72581
  ), c = NMe(o), l = NMe(a), i = +c - xMe(c), s = +l - xMe(l);
72582
- return Math.round((i - s) / MA2);
72582
+ return Math.round((i - s) / HA2);
72583
72583
  }
72584
- function VA2(t, e) {
72584
+ function xA2(t, e) {
72585
72585
  const r = tO1(t, e), o = Mr(t, 0);
72586
72586
  return o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0), i5(o);
72587
72587
  }
72588
- function zA2(t, e, r) {
72588
+ function NA2(t, e, r) {
72589
72589
  const o = d0(t, r?.in);
72590
72590
  return o.setTime(o.getTime() + e * Av), o;
72591
72591
  }
72592
- function HA2(t, e, r) {
72592
+ function LA2(t, e, r) {
72593
72593
  return eO1(t, e * 12, r);
72594
72594
  }
72595
72595
  function Tc(t, e) {
72596
72596
  const r = +d0(t) - +d0(e);
72597
72597
  return r < 0 ? -1 : r > 0 ? 1 : r;
72598
72598
  }
72599
- function bA2(t) {
72599
+ function CA2(t) {
72600
72600
  return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
72601
72601
  }
72602
72602
  function _v(t) {
72603
- return !(!bA2(t) && typeof t != "number" || isNaN(+d0(t)));
72603
+ return !(!CA2(t) && typeof t != "number" || isNaN(+d0(t)));
72604
72604
  }
72605
- function xA2(t, e, r) {
72605
+ function AA2(t, e, r) {
72606
72606
  const [o, a] = La(
72607
72607
  r?.in,
72608
72608
  t,
@@ -72610,7 +72610,7 @@ function xA2(t, e, r) {
72610
72610
  ), c = o.getFullYear() - a.getFullYear(), l = o.getMonth() - a.getMonth();
72611
72611
  return c * 12 + l;
72612
72612
  }
72613
- function NA2(t, e, r) {
72613
+ function _A2(t, e, r) {
72614
72614
  const [o, a] = La(
72615
72615
  r?.in,
72616
72616
  t,
@@ -72634,17 +72634,17 @@ function CMe(t, e) {
72634
72634
  const r = t.getFullYear() - e.getFullYear() || t.getMonth() - e.getMonth() || t.getDate() - e.getDate() || t.getHours() - e.getHours() || t.getMinutes() - e.getMinutes() || t.getSeconds() - e.getSeconds() || t.getMilliseconds() - e.getMilliseconds();
72635
72635
  return r < 0 ? -1 : r > 0 ? 1 : r;
72636
72636
  }
72637
- function LA2(t, e) {
72637
+ function TA2(t, e) {
72638
72638
  const r = d0(t, e?.in);
72639
72639
  return r.setHours(23, 59, 59, 999), r;
72640
72640
  }
72641
- function CA2(t, e) {
72641
+ function OA2(t, e) {
72642
72642
  const r = d0(t, e?.in), o = r.getMonth();
72643
72643
  return r.setFullYear(r.getFullYear(), o + 1, 0), r.setHours(23, 59, 59, 999), r;
72644
72644
  }
72645
- function AA2(t, e) {
72645
+ function $A2(t, e) {
72646
72646
  const r = d0(t, e?.in);
72647
- return +LA2(r, e) == +CA2(r, e);
72647
+ return +TA2(r, e) == +OA2(r, e);
72648
72648
  }
72649
72649
  function nO1(t, e, r) {
72650
72650
  const [o, a, c] = La(
@@ -72653,12 +72653,12 @@ function nO1(t, e, r) {
72653
72653
  t,
72654
72654
  e
72655
72655
  ), l = Tc(a, c), i = Math.abs(
72656
- xA2(a, c)
72656
+ AA2(a, c)
72657
72657
  );
72658
72658
  if (i < 1) return 0;
72659
72659
  a.getMonth() === 1 && a.getDate() > 27 && a.setDate(30), a.setMonth(a.getMonth() - l * i);
72660
72660
  let s = Tc(a, c) === -l;
72661
- AA2(o) && i === 1 && Tc(o, c) === 1 && (s = !1);
72661
+ $A2(o) && i === 1 && Tc(o, c) === 1 && (s = !1);
72662
72662
  const d = l * (i - +s);
72663
72663
  return d === 0 ? 0 : d;
72664
72664
  }
@@ -72667,16 +72667,16 @@ function oO1(t, e, r) {
72667
72667
  r?.in,
72668
72668
  t,
72669
72669
  e
72670
- ), c = Tc(o, a), l = Math.abs(NA2(o, a));
72670
+ ), c = Tc(o, a), l = Math.abs(_A2(o, a));
72671
72671
  o.setFullYear(1584), a.setFullYear(1584);
72672
72672
  const i = Tc(o, a) === -c, s = c * (l - +i);
72673
72673
  return s === 0 ? 0 : s;
72674
72674
  }
72675
- function _A2(t, e) {
72675
+ function DA2(t, e) {
72676
72676
  const r = d0(t, e?.in);
72677
72677
  return r.setFullYear(r.getFullYear(), 0, 1), r.setHours(0, 0, 0, 0), r;
72678
72678
  }
72679
- const TA2 = {
72679
+ const RA2 = {
72680
72680
  lessThanXSeconds: {
72681
72681
  one: "less than a second",
72682
72682
  other: "less than {{count}} seconds"
@@ -72738,9 +72738,9 @@ const TA2 = {
72738
72738
  one: "almost 1 year",
72739
72739
  other: "almost {{count}} years"
72740
72740
  }
72741
- }, OA2 = (t, e, r) => {
72741
+ }, SA2 = (t, e, r) => {
72742
72742
  let o;
72743
- const a = TA2[t];
72743
+ const a = RA2[t];
72744
72744
  return typeof a == "string" ? o = a : e === 1 ? o = a.one : o = a.other.replace("{{count}}", e.toString()), r?.addSuffix ? r.comparison && r.comparison > 0 ? "in " + o : o + " ago" : o;
72745
72745
  };
72746
72746
  function Iu(t) {
@@ -72749,42 +72749,42 @@ function Iu(t) {
72749
72749
  return t.formats[r] || t.formats[t.defaultWidth];
72750
72750
  };
72751
72751
  }
72752
- const $A2 = {
72752
+ const kA2 = {
72753
72753
  full: "EEEE, MMMM do, y",
72754
72754
  long: "MMMM do, y",
72755
72755
  medium: "MMM d, y",
72756
72756
  short: "MM/dd/yyyy"
72757
- }, DA2 = {
72757
+ }, ZA2 = {
72758
72758
  full: "h:mm:ss a zzzz",
72759
72759
  long: "h:mm:ss a z",
72760
72760
  medium: "h:mm:ss a",
72761
72761
  short: "h:mm a"
72762
- }, RA2 = {
72762
+ }, IA2 = {
72763
72763
  full: "{{date}} 'at' {{time}}",
72764
72764
  long: "{{date}} 'at' {{time}}",
72765
72765
  medium: "{{date}}, {{time}}",
72766
72766
  short: "{{date}}, {{time}}"
72767
- }, SA2 = {
72767
+ }, BA2 = {
72768
72768
  date: Iu({
72769
- formats: $A2,
72769
+ formats: kA2,
72770
72770
  defaultWidth: "full"
72771
72771
  }),
72772
72772
  time: Iu({
72773
- formats: DA2,
72773
+ formats: ZA2,
72774
72774
  defaultWidth: "full"
72775
72775
  }),
72776
72776
  dateTime: Iu({
72777
- formats: RA2,
72777
+ formats: IA2,
72778
72778
  defaultWidth: "full"
72779
72779
  })
72780
- }, kA2 = {
72780
+ }, PA2 = {
72781
72781
  lastWeek: "'last' eeee 'at' p",
72782
72782
  yesterday: "'yesterday at' p",
72783
72783
  today: "'today at' p",
72784
72784
  tomorrow: "'tomorrow at' p",
72785
72785
  nextWeek: "eeee 'at' p",
72786
72786
  other: "P"
72787
- }, ZA2 = (t, e, r, o) => kA2[t];
72787
+ }, FA2 = (t, e, r, o) => PA2[t];
72788
72788
  function ac(t) {
72789
72789
  return (e, r) => {
72790
72790
  const o = r?.context ? String(r.context) : "standalone";
@@ -72800,15 +72800,15 @@ function ac(t) {
72800
72800
  return a[c];
72801
72801
  };
72802
72802
  }
72803
- const IA2 = {
72803
+ const jA2 = {
72804
72804
  narrow: ["B", "A"],
72805
72805
  abbreviated: ["BC", "AD"],
72806
72806
  wide: ["Before Christ", "Anno Domini"]
72807
- }, BA2 = {
72807
+ }, qA2 = {
72808
72808
  narrow: ["1", "2", "3", "4"],
72809
72809
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
72810
72810
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
72811
- }, PA2 = {
72811
+ }, UA2 = {
72812
72812
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
72813
72813
  abbreviated: [
72814
72814
  "Jan",
@@ -72838,7 +72838,7 @@ const IA2 = {
72838
72838
  "November",
72839
72839
  "December"
72840
72840
  ]
72841
- }, FA2 = {
72841
+ }, WA2 = {
72842
72842
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
72843
72843
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
72844
72844
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -72851,7 +72851,7 @@ const IA2 = {
72851
72851
  "Friday",
72852
72852
  "Saturday"
72853
72853
  ]
72854
- }, jA2 = {
72854
+ }, KA2 = {
72855
72855
  narrow: {
72856
72856
  am: "a",
72857
72857
  pm: "p",
@@ -72882,7 +72882,7 @@ const IA2 = {
72882
72882
  evening: "evening",
72883
72883
  night: "night"
72884
72884
  }
72885
- }, qA2 = {
72885
+ }, GA2 = {
72886
72886
  narrow: {
72887
72887
  am: "a",
72888
72888
  pm: "p",
@@ -72913,7 +72913,7 @@ const IA2 = {
72913
72913
  evening: "in the evening",
72914
72914
  night: "at night"
72915
72915
  }
72916
- }, UA2 = (t, e) => {
72916
+ }, YA2 = (t, e) => {
72917
72917
  const r = Number(t), o = r % 100;
72918
72918
  if (o > 20 || o < 10)
72919
72919
  switch (o % 10) {
@@ -72925,29 +72925,29 @@ const IA2 = {
72925
72925
  return r + "rd";
72926
72926
  }
72927
72927
  return r + "th";
72928
- }, WA2 = {
72929
- ordinalNumber: UA2,
72928
+ }, JA2 = {
72929
+ ordinalNumber: YA2,
72930
72930
  era: ac({
72931
- values: IA2,
72931
+ values: jA2,
72932
72932
  defaultWidth: "wide"
72933
72933
  }),
72934
72934
  quarter: ac({
72935
- values: BA2,
72935
+ values: qA2,
72936
72936
  defaultWidth: "wide",
72937
72937
  argumentCallback: (t) => t - 1
72938
72938
  }),
72939
72939
  month: ac({
72940
- values: PA2,
72940
+ values: UA2,
72941
72941
  defaultWidth: "wide"
72942
72942
  }),
72943
72943
  day: ac({
72944
- values: FA2,
72944
+ values: WA2,
72945
72945
  defaultWidth: "wide"
72946
72946
  }),
72947
72947
  dayPeriod: ac({
72948
- values: jA2,
72948
+ values: KA2,
72949
72949
  defaultWidth: "wide",
72950
- formattingValues: qA2,
72950
+ formattingValues: GA2,
72951
72951
  defaultFormattingWidth: "wide"
72952
72952
  })
72953
72953
  };
@@ -72956,9 +72956,9 @@ function cc(t) {
72956
72956
  const o = r.width, a = o && t.matchPatterns[o] || t.matchPatterns[t.defaultMatchWidth], c = e.match(a);
72957
72957
  if (!c)
72958
72958
  return null;
72959
- const l = c[0], i = o && t.parsePatterns[o] || t.parsePatterns[t.defaultParseWidth], s = Array.isArray(i) ? GA2(i, (h) => h.test(l)) : (
72959
+ const l = c[0], i = o && t.parsePatterns[o] || t.parsePatterns[t.defaultParseWidth], s = Array.isArray(i) ? QA2(i, (h) => h.test(l)) : (
72960
72960
  // [TODO] -- I challenge you to fix the type
72961
- KA2(i, (h) => h.test(l))
72961
+ XA2(i, (h) => h.test(l))
72962
72962
  );
72963
72963
  let d;
72964
72964
  d = t.valueCallback ? t.valueCallback(s) : s, d = r.valueCallback ? (
@@ -72969,17 +72969,17 @@ function cc(t) {
72969
72969
  return { value: d, rest: u };
72970
72970
  };
72971
72971
  }
72972
- function KA2(t, e) {
72972
+ function XA2(t, e) {
72973
72973
  for (const r in t)
72974
72974
  if (Object.prototype.hasOwnProperty.call(t, r) && e(t[r]))
72975
72975
  return r;
72976
72976
  }
72977
- function GA2(t, e) {
72977
+ function QA2(t, e) {
72978
72978
  for (let r = 0; r < t.length; r++)
72979
72979
  if (e(t[r]))
72980
72980
  return r;
72981
72981
  }
72982
- function YA2(t) {
72982
+ function e_2(t) {
72983
72983
  return (e, r = {}) => {
72984
72984
  const o = e.match(t.matchPattern);
72985
72985
  if (!o) return null;
@@ -72991,23 +72991,23 @@ function YA2(t) {
72991
72991
  return { value: l, rest: i };
72992
72992
  };
72993
72993
  }
72994
- const JA2 = /^(\d+)(th|st|nd|rd)?/i, XA2 = /\d+/i, QA2 = {
72994
+ const t_2 = /^(\d+)(th|st|nd|rd)?/i, r_2 = /\d+/i, n_2 = {
72995
72995
  narrow: /^(b|a)/i,
72996
72996
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
72997
72997
  wide: /^(before christ|before common era|anno domini|common era)/i
72998
- }, e_2 = {
72998
+ }, o_2 = {
72999
72999
  any: [/^b/i, /^(a|c)/i]
73000
- }, t_2 = {
73000
+ }, a_2 = {
73001
73001
  narrow: /^[1234]/i,
73002
73002
  abbreviated: /^q[1234]/i,
73003
73003
  wide: /^[1234](th|st|nd|rd)? quarter/i
73004
- }, r_2 = {
73004
+ }, c_2 = {
73005
73005
  any: [/1/i, /2/i, /3/i, /4/i]
73006
- }, n_2 = {
73006
+ }, l_2 = {
73007
73007
  narrow: /^[jfmasond]/i,
73008
73008
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
73009
73009
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
73010
- }, o_2 = {
73010
+ }, i_2 = {
73011
73011
  narrow: [
73012
73012
  /^j/i,
73013
73013
  /^f/i,
@@ -73036,18 +73036,18 @@ const JA2 = /^(\d+)(th|st|nd|rd)?/i, XA2 = /\d+/i, QA2 = {
73036
73036
  /^n/i,
73037
73037
  /^d/i
73038
73038
  ]
73039
- }, a_2 = {
73039
+ }, s_2 = {
73040
73040
  narrow: /^[smtwf]/i,
73041
73041
  short: /^(su|mo|tu|we|th|fr|sa)/i,
73042
73042
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
73043
73043
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
73044
- }, c_2 = {
73044
+ }, d_2 = {
73045
73045
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
73046
73046
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
73047
- }, l_2 = {
73047
+ }, u_2 = {
73048
73048
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
73049
73049
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
73050
- }, i_2 = {
73050
+ }, h_2 = {
73051
73051
  any: {
73052
73052
  am: /^a/i,
73053
73053
  pm: /^p/i,
@@ -73058,61 +73058,61 @@ const JA2 = /^(\d+)(th|st|nd|rd)?/i, XA2 = /\d+/i, QA2 = {
73058
73058
  evening: /evening/i,
73059
73059
  night: /night/i
73060
73060
  }
73061
- }, s_2 = {
73062
- ordinalNumber: YA2({
73063
- matchPattern: JA2,
73064
- parsePattern: XA2,
73061
+ }, p_2 = {
73062
+ ordinalNumber: e_2({
73063
+ matchPattern: t_2,
73064
+ parsePattern: r_2,
73065
73065
  valueCallback: (t) => parseInt(t, 10)
73066
73066
  }),
73067
73067
  era: cc({
73068
- matchPatterns: QA2,
73068
+ matchPatterns: n_2,
73069
73069
  defaultMatchWidth: "wide",
73070
- parsePatterns: e_2,
73070
+ parsePatterns: o_2,
73071
73071
  defaultParseWidth: "any"
73072
73072
  }),
73073
73073
  quarter: cc({
73074
- matchPatterns: t_2,
73074
+ matchPatterns: a_2,
73075
73075
  defaultMatchWidth: "wide",
73076
- parsePatterns: r_2,
73076
+ parsePatterns: c_2,
73077
73077
  defaultParseWidth: "any",
73078
73078
  valueCallback: (t) => t + 1
73079
73079
  }),
73080
73080
  month: cc({
73081
- matchPatterns: n_2,
73081
+ matchPatterns: l_2,
73082
73082
  defaultMatchWidth: "wide",
73083
- parsePatterns: o_2,
73083
+ parsePatterns: i_2,
73084
73084
  defaultParseWidth: "any"
73085
73085
  }),
73086
73086
  day: cc({
73087
- matchPatterns: a_2,
73087
+ matchPatterns: s_2,
73088
73088
  defaultMatchWidth: "wide",
73089
- parsePatterns: c_2,
73089
+ parsePatterns: d_2,
73090
73090
  defaultParseWidth: "any"
73091
73091
  }),
73092
73092
  dayPeriod: cc({
73093
- matchPatterns: l_2,
73093
+ matchPatterns: u_2,
73094
73094
  defaultMatchWidth: "any",
73095
- parsePatterns: i_2,
73095
+ parsePatterns: h_2,
73096
73096
  defaultParseWidth: "any"
73097
73097
  })
73098
- }, d_2 = {
73098
+ }, f_2 = {
73099
73099
  code: "en-US",
73100
- formatDistance: OA2,
73101
- formatLong: SA2,
73102
- formatRelative: ZA2,
73103
- localize: WA2,
73104
- match: s_2,
73100
+ formatDistance: SA2,
73101
+ formatLong: BA2,
73102
+ formatRelative: FA2,
73103
+ localize: JA2,
73104
+ match: p_2,
73105
73105
  options: {
73106
73106
  weekStartsOn: 0,
73107
73107
  firstWeekContainsDate: 1
73108
73108
  }
73109
73109
  };
73110
- function u_2(t, e) {
73110
+ function m_2(t, e) {
73111
73111
  const r = d0(t, e?.in);
73112
- return rO1(r, _A2(r)) + 1;
73112
+ return rO1(r, DA2(r)) + 1;
73113
73113
  }
73114
- function h_2(t, e) {
73115
- const r = d0(t, e?.in), o = +i5(r) - +VA2(r);
73114
+ function w_2(t, e) {
73115
+ const r = d0(t, e?.in), o = +i5(r) - +xA2(r);
73116
73116
  return Math.round(o / XT1) + 1;
73117
73117
  }
73118
73118
  function aO1(t, e) {
@@ -73123,12 +73123,12 @@ function aO1(t, e) {
73123
73123
  const d = nl(s, e);
73124
73124
  return +r >= +i ? o + 1 : +r >= +d ? o : o - 1;
73125
73125
  }
73126
- function p_2(t, e) {
73126
+ function g_2(t, e) {
73127
73127
  const r = s7(), o = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, a = aO1(t, e), c = Mr(e?.in || t, 0);
73128
73128
  return c.setFullYear(a, 0, o), c.setHours(0, 0, 0, 0), nl(c, e);
73129
73129
  }
73130
- function f_2(t, e) {
73131
- const r = d0(t, e?.in), o = +nl(r, e) - +p_2(r, e);
73130
+ function v_2(t, e) {
73131
+ const r = d0(t, e?.in), o = +nl(r, e) - +g_2(r, e);
73132
73132
  return Math.round(o / XT1) + 1;
73133
73133
  }
73134
73134
  function L2(t, e) {
@@ -73379,12 +73379,12 @@ const Zn = {
73379
73379
  },
73380
73380
  // Local week of year
73381
73381
  w: function(t, e, r, o) {
73382
- const a = f_2(t, o);
73382
+ const a = v_2(t, o);
73383
73383
  return e === "wo" ? r.ordinalNumber(a, { unit: "week" }) : L2(a, e.length);
73384
73384
  },
73385
73385
  // ISO week of year
73386
73386
  I: function(t, e, r) {
73387
- const o = h_2(t);
73387
+ const o = w_2(t);
73388
73388
  return e === "Io" ? r.ordinalNumber(o, { unit: "week" }) : L2(o, e.length);
73389
73389
  },
73390
73390
  // Day of the month
@@ -73393,7 +73393,7 @@ const Zn = {
73393
73393
  },
73394
73394
  // Day of year
73395
73395
  D: function(t, e, r) {
73396
- const o = u_2(t);
73396
+ const o = m_2(t);
73397
73397
  return e === "Do" ? r.ordinalNumber(o, { unit: "dayOfYear" }) : L2(o, e.length);
73398
73398
  },
73399
73399
  // Day of week
@@ -73786,7 +73786,7 @@ const OMe = (t, e) => {
73786
73786
  default:
73787
73787
  return e.time({ width: "full" });
73788
73788
  }
73789
- }, m_2 = (t, e) => {
73789
+ }, E_2 = (t, e) => {
73790
73790
  const r = t.match(/(P+)(p+)?/) || [], o = r[1], a = r[2];
73791
73791
  if (!a)
73792
73792
  return OMe(t, e);
@@ -73807,45 +73807,45 @@ const OMe = (t, e) => {
73807
73807
  break;
73808
73808
  }
73809
73809
  return c.replace("{{date}}", OMe(o, e)).replace("{{time}}", cO1(a, e));
73810
- }, w_2 = {
73810
+ }, M_2 = {
73811
73811
  p: cO1,
73812
- P: m_2
73813
- }, g_2 = /^D+$/, v_2 = /^Y+$/, E_2 = ["D", "DD", "YY", "YYYY"];
73814
- function M_2(t) {
73815
- return g_2.test(t);
73812
+ P: E_2
73813
+ }, y_2 = /^D+$/, V_2 = /^Y+$/, z_2 = ["D", "DD", "YY", "YYYY"];
73814
+ function H_2(t) {
73815
+ return y_2.test(t);
73816
73816
  }
73817
- function y_2(t) {
73818
- return v_2.test(t);
73817
+ function b_2(t) {
73818
+ return V_2.test(t);
73819
73819
  }
73820
- function V_2(t, e, r) {
73821
- const o = z_2(t, e, r);
73822
- if (console.warn(o), E_2.includes(t)) throw new RangeError(o);
73820
+ function x_2(t, e, r) {
73821
+ const o = N_2(t, e, r);
73822
+ if (console.warn(o), z_2.includes(t)) throw new RangeError(o);
73823
73823
  }
73824
- function z_2(t, e, r) {
73824
+ function N_2(t, e, r) {
73825
73825
  const o = t[0] === "Y" ? "years" : "days of the month";
73826
73826
  return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${o} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
73827
73827
  }
73828
- const H_2 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, b_2 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, x_2 = /^'([^]*?)'?$/, N_2 = /''/g, L_2 = /[a-zA-Z]/;
73829
- function C_2(t, e, r) {
73830
- const o = s7(), a = o.locale ?? d_2, c = o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, l = o.weekStartsOn ?? o.locale?.options?.weekStartsOn ?? 0, i = d0(t, r?.in);
73828
+ const L_2 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, C_2 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, A_2 = /^'([^]*?)'?$/, __2 = /''/g, T_2 = /[a-zA-Z]/;
73829
+ function O_2(t, e, r) {
73830
+ const o = s7(), a = o.locale ?? f_2, c = o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, l = o.weekStartsOn ?? o.locale?.options?.weekStartsOn ?? 0, i = d0(t, r?.in);
73831
73831
  if (!_v(i))
73832
73832
  throw new RangeError("Invalid time value");
73833
- let s = e.match(b_2).map((u) => {
73833
+ let s = e.match(C_2).map((u) => {
73834
73834
  const h = u[0];
73835
73835
  if (h === "p" || h === "P") {
73836
- const p = w_2[h];
73836
+ const p = M_2[h];
73837
73837
  return p(u, a.formatLong);
73838
73838
  }
73839
73839
  return u;
73840
- }).join("").match(H_2).map((u) => {
73840
+ }).join("").match(L_2).map((u) => {
73841
73841
  if (u === "''")
73842
73842
  return { isToken: !1, value: "'" };
73843
73843
  const h = u[0];
73844
73844
  if (h === "'")
73845
- return { isToken: !1, value: A_2(u) };
73845
+ return { isToken: !1, value: $_2(u) };
73846
73846
  if (AMe[h])
73847
73847
  return { isToken: !0, value: u };
73848
- if (h.match(L_2))
73848
+ if (h.match(T_2))
73849
73849
  throw new RangeError(
73850
73850
  "Format string contains an unescaped latin alphabet character `" + h + "`"
73851
73851
  );
@@ -73860,29 +73860,29 @@ function C_2(t, e, r) {
73860
73860
  return s.map((u) => {
73861
73861
  if (!u.isToken) return u.value;
73862
73862
  const h = u.value;
73863
- (y_2(h) || M_2(h)) && V_2(h, e, String(t));
73863
+ (b_2(h) || H_2(h)) && x_2(h, e, String(t));
73864
73864
  const p = AMe[h[0]];
73865
73865
  return p(i, h, a.localize, d);
73866
73866
  }).join("");
73867
73867
  }
73868
- function A_2(t) {
73869
- const e = t.match(x_2);
73870
- return e ? e[1].replace(N_2, "'") : t;
73868
+ function $_2(t) {
73869
+ const e = t.match(A_2);
73870
+ return e ? e[1].replace(__2, "'") : t;
73871
73871
  }
73872
73872
  function lO1(t, e) {
73873
- const r = () => Mr(e?.in, NaN), o = $_2(t);
73873
+ const r = () => Mr(e?.in, NaN), o = k_2(t);
73874
73874
  let a;
73875
73875
  if (o.date) {
73876
- const s = D_2(o.date, 2);
73877
- a = R_2(s.restDateString, s.year);
73876
+ const s = Z_2(o.date, 2);
73877
+ a = I_2(s.restDateString, s.year);
73878
73878
  }
73879
73879
  if (!a || isNaN(+a)) return r();
73880
73880
  const c = +a;
73881
73881
  let l = 0, i;
73882
- if (o.time && (l = S_2(o.time), isNaN(l)))
73882
+ if (o.time && (l = B_2(o.time), isNaN(l)))
73883
73883
  return r();
73884
73884
  if (o.timezone) {
73885
- if (i = k_2(o.timezone), isNaN(i)) return r();
73885
+ if (i = P_2(o.timezone), isNaN(i)) return r();
73886
73886
  } else {
73887
73887
  const s = new Date(c + l), d = d0(0, e?.in);
73888
73888
  return d.setFullYear(
@@ -73902,8 +73902,8 @@ const Wi = {
73902
73902
  dateTimeDelimiter: /[T ]/,
73903
73903
  timeZoneDelimiter: /[Z ]/i,
73904
73904
  timezone: /([Z+-].*)$/
73905
- }, __2 = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, T_2 = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, O_2 = /^([+-])(\d{2})(?::?(\d{2}))?$/;
73906
- function $_2(t) {
73905
+ }, D_2 = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, R_2 = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, S_2 = /^([+-])(\d{2})(?::?(\d{2}))?$/;
73906
+ function k_2(t) {
73907
73907
  const e = {}, r = t.split(Wi.dateTimeDelimiter);
73908
73908
  let o;
73909
73909
  if (r.length > 2)
@@ -73917,7 +73917,7 @@ function $_2(t) {
73917
73917
  }
73918
73918
  return e;
73919
73919
  }
73920
- function D_2(t, e) {
73920
+ function Z_2(t, e) {
73921
73921
  const r = new RegExp(
73922
73922
  "^(?:(\\d{4}|[+-]\\d{" + (4 + e) + "})|(\\d{2}|[+-]\\d{" + (2 + e) + "})$)"
73923
73923
  ), o = t.match(r);
@@ -73928,64 +73928,64 @@ function D_2(t, e) {
73928
73928
  restDateString: t.slice((o[1] || o[2]).length)
73929
73929
  };
73930
73930
  }
73931
- function R_2(t, e) {
73931
+ function I_2(t, e) {
73932
73932
  if (e === null) return /* @__PURE__ */ new Date(NaN);
73933
- const r = t.match(__2);
73933
+ const r = t.match(D_2);
73934
73934
  if (!r) return /* @__PURE__ */ new Date(NaN);
73935
73935
  const o = !!r[4], a = lc(r[1]), c = lc(r[2]) - 1, l = lc(r[3]), i = lc(r[4]), s = lc(r[5]) - 1;
73936
73936
  if (o)
73937
- return F_2(e, i, s) ? Z_2(e, i, s) : /* @__PURE__ */ new Date(NaN);
73937
+ return W_2(e, i, s) ? F_2(e, i, s) : /* @__PURE__ */ new Date(NaN);
73938
73938
  {
73939
73939
  const d = /* @__PURE__ */ new Date(0);
73940
- return !B_2(e, c, l) || !P_2(e, a) ? /* @__PURE__ */ new Date(NaN) : (d.setUTCFullYear(e, c, Math.max(a, l)), d);
73940
+ return !q_2(e, c, l) || !U_2(e, a) ? /* @__PURE__ */ new Date(NaN) : (d.setUTCFullYear(e, c, Math.max(a, l)), d);
73941
73941
  }
73942
73942
  }
73943
73943
  function lc(t) {
73944
73944
  return t ? parseInt(t) : 1;
73945
73945
  }
73946
- function S_2(t) {
73947
- const e = t.match(T_2);
73946
+ function B_2(t) {
73947
+ const e = t.match(R_2);
73948
73948
  if (!e) return NaN;
73949
73949
  const r = Bu(e[1]), o = Bu(e[2]), a = Bu(e[3]);
73950
- return j_2(r, o, a) ? r * QT1 + o * Av + a * 1e3 : NaN;
73950
+ return K_2(r, o, a) ? r * QT1 + o * Av + a * 1e3 : NaN;
73951
73951
  }
73952
73952
  function Bu(t) {
73953
73953
  return t && parseFloat(t.replace(",", ".")) || 0;
73954
73954
  }
73955
- function k_2(t) {
73955
+ function P_2(t) {
73956
73956
  if (t === "Z") return 0;
73957
- const e = t.match(O_2);
73957
+ const e = t.match(S_2);
73958
73958
  if (!e) return 0;
73959
73959
  const r = e[1] === "+" ? -1 : 1, o = parseInt(e[2]), a = e[3] && parseInt(e[3]) || 0;
73960
- return q_2(o, a) ? r * (o * QT1 + a * Av) : NaN;
73960
+ return G_2(o, a) ? r * (o * QT1 + a * Av) : NaN;
73961
73961
  }
73962
- function Z_2(t, e, r) {
73962
+ function F_2(t, e, r) {
73963
73963
  const o = /* @__PURE__ */ new Date(0);
73964
73964
  o.setUTCFullYear(t, 0, 4);
73965
73965
  const a = o.getUTCDay() || 7, c = (e - 1) * 7 + r + 1 - a;
73966
73966
  return o.setUTCDate(o.getUTCDate() + c), o;
73967
73967
  }
73968
- const I_2 = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
73968
+ const j_2 = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
73969
73969
  function iO1(t) {
73970
73970
  return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
73971
73971
  }
73972
- function B_2(t, e, r) {
73973
- return e >= 0 && e <= 11 && r >= 1 && r <= (I_2[e] || (iO1(t) ? 29 : 28));
73972
+ function q_2(t, e, r) {
73973
+ return e >= 0 && e <= 11 && r >= 1 && r <= (j_2[e] || (iO1(t) ? 29 : 28));
73974
73974
  }
73975
- function P_2(t, e) {
73975
+ function U_2(t, e) {
73976
73976
  return e >= 1 && e <= (iO1(t) ? 366 : 365);
73977
73977
  }
73978
- function F_2(t, e, r) {
73978
+ function W_2(t, e, r) {
73979
73979
  return e >= 1 && e <= 53 && r >= 0 && r <= 6;
73980
73980
  }
73981
- function j_2(t, e, r) {
73981
+ function K_2(t, e, r) {
73982
73982
  return t === 24 ? e === 0 && r === 0 : r >= 0 && r < 60 && e >= 0 && e < 60 && t >= 0 && t < 25;
73983
73983
  }
73984
- function q_2(t, e) {
73984
+ function G_2(t, e) {
73985
73985
  return e >= 0 && e <= 59;
73986
73986
  }
73987
- function U_2(t, e, r) {
73988
- return zA2(t, -1, r);
73987
+ function Y_2(t, e, r) {
73988
+ return NA2(t, -1, r);
73989
73989
  }
73990
73990
  const _r = {
73991
73991
  PROPOSED: "proposed",
@@ -73998,24 +73998,24 @@ const _r = {
73998
73998
  CHECKED_IN: "checked-in",
73999
73999
  WAITLIST: "waitlist",
74000
74000
  ENTERED_IN_ERROR: "entered-in-error"
74001
- }, W_2 = P0 + "/appointments/search", K_2 = "http://fhir.bahmni.org/code-system/appointments", sO1 = (t, e, r, o) => {
74002
- const a = e === "upcoming", c = a ? "ge" : "le", l = a ? "date" : "-date", i = a ? (/* @__PURE__ */ new Date()).toISOString() : U_2(/* @__PURE__ */ new Date()).toISOString();
74001
+ }, J_2 = P0 + "/appointments/search", X_2 = "http://fhir.bahmni.org/code-system/appointments", sO1 = (t, e, r, o) => {
74002
+ const a = e === "upcoming", c = a ? "ge" : "le", l = a ? "date" : "-date", i = a ? (/* @__PURE__ */ new Date()).toISOString() : Y_2(/* @__PURE__ */ new Date()).toISOString();
74003
74003
  let s = `${B0}/Appointment?patient=${t}&date=${c}${i}&_sort=${l}`;
74004
74004
  return r !== void 0 && r > 0 && (s += `&_count=${r}`), o !== void 0 && o > 0 && (s += `&_getpagesoffset=${o}`), s;
74005
- }, G_2 = (t, e = 10, r = 0) => sO1(t, "upcoming", e, r), Y_2 = (t, e = 10, r = 0) => sO1(t, "past", e, r), J_2 = async (t) => await bv(W_2, t);
74006
- async function X_2(t, e = 10, r = 1) {
74005
+ }, Q_2 = (t, e = 10, r = 0) => sO1(t, "upcoming", e, r), eT2 = (t, e = 10, r = 0) => sO1(t, "past", e, r), tT2 = async (t) => await bv(J_2, t);
74006
+ async function rT2(t, e = 10, r = 1) {
74007
74007
  const o = (r - 1) * e, a = await F2(
74008
- G_2(t, e, o)
74008
+ Q_2(t, e, o)
74009
74009
  );
74010
74010
  return { bundle: a, total: a.total ?? a.entry?.length ?? 0 };
74011
74011
  }
74012
- async function Q_2(t, e = 10, r = 1) {
74012
+ async function nT2(t, e = 10, r = 1) {
74013
74013
  const o = (r - 1) * e, a = await F2(
74014
- Y_2(t, e, o)
74014
+ eT2(t, e, o)
74015
74015
  );
74016
74016
  return { bundle: a, total: a.total ?? a.entry?.length ?? 0 };
74017
74017
  }
74018
- const dO1 = "dd/MM/yyyy", eT2 = "default_dateFormat", s5 = "h:mm a", Qt = {
74018
+ const dO1 = "dd/MM/yyyy", oT2 = "default_dateFormat", s5 = "h:mm a", Qt = {
74019
74019
  PARSE_ERROR: "DATE_ERROR_PARSE",
74020
74020
  FORMAT_ERROR: "DATE_ERROR_FORMAT",
74021
74021
  EMPTY_OR_INVALID: "DATE_ERROR_EMPTY_OR_INVALID",
@@ -74040,7 +74040,7 @@ function uO1(t, e) {
74040
74040
  }
74041
74041
  };
74042
74042
  }
74043
- function tT2(t, e, r) {
74043
+ function aT2(t, e, r) {
74044
74044
  if (t == null)
74045
74045
  return {
74046
74046
  formattedResult: "",
@@ -74066,9 +74066,9 @@ function tT2(t, e, r) {
74066
74066
  title: r(Qt.PARSE_ERROR),
74067
74067
  message: r(Qt.INVALID_FORMAT)
74068
74068
  }
74069
- } : { formattedResult: C_2(o, e) };
74069
+ } : { formattedResult: O_2(o, e) };
74070
74070
  }
74071
- function rT2() {
74071
+ function cT2() {
74072
74072
  try {
74073
74073
  const t = new Intl.DateTimeFormat().formatToParts(/* @__PURE__ */ new Date()), e = {
74074
74074
  day: "dd",
@@ -74084,13 +74084,13 @@ function r2(t, e, r = !1, o) {
74084
74084
  const a = e ?? ((l) => l);
74085
74085
  let c;
74086
74086
  try {
74087
- c = o ?? localStorage.getItem(eT2) ?? rT2();
74087
+ c = o ?? localStorage.getItem(oT2) ?? cT2();
74088
74088
  } catch {
74089
74089
  c = dO1;
74090
74090
  }
74091
- return r && !o && (c = `${c} ${s5}`), tT2(t, c, a);
74091
+ return r && !o && (c = `${c} ${s5}`), aT2(t, c, a);
74092
74092
  }
74093
- function nT2(t, e) {
74093
+ function lT2(t, e) {
74094
74094
  if (t == null)
74095
74095
  return {
74096
74096
  formattedResult: "",
@@ -74143,7 +74143,7 @@ function nT2(t, e) {
74143
74143
  return { formattedResult: s };
74144
74144
  }
74145
74145
  function Tv(t, e) {
74146
- const r = typeof t == "string" ? lO1(t) : new Date(t), o = /* @__PURE__ */ new Date(), a = oO1(o, r), c = HA2(r, a), l = nO1(o, c), i = eO1(c, l), s = LMe(o, i), d = {
74146
+ const r = typeof t == "string" ? lO1(t) : new Date(t), o = /* @__PURE__ */ new Date(), a = oO1(o, r), c = LA2(r, a), l = nO1(o, c), i = eO1(c, l), s = LMe(o, i), d = {
74147
74147
  years: "YEARS",
74148
74148
  months: "MONTHS",
74149
74149
  days: "DAYS"
@@ -74168,7 +74168,7 @@ function Tv(t, e) {
74168
74168
  return `${p}${w}`;
74169
74169
  }).join(" ");
74170
74170
  }
74171
- const oT2 = () => {
74171
+ const iT2 = () => {
74172
74172
  let t = null;
74173
74173
  return {
74174
74174
  // Method to register the callback
@@ -74197,31 +74197,31 @@ const oT2 = () => {
74197
74197
  );
74198
74198
  }
74199
74199
  };
74200
- }, d5 = oT2(), aT2 = (t) => `${P0}/concept?s=byFullySpecifiedName&name=${encodeURIComponent(t)}`, cT2 = "SHORT", lT2 = "FULLY_SPECIFIED";
74201
- async function Srt(t) {
74202
- const e = aT2(t), r = await F2(e);
74200
+ }, d5 = iT2(), sT2 = (t) => `${P0}/concept?s=byFullySpecifiedName&name=${encodeURIComponent(t)}`, dT2 = "SHORT", uT2 = "FULLY_SPECIFIED";
74201
+ async function krt(t) {
74202
+ const e = sT2(t), r = await F2(e);
74203
74203
  return !r.results || r.results.length === 0 ? null : r.results[0];
74204
74204
  }
74205
- function iT2(t) {
74205
+ function hT2(t) {
74206
74206
  if (!t?.length) return null;
74207
74207
  let e = null;
74208
74208
  for (const r of t) {
74209
- if (r.conceptNameType === cT2)
74209
+ if (r.conceptNameType === dT2)
74210
74210
  return r.name;
74211
- r.conceptNameType === lT2 && (e = r.name);
74211
+ r.conceptNameType === uT2 && (e = r.name);
74212
74212
  }
74213
74213
  return e ?? t[0].name ?? null;
74214
74214
  }
74215
- const sT2 = (t) => B0 + `/AllergyIntolerance?patient=${t}&_count=100&_sort=-_lastUpdated`;
74216
- async function dT2(t) {
74217
- return await F2(`${sT2(t)}`);
74215
+ const pT2 = (t) => B0 + `/AllergyIntolerance?patient=${t}&_count=100&_sort=-_lastUpdated`;
74216
+ async function fT2(t) {
74217
+ return await F2(`${pT2(t)}`);
74218
74218
  }
74219
74219
  async function hO1(t) {
74220
- return (await dT2(t)).entry?.map(
74220
+ return (await fT2(t)).entry?.map(
74221
74221
  (e) => e.resource
74222
74222
  ) ?? [];
74223
74223
  }
74224
- function uT2(t) {
74224
+ function mT2(t) {
74225
74225
  return t.map((e) => {
74226
74226
  const r = e.clinicalStatus?.coding?.[0]?.display ?? "Unknown", o = e.reaction?.[0]?.severity ?? "Unknown";
74227
74227
  return {
@@ -74249,12 +74249,12 @@ function uT2(t) {
74249
74249
  };
74250
74250
  });
74251
74251
  }
74252
- async function hT2(t) {
74252
+ async function wT2(t) {
74253
74253
  const e = await hO1(t);
74254
- return uT2(e);
74254
+ return mT2(e);
74255
74255
  }
74256
74256
  var Df = /* @__PURE__ */ ((t) => (t.Active = "Active", t.Inactive = "Inactive", t))(Df || {}), i8 = /* @__PURE__ */ ((t) => (t.mild = "mild", t.moderate = "moderate", t.severe = "severe", t))(i8 || {});
74257
- function pT2(t) {
74257
+ function gT2(t) {
74258
74258
  const e = t.code?.coding?.[0]?.code ?? t.id ?? "", r = t.reaction?.[0]?.severity, o = /* @__PURE__ */ new Set(), a = [];
74259
74259
  for (const c of t.reaction ?? [])
74260
74260
  for (const l of c.manifestation ?? [])
@@ -74273,8 +74273,8 @@ function pT2(t) {
74273
74273
  hasBeenValidated: !1
74274
74274
  };
74275
74275
  }
74276
- const fT2 = "problem-list-item", mT2 = "encounter-diagnosis", wT2 = "http://terminology.hl7.org/CodeSystem/condition-clinical", gT2 = "http://fhir.bahmni.org/ext/lab-order-concept-type", krt = "http://fhir.bahmni.org/ext/observation/form-namespace-path", vT2 = B0 + "/Condition", ET2 = (t, e = 10, r = 0, o) => {
74277
- const a = B0 + `/Condition?category=${fT2}&patient=${t}&_count=${e}&_getpagesoffset=${r}&_sort=-_lastUpdated`;
74276
+ const vT2 = B0 + "/Condition", ET2 = (t, e = 10, r = 0, o) => {
74277
+ const a = B0 + `/Condition?category=${iA2}&patient=${t}&_count=${e}&_getpagesoffset=${r}&_sort=-_lastUpdated`;
74278
74278
  return o ? `${a}&clinical-status=${o}` : a;
74279
74279
  };
74280
74280
  async function MT2(t, e = 10, r = 1, o) {
@@ -74292,7 +74292,7 @@ async function yT2(t) {
74292
74292
  clinicalStatus: {
74293
74293
  coding: [
74294
74294
  {
74295
- system: wT2,
74295
+ system: dA2,
74296
74296
  code: "inactive",
74297
74297
  display: "Inactive"
74298
74298
  }
@@ -74305,7 +74305,7 @@ async function yT2(t) {
74305
74305
  e
74306
74306
  );
74307
74307
  }
74308
- const VT2 = (t, e = 10, r = 0) => B0 + `/Condition?category=${mT2}&patient=${t}&_count=${e}&_getpagesoffset=${r}&_sort=-_lastUpdated`, Pu = [
74308
+ const VT2 = (t, e = 10, r = 0) => B0 + `/Condition?category=${sA2}&patient=${t}&_count=${e}&_getpagesoffset=${r}&_sort=-_lastUpdated`, Pu = [
74309
74309
  {
74310
74310
  code: "confirmed",
74311
74311
  display: "CERTAINITY_CONFIRMED",
@@ -79261,7 +79261,7 @@ function x$2(t) {
79261
79261
  e = r[r.length - 1];
79262
79262
  } else
79263
79263
  e = t.states.find((r) => r.endDate === null);
79264
- return e ? iT2(e.state.concept.names) ?? e.state.concept.display : null;
79264
+ return e ? hT2(e.state.concept.names) ?? e.state.concept.display : null;
79265
79265
  }
79266
79266
  function N$2(t, e) {
79267
79267
  if (e.length === 0)
@@ -86769,7 +86769,7 @@ const Ft = () => {
86769
86769
  }, l$1 = n.memo(({ children: t }) => {
86770
86770
  const [e, r] = fe([]), o = Ke(() => /* @__PURE__ */ new Map(), []), a = Ne(
86771
86771
  (i) => {
86772
- const s = iA2();
86772
+ const s = hA2();
86773
86773
  return r((d) => {
86774
86774
  const u = d.find(
86775
86775
  (h) => h.title === i.title && h.message === i.message && h.type === i.type
@@ -86877,7 +86877,7 @@ const lI2 = "AllergiesTable-module_mildSeverity__NCNu-", iI2 = "AllergiesTable-m
86877
86877
  detail: {
86878
86878
  editOnly: "allergies",
86879
86879
  editTitle: "EDIT_ALLERGIES_TITLE",
86880
- preloadedAllergies: [pT2(C)]
86880
+ preloadedAllergies: [gT2(C)]
86881
86881
  }
86882
86882
  })
86883
86883
  );
@@ -86893,7 +86893,7 @@ const lI2 = "AllergiesTable-module_mildSeverity__NCNu-", iI2 = "AllergiesTable-m
86893
86893
  ), { data: p, isLoading: m, isError: z, error: w, refetch: v } = f0({
86894
86894
  queryKey: ["allergies", a],
86895
86895
  enabled: !!a,
86896
- queryFn: () => hT2(a)
86896
+ queryFn: () => wT2(a)
86897
86897
  });
86898
86898
  an(
86899
86899
  (E) => {
@@ -87008,7 +87008,7 @@ const lI2 = "AllergiesTable-module_mildSeverity__NCNu-", iI2 = "AllergiesTable-m
87008
87008
  }) ?? []).find(
87009
87009
  (u) => u.type === "Practitioner"
87010
87010
  ), r = t.identifier?.find(
87011
- (u) => u.system === K_2
87011
+ (u) => u.system === X_2
87012
87012
  )?.value ?? "", o = t.reasonCode?.map((u) => u.text?.trim()).filter(Boolean) ?? [], a = o.length > 0 ? o.join(", ") : "-", c = t.start ?? "-", l = t.start ?? "-", i = t.end, s = t.serviceType?.[0]?.text ?? "-", d = e ? e.display : "-";
87013
87013
  return {
87014
87014
  id: t.id,
@@ -87137,7 +87137,7 @@ const lI2 = "AllergiesTable-module_mildSeverity__NCNu-", iI2 = "AllergiesTable-m
87137
87137
  patientUUID: t,
87138
87138
  pageSize: e,
87139
87139
  idPrefix: "past",
87140
- queryFn: (h, p) => Q_2(t, h, p)
87140
+ queryFn: (h, p) => nT2(t, h, p)
87141
87141
  });
87142
87142
  return /* @__PURE__ */ ce(
87143
87143
  s$1,
@@ -87173,7 +87173,7 @@ const lI2 = "AllergiesTable-module_mildSeverity__NCNu-", iI2 = "AllergiesTable-m
87173
87173
  patientUUID: t,
87174
87174
  pageSize: e,
87175
87175
  idPrefix: "upcoming",
87176
- queryFn: (h, p) => X_2(t, h, p)
87176
+ queryFn: (h, p) => rT2(t, h, p)
87177
87177
  });
87178
87178
  return /* @__PURE__ */ ce(
87179
87179
  s$1,
@@ -88866,7 +88866,7 @@ const gNe = ({
88866
88866
  }
88867
88867
  );
88868
88868
  case "onsetDate": {
88869
- const S = nT2(
88869
+ const S = lT2(
88870
88870
  R.onsetDate ?? "",
88871
88871
  a
88872
88872
  );
@@ -90996,7 +90996,7 @@ const cj2 = (t) => {
90996
90996
  return Dc.routine;
90997
90997
  }
90998
90998
  }, lj2 = (t) => t.extension?.find(
90999
- (e) => e.url === gT2 && e.valueString === "Panel"
90999
+ (e) => e.url === uA2 && e.valueString === "Panel"
91000
91000
  ) ? "Panel" : "Single Test";
91001
91001
  function ij2(t, e) {
91002
91002
  return t.map((r) => {
@@ -91340,7 +91340,7 @@ class vj2 {
91340
91340
  * Execute appointment search
91341
91341
  */
91342
91342
  async execute(e, r) {
91343
- const { selectedField: o } = r, a = o?.fields ?? [], c = this.buildSearchRequest(e, a), l = await J_2(c);
91343
+ const { selectedField: o } = r, a = o?.fields ?? [], c = this.buildSearchRequest(e, a), l = await tT2(c);
91344
91344
  return this.transformAppointmentsToPatientBundle(l, r);
91345
91345
  }
91346
91346
  /**
@@ -95084,7 +95084,7 @@ const Qrt = () => {
95084
95084
  );
95085
95085
  return t;
95086
95086
  };
95087
- L0(() => Promise.resolve().then(() => HI2)), L0(() => Promise.resolve().then(() => JI2)), L0(() => Promise.resolve().then(() => AB2)), L0(() => Promise.resolve().then(() => SB2)), L0(() => import("./DocumentsTable-CFMS0Z9e-DzEJKvb-.js")), L0(() => Promise.resolve().then(() => Rj2)), L0(() => import("./FormsTable-BOqHNyfQ-D0ReAIVb.js")), L0(() => Promise.resolve().then(() => gj2)), L0(() => import("./Observations-DvN06foI-31uUmKLu.js")), L0(
95087
+ L0(() => Promise.resolve().then(() => HI2)), L0(() => Promise.resolve().then(() => JI2)), L0(() => Promise.resolve().then(() => AB2)), L0(() => Promise.resolve().then(() => SB2)), L0(() => import("./DocumentsTable-CGQkFmPv-CBM5B5BQ.js")), L0(() => Promise.resolve().then(() => Rj2)), L0(() => import("./FormsTable-H67oOCKk-rPkSqL43.js")), L0(() => Promise.resolve().then(() => gj2)), L0(() => import("./Observations-BLNBreYi-CyFbPeXF.js")), L0(
95088
95088
  () => Promise.resolve().then(() => iq2)
95089
95089
  ), L0(
95090
95090
  () => Promise.resolve().then(() => ZF2)
@@ -95106,7 +95106,7 @@ const HD1 = n.createContext(void 0), jK2 = () => {
95106
95106
  s(null);
95107
95107
  const m = Lv();
95108
95108
  r(m);
95109
- const z = await fA2();
95109
+ const z = await vA2();
95110
95110
  a(z);
95111
95111
  const w = await WT1();
95112
95112
  u(w?.uuid ?? null);
@@ -95122,15 +95122,15 @@ const HD1 = n.createContext(void 0), jK2 = () => {
95122
95122
  (m) => {
95123
95123
  const z = e;
95124
95124
  try {
95125
- s(null), r(m), m && (sA2(
95125
+ s(null), r(m), m && (pA2(
95126
95126
  UT1,
95127
95127
  encodeURIComponent(JSON.stringify(m))
95128
- ), wA2(m.uuid).catch((w) => {
95128
+ ), MA2(m.uuid).catch((w) => {
95129
95129
  console.warn("Failed to update session location:", w), d5.showWarning(
95130
95130
  a0.t("HOME_ERROR_LOCATION_SYNC_FAILED_TITLE"),
95131
95131
  a0.t("HOME_ERROR_LOCATION_SYNC_FAILED")
95132
95132
  );
95133
- }), d && mA2(d, m).catch((w) => {
95133
+ }), d && EA2(d, m).catch((w) => {
95134
95134
  console.warn("Failed to save location to server:", w), d5.showWarning(
95135
95135
  a0.t("HOME_ERROR_LOCATION_SYNC_FAILED_TITLE"),
95136
95136
  a0.t("HOME_ERROR_LOCATION_SYNC_FAILED")
@@ -95550,105 +95550,105 @@ function UG2(t, e) {
95550
95550
  });
95551
95551
  }
95552
95552
  let Q0 = class {
95553
- constructor(t) {
95554
- t && this.set(t);
95553
+ constructor(e) {
95554
+ e && this.set(e);
95555
95555
  }
95556
- set(t, e, r) {
95557
- const o = this;
95558
- function a(l, i, s) {
95559
- const d = mc(i);
95560
- if (!d)
95556
+ set(e, r, o) {
95557
+ const a = this;
95558
+ function c(i, s, d) {
95559
+ const u = mc(s);
95560
+ if (!u)
95561
95561
  throw new Error("header name must be a non-empty string");
95562
- const u = _e.findKey(o, d);
95563
- (!u || o[u] === void 0 || s === !0 || s === void 0 && o[u] !== !1) && (o[u || i] = w8(l));
95564
- }
95565
- const c = (l, i) => _e.forEach(l, (s, d) => a(s, d, i));
95566
- if (_e.isPlainObject(t) || t instanceof this.constructor)
95567
- c(t, e);
95568
- else if (_e.isString(t) && (t = t.trim()) && !jG2(t))
95569
- c(ZG2(t), e);
95570
- else if (_e.isObject(t) && _e.isIterable(t)) {
95571
- let l = {}, i, s;
95572
- for (const d of t) {
95573
- if (!_e.isArray(d))
95562
+ const h = _e.findKey(a, u);
95563
+ (!h || a[h] === void 0 || d === !0 || d === void 0 && a[h] !== !1) && (a[h || s] = w8(i));
95564
+ }
95565
+ const l = (i, s) => _e.forEach(i, (d, u) => c(d, u, s));
95566
+ if (_e.isPlainObject(e) || e instanceof this.constructor)
95567
+ l(e, r);
95568
+ else if (_e.isString(e) && (e = e.trim()) && !jG2(e))
95569
+ l(ZG2(e), r);
95570
+ else if (_e.isObject(e) && _e.isIterable(e)) {
95571
+ let i = {}, s, d;
95572
+ for (const u of e) {
95573
+ if (!_e.isArray(u))
95574
95574
  throw TypeError("Object iterator must return a key-value pair");
95575
- l[s = d[0]] = (i = l[s]) ? _e.isArray(i) ? [...i, d[1]] : [i, d[1]] : d[1];
95575
+ i[d = u[0]] = (s = i[d]) ? _e.isArray(s) ? [...s, u[1]] : [s, u[1]] : u[1];
95576
95576
  }
95577
- c(l, e);
95577
+ l(i, r);
95578
95578
  } else
95579
- t != null && a(e, t, r);
95579
+ e != null && c(r, e, o);
95580
95580
  return this;
95581
95581
  }
95582
- get(t, e) {
95583
- if (t = mc(t), t) {
95584
- const r = _e.findKey(this, t);
95585
- if (r) {
95586
- const o = this[r];
95587
- if (!e)
95588
- return o;
95589
- if (e === !0)
95590
- return FG2(o);
95591
- if (_e.isFunction(e))
95592
- return e.call(this, o, r);
95593
- if (_e.isRegExp(e))
95594
- return e.exec(o);
95582
+ get(e, r) {
95583
+ if (e = mc(e), e) {
95584
+ const o = _e.findKey(this, e);
95585
+ if (o) {
95586
+ const a = this[o];
95587
+ if (!r)
95588
+ return a;
95589
+ if (r === !0)
95590
+ return FG2(a);
95591
+ if (_e.isFunction(r))
95592
+ return r.call(this, a, o);
95593
+ if (_e.isRegExp(r))
95594
+ return r.exec(a);
95595
95595
  throw new TypeError("parser must be boolean|regexp|function");
95596
95596
  }
95597
95597
  }
95598
95598
  }
95599
- has(t, e) {
95600
- if (t = mc(t), t) {
95601
- const r = _e.findKey(this, t);
95602
- return !!(r && this[r] !== void 0 && (!e || zh(this, this[r], r, e)));
95599
+ has(e, r) {
95600
+ if (e = mc(e), e) {
95601
+ const o = _e.findKey(this, e);
95602
+ return !!(o && this[o] !== void 0 && (!r || zh(this, this[o], o, r)));
95603
95603
  }
95604
95604
  return !1;
95605
95605
  }
95606
- delete(t, e) {
95607
- const r = this;
95608
- let o = !1;
95609
- function a(c) {
95610
- if (c = mc(c), c) {
95611
- const l = _e.findKey(r, c);
95612
- l && (!e || zh(r, r[l], l, e)) && (delete r[l], o = !0);
95606
+ delete(e, r) {
95607
+ const o = this;
95608
+ let a = !1;
95609
+ function c(l) {
95610
+ if (l = mc(l), l) {
95611
+ const i = _e.findKey(o, l);
95612
+ i && (!r || zh(o, o[i], i, r)) && (delete o[i], a = !0);
95613
95613
  }
95614
95614
  }
95615
- return _e.isArray(t) ? t.forEach(a) : a(t), o;
95615
+ return _e.isArray(e) ? e.forEach(c) : c(e), a;
95616
95616
  }
95617
- clear(t) {
95618
- const e = Object.keys(this);
95619
- let r = e.length, o = !1;
95620
- for (; r--; ) {
95621
- const a = e[r];
95622
- (!t || zh(this, this[a], a, t, !0)) && (delete this[a], o = !0);
95617
+ clear(e) {
95618
+ const r = Object.keys(this);
95619
+ let o = r.length, a = !1;
95620
+ for (; o--; ) {
95621
+ const c = r[o];
95622
+ (!e || zh(this, this[c], c, e, !0)) && (delete this[c], a = !0);
95623
95623
  }
95624
- return o;
95624
+ return a;
95625
95625
  }
95626
- normalize(t) {
95627
- const e = this, r = {};
95628
- return _e.forEach(this, (o, a) => {
95629
- const c = _e.findKey(r, a);
95630
- if (c) {
95631
- e[c] = w8(o), delete e[a];
95626
+ normalize(e) {
95627
+ const r = this, o = {};
95628
+ return _e.forEach(this, (a, c) => {
95629
+ const l = _e.findKey(o, c);
95630
+ if (l) {
95631
+ r[l] = w8(a), delete r[c];
95632
95632
  return;
95633
95633
  }
95634
- const l = t ? qG2(a) : String(a).trim();
95635
- l !== a && delete e[a], e[l] = w8(o), r[l] = !0;
95634
+ const i = e ? qG2(c) : String(c).trim();
95635
+ i !== c && delete r[c], r[i] = w8(a), o[i] = !0;
95636
95636
  }), this;
95637
95637
  }
95638
- concat(...t) {
95639
- return this.constructor.concat(this, ...t);
95638
+ concat(...e) {
95639
+ return this.constructor.concat(this, ...e);
95640
95640
  }
95641
- toJSON(t) {
95642
- const e = /* @__PURE__ */ Object.create(null);
95643
- return _e.forEach(this, (r, o) => {
95644
- r != null && r !== !1 && (e[o] = t && _e.isArray(r) ? r.join(", ") : r);
95645
- }), e;
95641
+ toJSON(e) {
95642
+ const r = /* @__PURE__ */ Object.create(null);
95643
+ return _e.forEach(this, (o, a) => {
95644
+ o != null && o !== !1 && (r[a] = e && _e.isArray(o) ? o.join(", ") : o);
95645
+ }), r;
95646
95646
  }
95647
95647
  [Symbol.iterator]() {
95648
95648
  return Object.entries(this.toJSON())[Symbol.iterator]();
95649
95649
  }
95650
95650
  toString() {
95651
- return Object.entries(this.toJSON()).map(([t, e]) => t + ": " + e).join(`
95651
+ return Object.entries(this.toJSON()).map(([e, r]) => e + ": " + r).join(`
95652
95652
  `);
95653
95653
  }
95654
95654
  getSetCookie() {
@@ -95657,22 +95657,22 @@ let Q0 = class {
95657
95657
  get [Symbol.toStringTag]() {
95658
95658
  return "AxiosHeaders";
95659
95659
  }
95660
- static from(t) {
95661
- return t instanceof this ? t : new this(t);
95660
+ static from(e) {
95661
+ return e instanceof this ? e : new this(e);
95662
95662
  }
95663
- static concat(t, ...e) {
95664
- const r = new this(t);
95665
- return e.forEach((o) => r.set(o)), r;
95663
+ static concat(e, ...r) {
95664
+ const o = new this(e);
95665
+ return r.forEach((a) => o.set(a)), o;
95666
95666
  }
95667
- static accessor(t) {
95668
- const e = (this[YNe] = this[YNe] = {
95667
+ static accessor(e) {
95668
+ const r = (this[YNe] = this[YNe] = {
95669
95669
  accessors: {}
95670
- }).accessors, r = this.prototype;
95671
- function o(a) {
95672
- const c = mc(a);
95673
- e[c] || (UG2(r, a), e[c] = !0);
95670
+ }).accessors, o = this.prototype;
95671
+ function a(c) {
95672
+ const l = mc(c);
95673
+ r[l] || (UG2(o, c), r[l] = !0);
95674
95674
  }
95675
- return _e.isArray(t) ? t.forEach(o) : o(t), this;
95675
+ return _e.isArray(e) ? e.forEach(a) : a(e), this;
95676
95676
  }
95677
95677
  };
95678
95678
  Q0.accessor([
@@ -97271,23 +97271,23 @@ t0.getAdapter = FD1.getAdapter;
97271
97271
  t0.HttpStatusCode = nm;
97272
97272
  t0.default = t0;
97273
97273
  const {
97274
- Axios: ont,
97275
- AxiosError: ant,
97276
- CanceledError: cnt,
97277
- isCancel: lnt,
97278
- CancelToken: int,
97279
- VERSION: snt,
97280
- all: dnt,
97281
- Cancel: unt,
97282
- isAxiosError: hnt,
97283
- spread: pnt,
97284
- toFormData: fnt,
97285
- AxiosHeaders: mnt,
97286
- HttpStatusCode: wnt,
97287
- formToJSON: gnt,
97288
- getAdapter: vnt,
97289
- mergeConfig: Ent,
97290
- create: Mnt
97274
+ Axios: ant,
97275
+ AxiosError: cnt,
97276
+ CanceledError: lnt,
97277
+ isCancel: int,
97278
+ CancelToken: snt,
97279
+ VERSION: dnt,
97280
+ all: unt,
97281
+ Cancel: hnt,
97282
+ isAxiosError: pnt,
97283
+ spread: fnt,
97284
+ toFormData: mnt,
97285
+ AxiosHeaders: wnt,
97286
+ HttpStatusCode: gnt,
97287
+ formToJSON: vnt,
97288
+ getAdapter: Ent,
97289
+ mergeConfig: Mnt,
97290
+ create: ynt
97291
97291
  } = t0, SY2 = (t) => typeof t == "object" && t !== null && "resourceType" in t && t.resourceType === "OperationOutcome", kY2 = (t) => {
97292
97292
  if (!t.issue || !Array.isArray(t.issue))
97293
97293
  return null;
@@ -99222,7 +99222,7 @@ const qJ2 = "bahmni.user.location", UJ2 = KD1, WJ2 = [
99222
99222
  qJ2
99223
99223
  ], KJ2 = {
99224
99224
  LOGOUT_FAILED: "USER_LOGOUT_FAILED"
99225
- }, Ant = async () => {
99225
+ }, _nt = async () => {
99226
99226
  try {
99227
99227
  await nJ2(UJ2), WJ2.forEach((t) => {
99228
99228
  FJ2(t);
@@ -103795,7 +103795,7 @@ const rQ2 = /* @__PURE__ */ GJ2(tQ2), GCe = {
103795
103795
  }), uQ2 = (t, e) => e === void 0 ? t : t.filter((r) => r.requiredPrivilege ? e.includes(r.requiredPrivilege) : !0), hQ2 = (t) => {
103796
103796
  const e = navigator.onLine;
103797
103797
  return t.filter((r) => !(r.exclusiveOnlineModule && !e || r.exclusiveOfflineModule && e));
103798
- }, pQ2 = (t) => [...t].sort((e, r) => (e.order ?? 0) - (r.order ?? 0)), _nt = async (t = uR1, e) => {
103798
+ }, pQ2 = (t) => [...t].sort((e, r) => (e.order ?? 0) - (r.order ?? 0)), Tnt = async (t = uR1, e) => {
103799
103799
  const r = await hR1("home"), o = dQ2(r, t), a = uQ2(o, e), c = hQ2(a);
103800
103800
  return pQ2(c);
103801
103801
  }, fQ2 = "command-palette", mQ2 = "/bahmni_config/openmrs/apps/command-palette/app.json", wQ2 = {
@@ -138731,7 +138731,7 @@ const VE0 = /* @__PURE__ */ n.forwardRef(function({
138731
138731
  })), t);
138732
138732
  });
138733
138733
  process.env.NODE_ENV !== "production" && (VE0.propTypes = N);
138734
- const Tnt = ({
138734
+ const Ont = ({
138735
138735
  testId: t,
138736
138736
  ...e
138737
138737
  }) => /* @__PURE__ */ ce(bE, { ...e, "data-testid": t });
@@ -143144,7 +143144,7 @@ function KE({
143144
143144
  }, l), a));
143145
143145
  }
143146
143146
  const {
143147
- open: Ont,
143147
+ open: $nt,
143148
143148
  ...rV0
143149
143149
  } = Ra.propTypes ?? {};
143150
143150
  KE.propTypes = {
@@ -164332,7 +164332,7 @@ iy.propTypes = {
164332
164332
  */
164333
164333
  tabIndex: y.number
164334
164334
  };
164335
- const $nt = ({
164335
+ const Dnt = ({
164336
164336
  testId: t,
164337
164337
  children: e,
164338
164338
  ...r
@@ -174969,7 +174969,7 @@ var y0t = {
174969
174969
  };
174970
174970
  const V0t = () => {
174971
174971
  cC0.add(y0t);
174972
- }, Dnt = ({
174972
+ }, Rnt = ({
174973
174973
  testId: t,
174974
174974
  ...e
174975
174975
  }) => /* @__PURE__ */ ce(mZ1, { ...e, "data-testid": t });
@@ -175091,7 +175091,7 @@ const fN1 = ({
175091
175091
  testId: t,
175092
175092
  children: e,
175093
175093
  ...r
175094
- }) => /* @__PURE__ */ ce(rd, { ...r, "data-testid": t, children: e }), Rnt = ({
175094
+ }) => /* @__PURE__ */ ce(rd, { ...r, "data-testid": t, children: e }), Snt = ({
175095
175095
  testId: t,
175096
175096
  ...e
175097
175097
  }) => /* @__PURE__ */ ce(cZ1, { ...e, "data-testid": t });
@@ -175248,7 +175248,7 @@ function T0t(t, e, r) {
175248
175248
  mutate: z
175249
175249
  }];
175250
175250
  }
175251
- function Snt(t) {
175251
+ function knt(t) {
175252
175252
  return rn(t, !1);
175253
175253
  }
175254
175254
  function x0(t) {
@@ -175261,7 +175261,7 @@ function x0(t) {
175261
175261
  _2 = e;
175262
175262
  }
175263
175263
  }
175264
- function knt(t, e, r) {
175264
+ function Znt(t, e, r) {
175265
175265
  const o = Array.isArray(t);
175266
175266
  let a, c = r && r.defer;
175267
175267
  return (l) => {
@@ -175304,11 +175304,11 @@ function $0t(t) {
175304
175304
  return rn(t, !1), _2 = t2 = null, o ? o.done : void 0;
175305
175305
  });
175306
175306
  }
175307
- var [D0t, Znt] = /* @__PURE__ */ X2(!1);
175308
- function Int() {
175307
+ var [D0t, Int] = /* @__PURE__ */ X2(!1);
175308
+ function Bnt() {
175309
175309
  return [D0t, $0t];
175310
175310
  }
175311
- function Bnt(t, e) {
175311
+ function Pnt(t, e) {
175312
175312
  const r = Symbol("context");
175313
175313
  return {
175314
175314
  id: r,
@@ -175316,7 +175316,7 @@ function Bnt(t, e) {
175316
175316
  defaultValue: t
175317
175317
  };
175318
175318
  }
175319
- function Pnt(t) {
175319
+ function Fnt(t) {
175320
175320
  let e;
175321
175321
  return t2 && t2.context && (e = t2.context[t.id]) !== void 0 ? e : t.defaultValue;
175322
175322
  }
@@ -175716,23 +175716,23 @@ function lK1(t) {
175716
175716
  return o.preload = () => r || ((r = t()).then((a) => e = () => a.default), r), o;
175717
175717
  }
175718
175718
  var q0t = 0;
175719
- function Fnt() {
175719
+ function jnt() {
175720
175720
  return P1.context ? P1.getNextContextId() : `cl-${q0t++}`;
175721
175721
  }
175722
175722
  var iK1 = (t) => `Stale read from <${t}>.`;
175723
- function jnt(t) {
175723
+ function qnt(t) {
175724
175724
  const e = "fallback" in t && {
175725
175725
  fallback: () => t.fallback
175726
175726
  };
175727
175727
  return g0(B0t(() => t.each, t.children, e || void 0));
175728
175728
  }
175729
- function qnt(t) {
175729
+ function Unt(t) {
175730
175730
  const e = "fallback" in t && {
175731
175731
  fallback: () => t.fallback
175732
175732
  };
175733
175733
  return g0(P0t(() => t.each, t.children, e || void 0));
175734
175734
  }
175735
- function Unt(t) {
175735
+ function Wnt(t) {
175736
175736
  const e = t.keyed, r = g0(() => t.when, void 0, void 0), o = e ? r : g0(r, void 0, {
175737
175737
  equals: (a, c) => !a == !c
175738
175738
  });
@@ -175748,7 +175748,7 @@ function Unt(t) {
175748
175748
  return t.fallback;
175749
175749
  }, void 0, void 0);
175750
175750
  }
175751
- function Wnt(t) {
175751
+ function Knt(t) {
175752
175752
  const e = eK1(() => t.children), r = g0(() => {
175753
175753
  const o = e(), a = Array.isArray(o) ? o : [o];
175754
175754
  let c = () => {
@@ -175771,7 +175771,7 @@ function Wnt(t) {
175771
175771
  })) : i;
175772
175772
  }, void 0, void 0);
175773
175773
  }
175774
- function Knt(t) {
175774
+ function Gnt(t) {
175775
175775
  return t;
175776
175776
  }
175777
175777
  var U0t = ["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"], W0t = /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...U0t]), K0t = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), G0t = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
@@ -175891,7 +175891,7 @@ var X0t = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextm
175891
175891
  ]), ett = {
175892
175892
  xlink: "http://www.w3.org/1999/xlink",
175893
175893
  xml: "http://www.w3.org/XML/1998/namespace"
175894
- }, Gnt = (t) => g0(() => t());
175894
+ }, Ynt = (t) => g0(() => t());
175895
175895
  function ttt(t, e, r) {
175896
175896
  let o = r.length, a = e.length, c = o, l = 0, i = 0, s = e[a - 1].nextSibling, d = null;
175897
175897
  for (; l < a || i < c; ) {
@@ -175940,7 +175940,7 @@ function sK1(t, e, r, o = {}) {
175940
175940
  a(), e.textContent = "";
175941
175941
  };
175942
175942
  }
175943
- function Ynt(t, e, r, o) {
175943
+ function Jnt(t, e, r, o) {
175944
175944
  let a;
175945
175945
  const c = () => {
175946
175946
  const i = document.createElement("template");
@@ -175955,7 +175955,7 @@ function rtt(t, e = window.document) {
175955
175955
  r.has(c) || (r.add(c), e.addEventListener(c, dK1));
175956
175956
  }
175957
175957
  }
175958
- function Jnt(t = window.document) {
175958
+ function Xnt(t = window.document) {
175959
175959
  if (t[Fc]) {
175960
175960
  for (let e of t[Fc].keys()) t.removeEventListener(e, dK1);
175961
175961
  delete t[Fc];
@@ -176222,7 +176222,7 @@ var mtt = "http://www.w3.org/2000/svg";
176222
176222
  function uK1(t, e = !1) {
176223
176223
  return e ? document.createElementNS(mtt, t) : document.createElement(t);
176224
176224
  }
176225
- function Xnt(t) {
176225
+ function Qnt(t) {
176226
176226
  const {
176227
176227
  useShadow: e
176228
176228
  } = t, r = document.createTextNode(""), o = () => t.mount || document.body, a = wN1();
@@ -176261,7 +176261,7 @@ function wtt(t, e) {
176261
176261
  }
176262
176262
  });
176263
176263
  }
176264
- function Qnt(t) {
176264
+ function e3t(t) {
176265
176265
  const [, e] = j0t(t, ["component"]);
176266
176266
  return wtt(() => t.component, e);
176267
176267
  }
@@ -176768,42 +176768,42 @@ $2.registerClass = $2.defaultInstance.registerClass.bind($2.defaultInstance);
176768
176768
  $2.registerSymbol = $2.defaultInstance.registerSymbol.bind($2.defaultInstance);
176769
176769
  $2.registerCustom = $2.defaultInstance.registerCustom.bind($2.defaultInstance);
176770
176770
  $2.allowErrorProps = $2.defaultInstance.allowErrorProps.bind($2.defaultInstance);
176771
- var Utt = $2.serialize, e3t = $2.stringify;
176772
- function t3t(t) {
176771
+ var Utt = $2.serialize, t3t = $2.stringify;
176772
+ function r3t(t) {
176773
176773
  return t.state.fetchStatus === "fetching" ? "fetching" : t.getObserversCount() ? t.state.fetchStatus === "paused" ? "paused" : t.isStale() ? "stale" : "fresh" : "inactive";
176774
176774
  }
176775
- function r3t(t, e) {
176775
+ function n3t(t, e) {
176776
176776
  return `${t}${e.charAt(0).toUpperCase() + e.slice(1)}`;
176777
176777
  }
176778
- function n3t({
176778
+ function o3t({
176779
176779
  queryState: t,
176780
176780
  observerCount: e,
176781
176781
  isStale: r
176782
176782
  }) {
176783
176783
  return t.fetchStatus === "fetching" ? "blue" : e ? t.fetchStatus === "paused" ? "purple" : r ? "yellow" : "green" : "gray";
176784
176784
  }
176785
- function o3t({
176785
+ function a3t({
176786
176786
  status: t,
176787
176787
  isPaused: e
176788
176788
  }) {
176789
176789
  return e ? "purple" : t === "error" ? "red" : t === "pending" ? "yellow" : t === "success" ? "green" : "gray";
176790
176790
  }
176791
- function a3t(t) {
176791
+ function c3t(t) {
176792
176792
  return t === "fresh" ? "green" : t === "stale" ? "yellow" : t === "paused" ? "purple" : t === "inactive" ? "gray" : "blue";
176793
176793
  }
176794
- var c3t = (t, e = !1) => {
176794
+ var l3t = (t, e = !1) => {
176795
176795
  const {
176796
176796
  json: r
176797
176797
  } = Utt(t);
176798
176798
  return JSON.stringify(r, null, e ? 2 : void 0);
176799
- }, Us = (t) => t.state.fetchStatus !== "idle" ? 0 : t.getObserversCount() ? t.isStale() ? 2 : 1 : 3, Wtt = (t, e) => t.queryHash.localeCompare(e.queryHash), xK1 = (t, e) => t.state.dataUpdatedAt < e.state.dataUpdatedAt ? 1 : -1, Ktt = (t, e) => Us(t) === Us(e) ? xK1(t, e) : Us(t) > Us(e) ? 1 : -1, l3t = {
176799
+ }, Us = (t) => t.state.fetchStatus !== "idle" ? 0 : t.getObserversCount() ? t.isStale() ? 2 : 1 : 3, Wtt = (t, e) => t.queryHash.localeCompare(e.queryHash), xK1 = (t, e) => t.state.dataUpdatedAt < e.state.dataUpdatedAt ? 1 : -1, Ktt = (t, e) => Us(t) === Us(e) ? xK1(t, e) : Us(t) > Us(e) ? 1 : -1, i3t = {
176800
176800
  status: Ktt,
176801
176801
  "query hash": Wtt,
176802
176802
  "last updated": xK1
176803
- }, Ws = (t) => t.state.isPaused ? 0 : t.state.status === "error" ? 2 : t.state.status === "pending" ? 1 : 3, NK1 = (t, e) => t.state.submittedAt < e.state.submittedAt ? 1 : -1, Gtt = (t, e) => Ws(t) === Ws(e) ? NK1(t, e) : Ws(t) > Ws(e) ? 1 : -1, i3t = {
176803
+ }, Ws = (t) => t.state.isPaused ? 0 : t.state.status === "error" ? 2 : t.state.status === "pending" ? 1 : 3, NK1 = (t, e) => t.state.submittedAt < e.state.submittedAt ? 1 : -1, Gtt = (t, e) => Ws(t) === Ws(e) ? NK1(t, e) : Ws(t) > Ws(e) ? 1 : -1, s3t = {
176804
176804
  status: Gtt,
176805
176805
  "last updated": NK1
176806
- }, s3t = (t) => t * parseFloat(getComputedStyle(document.documentElement).fontSize), d3t = () => {
176806
+ }, d3t = (t) => t * parseFloat(getComputedStyle(document.documentElement).fontSize), u3t = () => {
176807
176807
  const [t, e] = X2("dark");
176808
176808
  return O0t(() => {
176809
176809
  const r = window.matchMedia("(prefers-color-scheme: dark)");
@@ -176929,7 +176929,7 @@ var c3t = (t, e = !1) => {
176929
176929
  const e = sK1(() => {
176930
176930
  const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#t;
176931
176931
  let d;
176932
- return this.#l ? d = this.#l : (d = lK1(() => import("./LNWAZHJI-DwcB1_Nl.js")), this.#l = d), LK1(this.#h, this.#r), aK1(d, cK1({
176932
+ return this.#l ? d = this.#l : (d = lK1(() => import("./LNWAZHJI-C20iySWQ.js")), this.#l = d), LK1(this.#h, this.#r), aK1(d, cK1({
176933
176933
  get queryFlavor() {
176934
176934
  return r.#d;
176935
176935
  },
@@ -177027,7 +177027,7 @@ var c3t = (t, e = !1) => {
177027
177027
  const e = sK1(() => {
177028
177028
  const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#t, [d] = this.#l;
177029
177029
  let u;
177030
- return this.#i ? u = this.#i : (u = lK1(() => import("./MWZ6AO7Z-Bi1eK8Us.js")), this.#i = u), LK1(this.#h, this.#r), aK1(u, cK1({
177030
+ return this.#i ? u = this.#i : (u = lK1(() => import("./MWZ6AO7Z-Bm0nJE0K.js")), this.#i = u), LK1(this.#h, this.#r), aK1(u, cK1({
177031
177031
  get queryFlavor() {
177032
177032
  return r.#d;
177033
177033
  },
@@ -177156,8 +177156,8 @@ const trt = {
177156
177156
  refetchOnWindowFocus: !1
177157
177157
  }
177158
177158
  }
177159
- }, rrt = "home", u3t = "/bahmni/home/index.html#/login", h3t = "/bahmni/home/index.html#/changePassword", p3t = 6, nrt = L0(
177160
- () => import("./index-JsW95gMN.js").then((t) => ({
177159
+ }, rrt = "home", h3t = "/bahmni/home/index.html#/login", p3t = "/bahmni/home/index.html#/changePassword", f3t = 6, nrt = L0(
177160
+ () => import("./index-B28DfD9I.js").then((t) => ({
177161
177161
  default: t.HomePage
177162
177162
  }))
177163
177163
  ), ort = [
@@ -177170,7 +177170,7 @@ const trt = {
177170
177170
  ...t.map((e) => /* @__PURE__ */ ce(fV, { path: e.path, element: /* @__PURE__ */ ce(e.component, {}) }, e.path)),
177171
177171
  /* @__PURE__ */ ce(fV, { path: "*", element: /* @__PURE__ */ ce(RK1, { to: "/", replace: !0 }) }, "not-found")
177172
177172
  ], crt = new TK1(trt);
177173
- function f3t() {
177173
+ function m3t() {
177174
177174
  const [t, e] = fe(!1);
177175
177175
  return he(() => {
177176
177176
  (async () => {
@@ -177190,27 +177190,27 @@ export {
177190
177190
  Srt as $,
177191
177191
  RC0 as A,
177192
177192
  Brt as B,
177193
- h3t as C,
177193
+ p3t as C,
177194
177194
  et as D,
177195
177195
  mrt as E,
177196
177196
  Prt as F,
177197
177197
  Urt as G,
177198
- p3t as H,
177198
+ f3t as H,
177199
177199
  N0t as I,
177200
177200
  Krt as J,
177201
177201
  ent as K,
177202
- u3t as L,
177202
+ h3t as L,
177203
177203
  vN2 as M,
177204
- _nt as N,
177204
+ Rnt as N,
177205
177205
  R0 as O,
177206
177206
  Irt as P,
177207
177207
  b$1 as Q,
177208
- d3t as R,
177208
+ u3t as R,
177209
177209
  AN2 as S,
177210
177210
  g0 as T,
177211
177211
  jrt as U,
177212
177212
  aK1 as V,
177213
- Bnt as W,
177213
+ Pnt as W,
177214
177214
  Grt as X,
177215
177215
  Wrt as Y,
177216
177216
  Zrt as Z,
@@ -177218,50 +177218,50 @@ export {
177218
177218
  o8 as a,
177219
177219
  O0t as a0,
177220
177220
  XW1 as a1,
177221
- Xnt as a2,
177222
- Gnt as a3,
177223
- Unt as a4,
177224
- Ynt as a5,
177221
+ Qnt as a2,
177222
+ Ynt as a3,
177223
+ Wnt as a4,
177224
+ Jnt as a5,
177225
177225
  nw as a6,
177226
177226
  w4 as a7,
177227
177227
  att as a8,
177228
- Jnt as a9,
177228
+ Xnt as a9,
177229
177229
  Ks as aA,
177230
177230
  ctt as aB,
177231
- e3t as aC,
177232
- Knt as aD,
177233
- Wnt as aE,
177231
+ t3t as aC,
177232
+ Gnt as aD,
177233
+ Knt as aE,
177234
177234
  Gs as aF,
177235
177235
  j0t as aG,
177236
- Qnt as aH,
177236
+ e3t as aH,
177237
177237
  A0t as aI,
177238
- f3t as aJ,
177238
+ m3t as aJ,
177239
177239
  rtt as aa,
177240
- Pnt as ab,
177240
+ Fnt as ab,
177241
177241
  Vl as ac,
177242
- l3t as ad,
177243
- i3t as ae,
177244
- knt as af,
177242
+ i3t as ad,
177243
+ s3t as ae,
177244
+ Znt as af,
177245
177245
  rw as ag,
177246
- r3t as ah,
177246
+ n3t as ah,
177247
177247
  dtt as ai,
177248
- Fnt as aj,
177249
- Snt as ak,
177250
- t3t as al,
177251
- o3t as am,
177252
- n3t as an,
177253
- a3t as ao,
177254
- c3t as ap,
177255
- jnt as aq,
177256
- s3t as ar,
177248
+ jnt as aj,
177249
+ knt as ak,
177250
+ r3t as al,
177251
+ a3t as am,
177252
+ o3t as an,
177253
+ c3t as ao,
177254
+ l3t as ap,
177255
+ qnt as aq,
177256
+ d3t as ar,
177257
177257
  x0 as as,
177258
177258
  GW1 as at,
177259
- Int as au,
177259
+ Bnt as au,
177260
177260
  stt as av,
177261
177261
  cK1 as aw,
177262
177262
  m4 as ax,
177263
177263
  Utt as ay,
177264
- qnt as az,
177264
+ Unt as az,
177265
177265
  an as b,
177266
177266
  Yrt as c,
177267
177267
  rv as d,
@@ -177272,15 +177272,15 @@ export {
177272
177272
  yy as i,
177273
177273
  Frt as j,
177274
177274
  krt as k,
177275
- $nt as l,
177275
+ Dnt as l,
177276
177276
  rE as m,
177277
177277
  Ft as n,
177278
177278
  Nr as o,
177279
- Dnt as p,
177280
- Rnt as q,
177279
+ Tnt as p,
177280
+ Snt as q,
177281
177281
  Qrt as r,
177282
- Ant as s,
177283
- Tnt as t,
177282
+ _nt as s,
177283
+ Ont as t,
177284
177284
  Z2 as u,
177285
177285
  Wl as v,
177286
177286
  Ul as w,