Anvil/assets/Project-E8T-J5XL.js
André Jaenisch e545bd2756
Updates
2024-07-22 13:59:31 +02:00

1 line
5.9 KiB
JavaScript

import{S as Ve,i as Pe,s as Ue,c as z,a as G,m as H,t as I,j as xe,b as V,d as J,e as Ne,k as Se}from"./index-7XOhh2kt.js";import{e as d,a as v,t as Y,c as p,b as m,d as b,f as Z,h as u,i as Ae,j as c,k as Ie,l as t,n as ee,r as Be}from"./lifecycle-Dpe71s4v.js";import{e as Ee}from"./each-iA4Nym3y.js";import{$ as Oe}from"./runtime-BQCs4yl7.js";import{R as Re,f as qe,h as Le,E as Fe,T as ze,P as Ge}from"./ZoomOut24-Cmc7Jjj8.js";function Ce(f,r,l){const n=f.slice();return n[4]=r[l],n}function De(f){let r,l,n,h,g,_;return n=new Ge({props:{fill:"currentColor"}}),{c(){r=d("li"),l=d("div"),z(n.$$.fragment),h=v(),this.h()},l(a){r=p(a,"LI",{title:!0});var y=m(r);l=p(y,"DIV",{class:!0});var k=m(l);G(n.$$.fragment,k),k.forEach(u),h=b(y),y.forEach(u),this.h()},h(){c(l,"class","bg-surface-500 text-white rounded-full"),c(r,"title",g=f[4].preferredUsername)},m(a,y){Ie(a,r,y),t(r,l),H(n,l,null),t(r,h),_=!0},p(a,y){(!_||y&2&&g!==(g=a[4].preferredUsername))&&c(r,"title",g)},i(a){_||(I(n.$$.fragment,a),_=!0)},o(a){V(n.$$.fragment,a),_=!1},d(a){a&&u(r),J(n)}}}function He(f){let r,l,n,h,g,_=f[2].name+"",a,y,k,ie,B,K=f[2].summary+"",te,ce,M,fe,T,w,j,O,Q=f[3](f[0].buttons.fork)+"",re,ue,P,de,E,R,W=f[3](f[0].buttons.star)+"",se,pe,U,me,$,q,X=f[3](f[0].buttons.watch)+"",ae,he,x,_e,N,ve,S,ge="Updated somewhen",C;h=new Re({props:{fill:"currentColor"}});let A=Ee(f[1]),o=[];for(let e=0;e<A.length;e+=1)o[e]=De(Ce(f,A,e));const Te=e=>V(o[e],1,1,()=>{o[e]=null});return P=new qe({props:{fill:"currentColor"}}),U=new Le({props:{fill:"currentColor"}}),x=new Fe({props:{fill:"currentColor"}}),N=new ze({props:{fill:"currentColor"}}),{c(){r=d("div"),l=d("div"),n=d("div"),z(h.$$.fragment),g=v(),a=Y(_),y=v(),k=d("ul");for(let e=0;e<o.length;e+=1)o[e].c();ie=v(),B=d("div"),te=Y(K),ce=v(),M=d("div"),fe=v(),T=d("div"),w=d("div"),j=d("button"),O=d("span"),re=Y(Q),ue=v(),z(P.$$.fragment),de=v(),E=d("button"),R=d("span"),se=Y(W),pe=v(),z(U.$$.fragment),me=v(),$=d("button"),q=d("span"),ae=Y(X),he=v(),z(x.$$.fragment),_e=v(),z(N.$$.fragment),ve=v(),S=d("div"),S.textContent=ge,this.h()},l(e){r=p(e,"DIV",{class:!0});var i=m(r);l=p(i,"DIV",{class:!0});var s=m(l);n=p(s,"DIV",{class:!0});var D=m(n);G(h.$$.fragment,D),g=b(D),a=Z(D,_),y=b(D),k=p(D,"UL",{class:!0});var ye=m(k);for(let be=0;be<o.length;be+=1)o[be].l(ye);ye.forEach(u),D.forEach(u),ie=b(s),B=p(s,"DIV",{class:!0});var $e=m(B);te=Z($e,K),$e.forEach(u),ce=b(s),M=p(s,"DIV",{class:!0}),m(M).forEach(u),s.forEach(u),fe=b(i),T=p(i,"DIV",{class:!0});var le=m(T);w=p(le,"DIV",{class:!0});var L=m(w);j=p(L,"BUTTON",{type:!0,class:!0});var ne=m(j);O=p(ne,"SPAN",{class:!0});var ke=m(O);re=Z(ke,Q),ke.forEach(u),ue=b(ne),G(P.$$.fragment,ne),ne.forEach(u),de=b(L),E=p(L,"BUTTON",{type:!0,class:!0});var oe=m(E);R=p(oe,"SPAN",{class:!0});var we=m(R);se=Z(we,W),we.forEach(u),pe=b(oe),G(U.$$.fragment,oe),oe.forEach(u),me=b(L),$=p(L,"BUTTON",{type:!0,class:!0});var F=m($);q=p(F,"SPAN",{class:!0});var je=m(q);ae=Z(je,X),je.forEach(u),he=b(F),G(x.$$.fragment,F),_e=b(F),G(N.$$.fragment,F),F.forEach(u),L.forEach(u),ve=b(le),S=p(le,"DIV",{class:!0,"data-svelte-h":!0}),Ae(S)!=="svelte-1njq59w"&&(S.textContent=ge),le.forEach(u),i.forEach(u),this.h()},h(){c(k,"class","ms-2 gap-4"),c(n,"class","flex -ms-10"),c(B,"class","flex -ms-4"),c(M,"class","flex"),c(l,"class","flex flex-col flex-grow ps-10"),c(O,"class","sr-only"),c(j,"type","button"),c(j,"class","btn-icon border rounded-none"),c(R,"class","sr-only"),c(E,"type","button"),c(E,"class","btn-icon border rounded-none"),c(q,"class","sr-only"),c($,"type","button"),c($,"class","btn-icon border rounded-none"),c(w,"class","flex gap-4"),c(S,"class","self-end"),c(T,"class","flex flex-col"),c(r,"class","flex bg-white border border-surface-100 p-4")},m(e,i){Ie(e,r,i),t(r,l),t(l,n),H(h,n,null),t(n,g),t(n,a),t(n,y),t(n,k);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(k,null);t(l,ie),t(l,B),t(B,te),t(l,ce),t(l,M),t(r,fe),t(r,T),t(T,w),t(w,j),t(j,O),t(O,re),t(j,ue),H(P,j,null),t(w,de),t(w,E),t(E,R),t(R,se),t(E,pe),H(U,E,null),t(w,me),t(w,$),t($,q),t(q,ae),t($,he),H(x,$,null),t($,_e),H(N,$,null),t(T,ve),t(T,S),C=!0},p(e,[i]){if((!C||i&4)&&_!==(_=e[2].name+"")&&ee(a,_),i&2){A=Ee(e[1]);let s;for(s=0;s<A.length;s+=1){const D=Ce(e,A,s);o[s]?(o[s].p(D,i),I(o[s],1)):(o[s]=De(D),o[s].c(),I(o[s],1),o[s].m(k,null))}for(Se(),s=A.length;s<o.length;s+=1)Te(s);xe()}(!C||i&4)&&K!==(K=e[2].summary+"")&&ee(te,K),(!C||i&9)&&Q!==(Q=e[3](e[0].buttons.fork)+"")&&ee(re,Q),(!C||i&9)&&W!==(W=e[3](e[0].buttons.star)+"")&&ee(se,W),(!C||i&9)&&X!==(X=e[3](e[0].buttons.watch)+"")&&ee(ae,X)},i(e){if(!C){I(h.$$.fragment,e);for(let i=0;i<A.length;i+=1)I(o[i]);I(P.$$.fragment,e),I(U.$$.fragment,e),I(x.$$.fragment,e),I(N.$$.fragment,e),C=!0}},o(e){V(h.$$.fragment,e),o=o.filter(Boolean);for(let i=0;i<o.length;i+=1)V(o[i]);V(P.$$.fragment,e),V(U.$$.fragment,e),V(x.$$.fragment,e),V(N.$$.fragment,e),C=!1},d(e){e&&u(r),J(h),Be(o,e),J(P),J(U),J(x),J(N)}}}function Je(f,r,l){let n;Ne(f,Oe,a=>l(3,n=a));let{i18n:h={buttons:{fork:"page.profile.projects.actions.fork",star:"page.profile.projects.actions.star",watch:"page.profile.projects.actions.watch"}}}=r,{collaborators:g=[]}=r,{project:_={name:"",summary:""}}=r;return f.$$set=a=>{"i18n"in a&&l(0,h=a.i18n),"collaborators"in a&&l(1,g=a.collaborators),"project"in a&&l(2,_=a.project)},[h,g,_,n]}class Ke extends Ve{constructor(r){super(),Pe(this,r,Je,He,Ue,{i18n:0,collaborators:1,project:2})}}Ke.__docgen={version:3,name:"Project.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:"Collaborators to this project.",name:"collaborators",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"array",type:"array"}},{keywords:[],visibility:"public",description:"A software project.",name:"project",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};export{Ke as P};