!function(){function e(e,o,n,a,t,r,i){try{var u=e[r](i),l=u.value}catch(c){return void n(c)}u.done?o(l):Promise.resolve(l).then(a,t)}function o(e,o){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);o&&(a=a.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,a)}return n}function n(e){for(var n=1;nspan{color:var(--favorite-color)}._albumContainer_1omyu_34 ._album_1omyu_34 ._img_1omyu_82{width:2.50667rem;height:2.50667rem;position:relative}._albumContainer_1omyu_34 ._album_1omyu_34 ._img_1omyu_82>img,._albumContainer_1omyu_34 ._album_1omyu_34 ._img_1omyu_82>div{position:absolute;border-radius:.26667rem;overflow:hidden}._albumContainer_1omyu_34 ._album_1omyu_34 ._title_1omyu_14{padding-top:.21333rem;font-size:.37333rem;color:#333;font-weight:400;width:2.50667rem;text-align:center}._albumContainer_1omyu_34 ._album_1omyu_34 ._model_1omyu_101{position:absolute;left:.10667rem;bottom:.10667rem;background:rgba(67,67,67,.6);backdrop-filter:blur(.53333rem);-webkit-backdrop-filter:blur(.53333rem);display:flex;align-items:center;padding:.10667rem .16rem;border-radius:.53333rem;font-size:.32rem;color:#fff;transform:scale(.9)}._albumContainer_1omyu_34 ._album_1omyu_34 ._num_1omyu_116{margin-left:.08rem}._listContainer_1omyu_119{padding:0 .32rem;border-radius:.48rem;background-color:#fff;margin:0 .37333rem .37333rem}\n",document.head.appendChild(t),System.register(["./index-legacy.b903c881.js","./index-legacy.5b93d63d.js","./index-legacy.b7f666cc.js","./index-legacy.8e85fa65.js","./index-legacy.6e10cd37.js","./hooks-legacy.84a774a1.js","./icon-xin-active-legacy.a17aecbf.js","./index-legacy.f52c26b4.js","./index-legacy.c848501c.js","./music-legacy.1b935274.js","./index-legacy.77670d98.js","./use-tab-status-legacy.a19d344b.js","./icon_uploader-legacy.b178a553.js","./icon-xin-legacy.34fb9986.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(o){"use strict";var a,t,r,i,u,l,c,m,s,_,d,f,b,y,v,p,g,h,w,x,j,C,k,S;return{setters:[function(e){a=e.d,t=e.O,r=e.g,i=e.w,u=e.P,l=e.j,c=e.F,m=e.z,s=e.M,_=e.Q,d=e.S,f=e.be,b=e.C},function(e){y=e.I},function(e){v=e.C},function(e){p=e.c},function(e){g=e.c},function(e){h=e.a,w=e.S},function(e){x=e.I,j=e.a},function(e){C=e.L},function(e){k=e.S},function(e){S=e.g},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var O="_songbook_1omyu_1",T="_title_1omyu_14",P="_cellTitle_1omyu_20",z="_cellValue_1omyu_25",E="_albumContainer_1omyu_34",D="_album_1omyu_34",I="_albumType_1omyu_52",A="_main_1omyu_65",L="_img_1omyu_82",N="_model_1omyu_101",R="_num_1omyu_116",H="_listContainer_1omyu_119",U=a({name:"Songbook",setup:function(){t();var e={};r.version&&(e.version=r.version||"",e.platform="STUDENT"===r.platformType?"ios-student":"ios-teacher");var o="STUDENT"===r.platformType?"/api-student":"/api-teacher";e.myself=!1;var a=h(w.SEARCH);a&&(e.subjectIds=a.id);var _=p(i.post("".concat(o,"/music/album/list"),{data:n({},e)}),null),d=(_.isLoading,_.state),f=u();return function(){return l(c,null,[d.value&&d.value.data.rows.length?l(c,null,[l(v,{class:T,titleClass:P,title:"专辑",to:"/music-album",border:!1},{value:function(){return l("span",{class:z},[m("更多"),l(s,{name:"arrow"},null)])}}),l("div",{class:E},[d.value.data.rows.map((function(e){return l("div",{class:D,key:e.id,onClick:function(){return f.push("/music-album-detail/"+e.id)}},[l("div",{class:A},["CHARGE"===e.paymentType&&l("span",{class:I},[m("付费")]),l(y,{class:L,src:e.albumCoverUrl},null),l("div",{class:N},[l(s,{name:e.favorite?x:j},null),l("span",{class:R},[e.albumFavoriteCount,m("人")])])]),l("h4",{class:g(T,"van-ellipsis")},[e.albumName])])}))])]):null])}}}),M=a({name:"Songbook",setup:function(){var o=u(),a={};r.version&&(a.version=r.version||"",a.platform="STUDENT"===r.platformType?"ios-student":"ios-teacher");var t=h(w.SEARCH);t&&(a.subjectIds=t.id);var y=_(n({auditStatus:"PASS",myself:!1,page:1},a)),p=d(null),g=d(!1),x=d(!1),j=d(!1),S=function(){var o,a=(o=regeneratorRuntime.mark((function e(){var o,a,t,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!g.value){e.next=2;break}return e.abrupt("return");case 2:return g.value=!0,j.value=!1,o=n({},y),e.prev=5,e.next=8,i.post("".concat(r.platformApi,"/music/sheet/list"),{data:o});case 8:a=e.sent,p.value&&(u=((null===(t=p.value)||void 0===t?void 0:t.rows)||[]).concat(a.data.rows||[]),p.value.rows=u),p.value=p.value||a.data,y.page=a.data.pageNo+1,x.value=a.data.pageNo>=a.data.totalPage,e.next=18;break;case 15:e.prev=15,e.t0=e.catch(5),j.value=!0;case 18:g.value=!1;case 19:case"end":return e.stop()}}),e,null,[[5,15]])})),function(){var n=this,a=arguments;return new Promise((function(t,r){var i=o.apply(n,a);function u(o){e(i,t,r,u,l,"next",o)}function l(o){e(i,t,r,u,l,"throw",o)}u(void 0)}))});return function(){return a.apply(this,arguments)}}();return function(){return l(c,null,[p.value&&p.value.rows.length>0&&l(v,{class:T,titleClass:P,title:"曲谱",to:"/music-list",border:!1},{value:function(){return l("span",{class:z},[m("更多"),l(s,{name:"arrow"},null)])}}),l(C,{loading:g.value,finished:x.value,"finished-text":p.value&&p.value.rows.length?"没有更多了":"",onLoad:S,error:j.value},{default:function(){return[p.value&&p.value.rows.length?l("div",{class:H},[l(k,{list:p.value.rows,onDetail:function(e){var n=location.origin+location.pathname+"#/music-detail?id="+e.id;f(n,(function(){o.push({path:"/music-detail",query:{id:e.id}})}))}},null)]):!g.value&&l(b,{tips:"暂无曲目",classImgSize:"SMALL",btnStatus:!1},null)]}})])}}});o("default",a({name:"Songbook",setup:function(){return localStorage.setItem("behaviorId",S()),function(){return l("div",{class:O},[l(U,null,null),l(M,null,null)])}}}))}}}))}();