import{d as r,r as h,u as n,w as _,c as t,a as l}from"./index.25c29239.js";const g="_liveClass_13hh6_1",m="_badge_13hh6_21",u="_itemWrap_13hh6_28",A="_left_13hh6_49",p="_imgWrap_13hh6_54",f="_textWrap_13hh6_61",B="_authorInfo_13hh6_69",d="_icon_13hh6_79",C="_authorName_13hh6_86",W="_tagList_13hh6_91",v="_tag_13hh6_91",I="_right_13hh6_105",N="_arrow_13hh6_111",w="_touchButton_13hh6_116",k="_vip_13hh6_127",y="_free_13hh6_131",E="_charge_13hh6_135",e={liveClass:g,badge:m,itemWrap:u,left:A,imgWrap:p,textWrap:f,authorInfo:B,icon:d,authorName:C,tagList:W,tag:v,right:I,arrow:N,touchButton:w,vip:k,free:y,charge:E},L=""+new URL("music.24d07fa6.png",import.meta.url).href,R="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAPlJREFUWEft2LENAiEUBuB3tlaUOIyJK1gwgreAA9BZOcHlmttBK9dxBhJzuRgSCxtN4P0/kgg1kC8/JLxHJ5WPrnKfNKD2hFqCP0lwGIbDsizWGHNyzj20iG/rk494HMfNPM/316YXY8yeiUwGeu9X1tqbiOxKIJOBETVN0zqEcBWRLRuZBSyJzAaWQqqAJZBqIBsJATKRMCALCQUykHAgGkkBIpE04Afkue/7Y0px8b9A1HtNSRCFi1cBDkTi4EA0Dgpk4GBAFg4CZOLUQDZOBSyBywaWwmUBq287q2/cY+xVf32klEqIufC3GIF636MBtYm2BLUJPgHTXfIpPDsbwQAAAABJRU5ErkJggg==",c={CHARGE:"\u70B9\u64AD",FREE:"\u514D\u8D39",VIP:"VIP"},J=r({name:"music-item",props:{item:{type:Object,default:()=>({})},onClick:{type:Function,default:s=>{}}},setup(s){const a=h({item:s.item});n(),_(()=>s.item,i=>{a.item=i});const o=()=>{console.log(1)};return()=>{var i;return t("div",{onClick:()=>{s.onClick(a.item)}},[t("div",{class:e.itemWrap,onClick:()=>o()},[t("div",{class:e.left},[t("div",{class:e.imgWrap},[t("img",{src:a.item.titleImg||L,alt:""},null)]),t("div",{class:e.textWrap},[t("p",null,[a.item.musicSheetName,t("div",{class:[e.touchButton,e[(i=a.item.chargeType)==null?void 0:i.toLocaleLowerCase()]]},[c[a.item.chargeType]?c[a.item.chargeType]:"\u70B9\u64AD"])]),t("div",{class:e.authorInfo},[t("span",null,[l("\u4F5C\u66F2: "),a.item.composer])]),t("div",{class:e.tagList},[a.item.subjectNames?t("div",{class:e.tag},[a.item.subjectNames]):null])])]),t("div",{class:e.right},[t("img",{class:e.arrow,src:R,alt:""},null)])])])}}});export{J as M,e as s};
