import{t as m,a as p,d as A}from"./CUaqldoV.js";import{p as P,a as B,r,c as l,s as u,n as q,g as t,aq as x,t as C}from"./BSRAYoh9.js";import{s as G}from"./oozxAL8j.js";import{e as L,i as U}from"./DRkj5cSX.js";import{s as a}from"./DFaclXwQ.js";import{B as D}from"./BS76Glkb.js";import{s as E}from"./lGUXrafz.js";const _=(c,i)=>`/aktualnosci/${E(i)}-${c}`;var F=m('<article class="article svelte-17t96kf"><a class="article__cover svelte-17t96kf"><img class="article__cover-image svelte-17t96kf"></a> <h3><a class="article__title-link svelte-17t96kf"> </a></h3> <footer class="article__footer place-end svelte-17t96kf"><span></span> <!></footer></article>'),H=m('<div class="articles svelte-17t96kf"></div>');function R(c,i){P(i,!0);var n=H();L(n,21,()=>i.news,U,($,e)=>{var f=F(),s=l(f),k=l(s);r(s);var v=u(s,2),o=l(v),y=l(o,!0);r(o),r(v);var g=u(v,2),j=u(l(g),2);const b=x(()=>_(t(e).id,t(e).title)),w=x(()=>`Przejdź do artykułu - ${t(e).title}`);D(j,{tag:"a",get href(){return t(b)},appearance:"link",icon:"keyboard_arrow_right",get title(){return t(w)},children:(d,h)=>{q();var z=A("Czytaj więcej");p(d,z)},$$slots:{default:!0}}),r(g),r(f),C((d,h)=>{a(s,"href",d),a(s,"title",`Przejdź do artykułu - ${t(e).title}`),a(k,"src",t(e).coverUrl),a(k,"alt",t(e).title),a(o,"href",h),a(o,"title",t(e).title),G(y,t(e).title)},[()=>_(t(e).id,t(e).title),()=>_(t(e).id,t(e).title)]),p($,f)}),r(n),p(c,n),B()}export{R as A};
