System.register(["./index-legacy.2562bdba.js","./index-legacy.b85658dd.js","./index-legacy.b550cfe2.js","./index-legacy.2eb6777c.js","./index-legacy.1f1e6dc3.js","./index-legacy.af0efc4c.js","./album-my-legacy.4615e269.js","./index-legacy.9ca4eeac.js","./music-legacy.161b0e26.js","./hooks-legacy.4a4d2e12.js","./index-legacy.83ebfae8.js","./use-id-legacy.d6f0d8ea.js","./use-tab-status-legacy.f4341042.js","./use-refs-legacy.7602bd51.js","./index-legacy.da89f2f1.js","./index-legacy.e6740abe.js","./index-legacy.a6dcab41.js","./index-legacy.76921e21.js","./index-legacy.523bef85.js","./icon-xin-legacy.34fb9986.js","./icon_uploader-legacy.b178a553.js","./icon_album-legacy.27017c0f.js","./icon_album_active-legacy.fcd6f4c0.js","./icon_exquisite-legacy.80eb242a.js","./icon_music_active-legacy.77693573.js","./icon-play-legacy.50b88257.js"],(function(e){"use strict";var n,l,a,i,t,u,c,o,s,r,f,v,d,g,m,b,p,y,j,x,h,S;return{setters:[function(e){n=e.d,l=e.P,a=e.S,i=e.j,t=e.bf,u=e.F,c=e.x,o=e.g,s=e.U},function(){},function(){},function(e){r=e.T,f=e.a},function(e){v=e.c},function(e){d=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(e){S=e.C},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=v((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 s({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(d,{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=sessionStorage.getItem("music-personal-tab-value");sessionStorage.removeItem("music-personal-tab-value");var n=a(e||"personal");sessionStorage.setItem("music-personal-tab-value",n.value);var l=a(),t=a(),u=a();return s((function(){h("我的乐谱")})),function(){return i("div",{class:g.personal},[i(S,null,null),i(_,{ref:u,onFavorite:function(){var e,a;if("personal"===n.value)null===(e=l.value)||void 0===e||null===(a=e.reset)||void 0===a||a.call(e);else if("collection"===n.value){var i,u;null===(i=t.value)||void 0===i||null===(u=i.reset)||void 0===u||u.call(i)}}},null),i(r,{color:"var(--van-primary)",background:"transparent",lineWidth:20,shrink:!0,active:n.value,"onUpdate:active":function(e){return n.value=e},onChange:function(e){n.value=e,sessionStorage.setItem("music-personal-tab-value",e)}},{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"===n.value||"personal-gift"===n.value)&&i(m,{ref:l,gift:"personal-gift"===n.value?1:0,onFavorite:function(){var e,n;null===(e=u.value)||void 0===e||null===(n=e.reload)||void 0===n||n.call(e)}},null),("personal-album"===n.value||"album-gift"===n.value)&&i(b,{gift:"album-gift"===n.value?1:0},null),"collection"===n.value&&i(p,{ref:t,onFavorite:function(){var e,n;null===(e=u.value)||void 0===e||null===(n=e.reload)||void 0===n||n.call(e)}},null),"album"===n.value&&i(y,null,null)])}}}))}}}));
