1import{a as A}from"./DNETjoAQ.js";import{D as E,r as T,t as r,k as n,f as o,j as e,n as H,q as s,g as c,h as f,i as h,H as v,x as i,y as F,l as S,P as I,o as q,F as V,m as $}from"./BkabUvrQ.js";import J from"./jD8QcAEh.js";const K={class:"flex flex-col gap-y-global pt-global"},Q=["innerHTML"],U=["textContent"],W={key:0},X=["innerHTML"],Y={key:1,class:"flex flex-col gap-2"},ee=["innerHTML","href"],te=["innerHTML","href"],le=["innerHTML"],ae={key:2,class:"mt-auto translate-y-[-3px] translate-x-[1px]"},ne={__name:"EmployeeContactCard",props:{employee:{type:Object,default:function(){return{}}},showDesc:{type:Boolean,default:!1},type:{type:String,default:"tall"},supHeadline:{type:String,default:"tall"},showEmployeeTagline:{type:Boolean,default:!1}},setup(u){const C=E(),p=u,t=T(p.employee);T(p.employee.acf?.board_info);const g=r(()=>p.showEmployeeTagline&&t.value.acf?.tagline?t.value.acf.tagline:p.supHeadline||"Reach out to"),a=()=>C.getCurrentBreakpoint==="smmd"?["employee"]:["card_vert_medium","card_vert_large","card_vert"];return(l,w)=>{const b=J,y=F,x=S;return n(),o("div",{class:i(["flex flex-col",p.type==="tall"?"flex-col":"flex-col md:flex-row md:gap-x-global"])},[e(t).featured_image_object?(n(),H(b,{key:0,imageObject:e(t).featured_image_object,alt:e(t).name,crops:a(),classes:"w-full h-full object-cover object-top",class:"w-full gh-4 md:gh-3 pt-global"},null,8,["imageObject","alt","crops"])):s("",!0),c("div",{class:i(["w-full",p.type==="tall"?"":"flex items-end"])},[f(x,{class:i(p.type==="tall"?"":"md:flex md:items-end md:translate-y-[3px]")},{default:h(()=>[c("div",K,[c("p",{class:"text-xs m-0",innerHTML:e(g)},null,8,Q),c("h5",{class:"m-0",textContent:v(e(t).post_title??e(t).post_title)},null,8,U),e(t).acf.title||e(t).acf.phone||e(t).acf.email?(n(),o("div",W,[e(t).acf.title?(n(),o("p",{key:0,class:"mb-0 text-base",innerHTML:e(t).acf.title??e(t).acf.title},null,8,X)):s("",!0),e(t).acf.email||e(t).acf.phone?(n(),o("div",Y,[e(t).acf.email?(n(),o("a",{key:0,class:"mb-0 text-base block w-fit",innerHTML:e(t).acf.email,href:"mailto:"+e(t).acf.email},null,8,ee)):s("",!0),e(t).acf.phone?(n(),o("a",{key:1,class:"mb-0 text-base block w-fit",innerHTML:e(t).acf.phone,href:"tel:"+e(t).acf.phone},null,8,te)):s("",!0)])):s("",!0)])):s("",!0),u.showDesc&&e(t).acf.description?(n(),o("div",{key:1,class:i(["pt-[1.875rem] text-xs break-words max-w-full",e(t).acf.linkedin?"child:mb-0":""]),innerHTML:e(t).acf.description},null,10,le)):s("",!0),e(t).acf.linkedin?(n(),o("div",ae,[f(y,{to:e(t).acf.linkedin,target:"_blank"},{default:h(()=>[...w[0]||(w[0]=[c("svg",{class:"w-6 h-6",width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("g",{"clip-path":"url(#clip0_1_5)"},[c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M27.0769 22.456V22.383C27.062 22.4075 27.0413 22.432 27.0284 22.456H27.0769Z",fill:"currentColor"}),c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 0V50H50V0H0ZM15.5519 41.5387H8.13363V19.2204H15.5519V41.5387ZM11.8427 16.1743H11.7937C9.30527 16.1743 7.69231 14.4599 7.69231 12.317C7.69231 10.1271 9.35242 8.46132 11.8913 8.46132C14.4308 8.46132 15.9913 10.1271 16.0399 12.317C16.0399 14.4599 14.4308 16.1743 11.8427 16.1743ZM42.3077 41.5387H34.8875V29.5984C34.8875 26.5993 33.8154 24.5522 31.1298 24.5522C29.0788 24.5522 27.86 25.9305 27.3231 27.2657C27.1279 27.7426 27.0769 28.4056 27.0769 29.0744V41.5388H19.6553C19.6553 41.5388 19.7547 21.3143 19.6553 19.2205H27.0769V22.3831C28.063 20.8658 29.8226 18.6966 33.7644 18.6966C38.6476 18.6966 42.3077 21.8856 42.3077 28.7403V41.5387Z",fill:"currentColor"})]),c("defs",null,[c("clipPath",{id:"clip0_1_5"},[c("rect",{width:"50",height:"50",fill:"white"})])])],-1)])]),_:1},8,["to"])])):s("",!0)])]),_:1},8,["class"])],2)],2)}}},oe={class:"grid grid-cols-12 gap-x-global px-global"},se=["textContent"],re=["textContent","href"],ce=["textContent"],ie=["textContent","href"],de={key:2,class:"col-span-12 gh-1 max-lg:hidden"},D=4,me={__name:"EmployeesBlock",props:{data:{type:Object,default:function(){return{}}},index:{type:Number,default:null}},setup(u){const{countryCode:C}=I(),p=E(),t=u,g=T([]);g.value=t.data.employees,q(()=>{if(C.value===null||!t.data.localized_employees)g.value=t.data.employees;else{const d=t.data?.localized_employees.find(M=>M.country_code.split(",").includes(C.value));d&&(g.value=d.employees)}});const a=r(()=>t.data.overwrite_general_contact_info===!1?null:t.data.general_contact_info),l=r(()=>g.value.length),w=r(()=>{if(l.value<3)return g.value;const d=l.value%D;
1return d===0?g.value:g.value.slice(0,l.value-d)}),b=r(()=>{if(l.value<3)return[];const d=l.value%D;return d===0?[]:g.value.slice(l.value-d)}),y=r(()=>{const d=p.getCurrentBreakpoint;return["lg","xl","2xl"].includes(d)&&l.value<=2}),x=r(()=>l.value!==1),m=r(()=>t.data.heading&&t.data.heading.trim()!==""),L=r(()=>y.value&&a.value&&(a.value.general_contact_email||a.value.general_contact_heading)),O=r(()=>{if(m.value){if(l.value>=3)return"col-span-12";if(l.value===1||l.value===2)return"col-span-12 lg:col-span-6 lg:col-start-1 lg:row-start-1"}return l.value===1&&L.value?"col-span-12 lg:col-span-3 lg:col-start-4 lg:row-start-1":l.value===2&&L.value?"col-span-12 lg:col-span-12 lg:col-start-1":"hidden"}),R=r(()=>l.value===1?m.value?"col-span-12 lg:col-start-7 lg:col-span-6 lg:row-start-1":"col-span-12 lg:col-start-7 lg:col-span-6":l.value===2?m.value?"col-span-12 lg:col-start-7 lg:col-span-6 lg:row-start-1":"col-span-12 lg:col-start-1 lg:col-span-6":l.value>=3&&m.value?"col-span-12 lg:col-start-1":"col-span-12"),Z=r(()=>l.value>=3?"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 md:gap-global items-start":l.value===1?"grid grid-cols-1 md:grid-cols-1 lg:grid-cols-1 md:gap-global items-start":l.value===2?"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-2 md:gap-global items-start":"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 md:gap-global items-start"),G=r(()=>"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 md:gap-global items-start"),j=r(()=>(l.value===1||l.value===2,"col-span-1")),N=r(()=>""),P=r(()=>l.value===1&&m.value?"col-span-12 lg:col-span-3 lg:col-start-7 lg:row-start-1":"hidden");return(d,M)=>{const z=A,k=S,B=ne;return n(),o("div",oe,[c("div",{class:i(e(O))},[f(k,{class:"pt-global",index:t.index,"exclude-margin":t.index===0?"h1":"h3"},{default:h(()=>[t.data.heading?(n(),H(z,{key:0,text:t.data.heading,index:t.index},null,8,["text","index"])):s("",!0)]),_:1},8,["index","exclude-margin"]),e(y)&&(e(a)&&e(a).general_contact_email||e(a)&&e(a).general_contact_heading)&&!(e(l)===1&&e(m))?(n(),H(k,{key:0,class:i([e(N),"pt-global"]),index:t.index},{default:h(()=>[e(a).general_contact_heading?(n(),o("p",{key:0,class:"text-sm m-0",textContent:v(e(a).general_contact_heading)},null,8,se)):s("",!0),e(a)&&e(a).general_contact_email?(n(),o("a",{key:1,textContent:v(e(a)&&e(a).general_contact_email),href:"mailto:"+e(a).general_contact_email},null,8,re)):s("",!0)]),_:1},8,["class","index"])):s("",!0)],2),e(l)===1&&e(m)&&e(y)&&(e(a)&&e(a).general_contact_email||e(a)&&e(a).general_contact_heading)?(n(),o("div",{key:0,class:i(e(P))},[f(k,{class:"pt-global",index:t.index},{default:h(()=>[e(a).general_contact_heading?(n(),o("p",{key:0,class:"text-sm m-0",textContent:v(e(a).general_contact_heading)},null,8,ce)):s("",!0),e(a)&&e(a).general_contact_email?(n(),o("a",{key:1,textContent:v(e(a)&&e(a).general_contact_email),href:"mailto:"+e(a).general_contact_email},null,8,ie)):s("",!0)]),_:1},8,["index"])],2)):s("",!0),c("div",{class:i(e(R))},[c("div",{class:i(e(Z))},[(n(!0),o(V,null,$(e(w),_=>(n(),o("div",{class:i([e(j),_.featured_image_object?"":"flex flex-col justify-end h-full"]),key:_.ID+e(l)},[f(B,{"sup-headline":u.data.employee_supheadline,"show-desc":u.data.settings?.add_description_below_employee,employee:_,type:e(x)?"tall":"wide","show-employee-tagline":u.data.settings?.show_employee_tagline},null,8,["sup-headline","show-desc","employee","type","show-employee-tagline"])],2))),128))],2)],2),e(b).length>0?(n(),H(k,{key:1,class:"col-span-12",index:t.index},{default:h(()=>[c("div",{class:i(e(G))},[(n(!0),o(V,null,$(e(b),_=>(n(),o("div",{key:"incomplete-"+_.ID+e(l),class:i([e(j),_.featured_image_object?"":"flex flex-col justify-end h-full"])},[f(B,{"sup-headline":u.data.employee_supheadline,"show-desc":u.data.settings?.add_description_below_employee,employee:_,type:e(x)?"tall":"wide","show-employee-tagline":u.data.settings?.show_employee_tagline},null,8,["sup-headline","show-desc","employee","type","show-employee-tagline"])],2))),128))],2)]),_:1},8,["index"])):s("",!0),!e(x)&&e(l)<=2?(n(),o("div",de)):s("",!0)])}}};export{me as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.