import{x as U,n as $,u as B,z,w as H,l as O,aU as S,r,o as i,i as T,H as j,f as _,g as f,R as u,h as e,k as d,M as q,P as A,D as F,T as L,_ as M,S as N,O as P}from"./B7moA0Zy.js";const V={class:"bottom"},G={__name:"Designer",props:{data:{type:Object}},async setup(h){let n,p;const x=h,{title:C,thumbImage:o,mainImage:l,url:c,slug:s}=x.data,m=$(()=>{let t=[];return l!=null&&l.length&&(t=l),o!=null&&o.length&&(t=o),t}),{locale:k}=B(),a=z();if(s){const{data:t}=([n,p]=H(()=>O({key:`collections-${s}`,query:S,variables:{site:k.value,designers:[s]}})),n=await n,p(),n);a.value=t}return(t,I)=>{const D=M,w=N,b=P,E=r("space"),R=r("pad"),v=r("lay");return i(),T(F(e(c)?e(L):"div"),{to:e(c)?("useRelativeUrl"in t?t.useRelativeUrl:e(A))(e(c)):void 0},{default:j(()=>{var y,g;return[_((i(),f("div",{class:u({"thumb-hover":!0,skeleton:!e(s)})},[d(D,{data:{image:e(m),ratio:[1,1]},skeleton:!e(m).length},null,8,["data","skeleton"]),_((i(),f("div",V,[d(w,{data:{heading:e(C)||" ",typo:"p"},class:u({"skeleton--default":!e(s)})},null,8,["data","class"]),_(d(b,{data:{text:(y=e(a))!=null&&y.entryCount?`${e(a).entryCount} ${t.$t("collection",e(a).entryCount).toLowerCase()}`:" ",typo:"4",color:"grey"},class:u({"skeleton--small":!e(s)})},null,8,["data","class"]),[[q,((g=e(a))==null?void 0:g.entryCount)>0]])])),[[E,"xxs"],[R,"m"],[v,{gap:"0"}]])],2)),[[v,{dir:"o",align:["end"]}]])]}),_:1},8,["to"])}}},K=U(G,[["__scopeId","data-v-a1ebcb6c"]]);export{K as default};