hplx-feature-library 1.0.271 → 1.0.273

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.
@@ -8,6 +8,7 @@ interface SearchPatientsProps {
8
8
  manipulateExistingDOM?: () => void;
9
9
  variable: ENV_PARAMS;
10
10
  onPatientSelect?: (params: IPerson) => void;
11
+ hideUpcomingAppnts?: boolean;
11
12
  }
12
13
  declare const SearchPatients: (props: SearchPatientsProps) => import("react/jsx-runtime").JSX.Element;
13
14
  export default SearchPatients;
@@ -1,4 +1,4 @@
1
- import { S as f } from "../SearchPatients-Eju2303W.js";
1
+ import { S as f } from "../SearchPatients-BbXsqgER.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,20 +1,21 @@
1
- import { j as t, b as r, q as Y, K as Z } from "./index-CAhkB6R3.js";
2
- import { useState as o, useRef as C, useCallback as y, useMemo as ee, useEffect as D } from "react";
3
- import { g as te } from "./APIAction-DDp65siP.js";
4
- import { u as ne } from "./useMediaQuery-CZAbdJzN.js";
5
- import { d as re, g as le, a as G, E as se } from "./common-utils-DnFYNMKH.js";
6
- const oe = Math.abs(window.orientation || 0) === 90, de = (T) => {
1
+ import { j as t, b as r, q as Z, K as ee } from "./index-CAhkB6R3.js";
2
+ import { useState as o, useRef as D, useCallback as v, useMemo as te, useEffect as G } from "react";
3
+ import { g as ne } from "./APIAction-DDp65siP.js";
4
+ import { u as re } from "./useMediaQuery-CZAbdJzN.js";
5
+ import { d as le, g as se, a as T, E as oe } from "./common-utils-DnFYNMKH.js";
6
+ const ie = Math.abs(window.orientation || 0) === 90, pe = (A) => {
7
7
  const {
8
8
  addPatientHandler: R,
9
9
  disabled: p,
10
- manipulateExistingDOM: A,
11
- onPatientSelect: v,
12
- showSearchBar: L,
10
+ manipulateExistingDOM: L,
11
+ onPatientSelect: b,
12
+ showSearchBar: U,
13
13
  setShowSearchBar: h,
14
- variable: U
15
- } = T, { window_var: i, token: b, envName: S } = U, [c, d] = o(!1), x = C(null), m = C(null), [F, B] = o(0), [O, a] = o([]), $ = 6, [j, N] = o(""), [z, H] = o([]), [M, P] = o(!0), [K, E] = o([]), f = ne("(max-width: 1024px)"), u = (e, n, l, s) => {
16
- H([{ id: 1, title: e, description: n, type: l, duration: s }]);
17
- }, _ = y(
14
+ variable: F,
15
+ hideUpcomingAppnts: x = !1
16
+ } = A, { window_var: i, token: S, envName: j } = F, [c, d] = o(!1), m = D(null), u = D(null), [B, O] = o(0), [$, a] = o([]), z = 6, [N, P] = o(""), [H, M] = o([]), [K, E] = o(x), [q, k] = o([]), f = re("(max-width: 1024px)"), _ = (e, n, l, s) => {
17
+ M([{ id: 1, title: e, description: n, type: l, duration: s }]);
18
+ }, g = v(
18
19
  async (e) => {
19
20
  try {
20
21
  const n = {
@@ -23,73 +24,74 @@ const oe = Math.abs(window.orientation || 0) === 90, de = (T) => {
23
24
  doctor_role_id: i?.doctor_role_id_for_seg || "",
24
25
  term: encodeURIComponent(e),
25
26
  limit: 30
26
- }, l = await te(n, {
27
- envName: S,
28
- token: b
27
+ }, l = await ne(n, {
28
+ envName: j,
29
+ token: S
29
30
  });
30
31
  if (!l) {
31
- a([]), u("Error", "No response received from server", "Error", 3e3);
32
+ a([]), _("Error", "No response received from server", "Error", 3e3);
32
33
  return;
33
34
  }
34
- const s = l, k = window.filteredUpcomingAppts || [];
35
+ const s = l, C = window.filteredUpcomingAppts || [];
35
36
  if (s.apiError) {
36
- a([]), u("Error", s.apiError, "Error", 3e3);
37
+ a([]), _("Error", s.apiError, "Error", 3e3);
37
38
  return;
38
39
  }
39
- s?.persons?.length ? (a(s.persons), d(!0), B(Number(s.total_persons))) : a([]), k?.length ? (P(!1), E(k.slice(0, 5))) : (P(!0), E([]));
40
+ s?.persons?.length ? (a(s.persons), d(!0), O(Number(s.total_persons))) : a([]), C?.length && !x ? (E(!1), k(C.slice(0, 5))) : (E(!0), k([]));
40
41
  } catch (n) {
41
- console.error(n), u("Error", "Something went wrong while fetching patients", "Error", 3e3);
42
+ console.error(n), _("Error", "Something went wrong while fetching patients", "Error", 3e3);
42
43
  }
43
44
  },
44
45
  [
46
+ j,
45
47
  S,
46
- b,
47
48
  i?.doctor_role_id_for_seg,
48
49
  i?.org_branch_id_for_seg,
49
- i?.person_id_for_seg
50
+ i?.person_id_for_seg,
51
+ x
50
52
  ]
51
- ), q = ee(() => re((e) => {
52
- _(e);
53
- }, 500), [_]), Q = (e) => {
53
+ ), Q = te(() => le((e) => {
54
+ g(e);
55
+ }, 500), [g]), W = (e) => {
54
56
  const n = e.currentTarget.value.trim();
55
- (!isNaN(Number(n.charAt(0))) || n.length >= 2) && q(n);
56
- }, W = () => {
57
- c || _(j);
57
+ (!isNaN(Number(n.charAt(0))) || n.length >= 2) && Q(n);
58
58
  }, I = () => {
59
+ c || g(N);
60
+ }, J = () => {
59
61
  p || d((e) => !e);
60
- }, g = y(
62
+ }, w = v(
61
63
  (e) => {
62
- m.current && c && !m.current.contains(e.target) && (d(!1), a([]));
64
+ u.current && c && !u.current.contains(e.target) && (d(!1), a([]));
63
65
  },
64
66
  [c]
65
67
  );
66
- D(() => (document.addEventListener("mousedown", g), () => document.removeEventListener("mousedown", g)), [g, c]);
67
- const J = (e) => {
68
- window.location.href.indexOf("/frontdesk") !== -1 ? window.patientPopupHandlerFromFD(e.patient_role_id, e.patient_person_id) : G(`viewPatientDashboard.php?pid=${e.patient_role_id}`);
69
- }, V = async (e) => {
68
+ G(() => (document.addEventListener("mousedown", w), () => document.removeEventListener("mousedown", w)), [w, c]);
69
+ const V = (e) => {
70
+ window.location.href.indexOf("/frontdesk") !== -1 ? window.patientPopupHandlerFromFD(e.patient_role_id, e.patient_person_id) : T(`viewPatientDashboard.php?pid=${e.patient_role_id}`);
71
+ }, X = async (e) => {
70
72
  let n = !0;
71
- if (typeof window.beforePatientChange == "function" && window.location.pathname == se.visitpad && (n = window.beforePatientChange()), d(!1), a([]), !n) return;
72
- if (v) {
73
- v(e);
73
+ if (typeof window.beforePatientChange == "function" && window.location.pathname == oe.visitpad && (n = window.beforePatientChange()), d(!1), a([]), !n) return;
74
+ if (b) {
75
+ b(e);
74
76
  return;
75
77
  }
76
78
  window.patient_role_id = e.person_role_id !== "0" ? e.person_role_id.toString() : "0", window.patient_person_id = e.person_id !== "0" ? e.person_id.toString() : "0";
77
79
  const l = (e.person_role_id === "0", e.person_role_id);
78
- if (l && (A?.(), window.location.href.indexOf("/frontdesk") !== -1)) {
80
+ if (l && (L?.(), window.location.href.indexOf("/frontdesk") !== -1)) {
79
81
  window.patientPopupHandlerFromFD(l, e.person_id);
80
82
  return;
81
83
  }
82
- G(`viewPatientDashboard.php?pid=${l}`);
83
- }, X = () => {
84
- I(), R(), N("");
85
- }, w = y(
84
+ T(`viewPatientDashboard.php?pid=${l}`);
85
+ }, Y = () => {
86
+ J(), R(), P("");
87
+ }, y = v(
86
88
  (e) => {
87
- x.current && !x.current.contains(e.target) && f && h(!1);
89
+ m.current && !m.current.contains(e.target) && f && h(!1);
88
90
  },
89
91
  [f, h]
90
92
  );
91
- return D(() => (document.addEventListener("mousedown", w), () => document.removeEventListener("mousedown", w)), [w]), /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
92
- L ? /* @__PURE__ */ t.jsxs(
93
+ return G(() => (document.addEventListener("mousedown", y), () => document.removeEventListener("mousedown", y)), [y]), /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
94
+ U ? /* @__PURE__ */ t.jsxs(
93
95
  "div",
94
96
  {
95
97
  className: `hfl-flex hfl-items-center hfl-justify-center hfl-rounded-full hfl-bg-Blue-900 hfl-text-1 hfl-text-White ${p ? "hfl-pointer-events-none hfl-opacity-60" : ""}`,
@@ -98,15 +100,15 @@ const oe = Math.abs(window.orientation || 0) === 90, de = (T) => {
98
100
  /* @__PURE__ */ t.jsx(
99
101
  "input",
100
102
  {
101
- ref: x,
103
+ ref: m,
102
104
  type: "text",
103
105
  placeholder: "Search Patient 🔍",
104
- className: `hfl-rounded-full hfl-border-none hfl-bg-Blue-900 hfl-py-2 hfl-pl-4 ${f && !oe ? "xxs:hfl-w-[400px]" : "hfl-min-w-[150px]"} sm:hfl-w-full`,
106
+ className: `hfl-rounded-full hfl-border-none hfl-bg-Blue-900 hfl-py-2 hfl-pl-4 ${f && !ie ? "xxs:hfl-w-[400px]" : "hfl-min-w-[150px]"} sm:hfl-w-full`,
105
107
  "data-qa": "testid_patientSearch",
106
- value: j,
107
- onKeyUp: Q,
108
- onChange: (e) => N(e.target.value),
109
- onClick: W,
108
+ value: N,
109
+ onKeyUp: W,
110
+ onChange: (e) => P(e.target.value),
111
+ onClick: I,
110
112
  onBlur: () => f && h(!1)
111
113
  }
112
114
  ),
@@ -130,23 +132,23 @@ const oe = Math.abs(window.orientation || 0) === 90, de = (T) => {
130
132
  ]
131
133
  }
132
134
  ),
133
- /* @__PURE__ */ t.jsx(Y, { toastList: z }),
135
+ /* @__PURE__ */ t.jsx(Z, { toastList: H }),
134
136
  /* @__PURE__ */ t.jsxs(
135
137
  "div",
136
138
  {
137
- ref: m,
139
+ ref: u,
138
140
  className: `hfl-absolute hfl-right-[255px] hfl-top-[50px] hfl-max-h-[400px] hfl-w-[430px] hfl-min-w-[430px] hfl-overflow-y-auto hfl-rounded-lg hfl-border hfl-border-Gray-300 hfl-bg-White hfl-text-Gray-700 hfl-shadow-md ${c ? "hfl-block" : "hfl-hidden"}`,
139
141
  children: [
140
- !M && /* @__PURE__ */ t.jsxs("div", { className: "hfl-flex hfl-flex-col", children: [
142
+ !K && /* @__PURE__ */ t.jsxs("div", { className: "hfl-flex hfl-flex-col", children: [
141
143
  /* @__PURE__ */ t.jsxs("div", { className: "hfl-flex hfl-items-center hfl-py-[10px] ", children: [
142
144
  /* @__PURE__ */ t.jsx(r, { className: "hfl-px-[12px] hfl-text-Gray-400", variant: "Semibold", type: "Text xs", children: "Upcoming Appointments" }),
143
145
  /* @__PURE__ */ t.jsx("a", { href: "viewPatientAppointments.php", children: /* @__PURE__ */ t.jsx("i", { className: "hx_r-open hfl-text-Primary-700" }) })
144
146
  ] }),
145
- K?.map((e, n) => /* @__PURE__ */ t.jsxs(
147
+ q?.map((e, n) => /* @__PURE__ */ t.jsxs(
146
148
  "div",
147
149
  {
148
150
  className: `hfl-flex hfl-cursor-pointer hfl-justify-between hfl-px-[12px] hfl-py-[4px] hover:hfl-bg-Blue_gray-200 ${n % 2 === 1 ? "" : "hfl-bg-Gray-100"}`,
149
- onClick: () => J(e),
151
+ onClick: () => V(e),
150
152
  children: [
151
153
  /* @__PURE__ */ t.jsx("div", { className: "hfl-flex hfl-min-w-[92px] hfl-items-center hfl-justify-center hfl-rounded-lg hfl-border hfl-border-Gray-100 hfl-bg-White_20 hfl-p-2", children: /* @__PURE__ */ t.jsx(r, { className: "hfl-whitespace-nowrap hfl-text-Gray-500", variant: "Regular", type: "Text lg", children: e.appnt_time }) }),
152
154
  /* @__PURE__ */ t.jsxs("div", { className: "hfl-flex hfl-w-full hfl-flex-col hfl-px-3", children: [
@@ -170,11 +172,11 @@ const oe = Math.abs(window.orientation || 0) === 90, de = (T) => {
170
172
  children: "Patients List"
171
173
  }
172
174
  ),
173
- /* @__PURE__ */ t.jsx("div", { className: "hfl-max-h-[40vh] hfl-overflow-y-auto hfl-overflow hfl-scrollbar-hide", children: O?.map((e, n) => /* @__PURE__ */ t.jsxs(
175
+ /* @__PURE__ */ t.jsx("div", { className: "hfl-max-h-[40vh] hfl-overflow-y-auto hfl-overflow hfl-scrollbar-hide", children: $?.map((e, n) => /* @__PURE__ */ t.jsxs(
174
176
  "div",
175
177
  {
176
178
  className: `hfl-cursor-pointer hfl-px-[11px] hfl-py-[12px] hfl-leading-9 hover:hfl-bg-Blue_gray-200 ${n % 2 === 1 ? "" : "hfl-bg-Gray-100"}`,
177
- onClick: () => V(e),
179
+ onClick: () => X(e),
178
180
  children: [
179
181
  /* @__PURE__ */ t.jsx(
180
182
  r,
@@ -200,7 +202,7 @@ const oe = Math.abs(window.orientation || 0) === 90, de = (T) => {
200
202
  "(",
201
203
  e.ageStr.split(" ")[0],
202
204
  ", ",
203
- le(Number(e.org_person_gender)),
205
+ se(Number(e.org_person_gender)),
204
206
  ")"
205
207
  ] }),
206
208
  " "
@@ -222,13 +224,13 @@ const oe = Math.abs(window.orientation || 0) === 90, de = (T) => {
222
224
  e.person_role_id
223
225
  )) })
224
226
  ] }),
225
- F < $ && /* @__PURE__ */ t.jsx("div", { className: "hfl-flex hfl-justify-center", id: "newPatientAdd", children: /* @__PURE__ */ t.jsx(
226
- Z,
227
+ B < z && /* @__PURE__ */ t.jsx("div", { className: "hfl-flex hfl-justify-center", id: "newPatientAdd", children: /* @__PURE__ */ t.jsx(
228
+ ee,
227
229
  {
228
230
  hierarchy: "Secondary",
229
231
  icon: "Left",
230
232
  iconFile: "hx_add",
231
- onClick: X,
233
+ onClick: Y,
232
234
  size: "lg",
233
235
  textField: "Create New Patient",
234
236
  className: "hfl-flex hfl-w-full hfl-justify-center"
@@ -240,5 +242,5 @@ const oe = Math.abs(window.orientation || 0) === 90, de = (T) => {
240
242
  ] });
241
243
  };
242
244
  export {
243
- de as S
245
+ pe as S
244
246
  };
@@ -0,0 +1 @@
1
+ "use strict";const t=require("./index-D5vZvm7Z.cjs"),s=require("react"),J=require("./APIAction-1zVYADts.cjs"),V=require("./useMediaQuery-D4SIgdMW.cjs"),f=require("./common-utils-BcaBj1Iw.cjs"),X=Math.abs(window.orientation||0)===90,Y=k=>{const{addPatientHandler:C,disabled:x,manipulateExistingDOM:D,onPatientSelect:y,showSearchBar:A,setShowSearchBar:a,variable:T,hideUpcomingAppnts:d=!1}=k,{window_var:o,token:v,envName:E}=T,[h,p]=s.useState(!1),u=s.useRef(null),m=s.useRef(null),[G,L]=s.useState(0),[U,l]=s.useState([]),F=6,[b,R]=s.useState(""),[B,O]=s.useState([]),[$,S]=s.useState(d),[q,N]=s.useState([]),c=V.useMediaQuery("(max-width: 1024px)"),_=(e,n,r,i)=>{O([{id:1,title:e,description:n,type:r,duration:i}])},g=s.useCallback(async e=>{try{const n={branch_id:o?.org_branch_id_for_seg||"",doctor_id:o?.person_id_for_seg||"",doctor_role_id:o?.doctor_role_id_for_seg||"",term:encodeURIComponent(e),limit:30},r=await J.getPatientList(n,{envName:E,token:v});if(!r){l([]),_("Error","No response received from server","Error",3e3);return}const i=r,P=window.filteredUpcomingAppts||[];if(i.apiError){l([]),_("Error",i.apiError,"Error",3e3);return}i?.persons?.length?(l(i.persons),p(!0),L(Number(i.total_persons))):l([]),P?.length&&!d?(S(!1),N(P.slice(0,5))):(S(!0),N([]))}catch(n){console.error(n),_("Error","Something went wrong while fetching patients","Error",3e3)}},[E,v,o?.doctor_role_id_for_seg,o?.org_branch_id_for_seg,o?.person_id_for_seg,d]),z=s.useMemo(()=>f.debounceFn(e=>{g(e)},500),[g]),H=e=>{const n=e.currentTarget.value.trim();(!isNaN(Number(n.charAt(0)))||n.length>=2)&&z(n)},M=()=>{h||g(b)},Q=()=>{x||p(e=>!e)},j=s.useCallback(e=>{m.current&&h&&!m.current.contains(e.target)&&(p(!1),l([]))},[h]);s.useEffect(()=>(document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)),[j,h]);const I=e=>{window.location.href.indexOf("/frontdesk")!==-1?window.patientPopupHandlerFromFD(e.patient_role_id,e.patient_person_id):f.goToPage(`viewPatientDashboard.php?pid=${e.patient_role_id}`)},K=async e=>{let n=!0;if(typeof window.beforePatientChange=="function"&&window.location.pathname==f.EAPP_ROUTES.visitpad&&(n=window.beforePatientChange()),p(!1),l([]),!n)return;if(y){y(e);return}window.patient_role_id=e.person_role_id!=="0"?e.person_role_id.toString():"0",window.patient_person_id=e.person_id!=="0"?e.person_id.toString():"0";const r=(e.person_role_id==="0",e.person_role_id);if(r&&(D?.(),window.location.href.indexOf("/frontdesk")!==-1)){window.patientPopupHandlerFromFD(r,e.person_id);return}f.goToPage(`viewPatientDashboard.php?pid=${r}`)},W=()=>{Q(),C(),R("")},w=s.useCallback(e=>{u.current&&!u.current.contains(e.target)&&c&&a(!1)},[c,a]);return s.useEffect(()=>(document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)),[w]),t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[A?t.jsxRuntimeExports.jsxs("div",{className:`hfl-flex hfl-items-center hfl-justify-center hfl-rounded-full hfl-bg-Blue-900 hfl-text-1 hfl-text-White ${x?"hfl-pointer-events-none hfl-opacity-60":""}`,title:x?"Low internet speed. Feature available only in online mode":"Search Patient",children:[t.jsxRuntimeExports.jsx("input",{ref:u,type:"text",placeholder:"Search Patient 🔍",className:`hfl-rounded-full hfl-border-none hfl-bg-Blue-900 hfl-py-2 hfl-pl-4 ${c&&!X?"xxs:hfl-w-[400px]":"hfl-min-w-[150px]"} sm:hfl-w-full`,"data-qa":"testid_patientSearch",value:b,onKeyUp:H,onChange:e=>R(e.target.value),onClick:M,onBlur:()=>c&&a(!1)}),c&&t.jsxRuntimeExports.jsx("div",{className:"hx_close hfl-cursor-pointer hfl-pr-4",onClick:()=>a(e=>!e)})]}):t.jsxRuntimeExports.jsxs("div",{onClick:()=>a(e=>!e),className:"hfl-flex hfl-cursor-pointer hfl-flex-col hfl-items-center xs:hfl-mr-1 md:hfl-mr-0",children:[t.jsxRuntimeExports.jsx("i",{className:"hx_search",style:{fontSize:"18px"}}),t.jsxRuntimeExports.jsx(t.bi,{variant:"Regular",type:"Text md",children:"Search"})]}),t.jsxRuntimeExports.jsx(t.qh,{toastList:B}),t.jsxRuntimeExports.jsxs("div",{ref:m,className:`hfl-absolute hfl-right-[255px] hfl-top-[50px] hfl-max-h-[400px] hfl-w-[430px] hfl-min-w-[430px] hfl-overflow-y-auto hfl-rounded-lg hfl-border hfl-border-Gray-300 hfl-bg-White hfl-text-Gray-700 hfl-shadow-md ${h?"hfl-block":"hfl-hidden"}`,children:[!$&&t.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-flex-col",children:[t.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-items-center hfl-py-[10px] ",children:[t.jsxRuntimeExports.jsx(t.bi,{className:"hfl-px-[12px] hfl-text-Gray-400",variant:"Semibold",type:"Text xs",children:"Upcoming Appointments"}),t.jsxRuntimeExports.jsx("a",{href:"viewPatientAppointments.php",children:t.jsxRuntimeExports.jsx("i",{className:"hx_r-open hfl-text-Primary-700"})})]}),q?.map((e,n)=>t.jsxRuntimeExports.jsxs("div",{className:`hfl-flex hfl-cursor-pointer hfl-justify-between hfl-px-[12px] hfl-py-[4px] hover:hfl-bg-Blue_gray-200 ${n%2===1?"":"hfl-bg-Gray-100"}`,onClick:()=>I(e),children:[t.jsxRuntimeExports.jsx("div",{className:"hfl-flex hfl-min-w-[92px] hfl-items-center hfl-justify-center hfl-rounded-lg hfl-border hfl-border-Gray-100 hfl-bg-White_20 hfl-p-2",children:t.jsxRuntimeExports.jsx(t.bi,{className:"hfl-whitespace-nowrap hfl-text-Gray-500",variant:"Regular",type:"Text lg",children:e.appnt_time})}),t.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-w-full hfl-flex-col hfl-px-3",children:[t.jsxRuntimeExports.jsx(t.bi,{variant:"Regular",type:"Text md",className:"hfl-text-Gray-700",children:e.org_person_name}),t.jsxRuntimeExports.jsx(t.bi,{variant:"Regular",type:"Text sm",className:"hfl-text-Gray-500",children:e.org_person_phone})]}),t.jsxRuntimeExports.jsx("div",{className:"hfl-flex hfl-items-center",children:t.jsxRuntimeExports.jsx("i",{className:"hx_play-filled hfl-text-Gray-300"})})]},e.patient_role_id))]}),t.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-flex-col",children:[t.jsxRuntimeExports.jsx(t.bi,{style:{fontSize:"14px"},variant:"Semibold",type:"Text sm",className:"hfl-px-[12px] hfl-py-[8px] hfl-text-Primary-600",children:"Patients List"}),t.jsxRuntimeExports.jsx("div",{className:"hfl-max-h-[40vh] hfl-overflow-y-auto hfl-overflow hfl-scrollbar-hide",children:U?.map((e,n)=>t.jsxRuntimeExports.jsxs("div",{className:`hfl-cursor-pointer hfl-px-[11px] hfl-py-[12px] hfl-leading-9 hover:hfl-bg-Blue_gray-200 ${n%2===1?"":"hfl-bg-Gray-100"}`,onClick:()=>K(e),children:[t.jsxRuntimeExports.jsx(t.bi,{variant:"Regular",type:"Text sm",className:"hfl-inline hfl-uppercase hfl-text-Gray-700",style:{fontSize:"14px"},children:e.org_person_bid_str?e.org_person_bid_str+": ":""}),t.jsxRuntimeExports.jsxs(t.bi,{variant:"Medium",type:"Text sm",className:" hfl-inline hfl-capitalize hfl-text-Gray-700",style:{fontSize:"14px"},children:[e.org_person_name," ",t.jsxRuntimeExports.jsxs("div",{className:"hfl-inline-block",children:["(",e.ageStr.split(" ")[0],", ",f.getGender(Number(e.org_person_gender)),")"]})," "]}),t.jsxRuntimeExports.jsx(t.bi,{variant:"Regular",type:"Text sm",className:"hfl-inline-block hfl-text-Gray-700",style:{fontSize:"14px"},children:e.org_person_phone?`Ph: ${e.org_person_phone}`:""})]},e.person_role_id))})]}),G<F&&t.jsxRuntimeExports.jsx("div",{className:"hfl-flex hfl-justify-center",id:"newPatientAdd",children:t.jsxRuntimeExports.jsx(t.Ku,{hierarchy:"Secondary",icon:"Left",iconFile:"hx_add",onClick:W,size:"lg",textField:"Create New Patient",className:"hfl-flex hfl-w-full hfl-justify-center"})})]})]})};exports.SearchPatients=Y;