import{o as C,a0 as P,bj as D,aV as I,q as z,u as i,aa as n,z as s,y as a,ag as x,J as t,ay as A,v as g,bx as j,M as c,aj as B,a4 as p,O as d,K as o,H as _,cp as F,V as N,b7 as T,b as $,bV as E,L,bd as R,_ as U}from"./dashboard-practitioner-8196694d.js";import{_ as O,g as q}from"./SearchPageHelper-f2a7ee97.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]="73702a19-8241-4264-a4c7-2d6a9910fa88",e._sentryDebugIdIdentifier="sentry-dbid-73702a19-8241-4264-a4c7-2d6a9910fa88")}catch{}})();const ne="/assets/wave_green_top-5449d714.svg",H={class:"practitioner-card"},J={style:{position:"relative",width:"fit-content",height:"fit-content"}},K={key:0,class:"ma-2 elevation-2 visio-icon cursor-pointer"},M={key:0,class:"text-center"},S={class:"text-primary font-weight-medium text-caption"},G={class:"d-flex align-center mx-auto"},Q={class:"ms-1 text-green text-caption"},W={class:"d-flex justify-content-between"},X={class:"text-primary font-weight-bold d-flex align-center"},Y={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=C({__name:"PractitionerCard",props:{profile:Object},emits:["update:reload"],setup(e,{emit:f}){const{profile:l}=e,{t:y}=P();D();const w=I(),k=f,v=async()=>{if(w.name==="PractitionerPublicProfile")return k("update:reload",{profile:l}),!1;const r=l.nextAppointment??"";await q(r,l.address,l.mainDiscipline.slug,l.address.city,l.slug,!1)},V=z(()=>{const r=l.mainDiscipline.label;return r.length>10?r.slice(0,10)+"…":r});return(r,u)=>(i(),n("div",H,[s(R,{class:""},{default:a(()=>[s(x,{cols:"2"},{default:a(()=>[t("div",J,[s(A,{size:"80",onClick:v,class:"cursor-pointer"},{default:a(()=>{var m,h,b;return[(m=e.profile)!=null&&m.avatarUrl?c("",!0):(i(),g(j,{key:0,class:"",color:"#fff"})),(h=e.profile)!=null&&h.avatarUrl?(i(),g(B,{key:1,eager:"",src:(b=e.profile)==null?void 0:b.avatarUrl,cover:!0},null,8,["src"])):c("",!0)]}),_:1}),e.profile.remoteAllowed?(i(),n("div",K,[s(p,{size:"small",color:"white"},{default:a(()=>[d("mdi-video-outline")]),_:1})])):c("",!0)]),e.profile.reviewPercentage>=3?(i(),n("div",M,[t("span",S,o(_(y)("home.reviews",{count:`${e.profile.reviews}`})),1),t("div",G,[s(O,{width:"25px",class:"mr-1"}),s(F,{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",Q,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",W,[t("div",X,[t("span",{class:"mr-1 cursor-pointer",onClick:u[0]||(u[0]=()=>v())},o(e.profile.practitionerName),1),e.profile.verified?(i(),g(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(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",Y,o(V.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)(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(L,{color:"blue",onClick:u[1]||(u[1]=()=>v()),size:"small",slim:""},{default:a(()=>[d(o(_(y)("home.schedule_a_meeting")),1)]),_:1})])])]),_:1})]),_:1})]))}});const ce=U(oe,[["__scopeId","data-v-a661a538"]]);export{ce as P,ne as _};
//# sourceMappingURL=PractitionerCard-ded1d002.js.map