hplx-feature-library 1.0.308 → 1.0.310

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-BPjQvoDr.cjs → APIAction-BC572SUh.cjs} +1 -1
  2. package/dist/{APIAction-Cn6CnUPj.js → APIAction-Dh1jeN3Q.js} +2 -2
  3. package/dist/AllInvestigations/index.js +1 -1
  4. package/dist/{AllInvestigationsTable-o7sUrypz.js → AllInvestigationsTable-6WZYLxgn.js} +121 -121
  5. package/dist/AllInvestigationsTable-IN3Gv1wb.cjs +80 -0
  6. package/dist/Attachments/index.js +1 -1
  7. package/dist/Attachments-C5eZR_b9.cjs +186 -0
  8. package/dist/{Attachments-Bl0Bb93j.js → Attachments-Ddu-Ak3N.js} +36 -36
  9. package/dist/NineDots/index.js +1 -1
  10. package/dist/{NineDots-BenIdNn6.cjs → NineDots-CEKYCz_l.cjs} +1 -1
  11. package/dist/{NineDots-BovmR9lR.js → NineDots-CZxm95h0.js} +1 -1
  12. package/dist/PatientAddEdit/index.js +1 -1
  13. package/dist/{PatientAddEdit-BsvMkDPi.js → PatientAddEdit-Bsa6mPrj.js} +5 -5
  14. package/dist/{PatientAddEdit-CiUyGlRS.cjs → PatientAddEdit-CtM4xbMa.cjs} +1 -1
  15. package/dist/PatientPopup/index.js +1 -1
  16. package/dist/PatientPopupContainer-DOJniw5Q.cjs +36 -0
  17. package/dist/{PatientPopupContainer-BjejzoZp.js → PatientPopupContainer-VaUWBPAN.js} +512 -512
  18. package/dist/PediatricsCalculator/index.js +1 -1
  19. package/dist/{PediatricsCalculatorTable-CoHNZcKB.js → PediatricsCalculatorTable-Bsotwgba.js} +2 -2
  20. package/dist/{PediatricsCalculatorTable-Bfnfpscv.cjs → PediatricsCalculatorTable-C59lNMNS.cjs} +1 -1
  21. package/dist/{PrintModal-BYaI_gvN.cjs → PrintModal-D8CPsVQ6.cjs} +46 -46
  22. package/dist/{PrintModal-Dnu4I6Bq.js → PrintModal-DAhX2jNv.js} +587 -587
  23. package/dist/SearchPatients/index.js +1 -1
  24. package/dist/{SearchPatients-BURn-eU9.cjs → SearchPatients-1FVfZoeQ.cjs} +1 -1
  25. package/dist/{SearchPatients-BTmBvIpk.js → SearchPatients-tEIv_TBu.js} +3 -3
  26. package/dist/UserProfile/index.js +1 -1
  27. package/dist/{UserProfile-D9u7TGPM.js → UserProfile-CXotmcbO.js} +4 -4
  28. package/dist/{UserProfile-BcdsuEnn.cjs → UserProfile-DeVg1Gym.cjs} +1 -1
  29. package/dist/{common-utils-BmJs-CNu.cjs → common-utils-D1ID7-VY.cjs} +1 -1
  30. package/dist/{common-utils-fQX0KRKT.js → common-utils-P_6EPLut.js} +1 -1
  31. package/dist/{dayjs.min-Dx50Uhvr.js → dayjs.min-CI-igRZR.js} +15 -15
  32. package/dist/dayjs.min-Dq_-qqjW.cjs +1 -0
  33. package/dist/hplx-feature-library.css +1 -1
  34. package/dist/index-C8nmTIgQ.cjs +102 -0
  35. package/dist/{index-DPIXOYYJ.js → index-CJFGOBPb.js} +2 -2
  36. package/dist/{index-Cuk4eOa2.js → index-D9tHKxGo.js} +19 -19
  37. package/dist/index-DfcUmlge.cjs +17 -0
  38. package/dist/{index-D-5bovl6.js → index-Ku_Lrm51.js} +565 -565
  39. package/dist/index-fA2CtGkU.cjs +32 -0
  40. package/dist/index.js +9 -9
  41. package/dist/print-pdf/index.js +1 -1
  42. package/package.json +2 -2
  43. package/dist/AllInvestigationsTable-DKMxC37E.cjs +0 -80
  44. package/dist/Attachments-DP1L4bRq.cjs +0 -186
  45. package/dist/PatientPopupContainer-CNb0MKZc.cjs +0 -36
  46. package/dist/dayjs.min-QUFnA3Sz.cjs +0 -1
  47. package/dist/index-83gl7aAu.cjs +0 -32
  48. package/dist/index-D-bucTJp.cjs +0 -102
  49. package/dist/index-Dsi-BJd2.cjs +0 -17
@@ -1 +1 @@
1
- "use strict";const c=require("./common-utils-BmJs-CNu.cjs"),P=require("./dayjs.min-QUFnA3Sz.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
+ "use strict";const c=require("./common-utils-D1ID7-VY.cjs"),P=require("./dayjs.min-Dq_-qqjW.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-fQX0KRKT.js";
2
- import { d as l } from "./dayjs.min-Dx50Uhvr.js";
1
+ import { h as p, R as i, b as d, c as P } from "./common-utils-P_6EPLut.js";
2
+ import { d as l } from "./dayjs.min-CI-igRZR.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,4 +1,4 @@
1
- import { A as f } from "../AllInvestigationsTable-o7sUrypz.js";
1
+ import { A as f } from "../AllInvestigationsTable-6WZYLxgn.js";
2
2
  export {
3
3
  f as default
4
4
  };