hplx-feature-library 1.0.320 → 1.0.321
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.
- package/dist/{APIAction-4R25WW2g.cjs → APIAction-0rLQ4PHF.cjs} +1 -1
- package/dist/{APIAction-jzgObBu4.js → APIAction-Dcn3XM-m.js} +2 -2
- package/dist/AllInvestigations/index.js +1 -1
- package/dist/{AllInvestigationsTable-DFG6PzyF.js → AllInvestigationsTable-CmJTQP2C.js} +2 -2
- package/dist/{AllInvestigationsTable-CrJ4AJdo.cjs → AllInvestigationsTable-DeWdOst4.cjs} +1 -1
- package/dist/Attachments/index.js +1 -1
- package/dist/{Attachments-DscMe8ZD.cjs → Attachments-BnounSRo.cjs} +1 -1
- package/dist/{Attachments-BwSjIFan.js → Attachments-DdCoyN_x.js} +1 -1
- package/dist/NineDots/index.js +1 -1
- package/dist/{NineDots-CDoWX9g8.cjs → NineDots-DM7M9i8N.cjs} +1 -1
- package/dist/{NineDots-BHRkMivu.js → NineDots-D_W6IUL_.js} +1 -1
- package/dist/PatientAddEdit/index.js +1 -1
- package/dist/{PatientAddEdit-WITRBHBI.cjs → PatientAddEdit-Blls1e9Q.cjs} +1 -1
- package/dist/{PatientAddEdit-D837qHrC.js → PatientAddEdit-D6WiHRt_.js} +5 -5
- package/dist/PatientPopup/index.js +1 -1
- package/dist/{PatientPopupContainer-Dh5xjeUD.js → PatientPopupContainer-BQoLia5u.js} +389 -386
- package/dist/{PatientPopupContainer-F_C4B0cO.cjs → PatientPopupContainer-CDAsGDa9.cjs} +7 -7
- package/dist/PediatricsCalculator/index.js +1 -1
- package/dist/{PediatricsCalculatorTable-awqyE356.js → PediatricsCalculatorTable-TJeJlcEq.js} +2 -2
- package/dist/{PediatricsCalculatorTable-CV23H_7C.cjs → PediatricsCalculatorTable-kvH7TaMd.cjs} +1 -1
- package/dist/{PrintModal-B_bzErZW.cjs → PrintModal-CACStf0f.cjs} +4 -4
- package/dist/{PrintModal-XBI_Rm1M.js → PrintModal-CR0BPbwZ.js} +3 -3
- package/dist/SearchPatients/index.js +1 -1
- package/dist/{SearchPatients-DSPPIp0K.js → SearchPatients-CyqB_I0i.js} +3 -3
- package/dist/{SearchPatients-COBd6WAT.cjs → SearchPatients-GJqYi8ym.cjs} +1 -1
- package/dist/UserProfile/index.js +1 -1
- package/dist/{UserProfile-p4l2HAx0.cjs → UserProfile-BIAgsyag.cjs} +1 -1
- package/dist/{UserProfile-CZj99wpH.js → UserProfile-B_0H-h2m.js} +4 -4
- package/dist/{common-utils-DvxWGiX-.cjs → common-utils-As5_LEt3.cjs} +1 -1
- package/dist/{common-utils-Bj3UQszd.js → common-utils-BgxxqI8O.js} +1 -1
- package/dist/{dayjs.min-BawXyS7V.cjs → dayjs.min--kEce7p-.cjs} +1 -1
- package/dist/{dayjs.min-DEuEIfhE.js → dayjs.min-DZc7-mrk.js} +1 -1
- package/dist/{index-CZONCDCp.cjs → index-BUAd-2dO.cjs} +1 -1
- package/dist/{index-DN7adyT-.js → index-Byd3zfUb.js} +1 -1
- package/dist/{index-D5vZvm7Z.cjs → index-m-TIhR9M.cjs} +18 -18
- package/dist/{index-CAhkB6R3.js → index-m95hZ8gA.js} +3 -3
- package/dist/index.js +9 -9
- package/dist/print-pdf/index.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("./common-utils-
|
|
1
|
+
"use strict";const c=require("./common-utils-As5_LEt3.cjs"),P=require("./dayjs.min--kEce7p-.cjs"),A="/preferences/doctor",h="/preferences/visitpad",m="/preferences/branch",_="patient/search",u="../api/modelGetAddPatientSuggestion.php",g="appointments/get",f="/v1/patient/add",l="/v1/patients",d="../api/modelSavePatientImage.php",T="../api/modelDeletePatientImage.php",E="/patient/detail",I="../api/modelSendRegisterOtp.php",D="../api/modelVerifyRegisterOtp.php",w=async(r="",n={},e,t,o)=>{const{doc_rid:s=""}=n;let a="";Array.isArray(r)?a=r.map(i=>`&fields_required=${encodeURIComponent(i)}`).join(""):r&&(a=`&fields_required=${encodeURIComponent(r)}`);try{const i=await c.hplxAPI(o?.token,o.envName).get(`${A}/${s||e}?branch_id=${t}`+a),{data:p}=i||{};return Promise.resolve(p)}catch(i){return console.error("Error fetching doctor preference:",i),Promise.reject(i)}},N=async(r="",n,e)=>{try{const t=await c.ReArchAPI(e.token,e.envName).get(`${m}/${n}?fields_required=${r}`),{data:o}=t||{};return Promise.resolve(o)}catch(t){return console.log(t),Promise.reject(t)}},y=async(r,n,e)=>{try{let t="";Array.isArray(r)?t=r.map(i=>`fields_required=${encodeURIComponent(i)}`).join("&"):r&&(t=`fields_required=${encodeURIComponent(r)}`);const o=`v2${m}/${n}?${t}`,s=await c.ReArchAPI(e.token,e.envName).get(o),{data:a}=s||{};return Promise.resolve(a)}catch(t){return console.error("Error fetching branch preference:",t),Promise.reject(t)}},R=async(r,n,e,t,o)=>{try{const s={appnt_date:r,doctor_role_id:n,doctor_id:t,org_branch_id:e},a=await c.ReArchAPI(o.token,o.envName).post(g,{...s}),{data:i}=a||{};return Promise.resolve(i)}catch(s){return s instanceof Error&&console.error("Error fetching appointments:",s.message),s?.response?.status===401&&c.handle401Status(),Promise.reject(s)}},C=async(r,n)=>{let e=[];const t=await R(P.dayjs().format("YYYY-MM-DD"),r.doctor_role_id,r.branch_id,r.doctor_id,n);t?.appointments?.length&&(e=t.appointments),window.filteredUpcomingAppts=[],e.length&&(r.term?.length?window.filteredUpcomingAppts=e.filter(o=>o.org_person_name.length&&o.org_person_name.toLowerCase().includes(r.term.toLowerCase())&&o.appnt_date>=P.dayjs(new Date).format("YYYY-MM-DD")&&(o.remote_appnt_status==="CONFIRMED"||o.appnt_status===0||o.appnt_status===3||o.appnt_status===5)):window.filteredUpcomingAppts=e.filter(o=>o.appnt_date>=P.dayjs(new Date).format("YYYY-MM-DD")&&(o.remote_appnt_status==="CONFIRMED"||o.appnt_status===0||o.appnt_status===3||o.appnt_status===5)));try{const o=await c.ReArchAPI(n.token,n.envName).post(_,r),{data:s}=o||{};return Promise.resolve(s)}catch(o){return console.log(o),null}},v=async r=>{try{const n=await c.hplxAPI(r.token,r.envName).post(u),{data:e}=n||{},{apiError:t}=e||{};if(t)throw new Error(t);return Promise.resolve(e)}catch(n){return n instanceof Error&&console.error("Error fetching referred by list:",n.message),n?.response?.status===401&&c.handle401Status(),Promise.reject(n)}},j=async(r,n)=>{try{const e=await c.ReArchAPI(n.token,n.envName).post(f,{...r,token:n.token}),{data:t}=e||{};return Promise.resolve(t)}catch(e){return Promise.reject(e)}},O=async(r,n)=>{try{const e=await c.ReArchAPI(n.token,n.envName).put(l+"/"+r?.person_role_id,{...r}),{data:t}=e||{};return Promise.resolve(t)}catch(e){return console.log(e),Promise.reject(e)}},S=async(r,n)=>{try{const e=await c.hplxAPI(n.token,n.envName).post(d,r),{data:t}=e||{};return Promise.resolve(t)}catch(e){return console.log(e),Promise.reject(e)}},L=async(r,n)=>{try{const e=await c.hplxAPI(n.token,n.envName).post(T,r),{data:t}=e||{};return Promise.resolve(t)}catch(e){return console.log(e),Promise.reject(e)}},Y=async({callback:r,payload:n,token_env:e,isCallbackNeeded:t=!0})=>{try{const o=n;window?.partner_service_enabled==="1"&&(o.partner_service_enabled=!0);const s=await c.ReArchAPI(e.token,e.envName).post(E,{...o}),{data:a}=s||{},{error:i}=a||{};if(i)throw new Error(i);if(t)r(a);else return a}catch(o){console.log(o)}},$=async({doc_id:r="",doc_rid:n=""},e,t,o,s)=>{try{const a={branch_id:t,doctor_id:r||o,doctor_role_id:n||s},i=await c.hplxAPI(e.token,e.envName).post(h,a),{data:p}=i||{};return Promise.resolve(p)}catch(a){return console.error("Error fetching visitpad preference:",a),Promise.reject(a)}},G=async(r,n)=>{try{const e=new URLSearchParams;e.append("reg_mobile_number",r);const t=await c.hplxPHPAPI(n.token,n.envName).post(I,e,{headers:{"Content-Type":"application/x-www-form-urlencoded"}});return Promise.resolve(t?.data)}catch(e){return console.log(e),Promise.reject(e)}},M=async(r,n,e)=>{try{const t=new URLSearchParams;t.append("reg_mobile_number",r),t.append("reg_mobile_otp",n);const o=await c.hplxPHPAPI(e.token,e.envName).post(D,t,{headers:{"Content-Type":"application/x-www-form-urlencoded"}});return Promise.resolve(o?.data)}catch(t){return console.log(t),Promise.reject(t)}};exports.ADD_PATIENT_IMAGE=d;exports.GET_PATIENT_DETAILS=E;exports.UPDATE_PATIENT_DETAIL=l;exports.addPatientDetails=j;exports.addPatientImage=S;exports.deletePatientImage=L;exports.getBranchPreferences=N;exports.getDoctorPreference=w;exports.getPatientDetails=Y;exports.getPatientList=C;exports.getReferredByList=v;exports.getV2BranchPreference=y;exports.getVisitpadPreference=$;exports.patientConsentOTPVerification=M;exports.patientConsentSendOTP=G;exports.updatePatientDetails=O;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as p, R as i, b as d, c as P } from "./common-utils-
|
|
2
|
-
import { d as l } from "./dayjs.min-
|
|
1
|
+
import { h as p, R as i, b as d, c as P } from "./common-utils-BgxxqI8O.js";
|
|
2
|
+
import { d as l } from "./dayjs.min-DZc7-mrk.js";
|
|
3
3
|
const u = "/preferences/doctor", _ = "/preferences/visitpad", E = "/preferences/branch", f = "patient/search", g = "../api/modelGetAddPatientSuggestion.php", h = "appointments/get", T = "/v1/patient/add", A = "/v1/patients", w = "../api/modelSavePatientImage.php", N = "../api/modelDeletePatientImage.php", I = "/patient/detail", y = "../api/modelSendRegisterOtp.php", D = "../api/modelVerifyRegisterOtp.php", j = async (r = "", o = {}, e, t, s) => {
|
|
4
4
|
const { doc_rid: n = "" } = o;
|
|
5
5
|
let a = "";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as S, K as Gn, b as Yn, O as J1, g as qt, i as F8 } from "./index-
|
|
1
|
+
import { j as S, K as Gn, b as Yn, O as J1, g as qt, i as F8 } from "./index-m95hZ8gA.js";
|
|
2
2
|
import { E_INVESTIGATIONS_SOURCE as z8 } from "./types/AllInvestigationTypes/index.js";
|
|
3
3
|
import * as w from "react";
|
|
4
4
|
import M2, { createContext as ht, useContext as yr, useMemo as dn, useState as ce, useRef as ne, useEffect as oe, useCallback as X, isValidElement as wt, Children as Kn, forwardRef as pt, PureComponent as Da, cloneElement as Wt, createElement as ec, useImperativeHandle as q8, Component as j2, useLayoutEffect as tc } from "react";
|
|
5
5
|
import { createPortal as rc } from "react-dom";
|
|
6
|
-
import { d as Vn } from "./dayjs.min-
|
|
6
|
+
import { d as Vn } from "./dayjs.min-DZc7-mrk.js";
|
|
7
7
|
import { c as Q } from "./clsx-OuTLNxxd.js";
|
|
8
8
|
import { r as nc } from "./index-CJFGOBPb.js";
|
|
9
9
|
import { u as W8 } from "./useClickOutside-BjJyGTec.js";
|