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