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