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,le,r){r.r(le),r.d(le,{default:function(){return xn}});var Y=r(90930),G=r(35312),se=r(15009),s=r.n(se),ie=r(99289),w=r.n(ie),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 ae.apply(this,arguments)}function ae(){return ae=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)})),ae.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 W(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 De(f,n){return re.apply(this,arguments)}function re(){return re=_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)})),re.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 oe=r(1413),Oe=r(93696),X=r(91146),Pe=function(n,u){return h.createElement(X.Z,(0,oe.Z)((0,oe.Z)({},n),{},{ref:u,icon:Oe.Z}))},Be=h.forwardRef(Pe),K=Be,Se=r(3089),Te=r(42110),Me=function(n,u){return h.createElement(X.Z,(0,oe.Z)((0,oe.Z)({},n),{},{ref:u,icon:Te.Z}))},Re=h.forwardRef(Me),Ue=Re,t=r(8232),Ze=r(17788),Ke=r(72269),te=r(37804),ne=r(83062),$e=r(71230),ue=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 N=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)}}(),D={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:N,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)(te.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"tencentDailyLimit",label:"\u5E7F\u544A\u6BCF\u65E5\u6B21\u6570",children:(0,e.jsx)(te.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"videoDuration",label:"\u89C6\u9891\u5E7F\u544A\u95F4\u9694(\u79D2)",children:(0,e.jsx)(te.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"popUpDuration",label:"\u63D2\u9875\u5E7F\u544A\u95F4\u9694(\u79D2)",children:(0,e.jsx)(te.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)(ne.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,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)(te.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)(ue.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)(ne.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)(te.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)(ne.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)(te.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)(ne.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)(te.Z,{style:{width:"60%"}})}),(0,e.jsx)(t.Z.Item,{name:"defaultRate",label:(0,e.jsxs)(e.Fragment,{children:["\u7528\u6237\u5206\u6210\u6BD4\u4F8B",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ne.Z,{title:"\u6BD4\u5982100\uFF0C\u5C31\u662F100%\u5168\u5206\u7ED9\u7528\u6237",children:(0,e.jsx)(K,{})})})]}),children:(0,e.jsx)(te.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?D: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)(ue.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],N=$[1],D=(0,h.useState)([]),p=C()(D,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(O){var P;return O==null||(P=O.name)===null||P===void 0?void 0:P.includes(R)});Z(A)},z=[{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(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,(0,b.ln)();case 2:A=P.sent,A.data&&(N(A.data),Z(A.data));case 4:case"end":return P.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:z,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,oe.Z)((0,oe.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 D=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 D.apply(this,arguments)}}();(0,h.useEffect)(function(){k(n.appCode)},[n.appCode]);var N=function(){var D=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 D.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:N,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)(ne.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)(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)(ne.Z,{title:"\u5BC6\u94A5\u5DE5\u5177\u751F\u6210",children:(0,e.jsx)(K,{})})})]}),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)(ue.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)(ne.Z,{title:"\u652F\u4ED8\u5B9D\u5F00\u653E\u5E73\u53F0\u4E0B\u8F7D",children:(0,e.jsx)(K,{})})})]}),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)(ue.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)(ne.Z,{title:"\u652F\u4ED8\u5B9D\u5F00\u653E\u5E73\u53F0\u4E0B\u8F7D",children:(0,e.jsx)(K,{})})})]}),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)(ue.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)(ne.Z,{title:"\u652F\u4ED8\u5B9D\u5F00\u653E\u5E73\u53F0\u4E0B\u8F7D",children:(0,e.jsx)(K,{})})})]}),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)(ue.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],N=$[1],D=(0,h.useState)(null),p=C()(D,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,z;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:z=new(We())({region:"oss-cn-beijing",accessKeyId:d.data.accessKeyId,accessKeySecret:d.data.accessKeySecret,stsToken:d.data.securityToken,bucket:d.data.bucket}),Z(z),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,z,V,o,R;return s()().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(d=L.file,!(d instanceof File)){O.next=31;break}if(N(!0),S([{uid:d.uid,name:d.name,status:"uploading"}]),O.prev=4,z=d.name.split(".").pop(),a){O.next=13;break}return O.next=9,(0,ze.p)(d);case 9:o=O.sent,V="matrix/".concat(o,".").concat(z),O.next=14;break;case 13:V="matrix/".concat(a,".").concat(z);case 14:return O.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),N(!1),S([{uid:d.uid,name:d.name,status:"done",url:R}]),O.next=26;break;case 22:O.prev=22,O.t0=O.catch(4),ce.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"),g&&g(O.t0);case 26:return O.prev=26,N(!1),O.finish(26);case 29:O.next=32;break;case 31:ce.ZP.error("\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B\u9519\u8BEF");case 32:case"end":return O.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)(ue.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],N=(0,h.useState)(null),D=C()(N,2),p=D[0],i=D[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,z;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:z=new(We())({region:"oss-cn-beijing",accessKeyId:d.data.accessKeyId,accessKeySecret:d.data.accessKeySecret,stsToken:d.data.securityToken,bucket:d.data.bucket}),i(z),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,z,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 z=A.sent,V="matrix/".concat(z,".").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(O){return[].concat(on()(O),[{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)(ue.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],N=$[1],D=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),N(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:D,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 D=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 D.apply(this,arguments)}}();(0,h.useEffect)(function(){k(n.appCode)},[n.appCode]);var N=function(){var D=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,W({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 D.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:N,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],N=$[1],D=(0,h.useState)([]),p=C()(D,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)(),z=C()(d,2),V=z[0],o=z[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 P=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&&(N(J.data),Z(J.data));case 4:case"end":return _.stop()}},U)}));return function(){return P.apply(this,arguments)}}();(0,h.useEffect)(function(){A()},[]);var O=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)(ue.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 O(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,le,r){r.d(le,{E7:function(){return G},FG:function(){return Y},RQ:function(){return ie},XY:function(){return se},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},se=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},ie=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,le,r){r.d(le,{p:function(){return q}});var Y=r(15009),G=r.n(Y),se=r(99289),s=r.n(se),ie=r(8322),w=r.n(ie);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 ae;me.append((ae=de.target)===null||ae===void 0?void 0:ae.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,le,r){r.d(le,{Z:function(){return je}});var Y=r(67294),G=r(93967),se=r.n(G),s=r(98423),ie=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 se()(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"}}}},ae=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,W=(0,C.TS)(v,{flexGapSM:y,flexGap:I,flexGapLG:F});return[de(W),ae(W),Ee(W),ge(W),Ie(W)]},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 W=0,F=Object.getOwnPropertySymbols(v);W<F.length;W++)y.indexOf(F[W])<0&&Object.prototype.propertyIsEnumerable.call(v,F[W])&&(I[F[W]]=v[F[W]]);return I},je=Y.forwardRef((v,y)=>{const{prefixCls:I,rootClassName:F,className:W,style:ye,flex:De,gap:re,children:Ge,vertical:pe=!1,component:oe="div"}=v,Oe=xe(v,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:X,direction:Pe,getPrefixCls:Be}=Y.useContext(w.E_),K=Be("flex",I),[Se,Te,Me]=we(K),Re=pe!=null?pe:X==null?void 0:X.vertical,Ue=se()(W,F,X==null?void 0:X.className,K,Te,Me,E(K,v),{[`${K}-rtl`]:Pe==="rtl",[`${K}-gap-${re}`]:(0,ie.n)(re),[`${K}-vertical`]:Re}),t=Object.assign(Object.assign({},X==null?void 0:X.style),ye);return De&&(t.flex=De),re&&!(0,ie.n)(re)&&(t.gap=re),Se(Y.createElement(oe,Object.assign({ref:y,className:Ue,style:t},(0,s.Z)(Oe,["justify","wrap","align"])),Ge))})}}]);
|
|
|