!function(){var e=document.createElement("style");e.innerHTML="._cellGroup_ju50i_1{margin:.32rem .34667rem}._cellGroup_ju50i_1 .van-cell{padding:.32rem .4rem}._cellGroup_ju50i_1 ._classType_ju50i_7{display:flex;align-items:center;font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem}._cellGroup_ju50i_1 ._classType_ju50i_7 ._classNum_ju50i_15{margin-left:.16rem}._cellGroup_ju50i_1 ._classTime_ju50i_18{font-size:.37333rem;font-weight:500;color:#333;line-height:.53333rem}._cellGroup_ju50i_1 ._orchestra_ju50i_24{font-size:.37333rem;color:#333}._cellGroup_ju50i_1 ._orchestra_ju50i_24 ._name_ju50i_28{color:#777;line-height:.53333rem;padding-bottom:.08rem;font-weight:400}._cellGroup_ju50i_1 ._orchestra_ju50i_24 span{padding:0 .13333rem;font-size:.53333rem;color:#f67146;font-family:DINA}\n",document.head.appendChild(e),System.register(["./index-legacy.eb062188.js","./index-legacy.e0860c0a.js","./index-legacy.ad813f4d.js","./index-legacy.4e015ad0.js","./create-legacy.9418bfea.js","./index-legacy.148f784c.js","./index-legacy.918b8c74.js","./index-legacy.11f1ea5f.js"],(function(e){"use strict";var t,a,s,i,n,l,o,c,r,u,d,m,_,p,g,f,h,y,T,L;return{setters:[function(e){t=e.d,a=e.ag,s=e.r,i=e.$,n=e.c,l=e.aj,o=e.q,c=e.ai,r=e.ak,u=e.B,d=e.m,m=e.g},function(e){_=e.O},function(e){p=e.O},function(e){g=e.f},function(e){f=e.f,h=e.w},function(e){y=e.C},function(e){T=e.C},function(e){L=e.T}],execute:function(){var j={cellGroup:"_cellGroup_ju50i_1",classType:"_classType_ju50i_7",classNum:"_classNum_ju50i_15",classTime:"_classTime_ju50i_18",orchestra:"_orchestra_ju50i_24",name:"_name_ju50i_28"};e("default",t({name:"train-content",setup(){const e=a(),t=s({dialogStatus:!1,dialogMessage:"",contentList:[],SINGLE_DELIVERY:{SINGLE:120,MUSIC_THEORY:120},MULTIPLE_DELIVERY:{SINGLE:45,MUSIC_THEORY:60,INSTRUMENTAL_ENSEMBLE:60},MULTIPLE_DELIVERY_SCHOOL:{SINGLE:60,MUSIC_THEORY:60,INSTRUMENTAL_ENSEMBLE:60},disabled:!1}),E=async()=>{try{if(t.contentList.length<=0)return t.dialogStatus=!0,void(t.dialogMessage="暂无可排课班级");const a=t.contentList,s=[];console.log(f,"forms"),a.forEach((e=>{s.push({orchestraId:e.orchestraId,classGroupIdList:e.classGroupIdList,courseNum:f.times,startTime:c(f.trainStartTime).format("HH:mm:ss"),endTime:c(f.trainStartTime).add(120,"minute").format("HH:mm:ss"),singleCourseTime:t[e.deliveryType][e.classType]})}));const i={week:f.week,schoolId:m.user.data.school.id,skipHoliday:!!f.skipHoliday,type:"STANDARD",startDate:c(f.trainStartDate).format("YYYY-MM-DD"),trainingPlanClassList:s},n=await d.post("/api-school/orchestra/trainingPlanList",{hideLoading:!1,data:{...i}});if(999===n.code)return t.dialogStatus=!0,void(t.dialogMessage=n.message);f.selectOrchestraId=null,f.selectClassGroupId=null,console.log(n.data,"date"),e.push({path:"/course-preview",query:{cacheId:n.data}})}catch{}};return i((()=>{(async()=>{try{const{data:e}=await d.get("/api-school/orchestra/trainingContent/"+m.user.data.school.id);t.contentList=e||[]}catch{}})()})),()=>n("div",{class:t.contentList.length<=0&&"emptyRootContainer"},[n(l,null,null),t.contentList.map((e=>n(y,{inset:!0,class:j.cellGroup},{default:()=>[n(T,{center:!0},{title:()=>n("div",{class:j.classType},[g[e.classType],n(L,{round:!0,type:"primary",size:"medium",class:j.classNum},{default:()=>[f.times,o("课时")]})]),value:()=>n("span",{class:j.classTime},[o("每"),h(f.week),o(" "),c(f.trainStartTime||"").format("HH:mm"),o("-"),c(f.trainStartTime||"").add(t[e.deliveryType][e.classType],"minute").format("HH:mm")])}),n(T,{center:!0},{title:()=>n("div",{class:j.orchestra},[n("p",{class:j.name},[e.orchestraName]),n("p",{class:j.class},[o("共"),n("span",null,[e.classGroupIdList&&e.classGroupIdList.length]),o("个班级")])])})]}))),t.contentList&&t.contentList.length<=0&&n(r,{btnStatus:!1,tips:"暂无训练内容"},null),n(p,{position:"bottom"},{default:()=>[n("div",{class:"btnGroup"},[n(u,{round:!0,type:"primary",block:!0,onClick:E},{default:()=>[o("下一步")]})])]}),n(_,{title:"提示",show:t.dialogStatus,"onUpdate:show":e=>t.dialogStatus=e,message:t.dialogMessage,confirmButtonText:"确定",onConfirm:()=>{e.back()}},null)])}}))}}}))}();