1import{p as U,j as b,w as W,m as X,f as _,o as s,E as h,a8 as Z,g as k,a9 as ee,q as K,c as l,d as M,e as o,av as oe,ac as te,ad as se,B as re,F as ne,G as ae}from"./FTaPbxLM.js";import ce from"./B9hwvYFO.js";import le from"./DHhPsL93.js";import pe from"./BLL3-J_8.js";import{f as ie}from"./DtqqUhgo.js";import{u as de}from"./BjLGVT4M.js";import"./BzVpgML3.js";import"./CYlWAKHe.js";import"./CUQHcvjt.js";import"./D_WVsykS.js";import"./8y_KnDCH.js";import"./BP_XR_Ch.js";import"./DrazZ_kY.js";const ue={class:"flex w-full items-start justify-between gap-4"},fe={key:0,class:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3"},_e={key:1,class:"ph-swiper"},he={key:2,class:"text-muted-foreground rounded-2xl border border-dashed p-6"},ge="projects",Q=8,me=Object.assign({name:"ProjectHighlights"},{__name:"ProjectHighlights",props:{component:{type:Object,required:!0},buttonColor:{type:String,default:"primary"}},async setup(w){var B,D,P,$,V,N,S;let p,y;const i=w,v=de(i),g=((P=(D=(B=i.component)==null?void 0:B.properties)==null?void 0:D.link)==null?void 0:P[0])??null,j=((V=($=i.component)==null?void 0:$.properties)==null?void 0:V.tags)??[],Y=((S=(N=i.component)==null?void 0:N.properties)==null?void 0:S.manualSelectionOfProjects)??[],x=b(()=>j.length?j.map(r=>{var a;return`filter=tagFilter:${(a=r==null?void 0:r.properties)==null?void 0:a.tagName}`}).join("&"):""),{data:z,pending:J}=([p,y]=W(()=>X(()=>$fetch("/api/umbraco/fetch/nested",{query:{slug:ge,take:Q,filter:x.value,depth:0,fetch:"children",sort:"endDate:desc"}}),{watch:[x]},"$rqKAQr94Ms")),p=await p,y(),p),C=b(()=>{var u,f;const r=((u=z.value)==null?void 0:u.items)??[],a=[...Y||[],...r],d=new Set,c=[];for(const t of a){const n=(t==null?void 0:t.id)??((f=t==null?void 0:t.route)==null?void 0:f.path);if(!(n&&d.has(n))&&(n&&d.add(n),c.push(t),c.length>=Q))break}return c}),R=b(()=>3);return(r,a)=>{const d=re,c=ce,u=le,f=pe,t=ee,n=Z;return s(),_(n,null,{default:h(()=>[k(t,{class:"overflow-hidden"},{default:h(()=>[K("div",ue,[o(v)?(s(),_(oe(o(v)),{key:0})):M("",!0),K("div",null,[o(g)?(s(),_(c,{key:0,link:o(g),class:"btn-primary btn-sm mb-2 ml-auto w-fit cursor-pointer whitespace-nowrap lg:mb-4","show-label":!1},{default:h(()=>[te(se(o(g).title)+" ",1),k(d,{name:"lucide:arrow-right",class:"text-1xl","aria-hidden":"true"})]),_:1},8,["link"])):M("",!0)])]),o(J)?(s(),l("div",fe,[(s(!0),l(ne,null,ae(o(R),e=>(s(),l("div",{key:e,class:"bg-neutral-100 dark:bg-neutral-800 h-72 animate-pulse rounded-2xl"}))),128))])):o(C).length?(s(),l("div",_e,[k(f,{items:o(C),"button-color":w.buttonColor,"slides-per-view":3,breakpoints:{0:{slidesPerView:1},768:{slidesPerView:2},1024:{slidesPerView:3}},"aria-label":"Project highlights"},{default:h(({item:e})=>{var q,F,H,O,A,G,I,E,L,T;return[(s(),_(u,{key:(e==null?void 0:e.id)||((q=e==null?void 0:e.route)==null?void 0:q.path),class:"h-full",content:{title:(F=e==null?void 0:e.properties)==null?void 0:F.title,de
1scription:(H=e==null?void 0:e.properties)==null?void 0:H.description,img:(G=(A=(O=e==null?void 0:e.properties)==null?void 0:O.shareImage)==null?void 0:A[0])==null?void 0:G.url,link:(I=e==null?void 0:e.route)==null?void 0:I.path,categories:(L=(E=e==null?void 0:e.properties)==null?void 0:E.tag)==null?void 0:L.map(m=>m==null?void 0:m.name),cardType:"vertical",date:("formatDate"in r?r.formatDate:o(ie))(((T=e==null?void 0:e.properties)==null?void 0:T.publicationDate)||(e==null?void 0:e.createDate),{onlyYear:!0})}},null,8,["content"]))]}),_:1},8,["items","button-color"])])):(s(),l("div",he," No projects found. "))]),_:1})]),_:1})}}}),Ne=U(me,[["__scopeId","data-v-b6168456"]]);export{Ne 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.