System.register(["./api-legacy-30882773-1776006071491.js","./index.module-legacy-ad2bc5bb-1776006071491.js","./teacherIcon-legacy-3eeb62c3-1776006071491.js","./index-legacy-f44e1c63-1776006071491.js","./contants-legacy-da4fb23a-1776006071491.js","./index-legacy-5616ff2c-1776006071491.js","./Scrollbar-legacy-30bbe10e-1776006071491.js"],(function(e,t){"use strict";var a,n,s,l,i,u,r,c,o,d,m,v,p,g,T,f,y,D,w,x,b,L;return{setters:[e=>{a=e.o},e=>{n=e.s},e=>{s=e.d},e=>{l=e.n,i=e.u,u=e.q,r=e.W,c=e.C},e=>{o=e.e},e=>{d=e.d,m=e.r,v=e.q,p=e.f,g=e.a9,T=e.w,f=e.k,y=e.ak,D=e.j,w=e.x,x=e.l,b=e.m},e=>{L=e.N}],execute:function(){e("T",d({props:{activeRow:{type:Object,default:()=>({studentLessonTrainingId:""})},total:{type:Number,default:0},current:{type:Number,default:0}},name:"TrainingDetails",emits:["close","next","pre"],setup(e,{emit:t,expose:d}){const I=m(!1),C=m({studentName:"",submitTime:"",trainingStatus:"",studentAvatar:"",studentLessonTrainingDetails:[]}),S=m(!1),k=async e=>{I.value=!0;try{const t=await a({studentLessonTrainingId:e}),n=t.data.studentLessonTrainingDetails.map((e=>{const t=((e,t)=>{let a=[];return a="EVALUATION"===e?[`${o[t.evaluateDifficult]}`,`${t.practiceChapterBegin||0}-${t.practiceChapterEnd||0}小节`,`速度${t.evaluateSpeed||0}`,`${t.trainingTimes}分达标`]:[`${t.practiceChapterBegin}-${t.practiceChapterEnd}小节`,`速度${t.practiceSpeed||0}`,`${t.trainingTimes}分钟`],a})(e.trainingType,JSON.parse(e.trainingContent));return{...e,coverImg:e.titleImg,fileList:e.fileJsonList&&e.fileJsonList[0]||{},allTimes:JSON.parse(e.trainingContent).trainingTimes,typeList:t||[]}}));C.value={...t.data,studentLessonTrainingDetails:n}}catch(t){console.log(t)}I.value=!1};return d({getTrainingDetail:k}),v((()=>{k(e.activeRow.studentLessonTrainingId)})),()=>p("div",{class:[n.trainingDetails]},[p(g,{show:I.value},{default:()=>[p("div",{class:n.studentList},[p("div",{class:n.studentHeaderWrap},[p("div",{class:n.studentHeader},[p("div",{class:n.studentHeaderBorder},[p(T,{class:n.studentHeaderImg,src:C.value.studentAvatar?C.value.studentAvatar:s,previewDisabled:!0},null)])]),p("div",{class:n.workafterInfo},[p("h4",null,[C.value.studentName," ",p("div",{class:n.workafterInfoDot},[f("学生")])]),p("p",null,[f("提交时间："),C.value.submitTime?y(new Date(C.value.submitTime)).format("YYYY-MM-DD"):"--"])])]),"UNSUBMITTED"==C.value.trainingStatus?p(T,{previewDisabled:!0,class:n.workStatus,src:l},null):null,"SUBMITTED"==C.value.trainingStatus?p(T,{previewDisabled:!0,class:n.workStatus,src:i},null):null,"TARGET"==C.value.trainingStatus?p(T,{previewDisabled:!0,class:n.workStatus,src:u},null):null]),!!C.value.fileExpireDay&&p("div",{class:n.expireDateTip},[p("i",{class:n.expireDateIcon},null),p("span",null,[f("作业截止"),C.value.fileExpireDay||0,f("天后，学生上传的文件将过期，请及时查看")])]),p(L,{style:"max-height:400px;",trigger:"none"},{default:()=>[p("div",{class:n.workList},[C.value.studentLessonTrainingDetails.map((e=>p(r,{item:{...e,studentName:C.value.studentName}},null)))])]}),C.value.expireFlag?p("div",{class:n.commentSection},[p("div",{class:n.commentTitle},[p("h3",null,[p("i",{class:n.iconComment},null),p("i",{class:n.myText},null)]),p(D,{text:!0,onClick:()=>S.value=!0,class:n.commentBtnGroup},{default:()=>[p("div",{class:n.text},[p("i",null,null),C.value.comment?"修改点评":"点评作业"])]})]),C.value.comment?p("div",{class:n.commentContent},[C.value.comment]):p("div",{class:[n.commentContent,n.commentTip]},[f("您目前还没有点评该作业喔，快来写评语吧～")])]):null,p(w,{class:[n.btnGroups,n.nextWrap],justify:"space-between"},{default:()=>[p("div",{class:n.allTotal},[e.current,f("/"),e.total,f("名学生")]),p("div",null,[p(w,null,{default:()=>[p(D,{disabled:e.current<=1,round:!0,type:"primary",onClick:()=>{t("pre")}},{default:()=>[f("上一名")]}),p(D,{disabled:e.current>=e.total,round:!0,type:"primary",onClick:()=>{t("next")}},{default:()=>[f("下一名")]})]})])]})]}),p(x,{maskClosable:b,show:S.value,"onUpdate:show":e=>S.value=e},{default:()=>[p(c,{comment:C.value.comment,workInfo:{isLook:!!C.value.comment,studentAvatar:C.value.studentAvatar,studentName:C.value.studentName,submitTime:C.value.submitTime,studentLessonTrainingId:C.value.studentLessonTrainingId},onClose:()=>S.value=!1,onConfrim:()=>{k(e.activeRow.studentLessonTrainingId),S.value=!1}},null)]})])}}))}}}));
