hplx-feature-library 1.0.167 → 1.0.168

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.
Files changed (160) hide show
  1. package/dist/APIAction--DyoXs57.js +3752 -0
  2. package/dist/APIAction-B5XQnkiF.cjs +9 -0
  3. package/dist/AlertPopup/index.js +77 -3
  4. package/dist/AllInvestigations/index.js +1 -1
  5. package/dist/AllInvestigationsTable-BDLPOHjr.cjs +79 -0
  6. package/dist/{AllInvestigationsTable-D2-HK9-M.js → AllInvestigationsTable-Cmxnw8_3.js} +29 -28
  7. package/dist/Attachments/components/document-canvas/document-pen-tool.d.ts +1 -1
  8. package/dist/Attachments/components/drag-drop-overlay.d.ts +1 -1
  9. package/dist/Attachments/components/edit-document-modal.d.ts +1 -1
  10. package/dist/Attachments/components/uploading-toast.d.ts +1 -1
  11. package/dist/Attachments/context/index.d.ts +2 -2
  12. package/dist/Attachments/hooks/useDropdownPosition.d.ts +1 -1
  13. package/dist/Attachments/index.js +1562 -1584
  14. package/dist/CameraCapture/index.d.ts +1 -1
  15. package/dist/CustomDropdown/index.js +1 -1
  16. package/dist/DateTimePicker/DateAndTimePicker/index.js +17 -16
  17. package/dist/PatientAddEdit/index.js +1662 -0
  18. package/dist/PatientPopup/action/APIAction.d.ts +65 -0
  19. package/dist/PatientPopup/app/PatientPopupContainer.d.ts +6 -0
  20. package/dist/PatientPopup/app/PatientPopupContext.d.ts +30 -0
  21. package/dist/PatientPopup/common/common.d.ts +14 -0
  22. package/dist/PatientPopup/components/Lab/HPLXLab.d.ts +8 -0
  23. package/dist/PatientPopup/components/Lab/LISLab.d.ts +8 -0
  24. package/dist/PatientPopup/components/Lab/LabTable.d.ts +5 -0
  25. package/dist/PatientPopup/components/Lab/index.d.ts +5 -0
  26. package/dist/PatientPopup/components/Loader/Loader.d.ts +2 -0
  27. package/dist/PatientPopup/components/Pagination.d.ts +9 -0
  28. package/dist/PatientPopup/components/Profile/Abha.d.ts +11 -0
  29. package/dist/PatientPopup/components/Profile/PatientDetailsModal.d.ts +1 -0
  30. package/dist/PatientPopup/components/Profile/Profile.d.ts +11 -0
  31. package/dist/PatientPopup/components/Profile/Sms.d.ts +2 -0
  32. package/dist/PatientPopup/components/Visits/Table.d.ts +11 -0
  33. package/dist/PatientPopup/components/Visits/index.d.ts +15 -0
  34. package/dist/PatientPopup/components/addBills/AddBillFooter.d.ts +2 -0
  35. package/dist/PatientPopup/components/addBills/AddBills.d.ts +5 -0
  36. package/dist/PatientPopup/components/addBills/AddBillsTable.d.ts +17 -0
  37. package/dist/PatientPopup/components/addBills/DropDown.d.ts +15 -0
  38. package/dist/PatientPopup/components/appointment/AllAppts.d.ts +8 -0
  39. package/dist/PatientPopup/components/appointment/Appointment.d.ts +2 -0
  40. package/dist/PatientPopup/components/appointment/AppointmentsTable.d.ts +10 -0
  41. package/dist/PatientPopup/components/bills/Bills.d.ts +6 -0
  42. package/dist/PatientPopup/components/bills/BillsTable.d.ts +11 -0
  43. package/dist/PatientPopup/components/deposit/DepositSection.d.ts +9 -0
  44. package/dist/PatientPopup/components/mainNavItem/MainNavItem.d.ts +13 -0
  45. package/dist/PatientPopup/components/patientPopupBody/PatientPopupBody.d.ts +8 -0
  46. package/dist/PatientPopup/components/patientPopupHeader/PatientPopupHeader.d.ts +10 -0
  47. package/dist/PatientPopup/components/patientPopupSummary/BillSummary.d.ts +19 -0
  48. package/dist/PatientPopup/components/patientPopupSummary/ConsultationDetails.d.ts +14 -0
  49. package/dist/PatientPopup/components/patientPopupSummary/DeleteItem.d.ts +11 -0
  50. package/dist/PatientPopup/components/patientPopupSummary/DepositRefundSummary.d.ts +8 -0
  51. package/dist/PatientPopup/components/patientPopupSummary/LabServiceDetails.d.ts +13 -0
  52. package/dist/PatientPopup/components/patientPopupSummary/OtherServiceDetails.d.ts +13 -0
  53. package/dist/PatientPopup/components/patientPopupSummary/PatientPopupSummary.d.ts +8 -0
  54. package/dist/PatientPopup/components/patientPopupSummary/PaymentCard.d.ts +25 -0
  55. package/dist/PatientPopup/components/patientPopupSummary/ServiceLevelBillSummary.d.ts +18 -0
  56. package/dist/PatientPopup/components/payments/DepositRefundTable.d.ts +14 -0
  57. package/dist/PatientPopup/components/payments/OtherServicesTable.d.ts +16 -0
  58. package/dist/PatientPopup/components/payments/PaymentEditModal.d.ts +15 -0
  59. package/dist/PatientPopup/components/payments/PaymentHeader.d.ts +7 -0
  60. package/dist/PatientPopup/components/payments/Payments.d.ts +5 -0
  61. package/dist/PatientPopup/components/payments/PaymentsTable.d.ts +14 -0
  62. package/dist/PatientPopup/constants/AppConstants.d.ts +123 -0
  63. package/dist/PatientPopup/index.d.ts +1 -0
  64. package/dist/PatientPopup/index.js +135376 -0
  65. package/dist/PatientPopup/types/hplxAPITypes.d.ts +37 -0
  66. package/dist/PatientPopup/utils/PrintFontLoader.d.ts +4 -0
  67. package/dist/PatientPopup/utils/helperFunctions.d.ts +3 -0
  68. package/dist/PediatricsCalculator/components/PediatricsCalculatorTableContext.d.ts +1 -1
  69. package/dist/PediatricsCalculator/index.js +1 -1
  70. package/dist/PediatricsCalculatorTable-CTA61g3h.cjs +1 -0
  71. package/dist/{PediatricsCalculatorTable-DGWlajqt.js → PediatricsCalculatorTable-QgonqxbR.js} +26 -25
  72. package/dist/ReusableModal-CIgDYOWZ.cjs +1 -0
  73. package/dist/ReusableModal-pSi21hnc.js +29 -0
  74. package/dist/ReusableTable/context/TableContextBase.d.ts +1 -1
  75. package/dist/Subscription/components/SubscriptionBadge.d.ts +2 -0
  76. package/dist/ToggleButtons/index.js +1 -1
  77. package/dist/TrendGraphs/context/index.d.ts +1 -1
  78. package/dist/changePasswordModal/APIAction/APIActions.d.ts +8 -0
  79. package/dist/changePasswordModal/component/ChangePasswordModal.d.ts +14 -0
  80. package/dist/clsx-C11secjj.cjs +1 -0
  81. package/dist/clsx-OuTLNxxd.js +16 -0
  82. package/dist/common/APIAction/APIAction.d.ts +28 -0
  83. package/dist/common/components/BorderFullWidth.d.ts +2 -0
  84. package/dist/common/components/table/ExistingPatients.d.ts +17 -0
  85. package/dist/common/editRibbon/EditRibbon.d.ts +9 -0
  86. package/dist/common/utils/NetworkInstance.d.ts +4 -0
  87. package/dist/common/utils/common-utils.d.ts +36 -0
  88. package/dist/components/PatientAddEdit.d.ts +3 -0
  89. package/dist/components/customDropdown/CustomDropdown.d.ts +1 -1
  90. package/dist/constants/CommonConstant.d.ts +70 -0
  91. package/dist/dayjs.min-BbV4duaj.js +284 -0
  92. package/dist/dayjs.min-DXp74Ozx.cjs +1 -0
  93. package/dist/fonts/AnekMalayalam-Bold.ttf +0 -0
  94. package/dist/fonts/AnekMalayalam-Regular.ttf +0 -0
  95. package/dist/fonts/Arial-Bold-Italic.ttf +0 -0
  96. package/dist/fonts/Arial-Bold.ttf +0 -0
  97. package/dist/fonts/Arial-Italic.ttf +0 -0
  98. package/dist/fonts/Arial.ttf +0 -0
  99. package/dist/fonts/IndianRupee.ttf +0 -0
  100. package/dist/fonts/MuktaMaheePunjabi-Bold.ttf +0 -0
  101. package/dist/fonts/MuktaMaheePunjabi-Regular.ttf +0 -0
  102. package/dist/fonts/Noto-Sans-Telugu-Bold.ttf +0 -0
  103. package/dist/fonts/Noto-Sans-Telugu-Regular.ttf +0 -0
  104. package/dist/fonts/NotoNastaliqUrdu-Bold.ttf +0 -0
  105. package/dist/fonts/NotoNastaliqUrdu-Regular.ttf +0 -0
  106. package/dist/fonts/NotoSansArabic-Bold.ttf +0 -0
  107. package/dist/fonts/NotoSansArabic.ttf +0 -0
  108. package/dist/fonts/NotoSansHindi-Bold.ttf +0 -0
  109. package/dist/fonts/NotoSansHindi.ttf +0 -0
  110. package/dist/fonts/NotoSansKannada-Bold.ttf +0 -0
  111. package/dist/fonts/NotoSansKannada.ttf +0 -0
  112. package/dist/fonts/NotoSansOriya-Bold.ttf +0 -0
  113. package/dist/fonts/NotoSansOriya.ttf +0 -0
  114. package/dist/fonts/NotoSansTamil-Bold.ttf +0 -0
  115. package/dist/fonts/NotoSansTamil.ttf +0 -0
  116. package/dist/fonts/NotoSerifGujarati-Bold.ttf +0 -0
  117. package/dist/fonts/NotoSerifGujarati-Regular.ttf +0 -0
  118. package/dist/fonts/Roboto-Regular.ttf +0 -0
  119. package/dist/fonts/Times-Bold-Italic.ttf +0 -0
  120. package/dist/fonts/Times-Bold.ttf +0 -0
  121. package/dist/fonts/Times-Italic.ttf +0 -0
  122. package/dist/fonts/Times.ttf +0 -0
  123. package/dist/fonts/TiroBangla-Bold.ttf +0 -0
  124. package/dist/fonts/TiroBangla-Regular.ttf +0 -0
  125. package/dist/fonts/Verdana-Bold-Italic.ttf +0 -0
  126. package/dist/fonts/Verdana-Bold.ttf +0 -0
  127. package/dist/fonts/Verdana-Italic.ttf +0 -0
  128. package/dist/fonts/Verdana.ttf +0 -0
  129. package/dist/hooks/useMediaQuery.d.ts +1 -0
  130. package/dist/hplx-feature-library.css +1 -1
  131. package/dist/index-DQlbIHh3.cjs +102 -0
  132. package/dist/index-DkA8S5IK.cjs +32 -0
  133. package/dist/index-sG1tIMJ6.js +7242 -0
  134. package/dist/index-vVtPa2-N.js +961 -0
  135. package/dist/index.js +4 -4
  136. package/dist/nineDots/NineDotsTypes.d.ts +22 -0
  137. package/dist/nineDots/NineDotsUtils.d.ts +3 -0
  138. package/dist/nineDots/nineDots.d.ts +3 -0
  139. package/dist/searchPatients/SearchPatients.d.ts +11 -0
  140. package/dist/types/APIEndPoints.d.ts +11 -0
  141. package/dist/types/ApiResponseTypes.d.ts +290 -0
  142. package/dist/types/CommonTypes.d.ts +255 -0
  143. package/dist/types/PatientAddEditTypes/index.js +1 -0
  144. package/dist/types/PatientAddEditTypes.d.ts +7 -0
  145. package/dist/types/PatientPopupTypes/index.js +1 -0
  146. package/dist/types/PatientPopupTypes.d.ts +836 -0
  147. package/dist/userProfile/APIAction/APIActions.d.ts +18 -0
  148. package/dist/userProfile/UserProfile.d.ts +18 -0
  149. package/dist/userProfile/UserProfileItem.d.ts +7 -0
  150. package/dist/warning-BozzKWdr.js +38 -0
  151. package/dist/warning-W0tkkrLJ.cjs +1 -0
  152. package/package.json +30 -2
  153. package/dist/AlertPopup-CSD_rZzv.js +0 -1069
  154. package/dist/AlertPopup-DdrHGPKR.cjs +0 -32
  155. package/dist/AllInvestigationsTable-DoqX89NX.cjs +0 -79
  156. package/dist/PediatricsCalculatorTable-DSVe0_z0.cjs +0 -1
  157. package/dist/dayjs.min-DQn5T5hy.js +0 -298
  158. package/dist/dayjs.min-DvmTfmHo.cjs +0 -1
  159. package/dist/index-4whwJbrk.js +0 -6867
  160. package/dist/index-C6KQLMQs.cjs +0 -92
