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

1 line
44 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[27395,72114,2755,7182],{89136:function(e,n,t){t.d(n,{Z:function(){return a}});var l=t(4751),s=t(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},i=t(68475),r=function(e,n){return s.createElement(i.Z,(0,l.Z)({},e,{ref:n,icon:o}))};var a=s.forwardRef(r)},78856:function(e,n,t){t.r(n),t.d(n,{default:function(){return J}});var l=t(7557),s=t.n(l),o=t(41498),i=t.n(o),r=t(82242),a=t.n(r),c=t(79800),d=t.n(c),u=t(59301),m=t(99232),v=t.n(m),x=t(65233),p=t(99313),h=t(66104),f=t(38854),_=t(20834),g=t(81327),j=t(27786),y="bg____UUAK",b="title___dswVh",N="img___GOFvI",k="right___T8moz",w="top___HMulK",S="spanfont___Xd5h3",C="bottom___fIm8n",O="rightdiv___dgVbw",I="fonttitle___WMXHQ",E="ling___p5e5D",A="content___FMX97",D="bgs___YrOYH",P="contenttitle___ygEAp",Z="titlecoent___I48Sy",L="es___ECmKO",M=t(43501),z=t(14491),F=t(53864),T=t(37712);v().locale("zh-cn");p.Z.TabPane;var $=[{text:"未开启",color:"#272A3A"},{text:"未通关",color:"#E30000"},{text:"按时通关",color:"#038D00"},{text:"迟交通关",color:"#0152D9"}],R=(0,x.connect)((function(e){var n=e.classroomList,t=e.loading;return{classroomList:n,globalSetting:e.globalSetting,loading:t}}))((function(e){e.classroomList,e.globalSetting,e.loading;var n,t,l=e.activitykey,o=(e.dispatch,(0,u.useState)(a()(a()({},(0,x.useParams)()),{},{page:1,type:4,limit:10}))),r=d()(o,2),c=r[0],m=r[1],v=(0,u.useState)([]),p=d()(v,2),h=p[0],f=p[1];function _(e){return g.apply(this,arguments)}function g(){return g=i()(s()().mark((function e(n){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,j.ZP)("/api/courses/".concat(null==n?void 0:n.coursesId,"/course_members/").concat(n.login,"/learning_statistics"),{method:"get",params:n});case 2:t=e.sent,m(a()({},n)),t&&f(t);case 5:case"end":return e.stop()}}),e)}))),g.apply(this,arguments)}(0,u.useEffect)((function(){"1"===l&&_(a()({},c))}),[l]);var y=[{title:(0,T.jsx)("div",{style:{marginLeft:12},children:"实验名称"}),dataIndex:"name",key:"name",ellipsis:!0,width:"30%",render:function(e,n){return(0,T.jsx)("a",{href:null!=n&&n.is_export_type?"/classrooms/".concat(null==c?void 0:c.coursesId,"/shixun_homework/").concat(null==n?void 0:n.id,"/detail"):"/classrooms/".concat(null==c?void 0:c.coursesId,"/shixun_homework/").concat(null==n?void 0:n.id,"/").concat(null==n?void 0:n.student_work_id,"/comment"),target:"_blank",style:{marginLeft:12},children:e})}},{title:"作业状态",dataIndex:"work_status",key:"work_status",render:function(e,n){var t,l;return null!=n&&n.is_export_type?"导入成绩":-1===e?(0,T.jsx)("span",{style:{color:"#FF9D18"},children:"重做中"}):(0,T.jsx)("span",{style:{color:null===(t=$[e])||void 0===t?void 0:t.color},children:null===(l=$[e])||void 0===l?void 0:l.text})}},{title:"评测次数",dataIndex:"sum_evaluate_count",align:"center",key:"sum_evaluate_count"},{title:"通关情况",dataIndex:"current_complete_count",align:"center",key:"current_complete_count",render:function(e,n){return(0,T.jsx)("span",{children:e+"/"+(null==n?void 0:n.complete_count)})}},{title:"最终成绩",dataIndex:"work_score",align:"center",key:"address",render:function(e){return(0,T.jsx)("span",{style:{color:100===parseInt(e)?"#FF6800":"#E30000"},children:e})}},{title:"评阅状态",dataIndex:"has_comment",align:"center",key:"address",render:function(e){return(0,T.jsx)("span",{children:e?"已评阅":"未评阅"})}}],b=h.table_data,N=h.score_type;return(0,T.jsxs)("section",{className:D,children:[(0,T.jsxs)("div",{className:P,children:[2===N&&(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#0152D9"},children:(null==b||null===(n=b.final_total_score)||void 0===n?void 0:n.toFixed(2))||0}),(0,T.jsx)("div",{children:"最终占比得分"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#0152D9"},children:(null==b||null===(t=b.total_score)||void 0===t?void 0:t.toFixed(2))||0}),(0,T.jsx)("div",{children:"作业总成绩"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#272A3A"},children:(null==b?void 0:b.total_count)||0}),(0,T.jsx)("div",{children:"全部实验数"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#9A9DAD"},children:null==b?void 0:b.unstart_count}),(0,T.jsx)("div",{children:"未开启"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#E30000"},children:null==b?void 0:b.uncompelete_count}),(0,T.jsx)("div",{children:"未通关"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#038D00"},children:null==b?void 0:b.opportune_compelete_count}),(0,T.jsx)("div",{children:"按时通关"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#0152D9"},children:null==b?void 0:b.late_compelete_count}),(0,T.jsx)("div",{children:"迟交通关"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#FF7314"},children:null==b?void 0:b.total_export_score_count}),(0,T.jsx)("div",{children:"导入成绩"})]}),(0,T.jsx)("div",{className:E}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#0152D9"},children:null==b?void 0:b.total_challenges_count}),(0,T.jsx)("div",{children:"全部关卡"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#038D00"},children:null==b?void 0:b.compelete_count}),(0,T.jsx)("div",{children:"已过关"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#272A3A"},children:(null==b?void 0:b.total_evaluate_count)||0}),(0,T.jsx)("div",{children:"评测次数"})]})]}),(0,T.jsx)(z.Z,{columns:y,dataSource:null==b?void 0:b.list,pagination:!1}),(0,T.jsx)(F.Z,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(e){c.page=e,_(c)},current:null==c?void 0:c.page,total:null==b?void 0:b.total_count})]})}));v().locale("zh-cn");p.Z.TabPane;var B=[{text:"未开始",color:"#272A3A"},{text:"考试中",color:"#0152D9"},{text:"已交卷",color:"#038D00"},{text:"已交卷/未答",color:"#038D00"}],X=(0,x.connect)((function(e){var n=e.classroomList,t=e.loading;return{classroomList:n,globalSetting:e.globalSetting,loading:t}}))((function(e){e.classroomList,e.globalSetting,e.loading;var n,t,l=e.activitykey,o=(e.dispatch,(0,u.useState)(a()(a()({},(0,x.useParams)()),{},{page:1,type:5,limit:10}))),r=d()(o,2),c=r[0],m=r[1],v=(0,u.useState)([]),p=d()(v,2),h=p[0],f=p[1];function _(e){return g.apply(this,arguments)}function g(){return g=i()(s()().mark((function e(n){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,j.ZP)("/api/courses/".concat(null==n?void 0:n.coursesId,"/course_members/").concat(n.login,"/learning_statistics"),{method:"get",params:n});case 2:t=e.sent,m(a()({},n)),t&&f(t);case 5:case"end":return e.stop()}}),e)}))),g.apply(this,arguments)}(0,u.useEffect)((function(){"4"===l&&_(a()({},c))}),[l]);var y=[{title:(0,T.jsx)("div",{style:{marginLeft:12},children:"考试名称"}),dataIndex:"name",key:"name",ellipsis:!0,width:"36%",render:function(e,n){return(0,T.jsx)("a",{href:null!=n&&n.is_export_type?"/classrooms/".concat(null==c?void 0:c.coursesId,"/exercise/").concat(null==n?void 0:n.id,"/detail"):"/classrooms/".concat(null==c?void 0:c.coursesId,"/exercise/").concat(null==n?void 0:n.id,"/review/").concat(c.login),target:"_blank",style:{marginLeft:12},children:e})}},{title:"提交状态",dataIndex:"commit_status",key:"commit_status",width:"11%",render:function(e,n){var t,l;return null!=n&&n.is_export_type?"导入成绩":(0,T.jsx)("span",{style:{color:null===(t=B[e])||void 0===t?void 0:t.color},children:null===(l=B[e])||void 0===l?void 0:l.text})}},{title:"提交时间",dataIndex:"end_at",key:"end_at",width:"27%",render:function(e){return(0,T.jsx)("span",{children:e})}},{title:"最终成绩",dataIndex:"score",key:"score",width:"11%"},{title:"评阅状态",dataIndex:"has_comment",align:"center",key:"address",width:"15%",render:function(e){return(0,T.jsx)("span",{children:e?"已评阅":"未评阅"})}}],b=h.table_data,N=h.score_type;return(0,T.jsxs)("section",{className:D,children:[(0,T.jsxs)("div",{className:P,children:[2===N&&(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#0152D9"},children:(null==b||null===(n=b.final_total_score)||void 0===n?void 0:n.toFixed(2))||0}),(0,T.jsx)("div",{children:"最终占比得分"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#0152D9"},children:null===(t=parseFloat(null==b?void 0:b.total_score))||void 0===t?void 0:t.toFixed(2)}),(0,T.jsx)("div",{children:"考试总成绩"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#272A3A"},children:null==b?void 0:b.total_count}),(0,T.jsx)("div",{children:"全部考试"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#9A9DAD"},children:null==b?void 0:b.total_unstart_count}),(0,T.jsx)("div",{children:"未开始"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#0152D9"},children:null==b?void 0:b.total_examing_count}),(0,T.jsx)("div",{children:"考试中"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsxs)("div",{className:I,style:{color:"#038D00"},children:[null==b?void 0:b.total_commit_count,(0,T.jsxs)("span",{style:{color:"#272A3A"},children:["/",null==b?void 0:b.total_uncommit_count]})]}),(0,T.jsx)("div",{children:"已交卷/未答"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#FF7314"},children:(null==b?void 0:b.total_export_score_count)||0}),(0,T.jsx)("div",{children:"导入成绩"})]})]}),(0,T.jsx)(z.Z,{columns:y,dataSource:null==b?void 0:b.list,pagination:!1}),(0,T.jsx)(F.Z,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(e){c.page=e,_(c)},current:null==c?void 0:c.page,total:null==b?void 0:b.total_count})]})}));v().locale("zh-cn");p.Z.TabPane;var H=[{text:"未提交",color:"#272A3A"},{text:"按时提交",color:"#038D00"},{text:"延时提交",color:"#0152D9"}],Q=(0,x.connect)((function(e){var n=e.classroomList,t=e.loading;return{classroomList:n,globalSetting:e.globalSetting,loading:t}}))((function(e){e.classroomList,e.globalSetting,e.loading;var n,t,l=e.activitykey,o=(e.dispatch,(0,u.useState)(a()(a()({},(0,x.useParams)()),{},{page:1,type:1,limit:10}))),r=d()(o,2),c=r[0],m=r[1],v=(0,u.useState)([]),p=d()(v,2),h=p[0],f=p[1];function _(e){return g.apply(this,arguments)}function g(){return g=i()(s()().mark((function e(n){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,j.ZP)("/api/courses/".concat(null==n?void 0:n.coursesId,"/course_members/").concat(n.login,"/learning_statistics"),{method:"get",params:n});case 2:t=e.sent,m(a()({},n)),t&&f(t);case 5:case"end":return e.stop()}}),e)}))),g.apply(this,arguments)}(0,u.useEffect)((function(){"2"===l&&_(a()({},c))}),[l]);var y=[{title:(0,T.jsx)("div",{style:{marginLeft:12},children:"作业名称"}),dataIndex:"name",key:"name",ellipsis:!0,width:"30%",render:function(e,n){return(0,T.jsx)("a",{href:null!=n&&n.is_export_type?"/classrooms/".concat(null==c?void 0:c.coursesId,"/common_homework/").concat(null==n?void 0:n.id,"/detail"):"/classrooms/".concat(null==c?void 0:c.coursesId,"/common_homework/").concat(null==n?void 0:n.id,"/review/").concat(null==n?void 0:n.student_work_id),target:"_blank",style:{marginLeft:12},children:e})}},{title:"作业状态",dataIndex:"work_status",key:"work_status",render:function(e,n){var t,l;return null!=n&&n.is_export_type?"导入成绩":-1===e?(0,T.jsx)("span",{style:{color:"#FF9D18"},children:"重做中"}):(0,T.jsx)("span",{style:{color:null===(t=H[e])||void 0===t?void 0:t.color},children:null===(l=H[e])||void 0===l?void 0:l.text})}},{title:"打回次数",dataIndex:"redo_count",key:"redo_count"},{title:"更新时间",dataIndex:"update_time",key:"update_time",render:function(e){return(0,T.jsx)("span",{children:e||"- -"})}},{title:"教师评分",dataIndex:"teacher_score",key:"teacher_score"},{title:"助教评分",dataIndex:"teaching_asistant_score",key:"teaching_asistant_score"},{title:"当前成绩",dataIndex:"work_score",key:"address"},{title:"评阅状态",dataIndex:"has_comment",align:"center",key:"address",render:function(e){return(0,T.jsx)("span",{children:e?"已评阅":"未评阅"})}}],b=h.table_data,N=h.score_type;return(0,T.jsxs)("section",{className:D,children:[(0,T.jsxs)("div",{className:P,children:[2===N&&(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#0152D9"},children:(null==b||null===(n=b.final_total_score)||void 0===n?void 0:n.toFixed(2))||0}),(0,T.jsx)("div",{children:"最终占比得分"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#0152D9"},children:(null==b||null===(t=b.total_score)||void 0===t?void 0:t.toFixed(2))||0}),(0,T.jsx)("div",{children:"作业总成绩"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#272A3A"},children:(null==b?void 0:b.total_count)||0}),(0,T.jsx)("div",{children:"全部作业"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#9A9DAD"},children:(null==b?void 0:b.total_uncommit_count)||0}),(0,T.jsx)("div",{children:"未提交"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#038D00"},children:(null==b?void 0:b.total_commit_count)||0}),(0,T.jsx)("div",{children:"按时提交"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#0152D9"},children:(null==b?void 0:b.total_late_commit_count)||0}),(0,T.jsx)("div",{children:"延时提交"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#FF9D18"},children:(null==b?void 0:b.total_redos_count)||0}),(0,T.jsx)("div",{children:"重做中"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#272A3A"},children:(null==b?void 0:b.total_returns_count)||0}),(0,T.jsx)("div",{children:"打回总次数"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#FF7314"},children:(null==b?void 0:b.total_export_score_count)||0}),(0,T.jsx)("div",{children:"导入成绩"})]})]}),(0,T.jsx)(z.Z,{columns:y,dataSource:null==b?void 0:b.list,pagination:!1}),(0,T.jsx)(F.Z,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(e){c.page=e,_(c)},current:null==c?void 0:c.page,total:null==b?void 0:b.total_count})]})}));v().locale("zh-cn");p.Z.TabPane;var U=[{text:"未提交",color:"#272A3A"},{text:"按时提交",color:"#038D00"},{text:"延时提交",color:"#0152D9"}],K=(0,x.connect)((function(e){var n=e.classroomList,t=e.loading;return{classroomList:n,globalSetting:e.globalSetting,loading:t}}))((function(e){e.classroomList,e.globalSetting,e.loading;var n,t,l=e.activitykey,o=(e.dispatch,(0,u.useState)(a()(a()({},(0,x.useParams)()),{},{page:1,type:3,limit:10}))),r=d()(o,2),c=r[0],m=r[1],v=(0,u.useState)([]),p=d()(v,2),h=p[0],f=p[1];function _(e){return g.apply(this,arguments)}function g(){return g=i()(s()().mark((function e(n){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,j.ZP)("/api/courses/".concat(null==n?void 0:n.coursesId,"/course_members/").concat(n.login,"/learning_statistics"),{method:"get",params:n});case 2:t=e.sent,m(a()({},n)),t&&f(t);case 5:case"end":return e.stop()}}),e)}))),g.apply(this,arguments)}(0,u.useEffect)((function(){"3"===l&&_(a()({},c))}),[l]);var y=[{title:(0,T.jsx)("div",{style:{marginLeft:12},children:"作业名称"}),dataIndex:"name",key:"name",ellipsis:!0,width:"30%",render:function(e,n){return(0,T.jsx)("a",{href:null!=n&&n.is_export_type?"/classrooms/".concat(null==c?void 0:c.coursesId,"/group_homework/").concat(null==n?void 0:n.id,"/detail"):"/classrooms/".concat(null==c?void 0:c.coursesId,"/group_homework/").concat(null==n?void 0:n.id,"/review/").concat(null==n?void 0:n.student_work_id),target:"_blank",style:{marginLeft:12},children:e})}},{title:"分组",dataIndex:"work_group",key:"work_group",render:function(e){return(0,T.jsx)("span",{children:e})}},{title:"作业状态",dataIndex:"work_status",key:"work_status",render:function(e,n){var t,l;return null!=n&&n.is_export_type?"导入成绩":-1===e?(0,T.jsx)("span",{style:{color:"#FF9D18"},children:"重做中"}):(0,T.jsx)("span",{style:{color:null===(t=U[e])||void 0===t?void 0:t.color},children:null===(l=U[e])||void 0===l?void 0:l.text})}},{title:"打回次数",dataIndex:"redo_count",key:"redo_count"},{title:"更新时间",dataIndex:"update_time",key:"update_time",render:function(e){return(0,T.jsx)("span",{children:e||"- -"})}},{title:"教师评分",dataIndex:"teacher_score",key:"teacher_score"},{title:"助教评分",dataIndex:"teaching_asistant_score",key:"teaching_asistant_score"},{title:"当前成绩",dataIndex:"work_score",key:"address"},{title:"评阅状态",dataIndex:"has_comment",align:"center",key:"address",render:function(e){return(0,T.jsx)("span",{children:e?"已评阅":"未评阅"})}}],b=h.table_data,N=h.score_type;return(0,T.jsxs)("section",{className:D,children:[(0,T.jsxs)("div",{className:P,children:[2===N&&(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#0152D9"},children:(null==b||null===(n=b.final_total_score)||void 0===n?void 0:n.toFixed(2))||0}),(0,T.jsx)("div",{children:"最终占比得分"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#0152D9"},children:(null==b||null===(t=b.total_score)||void 0===t?void 0:t.toFixed(2))||0}),(0,T.jsx)("div",{children:"作业总成绩"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#272A3A"},children:(null==b?void 0:b.total_count)||0}),(0,T.jsx)("div",{children:"全部作业"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#9A9DAD"},children:(null==b?void 0:b.total_uncommit_count)||0}),(0,T.jsx)("div",{children:"未提交"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#038D00"},children:(null==b?void 0:b.total_commit_count)||0}),(0,T.jsx)("div",{children:"按时提交"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#0152D9"},children:(null==b?void 0:b.total_late_commit_count)||0}),(0,T.jsx)("div",{children:"延时提交"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#FF9D18"},children:(null==b?void 0:b.total_redos_count)||0}),(0,T.jsx)("div",{children:"重做中"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#272A3A"},children:(null==b?void 0:b.total_returns_count)||0}),(0,T.jsx)("div",{children:"打回总次数"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#FF7314"},children:(null==b?void 0:b.total_export_score_count)||0}),(0,T.jsx)("div",{children:"导入成绩"})]})]}),(0,T.jsx)(z.Z,{columns:y,dataSource:null==b?void 0:b.list,pagination:!1}),(0,T.jsx)(F.Z,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(e){c.page=e,_(c)},current:null==c?void 0:c.page,total:null==b?void 0:b.total_count})]})}));v().locale("zh-cn");p.Z.TabPane;var V=[{text:"未开启",color:"#272A3A"},{text:"未通关",color:"#E30000"},{text:"按时通关",color:"#038D00"},{text:"迟交通关",color:"#0152D9"}],q=(0,x.connect)((function(e){var n=e.classroomList,t=e.loading;return{classroomList:n,globalSetting:e.globalSetting,loading:t}}))((function(e){e.classroomList,e.globalSetting,e.loading;var n,t,l=e.activitykey,o=(e.dispatch,(0,u.useState)(a()(a()({},(0,x.useParams)()),{},{page:1,type:6,limit:10}))),r=d()(o,2),c=r[0],m=r[1],v=(0,u.useState)([]),p=d()(v,2),h=p[0],f=p[1];function _(e){return g.apply(this,arguments)}function g(){return g=i()(s()().mark((function e(n){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,j.ZP)("/api/courses/".concat(null==n?void 0:n.coursesId,"/course_members/").concat(n.login,"/learning_statistics"),{method:"get",params:n});case 2:t=e.sent,m(a()({},n)),t&&f(t);case 5:case"end":return e.stop()}}),e)}))),g.apply(this,arguments)}(0,u.useEffect)((function(){"5"===l&&_(a()({},c))}),[l]);var y=[{title:(0,T.jsx)("div",{style:{marginLeft:12},children:"实验名称"}),dataIndex:"name",key:"name",ellipsis:!0,width:"30%",render:function(e,n){return(0,T.jsx)("a",{href:null!=n&&n.is_export_type?"/classrooms/".concat(null==c?void 0:c.coursesId,"/program_homework/").concat(null==n?void 0:n.id,"/detail"):"/classrooms/".concat(null==c?void 0:c.coursesId,"/program_homework/").concat(null==n?void 0:n.id,"/").concat(null==n?void 0:n.student_work_id,"/comment"),target:"_blank",style:{marginLeft:12},children:e})}},{title:"作业状态",dataIndex:"work_status",key:"work_status",render:function(e,n){var t,l;return null!=n&&n.is_export_type?"导入成绩":-1===e?(0,T.jsx)("span",{style:{color:"#FF9D18"},children:"重做中"}):(0,T.jsx)("span",{style:{color:null===(t=V[e])||void 0===t?void 0:t.color},children:null===(l=V[e])||void 0===l?void 0:l.text})}},{title:"评测次数",dataIndex:"sum_evaluate_count",align:"center",key:"sum_evaluate_count"},{title:"通关情况",dataIndex:"current_complete_count",align:"center",key:"current_complete_count",render:function(e,n){return(0,T.jsx)("span",{children:e+"/"+(null==n?void 0:n.complete_count)})}},{title:"最终成绩",dataIndex:"work_score",align:"center",key:"address",render:function(e){return(0,T.jsx)("span",{style:{color:100===parseInt(e)?"#FF6800":"#E30000"},children:e})}},{title:"评阅状态",dataIndex:"has_comment",align:"center",key:"address",render:function(e){return(0,T.jsx)("span",{children:e?"已评阅":"未评阅"})}}],b=h.table_data,N=h.score_type;return(0,T.jsxs)("section",{className:D,children:[(0,T.jsxs)("div",{className:P,children:[2===N&&(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#0152D9"},children:(null==b||null===(n=b.final_total_score)||void 0===n?void 0:n.toFixed(2))||0}),(0,T.jsx)("div",{children:"最终占比得分"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#0152D9"},children:(null==b||null===(t=b.total_score)||void 0===t?void 0:t.toFixed(2))||0}),(0,T.jsx)("div",{children:"作业总成绩"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#272A3A"},children:(null==b?void 0:b.total_count)||0}),(0,T.jsx)("div",{children:"全部实验数"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#9A9DAD"},children:null==b?void 0:b.unstart_count}),(0,T.jsx)("div",{children:"未开启"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#E30000"},children:null==b?void 0:b.uncompelete_count}),(0,T.jsx)("div",{children:"未通关"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#038D00"},children:null==b?void 0:b.opportune_compelete_count}),(0,T.jsx)("div",{children:"按时通关"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#0152D9"},children:null==b?void 0:b.late_compelete_count}),(0,T.jsx)("div",{children:"迟交通关"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#FF7314"},children:null==b?void 0:b.total_export_score_count}),(0,T.jsx)("div",{children:"导入成绩"})]}),(0,T.jsx)("div",{className:E}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#0152D9"},children:null==b?void 0:b.total_challenges_count}),(0,T.jsx)("div",{children:"全部关卡"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#038D00"},children:null==b?void 0:b.compelete_count}),(0,T.jsx)("div",{children:"已过关"})]}),(0,T.jsxs)("div",{className:Z,children:[(0,T.jsx)("div",{className:I,style:{color:"#272A3A"},children:(null==b?void 0:b.total_evaluate_count)||0}),(0,T.jsx)("div",{children:"评测次数"})]})]}),(0,T.jsx)(z.Z,{columns:y,dataSource:null==b?void 0:b.list,pagination:!1}),(0,T.jsx)(F.Z,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(e){c.page=e,_(c)},current:null==c?void 0:c.page,total:null==b?void 0:b.total_count})]})})),G=t(17985),W=t(33287);v().locale("zh-cn");var Y=p.Z.TabPane,J=(0,x.connect)((function(e){var n=e.classroomList,t=e.loading;return{classroomList:n,globalSetting:e.globalSetting,loading:t}}))((function(e){var n,t,l,o,r,c,m,v,D,P,Z,z,F,$,B=e.classroomList,H=(e.globalSetting,e.loading,e.dispatch),U=(0,u.useState)(a()(a()({},(0,x.useParams)()),{},{page:1,type:4})),V=d()(U,2),J=V[0],ee=V[1],ne=(0,u.useState)(),te=d()(ne,2),le=te[0],se=te[1],oe=(0,u.useState)(),ie=d()(oe,2),re=ie[0],ae=ie[1],ce=(0,u.useState)(),de=d()(ce,2),ue=de[0],me=de[1];(0,x.useLocation)();function ve(){return ve=i()(s()().mark((function e(n){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,j.ZP)("/api/courses/".concat(null==n?void 0:n.coursesId,"/course_members/").concat(n.login,"/learning_statistics"),{method:"get",params:n});case 2:t=e.sent,ee(a()({},n)),t&&se(t);case 5:case"end":return e.stop()}}),e)}))),ve.apply(this,arguments)}function xe(){return xe=i()(s()().mark((function e(n){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,j.ZP)("/api/courses/".concat(null==n?void 0:n.coursesId,"/students.json"),{method:"get",params:a()({limit:2e3},n)});case 2:(t=e.sent)&&ae(t);case 4:case"end":return e.stop()}}),e)}))),xe.apply(this,arguments)}(0,u.useEffect)((function(){!function(e){ve.apply(this,arguments)}(a()({},J)),function(e){xe.apply(this,arguments)}(a()({},J)),H({type:"classroomList/getClassroomLeftMenus",payload:a()({},J)})}),[]),(0,u.useEffect)((function(){var e,n,t,l,s;null!=B&&null!==(e=B.detailLeftMenus)&&void 0!==e&&null!==(e=e.course_modules)&&void 0!==e&&e.map((function(e){return e.type})).find((function(e){return"shixun_homework"===e}))?me("1"):null!=B&&null!==(n=B.detailLeftMenus)&&void 0!==n&&null!==(n=n.course_modules)&&void 0!==n&&n.map((function(e){return e.type})).find((function(e){return"common_homework"===e}))?me("2"):null!=B&&null!==(t=B.detailLeftMenus)&&void 0!==t&&null!==(t=t.course_modules)&&void 0!==t&&t.map((function(e){return e.type})).find((function(e){return"group_homework"===e}))?me("3"):null!=B&&null!==(l=B.detailLeftMenus)&&void 0!==l&&null!==(l=l.course_modules)&&void 0!==l&&l.map((function(e){return e.type})).find((function(e){return"exercise"===e}))?me("4"):null!=B&&null!==(s=B.detailLeftMenus)&&void 0!==s&&null!==(s=s.course_modules)&&void 0!==s&&s.map((function(e){return e.type})).find((function(e){return"program_homework"===e}))&&me("5")}),[null==B||null===(n=B.detailLeftMenus)||void 0===n?void 0:n.course_modules]);var pe=null==B||null===(t=B.detailLeftMenus)||void 0===t||null===(t=t.course_modules)||void 0===t?void 0:t.map((function(e){return e.type}));return(0,T.jsxs)("section",{className:y,children:[(0,T.jsxs)(h.Z,{separator:">",style:{marginTop:20},children:[(0,T.jsx)(h.Z.Item,{children:"教学课堂"}),(0,T.jsx)(h.Z.Item,{children:(0,T.jsx)(x.Link,{to:"/classrooms/".concat(null==J?void 0:J.coursesId),children:null==le?void 0:le.course_name})}),(0,T.jsx)(h.Z.Item,{children:(0,T.jsx)(x.Link,{to:null==B||null===(l=B.detailLeftMenus)||void 0===l||null===(l=l.course_modules)||void 0===l||null===(l=l.filter((function(e){return"statistics"===e.type})))||void 0===l||null===(l=l[0])||void 0===l?void 0:l.category_url,children:"学生分析"})}),(0,T.jsx)(h.Z.Item,{children:"学生学习详情"})]}),(0,T.jsxs)("div",{className:b,children:[(0,T.jsx)("div",{className:N,children:(0,T.jsx)("img",{src:G.Z.IMG_SERVER+"/images/"+(null==le?void 0:le.image_url)})}),(0,T.jsxs)("div",{className:k,children:[(0,T.jsxs)("div",{className:w,children:[(0,T.jsxs)("div",{children:[(0,T.jsxs)("span",{className:S,children:["姓名:",(0,T.jsx)("span",{children:null==le?void 0:le.username})]}),(0,T.jsxs)("span",{className:S,children:["学号:",(0,T.jsx)("span",{children:(null==le?void 0:le.student_id)||"- -"})]}),(0,T.jsxs)("span",{className:S,children:["分班:",(0,T.jsx)("span",{children:(null==le?void 0:le.course_group)||"- -"})]})]}),!(0,W.dE)()&&(0,T.jsx)(f.Z,{dropdownRender:function(){var e;return(0,T.jsx)(_.Z,{selectedKeys:[null==J?void 0:J.login],style:{maxHeight:"380px",overflow:"auto"},children:null==re||null===(e=re.students)||void 0===e?void 0:e.map((function(e,n){return(0,T.jsx)(_.Z.Item,{onClick:function(){x.history.push("/classrooms/".concat(null==J?void 0:J.coursesId,"/Studentdetail/").concat(null==e?void 0:e.login)),window.location.reload()},children:e.name},null==e?void 0:e.login)}))})},children:(0,T.jsxs)(g.Z,{style:{fontSize:14},children:[null==le?void 0:le.username,(0,T.jsx)(M.Z,{style:{color:"#0152D9"}})]})})]}),(0,T.jsxs)("div",{className:C,children:[(0,T.jsxs)("div",{className:O,children:[(0,T.jsx)("div",{className:I,style:{color:"#0152D9"},children:null==le||null===(o=le.total_score)||void 0===o?void 0:o.toFixed(2)}),(0,T.jsx)("div",{children:"总成绩"})]}),(0,T.jsx)("div",{className:E}),(0,T.jsxs)("div",{className:O,children:[(0,T.jsxs)("div",{className:I,style:{color:"#272A3A"},children:[null==le?void 0:le.course_group_user_ranking,"/",(0,T.jsx)("span",{style:{color:"#99A2B4"},children:null==le?void 0:le.course_group_user_ranking_count})]}),(0,T.jsx)("div",{children:"分班排名(排名 / 分班人数)"})]}),(0,T.jsx)("div",{className:E}),(0,T.jsxs)("div",{className:O,children:[(0,T.jsx)("div",{className:I,style:{color:"#272A3A"},children:null==le?void 0:le.overall_rating}),(0,T.jsx)("div",{children:"综合评分"})]}),(0,T.jsx)("div",{className:E}),(0,T.jsxs)("div",{className:O,children:[(0,T.jsxs)("div",{className:I,style:{color:"#272A3A"},children:[null==le?void 0:le.total_user_ranking,"/",(0,T.jsx)("span",{style:{color:"#99A2B4"},children:null==le?void 0:le.total_user_ranking_count})]}),(0,T.jsx)("div",{children:"综合总排名(排名 / 总人数)"})]})]})]})]}),(0,T.jsx)("div",{className:A,children:(0,T.jsxs)(p.Z,{accessKey:ue,onChange:function(e){me(e)},tabBarStyle:{padding:"0px 40px",height:55},children:[(null==pe?void 0:pe.find((function(e){return"shixun_homework"===e})))&&(0,T.jsx)(Y,{tab:(0,T.jsx)("span",{className:L,title:null==B||null===(r=B.detailLeftMenusNames)||void 0===r?void 0:r.shixun_homework,children:null==B||null===(c=B.detailLeftMenusNames)||void 0===c?void 0:c.shixun_homework}),children:(0,T.jsx)(R,{activitykey:ue})},"1"),(null==pe?void 0:pe.find((function(e){return"common_homework"===e})))&&(0,T.jsx)(Y,{tab:(0,T.jsx)("span",{className:L,title:null==B||null===(m=B.detailLeftMenusNames)||void 0===m?void 0:m.common_homework,children:null==B||null===(v=B.detailLeftMenusNames)||void 0===v?void 0:v.common_homework}),children:(0,T.jsx)(Q,{activitykey:ue})},"2"),(null==pe?void 0:pe.find((function(e){return"group_homework"===e})))&&(0,T.jsx)(Y,{tab:(0,T.jsx)("span",{className:L,title:null==B||null===(D=B.detailLeftMenusNames)||void 0===D?void 0:D.group_homework,children:null==B||null===(P=B.detailLeftMenusNames)||void 0===P?void 0:P.group_homework}),children:(0,T.jsx)(K,{activitykey:ue})},"3"),(null==pe?void 0:pe.find((function(e){return"program_homework"===e})))&&(0,T.jsx)(Y,{tab:(0,T.jsx)("span",{className:L,title:null==B||null===(Z=B.detailLeftMenusNames)||void 0===Z?void 0:Z.program_homework,children:null==B||null===(z=B.detailLeftMenusNames)||void 0===z?void 0:z.program_homework}),children:(0,T.jsx)(q,{activitykey:ue})},"5"),(null==pe?void 0:pe.find((function(e){return"exercise"===e})))&&(0,T.jsx)(Y,{tab:(0,T.jsx)("span",{className:L,title:null==B||null===(F=B.detailLeftMenusNames)||void 0===F?void 0:F.exercise,children:null==B||null===($=B.detailLeftMenusNames)||void 0===$?void 0:$.exercise}),children:(0,T.jsx)(X,{activitykey:ue})},"4")]})})]})}))},66104:function(e,n,t){t.d(n,{Z:function(){return E}});var l=t(92310),s=t.n(l),o=t(29541),i=t(68073),r=t(59301),a=t(92343),c=t(36355),d=t(43501),u=t(91857);const m=e=>{let{children:n}=e;const{getPrefixCls:t}=r.useContext(c.E_),l=t("breadcrumb");return r.createElement("li",{className:`${l}-separator`,"aria-hidden":"true"},""===n?n:n||"/")};m.__ANT_BREADCRUMB_SEPARATOR=!0;var v=m,x=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 s=0;for(l=Object.getOwnPropertySymbols(e);s<l.length;s++)n.indexOf(l[s])<0&&Object.prototype.propertyIsEnumerable.call(e,l[s])&&(t[l[s]]=e[l[s]])}return t};function p(e,n,t,l){if(null==t)return null;const{className:o,onClick:a}=n,c=x(n,["className","onClick"]),d=Object.assign(Object.assign({},(0,i.Z)(c,{data:!0,aria:!0})),{onClick:a});return void 0!==l?r.createElement("a",Object.assign({},d,{className:s()(`${e}-link`,o),href:l}),t):r.createElement("span",Object.assign({},d,{className:s()(`${e}-link`,o)}),t)}function h(e,n){return(t,l,s,o,i)=>{if(n)return n(t,l,s,o);const r=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 p(e,t,r,i)}}var f=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 s=0;for(l=Object.getOwnPropertySymbols(e);s<l.length;s++)n.indexOf(l[s])<0&&Object.prototype.propertyIsEnumerable.call(e,l[s])&&(t[l[s]]=e[l[s]])}return t};const _=e=>{const{prefixCls:n,separator:t="/",children:l,menu:s,overlay:o,dropdownProps:i,href:a}=e;const c=(e=>{if(s||o){const t=Object.assign({},i);if(s){const e=s||{},{items:n}=e,l=f(e,["items"]);t.menu=Object.assign(Object.assign({},l),{items:null==n?void 0:n.map(((e,n)=>{var{key:t,title:l,label:s,path:o}=e,i=f(e,["key","title","label","path"]);let c=null!=s?s:l;return o&&(c=r.createElement("a",{href:`${a}${o}`},c)),Object.assign(Object.assign({},i),{key:null!=t?t:n,label:c})}))})}else o&&(t.overlay=o);return r.createElement(u.Z,Object.assign({placement:"bottom"},t),r.createElement("span",{className:`${n}-overlay-link`},e,r.createElement(d.Z,null)))}return e})(l);return null!=c?r.createElement(r.Fragment,null,r.createElement("li",null,c),t&&r.createElement(v,null,t)):null},g=e=>{const{prefixCls:n,children:t,href:l}=e,s=f(e,["prefixCls","children","href"]),{getPrefixCls:o}=r.useContext(c.E_),i=o("breadcrumb",n);return r.createElement(_,Object.assign({},s,{prefixCls:i}),p(i,s,t,l))};g.__ANT_BREADCRUMB_ITEM=!0;var j=g,y=t(17313),b=t(83116),N=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 w=(0,b.Z)("Breadcrumb",(e=>{const n=(0,N.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}))),S=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 s=0;for(l=Object.getOwnPropertySymbols(e);s<l.length;s++)n.indexOf(l[s])<0&&Object.prototype.propertyIsEnumerable.call(e,l[s])&&(t[l[s]]=e[l[s]])}return t};function C(e){const{breadcrumbName:n,children:t}=e,l=S(e,["breadcrumbName","children"]),s=Object.assign({title:n},l);return t&&(s.menu={items:t.map((e=>{var{breadcrumbName:n}=e,t=S(e,["breadcrumbName"]);return Object.assign(Object.assign({},t),{title:n})}))}),s}var O=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 s=0;for(l=Object.getOwnPropertySymbols(e);s<l.length;s++)n.indexOf(l[s])<0&&Object.prototype.propertyIsEnumerable.call(e,l[s])&&(t[l[s]]=e[l[s]])}return t};const I=e=>{const{prefixCls:n,separator:t="/",style:l,className:d,rootClassName:u,routes:m,items:x,children:p,itemRender:f,params:g={}}=e,j=O(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:y,direction:b,breadcrumb:N}=r.useContext(c.E_);let k;const S=y("breadcrumb",n),[I,E]=w(S),A=function(e,n){return(0,r.useMemo)((()=>e||(n?n.map(C):null)),[e,n])}(x,m);const D=h(S,f);if(A&&A.length>0){const e=[],n=x||m;k=A.map(((l,s)=>{const{path:o,key:a,type:c,menu:d,overlay:u,onClick:m,className:x,separator:p,dropdownProps:h}=l,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})(g,o);void 0!==f&&e.push(f);const j=null!=a?a:s;if("separator"===c)return r.createElement(v,{key:j},p);const y={},b=s===A.length-1;d?y.menu=d:u&&(y.overlay=u);let{href:N}=l;return e.length&&void 0!==f&&(N=`#/${e.join("/")}`),r.createElement(_,Object.assign({key:j},y,(0,i.Z)(l,{data:!0,aria:!0}),{className:x,dropdownProps:h,href:N,separator:b?"":t,onClick:m,prefixCls:S}),D(l,g,n,e,N))}))}else if(p){const e=(0,o.Z)(p).length;k=(0,o.Z)(p).map(((n,l)=>{if(!n)return n;const s=l===e-1;return(0,a.Tm)(n,{separator:s?"":t,key:l})}))}const P=s()(S,null==N?void 0:N.className,{[`${S}-rtl`]:"rtl"===b},d,u,E),Z=Object.assign(Object.assign({},null==N?void 0:N.style),l);return I(r.createElement("nav",Object.assign({className:P,style:Z},j),r.createElement("ol",null,k)))};I.Item=j,I.Separator=v;var E=I},98135:function(e,n,t){t.d(n,{Z:function(){return P}});var l=t(92310),s=t.n(l),o=t(59301),i=t(36355),r=t(32441),a=t(9937);var c=e=>{const{getPrefixCls:n,direction:t}=(0,o.useContext)(i.E_),{prefixCls:l,className:c}=e,d=n("input-group",l),u=n("input"),[m,v]=(0,a.ZP)(u),x=s()(d,{[`${d}-lg`]:"large"===e.size,[`${d}-sm`]:"small"===e.size,[`${d}-compact`]:e.compact,[`${d}-rtl`]:"rtl"===t},v,c),p=(0,o.useContext)(r.aM),h=(0,o.useMemo)((()=>Object.assign(Object.assign({},p),{isFormItemInput:!1})),[p]);return m(o.createElement("span",{className:x,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},o.createElement(r.aM.Provider,{value:h},e.children)))},d=t(9432),u=t(4751),m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},v=t(68475),x=function(e,n){return o.createElement(v.Z,(0,u.Z)({},e,{ref:n,icon:m}))};var p=o.forwardRef(x),h=t(89136),f=t(83930),_=t(85510),g=t(59412),j=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 s=0;for(l=Object.getOwnPropertySymbols(e);s<l.length;s++)n.indexOf(l[s])<0&&Object.prototype.propertyIsEnumerable.call(e,l[s])&&(t[l[s]]=e[l[s]])}return t};const y=e=>e?o.createElement(h.Z,null):o.createElement(p,null),b={click:"onClick",hover:"onMouseOver"};var N=o.forwardRef(((e,n)=>{const{visibilityToggle:t=!0}=e,l="object"==typeof t&&void 0!==t.visible,[r,a]=(0,o.useState)((()=>!!l&&t.visible)),c=(0,o.useRef)(null);o.useEffect((()=>{l&&a(t.visible)}),[l,t]);const u=(0,g.Z)(c),m=()=>{const{disabled:n}=e;n||(r&&u(),a((e=>{var n;const l=!e;return"object"==typeof t&&(null===(n=t.onVisibleChange)||void 0===n||n.call(t,l)),l})))},{className:v,prefixCls:x,inputPrefixCls:p,size:h}=e,N=j(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:k}=o.useContext(i.E_),w=k("input",p),S=k("input-password",x),C=t&&(n=>{const{action:t="click",iconRender:l=y}=e,s=b[t]||"",i=l(r),a={[s]:m,className:`${n}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return o.cloneElement(o.isValidElement(i)?i:o.createElement("span",null,i),a)})(S),O=s()(S,v,{[`${S}-${h}`]:!!h}),I=Object.assign(Object.assign({},(0,f.Z)(N,["suffix","iconRender","visibilityToggle"])),{type:r?"text":"password",className:O,prefixCls:w,suffix:C});return h&&(I.size=h),o.createElement(d.Z,Object.assign({ref:(0,_.sQ)(n,c)},I))})),k=t(11013),w=t(92343),S=t(3113),C=t(19716),O=t(33234),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 s=0;for(l=Object.getOwnPropertySymbols(e);s<l.length;s++)n.indexOf(l[s])<0&&Object.prototype.propertyIsEnumerable.call(e,l[s])&&(t[l[s]]=e[l[s]])}return t};var E=o.forwardRef(((e,n)=>{const{prefixCls:t,inputPrefixCls:l,className:r,size:a,suffix:c,enterButton:u=!1,addonAfter:m,loading:v,disabled:x,onSearch:p,onChange:h,onCompositionStart:f,onCompositionEnd:g}=e,j=I(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:y,direction:b}=o.useContext(i.E_),N=o.useRef(!1),E=y("input-search",t),A=y("input",l),{compactSize:D}=(0,O.ri)(E,b),P=(0,C.Z)((e=>{var n;return null!==(n=null!=a?a:D)&&void 0!==n?n:e})),Z=o.useRef(null),L=e=>{var n;document.activeElement===(null===(n=Z.current)||void 0===n?void 0:n.input)&&e.preventDefault()},M=e=>{var n,t;p&&p(null===(t=null===(n=Z.current)||void 0===n?void 0:n.input)||void 0===t?void 0:t.value,e,{source:"input"})},z="boolean"==typeof u?o.createElement(k.Z,null):null,F=`${E}-button`;let T;const $=u||{},R=$.type&&!0===$.type.__ANT_BUTTON;T=R||"button"===$.type?(0,w.Tm)($,Object.assign({onMouseDown:L,onClick:e=>{var n,t;null===(t=null===(n=null==$?void 0:$.props)||void 0===n?void 0:n.onClick)||void 0===t||t.call(n,e),M(e)},key:"enterButton"},R?{className:F,size:P}:{})):o.createElement(S.ZP,{className:F,type:u?"primary":void 0,size:P,disabled:x,key:"enterButton",onMouseDown:L,onClick:M,loading:v,icon:z},u),m&&(T=[T,(0,w.Tm)(m,{key:"addonAfter"})]);const B=s()(E,{[`${E}-rtl`]:"rtl"===b,[`${E}-${P}`]:!!P,[`${E}-with-button`]:!!u},r);return o.createElement(d.Z,Object.assign({ref:(0,_.sQ)(Z,n),onPressEnter:e=>{N.current||v||M(e)}},j,{size:P,onCompositionStart:e=>{N.current=!0,null==f||f(e)},onCompositionEnd:e=>{N.current=!1,null==g||g(e)},prefixCls:A,addonAfter:T,suffix:c,onChange:e=>{e&&e.target&&"click"===e.type&&p&&p(e.target.value,e,{source:"clear"}),h&&h(e)},className:B,disabled:x}))})),A=t(1643);const D=d.Z;D.Group=c,D.Search=E,D.TextArea=A.Z,D.Password=N;var P=D}}]);