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 y,z as t,b1 as I,n as u,bc as B,C as l,af as z,$ as m,F as d,A as a,y as _,bq as A,ao as N,bb as j,B as $,at as F,_ as R}from"./dashboard-practitioner-a132c09a.js";import{_ as U}from"./Logo-c113b84d.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]="d2ab5f79-3464-4be7-a546-572f062b4bf9",e._sentryDebugIdIdentifier="sentry-dbid-d2ab5f79-3464-4be7-a546-572f062b4bf9")}catch{}})();const ie="/assets/wave_green_top-5449d714.svg",q={class:"practitioner-card"},E={style:{position:"relative",width:"fit-content",height:"fit-content"}},L={key:0,class:"ma-2 elevation-2 visio-icon cursor-pointer"},S={key:0,class:"text-center"},T={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",q,[s(F,{class:""},{default:i(()=>[s(y,{cols:"2"},{default:i(()=>[t("div",E,[s(I,{size:"80",onClick:f,class:"cursor-pointer"},{default:i(()=>{var b,h,g;return[(b=e.profile)!=null&&b.avatarUrl?l("",!0):(o(),u(B,{key:0,class:"",color:"#fff"})),(h=e.profile)!=null&&h.avatarUrl?(o(),u(z,{key:1,src:(g=e.profile)==null?void 0:g.avatarUrl,cover:!0},null,8,["src"])):l("",!0)]}),_:1}),e.profile.remoteAllowed?(o(),c("div",L,[s(m,{size:"small",color:"white"},{default:i(()=>[d("mdi-video-outline")]),_:1})])):l("",!0)]),e.profile.reviews>=3?(o(),c("div",S,[t("span",T,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(y,{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(_(j)(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($,{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-9aaed009.js.map