import g from"./Spinner.983a6ef5.js";import{o as r,c as s,a as f,f as x,$ as y,u as t,g as m,N as b,t as d,Y as h,b as k,d as w}from"./entry.5974df5d.js";import{u as S}from"./fetch.e85ac4ec.js";import"./client-only.d9ce27ac.js";import{_ as v}from"./_plugin-vue_export-helper.a1a6add7.js";const $={fill:"#fff",height:"800",width:"800",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 473.486 473.486","xml:space":"preserve"};function B(a,e){return r(),s("svg",$,e[0]||(e[0]=[f("path",{d:"m473.486 182.079-162.871-24.127L235.904 11.23l-73.276 147.445L0 184.389l117.584 115.252-25.798 162.616 145.946-76.215 146.684 74.787-27.384-162.356z"},null,-1)]))}const z={render:B},N={class:"github-stars"},L={key:0,style:{display:"none"}},V=["href","id"],C=x({__name:"GithubStarsMini",props:{username:{type:String,required:!0},location:{type:String},reponame:{type:String,required:!0}},async setup(a){let e,i;const c=a,{data:o,pending:l,error:n}=([e,i]=y(()=>S(`https://api.github.com/repos/${c.username}/${c.reponame}`,{server:!1,pick:["html_url","stargazers_count"]},"$8M5PQDL220")),e=await e,i(),e);return(q,D)=>{var _,u;const p=g;return r(),s("div",N,[t(l)?(r(),m(p,{key:0,width:"12px",height:"12px"})):(r(),s(b,{key:1},[t(n)?(r(),s("span",L,d(t(n)),1)):h("",!0),t(n)?(r(),m(p,{key:1})):t(o)?(r(),s("a",{key:2,class:"github-stars--mini",href:`${(_=t(o))==null?void 0:_.html_url}/stargazers`,target:"_blank",id:`${a.location}-github-stargazers-button`},[k(t(z),{height:"10",width:"10"}),w(" "+d((u=t(o))==null?void 0:u.stargazers_count.toLocaleString("en-US")),1)],8,V)):h("",!0)],64))])}}}),G=v(C,[["__scopeId","data-v-4d7633b7"]]);export{G as default};