import{d as r,c as t,b as o,_ as l,r as m,o as A,F as c,a as n}from"./index.3718c0a8.js";import{G as d,a as p,T as g}from"./index.ef83260a.js";import{I as v}from"./index.2b675c4f.js";import{T,r as b}from"./request.a45d1be5.js";const w="_theMusicGrid_wdvuz_1",E="_item_wdvuz_12",B="_title_wdvuz_15",N="_des_wdvuz_24",z="_imgWrap_wdvuz_29",S="_albumType_wdvuz_37",f="_model_wdvuz_50",h="_num_wdvuz_65",a={theMusicGrid:w,item:E,title:B,des:N,imgWrap:z,albumType:S,model:f,num:h},y="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAkCAYAAADl9UilAAAAAXNSR0IArs4c6QAAA0NJREFUWEfFmDloFlEQx39/xBO8b/EsxAsvEI/eTgtBSOFBPNBGEFTUwkpQEEFEsVExgifRwigKamUTBTGIiIiGiEdhCguvNCqOTPKtrJs93rdfEgc+dr/defP+b/4z8+at6AExswXAMWA58B44IuliLaZVy2Afa2ZTgBZgWMLWVkmXy9rvCWBngHUpAD4C8yT9KAOuJmBmNhl4CvSvTG4xEG57p6QL/wPYYWB7zsRvgBWSflcLrrTHzGwk8AQYUjDpNkm3+xLYLsB/aYuLU/pc0qo+AWZmg4FmYETghBsluX6wlKLSzOqBA4mAz7P1UNKmYFQZNOSON7OhQBMw0ctYIgvj/6NXDtif10vymAySXI+Z2WhgDjAbmFW594JaVr4Ar4FXlavft6XVun+AmdkEYDUwvwJkTBmvVon6F/AOeAncj2LxLzAzczAnAQ/suERUJOdLPg/VS1Kc/H9O0tlOYGbm10vAtCpX6+pZgEqY6hzi8VgXARsPNBZYigI7zVNlQURAogVGdo5GwMYCVzKsh3qkiNpQOw7jWDzGTgNTa1l6D431ZNgSBzYXOBTrFELmSdaxaEzW8xCbHvxNyXKxGNgPDMgJ6iLKirI3Kyv9+VVJ15MB15USXWVjHzAwsGyEeCFEx0HdiKPuNsjMvNLvBQYVFNhQKov0GiXdigPJ3JLMbCawJ6XgFlFVTfa5rWuS7qQZzXSzmc0Adgc0gyFUpek4qHtpLwrbHjNbBmyODc4rsKHZ6HotvvVkrSgE2EpgTVmX5IxrlXSiFmAbgCW9AKxDUtRsdjMf4jFPAG+HsupP3EZeo5gW3wclfas6xsysH3AQ8GtRthW9T1tYg6TWMsDcUzt6gcbI5N2sQ0pRa72wEvhZFEUTFBVQ10uj/Jmkm2U85hm5tBc91i6poQywOmB6FcDaAe/tPCZDxFuc45K6MVJE5XrAu9uibPMvO82SPpjZcP9eUTlRZTkjbu+UpJ9pKZu5MjNzKv34liWfgEeS3iYVzGxUBaBva1kO+C7pfBkq/cPJ2pTm8TPwWFJbEV9mNg7wbc0/WSXlgSQ/tnWTkALrVHoCuAe+Ai8A307S6M3z/iRgUSU0OgDPSD/4psofOwAL6DcUSgQAAAAASUVORK5CYII=";function G(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!l(e)}const V=r({name:"TheMusicGrid",props:{list:{type:Array,default:()=>[]}},emits:["goto"],setup(e,{emit:u}){return()=>{let i;return t("div",{class:a.theMusicGrid},[t(d,{border:!1,columnNum:3},G(i=e.list.map(s=>t(p,null,{default:()=>[t("div",{class:a.item,onClick:()=>u("goto",s)},[t("div",{class:a.imgWrap},[s.paymentType==="CHARGE"&&t("span",{class:a.albumType},[o("\u4ED8\u8D39")]),t(g,{src:s.albumCoverUrl},null),t("div",{class:a.model},[t(v,{name:y},null),t("span",{class:a.num},[s.albumFavoriteCount,o("\u4EBA")])])]),t("div",{class:a.title},[s.albumName]),t("div",{class:a.des},[o("\u5171"),s.musicSheetCount,o("\u9996")])])]})))?i:{default:()=>[i]})])}}}),O=r({name:"hotAlbum",setup(){const e=n(),u=m([]),i=async()=>{try{const s=await b.post("/api-website/open/music/album/list",{data:{albumStatus:1,page:1,rows:9}});s.data&&Array.isArray(s.data.rows)&&(u.value=s.data.rows)}catch{}};return A(()=>{i()}),()=>t(c,null,[t(T,{title:"\u70ED\u95E8\u4E13\u8F91",onMore:()=>{e.push({path:"/search"})}},null),t(V,{list:u.value,onGoto:s=>e.push({path:"/musicAlum",query:{id:s.id}})},null)])}});export{O as H,V as T};
