2 lines
13 KiB
JavaScript
2 lines
13 KiB
JavaScript
|
import{a as it,c as et,n as tt}from"./utils-AUSSiI9x.js";import{a as p,l as y,t as R,b as u,f as h,d as s,m as k,h as J,j as S,i as I,k as e,n as F,H as ft,c as pt,p as me,q as ut,e as at}from"./lifecycle-CTLfn-qA.js";import{S as ct,i as dt,c as _e,b as he,m as ve,t as q,e as Ue,a as O,d as ge,g as Be}from"./index-BYiPtpSv.js";import{e as lt}from"./each-Dkr21eUC.js";import{$ as mt,a as _t}from"./runtime-VldLyBWb.js";import{c as ht,N as vt}from"./ZoomOut24-BdlMg8bU.js";import{A as gt}from"./Avatar-BW-Q_HeY.js";import{B as bt}from"./BlockOrReport-BcdCyU0q.js";import{C as Et}from"./Created-CXrMcAul.js";import{D as $t}from"./DisplayName-DiyeejRw.js";import{P as yt}from"./Project-Bc9PiiHe.js";function st(r,t,f){const a=r.slice();return a[6]=t[f],a}function kt(r){let t,f=r[2]("page.profile.projects.empty")+"",a,c,o,d=r[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=${r[1]}>`,importElementClose:"</a>"}})+"";return{c(){t=p("p"),a=R(f),c=y(),o=new ft(!1),this.h()},l(m){t=u(m,"P",{class:!0});var E=h(t);a=J(E,f),c=k(E),o=pt(E,!1),E.forEach(s),this.h()},h(){o.a=null,S(t,"class","px-4")},m(m,E){I(m,t,E),e(t,a),e(t,c),o.m(d,t)},p(m,E){E&4&&f!==(f=m[2]("page.profile.projects.empty")+"")&&F(a,f),E&6&&d!==(d=m[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=${m[1]}>`,importElementClose:"</a>"}})+"")&&o.p(d)},i:tt,o:tt,d(m){m&&s(t)}}}function wt(r){var P;let t,f,a,c,o="The following is DEBUG information and will be removed in the near future.",d,m,E=lt(r[0].user.followingsMap),l=[];for(let n=0;n<E.length;n+=1)l[n]=nt(st(r,E,n));const T=n=>q(l[n],1,1,()=>{l[n]=null});let g=((P=r[0])==null?void 0:P.user)&&ot(r);return{c(){t=p("ul");for(let n=0;n<l.length;n+=1)l[n].c();f=y(),a=p("div"),c=p("p"),c.textContent=o,d=y(),g&&g.c()},l(n){t=u(n,"UL",{});var _=h(t);for(let v=0;v<l.length;v+=1)l[v].l(_);_.forEach(s),f=k(n),a=u(n,"DIV",{});var w=h(a);c=u(w,"P",{"data-svelte-h":!0}),me(c)!=="svelte-qlo5bs"&&(c.textContent=o),d=k(w),g&&g.l(w),w.forEach(s)},m(n,_){I(n,t,_);for(let w=0;w<l.length;w+=1)l[w]&&l[w].m(t,null);I(n,f,_),I(n,a,_),e(a,c),e(a,d),g&&g.m(a,null),m=!0},p(n,_){var w;if(_&49){E=lt(n[0].user.followingsMap);let v;for(v=0;v<E.length;v+=1){const N=st(n,E,v);l[v]?(l[v].p(N,_),O(l[v],1)):(l[v]=nt(N),l[v].c(),O(l[v],1),l[v].m(t,null))}for(Be(),v=E.length;v<l.length;v+=1)T(v);Ue()}(w=n[0])!=null&&w.user?g?g.p(n,_):(g=ot(n),g.c(),g.m(a,null)):g&&(g.d(1),g=null)},i(n){if(!m){for(let _=0;_<E.length;_+=1)O(l[_]);m=!0}},o(n){l=l.filter(Boolean);for(let _=0;_<l.length;_+=1)q(l[_]);m=!1},d(n){n&&(s(t),s(f),s(a)),ut(l,n),g&&g.d()}}}function rt(r){let t,f,a,c;return f=new yt({props:{collaborators:r[5]([r[0].user.person],r[0].user.collaboratorsMap,r[6].id),i18n:r[4],project:r[6]}}),{c(){t=p("li"),_e(f.$$.fragment),a=y()},l(o){t=u(o,"LI",{});var d=h(t);he(f.$$.fragment,d),a=k(d),d.forEach(s)},m(o,d){I(o,t,d),ve(f,t,null),e(t,a),c=!0},p(o,d){const m={};d&1&&(m.collaborators=o[5]([o[0].user.person],o[0].user.collaboratorsMap,o[6].id)),d&1&&(m.project=o[6]),f.$set(m)},i(o){c||(O(f.$$.fragment,o),c=!0)},o(o){q(f.$$.fragment,o),c=!1},d(o){o&&s(t),ge(f)}}}function nt(r){let t,f,a=r[6].type==="Project"&&rt(r);return{c(){a&&a.c(),t=at()},l(c){a&&a.l(c),t=at()},m(c,o){a&&a.m(c,o),I(c,t,o),f=!0},p(c,o){c[6].type==="Project"?a?(a.p(c,o),o&1&&O(a,1)):(a=rt(c),a.c(),O(a,1),a.m(t.parentNode,t)):a&&(Be(),q(a,1,1,()=>{a=null}),Ue())},i(c){f||(O(a),f=!0)},o(c){q(a),f=!1},d(c){c&&s(t),a&&a.d(c)}}}function ot(r){let t,f,a="Person",c,o,d=JSON.stringify(r[0].user.person,null,2)+"",m,E,l,T,g="Followings",P,n,_=JSON.stringify(r[0].user.followings,null,2)+"",w,v,N,G,be="Followings mapped",ae,x,Ee="These are the contents of the items in the previous dump.",z,L,Z=JSON.stringify(r[0].user.followingsMap,null,2)+"",V,K,j,U,re="Collaborators mapped",ne,ee,M="These are the contents of the items in t
|