System.register(["./api-legacy-37b6770f-1734950731618.js","./index.module-legacy-7948c6f2-1734950731618.js","./teacherIcon-legacy-3eeb62c3-1734950731618.js","./index-legacy-1faf213e-1734950731618.js","./contants-legacy-71300fc2-1734950731618.js","./index-legacy-4630884d-1734950731618.js","./Scrollbar-legacy-0b9059a1-1734950731618.js"],(function(e,t){"use strict";var a,n,s,l,i,u,r,c,d,o,m,v,p,g,T,f,y,w,D,b,x,C,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=>{d=e.e},e=>{o=e.d,m=e.r,v=e.q,p=e.f,g=e.E,T=e.w,f=e.k,y=e.Q,w=e.j,D=e.V,b=e.x,x=e.l,C=e.m},e=>{L=e.N}],execute:function(){e("T",o({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:o}){const I=m(!1),h=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?[`${d[t.evaluateDifficult]}`,t.practiceChapterBegin||t.practiceChapterEnd?`${t.practiceChapterBegin}-${t.practiceChapterEnd}小节`:"全部小节",`${t.trainingTimes}分达标`]:[`${t.practiceChapterBegin}-${t.practiceChapterEnd}小节`,`速度${t.practiceSpeed}`,`${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||[]}}));h.value={...t.data,studentLessonTrainingDetails:n}}catch(t){console.log(t)}I.value=!1};return o({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:h.value.studentAvatar?h.value.studentAvatar:s,previewDisabled:!0},null)])]),p("div",{class:n.workafterInfo},[p("h4",null,[h.value.studentName," ",p("div",{class:n.workafterInfoDot},[f("学生")])]),p("p",null,[f("提交时间:"),h.value.submitTime?y(new Date(h.value.submitTime)).format("YYYY-MM-DD"):"--"])]),"UNSUBMITTED"==h.value.trainingStatus?p(T,{previewDisabled:!0,class:n.workStatus,src:l},null):null,"SUBMITTED"==h.value.trainingStatus?p(T,{previewDisabled:!0,class:n.workStatus,src:i},null):null,"TARGET"==h.value.trainingStatus?p(T,{previewDisabled:!0,class:n.workStatus,src:u},null):null]),h.value.expireFlag?p(w,{onClick:()=>S.value=!0,class:n.commentBtnGroup},{default:()=>[p("div",{class:n.text},[p("i",null,null),h.value.comment?"修改点评":"点评作业"])]}):p(D,{showArrow:!1},{trigger:()=>p(w,{disabled:!0,onClick:()=>S.value=!0,class:n.commentBtnGroup},{default:()=>[p("div",{class:n.text},[p("i",null,null),h.value.comment?"修改点评":"点评作业"])]}),default:"作业截止后可点评作业"})]),!!h.value.fileExpireDay&&p("div",{class:n.expireDateTip},[p("i",{class:n.expireDateIcon},null),p("span",null,[f("作业截止"),h.value.fileExpireDay||0,f("天后,学生上传的文件将过期,请及时查看")])]),p(L,{style:"max-height:400px;",trigger:"none"},{default:()=>[p("div",{class:n.workList},[h.value.studentLessonTrainingDetails.map((e=>p(r,{item:{...e,studentName:h.value.studentName}},null)))]),h.value.comment&&p("div",{class:n.commentSection},[p("h3",null,[p("i",{class:n.iconComment},null),p("i",{class:n.myText},null)]),p("div",{class:n.commentContent},[h.value.comment])])]}),p(b,{class:[n.btnGroups,n.nextWrap],justify:"space-between"},{default:()=>[p("div",{class:n.allTotal},[e.current,f("/"),e.total,f("名学生")]),p("div",null,[p(b,null,{default:()=>[p(w,{disabled:e.current<=1,round:!0,type:"primary",onClick:()=>{t("pre")}},{default:()=>[f("上一名")]}),p(w,{disabled:e.current>=e.total,round:!0,type:"primary",onClick:()=>{t("next")}},{default:()=>[f("下一名")]})]})])]})]}),p(x,{maskClosable:C,show:S.value,"onUpdate:show":e=>S.value=e},{default:()=>[p(c,{comment:h.value.comment,workInfo:{isLook:!!h.value.comment,studentAvatar:h.value.studentAvatar,studentName:h.value.studentName,submitTime:h.value.submitTime,studentLessonTrainingId:h.value.studentLessonTrainingId},onClose:()=>S.value=!1,onConfrim:()=>{k(e.activeRow.studentLessonTrainingId),S.value=!1}},null)]})])}}))}}}));