System.register(["./index-legacy.f8641610.js","./index-legacy.4ddb0119.js","./index-legacy.00d337cc.js","./index-legacy.a8de4840.js","./index-legacy.a9cc406e.js","./index-legacy.fc510843.js","./album-my-legacy.881b5dea.js","./index-legacy.2c7bb048.js","./music-legacy.1c924052.js","./hooks-legacy.1d4168e3.js","./use-id-legacy.30c2e9af.js","./use-tab-status-legacy.5d29085f.js","./use-refs-legacy.e503281e.js","./index-legacy.13f535d5.js","./index-legacy.ab4325ad.js","./index-legacy.9d6d2a5c.js","./index-legacy.c8b60294.js","./icon-xin-legacy.18ed4a9d.js","./icon_uploader-legacy.db3a8c90.js","./icon_album-legacy.d489a774.js","./icon_album_active-legacy.d2829e23.js","./icon_exquisite-legacy.178b582f.js","./icon_music_active-legacy.cc68af68.js","./icon-play-legacy.50b88257.js","./index-legacy.c3bbeade.js"],(function(e){"use strict";var n,l,a,i,t,u,c,o,s,r,f,d,v,g,m,y,p,b,j,x,h;return{setters:[function(e){n=e.d,l=e.Q,a=e.U,i=e.i,t=e.bg,u=e.F,c=e.e,o=e.s,s=e.V},function(){},function(){},function(e){r=e.T,f=e.a},function(e){d=e.b},function(e){v=e.C},function(e){g=e.s,m=e.P,y=e.A,p=e.C,b=e.a},function(e){j=e.S},function(e){x=e.g},function(e){h=e.u},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var _=n({name:"Practice",emits:["favorite"],setup:function(e,n){var s=n.expose,r=(n.emit,l()),f=a(0),m=d((function(e){return c.get("/music/sheet/practice",{prefix:"TEACHER"===o.platformType?"/api-teacher":"/api-student",params:{rows:(null==e?void 0:e.rows)||3}})}),null),y=(m.isLoading,m.state);return s({reload:m.execute}),function(){var e,n=(null===(e=y.value)||void 0===e?void 0:e.data.rows)||[];return 0===f.value&&(f.value=n.length),i(u,null,[f.value>0&&i(v,{title:"最近练习",border:!1},null),i("div",{class:g.practice},[i(j,{list:n,onDetail:function(e){var n=location.origin+location.pathname+"#/music-detail?id="+e.id;t(n,(function(){r.push({path:"/music-detail",query:{id:e.id}})}))}},null)])])}}});e("default",n({name:"MusicPersonal",setup:function(){localStorage.setItem("behaviorId",x());var e=a("personal"),n=a(),l=a(),t=a();return s((function(){h("我的乐谱")})),function(){return i("div",{class:g.personal},[i(_,{ref:t,onFavorite:function(){var a,i;if("personal"===e.value)null===(a=n.value)||void 0===a||null===(i=a.reset)||void 0===i||i.call(a);else if("collection"===e.value){var t,u;null===(t=l.value)||void 0===t||null===(u=t.reset)||void 0===u||u.call(t)}}},null),i(r,{color:"var(--van-primary)",background:"transparent",lineWidth:20,shrink:!0,active:e.value,"onUpdate:active":function(n){return e.value=n},onChange:function(n){return e.value=n}},{default:function(){return[i(f,{title:"我的单曲",name:"personal"},null),i(f,{title:"我的专辑",name:"personal-album"},null),i(f,{title:"收藏单曲",name:"collection"},null),i(f,{title:"收藏专辑",name:"album"},null),i(f,{title:"赠送单曲",name:"personal-gift"},null),i(f,{title:"赠送专辑",name:"album-gift"},null)]}}),("personal"===e.value||"personal-gift"===e.value)&&i(m,{ref:n,gift:"personal-gift"===e.value?1:0,onFavorite:function(){var e,n;null===(e=t.value)||void 0===e||null===(n=e.reload)||void 0===n||n.call(e)}},null),("personal-album"===e.value||"album-gift"===e.value)&&i(y,{gift:"album-gift"===e.value?1:0},null),"collection"===e.value&&i(p,{ref:l,onFavorite:function(){var e,n;null===(e=t.value)||void 0===e||null===(n=e.reload)||void 0===n||n.call(e)}},null),"album"===e.value&&i(b,null,null)])}}}))}}}));