import{i as m}from"./icon.6e6f91da.js";import{m as n}from"./music.f2b8674a.js";import{a as _}from"./arrow.15dbd454.js";import{d as u,r as l,f as p,P as q,c as t,a as d}from"./vendor.925c905e.js";const g="_itemWrap_11qcq_1",h="_left_11qcq_24",f="_imgWrap_11qcq_29",v="_textWrap_11qcq_34",W="_authorInfo_11qcq_47",N="_icon_11qcq_52",I="_authorName_11qcq_58",w="_tagList_11qcq_63",C="_tag_11qcq_63",L="_right_11qcq_76",j="_touchButton_11qcq_82",y="_vip_11qcq_92",x="_free_11qcq_96",b="_charge_11qcq_100",T="_arrow_11qcq_104";var e={itemWrap:g,left:h,imgWrap:f,textWrap:v,authorInfo:W,icon:N,authorName:I,tagList:w,tag:C,right:L,touchButton:j,vip:y,free:x,charge:b,arrow:T};const i={CHARGE:"\u70B9\u64AD",FREE:"\u514D\u8D39",VIP:"VIP"};var E=u({name:"musicLIstItem",props:{item:{type:Object,default:()=>({})},onClick:{type:Function,default:c=>{}}},setup(c){const a=l({item:c.item}),o=p();q(()=>c.item,s=>{a.item=s});const r=()=>{o.push({path:"/muiscDetial",query:{id:a.item.id}})};return()=>{var s;return t("div",{onClick:()=>{c.onClick(a.item)}},[t("div",{class:e.itemWrap,onClick:()=>r()},[t("div",{class:e.left},[t("div",{class:e.imgWrap},[t("img",{src:n,alt:""},null)]),t("div",{class:e.textWrap},[t("p",null,[a.item.musicSheetName,t("span",null,[d("\u4F5C\u66F2: "),a.item.composer])]),t("div",{class:e.authorInfo},[t("img",{class:e.icon,src:a.item.addUserAvatar||m,alt:""},null),t("span",{class:e.authorName},[a.item.addName?a.item.addName:"\u5C0F\u9177\u6709\u8C31"]),t("div",{class:e.tagList},[a.item.subjectNames?t("div",{class:e.tag},[a.item.subjectNames]):null])])])]),t("div",{class:e.right},[t("div",{class:[e.touchButton,e[(s=a.item.chargeType)==null?void 0:s.toLocaleLowerCase()]]},[i[a.item.chargeType]?i[a.item.chargeType]:"\u70B9\u64AD"]),t("img",{class:e.arrow,src:_,alt:""},null)])])])}}});export{E as M};
