1import{_ as V}from"./ArticleCard.vue.4a65b33b.js";import{_ as M}from"./Button.vue.0799f6ae.js";import{d as W,q as G,u as D,s as u,I as f,x as k,r as o,l as I,f as R,w as T,o as n,c,a as b,k as v,g as i,F as $,m as q,y as z,j as y}from"./entry.47b36a40.js";import{u as F}from"./Routing.5ae26305.js";import"./Image.vue.d39a3f20.js";import"./Icon.vue.e688e0bd.js";const L=["data-uid"],O={class:"UpperWrapper --wide"},P={class:"HeadlineWrapper"},S=["data-type","data-uid"],U={key:1,class:"ButtonWrapper --wide"},Z=W({__name:"ArticlesGrid",props:{blok:{}},async setup(j){let a,s;const C=G().ENVIRONMENT=="DEVELOPMENT"?"draft":"published",{path:H,language:_}=F(D());let p=([a,s]=u(()=>f().get("cdn/datasource_entries?datasource=article-tags",{version:C,language:_}).catch(e=>{throw k({statusCode:404,statusMessage:"Tags nicht gefunden"})})),a=await a,s(),a);p=p.data.datasource_entries;const l=o(4),w=o(4),r=o([]);o([]),o(!1),o(!1);function A(){l.value+=w.value}async function m(e){const d=await f().get("cdn/stories",{version:"draft",language:_,resolve_links:"url",starts_with:"experience/",per_page:e&&e,page:e&&Math.floor(r.value.length/e)+1,sort_by:"published_at:desc",filter_query:{component:{like:"Article"}}}).catch(h=>{throw k({statusCode:404,statusMessage:"Artikel nicht gefunden"})});r.value=d.data.stories}return[a,s]=u(()=>m(l.value)),await a,s(),[a,s]=u(()=>m()),await a,s(),(e,d)=>{var g;const h=I("StoryblokComponent"),B=V,E=M,N=R("editable");return T((n(),c("section",{class:"ArticlesGrid","data-uid":e.blok._uid},[b("div",O,[b("div",P,[v(h,{blok:e.blok.headline[0]},null,8,["blok"])])]),(g=i(r))!=null&&g.length?(n(),c("div",{key:0,class:"CardsGrid --wide","data-type":e.blok.type,"data-uid":e.blok._uid},[(n(!0),c($,null,q(i(r).slice(0,i(l)),t=>(n(),z(B,{key:t._uid,slug:t.full_slug,thumbnail:t.content.thumbnail_image,author:t.content.author,tag:t.content.tag,headline:t.content.headline,summary:t.content.summary,date:t.published_at||t.created_at,type:"headline",use:"grid"},null,8,["slug","thumbnail","author","tag","headline","summary","date"]))),128))],8,S)):y("",!0),e.blok.load_more_button&&i(r).length>=i(l)?(n(),c("div",U,[v(E,{appearance:"--primary",onClick:d[0]||(d[0]=t=>A()),label:"Weitere Artikel anzeigen","aria-label":"Weitere Artikel anzeigen"})])):y("",!0)],8,L)),[[N,e.blok]])}}});export{Z 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.