@bahmni/registration-app 0.0.1-dev.206 → 0.0.1-dev.207

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { jsx as r, jsxs as p, Fragment as W } from "react/jsx-runtime";
2
- import { c as Y, u as K, e as Q, m as X, V as J, C as Z, x as ee, L as te } from "./index-uOTKH4lb.js";
2
+ import { c as Y, u as K, e as Q, m as X, V as J, C as Z, x as ee, L as te } from "./index-eLpB86wi.js";
3
3
  import { useQuery as ae } from "@tanstack/react-query";
4
4
  import { useState as m, useCallback as h, useEffect as f, useMemo as T } from "react";
5
5
  const ne = "_documentsTableBody_1voj8_1", oe = "_viewAttachmentsLink_1voj8_11", re = "_documentViewerContainer_1voj8_15", de = "_attachmentItem_1voj8_23", se = "_attachmentCounter_1voj8_27", ce = "_attachmentError_1voj8_36", ie = "_documentIframe_1voj8_44", me = "_documentImage_1voj8_50", d = {
@@ -1,5 +1,5 @@
1
1
  import { jsx as o, jsxs as p, Fragment as H } from "react/jsx-runtime";
2
- import { u as O, c as ae, a as te, f as oe, h as ne, p as se, b as de, d as me, C as ie, V as le, x as q, Z as ce, k as ue, L as be, g as pe, i as k, j as fe, G as j, M as C, s as _e, P as $e, F as he, l as ge, n as ve } from "./index-uOTKH4lb.js";
2
+ import { u as O, c as ae, a as te, f as oe, h as ne, p as se, b as de, d as me, C as ie, V as le, x as q, Z as ce, k as ue, L as be, g as pe, i as k, j as fe, G as j, M as C, s as _e, P as $e, F as he, l as ge, n as ve } from "./index-eLpB86wi.js";
3
3
  import { useQueryClient as ye, useQuery as F } from "@tanstack/react-query";
4
4
  import { useState as P, useMemo as v, useCallback as L } from "react";
5
5
  const Ne = "_formsTableBody_1pd36_1", Fe = "_customAccordianItem_1pd36_6", Le = "_formContent_1pd36_18", Ce = "_formDetailsContainer_1pd36_25", Ae = "_observation_1pd36_30", Re = "_groupContainer_1pd36_39", Me = "_rowContainer_1pd36_43", Ie = "_groupLabel_1pd36_48", Oe = "_rowLabel_1pd36_58", Te = "_rowValue_1pd36_67", Ve = "_groupMembers_1pd36_75", xe = "_memberRow_1pd36_81", De = "_memberLabel_1pd36_86", Se = "_memberValue_1pd36_94", we = "_abnormalValue_1pd36_102", Ee = "_commentSection_1pd36_110", Be = "_commentText_1pd36_116", Ge = "_nestedGroup_1pd36_125", Ue = "_nestedGroupLabel_1pd36_132", qe = "_nestedGroupMembers_1pd36_141", n = {
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-CLOeuMtf.js";
2
- import { w as d, z as f, A as e } from "./index-uOTKH4lb.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-CoFd7sn5.js";
2
+ import { w as d, z as f, A as e } from "./index-eLpB86wi.js";
3
3
  var p = (a) => {
4
4
  const [r, t] = c({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
- import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-CLOeuMtf.js";
2
- import { w as v, z as C, A as e } from "./index-uOTKH4lb.js";
1
+ import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-CoFd7sn5.js";
2
+ import { w as v, z as C, A as e } from "./index-eLpB86wi.js";
3
3
  var h = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
1
  import { jsxs as T, jsx as l } from "react/jsx-runtime";
2
- import { c as V, e as k, u as I, o as x, q as K, d as j, j as P, y as Q, r as w, t as G, x as H, v as M, B as S, E as z, s as Y, N as J, P as W, F as X, l as Z } from "./index-uOTKH4lb.js";
2
+ import { c as V, e as k, u as I, o as x, q as K, d as j, j as P, y as Q, r as w, t as G, x as H, v as M, B as S, E as z, s as Y, N as J, P as W, F as X, l as Z } from "./index-eLpB86wi.js";
3
3
  import { useQueries as ee, useQuery as te } from "@tanstack/react-query";
4
4
  import { useRef as ae, useEffect as $, useMemo as g } from "react";
5
5
  const F = (t, d, i, u, r) => {
@@ -1,4 +1,4 @@
1
- import { D as we, H as z, I as xt, J as B, z as q, A as y, K as Ro, O as ye, S as R, Q as _, R as k, T as N, U as A, W as bs, X as ir, Y as $e, _ as U, $ as Hn, a0 as Vn, a1 as dt, a2 as D, a3 as xs, a4 as cn, a5 as Be, a6 as ws, a7 as qt, a8 as zt, a9 as $s, aa as Cs, ab as $n, ac as Ss, ad as Nr, ae as Bt, af as zo, ag as ks, ah as Es, ai as j, aj as Ur, ak as Ms, al as Ds, am as sr, an as As, ao as Ts, ap as zn, aq as Fs, ar as Is, as as Z, at as Ps, au as Os } from "./index-uOTKH4lb.js";
1
+ import { D as we, H as z, I as xt, J as B, z as q, A as y, K as Ro, O as ye, S as R, Q as _, R as k, T as N, U as A, W as bs, X as ir, Y as $e, _ as U, $ as Hn, a0 as Vn, a1 as dt, a2 as D, a3 as xs, a4 as cn, a5 as Be, a6 as ws, a7 as qt, a8 as zt, a9 as $s, aa as Cs, ab as $n, ac as Ss, ad as Nr, ae as Bt, af as zo, ag as ks, ah as Es, ai as j, aj as Ur, ak as Ms, al as Ds, am as sr, an as As, ao as Ts, ap as zn, aq as Fs, ar as Is, as as Z, at as Ps, au as Os } from "./index-eLpB86wi.js";
2
2
  var Ls = (e) => e != null, qs = (e) => e.filter(Ls);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -158720,7 +158720,7 @@ function UT0(t, e, r) {
158720
158720
  return o;
158721
158721
  };
158722
158722
  }
158723
- Lt(() => Promise.resolve().then(() => AL0)), Lt(() => Promise.resolve().then(() => rC0)), Lt(() => Promise.resolve().then(() => $C0)), Lt(() => Promise.resolve().then(() => IC0)), Lt(() => import("./DocumentsTable-Xq284Jaw-izjsnxsA.js")), Lt(() => Promise.resolve().then(() => VT0)), Lt(() => import("./FormsTable-DLOTuk1I-DEL0INz5.js")), Lt(() => Promise.resolve().then(() => G_0)), Lt(() => import("./Observations-hudkuWv0-DwLHGuW6.js")), Lt(
158723
+ Lt(() => Promise.resolve().then(() => AL0)), Lt(() => Promise.resolve().then(() => rC0)), Lt(() => Promise.resolve().then(() => $C0)), Lt(() => Promise.resolve().then(() => IC0)), Lt(() => import("./DocumentsTable-Xq284Jaw-D0m60JFP.js")), Lt(() => Promise.resolve().then(() => VT0)), Lt(() => import("./FormsTable-DLOTuk1I-18G3Rsf4.js")), Lt(() => Promise.resolve().then(() => G_0)), Lt(() => import("./Observations-hudkuWv0-EjZxzIjh.js")), Lt(
158724
158724
  () => Promise.resolve().then(() => TT0)
158725
158725
  ), Lt(
158726
158726
  () => Promise.resolve().then(() => g_0)
@@ -160559,7 +160559,7 @@ var Dj0 = (t, e = !1) => {
160559
160559
  const e = qR1(() => {
160560
160560
  const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t;
160561
160561
  let d;
160562
- return this.#i ? d = this.#i : (d = jR1(() => import("./LNWAZHJI-N-9i6vba.js")), this.#i = d), dS1(this.#h, this.#r), BR1(d, PR1({
160562
+ return this.#i ? d = this.#i : (d = jR1(() => import("./LNWAZHJI-Dd1VkVZE.js")), this.#i = d), dS1(this.#h, this.#r), BR1(d, PR1({
160563
160563
  get queryFlavor() {
160564
160564
  return r.#d;
160565
160565
  },
@@ -160657,7 +160657,7 @@ var Dj0 = (t, e = !1) => {
160657
160657
  const e = qR1(() => {
160658
160658
  const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t, [d] = this.#i;
160659
160659
  let u;
160660
- return this.#l ? u = this.#l : (u = jR1(() => import("./MWZ6AO7Z-RizJQ3wc.js")), this.#l = u), dS1(this.#h, this.#r), BR1(u, PR1({
160660
+ return this.#l ? u = this.#l : (u = jR1(() => import("./MWZ6AO7Z-Q1aqd5d2.js")), this.#l = u), dS1(this.#h, this.#r), BR1(u, PR1({
160661
160661
  get queryFlavor() {
160662
160662
  return r.#d;
160663
160663
  },
@@ -160789,7 +160789,7 @@ const MO0 = {
160789
160789
  refetchIntervalInBackground: !1
160790
160790
  }
160791
160791
  }
160792
- }, T5 = "registration", yO0 = "/bahmni-new/registration/search", uS1 = `/${T5}/patient`, VO0 = "/bahmni_config/openmrs/apps/registration/v2", zO0 = (t) => `${uS1}/${t}`, HO0 = (t) => `/bahmni-new${uS1}/${t}`, bO0 = "_form_11g1i_1", xO0 = "_patientDetailsHeader_11g1i_10", NO0 = "_sectionTitle_11g1i_15", LO0 = "_infoContainer_11g1i_24", CO0 = "_patientId_11g1i_32", AO0 = "_registerDate_11g1i_40", _O0 = "_headerTile_11g1i_49", TO0 = "_controlTitle_11g1i_55", $O0 = "_formContainer_11g1i_62", OO0 = "_formSection_11g1i_73", DO0 = "_formSectionTitle_11g1i_92", RO0 = "_patientUuid_11g1i_99", SO0 = "_ageFieldsWrapper_11g1i_103", kO0 = "_nameFields_11g1i_104", ZO0 = "_demographicsFields_11g1i_105", IO0 = "_birthInfoFields_11g1i_106", BO0 = "_ageInputs_11g1i_127", PO0 = "_dropdownField_11g1i_146", jO0 = "_checkboxField_11g1i_150", FO0 = "_formActions_11g1i_158", qO0 = "_actionButtons_11g1i_167", UO0 = "_row_11g1i_172", WO0 = "_col_11g1i_178", KO0 = "_requiredAsterisk_11g1i_247", GO0 = "_sectionContent_11g1i_252", YO0 = "_profileSectionContainer_11g1i_256", JO0 = "_accordionWrapper_11g1i_260", Z1 = {
160792
+ }, T5 = "registration", yO0 = "/bahmni-new/registration/search", uS1 = `/${T5}/patient`, VO0 = "/bahmni_config/openmrs/apps/registration/v2", zO0 = (t) => `${uS1}/${t}`, HO0 = (t) => `/bahmni-new${uS1}/${t}`, bO0 = "_form_1g57e_1", xO0 = "_patientDetailsHeader_1g57e_10", NO0 = "_sectionTitle_1g57e_16", LO0 = "_infoContainer_1g57e_25", CO0 = "_patientId_1g57e_33", AO0 = "_registerDate_1g57e_41", _O0 = "_headerTile_1g57e_50", TO0 = "_controlTitle_1g57e_56", $O0 = "_formContainer_1g57e_63", OO0 = "_formSection_1g57e_74", DO0 = "_formSectionTitle_1g57e_93", RO0 = "_patientUuid_1g57e_100", SO0 = "_ageFieldsWrapper_1g57e_104", kO0 = "_nameFields_1g57e_105", ZO0 = "_demographicsFields_1g57e_106", IO0 = "_birthInfoFields_1g57e_107", BO0 = "_ageInputs_1g57e_128", PO0 = "_dropdownField_1g57e_147", jO0 = "_checkboxField_1g57e_151", FO0 = "_formActions_1g57e_159", qO0 = "_actionButtons_1g57e_168", UO0 = "_row_1g57e_173", WO0 = "_col_1g57e_179", KO0 = "_requiredAsterisk_1g57e_248", GO0 = "_sectionContent_1g57e_253", YO0 = "_profileSectionContainer_1g57e_257", JO0 = "_accordionWrapper_1g57e_261", Z1 = {
160793
160793
  form: bO0,
160794
160794
  patientDetailsHeader: xO0,
160795
160795
  sectionTitle: NO0,
@@ -168852,7 +168852,7 @@ function qI0(t, e, r) {
168852
168852
  const fg1 = (t, e, r) => {
168853
168853
  const o = UP2(e, r), a = t(o);
168854
168854
  return a === o ? r : a;
168855
- }, UI0 = "_formSection_givm0_1", WI0 = "_identifierField_givm0_6", KI0 = "_identifierTable_givm0_25", GI0 = "_requiredAsterisk_givm0_49", sc = {
168855
+ }, UI0 = "_formSection_1ob2y_1", WI0 = "_identifierField_1ob2y_6", KI0 = "_identifierTable_1ob2y_25", GI0 = "_requiredAsterisk_1ob2y_50", sc = {
168856
168856
  formSection: UI0,
168857
168857
  identifierField: WI0,
168858
168858
  identifierTable: KI0,
@@ -169184,7 +169184,7 @@ const AM = (t, e) => {
169184
169184
  p.isValid || (a[l] = p.error, c = !1);
169185
169185
  }
169186
169186
  }), { isValid: c, errors: a };
169187
- }, eB0 = "_additionalInfoSection_1jwy4_1", tB0 = "_attributeField_1jwy4_8", rB0 = "_row_1jwy4_27", nB0 = "_fieldsContainer_1jwy4_36", y6 = {
169187
+ }, eB0 = "_additionalInfoSection_10bz1_1", tB0 = "_attributeField_10bz1_7", rB0 = "_row_10bz1_26", nB0 = "_fieldsContainer_10bz1_35", y6 = {
169188
169188
  additionalInfoSection: eB0,
169189
169189
  attributeField: tB0,
169190
169190
  row: rB0,
@@ -169569,7 +169569,7 @@ function cB0(t, e, r) {
169569
169569
  unmarkFieldAsCleared: f
169570
169570
  };
169571
169571
  }
169572
- const iB0 = "_formSection_1fe3n_1", lB0 = "_row_1fe3n_7", sB0 = "_col_1fe3n_12", Z3 = {
169572
+ const iB0 = "_formSection_zw3pb_1", lB0 = "_row_zw3pb_6", sB0 = "_col_zw3pb_11", Z3 = {
169573
169573
  formSection: iB0,
169574
169574
  row: lB0,
169575
169575
  col: sB0
@@ -169869,7 +169869,7 @@ const KS1 = ({ initialData: t, ref: e }) => {
169869
169869
  }) }) });
169870
169870
  };
169871
169871
  KS1.displayName = "AddressInfo";
169872
- const dB0 = "_formSection_8lwsr_1", uB0 = "_row_8lwsr_8", hB0 = "_phoneNumberField_8lwsr_14", pB0 = "_requiredAsterisk_8lwsr_23", V6 = {
169872
+ const dB0 = "_formSection_16m67_1", uB0 = "_row_16m67_7", hB0 = "_phoneNumberField_16m67_13", pB0 = "_requiredAsterisk_16m67_22", V6 = {
169873
169873
  formSection: dB0,
169874
169874
  row: uB0,
169875
169875
  phoneNumberField: hB0,
@@ -169945,7 +169945,7 @@ const dB0 = "_formSection_8lwsr_1", uB0 = "_row_8lwsr_8", hB0 = "_phoneNumberFie
169945
169945
  }) }) });
169946
169946
  };
169947
169947
  GS1.displayName = "ContactInfo";
169948
- const fB0 = "_relationshipSection_11bw3_1", mB0 = "_tableContainer_11bw3_7", wB0 = "_addButtonContainer_11bw3_68", gB0 = "_wrapButton_11bw3_72", vB0 = "_requiredAsterisk_11bw3_80", EB0 = "_readOnlyText_11bw3_85", MB0 = "_patientLink_11bw3_92", Hn = {
169948
+ const fB0 = "_relationshipSection_1q69w_1", mB0 = "_tableContainer_1q69w_7", wB0 = "_addButtonContainer_1q69w_74", gB0 = "_wrapButton_1q69w_78", vB0 = "_requiredAsterisk_1q69w_86", EB0 = "_readOnlyText_1q69w_91", MB0 = "_patientLink_1q69w_98", Hn = {
169949
169949
  relationshipSection: fB0,
169950
169950
  tableContainer: mB0,
169951
169951
  addButtonContainer: wB0,
@@ -170405,7 +170405,7 @@ const HB0 = [
170405
170405
  w
170406
170406
  ] }, p.type) : null;
170407
170407
  }, u = t.controls.map((p) => d(p)).filter(Boolean);
170408
- return u.length === 0 ? null : a ? /* @__PURE__ */ ce("div", { className: Z1.formContainer, children: /* @__PURE__ */ ce("div", { className: Z1.accordionWrapper, children: /* @__PURE__ */ ce(bZ2, { children: /* @__PURE__ */ ce(
170408
+ return u.length === 0 ? null : a ? /* @__PURE__ */ ce("div", { className: Z1.formContainer, children: /* @__PURE__ */ ce("div", { className: Z1.accordionWrapper, children: /* @__PURE__ */ ce(bZ2, { align: "start", children: /* @__PURE__ */ ce(
170409
170409
  xZ2,
170410
170410
  {
170411
170411
  title: t.translationKey ? l(t.translationKey) : "",