import{_ as m,a as g,b as r,c as p,d as u,e as f,f as q}from"./icon_uploader.9f387137.js";import{_ as d}from"./icon-xin.df8ab2d7.js";import{_ as b}from"./icon_album.fa329df6.js";import{_ as z}from"./icon_album_active.ce98b2a8.js";import{_ as h}from"./icon_exquisite.69e33c80.js";import{_ as y}from"./icon_music_active.3b316ab8.js";import{d as v,U as c,Q as I,W as S,i as s,A as x,N}from"./index.7994470a.js";import{I as _}from"./index.2fbdc579.js";import{I as A}from"./icon-play.bc9e7aab.js";const C="_theSong_zefq7_1",F="_item_zefq7_7",T="_content_zefq7_19",w="_top_zefq7_22",D="_tag_zefq7_27",M="_user_zefq7_35",P="_name_zefq7_39",$="_tags_zefq7_50",V="_title_zefq7_60",j="_singer_zefq7_67",k="_play_zefq7_72",B="_mb100_zefq7_77",H="_pImg_zefq7_80",Q="_moreSection_zefq7_87",R="_collection_zefq7_95",U="_musicInfo_zefq7_100",W="_info_zefq7_109",E="_shareIcon_zefq7_127",G="_share_zefq7_127",J="_shareMate_zefq7_137",K="_icon_zefq7_147",L="_tagDiscount_zefq7_168",O="_exquisiteFlag_zefq7_181",X="_songAlbum_zefq7_186";var o={theSong:C,item:F,content:T,top:w,tag:D,user:M,name:P,tags:$,title:V,singer:j,play:k,mb100:B,pImg:H,moreSection:Q,collection:R,musicInfo:U,info:W,shareIcon:E,share:G,shareMate:J,icon:K,tagDiscount:L,exquisiteFlag:O,songAlbum:X};const n=t=>{const a=`../images/${t}`;return{"../images/collection.png":m,"../images/collection_active.png":g,"../images/icon-xin.png":d,"../images/icon_ai.png":r,"../images/icon_album.png":b,"../images/icon_album_active.png":z,"../images/icon_author.png":p,"../images/icon_download.png":u,"../images/icon_exquisite.png":h,"../images/icon_music_active.png":y,"../images/icon_share.png":f,"../images/icon_uploader.png":q}[a].default};var ie=v({name:"TheSong",props:{list:{type:Array,default:()=>[]},showPlay:{type:Boolean,default:!0},musicNameClass:{type:String},authorClass:{type:String}},emits:["detail"],setup(t,{emit:a}){c(!1),c({}),I();const i=S(()=>t.list.map(e=>(typeof e.paymentType=="string"&&(e.paymentType=e.paymentType.split(",")),{...e})));return()=>s("div",{class:o.theSong},[i.value.map(e=>s("div",{class:o.item,onClick:()=>a("detail",e)},[s("div",{class:o.content},[s("div",{class:o.top},[e.exquisiteFlag===1&&s(_,{class:o.exquisiteFlag,src:n("icon_exquisite.png")},null),e.albumNums>0&&s(_,{class:o.songAlbum,src:n("icon_album_active.png")},null),s("span",{class:[o.title,t.musicNameClass,"van-ellipsis"]},[e.musicSheetName]),s("span",{class:[o.singer,t.authorClass,"van-ellipsis"]},[x("-"),e.composer])]),s("div",{class:o.user},[e.favorite===1&&s(_,{src:n("collection_active.png"),class:o.collection},null),s("span",{class:[o.name]},[e.addName?`\u4E0A\u4F20\u8005\uFF1A${e.addName}`:`\u4F5C\u66F2\uFF1A${e.composer}`]),s("div",{class:o.tags},[e==null?void 0:e.subjectNames.split(",").map(l=>s("span",null,[l]))])])]),s("div",{class:o.play},[t.showPlay&&s(N,{name:A,size:28},null)])]))])}});export{ie as S};