hplx-feature-library 1.0.265 → 1.0.266

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,13 +1,13 @@
1
- import { j as l, b as o, K as C, w as pa, P as v, k as fe, a as ua, t as ml, Z as Le, A as ce, c as ma, q as xa } from "./index-BZg5otIE.js";
1
+ import { j as l, b as o, K as C, w as pa, P as v, k as fe, a as ua, t as ml, Z as Me, A as ce, c as ma, q as xa } from "./index-BZg5otIE.js";
2
2
  /* empty css */
3
3
  import { M as Nl } from "./index-Bw4Rb7rV.js";
4
4
  import { useState as n, useEffect as M, useRef as re, useCallback as x, useMemo as xl } from "react";
5
5
  import { c as gl } from "./index.esm-Bn1Rklqj.js";
6
6
  import { d as pe } from "./dayjs.min-mOIokT7c.js";
7
- import { a as me, i as ga, d as _a, e as ba, p as ya, f as va, j as wa, k as _l, l as bl, g as yl, v as vl, m as wl, E as Fe } from "./common-utils-DyBcT-ea.js";
8
- import { H as ja, D as Ge, M as Ie, b as ue, S as Ca, C as ze, O as He } from "./CommonConstant-Bj7SvPfU.js";
9
- import { a as Na, b as Pa, p as Sa, c as Da, d as Ea, e as Ta, f as Ba, h as Oa, u as Ra, g as Aa } from "./APIAction-DC2OLVlQ.js";
10
- const jl = () => /* @__PURE__ */ l.jsx("div", { className: "hfl-h-0 hfl-w-full hfl-border-1 hfl-border-Gray-200" }), ka = ({ conflicts: N, handleAddPatient: _, redirectAction: I }) => {
7
+ import { e as ga, i as _a, d as ba, f as ya, p as va, j as wa, k as ja, l as _l, a as Le, m as bl, g as yl, v as vl, n as wl, E as Fe } from "./common-utils-Cm6L8lrK.js";
8
+ import { H as Ca, D as Ge, M as Ie, b as ue, S as Na, C as ze, O as He } from "./CommonConstant-Bj7SvPfU.js";
9
+ import { a as Pa, b as Sa, p as Da, c as Ea, d as Ta, e as Ba, f as Oa, h as Ra, u as Aa, g as ka } from "./APIAction-Ds_xx-Ez.js";
10
+ const jl = () => /* @__PURE__ */ l.jsx("div", { className: "hfl-h-0 hfl-w-full hfl-border-1 hfl-border-Gray-200" }), Ma = ({ conflicts: N, handleAddPatient: _, redirectAction: I }) => {
11
11
  const [S, y] = n(!1);
12
12
  return /* @__PURE__ */ l.jsxs("div", { children: [
13
13
  /* @__PURE__ */ l.jsx("div", { className: "hfl-mx-[20%] hfl-my-5 hfl-text-center", children: /* @__PURE__ */ l.jsx(o, { variant: "Regular", type: "Text md", className: "hfl-text-Error-700", children: "Patient/s with similar information already exists in your Clinic. To continue with an existing patient click on “Continue." }) }),
@@ -72,9 +72,7 @@ const jl = () => /* @__PURE__ */ l.jsx("div", { className: "hfl-h-0 hfl-w-full h
72
72
  size: "sm",
73
73
  textField: "Continue",
74
74
  className: "hfl-text-Primary-700",
75
- onClick: async () => {
76
- window.location.href.includes("/frontdesk") ? window.location.href = window.origin + "/md/viewPatientDashboard.php?pid=" + h?.person_role_id?.toString() : me(`viewPatientDashboard.php?pid=${h.person_role_id}`);
77
- }
75
+ onClick: () => ga(h.person_role_id)
78
76
  }
79
77
  )
80
78
  }
@@ -97,7 +95,7 @@ const jl = () => /* @__PURE__ */ l.jsx("div", { className: "hfl-h-0 hfl-w-full h
97
95
  ) })
98
96
  ] });
99
97
  };
