System.register(["./index-legacy.da191fab.js"],(function(e){"use strict";var t,i,n,s,r;return{setters:[function(e){t=e.d,i=e.c,n=e.bD,s=e.a,r=e.aZ}],execute:function(){e("I",t({name:"item",props:{item:{type:Object,default:function(){return{}}},onOffCourse:{type:Function,default:function(e){}}},render:function(){var e=this,t=this.item;return i("div",{class:"border border-[#E0E0E0] box-border rounded-[10px] w-[218px] m-auto overflow-hidden relative transition-all cursor-pointer",onClick:function(){if("video"===t.type){if(0===t.shelvesFlag&&("UNPASS"===t.status||"OUT_SALE"===t.status))return void e.$router.push({path:"/userInfo/videoOperation",query:{type:"edit",groupId:t.id}});e.$router.push({path:"/videoDetail",query:{id:t.id}})}"live"!==t.type||"CANCEL"!==t.status&&"OUT_SALE"!==t.status||e.$router.push({path:"/userInfo/liveOperation",query:{type:"edit",groupId:t.courseGroupId}})}},[i("div",{class:"relative"},[i(n,{class:"w-full h-[122px] align-middle",fit:"cover",src:t.backgroundPic},null),i("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"},[i("div",null,[i("div",{class:"text-base text-[#FF5F22] leading-none"},[t.courseNum,s("课时")])]),i("div",null,[i("i",{class:"w-1 h-1 bg-[#52FFDC] rounded-full mr-1.5 inline-block"},null),t.studentCount,s("人已购买")])])]),i("div",{class:"text-base px-2.5 pt-2 text-[#666666] leading-none font-semibold whitespace-nowrap overflow-hidden text-ellipsis"},[t.courseGroupName]),t.courseStartTime&&i("p",{class:"text-[#999] text-xs px-2.5 leading-none pt-1.5"},[s("开课时间："),t.courseStartTime]),i("div",{class:"mx-2.5 pt-1.5 pb-2 flex items-center justify-between"},[i("div",{class:"text-xl text-[#F90000] font-semibold leading-none"},[i("span",{class:"text-sm leading-7"},[s("￥")]),t.coursePrice]),"video"===t.type&&"PASS"===t.status&&i("div",null,[i(r,{type:"primary",round:!0,onClick:function(i){i.stopPropagation(),e.onOffCourse(t)}},{default:function(){return[s("下架课程")]}})])])])}}))}}}));
