Your IP : 216.73.216.93


Current Path : /home/users/unlimited/www/web.medimeet.codeskitter.site/assets/
Upload File :
Current File : /home/users/unlimited/www/web.medimeet.codeskitter.site/assets/NewAppoinmentsByDoctor-564T38V5.js

import{ad as se,a4 as ge,r as b,d as Q,j as e,O as J,B as u,T as n,F as x,q as je,af as ye,ag as _e,ah as y,p as be,a5 as we,ai as ae,a6 as oe,aj as pe,a7 as q,ak as _,e as Se,R as K,ac as R,Q as V,l as $,al as Ae,am as ve,an as ze,a9 as ee,ao as E,ap as D,P as Fe,aq as We,ar as Ye,a8 as Pe,as as ke,at as Me,au as qe,av as H,f as G}from"./index-CDlA-3aM.js";import{u as Le}from"./index.esm-DVyQvRf9.js";import{d as Be,I as Ce}from"./defaultISD-DlwB0yeS.js";import{S as Oe,a as Ne}from"./swiper-react-DZpfHymF.js";import{R as Re,a as te}from"./radio-BlI-vBak.js";import{C as $e,a as Qe}from"./card-body-t9yk5qgp.js";const Ee=[{Name:"Date & Time",step:2,icon:e.jsx(je,{})},{Name:"Patient Details",step:3,icon:e.jsx(ye,{})},{Name:"Summary",step:4,icon:e.jsx(_e,{})}],De=[{id:1,title:"OPD",fee:400,service_charge:0,created_at:"2024-01-28 12:39:29",updated_at:"2024-08-10 13:29:27"},{id:2,title:"Video Consultant",fee:250,service_charge:20,created_at:"2024-01-28 12:40:11",updated_at:"2024-01-28 12:40:11"},{id:3,title:"Emergency",fee:500,service_charge:30,created_at:"2024-01-28 12:40:11",updated_at:"2024-08-10 13:29:39"}];function et(){const f=se(),{doctor:s,appoinType:h}=ge(),[c,i]=b.useState(2),[w,j]=b.useState(null),[W,m]=b.useState(null),[Y,A]=b.useState(null),z=De.find(r=>r.id==h);b.useEffect(()=>{window.scrollTo(0,0)},[c]),b.useEffect(()=>{h==="3"&&i(3)},[h]);const g=async()=>(await G(`get_doctor/${s}`)).data,{isLoading:k,data:p}=Q({queryKey:["Doctor",s],queryFn:g});if(k)return e.jsx(J,{});const P=r=>{if(z.id===3&&c===1&&i(3),!(z.id===3&&r===2))if(r<c)i(r);else if(r===c)i(r);else{if(c===1&&(!p||!z)){y(f,"error","Please select doctor and Appointment type before proceeding.");return}if(c===2&&(!w||!W)){y(f,"error","Please select date  & time slot before proceeding.");return}if(c===3&&!Y){y(f,"error","Please select a time slot before proceeding.");return}i(r)}};function S(){j(),m(),A()}const F=r=>{switch(r){case 2:return e.jsx(Ve,{appoinmentType:z,selectedDate:w,setSelectedDate:j,selectedSlot:W,setselectedSlot:m,setStep:i,Doctordetails:p});case 3:return e.jsx(Ge,{setPatientDetails:A,setStep:i});case 4:return e.jsx(Ue,{patientDetails:Y,Doctordetails:p,selectedDate:w,selectedSlot:W,appoinmentType:z,setAllNull:S});default:return"Unknown Step"}};return e.jsxs(u,{children:[e.jsx(u,{bg:"primary.main",p:4,py:{base:"4",md:"10"},children:e.jsx(u,{className:"container",children:e.jsx(n,{fontFamily:"Quicksand, sans-serif",fontSize:{base:24,md:32},fontWeight:700,textAlign:"center",mt:0,color:"#fff",children:"Book Appointment"})})}),e.jsx(u,{className:"container",children:e.jsx(x,{justify:"center",children:e.jsx(u,{maxW:"100vw",w:"1000px",children:e.jsxs(x,{mt:10,gap:10,flexDir:{base:"column",md:"row"},children:[e.jsx(u,{w:{base:"100%",md:"30%"},border:"1px solid",borderColor:"gray.200",p:4,borderRadius:4,bg:"#fff",h:"fit-content",display:{base:"flex",md:"block"},justifyContent:{base:"space-between"},children:Ee.map(r=>e.jsxs(x,{align:"center",gap:2,mb:3,cursor:"pointer",onClick:()=>{P(r.step)},transition:"0.3s ease",flexDir:{base:"column",md:"Row"},children:[e.jsx(u,{p:2,border:"1px solid",borderColor:c===r.step?"primary.text":"gray.200",borderRadius:4,fontSize:18,color:c===r.step?"#fff":"#000",bg:c===r.step?"primary.text":"transparent",transition:"0.3s ease",children:r.icon}),e.jsx(n,{fontSize:14,fontWeight:c===r.step?"700":"600",color:c===r.step?"primary.text":"gray.600",transition:"0.3s ease",children:r.Name})]},r.Name))}),e.jsx(u,{w:{base:"100%",md:"70%"},border:"1px solid",borderColor:"gray.200",p:3,px:4,borderRadius:4,bg:"#fff",h:"fit-content",children:F(c)})]})})})})]})}const Ve=({appoinmentType:f,selectedDate:s,setSelectedDate:h,selectedSlot:c,setselectedSlot:i,setStep:w,Doctordetails:j})=>{const W=()=>{const t=[];for(let o=0;o<15;o++){const v=_().add(o,"days").format("YYYY-MM-DD");t.push(v)}return t},m=t=>{const o=_(t,"YYYY-MM-DD");return{month:o.format("MMM"),date:o.format("DD"),year:o.format("ddd")}},Y=t=>_(t,"YYYYMMDD").format("dddd"),A=async()=>{const t=f.title==="OPD"?`get_doctor_time_interval/${j.user_id}/${Y(s)}`:f.title==="Video Consultant"?`get_doctor_video_time_interval/${j.user_id}/${Y(s)}`:`get_doctor_time_interval/${j.user_id}/${Y(s)}`;return(await G(t)).data},{isLoading:z,data:g}=Q({queryKey:["timeslotes",s,j.user_id,f.title],queryFn:A,enabled:!!s}),p=(t=>{const o=_().format("YYYY-MM-DD");if(s===o){const v=new Date;return t==null?void 0:t.filter(I=>{const[X,Z]=I.time_start.split(":"),U=new Date;return U.setHours(X,Z,0,0),U>v})}else return t})(g),P=async()=>(await G(`get_booked_time_slots?doct_id=${j.user_id}&date=${_(s).format("YYYY-MM-DD")}&type=${f.title}`)).data,{isLoading:S,data:F}=Q({queryKey:["bookedslotes",s,j.user_id],queryFn:P,enabled:!!s}),r=t=>{let o=!0;return F==null||F.forEach(v=>{v.time_slots===t.time_start&&v.date===s&&(o=!1)}),o},L={spaceBetween:20,centeredSlides:!1,loop:!1,slidesPerView:7.5,breakpoints:{1024:{spaceBetween:5,slidesPerView:7.5},768:{spaceBetween:5,slidesPerView:6.5},640:{spaceBetween:5,slidesPerView:5.5},320:{spaceBetween:5,slidesPerView:5.5}}};return e.jsxs(u,{children:[z&&S&&e.jsx(J,{}),e.jsx(n,{fontSize:17,fontWeight:600,mb:3,children:"Date & Time"})," ",e.jsx(K,{mb:5}),e.jsxs(u,{maxW:"100%",overflow:"hidden",children:[" ",e.jsx(Oe,{...L,style:{cursor:"grab",overflow:"hidden",maxWidth:"100%"},children:W().map((t,o)=>e.jsx(Ne,{children:e.jsxs(u,{onClick:()=>{h(_(t).format("YYYY-MM-DD"))},children:[" ",e.jsxs(u,{bg:s===_(t).format("YYYY-MM-DD")?"primary.text":"blue.700",mr:3,borderRadius:5,color:"#fff",p:1,cursor:"pointer",children:[e.jsx(n,{fontSize:"xs",fontWeight:"bold",color:"gray.100",textAlign:"center",m:0,children:m(t).month}),e.jsx(n,{fontSize:"md",fontWeight:"700",color:"blue.100",textAlign:"center",m:0,children:m(t).date}),e.jsx(n,{fontSize:"xs",fontWeight:"bold",color:"gray.100",textAlign:"center",m:0,children:m(t).year})]})]},o)},o))})]}),e.jsx(u,{children:s?e.jsxs(u,{mt:5,border:"1px solid",borderColor:"gray.200",p:2,borderRadius:4,children:[e.jsx(n,{textAlign:"left",fontWeight:600,fontSize:16,mb:1,children:"Time Slotes"}),p!=null&&p.length?e.jsx(u,{mt:2,children:e.jsx(qe,{columns:[3,4,5],spacing:2,children:p==null?void 0:p.map((t,o)=>e.jsxs($,{size:"sm",fontSize:"xs",fontWeight:600,colorScheme:r(t)?t===c?"blue":"green":"red",variant:"solid",onClick:()=>{r(t)&&(i(t),w(3))},isDisabled:!r(t),_disabled:{backgroundColor:"red.500"},children:[t.time_start," - ",t.time_end]},o))})}):e.jsx(n,{color:"red.400",fontWeight:700,fontSize:"sm",children:"Sorry , no available time slotes ware found for the selected date."})]}):""})]})},Ge=({setPatientDetails:f,setStep:s})=>{var L;const{isOpen:h,onOpen:c,onClose:i}=oe(),{register:w,handleSubmit:j}=Le(),[W,m]=b.useState(!1),[Y,A]=b.useState(Be),[z,g]=b.useState(!1),k=se(),p=ae(),P=async()=>{var o;return(await G(`get_family_members/user/${(o=q)==null?void 0:o.id}`)).data},{isLoading:S,data:F}=Q({queryKey:["family-members",(L=q)==null?void 0:L.id],queryFn:P});if(S)return e.jsx(J,{});const r=async t=>{let o={...t,isd_code:Y,user_id:q.id};try{g(!0);const v=await H(q.token,"add_family_member",o);y(k,"success","Success"),p.invalidateQueries("patients"),m(!1),f({...t,id:v.id}),s(4)}catch{g(!1),y(k,"error","something went wrong")}};return e.jsxs(u,{children:[" ",W?e.jsxs(u,{children:[e.jsx(n,{fontSize:18,fontWeight:600,mb:3,textAlign:"center",children:"Add New family member"})," ",e.jsx(K,{}),e.jsxs(u,{mt:5,as:"form",onSubmit:j(r),children:[e.jsxs(ee.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.4},children:[e.jsxs(E,{isRequired:!0,children:[e.jsx(D,{children:"First Name"}),e.jsx(V,{type:"text",size:"sm",fontSize:16,...w("f_name",{required:!0})})]}),e.jsxs(E,{mt:5,isRequired:!0,children:[e.jsx(D,{children:"Last Name"}),e.jsx(V,{type:"text",size:"sm",fontSize:16,...w("l_name",{required:!0})})]}),e.jsxs(E,{mt:5,isRequired:!0,children:[e.jsx(D,{children:"Phone "}),e.jsxs(Fe,{size:"sm",children:[e.jsx(We,{cursor:"pointer",onClick:t=>{t.stopPropagation(),c()},children:Y}),e.jsx(V,{type:"tel",fontSize:16,...w("phone",{required:!0})})]})]}),e.jsxs(x,{w:"full",gap:4,mt:5,children:[e.jsxs(E,{id:"gender",children:[e.jsx(D,{children:"Gender"}),e.jsxs(Ye,{...w("gender",{required:!0}),children:[e.jsx("option",{value:"Male",children:"Male"}),e.jsx("option",{value:"Female",children:"Female"})]})]}),e.jsxs(E,{id:"dob",children:[e.jsx(D,{children:"Date of Birth"}),e.jsx(V,{type:"date",...w("dob",{required:!0}),onFocus:t=>t.target.showPicker(),onClick:t=>t.target.showPicker()})]})]})]}),e.jsxs(x,{gap:5,justify:"end",mt:8,children:[e.jsx($,{w:"30%",size:"sm",onClick:()=>m(!1),children:"Cancle"}),e.jsx($,{w:"40%",size:"sm",colorScheme:"blue",type:"submit",isLoading:z,children:"Add"})]})]})]}):e.jsxs(u,{children:[e.jsx(n,{fontSize:17,fontWeight:600,mb:3,children:"Family Member"})," ",e.jsx(u,{children:e.jsxs(Pe,{children:[" ",e.jsxs(ee.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.2},children:[" ",e.jsx($,{align:"center",leftIcon:e.jsx(ke,{fontSize:20}),colorScheme:"blue",size:"sm",w:"100%",onClick:()=>{m(!0)},children:"Add Family Member"}),F&&e.jsxs(u,{children:[e.jsx(n,{fontSize:14,fontWeight:600,mb:3,textAlign:"center",my:2,children:"OR"})," ",F.map(t=>e.jsx(ee.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.7},children:e.jsx($e,{cursor:"pointer",mb:4,onClick:()=>{f(t),s(4)},children:e.jsx(Qe,{p:4,children:e.jsxs(x,{align:"center",gap:4,children:[e.jsx(Me,{fontSize:24,color:"#2D3748"}),e.jsxs(u,{children:[" ",e.jsxs(n,{fontSize:14,fontWeight:600,mb:0,children:[t.f_name," ",t.l_name]})," ",e.jsx(n,{fontSize:14,fontWeight:600,children:t.phone})," "]})]})})})},t.id))]})]})]})})]}),e.jsx(Ce,{isOpen:h,onClose:i,setisd_code:A})]})},Ie=async()=>{const f={phone:s==null?void 0:s.phone},s=await H(s.token,"re_login_phone",f);if(s.response!==200)throw new Error(s.message);return s.data},Ue=({patientDetails:f,Doctordetails:s,selectedDate:h,selectedSlot:c,appoinmentType:i,setAllNull:w})=>{const{settingsData:j}=be(),W=j==null?void 0:j.find(l=>l.id_name==="tax"),m=se(),[Y,A]=b.useState(!1),z=we(),g=ae(),{isOpen:k,onOpen:p,onClose:P}=oe(),[S,F]=b.useState("1"),[r,L]=b.useState(),[t,o]=b.useState(),{paymentGetwaysData:v}=pe(),[I,X]=b.useState(null);b.useEffect(()=>{v&&X(v.title.toLowerCase())},[v]);const Z=l=>{const a=_().format("YYYY-MM-DD");if(h===a){const N=new Date,{time_end:fe}=l,[he,xe]=fe.split(":"),re=new Date;return re.setHours(he,xe,0,0),re<N}else return!1},U=async()=>(await G(`get_booked_time_slots?doct_id=${s.user_id}&date=${_(h).format("YYYY-MM-DD")}&type=${i.title}`)).data,{isLoading:le,data:T}=Q({queryKey:["bookedslotes",h,s.user_id],queryFn:U,refetchOnWindowFocus:!0,refetchOnMount:!0,staleTime:0}),ce=l=>{let a=!0;return T==null||T.forEach(N=>{N.time_slots===l.time_start&&N.date===h&&(a=!1)}),a},{isLoading:de,data:C}=Q({queryKey:["user"],queryFn:Ie,refetchOnWindowFocus:!0,refetchOnMount:!0,staleTime:0}),d=(l,a)=>{switch(l){case"OPD":return a.opd_fee;case"Video Consultant":return a.video_fee;case"Emergency":return a.emg_fee;default:return a.emg_fee}},M=l=>l*W.value/100,B=(l,a)=>a?l*a/100:0,O=(l,a,N)=>l-N+a,ue=async()=>{try{let l={user_id:q.id,title:r};A(!0);let a=await H(q.token,"get_validate",l);A(!1),a.response===200?a.status===!1?y(m,"error",a.msg):a.status===!0&&(y(m,"success","Coupon Applied"),o(a.data)):y(m,"error",(a==null?void 0:a.message)||"error")}catch{A(!1),y(m,"error","something went wrong!")}},me=async()=>{const l={family_member_id:f.id,status:"Confirmed",date:h||_().format("YYYY-MM-DD"),time_slots:c?c.time_start:_().format("hh:mm"),doct_id:s.user_id,dept_id:s.department,type:i.title,payment_status:S==2?"Unpaid":"Paid",fee:d(i.title,s),service_charge:0,tax:W.value,unit_tax_amount:M(d(i.title,s)),total_amount:O(d(i.title,s).toFixed(2),M(d(i.title,s).toFixed(2)),B(d(i.title,s),t==null?void 0:t.value)),unit_total_amount:O(d(i.title,s).toFixed(2),M(d(i.title,s).toFixed(2)),0),invoice_description:i.title,user_id:q.id,payment_method:S==1?"Online":S==3?"Wallet":null,payment_transaction_id:S==1?"":S==3?"Wallet":null,is_wallet_txn:S==3?1:0,source:"Web",coupon_id:t==null?void 0:t.id,coupon_title:t==null?void 0:t.title,coupon_value:t==null?void 0:t.value,coupon_off_amount:B(d(i.title,s),t==null?void 0:t.value)};try{A(!0);let a=await H(q.token,"add_appointment",l);A(!1),a.response===200?(y(m,"success","Appointment Booked Successfully!"),w(),g.invalidateQueries(["timeslotes"]),g.invalidateQueries(["bookedslotes"]),g.invalidateQueries(["user"]),z(`/appointment-success/${a.id}`)):(y(m,"error",a.message),g.invalidateQueries(["timeslotes"]),g.invalidateQueries(["bookedslotes"]),g.invalidateQueries(["user"]))}catch{A(!1),y(m,"error","something went wrong!")}},ie={family_member_id:String(f.id),status:"Confirmed",date:h||_().format("YYYY-MM-DD"),time_slots:c?c.time_start:_().format("hh:mm"),doct_id:String(s.user_id),dept_id:String(s.department),type:i.title,payment_status:"Paid",fee:String(d(i.title,s).toFixed(2)),service_charge:"0.0",tax:String(W.value),unit_tax_amount:String(M(d(i.title,s)).toFixed(2)),total_amount:String(O(d(i.title,s).toFixed(2),M(d(i.title,s).toFixed(2)),B(d(i.title,s),t==null?void 0:t.value)).toFixed(2)),unit_total_amount:String(O(d(i.title,s).toFixed(2),M(d(i.title,s).toFixed(2)),0).toFixed(2)),invoice_description:i.title,user_id:String(q.id),payment_method:"Online",is_wallet_txn:String(0),source:"Web",coupon_id:t!=null&&t.id?String(t==null?void 0:t.id):"",coupon_title:(t==null?void 0:t.title)||"",coupon_value:t!=null&&t.value?String(t==null?void 0:t.value):"",coupon_off_amount:String(B(d(i.title,s),t==null?void 0:t.value).toFixed(2)),name:`${f.f_name} ${f.l_name}`,desc:"Appointment"},ne=async()=>{y(m,"success","Appointment Booked Successfully!"),w(),g.invalidateQueries(["timeslotes"]),g.invalidateQueries(["bookedslotes"]),g.invalidateQueries(["user"]),z("/appointments")};return Y||de||le?e.jsx(J,{}):e.jsxs(u,{children:[e.jsxs(x,{justify:"center",mb:2,children:[" ",e.jsx(Se,{src:"/appoinment.png",w:100})]}),e.jsx(n,{fontSize:14,fontWeight:500,textAlign:"center",children:"Only One Step Away"})," ",e.jsx(n,{fontSize:14,fontWeight:500,textAlign:"center",children:"Pay And Book your Appointment"})," ",e.jsx(K,{my:2}),e.jsxs(u,{w:{base:"100%",md:"100%"},children:[e.jsxs(x,{justify:"space-between",mb:1,children:[" ",e.jsx(n,{fontSize:15,fontWeight:500,textAlign:"center",color:"gray.600",children:"Doctor"})," ",e.jsxs(n,{fontSize:15,fontWeight:500,textAlign:"center",color:"gray.600",children:[s.f_name," ",s.l_name]})," "]}),e.jsxs(x,{justify:"space-between",mb:1,children:[" ",e.jsx(n,{fontSize:15,fontWeight:500,textAlign:"center",color:"gray.600",children:"Patient"})," ",e.jsxs(n,{fontSize:15,fontWeight:500,textAlign:"center",color:"gray.600",children:[f.f_name," ",f.l_name]})," "]}),e.jsxs(x,{justify:"space-between",mb:1,children:[" ",e.jsx(n,{fontSize:15,fontWeight:500,textAlign:"center",color:"gray.600",children:"Appointment Type"})," ",e.jsx(n,{fontSize:15,fontWeight:500,textAlign:"center",color:"gray.600",children:i.title})," "]}),e.jsxs(x,{justify:"space-between",mb:1,children:[" ",e.jsx(n,{fontSize:15,fontWeight:500,textAlign:"center",color:"gray.600",children:"Date & Time"})," ",e.jsxs(n,{fontSize:15,fontWeight:500,textAlign:"center",color:"gray.600",children:[h||_().format("YYYY-MM-DD")," ",c?_(c.time_start,"hh:mm").format("hh:mm A"):""]})," "]}),e.jsxs(x,{justify:"space-between",mb:1,children:[" ",e.jsx(n,{fontSize:15,fontWeight:500,textAlign:"center",color:"gray.600",children:"Appointment Fee"})," ",e.jsxs(n,{fontSize:15,fontWeight:500,textAlign:"center",color:"gray.600",children:[d(i.title,s)," ",R]})," "]}),e.jsxs(x,{justify:"space-between",mb:1,children:[" ",e.jsx(n,{fontSize:15,fontWeight:500,textAlign:"center",color:"gray.600",children:"Tax"})," ",e.jsxs(n,{fontSize:15,fontWeight:500,textAlign:"center",color:"gray.600",children:[M(d(i.title,s))," ",R]})," "]}),e.jsxs(x,{justify:"space-between",mb:1,children:[" ",e.jsx(n,{fontSize:15,fontWeight:500,textAlign:"center",color:"gray.600",children:"Applied Coupon"})," ",e.jsx(n,{fontSize:15,fontWeight:500,textAlign:"center",color:"gray.600",children:(t==null?void 0:t.title)||""})," "]}),e.jsxs(x,{justify:"space-between",mb:1,children:[" ",e.jsx(n,{fontSize:15,fontWeight:500,textAlign:"center",color:"gray.600",children:"Coupon Discount"})," ",e.jsxs(n,{fontSize:15,fontWeight:500,textAlign:"center",color:"gray.600",children:[B(d(i.title,s),t==null?void 0:t.value)," ",R]})," "]})]}),e.jsx(K,{my:1}),e.jsxs(u,{w:{base:"100%",md:"100%"},children:[e.jsxs(x,{justify:"space-between",mb:1,children:[" ",e.jsx(n,{fontSize:16,fontWeight:600,textAlign:"center",color:"gray.800",children:"Total"})," ",e.jsxs(n,{fontSize:16,fontWeight:600,textAlign:"center",color:"gray.800",children:[O(d(i.title,s).toFixed(2),M(d(i.title,s).toFixed(2)),B(d(i.title,s),t==null?void 0:t.value))," ",R]})," "]}),e.jsxs(x,{gap:5,mt:5,justifyContent:{base:"space-between",md:"left"},children:[e.jsx(V,{placeholder:"Appu Coupon",w:250,size:"sm",borderRadius:8,onChange:l=>{L(l.target.value)},value:r}),e.jsx($,{size:"sm",onClick:ue,children:"Apply"})]}),e.jsx(u,{mt:5,children:e.jsx(Re,{value:S,fontWeight:500,size:"md",children:e.jsxs(Ae,{children:[e.jsx(te,{value:"1",fontWeight:700,onChange:l=>{F(l.target.value)},children:"Pay Now"}),i.id!==2&&e.jsx(te,{value:"2",fontWeight:700,onChange:l=>{L(null),o(null),F(l.target.value)},children:"Pay At Hospital"}),e.jsxs(te,{value:"3",fontWeight:700,isDisabled:d(i.title,s).toFixed(2)>(C==null?void 0:C.wallet_amount),onChange:l=>{F(l.target.value)},children:["Pay From Wallet (Available Balance ",R,C==null?void 0:C.wallet_amount,")"]})]})})}),e.jsxs($,{size:"sm",w:"100%",colorScheme:"blue",mt:5,onClick:()=>{if(!ce(c)){y(m,"error","Slot already Booked! , Please Try another slot");return}if(Z(c)){y(m,"error","Time Passed! , Please Try another slot");return}S==1?p():me()},children:["Pay ",R,O(d(i.title,s).toFixed(2),M(d(i.title,s).toFixed(2)),B(d(i.title,s),t==null?void 0:t.value)).toFixed(2)]})]}),k?e.jsxs(e.Fragment,{children:[I==="stripe"&&e.jsx(ve,{isOpen:k,onClose:P,nextFn:ne,data:ie,cancelFn:()=>P(),type:"Appointment"}),I==="razorpay"&&e.jsx(ze,{isOpen:k,onClose:P,nextFn:ne,data:ie,type:"Appointment",cancelFn:()=>P()})]}):null]})};export{et as default};