var k=Object.defineProperty;var p=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var b=(s,a,e)=>a in s?k(s,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[a]=e,u=(s,a)=>{for(var e in a||(a={}))C.call(a,e)&&b(s,e,a[e]);if(p)for(var e of p(a))x.call(a,e)&&b(s,e,a[e]);return s};import{d as m,u as y,k as f,a as t,F as c,C as j,I as T,j as h}from"./vendor.3506a68e.js";/* empty css               *//* empty css              */import{s as i,r as v,C as E}from"./index.9e4b607f.js";import{b as _}from"./index.8eb24852.js";import{c as I}from"./index.926ca9c5.js";import{u as S,S as g}from"./hooks.6a14d51f.js";import{m as N,g as A}from"./music.a79cce2e.js";import{S as w}from"./index.187da406.js";import"./orderStatus.81f9c36b.js";import"./index.339fc024.js";/* empty css               *//* empty css                */import"./index.be471456.js";/* empty css              */import"./code-down-load.328a30fb.js";import"./logo.bcac726b.js";import"./browser.ebb85846.js";import"./icon_teacher.cb128c00.js";import"./music-icon.c20abf48.js";const R="_songbook_1kjrl_1",D="_sticky_1kjrl_11",L="_title_1kjrl_14",U="_albumContainer_1kjrl_20",F="_album_1kjrl_20",$="_main_1kjrl_38",B="_favorite_1kjrl_41",H="_img_1kjrl_55",V="_listContainer_1kjrl_81";var o={songbook:R,sticky:D,title:L,albumContainer:U,album:F,main:$,favorite:B,img:H,listContainer:V},q=m({name:"Songbook",setup(){y();const s={};i.version&&(s.version=i.version||"",s.platform=i.platformType==="STUDENT"?"ios-student":"ios-teacher");const a=i.platformType==="STUDENT"?"/api-student":"/api-teacher";s.myself=!1;const e=S(g.SEARCH);e&&(s.subjectIds=e.id);const{isLoading:d,state:l}=_(v.post(`${a}/music/album/list`,{data:u({},s)}),null),r=f();return()=>t(c,null,[l.value&&l.value.data.rows.length?t(c,null,[t(j,{class:o.title,title:"\u4E13\u8F91","is-link":!0,to:"/music-album",value:"\u66F4\u591A",border:!1},null),t("div",{class:o.albumContainer},[l.value.data.rows.map(n=>t("div",{class:o.album,key:n.id,onClick:()=>r.push("/music-album-detail/"+n.id)},[t("div",{class:o.main},[t(T,{class:o.img,src:n.albumCoverUrl},null),t("p",{class:o.favorite},[t("span",null,[n.albumFavoriteCount]),h("\u4EBA\u6536\u85CF")])]),t("h4",{class:I(o.title,"van-ellipsis")},[n.albumName])]))])]):null])}}),z=m({name:"Songbook",setup(){f();const s={auditStatus:"PASS",myself:!1};i.version&&(s.version=i.version||"",s.platform=i.platformType==="STUDENT"?"ios-student":"ios-teacher"),console.log("music-list");const a=S(g.SEARCH);a&&(s.subjectIds=a.id);const e=i.platformType==="STUDENT"?"/api-student":"/api-teacher",{isLoading:d,state:l}=_(v.post(`${e}/music/sheet/list`,{data:u({},s)}),null);return()=>l.value&&l.value.data.rows.length?t(c,null,[t(j,{class:o.title,title:"\u66F2\u8C31","is-link":!0,to:"/music-list",value:"\u66F4\u591A",border:!1},null),t("div",{class:o.listContainer},[t(w,{list:l.value.data.rows,onDetail:r=>{N(r)}},null)])]):!d.value&&t(E,{tips:"\u6682\u65E0\u66F2\u8C31",classImgSize:"SMALL",btnStatus:!1},null)}}),ms=m({name:"Songbook",setup(){return localStorage.setItem("behaviorId",A()),()=>t("div",{class:o.songbook},[t(q,null,null),t(z,null,null)])}});export{ms as default};
