import{d as o,c as t,J as r,a as s,l as u}from"./vendor.420c228b.js";var a=o({name:"item",props:{item:{type:Object,default:()=>({})},onOffCourse:{type:Function,default:e=>{}}},render(){const e=this.item;return t("div",{class:"border border-[#E0E0E0] box-border rounded-[10px] w-[218px] m-auto overflow-hidden relative transition-all cursor-pointer",onClick:()=>{if(e.type==="video")if(e.shelvesFlag===0&&(e.status==="UNPASS"||e.status==="OUT_SALE")){this.$router.push({path:"/userInfo/videoOperation",query:{type:"edit",groupId:e.id}});return}else this.$router.push({path:"/videoDetail",query:{id:e.id}});e.type==="live"&&(e.status==="CANCEL"||e.status==="OUT_SALE")&&this.$router.push({path:"/userInfo/liveOperation",query:{type:"edit",groupId:e.courseGroupId}})}},[t("div",{class:"relative"},[t(r,{class:"w-full h-[122px] align-middle",fit:"cover",src:e.backgroundPic},null),t("div",{class:"text-sm text-[#52FFDC] h-7 leading-7 px-3 flex items-center justify-between absolute left-0 right-0 bottom-0 bg-black/60"},[t("div",null,[t("div",{class:"text-base text-[#FF5F22] leading-none"},[e.courseNum,s("\u8BFE\u65F6")])]),t("div",null,[t("i",{class:"w-1 h-1 bg-[#52FFDC] rounded-full mr-1.5 inline-block"},null),e.studentCount,s("\u4EBA\u5DF2\u8D2D\u4E70")])])]),t("div",{class:"text-base px-2.5 pt-2 text-[#666666] leading-none font-semibold whitespace-nowrap overflow-hidden text-ellipsis"},[e.courseGroupName]),e.courseStartTime&&t("p",{class:"text-[#999] text-xs px-2.5 leading-none pt-1.5"},[s("\u5F00\u8BFE\u65F6\u95F4\uFF1A"),e.courseStartTime]),t("div",{class:"mx-2.5 pt-1.5 pb-2 flex items-center justify-between"},[t("div",{class:"text-xl text-[#F90000] font-semibold leading-none"},[t("span",{class:"text-sm leading-7"},[s("\uFFE5")]),e.coursePrice]),e.type==="video"&&e.status==="PASS"&&t("div",null,[t(u,{type:"primary",round:!0,onClick:i=>{i.stopPropagation(),this.onOffCourse(e)}},{default:()=>[s("\u4E0B\u67B6\u8BFE\u7A0B")]})])])])}});export{a as I};
