import{g as C,J as P,aL as V,ap as D,l as a,X as r,q as s,w as i,a1 as w,z as t,a$ as I,n as v,ba as A,C as n,af as z,$ as f,F as c,A as o,y as _,bo as B,ao as F,b9 as $,B as N,at as j,_ as E}from"./dashboard-practitioner-21912ae8.js";import{_ as R,g as T}from"./SearchPageHelper-48cfa1b1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="599b85a4-13ed-4ada-8512-dee398413d9d",e._sentryDebugIdIdentifier="sentry-dbid-599b85a4-13ed-4ada-8512-dee398413d9d")}catch{}})();const ie="/assets/wave_green_top-5449d714.svg",U={class:"practitioner-card"},L={style:{position:"relative",width:"fit-content",height:"fit-content"}},q={key:0,class:"ma-2 elevation-2 visio-icon cursor-pointer"},J={key:0,class:"text-center"},O={class:"text-primary font-weight-medium text-caption"},S={class:"d-flex align-center mx-auto"},X={class:"ms-1 text-green text-caption"},G={class:"d-flex justify-content-between"},H={class:"text-primary font-weight-bold d-flex align-center"},K={class:"text-dark-green font-weight-semibold"},M={class:"mb-2 mt-3"},Q={key:0,class:"text-gray-80"},W={key:1,class:"d-flex align-center"},Y={key:2,class:"text-secondary"},Z={class:"d-flex align-center justify-content-between"},ee={key:0,class:"text-secondary mr-2 font-weight-bold"},te=C({__name:"PractitionerCard",props:{profile:Object},emits:["update:reload"],setup(e,{emit:d}){const{profile:l}=e,{t:p}=P();V();const x=D(),k=d,u=async()=>{if(x.name==="PractitionerPublicProfile")return k("update:reload",{profile:l}),!1;const m=l.nextAppointment??"";await T(m,l.address,l.mainDiscipline.slug,l.address.city,l.slug,!1)};return(m,g)=>(a(),r("div",U,[s(j,{class:""},{default:i(()=>[s(w,{cols:"2"},{default:i(()=>[t("div",L,[s(I,{size:"80",onClick:u,class:"cursor-pointer"},{default:i(()=>{var y,h,b;return[(y=e.profile)!=null&&y.avatarUrl?n("",!0):(a(),v(A,{key:0,class:"",color:"#fff"})),(h=e.profile)!=null&&h.avatarUrl?(a(),v(z,{key:1,eager:"",src:(b=e.profile)==null?void 0:b.avatarUrl,cover:!0},null,8,["src"])):n("",!0)]}),_:1}),e.profile.remoteAllowed?(a(),r("div",q,[s(f,{size:"small",color:"white"},{default:i(()=>[c("mdi-video-outline")]),_:1})])):n("",!0)]),e.profile.reviewPercentage>=3?(a(),r("div",J,[t("span",O,o(_(p)("home.reviews",{count:`${e.profile.reviews}`})),1),t("div",S,[s(R,{width:"25px",class:"mr-1"}),s(B,{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",X,o(e.profile.reviewPercentage)+"% ",1)])])):n("",!0)]),_:1}),s(w,{cols:"10",class:"d-flex flex-column justify-content-between ps-10 pt0"},{default:i(()=>[t("div",null,[t("div",G,[t("div",H,[t("span",{class:"mr-1 cursor-pointer",onClick:u},o(e.profile.practitionerName),1),e.profile.verified?(a(),v(f,{key:0,size:"x-small",color:"#3DC8DB"},{default:i(()=>[c("mdi-check-circle")]),_:1})):n("",!0)]),s(F,{variant:"flat",density:"comfortable",color:"#EAF3FF",size:"small",class:"font-weight-medium discipline-label w-50 pa-1"},{default:i(()=>[t("span",K,o(e.profile.mainDiscipline.label),1)]),_:1})]),t("div",M,[e.profile.addresses[0].remote?(a(),r("div",W,[s(f,{color:"secondary",size:"20",class:"mr-1"},{default:i(()=>[c("mdi-video-outline")]),_:1}),c(" "+o(m.$t("profile.teleconsultation")),1)])):(a(),r("div",Q,[s(f,{class:"pb-1"},{default:i(()=>[c("mdi-map-marker-outline")]),_:1}),t("span",null,o(_($)(e.profile.addresses[0])),1)])),e.profile.addresses[0].remote?n("",!0):(a(),r("div",Y,o(e.profile.address.hint),1))])]),t("div",null,[t("div",Z,[e.profile.priceFrom?(a(),r("span",ee,"A partir de "+o(e.profile.priceFrom)+"€",1)):n("",!0),s(N,{color:"blue",onClick:g[0]||(g[0]=()=>u()),size:"small",slim:""},{default:i(()=>[c(o(_(p)("home.schedule_a_meeting")),1)]),_:1})])])]),_:1})]),_:1})]))}});const oe=E(te,[["__scopeId","data-v-25cabae0"]]);export{oe as P,ie as _};
//# sourceMappingURL=PractitionerCard-01d53d19.js.map