!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,n){if(!e)return;if("string"==typeof e)return t(e,n);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 t(e,n)}(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 n=0,r=new Array(t);n0&&1===r.data.pageNo)){e.next=8;break}return e.abrupt("return");case 8:a=(R.subjectList||[]).concat((null===(n=r.data)||void 0===n?void 0:n.rows)||[]),R.subjectList=a,R.page=r.data.pageNo+1,C.value=r.data.pageNo>=r.data.totalPage,e.next=17;break;case 14:e.prev=14,e.t0=e.catch(2),M.value=!0;case 17:T.value=!1;case 18:case"end":return e.stop()}}),e,null,[[2,14]])})));return function(){return e.apply(this,arguments)}}();return u(r(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T.value=!0,e.next=3,G();case 3:if(!R.albumId){e.next=8;break}return e.next=6,B();case 6:e.next=9;break;case 8:T.value=!1;case 9:case"end":return e.stop()}}),e)})))),function(){return s(p,null,[s("div",{class:I},[s(g,null,{default:function(){return[s(w,{hideHeader:!1,background:"transparent",isFixed:!1,border:!1,title:"云课堂",color:"#131415"},null),s(y,{class:x,onSearch:z,type:"tenant",placeholder:"请输入教材关键词",background:"transparent",inputBackground:"transparent"},{left:function(){return O.value.length>1&&s(m,{class:S},{default:function(){return[s(f,{titleClass:L,modelValue:U.value,"onUpdate:modelValue":function(e){return U.value=e},options:O.value,onChange:P},{default:function(){return[s("div",null,null)]}})]}})}})]}}),s("img",{class:E,src:b},null)]),s("div",{class:j},[s(v,{loading:T.value,finished:C.value,"finished-text":"",onLoad:B,error:M.value,immediateCheck:!1},{default:function(){return[R.subjectList.length?s(k,{class:[N],list:R.subjectList.map((function(e){return{name:e.musicSheetName,coverImg:e.titleImg,id:e.id}})),onItemClick:function(e){if(l().isApp){var t="".concat(location.origin,"/tenant/#/courseList?id=").concat(e.id,"&albumId=").concat(R.albumId);_({api:"openWebView",content:{url:t,orientation:1,isHideTitle:!1}})}else n.push({path:"/courseList",query:{id:e.id,albumId:R.albumId}})}},null):!T.value&&s(d,{tips:"暂无教材",classImgSize:"CERT",btnStatus:!1},null)]}})])])}}}))}}}))}();