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