pbw-explore/_app/immutable/chunks/CollectionList-b9a76011.js

2 řádky
2.1 KiB
JavaScript

import{S as B,i as G,s as H,e as E,b,B as q,J,h as u,k as d,a as C,q as K,l as g,m as v,c as w,r as L,n as _,D as m,u as M,K as A}from"./index-f7411774.js";function D(n,e,s){const a=n.slice();return a[5]=e[s],a}function I(n){let e,s,a,l;return{c(){e=d("a"),s=d("img"),this.h()},l(r){e=g(r,"A",{href:!0});var t=v(e);s=g(t,"IMG",{src:!0,class:!0}),t.forEach(u),this.h()},h(){A(s.src,a=n[5][n[2]])||_(s,"src",a),_(s,"class","rounded-3xl w-full mb-4"),_(e,"href",l=n[3](n[1],n[5]))},m(r,t){b(r,e,t),m(e,s)},p(r,t){t&5&&!A(s.src,a=r[5][r[2]])&&_(s,"src",a),t&3&&l!==(l=r[3](r[1],r[5]))&&_(e,"href",l)},d(r){r&&u(e)}}}function S(n){let e,s,a,l,r=(n[5].shortname||n[5].name)+"",t,c,h,i=n[5][n[2]]&&I(n);return{c(){e=d("div"),i&&i.c(),s=C(),a=d("h3"),l=d("a"),t=K(r),h=C(),this.h()},l(f){e=g(f,"DIV",{class:!0});var o=v(e);i&&i.l(o),s=w(o),a=g(o,"H3",{class:!0});var k=v(a);l=g(k,"A",{href:!0});var y=v(l);t=L(y,r),y.forEach(u),k.forEach(u),h=w(o),o.forEach(u),this.h()},h(){_(l,"href",c=n[3](n[1],n[5])),_(a,"class","text-pbw-red"),_(e,"class","p-4")},m(f,o){b(f,e,o),i&&i.m(e,null),m(e,s),m(e,a),m(a,l),m(l,t),m(e,h)},p(f,o){f[5][f[2]]?i?i.p(f,o):(i=I(f),i.c(),i.m(e,s)):i&&(i.d(1),i=null),o&1&&r!==(r=(f[5].shortname||f[5].name)+"")&&M(t,r),o&3&&c!==(c=f[3](f[1],f[5]))&&_(l,"href",c)},d(f){f&&u(e),i&&i.d()}}}function N(n){let e,s=n[0],a=[];for(let l=0;l<s.length;l+=1)a[l]=S(D(n,s,l));return{c(){for(let l=0;l<a.length;l+=1)a[l].c();e=E()},l(l){for(let r=0;r<a.length;r+=1)a[r].l(l);e=E()},m(l,r){for(let t=0;t<a.length;t+=1)a[t].m(l,r);b(l,e,r)},p(l,[r]){if(r&15){s=l[0];let t;for(t=0;t<s.length;t+=1){const c=D(l,s,t);a[t]?a[t].p(c,r):(a[t]=S(c),a[t].c(),a[t].m(e.parentNode,e))}for(;t<a.length;t+=1)a[t].d(1);a.length=s.length}},i:q,o:q,d(l){J(a,l),l&&u(e)}}}function U(n,e,s){let{arr:a}=e,{entry:l="23"}=e,{col:r="speaker"}=e,{img:t="photoUrl"}=e;const c=(h,i)=>`/${l}/${h}/${i.id}`;return n.$$set=h=>{"arr"in h&&s(0,a=h.arr),"entry"in h&&s(4,l=h.entry),"col"in h&&s(1,r=h.col),"img"in h&&s(2,t=h.img)},[a,r,t,c,l]}class j extends B{constructor(e){super(),G(this,e,U,N,H,{arr:0,entry:4,col:1,img:2})}}export{j as C};