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
10 lines
18 KiB
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8912],{26396:function(L,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},55751:function(L,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},43588:function(L,h,i){var n=i(93264),v=i(79685),y=i(26396),O=i(64507),m=function(x,E){return v.createElement(O.Z,(0,n.Z)((0,n.Z)({},x),{},{ref:E,icon:y.Z}))};m.displayName="DownloadOutlined",h.Z=v.forwardRef(m)},69392:function(L,h,i){var n=i(93264),v=i(79685),y=i(55751),O=i(64507),m=function(x,E){return v.createElement(O.Z,(0,n.Z)((0,n.Z)({},x),{},{ref:E,icon:y.Z}))};m.displayName="EditOutlined",h.Z=v.forwardRef(m)},12086:function(L,h,i){var n=i(93264),v=i(79685),y=i(62415),O=i(64507),m=function(x,E){return v.createElement(O.Z,(0,n.Z)((0,n.Z)({},x),{},{ref:E,icon:y.Z}))};m.displayName="EllipsisOutlined",h.Z=v.forwardRef(m)},88133:function(L,h,i){i.d(h,{Z:function(){return x}});var n=i(93264),v=i(79685),y={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=y,m=i(64507),z=function(A,U){return v.createElement(m.Z,(0,n.Z)((0,n.Z)({},A),{},{ref:U,icon:O}))};z.displayName="ShareAltOutlined";var x=v.forwardRef(z)},18283:function(L,h,i){i.d(h,{Z:function(){return s}});var n=i(79685),v=i(68591),y=i.n(v),O=i(3139),m=i(99248),z=i(73064),x=i(57196),E=i(55095),A=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=A(e,["prefixCls","className","hoverable"]);const{getPrefixCls:f}=n.useContext(m.E_),b=f("card",o),T=y()(`${b}-grid`,a,{[`${b}-grid-hoverable`]:r});return n.createElement("div",Object.assign({},l,{className:T}))},c=i(26477),P=i(4614),k=i(44244),Z=i(25830);const G=e=>{const{antCls:o,componentCls:a,headerHeight:r,cardPaddingBase:l,tabsMarginBottom:f}=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:f,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},V=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}}},ee=e=>{const{componentCls:o,iconCls:a,actionsLiMargin:r,cardActionsIconSize:l,colorBorderSecondary:f,actionsBg:b}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:b,borderTop:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${f}`,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} ${f}`}}})},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}}),te=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)}`}}},ae=e=>{const{componentCls:o}=e;return{overflow:"hidden",[`${o}-body`]:{userSelect:"none"}}},re=e=>{const{antCls:o,componentCls:a,cardShadow:r,cardHeadPadding:l,colorBorderSecondary:f,boxShadowTertiary:b,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:b},[`${a}-head`]:G(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`]:V(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`]:ee(e),[`${a}-meta`]:be(e)}),[`${a}-bordered`]:{border:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${f}`,[`${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`]:te(e),[`${a}-loading`]:ae(e),[`${a}-rtl`]:{direction:"rtl"}}},ne=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"}}}}},oe=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,k.I$)("Card",e=>{const o=(0,Z.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[re(o),ne(o)]},oe),X=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 le=e=>{const{prefixCls:o,actions:a=[]}=e;return n.createElement("ul",{className:`${o}-actions`},a.map((r,l)=>{const f=`action-${l}`;return n.createElement("li",{style:{width:`${100/a.length}%`},key:f},n.createElement("span",null,r))}))};var Q=n.forwardRef((e,o)=>{const{prefixCls:a,className:r,rootClassName:l,style:f,extra:b,headStyle:T={},bodyStyle:p={},title:C,loading:j,bordered:I=!0,size:$,type:H,cover:K,actions:w,tabList:N,children:D,activeTabKey:J,defaultActiveTabKey:S,tabBarExtraContent:se,hoverable:ce,tabProps:de={}}=e,Y=X(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:ge,direction:ue,card:M}=n.useContext(m.E_),fe=R=>{var B;(B=e.onTabChange)===null||B===void 0||B.call(e,R)},q=n.useMemo(()=>{let R=!1;return n.Children.forEach(D,B=>{B&&B.type&&B.type===_&&(R=!0)}),R},[D]),u=ge("card",a),[ye,Ce]=W(u),$e=n.createElement(x.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},D),pe=J!==void 0,Se=Object.assign(Object.assign({},de),{[pe?"activeKey":"defaultActiveKey"]:pe?J:S,tabBarExtraContent:se});let he;const F=(0,z.Z)($),Oe=!F||F==="default"?"large":F,ve=N?n.createElement(E.Z,Object.assign({size:Oe},Se,{className:`${u}-head-tabs`,onChange:fe,items:N.map(R=>{var{tab:B}=R,Be=X(R,["tab"]);return Object.assign({label:B},Be)})})):null;(C||b||ve)&&(he=n.createElement("div",{className:`${u}-head`,style:T},n.createElement("div",{className:`${u}-head-wrapper`},C&&n.createElement("div",{className:`${u}-head-title`},C),b&&n.createElement("div",{className:`${u}-extra`},b)),ve));const xe=K?n.createElement("div",{className:`${u}-cover`},K):null,Ee=n.createElement("div",{className:`${u}-body`,style:p},j?$e:D),Pe=w&&w.length?n.createElement(le,{prefixCls:u,actions:w}):null,Te=(0,O.Z)(Y,["onTabChange"]),ze=y()(u,M==null?void 0:M.className,{[`${u}-loading`]:j,[`${u}-bordered`]:I,[`${u}-hoverable`]:ce,[`${u}-contain-grid`]:q,[`${u}-contain-tabs`]:N&&N.length,[`${u}-${F}`]:F,[`${u}-type-${H}`]:!!H,[`${u}-rtl`]:ue==="rtl"},r,l,Ce),Me=Object.assign(Object.assign({},M==null?void 0:M.style),f);return ye(n.createElement("div",Object.assign({ref:o},Te,{className:ze,style:Me}),he,xe,Ee,Pe))}),ie=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:f}=e,b=ie(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:T}=n.useContext(m.E_),p=T("card",o),C=y()(`${p}-meta`,a),j=r?n.createElement("div",{className:`${p}-meta-avatar`},r):null,I=l?n.createElement("div",{className:`${p}-meta-title`},l):null,$=f?n.createElement("div",{className:`${p}-meta-description`},f):null,H=I||$?n.createElement("div",{className:`${p}-meta-detail`},I,$):null;return n.createElement("div",Object.assign({},b,{className:C}),j,H)};const g=Q;g.Grid=_,g.Meta=d;var s=g},90936:function(L,h,i){i.d(h,{Z:function(){return ie}});var n=i(79685),v=i(99992),y=i(68591),O=i.n(y),m=i(28726),z=i(37770),x=i(42480),E=i(99248),A=i(26477),U=i(73838),_=i(4614),c=i(25830),P=i(44244);const k=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,A.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}}},Z=t=>{const{lineWidth:d,fontSizeIcon:g,calc:s}=t,e=t.fontSizeSM;return(0,c.TS)(t,{tagFontSize:e,tagLineHeight:(0,A.bf)(s(t.lineHeightSM).mul(e).equal()),tagIconSize:s(g).sub(s(d).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:t.colorFillTertiary})},G=t=>({defaultBg:new U.C(t.colorFillQuaternary).onBackground(t.colorBgContainer).toHexString(),defaultColor:t.colorText});var V=(0,P.I$)("Tag",t=>{const d=Z(t);return k(d)},G),ee=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},te=n.forwardRef((t,d)=>{const{prefixCls:g,style:s,className:e,checked:o,onChange:a,onClick:r}=t,l=ee(t,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:f,tag:b}=n.useContext(E.E_),T=$=>{a==null||a(!o),r==null||r($)},p=f("tag",g),[C,j]=V(p),I=O()(p,`${p}-checkable`,{[`${p}-checkable-checked`]:o},b==null?void 0:b.className,e,j);return C(n.createElement("span",Object.assign({},l,{ref:d,style:Object.assign(Object.assign({},s),b==null?void 0:b.style),className:I,onClick:T})))}),ae=i(57069);const re=t=>(0,ae.Z)(t,(d,g)=>{let{textColor:s,lightBorderColor:e,lightColor:o,darkColor:a}=g;return{[`${t.componentCls}-${d}`]:{color:s,background:o,borderColor:e,"&-inverse":{color:t.colorTextLightSolid,background:a,borderColor:a},[`&${t.componentCls}-borderless`]:{borderColor:"transparent"}}}});var ne=(0,P.bk)(["Tag","preset"],t=>{const d=Z(t);return re(d)},G);function oe(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.slice(1)}const W=(t,d,g)=>{const s=oe(g);return{[`${t.componentCls}-${d}`]:{color:t[`color${g}`],background:t[`color${s}Bg`],borderColor:t[`color${s}Border`],[`&${t.componentCls}-borderless`]:{borderColor:"transparent"}}}};var X=(0,P.bk)(["Tag","status"],t=>{const d=Z(t);return[W(d,"success","Success"),W(d,"processing","Info"),W(d,"error","Error"),W(d,"warning","Warning")]},G),le=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 me=(t,d)=>{const{prefixCls:g,className:s,rootClassName:e,style:o,children:a,icon:r,color:l,onClose:f,closeIcon:b,closable:T,bordered:p=!0}=t,C=le(t,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:j,direction:I,tag:$}=n.useContext(E.E_),[H,K]=n.useState(!0);n.useEffect(()=>{"visible"in C&&K(C.visible)},[C.visible]);const w=(0,m.o2)(l),N=(0,m.yT)(l),D=w||N,J=Object.assign(Object.assign({backgroundColor:l&&!D?l:void 0},$==null?void 0:$.style),o),S=j("tag",g),[se,ce]=V(S),de=O()(S,$==null?void 0:$.className,{[`${S}-${l}`]:D,[`${S}-has-color`]:l&&!D,[`${S}-hidden`]:!H,[`${S}-rtl`]:I==="rtl",[`${S}-borderless`]:!p},s,e,ce),Y=u=>{u.stopPropagation(),f==null||f(u),!u.defaultPrevented&&K(!1)},[,ge]=(0,z.Z)(T,b,u=>u===null?n.createElement(v.Z,{className:`${S}-close-icon`,onClick:Y}):n.createElement("span",{className:`${S}-close-icon`,onClick:Y},u),null,!1),ue=typeof C.onClick=="function"||a&&a.type==="a",M=r||null,fe=M?n.createElement(n.Fragment,null,M,a&&n.createElement("span",null,a)):a,q=n.createElement("span",Object.assign({},C,{ref:d,className:de,style:J}),fe,ge,w&&n.createElement(ne,{key:"preset",prefixCls:S}),N&&n.createElement(X,{key:"status",prefixCls:S}));return se(ue?n.createElement(x.Z,{component:"Tag"},q):q)},Q=n.forwardRef(me);Q.CheckableTag=te;var ie=Q}}]);
|
|
|