!function(){function e(e){return function(e){if(Array.isArray(e))return n(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 n(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return n(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 n(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t0&&l(c,null,[l(w,{titleClass:z.pTitle,title:"最近练习",border:!1},null),l("div",{class:z.practice},[l(C,{showTitleImg:!0,list:n,onDetail:function(e){if(1===e.play)return _.value=e,void(g.value=!0);var n=location.origin+location.pathname+"#/music-detail?id="+e.id;s(n,(function(){v.push({path:"/music-detail",query:{id:e.id}})}))}},null)])]),l(d,{show:g.value,class:z.songEfficacy,round:!0,onClose:function(){return g.value=!1}},{default:function(){return[l("div",{class:z.songContainer},[l("div",{class:z.title},[m("该曲目已失效")]),l("img",{src:k},null),l("div",{class:z.btnGroup},[l(p,{round:!0,onClick:S},{default:function(){return[m("我知道了")]}})])])]}})])}}}),F=t({name:"MusicList",emits:["favorite"],props:{gift:{type:Number,default:0}},setup:function(n,t){var d=t.expose,m=(t.emit,v()),p=r(),y=f({search:m.query.search||"",musicTagIds:m.query.tagids||"",gift:n.gift,page:1}),h=i(null),b=i([]),x=i(!1),w=i(!1),k=i(!1),T=function(){var n=a(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!x.value){n.next=2;break}return n.abrupt("return");case 2:return x.value=!0,k.value=!1,n.prev=4,n.next=7,u("/music/sheet/my",{method:"TEACHER"===o.platformType?"POST":"GET",prefix:"TEACHER"===o.platformType?"/api-teacher":"/api-student",params:y,data:"TEACHER"===o.platformType?y:{}});case 7:t=n.sent,b.value=[].concat(e(b.value),e(t.data.rows)),h.value=t.data,y.page=t.data.pageNo+1,w.value=t.data.pageNo>=t.data.totalPage,n.next=17;break;case 14:n.prev=14,n.t0=n.catch(4),k.value=!0;case 17:x.value=!1;case 18:case"end":return n.stop()}}),n,null,[[4,14]])})));return function(){return n.apply(this,arguments)}}();return g((function(){return n.gift}),(function(e){k.value=!1,b.value=[],y.page=1,w.value=!1,y.gift=e,T()})),d({reset:function(){k.value=!1,b.value=[],y.page=1,w.value=!1,T()},FetchList:T}),console.log("1111"),function(){return l(c,null,[l(S,{loading:x.value,finished:w.value,"finished-text":b.value.length?"没有更多了":"",onLoad:T,error:k.value},{default:function(){return[b.value.length?l("div",{class:z.personalSong},[l(C,{showTitleImg:!0,list:b.value,onDetail:function(e){var n=location.origin+location.pathname+"#/music-detail?id="+e.id;s(n,(function(){p.push({path:"/music-detail",query:{id:e.id}})}))}},null)]):!x.value&&l(_,{tips:"暂无单曲",classImgSize:"SMALL",btnStatus:!1},null)]}})])}}}),M=t({name:"MusicList",emits:["favorite"],setup:function(n,t){var c=t.expose,d=(t.emit,v()),m=r(),p=f({search:d.query.search||"",musicTagIds:d.query.tagids||"",page:1}),g=i([]),y=i(null),h=i(!1),b=i(!1),x=i(!1),w=function(){var n=a(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!h.value){n.next=2;break}return n.abrupt("return");case 2:return h.value=!0,x.value=!1,n.prev=4,n.next=7,u("/music/sheet/favorite",{prefix:"TEACHER"===o.platformType?"/api-teacher":"/api-student",params:p});case 7:t=n.sent,g.value=[].concat(e(g.value),e(t.data.rows)),y.value=t.data,p.page=t.data.pageNo+1,b.value=t.data.pageNo>=t.data.totalPage,n.next=17;break;case 14:n.prev=14,n.t0=n.catch(4),x.value=!0;case 17:h.value=!1;case 18:case"end":return n.stop()}}),n,null,[[4,14]])})));return function(){return n.apply(this,arguments)}}();return c({reset:function(){x.value=!1,g.value=[],p.page=1,b.value=!1,w()},FetchList:w}),function(){return l(S,{loading:h.value,finished:b.value,"finished-text":g.value.length?"没有更多了":"",onLoad:w,error:x.value},{default:function(){return[g.value.length?l("div",{class:z.personalSong},[l(C,{showTitleImg:!0,list:g.value,onDetail:function(e){var n=location.origin+location.pathname+"#/music-detail?id="+e.id;s(n,(function(){m.push({path:"/music-detail",query:{id:e.id}})}))}},null)]):!h.value&&l(_,{tips:"暂无收藏单曲",classImgSize:"SMALL",btnStatus:!1},null)]}})}}}),H=t({name:"MusicList",setup:function(){var n=v(),t=r(),c=f({search:n.query.search||"",musicTagIds:n.query.tagids||"",page:1}),s=i([]),d=i(null),m=i(!1),p=i(!1),g=i(!1),y=function(){var n=a(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!m.value){n.next=2;break}return n.abrupt("return");case 2:return m.value=!0,g.value=!1,n.prev=4,n.next=7,u("/music/album/favorite",{prefix:"TEACHER"===o.platformType?"/api-teacher":"/api-student",params:c});case 7:t=n.sent,s.value=[].concat(e(s.value),e(t.data.rows)),d.value=t.data,c.page=t.data.pageNo+1,p.value=t.data.pageNo>=t.data.totalPage,n.next=17;break;case 14:n.prev=14,n.t0=n.catch(4),g.value=!0;case 17:m.value=!1;case 18:case"end":return n.stop()}}),n,null,[[4,14]])})));return function(){return n.apply(this,arguments)}}();return function(){return l(S,{loading:m.value,finished:p.value,"finished-text":s.value.length?"没有更多了":"",onLoad:y,error:g.value},{default:function(){return[s.value.length?l("div",{class:z.musicGrid},[l(T,{list:d.value.rows,onGoto:function(e){t.push({name:"music-album-detail",params:{id:e.id}})}},null)]):!m.value&&l(_,{tips:"暂无收藏专辑",classImgSize:"SMALL",btnStatus:!1},null)]}})}}}),P=t({name:"MusicList",props:{gift:{type:Number,default:0}},setup:function(n){v();var t=r(),c=f({page:1,gift:n.gift}),s=i([]),d=i(null),m=i(!1),p=i(!1),y=i(!1),h=function(){var n=a(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!m.value){n.next=2;break}return n.abrupt("return");case 2:return m.value=!0,y.value=!1,n.prev=4,n.next=7,u("/music/album/purchased",{prefix:"TEACHER"===o.platformType?"/api-teacher":"/api-student",params:c});case 7:t=n.sent,s.value=[].concat(e(s.value),e(t.data.rows)),d.value=t.data,c.page=t.data.pageNo+1,p.value=t.data.pageNo>=t.data.totalPage,n.next=17;break;case 14:n.prev=14,n.t0=n.catch(4),y.value=!0;case 17:m.value=!1;case 18:case"end":return n.stop()}}),n,null,[[4,14]])})));return function(){return n.apply(this,arguments)}}();return g((function(){return n.gift}),(function(e){y.value=!1,s.value=[],c.page=1,p.value=!1,c.gift=e,h()})),function(){return l(S,{loading:m.value,finished:p.value,"finished-text":s.value.length?"没有更多了":"",onLoad:h,error:y.value},{default:function(){return[s.value.length?l("div",{class:z.musicGrid},[l(T,{isHiddenTag:!0,list:d.value.rows,onGoto:function(e){t.push({name:"music-album-detail",params:{id:e.id}})}},null)]):!m.value&&l(_,{tips:"暂无专辑",classImgSize:"SMALL",btnStatus:!1},null)]}})}}}),q=t({name:"tenant-album",setup:function(){var n=r(),t=f({page:1,rows:20}),c=i([]),s=i(null),d=i(!1),m=i(!1),p=i(!1),v=function(){var n=a(regeneratorRuntime.mark((function n(){var a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!d.value){n.next=2;break}return n.abrupt("return");case 2:return d.value=!0,p.value=!1,n.prev=4,n.next=7,u.post("/userTenantAlbumRecord/page",{prefix:"TEACHER"===o.platformType?"/api-teacher":"/api-student",data:t});case 7:a=n.sent,c.value=[].concat(e(c.value),e(a.data.rows)),s.value=a.data,console.log(s.value),t.page=a.data.pageNo+1,m.value=a.data.pageNo>=a.data.totalPage,n.next=18;break;case 15:n.prev=15,n.t0=n.catch(4),p.value=!0;case 18:d.value=!1;case 19:case"end":return n.stop()}}),n,null,[[4,15]])})));return function(){return n.apply(this,arguments)}}();return function(){return l(S,{loading:d.value,finished:m.value,"finished-text":c.value.length?" ":"",onLoad:v,error:p.value},{default:function(){return[c.value.length?c.value.map((function(e){return l(A,{class:z.tennatCellGroup,border:!1,onClick:function(){return function(e){n.push({path:"/train-tool",query:{albumId:e.id,buy:"1"}})}(e)}},{default:function(){return[l(w,{isLink:!0,clickable:!1},{icon:function(){return l("img",{src:e.tenantImg,class:z.tenantLogo},null)},title:function(){return l("div",{class:z.tenantName},[e.tenantName])}}),l(w,null,{icon:function(){return l(R,{src:e.coverImg,class:z.tenantCoverImg},null)},title:function(){return l("div",{class:z.tenantContent},[l("h2",null,[e.name]),l("p",null,[e.describe])])}})]}})})):!d.value&&l(_,{tips:"暂无训练教程",classImgSize:"SMALL",btnStatus:!1},null)]}})}}});n("default",t({name:"MusicPersonal",setup:function(){localStorage.setItem("behaviorId",L());var e=sessionStorage.getItem("music-personal-tab-value");sessionStorage.removeItem("music-personal-tab-value");var n=i(e||"train-course");sessionStorage.setItem("music-personal-tab-value",n.value);var t=i(),a=i(),r=i();return y((function(){j("我的乐谱")})),function(){return l("div",{class:z.personal},[l(E,{position:"top"},{default:function(){return[l(G,{background:"transparent",isFixed:!1,border:!1,color:"#131415"},null)]}}),l("img",{class:z.bgImg,src:I},null),l(N,{ref:r,onFavorite:function(){var e,r;if("personal"===n.value)null===(e=t.value)||void 0===e||null===(r=e.reset)||void 0===r||r.call(e);else if("collection"===n.value){var i,u;null===(i=a.value)||void 0===i||null===(u=i.reset)||void 0===u||u.call(i)}}},null),l(h,{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[l(b,{title:"训练教程",name:"train-course"},null)]}}),"train-course"===n.value&&l(q,null,null),("personal"===n.value||"personal-gift"===n.value)&&l(F,{ref:t,gift:"personal-gift"===n.value?1:0,onFavorite:function(){var e,n;null===(e=r.value)||void 0===e||null===(n=e.reload)||void 0===n||n.call(e)}},null),("personal-album"===n.value||"album-gift"===n.value)&&l(P,{gift:"album-gift"===n.value?1:0},null),"collection"===n.value&&l(M,{ref:a,onFavorite:function(){var e,n;null===(e=r.value)||void 0===e||null===(n=e.reload)||void 0===n||n.call(e)}},null),"album"===n.value&&l(H,null,null)])}}}))}}}))}();