"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[54492],{57703:function(e,t,n){n.d(t,{Z:function(){return o}});var a=n(4751),s=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},r=n(68475),l=function(e,t){return s.createElement(r.Z,(0,a.Z)({},e,{ref:t,icon:i}))};var o=s.forwardRef(l)},7472:function(e,t,n){n.d(t,{Z:function(){return N}});n(7557),n(41498);var a=n(82100),s=n.n(a),i=n(29186),r=n.n(i),l=n(13720),o=n.n(l),c=n(80619),d=n.n(c),u=n(47074),h=n.n(u),m=n(85573),x=n.n(m),p=n(59301),v=n(98135),f="codeBox___WpkVl",_=n(92310),g=n.n(_),j=n(37712),w=function(e){d()(n,e);var t=h()(n);function n(e){var a;return s()(this,n),a=t.call(this,e),x()(o()(a),"canvas",void 0),x()(o()(a),"randomNum",(function(e,t){return Math.floor(Math.random()*(t-e)+e)})),x()(o()(a),"drawPic",(function(){a.randomCode()})),x()(o()(a),"reloadPic",(function(){a.drawPic()})),x()(o()(a),"changeCode",(function(e){console.log(e.target.value,222),a.setState({value:e.target.value,showError:!1})})),x()(o()(a),"onVerify",(function(){var e;return""!==a.state.value.toLowerCase()&&a.state.value.toLowerCase()!==a.state.code.toLowerCase()||""===a.state.value.toLowerCase()?e=!0:a.state.value.toLowerCase()===a.state.code.toLowerCase()&&(e=!1),a.setState({showError:e}),e})),a.canvas=p.createRef(),a.state={value:"",code:"",codeLength:4,fontSizeMin:20,fontSizeMax:22,backgroundColorMin:240,backgroundColorMax:250,colorMin:10,colorMax:20,lineColorMin:40,lineColorMax:180,contentWidth:96,contentHeight:38,showError:!1},a}return r()(n,[{key:"componentDidMount",value:function(){this.drawPic()}},{key:"randomColor",value:function(e,t){var n=this.randomNum(e,t),a=this.randomNum(e,t),s=this.randomNum(e,t);return"rgb(".concat(n,", ").concat(a,", ").concat(s,")")}},{key:"drawText",value:function(e,t,n){e.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);var a=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);e.font=a+"px SimHei";var s=(this.state.contentWidth-40)/(this.state.code.length-1),i=10;n>0&&(i=10+n*s);var r=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);a>40&&(r=40);var l=this.randomNum(-10,10);e.translate(i,r),e.rotate(l*Math.PI/180),e.fillText(t,0,0),e.rotate(-l*Math.PI/180),e.translate(-i,-r)}},{key:"drawLine",value:function(e){for(var t=0;t<1;t++)e.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),e.beginPath(),e.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.stroke()}},{key:"drawDot",value:function(e){for(var t=0;t<100;t++)e.fillStyle=this.randomColor(0,255),e.beginPath(),e.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),e.fill()}},{key:"randomCode",value:function(){for(var e=this,t="",n=0;n99?"99+":null==e?void 0:e.wait_review_count}),(0,G.jsxs)("div",{className:v.check,onClick:function(t){t.stopPropagation(),re(l()(l()({},e),{},{tabs:2})),_e(1)},children:[(0,G.jsx)("i",{className:"iconfont icon-HISTORY font14 mr5"}),"查看选题申请"]})]}),1===e.status&&(0,G.jsxs)("div",{className:v.center,children:[(0,G.jsx)("img",{className:v.img,src:z.Z.IMG_SERVER+"/images/"+(null==e||null===(t=e.passed_student)||void 0===t?void 0:t.image_url)}),(0,G.jsxs)("div",{className:v.col,children:[(0,G.jsx)("div",{className:"c-black",title:null==e||null===(n=e.passed_student)||void 0===n?void 0:n.name,children:(0,Z.Pq)(null==e||null===(a=e.passed_student)||void 0===a?void 0:a.name,6)}),(0,G.jsx)("div",{className:"c-black",children:(null==e||null===(s=e.passed_student)||void 0===s?void 0:s.student_id)||"--"})]}),(0,G.jsxs)("div",{className:v.col,children:[(0,G.jsx)("div",{children:"专业"}),(0,G.jsx)("div",{style:{maxWidth:112},title:null==e||null===(i=e.passed_student)||void 0===i?void 0:i.major,className:"c-grey-666 multi-llipsis1e",children:(null==e||null===(r=e.passed_student)||void 0===r?void 0:r.major)||"--"})]}),(0,G.jsxs)("div",{className:v.col,children:[(0,G.jsx)("div",{children:"申请时间"}),(0,G.jsx)("div",{className:"c-black",children:(null==e||null===(o=e.passed_student)||void 0===o?void 0:o.passed_time)||"--"})]}),(0,G.jsxs)("div",{className:v.col,children:[(0,G.jsx)("div",{children:"选题审核状态"}),(0,G.jsx)("div",{className:"c-grey-333",children:null==e?void 0:e.state_name})]}),(0,G.jsx)(b.op,{onClick:function(t){return Pe(t,e)},style:{marginLeft:"auto"},children:"取消双选"})]}),(0,G.jsxs)("div",{className:v.bottom,children:[(0,G.jsxs)("div",{className:"mr30",children:[(0,G.jsx)("div",{children:"指导老师"}),(0,G.jsx)("div",{style:{maxWidth:70},title:null==e?void 0:e.teacher_names,children:(null==e?void 0:e.teacher_names)||"--"})]}),(0,G.jsxs)("div",{className:"mr30",children:[(0,G.jsx)("div",{children:"课题来源"}),(0,G.jsx)("div",{style:{maxWidth:100},title:null==e?void 0:e.source,children:(null==e?void 0:e.source)||"--"})]}),(0,G.jsxs)("div",{children:[(0,G.jsx)("div",{children:"学科方向"}),(0,G.jsx)("div",{style:{maxWidth:180},title:null==e?void 0:e.direction,children:(null==e?void 0:e.direction)||"--"})]})]})]},e.id)}))}):(0,G.jsx)(P.Z,{customText:!q&&(1===M?(0,G.jsxs)("span",{children:["暂无选题,请先完成",(0,G.jsx)(s.Link,{to:"/graduations/".concat(r.id,"/topics"),children:"课题录入"})]}):(0,G.jsxs)("span",{children:["暂无学生,点击去",(0,G.jsx)(s.Link,{to:"/graduations/".concat(r.id,"/students"),children:"邀请学生"}),"加入毕设"]}))})}),(0,G.jsx)(k.Z,{current:Se.page,showQuickJumper:!0,showSizeChanger:!0,hideOnSinglePage:!B,pageSize:Se.per_page,className:"mb30",pageSizeOptions:["10","20","50","100","200"],total:B,showTotal:Z.rU,onChange:function(e,t){Se.page=e,Se.per_page=t,Ce(Se),Ze(Se)}}),(0,G.jsx)(F,{data:ie,visible:1===fe,onClose:function(){_e(!1)},onSucceed:function(){Ze(Se)}}),(0,G.jsx)(_.Z,{centered:!0,destroyOnClose:!0,onCancel:function(){return _e(!1)},open:2===fe,title:0===ce.status?"分配课题":"变更课题",width:520,afterClose:function(){de({})},onOk:function(){var e=function(){var e=m()(u()().mark((function e(){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,C.ZP)("/api/graduations/".concat(r.id,"/student_tasks/give_task.json"),{method:"post",body:{task_id:ce.task_id,student_id:ce.id}});case 2:0===e.sent.status&&(g.ZP.success("操作成功"),Ze(Se),_e(!1));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();ce.task_id===ce.save_task_id||1!==ce.status?e():_.Z.confirm({centered:!0,okText:"确定",icon:null,cancelText:"取消",title:"变更课题",content:(0,G.jsxs)("div",{children:[(0,G.jsx)("p",{children:"该操作无法撤销。确认为该学生变更课题?变更后学生在原课题提交的文档将清空且无法恢复。"}),(0,G.jsx)("div",{children:"请输入验证码后确认变更"}),(0,G.jsx)(A.Z,{ref:function(e){return je.current=e}})]}),onOk:e})},children:(0,G.jsx)("div",{className:v.modal,children:(0,G.jsxs)(i.Z,{loading:me,children:[(0,G.jsx)("div",{className:"mb10",children:"课题"}),(0,G.jsx)(y.default,{showSearch:!0,size:"large",placeholder:"请选择课题",optionFilterProp:"children",value:ce.task_id,onChange:function(e){de(l()(l()({},ce),{},{task_id:e}))},style:{width:"100%"},children:te.map((function(e){return(0,G.jsx)(y.default.Option,{value:e.id,children:e.name},e.id)}))})]})})}),(0,G.jsx)(R.Z,{visible:3===fe,data:l()(l()({},Ne),{},{disabled_time:null==ge||null===(t=ge[ke-1])||void 0===t?void 0:t.end_at}),onClose:function(){return _e(!1)},onSuccess:function(){_e(!1)}})]})})),Q="wrap___Cl57w",V="tip___sGVnl",U="listWrap___OYoyC",J="list___rT4Q_",K="left___b7Ykx",X="state___ZiQzs",ee="tag0___M6FYN",te="tag1___Sg8yD",ne="tag2___iT8lP",ae="tag3___jqhO2",se="name___BNDAZ",ie="info___pKNSG",re="time___jyND5",le="right___XT6Gh",oe="btn___vKu7W",ce="wrap___CkyzG",de="listWrap___d0chX",ue="list___S7Zml",he="top___FxvYM",me="box___kpIeL",xe="name___MGi0J",pe="des___VqXEd",ve="check___tTb0k",fe="bottom____2Rzh",_e=function(e){var t=e.visible,n=e.onSucceed,i=void 0===n?function(){}:n,r=e.onClose,o=void 0===r?function(){}:r,c=e.onListClick,d=(0,s.useParams)(),h=(0,a.useState)(!0),x=p()(h,2),v=x[0],j=x[1],w=(0,a.useState)(0),y=p()(w,2),S=y[0],z=y[1],M=(0,a.useState)([]),O=p()(M,2),I=O[0],$=O[1],E={keyword:"",page:1,per_page:20,status:0},T=(0,a.useState)(l()({},E)),W=p()(T,2),L=W[0],B=W[1];(0,a.useEffect)((function(){t&&H(L)}),[t]);var H=function(){var e=m()(u()().mark((function e(t){var n;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return j(!0),e.next=3,(0,C.ZP)("/api/graduations/".concat(d.id,"/graduation_tasks.json"),{method:"get",params:t});case 3:0===(n=e.sent).status&&($((null==n?void 0:n.data)||[]),z(null==n?void 0:n.count)),j(!1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Y=function(){var e=m()(u()().mark((function e(t,n){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),_.Z.confirm({centered:!0,title:"提示",icon:null,content:"确认加入该课题?",okText:"确认",cancelText:"取消",onOk:function(){var e=m()(u()().mark((function e(){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,C.ZP)("/api/graduations/".concat(d.id,"/student_tasks/").concat(n,".json"),{method:"put"});case 2:0===e.sent.status&&(g.ZP.success("申请成功"),i());case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return(0,G.jsx)(_.Z,{centered:!0,destroyOnClose:!0,onCancel:o,open:t,footer:null,title:"学生选题",width:1e3,afterClose:function(){B(l()({},E))},children:(0,G.jsxs)("div",{className:ce,children:[(0,G.jsx)(b.t7,{style:{width:329},placeholder:"请输入课题名称/指导老师进行搜索",value:L.keyword,onChange:function(e){L.keyword=e,L.page=1,B(L),H(L)},className:"mb20"}),(0,G.jsx)("div",{className:de,children:(0,G.jsx)(N.Z,{spinning:v,children:I.length?I.map((function(e){return(0,G.jsxs)("div",{onClick:function(){c(e)},className:ue,children:[(0,G.jsxs)("div",{className:he,children:[(0,G.jsxs)("div",{className:me,children:[(0,G.jsx)(f.Z,{title:e.name,children:(0,G.jsx)("div",{className:xe,children:e.name})}),(0,G.jsx)("div",{className:pe,children:(0,G.jsx)(D.Z,{showTextOnly:!0,showLines:2,value:e.description||""})})]}),(0,G.jsx)("div",{className:ve,children:(0,G.jsx)(b.op,{onClick:function(t){return Y(t,e.id)},children:"申请该课题"})})]}),(0,G.jsxs)("div",{className:fe,children:[(0,G.jsxs)("div",{className:"mr30",children:[(0,G.jsx)("div",{children:"指导老师"}),(0,G.jsx)("div",{title:null==e?void 0:e.teacher_names,style:{maxWidth:70},children:(null==e?void 0:e.teacher_names)||"--"})]}),(0,G.jsxs)("div",{className:"mr30",children:[(0,G.jsx)("div",{children:"课题来源"}),(0,G.jsx)("div",{title:null==e?void 0:e.source,style:{maxWidth:100},children:(null==e?void 0:e.source)||"--"})]}),(0,G.jsxs)("div",{className:"mr30",children:[(0,G.jsx)("div",{children:"学科方向"}),(0,G.jsx)("div",{title:null==e?void 0:e.direction,style:{maxWidth:180},children:(null==e?void 0:e.direction)||"--"})]}),(0,G.jsxs)("div",{children:[(0,G.jsx)("div",{children:"适用专业"}),(0,G.jsx)("div",{title:null==e?void 0:e.major,style:{maxWidth:140},children:(null==e?void 0:e.major)||"--"})]})]})]},e.id)})):(0,G.jsx)(P.Z,{loading:v})})}),(0,G.jsx)(k.Z,{current:L.page,hideOnSinglePage:!S,showQuickJumper:!0,className:"mb20",showSizeChanger:!0,pageSize:L.per_page,pageSizeOptions:["10","20","50","100","200"],total:S,showTotal:Z.rU,onChange:function(e,t){L.page=e,L.per_page=t,B(L),H(L)}})]})})},ge=(0,s.connect)((function(e){return{graduations:e.graduations}}))((function(e){var t=e.graduations,n=(e.dispatch,(0,s.useParams)()),i=(0,s.useSearchParams)(),r=p()(i,1)[0],o=(0,a.useState)(!1),c=p()(o,2),d=c[0],h=c[1],x=(0,a.useState)(0),v=p()(x,2),j=v[0],y=v[1],z=(0,a.useState)(0),M=p()(z,2),O=M[0],I=M[1],$=(0,a.useState)([]),E=p()($,2),T=E[0],W=E[1],L=(0,a.useState)({}),B=p()(L,2),H=B[0],D=B[1],Y=(0,a.useState)(!1),R=p()(Y,2),A=R[0],q=R[1],ce=(0,a.useState)(!1),de=p()(ce,2),ue=de[0],he=de[1],me=null!=r&&r.get("state")?Number(null==r?void 0:r.get("state")):"",xe=(0,a.useState)({keyword:"",state:me,page:1,per_page:20}),pe=p()(xe,2),ve=pe[0],fe=pe[1],ge=t.menus.find((function(e){return"student_selection"===e.clazz}))||{};(0,a.useEffect)((function(){je(ve)}),[]);var je=function(){var e=m()(u()().mark((function e(t){var a;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h(!0),e.next=3,(0,C.ZP)("/api/graduations/".concat(null==n?void 0:n.id,"/student_tasks/checked_list.json"),{method:"get",params:t});case 3:0===(a=e.sent).status&&(W((null==a?void 0:a.data)||[]),y(null==a?void 0:a.count),I(null==a?void 0:a.total_count)),h(!1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),we=function(){var e=m()(u()().mark((function e(t,a){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),_.Z.confirm({centered:!0,title:"提示",icon:null,content:0===a.state?"确认撤回该课题申请?":"确认取消双选?取消后需要重新进行选题",okText:"确认",cancelText:"取消",onOk:function(){var e=m()(u()().mark((function e(){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,C.ZP)("/api/graduations/".concat(n.id,"/student_tasks/").concat(a.id,".json"),{method:"delete"});case 2:0===e.sent.status&&(g.ZP.success("操作成功"),je(ve));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Ne=!!T.length;return(0,G.jsxs)("div",{className:Q,children:[2===(null==ge?void 0:ge.status)&&(0,G.jsxs)("div",{className:V,children:[(0,G.jsx)("i",{style:{paddingTop:2},className:"iconfont icon-weixiada font12 mr5"}),(0,G.jsx)("span",{children:"选题阶段已结束,若要变更课题需联系管理员手动进行变更"})]}),(0,G.jsx)(S.Z,{style:{marginBottom:12},title:"学生选题",status:null==ge?void 0:ge.status,startAt:null==ge?void 0:ge.start_at,endAt:null==ge?void 0:ge.end_at}),!!O&&(0,G.jsxs)(w.Z,{align:"middle",justify:"space-between",children:[(0,G.jsx)(b.qp,{title:"审核状态",className:"mt20",value:ve.state,onChange:function(e){ve.state=e,ve.page=1,fe(ve),je(ve)},dataSource:[{id:"",name:"全部"},{id:0,name:"待审核"},{id:1,name:"已通过"},{id:2,name:"已驳回"},{id:3,name:"已撤回"}],titleWidth:56}),2!==(null==ge?void 0:ge.status)&&(0,G.jsx)(b.op,{onClick:function(){return he(!0)},children:"点击选题"})]}),(0,G.jsx)(N.Z,{spinning:d,children:Ne?(0,G.jsx)("div",{className:U,children:T.map((function(e){return(0,G.jsxs)("div",{onClick:function(){q(!0),D(l()({},e))},className:J,children:[(0,G.jsxs)("div",{className:K,children:[(0,G.jsxs)("div",{className:X,children:[0===e.state&&(0,G.jsx)("div",{className:ee,children:"待审核"}),1===e.state&&(0,G.jsx)("div",{className:te,children:"已通过"}),2===e.state&&(0,G.jsx)("div",{className:ne,children:"已驳回"}),3===e.state&&(0,G.jsx)("div",{className:ae,children:"已撤回"}),(0,G.jsx)(f.Z,{title:e.name,children:(0,G.jsx)("div",{className:se,children:e.name})})]}),(0,G.jsxs)("div",{className:ie,children:[(0,G.jsxs)("span",{children:["指导老师",(0,G.jsx)("span",{title:e.teacher_names,children:(0,Z.Pq)(e.teacher_names,9)})]}),(0,G.jsxs)("span",{children:["课题来源",(0,G.jsx)("span",{title:e.source,children:(0,Z.Pq)(e.source,9)})]}),(0,G.jsxs)("span",{children:["学科方向",(0,G.jsx)("span",{title:e.direction,children:(0,Z.Pq)(e.direction,9)})]})]}),(0,G.jsxs)("div",{className:re,children:["申请时间  ",e.time]})]}),[0,1].includes(null==ge?void 0:ge.status)&&(0,G.jsxs)("div",{className:le,children:[0===e.state&&(0,G.jsx)("div",{onClick:function(t){return we(t,e)},className:oe,children:"撤回申请"}),1===e.state&&(0,G.jsx)("div",{onClick:function(t){return we(t,e)},className:oe,children:"取消双选"})]})]},e.id)}))}):(0,G.jsx)(P.Z,{loading:d,ButtonTwo:2!==(null==ge?void 0:ge.status)&&!O&&(0,G.jsx)(b.op,{onClick:function(){return he(!0)},children:"点击选题"})})}),(0,G.jsx)(k.Z,{current:ve.page,hideOnSinglePage:!j,showSizeChanger:!0,showQuickJumper:!0,className:"mb20",pageSizeOptions:["10","20","50","100","200"],total:j,pageSize:ve.per_page,showTotal:Z.rU,onChange:function(e,t){ve.page=e,ve.per_page=t,fe(ve),je(ve)}}),(0,G.jsx)(_e,{onClose:function(){return he(!1)},visible:ue,onListClick:function(e){D(l()({},e)),q(!0)},onSucceed:function(){je(ve),he(!1)}}),(0,G.jsx)(F,{data:H,visible:A,onClose:function(){return q(!1)},onSucceed:function(){}})]})})),je=(0,s.connect)((function(e){return{loading:e.loading,graduations:e.graduations}}))((function(e){e.graduations,e.dispatch;var t=e.loading;return(0,G.jsx)(i.Z,{style:{margin:"20px 0 0 45px"},loading:t.effects["graduations/getGraduationsDetails"],children:(0,Y.tu)()?(0,G.jsx)(q,{}):(0,G.jsx)(ge,{})})}))},19543:function(e,t,n){n.d(t,{Z:function(){return u}});n(59301);var a="title___Ynb7w",s="time___dxFRB",i=n(92310),r=n.n(i),l=n(24438),o=n(99232),c=n.n(o),d=n(37712),u=function(e){var t=e.className,n=e.status,i=e.style,o=void 0===i?{}:i,u=e.startAt,h=e.endAt,m=e.title;return(0,d.jsxs)("div",{className:r()(a,t),style:o,children:[(0,d.jsx)("b",{children:m}),(0,d.jsx)(l.Z,{className:"ml10",status:n}),(0,d.jsxs)("span",{className:s,children:[(0,d.jsxs)("span",{children:["开启时间",(0,d.jsx)("span",{className:"ml10",children:u?c()(u).format("YYYY-MM-DD HH:mm"):"--"})]}),(0,d.jsxs)("span",{className:"ml30",children:["截止时间",(0,d.jsx)("span",{className:"ml10",children:h?c()(h).format("YYYY-MM-DD HH:mm"):"--"})]})]})]})}},24438:function(e,t,n){n.d(t,{Z:function(){return o}});var a=n(59301),s="tag___NEywM",i=n(92310),r=n.n(i),l=n(37712),o=function(e){var t=e.className,n=e.status;return(0,l.jsxs)(a.Fragment,{children:[0===n&&(0,l.jsx)("div",{className:r()(s,t),children:"未开始"}),1===n&&(0,l.jsx)("div",{className:r()(s,t),style:{background:"#19CB70"},children:"进行中"}),2===n&&(0,l.jsx)("div",{className:r()(s,t),style:{background:"#EE5D5D"},children:"已结束"})]})}},28103:function(e,t,n){n.d(t,{Z:function(){return m}});var a=n(92310),s=n.n(a),i=n(59301),r=n(36355),l=n(17313),o=n(83116),c=n(37613);const d=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:a,lineWidth:s,textPaddingInline:i,orientationMargin:r,verticalMarginInline:o}=e;return{[t]:Object.assign(Object.assign({},(0,l.Wf)(e)),{borderBlockStart:`${s}px solid ${a}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:o,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${s}px solid ${a}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${a}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${s}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*r+"%"},"&::after":{width:100-100*r+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*r+"%"},"&::after":{width:100*r+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:a,borderStyle:"dashed",borderWidth:`${s}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:s,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var u=(0,o.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),h=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(a=Object.getOwnPropertySymbols(e);s{const{getPrefixCls:t,direction:n,divider:a}=i.useContext(r.E_),{prefixCls:l,type:o="horizontal",orientation:c="center",orientationMargin:d,className:m,rootClassName:x,children:p,dashed:v,plain:f,style:_}=e,g=h(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),j=t("divider",l),[w,N]=u(j),k=c.length>0?`-${c}`:c,y=!!p,b="left"===c&&null!=d,S="right"===c&&null!=d,C=s()(j,null==a?void 0:a.className,N,`${j}-${o}`,{[`${j}-with-text`]:y,[`${j}-with-text${k}`]:y,[`${j}-dashed`]:!!v,[`${j}-plain`]:!!f,[`${j}-rtl`]:"rtl"===n,[`${j}-no-default-orientation-margin-left`]:b,[`${j}-no-default-orientation-margin-right`]:S},m,x),Z=i.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),z=Object.assign(Object.assign({},b&&{marginLeft:Z}),S&&{marginRight:Z});return w(i.createElement("div",Object.assign({className:C,style:Object.assign(Object.assign({},null==a?void 0:a.style),_)},g,{role:"separator"}),p&&"vertical"!==o&&i.createElement("span",{className:`${j}-inner-text`,style:z},p)))}}}]);