import{d as m,c as t,O as l,Y as r}from"./index.fdb8061e.js";import{G as d,a as u}from"./index.a02fe9ea.js";import"./index.555136dd.js";import{I as p}from"./index.15b215d0.js";import{L as n}from"./index.d6266256.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",s={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 T=m({name:"TheVideoGrid",props:{list:{type:Array,default:()=>[]}},emits:["goto"],setup(o,{emit:a}){const c={loading:()=>t(n,{size:20},null),error:()=>t(n,{size:20},null)};return()=>{let i;return t("div",{class:s.theMusicGrid},[t(d,{border:!1,columnNum:2},C(i=o.list.map(e=>t(u,null,{default:()=>[t("div",{class:s.item,onClick:()=>a("goto",e)},[t("div",{class:s.imgWrap},[t(p,{width:"100%",height:"100%",src:e.lessonCoverUrl},c),t("div",{class:s.model},[t("span",{class:s.classNum},[e.lessonCount,l("\u8BFE\u65F6")]),t("div",{class:s.num},[t("span",{class:s.dot},null),e.countStudent,l("\u4EBA\u5728\u5B66")])])]),t("div",{class:s.itemContent},[t("div",{class:s.title},[e.lessonName,l(" "),e.lessonDesc]),t("div",{class:s.des},[t("span",null,[e.username]),t("span",null,[e.lessonSubjectName])])])])]})))?i:{default:()=>[i]})])}}});export{T};
