youtuber-blog-frontend/build/client/_app/immutable/nodes/9.e6ud5F9Z.js
2024-06-23 11:25:48 +02:00

2 lines
2.0 KiB
JavaScript

import{s as z,e as u,d as p,f as m,i as _,p as d,k as A,n as y,C as B,t as D,b as P,h as S,j as q,q as C,l as h,m as I}from"../chunks/scheduler.TiWp2jL2.js";import{e as L}from"../chunks/each.BM-upbTq.js";import{S as F,i as G}from"../chunks/index.BGG1x4jY.js";function V(o,l,s){const e=o.slice();return e[2]=l[s],e}function j(o){let l,s,e,t=o[2].title+"",r,a,n,f=new Date(o[2].created_at).toLocaleString("de")+"",g,v,E;return{c(){l=u("div"),s=u("a"),e=u("p"),r=D(t),a=P(),n=u("p"),g=D(f),E=P(),this.h()},l(i){l=p(i,"DIV",{class:!0});var c=m(l);s=p(c,"A",{href:!0});var b=m(s);e=p(b,"P",{class:!0});var k=m(e);r=S(k,t),k.forEach(_),a=q(b),n=p(b,"P",{class:!0,style:!0});var w=m(n);g=S(w,f),w.forEach(_),b.forEach(_),E=q(c),c.forEach(_),this.h()},h(){d(e,"class","m-0"),d(n,"class","border-b-2 pb-2"),C(n,"border-color","#"+o[0].site.secondary_color_hex),d(s,"href",v=o[1]+"/"+o[2].seo_slug),d(l,"class","p-4")},m(i,c){A(i,l,c),h(l,s),h(s,e),h(e,r),h(s,a),h(s,n),h(n,g),h(l,E)},p(i,c){c&1&&t!==(t=i[2].title+"")&&I(r,t),c&1&&f!==(f=new Date(i[2].created_at).toLocaleString("de")+"")&&I(g,f),c&1&&C(n,"border-color","#"+i[0].site.secondary_color_hex),c&3&&v!==(v=i[1]+"/"+i[2].seo_slug)&&d(s,"href",v)},d(i){i&&_(l)}}}function H(o){let l,s=L(o[0].articles),e=[];for(let t=0;t<s.length;t+=1)e[t]=j(V(o,s,t));return{c(){l=u("div");for(let t=0;t<e.length;t+=1)e[t].c();this.h()},l(t){l=p(t,"DIV",{class:!0});var r=m(l);for(let a=0;a<e.length;a+=1)e[a].l(r);r.forEach(_),this.h()},h(){d(l,"class","grid grid-cols-1")},m(t,r){A(t,l,r);for(let a=0;a<e.length;a+=1)e[a]&&e[a].m(l,null)},p(t,[r]){if(r&3){s=L(t[0].articles);let a;for(a=0;a<s.length;a+=1){const n=V(t,s,a);e[a]?e[a].p(n,r):(e[a]=j(n),e[a].c(),e[a].m(l,null))}for(;a<e.length;a+=1)e[a].d(1);e.length=s.length}},i:y,o:y,d(t){t&&_(l),B(e,t)}}}function J(o,l,s){let e="",{data:t}=l;return o.$$set=r=>{"data"in r&&s(0,t=r.data)},s(1,e=window.location.pathname||"/"),[t,e]}class O extends F{constructor(l){super(),G(this,l,J,H,z,{data:0})}}export{O as component};