import{_ as x,d as g,y as b,z as y,o as s,f as v,w,c,A as k,a as t,b as m,t as l,h as R,F as B,B as C}from"./entry-d195bacb.mjs";import D from"./ReleasesReactions-538fbd54.mjs";import"./Badge-6a799785.mjs";const L=g({name:"Releases",setup(f,{expose:i}){i();const o=b();if(!(o!=null&&o.github))throw new Error("If you want to use `Releases` component, you must specify: `owner`, `repo` and `branch` in your nuxt.config `github` key.");const n={config:o,formatDateByLocale:a=>{const r="en-US";try{return new Intl.DateTimeFormat(r,{day:"numeric",month:"long",year:"numeric"}).format(Date.parse(a))}catch{return a}}};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}}),S={class:"flex-1"},$={class:"sticky flex flex-row items-center self-start justify-between w-full gap-2 py-2 text-right lg:py-0 release-meta surface z-1 lg:w-1/4 lg:bg-transparent lg:backdrop-blur-none lg:items-end lg:flex-col"},j=["href"],F=["id"],I={class:"flex flex-col gap-2 pb-4"},N=["href"],V={class:"flex-shrink-0"},z=["src"],E={class:"text-sm lg:text-base"},G={class:"text-xs lg:text-base"};function A(f,i,o,_,n,a){const r=C,u=D,p=y("GithubReleases");return s(),v(p,null,{default:w(({releases:h})=>[(s(!0),c(B,null,k(h,e=>{var d;return s(),c("div",{key:e.name,class:"flex flex-col-reverse pb-6 mb-6 border-gray-100 release dark:border-gray-800 lg:border-b lg:flex-row"},[t("div",S,[m(r,{value:e,class:"docus-content"},null,8,["value"]),m(u,{class:"lg:mb-4",release:e},null,8,["release"])]),t("div",$,[t("a",{href:e.url,target:"_blank"},[t("h2",{id:e.name,class:"text-2xl font-bold transition-colors cursor-pointer hover:text-secondary-hover transition-base lg:text-3xl"},l(e.name),9,F)],8,j),t("div",I,[e.author?(s(),c("a",{key:0,target:"_blank",href:e.author.url,class:"flex items-center justify-end gap-2 transition-colors hover:text-secondary-hover transition-base"},[t("div",V,[t("img",{class:"w-6 h-6 rounded-full",src:(d=e.author)==null?void 0:d.avatar,alt:""},null,8,z)]),t("p",E,"@"+l(e.author.name),1)],8,N)):R("",!0),t("p",G,l(_.formatDateByLocale(e.date)),1)])])])}),128))]),_:1})}var U=x(L,[["render",A],["__scopeId","data-v-4de79598"]]);export{U as default};
