You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
34 KiB

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[731],{82339:function(Ae,te,r){r.r(te),r.d(te,{default:function(){return xn}});var J=r(90930),V=r(35312),ue=r(15009),s=r.n(ue),le=r(99289),B=r.n(le),Y=r(5574),g=r.n(Y),A=r(48357),H=r(67539),_=r(55241),N=r(10397),C=r(55102),f=r(67294),me=r(97857),I=r.n(me);function ce(p,n){return ee.apply(this,arguments)}function ee(){return ee=B()(s()().mark(function p(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,V.request)("/api/admin/app/aliPayConfig",I()({method:"GET",params:I()({},n)},u||{})));case 1:case"end":return a.stop()}},p)})),ee.apply(this,arguments)}function Ee(p,n,u){return ge.apply(this,arguments)}function ge(){return ge=B()(s()().mark(function p(n,u,h){return s()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,V.request)("/api/admin/app/aliPayConfig",I()({method:"POST",headers:{"Content-Type":"application/json"},params:I()({},n),data:u},h||{})));case 1:case"end":return v.stop()}},p)})),ge.apply(this,arguments)}function Ie(p,n){return Ce.apply(this,arguments)}function Ce(){return Ce=B()(s()().mark(function p(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,V.request)("/api/admin/app/basicConfig",I()({method:"GET",params:I()({},n)},u||{})));case 1:case"end":return a.stop()}},p)})),Ce.apply(this,arguments)}function we(p,n){return xe.apply(this,arguments)}function xe(){return xe=B()(s()().mark(function p(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,V.request)("/api/admin/app/basicConfig",I()({method:"POST",headers:{"Content-Type":"application/json"},data:n},u||{})));case 1:case"end":return a.stop()}},p)})),xe.apply(this,arguments)}function Ve(p,n){return je.apply(this,arguments)}function je(){return je=B()(s()().mark(function p(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,V.request)("/api/admin/app/normalConfig",I()({method:"GET",params:I()({},n)},u||{})));case 1:case"end":return a.stop()}},p)})),je.apply(this,arguments)}function m(p,n,u){return j.apply(this,arguments)}function j(){return j=B()(s()().mark(function p(n,u,h){return s()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,V.request)("/api/admin/app/normalConfig",I()({method:"POST",headers:{"Content-Type":"application/json"},params:I()({},n),data:u},h||{})));case 1:case"end":return v.stop()}},p)})),j.apply(this,arguments)}function w(p,n){return y.apply(this,arguments)}function y(){return y=B()(s()().mark(function p(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,V.request)("/api/admin/app/uMengConfig",I()({method:"GET",params:I()({},n)},u||{})));case 1:case"end":return a.stop()}},p)})),y.apply(this,arguments)}function G(p,n,u){return ye.apply(this,arguments)}function ye(){return ye=B()(s()().mark(function p(n,u,h){return s()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,V.request)("/api/admin/app/uMengConfig",I()({method:"POST",headers:{"Content-Type":"application/json"},params:I()({},n),data:u},h||{})));case 1:case"end":return v.stop()}},p)})),ye.apply(this,arguments)}function Oe(p,n){return ne.apply(this,arguments)}function ne(){return ne=_asyncToGenerator(_regeneratorRuntime().mark(function p(n,u){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)},u||{})));case 1:case"end":return a.stop()}},p)})),ne.apply(this,arguments)}function Ge(p,n,u){return de.apply(this,arguments)}function de(){return de=_asyncToGenerator(_regeneratorRuntime().mark(function p(n,u,h){return _regeneratorRuntime().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",request("/api/admin/app/wxConfig",_objectSpread({method:"POST",headers:{"Content-Type":"application/json"},params:_objectSpread({},n),data:u},h||{})));case 1:case"end":return v.stop()}},p)})),de.apply(this,arguments)}var se=r(1413),Pe=r(93696),Q=r(91146),De=function(n,u){return f.createElement(Q.Z,(0,se.Z)((0,se.Z)({},n),{},{ref:u,icon:Pe.Z}))},Be=f.forwardRef(De),K=Be,Se=r(3089),Te=r(42110),Me=function(n,u){return f.createElement(Q.Z,(0,se.Z)((0,se.Z)({},n),{},{ref:u,icon:Te.Z}))},Re=f.forwardRef(Me),Ue=Re,t=r(8232),Ze=r(17788),Ke=r(72269),pe=r(37804),ae=r(83062),$e=r(71230),re=r(14726),ke=r(15746),e=r(85893),Qe=function(n){var u=t.Z.useForm(),h=g()(u,1),a=h[0],v=function(){a.submit()},L=function(){n.onCancel()},$=function(){var o=B()(s()().mark(function Z(l){var c;return s()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,Ve({appCode:l});case 2:c=S.sent,a.setFieldsValue(c.data);case 4:case"end":return S.stop()}},Z)}));return function(l){return o.apply(this,arguments)}}();(0,f.useEffect)(function(){$(n.appCode)},[n.appCode]);var z=function(){var o=B()(s()().mark(function Z(l){return s()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.prev=0,d.next=3,m({appCode:n.appCode},l);case 3:d.next=8;break;case 5:return d.prev=5,d.t0=d.catch(0),d.abrupt("return");case 8:n.onSubmit();case 9:case"end":return d.stop()}},Z,null,[[0,5]])}));return function(l){return o.apply(this,arguments)}}(),O={labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:20}}},i={wrapperCol:{xs:{span:24,offset:10},sm:{span:20,offset:6}}};return(0,e.jsx)(Ze.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:v,onCancel:L,children:(0,e.jsxs)(t.Z,{labelCol:{span:6},wrapperCol:{span:18},form:a,onFinish:z,children:[(0,e.jsx)(t.Z.Item,{name:"enablePangolin",label:"\u542F\u7528\u7A7F\u5C71\u7532",children:(0,e.jsx)(Ke.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.List,{name:"moneyLadder",children:function(Z,l){var c=l.add,d=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)(ae.Z,{title:"\u7528\u6237\u53EF\u9009\u7684\u63D0\u73B0\u91D1\u989D\u6863\u4F4D\uFF0C\u5355\u4F4D\u5206",children:(0,e.jsx)(K,{})})})]}),required:!1,children:[(0,e.jsx)($e.Z,{children:Z.map(function(S){return(0,e.jsx)(t.Z.Item,{label:"",required:!1,children:(0,e.jsxs)($e.Z,{align:"stretch",style:{marginRight:10},children:[(0,e.jsx)(t.Z.Item,I()(I()({},S),{},{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)(Se.Z,{style:{marginLeft:4},className:"dynamic-delete-button",onClick:function(){return d(S.name)}})]})},S.key)})}),(0,e.jsx)(t.Z.Item,I()(I()({},i),{},{children:(0,e.jsx)(re.ZP,{type:"dashed",onClick:function(){return c()},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)(ae.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)(K,{})})})]}),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)(C.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)(ae.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)(K,{})})})]}),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)(ae.Z,{title:"\u770B\u4E00\u6761\u89C6\u9891\u6700\u591A\u80FD\u83B7\u5F97\u7684\u94B1\uFF0C\u5355\u4F4D\u5206",children:(0,e.jsx)(K,{})})})]}),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(Z,l){var c=l.add,d=l.remove;return(0,e.jsxs)(e.Fragment,{children:[Z.map(function(S,R){var T=S.key,U=S.name;return(0,e.jsx)(e.Fragment,{children:(0,f.createElement)(t.Z.Item,I()(I()({},R===0?O:i),{},{label:R===0?"\u7279\u6B8A\u65E5\u5206\u6210\u6BD4\u4F8B":"",required:!1,key:T}),(0,e.jsxs)($e.Z,{align:"stretch",gutter:16,children:[(0,e.jsx)(ke.Z,{span:8,children:(0,e.jsx)(t.Z.Item,{name:[U,"day"],rules:[{required:!0}],children:(0,e.jsx)(C.Z,{placeholder:"Day"})})}),(0,e.jsx)(ke.Z,{span:8,children:(0,e.jsx)(t.Z.Item,{name:[U,"rate"],rules:[{required:!0}],children:(0,e.jsx)(C.Z,{placeholder:"Rate"})})}),(0,e.jsx)(ke.Z,{children:(0,e.jsx)(Se.Z,{onClick:function(){return d(U)}})})]},T))})}),(0,e.jsx)(t.Z.Item,I()(I()({},i),{},{children:(0,e.jsx)(re.ZP,{type:"dashed",onClick:function(){return c()},block:!0,children:"\u6DFB\u52A0\u7279\u6B8A\u65E5\u5206\u6210\u6BD4\u4F8B"})}))]})}})]})})},Xe=Qe,Je=function(){var n=(0,f.useState)(!1),u=g()(n,2),h=u[0],a=u[1],v=(0,f.useState)([]),L=g()(v,2),$=L[0],z=L[1],O=(0,f.useState)([]),i=g()(O,2),o=i[0],Z=i[1],l=(0,V.useModel)("@@initialState"),c=l.initialState,d=c==null?void 0:c.currentUser,S=d&&d.role&&d.role<3,R=(0,f.useState)(),T=g()(R,2),U=T[0],x=T[1],P=function(F){var D=$.filter(function(oe){var M;return oe==null||(M=oe.name)===null||M===void 0?void 0:M.includes(F)});Z(D)},W=[{title:"\u5E94\u7528\u540D",dataIndex:"name",copyable:!0,hideInSearch:!0},{title:"\u5E94\u7528\u56FE\u7247",dataIndex:"img",hideInSearch:!0,renderText:function(F){return(0,e.jsx)("img",{style:{width:"40px"},src:F})}},{title:"code",dataIndex:"code",copyable:!0,hideInSearch:!0},{title:"\u4E0B\u8F7D\u5730\u5740",dataIndex:"url",width:200,hideInSearch:!0,renderText:function(F){return(0,e.jsx)(_.Z,{overlayInnerStyle:{padding:0},content:(0,e.jsx)(N.Z,{value:F||"",bordered:!1}),children:(0,e.jsx)("a",{style:{wordBreak:"break-word"},children:F})})}},{title:"\u64CD\u4F5C",width:80,hideInSearch:!0,renderText:function(F){if(F.enableCash&&S)return(0,e.jsx)("a",{onClick:function(){x(F.code),a(!0)},children:"\u7F16\u8F91"},"edit")}}],E=function(){var b=B()(s()().mark(function F(){var D;return s()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,(0,A.ln)();case 2:D=M.sent,D.data&&(z(D.data),Z(D.data));case 4:case"end":return M.stop()}},F)}));return function(){return b.apply(this,arguments)}}();return(0,f.useEffect)(function(){E()},[]),(0,e.jsxs)(J._z,{children:[(0,e.jsx)(H.Z,{search:{defaultCollapsed:!1,optionRender:function(){return[(0,e.jsx)(C.Z,{placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",onChange:function(D){return P(D.target.value)}},"name")]}},onReset:function(){Z($)},columns:W,dataSource:o}),U&&(0,e.jsx)(Xe,{updateModalOpen:h,appCode:U||"",onCancel:function(){return a(!1)},onSubmit:function(){a(!1)}})]})},Ye=Je,Le=r(52043),Fe=r(66309),qe=r(86250),_e={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"},en=_e,nn=function(n,u){return f.createElement(Q.Z,(0,se.Z)((0,se.Z)({},n),{},{ref:u,icon:en}))},an=f.forwardRef(nn),he=an,ve=r(66476),be=C.Z.TextArea,rn=function(n){var u=t.Z.useForm(),h=g()(u,1),a=h[0],v=function(){a.submit()},L=function(){n.onCancel()},$=function(){var O=B()(s()().mark(function i(o){var Z;return s()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,ce({appCode:o});case 2:Z=c.sent,a.setFieldsValue(Z.data);case 4:case"end":return c.stop()}},i)}));return function(o){return O.apply(this,arguments)}}();(0,f.useEffect)(function(){$(n.appCode)},[n.appCode]);var z=function(){var O=B()(s()().mark(function i(o){return s()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,Ee({appCode:n.appCode},o);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()}},i,null,[[0,5]])}));return function(o){return O.apply(this,arguments)}}();return(0,e.jsx)(Ze.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:v,onCancel:L,children:(0,e.jsxs)(t.Z,{labelCol:{span:8},wrapperCol:{span:18},form:a,onFinish:z,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)(ae.Z,{title:"\u652F\u4ED8\u5B9D\u5F00\u653E\u5E73\u53F0\u83B7\u53D6\uFF0Chttps://open.alipay.com/develop/manage",children:(0,e.jsx)(K,{})})})]}),children:(0,e.jsx)(C.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)(ae.Z,{title:"\u5BC6\u94A5\u5DE5\u5177\u751F\u6210",children:(0,e.jsx)(K,{})})})]}),children:(0,e.jsxs)(C.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)(be,{autoSize:{maxRows:6}})}),(0,e.jsx)(ve.Z,{name:"file",multiple:!1,onChange:function(i){if(i.file.status!=="uploading"){var o=new FileReader;o.onload=function(){a.setFieldsValue({aliPayPrivateKey:o.result})},o.readAsText(i.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(re.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(he,{}),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)(ae.Z,{title:"\u652F\u4ED8\u5B9D\u5F00\u653E\u5E73\u53F0\u4E0B\u8F7D",children:(0,e.jsx)(K,{})})})]}),children:(0,e.jsxs)(C.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)(be,{autoSize:{maxRows:6}})}),(0,e.jsx)(ve.Z,{name:"file",multiple:!1,onChange:function(i){if(i.file.status!=="uploading"){var o=new FileReader;o.onload=function(){a.setFieldsValue({aliPayAppCert:o.result})},o.readAsText(i.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(re.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(he,{}),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)(ae.Z,{title:"\u652F\u4ED8\u5B9D\u5F00\u653E\u5E73\u53F0\u4E0B\u8F7D",children:(0,e.jsx)(K,{})})})]}),children:(0,e.jsxs)(C.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)(be,{autoSize:{maxRows:6}})}),(0,e.jsx)(ve.Z,{name:"file",multiple:!1,onChange:function(i){if(i.file.status!=="uploading"){var o=new FileReader;o.onload=function(){a.setFieldsValue({aliPayRootCert:o.result})},o.readAsText(i.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(re.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(he,{}),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)(ae.Z,{title:"\u652F\u4ED8\u5B9D\u5F00\u653E\u5E73\u53F0\u4E0B\u8F7D",children:(0,e.jsx)(K,{})})})]}),children:(0,e.jsxs)(C.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)(be,{autoSize:{maxRows:6}})}),(0,e.jsx)(ve.Z,{name:"file",multiple:!1,onChange:function(i){if(i.file.status!=="uploading"){var o=new FileReader;o.onload=function(){a.setFieldsValue({aliPayPublicCert:o.result})},o.readAsText(i.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(re.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(he,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})})]})})},tn=rn,Ne=r(34041),ze=r(32400),un=r(56448),We=r.n(un),ie=r(2453),ln=function(n){var u=n.onUploadSuccess,h=n.onUploadError,a=(0,f.useState)(!1),v=g()(a,2),L=v[0],$=v[1],z=(0,f.useState)(null),O=g()(z,2),i=O[0],o=O[1],Z=(0,f.useState)([]),l=g()(Z,2),c=l[0],d=l[1];(0,f.useEffect)(function(){function R(){return T.apply(this,arguments)}function T(){return T=B()(s()().mark(function U(){var x,P;return s()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.prev=0,E.next=3,(0,A.po)();case 3:if(x=E.sent,!(!x.data||!x.data.accessKeySecret||!x.data.accessKeyId)){E.next=7;break}return ie.ZP.error("\u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),E.abrupt("return");case 7:P=new(We())({region:"oss-cn-beijing",accessKeyId:x.data.accessKeyId,accessKeySecret:x.data.accessKeySecret,stsToken:x.data.securityToken,bucket:x.data.bucket}),o(P),E.next=15;break;case 11:E.prev=11,E.t0=E.catch(0),ie.ZP.error("\u521D\u59CB\u5316 OSS \u5BA2\u6237\u7AEF\u5931\u8D25"),h&&h(E.t0);case 15:case"end":return E.stop()}},U,null,[[0,11]])})),T.apply(this,arguments)}R()},[h]);var S=function(){var R=B()(s()().mark(function T(U){var x,P,W,E;return s()().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(x=U.file,!(x instanceof File)){F.next=26;break}return $(!0),d([{uid:x.uid,name:x.name,status:"uploading"}]),F.prev=4,F.next=7,(0,ze.p)(x);case 7:return P=F.sent,W="matrix/".concat(P,".").concat(x.name.split(".").pop()),F.next=11,i==null?void 0:i.put(W,x,{headers:{"Content-Type":x.type}});case 11:E="https://apks.bzgames.cn/".concat(W),u&&u(E,x),$(!1),d([{uid:x.uid,name:x.name,status:"done",url:E}]),F.next=21;break;case 17:F.prev=17,F.t0=F.catch(4),ie.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"),h&&h(F.t0);case 21:return F.prev=21,$(!1),F.finish(21);case 24:F.next=27;break;case 26:ie.ZP.error("\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B\u9519\u8BEF");case 27:case"end":return F.stop()}},T,null,[[4,17,21,24]])}));return function(U){return R.apply(this,arguments)}}();return(0,e.jsx)(ve.Z,{fileList:c,customRequest:S,disabled:L||!i,children:(0,e.jsx)(re.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(he,{}),children:"\u9009\u62E9\u6587\u4EF6"})})},He=ln,sn=r(19632),on=r.n(sn),cn=function(n){var u=n.value,h=n.onChange,a=(0,f.useState)(!1),v=g()(a,2),L=v[0],$=v[1],z=(0,f.useState)(null),O=g()(z,2),i=O[0],o=O[1],Z=(0,f.useState)([]),l=g()(Z,2),c=l[0],d=l[1];(0,f.useEffect)(function(){u&&d(u)},[u]),(0,f.useEffect)(function(){function T(){return U.apply(this,arguments)}function U(){return U=B()(s()().mark(function x(){var P,W;return s()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.prev=0,b.next=3,(0,A.po)();case 3:if(P=b.sent,!(!P.data||!P.data.accessKeySecret||!P.data.accessKeyId)){b.next=7;break}return ie.ZP.error("\u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),b.abrupt("return");case 7:W=new(We())({region:"oss-cn-beijing",accessKeyId:P.data.accessKeyId,accessKeySecret:P.data.accessKeySecret,stsToken:P.data.securityToken,bucket:P.data.bucket}),o(W),b.next=14;break;case 11:b.prev=11,b.t0=b.catch(0),ie.ZP.error("\u521D\u59CB\u5316 OSS \u5BA2\u6237\u7AEF\u5931\u8D25");case 14:case"end":return b.stop()}},x,null,[[0,11]])})),U.apply(this,arguments)}T()},[]),(0,f.useEffect)(function(){h&&h(c)},[c]);var S=function(){var T=B()(s()().mark(function U(x){var P,W,E,b;return s()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(P=x.file,!(P instanceof File)){D.next=23;break}return $(!0),D.prev=3,D.next=6,(0,ze.p)(P);case 6:return W=D.sent,E="matrix/".concat(W,".").concat(P.name.split(".").pop()),D.next=10,i==null?void 0:i.put(E,P,{headers:{"Content-Type":P.type}});case 10:b="https://apks.bzgames.cn/".concat(E),$(!1),d(function(oe){return[].concat(on()(oe),[{uid:P.uid,name:P.name,status:"done",url:b}])}),D.next=18;break;case 15:D.prev=15,D.t0=D.catch(3),ie.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25");case 18:return D.prev=18,$(!1),D.finish(18);case 21:D.next=24;break;case 23:ie.ZP.error("\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B\u9519\u8BEF");case 24:case"end":return D.stop()}},U,null,[[3,15,18,21]])}));return function(x){return T.apply(this,arguments)}}(),R=function(U){var x=(c||[]).filter(function(P){return P.url!==U.url});d(x)};return(0,e.jsx)(ve.Z,{multiple:!0,fileList:c,onRemove:R,customRequest:S,disabled:L||!i,children:(0,e.jsx)(re.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(he,{}),children:"\u9009\u62E9\u6587\u4EF6"})})},dn=cn,pn=function(n){var u=t.Z.useForm(),h=g()(u,1),a=h[0],v=(0,f.useState)(!1),L=g()(v,2),$=L[0],z=L[1],O=function(){a.submit()},i=function(){n.onCancel()},o=function(){var l=B()(s()().mark(function c(d){var S;return s()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(d){T.next=3;break}return a.resetFields(),T.abrupt("return");case 3:return T.next=5,Ie({appCode:d});case 5:S=T.sent,a.setFieldsValue(S.data);case 7:case"end":return T.stop()}},c)}));return function(d){return l.apply(this,arguments)}}();(0,f.useEffect)(function(){o(n.appCode),z(n.appCode!==void 0),n.appCode||a.resetFields()},[n.appCode]);var Z=function(){var l=B()(s()().mark(function c(d){return s()().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.prev=0,R.next=3,we(d);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()}},c,null,[[0,5]])}));return function(d){return l.apply(this,arguments)}}();return(0,e.jsx)(Ze.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:O,onCancel:i,children:(0,e.jsxs)(t.Z,{labelCol:{span:5},wrapperCol:{span:18},form:a,onFinish:Z,children:[(0,e.jsx)(t.Z.Item,{name:"id",style:{display:"none"},children:(0,e.jsx)(C.Z,{type:"hidden"})}),(0,e.jsx)(t.Z.Item,{name:"code",style:{display:"none"},children:(0,e.jsx)(C.Z,{type:"hidden"})}),(0,e.jsx)(t.Z.Item,{label:"\u5E94\u7528\u540D",name:"name",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(t.Z.Item,{label:"\u5E94\u7528icon",name:"img",children:(0,e.jsxs)(C.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"img",noStyle:!0,children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(He,{onUploadSuccess:function(c){a.setFieldsValue({img:c})}})]})}),(0,e.jsx)(t.Z.Item,{label:"\u4E0B\u8F7D\u5730\u5740",name:"url",children:(0,e.jsxs)(C.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"url",noStyle:!0,children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(He,{onUploadSuccess:function(c,d){a.setFieldsValue({url:c,fileSize:(0,Le.aV)(d.size)})}})]})}),(0,e.jsx)(t.Z.Item,{label:"app\u7248\u672C",name:"version",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(t.Z.Item,{label:"\u83DC\u5355\u680F\u4E2D",name:"hide",children:(0,e.jsx)(Ne.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)(Ne.Z,{disabled:$,options:(0,Le.FG)()})}),(0,e.jsx)(t.Z.Item,{label:"app\u5927\u5C0F",name:"fileSize",children:(0,e.jsx)(C.Z,{disabled:!0})}),(0,e.jsx)(t.Z.Item,{label:"app\u4E0B\u8F7D\u6B21\u6570",name:"downloadTimes",children:(0,e.jsx)(C.Z,{disabled:!0})}),(0,e.jsx)(t.Z.Item,{label:"\u6240\u5C5E\u516C\u53F8",name:"author",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(t.Z.Item,{label:"app\u5305\u540D",name:"packageName",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(t.Z.Item,{label:"app\u7B80\u4ECB",name:"desc",children:(0,e.jsx)(C.Z.TextArea,{})}),(0,e.jsxs)(t.Z.Item,{label:"\u5E94\u7528\u622A\u56FE",name:"images",children:[(0,e.jsx)(dn,{value:[],onChange:function(c){var d=c.filter(function(S){return S.url}).map(function(S){return S.url}).filter(Boolean);d&&d.length>0&&a.setFieldsValue({images:d})}}),(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"})]})]})})},fn=pn,mn=function(n){var u=t.Z.useForm(),h=g()(u,1),a=h[0],v=function(){a.submit()},L=function(){n.onCancel()},$=function(){var O=B()(s()().mark(function i(o){var Z;return s()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,w({appCode:o});case 2:Z=c.sent,a.setFieldsValue(Z.data);case 4:case"end":return c.stop()}},i)}));return function(o){return O.apply(this,arguments)}}();(0,f.useEffect)(function(){$(n.appCode)},[n.appCode]);var z=function(){var O=B()(s()().mark(function i(o){return s()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,G({appCode:n.appCode},o);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()}},i,null,[[0,5]])}));return function(o){return O.apply(this,arguments)}}();return(0,e.jsx)(Ze.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:v,onCancel:L,children:(0,e.jsxs)(t.Z,{labelCol:{span:8},wrapperCol:{span:16},form:a,onFinish:z,children:[(0,e.jsx)(t.Z.Item,{name:"umengAppKeyAli",label:"AppKey(\u963F\u91CC\u4E91)",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"umengAppSecret",label:"AppSecret(\u963F\u91CC\u4E91)",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"umengAppCode",label:"AppCode(\u963F\u91CC\u4E91)",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"umengAppKey",label:"AppKey(\u53CB\u76DF)",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"linkId",label:"linkId(\u53CB\u76DF)",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"bindWx",label:"\u7ED1\u5B9A\u5FAE\u4FE1\u8D26\u53F7",children:(0,e.jsx)(Ke.Z,{})})]})})},hn=mn,vn=function(){var n=(0,f.useState)(!1),u=g()(n,2),h=u[0],a=u[1],v=(0,f.useState)([]),L=g()(v,2),$=L[0],z=L[1],O=(0,f.useState)([]),i=g()(O,2),o=i[0],Z=i[1],l=(0,f.useState)(!1),c=g()(l,2),d=c[0],S=c[1],R=(0,f.useState)(!1),T=g()(R,2),U=T[0],x=T[1],P=(0,f.useState)(),W=g()(P,2),E=W[0],b=W[1],F=[{title:"\u5E94\u7528\u540D",dataIndex:"name",copyable:!0,hideInSearch:!0},{title:"\u56FE\u7247",dataIndex:"img",hideInSearch:!0,renderText:function(k){return(0,e.jsx)("img",{style:{width:"40px"},src:k})}},{title:"code",dataIndex:"code",copyable:!0,hideInSearch:!0},{title:"\u4E0B\u8F7D\u5730\u5740",dataIndex:"url",width:200,hideInSearch:!0,renderText:function(k){return(0,e.jsx)(_.Z,{overlayInnerStyle:{padding:0},content:(0,e.jsx)(N.Z,{value:k||"",bordered:!1}),children:(0,e.jsx)("a",{style:{wordBreak:"break-word"},children:k})})}},{title:"secret",dataIndex:"secret",ellipsis:!0,copyable:!0,hideInSearch:!0},{title:"\u83DC\u5355\u680F\u4E2D",dataIndex:"hide",hideInSearch:!0,renderText:function(k){return k===0?(0,e.jsx)(Fe.Z,{color:"blue",children:"\u5C55\u793A"}):(0,e.jsx)(Fe.Z,{color:"purple",children:"\u9690\u85CF"})}},{title:"\u6E20\u9053",dataIndex:"channel",hideInSearch:!0,renderText:function(k){var X=(0,Le.FG)(),fe=X.find(function(q){return q.value===k});return fe?fe.label:k}},{title:"\u64CD\u4F5C",width:100,hideInSearch:!0,renderText:function(k){return(0,e.jsxs)(qe.Z,{gap:"small",wrap:!0,children:[(0,e.jsx)(Fe.Z,{color:"magenta",onClick:function(){b(k.code),a(!0)},children:"\u7F16\u8F91"},"edit"),k.enableCash&&(0,e.jsx)(Fe.Z,{color:"orange",onClick:function(){b(k.code),x(!0)},children:"\u53CB\u76DF\u914D\u7F6E"},"ediyUMeng"),(0,e.jsx)(Fe.Z,{color:"#2db7f5",onClick:function(){b(k.code),S(!0)},children:"\u652F\u4ED8\u5B9D\u914D\u7F6E"},"ediyAliPay")]})}}],D=function(){var M=B()(s()().mark(function k(){var X;return s()().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,(0,A.ln)();case 2:X=q.sent,X.data&&(z(X.data),Z(X.data));case 4:case"end":return q.stop()}},k)}));return function(){return M.apply(this,arguments)}}();(0,f.useEffect)(function(){D()},[]);var oe=function(k){var X=$.filter(function(fe){var q;return fe==null||(q=fe.name)===null||q===void 0?void 0:q.includes(k)});Z(X)};return(0,e.jsxs)(J._z,{children:[(0,e.jsx)(re.ZP,{style:{marginBottom:"20px"},onClick:function(){a(!0),b(void 0)},children:"\u65B0\u5EFA\u5E94\u7528"}),(0,e.jsx)(H.Z,{search:{defaultCollapsed:!1,optionRender:function(){return[(0,e.jsx)(C.Z,{placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",onChange:function(X){return oe(X.target.value)}},"name")]}},onReset:function(){Z($)},columns:F,dataSource:o}),E&&d&&(0,e.jsx)(tn,{updateModalOpen:d,appCode:E||"",onCancel:function(){return S(!1)},onSubmit:function(){S(!1),D()}}),E&&U&&(0,e.jsx)(hn,{updateModalOpen:U,appCode:E||"",onCancel:function(){return x(!1)},onSubmit:function(){x(!1)}}),(0,e.jsx)(fn,{updateModalOpen:h,appCode:E,onCancel:function(){return a(!1)},onSubmit:function(){a(!1),D()}})]})},gn=vn,Cn=function(){var n=(0,V.useModel)("@@initialState"),u=n.initialState,h=u==null?void 0:u.currentUser,a=h&&h.role&&h.role<2;return(0,e.jsx)(J._z,{children:a?(0,e.jsx)(gn,{}):(0,e.jsx)(Ye,{})})},xn=Cn},52043:function(Ae,te,r){r.d(te,{E7:function(){return V},FG:function(){return J},RQ:function(){return le},XY:function(){return ue},aV:function(){return B},m0:function(){return s}});var J=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},V=function(g){var A=[];if(!g)return A;for(var H=g>>1,_=["\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,C=_;N<C.length;N++){var f=C[N];H&1&&A.push(f),H>>=1}return A},ue=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(g){var A=new Date(g),H=A.getFullYear().toString().padStart(4,"0"),_=(A.getMonth()+1).toString().padStart(2,"0"),N=A.getDate().toString().padStart(2,"0");return H+_+N},le=function(g,A){var H=g.toString();return H.padStart(A,"0")},B=function(g){var A=g;return A<1024?A+" B":(A=parseFloat((A/1024).toFixed(2)),A<1024?A+" KB":(A=parseFloat((A/1024).toFixed(2)),A+" MB"))}},32400:function(Ae,te,r){r.d(te,{p:function(){return Y}});var J=r(15009),V=r.n(J),ue=r(99289),s=r.n(ue),le=r(8322),B=r.n(le);function Y(A){return g.apply(this,arguments)}function g(){return g=s()(V()().mark(function A(H){return V()().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.abrupt("return",new Promise(function(C,f){var me=new(B()).ArrayBuffer,I=new FileReader;I.onload=function(ce){var ee;me.append((ee=ce.target)===null||ee===void 0?void 0:ee.result),C(me.end())},I.onerror=function(ce){f(ce)},I.readAsArrayBuffer(H)}));case 1:case"end":return N.stop()}},A)})),g.apply(this,arguments)}},86250:function(Ae,te,r){r.d(te,{Z:function(){return je}});var J=r(67294),V=r(93967),ue=r.n(V),s=r(98423),le=r(98065),B=r(53124),Y=r(91945),g=r(45503);const A=["wrap","nowrap","wrap-reverse"],H=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],_=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],N=(m,j)=>{const w=j.wrap===!0?"wrap":j.wrap;return{[`${m}-wrap-${w}`]:w&&A.includes(w)}},C=(m,j)=>{const w={};return _.forEach(y=>{w[`${m}-align-${y}`]=j.align===y}),w[`${m}-align-stretch`]=!j.align&&!!j.vertical,w},f=(m,j)=>{const w={};return H.forEach(y=>{w[`${m}-justify-${y}`]=j.justify===y}),w};function me(m,j){return ue()(Object.assign(Object.assign(Object.assign({},N(m,j)),C(m,j)),f(m,j)))}var I=me;const ce=m=>{const{componentCls:j}=m;return{[j]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},ee=m=>{const{componentCls:j}=m;return{[j]:{"&-gap-small":{gap:m.flexGapSM},"&-gap-middle":{gap:m.flexGap},"&-gap-large":{gap:m.flexGapLG}}}},Ee=m=>{const{componentCls:j}=m,w={};return A.forEach(y=>{w[`${j}-wrap-${y}`]={flexWrap:y}}),w},ge=m=>{const{componentCls:j}=m,w={};return _.forEach(y=>{w[`${j}-align-${y}`]={alignItems:y}}),w},Ie=m=>{const{componentCls:j}=m,w={};return H.forEach(y=>{w[`${j}-justify-${y}`]={justifyContent:y}}),w},Ce=()=>({});var we=(0,Y.I$)("Flex",m=>{const{paddingXS:j,padding:w,paddingLG:y}=m,G=(0,g.TS)(m,{flexGapSM:j,flexGap:w,flexGapLG:y});return[ce(G),ee(G),Ee(G),ge(G),Ie(G)]},Ce,{resetStyle:!1}),xe=function(m,j){var w={};for(var y in m)Object.prototype.hasOwnProperty.call(m,y)&&j.indexOf(y)<0&&(w[y]=m[y]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,y=Object.getOwnPropertySymbols(m);G<y.length;G++)j.indexOf(y[G])<0&&Object.prototype.propertyIsEnumerable.call(m,y[G])&&(w[y[G]]=m[y[G]]);return w},je=J.forwardRef((m,j)=>{const{prefixCls:w,rootClassName:y,className:G,style:ye,flex:Oe,gap:ne,children:Ge,vertical:de=!1,component:se="div"}=m,Pe=xe(m,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:Q,direction:De,getPrefixCls:Be}=J.useContext(B.E_),K=Be("flex",w),[Se,Te,Me]=we(K),Re=de!=null?de:Q==null?void 0:Q.vertical,Ue=ue()(G,y,Q==null?void 0:Q.className,K,Te,Me,I(K,m),{[`${K}-rtl`]:De==="rtl",[`${K}-gap-${ne}`]:(0,le.n)(ne),[`${K}-vertical`]:Re}),t=Object.assign(Object.assign({},Q==null?void 0:Q.style),ye);return Oe&&(t.flex=Oe),ne&&!(0,le.n)(ne)&&(t.gap=ne),Se(J.createElement(se,Object.assign({ref:j,className:Ue,style:t},(0,s.Z)(Pe,["justify","wrap","align"])),Ge))})}}]);