(window.webpackJsonp=window.webpackJsonp||[]).push([[135],{CRnD:function(te,J,v){"use strict";v.r(J);var re=v("DjyN"),V=v("NUBc"),W=v("9og8"),G=v("tJVT"),A=v("q1tI"),i=v.n(A);function K(l){var _=l.item,d=l.type,w=l.page;return i.a.createElement("div",{style:{display:"flex",alignItems:"center",flexDirection:"initial",height:"37px",background:"#ffffff",padding:"0px 15px"}},i.a.createElement("span",{style:{flex:"1"}},w===1?d+1:d+1+(w-1)*20),i.a.createElement("span",{style:{flex:"1"}},_.login||"--"),i.a.createElement("span",{style:{flex:"2"}},_.name||"--"),i.a.createElement("span",{style:{flex:"2"}},_.register_info||"--"),i.a.createElement("span",{style:{flex:"1"}},_.competition_info||"--"),i.a.createElement("span",{style:{flex:"2"}},_.ip||"--"),i.a.createElement("span",{style:{flex:"2"}},_.username||"--"))}var Q=K,Z=v("Ty5D"),q=v("ErOA");function B(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */B=function(){return l};var l={},_=Object.prototype,d=_.hasOwnProperty,w=typeof Symbol=="function"?Symbol:{},P=w.iterator||"@@iterator",F=w.asyncIterator||"@@asyncIterator",D=w.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(r,n,a){return r[n]=a}}function I(t,e,r,n){var a=e&&e.prototype instanceof x?e:x,o=Object.create(a.prototype),u=new b(n||[]);return o._invoke=function(E,g,s){var c="suspendedStart";return function(y,z){if(c==="executing")throw new Error("Generator is already running");if(c==="completed"){if(y==="throw")throw z;return Y()}for(s.method=y,s.arg=z;;){var $=s.delegate;if($){var H=N($,s);if(H){if(H===p)continue;return H}}if(s.method==="next")s.sent=s._sent=s.arg;else if(s.method==="throw"){if(c==="suspendedStart")throw c="completed",s.arg;s.dispatchException(s.arg)}else s.method==="return"&&s.abrupt("return",s.arg);c="executing";var C=M(E,g,s);if(C.type==="normal"){if(c=s.done?"completed":"suspendedYield",C.arg===p)continue;return{value:C.arg,done:s.done}}C.type==="throw"&&(c="completed",s.method="throw",s.arg=C.arg)}}}(t,r,u),o}function M(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}l.wrap=I;var p={};function x(){}function O(){}function L(){}var j={};f(j,P,function(){return this});var S=Object.getPrototypeOf,h=S&&S(S(X([])));h&&h!==_&&d.call(h,P)&&(j=h);var U=L.prototype=x.prototype=Object.create(j);function R(t){["next","throw","return"].forEach(function(e){f(t,e,function(r){return this._invoke(e,r)})})}function m(t,e){function r(a,o,u,E){var g=M(t[a],t,o);if(g.type!=="throw"){var s=g.arg,c=s.value;return c&&typeof c=="object"&&d.call(c,"__await")?e.resolve(c.__await).then(function(y){r("next",y,u,E)},function(y){r("throw",y,u,E)}):e.resolve(c).then(function(y){s.value=y,u(s)},function(y){return r("throw",y,u,E)})}E(g.arg)}var n;this._invoke=function(a,o){function u(){return new e(function(E,g){r(a,o,E,g)})}return n=n?n.then(u,u):u()}}function N(t,e){var r=t.iterator[e.method];if(r===void 0){if(e.delegate=null,e.method==="throw"){if(t.iterator.return&&(e.method="return",e.arg=void 0,N(t,e),e.method==="throw"))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=M(r,t.iterator,e.arg);if(n.type==="throw")return e.method="throw",e.arg=n.arg,e.delegate=null,p;var a=n.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,e.method!=="return"&&(e.method="next",e.arg=void 0),e.delegate=null,p):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function b(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function X(t){if(t){var e=t[P];if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length)){var r=-1,n=function a(){for(;++r=0;--a){var o=this.tryEntries[a],u=o.completion;if(o.tryLoc==="root")return n("end");if(o.tryLoc<=this.prev){var E=d.call(o,"catchLoc"),g=d.call(o,"finallyLoc");if(E&&g){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&d.call(a,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),p}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===e){var a=n.completion;if(a.type==="throw"){var o=a.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:X(e),resultName:r,nextLoc:n},this.method==="next"&&(this.arg=void 0),p}},l}function ee(l){var _=Object(Z.m)(),d=Object(A.useState)(1),w=Object(G.a)(d,2),P=w[0],F=w[1],D=Object(A.useState)(20),f=Object(G.a)(D,2),I=f[0],M=f[1],p=Object(A.useState)(),x=Object(G.a)(p,2),O=x[0],L=x[1],j=Object(A.useState)(),S=Object(G.a)(j,2),h=S[0],U=S[1];return Object(A.useEffect)(function(){function R(){return m.apply(this,arguments)}function m(){return m=Object(W.a)(B().mark(function N(){var T;return B().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,Object(q.a)("/api/user_agents.json",{method:"get",params:{page:P,per_page:I}});case 2:T=b.sent,T.status===0&&(L(T.data.user_agents),U(T.data));case 4:case"end":return b.stop()}},N)})),m.apply(this,arguments)}R()},[P]),i.a.createElement("div",{className:"edu-container minH500"},i.a.createElement("div",{className:"educontent mb20 persmstyle",style:{width:"1200px",marginTop:"26px"}},i.a.createElement("div",{style:{display:"flex",background:"#ffffff",height:"60px",alignItems:"center",padding:"0px 15px"}},i.a.createElement("span",null,"\u5F15\u6D41\u603B\u4EBA\u6570\uFF1A",h&&h.agents_count||"0"),i.a.createElement("span",{style:{marginLeft:"20px"}},"\u7ADE\u8D5B\u6210\u529F\u62A5\u540D\uFF1A",h&&h.action_count||"0")),i.a.createElement("div",{style:{marginTop:"1px",background:"#ffffff"}},i.a.createElement("div",{style:{display:"flex",alignItems:"center",flexDirection:"initial",height:"37px",background:"#ffffff",padding:"0px 15px"}},i.a.createElement("span",{style:{flex:"1"}},"\u5E8F\u53F7"),i.a.createElement("span",{style:{flex:"1"}},"\u4EE3\u7406\u4EBA\u767B\u5F55\u540D"),i.a.createElement("span",{style:{flex:"2"}},"\u4EE3\u7406\u4EBA\u59D3\u540D"),i.a.createElement("span",{style:{flex:"2"}},"\u6CE8\u518C\u60C5\u51B5"),i.a.createElement("span",{style:{flex:"1"}},"\u7ADE\u8D5B\u62A5\u540D"),i.a.createElement("span",{style:{flex:"2"}},"IP"),i.a.createElement("span",{style:{flex:"2"}},"\u5F15\u6D41\u4EBA\u59D3\u540D")),i.a.createElement("div",{style:{border:"1px solid #fafafa",minHeight:"400px"}},O&&O.map(function(R,m){return i.a.createElement(Q,{page:P,item:R,type:m})}))),h&&h.agents_count>20?i.a.createElement("div",{style:{justifyContent:"center",display:"flex",marginTop:"20px"}},i.a.createElement(V.a,{defaultCurrent:1,defaultPageSize:20,onChange:function(m,N){return F(m)},total:h&&h.agents_count})):""))}var ne=J.default=ee}}]);