"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[731],{75385:function(Ze,se,r){r.r(se),r.d(se,{default:function(){return En}});var ne=r(90930),T=r(35312),le=r(15009),u=r.n(le),ie=r(99289),S=r.n(ie),W=r(5574),F=r.n(W),Z=r(48357),H=r(67539),ee=r(55241),N=r(10397),m=r(55102),h=r(67294),oe=r(97857),E=r.n(oe);function te(v,n){return M.apply(this,arguments)}function M(){return M=S()(u()().mark(function v(n,s){return u()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.request)("/api/admin/app/aliPayConfig",E()({method:"GET",params:E()({},n)},s||{})));case 1:case"end":return a.stop()}},v)})),M.apply(this,arguments)}function X(v,n,s){return ae.apply(this,arguments)}function ae(){return ae=S()(u()().mark(function v(n,s,y){return u()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return",(0,T.request)("/api/admin/app/aliPayConfig",E()({method:"POST",headers:{"Content-Type":"application/json"},params:E()({},n),data:s},y||{})));case 1:case"end":return b.stop()}},v)})),ae.apply(this,arguments)}function Q(v,n){return L.apply(this,arguments)}function L(){return L=S()(u()().mark(function v(n,s){return u()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.request)("/api/admin/app/basicConfig",E()({method:"GET",params:E()({},n)},s||{})));case 1:case"end":return a.stop()}},v)})),L.apply(this,arguments)}function Ie(v,n){return xe.apply(this,arguments)}function xe(){return xe=S()(u()().mark(function v(n,s){return u()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.request)("/api/admin/app/basicConfig",E()({method:"POST",headers:{"Content-Type":"application/json"},data:n},s||{})));case 1:case"end":return a.stop()}},v)})),xe.apply(this,arguments)}function Ve(v,n){return ye.apply(this,arguments)}function ye(){return ye=S()(u()().mark(function v(n,s){return u()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.request)("/api/admin/app/normalConfig",E()({method:"GET",params:E()({},n)},s||{})));case 1:case"end":return a.stop()}},v)})),ye.apply(this,arguments)}function x(v,n,s){return A.apply(this,arguments)}function A(){return A=S()(u()().mark(function v(n,s,y){return u()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return",(0,T.request)("/api/admin/app/normalConfig",E()({method:"POST",headers:{"Content-Type":"application/json"},params:E()({},n),data:s},y||{})));case 1:case"end":return b.stop()}},v)})),A.apply(this,arguments)}function w(v,n){return I.apply(this,arguments)}function I(){return I=S()(u()().mark(function v(n,s){return u()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.request)("/api/admin/app/uMengConfig",E()({method:"GET",params:E()({},n)},s||{})));case 1:case"end":return a.stop()}},v)})),I.apply(this,arguments)}function J(v,n,s){return Fe.apply(this,arguments)}function Fe(){return Fe=S()(u()().mark(function v(n,s,y){return u()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return",(0,T.request)("/api/admin/app/uMengConfig",E()({method:"POST",headers:{"Content-Type":"application/json"},params:E()({},n),data:s},y||{})));case 1:case"end":return b.stop()}},v)})),Fe.apply(this,arguments)}function Pe(v,n){return de.apply(this,arguments)}function de(){return de=_asyncToGenerator(_regeneratorRuntime().mark(function v(n,s){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/api/admin/app/wxConfig",_objectSpread({method:"GET",params:_objectSpread({},n)},s||{})));case 1:case"end":return a.stop()}},v)})),de.apply(this,arguments)}function Ke(v,n,s){return ve.apply(this,arguments)}function ve(){return ve=_asyncToGenerator(_regeneratorRuntime().mark(function v(n,s,y){return _regeneratorRuntime().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return",request("/api/admin/app/wxConfig",_objectSpread({method:"POST",headers:{"Content-Type":"application/json"},params:_objectSpread({},n),data:s},y||{})));case 1:case"end":return b.stop()}},v)})),ve.apply(this,arguments)}var he=r(1413),De=r(93696),re=r(91146),Oe=function(n,s){return h.createElement(re.Z,(0,he.Z)((0,he.Z)({},n),{},{ref:s,icon:De.Z}))},we=h.forwardRef(Oe),Y=we,Ee=r(3089),Te=r(42110),Be=function(n,s){return h.createElement(re.Z,(0,he.Z)((0,he.Z)({},n),{},{ref:s,icon:Te.Z}))},Me=h.forwardRef(Be),Ue=Me,t=r(8232),be=r(17788),Ge=r(72269),pe=r(37804),fe=r(83062),Re=r(71230),ue=r(14726),$e=r(15746),e=r(85893),Qe=function(n){var s=t.Z.useForm(),y=F()(s,1),a=y[0],b=function(){a.submit()},$=function(){n.onCancel()},V=function(){var i=S()(u()().mark(function g(l){var d;return u()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,Ve({appCode:l});case 2:d=P.sent,a.setFieldsValue(d.data);case 4:case"end":return P.stop()}},g)}));return function(l){return i.apply(this,arguments)}}();(0,h.useEffect)(function(){V(n.appCode)},[n.appCode]);var k=function(){var i=S()(u()().mark(function g(l){return u()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.prev=0,C.next=3,x({appCode:n.appCode},l);case 3:C.next=8;break;case 5:return C.prev=5,C.t0=C.catch(0),C.abrupt("return");case 8:n.onSubmit();case 9:case"end":return C.stop()}},g,null,[[0,5]])}));return function(l){return i.apply(this,arguments)}}(),D={labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:20}}},c={wrapperCol:{xs:{span:24,offset:10},sm:{span:20,offset:6}}};return(0,e.jsx)(be.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:b,onCancel:$,children:(0,e.jsxs)(t.Z,{labelCol:{span:6},wrapperCol:{span:18},form:a,onFinish:k,children:[(0,e.jsx)(t.Z.Item,{name:"enablePangolin",label:"\u542F\u7528\u7A7F\u5C71\u7532",children:(0,e.jsx)(Ge.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"pangolinDailyLimit",label:"\u7A7F\u5C71\u7532\u6BCF\u65E5\u6B21\u6570",children:(0,e.jsx)(pe.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"tencentDailyLimit",label:"\u5E7F\u544A\u6BCF\u65E5\u6B21\u6570",children:(0,e.jsx)(pe.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"videoDuration",label:"\u89C6\u9891\u5E7F\u544A\u95F4\u9694(\u79D2)",children:(0,e.jsx)(pe.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"popUpDuration",label:"\u63D2\u9875\u5E7F\u544A\u95F4\u9694(\u79D2)",children:(0,e.jsx)(pe.Z,{})}),(0,e.jsx)(t.Z.List,{name:"moneyLadder",children:function(g,l){var d=l.add,C=l.remove;return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(t.Z.Item,{label:(0,e.jsxs)(e.Fragment,{children:["\u63D0\u73B0\u68AF\u5EA6",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(fe.Z,{title:"\u7528\u6237\u53EF\u9009\u7684\u63D0\u73B0\u91D1\u989D\u6863\u4F4D\uFF0C\u5355\u4F4D\u5206",children:(0,e.jsx)(Y,{})})})]}),required:!1,children:[(0,e.jsx)(Re.Z,{children:g.map(function(P){return(0,e.jsx)(t.Z.Item,{label:"",required:!1,children:(0,e.jsxs)(Re.Z,{align:"stretch",style:{marginRight:10},children:[(0,e.jsx)(t.Z.Item,E()(E()({},P),{},{validateTrigger:["onChange","onBlur"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u91D1\u989D\u6216\u8005\u5220\u9664"}],noStyle:!0,children:(0,e.jsx)(pe.Z,{placeholder:"\u91D1\u989D\uFF0C\u5355\u4F4D\u5206"})})),(0,e.jsx)(Ee.Z,{style:{marginLeft:4},className:"dynamic-delete-button",onClick:function(){return C(P.name)}})]})},P.key)})}),(0,e.jsx)(t.Z.Item,E()(E()({},c),{},{children:(0,e.jsx)(ue.ZP,{type:"dashed",onClick:function(){return d()},icon:(0,e.jsx)(Ue,{}),children:"\u6DFB\u52A0\u63D0\u73B0\u68AF\u5EA6"})}))]})})}}),(0,e.jsx)(t.Z.Item,{name:"noAuditMoney",label:(0,e.jsxs)(e.Fragment,{children:["\u4E0D\u5BA1\u6838\u95E8\u69DB",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(fe.Z,{title:"\u4F4E\u4E8E\u6B64\u91D1\u989D\u7684\u63D0\u73B0\u7533\u8BF7\u5C06\u4F1A\u81EA\u52A8\u5BA1\u6838\u901A\u8FC7\uFF0C\u5355\u4F4D\u5206",children:(0,e.jsx)(Y,{})})})]}),children:(0,e.jsx)(pe.Z,{placeholder:"\u5355\u4F4D\u5206",style:{width:"60%"}})}),(0,e.jsx)(t.Z.Item,{name:"qqUrl",label:"QQ\u7FA4\u94FE\u63A5",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"dayLimit",label:(0,e.jsxs)(e.Fragment,{children:["\u6BCF\u65E5\u63D0\u73B0\u6B21\u6570",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(fe.Z,{title:"\u540C\u4E2A\u8D26\u53F7\u6216\u540C\u4E2A\u652F\u4ED8\u5B9D\u6BCF\u65E5\u6700\u591A\u63D0\u73B0\u7684\u6B21\u6570",children:(0,e.jsx)(Y,{})})})]}),children:(0,e.jsx)(pe.Z,{style:{width:"60%"}})}),(0,e.jsx)(t.Z.Item,{name:"maxIncomeEachVideo",label:(0,e.jsxs)(e.Fragment,{children:["\u5355\u6761\u6536\u76CA\u4E0A\u9650",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(fe.Z,{title:"\u770B\u4E00\u6761\u89C6\u9891\u6700\u591A\u80FD\u83B7\u5F97\u7684\u94B1\uFF0C\u5355\u4F4D\u5206",children:(0,e.jsx)(Y,{})})})]}),children:(0,e.jsx)(pe.Z,{style:{width:"60%"}})}),(0,e.jsx)(t.Z.Item,{name:"defaultRate",label:(0,e.jsx)(e.Fragment,{children:"\u9ED8\u8BA4\u5206\u6210\u6BD4\u4F8B"}),children:(0,e.jsx)(pe.Z,{style:{width:"60%"}})}),(0,e.jsx)(t.Z.List,{name:"dayRates",children:function(g,l){var d=l.add,C=l.remove;return(0,e.jsxs)(e.Fragment,{children:[g.map(function(P,R){var B=P.key,U=P.name;return(0,e.jsx)(e.Fragment,{children:(0,h.createElement)(t.Z.Item,E()(E()({},R===0?D:c),{},{label:R===0?"\u7279\u6B8A\u65E5\u5206\u6210\u6BD4\u4F8B":"",required:!1,key:B}),(0,e.jsxs)(Re.Z,{align:"stretch",gutter:16,children:[(0,e.jsx)($e.Z,{span:8,children:(0,e.jsx)(t.Z.Item,{name:[U,"day"],rules:[{required:!0}],children:(0,e.jsx)(m.Z,{placeholder:"Day"})})}),(0,e.jsx)($e.Z,{span:8,children:(0,e.jsx)(t.Z.Item,{name:[U,"rate"],rules:[{required:!0}],children:(0,e.jsx)(m.Z,{placeholder:"Rate"})})}),(0,e.jsx)($e.Z,{children:(0,e.jsx)(Ee.Z,{onClick:function(){return C(U)}})})]},B))})}),(0,e.jsx)(t.Z.Item,E()(E()({},c),{},{children:(0,e.jsx)(ue.ZP,{type:"dashed",onClick:function(){return d()},block:!0,children:"\u6DFB\u52A0\u7279\u6B8A\u65E5\u5206\u6210\u6BD4\u4F8B"})}))]})}})]})})},Je=Qe,Ye=function(){var n=(0,h.useState)(!1),s=F()(n,2),y=s[0],a=s[1],b=(0,h.useState)([]),$=F()(b,2),V=$[0],k=$[1],D=(0,h.useState)([]),c=F()(D,2),i=c[0],g=c[1],l=(0,T.useModel)("@@initialState"),d=l.initialState,C=d==null?void 0:d.currentUser,P=C&&C.role&&C.role<=3,R=(0,h.useState)(),B=F()(R,2),U=B[0],_=B[1],f=function(G){var O=V.filter(function(p){var j;return p==null||(j=p.name)===null||j===void 0?void 0:j.includes(G)});g(O)},z=[{title:"\u5E94\u7528\u540D",dataIndex:"name",copyable:!0,hideInSearch:!0},{title:"\u5E94\u7528\u56FE\u7247",dataIndex:"img",hideInSearch:!0,renderText:function(G){return(0,e.jsx)("img",{style:{width:"40px"},src:G})}},{title:"code",dataIndex:"code",copyable:!0,hideInSearch:!0},{title:"\u4E0B\u8F7D\u5730\u5740",dataIndex:"url",width:200,hideInSearch:!0,renderText:function(G){return(0,e.jsx)(ee.Z,{overlayInnerStyle:{padding:0},content:(0,e.jsx)(N.Z,{value:G||"",bordered:!1}),children:(0,e.jsx)("a",{style:{wordBreak:"break-word"},children:G})})}},{title:"\u64CD\u4F5C",width:80,hideInSearch:!0,renderText:function(G){if(G.enableCash&&P)return(0,e.jsx)("a",{onClick:function(){_(G.code),a(!0)},children:"\u7F16\u8F91"},"edit")}}],K=function(){var o=S()(u()().mark(function G(){var O;return u()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,(0,Z.ln)();case 2:O=j.sent,O.data&&(k(O.data),g(O.data));case 4:case"end":return j.stop()}},G)}));return function(){return o.apply(this,arguments)}}();return(0,h.useEffect)(function(){K()},[]),(0,e.jsxs)(ne._z,{children:[(0,e.jsx)(H.Z,{search:{defaultCollapsed:!1,optionRender:function(){return[(0,e.jsx)(m.Z,{placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",onChange:function(O){return f(O.target.value)}},"name")]}},onReset:function(){g(V)},columns:z,dataSource:i}),U&&(0,e.jsx)(Je,{updateModalOpen:y,appCode:U||"",onCancel:function(){return a(!1)},onSubmit:function(){a(!1)}})]})},qe=Ye,ke=r(52043),en=r(40110),nn=r(42075),ge=r(66309),an=r(86250),rn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},tn=rn,un=function(n,s){return h.createElement(re.Z,(0,he.Z)((0,he.Z)({},n),{},{ref:s,icon:tn}))},sn=h.forwardRef(un),Ce=sn,je=r(66476),Ae=m.Z.TextArea,ln=function(n){var s=t.Z.useForm(),y=F()(s,1),a=y[0],b=function(){a.submit()},$=function(){n.onCancel()},V=function(){var D=S()(u()().mark(function c(i){var g;return u()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,te({appCode:i});case 2:g=d.sent,a.setFieldsValue(g.data);case 4:case"end":return d.stop()}},c)}));return function(i){return D.apply(this,arguments)}}();(0,h.useEffect)(function(){V(n.appCode)},[n.appCode]);var k=function(){var D=S()(u()().mark(function c(i){return u()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,X({appCode:n.appCode},i);case 3:l.next=8;break;case 5:return l.prev=5,l.t0=l.catch(0),l.abrupt("return");case 8:n.onSubmit();case 9:case"end":return l.stop()}},c,null,[[0,5]])}));return function(i){return D.apply(this,arguments)}}();return(0,e.jsx)(be.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:b,onCancel:$,children:(0,e.jsxs)(t.Z,{labelCol:{span:8},wrapperCol:{span:18},form:a,onFinish:k,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayAppId",label:(0,e.jsxs)(e.Fragment,{children:["AppId",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(fe.Z,{title:"\u652F\u4ED8\u5B9D\u5F00\u653E\u5E73\u53F0\u83B7\u53D6\uFF0Chttps://open.alipay.com/develop/manage",children:(0,e.jsx)(Y,{})})})]}),children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"aliPayPrivateKey",label:(0,e.jsxs)(e.Fragment,{children:["\u5E94\u7528\u79C1\u94A5RSA2048",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(fe.Z,{title:"\u5BC6\u94A5\u5DE5\u5177\u751F\u6210",children:(0,e.jsx)(Y,{})})})]}),children:(0,e.jsxs)(m.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayPrivateKey",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9\u5E94\u7528\u79C1\u94A5!"}],children:(0,e.jsx)(Ae,{autoSize:{maxRows:6}})}),(0,e.jsx)(je.Z,{name:"file",multiple:!1,onChange:function(c){if(c.file.status!=="uploading"){var i=new FileReader;i.onload=function(){a.setFieldsValue({aliPayPrivateKey:i.result})},i.readAsText(c.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(ue.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(Ce,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})}),(0,e.jsx)(t.Z.Item,{name:"aliPayAppCert",label:(0,e.jsxs)(e.Fragment,{children:["appCertPublicKey",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(fe.Z,{title:"\u652F\u4ED8\u5B9D\u5F00\u653E\u5E73\u53F0\u4E0B\u8F7D",children:(0,e.jsx)(Y,{})})})]}),children:(0,e.jsxs)(m.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayAppCert",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9appCertPublicKey!"}],children:(0,e.jsx)(Ae,{autoSize:{maxRows:6}})}),(0,e.jsx)(je.Z,{name:"file",multiple:!1,onChange:function(c){if(c.file.status!=="uploading"){var i=new FileReader;i.onload=function(){a.setFieldsValue({aliPayAppCert:i.result})},i.readAsText(c.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(ue.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(Ce,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})}),(0,e.jsx)(t.Z.Item,{name:"aliPayRootCert",label:(0,e.jsxs)(e.Fragment,{children:["alipayRootCert",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(fe.Z,{title:"\u652F\u4ED8\u5B9D\u5F00\u653E\u5E73\u53F0\u4E0B\u8F7D",children:(0,e.jsx)(Y,{})})})]}),children:(0,e.jsxs)(m.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayRootCert",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9alipayRootCert!"}],children:(0,e.jsx)(Ae,{autoSize:{maxRows:6}})}),(0,e.jsx)(je.Z,{name:"file",multiple:!1,onChange:function(c){if(c.file.status!=="uploading"){var i=new FileReader;i.onload=function(){a.setFieldsValue({aliPayRootCert:i.result})},i.readAsText(c.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(ue.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(Ce,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})}),(0,e.jsx)(t.Z.Item,{name:"aliPayPublicCert",label:(0,e.jsxs)(e.Fragment,{children:["alipayCertPublicKey",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(fe.Z,{title:"\u652F\u4ED8\u5B9D\u5F00\u653E\u5E73\u53F0\u4E0B\u8F7D",children:(0,e.jsx)(Y,{})})})]}),children:(0,e.jsxs)(m.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayPublicCert",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9alipayCertPublicKey!"}],children:(0,e.jsx)(Ae,{autoSize:{maxRows:6}})}),(0,e.jsx)(je.Z,{name:"file",multiple:!1,onChange:function(c){if(c.file.status!=="uploading"){var i=new FileReader;i.onload=function(){a.setFieldsValue({aliPayPublicCert:i.result})},i.readAsText(c.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(ue.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(Ce,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})})]})})},on=ln,me=r(2453),cn=r(4575),dn=function(n){var s=t.Z.useForm(),y=F()(s,1),a=y[0],b=function(){a.submit()},$=function(){n.onCancel()},V=function(){var k=S()(u()().mark(function D(c){return u()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.prev=0,g.next=3,(0,cn.re)(E()(E()({},c),{},{appCode:n.appCode}));case 3:g.next=8;break;case 5:return g.prev=5,g.t0=g.catch(0),g.abrupt("return");case 8:me.ZP.success("\u8F6C\u8D26\u6210\u529F\uFF0C\u8BF7\u67E5\u770B\u652F\u4ED8\u5B9D\u8D26\u6237\u662F\u5426\u5230\u8D26"),n.onSubmit();case 10:case"end":return g.stop()}},D,null,[[0,5]])}));return function(c){return k.apply(this,arguments)}}();return(0,e.jsx)(be.Z,{title:"\u7F16\u8F91",visible:!0,onOk:b,onCancel:$,children:(0,e.jsxs)(t.Z,{labelCol:{span:4},wrapperCol:{span:18},form:a,onFinish:V,children:[(0,e.jsx)(t.Z.Item,{name:"name",label:"\u59D3\u540D",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"aliAccount",label:"\u652F\u4ED8\u5B9D\u8D26\u53F7",children:(0,e.jsx)(m.Z,{})})]})})},pn=dn,_e=r(34041),We=r(32400),fn=r(56448),Ne=r.n(fn),mn=function(n){var s=n.onUploadSuccess,y=n.onUploadError,a=n.url,b=(0,h.useState)(!1),$=F()(b,2),V=$[0],k=$[1],D=(0,h.useState)(null),c=F()(D,2),i=c[0],g=c[1],l=(0,h.useState)([]),d=F()(l,2),C=d[0],P=d[1];(0,h.useEffect)(function(){function B(){return U.apply(this,arguments)}function U(){return U=S()(u()().mark(function _(){var f,z;return u()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,(0,Z.po)();case 3:if(f=o.sent,!(!f.data||!f.data.accessKeySecret||!f.data.accessKeyId)){o.next=7;break}return me.ZP.error("\u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),o.abrupt("return");case 7:z=new(Ne())({region:"oss-cn-beijing",accessKeyId:f.data.accessKeyId,accessKeySecret:f.data.accessKeySecret,stsToken:f.data.securityToken,bucket:f.data.bucket}),g(z),o.next=15;break;case 11:o.prev=11,o.t0=o.catch(0),me.ZP.error("\u521D\u59CB\u5316 OSS \u5BA2\u6237\u7AEF\u5931\u8D25"),y&&y(o.t0);case 15:case"end":return o.stop()}},_,null,[[0,11]])})),U.apply(this,arguments)}B()},[y]);var R=function(){var B=S()(u()().mark(function U(_){var f,z,K,o,G;return u()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(f=_.file,!(f instanceof File)){p.next=31;break}if(k(!0),P([{uid:f.uid,name:f.name,status:"uploading"}]),p.prev=4,z=f.name.split(".").pop(),a){p.next=13;break}return p.next=9,(0,We.p)(f);case 9:o=p.sent,K="matrix/".concat(o,".").concat(z),p.next=14;break;case 13:K="matrix/".concat(a,".").concat(z);case 14:return p.next=16,i==null?void 0:i.put(K,f,{headers:{"Content-Type":f.type}});case 16:G="https://apks.bzgames.cn/".concat(K),s&&s(G,f),k(!1),P([{uid:f.uid,name:f.name,status:"done",url:G}]),p.next=26;break;case 22:p.prev=22,p.t0=p.catch(4),me.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"),y&&y(p.t0);case 26:return p.prev=26,k(!1),p.finish(26);case 29:p.next=32;break;case 31:me.ZP.error("\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B\u9519\u8BEF");case 32:case"end":return p.stop()}},U,null,[[4,22,26,29]])}));return function(_){return B.apply(this,arguments)}}();return(0,e.jsx)(je.Z,{fileList:C,customRequest:R,disabled:V||!i,children:(0,e.jsx)(ue.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(Ce,{}),children:"\u9009\u62E9\u6587\u4EF6"})})},ze=mn,hn=r(19632),vn=r.n(hn),gn=function(n){var s=n.value,y=n.onChange,a=(0,h.useState)(!1),b=F()(a,2),$=b[0],V=b[1],k=(0,h.useState)(null),D=F()(k,2),c=D[0],i=D[1],g=(0,h.useState)([]),l=F()(g,2),d=l[0],C=l[1];(0,h.useEffect)(function(){s&&C(s)},[s]),(0,h.useEffect)(function(){function B(){return U.apply(this,arguments)}function U(){return U=S()(u()().mark(function _(){var f,z;return u()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,(0,Z.po)();case 3:if(f=o.sent,!(!f.data||!f.data.accessKeySecret||!f.data.accessKeyId)){o.next=7;break}return me.ZP.error("\u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),o.abrupt("return");case 7:z=new(Ne())({region:"oss-cn-beijing",accessKeyId:f.data.accessKeyId,accessKeySecret:f.data.accessKeySecret,stsToken:f.data.securityToken,bucket:f.data.bucket}),i(z),o.next=14;break;case 11:o.prev=11,o.t0=o.catch(0),me.ZP.error("\u521D\u59CB\u5316 OSS \u5BA2\u6237\u7AEF\u5931\u8D25");case 14:case"end":return o.stop()}},_,null,[[0,11]])})),U.apply(this,arguments)}B()},[]),(0,h.useEffect)(function(){y&&y(d)},[d]);var P=function(){var B=S()(u()().mark(function U(_){var f,z,K,o;return u()().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(f=_.file,!(f instanceof File)){O.next=23;break}return V(!0),O.prev=3,O.next=6,(0,We.p)(f);case 6:return z=O.sent,K="matrix/".concat(z,".").concat(f.name.split(".").pop()),O.next=10,c==null?void 0:c.put(K,f,{headers:{"Content-Type":f.type}});case 10:o="https://apks.bzgames.cn/".concat(K),V(!1),C(function(p){return[].concat(vn()(p),[{uid:f.uid,name:f.name,status:"done",url:o}])}),O.next=18;break;case 15:O.prev=15,O.t0=O.catch(3),me.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25");case 18:return O.prev=18,V(!1),O.finish(18);case 21:O.next=24;break;case 23:me.ZP.error("\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B\u9519\u8BEF");case 24:case"end":return O.stop()}},U,null,[[3,15,18,21]])}));return function(_){return B.apply(this,arguments)}}(),R=function(U){var _=(d||[]).filter(function(f){return f.url!==U.url});C(_)};return(0,e.jsx)(je.Z,{multiple:!0,fileList:d,onRemove:R,customRequest:P,disabled:$||!c,children:(0,e.jsx)(ue.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(Ce,{}),children:"\u9009\u62E9\u6587\u4EF6"})})},Cn=gn,jn=function(n){var s=t.Z.useForm(),y=F()(s,1),a=y[0],b=(0,h.useState)(!1),$=F()(b,2),V=$[0],k=$[1],D=function(){a.submit()},c=function(){n.onCancel()},i=function(){var l=S()(u()().mark(function d(C){var P;return u()().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:if(C){B.next=3;break}return a.resetFields(),B.abrupt("return");case 3:return B.next=5,Q({appCode:C});case 5:P=B.sent,a.setFieldsValue(P.data);case 7:case"end":return B.stop()}},d)}));return function(C){return l.apply(this,arguments)}}();(0,h.useEffect)(function(){i(n.appCode),k(n.appCode!==void 0),n.appCode||a.resetFields()},[n.appCode]);var g=function(){var l=S()(u()().mark(function d(C){return u()().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.prev=0,R.next=3,Ie(C);case 3:R.next=8;break;case 5:return R.prev=5,R.t0=R.catch(0),R.abrupt("return");case 8:n.onSubmit();case 9:case"end":return R.stop()}},d,null,[[0,5]])}));return function(C){return l.apply(this,arguments)}}();return(0,e.jsx)(be.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:D,onCancel:c,children:(0,e.jsxs)(t.Z,{labelCol:{span:5},wrapperCol:{span:18},form:a,onFinish:g,children:[(0,e.jsx)(t.Z.Item,{name:"id",style:{display:"none"},children:(0,e.jsx)(m.Z,{type:"hidden"})}),(0,e.jsx)(t.Z.Item,{name:"code",style:{display:"none"},children:(0,e.jsx)(m.Z,{type:"hidden"})}),(0,e.jsx)(t.Z.Item,{label:"\u5E94\u7528\u540D",name:"name",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(t.Z.Item,{label:"\u5E94\u7528icon",name:"img",children:(0,e.jsxs)(m.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"img",noStyle:!0,children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(ze,{onUploadSuccess:function(d){a.setFieldsValue({img:d})}})]})}),(0,e.jsx)(t.Z.Item,{label:"\u4E0B\u8F7D\u5730\u5740",name:"url",children:(0,e.jsxs)(m.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"url",noStyle:!0,children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(ze,{url:n.appCode,onUploadSuccess:function(d,C){a.setFieldsValue({url:d,fileSize:(0,ke.aV)(C.size)})}})]})}),(0,e.jsx)(t.Z.Item,{label:"app\u7248\u672C",name:"version",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(t.Z.Item,{label:"\u83DC\u5355\u680F\u4E2D",name:"hide",children:(0,e.jsx)(_e.Z,{options:[{label:"\u5C55\u793A",value:0},{label:"\u9690\u85CF",value:1}]})}),(0,e.jsx)(t.Z.Item,{label:"\u6E20\u9053",name:"channel",children:(0,e.jsx)(_e.Z,{disabled:V,options:(0,ke.FG)()})}),(0,e.jsx)(t.Z.Item,{label:"app\u5927\u5C0F",name:"fileSize",children:(0,e.jsx)(m.Z,{disabled:!0})}),(0,e.jsx)(t.Z.Item,{label:"app\u4E0B\u8F7D\u6B21\u6570",name:"downloadTimes",children:(0,e.jsx)(m.Z,{disabled:!0})}),(0,e.jsx)(t.Z.Item,{label:"\u6240\u5C5E\u516C\u53F8",name:"author",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(t.Z.Item,{label:"app\u5305\u540D",name:"packageName",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(t.Z.Item,{label:"app\u7B80\u4ECB",name:"desc",children:(0,e.jsx)(m.Z.TextArea,{})}),(0,e.jsxs)(t.Z.Item,{label:"\u5E94\u7528\u622A\u56FE",name:"images",children:[(0,e.jsx)(Cn,{value:[],onChange:function(d){var C=d.filter(function(P){return P.url}).map(function(P){return P.url}).filter(Boolean);C&&C.length>0&&a.setFieldsValue({images:C})}}),(0,e.jsx)("label",{style:{color:"gray"},children:"\u53EF\u591A\u9009\uFF0C\u4E0D\u4F20\u9ED8\u8BA4\u4F1A\u4F7F\u7528\u4E4B\u524D\u7684\u65E7\u6570\u636E"})]})]})})},xn=jn,yn=function(n){var s=t.Z.useForm(),y=F()(s,1),a=y[0],b=function(){a.submit()},$=function(){n.onCancel()},V=function(){var D=S()(u()().mark(function c(i){var g;return u()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,w({appCode:i});case 2:g=d.sent,a.setFieldsValue(g.data);case 4:case"end":return d.stop()}},c)}));return function(i){return D.apply(this,arguments)}}();(0,h.useEffect)(function(){V(n.appCode)},[n.appCode]);var k=function(){var D=S()(u()().mark(function c(i){return u()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,J({appCode:n.appCode},i);case 3:l.next=8;break;case 5:return l.prev=5,l.t0=l.catch(0),l.abrupt("return");case 8:n.onSubmit();case 9:case"end":return l.stop()}},c,null,[[0,5]])}));return function(i){return D.apply(this,arguments)}}();return(0,e.jsx)(be.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:b,onCancel:$,children:(0,e.jsxs)(t.Z,{labelCol:{span:8},wrapperCol:{span:16},form:a,onFinish:k,children:[(0,e.jsx)(t.Z.Item,{name:"umengAppKeyAli",label:"AppKey(\u963F\u91CC\u4E91)",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"umengAppSecret",label:"AppSecret(\u963F\u91CC\u4E91)",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"umengAppCode",label:"AppCode(\u963F\u91CC\u4E91)",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"umengAppKey",label:"AppKey(\u53CB\u76DF)",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"linkId",label:"linkId(\u53CB\u76DF)",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"bindWx",label:"\u7ED1\u5B9A\u5FAE\u4FE1\u8D26\u53F7",children:(0,e.jsx)(Ge.Z,{})})]})})},Fn=yn,bn=function(){var n=(0,h.useState)(!1),s=F()(n,2),y=s[0],a=s[1],b=(0,h.useState)([]),$=F()(b,2),V=$[0],k=$[1],D=(0,h.useState)(!1),c=F()(D,2),i=c[0],g=c[1],l=(0,h.useState)(!1),d=F()(l,2),C=d[0],P=d[1],R=(0,h.useState)(!1),B=F()(R,2),U=B[0],_=B[1],f=(0,h.useState)(),z=F()(f,2),K=z[0],o=z[1],G=[{title:"\u5E94\u7528\u540D",dataIndex:"name",copyable:!0,hideInSearch:!0,fixed:"left",filterDropdown:function(j){var q=j.setSelectedKeys,Se=j.selectedKeys,ce=j.confirm,He=j.clearFilters;return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)(m.Z,{placeholder:"\u641C\u7D22\u5E94\u7528",value:Se[0],onChange:function(Xe){return q(Xe.target.value?[Xe.target.value]:[])},onPressEnter:function(){return ce()},style:{marginBottom:8,display:"block"}}),(0,e.jsxs)(nn.Z,{children:[(0,e.jsx)(ue.ZP,{onClick:function(){return ce()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(ue.ZP,{onClick:function(){return He&&He()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(j,q){return typeof j=="string"&&typeof(q==null?void 0:q.name)=="string"?q.name.includes(j):!1},filterIcon:function(j){return(0,e.jsx)(en.Z,{style:{color:j?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u56FE\u7247",dataIndex:"img",hideInSearch:!0,renderText:function(j){return(0,e.jsx)("img",{style:{width:"40px"},src:j})}},{title:"code",dataIndex:"code",copyable:!0,hideInSearch:!0},{title:"\u5E94\u7528\u5E02\u573A",dataIndex:"code",copyable:!0,width:200,hideInSearch:!0,renderText:function(j){return"https://pomelo.bzgames.cn/market/"+j}},{title:"\u4E0B\u8F7D\u5730\u5740",dataIndex:"url",width:200,hideInSearch:!0,copyable:!0},{title:"\u4E0B\u8F7D\u4E8C\u7EF4\u7801",dataIndex:"url",hideInSearch:!0,renderText:function(j){return j?(0,e.jsx)(ee.Z,{overlayInnerStyle:{padding:0},content:(0,e.jsx)(N.Z,{value:j||"",bordered:!1}),children:(0,e.jsx)("a",{style:{wordBreak:"break-word"},children:"\u67E5\u770B"})}):""}},{title:"secret",dataIndex:"secret",ellipsis:!0,copyable:!0,hideInSearch:!0},{title:"\u83DC\u5355\u680F\u4E2D",dataIndex:"hide",hideInSearch:!0,renderText:function(j){return j===0?(0,e.jsx)(ge.Z,{color:"blue",children:"\u5C55\u793A"}):(0,e.jsx)(ge.Z,{color:"purple",children:"\u9690\u85CF"})}},{title:"\u6E20\u9053",dataIndex:"channel",hideInSearch:!0,renderText:function(j){var q=(0,ke.FG)(),Se=q.find(function(ce){return ce.value===j});return Se?Se.label:j}},{title:"\u64CD\u4F5C",width:100,hideInSearch:!0,fixed:"right",renderText:function(j){return(0,e.jsxs)(an.Z,{gap:"small",wrap:!0,children:[(0,e.jsx)(ge.Z,{color:"magenta",onClick:function(){o(j.code),a(!0)},children:"\u7F16\u8F91"},"edit"),j.enableCash&&(0,e.jsx)(ge.Z,{color:"orange",onClick:function(){o(j.code),P(!0)},children:"\u53CB\u76DF\u914D\u7F6E"},"ediyUMeng"),(0,e.jsx)(ge.Z,{color:"#2db7f5",onClick:function(){o(j.code),g(!0)},children:"\u652F\u4ED8\u5B9D\u914D\u7F6E"},"ediyAliPay"),j.enableCash&&(0,e.jsx)(ge.Z,{color:"cyan",onClick:function(){o(j.code),_(!0)},children:"\u8F6C\u8D26"},"ediyTransfer")]})}}],O=function(){var p=S()(u()().mark(function j(){var q;return u()().wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return ce.next=2,(0,Z.ln)();case 2:q=ce.sent,q.data&&k(q.data);case 4:case"end":return ce.stop()}},j)}));return function(){return p.apply(this,arguments)}}();return(0,h.useEffect)(function(){O()},[]),(0,e.jsxs)(ne._z,{children:[(0,e.jsx)(ue.ZP,{style:{marginBottom:"20px"},onClick:function(){a(!0),o(void 0)},children:"\u65B0\u5EFA\u5E94\u7528"}),(0,e.jsx)(H.Z,{scroll:{x:1200},search:!1,columns:G,dataSource:V}),K&&i&&(0,e.jsx)(on,{updateModalOpen:i,appCode:K||"",onCancel:function(){return g(!1)},onSubmit:function(){g(!1),O()}}),K&&C&&(0,e.jsx)(Fn,{updateModalOpen:C,appCode:K||"",onCancel:function(){return P(!1)},onSubmit:function(){P(!1)}}),(0,e.jsx)(xn,{updateModalOpen:y,appCode:K,onCancel:function(){return a(!1)},onSubmit:function(){a(!1),O()}}),K&&U&&(0,e.jsx)(pn,{appCode:K||"",onCancel:function(){return _(!1)},onSubmit:function(){_(!1)}})]})},Sn=bn,Zn=function(){var n=(0,T.useModel)("@@initialState"),s=n.initialState,y=s==null?void 0:s.currentUser,a=y&&y.role&&y.role<2;return(0,e.jsx)(ne._z,{children:a?(0,e.jsx)(Sn,{}):(0,e.jsx)(qe,{})})},En=Zn},4575:function(Ze,se,r){r.d(se,{XM:function(){return H},ai:function(){return F},nr:function(){return E},re:function(){return h},vE:function(){return N}});var ne=r(15009),T=r.n(ne),le=r(97857),u=r.n(le),ie=r(99289),S=r.n(ie),W=r(35312);function F(M){return Z.apply(this,arguments)}function Z(){return Z=S()(T()().mark(function M(X){return T()().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.abrupt("return",(0,W.request)("/api/superAdmin/evilAppList",u()({method:"GET"},X||{})));case 1:case"end":return Q.stop()}},M)})),Z.apply(this,arguments)}function H(M,X){return ee.apply(this,arguments)}function ee(){return ee=S()(T()().mark(function M(X,ae){return T()().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",(0,W.request)("/api/superAdmin/saveEvilApp",u()({method:"POST",headers:{"Content-Type":"application/json"},data:X},ae||{})));case 1:case"end":return L.stop()}},M)})),ee.apply(this,arguments)}function N(M,X){return m.apply(this,arguments)}function m(){return m=S()(T()().mark(function M(X,ae){return T()().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",(0,W.request)("/api/superAdmin/saveWhiteUser",u()({method:"POST",params:u()({},X)},ae||{})));case 1:case"end":return L.stop()}},M)})),m.apply(this,arguments)}function h(M,X){return oe.apply(this,arguments)}function oe(){return oe=S()(T()().mark(function M(X,ae){return T()().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",(0,W.request)("/api/superAdmin/transfer",u()({method:"POST",params:u()({},X)},ae||{})));case 1:case"end":return L.stop()}},M)})),oe.apply(this,arguments)}function E(M){return te.apply(this,arguments)}function te(){return te=S()(T()().mark(function M(X){return T()().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.abrupt("return",(0,W.request)("/api/superAdmin/whiteUserList",u()({method:"GET"},X||{})));case 1:case"end":return Q.stop()}},M)})),te.apply(this,arguments)}},52043:function(Ze,se,r){r.d(se,{E7:function(){return T},FG:function(){return ne},RQ:function(){return ie},XY:function(){return le},aV:function(){return S},m0:function(){return u}});var ne=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},T=function(F){var Z=[];if(!F)return Z;for(var H=F>>1,ee=["\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"],N=0,m=ee;N>=1}return Z},le=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"}]},u=function(F){var Z=new Date(F),H=Z.getFullYear().toString().padStart(4,"0"),ee=(Z.getMonth()+1).toString().padStart(2,"0"),N=Z.getDate().toString().padStart(2,"0");return H+ee+N},ie=function(F,Z){var H=F.toString();return H.padStart(Z,"0")},S=function(F){var Z=F;return Z<1024?Z+" B":(Z=parseFloat((Z/1024).toFixed(2)),Z<1024?Z+" KB":(Z=parseFloat((Z/1024).toFixed(2)),Z+" MB"))}},32400:function(Ze,se,r){r.d(se,{p:function(){return W}});var ne=r(15009),T=r.n(ne),le=r(99289),u=r.n(le),ie=r(8322),S=r.n(ie);function W(Z){return F.apply(this,arguments)}function F(){return F=u()(T()().mark(function Z(H){return T()().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.abrupt("return",new Promise(function(m,h){var oe=new(S()).ArrayBuffer,E=new FileReader;E.onload=function(te){var M;oe.append((M=te.target)===null||M===void 0?void 0:M.result),m(oe.end())},E.onerror=function(te){h(te)},E.readAsArrayBuffer(H)}));case 1:case"end":return N.stop()}},Z)})),F.apply(this,arguments)}},86250:function(Ze,se,r){r.d(se,{Z:function(){return ye}});var ne=r(67294),T=r(93967),le=r.n(T),u=r(98423),ie=r(98065),S=r(53124),W=r(91945),F=r(45503);const Z=["wrap","nowrap","wrap-reverse"],H=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],ee=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],N=(x,A)=>{const w=A.wrap===!0?"wrap":A.wrap;return{[`${x}-wrap-${w}`]:w&&Z.includes(w)}},m=(x,A)=>{const w={};return ee.forEach(I=>{w[`${x}-align-${I}`]=A.align===I}),w[`${x}-align-stretch`]=!A.align&&!!A.vertical,w},h=(x,A)=>{const w={};return H.forEach(I=>{w[`${x}-justify-${I}`]=A.justify===I}),w};function oe(x,A){return le()(Object.assign(Object.assign(Object.assign({},N(x,A)),m(x,A)),h(x,A)))}var E=oe;const te=x=>{const{componentCls:A}=x;return{[A]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},M=x=>{const{componentCls:A}=x;return{[A]:{"&-gap-small":{gap:x.flexGapSM},"&-gap-middle":{gap:x.flexGap},"&-gap-large":{gap:x.flexGapLG}}}},X=x=>{const{componentCls:A}=x,w={};return Z.forEach(I=>{w[`${A}-wrap-${I}`]={flexWrap:I}}),w},ae=x=>{const{componentCls:A}=x,w={};return ee.forEach(I=>{w[`${A}-align-${I}`]={alignItems:I}}),w},Q=x=>{const{componentCls:A}=x,w={};return H.forEach(I=>{w[`${A}-justify-${I}`]={justifyContent:I}}),w},L=()=>({});var Ie=(0,W.I$)("Flex",x=>{const{paddingXS:A,padding:w,paddingLG:I}=x,J=(0,F.TS)(x,{flexGapSM:A,flexGap:w,flexGapLG:I});return[te(J),M(J),X(J),ae(J),Q(J)]},L,{resetStyle:!1}),xe=function(x,A){var w={};for(var I in x)Object.prototype.hasOwnProperty.call(x,I)&&A.indexOf(I)<0&&(w[I]=x[I]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,I=Object.getOwnPropertySymbols(x);J{const{prefixCls:w,rootClassName:I,className:J,style:Fe,flex:Pe,gap:de,children:Ke,vertical:ve=!1,component:he="div"}=x,De=xe(x,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:re,direction:Oe,getPrefixCls:we}=ne.useContext(S.E_),Y=we("flex",w),[Ee,Te,Be]=Ie(Y),Me=ve!=null?ve:re==null?void 0:re.vertical,Ue=le()(J,I,re==null?void 0:re.className,Y,Te,Be,E(Y,x),{[`${Y}-rtl`]:Oe==="rtl",[`${Y}-gap-${de}`]:(0,ie.n)(de),[`${Y}-vertical`]:Me}),t=Object.assign(Object.assign({},re==null?void 0:re.style),Fe);return Pe&&(t.flex=Pe),de&&!(0,ie.n)(de)&&(t.gap=de),Ee(ne.createElement(he,Object.assign({ref:A,className:Ue,style:t},(0,u.Z)(De,["justify","wrap","align"])),Ke))})}}]);