import{_ as g,a as r,b as p,c as u,d as w,e as b,f as d}from"./icon_uploader.9f387137.js";import{_ as f}from"./icon-xin.df8ab2d7.js";import{_ as h}from"./icon_album.fa329df6.js";import{_ as y}from"./icon_album_active.ce98b2a8.js";import{_ as v}from"./icon_exquisite.69e33c80.js";import{_ as I}from"./icon_music_active.3b316ab8.js";import{d as S,V as n,S as x,X as N,j as a,B as m,O as C}from"./ResizeObserver.es.62ab429c.js";import{I as _}from"./index.021584f9.js";import{I as q}from"./icon-play.bc9e7aab.js";const F="_theSong_mw3ac_1",T="_item_mw3ac_7",A="_content_mw3ac_19",j="_top_mw3ac_22",D="_tag_mw3ac_27",M="_user_mw3ac_35",P="_name_mw3ac_39",V="_tags_mw3ac_49",B="_title_mw3ac_59",O="_singer_mw3ac_66",R="_play_mw3ac_71",$="_mb100_mw3ac_76",k="_pImg_mw3ac_79",z="_moreSection_mw3ac_86",E="_collection_mw3ac_94",H="_musicInfo_mw3ac_99",X="_info_mw3ac_108",G="_shareIcon_mw3ac_126",J="_share_mw3ac_126",K="_shareMate_mw3ac_136",L="_icon_mw3ac_146",Q="_tagDiscount_mw3ac_167",U="_exquisiteFlag_mw3ac_180",W="_songAlbum_mw3ac_185";var e={theSong:F,item:T,content:A,top:j,tag:D,user:M,name:P,tags:V,title:B,singer:O,play:R,mb100:$,pImg:k,moreSection:z,collection:E,musicInfo:H,info:X,shareIcon:G,share:J,shareMate:K,icon:L,tagDiscount:Q,exquisiteFlag:U,songAlbum:W};const c=t=>{const o=`../images/${t}`;return{"../images/collection.png":g,"../images/collection_active.png":r,"../images/icon-xin.png":f,"../images/icon_ai.png":p,"../images/icon_album.png":h,"../images/icon_album_active.png":y,"../images/icon_author.png":u,"../images/icon_download.png":w,"../images/icon_exquisite.png":v,"../images/icon_music_active.png":I,"../images/icon_share.png":b,"../images/icon_uploader.png":d}[o].default};var is=S({name:"TheSong",props:{list:{type:Array,default:()=>[]},showPlay:{type:Boolean,default:!0},musicNameClass:{type:String},authorClass:{type:String}},emits:["detail"],setup(t,{emit:o}){n(!1),n({}),x();const i=N(()=>t.list.map(s=>(typeof s.paymentType=="string"&&(s.paymentType=s.paymentType.split(",")),{...s})));return()=>a("div",{class:e.theSong},[i.value.map(s=>a("div",{class:e.item,onClick:()=>o("detail",s)},[a("div",{class:e.content},[a("div",{class:e.top},[s.exquisiteFlag===1&&a(_,{class:e.exquisiteFlag,src:c("icon_exquisite.png")},null),s.albumNums>0&&a(_,{class:e.songAlbum,src:c("icon_album_active.png")},null),a("span",{class:[e.title,t.musicNameClass,"van-ellipsis"]},[s.musicSheetName]),a("span",{class:[e.singer,t.authorClass,"van-ellipsis"]},[m("-"),s.composer])]),a("div",{class:e.user},[s.favorite===1&&a(_,{src:c("collection_active.png"),class:e.collection},null),a("span",{class:[e.name]},[`\u4E0A\u4F20\u8005\uFF1A${s.addName||"\u6E38\u5BA2"+s.userId}`]),a("div",{class:e.tags},[s.musicSheetType==="CONCERT"?a("span",null,[m("\u5408\u594F")]):(s==null?void 0:s.subjectNames)&&(s==null?void 0:s.subjectNames.split(",").map(l=>a("span",null,[l])))])])]),a("div",{class:e.play},[t.showPlay&&a(C,{name:q,size:28},null)])]))])}});export{is as S};
