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