1import{a as $,c as B}from"./CmZRlU7R.js";import{_ as T}from"./BgQEwD30.js";import{d as j,p as v,h as L,c,e as d,u as s,o as l,b as p,g as f,t as r,n as t,w as u,F as C,r as z,a as E,_ as w}from"#entry";const _=4,I=j({__name:"component",props:{page:{}},setup(b){const a=b,i=v(!0),o=[a?.page?.exhibitionEntries?.data?.map(e=>({...e,listType:"exhibitions"}))?.filter(Boolean),a?.page?.educationEntries?.data?.map(e=>({...e,listType:"education"}))?.filter(Boolean),a?.page?.projectEntries?.data?.map(e=>({...e,listType:"projects"}))?.filter(Boolean),a?.page?.journalEntries?.data?.map(e=>({...e,listType:"journals"}))?.filter(Boolean)].filter(Boolean)?.flat(),y=L(()=>i.value?o?.slice(0,_):o);return(e,m)=>{const g=B,h=T,k=$;return s(o)?.length?(l(),c("div",{key:0,class:t(e.$style.root)},[p("div",{class:t(e.$style.label)},r(e.$t("related.label",{title:e.page?.title})),3),f(k,null,{default:u(()=>[(l(!0),c(C,null,z(s(y),n=>(l(),E(h,{key:n?.id,to:{name:`${n.listType}-slug`,params:{slug:n?.attributes?.slug}},class:t(e.$style.link)},{default:u(()=>[f(g,{class:t(e.$style.item)},{default:u(()=>[p("div",{class:t(e.$style.relationTitle)},r(n?.attributes?.title),3),p("span",{class:t(e.$style.relationLabel)},r(e.$t(`pages.${n.listType}.label`)),3)]),_:2},1032,["class"])]),_:2},1032,["to","class"]))),128))]),_:1}),s(o)?.length>_&&s(i)?(l(),c("button",{key:0,class:t(e.$style.button),onClick:m[0]||(m[0]=n=>i.value=!1)},r(e.$t("shared.showAll",{count:s(o)?.length})),3)):d("",!0)],2)):d("",!0)}}}),N="components-shared-related--root--A9cjj container",V="components-shared-related--label--qhjHj font-helvetica font-size-small label",q="components-shared-related--relationLabel--Z35kD font-helvetica font-size-small",A="components-shared-related--link--mWrIL reset-link",D="components-shared-related--relationTitle--ZzaBk font-size-default",F="components-shared-related--button--qIjEX reset-button font-helvetica font-size-small link",M={root:N,label:V,relationLabel:q,link:A,relationTitle:D,button:F},Z={$style:M},S=w(I,[["__cssModules",Z]]);export{S as _}; 2//# sourceMappingURL=DgkbS69p.js.map
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.