@eka-care/abha 0.0.15 → 0.0.16

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.
@@ -14,7 +14,7 @@ var og=e=>{throw TypeError(e)};var Jc=(e,t,n)=>t.has(e)||og("Cannot "+n);var V=(
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var wb=p,_b=Symbol.for("react.element"),xb=Symbol.for("react.fragment"),bb=Object.prototype.hasOwnProperty,Sb=wb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Eb={key:!0,ref:!0,__self:!0,__source:!0};function Ly(e,t,n){var r,a={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)bb.call(t,r)&&!Eb.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)a[r]===void 0&&(a[r]=t[r]);return{$$typeof:_b,type:e,key:i,ref:s,props:a,_owner:Sb.current}}ic.Fragment=xb;ic.jsx=Ly;ic.jsxs=Ly;Ay.exports=ic;var m=Ay.exports,Mt=(e=>(e.ABHA_END="abha_end",e.CONFIRM_MOBILE_OTP="confirm_mobile_otp",e.ABHA_CREATE="abha_create",e.ABHA_SELECT="abha_select",e))(Mt||{}),ta=(e=>(e.PRACTO="Practo",e.COVID_CONNECT="Covid-Connect",e.CORPORATE_CONNECT="Corporate-Connect",e.SPHERE_INDIA_PSYCHOLOGY="SPPS",e.SPHERE_INDIA_COVID="SPCO",e.TALK_TO_DOCTOR="TTD",e.SECOND_OPINION="SECO",e.EMERGENCY="EMCY",e.CORPORATE_CONNECT_INIT="CC-Init",e.WALKIN="Walkin",e.WALKINQR="Walkin-Scan",e.OFFLINE="Offline",e.ON_PAD="ON-PAD",e.UHI_HPD="UHI_HPD",e.UHI_DCM="UHI_DCM",e.IVR="IVR",e.STAFF="Staff",e.DOCTOR="Doctor",e.FOLLOW_UP="FOLLOW-UP",e.ONLINE_APPOINTMENT="Online-Appointment",e.PACKAGE="PACKAGE",e.PATIENT_REQUESTED="Patient-Requested",e))(ta||{}),_e=(e=>(e.CANCELLED="CN",e.ABORTED="AB",e.NO_SHOW="NS",e.NO_SHOW_DOCTOR="NSD",e.NO_SHOW_STAFF="NSS",e.COMPLETED="CM",e.RESCHEDULED="RE",e.ONGOING="OG",e.BOOKED="BK",e.PARKED="PA",e.PROVISIONAL_CANCELLED="PC",e.COMPLETED_NO_PRESCRIPTION="CMNP",e.DOCTOR_RESCHEDULED="RED",e.DOCTOR_CANCELLED="CND",e.STAFF_RESCHEDULED="RES",e.STAFF_CANCELLED="CNS",e.PAYMENT_NOT_RECEIVED="PNR",e.INITIATED="IN",e.RESERVED="RV",e.CHECKED_IN="CK",e))(_e||{});const Cb=new Set(["BK","PA"]),Ab=["CM","CMNP"],kb=["CN","CNS","CND","RE","RES","RED","AB","NS","NSD","NSS"],Nb=["IN","RV","PC","RE"],Rb=new Set(Ab),Ob=new Set(Nb),Tb=new Set(kb),Pb=new Set(["CK","OG"]);[...Array.from(Rb),...Array.from(Ob),...Array.from(Cb),...Array.from(Pb),...Array.from(Tb)];var el=(e=>(e[e.EMAIL=1]="EMAIL",e[e.MOBILE=2]="MOBILE",e[e.ABHA=7]="ABHA",e))(el||{}),q=(e=>(e.IDLE="IDLE",e.LOADING="LOADING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED",e))(q||{}),X=(e=>(e.PHR_ADDRESS="phr_address",e.MOBILE="mobile",e.ABHA_NUMBER="abha_number",e.AADHAR_NUMBER="aadhaar_number",e.REGISTRATION_TYPE="registration_type",e))(X||{}),Ln=(e=>(e.LOGIN="login",e.CREATE="create",e))(Ln||{}),Zd=(e=>(e.PERCENTAGE="PERCENTAGE",e.AMOUNT="AMOUNT",e))(Zd||{}),yt=(e=>(e.CASH="CASH",e.UPI="UPI",e.DEBIT_CARD="DEBIT_CARD",e.GPAY="GPAY",e.PAYTM="PAYTM",e.CREDIT_CARD="CREDIT_CARD",e.OTHER="OTHER",e.EKA_POSTPAY="EKA_POSTPAY",e.EKA_PREPAID="EKA_PREPAID",e.EKA_WALLET="EKA_WALLET",e))(yt||{}),Xt=(e=>(e.CASH="Cash",e.UPI="UPI",e.DEBIT_CARD="Debit Card",e.GPAY="GPay",e.PAYTM="Paytm",e.CREDIT_CARD="Credit Card",e.OTHER="Other",e.EKA_POSTPAY="Eka Payment",e.EKA_PREPAID="Eka Prepaid",e))(Xt||{}),Ba=(e=>(e.TAGS="TAGS",e.VISIT_TYPE="VITY",e.PAYMENT_STATUS="PAYS",e.ASSESSMENT_STATUS="ASST",e.PAST_VISITS="PRES",e.CREATE_ABHA="ABHA",e.ADD_VITALS_AND_LAB_RESULTS="AVLR",e.ADD_ADDRESS="ADDR",e.REQUEST_RECORDS="RMDR",e.REQUEST_PAYMENT="REQP",e.ARCHIVE_APPOINTMENT="AAPT",e.CREATE_CERTIFICATE="CRMC",e.REFER_TO_DOCTOR="RTOD",e.SEND_GOOGLE_REVIEW_LINK="SGRL",e.MARK_NO_SHOW="MNSH",e.CREATE_TEMPLATE="CATP",e.FOLLOW_UP="FLWU",e.ABHA_ID="ABHA_ID",e.UPLOAD_MEDICAL_RECORDS="UPMR",e.RESUME="RESUME",e.CHECK_IN="CHECK_IN",e.EXIT="EXIT",e.WRITE_RX="WRITE_RX",e.START_VISIT="START_VISIT",e.RECEIPT="RECEIPT",e.ORDER_MEDICINE="ORDER_MEDICINE",e.PRINT_RX="PRINT_RX",e.QUESTIONAIRE="SAQU",e.LABEL="LABEL",e))(Ba||{});_e.BOOKED,_e.PARKED;_e.CHECKED_IN,_e.ONGOING;_e.COMPLETED,_e.COMPLETED_NO_PRESCRIPTION;_e.CANCELLED,_e.STAFF_CANCELLED,_e.DOCTOR_CANCELLED,_e.RESCHEDULED,_e.STAFF_RESCHEDULED,_e.DOCTOR_RESCHEDULED,_e.ABORTED,_e.NO_SHOW,_e.NO_SHOW_DOCTOR,_e.NO_SHOW_STAFF;_e.INITIATED,_e.RESERVED,_e.PROVISIONAL_CANCELLED,_e.RESCHEDULED;Xt.CASH,yt.CASH,yt.CASH,Xt.CREDIT_CARD,yt.CREDIT_CARD,yt.CREDIT_CARD,Xt.DEBIT_CARD,yt.DEBIT_CARD,yt.DEBIT_CARD,Xt.PAYTM,yt.PAYTM,yt.PAYTM,Xt.GPAY,yt.GPAY,yt.GPAY,Xt.UPI,yt.UPI,yt.UPI,Xt.OTHER,yt.OTHER,yt.OTHER;yt.CASH,Xt.CASH,yt.CREDIT_CARD,Xt.CREDIT_CARD,yt.DEBIT_CARD,Xt.DEBIT_CARD,yt.PAYTM,Xt.PAYTM,yt.GPAY,Xt.GPAY,yt.UPI,Xt.UPI,yt.OTHER,Xt.OTHER;Zd.AMOUNT,Zd.PERCENTAGE;_e.CANCELLED,_e.ABORTED,_e.ONGOING,_e.COMPLETED,_e.RESCHEDULED,_e.BOOKED,_e.CHECKED_IN,_e.NO_SHOW,_e.INITIATED;_e.COMPLETED_NO_PRESCRIPTION+"",_e.COMPLETED,_e.DOCTOR_CANCELLED+"",_e.CANCELLED,_e.STAFF_CANCELLED+"",_e.CANCELLED,_e.NO_SHOW_DOCTOR+"",_e.NO_SHOW,_e.NO_SHOW_STAFF+"",_e.NO_SHOW,_e.DOCTOR_RESCHEDULED+"",_e.RESCHEDULED,_e.STAFF_RESCHEDULED+"",_e.RESCHEDULED;ta.WALKIN,ta.FOLLOW_UP,ta.PATIENT_REQUESTED,ta.OFFLINE,ta.STAFF,ta.DOCTOR,ta.ONLINE_APPOINTMENT;Ba.TAGS,Ba.VISIT_TYPE,Ba.RECEIPT,Ba.CREATE_ABHA,Ba.ADD_VITALS_AND_LAB_RESULTS,Ba.UPLOAD_MEDICAL_RECORDS;const Iy={AORTA_HOST:"https://auth.eka.care",AORTA_GO_HOST:"https://aortago.eka.care",TRYST_HOST:"https://tryst.eka.care",AXON_HOST:"https://axon.eka.care",PARCHI_HOST:"https://parchi.eka.care",CURIO_HOST:"https://eka.care",AVATAR_HOST:"https://a.eka.care",PTDIR_HOST:"https://ptdir.eka.care",TELE_HOST:"https://mweb.eka.care",METROLPOLIS_HOST:"https://consultation.metropolisindia.com",LUCID_WS_HOST:"https://lucid-ws.eka.care",LUCID_HOST:"https://lucid.eka.care",DEEPTHOUGHT_HOST:"https://deepthought.eka.care",NDHM_HOST:"https://ndhm.eka.care",LOGIN_HOST:"https://login.eka.care",HUB:"https://hub.eka.care"},Xp={AORTA_HOST:"https://aorta.dev.eka.care",AORTA_GO_HOST:"https://aortago.dev.eka.care",TRYST_HOST:"https://tryst.dev.eka.care",AXON_HOST:"https://axon.dev.eka.care",PARCHI_HOST:"https://parchi.dev.eka.care",CURIO_HOST:"https://curio.dev.eka.care",AVATAR_HOST:"https://eka-avatar.dev.eka.care",PTDIR_HOST:"https://ptdir.dev.eka.care",TELE_HOST:"https://mweb.dev.eka.care",METROLPOLIS_HOST:"https://consultation.metropolisindia.com",LUCID_WS_HOST:"https://lucid-ws.dev.eka.care",LUCID_HOST:"https://lucid.dev.eka.care",DEEPTHOUGHT_HOST:"https://deepthought.dev.eka.care",NDHM_HOST:"https://ndhm.dev.eka.care",LOGIN_HOST:"https://login.dev.eka.care",HUB:"https://hub.dev.eka.care"};let sc=Xp,Jp="",wu=null,Fy="DEV";const Mb=({env:e,clientId:t,extraHeaders:n})=>{sc=e==="PROD"?Iy:Xp,Fy=e,Jp=t,n&&(wu=n)},qi=({clientId:e,env:t,extraHeaders:n})=>{e&&(Jp=e),t&&(sc=t==="PROD"?Iy:Xp),n&&(wu={...wu,...n})},Zp=()=>Fy,vi=()=>sc.AORTA_GO_HOST,Ot=()=>sc.NDHM_HOST,jy=()=>Jp,Vn=()=>wu;function Db({data:e}){typeof window<"u"&&(window.mxpDataLayer=window.mxpDataLayer||[],window.mxpDataLayer.push(e))}function dg({category:e="api-failed",url:t,params:n}){Db({data:{name:e,data:{url:t,...n}}}),{...n}}async function Lb(){if(await Ib())return!0;const t=new Headers;t.append("Content-Type","application/json"),t.set("client-id",jy());const n=JSON.stringify({}),r={method:"POST",headers:t,body:n,redirect:"follow",credentials:"include",mode:"cors"};try{const a=vi();if((await fetch(`${a}/emr/v3/auth/refresh`,{...r,body:JSON.stringify({})})).status===401)return!1}catch{return!1}return!0}async function at(e,t={},n=!0){var r,a;try{const i=((a=(r=window==null?void 0:window.Eka)==null?void 0:r.getSessionToken)==null?void 0:a.call(r))||"",s=new Headers(t.headers);let o,l;s.get("client-id")||s.set("client-id",jy()),i&&!s.get("auth")&&s.set("auth",i);const u=Vn();u&&Object.keys(u).forEach(d=>{s.set(d,u[d])});const c=await fetch(e,{...t,headers:s});return window&&(l=window.location.pathname,o=s.get("client-id")),c.status===401&&n&&await Lb()?await at(e,t,!1):(c.status>401&&dg({url:e,params:{responseStatus:c.status}}),c)}catch(i){throw dg({url:e,params:{error:`${i.message||i}`}}),console.error(i),i}}let _u=[];async function fg(e){_u.forEach(t=>t(!0)),_u=[]}async function Ib(){var e,t,n,r,a,i;if(typeof window<"u"){if(typeof((e=window==null?void 0:window.Eka)==null?void 0:e.updateToken)=="function")return(t=window.parent)==null||t.postMessage({type:"REFRESH_TOKEN"},"*"),window.refreshCallback=window.refreshCallback||fg,new Promise(s=>{var o;_u.push(s),(o=window==null?void 0:window.Eka)==null||o.updateToken("refreshCallback")});if(typeof((a=(r=(n=window==null?void 0:window.webkit)==null?void 0:n.messageHandlers)==null?void 0:r.statusCodeHandler)==null?void 0:a.postMessage)=="function")return(i=window.parent)==null||i.postMessage({type:"REFRESH_TOKEN"},"*"),window.refreshCallback=window.refreshCallback||fg,new Promise(s=>{var o,l,u;_u.push(s),(u=(l=(o=window==null?void 0:window.webkit)==null?void 0:o.messageHandlers)==null?void 0:l.statusCodeHandler)==null||u.postMessage(JSON.stringify({status:401}))})}return!1}async function eh({method:e,identifier:t}){const n=new Headers;n.append("Content-Type","application/json");const r=JSON.stringify({method:e,identifier:t}),a={method:"POST",headers:n,body:r,redirect:"follow",credentials:"include"};try{const i=vi();return await(await at(`${i}/v2/auth/init`,a)).json()}catch(i){console.error(i)}return{}}async function th({txn_id:e,code:t,token:n}){const r=new Headers;r.append("Content-Type","application/json");const a=JSON.stringify({txn_id:e,...t?{code:t}:{},...n?{token:n}:{}}),i={method:"POST",headers:r,body:a,redirect:"follow",credentials:"include"};try{const s=vi();return await(await at(`${s}/v2/auth/verify`,i)).json()}catch(s){console.error(s)}return{}}async function Fb(){const e=new Headers;e.append("Content-Type","application/json");const t={method:"GET",headers:e,redirect:"follow",credentials:"include"};try{const n=vi();return await(await at(`${n}/profiles/v1/patient`,t)).json()}catch(n){return console.error("profilePhrUser error =>",n),[]}}async function jb(){const e=new Headers;e.append("Content-Type","application/json");const t={method:"GET",headers:e,redirect:"follow",credentials:"include"},n=Vn(),r=n==null?void 0:n["X-User-ID"];if(!r)return{};try{const a=vi();return await(await at(`${a}/profiles/v1/patient/${r}`,t)).json()}catch(a){return console.error("profilePhrUser error =>",a),{}}}async function Hb({oid:e}){const t=new Headers;t.append("Content-Type","application/json");const n=JSON.stringify({oid:e}),r={method:"POST",headers:t,body:n,redirect:"follow",credentials:"include"};try{const a=vi();return await(await at(`${a}/v1/profile/switch`,r)).json()}catch(a){console.error("postProfileSwitchError: ",a)}return{}}async function nh(){console.log("inside postAuthLogoutV2 api call");const e=new Headers;e.append("Content-Type","application/json");const t=JSON.stringify({}),r=`${vi()}/v2/auth/logout`,a={method:"POST",headers:e,body:t,redirect:"follow",credentials:"include"};try{const i=await at(r,a);return i.ok?!0:(console.log("Logout failed with status",i==null?void 0:i.status),!1)}catch(i){return console.error("Logout API failed:",i),!1}}async function rh({method:e,identifier:t}){const n=new Headers;n.append("Content-Type","application/json");const r=JSON.stringify({method:e,identifier:t}),a={method:"POST",headers:n,body:r,redirect:"follow",credentials:"include"};try{const i=Ot();return await(await at(`${i}/abdm/na/v1/profile/login/init`,a)).json()}catch(i){console.error("postAbdmLoginInit error =>",i)}return{}}async function $b({txn_id:e,otp:t}){const n=new Headers;n.append("Content-Type","application/json");const r=JSON.stringify({txn_id:e,otp:t}),a={method:"POST",headers:n,body:r,redirect:"follow",credentials:"include"};try{const i=Ot();return await(await at(`${i}/abdm/na/v1/profile/login/verify`,a)).json()}catch(i){console.error("postAbdmLoginVerify error =>",i)}return{}}async function ah({aadhaar_number:e}){const t=new Headers;t.append("Content-Type","application/json");const n=JSON.stringify({aadhaar_number:e}),r={method:"POST",headers:t,body:n,redirect:"follow",credentials:"include"};try{const a=Ot();return await(await at(`${a}/abdm/na/v1/registration/aadhaar/init`,r)).json()}catch{}return{}}async function ih({mobile_number:e}){const t=new Headers;t.append("Content-Type","application/json");const n=JSON.stringify({mobile_number:e}),r={method:"POST",headers:t,body:n,redirect:"follow",credentials:"include"};try{const a=Ot();return await(await at(`${a}/abdm/na/v1/registration/mobile/init`,r)).json()}catch(a){console.error(a)}return{}}async function Vb({txn_id:e,mobile:t,otp:n}){const r=new Headers;r.append("Content-Type","application/json");const a=JSON.stringify({txn_id:e,mobile:t,otp:n}),i={method:"POST",headers:r,body:a,redirect:"follow",credentials:"include"};try{const s=Ot();return await(await at(`${s}/abdm/na/v1/registration/aadhaar/verify`,i)).json()}catch{}return{}}async function Bb({txn_id:e,otp:t}){const n=new Headers;n.append("Content-Type","application/json");const r=JSON.stringify({txn_id:e,otp:t}),a={method:"POST",headers:n,body:r,redirect:"follow",credentials:"include"};try{const i=Ot();return await(await at(`${i}/abdm/na/v1/registration/aadhaar/mobile/verify`,a)).json()}catch{}return{}}async function Ub({txn_id:e}){const t=new Headers;t.append("Content-Type","application/json");const n=JSON.stringify({txn_id:e}),r={method:"POST",headers:t,body:n,redirect:"follow",credentials:"include"};try{const a=Ot();return await(await at(`${a}/abdm/na/v1/registration/aadhaar/resend`,r)).json()}catch{}return{}}async function zb({txn_id:e}){const t=new Headers;t.append("Content-Type","application/json");const n=JSON.stringify({txn_id:e}),r={method:"POST",headers:t,body:n,redirect:"follow",credentials:"include"};try{const a=Ot();return await(await at(`${a}/abdm/na/v1/registration/aadhaar/mobile/resend`,r)).json()}catch{}return{}}async function Wb({abha_address:e,txn_id:t}){const n=new Headers;n.append("Content-Type","application/json");const r=JSON.stringify({abha_address:e,txn_id:t}),a={method:"POST",headers:n,body:r,redirect:"follow",credentials:"include"};try{const i=Ot();return await(await at(`${i}/abdm/na/v1/registration/aadhaar/create-phr`,a)).json()}catch(i){console.error("postRegisterAadhaarCreatePhr ==>",i)}return{}}async function Yb({abha_address:e,address:t,first_name:n,last_name:r,day_of_birth:a,month_of_birth:i,year_of_birth:s,gender:o,middle_name:l,pincode:u,txn_id:c}){const d=new Headers;d.append("Content-Type","application/json");const f=JSON.stringify({abha_address:e,profile:{address:t,day_of_birth:a,first_name:n,gender:o,last_name:r,middle_name:l,month_of_birth:i,pincode:u,year_of_birth:s},txn_id:c}),w={method:"POST",headers:d,body:f,redirect:"follow",credentials:"include"};try{const x=Ot();return await(await at(`${x}/abdm/na/v1/registration/mobile/create-phr`,w)).json()}catch(x){console.error("postAbdmRegisterMobileCreatePhr error =>",x)}return{}}async function Gb({txn_id:e,phr_address:t}){const n=new Headers;n.append("Content-Type","application/json");const r=JSON.stringify({txn_id:e,phr_address:t}),a={method:"POST",headers:n,body:r,redirect:"follow",credentials:"include"};try{const i=Ot();return await(await at(`${i}/abdm/na/v1/profile/login/phr`,a)).json()}catch(i){console.error("postAbdmProfileLoginPhr error =>",i)}return{}}async function Kb({txn_id:e,fn:t,mn:n,ln:r,dob:a}){const i=new Headers;i.append("Content-Type","application/json");const s={method:"GET",headers:i,redirect:"follow",credentials:"include"};try{const o=Ot();return await(await at(`${o}/abdm/na/v1/registration/suggest?transactionId=${e}&fn=${t||""}&mn=${n||""}&ln=${r||""}&dob=${a||""}`,s)).json()}catch(o){console.error("postAbdmLoginVerify error =>",o)}return{}}async function qb({abha_address:e,txn_id:t}){const n=new Headers;n.append("Content-Type","application/json");const r=JSON.stringify({abha_address:e,txn_id:t}),a={method:"POST",headers:n,body:r,redirect:"follow",credentials:"include"};try{const i=Ot();return await(await at(`${i}/abdm/na/v1/registration/abha-number/create-phr`,a)).json()}catch(i){console.error("postAbdmRegisterAbhaNumberCreatePhr ==>",i)}return{}}async function Qb({abha_address:e}){const t=new Headers;t.append("Content-Type","application/json");const n=JSON.stringify({abha_address:e}),r={method:"POST",headers:t,body:n,redirect:"follow",credentials:"include"};try{const a=Ot();return await(await at(`${a}/abdm/na/v1/registration/phr/check`,r)).json()}catch(a){console.error("postAbdmRegisterPhrCheck ==>",a)}return{}}async function Hy({abha_address:e,address:t,first_name:n,last_name:r,day_of_birth:a,month_of_birth:i,year_of_birth:s,gender:o,middle_name:l,pincode:u}){const c=new Headers;c.append("Content-Type","application/json");const d=JSON.stringify({abha_address:e,profile:{address:t,day_of_birth:a,first_name:n,gender:o,last_name:r,middle_name:l,month_of_birth:i,pincode:u,year_of_birth:s}}),f={method:"POST",headers:c,body:d,redirect:"follow",credentials:"include"};try{const w=Ot();return await(await at(`${w}/abdm/v1/profile/eka`,f)).json()}catch(w){console.error("postAbdmProfileEka error =>",w)}return{}}async function $y({abha_address:e,oid:t}){const n=new Headers;n.append("Content-Type","application/json");const r=JSON.stringify({abha_address:e,oid:t}),a={method:"POST",headers:n,body:r,redirect:"follow",credentials:"include"};try{const i=Ot();return await(await at(`${i}/abdm/v1/profile/eka/link-phr`,a)).json()}catch(i){console.error("postAbdmProfileLinkPhr ==>",i)}return{}}async function Xb({txn_id:e,otp:t}){const n=new Headers;n.append("Content-Type","application/json");const r=JSON.stringify({txn_id:e,otp:t}),a={method:"POST",headers:n,body:r,redirect:"follow",credentials:"include"};try{const i=Ot();return await(await at(`${i}/abdm/na/v1/registration/mobile/verify`,a)).json()}catch{}return{}}async function Jb({txn_id:e}){const t=new Headers;t.append("Content-Type","application/json");const n={method:"POST",headers:t,body:JSON.stringify({txn_id:e}),redirect:"follow",credentials:"include"};try{const r=Ot();return await(await at(`${r}/abdm/na/v1/registration/mobile/resend`,n)).json()}catch{}return{}}async function Zb({pincode:e}){const n=`${Ot()}/abdm/na/v1/registration/pincode/${e}`,r=new Headers;r.append("Content-Type","application/json");const a={method:"GET",headers:r,redirect:"follow",credentials:"include"};try{return await(await at(n,a)).json()}catch(i){console.error(i)}return{}}var Vy={exports:{}},Cn={},By={exports:{}},Uy={};/**
17
+ */var wb=p,_b=Symbol.for("react.element"),xb=Symbol.for("react.fragment"),bb=Object.prototype.hasOwnProperty,Sb=wb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Eb={key:!0,ref:!0,__self:!0,__source:!0};function Ly(e,t,n){var r,a={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)bb.call(t,r)&&!Eb.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)a[r]===void 0&&(a[r]=t[r]);return{$$typeof:_b,type:e,key:i,ref:s,props:a,_owner:Sb.current}}ic.Fragment=xb;ic.jsx=Ly;ic.jsxs=Ly;Ay.exports=ic;var m=Ay.exports,Mt=(e=>(e.ABHA_END="abha_end",e.CONFIRM_MOBILE_OTP="confirm_mobile_otp",e.ABHA_CREATE="abha_create",e.ABHA_SELECT="abha_select",e))(Mt||{}),ta=(e=>(e.PRACTO="Practo",e.COVID_CONNECT="Covid-Connect",e.CORPORATE_CONNECT="Corporate-Connect",e.SPHERE_INDIA_PSYCHOLOGY="SPPS",e.SPHERE_INDIA_COVID="SPCO",e.TALK_TO_DOCTOR="TTD",e.SECOND_OPINION="SECO",e.EMERGENCY="EMCY",e.CORPORATE_CONNECT_INIT="CC-Init",e.WALKIN="Walkin",e.WALKINQR="Walkin-Scan",e.OFFLINE="Offline",e.ON_PAD="ON-PAD",e.UHI_HPD="UHI_HPD",e.UHI_DCM="UHI_DCM",e.IVR="IVR",e.STAFF="Staff",e.DOCTOR="Doctor",e.FOLLOW_UP="FOLLOW-UP",e.ONLINE_APPOINTMENT="Online-Appointment",e.PACKAGE="PACKAGE",e.PATIENT_REQUESTED="Patient-Requested",e))(ta||{}),_e=(e=>(e.CANCELLED="CN",e.ABORTED="AB",e.NO_SHOW="NS",e.NO_SHOW_DOCTOR="NSD",e.NO_SHOW_STAFF="NSS",e.COMPLETED="CM",e.RESCHEDULED="RE",e.ONGOING="OG",e.BOOKED="BK",e.PARKED="PA",e.PROVISIONAL_CANCELLED="PC",e.COMPLETED_NO_PRESCRIPTION="CMNP",e.DOCTOR_RESCHEDULED="RED",e.DOCTOR_CANCELLED="CND",e.STAFF_RESCHEDULED="RES",e.STAFF_CANCELLED="CNS",e.PAYMENT_NOT_RECEIVED="PNR",e.INITIATED="IN",e.RESERVED="RV",e.CHECKED_IN="CK",e))(_e||{});const Cb=new Set(["BK","PA"]),Ab=["CM","CMNP"],kb=["CN","CNS","CND","RE","RES","RED","AB","NS","NSD","NSS"],Nb=["IN","RV","PC","RE"],Rb=new Set(Ab),Ob=new Set(Nb),Tb=new Set(kb),Pb=new Set(["CK","OG"]);[...Array.from(Rb),...Array.from(Ob),...Array.from(Cb),...Array.from(Pb),...Array.from(Tb)];var el=(e=>(e[e.EMAIL=1]="EMAIL",e[e.MOBILE=2]="MOBILE",e[e.ABHA=7]="ABHA",e))(el||{}),q=(e=>(e.IDLE="IDLE",e.LOADING="LOADING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED",e))(q||{}),X=(e=>(e.PHR_ADDRESS="phr_address",e.MOBILE="mobile",e.ABHA_NUMBER="abha_number",e.AADHAR_NUMBER="aadhaar_number",e.REGISTRATION_TYPE="registration_type",e))(X||{}),Ln=(e=>(e.LOGIN="login",e.CREATE="create",e))(Ln||{}),Zd=(e=>(e.PERCENTAGE="PERCENTAGE",e.AMOUNT="AMOUNT",e))(Zd||{}),yt=(e=>(e.CASH="CASH",e.UPI="UPI",e.DEBIT_CARD="DEBIT_CARD",e.GPAY="GPAY",e.PAYTM="PAYTM",e.CREDIT_CARD="CREDIT_CARD",e.OTHER="OTHER",e.EKA_POSTPAY="EKA_POSTPAY",e.EKA_PREPAID="EKA_PREPAID",e.EKA_WALLET="EKA_WALLET",e))(yt||{}),Xt=(e=>(e.CASH="Cash",e.UPI="UPI",e.DEBIT_CARD="Debit Card",e.GPAY="GPay",e.PAYTM="Paytm",e.CREDIT_CARD="Credit Card",e.OTHER="Other",e.EKA_POSTPAY="Eka Payment",e.EKA_PREPAID="Eka Prepaid",e))(Xt||{}),Ba=(e=>(e.TAGS="TAGS",e.VISIT_TYPE="VITY",e.PAYMENT_STATUS="PAYS",e.ASSESSMENT_STATUS="ASST",e.PAST_VISITS="PRES",e.CREATE_ABHA="ABHA",e.ADD_VITALS_AND_LAB_RESULTS="AVLR",e.ADD_ADDRESS="ADDR",e.REQUEST_RECORDS="RMDR",e.REQUEST_PAYMENT="REQP",e.ARCHIVE_APPOINTMENT="AAPT",e.CREATE_CERTIFICATE="CRMC",e.REFER_TO_DOCTOR="RTOD",e.SEND_GOOGLE_REVIEW_LINK="SGRL",e.MARK_NO_SHOW="MNSH",e.CREATE_TEMPLATE="CATP",e.FOLLOW_UP="FLWU",e.ABHA_ID="ABHA_ID",e.UPLOAD_MEDICAL_RECORDS="UPMR",e.RESUME="RESUME",e.CHECK_IN="CHECK_IN",e.EXIT="EXIT",e.WRITE_RX="WRITE_RX",e.START_VISIT="START_VISIT",e.RECEIPT="RECEIPT",e.ORDER_MEDICINE="ORDER_MEDICINE",e.PRINT_RX="PRINT_RX",e.QUESTIONAIRE="SAQU",e.LABEL="LABEL",e))(Ba||{});_e.BOOKED,_e.PARKED;_e.CHECKED_IN,_e.ONGOING;_e.COMPLETED,_e.COMPLETED_NO_PRESCRIPTION;_e.CANCELLED,_e.STAFF_CANCELLED,_e.DOCTOR_CANCELLED,_e.RESCHEDULED,_e.STAFF_RESCHEDULED,_e.DOCTOR_RESCHEDULED,_e.ABORTED,_e.NO_SHOW,_e.NO_SHOW_DOCTOR,_e.NO_SHOW_STAFF;_e.INITIATED,_e.RESERVED,_e.PROVISIONAL_CANCELLED,_e.RESCHEDULED;Xt.CASH,yt.CASH,yt.CASH,Xt.CREDIT_CARD,yt.CREDIT_CARD,yt.CREDIT_CARD,Xt.DEBIT_CARD,yt.DEBIT_CARD,yt.DEBIT_CARD,Xt.PAYTM,yt.PAYTM,yt.PAYTM,Xt.GPAY,yt.GPAY,yt.GPAY,Xt.UPI,yt.UPI,yt.UPI,Xt.OTHER,yt.OTHER,yt.OTHER;yt.CASH,Xt.CASH,yt.CREDIT_CARD,Xt.CREDIT_CARD,yt.DEBIT_CARD,Xt.DEBIT_CARD,yt.PAYTM,Xt.PAYTM,yt.GPAY,Xt.GPAY,yt.UPI,Xt.UPI,yt.OTHER,Xt.OTHER;Zd.AMOUNT,Zd.PERCENTAGE;_e.CANCELLED,_e.ABORTED,_e.ONGOING,_e.COMPLETED,_e.RESCHEDULED,_e.BOOKED,_e.CHECKED_IN,_e.NO_SHOW,_e.INITIATED;_e.COMPLETED_NO_PRESCRIPTION+"",_e.COMPLETED,_e.DOCTOR_CANCELLED+"",_e.CANCELLED,_e.STAFF_CANCELLED+"",_e.CANCELLED,_e.NO_SHOW_DOCTOR+"",_e.NO_SHOW,_e.NO_SHOW_STAFF+"",_e.NO_SHOW,_e.DOCTOR_RESCHEDULED+"",_e.RESCHEDULED,_e.STAFF_RESCHEDULED+"",_e.RESCHEDULED;ta.WALKIN,ta.FOLLOW_UP,ta.PATIENT_REQUESTED,ta.OFFLINE,ta.STAFF,ta.DOCTOR,ta.ONLINE_APPOINTMENT;Ba.TAGS,Ba.VISIT_TYPE,Ba.RECEIPT,Ba.CREATE_ABHA,Ba.ADD_VITALS_AND_LAB_RESULTS,Ba.UPLOAD_MEDICAL_RECORDS;const Iy={AORTA_HOST:"https://auth.eka.care",AORTA_GO_HOST:"https://aortago.eka.care",TRYST_HOST:"https://tryst.eka.care",AXON_HOST:"https://axon.eka.care",PARCHI_HOST:"https://parchi.eka.care",CURIO_HOST:"https://eka.care",AVATAR_HOST:"https://a.eka.care",PTDIR_HOST:"https://ptdir.eka.care",TELE_HOST:"https://mweb.eka.care",METROLPOLIS_HOST:"https://consultation.metropolisindia.com",LUCID_WS_HOST:"https://lucid-ws.eka.care",LUCID_HOST:"https://lucid.eka.care",DEEPTHOUGHT_HOST:"https://deepthought.eka.care",NDHM_HOST:"https://ndhm.eka.care",LOGIN_HOST:"https://login.eka.care",HUB:"https://hub.eka.care"},Xp={AORTA_HOST:"https://aorta.dev.eka.care",AORTA_GO_HOST:"https://aortago.dev.eka.care",TRYST_HOST:"https://tryst.dev.eka.care",AXON_HOST:"https://axon.dev.eka.care",PARCHI_HOST:"https://parchi.dev.eka.care",CURIO_HOST:"https://curio.dev.eka.care",AVATAR_HOST:"https://eka-avatar.dev.eka.care",PTDIR_HOST:"https://ptdir.dev.eka.care",TELE_HOST:"https://mweb.dev.eka.care",METROLPOLIS_HOST:"https://consultation.metropolisindia.com",LUCID_WS_HOST:"https://lucid-ws.dev.eka.care",LUCID_HOST:"https://lucid.dev.eka.care",DEEPTHOUGHT_HOST:"https://deepthought.dev.eka.care",NDHM_HOST:"https://ndhm.dev.eka.care",LOGIN_HOST:"https://login.dev.eka.care",HUB:"https://hub.dev.eka.care"};let sc=Xp,Jp="",wu=null,Fy="DEV";const Mb=({env:e,clientId:t,extraHeaders:n})=>{sc=e==="PROD"?Iy:Xp,Fy=e==="PROD"?"PROD":"DEV",Jp=t,n&&(wu=n)},qi=({clientId:e,env:t,extraHeaders:n})=>{e&&(Jp=e),t&&(sc=t==="PROD"?Iy:Xp),n&&(wu={...wu,...n})},Zp=()=>Fy,vi=()=>sc.AORTA_GO_HOST,Ot=()=>sc.NDHM_HOST,jy=()=>Jp,Vn=()=>wu;function Db({data:e}){typeof window<"u"&&(window.mxpDataLayer=window.mxpDataLayer||[],window.mxpDataLayer.push(e))}function dg({category:e="api-failed",url:t,params:n}){Db({data:{name:e,data:{url:t,...n}}}),{...n}}async function Lb(){if(await Ib())return!0;const t=new Headers;t.append("Content-Type","application/json"),t.set("client-id",jy());const n=JSON.stringify({}),r={method:"POST",headers:t,body:n,redirect:"follow",credentials:"include",mode:"cors"};try{const a=vi();if((await fetch(`${a}/emr/v3/auth/refresh`,{...r,body:JSON.stringify({})})).status===401)return!1}catch{return!1}return!0}async function at(e,t={},n=!0){var r,a;try{const i=((a=(r=window==null?void 0:window.Eka)==null?void 0:r.getSessionToken)==null?void 0:a.call(r))||"",s=new Headers(t.headers);let o,l;s.get("client-id")||s.set("client-id",jy()),i&&!s.get("auth")&&s.set("auth",i);const u=Vn();u&&Object.keys(u).forEach(d=>{s.set(d,u[d])});const c=await fetch(e,{...t,headers:s});return window&&(l=window.location.pathname,o=s.get("client-id")),c.status===401&&n&&await Lb()?await at(e,t,!1):(c.status>401&&dg({url:e,params:{responseStatus:c.status}}),c)}catch(i){throw dg({url:e,params:{error:`${i.message||i}`}}),console.error(i),i}}let _u=[];async function fg(e){_u.forEach(t=>t(!0)),_u=[]}async function Ib(){var e,t,n,r,a,i;if(typeof window<"u"){if(typeof((e=window==null?void 0:window.Eka)==null?void 0:e.updateToken)=="function")return(t=window.parent)==null||t.postMessage({type:"REFRESH_TOKEN"},"*"),window.refreshCallback=window.refreshCallback||fg,new Promise(s=>{var o;_u.push(s),(o=window==null?void 0:window.Eka)==null||o.updateToken("refreshCallback")});if(typeof((a=(r=(n=window==null?void 0:window.webkit)==null?void 0:n.messageHandlers)==null?void 0:r.statusCodeHandler)==null?void 0:a.postMessage)=="function")return(i=window.parent)==null||i.postMessage({type:"REFRESH_TOKEN"},"*"),window.refreshCallback=window.refreshCallback||fg,new Promise(s=>{var o,l,u;_u.push(s),(u=(l=(o=window==null?void 0:window.webkit)==null?void 0:o.messageHandlers)==null?void 0:l.statusCodeHandler)==null||u.postMessage(JSON.stringify({status:401}))})}return!1}async function eh({method:e,identifier:t}){const n=new Headers;n.append("Content-Type","application/json");const r=JSON.stringify({method:e,identifier:t}),a={method:"POST",headers:n,body:r,redirect:"follow",credentials:"include"};try{const i=vi();return await(await at(`${i}/v2/auth/init`,a)).json()}catch(i){console.error(i)}return{}}async function th({txn_id:e,code:t,token:n}){const r=new Headers;r.append("Content-Type","application/json");const a=JSON.stringify({txn_id:e,...t?{code:t}:{},...n?{token:n}:{}}),i={method:"POST",headers:r,body:a,redirect:"follow",credentials:"include"};try{const s=vi();return await(await at(`${s}/v2/auth/verify`,i)).json()}catch(s){console.error(s)}return{}}async function Fb(){const e=new Headers;e.append("Content-Type","application/json");const t={method:"GET",headers:e,redirect:"follow",credentials:"include"};try{const n=vi();return await(await at(`${n}/profiles/v1/patient`,t)).json()}catch(n){return console.error("profilePhrUser error =>",n),[]}}async function jb(){const e=new Headers;e.append("Content-Type","application/json");const t={method:"GET",headers:e,redirect:"follow",credentials:"include"},n=Vn(),r=n==null?void 0:n["X-User-ID"];if(!r)return{};try{const a=vi();return await(await at(`${a}/profiles/v1/patient/${r}`,t)).json()}catch(a){return console.error("profilePhrUser error =>",a),{}}}async function Hb({oid:e}){const t=new Headers;t.append("Content-Type","application/json");const n=JSON.stringify({oid:e}),r={method:"POST",headers:t,body:n,redirect:"follow",credentials:"include"};try{const a=vi();return await(await at(`${a}/v1/profile/switch`,r)).json()}catch(a){console.error("postProfileSwitchError: ",a)}return{}}async function nh(){console.log("inside postAuthLogoutV2 api call");const e=new Headers;e.append("Content-Type","application/json");const t=JSON.stringify({}),r=`${vi()}/v2/auth/logout`,a={method:"POST",headers:e,body:t,redirect:"follow",credentials:"include"};try{const i=await at(r,a);return i.ok?!0:(console.log("Logout failed with status",i==null?void 0:i.status),!1)}catch(i){return console.error("Logout API failed:",i),!1}}async function rh({method:e,identifier:t}){const n=new Headers;n.append("Content-Type","application/json");const r=JSON.stringify({method:e,identifier:t}),a={method:"POST",headers:n,body:r,redirect:"follow",credentials:"include"};try{const i=Ot();return await(await at(`${i}/abdm/na/v1/profile/login/init`,a)).json()}catch(i){console.error("postAbdmLoginInit error =>",i)}return{}}async function $b({txn_id:e,otp:t}){const n=new Headers;n.append("Content-Type","application/json");const r=JSON.stringify({txn_id:e,otp:t}),a={method:"POST",headers:n,body:r,redirect:"follow",credentials:"include"};try{const i=Ot();return await(await at(`${i}/abdm/na/v1/profile/login/verify`,a)).json()}catch(i){console.error("postAbdmLoginVerify error =>",i)}return{}}async function ah({aadhaar_number:e}){const t=new Headers;t.append("Content-Type","application/json");const n=JSON.stringify({aadhaar_number:e}),r={method:"POST",headers:t,body:n,redirect:"follow",credentials:"include"};try{const a=Ot();return await(await at(`${a}/abdm/na/v1/registration/aadhaar/init`,r)).json()}catch{}return{}}async function ih({mobile_number:e}){const t=new Headers;t.append("Content-Type","application/json");const n=JSON.stringify({mobile_number:e}),r={method:"POST",headers:t,body:n,redirect:"follow",credentials:"include"};try{const a=Ot();return await(await at(`${a}/abdm/na/v1/registration/mobile/init`,r)).json()}catch(a){console.error(a)}return{}}async function Vb({txn_id:e,mobile:t,otp:n}){const r=new Headers;r.append("Content-Type","application/json");const a=JSON.stringify({txn_id:e,mobile:t,otp:n}),i={method:"POST",headers:r,body:a,redirect:"follow",credentials:"include"};try{const s=Ot();return await(await at(`${s}/abdm/na/v1/registration/aadhaar/verify`,i)).json()}catch{}return{}}async function Bb({txn_id:e,otp:t}){const n=new Headers;n.append("Content-Type","application/json");const r=JSON.stringify({txn_id:e,otp:t}),a={method:"POST",headers:n,body:r,redirect:"follow",credentials:"include"};try{const i=Ot();return await(await at(`${i}/abdm/na/v1/registration/aadhaar/mobile/verify`,a)).json()}catch{}return{}}async function Ub({txn_id:e}){const t=new Headers;t.append("Content-Type","application/json");const n=JSON.stringify({txn_id:e}),r={method:"POST",headers:t,body:n,redirect:"follow",credentials:"include"};try{const a=Ot();return await(await at(`${a}/abdm/na/v1/registration/aadhaar/resend`,r)).json()}catch{}return{}}async function zb({txn_id:e}){const t=new Headers;t.append("Content-Type","application/json");const n=JSON.stringify({txn_id:e}),r={method:"POST",headers:t,body:n,redirect:"follow",credentials:"include"};try{const a=Ot();return await(await at(`${a}/abdm/na/v1/registration/aadhaar/mobile/resend`,r)).json()}catch{}return{}}async function Wb({abha_address:e,txn_id:t}){const n=new Headers;n.append("Content-Type","application/json");const r=JSON.stringify({abha_address:e,txn_id:t}),a={method:"POST",headers:n,body:r,redirect:"follow",credentials:"include"};try{const i=Ot();return await(await at(`${i}/abdm/na/v1/registration/aadhaar/create-phr`,a)).json()}catch(i){console.error("postRegisterAadhaarCreatePhr ==>",i)}return{}}async function Yb({abha_address:e,address:t,first_name:n,last_name:r,day_of_birth:a,month_of_birth:i,year_of_birth:s,gender:o,middle_name:l,pincode:u,txn_id:c}){const d=new Headers;d.append("Content-Type","application/json");const f=JSON.stringify({abha_address:e,profile:{address:t,day_of_birth:a,first_name:n,gender:o,last_name:r,middle_name:l,month_of_birth:i,pincode:u,year_of_birth:s},txn_id:c}),w={method:"POST",headers:d,body:f,redirect:"follow",credentials:"include"};try{const x=Ot();return await(await at(`${x}/abdm/na/v1/registration/mobile/create-phr`,w)).json()}catch(x){console.error("postAbdmRegisterMobileCreatePhr error =>",x)}return{}}async function Gb({txn_id:e,phr_address:t}){const n=new Headers;n.append("Content-Type","application/json");const r=JSON.stringify({txn_id:e,phr_address:t}),a={method:"POST",headers:n,body:r,redirect:"follow",credentials:"include"};try{const i=Ot();return await(await at(`${i}/abdm/na/v1/profile/login/phr`,a)).json()}catch(i){console.error("postAbdmProfileLoginPhr error =>",i)}return{}}async function Kb({txn_id:e,fn:t,mn:n,ln:r,dob:a}){const i=new Headers;i.append("Content-Type","application/json");const s={method:"GET",headers:i,redirect:"follow",credentials:"include"};try{const o=Ot();return await(await at(`${o}/abdm/na/v1/registration/suggest?transactionId=${e}&fn=${t||""}&mn=${n||""}&ln=${r||""}&dob=${a||""}`,s)).json()}catch(o){console.error("postAbdmLoginVerify error =>",o)}return{}}async function qb({abha_address:e,txn_id:t}){const n=new Headers;n.append("Content-Type","application/json");const r=JSON.stringify({abha_address:e,txn_id:t}),a={method:"POST",headers:n,body:r,redirect:"follow",credentials:"include"};try{const i=Ot();return await(await at(`${i}/abdm/na/v1/registration/abha-number/create-phr`,a)).json()}catch(i){console.error("postAbdmRegisterAbhaNumberCreatePhr ==>",i)}return{}}async function Qb({abha_address:e}){const t=new Headers;t.append("Content-Type","application/json");const n=JSON.stringify({abha_address:e}),r={method:"POST",headers:t,body:n,redirect:"follow",credentials:"include"};try{const a=Ot();return await(await at(`${a}/abdm/na/v1/registration/phr/check`,r)).json()}catch(a){console.error("postAbdmRegisterPhrCheck ==>",a)}return{}}async function Hy({abha_address:e,address:t,first_name:n,last_name:r,day_of_birth:a,month_of_birth:i,year_of_birth:s,gender:o,middle_name:l,pincode:u}){const c=new Headers;c.append("Content-Type","application/json");const d=JSON.stringify({abha_address:e,profile:{address:t,day_of_birth:a,first_name:n,gender:o,last_name:r,middle_name:l,month_of_birth:i,pincode:u,year_of_birth:s}}),f={method:"POST",headers:c,body:d,redirect:"follow",credentials:"include"};try{const w=Ot();return await(await at(`${w}/abdm/v1/profile/eka`,f)).json()}catch(w){console.error("postAbdmProfileEka error =>",w)}return{}}async function $y({abha_address:e,oid:t}){const n=new Headers;n.append("Content-Type","application/json");const r=JSON.stringify({abha_address:e,oid:t}),a={method:"POST",headers:n,body:r,redirect:"follow",credentials:"include"};try{const i=Ot();return await(await at(`${i}/abdm/v1/profile/eka/link-phr`,a)).json()}catch(i){console.error("postAbdmProfileLinkPhr ==>",i)}return{}}async function Xb({txn_id:e,otp:t}){const n=new Headers;n.append("Content-Type","application/json");const r=JSON.stringify({txn_id:e,otp:t}),a={method:"POST",headers:n,body:r,redirect:"follow",credentials:"include"};try{const i=Ot();return await(await at(`${i}/abdm/na/v1/registration/mobile/verify`,a)).json()}catch{}return{}}async function Jb({txn_id:e}){const t=new Headers;t.append("Content-Type","application/json");const n={method:"POST",headers:t,body:JSON.stringify({txn_id:e}),redirect:"follow",credentials:"include"};try{const r=Ot();return await(await at(`${r}/abdm/na/v1/registration/mobile/resend`,n)).json()}catch{}return{}}async function Zb({pincode:e}){const n=`${Ot()}/abdm/na/v1/registration/pincode/${e}`,r=new Headers;r.append("Content-Type","application/json");const a={method:"GET",headers:r,redirect:"follow",credentials:"include"};try{return await(await at(n,a)).json()}catch(i){console.error(i)}return{}}var Vy={exports:{}},Cn={},By={exports:{}},Uy={};/**
18
18
  * @license React
19
19
  * scheduler.production.min.js
20
20
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eka-care/abha",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "VITE_APP_MODE=DEBUG vite",