|
|
"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)},78716: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(77162),a=t(26194),c=t(36653),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})})}},46585:function(e,n,t){t.d(n,{Z:function(){return c}});var o=t(79800),l=t.n(o),s=t(59301),r=t(24785),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})}},57108: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(46681),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(26220),N=t(24905),Z=t(14491),S=t(98135),M=t(22596),C=t(44770),O=t(46585),L=t(90694),D=t(77162),E=t(24785),P=t(2701),T=t(99232),z=t.n(T),$=t(57357),F=t(64157),H=t(37712),B=(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,H.jsx)(H.Fragment,{children:(0,H.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,L.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,H.jsx)("p",{className:"tc",children:"该学生的最终成绩将不会按照评分规则进行计算"}),(0,H.jsxs)(x.Z,{form:c,layout:"horizontal",children:[(0,H.jsxs)("div",{style:{display:"flex",alignItems:"baseline"},children:[(0,H.jsx)(x.Z.Item,{label:"成绩",name:"score",rules:[{required:!0,message:"请输入!"}],children:(0,H.jsx)(I.Z,{min:0,placeholder:"请填写分数"})}),(0,H.jsx)("span",{className:"ml10",children:"分"})]}),(0,H.jsx)("div",{children:(0,H.jsx)(x.Z.Item,{name:"comment",children:(0,H.jsx)(S.Z.TextArea,{placeholder:"请填写您对作品调分的原因",rows:8})})})]})]})})})),G={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"},A=t(36653),W=t(89392),R=t(25229),Y=(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,F.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,H.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,H.jsxs)(H.Fragment,{children:["你还有 ",(0,H.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,H.jsxs)(x.Z,{form:r,initialValues:{},children:[(0,H.jsx)(x.Z.Item,{name:"attachment_ids",rules:[{required:!0,message:"请上传附件"}],children:(0,H.jsx)(R.Z,{})}),(0,H.jsx)(x.Z.Item,{name:"description",children:(0,H.jsx)(S.Z.TextArea,{placeholder:"请在此输入补交附件的原因,最大限制100个字符",rows:7})})]})})})),U=t(41282),V=t(64330),J=t(66134),Q=t(9515),X=t(57154),q=t(77984),K=t(78716),ee=t(82589),ne=t(95858),te=t(39647),oe=t.n(te),le=t(37906),se="pinfen____hgN7",re="left___ZyTXs",ie="right___OSPEM",ae="tagStyleSzz___fzxbk",ce="headpic___d7fnl",de=t(74343),ue=["Data","layer","type","index"],me=function e(n){var t,o,s,r,i,c,u,j,b,w,Z,S,M,C,O=n.Data,E=n.layer,P=void 0===E?1:E,T=n.type,B=n.index,G=void 0===B?0:B,W=oe()(n,ue),R=(0,h.useParams)(),Y=(null==W?void 0:W.shixunHomeworks).studentWorkDetail,U=(0,p.useState)({type:0,show:!1}),J=m()(U,2),Q=J[0],q=J[1],K=(0,p.useState)(null),ee=m()(K,2),ne=ee[0],te=ee[1],me=(0,X.U)(F.qP,{userId:null==R?void 0:R.userId}),pe=m()(me,3),he=pe[1],xe=pe[2],_e=(0,X.U)(F.R$,{userId:null==R?void 0:R.userId}),fe=m()(_e,3),je=fe[1],ve=fe[2],ge=(0,X.U)(F.QC,{userId:null==R?void 0:R.userId}),ye=m()(ge,3),be=(ye[1],ye[2]),we=(0,X.U)(F.Mf,{userId:null==R?void 0:R.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+="<span>".concat(o.name,'<span style="color:#FA6400;"}}>').concat(o.score,"分</span></span>"),t<(null==e?void 0:e.length)-1&&(n+=" + ")}return(0,H.jsx)("span",{dangerouslySetInnerHTML:{__html:n}})};return(0,H.jsxs)("div",{children:[(0,H.jsxs)(v.Z,{wrap:!1,gutter:15,children:[1!=P&&(0,H.jsx)(g.Z,{children:(0,H.jsx)("div",{style:{width:"".concat(40*(P-1),"px")}})}),"appeal_info"==T?(0,H.jsx)(g.Z,{children:(0,H.jsx)("img",{className:"mt10 ".concat(ce),width:40,src:"--"===(null==O||null===(t=O.appeal_info)||void 0===t?void 0:t.user_image_url)?de.xp:"".concat($.Z.IMG_SERVER,"/images/").concat(null==O||null===(o=O.appeal_info)||void 0===o?void 0:o.user_image_url)})}):(0,H.jsx)(g.Z,{children:(0,H.jsx)("img",{className:"mt10 ".concat(ce),width:40,src:"--"===(null==O||null===(s=O.user_info)||void 0===s?void 0:s.user_image_url)?de.xp:"".concat($.Z.IMG_SERVER,"/images/").concat(null==O||null===(r=O.user_info)||void 0===r?void 0:r.user_image_url)})}),"appeal_info"==T?(0,H.jsxs)(g.Z,{flex:1,children:[(0,H.jsx)(A.Z,{className:"font14",value:"<span class='c-grey-666'>".concat(null==O||null===(i=O.appeal_info)||void 0===i?void 0:i.user_name,":</span>").concat((null==O||null===(c=O.appeal_info)||void 0===c?void 0:c.content)||"暂未写评语")}),(0,H.jsxs)(v.Z,{className:"c-grey-666 mt5",wrap:!1,align:"middle",gutter:20,children:[(0,H.jsx)(g.Z,{children:z()(null==O||null===(u=O.appeal_info)||void 0===u?void 0:u.time).format("YYYY-MM-DD HH:mm")}),1==(null==O?void 0:O.appeal_status)&&(0,H.jsx)(g.Z,{children:(0,H.jsx)("span",{className:ae,style:{color:"#3061D0",border:"1px #3061D0 solid"},children:"申诉中"})}),2==(null==O?void 0:O.appeal_status)&&(0,H.jsx)(g.Z,{children:(0,H.jsx)("span",{className:ae,style:{color:"#999",border:"1px #999 solid"},children:"申诉已撤销"})}),3==(null==O?void 0:O.appeal_status)&&(0,H.jsx)(g.Z,{children:(0,H.jsx)("span",{className:ae,style:{color:"#3061D0",border:"1px #3061D0 solid"},children:"申诉成功"})}),4==(null==O?void 0:O.appeal_status)&&(0,H.jsx)(g.Z,{children:(0,H.jsx)("span",{className:ae,style:{color:"#999",border:"1px #999 solid"},children:"申诉被拒绝"})}),5==(null==O?void 0:O.appeal_status)&&(0,H.jsx)(g.Z,{children:(0,H.jsx)("span",{className:ae,style:{color:"#999",border:"1px #999 solid"},children:"申诉失败"})})]})]}):(0,H.jsxs)(g.Z,{flex:1,children:[(0,H.jsx)(A.Z,{className:"font14",value:"<span class='c-grey-666'>".concat(null==O||null===(j=O.user_info)||void 0===j?void 0:j.user_name,":</span>").concat((null==O?void 0:O.content)||"暂未写评语")}),(0,H.jsxs)(v.Z,{className:"c-grey-666 mt5",wrap:!1,align:"middle",gutter:20,children:[(0,H.jsx)(g.Z,{children:z()((null==O?void 0:O.comment_time)||(null==O?void 0:O.time)).format("YYYY-MM-DD HH:mm")}),(null==O?void 0:O.student_work_num)&&(0,H.jsx)(g.Z,{children:(0,H.jsxs)("span",{style:{padding:"3px",background:"rgba(219,243,224,0.88)",color:"#1FBE3C",fontSize:"12px"},children:["第",null==O?void 0:O.student_work_num,"次提交的作品"]})}),(null==O?void 0:O.score)&&(null==Y?void 0:Y.single_score)&&(0,H.jsx)(g.Z,{children:(0,H.jsxs)("span",{className:"c-orange",children:[" ",null==O?void 0:O.score,"分 "]})}),!(null!=Y&&Y.single_score)&&null!==(null==O?void 0:O.score)&&(0,H.jsxs)("div",{className:se,children:[(0,H.jsx)(k.Z,{title:Le(null==O?void 0:O.score_details),overlayInnerStyle:{width:"min-content",whiteSpace:"nowrap",overflow:"visible"},placement:"topLeft",children:(0,H.jsx)("div",{className:re,children:Le(null==O?void 0:O.score_details)})}),(0,H.jsxs)("span",{className:ie,children:[" = 综合得分",(0,H.jsxs)("span",{style:{color:"#FA6400"},children:[null==O?void 0:O.score,"分"]})]})]})]}),(null==O||null===(b=O.attachments)||void 0===b?void 0:b.length)>0&&(0,H.jsx)("div",{className:"mt10",style:{display:"flex",flexDirection:"column",gap:10},children:null==O||null===(w=O.attachments)||void 0===w?void 0:w.map((function(e,n){return(0,H.jsxs)("a",{href:"".concat($.Z.API_SERVER).concat(e.url),children:[(0,H.jsx)("i",{className:"iconfont icon-fujian font14"}),(0,H.jsx)("span",{className:"ml10",children:null==e?void 0:e.title}),(0,H.jsx)("span",{className:"c-light-black ml20 font12",children:null==e?void 0:e.filesize})]},n)}))})]}),"feedback"!=T&&(0,H.jsx)(H.Fragment,{children:"appeal_info"==T?(0,H.jsx)(g.Z,{style:{whiteSpace:"nowrap"},children:(0,H.jsxs)(v.Z,{wrap:!1,gutter:10,children:[(null==O?void 0:O.delete)&&(null==O?void 0:O.can_appeal)&&(0,H.jsx)(g.Z,{children:(0,H.jsx)("span",{className:"c-blue current",onClick:function(){var e;f.Z.confirm({centered:!0,title:(0,H.jsxs)("div",{children:["撤销申诉后,无法再对本评阅记录进行申诉",(0,H.jsx)("br",{}),"是否确认撤销申诉"]}),onOk:(e=a()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(null==W?void 0:W.getInitData)&&(null==W||W.getInitData());case 1:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},children:"撤销申诉"})}),1==(null==O?void 0:O.appeal_status)&&(0,V.GJ)()&&(0,H.jsx)(g.Z,{children:(0,H.jsx)("span",{className:"c-blue current mr10",onClick:function(){Oe(!0)},children:"接受申诉"})}),1==(null==O?void 0:O.appeal_status)&&(0,V.GJ)()&&(0,H.jsx)(g.Z,{children:(0,H.jsx)("span",{className:"c-red current",onClick:function(){var e;f.Z.confirm({centered:!0,title:(0,H.jsxs)("div",{children:["此匿评成绩将被认为合理",(0,H.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,L.ZP)("/api/student_works/".concat(R.userId,"/deal_appeal_score.json"),{method:"post",body:{score_id:null==O?void 0:O.score_id,status:4}});case 2:0===(null==(n=e.sent)?void 0:n.status)&&(null==W?void 0:W.getInitData)&&(null==W||W.getInitData());case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},children:"拒绝申诉"})})]})}):(0,H.jsxs)(H.Fragment,{children:[(1==P||"teacher"==T)&&(0,H.jsx)(g.Z,{style:{whiteSpace:"nowrap"},children:(0,H.jsxs)(v.Z,{wrap:!1,gutter:10,children:[(null==O?void 0:O.delete)&&(0,H.jsx)(g.Z,{children:(0,H.jsx)("span",{className:"c-blue current",onClick:function(){!function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O;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==W?void 0:W.getInitData)&&(null==W||W.getInitData()));case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})}(O)},children:"删除"})}),(null==O?void 0:O.can_appeal)&&(0,H.jsx)(g.Z,{children:(0,H.jsx)("span",{className:"c-blue current",onClick:function(){q({type:1,show:!0})},children:"申诉"})}),(null==O?void 0:O.can_reply)&&(0,H.jsx)(g.Z,{children:(0,H.jsx)("span",{className:"c-blue current",onClick:function(){q({type:0,show:!0})},children:"回复"})}),(1==P&&!(null!=O&&O.can_reply)||!(null!=O&&O.can_reply)&&"teacher"==T&&0!=G)&&(0,H.jsx)(g.Z,{children:(0,H.jsx)("span",{className:"c-light-black",children:"失效"})})]})}),1!=P&&(null==O?void 0:O.can_delete)&&"teacher"!=T&&(0,H.jsx)(g.Z,{children:(0,H.jsx)("span",{className:"c-blue current",onClick:function(){!function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O;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==W?void 0:W.getInitData)&&(null==W||W.getInitData()));case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})}(O)},children:"删除"})})]})})]}),1==P&&(null==O?void 0:O.appeal_info)&&""!=(null==O?void 0:O.appeal_info)&&(0,H.jsx)("div",{className:"mt20",style:{display:"flex",flexDirection:"column",gap:"20px"},children:(0,H.jsx)(e,d()({type:"appeal_info",Data:O,layer:P+1},W))}),1==P&&(null==O||null===(Z=O.journals)||void 0===Z?void 0:Z.length)>0&&(0,H.jsx)("div",{className:"mt20",style:{display:"flex",flexDirection:"column",gap:"20px"},children:null==O||null===(S=O.journals)||void 0===S?void 0:S.map((function(n,t){return(0,H.jsx)(e,d()({type:T,Data:n,layer:P+1},W),t)}))}),(null==Q?void 0:Q.show)&&(0,H.jsxs)("div",{className:"mt20",style:{marginLeft:"56px"},children:[(0,H.jsx)(D.Z,{height:150,isFocus:!0,watch:!0,onChange:function(e){te(e)}}),(0,H.jsxs)(v.Z,{align:"middle",justify:"end",gutter:20,children:[(0,H.jsx)(g.Z,{children:(0,H.jsx)(y.ZP,{onClick:function(){q({type:0,show:!1})},children:"取消"})}),(0,H.jsx)(g.Z,{children:(0,H.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(""!==ne){e.next=3;break}return _.ZP.error("请输入内容"),e.abrupt("return");case 3:if("teacher"!=T){e.next=15;break}return e.next=6,null==Q?void 0:Q.type;case 6:if(e.t0=e.sent,0!=e.t0){e.next=11;break}e.t1=xe({hidden_comment:ne,score_id:null==O?void 0:O.score_id}),e.next=12;break;case 11:e.t1=ve({comment:ne,score_id:null==O?void 0:O.score_id});case 12:n=e.t1,e.next=18;break;case 15:return e.next=17,(0==(null==Q?void 0:Q.type)?xe:ve)({comment:ne,score_id:null==O?void 0:O.score_id});case 17:n=e.sent;case 18:0===n.status&&(_.ZP.success("操作成功"),q({type:0,show:!1}),(null==W?void 0:W.getInitData)&&(null==W||W.getInitData()));case 19:case"end":return e.stop()}}),e)}))),children:0==(null==Q?void 0:Q.type)?"回复":"申诉"})})]})]}),(0,H.jsx)(f.Z,{title:"接受申诉",open:Ce,centered:!0,destroyOnClose:!0,onCancel:function(){Oe(!1)},maskClosable:!1,width:544,onOk:function(){Ze.submit()},children:(0,H.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,L.ZP)("/api/student_works/".concat(R.userId,"/deal_appeal_score.json"),{method:"post",body:d()(d()({},n),{},{userId:R.userId,score_id:null==O?void 0:O.score_id,status:3})});case 2:0===e.sent.status&&(Oe(!1),(null==W?void 0:W.getInitData)&&(null==W||W.getInitData()));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,H.jsx)("div",{style:{color:"#191919"},children:"确认是否接受申诉?一旦接受,被申诉的评分记录将作废。请您补充匿评评分:"}),(0,H.jsx)(le.Z,{style:{marginTop:"20px"},colon:!1,items:[{key:"1",label:"申诉人",children:(0,H.jsx)("span",{children:null==O||null===(M=O.appeal_info)||void 0===M?void 0:M.user_name})},{key:"2",label:"被申诉人",children:(0,H.jsx)("span",{style:{color:"#191919"},children:null==O||null===(C=O.user_info)||void 0===C?void 0:C.user_name})},{key:"3",label:"被申诉人评分",children:(0,H.jsx)("span",{style:{color:"#191919"},children:null==O?void 0:O.score})}]}),(0,H.jsxs)(v.Z,{className:"mt20",wrap:!1,children:[(0,H.jsx)(g.Z,{children:(0,H.jsx)(x.Z.Item,{label:"匿评分数",name:"score",rules:[{required:!0,message:"请输入分数"}],children:(0,H.jsx)(I.Z,{min:1,max:100,step:1})})}),(0,H.jsx)(g.Z,{children:(0,H.jsx)("span",{className:"ml10",style:{lineHeight:"30px"},children:"分"})}),(0,H.jsx)(g.Z,{children:(0,H.jsx)(x.Z.Item,{className:"ml20",valuePropName:"checked",name:"is_appeal_penalty",initialValue:!0,children:(0,H.jsx)(N.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,T,te,oe,le,se,re,ie,ae,ce,de,ue,pe,he,xe,_e=e.shixunHomeworks,fe=(e.globalSetting,e.loading),je=e.user,ve=e.dispatch,ge=(0,h.useSearchParams)(),ye=m()(ge,1)[0],be=(0,h.useParams)(),we=x.Z.useForm(),ke=m()(we,1)[0],Ie=x.Z.useForm(),Ne=m()(Ie,1)[0],Ze=je.userInfo,Se=_e.studentWorkDetail,Me=_e.studentWorkCommon,Ce=(_e.studentWorkSupplyDetail,_e.workList),Oe=_e.workDetail,Le=_e.actionTabs,De=(0,X.U)(F.wT,{userId:null==be?void 0:be.userId}),Ee=m()(De,4),Pe=Ee[1],Te=Ee[2],ze=Ee[3],$e=(0,X.U)(F.Wr,{userId:null==be?void 0:be.userId}),Fe=m()($e,4),He=Fe[1],Be=Fe[2],Ge=Fe[3],Ae=(0,X.U)(F.G$,{userId:null==be?void 0:be.userId,id:null==be?void 0:be.userId}),We=m()(Ae,3),Re=We[1],Ye=We[2],Ue=(0,p.useState)("1"),Ve=m()(Ue,2),Je=Ve[0],Qe=Ve[1],Xe=(0,p.useState)(!1),qe=m()(Xe,2),Ke=qe[0],en=qe[1],nn=(0,p.useState)(!1),tn=m()(nn,2),on=tn[0],ln=tn[1],sn=(0,p.useState)({last:!1}),rn=m()(sn,2),an=rn[0],cn=rn[1],dn=(0,p.useState)({last:!1}),un=m()(dn,2),mn=un[0],pn=un[1],hn=(0,p.useRef)(),xn=(0,p.useState)(!1),_n=m()(xn,2),fn=_n[0],jn=_n[1],vn=(0,p.useState)(""),gn=m()(vn,2),yn=gn[0],bn=gn[1],wn=(0,p.useState)([]),kn=m()(wn,2),In=kn[0],Nn=kn[1],Zn=(0,p.useState)([]),Sn=m()(Zn,2),Mn=(Sn[0],Sn[1]),Cn=(0,p.useState)(!1),On=m()(Cn,2),Ln=On[0],Dn=On[1],En=(0,p.useRef)(),Pn=(0,p.useState)(!1),Tn=m()(Pn,2),zn=Tn[0],$n=Tn[1],Fn=(0,p.useState)(""),Hn=m()(Fn,2),Bn=Hn[0],Gn=Hn[1],An=(0,p.useState)(!1),Wn=m()(An,2),Rn=Wn[0],Yn=Wn[1],Un=(0,p.useState)(!1),Vn=m()(Un,2),Jn=Vn[0],Qn=Vn[1],Xn=(0,p.useState)(""),qn=m()(Xn,2),Kn=qn[0],et=qn[1],nt=(0,p.useState)(!0),tt=m()(nt,2),ot=tt[0],lt=tt[1],st=(0,p.useState)({content:"",type:""}),rt=m()(st,2),it=rt[0],at=rt[1],ct=(0,p.useState)({status:0}),dt=m()(ct,2),ut=dt[0],mt=dt[1],pt=[{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 z()(e).format("YYYY-MM-DD HH:mm")}},{title:"提交阶段",dataIndex:"stage_name",ellipsis:!0,render:function(e,n){return(0,H.jsxs)(H.Fragment,{children:[e,(null==n?void 0:n.is_redo)&&(0,H.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,H.jsx)("a",{target:"_blank",href:"/classrooms/".concat(null==be?void 0:be.coursesId,"/common_homework/").concat(null==be?void 0:be.categoryId,"/review/").concat(null==n?void 0:n.student_work_id,"?history_id=").concat(null==n?void 0:n.history_id),children:"查看"})}}],ht=[{id:0,name:"全部点评(".concat((null==Me||null===(n=Me.comment_scores)||void 0===n?void 0:n.length)||0,")"),isShow:(0,V.RV)()||(null==Se||null===(t=Se.homework_status)||void 0===t?void 0:t.includes("匿评中"))||(null==Se||null===(o=Se.homework_status)||void 0===o?void 0:o.includes("申诉中"))},{id:1,name:"仅课堂老师可见(".concat((null==Me||null===(s=Me.hidden_comment_scores)||void 0===s?void 0:s.length)||0,")"),isShow:(0,V.GJ)()}].filter((function(e){return e.isShow})),xt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{key:""};ve({type:"shixunHomeworks/setActionTabs",payload:e}),""===e.key&&(ke.resetFields(),Ne.resetFields())},_t=function(){ve({type:"shixunHomeworks/getStudentWorkCommon",payload:d()({},be)})},ft=function(e){for(var n=0,t=0;t<e.length;t++)""!=e[t].score&&(n+=e[t].score);return n.toFixed(2)},jt=function(){var e=a()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=Se&&Se.single_score){e.next=7;break}if(!In.find((function(e){return""===e.score}))||In.every((function(e){return""===e.score}))){e.next=4;break}return _.ZP.warning("请把分数填写完整"),e.abrupt("return");case 4:n.score_details=r()(In),n.score=ft(In),In.every((function(e){return""===e.score}))&&(n.score=null,n.score_details=[]);case 7: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})),Dn(!0),e.next=11,(0,F.yy)(d()(d()({},n),{},{userId:be.userId}));case 11:0===e.sent.status&&(ke.resetFields(),null!=Se&&Se.next_work_id?(_.ZP.success("评阅成功!已为您自动切换至下一个待评阅的学生",2),vt("read")):(_.ZP.success("评阅成功!",2),_t())),jn(!0),Dn(!1);case 15:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),vt=function(){var e=a()(l()().mark((function e(n){var t,o,s,r,i;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=ke.getFieldsValue(),o=t.comment,s=t.score,r=t.attachment_ids,i=!(0,W.isNil)(s),!(o||i||r)){e.next=5;break}return f.Z.confirm({centered:!0,okText:"离开",cancelText:"取消",title:"离开此页提示",content:(0,H.jsx)("div",{className:"tc",children:"系统可能不会保存您所做的更改"}),onOk:function(){ke.resetFields(),"last"===n?h.history.push(ye.get("ids")?"/classrooms/".concat(null==be?void 0:be.coursesId,"/common_homework/").concat(null==be?void 0:be.categoryId,"/review/").concat(null==mn?void 0:mn.student_work_id,"?ids=").concat(ye.get("ids")):"/classrooms/".concat(null==be?void 0:be.coursesId,"/common_homework/").concat(null==be?void 0:be.categoryId,"/review/").concat(null==mn?void 0:mn.student_work_id)):"read"===n?h.history.push(ye.get("ids")?"/classrooms/".concat(null==be?void 0:be.coursesId,"/common_homework/").concat(null==be?void 0:be.categoryId,"/review/").concat(null==an?void 0:an.student_work_id,"?ids=").concat(ye.get("ids")):"/classrooms/".concat(null==be?void 0:be.coursesId,"/common_homework/").concat(null==be?void 0:be.categoryId,"/review/").concat(null==an?void 0:an.student_work_id)):h.history.push("/classrooms/".concat(be.coursesId,"/common_homework/").concat(be.categoryId,"/detail"))}}),e.abrupt("return");case 5:"last"===n?h.history.push(ye.get("ids")?"/classrooms/".concat(null==be?void 0:be.coursesId,"/common_homework/").concat(null==be?void 0:be.categoryId,"/review/").concat(null==mn?void 0:mn.student_work_id,"?ids=").concat(ye.get("ids")):"/classrooms/".concat(null==be?void 0:be.coursesId,"/common_homework/").concat(null==be?void 0:be.categoryId,"/review/").concat(null==mn?void 0:mn.student_work_id)):"read"===n?h.history.push(ye.get("ids")?"/classrooms/".concat(null==be?void 0:be.coursesId,"/common_homework/").concat(null==be?void 0:be.categoryId,"/review/").concat(null==an?void 0:an.student_work_id,"?ids=").concat(ye.get("ids")):"/classrooms/".concat(null==be?void 0:be.coursesId,"/common_homework/").concat(null==be?void 0:be.categoryId,"/review/").concat(null==an?void 0:an.student_work_id)):h.history.push("/classrooms/".concat(be.coursesId,"/common_homework/").concat(be.categoryId,"/detail"));case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),gt=function(){var e=a()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Yn(!0),e.next=3,(0,L.ZP)("/api/homework_commons/".concat(be.categoryId,"/student_works/export_normal_word_all.json"),{method:"post",body:{with_edit:n,with_submit_record:ot}});case 3:0===e.sent.status&&($n(!1),h.history.push("/classrooms/".concat(null==be?void 0:be.coursesId,"/exportlist/normal_work_list"))),Yn(!1);case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),yt=function(e){Yn(!0),(0,U.Nd)("","".concat($.Z.API_SERVER,"/api/student_works/").concat(be.userId,"/export_normal_word_single.json?with_edit=").concat(e,"&with_submit_record=").concat(ot)),Yn(!1),$n(!1)},bt=function(e){Qn(e),Gn("附件"),$n(!0)};return(0,p.useEffect)((function(){null!=Se&&Se.homework_id&&(null!=Se&&Se.prev_work_id?pn({student_work_id:null==Se?void 0:Se.prev_work_id}):pn({last:!0}),null!=Se&&Se.next_work_id?cn({student_work_id:null==Se?void 0:Se.next_work_id}):cn({last:!0}))}),[Se]),(0,p.useEffect)((function(){var e=JSON.parse(localStorage.getItem("all_student_works_param")||"{}");ve({type:"shixunHomeworks/getStudentWorkDetail",payload:d()(d()(d()({},be),e),{},{history_id:ye.get("history_id")||Kn})}),ve({type:"shixunHomeworks/getStudentWorkSupplyDetail",payload:d()({},be)}),_t(),hn.current.onclick=function(e){"IMG"===e.target.nodeName&&""!==e.target.alt&&E.Z.publish("preview-image",e.target.src)}}),[be.categoryId,be.userId]),(0,p.useEffect)((function(){null!=Se&&Se.score_details&&Nn(null==Se?void 0:Se.score_details.map((function(e){return d()(d()({},e),{},{score:""})})))}),[Se]),(0,p.useEffect)((function(){In.every((function(e){return""===e.score}))?jn(!0):jn(!1)}),[In]),(0,p.useEffect)((function(){var e,n;null!=Me&&null!==(e=Me.comment_scores)&&void 0!==e&&e.score_details&&Mn(null==Me||null===(n=Me.comment_scores)||void 0===n||null===(n=n.score_details)||void 0===n?void 0:n.map((function(e){return d()({},e)})))}),[Me]),(0,p.useEffect)((function(){et(ye.get("history_id")||"")}),[ye.get("history_id")]),(0,p.useEffect)((function(){return ve({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:be.categoryId}}),ve({type:"globalSetting/footerToggle",payload:!1}),function(){ve({type:"globalSetting/footerToggle",payload:!0})}}),[]),(0,H.jsxs)("section",{className:"edu-container pb80",ref:hn,children:[(0,H.jsxs)("section",{className:"animated fadeIn",children:[(0,H.jsx)("aside",{className:"mt10",children:Ze&&(0,H.jsxs)(j.Z,{separator:">",children:[(0,H.jsx)(j.Z.Item,{children:(0,H.jsx)(h.Link,{to:"/classrooms/".concat(be.coursesId,"/common_homework/").concat(null!=Se&&null!==(i=Se.category)&&void 0!==i&&i.main?"":null==Se||null===(c=Se.category)||void 0===c?void 0:c.category_id),children:null==Ze||null===(u=Ze.course)||void 0===u?void 0:u.course_name})}),(0,H.jsx)(j.Z.Item,{children:(0,H.jsx)(h.Link,{to:"/classrooms/".concat(be.coursesId,"/common_homework/").concat(null!=Se&&null!==(T=Se.category)&&void 0!==T&&T.main?"":null==Se||null===(te=Se.category)||void 0===te?void 0:te.category_id),children:null==Se||null===(oe=Se.category)||void 0===oe?void 0:oe.category_name})}),(0,H.jsx)(j.Z.Item,{children:(0,H.jsx)(h.Link,{to:"/classrooms/".concat(be.coursesId,"/common_homework/").concat(be.categoryId,"/detail"),children:"作业详情"})}),(0,H.jsx)(j.Z.Item,{children:null==Se?void 0:Se.author_name})]})}),(0,H.jsxs)("aside",{className:[G.title,"mt20"].join(" "),children:[(0,H.jsxs)(v.Z,{style:{width:"100%"},children:[(0,H.jsxs)(g.Z,{flex:"1",children:[(0,H.jsx)(h.Link,{to:"/classrooms/".concat(be.coursesId,"/common_homework"),children:(0,H.jsx)(M.Z,{className:"font16 c-black"})}),(0,H.jsx)("strong",{className:"font20 ml5",children:null==Se?void 0:Se.homework_name}),(0,H.jsx)(U.VV,{status:null==Se?void 0:Se.homework_status})]}),!Kn&&(0,H.jsx)(g.Z,{children:(0,V.dE)()&&(null==Se||null===(le=Se.homework_status)||void 0===le?void 0:le.includes("补交中"))&&(0,H.jsx)("span",{onClick:function(){null==Se||!Se.can_submit||null!=Se&&Se.submit_size?ve({type:"classroomList/setActionTabs",payload:{key:"补交附件",params:be,selectArrs:{homework_id:be.commonHomeworkId,work_id:be.userId}}}):_.ZP.warning("您的作品提交机会已用完。如需继续修改,请联系指导老师或平台运营。")},className:"c-blue current font14",children:"补交附件"})})]}),!Kn&&(0,V.G5)()&&(0,H.jsxs)("div",{style:{display:"flex"},children:[(0,H.jsx)(y.ZP,{className:"mr10",icon:(0,H.jsx)(C.Z,{}),onClick:function(){return bt(!1)},children:"导出答题记录与附件"}),(0,H.jsx)(y.ZP,{icon:(0,H.jsx)(C.Z,{}),onClick:function(){return bt(!0)},children:"导出全部学生答题记录与附件"})]})]})]}),(0,H.jsx)(b.Z,{spinning:He||!!fe["shixunHomeworks/getStudentWorkDetail"]||!!fe["shixunHomeworks/getStudentWorkSupplyDetail"],children:(0,H.jsxs)(w.Z,{className:G.TabsStyle,destroyInactiveTabPane:!0,defaultActiveKey:"1",activeKey:Je,tabBarExtraContent:(0,H.jsx)(H.Fragment,{children:!Kn&&(null==Se?void 0:Se.commit_count)>1&&(0,H.jsx)(y.ZP,{icon:(0,H.jsx)("i",{className:"iconfont icon-tijiaozongjie"}),loading:Pe,onClick:a()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Te({},!0);case 2:xt({key:"提交作品记录"});case 3:case"end":return e.stop()}}),e)}))),children:"提交作品记录"})}),onChange:function(e){Qe(e),"2"==e&&h.history.push("/classrooms/".concat(be.coursesId,"/common_homework/").concat(be.categoryId,"/lab-report-view/").concat(be.userId)),"3"==e&&Be({})},children:[(0,H.jsx)(w.Z.TabPane,{tab:(0,H.jsxs)("span",{style:{position:"relative"},children:["作业详情",Kn&&(0,H.jsxs)("span",{style:{position:"absolute",left:"130%",padding:"3px",background:"rgba(219,243,224,0.88)",color:"#1FBE3C",fontSize:"12px"},children:["第",null==Se?void 0:Se.commit_count,"次提交的作品"]})]}),children:(0,H.jsxs)("div",{className:"pl30 pr30 pb20 bg-white",children:[(0,H.jsxs)("div",{className:"pt20 pb20",style:{borderBottom:"1px solid #DFDFDF"},children:[(0,H.jsx)("div",{className:"font18 blod",children:"作业描述"}),(0,H.jsx)(A.Z,{className:"mt10",value:(null==Oe?void 0:Oe.description)||"暂无~"}),(0,H.jsx)(ne.Z,{authority:(0,V.GJ)(),showDimensions:!1,dataSource:null==Oe?void 0:Oe.attachments,callback:function(){ve({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:be.categoryId}})}})]}),(0,H.jsxs)("div",{className:"mt20",children:[(0,H.jsxs)(v.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,H.jsx)(g.Z,{children:(0,H.jsxs)("span",{className:"font18 blod",children:["学生作业",(0,H.jsx)(k.Z,{title:(0,H.jsx)("span",{className:"font14",children:"(当前支持批注的文档类型:.docx、.xlsx、.pptx)"}),children:(0,H.jsx)("i",{className:"iconfont icon-tishixiaowenhao ml10 font14 c-grey-999 current",style:{lineHeight:"18px"}})})]})}),(0,H.jsxs)(g.Z,{children:[(null==Se?void 0:Se.commit_time)&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)("span",{className:" c-light-black",children:z()(null==Se?void 0:Se.commit_time).format("YYYY-MM-DD HH:mm")}),(0,H.jsx)("span",{className:"ml10",children:null==Se?void 0:Se.commit_user_name}),(0,H.jsx)("span",{className:"ml10 c-light-black",children:"提交"})]}),(null==Se?void 0:Se.update_time)&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)("span",{className:"ml30 c-light-black",children:z()(null==Se?void 0:Se.update_time).format("YYYY-MM-DD HH:mm")}),(0,H.jsx)("span",{className:"ml10",children:null==Se?void 0:Se.update_user_name}),(0,H.jsx)("span",{className:"ml10 c-light-black",children:"更新"})]})]})]}),(0,H.jsx)(A.Z,{className:"mt10",value:(null==Se?void 0:Se.description)||"暂无~"}),(0,H.jsx)(ne.Z,{authority:(0,V.GJ)(),dataSource:null==Se?void 0:Se.attachments,callback:function(){ve({type:"shixunHomeworks/getStudentWorkDetail",payload:d()({},be)})}})]})]})},"1"),!Kn&&(0,V.j5)()&&(0,H.jsx)(w.Z.TabPane,{tab:"实验报告"},"2"),(null==Se?void 0:Se.anonymous_comment)&&!Kn&&(0,H.jsx)(w.Z.TabPane,{tab:"问题反馈",children:(0,H.jsx)("div",{style:{background:"#fff",display:"flex",flexDirection:"column",padding:"10px 30px 30px 30px"},children:(null==Ge||null===(se=Ge.data)||void 0===se?void 0:se.count)>0?(0,H.jsx)(H.Fragment,{children:null==Ge||null===(re=Ge.data)||void 0===re||null===(re=re.list)||void 0===re?void 0:re.map((function(e,n){return(0,H.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:_t,shixunHomeworks:_e},n)}))}):(0,H.jsx)(q.Z,{})})},"3")]})}),((0,V.RV)()||(null==Se||null===(ie=Se.homework_status)||void 0===ie?void 0:ie.includes("匿评中")))&&(0,H.jsxs)("div",{className:"mt20 pt20 pb20 pl30 pr30 bg-white",children:[!Kn&&"1"==Je&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(v.Z,{gutter:20,justify:"end",children:(0,V.GJ)()&&(null==Me?void 0:Me.ultimate)&&(0,H.jsx)(g.Z,{children:(0,H.jsx)(y.ZP,{type:"primary",onClick:function(){xt({key:"调分",selectArrs:Se,id:be.userId,params:be})},children:"调分"})})}),!Me.is_author&&!(null!=Me&&Me.ultimate)&&((0,V.GJ)()||(null==Se||null===(ae=Se.homework_status)||void 0===ae?void 0:ae.includes("匿评中")))&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(x.Z,{form:ke,layout:"vertical",size:"large",style:{position:"relative"},scrollToFirstError:!0,onFinish:function(e){jt(e)},children:[null!=Se&&Se.single_score?(0,H.jsx)(x.Z.Item,{name:"score",label:"评分",rules:[{required:!(0,V.GJ)(),message:"请填写分数"}],children:(0,H.jsx)(I.Z,{step:.1,min:0,style:{width:135},placeholder:"请填写分数",suffix:"分"})}):(0,H.jsx)(x.Z.Item,{name:"score",label:"评分",rules:[{required:!(0,V.GJ)(),message:"请填写分数"}],children:(0,H.jsxs)(g.Z,{span:24,children:[(0,H.jsx)("div",{className:G.ratewarp,children:null==Se||null===(ce=Se.score_details)||void 0===ce?void 0:ce.map((function(e,n){return(0,H.jsxs)("div",{className:G.item,children:[(0,H.jsx)("span",{children:e.name}),(0,H.jsxs)("span",{children:["(满分",e.score,"分)"]}),(0,H.jsx)(I.Z,{min:0,max:e.score,controls:!1,style:{width:135},suffix:"分",onChange:function(e){In[n].score=e||0==e?Number(e.toFixed(2)):"",Nn(r()(In))}})]})}))}),(0,H.jsxs)("div",{className:G.total,children:[(0,H.jsx)("span",{className:G.a1,children:"综合得分"}),(0,H.jsxs)("span",{className:G.a2,children:[fn?"--":ft(In),"分"]}),(0,H.jsx)("span",{className:G.a3,children:"(满分100分)"})]})]})}),(null==Ce?void 0:Ce.is_new_rule)&&(0,V.G5)()&&-1!==Se.work_status&&0!==Se.work_status&&(0,H.jsx)(g.Z,{style:{position:"absolute",right:0,top:14},children:(0,H.jsx)(y.ZP,{type:"primary",onClick:function(){xt({key:"确认打回重做"})},children:" 打回重做 "})}),!(null!=Ce&&Ce.is_new_rule)&&(0,V.G5)()&&["提交中","补交中","进行中"].some((function(e){var n;return null==Se||null===(n=Se.homework_status)||void 0===n?void 0:n.includes(e)}))&&(0,H.jsx)(g.Z,{style:{position:"absolute",right:0,top:14},children:(0,H.jsx)(y.ZP,{type:"primary",onClick:function(){xt({key:"确认打回重做"})},children:" 打回重做 "})}),!(null!=Se&&Se.is_author)&&(0,V.dE)()&&(null==Se||null===(de=Se.homework_status)||void 0===de?void 0:de.includes("匿评中"))&&"review"!==ye.get("review")&&(0,H.jsx)(g.Z,{style:{position:"absolute",right:0,top:14},children:(0,H.jsx)(y.ZP,{type:"primary",onClick:function(){xt({key:"问题反馈"})},children:" 问题反馈 "})}),(0,H.jsx)("div",{onClick:function(){return en(!0)},children:(0,H.jsx)(x.Z.Item,{name:"comment",label:"评语",rules:[{required:!(0,V.GJ)(),message:"请填写分数"}],children:(0,H.jsx)(K.x,{placeholder:"请在此输入对本作品的评语,最大限制2000个字符",isEdit:Ke})})}),(0,H.jsx)(x.Z.Item,{name:"attachment_ids",children:(0,H.jsx)(R.Z,{})}),(0,V.GJ)()&&(0,H.jsx)("div",{onClick:function(){return ln(!0)},children:(0,H.jsx)(x.Z.Item,{label:"仅课堂老师可见",name:"hidden_comment",children:(0,H.jsx)(K.x,{placeholder:"请输入评语",isEdit:on})})})]}),(0,H.jsxs)("div",{className:"".concat(G.buttonFixed),children:[" ",(0,H.jsx)("div",{className:"edu-container",children:(0,H.jsxs)(v.Z,{wrap:!1,justify:"space-between",align:"middle",children:[(0,H.jsxs)(g.Z,{children:[" ",(0,H.jsx)(y.ZP,{onClick:function(){return vt("list")},children:" 返回列表 "})," "]}),(0,H.jsxs)(g.Z,{children:[(0,H.jsx)(y.ZP,{onClick:function(){return vt("last")},disabled:null==mn?void 0:mn.last,children:" 上一个 "}),(0,H.jsx)(y.ZP,{className:"ml20",disabled:null==an?void 0:an.last,onClick:function(){return vt("read")},children:" 下一个 "}),(0,H.jsx)(y.ZP,{className:"ml20",loading:Ln,type:"primary",onClick:function(){ke.submit()},children:" 提交评阅 "})]})]})})]})]})]}),(0,H.jsx)(ee.tp,{dataSource:ht,value:null==ut?void 0:ut.status,onChange:function(e){mt(d()(d()({},ut),{},{status:e}))}}),(0,H.jsxs)("div",{className:"mt20 p20",style:{background:"#F6F7F9",display:"flex",flexDirection:"column",gap:"20px"},children:[!(null!==(ue=0==(null==ut?void 0:ut.status)?null==Me?void 0:Me.comment_scores:null==Me?void 0:Me.hidden_comment_scores)&&void 0!==ue&&ue.length)&&(0,H.jsx)(q.Z,{styles:{margin:"50px auto"}}),null===(pe=0==(null==ut?void 0:ut.status)?null==Me?void 0:Me.comment_scores:null==Me?void 0:Me.hidden_comment_scores)||void 0===pe?void 0:pe.map((function(e,n){return(0,H.jsx)(me,{index:n,type:1==ut.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:_t,shixunHomeworks:_e},n)}))]})]}),"1"==Je&&(null==Se?void 0:Se.anonymous_comment)&&(0,V.G5)()&&(0,H.jsxs)("section",{className:"bg-white mt30 p30",children:[(0,H.jsx)("p",{children:"匿评学生"}),!(null==Se||null===(he=Se.no_commented_user_names)||void 0===he||!he.length)&&(0,H.jsxs)("p",{children:["未完成匿评:",null==Se?void 0:Se.no_commented_user_names.join("、")]}),(0,H.jsxs)("div",{children:["已完成匿评:",null==Se||null===(xe=Se.commented_user_names)||void 0===xe?void 0:xe.join("、")]})]}),Kn&&(0,H.jsxs)("div",{className:"".concat(G.buttonFixed),children:[" ",(0,H.jsx)("div",{className:"edu-container",children:(0,H.jsx)(v.Z,{wrap:!1,justify:"space-between",align:"middle",children:(0,H.jsxs)(g.Z,{children:[(0,H.jsx)(y.ZP,{onClick:function(){h.history.push("/classrooms/".concat(null==be?void 0:be.coursesId,"/common_homework/").concat(null==be?void 0:be.categoryId,"/detail"))},children:" 返回列表 "})," "]})})})]}),(0,H.jsx)(B,{}),(0,H.jsx)(Y,{studentWorkDetail:Se}),(0,H.jsx)(O.Z,{}),(0,H.jsx)(f.Z,{title:"确认打回重做",open:"确认打回重做"==(null==Le?void 0:Le.key),destroyOnClose:!0,forceRender:!0,width:700,onCancel:function(){xt()},onOk:a()(l()().mark((function e(){var n;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(yn){e.next=3;break}return _.ZP.info("评语不能为空"),e.abrupt("return");case 3:return e.next=5,(0,L.ZP)("/api/student_works/".concat(be.userId,"/redo_modal.json"),{method:"post",body:{comment:yn,id:be.userId}});case 5:0===(null==(n=e.sent)?void 0:n.status)&&(_.ZP.info("打回重做成功"),xt(),_t());case 7:case"end":return e.stop()}}),e)}))),children:(0,H.jsxs)("div",{style:{padding:"32px"},children:[(0,H.jsxs)("span",{children:["确认将",null==Se?void 0:Se.author_name,"的作业打回重做吗"]}),(0,H.jsxs)("div",{style:{marginTop:"20px"},children:[(0,H.jsxs)("label",{children:[(0,H.jsx)("span",{style:{marginRight:"5px",color:"red"},children:"*"}),"评语:"]}),(0,H.jsx)(D.Z,{className:G.MdEditor,onChange:function(e){return bn(e)},defaultValue:"",height:250})]})]})}),(0,H.jsx)(P.Z,{close:!0,data:null==it?void 0:it.content,type:null==it?void 0:it.type,hasMask:!0,monacoEditor:{value:En.current,language:"txt",onChange:function(){},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onClose:function(){return at({content:"",type:""})}}),(0,H.jsxs)(f.Z,{width:675,title:"请选择需要导出的格式",open:zn,confirmLoading:Rn,centered:!0,onCancel:function(){return $n(!1)},onOk:function(){"附件"==Bn?Jn?gt(!1):yt(!1):"批注"==Bn&&(Jn?gt(!0):yt(!0))},children:[(0,H.jsx)(N.Z,{checked:ot,onChange:function(e){lt(e.target.checked)},children:"同时导出学生提交记录"}),(0,H.jsx)("div",{className:G.export_type_modal_title,children:"请选择需要导出的附件类型"}),(0,H.jsxs)("div",{className:G.export_type_modal,children:[(0,H.jsxs)("div",{className:G.export_type_modal_con,children:[(0,H.jsxs)("div",{className:"".concat(G.type_item," ").concat("附件"==Bn?G.type_item_active:""),onClick:function(){return Gn("附件")},children:[(0,H.jsx)("div",{className:"".concat(G.img_warp),children:(0,H.jsx)("img",{src:J.Z,width:72,height:80})}),(0,H.jsx)("span",{children:"学生提交的附件"})]}),(0,H.jsxs)("div",{className:"".concat(G.type_item," ").concat("批注"==Bn?G.type_item_active:""),onClick:function(){return Gn("批注")},children:[(0,H.jsx)("div",{className:"".concat(G.img_warp),children:(0,H.jsx)("img",{src:Q.Z,width:99,height:80})}),(0,H.jsx)("span",{children:"包含批注内容的附件"})]})]}),(0,H.jsx)("div",{className:G.export_type_modal_waring,children:"如学生未上传附件,仅会导出该学生提交的答题记录"})]})]}),(0,H.jsx)(f.Z,{title:null==Le?void 0:Le.key,open:"提交作品记录"==(null==Le?void 0:Le.key),centered:!0,destroyOnClose:!0,width:969,footer:null,onCancel:function(){return xt()},children:(0,H.jsx)(Z.Z,{locale:{emptyText:(0,H.jsx)(q.Z,{})},columns:pt,dataSource:null==ze?void 0:ze.student_works,pagination:!1})}),(0,H.jsx)(f.Z,{title:null==Le?void 0:Le.key,open:"问题反馈"==(null==Le?void 0:Le.key),centered:!0,destroyOnClose:!0,width:640,onCancel:function(){xt()},confirmLoading:Re,onOk:function(){Ne.submit()},children:(0,H.jsxs)(x.Z,{form:Ne,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,Ye({student_work_feedback:d()({},n)});case 2:0==(null==(t=e.sent)?void 0:t.status)&&(_.ZP.success("提交成功"),xt(),_t());case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,H.jsx)(x.Z.Item,{name:"content",rules:[{required:!0,message:"请输入内容"}],children:(0,H.jsx)(S.Z.TextArea,{rows:4,placeholder:"例如:作品提交的附件不清晰",maxLength:200})}),(0,H.jsx)(x.Z.Item,{noStyle:!0,children:" 如果作品无法匿评,请描述问题并点击“确定”按钮进行反馈。反馈后系统将不会扣除缺评分数。"})]})})]})}))},9515: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+"},66134: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+"},26194: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(29541),r=t(68073),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<o.length;l++)n.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(t[o[l]]=e[o[l]])}return t};function x(e,n,t,o){if(null==t)return null;const{className:s,onClick:a}=n,c=h(n,["className","onClick"]),d=Object.assign(Object.assign({},(0,r.Z)(c,{data:!0,aria:!0})),{onClick:a});return void 0!==o?i.createElement("a",Object.assign({},d,{className:l()(`${e}-link`,s),href:o}),t):i.createElement("span",Object.assign({},d,{className:l()(`${e}-link`,s)}),t)}function _(e,n){return(t,o,l,s,r)=>{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<o.length;l++)n.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(t[o[l]]=e[o[l]])}return t};const j=e=>{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<o.length;l++)n.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(t[o[l]]=e[o[l]])}return t};function Z(e){const{breadcrumbName:n,children:t}=e,o=N(e,["breadcrumbName","children"]),l=Object.assign({title:n},o);return t&&(l.menu={items:t.map((e=>{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<o.length;l++)n.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(t[o[l]]=e[o[l]])}return t};const M=e=>{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(29541),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<o.length;l++)n.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(t[o[l]]=e[o[l]])}return t};function h(e,n,t){const l=o.useMemo((()=>{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<l?(l-=a,o.push(s)):(o.push(x(s,l,a)),t.push(o),l=n,o=[])})),t}(n,e)),[n,e]);var f=e=>{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<o.length;l++)n.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(t[o[l]]=e[o[l]])}return t};const M=e=>{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}}]); |