import{_ as g}from"./BXuXn_5k.js";import{_ as h}from"./BQGlrryy.js";import{f as b,h as v,r as x,o as t,c as a,n as d,l as m,w as p,b as y,q as k,i as u,a as s,t as r,j as l}from"./Cx8pZeM5.js";const w={class:"relative overflow-hidden rounded-md"},z=s("div",{class:"pointer-events-none absolute -bottom-2 left-0 w-full h-2/4 bg-gradient-to-b from-transparent via-gray-800/70 to-gray-800/90 rounded-md"},null,-1),B={class:"absolute-b-left w-full py-2 px-1 md:px-2 rounded-inherit text-center flex flex-col gap-2"},C={class:"font-header text-lg md:text-xl leading-5 line-clamp-3"},N={class:"flex-center gap-1 md:gap-2"},$={key:0,class:"text-lg text-amber-500 bg-amber-500/10 backdrop-blur px-2 rounded-md flex-center h-8"},D=s("i",{i:"heroicons-arrow-trending-up-20-solid"},null,-1),P=[D],S={key:1,class:"text-sm font-header h-8 bg-slate/25 backdrop-blur px-3 flex-center rounded-lg bg-slate-300"},V={key:2,class:"text-sm font-header h-8 bg-emerald/25 backdrop-blur flex-center px-3 rounded-lg capitalize"},L=b({__name:"book",props:{item:{},popular:{type:Boolean,default:!1},imgProps:{},lazy:{type:Boolean,default:!0}},setup(_){const o=_,n=v(()=>`/series/${o.item.type==="comic"?"comic":"novela"}-${o.item.slug}`);return(e,T)=>{const f=g,i=h,c=x("ripple");return t(),a("figure",w,[d((t(),m(i,{to:u(n),class:"block rounded-md"},{default:p(()=>[y(f,{class:k(["w-full rounded-md",o.imgProps?o.imgProps:"aspect-[2.75/4.75]"]),"hide-error-context":"",src:e.item.cover,srcset:e.item.cover_srcset,alt:`${e.item.name}`,lazy:o.lazy},null,8,["src","srcset","alt","lazy","class"])]),_:1},8,["to"])),[[c]]),z,s("div",B,[d((t(),m(i,{to:u(n),class:"rounded-md"},{default:p(()=>[s("figcaption",C,r(e.item.name),1)]),_:1},8,["to"])),[[c]]),s("div",N,[e.popular?(t(),a("div",$,P)):l("",!0),e.item.chapter_count?(t(),a("div",S,r(e.item.chapter_count)+" Capítulo ",1)):l("",!0),e.item.status?(t(),a("div",V,r(e.item.status.name),1)):l("",!0)])])])}}});export{L as _};