Anvil/assets/Project-D67vBS_-.js
André Jaenisch c3b7142b41
Updates
2024-07-05 16:28:36 +02:00

1 line
5.9 KiB
JavaScript

import{S as Ve,c as Pe,a as Ue,d as z,e as G,m as H,b as I,h as xe,t as V,f as J,g as Ne,j as Se}from"./index-C1iGU3rq.js";import{a as d,b as v,t as Y,f as p,h as m,k as b,j as Z,d as u,p as Ae,l as c,i as Ie,m as t,n as ee,q as Be}from"./lifecycle-B8I1Hqtw.js";import{e as Ee}from"./each-Bn1pG6U6.js";import{$ as qe}from"./runtime-CtT-6RLV.js";import{R as Oe,d as Re,e as Le,E as Fe,T as ze,P as Ge}from"./ZoomOut24-6gteXZNx.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,q,Q=f[3](f[0].buttons.fork)+"",re,ue,P,de,E,O,W=f[3](f[0].buttons.star)+"",se,pe,U,me,$,R,X=f[3](f[0].buttons.watch)+"",ae,he,x,_e,N,ve,S,ge="Updated somewhen",C;h=new Oe({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 Re({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"),q=d("span"),re=Y(Q),ue=v(),z(P.$$.fragment),de=v(),E=d("button"),O=d("span"),se=Y(W),pe=v(),z(U.$$.fragment),me=v(),$=d("button"),R=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);q=p(ne,"SPAN",{class:!0});var ke=m(q);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);O=p(oe,"SPAN",{class:!0});var we=m(O);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($);R=p(F,"SPAN",{class:!0});var je=m(R);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(q,"class","sr-only"),c(j,"type","button"),c(j,"class","btn-icon border rounded-none"),c(O,"class","sr-only"),c(E,"type","button"),c(E,"class","btn-icon border rounded-none"),c(R,"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,q),t(q,re),t(j,ue),H(P,j,null),t(w,de),t(w,E),t(E,O),t(O,se),t(E,pe),H(U,E,null),t(w,me),t(w,$),t($,R),t(R,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,qe,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};