!function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function t(t){for(var a=1;a0&&1===u.pageNo)){n.next=15;break}return n.abrupt("return");case 15:e.list=e.list.concat(u.rows||[]),e.finished=u.pageNo>=u.totalPage,e.params.page=u.pageNo+1,e.dataShow=e.list.length>0,n.next=25;break;case 21:n.prev=21,n.t0=n.catch(0),e.dataShow=!1,e.finished=!0;case 25:return n.prev=25,e.listLoading=!1,n.finish(25);case 28:case"end":return n.stop()}}),n,null,[[0,21,25,28]])})))()},setDefaultSubject:function(e){return s(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,o.post("/api-teacher/teacher/defaultSubject",{params:{subjectId:e}});case 3:t.next=7;break;case 5:t.prev=5,t.t0=t.catch(0);case 7:case"end":return t.stop()}}),t,null,[[0,5]])})))()},onSort:function(){this.params.page=1,this.list=[],this.dataShow=!0,this.loading=!1,this.finished=!1,this.searchStatus=!1,"TEACHER"===i.platformType?this.setDefaultSubject(this.params.lessonSubject):this.params.lessonSubject&&_(j.VIDEO,JSON.stringify({id:this.params.lessonSubject,name:this.params.subjectName}),"set"),this.getList()},onSearch:function(e){this.params.search=e,this.onSort()},onDetail:function(e){var t={groupId:e.id};"TEACHER"===i.platformType&&(t.share=1),this.$router.push({path:"/videoDetail",query:t})}},render:function(){var e,t,s=this;return u("div",{class:v},[u(p,{offsetTop:0,position:"top"},{default:function(){return[u(n,{class:y,border:!1,isFixed:!1,background:"transparent"},null),u(a,{placeholder:"请输入老师名称/课程名称",onSearch:s.onSearch},{left:function(){return u("div",{class:S,onClick:function(){s.searchStatus=!s.searchStatus,s.openStatus=!s.openStatus}},[s.params.subjectName,u(c,{classPrefix:"iconfont",name:"down",size:12,color:"#333"},null)])}})]}}),u("div",null,[this.dataShow?u(m,{class:x,loading:this.loading,"onUpdate:loading":function(e){return s.loading=e},finished:this.finished,finishedText:"没有更多了",onLoad:this.getList,immediateCheck:!1},(t=e=this.list.map((function(e){return u(b,{item:e,onClick:s.onDetail},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!f(t)?e:{default:function(){return[e]}})):u(l,{btnStatus:!1,tips:"暂无视频课"},null)]),u(d,{show:this.searchStatus,position:"bottom",round:!0,closeable:!0,"safe-area-inset-bottom":!0,onClose:function(){return s.searchStatus=!1},onClosed:function(){return s.openStatus=!1}},{default:function(){return[s.openStatus&&u(h,{subjectList:s.subjectList,onSort:s.onSort,modelValue:s.params.lessonSubject,"onUpdate:modelValue":function(e){return s.params.lessonSubject=e},subjectName:s.params.subjectName,"onUpdate:subjectName":function(e){return s.params.subjectName=e}},null)]}})])}}))}}}))}();