!function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,a){if(!e)return;if("string"==typeof e)return t(e,a);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,a)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a=a.data.totalPage,t.next=17;break;case 14:t.prev=14,t.t0=t.catch(4),w.value=!0;case 17:S.value=!1;case 18:case"end":return t.stop()}}),t,null,[[4,14]])})));return function(){return t.apply(this,arguments)}}();return s((function(){return t.gift}),(function(e){w.value=!1,q.value=[],b.page=1,T.value=!1,b.gift=e,L()})),g({reset:function(){w.value=!1,q.value=[],b.page=1,T.value=!1,L()},FetchList:L}),function(){return l(d,{loading:S.value,finished:T.value,"finished-text":q.value.length?"没有更多了":"",onLoad:L,error:w.value},{default:function(){return[q.value.length?l("div",{class:_.personalSong},[l(m,{list:q.value,onDetail:function(e){var t=location.origin+location.pathname+"#/music-detail?id="+e.id;v(t,(function(){y.push({path:"/music-detail",query:{id:e.id}})}))}},null)]):!S.value&&l(f,{tips:"暂无单曲",classImgSize:"SMALL",btnStatus:!1},null)]}})}}})),t("C",a({name:"MusicList",emits:["favorite"],setup:function(t,a){var s=a.expose,g=(a.emit,r()),h=i(),y=u({search:g.query.search||"",musicTagIds:g.query.tagids||"",page:1}),b=o([]),x=o(null),q=o(!1),S=o(!1),T=o(!1),w=function(){var t=n(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!q.value){t.next=2;break}return t.abrupt("return");case 2:return q.value=!0,T.value=!1,t.prev=4,t.next=7,c("/music/sheet/favorite",{prefix:"TEACHER"===p.platformType?"/api-teacher":"/api-student",params:y});case 7:a=t.sent,b.value=[].concat(e(b.value),e(a.data.rows)),x.value=a.data,y.page=a.data.pageNo+1,S.value=a.data.pageNo>=a.data.totalPage,t.next=17;break;case 14:t.prev=14,t.t0=t.catch(4),T.value=!0;case 17:q.value=!1;case 18:case"end":return t.stop()}}),t,null,[[4,14]])})));return function(){return t.apply(this,arguments)}}();return s({reset:function(){T.value=!1,b.value=[],y.page=1,S.value=!1,w()},FetchList:w}),function(){return l(d,{loading:q.value,finished:S.value,"finished-text":b.value.length?"没有更多了":"",onLoad:w,error:T.value},{default:function(){return[b.value.length?l("div",{class:_.personalSong},[l(m,{list:b.value,onDetail:function(e){var t=location.origin+location.pathname+"#/music-detail?id="+e.id;e.favoriteProviderType&&(t+="&providerType=".concat(e.favoriteProviderType)),v(t,(function(){h.push({path:"/music-detail",query:{id:e.id,providerType:e.favoriteProviderType}})}))}},null)]):!q.value&&l(f,{tips:"暂无收藏单曲",classImgSize:"SMALL",btnStatus:!1},null)]}})}}})),t("a",a({name:"MusicList",setup:function(){var t=r(),a=i(),s=u({search:t.query.search||"",musicTagIds:t.query.tagids||"",page:1}),v=o([]),m=o(null),h=o(!1),y=o(!1),b=o(!1),x=function(){var t=n(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!h.value){t.next=2;break}return t.abrupt("return");case 2:return h.value=!0,b.value=!1,t.prev=4,t.next=7,c("/music/album/favorite",{prefix:"TEACHER"===p.platformType?"/api-teacher":"/api-student",params:s});case 7:a=t.sent,v.value=[].concat(e(v.value),e(a.data.rows)),m.value=a.data,s.page=a.data.pageNo+1,y.value=a.data.pageNo>=a.data.totalPage,t.next=17;break;case 14:t.prev=14,t.t0=t.catch(4),b.value=!0;case 17:h.value=!1;case 18:case"end":return t.stop()}}),t,null,[[4,14]])})));return function(){return t.apply(this,arguments)}}();return function(){return l(d,{loading:h.value,finished:y.value,"finished-text":v.value.length?"没有更多了":"",onLoad:x,error:b.value},{default:function(){return[v.value.length?l("div",{class:_.musicGrid},[l(g,{list:m.value.rows,onGoto:function(e){a.push({name:"music-album-detail",params:{id:e.id}})}},null)]):!h.value&&l(f,{tips:"暂无收藏专辑",classImgSize:"SMALL",btnStatus:!1},null)]}})}}})),t("A",a({name:"MusicList",props:{gift:{type:Number,default:0}},setup:function(t){r();var a=i(),v=u({page:1,gift:t.gift}),m=o([]),h=o(null),y=o(!1),b=o(!1),x=o(!1),q=function(){var t=n(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!y.value){t.next=2;break}return t.abrupt("return");case 2:return y.value=!0,x.value=!1,t.prev=4,t.next=7,c("/music/album/purchased",{prefix:"TEACHER"===p.platformType?"/api-teacher":"/api-student",params:v});case 7:a=t.sent,m.value=[].concat(e(m.value),e(a.data.rows)),h.value=a.data,v.page=a.data.pageNo+1,b.value=a.data.pageNo>=a.data.totalPage,t.next=17;break;case 14:t.prev=14,t.t0=t.catch(4),x.value=!0;case 17:y.value=!1;case 18:case"end":return t.stop()}}),t,null,[[4,14]])})));return function(){return t.apply(this,arguments)}}();return s((function(){return t.gift}),(function(e){x.value=!1,m.value=[],v.page=1,b.value=!1,v.gift=e,q()})),function(){return l(d,{loading:y.value,finished:b.value,"finished-text":m.value.length?"没有更多了":"",onLoad:q,error:x.value},{default:function(){return[m.value.length?l("div",{class:_.musicGrid},[l(g,{isHiddenTag:!0,list:h.value.rows,onGoto:function(e){a.push({name:"music-album-detail",params:{id:e.id}})}},null)]):!y.value&&l(f,{tips:"暂无专辑",classImgSize:"SMALL",btnStatus:!1},null)]}})}}}))}}}))}();