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