!function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?a(c,null,[a("div",{class:Z},[t.name]),a("div",{class:ee},[t.subjects&&t.subjects.map((function(t){return a("div",{class:te,onClick:function(){return e.onSelect(t.id)}},[a(U,{src:t.img||"xxx",width:"100%",height:"100%",fit:"cover"},{loading:function(){return a(s,{type:"spinner",size:20},null)}}),a("div",{class:ne},[a(A,{name:t.id,class:re,disabled:!0,ref:function(n){return e.checkboxRefs[t.id]=n}},{icon:function(e){return a(l,{name:e.checked?F:G,size:"20"},null)}}),a("p",{class:ie},[t.name])])])}))])]):null})),e.single?a("div",{class:ee},[e.subjectList.map((function(t){return a("div",{class:te,onClick:function(){return e.onSelect(t.id)}},[a(U,{src:t.img||"xxx",width:"100%",height:"100%",fit:"cover"},{loading:function(){return a(s,{type:"spinner",size:20},null)}}),a("div",{class:ne},[a(A,{name:t.id,class:re,disabled:!0,ref:function(n){return e.checkboxRefs[t.id]=n}},{icon:function(e){return a(l,{name:e.checked?F:G,size:"20"},null)}}),a("p",{class:ie},[t.name])])])}))]):null]}}):a(z,{modelValue:this.radio,"onUpdate:modelValue":function(t){return e.radio=t}},{default:function(){return[!e.single&&e.subjectList.map((function(t){return t.subjects&&t.subjects.length>0?a(c,null,[a("div",{class:Z},[t.name]),a("div",{class:ee},[t.subjects&&t.subjects.map((function(t){return a("div",{class:te,onClick:function(){return e.onSelect(t.id)}},[a(U,{src:t.img||"xxx",width:"100%",height:"100%",fit:"cover"},{loading:function(){return a(s,{type:"spinner",size:20},null)}}),a("div",{class:ne},[a(O,{name:t.id,class:re},{icon:function(e){return a(l,{name:e.checked?F:G,size:"20"},null)}}),a("p",{class:ie},[t.name])])])}))])]):null})),e.single?a("div",{class:ee},[e.subjectList.map((function(t){return a("div",{class:te,onClick:function(){return e.onSelect(t.id)}},[a(U,{src:t.img||"xxx",width:"100%",height:"100%",fit:"cover"},{loading:function(){return a(s,{type:"spinner",size:20},null)}}),a("div",{class:ne},[a(O,{name:t.id,class:re},{icon:function(e){return a(l,{name:e.checked?F:G,size:"20"},null)}}),a("p",{class:ie},[t.name])])])}))]):null]}}):a(d,{tips:"暂无声部数据",btnStatus:!1},null)]),this.subjectList.length>0&&a(E,{offsetBottom:0,position:"bottom"},{default:function(){return[a("div",{class:["btnGroup",ae]},[a(f,{round:!0,block:!0,onClick:function(){e.checkBox=[],e.radio="",e.onChoice()}},{default:function(){return[u("重置")]}}),a(f,{round:!0,block:!0,type:"primary",onClick:function(){return e.onChoice("Checkbox"===e.selectType?e.checkBox:e.radio)}},{default:function(){return[u("确定")]}})])]}})])}}),ce=n({name:"SelectStudents",props:{subjectList:{type:Array,default:[]},onSetStudents:{type:Function,default:function(e){}}},setup:function(e,n){var r=n.expose,c=_(!1),s=_("全部声部"),d=m({courseId:void 0,subjectId:void 0,userName:void 0}),v=_([]),y=function(){var e=o(regeneratorRuntime.mark((function e(){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,g.post("/api-teacher/courseSchedule/selectStudent",{data:t({},d)});case 3:n=e.sent,r=n.code,i=n.data,200===r&&(i.rows.forEach((function(e){return e.checked=!1})),v.value=i.rows),e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}();p((function(){y()}));var k=function(e){d.userName=e||"",y()};return r({onDelete:function(e){v.value.forEach((function(t){t.userId===e.userId&&(t.checked=!1)}))}}),function(){return a("div",{class:X.container},[a(E,{offsetTop:0},{default:function(){return[a(V,{title:"选择学员"},null),a(H,{placeholder:"请输入学员名称",onSearch:k},{left:function(){return a("div",{class:X.label,onClick:function(){c.value=!0}},[s.value,a(l,{classPrefix:"iconfont",name:"down",size:12,color:"#333"},null)])}})]}}),v.value.map((function(e){return a("div",{onClick:function(){!function(e){var t=v.value.filter((function(e){return e.checked}));7!==t.length||e.checked?e.checked=!e.checked:i("最多选择7个学员")}(e)}},[a(Y,{item:e},{default:function(){return[a("div",{class:X.check},[a(A,{modelValue:e.checked,name:e.userId},null)])]}})])})),a("div",{class:X.btnGroup},[a(f,{block:!0,round:!0,class:X.confirmBtn,type:"primary",onClick:function(){var t=h(v.value.filter((function(e){return e.checked})));e.onSetStudents&&e.onSetStudents(t)}},{default:function(){return[u("确认")]}})]),a(b,{show:c.value,"onUpdate:show":function(e){return c.value=e},position:"bottom",round:!0,closeable:!0,"safe-area-inset-bottom":!0},{default:function(){return[a(ue,{class:X.voicePopupContent,single:!0,selectType:"Radio",subjectList:e.subjectList,onChoice:function(t){var n=e.subjectList.filter((function(e){return e.id===t}))[0]||{name:"全部声部"};d.subjectId=n.id,s.value=n.name,c.value=!1,y()}},null)]}})])}}}),se={"is-link":!0,readonly:!0,"arrow-direction":"down"},le=(e("C",n({name:"ClassArrangement",props:{onSubmit:{type:Function,default:function(){}}},setup:function(e){var t=_(!1);Q=m({courseName:"",classNum:1,singleClassTime:"",freeCourseMinutes:"",studentIds:[],subjectId:0,subjectName:"",week:"",isSkipHolidays:!0,startTime:"",endTime:""});var n=_(""),r=_([]),i=function(e){r.value=e,Q.studentIds=r.value,t.value=!1},s=_(!1),l=_([]),d=function(){var e=o(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,g.post("/api-teacher/teacher/querySubject");case 3:t=e.sent,l.value=t.data||[],e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}();p((function(){d()}));var h=_([]),k=_(!1),x=function(){var e=o(regeneratorRuntime.mark((function e(){var t,n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,g.get("/api-teacher/sysConfig/queryByParamNameList",{params:{paramNames:"course_start_setting,course_end_setting,piano_time_setting"}});case 3:if(200===(t=e.sent).code)for(n=0,r=t.data.length;nt.startTime?1:e.startTime