Anvil/assets/Profile-D6sEiIcE.js

2 lines
15 KiB
JavaScript
Raw Normal View History

2024-07-05 17:21:03 +02:00
import{S as Xe,c as Ze,a as et,d as Ee,e as ye,m as Ce,t as V,h as Ve,b as P,f as ke,g as tt,j as xe,n as He}from"./index-CFSywFfb.js";import{a as f,b as y,t as re,f as u,h as $,d as r,k as C,j as ne,l as T,i as N,m as l,n as pe,H as lt,c as at,p as ue,r as Be,e as Ue}from"./lifecycle-u0QeOdKt.js";import{e as Je}from"./each-BfZOZzPH.js";import{$ as st}from"./runtime-BvEoAjCK.js";import{e as rt}from"./ZoomOut24-BLVY8N49.js";import{A as nt}from"./Avatar-CmbxeM5D.js";import{B as ot}from"./BlockOrReport-qnuVmCq3.js";import{C as it}from"./Created-D_YXvV0M.js";import{D as ft}from"./DisplayName-DWWigBos.js";import{H as ut}from"./History-BlhVDzIP.js";import{M as pt}from"./MainMenu-BIzBwEZw.js";import{P as We}from"./Project-Bi7m89Qq.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 ct(o){let t,n=o[2]("page.profile.projects.empty")+"",e,i,a,c=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=f("p"),e=re(n),i=y(),a=new lt(!1),this.h()},l(h){t=u(h,"P",{class:!0});var g=$(t);e=ne(g,n),i=C(g),a=at(g,!1),g.forEach(r),this.h()},h(){a.a=null,T(t,"class","px-4")},m(h,g){N(h,t,g),l(t,e),l(t,i),a.m(c,t)},p(h,g){g&4&&n!==(n=h[2]("page.profile.projects.empty")+"")&&pe(e,n),g&6&&c!==(c=h[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=${h[1]}>`,importElementClose:"</a>"}})+"")&&a.p(c)},i:He,o:He,d(h){h&&r(t)}}}function mt(o){var x;let t,n,e,i=o[2]("page.profile.repositories.heading")+"",a,c,h,g,j,S,Y="The following is DEBUG information and will be removed in the near future.",A,U,D=Je(o[0].user.followingsMap),b=[];for(let s=0;s<D.length;s+=1)b[s]=Ge(qe(o,D,s));const q=s=>V(b[s],1,1,()=>{b[s]=null});let k=Je(o[0].user.followingsMap),v=[];for(let s=0;s<k.length;s+=1)v[s]=Ke(Ye(o,k,s));const W=s=>V(v[s],1,1,()=>{v[s]=null});let I=((x=o[0])==null?void 0:x.user)&&Qe(o);return{c(){t=f("ul");for(let s=0;s<b.length;s+=1)b[s].c();n=y(),e=f("h2"),a=re(i),c=y(),h=f("section");for(let s=0;s<v.length;s+=1)v[s].c();g=y(),j=f("div"),S=f("p"),S.textContent=Y,A=y(),I&&I.c(),this.h()},l(s){t=u(s,"UL",{});var d=$(t);for(let H=0;H<b.length;H+=1)b[H].l(d);d.forEach(r),n=C(s),e=u(s,"H2",{class:!0});var M=$(e);a=ne(M,i),M.forEach(r),c=C(s),h=u(s,"SECTION",{class:!0});var p=$(h);for(let H=0;H<v.length;H+=1)v[H].l(p);p.forEach(r),g=C(s),j=u(s,"DIV",{});var R=$(j);S=u(R,"P",{"data-svelte-h":!0}),ue(S)!=="svelte-qlo5bs"&&(S.textContent=Y),A=C(R),I&&I.l(R),R.forEach(r),this.h()},h(){T(e,"class","h2 font-semibold leading-tight text-base px-4"),T(h,"class","flex flex-col gap-4")},m(s,d){N(s,t,d);for(let M=0;M<b.length;M+=1)b[M]&&b[M].m(t,null);N(s,n,d),N(s,e,d),l(e,a),N(s,c,d),N(s,h,d);for(let M=0;M<v.length;M+=1)v[M]&&v[M].m(h,null);N(s,g,d),N(s,j,d),l(j,S),l(j,A),I&&I.m(j,null),U=!0},p(s,d){var M;if(d&25){D=Je(s[0].user.followingsMap);let p;for(p=0;p<D.length;p+=1){const R=qe(s,D,p);b[p]?(b[p].p(R,d),P(b[p],1)):(b[p]=Ge(R),b[p].c(),P(b[p],1),b[p].m(t,null))}for(xe(),p=D.length;p<b.length;p+=1)q(p);Ve()}if((!U||d&4)&&i!==(i=s[2]("page.profile.repositories.heading")+"")&&pe(a,i),d&9){k=Je(s[0].user.followingsMap);let p;for(p=0;p<k.length;p+=1){const R=Ye(s,k,p);v[p]?(v[p].p(R,d),P(v[p],1)):(v[p]=Ke(R),v[p].c(),P(v[p],1),v[p].m(h,null))}for(xe(),p=k.length;p<v.length;p+=1)W(p);Ve()}(M=s[0])!=null&&M.user?I?I.p(s,d):(I=Qe(s),I.c(),I.m(j,null)):I&&(I.d(1),I=null)},i(s){if(!U){for(let d=0;d<D.length;d+=1)P(b[d]);for(let d=0;d<k.length;d+=1)P(v[d]);U=!0}},o(s){b=b.filter(Boolean);for(let d=0;d<b.length;d+=1)V(b[d]);v=v.filter(Boolean);for(let d=0;d<v.length;d+=1)V(v[d]);U=!1},d(s){s&&(r(t),r(n),r(e),r(c),r(h),r(g),r(j)),Be(b,s),Be(v,s),I&&I.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]