import{g as P,J as V,aL as D,ap as I,j as A,l as i,X as n,q as s,w as a,a1 as x,z as t,a$ as z,n as b,ba as B,C as c,af as F,$ as p,F as d,A as o,y as g,bo as $,ak as j,ao as N,al as T,b9 as E,B as L,at as R,_ as U}from"./dashboard-practitioner-dff10904.js";import{_ as q,g as J}from"./SearchPageHelper-965738fc.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]="b0afb386-badb-4319-88b3-b815cf3e1ed4",e._sentryDebugIdIdentifier="sentry-dbid-b0afb386-badb-4319-88b3-b815cf3e1ed4")}catch{}})();const ne="/assets/wave_green_top-5449d714.svg",O={class:"practitioner-card"},S={style:{position:"relative",width:"fit-content",height:"fit-content"}},X={key:0,class:"ma-2 elevation-2 visio-icon cursor-pointer"},G={key:0,class:"text-center"},H={class:"text-primary font-weight-medium text-caption"},K={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"},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=P({__name:"PractitionerCard",props:{profile:Object},emits:["update:reload"],setup(e,{emit:f}){const{profile:l}=e,{t:_}=V();D();const w=I(),k=f,v=async()=>{if(w.name==="PractitionerPublicProfile")return k("update:reload",{profile:l}),!1;const r=l.nextAppointment??"";await J(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",O,[s(R,{class:""},{default:a(()=>[s(x,{cols:"2"},{default:a(()=>[t("div",S,[s(z,{size:"80",onClick:v,class:"cursor-pointer"},{default:a(()=>{var m,y,h;return[(m=e.profile)!=null&&m.avatarUrl?c("",!0):(i(),b(B,{key:0,class:"",color:"#fff"})),(y=e.profile)!=null&&y.avatarUrl?(i(),b(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",X,[s(p,{size:"small",color:"white"},{default:a(()=>[d("mdi-video-outline")]),_:1})])):c("",!0)]),e.profile.reviewPercentage>=3?(i(),n("div",G,[t("span",H,o(g(_)("home.reviews",{count:`${e.profile.reviews}`})),1),t("div",K,[s(q,{width:"25px",class:"mr-1"}),s($,{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]=()=>v())},o(e.profile.practitionerName),1),e.profile.verified?(i(),b(p,{key:0,size:"x-small",color:"#3DC8DB"},{default:a(()=>[d("mdi-check-circle")]),_:1})):c("",!0)]),s(j,{density:"compact",location:"top",text:e.profile.mainDiscipline.label},{activator:a(({props:m})=>[s(N,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(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(g(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(g(_)("home.schedule_a_meeting")),1)]),_:1})])])]),_:1})]),_:1})]))}});const ce=U(oe,[["__scopeId","data-v-fe9ea0f4"]]);export{ce as P,ne as _};
//# sourceMappingURL=PractitionerCard-f082a085.js.map