1 line
7.6 KiB
JavaScript
1 line
7.6 KiB
JavaScript
import{S as Ce,c as Se,a as Ue,d as X,e as Z,m as ee,b as F,h as Ve,t as q,f as te,g as Ae,j as Be,k as Te}from"./index-CFSywFfb.js";import{a as v,t as ae,b as x,f as b,h as $,j as re,k as j,d as p,l as d,i as ue,m as r,n as se,r as pe}from"./lifecycle-u0QeOdKt.js";import{e as le}from"./each-BfZOZzPH.js";import{f as Oe,R as Re,d as Fe,e as Ne,E as He,T as qe}from"./ZoomOut24-BLVY8N49.js";import{$ as Ge}from"./runtime-BvEoAjCK.js";function ke(i,e,l){const s=i.slice();return s[3]=e[l],s}function we(i,e,l){const s=i.slice();return s[6]=e[l],s}function xe(i,e,l){const s=i.slice();return s[9]=e[l],s}function je(i){let e,l,s,_,h,o;return{c(){e=v("a"),l=v("img"),h=x(),this.h()},l(u){e=b(u,"A",{href:!0});var g=$(e);l=b(g,"IMG",{src:!0,alt:!0}),h=j(g),g.forEach(p),this.h()},h(){Te(l.src,s=i[9].avatar)||d(l,"src",s),d(l,"alt",_=i[9].name),d(e,"href",o="/people/"+i[9].slug)},m(u,g){ue(u,e,g),r(e,l),r(e,h)},p(u,g){g&2&&!Te(l.src,s=u[9].avatar)&&d(l,"src",s),g&2&&_!==(_=u[9].name)&&d(l,"alt",_),g&2&&o!==(o="/people/"+u[9].slug)&&d(e,"href",o)},d(u){u&&p(e)}}}function De(i){let e,l=i[6].name+"",s,_,h;return{c(){e=v("a"),s=ae(l),_=x(),this.h()},l(o){e=b(o,"A",{href:!0,class:!0});var u=$(e);s=re(u,l),_=j(u),u.forEach(p),this.h()},h(){d(e,"href",h=i[6].link),d(e,"class","bg-primary-100 text-primary-500 rounded-full px-2")},m(o,u){ue(o,e,u),r(e,s),r(e,_)},p(o,u){u&2&&l!==(l=o[6].name+"")&&se(s,l),u&2&&h!==(h=o[6].link)&&d(e,"href",h)},d(o){o&&p(e)}}}function Ie(i){let e,l,s,_,h,o,u,g=i[3].name+"",N,S,B,I,O=i[3].description+"",C,U,T,m,G,n,c,f,k,H,V,A,L,R,M,de,P,he,J,ne=i[2](i[0].table.updated,{values:{relativeTime:i[3].lastUpdated.toISOString()}})+"",oe,me,Y;s=new Re({props:{fill:"currentColor"}});let K=le(i[3].members),y=[];for(let t=0;t<K.length;t+=1)y[t]=je(xe(i,K,t));let Q=le(i[3].tags),E=[];for(let t=0;t<Q.length;t+=1)E[t]=De(we(i,Q,t));return k=new Fe({props:{fill:"currentColor"}}),A=new Ne({props:{fill:"currentColor"}}),M=new He({props:{fill:"currentColor"}}),P=new qe({props:{fill:"currentColor"}}),{c(){e=v("tr"),l=v("td"),X(s.$$.fragment),_=x(),h=v("div"),o=v("div"),u=v("span"),N=ae(g),S=x();for(let t=0;t<y.length;t+=1)y[t].c();B=x(),I=v("div"),C=ae(O),U=x(),T=v("div");for(let t=0;t<E.length;t+=1)E[t].c();m=x(),G=v("td"),n=v("div"),c=v("div"),f=v("button"),X(k.$$.fragment),H=x(),V=v("button"),X(A.$$.fragment),L=x(),R=v("button"),X(M.$$.fragment),de=x(),X(P.$$.fragment),he=x(),J=v("div"),oe=ae(ne),me=x(),this.h()},l(t){e=b(t,"TR",{class:!0});var w=$(e);l=b(w,"TD",{class:!0});var a=$(l);Z(s.$$.fragment,a),_=j(a),h=b(a,"DIV",{class:!0});var D=$(h);o=b(D,"DIV",{class:!0});var ie=$(o);u=b(ie,"SPAN",{class:!0});var _e=$(u);N=re(_e,g),_e.forEach(p),S=j(ie);for(let z=0;z<y.length;z+=1)y[z].l(ie);ie.forEach(p),B=j(D),I=b(D,"DIV",{class:!0});var ge=$(I);C=re(ge,O),ge.forEach(p),U=j(D),T=b(D,"DIV",{class:!0});var ve=$(T);for(let z=0;z<E.length;z+=1)E[z].l(ve);ve.forEach(p),D.forEach(p),a.forEach(p),m=j(w),G=b(w,"TD",{});var be=$(G);n=b(be,"DIV",{class:!0});var fe=$(n);c=b(fe,"DIV",{class:!0});var W=$(c);f=b(W,"BUTTON",{type:!0,class:!0});var $e=$(f);Z(k.$$.fragment,$e),$e.forEach(p),H=j(W),V=b(W,"BUTTON",{type:!0,class:!0});var ye=$(V);Z(A.$$.fragment,ye),ye.forEach(p),L=j(W),R=b(W,"BUTTON",{type:!0,class:!0});var ce=$(R);Z(M.$$.fragment,ce),de=j(ce),Z(P.$$.fragment,ce),ce.forEach(p),W.forEach(p),he=j(fe),J=b(fe,"DIV",{class:!0});var Ee=$(J);oe=re(Ee,ne),Ee.forEach(p),fe.forEach(p),be.forEach(p),me=j(w),w.forEach(p),this.h()},h(){d(u,"class","text-primary-500"),d(o,"class","flex"),d(I,"class","text-surface-400"),d(T,"class","flex gap-2"),d(h,"class","flex flex-col"),d(l,"class","flex mx-4 gap-4"),d(f,"type","submit"),d(f,"class","bg-white text-surface-200 rounded border px-4 py-2"),d(V,"type","submit"),d(V,"class","bg-white text-surface-200 rounded border px-4 py-2"),d(R,"type","submit"),d(R,"class","bg-white text-surface-200 rounded border px-4 py-2 flex"),d(c,"class","flex justify-between gap-4"),d(J,"class","text-surface-400"),d(n,"class","flex flex-col px-4 py-4"),d(e,"class","flex justify-between gap-4 bg-white border")},m(t,w){ue(t,e,w),r(e,l),ee(s,l,null),r(l,_),r(l,h),r(h,o),r(o,u),r(u,N),r(o,S);for(let a=0;a<y.length;a+=1)y[a]&&y[a].m(o,null);r(h,B),r(h,I),r(I,C),r(h,U),r(h,T);for(let a=0;a<E.length;a+=1)E[a]&&E[a].m(T,null);r(e,m),r(e,G),r(G,n),r(n,c),r(c,f),ee(k,f,null),r(c,H),r(c,V),ee(A,V,null),r(c,L),r(c,R),ee(M,R,null),r(R,de),ee(P,R,null),r(n,he),r(n,J),r(J,oe),r(e,me),Y=!0},p(t,w){if((!Y||w&2)&&g!==(g=t[3].name+"")&&se(N,g),w&2){K=le(t[3].members);let a;for(a=0;a<K.length;a+=1){const D=xe(t,K,a);y[a]?y[a].p(D,w):(y[a]=je(D),y[a].c(),y[a].m(o,null))}for(;a<y.length;a+=1)y[a].d(1);y.length=K.length}if((!Y||w&2)&&O!==(O=t[3].description+"")&&se(C,O),w&2){Q=le(t[3].tags);let a;for(a=0;a<Q.length;a+=1){const D=we(t,Q,a);E[a]?E[a].p(D,w):(E[a]=De(D),E[a].c(),E[a].m(T,null))}for(;a<E.length;a+=1)E[a].d(1);E.length=Q.length}(!Y||w&7)&&ne!==(ne=t[2](t[0].table.updated,{values:{relativeTime:t[3].lastUpdated.toISOString()}})+"")&&se(oe,ne)},i(t){Y||(F(s.$$.fragment,t),F(k.$$.fragment,t),F(A.$$.fragment,t),F(M.$$.fragment,t),F(P.$$.fragment,t),Y=!0)},o(t){q(s.$$.fragment,t),q(k.$$.fragment,t),q(A.$$.fragment,t),q(M.$$.fragment,t),q(P.$$.fragment,t),Y=!1},d(t){t&&p(e),te(s),pe(y,t),pe(E,t),te(k),te(A),te(M),te(P)}}}function Le(i){let e,l,s,_,h=i[2](i[0].heading.name)+"",o,u,g,N,S,B=i[2](i[0].heading.lastUpdated)+"",I,O,C,U;g=new Oe({props:{fill:"currentColor"}});let T=le(i[1]),m=[];for(let n=0;n<T.length;n+=1)m[n]=Ie(ke(i,T,n));const G=n=>q(m[n],1,1,()=>{m[n]=null});return{c(){e=v("table"),l=v("thead"),s=v("tr"),_=v("th"),o=ae(h),u=x(),X(g.$$.fragment),N=x(),S=v("th"),I=ae(B),O=x(),C=v("tbody");for(let n=0;n<m.length;n+=1)m[n].c();this.h()},l(n){e=b(n,"TABLE",{class:!0});var c=$(e);l=b(c,"THEAD",{});var f=$(l);s=b(f,"TR",{class:!0});var k=$(s);_=b(k,"TH",{class:!0});var H=$(_);o=re(H,h),u=j(H),Z(g.$$.fragment,H),H.forEach(p),N=j(k),S=b(k,"TH",{class:!0});var V=$(S);I=re(V,B),V.forEach(p),k.forEach(p),f.forEach(p),O=j(c),C=b(c,"TBODY",{});var A=$(C);for(let L=0;L<m.length;L+=1)m[L].l(A);A.forEach(p),c.forEach(p),this.h()},h(){d(_,"class","flex text-surface-400 mx-4"),d(S,"class","text-surface-400 mx-4"),d(s,"class","flex justify-between gap-4 bg-surface-100 h-8"),d(e,"class","w-4/5 min-w-96 px-4 mx-auto")},m(n,c){ue(n,e,c),r(e,l),r(l,s),r(s,_),r(_,o),r(_,u),ee(g,_,null),r(s,N),r(s,S),r(S,I),r(e,O),r(e,C);for(let f=0;f<m.length;f+=1)m[f]&&m[f].m(C,null);U=!0},p(n,[c]){if((!U||c&5)&&h!==(h=n[2](n[0].heading.name)+"")&&se(o,h),(!U||c&5)&&B!==(B=n[2](n[0].heading.lastUpdated)+"")&&se(I,B),c&7){T=le(n[1]);let f;for(f=0;f<T.length;f+=1){const k=ke(n,T,f);m[f]?(m[f].p(k,c),F(m[f],1)):(m[f]=Ie(k),m[f].c(),F(m[f],1),m[f].m(C,null))}for(Be(),f=T.length;f<m.length;f+=1)G(f);Ve()}},i(n){if(!U){F(g.$$.fragment,n);for(let c=0;c<T.length;c+=1)F(m[c]);U=!0}},o(n){q(g.$$.fragment,n),m=m.filter(Boolean);for(let c=0;c<m.length;c+=1)q(m[c]);U=!1},d(n){n&&p(e),te(g),pe(m,n)}}}function Me(i,e,l){let s;Ae(i,Ge,o=>l(2,s=o));let{i18n:_={heading:{lastUpdated:"",name:""},table:{updated:""}}}=e,{projects:h=[]}=e;return i.$$set=o=>{"i18n"in o&&l(0,_=o.i18n),"projects"in o&&l(1,h=o.projects)},[_,h,s]}class Pe extends Ce{constructor(e){super(),Se(this,e,Me,Le,Ue,{i18n:0,projects:1})}}Pe.__docgen={version:3,name:"FileTable.svelte",data:[{keywords:[],visibility:"public",description:"Translation keys.",name:"i18n",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}},{keywords:[],visibility:"public",description:"Available projects.",name:"projects",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"array",type:"array"}}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};export{Pe as F};
|