"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[455],{3089:function(te,k,n){n.d(k,{Z:function(){return s}});var T=n(1413),D=n(67294),R={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},O=R,q=n(91146),l=function(p,y){return D.createElement(q.Z,(0,T.Z)((0,T.Z)({},p),{},{ref:y,icon:O}))},B=D.forwardRef(l),s=B},38996:function(te,k,n){n.r(k),n.d(k,{default:function(){return _e}});var T=n(97857),D=n.n(T),R=n(13769),O=n.n(R),q=n(15009),l=n.n(q),B=n(99289),s=n.n(B),h=n(5574),p=n.n(h),y=n(48357),A=n(52043),G=n(1413),g=n(67294),de=n(509),ae=n(91146),ue=function(x,Z){return g.createElement(ae.Z,(0,G.Z)((0,G.Z)({},x),{},{ref:Z,icon:de.Z}))},se=g.forwardRef(ue),ie=se,Pe=n(3089),be=n(90930),I=n(8232),$=n(55102),le=n(42075),M=n(14726),Me=n(55241),pe=n(66309),ne=n(2453),Oe=n(13169),Ce=n(72051),fe=n(17788),xe=n(34041),Be=n(71230),Se=n(15746),ke=n(47676),oe=n(16250),Te=n(27484),me=n.n(Te),Ue=n(19632),Ee=n.n(Ue),Ke=n(32400),we=n(56448),Le=n.n(we),Re=n(66476),e=n(85893),We=function(x){var Z=x.onUploadSuccess,j=x.onUploadError,F=(0,g.useState)(!1),z=p()(F,2),W=z[0],Y=z[1],_=(0,g.useState)([]),X=p()(_,2),K=X[0],N=X[1],V=(0,g.useState)(null),J=p()(V,2),w=J[0],U=J[1],L=Re.Z.Dragger;(0,g.useEffect)(function(){function r(){return t.apply(this,arguments)}function t(){return t=s()(l()().mark(function m(){var u,c;return l()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.prev=0,v.next=3,(0,y.po)();case 3:if(u=v.sent,!(!u.data||!u.data.accessKeySecret||!u.data.accessKeyId)){v.next=7;break}return ne.ZP.error("\u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),v.abrupt("return");case 7:c=new(Le())({region:"oss-cn-beijing",accessKeyId:u.data.accessKeyId,accessKeySecret:u.data.accessKeySecret,stsToken:u.data.securityToken,bucket:u.data.bucket}),U(c),v.next=15;break;case 11:v.prev=11,v.t0=v.catch(0),ne.ZP.error("\u521D\u59CB\u5316 OSS \u5BA2\u6237\u7AEF\u5931\u8D25"),j&&j(v.t0);case 15:case"end":return v.stop()}},m,null,[[0,11]])})),t.apply(this,arguments)}r()},[j]);var Q=function(t){var m=(K||[]).filter(function(u){return u.url!==t.url});N(m)},d=function(){var r=s()(l()().mark(function t(m){var u,c,S,v;return l()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(u=m.file,!(u instanceof File)){C.next=26;break}return Y(!0),C.prev=3,C.next=6,(0,Ke.p)(u);case 6:return c=C.sent,S="matrix/".concat(c,".").concat(u.name.split(".").pop()),C.next=10,w==null?void 0:w.put(S,u,{headers:{"Content-Type":u.type}});case 10:v="https://apks.bzgames.cn/".concat(S),Z&&Z(v),Y(!1),N(function(ce){return[].concat(Ee()(ce),[{uid:u.uid,name:u.name+"\uFF1A"+v,status:"done",url:v}])}),C.next=21;break;case 16:C.prev=16,C.t0=C.catch(3),ne.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"),j&&j(C.t0),N(function(ce){return[].concat(Ee()(ce),[{uid:u.uid,name:u.name,status:"error"}])});case 21:return C.prev=21,Y(!1),C.finish(21);case 24:C.next=27;break;case 26:ne.ZP.error("\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B\u9519\u8BEF");case 27:case"end":return C.stop()}},t,null,[[3,16,21,24]])}));return function(m){return r.apply(this,arguments)}}();return(0,e.jsxs)(L,{fileList:K,multiple:!0,customRequest:d,onRemove:Q,disabled:W||!w,onPreview:function(){var r=s()(l()().mark(function t(m){return l()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,navigator.clipboard.writeText(m.url||"");case 2:ne.ZP.success("\u94FE\u63A5\u590D\u5236\u6210\u529F "+m.url);case 3:case"end":return c.stop()}},t)}));return function(t){return r.apply(this,arguments)}}(),capture:void 0,children:[(0,e.jsx)("p",{className:"ant-upload-drag-icon",children:(0,e.jsx)("i",{className:"anticon anticon-inbox"})}),(0,e.jsx)("p",{className:"ant-upload-text",children:"\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20"}),(0,e.jsx)("p",{className:"ant-upload-hint",children:"\u652F\u6301\u5355\u4E2A\u6216\u6279\u91CF\u4E0A\u4F20\u3002\u6587\u4EF6\u540D\u5C06\u4F7F\u7528\u6587\u4EF6\u7684 MD5 \u503C\u547D\u540D\u3002"})]})},$e=We,De=n(67539),ve=n(35312);function Ye(P){return he.apply(this,arguments)}function he(){return he=s()(l()().mark(function P(x){return l()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",(0,ve.request)("/api/superAdmin/evilAppList",D()({method:"GET"},x||{})));case 1:case"end":return j.stop()}},P)})),he.apply(this,arguments)}function Ne(P,x){return ge.apply(this,arguments)}function ge(){return ge=s()(l()().mark(function P(x,Z){return l()().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.abrupt("return",(0,ve.request)("/api/superAdmin/saveEvilApp",D()({method:"POST",headers:{"Content-Type":"application/json"},data:x},Z||{})));case 1:case"end":return F.stop()}},P)})),ge.apply(this,arguments)}function Ie(P,x){return je.apply(this,arguments)}function je(){return je=s()(l()().mark(function P(x,Z){return l()().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.abrupt("return",(0,ve.request)("/api/superAdmin/saveWhiteUser",D()({method:"POST",params:D()({},x)},Z||{})));case 1:case"end":return F.stop()}},P)})),je.apply(this,arguments)}function Ve(P){return ye.apply(this,arguments)}function ye(){return ye=s()(l()().mark(function P(x){return l()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",(0,ve.request)("/api/superAdmin/whiteUserList",D()({method:"GET"},x||{})));case 1:case"end":return j.stop()}},P)})),ye.apply(this,arguments)}var He=function(){var x=(0,g.useState)(!1),Z=p()(x,2),j=Z[0],F=Z[1],z=(0,g.useState)([]),W=p()(z,2),Y=W[0],_=W[1],X=(0,g.useState)([]),K=p()(X,2),N=K[0],V=K[1],J=I.Z.useForm(),w=p()(J,1),U=w[0],L=[{title:"\u5E94\u7528\u540D",dataIndex:"name",copyable:!0,hideInSearch:!0,filterDropdown:function(r){var t=r.setSelectedKeys,m=r.selectedKeys,u=r.confirm,c=r.clearFilters;return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)($.Z,{placeholder:"\u641C\u7D22\u5E94\u7528",value:m[0],onChange:function(v){return t(v.target.value?[v.target.value]:[])},onPressEnter:function(){return u()},style:{marginBottom:8,display:"block"}}),(0,e.jsxs)(le.Z,{children:[(0,e.jsx)(M.ZP,{onClick:function(){return u()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(M.ZP,{onClick:function(){return c&&c()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(r,t){return typeof r=="string"&&typeof(t==null?void 0:t.name)=="string"?t.name.includes(r):!1},filterIcon:function(r){return(0,e.jsx)(ie,{style:{color:r?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u5E94\u7528\u5305\u540D",dataIndex:"packageName",hideInSearch:!0,filterDropdown:function(r){var t=r.setSelectedKeys,m=r.selectedKeys,u=r.confirm,c=r.clearFilters;return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)($.Z,{placeholder:"\u641C\u7D22\u5305\u540D",value:m[0],onChange:function(v){return t(v.target.value?[v.target.value]:[])},onPressEnter:function(){return u()},style:{marginBottom:8,display:"block"}}),(0,e.jsxs)(le.Z,{children:[(0,e.jsx)(M.ZP,{onClick:function(){return u()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(M.ZP,{onClick:function(){return c&&c()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(r,t){return typeof r=="string"&&typeof(t==null?void 0:t.packageName)=="string"?t.packageName.includes(r):!1},filterIcon:function(r){return(0,e.jsx)(ie,{style:{color:r?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u64CD\u4F5C",width:80,hideInSearch:!0,renderText:function(r){return(0,e.jsx)("a",{onClick:function(){F(!0),U.setFieldsValue(r)},children:"\u7F16\u8F91"},"edit")}}],Q=function(){var d=s()(l()().mark(function r(){var t;return l()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Ye();case 2:t=u.sent,t.data&&(_(t.data),V(t.data));case 4:case"end":return u.stop()}},r)}));return function(){return d.apply(this,arguments)}}();return(0,g.useEffect)(function(){Q()},[]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(M.ZP,{style:{marginBottom:"20px"},onClick:function(){F(!0),U.resetFields()},children:"\u65B0\u5EFA\u5E94\u7528"}),(0,e.jsx)(De.Z,{search:!1,onReset:function(){V(Y)},columns:L,dataSource:N}),(0,e.jsx)(fe.Z,{title:"\u7F16\u8F91",visible:j,onOk:function(){U.submit(),F(!1)},onCancel:function(){F(!1)},children:(0,e.jsxs)(I.Z,{labelCol:{span:4},wrapperCol:{span:18},form:U,onFinish:function(){var d=s()(l()().mark(function r(t){return l()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Ne(t);case 2:Q();case 3:case"end":return u.stop()}},r)}));return function(r){return d.apply(this,arguments)}}(),children:[(0,e.jsx)(I.Z.Item,{name:"id",style:{display:"none"},children:(0,e.jsx)($.Z,{type:"hidden"})}),(0,e.jsx)(I.Z.Item,{label:"\u5E94\u7528\u540D",name:"name",children:(0,e.jsx)($.Z,{})}),(0,e.jsx)(I.Z.Item,{label:"\u5305\u540D",name:"packageName",children:(0,e.jsx)($.Z,{})})]})})]})},Ge=He,Ze=n(37804),ze=n(38171),Xe=function(){var x=(0,g.useState)(!1),Z=p()(x,2),j=Z[0],F=Z[1],z=(0,g.useState)([]),W=p()(z,2),Y=W[0],_=W[1],X=(0,g.useState)([]),K=p()(X,2),N=K[0],V=K[1],J=I.Z.useForm(),w=p()(J,1),U=w[0],L=function(){var d=s()(l()().mark(function r(){var t;return l()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Ve();case 2:t=u.sent,t.data&&(_(t.data),V(t.data));case 4:case"end":return u.stop()}},r)}));return function(){return d.apply(this,arguments)}}(),Q=[{title:"\u5E94\u7528\u540D",dataIndex:"appName",copyable:!0,hideInSearch:!0,filterDropdown:function(r){var t=r.setSelectedKeys,m=r.selectedKeys,u=r.confirm,c=r.clearFilters;return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)($.Z,{placeholder:"\u641C\u7D22\u5E94\u7528",value:m[0],onChange:function(v){return t(v.target.value?[v.target.value]:[])},onPressEnter:function(){return u()},style:{marginBottom:8,display:"block"}}),(0,e.jsxs)(le.Z,{children:[(0,e.jsx)(M.ZP,{onClick:function(){return u()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(M.ZP,{onClick:function(){return c&&c()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(r,t){return typeof r=="string"&&typeof(t==null?void 0:t.appName)=="string"?t.appName.includes(r):!1},filterIcon:function(r){return(0,e.jsx)(ie,{style:{color:r?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u7528\u6237",dataIndex:"user",hideInSearch:!0,render:function(r,t){return(0,e.jsx)(ze.Z,{data:t.user||{}})},filterDropdown:function(r){var t=r.setSelectedKeys,m=r.selectedKeys,u=r.confirm,c=r.clearFilters,S=m[0]?String(m[0]):"";return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)(Ze.Z,{placeholder:"\u641C\u7D22 userId",value:S,onChange:function(ee){return t(ee?[ee]:[])},onPressEnter:function(){return u()},style:{marginBottom:8,display:"block",width:200}}),(0,e.jsxs)(le.Z,{children:[(0,e.jsx)(M.ZP,{onClick:function(){return u()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(M.ZP,{onClick:function(){return c&&c()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(r,t){var m;return((m=t.user)===null||m===void 0?void 0:m.id)===r},filterIcon:function(r){return(0,e.jsx)(ie,{style:{color:r?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u72B6\u6001",hideInSearch:!0,renderText:function(r){return r.status===0?(0,e.jsx)(pe.Z,{color:"green",children:"\u5DF2\u542F\u7528"}):(0,e.jsx)(pe.Z,{color:"red",children:"\u672A\u542F\u7528"})}},{title:"\u521B\u5EFA\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u4FEE\u6539\u65F6\u95F4",hideInSearch:!0,dataIndex:"updatedAt",valueType:"dateTime"},{title:"\u64CD\u4F5C",width:80,hideInSearch:!0,renderText:function(r){return(0,e.jsx)("a",{onClick:s()(l()().mark(function t(){var m;return l()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,Ie({userId:((m=r.user)===null||m===void 0?void 0:m.id)||0,status:r.status===0?-1:0});case 2:L();case 3:case"end":return c.stop()}},t)})),children:r.status===0?"\u7981\u7528":"\u542F\u7528"},"edit")}}];return(0,g.useEffect)(function(){L()},[]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(M.ZP,{style:{marginBottom:"20px"},onClick:function(){F(!0),U.resetFields()},children:"\u6DFB\u52A0\u767D\u540D\u5355"}),(0,e.jsx)(De.Z,{search:!1,onReset:function(){V(Y)},columns:Q,dataSource:N}),(0,e.jsx)(fe.Z,{title:"\u7F16\u8F91",visible:j,onOk:function(){U.submit(),F(!1)},onCancel:function(){F(!1)},children:(0,e.jsx)(I.Z,{labelCol:{span:4},wrapperCol:{span:18},form:U,onFinish:function(){var d=s()(l()().mark(function r(t){var m;return l()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(m=t.userId,!m){c.next=5;break}return c.next=4,Ie({userId:m});case 4:L();case 5:case"end":return c.stop()}},r)}));return function(r){return d.apply(this,arguments)}}(),children:(0,e.jsx)(I.Z.Item,{label:"userId",name:"userId",children:(0,e.jsx)(Ze.Z,{style:{width:200}})})})})]})},Je=Xe,Qe=["scheduleTime"],qe=function(){var x=(0,g.useState)([]),Z=p()(x,2),j=Z[0],F=Z[1],z=(0,g.useState)([]),W=p()(z,2),Y=W[0],_=W[1],X=(0,g.useState)([]),K=p()(X,2),N=K[0],V=K[1],J=(0,g.useState)(!1),w=p()(J,2),U=w[0],L=w[1],Q=(0,g.useState)(!1),d=p()(Q,2),r=d[0],t=d[1],m=I.Z.useForm(),u=p()(m,1),c=u[0],S=I.Z.useForm(),v=p()(S,1),ee=v[0],C=function(){var f=s()(l()().mark(function a(){var o;return l()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,y.hy)();case 2:o=i.sent,o.data&&_(o.data);case 4:case"end":return i.stop()}},a)}));return function(){return f.apply(this,arguments)}}(),ce=function(){var f=s()(l()().mark(function a(o){return l()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(o){i.next=2;break}return i.abrupt("return");case 2:return i.next=4,(0,y.o9)({deviceId:o});case 4:C();case 5:case"end":return i.stop()}},a)}));return function(o){return f.apply(this,arguments)}}(),en=[{title:"\u8BBE\u5907id",dataIndex:"deviceId",ellipsis:!0,filterDropdown:function(a){var o=a.setSelectedKeys,E=a.selectedKeys,i=a.confirm,H=a.clearFilters;return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)($.Z,{placeholder:"\u641C\u7D22\u8BBE\u5907",value:E[0],onChange:function(b){return o(b.target.value?[b.target.value]:[])},onPressEnter:function(){return i()},style:{marginBottom:8,display:"block"}}),(0,e.jsxs)(le.Z,{children:[(0,e.jsx)(M.ZP,{onClick:function(){return i()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(M.ZP,{onClick:function(){return H&&H()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(a,o){return typeof a=="string"&&typeof(o==null?void 0:o.deviceId)=="string"?o.deviceId.includes(a):!1},filterIcon:function(a){return(0,e.jsx)(ie,{style:{color:a?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u6E20\u9053",dataIndex:"channel",render:function(a){var o=(0,A.FG)(),E=o.find(function(i){return i.value===a});return E?E.label:a}},{title:"\u64CD\u4F5C",dataIndex:"operate",render:function(a,o){return(0,e.jsx)(Me.Z,{title:"\u786E\u8BA4\u5220\u9664\u5417",content:(0,e.jsxs)("div",{style:{textAlign:"center"},children:[(0,e.jsxs)("p",{children:["\u5220\u9664\u4E4B\u540Eecpm\u4F1A\u964D\u4F4E",(0,e.jsx)("br",{}),"\u4E5F\u4F1A\u5F71\u54CD\u5237\u6570\u636E\u53EF\u4F7F\u7528\u7684\u8BBE\u5907"]}),(0,e.jsx)("a",{onClick:function(){return ce(o.deviceId)},children:"\u786E\u5B9A"})]}),children:(0,e.jsx)("a",{children:"\u5220\u9664"})})}}],nn=function(a){var o=j.find(function(E){return E.id===a});return o?o.name:""},rn=function(a){return a?parseFloat((a/1e5).toFixed(2)):0},tn=[{title:"\u5E94\u7528",dataIndex:"appId",render:function(a){return(0,e.jsx)(pe.Z,{color:"blue",children:nn(a)},a)}},{title:"\u6E20\u9053",dataIndex:"channel",render:function(a){var o=(0,A.FG)(),E=o.find(function(i){return i.value===a});return E?E.label:a}},{title:"\u76EE\u6807\u91D1\u989D",dataIndex:"incomeYuan"},{title:"\u5DF2\u5237\u91D1\u989D",dataIndex:"mockIncome",render:function(a){return rn(a)}},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"scheduleTime",render:function(a){return me()(a).format("YYYY-MM-DD HH:mm")}},{title:"\u72B6\u6001",dataIndex:"status",render:function(a){switch(a){case 0:return"\u672A\u5F00\u59CB";case 1:return"\u8FDB\u884C\u4E2D";case 2:return"\u5DF2\u5B8C\u6210"}return a}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createdAt",render:function(a){return me()(a).format("YYYY-MM-DD HH:mm")}},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updatedAt",render:function(a){return me()(a).format("YYYY-MM-DD HH:mm")}}],Fe=function(){var f=s()(l()().mark(function a(){var o;return l()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,y.mW)();case 2:o=i.sent,o.data&&V(o.data);case 4:case"end":return i.stop()}},a)}));return function(){return f.apply(this,arguments)}}(),an=function(){var f=s()(l()().mark(function a(){var o;return l()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,y.ln)();case 2:o=i.sent,o.data&&F(o.data);case 4:case"end":return i.stop()}},a)}));return function(){return f.apply(this,arguments)}}();(0,g.useEffect)(function(){an(),C(),Fe()},[]);var un=function(){var f=s()(l()().mark(function a(o){var E,i,H;return l()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return E=o.scheduleTime,i=O()(o,Qe),H=E.map(function(Ae){return me()(Ae.time).valueOf()}),b.prev=2,b.next=5,(0,y.tI)(D()({scheduleTime:H},i));case 5:b.next=10;break;case 7:return b.prev=7,b.t0=b.catch(2),b.abrupt("return");case 10:ne.ZP.success("\u4EFB\u52A1\u63D0\u4EA4\u6210\u529F"),Fe(),t(!1);case 13:case"end":return b.stop()}},a,null,[[2,7]])}));return function(o){return f.apply(this,arguments)}}(),sn=function(){c.resetFields(),L(!0)},ln=function(){ee.resetFields(),t(!0)},on=function(){c.submit()},cn=function(){L(!1)},dn=function(){ee.submit()},fn=function(){t(!1)},mn=function(){var f=s()(l()().mark(function a(o){return l()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,(0,y.gz)({deviceId:o.deviceId||"",channel:o.channel||""});case 3:i.next=8;break;case 5:return i.prev=5,i.t0=i.catch(0),i.abrupt("return");case 8:L(!1),C();case 10:case"end":return i.stop()}},a,null,[[0,5]])}));return function(o){return f.apply(this,arguments)}}();return(0,e.jsx)(be._z,{children:(0,e.jsxs)(Oe.Z,{defaultActiveKey:"1",onChange:function(a){a==="1"?C():a==="2"&&Fe()},centered:!0,style:{backgroundColor:"white",padding:"20px"},children:[(0,e.jsx)(oe.Z,{tab:"\u8BBE\u5907\u767D\u540D\u5355",children:(0,e.jsxs)("div",{children:[(0,e.jsx)(M.ZP,{onClick:sn,children:"\u6DFB\u52A0\u767D\u540D\u5355"}),(0,e.jsx)(Ce.Z,{columns:en,dataSource:Y}),(0,e.jsx)(fe.Z,{title:"\u6DFB\u52A0\u767D\u540D\u5355",visible:U,onOk:on,onCancel:cn,children:(0,e.jsxs)(I.Z,{form:c,onFinish:mn,children:[(0,e.jsx)(I.Z.Item,{name:"deviceId",label:"\u8BBE\u5907id",children:(0,e.jsx)($.Z,{})}),(0,e.jsx)(I.Z.Item,{label:"\u6E20\u9053",name:"channel",children:(0,e.jsx)(xe.Z,{options:(0,A.FG)()})})]})})]})},"1"),(0,e.jsx)(oe.Z,{tab:"\u5237\u6570\u636E",children:(0,e.jsxs)("div",{children:[(0,e.jsx)(M.ZP,{onClick:ln,children:"\u6DFB\u52A0\u4EFB\u52A1"}),(0,e.jsx)(Ce.Z,{columns:tn,dataSource:N}),(0,e.jsx)(fe.Z,{title:"\u6DFB\u52A0\u4EFB\u52A1",visible:r,onOk:dn,onCancel:fn,children:(0,e.jsxs)(I.Z,{labelCol:{span:6},wrapperCol:{span:18},form:ee,onFinish:un,children:[(0,e.jsx)(I.Z.Item,{label:"\u5E94\u7528",name:"appId",children:(0,e.jsx)(xe.Z,{mode:"multiple",options:j.map(function(f){return{label:f.name,value:f.id}})})}),(0,e.jsx)(I.Z.Item,{name:"incomeYuan",label:"\u91D1\u989D\uFF08\u5143\uFF09",children:(0,e.jsx)($.Z,{})}),(0,e.jsx)(I.Z.List,{name:"scheduleTime",children:function(a,o){var E=o.add,i=o.remove;return(0,e.jsxs)(e.Fragment,{children:[a.map(function(H){var re=H.key,b=H.name;return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(Be.Z,{align:"stretch",gutter:16,children:[(0,e.jsx)(Se.Z,{span:18,children:(0,e.jsx)(I.Z.Item,{labelCol:{xs:{span:24},sm:{span:8}},name:[b,"time"],label:"\u5F00\u59CB\u65F6\u95F4",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"}],children:(0,e.jsx)(ke.default,{format:"YYYY-MM-DD HH:mm",showTime:{format:"HH:mm"}})})}),(0,e.jsx)(Se.Z,{children:(0,e.jsx)(Pe.Z,{onClick:function(){return i(b)}})})]},re)})}),(0,e.jsx)(I.Z.Item,{children:(0,e.jsx)(M.ZP,{type:"dashed",onClick:function(){return E()},block:!0,children:"\u6DFB\u52A0\u5F00\u59CB\u65F6\u95F4"})})]})}})]})})]})},"2"),(0,e.jsx)(oe.Z,{tab:"\u4E0A\u4F20\u8D44\u6E90",children:(0,e.jsx)($e,{})},"3"),(0,e.jsx)(oe.Z,{tab:"\u975E\u6CD5\u5E94\u7528",children:(0,e.jsx)(Ge,{})},"4"),(0,e.jsx)(oe.Z,{tab:"\u7528\u6237\u767D\u540D\u5355",children:(0,e.jsx)(Je,{})},"5")]})})},_e=qe},38171:function(te,k,n){var T=n(55241),D=n(2487),R=n(71230),O=n(7134),q=n(67294),l=n(52043),B=n(58125),s=n(85893),h=function(y){var A=(0,l.E7)(y.data.env);return(0,s.jsx)(T.Z,{content:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{children:[(0,s.jsx)("label",{children:"\u603B\u6536\u5165\uFF1A"}),(0,B.P)(y.data.income),"\u5143"]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("label",{children:"\u5DF2\u63D0\u73B0\uFF1A"}),(0,B.D)(y.data.realMoney),"\u5143"]}),A.length>0&&(0,s.jsx)(D.Z,{size:"small",header:(0,s.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:A,renderItem:function(g){return(0,s.jsx)(D.Z.Item,{children:g})}})]}),children:(0,s.jsxs)(R.Z,{children:[(0,s.jsx)(O.C,{src:y.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,s.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:A.length>0?"red":""},children:["id:",y.data.id,(0,s.jsx)("br",{}),y.data.nickname||y.data.mobile]})]})})};k.Z=h},52043:function(te,k,n){n.d(k,{E7:function(){return D},FG:function(){return T},aV:function(){return l}});var T=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},D=function(s){var h=[];if(!s)return h;for(var p=s>>1,y=["\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"],A=0,G=y;A>=1}return h},R=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"}]},O=function(s){var h=new Date(s),p=h.getFullYear().toString().padStart(4,"0"),y=(h.getMonth()+1).toString().padStart(2,"0"),A=h.getDate().toString().padStart(2,"0");return p+y+A},q=function(s,h){var p=s.toString();return p.padStart(h,"0")},l=function(s){var h=s;return h<1024?h+" B":(h=parseFloat((h/1024).toFixed(2)),h<1024?h+" KB":(h=parseFloat((h/1024).toFixed(2)),h+" MB"))}},32400:function(te,k,n){n.d(k,{p:function(){return B}});var T=n(15009),D=n.n(T),R=n(99289),O=n.n(R),q=n(8322),l=n.n(q);function B(h){return s.apply(this,arguments)}function s(){return s=O()(D()().mark(function h(p){return D()().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.abrupt("return",new Promise(function(G,g){var de=new(l()).ArrayBuffer,ae=new FileReader;ae.onload=function(ue){var se;de.append((se=ue.target)===null||se===void 0?void 0:se.result),G(de.end())},ae.onerror=function(ue){g(ue)},ae.readAsArrayBuffer(p)}));case 1:case"end":return A.stop()}},h)})),s.apply(this,arguments)}},58125:function(te,k,n){n.d(k,{D:function(){return D},P:function(){return T}});var T=function(O){return O?parseFloat((O/1e5).toFixed(2)):0},D=function(O){return O?parseFloat((O/100).toFixed(2)):0}}}]);