System.register(["./index-legacy.77fd7daf.js","./index-legacy.c6503c7a.js","./index-legacy.d57a9644.js","./index-legacy.78f6e587.js","./index-legacy.3aa427b0.js","./index-legacy.2393a936.js","./album-my-legacy.67d753b0.js","./index-legacy.af8bd716.js","./music-legacy.571c53b0.js","./hooks-legacy.eeb437e3.js","./index-legacy.6d038ac6.js","./use-id-legacy.4a1010a1.js","./use-tab-status-legacy.f1ce0ec9.js","./use-refs-legacy.1266fefa.js","./index-legacy.5fb6b8d3.js","./index-legacy.fde28a96.js","./index-legacy.b8a6c89b.js","./index-legacy.16d6e7da.js","./icon-xin-legacy.576942b1.js","./icon_uploader-legacy.2d017c5c.js","./icon_album-legacy.dfe53748.js","./icon_album_active-legacy.14486289.js","./icon_exquisite-legacy.37947ae4.js","./icon_music_active-legacy.78521af9.js","./icon-play-legacy.50b88257.js"],(function(e){"use strict";var n,a,l,i,t,u,c,o,s,r,f,v,d,g,m,p,y,b,j,x,h,S;return{setters:[function(e){n=e.d,a=e.P,l=e.S,i=e.j,t=e.be,u=e.F,c=e.w,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,p=e.A,y=e.C,b=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(){}],execute:function(){var _=n({name:"Practice",emits:["favorite"],setup:function(e,n){var s=n.expose,r=(n.emit,a()),f=l(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),p=(m.isLoading,m.state);return s({reload:m.execute}),function(){var e,n=(null===(e=p.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=l(e||"personal");sessionStorage.setItem("music-personal-tab-value",n.value);var a=l(),t=l(),u=l();return s((function(){h("我的乐谱")})),function(){return i("div",{class:g.personal},[i(S,null,null),i(_,{ref:u,onFavorite:function(){var e,l;if("personal"===n.value)null===(e=a.value)||void 0===e||null===(l=e.reset)||void 0===l||l.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:a,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(p,{gift:"album-gift"===n.value?1:0},null),"collection"===n.value&&i(y,{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(b,null,null)])}}}))}}}));
