|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[118,8],{"0SVz":
|
|
|
/*!*****************************************************************!*\
|
|
|
!*** ./src/pages/Competitions/Entered/Enteredmodel/success.png ***!
|
|
|
\*****************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports="data:image/png;base64,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"},"55Ip":
|
|
|
/*!***************************************************************!*\
|
|
|
!*** ./node_modules/react-router-dom/esm/react-router-dom.js ***!
|
|
|
\***************************************************************/
|
|
|
/*! exports provided: MemoryRouter, Prompt, Redirect, Route, Router, StaticRouter, Switch, generatePath, matchPath, useHistory, useLocation, useParams, useRouteMatch, withRouter, BrowserRouter, HashRouter, Link, NavLink */
|
|
|
/*! exports used: Link, NavLink */function(e,t,a){"use strict";a.d(t,"a",(function(){return v})),a.d(t,"b",(function(){return E}));var n=a(/*! react-router */"Ty5D"),r=a(/*! @babel/runtime/helpers/esm/inheritsLoose */"dI71"),i=a(/*! react */"q1tI"),l=a.n(i),o=a(/*! history */"YS25"),c=(a(/*! prop-types */"17x9"),a(/*! @babel/runtime/helpers/esm/extends */"wx14")),s=a(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */"zLVn"),u=a(/*! tiny-invariant */"9R94");l.a.Component;l.a.Component;var m=function(e,t){return"function"==typeof e?e(t):e},d=function(e,t){return"string"==typeof e?Object(o.c)(e,null,null,t):e},p=function(e){return e},f=l.a.forwardRef;void 0===f&&(f=p);var h=f((function(e,t){var a=e.innerRef,n=e.navigate,r=e.onClick,i=Object(s.a)(e,["innerRef","navigate","onClick"]),o=i.target,u=Object(c.a)({},i,{onClick:function(e){try{r&&r(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||o&&"_self"!==o||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),n())}});return u.ref=p!==f&&t||a,l.a.createElement("a",u)}));var v=f((function(e,t){var a=e.component,r=void 0===a?h:a,i=e.replace,o=e.to,v=e.innerRef,g=Object(s.a)(e,["component","replace","to","innerRef"]);return l.a.createElement(n.e.Consumer,null,(function(e){e||Object(u.a)(!1);var a=e.history,n=d(m(o,e.location),e.location),s=n?a.createHref(n):"",h=Object(c.a)({},g,{href:s,navigate:function(){var t=m(o,e.location);(i?a.replace:a.push)(t)}});return p!==f?h.ref=t||v:h.innerRef=v,l.a.createElement(r,h)}))})),g=function(e){return e},b=l.a.forwardRef;void 0===b&&(b=g);var E=b((function(e,t){var a=e["aria-current"],r=void 0===a?"page":a,i=e.activeClassName,o=void 0===i?"active":i,p=e.activeStyle,f=e.className,h=e.exact,E=e.isActive,x=e.location,y=e.sensitive,O=e.strict,j=e.style,S=e.to,_=e.innerRef,N=Object(s.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return l.a.createElement(n.e.Consumer,null,(function(e){e||Object(u.a)(!1);var a=x||e.location,i=d(m(S,a),a),s=i.pathname,k=s&&s.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),w=k?Object(n.f)(a.pathname,{path:k,exact:h,sensitive:y,strict:O}):null,C=!!(E?E(w,a):w),I=C?function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.filter((function(e){return e})).join(" ")}(f,o):f,A=C?Object(c.a)({},j,{},p):j,z=Object(c.a)({"aria-current":C&&r||null,className:I,style:A,to:i},N);return g!==b?z.ref=t||_:z.innerRef=_,l.a.createElement(v,z)}))}))},"6+eU":
|
|
|
/*!************************************************************!*\
|
|
|
!*** ./node_modules/rc-pagination/es/index.js + 4 modules ***!
|
|
|
\************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/extends.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-pagination/es/locale/zh_CN.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,a){"use strict";a.d(t,"a",(function(){return S}));var n=a("wx14"),r=a("rePB"),i=a("VTBJ"),l=a("1OyB"),o=a("vuIU"),c=a("Ji7U"),s=a("LK+K"),u=a("q1tI"),m=a.n(u),d=a("TSYQ"),p=a.n(d),f=function(e){var t,a="".concat(e.rootPrefixCls,"-item"),n=p()(a,"".concat(a,"-").concat(e.page),(t={},Object(r.a)(t,"".concat(a,"-active"),e.active),Object(r.a)(t,e.className,!!e.className),Object(r.a)(t,"".concat(a,"-disabled"),!e.page),t));return m.a.createElement("li",{title:e.showTitle?e.page:null,className:n,onClick:function(){e.onClick(e.page)},onKeyPress:function(t){e.onKeyPress(t,e.onClick,e.page)},tabIndex:"0"},e.itemRender(e.page,"page",m.a.createElement("a",{rel:"nofollow"},e.page)))},h=13,v=38,g=40,b=function(e){Object(c.a)(a,e);var t=Object(s.a)(a);function a(){var e;Object(l.a)(this,a);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).state={goInputText:""},e.buildOptionText=function(t){return"".concat(t," ").concat(e.props.locale.items_per_page)},e.changeSize=function(t){e.props.changeSize(Number(t))},e.handleChange=function(t){e.setState({goInputText:t.target.value})},e.handleBlur=function(t){var a=e.props,n=a.goButton,r=a.quickGo,i=a.rootPrefixCls,l=e.state.goInputText;n||""===l||t.relatedTarget&&(t.relatedTarget.className.indexOf("".concat(i,"-prev"))>=0||t.relatedTarget.className.indexOf("".concat(i,"-next"))>=0)||(e.setState({goInputText:""}),r(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode!==h&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return Object(o.a)(a,[{key:"getValidValue",value:function(){var e=this.state,t=e.goInputText,a=e.current;return!t||isNaN(t)?a:Number(t)}},{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,a=e.pageSizeOptions;return a.some((function(e){return e.toString()===t.toString()}))?a:a.concat([t.toString()]).sort((function(e,t){return(isNaN(Number(e))?0:Number(e))-(isNaN(Number(t))?0:Number(t))}))}},{key:"render",value:function(){var e=this,t=this.props,a=t.pageSize,n=t.locale,r=t.rootPrefixCls,i=t.changeSize,l=t.quickGo,o=t.goButton,c=t.selectComponentClass,s=t.buildOptionText,u=t.selectPrefixCls,d=t.disabled,p=this.state.goInputText,f="".concat(r,"-options"),h=c,v=null,g=null,b=null;if(!i&&!l)return null;var E=this.getPageSizeOptions();if(i&&h){var x=E.map((function(t,a){return m.a.createElement(h.Option,{key:a,value:t.toString()},(s||e.buildOptionText)(t))}));v=m.a.createElement(h,{disabled:d,prefixCls:u,showSearch:!1,className:"".concat(f,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(a||E[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode}},x)}return l&&(o&&(b="boolean"==typeof o?m.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:d,className:"".concat(f,"-quick-jumper-button")},n.jump_to_confirm):m.a.createElement("span",{onClick:this.go,onKeyUp:this.go},o)),g=m.a.createElement("div",{className:"".concat(f,"-quick-jumper")},n.jump_to,m.a.createElement("input",{disabled:d,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),n.page,b)),m.a.createElement("li",{className:"".concat(f)},v,g)}}]),a}(m.a.Component);b.defaultProps={pageSizeOptions:["10","20","50","100"]};var E=b,x=a("N2Kk");function y(){}function O(e,t,a){var n=void 0===e?t.pageSize:e;return Math.floor((a.total-1)/n)+1}var j=function(e){Object(c.a)(a,e);var t=Object(s.a)(a);function a(e){var n;Object(l.a)(this,a),(n=t.call(this,e)).getJumpPrevPage=function(){return Math.max(1,n.state.current-(n.props.showLessItems?3:5))},n.getJumpNextPage=function(){return Math.min(O(void 0,n.state,n.props),n.state.current+(n.props.showLessItems?3:5))},n.getItemIcon=function(e,t){var a=n.props.prefixCls,r=e||m.a.createElement("button",{type:"button","aria-label":t,className:"".concat(a,"-item-link")});return"function"==typeof e&&(r=m.a.createElement(e,Object(i.a)({},n.props))),r},n.savePaginationNode=function(e){n.paginationNode=e},n.isValid=function(e){return"number"==typeof(t=e)&&isFinite(t)&&Math.floor(t)===t&&e!==n.state.current;var t},n.shouldDisplayQuickJumper=function(){var e=n.props,t=e.showQuickJumper,a=e.pageSize;return!(e.total<=a)&&t},n.handleKeyDown=function(e){e.keyCode!==v&&e.keyCode!==g||e.preventDefault()},n.handleKeyUp=function(e){var t=n.getValidValue(e);t!==n.state.currentInputValue&&n.setState({currentInputValue:t}),e.keyCode===h?n.handleChange(t):e.keyCode===v?n.handleChange(t-1):e.keyCode===g&&n.handleChange(t+1)},n.changePageSize=function(e){var t=n.state.current,a=O(e,n.state,n.props);t=t>a?a:t,0===a&&(t=n.state.current),"number"==typeof e&&("pageSize"in n.props||n.setState({pageSize:e}),"current"in n.props||n.setState({current:t,currentInputValue:t})),n.props.onShowSizeChange(t,e),"onChange"in n.props&&n.props.onChange&&n.props.onChange(t,e)},n.handleChange=function(e){var t=n.props.disabled,a=e;if(n.isValid(a)&&!t){var r=O(void 0,n.state,n.props);a>r?a=r:a<1&&(a=1),"current"in n.props||n.setState({current:a,currentInputValue:a});var i=n.state.pageSize;return n.props.onChange(a,i),a}return n.state.current},n.prev=function(){n.hasPrev()&&n.handleChange(n.state.current-1)},n.next=function(){n.hasNext()&&n.handleChange(n.state.current+1)},n.jumpPrev=function(){n.handleChange(n.getJumpPrevPage())},n.jumpNext=function(){n.handleChange(n.getJumpNextPage())},n.hasPrev=function(){return n.state.current>1},n.hasNext=function(){return n.state.current<O(void 0,n.state,n.props)},n.runIfEnter=function(e,t){if("Enter"===e.key||13===e.charCode){for(var a=arguments.length,n=new Array(a>2?a-2:0),r=2;r<a;r++)n[r-2]=arguments[r];t.apply(void 0,n)}},n.runIfEnterPrev=function(e){n.runIfEnter(e,n.prev)},n.runIfEnterNext=function(e){n.runIfEnter(e,n.next)},n.runIfEnterJumpPrev=function(e){n.runIfEnter(e,n.jumpPrev)},n.runIfEnterJumpNext=function(e){n.runIfEnter(e,n.jumpNext)},n.handleGoTO=function(e){e.keyCode!==h&&"click"!==e.type||n.handleChange(n.state.currentInputValue)};var r=e.onChange!==y;"current"in e&&!r&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var o=e.defaultCurrent;"current"in e&&(o=e.current);var c=e.defaultPageSize;return"pageSize"in e&&(c=e.pageSize),o=Math.min(o,O(c,void 0,e)),n.state={current:o,currentInputValue:o,pageSize:c},n}return Object(o.a)(a,[{key:"componentDidUpdate",value:function(e,t){var a=this.props.prefixCls;if(t.current!==this.state.current&&this.paginationNode){var n=this.paginationNode.querySelector(".".concat(a,"-item-").concat(t.current));n&&document.activeElement===n&&n.blur()}}},{key:"getValidValue",value:function(e){var t=e.target.value,a=O(void 0,this.state,this.props),n=this.state.currentInputValue;return""===t?t:isNaN(Number(t))?n:t>=a?a:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,a=e.total,n=e.totalBoundaryShowSizeChanger;return void 0!==t?t:a>n}},{key:"renderPrev",value:function(e){var t=this.props,a=t.prevIcon,n=(0,t.itemRender)(e,"prev",this.getItemIcon(a,"prev page")),r=!this.hasPrev();return Object(u.isValidElement)(n)?Object(u.cloneElement)(n,{disabled:r}):n}},{key:"renderNext",value:function(e){var t=this.props,a=t.nextIcon,n=(0,t.itemRender)(e,"next",this.getItemIcon(a,"next page")),r=!this.hasNext();return Object(u.isValidElement)(n)?Object(u.cloneElement)(n,{disabled:r}):n}},{key:"render",value:function(){var e=this,t=this.props,a=t.prefixCls,i=t.className,l=t.style,o=t.disabled,c=t.hideOnSinglePage,s=t.total,d=t.locale,h=t.showQuickJumper,v=t.showLessItems,g=t.showTitle,b=t.showTotal,x=t.simple,y=t.itemRender,j=t.showPrevNextJumpers,S=t.jumpPrevIcon,_=t.jumpNextIcon,N=t.selectComponentClass,k=t.selectPrefixCls,w=t.pageSizeOptions,C=this.state,I=C.current,A=C.pageSize,z=C.currentInputValue;if(!0===c&&s<=A)return null;var T=O(void 0,this.state,this.props),P=[],D=null,R=null,V=null,M=null,K=null,L=h&&h.goButton,F=v?1:2,J=I-1>0?I-1:0,B=I+1<T?I+1:T,U=Object.keys(this.props).reduce((function(t,a){return"data-"!==a.substr(0,5)&&"aria-"!==a.substr(0,5)&&"role"!==a||(t[a]=e.props[a]),t}),{});if(x)return L&&(K="boolean"==typeof L?m.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},d.jump_to_confirm):m.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},L),K=m.a.createElement("li",{title:g?"".concat(d.jump_to).concat(I,"/").concat(T):null,className:"".concat(a,"-simple-pager")},K)),m.a.createElement("ul",Object(n.a)({className:p()(a,"".concat(a,"-simple"),Object(r.a)({},"".concat(a,"-disabled"),o),i),style:l,ref:this.savePaginationNode},U),m.a.createElement("li",{title:g?d.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:p()("".concat(a,"-prev"),Object(r.a)({},"".concat(a,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(J)),m.a.createElement("li",{title:g?"".concat(I,"/").concat(T):null,className:"".concat(a,"-simple-pager")},m.a.createElement("input",{type:"text",value:z,disabled:o,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),m.a.createElement("span",{className:"".concat(a,"-slash")},"/"),T),m.a.createElement("li",{title:g?d.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:p()("".concat(a,"-next"),Object(r.a)({},"".concat(a,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(B)),K);if(T<=3+2*F){var W={locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:g,itemRender:y};T||P.push(m.a.createElement(f,Object(n.a)({},W,{key:"noPager",page:T,className:"".concat(a,"-disabled")})));for(var G=1;G<=T;G+=1){var H=I===G;P.push(m.a.createElement(f,Object(n.a)({},W,{key:G,page:G,active:H})))}}else{var X=v?d.prev_3:d.prev_5,Q=v?d.next_3:d.next_5;j&&(D=m.a.createElement("li",{title:g?X:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:p()("".concat(a,"-jump-prev"),Object(r.a)({},"".concat(a,"-jump-prev-custom-icon"),!!S))},y(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(S,"prev page"))),R=m.a.createElement("li",{title:g?Q:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:p()("".concat(a,"-jump-next"),Object(r.a)({},"".concat(a,"-jump-next-custom-icon"),!!_))},y(this.getJumpNextPage(),"jump-next",this.getItemIcon(_,"next page")))),M=m.a.createElement(f,{locale:d,last:!0,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:T,page:T,active:!1,showTitle:g,itemRender:y}),V=m.a.createElement(f,{locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:g,itemRender:y});var q=Math.max(1,I-F),Y=Math.min(I+F,T);I-1<=F&&(Y=1+2*F),T-I<=F&&(q=T-2*F);for(var Z=q;Z<=Y;Z+=1){var $=I===Z;P.push(m.a.createElement(f,{locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Z,page:Z,active:$,showTitle:g,itemRender:y}))}I-1>=2*F&&3!==I&&(P[0]=Object(u.cloneElement)(P[0],{className:"".concat(a,"-item-after-jump-prev")}),P.unshift(D)),T-I>=2*F&&I!==T-2&&(P[P.length-1]=Object(u.cloneElement)(P[P.length-1],{className:"".concat(a,"-item-before-jump-next")}),P.push(R)),1!==q&&P.unshift(V),Y!==T&&P.push(M)}var ee=null;b&&(ee=m.a.createElement("li",{className:"".concat(a,"-total-text")},b(s,[0===s?0:(I-1)*A+1,I*A>s?s:I*A])));var te=!this.hasPrev()||!T,ae=!this.hasNext()||!T;return m.a.createElement("ul",Object(n.a)({className:p()(a,i,Object(r.a)({},"".concat(a,"-disabled"),o)),style:l,unselectable:"unselectable",ref:this.savePaginationNode},U),ee,m.a.createElement("li",{title:g?d.prev_page:null,onClick:this.prev,tabIndex:te?null:0,onKeyPress:this.runIfEnterPrev,className:p()("".concat(a,"-prev"),Object(r.a)({},"".concat(a,"-disabled"),te)),"aria-disabled":te},this.renderPrev(J)),P,m.a.createElement("li",{title:g?d.next_page:null,onClick:this.next,tabIndex:ae?null:0,onKeyPress:this.runIfEnterNext,className:p()("".concat(a,"-next"),Object(r.a)({},"".concat(a,"-disabled"),ae)),"aria-disabled":ae},this.renderNext(B)),m.a.createElement(E,{disabled:o,locale:d,rootPrefixCls:a,selectComponentClass:N,selectPrefixCls:k,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:I,pageSize:A,pageSizeOptions:w,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:L}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var a={};if("current"in e&&(a.current=e.current,e.current!==t.current&&(a.currentInputValue=a.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var n=t.current,r=O(e.pageSize,t,e);n=n>r?r:n,"current"in e||(a.current=n,a.currentInputValue=n),a.pageSize=e.pageSize}return a}}]),a}(m.a.Component);j.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:y,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:y,locale:x.a,style:{},itemRender:function(e,t,a){return a},totalBoundaryShowSizeChanger:50};var S=j},"61Iv":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./src/pages/Competitions/Entered/xmtz.png ***!
|
|
|
\*************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){e.exports=a.p+"static/xmtz.e88619e3.png"},BU3w:
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/Dom/dynamicCSS.js ***!
|
|
|
\***************************************************/
|
|
|
/*! exports provided: injectCSS, updateCSS */
|
|
|
/*! exports used: updateCSS */function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var n=a(/*! ./canUseDom */"MNnm");function r(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function i(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Object(n.a)())return null;var i,l=document.createElement("style");(null===(t=a.csp)||void 0===t?void 0:t.nonce)&&(l.nonce=null===(i=a.csp)||void 0===i?void 0:i.nonce);l.innerHTML=e;var o=r(a),c=o.firstChild;return a.prepend&&o.prepend?o.prepend(l):a.prepend&&c?o.insertBefore(l,c):o.appendChild(l),l}var l=new Map;function o(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r(a);if(!l.has(n)){var o=i("",a),c=o.parentNode;l.set(n,c),c.removeChild(o)}var s=Array.from(l.get(n).children).find((function(e){return"STYLE"===e.tagName&&e["rc-util-key"]===t}));if(s){var u,m,d;if((null===(u=a.csp)||void 0===u?void 0:u.nonce)&&s.nonce!==(null===(m=a.csp)||void 0===m?void 0:m.nonce))s.nonce=null===(d=a.csp)||void 0===d?void 0:d.nonce;return s.innerHTML!==e&&(s.innerHTML=e),s}var p=i(e,a);return p["rc-util-key"]=t,p}},Hm3h:
|
|
|
/*!***************************************************************!*\
|
|
|
!*** ./src/pages/Competitions/Entered/index.tsx + 14 modules ***!
|
|
|
\***************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! all exports used */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/es/icons/CloseOutlined.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/es/icons/FormOutlined.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Competitions/Entered/index.less?modules (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/.umi-production/core/umiExports.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/AuthenticationModel/index.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Competitions/Entered/Enteredmodel/Addteams.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Competitions/Entered/Enteredmodel/JoinModel.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/env.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/util.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Competitions/Entered/Enteredmodel/success.png (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Competitions/Entered/Ncode.jpg (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Competitions/Entered/dmpz.png (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Competitions/Entered/sjjx.png (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Competitions/Entered/xmcx.png (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Competitions/Entered/xmtz.png (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/breadcrumb/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/breadcrumb/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/dropdown/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/dropdown/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/empty/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/empty/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/menu/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/menu/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/pagination/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/pagination/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/popconfirm/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/popconfirm/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/skeleton/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/skeleton/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tooltip/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tooltip/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-router-dom/esm/react-router-dom.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-router/esm/react-router.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,a){"use strict";a.r(t);a("2qtc");var n=a("kLXV"),r=(a("+L6B"),a("2/Rp")),i=(a("cWXX"),a("/ezw")),l=(a("DjyN"),a("NUBc")),o=(a("sPJy"),a("bE4q")),c=(a("miYZ"),a("tsqr")),s=a("9og8"),u=a("tJVT"),m=a("PpiC"),d=a("WmNS"),p=a.n(d),f=a("q1tI"),h=a.n(f),v=a("Ty5D"),g=a("55Ip"),b=a("9kvl"),E=a("ipgu"),x=a.n(E),y=a("jWHs"),O=a.n(y);var j=function(e){var t=e.setIsAddmodel,a=e.setJoin,n=e.HeaderDetail,r=e.user,i=e.dispatch;return h.a.createElement("div",{className:x.a.backgroundimg},h.a.createElement("p",{className:x.a.countsize},"欢迎报名参加本项赛事!全面支持各类竞赛的在线运行管理,"),h.a.createElement("p",{className:x.a.countsize},"大数据、人工智能、各类芯片架构等竞赛任务均可在线运行、部署和评测。"),h.a.createElement("div",{className:x.a.buttoncoent},h.a.createElement("span",{onClick:function(){var e;null==n||!n.is_authentication||null!=r&&null!==(e=r.userInfo)&&void 0!==e&&e.authentication?a(!0):i({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}})},className:x.a.addteams},"加入战队"),h.a.createElement("span",{onClick:function(){var e;null==n||!n.is_authentication||null!=r&&null!==(e=r.userInfo)&&void 0!==e&&e.authentication?t(!0):i({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}})},className:x.a.createteams},"创建战队")),h.a.createElement("div",{className:x.a.code},h.a.createElement("p",null,"作品指导张老师微信"),h.a.createElement("div",null,h.a.createElement("img",{width:90,height:90,src:O.a}))))},S=a("qHvr"),_=a("m3rI");var N=function(e){var t=e.setIsAddmodel,a=e.setJoin,n=e.HeaderDetail,r=e.user,i=e.dispatch;return h.a.createElement("div",{className:x.a.nullnodata},h.a.createElement("img",{src:_.a.IMG_SERVER+"/images/educoder/competitions/Noentry.jpg"}),h.a.createElement("p",{style:{fontSize:"16px",color:"#333333"},className:"bootomtext"},"您当前未报名,请先",h.a.createElement("span",{onClick:function(){var e;null==n||!n.is_authentication||null!=r&&null!==(e=r.userInfo)&&void 0!==e&&e.authentication?a(!0):i({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}})},style:{color:"#0152d9",cursor:"pointer"}},"加入战队"),"或",h.a.createElement("span",{onClick:function(){var e;null==n||!n.is_authentication||null!=r&&null!==(e=r.userInfo)&&void 0!==e&&e.authentication?t(!0):i({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}})},style:{color:"#0152d9",cursor:"pointer"}},"创建战队"),","),h.a.createElement("p",{style:{fontSize:"16px",color:"#333333"}},"加入/创建战队后将自动报名"))},k=(a("5NDa"),a("5rEg")),w=k.a.Search;var C=function(e){var t=e.Count,a=e.Members_count,n=e.selectlist,r=e.setIsselect,i=Object(f.useState)(""),l=Object(u.a)(i,2),o=l[0],c=l[1];return h.a.createElement("div",{className:x.a.searchhead},h.a.createElement("p",{className:x.a.selectleft},"战队总数:",h.a.createElement("span",{style:{color:"#459BE5",fontSize:"16px"}},t),h.a.createElement("span",{style:{marginLeft:"5px",marginRight:"15px"}},"个")," 参赛总人数:",h.a.createElement("span",{style:{color:"#459BE5"}},a),h.a.createElement("span",{style:{marginLeft:"5px"}},"人")),h.a.createElement(w,{className:x.a.packinputs,value:o,placeholder:"请输入战队名称搜索",allowClear:!0,onChange:function(e){c(e.target.value)},onSearch:function(e){r(!0),n(o)}}))},I=(a("qVdP"),a("jsC+")),A=(a("5Dmo"),a("3S7+")),z=(a("lUTK"),a("BvKs")),T=a("Fvcw");var P=function(e){var t=e.item,a=e.identifier,n=e.isTipsshow,r=e.type,i=e.setIslookModel,l=e.setTeam,o=e.setMembers,s=e.mode;return console.log(s),h.a.createElement("div",{className:x.a.ManagedTeams},h.a.createElement("div",{className:x.a.width18},t&&t.team_log?h.a.createElement("img",{className:x.a.imageradius,src:_.a.IMG_SERVER+"/".concat(t.team_log)}):h.a.createElement("span",{className:x.a.spanradius},t.name.length>2?t.name.substring(0,2):t.name),h.a.createElement("span",{className:x.a.nametitle,title:t.name},t.name?t.name.length>6?t.name.substring(0,6)+"...":t.name:"--"),1===r?h.a.createElement(g.a,{to:"/competitions/index/".concat(a,"/UpdateTeanname/").concat(t.id)},h.a.createElement(A.a,{overlayStyle:{zIndex:1},defaultVisible:!0,placement:"top",visible:t&&t.auto_create,autoAdjustOverflow:!1,title:"请修改战队名称"},h.a.createElement(T.a,{style:{marginLeft:"5px"}}))):null),h.a.createElement("div",{className:x.a.width15,style:{justifyContent:"center"}},h.a.createElement("img",{className:x.a.loaderimg,src:_.a.IMG_SERVER+"/images/"+"".concat(t.creator.image_url)}),h.a.createElement("span",{style:{marginLeft:"13px"},title:t.creator.name},t.creator.name.length>3?t.creator.name.substring(0,3)+"...":t.creator.name)),h.a.createElement("div",{className:x.a.width15,style:{width:"10%"}},h.a.createElement("span",{title:t.school_name},t.school_name?t.school_name.length>6?t.school_name.substring(0,6)+"...":t.school_name:"--")),h.a.createElement("div",{className:x.a.width18,style:{width:"20%"}},"创建时间:",h.a.createElement("span",{title:t.created_at},t.created_at||"--")),h.a.createElement("div",{className:x.a.width15},"邀请码:",h.a.createElement("span",{title:t.invite_code},t.invite_code||"--"),h.a.createElement("i",{className:"iconfont icon-fuzhi font-14",onClick:function(){var e="copy_invite_code".concat(t.id);document.getElementById(e).select(),document.execCommand("Copy"),c.b.success("复制成功")},style:{display:"inline-block",color:"#0152d9",marginLeft:"5px",marginRight:"10px",cursor:"pointer"}}),h.a.createElement("input",{id:"copy_invite_code"+t.id,value:t.invite_code||"--",onChange:function(e){},style:{opacity:"0",position:"absolute",bottom:"15px"}})),h.a.createElement("div",{className:x.a.width15,style:{justifyContent:"flex-end"}},h.a.createElement("span",null,"战队成员:",h.a.createElement("span",null,t.team_members?t.team_members.length:"--")),h.a.createElement("span",{onClick:function(){return l(t),void(1===r?o(!0):i(!0))},style:{color:"#0152d9",marginLeft:"10px",cursor:"pointer"}},1===r?"设置":"查看"),t&&t.active||2===r?h.a.createElement("span",{className:x.a.borderjingao,style:{visibility:"hidden"}}):h.a.createElement(A.a,{placement:"top",title:"请设置战队成员"},h.a.createElement("span",{className:x.a.borderjingao},"!"))),3===s&&h.a.createElement(g.a,{to:"/competitions/index/".concat(a,"/teamDetail/").concat(t.id),style:{color:"#0152d9",fontSize:"14px",marginLeft:"30px",cursor:"pointer",width:"6%"}},"战队详情"),h.a.createElement(I.a,{overlay:function(){return h.a.createElement(z.a,null,h.a.createElement(z.a.Item,{onClick:function(){return n(r,t.id)}},1===r?"删除战队":"退出战队"))}},h.a.createElement("i",{style:{marginLeft:"30px"},className:"iconfont icon-sandian"})))};var D=function(e){var t=e.item,a=e.setIslookModel,n=e.setTeam,r=e.mode,i=Object(v.i)().identifier;return h.a.createElement("div",{className:x.a.ManagedTeams},h.a.createElement("div",{className:x.a.width20},t&&t.team_log?h.a.createElement("img",{className:x.a.imageradius,src:_.a.IMG_SERVER+"/".concat(t.team_log)}):h.a.createElement("span",{className:x.a.spanradius},t.name.length>2?t.name.substring(0,2):t.name),h.a.createElement("span",{title:t.name,className:x.a.nametitle},t.name?t.name.length>6?t.name.substring(0,6)+"...":t.name:"--")),h.a.createElement("div",{className:x.a.width20},h.a.createElement("img",{className:x.a.loaderimg,src:_.a.IMG_SERVER+"/images/"+"".concat(t.creator.image_url)}),h.a.createElement("span",{title:t.creator.name,style:{marginLeft:"13px"}},t.creator.name.length>3?t.creator.name.substring(0,3)+"...":t.creator.name)),h.a.createElement("div",{className:x.a.width20},h.a.createElement("span",{title:t.school_name},t.school_name?t.school_name.length>6?t.school_name.substring(0,6)+"...":t.school_name:"--")),h.a.createElement("div",{className:x.a.width20},"创建时间:",h.a.createElement("span",null,t.created_at||"--")),h.a.createElement("div",{className:x.a.width20,style:{justifyContent:"flex-end"}},h.a.createElement("span",null,"战队成员:",h.a.createElement("span",null,t.team_members?t.team_members.length:"--")),h.a.createElement("span",{onClick:function(){a(!0),n(t)},style:{color:"#0152d9",marginLeft:"15px",cursor:"pointer"}},"查看")),3===r&&h.a.createElement(g.a,{to:"/competitions/index/".concat(i,"/teamDetail/").concat(t.id),style:{color:"#0152d9",fontSize:"14px",marginLeft:"30px",cursor:"pointer",width:"10%"}},"战队详情"))};var R=function(e){var t=e.teamitem;return h.a.createElement("div",null,h.a.createElement("div",{style:{display:"flex",alignItems:"center",flexDirection:"initial",height:"37px",background:"#fff",marginTop:"3px",padding:"0px 15px"}},h.a.createElement("span",{style:{flex:"1"}},h.a.createElement("img",{className:x.a.loaderimg,src:_.a.IMG_SERVER+"/images/"+"".concat(t.image_url)})),h.a.createElement("span",{style:{flex:"1"}},t&&t.name.length>6?t.name.substring(0,6)+"...":t.name),h.a.createElement("span",{style:{flex:"2"}},t&&t.phone||"- -"),h.a.createElement("span",{style:{flex:"2"}},t&&t.school_name.length>6?t.school_name.substring(0,6)+"...":t.school_name||"- - "),h.a.createElement("span",{style:{flex:"1"}},t&&t.identity||"- -"),h.a.createElement("span",{style:{flex:"2"},className:"task-hide"},t&&t.student_id||"- -"),h.a.createElement("span",{style:{flex:"2",color:t&&"leader"===t.role?"#0152d9":"#2ABD8C",fontSize:"14px"}},t&&"leader"===t.role?"队长":"队员",h.a.createElement("span",{style:{color:"#F3730C"}},t&&t.creator?"(创建者)":""))))},V=a("4i/N");var M=function(e){var t=e.islookmodel,a=e.mydatas,r=e.setIslookModel;return h.a.createElement(n.a,{centered:!0,title:h.a.createElement("div",{style:{alignItems:"center",display:"flex"}},h.a.createElement("div",{style:{textAlign:"left",flex:"1"}},a.name),h.a.createElement(V.a,{onClick:function(){return r(!1)},style:{cursor:"porint"}})),visible:t,closable:!1,destroyOnClose:!0,footer:null,width:900},h.a.createElement("div",null,h.a.createElement("div",{style:{display:"flex",alignItems:"center",flexDirection:"initial",height:"37px",background:"#FAFAFA",padding:"0px 15px"}},h.a.createElement("span",{style:{flex:"1"}},"头像"),h.a.createElement("span",{style:{flex:"1"}},"姓名"),h.a.createElement("span",{style:{flex:"2"}},"手机"),h.a.createElement("span",{style:{flex:"2"}},"学校/单位"),h.a.createElement("span",{style:{flex:"1"}},"职业"),h.a.createElement("span",{style:{flex:"2"}},"学号"),h.a.createElement("span",{style:{flex:"2"}},"角色"))),a&&a.team_members&&a.team_members.map((function(e,t){return h.a.createElement(R,{key:t,teamitem:e})})))};var K=function(e){var t=e.title,a=e.content,r=e.Tipsmodel,i=e.setTipsmodel,l=e.TipsSubmit,o=e.TipsType;return h.a.createElement(n.a,{centered:!0,title:h.a.createElement("div",{style:{alignItems:"center",display:"flex"}},h.a.createElement("div",{style:{textAlign:"left",flex:"1"}},t),h.a.createElement(V.a,{onClick:function(){return i(!1)},style:{cursor:"porint"}})),visible:r,closable:!1,destroyOnClose:!0,onCancel:function(){return i(!1)},onOk:function(){return l(o)}},a)},L=a("UfjD");var F=function(){return h.a.createElement("div",{className:x.a.teammember},h.a.createElement("span",{className:x.a.flex1},"头像"),h.a.createElement("span",{className:x.a.flex1},"姓名"),h.a.createElement("span",{className:x.a.flex2},"手机"),h.a.createElement("span",{className:x.a.flex2},"学校/单位"),h.a.createElement("span",{className:x.a.flex1},"职业"),h.a.createElement("span",{className:x.a.flex2},"学号"),h.a.createElement("span",{className:x.a.flex2},"角色"),h.a.createElement("span",{className:x.a.flex2,style:{textAlign:"center"}},"操作"))},J=(a("P2fV"),a("NJEC"));var B=function(e){var t=e.teamitem,a=e.index,n=e.setTeams,r=e.Teams,i=e.setLoaderid;function l(){var e=r,l=r&&r.findIndex((function(e){return"leader"===e.role}));e[a].role="leader",e[l].role=e&&e[l].is_teacher?"teacher":"member";var o=e.sort((function(e,t){return e.creator?-1:1})).sort((function(e,t){return"leader"===e.role?-1:1}));n(o),i(t.id)}return h.a.createElement("div",{className:x.a.teammembers},h.a.createElement("span",{className:x.a.flex1},h.a.createElement("img",{className:x.a.loaderimg,src:_.a.IMG_SERVER+"/images/"+"".concat(t.image_url)})),h.a.createElement("span",{className:x.a.flex1},t&&t.name.length>6?t.name.substring(0,6)+"...":t.name),h.a.createElement("span",{className:x.a.flex2},t&&t.phone||"- -"),h.a.createElement("span",{className:x.a.flex2},t&&t.school_name.length>6?t.school_name.substring(0,6)+"...":t.school_name||"- - "),h.a.createElement("span",{className:x.a.flex1},t&&t.identity||"- -"),h.a.createElement("span",{className:"".concat(x.a.flex2," ").concat(x.a.task_hide)},t&&t.student_id||"- -"),h.a.createElement("span",{className:x.a.flex2,style:{color:(t&&t.role,"#0152d9"),fontSize:"14px"}},t&&"leader"===t.role?"队长":"队员",h.a.createElement("span",{style:{color:"#F3730C"}},t&&t.creator?"(创建者)":"")),h.a.createElement("div",{className:x.a.flex2},h.a.createElement(J.a,{title:"设置为队长,权限:编辑战队、设置战队成员、转移队长、删除战队",okText:"确认",cancelText:"取消",onConfirm:function(){return l()}},h.a.createElement("span",{className:" ".concat(x.a.deleteitem)},t&&"leader"===t.role||t&&t.creator?"":"设为队长")),h.a.createElement("span",{style:{color:"#f73737"},onClick:function(){return e=r&&r.filter((function(e){return e.id!=t.id})),void n(e);var e},className:" ".concat(x.a.deleteitem)},t&&"leader"===t.role||t&&t.creator?"":"删除")))},U=(a("R9oj"),a("ECub"));var W=function(e){var t=e.teachers,a=e.setTeams,n=e.Teams,r=e.HeaderDetail,i=t.map((function(e,t){return h.a.createElement("div",{key:t,className:x.a.teachname,onMouseDown:function(){if(null!=e&&e.authentication||null==r||!r.is_authentication)if(e.enrolled)c.b.info("该用户已经加入战队");else if((null==n?void 0:n.filter((function(t){return e.id===t.id})).length)>0)c.b.info("该用户已在战队列表,请不要重复添加");else{var t=n;t.push(e),a(t)}else c.b.info("当前竞赛需要实名认证,该用户未进行实名认证不能参与。")}},h.a.createElement("img",{style:{marginLeft:"10px",marginRight:"3px"},className:x.a.loaderimg,src:_.a.IMG_SERVER+"/images/"+"".concat(e.image_url)}),h.a.createElement("span",{style:{textAlign:"left",width:"20%",padding:"0px 5px"}},e.name||"- -"),h.a.createElement("span",{style:{textAlign:"left",width:"18%",padding:"0px 5px"}},e.phone||"- -"),h.a.createElement("span",{style:{textAlign:"left",width:"18%",padding:"0px 5px"},className:x.a.task_hide},e.identity||"- -"),h.a.createElement("span",{style:{textAlign:"left",width:"20%",padding:"0px 5px"}},e.school_name||"- -"),h.a.createElement("span",{style:{textAlign:"left",width:"24%",color:e.enrolled?"#28be6c":e.enrolled||!1!==e.enrollable?"":"#F3730C",padding:"0px 5px",fontSize:"12px"}},e.enrolled?"已加入本战队":e.enrolled||!1!==e.enrollable?"":"已加入其他战队"))}));return h.a.createElement("div",{className:x.a.teacherdown},0===t.length?h.a.createElement(U.a,{description:h.a.createElement("div",null,h.a.createElement("p",null,"搜索结果为空"),h.a.createElement("p",null,"成功注册后的账号(职业为老师)"),h.a.createElement("p",null,"才能被搜索到哦~")),image:U.a.PRESENTED_IMAGE_SIMPLE}):h.a.createElement("div",null,i))};var G=function(e){var t=e.students,a=e.setTeams,n=e.Teams,r=e.HeaderDetail,i=t.map((function(e,t){return h.a.createElement("div",{key:t,className:x.a.teachname,onMouseDown:function(){if(null!=e&&e.authentication||null==r||!r.is_authentication)if(e.enrolled)c.b.info("该用户已经加入战队");else if((null==n?void 0:n.filter((function(t){return e.id===t.id})).length)>0)c.b.info("该用户已在战队列表,请不要重复添加");else{var t=n;t.push(e),a(t)}else c.b.info("当前竞赛需要实名认证,该用户未进行实名认证不能参与。")}},h.a.createElement("img",{style:{marginLeft:"10px",marginRight:"3px"},className:x.a.loaderimg,src:_.a.IMG_SERVER+"/images/"+"".concat(e.image_url)}),h.a.createElement("span",{style:{textAlign:"left",width:"20%",padding:"0px 5px"}},e.name||"- -"),h.a.createElement("span",{style:{textAlign:"left",width:"18%",padding:"0px 5px"}},e.phone||"- -"),h.a.createElement("span",{style:{textAlign:"left",width:"18%",padding:"0px 5px"},className:x.a.task_hide},e.student_id?"学号"+e.student_id:"- -"),h.a.createElement("span",{style:{textAlign:"left",width:"20%",padding:"0px 5px"}},e.school_name||"- -"),h.a.createElement("span",{style:{textAlign:"left",width:"24%",color:e.enrolled?"#28be6c":e.enrolled||!1!==e.enrollable?"":"#F3730C",padding:"0px 5px",fontSize:"12px"}},e.enrolled?"已加入本战队":e.enrolled||!1!==e.enrollable?"":"已加入其他战队"))}));return h.a.createElement("div",{className:x.a.teacherdown},0===t.length?h.a.createElement(U.a,{description:h.a.createElement("div",null,h.a.createElement("p",null,"搜索结果为空"),h.a.createElement("p",null,"成功注册后的账号(职业为学生)"),h.a.createElement("p",null,"才能被搜索到哦~")),image:U.a.PRESENTED_IMAGE_SIMPLE}):h.a.createElement("div",null,i))},H=k.a.Search;var X=function(e){var t,a,r,i,l=e.Membersshow,o=e.setClose,m=e.HeaderDetail,d=e.StaffDetail,v=e.setMembers,g=e.dispatch,b=e.identifier,E=e.mydatas,y=e.selectlist,O=Object(f.useState)(""),j=Object(u.a)(O,2),S=j[0],_=j[1],N=Object(f.useState)(""),k=Object(u.a)(N,2),w=k[0],C=k[1],A=Object(f.useState)([]),z=Object(u.a)(A,2),T=z[0],P=z[1],D=Object(f.useState)(!1),R=Object(u.a)(D,2),M=R[0],K=R[1],L=Object(f.useState)([]),J=Object(u.a)(L,2),U=J[0],X=J[1],Q=Object(f.useState)(!1),q=Object(u.a)(Q,2),Y=q[0],Z=q[1],$=Object(f.useState)([]),ee=Object(u.a)($,2),te=ee[0],ae=ee[1],ne=Object(f.useState)([]),re=Object(u.a)(ne,2),ie=re[0],le=re[1],oe=Object(f.useState)([]),ce=Object(u.a)(oe,2),se=ce[0],ue=ce[1],me=Object(f.useState)([]),de=Object(u.a)(me,2),pe=de[0],fe=de[1],he=Object(f.useState)(!1),ve=Object(u.a)(he,2),ge=ve[0],be=ve[1],Ee=Object(f.useState)(!1),xe=Object(u.a)(Ee,2),ye=xe[0],Oe=xe[1];function je(){return(je=Object(s.a)(p.a.mark((function e(){var t;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g({type:"competitions/getStudents",payload:{identifier:b,keyword:w,team_id:E&&E.id}});case 2:(t=e.sent)&&X(t.teachers);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Se(){return(Se=Object(s.a)(p.a.mark((function e(){var t;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g({type:"competitions/getTeacher",payload:{identifier:b,keyword:S,team_id:E&&E.id}});case 2:(t=e.sent)&&P(t.teachers);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _e(){return(_e=Object(s.a)(p.a.mark((function e(){var t,a,n,r,i;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=[],r=[],te&&te.map((function(e,t){e.is_teacher?r.push(e.id):n.push(e.id)})),ue(r.length),fe(n.length),!((null==d||null===(t=d.teacher_staff)||void 0===t?void 0:t.maximum)<r.length)){e.next=8;break}return be(!0),e.abrupt("return");case 8:if(be(!1),!((null==d||null===(a=d.member_staff)||void 0===a?void 0:a.maximum)<n.length)){e.next=12;break}return Oe(!0),e.abrupt("return");case 12:return Oe(!1),e.next=15,g({type:"competitions/SubmitTeam",payload:{identifier:b,teamid:E&&E.id,member_ids:n,teacher_ids:r,leader:ie}});case 15:(i=e.sent)&&0===i.status&&(c.b.info("修改成功"),v(!1),y(""));case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return Object(f.useEffect)((function(){var e=E&&E.team_members.sort((function(e,t){return e.creator?-1:1})).sort((function(e,t){return"leader"===e.role?-1:1}));ae(e)}),[]),h.a.createElement(n.a,{centered:!0,title:h.a.createElement("div",{style:{alignItems:"center",display:"flex"}},h.a.createElement("div",{style:{textAlign:"left",flex:"1"}},"设置战队成员"),h.a.createElement(V.a,{onClick:function(){return v(!1)},style:{cursor:"porint"}})),visible:l,closable:!1,destroyOnClose:!0,onOk:function(){!function(){_e.apply(this,arguments)}()},onCancel:function(){v(!1),o()},width:900},h.a.createElement("div",{className:x.a.setmembers},h.a.createElement("p",null,"添加教师"),h.a.createElement(I.a,{overlay:h.a.createElement(W,{HeaderDetail:m,teachers:T,setTeams:ae,Teams:te}),getPopupContainer:function(e){return e.parentNode},visible:M},h.a.createElement(H,{value:S,placeholder:"请搜索教师姓名/手机号并添加",allowClear:!0,onChange:function(e){_(e.target.value)},onSearch:function(e){K(!0),function(){Se.apply(this,arguments)}()},onBlur:function(){K(!1)}})),h.a.createElement("p",null,"添加学生/专业人士"),h.a.createElement(I.a,{overlay:h.a.createElement(G,{HeaderDetail:m,students:U,setTeams:ae,Teams:te}),getPopupContainer:function(e){return e.parentNode},visible:Y},h.a.createElement(H,{value:w,placeholder:"请搜索队员姓名/手机号并添加",allowClear:!0,onChange:function(e){C(e.target.value)},onSearch:function(e){Z(!0),function(){je.apply(this,arguments)}()},onBlur:function(){Z(!1)}})),h.a.createElement("div",{style:{display:"flex",marginBottom:"12px",marginTop:"15px"}},h.a.createElement("p",{style:{flex:"1"}},"请添加战队成员:",d&&d.teacher_staff?h.a.createElement("span",null,d&&d.teacher_staff.minimum,"-",d&&d.teacher_staff.maximum,"名教师"):"",d&&d.teacher_staff&&d.member_staff?"/":"",d&&d.member_staff?h.a.createElement("span",null,d&&d.member_staff.minimum,"-",d&&d.member_staff.maximum,"名学生"):""),h.a.createElement("span",{style:{color:"#F3730C"}},"建议优先将教师设置为队长")),h.a.createElement(F,null),h.a.createElement("div",{style:{height:"240px",overflow:"auto"}},te&&te.map((function(e,t){return h.a.createElement(B,{key:t,teamitem:e,index:t,setTeams:ae,Teams:te,setLoaderid:le})}))),ge&&h.a.createElement("p",{style:{marginLeft:"53px",color:"#D0021B",fontSize:"12px",marginTop:"9px"}},"导师需为",null==d||null===(t=d.teacher_staff)||void 0===t?void 0:t.minimum,"-",null==d||null===(a=d.teacher_staff)||void 0===a?void 0:a.maximum,"人,现为",se,"人"),ye&&h.a.createElement("p",{style:{marginLeft:"53px",color:"#D0021B",fontSize:"12px",marginTop:"9px"}},"战队成员(职业为学生)需为",null==d||null===(r=d.member_staff)||void 0===r?void 0:r.minimum,"-",null==d||null===(i=d.member_staff)||void 0===i?void 0:i.maximum,"人,现为",pe,"人")))},Q=a("0SVz"),q=a.n(Q);var Y=function(e){var t=e.isShowmodel,a=e.isSignUphide,i=Object(f.useState)([]),l=Object(u.a)(i,2),o=l[0],c=l[1];return Object(f.useEffect)((function(){var e=JSON.parse(localStorage.getItem("item"));c(e)}),[]),h.a.createElement(n.a,{visible:t,footer:null,centered:!0,onCancel:function(){a(!1)},width:600,maskClosable:!1},h.a.createElement("div",{style:{display:"flex",alignItems:"center"}},h.a.createElement("img",{src:q.a,style:{marginRight:"35px",width:"60px",height:"60px"}})," ",h.a.createElement("span",{style:{fontSize:"24px",color:"#333333"}},"报名成功")),h.a.createElement("div",{style:{marginLeft:"100px",marginTop:"41px"}},h.a.createElement("p",{className:"task-hide"},"恭喜你成功报名:",h.a.createElement("span",{style:{color:"#333333"}},null==o?void 0:o.competition,"-",null==o?void 0:o.sub_title)),h.a.createElement("p",{className:"task-hide"},"系统已为您自动创建战队,战队名称为:",h.a.createElement("span",{style:{color:"#333333"}},null==o?void 0:o.team_name)),h.a.createElement("p",{style:{marginTop:"40px"}},"你可以去到[编辑战队]页面,修改战队名称和上传logo,也可以去[赛事详情] 页面更详细的了解比赛。")),h.a.createElement("p",{style:{marginTop:"30px",textAlign:"center"}},h.a.createElement(g.a,{style:{marginRight:"20px"},to:"/competitions/index/".concat(null==o?void 0:o.identify)},h.a.createElement(r.a,null,"赛事详情")),h.a.createElement(g.a,{style:{marginLeft:"20px"},to:"/competitions/index/".concat(null==o?void 0:o.identify,"/UpdateTeanname/").concat(null==o?void 0:o.team_id)},h.a.createElement(r.a,{type:"primary"},"编辑战队"))))},Z=a("zrhs"),$=a("Vh0m"),ee=a.n($),te=a("hxTS"),ae=a.n(te),ne=a("fpBZ"),re=a.n(ne),ie=a("61Iv"),le=a.n(ie),oe=a("1vsH"),ce=[45,46,49,50,51,52,71];t.default=Object(b.a)((function(e){var t=e.loading,a=e.globalSetting,n=e.user;return{globalSetting:a,loading:t.effects,user:n}}))((function(e){e.globalSetting;var t,a,d,b,E,y,O,_,k=e.loading,w=e.dispatch,I=e.user,A=(Object(m.a)(e,["globalSetting","loading","dispatch","user"]),Object(f.useState)([])),z=Object(u.a)(A,2),T=z[0],R=z[1],V=Object(f.useState)([]),F=Object(u.a)(V,2),J=F[0],B=F[1],U=Object(v.i)().identifier,W=Object(f.useState)([]),G=Object(u.a)(W,2),H=G[0],Q=G[1],q=Object(f.useState)([]),$=Object(u.a)(q,2),te=$[0],ne=$[1],ie=Object(f.useState)([]),se=Object(u.a)(ie,2),ue=se[0],me=se[1],de=Object(f.useState)([]),pe=Object(u.a)(de,2),fe=pe[0],he=pe[1],ve=Object(f.useState)(""),ge=Object(u.a)(ve,2),be=ge[0],Ee=(ge[1],Object(f.useState)(1)),xe=Object(u.a)(Ee,2),ye=xe[0],Oe=xe[1],je=Object(f.useState)(20),Se=Object(u.a)(je,2),_e=Se[0],Ne=(Se[1],Object(f.useState)(!1)),ke=Object(u.a)(Ne,2),we=ke[0],Ce=ke[1],Ie=Object(f.useState)([]),Ae=Object(u.a)(Ie,2),ze=Ae[0],Te=Ae[1],Pe=Object(f.useState)(!1),De=Object(u.a)(Pe,2),Re=De[0],Ve=De[1],Me=Object(f.useState)(""),Ke=Object(u.a)(Me,2),Le=Ke[0],Fe=Ke[1],Je=Object(f.useState)(""),Be=Object(u.a)(Je,2),Ue=Be[0],We=Be[1],Ge=Object(f.useState)(""),He=Object(u.a)(Ge,2),Xe=He[0],Qe=He[1],qe=Object(f.useState)(""),Ye=Object(u.a)(qe,2),Ze=Ye[0],$e=Ye[1],et=Object(f.useState)(!1),tt=Object(u.a)(et,2),at=tt[0],nt=tt[1],rt=Object(f.useState)(!1),it=Object(u.a)(rt,2),lt=it[0],ot=it[1],ct=Object(f.useState)(!1),st=Object(u.a)(ct,2),ut=st[0],mt=st[1],dt=Object(f.useState)(!1),pt=Object(u.a)(dt,2),ft=pt[0],ht=pt[1],vt=Object(f.useState)(!1),gt=Object(u.a)(vt,2),bt=gt[0],Et=gt[1],xt=Object(f.useState)(!0),yt=Object(u.a)(xt,2),Ot=yt[0],jt=yt[1],St=Object(f.useState)(),_t=Object(u.a)(St,2),Nt=_t[0],kt=_t[1],wt=Object(f.useState)(!1),Ct=Object(u.a)(wt,2),It=Ct[0],At=Ct[1];function zt(e){return Tt.apply(this,arguments)}function Tt(){return(Tt=Object(s.a)(p.a.mark((function e(t){var a;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,w({type:"competitions/getTeamList",payload:{identifier:U,keyword:t||be,page:ye,per_page:_e}});case 2:(a=e.sent)&&(Q(a),kt(JSON.parse(JSON.stringify(a))),ne(a.competition_teams),me(a&&a.my_teams&&a.my_teams.filter((function(e){return e.manage_permission}))),he(a&&a.my_teams&&a.my_teams.filter((function(e){return!e.manage_permission}))));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Pt(e,t){Qe(t),Ve(!0),$e(e),1===e?(Fe("删除战队"),We("是否确认删除战队")):(Fe("退出战队"),We("是否确认退出战队"))}function Dt(){return Rt.apply(this,arguments)}function Rt(){return(Rt=Object(s.a)(p.a.mark((function e(){return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=B,e.next=3,w({type:"competitions/getStaff",payload:{identifier:U}});case 3:e.t1=e.sent,(0,e.t0)(e.t1);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Vt(){return(Vt=Object(s.a)(p.a.mark((function e(t){var a,n;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("nearly_published"===T.competition_status||!T.enroll_end||"ended"===T.competition_status){e.next=3;break}return c.b.error(1===t?"报名时间已截止,不支持删除战队":"报名时间已截止,不支持退出战队"),e.abrupt("return");case 3:if(1!==t){e.next=10;break}return e.next=6,w({type:"competitions/DeleteTeam",payload:{identifier:U,id:Xe}});case 6:(a=e.sent)&&0===a.status&&(c.b.info("删除成功"),Ve(!1),zt(be),Dt()),e.next=14;break;case 10:return e.next=12,w({type:"competitions/ExitTeam",payload:{identifier:U,id:Xe}});case 12:(n=e.sent)&&0===n.status&&(c.b.info("退出战队成功"),Ve(!1),zt(be),Dt());case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Mt(){return(Mt=Object(s.a)(p.a.mark((function e(t){var a;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Ot){e.next=2;break}return e.abrupt("return");case 2:if(jt(!1),!Kt()){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,w({type:"competitions/AddTeam",payload:{identifier:U,name:t}});case 7:(a=e.sent)&&0===a.status?(c.b.info("创建战队成功"),ce.includes(parseInt(null==T?void 0:T.id))&&At(!0),nt(!1),jt(!0),zt(be),Dt()):jt(!0);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Kt(){var e,t,a,n;if(null!=I&&null!==(e=I.userInfo)&&void 0!==e&&e.is_teacher){if(null!=J&&null!==(a=J.teacher_staff)&&void 0!==a&&a.mutiple_limited&&null!=J&&J.enrolled)return c.b.info("你已经报名,不能重复报名"),jt(!0),!0}else if(null!=J&&null!==(n=J.member_staff)&&void 0!==n&&n.mutiple_limited&&null!=J&&J.enrolled)return c.b.info("你已经报名,不能重复报名"),jt(!0),!0;if(null!=J&&J.enroll_ended)return c.b.info("报名已截止,无需报名"),jt(!0),!0;if(null!=I&&null!==(t=I.userInfo)&&void 0!==t&&t.is_teacher){if(!J.teacher_staff)return c.b.info("已禁止老师报名"),jt(!0),!0}else if(null==J||!J.member_staff)return c.b.info("已禁止学生报名"),jt(!0),!0}function Lt(){return(Lt=Object(s.a)(p.a.mark((function e(t){var a;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Ot){e.next=2;break}return e.abrupt("return");case 2:if(!Kt()){e.next=4;break}return e.abrupt("return");case 4:return jt(!1),e.next=7,w({type:"competitions/JoinTeam",payload:{identifier:U,invite_code:t}});case 7:(a=e.sent)&&0===a.status?(c.b.info("加入战队成功"),ot(!1),jt(!0),zt(be),Dt(),ce.includes(parseInt(null==T?void 0:T.id))&&At(!0)):jt(!0);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return Object(f.useEffect)((function(){function e(){return(e=Object(s.a)(p.a.mark((function e(){return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Dt(),e.t0=R,e.next=4,w({type:"competitions/getHeader",payload:{identifier:U}});case 4:e.t1=e.sent,(0,e.t0)(e.t1),zt(be),1===parseInt(localStorage.getItem("iscreate"))&&(Et(!0),localStorage.setItem("iscreate","2"));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}U&&function(){e.apply(this,arguments)}()}),[U]),Object(f.useEffect)((function(){Object(oe.V)("在线竞赛")})),h.a.createElement("div",{className:"edu-container minH500"},h.a.createElement(o.a,{className:"mt10",separator:">"},h.a.createElement(o.a.Item,null,h.a.createElement(g.a,{to:"/competitions/index"},"在线竞赛")),h.a.createElement(o.a.Item,null,h.a.createElement(g.a,{to:"/competitions/index/".concat(U)},T.name,T.sub_title?"-"+T.sub_title:null)),h.a.createElement(o.a.Item,null,"报名")),h.a.createElement("div",{className:"mt10",style:{display:"flex",background:"#fff",position:"relative"}},h.a.createElement(j,{HeaderDetail:T,dispatch:w,user:I,setIsAddmodel:nt,setJoin:ot})),h.a.createElement(i.a,{loading:k["competitions/getTeamList"],active:!0,avatar:{size:40},paragraph:{rows:5}},h.a.createElement("div",{className:"mt10 mb10"},((null==I||null===(t=I.userInfo)||void 0===t?void 0:t.admin)||(null==I||null===(a=I.userInfo)||void 0===a?void 0:a.business))&&h.a.createElement(C,{selectlist:zt,setIsselect:ht,Count:H&&H.count,Members_count:H&&H.members_count}),!H||!H.my_teams||0!==H.my_teams.length||null!=I&&null!==(d=I.userInfo)&&void 0!==d&&d.admin&&null!=I&&null!==(b=I.userInfo)&&void 0!==b&&b.business?null:h.a.createElement(N,{HeaderDetail:T,dispatch:w,user:I,setIsAddmodel:nt,setJoin:ot}),we?h.a.createElement(M,{islookmodel:we,setIslookModel:Ce,mydatas:ze}):null,Re?h.a.createElement(K,{title:Le,content:Ue,Tipsmodel:Re,TipsType:Ze,setTipsmodel:Ve,TipsSubmit:function(e){return Vt.apply(this,arguments)}}):null,lt?h.a.createElement(L.a,{isjoin:lt,setJoin:ot,JoinTeams:function(e){return Lt.apply(this,arguments)}}):null,at?h.a.createElement(S.a,{isAddmodle:at,setIsAdd:nt,createTeam:function(e){return Mt.apply(this,arguments)}}):null,ut?h.a.createElement(X,{HeaderDetail:T,setClose:function(){var e=Nt;ne(e.competition_teams),me(e&&e.my_teams&&e.my_teams.filter((function(e){return e.manage_permission}))),he(e&&e.my_teams&&e.my_teams.filter((function(e){return!e.manage_permission})))},StaffDetail:J,Membersshow:ut,selectlist:zt,setMembers:mt,dispatch:w,identifier:U,mydatas:ze}):null,ft||ue&&ue.map((function(e,t){return 0===t?h.a.createElement("div",{key:t},h.a.createElement("div",{className:x.a.teamstitlesize,style:{paddingRight:"36px"}},h.a.createElement("span",{style:{flex:"1"}},"管理的战队 (",ue.length,")")," ",ue.filter((function(e){return!e.active})).length>0?h.a.createElement("span",{style:{fontSize:"14px",color:"#F3730C"}},"您有",ue.filter((function(e){return!e.active})).length,"个战队未满足参赛要求!为了不影响成绩,请设置战队成员"):""),h.a.createElement(P,{mode:T.mode,item:e,type:1,identifier:U,isTipsshow:Pt,setIslookModel:Ce,setTeam:Te,setMembers:mt})):h.a.createElement(P,{mode:T.mode,key:t,item:e,type:1,identifier:U,isTipsshow:Pt,setIslookModel:Ce,setTeam:Te,setMembers:mt})})),ft||fe&&fe.map((function(e,t){return 0===t?h.a.createElement("div",{key:t},h.a.createElement("div",{className:x.a.teamstitlesize,style:{paddingRight:"36px"}},h.a.createElement("span",{style:{flex:"1"}},"加入的战队 (",fe.length,")")),h.a.createElement(P,{mode:T.mode,key:t,item:e,type:2,identifier:U,isTipsshow:Pt,setIslookModel:Ce,setTeam:Te,setMembers:mt})):h.a.createElement(P,{mode:T.mode,key:t,item:e,type:2,identifier:U,isTipsshow:Pt,setIslookModel:Ce,setTeam:Te,setMembers:mt})})),((null==I||null===(E=I.userInfo)||void 0===E?void 0:E.admin)||(null==I||null===(y=I.userInfo)||void 0===y?void 0:y.business))&&te.map((function(e,t){return 0===t?h.a.createElement("div",{key:t},h.a.createElement("div",{className:x.a.teamstitlesize,style:{paddingRight:"36px"}},h.a.createElement("span",{style:{flex:"1"}},ft?"搜索结果":"全部战队"," (",H.count,")")),h.a.createElement(D,{mode:T.mode,item:e,setIslookModel:Ce,setTeam:Te})):h.a.createElement(D,{mode:T.mode,key:t,item:e,setIslookModel:Ce,setTeam:Te})})),(null!=I&&null!==(O=I.userInfo)&&void 0!==O&&O.admin||null!=I&&null!==(_=I.userInfo)&&void 0!==_&&_.business)&&H&&H.count>20?h.a.createElement("div",{style:{marginTop:"30px",marginBottom:"30px",textAlign:"center"}},h.a.createElement(l.a,{onChange:function(e){Oe(ye=e),zt(be)},showSizeChanger:!1,current:ye,pageSize:_e,total:H.count})):null)),h.a.createElement(Y,{isShowmodel:bt,isSignUphide:Et}),h.a.createElement(Z.a,null),h.a.createElement(n.a,{visible:It,footer:null,title:"报名成功",centered:!0,width:500,onCancel:function(){return At(!1)}},h.a.createElement("div",{style:{padding:"32px"}},h.a.createElement("p",{style:{fontSize:"16px",fontWeight:"500"}},"恭喜您已成功报名《",null==T?void 0:T.name,"-",null==T?void 0:T.sub_title,"》"),h.a.createElement("span",null,"温馨提示:"),h.a.createElement("br",null),[46,49,50,52].includes(parseInt(null==T?void 0:T.id))&&h.a.createElement("span",null," 1、赛题已发布,点击下方“前往查看”按钮查看赛题。"),[45,51].includes(parseInt(null==T?void 0:T.id))&&h.a.createElement("span",null," 1、扫码加入赛道群,咨询赛道详细内容,更有行业专家全程支持"),h.a.createElement("br",null),[46,49,50,52].includes(parseInt(null==T?void 0:T.id))&&h.a.createElement("span",null," 2、扫码加入赛道群,咨询赛道详细内容,更有行业专家全程支持"),h.a.createElement("br",null),h.a.createElement("div",{style:{marginTop:"30px",textAlign:"center"}},[50,51].includes(parseInt(null==T?void 0:T.id))&&h.a.createElement("img",{src:ae.a,style:{width:"220px",height:"270px"}}),[46,45].includes(parseInt(null==T?void 0:T.id))&&h.a.createElement("img",{src:re.a,style:{width:"220px",height:"270px"}}),[49].includes(parseInt(null==T?void 0:T.id))&&h.a.createElement("img",{src:le.a,style:{width:"220px",height:"270px"}}),[52].includes(parseInt(null==T?void 0:T.id))&&h.a.createElement("img",{src:ee.a,style:{width:"220px",height:"270px"}}),h.a.createElement("p",{style:{marginTop:"30px"}},[46,49,50,52].includes(parseInt(null==T?void 0:T.id))&&h.a.createElement(r.a,{style:{width:"116px",height:"40px"},type:"primary",onClick:function(){Object(oe.Q)("/competitions/index/".concat(null==T?void 0:T.identifier,"?active=赛题发布"))}},"前往查看"),[45,51].includes(parseInt(null==T?void 0:T.id))&&h.a.createElement(r.a,{style:{width:"116px",height:"40px"},type:"primary",onClick:function(){At(!1)}},"知道了"))))))}))},LdHM:
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/index.js + 6 modules ***!
|
|
|
\********************************************************/
|
|
|
/*! exports provided: Option, OptGroup, default */
|
|
|
/*! exports used: OptGroup, Option, default */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/typeof.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/TransBtn.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/generate.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/utils/commonUtil.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/utils/valueUtil.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Children/toArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/KeyCode.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/hooks/useMemo.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/pickAttrs.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-virtual-list/es/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,a){"use strict";a.d(t,"b",(function(){return y})),a.d(t,"a",(function(){return j}));var n=a("1OyB"),r=a("vuIU"),i=a("Ji7U"),l=a("LK+K"),o=a("q1tI"),c=a("rePB"),s=a("Ff2n"),u=a("ODXe"),m=a("4IlW"),d=a("bX4T"),p=a("YrtM"),f=a("TSYQ"),h=a.n(f),v=a("+nKL"),g=a("8OUc"),b=o.forwardRef((function(e,t){var a=e.prefixCls,n=e.id,r=e.flattenOptions,i=e.childrenAsData,l=e.values,f=e.searchValue,b=e.multiple,E=e.defaultActiveFirstOption,x=e.height,y=e.itemHeight,O=e.notFoundContent,j=e.open,S=e.menuItemSelectedIcon,_=e.virtual,N=e.onSelect,k=e.onToggleOpen,w=e.onActiveValue,C=e.onScroll,I=e.onMouseEnter,A="".concat(a,"-item"),z=Object(p.a)((function(){return r}),[j,r],(function(e,t){return t[0]&&e[1]!==t[1]})),T=o.useRef(null),P=function(e){e.preventDefault()},D=function(e){T.current&&T.current.scrollTo({index:e})},R=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=z.length,n=0;n<a;n+=1){var r=(e+n*t+a)%a,i=z[r],l=i.group,o=i.data;if(!l&&!o.disabled)return r}return-1},V=o.useState((function(){return R(0)})),M=Object(u.a)(V,2),K=M[0],L=M[1],F=function(e){L(e);var t=z[e];t?w(t.data.value,e):w(null,-1)};o.useEffect((function(){F(!1!==E?R(0):-1)}),[z.length,f]),o.useEffect((function(){var e=setTimeout((function(){if(!b&&j&&1===l.size){var e=Array.from(l)[0],t=z.findIndex((function(t){return t.data.value===e}));F(t),D(t)}}));return function(){return clearTimeout(e)}}),[j]);var J=function(e){void 0!==e&&N(e,{selected:!l.has(e)}),b||k(!1)};if(o.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which;switch(t){case m.a.UP:case m.a.DOWN:var a=0;if(t===m.a.UP?a=-1:t===m.a.DOWN&&(a=1),0!==a){var n=R(K+a,a);D(n),F(n)}break;case m.a.ENTER:var r=z[K];r&&!r.data.disabled?J(r.data.value):J(void 0),j&&e.preventDefault();break;case m.a.ESC:k(!1)}},onKeyUp:function(){},scrollTo:function(e){D(e)}}})),0===z.length)return o.createElement("div",{role:"listbox",id:"".concat(n,"_list"),className:"".concat(A,"-empty"),onMouseDown:P},O);function B(e){var t=z[e];if(!t)return null;var a=t.data||{},r=a.value,c=a.label,s=a.children,u=Object(d.a)(a,!0),m=i?s:c;return t?o.createElement("div",Object.assign({"aria-label":"string"==typeof m?m:null},u,{key:e,role:"option",id:"".concat(n,"_list_").concat(e),"aria-selected":l.has(r)}),r):null}return o.createElement(o.Fragment,null,o.createElement("div",{role:"listbox",id:"".concat(n,"_list"),style:{height:0,width:0,overflow:"hidden"}},B(K-1),B(K),B(K+1)),o.createElement(v.a,{itemKey:"key",ref:T,data:z,height:x,itemHeight:y,fullHeight:!1,onMouseDown:P,onScroll:C,virtual:_,onMouseEnter:I},(function(e,t){var a,n=e.group,r=e.groupOption,u=e.data,m=u.label,d=u.key;if(n)return o.createElement("div",{className:h()(A,"".concat(A,"-group"))},void 0!==m?m:d);var p=u.disabled,f=u.value,v=u.title,b=u.children,E=u.style,x=u.className,y=Object(s.a)(u,["disabled","value","title","children","style","className"]),O=l.has(f),j="".concat(A,"-option"),_=h()(A,j,x,(a={},Object(c.a)(a,"".concat(j,"-grouped"),r),Object(c.a)(a,"".concat(j,"-active"),K===t&&!p),Object(c.a)(a,"".concat(j,"-disabled"),p),Object(c.a)(a,"".concat(j,"-selected"),O),a)),N=i?b:m,k=!S||"function"==typeof S||O;return o.createElement("div",Object.assign({},y,{"aria-selected":O,className:_,title:v,onMouseMove:function(){K===t||p||F(t)},onClick:function(){p||J(f)},style:E}),o.createElement("div",{className:"".concat(j,"-content")},N||f),o.isValidElement(S)||O,k&&o.createElement(g.a,{className:"".concat(A,"-option-state"),customizeIcon:S,customizeIconProps:{isSelected:O}},O?"✓":null))})))}));b.displayName="OptionList";var E=b,x=function(){return null};x.isSelectOption=!0;var y=x,O=function(){return null};O.isSelectOptGroup=!0;var j=O,S=a("VTBJ"),_=a("Zm9Q");function N(e){var t=e.key,a=e.props,n=a.children,r=a.value,i=Object(s.a)(a,["children","value"]);return Object(S.a)({key:t,value:void 0!==r?r:t,children:n},i)}function k(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object(_.a)(e).map((function(e,a){if(!o.isValidElement(e)||!e.type)return null;var n=e.type.isSelectOptGroup,r=e.key,i=e.props,l=i.children,c=Object(s.a)(i,["children"]);return t||!n?N(e):Object(S.a)(Object(S.a)({key:"__RC_SELECT_GRP__".concat(null===r?a:r,"__"),label:r},c),{},{options:k(l)})})).filter((function(e){return e}))}var w=a("2Qr1"),C=a("qNPg"),I=a("U8pU"),A=a("Kwbf"),z=a("WKfj");var T=function(e){var t=e.mode,a=e.options,n=e.children,r=e.backfill,i=e.allowClear,l=e.placeholder,c=e.getInputElement,s=e.showSearch,u=e.onSearch,m=e.defaultOpen,d=e.autoFocus,p=e.labelInValue,f=e.value,h=e.inputValue,v=e.optionLabelProp,g="multiple"===t||"tags"===t,b=void 0!==s?s:g||"combobox"===t,E=a||k(n);if(Object(A.a)("tags"!==t||E.every((function(e){return!e.disabled})),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),"tags"===t||"combobox"===t){var x=E.some((function(e){return e.options?e.options.some((function(e){return"number"==typeof("value"in e?e.value:e.key)})):"number"==typeof("value"in e?e.value:e.key)}));Object(A.a)(!x,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(A.a)("combobox"!==t||!v,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(A.a)("combobox"===t||!r,"`backfill` only works with `combobox` mode."),Object(A.a)("combobox"===t||!c,"`getInputElement` only work with `combobox` mode."),Object(A.b)("combobox"!==t||!c||!i||!l,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),u&&!b&&"combobox"!==t&&"tags"!==t&&Object(A.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(A.b)(!m||d,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),null!=f){var y=Object(z.d)(f);Object(A.a)(!p||y.every((function(e){return"object"===Object(I.a)(e)&&("key"in e||"value"in e)})),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(A.a)(!g||Array.isArray(f),"`value` should be array when `mode` is `multiple` or `tags`")}if(n){var O=null;Object(_.a)(n).some((function(e){if(!o.isValidElement(e)||!e.type)return!1;var t=e.type;return!t.isSelectOption&&(t.isSelectOptGroup?!Object(_.a)(e.props.children).every((function(t){return!(o.isValidElement(t)&&e.type&&!t.type.isSelectOption)||(O=t.type,!1)})):(O=t,!0))})),O&&Object(A.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(O.displayName||O.name||O,"`.")),Object(A.a)(void 0===h,"`inputValue` is deprecated, please use `searchValue` instead.")}},P=Object(C.a)({prefixCls:"rc-select",components:{optionList:E},convertChildrenToData:k,flattenOptions:w.d,getLabeledValue:w.e,filterOptions:w.b,isValueDisabled:w.g,findValueOption:w.c,warningProps:T,fillOptionsWithMissingValue:w.a}),D=function(e){Object(i.a)(a,e);var t=Object(l.a)(a);function a(){var e;return Object(n.a)(this,a),(e=t.apply(this,arguments)).selectRef=o.createRef(),e.focus=function(){e.selectRef.current.focus()},e.blur=function(){e.selectRef.current.blur()},e}return Object(r.a)(a,[{key:"render",value:function(){return o.createElement(P,Object.assign({ref:this.selectRef},this.props))}}]),a}(o.Component);D.Option=y,D.OptGroup=j;var R=D;t.c=R},UfjD:
|
|
|
/*!*******************************************************************!*\
|
|
|
!*** ./src/pages/Competitions/Entered/Enteredmodel/JoinModel.tsx ***!
|
|
|
\*******************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,a){"use strict";a(/*! antd/es/modal/style */"2qtc");var n=a(/*! antd/es/modal */"kLXV"),r=(a(/*! antd/es/input/style */"5NDa"),a(/*! antd/es/input */"5rEg")),i=(a(/*! antd/es/message/style */"miYZ"),a(/*! antd/es/message */"tsqr")),l=a(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray */"tJVT"),o=a(/*! react */"q1tI"),c=a.n(o),s=a(/*! @ant-design/icons */"4i/N");t.a=function(e){var t=e.isjoin,a=e.setJoin,u=e.JoinTeams,m=Object(o.useState)(""),d=Object(l.a)(m,2),p=d[0],f=d[1];return c.a.createElement(n.a,{centered:!0,title:c.a.createElement("div",{style:{alignItems:"center",display:"flex"}},c.a.createElement("div",{style:{textAlign:"left",flex:"1"}},"加入战队"),c.a.createElement(s.a,{onClick:function(){return a(!1)},style:{cursor:"porint"}})),visible:t,closable:!1,destroyOnClose:!0,onOk:function(){p?u(p):i.b.info("邀请码不能为空")},onCancel:function(){return a(!1)}},c.a.createElement("div",null,c.a.createElement("p",{style:{marginTop:"15px",marginLeft:"15px",display:"flex",alignItems:"center"}},c.a.createElement("span",{style:{flex:"none"}},"邀请码:")," ",c.a.createElement(r.a,{placeholder:"请输入邀请码",value:p,maxLength:60,addonAfter:String(p&&p.length||0)+"/60",onChange:function(e){return f(e.target.value)}}))))}},Vh0m:
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./src/pages/Competitions/Entered/dmpz.png ***!
|
|
|
\*************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){e.exports=a.p+"static/dmpz.f66eda67.png"},Y1PL:
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/rc-textarea/es/index.js + 7 modules ***!
|
|
|
\**********************************************************/
|
|
|
/*! exports provided: ResizableTextArea, default */
|
|
|
/*! all exports used */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/extends.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Children/toArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/findDOMNode.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/omit.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/ref.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js (<- Module uses injected variables (global)) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/shallowequal/index.js (<- Module is not an ECMAScript module) */function(e,t,a){"use strict";a.r(t),a.d(t,"ResizableTextArea",(function(){return T}));var n=a("wx14"),r=a("1OyB"),i=a("vuIU"),l=a("Ji7U"),o=a("LK+K"),c=a("q1tI"),s=a("VTBJ"),u=a("rePB"),m=a("Zm9Q"),d=(a("Kwbf"),a("c+Xe")),p=a("m+aA"),f=a("bdgK"),h=new Map;var v=new f.default((function(e){e.forEach((function(e){var t,a=e.target;null===(t=h.get(a))||void 0===t||t.forEach((function(e){return e(a)}))}))}));var g=function(e){Object(l.a)(a,e);var t=Object(o.a)(a);function a(){return Object(r.a)(this,a),t.apply(this,arguments)}return Object(i.a)(a,[{key:"render",value:function(){return this.props.children}}]),a}(c.Component),b=c.createContext(null);function E(e){var t=e.children,a=e.disabled,n=c.useRef(null),r=c.useRef(null),i=c.useContext(b),l=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),o=c.isValidElement(t)&&Object(d.c)(t),u=o?t.ref:null,m=c.useMemo((function(){return Object(d.a)(u,n)}),[u,n]),f=c.useRef(e);f.current=e;var E=c.useCallback((function(e){var t=f.current,a=t.onResize,n=t.data,r=e.getBoundingClientRect(),o=r.width,c=r.height,u=e.offsetWidth,m=e.offsetHeight,d=Math.floor(o),p=Math.floor(c);if(l.current.width!==d||l.current.height!==p||l.current.offsetWidth!==u||l.current.offsetHeight!==m){var h={width:d,height:p,offsetWidth:u,offsetHeight:m};l.current=h;var v=u===Math.round(o)?o:u,g=m===Math.round(c)?c:m,b=Object(s.a)(Object(s.a)({},h),{},{offsetWidth:v,offsetHeight:g});null==i||i(b,e,n),a&&Promise.resolve().then((function(){a(b,e)}))}}),[]);return c.useEffect((function(){var e,t,i=Object(p.a)(n.current)||Object(p.a)(r.current);return i&&!a&&(e=i,t=E,h.has(e)||(h.set(e,new Set),v.observe(e)),h.get(e).add(t)),function(){return function(e,t){h.has(e)&&(h.get(e).delete(t),h.get(e).size||(v.unobserve(e),h.delete(e)))}(i,E)}}),[n.current,a]),c.createElement(g,{ref:r},o?c.cloneElement(t,{ref:m}):t)}function x(e){var t=e.children;return Object(m.a)(t).map((function(t,a){var r=(null==t?void 0:t.key)||"".concat("rc-observer-key","-").concat(a);return c.createElement(E,Object(n.a)({},e,{key:r}),t)}))}x.Collection=function(e){var t=e.children,a=e.onBatchResize,n=c.useRef(0),r=c.useRef([]),i=c.useContext(b),l=c.useCallback((function(e,t,l){n.current+=1;var o=n.current;r.current.push({size:e,element:t,data:l}),Promise.resolve().then((function(){o===n.current&&(null==a||a(r.current),r.current=[])})),null==i||i(e,t,l)}),[a,i]);return c.createElement(b.Provider,{value:l},t)};var y,O=x,j=a("bT9E"),S=a("TSYQ"),_=a.n(S),N="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",k=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],w={};function C(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&w[a])return w[a];var n=window.getComputedStyle(e),r=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),l=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),o=k.map((function(e){return"".concat(e,":").concat(n.getPropertyValue(e))})).join(";"),c={sizingStyle:o,paddingSize:i,borderSize:l,boxSizing:r};return t&&a&&(w[a]=c),c}var I,A=a("Gytx"),z=a.n(A);!function(e){e[e.NONE=0]="NONE",e[e.RESIZING=1]="RESIZING",e[e.RESIZED=2]="RESIZED"}(I||(I={}));var T=function(e){Object(l.a)(a,e);var t=Object(o.a)(a);function a(e){var i;return Object(r.a)(this,a),(i=t.call(this,e)).nextFrameActionId=void 0,i.resizeFrameId=void 0,i.textArea=void 0,i.saveTextArea=function(e){i.textArea=e},i.handleResize=function(e){var t=i.state.resizeStatus,a=i.props,n=a.autoSize,r=a.onResize;t===I.NONE&&("function"==typeof r&&r(e),n&&i.resizeOnNextFrame())},i.resizeOnNextFrame=function(){cancelAnimationFrame(i.nextFrameActionId),i.nextFrameActionId=requestAnimationFrame(i.resizeTextarea)},i.resizeTextarea=function(){var e=i.props.autoSize;if(e&&i.textArea){var t=e.minRows,a=e.maxRows,n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;y||((y=document.createElement("textarea")).setAttribute("tab-index","-1"),y.setAttribute("aria-hidden","true"),document.body.appendChild(y)),e.getAttribute("wrap")?y.setAttribute("wrap",e.getAttribute("wrap")):y.removeAttribute("wrap");var r=C(e,t),i=r.paddingSize,l=r.borderSize,o=r.boxSizing,c=r.sizingStyle;y.setAttribute("style","".concat(c,";").concat(N)),y.value=e.value||e.placeholder||"";var s,u=Number.MIN_SAFE_INTEGER,m=Number.MAX_SAFE_INTEGER,d=y.scrollHeight;if("border-box"===o?d+=l:"content-box"===o&&(d-=i),null!==a||null!==n){y.value=" ";var p=y.scrollHeight-i;null!==a&&(u=p*a,"border-box"===o&&(u=u+i+l),d=Math.max(u,d)),null!==n&&(m=p*n,"border-box"===o&&(m=m+i+l),s=d>m?"":"hidden",d=Math.min(m,d))}return{height:d,minHeight:u,maxHeight:m,overflowY:s,resize:"none"}}(i.textArea,!1,t,a);i.setState({textareaStyles:n,resizeStatus:I.RESIZING},(function(){cancelAnimationFrame(i.resizeFrameId),i.resizeFrameId=requestAnimationFrame((function(){i.setState({resizeStatus:I.RESIZED},(function(){i.resizeFrameId=requestAnimationFrame((function(){i.setState({resizeStatus:I.NONE}),i.fixFirefoxAutoScroll()}))}))}))}))}},i.renderTextArea=function(){var e=i.props,t=e.prefixCls,a=void 0===t?"rc-textarea":t,r=e.autoSize,l=e.onResize,o=e.className,m=e.disabled,d=i.state,p=d.textareaStyles,f=d.resizeStatus,h=Object(j.a)(i.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),v=_()(a,o,Object(u.a)({},"".concat(a,"-disabled"),m));"value"in h&&(h.value=h.value||"");var g=Object(s.a)(Object(s.a)(Object(s.a)({},i.props.style),p),f===I.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return c.createElement(O,{onResize:i.handleResize,disabled:!(r||l)},c.createElement("textarea",Object(n.a)({},h,{className:v,style:g,ref:i.saveTextArea})))},i.state={textareaStyles:{},resizeStatus:I.NONE},i}return Object(i.a)(a,[{key:"componentDidUpdate",value:function(e){e.value===this.props.value&&z()(e.autoSize,this.props.autoSize)||this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var e=this.textArea.selectionStart,t=this.textArea.selectionEnd;this.textArea.setSelectionRange(e,t)}}catch(e){}}},{key:"render",value:function(){return this.renderTextArea()}}]),a}(c.Component),P=function(e){Object(l.a)(a,e);var t=Object(o.a)(a);function a(e){var n;Object(r.a)(this,a),(n=t.call(this,e)).resizableTextArea=void 0,n.focus=function(){n.resizableTextArea.textArea.focus()},n.saveTextArea=function(e){n.resizableTextArea=e},n.handleChange=function(e){var t=n.props.onChange;n.setValue(e.target.value,(function(){n.resizableTextArea.resizeTextarea()})),t&&t(e)},n.handleKeyDown=function(e){var t=n.props,a=t.onPressEnter,r=t.onKeyDown;13===e.keyCode&&a&&a(e),r&&r(e)};var i=void 0===e.value||null===e.value?e.defaultValue:e.value;return n.state={value:i},n}return Object(i.a)(a,[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return c.createElement(T,Object(n.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),a}(c.Component);t.default=P},bT9E:
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/omit.js ***!
|
|
|
\*****************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a(/*! @babel/runtime/helpers/esm/objectSpread2 */"VTBJ");function r(e,t){var a=Object(n.a)({},e);return Array.isArray(t)&&t.forEach((function(e){delete a[e]})),a}},fpBZ:
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./src/pages/Competitions/Entered/xmcx.png ***!
|
|
|
\*************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){e.exports=a.p+"static/xmcx.4d2f8a61.png"},hxTS:
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./src/pages/Competitions/Entered/sjjx.png ***!
|
|
|
\*************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){e.exports=a.p+"static/sjjx.7a8e0b40.png"},ipgu:
|
|
|
/*!***********************************************************!*\
|
|
|
!*** ./src/pages/Competitions/Entered/index.less?modules ***!
|
|
|
\***********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){e.exports={flex_box_center:"flex_box_center___2r6dk",flex_space_between:"flex_space_between___2h9zy",flex_box_vertical_center:"flex_box_vertical_center___2OhEf",flex_box_center_end:"flex_box_center_end___38UH6",flex_box_column:"flex_box_column___sIWsv",backgroundimg:"backgroundimg___1O-pN",titlesize:"titlesize___1djF4",countsize:"countsize___1_hGV",addteams:"addteams___2JAL0",createteams:"createteams___1_asj",buttoncoent:"buttoncoent___11zMD",nullnodata:"nullnodata___3kGxG",searchhead:"searchhead___fTCjR",selectleft:"selectleft___1K6QG",packinputs:"packinputs___23jVT",ManagedTeams:"ManagedTeams___3EhNw",spanradius:"spanradius___3oPq5",width18:"width18___3EJtL",width15:"width15___3oUqm",nametitle:"nametitle___3lYJL",borderjingao:"borderjingao___2gLqX",updatecount:"updatecount___326A6",deleteitem:"deleteitem___2Cjb5",width20:"width20___2gQvl",imageradius:"imageradius___3eNIt",loaderimg:"loaderimg___362cf",teamstitlesize:"teamstitlesize___3iOmt",setmembers:"setmembers___3XDJA",teammember:"teammember___1sFe4",flex1:"flex1___I9fEY",flex2:"flex2___3luPi",teammembers:"teammembers___3u0fA",teacherdown:"teacherdown___2Zb6v",teachname:"teachname___DKH10",task_hide:"task_hide___1nza8",code:"code___1CX3A"}},jWHs:
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./src/pages/Competitions/Entered/Ncode.jpg ***!
|
|
|
\**************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){e.exports=a.p+"static/Ncode.3dc22c53.jpg"},qHvr:
|
|
|
/*!******************************************************************!*\
|
|
|
!*** ./src/pages/Competitions/Entered/Enteredmodel/Addteams.tsx ***!
|
|
|
\******************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,a){"use strict";a(/*! antd/es/modal/style */"2qtc");var n=a(/*! antd/es/modal */"kLXV"),r=(a(/*! antd/es/input/style */"5NDa"),a(/*! antd/es/input */"5rEg")),i=(a(/*! antd/es/message/style */"miYZ"),a(/*! antd/es/message */"tsqr")),l=a(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray */"tJVT"),o=a(/*! react */"q1tI"),c=a.n(o),s=a(/*! @ant-design/icons */"4i/N");t.a=function(e){var t=e.isAddmodle,a=e.setIsAdd,u=e.createTeam,m=Object(o.useState)(""),d=Object(l.a)(m,2),p=d[0],f=d[1];return c.a.createElement(n.a,{centered:!0,title:c.a.createElement("div",{style:{alignItems:"center",display:"flex"}},c.a.createElement("div",{style:{textAlign:"left",flex:"1"}},"创建战队"),c.a.createElement(s.a,{onClick:function(){return a(!1)},style:{cursor:"porint"}})),visible:t,closable:!1,destroyOnClose:!0,onOk:function(){p?u(p):i.b.info("战队名不能为空")},onCancel:function(){return a(!1)}},c.a.createElement("div",null,c.a.createElement("span",{style:{fontSize:"14px",color:"#F73737"}},"*"),"队名:",c.a.createElement("p",{style:{marginTop:"15px",marginLeft:"15px"}},c.a.createElement(r.a,{placeholder:"请输入队名",value:p,maxLength:60,addonAfter:String(p&&p.length||0)+"/60",onChange:function(e){return f(e.target.value)}}))))}},zrhs:
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./src/components/AuthenticationModel/index.tsx ***!
|
|
|
\******************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,a){"use strict";a(/*! antd/es/modal/style */"2qtc");var n=a(/*! antd/es/modal */"kLXV"),r=a(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties */"PpiC"),i=a(/*! react */"q1tI"),l=a.n(i),o=a(/*! umi */"9kvl");t.a=Object(o.a)((function(e){var t=e.shixunsDetail,a=e.loading;return{shixunsDetail:t,globalSetting:e.globalSetting,loading:a.models.index}}))((function(e){var t=e.shixunsDetail,a=(e.globalSetting,e.loading,e.dispatch);Object(r.a)(e,["shixunsDetail","globalSetting","loading","dispatch"]);return l.a.createElement(n.a,{centered:!0,keyboard:!1,closable:!1,zIndex:6666,title:"提示",visible:"Banner-Auth"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:function(){a({type:"shixunsDetail/setActionTabs",payload:{}}),window.location.href="/account/certification"},onCancel:function(){a({type:"shixunsDetail/setActionTabs",payload:{}})}},l.a.createElement("p",{className:"tc font16"},"当前竞赛需要实名认证,请先完成实名认证后再报名参赛",l.a.createElement("br",null),"请问是否前往进行认证?"))}))}}]); |