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,k as Ve,t as q,f as te,h as Ae,l as Be,o as ke}from"./index-DmiCujb-.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 h,i as ue,m as r,n as se,r as pe}from"./lifecycle-u0QeOdKt.js";import{e as le}from"./each-BS8lKJpw.js";import{k as Oe,R as Re,h as Fe,j as Ne,E as He,T as qe}from"./ZoomOut24-DZT7xMar.js";import{$ as Ge}from"./runtime-D6MmngXK.js";function Te(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,_,d,o;return{c(){e=v("a"),l=v("img"),d=x(),this.h()},l(u){e=b(u,"A",{href:!0});var g=$(e);l=b(g,"IMG",{src:!0,alt:!0}),d=j(g),g.forEach(p),this.h()},h(){ke(l.src,s=i[9].avatar)||h(l,"src",s),h(l,"alt",_=i[9].name),h(e,"href",o="/people/"+i[9].slug)},m(u,g){ue(u,e,g),r(e,l),r(e,d)},p(u,g){g&2&&!ke(l.src,s=u[9].avatar)&&h(l,"src",s),g&2&&_!==(_=u[9].name)&&h(l,"alt",_),g&2&&o!==(o="/people/"+u[9].slug)&&h(e,"href",o)},d(u){u&&p(e)}}}function De(i){let e,l=i[6].name+"",s,_,d;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(){h(e,"href",d=i[6].link),h(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&&d!==(d=o[6].link)&&h(e,"href",d)},d(o){o&&p(e)}}}function Ie(i){let e,l,s,_,d,o,u,g=i[3].name+"",N,S,B,I,O=i[3].description+"",C,U,k,m,G,n,c,f,T,H,V,A,L,R,M,he,P,de,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 T=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(),d=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(),k=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(T.$$.fragment),H=x(),V=v("button"),X(A.$$.fragment),L=x(),R=v("button"),X(M.$$.fragment),he=x(),X(P.$$.fragment),de=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),d=b(a,"DIV",{class:!0});var D=$(d);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),k=b(D,"DIV",{class:!0});var ve=$(k);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(T.$$.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),he=j(ce),Z(P.$$.fragment,ce),ce.forEach(p),W.forEach(p),de=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(){h(u,"class","text-primary-500"),h(o,"class","flex"),h(I,"class","text-surface-400"),h(k,"class","flex gap-2"),h(d,"class","flex flex-col"),h(l,"class","flex mx-4 gap-4"),h(f,"type","submit"),h(f,"class","bg-white text-surface-200 rounded border px-4 py-2"),h(V,"type","submit"),h(V,"class","bg-white text-surface-200 rounded border px-4 py-2"),h(R,"type","submit"),h(R,"class","bg-white text-surface-200 rounded border px-4 py-2 flex"),h(c,"class","flex justify-between gap-4"),h(J,"class","text-surface-400"),h(n,"class","flex flex-col px-4 py-4"),h(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,d),r(d,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(d,B),r(d,I),r(I,C),r(d,U),r(d,k);for(let a=0;a<E.length;a+=1)E[a]&&E[a].m(k,null);r(e,m),r(e,G),r(G,n),r(n,c),r(c,f),ee(T,f,null),r(c,H),r(c,V),ee(A,V,null),r(c,L),r(c,R),ee(M,R,null),r(R,he),ee(P,R,null),r(n,de),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(k,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(T.$$.fragment,t),F(A.$$.fragment,t),F(M.$$.fragment,t),F(P.$$.fragment,t),Y=!0)},o(t){q(s.$$.fragment,t),q(T.$$.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(T),te(A),te(M),te(P)}}}function Le(i){let e,l,s,_,d=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 k=le(i[1]),m=[];for(let n=0;n<k.length;n+=1)m[n]=Ie(Te(i,k,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(d),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 T=$(s);_=b(T,"TH",{class:!0});var H=$(_);o=re(H,d),u=j(H),Z(g.$$.fragment,H),H.forEach(p),N=j(T),S=b(T,"TH",{class:!0});var V=$(S);I=re(V,B),V.forEach(p),T.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(){h(_,"class","flex text-surface-400 mx-4"),h(S,"class","text-surface-400 mx-4"),h(s,"class","flex justify-between gap-4 bg-surface-100 h-8"),h(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)&&d!==(d=n[2](n[0].heading.name)+"")&&se(o,d),(!U||c&5)&&B!==(B=n[2](n[0].heading.lastUpdated)+"")&&se(I,B),c&7){k=le(n[1]);let f;for(f=0;f<k.length;f+=1){const T=Te(n,k,f);m[f]?(m[f].p(T,c),F(m[f],1)):(m[f]=Ie(T),m[f].c(),F(m[f],1),m[f].m(C,null))}for(Be(),f=k.length;f<m.length;f+=1)G(f);Ve()}},i(n){if(!U){F(g.$$.fragment,n);for(let c=0;c<k.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:d=[]}=e;return i.$$set=o=>{"i18n"in o&&l(0,_=o.i18n),"projects"in o&&l(1,d=o.projects)},[_,d,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};
|