import{N as e}from"./chunk-Cc8vDyyC.js";import{N as l,y as o,f as t}from"./souav-I_ihqEhP.js";import{C as s,P as n,S as i,B as c,Q as a,V as d,u as r,R as p,X as u,N as m}from"./chunk-BRI0aX6c.js";const x={class:"relative aspect-video w-full"},f={key:0,class:"absolute top-1.5 right-1.5 rounded-[3px] bg-green-500 px-1 text-[11px] text-white"},v={class:"flex items-center justify-center space-x-1 text-white"},b={class:"text-[12px]"},w={class:"mt-1 flex w-full flex-row items-center gap-2 text-[13px] leading-[13px] text-[#FF5C24]"},k={class:"mt-1 inline-block w-full truncate text-[14px] text-white"},h=s({__name:"VideoItemView",props:{model:{},rounded:{}},emits:["clickVideo"],setup(s,{emit:h}){const _=s,g="rounded-[".concat(_.rounded||"5px","]"),V=h;return(s,h)=>(m(),n("div",{class:"flex w-full flex-col",onClick:h[0]||(h[0]=e=>(t.openVod(_.model),void V("clickVideo",_.model)))},[i("div",x,[c(l,{src:s.model.vod_pic,class:d(["aspect-video w-full object-cover",g])},null,8,["src"]),s.model.contentType==r(o).Video?(m(),n("div",f,"免费")):a("",!0),i("div",{class:d([g,"absolute bottom-0 w-full h-[30px] rounded-b-[4px] bg-gradient-to-b from-transparent to-black/70 flex flex-row items-center justify-between px-2"])},[h[2]||(h[2]=i("div",null,null,-1)),i("div",v,[h[1]||(h[1]=i("i",{class:"iconfont icon-clock font-semibold",style:{"font-size":"13px"}},null,-1)),i("span",b,p(r(e).formatSeconds(s.model.duration)),1)])])]),i("div",w,[i("p",null,[h[3]||(h[3]=i("i",{class:"iconfont icon-like"},null,-1)),u(" "+p(r(e).formatNumber(s.model.vod_hits)),1)]),i("p",null,[h[4]||(h[4]=i("i",{class:"iconfont icon-iclikenormal"},null,-1)),u(" "+p(s.model.vod_up),1)]),i("p",null,"评分 "+p(s.model.vod_score),1)]),i("span",k,p(s.model.vod_name),1)]))}});export{h as _};
