import{d as r,c as t,O as o,Y as m,r as u,D as A,W as c,P as n}from"./index.fdb8061e.js";import{G as g,a as d,T as p}from"./index.a02fe9ea.js";import{I as v}from"./index.555136dd.js";import{T as w,r as T}from"./request.08b2dc2e.js";const E="_theMusicGrid_1w4ll_1",B="_item_1w4ll_12",N="_title_1w4ll_15",b="_des_1w4ll_24",S="_imgWrap_1w4ll_29",f="_model_1w4ll_36",h="_num_1w4ll_50",a={theMusicGrid:E,item:B,title:N,des:b,imgWrap:S,model:f,num:h},V="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]"&&!m(e)}const U=r({name:"TheMusicGrid",props:{list:{type:Array,default:()=>[]}},emits:["goto"],setup(e,{emit:l}){return()=>{let i;return t("div",{class:a.theMusicGrid},[t(g,{border:!1,columnNum:3},G(i=e.list.map(s=>t(d,null,{default:()=>[t("div",{class:a.item,onClick:()=>l("goto",s)},[t("div",{class:a.imgWrap},[t(p,{src:s.albumCoverUrl},null),t("div",{class:a.model},[t(v,{name:V},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]})])}}}),_=r({name:"hotAlbum",setup(){const e=n(),l=u([]),i=async()=>{try{const s=await T.post("/api-website/open/music/album/list",{data:{albumStatus:1,page:1,rows:9}});s.data&&Array.isArray(s.data.rows)&&(l.value=s.data.rows)}catch{}};return A(()=>{i()}),()=>t(c,null,[t(w,{title:"\u70ED\u95E8\u4E13\u8F91",onMore:()=>{e.push({path:"/search"})}},null),t(U,{list:l.value,onGoto:s=>e.push({path:"/musicAlum",query:{id:s.id}})},null)])}});export{_ as H,U as T};
