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