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