👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
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.
 
 
 

10 lines
18 KiB

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8366],{19485:function(R,h){var i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};h.Z=i},8941:function(R,h){var i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};h.Z=i},94573:function(R,h,i){var n=i(35361),v=i(50959),C=i(19485),O=i(69164),b=function(x,E){return v.createElement(O.Z,(0,n.Z)((0,n.Z)({},x),{},{ref:E,icon:C.Z}))};b.displayName="DownloadOutlined",h.Z=v.forwardRef(b)},83011:function(R,h,i){var n=i(35361),v=i(50959),C=i(8941),O=i(69164),b=function(x,E){return v.createElement(O.Z,(0,n.Z)((0,n.Z)({},x),{},{ref:E,icon:C.Z}))};b.displayName="EditOutlined",h.Z=v.forwardRef(b)},27174:function(R,h,i){var n=i(35361),v=i(50959),C=i(44108),O=i(69164),b=function(x,E){return v.createElement(O.Z,(0,n.Z)((0,n.Z)({},x),{},{ref:E,icon:C.Z}))};b.displayName="EllipsisOutlined",h.Z=v.forwardRef(b)},25468:function(R,h,i){i.d(h,{Z:function(){return x}});var n=i(35361),v=i(50959),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"}}]},name:"share-alt",theme:"outlined"},O=C,b=i(69164),z=function(H,V){return v.createElement(b.Z,(0,n.Z)((0,n.Z)({},H),{},{ref:V,icon:O}))};z.displayName="ShareAltOutlined";var x=v.forwardRef(z)},16965:function(R,h,i){i.d(h,{Z:function(){return s}});var n=i(50959),v=i(82187),C=i.n(v),O=i(87017),b=i(92576),z=i(50483),x=i(9146),E=i(40622),H=function(e,o){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&o.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)o.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a},_=e=>{var{prefixCls:o,className:a,hoverable:r=!0}=e,l=H(e,["prefixCls","className","hoverable"]);const{getPrefixCls:u}=n.useContext(b.E_),f=u("card",o),T=C()(`${f}-grid`,a,{[`${f}-grid-hoverable`]:r});return n.createElement("div",Object.assign({},l,{className:T}))},c=i(25446),P=i(55985),ee=i(87077),G=i(37324);const K=e=>{const{antCls:o,componentCls:a,headerHeight:r,cardPaddingBase:l,tabsMarginBottom:u}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${(0,c.bf)(l)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,c.bf)(e.borderRadiusLG)} ${(0,c.bf)(e.borderRadiusLG)} 0 0`},(0,P.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},P.vS),{[`
> ${a}-typography,
> ${a}-typography-edit-content
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${o}-tabs-top`]:{clear:"both",marginBottom:u,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},X=e=>{const{cardPaddingBase:o,colorBorderSecondary:a,cardShadow:r,lineWidth:l}=e;return{width:"33.33%",padding:o,border:0,borderRadius:0,boxShadow:`
${(0,c.bf)(l)} 0 0 0 ${a},
0 ${(0,c.bf)(l)} 0 0 ${a},
${(0,c.bf)(l)} ${(0,c.bf)(l)} 0 0 ${a},
${(0,c.bf)(l)} 0 0 0 ${a} inset,
0 ${(0,c.bf)(l)} 0 0 ${a} inset;
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},te=e=>{const{componentCls:o,iconCls:a,actionsLiMargin:r,cardActionsIconSize:l,colorBorderSecondary:u,actionsBg:f}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:f,borderTop:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${u}`,display:"flex",borderRadius:`0 0 ${(0,c.bf)(e.borderRadiusLG)} ${(0,c.bf)(e.borderRadiusLG)}`},(0,P.dF)()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${o}-btn), > ${a}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,c.bf)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${a}`]:{fontSize:l,lineHeight:(0,c.bf)(e.calc(l).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${u}`}}})},be=e=>Object.assign(Object.assign({margin:`${(0,c.bf)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,P.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},P.vS),"&-description":{color:e.colorTextDescription}}),ae=e=>{const{componentCls:o,cardPaddingBase:a,colorFillAlter:r}=e;return{[`${o}-head`]:{padding:`0 ${(0,c.bf)(a)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${o}-body`]:{padding:`${(0,c.bf)(e.padding)} ${(0,c.bf)(a)}`}}},re=e=>{const{componentCls:o}=e;return{overflow:"hidden",[`${o}-body`]:{userSelect:"none"}}},ne=e=>{const{antCls:o,componentCls:a,cardShadow:r,cardHeadPadding:l,colorBorderSecondary:u,boxShadowTertiary:f,cardPaddingBase:T,extraColor:p}=e;return{[a]:Object.assign(Object.assign({},(0,P.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${a}-bordered)`]:{boxShadow:f},[`${a}-head`]:K(e),[`${a}-extra`]:{marginInlineStart:"auto",color:p,fontWeight:"normal",fontSize:e.fontSize},[`${a}-body`]:Object.assign({padding:T,borderRadius:` 0 0 ${(0,c.bf)(e.borderRadiusLG)} ${(0,c.bf)(e.borderRadiusLG)}`},(0,P.dF)()),[`${a}-grid`]:X(e),[`${a}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${o}-image-mask`]:{borderRadius:`${(0,c.bf)(e.borderRadiusLG)} ${(0,c.bf)(e.borderRadiusLG)} 0 0`}},[`${a}-actions`]:te(e),[`${a}-meta`]:be(e)}),[`${a}-bordered`]:{border:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${u}`,[`${a}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${a}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${a}-contain-grid`]:{borderRadius:`${(0,c.bf)(e.borderRadiusLG)} ${(0,c.bf)(e.borderRadiusLG)} 0 0 `,[`${a}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${a}-loading) ${a}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${a}-contain-tabs`]:{[`> ${a}-head`]:{minHeight:0,[`${a}-head-title, ${a}-extra`]:{paddingTop:l}}},[`${a}-type-inner`]:ae(e),[`${a}-loading`]:re(e),[`${a}-rtl`]:{direction:"rtl"}}},oe=e=>{const{componentCls:o,cardPaddingSM:a,headerHeightSM:r,headerFontSizeSM:l}=e;return{[`${o}-small`]:{[`> ${o}-head`]:{minHeight:r,padding:`0 ${(0,c.bf)(a)}`,fontSize:l,[`> ${o}-head-wrapper`]:{[`> ${o}-extra`]:{fontSize:e.fontSize}}},[`> ${o}-body`]:{padding:a}},[`${o}-small${o}-contain-tabs`]:{[`> ${o}-head`]:{[`${o}-head-title, ${o}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},le=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText});var w=(0,ee.I$)("Card",e=>{const o=(0,G.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[ne(o),oe(o)]},le),Q=function(e,o){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&o.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)o.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};const ie=e=>{const{prefixCls:o,actions:a=[]}=e;return n.createElement("ul",{className:`${o}-actions`},a.map((r,l)=>{const u=`action-${l}`;return n.createElement("li",{style:{width:`${100/a.length}%`},key:u},n.createElement("span",null,r))}))};var J=n.forwardRef((e,o)=>{const{prefixCls:a,className:r,rootClassName:l,style:u,extra:f,headStyle:T={},bodyStyle:p={},title:y,loading:B,bordered:j=!0,size:$,type:I,cover:F,actions:Z,tabList:A,children:D,activeTabKey:Y,defaultActiveTabKey:S,tabBarExtraContent:ce,hoverable:de,tabProps:ge={}}=e,ue=Q(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:q,direction:fe,card:L}=n.useContext(b.E_),k=W=>{var M;(M=e.onTabChange)===null||M===void 0||M.call(e,W)},me=n.useMemo(()=>{let W=!1;return n.Children.forEach(D,M=>{M&&M.type&&M.type===_&&(W=!0)}),W},[D]),m=q("card",a),[N,ye,$e]=w(m),Se=n.createElement(x.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},D),he=Y!==void 0,Oe=Object.assign(Object.assign({},ge),{[he?"activeKey":"defaultActiveKey"]:he?Y:S,tabBarExtraContent:ce});let ve;const U=(0,z.Z)($),xe=!U||U==="default"?"large":U,Ce=A?n.createElement(E.Z,Object.assign({size:xe},Oe,{className:`${m}-head-tabs`,onChange:k,items:A.map(W=>{var{tab:M}=W,je=Q(W,["tab"]);return Object.assign({label:M},je)})})):null;(y||f||Ce)&&(ve=n.createElement("div",{className:`${m}-head`,style:T},n.createElement("div",{className:`${m}-head-wrapper`},y&&n.createElement("div",{className:`${m}-head-title`},y),f&&n.createElement("div",{className:`${m}-extra`},f)),Ce));const Ee=F?n.createElement("div",{className:`${m}-cover`},F):null,Pe=n.createElement("div",{className:`${m}-body`,style:p},B?Se:D),Te=Z&&Z.length?n.createElement(ie,{prefixCls:m,actions:Z}):null,ze=(0,O.Z)(ue,["onTabChange"]),Me=C()(m,L==null?void 0:L.className,{[`${m}-loading`]:B,[`${m}-bordered`]:j,[`${m}-hoverable`]:de,[`${m}-contain-grid`]:me,[`${m}-contain-tabs`]:A&&A.length,[`${m}-${U}`]:U,[`${m}-type-${I}`]:!!I,[`${m}-rtl`]:fe==="rtl"},r,l,ye,$e),Be=Object.assign(Object.assign({},L==null?void 0:L.style),u);return N(n.createElement("div",Object.assign({ref:o},ze,{className:Me,style:Be}),ve,Ee,Pe,Te))}),se=function(e,o){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&o.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)o.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a},d=e=>{const{prefixCls:o,className:a,avatar:r,title:l,description:u}=e,f=se(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:T}=n.useContext(b.E_),p=T("card",o),y=C()(`${p}-meta`,a),B=r?n.createElement("div",{className:`${p}-meta-avatar`},r):null,j=l?n.createElement("div",{className:`${p}-meta-title`},l):null,$=u?n.createElement("div",{className:`${p}-meta-description`},u):null,I=j||$?n.createElement("div",{className:`${p}-meta-detail`},j,$):null;return n.createElement("div",Object.assign({},f,{className:y}),B,I)};const g=J;g.Grid=_,g.Meta=d;var s=g},59084:function(R,h,i){i.d(h,{Z:function(){return se}});var n=i(50959),v=i(22410),C=i(82187),O=i.n(C),b=i(60811),z=i(17005),x=i(68300),E=i(92576),H=i(25446),V=i(99978),_=i(55985),c=i(37324),P=i(87077);const ee=t=>{const{paddingXXS:d,lineWidth:g,tagPaddingHorizontal:s,componentCls:e,calc:o}=t,a=o(s).sub(g).equal(),r=o(d).sub(g).equal();return{[e]:Object.assign(Object.assign({},(0,_.Wf)(t)),{display:"inline-block",height:"auto",marginInlineEnd:t.marginXS,paddingInline:a,fontSize:t.tagFontSize,lineHeight:t.tagLineHeight,whiteSpace:"nowrap",background:t.defaultBg,border:`${(0,H.bf)(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,borderRadius:t.borderRadiusSM,opacity:1,transition:`all ${t.motionDurationMid}`,textAlign:"start",position:"relative",[`&${e}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:t.defaultColor},[`${e}-close-icon`]:{marginInlineStart:r,fontSize:t.tagIconSize,color:t.colorTextDescription,cursor:"pointer",transition:`all ${t.motionDurationMid}`,"&:hover":{color:t.colorTextHeading}},[`&${e}-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(${e}-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:a}}),[`${e}-borderless`]:{borderColor:"transparent",background:t.tagBorderlessBg}}},G=t=>{const{lineWidth:d,fontSizeIcon:g,calc:s}=t,e=t.fontSizeSM;return(0,c.TS)(t,{tagFontSize:e,tagLineHeight:(0,H.bf)(s(t.lineHeightSM).mul(e).equal()),tagIconSize:s(g).sub(s(d).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:t.colorFillTertiary})},K=t=>({defaultBg:new V.C(t.colorFillQuaternary).onBackground(t.colorBgContainer).toHexString(),defaultColor:t.colorText});var X=(0,P.I$)("Tag",t=>{const d=G(t);return ee(d)},K),te=function(t,d){var g={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&d.indexOf(s)<0&&(g[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var e=0,s=Object.getOwnPropertySymbols(t);e<s.length;e++)d.indexOf(s[e])<0&&Object.prototype.propertyIsEnumerable.call(t,s[e])&&(g[s[e]]=t[s[e]]);return g},ae=n.forwardRef((t,d)=>{const{prefixCls:g,style:s,className:e,checked:o,onChange:a,onClick:r}=t,l=te(t,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:f}=n.useContext(E.E_),T=I=>{a==null||a(!o),r==null||r(I)},p=u("tag",g),[y,B,j]=X(p),$=O()(p,`${p}-checkable`,{[`${p}-checkable-checked`]:o},f==null?void 0:f.className,e,B,j);return y(n.createElement("span",Object.assign({},l,{ref:d,style:Object.assign(Object.assign({},s),f==null?void 0:f.style),className:$,onClick:T})))}),re=i(61281);const ne=t=>(0,re.Z)(t,(d,g)=>{let{textColor:s,lightBorderColor:e,lightColor:o,darkColor:a}=g;return{[`${t.componentCls}${t.componentCls}-${d}`]:{color:s,background:o,borderColor:e,"&-inverse":{color:t.colorTextLightSolid,background:a,borderColor:a},[`&${t.componentCls}-borderless`]:{borderColor:"transparent"}}}});var oe=(0,P.bk)(["Tag","preset"],t=>{const d=G(t);return ne(d)},K);function le(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.slice(1)}const w=(t,d,g)=>{const s=le(g);return{[`${t.componentCls}${t.componentCls}-${d}`]:{color:t[`color${g}`],background:t[`color${s}Bg`],borderColor:t[`color${s}Border`],[`&${t.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Q=(0,P.bk)(["Tag","status"],t=>{const d=G(t);return[w(d,"success","Success"),w(d,"processing","Info"),w(d,"error","Error"),w(d,"warning","Warning")]},K),ie=function(t,d){var g={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&d.indexOf(s)<0&&(g[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var e=0,s=Object.getOwnPropertySymbols(t);e<s.length;e++)d.indexOf(s[e])<0&&Object.prototype.propertyIsEnumerable.call(t,s[e])&&(g[s[e]]=t[s[e]]);return g};const pe=(t,d)=>{const{prefixCls:g,className:s,rootClassName:e,style:o,children:a,icon:r,color:l,onClose:u,closeIcon:f,closable:T,bordered:p=!0}=t,y=ie(t,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:B,direction:j,tag:$}=n.useContext(E.E_),[I,F]=n.useState(!0);n.useEffect(()=>{"visible"in y&&F(y.visible)},[y.visible]);const Z=(0,b.o2)(l),A=(0,b.yT)(l),D=Z||A,Y=Object.assign(Object.assign({backgroundColor:l&&!D?l:void 0},$==null?void 0:$.style),o),S=B("tag",g),[ce,de,ge]=X(S),ue=O()(S,$==null?void 0:$.className,{[`${S}-${l}`]:D,[`${S}-has-color`]:l&&!D,[`${S}-hidden`]:!I,[`${S}-rtl`]:j==="rtl",[`${S}-borderless`]:!p},s,e,de,ge),q=N=>{N.stopPropagation(),u==null||u(N),!N.defaultPrevented&&F(!1)},[,fe]=(0,z.Z)(T,f,N=>N===null?n.createElement(v.Z,{className:`${S}-close-icon`,onClick:q}):n.createElement("span",{className:`${S}-close-icon`,onClick:q},N),null,!1),L=typeof y.onClick=="function"||a&&a.type==="a",k=r||null,me=k?n.createElement(n.Fragment,null,k,a&&n.createElement("span",null,a)):a,m=n.createElement("span",Object.assign({},y,{ref:d,className:ue,style:Y}),me,fe,Z&&n.createElement(oe,{key:"preset",prefixCls:S}),A&&n.createElement(Q,{key:"status",prefixCls:S}));return ce(L?n.createElement(x.Z,{component:"Tag"},m):m)},J=n.forwardRef(pe);J.CheckableTag=ae;var se=J}}]);