import{d as s,j as e,w as l,A as t,F as c}from"./ResizeObserver.es.b7226882.js";import{C as o}from"./index.40f703b6.js";import{i as r}from"./icon_teacher.40b6f077.js";const a="_liveItem_tfo9r_1",n="_liCover_tfo9r_7",m="_liTitle_tfo9r_16",u="_liUserInfo_tfo9r_27",v="_liteachername_tfo9r_34",f="_liteacherIcon_tfo9r_39",I="_liPrice_tfo9r_47",h="_price_tfo9r_52",A="_classNum_tfo9r_62",g="_num_tfo9r_70",d="_buyNum_tfo9r_71",N="_subjectName_tfo9r_82",p="_iconTimer_tfo9r_93";var i={liveItem:a,liCover:n,liTitle:m,liUserInfo:u,liteachername:v,liteacherIcon:f,liPrice:I,price:h,classNum:A,num:g,buyNum:d,subjectName:N,iconTimer:p},b="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAAXNSR0IArs4c6QAABFlJREFUWEftl2tsFFUUx/9ndreLtUrd3bQlUtry0MYNEAERqAa6S3gEE8TELZiY+IzhoyKW1MRPKhiTxq98NtHQJhBN0EJ2W4mpdS0J0O1KTQCDXUEQ6cPa1+7OMTOzj7nTeWwbTfjA/dTunHvv757/f849Q7hHBt0jHLgPYlRiwRk5cCtRjbQUBBCACyDwny5alPy8ZuXthcg9L5B9qbjfi/K3mLEPhPVQ9tcNBpgY55lwilk63lkbvFsqVEkg27jHHUg9coiYjgCozG+vTOb8ToU/NDwCjQA4dvvKX+3fNTdnnIAcQV4c/sHHKO9gmcOFYIEglxc9SH5XFUiKepgiX9StUcAshy2IAiHLi3qZ0ag7u1ERTSBmNTvagvplWflvSHLNNHXWbrGUyhJkW0+Pu7KuogtEYae0lvScKDb66/guK5ksQfZejbcy0TH9JkZFlGc+lwdTsowpzmqhBq8I84mPfNXw9Cdm4KYgO4eTvrLZiavMXJlPtLq+IXrdA4vxQc3jGM9mcDA1gH9kzZOkC2QukhHR6GxZdsUZE4lMQfZc62tDFh/ZOouBl31L0eJbqoa9mxrE5ekJgzs0iAKYltL3T6/a/HFJBW33L739IGxw0v4V/zJEciCHhxNITv/tNEWhOv/tqqanHEHC136sdqczN5Xa5LTqq4H6QkYODQ8gOTVumGLmKmKvx73k6+Wbbhn9J0zeMXQuBFAs/6NBY8GLrwXqsd9fq4a+89slDKogBreKHoHykhMQPtu4tdsWZHvyXAQSnzBmQ7dewQevVzVgv3+ZGvr29QtITI6JViW1vMwZxNQSDW7tsAVpTnZHiHBCOJiFRm9ULceBQJ36NDE5ivFsWksIkXpy5W368s513JidElZgoKUnGLIHCSVjIZm5II3IIGr+UqAeb1avsLVSbOwPfJj6WZBMIgp3B8P20oQT0eo04SaYSc2rallz31a5vfisYT0e9ZabwmRYRvuNIZwe+b0gmXJDe0BLYqu325tVWfGZgbP9YC6+vjkO8QbR9lZ+e0hyCyCkSMOMGZYxI8uFc2hnov7vV+/Y6Pj6KgFNl7ramLlQ0Obkw2BC0imW96YwRxdPJLX1rt15tCSQjfGTfleZ9wpAaonXhsU9b+tq0VNENMIeaWVfcNecW9iyaG26+E0ry7Jw6dm6soSHEtF7fU/u+dQs1LYNmHx44gyDQ0575NqRomlyE4R8EEUfHKvYPe82QFlrc7LLl56c7gPhMbFgFvnFyltUUKivknR5xiM1JdY8Z9mlOd4nil8yEjrB1Kx1Yrr8mFwlWp+m69SIoulpdyTxrDWEdYEwaKE0z6Pxu4dBaAWw2EmqnEYjkHD04oZMOyiS65qsZzpmRD+1MX7S7yU+yIznwbwuf0Mr/UauY2Ui5XOCTmUz2ePJLZH/9nPC7BxP/NRR485QUHaTH9ksJJnuoMI9OLD2hf//A6s0SRYWNS9pFrZFabPugxjz9C+YG4kygVcFewAAAABJRU5ErkJggg==",C=s({name:"liveItem",props:{onClick:{type:Function,default:y=>{}},liveInfo:{type:Object,default:{}},coverClass:{type:String,defualt:""}},data(){return{backgroundPic:"",avatar:""}},mounted(){this.backgroundPic=this.liveInfo.backgroundPic+"?t"+ +new Date,this.avatar=this.liveInfo.avatar+"?t"+ +new Date},render(){return e(o,{center:!0,border:!1,class:i.liveItem,onClick:()=>this.onClick(this.liveInfo)},{icon:()=>e("div",{style:{position:"relative"}},[e("img",{class:[i.liCover,this.coverClass],src:this.backgroundPic,crossorigin:"anonymous",style:{objectFit:"cover"}},null),this.liveInfo.subjectName&&e("span",{class:i.subjectName},[this.liveInfo.subjectName])]),title:()=>e("div",null,[e("div",{class:[i.liTitle,"van-ellipsis","itemTitle"]},[this.liveInfo.courseGroupName]),e("div",{class:i.liUserInfo},[e("p",{class:i.liteachername},[e("img",{src:this.liveInfo.avatar?this.avatar:r,class:i.liteacherIcon,crossorigin:"anonymous",style:{objectFit:"cover"}},null),this.liveInfo.teacherName||`\u6E38\u5BA2${this.liveInfo.teacherId}`]),this.liveInfo.courseStartTime&&e("p",null,[e("img",{src:b,class:i.iconTimer},null),l(this.liveInfo.courseStartTime).format("MM\u6708DD\u65E5 HH:mm")])]),e("div",{class:i.liPrice},[e("p",null,[this.liveInfo.payType==="VIP"?e("span",{class:i.price,style:{color:"#C76E21"}},[t("\u4F1A\u5458")]):e(c,null,[this.liveInfo.coursePrice>0&&e("span",{class:i.price},[e("i",null,[t("\xA5")]),this.liveInfo.coursePrice]),this.liveInfo.coursePrice==0&&e("span",{class:i.price},[t("\u514D\u8D39")])]),e("span",{class:i.classNum},[this.liveInfo.courseNum,t("\u8BFE\u65F6")])]),this.liveInfo.existBuy===1&&e("span",{class:i.buyNum},[t("\u5B66\u4E60")])])])})}});export{C as L};