|
|
(self.webpackChunk=self.webpackChunk||[]).push([[72570,71212,79462,57725],{87169:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var l=t(54476),a=t(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},r=t(7657),s=function(e,n){return a.createElement(r.Z,(0,l.Z)({},e,{ref:n,icon:i}))};var o=a.forwardRef(s)},61481:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var l=t(54476),a=t(59301),i={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(7657),s=function(e,n){return a.createElement(r.Z,(0,l.Z)({},e,{ref:n,icon:i}))};var o=a.forwardRef(s)},32050:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var l=t(54476),a=t(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},r=t(7657),s=function(e,n){return a.createElement(r.Z,(0,l.Z)({},e,{ref:n,icon:i}))};var o=a.forwardRef(s)},78988:function(e,n,t){"use strict";function l(e){var n=!0;if(e.length>0){for(var t=0;t<e.length;t++)if(0==e[t].compile_success||!e[t].compile_success){n=!1;break}}else n=!1;return n}function a(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=[],l=0;l<e.length;l++){var a=e[l],i=n?"".concat(n,"/").concat(a.name):"".concat(a.name);t.push({title:a.name,isLeaf:"tree"!==a.type,key:i})}return t}function i(e,n,t){for(var l=0;l<e.length;l++){var a=e[l];if(a.key===n){a.children=t;break}a.children&&i(a.children,n,t)}return e}function r(e,n,t){var l;return function(){var a=this,i=arguments,r=function(){l=null,t||e.apply(a,i)},s=t&&!l;clearTimeout(l),l=setTimeout(r,n),s&&e.apply(a,i)}}t.d(n,{Ax:function(){return i},Ds:function(){return r},KI:function(){return s},SI:function(){return a},f1:function(){return l}});var s=t(91689).Z.API_SERVER},82742:function(e,n,t){"use strict";t.d(n,{Z:function(){return x}});var l=t(82242),a=t.n(l),i=t(7557),r=t.n(i),s=t(41498),o=t.n(s),c=t(79800),u=t.n(c),d=t(39647),p=t.n(d),v=t(3113),f=t(59301),m=t(37712),h=["children"],x=function(e){var n=e.children,t=p()(e,h),l=(0,f.useState)(!1),i=u()(l,2),s=i[0],c=i[1];return(0,m.jsx)(v.ZP,a()(a()({},t),{},{loading:s,onClick:function(){var e=o()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,c(!0),e.next=4,t.onClick(n);case 4:c(!1),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0),c(!1);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(n){return e.apply(this,arguments)}}(),children:n}))}},12332:function(e,n,t){"use strict";var l=t(39647),a=t.n(l),i=(t(59301),t(49389)),r=t(43418),s=t(37712),o=["shixunsDetail","globalSetting","loading","dispatch"];n.Z=(0,i.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,loading:t.models.index}}))((function(e){var n=e.shixunsDetail,t=(e.globalSetting,e.loading,e.dispatch);a()(e,o);return(0,s.jsx)(r.Z,{centered:!0,keyboard:!1,closable:!1,zIndex:6666,title:"提示",open:"Banner-Auth"===n.actionTabs.key,okText:"确定",cancelText:"取消",onOk:function(){t({type:"shixunsDetail/setActionTabs",payload:{}}),window.location.href="/account/certification"},onCancel:function(){t({type:"shixunsDetail/setActionTabs",payload:{}})},children:(0,s.jsxs)("p",{className:"tc font16",children:["当前竞赛需要实名认证,请先完成实名认证后再报名参赛",(0,s.jsx)("br",{}),"请问是否前往进行认证?"]})})}))},32831:function(e,n,t){"use strict";t.d(n,{Z:function(){return _}});var l=t(82242),a=t.n(l),i=t(7557),r=t.n(i),s=t(41498),o=t.n(s),c=t(79800),u=t.n(c),d=t(59301),p={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},v=t(3113),f=t(70557),m=t(63631),h=t(6848),x=t(83287),g=t(94280),b=t(13767),y=t(91689),j=t(37712),_=function(e){var n,t,l,i,s,c,_,Z=e.editOffice,k=void 0===Z?"view":Z,w=e.data,S=(e.theme,e.type),C=e.filename,N=e.monacoEditor,I=e.className,P=e.style,E=e.close,T=e.onClose,R=e.hasMask,O=e.disabledDownload,L=e.onImgDimensions,z=e.showNodata,M=(0,d.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),A=u()(M,2),D=(A[0],A[1],(0,d.useState)("")),$=u()(D,2),B=($[0],$[1]),F=(0,d.useState)(),V=u()(F,2),H=V[0],W=V[1],Y="build"===window.ENV?"/react/build":"",G=location.host.startsWith("localhost")?y.Z.PROXY_SERVER:y.Z.API_SERVER,U=(0,d.useRef)();null!==(n=w)&&void 0!==n&&n.startsWith("/api")&&"txt"!==S&&(w=y.Z.API_SERVER+w),C&&(N.filename=C),(0,d.useEffect)((function(){var e,n=null===(e=document.cookie)||void 0===e||null===(e=e.replace(/\s/g,""))||void 0===e?void 0:e.split(";");null==n||n.map((function(e){var n=e.split("=");"_educoder_session"===n[0]&&B(n[1])}))}),[]),(0,d.useEffect)((function(){"office"===S&&q()}),[S,w]);var q=function(){var e=o()(r()().mark((function e(){var n,t,l;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=w,w.startsWith("http")||(n=location.origin+n),t=new URL(n).pathname.split("/").pop(),e.next=5,(0,g.gJ)({attachment_id:t});case 5:l=e.sent,W(l);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),J=function(){K()},K=function(){(0,x.Nd)(C||"educoder",decodeURIComponent(w))};return(0,j.jsxs)("div",{style:a()({},P||{}),className:"".concat(R&&p.bgBlack," ").concat(S?p.wrp:"hide"),children:[E&&(0,j.jsxs)("div",{className:p.close,ref:U,children:[!!L&&(0,j.jsx)(h.Z,{title:"点击对图片进行批注",getPopupContainer:function(){return U.current},children:(0,j.jsx)("span",{onClick:function(){T(),L()},children:(0,j.jsx)("i",{className:"icon-yulanpizhu"})})}),!O&&(0,j.jsx)(h.Z,{title:"点击下载此文件",getPopupContainer:function(){return U.current},children:(0,j.jsx)("span",{onClick:K,children:(0,j.jsx)("i",{className:"icon-quxiaozhiding"})})}),(0,j.jsx)(h.Z,{title:"关闭",getPopupContainer:function(){return U.current},children:(0,j.jsx)("span",{className:"",onClick:T,children:(0,j.jsx)("i",{className:"icon-guanbi1"})})})]}),(0,j.jsx)("div",{className:"".concat(p[I]," ").concat(I," ").concat(p.monaco," ").concat("txt"===S?"show":"hide"),children:"txt"===S&&(0,j.jsx)(m.ZP,a()({},N))}),"audio"===S&&(0,j.jsx)("audio",{src:(null===(t=w)||void 0===t?void 0:t.indexOf("http"))>-1||null!==(l=w)&&void 0!==l&&l.startsWith("/api")?w:"data:image/png;base64,".concat(w),autoPlay:!0}),"video"===S&&(0,j.jsx)(j.Fragment,{children:(null===(i=w)||void 0===i?void 0:i.indexOf("http"))>-1||null!==(s=w)&&void 0!==s&&s.startsWith("/api")?(0,j.jsx)("video",{controls:!0,src:"".concat(w),autoPlay:!0}):(0,j.jsx)("video",{controls:!0,src:"data:video/mp4;base64,".concat(w),autoPlay:!0})}),"office"===S&&H&&(0,j.jsx)("iframe",{src:"".concat(Y,"/office.html?key=").concat(H.key,"&url=").concat(G+H.url,"&callbackUrl=").concat(G+H.callbackUrl,"&fileType=").concat(H.fileType,"&title=").concat(H.title,"&model=").concat(k,"&officeServer=").concat(y.Z.ONLYOFFICE,"&disabledDownload=").concat(!!O)}),"html"===S&&(0,j.jsx)("iframe",{src:w+"&disposition=inline"}),"pdf"===S&&(0,j.jsx)("iframe",{src:"".concat(Y,"/js/pdfview/index.html?url=").concat(w,"&disabledDownload=").concat(!!O)}),"image"===S&&(0,j.jsx)("img",{src:(null===(c=w)||void 0===c?void 0:c.indexOf("http"))>-1||null!==(_=w)&&void 0!==_&&_.startsWith("/api")?w:"data:image/png;base64,".concat(w)}),("other"===S||"download"===S)&&(0,j.jsx)(j.Fragment,{children:z?(0,j.jsx)(b.Z,{customText:"当前文件不支持预览,可点击下载查看",ButtonTwo:(0,j.jsx)(v.ZP,{icon:(0,j.jsx)("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:J,children:"下载"})}):(0,j.jsxs)(v.ZP,{type:"primary",size:"middle",onClick:J,children:[(0,j.jsx)(f.Z,{}),"点击下载"]})})]})}},71212:function(e,n,t){"use strict";t.d(n,{Z:function(){return V}});var l=t(82242),a=t.n(l),i=t(37205),r=t.n(i),s=t(91232),o=t.n(s),c=t(79800),u=t.n(c),d=t(59301),p=(t(88831),t(32834)),v=t.n(p),f=t(11690);var m=[],h=["<ul>"],x=new(v().Renderer),g=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function b(){m.length=0,h=["<ul>"]}var y={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function j(e,n,t,l){if(n>=e.length||e[n].level<=t)return n;var a=e[n];l.push("<li><a href='#"+a.anchor+"'>"+a.text+"</a>");var i=[];return n=j(e,++n,a.level,i),i.length>0&&(l.push("<ul>"),i.forEach((function(e){l.push(e)})),l.push("</ul>")),l.push("</li>"),n=j(e,n,t,l)}function _(){return j(m,0,0,h),h.push("</ul>"),h.join("")}var Z={heading:function(e){var n=g.exec(e);if(n)return{type:"heading",raw:n[0],depth:n[1].length,text:n[2]}},fences:function(e){var n=this.rules.block.fences.exec(e);if(n){var t=n[0],l=function(e,n){var t=e.match(/^(\s+)(?:```)/);if(null===t)return n;var l=t[1];return n.split("\n").map((function(e){var n=e.match(/^\s+/);return null===n?e:u()(n,1)[0].length>=l.length?e.slice(l.length):e})).join("\n")}(t,n[3]||""),a=n[2]?n[2].trim():n[2];if(["latex","katex","math"].indexOf(a)>=0){var i=S(),r=l;l=i,C[i]={type:"block",expression:r}}return{type:"code",raw:t,lang:a,text:l}}}},k=/(?:\${2})([^\n`]+?)(?:\${2})/gi,w=0,S=function(){return"__special_katext_id_".concat(w++,"__")},C={};function N(){return C}function I(){w=0,C={}}function P(e){return e=e.replace(k,(function(e,n){var t=S();return C[t]={type:"inline",expression:n},t}))}var E=x.listitem;x.listitem=function(e){return E(P(e))};var T=x.paragraph;x.paragraph=function(e){return T(P(e))};var R=x.tablecell;x.tablecell=function(e,n){return R(P(e),n)},x.code=function(e,n,t){var l=(n||"").match(/\S*/)[0];return l?["latex","katex","math"].indexOf(l)>=0?"<p class='editormd-tex'>".concat(e,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(n,'">').concat(t?e:(0,f.escape)(e,!0),"</code></pre>\n"):'<pre class="prettyprint linenums"><code>'+(t?e:(0,f.escape)(e,!0))+"</code></pre>"},x.heading=function(e,n,t){var l=this.options.headerPrefix+t.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return m.push({anchor:l,level:n,text:e}),"<h"+n+' id="'+l+'">'+e+"</h"+n+">"},v().setOptions({silent:!0,gfm:!0,pedantic:!1}),v().use({tokenizer:Z,renderer:x});var O=v(),L=(t(64018),t(44523)),z=t(91689),M=t(15342),A=t(1012),D=t(32831),$=t(37712),B="@▁@",F=/<pre[^>]*>/g;var V=function(e){var n=e.value,t=void 0===n?"":n,l=e.className,i=e.showTextOnly,s=e.showLines,c=e.style,p=void 0===c?{}:c,v=e.stylesPrev,f=void 0===v?{}:v,m=e.highlightKeywords,h=e.showProgramFill,x=(e.isProgramFill,e.disabledFill),g=void 0!==x&&x,j=e.programFillValue,Z=e.onFillChange,k=void 0===Z?function(e){}:Z,w=e.onFillBlur,S=void 0===w?function(){}:w,C=String(t),P=(0,d.useState)(""),E=u()(P,2),T=E[0],R=E[1],V=(0,d.useState)("office"),H=u()(V,2),W=H[0],Y=H[1],G=(0,d.useState)([]),U=u()(G,2),q=U[0],J=U[1],K=(0,d.useRef)("a"+(0,A.Z)()),X={},Q=function(e){return e.replace(/<style.*?>([\s\S]+?)<\/style>/gim,(function(e,n){var t=n.replace(/(\n|\r)/g,"").split("}"),l=[];return t.map((function(e){""!=e&&l.push(".".concat(K.current," ").concat(e))})),"<style>".concat(l.join("}"),"</style>")}))},ee=(0,d.useMemo)((function(){try{C=C.replace(/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,"("+z.Z.API_SERVER+"/api/attachments/").replace(/\"\/api\/attachments\/|\"\/attachments\/download\//g,'"'+z.Z.API_SERVER+"/api/attachments/").replace(/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,'"'+z.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,"\n")}catch(e){}if(h){var e=-1;return C=C.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,(function(n,t,l){return function(e,n){var t=document.createElement(e===B?"input":"textarea");t.style.width="100%",t.style.height=e===B?"40px":"151px",t.rows=5,t.spellcheck=!1,t.name="edu-program-fill",t.placeholder="请输入",t.dataset.id=n;var l=Object.keys(X).length;return X[l]=t,'<span class="edu-program-fill-wrap '.concat(e===B?"":"show",'" style="width:').concat(e===B?"200px":"100%",'"><span>').concat(t.outerHTML,'<span class="edu-program-fill-score"></span></span></span>')}(n,++e)})),'<pre style="background:#fff;padding:4px">'.concat(Q(C||""),"</pre>")}var n=O(C);n=Q(n);var t=N();C.match(/\[TOC\]/)&&(n=n.replace("<p>[TOC]</p>",_()),b()),n=n.replace(/(__special_katext_id_\d+__)/g,(function(e,n){var l=t[n],a=l.type,i=l.expression;return(0,M.renderToString)(function(e){var n=document.createElement("div");return n.innerHTML=e,0===n.childNodes.length?"":n.childNodes[0].nodeValue}(i)||"",{displayMode:"block"===a,throwOnError:!1,output:"html"})})),n=n.replace(/▁/g,"▁▁▁"),I();var l=document.createElement("div");return l.innerHTML=n,m?(le(l,m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),l.innerHTML):i?l.innerText:(setTimeout((function(){return re()}),500),l.innerHTML)}),[C,m]);(0,d.useEffect)((function(){ae.current&&ae.current.querySelectorAll(["input","textarea"]).forEach((function(e){e.oninput=ne,e.onblur=te}))}),[q]),(0,d.useEffect)((function(){if(null!=j&&j.length){var e,n=ae.current.querySelectorAll(".edu-program-fill-score"),t=ae.current.querySelectorAll('[name="edu-program-fill"]'),l=o()(t.entries());try{for(l.s();!(e=l.n()).done;){var a,i=u()(e.value,2),r=i[0],s=i[1];s.value=null===(a=j[r])||void 0===a?void 0:a.value,"warning"===j[r].type?s.className="program-fill-warning":"success"===j[r].type?s.className="program-fill-success":s.className=""}}catch(e){l.e(e)}finally{l.f()}var c,d=o()(n.entries());try{for(d.s();!(c=d.n()).done;){var p,v,f=u()(c.value,2),m=f[0];f[1].innerHTML=null!==(p=j[m])&&void 0!==p&&p.score?"".concat(null===(v=j[m])||void 0===v?void 0:v.score,"分"):""}}catch(e){d.e(e)}finally{d.f()}J(j)}}),[j]);var ne=function(e){q[e.target.dataset.id]=q[e.target.dataset.id]||{},q[e.target.dataset.id].value=e.target.value,J(r()(q)),k(q,e.target.dataset.id)},te=function(e){q[e.target.dataset.id]=q[e.target.dataset.id]||{},q[e.target.dataset.id].value=e.target.value,J(r()(q)),S(q,e.target.dataset.id)};function le(e,n){return e.childNodes.forEach((function(e){if(e.childNodes.length>0)le(e,n);else if("IMG"!==e.nodeName)if(e.innerHTML){var t;e.innerHTML=null===(t=e.innerHTML)||void 0===t?void 0:t.replace(new RegExp(n,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>')}else{var l=document.createElement("span");l.innerHTML=e.textContent.replace(new RegExp(n,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),e.replaceWith(l)}}))}var ae=(0,d.useRef)();function ie(e){var n=e.target;if("A"===n.tagName.toUpperCase()){var t=n.getAttribute("href");if(t.indexOf("office")>-1)e.preventDefault(),R(t),Y("office");else if(t.indexOf("application/pdf")>-1)e.preventDefault(),R(t),Y("pdf");else if(t.indexOf("text/html")>-1)e.preventDefault(),R(t),Y("html");else if(t.startsWith("#")){e.preventDefault();var l=document.getElementById(t.replace("#",""));l&&l.scrollIntoView(!0)}}}y.WebkitLineClamp=s,s&&(p=a()(a()({},p),y));var re=function(){var e,n=null===(e=ae.current)||void 0===e?void 0:e.querySelectorAll("video");null==n||n.forEach((function(e){if(e.oncontextmenu=function(){return!1},e.src.indexOf(".m3u8")>-1)if(e.canPlayType("application/vnd.apple.mpegurl"));else if(L.ZP.isSupported()){var n=new L.ZP;n.loadSource(e.src),n.attachMedia(e)}}))};return(0,d.useEffect)((function(){if(ae.current&&ee&&ee.match(F)&&window.PR.prettyPrint(),ae.current)return ae.current.addEventListener("click",ie),function(){var e;null===(e=ae.current)||void 0===e||e.removeEventListener("click",ie),I(),b()}}),[ee,ae.current,ie]),(0,$.jsxs)($.Fragment,{children:[i&&(0,$.jsx)("div",{ref:ae,children:ee}),!i&&(0,$.jsx)("div",{ref:ae,style:a()({},p),className:"".concat(l||""," ").concat(g?"disabled-fill":""," markdown-body ").concat(K.current),dangerouslySetInnerHTML:{__html:ee}}),(0,$.jsx)(D.Z,{close:!0,data:T,type:null!=T&&T.length?W:"",style:a()({},f),onClose:function(){return R("")}})]})}},90035:function(e,n,t){"use strict";t.d(n,{cT:function(){return I},pe:function(){return N}});var l=t(37205),a=t.n(l),i=t(79800),r=t.n(i),s=t(39647),o=t.n(s),c=t(82242),u=t.n(c),d=t(7557),p=t.n(d),v=t(41498),f=t.n(v),m=t(59301),h=t(54580),x=t(8591),g=t(94171),b=t(28209),y=t.n(b),j=t(1012),_=t(49389),Z=t(75264),k=t.n(Z),w=t(37712),S=["user","cancelUpload"],C=h.Z.Dragger,N=function(e){var n=y().enc.Utf8.parse("bf3c199c2470cb477d907b1e0917c17b"),t=y().enc.Utf8.parse("5183666c72eec9e4"),l=y().AES.decrypt(e,n,{iv:t,mode:y().mode.CBC});return l.toString(y().enc.Utf8)},I=function(){var e=f()(p()().mark((function e(n,t,l){var a,i,r,s,o,c,d,v,f,m;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.file_name=n.name,e.next=3,(0,g.ZP)("/api/buckets/get_upload_token.json",{method:"get"});case 3:return d=e.sent,console.log("decrypt(res.data):",N(d.data)),d.data=JSON.parse(N(d.data)),(v=n.name.split(".")).pop(),f=t.realFileName?v.join(""):(0,j.Z)(),m=new(k())({endpoint:null==d||null===(a=d.data)||void 0===a?void 0:a.end_point,region:null==d||null===(i=d.data)||void 0===i?void 0:i.region,accessKeyId:null==d||null===(r=d.data)||void 0===r?void 0:r.access_key_id,accessKeySecret:null==d||null===(s=d.data)||void 0===s?void 0:s.access_key_secret,bucket:null==d||null===(o=d.data)||void 0===o?void 0:o.bucket,stsToken:null==d||null===(c=d.data)||void 0===c?void 0:c.security_token}),e.abrupt("return",new Promise((function(e,a){var i;m.multipartUpload("".concat(f),new Blob([n],{type:n.type}),u()(u()({timeout:2e5,partSize:102400},l),{},{callback:{url:null==d||null===(i=d.data)||void 0===i?void 0:i.callback_url,host:null==d?void 0:d.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,g.rz)(t)}})).then((function(t){var l;n.response=null===(l=t.data)||void 0===l?void 0:l.data,e(null==t?void 0:t.data)})).catch((function(e){a(e),console.log("err:",e)}))})));case 11:case"end":return e.stop()}}),e)})));return function(n,t,l){return e.apply(this,arguments)}}();n.ZP=(0,_.connect)((function(e){var n=e.loading,t=e.globalSetting,l=e.user;return{globalSetting:t,loading:n.models.competitions,user:l}}))((function(e){var n,t=e.user,l=e.cancelUpload,i=o()(e,S),s=(0,m.useState)([]),c=r()(s,2),d=c[0],v=c[1],h=(0,m.useState)(),b=r()(h,2),y=b[0],_=b[1],Z={onRemove:function(e){v(a()(d.filter((function(n){return n.name!==e.name})))),i.onChange(d.filter((function(n){return n.name!==e.name})))},disabled:i.disabled,multiple:!0,fileList:null==d?void 0:d.map((function(e){return e.file})),customRequest:function(){},beforeUpload:(n=f()(p()().mark((function e(n){var t;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.maxSize||1073741824,!d.filter((function(e){return e.name===n.name})).length){e.next=4;break}return x.ZP.info("".concat(n.name,"已存在,请重新选择")),e.abrupt("return");case 4:if(!((null==n?void 0:n.size)>t)){e.next=7;break}return x.ZP.info("文件超过".concat(t/1024/1024/1024,"GB,不符合上传要求")),e.abrupt("return",!1);case 7:return d.push({name:n.name,file:n}),v(a()(d)),i.onChange(d),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},I=function(){var e=f()(p()().mark((function e(n,t){var l,r,s,o,c,u,f,m,h,b;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.file_name=n.name,f=n.name,e.next=4,(0,g.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 4:if((m=e.sent).data=JSON.parse(N(m.data)),0===(null==m?void 0:m.status)){e.next=12;break}return d[d.findIndex((function(e){return e.name===f}))].status="error",d[d.findIndex((function(e){return e.name===f}))].file.status="error",i.onChange(d),x.ZP.warning("上传失败,请重新尝试"),e.abrupt("return");case 12:return y=new(k())({endpoint:null==m||null===(l=m.data)||void 0===l?void 0:l.end_point,region:null==m||null===(r=m.data)||void 0===r?void 0:r.region,accessKeyId:null==m||null===(s=m.data)||void 0===s?void 0:s.access_key_id,accessKeySecret:null==m||null===(o=m.data)||void 0===o?void 0:o.access_key_secret,bucket:null==m||null===(c=m.data)||void 0===c?void 0:c.bucket,stsToken:null==m||null===(u=m.data)||void 0===u?void 0:u.security_token}),console.log(n,"file"),_(y),(h=n.name.split(".")).pop(),b=t.realFileName?h.join("."):(0,j.Z)(),e.abrupt("return",new Promise((function(e,l){try{var r;y.multipartUpload("".concat(i.identifier,"/").concat(b).concat(f.indexOf(".")>-1?"."+f.split(".").pop():""),new Blob([n.file],{type:n.file.type}),{timeout:36e5,partSize:1002400,progress:function(e,n,t){try{console.log("进度",e,n,t);var l=d.findIndex((function(e){return e.name===f}));d[l].file.percent=100*e,d[l].tempCheckpoint=n,v(a()(d))}catch(e){}},checkpoint:d[d.findIndex((function(e){return e.name===f}))].tempCheckpoint,callback:{customValue:{id:f+""},url:null==m||null===(r=m.data)||void 0===r?void 0:r.callback_url,host:null==m?void 0:m.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,g.rz)(t)}}).then((function(t){var l,a=d.findIndex((function(e){return e.name===f})),r="done";if(0===(null===(l=t.data)||void 0===l?void 0:l.status)){var s;n.response=null===(s=t.data)||void 0===s?void 0:s.data;var o=d.findIndex((function(e){return e.name===f}));d[o].status="done",d[o].file.status="done"}else{var c;x.ZP.warning(null===(c=t.data)||void 0===c?void 0:c.message),r="error"}d[a].status=r,d[a].file.status=r,i.onChange(d),e(null==t?void 0:t.data)})).catch((function(e){d[d.findIndex((function(e){return e.name===f}))].status="error",d[d.findIndex((function(e){return e.name===f}))].file.status="error",x.ZP.warning("上传失败,请重新尝试"),v(a()(d)),i.onChange(d),l(e),console.log("err:",e)}))}catch(e){}})));case 19:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}();return(0,m.useEffect)((function(){d.every((function(e){return"done"===e||"error"===e}))&&i.onComplete(d)}),[d]),(0,m.useEffect)((function(){var e;l&&(null===(e=y)||void 0===e||e.cancel())}),[l]),(0,m.useEffect)((function(){i.uploading&&d.map(function(){var e=f()(p()().mark((function e(n){var a;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.status&&"error"!==n.status||l){e.next=6;break}return n.status="uploading",n.file.status="uploading",e.next=5,I(n,{login:null==t||null===(a=t.userInfo)||void 0===a?void 0:a.login,container_type:i.container_type,container_id:i.container_id,description:i.description,realFileName:i.realFileName});case 5:e.sent;case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}())}),[i.uploading]),(0,w.jsx)(C,u()(u()({},Z),{},{height:i.height,className:i.className,children:(0,w.jsx)("p",{className:"ant-upload-hint",children:i.text||"拖拽文件或者点击上传"})}))}))},17124:function(e,n,t){"use strict";t.d(n,{h:function(){return x}});var l=t(82242),a=t.n(l),i=t(79800),r=t.n(i),s=t(59301),o=t(57809),c=t(78241),u=t(3113),d=t(89780),p=t.n(d),v=(t(66543),t(59598),t(37712)),f=o.default.Option,m={labelCol:{span:4},wrapperCol:{span:20}},h={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function x(e){var n=e.value,t=e.onChange,l=e.mode,i=e.options,o=void 0===i?{}:i,c=(0,s.useRef)(),u=(0,s.useState)(),d=r()(u,2),f=d[0],m=d[1];return(0,s.useEffect)((function(){if(f){var e=function(e){var n=e.getValue();t&&t(n)};return f.on("change",e),function(){f.off("change",e)}}}),[f,t]),(0,s.useEffect)((function(){f&&f.setOption("mode",l)}),[f,l]),(0,s.useEffect)((function(){f&&(n===f.getValue()&&""!==n||setTimeout((function(){f.setValue(n||"")}),300))}),[f,n]),(0,s.useEffect)((function(){if(c.current&&!f){var e=p().fromTextArea(c.current,a()({mode:l,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},o));m(e)}}),[c.current,f]),(0,v.jsx)("div",{className:"my-codemirror-container",children:(0,v.jsx)("textarea",{ref:c})})}n.Z=function(e){var n=e.callback,t=e.onCancel,l=(0,s.useState)("python"),i=r()(l,2),d=i[0],p=i[1];return(0,v.jsxs)(c.Z,a()(a()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){n(e)},children:[(0,v.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,v.jsx)(o.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(h[e][1])},children:Object.keys(h).map((function(e){return(0,v.jsx)(f,{value:e,children:h[e][0]},e)}))})}),(0,v.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,v.jsx)(x,{mode:d})}),(0,v.jsxs)("div",{className:"flex-container flex-end",children:[(0,v.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,v.jsx)(u.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))}},59081:function(e,n,t){"use strict";t.d(n,{Z:function(){return oe}});var l=t(91232),a=t.n(l),i=t(7557),r=t.n(i),s=t(41498),o=t.n(s),c=t(79800),u=t.n(c),d=t(85573),p=t.n(d),v=t(59301),f=t(89780),m=t.n(f),h=t(76374),x=(t(66543),t(6313),t(25717),t(99498),t(25419),t(67549),t(71212)),g=t(37712),b=function(e){var n=e.value,t=void 0===n?"":n,l=(e.className,e.showTextOnly,e.showLines,e.style,(0,v.useMemo)((function(){return""}),[t]));return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{dangerouslySetInnerHTML:{__html:l}})})},y=t(82242),j=t.n(y),_=[{title:"粗体",icon:"icon-bold",actionName:"bold"},{title:"斜体",icon:"icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"icon-file-code",actionName:"code-block"},{title:"链接",icon:"icon-link",actionName:"link"},"|",{title:"行内公式",icon:"icon-sum",actionName:"inline-latex"},{title:"多行公式",icon:"icon-formula",actionName:"latex"},"|",{title:"添加图片",icon:"icon-picture",actionName:"upload-image"},{title:"表格",icon:"icon-table",actionName:"add-table"},"|",{title:"换行",icon:"icon-minus",actionName:"line-break"},{title:"清空",icon:"icon-eraser",actionName:"eraser"}];function Z(e){var n=e.onActionCallback,t=e.title,l=e.icon,a=e.actionName,i=e.className,r=void 0===i?"":i,s=e.children;return(0,g.jsxs)("a",{title:t,className:r,onClick:function(){n(a)},children:[(0,g.jsx)("i",{className:"md-iconfont ".concat(l)}),s]})}var k=function(e){var n=e.watch,t=e.showNullButton,l=e.showNullProgramButton,a=e.onActionCallback,i=e.fullScreen,r=e.insertTemp,s=e.hidetoolBar,o=[].concat(_,[{title:"".concat(n?"关闭实时预览":"开启实时预览"),icon:"".concat(n?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return(0,g.jsxs)("ul",{className:"markdown-toolbar-container",children:[!s&&o.map((function(e,n){return(0,g.jsx)("li",{children:e.actionName?(0,g.jsx)(Z,j()(j()({},e),{},{onActionCallback:a})):(0,g.jsx)("span",{className:"v-line"})},n)})),t?(0,g.jsx)("li",{children:(0,g.jsx)(Z,{icon:"icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:a,children:(0,g.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,l?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("li",{children:(0,g.jsx)(Z,{icon:"icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:a,children:(0,g.jsx)("span",{className:"fill-tip",children:"添加单行填空项"})})}),(0,g.jsx)("li",{children:(0,g.jsx)(Z,{icon:"icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:a,children:(0,g.jsx)("span",{className:"fill-tip",children:"添加多行填空项"})})})]}):null,r&&(0,g.jsx)("li",{children:(0,g.jsx)(Z,{icon:"icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(r),onActionCallback:a,children:(0,g.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),(0,g.jsx)("li",{className:"btn-full-screen",children:(0,g.jsx)(Z,{icon:"".concat(i?"icon-shrink":"icon-enlarge"),title:i?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:a})})]})},w=t(82255),S=t(78241),C=t(10249),N=t(3113),I={labelCol:{span:4},wrapperCol:{span:20}},P=function(e){var n=e.callback,t=e.onCancel;return(0,g.jsxs)(S.Z,j()(j()({},I),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){n(e)},children:[(0,g.jsx)(S.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,g.jsx)(C.Z,{})}),(0,g.jsx)(S.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,g.jsx)(C.Z,{})}),(0,g.jsxs)("div",{className:"flex-container flex-end",children:[(0,g.jsx)(N.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,g.jsx)(N.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))},E=t(17124),T=t(8591),R=t(78988),O=S.Z.useForm,L={width:280,marginRight:10},z={labelCol:{span:5},wrapperCol:{span:19}},M=function(e){var n=e.callback,t=e.onCancel,l=O(),a=u()(l,1)[0],i=(0,v.useRef)();function r(e,n){-1!==e.status?a.setFieldsValue({src:"/api/attachments/".concat(e.id),type:n.type}):T.ZP.error(e.message)}return(0,g.jsxs)(S.Z,j()(j()({form:a},z),{},{className:"upload-image-panel",onFinish:function(e){n(j()(j()({},e),{},{name:i.current}))},style:{width:470,overflow:"hidden"},children:[(0,g.jsx)(S.Z.Item,{label:"图片地址",required:!0,children:(0,g.jsxs)("div",{className:"flex-container",children:[(0,g.jsx)(S.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入文件地址"}],children:(0,g.jsx)(C.Z,{style:L})}),(0,g.jsx)(A,{onFileChange:function(e){var n=e.target.files[0];i.current=n.name,D(n,r)}})]})}),(0,g.jsx)(S.Z.Item,{label:"图片描述",name:"alt",children:(0,g.jsx)(C.Z,{style:{width:264}})}),(0,g.jsxs)(S.Z.Item,{style:{textAlign:"right"},children:[(0,g.jsx)(N.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,g.jsx)(N.ZP,{type:"default",onClick:t,children:"取消"})]})]}))};function A(e){var n=e.onFileChange;return(0,g.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,g.jsx)("input",{type:"file",onChange:n})]})}function D(e,n){if(!e)throw new String("没有文件");var t=new FormData;t.append("editormd-image-file",e),t.append("file_param_name","editormd-image-file"),t.append("byxhr","true");var l=new window.XMLHttpRequest;l.withCredentials=!0,l.addEventListener("load",(function(t){n(JSON.parse(t.target.responseText),e)}),!1),l.addEventListener("error",(function(e){console.error(e)}),!1),l.open("POST","".concat(R.KI,"/api/attachments.json")),l.send(t)}var $=t(5112),B=t(5871),F=$.ZP.Group,V={margin:"0 8px"},H=function(e){var n=e.callback,t=e.onCancel;return(0,g.jsxs)(S.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){n(e)},children:[(0,g.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,g.jsx)("span",{style:V,children:"单元格数:"}),(0,g.jsx)("span",{style:V,children:"行数"}),(0,g.jsx)(S.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,g.jsx)(B.Z,{})}),(0,g.jsx)("span",{style:V,children:"列数"}),(0,g.jsx)(S.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,g.jsx)(B.Z,{})})]}),(0,g.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,g.jsx)("span",{style:V,children:"对齐方式:"}),(0,g.jsx)(S.Z.Item,{name:"align",children:(0,g.jsxs)(F,{children:[(0,g.jsx)($.ZP,{value:"default",children:(0,g.jsx)("i",{className:"fa fa-align-justify"})}),(0,g.jsx)($.ZP,{value:"left",children:(0,g.jsx)("i",{className:"fa fa-align-left"})}),(0,g.jsx)($.ZP,{value:"center",children:(0,g.jsx)("i",{className:"fa fa-align-center"})}),(0,g.jsx)($.ZP,{value:"right",children:(0,g.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,g.jsxs)("div",{className:"flex-container flex-end",children:[(0,g.jsx)(N.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,g.jsx)(N.ZP,{type:"ghost",onClick:t,children:"取消"})]})]})},W=t(91689),Y=t(94171),G=t(1012),U=t(43418),q="link",J="upload-image",K="code-block",X="add-table",Q="------------",ee={default:Q,left:":".concat(Q),center:":".concat(Q,":"),right:"".concat(Q,":")},ne=t(22336);var te="@▁▁@";function le(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var ae=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ie=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],re=p()(p()({},ae+"-B","bold"),ae+"-I","italic"),se=p()(p()(p()(p()({},q,"添加链接"),K,"添加代码块"),J,"添加文件"),X,"添加表格"),oe=function(e){var n=e.defaultValue,t=void 0===n?"":n,l=e.onChange,i=e.width,s=void 0===i?"100%":i,c=e.height,d=void 0===c?400:c,f=e.miniToolbar,y=void 0!==f&&f,j=e.isFocus,_=void 0!==j&&j,Z=e.watch,S=e.insertTemp,C=e.mode,N=void 0===C?"markdown":C,I=e.id,R=void 0===I?"markdown-editor-id":I,O=e.showResizeBar,L=void 0!==O&&O,z=e.noStorage,A=void 0!==z&&z,$=e.showNullButton,B=void 0!==$&&$,F=e.showNullProgramButton,V=void 0!==F&&F,Q=e.hidetoolBar,ae=void 0!==Q&&Q,oe=e.fullScreen,ce=void 0!==oe&&oe,ue=e.onBlur,de=e.onCMBeforeChange,pe=e.onFullScreen,ve=e.className,fe=void 0===ve?"":ve,me=e.disablePaste,he=void 0!==me&&me,xe=e.disabled,ge=void 0!==xe&&xe,be=e.disabledFill,ye=void 0!==be&&be,je=e.placeholder,_e=void 0===je?"":je,Ze=e.values,ke=void 0===Ze?"":Ze,we=(0,v.useState)(null),Se=u()(we,2),Ce=Se[0],Ne=Se[1],Ie=(0,v.useState)(t),Pe=u()(Ie,2),Ee=Pe[0],Te=Pe[1],Re=(0,v.useState)(Z),Oe=u()(Re,2),Le=Oe[0],ze=Oe[1],Me=(0,v.useState)(ce),Ae=u()(Me,2),De=Ae[0],$e=Ae[1],Be=(0,v.useState)(""),Fe=u()(Be,2),Ve=Fe[0],He=Fe[1],We=(0,v.useState)(0),Ye=u()(We,2),Ge=Ye[0],Ue=Ye[1],qe=(0,v.useState)(d),Je=u()(qe,2),Ke=Je[0],Xe=Je[1],Qe=(0,v.useState)(!1),en=u()(Qe,2),nn=(en[0],en[1]),tn=(0,v.useRef)((0,G.Z)()),ln=(0,v.useRef)(!1),an=(0,v.useRef)(),rn=(0,v.useRef)(),sn=(0,v.useRef)(),on=(0,v.useRef)(),cn=(0,v.useRef)(),un=function(){var e=o()(r()().mark((function e(){var n,t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Y.ZP)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:tn.current}});case 2:null!=(t=e.sent)&&null!==(n=t.attachments)&&void 0!==n&&n.length&&(console.log("cm:",Ce,rn),t.attachments.map((function(e){e.content_type.indexOf("image")>-1?Ce.replaceSelection(".concat(e.content_type,")")):e.content_type.indexOf("video")>-1?Ce.replaceSelection('<video width="100%" controls src="'.concat(W.Z.API_SERVER,"/api/attachments/").concat(data.id,'"></video>')):e.content_type.indexOf("pdf")>-1?Ce.replaceSelection('<a href="'.concat(W.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,'&disposition=inline" target="_blank">').concat(e.name,"</a>")):Ce.replaceSelection("[".concat(e.name,"](").concat(W.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")"))})));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,v.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Te(ke),null==Ce||Ce.setValue(ke),window.scrollTo(0,e)}),[ke]),(0,v.useEffect)((function(){null==pe||pe(De)}),[De]),(0,v.useEffect)((function(){if(rn.current){var e=function(e,t){if(!he){var l=t.clipboardData;if(l){var a=l.types.toString(),i=l.items;if("Files"===a||l.types.indexOf("Files")>-1){if(t.preventDefault(),"stex"==N)return;try{var r,s=i[1];"file"===(null===(r=i[0])||void 0===r?void 0:r.kind)&&(s=i[0]);var o=s.getAsFile(),c=o.name.split(".").pop();D(o,(function(e){var t,l,a;e.id?(null==o||null===(t=o.type)||void 0===t?void 0:t.indexOf("image"))>-1?n.replaceSelection(".concat(e.content_type,")")):(null==o||null===(l=o.type)||void 0===l?void 0:l.indexOf("video"))>-1?n.replaceSelection('<video width="100%" controls src="'.concat(W.Z.API_SERVER,"/api/attachments/").concat(e.id,'"></video>')):(null==o||null===(a=o.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?n.replaceSelection('<a href="'.concat(W.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(o.type,'&disposition=inline" target="_blank">').concat(o.name,"</a>")):ie.includes(c)?n.replaceSelection('<a href="'.concat(W.Z.API_SERVER,"/api/attachments/").concat(e.id,'?type=office&disposition=inline" target="_blank">').concat(o.name,"</a>")):n.replaceSelection("[".concat(o.name,"](").concat(W.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(t){T.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}t.preventDefault()},n=m().fromTextArea(rn.current,{mode:N,lineNumbers:!y,lineWrapping:!0,value:t,autoCloseTags:!V,autoCloseBrackets:!0});return n.on("keyup",(function(e,t){8===t.keyCode&&(""==e.getValue()?n.setOption("placeholder",_e):n.setOption("placeholder",null))})),n.on("keydown",(function(e,n){if(8===n.keyCode){var t=function(e,n){var t=e.getDoc(),l=t.getCursor(),a=t.getLine(l.line),i=a.charAt(l.ch-1),r=a.lastIndexOf("@▁@",l.ch),s=a.lastIndexOf("@▁▁@",l.ch),o=r>s?r:s,c=r>s?3:4;if(-1===te.indexOf(i))return null;if(console.log("change1:",n,e,a,l,o,r,s,i),o>=0&&l.ch-o<5){var u=o+c;return t.replaceRange("",{line:l.line,ch:o},{line:l.line,ch:u}),{line:l.line,ch:u}}return null}(e);t&&n.preventDefault()}})),_&&n.focus(),n.on("paste",e),n.on("dragleave",(function(e,n){sn.current.classList.remove("mouse-hover-md")})),n.on("dragover",(function(e,n){sn.current.classList.add("mouse-hover-md")})),n.on("drop",(function(e,t){var l;if(sn.current.classList.add("mouse-hover-md"),(l=t.dataTransfer.files).length>0){t.preventDefault(),t.stopPropagation();for(var a=function(){var e=l[i],t=e.name.split(".").pop();D(e,(function(l){var a,i,r;l.id?(null==e||null===(a=e.type)||void 0===a?void 0:a.indexOf("image"))>-1?n.replaceSelection(".concat(l.content_type,")")):(null==e||null===(i=e.type)||void 0===i?void 0:i.indexOf("video"))>-1?n.replaceSelection('<video width="100%" controls src="'.concat(W.Z.API_SERVER,"/api/attachments/").concat(l.id,'"></video>')):(null==e||null===(r=e.type)||void 0===r?void 0:r.indexOf("pdf"))>-1?n.replaceSelection('<a href="'.concat(W.Z.API_SERVER,"/api/attachments/").concat(l.id,"?type=").concat(e.type,'&disposition=inline" target="_blank">').concat(e.name,"</a>")):ie.includes(t)?n.replaceSelection('<a href="'.concat(W.Z.API_SERVER,"/api/attachments/").concat(l.id,'?type=office&disposition=inline" target="_blank">').concat(e.name,"</a>")):n.replaceSelection("[".concat(e.name,"](").concat(W.Z.API_SERVER,"/api/attachments/").concat(l.id,"?type=").concat(l.content_type,")")):401===(null==l?void 0:l.status)&&(document.location.href="/user/login")}))},i=0;i<l.length;i++)a()}})),ge&&n.on("beforeChange",(function(e,n){"paste"!==n.origin&&"+input"!==n.origin||n.cancel()})),Ne(n),function(){n.off("paste",e)}}}),[]);var dn=(0,v.useCallback)((function(){sn.current}),[Ke,sn,De]);(0,v.useEffect)((function(){if(Ce){var e=function(){var e=new h.Z((function(e){var n,t=a()(e);try{for(t.s();!(n=t.n()).done;){var l=n.value;(l.target.offsetHeight>0||l.target.offsetWidth>0)&&(dn(),Ce.setSize("100%","100%"),Ce.refresh())}}catch(e){t.e(e)}finally{t.f()}}));return e.observe(rn.current.parentElement),e}();return function(){var n,t;null!==(n=rn.current)&&void 0!==n&&n.parentElement&&e.unobserve(null===(t=rn.current)||void 0===t?void 0:t.parentElement)}}}),[Ce,dn]),(0,v.useEffect)((function(){if(Ce){for(var e=[],n=function(){var n=u()(l[t],2),a=n[0],i=n[1],r=p()({},a,(function(){pn(i)}));e.push(r),Ce.addKeyMap(r)},t=0,l=Object.entries(re);t<l.length;t++)n();return an.current=setInterval((function(){ln.current&&un()}),4e3),function(){clearInterval(an.current);for(var n=0,t=e;n<t.length;n++){var l=t[n];Ce.removeKeyMap(l)}}}}),[Ce]),(0,v.useEffect)((function(){ce!==De&&$e(ce)}),[ce]),(0,ne.Z)((function(){if(!A&&Ge>0){var e=(new Date).getTime(),n=window.sessionStorage.getItem(R);e>=Ge+1e4&&(!n||n!==Ee)&&(window.sessionStorage.setItem(R,Ee),nn(!0))}}),1e4),(0,v.useEffect)((function(){ze(Z)}),[Ce,Z]),(0,v.useEffect)((function(){Ce&&_&&Ce.focus()}),[Ce,_]),(0,v.useEffect)((function(){if(Le&&Ce){var e=function(e){var n=e.target;if(cn.current){var t=n.scrollTop/n.scrollHeight;cn.current.scrollTop=cn.current.scrollHeight*t}},n=Ce.getScrollerElement();return n.addEventListener("scroll",e),function(){n.removeEventListener("scroll",e)}}}),[Ce,Le]),(0,v.useEffect)((function(){if(Ce&&de){var e=function(e,n){de(e,n)};return Ce.on("beforeChange",e),function(){Ce.off("beforeChange",e)}}}),[Ce,de]),(0,v.useEffect)((function(){if(Ce&&ue){var e=function(){ue(Ce.getValue())};return Ce.on("blur",e),function(){Ce.off("blur",e)}}}),[Ce,ue]),(0,v.useEffect)((function(){if(Ce){var e=function(e,n){var t=e.getValue();Te(t),Ue((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),l&&(V?l(t,xn(t)):l(t))};return Ce.on("change",e),function(){Ce.off("change",e)}}}),[Ce,l]),(0,v.useEffect)((function(){if(Ce)if(null==t)Ce.setValue(""),Te("");else{var e=window.scrollY||window.pageYOffset;t!==Ce.getValue()&&(Ce.setValue(t),Te(t),Ce.setCursor(ge?1:Ce.lineCount(),0),window.scrollTo(0,e))}}),[Ce,t]);var pn=(0,v.useCallback)((function(e){var n=Ce.getCursor(),t=Ce.getSelection(),l=t.split("\n");switch(e){case"bold":return Ce.replaceSelection("**"+t+"**"),""===t&&Ce.setCursor(n.line,n.ch+2),Ce.focus();case"italic":return Ce.replaceSelection("*"+t+"*"),""===t&&Ce.setCursor(n.line,n.ch+1),Ce.focus();case"code":return Ce.replaceSelection("`"+t+"`"),""===t&&Ce.setCursor(n.line,n.ch+1),Ce.focus();case"inline-latex":return Ce.replaceSelection("`$$"+t+"$$`"),""===t&&Ce.setCursor(n.line,n.ch+3),Ce.focus();case"latex":return Ce.replaceSelection("```latex\n"+t+"\n```"),Ce.setCursor(n.line+1,t.length+1),Ce.focus();case"line-break":return Ce.replaceSelection("<br/>\n"),Ce.focus();case"list-ul":return""===t?Ce.replaceSelection("- "+t):Ce.replaceSelection(l.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ce.focus();case"list-ol":return""===t?Ce.replaceSelection("1. "+t):Ce.replaceSelection(l.map((function(e,n){return""===e?"":"".concat(n+1,". ").concat(e)})).join("\n")),Ce.focus();case"add-null-ch":return""===t&&Ce.setCursor(n.line,n.ch),Ce.replaceSelection("▁"),Ce.focus();case"add-signal":return""===t&&Ce.setCursor(n.line,n.ch),Ce.replaceSelection("@▁@"),Ce.focus();case"add-multiple":return""===t&&Ce.setCursor(n.line,n.ch),Ce.replaceSelection(te),Ce.focus();case"inster-template-1":return""===t&&Ce.setCursor(n.line,n.ch),Ce.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Ce.focus();case"eraser":return Ce.setValue(""),Ce.focus();case"trigger-watch":return ze(!Le),Ce.focus();case"trigger-full-screen":return $e(!De),Ce.focus();case q:return void He(q);case K:return void He(K);case J:return void He(J);case X:return void He(X);default:throw new Error}}),[Ce,Le,De]),vn=(0,v.useCallback)((function(e){switch(He(""),Ve){case q:var n=e.title,t=e.link;return Ce.replaceSelection("[".concat(n,"](").concat(t,")")),Ce.focus();case K:var l=e.language,a=e.content;return Ce.replaceSelection(["```"+l,a,"```"].join("\n")),Ce.focus();case J:var i=e.src,r=e.alt;return r?Ce.replaceSelection(".concat(i,' "').concat(r,'" )')):Ce.replaceSelection("")),Ce.focus();case X:for(var s=e.row,o=e.col,c=e.align,u="\n",d=0;d<s;d++){for(var p=[],v=[],f=0;f<o;f++)1===d&&v.push(ee[c]),p.push(" ");1===d&&(u+="| ".concat(v.join(" | ")," |\n")),u+="| ".concat(p.join(1===o?"":" | ")," |\n")}return Ce.replaceSelection(u+"\n"),Ce.focus();default:throw new Error}}),[Ce,Ve]),fn=(0,v.useMemo)((function(){switch(Ve){case q:return(0,g.jsx)(P,{callback:vn,onCancel:mn});case K:return(0,g.jsx)(E.Z,{callback:vn,onCancel:mn});case J:return(0,g.jsx)(M,{callback:vn,onCancel:mn});case X:return(0,g.jsx)(H,{callback:vn,onCancel:mn});default:return null}}),[Ve]);function mn(){He("")}(0,v.useEffect)((function(){if(on.current){var e=function(e){a=!0,i=e.pageY},n=function(){a=!1},t=function(e){if(a){var n=e.pageY-i;n<0&&(n=0),n>300&&(n=300),Xe(d+n+"px")}},l=on.current,a=!1,i=0;return l.addEventListener("mousedown",e),document.addEventListener("mousemove",t),document.addEventListener("mouseup",n),function(){l.removeEventListener("mousedown",e),document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",n)}}}),[Ce,on]),(0,v.useEffect)((function(){Xe(d)}),[d]);var hn={width:le(s),height:le(Ke)},xn=((0,v.useMemo)((function(){if(Ge){var e=new Date(Ge),n=e.getHours(),t=e.getMinutes(),l=e.getSeconds();return t=t<10?"0"+t:t,l=l<10?"0"+l:l,"".concat(n=n<10?"0"+n:n,":").concat(t,":").concat(l)}return 0}),[Ge]),function(e){var n=[];if(V){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,t,l){n.push({multiLine:!("@▁@"===e)})}))}return n});return(0,g.jsxs)(v.Fragment,{children:[(0,g.jsx)("div",{className:"markdown-editor-wrapper",ref:sn,children:(0,g.jsxs)("div",{className:"markdown-editor-container ".concat(fe," ").concat(Le?"on-preview":""," ").concat(y?"mini":""," ").concat(De?"full-screen":""),style:hn,children:[(0,g.jsx)(k,{insertTemp:S,watch:Le,fullScreen:De,showNullButton:B,showNullProgramButton:V,onActionCallback:pn,hidetoolBar:ae,uuid:tn.current,setOpenPhones:function(){ln.current=!0}}),(0,g.jsxs)("div",{className:"markdown-editor-body",children:[(0,g.jsx)("div",{className:"codemirror-container",children:(0,g.jsx)("textarea",{ref:rn,placeholder:_e})}),Le?(0,g.jsxs)("div",{ref:cn,className:"preview-container",children:["stex"===N&&(0,g.jsx)(b,{value:Ee}),"stex"!==N&&(0,g.jsx)(x.Z,{disabledFill:ye,showProgramFill:V,value:Ee})]}):null]})]})}),L?(0,g.jsx)("a",{ref:on,className:"editor-resize"}):null,(0,g.jsx)(w.Z,{children:se[Ve]?(0,g.jsx)(U.Z,{centered:!0,title:se[Ve],open:!0,onCancel:mn,footer:null,className:"markdown-popup-form",children:fn}):null})]})}},82255:function(e,n,t){"use strict";t.d(n,{Z:function(){return v}});var l=t(82100),a=t.n(l),i=t(29186),r=t.n(i),s=t(80619),o=t.n(s),c=t(47074),u=t.n(c),d=t(59301),p=t(4676),v=function(e){o()(t,e);var n=u()(t);function t(e){var l;a()(this,t),l=n.call(this,e);var i=window.document;return l.node=i.createElement("div"),i.body.appendChild(l.node),l}return r()(t,[{key:"render",value:function(){var e=this.props.children;return(0,p.createPortal)(e,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),t}(d.Component)},22336:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var l=t(59301);function a(e,n){var t=(0,l.useRef)();(0,l.useEffect)((function(){t.current=e})),(0,l.useEffect)((function(){if(null!==n){var e=setInterval((function(){t.current()}),n);return function(){return clearInterval(e)}}}),[n])}},81194:function(e,n,t){"use strict";t.d(n,{Z:function(){return Me}});var l=t(70236),a=t.n(l),i=t(79800),r=t.n(i),s=t(59301),o=t(49389),c=t(5112),u=t(7557),d=t.n(u),p=t(41498),v=t.n(p),f=t(46211),m=t(6848),h=t(1710),x=t(95237),g=t(43604),b=t(128),y=t(91689),j=t(82742),_=t(37712);var Z=function(e){var n,t,l,a,i,c,u,p=e.Prize,Z=(0,o.useParams)(),k=(0,s.useState)([{type:1,name:"团体奖证书"},{type:2,name:"个人奖证书"},{type:3,name:"优秀指导教师证书"}]),w=r()(k,2),S=w[0],C=(w[1],function(){var e=v()(d()().mark((function e(n){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.Ju)({type:n.type,id:Z.identifier});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(location.href="/competitions/exports?id=".concat(Z.identifier,"&type=").concat(n.type));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()),N=[{title:"角色",dataIndex:"role",align:"center",width:80,render:function(e){return(0,_.jsx)(m.Z,{placement:"topLeft",title:e,children:e||"--"})}},{title:"姓名",dataIndex:"name",width:100,render:function(e){return(0,_.jsx)(m.Z,{placement:"topLeft",title:e,children:e||"--"})}},{title:"实名认证",width:100,dataIndex:"real_name_auth",render:function(e){return"authed"===e?"已认证":"authing"===e?"待审核":"未认证"}},{title:"职业认证",width:100,dataIndex:"professional_auth",render:function(e){return"authed"===e?"已认证":"authing"===e?"待审核":"未认证"}},{title:"手机号",dataIndex:"phone_binded",width:100,render:function(e){return e?"已绑定":"未绑定"}},{title:"邮箱号",dataIndex:"email_binded",width:100,render:function(e){return e?"已绑定":"未绑定"}},{title:"开户行及银行卡号信息(队长填写)",dataIndex:"role",align:"center",render:function(e,n){var t,l,a;return"队长"===(null==n?void 0:n.role)?(0,_.jsxs)("span",{style:{width:"50%",textAlign:"center"},children:[(null==p?void 0:p.teams)&&(null==p||null===(t=p.teams[0])||void 0===t||null===(t=t.bank_account)||void 0===t?void 0:t.bank),(null==p?void 0:p.teams)&&(null==p||null===(l=p.teams[0])||void 0===l||null===(l=l.bank_account)||void 0===l?void 0:l.second_bank),(null==p?void 0:p.teams)&&(null==p||null===(a=p.teams[0])||void 0===a||null===(a=a.bank_account)||void 0===a?void 0:a.card_no)]}):"--"}}];return(0,_.jsxs)("div",{children:[(0,_.jsx)("p",{className:f.Z.downloadpdf,children:"温馨提示:填写的个人信息经审批后,将提供个人获奖证书下载;团队队员信息全部审批后,将提供团队获奖证书下载。"}),(0,_.jsx)("p",{style:{marginTop:"30px",fontSize:"14px",color:"#232B40",fontWeight:"600"},children:"证书情况"}),(null==p||null===(n=p.personal_certifications)||void 0===n?void 0:n.length)>0?(0,_.jsxs)("p",{children:[(0,_.jsx)("span",{children:"个人证书:"}),(0,_.jsx)("img",{src:y.Z.IMG_SERVER+"/images/educoder/pdfs.png"}),(0,_.jsx)("a",{style:{marginLeft:"5px"},href:y.Z.API_SERVER+"".concat(null==p||null===(t=p.personal_certifications[0])||void 0===t?void 0:t.url),children:"立即下载"})]}):(0,_.jsxs)("p",{children:[(0,_.jsxs)("span",{children:["个人证书:",(0,_.jsx)("span",{style:{color:"#000"},children:"暂未生成"})]}),(0,_.jsx)("span",{className:"c-red",style:{marginLeft:"20px"},children:"原因:组委会未完成证书审批,请稍后"})]}),(null==p||null===(l=p.team_certifications)||void 0===l?void 0:l.length)>0?(0,_.jsxs)("p",{children:[(0,_.jsx)("span",{children:"团队证书:"}),(0,_.jsx)("img",{src:y.Z.IMG_SERVER+"/images/educoder/pdfs.png"}),(0,_.jsx)("a",{style:{marginLeft:"5px"},href:y.Z.API_SERVER+"".concat(null==p||null===(a=p.team_certifications[0])||void 0===a?void 0:a.url),children:"立即下载"})]}):(0,_.jsx)("p",{children:(0,_.jsxs)("span",{children:["团队证书:",(0,_.jsx)("span",{style:{color:"#000"},children:"暂未生成"})]})}),(null==p||null===(i=p.teams)||void 0===i?void 0:i.length)>0&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("p",{children:[(null==p?void 0:p.teams)&&(null==p||null===(c=p.teams[0])||void 0===c?void 0:c.name),"战队信息填报概况"]}),(0,_.jsx)(h.Z,{columns:N,dataSource:null==p||null===(u=p.teams[0])||void 0===u?void 0:u.team_members,pagination:!1})]}),(0,_.jsx)(x.Z,{style:{marginTop:"20px"},gutter:[20,20],children:S.map((function(e,n){return(0,_.jsx)(g.Z,{children:(0,_.jsx)(j.Z,{icon:(0,_.jsx)("i",{className:"iconfont icon-xiazai5",style:{marginRight:"6px"}}),className:f.Z.pdfBut,onClick:v()(d()().mark((function n(){return d()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,C(e);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)}))),children:e.name})},n)}))})]})},k=t(82242),w=t.n(k),S=t(39647),C=t.n(S),N=t(54580),I=t(78241),P=t(8591),E=t(43418),T=t(71418),R=t(10249),O=t(3113),L=t(83287),z=t(98814),M="modal___A9Ovz",A="formWrap___wRvaA",D="flexRow___C40dc",$="flexColumn___LkZfj",B="example___bz7Hw",F="exampleImg___gNkC_",V="colorOrange___Ka6zf",H="uploader___plQRr",W="uploadImg___cjOpL",Y="imageTip___p1_lZ",G="uploadTipIcon___SpsS2",U="uploadTip___e9JlL",q="color05101a___CDEUv",J="viewLargerImg___IclRX",K="footerWrap___beWC6",X="note___CXi9y",Q="schoolHintWrap___Ma6ly",ee="colorCDCDCD___D0UWo",ne="color0152d9___hF3Bb",te=["user","account","globalSetting","loading","dispatch"],le=N.Z.Dragger,ae=(0,o.connect)((function(e){var n=e.user,t=e.account,l=e.loading;return{user:n,account:t,globalSetting:e.globalSetting,loading:l.effects}}))((function(e){var n=e.user,t=e.account,l=(e.globalSetting,e.loading),a=e.dispatch,i=(C()(e,te),I.Z.useForm()),o=r()(i,1)[0],u=(0,s.useState)({}),p=r()(u,2),f=(p[0],p[1]),m=(0,s.useState)(!0),h=r()(m,2),x=h[0],g=h[1],b=(0,s.useState)(),j=r()(b,2),Z=j[0],k=j[1],S=(0,s.useState)(),N=r()(S,2),M=N[0],Q=N[1],ee=(0,s.useState)(),ae=r()(ee,2),ie=ae[0],re=ae[1],se=(0,s.useState)(),oe=r()(se,2),ce=oe[0],ue=oe[1];(0,s.useEffect)((function(){if(t.basicInfo){var e=t.basicInfo,n={name:e.show_realname?e.name:(0,L.YA)(e.name),gender:e.gender};k(e.name),g(e.show_realname),o.setFieldsValue(n),f(n)}}),[t.basicInfo]);var de=function(){var e=v()(d()().mark((function e(l){var i,r,s,o,c,u,p,v;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(s=l||{}).name,c=s.gender,u=s.idNumber,M){e.next=4;break}return P.ZP.info("请先上传照片!"),e.abrupt("return");case 4:return e.next=6,a({type:"account/applyRealNameAuth",payload:{id:(null===(i=t.basicInfo)||void 0===i?void 0:i.id)||(null===(r=n.userInfo)||void 0===r?void 0:r.login),name:o,gender:c,id_number:u,show_realname:x,attachment_ids:[ie]}});case 6:p=e.sent,pe(),p&&(P.ZP.info("申请已提交,请等待审核!"),a({type:"account/getBasicInfo",payload:{login:null===(v=n.userInfo)||void 0===v?void 0:v.login}}));case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),pe=function(){a({type:"account/setActionTabs",payload:{}})},ve={data:{type:"real_name"},multiple:!0,showUploadList:!1,action:"".concat(y.Z.API_SERVER,"/api/attachments.json"),className:H,onChange:function(e){var n;"uploading"!==e.file.status?"done"===e.file.status&&(console.log(e.file,e.file.response),re(null===(n=e.file.response)||void 0===n?void 0:n.id),(0,L.y3)(e.file.originFileObj,(function(e){Q(e),ue(!1)}))):ue(!0)},beforeUpload:function(e){var n="image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type||"image/bmp"===e.type;return n||P.ZP.info("请上传正确文件格式"),n}};return(0,_.jsx)(E.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:"Account-RealNameAuth"===t.actionTabs.key,title:"修改实名信息",width:"600px",footer:null,children:(0,_.jsx)(T.Z,{spinning:!!ce,children:(0,_.jsxs)(I.Z,{className:A,form:o,layout:"horizontal",onValuesChange:function(e){f(w()({},o.getFieldsValue())),"name"in e&&k(e.name)},onFinish:de,children:[(0,_.jsx)(I.Z.Item,{label:"姓名",name:"name",labelCol:{span:3},wrapperCol:{span:12},rules:[{required:!0,message:"请输入真实姓名,最大限制".concat(10,"个字符")},{validator:L.HJ}],extra:(0,_.jsx)("span",{children:x?"(显示:平台将显示您的真实姓名)":"(隐藏:平台将显示你的昵称)"}),children:(0,_.jsx)(R.Z,{disabled:!x,placeholder:"请输入真实姓名,最大限制".concat(10,"个字符"),maxLength:10,addonAfter:(0,_.jsx)("i",{className:"iconfont ".concat(x?"icon-xianshi":"icon-yincang"," font18 ").concat(ne),onClick:function(){var e=!x;g(e);var n=e?Z:(0,L.YA)(Z);o.setFieldsValue({name:n})}})})}),(0,_.jsx)(I.Z.Item,{label:"性别:",name:"gender",labelCol:{span:3},wrapperCol:{span:12},rules:[{required:!0,message:"请选择性别"}],children:(0,_.jsxs)(c.ZP.Group,{children:[(0,_.jsx)(c.ZP,{value:0,children:"男"}),(0,_.jsx)(c.ZP,{value:1,children:"女"})]})}),(0,_.jsx)(I.Z.Item,{label:"证件号:",labelCol:{span:3},name:"idNumber",rules:[{required:!0,message:"请输入证件号"}],children:(0,_.jsx)(R.Z,{placeholder:"请输入证件号"})}),(0,_.jsx)(I.Z.Item,{label:"身份证上传",labelCol:{span:3},children:(0,_.jsxs)("div",{className:D,children:[(0,_.jsxs)("div",{className:"".concat($," ").concat(B),children:[(0,_.jsx)("span",{className:F,children:(0,_.jsx)("img",{src:z})}),(0,_.jsxs)("span",{className:"tc",children:[(0,_.jsx)("p",{children:"示例图片"}),(0,_.jsx)("p",{className:"".concat(V," font12"),children:"(png/jpg/bmp格式,不超过2MB)"})]})]}),(0,_.jsxs)("div",{className:$,children:[(0,_.jsx)(le,w()(w()({},ve),{},{accept:".png,.jpg,.bmp,.jpeg",children:M?(0,_.jsx)("img",{src:M,className:W}):(0,_.jsxs)("div",{className:Y,children:[(0,_.jsx)("p",{children:(0,_.jsx)("i",{className:"iconfont icon-cuban2shangchuanyunduan ".concat(G)})}),(0,_.jsx)("p",{className:U,children:(0,_.jsx)("a",{className:q,children:"点击或拖拽上传图片"})})]})})),(0,_.jsx)("span",{className:"tc",children:(0,_.jsx)("p",{className:J,children:"查看大图"})})]})]})}),(0,_.jsx)("div",{className:K,children:(0,_.jsxs)(I.Z.Item,{children:[(0,_.jsx)(O.ZP,{className:"mr5",size:"middle",onClick:pe,children:"取消"}),(0,_.jsx)(O.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:l["account/applyRealNameAuth"],children:"保存"})]})}),(0,_.jsxs)("div",{className:X,children:[(0,_.jsx)("p",{children:"认证须知:"}),(0,_.jsx)("p",{children:"1.你需要准备有效的身份证正面(人像面)的证件照照片,请确保证件照片清晰可见,严禁PS;"}),(0,_.jsx)("p",{children:"2.我们将在你提交认证信息后的24小时(不包含节假日)内完成审核,审核结果将会以系统消息的形式发送给你;"}),(0,_.jsx)("p",{children:"3.实名认证审核完成后,无法删除,请谨慎填写;"}),(0,_.jsx)("p",{children:"4.实名认证审核完成后,系统将自动发放500个金币作为奖励;"}),(0,_.jsx)("p",{children:"5.我们会确保你所提供的信息均处于严格的保密状态,不会泄露;"}),(0,_.jsx)("p",{children:"6.如存在恶意乱填写姓名,证件号,及上传与实名认证证件无关图片者,一经发现将冻结EduCoder账号。"}),(0,_.jsx)("p",{children:"7.提交实名认证后系统会自动将状态改为已认证,你将可以体验平台需要实名认证的功能;如果在认证后的使用过程中未通过审核,你将不能继续体验需要认证的功能。"})]})]})})})})),ie=t(57809),re=t(88522),se=t(51941),oe="formWrap___mGWio",ce="footerWrap___qcHQ4",ue=["account","globalSetting","loading","dispatch","schoolName","departmentName","visible","onClose","onSuccess"],de=R.Z.TextArea,pe=(0,o.connect)((function(e){var n=e.account,t=e.loading;return{account:n,globalSetting:e.globalSetting,loading:t.effects}}))((function(e){e.account,e.globalSetting;var n=e.loading,t=e.dispatch,l=e.schoolName,a=e.departmentName,i=e.visible,o=e.onClose,c=void 0===o?function(){}:o,u=e.onSuccess,p=void 0===u?function(){}:u,f=C()(e,ue),m=I.Z.useForm(),h=r()(m,1)[0],x=(0,s.useRef)();(0,s.useEffect)((function(){x.current=f.schoolId}),[f.schoolId]),(0,s.useEffect)((function(){h.setFieldsValue({department:a})}),[a]);var g=function(){var e=v()(d()().mark((function e(n){var l,a,i,r;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=(l=n||{}).department,i=l.remarks,e.next=3,t({type:"account/appplyDepartment",payload:{school_id:x.current,name:a,remarks:i}});case 3:r=e.sent,c(),r&&(P.ZP.success("新增院系/部门成功!"),p(a));case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,_.jsx)(E.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:i,title:"申请添加子单位名称",width:"600px",footer:null,children:(0,_.jsxs)(I.Z,{className:oe,form:h,labelCol:{span:4},wrapperCol:{span:20},onFinish:g,children:[(0,_.jsx)(I.Z.Item,{label:"单位名称:",children:l}),(0,_.jsx)(I.Z.Item,{label:"部门名称:",name:"department",rules:[{required:!0,message:"请输入部门或者学院名称"}],children:(0,_.jsx)(R.Z,{placeholder:"请输入部门或者学院名称"})}),(0,_.jsx)(I.Z.Item,{label:"说明:",name:"remarks",children:(0,_.jsx)(de,{placeholder:"再次说明特别情况(选填)"})}),(0,_.jsx)("div",{className:ce,children:(0,_.jsxs)(I.Z.Item,{children:[(0,_.jsx)(O.ZP,{className:"mr5",size:"middle",onClick:function(){c()},children:"取消"}),(0,_.jsx)(O.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:n["account/appplyDepartment"],children:"保存"})]})})]})})})),ve=t(19842),fe=t(29679),me=t(19248),he=t(57725),xe="flexRow___jGYtM",ge="flexColumn___NPMB3",be="formWrap___vwH9N",ye="example____BmJC",je="footerWrap___lp1L0",_e=["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"],Ze=function(e,n){return n.some((function(n){return n.label.toLowerCase().indexOf(e.toLowerCase())>-1}))},ke=R.Z.TextArea,we=(0,o.connect)((function(e){var n=e.account,t=e.loading;return{account:n,globalSetting:e.globalSetting,loading:t.effects}}))((function(e){e.account,e.globalSetting;var n=e.loading,t=e.dispatch,l=e.schoolName,a=e.visible,i=e.onClose,o=void 0===i?function(){}:i,c=e.onSuccess,u=void 0===c?function(){}:c,p=(C()(e,_e),I.Z.useForm()),f=r()(p,1)[0];(0,s.useEffect)((function(){f.setFieldsValue({name:l})}),[l]);var m=function(){var e=v()(d()().mark((function e(n){var l,a,i,r,s,c,p;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=(l=n||{}).name,i=l.city,r=void 0===i?[]:i,s=l.address,c=l.remarks,e.next=3,t({type:"account/appplySchool",payload:{name:a,province:r[0],city:r[1],address:s,remarks:c}});case 3:p=e.sent,o(),p&&(P.ZP.success("新增学校/单位成功!"),u(a));case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,_.jsx)(E.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:a,title:"申请添加单位名称",width:"600px",footer:null,children:(0,_.jsxs)(I.Z,{className:be,form:f,labelCol:{span:4},wrapperCol:{span:20},onFinish:m,children:[(0,_.jsx)(I.Z.Item,{label:"单位全称:",name:"name",rules:[{required:!0,message:"请输入学校或工作单位"}],children:(0,_.jsx)(R.Z,{placeholder:"学校或工作单位"})}),(0,_.jsxs)("div",{className:"".concat(xe," ").concat(ye),children:[(0,_.jsx)("div",{children:"示例:"}),(0,_.jsxs)("div",{className:ge,children:[(0,_.jsxs)("div",{children:[(0,_.jsx)(fe.Z,{style:{color:"rgb(82, 196, 26)"}}),(0,_.jsx)("span",{className:"font14 ml5",children:"正确示例:数据结构"})]}),(0,_.jsxs)("div",{children:[(0,_.jsx)(me.Z,{style:{color:"red"}}),(0,_.jsx)("span",{className:"font14 ml5",children:"错误示例:数据结构2019春"})]})]})]}),(0,_.jsx)(I.Z.Item,{label:"地区:",name:"city",children:(0,_.jsx)(ve.Z,{allowClear:!0,size:"middle",options:he.P,placeholder:"请选择所在地",showSearch:{matchInputWidth:!0,filter:Ze}})}),(0,_.jsx)(I.Z.Item,{label:"详细地址:",name:"address",children:(0,_.jsx)(R.Z,{placeholder:"请填写完整的地址信息"})}),(0,_.jsx)(I.Z.Item,{label:"说明:",name:"remarks",children:(0,_.jsx)(ke,{placeholder:"再次说明特别情况(选填)"})}),(0,_.jsx)("div",{className:je,children:(0,_.jsxs)(I.Z.Item,{children:[(0,_.jsx)(O.ZP,{className:"mr5",size:"middle",onClick:function(){o()},children:"取消"}),(0,_.jsx)(O.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:n["account/appplySchool"],children:"保存"})]})})]})})})),Se=["user","account","globalSetting","loading","dispatch","Scoid"],Ce=ie.default.Option,Ne=N.Z.Dragger,Ie=(0,o.connect)((function(e){var n=e.user,t=e.account,l=e.loading;return{user:n,account:t,globalSetting:e.globalSetting,loading:l.effects}}))((function(e){var n,t,l=e.user,a=e.account,i=e.globalSetting,o=e.loading,c=e.dispatch,u=e.Scoid,p=(C()(e,Se),I.Z.useForm()),f=r()(p,1)[0],m=(0,s.useState)({}),h=r()(m,2),b=h[0],j=h[1],Z=(0,s.useState)([]),k=r()(Z,2),S=k[0],N=k[1],z=(0,s.useState)([]),te=r()(z,2),le=te[0],ae=te[1],oe=(0,s.useState)([]),ce=r()(oe,2),ue=ce[0],de=ce[1],ve=(0,s.useState)([]),fe=r()(ve,2),me=fe[0],he=fe[1],xe=(0,s.useState)(),ge=r()(xe,2),be=ge[0],ye=ge[1],je=(0,s.useState)(),_e=r()(je,2),Ze=_e[0],ke=_e[1],Ie=(0,s.useState)(),Pe=r()(Ie,2),Ee=Pe[0],Te=Pe[1],Re=(0,s.useState)(),Oe=r()(Re,2),Le=Oe[0],ze=Oe[1],Me=(0,s.useState)(),Ae=r()(Me,2),De=Ae[0],$e=Ae[1];(0,s.useEffect)((function(){Be()}),[]),(0,s.useEffect)((function(){v()(d()().mark((function e(){var n;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Fe(u);case 4:n=e.sent,de(null==n?void 0:n.departments);case 6:case"end":return e.stop()}}),e)})))()}),[u]);var Be=function(){var e=v()(d()().mark((function e(){var n;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c({type:"account/getSchoolOption"});case 2:n=e.sent,N(null==n?void 0:n.schools);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Fe=function(e){return c({type:"account/getDepartmentOption",payload:{id:e}})};(0,s.useEffect)((function(){if(a.basicInfo){var e=a.basicInfo,n={identity:e.identity,school:e.school_name,department:e.department_name,studentNo:e.student_id,jobTitle:"teacher"==e.identity?e.technical_title:"教授",manager:"professional"==e.identity?e.technical_title:"企业管理者"};f.setFieldsValue(n),j(n)}}),[a.basicInfo]);var Ve=function(){var e=v()(d()().mark((function e(n,t){var l,a,i,r,s;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=null===(l=S.find((function(e){return e.name===n})))||void 0===l?void 0:l.id,e.next=3,Fe(i);case 3:if(e.t0=e.sent,e.t0){e.next=6;break}e.t0={};case 6:r=e.t0,de(null==r?void 0:r.departments),s=t||(null==r||null===(a=r.departments)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.name),f.setFieldsValue({department:s}),j(w()(w()({},b),{school:n,department:s}));case 11:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),He=function(){var e=v()(d()().mark((function e(n){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Be();case 2:f.setFieldsValue({school:n,department:""}),j(w()(w()({},b),{school:n,department:""}));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),We=function(){var e=v()(d()().mark((function e(n){var t,i,r,s,o,u,p,v,f,m,h,x,g,b,y,j;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=(o=n||{}).school,p=o.department,v=o.identity,f=o.studentNo,m=o.jobTitle,h=o.manager,be){e.next=4;break}return P.ZP.info("请先上传照片!"),e.abrupt("return");case 4:return x=null===(t=S.find((function(e){return e.name===u})))||void 0===t?void 0:t.id,g=null===(i=ue.find((function(e){return e.name===p})))||void 0===i?void 0:i.id,b="student"===v?f:"teacher"===v?m:h,e.next=9,c({type:"account/applyProfessionalAuth",payload:{id:(null===(r=a.basicInfo)||void 0===r?void 0:r.id)||(null===(s=l.userInfo)||void 0===s?void 0:s.login),school_id:x,department_id:g,identity:v,extra:b,attachment_ids:[Ze]}});case 9:y=e.sent,Ye(),y&&(P.ZP.info("申请已提交,请等待审核!"),c({type:"account/getBasicInfo",payload:{login:null===(j=l.userInfo)||void 0===j?void 0:j.login}}));case 12:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Ye=function(){c({type:"account/setActionTabs",payload:{}})},Ge={data:{type:"professional"},multiple:!0,showUploadList:!1,action:"".concat(y.Z.API_SERVER,"/api/attachments.json"),className:H,onChange:function(e){var n;"uploading"!==e.file.status?"done"===e.file.status&&(console.log(e.file,e.file.response),ke(null===(n=e.file.response)||void 0===n?void 0:n.id),(0,L.y3)(e.file.originFileObj,(function(e){ye(e),Te(!1)}))):Te(!0)},beforeUpload:function(e){var n="image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type||"image/bmp"===e.type;return n||P.ZP.info("请上传正确文件格式"),n}};return(0,_.jsxs)(E.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,className:M,open:"Account-ProfessionalAuth"===a.actionTabs.key,title:(0,_.jsxs)(x.Z,{style:{padding:"25px"},align:"middle",justify:"space-between",children:[(0,_.jsx)(g.Z,{children:"职业认证"}),(0,_.jsx)(g.Z,{children:(0,_.jsx)("i",{className:"iconfont icon-guanbi11",style:{color:"#979797",cursor:"pointer"},onClick:Ye})})]}),width:"660px",footer:null,children:[(0,_.jsx)(T.Z,{spinning:!!Ee,children:(0,_.jsxs)(I.Z,{className:A,form:f,colon:!1,onValuesChange:function(e){(j(w()({},f.getFieldsValue())),"school"in e)&&(ae(S.filter((function(n){return n.name.includes(e.school)}))),(S.find((function(n){return n.name===e.school}))||{}).id?Ve(e.school):(f.setFieldsValue({department:""}),j(w()(w()({},b),{school:e.school,department:""}))))},onFinish:We,children:[(0,_.jsxs)(x.Z,{gutter:[10,0],children:[(0,_.jsx)(g.Z,{flex:"300px",children:(0,_.jsx)(I.Z.Item,{label:"职业",name:"identity",rules:[{required:!0,message:"请先选择职业"}],children:(0,_.jsxs)(ie.default,{children:[(0,_.jsx)(Ce,{value:"teacher",children:"教师"}),(0,_.jsx)(Ce,{value:"student",children:"学生"}),(0,_.jsx)(Ce,{value:"professional",children:"专业人士"})]})})}),"student"===b.identity&&(0,_.jsx)(g.Z,{flex:"200px",children:(0,_.jsx)(I.Z.Item,{initialValue:b.studentNo,name:"studentNo",rules:[{required:!0,message:"请先输入学号"}],children:(0,_.jsx)(R.Z,{type:"text",placeholder:"请输入学号"})})}),"teacher"===b.identity&&(0,_.jsx)(g.Z,{flex:"200px",children:(0,_.jsx)(I.Z.Item,{initialValue:b.jobTitle,name:"jobTitle",rules:[{required:!0,message:"请先选择职称"}],children:(0,_.jsxs)(ie.default,{children:[(0,_.jsx)(Ce,{value:"教授",children:"教授"}),(0,_.jsx)(Ce,{value:"副教授",children:"副教授"}),(0,_.jsx)(Ce,{value:"讲师",children:"讲师"}),(0,_.jsx)(Ce,{value:"助教",children:"助教"})]})})}),"professional"===b.identity&&(0,_.jsx)(g.Z,{flex:"200px",children:(0,_.jsx)(I.Z.Item,{initialValue:b.manager,name:"manager",rules:[{required:!0,message:"请先选择职称"}],children:(0,_.jsxs)(ie.default,{children:[(0,_.jsx)(Ce,{value:"企业管理者",children:"企业管理者"}),(0,_.jsx)(Ce,{value:"部门管理者",children:"部门管理者"}),(0,_.jsx)(Ce,{value:"高级工程师",children:"高级工程师"}),(0,_.jsx)(Ce,{value:"工程师",children:"工程师"}),(0,_.jsx)(Ce,{value:"助理工程师",children:"助理工程师"})]})})})]}),(0,_.jsx)(I.Z.Item,{label:"学校/单位",name:"school",extra:b.school&&!(null!=S&&S.find((function(e){return e.name===b.school})))&&(0,_.jsxs)("div",{className:Q,children:[(0,_.jsxs)("span",{className:ee,children:["未找到包含“",b.school,"”的高校,"]}),(0,_.jsx)("span",{className:"".concat(ne," current"),onClick:function(){ze(!0)},children:"申请新增"})]}),rules:[{required:!0,message:"请先选择学校/单位"}],children:(0,_.jsx)(re.Z,{showSearch:!0,options:null==le?void 0:le.map((function(e){return{value:e.name}}))})}),(0,_.jsx)(I.Z.Item,{label:"院系/部门",name:"department",extra:b.department&&!(null!=ue&&ue.find((function(e){return e.name===b.department})))&&(0,_.jsxs)("div",{className:Q,children:[(0,_.jsx)("span",{className:ee,children:b.department?"未找到包含“".concat(b.department,"”的高校,"):"未找到院系,"}),(0,_.jsx)("span",{className:"".concat(ne," current"),onClick:function(){S.find((function(e){return e.name===b.school}))?$e(!0):P.ZP.info("请先选择正确的单位或者学校!")},children:"申请新增"})]}),rules:[{required:!0,message:"请先选择院系/部门"}],children:(0,_.jsx)(re.Z,{showSearch:!0,onChange:function(e){return he(ue.filter((function(n){return n.name.includes(e)})))},options:null==me?void 0:me.map((function(e){return{value:e.name}}))})}),(0,_.jsx)(I.Z.Item,{label:"职业证上传",children:(0,_.jsxs)("div",{className:D,children:[(0,_.jsxs)("div",{className:$,children:[(0,_.jsx)(Ne,w()(w()({},Ge),{},{accept:".png,.jpg,.bmp,.jpeg",children:be?(0,_.jsx)("img",{src:be,className:W}):(0,_.jsxs)("div",{className:Y,children:[(0,_.jsx)("p",{children:(0,_.jsx)("i",{className:"iconfont icon-cuban2shangchuanyunduan ".concat(G)})}),(0,_.jsx)("p",{className:U,children:(0,_.jsx)("a",{className:q,children:"点击或拖拽上传图片"})})]})})),(0,_.jsx)("span",{className:"tc",children:(0,_.jsx)("p",{className:J,children:"查看大图"})})]}),(0,_.jsxs)("div",{className:"".concat($," ").concat(B),children:[(0,_.jsx)("span",{className:F,children:(0,_.jsx)("img",{src:se})}),(0,_.jsxs)("span",{className:"tc",children:[(0,_.jsx)("p",{children:"示例图片"}),(0,_.jsx)("p",{className:"".concat(V," font12"),children:"(png/jpg/bmp格式,不超过2MB)"})]})]})]})}),(0,_.jsx)("div",{className:K,children:(0,_.jsxs)(I.Z.Item,{children:[(0,_.jsx)(O.ZP,{className:"mr5",size:"middle",onClick:Ye,children:"取消"}),(0,_.jsx)(O.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:o["account/applyProfessionalAuth"],children:"保存"})]})}),(0,_.jsxs)("div",{className:X,children:[(0,_.jsx)("p",{children:"认证须知:"}),(0,_.jsx)("p",{children:"1.根据职业上传相应的证件照:教师(教师证),专业人士(员工证)、学生(学生证),请确保证件照内容完整并且清晰可见,严禁PS;"}),(0,_.jsx)("p",{children:"2.我们将在你提交职业证信息后的24小时(不包含节假日)内完成审核,审核结果将会以系统消息的形式发送给你;"}),(0,_.jsx)("p",{children:"3.职业认证审核完成后,无法删除,请谨慎填写;职业变更请选择重新认证;"}),(0,_.jsx)("p",{children:"4.职业认证审核完成后,系统将自动发放500个金币作为奖励;"}),(0,_.jsx)("p",{children:"5.我们会确保你所提供的信息均处于严格的保密状态,不会泄露;"}),(0,_.jsxs)("p",{children:["6.如存在恶意乱填写姓名,学号,及上传与职业证件无关图片者,一经发现将冻结",!(null!=i&&null!==(n=i.setting)&&void 0!==n&&n.is_local)&&"EduCoder","账号。"]}),(0,_.jsx)("p",{children:"7.非老师身份提交职业认证后系统会自动将状态改为已认证,你将可以体验平台需要职业认证的功能;如果在认证后的使用过程中未通过审核,你将不能继续体验需要认证的功能。"})]})]})}),(0,_.jsx)(we,{visible:Le,onClose:function(){return ze(!1)},schoolName:b.school,onSuccess:He}),(0,_.jsx)(pe,{visible:De,onClose:function(){return $e(!1)},schoolId:null===(t=S.find((function(e){return e.name===b.school})))||void 0===t?void 0:t.id,schoolName:b.school,departmentName:b.department,onSuccess:function(e){return Ve(b.school,e)}})]})})),Pe=t(93735),Ee=t.n(Pe);var Te=function(e){var n=e.type,t=e.dispatch,l=e.userid,a=e.isshow,i=e.setPhoneshow,o=e.setEmailshow,c="79e33abd4b6588941ab7622aed1e67e8",u=(0,s.useState)(""),p=r()(u,2),f=p[0],m=p[1],h=(0,s.useState)("获取验证码"),x=r()(h,2),g=x[0],b=(x[1],(0,s.useState)(60)),y=r()(b,2),j=y[0],Z=y[1],k=(0,s.useState)(!1),w=r()(k,2),S=w[0],C=w[1],N=(0,s.useState)(""),I=r()(N,2),E=I[0],T=I[1];function L(){return(L=v()(d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f){e.next=3;break}return 3===n?P.ZP.info("手机号不能为空"):P.ZP.info("邮箱地址不能为空"),e.abrupt("return");case 3:return e.next=5,t({type:"competitions/getVerification",payload:{type:n,login:f,smscode:Ee()(c+f)}});case 5:1===e.sent.status&&(P.ZP.info("获取验证码成功"),z(),C(!0));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function z(){Z(60);var e=setInterval((function(){--j>-1?Z(j):(clearInterval(e),C(!1))}),1e3)}function M(){return(M=v()(d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({type:"competitions/PhoneBind",payload:{userid:l,code:E,phone:f}});case 2:0===e.sent.status&&(P.ZP.info("绑定成功"),i("none"));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function A(){return(A=v()(d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({type:"competitions/EmailBind",payload:{userid:l,code:E,email:f}});case 2:0===e.sent.status&&(P.ZP.info("绑定成功"),o("none"));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,_.jsxs)("div",{style:{display:a},children:[(0,_.jsx)("p",{children:(0,_.jsx)(R.Z,{value:f,onChange:function(e){return m(e.target.value)},placeholder:3===n?"请输入手机号":"请输入邮箱地址",style:{width:"370px"}})}),(0,_.jsx)("span",{children:(0,_.jsx)(R.Z,{value:E,onChange:function(e){return T(e.target.value)},placeholder:3===n?"请输入手机获取的验证码":"请输入邮箱获取的验证码",style:{width:"250px"}})})," ",(0,_.jsx)(O.ZP,{disabled:S,onClick:function(){return function(){return L.apply(this,arguments)}()},type:"primary",style:{marginLeft:"20px",width:"100px"},children:S?"重新发送".concat(j,"s"):g}),(0,_.jsxs)("p",{style:{marginTop:"30px",width:"370px",textAlign:"center"},children:[(0,_.jsx)(O.ZP,{type:"primary",style:{marginRight:"15px"},onClick:function(){E?3===n?function(){M.apply(this,arguments)}():function(){A.apply(this,arguments)}():P.ZP.info("验证码不能为空")},children:"确认"}),(0,_.jsx)(O.ZP,{style:{marginLeft:"20px"},onClick:function(){3===n?i("none"):o("none")},children:"取消"})]})]})};var Re=function(e){var n=e.dispatch,t=e.userid,l={wrapperCol:{offset:3,span:21}},a=I.Z.useForm(),i=r()(a,1)[0],s=(0,o.useParams)().identifier;return(0,_.jsx)("div",{style:{width:"500px"},children:(0,_.jsxs)(I.Z,{form:i,name:"basic",children:[(0,_.jsx)(I.Z.Item,w()(w()({},l),{},{label:(0,_.jsx)("div",{style:{width:"30px"},children:"开户行"}),name:"bank",rules:[{required:!0,message:"请输入开户行"}],children:(0,_.jsx)(R.Z,{})})),(0,_.jsx)(I.Z.Item,w()(w()({},l),{},{label:(0,_.jsx)("div",{style:{width:"30px"},children:"支行"}),name:"second_bank",rules:[{required:!0,message:"请输入支行"}],children:(0,_.jsx)(R.Z,{})})),(0,_.jsx)(I.Z.Item,w()(w()({},l),{},{label:(0,_.jsx)("div",{style:{width:"30px"},children:"账号"}),name:"card_no",rules:[{required:!0,message:"请输入账号"}],children:(0,_.jsx)(R.Z,{})})),(0,_.jsx)(I.Z.Item,{children:(0,_.jsx)(O.ZP,{type:"primary",htmlType:"submit",onClick:v()(d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i.validateFields().then(function(){var e=v()(d()().mark((function e(l){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n({type:"competitions/setleader",payload:w()({identifier:s,user_id:t},l)});case 2:0===e.sent.status&&P.ZP.info("提交成功");case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e)}))),children:"提交"})})]})})},Oe={teacher:"教师",student:"学生",professional:"专业人士"};var Le=function(e){var n,t,l,a,i=e.Prize,o=e.Accounts,c=e.dispatch,u=e.userid,p=(0,s.useState)("none"),m=r()(p,2),h=m[0],b=m[1],y=(0,s.useState)("none"),j=r()(y,2),Z=j[0],k=j[1];function w(e){return S.apply(this,arguments)}function S(){return(S=v()(d()().mark((function e(n){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("1"!==n){e.next=6;break}return e.next=3,c({type:"competitions/Authentication"});case 3:t=e.sent,e.next=9;break;case 6:return e.next=8,c({type:"competitions/Professional"});case 8:t=e.sent;case 9:0===t.status&&P.ZP.info("撤销成功");case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,_.jsxs)("div",{children:[(0,_.jsxs)(x.Z,{align:"middle",children:[(0,_.jsxs)(g.Z,{children:[(0,_.jsx)("span",{className:"c-red",children:"*"}),"实名信息"]}),"uncertified"===(null==o?void 0:o.authentication)&&(0,_.jsx)(g.Z,{flex:1,className:"ml20",children:(0,_.jsxs)(x.Z,{align:"middle",justify:"space-between",children:[(0,_.jsx)(g.Z,{style:{marginLeft:"20px"},children:"通过实名认证后才能获得证书"}),(0,_.jsx)(O.ZP,{className:f.Z.PerfectBut,onClick:function(){c({type:"account/setActionTabs",payload:{key:"Account-RealNameAuth"}})},children:"立即认证"})]})})]}),(0,_.jsxs)("div",{className:f.Z.PerfectCent,children:[(0,_.jsxs)(x.Z,{children:[(0,_.jsx)(g.Z,{className:f.Z.PerfectCentName,children:"姓名"}),(0,_.jsxs)(g.Z,{className:"ml20",children:[null==o?void 0:o.name,"uncertified"===(null==o?void 0:o.authentication)?null:"applying"===(null==o?void 0:o.authentication)?(0,_.jsxs)("span",{children:[(0,_.jsx)("span",{children:"待审核"}),(0,_.jsx)(O.ZP,{type:"primary",onClick:function(){return w("1")},ghost:!0,style:{marginLeft:"20px"},children:"撤销认证"})]}):(0,_.jsxs)("span",{style:{color:"#6ec76e"},children:[(0,_.jsx)("i",{className:"iconfont icon-wancheng font-14"})," 已认证"]})]})]}),(0,_.jsxs)(x.Z,{className:"mt20",children:[(0,_.jsx)(g.Z,{className:f.Z.PerfectCentName,children:"性别"}),(0,_.jsx)(g.Z,{className:"ml20",children:0===(null==o?void 0:o.gender)?"男":"女"})]})]}),(0,_.jsxs)(x.Z,{align:"middle",children:[(0,_.jsxs)(g.Z,{children:[(0,_.jsx)("span",{className:"c-red",children:"*"}),"职业信息"]}),"uncertified"===(null==o?void 0:o.authentication)&&(0,_.jsx)(g.Z,{flex:1,className:"ml20",children:(0,_.jsxs)(x.Z,{align:"middle",justify:"space-between",children:[(0,_.jsx)(g.Z,{style:{marginLeft:"20px"},children:"通过实名认证后才能获得证书"}),(0,_.jsx)(O.ZP,{className:f.Z.PerfectBut,onClick:function(){c({type:"account/setActionTabs",payload:{key:"Account-ProfessionalAuth"}})},children:"立即认证"})]})})]}),(0,_.jsxs)("div",{className:f.Z.PerfectCent,children:[(0,_.jsxs)(x.Z,{children:[(0,_.jsx)(g.Z,{className:f.Z.PerfectCentName,children:"职业"}),(0,_.jsxs)(g.Z,{className:"ml20",children:[o&&o.identity&&Oe[o.identity],"uncertified"===(null==o?void 0:o.authentication)?null:"applying"===(null==o?void 0:o.authentication)?(0,_.jsxs)("span",{children:[(0,_.jsx)("span",{children:"待审核"}),(0,_.jsx)(O.ZP,{type:"primary",onClick:function(){return w("2")},ghost:!0,style:{marginLeft:"20px"},children:"撤销认证"})]}):(0,_.jsxs)("span",{style:{color:"#6ec76e"},children:[(0,_.jsx)("i",{className:"iconfont icon-wancheng font-14"})," 已认证",(0,_.jsx)(O.ZP,{type:"primary",onClick:function(){c({type:"account/setActionTabs",payload:{key:"Account-ProfessionalAuth"}})},ghost:!0,style:{marginLeft:"20px"},children:"重新认证"})]})]})]}),(0,_.jsxs)(x.Z,{className:"mt20",children:[(0,_.jsx)(g.Z,{className:f.Z.PerfectCentName,children:"学号"}),(0,_.jsx)(g.Z,{className:"ml20",children:(null==o?void 0:o.student_id)||"--"})]}),(0,_.jsxs)(x.Z,{className:"mt20",children:[(0,_.jsx)(g.Z,{className:f.Z.PerfectCentName,children:"学校"}),(0,_.jsx)(g.Z,{className:"ml20",children:(null==o?void 0:o.school_name)||"--"})]}),(0,_.jsxs)(x.Z,{className:"mt20",children:[(0,_.jsx)(g.Z,{className:f.Z.PerfectCentName,children:"院系"}),(0,_.jsx)(g.Z,{className:"ml20",children:(null==o?void 0:o.department_name)||"--"})]})]}),(0,_.jsxs)("p",{children:[(0,_.jsx)("span",{className:"c-red",children:"*"}),"联系方式"]}),(0,_.jsxs)("div",{className:f.Z.PerfectCent,children:[(0,_.jsxs)(x.Z,{children:[(0,_.jsx)(g.Z,{className:f.Z.PerfectCentName,children:"手机号"}),(0,_.jsx)(g.Z,{className:"ml20",children:(0,_.jsxs)(x.Z,{children:[(0,_.jsx)(g.Z,{style:{width:"150px"},children:(null==o?void 0:o.phone)||"--"}),"none"===h&&(0,_.jsx)(O.ZP,{type:"link",className:"ml20",style:{color:"#165DFF"},onClick:function(){b("block")},children:"更换"})]})})]}),(0,_.jsx)("div",{className:"mt10",style:{marginLeft:"74px"},children:(0,_.jsx)(Te,{type:3,dispatch:c,userid:null==o?void 0:o.id,isshow:h,setPhoneshow:b,setEmailshow:k})}),(0,_.jsxs)(x.Z,{className:"mt20",children:[(0,_.jsx)(g.Z,{className:f.Z.PerfectCentName,children:"Email"}),(0,_.jsx)(g.Z,{className:"ml20",children:(0,_.jsxs)(x.Z,{children:[(0,_.jsx)(g.Z,{style:{width:"150px"},children:(null==o?void 0:o.mail)||"--"}),"none"===Z&&(0,_.jsx)(O.ZP,{type:"link",className:"ml20",style:{color:"#165DFF"},onClick:function(){k("block")},children:"更换"})]})})]}),(0,_.jsx)("div",{className:"mt10",style:{marginLeft:"74px"},children:(0,_.jsx)(Te,{type:4,dispatch:c,userid:null==o?void 0:o.id,isshow:Z,setEmailshow:k,setPhoneshow:b})})]}),null!=i&&i.leader&&null!=i&&i.teams&&null!=i&&null!==(n=i.teams[0])&&void 0!==n&&null!==(n=n.bank_account)&&void 0!==n&&n.bank?(0,_.jsxs)(x.Z,{align:"middle",children:[(0,_.jsx)(g.Z,{children:"签/领/开户行及银行卡号"}),(0,_.jsx)(g.Z,{className:"ml20",style:{fontSize:"12px"},children:"为保障奖金的及时发放,请队长如实填写你名下的银行卡信息"})]}):(0,_.jsxs)("div",{children:[(0,_.jsxs)(x.Z,{align:"middle",children:[(0,_.jsx)(g.Z,{children:"签/领/开户行及银行卡号"}),(0,_.jsx)(g.Z,{className:"ml20",style:{fontSize:"12px"},children:"为保障奖金的及时发放,请队长如实填写你名下的银行卡信息"})]}),(0,_.jsx)(Re,{dispatch:c,userid:u})]}),(null==i?void 0:i.leader)&&(0,_.jsxs)("div",{className:f.Z.PerfectCent,style:{border:0},children:[(0,_.jsxs)(x.Z,{children:[(0,_.jsx)(g.Z,{className:f.Z.PerfectCentName,children:"开户行"}),(0,_.jsx)(g.Z,{className:"ml20",children:(null==i?void 0:i.teams)&&(null==i||null===(t=i.teams[0])||void 0===t||null===(t=t.bank_account)||void 0===t?void 0:t.bank)||"--"})]}),(0,_.jsxs)(x.Z,{className:"mt20",children:[(0,_.jsx)(g.Z,{className:f.Z.PerfectCentName,children:"支行"}),(0,_.jsx)(g.Z,{className:"ml20",children:(null==i?void 0:i.teams)&&(null==i||null===(l=i.teams[0])||void 0===l||null===(l=l.bank_account)||void 0===l?void 0:l.second_bank)||"--"})]}),(0,_.jsxs)(x.Z,{className:"mt20",children:[(0,_.jsx)(g.Z,{className:f.Z.PerfectCentName,children:"账号"}),(0,_.jsx)(g.Z,{className:"ml20",children:(null==i?void 0:i.teams)&&(null==i||null===(a=i.teams[0])||void 0===a||null===(a=a.bank_account)||void 0===a?void 0:a.card_no)||"--"})]})]}),(0,_.jsx)(Ie,{Scoid:null==o?void 0:o.school_id}),(0,_.jsx)(ae,{})]})},ze="scoreByBlankRadio____FOPE",Me=(0,o.connect)((function(e){return a()(e),{}}))((function(e){var n=e.Prize,t=e.Accounts,l=(e.getAccounts,e.dispatch),a=e.userid,i=(0,s.useState)("DownPdf"),o=r()(i,2),u=o[0],d=o[1];return(0,_.jsxs)("div",{style:{margin:"15px 0"},children:[(0,_.jsx)(c.ZP.Group,{optionType:"button",className:ze,options:[{label:"获奖证书下载",value:"DownPdf"},{label:"完善个人信息",value:"Perfect"}],value:u,onChange:function(e){d(e.target.value)}}),"DownPdf"==u&&(0,_.jsx)(Z,{Prize:n}),"Perfect"==u&&(0,_.jsx)(Le,{userid:a,dispatch:l,Prize:n,Accounts:t})]})}))},65563:function(e,n,t){"use strict";t.d(n,{Z:function(){return k}});var l=t(7557),a=t.n(l),i=t(41498),r=t.n(i),s=t(79800),o=t.n(s),c=t(59301),u=t(43418),d=t(8591),p=t(6848),v=t(3113),f=t(46211),m=t(49389),h=t(91689),x=t(71212),g=t(67554),b=t(36133),y=t(94171);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var j="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiPjxwYXRoIGQ9Ik0xMjggMGg3NjhjNzAuNCAwIDEyOCA1Ny42IDEyOCAxMjh2NzY4YzAgNzAuNC01Ny42IDEyOC0xMjggMTI4SDEyOEExMjguMzU4IDEyOC4zNTggMCAwIDEgMCA4OTZWMTI4QzAgNTcuNiA1Ny42IDAgMTI4IDB6IiBmaWxsPSIjMTY1REZGIiBmaWxsLW9wYWNpdHk9Ii4xNCIvPjxwYXRoIGQ9Ik0yOTQuNCAzNzcuNiAxNjAgNDgwYy02LjQgNi40LTEyLjggMTIuOC0xMi44IDI1LjZ2NTcuNmMwIDEyLjggNi40IDE5LjIgMTkuMiAzMmwxMzQuNCA5NmMxMi44IDEyLjggMzguNCAxMi44IDUxLjIgMGw2LjQtNi40YzYuNC02LjQgMTIuOC0xOS4yIDYuNC0zMnMtNi40LTI1LjYtMTkuMi0zMmwtMTE1LjItODMuMiAxMjEuNi05NmM2LjQtNi40IDEyLjgtMTkuMiAxMi44LTI1LjYgMC0xMi44IDAtMTkuMi02LjQtMzItMTkuMi0xOS4yLTQ0LjgtMjUuNi02NC02LjR6bTI3NS4yLTEyLjhjLTEyLjggNi40LTE5LjIgMTIuOC0yNS42IDE5LjJMNDA5LjYgNjMzLjZhNDAuODA2IDQwLjgwNiAwIDAgMCAwIDM4LjRjNi40IDEyLjggMTkuMiAxOS4yIDM4LjQgMTkuMiAxMi44IDAgMjUuNi02LjQgMzItMTkuMmwxMzQuNC0yNDkuNmM2LjQtNi40IDYuNC0xOS4yIDYuNC0zMnMtMTIuOC0xOS4yLTE5LjItMjUuNmgtMzJ6bTEyOCAwYy0xMi44IDAtMTkuMiA2LjQtMjUuNiAxMi44LTEyLjggMTkuMi0xMi44IDQ0LjggNi40IDU3LjZsMTIxLjYgOTYtMTIxLjYgODkuNmMtMTkuMiAxMi44LTE5LjIgMzguNC0xMi44IDUxLjJsNi40IDYuNGMxMi44IDE5LjIgMzguNCAxOS4yIDU3LjYgNi40bDEzNC40LTk2YzYuNC02LjQgMTIuOC0xOS4yIDE5LjItMjUuNnYtNTcuNmMwLTEyLjgtNi40LTE5LjItMTIuOC0yNS42TDczNiAzNzcuNmMtMTkuMi0xMi44LTMyLTEyLjgtMzguNC0xMi44eiIgZmlsbD0iIzE2NURGRiIvPjwvc3ZnPg==",_=t(7338),Z=t(37712);var k=function(e){var n,t,l,i,s,k,w,S=e.item,C=e.Header,N=e.index,I=e.StaffDetail,P=e.dispatch,E=(0,c.useState)(!0),T=o()(E,2),R=T[0],O=T[1],L=(0,c.useState)(!0),z=o()(L,2),M=z[0],A=z[1],D=(0,c.useState)(!1),$=o()(D,2),B=$[0],F=$[1],V=(0,c.useRef)(),H=(0,c.useState)(!1),W=o()(H,2),Y=W[0],G=W[1],U=(0,m.useParams)().identifier;(0,c.useEffect)((function(){setTimeout((function(){V.current.children[0].clientHeight>88&&F(!0)}),10)}),[]);var q=function(e){var n,t;(0,g.tJ)(P,!0)&&((null==e?void 0:e.shixun_status)>1&&G(!0),null!=e&&e.is_jupyter||null!=e&&e.is_jupyter_lab?P({type:"shixunsDetail/execJupyter",payload:{id:null==e||null===(t=e.shixun)||void 0===t?void 0:t.identifier}}).then((function(n){G(!1),null!=n&&n.identifier&&window.open("/tasks/".concat(n.identifier,"/jupyter?competition_entry_id=").concat(null==e?void 0:e.id,"&type=competitions"))})):P({type:"shixunsDetail/execShixun",payload:{id:null==e||null===(n=e.shixun)||void 0===n?void 0:n.identifier}}).then((function(n){G(!1),null!=n&&n.game_identifier?window.open("/tasks/".concat(n.game_identifier,"?competition_entry_id=").concat(null==e?void 0:e.id,"&type=competitions")):2===(null==n?void 0:n.status)?J(null==n?void 0:n.message):3===(null==n?void 0:n.status)&&K(null==n?void 0:n.message)})))},J=function e(n){var t,l;n=null!==(t=n)&&void 0!==t&&t.includes(".json")?n:"".concat(n,".json"),u.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,Z.jsx)("div",{className:"tc font16",children:"实训已经更新了,正在为您重置!"}),onOk:(l=r()(a()().mark((function t(){var l,i;return a()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,b.$Q)({url:n});case 2:if(l=t.sent){t.next=5;break}return t.abrupt("return");case 5:return d.ZP.success("重置成功,正在进入实践项目!"),t.next=8,(0,b.Ir)({id:l.shixun_identifier});case 8:if(null==(i=t.sent)||!i.game_identifier){t.next=12;break}return window.open("/tasks/".concat(i.game_identifier)),t.abrupt("return");case 12:2===(null==i?void 0:i.status)?e(null==i?void 0:i.message):3===(null==i?void 0:i.status)&&K(null==i?void 0:i.message);case 13:case"end":return t.stop()}}),t)}))),function(){return l.apply(this,arguments)})})},K=function(e){u.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,Z.jsxs)("div",{className:"tc font16",children:["目前该实践项目尚在内测中,将于",e,"之后开放,谢谢!"]})})};return(0,Z.jsxs)("div",{className:f.Z.box,children:[(0,Z.jsxs)("div",{style:{justifyContent:"space-between",display:"flex",padding:"0 10px"},children:[(0,Z.jsxs)("span",{className:f.Z.title_style,style:{color:"#333333",fontWeight:500,fontSize:"14px"},children:[null!=C&&C.is_new?"赛题":"任务",N+1]}),(0,Z.jsxs)("span",{style:{color:"#9096A3",marginLeft:"auto",fontSize:"12px"},children:["作品提交时间",(0,Z.jsxs)("span",{style:{color:"#232B40",marginLeft:5},children:[null==C?void 0:C.start_time,"~",null==C?void 0:C.end_time]})]})]}),(0,Z.jsxs)("div",{style:{padding:10,display:"flex",position:"relative"},children:[(0,Z.jsx)("img",{src:h.Z.IMG_SERVER+"/"+(null==S?void 0:S.pic),style:{width:220,height:130,borderRadius:"4px"}}),(0,Z.jsxs)("div",{style:{marginLeft:20,width:"75%"},children:[(0,Z.jsxs)("div",{style:{justifyContent:"space-between",display:"flex"},children:[(0,Z.jsxs)("div",{children:[(0,Z.jsx)(p.Z,{title:(null==S?void 0:S.name)||(null==S||null===(n=S.shixun)||void 0===n?void 0:n.name),children:(0,Z.jsx)("span",{style:{color:"#333333",fontWeight:"500",fontSize:"14px"},children:(null==S?void 0:S.name)||(null==S||null===(t=S.shixun)||void 0===t?void 0:t.name)})}),(0,Z.jsxs)("span",{style:{color:"#9096A3",marginLeft:40},children:["关卡",(0,Z.jsx)("span",{style:{color:"#333333",marginLeft:5},children:(null==S?void 0:S.challenges_count)||(null==S||null===(l=S.shixun)||void 0===l?void 0:l.challenges_count)})]})]}),(0,Z.jsx)("span",{style:{marginLeft:"auto"},children:((null==I?void 0:I.enrolled)&&"ended"!==(null==C?void 0:C.competition_status)||(0,_.eB)()||(null===(i=C.permission)||void 0===i?void 0:i.editable))&&(0,Z.jsx)(v.ZP,{loading:Y,onClick:r()(a()().mark((function e(){var n,t,l;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==C||!C.is_new){e.next=11;break}return e.next=3,(0,y.ZP)("/api/competitions/".concat(U,"/check_team_member.json"),{method:"post"});case 3:if(0!==(null==(n=e.sent)?void 0:n.status)){e.next=9;break}return q(S),e.next=8,(0,y.ZP)("/api/competitions/".concat(U,"/enter_competition_question.json"),{method:"post",body:{competition_stage_id:null==S?void 0:S.competition_stage_id,competition_stage_section_id:null==S?void 0:S.competition_stage_section_id,competition_entry_id:null==S?void 0:S.id,shixun_id:null==S||null===(t=S.shixun)||void 0===t?void 0:t.id}});case 8:e.sent;case 9:e.next=12;break;case 11:window.open("/shixuns/".concat((null==S?void 0:S.identifier)||(null==S||null===(l=S.shixun)||void 0===l?void 0:l.identifier),"/challenges"));case 12:case"end":return e.stop()}}),e)}))),style:{marginLeft:30,borderRadius:14,fontSize:12,width:88},type:"primary",children:"开启挑战"})})]}),(0,Z.jsxs)("div",{ref:V,style:{maxHeight:R&&100,position:"relative",overflow:"hidden"},children:[(0,Z.jsx)(x.Z,{style:{fontSize:"14px",color:"#9096A3",marginTop:20,position:"relative"},value:(null==S?void 0:S.description)||""}),B&&R&&(0,Z.jsx)("div",{className:f.Z.maskText})]}),B&&(0,Z.jsxs)("div",{className:f.Z.colorhove,style:{textAlign:"end",cursor:"pointer"},onClick:function(){O(!R)},children:[R?"阅读全文 ":"收起全文 ",(0,Z.jsx)("i",{className:"iconfont font14 ".concat(R?"icon-jiantou9":"icon-changyongtubiao-xianxingdaochu-zhuanqu-")})]}),(0,Z.jsxs)("div",{style:{marginTop:14,maxHeight:M&&58,overflow:"hidden"},children:[null==S||null===(s=S.challenges)||void 0===s?void 0:s.map((function(e,n){return(0,Z.jsxs)("div",{style:{marginTop:0===n?0:12},children:[(0,Z.jsx)("img",{src:j,style:{width:20,height:20}}),(0,Z.jsxs)("span",{style:{marginLeft:10},children:["第",n+1,"关",null==e?void 0:e.challenge_name]})]})})),null==S||null===(k=S.challenge_settings)||void 0===k?void 0:k.map((function(e,n){return(0,Z.jsxs)("div",{style:{marginTop:0===n?0:12},children:[(0,Z.jsx)("img",{src:j,style:{width:20,height:20}}),(0,Z.jsxs)("span",{style:{marginLeft:10},children:["第",n+1,"关",null==e?void 0:e.challenge_name]})]})}))]}),(0,Z.jsx)("div",{className:f.Z.colorhove,style:{position:"absolute",bottom:14,right:10,cursor:"pointer"},children:((null==S?void 0:S.challenges_count)||(null==S||null===(w=S.shixun)||void 0===w?void 0:w.challenges_count))>2&&(0,Z.jsxs)("span",{onClick:function(){A(!M)},children:[M?"展开":"收起"," ",(0,Z.jsx)("i",{className:"iconfont font14 ".concat(M?"icon-jiantou9":"icon-changyongtubiao-xianxingdaochu-zhuanqu-")})]})})]})]})]})}},72435:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Ee}});var l=t(82242),a=t.n(l),i=t(7557),r=t.n(i),s=t(41498),o=t.n(s),c=t(79800),u=t.n(c),d=t(39647),p=t.n(d),v=t(59301),f=t(49389),m=t(46211),h=t(12332),x=t(54580),g=t(8591),b=t(43418),y=t(61481),j=t(90035),_=t(37712),Z=x.Z.Dragger,k=(0,f.connect)((function(e){return{user:e.user,classroomList:e.classroomList,shixunsDetail:e.shixunsDetail}}))((function(e){var n=e.user,t=e.dispatch,l=(e.classroomList,e.shixunsDetail),i=e.getResults,s=((0,f.useParams)(),(0,v.useState)()),c=u()(s,2),d=(c[0],c[1],(0,v.useState)([])),p=u()(d,2),m=p[0],h=p[1],x=(0,v.useState)(!1),k=u()(x,2),w=k[0],S=k[1],C={onRemove:function(){h([])},beforeUpload:function(e){if(console.log(e),(null==e?void 0:e.size)>524288e3)return g.ZP.info("文件超过500M,不符合上传要求"),!1;var n=[];return n.push(e),h([].concat(n)),!1},fileList:m};return(0,_.jsx)(b.Z,{title:"提交文件",open:"md-tab"===l.actionTabs.key,confirmLoading:w,onOk:o()(r()().mark((function e(){var a,s,o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((null==m?void 0:m.length)<=0)){e.next=3;break}return g.ZP.info("请先选择文件"),e.abrupt("return");case 3:return S(!0),e.next=6,(0,j.cT)(m[0],{login:null===(a=n.userInfo)||void 0===a?void 0:a.login,container_type:"Competition",container_id:l.actionTabs.params.id,stage_type:l.actionTabs.params.value,file_name:null===(s=m[0])||void 0===s?void 0:s.name});case 6:0===(null==(o=e.sent)?void 0:o.status)?(g.ZP.info("提交成功"),t({type:"shixunsDetail/setActionTabs",payload:{key:""}}),S(!1),h([]),i(l.actionTabs.params.value)):(S(!1),g.ZP.info("提交失败"));case 8:case"end":return e.stop()}}),e)}))),onCancel:function(){h([]),t({type:"shixunsDetail/setActionTabs",payload:{key:""}})},children:(0,_.jsxs)(Z,a()(a()({},C),{},{children:[(0,_.jsx)("p",{className:"ant-upload-drag-icon",children:(0,_.jsx)(y.Z,{})}),(0,_.jsx)("p",{className:"ant-upload-hint",children:"拖拽文件或者点击上传"})]}))})})),w=t(66104),S=t(71418),C=t(3113),N=t(20834),I=t(71212),P=t(95237),E=t(10249),T=t(91689),R=t(94171),O=t(67554),L=t(57809),z=t(9951),M=t(33853),A=t(38819),D=L.default.Option;var $=function(e){var n=e.rewarddata,t=e.getlistdatas,l=e.is_signed,a=e.dispatch,i=e.userlist,s=(0,v.useRef)(null),c=(0,v.useState)(!1),d=u()(c,2),p=d[0],f=d[1],h=(0,v.useState)(void 0),x=u()(h,2),y=x[0],j=x[1],Z=(0,v.useState)(""),k=u()(Z,2),w=k[0],S=k[1],C=(0,v.useState)(void 0),N=u()(C,2),I=N[0],P=N[1],R=(0,v.useState)(void 0),$=u()(R,2),B=$[0],F=$[1],V=(0,v.useState)(void 0),H=u()(V,2),W=H[0],Y=H[1];function G(e){return U.apply(this,arguments)}function U(){return(U=o()(r()().mark((function e(n){var i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.user_received){e.next=3;break}return window.open(n.click_info),e.abrupt("return");case 3:if((0,O.o1)(a)){e.next=5;break}return e.abrupt("return");case 5:if(!1!==l){e.next=8;break}return g.ZP.info("您尚未报名参赛,请报名参赛后领取"),e.abrupt("return");case 8:if("Pop"!==n.click_event){e.next=14;break}return S(n.id),f(!0),e.abrupt("return");case 14:j(void 0);case 15:return e.next=17,a({type:"competitions/Reward",payload:{competition_module_setting_id:n.id}});case 17:(i=e.sent)&&0===i.status&&(t(),"Link"===n.click_event?(g.ZP.info("领取成功"),window.open(n.click_info)):g.ZP.info(n.click_info));case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function q(){return(q=o()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i||i.real_name){e.next=4;break}if(I){e.next=4;break}return g.ZP.info("姓名不能为空"),e.abrupt("return");case 4:if(!i||i.email){e.next=8;break}if(B){e.next=8;break}return g.ZP.info("邮箱不能为空"),e.abrupt("return");case 8:if(!i||i.phone){e.next=12;break}if(W){e.next=12;break}return g.ZP.info("手机号码不能为空"),e.abrupt("return");case 12:if(y){e.next=15;break}return g.ZP.info("请选择你的年级"),e.abrupt("return");case 15:return e.next=17,a({type:"competitions/Reward",payload:{competition_module_setting_id:w,className:y,name:I,mail:B,phone:W}});case 17:(n=e.sent)&&0===n.status&&(f(!1),t(),g.ZP.info("HCIA认证考试代金劵将由Educoder平台统一发放,请及时关注邮箱或站内短信查收"));case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,_.jsxs)("div",{children:[(0,_.jsxs)(b.Z,{open:p,title:"完善信息",onCancel:function(){return f(!1)},onOk:function(){!function(){q.apply(this,arguments)}()},children:[(0,_.jsxs)("p",{children:["您的姓名:",(0,_.jsx)(E.Z,{className:i&&i.real_name?"":m.Z.bkfff,style:{width:"300px",marginLeft:"14px",background:i&&i.phone?"":"#ffffff!important"},value:i&&i.real_name||I,disabled:i&&i.real_name||!1,onChange:function(e){return P(e.target.value)}})]}),(0,_.jsxs)("p",{style:{marginTop:"1em"},children:["您的邮箱:",(0,_.jsx)(E.Z,{className:i&&i.email?"":"bkfff",style:{width:"300px",marginLeft:"14px",background:i&&i.phone?"":"#ffffff!important"},value:i&&i.email||B,disabled:i&&i.email||!1,onChange:function(e){return F(e.target.value)}})]}),(0,_.jsxs)("p",{style:{marginTop:"1em"},children:["您的手机号:",(0,_.jsx)(E.Z,{style:{width:"300px"},className:i&&i.phone?"":"bkfff",value:i&&i.phone||W,disabled:i&&i.phone||!1,onChange:function(e){return Y(e.target.value)}})]}),"您的年级:",(0,_.jsxs)(L.default,{style:{width:"300px",marginTop:"1em",marginLeft:"14px"},onChange:function(e){j(e)},children:[(0,_.jsx)(D,{value:"大一",children:"大一"}),(0,_.jsx)(D,{value:"大二",children:"大二"}),(0,_.jsx)(D,{value:"大三",children:"大三"}),(0,_.jsx)(D,{value:"大四",children:"大四"}),(0,_.jsx)(D,{value:"大五",children:"大五"}),(0,_.jsx)(D,{value:"硕一",children:"硕一"}),(0,_.jsx)(D,{value:"硕二",children:"硕二"}),(0,_.jsx)(D,{value:"硕三",children:"硕三"}),(0,_.jsx)(D,{value:"博一",children:"博一"}),(0,_.jsx)(D,{value:"博二",children:"博二"}),(0,_.jsx)(D,{value:"博三",children:"博三"}),(0,_.jsx)(D,{value:"博四",children:"博四"}),(0,_.jsx)(D,{value:"博五",children:"博五"})]}),(0,_.jsx)("p",{style:{marginTop:"1em"},children:"提醒:如无华为云账号,请尽快注册华为云!"})]}),n&&n.length>3?(0,_.jsxs)("div",{style:{position:"relative",marginBottom:"10px",marginTop:"10px"},children:[(0,_.jsx)("span",{className:m.Z.spanprev,onClick:function(){s.current.prev()},children:(0,_.jsx)(M.Z,{style:{color:"#fff",fontSize:"20px",marginLeft:"15px"}})}),(0,_.jsx)(z.Z,{ref:s,className:m.Z.divwidth,slidesToShow:3,slidesToScroll:1,children:n&&n.map((function(e,n){return(0,_.jsxs)("div",{style:{textAlign:"center",position:"relative"},children:[(0,_.jsx)("img",{src:T.Z.IMG_SERVER+"/".concat(e.image_url)}),!1===e.user_received||"Link"===e.click_event?(0,_.jsx)("p",{className:m.Z.receiveclick,onClick:function(){return G(e)},children:"点击领取"}):(0,_.jsx)("p",{className:m.Z.receivealready,children:"已经领取"})]})}))}),(0,_.jsx)("span",{className:m.Z.spannext,onClick:function(){s.current.next()},children:(0,_.jsx)(A.Z,{style:{color:"#fff",fontSize:"20px",marginLeft:"5px"}})})]}):(0,_.jsx)("div",{className:m.Z.divwidth,style:{justifyContent:"space-around",marginBottom:"10px",marginTop:"10px"},children:n&&n.map((function(e,n){return(0,_.jsxs)("div",{style:{textAlign:"center",position:"relative"},children:[(0,_.jsx)("img",{src:T.Z.IMG_SERVER+"/".concat(e.image_url)}),!1===e.user_received||"Link"===e.click_event?(0,_.jsx)("p",{className:m.Z.receiveclick,onClick:function(){return G(e)},children:"点击领取"}):(0,_.jsx)("p",{className:m.Z.receivealready,children:"已经领取"})]})}))})]})},B=function(e,n){var t=e.StaffDetail,l=e.HeaderDetail,i=e.ItemData,s=e.setIssee,c=e.ModelType,d=e.dispatch,p=e.userinfo,m=e.Editable,h=(0,v.useState)(!1),y=u()(h,2),j=y[0],Z=y[1],k=(0,v.useState)([]),w=u()(k,2),S=w[0],N=w[1],L=(0,v.useState)(""),z=u()(L,2),M=z[0],A=z[1],D=(0,v.useState)(""),B=u()(D,2),F=B[0],V=B[1],H=(0,v.useState)(!1),W=u()(H,2),Y=W[0],G=W[1],U=(0,f.useParams)().identifier,q=(0,v.useRef)(null),J=(0,v.useRef)(null);q.current=null==t?void 0:t.enrolled,(0,v.useEffect)((function(){var e;return null===(e=J.current)||void 0===e||e.addEventListener("click",K),function(){var e;null===(e=J.current)||void 0===e||e.removeEventListener("click",K)}}),[]);var K=function(e){var n;if("modal-upload"===(null==e||null===(n=e.target)||void 0===n?void 0:n.id)){if(!(0,O.tJ)(d))return;if(!q.current)return void b.Z.info({title:"提示",centered:!0,okText:"我知道了",content:"请先报名,再提交作品"});Z(!0)}};(0,v.useEffect)((function(){var e,n;null!=l&&l.upload_file&&(N([{name:null==l||null===(e=l.upload_file)||void 0===e?void 0:e.title,status:"done",uid:"123456789"}]),V(null==l?void 0:l.upload_file_url),A(null==l||null===(n=l.upload_file)||void 0===n||null===(n=n.url)||void 0===n?void 0:n.split("/")[3]))}),[null==l?void 0:l.upload_file]);var X={name:"file",multiple:!1,withCredentials:!0,action:T.Z.API_SERVER+"/api/attachments.json",showUploadList:{showRemoveIcon:!1},fileList:S,onChange:function(e){var n,t=e.file.status,l=[a()({},e.file)];(N(l),"uploading"===e.file.status&&G(!0),"done"===t)&&(A(null===(n=l[0])||void 0===n||null===(n=n.response)||void 0===n?void 0:n.id),G(!1));"error"===t&&(N([]),G(!1))},beforeUpload:function(e){return e.size/1024/1024<1e3?Promise.resolve():(g.ZP.info("文件大小必须小于1000MB"),Promise.reject())}},Q=function(){Z(!0)};return(0,v.useImperativeHandle)(n,(function(){return{handleVisible:Q}})),(0,_.jsxs)("div",{ref:J,children:["reward"===c?(0,_.jsx)($,{userlist:p,dispatch:d,rewarddata:i.reward_setting,is_signed:i.is_signed}):null,(0,_.jsx)("div",{style:{textAlign:"right"},children:((null==p?void 0:p.admin)||(null==p?void 0:p.business)||m)&&(0,_.jsx)(C.ZP,{onClick:function(){return s(!1)},children:"编辑"})}),(0,_.jsx)(I.Z,{value:i.md_content||"暂无"}),i&&i.attachments&&i.attachments.map((function(e,n){return(0,_.jsx)("div",{children:(0,_.jsxs)("a",{href:(null===T.Z||void 0===T.Z?void 0:T.Z.API_SERVER)+e.url,target:"_self",download:e.title,children:[(0,_.jsx)("i",{style:{color:"#29BD8B"},className:"font-14 color-green iconfont icon-fujian mr8"}),(0,_.jsx)("span",{style:{color:"#000000"},children:e.title}),(0,_.jsx)("span",{style:{color:"#000000",marginLeft:"10px"},children:e.filesize})]})})})),(0,_.jsx)(b.Z,{centered:!0,title:"上传作品",open:j,okText:"提交作品",cancelText:"取消",confirmLoading:Y,onCancel:function(){return Z(!1)},onOk:o()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(M||F){e.next=3;break}return Z(!1),e.abrupt("return");case 3:return G(!0),e.next=6,(0,R.ZP)("/api/competitions/".concat(U,"/upload_file.json"),{method:"post",body:{attachment_id:M,upload_file_url:F}});case 6:0===e.sent.status&&(Z(!1),G(!1));case 8:case"end":return e.stop()}}),e)}))),children:(0,_.jsxs)("div",{children:[(0,_.jsxs)(P.Z,{align:"middle",className:"mb20",children:[(0,_.jsx)("span",{children:"作品链接:"}),(0,_.jsx)(E.Z,{style:{width:416},value:F,onChange:function(e){var n;return V(null===(n=e.target)||void 0===n?void 0:n.value)}})]}),(0,_.jsxs)(P.Z,{align:"top",children:[(0,_.jsx)("span",{style:{lineHeight:"28px"},children:"作品文件:"}),(0,_.jsx)(x.Z,a()(a()({},X),{},{children:(0,_.jsx)(C.ZP,{type:"primary",className:"mb10",children:"上传作品"})}))]})]})})]})},F=(0,v.forwardRef)(B),V=t(59081),H=t(128);var W=function(e){var n=e.ItemData,t=e.setIssee,l=e.MenuItem,i=e.dispatch,s=e.identifier,c=e.ModelType,d=e.userinfo,p=e.getrightdatas,f=(0,v.useState)([]),m=u()(f,2),h=m[0],b=m[1],y=(0,v.useState)(n.md_content),j=u()(y,2),Z=j[0],k=j[1];(0,v.useEffect)((function(){var e,t=[];null==n||null===(e=n.attachments)||void 0===e||e.map((function(e){var n={uid:e.id,name:e.title,response:{id:e.id}};t.push(n)})),b(t)}),[null==n?void 0:n.attachments]);var w={name:"file",multiple:!0,withCredentials:!0,action:T.Z.API_SERVER+"/api/attachments.json",defaultFileList:function(){var e,t=[];return null==n||null===(e=n.attachments)||void 0===e||e.map((function(e){var n={uid:null==e?void 0:e.id,name:e.title,response:{id:e.id}};t.push(n)})),t}(),onRemove:function(e){(0,H.y8)({id:e.uid})},onChange:function(e){var n=e.file.status;"removed"===n&&b(e.fileList),"done"===n?(b(e.fileList),g.ZP.success("".concat(e.file.name," 文件上传成功"))):"error"===n&&g.ZP.error("".concat(e.file.name," 文件上传失败"))},beforeUpload:function(e){var n=e.size/1024/1024<150;return n||g.ZP.info("文件大小必须小于150MB"),n}};function S(){return(S=o()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i({type:"competitions/updateMdContent",payload:{attachment_ids:N(h),competition_module_id:n.id,md_content_id:n.md_id,content:Z,identifier:s}});case 2:e.sent&&(g.ZP.info("提交成功"),t(!0),p(l));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(e){var n=[];return e&&e.map((function(e){n.push(e.response.id)})),n}return console.log(w),(0,_.jsxs)("div",{children:["reward"===c?(0,_.jsx)($,{userlist:d,dispatch:i,rewarddata:n.reward_setting,is_signed:n.is_signed}):null,(0,_.jsx)(V.Z,{defaultValue:Z,onChange:function(e){return k(e)}}),(0,_.jsxs)(x.Z,a()(a()({},w),{},{children:[(0,_.jsx)(C.ZP,{className:"uploadBtn",children:"上传附件"}),"(单个文件150M以内)"]})),(0,_.jsxs)("p",{style:{marginTop:"10px"},children:[(0,_.jsx)(C.ZP,{style:{width:"90px"},type:"primary",onClick:function(){return function(){return S.apply(this,arguments)}()},children:"提交"}),(0,_.jsx)(C.ZP,{style:{marginLeft:"30px",width:"90px"},onClick:function(){return t(!0)},children:"取消"})]})]})},Y=t(99313),G=t(1710);var U=function(){return(0,_.jsxs)("div",{children:[(0,_.jsx)("p",{style:{fontSize:"24px",color:"#05101a"},children:"总排行"}),(0,_.jsxs)("div",{style:{textAlign:"center"},children:[(0,_.jsx)("img",{src:T.Z.IMG_SERVER+"/images/educoder/competitions/trophy.png"}),(0,_.jsx)("p",{children:"要抓住一切机会,向所有人证明自己,证明你能够迎接荣耀"})]})]})},q=t(43604),J=t(18889);var K=function(e){var n=e.oneItem,t=e.towItem,l=e.threeItem;return(0,_.jsx)("div",{style:{textAlign:"center"},children:(0,_.jsxs)(P.Z,{gutter:16,style:{justifyContent:"center"},children:[(0,_.jsx)(q.Z,{span:6,style:{marginTop:"30px",marginRight:"20px"},children:(0,_.jsxs)(J.Z,{title:(0,_.jsxs)("div",{className:m.Z.towtop,children:[(0,_.jsx)("img",{style:{marginTop:"20px"},src:T.Z.IMG_SERVER+"/images/educoder/huangguan-two.png"}),(0,_.jsx)("p",{style:{marginTop:"10px"},children:(0,_.jsxs)(f.Link,{to:"/users/".concat(null==t?void 0:t.user_login,"/classrooms"),children:[(0,_.jsx)("img",{className:m.Z.imgradius,src:T.Z.IMG_SERVER+"/images/".concat(null==t?void 0:t.user_image)}),(null==t?void 0:t.competition_prize)&&(0,_.jsx)("p",{className:m.Z.prize,children:null==t?void 0:t.competition_prize}),(0,_.jsx)("p",{style:{color:"#05101a",fontSize:"16px",marginTop:"10px"},children:null==t?void 0:t.record_user_name})]})})]}),className:m.Z.towdiv,bordered:!1,children:[(0,_.jsx)("p",{style:{fontSize:"14px"},children:null==t?void 0:t.school_name}),(0,_.jsx)("p",{style:{fontSize:"18px"},children:null==t?void 0:t.spend_time}),(0,_.jsxs)("p",{style:{fontSize:"26px",color:"#a55b29"},children:[parseFloat(null==t?void 0:t.extra_score)+parseFloat(null==t?void 0:t.score),"分"]})]})}),(0,_.jsx)(q.Z,{span:6,children:(0,_.jsxs)(J.Z,{title:(0,_.jsxs)("div",{className:m.Z.onetop,children:[(0,_.jsx)("img",{style:{marginTop:"20px"},src:T.Z.IMG_SERVER+"/images/educoder/huangguan.png"}),(0,_.jsx)("p",{style:{marginTop:"10px"},children:(0,_.jsxs)(f.Link,{to:"/users/".concat(null==n?void 0:n.user_login,"/classrooms"),children:[(0,_.jsx)("img",{className:m.Z.imgradius,src:T.Z.IMG_SERVER+"/images/".concat(null==n?void 0:n.user_image)}),(null==n?void 0:n.competition_prize)&&(0,_.jsx)("p",{className:m.Z.prize,children:null==n?void 0:n.competition_prize}),(0,_.jsx)("p",{style:{color:"#05101a",fontSize:"16px",marginTop:"10px"},children:null==n?void 0:n.record_user_name})]})})]}),className:m.Z.onediv,bordered:!1,children:[(0,_.jsx)("p",{style:{fontSize:"14px"},children:null==n?void 0:n.school_name}),(0,_.jsx)("p",{style:{fontSize:"18px"},children:null==n?void 0:n.spend_time}),(0,_.jsxs)("p",{style:{fontSize:"26px",color:"#a55b29"},children:[parseFloat(null==n?void 0:n.extra_score)+parseFloat(null==n?void 0:n.score),"分"]})]})}),(0,_.jsx)(q.Z,{span:6,style:{marginTop:"40px",marginLeft:"20px"},children:(0,_.jsxs)(J.Z,{title:(0,_.jsxs)("div",{className:m.Z.threetop,children:[(0,_.jsx)("img",{style:{marginTop:"20px"},src:T.Z.IMG_SERVER+"/images/educoder/huangguan-three.png"}),(0,_.jsx)("p",{style:{marginTop:"10px"},children:(0,_.jsxs)(f.Link,{to:"/users/".concat(null==l?void 0:l.user_login,"/classrooms"),children:[(0,_.jsx)("img",{className:m.Z.imgradius,src:T.Z.IMG_SERVER+"/images/".concat(null==l?void 0:l.user_image)}),(null==l?void 0:l.competition_prize)&&(0,_.jsx)("p",{className:m.Z.prize,children:null==l?void 0:l.competition_prize}),(0,_.jsx)("p",{style:{color:"#05101a",fontSize:"16px",marginTop:"10px"},children:null==l?void 0:l.record_user_name})]})})]}),className:m.Z.threediv,bordered:!1,children:[(0,_.jsx)("p",{style:{fontSize:"14px"},children:null==l?void 0:l.school_name}),(0,_.jsx)("p",{style:{fontSize:"18px"},children:null==l?void 0:l.spend_time}),(0,_.jsxs)("p",{style:{fontSize:"26px",color:"#a55b29"},children:[parseFloat(null==l?void 0:l.extra_score)+parseFloat(null==l?void 0:l.score),"分"]})]})})]})})},X=t(6848);var Q=function(e){var n,t,l,a,i,r,s,o,c,u,d,p,v,h,x,g,b=e.ItemData;return(0,_.jsxs)("div",{children:[(0,_.jsx)("p",{style:{fontSize:"24px",color:"#05101a"},children:"总排行"}),(0,_.jsx)(K,{oneItem:null==b?void 0:b.teams[0],towItem:null==b?void 0:b.teams[1],threeItem:null==b?void 0:b.teams[2]}),(null==b||null===(n=b.user_ranks)||void 0===n?void 0:n.length)>0&&(0,_.jsxs)("div",{className:m.Z.myTeam,children:[!1===(null==b||null===(t=b.user_ranks)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.success)?(0,_.jsxs)("span",{style:{marginRight:"70px",padding:"10px"},children:[(0,_.jsxs)("p",{style:{marginBottom:"0px"},children:[" 是否晋级:",(0,_.jsx)("span",{style:{color:!1===(null==b||null===(l=b.user_ranks)||void 0===l||null===(l=l[0])||void 0===l?void 0:l.success)?"red":"green"},children:!1===(null==b||null===(a=b.user_ranks)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.success)?"否":null!=b&&null!==(i=b.user_ranks)&&void 0!==i&&null!==(i=i[0])&&void 0!==i&&i.success?"是":""})]}),(null==b||null===(r=b.user_ranks)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.awards)&&(0,_.jsxs)("p",{style:{marginBottom:"0px"},children:[" 是否获奖:",(0,_.jsx)("span",{children:"percent_20"===(null==b||null===(s=b.user_ranks)||void 0===s||null===(s=s[0])||void 0===s?void 0:s.awards)?"二等奖":"percent_30"===(null==b||null===(o=b.user_ranks)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.awards)?"三等奖":"没有获得奖项"})]})]}):(0,_.jsxs)("span",{style:{marginRight:"70px"},children:["我的排名:",null==b||null===(c=b.user_ranks)||void 0===c||null===(c=c[0])||void 0===c?void 0:c.rank]}),(0,_.jsx)("span",{style:{flex:1},children:(0,_.jsx)(X.Z,{title:"战队名",children:null==b||null===(u=b.user_ranks)||void 0===u||null===(u=u[0])||void 0===u?void 0:u.team_name})}),(0,_.jsx)("span",{style:{flex:1},children:(0,_.jsx)(X.Z,{title:"时间",children:null==b||null===(d=b.user_ranks)||void 0===d||null===(d=d[0])||void 0===d?void 0:d.cost_time})}),(0,_.jsx)("span",{style:{flex:1,textAlign:"center"},children:(0,_.jsx)(X.Z,{title:"赋能赛加分",children:null==b||null===(p=b.user_ranks)||void 0===p||null===(p=p[0])||void 0===p?void 0:p.extra_score})}),(0,_.jsx)("span",{style:{flex:1},children:(0,_.jsx)(X.Z,{title:"比赛成绩",children:null==b||null===(v=b.user_ranks)||void 0===v||null===(v=v[0])||void 0===v?void 0:v.score})}),(0,_.jsx)("span",{children:(0,_.jsx)(X.Z,{title:"总分",children:parseFloat(null==b||null===(h=b.user_ranks)||void 0===h||null===(h=h[0])||void 0===h?void 0:h.extra_score)+parseFloat(null==b||null===(x=b.user_ranks)||void 0===x||null===(x=x[0])||void 0===x?void 0:x.score)||0})})]}),null==b||null===(g=b.teams)||void 0===g?void 0:g.map((function(e,n){return(0,_.jsxs)("div",{className:m.Z.bottomItem,children:[(0,_.jsx)("span",{style:{color:"#0152d9",marginRight:"20px"},children:n+1}),(0,_.jsxs)(f.Link,{to:"/users/".concat(null==e?void 0:e.user_login,"/classrooms"),style:{marginRight:"80px",position:"relative"},children:[(0,_.jsx)("img",{className:m.Z.imgradius,src:T.Z.IMG_SERVER+"/images/".concat(null==e?void 0:e.user_image)}),(null==e?void 0:e.competition_prize)&&(0,_.jsx)("span",{className:m.Z.spanrightradius,children:null==e?void 0:e.competition_prize})]}),(0,_.jsx)("span",{style:{flex:1},children:(0,_.jsx)(X.Z,{title:"战队名",children:null==e?void 0:e.team_name})}),(0,_.jsx)("span",{style:{flex:1},children:(0,_.jsx)(X.Z,{title:"单位/学校名",children:e.school_name})}),(0,_.jsx)("span",{style:{flex:1,textAlign:"center"},children:(0,_.jsx)(X.Z,{title:"赋能赛加分",children:e.extra_score})}),(0,_.jsx)("span",{style:{flex:1},children:(0,_.jsx)(X.Z,{title:"比赛成绩",children:e.score})}),(0,_.jsx)("span",{style:{color:"#0152d9"},children:(0,_.jsx)(X.Z,{title:"总分",children:parseFloat(e.extra_score)+parseFloat(e.score)})})]})}))]})},ee=Y.Z.TabPane;var ne=function(e){var n,t,l,a,i,s,c=e.ChartRules,d=e.ItemData,p=e.getCharts,h=e.Selectkey,x=e.getChartRules,b=e.userinfo,y=e.Editable,j=e.HeaderDetail,Z=(0,v.useState)(!1),k=u()(Z,2),w=k[0],S=k[1],N=(0,v.useState)(""),P=u()(N,2),E=P[0],O=P[1],L=(0,v.useState)(!0),z=u()(L,2),M=z[0],A=z[1],D=(0,v.useState)(),$=u()(D,2),B=$[0],F=$[1],H=(0,v.useState)(),W=u()(H,2),q=W[0],J=W[1],K=(0,f.useParams)().identifier;function X(){return(X=o()(r()().mark((function e(){var n,t,l;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(E){e.next=3;break}return g.ZP.info("内容不能为空"),e.abrupt("return");case 3:if(A(!1),!(n=null==B?void 0:B.id)){e.next=12;break}return e.next=8,(0,R.ZP)("/api/competitions/".concat(K,"/update_md_content.json"),{method:"post",body:{competition_module_id:h,content:E,md_content_id:null===(t=c.rule_contents)||void 0===t||null===(t=t.filter((function(e){return parseInt(e.competition_stage_id)===parseInt(n)})))||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id,stage_id:null==B?void 0:B.id}});case 8:0===e.sent.status&&(g.ZP.info("更新成功"),S(!1),x()),e.next=16;break;case 12:return e.next=14,(0,R.ZP)("/api/competitions/".concat(K,"/update_md_content.json"),{method:"post",body:{competition_module_id:h,content:E,md_content_id:null===(l=c.rule_contents)||void 0===l||null===(l=l.filter((function(e){return 0===parseInt(e.competition_stage_id)})))||void 0===l||null===(l=l[0])||void 0===l?void 0:l.id,stage_id:null==B?void 0:B.id}});case 14:0===e.sent.status&&(g.ZP.info("更新成功"),S(!1),x());case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,v.useEffect)((function(){if(M){var e,n,t,l=null==c||null===(e=c.stages)||void 0===e?void 0:e[0];if(F(l),null!=l&&l.id)"mAP"!==(null==j?void 0:j.task)&&"dog"!==(null==j?void 0:j.task)||p(null==l?void 0:l.id),O((null===(n=c.rule_contents)||void 0===n||null===(n=n.filter((function(e){return parseInt(e.competition_stage_id)===parseInt(null==l?void 0:l.id)})))||void 0===n||null===(n=n[0])||void 0===n?void 0:n.content)||"");else"mAP"===(null==j?void 0:j.task)||null==j||j.task,O((null===(t=c.rule_contents)||void 0===t||null===(t=t.filter((function(e){return 0===parseInt(e.competition_stage_id)})))||void 0===t||null===(t=t[0])||void 0===t?void 0:t.content)||"")}}),[c]);var ne=[{title:"排名",dataIndex:"name",align:"center",key:"name",render:function(e,n,t){return(0,_.jsx)("span",{children:t+1})}},{title:"头像",dataIndex:"user_image",align:"center",key:"user_image",render:function(e){return(0,_.jsx)("img",{className:m.Z.imgradius,src:T.Z.IMG_SERVER+"/images/".concat(e)})}},{title:"战队名称",dataIndex:"team_name",key:"team_name",render:function(e){return(0,_.jsx)("span",{title:e,children:e&&(null==e?void 0:e.length)>=15?(null==e?void 0:e.substr(0,15))+"...":e||"--"})}},{title:"单位",dataIndex:"school_name",key:"school_name",align:"center",render:function(e){return(0,_.jsx)("span",{children:e||"--"})}},{title:"mAP"===(null==j?void 0:j.task)?"mAP指标":"Jittor-3"===(null==j?void 0:j.task)?"总分":"top1指标",dataIndex:"score",key:"score",render:function(e){return(0,_.jsx)("span",{children:e||"--"})}}];return(0,_.jsxs)("div",{children:[(null==c||null===(n=c.stages)||void 0===n?void 0:n.length)>0?null:(0,_.jsx)(U,{}),(null==c||null===(t=c.stages)||void 0===t?void 0:t.length)>0&&(0,_.jsx)(Y.Z,{animated:!0,tabBarExtraContent:((null==b?void 0:b.admin)||(null==b?void 0:b.business)||y)&&(0,_.jsx)(C.ZP,{onClick:function(){S(!0)},children:"编辑"}),onChange:function(e){var n,t,l;S(!1);var a=null==c||null===(n=c.stages)||void 0===n?void 0:n.filter((function(n){return parseInt(e)===parseInt(null==n?void 0:n.id)}))[0];F(a);var i=null==a||null===(t=a.children)||void 0===t?void 0:t[0];J(i),O((null===(l=c.rule_contents)||void 0===l||null===(l=l.filter((function(e){return parseInt(e.competition_stage_id)===parseInt(null==a?void 0:a.id)})))||void 0===l||null===(l=l[0])||void 0===l?void 0:l.content)||""),p((null==i?void 0:i.id)||e)},children:c&&c.stages.map((function(e,n){return(0,_.jsx)(ee,{tab:e.name,children:!1===w&&c&&c.rule_contents.map((function(n,t){return e.id===n.competition_stage_id||null===e.id&&0===n.competition_stage_id?(0,_.jsx)(I.Z,{value:void 0===n.content||null===n.content?"":n.content},t):void 0}))},null===e.id?0:e.id)}))}),(null==B||null===(l=B.children)||void 0===l?void 0:l.length)>0&&(0,_.jsx)(Y.Z,{activeKey:(null==q?void 0:q.id)+"",onChange:function(e){var n,t=null==B||null===(n=B.children)||void 0===n?void 0:n.filter((function(n){return parseInt(e)===parseInt(null==n?void 0:n.id)}))[0];J(t),p(e)},children:null==B||null===(a=B.children)||void 0===a?void 0:a.map((function(e,n){return(0,_.jsx)(ee,{tab:e.name},null===e.id?0:e.id)}))}),w&&(0,_.jsxs)("div",{children:[(0,_.jsx)(V.Z,{defaultValue:E,onChange:function(e){O(e)}}),(0,_.jsxs)("p",{style:{marginTop:"10px"},children:[(0,_.jsx)(C.ZP,{style:{width:"90px"},type:"primary",onClick:function(){return function(){return X.apply(this,arguments)}()},children:"提交"}),(0,_.jsx)(C.ZP,{style:{marginLeft:"30px",width:"90px"},onClick:function(){return S(!1)},children:"取消"})]})]}),(null==d||null===(i=d.teams)||void 0===i?void 0:i.length)>0&&("mAP"===(null==j?void 0:j.task)||"dog"===(null==j?void 0:j.task)||"Jittor-3"===(null==j?void 0:j.task))?(0,_.jsx)(G.Z,{dataSource:null==d?void 0:d.teams,columns:ne,pagination:!1}):(null==d||null===(s=d.teams)||void 0===s?void 0:s.length)>0&&(0,_.jsx)(Q,{ItemData:d})]})},te=t(81194),le=t(83287),ae=t(7338),ie=t(56656),re=t.n(ie),se=Y.Z.TabPane;var oe=function(e){var n,t,l,a,i,s=e.ChartRules,c=e.ItemData,d=e.getCharts,p=e.Selectkey,m=e.HeaderDetail,h=e.getChartRules,x=e.userinfo,b=e.Editable,y=e.dispatch,j=e.StaffDetail,Z=(0,v.useState)(!1),k=u()(Z,2),w=k[0],S=k[1],N=(0,v.useState)(""),P=u()(N,2),E=P[0],T=P[1],O=(0,v.useState)(!0),L=u()(O,2),z=L[0],M=L[1],A=(0,v.useState)(),D=u()(A,2),$=D[0],B=D[1],F=(0,v.useState)(),H=u()(F,2),W=H[0],q=H[1],J=(0,f.useParams)().identifier;function K(){return(K=o()(r()().mark((function e(){var n,t,l;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(E){e.next=3;break}return g.ZP.info("内容不能为空"),e.abrupt("return");case 3:if(M(!1),!(n=null==$?void 0:$.id)){e.next=12;break}return e.next=8,(0,R.ZP)("/api/competitions/".concat(J,"/update_md_content.json"),{method:"post",body:{competition_module_id:p,content:E,md_content_id:null===(t=s.rule_contents)||void 0===t||null===(t=t.filter((function(e){return parseInt(e.competition_stage_id)===parseInt(n)})))||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id,stage_id:null==$?void 0:$.id}});case 8:0===e.sent.status&&(g.ZP.info("更新成功"),S(!1),h()),e.next=16;break;case 12:return e.next=14,(0,R.ZP)("/api/competitions/".concat(J,"/update_md_content.json"),{method:"post",body:{competition_module_id:p,content:E,md_content_id:null===(l=s.rule_contents)||void 0===l||null===(l=l.filter((function(e){return 0===parseInt(e.competition_stage_id)})))||void 0===l||null===(l=l[0])||void 0===l?void 0:l.id,stage_id:null==$?void 0:$.id}});case 14:0===e.sent.status&&(g.ZP.info("更新成功"),S(!1),h());case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,v.useEffect)((function(){if(z){var e,n,t=null==s||null===(e=s.stages)||void 0===e?void 0:e[0];B(t);var l,a,i=null==s||null===(n=s.stages)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.children)||void 0===n?void 0:n[0];if(q(i),null!=t&&t.id)d(null==t?void 0:t.id),T((null===(l=s.rule_contents)||void 0===l||null===(l=l.filter((function(e){return parseInt(e.competition_stage_id)===parseInt(null==t?void 0:t.id)})))||void 0===l||null===(l=l[0])||void 0===l?void 0:l.content)||"");else d(0),T((null===(a=s.rule_contents)||void 0===a||null===(a=a.filter((function(e){return 0===parseInt(e.competition_stage_id)})))||void 0===a||null===(a=a[0])||void 0===a?void 0:a.content)||"")}}),[s]);var Q=[{title:"request_id",dataIndex:"request_id",width:120,align:"center",key:"name",render:function(e,n,t){return(0,_.jsx)("span",{children:e})}},{title:"附件",dataIndex:"file_name",align:"center",width:150,key:"file_name",render:function(e){return(0,_.jsx)(X.Z,{title:e,children:(0,_.jsx)("span",{title:e,children:e&&(null==e?void 0:e.length)>=10?(null==e?void 0:e.substr(0,10))+"...":e||"--"})})}},{title:"提交人",dataIndex:"user_name",key:"user_name",width:100,render:function(e){return(0,_.jsx)("span",{title:e,children:e&&(null==e?void 0:e.length)>=6?(null==e?void 0:e.substr(0,6))+"...":e||"--"})}},{title:"提交时间",dataIndex:"created_at",key:"created_at",align:"center"},{title:"状态",dataIndex:"status",key:"status",width:50,render:function(e){return(0,_.jsx)("span",{children:1===e?"计算中":2===e?"完成":0===e?"待计算":3===e&&"错误"})}},!(null!=$&&$.display_four_indicators)&&"计图挑战热身赛"===(null==$?void 0:$.name)&&{title:"数据指标1",dataIndex:"data_ranking",key:"data_ranking",align:"center",render:function(e){return(0,_.jsx)("span",{children:e||"--"})}},!(null!=$&&$.display_four_indicators)&&"计图挑战热身赛"===(null==$?void 0:$.name)&&{title:"数据指标2",dataIndex:"data_other",key:"data_other",align:"left",render:function(e){return(null==e?void 0:e.length)>0?null==e?void 0:e.map((function(e,n){return(0,_.jsxs)("span",{children:[null==e?void 0:e.name,":",null==e?void 0:e.value," ",(0,_.jsx)("br",{})]})})):(0,_.jsx)("span",{children:"--"})}},(null==$?void 0:$.display_four_indicators)&&{title:"mask accuary",dataIndex:"data_ranking",key:"data_ranking",align:"left",render:function(e){return(0,_.jsx)("span",{children:e||"--"})}},(null==$?void 0:$.display_one_indicators)&&{title:"mIoU",dataIndex:"data_other",key:"data_ranking",align:"left",render:function(e){var n;return(0,_.jsx)("span",{children:(null==e||null===(n=e.find((function(e){return"mIoU"===(null==e?void 0:e.name)})))||void 0===n?void 0:n.value)||"--"})}},(null==$?void 0:$.display_four_indicators)&&{title:"美学评分",dataIndex:"data_other",key:"data_other",align:"left",render:function(e){var n;return(0,_.jsx)("span",{children:(null==e||null===(n=e.find((function(e){return"score"===(null==e?void 0:e.name)})))||void 0===n?void 0:n.value)||"--"})}},(null==$?void 0:$.display_four_indicators)&&{title:"FID",dataIndex:"data_other",key:"data_other",align:"left",render:function(e){var n;return(0,_.jsx)("span",{children:(null==e||null===(n=e.find((function(e){return"fid"===(null==e?void 0:e.name)})))||void 0===n?void 0:n.value)||"--"})}},(null==$?void 0:$.display_four_indicators)&&{title:"风格相似度",dataIndex:"data_other",key:"data_other",align:"left",render:function(e){var n;return(0,_.jsx)("span",{children:(null==e||null===(n=e.find((function(e){return"style_similarity"===(null==e?void 0:e.name)})))||void 0===n?void 0:n.value)||"--"})}},(null==$?void 0:$.display_four_indicators)&&{title:"总分",dataIndex:"data_other",key:"data_other",align:"left",render:function(e){var n;return(0,_.jsx)("span",{children:(null==e||null===(n=e.find((function(e){return"total_score"===(null==e?void 0:e.name)})))||void 0===n?void 0:n.value)||"--"})}},!(null!=$&&$.display_four_indicators)&&(null==$?void 0:$.name.includes("可微渲染新视角生成赛题"))&&{title:"Car",dataIndex:"data_ranking",key:"data_ranking",align:"center",render:function(e){return(0,_.jsx)("span",{children:e||"--"})}},!(null!=$&&$.display_four_indicators)&&(null==$?void 0:$.name.includes("可微渲染新视角生成赛题"))&&{title:"Coffee",dataIndex:"data_other",key:"data_other",align:"center",render:function(e){var n;return(0,_.jsx)("span",{children:(null==e||null===(n=e.find((function(e){return"Coffee"===(null==e?void 0:e.name)})))||void 0===n?void 0:n.value)||"--"})}},!(null!=$&&$.display_four_indicators)&&(null==$?void 0:$.name.includes("可微渲染新视角生成赛题"))&&{title:"Easyship",dataIndex:"data_other",key:"data_other",align:"center",render:function(e){var n;return(0,_.jsx)("span",{children:(null==e||null===(n=e.find((function(e){return"Easyship"===(null==e?void 0:e.name)})))||void 0===n?void 0:n.value)||"--"})}},!(null!=$&&$.display_four_indicators)&&(null==$?void 0:$.name.includes("可微渲染新视角生成赛题"))&&{title:"Scar",dataIndex:"data_other",key:"data_other",align:"center",render:function(e){var n;return(0,_.jsx)("span",{children:(null==e||null===(n=e.find((function(e){return"Scar"===(null==e?void 0:e.name)})))||void 0===n?void 0:n.value)||"--"})}},!(null!=$&&$.display_four_indicators)&&(null==$?void 0:$.name.includes("可微渲染新视角生成赛题"))&&{title:"Scarf",dataIndex:"data_other",key:"data_other",align:"center",render:function(e){var n;return(0,_.jsx)("span",{children:(null==e||null===(n=e.find((function(e){return"Scarf"===(null==e?void 0:e.name)})))||void 0===n?void 0:n.value)||"--"})}},!(null!=$&&$.display_four_indicators)&&(null==$?void 0:$.name.includes("可微渲染新视角生成赛题"))&&{title:"总分",dataIndex:"data_other",key:"data_other",align:"center",render:function(e){var n;return(0,_.jsx)("span",{children:(null==e||null===(n=e.find((function(e){return"Total"===(null==e?void 0:e.name)})))||void 0===n?void 0:n.value)||"--"})}},{title:"操作",dataIndex:"result_url",width:50,key:"result_url",render:function(e){return(0,_.jsx)("a",{href:e,target:"_blank",download:"附件",children:"下载"})}}].filter((function(e){return!!e}));return(0,_.jsxs)("div",{children:[(null==s||null===(n=s.stages)||void 0===n?void 0:n.length)>0?null:(0,_.jsx)(U,{}),(null==s||null===(t=s.stages)||void 0===t?void 0:t.length)>0&&(0,_.jsx)(Y.Z,{animated:!0,tabBarExtraContent:null!=x&&x.admin||null!=x&&x.business||b?(0,_.jsx)(C.ZP,{onClick:function(){S(!0)},children:"编辑"}):j.enrolled&&(null==$?void 0:$.start_time)&&(null==$?void 0:$.end_time)&&(0,_.jsxs)("span",{children:["提交时间:",re()(null==$?void 0:$.start_time).format("YYYY-MM-DD HH:mm:ss"),"至",re()(null==$?void 0:$.end_time).format("YYYY-MM-DD HH:mm:ss"),(0,_.jsx)(C.ZP,{style:{marginLeft:"20px"},disabled:re()(null==$?void 0:$.start_time).unix()>re()(re()().format("YYYY-MM-DD HH:mm:s")).unix()||re()(re()().format("YYYY-MM-DD HH:mm:s")).unix()>re()(null==$?void 0:$.end_time).unix(),onClick:function(){y({type:"shixunsDetail/setActionTabs",payload:{key:"md-tab",params:{value:(null==W?void 0:W.id)||(null==$?void 0:$.id),id:null==m?void 0:m.id}}})},children:"提交结果"})]}),onChange:function(e){var n,t,l;S(!1);var a=null==s||null===(n=s.stages)||void 0===n?void 0:n.filter((function(n){return parseInt(e)===parseInt(null==n?void 0:n.id)}))[0],i=null==a||null===(t=a.children)||void 0===t?void 0:t[0];q(i),B(a),T((null===(l=s.rule_contents)||void 0===l||null===(l=l.filter((function(e){return parseInt(e.competition_stage_id)===parseInt(null==a?void 0:a.id)})))||void 0===l||null===(l=l[0])||void 0===l?void 0:l.content)||""),d((null==i?void 0:i.id)||e)},children:s&&s.stages.map((function(e,n){return(0,_.jsx)(se,{tab:e.name,children:!1===w&&s&&s.rule_contents.map((function(n,t){return e.id===n.competition_stage_id||null===e.id&&0===n.competition_stage_id?(0,_.jsx)(I.Z,{value:void 0===n.content||null===n.content?"":n.content},t):void 0}))},null===e.id?0:e.id)}))}),(null==$||null===(l=$.children)||void 0===l?void 0:l.length)>0&&(0,_.jsx)(Y.Z,{activeKey:(null==W?void 0:W.id)+"",onChange:function(e){var n,t=null==$||null===(n=$.children)||void 0===n?void 0:n.filter((function(n){return parseInt(e)===parseInt(null==n?void 0:n.id)}))[0];q(t),d(e)},children:null==$||null===(a=$.children)||void 0===a?void 0:a.map((function(e,n){return(0,_.jsx)(se,{tab:e.name},null===e.id?0:e.id)}))}),w&&(0,_.jsxs)("div",{children:[(0,_.jsx)(V.Z,{defaultValue:E,onChange:function(e){T(e)}}),(0,_.jsxs)("p",{style:{marginTop:"10px"},children:[(0,_.jsx)(C.ZP,{style:{width:"90px"},type:"primary",onClick:function(){return function(){return K.apply(this,arguments)}()},children:"提交"}),(0,_.jsx)(C.ZP,{style:{marginLeft:"30px",width:"90px"},onClick:function(){return S(!1)},children:"取消"})]})]}),(null===(i=m.competition_modules.filter((function(e){return e.id===p})))||void 0===i||null===(i=i[0])||void 0===i?void 0:i.show_leaderboard)&&(0,_.jsx)(G.Z,{dataSource:null==c?void 0:c.results,columns:Q})]})},ce=t(58421),ue=Y.Z.TabPane;var de=function(e){var n,t,l,i,s,c,d=e.loading,p=e.ChartRules,m=e.ItemData,h=e.getCharts,x=(e.Selectkey,e.HeaderDetail,e.getChartRules,e.userinfo,e.Editable,e.dispatch,e.StaffDetail,(0,v.useState)(!1)),g=u()(x,2),b=(g[0],g[1]),y=(0,v.useState)(""),j=u()(y,2),Z=(j[0],j[1]),k=(0,v.useState)(!0),w=u()(k,2),C=w[0],N=(w[1],(0,v.useState)()),I=u()(N,2),P=I[0],R=I[1],O=(0,v.useState)(),L=u()(O,2),z=L[0],M=L[1],A=((0,f.useParams)().identifier,(0,v.useState)({page:1,limit:10,sort:"desc"})),D=u()(A,2),$=D[0],B=D[1];(0,v.useEffect)((function(){var e;C&&null!=p&&null!==(e=p.stages)&&void 0!==e&&e[0]&&F()}),[null==p||null===(n=p.stages)||void 0===n?void 0:n[0]]);var F=function(){var e=o()(r()().mark((function e(){var n,t,l,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=null==p||null===(n=p.stages)||void 0===n?void 0:n[0],R(l),i=null==p||null===(t=p.stages)||void 0===t||null===(t=t[0])||void 0===t||null===(t=t.children)||void 0===t?void 0:t[0],M(i),$.id=(null==i?void 0:i.id)||(null==l?void 0:l.id),B(a()({},$)),e.next=7,h(a()(a()({},$),{},{stage_id:$.id}));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,_.jsxs)("div",{children:[(null==p||null===(t=p.stages)||void 0===t?void 0:t.length)>0?null:(0,_.jsx)(U,{}),(null==p||null===(l=p.stages)||void 0===l?void 0:l.length)>0&&(0,_.jsx)(Y.Z,{tabBarStyle:{height:65,marginLeft:35,marginRight:30},animated:!0,onChange:function(){var e=o()(r()().mark((function e(n){var t,l,i,s,o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b(!1),s=null==p||null===(t=p.stages)||void 0===t?void 0:t.filter((function(e){return parseInt(n)===parseInt(null==e?void 0:e.id)}))[0],o=null==s||null===(l=s.children)||void 0===l?void 0:l[0],M(o),R(s),Z((null===(i=p.rule_contents)||void 0===i||null===(i=i.filter((function(e){return parseInt(e.competition_stage_id)===parseInt(null==s?void 0:s.id)})))||void 0===i||null===(i=i[0])||void 0===i?void 0:i.content)||""),$.page=1,$.limit=10,$.id=(null==o?void 0:o.id)||n,B(a()({},$)),e.next=9,h(a()({},$));case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:p&&p.stages.map((function(e,n){return(0,_.jsx)(ue,{tab:e.name},null===e.id?0:e.id)}))}),(null==P||null===(i=P.children)||void 0===i?void 0:i.length)>0&&(0,_.jsx)(Y.Z,{activeKey:(null==z?void 0:z.id)+"",onChange:function(){var e=o()(r()().mark((function e(n){var t,l;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=null==P||null===(t=P.children)||void 0===t?void 0:t.filter((function(e){return parseInt(n)===parseInt(null==e?void 0:e.id)}))[0],M(l),$.page=1,$.limit=10,$.id=n,B(a()({},$)),e.next=5,h(a()({},$));case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:null==P||null===(s=P.children)||void 0===s?void 0:s.map((function(e,n){return(0,_.jsx)(ue,{tab:e.name},null===e.id?0:e.id)}))}),(0,_.jsx)("div",{style:{height:10,background:"#F5F5F5"}}),(0,_.jsxs)("div",{style:{padding:"20px 30px"},children:[(0,_.jsxs)("span",{style:{cursor:"pointer",marginRight:20},onClick:function(){$.page=1,$.sort="desc"===$.sort?"asc":"desc",B(a()({},$)),h(a()({},$))},children:["按提交时间","asc"===$.sort?"正":"倒","序排序 ",(0,_.jsx)("i",{className:"iconfont font14 ".concat("asc"===$.sort?"icon-jiantou9":"icon-changyongtubiao-xianxingdaochu-zhuanqu-")})]})," ",(0,_.jsx)(E.Z.Search,{onSearch:function(e){$.page=1,$.search=e,B(a()({},$)),h(a()({},$))},style:{width:"82%"},placeholder:"输入人员/战队名称进行搜索"}),(0,_.jsx)(S.Z,{spinning:d,children:null==m||null===(c=m.results)||void 0===c?void 0:c.map((function(e,n){return(0,_.jsxs)("div",{style:{border:"1px solid #E3EFFC",height:100,borderRadius:"2px 2px 0px 0px",marginTop:0===n?14:30},children:[(0,_.jsxs)("div",{style:{height:60,padding:10,display:"flex",alignItems:"center"},children:[(0,_.jsx)("img",{src:T.Z.IMG_SERVER+"/images/"+(null==e?void 0:e.image_url),style:{width:40,height:40,borderRadius:"50%"}}),(0,_.jsxs)("div",{style:{marginLeft:10},children:[(0,_.jsx)("span",{style:{color:"#333333",fontWeight:500,fontSize:"16px"},children:null==e?void 0:e.user_name}),(0,_.jsxs)("span",{style:{color:"#999999",fontWeight:400,fontSize:"14px",marginLeft:60},children:["所属战队",(0,_.jsx)("span",{style:{marginLeft:10,color:"#333"},children:(null==e?void 0:e.team_name)||"- -"})]}),(0,_.jsxs)("span",{style:{color:"#333333",fontWeight:400,fontSize:"14px",marginLeft:40},children:["学校 ",(0,_.jsx)("span",{style:{marginLeft:10,color:"#333"},children:(null==e?void 0:e.school_name)||"- -"})]})]})]}),(0,_.jsxs)("div",{style:{background:"#EEF2F8",height:40,borderRadius:"0px 0px 2px 2px",paddingLeft:60,paddingRight:40,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,_.jsxs)("div",{children:[(0,_.jsxs)("span",{style:{color:"#666666",fontSize:"12px"},children:["提交时间:",null==e?void 0:e.created_at]}),(0,_.jsxs)("span",{style:{color:"#666666",fontSize:"12px",margin:"0px 40px"},children:["消耗内存:",(null==e?void 0:e.ts_mem)||"- -","MB"]}),(0,_.jsxs)("span",{style:{color:"#666666",fontSize:"12px"},children:["代码执行时间:",(null==e?void 0:e.ts_time)||"- -","秒"]})]}),(0,_.jsxs)("a",{style:{display:"flex",alignItems:"center"},href:"/tasks/".concat(null==e?void 0:e.game_identifier),target:"_blank",children:[(0,_.jsx)("i",{className:"iconfont icon-chakandaima",style:{marginRight:4}}),(0,_.jsx)("span",{style:{lineHeight:"14px"},children:"查看代码"})]})]})]})}))}),(0,_.jsx)(ce.Z,{total:null==m?void 0:m.total_count,pageSize:10,hideOnSinglePage:!0,style:{marginTop:40,textAlign:"center"},showSizeChanger:!1,current:$.page,onChange:function(e,n){$.page=e,B(a()({},$)),h(a()({},$))}})]})]})},pe=t(65563),ve=Y.Z.TabPane;var fe=function(e){var n,t,l,i,s,c,d,p=e.loading,m=e.ChartRules,h=e.ItemData,x=e.getCharts,g=(e.Selectkey,e.HeaderDetail),b=(e.getChartRules,e.userinfo,e.Editable,e.dispatch),y=e.StaffDetail,j=(0,v.useState)(!1),Z=u()(j,2),k=(Z[0],Z[1]),w=(0,v.useState)(""),C=u()(w,2),N=(C[0],C[1]),I=(0,v.useState)(!0),P=u()(I,2),E=P[0],T=(P[1],(0,v.useState)()),O=u()(T,2),L=O[0],z=O[1],M=(0,v.useState)(),A=u()(M,2),D=A[0],$=A[1],B=(0,v.useState)([]),F=u()(B,2),V=F[0],H=F[1],W=(0,f.useParams)().identifier,G=(0,v.useState)({page:1,limit:10}),q=u()(G,2),J=q[0],K=q[1],X=(0,v.useState)(),Q=u()(X,2);Q[0],Q[1],(0,v.useEffect)((function(){var e;E&&null!=m&&null!==(e=m.stages)&&void 0!==e&&e[0]&&ee()}),[null==m||null===(n=m.stages)||void 0===n?void 0:n[0]]);var ee=function(){var e=o()(r()().mark((function e(){var n,t,l,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=null==m||null===(n=m.stages)||void 0===n?void 0:n[0],z(l),i=null==m||null===(t=m.stages)||void 0===t||null===(t=t[0])||void 0===t||null===(t=t.children)||void 0===t?void 0:t[0],$(i),J.id=(null==i?void 0:i.id)||(null==l?void 0:l.id),K(a()({},J)),e.next=7,x(a()(a()({},J),{},{stage_id:J.id}));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function ne(){return(ne=o()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,R.ZP)("/api/competitions/".concat(W,"/get_shixun_settings.json"),{method:"get"});case 2:0===(null==(n=e.sent)?void 0:n.status)&&H(n);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,v.useEffect)((function(){null!=g&&g.is_new&&function(){ne.apply(this,arguments)}()}),[g]),(0,_.jsxs)("div",{children:[(null==m||null===(t=m.stages)||void 0===t?void 0:t.length)>0?null:(0,_.jsx)(U,{}),(null==m||null===(l=m.stages)||void 0===l?void 0:l.length)>0&&(0,_.jsx)(Y.Z,{tabBarStyle:{height:65,marginLeft:35,marginRight:30},animated:!0,onChange:function(){var e=o()(r()().mark((function e(n){var t,l,i,s,o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k(!1),s=null==m||null===(t=m.stages)||void 0===t?void 0:t.filter((function(e){return parseInt(n)===parseInt(null==e?void 0:e.id)}))[0],o=null==s||null===(l=s.children)||void 0===l?void 0:l[0],$(o),z(s),N((null===(i=m.rule_contents)||void 0===i||null===(i=i.filter((function(e){return parseInt(e.competition_stage_id)===parseInt(null==s?void 0:s.id)})))||void 0===i||null===(i=i[0])||void 0===i?void 0:i.content)||""),J.page=1,J.limit=10,J.id=(null==o?void 0:o.id)||n,K(a()({},J)),e.next=9,x(a()({},J));case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:m&&m.stages.map((function(e,n){return(0,_.jsx)(ve,{tab:e.name},null===e.id?0:e.id)}))}),(null==L||null===(i=L.children)||void 0===i?void 0:i.length)>0&&(0,_.jsx)(Y.Z,{activeKey:(null==D?void 0:D.id)+"",tabBarStyle:{height:65,marginLeft:35,marginRight:30},onChange:function(){var e=o()(r()().mark((function e(n){var t,l;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=null==L||null===(t=L.children)||void 0===t?void 0:t.filter((function(e){return parseInt(n)===parseInt(null==e?void 0:e.id)}))[0],$(l),J.page=1,J.limit=10,J.id=n,K(a()({},J)),e.next=5,x(a()({},J));case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:null==L||null===(s=L.children)||void 0===s?void 0:s.map((function(e,n){return(0,_.jsx)(ve,{tab:e.name},null===e.id?0:e.id)}))}),(0,_.jsx)("div",{style:{height:10,background:"#F5F5F5"}}),(0,_.jsxs)("div",{style:{padding:"20px 30px"},children:[(0,_.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,_.jsxs)("span",{style:{color:"#9096A3"},children:["作品提交时间",(0,_.jsxs)("span",{style:{color:"#333333",marginLeft:5},children:[null==h?void 0:h.start_time,"~",null==h?void 0:h.end_time]})]}),(0,_.jsxs)("span",{style:{color:"#9096A3"},children:["成绩来源",(0,_.jsx)("span",{style:{color:"#333333",marginLeft:5},children:0===(null==h?void 0:h.score_source)?"经验值":"预测准确率"})," "]})]}),(0,_.jsxs)(S.Z,{spinning:p,children:[!(null!=g&&g.is_new)&&(null==h||null===(c=h.results)||void 0===c?void 0:c.map((function(e,n){return(0,_.jsx)(pe.Z,{dispatch:b,Header:g,StaffDetail:y,item:e,index:n})}))),(null==g?void 0:g.is_new)&&(null==V||null===(d=V.data)||void 0===d?void 0:d.map((function(e,n){return(0,_.jsx)(pe.Z,{dispatch:b,Header:g,StaffDetail:y,item:e,index:n})})))]}),(0,_.jsx)(ce.Z,{total:null==h?void 0:h.total_count,pageSize:10,hideOnSinglePage:!0,style:{marginTop:40,textAlign:"center"},showSizeChanger:!1,current:J.page,onChange:function(e,n){J.page=e,K(a()({},J)),x(a()({},J))}})]})]})},me=t(26716),he=t(34684),xe=t(75813),ge=t(70236),be=t.n(ge),ye=t(91232),je=t.n(ye),_e=t(78241),Ze=t(32050),ke={WorkSubmitDesc:"WorkSubmitDesc___zk_Kc",WorkSubmit:"WorkSubmit___BOuVl",span:"span___sGFYr",search:"search___wZWVl",downBut:"downBut___tfNYQ"},we=t(13767),Se=t(82742),Ce=t(86129),Ne=t.n(Ce),Ie=(0,f.connect)((function(e){return be()(e),{}}))((function(e){var n,t,l,i,s=e.dispatch,c=e.userinfo,d=e.Editable,p=e.ItemData,m=e.TabResults,h=e.HeaderDetail,y=e.StaffDetail,Z=e.getTabResults,k=void 0===Z?function(){}:Z,w=(0,v.useState)(!1),S=u()(w,2),N=S[0],T=S[1],O=(0,f.useParams)().identifier,L=(0,v.useState)(1),z=u()(L,2),M=z[0],A=z[1],D=(0,v.useState)(!1),$=u()(D,2),B=$[0],F=$[1],H=(0,v.useState)(!1),W=u()(H,2),U=W[0],q=W[1],J=(0,v.useState)([]),K=u()(J,2),Q=K[0],ee=K[1],ne=(0,v.useState)(!1),te=u()(ne,2),ae=te[0],ie=te[1],se=(0,v.useState)({name:"",url:"",id:null,fileList:[]}),oe=u()(se,2),ue=oe[0],de=oe[1],pe=(0,v.useState)({total_count:0,results:[]}),ve=u()(pe,2),fe=ve[0],me=ve[1],he=(0,v.useState)(null),xe=u()(he,2),ge=xe[0],be=xe[1],ye=(0,v.useState)({page:1,per_page:20,keyword:""}),Ce=u()(ye,2),Ie=Ce[0],Pe=Ce[1],Ee=(0,v.useState)(""),Te=u()(Ee,2),Re=Te[0],Oe=Te[1],Le=(0,v.useState)(new(Ne())),ze=u()(Le,2),Me=ze[0];ze[1];(0,v.useEffect)((function(){F((null==c?void 0:c.admin)||(null==c?void 0:c.business)||d)}),[null==c?void 0:c.admin,null==c?void 0:c.business,d]),(0,v.useEffect)((function(){null!=p&&p.only_file&&A(2)}),[p]),(0,v.useEffect)((function(){var e,n,t,l;m.stages&&(null===(e=m.stages)||void 0===e?void 0:e.length)>0&&((null===(n=m.stages)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.children)||void 0===n?void 0:n.length)>0?be((null===(t=m.stages)||void 0===t||null===(t=t[0])||void 0===t||null===(t=t.children)||void 0===t?void 0:t[0])||null):be((null===(l=m.stages)||void 0===l?void 0:l[0])||null))}),[m.stages]),(0,v.useEffect)((function(){De()}),[null==ge?void 0:ge.id,Ie.page]);var Ae=[{title:(0,_.jsx)("span",{style:{color:"#5F6368"},children:"队伍名称"}),dataIndex:"team_name",width:"120px",ellipsis:!0,render:function(e){return(0,_.jsx)(X.Z,{placement:"topLeft",title:e,children:e||"- -"})},isShow:[1,2]},{title:(0,_.jsx)("span",{style:{color:"#5F6368"},children:"提交人"}),dataIndex:"user_name",width:"120px",ellipsis:!0,render:function(e){return(0,_.jsx)(X.Z,{placement:"topLeft",title:e,children:e||"- -"})},isShow:[1,2]},{title:(0,_.jsx)("span",{style:{color:"#5F6368"},children:"作品名称"}),dataIndex:"name",ellipsis:!0,render:function(e,n){return e?(0,_.jsx)("a",{href:n.url||"#",target:"_blank",children:(0,_.jsx)(X.Z,{placement:"topLeft",title:e,children:e})}):"--"},isShow:[1]},{title:(0,_.jsx)("span",{style:{color:"#5F6368"},children:"作品文件"}),dataIndex:"file_name",width:1==M?"180px":"",ellipsis:!0,render:function(e){return(0,_.jsx)(X.Z,{placement:"topLeft",title:e,children:e||"- -"})},isShow:[1,2]},{title:(0,_.jsx)("span",{style:{color:"#5F6368"},children:"更新时间"}),dataIndex:"updated_at",width:"180px",render:function(e){return e||"- -"},isShow:[1,2]},{title:(0,_.jsx)("span",{style:{color:"#5F6368"},children:"操作"}),dataIndex:"result_url",ellipsis:!0,width:"140px",align:"center",render:function(e,n){return(0,_.jsxs)(P.Z,{justify:B?"center":"space-between",children:[!B&&(0,_.jsx)(C.ZP,{type:"link",onClick:function(){q(!0),de({name:n.name,url:n.url,id:n.id}),n.file_name&&ee([{uid:"-1",name:n.file_name,status:"done",url:n.result_url||""}])},children:"编辑"}),(0,_.jsx)(Se.Z,{type:"link",disabled:!e,onClick:o()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,le.Nd)(n.file_name,e));case 1:case"end":return t.stop()}}),t)}))),children:B?"下载文件":"下载"})]})},isShow:[1,2]}].filter((function(e){return e.isShow.includes(M)})),De=function(){var e=o()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ie(!0),e.next=3,s({type:"competitions/Results",payload:a()({identifier:O,stage_id:null==ge?void 0:ge.id,module_type:"worksubmit"},Ie)});case 3:n=e.sent,me(n),ie(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),$e=function(){var e=o()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s({type:"competitions/updateMdContent",payload:{identifier:O,stage_id:null==ge?void 0:ge.id,competition_module_id:p.id,content:Re,md_content_id:null==n?void 0:n.id}});case 2:return 0==(t=e.sent).status&&g.ZP.success(t.message),T(!1),e.next=7,k();case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Be=function(){var e=o()(r()().mark((function e(n){var t,l,a,i,o,u;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log(n,Q),2!=M||0!=Q.length){e.next=4;break}return g.ZP.error("请选择文件"),e.abrupt("return");case 4:if(i={login:null==c?void 0:c.login,container_type:"Competition",file_name:null==Q||null===(t=Q[0])||void 0===t?void 0:t.name,stage_type:null==ge?void 0:ge.id,container_id:null==h?void 0:h.id,result_id:null==ue?void 0:ue.id,module_type:"worksubmit"},1!=M){e.next=13;break}return e.next=8,(0,R.ZP)("/api/competitions/".concat(O,"/check_result_url.json"),{method:"GET",params:{url:n.url,stage_id:null==ge?void 0:ge.id,result_id:null==ue?void 0:ue.id}});case 8:if(0==(null==(o=e.sent)?void 0:o.status)){e.next=11;break}return e.abrupt("return");case 11:i.name=n.name,i.url=n.url;case 13:if(1!=M||0!=Q.length){e.next=19;break}return e.next=16,s({type:"competitions/getWorkSubmitUpdateRes",payload:{identifier:O,result_id:null==ue?void 0:ue.id,name:n.name,url:n.url,stage_id:null==ge?void 0:ge.id,result_url:null==ue?void 0:ue.result_url,module_type:"worksubmit"}});case 16:a=e.sent,e.next=22;break;case 19:return e.next=21,(0,j.cT)(Q[0],i);case 21:a=e.sent;case 22:0==(null===(l=a)||void 0===l?void 0:l.status)?g.ZP.success("提交成功"):g.ZP.info((null===(u=a)||void 0===u?void 0:u.message)||"提交失败"),q(!1),ee([]),De();case 26:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Fe=function(){var e=o()(r()().mark((function e(){var n,t,l,a,i,c,u,d,p,v;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s({type:"competitions/Results",payload:{identifier:O,stage_id:null==ge?void 0:ge.id,page:1,per_page:9999999,keyword:"",module_type:"worksubmit"}});case 2:if(t=e.sent,l=null==t||null===(n=t.results)||void 0===n?void 0:n.filter((function(e){return(null==e?void 0:e.result_url)&&e.file_name})),a=b.Z.info({width:460,title:(0,_.jsxs)("div",{children:["正在导出参赛文件,",(0,_.jsx)("span",{className:"c-red",children:"请勿关闭或操作当前浏览器窗口"})]}),content:(0,_.jsxs)("div",{children:["当前进度: ",(0,_.jsx)("span",{className:"c-blue",children:0}),"/",l.length]}),maskClosable:!1,className:ke.modal,onOk:function(){}}),i=[],c=function(){var e=o()(r()().mark((function e(n,t){var s,o,c;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s=new(Ne()),e.next=4,fetch(n.result_url,{method:"get"});case 4:return o=e.sent,e.next=7,o.blob();case 7:return c=e.sent,s.file(n.file_name,c),e.next=11,s.generateAsync({type:"blob"}).then((function(e){!function n(t){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;0==l&&i.includes(t)||i.includes("".concat(t,"(").concat(l,")"))?n(t,l+1):(i.push(0==l?t:"".concat(t,"(").concat(l,")")),Me.file(0==l?t+".zip":"".concat(t,"(").concat(l,")")+".zip",e))}("".concat(null==n?void 0:n.team_name,"-").concat(null==n?void 0:n.user_name))}));case 11:a.update({content:(0,_.jsxs)("div",{children:["当前进度: ",(0,_.jsx)("span",{className:"c-blue",children:t}),"/",l.length]})}),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),g.ZP.error("".concat(n.file_name,"下载失败"));case 17:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(n,t){return e.apply(this,arguments)}}(),!(l.length>0)){e.next=27;break}u=0,d=je()(l),e.prev=10,d.s();case 12:if((p=d.n()).done){e.next=18;break}return v=p.value,e.next=16,c(v,++u);case 16:e.next=12;break;case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(10),d.e(e.t0);case 23:return e.prev=23,d.f(),e.finish(23);case 26:Me.generateAsync({type:"blob"}).then((function(e){(0,le.Nd)(h.name,window.URL.createObjectURL(e))}));case 27:a.destroy();case 28:case"end":return e.stop()}}),e,null,[[10,20,23,26]])})));return function(){return e.apply(this,arguments)}}(),Ve={maxCount:1,withCredentials:!0,fileList:Q,onRemove:function(){ee([])},beforeUpload:function(e){var n=e.size/1024/1024;e.name.split(".").slice(-1)[0].toLowerCase();return 1==M&&n>150||2==M&&n/1024>1||0==n?(g.ZP.error("".concat(e.name," 文件无法上传。").concat(0==n?"文件内容不能为空":"超过文件大小限制(".concat(1==M?"150MB":"1G",")"))),Promise.reject()):(ee([e]),!1)}};return(0,_.jsxs)("div",{className:ke.WorkSubmit,children:[ge?(0,_.jsx)(Y.Z,{defaultActiveKey:(null===(n=m.stages)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.id)||1,destroyInactiveTabPane:!0,tabBarExtraContent:(0,_.jsxs)(P.Z,{style:{marginBottom:"10px"},children:[!B&&y.enrolled&&(0,_.jsx)(C.ZP,{type:"primary",onClick:function(){return q(!0)},children:"作品提交"}),B&&!N&&(0,_.jsx)(C.ZP,{style:{marginLeft:"10px"},type:"primary",onClick:function(){return T(!0)},children:"编辑"})]}),onChange:function(e){var n=m.stages.find((function(n){return n.id==e}));n.children.length>0?be(n.children[0]):be(n)},children:null===(t=m.stages)||void 0===t?void 0:t.map((function(e,n){var t,l,a,i,s;return(0,_.jsxs)(Y.Z.TabPane,{tab:(0,_.jsx)("div",{style:{marginBottom:"20px"},children:e.name}),children:[N?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(V.Z,{defaultValue:(null===(t=m.rule_contents[n])||void 0===t?void 0:t.content)||"",onChange:function(e){return Oe(e)}}),(0,_.jsxs)(P.Z,{children:[(0,_.jsx)(Se.Z,{type:"primary",onClick:function(){return $e(m.rule_contents[n])},children:"提交"}),(0,_.jsx)(C.ZP,{style:{marginLeft:"10px"},onClick:o()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",T(!1));case 1:case"end":return e.stop()}}),e)}))),children:"取消"})]})]}):(0,_.jsx)(I.Z,{style:{marginTop:"10px"},value:(null===(l=m.rule_contents[n])||void 0===l?void 0:l.content)||""}),(null===(a=e.children)||void 0===a?void 0:a.length)>0&&(0,_.jsx)(Y.Z,{defaultActiveKey:null===(i=e.children)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.id,destroyInactiveTabPane:!0,onChange:function(n){var t;be(null===(t=e.children)||void 0===t?void 0:t.find((function(e){return e.id==n})))},children:null===(s=e.children)||void 0===s?void 0:s.map((function(e){return(0,_.jsx)(Y.Z.TabPane,{tab:e.name},e.id)}))})]},e.id)}))}):(0,_.jsxs)("div",{children:[(y.enrolled||B)&&(0,_.jsxs)(P.Z,{style:{marginBottom:"10px",paddingBottom:"10px",borderBottom:"1px solid #eee"},children:[!B&&y.enrolled&&(0,_.jsx)(C.ZP,{style:{marginLeft:"auto"},type:"primary",onClick:function(){return q(!0)},children:"作品提交"}),B&&!N&&(0,_.jsx)(C.ZP,{style:{marginLeft:!B&&y.enrolled?"10px":"auto"},type:"primary",onClick:function(){return T(!0)},children:"编辑"})]}),N?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(V.Z,{defaultValue:(null===(l=m.rule_contents)||void 0===l||null===(l=l[0])||void 0===l?void 0:l.content)||"",onChange:function(e){return Oe(e)}}),(0,_.jsxs)(P.Z,{children:[(0,_.jsx)(Se.Z,{type:"primary",onClick:function(){var e;return $e(null===(e=m.rule_contents)||void 0===e?void 0:e[0])},children:"提交"}),(0,_.jsx)(C.ZP,{style:{marginLeft:"10px"},onClick:o()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",T(!1));case 1:case"end":return e.stop()}}),e)}))),children:"取消"})]})]}):(0,_.jsx)(I.Z,{style:{marginTop:"10px"},value:(null===(i=m.rule_contents)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.content)||""})]}),B&&(0,_.jsxs)(P.Z,{align:"middle",justify:"space-between",style:{marginTop:"21px"},children:[(0,_.jsxs)(P.Z,{align:"middle",children:[(0,_.jsx)(E.Z,{className:ke.search,placeholder:"请输入队伍名称或提交人姓名搜索",suffix:(0,_.jsx)("i",{className:"iconfont icon-sousuo9",onClick:De,style:{color:"#000",cursor:"pointer",fontSize:"14px"}}),onChange:function(e){Ie.keyword=e.target.value,Pe(Ie)},style:{background:"#F6F7F9"},bordered:!1,onPressEnter:De}),(0,_.jsxs)("div",{style:{color:"#9B9B9B",fontSize:"14px",marginLeft:"20px"},children:["当前共计作品",(0,_.jsx)("span",{style:{color:"#165DFF"},children:fe.total_count}),"个"]})]}),(0,_.jsxs)(P.Z,{align:"middle",children:[1==M&&(0,_.jsx)(C.ZP,{style:{lineHeight:"32px"},target:"_blank",href:"/api/competitions/".concat(O,"/results.xlsx?identifier=").concat(O,"&stage_id=").concat((null==ge?void 0:ge.id)||"","&module_type=worksubmit"),icon:(0,_.jsx)("i",{className:"iconfont icon-lianjie3",style:{fontSize:"16px",color:"#44D7B6"}}),className:ke.downBut,children:"下载作品链接"}),(0,_.jsx)(Se.Z,{icon:(0,_.jsx)("i",{className:"iconfont icon-wenjian4",style:{fontSize:"16px",color:"#F6C555"}}),className:ke.downBut,style:{marginLeft:"20px"},onClick:Fe,children:"下载所有文件"})]})]}),(0,_.jsx)(G.Z,{style:{marginTop:"17px"},loading:ae,columns:Ae,dataSource:fe.results,locale:{emptyText:(0,_.jsx)(we.Z,{})},pagination:!1}),(0,_.jsxs)(P.Z,{style:{marginTop:"20px"},align:"middle",justify:"space-between",children:[((null==ge?void 0:ge.end_time)&&(null==ge?void 0:ge.start_time)||h.start_time&&h.end_time)&&(0,_.jsxs)("span",{className:ke.span,children:["提交时间:",(0,_.jsx)("span",{children:re()((null==ge?void 0:ge.start_time)||h.start_time).format("YYYY-MM-DD HH:mm:ss")})," 至 ",(0,_.jsx)("span",{children:re()((null==ge?void 0:ge.end_time)||h.end_time).format("YYYY-MM-DD HH:mm:ss")})]}),(0,_.jsx)(ce.Z,{showQuickJumper:!0,hideOnSinglePage:!0,total:fe.total_count,pageSize:Ie.per_page,onChange:function(e){Ie.page=e,Pe(Ie)}})]}),(0,_.jsxs)(b.Z,{centered:!0,destroyOnClose:!0,title:(0,_.jsx)("div",{style:{fontWeight:"500",color:"#000000",marginTop:"10px"},children:"参数作品提交"}),open:U,bodyStyle:{padding:" 0px 25px 10px 25px"},footer:null,onCancel:function(){q(!1),ee([]),de(null)},children:[(0,_.jsx)("div",{className:ke.WorkSubmitDesc,children:"说明:参赛作品不支持删除,大赛进行中上传后的作品如需修改,可在【作品提交】列表点击“编辑”进行修改。"}),(0,_.jsxs)(_e.Z,{initialValues:ue,colon:!1,onFinish:Be,children:[1==M&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(_e.Z.Item,{label:"作品名称",name:"name",rules:[{required:!0,message:"请填写作品名称"}],children:(0,_.jsx)(E.Z,{showCount:!0,maxLength:60,placeholder:"请输入作品名称"})}),(0,_.jsx)(_e.Z.Item,{label:"作品链接",name:"url",rules:[{required:!0,message:"请填写作品链接"}],children:(0,_.jsx)(E.Z,{placeholder:"请输入作品链接"})})]}),(0,_.jsxs)(_e.Z.Item,{name:"fileList",style:{paddingLeft:1==M?"76px":"0"},valuePropName:"fileList",getValueFromEvent:function(e){return Array.isArray(e)?e:null==e?void 0:e.fileList},children:[1==M&&(0,_.jsx)(x.Z,a()(a()({},Ve),{},{children:(0,_.jsxs)(P.Z,{align:"middle",children:[(0,_.jsx)(C.ZP,{type:"primary",ghost:!0,icon:(0,_.jsx)(Ze.Z,{}),children:Q.length>0?"更换文件":"文件上传"}),(0,_.jsx)(X.Z,{placement:"right",overlayStyle:{maxWidth:600},title:(0,_.jsxs)("div",{onClick:function(e){e.preventDefault(),e.stopPropagation()},children:[(0,_.jsx)("p",{children:"提示:"}),(0,_.jsx)("p",{children:"1. 一次最多上传1个文件。"}),(0,_.jsx)("p",{children:"2. 单个文件大小请勿超过150M。"})]}),children:(0,_.jsx)("i",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"iconfont icon-tishixiaowenhao ml5",style:{cursor:"pointer",color:"#C5C5C5"}})})]})})),2==M&&(0,_.jsxs)(x.Z.Dragger,a()(a()({className:ke.fileList,style:{background:"#fff",padding:"31px 0px"}},Ve),{},{children:[(0,_.jsx)("p",{className:"ant-upload-drag-icon",children:(0,_.jsx)("i",{className:"iconfont icon-shangchuan4",style:{fontSize:"32px",color:"#165DFF"}})}),(0,_.jsx)("p",{className:"ant-upload-text",children:"拖拽文件或者点击上传"})]}))]}),(0,_.jsx)(_e.Z.Item,{children:(0,_.jsxs)(P.Z,{align:"middle",children:[(0,_.jsx)(C.ZP,{style:{marginLeft:"auto"},onClick:function(){q(!1),ee([]),de(null)},children:"取消"}),(0,_.jsx)(C.ZP,{type:"primary",style:{marginLeft:"10px"},htmlType:"submit",children:"确定"})]})})]})]})]})})),Pe=["globalSetting","loading","dispatch","user"],Ee=(0,f.connect)((function(e){var n=e.loading;return{globalSetting:e.globalSetting,loading:n,user:e.user}}))((function(e){e.globalSetting;var n,t,l,i,s,c,d,x,y=e.loading,j=e.dispatch,Z=e.user,I=(p()(e,Pe),(0,v.useState)({avatar_url:""})),P=u()(I,2),E=P[0],R=P[1],L=(0,v.useState)([]),z=u()(L,2),M=z[0],A=z[1],D=(0,f.useParams)().identifier,$=(0,v.useState)([]),B=u()($,2),V=B[0],H=B[1],Y=(0,v.useState)(!0),G=u()(Y,2),U=G[0],q=G[1],J=(0,v.useState)([]),K=u()(J,2),X=K[0],Q=K[1],ee=(0,v.useState)([]),ie=u()(ee,2),re=ie[0],se=ie[1],ce=(0,v.useState)(!1),ue=u()(ce,2),pe=ue[0],ve=ue[1],ge=(0,v.useState)(!1),be=u()(ge,2),ye=be[0],je=be[1],_e=(0,v.useState)(!1),Ze=u()(_e,2),ke=Ze[0],we=Ze[1],Se=(0,v.useState)([]),Ce=u()(Se,2),Ne=Ce[0],Ee=Ce[1],Te=(0,v.useState)([]),Re=u()(Te,2),Oe=Re[0],Le=Re[1],ze=(0,v.useState)([]),Me=u()(ze,2),Ae=Me[0],De=Me[1],$e=(0,v.useState)(!1),Be=u()($e,2),Fe=Be[0],Ve=Be[1],He=(0,v.useState)([]),We=u()(He,2),Ye=We[0],Ge=We[1],Ue=(0,v.useState)(),qe=u()(Ue,2),Je=qe[0],Ke=qe[1],Xe=(0,v.useState)(!0),Qe=u()(Xe,2),en=Qe[0],nn=Qe[1],tn=(0,v.useState)(!1),ln=u()(tn,2),an=ln[0],rn=ln[1],sn=(0,v.useState)(!1),on=u()(sn,2),cn=on[0],un=on[1],dn=(0,v.useState)(!1),pn=u()(dn,2),vn=pn[0],fn=pn[1],mn=(0,v.useState)(!1),hn=u()(mn,2),xn=hn[0],gn=hn[1],bn=(0,v.useState)(!1),yn=u()(bn,2),jn=yn[0],_n=yn[1],Zn=(0,v.useState)(!0),kn=u()(Zn,2),wn=kn[0],Sn=kn[1],Cn=(0,v.useState)(!1),Nn=u()(Cn,2),In=Nn[0],Pn=Nn[1],En=(0,v.useState)(!1),Tn=u()(En,2),Rn=Tn[0],On=Tn[1],Ln=(0,v.useState)(""),zn=u()(Ln,2),Mn=zn[0],An=zn[1],Dn=(0,f.useLocation)(),$n=(0,v.useRef)(null),Bn=(0,v.useState)(!1),Fn=u()(Bn,2),Vn=Fn[0],Hn=Fn[1];function Wn(){return Yn.apply(this,arguments)}function Yn(){return(Yn=o()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=A,e.next=3,j({type:"competitions/getStaff",payload:{identifier:D}});case 3:return e.t1=e.sent,(0,e.t0)(e.t1),e.next=7,j({type:"competitions/getHeader",payload:{identifier:D}});case 7:n=e.sent,R(n),(0,le.Dk)((null==n?void 0:n.name)||"竞赛");case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Gn(e){return Un.apply(this,arguments)}function Un(){return(Un=o()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(De(n.id),Ae=n.id,Q(n),"entrance"!==n.module_type){e.next=9;break}return e.next=6,j({type:"competitions/getItem",payload:{url:n.module_url,module_type:"entrance"}});case 6:t=e.sent,e.next=12;break;case 9:return e.next=11,j({type:"competitions/getItem",payload:{url:n.module_url}});case 11:t=e.sent;case 12:ve(!1),we(!1),Ve(!1),H(t),rn(!1),un(!1),Hn(!1),se(n.module_type),"worksubmit"===n.module_type?(q(!1),Hn(!0),at()):"chart"===n.module_type?(ve(!0),q(!1),Kn()):"certificate"===n.module_type?(we(!0),ve(!1),q(!1),rt()):"md_tab"===n.module_type?(Ve(!0),q(!1),localStorage.setItem("issee","2"),ve(!1),we(!1),at()):"md_shixun"===n.module_type?(rn(!0),q(!1),at()):"entrance"===n.module_type?(un(!0),q(!1),at()):(q(!0),localStorage.setItem("issee","1"));case 21:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qn(e,n,t){return Jn.apply(this,arguments)}function Jn(){return(Jn=o()(r()().mark((function e(n,t,l){var a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.stopPropagation(),!E.teacher_need_phone&&!E.member_need_phone){e.next=4;break}return Pn(!0),e.abrupt("return");case 4:if((0,O.tJ)(j)){e.next=6;break}return e.abrupt("return");case 6:if(null==E||!E.is_authentication||null!=Z&&null!==(a=Z.userInfo)&&void 0!==a&&a.authentication){e.next=9;break}return j({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}}),e.abrupt("return");case 9:if(null==E||!E.enroll_url){e.next=12;break}return(0,le.xg)(null==E?void 0:E.enroll_url),e.abrupt("return");case 12:if("ismodel"!==l){e.next=29;break}if(t.invite_code){e.next=16;break}return g.ZP.info("本竞赛只面向部分学校/单位开放,你暂时没有参赛资格"),e.abrupt("return");case 16:if(!0!==t.member_of_course){e.next=20;break}(0,le.xg)("/classrooms/".concat(t.course_id)),e.next=27;break;case 20:if(t.invite_code){e.next=23;break}return g.ZP.info("本竞赛只面向部分学校/单位开放,你暂时没有参赛资格"),e.abrupt("return");case 23:return e.next=25,j({type:"competitions/addApplytojoincourse",payload:{invite_code:t.invite_code,student:1}});case 25:0===e.sent.status&&(0,le.xg)("/classrooms/".concat(t.course_id));case 27:e.next=33;break;case 29:if(!0!==M.enrolled){e.next=32;break}return(0,le.xg)(l),e.abrupt("return");case 32:fn(!0);case 33:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Kn(){return Xn.apply(this,arguments)}function Xn(){return(Xn=o()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=je,e.next=3,j({type:"competitions/ChartRules",payload:{identifier:D}});case 3:return e.t1=e.sent,e.next=6,(0,e.t0)(e.t1);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Qn(){return(Qn=o()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j({type:"competitions/Charts",payload:{identifier:D,stage_id:n}});case 2:t=e.sent,H(t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function et(){return(et=o()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return nn(!0),e.next=3,j({type:"competitions/Results",payload:a()({identifier:D,stage_id:null==n?void 0:n.id},n)});case 3:t=e.sent,H(t),nn(!1);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function nt(){return(nt=o()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return nn(!0),e.next=3,j({type:"competitions/Results",payload:a()({identifier:D,stage_id:null==n?void 0:n.id,module_type:"entrance"},n)});case 3:t=e.sent,H(t),nn(!1);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function tt(e){return lt.apply(this,arguments)}function lt(){return(lt=o()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j({type:"competitions/Results",payload:{identifier:D,stage_id:n}});case 2:if(t=e.sent,"1"!==localStorage.getItem("issee")){e.next=5;break}return e.abrupt("return");case 5:H(t);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function at(){return it.apply(this,arguments)}function it(){return(it=o()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=Ge,e.next=3,j({type:"competitions/TabResults",payload:{identifier:D,competition_module_id:Ae}});case 3:e.t1=e.sent,(0,e.t0)(e.t1);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function rt(){return st.apply(this,arguments)}function st(){return(st=o()(r()().mark((function e(){var n,t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j({type:"competitions/Prize",payload:{identifier:D,user_id:null==Z||null===(n=Z.userInfo)||void 0===n?void 0:n.user_id}});case 2:t=e.sent,Ee(t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ot(){return(ot=o()(r()().mark((function e(){var n,t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j({type:"competitions/Accounts",payload:{id:null==Z||null===(n=Z.userInfo)||void 0===n?void 0:n.user_id}});case 2:t=e.sent,Le(t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ct(){return(ct=o()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(wn){e.next=2;break}return e.abrupt("return");case 2:if(Sn(!1),!ut()){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,j({type:"competitions/AddTeam",payload:{identifier:D,name:n}});case 7:(t=e.sent)&&0===t.status?(An(t),On(!0),Wn(),gn(!1)):Sn(!0);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ut(){var e,n,t,l,a,i;if(null!=Z&&null!==(e=Z.userInfo)&&void 0!==e&&e.is_teacher){if((null!=M&&null!==(t=M.all_staff)&&void 0!==t&&t.mutiple_limited||null!=M&&null!==(l=M.teacher_staff)&&void 0!==l&&l.mutiple_limited)&&null!=M&&M.enrolled)return g.ZP.info("你已经报名,不能重复报名"),Sn(!0),!0}else if((null!=M&&null!==(a=M.all_staff)&&void 0!==a&&a.mutiple_limited||null!=M&&null!==(i=M.member_staff)&&void 0!==i&&i.mutiple_limited)&&null!=M&&M.enrolled)return g.ZP.info("你已经报名,不能重复报名"),Sn(!0),!0;if(null!=M&&M.enroll_ended)return g.ZP.info("报名已截止,无需报名"),Sn(!0),!0;if(null!=M&&M.all_staff)return!1;if(null!=Z&&null!==(n=Z.userInfo)&&void 0!==n&&n.is_teacher){if(!M.teacher_staff)return g.ZP.info("已禁止老师报名"),Sn(!0),!0}else if(null==M||!M.member_staff)return g.ZP.info("已禁止学生报名"),Sn(!0),!0}function dt(){return(dt=o()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(wn){e.next=2;break}return e.abrupt("return");case 2:if(!ut()){e.next=4;break}return e.abrupt("return");case 4:return Sn(!1),e.next=7,j({type:"competitions/JoinTeam",payload:{identifier:D,invite_code:n}});case 7:(t=e.sent)&&0===t.status?(On(!0),An(t),_n(!1),Sn(!0),Wn()):Sn(!0);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,v.useEffect)((function(){console.log("++++++++++++++++++++++++++++++++++++",D),D&&Wn(),(0,le.Dk)("竞赛")}),[D]),(0,v.useEffect)((function(){var e;Ke(1===parseInt(null==Dn||null===(e=Dn.query)||void 0===e?void 0:e.type))}),[Dn]),(0,v.useEffect)((function(){var e;if((null==E||null===(e=E.competition_modules)||void 0===e?void 0:e.length)>0){var n,t;if("赛题发布"===(null==Dn||null===(n=Dn.query)||void 0===n?void 0:n.active)){var l,a=null==E||null===(l=E.competition_modules)||void 0===l?void 0:l.find((function(e){return"赛题发布"===e.name}));if(a)return void Gn(a)}Gn(null==E||null===(t=E.competition_modules)||void 0===t?void 0:t[0])}null!=E&&E.id&&j({type:"globalSetting/setShareData",payload:{title:null==E?void 0:E.name,desc:null==E?void 0:E.description,imgUrl:"".concat(null==E?void 0:E.image,"?x-oss-process=image/resize,h_200,w_200,m_pad")}})}),[E]),(0,_.jsxs)("div",{className:"edu-container minH500",children:[(0,_.jsxs)(w.Z,{className:"mt10",separator:">",children:[(0,_.jsx)(w.Z.Item,{children:(0,_.jsx)(f.Link,{to:"/competitions/index",children:"在线竞赛"})}),(0,_.jsxs)(w.Z.Item,{children:[E.name,E.sub_title?"-"+E.sub_title:null]})]}),(0,_.jsxs)("div",{className:"mt10",style:{display:"flex",background:"#fff",position:"relative",padding:"20px 12px"},children:[(0,_.jsx)(S.Z,{spinning:y.effects["competitions/getHeader"],children:(0,_.jsxs)("div",{style:{height:"355px",width:"800px"},children:[(null==E?void 0:E.avatar_url)&&null!==(null==E?void 0:E.avatar_url)&&(0,_.jsx)("img",{style:{height:"355px",width:"800px"},src:T.Z.IMG_SERVER+"/"+(null==E?void 0:E.avatar_url)}),!(null!=E&&E.avatar_url)&&null==(null==E?void 0:E.avatar_url)&&(0,_.jsx)("img",{style:{height:"355px",width:"800px"},src:T.Z.IMG_SERVER+"/images/educoder/competitions/mainbanner.jpg"})]})}),(0,_.jsxs)("div",{style:{marginLeft:"20px",width:"400px"},children:[(0,_.jsxs)("p",{className:"".concat(m.Z.titlesize),children:[E.name,E.sub_title?"-"+E.sub_title:null]}),(0,_.jsxs)("p",{style:{display:"flex",justifyContent:"space-between",marginRight:18},children:[(0,_.jsxs)("span",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,_.jsx)("span",{children:"奖金"}),null!=E&&E.bonus?(0,_.jsxs)("span",{style:{fontSize:"24px"},children:["¥",parseInt(E&&E.bonus).toLocaleString()]}):(0,_.jsx)("span",{style:{fontSize:"24px"},children:"暂无"})]}),(0,_.jsxs)("span",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,_.jsx)("span",{children:"浏览"}),(0,_.jsx)("span",{style:{fontSize:"24px"},children:parseInt(E&&E.visits_count).toLocaleString()})]}),(0,_.jsxs)("span",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,_.jsx)("span",{children:"报名"}),(0,_.jsx)("span",{style:{fontSize:"24px"},children:parseInt(E&&E.member_count).toLocaleString()})]})]}),(0,_.jsxs)("p",{className:m.Z.timesize,style:{marginTop:30},children:[(0,_.jsx)("span",{style:{color:"#9b9b9b",marginTop:"30px"},children:"竞赛时间:"}),E.start_time,"~",E.end_time]}),(0,_.jsxs)("p",{className:m.Z.timesize,children:[(0,_.jsx)("span",{style:{color:"#9b9b9b"},children:"报名截止:"}),E.enroll_end_time]}),"ended"===E.competition_status?(0,_.jsxs)("p",{className:m.Z.timesize,children:[(0,_.jsx)("span",{style:{color:"#9b9b9b"},children:"竞赛状态:"}),"已结束"]}):null,"nearly_published"===E.competition_status?(0,_.jsxs)("p",{className:m.Z.timesize,children:[(0,_.jsx)("span",{style:{color:"#9b9b9b"},children:"竞赛状态:"}),"未发布"]}):null,"progressing"===E.competition_status?(0,_.jsxs)("p",{className:m.Z.timesize,children:[(0,_.jsx)("span",{style:{color:"#9b9b9b"},children:"竞赛状态:"}),"进行中"]}):null,(0,_.jsxs)("div",{style:{display:"flex",justifyContent:"center"},children:[(null==E?void 0:E.mode)<=2&&M.enrolled&&(0,_.jsxs)(C.ZP,{onClick:function(e){var n;1===(null==E?void 0:E.mode)?Gn(null===(n=E.competition_modules)||void 0===n?void 0:n.find((function(e){return"entrance"===e.module_type}))):qn(e,E,"ismodel")},style:{background:"#07C160",color:"#fff",border:"1px solid #07C160",marginRight:20,display:2===(null==E?void 0:E.mode)||1===(null==E?void 0:E.mode)&&(null===(n=E.competition_modules)||void 0===n||null===(n=n.filter((function(e){return"entrance"===e.module_type})))||void 0===n?void 0:n.length)>0?"":"none"},className:m.Z.buttonsize,children:[1===(null==E?void 0:E.mode)&&"赛题入口",2===(null==E?void 0:E.mode)&&"进入课堂"]}),"ended"===E.competition_status?(0,_.jsx)(C.ZP,{type:"primary",className:m.Z.buttonsize,disabled:!0,children:"已结束"}):null,"nearly_published"===E.competition_status?(0,_.jsx)(C.ZP,{type:"primary",className:m.Z.buttonsize,disabled:!0,children:"未发布"}):null,"nearly_published"!==E.competition_status&&E.enroll_end&&"ended"!==E.competition_status?(0,_.jsx)(C.ZP,{type:"primary",className:m.Z.buttonsize,disabled:!0,children:"报名截止"}):null,"progressing"===E.competition_status&&1!=E.enroll_end&&E.enroll_end_time?(0,_.jsx)(C.ZP,{type:"primary",disabled:M.enrolled&&!E.need_attachment,className:m.Z.buttonsize,onClick:function(e){var n;M.enrolled&&E.need_attachment?null===(n=$n.current)||void 0===n||n.handleVisible():qn(e,E,2===E.mode?"ismodel":E.personal?"personal":"/competitions/".concat(E.identifier,"/detail/enroll"))},children:M.enrolled?E.need_attachment?"上传作品":"已报名":null!=E&&E.enroll_url?"前往大赛官网报名":"立即报名"}):null]}),"游客"!=Z.userInfo.real_name&&!(null!=E&&E.enroll_url)&&E.enroll_end_time&&(0,_.jsx)("span",{onClick:function(e){return qn(e,E,2===E.mode?"ismodel":E.personal?"personal":"/competitions/".concat(E.identifier,"/detail/enroll"))},className:m.Z.myteam,children:(0,ae.j5)()?"参赛战队>>":"我的战队>>"})]})]}),(0,_.jsxs)("div",{className:m.Z.bootmdetail,children:[(0,_.jsx)("div",{className:m.Z.flex1,children:(0,_.jsx)(N.Z,{selectedKeys:["".concat(Ae)],children:E&&E.competition_modules&&E.competition_modules.map((function(e,n){if("enroll"!=e.module_type)return(0,_.jsx)(N.Z.Item,{className:m.Z.menuItem,onClick:function(){if(null!=e&&e.is_authentication){if(!(0,O.tJ)(j))return;g.ZP.info("加入战队才能查看")}else Gn(e)},children:e.name},e.id)}))})}),(0,_.jsxs)("div",{className:m.Z.flex6,style:{padding:(an||cn)&&0},children:[ke?(0,_.jsx)(te.Z,{dispatch:j,userid:null==Z||null===(t=Z.userInfo)||void 0===t?void 0:t.user_id,Prize:Ne,Accounts:Oe,getAccounts:function(){return ot.apply(this,arguments)}}):null,pe?(0,_.jsx)(ne,{HeaderDetail:E,userinfo:Z.userInfo,Editable:null==E||null===(l=E.permission)||void 0===l?void 0:l.editable,getCharts:function(e){return Qn.apply(this,arguments)},getChartRules:Kn,Selectkey:Ae,ChartRules:ye,ItemData:V}):null,U?(0,_.jsx)(F,{ref:$n,StaffDetail:M,HeaderDetail:E,userinfo:Z.userInfo,Editable:null==E||null===(i=E.permission)||void 0===i?void 0:i.editable,ItemData:V,setIssee:q,ModelType:re,dispatch:j}):null,U||an||cn||pe||ke||Fe||Vn?null:(0,_.jsx)(W,{userinfo:Z.userInfo,ModelType:re,getrightdatas:Gn,dispatch:j,MenuItem:X,setIssee:q,identifier:D,ItemData:V}),Fe&&(0,_.jsx)(oe,{dispatch:j,StaffDetail:M,userinfo:Z.userInfo,HeaderDetail:E,Editable:null==E||null===(s=E.permission)||void 0===s?void 0:s.editable,getCharts:tt,getChartRules:at,Selectkey:Ae,ChartRules:Ye,ItemData:V}),an&&(0,_.jsx)(de,{loading:en,dispatch:j,StaffDetail:M,userinfo:Z.userInfo,HeaderDetail:E,Editable:null==E||null===(c=E.permission)||void 0===c?void 0:c.editable,getCharts:function(e){return et.apply(this,arguments)},getChartRules:at,Selectkey:Ae,ChartRules:Ye,ItemData:V}),cn&&(0,_.jsx)(fe,{loading:en,dispatch:j,StaffDetail:M,userinfo:Z.userInfo,HeaderDetail:E,Editable:null==E||null===(d=E.permission)||void 0===d?void 0:d.editable,getCharts:function(e){return nt.apply(this,arguments)},getChartRules:at,Selectkey:Ae,ChartRules:Ye,ItemData:V}),Vn&&(0,_.jsx)(Ie,{HeaderDetail:E,userinfo:Z.userInfo,StaffDetail:M,Editable:null==E||null===(x=E.permission)||void 0===x?void 0:x.editable,ItemData:X,TabResults:Ye,getTabResults:at})]})]}),(0,_.jsx)(h.Z,{}),(0,_.jsx)(k,{getResults:tt}),(0,_.jsx)(b.Z,{open:Je,footer:null,width:720,title:"提示",centered:!0,onCancel:function(){return Ke(!1)},children:(0,_.jsxs)("div",{className:m.Z.modal,children:[(0,_.jsx)("div",{children:"华为模型王者挑战赛黄金赛正式开启啦"}),(0,_.jsxs)("div",{children:["本赛段总奖金高达",(0,_.jsx)("span",{style:{color:"#FF8C29"},children:"300,000"}),"元"]}),(0,_.jsx)("div",{children:"1、符合赛题要求的队伍(共25支)可获得奖金:12000RMB/队 ;"}),(0,_.jsx)("div",{children:"2、参与获得“荣耀殿堂”榜主的队伍,可获得由中国软件开源创新大赛组委会颁发的黄金宝箱;"}),(0,_.jsx)("div",{children:"3、各赛题精度最高的队伍,可获得由中国软件开源创新大赛组委会颁发的黄金宝箱+荣誉证书;"}),(0,_.jsx)("div",{children:"心动吧,那就快点击下方按钮报名参赛"}),(0,_.jsx)(C.ZP,{type:"primary",onClick:function(){return(0,le.xg)("https://competition.huaweicloud.com/information/1000041485/introduction")},children:"前往报名参赛"})]})}),(0,_.jsx)(b.Z,{title:"选择参赛方式",open:vn,onCancel:function(){fn(!1)},footer:!1,children:(0,_.jsxs)("div",{style:{display:"flex",justifyContent:"space-around",height:100,alignItems:"center"},children:[(0,_.jsx)(C.ZP,{type:"primary",style:{height:40},onClick:function(){_n(!0),fn(!1)},children:"加入战队参赛"}),(0,_.jsx)(C.ZP,{style:{height:40},onClick:function(){gn(!0),fn(!1)},children:"去创建战队参赛"})]})}),jn?(0,_.jsx)(me.Z,{isjoin:jn,setJoin:_n,JoinTeams:function(e){return dt.apply(this,arguments)}}):null,xn?(0,_.jsx)(he.Z,{isAddmodle:xn,setIsAdd:gn,createTeam:function(e){return ct.apply(this,arguments)}}):null,(0,_.jsx)(xe.Z,{datas:Mn,isopen:Rn,setisopen:On,isShowPhone:In,setIsShowPhone:Pn,user:Z,dispatch:j,onOK:o()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j({type:"competitions/getHeader",payload:{identifier:D}});case 2:n=e.sent,R(n);case 4:case"end":return e.stop()}}),e)})))})]})}))},34684:function(e,n,t){"use strict";var l=t(79800),a=t.n(l),i=t(59301),r=t(43418),s=t(8591),o=t(10249),c=t(99267),u=t(37712);n.Z=function(e){var n=e.isAddmodle,t=e.setIsAdd,l=e.createTeam,d=(0,i.useState)(""),p=a()(d,2),v=p[0],f=p[1];return(0,u.jsx)(r.Z,{className:"modal_styles",centered:!0,title:(0,u.jsxs)("div",{style:{alignItems:"center",display:"flex"},children:[(0,u.jsx)("div",{style:{textAlign:"left",flex:"1"},children:"创建战队"}),(0,u.jsx)(c.Z,{onClick:function(){return t(!1)},style:{cursor:"porint"}})]}),open:n,closable:!1,destroyOnClose:!0,onOk:function(){v?l(v):s.ZP.info("战队名不能为空")},onCancel:function(){return t(!1)},children:(0,u.jsxs)("div",{children:[(0,u.jsx)("span",{style:{fontSize:"14px",color:"#F73737",marginLeft:"10px"},children:"*"}),"队名:",(0,u.jsx)("p",{style:{marginTop:"15px",marginLeft:"10px",marginRight:"10px"},children:(0,u.jsx)(o.Z,{placeholder:"请输入队名",value:v,maxLength:60,addonAfter:String(v&&v.length||0)+"/60",onChange:function(e){return f(e.target.value)}})})]})})}},26716:function(e,n,t){"use strict";var l=t(79800),a=t.n(l),i=t(59301),r=t(43418),s=t(8591),o=t(10249),c=t(99267),u=t(37712);n.Z=function(e){var n=e.isjoin,t=e.setJoin,l=e.JoinTeams,d=(0,i.useState)(""),p=a()(d,2),v=p[0],f=p[1];return(0,u.jsx)(r.Z,{className:"modal_styles",centered:!0,title:(0,u.jsxs)("div",{style:{alignItems:"center",display:"flex"},children:[(0,u.jsx)("div",{style:{textAlign:"left",flex:"1"},children:"加入战队"}),(0,u.jsx)(c.Z,{onClick:function(){return t(!1)},style:{cursor:"porint"}})]}),open:n,closable:!1,destroyOnClose:!0,onOk:function(){v?l(v):s.ZP.info("邀请码不能为空")},onCancel:function(){return t(!1)},children:(0,u.jsx)("div",{children:(0,u.jsxs)("p",{style:{marginLeft:"10px",display:"flex",alignItems:"center",marginRight:"10px"},children:[(0,u.jsx)("span",{style:{flex:"none"},children:"邀请码:"})," ",(0,u.jsx)(o.Z,{placeholder:"请输入邀请码",value:v,maxLength:60,addonAfter:String(v&&v.length||0)+"/60",onChange:function(e){return f(e.target.value)}})]})})})}},75813:function(e,n,t){"use strict";var l=t(7557),a=t.n(l),i=t(41498),r=t.n(i),s=t(79800),o=t.n(s),c=t(59301),u=t(8591),d=t(43418),p=t(10249),v=t(3113),f=t(94171),m=t(96781),h=t(83287),x=t(91689),g=t(37712),b=/^1\d{10}$/;n.Z=function(e){var n=e.isShowPhone,t=e.setIsShowPhone,l=e.user,i=e.dispatch,s=e.onOK,y=e.isopen,j=e.setisopen,_=e.datas,Z=(0,c.useState)(""),k=o()(Z,2),w=k[0],S=k[1],C=(0,c.useState)(""),N=o()(C,2),I=N[0],P=N[1],E=(0,c.useState)(60),T=o()(E,2),R=T[0],O=T[1],L=(0,c.useState)(),z=o()(L,2),M=z[0],A=z[1],D=(0,c.useState)(!1),$=o()(D,2),B=$[0],F=$[1],V=(0,c.useState)(!1),H=o()(V,2),W=H[0],Y=H[1],G=(0,c.useState)(""),U=o()(G,2),q=U[0],J=U[1],K=(0,c.useRef)();(0,c.useEffect)((function(){return function(){K.current&&clearInterval(K.current)}}),[]),(0,m.Y)((function(){M&&(O(60),R>0?O(R-1):(O(60),A(!1),K.current&&clearInterval(K.current)))}),1e3);var X=function(){var e=r()(a()().mark((function e(){var n,t,r;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,f.ZP)("/api/users/accounts/".concat(null===(n=l.userInfo)||void 0===n?void 0:n.login,"/valid_phone.json"),{method:"get",params:{phone:w}});case 2:if(-1!==(null==(t=e.sent)?void 0:t.status)){e.next=5;break}return e.abrupt("return");case 5:if(null==t||!t.is_exists){e.next=8;break}return F(!0),e.abrupt("return");case 8:return r=(0,h.M)(w),e.next=11,i({type:"account/getCode",payload:{login:w,type:3,smscode:r}});case 11:1===e.sent.status&&(u.ZP.info("验证码已发送,请注意查收"),A(!0));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,g.jsxs)("div",{children:[(0,g.jsx)(d.Z,{title:"强制解绑",open:W,onCancel:function(){return Y(!1)},onOk:r()(a()().mark((function e(){var n,i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(q){e.next=3;break}return u.ZP.info("验证码不能为空"),e.abrupt("return");case 3:return e.next=5,(0,f.ZP)("/api/users/accounts/".concat(null==l||null===(n=l.userInfo)||void 0===n?void 0:n.login,"/phone_force_unbind.json"),{method:"POST",body:{code:q,phone:w}});case 5:0===(null==(i=e.sent)?void 0:i.status)&&(u.ZP.info("解绑成功"),A(!1),Y(!1),s(),t(!1),J(""));case 7:case"end":return e.stop()}}),e)}))),children:(0,g.jsxs)("div",{style:{padding:"8px 24px"},children:[(0,g.jsx)("p",{children:"若原账号只有绑定了手机号一种登录方式,强制解绑后会导致原账号无法登录,请确定是否强制解绑"}),(0,g.jsxs)("p",{children:["你的手机号:",w]}),(0,g.jsxs)("p",{children:["手机验证码:",(0,g.jsx)(p.Z,{value:q,size:"middle",onChange:function(e){return J(e.target.value)},style:{width:"240px"}})," ",(0,g.jsx)(v.ZP,{disabled:M,type:"primary",size:"middle",onClick:r()(a()().mark((function e(){var n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,h.M)(w),e.next=3,i({type:"account/getCode",payload:{login:w,type:10,smscode:n}});case 3:1===e.sent.status&&(u.ZP.info("验证码已发送,请注意查收"),A(!0));case 5:case"end":return e.stop()}}),e)}))),children:M?"重新发送".concat(R,"s"):"获取验证码"})]})]})}),(0,g.jsx)(d.Z,{title:"提示",open:B,onCancel:function(){F(!1)},okText:"进行强制解绑",okButtonProps:{type:"primary",ghost:!0,style:{width:"124px"}},onOk:function(){Y(!0),F(!1)},children:(0,g.jsxs)("div",{style:{padding:"7px 24px"},children:[(0,g.jsx)("span",{children:"该手机号已经被绑定账号,如果需要将该手机号绑定在当前账号上,你可以进行下方任意一种解绑操作:"}),(0,g.jsx)("br",{}),(0,g.jsx)("p",{style:{marginTop:"1em",display:"flex"},children:(0,g.jsx)("span",{style:{flex:"1"},children:"1、使用该手机号登录平台进行解绑,再将手机号绑定当前账号上。"})}),(0,g.jsx)("p",{style:{marginTop:"1em",display:"flex"},children:(0,g.jsx)("span",{style:{flex:"1"},children:"2、强制解绑(强制解绑可能会导致解绑账号无法登录)"})})]})}),(0,g.jsx)(d.Z,{title:"绑定手机号",open:n,onCancel:function(){return t(!1)},onOk:r()(a()().mark((function e(){var n,r,o;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(b.test(w)){e.next=3;break}return u.ZP.info("请输入有效的11位手机号码"),e.abrupt("return");case 3:if(I){e.next=6;break}return u.ZP.info("请输入验证码"),e.abrupt("return");case 6:return n=l.userInfo||{},r=n.login,e.next=9,i({type:"account/bindPhone",payload:{login:r,phone:w,code:I}});case 9:0===(null==(o=e.sent)?void 0:o.status)&&(t(!1),s());case 11:case"end":return e.stop()}}),e)}))),children:(0,g.jsxs)("div",{style:{padding:"8px 24px"},children:[(0,g.jsx)("p",{children:"平台已检测到您未绑定手机号,为了不影响使用报名功能,请先绑定手机号码"}),(0,g.jsxs)("p",{children:["你的手机号:",(0,g.jsx)(p.Z,{size:"middle",value:w,onChange:function(e){return S(e.target.value)},style:{width:"240px"}})]}),(0,g.jsxs)("p",{children:["手机验证码:",(0,g.jsx)(p.Z,{size:"middle",value:I,onChange:function(e){return P(e.target.value)},style:{width:"240px"}})," ",(0,g.jsx)(v.ZP,{disabled:M,type:"primary",size:"middle",onClick:r()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(b.test(w)){e.next=3;break}return u.ZP.info("请输入有效的11位手机号码"),e.abrupt("return");case 3:X();case 4:case"end":return e.stop()}}),e)}))),children:M?"重新发送".concat(R,"s"):"获取验证码"})]})]})}),(0,g.jsx)(d.Z,{open:y,footer:!1,onCancel:function(){return j(!1)},centered:!0,width:460,children:(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{style:{marginTop:50,fontSize:26,color:"#3d3d3d",textAlign:"center",marginBottom:20},children:[(0,g.jsx)("i",{style:{fontSize:26,color:"#52C41A"},className:"iconfont icon-tongguo"})," 报名成功"]}),(0,g.jsxs)("div",{style:{alignItems:"center",textAlign:"center"},children:[(0,g.jsx)("img",{style:{width:180,border:"1px solid #eeeeef",padding:10,marginBottom:20},src:x.Z.IMG_SERVER+(null==_?void 0:_.QR_code)}),(0,g.jsx)("p",{style:{color:"#AAAAAA"},children:"参赛者可扫码加入大赛官方交流群,获取最新竞赛通知"})]})]})})]})}},57725:function(e,n,t){"use strict";t.d(n,{P:function(){return l}});var l=[{value:"北京",label:"北京",children:[{value:"东城",label:"东城"},{value:"西城",label:"西城"},{value:"朝阳",label:"朝阳"},{value:"丰台",label:"丰台"},{value:"石景山",label:"石景山"},{value:"海淀",label:"海淀"},{value:"门头沟",label:"门头沟"},{value:"房山",label:"房山"},{value:"通州",label:"通州"},{value:"顺义",label:"顺义"},{value:"昌平",label:"昌平"},{value:"大兴",label:"大兴"},{value:"平谷",label:"平谷"},{value:"怀柔",label:"怀柔"},{value:"密云",label:"密云"},{value:"延庆",label:"延庆"}]},{value:"上海",label:"上海",children:[{value:"崇明",label:"崇明"},{value:"黄浦",label:"黄浦"},{value:"卢湾",label:"卢湾"},{value:"徐汇",label:"徐汇"},{value:"长宁",label:"长宁"},{value:"静安",label:"静安"},{value:"普陀",label:"普陀"},{value:"闸北",label:"闸北"},{value:"虹口",label:"虹口"},{value:"杨浦",label:"杨浦"},{value:"闵行",label:"闵行"},{value:"宝山",label:"宝山"},{value:"嘉定",label:"嘉定"},{value:"浦东",label:"浦东"},{value:"金山",label:"金山"},{value:"松江",label:"松江"},{value:"青浦",label:"青浦"},{value:"南汇",label:"南汇"},{value:"奉贤",label:"奉贤"}]},{value:"广东",label:"广东",children:[{value:"广州",label:"广州"},{value:"深圳",label:"深圳"},{value:"珠海",label:"珠海"},{value:"东莞",label:"东莞"},{value:"中山",label:"中山"},{value:"佛山",label:"佛山"},{value:"惠州",label:"惠州"},{value:"河源",label:"河源"},{value:"潮州",label:"潮州"},{value:"江门",label:"江门"},{value:"揭阳",label:"揭阳"},{value:"茂名",label:"茂名"},{value:"梅州",label:"梅州"},{value:"清远",label:"清远"},{value:"汕头",label:"汕头"},{value:"汕尾",label:"汕尾"},{value:"韶关",label:"韶关"},{value:"顺德",label:"顺德"},{value:"阳江",label:"阳江"},{value:"云浮",label:"云浮"},{value:"湛江",label:"湛江"},{value:"肇庆",label:"肇庆"}]},{value:"江苏",label:"江苏",children:[{value:"南京",label:"南京"},{value:"常熟",label:"常熟"},{value:"常州",label:"常州"},{value:"海门",label:"海门"},{value:"淮安",label:"淮安"},{value:"江都",label:"江都"},{value:"江阴",label:"江阴"},{value:"昆山",label:"昆山"},{value:"连云港",label:"连云港"},{value:"南通",label:"南通"},{value:"启东",label:"启东"},{value:"沭阳",label:"沭阳"},{value:"宿迁",label:"宿迁"},{value:"苏州",label:"苏州"},{value:"太仓",label:"太仓"},{value:"泰州",label:"泰州"},{value:"同里",label:"同里"},{value:"无锡",label:"无锡"},{value:"徐州",label:"徐州"},{value:"盐城",label:"盐城"},{value:"扬州",label:"扬州"},{value:"宜兴",label:"宜兴"},{value:"仪征",label:"仪征"},{value:"张家港",label:"张家港"},{value:"镇江",label:"镇江"}]},{value:"重庆",label:"重庆",children:[{value:"万州",label:"万州"},{value:"涪陵",label:"涪陵"},{value:"渝中",label:"渝中"},{value:"大渡口",label:"大渡口"},{value:"江北",label:"江北"},{value:"沙坪坝",label:"沙坪坝"},{value:"九龙坡",label:"九龙坡"},{value:"南岸",label:"南岸"},{value:"北碚",label:"北碚"},{value:"万盛",label:"万盛"},{value:"双挢",label:"双挢"},{value:"渝北",label:"渝北"},{value:"巴南",label:"巴南"},{value:"黔江",label:"黔江"},{value:"长寿",label:"长寿"},{value:"綦江",label:"綦江"},{value:"潼南",label:"潼南"},{value:"铜梁",label:"铜梁"},{value:"大足",label:"大足"},{value:"荣昌",label:"荣昌"},{value:"壁山",label:"壁山"},{value:"梁平",label:"梁平"},{value:"城口",label:"城口"},{value:"丰都",label:"丰都"},{value:"垫江",label:"垫江"},{value:"武隆",label:"武隆"},{value:"忠县",label:"忠县"},{value:"开县",label:"开县"},{value:"云阳",label:"云阳"},{value:"奉节",label:"奉节"},{value:"巫山",label:"巫山"},{value:"巫溪",label:"巫溪"},{value:"石柱",label:"石柱"},{value:"秀山",label:"秀山"},{value:"酉阳",label:"酉阳"},{value:"彭水",label:"彭水"},{value:"江津",label:"江津"},{value:"合川",label:"合川"},{value:"永川",label:"永川"},{value:"南川",label:"南川"}]},{value:"安徽",label:"安徽",children:[{value:"合肥",label:"合肥"},{value:"安庆",label:"安庆"},{value:"蚌埠",label:"蚌埠"},{value:"亳州",label:"亳州"},{value:"巢湖",label:"巢湖"},{value:"滁州",label:"滁州"},{value:"阜阳",label:"阜阳"},{value:"贵池",label:"贵池"},{value:"淮北",label:"淮北"},{value:"淮化",label:"淮化"},{value:"淮南",label:"淮南"},{value:"黄山",label:"黄山"},{value:"九华山",label:"九华山"},{value:"六安",label:"六安"},{value:"马鞍山",label:"马鞍山"},{value:"宿州",label:"宿州"},{value:"铜陵",label:"铜陵"},{value:"屯溪",label:"屯溪"},{value:"芜湖",label:"芜湖"},{value:"宣城",label:"宣城"}]},{value:"福建",label:"福建",children:[{value:"福州",label:"福州"},{value:"厦门",label:"厦门"},{value:"泉州",label:"泉州"},{value:"漳州",label:"漳州"},{value:"龙岩",label:"龙岩"},{value:"南平",label:"南平"},{value:"宁德",label:"宁德"},{value:"莆田",label:"莆田"},{value:"三明",label:"三明"}]},{value:"甘肃",label:"甘肃",children:[{value:"兰州",label:"兰州"},{value:"嘉峪关",label:"嘉峪关"},{value:"白银",label:"白银"},{value:"定西",label:"定西"},{value:"敦煌",label:"敦煌"},{value:"甘南",label:"甘南"},{value:"金昌",label:"金昌"},{value:"酒泉",label:"酒泉"},{value:"临夏",label:"临夏"},{value:"平凉",label:"平凉"},{value:"天水",label:"天水"},{value:"陇南",label:"陇南"},{value:"武威",label:"武威"},{value:"西峰",label:"西峰"},{value:"张掖",label:"张掖"}]},{value:"广西",label:"广西",children:[{value:"南宁",label:"南宁"},{value:"来宾",label:"来宾"},{value:"百色",label:"百色"},{value:"北海",label:"北海"},{value:"桂林",label:"桂林"},{value:"防城港",label:"防城港"},{value:"贵港",label:"贵港"},{value:"河池",label:"河池"},{value:"贺州",label:"贺州"},{value:"柳州",label:"柳州"},{value:"钦州",label:"钦州"},{value:"梧州",label:"梧州"},{value:"玉林",label:"玉林"}]},{value:"贵州",label:"贵州",children:[{value:"贵阳",label:"贵阳"},{value:"安顺",label:"安顺"},{value:"毕节",label:"毕节"},{value:"都匀",label:"都匀"},{value:"凯里",label:"凯里"},{value:"六盘水",label:"六盘水"},{value:"铜仁",label:"铜仁"},{value:"兴义",label:"兴义"},{value:"玉屏",label:"玉屏"},{value:"遵义",label:"遵义"}]},{value:"海南",label:"海南",children:[{value:"海口",label:"海口"},{value:"儋县",label:"儋县"},{value:"陵水",label:"陵水"},{value:"琼海",label:"琼海"},{value:"三亚",label:"三亚"},{value:"通什",label:"通什"},{value:"万宁",label:"万宁"}]},{value:"河北",label:"河北",children:[{value:"石家庄",label:"石家庄"},{value:"保定",label:"保定"},{value:"北戴河",label:"北戴河"},{value:"沧州",label:"沧州"},{value:"承德",label:"承德"},{value:"丰润",label:"丰润"},{value:"邯郸",label:"邯郸"},{value:"衡水",label:"衡水"},{value:"廊坊",label:"廊坊"},{value:"南戴河",label:"南戴河"},{value:"秦皇岛",label:"秦皇岛"},{value:"唐山",label:"唐山"},{value:"新城",label:"新城"},{value:"邢台",label:"邢台"},{value:"张家口",label:"张家口"}]},{value:"黑龙江",label:"黑龙江",children:[{value:"哈尔滨",label:"哈尔滨"},{value:"北安",label:"北安"},{value:"大庆",label:"大庆"},{value:"大兴安岭",label:"大兴安岭"},{value:"鹤岗",label:"鹤岗"},{value:"黑河",label:"黑河"},{value:"佳木斯",label:"佳木斯"},{value:"鸡西",label:"鸡西"},{value:"牡丹江",label:"牡丹江"},{value:"齐齐哈尔",label:"齐齐哈尔"},{value:"七台河",label:"七台河"},{value:"双鸭山",label:"双鸭山"},{value:"绥化",label:"绥化"},{value:"伊春",label:"伊春"}]},{value:"河南",label:"河南",children:[{value:"郑州",label:"郑州"},{value:"安阳",label:"安阳"},{value:"鹤壁",label:"鹤壁"},{value:"潢川",label:"潢川"},{value:"焦作",label:"焦作"},{value:"济源",label:"济源"},{value:"开封",label:"开封"},{value:"漯河",label:"漯河"},{value:"洛阳",label:"洛阳"},{value:"南阳",label:"南阳"},{value:"平顶山",label:"平顶山"},{value:"濮阳",label:"濮阳"},{value:"三门峡",label:"三门峡"},{value:"商丘",label:"商丘"},{value:"新乡",label:"新乡"},{value:"信阳",label:"信阳"},{value:"许昌",label:"许昌"},{value:"周口",label:"周口"},{value:"驻马店",label:"驻马店"}]},{value:"香港",label:"香港",children:[{value:"香港",label:"香港"},{value:"九龙",label:"九龙"},{value:"新界",label:"新界"}]},{value:"湖北",label:"湖北",children:[{value:"武汉",label:"武汉"},{value:"天门",label:"天门"},{value:"恩施",label:"恩施"},{value:"鄂州",label:"鄂州"},{value:"黄冈",label:"黄冈"},{value:"黄石",label:"黄石"},{value:"荆门",label:"荆门"},{value:"荆州",label:"荆州"},{value:"潜江",label:"潜江"},{value:"十堰",label:"十堰"},{value:"随州",label:"随州"},{value:"武穴",label:"武穴"},{value:"仙桃",label:"仙桃"},{value:"咸宁",label:"咸宁"},{value:"襄阳",label:"襄阳"},{value:"襄樊",label:"襄樊"},{value:"孝感",label:"孝感"},{value:"宜昌",label:"宜昌"}]},{value:"湖南",label:"湖南",children:[{value:"长沙",label:"长沙"},{value:"常德",label:"常德"},{value:"郴州",label:"郴州"},{value:"衡阳",label:"衡阳"},{value:"怀化",label:"怀化"},{value:"吉首",label:"吉首"},{value:"娄底",label:"娄底"},{value:"邵阳",label:"邵阳"},{value:"湘潭",label:"湘潭"},{value:"益阳",label:"益阳"},{value:"岳阳",label:"岳阳"},{value:"永州",label:"永州"},{value:"张家界",label:"张家界"},{value:"株洲",label:"株洲"}]},{value:"江西",label:"江西",children:[{value:"南昌",label:"南昌"},{value:"抚州",label:"抚州"},{value:"赣州",label:"赣州"},{value:"吉安",label:"吉安"},{value:"景德镇",label:"景德镇"},{value:"井冈山",label:"井冈山"},{value:"九江",label:"九江"},{value:"庐山",label:"庐山"},{value:"萍乡",label:"萍乡"},{value:"上饶",label:"上饶"},{value:"新余",label:"新余"},{value:"宜春",label:"宜春"},{value:"鹰潭",label:"鹰潭"}]},{value:"吉林",label:"吉林",children:[{value:"长春",label:"长春"},{value:"吉林",label:"吉林"},{value:"白城",label:"白城"},{value:"白山",label:"白山"},{value:"珲春",label:"珲春"},{value:"辽源",label:"辽源"},{value:"梅河",label:"梅河"},{value:"四平",label:"四平"},{value:"松原",label:"松原"},{value:"通化",label:"通化"},{value:"延吉",label:"延吉"}]},{value:"辽宁",label:"辽宁",children:[{value:"沈阳",label:"沈阳"},{value:"鞍山",label:"鞍山"},{value:"本溪",label:"本溪"},{value:"朝阳",label:"朝阳"},{value:"大连",label:"大连"},{value:"丹东",label:"丹东"},{value:"抚顺",label:"抚顺"},{value:"阜新",label:"阜新"},{value:"葫芦岛",label:"葫芦岛"},{value:"锦州",label:"锦州"},{value:"辽阳",label:"辽阳"},{value:"盘锦",label:"盘锦"},{value:"铁岭",label:"铁岭"},{value:"营口",label:"营口"}]},{value:"澳门",label:"澳门",children:[{value:"澳门",label:"澳门"}]},{value:"内蒙古",label:"内蒙古",children:[{value:"呼和浩特",label:"呼和浩特"},{value:"阿拉善盟",label:"阿拉善盟"},{value:"包头",label:"包头"},{value:"赤峰",label:"赤峰"},{value:"东胜",label:"东胜"},{value:"海拉尔",label:"海拉尔"},{value:"集宁",label:"集宁"},{value:"临河",label:"临河"},{value:"通辽",label:"通辽"},{value:"乌海",label:"乌海"},{value:"乌兰浩特",label:"乌兰浩特"},{value:"锡林浩特",label:"锡林浩特"}]},{value:"宁夏",label:"宁夏",children:[{value:"银川",label:"银川"},{value:"固源",label:"固源"},{value:"石嘴山",label:"石嘴山"},{value:"吴忠",label:"吴忠"}]},{value:"青海",label:"青海",children:[{value:"西宁",label:"西宁"},{value:"德令哈",label:"德令哈"},{value:"格尔木",label:"格尔木"},{value:"共和",label:"共和"},{value:"海东",label:"海东"},{value:"海晏",label:"海晏"},{value:"玛沁",label:"玛沁"},{value:"同仁",label:"同仁"},{value:"玉树",label:"玉树"}]},{value:"山东",label:"山东",children:[{value:"济南",label:"济南"},{value:"滨州",label:"滨州"},{value:"兖州",label:"兖州"},{value:"德州",label:"德州"},{value:"东营",label:"东营"},{value:"菏泽",label:"菏泽"},{value:"济宁",label:"济宁"},{value:"莱芜",label:"莱芜"},{value:"聊城",label:"聊城"},{value:"临沂",label:"临沂"},{value:"蓬莱",label:"蓬莱"},{value:"青岛",label:"青岛"},{value:"曲阜",label:"曲阜"},{value:"日照",label:"日照"},{value:"泰安",label:"泰安"},{value:"潍坊",label:"潍坊"},{value:"威海",label:"威海"},{value:"烟台",label:"烟台"},{value:"枣庄",label:"枣庄"},{value:"淄博",label:"淄博"}]},{value:"山西",label:"山西",children:[{value:"太原",label:"太原"},{value:"吕梁",label:"吕梁"},{value:"长治",label:"长治"},{value:"大同",label:"大同"},{value:"候马",label:"候马"},{value:"晋城",label:"晋城"},{value:"离石",label:"离石"},{value:"临汾",label:"临汾"},{value:"宁武",label:"宁武"},{value:"朔州",label:"朔州"},{value:"忻州",label:"忻州"},{value:"阳泉",label:"阳泉"},{value:"榆次",label:"榆次"},{value:"晋中",label:"晋中"},{value:"运城",label:"运城"}]},{value:"陕西",label:"陕西",children:[{value:"西安",label:"西安"},{value:"安康",label:"安康"},{value:"宝鸡",label:"宝鸡"},{value:"汉中",label:"汉中"},{value:"渭南",label:"渭南"},{value:"商州",label:"商州"},{value:"绥德",label:"绥德"},{value:"铜川",label:"铜川"},{value:"咸阳",label:"咸阳"},{value:"延安",label:"延安"},{value:"榆林",label:"榆林"}]},{value:"四川",label:"四川",children:[{value:"成都",label:"成都"},{value:"巴中",label:"巴中"},{value:"达川",label:"达川"},{value:"德阳",label:"德阳"},{value:"都江堰",label:"都江堰"},{value:"峨眉山",label:"峨眉山"},{value:"涪陵",label:"涪陵"},{value:"广安",label:"广安"},{value:"广元",label:"广元"},{value:"九寨沟",label:"九寨沟"},{value:"康定",label:"康定"},{value:"乐山",label:"乐山"},{value:"泸州",label:"泸州"},{value:"马尔康",label:"马尔康"},{value:"绵阳",label:"绵阳"},{value:"眉山",label:"眉山"},{value:"南充",label:"南充"},{value:"内江",label:"内江"},{value:"攀枝花",label:"攀枝花"},{value:"遂宁",label:"遂宁"},{value:"汶川",label:"汶川"},{value:"西昌",label:"西昌"},{value:"雅安",label:"雅安"},{value:"宜宾",label:"宜宾"},{value:"自贡",label:"自贡"},{value:"资阳",label:"资阳"}]},{value:"台湾",label:"台湾",children:[{value:"台北",label:"台北"},{value:"基隆",label:"基隆"},{value:"台南",label:"台南"},{value:"台中",label:"台中"},{value:"高雄",label:"高雄"},{value:"屏东",label:"屏东"},{value:"南投",label:"南投"},{value:"云林",label:"云林"},{value:"新竹",label:"新竹"},{value:"彰化",label:"彰化"},{value:"苗栗",label:"苗栗"},{value:"嘉义",label:"嘉义"},{value:"桃园",label:"桃园"},{value:"宜兰",label:"宜兰"},{value:"台东",label:"台东"},{value:"金门",label:"金门"},{value:"马祖",label:"马祖"},{value:"澎湖",label:"澎湖"}]},{value:"天津",label:"天津",children:[{value:"天津",label:"天津"},{value:"和平",label:"和平"},{value:"东丽",label:"东丽"},{value:"河东",label:"河东"},{value:"西青",label:"西青"},{value:"河西",label:"河西"},{value:"津南",label:"津南"},{value:"南开",label:"南开"},{value:"北辰",label:"北辰"},{value:"河北",label:"河北"},{value:"武清",label:"武清"},{value:"红挢",label:"红挢"},{value:"塘沽",label:"塘沽"},{value:"汉沽",label:"汉沽"},{value:"大港",label:"大港"},{value:"宁河",label:"宁河"},{value:"静海",label:"静海"},{value:"宝坻",label:"宝坻"},{value:"蓟县",label:"蓟县"}]},{value:"新疆",label:"新疆",children:[{value:"乌鲁木齐",label:"乌鲁木齐"},{value:"阿克苏",label:"阿克苏"},{value:"阿勒泰",label:"阿勒泰"},{value:"阿图什",label:"阿图什"},{value:"博乐",label:"博乐"},{value:"昌吉",label:"昌吉"},{value:"东山",label:"东山"},{value:"哈密",label:"哈密"},{value:"和田",label:"和田"},{value:"喀什",label:"喀什"},{value:"克拉玛依",label:"克拉玛依"},{value:"库车",label:"库车"},{value:"库尔勒",label:"库尔勒"},{value:"奎屯",label:"奎屯"},{value:"石河子",label:"石河子"},{value:"塔城",label:"塔城"},{value:"吐鲁番",label:"吐鲁番"},{value:"伊宁",label:"伊宁"}]},{value:"西藏",label:"西藏",children:[{value:"拉萨",label:"拉萨"},{value:"阿里",label:"阿里"},{value:"昌都",label:"昌都"},{value:"林芝",label:"林芝"},{value:"那曲",label:"那曲"},{value:"日喀则",label:"日喀则"},{value:"山南",label:"山南"}]},{value:"云南",label:"云南",children:[{value:"昆明",label:"昆明"},{value:"大理",label:"大理"},{value:"保山",label:"保山"},{value:"楚雄",label:"楚雄"},{value:"大理",label:"大理"},{value:"东川",label:"东川"},{value:"个旧",label:"个旧"},{value:"景洪",label:"景洪"},{value:"开远",label:"开远"},{value:"临沧",label:"临沧"},{value:"丽江",label:"丽江"},{value:"六库",label:"六库"},{value:"潞西",label:"潞西"},{value:"曲靖",label:"曲靖"},{value:"思茅",label:"思茅"},{value:"文山",label:"文山"},{value:"西双版纳",label:"西双版纳"},{value:"玉溪",label:"玉溪"},{value:"中甸",label:"中甸"},{value:"昭通",label:"昭通"}]},{value:"浙江",label:"浙江",children:[{value:"杭州",label:"杭州"},{value:"温州",label:"温州"},{value:"安吉",label:"安吉"},{value:"慈溪",label:"慈溪"},{value:"定海",label:"定海"},{value:"奉化",label:"奉化"},{value:"海盐",label:"海盐"},{value:"黄岩",label:"黄岩"},{value:"湖州",label:"湖州"},{value:"嘉兴",label:"嘉兴"},{value:"金华",label:"金华"},{value:"临安",label:"临安"},{value:"临海",label:"临海"},{value:"丽水",label:"丽水"},{value:"宁波",label:"宁波"},{value:"瓯海",label:"瓯海"},{value:"平湖",label:"平湖"},{value:"千岛湖",label:"千岛湖"},{value:"衢州",label:"衢州"},{value:"江山",label:"江山"},{value:"瑞安",label:"瑞安"},{value:"绍兴",label:"绍兴"},{value:"嵊州",label:"嵊州"},{value:"台州",label:"台州"},{value:"温岭",label:"温岭"},{value:"余姚",label:"余姚"},{value:"舟山",label:"舟山"}]},{value:"海外",label:"海外",children:[{value:"美国",label:"美国"},{value:"日本",label:"日本"},{value:"英国",label:"英国"},{value:"法国",label:"法国"},{value:"德国",label:"德国"},{value:"其他",label:"其他"}]}]},96781:function(e,n,t){"use strict";t.d(n,{Y:function(){return a}});var l=t(59301);function a(e,n){var t=(0,l.useRef)(),a=(0,l.useRef)();(0,l.useEffect)((function(){t.current=e})),(0,l.useEffect)((function(){if(null!==n){var e=setInterval((function(){t.current()}),n);return a.current=e,function(){return clearInterval(e)}}}),[n])}},46211:function(e,n){"use strict";n.Z={flex_box_center:"flex_box_center___fo_3c",flex_space_between:"flex_space_between___G46CO",flex_box_vertical_center:"flex_box_vertical_center___br3Kr",flex_box_center_end:"flex_box_center_end___Xdo94",flex_box_column:"flex_box_column___Bcnmr",wrp:"wrp___TY7QJ",bg:"bg___xiaSy",commonimg:"commonimg___a4R0Q",titlesize:"titlesize___Wdd_a",timesize:"timesize___OkfYO",flex1:"flex1___N6paY",buttonsize:"buttonsize___syL9V",myteam:"myteam___RTWAt",bootmdetail:"bootmdetail___taUGk",menuItem:"menuItem___Kww4S",flex6:"flex6___RuzJ4",spanprev:"spanprev___Cssg_",spannext:"spannext___jVFGE",divwidth:"divwidth___r5hE3",receiveclick:"receiveclick___BauOs",receivealready:"receivealready___Z7Wo0",bkfff:"bkfff___lHrcJ","ant-input":"ant-input___m4bn_",onediv:"onediv___xzZRa",onetop:"onetop___M4GfM",towdiv:"towdiv___yj3ds",towtop:"towtop___veKa4",threediv:"threediv___Ztz0D",threetop:"threetop___zDXIg",imgradius:"imgradius___r4uGN",prize:"prize___YNRD4",spanrightradius:"spanrightradius___tC6T5",bottomItem:"bottomItem___CHcMJ",myTeam:"myTeam___fm7KX",downloadpdf:"downloadpdf___a2NuA",pdfBut:"pdfBut___Drr6h",PerfectBut:"PerfectBut___wEhjV",PerfectCent:"PerfectCent___HD3Id",PerfectCentName:"PerfectCentName___smdJX",teamItem:"teamItem___mx2f3",dash:"dash___l6QH1",modal:"modal___yXh2H",maskText:"maskText___Tdh6h",box:"box___K2uQ4",open_style:"open_style___gLTB9",title_style:"title_style___j6zvN",colorhove:"colorhove___FKtzO"}},88522:function(e,n,t){"use strict";var l=t(92310),a=t.n(l),i=t(11592),r=t(2738),s=t(59301),o=t(53487),c=t(92343),u=t(36355),d=t(57809);const{Option:p}=d.default;function v(e){return e&&e.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const f=(e,n)=>{const{prefixCls:t,className:l,popupClassName:o,dropdownClassName:f,children:m,dataSource:h}=e,x=(0,i.Z)(m);let g;1===x.length&&(0,c.l$)(x[0])&&!v(x[0])&&([g]=x);const b=g?()=>g:void 0;let y;y=x.length&&v(x[0])?m:h?h.map((e=>{if((0,c.l$)(e))return e;switch(typeof e){case"string":return s.createElement(p,{key:e,value:e},e);case"object":{const{value:n}=e;return s.createElement(p,{key:n,value:n},e.text)}default:return}})):[];const{getPrefixCls:j}=s.useContext(u.E_),_=j("select",t);return s.createElement(d.default,Object.assign({ref:n,suffixIcon:null},(0,r.Z)(e,["dataSource","dropdownClassName"]),{prefixCls:_,popupClassName:o||f,className:a()(`${_}-auto-complete`,l),mode:d.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:b}),y)},m=s.forwardRef(f),h=(0,o.Z)(m);m.Option=p,m._InternalPanelDoNotUseOrYouWillBeFired=h,n.Z=m},66104:function(e,n,t){"use strict";t.d(n,{Z:function(){return P}});var l=t(92310),a=t.n(l),i=t(11592),r=t(26112),s=t(59301),o=t(92343),c=t(36355),u=t(84105),d=t(91857);const p=e=>{let{children:n}=e;const{getPrefixCls:t}=s.useContext(c.E_),l=t("breadcrumb");return s.createElement("li",{className:`${l}-separator`,"aria-hidden":"true"},""===n?n:n||"/")};p.__ANT_BREADCRUMB_SEPARATOR=!0;var v=p,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 a=0;for(l=Object.getOwnPropertySymbols(e);a<l.length;a++)n.indexOf(l[a])<0&&Object.prototype.propertyIsEnumerable.call(e,l[a])&&(t[l[a]]=e[l[a]])}return t};function m(e,n,t,l){if(null==t)return null;const{className:i,onClick:o}=n,c=f(n,["className","onClick"]),u=Object.assign(Object.assign({},(0,r.Z)(c,{data:!0,aria:!0})),{onClick:o});return void 0!==l?s.createElement("a",Object.assign({},u,{className:a()(`${e}-link`,i),href:l}),t):s.createElement("span",Object.assign({},u,{className:a()(`${e}-link`,i)}),t)}function h(e,n){return(t,l,a,i,r)=>{if(n)return n(t,l,a,i);const s=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 m(e,t,s,r)}}var 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 a=0;for(l=Object.getOwnPropertySymbols(e);a<l.length;a++)n.indexOf(l[a])<0&&Object.prototype.propertyIsEnumerable.call(e,l[a])&&(t[l[a]]=e[l[a]])}return t};const g=e=>{const{prefixCls:n,separator:t="/",children:l,menu:a,overlay:i,dropdownProps:r,href:o}=e;const c=(e=>{if(a||i){const t=Object.assign({},r);if(a){const e=a||{},{items:n}=e,l=x(e,["items"]);t.menu=Object.assign(Object.assign({},l),{items:null==n?void 0:n.map(((e,n)=>{var{key:t,title:l,label:a,path:i}=e,r=x(e,["key","title","label","path"]);let c=null!=a?a:l;return i&&(c=s.createElement("a",{href:`${o}${i}`},c)),Object.assign(Object.assign({},r),{key:null!=t?t:n,label:c})}))})}else i&&(t.overlay=i);return s.createElement(d.Z,Object.assign({placement:"bottom"},t),s.createElement("span",{className:`${n}-overlay-link`},e,s.createElement(u.Z,null)))}return e})(l);return null!=c?s.createElement(s.Fragment,null,s.createElement("li",null,c),t&&s.createElement(v,null,t)):null},b=e=>{const{prefixCls:n,children:t,href:l}=e,a=x(e,["prefixCls","children","href"]),{getPrefixCls:i}=s.useContext(c.E_),r=i("breadcrumb",n);return s.createElement(g,Object.assign({},a,{prefixCls:r}),m(r,a,t,l))};b.__ANT_BREADCRUMB_ITEM=!0;var y=b,j=t(17313),_=t(83116),Z=t(37613);const k=e=>{const{componentCls:n,iconCls:t}=e;return{[n]:Object.assign(Object.assign({},(0,j.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,j.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,_.Z)("Breadcrumb",(e=>{const n=(0,Z.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 a=0;for(l=Object.getOwnPropertySymbols(e);a<l.length;a++)n.indexOf(l[a])<0&&Object.prototype.propertyIsEnumerable.call(e,l[a])&&(t[l[a]]=e[l[a]])}return t};function C(e){const{breadcrumbName:n,children:t}=e,l=S(e,["breadcrumbName","children"]),a=Object.assign({title:n},l);return t&&(a.menu={items:t.map((e=>{var{breadcrumbName:n}=e,t=S(e,["breadcrumbName"]);return Object.assign(Object.assign({},t),{title:n})}))}),a}var N=function(e,n){var t={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&n.indexOf(l)<0&&(t[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(l=Object.getOwnPropertySymbols(e);a<l.length;a++)n.indexOf(l[a])<0&&Object.prototype.propertyIsEnumerable.call(e,l[a])&&(t[l[a]]=e[l[a]])}return t};const I=e=>{const{prefixCls:n,separator:t="/",style:l,className:u,rootClassName:d,routes:p,items:f,children:m,itemRender:x,params:b={}}=e,y=N(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:j,direction:_,breadcrumb:Z}=s.useContext(c.E_);let k;const S=j("breadcrumb",n),[I,P]=w(S),E=function(e,n){return(0,s.useMemo)((()=>e||(n?n.map(C):null)),[e,n])}(f,p);const T=h(S,x);if(E&&E.length>0){const e=[],n=f||p;k=E.map(((l,a)=>{const{path:i,key:o,type:c,menu:u,overlay:d,onClick:p,className:f,separator:m,dropdownProps:h}=l,x=((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})(b,i);void 0!==x&&e.push(x);const y=null!=o?o:a;if("separator"===c)return s.createElement(v,{key:y},m);const j={},_=a===E.length-1;u?j.menu=u:d&&(j.overlay=d);let{href:Z}=l;return e.length&&void 0!==x&&(Z=`#/${e.join("/")}`),s.createElement(g,Object.assign({key:y},j,(0,r.Z)(l,{data:!0,aria:!0}),{className:f,dropdownProps:h,href:Z,separator:_?"":t,onClick:p,prefixCls:S}),T(l,b,n,e,Z))}))}else if(m){const e=(0,i.Z)(m).length;k=(0,i.Z)(m).map(((n,l)=>{if(!n)return n;const a=l===e-1;return(0,o.Tm)(n,{separator:a?"":t,key:l})}))}const R=a()(S,null==Z?void 0:Z.className,{[`${S}-rtl`]:"rtl"===_},u,d,P),O=Object.assign(Object.assign({},null==Z?void 0:Z.style),l);return I(s.createElement("nav",Object.assign({className:R,style:O},y),s.createElement("ol",null,k)))};I.Item=y,I.Separator=v;var P=I},18889:function(e,n,t){"use strict";t.d(n,{Z:function(){return P}});var l=t(92310),a=t.n(l),i=t(2738),r=t(59301),s=t(36355),o=t(19716),c=t(61621),u=t(99313),d=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 a=0;for(l=Object.getOwnPropertySymbols(e);a<l.length;a++)n.indexOf(l[a])<0&&Object.prototype.propertyIsEnumerable.call(e,l[a])&&(t[l[a]]=e[l[a]])}return t};var p=e=>{var{prefixCls:n,className:t,hoverable:l=!0}=e,i=d(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=r.useContext(s.E_),c=o("card",n),u=a()(`${c}-grid`,t,{[`${c}-grid-hoverable`]:l});return r.createElement("div",Object.assign({},i,{className:u}))},v=t(17313),f=t(83116),m=t(37613);const h=e=>{const{antCls:n,componentCls:t,headerHeight:l,cardPaddingBase:a,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:l,marginBottom:-1,padding:`0 ${a}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},(0,v.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},v.vS),{[`\n > ${t}-typography,\n > ${t}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${n}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},x=e=>{const{cardPaddingBase:n,colorBorderSecondary:t,cardShadow:l,lineWidth:a}=e;return{width:"33.33%",padding:n,border:0,borderRadius:0,boxShadow:`\n ${a}px 0 0 0 ${t},\n 0 ${a}px 0 0 ${t},\n ${a}px ${a}px 0 0 ${t},\n ${a}px 0 0 0 ${t} inset,\n 0 ${a}px 0 0 ${t} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:l}}},g=e=>{const{componentCls:n,iconCls:t,actionsLiMargin:l,cardActionsIconSize:a,colorBorderSecondary:i,actionsBg:r}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:r,borderTop:`${e.lineWidth}px ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},(0,v.dF)()),{"& > li":{margin:l,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:2*e.cardActionsIconSize,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${n}-btn), > ${t}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:e.fontSize*e.lineHeight+"px",transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${t}`]:{fontSize:a,lineHeight:a*e.lineHeight+"px"}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${i}`}}})},b=e=>Object.assign(Object.assign({margin:`-${e.marginXXS}px 0`,display:"flex"},(0,v.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},v.vS),"&-description":{color:e.colorTextDescription}}),y=e=>{const{componentCls:n,cardPaddingBase:t,colorFillAlter:l}=e;return{[`${n}-head`]:{padding:`0 ${t}px`,background:l,"&-title":{fontSize:e.fontSize}},[`${n}-body`]:{padding:`${e.padding}px ${t}px`}}},j=e=>{const{componentCls:n}=e;return{overflow:"hidden",[`${n}-body`]:{userSelect:"none"}}},_=e=>{const{antCls:n,componentCls:t,cardShadow:l,cardHeadPadding:a,colorBorderSecondary:i,boxShadowTertiary:r,cardPaddingBase:s,extraColor:o}=e;return{[t]:Object.assign(Object.assign({},(0,v.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:r},[`${t}-head`]:h(e),[`${t}-extra`]:{marginInlineStart:"auto",color:o,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:s,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},(0,v.dF)()),[`${t}-grid`]:x(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${n}-image-mask`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${t}-actions`]:g(e),[`${t}-meta`]:b(e)}),[`${t}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:l}},[`${t}-contain-grid`]:{[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:a}}},[`${t}-type-inner`]:y(e),[`${t}-loading`]:j(e),[`${t}-rtl`]:{direction:"rtl"}}},Z=e=>{const{componentCls:n,cardPaddingSM:t,headerHeightSM:l,headerFontSizeSM:a}=e;return{[`${n}-small`]:{[`> ${n}-head`]:{minHeight:l,padding:`0 ${t}px`,fontSize:a,[`> ${n}-head-wrapper`]:{[`> ${n}-extra`]:{fontSize:e.fontSize}}},[`> ${n}-body`]:{padding:t}},[`${n}-small${n}-contain-tabs`]:{[`> ${n}-head`]:{[`${n}-head-title, ${n}-extra`]:{minHeight:l,paddingTop:0,display:"flex",alignItems:"center"}}}}};var k=(0,f.Z)("Card",(e=>{const n=(0,m.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[_(n),Z(n)]}),(e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}))),w=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 a=0;for(l=Object.getOwnPropertySymbols(e);a<l.length;a++)n.indexOf(l[a])<0&&Object.prototype.propertyIsEnumerable.call(e,l[a])&&(t[l[a]]=e[l[a]])}return t};const S=r.forwardRef(((e,n)=>{const{prefixCls:t,className:l,rootClassName:d,style:v,extra:f,headStyle:m={},bodyStyle:h={},title:x,loading:g,bordered:b=!0,size:y,type:j,cover:_,actions:Z,tabList:S,children:C,activeTabKey:N,defaultActiveTabKey:I,tabBarExtraContent:P,hoverable:E,tabProps:T={}}=e,R=w(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:O,direction:L,card:z}=r.useContext(s.E_),M=r.useMemo((()=>{let e=!1;return r.Children.forEach(C,(n=>{n&&n.type&&n.type===p&&(e=!0)})),e}),[C]),A=O("card",t),[D,$]=k(A),B=r.createElement(c.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},C),F=void 0!==N,V=Object.assign(Object.assign({},T),{[F?"activeKey":"defaultActiveKey"]:F?N:I,tabBarExtraContent:P});let H;const W=(0,o.Z)(y),Y=W&&"default"!==W?W:"large",G=S?r.createElement(u.Z,Object.assign({size:Y},V,{className:`${A}-head-tabs`,onChange:n=>{var t;null===(t=e.onTabChange)||void 0===t||t.call(e,n)},items:S.map((e=>{var{tab:n}=e,t=w(e,["tab"]);return Object.assign({label:n},t)}))})):null;(x||f||G)&&(H=r.createElement("div",{className:`${A}-head`,style:m},r.createElement("div",{className:`${A}-head-wrapper`},x&&r.createElement("div",{className:`${A}-head-title`},x),f&&r.createElement("div",{className:`${A}-extra`},f)),G));const U=_?r.createElement("div",{className:`${A}-cover`},_):null,q=r.createElement("div",{className:`${A}-body`,style:h},g?B:C),J=Z&&Z.length?r.createElement("ul",{className:`${A}-actions`},function(e){return e.map(((n,t)=>r.createElement("li",{style:{width:100/e.length+"%"},key:`action-${t}`},r.createElement("span",null,n))))}(Z)):null,K=(0,i.Z)(R,["onTabChange"]),X=a()(A,null==z?void 0:z.className,{[`${A}-loading`]:g,[`${A}-bordered`]:b,[`${A}-hoverable`]:E,[`${A}-contain-grid`]:M,[`${A}-contain-tabs`]:S&&S.length,[`${A}-${W}`]:W,[`${A}-type-${j}`]:!!j,[`${A}-rtl`]:"rtl"===L},l,d,$),Q=Object.assign(Object.assign({},null==z?void 0:z.style),v);return D(r.createElement("div",Object.assign({ref:n},K,{className:X,style:Q}),H,U,q,J))}));var C=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 a=0;for(l=Object.getOwnPropertySymbols(e);a<l.length;a++)n.indexOf(l[a])<0&&Object.prototype.propertyIsEnumerable.call(e,l[a])&&(t[l[a]]=e[l[a]])}return t};var N=e=>{const{prefixCls:n,className:t,avatar:l,title:i,description:o}=e,c=C(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:u}=r.useContext(s.E_),d=u("card",n),p=a()(`${d}-meta`,t),v=l?r.createElement("div",{className:`${d}-meta-avatar`},l):null,f=i?r.createElement("div",{className:`${d}-meta-title`},i):null,m=o?r.createElement("div",{className:`${d}-meta-description`},o):null,h=f||m?r.createElement("div",{className:`${d}-meta-detail`},f,m):null;return r.createElement("div",Object.assign({},c,{className:p}),v,h)};const I=S;I.Grid=p,I.Meta=N;var P=I},3828:function(){}}]); |