import{S as F,c as H,a as J,d as I,e as R,m as T,b as j,t as q,f as z,g as B}from"./index-C1iGU3rq.js";import{a as C,b as V,t as k,f as D,h as w,d as _,k as A,j as N,l as O,i as K,m as o,n as P}from"./lifecycle-B8I1Hqtw.js";import{a as L,$ as M}from"./runtime-CtT-6RLV.js";import{G as Q,R as U}from"./ZoomOut24-6gteXZNx.js";function W(n){let a,i,m,d,s,l=n[3](new Date(n[0]))+"",c,h,t=n[4](n[5].numberOfCommits,{values:{number:n[1]}})+"",g,S,f,u,E,y,p;return m=new Q({props:{fill:"currentColor"}}),u=new U({props:{fill:"currentColor"}}),{c(){a=C("div"),i=C("span"),I(m.$$.fragment),d=V(),s=C("span"),c=k(l),h=k(" - "),g=k(t),S=V(),f=C("span"),I(u.$$.fragment),E=V(),y=k(n[2]),this.h()},l(e){a=D(e,"DIV",{class:!0});var r=w(a);i=D(r,"SPAN",{class:!0});var G=w(i);R(m.$$.fragment,G),G.forEach(_),d=A(r),s=D(r,"SPAN",{class:!0});var b=w(s);c=N(b,l),h=N(b," - "),g=N(b,t),S=A(b),f=D(b,"SPAN",{class:!0});var v=w(f);R(u.$$.fragment,v),E=A(v),y=N(v,n[2]),v.forEach(_),b.forEach(_),r.forEach(_),this.h()},h(){O(i,"class","bg-white"),O(f,"class","flex gap-2"),O(s,"class","flex gap-6 -ms-3"),O(a,"class","flex gap-6 -ms-6")},m(e,r){K(e,a,r),o(a,i),T(m,i,null),o(a,d),o(a,s),o(s,c),o(s,h),o(s,g),o(s,S),o(s,f),T(u,f,null),o(f,E),o(f,y),p=!0},p(e,[r]){(!p||r&9)&&l!==(l=e[3](new Date(e[0]))+"")&&P(c,l),(!p||r&18)&&t!==(t=e[4](e[5].numberOfCommits,{values:{number:e[1]}})+"")&&P(g,t),(!p||r&4)&&P(y,e[2])},i(e){p||(j(m.$$.fragment,e),j(u.$$.fragment,e),p=!0)},o(e){q(m.$$.fragment,e),q(u.$$.fragment,e),p=!1},d(e){e&&_(a),z(m),z(u)}}}function X(n,a,i){let m,d;B(n,L,t=>i(3,m=t)),B(n,M,t=>i(4,d=t));let{commitDate:s="1970-01-01"}=a,{numberOfCommits:l=0}=a,{repoName:c=""}=a;const h={numberOfCommits:"page.profile.history.activities.commits.number"};return n.$$set=t=>{"commitDate"in t&&i(0,s=t.commitDate),"numberOfCommits"in t&&i(1,l=t.numberOfCommits),"repoName"in t&&i(2,c=t.repoName)},[s,l,c,m,d,h]}class Y extends F{constructor(a){super(),H(this,a,X,W,J,{commitDate:0,numberOfCommits:1,repoName:2})}}Y.__docgen={version:3,name:"CommitDate.svelte",data:[{keywords:[],visibility:"public",description:"The commit date as ISOString.",name:"commitDate",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:"1970-01-01"},{keywords:[],visibility:"public",description:"Number of commits on this repo at this date.",name:"numberOfCommits",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"number",type:"number"},defaultValue:0},{keywords:[],visibility:"public",description:"The name of the repo the commit is associated with.",name:"repoName",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:""}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};export{Y as C};