import{d as m,j as e,z as o,M as r,Z as u}from"./index.3bfa6a0e.js";import{G as c,a as d}from"./index.8711ee78.js";import{I as _}from"./index.0fd5538f.js";import{I as h}from"./icon-xin2.4ab2a52d.js";const p="_theMusicGrid_1hsn0_1",g="_item_1hsn0_12",f="_title_1hsn0_15",T="_des_1hsn0_24",y="_imgWrap_1hsn0_29",b="_albumType_1hsn0_36",v="_model_1hsn0_48",G="_num_1hsn0_63";var s={theMusicGrid:p,item:g,title:f,des:T,imgWrap:y,albumType:b,model:v,num:G};function M(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!u(t)}var j=m({name:"TheMusicGrid",props:{isHiddenTag:{type:Boolean,default:!1},showLight:{type:Boolean,default:!1},lightText:{type:String,default:""},list:{type:Array,default:()=>[]}},emits:["goto"],setup(t,{emit:n}){return()=>{let a;return e("div",{class:s.theMusicGrid},[e(c,{border:!1,columnNum:3},M(a=t.list.map(l=>{let i="";return console.log(t.lightText,"props.lightText"),t.lightText?i=l.albumName.replace(t.lightText,`<span style="color: #FE2451">${t.lightText}</span>`):i=l.albumName,e(d,null,{default:()=>[e("div",{class:s.item,onClick:()=>n("goto",l)},[e("div",{class:s.imgWrap},[l.paymentType==="CHARGE"&&!t.isHiddenTag&&e("span",{class:s.albumType},[o("\u4ED8\u8D39")]),e(_,{class:s.image,width:"100%",height:"100%",fit:"cover",src:l.albumCoverUrl},null),e("div",{class:s.model},[e(r,{name:h},null),e("span",{class:s.num},[l.albumFavoriteCount,o("\u4EBA")])])]),e("div",{class:s.title,innerHTML:i},null)])]})}))?a:{default:()=>[a]})])}}});export{j as M};
