import{a as d,v,Q as g,P as w,R as _,_ as m,a3 as x,D as s,z as e,U as n,y as i,I as r}from"./EchoChannel-Bg1-kez_.js";const y={class:"flex flex-col lg:flex-row justify-left gap-4 items-center"},V={class:"h-24 w-24 lg:h-36 lg:w-36"},H=["src"],M={class:"h-fit flex flex-col justify-between"},k={class:"text-sm flex flex-col mt-2 gap-2"},B={class:"text-qorus-grey-mid font-light"},N={class:"text-qorus-grey-mid font-light"},b={key:0,class:"flex gap-2 items-center text-xs uppercase leading-none"},Z={class:"pt-[2px]"},q={class:"flex gap-x-2 mt-auto h-4 mt-2"},j={key:0},A=["title","href"],I={key:1},L=["title","href"],U=["innerHTML"],$={__name:"ContactPopUp",props:{popup:{type:Boolean,required:!0},contactId:{type:Number,required:!0}},emits:["close"],setup(u,{emit:p}){const c=u,f=p,t=d({}),a=d(!0);v(()=>{c.contactId!==null&&C()});const C=async()=>{a.value=!0;try{const o=await fetch(`/popup/contact/${c.contactId}`,{headers:{"X-Requested-With":"XMLHttpRequest"}});t.value=await o.json(),a.value=!1}catch(o){console.error(o),a.value=!1}};function h(){return f("close")}return(o,l)=>(s(),g(x,{to:"body"},[w(m,{"full-width":!0,popup:u.popup,"onUpdate:popup":h},{default:_(()=>[e("div",y,[e("figure",V,[e("img",{class:"rounded-full h-full w-full object-cover",src:t.value.portraitUrl},null,8,H)]),e("div",M,[e("h2",null,n(t.value.fullName),1),e("p",k,[e("span",B,n(t.value.accountName),1),e("span",N,n(t.value.job_title),1),t.value.country?(s(),i("span",b,[l[0]||(l[0]=e("svg",{width:"12",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 4.2C0 1.878 1.78857 0 4 0C6.21143 0 8 1.878 8 4.2C8 7.35 4 12 4 12C4 12 0 7.35 0 4.2ZM2.5 4C2.5 4.828 3.172 5.5 4 5.5C4.828 5.5 5.5 4.828 5.5 4C5.5 3.172 4.828 2.5 4 2.5C3.172 2.5 2.5 3.172 2.5 4Z",fill:"#A0A0A0"})],-1)),e("span",Z,n(t.value.country),1)])):r("",!0),l[1]||(l[1]=e("br",null,null,-1))]),e("ul",q,[t.value.linkedin?(s(),i("li",j,[e("a",{title:`Go to ${t.value.fullName}'s LinkedIn page.`,href:t.value.linkedin},l[2]||(l[2]=[e("svg",{width:"20",height:"20",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M38.9804 37.9797H32.5228V26.6006C32.5228 23.9554 31.5878 22.1502 29.2509 22.1502C27.4667 22.1502 26.405 23.3678 25.9373 24.5431C25.7676 24.9628 25.7246 25.5508 25.7246 26.139V37.9797H19.267V23.9971C19.267 21.4361 19.1821 19.2947 19.0973 17.447H24.7051L25.0029 20.3024H25.1302C25.9798 18.9584 28.0619 16.9848 31.5457 16.9848C35.7945 16.9848 38.9804 19.7986 38.9804 25.8449V37.9797ZM12.1304 14.9276C10.0916 14.9276 8.77448 13.4995 8.77448 11.7364C8.77448 9.93115 10.1338 8.54552 12.2153 8.54552C14.2971 8.54552 15.5718 9.93115 15.6143 11.7364C15.6143 13.4995 14.2971 14.9276 12.1304 14.9276ZM8.94422 37.9797H15.4021V17.447H8.94422V37.9797ZM43.1608 0H4.83922C2.16612 0 0 2.14824 0 4.79865V43.2016C0 45.8518 2.16612 48 4.83922 48H43.1608C45.8339 48 48 45.8518 48 43.2016V4.79865C48 2.14824 45.8339 0 43.1608 0Z",fill:"#006699"})],-1)]),8,A)])):r("",!0),t.value.twitter?(s(),i("li",I,[e("a",{title:`Go to ${t.value.fullName}'s Twitter page.`,href:t.value.twitter},l[3]||(l[3]=[e("svg",{width:"20",height:"20",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M48 8.73528C46.2363 9.53846 44.3374 10.0816 42.3455 10.3243C44.3796 9.0762 45.9405 7.09715 46.6758 4.73962C44.7713 5.89527 42.6667 6.73601 40.4184 7.18671C38.6265 5.22499 36.0655 4 33.2312 4C27.7964 4 23.3872 8.52149 23.3872 14.0975C23.3872 14.8891 23.4717 15.6576 23.6408 16.3973C15.4562 15.9754 8.20144 11.9596 3.34143 5.84326C2.4934 7.33983 2.0088 9.0762 2.0088 10.9252C2.0088 14.4269 3.74714 17.5182 6.38986 19.3297C4.77831 19.2806 3.25691 18.8212 1.9271 18.0701V18.1943C1.9271 23.0885 5.32206 27.1708 9.8299 28.0953C9.0044 28.3322 8.13383 28.4507 7.23508 28.4507C6.60116 28.4507 5.98133 28.39 5.38123 28.2716C6.63497 32.2817 10.2694 35.2026 14.58 35.2806C11.2104 37.9906 6.96179 39.6056 2.34971 39.6056C1.5552 39.6056 0.769149 39.5594 0 39.467C4.35851 42.3272 9.53689 44 15.0956 44C33.2115 44 43.1146 28.6154 43.1146 15.2705C43.1146 14.8313 43.1062 14.3922 43.0893 13.9617C45.0136 12.5374 46.6843 10.7606 48 8.73528Z",fill:"#00AAEC"})],-1)]),8,L)])):r("",!0)])])]),e("div",{class:"mt-4 overflow-y-auto !leading-relaxed font-light",innerHTML:t.value.bio},null,8,U)]),_:1},8,["popup"])]))}};export{$ as default};