!function(){function e(e,o,r,a,t,n,i){try{var l=e[n](i),u=l.value}catch(m){return void r(m)}l.done?o(u):Promise.resolve(u).then(a,t)}function o(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);o&&(a=a.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),r.push.apply(r,a)}return r}function r(e){for(var r=1;rspan{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(["./ResizeObserver.es-legacy.9ef5ac8c.js","./index-legacy.8802e914.js","./index-legacy.e9381954.js","./index-legacy.91eef022.js","./index-legacy.6e10cd37.js","./hooks-legacy.b4b15558.js","./icon-xin-active-legacy.a17aecbf.js","./index-legacy.63f64e9b.js","./index-legacy.363c9e4e.js","./music-legacy.025f1fa2.js","./use-tab-status-legacy.257600f9.js","./icon-xin2-legacy.d521c9ab.js"],(function(o){"use strict";var a,t,n,i,l,u,m,s,c,_,d,f,b,v,y,p,g,h,w,x,j,C,k,S;return{setters:[function(e){a=e.d,t=e.P,n=e.g,i=e.y,l=e.Q,u=e.j,m=e.F,s=e.A,c=e.N,_=e.S,d=e.U,f=e.bg,b=e.C},function(e){v=e.I},function(e){y=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(){}],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",A="_albumType_1omyu_52",I="_main_1omyu_65",N="_img_1omyu_82",L="_model_1omyu_101",R="_num_1omyu_116",U="_listContainer_1omyu_119",H=a({name:"Songbook",setup:function(){t();var e={};n.version&&(e.version=n.version||"",e.platform="STUDENT"===n.platformType?"ios-student":"ios-teacher");var o="STUDENT"===n.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:r({},e)}),null),d=(_.isLoading,_.state),f=l();return function(){return u(m,null,[d.value&&d.value.data.rows.length?u(m,null,[u(y,{class:T,titleClass:P,title:"专辑",to:"/music-album",border:!1},{value:function(){return u("span",{class:z},[s("更多"),u(c,{name:"arrow"},null)])}}),u("div",{class:E},[d.value.data.rows.map((function(e){return u("div",{class:D,key:e.id,onClick:function(){return f.push("/music-album-detail/"+e.id)}},[u("div",{class:I},["CHARGE"===e.paymentType&&u("span",{class:A},[s("付费")]),u(v,{class:N,src:e.albumCoverUrl},null),u("div",{class:L},[u(c,{name:e.favorite?x:j},null),u("span",{class:R},[e.albumFavoriteCount,s("人")])])]),u("h4",{class:g(T,"van-ellipsis")},[e.albumName])])}))])]):null])}}}),F=a({name:"Songbook",setup:function(){var o=l(),a={};n.version&&(a.version=n.version||"",a.platform="STUDENT"===n.platformType?"ios-student":"ios-teacher");var t=h(w.SEARCH);t&&(a.subjectIds=t.id);var v=_(r({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,l;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=r({},v),e.prev=5,e.next=8,i.post("".concat(n.platformApi,"/music/sheet/list"),{data:o});case 8:a=e.sent,p.value&&(l=((null===(t=p.value)||void 0===t?void 0:t.rows)||[]).concat(a.data.rows||[]),p.value.rows=l),p.value=p.value||a.data,v.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 r=this,a=arguments;return new Promise((function(t,n){var i=o.apply(r,a);function l(o){e(i,t,n,l,u,"next",o)}function u(o){e(i,t,n,l,u,"throw",o)}l(void 0)}))});return function(){return a.apply(this,arguments)}}();return function(){return u(m,null,[p.value&&p.value.rows.length>0&&u(y,{class:T,titleClass:P,title:"曲谱",to:"/music-list",border:!1},{value:function(){return u("span",{class:z},[s("更多"),u(c,{name:"arrow"},null)])}}),u(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?u("div",{class:U},[u(k,{list:p.value.rows,onDetail:function(e){var r=location.origin+location.pathname+"#/music-detail?id="+e.id;f(r,(function(){o.push({path:"/music-detail",query:{id:e.id}})}))}},null)]):!g.value&&u(b,{tips:"暂无曲目",classImgSize:"SMALL",btnStatus:!1},null)]}})])}}});o("default",a({name:"Songbook",setup:function(){return localStorage.setItem("behaviorId",S()),function(){return u("div",{class:O},[u(H,null,null),u(F,null,null)])}}}))}}}))}();