System.register(["./index-legacy.088d07fe.js","./index-legacy.9aa10d4d.js","./index-legacy.7027cde5.js","./index-legacy.162d13ca.js","./index-legacy.c4ab9154.js","./index-legacy.958bfabf.js","./album-my-legacy.c2eb6597.js","./index-legacy.119cfae5.js","./music-legacy.9249ee25.js","./hooks-legacy.dea977fc.js","./use-id-legacy.a726c7df.js","./use-tab-status-legacy.b0470cbd.js","./use-refs-legacy.28371c35.js","./index-legacy.3abdbbf5.js","./index-legacy.cb581011.js","./index-legacy.55bc6c4c.js","./index-legacy.d77a1394.js","./icon-xin-legacy.74dde3a9.js","./icon_uploader-legacy.bc9240d0.js","./icon_exquisite-legacy.474c5c17.js","./icon_album_active-legacy.fe16b618.js","./icon_music_active-legacy.3c4f03a5.js","./index-legacy.c610561c.js"],(function(e){"use strict";var n,l,a,i,t,u,c,o,r,s,f,d,v,g,m,b,p,y,j,x,h;return{setters:[function(e){n=e.d,l=e.M,a=e.O,i=e.i,t=e.be,u=e.F,c=e.e,o=e.s,r=e.P},function(){},function(){},function(e){s=e.T,f=e.a},function(e){d=e.b},function(e){v=e.C},function(e){g=e.s,m=e.P,b=e.A,p=e.C,y=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(){}],execute:function(){var _=n({name:"Practice",emits:["favorite"],setup:function(e,n){var r=n.expose,s=(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),b=(m.isLoading,m.state);return r({reload:m.execute}),function(){var e,n=(null===(e=b.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(){s.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 r((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(s,{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(b,{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(y,null,null)])}}}))}}}));
