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

1 line
62 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[118],{"0SVz":function(e,t){e.exports="data:image/png;base64,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"},"61Iv":function(e,t,n){e.exports=n.p+"static/xmtz.e88619e3.png"},Fvcw:function(e,t,n){"use strict";var a=n("VTBJ"),r=n("q1tI"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},l=i,o=n("6VBw"),c=function(e,t){return r["createElement"](o["a"],Object(a["a"])(Object(a["a"])({},e),{},{ref:t,icon:l}))};c.displayName="FormOutlined";t["a"]=r["forwardRef"](c)},Hm3h:function(e,t,n){"use strict";n.r(t);n("2qtc");var a=n("kLXV"),r=(n("+L6B"),n("2/Rp")),i=(n("cWXX"),n("/ezw")),l=(n("DjyN"),n("NUBc")),o=(n("sPJy"),n("bE4q")),c=(n("miYZ"),n("tsqr")),s=n("9og8"),u=n("tJVT"),m=n("PpiC"),d=n("q1tI"),p=n.n(d),f=n("Ty5D"),h=n("55Ip"),v=n("9kvl"),g=n("ipgu"),y=n.n(g),E=n("jWHs"),b=n.n(E);function x(e){var t=e.setIsAddmodel,n=e.setJoin,a=e.HeaderDetail,r=e.user,i=e.dispatch;return p.a.createElement("div",{className:y.a.backgroundimg},p.a.createElement("p",{className:y.a.countsize},"\u6b22\u8fce\u62a5\u540d\u53c2\u52a0\u672c\u9879\u8d5b\u4e8b\uff01\u5934\u6b4c\u5168\u9762\u652f\u6301\u5404\u7c7b\u7ade\u8d5b\u7684\u5728\u7ebf\u8fd0\u884c\u7ba1\u7406\uff0c"),p.a.createElement("p",{className:y.a.countsize},"\u5927\u6570\u636e\u3001\u4eba\u5de5\u667a\u80fd\u3001\u5404\u7c7b\u82af\u7247\u67b6\u6784\u7b49\u7ade\u8d5b\u4efb\u52a1\u5747\u53ef\u5728\u7ebf\u8fd0\u884c\u3001\u90e8\u7f72\u548c\u8bc4\u6d4b\u3002"),p.a.createElement("div",{className:y.a.buttoncoent},p.a.createElement("span",{onClick:function(){var e;!(null===a||void 0===a?void 0:a.is_authentication)||(null===r||void 0===r||null===(e=r.userInfo)||void 0===e?void 0:e.authentication)?n(!0):i({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}})},className:y.a.addteams},"\u52a0\u5165\u6218\u961f"),p.a.createElement("span",{onClick:function(){var e;!(null===a||void 0===a?void 0:a.is_authentication)||(null===r||void 0===r||null===(e=r.userInfo)||void 0===e?void 0:e.authentication)?t(!0):i({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}})},className:y.a.createteams},"\u521b\u5efa\u6218\u961f")),p.a.createElement("div",{className:y.a.code},p.a.createElement("p",null,"\u4f5c\u54c1\u6307\u5bfc\u5f20\u8001\u5e08\u5fae\u4fe1"),p.a.createElement("div",null,p.a.createElement("img",{width:90,height:90,src:b.a}))))}var _=x,w=(n("5NDa"),n("5rEg")),O=n("4i/N");function j(e){var t=e.isAddmodle,n=e.setIsAdd,r=e.createTeam,i=Object(d["useState"])(""),l=Object(u["a"])(i,2),o=l[0],s=l[1];return p.a.createElement(a["a"],{centered:!0,title:p.a.createElement("div",{style:{alignItems:"center",display:"flex"}},p.a.createElement("div",{style:{textAlign:"left",flex:"1"}},"\u521b\u5efa\u6218\u961f"),p.a.createElement(O["a"],{onClick:function(){return n(!1)},style:{cursor:"porint"}})),visible:t,closable:!1,destroyOnClose:!0,onOk:function(){o?r(o):c["b"].info("\u6218\u961f\u540d\u4e0d\u80fd\u4e3a\u7a7a")},onCancel:function(){return n(!1)}},p.a.createElement("div",null,p.a.createElement("span",{style:{fontSize:"14px",color:"#F73737"}},"*"),"\u961f\u540d\uff1a",p.a.createElement("p",{style:{marginTop:"15px",marginLeft:"15px"}},p.a.createElement(w["a"],{placeholder:"\u8bf7\u8f93\u5165\u961f\u540d",value:o,maxLength:60,addonAfter:String(o&&o.length||0)+"/60",onChange:function(e){return s(e.target.value)}}))))}var k=j;function S(e){var t=e.setIsAddmodel,n=e.setJoin,a=e.HeaderDetail,r=e.user,i=e.dispatch;return p.a.createElement("div",{className:y.a.nullnodata},p.a.createElement("img",{src:"https://test-newweb.educoder.net/images/educoder/competitions/Noentry.jpg"}),p.a.createElement("p",{style:{fontSize:"16px",color:"#333333"},className:"bootomtext"},"\u60a8\u5f53\u524d\u672a\u62a5\u540d\uff0c\u8bf7\u5148",p.a.createElement("span",{onClick:function(){var e;!(null===a||void 0===a?void 0:a.is_authentication)||(null===r||void 0===r||null===(e=r.userInfo)||void 0===e?void 0:e.authentication)?n(!0):i({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}})},style:{color:"#1890FF",cursor:"pointer"}},"\u52a0\u5165\u6218\u961f"),"\u6216",p.a.createElement("span",{onClick:function(){var e;!(null===a||void 0===a?void 0:a.is_authentication)||(null===r||void 0===r||null===(e=r.userInfo)||void 0===e?void 0:e.authentication)?t(!0):i({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}})},style:{color:"#1890FF",cursor:"pointer"}},"\u521b\u5efa\u6218\u961f"),"\uff0c"),p.a.createElement("p",{style:{fontSize:"16px",color:"#333333"}},"\u52a0\u5165/\u521b\u5efa\u6218\u961f\u540e\u5c06\u81ea\u52a8\u62a5\u540d"))}var N=S,A=w["a"].Search;function L(e){var t=e.Count,n=e.Members_count,a=e.selectlist,r=e.setIsselect,i=Object(d["useState"])(""),l=Object(u["a"])(i,2),o=l[0],c=l[1];return p.a.createElement("div",{className:y.a.searchhead},p.a.createElement("p",{className:y.a.selectleft},"\u6218\u961f\u603b\u6570\uff1a",p.a.createElement("span",{style:{color:"#459BE5",fontSize:"16px"}},t),p.a.createElement("span",{style:{marginLeft:"5px",marginRight:"15px"}},"\u4e2a")," \u53c2\u8d5b\u603b\u4eba\u6570\uff1a",p.a.createElement("span",{style:{color:"#459BE5"}},n),p.a.createElement("span",{style:{marginLeft:"5px"}},"\u4eba")),p.a.createElement(A,{className:y.a.packinputs,value:o,placeholder:"\u8bf7\u8f93\u5165\u6218\u961f\u540d\u79f0\u641c\u7d22",allowClear:!0,onChange:function(e){c(e.target.value)},onSearch:function(e){r(!0),a(o)}}))}var I=L,T=(n("qVdP"),n("jsC+")),C=(n("5Dmo"),n("3S7+")),D=(n("lUTK"),n("BvKs")),z=n("m3rI"),F=n("Fvcw");function M(e){var t=e.item,n=e.identifier,a=e.isTipsshow,r=e.type,i=e.setIslookModel,l=e.setTeam,o=e.setMembers,s=e.mode;function u(){var e="copy_invite_code".concat(t.id),n=document.getElementById(e);n.select(),document.execCommand("Copy"),c["b"].success("\u590d\u5236\u6210\u529f")}function m(){l(t),1===r?o(!0):i(!0)}var d=function(){return p.a.createElement(D["a"],null,p.a.createElement(D["a"].Item,{onClick:function(){return a(r,t.id)}},1===r?"\u5220\u9664\u6218\u961f":"\u9000\u51fa\u6218\u961f"))};return console.log(s),p.a.createElement("div",{className:y.a.ManagedTeams},p.a.createElement("div",{className:y.a.width18},t&&t.team_log?p.a.createElement("img",{className:y.a.imageradius,src:z["a"].IMG_SERVER+"/".concat(t.team_log)}):p.a.createElement("span",{className:y.a.spanradius},t.name.length>2?t.name.substring(0,2):t.name),p.a.createElement("span",{className:y.a.nametitle,title:t.name},t.name?t.name.length>6?t.name.substring(0,6)+"...":t.name:"--"),1===r?p.a.createElement(h["Link"],{to:"/competitions/index/".concat(n,"/UpdateTeanname/").concat(t.id)},p.a.createElement(C["a"],{overlayStyle:{zIndex:1},defaultVisible:!0,placement:"top",visible:t&&t.auto_create,autoAdjustOverflow:!1,title:"\u8bf7\u4fee\u6539\u6218\u961f\u540d\u79f0"},p.a.createElement(F["a"],{style:{marginLeft:"5px"}}))):null),p.a.createElement("div",{className:y.a.width15,style:{justifyContent:"center"}},p.a.createElement("img",{className:y.a.loaderimg,src:z["a"].IMG_SERVER+"/images/"+"".concat(t.creator.image_url)}),p.a.createElement("span",{style:{marginLeft:"13px"},title:t.creator.name},t.creator.name.length>3?t.creator.name.substring(0,3)+"...":t.creator.name)),p.a.createElement("div",{className:y.a.width15,style:{width:"10%"}},p.a.createElement("span",{title:t.school_name},t.school_name?t.school_name.length>6?t.school_name.substring(0,6)+"...":t.school_name:"--")),p.a.createElement("div",{className:y.a.width18,style:{width:"20%"}},"\u521b\u5efa\u65f6\u95f4\uff1a",p.a.createElement("span",{title:t.created_at},t.created_at||"--")),p.a.createElement("div",{className:y.a.width15},"\u9080\u8bf7\u7801\uff1a",p.a.createElement("span",{title:t.invite_code},t.invite_code||"--"),p.a.createElement("i",{className:"iconfont icon-fuzhi font-14",onClick:u,style:{display:"inline-block",color:"#1890FF",marginLeft:"5px",marginRight:"10px",cursor:"pointer"}}),p.a.createElement("input",{id:"copy_invite_code"+t.id,value:t.invite_code||"--",onChange:function(e){},style:{opacity:"0",position:"absolute",bottom:"15px"}})),p.a.createElement("div",{className:y.a.width15,style:{justifyContent:"flex-end"}},p.a.createElement("span",null,"\u6218\u961f\u6210\u5458\uff1a",p.a.createElement("span",null,t.team_members?t.team_members.length:"--")),p.a.createElement("span",{onClick:function(){return m()},style:{color:"#1890FF",marginLeft:"10px",cursor:"pointer"}},1===r?"\u8bbe\u7f6e":"\u67e5\u770b"),t&&t.active||2===r?p.a.createElement("span",{className:y.a.borderjingao,style:{visibility:"hidden"}}):p.a.createElement(C["a"],{placement:"top",title:"\u8bf7\u8bbe\u7f6e\u6218\u961f\u6210\u5458"},p.a.createElement("span",{className:y.a.borderjingao},"!"))),3===s&&p.a.createElement(h["Link"],{to:"/competitions/index/".concat(n,"/teamDetail/").concat(t.id),style:{color:"#1890FF",fontSize:"14px",marginLeft:"30px",cursor:"pointer",width:"6%"}},"\u6218\u961f\u8be6\u60c5"),p.a.createElement(T["a"],{overlay:d},p.a.createElement("i",{style:{marginLeft:"30px"},className:"iconfont icon-sandian"})))}var G=M;function B(e){var t=e.item,n=e.setIslookModel,a=e.setTeam,r=e.mode,i=Object(f["m"])(),l=i.identifier;return p.a.createElement("div",{className:y.a.ManagedTeams},p.a.createElement("div",{className:y.a.width20},t&&t.team_log?p.a.createElement("img",{className:y.a.imageradius,src:z["a"].IMG_SERVER+"/".concat(t.team_log)}):p.a.createElement("span",{className:y.a.spanradius},t.name.length>2?t.name.substring(0,2):t.name),p.a.createElement("span",{title:t.name,className:y.a.nametitle},t.name?t.name.length>6?t.name.substring(0,6)+"...":t.name:"--")),p.a.createElement("div",{className:y.a.width20},p.a.createElement("img",{className:y.a.loaderimg,src:z["a"].IMG_SERVER+"/images/"+"".concat(t.creator.image_url)}),p.a.createElement("span",{title:t.creator.name,style:{marginLeft:"13px"}},t.creator.name.length>3?t.creator.name.substring(0,3)+"...":t.creator.name)),p.a.createElement("div",{className:y.a.width20},p.a.createElement("span",{title:t.school_name},t.school_name?t.school_name.length>6?t.school_name.substring(0,6)+"...":t.school_name:"--")),p.a.createElement("div",{className:y.a.width20},"\u521b\u5efa\u65f6\u95f4\uff1a",p.a.createElement("span",null,t.created_at||"--")),p.a.createElement("div",{className:y.a.width20,style:{justifyContent:"flex-end"}},p.a.createElement("span",null,"\u6218\u961f\u6210\u5458\uff1a",p.a.createElement("span",null,t.team_members?t.team_members.length:"--")),p.a.createElement("span",{onClick:function(){n(!0),a(t)},style:{color:"#1890FF",marginLeft:"15px",cursor:"pointer"}},"\u67e5\u770b")),3===r&&p.a.createElement(h["Link"],{to:"/competitions/index/".concat(l,"/teamDetail/").concat(t.id),style:{color:"#1890FF",fontSize:"14px",marginLeft:"30px",cursor:"pointer",width:"10%"}},"\u6218\u961f\u8be6\u60c5"))}var R=B;function J(e){var t=e.teamitem;return p.a.createElement("div",null,p.a.createElement("div",{style:{display:"flex",alignItems:"center",flexDirection:"initial",height:"37px",background:"#fff",marginTop:"3px",padding:"0px 15px"}},p.a.createElement("span",{style:{flex:"1"}},p.a.createElement("img",{className:y.a.loaderimg,src:z["a"].IMG_SERVER+"/images/"+"".concat(t.image_url)})),p.a.createElement("span",{style:{flex:"1"}},t&&t.name.length>6?t.name.substring(0,6)+"...":t.name),p.a.createElement("span",{style:{flex:"2"}},t&&t.phone||"- -"),p.a.createElement("span",{style:{flex:"2"}},t&&t.school_name.length>6?t.school_name.substring(0,6)+"...":t.school_name||"- - "),p.a.createElement("span",{style:{flex:"1"}},t&&t.identity||"- -"),p.a.createElement("span",{style:{flex:"2"},className:"task-hide"},t&&t.student_id||"- -"),p.a.createElement("span",{style:{flex:"2",color:t&&"leader"===t.role?"#1890FF":"#2ABD8C",fontSize:"14px"}},t&&"leader"===t.role?"\u961f\u957f":"\u961f\u5458",p.a.createElement("span",{style:{color:"#F3730C"}},t&&t.creator?"\uff08\u521b\u5efa\u8005\uff09":""))))}var V=J;function W(e){var t=e.islookmodel,n=e.mydatas,r=e.setIslookModel;return p.a.createElement(a["a"],{centered:!0,title:p.a.createElement("div",{style:{alignItems:"center",display:"flex"}},p.a.createElement("div",{style:{textAlign:"left",flex:"1"}},n.name),p.a.createElement(O["a"],{onClick:function(){return r(!1)},style:{cursor:"porint"}})),visible:t,closable:!1,destroyOnClose:!0,footer:null,width:900},p.a.createElement("div",null,p.a.createElement("div",{style:{display:"flex",alignItems:"center",flexDirection:"initial",height:"37px",background:"#FAFAFA",padding:"0px 15px"}},p.a.createElement("span",{style:{flex:"1"}},"\u5934\u50cf"),p.a.createElement("span",{style:{flex:"1"}},"\u59d3\u540d"),p.a.createElement("span",{style:{flex:"2"}},"\u624b\u673a"),p.a.createElement("span",{style:{flex:"2"}},"\u5b66\u6821/\u5355\u4f4d"),p.a.createElement("span",{style:{flex:"1"}},"\u804c\u4e1a"),p.a.createElement("span",{style:{flex:"2"}},"\u5b66\u53f7"),p.a.createElement("span",{style:{flex:"2"}},"\u89d2\u8272"))),n&&n.team_members&&n.team_members.map((function(e,t){return p.a.createElement(V,{key:t,teamitem:e})})))}var X=W;function P(e){var t=e.title,n=e.content,r=e.Tipsmodel,i=e.setTipsmodel,l=e.TipsSubmit,o=e.TipsType;return p.a.createElement(a["a"],{centered:!0,title:p.a.createElement("div",{style:{alignItems:"center",display:"flex"}},p.a.createElement("div",{style:{textAlign:"left",flex:"1"}},t),p.a.createElement(O["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)}},n)}var Q=P;function K(e){var t=e.isjoin,n=e.setJoin,r=e.JoinTeams,i=Object(d["useState"])(""),l=Object(u["a"])(i,2),o=l[0],s=l[1];return p.a.createElement(a["a"],{centered:!0,title:p.a.createElement("div",{style:{alignItems:"center",display:"flex"}},p.a.createElement("div",{style:{textAlign:"left",flex:"1"}},"\u52a0\u5165\u6218\u961f"),p.a.createElement(O["a"],{onClick:function(){return n(!1)},style:{cursor:"porint"}})),visible:t,closable:!1,destroyOnClose:!0,onOk:function(){o?r(o):c["b"].info("\u9080\u8bf7\u7801\u4e0d\u80fd\u4e3a\u7a7a")},onCancel:function(){return n(!1)}},p.a.createElement("div",null,p.a.createElement("p",{style:{marginTop:"15px",marginLeft:"15px",display:"flex",alignItems:"center"}},p.a.createElement("span",{style:{flex:"none"}},"\u9080\u8bf7\u7801\uff1a")," ",p.a.createElement(w["a"],{placeholder:"\u8bf7\u8f93\u5165\u9080\u8bf7\u7801",value:o,maxLength:60,addonAfter:String(o&&o.length||0)+"/60",onChange:function(e){return s(e.target.value)}}))))}var H=K;function U(){return p.a.createElement("div",{className:y.a.teammember},p.a.createElement("span",{className:y.a.flex1},"\u5934\u50cf"),p.a.createElement("span",{className:y.a.flex1},"\u59d3\u540d"),p.a.createElement("span",{className:y.a.flex2},"\u624b\u673a"),p.a.createElement("span",{className:y.a.flex2},"\u5b66\u6821/\u5355\u4f4d"),p.a.createElement("span",{className:y.a.flex1},"\u804c\u4e1a"),p.a.createElement("span",{className:y.a.flex2},"\u5b66\u53f7"),p.a.createElement("span",{className:y.a.flex2},"\u89d2\u8272"),p.a.createElement("span",{className:y.a.flex2,style:{textAlign:"center"}},"\u64cd\u4f5c"))}var Y=U,Z=(n("P2fV"),n("NJEC"));function q(e){var t=e.teamitem,n=e.index,a=e.setTeams,r=e.Teams,i=e.setLoaderid;function l(){var e=r,l=r&&r.findIndex((function(e){return"leader"===e.role}));e[n].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}));a(o),i(t.id)}function o(){var e=r&&r.filter((function(e){return e.id!=t.id}));a(e)}return p.a.createElement("div",{className:y.a.teammembers},p.a.createElement("span",{className:y.a.flex1},p.a.createElement("img",{className:y.a.loaderimg,src:z["a"].IMG_SERVER+"/images/"+"".concat(t.image_url)})),p.a.createElement("span",{className:y.a.flex1},t&&t.name.length>6?t.name.substring(0,6)+"...":t.name),p.a.createElement("span",{className:y.a.flex2},t&&t.phone||"- -"),p.a.createElement("span",{className:y.a.flex2},t&&t.school_name.length>6?t.school_name.substring(0,6)+"...":t.school_name||"- - "),p.a.createElement("span",{className:y.a.flex1},t&&t.identity||"- -"),p.a.createElement("span",{className:"".concat(y.a.flex2," ").concat(y.a.task_hide)},t&&t.student_id||"- -"),p.a.createElement("span",{className:y.a.flex2,style:{color:(t&&t.role,"#1890FF"),fontSize:"14px"}},t&&"leader"===t.role?"\u961f\u957f":"\u961f\u5458",p.a.createElement("span",{style:{color:"#F3730C"}},t&&t.creator?"(\u521b\u5efa\u8005)":"")),p.a.createElement("div",{className:y.a.flex2},p.a.createElement(Z["a"],{title:"\u8bbe\u7f6e\u4e3a\u961f\u957f\uff0c\u6743\u9650\uff1a\u7f16\u8f91\u6218\u961f\u3001\u8bbe\u7f6e\u6218\u961f\u6210\u5458\u3001\u8f6c\u79fb\u961f\u957f\u3001\u5220\u9664\u6218\u961f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onConfirm:function(){return l()}},p.a.createElement("span",{className:" ".concat(y.a.deleteitem)},t&&"leader"===t.role||t&&t.creator?"":"\u8bbe\u4e3a\u961f\u957f")),p.a.createElement("span",{style:{color:"#f73737"},onClick:function(){return o()},className:" ".concat(y.a.deleteitem)},t&&"leader"===t.role||t&&t.creator?"":"\u5220\u9664")))}var $=q,ee=(n("R9oj"),n("ECub"));function te(e){var t=e.teachers,n=e.setTeams,a=e.Teams,r=e.HeaderDetail,i=t.map((function(e,t){return p.a.createElement("div",{key:t,className:y.a.teachname,onMouseDown:function(){if((null===e||void 0===e?void 0:e.authentication)||!(null===r||void 0===r?void 0:r.is_authentication))if(e.enrolled)c["b"].info("\u8be5\u7528\u6237\u5df2\u7ecf\u52a0\u5165\u6218\u961f");else if((null===a||void 0===a?void 0:a.filter((function(t){return e.id===t.id})).length)>0)c["b"].info("\u8be5\u7528\u6237\u5df2\u5728\u6218\u961f\u5217\u8868\uff0c\u8bf7\u4e0d\u8981\u91cd\u590d\u6dfb\u52a0");else{var t=a;t.push(e),n(t)}else c["b"].info("\u5f53\u524d\u7ade\u8d5b\u9700\u8981\u5b9e\u540d\u8ba4\u8bc1\uff0c\u8be5\u7528\u6237\u672a\u8fdb\u884c\u5b9e\u540d\u8ba4\u8bc1\u4e0d\u80fd\u53c2\u4e0e\u3002")}},p.a.createElement("img",{style:{marginLeft:"10px",marginRight:"3px"},className:y.a.loaderimg,src:z["a"].IMG_SERVER+"/images/"+"".concat(e.image_url)}),p.a.createElement("span",{style:{textAlign:"left",width:"20%",padding:"0px 5px"}},e.name||"- -"),p.a.createElement("span",{style:{textAlign:"left",width:"18%",padding:"0px 5px"}},e.phone||"- -"),p.a.createElement("span",{style:{textAlign:"left",width:"18%",padding:"0px 5px"},className:y.a.task_hide},e.identity||"- -"),p.a.createElement("span",{style:{textAlign:"left",width:"20%",padding:"0px 5px"}},e.school_name||"- -"),p.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?"\u5df2\u52a0\u5165\u672c\u6218\u961f":e.enrolled||!1!==e.enrollable?"":"\u5df2\u52a0\u5165\u5176\u4ed6\u6218\u961f"))}));return p.a.createElement("div",{className:y.a.teacherdown},0===t.length?p.a.createElement(ee["a"],{description:p.a.createElement("div",null,p.a.createElement("p",null,"\u641c\u7d22\u7ed3\u679c\u4e3a\u7a7a"),p.a.createElement("p",null,"\u6210\u529f\u6ce8\u518c\u540e\u7684\u8d26\u53f7\uff08\u804c\u4e1a\u4e3a\u8001\u5e08\uff09"),p.a.createElement("p",null,"\u624d\u80fd\u88ab\u641c\u7d22\u5230\u54e6~")),image:ee["a"].PRESENTED_IMAGE_SIMPLE}):p.a.createElement("div",null,i))}var ne=te;function ae(e){var t=e.students,n=e.setTeams,a=e.Teams,r=e.HeaderDetail,i=t.map((function(e,t){return p.a.createElement("div",{key:t,className:y.a.teachname,onMouseDown:function(){if((null===e||void 0===e?void 0:e.authentication)||!(null===r||void 0===r?void 0:r.is_authentication))if(e.enrolled)c["b"].info("\u8be5\u7528\u6237\u5df2\u7ecf\u52a0\u5165\u6218\u961f");else if((null===a||void 0===a?void 0:a.filter((function(t){return e.id===t.id})).length)>0)c["b"].info("\u8be5\u7528\u6237\u5df2\u5728\u6218\u961f\u5217\u8868\uff0c\u8bf7\u4e0d\u8981\u91cd\u590d\u6dfb\u52a0");else{var t=a;t.push(e),n(t)}else c["b"].info("\u5f53\u524d\u7ade\u8d5b\u9700\u8981\u5b9e\u540d\u8ba4\u8bc1\uff0c\u8be5\u7528\u6237\u672a\u8fdb\u884c\u5b9e\u540d\u8ba4\u8bc1\u4e0d\u80fd\u53c2\u4e0e\u3002")}},p.a.createElement("img",{style:{marginLeft:"10px",marginRight:"3px"},className:y.a.loaderimg,src:z["a"].IMG_SERVER+"/images/"+"".concat(e.image_url)}),p.a.createElement("span",{style:{textAlign:"left",width:"20%",padding:"0px 5px"}},e.name||"- -"),p.a.createElement("span",{style:{textAlign:"left",width:"18%",padding:"0px 5px"}},e.phone||"- -"),p.a.createElement("span",{style:{textAlign:"left",width:"18%",padding:"0px 5px"},className:y.a.task_hide},e.student_id?"\u5b66\u53f7"+e.student_id:"- -"),p.a.createElement("span",{style:{textAlign:"left",width:"20%",padding:"0px 5px"}},e.school_name||"- -"),p.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?"\u5df2\u52a0\u5165\u672c\u6218\u961f":e.enrolled||!1!==e.enrollable?"":"\u5df2\u52a0\u5165\u5176\u4ed6\u6218\u961f"))}));return p.a.createElement("div",{className:y.a.teacherdown},0===t.length?p.a.createElement(ee["a"],{description:p.a.createElement("div",null,p.a.createElement("p",null,"\u641c\u7d22\u7ed3\u679c\u4e3a\u7a7a"),p.a.createElement("p",null,"\u6210\u529f\u6ce8\u518c\u540e\u7684\u8d26\u53f7\uff08\u804c\u4e1a\u4e3a\u5b66\u751f\uff09"),p.a.createElement("p",null,"\u624d\u80fd\u88ab\u641c\u7d22\u5230\u54e6~")),image:ee["a"].PRESENTED_IMAGE_SIMPLE}):p.a.createElement("div",null,i))}var re=ae;function ie(){ie=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var i=t&&t.prototype instanceof g?t:g,l=Object.create(i.prototype),o=new L(a||[]);return r(l,"_invoke",{value:k(e,n,o)}),l}function m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",p="suspendedYield",f="executing",h="completed",v={};function g(){}function y(){}function E(){}var b={};s(b,l,(function(){return this}));var x=Object.getPrototypeOf,_=x&&x(x(I([])));_&&_!==n&&a.call(_,l)&&(b=_);var w=E.prototype=g.prototype=Object.create(b);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(r,i,l,o){var c=m(e[r],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==typeof u&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,l,o)}),(function(e){n("throw",e,l,o)})):t.resolve(u).then((function(e){s.value=e,l(s)}),(function(e){return n("throw",e,l,o)}))}o(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function k(t,n,a){var r=d;return function(i,l){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw l;return{value:e,done:!0}}for(a.method=i,a.arg=l;;){var o=a.delegate;if(o){var c=S(o,a);if(c){if(c===v)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===d)throw r=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=f;var s=m(t,n,a);if("normal"===s.type){if(r=a.done?h:p,s.arg===v)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=h,a.method="throw",a.arg=s.arg)}}}function S(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=m(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var l=i.arg;return l?l.done?(n[t.resultName]=l.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):l:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=E,r(w,"constructor",{value:E,configurable:!0}),r(E,"constructor",{value:y,configurable:!0}),y.displayName=s(E,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,s(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},O(j.prototype),s(j.prototype,o,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,a,r,i){void 0===i&&(i=Promise);var l=new j(u(e,n,a,r),i);return t.isGeneratorFunction(n)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},O(w),s(w,c,"Generator"),s(w,l,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=I,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return o.type="throw",o.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var l=this.tryEntries[i],o=l.completion;if("root"===l.tryLoc)return r("end");if(l.tryLoc<=this.prev){var c=a.call(l,"catchLoc"),s=a.call(l,"finallyLoc");if(c&&s){if(this.prev<l.catchLoc)return r(l.catchLoc,!0);if(this.prev<l.finallyLoc)return r(l.finallyLoc)}else if(c){if(this.prev<l.catchLoc)return r(l.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return r(l.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var l=i?i.completion:{};return l.type=e,l.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(l)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;A(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:I(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}var le=w["a"].Search;function oe(e){var t,n,r,i,l=e.Membersshow,o=e.setClose,m=e.HeaderDetail,f=e.StaffDetail,h=e.setMembers,v=e.dispatch,g=e.identifier,E=e.mydatas,b=e.selectlist,x=Object(d["useState"])(""),_=Object(u["a"])(x,2),w=_[0],j=_[1],k=Object(d["useState"])(""),S=Object(u["a"])(k,2),N=S[0],A=S[1],L=Object(d["useState"])([]),I=Object(u["a"])(L,2),C=I[0],D=I[1],z=Object(d["useState"])(!1),F=Object(u["a"])(z,2),M=F[0],G=F[1],B=Object(d["useState"])([]),R=Object(u["a"])(B,2),J=R[0],V=R[1],W=Object(d["useState"])(!1),X=Object(u["a"])(W,2),P=X[0],Q=X[1],K=Object(d["useState"])([]),H=Object(u["a"])(K,2),U=H[0],Z=H[1],q=Object(d["useState"])([]),ee=Object(u["a"])(q,2),te=ee[0],ae=ee[1],oe=Object(d["useState"])([]),ce=Object(u["a"])(oe,2),se=ce[0],ue=ce[1],me=Object(d["useState"])([]),de=Object(u["a"])(me,2),pe=de[0],fe=de[1],he=Object(d["useState"])(!1),ve=Object(u["a"])(he,2),ge=ve[0],ye=ve[1],Ee=Object(d["useState"])(!1),be=Object(u["a"])(Ee,2),xe=be[0],_e=be[1];function we(){return Oe.apply(this,arguments)}function Oe(){return Oe=Object(s["a"])(ie().mark((function e(){var t;return ie().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,v({type:"competitions/getStudents",payload:{identifier:g,keyword:N,team_id:E&&E.id}});case 2:t=e.sent,t&&V(t.teachers);case 4:case"end":return e.stop()}}),e)}))),Oe.apply(this,arguments)}function je(){return ke.apply(this,arguments)}function ke(){return ke=Object(s["a"])(ie().mark((function e(){var t;return ie().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,v({type:"competitions/getTeacher",payload:{identifier:g,keyword:w,team_id:E&&E.id}});case 2:t=e.sent,t&&D(t.teachers);case 4:case"end":return e.stop()}}),e)}))),ke.apply(this,arguments)}function Se(){return Ne.apply(this,arguments)}function Ne(){return Ne=Object(s["a"])(ie().mark((function e(){var t,n,a,r,i;return ie().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=[],r=[],U&&U.map((function(e,t){e.is_teacher?r.push(e.id):a.push(e.id)})),ue(r.length),fe(a.length),!((null===f||void 0===f||null===(t=f.teacher_staff)||void 0===t?void 0:t.maximum)<r.length)){e.next=8;break}return ye(!0),e.abrupt("return");case 8:if(ye(!1),!((null===f||void 0===f||null===(n=f.member_staff)||void 0===n?void 0:n.maximum)<a.length)){e.next=12;break}return _e(!0),e.abrupt("return");case 12:return _e(!1),e.next=15,v({type:"competitions/SubmitTeam",payload:{identifier:g,teamid:E&&E.id,member_ids:a,teacher_ids:r,leader:te}});case 15:i=e.sent,i&&0===i.status&&(c["b"].info("\u4fee\u6539\u6210\u529f"),h(!1),b(""));case 17:case"end":return e.stop()}}),e)}))),Ne.apply(this,arguments)}return Object(d["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}));Z(e)}),[]),p.a.createElement(a["a"],{centered:!0,title:p.a.createElement("div",{style:{alignItems:"center",display:"flex"}},p.a.createElement("div",{style:{textAlign:"left",flex:"1"}},"\u8bbe\u7f6e\u6218\u961f\u6210\u5458"),p.a.createElement(O["a"],{onClick:function(){return h(!1)},style:{cursor:"porint"}})),visible:l,closable:!1,destroyOnClose:!0,onOk:function(){Se()},onCancel:function(){h(!1),o()},width:900},p.a.createElement("div",{className:y.a.setmembers},p.a.createElement("p",null,"\u6dfb\u52a0\u6559\u5e08"),p.a.createElement(T["a"],{overlay:p.a.createElement(ne,{HeaderDetail:m,teachers:C,setTeams:Z,Teams:U}),getPopupContainer:function(e){return e.parentNode},visible:M},p.a.createElement(le,{value:w,placeholder:"\u8bf7\u641c\u7d22\u6559\u5e08\u59d3\u540d/\u624b\u673a\u53f7\u5e76\u6dfb\u52a0",allowClear:!0,onChange:function(e){j(e.target.value)},onSearch:function(e){G(!0),je()},onBlur:function(){G(!1)}})),p.a.createElement("p",null,"\u6dfb\u52a0\u5b66\u751f/\u4e13\u4e1a\u4eba\u58eb"),p.a.createElement(T["a"],{overlay:p.a.createElement(re,{HeaderDetail:m,students:J,setTeams:Z,Teams:U}),getPopupContainer:function(e){return e.parentNode},visible:P},p.a.createElement(le,{value:N,placeholder:"\u8bf7\u641c\u7d22\u961f\u5458\u59d3\u540d/\u624b\u673a\u53f7\u5e76\u6dfb\u52a0",allowClear:!0,onChange:function(e){A(e.target.value)},onSearch:function(e){Q(!0),we()},onBlur:function(){Q(!1)}})),p.a.createElement("div",{style:{display:"flex",marginBottom:"12px",marginTop:"15px"}},p.a.createElement("p",{style:{flex:"1"}},"\u8bf7\u6dfb\u52a0\u6218\u961f\u6210\u5458\uff1a",f&&f.teacher_staff?p.a.createElement("span",null,f&&f.teacher_staff.minimum,"-",f&&f.teacher_staff.maximum,"\u540d\u6559\u5e08"):"",f&&f.teacher_staff&&f.member_staff?"/":"",f&&f.member_staff?p.a.createElement("span",null,f&&f.member_staff.minimum,"-",f&&f.member_staff.maximum,"\u540d\u5b66\u751f"):""),p.a.createElement("span",{style:{color:"#F3730C"}},"\u5efa\u8bae\u4f18\u5148\u5c06\u6559\u5e08\u8bbe\u7f6e\u4e3a\u961f\u957f")),p.a.createElement(Y,null),p.a.createElement("div",{style:{height:"240px",overflow:"auto"}},U&&U.map((function(e,t){return p.a.createElement($,{key:t,teamitem:e,index:t,setTeams:Z,Teams:U,setLoaderid:ae})}))),ge&&p.a.createElement("p",{style:{marginLeft:"53px",color:"#D0021B",fontSize:"12px",marginTop:"9px"}},"\u5bfc\u5e08\u9700\u4e3a",null===f||void 0===f||null===(t=f.teacher_staff)||void 0===t?void 0:t.minimum,"-",null===f||void 0===f||null===(n=f.teacher_staff)||void 0===n?void 0:n.maximum,"\u4eba,\u73b0\u4e3a",se,"\u4eba"),xe&&p.a.createElement("p",{style:{marginLeft:"53px",color:"#D0021B",fontSize:"12px",marginTop:"9px"}},"\u6218\u961f\u6210\u5458(\u804c\u4e1a\u4e3a\u5b66\u751f)\u9700\u4e3a",null===f||void 0===f||null===(r=f.member_staff)||void 0===r?void 0:r.minimum,"-",null===f||void 0===f||null===(i=f.member_staff)||void 0===i?void 0:i.maximum,"\u4eba,\u73b0\u4e3a",pe,"\u4eba")))}var ce=oe,se=n("0SVz"),ue=n.n(se);function me(e){var t=e.isShowmodel,n=e.isSignUphide,i=Object(d["useState"])([]),l=Object(u["a"])(i,2),o=l[0],c=l[1];return Object(d["useEffect"])((function(){var e=JSON.parse(localStorage.getItem("item"));c(e)}),[]),p.a.createElement(a["a"],{visible:t,footer:null,centered:!0,onCancel:function(){n(!1)},width:600,maskClosable:!1},p.a.createElement("div",{style:{display:"flex",alignItems:"center"}},p.a.createElement("img",{src:ue.a,style:{marginRight:"35px",width:"60px",height:"60px"}})," ",p.a.createElement("span",{style:{fontSize:"24px",color:"#333333"}},"\u62a5\u540d\u6210\u529f")),p.a.createElement("div",{style:{marginLeft:"100px",marginTop:"41px"}},p.a.createElement("p",{className:"task-hide"},"\u606d\u559c\u4f60\u6210\u529f\u62a5\u540d\uff1a",p.a.createElement("span",{style:{color:"#333333"}},null===o||void 0===o?void 0:o.competition,"-",null===o||void 0===o?void 0:o.sub_title)),p.a.createElement("p",{className:"task-hide"},"\u7cfb\u7edf\u5df2\u4e3a\u60a8\u81ea\u52a8\u521b\u5efa\u6218\u961f\uff0c\u6218\u961f\u540d\u79f0\u4e3a\uff1a",p.a.createElement("span",{style:{color:"#333333"}},null===o||void 0===o?void 0:o.team_name)),p.a.createElement("p",{style:{marginTop:"40px"}},"\u4f60\u53ef\u4ee5\u53bb\u5230\uff3b\u7f16\u8f91\u6218\u961f\uff3d\u9875\u9762\uff0c\u4fee\u6539\u6218\u961f\u540d\u79f0\u548c\u4e0a\u4f20logo\uff0c\u4e5f\u53ef\u4ee5\u53bb\uff3b\u8d5b\u4e8b\u8be6\u60c5\uff3d \u9875\u9762\u66f4\u8be6\u7ec6\u7684\u4e86\u89e3\u6bd4\u8d5b\u3002")),p.a.createElement("p",{style:{marginTop:"30px",textAlign:"center"}},p.a.createElement(h["Link"],{style:{marginRight:"20px"},to:"/competitions/index/".concat(null===o||void 0===o?void 0:o.identify)},p.a.createElement(r["a"],null,"\u8d5b\u4e8b\u8be6\u60c5")),p.a.createElement(h["Link"],{style:{marginLeft:"20px"},to:"/competitions/index/".concat(null===o||void 0===o?void 0:o.identify,"/UpdateTeanname/").concat(null===o||void 0===o?void 0:o.team_id)},p.a.createElement(r["a"],{type:"primary"},"\u7f16\u8f91\u6218\u961f"))))}var de=me,pe=n("zrhs"),fe=n("Vh0m"),he=n.n(fe),ve=n("hxTS"),ge=n.n(ve),ye=n("fpBZ"),Ee=n.n(ye),be=n("61Iv"),xe=n.n(be),_e=n("1vsH");function we(){we=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var i=t&&t.prototype instanceof g?t:g,l=Object.create(i.prototype),o=new L(a||[]);return r(l,"_invoke",{value:k(e,n,o)}),l}function m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",p="suspendedYield",f="executing",h="completed",v={};function g(){}function y(){}function E(){}var b={};s(b,l,(function(){return this}));var x=Object.getPrototypeOf,_=x&&x(x(I([])));_&&_!==n&&a.call(_,l)&&(b=_);var w=E.prototype=g.prototype=Object.create(b);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(r,i,l,o){var c=m(e[r],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==typeof u&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,l,o)}),(function(e){n("throw",e,l,o)})):t.resolve(u).then((function(e){s.value=e,l(s)}),(function(e){return n("throw",e,l,o)}))}o(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function k(t,n,a){var r=d;return function(i,l){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw l;return{value:e,done:!0}}for(a.method=i,a.arg=l;;){var o=a.delegate;if(o){var c=S(o,a);if(c){if(c===v)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===d)throw r=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=f;var s=m(t,n,a);if("normal"===s.type){if(r=a.done?h:p,s.arg===v)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=h,a.method="throw",a.arg=s.arg)}}}function S(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=m(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var l=i.arg;return l?l.done?(n[t.resultName]=l.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):l:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=E,r(w,"constructor",{value:E,configurable:!0}),r(E,"constructor",{value:y,configurable:!0}),y.displayName=s(E,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,s(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},O(j.prototype),s(j.prototype,o,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,a,r,i){void 0===i&&(i=Promise);var l=new j(u(e,n,a,r),i);return t.isGeneratorFunction(n)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},O(w),s(w,c,"Generator"),s(w,l,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=I,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return o.type="throw",o.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var l=this.tryEntries[i],o=l.completion;if("root"===l.tryLoc)return r("end");if(l.tryLoc<=this.prev){var c=a.call(l,"catchLoc"),s=a.call(l,"finallyLoc");if(c&&s){if(this.prev<l.catchLoc)return r(l.catchLoc,!0);if(this.prev<l.finallyLoc)return r(l.finallyLoc)}else if(c){if(this.prev<l.catchLoc)return r(l.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return r(l.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var l=i?i.completion:{};return l.type=e,l.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(l)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;A(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:I(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}var Oe=[45,46,49,50,51,52,71],je=function(e){e.globalSetting;var t,n,v,g,E=e.loading,b=e.dispatch,x=e.user,w=(Object(m["a"])(e,["globalSetting","loading","dispatch","user"]),Object(d["useState"])([])),O=Object(u["a"])(w,2),j=O[0],S=O[1],A=Object(d["useState"])([]),L=Object(u["a"])(A,2),T=L[0],C=L[1],D=Object(f["m"])(),z=D.identifier,F=Object(d["useState"])([]),M=Object(u["a"])(F,2),B=M[0],J=M[1],V=Object(d["useState"])([]),W=Object(u["a"])(V,2),P=W[0],K=W[1],U=Object(d["useState"])([]),Y=Object(u["a"])(U,2),Z=Y[0],q=Y[1],$=Object(d["useState"])([]),ee=Object(u["a"])($,2),te=ee[0],ne=ee[1],ae=Object(d["useState"])(""),re=Object(u["a"])(ae,2),ie=re[0],le=(re[1],Object(d["useState"])(1)),oe=Object(u["a"])(le,2),se=oe[0],ue=oe[1],me=Object(d["useState"])(20),fe=Object(u["a"])(me,2),ve=fe[0],ye=(fe[1],Object(d["useState"])(!1)),be=Object(u["a"])(ye,2),je=be[0],ke=be[1],Se=Object(d["useState"])([]),Ne=Object(u["a"])(Se,2),Ae=Ne[0],Le=Ne[1],Ie=Object(d["useState"])(!1),Te=Object(u["a"])(Ie,2),Ce=Te[0],De=Te[1],ze=Object(d["useState"])(""),Fe=Object(u["a"])(ze,2),Me=Fe[0],Ge=Fe[1],Be=Object(d["useState"])(""),Re=Object(u["a"])(Be,2),Je=Re[0],Ve=Re[1],We=Object(d["useState"])(""),Xe=Object(u["a"])(We,2),Pe=Xe[0],Qe=Xe[1],Ke=Object(d["useState"])(""),He=Object(u["a"])(Ke,2),Ue=He[0],Ye=He[1],Ze=Object(d["useState"])(!1),qe=Object(u["a"])(Ze,2),$e=qe[0],et=qe[1],tt=Object(d["useState"])(!1),nt=Object(u["a"])(tt,2),at=nt[0],rt=nt[1],it=Object(d["useState"])(!1),lt=Object(u["a"])(it,2),ot=lt[0],ct=lt[1],st=Object(d["useState"])(!1),ut=Object(u["a"])(st,2),mt=ut[0],dt=ut[1],pt=Object(d["useState"])(!1),ft=Object(u["a"])(pt,2),ht=ft[0],vt=ft[1],gt=Object(d["useState"])(!0),yt=Object(u["a"])(gt,2),Et=yt[0],bt=yt[1],xt=Object(d["useState"])(),_t=Object(u["a"])(xt,2),wt=_t[0],Ot=_t[1],jt=Object(d["useState"])(!1),kt=Object(u["a"])(jt,2),St=kt[0],Nt=kt[1];function At(e){return Lt.apply(this,arguments)}function Lt(){return Lt=Object(s["a"])(we().mark((function e(t){var n;return we().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,b({type:"competitions/getTeamList",payload:{identifier:z,keyword:t||ie,page:se,per_page:ve}});case 2:n=e.sent,n&&(J(n),Ot(JSON.parse(JSON.stringify(n))),K(n.competition_teams),q(n&&n.my_teams&&n.my_teams.filter((function(e){return e.manage_permission}))),ne(n&&n.my_teams&&n.my_teams.filter((function(e){return!e.manage_permission}))));case 4:case"end":return e.stop()}}),e)}))),Lt.apply(this,arguments)}function It(e,t){Qe(t),De(!0),Ye(e),1===e?(Ge("\u5220\u9664\u6218\u961f"),Ve("\u662f\u5426\u786e\u8ba4\u5220\u9664\u6218\u961f")):(Ge("\u9000\u51fa\u6218\u961f"),Ve("\u662f\u5426\u786e\u8ba4\u9000\u51fa\u6218\u961f"))}function Tt(){return Ct.apply(this,arguments)}function Ct(){return Ct=Object(s["a"])(we().mark((function e(){return we().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.t0=C,e.next=3,b({type:"competitions/getStaff",payload:{identifier:z}});case 3:e.t1=e.sent,(0,e.t0)(e.t1);case 5:case"end":return e.stop()}}),e)}))),Ct.apply(this,arguments)}function Dt(){var e=wt;K(e.competition_teams),q(e&&e.my_teams&&e.my_teams.filter((function(e){return e.manage_permission}))),ne(e&&e.my_teams&&e.my_teams.filter((function(e){return!e.manage_permission})))}function zt(e){return Ft.apply(this,arguments)}function Ft(){return Ft=Object(s["a"])(we().mark((function e(t){var n,a;return we().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("nearly_published"===j.competition_status||!j.enroll_end||"ended"===j.competition_status){e.next=3;break}return c["b"].error(1===t?"\u62a5\u540d\u65f6\u95f4\u5df2\u622a\u6b62\uff0c\u4e0d\u652f\u6301\u5220\u9664\u6218\u961f":"\u62a5\u540d\u65f6\u95f4\u5df2\u622a\u6b62\uff0c\u4e0d\u652f\u6301\u9000\u51fa\u6218\u961f"),e.abrupt("return");case 3:if(1!==t){e.next=10;break}return e.next=6,b({type:"competitions/DeleteTeam",payload:{identifier:z,id:Pe}});case 6:n=e.sent,n&&0===n.status&&(c["b"].info("\u5220\u9664\u6210\u529f"),De(!1),At(ie),Tt()),e.next=14;break;case 10:return e.next=12,b({type:"competitions/ExitTeam",payload:{identifier:z,id:Pe}});case 12:a=e.sent,a&&0===a.status&&(c["b"].info("\u9000\u51fa\u6218\u961f\u6210\u529f"),De(!1),At(ie),Tt());case 14:case"end":return e.stop()}}),e)}))),Ft.apply(this,arguments)}function Mt(e){return Gt.apply(this,arguments)}function Gt(){return Gt=Object(s["a"])(we().mark((function e(t){var n;return we().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(Et){e.next=2;break}return e.abrupt("return");case 2:if(bt(!1),!Bt()){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,b({type:"competitions/AddTeam",payload:{identifier:z,name:t}});case 7:n=e.sent,n&&0===n.status?(c["b"].info("\u521b\u5efa\u6218\u961f\u6210\u529f"),Oe.includes(parseInt(null===j||void 0===j?void 0:j.id))&&Nt(!0),et(!1),bt(!0),At(ie),Tt()):bt(!0);case 9:case"end":return e.stop()}}),e)}))),Gt.apply(this,arguments)}function Bt(){var e,t,n,a;if(null===x||void 0===x||null===(e=x.userInfo)||void 0===e?void 0:e.is_teacher){if((null===T||void 0===T||null===(n=T.teacher_staff)||void 0===n?void 0:n.mutiple_limited)&&(null===T||void 0===T?void 0:T.enrolled))return c["b"].info("\u4f60\u5df2\u7ecf\u62a5\u540d\uff0c\u4e0d\u80fd\u91cd\u590d\u62a5\u540d"),bt(!0),!0}else if((null===T||void 0===T||null===(a=T.member_staff)||void 0===a?void 0:a.mutiple_limited)&&(null===T||void 0===T?void 0:T.enrolled))return c["b"].info("\u4f60\u5df2\u7ecf\u62a5\u540d\uff0c\u4e0d\u80fd\u91cd\u590d\u62a5\u540d"),bt(!0),!0;if(null===T||void 0===T?void 0:T.enroll_ended)return c["b"].info("\u62a5\u540d\u5df2\u622a\u6b62\uff0c\u65e0\u9700\u62a5\u540d"),bt(!0),!0;if(null===x||void 0===x||null===(t=x.userInfo)||void 0===t?void 0:t.is_teacher){if(!T.teacher_staff)return c["b"].info("\u5df2\u7981\u6b62\u8001\u5e08\u62a5\u540d"),bt(!0),!0}else if(!(null===T||void 0===T?void 0:T.member_staff))return c["b"].info("\u5df2\u7981\u6b62\u5b66\u751f\u62a5\u540d"),bt(!0),!0}function Rt(e){return Jt.apply(this,arguments)}function Jt(){return Jt=Object(s["a"])(we().mark((function e(t){var n;return we().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(Et){e.next=2;break}return e.abrupt("return");case 2:if(!Bt()){e.next=4;break}return e.abrupt("return");case 4:return bt(!1),e.next=7,b({type:"competitions/JoinTeam",payload:{identifier:z,invite_code:t}});case 7:n=e.sent,n&&0===n.status?(c["b"].info("\u52a0\u5165\u6218\u961f\u6210\u529f"),rt(!1),bt(!0),At(ie),Tt(),Oe.includes(parseInt(null===j||void 0===j?void 0:j.id))&&Nt(!0)):bt(!0);case 9:case"end":return e.stop()}}),e)}))),Jt.apply(this,arguments)}return Object(d["useEffect"])((function(){function e(){return t.apply(this,arguments)}function t(){return t=Object(s["a"])(we().mark((function e(){return we().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return Tt(),e.t0=S,e.next=4,b({type:"competitions/getHeader",payload:{identifier:z}});case 4:e.t1=e.sent,(0,e.t0)(e.t1),At(ie),1===parseInt(localStorage.getItem("iscreate"))&&(vt(!0),localStorage.setItem("iscreate","2"));case 8:case"end":return e.stop()}}),e)}))),t.apply(this,arguments)}z&&e()}),[z]),p.a.createElement("div",{className:"edu-container minH500"},p.a.createElement(o["a"],{className:"mt10",separator:">"},p.a.createElement(o["a"].Item,null,p.a.createElement(h["Link"],{to:"/competitions/index"},"\u5728\u7ebf\u7ade\u8d5b")),p.a.createElement(o["a"].Item,null,p.a.createElement(h["Link"],{to:"/competitions/index/".concat(z)},j.name,j.sub_title?"-"+j.sub_title:null)),p.a.createElement(o["a"].Item,null,"\u62a5\u540d")),p.a.createElement("div",{className:"mt10",style:{display:"flex",background:"#fff",position:"relative"}},p.a.createElement(_,{HeaderDetail:j,dispatch:b,user:x,setIsAddmodel:et,setJoin:rt})),p.a.createElement(i["a"],{loading:E["competitions/getTeamList"],active:!0,avatar:{size:40},paragraph:{rows:5}},p.a.createElement("div",{className:"mt10 mb10"},(null===x||void 0===x||null===(t=x.userInfo)||void 0===t?void 0:t.admin)&&p.a.createElement(I,{selectlist:At,setIsselect:dt,Count:B&&B.count,Members_count:B&&B.members_count}),B&&B.my_teams&&0===B.my_teams.length&&!(null===x||void 0===x||null===(n=x.userInfo)||void 0===n?void 0:n.admin)?p.a.createElement(N,{HeaderDetail:j,dispatch:b,user:x,setIsAddmodel:et,setJoin:rt}):null,je?p.a.createElement(X,{islookmodel:je,setIslookModel:ke,mydatas:Ae}):null,Ce?p.a.createElement(Q,{title:Me,content:Je,Tipsmodel:Ce,TipsType:Ue,setTipsmodel:De,TipsSubmit:zt}):null,at?p.a.createElement(H,{isjoin:at,setJoin:rt,JoinTeams:Rt}):null,$e?p.a.createElement(k,{isAddmodle:$e,setIsAdd:et,createTeam:Mt}):null,ot?p.a.createElement(ce,{HeaderDetail:j,setClose:Dt,StaffDetail:T,Membersshow:ot,selectlist:At,setMembers:ct,dispatch:b,identifier:z,mydatas:Ae}):null,mt||Z&&Z.map((function(e,t){return 0===t?p.a.createElement("div",{key:t},p.a.createElement("div",{className:y.a.teamstitlesize,style:{paddingRight:"36px"}},p.a.createElement("span",{style:{flex:"1"}},"\u7ba1\u7406\u7684\u6218\u961f\xa0\xa0(",Z.length,")")," ",Z.filter((function(e){return!e.active})).length>0?p.a.createElement("span",{style:{fontSize:"14px",color:"#F3730C"}},"\u60a8\u6709",Z.filter((function(e){return!e.active})).length,"\u4e2a\u6218\u961f\u672a\u6ee1\u8db3\u53c2\u8d5b\u8981\u6c42\uff01\u4e3a\u4e86\u4e0d\u5f71\u54cd\u6210\u7ee9\uff0c\u8bf7\u8bbe\u7f6e\u6218\u961f\u6210\u5458"):""),p.a.createElement(G,{mode:j.mode,item:e,type:1,identifier:z,isTipsshow:It,setIslookModel:ke,setTeam:Le,setMembers:ct})):p.a.createElement(G,{mode:j.mode,key:t,item:e,type:1,identifier:z,isTipsshow:It,setIslookModel:ke,setTeam:Le,setMembers:ct})})),mt||te&&te.map((function(e,t){return 0===t?p.a.createElement("div",{key:t},p.a.createElement("div",{className:y.a.teamstitlesize,style:{paddingRight:"36px"}},p.a.createElement("span",{style:{flex:"1"}},"\u52a0\u5165\u7684\u6218\u961f\xa0\xa0(",te.length,")")),p.a.createElement(G,{mode:j.mode,key:t,item:e,type:2,identifier:z,isTipsshow:It,setIslookModel:ke,setTeam:Le,setMembers:ct})):p.a.createElement(G,{mode:j.mode,key:t,item:e,type:2,identifier:z,isTipsshow:It,setIslookModel:ke,setTeam:Le,setMembers:ct})})),(null===x||void 0===x||null===(v=x.userInfo)||void 0===v?void 0:v.admin)&&P.map((function(e,t){return 0===t?p.a.createElement("div",{key:t},p.a.createElement("div",{className:y.a.teamstitlesize,style:{paddingRight:"36px"}},p.a.createElement("span",{style:{flex:"1"}},mt?"\u641c\u7d22\u7ed3\u679c":"\u5168\u90e8\u6218\u961f","\xa0\xa0(",B.count,")")),p.a.createElement(R,{mode:j.mode,item:e,setIslookModel:ke,setTeam:Le})):p.a.createElement(R,{mode:j.mode,key:t,item:e,setIslookModel:ke,setTeam:Le})})),(null===x||void 0===x||null===(g=x.userInfo)||void 0===g?void 0:g.admin)&&B&&B.count>20?p.a.createElement("div",{style:{marginTop:"30px",marginBottom:"30px",textAlign:"center"}},p.a.createElement(l["a"],{onChange:function(e){se=e,ue(se),At(ie)},showSizeChanger:!1,current:se,pageSize:ve,total:B.count})):null)),p.a.createElement(de,{isShowmodel:ht,isSignUphide:vt}),p.a.createElement(pe["a"],null),p.a.createElement(a["a"],{visible:St,footer:null,title:"\u62a5\u540d\u6210\u529f",centered:!0,width:500,onCancel:function(){return Nt(!1)}},p.a.createElement("div",{style:{padding:"32px"}},p.a.createElement("p",{style:{fontSize:"16px",fontWeight:"500"}},"\u606d\u559c\u60a8\u5df2\u6210\u529f\u62a5\u540d\u300a",null===j||void 0===j?void 0:j.name,"-",null===j||void 0===j?void 0:j.sub_title,"\u300b"),p.a.createElement("span",null,"\u6e29\u99a8\u63d0\u793a\uff1a"),p.a.createElement("br",null),[46,49,50,52].includes(parseInt(null===j||void 0===j?void 0:j.id))&&p.a.createElement("span",null," 1\u3001\u8d5b\u9898\u5df2\u53d1\u5e03\uff0c\u70b9\u51fb\u4e0b\u65b9\u201c\u524d\u5f80\u67e5\u770b\u201d\u6309\u94ae\u67e5\u770b\u8d5b\u9898\u3002"),[45,51].includes(parseInt(null===j||void 0===j?void 0:j.id))&&p.a.createElement("span",null," 1\u3001\u626b\u7801\u52a0\u5165\u8d5b\u9053\u7fa4\uff0c\u54a8\u8be2\u8d5b\u9053\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u6709\u884c\u4e1a\u4e13\u5bb6\u5168\u7a0b\u652f\u6301"),p.a.createElement("br",null),[46,49,50,52].includes(parseInt(null===j||void 0===j?void 0:j.id))&&p.a.createElement("span",null," 2\u3001\u626b\u7801\u52a0\u5165\u8d5b\u9053\u7fa4\uff0c\u54a8\u8be2\u8d5b\u9053\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u6709\u884c\u4e1a\u4e13\u5bb6\u5168\u7a0b\u652f\u6301"),p.a.createElement("br",null),p.a.createElement("div",{style:{marginTop:"30px",textAlign:"center"}},[50,51].includes(parseInt(null===j||void 0===j?void 0:j.id))&&p.a.createElement("img",{src:ge.a,style:{width:"220px",height:"270px"}}),[46,45].includes(parseInt(null===j||void 0===j?void 0:j.id))&&p.a.createElement("img",{src:Ee.a,style:{width:"220px",height:"270px"}}),[49].includes(parseInt(null===j||void 0===j?void 0:j.id))&&p.a.createElement("img",{src:xe.a,style:{width:"220px",height:"270px"}}),[52].includes(parseInt(null===j||void 0===j?void 0:j.id))&&p.a.createElement("img",{src:he.a,style:{width:"220px",height:"270px"}}),p.a.createElement("p",{style:{marginTop:"30px"}},[46,49,50,52].includes(parseInt(null===j||void 0===j?void 0:j.id))&&p.a.createElement(r["a"],{style:{width:"116px",height:"40px"},type:"primary",onClick:function(){Object(_e["L"])("/competitions/index/".concat(null===j||void 0===j?void 0:j.identifier,"?active=\u8d5b\u9898\u53d1\u5e03"))}},"\u524d\u5f80\u67e5\u770b"),[45,51].includes(parseInt(null===j||void 0===j?void 0:j.id))&&p.a.createElement(r["a"],{style:{width:"116px",height:"40px"},type:"primary",onClick:function(){Nt(!1)}},"\u77e5\u9053\u4e86"))))))};t["default"]=Object(v["a"])((function(e){var t=e.loading,n=e.globalSetting,a=e.user;return{globalSetting:n,loading:t.effects,user:a}}))(je)},Vh0m:function(e,t,n){e.exports=n.p+"static/dmpz.f66eda67.png"},fpBZ:function(e,t,n){e.exports=n.p+"static/xmcx.4d2f8a61.png"},hxTS:function(e,t,n){e.exports=n.p+"static/sjjx.7a8e0b40.png"},ipgu:function(e,t,n){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:function(e,t,n){e.exports=n.p+"static/Ncode.3dc22c53.jpg"},zrhs:function(e,t,n){"use strict";n("2qtc");var a=n("kLXV"),r=n("PpiC"),i=n("q1tI"),l=n.n(i),o=n("9kvl"),c=function(e){var t=e.shixunsDetail,n=(e.globalSetting,e.loading,e.dispatch);Object(r["a"])(e,["shixunsDetail","globalSetting","loading","dispatch"]);return l.a.createElement(a["a"],{centered:!0,keyboard:!1,closable:!1,zIndex:6666,title:"\u63d0\u793a",visible:"Banner-Auth"===t.actionTabs.key,okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",onOk:function(){n({type:"shixunsDetail/setActionTabs",payload:{}}),window.location.href="/account/certification"},onCancel:function(){n({type:"shixunsDetail/setActionTabs",payload:{}})}},l.a.createElement("p",{className:"tc font16"},"\u5f53\u524d\u7ade\u8d5b\u9700\u8981\u5b9e\u540d\u8ba4\u8bc1\uff0c\u8bf7\u5148\u5b8c\u6210\u5b9e\u540d\u8ba4\u8bc1\u540e\u518d\u62a5\u540d\u53c2\u8d5b",l.a.createElement("br",null),"\u8bf7\u95ee\u662f\u5426\u524d\u5f80\u8fdb\u884c\u8ba4\u8bc1\uff1f"))};t["a"]=Object(o["a"])((function(e){var t=e.shixunsDetail,n=e.loading,a=e.globalSetting;return{shixunsDetail:t,globalSetting:a,loading:n.models.index}}))(c)}}]);