var k=Object.defineProperty;var c=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var d=(e,t,a)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,u=(e,t)=>{for(var a in t||(t={}))C.call(t,a)&&d(e,a,t[a]);if(c)for(var a of c(t))j.call(t,a)&&d(e,a,t[a]);return e};import{d as r,_ as p,a2 as v,a as s,F as m,q as b,I as w,j as x}from"./vendor.a0144ce9.js";/* empty css               *//* empty css               */import{s as n,r as _,C as y}from"./index.3d95a92c.js";import{b as g}from"./index.28b40a59.js";import{c as S}from"./index.926ca9c5.js";import{I}from"./item.e115375c.js";import{m as L,g as A}from"./music.21b5a533.js";/* empty css                */import"./init-user-icon.d5c3c464.js";import"./favorite.9bdf4305.js";import"./orderStatus.243cb96a.js";import"./index.339fc024.js";const F="_songbook_wa4hu_1",N="_sticky_wa4hu_11",R="_title_wa4hu_14",q="_albumContainer_wa4hu_20",B="_album_wa4hu_20",M="_main_wa4hu_38",T="_favorite_wa4hu_41",U="_img_wa4hu_55";var o={songbook:F,sticky:N,title:R,albumContainer:q,album:B,main:M,favorite:T,img:U},V=r({name:"Songbook",setup(){p();const e={};n.version&&(e.version=n.version||"",e.platform="ios-student");const{isLoading:t,state:a}=g(_.post("/api-student/music/album/list",{data:u({},e)}),null),i=v();return()=>s(m,null,[a.value&&a.value.data.rows.length?s(m,null,[s(b,{class:o.title,title:"\u4E13\u8F91","is-link":!0,to:"/music-album",value:"\u66F4\u591A"},null),s("div",{class:o.albumContainer},[a.value.data.rows.map(l=>s("div",{class:o.album,key:l.id,onClick:()=>i.push("/music-album-detail/"+l.id)},[s("div",{class:o.main},[s(w,{class:o.img,src:l.albumCoverUrl},null),s("p",{class:o.favorite},[s("span",null,[l.albumFavoriteCount]),x("\u4EBA\u6536\u85CF")])]),s("h4",{class:S(o.title,"van-ellipsis")},[l.albumName])]))])]):null])}}),$=r({name:"Songbook",setup(){const e=v();p();const t={};n.version&&(t.version=n.version||"",t.platform="ios-student");const{isLoading:a,state:i}=g(_.post("/api-student/music/sheet/list",{data:u({},t)}),null);return()=>i.value&&i.value.data.rows.length?s(m,null,[s(b,{class:o.title,title:"\u66F2\u8C31","is-link":!0,to:"/music-list",value:"\u66F4\u591A"},null),s("div",{class:o.listContainer},[i.value.data.rows.map(l=>s(I,{data:l,onClick:f=>{L(f,h=>{e.push({path:h,query:{orderType:"MUSIC"}})})}},null))])]):!a.value&&s(y,{tips:"\u6682\u65E0\u66F2\u8C31",classImgSize:"SMALL",btnStatus:!1},null)}}),ss=r({name:"Songbook",setup(){return localStorage.setItem("behaviorId",A()),()=>s("div",{class:o.songbook},[s(V,null,null),s($,null,null)])}});export{ss as default};
