1import{_ as X}from"./nuxt-link.8NoK9ul6.js";import{t as Y,g as Z,_ as p}from"./layout.C-U_7VKb.js";import{d as _}from"./dateFormat.B8EODN1w.js";import{r as ee,u as te,o as s,B as ae,w as ne,a,c as l,l as i,d as se,t as c,j as d,n as r}from"./entry.CeuWY8pw.js";import{c as le}from"./logo.C7Jg9E_k.js";const ie={class:"h-full w-full cursor-pointer shadow"},oe={class:"w-full h-full flex flex-col justify-end relative"},re=a("div",{class:"absolute w-full h-full bg-gradient-to-br from-[transparent] to-[black] top-0 left-0 z-10"},null,-1),ce={class:"absolute w-full h-full overflow-hidden flex items-center justify-center"},de=["src"],me={key:0,class:"absolute h-14 w-14",src:p,alt:"Hero image"},ue={class:"p-4 md:p-8 flex flex-col gap-1 z-20 h-full justify-end text-white"},fe=["title"],ge=["innerHTML"],ye={key:0},Te={key:1},he={key:2},De=["innerHTML"],ve=["innerHTML"],Ce={__name:"ImageCard",props:["cardData","fonts","componentType","EventType","displayCategoryTag","displayResourcesTag"],setup(e){var D,v,C,x;const{cardData:t,fonts:u,componentType:f,EventType:g,displayCategoryTag:y,displayResourcesTag:o}=e;let n="";t!=null&&t.NetlineData?n=Y.methods.toTitleCase(((D=t==null?void 0:t.Name)==null?void 0:D.trim())||((v=t==null?void 0:t.Title)==null?void 0:v.trim())):n=((C=t==null?void 0:t.Name)==null?void 0:C.trim())||((x=t==null?void 0:t.Title)==null?void 0:x.trim());let T=ee("");(()=>{const m=le.CategoryTag.find(k=>String(k.key)===String(t==null?void 0:t.CategoryTag));T.value=m?m.value:t==null?void 0:t.CategoryTag})();const O=_.methods.formatDate,Q=m=>O(m);te();const h=Z(t);return(m,k)=>{var b,w,N;const W=X;return s(),ae(W,{to:(b=e.cardData)!=null&&b.NetlineData?`${e.cardData.PubSubscriptionURL}`:`/${d(h)}/${e.cardData.RouteURL||((w=e.cardData)==null?void 0:w.RouteUrl)}`,target:(N=e.cardData)!=null&&N.NetlineData?"_blank":"_self",rel:"noopener noreferrer"},{default:ne(()=>{var I,L,R,H,M,j,B,E,S,U,V,z,P,$,A,F,G,q,J,K;return[a("div",ie,[a("div",oe,[re,a("div",ce,[a("img",{src:((I=e.cardData)==null?void 0:I.ImageUrl)||((L=e.cardData)==null?void 0:L.InterviewImage),alt:"Image",class:"w-full h-full object-cover"},null,8,de),((R=e.cardData)==null?void 0:R.ResourceType)==5?(s(),l("img",me)):i("",!0)]),a("div",ue,[a("div",{title:((M=(H=e.cardData)==null?void 0:H.Name)==null?void 0:M.trim())||((B=(j=e.cardData)==null?void 0:j.Title)==null?void 0:B.trim()),class:"heading-font line-clamp-2 text-lg md:text-3xl text-white font-normal hover:underline"},[se(c(d(n))+" ",1),a("div",{innerHTML:(E=e.cardData)==null?void 0:E.AboutCompany},null,8,ge)],8,fe),(S=e.cardData)!=null&&S.NetlineData?(s(),l("div",ye,[a("p",{class:r(["btn",[e.fonts.tagName]])},c((U=e.cardData)==null?void 0:U.categoryTag),3)])):i("",!0),d(h)&&e.displayResourcesTag?(s(),l("div",Te,[a("p",{class:r(["btn",[e.fonts.tagName]])},c(d(h)),3)])):i("",!0),e.displayCategoryTag&&((V=e.cardData)!=null&&V.CategoryTag)&&d(T)?(s(),l("div",he,[a("p",{class:r(["btn",[e.fonts.tagName]])},c(d(T)),3)])):i("",!0),e.componentType!="event"&&e.componentType!="resources"?(s(),l("p",{key:3,class:r([e.fonts.EndDate])},c(Q(((z=e.cardData)==null?void 0:z.EndDate)||((P=e.cardData)==null?void 0:P.PublishDate)||(($=e.cardData)==null?void 0:$.InterviewDate))),3)):i("",!0),(A=e.cardData)!=null&&A.Description&&e.componentType!="event"?(s(),l("p",{key:4,class:r(["line-clamp-2 text-gray-300 small-card-description font-sans leading-normal",[e.fonts.description]]),innerHTML:(F=e.cardData)==null?void 0:F.Description},null,10,De)):i("",!0),(G=e.cardData)!=null&&G.InterviewDetails?(s(),l("div",{key:5,class:r(["line-clamp-2 font-sans small-card-description leading-normal",e.fonts.description]),innerHTML:(q=e.cardData)==null?void 0:q.InterviewDetails},null,10,ve)):i("",!0),(J=e.cardData)!=null&&J.link?(s(),l("p",{key:6,class:r(e.fonts.link)},c((K=e.cardData)==null?void 0:K.link),3)):i("",!0)])])])]}),_:1},8,["to","target"])}}},Le=Ce;function Re(e,t,u,f,g,y){let o={xlCards:[],mdCards:[],smCards:[],txtCards:[],hrxCards:[]},n=[...e];return t&&(o.xlCards=n.splice(0,t)),u&&(o.mdCards=n.splice(0,u)),f&&(o.smCards=n.splice(0,f)),g&&(o.txtCards=n.splice(0,g)),y&&(o.hrxCards=n.splice(0,y)),o}export{Le as I,Re as l};
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.