diff --git a/p__Classrooms__Lists__CommonHomework__Review__index.async.js b/p__Classrooms__Lists__CommonHomework__Review__index.async.js index 510148536d..e482aa36f3 100644 --- a/p__Classrooms__Lists__CommonHomework__Review__index.async.js +++ b/p__Classrooms__Lists__CommonHomework__Review__index.async.js @@ -1 +1 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[52338],{22596:function(e,n,t){t.d(n,{Z:function(){return a}});var o=t(1565),l=t(59301),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},r=t(68475),i=function(e,n){return l.createElement(r.Z,(0,o.Z)({},e,{ref:n,icon:s}))};var a=l.forwardRef(i)},44770:function(e,n,t){t.d(n,{Z:function(){return a}});var o=t(1565),l=t(59301),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M632 698.3l141.9-112a8 8 0 000-12.6L632 461.7c-5.3-4.2-13-.4-13 6.3v76H295c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v76c0 6.7 7.8 10.4 13 6.3zm261.3-405L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v278c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V422c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-83.5c0-17-6.7-33.2-18.7-45.2zM640 288H384V184h256v104zm264 436h-56c-4.4 0-8 3.6-8 8v108H184V732c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v148c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V732c0-4.4-3.6-8-8-8z"}}]},name:"delivered-procedure",theme:"outlined"},r=t(68475),i=function(e,n){return l.createElement(r.Z,(0,o.Z)({},e,{ref:n,icon:s}))};var a=l.forwardRef(i)},93737:function(e,n,t){t.d(n,{Z:function(){return a}});var o=t(1565),l=t(59301),s={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},r=t(68475),i=function(e,n){return l.createElement(r.Z,(0,o.Z)({},e,{ref:n,icon:s}))};var a=l.forwardRef(i)},95972:function(e,n,t){t.d(n,{h:function(){return m},x:function(){return p}});var o=t(82242),l=t.n(o),s=t(39647),r=t.n(s),i=t(57073),a=t(84481),c=t(53847),d=t(37712),u=["value","onChange","scrollId"],m=function(e){var n=e.value,t=e.onChange,o=e.scrollId,s=r()(e,u);return(0,d.jsx)("div",{id:o||"",children:(0,d.jsx)(i.Z,l()(l()({},s),{},{defaultValue:n,onChange:function(e,n){console.log("a:",e,n),null!=n&&n.length?t(e,n):t(e)}}))})},p=function(e){var n=e.value,t=e.onChange,o=e.placeholder,l=e.height,s=void 0===l?140:l;return e.isEdit?(0,d.jsx)(i.Z,{watch:!0,isFocus:!0,height:s,placeholder:o,defaultValue:n,onChange:t}):(0,d.jsx)("div",{style:{cursor:"pointer"},children:n?(0,d.jsx)(c.Z,{className:a.Z.inputBorder,value:n}):(0,d.jsx)("div",{className:"".concat(a.Z.inputBorder," ").concat(a.Z.placeholder," inputBorderError"),children:o})})}},40168:function(e,n,t){t.d(n,{Z:function(){return c}});var o=t(79800),l=t.n(o),s=t(59301),r=t(12978),i=t(13879),a=t(37712),c=function(){var e=(0,s.useState)(""),n=l()(e,2),t=n[0],o=n[1],c=(0,s.useState)(0),d=l()(c,2),u=(d[0],d[1]),m=(0,s.useState)(),p=l()(m,2),h=(p[0],p[1]),x=(0,s.useState)(),_=l()(x,2),f=(_[0],_[1]),v=(0,s.useState)(!1),j=l()(v,2),g=(j[0],j[1],(0,s.useRef)(""));function y(e){27==e.keyCode&&g.current&&b()}function b(){document.body.style.overflow="auto",h(void 0),f(void 0),u(0),o("")}(0,s.useEffect)((function(){return r.Z.subscribe("preview-image",(function(e){o(e),console.log(k.current),document.body.style.overflow="hidden"}))}),[]),(0,s.useEffect)((function(){return document.addEventListener("keydown",y),function(){document.removeEventListener("keydown",y)}}),[]),(0,s.useEffect)((function(){g.current=t}),[t]);(0,s.useRef)();var w=(0,s.useRef)(),k=(0,s.useRef)();return(0,a.jsx)(s.Fragment,{children:t?(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"preview-wrp-group",ref:w,children:(0,a.jsx)(i.Z,{className:"image-preview",src:t,style:{display:"none"},preview:{visible:!0,src:t,movable:!1,onVisibleChange:function(e){o("")}},alt:"预览大图"})})}):null})}},28023:function(e,n,t){t.r(n),t.d(n,{default:function(){return pe}});var o=t(7557),l=t.n(o),s=t(37205),r=t.n(s),i=t(41498),a=t.n(i),c=t(82242),d=t.n(c),u=t(79800),m=t.n(u),p=t(59301),h=t(89084),x=t(78241),_=t(8591),f=t(43418),v=t(66104),j=t(95237),g=t(43604),y=t(3113),b=t(71418),w=t(99313),k=t(6848),I=t(54449),N=t(14491),Z=t(98135),S=t(22596),M=t(44770),C=t(40168),O=t(37821),L=t(57073),D=t(12978),E=t(11623),P=t(99232),T=t.n(P),z=t(99741),$=t(88270),F=t(37712),H=(0,h.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks}}))((function(e){var n=e.shixunHomeworks,t=e.dispatch,o=(0,h.useParams)(),s=(0,p.useState)(!0),r=m()(s,2),i=(r[0],r[1],x.Z.useForm()),c=m()(i,1)[0];return(0,F.jsx)(F.Fragment,{children:(0,F.jsxs)(f.Z,{centered:!0,title:"调分",open:"调分"===n.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(l()().mark((function e(){var s;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.validateFields();case 2:return s=c.getFieldsValue(),e.next=5,(0,O.ZP)("/api/student_works/".concat(n.actionTabs.id,"/adjust_score.json"),{method:"post",body:d()({},s)});case 5:0===e.sent.status&&(_.ZP.success("评阅成功"),c.resetFields(),t({type:"shixunHomeworks/setActionTabs",payload:{}}),t({type:"shixunHomeworks/getStudentWorkCommon",payload:d()({},o)}));case 7:case"end":return e.stop()}}),e)}))),onCancel:function(){t({type:"shixunHomeworks/setActionTabs",payload:{}})},children:[(0,F.jsx)("p",{className:"tc",children:"该学生的最终成绩将不会按照评分规则进行计算"}),(0,F.jsxs)(x.Z,{form:c,layout:"horizontal",children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"baseline"},children:[(0,F.jsx)(x.Z.Item,{label:"成绩",name:"score",rules:[{required:!0,message:"请输入!"}],children:(0,F.jsx)(I.Z,{min:0,placeholder:"请填写分数"})}),(0,F.jsx)("span",{className:"ml10",children:"分"})]}),(0,F.jsx)("div",{children:(0,F.jsx)(x.Z.Item,{name:"comment",children:(0,F.jsx)(Z.Z.TextArea,{placeholder:"请填写您对作品调分的原因",rows:8})})})]})]})})})),B={flex_box_center:"flex_box_center___tMwax",flex_space_between:"flex_space_between___8GJsg",flex_box_vertical_center:"flex_box_vertical_center___IFELt",flex_box_center_end:"flex_box_center_end___IrFRG",flex_box_column:"flex_box_column___s0LgG",TabsStyle:"TabsStyle___r0bwM",buttonFixed:"buttonFixed___twN45",bg:"bg___sFhaA",title:"title___bk4oD",replyList:"replyList___bjk6g",name:"name___pRNS3","nav-tab":"nav-tab___uLRSr",exitComment:"exitComment___rlGpw",nextComment:"nextComment___NmNBo",modal:"modal___tWPO8",MdEditor:"MdEditor___AAxeb",ratewarp:"ratewarp___NGrsd",item:"item___Le8W0",total:"total___MNh4V",a1:"a1___g1iJT",a2:"a2___h8k2X",a3:"a3___yk1km",export_type_modal_title:"export_type_modal_title___nMqX0",export_type_modal:"export_type_modal___dbFVU",export_type_modal_con:"export_type_modal_con___ujWeL",type_item:"type_item___oF9R5",type_item_active:"type_item_active___dfBaM",export_type_modal_waring:"export_type_modal_waring___k8RaP"},G=t(53847),A=t(89392),W=t(97313),R=(0,h.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var n=e.classroomList,t=(e.loading,e.dispatch),o=e.studentWorkDetail,s=((0,h.useParams)(),x.Z.useForm()),r=m()(s,1)[0],i=function(){var e=a()(l()().mark((function e(){var o,s,i;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.validateFields();case 2:return s=d()({},r.getFieldValue()),i=n.actionTabs.selectArrs,s.attachment_ids=null===(o=s.attachment_ids)||void 0===o?void 0:o.map((function(e){return e.response.id})),e.next=7,(0,$.mz)(d()(d()({},s),{},{homeworkId:i.work_id}));case 7:0===e.sent.status&&(r.resetFields(),t({type:"shixunHomeworks/getStudentWorkSupplyDetail",payload:d()({},n.actionTabs.params)}),t({type:"classroomList/setActionTabs",payload:{}}));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,F.jsx)(f.Z,{centered:!0,title:"补交附件",open:"补交附件"===n.actionTabs.key,bodyStyle:{minHeight:200},onOk:a()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==o||!o.can_submit){e.next=6;break}if(null!=o&&o.submit_size){e.next=4;break}return _.ZP.warning("您的作品提交机会已用完。如需继续修改,请联系指导老师或平台运营。"),e.abrupt("return");case 4:return f.Z.confirm({title:"提示",icon:null,centered:!0,width:472,content:(0,F.jsxs)(F.Fragment,{children:["你还有 ",(0,F.jsx)("span",{className:"ml5 mr5",style:{color:"#DF711C"},children:null==o?void 0:o.submit_size})," 次提交机会。确认提交后,上一次的提交记录会被覆盖。请注意,到达规定的提交次数后将不可再次提交,确定是否提交?"]}),onOk:function(){i()}}),e.abrupt("return");case 6:i();case 7:case"end":return e.stop()}}),e)}))),onCancel:function(){r.resetFields(),t({type:"classroomList/setActionTabs",payload:{}})},children:(0,F.jsxs)(x.Z,{form:r,initialValues:{},children:[(0,F.jsx)(x.Z.Item,{name:"attachment_ids",rules:[{required:!0,message:"请上传附件"}],children:(0,F.jsx)(W.Z,{})}),(0,F.jsx)(x.Z.Item,{name:"description",children:(0,F.jsx)(Z.Z.TextArea,{placeholder:"请在此输入补交附件的原因,最大限制100个字符",rows:7})})]})})})),Y=t(271),U=t(31260),V=t(84968),J=t(7061),Q=t(60969),X=t(28389),q=t(95972),K=t(8768),ee=t(13095),ne=t(39647),te=t.n(ne),oe=t(37906),le=t(24905),se="pinfen____hgN7",re="left___ZyTXs",ie="right___OSPEM",ae="tagStyleSzz___fzxbk",ce="headpic___d7fnl",de=t(84449),ue=["Data","layer","type","index"],me=function e(n){var t,o,s,r,i,c,u,v,b,w,N,Z,S,M,C=n.Data,D=n.layer,E=void 0===D?1:D,P=n.type,H=n.index,B=void 0===H?0:H,A=te()(n,ue),W=(0,h.useParams)(),R=(null==A?void 0:A.shixunHomeworks).studentWorkDetail,Y=(0,p.useState)({type:0,show:!1}),V=m()(Y,2),J=V[0],X=V[1],q=(0,p.useState)(null),K=m()(q,2),ee=K[0],ne=K[1],me=(0,Q.U)($.qP,{userId:null==W?void 0:W.userId}),pe=m()(me,3),he=pe[1],xe=pe[2],_e=(0,Q.U)($.R$,{userId:null==W?void 0:W.userId}),fe=m()(_e,3),ve=fe[1],je=fe[2],ge=(0,Q.U)($.QC,{userId:null==W?void 0:W.userId}),ye=m()(ge,3),be=(ye[1],ye[2]),we=(0,Q.U)($.Mf,{userId:null==W?void 0:W.userId}),ke=m()(we,3),Ie=(ke[1],ke[2]),Ne=x.Z.useForm(),Ze=m()(Ne,1)[0],Se=(0,p.useState)(!1),Me=m()(Se,2),Ce=Me[0],Oe=Me[1],Le=function(e){for(var n="",t=0;t<(null==e?void 0:e.length);t++){var o=e[t];n+="".concat(o.name,'').concat(o.score,"分"),t<(null==e?void 0:e.length)-1&&(n+=" + ")}return(0,F.jsx)("span",{dangerouslySetInnerHTML:{__html:n}})};return(0,F.jsxs)("div",{children:[(0,F.jsxs)(j.Z,{wrap:!1,gutter:15,children:[1!=E&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("div",{style:{width:"".concat(40*(E-1),"px")}})}),"appeal_info"==P?(0,F.jsx)(g.Z,{children:(0,F.jsx)("img",{className:"mt10 ".concat(ce),width:40,src:"--"===(null==C||null===(t=C.appeal_info)||void 0===t?void 0:t.user_image_url)?de.xp:"".concat(z.Z.IMG_SERVER,"/images/").concat(null==C||null===(o=C.appeal_info)||void 0===o?void 0:o.user_image_url)})}):(0,F.jsx)(g.Z,{children:(0,F.jsx)("img",{className:"mt10 ".concat(ce),width:40,src:"--"===(null==C||null===(s=C.user_info)||void 0===s?void 0:s.user_image_url)?de.xp:"".concat(z.Z.IMG_SERVER,"/images/").concat(null==C||null===(r=C.user_info)||void 0===r?void 0:r.user_image_url)})}),"appeal_info"==P?(0,F.jsxs)(g.Z,{flex:1,children:[(0,F.jsx)(G.Z,{className:"font14",value:"".concat(null==C||null===(i=C.appeal_info)||void 0===i?void 0:i.user_name,":").concat((null==C||null===(c=C.appeal_info)||void 0===c?void 0:c.content)||"暂未写评语")}),(0,F.jsxs)(j.Z,{className:"c-grey-666 mt5",wrap:!1,align:"middle",gutter:20,children:[(0,F.jsx)(g.Z,{children:T()(null==C||null===(u=C.appeal_info)||void 0===u?void 0:u.time).format("YYYY-MM-DD HH:mm")}),1==(null==C?void 0:C.appeal_status)&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:ae,style:{color:"#3061D0",border:"1px #3061D0 solid"},children:"申诉中"})}),2==(null==C?void 0:C.appeal_status)&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:ae,style:{color:"#999",border:"1px #999 solid"},children:"申诉已撤销"})}),3==(null==C?void 0:C.appeal_status)&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:ae,style:{color:"#3061D0",border:"1px #3061D0 solid"},children:"申诉成功"})}),4==(null==C?void 0:C.appeal_status)&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:ae,style:{color:"#999",border:"1px #999 solid"},children:"申诉被拒绝"})}),5==(null==C?void 0:C.appeal_status)&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:ae,style:{color:"#999",border:"1px #999 solid"},children:"申诉失败"})})]})]}):(0,F.jsxs)(g.Z,{flex:1,children:[(0,F.jsx)(G.Z,{className:"font14",value:"".concat(null==C||null===(v=C.user_info)||void 0===v?void 0:v.user_name,":").concat((null==C?void 0:C.content)||"暂未写评语")}),(0,F.jsxs)(j.Z,{className:"c-grey-666 mt5",wrap:!1,align:"middle",gutter:20,children:[(0,F.jsx)(g.Z,{children:T()((null==C?void 0:C.comment_time)||(null==C?void 0:C.time)).format("YYYY-MM-DD HH:mm")}),(null==C?void 0:C.student_work_num)&&(0,F.jsx)(g.Z,{children:(0,F.jsxs)("span",{style:{padding:"3px",background:"rgba(219,243,224,0.88)",color:"#1FBE3C",fontSize:"12px"},children:["第",null==C?void 0:C.student_work_num,"次提交的作品"]})}),(null==C?void 0:C.score)&&(null==R?void 0:R.single_score)&&(0,F.jsx)(g.Z,{children:(0,F.jsxs)("span",{className:"c-orange",children:[" ",null==C?void 0:C.score,"分 "]})}),!(null!=R&&R.single_score)&&null!==(null==C?void 0:C.score)&&(0,F.jsxs)("div",{className:se,children:[(0,F.jsx)(k.Z,{title:Le(null==C?void 0:C.score_details),overlayInnerStyle:{width:"min-content",whiteSpace:"nowrap",overflow:"visible"},placement:"topLeft",children:(0,F.jsx)("div",{className:re,children:Le(null==C?void 0:C.score_details)})}),(0,F.jsxs)("span",{className:ie,children:[" = 综合得分",(0,F.jsxs)("span",{style:{color:"#FA6400"},children:[null==C?void 0:C.score,"分"]})]})]})]}),(null==C||null===(b=C.attachments)||void 0===b?void 0:b.length)>0&&(0,F.jsx)("div",{className:"mt10",style:{display:"flex",flexDirection:"column",gap:10},children:null==C||null===(w=C.attachments)||void 0===w?void 0:w.map((function(e,n){return(0,F.jsxs)("a",{href:"".concat(z.Z.API_SERVER).concat(e.url),children:[(0,F.jsx)("i",{className:"iconfont icon-fujian font14"}),(0,F.jsx)("span",{className:"ml10",children:null==e?void 0:e.title}),(0,F.jsx)("span",{className:"c-light-black ml20 font12",children:null==e?void 0:e.filesize})]},n)}))})]}),"feedback"!=P&&(0,F.jsx)(F.Fragment,{children:"appeal_info"==P?(0,F.jsx)(g.Z,{style:{whiteSpace:"nowrap"},children:(0,F.jsxs)(j.Z,{wrap:!1,gutter:10,children:[(null==C?void 0:C.delete)&&(null==C?void 0:C.can_appeal)&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:"c-blue current",onClick:function(){var e;f.Z.confirm({centered:!0,title:(0,F.jsxs)("div",{children:["撤销申诉后,无法再对本评阅记录进行申诉",(0,F.jsx)("br",{}),"是否确认撤销申诉"]}),onOk:(e=a()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(null==A?void 0:A.getInitData)&&(null==A||A.getInitData());case 1:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},children:"撤销申诉"})}),1==(null==C?void 0:C.appeal_status)&&(0,U.GJ)()&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:"c-blue current mr10",onClick:function(){Oe(!0)},children:"接受申诉"})}),1==(null==C?void 0:C.appeal_status)&&(0,U.GJ)()&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:"c-red current",onClick:function(){var e;f.Z.confirm({centered:!0,title:(0,F.jsxs)("div",{children:["此匿评成绩将被认为合理",(0,F.jsx)("br",{}),"是否确认拒绝申诉"]}),onOk:(e=a()(l()().mark((function e(){var n;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,O.ZP)("/api/student_works/".concat(W.userId,"/deal_appeal_score.json"),{method:"post",body:{score_id:null==C?void 0:C.score_id,status:4}});case 2:0===(null==(n=e.sent)?void 0:n.status)&&(null==A?void 0:A.getInitData)&&(null==A||A.getInitData());case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},children:"拒绝申诉"})})]})}):(0,F.jsxs)(F.Fragment,{children:[(1==E||"teacher"==P)&&(0,F.jsx)(g.Z,{style:{whiteSpace:"nowrap"},children:(0,F.jsxs)(j.Z,{wrap:!1,gutter:10,children:[(null==C?void 0:C.delete)&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:"c-blue current",onClick:function(){!function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C;f.Z.confirm({title:"是否确认删除?",centered:!0,onOk:(e=a()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,be({score_id:null==n?void 0:n.comment_id});case 2:0===e.sent.status&&(_.ZP.success("删除成功"),(null==A?void 0:A.getInitData)&&(null==A||A.getInitData()));case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})}(C)},children:"删除"})}),(null==C?void 0:C.can_appeal)&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:"c-blue current",onClick:function(){X({type:1,show:!0})},children:"申诉"})}),(null==C?void 0:C.can_reply)&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:"c-blue current",onClick:function(){X({type:0,show:!0})},children:"回复"})}),(1==E&&!(null!=C&&C.can_reply)||!(null!=C&&C.can_reply)&&"teacher"==P&&0!=B)&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:"c-light-black",children:"失效"})})]})}),1!=E&&(null==C?void 0:C.can_delete)&&"teacher"!=P&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:"c-blue current",onClick:function(){!function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C;f.Z.confirm({title:"是否确认删除?",centered:!0,onOk:(e=a()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ie({object_id:n.id,object_type:"journals_for_message"});case 2:0===e.sent.status&&(_.ZP.success("删除成功"),(null==A?void 0:A.getInitData)&&(null==A||A.getInitData()));case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})}(C)},children:"删除"})})]})})]}),1==E&&(null==C?void 0:C.appeal_info)&&""!=(null==C?void 0:C.appeal_info)&&(0,F.jsx)("div",{className:"mt20",style:{display:"flex",flexDirection:"column",gap:"20px"},children:(0,F.jsx)(e,d()({type:"appeal_info",Data:C,layer:E+1},A))}),1==E&&(null==C||null===(N=C.journals)||void 0===N?void 0:N.length)>0&&(0,F.jsx)("div",{className:"mt20",style:{display:"flex",flexDirection:"column",gap:"20px"},children:null==C||null===(Z=C.journals)||void 0===Z?void 0:Z.map((function(n,t){return(0,F.jsx)(e,d()({type:P,Data:n,layer:E+1},A),t)}))}),(null==J?void 0:J.show)&&(0,F.jsxs)("div",{className:"mt20",style:{marginLeft:"56px"},children:[(0,F.jsx)(L.Z,{height:150,isFocus:!0,watch:!0,onChange:function(e){ne(e)}}),(0,F.jsxs)(j.Z,{align:"middle",justify:"end",gutter:20,children:[(0,F.jsx)(g.Z,{children:(0,F.jsx)(y.ZP,{onClick:function(){X({type:0,show:!1})},children:"取消"})}),(0,F.jsx)(g.Z,{children:(0,F.jsx)(y.ZP,{loading:he||ve,type:"primary",onClick:a()(l()().mark((function e(){var n;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==ee){e.next=3;break}return _.ZP.error("请输入内容"),e.abrupt("return");case 3:if("teacher"!=P){e.next=15;break}return e.next=6,null==J?void 0:J.type;case 6:if(e.t0=e.sent,0!=e.t0){e.next=11;break}e.t1=xe({hidden_comment:ee,score_id:null==C?void 0:C.score_id}),e.next=12;break;case 11:e.t1=je({comment:ee,score_id:null==C?void 0:C.score_id});case 12:n=e.t1,e.next=18;break;case 15:return e.next=17,(0==(null==J?void 0:J.type)?xe:je)({comment:ee,score_id:null==C?void 0:C.score_id});case 17:n=e.sent;case 18:0===n.status&&(_.ZP.success("操作成功"),X({type:0,show:!1}),(null==A?void 0:A.getInitData)&&(null==A||A.getInitData()));case 19:case"end":return e.stop()}}),e)}))),children:0==(null==J?void 0:J.type)?"回复":"申诉"})})]})]}),(0,F.jsx)(f.Z,{title:"接受申诉",open:Ce,centered:!0,destroyOnClose:!0,onCancel:function(){Oe(!1)},maskClosable:!1,width:544,onOk:function(){Ze.submit()},children:(0,F.jsxs)(x.Z,{form:Ze,colon:!1,onFinish:function(){var e=a()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,O.ZP)("/api/student_works/".concat(W.userId,"/deal_appeal_score.json"),{method:"post",body:d()(d()({},n),{},{userId:W.userId,score_id:null==C?void 0:C.score_id,status:3})});case 2:0===e.sent.status&&(Oe(!1),(null==A?void 0:A.getInitData)&&(null==A||A.getInitData()));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,F.jsx)("div",{style:{color:"#191919"},children:"确认是否接受申诉?一旦接受,被申诉的评分记录将作废。请您补充匿评评分:"}),(0,F.jsx)(oe.Z,{style:{marginTop:"20px"},colon:!1,items:[{key:"1",label:"申诉人",children:(0,F.jsx)("span",{children:null==C||null===(S=C.appeal_info)||void 0===S?void 0:S.user_name})},{key:"2",label:"被申诉人",children:(0,F.jsx)("span",{style:{color:"#191919"},children:null==C||null===(M=C.user_info)||void 0===M?void 0:M.user_name})},{key:"3",label:"被申诉人评分",children:(0,F.jsx)("span",{style:{color:"#191919"},children:null==C?void 0:C.score})}]}),(0,F.jsxs)(j.Z,{className:"mt20",wrap:!1,children:[(0,F.jsx)(g.Z,{children:(0,F.jsx)(x.Z.Item,{label:"匿评分数",name:"score",rules:[{required:!0,message:"请输入分数"}],children:(0,F.jsx)(I.Z,{min:1,max:100,step:1})})}),(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:"ml10",style:{lineHeight:"30px"},children:"分"})}),(0,F.jsx)(g.Z,{children:(0,F.jsx)(x.Z.Item,{className:"ml20",valuePropName:"checked",name:"is_appeal_penalty",initialValue:!0,children:(0,F.jsx)(le.Z,{children:"扣除违规匿评分数"})})})]})]})})]})},pe=(0,h.connect)((function(e){var n=e.shixunHomeworks,t=e.loading,o=e.user;return{shixunHomeworks:n,globalSetting:e.globalSetting,user:o,loading:t.effects}}))((function(e){var n,t,o,s,i,c,u,P,ne,te,oe,le,se,re,ie,ae,ce,de,ue,pe,he,xe=e.shixunHomeworks,_e=(e.globalSetting,e.loading),fe=e.user,ve=e.dispatch,je=(0,h.useSearchParams)(),ge=m()(je,1)[0],ye=(0,h.useParams)(),be=x.Z.useForm(),we=m()(be,1)[0],ke=x.Z.useForm(),Ie=m()(ke,1)[0],Ne=fe.userInfo,Ze=xe.studentWorkDetail,Se=xe.studentWorkCommon,Me=(xe.studentWorkSupplyDetail,xe.workList),Ce=xe.workDetail,Oe=xe.actionTabs,Le=(0,Q.U)($.wT,{userId:null==ye?void 0:ye.userId}),De=m()(Le,4),Ee=De[1],Pe=De[2],Te=De[3],ze=(0,Q.U)($.Wr,{userId:null==ye?void 0:ye.userId}),$e=m()(ze,4),Fe=$e[1],He=$e[2],Be=$e[3],Ge=(0,Q.U)($.G$,{userId:null==ye?void 0:ye.userId,id:null==ye?void 0:ye.userId}),Ae=m()(Ge,3),We=Ae[1],Re=Ae[2],Ye=(0,p.useState)("1"),Ue=m()(Ye,2),Ve=Ue[0],Je=Ue[1],Qe=(0,p.useState)(!1),Xe=m()(Qe,2),qe=Xe[0],Ke=Xe[1],en=(0,p.useState)(!1),nn=m()(en,2),tn=nn[0],on=nn[1],ln=(0,p.useState)({last:!1}),sn=m()(ln,2),rn=sn[0],an=sn[1],cn=(0,p.useState)({last:!1}),dn=m()(cn,2),un=dn[0],mn=dn[1],pn=(0,p.useRef)(),hn=(0,p.useState)(!1),xn=m()(hn,2),_n=xn[0],fn=xn[1],vn=(0,p.useState)(""),jn=m()(vn,2),gn=jn[0],yn=jn[1],bn=(0,p.useState)([]),wn=m()(bn,2),kn=wn[0],In=wn[1],Nn=(0,p.useState)([]),Zn=m()(Nn,2),Sn=(Zn[0],Zn[1]),Mn=(0,p.useState)(!1),Cn=m()(Mn,2),On=Cn[0],Ln=Cn[1],Dn=(0,p.useRef)(),En=(0,p.useState)(!1),Pn=m()(En,2),Tn=Pn[0],zn=Pn[1],$n=(0,p.useState)(""),Fn=m()($n,2),Hn=Fn[0],Bn=Fn[1],Gn=(0,p.useState)(!1),An=m()(Gn,2),Wn=An[0],Rn=An[1],Yn=(0,p.useState)(!1),Un=m()(Yn,2),Vn=Un[0],Jn=Un[1],Qn=(0,p.useState)(""),Xn=m()(Qn,2),qn=Xn[0],Kn=Xn[1],et=(0,p.useState)({content:"",type:""}),nt=m()(et,2),tt=nt[0],ot=nt[1],lt=(0,p.useState)({status:0}),st=m()(lt,2),rt=st[0],it=st[1],at=[{title:"提交次数",dataIndex:"id",ellipsis:!0,width:80,render:function(e,n,t){return t+1}},{title:"提交时间",dataIndex:"commit_time",ellipsis:!0,render:function(e){return T()(e).format("YYYY-MM-DD HH:mm")}},{title:"提交阶段",dataIndex:"stage_name",ellipsis:!0,render:function(e,n){return(0,F.jsxs)(F.Fragment,{children:[e,(null==n?void 0:n.is_redo)&&(0,F.jsx)("span",{style:{color:"#FF9D18"},children:"(打回)"})]})}},{title:"教师评分",dataIndex:"teacher_score",ellipsis:!0},{title:"助教评分",dataIndex:"teaching_asistant_score",ellipsis:!0},{title:"匿评得分",dataIndex:"student_score",ellipsis:!0},{title:"操作",dataIndex:"history_id",ellipsis:!0,width:80,align:"right",render:function(e,n){return(0,F.jsx)("a",{target:"_blank",href:"/classrooms/".concat(null==ye?void 0:ye.coursesId,"/common_homework/").concat(null==ye?void 0:ye.categoryId,"/review/").concat(null==n?void 0:n.student_work_id,"?history_id=").concat(null==n?void 0:n.history_id),children:"查看"})}}],ct=[{id:0,name:"全部点评(".concat((null==Se||null===(n=Se.comment_scores)||void 0===n?void 0:n.length)||0,")"),isShow:(0,U.RV)()||(null==Ze||null===(t=Ze.homework_status)||void 0===t?void 0:t.includes("匿评中"))||(null==Ze||null===(o=Ze.homework_status)||void 0===o?void 0:o.includes("申诉中"))},{id:1,name:"仅课堂老师可见(".concat((null==Se||null===(s=Se.hidden_comment_scores)||void 0===s?void 0:s.length)||0,")"),isShow:(0,U.GJ)()}].filter((function(e){return e.isShow})),dt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{key:""};ve({type:"shixunHomeworks/setActionTabs",payload:e}),""===e.key&&(we.resetFields(),Ie.resetFields())},ut=function(){ve({type:"shixunHomeworks/getStudentWorkCommon",payload:d()({},ye)})},mt=function(e){for(var n=0,t=0;t",children:[(0,F.jsx)(v.Z.Item,{children:(0,F.jsx)(h.Link,{to:"/classrooms/".concat(ye.coursesId,"/common_homework/").concat(null!=Ze&&null!==(i=Ze.category)&&void 0!==i&&i.main?"":null==Ze||null===(c=Ze.category)||void 0===c?void 0:c.category_id),children:null==Ne||null===(u=Ne.course)||void 0===u?void 0:u.course_name})}),(0,F.jsx)(v.Z.Item,{children:(0,F.jsx)(h.Link,{to:"/classrooms/".concat(ye.coursesId,"/common_homework/").concat(null!=Ze&&null!==(P=Ze.category)&&void 0!==P&&P.main?"":null==Ze||null===(ne=Ze.category)||void 0===ne?void 0:ne.category_id),children:null==Ze||null===(te=Ze.category)||void 0===te?void 0:te.category_name})}),(0,F.jsx)(v.Z.Item,{children:(0,F.jsx)(h.Link,{to:"/classrooms/".concat(ye.coursesId,"/common_homework/").concat(ye.categoryId,"/detail"),children:"作业详情"})}),(0,F.jsx)(v.Z.Item,{children:null==Ze?void 0:Ze.author_name})]})}),(0,F.jsxs)("aside",{className:[B.title,"mt20"].join(" "),children:[(0,F.jsxs)(j.Z,{style:{width:"100%"},children:[(0,F.jsxs)(g.Z,{flex:"1",children:[(0,F.jsx)(h.Link,{to:"/classrooms/".concat(ye.coursesId,"/common_homework"),children:(0,F.jsx)(S.Z,{className:"font16 c-black"})}),(0,F.jsx)("strong",{className:"font20 ml5",children:null==Ze?void 0:Ze.homework_name}),(0,F.jsx)(Y.VV,{status:null==Ze?void 0:Ze.homework_status})]}),!qn&&(0,F.jsx)(g.Z,{children:(0,U.dE)()&&(null==Ze||null===(oe=Ze.homework_status)||void 0===oe?void 0:oe.includes("补交中"))&&(0,F.jsx)("span",{onClick:function(){null==Ze||!Ze.can_submit||null!=Ze&&Ze.submit_size?ve({type:"classroomList/setActionTabs",payload:{key:"补交附件",params:ye,selectArrs:{homework_id:ye.commonHomeworkId,work_id:ye.userId}}}):_.ZP.warning("您的作品提交机会已用完。如需继续修改,请联系指导老师或平台运营。")},className:"c-blue current font14",children:"补交附件"})})]}),!qn&&(0,U.G5)()&&(0,F.jsxs)("div",{style:{display:"flex"},children:[(0,F.jsx)(y.ZP,{className:"mr10",icon:(0,F.jsx)(M.Z,{}),onClick:function(){return ft(!1)},children:"导出答题记录与附件"}),(0,F.jsx)(y.ZP,{icon:(0,F.jsx)(M.Z,{}),onClick:function(){return ft(!0)},children:"导出全部学生答题记录与附件"})]})]})]}),(0,F.jsx)(b.Z,{spinning:Fe||!!_e["shixunHomeworks/getStudentWorkDetail"]||!!_e["shixunHomeworks/getStudentWorkSupplyDetail"],children:(0,F.jsxs)(w.Z,{className:B.TabsStyle,destroyInactiveTabPane:!0,defaultActiveKey:"1",activeKey:Ve,tabBarExtraContent:(0,F.jsx)(F.Fragment,{children:!qn&&(null==Ze?void 0:Ze.commit_count)>1&&(0,F.jsx)(y.ZP,{icon:(0,F.jsx)("i",{className:"iconfont icon-tijiaozongjie"}),loading:Ee,onClick:a()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Pe({},!0);case 2:dt({key:"提交作品记录"});case 3:case"end":return e.stop()}}),e)}))),children:"提交作品记录"})}),onChange:function(e){Je(e),"2"==e&&h.history.push("/classrooms/".concat(ye.coursesId,"/common_homework/").concat(ye.categoryId,"/lab-report-view/").concat(ye.userId)),"3"==e&&He({})},children:[(0,F.jsx)(w.Z.TabPane,{tab:(0,F.jsxs)("span",{style:{position:"relative"},children:["作业详情",qn&&(0,F.jsxs)("span",{style:{position:"absolute",left:"130%",padding:"3px",background:"rgba(219,243,224,0.88)",color:"#1FBE3C",fontSize:"12px"},children:["第",null==Ze?void 0:Ze.commit_count,"次提交的作品"]})]}),children:(0,F.jsxs)("div",{className:"pl30 pr30 pb20 bg-white",children:[(0,F.jsxs)("div",{className:"pt20 pb20",style:{borderBottom:"1px solid #DFDFDF"},children:[(0,F.jsx)("div",{className:"font18 blod",children:"作业描述"}),(0,F.jsx)(G.Z,{className:"mt10",value:(null==Ce?void 0:Ce.description)||"暂无~"}),(0,F.jsx)(ee.Z,{authority:(0,U.GJ)(),showDimensions:!1,dataSource:null==Ce?void 0:Ce.attachments,callback:function(){ve({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:ye.categoryId}})}})]}),(0,F.jsxs)("div",{className:"mt20",children:[(0,F.jsxs)(j.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,F.jsx)(g.Z,{children:(0,F.jsxs)("span",{className:"font18 blod",children:["学生作业",(0,F.jsx)(k.Z,{title:(0,F.jsx)("span",{className:"font14",children:"(当前支持批注的文档类型:.docx、.xlsx、.pptx)"}),children:(0,F.jsx)("i",{className:"iconfont icon-tishixiaowenhao ml10 font14 c-grey-999 current",style:{lineHeight:"18px"}})})]})}),(0,F.jsxs)(g.Z,{children:[(null==Ze?void 0:Ze.commit_time)&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{className:" c-light-black",children:T()(null==Ze?void 0:Ze.commit_time).format("YYYY-MM-DD HH:mm")}),(0,F.jsx)("span",{className:"ml10",children:null==Ze?void 0:Ze.commit_user_name}),(0,F.jsx)("span",{className:"ml10 c-light-black",children:"提交"})]}),(null==Ze?void 0:Ze.update_time)&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{className:"ml30 c-light-black",children:T()(null==Ze?void 0:Ze.update_time).format("YYYY-MM-DD HH:mm")}),(0,F.jsx)("span",{className:"ml10",children:null==Ze?void 0:Ze.update_user_name}),(0,F.jsx)("span",{className:"ml10 c-light-black",children:"更新"})]})]})]}),(0,F.jsx)(G.Z,{className:"mt10",value:(null==Ze?void 0:Ze.description)||"暂无~"}),(0,F.jsx)(ee.Z,{authority:(0,U.GJ)(),dataSource:null==Ze?void 0:Ze.attachments,callback:function(){ve({type:"shixunHomeworks/getStudentWorkDetail",payload:d()({},ye)})}})]})]})},"1"),!qn&&(0,U.j5)()&&(0,F.jsx)(w.Z.TabPane,{tab:"实验报告"},"2"),(null==Ze?void 0:Ze.anonymous_comment)&&!qn&&(0,F.jsx)(w.Z.TabPane,{tab:"问题反馈",children:(0,F.jsx)("div",{style:{background:"#fff",display:"flex",flexDirection:"column",padding:"10px 30px 30px 30px"},children:(null==Be||null===(le=Be.data)||void 0===le?void 0:le.count)>0?(0,F.jsx)(F.Fragment,{children:null==Be||null===(se=Be.data)||void 0===se||null===(se=se.list)||void 0===se?void 0:se.map((function(e,n){return(0,F.jsx)(me,{type:"feedback",Data:d()(d()({},e),{},{time:null==e?void 0:e.created_at,user_info:{user_image_url:e.avatar_url,user_id:e.user_id,user_name:e.real_name}}),getInitData:ut,shixunHomeworks:xe},n)}))}):(0,F.jsx)(X.Z,{})})},"3")]})}),((0,U.RV)()||(null==Ze||null===(re=Ze.homework_status)||void 0===re?void 0:re.includes("匿评中")))&&(0,F.jsxs)("div",{className:"mt20 pt20 pb20 pl30 pr30 bg-white",children:[!qn&&"1"==Ve&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(j.Z,{gutter:20,justify:"end",children:(0,U.GJ)()&&(null==Se?void 0:Se.ultimate)&&(0,F.jsx)(g.Z,{children:(0,F.jsx)(y.ZP,{type:"primary",onClick:function(){dt({key:"调分",selectArrs:Ze,id:ye.userId,params:ye})},children:"调分"})})}),!Se.is_author&&!(null!=Se&&Se.ultimate)&&((0,U.GJ)()||(null==Ze||null===(ie=Ze.homework_status)||void 0===ie?void 0:ie.includes("匿评中")))&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(x.Z,{form:we,layout:"vertical",size:"large",style:{position:"relative"},scrollToFirstError:!0,onFinish:function(e){pt(e)},children:[null!=Ze&&Ze.single_score?(0,F.jsx)(x.Z.Item,{name:"score",label:"评分",rules:[{required:!(0,U.GJ)(),message:"请填写分数"}],children:(0,F.jsx)(I.Z,{step:.1,min:0,style:{width:135},placeholder:"请填写分数",suffix:"分"})}):(0,F.jsx)(x.Z.Item,{name:"score",label:"评分",rules:[{required:!(0,U.GJ)(),message:"请填写分数"}],children:(0,F.jsxs)(g.Z,{span:24,children:[(0,F.jsx)("div",{className:B.ratewarp,children:null==Ze||null===(ae=Ze.score_details)||void 0===ae?void 0:ae.map((function(e,n){return(0,F.jsxs)("div",{className:B.item,children:[(0,F.jsx)("span",{children:e.name}),(0,F.jsxs)("span",{children:["(满分",e.score,"分)"]}),(0,F.jsx)(I.Z,{min:0,max:e.score,controls:!1,style:{width:135},suffix:"分",onChange:function(e){kn[n].score=e||0==e?Number(e.toFixed(2)):"",In(r()(kn))}})]})}))}),(0,F.jsxs)("div",{className:B.total,children:[(0,F.jsx)("span",{className:B.a1,children:"综合得分"}),(0,F.jsxs)("span",{className:B.a2,children:[_n?"--":mt(kn),"分"]}),(0,F.jsx)("span",{className:B.a3,children:"(满分100分)"})]})]})}),(null==Me?void 0:Me.is_new_rule)&&(0,U.G5)()&&-1!==Ze.work_status&&0!==Ze.work_status&&(0,F.jsx)(g.Z,{style:{position:"absolute",right:0,top:14},children:(0,F.jsx)(y.ZP,{type:"primary",onClick:function(){dt({key:"确认打回重做"})},children:" 打回重做 "})}),!(null!=Me&&Me.is_new_rule)&&(0,U.G5)()&&["提交中","补交中","进行中"].some((function(e){var n;return null==Ze||null===(n=Ze.homework_status)||void 0===n?void 0:n.includes(e)}))&&(0,F.jsx)(g.Z,{style:{position:"absolute",right:0,top:14},children:(0,F.jsx)(y.ZP,{type:"primary",onClick:function(){dt({key:"确认打回重做"})},children:" 打回重做 "})}),(null==Me?void 0:Me.is_new_rule)&&!(null!=Ze&&Ze.is_author)&&(0,U.dE)()&&(null==Ze||null===(ce=Ze.homework_status)||void 0===ce?void 0:ce.includes("匿评中"))&&"review"!==ge.get("review")&&(0,F.jsx)(g.Z,{style:{position:"absolute",right:0,top:14},children:(0,F.jsx)(y.ZP,{type:"primary",onClick:function(){dt({key:"问题反馈"})},children:" 问题反馈 "})}),(0,F.jsx)("div",{onClick:function(){return Ke(!0)},children:(0,F.jsx)(x.Z.Item,{name:"comment",label:"评语",rules:[{required:!(0,U.GJ)(),message:"请填写分数"}],children:(0,F.jsx)(q.x,{placeholder:"请在此输入对本作品的评语,最大限制2000个字符",isEdit:qe})})}),(0,F.jsx)(x.Z.Item,{name:"attachment_ids",children:(0,F.jsx)(W.Z,{})}),(0,U.GJ)()&&(0,F.jsx)("div",{onClick:function(){return on(!0)},children:(0,F.jsx)(x.Z.Item,{label:"仅课堂老师可见",name:"hidden_comment",children:(0,F.jsx)(q.x,{placeholder:"请输入评语",isEdit:tn})})})]}),(0,F.jsxs)("div",{className:"".concat(B.buttonFixed),children:[" ",(0,F.jsx)("div",{className:"edu-container",children:(0,F.jsxs)(j.Z,{wrap:!1,justify:"space-between",align:"middle",children:[(0,F.jsxs)(g.Z,{children:[" ",(0,F.jsx)(y.ZP,{onClick:function(){return ht("list")},children:" 返回列表 "})," "]}),(0,F.jsxs)(g.Z,{children:[(0,F.jsx)(y.ZP,{onClick:function(){return ht("last")},disabled:null==un?void 0:un.last,children:" 上一个 "}),(0,F.jsx)(y.ZP,{className:"ml20",disabled:null==rn?void 0:rn.last,onClick:function(){return ht("read")},children:" 下一个 "}),(0,F.jsx)(y.ZP,{className:"ml20",loading:On,type:"primary",onClick:function(){we.submit()},children:" 提交评阅 "})]})]})})]})]})]}),(0,F.jsx)(K.tp,{dataSource:ct,value:null==rt?void 0:rt.status,onChange:function(e){it(d()(d()({},rt),{},{status:e}))}}),(0,F.jsxs)("div",{className:"mt20 p20",style:{background:"#F6F7F9",display:"flex",flexDirection:"column",gap:"20px"},children:[!(null!==(de=0==(null==rt?void 0:rt.status)?null==Se?void 0:Se.comment_scores:null==Se?void 0:Se.hidden_comment_scores)&&void 0!==de&&de.length)&&(0,F.jsx)(X.Z,{styles:{margin:"50px auto"}}),null===(ue=0==(null==rt?void 0:rt.status)?null==Se?void 0:Se.comment_scores:null==Se?void 0:Se.hidden_comment_scores)||void 0===ue?void 0:ue.map((function(e,n){return(0,F.jsx)(me,{index:n,type:1==rt.status&&"teacher",Data:d()(d()({},e),{},{user_info:{user_image_url:e.user_image_url,user_login:e.user_login,user_name:e.user_name}}),getInitData:ut,shixunHomeworks:xe},n)}))]})]}),"1"==Ve&&(null==Ze?void 0:Ze.anonymous_comment)&&(0,U.G5)()&&(0,F.jsxs)("section",{className:"bg-white mt30 p30",children:[(0,F.jsx)("p",{children:"匿评学生"}),!(null==Ze||null===(pe=Ze.no_commented_user_names)||void 0===pe||!pe.length)&&(0,F.jsxs)("p",{children:["未完成匿评:",null==Ze?void 0:Ze.no_commented_user_names.join("、")]}),(0,F.jsxs)("div",{children:["已完成匿评:",null==Ze||null===(he=Ze.commented_user_names)||void 0===he?void 0:he.join("、")]})]}),qn&&(0,F.jsxs)("div",{className:"".concat(B.buttonFixed),children:[" ",(0,F.jsx)("div",{className:"edu-container",children:(0,F.jsx)(j.Z,{wrap:!1,justify:"space-between",align:"middle",children:(0,F.jsxs)(g.Z,{children:[(0,F.jsx)(y.ZP,{onClick:function(){h.history.push("/classrooms/".concat(null==ye?void 0:ye.coursesId,"/common_homework/").concat(null==ye?void 0:ye.categoryId,"/detail"))},children:" 返回列表 "})," "]})})})]}),(0,F.jsx)(H,{}),(0,F.jsx)(R,{studentWorkDetail:Ze}),(0,F.jsx)(C.Z,{}),(0,F.jsx)(f.Z,{title:"确认打回重做",open:"确认打回重做"==(null==Oe?void 0:Oe.key),destroyOnClose:!0,forceRender:!0,width:700,onCancel:function(){dt()},onOk:a()(l()().mark((function e(){var n;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(gn){e.next=3;break}return _.ZP.info("评语不能为空"),e.abrupt("return");case 3:return e.next=5,(0,O.ZP)("/api/student_works/".concat(ye.userId,"/redo_modal.json"),{method:"post",body:{comment:gn,id:ye.userId}});case 5:0===(null==(n=e.sent)?void 0:n.status)&&(_.ZP.info("打回重做成功"),dt(),ut());case 7:case"end":return e.stop()}}),e)}))),children:(0,F.jsxs)("div",{style:{padding:"32px"},children:[(0,F.jsxs)("span",{children:["确认将",null==Ze?void 0:Ze.author_name,"的作业打回重做吗"]}),(0,F.jsxs)("div",{style:{marginTop:"20px"},children:[(0,F.jsxs)("label",{children:[(0,F.jsx)("span",{style:{marginRight:"5px",color:"red"},children:"*"}),"评语:"]}),(0,F.jsx)(L.Z,{className:B.MdEditor,onChange:function(e){return yn(e)},defaultValue:"",height:250})]})]})}),(0,F.jsx)(E.Z,{close:!0,data:null==tt?void 0:tt.content,type:null==tt?void 0:tt.type,hasMask:!0,monacoEditor:{value:Dn.current,language:"txt",onChange:function(){},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onClose:function(){return ot({content:"",type:""})}}),(0,F.jsxs)(f.Z,{width:675,title:"请选择需要导出的格式",open:Tn,confirmLoading:Wn,centered:!0,onCancel:function(){return zn(!1)},onOk:function(){"附件"==Hn?Vn?xt(!1):_t(!1):"批注"==Hn&&(Vn?xt(!0):_t(!0))},children:[(0,F.jsx)("div",{className:B.export_type_modal_title,children:"本次导出包含学生提交的答题记录以及提交的附件,请选择导出附件类型"}),(0,F.jsxs)("div",{className:B.export_type_modal,children:[(0,F.jsxs)("div",{className:B.export_type_modal_con,children:[(0,F.jsxs)("div",{className:"".concat(B.type_item," ").concat("附件"==Hn?B.type_item_active:""),onClick:function(){return Bn("附件")},children:[(0,F.jsx)("div",{className:"".concat(B.img_warp),children:(0,F.jsx)("img",{src:V.Z,width:72,height:80})}),(0,F.jsx)("span",{children:"学生提交的附件"})]}),(0,F.jsxs)("div",{className:"".concat(B.type_item," ").concat("批注"==Hn?B.type_item_active:""),onClick:function(){return Bn("批注")},children:[(0,F.jsx)("div",{className:"".concat(B.img_warp),children:(0,F.jsx)("img",{src:J.Z,width:99,height:80})}),(0,F.jsx)("span",{children:"包含批注内容的附件"})]})]}),(0,F.jsx)("div",{className:B.export_type_modal_waring,children:"如学生未上传附件,仅会导出该学生提交的答题记录"})]})]}),(0,F.jsx)(f.Z,{title:null==Oe?void 0:Oe.key,open:"提交作品记录"==(null==Oe?void 0:Oe.key),centered:!0,destroyOnClose:!0,width:969,footer:null,onCancel:function(){return dt()},children:(0,F.jsx)(N.Z,{locale:{emptyText:(0,F.jsx)(X.Z,{})},columns:at,dataSource:null==Te?void 0:Te.student_works,pagination:!1})}),(0,F.jsx)(f.Z,{title:null==Oe?void 0:Oe.key,open:"问题反馈"==(null==Oe?void 0:Oe.key),centered:!0,destroyOnClose:!0,width:640,onCancel:function(){dt()},confirmLoading:We,onOk:function(){Ie.submit()},children:(0,F.jsxs)(x.Z,{form:Ie,onFinish:function(){var e=a()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Re({student_work_feedback:d()({},n)});case 2:0==(null==(t=e.sent)?void 0:t.status)&&(_.ZP.success("提交成功"),dt(),ut());case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,F.jsx)(x.Z.Item,{name:"content",rules:[{required:!0,message:"请输入内容"}],children:(0,F.jsx)(Z.Z.TextArea,{rows:4,placeholder:"例如:作品提交的附件不清晰",maxLength:200})}),(0,F.jsx)(x.Z.Item,{noStyle:!0,children:" 如果作品无法匿评,请描述问题并点击“确定”按钮进行反馈。反馈后系统将不会扣除缺评分数。"})]})})]})}))},7061:function(e,n,t){t(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;n.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTkiIGhlaWdodD0iODAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNjIuNyA3OS42SDBWOC41aDM5LjNsMjMuNCAxOC40eiIgZmlsbD0iI0YwQTIyMSIvPjxwYXRoIGQ9Ik03MS40IDcxLjFIOC43VjBoNDQuNGwxOC4zIDE4eiIgZmlsbD0iI0YxQzg0QyIvPjxwYXRoIGQ9Ik01My4zIDcuM3YxMS41aDExLjV6IiBmaWxsPSIjRkZGIi8+PHBhdGggZD0iTTM0LjkgMTMuOWgtMTd2NC42aDE3ek00NS45IDI3aC0yOHY0LjZoMjh6TTQ1LjkgNDAuNmgtMjh2NC42aDI4ek00NS45IDUzLjdoLTI4djQuN2gyOHoiIGZpbGw9IiNGMEEyMjEiLz48cGF0aCBkPSJNNjUgMzJINTB2NC42aDE1ek02NSA0NS42SDUwdjQuNmgxNXpNNjUgNTguN0g1MHY0LjdoMTV6IiBmaWxsPSIjRkZGIi8+PGc+PHBhdGggZD0iTTYwIDU2LjVjLjcgNC4zLTEgOC4zLTEgOC4zczQtMS43IDguMy0xYzAgMCAxLjQtNC41IDUuMi0xMEw3MCA1MS4yYy01LjUgMy45LTEwIDUuMy0xMCA1LjNaIiBmaWxsPSIjMDAwIi8+PHBhdGggZD0ibTY0IDU5LjIgNy4xLTcuMS41LjUtNy4xIDcuMXoiIGZpbGw9IiNGOUE1NEMiLz48cGF0aCBkPSJNNjIuOCA1OS44YzAgLjcuNSAxLjIgMS4yIDEuMnMxLjItLjUgMS4yLTEuMi0uNS0xLjItMS4yLTEuMi0xLjIuNi0xLjIgMS4yWiIgZmlsbD0iI0ZGRiIvPjxwYXRoIGQ9Ik03MS42IDU1LjhjNC0yLjYgNi43LTQuNSAxMi42LTEwLjUgMTAuMi0xMC4yIDE2LTE4LjMgMTQuMy0yMC0xLjctMS43LTkuNSAzLjgtMjAgMTQuMy02IDYtNy42IDguNi0xMC41IDEyLjZsMy42IDMuNloiIGZpbGw9IiMzMjRBNUUiLz48cGF0aCBkPSJtNzggMzkuOCA1LjcgNS43LjUtLjUgMS40LTEuNC01LjYtNS43LTEuNCAxLjQtLjYuNVptMTAuNS01LjdjLS41LjItMS4yLjctMS43IDEuNC0xLjIgMS4yLTEuOSAyLjQtMS43IDIuOS41LjUgMS43LS41IDIuOS0xLjcuNy0uNyAxLjItMS4yIDEuNC0xLjdsNi4yLTYuMiAxLjQgMS40YzEuNy0yLjYgMi4xLTQuNSAxLjQtNS0uNS0uNS0yLjYtLjItNSAxLjRsMS42IDEuNi02LjUgNS45WiIgZmlsbD0iI0ZGQzY1QiIvPjwvZz48ZyBmaWxsPSIjRkZGIj48cGF0aCBkPSJtNDkuNiAzNi40LTMuOC0zLjlIMTh2LTFoMjguMmw0LjIgNC4xeiIvPjwvZz48ZyBmaWxsPSIjRkZGIj48cGF0aCBkPSJtNDkuNiA1MC40LTMuOC0zLjlIMTh2LTFoMjguMmw0LjIgNC4xeiIvPjwvZz48ZyBmaWxsPSIjRkZGIj48cGF0aCBkPSJtNDkuNiA2NC40LTMuOC0zLjlIMTh2LTFoMjguMmw0LjIgNC4xeiIvPjwvZz48L2c+PC9zdmc+"},84968:function(e,n,t){t(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;n.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIiIGhlaWdodD0iODAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBmaWxsPSIjRjBBMjIxIiBkPSJNNjIuNjk4IDc5LjYzMUguMDRWOC41MzRoMzkuMjJsMjMuNDM4IDE4LjMzMnoiLz48cGF0aCBkPSJNNzEuMzg3IDcxLjFIOC43M1YuMDA1aDQ0LjMyNmwxOC4zMzcgMTguMDN2NTMuMDY3aC0uMDA1Wk01My4zMzEgNy4zMzZ2MTEuNDhoMTEuNDhMNTMuMzMgNy4zMzVabS04LjM2NyA2LjUzNkgxNy45Mzh2NC42MjNoMjcuMDI2VjEzLjg3Wk02Mi4yNiAyNy4wMjRIMTcuODU3djQuNjIzSDYyLjI2di00LjYyM1ptMCAxMy41NTFIMTcuODU3djQuNjIzSDYyLjI2di00LjYyM1ptMCAxMy4xNThIMTcuODU3djQuNjIzSDYyLjI2di00LjYyM1oiIGZpbGw9IiNGMUM4NEMiLz48L2c+PC9zdmc+"},84481:function(e,n){n.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},66104:function(e,n,t){t.d(n,{Z:function(){return C}});var o=t(92310),l=t.n(o),s=t(55401),r=t(87147),i=t(59301),a=t(92343),c=t(36355),d=t(43501),u=t(91857);const m=e=>{let{children:n}=e;const{getPrefixCls:t}=i.useContext(c.E_),o=t("breadcrumb");return i.createElement("li",{className:`${o}-separator`,"aria-hidden":"true"},""===n?n:n||"/")};m.__ANT_BREADCRUMB_SEPARATOR=!0;var p=m,h=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l{if(n)return n(t,o,l,s);const i=function(e,n){if(void 0===e.title||null===e.title)return null;const t=Object.keys(n).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${t})`,"g"),((e,t)=>n[t]||e))}(t,o);return x(e,t,i,r)}}var f=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l{const{prefixCls:n,separator:t="/",children:o,menu:l,overlay:s,dropdownProps:r,href:a}=e;const c=(e=>{if(l||s){const t=Object.assign({},r);if(l){const e=l||{},{items:n}=e,o=f(e,["items"]);t.menu=Object.assign(Object.assign({},o),{items:null==n?void 0:n.map(((e,n)=>{var{key:t,title:o,label:l,path:s}=e,r=f(e,["key","title","label","path"]);let c=null!=l?l:o;return s&&(c=i.createElement("a",{href:`${a}${s}`},c)),Object.assign(Object.assign({},r),{key:null!=t?t:n,label:c})}))})}else s&&(t.overlay=s);return i.createElement(u.Z,Object.assign({placement:"bottom"},t),i.createElement("span",{className:`${n}-overlay-link`},e,i.createElement(d.Z,null)))}return e})(o);return null!=c?i.createElement(i.Fragment,null,i.createElement("li",null,c),t&&i.createElement(p,null,t)):null},j=e=>{const{prefixCls:n,children:t,href:o}=e,l=f(e,["prefixCls","children","href"]),{getPrefixCls:s}=i.useContext(c.E_),r=s("breadcrumb",n);return i.createElement(v,Object.assign({},l,{prefixCls:r}),x(r,l,t,o))};j.__ANT_BREADCRUMB_ITEM=!0;var g=j,y=t(17313),b=t(83116),w=t(37613);const k=e=>{const{componentCls:n,iconCls:t}=e;return{[n]:Object.assign(Object.assign({},(0,y.Wf)(e)),{color:e.itemColor,fontSize:e.fontSize,[t]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,y.Qy)(e)),"li:last-child":{color:e.lastItemColor},[`${n}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${n}-link`]:{[`\n > ${t} + span,\n > ${t} + a\n `]:{marginInlineStart:e.marginXXS}},[`${n}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${t}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}};var I=(0,b.Z)("Breadcrumb",(e=>{const n=(0,w.TS)(e,{});return[k(n)]}),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}))),N=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l{var{breadcrumbName:n}=e,t=N(e,["breadcrumbName"]);return Object.assign(Object.assign({},t),{title:n})}))}),l}var S=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l{const{prefixCls:n,separator:t="/",style:o,className:d,rootClassName:u,routes:m,items:h,children:x,itemRender:f,params:j={}}=e,g=S(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:y,direction:b,breadcrumb:w}=i.useContext(c.E_);let k;const N=y("breadcrumb",n),[M,C]=I(N),O=function(e,n){return(0,i.useMemo)((()=>e||(n?n.map(Z):null)),[e,n])}(h,m);const L=_(N,f);if(O&&O.length>0){const e=[],n=h||m;k=O.map(((o,l)=>{const{path:s,key:a,type:c,menu:d,overlay:u,onClick:m,className:h,separator:x,dropdownProps:_}=o,f=((e,n)=>{if(void 0===n)return n;let t=(n||"").replace(/^\//,"");return Object.keys(e).forEach((n=>{t=t.replace(`:${n}`,e[n])})),t})(j,s);void 0!==f&&e.push(f);const g=null!=a?a:l;if("separator"===c)return i.createElement(p,{key:g},x);const y={},b=l===O.length-1;d?y.menu=d:u&&(y.overlay=u);let{href:w}=o;return e.length&&void 0!==f&&(w=`#/${e.join("/")}`),i.createElement(v,Object.assign({key:g},y,(0,r.Z)(o,{data:!0,aria:!0}),{className:h,dropdownProps:_,href:w,separator:b?"":t,onClick:m,prefixCls:N}),L(o,j,n,e,w))}))}else if(x){const e=(0,s.Z)(x).length;k=(0,s.Z)(x).map(((n,o)=>{if(!n)return n;const l=o===e-1;return(0,a.Tm)(n,{separator:l?"":t,key:o})}))}const D=l()(N,null==w?void 0:w.className,{[`${N}-rtl`]:"rtl"===b},d,u,C),E=Object.assign(Object.assign({},null==w?void 0:w.style),o);return M(i.createElement("nav",Object.assign({className:D,style:E},g),i.createElement("ol",null,k)))};M.Item=g,M.Separator=p;var C=M},37906:function(e,n,t){t.d(n,{Z:function(){return C}});var o=t(59301),l=t(92310),s=t.n(l),r=t(69507),i=t(36355),a=t(19716),c=t(8628);var d={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};var u=o.createContext({}),m=t(55401),p=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l{return n||(e=t,(0,m.Z)(e).map((e=>Object.assign({},null==e?void 0:e.props))));var e}),[n,t]);return o.useMemo((()=>l.map((n=>{var{span:t}=n,o=p(n,["span"]);return Object.assign(Object.assign({},o),{span:"number"==typeof t?t:(0,r.m9)(e,t)})}))),[l,e])}function x(e,n,t){let o=e;return(void 0===t||t>n)&&(o=Object.assign(Object.assign({},e),{span:n})),o}var _=(e,n)=>(0,o.useMemo)((()=>function(e,n){const t=[];let o=[],l=n;return e.filter((e=>e)).forEach(((s,r)=>{const i=null==s?void 0:s.span,a=i||1;if(r===e.length-1)return o.push(x(s,l,i)),void t.push(o);a{let{children:n}=e;return n};function v(e){return null!=e}var j=e=>{const{itemPrefixCls:n,component:t,span:l,className:r,style:i,labelStyle:a,contentStyle:c,bordered:d,label:u,content:m,colon:p}=e,h=t;return d?o.createElement(h,{className:s()({[`${n}-item-label`]:v(u),[`${n}-item-content`]:v(m)},r),style:i,colSpan:l},v(u)&&o.createElement("span",{style:a},u),v(m)&&o.createElement("span",{style:c},m)):o.createElement(h,{className:s()(`${n}-item`,r),style:i,colSpan:l},o.createElement("div",{className:`${n}-item-container`},(u||0===u)&&o.createElement("span",{className:s()(`${n}-item-label`,{[`${n}-item-no-colon`]:!p}),style:a},u),(m||0===m)&&o.createElement("span",{className:s()(`${n}-item-content`),style:c},m)))};function g(e,n,t){let{colon:l,prefixCls:s,bordered:r}=n,{component:i,type:a,showLabel:c,showContent:d,labelStyle:u,contentStyle:m}=t;return e.map(((e,n)=>{let{label:t,children:p,prefixCls:h=s,className:x,style:_,labelStyle:f,contentStyle:v,span:g=1,key:y}=e;return"string"==typeof i?o.createElement(j,{key:`${a}-${y||n}`,className:x,style:_,labelStyle:Object.assign(Object.assign({},u),f),contentStyle:Object.assign(Object.assign({},m),v),span:g,colon:l,component:i,itemPrefixCls:h,bordered:r,label:c?t:null,content:d?p:null}):[o.createElement(j,{key:`label-${y||n}`,className:x,style:Object.assign(Object.assign(Object.assign({},u),_),f),span:1,colon:l,component:i[0],itemPrefixCls:h,bordered:r,label:t}),o.createElement(j,{key:`content-${y||n}`,className:x,style:Object.assign(Object.assign(Object.assign({},m),_),v),span:2*g-1,component:i[1],itemPrefixCls:h,bordered:r,content:p})]}))}var y=e=>{const n=o.useContext(u),{prefixCls:t,vertical:l,row:s,index:r,bordered:i}=e;return l?o.createElement(o.Fragment,null,o.createElement("tr",{key:`label-${r}`,className:`${t}-row`},g(s,e,Object.assign({component:"th",type:"label",showLabel:!0},n))),o.createElement("tr",{key:`content-${r}`,className:`${t}-row`},g(s,e,Object.assign({component:"td",type:"content",showContent:!0},n)))):o.createElement("tr",{key:r,className:`${t}-row`},g(s,e,Object.assign({component:i?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},n)))},b=t(17313),w=t(83116),k=t(37613);const I=e=>{const{componentCls:n,labelBg:t}=e;return{[`&${n}-bordered`]:{[`> ${n}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${n}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${n}-item-label, > ${n}-item-content`]:{padding:`${e.padding}px ${e.paddingLG}px`,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${n}-item-label`]:{color:e.colorTextSecondary,backgroundColor:t,"&::after":{display:"none"}}}},[`&${n}-middle`]:{[`${n}-row`]:{[`> ${n}-item-label, > ${n}-item-content`]:{padding:`${e.paddingSM}px ${e.paddingLG}px`}}},[`&${n}-small`]:{[`${n}-row`]:{[`> ${n}-item-label, > ${n}-item-content`]:{padding:`${e.paddingXS}px ${e.padding}px`}}}}}},N=e=>{const{componentCls:n,extraColor:t,itemPaddingBottom:o,colonMarginRight:l,colonMarginLeft:s,titleMarginBottom:r}=e;return{[n]:Object.assign(Object.assign(Object.assign({},(0,b.Wf)(e)),I(e)),{"&-rtl":{direction:"rtl"},[`${n}-header`]:{display:"flex",alignItems:"center",marginBottom:r},[`${n}-title`]:Object.assign(Object.assign({},b.vS),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${n}-extra`]:{marginInlineStart:"auto",color:t,fontSize:e.fontSize},[`${n}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${n}-row`]:{"> th, > td":{paddingBottom:o},"&:last-child":{borderBottom:"none"}},[`${n}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${s}px ${l}px`},[`&${n}-item-no-colon::after`]:{content:'""'}},[`${n}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${n}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${n}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${n}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${n}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${n}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${n}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}};var Z=(0,w.Z)("Descriptions",(e=>{const n=(0,k.TS)(e,{});return[N(n)]}),(e=>({labelBg:e.colorFillAlter,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,extraColor:e.colorText}))),S=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l{const{prefixCls:n,title:t,extra:l,column:m,colon:p=!0,bordered:x,layout:f,children:v,className:j,rootClassName:g,style:b,size:w,labelStyle:k,contentStyle:I,items:N}=e,M=S(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:C,direction:O,descriptions:L}=o.useContext(i.E_),D=C("descriptions",n),E=(0,c.Z)(),P=o.useMemo((()=>{var e;return"number"==typeof m?m:null!==(e=(0,r.m9)(E,Object.assign(Object.assign({},d),m)))&&void 0!==e?e:3}),[E,m]),T=h(E,N,v),z=(0,a.Z)(w),$=_(P,T),[F,H]=Z(D),B=o.useMemo((()=>({labelStyle:k,contentStyle:I})),[k,I]);return F(o.createElement(u.Provider,{value:B},o.createElement("div",Object.assign({className:s()(D,null==L?void 0:L.className,{[`${D}-${z}`]:z&&"default"!==z,[`${D}-bordered`]:!!x,[`${D}-rtl`]:"rtl"===O},j,g,H),style:Object.assign(Object.assign({},null==L?void 0:L.style),b)},M),(t||l)&&o.createElement("div",{className:`${D}-header`},t&&o.createElement("div",{className:`${D}-title`},t),l&&o.createElement("div",{className:`${D}-extra`},l)),o.createElement("div",{className:`${D}-view`},o.createElement("table",null,o.createElement("tbody",null,$.map(((e,n)=>o.createElement(y,{key:n,index:n,colon:p,prefixCls:D,vertical:"vertical"===f,bordered:x,row:e})))))))))};M.Item=f;var C=M}}]); \ No newline at end of file +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[52338],{22596:function(e,n,t){t.d(n,{Z:function(){return a}});var o=t(1565),l=t(59301),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},r=t(68475),i=function(e,n){return l.createElement(r.Z,(0,o.Z)({},e,{ref:n,icon:s}))};var a=l.forwardRef(i)},44770:function(e,n,t){t.d(n,{Z:function(){return a}});var o=t(1565),l=t(59301),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M632 698.3l141.9-112a8 8 0 000-12.6L632 461.7c-5.3-4.2-13-.4-13 6.3v76H295c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v76c0 6.7 7.8 10.4 13 6.3zm261.3-405L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v278c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V422c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-83.5c0-17-6.7-33.2-18.7-45.2zM640 288H384V184h256v104zm264 436h-56c-4.4 0-8 3.6-8 8v108H184V732c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v148c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V732c0-4.4-3.6-8-8-8z"}}]},name:"delivered-procedure",theme:"outlined"},r=t(68475),i=function(e,n){return l.createElement(r.Z,(0,o.Z)({},e,{ref:n,icon:s}))};var a=l.forwardRef(i)},93737:function(e,n,t){t.d(n,{Z:function(){return a}});var o=t(1565),l=t(59301),s={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},r=t(68475),i=function(e,n){return l.createElement(r.Z,(0,o.Z)({},e,{ref:n,icon:s}))};var a=l.forwardRef(i)},95972:function(e,n,t){t.d(n,{h:function(){return m},x:function(){return p}});var o=t(82242),l=t.n(o),s=t(39647),r=t.n(s),i=t(57073),a=t(84481),c=t(53847),d=t(37712),u=["value","onChange","scrollId"],m=function(e){var n=e.value,t=e.onChange,o=e.scrollId,s=r()(e,u);return(0,d.jsx)("div",{id:o||"",children:(0,d.jsx)(i.Z,l()(l()({},s),{},{defaultValue:n,onChange:function(e,n){console.log("a:",e,n),null!=n&&n.length?t(e,n):t(e)}}))})},p=function(e){var n=e.value,t=e.onChange,o=e.placeholder,l=e.height,s=void 0===l?140:l;return e.isEdit?(0,d.jsx)(i.Z,{watch:!0,isFocus:!0,height:s,placeholder:o,defaultValue:n,onChange:t}):(0,d.jsx)("div",{style:{cursor:"pointer"},children:n?(0,d.jsx)(c.Z,{className:a.Z.inputBorder,value:n}):(0,d.jsx)("div",{className:"".concat(a.Z.inputBorder," ").concat(a.Z.placeholder," inputBorderError"),children:o})})}},40168:function(e,n,t){t.d(n,{Z:function(){return c}});var o=t(79800),l=t.n(o),s=t(59301),r=t(12978),i=t(13879),a=t(37712),c=function(){var e=(0,s.useState)(""),n=l()(e,2),t=n[0],o=n[1],c=(0,s.useState)(0),d=l()(c,2),u=(d[0],d[1]),m=(0,s.useState)(),p=l()(m,2),h=(p[0],p[1]),x=(0,s.useState)(),_=l()(x,2),f=(_[0],_[1]),j=(0,s.useState)(!1),v=l()(j,2),g=(v[0],v[1],(0,s.useRef)(""));function y(e){27==e.keyCode&&g.current&&b()}function b(){document.body.style.overflow="auto",h(void 0),f(void 0),u(0),o("")}(0,s.useEffect)((function(){return r.Z.subscribe("preview-image",(function(e){o(e),console.log(k.current),document.body.style.overflow="hidden"}))}),[]),(0,s.useEffect)((function(){return document.addEventListener("keydown",y),function(){document.removeEventListener("keydown",y)}}),[]),(0,s.useEffect)((function(){g.current=t}),[t]);(0,s.useRef)();var w=(0,s.useRef)(),k=(0,s.useRef)();return(0,a.jsx)(s.Fragment,{children:t?(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"preview-wrp-group",ref:w,children:(0,a.jsx)(i.Z,{className:"image-preview",src:t,style:{display:"none"},preview:{visible:!0,src:t,movable:!1,onVisibleChange:function(e){o("")}},alt:"预览大图"})})}):null})}},28023:function(e,n,t){t.r(n),t.d(n,{default:function(){return pe}});var o=t(7557),l=t.n(o),s=t(37205),r=t.n(s),i=t(41498),a=t.n(i),c=t(82242),d=t.n(c),u=t(79800),m=t.n(u),p=t(59301),h=t(89084),x=t(78241),_=t(8591),f=t(43418),j=t(66104),v=t(95237),g=t(43604),y=t(3113),b=t(71418),w=t(99313),k=t(6848),I=t(54449),N=t(14491),Z=t(98135),S=t(22596),M=t(44770),C=t(40168),O=t(37821),L=t(57073),D=t(12978),E=t(11623),P=t(99232),T=t.n(P),z=t(99741),$=t(88270),F=t(37712),H=(0,h.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks}}))((function(e){var n=e.shixunHomeworks,t=e.dispatch,o=(0,h.useParams)(),s=(0,p.useState)(!0),r=m()(s,2),i=(r[0],r[1],x.Z.useForm()),c=m()(i,1)[0];return(0,F.jsx)(F.Fragment,{children:(0,F.jsxs)(f.Z,{centered:!0,title:"调分",open:"调分"===n.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(l()().mark((function e(){var s;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.validateFields();case 2:return s=c.getFieldsValue(),e.next=5,(0,O.ZP)("/api/student_works/".concat(n.actionTabs.id,"/adjust_score.json"),{method:"post",body:d()({},s)});case 5:0===e.sent.status&&(_.ZP.success("评阅成功"),c.resetFields(),t({type:"shixunHomeworks/setActionTabs",payload:{}}),t({type:"shixunHomeworks/getStudentWorkCommon",payload:d()({},o)}));case 7:case"end":return e.stop()}}),e)}))),onCancel:function(){t({type:"shixunHomeworks/setActionTabs",payload:{}})},children:[(0,F.jsx)("p",{className:"tc",children:"该学生的最终成绩将不会按照评分规则进行计算"}),(0,F.jsxs)(x.Z,{form:c,layout:"horizontal",children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"baseline"},children:[(0,F.jsx)(x.Z.Item,{label:"成绩",name:"score",rules:[{required:!0,message:"请输入!"}],children:(0,F.jsx)(I.Z,{min:0,placeholder:"请填写分数"})}),(0,F.jsx)("span",{className:"ml10",children:"分"})]}),(0,F.jsx)("div",{children:(0,F.jsx)(x.Z.Item,{name:"comment",children:(0,F.jsx)(Z.Z.TextArea,{placeholder:"请填写您对作品调分的原因",rows:8})})})]})]})})})),B={flex_box_center:"flex_box_center___tMwax",flex_space_between:"flex_space_between___8GJsg",flex_box_vertical_center:"flex_box_vertical_center___IFELt",flex_box_center_end:"flex_box_center_end___IrFRG",flex_box_column:"flex_box_column___s0LgG",TabsStyle:"TabsStyle___r0bwM",buttonFixed:"buttonFixed___twN45",bg:"bg___sFhaA",title:"title___bk4oD",replyList:"replyList___bjk6g",name:"name___pRNS3","nav-tab":"nav-tab___uLRSr",exitComment:"exitComment___rlGpw",nextComment:"nextComment___NmNBo",modal:"modal___tWPO8",MdEditor:"MdEditor___AAxeb",ratewarp:"ratewarp___NGrsd",item:"item___Le8W0",total:"total___MNh4V",a1:"a1___g1iJT",a2:"a2___h8k2X",a3:"a3___yk1km",export_type_modal_title:"export_type_modal_title___nMqX0",export_type_modal:"export_type_modal___dbFVU",export_type_modal_con:"export_type_modal_con___ujWeL",type_item:"type_item___oF9R5",type_item_active:"type_item_active___dfBaM",export_type_modal_waring:"export_type_modal_waring___k8RaP"},G=t(53847),A=t(89392),W=t(97313),R=(0,h.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var n=e.classroomList,t=(e.loading,e.dispatch),o=e.studentWorkDetail,s=((0,h.useParams)(),x.Z.useForm()),r=m()(s,1)[0],i=function(){var e=a()(l()().mark((function e(){var o,s,i;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.validateFields();case 2:return s=d()({},r.getFieldValue()),i=n.actionTabs.selectArrs,s.attachment_ids=null===(o=s.attachment_ids)||void 0===o?void 0:o.map((function(e){return e.response.id})),e.next=7,(0,$.mz)(d()(d()({},s),{},{homeworkId:i.work_id}));case 7:0===e.sent.status&&(r.resetFields(),t({type:"shixunHomeworks/getStudentWorkSupplyDetail",payload:d()({},n.actionTabs.params)}),t({type:"classroomList/setActionTabs",payload:{}}));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,F.jsx)(f.Z,{centered:!0,title:"补交附件",open:"补交附件"===n.actionTabs.key,bodyStyle:{minHeight:200},onOk:a()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==o||!o.can_submit){e.next=6;break}if(null!=o&&o.submit_size){e.next=4;break}return _.ZP.warning("您的作品提交机会已用完。如需继续修改,请联系指导老师或平台运营。"),e.abrupt("return");case 4:return f.Z.confirm({title:"提示",icon:null,centered:!0,width:472,content:(0,F.jsxs)(F.Fragment,{children:["你还有 ",(0,F.jsx)("span",{className:"ml5 mr5",style:{color:"#DF711C"},children:null==o?void 0:o.submit_size})," 次提交机会。确认提交后,上一次的提交记录会被覆盖。请注意,到达规定的提交次数后将不可再次提交,确定是否提交?"]}),onOk:function(){i()}}),e.abrupt("return");case 6:i();case 7:case"end":return e.stop()}}),e)}))),onCancel:function(){r.resetFields(),t({type:"classroomList/setActionTabs",payload:{}})},children:(0,F.jsxs)(x.Z,{form:r,initialValues:{},children:[(0,F.jsx)(x.Z.Item,{name:"attachment_ids",rules:[{required:!0,message:"请上传附件"}],children:(0,F.jsx)(W.Z,{})}),(0,F.jsx)(x.Z.Item,{name:"description",children:(0,F.jsx)(Z.Z.TextArea,{placeholder:"请在此输入补交附件的原因,最大限制100个字符",rows:7})})]})})})),Y=t(271),U=t(31260),V=t(84968),J=t(7061),Q=t(60969),X=t(28389),q=t(95972),K=t(8768),ee=t(13095),ne=t(39647),te=t.n(ne),oe=t(37906),le=t(24905),se="pinfen____hgN7",re="left___ZyTXs",ie="right___OSPEM",ae="tagStyleSzz___fzxbk",ce="headpic___d7fnl",de=t(84449),ue=["Data","layer","type","index"],me=function e(n){var t,o,s,r,i,c,u,j,b,w,N,Z,S,M,C=n.Data,D=n.layer,E=void 0===D?1:D,P=n.type,H=n.index,B=void 0===H?0:H,A=te()(n,ue),W=(0,h.useParams)(),R=(null==A?void 0:A.shixunHomeworks).studentWorkDetail,Y=(0,p.useState)({type:0,show:!1}),V=m()(Y,2),J=V[0],X=V[1],q=(0,p.useState)(null),K=m()(q,2),ee=K[0],ne=K[1],me=(0,Q.U)($.qP,{userId:null==W?void 0:W.userId}),pe=m()(me,3),he=pe[1],xe=pe[2],_e=(0,Q.U)($.R$,{userId:null==W?void 0:W.userId}),fe=m()(_e,3),je=fe[1],ve=fe[2],ge=(0,Q.U)($.QC,{userId:null==W?void 0:W.userId}),ye=m()(ge,3),be=(ye[1],ye[2]),we=(0,Q.U)($.Mf,{userId:null==W?void 0:W.userId}),ke=m()(we,3),Ie=(ke[1],ke[2]),Ne=x.Z.useForm(),Ze=m()(Ne,1)[0],Se=(0,p.useState)(!1),Me=m()(Se,2),Ce=Me[0],Oe=Me[1],Le=function(e){for(var n="",t=0;t<(null==e?void 0:e.length);t++){var o=e[t];n+="".concat(o.name,'').concat(o.score,"分"),t<(null==e?void 0:e.length)-1&&(n+=" + ")}return(0,F.jsx)("span",{dangerouslySetInnerHTML:{__html:n}})};return(0,F.jsxs)("div",{children:[(0,F.jsxs)(v.Z,{wrap:!1,gutter:15,children:[1!=E&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("div",{style:{width:"".concat(40*(E-1),"px")}})}),"appeal_info"==P?(0,F.jsx)(g.Z,{children:(0,F.jsx)("img",{className:"mt10 ".concat(ce),width:40,src:"--"===(null==C||null===(t=C.appeal_info)||void 0===t?void 0:t.user_image_url)?de.xp:"".concat(z.Z.IMG_SERVER,"/images/").concat(null==C||null===(o=C.appeal_info)||void 0===o?void 0:o.user_image_url)})}):(0,F.jsx)(g.Z,{children:(0,F.jsx)("img",{className:"mt10 ".concat(ce),width:40,src:"--"===(null==C||null===(s=C.user_info)||void 0===s?void 0:s.user_image_url)?de.xp:"".concat(z.Z.IMG_SERVER,"/images/").concat(null==C||null===(r=C.user_info)||void 0===r?void 0:r.user_image_url)})}),"appeal_info"==P?(0,F.jsxs)(g.Z,{flex:1,children:[(0,F.jsx)(G.Z,{className:"font14",value:"".concat(null==C||null===(i=C.appeal_info)||void 0===i?void 0:i.user_name,":").concat((null==C||null===(c=C.appeal_info)||void 0===c?void 0:c.content)||"暂未写评语")}),(0,F.jsxs)(v.Z,{className:"c-grey-666 mt5",wrap:!1,align:"middle",gutter:20,children:[(0,F.jsx)(g.Z,{children:T()(null==C||null===(u=C.appeal_info)||void 0===u?void 0:u.time).format("YYYY-MM-DD HH:mm")}),1==(null==C?void 0:C.appeal_status)&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:ae,style:{color:"#3061D0",border:"1px #3061D0 solid"},children:"申诉中"})}),2==(null==C?void 0:C.appeal_status)&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:ae,style:{color:"#999",border:"1px #999 solid"},children:"申诉已撤销"})}),3==(null==C?void 0:C.appeal_status)&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:ae,style:{color:"#3061D0",border:"1px #3061D0 solid"},children:"申诉成功"})}),4==(null==C?void 0:C.appeal_status)&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:ae,style:{color:"#999",border:"1px #999 solid"},children:"申诉被拒绝"})}),5==(null==C?void 0:C.appeal_status)&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:ae,style:{color:"#999",border:"1px #999 solid"},children:"申诉失败"})})]})]}):(0,F.jsxs)(g.Z,{flex:1,children:[(0,F.jsx)(G.Z,{className:"font14",value:"".concat(null==C||null===(j=C.user_info)||void 0===j?void 0:j.user_name,":").concat((null==C?void 0:C.content)||"暂未写评语")}),(0,F.jsxs)(v.Z,{className:"c-grey-666 mt5",wrap:!1,align:"middle",gutter:20,children:[(0,F.jsx)(g.Z,{children:T()((null==C?void 0:C.comment_time)||(null==C?void 0:C.time)).format("YYYY-MM-DD HH:mm")}),(null==C?void 0:C.student_work_num)&&(0,F.jsx)(g.Z,{children:(0,F.jsxs)("span",{style:{padding:"3px",background:"rgba(219,243,224,0.88)",color:"#1FBE3C",fontSize:"12px"},children:["第",null==C?void 0:C.student_work_num,"次提交的作品"]})}),(null==C?void 0:C.score)&&(null==R?void 0:R.single_score)&&(0,F.jsx)(g.Z,{children:(0,F.jsxs)("span",{className:"c-orange",children:[" ",null==C?void 0:C.score,"分 "]})}),!(null!=R&&R.single_score)&&null!==(null==C?void 0:C.score)&&(0,F.jsxs)("div",{className:se,children:[(0,F.jsx)(k.Z,{title:Le(null==C?void 0:C.score_details),overlayInnerStyle:{width:"min-content",whiteSpace:"nowrap",overflow:"visible"},placement:"topLeft",children:(0,F.jsx)("div",{className:re,children:Le(null==C?void 0:C.score_details)})}),(0,F.jsxs)("span",{className:ie,children:[" = 综合得分",(0,F.jsxs)("span",{style:{color:"#FA6400"},children:[null==C?void 0:C.score,"分"]})]})]})]}),(null==C||null===(b=C.attachments)||void 0===b?void 0:b.length)>0&&(0,F.jsx)("div",{className:"mt10",style:{display:"flex",flexDirection:"column",gap:10},children:null==C||null===(w=C.attachments)||void 0===w?void 0:w.map((function(e,n){return(0,F.jsxs)("a",{href:"".concat(z.Z.API_SERVER).concat(e.url),children:[(0,F.jsx)("i",{className:"iconfont icon-fujian font14"}),(0,F.jsx)("span",{className:"ml10",children:null==e?void 0:e.title}),(0,F.jsx)("span",{className:"c-light-black ml20 font12",children:null==e?void 0:e.filesize})]},n)}))})]}),"feedback"!=P&&(0,F.jsx)(F.Fragment,{children:"appeal_info"==P?(0,F.jsx)(g.Z,{style:{whiteSpace:"nowrap"},children:(0,F.jsxs)(v.Z,{wrap:!1,gutter:10,children:[(null==C?void 0:C.delete)&&(null==C?void 0:C.can_appeal)&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:"c-blue current",onClick:function(){var e;f.Z.confirm({centered:!0,title:(0,F.jsxs)("div",{children:["撤销申诉后,无法再对本评阅记录进行申诉",(0,F.jsx)("br",{}),"是否确认撤销申诉"]}),onOk:(e=a()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(null==A?void 0:A.getInitData)&&(null==A||A.getInitData());case 1:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},children:"撤销申诉"})}),1==(null==C?void 0:C.appeal_status)&&(0,U.GJ)()&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:"c-blue current mr10",onClick:function(){Oe(!0)},children:"接受申诉"})}),1==(null==C?void 0:C.appeal_status)&&(0,U.GJ)()&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:"c-red current",onClick:function(){var e;f.Z.confirm({centered:!0,title:(0,F.jsxs)("div",{children:["此匿评成绩将被认为合理",(0,F.jsx)("br",{}),"是否确认拒绝申诉"]}),onOk:(e=a()(l()().mark((function e(){var n;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,O.ZP)("/api/student_works/".concat(W.userId,"/deal_appeal_score.json"),{method:"post",body:{score_id:null==C?void 0:C.score_id,status:4}});case 2:0===(null==(n=e.sent)?void 0:n.status)&&(null==A?void 0:A.getInitData)&&(null==A||A.getInitData());case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},children:"拒绝申诉"})})]})}):(0,F.jsxs)(F.Fragment,{children:[(1==E||"teacher"==P)&&(0,F.jsx)(g.Z,{style:{whiteSpace:"nowrap"},children:(0,F.jsxs)(v.Z,{wrap:!1,gutter:10,children:[(null==C?void 0:C.delete)&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:"c-blue current",onClick:function(){!function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C;f.Z.confirm({title:"是否确认删除?",centered:!0,onOk:(e=a()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,be({score_id:null==n?void 0:n.comment_id});case 2:0===e.sent.status&&(_.ZP.success("删除成功"),(null==A?void 0:A.getInitData)&&(null==A||A.getInitData()));case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})}(C)},children:"删除"})}),(null==C?void 0:C.can_appeal)&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:"c-blue current",onClick:function(){X({type:1,show:!0})},children:"申诉"})}),(null==C?void 0:C.can_reply)&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:"c-blue current",onClick:function(){X({type:0,show:!0})},children:"回复"})}),(1==E&&!(null!=C&&C.can_reply)||!(null!=C&&C.can_reply)&&"teacher"==P&&0!=B)&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:"c-light-black",children:"失效"})})]})}),1!=E&&(null==C?void 0:C.can_delete)&&"teacher"!=P&&(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:"c-blue current",onClick:function(){!function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C;f.Z.confirm({title:"是否确认删除?",centered:!0,onOk:(e=a()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ie({object_id:n.id,object_type:"journals_for_message"});case 2:0===e.sent.status&&(_.ZP.success("删除成功"),(null==A?void 0:A.getInitData)&&(null==A||A.getInitData()));case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})}(C)},children:"删除"})})]})})]}),1==E&&(null==C?void 0:C.appeal_info)&&""!=(null==C?void 0:C.appeal_info)&&(0,F.jsx)("div",{className:"mt20",style:{display:"flex",flexDirection:"column",gap:"20px"},children:(0,F.jsx)(e,d()({type:"appeal_info",Data:C,layer:E+1},A))}),1==E&&(null==C||null===(N=C.journals)||void 0===N?void 0:N.length)>0&&(0,F.jsx)("div",{className:"mt20",style:{display:"flex",flexDirection:"column",gap:"20px"},children:null==C||null===(Z=C.journals)||void 0===Z?void 0:Z.map((function(n,t){return(0,F.jsx)(e,d()({type:P,Data:n,layer:E+1},A),t)}))}),(null==J?void 0:J.show)&&(0,F.jsxs)("div",{className:"mt20",style:{marginLeft:"56px"},children:[(0,F.jsx)(L.Z,{height:150,isFocus:!0,watch:!0,onChange:function(e){ne(e)}}),(0,F.jsxs)(v.Z,{align:"middle",justify:"end",gutter:20,children:[(0,F.jsx)(g.Z,{children:(0,F.jsx)(y.ZP,{onClick:function(){X({type:0,show:!1})},children:"取消"})}),(0,F.jsx)(g.Z,{children:(0,F.jsx)(y.ZP,{loading:he||je,type:"primary",onClick:a()(l()().mark((function e(){var n;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==ee){e.next=3;break}return _.ZP.error("请输入内容"),e.abrupt("return");case 3:if("teacher"!=P){e.next=15;break}return e.next=6,null==J?void 0:J.type;case 6:if(e.t0=e.sent,0!=e.t0){e.next=11;break}e.t1=xe({hidden_comment:ee,score_id:null==C?void 0:C.score_id}),e.next=12;break;case 11:e.t1=ve({comment:ee,score_id:null==C?void 0:C.score_id});case 12:n=e.t1,e.next=18;break;case 15:return e.next=17,(0==(null==J?void 0:J.type)?xe:ve)({comment:ee,score_id:null==C?void 0:C.score_id});case 17:n=e.sent;case 18:0===n.status&&(_.ZP.success("操作成功"),X({type:0,show:!1}),(null==A?void 0:A.getInitData)&&(null==A||A.getInitData()));case 19:case"end":return e.stop()}}),e)}))),children:0==(null==J?void 0:J.type)?"回复":"申诉"})})]})]}),(0,F.jsx)(f.Z,{title:"接受申诉",open:Ce,centered:!0,destroyOnClose:!0,onCancel:function(){Oe(!1)},maskClosable:!1,width:544,onOk:function(){Ze.submit()},children:(0,F.jsxs)(x.Z,{form:Ze,colon:!1,onFinish:function(){var e=a()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,O.ZP)("/api/student_works/".concat(W.userId,"/deal_appeal_score.json"),{method:"post",body:d()(d()({},n),{},{userId:W.userId,score_id:null==C?void 0:C.score_id,status:3})});case 2:0===e.sent.status&&(Oe(!1),(null==A?void 0:A.getInitData)&&(null==A||A.getInitData()));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,F.jsx)("div",{style:{color:"#191919"},children:"确认是否接受申诉?一旦接受,被申诉的评分记录将作废。请您补充匿评评分:"}),(0,F.jsx)(oe.Z,{style:{marginTop:"20px"},colon:!1,items:[{key:"1",label:"申诉人",children:(0,F.jsx)("span",{children:null==C||null===(S=C.appeal_info)||void 0===S?void 0:S.user_name})},{key:"2",label:"被申诉人",children:(0,F.jsx)("span",{style:{color:"#191919"},children:null==C||null===(M=C.user_info)||void 0===M?void 0:M.user_name})},{key:"3",label:"被申诉人评分",children:(0,F.jsx)("span",{style:{color:"#191919"},children:null==C?void 0:C.score})}]}),(0,F.jsxs)(v.Z,{className:"mt20",wrap:!1,children:[(0,F.jsx)(g.Z,{children:(0,F.jsx)(x.Z.Item,{label:"匿评分数",name:"score",rules:[{required:!0,message:"请输入分数"}],children:(0,F.jsx)(I.Z,{min:1,max:100,step:1})})}),(0,F.jsx)(g.Z,{children:(0,F.jsx)("span",{className:"ml10",style:{lineHeight:"30px"},children:"分"})}),(0,F.jsx)(g.Z,{children:(0,F.jsx)(x.Z.Item,{className:"ml20",valuePropName:"checked",name:"is_appeal_penalty",initialValue:!0,children:(0,F.jsx)(le.Z,{children:"扣除违规匿评分数"})})})]})]})})]})},pe=(0,h.connect)((function(e){var n=e.shixunHomeworks,t=e.loading,o=e.user;return{shixunHomeworks:n,globalSetting:e.globalSetting,user:o,loading:t.effects}}))((function(e){var n,t,o,s,i,c,u,P,ne,te,oe,le,se,re,ie,ae,ce,de,ue,pe,he,xe=e.shixunHomeworks,_e=(e.globalSetting,e.loading),fe=e.user,je=e.dispatch,ve=(0,h.useSearchParams)(),ge=m()(ve,1)[0],ye=(0,h.useParams)(),be=x.Z.useForm(),we=m()(be,1)[0],ke=x.Z.useForm(),Ie=m()(ke,1)[0],Ne=fe.userInfo,Ze=xe.studentWorkDetail,Se=xe.studentWorkCommon,Me=(xe.studentWorkSupplyDetail,xe.workList),Ce=xe.workDetail,Oe=xe.actionTabs,Le=(0,Q.U)($.wT,{userId:null==ye?void 0:ye.userId}),De=m()(Le,4),Ee=De[1],Pe=De[2],Te=De[3],ze=(0,Q.U)($.Wr,{userId:null==ye?void 0:ye.userId}),$e=m()(ze,4),Fe=$e[1],He=$e[2],Be=$e[3],Ge=(0,Q.U)($.G$,{userId:null==ye?void 0:ye.userId,id:null==ye?void 0:ye.userId}),Ae=m()(Ge,3),We=Ae[1],Re=Ae[2],Ye=(0,p.useState)("1"),Ue=m()(Ye,2),Ve=Ue[0],Je=Ue[1],Qe=(0,p.useState)(!1),Xe=m()(Qe,2),qe=Xe[0],Ke=Xe[1],en=(0,p.useState)(!1),nn=m()(en,2),tn=nn[0],on=nn[1],ln=(0,p.useState)({last:!1}),sn=m()(ln,2),rn=sn[0],an=sn[1],cn=(0,p.useState)({last:!1}),dn=m()(cn,2),un=dn[0],mn=dn[1],pn=(0,p.useRef)(),hn=(0,p.useState)(!1),xn=m()(hn,2),_n=xn[0],fn=xn[1],jn=(0,p.useState)(""),vn=m()(jn,2),gn=vn[0],yn=vn[1],bn=(0,p.useState)([]),wn=m()(bn,2),kn=wn[0],In=wn[1],Nn=(0,p.useState)([]),Zn=m()(Nn,2),Sn=(Zn[0],Zn[1]),Mn=(0,p.useState)(!1),Cn=m()(Mn,2),On=Cn[0],Ln=Cn[1],Dn=(0,p.useRef)(),En=(0,p.useState)(!1),Pn=m()(En,2),Tn=Pn[0],zn=Pn[1],$n=(0,p.useState)(""),Fn=m()($n,2),Hn=Fn[0],Bn=Fn[1],Gn=(0,p.useState)(!1),An=m()(Gn,2),Wn=An[0],Rn=An[1],Yn=(0,p.useState)(!1),Un=m()(Yn,2),Vn=Un[0],Jn=Un[1],Qn=(0,p.useState)(""),Xn=m()(Qn,2),qn=Xn[0],Kn=Xn[1],et=(0,p.useState)({content:"",type:""}),nt=m()(et,2),tt=nt[0],ot=nt[1],lt=(0,p.useState)({status:0}),st=m()(lt,2),rt=st[0],it=st[1],at=[{title:"提交次数",dataIndex:"id",ellipsis:!0,width:80,render:function(e,n,t){return t+1}},{title:"提交时间",dataIndex:"commit_time",ellipsis:!0,render:function(e){return T()(e).format("YYYY-MM-DD HH:mm")}},{title:"提交阶段",dataIndex:"stage_name",ellipsis:!0,render:function(e,n){return(0,F.jsxs)(F.Fragment,{children:[e,(null==n?void 0:n.is_redo)&&(0,F.jsx)("span",{style:{color:"#FF9D18"},children:"(打回)"})]})}},{title:"教师评分",dataIndex:"teacher_score",ellipsis:!0},{title:"助教评分",dataIndex:"teaching_asistant_score",ellipsis:!0},{title:"匿评得分",dataIndex:"student_score",ellipsis:!0},{title:"操作",dataIndex:"history_id",ellipsis:!0,width:80,align:"right",render:function(e,n){return(0,F.jsx)("a",{target:"_blank",href:"/classrooms/".concat(null==ye?void 0:ye.coursesId,"/common_homework/").concat(null==ye?void 0:ye.categoryId,"/review/").concat(null==n?void 0:n.student_work_id,"?history_id=").concat(null==n?void 0:n.history_id),children:"查看"})}}],ct=[{id:0,name:"全部点评(".concat((null==Se||null===(n=Se.comment_scores)||void 0===n?void 0:n.length)||0,")"),isShow:(0,U.RV)()||(null==Ze||null===(t=Ze.homework_status)||void 0===t?void 0:t.includes("匿评中"))||(null==Ze||null===(o=Ze.homework_status)||void 0===o?void 0:o.includes("申诉中"))},{id:1,name:"仅课堂老师可见(".concat((null==Se||null===(s=Se.hidden_comment_scores)||void 0===s?void 0:s.length)||0,")"),isShow:(0,U.GJ)()}].filter((function(e){return e.isShow})),dt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{key:""};je({type:"shixunHomeworks/setActionTabs",payload:e}),""===e.key&&(we.resetFields(),Ie.resetFields())},ut=function(){je({type:"shixunHomeworks/getStudentWorkCommon",payload:d()({},ye)})},mt=function(e){for(var n=0,t=0;t",children:[(0,F.jsx)(j.Z.Item,{children:(0,F.jsx)(h.Link,{to:"/classrooms/".concat(ye.coursesId,"/common_homework/").concat(null!=Ze&&null!==(i=Ze.category)&&void 0!==i&&i.main?"":null==Ze||null===(c=Ze.category)||void 0===c?void 0:c.category_id),children:null==Ne||null===(u=Ne.course)||void 0===u?void 0:u.course_name})}),(0,F.jsx)(j.Z.Item,{children:(0,F.jsx)(h.Link,{to:"/classrooms/".concat(ye.coursesId,"/common_homework/").concat(null!=Ze&&null!==(P=Ze.category)&&void 0!==P&&P.main?"":null==Ze||null===(ne=Ze.category)||void 0===ne?void 0:ne.category_id),children:null==Ze||null===(te=Ze.category)||void 0===te?void 0:te.category_name})}),(0,F.jsx)(j.Z.Item,{children:(0,F.jsx)(h.Link,{to:"/classrooms/".concat(ye.coursesId,"/common_homework/").concat(ye.categoryId,"/detail"),children:"作业详情"})}),(0,F.jsx)(j.Z.Item,{children:null==Ze?void 0:Ze.author_name})]})}),(0,F.jsxs)("aside",{className:[B.title,"mt20"].join(" "),children:[(0,F.jsxs)(v.Z,{style:{width:"100%"},children:[(0,F.jsxs)(g.Z,{flex:"1",children:[(0,F.jsx)(h.Link,{to:"/classrooms/".concat(ye.coursesId,"/common_homework"),children:(0,F.jsx)(S.Z,{className:"font16 c-black"})}),(0,F.jsx)("strong",{className:"font20 ml5",children:null==Ze?void 0:Ze.homework_name}),(0,F.jsx)(Y.VV,{status:null==Ze?void 0:Ze.homework_status})]}),!qn&&(0,F.jsx)(g.Z,{children:(0,U.dE)()&&(null==Ze||null===(oe=Ze.homework_status)||void 0===oe?void 0:oe.includes("补交中"))&&(0,F.jsx)("span",{onClick:function(){null==Ze||!Ze.can_submit||null!=Ze&&Ze.submit_size?je({type:"classroomList/setActionTabs",payload:{key:"补交附件",params:ye,selectArrs:{homework_id:ye.commonHomeworkId,work_id:ye.userId}}}):_.ZP.warning("您的作品提交机会已用完。如需继续修改,请联系指导老师或平台运营。")},className:"c-blue current font14",children:"补交附件"})})]}),!qn&&(0,U.G5)()&&(0,F.jsxs)("div",{style:{display:"flex"},children:[(0,F.jsx)(y.ZP,{className:"mr10",icon:(0,F.jsx)(M.Z,{}),onClick:function(){return ft(!1)},children:"导出答题记录与附件"}),(0,F.jsx)(y.ZP,{icon:(0,F.jsx)(M.Z,{}),onClick:function(){return ft(!0)},children:"导出全部学生答题记录与附件"})]})]})]}),(0,F.jsx)(b.Z,{spinning:Fe||!!_e["shixunHomeworks/getStudentWorkDetail"]||!!_e["shixunHomeworks/getStudentWorkSupplyDetail"],children:(0,F.jsxs)(w.Z,{className:B.TabsStyle,destroyInactiveTabPane:!0,defaultActiveKey:"1",activeKey:Ve,tabBarExtraContent:(0,F.jsx)(F.Fragment,{children:!qn&&(null==Ze?void 0:Ze.commit_count)>1&&(0,F.jsx)(y.ZP,{icon:(0,F.jsx)("i",{className:"iconfont icon-tijiaozongjie"}),loading:Ee,onClick:a()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Pe({},!0);case 2:dt({key:"提交作品记录"});case 3:case"end":return e.stop()}}),e)}))),children:"提交作品记录"})}),onChange:function(e){Je(e),"2"==e&&h.history.push("/classrooms/".concat(ye.coursesId,"/common_homework/").concat(ye.categoryId,"/lab-report-view/").concat(ye.userId)),"3"==e&&He({})},children:[(0,F.jsx)(w.Z.TabPane,{tab:(0,F.jsxs)("span",{style:{position:"relative"},children:["作业详情",qn&&(0,F.jsxs)("span",{style:{position:"absolute",left:"130%",padding:"3px",background:"rgba(219,243,224,0.88)",color:"#1FBE3C",fontSize:"12px"},children:["第",null==Ze?void 0:Ze.commit_count,"次提交的作品"]})]}),children:(0,F.jsxs)("div",{className:"pl30 pr30 pb20 bg-white",children:[(0,F.jsxs)("div",{className:"pt20 pb20",style:{borderBottom:"1px solid #DFDFDF"},children:[(0,F.jsx)("div",{className:"font18 blod",children:"作业描述"}),(0,F.jsx)(G.Z,{className:"mt10",value:(null==Ce?void 0:Ce.description)||"暂无~"}),(0,F.jsx)(ee.Z,{authority:(0,U.GJ)(),showDimensions:!1,dataSource:null==Ce?void 0:Ce.attachments,callback:function(){je({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:ye.categoryId}})}})]}),(0,F.jsxs)("div",{className:"mt20",children:[(0,F.jsxs)(v.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,F.jsx)(g.Z,{children:(0,F.jsxs)("span",{className:"font18 blod",children:["学生作业",(0,F.jsx)(k.Z,{title:(0,F.jsx)("span",{className:"font14",children:"(当前支持批注的文档类型:.docx、.xlsx、.pptx)"}),children:(0,F.jsx)("i",{className:"iconfont icon-tishixiaowenhao ml10 font14 c-grey-999 current",style:{lineHeight:"18px"}})})]})}),(0,F.jsxs)(g.Z,{children:[(null==Ze?void 0:Ze.commit_time)&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{className:" c-light-black",children:T()(null==Ze?void 0:Ze.commit_time).format("YYYY-MM-DD HH:mm")}),(0,F.jsx)("span",{className:"ml10",children:null==Ze?void 0:Ze.commit_user_name}),(0,F.jsx)("span",{className:"ml10 c-light-black",children:"提交"})]}),(null==Ze?void 0:Ze.update_time)&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{className:"ml30 c-light-black",children:T()(null==Ze?void 0:Ze.update_time).format("YYYY-MM-DD HH:mm")}),(0,F.jsx)("span",{className:"ml10",children:null==Ze?void 0:Ze.update_user_name}),(0,F.jsx)("span",{className:"ml10 c-light-black",children:"更新"})]})]})]}),(0,F.jsx)(G.Z,{className:"mt10",value:(null==Ze?void 0:Ze.description)||"暂无~"}),(0,F.jsx)(ee.Z,{authority:(0,U.GJ)(),dataSource:null==Ze?void 0:Ze.attachments,callback:function(){je({type:"shixunHomeworks/getStudentWorkDetail",payload:d()({},ye)})}})]})]})},"1"),!qn&&(0,U.j5)()&&(0,F.jsx)(w.Z.TabPane,{tab:"实验报告"},"2"),(null==Ze?void 0:Ze.anonymous_comment)&&!qn&&(0,F.jsx)(w.Z.TabPane,{tab:"问题反馈",children:(0,F.jsx)("div",{style:{background:"#fff",display:"flex",flexDirection:"column",padding:"10px 30px 30px 30px"},children:(null==Be||null===(le=Be.data)||void 0===le?void 0:le.count)>0?(0,F.jsx)(F.Fragment,{children:null==Be||null===(se=Be.data)||void 0===se||null===(se=se.list)||void 0===se?void 0:se.map((function(e,n){return(0,F.jsx)(me,{type:"feedback",Data:d()(d()({},e),{},{time:null==e?void 0:e.created_at,user_info:{user_image_url:e.avatar_url,user_id:e.user_id,user_name:e.real_name}}),getInitData:ut,shixunHomeworks:xe},n)}))}):(0,F.jsx)(X.Z,{})})},"3")]})}),((0,U.RV)()||(null==Ze||null===(re=Ze.homework_status)||void 0===re?void 0:re.includes("匿评中")))&&(0,F.jsxs)("div",{className:"mt20 pt20 pb20 pl30 pr30 bg-white",children:[!qn&&"1"==Ve&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(v.Z,{gutter:20,justify:"end",children:(0,U.GJ)()&&(null==Se?void 0:Se.ultimate)&&(0,F.jsx)(g.Z,{children:(0,F.jsx)(y.ZP,{type:"primary",onClick:function(){dt({key:"调分",selectArrs:Ze,id:ye.userId,params:ye})},children:"调分"})})}),!Se.is_author&&!(null!=Se&&Se.ultimate)&&((0,U.GJ)()||(null==Ze||null===(ie=Ze.homework_status)||void 0===ie?void 0:ie.includes("匿评中")))&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(x.Z,{form:we,layout:"vertical",size:"large",style:{position:"relative"},scrollToFirstError:!0,onFinish:function(e){pt(e)},children:[null!=Ze&&Ze.single_score?(0,F.jsx)(x.Z.Item,{name:"score",label:"评分",rules:[{required:!(0,U.GJ)(),message:"请填写分数"}],children:(0,F.jsx)(I.Z,{step:.1,min:0,style:{width:135},placeholder:"请填写分数",suffix:"分"})}):(0,F.jsx)(x.Z.Item,{name:"score",label:"评分",rules:[{required:!(0,U.GJ)(),message:"请填写分数"}],children:(0,F.jsxs)(g.Z,{span:24,children:[(0,F.jsx)("div",{className:B.ratewarp,children:null==Ze||null===(ae=Ze.score_details)||void 0===ae?void 0:ae.map((function(e,n){return(0,F.jsxs)("div",{className:B.item,children:[(0,F.jsx)("span",{children:e.name}),(0,F.jsxs)("span",{children:["(满分",e.score,"分)"]}),(0,F.jsx)(I.Z,{min:0,max:e.score,controls:!1,style:{width:135},suffix:"分",onChange:function(e){kn[n].score=e||0==e?Number(e.toFixed(2)):"",In(r()(kn))}})]})}))}),(0,F.jsxs)("div",{className:B.total,children:[(0,F.jsx)("span",{className:B.a1,children:"综合得分"}),(0,F.jsxs)("span",{className:B.a2,children:[_n?"--":mt(kn),"分"]}),(0,F.jsx)("span",{className:B.a3,children:"(满分100分)"})]})]})}),(null==Me?void 0:Me.is_new_rule)&&(0,U.G5)()&&-1!==Ze.work_status&&0!==Ze.work_status&&(0,F.jsx)(g.Z,{style:{position:"absolute",right:0,top:14},children:(0,F.jsx)(y.ZP,{type:"primary",onClick:function(){dt({key:"确认打回重做"})},children:" 打回重做 "})}),!(null!=Me&&Me.is_new_rule)&&(0,U.G5)()&&["提交中","补交中","进行中"].some((function(e){var n;return null==Ze||null===(n=Ze.homework_status)||void 0===n?void 0:n.includes(e)}))&&(0,F.jsx)(g.Z,{style:{position:"absolute",right:0,top:14},children:(0,F.jsx)(y.ZP,{type:"primary",onClick:function(){dt({key:"确认打回重做"})},children:" 打回重做 "})}),!(null!=Ze&&Ze.is_author)&&(0,U.dE)()&&(null==Ze||null===(ce=Ze.homework_status)||void 0===ce?void 0:ce.includes("匿评中"))&&"review"!==ge.get("review")&&(0,F.jsx)(g.Z,{style:{position:"absolute",right:0,top:14},children:(0,F.jsx)(y.ZP,{type:"primary",onClick:function(){dt({key:"问题反馈"})},children:" 问题反馈 "})}),(0,F.jsx)("div",{onClick:function(){return Ke(!0)},children:(0,F.jsx)(x.Z.Item,{name:"comment",label:"评语",rules:[{required:!(0,U.GJ)(),message:"请填写分数"}],children:(0,F.jsx)(q.x,{placeholder:"请在此输入对本作品的评语,最大限制2000个字符",isEdit:qe})})}),(0,F.jsx)(x.Z.Item,{name:"attachment_ids",children:(0,F.jsx)(W.Z,{})}),(0,U.GJ)()&&(0,F.jsx)("div",{onClick:function(){return on(!0)},children:(0,F.jsx)(x.Z.Item,{label:"仅课堂老师可见",name:"hidden_comment",children:(0,F.jsx)(q.x,{placeholder:"请输入评语",isEdit:tn})})})]}),(0,F.jsxs)("div",{className:"".concat(B.buttonFixed),children:[" ",(0,F.jsx)("div",{className:"edu-container",children:(0,F.jsxs)(v.Z,{wrap:!1,justify:"space-between",align:"middle",children:[(0,F.jsxs)(g.Z,{children:[" ",(0,F.jsx)(y.ZP,{onClick:function(){return ht("list")},children:" 返回列表 "})," "]}),(0,F.jsxs)(g.Z,{children:[(0,F.jsx)(y.ZP,{onClick:function(){return ht("last")},disabled:null==un?void 0:un.last,children:" 上一个 "}),(0,F.jsx)(y.ZP,{className:"ml20",disabled:null==rn?void 0:rn.last,onClick:function(){return ht("read")},children:" 下一个 "}),(0,F.jsx)(y.ZP,{className:"ml20",loading:On,type:"primary",onClick:function(){we.submit()},children:" 提交评阅 "})]})]})})]})]})]}),(0,F.jsx)(K.tp,{dataSource:ct,value:null==rt?void 0:rt.status,onChange:function(e){it(d()(d()({},rt),{},{status:e}))}}),(0,F.jsxs)("div",{className:"mt20 p20",style:{background:"#F6F7F9",display:"flex",flexDirection:"column",gap:"20px"},children:[!(null!==(de=0==(null==rt?void 0:rt.status)?null==Se?void 0:Se.comment_scores:null==Se?void 0:Se.hidden_comment_scores)&&void 0!==de&&de.length)&&(0,F.jsx)(X.Z,{styles:{margin:"50px auto"}}),null===(ue=0==(null==rt?void 0:rt.status)?null==Se?void 0:Se.comment_scores:null==Se?void 0:Se.hidden_comment_scores)||void 0===ue?void 0:ue.map((function(e,n){return(0,F.jsx)(me,{index:n,type:1==rt.status&&"teacher",Data:d()(d()({},e),{},{user_info:{user_image_url:e.user_image_url,user_login:e.user_login,user_name:e.user_name}}),getInitData:ut,shixunHomeworks:xe},n)}))]})]}),"1"==Ve&&(null==Ze?void 0:Ze.anonymous_comment)&&(0,U.G5)()&&(0,F.jsxs)("section",{className:"bg-white mt30 p30",children:[(0,F.jsx)("p",{children:"匿评学生"}),!(null==Ze||null===(pe=Ze.no_commented_user_names)||void 0===pe||!pe.length)&&(0,F.jsxs)("p",{children:["未完成匿评:",null==Ze?void 0:Ze.no_commented_user_names.join("、")]}),(0,F.jsxs)("div",{children:["已完成匿评:",null==Ze||null===(he=Ze.commented_user_names)||void 0===he?void 0:he.join("、")]})]}),qn&&(0,F.jsxs)("div",{className:"".concat(B.buttonFixed),children:[" ",(0,F.jsx)("div",{className:"edu-container",children:(0,F.jsx)(v.Z,{wrap:!1,justify:"space-between",align:"middle",children:(0,F.jsxs)(g.Z,{children:[(0,F.jsx)(y.ZP,{onClick:function(){h.history.push("/classrooms/".concat(null==ye?void 0:ye.coursesId,"/common_homework/").concat(null==ye?void 0:ye.categoryId,"/detail"))},children:" 返回列表 "})," "]})})})]}),(0,F.jsx)(H,{}),(0,F.jsx)(R,{studentWorkDetail:Ze}),(0,F.jsx)(C.Z,{}),(0,F.jsx)(f.Z,{title:"确认打回重做",open:"确认打回重做"==(null==Oe?void 0:Oe.key),destroyOnClose:!0,forceRender:!0,width:700,onCancel:function(){dt()},onOk:a()(l()().mark((function e(){var n;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(gn){e.next=3;break}return _.ZP.info("评语不能为空"),e.abrupt("return");case 3:return e.next=5,(0,O.ZP)("/api/student_works/".concat(ye.userId,"/redo_modal.json"),{method:"post",body:{comment:gn,id:ye.userId}});case 5:0===(null==(n=e.sent)?void 0:n.status)&&(_.ZP.info("打回重做成功"),dt(),ut());case 7:case"end":return e.stop()}}),e)}))),children:(0,F.jsxs)("div",{style:{padding:"32px"},children:[(0,F.jsxs)("span",{children:["确认将",null==Ze?void 0:Ze.author_name,"的作业打回重做吗"]}),(0,F.jsxs)("div",{style:{marginTop:"20px"},children:[(0,F.jsxs)("label",{children:[(0,F.jsx)("span",{style:{marginRight:"5px",color:"red"},children:"*"}),"评语:"]}),(0,F.jsx)(L.Z,{className:B.MdEditor,onChange:function(e){return yn(e)},defaultValue:"",height:250})]})]})}),(0,F.jsx)(E.Z,{close:!0,data:null==tt?void 0:tt.content,type:null==tt?void 0:tt.type,hasMask:!0,monacoEditor:{value:Dn.current,language:"txt",onChange:function(){},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onClose:function(){return ot({content:"",type:""})}}),(0,F.jsxs)(f.Z,{width:675,title:"请选择需要导出的格式",open:Tn,confirmLoading:Wn,centered:!0,onCancel:function(){return zn(!1)},onOk:function(){"附件"==Hn?Vn?xt(!1):_t(!1):"批注"==Hn&&(Vn?xt(!0):_t(!0))},children:[(0,F.jsx)("div",{className:B.export_type_modal_title,children:"本次导出包含学生提交的答题记录以及提交的附件,请选择导出附件类型"}),(0,F.jsxs)("div",{className:B.export_type_modal,children:[(0,F.jsxs)("div",{className:B.export_type_modal_con,children:[(0,F.jsxs)("div",{className:"".concat(B.type_item," ").concat("附件"==Hn?B.type_item_active:""),onClick:function(){return Bn("附件")},children:[(0,F.jsx)("div",{className:"".concat(B.img_warp),children:(0,F.jsx)("img",{src:V.Z,width:72,height:80})}),(0,F.jsx)("span",{children:"学生提交的附件"})]}),(0,F.jsxs)("div",{className:"".concat(B.type_item," ").concat("批注"==Hn?B.type_item_active:""),onClick:function(){return Bn("批注")},children:[(0,F.jsx)("div",{className:"".concat(B.img_warp),children:(0,F.jsx)("img",{src:J.Z,width:99,height:80})}),(0,F.jsx)("span",{children:"包含批注内容的附件"})]})]}),(0,F.jsx)("div",{className:B.export_type_modal_waring,children:"如学生未上传附件,仅会导出该学生提交的答题记录"})]})]}),(0,F.jsx)(f.Z,{title:null==Oe?void 0:Oe.key,open:"提交作品记录"==(null==Oe?void 0:Oe.key),centered:!0,destroyOnClose:!0,width:969,footer:null,onCancel:function(){return dt()},children:(0,F.jsx)(N.Z,{locale:{emptyText:(0,F.jsx)(X.Z,{})},columns:at,dataSource:null==Te?void 0:Te.student_works,pagination:!1})}),(0,F.jsx)(f.Z,{title:null==Oe?void 0:Oe.key,open:"问题反馈"==(null==Oe?void 0:Oe.key),centered:!0,destroyOnClose:!0,width:640,onCancel:function(){dt()},confirmLoading:We,onOk:function(){Ie.submit()},children:(0,F.jsxs)(x.Z,{form:Ie,onFinish:function(){var e=a()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Re({student_work_feedback:d()({},n)});case 2:0==(null==(t=e.sent)?void 0:t.status)&&(_.ZP.success("提交成功"),dt(),ut());case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,F.jsx)(x.Z.Item,{name:"content",rules:[{required:!0,message:"请输入内容"}],children:(0,F.jsx)(Z.Z.TextArea,{rows:4,placeholder:"例如:作品提交的附件不清晰",maxLength:200})}),(0,F.jsx)(x.Z.Item,{noStyle:!0,children:" 如果作品无法匿评,请描述问题并点击“确定”按钮进行反馈。反馈后系统将不会扣除缺评分数。"})]})})]})}))},7061:function(e,n,t){t(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;n.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTkiIGhlaWdodD0iODAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNjIuNyA3OS42SDBWOC41aDM5LjNsMjMuNCAxOC40eiIgZmlsbD0iI0YwQTIyMSIvPjxwYXRoIGQ9Ik03MS40IDcxLjFIOC43VjBoNDQuNGwxOC4zIDE4eiIgZmlsbD0iI0YxQzg0QyIvPjxwYXRoIGQ9Ik01My4zIDcuM3YxMS41aDExLjV6IiBmaWxsPSIjRkZGIi8+PHBhdGggZD0iTTM0LjkgMTMuOWgtMTd2NC42aDE3ek00NS45IDI3aC0yOHY0LjZoMjh6TTQ1LjkgNDAuNmgtMjh2NC42aDI4ek00NS45IDUzLjdoLTI4djQuN2gyOHoiIGZpbGw9IiNGMEEyMjEiLz48cGF0aCBkPSJNNjUgMzJINTB2NC42aDE1ek02NSA0NS42SDUwdjQuNmgxNXpNNjUgNTguN0g1MHY0LjdoMTV6IiBmaWxsPSIjRkZGIi8+PGc+PHBhdGggZD0iTTYwIDU2LjVjLjcgNC4zLTEgOC4zLTEgOC4zczQtMS43IDguMy0xYzAgMCAxLjQtNC41IDUuMi0xMEw3MCA1MS4yYy01LjUgMy45LTEwIDUuMy0xMCA1LjNaIiBmaWxsPSIjMDAwIi8+PHBhdGggZD0ibTY0IDU5LjIgNy4xLTcuMS41LjUtNy4xIDcuMXoiIGZpbGw9IiNGOUE1NEMiLz48cGF0aCBkPSJNNjIuOCA1OS44YzAgLjcuNSAxLjIgMS4yIDEuMnMxLjItLjUgMS4yLTEuMi0uNS0xLjItMS4yLTEuMi0xLjIuNi0xLjIgMS4yWiIgZmlsbD0iI0ZGRiIvPjxwYXRoIGQ9Ik03MS42IDU1LjhjNC0yLjYgNi43LTQuNSAxMi42LTEwLjUgMTAuMi0xMC4yIDE2LTE4LjMgMTQuMy0yMC0xLjctMS43LTkuNSAzLjgtMjAgMTQuMy02IDYtNy42IDguNi0xMC41IDEyLjZsMy42IDMuNloiIGZpbGw9IiMzMjRBNUUiLz48cGF0aCBkPSJtNzggMzkuOCA1LjcgNS43LjUtLjUgMS40LTEuNC01LjYtNS43LTEuNCAxLjQtLjYuNVptMTAuNS01LjdjLS41LjItMS4yLjctMS43IDEuNC0xLjIgMS4yLTEuOSAyLjQtMS43IDIuOS41LjUgMS43LS41IDIuOS0xLjcuNy0uNyAxLjItMS4yIDEuNC0xLjdsNi4yLTYuMiAxLjQgMS40YzEuNy0yLjYgMi4xLTQuNSAxLjQtNS0uNS0uNS0yLjYtLjItNSAxLjRsMS42IDEuNi02LjUgNS45WiIgZmlsbD0iI0ZGQzY1QiIvPjwvZz48ZyBmaWxsPSIjRkZGIj48cGF0aCBkPSJtNDkuNiAzNi40LTMuOC0zLjlIMTh2LTFoMjguMmw0LjIgNC4xeiIvPjwvZz48ZyBmaWxsPSIjRkZGIj48cGF0aCBkPSJtNDkuNiA1MC40LTMuOC0zLjlIMTh2LTFoMjguMmw0LjIgNC4xeiIvPjwvZz48ZyBmaWxsPSIjRkZGIj48cGF0aCBkPSJtNDkuNiA2NC40LTMuOC0zLjlIMTh2LTFoMjguMmw0LjIgNC4xeiIvPjwvZz48L2c+PC9zdmc+"},84968:function(e,n,t){t(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;n.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIiIGhlaWdodD0iODAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBmaWxsPSIjRjBBMjIxIiBkPSJNNjIuNjk4IDc5LjYzMUguMDRWOC41MzRoMzkuMjJsMjMuNDM4IDE4LjMzMnoiLz48cGF0aCBkPSJNNzEuMzg3IDcxLjFIOC43M1YuMDA1aDQ0LjMyNmwxOC4zMzcgMTguMDN2NTMuMDY3aC0uMDA1Wk01My4zMzEgNy4zMzZ2MTEuNDhoMTEuNDhMNTMuMzMgNy4zMzVabS04LjM2NyA2LjUzNkgxNy45Mzh2NC42MjNoMjcuMDI2VjEzLjg3Wk02Mi4yNiAyNy4wMjRIMTcuODU3djQuNjIzSDYyLjI2di00LjYyM1ptMCAxMy41NTFIMTcuODU3djQuNjIzSDYyLjI2di00LjYyM1ptMCAxMy4xNThIMTcuODU3djQuNjIzSDYyLjI2di00LjYyM1oiIGZpbGw9IiNGMUM4NEMiLz48L2c+PC9zdmc+"},84481:function(e,n){n.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},66104:function(e,n,t){t.d(n,{Z:function(){return C}});var o=t(92310),l=t.n(o),s=t(55401),r=t(87147),i=t(59301),a=t(92343),c=t(36355),d=t(43501),u=t(91857);const m=e=>{let{children:n}=e;const{getPrefixCls:t}=i.useContext(c.E_),o=t("breadcrumb");return i.createElement("li",{className:`${o}-separator`,"aria-hidden":"true"},""===n?n:n||"/")};m.__ANT_BREADCRUMB_SEPARATOR=!0;var p=m,h=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l{if(n)return n(t,o,l,s);const i=function(e,n){if(void 0===e.title||null===e.title)return null;const t=Object.keys(n).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${t})`,"g"),((e,t)=>n[t]||e))}(t,o);return x(e,t,i,r)}}var f=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l{const{prefixCls:n,separator:t="/",children:o,menu:l,overlay:s,dropdownProps:r,href:a}=e;const c=(e=>{if(l||s){const t=Object.assign({},r);if(l){const e=l||{},{items:n}=e,o=f(e,["items"]);t.menu=Object.assign(Object.assign({},o),{items:null==n?void 0:n.map(((e,n)=>{var{key:t,title:o,label:l,path:s}=e,r=f(e,["key","title","label","path"]);let c=null!=l?l:o;return s&&(c=i.createElement("a",{href:`${a}${s}`},c)),Object.assign(Object.assign({},r),{key:null!=t?t:n,label:c})}))})}else s&&(t.overlay=s);return i.createElement(u.Z,Object.assign({placement:"bottom"},t),i.createElement("span",{className:`${n}-overlay-link`},e,i.createElement(d.Z,null)))}return e})(o);return null!=c?i.createElement(i.Fragment,null,i.createElement("li",null,c),t&&i.createElement(p,null,t)):null},v=e=>{const{prefixCls:n,children:t,href:o}=e,l=f(e,["prefixCls","children","href"]),{getPrefixCls:s}=i.useContext(c.E_),r=s("breadcrumb",n);return i.createElement(j,Object.assign({},l,{prefixCls:r}),x(r,l,t,o))};v.__ANT_BREADCRUMB_ITEM=!0;var g=v,y=t(17313),b=t(83116),w=t(37613);const k=e=>{const{componentCls:n,iconCls:t}=e;return{[n]:Object.assign(Object.assign({},(0,y.Wf)(e)),{color:e.itemColor,fontSize:e.fontSize,[t]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,y.Qy)(e)),"li:last-child":{color:e.lastItemColor},[`${n}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${n}-link`]:{[`\n > ${t} + span,\n > ${t} + a\n `]:{marginInlineStart:e.marginXXS}},[`${n}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${t}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}};var I=(0,b.Z)("Breadcrumb",(e=>{const n=(0,w.TS)(e,{});return[k(n)]}),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}))),N=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l{var{breadcrumbName:n}=e,t=N(e,["breadcrumbName"]);return Object.assign(Object.assign({},t),{title:n})}))}),l}var S=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l{const{prefixCls:n,separator:t="/",style:o,className:d,rootClassName:u,routes:m,items:h,children:x,itemRender:f,params:v={}}=e,g=S(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:y,direction:b,breadcrumb:w}=i.useContext(c.E_);let k;const N=y("breadcrumb",n),[M,C]=I(N),O=function(e,n){return(0,i.useMemo)((()=>e||(n?n.map(Z):null)),[e,n])}(h,m);const L=_(N,f);if(O&&O.length>0){const e=[],n=h||m;k=O.map(((o,l)=>{const{path:s,key:a,type:c,menu:d,overlay:u,onClick:m,className:h,separator:x,dropdownProps:_}=o,f=((e,n)=>{if(void 0===n)return n;let t=(n||"").replace(/^\//,"");return Object.keys(e).forEach((n=>{t=t.replace(`:${n}`,e[n])})),t})(v,s);void 0!==f&&e.push(f);const g=null!=a?a:l;if("separator"===c)return i.createElement(p,{key:g},x);const y={},b=l===O.length-1;d?y.menu=d:u&&(y.overlay=u);let{href:w}=o;return e.length&&void 0!==f&&(w=`#/${e.join("/")}`),i.createElement(j,Object.assign({key:g},y,(0,r.Z)(o,{data:!0,aria:!0}),{className:h,dropdownProps:_,href:w,separator:b?"":t,onClick:m,prefixCls:N}),L(o,v,n,e,w))}))}else if(x){const e=(0,s.Z)(x).length;k=(0,s.Z)(x).map(((n,o)=>{if(!n)return n;const l=o===e-1;return(0,a.Tm)(n,{separator:l?"":t,key:o})}))}const D=l()(N,null==w?void 0:w.className,{[`${N}-rtl`]:"rtl"===b},d,u,C),E=Object.assign(Object.assign({},null==w?void 0:w.style),o);return M(i.createElement("nav",Object.assign({className:D,style:E},g),i.createElement("ol",null,k)))};M.Item=g,M.Separator=p;var C=M},37906:function(e,n,t){t.d(n,{Z:function(){return C}});var o=t(59301),l=t(92310),s=t.n(l),r=t(69507),i=t(36355),a=t(19716),c=t(8628);var d={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};var u=o.createContext({}),m=t(55401),p=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l{return n||(e=t,(0,m.Z)(e).map((e=>Object.assign({},null==e?void 0:e.props))));var e}),[n,t]);return o.useMemo((()=>l.map((n=>{var{span:t}=n,o=p(n,["span"]);return Object.assign(Object.assign({},o),{span:"number"==typeof t?t:(0,r.m9)(e,t)})}))),[l,e])}function x(e,n,t){let o=e;return(void 0===t||t>n)&&(o=Object.assign(Object.assign({},e),{span:n})),o}var _=(e,n)=>(0,o.useMemo)((()=>function(e,n){const t=[];let o=[],l=n;return e.filter((e=>e)).forEach(((s,r)=>{const i=null==s?void 0:s.span,a=i||1;if(r===e.length-1)return o.push(x(s,l,i)),void t.push(o);a{let{children:n}=e;return n};function j(e){return null!=e}var v=e=>{const{itemPrefixCls:n,component:t,span:l,className:r,style:i,labelStyle:a,contentStyle:c,bordered:d,label:u,content:m,colon:p}=e,h=t;return d?o.createElement(h,{className:s()({[`${n}-item-label`]:j(u),[`${n}-item-content`]:j(m)},r),style:i,colSpan:l},j(u)&&o.createElement("span",{style:a},u),j(m)&&o.createElement("span",{style:c},m)):o.createElement(h,{className:s()(`${n}-item`,r),style:i,colSpan:l},o.createElement("div",{className:`${n}-item-container`},(u||0===u)&&o.createElement("span",{className:s()(`${n}-item-label`,{[`${n}-item-no-colon`]:!p}),style:a},u),(m||0===m)&&o.createElement("span",{className:s()(`${n}-item-content`),style:c},m)))};function g(e,n,t){let{colon:l,prefixCls:s,bordered:r}=n,{component:i,type:a,showLabel:c,showContent:d,labelStyle:u,contentStyle:m}=t;return e.map(((e,n)=>{let{label:t,children:p,prefixCls:h=s,className:x,style:_,labelStyle:f,contentStyle:j,span:g=1,key:y}=e;return"string"==typeof i?o.createElement(v,{key:`${a}-${y||n}`,className:x,style:_,labelStyle:Object.assign(Object.assign({},u),f),contentStyle:Object.assign(Object.assign({},m),j),span:g,colon:l,component:i,itemPrefixCls:h,bordered:r,label:c?t:null,content:d?p:null}):[o.createElement(v,{key:`label-${y||n}`,className:x,style:Object.assign(Object.assign(Object.assign({},u),_),f),span:1,colon:l,component:i[0],itemPrefixCls:h,bordered:r,label:t}),o.createElement(v,{key:`content-${y||n}`,className:x,style:Object.assign(Object.assign(Object.assign({},m),_),j),span:2*g-1,component:i[1],itemPrefixCls:h,bordered:r,content:p})]}))}var y=e=>{const n=o.useContext(u),{prefixCls:t,vertical:l,row:s,index:r,bordered:i}=e;return l?o.createElement(o.Fragment,null,o.createElement("tr",{key:`label-${r}`,className:`${t}-row`},g(s,e,Object.assign({component:"th",type:"label",showLabel:!0},n))),o.createElement("tr",{key:`content-${r}`,className:`${t}-row`},g(s,e,Object.assign({component:"td",type:"content",showContent:!0},n)))):o.createElement("tr",{key:r,className:`${t}-row`},g(s,e,Object.assign({component:i?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},n)))},b=t(17313),w=t(83116),k=t(37613);const I=e=>{const{componentCls:n,labelBg:t}=e;return{[`&${n}-bordered`]:{[`> ${n}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${n}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${n}-item-label, > ${n}-item-content`]:{padding:`${e.padding}px ${e.paddingLG}px`,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${n}-item-label`]:{color:e.colorTextSecondary,backgroundColor:t,"&::after":{display:"none"}}}},[`&${n}-middle`]:{[`${n}-row`]:{[`> ${n}-item-label, > ${n}-item-content`]:{padding:`${e.paddingSM}px ${e.paddingLG}px`}}},[`&${n}-small`]:{[`${n}-row`]:{[`> ${n}-item-label, > ${n}-item-content`]:{padding:`${e.paddingXS}px ${e.padding}px`}}}}}},N=e=>{const{componentCls:n,extraColor:t,itemPaddingBottom:o,colonMarginRight:l,colonMarginLeft:s,titleMarginBottom:r}=e;return{[n]:Object.assign(Object.assign(Object.assign({},(0,b.Wf)(e)),I(e)),{"&-rtl":{direction:"rtl"},[`${n}-header`]:{display:"flex",alignItems:"center",marginBottom:r},[`${n}-title`]:Object.assign(Object.assign({},b.vS),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${n}-extra`]:{marginInlineStart:"auto",color:t,fontSize:e.fontSize},[`${n}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${n}-row`]:{"> th, > td":{paddingBottom:o},"&:last-child":{borderBottom:"none"}},[`${n}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${s}px ${l}px`},[`&${n}-item-no-colon::after`]:{content:'""'}},[`${n}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${n}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${n}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${n}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${n}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${n}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${n}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}};var Z=(0,w.Z)("Descriptions",(e=>{const n=(0,k.TS)(e,{});return[N(n)]}),(e=>({labelBg:e.colorFillAlter,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,extraColor:e.colorText}))),S=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l{const{prefixCls:n,title:t,extra:l,column:m,colon:p=!0,bordered:x,layout:f,children:j,className:v,rootClassName:g,style:b,size:w,labelStyle:k,contentStyle:I,items:N}=e,M=S(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:C,direction:O,descriptions:L}=o.useContext(i.E_),D=C("descriptions",n),E=(0,c.Z)(),P=o.useMemo((()=>{var e;return"number"==typeof m?m:null!==(e=(0,r.m9)(E,Object.assign(Object.assign({},d),m)))&&void 0!==e?e:3}),[E,m]),T=h(E,N,j),z=(0,a.Z)(w),$=_(P,T),[F,H]=Z(D),B=o.useMemo((()=>({labelStyle:k,contentStyle:I})),[k,I]);return F(o.createElement(u.Provider,{value:B},o.createElement("div",Object.assign({className:s()(D,null==L?void 0:L.className,{[`${D}-${z}`]:z&&"default"!==z,[`${D}-bordered`]:!!x,[`${D}-rtl`]:"rtl"===O},v,g,H),style:Object.assign(Object.assign({},null==L?void 0:L.style),b)},M),(t||l)&&o.createElement("div",{className:`${D}-header`},t&&o.createElement("div",{className:`${D}-title`},t),l&&o.createElement("div",{className:`${D}-extra`},l)),o.createElement("div",{className:`${D}-view`},o.createElement("table",null,o.createElement("tbody",null,$.map(((e,n)=>o.createElement(y,{key:n,index:n,colon:p,prefixCls:D,vertical:"vertical"===f,bordered:x,row:e})))))))))};M.Item=f;var C=M}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__GroupHomework__Review__index.async.js b/p__Classrooms__Lists__GroupHomework__Review__index.async.js index 1b1da2170a..e13f83e376 100644 --- a/p__Classrooms__Lists__GroupHomework__Review__index.async.js +++ b/p__Classrooms__Lists__GroupHomework__Review__index.async.js @@ -1 +1 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[14662],{22596:function(e,n,t){t.d(n,{Z:function(){return i}});var l=t(1565),r=t(59301),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},o=t(68475),a=function(e,n){return r.createElement(o.Z,(0,l.Z)({},e,{ref:n,icon:s}))};var i=r.forwardRef(a)},93737:function(e,n,t){t.d(n,{Z:function(){return i}});var l=t(1565),r=t(59301),s={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},o=t(68475),a=function(e,n){return r.createElement(o.Z,(0,l.Z)({},e,{ref:n,icon:s}))};var i=r.forwardRef(a)},95972:function(e,n,t){t.d(n,{h:function(){return m},x:function(){return p}});var l=t(82242),r=t.n(l),s=t(39647),o=t.n(s),a=t(57073),i=t(84481),c=t(53847),d=t(37712),u=["value","onChange","scrollId"],m=function(e){var n=e.value,t=e.onChange,l=e.scrollId,s=o()(e,u);return(0,d.jsx)("div",{id:l||"",children:(0,d.jsx)(a.Z,r()(r()({},s),{},{defaultValue:n,onChange:function(e,n){console.log("a:",e,n),null!=n&&n.length?t(e,n):t(e)}}))})},p=function(e){var n=e.value,t=e.onChange,l=e.placeholder,r=e.height,s=void 0===r?140:r;return e.isEdit?(0,d.jsx)(a.Z,{watch:!0,isFocus:!0,height:s,placeholder:l,defaultValue:n,onChange:t}):(0,d.jsx)("div",{style:{cursor:"pointer"},children:n?(0,d.jsx)(c.Z,{className:i.Z.inputBorder,value:n}):(0,d.jsx)("div",{className:"".concat(i.Z.inputBorder," ").concat(i.Z.placeholder," inputBorderError"),children:l})})}},40168:function(e,n,t){t.d(n,{Z:function(){return c}});var l=t(79800),r=t.n(l),s=t(59301),o=t(12978),a=t(13879),i=t(37712),c=function(){var e=(0,s.useState)(""),n=r()(e,2),t=n[0],l=n[1],c=(0,s.useState)(0),d=r()(c,2),u=(d[0],d[1]),m=(0,s.useState)(),p=r()(m,2),h=(p[0],p[1]),x=(0,s.useState)(),f=r()(x,2),v=(f[0],f[1]),g=(0,s.useState)(!1),_=r()(g,2),j=(_[0],_[1],(0,s.useRef)(""));function b(e){27==e.keyCode&&j.current&&y()}function y(){document.body.style.overflow="auto",h(void 0),v(void 0),u(0),l("")}(0,s.useEffect)((function(){return o.Z.subscribe("preview-image",(function(e){l(e),console.log(k.current),document.body.style.overflow="hidden"}))}),[]),(0,s.useEffect)((function(){return document.addEventListener("keydown",b),function(){document.removeEventListener("keydown",b)}}),[]),(0,s.useEffect)((function(){j.current=t}),[t]);(0,s.useRef)();var w=(0,s.useRef)(),k=(0,s.useRef)();return(0,i.jsx)(s.Fragment,{children:t?(0,i.jsx)("div",{children:(0,i.jsx)("div",{className:"preview-wrp-group",ref:w,children:(0,i.jsx)(a.Z,{className:"image-preview",src:t,style:{display:"none"},preview:{visible:!0,src:t,movable:!1,onVisibleChange:function(e){l("")}},alt:"预览大图"})})}):null})}},6088:function(e,n,t){t.r(n),t.d(n,{default:function(){return le}});var l=t(7557),r=t.n(l),s=t(41498),o=t.n(s),a=t(82242),i=t.n(a),c=t(79800),d=t.n(c),u=t(39647),m=t.n(u),p=t(59301),h=t(89084),x=t(43418),f=t(78241),v=t(8591),g=t(66104),_=t(95237),j=t(43604),b=t(99313),y=t(3113),w=t(6848),k=t(54449),Z=t(24905),I=t(14491),S=t(98135),N=t(22596),C=t(40168),O=t(57073),E=t(12978),$=t(99232),P=t.n($),H=t(89392),T=t(88270),D=t(37821),F=t(37712),M=(0,h.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks}}))((function(e){var n=e.shixunHomeworks,t=e.dispatch,l=(0,h.useParams)(),s=(0,p.useState)(!0),a=d()(s,2),c=(a[0],a[1],f.Z.useForm()),u=d()(c,1)[0];return(0,F.jsx)(F.Fragment,{children:(0,F.jsxs)(x.Z,{centered:!0,title:"调分",open:"调分"===n.actionTabs.key,okText:"确定",cancelText:"取消",onOk:o()(r()().mark((function e(){var s;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u.validateFields();case 2:return s=u.getFieldsValue(),e.next=5,(0,D.ZP)("/api/student_works/".concat(n.actionTabs.id,"/adjust_score.json"),{method:"post",body:i()({},s)});case 5:0===e.sent.status&&(v.ZP.success("评阅成功"),u.resetFields(),t({type:"shixunHomeworks/setActionTabs",payload:{}}),t({type:"shixunHomeworks/getStudentWorkCommon",payload:i()({},l)}));case 7:case"end":return e.stop()}}),e)}))),onCancel:function(){t({type:"shixunHomeworks/setActionTabs",payload:{}})},children:[(0,F.jsx)("p",{className:"tc",children:"该学生的最终成绩将不会按照评分规则进行计算"}),(0,F.jsxs)(f.Z,{form:u,layout:"horizontal",children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"baseline"},children:[(0,F.jsx)(f.Z.Item,{label:"成绩",name:"score",rules:[{required:!0,message:"请输入!"}],children:(0,F.jsx)(k.Z,{min:0,placeholder:"请填写分数"})}),(0,F.jsx)("span",{className:"ml10",children:"分"})]}),(0,F.jsx)("div",{children:(0,F.jsx)(f.Z.Item,{name:"comment",children:(0,F.jsx)(S.Z.TextArea,{placeholder:"请填写您对作品调分的原因",rows:8})})})]})]})})})),W=t(97313),B=(0,h.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var n=e.classroomList,t=(e.loading,e.dispatch),l=e.studentWorkDetail,s=((0,h.useParams)(),f.Z.useForm()),a=d()(s,1)[0],c=function(){var e=o()(r()().mark((function e(){var l,s,o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.validateFields();case 2:return s=i()({},a.getFieldValue()),o=n.actionTabs.selectArrs,s.attachment_ids=null===(l=s.attachment_ids)||void 0===l?void 0:l.map((function(e){return e.response.id})),e.next=7,(0,T.mz)(i()(i()({},s),{},{homeworkId:o.work_id}));case 7:0===e.sent.status&&(t({type:"shixunHomeworks/getStudentWorkSupplyDetail",payload:i()({},n.actionTabs.params)}),t({type:"classroomList/setActionTabs",payload:{}}));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,F.jsx)(x.Z,{centered:!0,title:"补交附件",open:"补交附件"===n.actionTabs.key,bodyStyle:{minHeight:200},onOk:o()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==l||!l.can_submit){e.next=6;break}if(null!=l&&l.submit_size){e.next=4;break}return v.ZP.warning("您的作品提交机会已用完。如需继续修改,请联系指导老师或平台运营。"),e.abrupt("return");case 4:return x.Z.confirm({title:"提示",icon:null,centered:!0,width:472,content:(0,F.jsxs)(F.Fragment,{children:["你还有 ",(0,F.jsx)("span",{className:"ml5 mr5",style:{color:"#DF711C"},children:null==l?void 0:l.submit_size})," 次提交机会。确认提交后,上一次的提交记录会被覆盖。请注意,到达规定的提交次数后将不可再次提交,确定是否提交?"]}),onOk:function(){c()}}),e.abrupt("return");case 6:c();case 7:case"end":return e.stop()}}),e)}))),onCancel:function(){t({type:"classroomList/setActionTabs",payload:{}})},children:(0,F.jsxs)(f.Z,{form:a,initialValues:{},children:[(0,F.jsx)(f.Z.Item,{name:"attachment_ids",rules:[{required:!0,message:"请上传附件"}],children:(0,F.jsx)(W.Z,{})}),(0,F.jsx)(f.Z.Item,{name:"description",children:(0,F.jsx)(S.Z.TextArea,{placeholder:"请在此输入补交附件的原因,最大限制100个字符",rows:7})})]})})})),L=t(31260),R={flex_box_center:"flex_box_center___ek18E",flex_space_between:"flex_space_between___e7BP6",flex_box_vertical_center:"flex_box_vertical_center___Oju9C",flex_box_center_end:"flex_box_center_end___qQv1O",flex_box_column:"flex_box_column___DHwHY",TabsStyle:"TabsStyle___glGge",bg:"bg___uHtJ5",title:"title___WcS8b",replyList:"replyList___HLYJ8",leader:"leader___qJvA3",buttonFixed:"buttonFixed___WAuFs",exitComment:"exitComment___cW4re",nextComment:"nextComment___AMMy5",modal:"modal___e3Tjt",MdEditor:"MdEditor___JLCMs"},z=t(53847),A=t(271),Y=t(13095),G=t(60969),V=t(95972),J=t(8768),X=t(28389),U=t(37906),q=t(99741),Q="headpic___Pcfo7",K=t(84449),ee=["Data","layer","type","index"],ne=(0,h.connect)((function(e){var n=e.shixunHomeworks,t=e.user;return{shixunHomeworks:n,globalSetting:e.globalSetting,user:t}}))((function e(n){var t,l,s,a,c,u,g,b,w,I,S,N,C,E,$=n.Data,H=n.layer,M=void 0===H?1:H,W=n.type,B=n.index,R=void 0===B?0:B,A=m()(n,ee),Y=(0,h.useParams)(),V=(0,p.useState)({type:0,show:!1}),J=d()(V,2),X=J[0],ne=J[1],te=(0,p.useState)(null),le=d()(te,2),re=le[0],se=le[1],oe=(0,G.U)(T.qP,{userId:null==Y?void 0:Y.userId}),ae=d()(oe,3),ie=ae[1],ce=ae[2],de=(0,G.U)(T.R$,{userId:null==Y?void 0:Y.userId}),ue=d()(de,3),me=ue[1],pe=ue[2],he=(0,G.U)(T.QC,{userId:null==Y?void 0:Y.userId}),xe=d()(he,3),fe=(xe[1],xe[2]),ve=(0,G.U)(T.Mf,{userId:null==Y?void 0:Y.userId}),ge=d()(ve,3),_e=(ge[1],ge[2]),je=f.Z.useForm(),be=d()(je,1)[0],ye=(0,p.useState)(!1),we=d()(ye,2),ke=we[0],Ze=we[1];return(0,F.jsxs)("div",{children:[(0,F.jsxs)(_.Z,{wrap:!1,gutter:15,children:[1!=M&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("div",{style:{width:"".concat(40*(M-1),"px")}})}),"appeal_info"==W?(0,F.jsx)(j.Z,{children:(0,F.jsx)("img",{className:"mt10 ".concat(Q),width:40,src:"--"===(null==$||null===(t=$.appeal_info)||void 0===t?void 0:t.user_image_url)?K.xp:"".concat(q.Z.IMG_SERVER,"/images/").concat(null==$||null===(l=$.appeal_info)||void 0===l?void 0:l.user_image_url)})}):(0,F.jsx)(j.Z,{children:(0,F.jsx)("img",{className:"mt10 ".concat(Q),width:40,src:"--"===(null==$||null===(s=$.user_info)||void 0===s?void 0:s.user_image_url)?K.xp:"".concat(q.Z.IMG_SERVER,"/images/").concat(null==$||null===(a=$.user_info)||void 0===a?void 0:a.user_image_url)})}),"appeal_info"==W?(0,F.jsxs)(j.Z,{flex:1,children:[(0,F.jsx)(z.Z,{className:"font14",value:"".concat(null==$||null===(c=$.appeal_info)||void 0===c?void 0:c.user_name,":").concat((null==$||null===(u=$.appeal_info)||void 0===u?void 0:u.content)||"暂未写评语")}),(0,F.jsxs)(_.Z,{className:"c-grey-666 mt5",wrap:!1,align:"middle",gutter:20,children:[(0,F.jsx)(j.Z,{children:P()(null==$||null===(g=$.appeal_info)||void 0===g?void 0:g.time).format("YYYY-MM-DD HH:mm")}),1==(null==$?void 0:$.appeal_status)&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:" font12",style:{color:"#3061D0",border:"1px solid #3061D0",borderRadius:"2px",padding:"2px"},children:"申诉中"})}),2==(null==$?void 0:$.appeal_status)&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"tag-style bg-grey-ede c-light-black font12",children:"申诉已撤销"})}),3==(null==$?void 0:$.appeal_status)&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:" font12",style:{color:"#3061D0",border:"1px solid #3061D0",borderRadius:"2px",padding:"2px"},children:"申诉成功"})}),4==(null==$?void 0:$.appeal_status)&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"tag-style bg-grey-ede c-light-black font12",children:"申诉被拒绝"})}),5==(null==$?void 0:$.appeal_status)&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"tag-style bg-grey-ede c-light-black font12",children:"申诉失败"})})]})]}):(0,F.jsxs)(j.Z,{flex:1,children:[(0,F.jsx)(z.Z,{className:"font14",value:"".concat(null==$||null===(b=$.user_info)||void 0===b?void 0:b.user_name).concat(null!=$&&$.who_score?1==(null==$?void 0:$.who_score)?"(组长评分)":"(匿评评分)":null!=$&&$.comment_role?"(".concat(null==$?void 0:$.comment_role,")"):"",":").concat((null==$?void 0:$.content)||"暂未写评语")}),(0,F.jsxs)(_.Z,{className:"c-grey-666 mt5",wrap:!1,align:"middle",gutter:20,children:[(0,F.jsx)(j.Z,{children:P()((null==$?void 0:$.comment_time)||(null==$?void 0:$.time)).format("YYYY-MM-DD HH:mm")}),(null==$?void 0:$.student_work_num)&&(0,F.jsx)(j.Z,{children:(0,F.jsxs)("span",{style:{padding:"3px",background:"rgba(219,243,224,0.88)",color:"#1FBE3C",fontSize:"12px"},children:["第",null==$?void 0:$.student_work_num,"次提交的作品"]})}),(null==$?void 0:$.score)&&(0,F.jsx)(j.Z,{children:(0,F.jsxs)("span",{className:"c-orange",children:[" ",null==$?void 0:$.score,"分 "]})})]}),(null==$||null===(w=$.attachments)||void 0===w?void 0:w.length)>0&&(0,F.jsx)("div",{className:"mt10",style:{display:"flex",flexDirection:"column",gap:10},children:null==$||null===(I=$.attachments)||void 0===I?void 0:I.map((function(e,n){return(0,F.jsxs)("a",{href:"".concat(q.Z.API_SERVER).concat(e.url),children:[(0,F.jsx)("i",{className:"iconfont icon-fujian font14"}),(0,F.jsx)("span",{className:"ml10",children:e.title}),(0,F.jsx)("span",{className:"c-light-black ml20 font12",children:e.filesize})]},n)}))})]}),"feedback"!=W&&(0,F.jsx)(F.Fragment,{children:"appeal_info"==W?(0,F.jsx)(j.Z,{style:{whiteSpace:"nowrap"},children:(0,F.jsxs)(_.Z,{wrap:!1,gutter:10,children:[(null==$?void 0:$.delete)&&(null==$?void 0:$.can_appeal)&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"c-blue current",onClick:function(){var e;x.Z.confirm({centered:!0,title:(0,F.jsxs)("div",{children:["撤销申诉后,无法再对本评阅记录进行申诉",(0,F.jsx)("br",{}),"是否确认撤销申诉"]}),onOk:(e=o()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(null==A?void 0:A.getInitData)&&(null==A||A.getInitData());case 1:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},children:"撤销申诉"})}),1==(null==$?void 0:$.appeal_status)&&(0,L.GJ)()&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"c-blue current",onClick:function(){Ze(!0)},children:"接受申诉"})}),1==(null==$?void 0:$.appeal_status)&&(0,L.GJ)()&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"c-red current",onClick:function(){var e;x.Z.confirm({centered:!0,title:(0,F.jsxs)("div",{children:["此匿评成绩将被认为合理",(0,F.jsx)("br",{}),"是否确认拒绝申诉"]}),onOk:(e=o()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,D.ZP)("/api/student_works/".concat(Y.userId,"/deal_appeal_score.json"),{method:"post",body:{score_id:null==$?void 0:$.score_id,status:4}});case 2:0===(null==(n=e.sent)?void 0:n.status)&&(null==A?void 0:A.getInitData)&&(null==A||A.getInitData());case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},children:"拒绝申诉"})})]})}):(0,F.jsxs)(F.Fragment,{children:[(1==M||"teacher"==W)&&(0,F.jsx)(j.Z,{style:{whiteSpace:"nowrap"},children:(0,F.jsxs)(_.Z,{wrap:!1,gutter:10,children:[(null==$?void 0:$.delete)&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"c-blue current",onClick:function(){!function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$;x.Z.confirm({title:"是否确认删除?",centered:!0,onOk:(e=o()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fe({score_id:null==n?void 0:n.comment_id});case 2:0===e.sent.status&&(v.ZP.success("删除成功"),(null==A?void 0:A.getInitData)&&(null==A||A.getInitData()));case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})}($)},children:"删除"})}),(null==$?void 0:$.can_appeal)&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"c-blue current",onClick:function(){ne({type:1,show:!0})},children:"申诉"})}),(null==$?void 0:$.can_reply)&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"c-blue current",onClick:function(){ne({type:0,show:!0})},children:"回复"})}),(1==M&&!(null!=$&&$.can_reply)||!(null!=$&&$.can_reply)&&"teacher"==W&&0!=R)&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"c-light-black",children:"失效"})})]})}),1!=M&&(null==$?void 0:$.can_delete)&&"teacher"!=W&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"c-blue current",onClick:function(){!function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$;x.Z.confirm({title:"是否确认删除?",centered:!0,onOk:(e=o()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_e({object_id:n.id,object_type:"journals_for_message"});case 2:0===e.sent.status&&(v.ZP.success("删除成功"),(null==A?void 0:A.getInitData)&&(null==A||A.getInitData()));case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})}($)},children:"删除"})})]})})]}),1==M&&(null==$?void 0:$.appeal_info)&&""!=(null==$?void 0:$.appeal_info)&&(0,F.jsx)("div",{className:"mt20",style:{display:"flex",flexDirection:"column",gap:"20px"},children:(0,F.jsx)(e,i()({type:"appeal_info",Data:$,layer:M+1},A))}),1==M&&(null==$||null===(S=$.journals)||void 0===S?void 0:S.length)>0&&(0,F.jsx)("div",{className:"mt20",style:{display:"flex",flexDirection:"column",gap:"20px"},children:null==$||null===(N=$.journals)||void 0===N?void 0:N.map((function(n,t){return(0,F.jsx)(e,i()({type:W,Data:n,layer:M+1},A),t)}))}),X.show&&(0,F.jsxs)("div",{className:"mt20 mb20",style:{marginLeft:"56px"},children:[(0,F.jsx)(O.Z,{height:150,isFocus:!0,watch:!0,onChange:function(e){se(e)}}),(0,F.jsxs)(_.Z,{align:"middle",justify:"end",gutter:20,children:[(0,F.jsx)(j.Z,{children:(0,F.jsx)(y.ZP,{onClick:function(){ne({type:0,show:!1})},children:"取消"})}),(0,F.jsx)(j.Z,{children:(0,F.jsx)(y.ZP,{loading:ie||me,type:"primary",onClick:o()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==re){e.next=3;break}return v.ZP.error("请输入内容"),e.abrupt("return");case 3:if("teacher"!=W){e.next=9;break}return e.next=6,ce({hidden_comment:re,score_id:null==$?void 0:$.score_id});case 6:n=e.sent,e.next=12;break;case 9:return e.next=11,(0==(null==X?void 0:X.type)?ce:pe)({comment:re,score_id:null==$?void 0:$.score_id});case 11:n=e.sent;case 12:0===n.status&&(v.ZP.success("操作成功"),ne({type:0,show:!1}),(null==A?void 0:A.getInitData)&&(null==A||A.getInitData()));case 13:case"end":return e.stop()}}),e)}))),children:0==(null==X?void 0:X.type)?"回复":"申诉"})})]})]}),(0,F.jsx)(x.Z,{title:"接受申诉",open:ke,centered:!0,destroyOnClose:!0,onCancel:function(){Ze(!1)},maskClosable:!1,width:544,onOk:function(){be.submit()},children:(0,F.jsxs)(f.Z,{form:be,colon:!1,onFinish:function(){var e=o()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,D.ZP)("/api/student_works/".concat(Y.userId,"/deal_appeal_score.json"),{method:"post",body:i()(i()({},n),{},{userId:Y.userId,score_id:null==$?void 0:$.score_id,status:3})});case 2:0===e.sent.status&&(Ze(!1),(null==A?void 0:A.getInitData)&&(null==A||A.getInitData()));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,F.jsx)("div",{style:{color:"#191919"},children:"确认是否接受申诉?一旦接受,被申诉的评分记录将作废。请您补充匿评评分:"}),(0,F.jsx)(U.Z,{style:{marginTop:"20px"},colon:!1,items:[{key:"1",label:"申诉人",children:(0,F.jsx)("span",{children:null==$||null===(C=$.appeal_info)||void 0===C?void 0:C.user_name})},{key:"2",label:"被申诉人",children:(0,F.jsx)("span",{style:{color:"#191919"},children:null==$||null===(E=$.user_info)||void 0===E?void 0:E.user_name})},{key:"3",label:"被申诉人评分",children:(0,F.jsx)("span",{style:{color:"#191919"},children:null==$?void 0:$.score})}]}),(0,F.jsxs)(_.Z,{className:"mt20",wrap:!1,children:[(0,F.jsx)(j.Z,{children:(0,F.jsx)(f.Z.Item,{label:"匿评分数",name:"score",rules:[{required:!0,message:"请输入分数"}],children:(0,F.jsx)(k.Z,{min:1,max:100,step:1})})}),(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"ml10",style:{lineHeight:"30px"},children:"分"})}),(0,F.jsx)(j.Z,{children:(0,F.jsx)(f.Z.Item,{className:"ml20",valuePropName:"checked",name:"is_appeal_penalty",initialValue:!0,children:(0,F.jsx)(Z.Z,{children:"扣除违规匿评分数"})})})]})]})})]})})),te=["shixunHomeworks","globalSetting","loading","user","dispatch"],le=(0,h.connect)((function(e){var n=e.shixunHomeworks,t=e.loading,l=e.user;return{shixunHomeworks:n,globalSetting:e.globalSetting,user:l,loading:t.effects}}))((function(e){var n,t,l,s,a,c,u,$,U,q,Q,K,ee,le,re,se,oe,ae,ie,ce,de,ue,me,pe=e.shixunHomeworks,he=e.globalSetting,xe=(e.loading,e.user),fe=e.dispatch,ve=(m()(e,te),(0,h.useSearchParams)()),ge=d()(ve,1)[0],_e=(0,h.useParams)(),je=(0,p.useRef)(),be=xe.userInfo,ye=pe.studentWorkDetail,we=pe.studentWorkCommon,ke=(pe.studentWorkSupplyDetail,pe.workList),Ze=pe.workDetail,Ie=pe.actionTabs,Se=(0,G.U)(T.wT,{userId:null==_e?void 0:_e.userId}),Ne=d()(Se,4),Ce=Ne[1],Oe=Ne[2],Ee=Ne[3],$e=(0,G.U)(T.Wr,{userId:null==_e?void 0:_e.userId}),Pe=d()($e,4),He=(Pe[1],Pe[2]),Te=Pe[3],De=(0,G.U)(T.G$,{userId:null==_e?void 0:_e.userId,id:null==_e?void 0:_e.userId}),Fe=d()(De,3),Me=Fe[1],We=Fe[2],Be=(0,p.useState)("1"),Le=d()(Be,2),Re=Le[0],ze=Le[1],Ae=(0,p.useState)(!1),Ye=d()(Ae,2),Ge=Ye[0],Ve=Ye[1],Je=(0,p.useState)(!1),Xe=d()(Je,2),Ue=Xe[0],qe=Xe[1],Qe=x.Z.useModal(),Ke=d()(Qe,2),en=(Ke[0],Ke[1]),nn=f.Z.useForm(),tn=d()(nn,1)[0],ln=f.Z.useForm(),rn=d()(ln,1)[0],sn=(0,p.useState)({last:!1}),on=d()(sn,2),an=on[0],cn=on[1],dn=(0,p.useState)({last:!1}),un=d()(dn,2),mn=un[0],pn=un[1],hn=(0,p.useState)(!1),xn=d()(hn,2),fn=xn[0],vn=xn[1],gn=(0,p.useState)(""),_n=d()(gn,2),jn=_n[0],bn=_n[1],yn=(0,p.useState)(!1),wn=d()(yn,2),kn=wn[0],Zn=wn[1],In=(0,p.useState)(""),Sn=d()(In,2),Nn=Sn[0],Cn=Sn[1],On=(0,p.useState)({status:0}),En=d()(On,2),$n=En[0],Pn=En[1],Hn=[{id:0,name:"全部点评(".concat((null==we||null===(n=we.comment_scores)||void 0===n?void 0:n.length)||0,")"),isShow:(0,L.GJ)()||(null==ye?void 0:ye.show_evaluation)},{id:1,name:"仅课堂老师可见(".concat((null==we||null===(t=we.hidden_comment_scores)||void 0===t?void 0:t.length)||0,")"),isShow:(0,L.GJ)()}].filter((function(e){return e.isShow})),Tn=[{title:"提交次数",dataIndex:"id",ellipsis:!0,width:80,render:function(e,n,t){return t+1}},{title:"提交时间",dataIndex:"commit_time",ellipsis:!0,render:function(e){return P()(e).format("YYYY-MM-DD HH:mm")}},{title:"提交阶段",dataIndex:"stage_name",ellipsis:!0,render:function(e,n){return(0,F.jsxs)(F.Fragment,{children:[e,(null==n?void 0:n.is_redo)&&(0,F.jsx)("span",{style:{color:"#FF9D18"},children:"(打回)"})]})}},{title:"教师评分",dataIndex:"teacher_score",ellipsis:!0},{title:"助教评分",dataIndex:"teaching_asistant_score",ellipsis:!0},{title:"匿评得分",dataIndex:"student_score",ellipsis:!0},{title:"操作",dataIndex:"history_id",ellipsis:!0,width:80,align:"right",render:function(e,n){return(0,F.jsx)("a",{target:"_blank",href:"/classrooms/".concat(null==_e?void 0:_e.coursesId,"/group_homework/").concat(null==_e?void 0:_e.commonHomeworkId,"/review/").concat(null==n?void 0:n.student_work_id,"?history_id=").concat(null==n?void 0:n.history_id),children:"查看"})}}],Dn=function(){fe({type:"shixunHomeworks/getStudentWorkCommon",payload:i()({},_e)})};(0,p.useEffect)((function(){return fe({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:_e.commonHomeworkId}}),fe({type:"globalSetting/footerToggle",payload:!1}),Cn(ge.get("history_id")||""),function(){fe({type:"globalSetting/footerToggle",payload:!0})}}),[]),(0,p.useEffect)((function(){var e=JSON.parse(sessionStorage.getItem("all_student_works_params")||"{}");fe({type:"shixunHomeworks/getStudentWorkDetail",payload:i()(i()(i()({},_e),e),{},{history_id:ge.get("history_id")||Nn})}),fe({type:"shixunHomeworks/getStudentWorkSupplyDetail",payload:i()({},_e)}),Dn(),je.current.onclick=function(e){"IMG"===e.target.nodeName&&""!==e.target.alt&&E.Z.publish("preview-image",e.target.src)}}),[_e.categoryId,_e.userId]),(0,p.useEffect)((function(){null!=ye&&ye.homework_id&&(null!=ye&&ye.prev_work_id?pn({student_work_id:null==ye?void 0:ye.prev_work_id}):pn({last:!0}),null!=ye&&ye.next_work_id?cn({student_work_id:null==ye?void 0:ye.next_work_id}):cn({last:!0}))}),[ye]);var Fn=function(){var e=o()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.attachment_ids=null===(t=n.attachment_ids)||void 0===t?void 0:t.map((function(e){var n;return null==e||null===(n=e.response)||void 0===n?void 0:n.id})),Zn(!0),e.next=4,(0,T.yy)(i()(i()({},n),{},{userId:_e.userId}));case 4:0===e.sent.status&&(tn.resetFields(),null!=ye&&ye.next_work_id?(v.ZP.success("评阅成功!已为您自动切换至下一个待评阅的学生",2),Mn("read")):(v.ZP.success("评阅成功!",2),Dn())),Zn(!1);case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Mn=function(){var e=o()(r()().mark((function e(n){var t,l,s,o,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=tn.getFieldsValue(),l=t.comment,s=t.score,o=t.attachment_ids,a=!(0,H.isNil)(s),console.log("-------",_e),!(l||a||o)){e.next=6;break}return x.Z.confirm({centered:!0,okText:"离开",cancelText:"取消",title:"离开此页提示",content:(0,F.jsx)("div",{className:"tc",children:"系统可能不会保存您所做的更改"}),onOk:function(){tn.resetFields(),"last"===n?h.history.push("/classrooms/".concat(null==_e?void 0:_e.coursesId,"/group_homework/").concat(null==_e?void 0:_e.commonHomeworkId,"/review/").concat(null==mn?void 0:mn.student_work_id)):"read"===n?h.history.push("/classrooms/".concat(null==_e?void 0:_e.coursesId,"/group_homework/").concat(null==_e?void 0:_e.commonHomeworkId,"/review/").concat(null==an?void 0:an.student_work_id)):h.history.push("/classrooms/".concat(_e.coursesId,"/group_homework/").concat(_e.commonHomeworkId,"/detail"))}}),e.abrupt("return");case 6:"last"===n?h.history.push("/classrooms/".concat(null==_e?void 0:_e.coursesId,"/group_homework/").concat(null==_e?void 0:_e.commonHomeworkId,"/review/").concat(null==mn?void 0:mn.student_work_id)):"read"===n?h.history.push("/classrooms/".concat(null==_e?void 0:_e.coursesId,"/group_homework/").concat(null==_e?void 0:_e.commonHomeworkId,"/review/").concat(null==an?void 0:an.student_work_id)):h.history.push("/classrooms/".concat(_e.coursesId,"/group_homework/").concat(_e.commonHomeworkId,"/detail"));case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Wn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{key:""};fe({type:"shixunHomeworks/setActionTabs",payload:e}),""===e.key&&(tn.resetFields(),rn.resetFields())};return(0,F.jsxs)("section",{className:"edu-container pb80",ref:je,children:[(0,F.jsxs)("section",{className:"animated fadeIn",children:[(0,F.jsx)("aside",{className:"mt10",children:be&&(0,F.jsxs)(g.Z,{separator:">",children:[(0,F.jsx)(g.Z.Item,{children:(0,F.jsx)(h.Link,{to:"/classrooms/".concat(_e.coursesId,"/group_homework"),children:null==be||null===(l=be.course)||void 0===l?void 0:l.course_name})}),(0,F.jsx)(g.Z.Item,{children:(0,F.jsx)(h.Link,{to:"/classrooms/".concat(_e.coursesId,"/group_homework"),children:"分组作业"})}),(0,F.jsx)(g.Z.Item,{children:(0,F.jsx)(h.Link,{to:"/classrooms/".concat(_e.coursesId,"/group_homework/").concat(_e.commonHomeworkId,"/detail"),children:"作业详情"})}),(0,F.jsx)(g.Z.Item,{children:null==ye?void 0:ye.author_name})]})}),(0,F.jsx)("aside",{className:[R.title,"mt20"].join(" "),children:(0,F.jsxs)(_.Z,{style:{width:"100%"},children:[(0,F.jsxs)(j.Z,{flex:"1",children:[(0,F.jsx)(h.Link,{to:"/classrooms/".concat(_e.coursesId,"/group_homework"),children:(0,F.jsx)(N.Z,{className:"font16 c-black"})}),(0,F.jsx)("strong",{className:"font20 ml5",children:null==ye?void 0:ye.homework_name}),(0,F.jsx)(A.VV,{status:null==ye?void 0:ye.homework_status})]}),!Nn&&(0,F.jsx)(j.Z,{children:(0,L.dE)()&&(null==ye||null===(s=ye.homework_status)||void 0===s?void 0:s.includes("补交中"))&&(0,F.jsx)("span",{onClick:function(){null==ye||!ye.can_submit||null!=ye&&ye.submit_size?fe({type:"classroomList/setActionTabs",payload:{key:"补交附件",params:_e,selectArrs:{homework_id:_e.commonHomeworkId,work_id:_e.userId}}}):v.ZP.warning("您的作品提交机会已用完。如需继续修改,请联系指导老师或平台运营。")},className:"c-blue current font14",children:"补交附件"})})]})})]}),(0,F.jsxs)(b.Z,{className:R.TabsStyle,destroyInactiveTabPane:!0,defaultActiveKey:"1",activeKey:Re,tabBarExtraContent:(0,F.jsx)(F.Fragment,{children:!Nn&&(null==ye?void 0:ye.commit_count)>1&&(0,F.jsx)(y.ZP,{icon:(0,F.jsx)("i",{className:"iconfont icon-tijiaozongjie"}),loading:Ce,onClick:o()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Oe({},!0);case 2:Wn({key:"提交作品记录"});case 3:case"end":return e.stop()}}),e)}))),children:"提交作品记录"})}),onChange:function(e){ze(e),"3"==e&&He({})},children:[(0,F.jsx)(b.Z.TabPane,{tab:(0,F.jsxs)("span",{style:{position:"relative"},children:["作业详情",Nn&&(0,F.jsxs)("span",{style:{position:"absolute",left:"130%",padding:"3px",background:"rgba(219,243,224,0.88)",color:"#1FBE3C",fontSize:"12px"},children:["第",null==ye?void 0:ye.commit_count,"次提交的作品"]})]}),children:(0,F.jsxs)("div",{className:"pl30 pr30 pb10 bg-white",children:[!(null!=ye&&null!==(a=ye.project_info)&&void 0!==a&&a.id)&&(0,F.jsxs)("div",{className:"pt20 pb20",style:(null==ye?void 0:ye.description)&&{borderBottom:"1px solid #DFDFDF"},children:[(0,F.jsx)("div",{className:"font18 blod",children:"作业描述"}),(0,F.jsx)(z.Z,{className:"mt10",value:(null==Ze?void 0:Ze.description)||"暂无~"}),(0,F.jsx)(Y.Z,{authority:(0,L.GJ)(),showDimensions:!1,dataSource:null==Ze?void 0:Ze.attachments,callback:function(){fe({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:_e.commonHomeworkId}})}})]}),(null==ye?void 0:ye.description)&&(0,F.jsxs)("div",{className:"pt20",children:[(0,F.jsxs)(_.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,F.jsx)(j.Z,{children:(0,F.jsxs)("span",{className:"font18 blod",children:["学生作业",(0,F.jsx)(w.Z,{title:(0,F.jsx)("span",{className:"font14",children:"(当前支持批注的文档类型:.docx、.xlsx、.pptx)"}),children:(0,F.jsx)("i",{className:"iconfont icon-tishixiaowenhao ml10 font14 c-grey-999 current",style:{lineHeight:"18px"}})})]})}),(0,F.jsxs)(j.Z,{children:[(null==ye?void 0:ye.commit_time)&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{className:" c-light-black",children:P()(null==ye?void 0:ye.commit_time).format("YYYY-MM-DD HH:mm")}),(0,F.jsx)("span",{className:"ml10",children:null==ye?void 0:ye.commit_user_name}),(0,F.jsx)("span",{className:"ml10 c-light-black",children:"提交"})]}),(null==ye?void 0:ye.update_time)&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{className:"ml30 c-light-black",children:P()(null==ye?void 0:ye.update_time).format("YYYY-MM-DD HH:mm")}),(0,F.jsx)("span",{className:"ml10",children:null==ye?void 0:ye.update_user_name}),(0,F.jsx)("span",{className:"ml10 c-light-black",children:"更新"})]})]})]}),(0,F.jsx)(z.Z,{className:"mt10",value:(null==ye?void 0:ye.description)||"暂无~"}),(0,F.jsx)(Y.Z,{authority:(0,L.GJ)(),dataSource:null==ye?void 0:ye.attachments,callback:function(){fe({type:"shixunHomeworks/getStudentWorkDetail",payload:i()({},_e)})}})]}),(null==ye||null===(c=ye.project_info)||void 0===c?void 0:c.id)&&(0,F.jsx)("div",{className:"pt20 pb20",style:{borderTop:"1px solid #CCC",marginTop:"20px"},children:(0,F.jsxs)(_.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,F.jsx)(j.Z,{children:(0,F.jsx)("div",{className:"font16",children:"关联项目"})}),(0,F.jsx)(j.Z,{children:-1===(null==ye||null===(u=ye.project_info)||void 0===u?void 0:u.id)?(0,F.jsx)("span",{className:"c-blue",children:null==ye||null===($=ye.project_info)||void 0===$?void 0:$.name}):(0,F.jsx)("a",{target:"_blank",href:"".concat(null==he||null===(U=he.setting)||void 0===U?void 0:U.old_url).concat(null==ye||null===(q=ye.project_info)||void 0===q?void 0:q.id),children:null==ye||null===(Q=ye.project_info)||void 0===Q?void 0:Q.name})})]})})]})},"1"),!Nn&&(0,F.jsx)(b.Z.TabPane,{tab:"组员情况",children:(0,F.jsxs)("div",{className:"p30 bg-white",children:[(0,F.jsx)("div",{className:"font16 blod",children:"全部组员"}),(0,F.jsxs)(_.Z,{className:"mt15",wrap:!1,gutter:10,children:[(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"c-grey-666",children:"当前组员"})}),(0,F.jsxs)(j.Z,{children:[null==ye?void 0:ye.author_name," ",(null==ye?void 0:ye.is_leader_work)&&(0,F.jsx)("span",{className:R.leader,children:"组长"})]})]}),(null==ye||null===(K=ye.work_members)||void 0===K?void 0:K.length)>0&&(0,F.jsxs)(_.Z,{className:"mt10",wrap:!1,gutter:10,children:[(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"c-grey-666",children:"其他组员"})}),(0,F.jsx)(j.Z,{children:null==ye||null===(ee=ye.work_members)||void 0===ee?void 0:ee.map((function(e,n){return(0,L.dE)()?(0,F.jsxs)("span",{children:[e.user_name,(null==e?void 0:e.is_leader)&&(0,F.jsx)("span",{className:R.leader,children:"组长"})]}):(0,F.jsxs)(h.Link,{className:"mr10",to:"/classrooms/".concat(_e.coursesId,"/group_homework/").concat(_e.commonHomeworkId,"/review/").concat(e.work_id),target:"_blank",children:[e.user_name,(null==e?void 0:e.is_leader)&&(0,F.jsx)("span",{className:R.leader,children:"组长"})]},n)}))})]}),!(0,L.dE)()&&(0,F.jsx)("div",{className:"c-grey-999 font12 mt10",children:"温馨提示:点击其他组员的姓名,可以快速评阅TA的作品"})]})},"2"),(null==ye?void 0:ye.anonymous_comment)&&!Nn&&(0,F.jsx)(b.Z.TabPane,{tab:"问题反馈",children:(0,F.jsx)("div",{className:"bg-white",style:{display:"flex",flexDirection:"column",padding:"10px 30px 30px 30px"},children:(null==Te||null===(le=Te.data)||void 0===le?void 0:le.count)>0?(0,F.jsx)(F.Fragment,{children:null==Te||null===(re=Te.data)||void 0===re||null===(re=re.list)||void 0===re?void 0:re.map((function(e,n){return(0,F.jsx)(ne,{type:"feedback",Data:i()(i()({},e),{},{time:null==e?void 0:e.created_at,user_info:{user_image_url:e.avatar_url,user_id:e.user_id,user_name:e.real_name}}),getInitData:Dn},n)}))}):(0,F.jsx)(X.Z,{})})},"3")]}),(0,F.jsxs)("div",{className:"mt20 pt20 pb20 pl30 pr30 bg-white",children:[!Nn&&"1"==Re&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(_.Z,{className:"mt20",gutter:20,justify:"end",children:[(0,L.GJ)()&&(null==we?void 0:we.ultimate)&&(0,F.jsx)(j.Z,{children:(0,F.jsx)(y.ZP,{type:"primary",onClick:function(){Wn({key:"调分",selectArrs:ye,id:_e.userId,params:_e})},children:"调分"})}),(null==ke?void 0:ke.is_new_rule)&&(null==ye?void 0:ye.is_author)&&(0,L.dE)()&&(null==ye||null===(se=ye.homework_status)||void 0===se?void 0:se.includes("匿评中"))&&"review"!==ge.get("review")&&(0,F.jsx)(j.Z,{children:(0,F.jsx)(y.ZP,{type:"primary",onClick:function(){Wn({key:"问题反馈"})},children:" 问题反馈 "})})]}),!we.is_author&&(!(null!=we&&we.ultimate)||(null==ye||null===(oe=ye.homework_status)||void 0===oe?void 0:oe.includes("匿评中")))&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(f.Z,{form:tn,layout:"vertical",size:"large",scrollToFirstError:!0,initialValues:{same_score:!0},onFinish:function(e){Fn(e)},children:[(0,F.jsx)(f.Z.Item,{name:"score",label:"评分",rules:[{required:!(0,L.GJ)(),message:"请填写分数"}],children:(0,F.jsx)(k.Z,{step:.1,min:0,style:{width:135},placeholder:"请填写分数",suffix:"分"})}),(0,F.jsx)("div",{onClick:function(){return Ve(!0)},children:(0,F.jsx)(f.Z.Item,{name:"comment",label:"评语",children:(0,F.jsx)(V.x,{placeholder:"请在此输入对本作品的评语,最大限制2000个字符",isEdit:Ge})})}),(0,F.jsx)(f.Z.Item,{name:"same_score",valuePropName:"checked",children:(0,F.jsx)(Z.Z,{children:"整组同评(选中,则本次评阅对象指小组全部成员,否则仅评阅此成员1人 )"})}),(0,F.jsx)(f.Z.Item,{name:"attachment_ids",children:(0,F.jsx)(W.Z,{})}),(0,L.GJ)()&&(0,F.jsx)("div",{onClick:function(){return qe(!0)},children:(0,F.jsx)(f.Z.Item,{label:"仅课堂老师可见",name:"hidden_comment",children:(0,F.jsx)(V.x,{placeholder:"请输入评语",isEdit:Ue})})})]}),(0,F.jsxs)("div",{className:"".concat(R.buttonFixed),children:[" ",(0,F.jsx)("div",{className:"edu-container",children:(0,F.jsxs)(_.Z,{wrap:!1,justify:"space-between",align:"middle",children:[(0,F.jsxs)(j.Z,{children:[" ",(0,F.jsx)(y.ZP,{onClick:function(){return Mn("list")},children:" 返回列表 "})," "]}),(0,F.jsxs)(j.Z,{children:[(0,F.jsx)(y.ZP,{onClick:function(){return Mn("last")},disabled:null==mn?void 0:mn.last,children:" 上一个 "}),(0,F.jsx)(y.ZP,{className:"ml20",disabled:null==an?void 0:an.last,onClick:function(){return Mn("read")},children:" 下一个 "}),(0,F.jsx)(y.ZP,{className:"ml20",loading:kn,type:"primary",onClick:function(){tn.submit()},children:" 提交评阅 "})]})]})})]})]})]}),((0,L.GJ)()||(null==ye?void 0:ye.show_evaluation))&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(J.tp,{dataSource:Hn,value:null==$n?void 0:$n.status,onChange:function(e){Pn(i()(i()({},$n),{},{status:e}))}}),(0,F.jsxs)("div",{className:"mt20 p20",style:{background:"#F6F7F9",display:"flex",flexDirection:"column",gap:"20px"},children:[!(null!==(ae=0==(null==$n?void 0:$n.status)?null==we?void 0:we.comment_scores:null==we?void 0:we.hidden_comment_scores)&&void 0!==ae&&ae.length)&&(0,F.jsx)(X.Z,{styles:{margin:"50px auto"}}),null===(ie=0==(null==$n?void 0:$n.status)?null==we?void 0:we.comment_scores:null==we?void 0:we.hidden_comment_scores)||void 0===ie?void 0:ie.map((function(e,n){return(0,F.jsx)(ne,{index:n,type:1==$n.status&&"teacher",Data:i()(i()({},e),{},{content:(null==e?void 0:e.hidden_comment)||(null==e?void 0:e.content),user_info:{user_image_url:e.user_image_url,user_login:e.user_login,user_name:e.user_name}}),getInitData:Dn,dispatch:fe},n)}))]})]})]}),!Nn&&(null==ye?void 0:ye.anonymous_comment)&&(0,L.oF)()&&(0,F.jsx)("section",{children:(0,F.jsxs)("aside",{className:[R.replyList,"bg-white"].join(" "),children:[(0,F.jsx)("span",{style:{fontSize:"16px"},children:"匿评学员"}),(0,F.jsx)("br",{}),(null==ye||null===(ce=ye.no_commented_user_names)||void 0===ce?void 0:ce.length)>0&&(0,F.jsxs)("p",{style:{marginTop:"1em"},children:["未完成匿评:",null==ye||null===(de=ye.no_commented_user_names)||void 0===de?void 0:de.toString()]}),(0,F.jsxs)("span",{style:{marginTop:(null==ye||null===(ue=ye.no_commented_user_names)||void 0===ue?void 0:ue.length)>0?"":"1em",display:"flex"},children:["已完成匿评:",null==ye||null===(me=ye.commented_user_names)||void 0===me?void 0:me.toString()]})]})}),Nn&&(0,F.jsxs)("div",{className:"".concat(R.buttonFixed),children:[" ",(0,F.jsx)("div",{className:"edu-container",children:(0,F.jsx)(_.Z,{wrap:!1,justify:"space-between",align:"middle",children:(0,F.jsxs)(j.Z,{children:[(0,F.jsx)(y.ZP,{onClick:function(){h.history.push("/classrooms/".concat(null==_e?void 0:_e.coursesId,"/common_homework/").concat(null==_e?void 0:_e.categoryId,"/detail"))},children:" 返回列表 "})," "]})})})]}),(0,F.jsx)(M,{}),(0,F.jsx)(B,{studentWorkDetail:ye}),(0,F.jsx)(C.Z,{}),(0,F.jsx)(x.Z,{title:"确认打回重做",open:fn,destroyOnClose:!0,forceRender:!0,onCancel:function(){vn(!1)},onOk:o()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(jn){e.next=3;break}return v.ZP.info("评语不能为空"),e.abrupt("return");case 3:return e.next=5,(0,D.ZP)("/api/student_works/".concat(_e.userId,"/redo_modal.json"),{method:"post",body:{comment:jn,id:_e.userId}});case 5:0===(null==(n=e.sent)?void 0:n.status)&&(v.ZP.info("打回重做成功"),vn(!1),Dn());case 7:case"end":return e.stop()}}),e)}))),width:700,children:(0,F.jsxs)("div",{style:{padding:"32px"},children:[(0,F.jsxs)("span",{children:["确认将",null==ye?void 0:ye.author_name,"的作业打回重做吗"]}),(0,F.jsxs)("div",{style:{marginTop:"20px"},children:[(0,F.jsxs)("label",{children:[(0,F.jsx)("span",{style:{marginRight:"5px",color:"red"},children:"*"}),"评语:"]}),(0,F.jsx)(O.Z,{className:R.MdEditor,onChange:function(e){return bn(e)},defaultValue:"",height:250})]})]})}),en,(0,F.jsx)(x.Z,{title:null==Ie?void 0:Ie.key,open:"提交作品记录"==(null==Ie?void 0:Ie.key),centered:!0,destroyOnClose:!0,width:969,footer:null,onCancel:function(){return Wn()},children:(0,F.jsx)(I.Z,{locale:{emptyText:(0,F.jsx)(X.Z,{})},columns:Tn,dataSource:null==Ee?void 0:Ee.student_works,pagination:!1})}),(0,F.jsx)(x.Z,{title:null==Ie?void 0:Ie.key,open:"问题反馈"==(null==Ie?void 0:Ie.key),centered:!0,destroyOnClose:!0,width:640,onCancel:function(){return Wn()},confirmLoading:Me,onOk:function(){rn.submit()},children:(0,F.jsxs)(f.Z,{form:rn,onFinish:function(){var e=o()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,We({student_work_feedback:i()({},n)});case 2:0==(null==(t=e.sent)?void 0:t.status)&&(v.ZP.success("提交成功"),Wn(),Dn());case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,F.jsx)(f.Z.Item,{name:"content",rules:[{required:!0,message:"请输入内容"}],children:(0,F.jsx)(S.Z.TextArea,{rows:4,placeholder:"例如:作品提交的附件不清晰",maxLength:200})}),(0,F.jsx)(f.Z.Item,{noStyle:!0,children:" 如果作品无法匿评,请描述问题并点击“确定”按钮进行反馈。反馈后系统将不会扣除缺评分数。"})]})})]})}))},84481:function(e,n){n.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},66104:function(e,n,t){t.d(n,{Z:function(){return O}});var l=t(92310),r=t.n(l),s=t(55401),o=t(87147),a=t(59301),i=t(92343),c=t(36355),d=t(43501),u=t(91857);const m=e=>{let{children:n}=e;const{getPrefixCls:t}=a.useContext(c.E_),l=t("breadcrumb");return a.createElement("li",{className:`${l}-separator`,"aria-hidden":"true"},""===n?n:n||"/")};m.__ANT_BREADCRUMB_SEPARATOR=!0;var p=m,h=function(e,n){var t={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&n.indexOf(l)<0&&(t[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(l=Object.getOwnPropertySymbols(e);r{if(n)return n(t,l,r,s);const a=function(e,n){if(void 0===e.title||null===e.title)return null;const t=Object.keys(n).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${t})`,"g"),((e,t)=>n[t]||e))}(t,l);return x(e,t,a,o)}}var v=function(e,n){var t={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&n.indexOf(l)<0&&(t[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(l=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,separator:t="/",children:l,menu:r,overlay:s,dropdownProps:o,href:i}=e;const c=(e=>{if(r||s){const t=Object.assign({},o);if(r){const e=r||{},{items:n}=e,l=v(e,["items"]);t.menu=Object.assign(Object.assign({},l),{items:null==n?void 0:n.map(((e,n)=>{var{key:t,title:l,label:r,path:s}=e,o=v(e,["key","title","label","path"]);let c=null!=r?r:l;return s&&(c=a.createElement("a",{href:`${i}${s}`},c)),Object.assign(Object.assign({},o),{key:null!=t?t:n,label:c})}))})}else s&&(t.overlay=s);return a.createElement(u.Z,Object.assign({placement:"bottom"},t),a.createElement("span",{className:`${n}-overlay-link`},e,a.createElement(d.Z,null)))}return e})(l);return null!=c?a.createElement(a.Fragment,null,a.createElement("li",null,c),t&&a.createElement(p,null,t)):null},_=e=>{const{prefixCls:n,children:t,href:l}=e,r=v(e,["prefixCls","children","href"]),{getPrefixCls:s}=a.useContext(c.E_),o=s("breadcrumb",n);return a.createElement(g,Object.assign({},r,{prefixCls:o}),x(o,r,t,l))};_.__ANT_BREADCRUMB_ITEM=!0;var j=_,b=t(17313),y=t(83116),w=t(37613);const k=e=>{const{componentCls:n,iconCls:t}=e;return{[n]:Object.assign(Object.assign({},(0,b.Wf)(e)),{color:e.itemColor,fontSize:e.fontSize,[t]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,b.Qy)(e)),"li:last-child":{color:e.lastItemColor},[`${n}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${n}-link`]:{[`\n > ${t} + span,\n > ${t} + a\n `]:{marginInlineStart:e.marginXXS}},[`${n}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${t}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}};var Z=(0,y.Z)("Breadcrumb",(e=>{const n=(0,w.TS)(e,{});return[k(n)]}),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}))),I=function(e,n){var t={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&n.indexOf(l)<0&&(t[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(l=Object.getOwnPropertySymbols(e);r{var{breadcrumbName:n}=e,t=I(e,["breadcrumbName"]);return Object.assign(Object.assign({},t),{title:n})}))}),r}var N=function(e,n){var t={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&n.indexOf(l)<0&&(t[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(l=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,separator:t="/",style:l,className:d,rootClassName:u,routes:m,items:h,children:x,itemRender:v,params:_={}}=e,j=N(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:b,direction:y,breadcrumb:w}=a.useContext(c.E_);let k;const I=b("breadcrumb",n),[C,O]=Z(I),E=function(e,n){return(0,a.useMemo)((()=>e||(n?n.map(S):null)),[e,n])}(h,m);const $=f(I,v);if(E&&E.length>0){const e=[],n=h||m;k=E.map(((l,r)=>{const{path:s,key:i,type:c,menu:d,overlay:u,onClick:m,className:h,separator:x,dropdownProps:f}=l,v=((e,n)=>{if(void 0===n)return n;let t=(n||"").replace(/^\//,"");return Object.keys(e).forEach((n=>{t=t.replace(`:${n}`,e[n])})),t})(_,s);void 0!==v&&e.push(v);const j=null!=i?i:r;if("separator"===c)return a.createElement(p,{key:j},x);const b={},y=r===E.length-1;d?b.menu=d:u&&(b.overlay=u);let{href:w}=l;return e.length&&void 0!==v&&(w=`#/${e.join("/")}`),a.createElement(g,Object.assign({key:j},b,(0,o.Z)(l,{data:!0,aria:!0}),{className:h,dropdownProps:f,href:w,separator:y?"":t,onClick:m,prefixCls:I}),$(l,_,n,e,w))}))}else if(x){const e=(0,s.Z)(x).length;k=(0,s.Z)(x).map(((n,l)=>{if(!n)return n;const r=l===e-1;return(0,i.Tm)(n,{separator:r?"":t,key:l})}))}const P=r()(I,null==w?void 0:w.className,{[`${I}-rtl`]:"rtl"===y},d,u,O),H=Object.assign(Object.assign({},null==w?void 0:w.style),l);return C(a.createElement("nav",Object.assign({className:P,style:H},j),a.createElement("ol",null,k)))};C.Item=j,C.Separator=p;var O=C},37906:function(e,n,t){t.d(n,{Z:function(){return O}});var l=t(59301),r=t(92310),s=t.n(r),o=t(69507),a=t(36355),i=t(19716),c=t(8628);var d={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};var u=l.createContext({}),m=t(55401),p=function(e,n){var t={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&n.indexOf(l)<0&&(t[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(l=Object.getOwnPropertySymbols(e);r{return n||(e=t,(0,m.Z)(e).map((e=>Object.assign({},null==e?void 0:e.props))));var e}),[n,t]);return l.useMemo((()=>r.map((n=>{var{span:t}=n,l=p(n,["span"]);return Object.assign(Object.assign({},l),{span:"number"==typeof t?t:(0,o.m9)(e,t)})}))),[r,e])}function x(e,n,t){let l=e;return(void 0===t||t>n)&&(l=Object.assign(Object.assign({},e),{span:n})),l}var f=(e,n)=>(0,l.useMemo)((()=>function(e,n){const t=[];let l=[],r=n;return e.filter((e=>e)).forEach(((s,o)=>{const a=null==s?void 0:s.span,i=a||1;if(o===e.length-1)return l.push(x(s,r,a)),void t.push(l);i{let{children:n}=e;return n};function g(e){return null!=e}var _=e=>{const{itemPrefixCls:n,component:t,span:r,className:o,style:a,labelStyle:i,contentStyle:c,bordered:d,label:u,content:m,colon:p}=e,h=t;return d?l.createElement(h,{className:s()({[`${n}-item-label`]:g(u),[`${n}-item-content`]:g(m)},o),style:a,colSpan:r},g(u)&&l.createElement("span",{style:i},u),g(m)&&l.createElement("span",{style:c},m)):l.createElement(h,{className:s()(`${n}-item`,o),style:a,colSpan:r},l.createElement("div",{className:`${n}-item-container`},(u||0===u)&&l.createElement("span",{className:s()(`${n}-item-label`,{[`${n}-item-no-colon`]:!p}),style:i},u),(m||0===m)&&l.createElement("span",{className:s()(`${n}-item-content`),style:c},m)))};function j(e,n,t){let{colon:r,prefixCls:s,bordered:o}=n,{component:a,type:i,showLabel:c,showContent:d,labelStyle:u,contentStyle:m}=t;return e.map(((e,n)=>{let{label:t,children:p,prefixCls:h=s,className:x,style:f,labelStyle:v,contentStyle:g,span:j=1,key:b}=e;return"string"==typeof a?l.createElement(_,{key:`${i}-${b||n}`,className:x,style:f,labelStyle:Object.assign(Object.assign({},u),v),contentStyle:Object.assign(Object.assign({},m),g),span:j,colon:r,component:a,itemPrefixCls:h,bordered:o,label:c?t:null,content:d?p:null}):[l.createElement(_,{key:`label-${b||n}`,className:x,style:Object.assign(Object.assign(Object.assign({},u),f),v),span:1,colon:r,component:a[0],itemPrefixCls:h,bordered:o,label:t}),l.createElement(_,{key:`content-${b||n}`,className:x,style:Object.assign(Object.assign(Object.assign({},m),f),g),span:2*j-1,component:a[1],itemPrefixCls:h,bordered:o,content:p})]}))}var b=e=>{const n=l.useContext(u),{prefixCls:t,vertical:r,row:s,index:o,bordered:a}=e;return r?l.createElement(l.Fragment,null,l.createElement("tr",{key:`label-${o}`,className:`${t}-row`},j(s,e,Object.assign({component:"th",type:"label",showLabel:!0},n))),l.createElement("tr",{key:`content-${o}`,className:`${t}-row`},j(s,e,Object.assign({component:"td",type:"content",showContent:!0},n)))):l.createElement("tr",{key:o,className:`${t}-row`},j(s,e,Object.assign({component:a?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},n)))},y=t(17313),w=t(83116),k=t(37613);const Z=e=>{const{componentCls:n,labelBg:t}=e;return{[`&${n}-bordered`]:{[`> ${n}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${n}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${n}-item-label, > ${n}-item-content`]:{padding:`${e.padding}px ${e.paddingLG}px`,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${n}-item-label`]:{color:e.colorTextSecondary,backgroundColor:t,"&::after":{display:"none"}}}},[`&${n}-middle`]:{[`${n}-row`]:{[`> ${n}-item-label, > ${n}-item-content`]:{padding:`${e.paddingSM}px ${e.paddingLG}px`}}},[`&${n}-small`]:{[`${n}-row`]:{[`> ${n}-item-label, > ${n}-item-content`]:{padding:`${e.paddingXS}px ${e.padding}px`}}}}}},I=e=>{const{componentCls:n,extraColor:t,itemPaddingBottom:l,colonMarginRight:r,colonMarginLeft:s,titleMarginBottom:o}=e;return{[n]:Object.assign(Object.assign(Object.assign({},(0,y.Wf)(e)),Z(e)),{"&-rtl":{direction:"rtl"},[`${n}-header`]:{display:"flex",alignItems:"center",marginBottom:o},[`${n}-title`]:Object.assign(Object.assign({},y.vS),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${n}-extra`]:{marginInlineStart:"auto",color:t,fontSize:e.fontSize},[`${n}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${n}-row`]:{"> th, > td":{paddingBottom:l},"&:last-child":{borderBottom:"none"}},[`${n}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${s}px ${r}px`},[`&${n}-item-no-colon::after`]:{content:'""'}},[`${n}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${n}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${n}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${n}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${n}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${n}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${n}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}};var S=(0,w.Z)("Descriptions",(e=>{const n=(0,k.TS)(e,{});return[I(n)]}),(e=>({labelBg:e.colorFillAlter,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,extraColor:e.colorText}))),N=function(e,n){var t={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&n.indexOf(l)<0&&(t[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(l=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,title:t,extra:r,column:m,colon:p=!0,bordered:x,layout:v,children:g,className:_,rootClassName:j,style:y,size:w,labelStyle:k,contentStyle:Z,items:I}=e,C=N(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:O,direction:E,descriptions:$}=l.useContext(a.E_),P=O("descriptions",n),H=(0,c.Z)(),T=l.useMemo((()=>{var e;return"number"==typeof m?m:null!==(e=(0,o.m9)(H,Object.assign(Object.assign({},d),m)))&&void 0!==e?e:3}),[H,m]),D=h(H,I,g),F=(0,i.Z)(w),M=f(T,D),[W,B]=S(P),L=l.useMemo((()=>({labelStyle:k,contentStyle:Z})),[k,Z]);return W(l.createElement(u.Provider,{value:L},l.createElement("div",Object.assign({className:s()(P,null==$?void 0:$.className,{[`${P}-${F}`]:F&&"default"!==F,[`${P}-bordered`]:!!x,[`${P}-rtl`]:"rtl"===E},_,j,B),style:Object.assign(Object.assign({},null==$?void 0:$.style),y)},C),(t||r)&&l.createElement("div",{className:`${P}-header`},t&&l.createElement("div",{className:`${P}-title`},t),r&&l.createElement("div",{className:`${P}-extra`},r)),l.createElement("div",{className:`${P}-view`},l.createElement("table",null,l.createElement("tbody",null,M.map(((e,n)=>l.createElement(b,{key:n,index:n,colon:p,prefixCls:P,vertical:"vertical"===v,bordered:x,row:e})))))))))};C.Item=v;var O=C}}]); \ No newline at end of file +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[14662],{22596:function(e,n,t){t.d(n,{Z:function(){return i}});var l=t(1565),r=t(59301),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},o=t(68475),a=function(e,n){return r.createElement(o.Z,(0,l.Z)({},e,{ref:n,icon:s}))};var i=r.forwardRef(a)},93737:function(e,n,t){t.d(n,{Z:function(){return i}});var l=t(1565),r=t(59301),s={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},o=t(68475),a=function(e,n){return r.createElement(o.Z,(0,l.Z)({},e,{ref:n,icon:s}))};var i=r.forwardRef(a)},95972:function(e,n,t){t.d(n,{h:function(){return m},x:function(){return p}});var l=t(82242),r=t.n(l),s=t(39647),o=t.n(s),a=t(57073),i=t(84481),c=t(53847),d=t(37712),u=["value","onChange","scrollId"],m=function(e){var n=e.value,t=e.onChange,l=e.scrollId,s=o()(e,u);return(0,d.jsx)("div",{id:l||"",children:(0,d.jsx)(a.Z,r()(r()({},s),{},{defaultValue:n,onChange:function(e,n){console.log("a:",e,n),null!=n&&n.length?t(e,n):t(e)}}))})},p=function(e){var n=e.value,t=e.onChange,l=e.placeholder,r=e.height,s=void 0===r?140:r;return e.isEdit?(0,d.jsx)(a.Z,{watch:!0,isFocus:!0,height:s,placeholder:l,defaultValue:n,onChange:t}):(0,d.jsx)("div",{style:{cursor:"pointer"},children:n?(0,d.jsx)(c.Z,{className:i.Z.inputBorder,value:n}):(0,d.jsx)("div",{className:"".concat(i.Z.inputBorder," ").concat(i.Z.placeholder," inputBorderError"),children:l})})}},40168:function(e,n,t){t.d(n,{Z:function(){return c}});var l=t(79800),r=t.n(l),s=t(59301),o=t(12978),a=t(13879),i=t(37712),c=function(){var e=(0,s.useState)(""),n=r()(e,2),t=n[0],l=n[1],c=(0,s.useState)(0),d=r()(c,2),u=(d[0],d[1]),m=(0,s.useState)(),p=r()(m,2),h=(p[0],p[1]),x=(0,s.useState)(),f=r()(x,2),v=(f[0],f[1]),g=(0,s.useState)(!1),_=r()(g,2),j=(_[0],_[1],(0,s.useRef)(""));function b(e){27==e.keyCode&&j.current&&y()}function y(){document.body.style.overflow="auto",h(void 0),v(void 0),u(0),l("")}(0,s.useEffect)((function(){return o.Z.subscribe("preview-image",(function(e){l(e),console.log(k.current),document.body.style.overflow="hidden"}))}),[]),(0,s.useEffect)((function(){return document.addEventListener("keydown",b),function(){document.removeEventListener("keydown",b)}}),[]),(0,s.useEffect)((function(){j.current=t}),[t]);(0,s.useRef)();var w=(0,s.useRef)(),k=(0,s.useRef)();return(0,i.jsx)(s.Fragment,{children:t?(0,i.jsx)("div",{children:(0,i.jsx)("div",{className:"preview-wrp-group",ref:w,children:(0,i.jsx)(a.Z,{className:"image-preview",src:t,style:{display:"none"},preview:{visible:!0,src:t,movable:!1,onVisibleChange:function(e){l("")}},alt:"预览大图"})})}):null})}},6088:function(e,n,t){t.r(n),t.d(n,{default:function(){return le}});var l=t(7557),r=t.n(l),s=t(41498),o=t.n(s),a=t(82242),i=t.n(a),c=t(79800),d=t.n(c),u=t(39647),m=t.n(u),p=t(59301),h=t(89084),x=t(43418),f=t(78241),v=t(8591),g=t(66104),_=t(95237),j=t(43604),b=t(99313),y=t(3113),w=t(6848),k=t(54449),Z=t(24905),I=t(14491),S=t(98135),N=t(22596),C=t(40168),O=t(57073),E=t(12978),$=t(99232),P=t.n($),H=t(89392),T=t(88270),D=t(37821),F=t(37712),M=(0,h.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks}}))((function(e){var n=e.shixunHomeworks,t=e.dispatch,l=(0,h.useParams)(),s=(0,p.useState)(!0),a=d()(s,2),c=(a[0],a[1],f.Z.useForm()),u=d()(c,1)[0];return(0,F.jsx)(F.Fragment,{children:(0,F.jsxs)(x.Z,{centered:!0,title:"调分",open:"调分"===n.actionTabs.key,okText:"确定",cancelText:"取消",onOk:o()(r()().mark((function e(){var s;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u.validateFields();case 2:return s=u.getFieldsValue(),e.next=5,(0,D.ZP)("/api/student_works/".concat(n.actionTabs.id,"/adjust_score.json"),{method:"post",body:i()({},s)});case 5:0===e.sent.status&&(v.ZP.success("评阅成功"),u.resetFields(),t({type:"shixunHomeworks/setActionTabs",payload:{}}),t({type:"shixunHomeworks/getStudentWorkCommon",payload:i()({},l)}));case 7:case"end":return e.stop()}}),e)}))),onCancel:function(){t({type:"shixunHomeworks/setActionTabs",payload:{}})},children:[(0,F.jsx)("p",{className:"tc",children:"该学生的最终成绩将不会按照评分规则进行计算"}),(0,F.jsxs)(f.Z,{form:u,layout:"horizontal",children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"baseline"},children:[(0,F.jsx)(f.Z.Item,{label:"成绩",name:"score",rules:[{required:!0,message:"请输入!"}],children:(0,F.jsx)(k.Z,{min:0,placeholder:"请填写分数"})}),(0,F.jsx)("span",{className:"ml10",children:"分"})]}),(0,F.jsx)("div",{children:(0,F.jsx)(f.Z.Item,{name:"comment",children:(0,F.jsx)(S.Z.TextArea,{placeholder:"请填写您对作品调分的原因",rows:8})})})]})]})})})),W=t(97313),B=(0,h.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var n=e.classroomList,t=(e.loading,e.dispatch),l=e.studentWorkDetail,s=((0,h.useParams)(),f.Z.useForm()),a=d()(s,1)[0],c=function(){var e=o()(r()().mark((function e(){var l,s,o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.validateFields();case 2:return s=i()({},a.getFieldValue()),o=n.actionTabs.selectArrs,s.attachment_ids=null===(l=s.attachment_ids)||void 0===l?void 0:l.map((function(e){return e.response.id})),e.next=7,(0,T.mz)(i()(i()({},s),{},{homeworkId:o.work_id}));case 7:0===e.sent.status&&(t({type:"shixunHomeworks/getStudentWorkSupplyDetail",payload:i()({},n.actionTabs.params)}),t({type:"classroomList/setActionTabs",payload:{}}));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,F.jsx)(x.Z,{centered:!0,title:"补交附件",open:"补交附件"===n.actionTabs.key,bodyStyle:{minHeight:200},onOk:o()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==l||!l.can_submit){e.next=6;break}if(null!=l&&l.submit_size){e.next=4;break}return v.ZP.warning("您的作品提交机会已用完。如需继续修改,请联系指导老师或平台运营。"),e.abrupt("return");case 4:return x.Z.confirm({title:"提示",icon:null,centered:!0,width:472,content:(0,F.jsxs)(F.Fragment,{children:["你还有 ",(0,F.jsx)("span",{className:"ml5 mr5",style:{color:"#DF711C"},children:null==l?void 0:l.submit_size})," 次提交机会。确认提交后,上一次的提交记录会被覆盖。请注意,到达规定的提交次数后将不可再次提交,确定是否提交?"]}),onOk:function(){c()}}),e.abrupt("return");case 6:c();case 7:case"end":return e.stop()}}),e)}))),onCancel:function(){t({type:"classroomList/setActionTabs",payload:{}})},children:(0,F.jsxs)(f.Z,{form:a,initialValues:{},children:[(0,F.jsx)(f.Z.Item,{name:"attachment_ids",rules:[{required:!0,message:"请上传附件"}],children:(0,F.jsx)(W.Z,{})}),(0,F.jsx)(f.Z.Item,{name:"description",children:(0,F.jsx)(S.Z.TextArea,{placeholder:"请在此输入补交附件的原因,最大限制100个字符",rows:7})})]})})})),L=t(31260),R={flex_box_center:"flex_box_center___ek18E",flex_space_between:"flex_space_between___e7BP6",flex_box_vertical_center:"flex_box_vertical_center___Oju9C",flex_box_center_end:"flex_box_center_end___qQv1O",flex_box_column:"flex_box_column___DHwHY",TabsStyle:"TabsStyle___glGge",bg:"bg___uHtJ5",title:"title___WcS8b",replyList:"replyList___HLYJ8",leader:"leader___qJvA3",buttonFixed:"buttonFixed___WAuFs",exitComment:"exitComment___cW4re",nextComment:"nextComment___AMMy5",modal:"modal___e3Tjt",MdEditor:"MdEditor___JLCMs"},z=t(53847),A=t(271),Y=t(13095),G=t(60969),V=t(95972),J=t(8768),X=t(28389),U=t(37906),q=t(99741),Q="headpic___Pcfo7",K=t(84449),ee=["Data","layer","type","index"],ne=(0,h.connect)((function(e){var n=e.shixunHomeworks,t=e.user;return{shixunHomeworks:n,globalSetting:e.globalSetting,user:t}}))((function e(n){var t,l,s,a,c,u,g,b,w,I,S,N,C,E,$=n.Data,H=n.layer,M=void 0===H?1:H,W=n.type,B=n.index,R=void 0===B?0:B,A=m()(n,ee),Y=(0,h.useParams)(),V=(0,p.useState)({type:0,show:!1}),J=d()(V,2),X=J[0],ne=J[1],te=(0,p.useState)(null),le=d()(te,2),re=le[0],se=le[1],oe=(0,G.U)(T.qP,{userId:null==Y?void 0:Y.userId}),ae=d()(oe,3),ie=ae[1],ce=ae[2],de=(0,G.U)(T.R$,{userId:null==Y?void 0:Y.userId}),ue=d()(de,3),me=ue[1],pe=ue[2],he=(0,G.U)(T.QC,{userId:null==Y?void 0:Y.userId}),xe=d()(he,3),fe=(xe[1],xe[2]),ve=(0,G.U)(T.Mf,{userId:null==Y?void 0:Y.userId}),ge=d()(ve,3),_e=(ge[1],ge[2]),je=f.Z.useForm(),be=d()(je,1)[0],ye=(0,p.useState)(!1),we=d()(ye,2),ke=we[0],Ze=we[1];return(0,F.jsxs)("div",{children:[(0,F.jsxs)(_.Z,{wrap:!1,gutter:15,children:[1!=M&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("div",{style:{width:"".concat(40*(M-1),"px")}})}),"appeal_info"==W?(0,F.jsx)(j.Z,{children:(0,F.jsx)("img",{className:"mt10 ".concat(Q),width:40,src:"--"===(null==$||null===(t=$.appeal_info)||void 0===t?void 0:t.user_image_url)?K.xp:"".concat(q.Z.IMG_SERVER,"/images/").concat(null==$||null===(l=$.appeal_info)||void 0===l?void 0:l.user_image_url)})}):(0,F.jsx)(j.Z,{children:(0,F.jsx)("img",{className:"mt10 ".concat(Q),width:40,src:"--"===(null==$||null===(s=$.user_info)||void 0===s?void 0:s.user_image_url)?K.xp:"".concat(q.Z.IMG_SERVER,"/images/").concat(null==$||null===(a=$.user_info)||void 0===a?void 0:a.user_image_url)})}),"appeal_info"==W?(0,F.jsxs)(j.Z,{flex:1,children:[(0,F.jsx)(z.Z,{className:"font14",value:"".concat(null==$||null===(c=$.appeal_info)||void 0===c?void 0:c.user_name,":").concat((null==$||null===(u=$.appeal_info)||void 0===u?void 0:u.content)||"暂未写评语")}),(0,F.jsxs)(_.Z,{className:"c-grey-666 mt5",wrap:!1,align:"middle",gutter:20,children:[(0,F.jsx)(j.Z,{children:P()(null==$||null===(g=$.appeal_info)||void 0===g?void 0:g.time).format("YYYY-MM-DD HH:mm")}),1==(null==$?void 0:$.appeal_status)&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:" font12",style:{color:"#3061D0",border:"1px solid #3061D0",borderRadius:"2px",padding:"2px"},children:"申诉中"})}),2==(null==$?void 0:$.appeal_status)&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"tag-style bg-grey-ede c-light-black font12",children:"申诉已撤销"})}),3==(null==$?void 0:$.appeal_status)&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:" font12",style:{color:"#3061D0",border:"1px solid #3061D0",borderRadius:"2px",padding:"2px"},children:"申诉成功"})}),4==(null==$?void 0:$.appeal_status)&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"tag-style bg-grey-ede c-light-black font12",children:"申诉被拒绝"})}),5==(null==$?void 0:$.appeal_status)&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"tag-style bg-grey-ede c-light-black font12",children:"申诉失败"})})]})]}):(0,F.jsxs)(j.Z,{flex:1,children:[(0,F.jsx)(z.Z,{className:"font14",value:"".concat(null==$||null===(b=$.user_info)||void 0===b?void 0:b.user_name).concat(null!=$&&$.who_score?1==(null==$?void 0:$.who_score)?"(组长评分)":"(匿评评分)":null!=$&&$.comment_role?"(".concat(null==$?void 0:$.comment_role,")"):"",":").concat((null==$?void 0:$.content)||"暂未写评语")}),(0,F.jsxs)(_.Z,{className:"c-grey-666 mt5",wrap:!1,align:"middle",gutter:20,children:[(0,F.jsx)(j.Z,{children:P()((null==$?void 0:$.comment_time)||(null==$?void 0:$.time)).format("YYYY-MM-DD HH:mm")}),(null==$?void 0:$.student_work_num)&&(0,F.jsx)(j.Z,{children:(0,F.jsxs)("span",{style:{padding:"3px",background:"rgba(219,243,224,0.88)",color:"#1FBE3C",fontSize:"12px"},children:["第",null==$?void 0:$.student_work_num,"次提交的作品"]})}),(null==$?void 0:$.score)&&(0,F.jsx)(j.Z,{children:(0,F.jsxs)("span",{className:"c-orange",children:[" ",null==$?void 0:$.score,"分 "]})})]}),(null==$||null===(w=$.attachments)||void 0===w?void 0:w.length)>0&&(0,F.jsx)("div",{className:"mt10",style:{display:"flex",flexDirection:"column",gap:10},children:null==$||null===(I=$.attachments)||void 0===I?void 0:I.map((function(e,n){return(0,F.jsxs)("a",{href:"".concat(q.Z.API_SERVER).concat(e.url),children:[(0,F.jsx)("i",{className:"iconfont icon-fujian font14"}),(0,F.jsx)("span",{className:"ml10",children:e.title}),(0,F.jsx)("span",{className:"c-light-black ml20 font12",children:e.filesize})]},n)}))})]}),"feedback"!=W&&(0,F.jsx)(F.Fragment,{children:"appeal_info"==W?(0,F.jsx)(j.Z,{style:{whiteSpace:"nowrap"},children:(0,F.jsxs)(_.Z,{wrap:!1,gutter:10,children:[(null==$?void 0:$.delete)&&(null==$?void 0:$.can_appeal)&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"c-blue current",onClick:function(){var e;x.Z.confirm({centered:!0,title:(0,F.jsxs)("div",{children:["撤销申诉后,无法再对本评阅记录进行申诉",(0,F.jsx)("br",{}),"是否确认撤销申诉"]}),onOk:(e=o()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(null==A?void 0:A.getInitData)&&(null==A||A.getInitData());case 1:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},children:"撤销申诉"})}),1==(null==$?void 0:$.appeal_status)&&(0,L.GJ)()&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"c-blue current",onClick:function(){Ze(!0)},children:"接受申诉"})}),1==(null==$?void 0:$.appeal_status)&&(0,L.GJ)()&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"c-red current",onClick:function(){var e;x.Z.confirm({centered:!0,title:(0,F.jsxs)("div",{children:["此匿评成绩将被认为合理",(0,F.jsx)("br",{}),"是否确认拒绝申诉"]}),onOk:(e=o()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,D.ZP)("/api/student_works/".concat(Y.userId,"/deal_appeal_score.json"),{method:"post",body:{score_id:null==$?void 0:$.score_id,status:4}});case 2:0===(null==(n=e.sent)?void 0:n.status)&&(null==A?void 0:A.getInitData)&&(null==A||A.getInitData());case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},children:"拒绝申诉"})})]})}):(0,F.jsxs)(F.Fragment,{children:[(1==M||"teacher"==W)&&(0,F.jsx)(j.Z,{style:{whiteSpace:"nowrap"},children:(0,F.jsxs)(_.Z,{wrap:!1,gutter:10,children:[(null==$?void 0:$.delete)&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"c-blue current",onClick:function(){!function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$;x.Z.confirm({title:"是否确认删除?",centered:!0,onOk:(e=o()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fe({score_id:null==n?void 0:n.comment_id});case 2:0===e.sent.status&&(v.ZP.success("删除成功"),(null==A?void 0:A.getInitData)&&(null==A||A.getInitData()));case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})}($)},children:"删除"})}),(null==$?void 0:$.can_appeal)&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"c-blue current",onClick:function(){ne({type:1,show:!0})},children:"申诉"})}),(null==$?void 0:$.can_reply)&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"c-blue current",onClick:function(){ne({type:0,show:!0})},children:"回复"})}),(1==M&&!(null!=$&&$.can_reply)||!(null!=$&&$.can_reply)&&"teacher"==W&&0!=R)&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"c-light-black",children:"失效"})})]})}),1!=M&&(null==$?void 0:$.can_delete)&&"teacher"!=W&&(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"c-blue current",onClick:function(){!function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$;x.Z.confirm({title:"是否确认删除?",centered:!0,onOk:(e=o()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_e({object_id:n.id,object_type:"journals_for_message"});case 2:0===e.sent.status&&(v.ZP.success("删除成功"),(null==A?void 0:A.getInitData)&&(null==A||A.getInitData()));case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})}($)},children:"删除"})})]})})]}),1==M&&(null==$?void 0:$.appeal_info)&&""!=(null==$?void 0:$.appeal_info)&&(0,F.jsx)("div",{className:"mt20",style:{display:"flex",flexDirection:"column",gap:"20px"},children:(0,F.jsx)(e,i()({type:"appeal_info",Data:$,layer:M+1},A))}),1==M&&(null==$||null===(S=$.journals)||void 0===S?void 0:S.length)>0&&(0,F.jsx)("div",{className:"mt20",style:{display:"flex",flexDirection:"column",gap:"20px"},children:null==$||null===(N=$.journals)||void 0===N?void 0:N.map((function(n,t){return(0,F.jsx)(e,i()({type:W,Data:n,layer:M+1},A),t)}))}),X.show&&(0,F.jsxs)("div",{className:"mt20 mb20",style:{marginLeft:"56px"},children:[(0,F.jsx)(O.Z,{height:150,isFocus:!0,watch:!0,onChange:function(e){se(e)}}),(0,F.jsxs)(_.Z,{align:"middle",justify:"end",gutter:20,children:[(0,F.jsx)(j.Z,{children:(0,F.jsx)(y.ZP,{onClick:function(){ne({type:0,show:!1})},children:"取消"})}),(0,F.jsx)(j.Z,{children:(0,F.jsx)(y.ZP,{loading:ie||me,type:"primary",onClick:o()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==re){e.next=3;break}return v.ZP.error("请输入内容"),e.abrupt("return");case 3:if("teacher"!=W){e.next=9;break}return e.next=6,ce({hidden_comment:re,score_id:null==$?void 0:$.score_id});case 6:n=e.sent,e.next=12;break;case 9:return e.next=11,(0==(null==X?void 0:X.type)?ce:pe)({comment:re,score_id:null==$?void 0:$.score_id});case 11:n=e.sent;case 12:0===n.status&&(v.ZP.success("操作成功"),ne({type:0,show:!1}),(null==A?void 0:A.getInitData)&&(null==A||A.getInitData()));case 13:case"end":return e.stop()}}),e)}))),children:0==(null==X?void 0:X.type)?"回复":"申诉"})})]})]}),(0,F.jsx)(x.Z,{title:"接受申诉",open:ke,centered:!0,destroyOnClose:!0,onCancel:function(){Ze(!1)},maskClosable:!1,width:544,onOk:function(){be.submit()},children:(0,F.jsxs)(f.Z,{form:be,colon:!1,onFinish:function(){var e=o()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,D.ZP)("/api/student_works/".concat(Y.userId,"/deal_appeal_score.json"),{method:"post",body:i()(i()({},n),{},{userId:Y.userId,score_id:null==$?void 0:$.score_id,status:3})});case 2:0===e.sent.status&&(Ze(!1),(null==A?void 0:A.getInitData)&&(null==A||A.getInitData()));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,F.jsx)("div",{style:{color:"#191919"},children:"确认是否接受申诉?一旦接受,被申诉的评分记录将作废。请您补充匿评评分:"}),(0,F.jsx)(U.Z,{style:{marginTop:"20px"},colon:!1,items:[{key:"1",label:"申诉人",children:(0,F.jsx)("span",{children:null==$||null===(C=$.appeal_info)||void 0===C?void 0:C.user_name})},{key:"2",label:"被申诉人",children:(0,F.jsx)("span",{style:{color:"#191919"},children:null==$||null===(E=$.user_info)||void 0===E?void 0:E.user_name})},{key:"3",label:"被申诉人评分",children:(0,F.jsx)("span",{style:{color:"#191919"},children:null==$?void 0:$.score})}]}),(0,F.jsxs)(_.Z,{className:"mt20",wrap:!1,children:[(0,F.jsx)(j.Z,{children:(0,F.jsx)(f.Z.Item,{label:"匿评分数",name:"score",rules:[{required:!0,message:"请输入分数"}],children:(0,F.jsx)(k.Z,{min:1,max:100,step:1})})}),(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"ml10",style:{lineHeight:"30px"},children:"分"})}),(0,F.jsx)(j.Z,{children:(0,F.jsx)(f.Z.Item,{className:"ml20",valuePropName:"checked",name:"is_appeal_penalty",initialValue:!0,children:(0,F.jsx)(Z.Z,{children:"扣除违规匿评分数"})})})]})]})})]})})),te=["shixunHomeworks","globalSetting","loading","user","dispatch"],le=(0,h.connect)((function(e){var n=e.shixunHomeworks,t=e.loading,l=e.user;return{shixunHomeworks:n,globalSetting:e.globalSetting,user:l,loading:t.effects}}))((function(e){var n,t,l,s,a,c,u,$,U,q,Q,K,ee,le,re,se,oe,ae,ie,ce,de,ue,me,pe=e.shixunHomeworks,he=e.globalSetting,xe=(e.loading,e.user),fe=e.dispatch,ve=(m()(e,te),(0,h.useSearchParams)()),ge=d()(ve,1)[0],_e=(0,h.useParams)(),je=(0,p.useRef)(),be=xe.userInfo,ye=pe.studentWorkDetail,we=pe.studentWorkCommon,ke=(pe.studentWorkSupplyDetail,pe.workList,pe.workDetail),Ze=pe.actionTabs,Ie=(0,G.U)(T.wT,{userId:null==_e?void 0:_e.userId}),Se=d()(Ie,4),Ne=Se[1],Ce=Se[2],Oe=Se[3],Ee=(0,G.U)(T.Wr,{userId:null==_e?void 0:_e.userId}),$e=d()(Ee,4),Pe=($e[1],$e[2]),He=$e[3],Te=(0,G.U)(T.G$,{userId:null==_e?void 0:_e.userId,id:null==_e?void 0:_e.userId}),De=d()(Te,3),Fe=De[1],Me=De[2],We=(0,p.useState)("1"),Be=d()(We,2),Le=Be[0],Re=Be[1],ze=(0,p.useState)(!1),Ae=d()(ze,2),Ye=Ae[0],Ge=Ae[1],Ve=(0,p.useState)(!1),Je=d()(Ve,2),Xe=Je[0],Ue=Je[1],qe=x.Z.useModal(),Qe=d()(qe,2),Ke=(Qe[0],Qe[1]),en=f.Z.useForm(),nn=d()(en,1)[0],tn=f.Z.useForm(),ln=d()(tn,1)[0],rn=(0,p.useState)({last:!1}),sn=d()(rn,2),on=sn[0],an=sn[1],cn=(0,p.useState)({last:!1}),dn=d()(cn,2),un=dn[0],mn=dn[1],pn=(0,p.useState)(!1),hn=d()(pn,2),xn=hn[0],fn=hn[1],vn=(0,p.useState)(""),gn=d()(vn,2),_n=gn[0],jn=gn[1],bn=(0,p.useState)(!1),yn=d()(bn,2),wn=yn[0],kn=yn[1],Zn=(0,p.useState)(""),In=d()(Zn,2),Sn=In[0],Nn=In[1],Cn=(0,p.useState)({status:0}),On=d()(Cn,2),En=On[0],$n=On[1],Pn=[{id:0,name:"全部点评(".concat((null==we||null===(n=we.comment_scores)||void 0===n?void 0:n.length)||0,")"),isShow:(0,L.GJ)()||(null==ye?void 0:ye.show_evaluation)},{id:1,name:"仅课堂老师可见(".concat((null==we||null===(t=we.hidden_comment_scores)||void 0===t?void 0:t.length)||0,")"),isShow:(0,L.GJ)()}].filter((function(e){return e.isShow})),Hn=[{title:"提交次数",dataIndex:"id",ellipsis:!0,width:80,render:function(e,n,t){return t+1}},{title:"提交时间",dataIndex:"commit_time",ellipsis:!0,render:function(e){return P()(e).format("YYYY-MM-DD HH:mm")}},{title:"提交阶段",dataIndex:"stage_name",ellipsis:!0,render:function(e,n){return(0,F.jsxs)(F.Fragment,{children:[e,(null==n?void 0:n.is_redo)&&(0,F.jsx)("span",{style:{color:"#FF9D18"},children:"(打回)"})]})}},{title:"教师评分",dataIndex:"teacher_score",ellipsis:!0},{title:"助教评分",dataIndex:"teaching_asistant_score",ellipsis:!0},{title:"匿评得分",dataIndex:"student_score",ellipsis:!0},{title:"操作",dataIndex:"history_id",ellipsis:!0,width:80,align:"right",render:function(e,n){return(0,F.jsx)("a",{target:"_blank",href:"/classrooms/".concat(null==_e?void 0:_e.coursesId,"/group_homework/").concat(null==_e?void 0:_e.commonHomeworkId,"/review/").concat(null==n?void 0:n.student_work_id,"?history_id=").concat(null==n?void 0:n.history_id),children:"查看"})}}],Tn=function(){fe({type:"shixunHomeworks/getStudentWorkCommon",payload:i()({},_e)})};(0,p.useEffect)((function(){return fe({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:_e.commonHomeworkId}}),fe({type:"globalSetting/footerToggle",payload:!1}),Nn(ge.get("history_id")||""),function(){fe({type:"globalSetting/footerToggle",payload:!0})}}),[]),(0,p.useEffect)((function(){var e=JSON.parse(sessionStorage.getItem("all_student_works_params")||"{}");fe({type:"shixunHomeworks/getStudentWorkDetail",payload:i()(i()(i()({},_e),e),{},{history_id:ge.get("history_id")||Sn})}),fe({type:"shixunHomeworks/getStudentWorkSupplyDetail",payload:i()({},_e)}),Tn(),je.current.onclick=function(e){"IMG"===e.target.nodeName&&""!==e.target.alt&&E.Z.publish("preview-image",e.target.src)}}),[_e.categoryId,_e.userId]),(0,p.useEffect)((function(){null!=ye&&ye.homework_id&&(null!=ye&&ye.prev_work_id?mn({student_work_id:null==ye?void 0:ye.prev_work_id}):mn({last:!0}),null!=ye&&ye.next_work_id?an({student_work_id:null==ye?void 0:ye.next_work_id}):an({last:!0}))}),[ye]);var Dn=function(){var e=o()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.attachment_ids=null===(t=n.attachment_ids)||void 0===t?void 0:t.map((function(e){var n;return null==e||null===(n=e.response)||void 0===n?void 0:n.id})),kn(!0),e.next=4,(0,T.yy)(i()(i()({},n),{},{userId:_e.userId}));case 4:0===e.sent.status&&(nn.resetFields(),null!=ye&&ye.next_work_id?(v.ZP.success("评阅成功!已为您自动切换至下一个待评阅的学生",2),Fn("read")):(v.ZP.success("评阅成功!",2),Tn())),kn(!1);case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Fn=function(){var e=o()(r()().mark((function e(n){var t,l,s,o,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=nn.getFieldsValue(),l=t.comment,s=t.score,o=t.attachment_ids,a=!(0,H.isNil)(s),console.log("-------",_e),!(l||a||o)){e.next=6;break}return x.Z.confirm({centered:!0,okText:"离开",cancelText:"取消",title:"离开此页提示",content:(0,F.jsx)("div",{className:"tc",children:"系统可能不会保存您所做的更改"}),onOk:function(){nn.resetFields(),"last"===n?h.history.push("/classrooms/".concat(null==_e?void 0:_e.coursesId,"/group_homework/").concat(null==_e?void 0:_e.commonHomeworkId,"/review/").concat(null==un?void 0:un.student_work_id)):"read"===n?h.history.push("/classrooms/".concat(null==_e?void 0:_e.coursesId,"/group_homework/").concat(null==_e?void 0:_e.commonHomeworkId,"/review/").concat(null==on?void 0:on.student_work_id)):h.history.push("/classrooms/".concat(_e.coursesId,"/group_homework/").concat(_e.commonHomeworkId,"/detail"))}}),e.abrupt("return");case 6:"last"===n?h.history.push("/classrooms/".concat(null==_e?void 0:_e.coursesId,"/group_homework/").concat(null==_e?void 0:_e.commonHomeworkId,"/review/").concat(null==un?void 0:un.student_work_id)):"read"===n?h.history.push("/classrooms/".concat(null==_e?void 0:_e.coursesId,"/group_homework/").concat(null==_e?void 0:_e.commonHomeworkId,"/review/").concat(null==on?void 0:on.student_work_id)):h.history.push("/classrooms/".concat(_e.coursesId,"/group_homework/").concat(_e.commonHomeworkId,"/detail"));case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Mn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{key:""};fe({type:"shixunHomeworks/setActionTabs",payload:e}),""===e.key&&(nn.resetFields(),ln.resetFields())};return(0,F.jsxs)("section",{className:"edu-container pb80",ref:je,children:[(0,F.jsxs)("section",{className:"animated fadeIn",children:[(0,F.jsx)("aside",{className:"mt10",children:be&&(0,F.jsxs)(g.Z,{separator:">",children:[(0,F.jsx)(g.Z.Item,{children:(0,F.jsx)(h.Link,{to:"/classrooms/".concat(_e.coursesId,"/group_homework"),children:null==be||null===(l=be.course)||void 0===l?void 0:l.course_name})}),(0,F.jsx)(g.Z.Item,{children:(0,F.jsx)(h.Link,{to:"/classrooms/".concat(_e.coursesId,"/group_homework"),children:"分组作业"})}),(0,F.jsx)(g.Z.Item,{children:(0,F.jsx)(h.Link,{to:"/classrooms/".concat(_e.coursesId,"/group_homework/").concat(_e.commonHomeworkId,"/detail"),children:"作业详情"})}),(0,F.jsx)(g.Z.Item,{children:null==ye?void 0:ye.author_name})]})}),(0,F.jsx)("aside",{className:[R.title,"mt20"].join(" "),children:(0,F.jsxs)(_.Z,{style:{width:"100%"},children:[(0,F.jsxs)(j.Z,{flex:"1",children:[(0,F.jsx)(h.Link,{to:"/classrooms/".concat(_e.coursesId,"/group_homework"),children:(0,F.jsx)(N.Z,{className:"font16 c-black"})}),(0,F.jsx)("strong",{className:"font20 ml5",children:null==ye?void 0:ye.homework_name}),(0,F.jsx)(A.VV,{status:null==ye?void 0:ye.homework_status})]}),!Sn&&(0,F.jsx)(j.Z,{children:(0,L.dE)()&&(null==ye||null===(s=ye.homework_status)||void 0===s?void 0:s.includes("补交中"))&&(0,F.jsx)("span",{onClick:function(){null==ye||!ye.can_submit||null!=ye&&ye.submit_size?fe({type:"classroomList/setActionTabs",payload:{key:"补交附件",params:_e,selectArrs:{homework_id:_e.commonHomeworkId,work_id:_e.userId}}}):v.ZP.warning("您的作品提交机会已用完。如需继续修改,请联系指导老师或平台运营。")},className:"c-blue current font14",children:"补交附件"})})]})})]}),(0,F.jsxs)(b.Z,{className:R.TabsStyle,destroyInactiveTabPane:!0,defaultActiveKey:"1",activeKey:Le,tabBarExtraContent:(0,F.jsx)(F.Fragment,{children:!Sn&&(null==ye?void 0:ye.commit_count)>1&&(0,F.jsx)(y.ZP,{icon:(0,F.jsx)("i",{className:"iconfont icon-tijiaozongjie"}),loading:Ne,onClick:o()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ce({},!0);case 2:Mn({key:"提交作品记录"});case 3:case"end":return e.stop()}}),e)}))),children:"提交作品记录"})}),onChange:function(e){Re(e),"3"==e&&Pe({})},children:[(0,F.jsx)(b.Z.TabPane,{tab:(0,F.jsxs)("span",{style:{position:"relative"},children:["作业详情",Sn&&(0,F.jsxs)("span",{style:{position:"absolute",left:"130%",padding:"3px",background:"rgba(219,243,224,0.88)",color:"#1FBE3C",fontSize:"12px"},children:["第",null==ye?void 0:ye.commit_count,"次提交的作品"]})]}),children:(0,F.jsxs)("div",{className:"pl30 pr30 pb10 bg-white",children:[!(null!=ye&&null!==(a=ye.project_info)&&void 0!==a&&a.id)&&(0,F.jsxs)("div",{className:"pt20 pb20",style:(null==ye?void 0:ye.description)&&{borderBottom:"1px solid #DFDFDF"},children:[(0,F.jsx)("div",{className:"font18 blod",children:"作业描述"}),(0,F.jsx)(z.Z,{className:"mt10",value:(null==ke?void 0:ke.description)||"暂无~"}),(0,F.jsx)(Y.Z,{authority:(0,L.GJ)(),showDimensions:!1,dataSource:null==ke?void 0:ke.attachments,callback:function(){fe({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:_e.commonHomeworkId}})}})]}),(null==ye?void 0:ye.description)&&(0,F.jsxs)("div",{className:"pt20",children:[(0,F.jsxs)(_.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,F.jsx)(j.Z,{children:(0,F.jsxs)("span",{className:"font18 blod",children:["学生作业",(0,F.jsx)(w.Z,{title:(0,F.jsx)("span",{className:"font14",children:"(当前支持批注的文档类型:.docx、.xlsx、.pptx)"}),children:(0,F.jsx)("i",{className:"iconfont icon-tishixiaowenhao ml10 font14 c-grey-999 current",style:{lineHeight:"18px"}})})]})}),(0,F.jsxs)(j.Z,{children:[(null==ye?void 0:ye.commit_time)&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{className:" c-light-black",children:P()(null==ye?void 0:ye.commit_time).format("YYYY-MM-DD HH:mm")}),(0,F.jsx)("span",{className:"ml10",children:null==ye?void 0:ye.commit_user_name}),(0,F.jsx)("span",{className:"ml10 c-light-black",children:"提交"})]}),(null==ye?void 0:ye.update_time)&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{className:"ml30 c-light-black",children:P()(null==ye?void 0:ye.update_time).format("YYYY-MM-DD HH:mm")}),(0,F.jsx)("span",{className:"ml10",children:null==ye?void 0:ye.update_user_name}),(0,F.jsx)("span",{className:"ml10 c-light-black",children:"更新"})]})]})]}),(0,F.jsx)(z.Z,{className:"mt10",value:(null==ye?void 0:ye.description)||"暂无~"}),(0,F.jsx)(Y.Z,{authority:(0,L.GJ)(),dataSource:null==ye?void 0:ye.attachments,callback:function(){fe({type:"shixunHomeworks/getStudentWorkDetail",payload:i()({},_e)})}})]}),(null==ye||null===(c=ye.project_info)||void 0===c?void 0:c.id)&&(0,F.jsx)("div",{className:"pt20 pb20",style:{borderTop:"1px solid #CCC",marginTop:"20px"},children:(0,F.jsxs)(_.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,F.jsx)(j.Z,{children:(0,F.jsx)("div",{className:"font16",children:"关联项目"})}),(0,F.jsx)(j.Z,{children:-1===(null==ye||null===(u=ye.project_info)||void 0===u?void 0:u.id)?(0,F.jsx)("span",{className:"c-blue",children:null==ye||null===($=ye.project_info)||void 0===$?void 0:$.name}):(0,F.jsx)("a",{target:"_blank",href:"".concat(null==he||null===(U=he.setting)||void 0===U?void 0:U.old_url).concat(null==ye||null===(q=ye.project_info)||void 0===q?void 0:q.id),children:null==ye||null===(Q=ye.project_info)||void 0===Q?void 0:Q.name})})]})})]})},"1"),!Sn&&(0,F.jsx)(b.Z.TabPane,{tab:"组员情况",children:(0,F.jsxs)("div",{className:"p30 bg-white",children:[(0,F.jsx)("div",{className:"font16 blod",children:"全部组员"}),(0,F.jsxs)(_.Z,{className:"mt15",wrap:!1,gutter:10,children:[(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"c-grey-666",children:"当前组员"})}),(0,F.jsxs)(j.Z,{children:[null==ye?void 0:ye.author_name," ",(null==ye?void 0:ye.is_leader_work)&&(0,F.jsx)("span",{className:R.leader,children:"组长"})]})]}),(null==ye||null===(K=ye.work_members)||void 0===K?void 0:K.length)>0&&(0,F.jsxs)(_.Z,{className:"mt10",wrap:!1,gutter:10,children:[(0,F.jsx)(j.Z,{children:(0,F.jsx)("span",{className:"c-grey-666",children:"其他组员"})}),(0,F.jsx)(j.Z,{children:null==ye||null===(ee=ye.work_members)||void 0===ee?void 0:ee.map((function(e,n){return(0,L.dE)()?(0,F.jsxs)("span",{children:[e.user_name,(null==e?void 0:e.is_leader)&&(0,F.jsx)("span",{className:R.leader,children:"组长"})]}):(0,F.jsxs)(h.Link,{className:"mr10",to:"/classrooms/".concat(_e.coursesId,"/group_homework/").concat(_e.commonHomeworkId,"/review/").concat(e.work_id),target:"_blank",children:[e.user_name,(null==e?void 0:e.is_leader)&&(0,F.jsx)("span",{className:R.leader,children:"组长"})]},n)}))})]}),!(0,L.dE)()&&(0,F.jsx)("div",{className:"c-grey-999 font12 mt10",children:"温馨提示:点击其他组员的姓名,可以快速评阅TA的作品"})]})},"2"),(null==ye?void 0:ye.anonymous_comment)&&!Sn&&(0,F.jsx)(b.Z.TabPane,{tab:"问题反馈",children:(0,F.jsx)("div",{className:"bg-white",style:{display:"flex",flexDirection:"column",padding:"10px 30px 30px 30px"},children:(null==He||null===(le=He.data)||void 0===le?void 0:le.count)>0?(0,F.jsx)(F.Fragment,{children:null==He||null===(re=He.data)||void 0===re||null===(re=re.list)||void 0===re?void 0:re.map((function(e,n){return(0,F.jsx)(ne,{type:"feedback",Data:i()(i()({},e),{},{time:null==e?void 0:e.created_at,user_info:{user_image_url:e.avatar_url,user_id:e.user_id,user_name:e.real_name}}),getInitData:Tn},n)}))}):(0,F.jsx)(X.Z,{})})},"3")]}),(0,F.jsxs)("div",{className:"mt20 pt20 pb20 pl30 pr30 bg-white",children:[!Sn&&"1"==Le&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(_.Z,{className:"mt20",gutter:20,justify:"end",children:[(0,L.GJ)()&&(null==we?void 0:we.ultimate)&&(0,F.jsx)(j.Z,{children:(0,F.jsx)(y.ZP,{type:"primary",onClick:function(){Mn({key:"调分",selectArrs:ye,id:_e.userId,params:_e})},children:"调分"})}),(null==ye?void 0:ye.is_author)&&(0,L.dE)()&&(null==ye||null===(se=ye.homework_status)||void 0===se?void 0:se.includes("匿评中"))&&"review"!==ge.get("review")&&(0,F.jsx)(j.Z,{children:(0,F.jsx)(y.ZP,{type:"primary",onClick:function(){Mn({key:"问题反馈"})},children:" 问题反馈 "})})]}),!we.is_author&&(!(null!=we&&we.ultimate)||(null==ye||null===(oe=ye.homework_status)||void 0===oe?void 0:oe.includes("匿评中")))&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(f.Z,{form:nn,layout:"vertical",size:"large",scrollToFirstError:!0,initialValues:{same_score:!0},onFinish:function(e){Dn(e)},children:[(0,F.jsx)(f.Z.Item,{name:"score",label:"评分",rules:[{required:!(0,L.GJ)(),message:"请填写分数"}],children:(0,F.jsx)(k.Z,{step:.1,min:0,style:{width:135},placeholder:"请填写分数",suffix:"分"})}),(0,F.jsx)("div",{onClick:function(){return Ge(!0)},children:(0,F.jsx)(f.Z.Item,{name:"comment",label:"评语",children:(0,F.jsx)(V.x,{placeholder:"请在此输入对本作品的评语,最大限制2000个字符",isEdit:Ye})})}),(0,F.jsx)(f.Z.Item,{name:"same_score",valuePropName:"checked",children:(0,F.jsx)(Z.Z,{children:"整组同评(选中,则本次评阅对象指小组全部成员,否则仅评阅此成员1人 )"})}),(0,F.jsx)(f.Z.Item,{name:"attachment_ids",children:(0,F.jsx)(W.Z,{})}),(0,L.GJ)()&&(0,F.jsx)("div",{onClick:function(){return Ue(!0)},children:(0,F.jsx)(f.Z.Item,{label:"仅课堂老师可见",name:"hidden_comment",children:(0,F.jsx)(V.x,{placeholder:"请输入评语",isEdit:Xe})})})]}),(0,F.jsxs)("div",{className:"".concat(R.buttonFixed),children:[" ",(0,F.jsx)("div",{className:"edu-container",children:(0,F.jsxs)(_.Z,{wrap:!1,justify:"space-between",align:"middle",children:[(0,F.jsxs)(j.Z,{children:[" ",(0,F.jsx)(y.ZP,{onClick:function(){return Fn("list")},children:" 返回列表 "})," "]}),(0,F.jsxs)(j.Z,{children:[(0,F.jsx)(y.ZP,{onClick:function(){return Fn("last")},disabled:null==un?void 0:un.last,children:" 上一个 "}),(0,F.jsx)(y.ZP,{className:"ml20",disabled:null==on?void 0:on.last,onClick:function(){return Fn("read")},children:" 下一个 "}),(0,F.jsx)(y.ZP,{className:"ml20",loading:wn,type:"primary",onClick:function(){nn.submit()},children:" 提交评阅 "})]})]})})]})]})]}),((0,L.GJ)()||(null==ye?void 0:ye.show_evaluation))&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(J.tp,{dataSource:Pn,value:null==En?void 0:En.status,onChange:function(e){$n(i()(i()({},En),{},{status:e}))}}),(0,F.jsxs)("div",{className:"mt20 p20",style:{background:"#F6F7F9",display:"flex",flexDirection:"column",gap:"20px"},children:[!(null!==(ae=0==(null==En?void 0:En.status)?null==we?void 0:we.comment_scores:null==we?void 0:we.hidden_comment_scores)&&void 0!==ae&&ae.length)&&(0,F.jsx)(X.Z,{styles:{margin:"50px auto"}}),null===(ie=0==(null==En?void 0:En.status)?null==we?void 0:we.comment_scores:null==we?void 0:we.hidden_comment_scores)||void 0===ie?void 0:ie.map((function(e,n){return(0,F.jsx)(ne,{index:n,type:1==En.status&&"teacher",Data:i()(i()({},e),{},{content:(null==e?void 0:e.hidden_comment)||(null==e?void 0:e.content),user_info:{user_image_url:e.user_image_url,user_login:e.user_login,user_name:e.user_name}}),getInitData:Tn,dispatch:fe},n)}))]})]})]}),!Sn&&(null==ye?void 0:ye.anonymous_comment)&&(0,L.oF)()&&(0,F.jsx)("section",{children:(0,F.jsxs)("aside",{className:[R.replyList,"bg-white"].join(" "),children:[(0,F.jsx)("span",{style:{fontSize:"16px"},children:"匿评学员"}),(0,F.jsx)("br",{}),(null==ye||null===(ce=ye.no_commented_user_names)||void 0===ce?void 0:ce.length)>0&&(0,F.jsxs)("p",{style:{marginTop:"1em"},children:["未完成匿评:",null==ye||null===(de=ye.no_commented_user_names)||void 0===de?void 0:de.toString()]}),(0,F.jsxs)("span",{style:{marginTop:(null==ye||null===(ue=ye.no_commented_user_names)||void 0===ue?void 0:ue.length)>0?"":"1em",display:"flex"},children:["已完成匿评:",null==ye||null===(me=ye.commented_user_names)||void 0===me?void 0:me.toString()]})]})}),Sn&&(0,F.jsxs)("div",{className:"".concat(R.buttonFixed),children:[" ",(0,F.jsx)("div",{className:"edu-container",children:(0,F.jsx)(_.Z,{wrap:!1,justify:"space-between",align:"middle",children:(0,F.jsxs)(j.Z,{children:[(0,F.jsx)(y.ZP,{onClick:function(){h.history.push("/classrooms/".concat(null==_e?void 0:_e.coursesId,"/common_homework/").concat(null==_e?void 0:_e.categoryId,"/detail"))},children:" 返回列表 "})," "]})})})]}),(0,F.jsx)(M,{}),(0,F.jsx)(B,{studentWorkDetail:ye}),(0,F.jsx)(C.Z,{}),(0,F.jsx)(x.Z,{title:"确认打回重做",open:xn,destroyOnClose:!0,forceRender:!0,onCancel:function(){fn(!1)},onOk:o()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(_n){e.next=3;break}return v.ZP.info("评语不能为空"),e.abrupt("return");case 3:return e.next=5,(0,D.ZP)("/api/student_works/".concat(_e.userId,"/redo_modal.json"),{method:"post",body:{comment:_n,id:_e.userId}});case 5:0===(null==(n=e.sent)?void 0:n.status)&&(v.ZP.info("打回重做成功"),fn(!1),Tn());case 7:case"end":return e.stop()}}),e)}))),width:700,children:(0,F.jsxs)("div",{style:{padding:"32px"},children:[(0,F.jsxs)("span",{children:["确认将",null==ye?void 0:ye.author_name,"的作业打回重做吗"]}),(0,F.jsxs)("div",{style:{marginTop:"20px"},children:[(0,F.jsxs)("label",{children:[(0,F.jsx)("span",{style:{marginRight:"5px",color:"red"},children:"*"}),"评语:"]}),(0,F.jsx)(O.Z,{className:R.MdEditor,onChange:function(e){return jn(e)},defaultValue:"",height:250})]})]})}),Ke,(0,F.jsx)(x.Z,{title:null==Ze?void 0:Ze.key,open:"提交作品记录"==(null==Ze?void 0:Ze.key),centered:!0,destroyOnClose:!0,width:969,footer:null,onCancel:function(){return Mn()},children:(0,F.jsx)(I.Z,{locale:{emptyText:(0,F.jsx)(X.Z,{})},columns:Hn,dataSource:null==Oe?void 0:Oe.student_works,pagination:!1})}),(0,F.jsx)(x.Z,{title:null==Ze?void 0:Ze.key,open:"问题反馈"==(null==Ze?void 0:Ze.key),centered:!0,destroyOnClose:!0,width:640,onCancel:function(){return Mn()},confirmLoading:Fe,onOk:function(){ln.submit()},children:(0,F.jsxs)(f.Z,{form:ln,onFinish:function(){var e=o()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Me({student_work_feedback:i()({},n)});case 2:0==(null==(t=e.sent)?void 0:t.status)&&(v.ZP.success("提交成功"),Mn(),Tn());case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,F.jsx)(f.Z.Item,{name:"content",rules:[{required:!0,message:"请输入内容"}],children:(0,F.jsx)(S.Z.TextArea,{rows:4,placeholder:"例如:作品提交的附件不清晰",maxLength:200})}),(0,F.jsx)(f.Z.Item,{noStyle:!0,children:" 如果作品无法匿评,请描述问题并点击“确定”按钮进行反馈。反馈后系统将不会扣除缺评分数。"})]})})]})}))},84481:function(e,n){n.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},66104:function(e,n,t){t.d(n,{Z:function(){return O}});var l=t(92310),r=t.n(l),s=t(55401),o=t(87147),a=t(59301),i=t(92343),c=t(36355),d=t(43501),u=t(91857);const m=e=>{let{children:n}=e;const{getPrefixCls:t}=a.useContext(c.E_),l=t("breadcrumb");return a.createElement("li",{className:`${l}-separator`,"aria-hidden":"true"},""===n?n:n||"/")};m.__ANT_BREADCRUMB_SEPARATOR=!0;var p=m,h=function(e,n){var t={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&n.indexOf(l)<0&&(t[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(l=Object.getOwnPropertySymbols(e);r{if(n)return n(t,l,r,s);const a=function(e,n){if(void 0===e.title||null===e.title)return null;const t=Object.keys(n).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${t})`,"g"),((e,t)=>n[t]||e))}(t,l);return x(e,t,a,o)}}var v=function(e,n){var t={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&n.indexOf(l)<0&&(t[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(l=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,separator:t="/",children:l,menu:r,overlay:s,dropdownProps:o,href:i}=e;const c=(e=>{if(r||s){const t=Object.assign({},o);if(r){const e=r||{},{items:n}=e,l=v(e,["items"]);t.menu=Object.assign(Object.assign({},l),{items:null==n?void 0:n.map(((e,n)=>{var{key:t,title:l,label:r,path:s}=e,o=v(e,["key","title","label","path"]);let c=null!=r?r:l;return s&&(c=a.createElement("a",{href:`${i}${s}`},c)),Object.assign(Object.assign({},o),{key:null!=t?t:n,label:c})}))})}else s&&(t.overlay=s);return a.createElement(u.Z,Object.assign({placement:"bottom"},t),a.createElement("span",{className:`${n}-overlay-link`},e,a.createElement(d.Z,null)))}return e})(l);return null!=c?a.createElement(a.Fragment,null,a.createElement("li",null,c),t&&a.createElement(p,null,t)):null},_=e=>{const{prefixCls:n,children:t,href:l}=e,r=v(e,["prefixCls","children","href"]),{getPrefixCls:s}=a.useContext(c.E_),o=s("breadcrumb",n);return a.createElement(g,Object.assign({},r,{prefixCls:o}),x(o,r,t,l))};_.__ANT_BREADCRUMB_ITEM=!0;var j=_,b=t(17313),y=t(83116),w=t(37613);const k=e=>{const{componentCls:n,iconCls:t}=e;return{[n]:Object.assign(Object.assign({},(0,b.Wf)(e)),{color:e.itemColor,fontSize:e.fontSize,[t]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,b.Qy)(e)),"li:last-child":{color:e.lastItemColor},[`${n}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${n}-link`]:{[`\n > ${t} + span,\n > ${t} + a\n `]:{marginInlineStart:e.marginXXS}},[`${n}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${t}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}};var Z=(0,y.Z)("Breadcrumb",(e=>{const n=(0,w.TS)(e,{});return[k(n)]}),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}))),I=function(e,n){var t={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&n.indexOf(l)<0&&(t[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(l=Object.getOwnPropertySymbols(e);r{var{breadcrumbName:n}=e,t=I(e,["breadcrumbName"]);return Object.assign(Object.assign({},t),{title:n})}))}),r}var N=function(e,n){var t={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&n.indexOf(l)<0&&(t[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(l=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,separator:t="/",style:l,className:d,rootClassName:u,routes:m,items:h,children:x,itemRender:v,params:_={}}=e,j=N(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:b,direction:y,breadcrumb:w}=a.useContext(c.E_);let k;const I=b("breadcrumb",n),[C,O]=Z(I),E=function(e,n){return(0,a.useMemo)((()=>e||(n?n.map(S):null)),[e,n])}(h,m);const $=f(I,v);if(E&&E.length>0){const e=[],n=h||m;k=E.map(((l,r)=>{const{path:s,key:i,type:c,menu:d,overlay:u,onClick:m,className:h,separator:x,dropdownProps:f}=l,v=((e,n)=>{if(void 0===n)return n;let t=(n||"").replace(/^\//,"");return Object.keys(e).forEach((n=>{t=t.replace(`:${n}`,e[n])})),t})(_,s);void 0!==v&&e.push(v);const j=null!=i?i:r;if("separator"===c)return a.createElement(p,{key:j},x);const b={},y=r===E.length-1;d?b.menu=d:u&&(b.overlay=u);let{href:w}=l;return e.length&&void 0!==v&&(w=`#/${e.join("/")}`),a.createElement(g,Object.assign({key:j},b,(0,o.Z)(l,{data:!0,aria:!0}),{className:h,dropdownProps:f,href:w,separator:y?"":t,onClick:m,prefixCls:I}),$(l,_,n,e,w))}))}else if(x){const e=(0,s.Z)(x).length;k=(0,s.Z)(x).map(((n,l)=>{if(!n)return n;const r=l===e-1;return(0,i.Tm)(n,{separator:r?"":t,key:l})}))}const P=r()(I,null==w?void 0:w.className,{[`${I}-rtl`]:"rtl"===y},d,u,O),H=Object.assign(Object.assign({},null==w?void 0:w.style),l);return C(a.createElement("nav",Object.assign({className:P,style:H},j),a.createElement("ol",null,k)))};C.Item=j,C.Separator=p;var O=C},37906:function(e,n,t){t.d(n,{Z:function(){return O}});var l=t(59301),r=t(92310),s=t.n(r),o=t(69507),a=t(36355),i=t(19716),c=t(8628);var d={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};var u=l.createContext({}),m=t(55401),p=function(e,n){var t={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&n.indexOf(l)<0&&(t[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(l=Object.getOwnPropertySymbols(e);r{return n||(e=t,(0,m.Z)(e).map((e=>Object.assign({},null==e?void 0:e.props))));var e}),[n,t]);return l.useMemo((()=>r.map((n=>{var{span:t}=n,l=p(n,["span"]);return Object.assign(Object.assign({},l),{span:"number"==typeof t?t:(0,o.m9)(e,t)})}))),[r,e])}function x(e,n,t){let l=e;return(void 0===t||t>n)&&(l=Object.assign(Object.assign({},e),{span:n})),l}var f=(e,n)=>(0,l.useMemo)((()=>function(e,n){const t=[];let l=[],r=n;return e.filter((e=>e)).forEach(((s,o)=>{const a=null==s?void 0:s.span,i=a||1;if(o===e.length-1)return l.push(x(s,r,a)),void t.push(l);i{let{children:n}=e;return n};function g(e){return null!=e}var _=e=>{const{itemPrefixCls:n,component:t,span:r,className:o,style:a,labelStyle:i,contentStyle:c,bordered:d,label:u,content:m,colon:p}=e,h=t;return d?l.createElement(h,{className:s()({[`${n}-item-label`]:g(u),[`${n}-item-content`]:g(m)},o),style:a,colSpan:r},g(u)&&l.createElement("span",{style:i},u),g(m)&&l.createElement("span",{style:c},m)):l.createElement(h,{className:s()(`${n}-item`,o),style:a,colSpan:r},l.createElement("div",{className:`${n}-item-container`},(u||0===u)&&l.createElement("span",{className:s()(`${n}-item-label`,{[`${n}-item-no-colon`]:!p}),style:i},u),(m||0===m)&&l.createElement("span",{className:s()(`${n}-item-content`),style:c},m)))};function j(e,n,t){let{colon:r,prefixCls:s,bordered:o}=n,{component:a,type:i,showLabel:c,showContent:d,labelStyle:u,contentStyle:m}=t;return e.map(((e,n)=>{let{label:t,children:p,prefixCls:h=s,className:x,style:f,labelStyle:v,contentStyle:g,span:j=1,key:b}=e;return"string"==typeof a?l.createElement(_,{key:`${i}-${b||n}`,className:x,style:f,labelStyle:Object.assign(Object.assign({},u),v),contentStyle:Object.assign(Object.assign({},m),g),span:j,colon:r,component:a,itemPrefixCls:h,bordered:o,label:c?t:null,content:d?p:null}):[l.createElement(_,{key:`label-${b||n}`,className:x,style:Object.assign(Object.assign(Object.assign({},u),f),v),span:1,colon:r,component:a[0],itemPrefixCls:h,bordered:o,label:t}),l.createElement(_,{key:`content-${b||n}`,className:x,style:Object.assign(Object.assign(Object.assign({},m),f),g),span:2*j-1,component:a[1],itemPrefixCls:h,bordered:o,content:p})]}))}var b=e=>{const n=l.useContext(u),{prefixCls:t,vertical:r,row:s,index:o,bordered:a}=e;return r?l.createElement(l.Fragment,null,l.createElement("tr",{key:`label-${o}`,className:`${t}-row`},j(s,e,Object.assign({component:"th",type:"label",showLabel:!0},n))),l.createElement("tr",{key:`content-${o}`,className:`${t}-row`},j(s,e,Object.assign({component:"td",type:"content",showContent:!0},n)))):l.createElement("tr",{key:o,className:`${t}-row`},j(s,e,Object.assign({component:a?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},n)))},y=t(17313),w=t(83116),k=t(37613);const Z=e=>{const{componentCls:n,labelBg:t}=e;return{[`&${n}-bordered`]:{[`> ${n}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${n}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${n}-item-label, > ${n}-item-content`]:{padding:`${e.padding}px ${e.paddingLG}px`,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${n}-item-label`]:{color:e.colorTextSecondary,backgroundColor:t,"&::after":{display:"none"}}}},[`&${n}-middle`]:{[`${n}-row`]:{[`> ${n}-item-label, > ${n}-item-content`]:{padding:`${e.paddingSM}px ${e.paddingLG}px`}}},[`&${n}-small`]:{[`${n}-row`]:{[`> ${n}-item-label, > ${n}-item-content`]:{padding:`${e.paddingXS}px ${e.padding}px`}}}}}},I=e=>{const{componentCls:n,extraColor:t,itemPaddingBottom:l,colonMarginRight:r,colonMarginLeft:s,titleMarginBottom:o}=e;return{[n]:Object.assign(Object.assign(Object.assign({},(0,y.Wf)(e)),Z(e)),{"&-rtl":{direction:"rtl"},[`${n}-header`]:{display:"flex",alignItems:"center",marginBottom:o},[`${n}-title`]:Object.assign(Object.assign({},y.vS),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${n}-extra`]:{marginInlineStart:"auto",color:t,fontSize:e.fontSize},[`${n}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${n}-row`]:{"> th, > td":{paddingBottom:l},"&:last-child":{borderBottom:"none"}},[`${n}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${s}px ${r}px`},[`&${n}-item-no-colon::after`]:{content:'""'}},[`${n}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${n}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${n}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${n}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${n}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${n}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${n}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}};var S=(0,w.Z)("Descriptions",(e=>{const n=(0,k.TS)(e,{});return[I(n)]}),(e=>({labelBg:e.colorFillAlter,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,extraColor:e.colorText}))),N=function(e,n){var t={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&n.indexOf(l)<0&&(t[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(l=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,title:t,extra:r,column:m,colon:p=!0,bordered:x,layout:v,children:g,className:_,rootClassName:j,style:y,size:w,labelStyle:k,contentStyle:Z,items:I}=e,C=N(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:O,direction:E,descriptions:$}=l.useContext(a.E_),P=O("descriptions",n),H=(0,c.Z)(),T=l.useMemo((()=>{var e;return"number"==typeof m?m:null!==(e=(0,o.m9)(H,Object.assign(Object.assign({},d),m)))&&void 0!==e?e:3}),[H,m]),D=h(H,I,g),F=(0,i.Z)(w),M=f(T,D),[W,B]=S(P),L=l.useMemo((()=>({labelStyle:k,contentStyle:Z})),[k,Z]);return W(l.createElement(u.Provider,{value:L},l.createElement("div",Object.assign({className:s()(P,null==$?void 0:$.className,{[`${P}-${F}`]:F&&"default"!==F,[`${P}-bordered`]:!!x,[`${P}-rtl`]:"rtl"===E},_,j,B),style:Object.assign(Object.assign({},null==$?void 0:$.style),y)},C),(t||r)&&l.createElement("div",{className:`${P}-header`},t&&l.createElement("div",{className:`${P}-title`},t),r&&l.createElement("div",{className:`${P}-extra`},r)),l.createElement("div",{className:`${P}-view`},l.createElement("table",null,l.createElement("tbody",null,M.map(((e,n)=>l.createElement(b,{key:n,index:n,colon:p,prefixCls:P,vertical:"vertical"===v,bordered:x,row:e})))))))))};C.Item=v;var O=C}}]); \ No newline at end of file