@@ -0,0 +1,37 @@
1
+ export declare const GET_SERVICE_LIST = "/v1/services";
2
+ export declare const GET_DOCTORS_LIST = "/v1/doctors";
3
+ export declare const GET_BILLS = "/v1/bill";
4
+ export declare const PUT_BILLS = "/v2/bill";
5
+ export declare const GET_PAST_DUE = "v1/bills/pastAmount";
6
+ export declare const GET_BILL_ITEM = "/v1/bills/item";
7
+ export declare const DELETE_BILL_ITEM = "/v2/bills/item";
8
+ export declare const PUT_BILL_ITEM = "v1/bills/items";
9
+ export declare const GET_APPOINTMENTS = "/v1/appointments";
10
+ export declare const GET_BILL_SUMMARY = "v1/bill-summary";
11
+ export declare const GET_VISIT_ALL = "/v2/visit/all";
12
+ export declare const GET_PATIENT_POPUP_VISIT = "/v1/visits";
13
+ export declare const GET_PATIENT_POPUP_HPLXLAB = "v1/labs/patients";
14
+ export declare const GET_BRANCH_PREFERENCE = "/preferences/branch";
15
+ export declare const PUT_APPOINTMENTS = "/v1/appointment";
16
+ export declare const UPDATE_PATIENT_DETAIL = "/v1/patients";
17
+ export declare const GET_REFERREDBY_DOCTOR = "../api/modelGetAddPatientSuggestion.php";
18
+ export declare const DELETE_PATIENT_IMAGE = "../api/modelDeletePatientImage.php";
19
+ export declare const ADD_PATIENT_IMAGE = "../api/modelSavePatientImage.php";
20
+ export declare const POST_PAYMENT = "/v2/payments";
21
+ export declare const GET_PAYMENT = "/v1/payments";
22
+ export declare const GET_REFERRAL = "v1/referral";
23
+ export declare const DELETE_TRANSACTION = "/v1/transaction";
24
+ export declare const GET_BILLS_PAYMENTS_BILL_ID = "/v1/bills";
25
+ export declare const GET_ABHA_INFO = "/abha/v1/fetch";
26
+ export declare const GET_ABHA_ADDRESS = "/abha/v1/search";
27
+ export declare const GENERATE_OTP_BY_ABHA_ADDRESS = "/abha/v0.5/otp/generate";
28
+ export declare const VERIFY_ABHA_OTP = "/abha/v0.5/otp/verify";
29
+ export declare const GET_ABHA_CONSENT = "/v1/consent/request";
30
+ export declare const GET_INSURANCE_LIST = "v1/partner/insurance-companies";
31
+ export declare const VERIFY_INSURANCE = "v1/insurance/verify";
32
+ export declare const GET_CUSTOM_TRANSLATIONS = "/customTranslations";
33
+ export declare const GET_ONLINE_TEST_RANGES = "/tests/ranges";
34
+ export declare const UPDATE_WALLET = "v1/wallet";
35
+ export declare const GET_IPD_CASE = "../ipd/api/modelCheckIpdCase.php";
36
+ export declare const GET_LIS_BY_ORGBIDSTR = "/v2/lis-reports";
37
+ export declare const SEND_ATTACH_LIS = "v1/partner/lis-reports/share";
@@ -0,0 +1,4 @@
1
+ declare const PrintFontLoader: ({ fontBaseUrl }: {
2
+ fontBaseUrl: any;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default PrintFontLoader;
@@ -0,0 +1,3 @@
1
+ export declare const calculateAge: (pat_dob?: string) => string;
2
+ export declare const convertToTitleCase: (str?: string) => string;
3
+ export declare const getPrefixIcon: (item: string) => string;
@@ -10,5 +10,5 @@ export interface IPediatricsCalculatorTableContext {
10
10
  setRowToDelete?: (id: string | null) => void;
11
11
  openPopupForRow?: (row: IMedicineViewData) => void;
12
12
  }
13
- export declare const PediatricsCalculatorTableContext: import('react').Context<IPediatricsCalculatorTableContext | null>;
13
+ export declare const PediatricsCalculatorTableContext: import('react').Context<IPediatricsCalculatorTableContext>;
14
14
  export declare const usePediatricsCalculatorTableContext: () => IPediatricsCalculatorTableContext;
@@ -1,4 +1,4 @@
1
- import { P as f } from "../PediatricsCalculatorTable-DGWlajqt.js";
1
+ import { P as f } from "../PediatricsCalculatorTable-QgonqxbR.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./index-DQlbIHh3.cjs"),c=require("react"),k=require("./constants/PediatricsCalculatorConstants/index.js"),g=require("./CustomDropdown/index.js"),ae=require("./AlertPopup/index.js"),re=require("./index-DkA8S5IK.cjs"),se=c.createContext(null),le=()=>{const i=c.useContext(se);if(!i)throw new Error("usePediatricsCalculatorTableContext must be used inside a MedicineTableProvider");return i},oe=({effectiveEditMode:i,rowData:s,isSavedToLibrary:j,onSave:_,onCancel:b,onEdit:E,onCheckboxToggle:o})=>{const{variant:w,externallyTriggeredEditMode:L,setRowToDelete:R,openPopupForRow:D}=le();return w==="standard"?i?e.jsxRuntimeExports.jsxs("div",{className:"hfl-grid hfl-grid-cols-[1fr_1fr] hfl-border-1 hfl-border-Gray-200 hfl-rounded-lg ",children:[e.jsxRuntimeExports.jsx("button",{className:"hfl-px-3 hfl-py-1 hfl-text-Blue_gray-800 hfl-border-r-1 hover:hfl-bg-Primary-50",onClick:_,children:e.jsxRuntimeExports.jsx(e.bs,{variant:"Medium",type:"Text xs",className:"hfl-text-Blue_gray-800",children:"Save"})}),e.jsxRuntimeExports.jsx("button",{className:"hfl-px-3 hfl-py-2 hfl-text-Error-600 hover:hfl-bg-Error-50",onClick:b,children:e.jsxRuntimeExports.jsx(e.bs,{variant:"Medium",type:"Text xs",className:"",children:"Cancel"})})]}):e.jsxRuntimeExports.jsxs("div",{className:"hfl-grid hfl-grid-cols-[1fr_1fr_1fr] hfl-border-1 hfl-border-Gray-200 hfl-rounded-lg",children:[e.jsxRuntimeExports.jsx("button",{className:"hfl-px-3 hfl-py-1 hfl-text-Blue_gray-800 hover:hfl-bg-Primary-50",onClick:E,children:e.jsxRuntimeExports.jsx(e.bs,{variant:"Medium",type:"Text xs",className:"",children:"Edit"})}),e.jsxRuntimeExports.jsx("button",{className:"hfl-px-3 hfl-py-2 hfl-text-Blue_gray-800 hfl-border-x-1 hover:hfl-bg-Primary-50",onClick:()=>D?.(s),children:e.jsxRuntimeExports.jsx(e.bs,{variant:"Medium",type:"Text xs",className:"",children:"Copy"})}),e.jsxRuntimeExports.jsx("button",{className:"hx_delete hfl-px-3 hfl-py-2 hfl-text-Error-500 hover:hfl-bg-Error-50",onClick:()=>R?.(s.rowId)})]}):e.jsxRuntimeExports.jsx(e.Os,{disabled:!L,text:"Save this to Pediatric Calculator Library ",id:s.rowId,size:"md",onClick:o,isMarked:j??!1,checkboxClasses:"hfl-mt-2",checkBoxInnerDivClasses:"hfl-text-Blue-600 hfl-bg-Blue-50"},s.rowId)};var Q,te;function ce(){if(te)return Q;te=1;var i="Expected a function",s=NaN,j="[object Symbol]",_=/^\s+|\s+$/g,b=/^[-+]0x[0-9a-f]+$/i,E=/^0b[01]+$/i,o=/^0o[0-7]+$/i,w=parseInt,L=typeof e.commonjsGlobal=="object"&&e.commonjsGlobal&&e.commonjsGlobal.Object===Object&&e.commonjsGlobal,R=typeof self=="object"&&self&&self.Object===Object&&self,D=L||R||Function("return this")(),F=Object.prototype,W=F.toString,O=Math.max,n=Math.min,d=function(){return D.Date.now()};function N(a,m,x){var f,T,v,r,l,I,y=0,A=!1,V=!1,t=!0;if(typeof a!="function")throw new TypeError(i);m=z(m)||0,M(x)&&(A=!!x.leading,V="maxWait"in x,v=V?O(z(x.maxWait)||0,m):v,t="trailing"in x?!!x.trailing:t);function u(h){var $=f,J=T;return f=T=void 0,y=h,r=a.apply(J,$),r}function p(h){return y=h,l=setTimeout(K,m),A?u(h):r}function S(h){var $=h-I,J=h-y,ee=m-$;return V?n(ee,v-J):ee}function q(h){var $=h-I,J=h-y;return I===void 0||$>=m||$<0||V&&J>=v}function K(){var h=d();if(q(h))return Z(h);l=setTimeout(K,S(h))}function Z(h){return l=void 0,t&&f?u(h):(f=T=void 0,r)}function ne(){l!==void 0&&clearTimeout(l),y=0,f=I=T=l=void 0}function ie(){return l===void 0?r:Z(d())}function X(){var h=d(),$=q(h);if(f=arguments,T=this,I=h,$){if(l===void 0)return p(I);if(V)return l=setTimeout(K,m),u(I)}return l===void 0&&(l=setTimeout(K,m)),r}return X.cancel=ne,X.flush=ie,X}function M(a){var m=typeof a;return!!a&&(m=="object"||m=="function")}function C(a){return!!a&&typeof a=="object"}function P(a){return typeof a=="symbol"||C(a)&&W.call(a)==j}function z(a){if(typeof a=="number")return a;if(P(a))return s;if(M(a)){var m=typeof a.valueOf=="function"?a.valueOf():a;a=M(m)?m+"":m}if(typeof a!="string")return a===0?a:+a;a=a.replace(_,"");var x=E.test(a);return x||o.test(a)?w(a.slice(2),x?2:8):b.test(a)?s:+a}return Q=N,Q}var ue=ce();const de=e.getDefaultExportFromCjs(ue),Y=(i,s)=>{const j=parseFloat(i),_=parseFloat(s);if(!i||!s||isNaN(j)||isNaN(_)||_===0)return"";const b=j/_;return Number.isInteger(b)?b.toString(10):b.toFixed(3).replace(/\.?0+$/,"")},G=i=>/^(\d+)?(\.)?(\d*)?$/.test(i),B=({label:i,children:s})=>e.jsxRuntimeExports.jsxs(e.bs,{variant:"Regular",type:"Text sm",className:"hfl-grid hfl-grid-cols-2 hfl-items-center hfl-text-Blue_gray-800 hfl-justify-between hfl-gap-8",children:[e.jsxRuntimeExports.jsxs("span",{className:"hfl-flex-shrink-0",children:[i,":"]}),e.jsxRuntimeExports.jsx("div",{className:"hfl-flex-1 hfl-min-w-0",children:s})]}),H=({label:i,value:s})=>e.jsxRuntimeExports.jsxs(e.bs,{variant:"Regular",type:"Text sm",className:"hfl-flex hfl-text-Blue_gray-800 hfl-gap-1",children:[e.jsxRuntimeExports.jsxs("span",{className:"hfl-flex-shrink-0",children:[i,":"]}),e.jsxRuntimeExports.jsx(e.bs,{variant:"Bold",type:"Text sm",className:"hfl-text-Blue_gray-800 hfl-break-words hfl-min-w-0",children:s||"--"})]}),U=({children:i,className:s=""})=>e.jsxRuntimeExports.jsx(e.bs,{variant:"Regular",type:"Text sm",className:`hfl-text-Blue_gray-800 hfl-px-2 hfl-break-words hfl-overflow-wrap-anywhere hfl-min-w-0 ${s}`,children:i}),fe=c.memo(function({rowData:s,isEditing:j,setIsEditing:_,onSaveRow:b,allowCustomMedicineInput:E}){const{variant:o,externallyTriggeredEditMode:w,externallyTriggeredEditRowIds:L,getMedicineOptions:R,onRowChange:D,onRowDelete:F}=le(),[W,O]=c.useState([]),[n,d]=c.useState(s),[N,M]=c.useState(s.medicine_name);c.useEffect(()=>{j||M(s.medicine_name)},[s.medicine_name,j]),c.useEffect(()=>{j||d(s)},[s,j]);const C=async t=>(await R?.(t))?.map(p=>({label:p.doctorMedicineName,value:p}))||[],z=w||L?.includes(s.rowId)||j,a=c.useMemo(()=>n.out_of_range||s.out_of_range,[n.out_of_range,s.out_of_range]),m=c.useMemo(()=>n?.isDosageMismatch||s?.isDosageMismatch,[n?.isDosageMismatch,s?.isDosageMismatch]),x=c.useMemo(()=>n.calculation_type===k.C_MedicineCalculatorList[0]?n.calculation_fields:null,[n.calculation_fields,n.calculation_type]),f=c.useMemo(()=>n.calculation_type===k.C_MedicineCalculatorList[1]?n.calculation_fields:null,[n.calculation_fields,n.calculation_type]),T=(t,u)=>{let p;if(t==="calculation_type"){const S=u,q={frequency:n.calculation_fields.frequency,pedia_dosage:o==="standard"?n.calculation_fields.pedia_dosage:n.pedia_dosage};p={...n,calculation_type:S,calculation_fields:S==="mg/kg/dose"?{...k.C_DefaultMgKgFields,...q}:{...k.C_DefaultMlKgFields,...q}}}else p={...n,[t]:u};d(p),o==="prescription"&&v(p,t)},v=c.useMemo(()=>de((t,u)=>{D?.(t,u||void 0)},500),[D]),r=c.useMemo(()=>e.jsxRuntimeExports.jsxs("div",{className:"hfl-mb-1 hfl-flex hfl-w-max hfl-items-center hfl-rounded hfl-border-1 hfl-border-Warning-400 hfl-bg-Warning-50 hfl-p-1 hfl-px-2",children:[e.jsxRuntimeExports.jsx("div",{className:"hx_warning hfl-text-Error-400"}),e.jsxRuntimeExports.jsx(e.bs,{variant:"Regular",type:"Text sm",className:"hfl-px-2 hfl-text-1 hfl-text-Error-500",children:"Dosage exceed safety limits"})]}),[]);c.useEffect(()=>()=>{v.cancel()},[v]);const l=c.useCallback((t,u)=>{d(p=>{let S={...p.calculation_fields,[t]:u};if(t==="frequency"&&o==="standard"){const K=k.C_FrequencyDosageMap[u]||[];K.length>0&&(S={...S,pedia_dosage:K[0]})}const q={...p,calculation_fields:S};return o==="prescription"&&v(q,t),q})},[v,o]),I=async()=>{const t={...n,calculation_fields:{...n.calculation_fields}};await b?.(t)&&v({...t,isNewlyAdded:!1,isEditing:!1})},y=async()=>{if(!s.medicine_name||s.medicine_name.trim()===""){F?.(s.rowId);return}d(s),o==="standard"&&_(!1)},A=t=>o==="prescription"&&(t==="medicine_name"||t==="generic_name"||t==="type"||t==="calculation_type")?!1:z,V=()=>{const t=!(n?.isSavedToLibrary??!1),u={...n,isSavedToLibrary:t};d(u),v(u,"isSavedToLibrary")};return e.jsxRuntimeExports.jsxs("div",{className:`medicine-row hfl-grid hfl-grid-cols-[1.36fr_1.36fr_1.02fr_1.25fr_2.27fr_1.36fr_1.36fr] hfl-gap-2 hfl-px-2 hfl-py-1 hfl-border-b-1 hfl-border-Gray-200 ${z?"hfl-bg-gradient-to-b hfl-from-White_20 hfl-to-Primary-50":""} ${o==="prescription"&&!n.pedia_data_available?"hfl-hidden":""}`,children:[e.jsxRuntimeExports.jsx("div",{className:"hfl-w-full hfl-py-2.5 hfl-min-w-0",children:A("medicine_name")?e.jsxRuntimeExports.jsx(g,{wrapperClass:"hfl-w-full",btnClassName:"hfl-w-full",inputClassName:"hfl-w-full",inputValue:n.medicine_name,showInput:!0,disableInputAutoSize:!0,inputChangeHandler:async t=>{if(T("medicine_name",t),t.trim()){const u=await C(t);O(u)}else O([])},onInputFocus:async()=>{const t=await C(n.medicine_name);O(t)},onChangeHandler:t=>{const u=t.value,p=k.C_MedicineTypeList.find(S=>S.val===u.medicineType);d(S=>({...S,medicine_name:u.doctorMedicineName,medicine_id:u.medicineId,generic_name:u.doctorGenericName,type:p?.type??""})),M(u.doctorMedicineName)},options:W,isSearchable:!0,placeholder:"Search medicine",disabled:!n?.isNewlyAdded,inputProps:{onBlur:t=>{const u=t.relatedTarget;if(!(u&&u.closest(".custom-dropdown-menu"))&&!E){const p=n.medicine_name?.trim()||"";W.some(q=>q.label===p)||d(q=>({...q,medicine_name:N}))}}}}):e.jsxRuntimeExports.jsx(U,{children:s.medicine_name})}),e.jsxRuntimeExports.jsx("div",{className:"hfl-w-full hfl-py-2.5 hfl-min-w-0",children:A("generic_name")?e.jsxRuntimeExports.jsx(g,{wrapperClass:"hfl-w-full",inputClassName:"hfl-w-full",btnClassName:"hfl-w-full",inputValue:n.generic_name,showInput:!0,disableInputAutoSize:!0,inputChangeHandler:t=>T("generic_name",t),hideDropdownIcon:!0}):e.jsxRuntimeExports.jsx(U,{children:s.generic_name})}),e.jsxRuntimeExports.jsx("div",{className:"hfl-w-full hfl-py-2.5 hfl-min-w-0",children:A("type")?e.jsxRuntimeExports.jsx(g,{wrapperClass:"hfl-w-full",btnClassName:"hfl-w-full",placeholder:"Select",showInput:!1,disableInputAutoSize:!0,selectedOption:(()=>{const t=k.C_MedicineTypeList.find(u=>u.type===n.type);return t?{label:t.type,value:t.type}:void 0})(),options:k.C_MedicineTypeList.map(t=>({label:t.type,value:t.type})),onChangeHandler:t=>T("type",t.value)}):e.jsxRuntimeExports.jsx(U,{children:s.type||""})}),e.jsxRuntimeExports.jsx("div",{className:"hfl-w-full hfl-py-2.5 hfl-min-w-0",children:A("calculation_type")?e.jsxRuntimeExports.jsx(g,{wrapperClass:"hfl-w-full",btnClassName:"hfl-w-full",placeholder:"Select",showInput:!1,disableInputAutoSize:!0,selectedOption:{label:n.calculation_type,value:n.calculation_type},options:k.C_MedicineCalculatorList.map(t=>({label:t,value:t})),onChangeHandler:t=>T("calculation_type",t.value)}):e.jsxRuntimeExports.jsx(U,{children:s.calculation_type})}),e.jsxRuntimeExports.jsx("div",{className:"hfl-flex hfl-w-full hfl-flex-col hfl-gap-2 hfl-py-2.5 hfl-px-2",children:A("calculation_fields")?e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[x&&e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(B,{label:"Drug Strength",children:e.jsxRuntimeExports.jsx(g,{wrapperClass:"hfl-w-full",placeholder:"e.g., 250",showInput:!0,hideDropdownIcon:!0,disableInputAutoSize:!0,inputType:"text",inputValue:x.drug_strength||"",inputChangeHandler:t=>{G(t)&&l("drug_strength",t)}})}),e.jsxRuntimeExports.jsx(B,{label:"Dose/mg/kg",children:e.jsxRuntimeExports.jsx(g,{wrapperClass:"hfl-w-full",placeholder:"e.g., 15",showInput:!0,hideDropdownIcon:!0,disableInputAutoSize:!0,inputType:"text",inputValue:x.dose_mg_kg||"",inputChangeHandler:t=>{G(t)&&l("dose_mg_kg",t)}})}),e.jsxRuntimeExports.jsx(B,{label:"Frequency",children:e.jsxRuntimeExports.jsx(g,{wrapperClass:"hfl-w-full",placeholder:"Frequency",showInput:!1,selectedOption:n.calculation_fields.frequency?{label:n.calculation_fields.frequency,value:n.calculation_fields.frequency}:void 0,options:k.C_MedicineFrequencyList.map(t=>({label:t,value:t})),onChangeHandler:t=>{l("frequency",t.value)}})}),e.jsxRuntimeExports.jsx(B,{label:"Max Dose (mg)",children:e.jsxRuntimeExports.jsx(g,{wrapperClass:"hfl-w-full",placeholder:"Max mg/dose",showInput:!0,hideDropdownIcon:!0,disableInputAutoSize:!0,inputType:"text",inputValue:x.max_mg_dose||"",inputChangeHandler:t=>{G(t)&&l("max_mg_dose",t)}})}),e.jsxRuntimeExports.jsx(B,{label:"Max Day (mg)",children:e.jsxRuntimeExports.jsx(g,{wrapperClass:"hfl-w-full",placeholder:"Max mg/day",showInput:!0,hideDropdownIcon:!0,disableInputAutoSize:!0,inputType:"text",inputValue:x.max_mg_day||"",inputChangeHandler:t=>{G(t)&&l("max_mg_day",t)}})})]}),f&&e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(B,{label:"Drug Strength/mL",children:e.jsxRuntimeExports.jsx(g,{wrapperClass:"hfl-w-full",placeholder:"e.g., 250",showInput:!0,hideDropdownIcon:!0,disableInputAutoSize:!0,inputType:"text",inputValue:f.drug_strength||"",inputChangeHandler:t=>{G(t)&&(l("drug_strength",t),l("dose_ml_kg",Y(f.dose_mg_kg,t)))}})}),e.jsxRuntimeExports.jsx(B,{label:"Dose/mg/kg",children:e.jsxRuntimeExports.jsx(g,{wrapperClass:"hfl-w-full",placeholder:"e.g., 15",showInput:!0,hideDropdownIcon:!0,disableInputAutoSize:!0,inputType:"text",inputValue:f.dose_mg_kg||"",inputChangeHandler:t=>{G(t)&&(l("dose_mg_kg",t),l("dose_ml_kg",Y(t,f.drug_strength)))}})}),e.jsxRuntimeExports.jsx(B,{label:"Dose/mL/kg",children:e.jsxRuntimeExports.jsx(g,{wrapperClass:"hfl-w-full",disabled:!0,placeholder:"e.g., 5",showInput:!0,hideDropdownIcon:!0,disableInputAutoSize:!0,inputType:"text",inputValue:Y(f.dose_mg_kg,f.drug_strength)||"",inputChangeHandler:t=>{G(t)&&l("dose_ml_kg",t)}})}),e.jsxRuntimeExports.jsx(B,{label:"Frequency",children:e.jsxRuntimeExports.jsx(g,{wrapperClass:"hfl-w-full",placeholder:"Frequency",showInput:!1,selectedOption:n.calculation_fields.frequency?{label:n.calculation_fields.frequency,value:n.calculation_fields.frequency}:void 0,options:k.C_MedicineFrequencyList.map(t=>({label:t,value:t})),onChangeHandler:t=>{l("frequency",t.value)}})}),e.jsxRuntimeExports.jsx(B,{label:"Max Dose (mL)",children:e.jsxRuntimeExports.jsx(g,{wrapperClass:"hfl-w-full",placeholder:"Max mL/dose",showInput:!0,hideDropdownIcon:!0,disableInputAutoSize:!0,inputType:"text",inputValue:f.max_ml_dose||"",inputChangeHandler:t=>{G(t)&&l("max_ml_dose",t)}})}),e.jsxRuntimeExports.jsx(B,{label:"Max Day (mL)",children:e.jsxRuntimeExports.jsx(g,{wrapperClass:"hfl-w-full",placeholder:"Max mL/day",showInput:!0,hideDropdownIcon:!0,disableInputAutoSize:!0,inputType:"text",inputValue:f.max_ml_day||"",inputChangeHandler:t=>{G(t)&&l("max_ml_day",t)}})})]})]}):e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[x&&e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(H,{label:"Drug Strength",value:x.drug_strength}),e.jsxRuntimeExports.jsx(H,{label:"Dose/mg/kg",value:x.dose_mg_kg}),e.jsxRuntimeExports.jsx(H,{label:"Frequency",value:x.frequency}),e.jsxRuntimeExports.jsx(H,{label:"Max Dose (mg)",value:x.max_mg_dose}),e.jsxRuntimeExports.jsx(H,{label:"Max Day (mg)",value:x.max_mg_day})]}),f&&e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(H,{label:"Drug Strength/mL",value:f.drug_strength}),e.jsxRuntimeExports.jsx(H,{label:"Dose/mg/kg",value:f.dose_mg_kg}),e.jsxRuntimeExports.jsx(H,{label:"Dose/mL/kg",value:f.dose_ml_kg}),e.jsxRuntimeExports.jsx(H,{label:"Frequency",value:f.frequency}),e.jsxRuntimeExports.jsx(H,{label:"Max Dose (mL)",value:f.max_ml_dose}),e.jsxRuntimeExports.jsx(H,{label:"Max Day (mL)",value:f.max_ml_day})]})]})}),e.jsxRuntimeExports.jsx("div",{className:"hfl-w-full hfl-py-2.5 hfl-min-w-0",children:A("pedia_dosage")?(()=>{const t=n.calculation_fields.frequency,u=k.C_FrequencyDosageMap[t]||[];return e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:e.jsxRuntimeExports.jsx(g,{wrapperClass:"hfl-w-full",btnClassName:"hfl-w-full",inputClassName:"hfl-w-full",placeholder:"Select",showInput:o!=="standard",disableInputAutoSize:!0,inputValue:o==="standard"?n.calculation_fields.pedia_dosage:n.pedia_dosage,inputChangeHandler:p=>o==="prescription"?T("pedia_dosage",p):l("pedia_dosage",p),selectedOption:o==="standard"?{label:n.calculation_fields.pedia_dosage,value:n.calculation_fields.pedia_dosage}:void 0,options:o!=="prescription"?u.map(p=>({label:p,value:p})):void 0,onChangeHandler:o!=="prescription"?p=>l("pedia_dosage",p.value):void 0,hideDropdownIcon:o==="prescription",showEmptyDropdownPopup:o!=="prescription",showErrorMsg:o==="prescription"?a||m:!1,errorMsg:o==="prescription"&&a?"Dosage Exceeds Safety Limits":o==="prescription"&&m?"Dosage is in mismatch with selected type of Frequency":""})})})():e.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-flex-col hfl-h-full hfl-justify-between hfl-min-w-0",children:[e.jsxRuntimeExports.jsx(U,{children:o==="prescription"?s.pedia_dosage:s.calculation_fields.pedia_dosage}),a&&r]})}),e.jsxRuntimeExports.jsx("div",{className:"hfl-w-full hfl-py-2.5 hfl-min-w-0",children:e.jsxRuntimeExports.jsx(oe,{effectiveEditMode:z,rowData:s,isSavedToLibrary:n.isSavedToLibrary??!1,onSave:I,onCancel:y,onEdit:()=>_(!0),onCheckboxToggle:V})})]})},(i,s)=>i.isEditing===s.isEditing&&i.rowData.rowId===s.rowData.rowId&&i.rowData.isEditing===s.rowData.isEditing&&i.rowData.medicine_name===s.rowData.medicine_name&&i.rowData.generic_name===s.rowData.generic_name&&i.rowData.type===s.rowData.type&&i.rowData.pedia_dosage===s.rowData.pedia_dosage&&i.rowData.calculation_type===s.rowData.calculation_type&&JSON.stringify(i.rowData.calculation_fields)===JSON.stringify(s.rowData.calculation_fields)&&i.rowData.out_of_range===s.rowData.out_of_range&&i.rowData.isDosageMismatch===s.rowData.isDosageMismatch&&i.rowData.calculation_fields.pedia_dosage===s.rowData.calculation_fields.pedia_dosage&&i.rowData?.isNewlyAdded===s.rowData?.isNewlyAdded&&i.rowData?.pedia_data_available===s.rowData?.pedia_data_available),xe=({open:i,onCancel:s,onCopySave:j,rowMedicineData:_,getMedicineOptions:b})=>{const[E,o]=c.useState([]),[w,L]=c.useState(""),[R,D]=c.useState([]),F=c.useCallback(async d=>{const M=(await b?.(d))?.map(C=>({label:C.doctorMedicineName,value:C}));D(M||[])},[b]);c.useEffect(()=>{i&&F(w)},[w,F,i]);const W=d=>{const N=d.value;E.some(C=>C.medicineId===N.medicineId&&C.doctorMedicineName.trim().toLowerCase()===N.doctorMedicineName.trim().toLowerCase())||o(C=>[...C,N]),L(""),D([])},O=d=>{o(N=>N.filter(M=>M.medicineId!==d))},n=async()=>{w.trim()||await F("")};return e.jsxRuntimeExports.jsxs(re.Modal,{isOpen:i,onRequestClose:s,shouldCloseOnOverlayClick:!1,style:{overlay:{backgroundColor:"rgba(52, 64, 84, 0.5)",zIndex:1030},content:{zIndex:1031,maxWidth:"600px",maxHeight:"50vh",height:"auto",margin:"auto",borderRadius:"12px",padding:"0px",display:"flex",flexDirection:"column"}},children:[e.jsxRuntimeExports.jsx(e.bs,{variant:"Bold",type:"Text lg",className:"hfl-text-White hfl-bg-gradient_primary_600_500_90 hfl-px-6 hfl-py-2",children:"Please select medicine to copy"}),e.jsxRuntimeExports.jsxs("div",{className:"hfl-px-6 hfl-py-5 hfl-flex hfl-flex-col hfl-gap-6 hfl-overflow-y-auto hfl-flex-1",children:[e.jsxRuntimeExports.jsx(g,{inputValue:w,showInput:!0,isSearchable:!0,disableInputAutoSize:!0,inputChangeHandler:L,onChangeHandler:W,onInputFocus:n,options:R,placeholder:"Search for medicines"}),e.jsxRuntimeExports.jsx("div",{className:"hfl-flex hfl-flex-wrap hfl-gap-2",children:E.map(d=>e.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-items-center hfl-bg-Gray-100 hfl-px-2 hfl-py-0.5 hfl-rounded-md hfl-gap-1",children:[e.jsxRuntimeExports.jsx(e.bs,{variant:"Regular",type:"Text sm",className:"hfl-text-nowrap",children:d.doctorMedicineName}),e.jsxRuntimeExports.jsx("button",{className:"hfl-text-Blue_gray-800",onClick:()=>O(d.medicineId),children:e.jsxRuntimeExports.jsx("i",{className:"hx_close"})})]},d.doctorMedicineName+d.medicineId))})]}),e.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-justify-end hfl-gap-2.5 hfl-bg-Gray-50 hfl-px-7 hfl-py-3 hfl-border-t hfl-border-Gray-200",children:[e.jsxRuntimeExports.jsx(e.Ku,{size:"md",textField:"Cancel",onClick:s,hierarchy:"Secondary-Grey"}),e.jsxRuntimeExports.jsx(e.Ku,{size:"md",textField:"Save",disabled:!E||E.length==0,onClick:async()=>{await j(_,E)&&s()},className:"hfl-bg-Primary-600 hfl-text-White disabled:hfl-opacity-50 disabled:hfl-cursor-not-allowed",hierarchy:"Primary"})]})]})},pe=c.forwardRef(({data:i=[],variant:s,externallyTriggeredEditRowIds:j=[],externallyTriggeredEditMode:_=!1,allowCustomMedicineInput:b=!0,getMedicineOptions:E,onRowChange:o,onRowDelete:w,onRowCopy:L,onSaveRow:R,externalSaveTrigger:D,setSearchDisabled:F},W)=>{const[O,n]=c.useState(null),[d,N]=c.useState(!1),[M,C]=c.useState(),P=c.useCallback((r,l,I)=>{const y=i.find(V=>V.rowId===r);if(!y)return;const A={...y,...l};o?.(A,I||void 0)},[i,o]),z=c.useCallback(async()=>{const r=i.filter(l=>l.isEditing&&l.medicine_name);if(r.length!==0)try{await R?.(r)&&r.forEach(I=>{o?.({...I,isEditing:!1})})}catch(l){console.error("Bulk save failed",l)}finally{F?.(!1)}},[i,R,o,F]);c.useEffect(()=>{D&&z()},[D,z]),c.useEffect(()=>{const r=i.some(l=>l.isEditing);F?.(r)},[i,F]);const a=c.useCallback(r=>{C(r),N(!0)},[]),m=c.useCallback(async()=>{if(O)try{await w?.(O)}catch(r){console.error("Delete failed",r)}finally{n(null)}},[O,w]),x=c.useCallback(()=>{n(null)},[]),f=c.useCallback(async r=>{try{return await R?.([r])?(o?.({...r,isEditing:!1}),!0):!1}catch(l){return console.error("Save row failed",l),!1}},[R,o]),T=c.useCallback(async()=>{const r=i.filter(l=>l.isEditing&&l.medicine_name);if(r.length===0)return!0;try{const l=await R?.(r);return l&&i.map(y=>y.isEditing?{...y,isEditing:!1}:y).forEach(y=>o?.(y)),!!l}catch(l){return console.error("External bulk save failed",l),!1}},[i,R,o]);c.useImperativeHandle(W,()=>({triggerExternalSave:T}));const v={variant:s,externallyTriggeredEditMode:_,externallyTriggeredEditRowIds:j,getMedicineOptions:E,onRowChange:(r,l)=>{P(r.rowId,r,l),o?.(r,l)},onRowDelete:w,onRowCopy:L,setRowToDelete:n,openPopupForRow:a};return e.jsxRuntimeExports.jsxs("div",{className:"hfl-border-1 hfl-border-Gray-200",children:[e.jsxRuntimeExports.jsx("div",{className:"table-header hfl-grid hfl-grid-cols-[1.36fr_1.36fr_1.02fr_1.25fr_2.27fr_1.36fr_1.36fr] hfl-gap-2 hfl-py-2 hfl-px-2 hfl-font-bold hfl-border-b-1 hfl-border-Gray-200 hfl-bg-Blue_gray-50",children:k.C_Table_Column_Name.map(r=>e.jsxRuntimeExports.jsx(e.bs,{variant:"Medium",type:"Text sm",className:"hfl-text-Blue_gray-600",children:r},r))}),e.jsxRuntimeExports.jsxs(se.Provider,{value:v,children:[e.jsxRuntimeExports.jsx("div",{className:"table-body",children:i.length===0?e.jsxRuntimeExports.jsx(e.bs,{variant:"Medium",type:"Text sm",className:"hfl-text-Blue_gray-600 hfl-px-2 hfl-py-3",children:"No medicines added"}):i.map(r=>e.jsxRuntimeExports.jsx(fe,{rowData:r,isEditing:r.isEditing||!1,setIsEditing:l=>P(r.rowId,{isEditing:l}),onSaveRow:f,allowCustomMedicineInput:b},r.rowId))}),e.jsxRuntimeExports.jsx(ae,{headingText:"Delete Medicine",subHeadingText:"Are you sure you want to delete this medicine?",openState:!!O,positiveButtonText:"Delete",negativeButtonText:"Cancel",positiveActionCallback:m,negativeActionCallback:x,classNameNegativeBtn:"hfl-bg-Blue-600",classNamePositiveBtn:"hfl-bg-Error-500 hover:hfl-bg-Error-700 hfl-text-White",closePopupCallback:x}),e.jsxRuntimeExports.jsx(xe,{open:d,onCancel:()=>N(!1),onCopySave:L,rowMedicineData:M,getMedicineOptions:E})]})]})});exports.PediatricsCalculatorTable=pe;
@@ -1,8 +1,9 @@
1
- import { j as e, b as k, O as ge, c as Y, g as xe, K as oe } from "./index-4whwJbrk.js";
1
+ import { j as e, b as k, O as ge, d as Y, g as xe, K as oe } from "./index-sG1tIMJ6.js";
2
2
  import le, { createContext as ye, useContext as _e, useState as W, useEffect as J, useMemo as Z, useCallback as G, forwardRef as be, useImperativeHandle as we } from "react";
