1import{u as _,e as j,p as C,f as r,a as i,t as m,i as c,F as p,r as x,c as h,g as b,m as A,o as s}from"./app-f0MxXKHs.js";import{_ as S}from"./DownloadCard-zDXnViet.js";import{_ as B}from"./AnimatedTextLink-DsnC2DO8.js";import"./Divider-DG1cs018.js";import"./AnimatedButton-Czi8AioW.js";import"./sun_small_black-B0caqXi7.js";const V={class:"w-full pt-8 pb-14 md:pb-20 flex flex-col justify-start items-center gap-8"},z={key:0,class:"w-full max-w-[1600px] mx-auto px-5 md:px-10 lg:px-section-padding flex flex-col gap-5"},D={key:0,class:"text-dark text-3xl font-light leading-9 md:text-[40px] md:leading-[46px] md:tracking-[-1.2px]"},N={key:1,class:"text-gray-500 text-base font-light leading-relaxed"},O={class:"w-full max-w-[1600px] mx-auto px-5 md:px-10 lg:px-section-padding flex flex-col gap-5"},$={class:"inline-flex justify-start items-center gap-1"},E={class:"text-dark text-xs uppercase leading-4 tracking-[0.12px]"},F={class:"w-full flex flex-col justify-start items-center"},L={class:"w-full max-w-[1600px] mx-auto px-5 py-8 md:px-10 md:py-12 lg:px-section-padding flex flex-col justify-start gap-8 md:gap-12"},P={__name:"DownloadsListSection",props:{categories:{type:[Array,Object],required:!0},background:{type:String,default:"marble",validator:t=>["marble","pearl","white","ivory","dark","darker"].includes(t)},initialVisible:{type:Number,default:2},headline:{type:String,default:""},description:{type:String,default:""}},setup(t){const{t:g}=_(),f=t,n=j(()=>{const e=f.categories;return e?(Array.isArray(e)?e:Object.values(e)).map(l=>({...l,downloads:Array.isArray(l.downloads)?l.downloads:Object.values(l.downloads||{})})):[]}),k={marble:"bg-marble",pearl:"bg-pearl",white:"bg-light-white",ivory:"bg-ivory",dark:"bg-dark",darker:"bg-[#10100E]"},u=C(n.value.reduce((e,a,l)=>(e[l]=f.initialVisible,e),{})),y=e=>{const a=n.value[e];u.value[e]=a.downloads.length},v=e=>{const a=n.value[e];return u.value[e]<a.downloads.length};return(e,a)=>(s(),r("section",{class:A(["w-full overflow-hidden",k[t.background]])},[i("div",V,[t.headline||t.description?(s(),r("div",z,[t.headline?(s(),r("h2",D,m(t.headline),1)):c("",!0),t.description?(s(),r("p",N,m(t.description),1)):c("",!0)])):c("",!0),(s(!0),r(p,null,x(n.value,(l,d)=>(s(),r(p,{key:d},[i("div",O,[i("div",$,[a[0]||(a[0]=i("div",{class:"text-dark text-xs uppercase leading-4 tracking-[0.12px]"},"âº",-1)),i("div",E,m(l.title),1)]),a[1]||(a[1]=i("div",{class:"w-full h-px bg-border-dark"},null,-1))]),i("div",F,[i("div",L,[(s(!0),r(p,null,x(l.downloads.slice(0,u.value[d]),(o,w)=>(s(),h(S,{key:w,title:o.title,"file-info":o.fileInfo,image:o.image,"image-alt":o.imageAlt,actions:[{label:b(g)("common.download","Download"),href:o.downloadHref||"#"}],size:"xl"},null,8,["title","file-info","image","image-alt","actions"]))),128))]),v(d)?(s(),h(B,{key:0,label:b(g)("common.show_more","Show more"),href:"#",variant:"dark",uppercase:!0,"show-star-icon":!1,"underline-style":"partial-right",onClick:o=>y(d)},null,8,["label","onClick"])):c("",!0)])],64))),128))])],2))}};export{P 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.