import{j as P,R as V,bb as D,b0 as I,l as A,p as i,a2 as n,t as s,w as a,a6 as x,B as t,ap as B,q as v,bm as z,F as c,a9 as F,a4 as p,H as d,C as o,A as _,c7 as j,aY as N,a_ as R,ao as T,bK as $,D as E,b5 as U,_ as L}from"./dashboard-practitioner-b373edf1.js";import{_ as q,g as H}from"./SearchPageHelper-1832333f.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},f=new Error().stack;f&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[f]="10639e9b-b772-4a45-a1be-5ecf068bab37",e._sentryDebugIdIdentifier="sentry-dbid-10639e9b-b772-4a45-a1be-5ecf068bab37")}catch{}})();const ne="/assets/wave_green_top-5449d714.svg",K={class:"practitioner-card"},O={style:{position:"relative",width:"fit-content",height:"fit-content"}},S={key:0,class:"ma-2 elevation-2 visio-icon cursor-pointer"},Y={key:0,class:"text-center"},G={class:"text-primary font-weight-medium text-caption"},J={class:"d-flex align-center mx-auto"},M={class:"ms-1 text-green text-caption"},Q={class:"d-flex justify-content-between"},W={class:"text-primary font-weight-bold d-flex align-center"},X={class:"text-dark-green font-weight-semibold"},Z={class:"mb-2 mt-3"},ee={key:0,class:"text-gray-80"},te={key:1,class:"d-flex align-center"},se={key:2,class:"text-secondary"},ae={class:"d-flex align-center justify-content-between"},ie={key:0,class:"text-secondary mr-2 font-weight-bold"},oe=P({__name:"PractitionerCard",props:{profile:Object},emits:["update:reload"],setup(e,{emit:f}){const{profile:l}=e,{t:g}=V();D();const w=I(),k=f,b=async()=>{if(w.name==="PractitionerPublicProfile")return k("update:reload",{profile:l}),!1;const r=l.nextAppointment??"";await H(r,l.address,l.mainDiscipline.slug,l.address.city,l.slug,!1)},C=A(()=>{const r=l.mainDiscipline.label;return r.length>10?r.slice(0,10)+"…":r});return(r,u)=>(i(),n("div",K,[s(U,{class:""},{default:a(()=>[s(x,{cols:"2"},{default:a(()=>[t("div",O,[s(B,{size:"80",onClick:b,class:"cursor-pointer"},{default:a(()=>{var m,y,h;return[(m=e.profile)!=null&&m.avatarUrl?c("",!0):(i(),v(z,{key:0,class:"",color:"#fff"})),(y=e.profile)!=null&&y.avatarUrl?(i(),v(F,{key:1,eager:"",src:(h=e.profile)==null?void 0:h.avatarUrl,cover:!0},null,8,["src"])):c("",!0)]}),_:1}),e.profile.remoteAllowed?(i(),n("div",S,[s(p,{size:"small",color:"white"},{default:a(()=>[d("mdi-video-outline")]),_:1})])):c("",!0)]),e.profile.reviewPercentage>=3?(i(),n("div",Y,[t("span",G,o(_(g)("home.reviews",{count:`${e.profile.reviews}`})),1),t("div",J,[s(q,{width:"25px",class:"mr-1"}),s(j,{location:"bottom start",tile:"","model-value":e.profile.reviewPercentage,height:6,rounded:"pill","bg-color":"primary",color:"green",class:""},null,8,["model-value"]),t("div",M,o(e.profile.reviewPercentage)+"% ",1)])])):c("",!0)]),_:1}),s(x,{cols:"10",class:"d-flex flex-column justify-content-between ps-10 pt0"},{default:a(()=>[t("div",null,[t("div",Q,[t("div",W,[t("span",{class:"mr-1 cursor-pointer",onClick:u[0]||(u[0]=()=>b())},o(e.profile.practitionerName),1),e.profile.verified?(i(),v(p,{key:0,size:"x-small",color:"#3DC8DB"},{default:a(()=>[d("mdi-check-circle")]),_:1})):c("",!0)]),s(N,{density:"compact",location:"top",text:e.profile.mainDiscipline.label},{activator:a(({props:m})=>[s(R,T(m,{variant:"flat",density:"comfortable",color:"#EAF3FF",size:"small",class:"cursor-pointer font-weight-medium discipline-label w-50 pa-1"}),{default:a(()=>[t("span",X,o(C.value),1)]),_:2},1040)]),_:1},8,["text"])]),t("div",Z,[e.profile.addresses[0].remote?(i(),n("div",te,[s(p,{color:"secondary",size:"20",class:"mr-1"},{default:a(()=>[d("mdi-video-outline")]),_:1}),d(" "+o(r.$t("profile.teleconsultation")),1)])):(i(),n("div",ee,[s(p,{class:"pb-1"},{default:a(()=>[d("mdi-map-marker-outline")]),_:1}),t("span",null,o(_($)(e.profile.addresses[0])),1)])),e.profile.addresses[0].remote?c("",!0):(i(),n("div",se,o(e.profile.address.hint),1))])]),t("div",null,[t("div",ae,[e.profile.priceFrom?(i(),n("span",ie,"A partir de "+o(e.profile.priceFrom)+"€",1)):c("",!0),s(E,{color:"blue",onClick:u[1]||(u[1]=()=>b()),size:"small",slim:""},{default:a(()=>[d(o(_(g)("home.schedule_a_meeting")),1)]),_:1})])])]),_:1})]),_:1})]))}});const ce=L(oe,[["__scopeId","data-v-a661a538"]]);export{ce as P,ne as _}; //# sourceMappingURL=PractitionerCard-19d7716e.js.map