3
3
  import { C_MedicineCalculatorList as ae, C_FrequencyDosageMap as ce, C_MedicineTypeList as te, C_MedicineFrequencyList as de, C_DefaultMgKgFields as je, C_DefaultMlKgFields as ve, C_Table_Column_Name as Ce } from "./constants/PediatricsCalculatorConstants/index.js";
4
4
  import g from "./CustomDropdown/index.js";
5
- import { M as Ie, A as Ne } from "./AlertPopup-CSD_rZzv.js";
5
+ import Ie from "./AlertPopup/index.js";
6
+ import { M as Ne } from "./index-vVtPa2-N.js";
6
7
  const fe = ye(null), he = () => {
7
8
  const i = _e(fe);
8
9
  if (!i) throw new Error("usePediatricsCalculatorTableContext must be used inside a MedicineTableProvider");
@@ -16,7 +17,7 @@ const fe = ye(null), he = () => {
16
17
  onEdit: w,
17
18
  onCheckboxToggle: o
18
19
  }) => {
19
- const { variant: j, externallyTriggeredEditMode: L, setRowToDelete: v, openPopupForRow: E } = he();
20
+ const { variant: j, externallyTriggeredEditMode: A, setRowToDelete: v, openPopupForRow: E } = he();
20
21
  return j === "standard" ? i ? /* @__PURE__ */ e.jsxs("div", { className: "hfl-grid hfl-grid-cols-[1fr_1fr] hfl-border-1 hfl-border-Gray-200 hfl-rounded-lg ", children: [
21
22
  /* @__PURE__ */ e.jsx(
22
23
  "button",
@@ -47,7 +48,7 @@ const fe = ye(null), he = () => {
47
48
  ] }) : /* @__PURE__ */ e.jsx(
48
49
  ge,
49
50
  {
50
- disabled: !L,
51
+ disabled: !A,
51
52
  text: "Save this to Pediatric Calculator Library ",
52
53
  id: a.rowId,
53
54
  size: "md",
@@ -63,7 +64,7 @@ var ne, ue;
63
64
  function Te() {
64
65
  if (ue) return ne;
65
66
  ue = 1;
66
- var i = "Expected a function", a = NaN, x = "[object Symbol]", _ = /^\s+|\s+$/g, b = /^[-+]0x[0-9a-f]+$/i, w = /^0b[01]+$/i, o = /^0o[0-7]+$/i, j = parseInt, L = typeof Y == "object" && Y && Y.Object === Object && Y, v = typeof self == "object" && self && self.Object === Object && self, E = L || v || Function("return this")(), F = Object.prototype, $ = F.toString, O = Math.max, n = Math.min, d = function() {
67
+ var i = "Expected a function", a = NaN, x = "[object Symbol]", _ = /^\s+|\s+$/g, b = /^[-+]0x[0-9a-f]+$/i, w = /^0b[01]+$/i, o = /^0o[0-7]+$/i, j = parseInt, A = typeof Y == "object" && Y && Y.Object === Object && Y, v = typeof self == "object" && self && self.Object === Object && self, E = A || v || Function("return this")(), F = Object.prototype, $ = F.toString, O = Math.max, n = Math.min, d = function() {
67
68
  return E.Date.now();
68
69
  };
69
70
  function M(s, p, f) {
@@ -82,13 +83,13 @@ function Te() {
82
83
  var K = m - N, X = m - y, re = p - K;
83
84
  return R ? n(re, I - X) : re;
84
85
  }
85
- function A(m) {
86
+ function L(m) {
86
87
  var K = m - N, X = m - y;
87
88
  return N === void 0 || K >= p || K < 0 || R && X >= I;
88
89
  }
89
90
  function P() {
90
91
  var m = d();
91
- if (A(m))
92
+ if (L(m))
92
93
  return se(m);
93
94
  t = setTimeout(P, S(m));
94
95
  }
@@ -102,7 +103,7 @@ function Te() {
102
103
  return t === void 0 ? r : se(d());
103
104
  }
104
105
  function ee() {
105
- var m = d(), K = A(m);
106
+ var m = d(), K = L(m);
106
107
  if (u = arguments, D = this, N = m, K) {
107
108
  if (t === void 0)
108
109
  return h(N);
@@ -180,7 +181,7 @@ const Se = /* @__PURE__ */ xe(De), ie = (i, a) => {
180
181
  const {
181
182
  variant: o,
182
183
  externallyTriggeredEditMode: j,
183
- externallyTriggeredEditRowIds: L,
184
+ externallyTriggeredEditRowIds: A,
184
185
  getMedicineOptions: v,
185
186
  onRowChange: E,
186
187
  onRowDelete: F
@@ -193,17 +194,17 @@ const Se = /* @__PURE__ */ xe(De), ie = (i, a) => {
193
194
  const C = async (l) => (await v?.(l))?.map((h) => ({
194
195
  label: h.doctorMedicineName,
195
196
  value: h
196
- })) || [], z = j || L?.includes(a.rowId) || x, s = Z(() => n.out_of_range || a.out_of_range, [n.out_of_range, a.out_of_range]), p = Z(() => n?.isDosageMismatch || a?.isDosageMismatch, [n?.isDosageMismatch, a?.isDosageMismatch]), f = le.useMemo(() => n.calculation_type === ae[0] ? n.calculation_fields : null, [n.calculation_fields, n.calculation_type]), u = le.useMemo(() => n.calculation_type === ae[1] ? n.calculation_fields : null, [n.calculation_fields, n.calculation_type]), D = (l, c) => {
197
+ })) || [], z = j || A?.includes(a.rowId) || x, s = Z(() => n.out_of_range || a.out_of_range, [n.out_of_range, a.out_of_range]), p = Z(() => n?.isDosageMismatch || a?.isDosageMismatch, [n?.isDosageMismatch, a?.isDosageMismatch]), f = le.useMemo(() => n.calculation_type === ae[0] ? n.calculation_fields : null, [n.calculation_fields, n.calculation_type]), u = le.useMemo(() => n.calculation_type === ae[1] ? n.calculation_fields : null, [n.calculation_fields, n.calculation_type]), D = (l, c) => {
197
198
  let h;
198
199
  if (l === "calculation_type") {
199
- const S = c, A = {
200
+ const S = c, L = {
200
201
  frequency: n.calculation_fields.frequency,
201
202
  pedia_dosage: o === "standard" ? n.calculation_fields.pedia_dosage : n.pedia_dosage
202
203
  };
203
204
  h = {
204
205
  ...n,
205
206
  calculation_type: S,
206
- calculation_fields: S === "mg/kg/dose" ? { ...je, ...A } : { ...ve, ...A }
207
+ calculation_fields: S === "mg/kg/dose" ? { ...je, ...L } : { ...ve, ...L }
207
208
  };
208
209
  } else
209
210
  h = {
@@ -234,11 +235,11 @@ const Se = /* @__PURE__ */ xe(De), ie = (i, a) => {
234
235
  pedia_dosage: P[0]
235
236
  });
236
237
  }
237
- const A = {
238
+ const L = {
238
239
  ...h,
239
240
  calculation_fields: S
240
241
  };
241
- return o === "prescription" && I(A, l), A;
242
+ return o === "prescription" && I(L, l), L;
242
243
  });
243
244
  },
244
245
  [I, o]
@@ -302,7 +303,7 @@ const Se = /* @__PURE__ */ xe(De), ie = (i, a) => {
302
303
  const c = l.relatedTarget;
303
304
  if (!(c && c.closest(".custom-dropdown-menu")) && !w) {
304
305
  const h = n.medicine_name?.trim() || "";
305
- $.some((A) => A.label === h) || d((A) => ({ ...A, medicine_name: M }));
306
+ $.some((L) => L.label === h) || d((L) => ({ ...L, medicine_name: M }));
306
307
  }
307
308
  }
308
309
  }
@@ -590,7 +591,7 @@ const Se = /* @__PURE__ */ xe(De), ie = (i, a) => {
590
591
  },
591
592
  (i, a) => i.isEditing === a.isEditing && i.rowData.rowId === a.rowData.rowId && i.rowData.isEditing === a.rowData.isEditing && i.rowData.medicine_name === a.rowData.medicine_name && i.rowData.generic_name === a.rowData.generic_name && i.rowData.type === a.rowData.type && i.rowData.pedia_dosage === a.rowData.pedia_dosage && i.rowData.calculation_type === a.rowData.calculation_type && JSON.stringify(i.rowData.calculation_fields) === JSON.stringify(a.rowData.calculation_fields) && i.rowData.out_of_range === a.rowData.out_of_range && i.rowData.isDosageMismatch === a.rowData.isDosageMismatch && i.rowData.calculation_fields.pedia_dosage === a.rowData.calculation_fields.pedia_dosage && i.rowData?.isNewlyAdded === a.rowData?.isNewlyAdded && i.rowData?.pedia_data_available === a.rowData?.pedia_data_available
592
593
  ), Ee = ({ open: i, onCancel: a, onCopySave: x, rowMedicineData: _, getMedicineOptions: b }) => {
593
- const [w, o] = W([]), [j, L] = W(""), [v, E] = W([]), F = G(
594
+ const [w, o] = W([]), [j, A] = W(""), [v, E] = W([]), F = G(
594
595
  async (d) => {
595
596
  const T = (await b?.(d))?.map(
596
597
  (C) => ({
@@ -609,14 +610,14 @@ const Se = /* @__PURE__ */ xe(De), ie = (i, a) => {
609
610
  const M = d.value;
610
611
  w.some(
611
612
  (C) => C.medicineId === M.medicineId && C.doctorMedicineName.trim().toLowerCase() === M.doctorMedicineName.trim().toLowerCase()
612
- ) || o((C) => [...C, M]), L(""), E([]);
613
+ ) || o((C) => [...C, M]), A(""), E([]);
613
614
  }, O = (d) => {
614
615
  o((M) => M.filter((T) => T.medicineId !== d));
615
616
  }, n = async () => {
616
617
  j.trim() || await F("");
617
618
  };
618
619
  return /* @__PURE__ */ e.jsxs(
619
- Ie,
620
+ Ne,
620
621
  {
621
622
  isOpen: i,
622
623
  onRequestClose: a,
@@ -656,7 +657,7 @@ const Se = /* @__PURE__ */ xe(De), ie = (i, a) => {
656
657
  showInput: !0,
657
658
  isSearchable: !0,
658
659
  disableInputAutoSize: !0,
659
- inputChangeHandler: L,
660
+ inputChangeHandler: A,
660
661
  onChangeHandler: $,
661
662
  onInputFocus: n,
662
663
  options: v,
@@ -694,7 +695,7 @@ const Se = /* @__PURE__ */ xe(De), ie = (i, a) => {
694
695
  ]
695
696
  }
696
697
  );
697
- }, Be = be(
698
+ }, He = be(
698
699
  ({
699
700
  data: i = [],
700
701
  variant: a,
@@ -704,7 +705,7 @@ const Se = /* @__PURE__ */ xe(De), ie = (i, a) => {
704
705
  getMedicineOptions: w,
705
706
  onRowChange: o,
706
707
  onRowDelete: j,
707
- onRowCopy: L,
708
+ onRowCopy: A,
708
709
  onSaveRow: v,
709
710
  externalSaveTrigger: E,
710
711
  setSearchDisabled: F
@@ -780,7 +781,7 @@ const Se = /* @__PURE__ */ xe(De), ie = (i, a) => {
780
781
  U(r.rowId, r, t), o?.(r, t);
781
782
  },
782
783
  onRowDelete: j,
783
- onRowCopy: L,
784
+ onRowCopy: A,
784
785
  setRowToDelete: n,
785
786
  openPopupForRow: s
786
787
  };
@@ -799,7 +800,7 @@ const Se = /* @__PURE__ */ xe(De), ie = (i, a) => {
799
800
  r.rowId
800
801
  )) }),
801
802
  /* @__PURE__ */ e.jsx(
802
- Ne,
803
+ Ie,
803
804
  {
804
805
  headingText: "Delete Medicine",
805
806
  subHeadingText: "Are you sure you want to delete this medicine?",
@@ -818,7 +819,7 @@ const Se = /* @__PURE__ */ xe(De), ie = (i, a) => {
818
819
  {
819
820
  open: d,
820
821
  onCancel: () => M(!1),
821
- onCopySave: L,
822
+ onCopySave: A,
822
823
  rowMedicineData: T,
823
824
  getMedicineOptions: w
824
825
  }
@@ -828,5 +829,5 @@ const Se = /* @__PURE__ */ xe(De), ie = (i, a) => {
828
829
  }
829
830
  );
830
831
  export {
831
- Be as P
832
+ He as P
832
833
  };
@@ -0,0 +1 @@
1
+ "use strict";const n=require("./index-DQlbIHh3.cjs"),c=require("react"),h=({childModalRef:e,children:u,hideBackDrop:f=!1,backdropClasses:o="",modalClasses:i="",closeOnClickOutside:t,clickOutsideHandler:r,position:l="hfl-inset-0"})=>(c.useEffect(()=>{if(!t)return;const s=a=>{e.current&&!e.current.contains(a.target)&&r()};return document.addEventListener("mousedown",s),()=>{document.removeEventListener("mousedown",s)}},[r,e,t]),n.jsxRuntimeExports.jsx("div",{className:`hfl-fixed ${l} hfl-z-50 hfl-flex hfl-items-center hfl-justify-center ${o} ${f?"":"hfl-bg-Gray-750 hfl-backdrop-blur-sm"}`,children:n.jsxRuntimeExports.jsx("div",{ref:e,className:`hfl-rounded-lg hfl-shadow-md hfl-bg-White ${i??""}`,children:u})}));exports.ReusableModal=h;
@@ -0,0 +1,29 @@
1
+ import { j as n } from "./index-sG1tIMJ6.js";
2
+ import { useEffect as l } from "react";
3
+ const c = ({
4
+ childModalRef: e,
5
+ children: f,
6
+ hideBackDrop: o = !1,
7
+ backdropClasses: m = "",
8
+ modalClasses: u = "",
9
+ closeOnClickOutside: r,
10
+ clickOutsideHandler: t,
11
+ position: a = "hfl-inset-0"
12
+ }) => (l(() => {
13
+ if (!r) return;
14
+ const s = (h) => {
15
+ e.current && !e.current.contains(h.target) && t();
16
+ };
17
+ return document.addEventListener("mousedown", s), () => {
18
+ document.removeEventListener("mousedown", s);
19
+ };
20
+ }, [t, e, r]), /* @__PURE__ */ n.jsx(
21
+ "div",
22
+ {
23
+ className: `hfl-fixed ${a} hfl-z-50 hfl-flex hfl-items-center hfl-justify-center ${m} ${o ? "" : "hfl-bg-Gray-750 hfl-backdrop-blur-sm"}`,
24
+ children: /* @__PURE__ */ n.jsx("div", { ref: e, className: `hfl-rounded-lg hfl-shadow-md hfl-bg-White ${u ?? ""}`, children: f })
25
+ }
26
+ ));
27
+ export {
28
+ c as R
29
+ };
@@ -23,4 +23,4 @@ export interface TableContextProps<T> {
23
23
  tableBodyParentDivRef?: React.RefObject<HTMLDivElement>;
24
24
  tableMainDivClasses?: string;
25
25
  }
26
- export declare const TableContext: React.Context<TableContextProps<any> | undefined>;
26
+ export declare const TableContext: React.Context<TableContextProps<any>>;
@@ -0,0 +1,2 @@
1
+ declare const SubscriptionBadge: () => import("react/jsx-runtime").JSX.Element;
2
+ export default SubscriptionBadge;
@@ -1,4 +1,4 @@
1
- import { j as e, K as f } from "../index-4whwJbrk.js";
1
+ import { j as e, K as f } from "../index-sG1tIMJ6.js";
2
2
  function n(r) {
3
3
  const { options: h, selectedOption: a, onChangeHandler: s } = r;
4
4
  return /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-gap-2 hfl-h-full hfl-items-center hfl-px-4 hfl-justify-center hfl-py-1", children: h?.map((l) => /* @__PURE__ */ e.jsx("div", { className: "hfl-bg-White hfl-rounded-lg", children: /* @__PURE__ */ e.jsx(
@@ -1,2 +1,2 @@
1
1
  import { TrendGraphContextType } from '../../types/TrendGraphTypes';
2
- export declare const TrendGraphContext: import('react').Context<TrendGraphContextType | undefined>;
2
+ export declare const TrendGraphContext: import('react').Context<TrendGraphContextType>;
@@ -0,0 +1,8 @@
1
+ import { GlobalWindow, E_ENVIRONMENT } from '../../types/CommonTypes';
2
+ export declare const ChangePasswordType = "../modelChangePassword.php";
3
+ export declare const confirmOldPassword: (payload: FormData, variable: {
4
+ env: E_ENVIRONMENT;
5
+ token: string;
6
+ enc_token?: string;
7
+ window_var: Partial<GlobalWindow>;
8
+ }) => Promise<any>;
@@ -0,0 +1,14 @@
1
+ import { GlobalWindow, E_ENVIRONMENT } from '../../types/CommonTypes';
2
+ interface ChangePasswordModalProps {
3
+ closeModel: () => void;
4
+ modalIsOpen: boolean;
5
+ showToast: (title: string, description: string, type: string, duration: number) => void;
6
+ variable: {
7
+ env: E_ENVIRONMENT;
8
+ token: string;
9
+ enc_token?: string | undefined;
10
+ window_var: Partial<GlobalWindow>;
11
+ };
12
+ }
13
+ declare const ChangePasswordModal: (props: ChangePasswordModalProps) => import("react/jsx-runtime").JSX.Element;
14
+ export default ChangePasswordModal;
@@ -0,0 +1 @@
1
+ "use strict";function i(r){var f,n,t="";if(typeof r=="string"||typeof r=="number")t+=r;else if(typeof r=="object")if(Array.isArray(r)){var s=r.length;for(f=0;f<s;f++)r[f]&&(n=i(r[f]))&&(t&&(t+=" "),t+=n)}else for(n in r)r[n]&&(t&&(t+=" "),t+=n);return t}function o(){for(var r,f,n=0,t="",s=arguments.length;n<s;n++)(r=arguments[n])&&(f=i(r))&&(t&&(t+=" "),t+=f);return t}exports.clsx=o;
@@ -0,0 +1,16 @@
1
+ function a(r) {
2
+ var f, n, t = "";
3
+ if (typeof r == "string" || typeof r == "number") t += r;
4
+ else if (typeof r == "object") if (Array.isArray(r)) {
5
+ var o = r.length;
6
+ for (f = 0; f < o; f++) r[f] && (n = a(r[f])) && (t && (t += " "), t += n);
7
+ } else for (n in r) r[n] && (t && (t += " "), t += n);
8
+ return t;
9
+ }
10
+ function i() {
11
+ for (var r, f, n = 0, t = "", o = arguments.length; n < o; n++) (r = arguments[n]) && (f = a(r)) && (t && (t += " "), t += f);
12
+ return t;
13
+ }
14
+ export {
15
+ i as c
16
+ };
@@ -0,0 +1,28 @@
1
+ import { ADD_PATIENT_IMAGE_RESPONSE, ADD_PATIENT_RESPONSE, DELETE_PATIENT_IMAGE_RESPONSE, ENV_PARAMS, GET_APPOINTMENTS_RESPONSE, GET_BRANCH_PREFERENCE_RESPONSE, GET_PATIENT_DETAILS_RESPONSE, GET_REFERRED_BY_LISTS_RESPONSE, GET_VISITPAD_PREFERENCES_RESPONSE, IAddPatientPayload, IGetPatientListPayload, IGetPatientListResponse, IUpdatePatientPayload, UPDATE_PATIENT_RESPONSE } from '../../types/ApiResponseTypes';
2
+ export declare const getDoctorPreference: (fields_required?: string | string[], data?: {
3
+ doc_rid?: string;
4
+ }, doctor_role_id?: string, org_branch_id?: string, token_env?: ENV_PARAMS) => Promise<GET_BRANCH_PREFERENCE_RESPONSE>;
5
+ export declare const getBranchPreferences: (fields_required: string, org_branch_id: string, token_env: ENV_PARAMS) => Promise<GET_BRANCH_PREFERENCE_RESPONSE>;
6
+ export declare const getAppointments: (appnt_date: string, doctor_role_id: string, org_branch_id: string, person_id: string, token_env: ENV_PARAMS) => Promise<GET_APPOINTMENTS_RESPONSE>;
7
+ export declare const getPatientList: (payload: IGetPatientListPayload, token_env: ENV_PARAMS) => Promise<IGetPatientListResponse>;
8
+ export declare const getReferredByList: (token_env: ENV_PARAMS) => Promise<GET_REFERRED_BY_LISTS_RESPONSE>;
9
+ export declare const addPatientDetails: (payload: IAddPatientPayload, token_env: ENV_PARAMS) => Promise<ADD_PATIENT_RESPONSE>;
10
+ export declare const updatePatientDetails: (payload: IUpdatePatientPayload, token_env: ENV_PARAMS) => Promise<UPDATE_PATIENT_RESPONSE>;
11
+ export declare const addPatientImage: (payload: FormData, token_env: ENV_PARAMS) => Promise<ADD_PATIENT_IMAGE_RESPONSE>;
12
+ export declare const deletePatientImage: (payload: FormData, token_env: ENV_PARAMS) => Promise<DELETE_PATIENT_IMAGE_RESPONSE>;
13
+ export declare const getPatientDetails: ({ callback, payload, token_env, isCallbackNeeded, }: {
14
+ callback: (data: GET_PATIENT_DETAILS_RESPONSE) => void;
15
+ payload: {
16
+ branch_id: string;
17
+ person_id: string;
18
+ person_role_id: string;
19
+ patient_role_id: string;
20
+ partner_service_enabled?: boolean;
21
+ };
22
+ token_env: ENV_PARAMS;
23
+ isCallbackNeeded?: boolean;
24
+ }) => Promise<GET_PATIENT_DETAILS_RESPONSE>;
25
+ export declare const getVisitpadPreference: ({ doc_id, doc_rid }: {
26
+ doc_id?: string;
27
+ doc_rid?: string;
28
+ }, token_env: ENV_PARAMS, org_branch_id_for_seg: string, person_id_for_seg: string, doctor_role_id_for_seg: string) => Promise<GET_VISITPAD_PREFERENCES_RESPONSE>;
@@ -0,0 +1,2 @@
1
+ declare const BorderFullWidth: () => import("react/jsx-runtime").JSX.Element;
2
+ export default BorderFullWidth;
@@ -0,0 +1,17 @@
1
+ interface Patient {
2
+ org_person_name?: string;
3
+ name?: string;
4
+ org_person_phone?: string;
5
+ phone?: string;
6
+ org_person_email?: string;
7
+ email?: string;
8
+ person_role_id?: string | number;
9
+ }
10
+ interface ExistingPatientsProps {
11
+ conflicts: Patient[];
12
+ handleAddPatient: (isNew: boolean, redirectAction: string) => void;
13
+ redirectAction: string;
14
+ manipulateExistingDOM?: () => void;
15
+ }
16
+ declare const ExistingPatients: ({ conflicts, handleAddPatient, redirectAction }: ExistingPatientsProps) => import("react/jsx-runtime").JSX.Element;
17
+ export default ExistingPatients;
@@ -0,0 +1,9 @@
1
+ interface Props {
2
+ editPatient: boolean;
3
+ setEditPatient: (value: boolean) => void;
4
+ createAsNew: boolean;
5
+ setCreateAsNew: (value: boolean) => void;
6
+ showEditPrompt?: boolean;
7
+ }
8
+ declare function EditRibbon(props: Props): import("react/jsx-runtime").JSX.Element;
9
+ export default EditRibbon;
@@ -0,0 +1,4 @@
1
+ import { E_ENVIRONMENT } from '../../types/CommonTypes';
2
+ export declare const hplxAPI: (token: string, env: E_ENVIRONMENT) => import('axios').AxiosInstance;
3
+ export declare const externalAPI: () => import('axios').AxiosInstance;
4
+ export declare const ReArchAPI: (token: string, env: E_ENVIRONMENT) => import('axios').AxiosInstance;
@@ -0,0 +1,36 @@
1
+ export declare const getCookie: (cname: string) => string;
2
+ export declare const goToPage: (params: string) => void;
3
+ export declare const parseThroughChannelList: (channelList: string[]) => any[];
4
+ export declare const parseReferredByDocList: (referredList: Array<{
5
+ doctor_id: string;
6
+ doctor_name: string;
7
+ specialist: string;
8
+ }>) => any[];
9
+ export declare const parseReferredByList: (referredList: Array<{
10
+ doctor_id: string;
11
+ doctor_name: string;
12
+ specialist: string;
13
+ }>) => Record<string, {
14
+ doctor_id: string;
15
+ doctor_name: string;
16
+ specialist: string;
17
+ }>;
18
+ export declare const isJson: (str: string) => boolean;
19
+ export declare const calculateDate: (value: string, unitVal: string) => string;
20
+ export declare const getGenderKey: (gender: string) => "M" | "F" | "O";
21
+ export declare const getGender: (gender: number) => string;
22
+ export declare const validateMobileNo: (value: string) => {
23
+ isError: boolean;
24
+ msg: string;
25
+ };
26
+ export declare const isValidDate: (dateObject: string | Date) => boolean;
27
+ export declare function calculateAge(pat_dob: string): string;
28
+ export declare const debounceFn: <T extends (...args: unknown[]) => void>(func: T, timing?: number) => ((...args: Parameters<T>) => void);
29
+ export declare const calculateDOB: (value: string, unitVal: string) => string;
30
+ export declare const handle401Status: () => void;
31
+ export declare function capitalizeFirstLetter(value?: string | undefined): string;
32
+ export declare const redirectionToSubscription: (subs_buttonLabel?: string, source_cta?: string) => void;
33
+ export declare const getDurationFormat: (data: any, duration_type?: string) => {
34
+ duration: string;
35
+ durationType: string;
36
+ };
@@ -0,0 +1,3 @@
1
+ import { PatientAddEditProps } from '../types/PatientAddEditTypes';
2
+ declare const PatientAddEdit: (props: PatientAddEditProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default PatientAddEdit;
@@ -15,7 +15,7 @@ interface I_CustomDropdown<T, T2> {
15
15
  isRequiredField?: boolean;
16
16
  btnClassName?: string;
17
17
  placeholder?: string;
18
- options?: (I_SelectOption<T> | undefined)[];
18
+ options?: I_SelectOption<T>[];
19
19
  selectedOption?: I_SelectOption<T>;
20
20
  onChangeHandler?: (option: I_SelectOption<T>) => void;
21
21
  inputValue?: string;
@@ -0,0 +1,70 @@
1
+ export declare enum EAPP_ROUTES {
2
+ visitpad = "/md/viewPatientDashboard.php",
3
+ consultations = "/md/viewPatientList.php",
4
+ appointments = "/md/viewPatientAppointments.php",
5
+ settings = "/md/viewPreferenceSettings.php",
6
+ privateDb = "/md/viewPrivateDB.php",
7
+ dashboardBase = "/",
8
+ referEarn = "/md/inviteReferrals.php",
9
+ teleConsults = "/md/viewRemoteAppointments.php",
10
+ pricing = "/subscription/pricing",
11
+ billSummary = "/subscription/bill-summary",
12
+ pediatricsCalculator = "/md/viewPediatricCalculator.php"
13
+ }
14
+ export declare const OccupationList: string[];
15
+ export declare const CityList: string[];
16
+ export declare const HonorificList: {
17
+ label: string;
18
+ value: string;
19
+ gender: string;
20
+ }[];
21
+ export declare const bloodGroups: {
22
+ value: string;
23
+ label: string;
24
+ }[];
25
+ export declare const DefinedLanguages: {
26
+ en: string;
27
+ hi: string;
28
+ kn: string;
29
+ ml: string;
30
+ te: string;
31
+ gu: string;
32
+ mr: string;
33
+ ta: string;
34
+ bn: string;
35
+ ur: string;
36
+ pa: string;
37
+ od: string;
38
+ ar: string;
39
+ asa: string;
40
+ };
41
+ export declare const SpecialityList: {
42
+ label: string;
43
+ value: string;
44
+ }[];
45
+ export declare const genderList: {
46
+ value: number;
47
+ text: string;
48
+ }[];
49
+ export declare const MARITAL_STATUS: string[];
50
+ export declare const C_ALL_APP_ROUTES: EAPP_ROUTES[];
51
+ export declare const UnauthorizedAccessMessage: {
52
+ title: string;
53
+ subTitle: string;
54
+ type: string;
55
+ time: number;
56
+ };
57
+ export declare const BASE_URLS: {
58
+ STAGING: {
59
+ php_url: string;
60
+ rearch_url: string;
61
+ };
62
+ DEVELOPMENT: {
63
+ php_url: string;
64
+ rearch_url: string;
65
+ };
66
+ PRODUCTION: {
67
+ php_url: string;
68
+ rearch_url: string;
69
+ };
70
+ };