import{d as r,r as _,u,w as g,c as t,a as l}from"./index.5ba23dfc.js";const m="_liveClass_8wzns_1",A="_badge_8wzns_21",p="_itemWrap_8wzns_28",w="_left_8wzns_49",h="_imgWrap_8wzns_54",d="_textWrap_8wzns_59",B="_authorInfo_8wzns_67",f="_icon_8wzns_77",z="_authorName_8wzns_84",C="_tagList_8wzns_89",v="_tag_8wzns_89",W="_right_8wzns_103",N="_arrow_8wzns_109",I="_touchButton_8wzns_114",k="_vip_8wzns_125",y="_free_8wzns_129",E="_charge_8wzns_133";var s={liveClass:m,badge:A,itemWrap:p,left:w,imgWrap:h,textWrap:d,authorInfo:B,icon:f,authorName:z,tagList:C,tag:v,right:W,arrow:N,touchButton:I,vip:k,free:y,charge:E},x="./assets/music.24d07fa6.png",J="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAPlJREFUWEft2LENAiEUBuB3tlaUOIyJK1gwgreAA9BZOcHlmttBK9dxBhJzuRgSCxtN4P0/kgg1kC8/JLxHJ5WPrnKfNKD2hFqCP0lwGIbDsizWGHNyzj20iG/rk494HMfNPM/316YXY8yeiUwGeu9X1tqbiOxKIJOBETVN0zqEcBWRLRuZBSyJzAaWQqqAJZBqIBsJATKRMCALCQUykHAgGkkBIpE04Afkue/7Y0px8b9A1HtNSRCFi1cBDkTi4EA0Dgpk4GBAFg4CZOLUQDZOBSyBywaWwmUBq287q2/cY+xVf32klEqIufC3GIF636MBtYm2BLUJPgHTXfIpPDsbwQAAAABJRU5ErkJggg==";const c={CHARGE:"\u70B9\u64AD",FREE:"\u514D\u8D39",VIP:"VIP"};var R=r({name:"music-item",props:{item:{type:Object,default:()=>({})},onClick:{type:Function,default:a=>{}}},setup(a){const e=_({item:a.item}),o=u();g(()=>a.item,i=>{e.item=i});const n=()=>{o.push({path:"/muiscDetial",query:{id:e.item.id}})};return()=>{var i;return t("div",{onClick:()=>{a.onClick(e.item)}},[t("div",{class:s.itemWrap,onClick:()=>n()},[t("div",{class:s.left},[t("div",{class:s.imgWrap},[t("img",{src:x,alt:""},null)]),t("div",{class:s.textWrap},[t("p",null,[e.item.musicSheetName,t("div",{class:[s.touchButton,s[(i=e.item.chargeType)==null?void 0:i.toLocaleLowerCase()]]},[c[e.item.chargeType]?c[e.item.chargeType]:"\u70B9\u64AD"])]),t("div",{class:s.authorInfo},[t("span",null,[l("\u4F5C\u66F2: "),e.item.composer])]),t("div",{class:s.tagList},[e.item.subjectNames?t("div",{class:s.tag},[e.item.subjectNames]):null])])]),t("div",{class:s.right},[t("img",{class:s.arrow,src:J,alt:""},null)])])])}}});export{R as M,s};
