1 line
3.5 KiB
JavaScript
1 line
3.5 KiB
JavaScript
import{S as ie,c as le,a as ce,d as ee,e as te,m as se,b as ae,t as oe,f as re,g as ne}from"./index-Bq12SwZr.js";import{a as c,t as A,b as T,f as m,h as u,j as I,d as l,k as D,l as n,i as me,m as t,n as P}from"./lifecycle-DxKVJJp3.js";import{$ as ue,a as fe}from"./runtime-5BIk_n0E.js";import{b as de,F as pe}from"./ZoomOut24-DEQR2-6L.js";function ve(s){let a,i,f,b=s[0].name+"",h,C,r,N=s[1](s[3].relative_time,{values:{relativeTime:s[2](new Date(s[0].committed))}})+"",V,J,_,d,y,K,$,S=s[1](s[3].actions.copy)+"",O,L,g,k=s[0].hash.slice(0,8)+"",U,M,B,p,w,Q,E,j=s[1](s[3].actions.browse)+"",F,v;return y=new de({props:{fill:"currentColor"}}),w=new pe({props:{fill:"currentColor"}}),{c(){a=c("div"),i=c("div"),f=c("span"),h=A(b),C=T(),r=c("span"),V=A(N),J=T(),_=c("div"),d=c("button"),ee(y.$$.fragment),K=T(),$=c("span"),O=A(S),L=T(),g=c("button"),U=A(k),M=T(),B=c("div"),p=c("button"),ee(w.$$.fragment),Q=T(),E=c("span"),F=A(j),this.h()},l(e){a=m(e,"DIV",{class:!0});var o=u(a);i=m(o,"DIV",{class:!0});var q=u(i);f=m(q,"SPAN",{class:!0});var R=u(f);h=I(R,b),R.forEach(l),C=D(q),r=m(q,"SPAN",{class:!0});var W=u(r);V=I(W,N),W.forEach(l),q.forEach(l),J=D(o),_=m(o,"DIV",{class:!0});var z=u(_);d=m(z,"BUTTON",{type:!0,class:!0});var G=u(d);te(y.$$.fragment,G),K=D(G),$=m(G,"SPAN",{class:!0});var X=u($);O=I(X,S),X.forEach(l),G.forEach(l),L=D(z),g=m(z,"BUTTON",{type:!0,class:!0});var Y=u(g);U=I(Y,k),Y.forEach(l),z.forEach(l),M=D(o),B=m(o,"DIV",{});var Z=u(B);p=m(Z,"BUTTON",{type:!0,class:!0});var H=u(p);te(w.$$.fragment,H),Q=D(H),E=m(H,"SPAN",{class:!0});var x=u(E);F=I(x,j),x.forEach(l),H.forEach(l),Z.forEach(l),o.forEach(l),this.h()},h(){n(f,"class","text-surface-500"),n(r,"class","text-surface-400"),n(i,"class","flex flex-col flex-1"),n($,"class","sr-only"),n(d,"type","button"),n(d,"class","btn-icon border border-surface-100 rounded bg-white self-start"),n(g,"type","button"),n(g,"class","btn border border-surface-100 rounded bg-white min-w-32 self-start"),n(_,"class","flex"),n(E,"class","sr-only"),n(p,"type","button"),n(p,"class","btn-icon border border-surface-100 rounded bg-white"),n(a,"class","flex w-full justify-between gap-4 border border-surface-100")},m(e,o){me(e,a,o),t(a,i),t(i,f),t(f,h),t(i,C),t(i,r),t(r,V),t(a,J),t(a,_),t(_,d),se(y,d,null),t(d,K),t(d,$),t($,O),t(_,L),t(_,g),t(g,U),t(a,M),t(a,B),t(B,p),se(w,p,null),t(p,Q),t(p,E),t(E,F),v=!0},p(e,[o]){(!v||o&1)&&b!==(b=e[0].name+"")&&P(h,b),(!v||o&7)&&N!==(N=e[1](e[3].relative_time,{values:{relativeTime:e[2](new Date(e[0].committed))}})+"")&&P(V,N),(!v||o&2)&&S!==(S=e[1](e[3].actions.copy)+"")&&P(O,S),(!v||o&1)&&k!==(k=e[0].hash.slice(0,8)+"")&&P(U,k),(!v||o&2)&&j!==(j=e[1](e[3].actions.browse)+"")&&P(F,j)},i(e){v||(ae(y.$$.fragment,e),ae(w.$$.fragment,e),v=!0)},o(e){oe(y.$$.fragment,e),oe(w.$$.fragment,e),v=!1},d(e){e&&l(a),re(y),re(w)}}}function be(s,a,i){let f,b;ne(s,ue,r=>i(1,f=r)),ne(s,fe,r=>i(2,b=r));let{commit:h={name:""}}=a;const C={actions:{browse:"page.profile.history.activities.commits.actions.browse",copy:"page.profile.history.activities.commits.actions.copy"},relative_time:"page.profile.history.activities.commits.relative_time"};return s.$$set=r=>{"commit"in r&&i(0,h=r.commit)},[h,f,b,C]}class _e extends ie{constructor(a){super(),le(this,a,be,ve,ce,{commit:0})}}_e.__docgen={version:3,name:"CommitBody.svelte",data:[{keywords:[],visibility:"public",description:"The commit to display.",name:"commit",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};export{_e as C};
|