import{b as h,W as p,o as s,c as g,w as x,f as n,r as b,F as y,T as v,h as t,k as u,t as r,j as k,X as w,v as R}from"./entry.5c8819da.js";import{_ as C}from"./ReleasesReactions.vue_vue_type_script_setup_true_lang.7548fd2c.js";/* empty css                                                                 */import"./Badge.vue_vue_type_script_setup_true_lang.871fa249.js";const B={class:"flex-1"},D={class:"release-meta z-1 sticky -mt-8 flex w-full flex-row items-center justify-between gap-2 self-start px-8 text-right lg:w-1/4 lg:flex-col lg:items-end lg:bg-transparent lg:px-0 lg:pt-8 lg:backdrop-blur-none"},j=["href"],F=["id"],I={class:"flex flex-col gap-2 pb-4"},L=["href"],N={class:"flex-shrink-0"},V=["src"],E={class:"text-sm lg:text-base"},G={class:"text-xs lg:text-base"},S=h({__name:"Releases",setup(T){const o=p();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 _=a=>{const l="en-US";try{return new Intl.DateTimeFormat(l,{day:"numeric",month:"long",year:"numeric"}).format(Date.parse(a))}catch{return a}};return(a,l)=>{const c=w,m=C,d=v("GithubReleases");return s(),g(d,null,{default:x(({releases:f})=>[(s(!0),n(y,null,b(f,e=>{var i;return s(),n("div",{key:e.name,class:"release mb-6 flex flex-col-reverse border-gray-100 pb-6 dark:border-gray-800 lg:flex-row lg:border-b"},[t("div",B,[u(c,{value:e,class:"docus-content"},null,8,["value"]),u(m,{class:"lg:mb-4",release:e},null,8,["release"])]),t("div",D,[t("a",{href:e.url,target:"_blank"},[t("h2",{id:e.name,class:"hover:text-primary-500 u-text-gray-900 cursor-pointer text-2xl font-bold lg:text-3xl"},r(e.name),9,F)],8,j),t("div",I,[e.author?(s(),n("a",{key:0,target:"_blank",href:e.author.url,class:"hover:u-text-gray-900 mt-4 flex items-center justify-end gap-2 lg:mt-0"},[t("div",N,[t("img",{class:"h-6 w-6 rounded-full",src:(i=e.author)==null?void 0:i.avatar,alt:""},null,8,V)]),t("p",E,"@"+r(e.author.name),1)],8,L)):k("",!0),t("p",G,r(_(e.date)),1)])])])}),128))]),_:1})}}}),X=R(S,[["__scopeId","data-v-3735c798"]]);export{X as default};
