1import m from"./B5vPyQAg.js";import{a as y,r as i,o as f,s as g,g as S,m as _,f as l,b as x,aE as q}from"./CeDq3bVD.js";import"./CPdxmOBz.js";import"./DvZAnZJx.js";import"./DyIgNZvr.js";import"./CqTBw4ZU.js";import"./gnxqUvdV.js";import"./XRc0-lwe.js";import"./DvBGBLU2.js";const b={__name:"SectionListingCardsContent",props:{title:{type:String,required:!0},cards:{type:Array,required:!1,validator(t){return t.length<=9}},link:{type:Object},method:{type:String,required:!0,validator(t){return["auto","types","manual"].includes(t)}},type:{type:String,required:!0}},setup(t){const d=y(),e=t,a=i(null),r=i(!1);e.method==="manual"&&(a.value=e.cards,r.value=!0);const u=async()=>{const o={terms:d.value.groupSlug,taxonomy:"TAXGROUPS",field:"SLUG"},n={taxonomy:"TAXNEWSTYPE",operator:"IN",field:"SLUG",terms:e.type},s=e.method==="types"?[o,n]:[o],c={where:{offsetPagination:{size:9},taxQuery:{taxArray:s},orderby:[{field:"DATE",order:"DESC"}]}},p=await x()({operation:"getNews",variables:c});a.value=q(p.news.nodes),r.value=!0};return f(()=>{e.method!=="manual"&&u()}),(o,n)=>{const s=m;return g(),S(s,_(e,{cards:l(a),isRelatedLoad:l(r)}),null,16,["cards","isRelatedLoad"])}}};export{b 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.