hplx-feature-library 1.0.261 → 1.0.263

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 (49) hide show
  1. package/dist/APIAction-CC17r7p0.cjs +1 -0
  2. package/dist/APIAction-DT2t98rl.js +191 -0
  3. package/dist/AllInvestigations/index.js +1 -1
  4. package/dist/{AllInvestigationsTable-BDLPOHjr.cjs → AllInvestigationsTable-Btilz6k7.cjs} +1 -1
  5. package/dist/{AllInvestigationsTable-Dg-YXASz.js → AllInvestigationsTable-DaTLqp8z.js} +2 -2
  6. package/dist/Attachments/index.js +1 -1
  7. package/dist/{Attachments-CEyxq22h.cjs → Attachments-DAq9xgoo.cjs} +2 -2
  8. package/dist/{Attachments-Dsb_1p7x.js → Attachments-rqdT5ZCi.js} +273 -277
  9. package/dist/NineDots/index.js +1 -1
  10. package/dist/{NineDots-CUXiXRmO.cjs → NineDots-BqJkRMwa.cjs} +1 -1
  11. package/dist/{NineDots-B3ZRumoi.js → NineDots-Di0ExA79.js} +1 -1
  12. package/dist/PatientAddEdit/components/VerifyOtpModal.d.ts +14 -0
  13. package/dist/PatientAddEdit/index.js +1 -1
  14. package/dist/{PatientAddEdit-OJOcJQ2m.js → PatientAddEdit-DujKaqWc.js} +750 -545
  15. package/dist/PatientAddEdit-_qlZg3dz.cjs +7 -0
  16. package/dist/PatientPopup/index.js +1 -1
  17. package/dist/PatientPopup/types/hplxAPITypes.d.ts +0 -3
  18. package/dist/{PatientPopupContainer-D4ip9SKW.js → PatientPopupContainer-A1RU4MWv.js} +23 -23
  19. package/dist/{PatientPopupContainer-Bgo9gldx.cjs → PatientPopupContainer-T_jhsgnM.cjs} +7 -7
  20. package/dist/PediatricsCalculator/index.js +1 -1
  21. package/dist/{PediatricsCalculatorTable-B4fTy1J5.cjs → PediatricsCalculatorTable-CV2TYaNw.cjs} +1 -1
  22. package/dist/{PediatricsCalculatorTable-G0ttbDpi.js → PediatricsCalculatorTable-DNrhACld.js} +2 -2
  23. package/dist/{PrintModal-Dq0Z1WeK.js → PrintModal-B656GT1T.js} +21 -23
  24. package/dist/{PrintModal-ClPSnO5C.cjs → PrintModal-DUOclH1A.cjs} +5 -5
  25. package/dist/SearchPatients/index.js +1 -1
  26. package/dist/{SearchPatients-C4Vnh3N8.cjs → SearchPatients-0ldEci6d.cjs} +1 -1
  27. package/dist/{SearchPatients-Db-rZQFH.js → SearchPatients-dk3g8cS2.js} +3 -3
  28. package/dist/UserProfile/index.js +1 -1
  29. package/dist/{UserProfile-V_7POQiQ.cjs → UserProfile-CmtfxoCm.cjs} +1 -1
  30. package/dist/{UserProfile-BxJOxt0y.js → UserProfile-Cx8clS5a.js} +4 -4
  31. package/dist/common/APIAction/APIAction.d.ts +2 -0
  32. package/dist/common/editRibbon/EditRibbon.d.ts +0 -1
  33. package/dist/{common-utils-DvF5Rjeq.js → common-utils-CV2JVzIc.js} +5 -5
  34. package/dist/{common-utils-BuL9g3zT.cjs → common-utils-PQ3dz_tV.cjs} +1 -1
  35. package/dist/{dayjs.min-DXp74Ozx.cjs → dayjs.min-e35R9Xl4.cjs} +1 -1
  36. package/dist/{dayjs.min-D52_GdfV.js → dayjs.min-gQLjWrOd.js} +1 -1
  37. package/dist/hplx-feature-library.css +1 -1
  38. package/dist/{index-DkA8S5IK.cjs → index-BrdW6iDR.cjs} +1 -1
  39. package/dist/{index-DQlbIHh3.cjs → index-CSBySGrm.cjs} +31 -31
  40. package/dist/{index-T1lUjzhG.js → index-DaR8OZ5T.js} +1 -1
  41. package/dist/{index-Bd0CDVpH.js → index-WgpmO6Qi.js} +1480 -1452
  42. package/dist/index.js +9 -9
  43. package/dist/print-pdf/index.js +1 -1
  44. package/dist/types/APIEndPoints.d.ts +3 -1
  45. package/dist/types/ApiResponseTypes.d.ts +6 -0
  46. package/package.json +1 -1
  47. package/dist/APIAction-DZ6jFXOq.cjs +0 -1
  48. package/dist/APIAction-VHoA7gHt.js +0 -161
  49. package/dist/PatientAddEdit-svjtGpiz.cjs +0 -7
