1import{s as $,e as _,b as O,t as M,d as h,f as E,k as x,j as q,h as H,i as c,w as d,l as B,m as l,n as G,o as V,D as W}from"../chunks/scheduler.BATPfb1Q.js";import{e as X,u as ee,d as te}from"../chunks/each.lgBpgSVd.js";import{S as ae,i as le}from"../chunks/Component.D7QerkI2.js";import"../chunks/index.IHki7fMi.js";const se=async({fetch:v})=>({articles:await v("/api/get_blog_articles").then(e=>e.json())}),he=Object.freeze(Object.defineProperty({__proto__:null,load:se},Symbol.toStringTag,{value:"Module"}));function Y(v,e,s){const r=v.slice();return r[1]=e[s],r}function Z(v,e){let s,r,o,m,P,L,f,b,k,p=e[1].title+"",g,n,A,S=e[1].description+"",w,t,a,i,I,R=new Date(e[1].published_at).toLocaleDateString("fr-FR")+"",j,y,N,z;return{key:v,first:null,c(){s=_("li"),r=_("a"),o=_("img"),L=O(),f=_("article"),b=_("header"),k=_("h2"),g=M(p),n=O(),A=_("small"),w=M(S),t=O(),a=_("footer"),i=_("p"),I=M("Publié le "),j=M(R),N=O(),this.h()},l(D){s=h(D,"LI",{class:!0,id:!0});var u=E(s);r=h(u,"A",{href:!0,class:!0});var C=E(r);o=h(C,"IMG",{src:!0,alt:!0,class:!0}),L=q(C),f=h(C,"ARTICLE",{class:!0});var F=E(f);b=h(F,"HEADER",{});var T=E(b);k=h(T,"H2",{});var J=E(k);g=H(J,p),J.forEach(c),n=q(T),A=h(T,"SMALL",{});var K=E(A);w=H(K,S),K.forEach(c),T.forEach(c),t=q(F),a=h(F,"FOOTER",{});var Q=E(a);i=h(Q,"P",{});var U=E(i);I=H(U,"Publié le "),j=H(U,R),U.forEach(c),Q.forEach(c),F.forEach(c),C.forEach(c),N=q(u),u.forEach(c),this.h()},h(){var D;W(o.src,m=(D=e[1].cover)==null?void 0:D.toString())||d(o,"src",m),d(o,"alt",P=e[1].title),d(o,"class","cover svelte-av7at3"),d(f,"class","svelte-av7at3"),d(r,"href",y="/blog/"+e[1].id),d(r,"class","default svelte-av7at3"),d(s,"class","article svelte-av7at3"),d(s,"id",z=e[1].id),this.first=s},m(D,u){B(D,s,u),l(s,r),l(r,o),l(r,L),l(r,f),l(f,b),l(b,k),l(k,g),l(b,n),l(b,A),l(A,w),l(f,t),l(f,a),l(a,i),l(i,I),l(i,j),l(s,N)},p(D,u){var C;e=D,u&1&&!W(o.src,m=(C=e[1].cover)==null?void 0:C.toString())&&d(o,"src",m),u&1&&P!==(P=e[1].title)&&d(o,"alt",P),u&1&&p!==(p=e[1].title+"")&&G(g,p),u&1&&S!==(S=e[1].description+"")&&G(w,S),u&1&&R!==(R=new Date(e[1].published_at).toLocaleDateString("fr-FR")+"")&&G(j,R),u&1&&y!==(y="/blog/"+e[1].id)&&d(r,"href",y),u&1&&z!==(z=e[1].id)&&d(s,"id",z)},d(D){D&&c(s)}}}function re(v){let e,s,r="Le Blog du BDE",o,m,P,L=v[0].articles.articles.length+"",f,b,k,p,g,n=[],A=new Map,S=X(v[0].articles.articles);const w=t=>t[1].id;for(let t=0;t<S.length;t+=1){let a=Y(v,S,t),i=w(a);A.set(i,n[t]=Z(i,a))}return{c(){e=_("header"),s=_("h1"),s.textContent=r,o=O(),m=_("p"),P=M("Profitez de "),f=M(L),b=M(" articles à lire !"),k=O(),p=_("main"),g=_("ul");for(let t=0;t<n.length;t+=1)n[t].c();this.h()},l(t){e=h(t,"HEADER",{});var a=E(e);s=h(a,"H1",{"data-svelte-h":!0}),x(s)!=="svelte-1bjtqkt"&&(s.textContent=r),o=q(a),m=h(a,"P",{});var i=E(m);P=H(i,"Profitez de "),f=H(i,L),b=H(i," articles à lire !"),i.forEach(c),a.forEach(c),k=q(t),p=h(t,"MAIN",{});var I=E(p);g=h(I,"UL",{class:!0});var R=E(g);for(let j=0;j<n.length;j+=1)n[j].l(R);R.forEach(c),I.forEach(c),this.h()},h(){d(g,"class","svelte-av7at3")},m(t,a){B(t,e,a),l(e,s),l(e,o),l(e,m),l(m,P),l(m,f),l(m,b),B(t,k,a),B(t,p,a),l(p,g);for(let i=0;i<n.length;i+=1)n[i]&&n[i].m(g,null)},p(t,[a]){a&1&&L!==(L=t[0].articles.articles.length+"")&&G(f,L),a&1&&(S=X(t[0].articles.articles),n=ee(n,a,w,1,t,S,A,g,te,Z,null,Y))},i:V,o:V,d(t){t&&(c(e),c(k),c(p));for(let a=0;a<n.length;a+=1)n[a].d()}}}function ie(v,e,s){let{data:r}=e;return v.$$set=o=>{"data"in o&&s(0,r=o.data)},[r]}class fe extends ae{constructor(e){super(),le(this,e,ie,re,$,{data:0})}}export{fe as component,he as universal};
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.