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
20 KiB

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[190],{40110:function(J,R,t){var v=t(1413),h=t(67294),F=t(509),p=t(91146),W=function(E,c){return h.createElement(p.Z,(0,v.Z)((0,v.Z)({},E),{},{ref:c,icon:F.Z}))},x=h.forwardRef(W);R.Z=x},39829:function(J,R,t){t.r(R),t.d(R,{default:function(){return q}});var v=t(97857),h=t.n(v),F=t(15009),p=t.n(F),W=t(99289),x=t.n(W),C=t(35312);function E(H,N){return c.apply(this,arguments)}function c(){return c=x()(p()().mark(function H(N,l){return p()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,C.request)("/api/admin/money/audit",h()({method:"POST",headers:{"Content-Type":"application/json"},data:N},l||{})));case 1:case"end":return r.stop()}},H)})),c.apply(this,arguments)}function B(H,N){return $.apply(this,arguments)}function $(){return $=x()(p()().mark(function H(N,l){return p()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,C.request)("/api/admin/money/list",h()({method:"POST",headers:{"Content-Type":"application/json"},data:N},l||{})));case 1:case"end":return r.stop()}},H)})),$.apply(this,arguments)}var V=t(58125),L=t(90930),K=t(67539),w=t(66309),S=t(86250),T=t(86738),Z=t(14726),I=t(67294),j=t(52043),k=t(42767),M=t(85893),i=function(){var N=(0,C.useParams)(),l=N.code,u=(0,I.useRef)();(0,I.useEffect)(function(){var o;(o=u.current)===null||o===void 0||o.reload()},[l]);var r=[{title:"id",dataIndex:"id",valueType:"textarea",copyable:!0,hideInSearch:!0,renderText:function(f,e){return(0,j.m0)(e.createdAt||0)+(0,j.RQ)(e.id||0,6)}},{title:"\u7528\u6237",hideInSearch:!0,dataIndex:"user",valueType:"textarea",width:150,renderText:function(f,e){if(e.user)return(0,M.jsx)(k.Z,{data:e.user})}},{title:"\u91D1\u989D\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"cent",valueType:"textarea",renderText:function(f){return(0,V.D)(f)}},{title:"\u652F\u4ED8\u5B9D\u540D\u79F0",dataIndex:"name",hideInSearch:!0},{title:"\u652F\u4ED8\u5B9D\u8D26\u53F7",dataIndex:"aliPayAccount",hideInSearch:!0},{title:"\u8BA2\u5355\u53F7",dataIndex:"orderId",hideInSearch:!0,ellipsis:!0},{title:"\u8F6C\u8D26\u65F6\u95F4",dataIndex:"transDate",hideInSearch:!0},{title:"\u72B6\u6001",dataIndex:"status",hideInSearch:!0,renderText:function(f){var e=(0,j.XY)(),a=e.find(function(n){return n.value===f+""}),s=a?a.label:"\u672A\u77E5";return(0,M.jsx)(w.Z,{color:a==null?void 0:a.color,children:s})}},{title:"\u72B6\u6001",dataIndex:"status",hideInTable:!0,valueType:"select",fieldProps:{options:(0,j.XY)()}},{title:"\u5907\u6CE8",dataIndex:"reason",hideInSearch:!0},{title:"\u7533\u8BF7\u65F6\u95F4",dataIndex:"createdAt",valueType:"dateTime",hideInSearch:!0},{title:"\u64CD\u4F5C",width:100,hideInSearch:!0,renderText:function(f){return(0,M.jsx)(S.Z,{gap:"small",wrap:!0,children:f.status===0&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(T.Z,{title:"\u62D2\u7EDD\u63D0\u73B0\u7533\u8BF7",description:"\u62D2\u7EDD\u540E\uFF0C\u72B6\u6001\u65E0\u6CD5\u4FEE\u6539\u6210\u5BA1\u6279\u901A\u8FC7\uFF0C\u786E\u5B9A\u62D2\u7EDD\u5417?",onConfirm:x()(p()().mark(function e(){var a;return p()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,E({id:f.id,status:-2,reason:""});case 2:(a=u.current)===null||a===void 0||a.reload();case 3:case"end":return n.stop()}},e)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,M.jsx)(Z.ZP,{children:"\u62D2\u7EDD"})}),(0,M.jsx)(T.Z,{title:"\u901A\u8FC7\u63D0\u73B0\u7533\u8BF7",description:"\u901A\u8FC7\u540E\u7CFB\u7EDF\u5C06\u81EA\u52A8\u8F6C\u8D26\uFF0C\u65E0\u6CD5\u64A4\u56DE\uFF0C\u786E\u5B9A\u901A\u8FC7\u5417?",onConfirm:x()(p()().mark(function e(){var a;return p()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,E({id:f.id,status:1,reason:""});case 2:(a=u.current)===null||a===void 0||a.reload();case 3:case"end":return n.stop()}},e)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,M.jsx)(Z.ZP,{type:"primary",children:"\u901A\u8FC7"})})]})})}}];return(0,M.jsx)(L._z,{children:(0,M.jsx)(K.Z,{actionRef:u,request:function(){var o=x()(p()().mark(function f(e){var a,s,n;return p()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,B(h()(h()({},e),{},{appCode:l}));case 2:return n=b.sent,b.abrupt("return",{data:(a=n.data)===null||a===void 0?void 0:a.data,total:(s=n.data)===null||s===void 0?void 0:s.total,success:!0});case 4:case"end":return b.stop()}},f)}));return function(f){return o.apply(this,arguments)}}(),columns:r})})},q=i},42767:function(J,R,t){t.d(R,{Z:function(){return l}});var v=t(5574),h=t.n(v),F=t(55241),p=t(2487),W=t(71230),x=t(7134),C=t(67294),E=t(52043),c=t(58125),B=t(15009),$=t.n(B),V=t(97857),L=t.n(V),K=t(99289),w=t.n(K),S=t(40110),T=t(67539),Z=t(55102),I=t(42075),j=t(14726),k=t(17788),M=t(4575),i=t(85893),q=function(r){var o=(0,C.useState)(),f=h()(o,2),e=f[0],a=f[1],s=(0,C.useState)(),n=h()(s,2),d=n[0],b=n[1],A=[{title:"\u5E94\u7528\u540D",dataIndex:"appName",ellipsis:!0,hideInSearch:!0,filterDropdown:function(g){var m=g.setSelectedKeys,z=g.selectedKeys,O=g.confirm,U=g.clearFilters;return(0,i.jsxs)("div",{style:{padding:8},children:[(0,i.jsx)(Z.Z,{placeholder:"\u641C\u7D22\u5E94\u7528",value:z[0],onChange:function(y){return m(y.target.value?[y.target.value]:[])},onPressEnter:function(){return O()},style:{marginBottom:8,display:"block"}}),(0,i.jsxs)(I.Z,{children:[(0,i.jsx)(j.ZP,{onClick:function(){return O()},type:"primary",children:"\u641C\u7D22"}),(0,i.jsx)(j.ZP,{onClick:function(){return U&&U()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(g,m){return typeof g=="string"&&typeof(m==null?void 0:m.appName)=="string"?m.appName.includes(g):!1},filterIcon:function(g){return(0,i.jsx)(S.Z,{style:{color:g?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u5E94\u7528\u5305\u540D",dataIndex:"packageName",hideInSearch:!0,ellipsis:!0,filterDropdown:function(g){var m=g.setSelectedKeys,z=g.selectedKeys,O=g.confirm,U=g.clearFilters;return(0,i.jsxs)("div",{style:{padding:8},children:[(0,i.jsx)(Z.Z,{placeholder:"\u641C\u7D22\u5305\u540D",value:z[0],onChange:function(y){return m(y.target.value?[y.target.value]:[])},onPressEnter:function(){return O()},style:{marginBottom:8,display:"block"}}),(0,i.jsxs)(I.Z,{children:[(0,i.jsx)(j.ZP,{onClick:function(){return O()},type:"primary",children:"\u641C\u7D22"}),(0,i.jsx)(j.ZP,{onClick:function(){return U&&U()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(g,m){return typeof g=="string"&&typeof(m==null?void 0:m.packageName)=="string"?m.packageName.includes(g):!1},filterIcon:function(g){return(0,i.jsx)(S.Z,{style:{color:g?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}}],D=function(){var P=w()($()().mark(function g(){var m,z,O,U;return $()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,(0,M.ai)();case 2:m=y.sent,m.data&&(O=[],U=[],(z=r.data.localAppList)===null||z===void 0||z.forEach(function(X){var Q;(Q=m.data)!==null&&Q!==void 0&&Q.some(function(te){return te.packageName===X.packageName})?O.push(L()(L()({},X),{},{evil:!0})):U.push(L()(L()({},X),{},{evil:!1}))}),a([].concat(O,U)),b([].concat(O,U)));case 4:case"end":return y.stop()}},g)}));return function(){return P.apply(this,arguments)}}();return(0,C.useEffect)(function(){D()},[]),(0,i.jsx)(k.Z,{style:{width:600},onCancel:r.onClose,visible:!0,footer:[],children:(0,i.jsx)(T.Z,{onRow:function(g){return{style:{backgroundColor:g.evil?"red":"transparent"}}},search:!1,onReset:function(){b(e)},columns:A,dataSource:d})})},H=q,N=function(r){var o=(0,C.useState)(!1),f=h()(o,2),e=f[0],a=f[1],s=(0,E.E7)(r.data.env);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(F.Z,{content:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("p",{children:[(0,i.jsx)("label",{children:"\u603B\u6536\u5165\uFF1A"}),(0,c.P)(r.data.income),"\u5143"]}),(0,i.jsxs)("p",{children:[(0,i.jsx)("label",{children:"\u5DF2\u63D0\u73B0\uFF1A"}),(0,c.D)(r.data.realMoney),"\u5143"]}),r.data.localAppList&&r.data.localAppList.length>0&&(0,i.jsxs)("p",{children:[(0,i.jsx)("label",{children:"\u5DF2\u5B89\u88C5\u5E94\u7528\uFF1A"}),r.data.localAppList.length,"\u4E2A",(0,i.jsx)("a",{onClick:function(){a(!0)},style:{marginLeft:20},children:"\u67E5\u770B"})]}),s.length>0&&(0,i.jsx)(p.Z,{size:"small",header:(0,i.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:s,renderItem:function(d){return(0,i.jsx)(p.Z.Item,{children:d})}})]}),children:(0,i.jsxs)(W.Z,{children:[(0,i.jsx)(x.C,{src:r.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,i.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:s.length>0?"red":""},children:["id:",r.data.id,(0,i.jsx)("br",{}),r.data.nickname||r.data.mobile]})]})}),e&&(0,i.jsx)(H,{onClose:function(){a(!1)},data:r.data})]})},l=N},4575:function(J,R,t){t.d(R,{XM:function(){return B},ai:function(){return E},nr:function(){return K},vE:function(){return V}});var v=t(15009),h=t.n(v),F=t(97857),p=t.n(F),W=t(99289),x=t.n(W),C=t(35312);function E(S){return c.apply(this,arguments)}function c(){return c=x()(h()().mark(function S(T){return h()().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.abrupt("return",(0,C.request)("/api/superAdmin/evilAppList",p()({method:"GET"},T||{})));case 1:case"end":return I.stop()}},S)})),c.apply(this,arguments)}function B(S,T){return $.apply(this,arguments)}function $(){return $=x()(h()().mark(function S(T,Z){return h()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",(0,C.request)("/api/superAdmin/saveEvilApp",p()({method:"POST",headers:{"Content-Type":"application/json"},data:T},Z||{})));case 1:case"end":return j.stop()}},S)})),$.apply(this,arguments)}function V(S,T){return L.apply(this,arguments)}function L(){return L=x()(h()().mark(function S(T,Z){return h()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",(0,C.request)("/api/superAdmin/saveWhiteUser",p()({method:"POST",params:p()({},T)},Z||{})));case 1:case"end":return j.stop()}},S)})),L.apply(this,arguments)}function K(S){return w.apply(this,arguments)}function w(){return w=x()(h()().mark(function S(T){return h()().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.abrupt("return",(0,C.request)("/api/superAdmin/whiteUserList",p()({method:"GET"},T||{})));case 1:case"end":return I.stop()}},S)})),w.apply(this,arguments)}},52043:function(J,R,t){t.d(R,{E7:function(){return h},FG:function(){return v},RQ:function(){return W},XY:function(){return F},aV:function(){return x},m0:function(){return p}});var v=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},h=function(E){var c=[];if(!E)return c;for(var B=E>>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"],V=0,L=$;V<L.length;V++){var K=L[V];B&1&&c.push(K),B>>=1}return c},F=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"}]},p=function(E){var c=new Date(E),B=c.getFullYear().toString().padStart(4,"0"),$=(c.getMonth()+1).toString().padStart(2,"0"),V=c.getDate().toString().padStart(2,"0");return B+$+V},W=function(E,c){var B=E.toString();return B.padStart(c,"0")},x=function(E){var c=E;return c<1024?c+" B":(c=parseFloat((c/1024).toFixed(2)),c<1024?c+" KB":(c=parseFloat((c/1024).toFixed(2)),c+" MB"))}},58125:function(J,R,t){t.d(R,{D:function(){return h},P:function(){return v}});var v=function(p){return p?parseFloat((p/1e5).toFixed(2)):0},h=function(p){return p?parseFloat((p/100).toFixed(2)):0}},86250:function(J,R,t){t.d(R,{Z:function(){return N}});var v=t(67294),h=t(93967),F=t.n(h),p=t(98423),W=t(98065),x=t(53124),C=t(91945),E=t(45503);const c=["wrap","nowrap","wrap-reverse"],B=["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"],V=(l,u)=>{const r=u.wrap===!0?"wrap":u.wrap;return{[`${l}-wrap-${r}`]:r&&c.includes(r)}},L=(l,u)=>{const r={};return $.forEach(o=>{r[`${l}-align-${o}`]=u.align===o}),r[`${l}-align-stretch`]=!u.align&&!!u.vertical,r},K=(l,u)=>{const r={};return B.forEach(o=>{r[`${l}-justify-${o}`]=u.justify===o}),r};function w(l,u){return F()(Object.assign(Object.assign(Object.assign({},V(l,u)),L(l,u)),K(l,u)))}var S=w;const T=l=>{const{componentCls:u}=l;return{[u]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},Z=l=>{const{componentCls:u}=l;return{[u]:{"&-gap-small":{gap:l.flexGapSM},"&-gap-middle":{gap:l.flexGap},"&-gap-large":{gap:l.flexGapLG}}}},I=l=>{const{componentCls:u}=l,r={};return c.forEach(o=>{r[`${u}-wrap-${o}`]={flexWrap:o}}),r},j=l=>{const{componentCls:u}=l,r={};return $.forEach(o=>{r[`${u}-align-${o}`]={alignItems:o}}),r},k=l=>{const{componentCls:u}=l,r={};return B.forEach(o=>{r[`${u}-justify-${o}`]={justifyContent:o}}),r},M=()=>({});var i=(0,C.I$)("Flex",l=>{const{paddingXS:u,padding:r,paddingLG:o}=l,f=(0,E.TS)(l,{flexGapSM:u,flexGap:r,flexGapLG:o});return[T(f),Z(f),I(f),j(f),k(f)]},M,{resetStyle:!1}),q=function(l,u){var r={};for(var o in l)Object.prototype.hasOwnProperty.call(l,o)&&u.indexOf(o)<0&&(r[o]=l[o]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,o=Object.getOwnPropertySymbols(l);f<o.length;f++)u.indexOf(o[f])<0&&Object.prototype.propertyIsEnumerable.call(l,o[f])&&(r[o[f]]=l[o[f]]);return r},N=v.forwardRef((l,u)=>{const{prefixCls:r,rootClassName:o,className:f,style:e,flex:a,gap:s,children:n,vertical:d=!1,component:b="div"}=l,A=q(l,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:D,direction:P,getPrefixCls:g}=v.useContext(x.E_),m=g("flex",r),[z,O,U]=i(m),G=d!=null?d:D==null?void 0:D.vertical,y=F()(f,o,D==null?void 0:D.className,m,O,U,S(m,l),{[`${m}-rtl`]:P==="rtl",[`${m}-gap-${s}`]:(0,W.n)(s),[`${m}-vertical`]:G}),X=Object.assign(Object.assign({},D==null?void 0:D.style),e);return a&&(X.flex=a),s&&!(0,W.n)(s)&&(X.gap=s),z(v.createElement(b,Object.assign({ref:u,className:y,style:X},(0,p.Z)(A,["justify","wrap","align"])),n))})},66309:function(J,R,t){t.d(R,{Z:function(){return f}});var v=t(67294),h=t(93967),F=t.n(h),p=t(98423),W=t(98787),x=t(69760),C=t(96159),E=t(45353),c=t(53124),B=t(54548),$=t(10274),V=t(14747),L=t(45503),K=t(91945);const w=e=>{const{paddingXXS:a,lineWidth:s,tagPaddingHorizontal:n,componentCls:d,calc:b}=e,A=b(n).sub(s).equal(),D=b(a).sub(s).equal();return{[d]:Object.assign(Object.assign({},(0,V.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:A,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,B.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${d}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${d}-close-icon`]:{marginInlineStart:D,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${d}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${d}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:A}}),[`${d}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},S=e=>{const{lineWidth:a,fontSizeIcon:s,calc:n}=e,d=e.fontSizeSM;return(0,L.TS)(e,{tagFontSize:d,tagLineHeight:(0,B.bf)(n(e.lineHeightSM).mul(d).equal()),tagIconSize:n(s).sub(n(a).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},T=e=>({defaultBg:new $.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var Z=(0,K.I$)("Tag",e=>{const a=S(e);return w(a)},T),I=function(e,a){var s={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(s[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,n=Object.getOwnPropertySymbols(e);d<n.length;d++)a.indexOf(n[d])<0&&Object.prototype.propertyIsEnumerable.call(e,n[d])&&(s[n[d]]=e[n[d]]);return s},k=v.forwardRef((e,a)=>{const{prefixCls:s,style:n,className:d,checked:b,onChange:A,onClick:D}=e,P=I(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:g,tag:m}=v.useContext(c.E_),z=Q=>{A==null||A(!b),D==null||D(Q)},O=g("tag",s),[U,G,y]=Z(O),X=F()(O,`${O}-checkable`,{[`${O}-checkable-checked`]:b},m==null?void 0:m.className,d,G,y);return U(v.createElement("span",Object.assign({},P,{ref:a,style:Object.assign(Object.assign({},n),m==null?void 0:m.style),className:X,onClick:z})))}),M=t(98719);const i=e=>(0,M.Z)(e,(a,s)=>{let{textColor:n,lightBorderColor:d,lightColor:b,darkColor:A}=s;return{[`${e.componentCls}${e.componentCls}-${a}`]:{color:n,background:b,borderColor:d,"&-inverse":{color:e.colorTextLightSolid,background:A,borderColor:A},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var q=(0,K.bk)(["Tag","preset"],e=>{const a=S(e);return i(a)},T);function H(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const N=(e,a,s)=>{const n=H(s);return{[`${e.componentCls}${e.componentCls}-${a}`]:{color:e[`color${s}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var l=(0,K.bk)(["Tag","status"],e=>{const a=S(e);return[N(a,"success","Success"),N(a,"processing","Info"),N(a,"error","Error"),N(a,"warning","Warning")]},T),u=function(e,a){var s={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(s[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,n=Object.getOwnPropertySymbols(e);d<n.length;d++)a.indexOf(n[d])<0&&Object.prototype.propertyIsEnumerable.call(e,n[d])&&(s[n[d]]=e[n[d]]);return s};const o=v.forwardRef((e,a)=>{const{prefixCls:s,className:n,rootClassName:d,style:b,children:A,icon:D,color:P,onClose:g,bordered:m=!0,visible:z}=e,O=u(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:U,direction:G,tag:y}=v.useContext(c.E_),[X,Q]=v.useState(!0),te=(0,p.Z)(O,["closeIcon","closable"]);v.useEffect(()=>{z!==void 0&&Q(z)},[z]);const ae=(0,W.o2)(P),le=(0,W.yT)(P),ne=ae||le,ce=Object.assign(Object.assign({backgroundColor:P&&!ne?P:void 0},y==null?void 0:y.style),b),Y=U("tag",s),[de,fe,pe]=Z(Y),me=F()(Y,y==null?void 0:y.className,{[`${Y}-${P}`]:ne,[`${Y}-has-color`]:P&&!ne,[`${Y}-hidden`]:!X,[`${Y}-rtl`]:G==="rtl",[`${Y}-borderless`]:!m},n,d,fe,pe),oe=ee=>{ee.stopPropagation(),g==null||g(ee),!ee.defaultPrevented&&Q(!1)},[,ve]=(0,x.Z)((0,x.w)(e),(0,x.w)(y),{closable:!1,closeIconRender:ee=>{const Ce=v.createElement("span",{className:`${Y}-close-icon`,onClick:oe},ee);return(0,C.wm)(ee,Ce,_=>({onClick:ue=>{var re;(re=_==null?void 0:_.onClick)===null||re===void 0||re.call(_,ue),oe(ue)},className:F()(_==null?void 0:_.className,`${Y}-close-icon`)}))}}),ge=typeof O.onClick=="function"||A&&A.type==="a",se=D||null,he=se?v.createElement(v.Fragment,null,se,A&&v.createElement("span",null,A)):A,ie=v.createElement("span",Object.assign({},te,{ref:a,className:me,style:ce}),he,ve,ae&&v.createElement(q,{key:"preset",prefixCls:Y}),le&&v.createElement(l,{key:"status",prefixCls:Y}));return de(ge?v.createElement(E.Z,{component:"Tag"},ie):ie)});o.CheckableTag=k;var f=o}}]);