import{d as l,c as t,b as r,_ as m,r as u,o as A,F as c,a as n}from"./index.ce3b9611.js";import{G as g,a as d,T as p}from"./index.a63a39cc.js";import{I as b}from"./_commonjsHelpers.5bb79380.js";import{T as v,r as T}from"./request.41580fd8.js";const E="_theMusicGrid_1i7b0_1",B="_item_1i7b0_12",N="_title_1i7b0_15",S="_des_1i7b0_24",f="_imgWrap_1i7b0_29",h="_model_1i7b0_36",V="_num_1i7b0_51",i={theMusicGrid:E,item:B,title:N,des:S,imgWrap:f,model:h,num:V},F="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=l({name:"TheMusicGrid",props:{list:{type:Array,default:()=>[]}},emits:["goto"],setup(e,{emit:o}){return()=>{let a;return t("div",{class:i.theMusicGrid},[t(g,{border:!1,columnNum:3},G(a=e.list.map(s=>t(d,null,{default:()=>[t("div",{class:i.item,onClick:()=>o("goto",s)},[t("div",{class:i.imgWrap},[t(p,{src:s.albumCoverUrl},null),t("div",{class:i.model},[t(b,{name:F},null),t("span",{class:i.num},[s.albumFavoriteCount,r("\u4EBA")])])]),t("div",{class:i.title},[s.albumName]),t("div",{class:i.des},[r("\u5171"),s.musicSheetCount,r("\u9996")])])]})))?a:{default:()=>[a]})])}}}),M=l({name:"hotAlbum",setup(){const e=n(),o=u([]),a=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)&&(o.value=s.data.rows)}catch{}};return A(()=>{a()}),()=>t(c,null,[t(v,{title:"\u70ED\u95E8\u4E13\u8F91",onMore:()=>{e.push({path:"/search"})}},null),t(U,{list:o.value,onGoto:s=>e.push({path:"/musicAlum",query:{id:s.id}})},null)])}});export{M as H,U as T};
