You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Classrooms__Lists__Commo...

1 line
64 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[12303],{20360:function(e,t,n){n.d(t,{Z:function(){return l}});var a=n(4751),r=n(59301),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},i=n(68475),o=function(e,t){return r.createElement(i.Z,(0,a.Z)({},e,{ref:t,icon:s}))};var l=r.forwardRef(o)},90921:function(e,t,n){var a=n(82242),r=n.n(a),s=(n(59301),n(93314)),i=n(3113),o=n(37712);t.Z=function(e){var t=e.img,n=e.buttonProps,a=void 0===n?{}:n,l=e.styles,c=void 0===l?{}:l,d=e.customText,u=e.ButtonText,p=e.ButtonClick,m=e.Buttonclass,h=e.ButtonTwo,f=e.imgStyles,x=e.loading,v=void 0!==x&&x;return(0,o.jsxs)("section",{className:"tc animated fadeIn",style:r()(r()({},{color:"#999",margin:"100px auto",visibility:v?"hidden":"visible"}),c),children:[(0,o.jsx)("img",{src:t||s,style:r()(r()({},f),{},{pointerEvents:"none",userSelect:"none"})}),(0,o.jsx)("p",{className:"mt20 font14",children:d||"暂时还没有相关数据哦!"}),u&&(0,o.jsx)(i.ZP,r()(r()({className:m,onClick:p},a),{},{children:u})),h&&h]})}},59472:function(e,t,n){n.d(t,{Z:function(){return k}});var a=n(82242),r=n.n(a),s=n(7557),i=n.n(s),o=n(41498),l=n.n(o),c=n(79800),d=n.n(c),u=n(59301),p={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},m=n(3113),h=n(74516),f=n(17968),x=n(6848),v=n(26795),g=n(44239),_=n(90921),y=n(17985),j=n(13405),w=n(37712),k=function(e){var t,n,a,s,o,c,k=e.editOffice,b=void 0===k?"view":k,Z=e.data,S=(e.theme,e.type),N=e.filename,I=e.monacoEditor,P=e.className,C=e.style,E=e.close,T=e.onClose,$=e.hasMask,O=e.disabledDownload,A=e.onImgDimensions,H=e.showNodata,R=e.recordInfo,L=(0,u.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),W=d()(L,2),B=(W[0],W[1],(0,u.useState)("")),F=d()(B,2),z=(F[0],F[1]),M=(0,u.useState)(),J=d()(M,2),V=J[0],D=J[1],G="build"===window.ENV?"/react/build":"",Y=location.host.startsWith("localhost")?y.Z.PROXY_SERVER:y.Z.API_SERVER,U=(0,u.useRef)();null!==(t=Z)&&void 0!==t&&t.startsWith("/api")&&"txt"!==S&&(Z=y.Z.API_SERVER+Z);N&&(I.filename=N),(0,u.useEffect)((function(){var e,t=null===(e=document.cookie)||void 0===e||null===(e=e.replace(/\s/g,""))||void 0===e?void 0:e.split(";");null==t||t.map((function(e){var t=e.split("=");"_educoder_session"===t[0]&&z(t[1])}))}),[]),(0,u.useEffect)((function(){var e;"office"===S&&(Z.indexOf("bigfilescdn.")>-1||Z.indexOf("bigfiles1")>-1?D({url:Z,fileType:(e=Z,e.substring(e.lastIndexOf("/")+1).split(".").pop()),model:Z.indexOf("model=edit")?"edit":"view"}):X())}),[S,Z]);var X=function(){var e=l()(i()().mark((function e(){var t,n,a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("data:",Z),t=Z,Z.startsWith("http")||(t=location.origin+t),n=new URL(t).pathname.split("/").pop(),e.next=6,(0,g.gJ)({attachment_id:n});case 6:(a=e.sent).url=Y+a.url,D(a);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),q=function(){Z.startsWith("http")||Z.startsWith("blob:")?Q():(0,v.Sv)(N||"educoder",Z,N)},Q=function(){R&&(0,j.fc)({id:null==R?void 0:R.id,watch_type:1,course_id:null==R?void 0:R.course_id}),(0,v.Nd)(N||"educoder",decodeURIComponent(Z))};return(0,w.jsxs)("div",{style:r()({},C||{}),className:"".concat($&&p.bgBlack," ").concat(S?p.wrp:"hide"),children:[E&&(0,w.jsxs)("div",{className:p.close,ref:U,children:[!!A&&(0,w.jsx)(x.Z,{title:"点击对图片进行批注",getPopupContainer:function(){return U.current},children:(0,w.jsx)("span",{onClick:function(){T(),A()},children:(0,w.jsx)("i",{className:"icon-yulanpizhu"})})}),!O&&(0,w.jsx)(x.Z,{title:"点击下载此文件",getPopupContainer:function(){return U.current},children:(0,w.jsx)("span",{onClick:Q,children:(0,w.jsx)("i",{className:"icon-quxiaozhiding"})})}),(0,w.jsx)(x.Z,{title:"关闭",getPopupContainer:function(){return U.current},children:(0,w.jsx)("span",{className:"",onClick:T,children:(0,w.jsx)("i",{className:"icon-guanbi1"})})})]}),(0,w.jsx)("div",{className:"".concat(p[P]," ").concat(P," ").concat(p.monaco," ").concat("txt"===S?"show":"hide"),children:"txt"===S&&(0,w.jsx)(w.Fragment,{children:(0,w.jsx)(f.ZP,r()({},I))})}),"audio"===S&&(0,w.jsx)("audio",{src:"".concat((null===(n=Z)||void 0===n?void 0:n.indexOf("http://"))>-1||(null===(a=Z)||void 0===a?void 0:a.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(Z),autoPlay:!0}),"video"===S&&(0,w.jsx)(w.Fragment,{children:(null===(s=Z)||void 0===s?void 0:s.indexOf("http"))>-1?(0,w.jsx)("video",{controls:!0,src:"".concat(Z),autoPlay:!0}):(0,w.jsx)("video",{controls:!0,src:"data:video/mp4;base64,".concat(Z),autoPlay:!0})}),"office"===S&&V&&(0,w.jsx)("iframe",{src:"".concat(G,"/office.html?key=").concat(V.key,"&url=").concat(btoa(V.url),"&callbackUrl=").concat(Y+V.callbackUrl,"&fileType=").concat(V.fileType,"&title=").concat(V.title,"&model=").concat(b,"&officeServer=").concat(y.Z.ONLYOFFICE,"&disabledDownload=").concat(!!O)}),"html"===S&&(0,w.jsx)("iframe",{src:Z+"&disposition=inline"}),"pdf"===S&&(0,w.jsx)("iframe",{src:"".concat(G,"/js/pdfview/index.html?url=").concat(encodeURIComponent(Z),"&disabledDownload=").concat(!!O)}),"image"===S&&(0,w.jsx)("img",{src:"".concat((null===(o=Z)||void 0===o?void 0:o.indexOf("http://"))>-1||(null===(c=Z)||void 0===c?void 0:c.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(Z)}),("other"===S||"download"===S)&&(0,w.jsx)(w.Fragment,{children:H?(0,w.jsx)(_.Z,{customText:"当前文件不支持预览,可点击下载查看",ButtonTwo:(0,w.jsx)(m.ZP,{icon:(0,w.jsx)("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:q,children:"下载"})}):(0,w.jsxs)(m.ZP,{type:"primary",size:"middle",onClick:q,children:[(0,w.jsx)(h.Z,{}),"点击下载"]})})]})}},90277:function(e,t,n){n.d(t,{z:function(){return w}});var a=n(82242),r=n.n(a),s=n(37205),i=n.n(s),o=n(91232),l=n.n(o),c=n(79800),d=n.n(c),u=n(59301),p=(n(92436),n(44728)),m=(n(64018),n(77373)),h=n(17985),f=n(26795),x=n(15342),v=n(1012),g=n(59472),_=n(37712),y="@▁@",j=/<pre[^>]*>/g;var w=function(e,t){e=e||"";var n=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return t?e.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(n,(function(e,t,n,a,r,s,i){var o=t||a||s,l=n||r||i||"?";return h.Z.API_SERVER+"/api/attachments/"+o+l+"&t="+(0,f.Jn)(o,Date.now())+(e.indexOf(")")>-1?")":"&")})).replaceAll('src="(','src="').replaceAll("src='(",'src="'):e=e.replace(n,(function(e,t,n,a,r,s,i){var o=t||a||s,l=n||r||i||"?";return h.Z.API_SERVER+"/api/attachments/"+o+l+"&t="+(0,f.Jn)(o,Date.now())+(e.indexOf(")")>-1?")":"&")})).replace(/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,(function(e,t,n,a,r){var s=t||a,i=n||r||"";return'"'+h.Z.API_SERVER+"/api/attachments/"+s+i+s+i+"&t="+(0,f.Jn)(s,Date.now())})).replace(/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,(function(e,t,n,a,r){var s=t||a,i=n||r||"";return"("+h.Z.API_SERVER+"/files/uploads/"+s+i+s+i+"&t="+(0,f.Jn)(s,Date.now())})).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,"\n")};t.Z=function(e){var t=e.value,n=void 0===t?"":t,a=e.className,s=e.showTextOnly,o=e.showLines,c=e.style,f=void 0===c?{}:c,w=e.stylesPrev,k=void 0===w?{}:w,b=e.highlightKeywords,Z=e.showProgramFill,S=(e.isProgramFill,e.disabledFill),N=void 0!==S&&S,I=e.programFillValue,P=e.onFillChange,C=void 0===P?function(e){}:P,E=e.onFillBlur,T=void 0===E?function(){}:E,$=String(n),O=(0,u.useState)(""),A=d()(O,2),H=A[0],R=A[1],L=(0,u.useState)("office"),W=d()(L,2),B=W[0],F=W[1],z=(0,u.useState)([]),M=d()(z,2),J=M[0],V=M[1],D=(0,u.useRef)("a"+(0,v.Z)()),G={};var Y=function(e){return e.replace(/<style.*?>([\s\S]+?)<\/style>/gim,(function(e,t){var n=t.replace(/(\n|\r)/g,"").split("}"),a=[];return n.map((function(e){""!=e&&a.push(".".concat(D.current," ").concat(e))})),"<style>".concat(a.join("}"),"</style>")}))},U=(0,u.useMemo)((function(){try{$=$.replace(/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,"("+h.Z.API_SERVER+"/api/attachments/").replace(/\"\/api\/attachments\/|\"\/attachments\/download\//g,'"'+h.Z.API_SERVER+"/api/attachments/").replace(/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,'"'+h.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,"\n")}catch(e){}if(Z){var e=-1;return $=$.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,(function(t,n,a){var r;return function(e,t,n){var a=document.createElement(e===y?"input":"textarea");a.style.width="100%",a.style.height=e===y?"40px":"151px",a.rows=5,a.spellcheck=!1,a.name="edu-program-fill",a.placeholder="请输入",a.dataset.id=t;var r=Object.keys(G).length;return G[r]=a,'<span class="edu-program-fill-wrap '.concat(e===y?"":"show",'" style="width:').concat(e===y?"400px":"100%",'" title=').concat(n||"","><span>").concat(a.outerHTML,'<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>')}(t,++e,null==I||null===(r=I[e])||void 0===r?void 0:r.value)})),'<pre style="background:#fff;padding:4px">'.concat(Y($||""),"</pre>")}var t=Y($);t=(0,p.ZP)(t);var n=(0,p.ez)();$.match(/\[TOC\]/)&&(t=t.replace("<p>[TOC]</p>",(0,p.Qv)()),(0,p.Iy)()),t=t.replace(/(__special_katext_id_\d+__)/g,(function(e,t){var a=n[t],r=a.type,s=a.expression;return(0,x.renderToString)(function(e){var t=document.createElement("div");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue}(s)||"",{displayMode:"block"===r,throwOnError:!1,output:"html"})})),t=t.replace(/▁/g,"▁▁▁▁▁"),(0,p.AL)();var a=document.createElement("div");return a.innerHTML=t,s?a.innerText:b?(Q(a,b.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),a.innerHTML):(setTimeout((function(){return te()}),500),a.innerHTML)}),[$,b]);(0,u.useEffect)((function(){K.current&&K.current.querySelectorAll(["input","textarea"]).forEach((function(e){e.oninput=X,e.onblur=q}))}),[J]),(0,u.useEffect)((function(){if(null!=I&&I.length)try{var e,t=K.current.querySelectorAll(".edu-program-fill-score"),n=K.current.querySelectorAll('[name="edu-program-fill"]'),a=l()(n.entries());try{for(a.s();!(e=a.n()).done;){var r,s,i,o=d()(e.value,2),c=o[0],u=o[1];u.value=(null==I||null===(r=I[c])||void 0===r?void 0:r.value)||"","warning"===(null==I||null===(s=I[c])||void 0===s?void 0:s.type)?u.className="program-fill-warning":"success"===(null==I||null===(i=I[c])||void 0===i?void 0:i.type)?u.className="program-fill-success":u.className=""}}catch(e){a.e(e)}finally{a.f()}var p,m=l()(t.entries());try{for(m.s();!(p=m.n()).done;){var h,f,x=d()(p.value,2),v=x[0];x[1].innerHTML=null!=I&&null!==(h=I[v])&&void 0!==h&&h.score?"".concat(null==I||null===(f=I[v])||void 0===f?void 0:f.score,"分"):""}}catch(e){m.e(e)}finally{m.f()}V(I)}catch(e){console.log(e,"error")}}),[I]);var X=function(e){J[e.target.dataset.id]=J[e.target.dataset.id]||{},J[e.target.dataset.id].value=e.target.value,V(i()(J)),C(J,e.target.dataset.id)},q=function(e){J[e.target.dataset.id]=J[e.target.dataset.id]||{},J[e.target.dataset.id].value=e.target.value,V(i()(J)),T(J,e.target.dataset.id)};function Q(e,t){return e.childNodes.forEach((function(e){if(e.childNodes.length>0)Q(e,t);else if("IMG"!==e.nodeName)if(e.innerHTML){var n;e.innerHTML=null===(n=e.innerHTML)||void 0===n?void 0:n.replace(new RegExp(t,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>')}else{var a=document.createElement("span");a.innerHTML=e.textContent.replace(new RegExp(t,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),e.replaceWith(a)}}))}var K=(0,u.useRef)();function ee(e){var t=e.target;if("A"===t.tagName.toUpperCase()){var n=t.getAttribute("href");if(n.indexOf("office")>-1)e.preventDefault(),R(n),F("office");else if(n.indexOf("application/pdf")>-1)e.preventDefault(),R(n),F("pdf");else if(n.indexOf("text/html")>-1)e.preventDefault(),R(n),F("html");else if(n.startsWith("#")){e.preventDefault();var a=document.getElementById(n.replace("#",""));a&&a.scrollIntoView(!0)}}}p.jb.WebkitLineClamp=o,o&&(f=r()(r()({},f),p.jb));var te=function(){var e,t=null===(e=K.current)||void 0===e?void 0:e.querySelectorAll("video");null==t||t.forEach((function(e){if(e.oncontextmenu=function(){return!1},e.src.indexOf(".m3u8")>-1)if(e.canPlayType("application/vnd.apple.mpegurl"));else if(m.ZP.isSupported()){var t=new m.ZP;t.loadSource(e.src),t.attachMedia(e)}}))};return(0,u.useEffect)((function(){if(K.current&&U&&U.match(j)&&window.PR.prettyPrint(),K.current)return K.current.addEventListener("click",ee),function(){var e;null===(e=K.current)||void 0===e||e.removeEventListener("click",ee),(0,p.AL)(),(0,p.Iy)()}}),[U,K.current,ee]),(0,_.jsxs)(_.Fragment,{children:[s&&(0,_.jsx)("div",{ref:K,children:U}),!s&&(0,_.jsx)("div",{ref:K,style:r()({},f),className:"".concat(a||""," ").concat(N?"disabled-fill":""," markdown-body ").concat(D.current),dangerouslySetInnerHTML:{__html:U}}),(0,_.jsx)(g.Z,{close:!0,data:H,type:null!=H&&H.length?B:"",style:r()({},k),onClose:function(){return R("")}})]})}},9483:function(e,t,n){n.r(t),n.d(t,{default:function(){return le}});var a=n(7557),r=n.n(a),s=n(41498),i=n.n(s),o=n(82242),l=n.n(o),c=n(79800),d=n.n(c),u=n(39647),p=n.n(u),m=n(59301),h=n(99232),f=n.n(h),x=n(86129),v=n.n(x),g=n(27786),_=n(65233),y=n(43418),j=n(8591),w=n(95237),k=n(43604),b=n(3113),Z=n(56511),S=n(66104),N=n(28103),I=n(14491),P=n(10777),C=n(57809),E=n(71418),T=n(22596),$=n(87026),O=n(88289),A=n(20360),H=n(17985),R=n(33287),L=n(26795),W=n(78241),B=n(26220),F=n(98135),z=n(37712),M=function(e){var t=e.defaultValue,n=e.onBlur,a=e.max,r=e.className,s=void 0===r?"game-score":r,i=(0,m.useState)(t),o=d()(i,2),l=o[0],c=o[1];return(0,m.useEffect)((function(){c(t)}),[t]),(0,z.jsx)(B.Z,{max:a,min:0,className:s,value:l,onChange:function(e){c(e)},onBlur:function(){l&&(n(l>a?a:l),c(null))}})},J="greyText___lvEE6",V="info___El01Z",D="label___GmvST",G="blackContent___FYo0Z",Y="orangeContent____uYQ3",U="inputLabel___ruiZm",X="tableTitle___ir3x7",q="scoreTable___b9Z37",Q=(0,_.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks,classroomList:e.classroomList}}))((function(e){var t,n,a=e.shixunHomeworks,s=e.dispatch,o=e.classroomList,l=e.gethomeworkreport,c=e.homeWorkReport,u=(a.shixunWorkReport,(0,_.useParams)()),p=(0,m.useState)(!1),h=d()(p,2),f=h[0],x=h[1],v=(0,m.useState)(!1),b=d()(v,2),Z=b[0],S=b[1],N=(0,m.useState)(""),P=d()(N,2),C=P[0],E=P[1],T=W.Z.useForm(),$=d()(T,1)[0],O=function(){var e=i()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return S(!0),t=$.getFieldsValue(),e.next=4,(0,g.ZP)("/api/student_works/".concat(u.homeworkId,"/shixun_work_comment.json"),{method:"post",body:{hidden_comment:t.hidden_comment,comment:t.comment}});case 4:0===e.sent.status&&(j.ZP.success("点评成功"),$.resetFields(),s({type:"shixunHomeworks/setActionTabs",payload:{}}),l()),S(!1);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),A=function(){var e=i()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(C){e.next=3;break}return j.ZP.warning("请填写分数"),e.abrupt("return");case 3:return S(!0),t=$.getFieldsValue(),e.next=7,(0,g.ZP)("/api/student_works/".concat(u.homeworkId,"/add_score.json"),{method:"post",body:{comment:t.comment,score:C}});case 7:0===e.sent.status&&(j.ZP.success("点评成功"),s({type:"shixunHomeworks/setActionTabs",payload:{}}),l()),S(!1);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),H=[{title:"任务名称",dataIndex:"shixun_name",ellipsis:!0},{title:"开启时间",dataIndex:"open_time",width:160,render:function(e){return e||"--"}},{title:"评测次数",dataIndex:"evaluate_count",width:110},{title:"完成时间",dataIndex:"finished_time",width:160},{title:"实训耗时",dataIndex:"cost_time",width:160},{title:"缺评扣分",dataIndex:"absence_penalty",width:90,render:function(e){return e||"--"}},{title:"得分",dataIndex:"score",width:90,render:function(e,t){return(0,z.jsxs)("div",{children:[(0,z.jsx)("span",{style:{color:parseFloat(t.score_full)!==parseFloat(e)?"#E30000":"#53C41B"},children:e}),"/",t.score_full]})}},{title:"调分",width:100,dataIndex:"action",render:function(e,t){return(0,R.GJ)()?(0,z.jsx)(M,{max:t.score_full,onBlur:function(){var e=i()(r()().mark((function e(t){var n,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,R.Rm)()||null!==(n=o.AssistantObject.practice)&&void 0!==n&&n.can_appraise){e.next=3;break}return j.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能"),e.abrupt("return");case 3:return e.next=5,(0,g.ZP)("/api/student_works/".concat(u.homeworkId,"/adjust_score.json"),{method:"post",body:{score:t}});case 5:a=e.sent,l(),0===a.status&&j.ZP.success("调分成功");case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}):null!=c&&c.is_anonymous?(0,z.jsx)(B.Z,{min:0,value:C,onChange:function(e){return E(e)},max:t.score_full}):e}}].filter((function(e){return null==c||!c.is_anonymous||!["late_penalty","score","absence_penalty"].includes(e.dataIndex)}));return(0,z.jsxs)(y.Z,{centered:!0,width:1080,title:"点评作业",afterClose:function(){$.resetFields(),E("")},confirmLoading:Z,open:"更改点评"===a.actionTabs.key,okText:"确定",cancelText:"取消",onOk:i()(r()().mark((function e(){var t,n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,R.Rm)()||null!==(t=o.AssistantObject.practice)&&void 0!==t&&t.can_appraise){e.next=3;break}return j.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能"),e.abrupt("return");case 3:if(null==c||!c.is_anonymous){e.next=6;break}return A(),e.abrupt("return");case 6:n=$.getFieldsValue(),"{}"===JSON.stringify(n)||""===n.hidden_comment&&""===n.comment?x(!0):O();case 8:case"end":return e.stop()}}),e)}))),onCancel:function(){s({type:"shixunHomeworks/setActionTabs",payload:{}})},children:[(0,z.jsxs)(w.Z,{className:V,children:[(0,z.jsxs)(k.Z,{children:[(0,z.jsx)("span",{className:"".concat(D," ").concat(J),children:"姓名"}),(0,z.jsx)("span",{className:G,children:null==c?void 0:c.username})]}),(0,z.jsxs)(k.Z,{children:[(0,z.jsx)("span",{className:"".concat(D," ").concat(J),children:"学号"}),(0,z.jsx)("span",{className:G,children:(null==c?void 0:c.student_id)||"--"})]}),!(null!=c&&c.is_anonymous)&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(k.Z,{children:[(0,z.jsx)("span",{className:"".concat(D," ").concat(J),children:"班级"}),(0,z.jsx)("span",{className:G,children:(null==c?void 0:c.group_name)||"--"})]}),(0,z.jsxs)(k.Z,{children:[(0,z.jsx)("span",{className:"".concat(D," ").concat(J),children:"补交扣分"}),(0,z.jsx)("span",{className:Y,children:(null==c||null===(t=c.stage_list[0])||void 0===t?void 0:t.late_penalty)||"--"})]}),(0,z.jsxs)(k.Z,{children:[(0,z.jsx)("span",{className:"".concat(D," ").concat(J),children:"缺评扣分"}),(0,z.jsx)("span",{className:Y,children:(null==c||null===(n=c.stage_list[0])||void 0===n?void 0:n.absence_penalty)||"--"})]}),(0,z.jsxs)(k.Z,{children:[(0,z.jsx)("span",{className:"".concat(D," ").concat(J),children:"总成绩"}),(0,z.jsx)("span",{className:Y,children:(null==c?void 0:c.stage_list[0].score)||"--"})]})]})]}),(0,z.jsxs)(W.Z,{form:$,onChange:function(){f&&x(!1)},children:[(0,z.jsx)("div",{className:"".concat(U," ").concat(J),children:null!=c&&c.is_anonymous?"评语":"学生和课堂老师可见"}),(0,z.jsx)(W.Z.Item,{name:"comment",children:(0,z.jsx)(F.Z.TextArea,{placeholder:"请输入评阅内容",rows:3})}),!(null!=c&&c.is_anonymous)&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)("div",{className:"".concat(U," ").concat(J),children:"仅课堂老师可见"}),(0,z.jsx)(W.Z.Item,{name:"hidden_comment",children:(0,z.jsx)(F.Z.TextArea,{placeholder:"请输入评阅内容",rows:3})})," "]})]}),f&&(0,z.jsx)("p",{className:"c-red",children:"评阅内容至少有一个不为空"}),(0,z.jsx)("div",{className:X,children:"关卡成绩"}),(0,z.jsx)(I.Z,{className:q,dataSource:null==c?void 0:c.stage_list,rowKey:"challenge_id",pagination:!1,columns:H})]})})),K={},ee=(0,_.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks}}))((function(e){var t,n=e.shixunHomeworks,a=e.dispatch,s=e.gethomeworkreport,o=e.homeWorkReport;n.shixunWorkReport;console.log(o,"homeWorkReport");var l=(0,_.useParams)(),c=(0,m.useState)(!1),u=d()(c,2),p=u[0],h=u[1],f=W.Z.useForm(),x=d()(f,1)[0],v=(null==n||null===(t=n.actionTabs)||void 0===t||null===(t=t.selectArrs)||void 0===t?void 0:t.data)||{},k=v.user_name,b=v.score,Z=v.comment_time,S=v.content,N=v.score_id,I=v.user_id,P=function(){var e=i()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x.validateFields();case 2:return h(!0),t=x.getFieldsValue(),e.next=6,(0,g.ZP)("/api/student_works/".concat(l.homeworkId,"/appeal_anonymous_score.json"),{method:"post",body:{comment:t.comment,score_id:N,userId:I}});case 6:0===e.sent.status&&(j.ZP.success("操作成功"),a({type:"shixunHomeworks/setActionTabs",payload:{}}),s()),h(!1);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,z.jsxs)(y.Z,{centered:!0,width:600,title:"匿评申诉",afterClose:function(){x.resetFields()},confirmLoading:p,open:"匿评申诉"===n.actionTabs.key,okText:"确定",cancelText:"取消",onOk:P,onCancel:function(){a({type:"shixunHomeworks/setActionTabs",payload:{}})},children:[(0,z.jsxs)("div",{className:"p20",style:{background:"#F7F8F9",padding:15,marginBottom:20},children:[(0,z.jsxs)(w.Z,{justify:"space-between",className:K.info,children:[(0,z.jsxs)("span",{children:[(0,z.jsx)("span",{className:"c-grey-666",children:k}),(0,z.jsx)("span",{className:"c-grey-333 ml5",children:"调分为"}),(0,z.jsxs)("span",{className:"c-orange ml5",children:[b,"分"]})]}),(0,z.jsx)("span",{className:"c-grey-333",children:Z})]}),(0,z.jsx)("div",{className:"c-grey-333 mt5",children:S})]}),(0,z.jsx)(W.Z,{form:x,className:"mt15",layout:"vertical",children:(0,z.jsx)(W.Z.Item,{name:"comment",label:"申诉",rules:[{required:!0,message:"请输入申诉原因"}],children:(0,z.jsx)(F.Z.TextArea,{placeholder:"请输入申诉原因",rows:3})})})]})})),te=n(2812),ne={flex_box_center:"flex_box_center___uz0LL",flex_space_between:"flex_space_between___kuKI5",flex_box_vertical_center:"flex_box_vertical_center___VzPH1",flex_box_center_end:"flex_box_center_end___Tyr1U",flex_box_column:"flex_box_column___qsgVa",title:"title___SFyGM",export:"export___ezPhH",title1_right:"title1_right___tMOJn",userPic:"userPic___mW4Rr",userInfo:"userInfo___vYvSZ",listItem:"listItem___gJf4Z",rightInfo:"rightInfo___PRYRt",shixunTitle:"shixunTitle___STlvE",shixunWrp:"shixunWrp___knhTt",footerBar:"footerBar___R5IlQ",footerBarStatic:"footerBarStatic___M4EQj",exitComment:"exitComment___NoCI4",nextComment:"nextComment___sFj7z",modal:"modal___TwQdH",tag:"tag___RErUu"},ae=n(90277),re=n(41027),se=n(44425),ie=n.n(se),oe=["shixunHomeworks","classroomList","globalSetting","loading","user","dispatch"],le=(0,_.connect)((function(e){var t=e.shixunHomeworks,n=e.classroomList,a=e.loading,r=e.globalSetting,s=e.user;return{shixunHomeworks:t,classroomList:n,globalSetting:r,loading:a.effects,user:s}}))((function(e){var t,n,a,s,o=e.shixunHomeworks,c=e.classroomList,u=(e.globalSetting,e.loading,e.user),h=e.dispatch,x=(p()(e,oe),(0,m.useState)(l()({},(0,_.useParams)()))),W=d()(x,2),B=W[0],F=W[1],J=(0,_.useParams)(),V=(0,_.useLocation)(),D=(0,m.useState)([]),G=(d()(D,0),(0,m.useState)({last:!1})),Y=d()(G,2),U=Y[0],X=Y[1],q=(0,m.useState)({last:!1}),K=d()(q,2),se=K[0],le=K[1],ce=(0,m.useRef)(),de=(0,m.useRef)(),ue=(0,m.useState)(!1),pe=d()(ue,2),me=pe[0],he=pe[1],fe=(0,m.useState)(!1),xe=d()(fe,2),ve=xe[0],ge=xe[1],_e=(0,m.useState)(!1),ye=d()(_e,2),je=(ye[0],ye[1]),we=(0,m.useState)(),ke=d()(we,2),be=ke[0],Ze=ke[1],Se=(0,m.useState)(),Ne=d()(Se,2),Ie=Ne[0],Pe=Ne[1],Ce=(0,m.useState)(!0),Ee=d()(Ce,2),Te=Ee[0],$e=Ee[1],Oe=(0,m.useState)(),Ae=d()(Oe,2),He=(Ae[0],Ae[1]),Re=(0,R.GJ)(),Le=(0,m.useState)(new(v())),We=d()(Le,2),Be=We[0],Fe=We[1],ze=(0,m.useState)(0),Me=d()(ze,2),Je=(Me[0],Me[1],(0,m.useState)([])),Ve=d()(Je,2),De=Ve[0],Ge=Ve[1],Ye=(0,m.useState)(!1),Ue=d()(Ye,2),Xe=Ue[0],qe=Ue[1],Qe=(0,m.useState)(!1),Ke=d()(Qe,2),et=Ke[0],tt=Ke[1],nt=(0,m.useState)(""),at=d()(nt,2),rt=at[0],st=at[1],it=(0,m.useState)(!1),ot=d()(it,2),lt=(ot[0],ot[1]),ct=(0,m.useState)(!0),dt=d()(ct,2),ut=(dt[0],dt[1]),pt=(0,m.useState)(0),mt=d()(pt,2),ht=(mt[0],mt[1]),ft=function(){var e=i()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(u.userInfo.is_teacher||u.userInfo.admin)&&(lt(!0),ut(!1));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,m.useEffect)((function(){ft(),console.log("打印的------",be),console.log(o),st(null==be?void 0:be.repeat_minus_score)}),[be,u]),(0,m.useEffect)((function(){console.log("触发这",null==be?void 0:be.work_score),ht(null==be?void 0:be.work_score)}),[null==be?void 0:be.work_score,rt]),(0,m.useEffect)((function(){return h({type:"globalSetting/footerToggle",payload:!1}),function(){h({type:"globalSetting/footerToggle",payload:!0})}}),[]),(0,m.useEffect)((function(){if(be){var e,t=[];null==be||null===(e=be.target_test_sets)||void 0===e||e.map((function(e,n){var a;null==e||null===(a=e.targets)||void 0===a||a.map((function(a,r){var s;a.name=null==e?void 0:e.name,a.total_target_score=null==e?void 0:e.total_target_score,a.actual_target_score=null==e?void 0:e.actual_target_score,a.rowSpan=0===r?null==e||null===(s=e.targets)||void 0===s?void 0:s.length:0,a.order=n+1,t.push(a)}))})),He(t),h({type:"classroomList/getAssistantPermissions",payload:{course_id:B.coursesId}})}}),[be]),(0,m.useEffect)((function(){"导出实训报告"===o.actionTabs.key&&De.length>0&&null!=be&&be.course_name&&_t("all")}),[null==be?void 0:be.course_name]),(0,m.useEffect)((function(){console.log(J),F(l()({},J))}),[V.pathname]);var xt=function(){document.body.scrollIntoView()};function vt(){return(vt=i()(r()().mark((function e(){var t,n,a,s,i,o,c;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=JSON.parse(localStorage.all_student_works_param||"{}"),e.next=3,h({type:"shixunHomeworks/getAllStudentWorks",payload:l()(l()({},B),a)});case 3:s=e.sent,Ge(s.all_student_works),(i=null===(t=s.all_student_works)||void 0===t?void 0:t.map((function(e){return String(e.student_work_id)})).indexOf(B.homeworkId))===(null===(n=s.all_student_works)||void 0===n?void 0:n.length)-1?X({last:!0}):X(null===(o=s.all_student_works)||void 0===o?void 0:o[i+1]),le(0===i?{last:!0}:null===(c=s.all_student_works)||void 0===c?void 0:c[i-1]);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var gt=function(){document.querySelectorAll("canvas").forEach((function(e){(!e.clientWidth||!e.clientHeight)&&e.remove()}))},_t=function(){var e=i()(r()().mark((function e(t){var n,a,s,o,l,c,d,u,p,m,h,f;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d=function(){return(d=i()(r()().mark((function e(){var t,a,s,i,l;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.ZP)("/api/student_works/".concat(De[n].student_work_id,"/jupyter_work_report.json"),{method:"get"});case 2:if(0!==(null==(t=e.sent)?void 0:t.status)){e.next=14;break}if(Ze(t.data),null==t||null===(a=t.data)||void 0===a||null===(a=a.shixun_detail[0])||void 0===a||!a.myshixun_identifier){e.next=13;break}return $e(!0),e.next=9,(0,g.ZP)("/api/jupyters/preview_tpi.json",{method:"get",params:{identifier:null==t||null===(s=t.data)||void 0===s||null===(s=s.shixun_detail[0])||void 0===s?void 0:s.myshixun_identifier,student_work_id:null==t||null===(i=t.data)||void 0===i?void 0:i.work_id}});case 9:0===(l=e.sent).status&&(Pe(l.html_content),$e(!1),bt(),o()),e.next=14;break;case 13:o();case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)},c=function(){return d.apply(this,arguments)},l=function(){return l=i()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:xt(),n++,setTimeout(i()(r()().mark((function e(){var t,o,l,d,u,p;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:gt(),o=Be.folder("".concat(null==be||null===(t=be.stage_list[0])||void 0===t?void 0:t.shixun_name)),l=document.querySelector("#export-all").children,d=ie()(),u=r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d.set(s).from(l[t]).toContainer().toCanvas().toPdf().get("pdf").then(function(){var e=i()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t<l.length-1)){e.next=3;break}return e.next=3,n.addPage();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return e.stop()}}),e)})),p=0;case 6:if(!(p<l.length)){e.next=11;break}return e.delegateYield(u(p),"t0",8);case 8:p++,e.next=6;break;case 11:o.file("".concat(De[n-1].student_work_user_name,".pdf"),d.output("blob")),a.update({content:(0,z.jsxs)("div",{children:["当前进度: ",(0,z.jsx)("span",{className:"c-blue",children:n}),"/",null==De?void 0:De.length,(0,z.jsx)("br",{}),"请勿关闭浏览器窗口"]})}),n==(null==De?void 0:De.length)?(a.destroy(),yt()):c();case 14:case"end":return e.stop()}}),e)}))),2200);case 3:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)},o=function(){return l.apply(this,arguments)},n=0,a=y.Z.info({width:460,title:(0,z.jsxs)("div",{children:["正在导出实训报告,",(0,z.jsx)("span",{className:"c-red",children:"请勿关闭或操作当前浏览器窗口"})]}),content:(0,z.jsxs)("div",{children:["当前进度: ",(0,z.jsx)("span",{className:"c-blue",children:n+1}),"/","all"!==t?1:null==De?void 0:De.length,(0,z.jsx)("br",{}),"请勿关闭浏览器窗口"]}),maskClosable:!1,className:ne.modal,onOk:function(){}}),s={margin:[0,0],filename:"".concat(null==be?void 0:be.username,".pdf"),html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}},!("all"!==t||(null==De?void 0:De.length)<2)){e.next=27;break}gt(),xt(),u=de.current.children,p=ie()(),m=Be.folder("".concat(null==be?void 0:be.username)),h=r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p.set(s).from(u[t]).toContainer().toCanvas().toPdf().get("pdf").then(function(){var e=i()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t<u.length-1)){e.next=3;break}return e.next=3,n.addPage();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return e.stop()}}),e)})),f=0;case 15:if(!(f<u.length)){e.next=20;break}return e.delegateYield(h(f),"t0",17);case 17:f++,e.next=15;break;case 20:return he(!1),m.file("".concat(null==be?void 0:be.username,".pdf"),p.output("blob"),{base64:!1}),a.destroy(),yt(),e.abrupt("return");case 27:c();case 28:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),yt=function(){Be.generateAsync({type:"blob"}).then((function(e){var t=document.createElement("a");t.href=window.URL.createObjectURL(e),t.download=(null==be?void 0:be.course_name)+".zip",document.body.appendChild(t);var n=document.createEvent("MouseEvents");n.initEvent("click",!1,!1),t.dispatchEvent(n),document.body.removeChild(t),Fe(new(v()))})),je(!1)};(0,m.useEffect)((function(){Zt()}),[B.homeworkId]),(0,m.useEffect)((function(){null!=be&&be.work_id&&((0,R.GJ)()||null!=be&&be.is_anonymous)&&function(){vt.apply(this,arguments)}()}),[null==be?void 0:be.work_id]),(0,m.useEffect)((function(){console.log(be)}),[be]);var jt=function(){var e=i()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.ZP)("/api/student_works/".concat(B.homeworkId,"/jupyter_work_report.json"),{method:"get"});case 2:0===(null==(t=e.sent)?void 0:t.status)&&Ze(t.data);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),wt=function(){var e=i()(r()().mark((function e(){var t,n,a,s,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.ZP)("/api/student_works/".concat(B.homeworkId,"/jupyter_work_report.json"),{method:"get"});case 2:if(0!==(null==(t=e.sent)?void 0:t.status)){e.next=15;break}if(Ze(t.data),null==t||null===(n=t.data)||void 0===n||null===(n=n.shixun_detail[0])||void 0===n||!n.myshixun_identifier){e.next=15;break}return $e(!0),e.next=9,(0,g.ZP)("/api/jupyters/preview_tpi.json",{method:"get",params:{identifier:null==t||null===(a=t.data)||void 0===a||null===(a=a.shixun_detail[0])||void 0===a?void 0:a.myshixun_identifier,student_work_id:null==t||null===(s=t.data)||void 0===s?void 0:s.work_id}});case 9:if(0!==(i=e.sent).status){e.next=15;break}return Pe(i.html_content),$e(!1),kt(i.html_content),e.abrupt("return");case 15:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),kt=function(e){var t;null==e||null===(t=e.match)||void 0===t||null===(t=t.call(e,/<script [^>]*src=['"]([^'"]+)[^>]*>/gi))||void 0===t||t.map((function(e){var t=document.createElement("script");t.src=/<script [^>]*src=['"]([^'"]+)[^>]*>/gi.exec(e)[1],document.body.appendChild(t)})),bt()},bt=function(){try{window.MathJax&&(MathJax.Hub.Config({TeX:{equationNumbers:{autoNumber:"AMS",useLabelIds:!0}},tex2jax:{inlineMath:[["$","$"],["\\\\(","\\\\)"]],displayMath:[["$$","$$"],["\\\\[","\\\\]"]],processEscapes:!0,processEnvironments:!0},displayAlign:"center",CommonHTML:{linebreaks:{automatic:!0}},"HTML-CSS":{linebreaks:{automatic:!0}}}),MathJax.Hub.Queue(["Typeset",MathJax.Hub]))}catch(e){}},Zt=function(){var e=i()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ge(!0),wt(),ge(!1);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),St=[{title:"任务名称",dataIndex:"shixun_name",ellipsis:!0,render:function(e,t,n){return e}},{title:"开启时间",dataIndex:"open_time",width:null!=be&&be.is_anonymous?220:170,render:function(e){return e||"--"}},{title:"评测次数",dataIndex:"evaluate_count",width:null!=be&&be.is_anonymous?140:90},{title:"完成时间",dataIndex:"finished_time",width:null!=be&&be.is_anonymous?220:170},{title:"实训耗时",dataIndex:"cost_time",width:130},{title:"补交扣分",dataIndex:"late_penalty",width:90,render:function(e){return e||"--"}},{title:"缺评扣分",dataIndex:"absence_penalty",width:90,render:function(e){return e||"--"}},{title:"得分",dataIndex:"score",width:100,render:function(e,t){return(0,z.jsxs)("div",{children:[(0,z.jsx)("span",{style:{color:parseFloat(t.score_full)!==parseFloat(e)?"red":"green"},children:e||0}),"/",t.score_full]})}},{title:"调分",dataIndex:"action",width:110,render:function(e,t){return Re?(0,z.jsx)(M,{max:t.score_full,onBlur:function(){var e=i()(r()().mark((function e(t){var n,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,R.Rm)()||null!==(n=c.AssistantObject.practice)&&void 0!==n&&n.can_appraise){e.next=3;break}return j.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能"),e.abrupt("return");case 3:return e.next=5,(0,g.ZP)("/api/student_works/".concat(B.homeworkId,"/adjust_score.json"),{method:"post",body:{score:t}});case 5:a=e.sent,jt(),0===a.status&&j.ZP.success("操作成功");case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}):e}}].filter((function(e){return null==be||!be.is_anonymous||!["late_penalty","absence_penalty","score","action"].includes(e.dataIndex)})),Nt=null==be?void 0:be.comment_scores.map((function(e){var t,n,a;return{children:(0,z.jsxs)(w.Z,{children:[(0,z.jsx)(k.Z,{span:24,children:(0,z.jsxs)(w.Z,{children:[(0,z.jsxs)(k.Z,{flex:1,children:[(0,z.jsx)("span",{className:"c-light-black mr10",children:e.user_name}),(0,z.jsx)("span",{children:"调分为"}),(0,z.jsxs)("span",{className:"ml10 c-orange",children:[e.score?e.score:0,"分"]})]}),(0,z.jsx)(k.Z,{children:(0,z.jsx)("span",{className:"c-light-black ml10",children:e.comment_time})})]})}),(0,z.jsx)(k.Z,{span:24,className:"mt8",children:(0,z.jsxs)(w.Z,{className:"mt8",children:[(0,z.jsx)(k.Z,{span:22,children:e.content?(0,z.jsx)("span",{style:{color:"#333333"},children:e.content}):(0,z.jsx)("span",{className:"c-light-black",children:"暂未写评语"})}),(0,z.jsx)(k.Z,{className:"tr",span:2,children:(null==e?void 0:e.can_appeal)&&!(null!=e&&e.is_invalid)&&(0,z.jsx)(b.ZP,{size:"small",type:"primary",onClick:function(){h({type:"shixunHomeworks/setActionTabs",payload:{key:"匿评申诉",selectArrs:{data:l()({},e)}}})},children:"申诉"})})]})}),!(null==e||!e.appeal_info)&&(0,z.jsx)(k.Z,{span:24,className:"mt8",children:(0,z.jsxs)("div",{className:"p20",style:{background:"#F7F8F9",padding:15},children:[(0,z.jsxs)(w.Z,{justify:"space-between",children:[(0,z.jsxs)("span",{children:[(0,z.jsx)("span",{className:"c-grey-333",children:null==e||null===(t=e.appeal_info)||void 0===t?void 0:t.user_name}),(0,z.jsxs)("span",{children:[1===(null==e?void 0:e.appeal_status)&&(0,z.jsx)("span",{className:"tag-style bg-orange ml10 ".concat(ne.tag),children:"申诉中"}),2===(null==e?void 0:e.appeal_status)&&(0,z.jsx)("span",{className:"tag-style bg-grey-ede c-light-black ml10 ".concat(ne.tag),children:"申诉已撤销"}),3===(null==e?void 0:e.appeal_status)&&(0,z.jsx)("span",{className:"tag-style ml10 ".concat(ne.tag),style:{background:"#57BE40"},children:"申诉成功"}),4===(null==e?void 0:e.appeal_status)&&(0,z.jsx)("span",{className:"tag-style bg-grey-ede c-light-black ml10 ".concat(ne.tag),children:"申诉被拒绝"}),5===(null==e?void 0:e.appeal_status)&&(0,z.jsx)("span",{className:"tag-style c-light-black ml10 ".concat(ne.tag),style:{background:"#E9EAED"},children:"申诉失败"})]})]}),(0,z.jsxs)("span",{className:"c-light-black",children:[" ",f()(null==e||null===(n=e.appeal_info)||void 0===n?void 0:n.time).format("YYYY-MM-DD HH:mm:ss")]})]}),(0,z.jsxs)(w.Z,{justify:"space-between",className:"mt10",children:[(0,z.jsx)(k.Z,{flex:1,children:null===(a=e.appeal_info)||void 0===a?void 0:a.content}),(0,z.jsxs)(k.Z,{style:{flexShrink:0,marginLeft:"auto"},children:[1===(null==e?void 0:e.appeal_status)&&(0,R.GJ)()&&(0,z.jsx)("span",{onClick:function(){var t;y.Z.confirm({title:"接受申诉",icon:null,content:"此匿评记录将作废,匿评学生的作品将被扣减违规匿评分 是否确认接受申诉?",onOk:(t=i()(r()().mark((function t(){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,g.ZP)("/api/student_works/".concat(B.homeworkId,"/deal_appeal_score.json"),{method:"post",body:{score_id:e.score_id,status:3}});case 2:0===(null==(n=t.sent)?void 0:n.status)&&jt();case 4:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})})},className:"c-red current",children:"接受申诉"}),1===(null==e?void 0:e.appeal_status)&&(0,R.GJ)()&&(0,z.jsx)("span",{onClick:function(){var t;y.Z.confirm({icon:null,title:"接受申诉",content:"此匿评记录被认为合理,是否确认拒绝申诉?",onOk:(t=i()(r()().mark((function t(){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,g.ZP)("/api/student_works/".concat(B.homeworkId,"/deal_appeal_score.json"),{method:"post",body:{score_id:e.score_id,status:4}});case 2:0===(null==(n=t.sent)?void 0:n.status)&&jt();case 4:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})})},className:"c-light-black current ml10",children:"拒绝申诉"})]})]})]})})]})}})),It=function(e){Pe(null),h({type:"shixunHomeworks/setActionTabs",payload:{key:"",type:2}}),setTimeout((function(){"next"===e?_.history.push("/classrooms/".concat(B.coursesId,"/common_homework/").concat(B.categoryId,"/").concat(null==U?void 0:U.student_work_id,"/comment")):_.history.push("/classrooms/".concat(B.coursesId,"/common_homework/").concat(B.categoryId,"/").concat(null==se?void 0:se.student_work_id,"/comment"))}),200)};return console.log(!(null==be||!be.category),null==be?void 0:be.course_id,"homeWorkReport"),(0,z.jsxs)("section",{className:"bg-fafafa",style:{position:"sticky",top:0},children:[(0,z.jsx)("div",{className:"edu-container mt10",style:{paddingBottom:100},children:(0,z.jsxs)(Z.Z,{loading:ve,active:!0,avatar:{size:40},paragraph:{rows:5},children:[(0,z.jsxs)("div",{className:"edu-container",children:[(null==be?void 0:be.course_id)&&(0,z.jsxs)("section",{className:"animated fadeIn",children:[(0,z.jsx)("aside",{className:"",children:(null==be?void 0:be.category)&&(0,z.jsxs)(S.Z,{separator:">",children:[(0,z.jsx)(S.Z.Item,{children:(0,z.jsx)(_.Link,{to:"/classrooms/".concat(null==be?void 0:be.course_id,"/common_homework"),children:null==be?void 0:be.course_name})}),(0,z.jsx)(S.Z.Item,{children:(0,z.jsx)(_.Link,{to:"/classrooms/".concat(null==be?void 0:be.course_id,"/common_homework/").concat(null!=be&&be.category.main?"":null==be?void 0:be.category.category_id),children:null==be?void 0:be.category.category_name})}),(0,z.jsx)(S.Z.Item,{children:(0,z.jsx)(_.Link,{to:"/classrooms/".concat(null==be?void 0:be.course_id,"/common_homework/").concat(null==be?void 0:be.homework_common_id,"/detail"),children:"作业详情"})}),(0,z.jsx)(S.Z.Item,{children:null==be?void 0:be.username})]})}),(0,z.jsx)("aside",{className:[ne.title1,"mt20"].join(" "),children:(0,z.jsxs)(w.Z,{align:"middle",children:[(0,z.jsxs)(k.Z,{flex:1,children:[(0,z.jsx)(_.Link,{to:"/classrooms/".concat(null==be?void 0:be.course_id,"/common_homework/").concat(null==be?void 0:be.homework_common_id,"/detail"),children:(0,z.jsx)(T.Z,{className:"font16 c-black"})}),(0,z.jsx)("strong",{style:{fontWeight:700},className:"font20 ml5",children:null==be?void 0:be.shixun_name}),(0,z.jsx)(L.VV,{status:null==be?void 0:be.homework_status})]}),(0,z.jsxs)(k.Z,{className:ne.title1_right,children:[!(null!=be&&be.is_anonymous)&&(0,z.jsxs)(b.ZP,{children:[(0,z.jsx)("span",{className:"iconfont icon-yijiandianping mr5"}),(0,z.jsx)(_.Link,{className:"c-black",target:"_blank",to:"/tasks/".concat(null==be||null===(t=be.shixun_detail)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.myshixun_identifier,"/jupyter").concat((0,R.GJ)()?"":"?homework_common_id=".concat(J.categoryId)),children:(0,R.GJ)()?"查看学员实训":"查看实训"})]}),(0,R.GJ)()&&!(null!=be&&null!==(n=be.homework_status)&&void 0!==n&&n.includes("已截止"))&&(0,z.jsxs)(b.ZP,{className:"ml10",onClick:i()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h({type:"shixunHomeworks/setActionTabs",payload:{key:"redoShixunModal",homework_common_id:J.categoryId,student_work_id:J.homeworkId}});case 2:case"end":return e.stop()}}),e)}))),children:[(0,z.jsx)("span",{className:"iconfont icon-dahuizhongzuo3x mr5"}),"打回重做"]}),!(null!=be&&be.is_anonymous)&&(0,z.jsxs)(b.ZP,{className:"ml10",onClick:function(){return _t("")},loading:me,children:[(0,z.jsx)("span",{className:"iconfont icon-daochu mr5"}),"导出实训报告"]}),(0,R.GJ)()&&(null==De?void 0:De.length)>1&&(0,z.jsxs)(b.ZP,{className:"ml10",onClick:function(){return _t("all")},children:[(0,z.jsx)("span",{className:"iconfont icon-daochu mr5"}),"导出全部学生实训报告"]})]})]})})]}),(0,z.jsx)("aside",{className:"mt30 relative"})]}),(0,z.jsx)("aside",{className:"edu-container bg-white",ref:ce,children:(0,z.jsx)("div",{id:"export-all",ref:de,children:(0,z.jsxs)("div",{id:"export-all-1",children:[(0,z.jsxs)("div",{className:ne.title,children:[(0,z.jsx)("h1",{children:"总体评价"}),(0,z.jsx)("div",{children:((0,R.GJ)()||(null==be?void 0:be.is_anonymous))&&(0,z.jsxs)(b.ZP,{className:"mr20",type:"primary",onClick:function(){h({type:"shixunHomeworks/setActionTabs",payload:{key:"更改点评",selectArrs:{myshixun_identifier:null==be?void 0:be.user_id,data:l()({},be)}}})},children:[(0,z.jsx)($.Z,{}),null!=be&&be.has_shixun_work_comment?"更改点评":"点评作业"]})})]}),(0,z.jsx)(N.Z,{style:{marginTop:0}}),(0,z.jsxs)(w.Z,{className:"pl30 pr30",children:[(0,z.jsx)(k.Z,{children:(0,z.jsx)("img",{className:ne.userPic,src:"".concat(H.Z.IMG_SERVER,"/images/").concat(null==be?void 0:be.image_url),alt:null==be?void 0:be.username})}),(0,z.jsxs)(k.Z,{className:"pt20",children:[(0,z.jsx)("span",{className:"font16 ml40",children:null==be?void 0:be.username}),(0,z.jsx)(L.Y,{status:null==be?void 0:be.work_status}),(0,z.jsxs)("ul",{className:ne.userInfo,children:[(0,z.jsxs)("li",{children:["学号:",(null==be?void 0:be.student_id)||"--"]}),((0,R.GJ)()||!(null!=be&&be.is_anonymous))&&(0,z.jsxs)("li",{children:["分班:",(null==be?void 0:be.group_name)||"--"]}),(0,z.jsx)("br",{})]})]})]}),(0,z.jsx)("aside",{className:"pl30 pr30 mt30 mb10",children:(0,z.jsx)(I.Z,{dataSource:null==be?void 0:be.stage_list,rowKey:function(e){return null==e?void 0:e.challenge_id},pagination:!1,columns:St})}),((null==be?void 0:be.work_comment_hidden)||(null==be?void 0:be.work_comment))&&(0,z.jsxs)("div",{children:[(0,z.jsxs)(w.Z,{align:"middle",children:[(0,z.jsx)(k.Z,{flex:1,children:(0,z.jsx)("h1",{className:ne.title,children:"点评内容"})}),(0,z.jsx)(k.Z,{className:"pr30",children:(0,R.GJ)()&&(0,z.jsxs)(b.ZP,{onClick:i()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:y.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",icon:(0,z.jsx)(O.Z,{}),content:"是否确认删除?",onOk:function(){return i()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,re.gZ)({comment_id:null==be?void 0:be.comment_id,homeworkId:B.homeworkId});case 2:0===e.sent.status&&(j.ZP.success("删除成功"),jt());case 4:case"end":return e.stop()}}),e)})))()}});case 1:case"end":return e.stop()}}),e)}))),children:[(0,z.jsx)(A.Z,{}),"删除"]})})]}),(null==be?void 0:be.work_comment)&&(0,z.jsxs)("aside",{className:"pl30 pr30",style:{marginTop:"-5px"},children:[(0,z.jsx)("span",{className:"c-light-black font12",children:"# 学生和课堂老师可见"}),(0,z.jsx)("br",{}),(0,z.jsx)(ae.Z,{value:null==be?void 0:be.work_comment,className:"font14"})]}),(null==be?void 0:be.work_comment_hidden)&&(0,z.jsxs)("aside",{className:"pl30 pr30 mt15",children:[(0,z.jsx)("span",{className:"c-light-black font12",children:"# 仅课堂老师可见"}),(0,z.jsx)("br",{}),(0,z.jsx)(ae.Z,{value:null==be?void 0:be.work_comment_hidden,className:"font14"})]})]}),(null==be?void 0:be.comment_scores.length)>0&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)("h1",{className:ne.title,children:"调分原因"}),(0,z.jsx)("aside",{className:"pl30 pr30",style:{marginTop:"4px"},children:(0,z.jsx)(P.Z,{items:Nt})})]}),(null==be||null===(a=be.shixun_detail[0])||void 0===a?void 0:a.myshixun_identifier)&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)("h1",{className:ne.title,style:{marginTop:"-20px"},children:"实训详情"}),(0,z.jsx)("aside",{className:"pl30 pr30",children:(0,z.jsxs)("div",{className:ne.shixunWrp,children:[(0,z.jsxs)("h2",{children:[(0,z.jsxs)("span",{children:["评测代码",(0,z.jsx)("span",{className:"ml5 font12 c-grey-999",children:"未通过本题,展示最后提交评测的代码详情"})]}),(0,z.jsx)("span",{children:(0,z.jsxs)(C.default,{style:{width:200},value:null==be||null===(s=be.shixun_detail[0])||void 0===s?void 0:s.path,children:[" ",null==be?void 0:be.shixun_detail.map((function(e){return(0,z.jsx)(Option,{value:e.path,children:e.path})}))," "]})})]}),(0,z.jsx)(E.Z,{spinning:Te,children:(0,z.jsx)("div",{style:{width:"100%",minHeight:"550px",padding:"16px"},dangerouslySetInnerHTML:{__html:Ie}})})]})})]})]})})}),((0,R.GJ)()||(null==be?void 0:be.is_anonymous))&&(0,z.jsx)("aside",{className:"".concat(ne.footerBar," ").concat(me?ne.footerBarStatic:""),children:(0,z.jsx)("aside",{className:"edu-container",children:(0,z.jsxs)(w.Z,{align:"middle",children:[(0,z.jsx)(k.Z,{flex:"1",children:(0,z.jsx)(_.Link,{className:ne.exitComment,to:"/classrooms/".concat(B.coursesId,"/common_homework/").concat(B.categoryId,"/detail"),children:"返回列表"})}),(0,z.jsxs)(k.Z,{flex:"1",className:"tr",children:[(0,z.jsx)(b.ZP,{type:"default",disabled:null==se?void 0:se.last,onClick:function(){return It()},children:"上一个"}),(0,z.jsx)(b.ZP,{type:"default",style:{marginLeft:"20px",marginRight:"20px"},disabled:null==U?void 0:U.last,onClick:function(){return It("next")},children:"下一个"}),((0,R.GJ)()||(null==be?void 0:be.is_anonymous))&&(0,z.jsx)(b.ZP,{type:"primary",onClick:i()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:h({type:"shixunHomeworks/setActionTabs",payload:{key:"更改点评",selectArrs:{myshixun_identifier:null==be?void 0:be.user_id,data:l()({},be)}}});case 1:case"end":return e.stop()}}),e)}))),children:"点评作业"})]})]})})})]})}),(0,z.jsx)(ee,{gethomeworkreport:jt,homeWorkReport:be}),(0,z.jsx)(Q,{gethomeworkreport:jt,homeWorkReport:be}),(0,z.jsx)(te.Z,{getData:jt}),(0,z.jsxs)(y.Z,{open:Xe,width:860,centered:!0,onCancel:function(){qe(!1)},title:"计时规则说明",footer:null,children:[(0,z.jsxs)("div",{style:{color:"#333333",fontWeight:400},children:[(0,z.jsx)("span",{style:{fontWeight:500},children:"1、页面停留时长"}),(0,z.jsx)("br",{}),(0,z.jsx)("span",{children:"学生进入关卡的答题页面开始计时,直至学生关卡评测通过,则计时结束;"}),(0,z.jsx)("br",{}),(0,z.jsx)("span",{children:" 学生进入关卡的答题页面开始计时,若学生关闭/退出答题页面,则计时暂停,再次进入答题页面时开始累计计时直至评测通过,则计时结束;"}),(0,z.jsx)("span",{style:{color:"#FA6400",display:"flex",height:34,alignItems:"center"},children:" 可能会造成时长评估与实际做题能力不符的情况 "}),(0,z.jsx)("span",{children:"a、学生进入关卡看完题后退出答题页面完成代码设计再复制进平台答题页面进行评测无法评估学生的学习和思考时间。"})]}),(0,z.jsxs)("div",{style:{color:"#333333",marginTop:20,fontWeight:400},children:[(0,z.jsx)("span",{style:{fontWeight:500},children:"2、关卡总耗时"}),(0,z.jsx)("br",{}),(0,z.jsx)("span",{style:{},children:"学生第一次进入关卡答题页面开始计时,直至该关卡评测通过,则计时结束。 "}),(0,z.jsx)("br",{}),(0,z.jsx)("span",{children:" 另,即使关卡闯关过程中,学生退出/关闭答题页面,也将持续计时,直至该关卡通过。"}),(0,z.jsx)("span",{style:{color:"#FA6400",display:"flex",height:44,paddingTop:10},children:" 可能会造成时长评估与实际做题能力不符的情况 "}),(0,z.jsx)("span",{children:"a、学生从其他同学处看到题目后完成代码设计再进入关卡答题页面将已完成的代码复制至平台进行评测"}),(0,z.jsx)("br",{}),(0,z.jsx)("span",{children:"b、学生第一次打开关卡后因为某种原因离开页面时隔多日才再次进入平台闯关就会导致学生关卡总耗时过长"})]}),(0,z.jsxs)("div",{style:{color:"#333333",marginTop:20,fontWeight:400},children:[(0,z.jsx)("span",{style:{fontWeight:500},children:"3、作业通关时长"}),(0,z.jsx)("br",{}),(0,z.jsx)("span",{style:{},children:"从老师发布的实训作业开始时间,开始计时,直至学生实训通关(包括迟交通关),结束计时。如果学生未通关,则该生的闯关耗时为老师设置的实训开始时间至实训截止时间,如果老师开启了补交,则该生的闯关耗时为实训开始时间至实训补交截止时间。"})]}),(0,z.jsxs)("div",{style:{color:"#333333",marginTop:20,fontWeight:400},children:[(0,z.jsx)("span",{style:{fontWeight:500},children:"规则目的"}),(0,z.jsx)("br",{}),(0,z.jsx)("span",{style:{},children:"鼓励学生在实训作业发布的第一时间,立即登录平台完成实训作业的通关。"})]})]}),(0,z.jsx)(y.Z,{open:et,title:"实训总耗时说明",centered:!0,footer:null,onCancel:function(){tt(!1)},width:600,children:(0,z.jsxs)("div",{style:{fontWeight:400,color:"#333333"},children:[(0,z.jsxs)("div",{children:["1、当计时规则为“",(0,z.jsx)("span",{style:{color:"#145DFF"},children:"页面停留时长"}),"”时,实训总耗时为所有关卡耗时相加之和;"]}),(0,z.jsxs)("div",{style:{margin:"20px 0px"},children:["2、当计时规则为“",(0,z.jsx)("span",{style:{color:"#145DFF"},children:"关卡总耗时"}),"”时,实训总耗时为所有关卡耗时相加之和;"]}),(0,z.jsxs)("div",{children:["3、当计时规则为“",(0,z.jsx)("span",{style:{color:"#145DFF"},children:"作业通关时长"}),"”时,实训总耗时为实训发布时间至实训通关时间,当学生未通关时,实训总耗时为实训发布时间至实训截止时间。"]})]})})]})}))},2812:function(e,t,n){var a=n(7557),r=n.n(a),s=n(41498),i=n.n(s),o=(n(59301),n(43418)),l=n(8591),c=n(27786),d=n(65233),u=n(33287),p=n(37712);t.Z=(0,d.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks,classroomList:e.classroomList}}))((function(e){var t=e.shixunHomeworks,n=e.dispatch,a=e.classroomList,s=e.getData;return(0,p.jsxs)(o.Z,{centered:!0,title:"提示",open:"redoShixunModal"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:i()(r()().mark((function e(){var i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,u.Rm)()||null!==(i=a.AssistantObject.normal)&&void 0!==i&&i.can_redo){e.next=3;break}return l.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能"),e.abrupt("return");case 3:return e.next=5,(0,c.ZP)("/api/homework_commons/".concat(t.actionTabs.homework_common_id,"/batch_redo_modal.json"),{method:"post",body:{student_work_id:t.actionTabs.student_work_id}});case 5:0===e.sent.status&&(l.ZP.success("操作成功"),n({type:"shixunHomeworks/setActionTabs",payload:{}}),s());case 7:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"shixunHomeworks/setActionTabs",payload:{}})},children:[(0,p.jsxs)("p",{children:["该作业将被打回重做,",t.actionTabs.isshixun?"学生实训":"学生作品提交","记录将被清空!"]}),(0,p.jsx)("p",{children:"确定打回?"})]})}))},44728:function(e,t,n){n.d(t,{AL:function(){return w},Iy:function(){return p},Qv:function(){return f},ez:function(){return j},jb:function(){return m}});var a=n(79800),r=n.n(a),s=n(32834),i=n.n(s),o=n(11690);var l=[],c=["<ul>"],d=new(i().Renderer),u=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function p(){l.length=0,c=["<ul>"]}var m={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function h(e,t,n,a){if(t>=e.length||e[t].level<=n)return t;var r=e[t];a.push("<li><a href='#"+r.anchor+"'>"+r.text+"</a>");var s=[];return t=h(e,++t,r.level,s),s.length>0&&(a.push("<ul>"),s.forEach((function(e){a.push(e)})),a.push("</ul>")),a.push("</li>"),t=h(e,t,n,a)}function f(){return h(l,0,0,c),c.push("</ul>"),c.join("")}var x={heading:function(e){var t=u.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[1].length,text:t[2]}},fences:function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],a=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var a=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:r()(t,1)[0].length>=a.length?e.slice(a.length):e})).join("\n")}(n,t[3]||""),s=t[2]?t[2].trim():t[2];if(["latex","katex","math"].indexOf(s)>=0){var i=_(),o=a;a=i,y[i]={type:"block",expression:o}}return{type:"code",raw:n,lang:s,text:a}}}},v=/(?:\${2})([^\n`]+?)(?:\${2})/gi,g=0,_=function(){return"__special_katext_id_".concat(g++,"__")},y={};function j(){return y}function w(){g=0,y={}}function k(e){return e=e.replace(v,(function(e,t){var n=_();return y[n]={type:"inline",expression:t},n}))}var b=d.listitem;d.listitem=function(e){return b(k(e))};var Z=d.paragraph;d.paragraph=function(e){return Z(k(e))};var S=d.tablecell;d.tablecell=function(e,t){return S(k(e),t)},d.code=function(e,t,n){var a=(t||"").match(/\S*/)[0];return a?["latex","katex","math"].indexOf(a)>=0?"<p class='editormd-tex'>".concat(e,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(t,'">').concat(n?e:(0,o.escape)(e,!0),"</code></pre>\n"):'<pre class="prettyprint linenums"><code>'+(n?e:(0,o.escape)(e,!0))+"</code></pre>"},d.heading=function(e,t,n){var a=this.options.headerPrefix+n.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return l.push({anchor:a,level:t,text:e}),"<h"+t+' id="'+a+'">'+e+"</h"+t+">"},i().setOptions({silent:!0,gfm:!0,pedantic:!1}),i().use({tokenizer:x,renderer:d}),t.ZP=i()},10777:function(e,t,n){n.d(t,{Z:function(){return w}});var a=n(92310),r=n.n(a),s=n(59301),i=n(36355),o=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};var l=e=>{var{prefixCls:t,className:n,color:a="blue",dot:l,pending:c=!1,position:d,label:u,children:p}=e,m=o(e,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:h}=s.useContext(i.E_),f=h("timeline",t),x=r()(`${f}-item`,{[`${f}-item-pending`]:c},n),v=/blue|red|green|gray/.test(a||"")?void 0:a,g=r()(`${f}-item-head`,{[`${f}-item-head-custom`]:!!l,[`${f}-item-head-${a}`]:!v});return s.createElement("li",Object.assign({},m,{className:x}),u&&s.createElement("div",{className:`${f}-item-label`},u),s.createElement("div",{className:`${f}-item-tail`}),s.createElement("div",{className:g,style:{borderColor:v,color:v}},l),s.createElement("div",{className:`${f}-item-content`},p))},c=n(43527),d=n(5095),u=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};var p=e=>{var{prefixCls:t,className:n,pending:a=!1,children:i,items:o,rootClassName:p,reverse:m=!1,direction:h,hashId:f,pendingDot:x,mode:v=""}=e,g=u(e,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const _=(e,n)=>"alternate"===v?"right"===e?`${t}-item-right`:"left"===e||n%2==0?`${t}-item-left`:`${t}-item-right`:"left"===v?`${t}-item-left`:"right"===v||"right"===e?`${t}-item-right`:"",y=(0,c.Z)(o||[]),j="boolean"==typeof a?null:a;a&&y.push({pending:!!a,dot:x||s.createElement(d.Z,null),children:j}),m&&y.reverse();const w=y.length,k=`${t}-item-last`,b=y.filter((e=>!!e)).map(((e,t)=>{var n;const i=t===w-2?k:"",o=t===w-1?k:"",{className:c}=e,d=u(e,["className"]);return s.createElement(l,Object.assign({},d,{className:r()([c,!m&&a?i:o,_(null!==(n=null==e?void 0:e.position)&&void 0!==n?n:"",t)]),key:(null==e?void 0:e.key)||t}))})),Z=y.some((e=>!!(null==e?void 0:e.label))),S=r()(t,{[`${t}-pending`]:!!a,[`${t}-reverse`]:!!m,[`${t}-${v}`]:!!v&&!Z,[`${t}-label`]:Z,[`${t}-rtl`]:"rtl"===h},n,p,f);return s.createElement("ul",Object.assign({},g,{className:S}),b)},m=n(29541);var h=function(e,t){return e&&Array.isArray(e)?e:(0,m.Z)(t).map((e=>{var t,n;return Object.assign({children:null!==(n=null===(t=null==e?void 0:e.props)||void 0===t?void 0:t.children)&&void 0!==n?n:""},e.props)}))},f=n(17313),x=n(83116),v=n(37613);const g=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign({},(0,f.Wf)(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.itemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.itemHeadSize,insetInlineStart:(e.itemHeadSize-e.tailWidth)/2,height:`calc(100% - ${e.itemHeadSize}px)`,borderInlineStart:`${e.tailWidth}px ${e.lineType} ${e.tailColor}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.itemHeadSize,height:e.itemHeadSize,backgroundColor:e.dotBg,border:`${e.dotBorderWidth}px ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:e.itemHeadSize/2,insetInlineStart:e.itemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.lineWidth,marginInlineStart:e.margin+e.itemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:1.2*e.controlHeightLG}}},[`&${t}-alternate,\n &${t}-right,\n &${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${e.marginXXS}px`,"&-custom":{marginInlineStart:e.tailWidth/2}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${e.marginXXS}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${e.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail,\n ${t}-item-head,\n ${t}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(e.itemHeadSize+e.tailWidth)/2}px)`},[`${t}-item-content`]:{width:`calc(100% - ${e.itemHeadSize+e.marginXS}px)`}}},[`&${t}-pending\n ${t}-item-last\n ${t}-item-tail`]:{display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.tailWidth}px dotted ${e.tailColor}`},[`&${t}-reverse\n ${t}-item-last\n ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.tailWidth}px dotted ${e.tailColor}`},[`${t}-item-content`]:{minHeight:1.2*e.controlHeightLG}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.tailWidth,width:`calc(50% - ${e.marginSM}px)`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${e.marginSM}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}};var _=(0,x.Z)("Timeline",(e=>{const t=(0,v.TS)(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return[g(t)]}),(e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.wireframe?e.lineWidthBold:3*e.lineWidth,dotBg:e.colorBgContainer,itemPaddingBottom:1.25*e.padding}))),y=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};const j=e=>{const{getPrefixCls:t,direction:n,timeline:a}=s.useContext(i.E_),{prefixCls:o,children:l,items:c,className:d,style:u}=e,m=y(e,["prefixCls","children","items","className","style"]),f=t("timeline",o);const[x,v]=_(f),g=h(c,l);return x(s.createElement(p,Object.assign({},m,{className:r()(null==a?void 0:a.className,d),style:Object.assign(Object.assign({},null==a?void 0:a.style),u),prefixCls:f,direction:n,items:g,hashId:v})))};j.Item=l;var w=j}}]);