1import B from"./DBid_Hgz.js";import C from"./BjGQKq1I.js";import N from"./BmU2mTDL.js";import{J as V}from"./Dc389B5x.js";import{X as A,M as p,N as o,O as e,P as i,Q as h,$ as k,V as f,U as t,a0 as a,R as v,S as I,T as u,a1 as x,a4 as S}from"./BoqeS2Ho.js";const L={class:"faculty-publications"},T={key:0},D={class:"flex flex-col gap-2"},E={key:0,class:"border-t border-tertiary-500 py-2"},H={id:"contrib-more",class:"flex flex-col gap-2"},J={key:0,class:"border-t border-tertiary-500 py-2"},K=["aria-expanded"],X={__name:"FacultyPublications",props:{contributions:{type:Array,default:()=>[]}},setup(g){const y=g,r=A(!1),d=p(()=>Array.isArray(y.contributions)?y.contributions.filter(Boolean):[]),$=p(()=>d.value.slice(0,4)),m=p(()=>d.value.slice(4)),b=(n,l)=>{var c;return((c=n==null?void 0:n.contribution)==null?void 0:c["@id"])??l};return(n,l)=>{const c=B,F=C,P=S("FacultyContribItem"),w=N;return e(),o("div",L,[i(c,{level:"h3","visual-level":"h5",class:"mb-4"},{default:h(()=>[k(f(n.$t("relatedPublications")),1)]),_:1}),t(d).length?(e(),o(a,{key:1},[v("ul",D,[(e(!0),o(a,null,x(t($),(s,_)=>(e(),o(a,{key:b(s,_)},[s?(e(),o("li",E,[i(F,{item:s},null,8,["item"])])):u("",!0)],64))),128))]),t(m).length?(e(),I(t(V),{key:0,when:t(r)},{default:h(()=>[v("ul",H,[(e(!0),o(a,null,x(t(m),(s,_)=>(e(),o(a,{key:`more-${b(s,_)}`},[s?(e(),o("li",J,[i(P,{item:s},null,8,["item"])])):u("",!0)],64))),128))])]),_:1},8,["when"])):u("",!0),t(m).length?(e(),o("button",{key:1,class:"mt-2 text-sm text-secondary-500 underline","aria-expanded":t(r).toString(),"aria-controls":"contrib-more",onClick:l[0]||(l[0]=s=>r.value=!t(r))},[k(f(t(r)?n.$t("showLessPublications"):n.$t("showAllPublications"))+" ",1),i(w,{class:"ml-2",name:"fa7-solid:"+(t(r)?"chevron-up":"chevron-down")},null,8,["name"])],8,K)):u("",!0)],64)):(e(),o("p",T,f(n.$t("noPublicationsFound")),1))])}}};export{X 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.