@@ -1,4 +1,4 @@
1
- import { P as f } from "../PediatricsCalculatorTable-G0ttbDpi.js";
1
+ import { P as f } from "../PediatricsCalculatorTable-DNrhACld.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("./index-DQlbIHh3.cjs"),a=require("react"),A=require("./constants/PediatricsCalculatorConstants/index.js"),Me=require("./useClickOutside-DsVG12Cs.cjs"),Se=require("./useOutsideClick-CicUjzPP.cjs"),_e=require("./index-DkA8S5IK.cjs"),we=a.createContext(null),Ee=()=>{const s=a.useContext(we);if(!s)throw new Error("usePediatricsCalculatorTableContext must be used inside a MedicineTableProvider");return s},Te=({effectiveEditMode:s,rowData:l,isSavedToLibrary:g,onSave:_,onCancel:m,onEdit:v,onCheckboxToggle:r})=>{const{variant:C,externallyTriggeredEditMode:w,setRowToDelete:y,openPopupForRow:k}=Ee();return C==="standard"?s?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:m,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:v,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:()=>k?.(l),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:()=>y?.(l.rowId)})]}):e.jsxRuntimeExports.jsx(e.Os,{disabled:!w,text:"Save this to Pediatric Calculator Library ",id:l.rowId,size:"md",onClick:r,isMarked:g??!1,checkboxClasses:"hfl-mt-2",checkBoxInnerDivClasses:"hfl-text-Blue-600 hfl-bg-Blue-50"},l.rowId)};function De(s){const{options:l,selectedOption:g,onChangeHandler:_}=s;return e.jsxRuntimeExports.jsx("div",{className:"hfl-flex hfl-gap-2 hfl-h-full hfl-items-center hfl-px-4 hfl-justify-center hfl-py-1",children:l?.map(m=>e.jsxRuntimeExports.jsx("div",{className:"hfl-bg-White hfl-rounded-lg",children:e.jsxRuntimeExports.jsx(e.Ku,{onClick:()=>_&&_(m),hierarchy:g?.label===m.label?"Primary":"Secondary-Grey",size:"sm",textField:m.label,className:g?.label===m.label?"hfl-bg-Blue-600":""})},m.label))})}const Fe="data:image/svg+xml,%3csvg%20width='10'%20height='6'%20viewBox='0%200%2010%206'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0.480062%200.819173C0.650418%200.648817%200.92662%200.648817%201.09698%200.819173L4.71454%204.43674L8.3321%200.819173C8.50246%200.648817%208.77866%200.648817%208.94902%200.819173C9.11937%200.98953%209.11937%201.26573%208.94902%201.43609L5.023%205.36211C4.85264%205.53246%204.57644%205.53246%204.40608%205.36211L0.480062%201.43609C0.309706%201.26573%200.309706%200.98953%200.480062%200.819173Z'%20fill='%23667085'/%3e%3c/svg%3e";function T(s){const{label:l,labelClassName:g,hideDropdownIcon:_,showClearOption:m,isRequiredField:v,btnClassName:r,placeholder:C,options:w,selectedOption:y,onChangeHandler:k,inputValue:b,inputChangeHandler:L,onInputFocusOutEvent:B,inputClassName:i,isSearchable:p,inputType:$,showInput:M,inputSuffix:S,selectedLabel:U,suffixPadding:W,disableInputAutoSize:o,selectedOptions:j,isMulti:f,dropDownItemClickHandler:x,showToggle:q,toggleChangeHandler:D,selectedToggleOption:c,toggleOptionsList:n,border:N,height:E,disabled:I,fieldColor:H,errorMsg:t,showErrorMsg:d,placeholderStyle:u,onInputKeyDown:F,showEmptyDropdownPopup:z=!0,isDropdownFixed:G=!1,dropdownClassName:ie="",wrapperClass:ae="",maxInputLength:re,alternateListBgStyle:ee,showLabelTooltip:R=!1,labelToolTipContent:K="",inputContainerClasses:X="",onInputFocus:Q}=s,[Z,te]=a.useState(!1),[le,Re]=a.useState(null),oe=a.useRef(null),ce=a.useRef(null),pe=a.useRef(null),ue=a.useRef([]),Ce=a.useMemo(()=>w?.filter(h=>h?h.label.toLowerCase().includes((b??"").toLowerCase()):void 0),[b,w]),[ve,de]=a.useState(!1),Ne=()=>{te(!1),f&&L&&L(""),Re(null)},me=a.useCallback(h=>{h.stopPropagation(),I||te(O=>!O)},[I]),ge=(b?.length||0)+2+Number(W||0);Se.useOutsideClick(oe,Ne),a.useEffect(()=>{le!==null&&ue.current[le]&&ue.current[le].scrollIntoView({block:"nearest"})},[le]);const se=a.useCallback(()=>{if(G&&Z){const h=M?ce.current:pe.current,O=oe.current;if(h&&O){const J=h.getBoundingClientRect();O.style.position="fixed",O.style.top=`${window.scrollY?J.bottom+window.scrollY:J.bottom}px`,O.style.left=`${J.left}px`,O.style.width=`${J.width}px`}}},[G,Z,M]);a.useEffect(()=>{if(G)return Z?(se(),window.addEventListener("scroll",se,!0)):window.removeEventListener("scroll",se,!0),()=>{window.removeEventListener("scroll",se,!0)}},[G,se,Z]),Me.useClickOutside(oe,()=>{ve&&B&&B()});const je=h=>{if(f&&x){const O=j?.some(J=>J.value===h.value);x(!!O,h)}},Ie=a.useCallback(async h=>{h.stopPropagation(),Z||te(!0),Q&&await Q()},[Q,Z]);return e.jsxRuntimeExports.jsxs("div",{className:`hfl-relative hfl-inline-block hfl-text-left ${ae||""}`,children:[!!l&&e.jsxRuntimeExports.jsxs("div",{className:"hfl-text-Gray-700 hfl-mb-1 hfl-flex",children:[e.jsxRuntimeExports.jsx(e.bs,{type:"Text sm",variant:"Medium",className:g||"",children:`${l}`}),v&&e.jsxRuntimeExports.jsx("span",{className:"hfl-ml-1 hfl-text-Error-600",children:"*"}),R&&e.jsxRuntimeExports.jsx(e.Nu,{variant:"Right",text:K,theme:"dark",children:e.jsxRuntimeExports.jsx("i",{className:"hx_info-filled"})})]}),M?e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs("div",{className:`hfl-flex hfl-items-center hfl-shadow-xs hfl-px-2 ${X||""} ${N||"hfl-border-1"} hfl-rounded-lg hfl-overflow-x-auto ${t?"hfl-border-Error-300":"hfl-border-Gray-300"} ${E||"hfl-h-10"} ${I?"!hfl-bg-Gray-50 !hfl-pointer-events-none":H||"hfl-bg-White"} hover:hfl-border-Primary-300 hover:hfl-shadow-xs-primary`,onClick:I?()=>{}:me,children:[j?.map((h,O)=>e.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-items-center hfl-bg-Blue-100 hfl-mr-2 hfl-py-1 hfl-px-2 hfl-rounded-sm hfl-font-inter-0 hfl-text-nowrap",children:[e.jsxRuntimeExports.jsx("span",{className:"hfl-pointer-events-none",children:h.label}),e.jsxRuntimeExports.jsx("span",{onClick:J=>{J.stopPropagation(),je(h)},className:"hx_close hfl-text-Gray-500 hfl-my-0 hfl-text-[14px] hfl-ml-[1px] hfl-cursor-pointer"})]},`${h.label}-${O}`)),Object.keys(u||{}).length>0&&e.jsxRuntimeExports.jsx("style",{children:`
1
+ "use strict";const e=require("./index-CSBySGrm.cjs"),a=require("react"),A=require("./constants/PediatricsCalculatorConstants/index.js"),Me=require("./useClickOutside-DsVG12Cs.cjs"),Se=require("./useOutsideClick-CicUjzPP.cjs"),_e=require("./index-BrdW6iDR.cjs"),we=a.createContext(null),Ee=()=>{const s=a.useContext(we);if(!s)throw new Error("usePediatricsCalculatorTableContext must be used inside a MedicineTableProvider");return s},Te=({effectiveEditMode:s,rowData:l,isSavedToLibrary:g,onSave:_,onCancel:m,onEdit:v,onCheckboxToggle:r})=>{const{variant:C,externallyTriggeredEditMode:w,setRowToDelete:y,openPopupForRow:k}=Ee();return C==="standard"?s?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:m,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:v,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:()=>k?.(l),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:()=>y?.(l.rowId)})]}):e.jsxRuntimeExports.jsx(e.Os,{disabled:!w,text:"Save this to Pediatric Calculator Library ",id:l.rowId,size:"md",onClick:r,isMarked:g??!1,checkboxClasses:"hfl-mt-2",checkBoxInnerDivClasses:"hfl-text-Blue-600 hfl-bg-Blue-50"},l.rowId)};function De(s){const{options:l,selectedOption:g,onChangeHandler:_}=s;return e.jsxRuntimeExports.jsx("div",{className:"hfl-flex hfl-gap-2 hfl-h-full hfl-items-center hfl-px-4 hfl-justify-center hfl-py-1",children:l?.map(m=>e.jsxRuntimeExports.jsx("div",{className:"hfl-bg-White hfl-rounded-lg",children:e.jsxRuntimeExports.jsx(e.Ku,{onClick:()=>_&&_(m),hierarchy:g?.label===m.label?"Primary":"Secondary-Grey",size:"sm",textField:m.label,className:g?.label===m.label?"hfl-bg-Blue-600":""})},m.label))})}const Fe="data:image/svg+xml,%3csvg%20width='10'%20height='6'%20viewBox='0%200%2010%206'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0.480062%200.819173C0.650418%200.648817%200.92662%200.648817%201.09698%200.819173L4.71454%204.43674L8.3321%200.819173C8.50246%200.648817%208.77866%200.648817%208.94902%200.819173C9.11937%200.98953%209.11937%201.26573%208.94902%201.43609L5.023%205.36211C4.85264%205.53246%204.57644%205.53246%204.40608%205.36211L0.480062%201.43609C0.309706%201.26573%200.309706%200.98953%200.480062%200.819173Z'%20fill='%23667085'/%3e%3c/svg%3e";function T(s){const{label:l,labelClassName:g,hideDropdownIcon:_,showClearOption:m,isRequiredField:v,btnClassName:r,placeholder:C,options:w,selectedOption:y,onChangeHandler:k,inputValue:b,inputChangeHandler:L,onInputFocusOutEvent:B,inputClassName:i,isSearchable:p,inputType:$,showInput:M,inputSuffix:S,selectedLabel:U,suffixPadding:W,disableInputAutoSize:o,selectedOptions:j,isMulti:f,dropDownItemClickHandler:x,showToggle:q,toggleChangeHandler:D,selectedToggleOption:c,toggleOptionsList:n,border:N,height:E,disabled:I,fieldColor:H,errorMsg:t,showErrorMsg:d,placeholderStyle:u,onInputKeyDown:F,showEmptyDropdownPopup:z=!0,isDropdownFixed:G=!1,dropdownClassName:ie="",wrapperClass:ae="",maxInputLength:re,alternateListBgStyle:ee,showLabelTooltip:R=!1,labelToolTipContent:K="",inputContainerClasses:X="",onInputFocus:Q}=s,[Z,te]=a.useState(!1),[le,Re]=a.useState(null),oe=a.useRef(null),ce=a.useRef(null),pe=a.useRef(null),ue=a.useRef([]),Ce=a.useMemo(()=>w?.filter(h=>h?h.label.toLowerCase().includes((b??"").toLowerCase()):void 0),[b,w]),[ve,de]=a.useState(!1),Ne=()=>{te(!1),f&&L&&L(""),Re(null)},me=a.useCallback(h=>{h.stopPropagation(),I||te(O=>!O)},[I]),ge=(b?.length||0)+2+Number(W||0);Se.useOutsideClick(oe,Ne),a.useEffect(()=>{le!==null&&ue.current[le]&&ue.current[le].scrollIntoView({block:"nearest"})},[le]);const se=a.useCallback(()=>{if(G&&Z){const h=M?ce.current:pe.current,O=oe.current;if(h&&O){const J=h.getBoundingClientRect();O.style.position="fixed",O.style.top=`${window.scrollY?J.bottom+window.scrollY:J.bottom}px`,O.style.left=`${J.left}px`,O.style.width=`${J.width}px`}}},[G,Z,M]);a.useEffect(()=>{if(G)return Z?(se(),window.addEventListener("scroll",se,!0)):window.removeEventListener("scroll",se,!0),()=>{window.removeEventListener("scroll",se,!0)}},[G,se,Z]),Me.useClickOutside(oe,()=>{ve&&B&&B()});const je=h=>{if(f&&x){const O=j?.some(J=>J.value===h.value);x(!!O,h)}},Ie=a.useCallback(async h=>{h.stopPropagation(),Z||te(!0),Q&&await Q()},[Q,Z]);return e.jsxRuntimeExports.jsxs("div",{className:`hfl-relative hfl-inline-block hfl-text-left ${ae||""}`,children:[!!l&&e.jsxRuntimeExports.jsxs("div",{className:"hfl-text-Gray-700 hfl-mb-1 hfl-flex",children:[e.jsxRuntimeExports.jsx(e.bs,{type:"Text sm",variant:"Medium",className:g||"",children:`${l}`}),v&&e.jsxRuntimeExports.jsx("span",{className:"hfl-ml-1 hfl-text-Error-600",children:"*"}),R&&e.jsxRuntimeExports.jsx(e.Nu,{variant:"Right",text:K,theme:"dark",children:e.jsxRuntimeExports.jsx("i",{className:"hx_info-filled"})})]}),M?e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs("div",{className:`hfl-flex hfl-items-center hfl-shadow-xs hfl-px-2 ${X||""} ${N||"hfl-border-1"} hfl-rounded-lg hfl-overflow-x-auto ${t?"hfl-border-Error-300":"hfl-border-Gray-300"} ${E||"hfl-h-10"} ${I?"!hfl-bg-Gray-50 !hfl-pointer-events-none":H||"hfl-bg-White"} hover:hfl-border-Primary-300 hover:hfl-shadow-xs-primary`,onClick:I?()=>{}:me,children:[j?.map((h,O)=>e.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-items-center hfl-bg-Blue-100 hfl-mr-2 hfl-py-1 hfl-px-2 hfl-rounded-sm hfl-font-inter-0 hfl-text-nowrap",children:[e.jsxRuntimeExports.jsx("span",{className:"hfl-pointer-events-none",children:h.label}),e.jsxRuntimeExports.jsx("span",{onClick:J=>{J.stopPropagation(),je(h)},className:"hx_close hfl-text-Gray-500 hfl-my-0 hfl-text-[14px] hfl-ml-[1px] hfl-cursor-pointer"})]},`${h.label}-${O}`)),Object.keys(u||{}).length>0&&e.jsxRuntimeExports.jsx("style",{children:`
2
2
  input.input-placeholder::placeholder {
3
3
  font-family: ${u?.fontFamily};
4
4
  font-weight: ${u?.fontWeight};
@@ -1,9 +1,9 @@
1
- import { j as e, b as $, O as Ee, K as oe, N as Re, d as ue, g as We } from "./index-Bd0CDVpH.js";
1
+ import { j as e, b as $, O as Ee, K as oe, N as Re, d as ue, g as We } from "./index-WgpmO6Qi.js";
2
2
  import be, { createContext as Ge, useContext as Ve, useState as G, useRef as pe, useMemo as re, useCallback as W, useEffect as Q, forwardRef as Pe, useImperativeHandle as Ke } from "react";
3
3
  import { C_MedicineCalculatorList as _e, C_FrequencyDosageMap as Me, C_MedicineTypeList as we, C_MedicineFrequencyList as Se, C_DefaultMgKgFields as Je, C_DefaultMlKgFields as Ye, C_Table_Column_Name as Ue } from "./constants/PediatricsCalculatorConstants/index.js";
4
4
  import { u as Xe } from "./useClickOutside-BjJyGTec.js";
5
5
  import { u as Ze } from "./useOutsideClick-C4Q0aGuf.js";
6
- import { M as Fe } from "./index-T1lUjzhG.js";
6
+ import { M as Fe } from "./index-DaR8OZ5T.js";
7
7
  const Oe = Ge(null), $e = () => {
8
8
  const a = Ve(Oe);
9
9
  if (!a) throw new Error("usePediatricsCalculatorTableContext must be used inside a MedicineTableProvider");
@@ -1,7 +1,7 @@
1
- import { j as jsxRuntimeExports, K as Ku, A as Ap, P as Ps, g as getDefaultExportFromCjs$2, f as getAugmentedNamespace$2, d as commonjsGlobal$1, l as requireObjectAssign, m as PropTypes, b as bs } from "./index-Bd0CDVpH.js";
1
+ import { j as jsxRuntimeExports, K as Ku, A as Ap, P as Ps, g as getDefaultExportFromCjs$2, f as getAugmentedNamespace$2, d as commonjsGlobal$1, l as requireObjectAssign, m as PropTypes, b as bs } from "./index-WgpmO6Qi.js";
2
2
  import React__default, { useState, useEffect, useRef, useCallback, Fragment, memo, createContext, useReducer, forwardRef, useImperativeHandle, useMemo, useContext, useLayoutEffect } from "react";
3
- import { h as hplxAPI, n as E_ENVIRONMENT, q as hplxPHPAPI, s as getDurationFormat, j as isValidDate, m as capitalizeFirstLetter, i as isJson, d as debounceFn } from "./common-utils-DvF5Rjeq.js";
4
- import { d as dayjs } from "./dayjs.min-D52_GdfV.js";
3
+ import { h as hplxAPI, n as E_ENVIRONMENT, q as hplxPHPAPI, s as getDurationFormat, l as isValidDate, m as capitalizeFirstLetter, i as isJson, d as debounceFn } from "./common-utils-CV2JVzIc.js";
4
+ import { d as dayjs } from "./dayjs.min-gQLjWrOd.js";
5
5
  import { g as genderList, D as DefinedLanguages } from "./CommonConstant-Bj7SvPfU.js";
6
6
  import { c as create$6 } from "./index.esm-Bn1Rklqj.js";
7
7
  import { r as requireWarning } from "./warning-BozzKWdr.js";
@@ -22,7 +22,7 @@ function _mergeNamespaces(N, W) {
22
22
  }
23
23
  return Object.freeze(Object.defineProperty(N, Symbol.toStringTag, { value: "Module" }));
24
24
  }
25
- const GET_SERVICE_LIST = "/v1/services", GET_DOCTORS_LIST = "/v1/doctors", GET_BILLS = "/v1/bill", PUT_BILLS = "/v2/bill", GET_PAST_DUE = "v1/bills/pastAmount", GET_BILL_ITEM = "/v1/bills/item", DELETE_BILL_ITEM = "/v2/bills/item", PUT_BILL_ITEM = "v1/bills/items", GET_APPOINTMENTS = "/v1/appointments", GET_BILL_SUMMARY = "v1/bill-summary", GET_VISIT_ALL = "/v2/visit/all", GET_PATIENT_POPUP_VISIT = "/v1/visits", GET_PATIENT_POPUP_HPLXLAB = "v1/labs/patients", GET_BRANCH_PREFERENCE = "/preferences/branch", PUT_APPOINTMENTS = "/v1/appointment", UPDATE_PATIENT_DETAIL = "/v1/patients", GET_REFERREDBY_DOCTOR = "../api/modelGetAddPatientSuggestion.php", ADD_PATIENT_IMAGE = "../api/modelSavePatientImage.php", POST_PAYMENT = "/v2/payments", GET_PAYMENT = "/v1/payments", GET_REFERRAL = "v1/referral", DELETE_TRANSACTION = "/v1/transaction", GET_BILLS_PAYMENTS_BILL_ID = "/v1/bills", GET_ABHA_INFO = "/abha/v1/fetch", GENERATE_OTP_BY_ABHA_ADDRESS = "/abha/v0.5/otp/generate", VERIFY_ABHA_OTP = "/abha/v0.5/otp/verify", GET_ABHA_CONSENT = "/v1/consent/request", GET_INSURANCE_LIST = "v1/partner/insurance-companies", VERIFY_INSURANCE = "v1/insurance/verify", GET_CUSTOM_TRANSLATIONS = "/customTranslations", GET_ONLINE_TEST_RANGES = "/tests/ranges", UPDATE_WALLET = "v1/wallet", GET_IPD_CASE = "../ipd/api/modelCheckIpdCase.php", GET_LIS_BY_ORGBIDSTR = "/v2/lis-reports", SEND_ATTACH_LIS = "v1/partner/lis-reports/share", SEND_EMAIL_SMS = "visit/send/rx", SEND_GOOGLE_REVIEW = "/send/review/google", GET_SINGLE_BILL_PRINT_EMAIL_SEND = "../api/modelBillPdfEmail.php", GET_ALL_BILL_PRINT_EMAIL_SEND = "../api/modelAllBillPdfEmail.php", PATCH_VISIT_PDF_DETAILS = "v1/visits", UPLOAD_FILE = "s3/upload", TAT_LOG = "v1/tat/log", SEND_V2_SMS_EMAIL = "v2/campaign/trigger", GET_HPLX_REPORT_PDF_URL = "../api/modelGenerateLabPdf.php", UPDATE_LAB_REPORT = "v1/lab/test_reports", getCookie = (N) => {
25
+ const GET_SERVICE_LIST = "/v1/services", GET_DOCTORS_LIST = "/v1/doctors", GET_BILLS = "/v1/bill", PUT_BILLS = "/v2/bill", GET_PAST_DUE = "v1/bills/pastAmount", GET_BILL_ITEM = "/v1/bills/item", DELETE_BILL_ITEM = "/v2/bills/item", PUT_BILL_ITEM = "v1/bills/items", GET_APPOINTMENTS = "/v1/appointments", GET_BILL_SUMMARY = "v1/bill-summary", GET_VISIT_ALL = "/v2/visit/all", GET_PATIENT_POPUP_VISIT = "/v1/visits", GET_PATIENT_POPUP_HPLXLAB = "v1/labs/patients", GET_BRANCH_PREFERENCE = "/preferences/branch", PUT_APPOINTMENTS = "/v1/appointment", GET_REFERREDBY_DOCTOR = "../api/modelGetAddPatientSuggestion.php", POST_PAYMENT = "/v2/payments", GET_PAYMENT = "/v1/payments", GET_REFERRAL = "v1/referral", DELETE_TRANSACTION = "/v1/transaction", GET_BILLS_PAYMENTS_BILL_ID = "/v1/bills", GET_ABHA_INFO = "/abha/v1/fetch", GENERATE_OTP_BY_ABHA_ADDRESS = "/abha/v0.5/otp/generate", VERIFY_ABHA_OTP = "/abha/v0.5/otp/verify", GET_ABHA_CONSENT = "/v1/consent/request", GET_INSURANCE_LIST = "v1/partner/insurance-companies", VERIFY_INSURANCE = "v1/insurance/verify", GET_CUSTOM_TRANSLATIONS = "/customTranslations", GET_ONLINE_TEST_RANGES = "/tests/ranges", UPDATE_WALLET = "v1/wallet", GET_IPD_CASE = "../ipd/api/modelCheckIpdCase.php", GET_LIS_BY_ORGBIDSTR = "/v2/lis-reports", SEND_ATTACH_LIS = "v1/partner/lis-reports/share", SEND_EMAIL_SMS = "visit/send/rx", SEND_GOOGLE_REVIEW = "/send/review/google", GET_SINGLE_BILL_PRINT_EMAIL_SEND = "../api/modelBillPdfEmail.php", GET_ALL_BILL_PRINT_EMAIL_SEND = "../api/modelAllBillPdfEmail.php", PATCH_VISIT_PDF_DETAILS = "v1/visits", UPLOAD_FILE = "s3/upload", TAT_LOG = "v1/tat/log", SEND_V2_SMS_EMAIL = "v2/campaign/trigger", GET_HPLX_REPORT_PDF_URL = "../api/modelGenerateLabPdf.php", UPDATE_LAB_REPORT = "v1/lab/test_reports", getCookie = (N) => {
26
26
  const W = N + "=", M = document.cookie.split(";");
27
27
  for (let Y = 0; Y < M.length; Y++) {
28
28
  let X = M[Y];
@@ -121021,19 +121021,17 @@ const PrintPediaChartsPdf = memo(
121021
121021
  ] });
121022
121022
  }, PrintModal$1 = memo(PrintModal);
121023
121023
  export {
121024
- GET_ABHA_CONSENT as A,
121025
- GENERATE_OTP_BY_ABHA_ADDRESS as B,
121026
- ADD_PATIENT_IMAGE as C,
121024
+ GENERATE_OTP_BY_ABHA_ADDRESS as A,
121025
+ PDFViewer as B,
121026
+ Document$1 as C,
121027
121027
  DELETE_BILL_ITEM as D,
121028
- PDFViewer as E,
121028
+ Page$1 as E,
121029
121029
  Font as F,
121030
121030
  GET_DOCTORS_LIST as G,
121031
- Document$1 as H,
121032
- Page$1 as I,
121033
- getLisDataByOrgBidStr as J,
121034
- sendAttachLISReport as K,
121035
- getHplxLabPdfUrl as L,
121036
- sendV2PrintEmailOrSMS as M,
121031
+ getLisDataByOrgBidStr as H,
121032
+ sendAttachLISReport as I,
121033
+ getHplxLabPdfUrl as J,
121034
+ sendV2PrintEmailOrSMS as K,
121037
121035
  PrintModal$1 as P,
121038
121036
  Text as T,
121039
121037
  UPDATE_WALLET as U,
@@ -121056,13 +121054,13 @@ export {
121056
121054
  GET_REFERRAL as o,
121057
121055
  GET_IPD_CASE as p,
121058
121056
  GET_INSURANCE_LIST as q,
121059
- UPDATE_PATIENT_DETAIL as r,
121060
- PUT_APPOINTMENTS as s,
121061
- POST_PAYMENT as t,
121062
- PUT_BILLS as u,
121063
- GET_BILLS_PAYMENTS_BILL_ID as v,
121064
- PUT_BILL_ITEM as w,
121065
- DELETE_TRANSACTION as x,
121066
- GET_PATIENT_POPUP_HPLXLAB as y,
121067
- VERIFY_ABHA_OTP as z
121057
+ PUT_APPOINTMENTS as r,
121058
+ POST_PAYMENT as s,
121059
+ PUT_BILLS as t,
121060
+ GET_BILLS_PAYMENTS_BILL_ID as u,
121061
+ PUT_BILL_ITEM as v,
121062
+ DELETE_TRANSACTION as w,
121063
+ GET_PATIENT_POPUP_HPLXLAB as x,
121064
+ VERIFY_ABHA_OTP as y,
121065
+ GET_ABHA_CONSENT as z
121068
121066
  };