"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[971],{42767:function(G,L,e){e.d(L,{Z:function(){return a}});var D=e(5574),o=e.n(D),I=e(55241),m=e(2487),M=e(71230),y=e(7134),d=e(67294),h=e(52043),t=e(15009),v=e.n(t),g=e(97857),j=e.n(g),b=e(99289),f=e.n(b),_=e(40110),U=e(67539),A=e(55102),c=e(42075),T=e(14726),z=e(17788),R=e(4575),r=e(85893),B=function(u){var s=(0,d.useState)(),n=o()(s,2),Z=n[0],V=n[1],K=(0,d.useState)(),w=o()(K,2),$=w[0],X=w[1],Y=[{title:"\u5E94\u7528\u540D",dataIndex:"appName",ellipsis:!0,hideInSearch:!0,filterDropdown:function(l){var p=l.setSelectedKeys,O=l.selectedKeys,P=l.confirm,S=l.clearFilters;return(0,r.jsxs)("div",{style:{padding:8},children:[(0,r.jsx)(A.Z,{placeholder:"\u641C\u7D22\u5E94\u7528",value:O[0],onChange:function(E){return p(E.target.value?[E.target.value]:[])},onPressEnter:function(){return P()},style:{marginBottom:8,display:"block"}}),(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(T.ZP,{onClick:function(){return P()},type:"primary",children:"\u641C\u7D22"}),(0,r.jsx)(T.ZP,{onClick:function(){return S&&S()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(l,p){return typeof l=="string"&&typeof(p==null?void 0:p.appName)=="string"?p.appName.includes(l):!1},filterIcon:function(l){return(0,r.jsx)(_.Z,{style:{color:l?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u5E94\u7528\u5305\u540D",dataIndex:"packageName",hideInSearch:!0,ellipsis:!0,filterDropdown:function(l){var p=l.setSelectedKeys,O=l.selectedKeys,P=l.confirm,S=l.clearFilters;return(0,r.jsxs)("div",{style:{padding:8},children:[(0,r.jsx)(A.Z,{placeholder:"\u641C\u7D22\u5305\u540D",value:O[0],onChange:function(E){return p(E.target.value?[E.target.value]:[])},onPressEnter:function(){return P()},style:{marginBottom:8,display:"block"}}),(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(T.ZP,{onClick:function(){return P()},type:"primary",children:"\u641C\u7D22"}),(0,r.jsx)(T.ZP,{onClick:function(){return S&&S()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(l,p){return typeof l=="string"&&typeof(p==null?void 0:p.packageName)=="string"?p.packageName.includes(l):!1},filterIcon:function(l){return(0,r.jsx)(_.Z,{style:{color:l?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}}],H=function(){var C=f()(v()().mark(function l(){var p,O,P,S;return v()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,(0,R.ai)();case 2:p=E.sent,p.data&&(P=[],S=[],(O=u.data.localAppList)===null||O===void 0||O.forEach(function(N){var k;(k=p.data)!==null&&k!==void 0&&k.some(function(J){return J.packageName===N.packageName})?P.push(j()(j()({},N),{},{evil:!0})):S.push(j()(j()({},N),{},{evil:!1}))}),V([].concat(P,S)),X([].concat(P,S)));case 4:case"end":return E.stop()}},l)}));return function(){return C.apply(this,arguments)}}();return(0,d.useEffect)(function(){H()},[]),(0,r.jsx)(z.Z,{style:{width:600},onCancel:u.onClose,visible:!0,footer:[],children:(0,r.jsx)(U.Z,{onRow:function(l){return{style:{backgroundColor:l.evil?"red":"transparent"}}},search:!1,onReset:function(){X(Z)},columns:Y,dataSource:$})})},W=B,F=function(u){var s=(0,d.useState)(!1),n=o()(s,2),Z=n[0],V=n[1],K=(0,h.E7)(u.data.env);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(I.Z,{content:(0,r.jsxs)(r.Fragment,{children:[u.data.localAppList&&u.data.localAppList.length>0&&(0,r.jsxs)("p",{children:[(0,r.jsx)("label",{children:"\u5DF2\u5B89\u88C5\u5E94\u7528\uFF1A"}),u.data.localAppList.length,"\u4E2A",(0,r.jsx)("a",{onClick:function(){V(!0)},style:{marginLeft:20},children:"\u67E5\u770B"})]}),K.length>0&&(0,r.jsx)(m.Z,{size:"small",header:(0,r.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:K,renderItem:function($){return(0,r.jsx)(m.Z.Item,{children:$})}})]}),children:(0,r.jsxs)(M.Z,{children:[(0,r.jsx)(y.C,{src:u.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,r.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:K.length>0?"red":""},children:["id:",u.data.id,(0,r.jsx)("br",{}),u.data.nickname||u.data.mobile]})]})}),Z&&(0,r.jsx)(W,{onClose:function(){V(!1)},data:u.data})]})},a=F},81072:function(G,L,e){e.d(L,{fn:function(){return j},pb:function(){return v},wv:function(){return h}});var D=e(15009),o=e.n(D),I=e(97857),m=e.n(I),M=e(99289),y=e.n(M),d=e(35312);function h(f,_){return t.apply(this,arguments)}function t(){return t=y()(o()().mark(function f(_,U){return o()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,d.request)("/api/admin/user/changeStatus",m()({method:"POST",params:m()({},_)},U||{})));case 1:case"end":return c.stop()}},f)})),t.apply(this,arguments)}function v(f,_){return g.apply(this,arguments)}function g(){return g=y()(o()().mark(function f(_,U){return o()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,d.request)("/api/admin/user/list",m()({method:"POST",headers:{"Content-Type":"application/json"},data:_},U||{})));case 1:case"end":return c.stop()}},f)})),g.apply(this,arguments)}function j(f,_){return b.apply(this,arguments)}function b(){return b=y()(o()().mark(function f(_,U){return o()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,d.request)("/api/admin/user/queryById",m()({method:"GET",params:m()({},_)},U||{})));case 1:case"end":return c.stop()}},f)})),b.apply(this,arguments)}},4575:function(G,L,e){e.d(L,{XM:function(){return f},ai:function(){return v},nr:function(){return W},vE:function(){return c}});var D=e(15009),o=e.n(D),I=e(97857),m=e.n(I),M=e(99289),y=e.n(M),d=e(35312);function h(a,i){return t.apply(this,arguments)}function t(){return t=_asyncToGenerator(_regeneratorRuntime().mark(function a(i,u){return _regeneratorRuntime().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",request("/api/admin/superAdmin/addSchedule",_objectSpread({method:"POST",headers:{"Content-Type":"application/json"},data:i},u||{})));case 1:case"end":return n.stop()}},a)})),t.apply(this,arguments)}function v(a){return g.apply(this,arguments)}function g(){return g=y()(o()().mark(function a(i){return o()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,d.request)("/api/admin/superAdmin/evilAppList",m()({method:"GET"},i||{})));case 1:case"end":return s.stop()}},a)})),g.apply(this,arguments)}function j(a){return b.apply(this,arguments)}function b(){return b=_asyncToGenerator(_regeneratorRuntime().mark(function a(i){return _regeneratorRuntime().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",request("/api/admin/superAdmin/innerUserList",_objectSpread({method:"GET"},i||{})));case 1:case"end":return s.stop()}},a)})),b.apply(this,arguments)}function f(a,i){return _.apply(this,arguments)}function _(){return _=y()(o()().mark(function a(i,u){return o()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,d.request)("/api/admin/superAdmin/saveEvilApp",m()({method:"POST",headers:{"Content-Type":"application/json"},data:i},u||{})));case 1:case"end":return n.stop()}},a)})),_.apply(this,arguments)}function U(a,i){return A.apply(this,arguments)}function A(){return A=_asyncToGenerator(_regeneratorRuntime().mark(function a(i,u){return _regeneratorRuntime().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",request("/api/admin/superAdmin/saveInnerUser",_objectSpread({method:"POST",params:_objectSpread({},i)},u||{})));case 1:case"end":return n.stop()}},a)})),A.apply(this,arguments)}function c(a,i){return T.apply(this,arguments)}function T(){return T=y()(o()().mark(function a(i,u){return o()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,d.request)("/api/admin/superAdmin/saveWhiteUser",m()({method:"POST",params:m()({},i)},u||{})));case 1:case"end":return n.stop()}},a)})),T.apply(this,arguments)}function z(a){return R.apply(this,arguments)}function R(){return R=_asyncToGenerator(_regeneratorRuntime().mark(function a(i){return _regeneratorRuntime().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",request("/api/admin/superAdmin/scheduleList",_objectSpread({method:"GET"},i||{})));case 1:case"end":return s.stop()}},a)})),R.apply(this,arguments)}function r(a,i){return B.apply(this,arguments)}function B(){return B=_asyncToGenerator(_regeneratorRuntime().mark(function a(i,u){return _regeneratorRuntime().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",request("/api/admin/superAdmin/transfer",_objectSpread({method:"POST",params:_objectSpread({},i)},u||{})));case 1:case"end":return n.stop()}},a)})),B.apply(this,arguments)}function W(a){return F.apply(this,arguments)}function F(){return F=y()(o()().mark(function a(i){return o()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,d.request)("/api/admin/superAdmin/whiteUserList",m()({method:"GET"},i||{})));case 1:case"end":return s.stop()}},a)})),F.apply(this,arguments)}},52043:function(G,L,e){e.d(L,{E7:function(){return o},FG:function(){return D},aV:function(){return y}});var D=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},o=function(h){var t=[];if(!h)return t;for(var v=h>>1,g=["\u7528\u6237\u6253\u5F00\u4E86USB\u8C03\u8BD5\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u5F00\u53D1\u8005\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u65E0\u969C\u788D\u6A21\u5F0F","\u7528\u6237\u624B\u673A\u5DF2\u7ECFRoot","\u7528\u6237\u5B89\u88C5\u4E86Xpose","\u7528\u6237\u5F00\u542F\u4E86VPN","\u7528\u6237\u5F00\u542F\u4EE3\u7406","\u652F\u4ED8\u5B9D\u672A\u5B89\u88C5","\u5FAE\u4FE1\u672A\u5B89\u88C5"],j=0,b=g;j>=1}return t},I=function(){return[{label:"\u5F85\u5BA1\u6279",value:"0",color:"orange"},{label:"\u5BA1\u6279\u901A\u8FC7",value:"1",color:"green"},{label:"\u8F6C\u8D26\u4E2D",value:"2",color:"orange"},{label:"\u8F6C\u8D26\u6210\u529F",value:"3",color:"green"},{label:"\u8F6C\u8D26\u5931\u8D25",value:"-1",color:"red"},{label:"\u5BA1\u6279\u62D2\u7EDD",value:"-2",color:"red"}]},m=function(h){var t=new Date(h),v=t.getFullYear().toString().padStart(4,"0"),g=(t.getMonth()+1).toString().padStart(2,"0"),j=t.getDate().toString().padStart(2,"0");return v+g+j},M=function(h,t){var v=h.toString();return v.padStart(t,"0")},y=function(h){var t=h;return t<1024?t+" B":(t=parseFloat((t/1024).toFixed(2)),t<1024?t+" KB":(t=parseFloat((t/1024).toFixed(2)),t+" MB"))}}}]);