import{d as l,j as A,z as t,M as o}from"./index.3bfa6a0e.js";import{C as n}from"./index.79997a38.js";import{I as s}from"./index.0fd5538f.js";import{T as a}from"./index.c171ade0.js";import{b as u}from"./bars.4f1962a6.js";import{i as d}from"./icon_album_active.469423f9.js";import{i as m}from"./icon_music_active.1e7b47ef.js";const r="_videoSection_b40pi_1",c="_videoImg_b40pi_4",p="_videoStop_b40pi_16",v="_videoTitle_b40pi_26",b="_videoTitleText_b40pi_34",I="_active_b40pi_40",f="_videoTitleContent_b40pi_43",_="_living_b40pi_48",g="_animation_b40pi_64",C="_CourseVideoItem_b40pi_68",T="_infoVideo_b40pi_71",V="_song_b40pi_96",S="_albumInfo_b40pi_100",y="_musicInfo_b40pi_104";var i={videoSection:r,videoImg:c,videoStop:p,videoTitle:v,videoTitleText:b,active:I,videoTitleContent:f,living:_,animation:g,CourseVideoItem:C,infoVideo:T,song:V,albumInfo:S,musicInfo:y},B="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA2CAMAAAC/bkrSAAAAAXNSR0IArs4c6QAAAYlQTFRFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQUFDg4OEBAQGRkZHR0dHx8fJSUlKSkpLCwsOzs7Pj4+QEBAVFRUVVVVXl5ea2trbW1teXl5e3t7fX19f39/gYGBkJCQk5OTpKSkp6enp6ensLCwsLCwtra2tra2w8PDxsbGxsbGzs7Oz8/P0NDQ0tLS0tLS09PT29vb29vb4uLi5eXl5ubm5ubm7Ozs7e3t7e3t8PDw8PDw8PDw8fHx8/Pz9vb29/f3+vr6+vr6/f39/f39/v7+/////v7+////////J7wfagAAAIJ0Uk5TAAECAwQFBwgJDQ8VFxkaGyAhIiQqKy4vMDIzNDU3ODk7PT4/QUJDREdJTU5RUlNUVVZXWFpbXV5fYGFkZWZnaGlqa21ucHJydHV1ent8g4SHjI2Sk5OVlp6eqaqrsbK1tr/AwcfIysrNzdPU297e3+bm5+nq6+zu8vL3+Pv8/f3+/h4twksAAAIJSURBVBgZrcEHV9pQAAbQT4SIgKIiigMX7lUVZ7CQzy67996tHa97T631/fI6EPNeEojn9F64qYknu/uGhvq6k/Ea+BLrmbZYYk33xFBBsHWWDrOtQXgLpEy6MlMBeKjP0lO2Hm6qOi2WYXVWwSE0ygpGQ9CEp1jRVBgKY4Y+zBiwqR6nL+PVOJChTxmUJOhbAkWGSd9MA3syVKw+WLt3gl4y2BWxaLf6WUr57Ro9WBHs6Kfivtyx9ewM3fVjWzhPxQu55+dtusqHAbRQJeS+1+fppgXAJFVClvy+u0KnScCwqBLS5t1FOlgGmqgR0m790XHqmtBFjZCqT1eo6cIINUJq/j49RcUIstQI6fDlLO2yWKJGSKfntFvCUWqEdPpKu2UUqBHS6Q3tCshRI6TDnxu0y2GBGiF1369TsYAj1Aip2nxykqpJDFIjpOLjZeoG0UaNkDbrD4/RoQ111Ah54O0FuqhDYJkqIff9urNCF8sBYJiql7Lo1Tm6GgbQQNVjuevHLXpoABBYpOLShpRya+00PSwGsC1F1c0PG++v0lMKO0ImD8EMYVczD6EZRRP0bQL7Ijn6lIugJEGfErDpoC8dUPTSh15o0qwoDYdknmXlk3ARnWMZc1G4Cqbz9JBPB+ElMlCgi8JABOXUpuepmU/XoqJY+5jJInOsPQa/jGi8sTEeNfD//AORQWsF93/GiwAAAABJRU5ErkJggg==",h=l({name:"CourseVideoItem",props:{detail:{type:Object,required:!0},musicAlbumInfos:{type:Array,default:()=>[]},border:{type:Boolean,default:!1},onPlay:{type:Function,default:()=>{}},onMusicAlbumDetail:{type:Function,default:()=>{}},playId:{type:Number,default:0}},render(){return A("div",{class:i.CourseVideoItem},[A(n,{class:i.videoSection,border:this.border,onClick:()=>this.onPlay(this.detail)},{icon:()=>A("div",{class:i.videoImg},[A(s,{src:this.detail.imgUrl,fit:"cover"},null),this.detail.id===this.playId?A("div",{class:i.living},[A(s,{src:u,class:i.animation},null),A("span",null,[t("\u64AD\u653E\u4E2D")])]):A(o,{class:i.videoStop,name:B,size:26},null)]),title:()=>A("div",{class:[i.videoTitle,"videoSmall"]},[A("p",{class:[i.videoTitleText,"van-ellipsis",this.detail.id===this.playId&&i.active]},[this.detail.title]),A("p",{class:[i.videoTitleContent,"van-multi-ellipsis--l2"]},[this.detail.content])])}),this.musicAlbumInfos.map(e=>A("div",{class:[i.infoVideo,e.relationMusicAlbum==="ALBUM"?i.albumInfo:i.musicInfo],onClick:()=>this.onMusicAlbumDetail(e)},[A("div",null,[A("img",{src:e.relationMusicAlbum==="ALBUM"?d:m},null),e.relationMusicAlbum==="ALBUM"?A("span",null,[t("\u4E13\u8F91\uFF1A"),e.musicAlbumName]):A("span",null,[t("\u66F2\u76EE\uFF1A"),e.musicAlbumName])]),A("div",null,[e.useRelationType==="GIFT"&&A(a,{type:"primary",class:i.song},{default:()=>[t("\u8D60\u9001")]}),A(o,{name:"arrow"},null)])]))])}});export{h as C};
