!function(){function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function t(t){for(var n=1;n0)){e.next=14;break}return I.orchestraId=a[0].value,I.orchestraName=a[0].text,e.next=14,z();case 14:e.next=18;break;case 16:e.prev=16,e.t0=e.catch(0);case 18:case"end":return e.stop()}}),e,null,[[0,16]])})));return function(){return e.apply(this,arguments)}}(),z=function(){var r=a(regeneratorRuntime.mark((function r(){var n,a,s;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,!I.isClick){r.next=3;break}return r.abrupt("return");case 3:return I.isClick=!0,r.next=6,f.post("/api-school/classGroup/page",{data:t(t({},I.params),{},{schoolId:m.user.data.school.id,orchestraId:I.orchestraId,classType:e.classType})});case 6:if(n=r.sent,a=n.data,I.isClick=!1,I.listState.loading=!1,s=a||{},!(I.list.length>0&&1===s.current)){r.next=13;break}return r.abrupt("return");case 13:I.list.concat(s.rows||[]).forEach((function(e){e.preStudentNum>0&&I.list.push(e)})),I.listState.finished=s.current>=s.pages,I.params.page=s.current+1,I.listState.dataShow=I.list.length>0,r.next=25;break;case 20:r.prev=20,r.t0=r.catch(0),I.listState.dataShow=!1,I.listState.finished=!0,I.isClick=!1;case 25:case"end":return r.stop()}}),r,null,[[0,20]])})));return function(){return r.apply(this,arguments)}}();s((function(){return e.classType}),(function(){I.params.page=1,I.list=[],I.listState.dataShow=!0,I.listState.loading=!1,I.listState.finished=!1,z()}));var G=function(){P("confirm",I.check),P("close")};return i(a(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.orchestraId){t.next=5;break}return t.next=3,R();case 3:t.next=7;break;case 5:return t.next=7,z();case 7:case"end":return t.stop()}}),t)})))),function(){var t;return o("div",{class:[O.practiceClass,!I.listState.dataShow&&"emptyRootContainer"]},[o(h,{position:"top"},{default:function(){return[o(c,{title:"选择班级",desotry:!1},null),!e.orchestraId&&o("div",{class:"searchGroup-single"},[o("div",{class:["searchItem",I.showPopover&&"searchItem-active"],onClick:function(){return I.showPopover=!0}},[o("span",null,[I.orchestraName])])])]}}),I.listState.dataShow?o(g,{finished:I.listState.finished,style:{marginTop:e.orchestraId?"12px":0},finishedText:" ",class:[O.liveList],onLoad:z,immediateCheck:!1},{default:function(){return[o(b,{class:[O.gridContainer,O.gridClass],modelValue:I.check,"onUpdate:modelValue":function(e){return I.check=e}},(e=t=I.list.map((function(e){return o(y,{class:O.classCellGroup,onClick:function(){var t;e.teacherId&&(t=e.id,I.checkboxRefs[t].toggle())},border:!1},{default:function(){return[o(x,{center:!0,titleStyle:{flex:"0 auto"},valueClass:O.classCheckbox},{icon:function(){return o(C,{src:v,class:O.img},null)},title:function(){return o("div",{class:O.content},[o("div",{class:O.teacherName},[e.teacherName?o("div",{class:[O.name,O.maxWidth,"van-ellipsis"]},[e.teacherName]):o("div",{class:[O.name,"van-ellipsis"],style:{color:"red"}},[l("暂未设置伴学指导")]),o(w,{type:"primary"},{default:function(){return[e.name]}})]),o("div",{class:[O.orchestraName,"van-ellipsis"]},[e.orchestraName])])},value:function(){return o(k,{name:e.id,ref:function(t){return I.checkboxRefs[e.id]=t},disabled:!e.teacherId,onClick:function(e){e.stopPropagation()}},null)}}),o(S,{border:!1,columnNum:3},{default:function(){return[o(N,null,{default:function(){return[o("p",{class:O.title},[e.preStudentNum]),o("p",{class:O.name},[l("学员人数")])]}}),o(N,null,{default:function(){return[o("p",{class:[O.title]},[e.courseScheduleNum-e.completeCourseScheduleNum]),o("p",{class:O.name},[l("剩余课时")])]}}),o(N,null,{default:function(){return[o("p",{class:O.title},[e.courseScheduleNum]),o("p",{class:O.name},[l("总课时")])]}})]}})]}})})),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!_(e)?t:{default:function(){return[t]}}))];var e}}):o(u,{btnStatus:!1,tips:"暂无班级"},null),o(h,{position:"bottom"},{default:function(){return[o("div",{class:"btnGroup"},[o(d,{block:!0,round:!0,type:"primary",onClick:G},{default:function(){return[l("确认")]}})])]}}),o(p,{show:I.showPopover,"onUpdate:show":function(e){return I.showPopover=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[o(j,{columns:I.orchestraList,onCancel:function(){return I.showPopover=!1},onConfirm:function(e){I.orchestraId=e.selectedOptions[0].value,I.orchestraName=e.selectedOptions[0].text,I.showPopover=!1,I.params.page=1,I.list=[],I.listState.dataShow=!0,I.listState.loading=!1,I.listState.finished=!1,z()}},null)]}})])}}}))}}}))}();