import{c as e,a as s,U as t,P as a}from"./souav-BTAG2baT.js";import{_ as l}from"./vendor-DSXubtF9.js";import{ag as o,c as r,a4 as n,a5 as i,ad as d,aN as p,a2 as c,a3 as m,v as u,bf as x,K as f,b1 as v,aW as y}from"./vendor-BXdGExd0.js";const b={class:"w-1/2 aspect-[16/9] relative flex-shrink-0"},g={class:"pt-0.5 pr-2 bg-gradient-to-b from-black/40 to-transparent flex items-start justify-between"},h={key:1},k={key:2,class:"text-xs text-[#F8D574]"},w={class:"h-[22px] px-2 pb-1 flex items-end justify-between bg-gradient-to-t from-black/40 to-transparent"},j={class:"flex items-center space-x-1"},C={class:"text-xs"},R={class:"text-xs"},T={class:"flex-1 min-w-0 pr-1.5 self-start"},$={class:"flex flex-col items-start"},_={class:"text-sm text-white font-normal line-clamp-2 leading-tight h-[34px]"},P={key:0,class:"mt-2 h-[60px] overflow-hidden"},B={class:"flex flex-wrap gap-2"},K=o({__name:"VideoListItem",props:{model:{},roundCorner:{default:5},noTags:{type:Boolean,default:!1}},setup(o){const K=o,L=r(()=>e.formatNumberK(K.model.viewQty??0)),N=r(()=>e.formatSeconds(K.model.duration??0)),V=r(()=>K.model.tags&&K.model.tags.length>0?K.model.tags.split(","):[]);return(e,r)=>(y(),n("div",{class:"flex items-center gap-x-2.5 bg-transparent",onClick:r[0]||(r[0]=e=>{return s=o.model,void a.open("VideoPage",{props:{video:s},transition:"bottom-up"});var s})},[i("div",b,[d(s,{src:o.model.img,style:p({borderRadius:`${o.roundCorner}px`}),class:"w-full h-full"},null,8,["src","style"]),i("div",{class:"absolute inset-0 flex flex-col justify-between text-white",style:p({borderRadius:`${o.roundCorner}px`})},[i("div",g,[o.model.unlockType!==u(t).free?(y(),c(l,{key:0,"unlock-type":o.model.unlockType??u(t).free,"buy-price":o.model.buyPrice,style:p({borderTopLeftRadius:`${o.roundCorner}px`,borderBottomRightRadius:`${o.roundCorner}px`}),class:"overflow-hidden"},null,8,["unlock-type","buy-price","style"])):(y(),n("span",h)),o.model.score?(y(),n("span",k,x(o.model.score),1)):m("",!0)]),i("div",w,[i("div",j,[r[1]||(r[1]=i("i",{class:"icon-sprite icon-play"},null,-1)),i("span",C,x(L.value),1)]),i("span",R,x(N.value),1)])],4)]),i("div",T,[i("div",$,[i("p",_,x(o.model.title),1),!K.noTags&&V.value.length>0?(y(),n("div",P,[i("div",B,[(y(!0),n(f,null,v(V.value,(e,s)=>(y(),n("div",{key:s,class:"px-2.5 py-1 bg-gray-600/70 rounded text-white text-xs"},x(e),1))),128))])])):m("",!0)])])]))}});export{K as _};