100
- function Ma(N) {
98
+ function La(N) {
101
99
  const { editPatient: _, setEditPatient: I, createAsNew: S, setCreateAsNew: y } = N, h = () => _ ? "Primary" : "Secondary", f = () => S ? "Primary" : "Secondary";
102
100
  return /* @__PURE__ */ l.jsxs("div", { className: "hfl-mt-6 hfl-flex hfl-h-20 hfl-w-full hfl-items-center hfl-justify-center hfl-gap-4 hfl-border-1 hfl-border-Error-200 hfl-bg-Error-25", children: [
103
101
  /* @__PURE__ */ l.jsx(o, { variant: "Medium", type: "Text md", className: "hfl-text-Error-700", children: "Are you updating" }),
@@ -126,7 +124,7 @@ function Ma(N) {
126
124
  )
127
125
  ] });
128
126
  }
129
- const Ve = 15, Cl = 3, La = ({
127
+ const Ve = 15, Cl = 3, Fa = ({
130
128
  isOpen: N,
131
129
  onClose: _,
132
130
  onSubmit: I,
@@ -148,13 +146,13 @@ const Ve = 15, Cl = 3, La = ({
148
146
  return () => clearInterval(L);
149
147
  } else z === 0 && N && H(!0);
150
148
  }, [z, N]);
151
- const xe = (L) => {
149
+ const me = (L) => {
152
150
  L.preventDefault(), String(W).length === 6 && I(W);
153
- }, ge = (L) => {
151
+ }, xe = (L) => {
154
152
  S && y("");
155
153
  const Z = L.target.value;
156
154
  /^\d*$/.test(Z) && D(Z);
157
- }, _e = () => {
155
+ }, ge = () => {
158
156
  se && V < Cl && (Q(), J((L) => L + 1), u(Ve), H(!1));
159
157
  };
160
158
  return /* @__PURE__ */ l.jsxs(
@@ -185,7 +183,7 @@ const Ve = 15, Cl = 3, La = ({
185
183
  "form",
186
184
  {
187
185
  className: "hfl-z-5 hfl-relative hfl-flex hfl-h-full hfl-flex-col hfl-items-center hfl-justify-center hfl-text-center",
188
- onSubmit: xe,
186
+ onSubmit: me,
189
187
  children: [
190
188
  /* @__PURE__ */ l.jsx(o, { variant: "Semibold", type: "Text lg", children: h }),
191
189
  /* @__PURE__ */ l.jsx(o, { variant: "Regular", type: "Text sm", className: "hfl-mx-auto hfl-w-[290px] hfl-pt-2 hfl-text-Gray-500", children: f }),
@@ -196,7 +194,7 @@ const Ve = 15, Cl = 3, La = ({
196
194
  autoFocus: !0,
197
195
  value: W,
198
196
  pattern: "[0-9]+",
199
- onChange: ge
197
+ onChange: xe
200
198
  },
201
199
  size: "xs",
202
200
  digits: 6,
@@ -209,7 +207,7 @@ const Ve = 15, Cl = 3, La = ({
209
207
  variant: "Semibold",
210
208
  type: "Text sm",
211
209
  className: "hfl-cursor-pointer hfl-text-Primary-700 hfl-underline",
212
- onClick: _e,
210
+ onClick: ge,
213
211
  children: "Resend OTP"
214
212
  }
215
213
  ) : /* @__PURE__ */ l.jsxs(o, { type: "Text sm", variant: "Regular", className: "hfl-text-Gray-500", children: [
@@ -223,8 +221,8 @@ const Ve = 15, Cl = 3, La = ({
223
221
  ]
224
222
  }
225
223
  );
226
- }, Ua = (N) => {
227
- const { closeModal: _, modalIsOpen: I, pref: S, variable: y } = N, { window_var: h, token: f, envName: m } = y, [Q, W] = n(!1), [D, z] = n({}), [u, se] = n(!1), [H, V] = n(null), [J, xe] = n(!0), [ge, _e] = n(!1), [L, Z] = n([]), [qe, K] = n(!1), [E, ne] = n(""), [g, Pl] = n(), [b, p] = n({
224
+ }, Wa = (N) => {
225
+ const { closeModal: _, modalIsOpen: I, pref: S, variable: y } = N, { window_var: h, token: f, envName: m } = y, [Q, W] = n(!1), [D, z] = n({}), [u, se] = n(!1), [H, V] = n(null), [J, me] = n(!0), [xe, ge] = n(!1), [L, Z] = n([]), [qe, K] = n(!1), [E, ne] = n(""), [g, Pl] = n(), [b, p] = n({
228
226
  name: "",
229
227
  phone: "",
230
228
  age: "",
@@ -234,7 +232,7 @@ const Ve = 15, Cl = 3, La = ({
234
232
  }), [ie, Sl] = n([]), [oe, q] = n({
235
233
  name: !1,
236
234
  phone: !1
237
- }), [be, Dl] = n([]), [ye, El] = n([]), [ve, Tl] = n([]), [Bl, we] = n(!1), [Ol, je] = n(!1), [Rl, Ce] = n(!1), [Ne, Al] = n([]), [A, kl] = n(!1), [a, F] = n({
235
+ }), [_e, Dl] = n([]), [be, El] = n([]), [ye, Tl] = n([]), [Bl, ve] = n(!1), [Ol, we] = n(!1), [Rl, je] = n(!1), [Ce, Al] = n([]), [A, kl] = n(!1), [a, F] = n({
238
236
  name: "",
239
237
  phone: "",
240
238
  dob: "",
@@ -271,7 +269,7 @@ const Ve = 15, Cl = 3, La = ({
271
269
  org_person_dob: "",
272
270
  aadhar_number: "",
273
271
  custom_fields: []
274
- }), [Ml, Ll] = n([]), { name: Ye, phone: k, age: T, dob: G, gender: $e } = a, [Ue, We] = n(!1), [Fl, Pe] = n(a.gender), [B, Je] = n("Years"), [Ze, Ke] = n(""), [Xe, Se] = n(!1), [Gl, Il] = n([]), P = (e, t, r, s) => {
272
+ }), [Ml, Ll] = n([]), { name: Ye, phone: k, age: T, dob: G, gender: $e } = a, [Ue, We] = n(!1), [Fl, Ne] = n(a.gender), [B, Je] = n("Years"), [Ze, Ke] = n(""), [Xe, Pe] = n(!1), [Gl, Il] = n([]), P = (e, t, r, s) => {
275
273
  Il([
276
274
  {
277
275
  id: 1,
@@ -281,23 +279,23 @@ const Ve = 15, Cl = 3, La = ({
281
279
  duration: s
282
280
  }
283
281
  ]);
284
- }, $ = re(null), Qe = re(null), [el, ee] = n(!1), [zl, De] = n(!1), [Hl, ll] = n(!1), [al, Ee] = n(!1), [tl, Te] = n(!1), [he, Vl] = n(), O = g && g.visit_pad_json && ga(g.visit_pad_json) && JSON.parse(g.visit_pad_json), rl = _a((...e) => {
282
+ }, $ = re(null), Qe = re(null), [el, ee] = n(!1), [zl, Se] = n(!1), [Hl, ll] = n(!1), [al, De] = n(!1), [tl, Ee] = n(!1), [he, Vl] = n(), O = g && g.visit_pad_json && _a(g.visit_pad_json) && JSON.parse(g.visit_pad_json), rl = ba((...e) => {
285
283
  const [t, r] = e;
286
284
  Ql(t, r);
287
285
  }), i = x(
288
286
  (e, t) => {
289
- De(!1), F((r) => ({ ...r, [e]: t })), (e === "name" || e === "phone" && t.length >= 3) && rl(e, t);
287
+ Se(!1), F((r) => ({ ...r, [e]: t })), (e === "name" || e === "phone" && t.length >= 3) && rl(e, t);
290
288
  },
291
289
  [rl]
292
290
  ), ql = (e) => {
293
- i("throughChannel", e.value.trim()), we(!1);
291
+ i("throughChannel", e.value.trim()), ve(!1);
294
292
  }, R = xl(
295
293
  () => he?.branch_details?.enable_mobile_otp == "1",
296
294
  [he?.branch_details?.enable_mobile_otp]
297
295
  ), Yl = (e) => {
298
- i("occupation", e.trim()), je(!1);
296
+ i("occupation", e.trim()), we(!1);
299
297
  }, $l = (e) => {
300
- i("city", e.trim()), Ce(!1);
298
+ i("city", e.trim()), je(!1);
301
299
  }, Ul = (e) => {
302
300
  const { value: t } = e.target, r = Zl(t);
303
301
  Dl(r);
@@ -308,9 +306,9 @@ const Ve = 15, Cl = 3, La = ({
308
306
  const { value: t } = e.target, r = Xl(t);
309
307
  Al(r);
310
308
  }, Zl = (e) => {
311
- if (ve?.length) {
312
- let t = ve;
313
- return e?.length && (t = ve.filter(
309
+ if (ye?.length) {
310
+ let t = ye;
311
+ return e?.length && (t = ye.filter(
314
312
  (r) => r.title.toLowerCase().includes(e.toLowerCase())
315
313
  // last keyboad input after ,
316
314
  )), t;
@@ -334,28 +332,28 @@ const Ve = 15, Cl = 3, La = ({
334
332
  )), t;
335
333
  } else
336
334
  return [];
337
- }, sl = re(null), de = re(null), Be = re(null), nl = window.location?.pathname.includes("/frontdesk");
335
+ }, sl = re(null), de = re(null), Te = re(null), nl = window.location?.pathname.includes("/frontdesk");
338
336
  M(() => {
339
- const e = ba(a.age, B);
337
+ const e = ya(a.age, B);
340
338
  e && F((t) => ({
341
339
  ...t,
342
340
  dob: e
343
341
  }));
344
342
  }, [B, a.age]);
345
- const Oe = x(
343
+ const Be = x(
346
344
  (e) => {
347
- Pe(e), i("gender", e), p((t) => ({
345
+ Ne(e), i("gender", e), p((t) => ({
348
346
  ...t,
349
347
  gender: ""
350
348
  }));
351
349
  },
352
350
  [i]
353
351
  ), il = (e) => {
354
- (sl.current && !sl.current.contains(e.target) || de.current && !de.current.contains(e.target)) && q({ name: !1, phone: !1 }), Be.current && !Be.current.contains(e.target) && Se(!1);
352
+ (sl.current && !sl.current.contains(e.target) || de.current && !de.current.contains(e.target)) && q({ name: !1, phone: !1 }), Te.current && !Te.current.contains(e.target) && Pe(!1);
355
353
  }, ol = x(() => {
356
354
  ne(a.image_link), K(!1), ee(!1);
357
355
  }, [a.image_link]), hl = x(async () => {
358
- const e = await Na(
356
+ const e = await Pa(
359
357
  "patient_config",
360
358
  h?.org_branch_id_for_seg?.toString() || "",
361
359
  { token: f, envName: m }
@@ -365,8 +363,8 @@ const Ve = 15, Cl = 3, La = ({
365
363
  M(() => (document.addEventListener("mousedown", il), () => {
366
364
  document.removeEventListener("mousedown", il);
367
365
  }), []), M(() => {
368
- h.doctor_speciality === "Gynaecologist" && !a.gender && Oe("1");
369
- }, [a.gender, Oe, h.doctor_speciality]), M(() => {
366
+ h.doctor_speciality === "Gynaecologist" && !a.gender && Be("1");
367
+ }, [a.gender, Be, h.doctor_speciality]), M(() => {
370
368
  a.image_link && ol(), a.honorific && Ke(a.honorific);
371
369
  }, [a.honorific, a.image_link, ol]), M(() => {
372
370
  nl && We(!0);
@@ -376,8 +374,8 @@ const Ve = 15, Cl = 3, La = ({
376
374
  (async () => {
377
375
  Pl(S);
378
376
  try {
379
- const e = await Pa({ token: f, envName: m }), { total_ref_doc_details: t, through_channel: r } = e;
380
- t.length && Ll(ya(t)), r.length && Tl(va(r));
377
+ const e = await Sa({ token: f, envName: m }), { total_ref_doc_details: t, through_channel: r } = e;
378
+ t.length && Ll(va(t)), r.length && Tl(wa(r));
381
379
  } catch (e) {
382
380
  console.log("ERROR", e);
383
381
  }
@@ -390,7 +388,7 @@ const Ve = 15, Cl = 3, La = ({
390
388
  doctor_role_id: h?.doctor_role_id_for_seg || "",
391
389
  term: encodeURIComponent(t),
392
390
  limit: 30
393
- }, s = await Aa(r, { token: f, envName: m });
391
+ }, s = await ka(r, { token: f, envName: m });
394
392
  if (!s) {
395
393
  q({ name: !1, phone: !1 });
396
394
  return;
@@ -398,20 +396,20 @@ const Ve = 15, Cl = 3, La = ({
398
396
  !s.apiError && Number(s.total_persons) > 0 ? (Sl(s.persons), q(e === "name" ? { ...oe, name: !0 } : { ...oe, phone: !0 })) : q({ name: !1, phone: !1 });
399
397
  }, U = x(async () => {
400
398
  if (!R || !J) return;
401
- Te(!0), (await Sa(k, y)).apiError ? P("OTP Failed", "Unable to send OTP. Please try again.", "Error", 3e3) : P("Success", "OTP sent successfully", "Success", 1500);
399
+ Ee(!0), (await Da(k, y)).apiError ? P("OTP Failed", "Unable to send OTP. Please try again.", "Error", 3e3) : P("Success", "OTP sent successfully", "Success", 1500);
402
400
  }, [R, J, k, y]), ea = x(
403
401
  async (e) => {
404
- (await Da(k, e, y)).apiError ? P("Invalid OTP", "Please enter correct OTP", "Error", 3e3) : (kl(!0), P("Success", "OTP verified successfully", "Success", 1500), Te(!1));
402
+ (await Ea(k, e, y)).apiError ? P("Invalid OTP", "Please enter correct OTP", "Error", 3e3) : (kl(!0), P("Success", "OTP verified successfully", "Success", 1500), Ee(!1));
405
403
  },
406
404
  [k, y]
407
- ), Re = (e) => {
405
+ ), Oe = (e) => {
408
406
  switch (e) {
409
407
  case "Appointment":
410
408
  return "#Appnt";
411
409
  default:
412
410
  return "";
413
411
  }
414
- }, Ae = (e) => {
412
+ }, Re = (e) => {
415
413
  switch (e) {
416
414
  case "Bill":
417
415
  case "Appointment":
@@ -421,7 +419,7 @@ const Ve = 15, Cl = 3, La = ({
421
419
  }
422
420
  }, la = x(
423
421
  (e) => {
424
- Ea({ callback: (r) => {
422
+ Ta({ callback: (r) => {
425
423
  F({
426
424
  name: r?.name || "",
427
425
  phone: r?.phone_number || "",
@@ -457,7 +455,7 @@ const Ve = 15, Cl = 3, La = ({
457
455
  spouse_name: r.spouse_name || "",
458
456
  aadhar_number: r.aadhar_number || "",
459
457
  custom_fields: r.custom_fields || []
460
- }), Pe(r?.gender);
458
+ }), Ne(r?.gender);
461
459
  }, payload: e, token_env: { token: f, envName: m } });
462
460
  },
463
461
  [m, f]
@@ -475,7 +473,7 @@ const Ve = 15, Cl = 3, La = ({
475
473
  person_role_id: h?.doctor_role_id_for_seg || "",
476
474
  patient_role_id: e.person_role_id || ""
477
475
  };
478
- la(t), q({ name: !1, phone: !1 }), _e(!0), z(e);
476
+ la(t), q({ name: !1, phone: !1 }), ge(!0), z(e);
479
477
  }, fl = x(() => {
480
478
  let e = !0;
481
479
  return a.name ? a.name.length < 2 && (p((t) => ({
@@ -515,7 +513,7 @@ const Ve = 15, Cl = 3, La = ({
515
513
  async (e, t) => {
516
514
  const r = new FormData();
517
515
  r.append("pid", e), r.append("bidstr", t), r.append("imgData", E);
518
- const s = await Ta(r, { token: f, envName: m });
516
+ const s = await Ba(r, { token: f, envName: m });
519
517
  s.apiError && P("Error", s.apiError, "Error", 3e3);
520
518
  },
521
519
  [E, m, f]
@@ -523,11 +521,11 @@ const Ve = 15, Cl = 3, La = ({
523
521
  async (e) => {
524
522
  const t = new FormData();
525
523
  t.append("pid", e);
526
- const r = await Ba(t, { token: f, envName: m });
524
+ const r = await Oa(t, { token: f, envName: m });
527
525
  r.apiError && P("Error", r.apiError, "Error", 3e3);
528
526
  },
529
527
  [m, f]
530
- ), ke = x(
528
+ ), Ae = x(
531
529
  async (e, t) => {
532
530
  try {
533
531
  if (!fl()) {
@@ -539,7 +537,7 @@ const Ve = 15, Cl = 3, La = ({
539
537
  return;
540
538
  }
541
539
  const s = new FormData();
542
- s.append("name", a.name), s.append("phone", a.phone), s.append("gender", wa(a.gender)), s.append("honorific", a.honorific), s.append("patient_preferred_language", a.patient_preferred_language), s.append("age", G && G.length ? G : _l(a?.age, B) || ""), s.append("age_selector", a.age_selector), s.append("blood_group", a.blood_group), s.append("email", a.email), s.append("address", a.address), s.append("city", a.city), s.append("existing_bid_str", a.existingBidStr), s.append("pincode", a.pincode), s.append("ref_doc_id", a.refDocId), s.append("ref_doc_name", a.ref_doc_name), s.append("ref_doc_spec", a.ref_doc_spec), s.append("through_channel", a.throughChannel), s.append("care_of", a.careOf), s.append("phone_secondary", a.phoneSecondary), s.append("occupation", a.occupation), s.append("tag", a.tag), s.append("marital_status", a.marital_status), s.append("married_since", a.married_since), s.append("spouse_name", a.spouse_name), s.append("spouse_blood_group", a.spouse_blood_group), s.append("aadhar_number", a.aadhar_number), s.append("custom_fields", JSON.stringify(a.custom_fields || [])), e && s.append("reg_as_new", "1");
540
+ s.append("name", a.name), s.append("phone", a.phone), s.append("gender", ja(a.gender)), s.append("honorific", a.honorific), s.append("patient_preferred_language", a.patient_preferred_language), s.append("age", G && G.length ? G : _l(a?.age, B) || ""), s.append("age_selector", a.age_selector), s.append("blood_group", a.blood_group), s.append("email", a.email), s.append("address", a.address), s.append("city", a.city), s.append("existing_bid_str", a.existingBidStr), s.append("pincode", a.pincode), s.append("ref_doc_id", a.refDocId), s.append("ref_doc_name", a.ref_doc_name), s.append("ref_doc_spec", a.ref_doc_spec), s.append("through_channel", a.throughChannel), s.append("care_of", a.careOf), s.append("phone_secondary", a.phoneSecondary), s.append("occupation", a.occupation), s.append("tag", a.tag), s.append("marital_status", a.marital_status), s.append("married_since", a.married_since), s.append("spouse_name", a.spouse_name), s.append("spouse_blood_group", a.spouse_blood_group), s.append("aadhar_number", a.aadhar_number), s.append("custom_fields", JSON.stringify(a.custom_fields || [])), e && s.append("reg_as_new", "1");
543
541
  const c = Object.fromEntries(s.entries()), w = Object.fromEntries(
544
542
  Object.entries(c).map(([te, ca]) => [te, String(ca)])
545
543
  ), j = {
@@ -550,9 +548,9 @@ const Ve = 15, Cl = 3, La = ({
550
548
  org_branch_id: h.org_branch_id_for_seg || "",
551
549
  source: "emr",
552
550
  ip: ""
553
- }, d = await Oa(j, { token: f, envName: m });
551
+ }, d = await Ra(j, { token: f, envName: m });
554
552
  if (d.apiError)
555
- P("Error", d.apiError, "Error", 3e3), De(!1);
553
+ P("Error", d.apiError, "Error", 3e3), Se(!1);
556
554
  else {
557
555
  if (e) {
558
556
  try {
@@ -567,7 +565,7 @@ const Ve = 15, Cl = 3, La = ({
567
565
  g,
568
566
  O,
569
567
  t
570
- ) : me(Ae(t) + d.person_role_id.toString() + Re(t)), _();
568
+ ) : Le(Re(t) + d.person_role_id.toString() + Oe(t)), _();
571
569
  return;
572
570
  } else {
573
571
  try {
@@ -584,7 +582,7 @@ const Ve = 15, Cl = 3, La = ({
584
582
  g,
585
583
  O,
586
584
  t
587
- ) : me(Ae(t) + d.person_role_id.toString() + Re(t)), _());
585
+ ) : Le(Re(t) + d.person_role_id.toString() + Oe(t)), _());
588
586
  }
589
587
  } catch (r) {
590
588
  console.log(r);
@@ -667,14 +665,14 @@ const Ve = 15, Cl = 3, La = ({
667
665
  person_role_id: h.doctor_role_id_for_seg || "",
668
666
  person_id: h.person_id_for_seg || "",
669
667
  branch_id: h.org_branch_id_for_seg || ""
670
- }, r = await Ra(t, { token: f, envName: m });
668
+ }, r = await Aa(t, { token: f, envName: m });
671
669
  if (u) {
672
- r && De(!1);
670
+ r && Se(!1);
673
671
  const { message: s, status: c } = r || {};
674
672
  if (c) {
675
673
  P("Patient Edited", "Patient Edited Successfully", "Success", 1500);
676
674
  try {
677
- a?.image_link && !E ? cl(D?.person_role_id) : E && al && (Ee(!1), await le(D?.person_role_id, a?.existingBidStr));
675
+ a?.image_link && !E ? cl(D?.person_role_id) : E && al && (De(!1), await le(D?.person_role_id, a?.existingBidStr));
678
676
  } catch (w) {
679
677
  console.log(w);
680
678
  }
@@ -685,8 +683,8 @@ const Ve = 15, Cl = 3, La = ({
685
683
  g,
686
684
  O,
687
685
  e
688
- ) : me(
689
- Ae(e) + D?.person_role_id?.toString() + Re(e)
686
+ ) : Le(
687
+ Re(e) + D?.person_role_id?.toString() + Oe(e)
690
688
  ), _();
691
689
  } else
692
690
  P("Patient Not Edited", s || "Patient Not Edited", "Failure", 1500);
@@ -753,7 +751,7 @@ const Ve = 15, Cl = 3, La = ({
753
751
  value: s?.value || "",
754
752
  title: s?.value ? s?.title : r.title
755
753
  };
756
- }), [he?.patient_config?.custom_fields, a.custom_fields]), Me = (e, t, r) => {
754
+ }), [he?.patient_config?.custom_fields, a.custom_fields]), ke = (e, t, r) => {
757
755
  F((s) => {
758
756
  const c = s.custom_fields?.length ? s.custom_fields.map((j) => j.id === e ? { ...j, value: r } : j) : [];
759
757
  return c.some((j) => j.id === e) || c.push({
@@ -780,7 +778,7 @@ const Ve = 15, Cl = 3, La = ({
780
778
  value: s || "",
781
779
  placeholder: `Enter ${c}`,
782
780
  onChange: (w) => {
783
- Me(t, c, w.target.value);
781
+ ke(t, c, w.target.value);
784
782
  }
785
783
  },
786
784
  width: "22em"
@@ -789,18 +787,18 @@ const Ve = 15, Cl = 3, La = ({
789
787
  );
790
788
  case "date":
791
789
  return /* @__PURE__ */ l.jsx(
792
- Le,
790
+ Me,
793
791
  {
794
792
  label: c,
795
793
  placeholder: `Select ${c}`,
796
794
  selectDate: s ? new Date(s) : null,
797
795
  dateVar: (w) => {
798
- Me(t, c, w.toDateString() || "");
796
+ ke(t, c, w.toDateString() || "");
799
797
  },
800
798
  isborderRequired: !0,
801
799
  width: "22em",
802
800
  clearDate: (w) => {
803
- Me(t, c, w);
801
+ ke(t, c, w);
804
802
  },
805
803
  openUp: !0,
806
804
  backSpaceClearDate: !0
@@ -812,9 +810,9 @@ const Ve = 15, Cl = 3, La = ({
812
810
  }
813
811
  }), Y = x(
814
812
  (e) => {
815
- V(e), u ? pl(e) : ke(!1, e);
813
+ V(e), u ? pl(e) : Ae(!1, e);
816
814
  },
817
- [u, pl, ke]
815
+ [u, pl, Ae]
818
816
  ), ha = x(() => {
819
817
  if (R && !u && !A) {
820
818
  V("Rx"), U();
@@ -881,10 +879,10 @@ const Ve = 15, Cl = 3, La = ({
881
879
  }
882
880
  ),
883
881
  Q ? /* @__PURE__ */ l.jsx(
884
- ka,
882
+ Ma,
885
883
  {
886
884
  conflicts: L,
887
- handleAddPatient: ke,
885
+ handleAddPatient: Ae,
888
886
  redirectAction: H,
889
887
  manipulateExistingDOM: aa
890
888
  }
@@ -900,9 +898,9 @@ const Ve = 15, Cl = 3, La = ({
900
898
  prefix: /* @__PURE__ */ l.jsxs(
901
899
  "div",
902
900
  {
903
- ref: Be,
901
+ ref: Te,
904
902
  className: "-hfl-ml-2 hfl-flex hfl-w-16 hfl-items-center hfl-justify-between hfl-bg-Gray-50",
905
- onClick: () => Se((e) => !e),
903
+ onClick: () => Pe((e) => !e),
906
904
  children: [
907
905
  /* @__PURE__ */ l.jsx(o, { variant: "Regular", type: "Text md", className: "hfl-px-1 hfl-py-1 hfl-text-Gray-700", children: Ze }),
908
906
  !Ze.length && /* @__PURE__ */ l.jsx("div", { className: `${Xe ? "hx_up" : "hx_down"} -hfl-mr-2` })
@@ -945,13 +943,13 @@ const Ve = 15, Cl = 3, La = ({
945
943
  style: {
946
944
  boxShadow: "0px 24px 48px -12px rgba(16, 24, 40, 0.18)"
947
945
  },
948
- children: ja.map((e) => /* @__PURE__ */ l.jsx(
946
+ children: Ca.map((e) => /* @__PURE__ */ l.jsx(
949
947
  fe,
950
948
  {
951
949
  className: "hfl-text-Primary-700",
952
950
  label: e.label,
953
951
  onSelect: () => {
954
- Ke(e.label), Se(!1), Pe(e.gender), i("honorific", e.label), i("gender", e.gender), F((t) => ({
952
+ Ke(e.label), Pe(!1), Ne(e.gender), i("honorific", e.label), i("gender", e.gender), F((t) => ({
955
953
  ...t,
956
954
  gender: e.gender,
957
955
  honorific: e.label
@@ -1069,10 +1067,10 @@ const Ve = 15, Cl = 3, La = ({
1069
1067
  ] }) })
1070
1068
  ] }),
1071
1069
  R && !u && tl && /* @__PURE__ */ l.jsx(
1072
- La,
1070
+ Fa,
1073
1071
  {
1074
1072
  isOpen: tl,
1075
- onClose: () => Te(!1),
1073
+ onClose: () => Ee(!1),
1076
1074
  onSubmit: (e) => ea(e),
1077
1075
  optHeading: "Verify with a OTP",
1078
1076
  otpSubHeading: `Please enter the OTP shared on ${k}`,
@@ -1097,7 +1095,7 @@ const Ve = 15, Cl = 3, La = ({
1097
1095
  { label: "Other", value: "2" }
1098
1096
  ],
1099
1097
  value: Fl,
1100
- onChange: (e) => Oe(e),
1098
+ onChange: (e) => Be(e),
1101
1099
  disabled: !1
1102
1100
  }
1103
1101
  ),
@@ -1168,7 +1166,7 @@ const Ve = 15, Cl = 3, La = ({
1168
1166
  }
1169
1167
  ) }),
1170
1168
  /* @__PURE__ */ l.jsx("div", { className: "hfl-mt-[24px] hfl-space-y-1", children: /* @__PURE__ */ l.jsx(
1171
- Le,
1169
+ Me,
1172
1170
  {
1173
1171
  className: "hfl-relative",
1174
1172
  placeholder: "DOB",
@@ -1226,20 +1224,20 @@ const Ve = 15, Cl = 3, La = ({
1226
1224
  value: a?.city,
1227
1225
  placeholder: "Enter City",
1228
1226
  onChange: (e) => {
1229
- i("city", e.target.value), Ce(!0), Jl(e);
1227
+ i("city", e.target.value), je(!0), Jl(e);
1230
1228
  },
1231
1229
  onBlur: (e) => {
1232
- e.stopPropagation(), Ce(!1);
1230
+ e.stopPropagation(), je(!1);
1233
1231
  }
1234
1232
  },
1235
1233
  width: 23.5 + "em"
1236
1234
  }
1237
1235
  ),
1238
- Rl && Ne && Ne.length > 0 && /* @__PURE__ */ l.jsx(
1236
+ Rl && Ce && Ce.length > 0 && /* @__PURE__ */ l.jsx(
1239
1237
  "div",
1240
1238
  {
1241
1239
  className: "hfl-absolute hfl-z-10 hfl-mt-1 hfl-max-h-80 hfl-w-full hfl-overflow-y-auto hfl-rounded-lg hfl-border hfl-border-Blue_gray-200 hfl-bg-Indigo-25 hfl-shadow-md ",
1242
- children: Ne.map((e) => /* @__PURE__ */ l.jsx(
1240
+ children: Ce.map((e) => /* @__PURE__ */ l.jsx(
1243
1241
  fe,
1244
1242
  {
1245
1243
  label: e,
@@ -1288,13 +1286,13 @@ const Ve = 15, Cl = 3, La = ({
1288
1286
  }
1289
1287
  ) })
1290
1288
  ] }),
1291
- ge ? /* @__PURE__ */ l.jsx(
1292
- Ma,
1289
+ xe ? /* @__PURE__ */ l.jsx(
1290
+ La,
1293
1291
  {
1294
1292
  setEditPatient: se,
1295
1293
  editPatient: u,
1296
1294
  createAsNew: J,
1297
- setCreateAsNew: xe
1295
+ setCreateAsNew: me
1298
1296
  }
1299
1297
  ) : /* @__PURE__ */ l.jsx(l.Fragment, {}),
1300
1298
  Ue ? /* @__PURE__ */ l.jsxs("div", { className: "", children: [
@@ -1333,7 +1331,7 @@ const Ve = 15, Cl = 3, La = ({
1333
1331
  }
1334
1332
  ) }),
1335
1333
  /* @__PURE__ */ l.jsx("div", { className: "hfl-mt-[24px] hfl-flex hfl-space-y-2", children: /* @__PURE__ */ l.jsx(
1336
- Le,
1334
+ Me,
1337
1335
  {
1338
1336
  className: "hfl-relative",
1339
1337
  placeholder: "Since",
@@ -1423,7 +1421,7 @@ const Ve = 15, Cl = 3, La = ({
1423
1421
  suffixClassName: "hfl-w-[100px]",
1424
1422
  suffixDropdownClassName: "hfl-ml-[160px]",
1425
1423
  options: Ml,
1426
- suffixOptions: Ca,
1424
+ suffixOptions: Na,
1427
1425
  handleValChange: (e) => {
1428
1426
  i("ref_doc_name", e);
1429
1427
  },
@@ -1497,20 +1495,20 @@ const Ve = 15, Cl = 3, La = ({
1497
1495
  value: a?.throughChannel,
1498
1496
  placeholder: "Enter Channel",
1499
1497
  onChange: (e) => {
1500
- i("throughChannel", e.target.value), we(!0), Ul(e);
1498
+ i("throughChannel", e.target.value), ve(!0), Ul(e);
1501
1499
  },
1502
1500
  onBlur: (e) => {
1503
- e.stopPropagation(), we(!1);
1501
+ e.stopPropagation(), ve(!1);
1504
1502
  }
1505
1503
  },
1506
1504
  width: "22em"
1507
1505
  }
1508
1506
  ),
1509
- Bl && be && be.length > 0 && /* @__PURE__ */ l.jsx(
1507
+ Bl && _e && _e.length > 0 && /* @__PURE__ */ l.jsx(
1510
1508
  "div",
1511
1509
  {
1512
1510
  className: "hfl-absolute hfl-z-10 hfl-mt-1 hfl-max-h-80 hfl-w-full hfl-overflow-y-auto hfl-rounded-lg hfl-border hfl-border-Blue_gray-200 hfl-bg-Indigo-25 hfl-shadow-md ",
1513
- children: be.map((e) => {
1511
+ children: _e.map((e) => {
1514
1512
  const { title: t, ...r } = e;
1515
1513
  return /* @__PURE__ */ l.jsx(
1516
1514
  fe,
@@ -1556,20 +1554,20 @@ const Ve = 15, Cl = 3, La = ({
1556
1554
  value: a?.occupation,
1557
1555
  placeholder: "Enter Occupation",
1558
1556
  onChange: (e) => {
1559
- i("occupation", e.target.value), je(!0), Wl(e);
1557
+ i("occupation", e.target.value), we(!0), Wl(e);
1560
1558
  },
1561
1559
  onBlur: (e) => {
1562
- e.stopPropagation(), je(!1);
1560
+ e.stopPropagation(), we(!1);
1563
1561
  }
1564
1562
  },
1565
1563
  width: "22em"
1566
1564
  }
1567
1565
  ),
1568
- Ol && ye && ye.length > 0 && /* @__PURE__ */ l.jsx(
1566
+ Ol && be && be.length > 0 && /* @__PURE__ */ l.jsx(
1569
1567
  "div",
1570
1568
  {
1571
1569
  className: "hfl-absolute hfl-z-10 hfl-mt-1 hfl-max-h-80 hfl-w-full hfl-overflow-y-auto hfl-rounded-lg hfl-border hfl-border-Blue_gray-200 hfl-bg-Indigo-25 hfl-shadow-md ",
1572
- children: ye.map((e) => /* @__PURE__ */ l.jsx(
1570
+ children: be.map((e) => /* @__PURE__ */ l.jsx(
1573
1571
  fe,
1574
1572
  {
1575
1573
  label: e,
@@ -1732,7 +1730,7 @@ const Ve = 15, Cl = 3, La = ({
1732
1730
  {
1733
1731
  className: qe || E || el ? "hfl-hidden" : "",
1734
1732
  onClick: () => {
1735
- Ee(!0), K(!0);
1733
+ De(!0), K(!0);
1736
1734
  },
1737
1735
  "data-qa": "profile-img",
1738
1736
  children: /* @__PURE__ */ l.jsxs("svg", { width: "76", height: "72", viewBox: "0 0 76 72", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
@@ -1788,7 +1786,7 @@ const Ve = 15, Cl = 3, La = ({
1788
1786
  className: `hfl-absolute hfl-right-2 hfl-top-2 hfl-flex hfl-h-[40px]
1789
1787
  hfl-w-[40px] hfl-cursor-pointer hfl-items-center hfl-justify-center hfl-rounded-full hfl-bg-White`,
1790
1788
  onClick: () => {
1791
- Ee(!0), ul();
1789
+ De(!0), ul();
1792
1790
  },
1793
1791
  children: /* @__PURE__ */ l.jsx("i", { className: "hx_delete hfl-text-[22px]" })
1794
1792
  }
@@ -1867,5 +1865,5 @@ const Ve = 15, Cl = 3, La = ({
1867
1865
  );
1868
1866
  };
1869
1867
  export {
1870
- Ua as P
1868
+ Wa as P
1871
1869
  };