import{d as m,c as s,b as l,_ as r}from"./index.ce3b9611.js";import{G as d,a as u}from"./index.a63a39cc.js";import{L as n}from"./_commonjsHelpers.5bb79380.js";import{I as p}from"./index.f9919356.js";const _="_theMusicGrid_pbxg4_1",g="_item_pbxg4_12",b="_title_pbxg4_19",f="_des_pbxg4_28",x="_imgWrap_pbxg4_35",N="_model_pbxg4_39",h="_classNum_pbxg4_53",v="_num_pbxg4_56",G="_itemContent_pbxg4_59",t={theMusicGrid:_,item:g,title:b,des:f,imgWrap:x,model:N,classNum:h,num:v,itemContent:G};function C(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!r(o)}const M=m({name:"TheVideoGrid",props:{list:{type:Array,default:()=>[]}},emits:["goto"],setup(o,{emit:a}){const c={loading:()=>s(n,{size:20},null),error:()=>s(n,{size:20},null)};return()=>{let i;return s("div",{class:t.theMusicGrid},[s(d,{border:!1,columnNum:2},C(i=o.list.map(e=>s(u,null,{default:()=>[s("div",{class:t.item,onClick:()=>a("goto",e)},[s("div",{class:t.imgWrap},[s(p,{width:"100%",height:"100%",src:e.lessonCoverUrl},c),s("div",{class:t.model},[s("span",{class:t.classNum},[e.lessonCount,l("\u8BFE\u65F6")]),s("div",{class:t.num},[s("span",{class:t.dot},null),e.countStudent,l("\u4EBA\u5728\u5B66")])])]),s("div",{class:t.itemContent},[s("div",{class:t.title},[e.lessonName,l(" "),e.lessonDesc]),s("div",{class:t.des},[s("span",null,[e.username]),s("span",null,[e.lessonSubjectName])])])])]})))?i:{default:()=>[i]})])}}});export{M as T};
