2 lines
15 KiB
JavaScript
2 lines
15 KiB
JavaScript
|
import{a as Xe,c as Ze,n as He}from"./utils-AUSSiI9x.js";import{a as c,b as E,t as te,f as m,h as g,d as r,k as y,j as le,l as x,i as S,m as s,n as oe,H as et,c as tt,p as ne,q as Be,e as Re}from"./lifecycle-DZHCWxcx.js";import{S as lt,i as st,c as $e,b as Ee,m as ye,t as L,e as Oe,a as T,d as Ce,g as Pe}from"./index-CRVYNev9.js";import{e as Ae}from"./each-DQ20ki7B.js";import{$ as at}from"./runtime-VldLyBWb.js";import{e as rt}from"./ZoomOut24-C6SRuWL3.js";import{A as nt}from"./Avatar-9JGi83Tj.js";import{B as ot}from"./BlockOrReport-BqNeaGzt.js";import{C as it}from"./Created-B43aJ4UY.js";import{D as ft}from"./DisplayName-BjMqauJp.js";import{H as pt}from"./History-BQ5-hByR.js";import{P as We}from"./Project-DQbeNx_F.js";function Ye(o,t,n){const e=o.slice();return e[5]=t[n],e}function qe(o,t,n){const e=o.slice();return e[5]=t[n],e}function ut(o){let t,n=o[2]("page.profile.projects.empty")+"",e,i,l,d=o[2]("page.profile.projects.add_or_import",{values:{addElementOpen:'<a class="anchor" href="#">',addElementClose:"</a>",importElementOpen:`<a class="anchor" href="/projects/import/" data-sb-kind=${o[1]}>`,importElementClose:"</a>"}})+"";return{c(){t=c("p"),e=te(n),i=E(),l=new et(!1),this.h()},l(_){t=m(_,"P",{class:!0});var $=g(t);e=le($,n),i=y($),l=tt($,!1),$.forEach(r),this.h()},h(){l.a=null,x(t,"class","px-4")},m(_,$){S(_,t,$),s(t,e),s(t,i),l.m(d,t)},p(_,$){$&4&&n!==(n=_[2]("page.profile.projects.empty")+"")&&oe(e,n),$&6&&d!==(d=_[2]("page.profile.projects.add_or_import",{values:{addElementOpen:'<a class="anchor" href="#">',addElementClose:"</a>",importElementOpen:`<a class="anchor" href="/projects/import/" data-sb-kind=${_[1]}>`,importElementClose:"</a>"}})+"")&&l.p(d)},i:He,o:He,d(_){_&&r(t)}}}function ct(o){var G;let t,n,e,i=o[2]("page.profile.repositories.heading")+"",l,d,_,$,w,V,B="The following is DEBUG information and will be removed in the near future.",O,A,I=Ae(o[0].user.followingsMap),b=[];for(let a=0;a<I.length;a+=1)b[a]=Ge(qe(o,I,a));const Y=a=>L(b[a],1,1,()=>{b[a]=null});let D=Ae(o[0].user.followingsMap),h=[];for(let a=0;a<D.length;a+=1)h[a]=Ke(Ye(o,D,a));const _e=a=>L(h[a],1,1,()=>{h[a]=null});let j=((G=o[0])==null?void 0:G.user)&&Qe(o);return{c(){t=c("ul");for(let a=0;a<b.length;a+=1)b[a].c();n=E(),e=c("h2"),l=te(i),d=E(),_=c("section");for(let a=0;a<h.length;a+=1)h[a].c();$=E(),w=c("div"),V=c("p"),V.textContent=B,O=E(),j&&j.c(),this.h()},l(a){t=m(a,"UL",{});var p=g(t);for(let J=0;J<b.length;J+=1)b[J].l(p);p.forEach(r),n=y(a),e=m(a,"H2",{class:!0});var C=g(e);l=le(C,i),C.forEach(r),d=y(a),_=m(a,"SECTION",{class:!0});var u=g(_);for(let J=0;J<h.length;J+=1)h[J].l(u);u.forEach(r),$=y(a),w=m(a,"DIV",{});var N=g(w);V=m(N,"P",{"data-svelte-h":!0}),ne(V)!=="svelte-qlo5bs"&&(V.textContent=B),O=y(N),j&&j.l(N),N.forEach(r),this.h()},h(){x(e,"class","h2 font-semibold leading-tight text-base px-4"),x(_,"class","flex flex-col gap-4")},m(a,p){S(a,t,p);for(let C=0;C<b.length;C+=1)b[C]&&b[C].m(t,null);S(a,n,p),S(a,e,p),s(e,l),S(a,d,p),S(a,_,p);for(let C=0;C<h.length;C+=1)h[C]&&h[C].m(_,null);S(a,$,p),S(a,w,p),s(w,V),s(w,O),j&&j.m(w,null),A=!0},p(a,p){var C;if(p&25){I=Ae(a[0].user.followingsMap);let u;for(u=0;u<I.length;u+=1){const N=qe(a,I,u);b[u]?(b[u].p(N,p),T(b[u],1)):(b[u]=Ge(N),b[u].c(),T(b[u],1),b[u].m(t,null))}for(Pe(),u=I.length;u<b.length;u+=1)Y(u);Oe()}if((!A||p&4)&&i!==(i=a[2]("page.profile.repositories.heading")+"")&&oe(l,i),p&9){D=Ae(a[0].user.followingsMap);let u;for(u=0;u<D.length;u+=1){const N=Ye(a,D,u);h[u]?(h[u].p(N,p),T(h[u],1)):(h[u]=Ke(N),h[u].c(),T(h[u],1),h[u].m(_,null))}for(Pe(),u=D.length;u<h.length;u+=1)_e(u);Oe()}(C=a[0])!=null&&C.user?j?j.p(a,p):(j=Qe(a),j.c(),j.m(w,null)):j&&(j.d(1),j=null)},i(a){if(!A){for(let p=0;p<I.length;p+=1)T(b[p]);for(let p=0;p<D.length;p+=1)T(h[p]);A=!0}},o(a){b=b.filter(Boolean);for(let p=0;p<b.length;p+=1)L(b[p]);h=h.filter(Boolean);for(let p=0;p<h.length;p+=1)L(h[p]);A=!1},d(a){a&&(r(t),r(n),r(e),r(d),r(_),r($),r(w)),Be(b,a),Be(h,a),j&&j.d()}}}function Fe(o){let t,n,e,i;return n=new We({props:{collaborators:o[4]([o[0].user.person],o[0].user.collaboratorsMap,o[5].id),i18n
|