System.register(["./index-legacy.b2528a15.js","./index-legacy.4f922f18.js","./index-legacy.3f4943f0.js","./index-legacy.7e6f30e7.js","./index-legacy.44baf7f8.js","./index-legacy.207dc8c2.js","./album-my-legacy.f60c388d.js","./index-legacy.21779c2e.js","./music-legacy.80266f81.js","./hooks-legacy.fb8d6c34.js","./use-id-legacy.4f071235.js","./use-tab-status-legacy.5c2c2da3.js","./use-refs-legacy.2f8acfce.js","./index-legacy.9cbe7ce8.js","./index-legacy.3a0d59fb.js","./index-legacy.73f03537.js","./index-legacy.ca42ae97.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.c610561c.js"],(function(e){"use strict";var n,l,a,i,t,u,c,o,s,r,f,d,v,g,m,y,p,j,b,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,j=e.a},function(e){b=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(b,{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(j,null,null)])}}}))}}}));
