import{_ as h}from"./BQGlrryy.js";import{f as m,u as b,h as g,r as f,n as x,o as i,l as k,w as v,a as t,t as s,c as y,j as w,i as p,q as S,p as B,e as C,_ as T}from"./Cx8pZeM5.js";import{u as D}from"./B0OU9jPd.js";const n=o=>(B("data-v-00add0fb"),o=o(),C(),o),I=n(()=>t("div",{id:"indicator",class:"w-2 aspect-square rounded-full bg-amber-300"},null,-1)),N={class:"w-full flex-between"},$={id:"name",class:"text-sm text-gray-200 group-hover:text-white"},q={key:0,class:"text-xs text-gray-400 leading-3"},z={class:"text-xs text-gray-400 flex-center gap-1 whitespace-nowrap"},A=n(()=>t("i",{class:"i-heroicons-calendar-20-solid"},null,-1)),V=["datetime"],j=m({__name:"bookChapter",props:{chapter:{},bookType:{},bookSlug:{},compact:{type:Boolean}},setup(o){const c=b(),e=o,l=D(new Date(e.chapter.published_at)),d=g(()=>{const a=e.bookType||(c.params.bookType==="comic"?"comic":"novela"),r=e.bookSlug||c.params.bookSlug;return`/capitulo/${e.chapter.id}/${a}-${r}`});return(a,r)=>{const u=h,_=f("ripple");return x((i(),k(u,{to:p(d),class:S(["group flex items-center gap-4 hover:bg-gray-700/25 px-4 py-1 rounded-full transition-background-color border-gray-700 border-1",e.compact?"h-8":"h-12"]),id:{readedByAuth:e.chapter.read_by_auth}},{default:v(()=>[I,t("div",N,[t("div",null,[t("div",$," Capítulo "+s(a.chapter.name),1),a.chapter.team?(i(),y("div",q," Por "+s(a.chapter.team.name),1)):w("",!0)]),t("div",z,[A,t("time",{datetime:e.chapter.published_at,class:"first-letter:capitalize"},s(p(l)),9,V)])])]),_:1},8,["to","class","id"])),[[_]])}}}),R=T(j,[["__scopeId","data-v-00add0fb"]]);export{R as _};