PageSourceSearch

https://smenarnabitcoin.cz/assets/Appointment-Aot1Oawx.js

js smenarnabitcoin.cz collected 2026-10-06 19:42:51 UTC 21,224 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MaterialUiDatePicker-vRODdoO2.js","assets/index-BiR4tHPa.js","assets/index-_jh7eV8n.css","assets/useMobilePicker-ChVQmibs.js","assets/useThemeProps-Bm86sZ3E.js","assets/AdapterDayjs-C_KT9Vl8.js","assets/dateViewRenderers-BEc2yG4Q.js","assets/MaterialUiTimePicker-DcoRf5gv.js","assets/timeViewRenderers-BFKL0iIh.js"])))=>i.map(i=>d[i]);
2import{R as Z,b7 as K,f as Qe,u as et,k as tt,r as o,m as at,N as J,j as t,P as nt,bX as X,h as st,n as it,bU as ot,bY as lt,bZ as ct,a1 as rt,e as v,b_ as dt,s as we,b$ as mt,c0 as pt,c1 as ut,c2 as ve,q as ht,t as ft,J as bt}from"./index-BiR4tHPa.js";import{D as j}from"./Dropdown-sAzZC80_.js";import{s as m}from"./appointment.module-DARuBOLM.js";import{r as Se}from"./doctorClinics-DEGtYf2L.js";import{p as Ce}from"./style-g158jnvn.js";import{L as De}from"./ListGroup-jd0wRWWy.js";import"./SSRProvider-DlbPITwR.js";import"./NavContext-C_dJCat9.js";import"./SelectableContext-DRNVOMH1.js";import"./Anchor-DxYk-7O_.js";import"./InputGroupContext-CWnggAZ1.js";import"./TabContext-DJN2Y-3G.js";const _t=Z.lazy(()=>K(()=>import("./MaterialUiDatePicker-vRODdoO2.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),xt=Z.lazy(()=>K(()=>import("./MaterialUiTimePicker-DcoRf5gv.js"),__vite__mapDeps([7,1,2,3,4,5,8])));Z.lazy(()=>K(()=>import("./index-BiR4tHPa.js").then(c=>c.kc),__vite__mapDeps([1,2])));const kt=()=>{var ue,he,fe,be,_e,xe,ge,ye;const{t:c}=Qe("appointment"),Q=et(),ee=tt(),[L,Le]=o.useState("Old"),[n,u]=o.useState({database_name:"yb_db",collection_name:"appointment_details",new_data:{patient_id:"",patient_name:"",doctor_name:"",doctor_id:"",doctor_patient_type:"",patient_mobile_number:"",date_time:"",date:"",time:"",status:"Scheduled",patient_type:"Old",treatment_lst:[],prescription_lst:[],reports:[],invoice_id:"",prescription_id:"",invoice_media:{},prescription_media:{},follow_up_date:"",examination:{doctor_name:"",chief_complaints:[],vitals:[],diagnosis_type:[],note:""},files:[],billing:[],booking_source:"WebApp",language_used:"en",treatment_value:{totalPrice:"0",totalTax:"0",totalShippingPrice:"0",total_discount:"0",subtotalPrice:"0"},booking_time:"",updated_at:"",comments:"",misc:{},test:[],advice:[],diagnosis:[]}}),[g,Te]=o.useState(null),[O,T]=o.useState({date:"",time:"",doctor_name:""}),[w,te]=o.useState(""),[S,ae]=o.useState(""),[y,W]=o.useState(""),[b,Y]=o.useState(""),[ne,B]=o.useState(!1),[Ae,R]=o.useState([]),[A,M]=o.useState(""),[Me,se]=o.useState(!1),[N,ke]=o.useState(0),[k,ie]=o.useState([]),[V,oe]=o.useState(""),[z,E]=o.useState(!1),[q,le]=o.useState(""),[Ee,D]=o.useState(""),[ce,H]=o.use
2State("91"),[re,$e]=o.useState(""),[Ie,gt]=o.useState(new Date),[de,Fe]=o.useState(""),[me,Pe]=o.useState({phone:"",templateName:"",body:[]});o.useState([]);const[$,Oe]=o.useState(""),[We,Ye]=o.useState([]);o.useRef(null);let pe={name:"",phone:"",doctorName:"",clinicName:"",appointmentDate:"",appointmentTime:""};const[f,I]=o.useState(pe),x=at(e=>e.doctorList),Be=async()=>{try{const e=await lt(b,w,S);console.log(e,"appointment count response"),ke(e.data)}catch(e){console.log(e,"appointment count error")}},Re=async()=>{try{const e=await ct(q);console.log(e,"old patient data response"),ie([...e.data.data])}catch(e){console.log(e,"old patient data error")}},Ve=async()=>{try{const e=await rt(V);console.log(e,"single old patient response");let s=e.data.document[0];const a=(s.phone??"").toString().trim(),i=a.startsWith("+")?a:a?`+${a}`:"",l=i?Ce(i):null,_=(l==null?void 0:l.countryCallingCode)||"91",h=(l==null?void 0:l.nationalNumber)||a.replace(/^\+/,"");H(_),D(h),u({...n,new_data:{...n.new_data,patient_name:s.name,patient_mobile_number:h?`${_}${h}`:"",patient_id:s.id}})}catch(e){console.log(e,"single old patient error")}},ze=async e=>{var i,l,_,h;e.preventDefault(),E(!0);let s=!1;const a={...pe};if((i=n.new_data.patient_name)!=null&&i.trim()||(a.name="Please enter patient name",s=!0),(!((l=n.new_data.patient_mobile_number)!=null&&l.trim())||n.new_data.patient_mobile_number.length<10)&&(a.phone="Please enter a valid phone number",s=!0),(!y||!b)&&(a.doctorName="Please select a doctor",s=!0),n.new_data.date||(a.appointmentDate="Please select appointment date",s=!0),n.new_data.time||(a.appointmentTime="Please select appointment time",s=!0),ne&&!(A!=null&&A.trim())&&(a.clinicName="Please select a clinic",s=!0),I(a),s){v("Please fill all required fields");return}E(!0);try{const r=await dt(n);if(console.log(r,"post appointment response"),E(!1),r.data.status==="Success")we("Appointment has been added successfully !"),Q("/manage-appointment"),u({...n,new_data:{...n.new_data,patient_name:"",patient_mobile_number:"",doctor_id:"",doctor_name:"",doctor_patient_type:"",date:"",time:""}}),H("91"),D(""),le(""),te(""),ae(""),W(""),Y(""),B(!1),R([]),M(""),T({date:"",time:"",doctor_name:""});else if(r.data.status==="Failure")v("Something went wrong while adding appointment !");else if(r.data.status&&r.data.status.toLowerCase().includes("exist")){const p=((_=r.data.document)==null?void 0:_[0])||((h=r.data.data)==null?void 0:h[0]);if(p){const C=p.patient_name||p.name||"",d=p.patient_mobile_number||p.phone_number||"",P=p.time||"";v(`Appointment already exists for ${C} (${d}) at ${P}`)}else v("The appointment already exist")}else v(r.data.status||"Something went wrong!");r.data.status==="Success"&&(g!=null&&g.template_name?(await qe(me),we("Appointment notification sent!")):v("Please select Appointment Confirmation template!"))}catch(r){console.error("Post appointment error:",r),v("Something went wrong")}finally{E(!1)}},qe=async()=>{try{const e=await mt(me);console.log(e,"post notification response")}catch(e){console.log(e,"post notification error")}},He=async()=>{try{const e=await pt($,"","");console.log(e,"get  patient by patient id response"),ie([...e.data.document])}catch(e){console.log(e,"get  patient by id error")}},Ue=async()=>{try{const a=((await ut()).data.document||[]).find(i=>i.notification_type==="appointment_confirmation");console.log(a,"temp"),Te(a)}catch(e){console.error("Error fetching notification templates:",e)}},F=e=>{Le(e)};console.log(n,"post patient data");const Ge=e=>{const a=J(e).format("DD, MMMM YYYY");te(a),u({...n,new_data:{...n.new_data,date:a}}),T({...O,date:a})},Je=e=>{if(!e){console.log("No time selected");return}const s=e.format("hh:mm A");console.log("Selected time:",s),u(a=>({...a,new_data:{...a.new_data,time:s}})),T(a=>({...a,time:s})),ae(s)},U=()=>{B(!1),R([]),M(""),u(e=>({...e,new_data:{...e.new_data,clinic_name:"Default"}}))},G=e=>{const{isMultiClinic:s,clinicOptions:a}=Se(e);if(B(s),R(a),!s){U();return}M(""),u(i=>({...i,new_data:{...i.new_data,clinic_name:""}}))},Xe=async(e,s)=>{var a,i;if(!e){U();return}se(!0);try{const l=(x==null?void 0:x.find(p=>((p==null?void 0:p._id)||(p==null?void 0:p.id))===e))||s;if(Se(l).isMultiClinic){G(l);return}const h=await bt(e),r=(i=(a=h==null?void 0:h.data)==null?void 0:a.document)==null?void 0:i[0];G(r||l)}catch(l){console.error("Failed to load doctor clinics:",l),G(s)}finally{se(!1)}},Ze=e=>{M(e),u(s=>({...s,new_data:{...s.new_data,clinic_name:e}})),I(s=>({...s,clinicName:""}))},Ke=e=>{if(!e){W(""),Y(""),U(),I(i=>({...i,doctorName:"Please select a doctor"}));return}const s=x==null?void 0:x.find(i=>((i==null?void 0:i._id)||(i==null?void 0:i.id))===e),a=(s==null?void 0:s.name)||"";W(e),Y(a),u(i=>({...i,new_data:{...i.new_data,doctor_id:e,doctor_name:a}})),I(i=>({...i,doctorName:""})),Xe(e,s)};return o.useEffect(()=>{if(x&&x.length>0){const e=new Map;x.forEach(a=>{const i=(a==null?void 0:a.enable)!==!1&&(a==null?void 0:a.enable)!=="false"&&(a==null?void 0:a.enable)!==0&&(a==null?void 0:a.enable)!=="0"&&(a==null?void 0:a.enable)!==null,l=(a==null?void 0:a._id)||(a==null?void 0:a.id);l&&(a!=null&&a.name)&&i&&!e.has(l)&&e.set(l,{name:a.name,value:l})});const s=Array.from(e.values());s.sort((a,i)=>a.name.localeCompare(i.name)),Ye(s)}},[x]),o.useEffect(()=>{const e=J(w+" "+S,"DD, MMMM YYYY h:mm A").format("DD, MMMM YYYY HH:mm");$e(e)},[w,S]),o.useEffect(()=>{u({...n,new_data:{...n.new_data,date_time:re}})},[re]),o.useEffect(()=>{Fe(J(Ie).format("DD, MMMM YYYY HH:mm"))},[]),o.useEffect(()=>{u({...n,new_data:{...n.new_data,booking_time:de}})},[de]),o.useEffect(()=>{y&&b&&(u({...n,new_data:{...n.new_data,doctor_id:y,doctor_name:b}}),T({...O,doctor_name:b}))},[y,b,w,S]),o.useEffect(()=>{w!==""&&b!==""&&Be()},[O]),o.useEffect(()=>{Re()},[q]),o.useEffect(()=>{V!==""&&Ve()},[V]),o.useEffect(()=>{$!==""&&He()},[$]),o.useEffect(()=>{u(e=>({...e,new_data:{...e.new_data,doctor_id:y,doctor_name:b}}))},[y,b]),o.useEffect(()=>{(async()=>{var s,a;try{if(!y){u(d=>({...d,new_data:{...d.new_data,doctor_patient_type:""}}));return}const i=(s=n==null?void 0:n.new_data)==null?void 0:s.patient_id,l=(a=n==null?void 0:n.new_data)==null?void 0:a.patient_mobile_number;if(!i&&!l){u(d=>({...d,new_data:{...d.new_data,doctor_patient_type:""}}));return}const _=d=>{var P,Ne,je;return((P=d==null?void 0:d.data)==null?void 0:P.document)||((Ne=d==null?void 0:d.data)==null?void 0:Ne.data)||((je=d==null?void 0:d.data)==null?void 0:je.documents)},h=await ve({doctorId:y,patientId:i||void 0,phone:l||void 0,limit:1});let r=_(h),p=Array.isArray(r)&&r.length>0;if(!p&&b){const d=await ve({doctorName:b,patientId:i||void 0,phone:l||void 0,limit:1});r=_(d),p=Array.isArray(r)&&r.length>0}const C=p?"Follow Up":"New";u(d=>({...d,new_data:{...d.new_data,doctor_patient_type:C}}))}catch(i){console.error("Error computing doctor_patient_type:",i),u(l=>({...l,new_data:{...l.new_data,doctor_patient_type:""}}))}})()},[y,b,(ue=n==null?void 0:n.new_data)==null?void 0:ue.patient_id,(he=n==null?void 0:n.new_data)==null?void 0:he.patient_mobile_number]),o.useEffect(()=>{var e;if(g){console.log(g,"dn");const s={phone:(e=n==null?void 0:n.new_data)==null?void 0:e.patient_mobile_number,templateName:g.template_name,language:g.language};if(g.variables&&g.variables.length>0){const a=g.variables.map(i=>{var _,h,r,p,C;let l="";switch(i){case"patient_name":l=(_=n==null?void 0:n.new_data)==null?void 0:_.patient_name;break;case"doctor_name":l=(h=n==null?void 0:n.new_data)==null?void 0:h.doctor_name;break;case"patient_mobile_number":l=phone;break;case"date":l=(r=n==null?void 0:n.new_data)==null?void 0:r.date;break;case"time":l=(p=n==null?void 0:n.new_data)==null?void 0:p.time;break;case"status":l=(C=n==null?void 0:n.new_data)==null?void 0:C.status;break;default:l=""}return{type:"text",text:l}});s.body=a}else s.body=[];Pe(s)}},[g,w,S]),o.useEffect(()=>{Ue()},[]),o.useEffect(()=>{var i;const e=(((i=n==null?void 0:n.new_data)==null?void 0:i.patient_mobile_number)||"").toString().trim(),s=e.startsWith("+")?e:e?`+${e}`:"",a=s?Ce(s):null;a!=null&&a.countryCallingCode&&H(a.countryCallingCode),a!=null&&a.nationalNumber?D(a.nationalNumber):D(e.replace(/^\+/,""))},[(fe=n==null?void 0:n.new_data)==null?void 0:fe.patient_mobile_number]),o.useEffect(()=>{(async()=>{var s,a;if(!x||x.length===0)try{const i=await ht(),_=[(s=i==null?void 0:i.data)==null?void 0:s.document,(a=i==null?void 0:i.data)==null?void 0:a.data,i==null?void 0:i.data].find(h=>Array.isArray(h))||[];ee(ft(_))}catch(i){console.log(i,"doctor list fetch error")}})()},[x,ee]),console.log(g,"ap"),t.jsxs("div",{children:[t.jsx(nt,{activeMenu:c("appointment"),motherMenu:c("bookAppointment")}),t.jsx("div",{className:"row",children:t.jsx("div",{className:"col-xl-12 col-lg-12",children:t.jsxs("div",{className:"card w-100",children:[t.jsxs("div",{className:"card-header d-block d-md-none",children:[t.jsx("label",{className:"form-label fw-semibold mb-2",children:c("patientType")}),t.jsx("div",{className:m.mobileSelectWrap,children:t.jsxs("div",{className:"d-flex align-items-center",children:[t.jsxs("select",{className:`form-select ${m.mobileSelect}`,value:L==="Old"?"Existing":"New",onChange:e=>{e.target.value==="New"?(F("New"),Q("/add-patient")):F("Old")},children:[t.jsx("option",{value:"Existing",children:c("existingPatient")}),t.jsx("option",{value:"New",children:c("newPatient")})]}),t.jsx(X,{className:m.mobileSelectIcon})]})})]}),t.jsxs("div",{className:"card-header d-none d-md-flex justify-content-center gap-4 flex-row",children:[t.jsx("button",{className:L==="Old"?`${m["selected-headline-btn"]} card-title px-3`:`${m["headline-btn"]} card-title px-3`,onClick:()=>F("Old"),children:c("existingPatient")}),t.jsx(st,{to:"/add-patient",children:t.jsx("button",{className:L==="New"?`${m["selected-headline-btn"]} card-title px-3`:`${m["headline-btn"]} card-title px-3`,onClick:()=>F("New"),children:c("newPatient")})})]}),t.jsx("form",{onSubmit:e=>ze(e),children:t.jsxs("div",{className:"card-body",children:[t.jsxs("p",{className:`${m["mandatory-indicator"]} text-danger`,children:[c("mandatoryFields")," ",t.jsx("span",{className:"text-danger",children:"*"})," ",c("areMandatory")]}),t.jsxs("div",{className:L==="Old"?"row mt-2":"d-none",children:[t.jsx("div",{className:"col-md-6",children:t.jsxs("div",{className:`form-group ${m["search-field"]}`,children:[t.jsxs("label",{htmlFor:"",style:{color:"#000000",fontWeight:"bold"},className:"mb-2",children:[c("searchPatientLabel"),t.jsx("span",{className:"text-danger",style:{fontWeight:"bold"},children:"*"})]}),t.jsxs(j,{drop:"down",flip:!1,popperConfig:{strategy:"fixed"},"data-bs-display":"static",container:"body",children:[t.jsxs(j.Toggle,{variant:"none",style:{width:"100%",padding:"0"},"data-bs-display":"static",children:[t.jsx("div",{className:`form-control input-default d-flex align-items-center ${m.inputBoxWrap}`,children:t.jsx("input",{type:"text",className:`${m["mobile-num-inp"]} border-0`,placeholder:c("searchPlaceholder"),onChange:e=>le(e.target.value),value:q,maxLength:10,style:{backgroundColor:"transparent",outline:"none",width:"100%"}})}),t.jsx(X,{style:{position:"absolute",right:"10px",top:"50%",transform:"translateY(-50%)"}})]}),t.jsx(j.Menu,{className:`${m.mobileDropMenu} ${k.length===0?"invisible":""}`,style:{zIndex:1070,marginTop:"40px"},children:k.map(e=>t.jsxs(j.Item,{className:m.mobileDropItem,onClick:()=>oe(e._id),children:[t.jsx("span",{style:{color:"#0b5ed7"},children:t.jsx("strong",{children:e.name.slice(0,20)})})," ,",t.jsxs("span",{style:{color:"#475569"},children:[" ",c("patientIdLabel"),": "]}),e.id," ,",t.jsxs("span",{style:{color:"#475569"},children:[" ",c("mobileNumberLabel"),":"]})," +",e.phone]}
2,e._id))})]})]})}),t.jsx("div",{className:"col-md-6 mt-4 mt-md-0",children:t.jsxs("div",{className:`form-group ${m["search-field"]}`,children:[t.jsx("label",{htmlFor:"",style:{color:"#000000",fontWeight:"bold"},className:"mb-2",children:c("searchByIdLabel")}),t.jsxs(j,{drop:"down",flip:!1,popperConfig:{strategy:"fixed"},"data-bs-display":"static",container:"body",children:[t.jsxs(j.Toggle,{variant:"none",style:{width:"100%",padding:"0"},"data-bs-display":"static",children:[t.jsx("div",{className:`form-control input-default d-flex align-items-center ${m.inputBoxWrap}`,children:t.jsx("input",{type:"number",className:`${m["mobile-num-inp"]} border-0`,placeholder:c("searchByIdPlaceholder"),onChange:e=>Oe(e.target.value),value:$,style:{backgroundColor:"transparent",outline:"none",width:"100%"}})}),t.jsx(X,{style:{position:"absolute",right:"10px",top:"50%",transform:"translateY(-50%)"}})]}),t.jsx(j.Menu,{className:`${m.mobileDropMenu} ${k.length===0?"invisible":""}`,style:{zIndex:1070,marginTop:"40px"},children:k.map(e=>t.jsxs(j.Item,{className:m.mobileDropItem,onClick:()=>oe(e._id),children:[t.jsx("span",{style:{color:"#0b5ed7"},children:t.jsx("strong",{children:e.name.slice(0,20)})})," ,",t.jsxs("span",{style:{color:"#475569"},children:[" ",c("patientIdLabel"),": "]}),e.id," ,",t.jsxs("span",{style:{color:"#475569"},children:[" ",c("mobileNumberLabel"),":"]})," +",e.phone]},e._id))})]})]})})]}),t.jsxs("div",{className:`${m["grid-container"]} basic-form`,children:[t.jsxs("div",{className:"form-group mt-4",children:[t.jsxs("label",{htmlFor:"",style:{color:"#000000",fontWeight:"bold"},className:"mb-2",children:[c("patientNameLabel")," ",t.jsx("span",{className:"text-danger",children:"*"})]}),t.jsx("input",{type:"text",className:"form-control input-default",placeholder:c("patientNamePlaceholder"),style:{backgroundColor:"#f6f5f5",border:"1px solid #ccc",borderRadius:"4px",height:"40px"},value:n.new_data.patient_name}),f.name&&t.jsx("div",{className:"text-danger fs-12",children:f.name})]}),t.jsxs("div",{className:"form-group mt-4",children:[t.jsxs("label",{htmlFor:"",style:{color:"#000000",fontWeight:"bold"},className:"mb-2",children:[c("mobileNumberLabel")," ",t.jsx("span",{className:"text-danger",children:"*"})]}),t.jsxs("div",{className:"form-control input-default d-flex align-items-center",style:{backgroundColor:"#f6f5f5",border:"1px solid #ccc",borderRadius:"4px",height:"40px",minHeight:"40px",gap:"2px"},children:[t.jsxs("span",{style:{whiteSpace:"nowrap",display:"inline-block"},children:["+",ce]}),t.jsx("input",{type:"tel",className:`${m["mobile-num-inp"]} border-0`,style:{flex:1,backgroundColor:"#f6f5f5",border:"none",outline:"none",paddingLeft:0},value:Ee,maxLength:15,onChange:e=>{const s=e.target.value.replace(/\D/g,"");D(s),u(a=>({...a,new_data:{...a.new_data,patient_mobile_number:s?`${ce}${s}`:""}}))}})]}),f.phone&&t.jsx("div",{className:"text-danger fs-12",children:f.phone})]}),t.jsxs("div",{className:"form-group mt-2",children:[t.jsxs("label",{style:{color:"#000000",fontWeight:"bold"},htmlFor:"",className:"mb-2",children:[c("doctorNameLabel")," ",t.jsx("span",{className:"text-danger",style:{fontWeight:"bold"},children:"*"})," "]}),t.jsxs("div",{children:[t.jsxs("div",{className:"position-relative",children:[t.jsxs("select",{className:`form-select ${f.doctorName?"is-invalid":""}`,style:{height:"38px",borderColor:f.doctorName?"#dc3545":"#ced4da",color:y?"#212529":"#6c757d"},value:y||"",onChange:e=>Ke(e.target.value||null),required:!0,children:[t.jsx("option",{value:"",disabled:!0,children:"Select a doctor"}),We.map(e=>t.jsx("option",{value:e.value,children:e.name},e.value))]}),f.doctorName&&t.jsx("div",{className:"invalid-feedback d-block",children:f.doctorName})]}),f.doctorName&&t.jsx("div",{className:"text-danger fs-12 mt-1",children:"Please select a valid doctor"})]})]}),ne&&t.jsxs("div",{className:"form-group mt-2",children:[t.jsxs("label",{style:{color:"#000000",fontWeight:"bold"},className:"mb-2",children:[c("clinicNameLabel",{defaultValue:"Clinic"})," ",t.jsx("span",{className:"text-danger",style:{fontWeight:"bold"},children:"*"})]}),t.jsxs("select",{className:`form-select ${f.clinicName?"is-invalid":""}`,value:A||"",onChange:e=>Ze(e.target.value),required:!0,children:[t.jsx("option",{value:"",disabled:!0,children:Me?c("loading",{defaultValue:"Loading..."}):c("selectClinic",{defaultValue:"Select clinic"})}),Ae.map(e=>t.jsx("option",{value:e.value,children:e.name},e.value))]}),f.clinicName&&t.jsx("div",{className:"text-danger fs-12",children:f.clinicName})]}),t.jsxs("div",{className:"form-group mt-2 d-flex flex-column",children:[t.jsxs("label",{htmlFor:"",style:{color:"#000000",fontWeight:"bold"},className:"mb-2",children:[c("appointmentDateLabel")," ",t.jsx("span",{className:"text-danger",style:{fontWeight:"bold"},children:"*"})," "]}),t.jsx("div",{children:t.jsx(_t,{dateSelect:Ge,selectedValue:n.new_data.date,minDate:new Date})}),f.appointmentDate&&t.jsx("div",{className:"text-danger fs-12",children:f.appointmentDate})]}),t.jsxs("div",{className:`form-group mt-2 d-flex flex-column ${m.fullRowDesktop}`,children:[t.jsxs("label",{htmlFor:"",style:{color:"#000000",fontWeight:"bold"},className:"mb-2",children:[c("slotBookingTimeLabel")," ",t.jsx("span",{className:"text-danger",style:{fontWeight:"bold"},children:"*"})]}),t.jsx("div",{children:t.jsx(xt,{timeSelect:Je,selectedValue:S,selectedDate:w})}),f.appointmentTime&&t.jsx("div",{className:"text-danger fs-12",children:f.appointmentTime})]})]}),t.jsxs("div",{className:"d-flex justify-content-center align-items-center gap-5 mt-4",children:[(N==null?void 0:N.document)&&b!==""&&t.jsxs("h5",{children:[c("patientCount"),": ",N.count]}),t.jsx(it,{variant:"primary",type:"submit",className:"d-flex align-items-center justify-content-center gap-2",style:{transition:"all 0.3s ease",display:"inline-flex",minWidth:"120px",height:"38px"},onMouseEnter:e=>!z&&(e.target.style.transform="scale(1.1)"),onMouseLeave:e=>e.target.style.transform="scale(1)",disabled:z||!((_e=(be=n==null?void 0:n.new_data)==null?void 0:be.patient_name)!=null&&_e.trim())||!y||!((xe=n==null?void 0:n.new_data)!=null&&xe.date)||!((ge=n==null?void 0:n.new_data)!=null&&ge.time)||!((ye=n==null?void 0:n.new_data)!=null&&ye.doctor_name),children:z?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"spinner-border spinner-border-sm",role:"status"}),c("submit")]}):c("submit")})]}),(N==null?void 0:N.document)&&b!==""&&N.count!==0&&t.jsxs(De,{children:[c("patientNameLabel"),t.jsx(De.Item,{children:t.jsxs(ot,{children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:c("patientNameLabel")}),t.jsx("th",{children:c("mobileNumberLabel")})]})}),t.jsx("tbody",{children:N==null?void 0:N.document.map((e,s)=>t.jsxs("tr",{children:[t.jsx("td",{children:e.patient_name}),t.jsxs("td",{children:["+",e.patient_mobile_number]})]}))})]})})]})]})})]})})})]})};export{kt as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.