System.register(["./api-legacy-c8bc7f3f-1715787996172.js","./index.module-legacy-6953cfaa-1715787996172.js","./teacherIcon-legacy-3eeb62c3-1715787996172.js","./index-legacy-8f65b451-1715787996172.js","./index-legacy-18e439aa-1715787996172.js","./index-legacy-8a6633e6-1715787996172.js","./Scrollbar-legacy-cdef8a68-1715787996172.js"],(function(e,t){"use strict";var a,n,s,l,i,u,r,c,d,o,v,m,p,g,T,f,y,w,D,x,b,C;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,v=e.r,m=e.p,p=e.f,g=e.C,T=e.v,f=e.k,y=e.M,w=e.j,D=e.T,x=e.w,b=e.l},e=>{C=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 L=v(!1),I=v({studentName:"",submitTime:"",trainingStatus:"",studentAvatar:"",studentLessonTrainingDetails:[]}),h=v(!1),S=async e=>{L.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||[]}}));I.value={...t.data,studentLessonTrainingDetails:n}}catch(t){console.log(t)}L.value=!1};return o({getTrainingDetail:S}),m((()=>{S(e.activeRow.studentLessonTrainingId)})),()=>p("div",{class:[n.trainingDetails]},[p(g,{show:L.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:I.value.studentAvatar?I.value.studentAvatar:s,previewDisabled:!0},null)])]),p("div",{class:n.workafterInfo},[p("h4",null,[I.value.studentName," ",p("div",{class:n.workafterInfoDot},[f("学生")])]),p("p",null,[f("提交时间："),I.value.submitTime?y(new Date(I.value.submitTime)).format("YYYY-MM-DD"):"--"])]),"UNSUBMITTED"==I.value.trainingStatus?p(T,{previewDisabled:!0,class:n.workStatus,src:l},null):null,"SUBMITTED"==I.value.trainingStatus?p(T,{previewDisabled:!0,class:n.workStatus,src:i},null):null,"TARGET"==I.value.trainingStatus?p(T,{previewDisabled:!0,class:n.workStatus,src:u},null):null]),I.value.expireFlag?p(w,{onClick:()=>h.value=!0,class:n.commentBtnGroup},{default:()=>[p("div",{class:n.text},[p("i",null,null),I.value.comment?"修改点评":"点评作业"])]}):p(D,{showArrow:!1},{trigger:()=>p(w,{disabled:!0,onClick:()=>h.value=!0,class:n.commentBtnGroup},{default:()=>[p("div",{class:n.text},[p("i",null,null),I.value.comment?"修改点评":"点评作业"])]}),default:"作业截止后可点评作业"})]),!!I.value.fileExpireDay&&p("div",{class:n.expireDateTip},[p("i",{class:n.expireDateIcon},null),p("span",null,[f("作业截止"),I.value.fileExpireDay||0,f("天后，学生上传的文件将过期，请及时查看")])]),p(C,{style:"max-height:400px;",trigger:"none"},{default:()=>[p("div",{class:n.workList},[I.value.studentLessonTrainingDetails.map((e=>p(r,{item:e},null)))]),I.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},[I.value.comment])])]}),p(x,{class:[n.btnGroups,n.nextWrap],justify:"space-between"},{default:()=>[p("div",{class:n.allTotal},[e.current,f("/"),e.total,f("名学生")]),p("div",null,[p(x,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(b,{show:h.value,"onUpdate:show":e=>h.value=e},{default:()=>[p(c,{comment:I.value.comment,workInfo:{isLook:!!I.value.comment,studentAvatar:I.value.studentAvatar,studentName:I.value.studentName,submitTime:I.value.submitTime,studentLessonTrainingId:I.value.studentLessonTrainingId},onClose:()=>h.value=!1,onConfrim:()=>{S(e.activeRow.studentLessonTrainingId),h.value=!1}},null)]})])}}))}}}));
