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.

2 lines
10 KiB

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[816],{40110:function(he,z,n){var R=n(1413),S=n(67294),J=n(509),A=n(91146),L=function(Y,C){return S.createElement(A.Z,(0,R.Z)((0,R.Z)({},Y),{},{ref:C,icon:J.Z}))};L.displayName="SearchOutlined",z.Z=S.forwardRef(L)},32708:function(he,z,n){n.r(z),n.d(z,{default:function(){return We}});var R=n(15009),S=n.n(R),J=n(99289),A=n.n(J),L=n(5574),E=n.n(L),Y=n(35312),C=n(8232),H=n(96365),pe=n(42075),k=n(14726),d=n(67294),Ce=n(62208),ye=n(93967),se=n.n(ye),ie=n(98787),be=n(69760),Se=n(45353),ce=n(53124),de=n(54548),xe=n(10274),je=n(14747),Oe=n(45503),q=n(91945);const Ie=e=>{const{paddingXXS:s,lineWidth:c,tagPaddingHorizontal:r,componentCls:a,calc:p}=e,f=p(r).sub(c).equal(),x=p(s).sub(c).equal();return{[a]:Object.assign(Object.assign({},(0,je.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:f,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,de.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:x,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-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(${a}-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:f}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},_=e=>{const{lineWidth:s,fontSizeIcon:c,calc:r}=e,a=e.fontSizeSM;return(0,Oe.TS)(e,{tagFontSize:a,tagLineHeight:(0,de.bf)(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(c).sub(r(s).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},ee=e=>({defaultBg:new xe.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var ue=(0,q.I$)("Tag",e=>{const s=_(e);return Ie(s)},ee),Ee=function(e,s){var c={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&s.indexOf(r)<0&&(c[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)s.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(c[r[a]]=e[r[a]]);return c},$e=d.forwardRef((e,s)=>{const{prefixCls:c,style:r,className:a,checked:p,onChange:f,onClick:x}=e,m=Ee(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:$,tag:g}=d.useContext(ce.E_),Z=N=>{f==null||f(!p),x==null||x(N)},j=$("tag",c),[O,B,D]=ue(j),v=se()(j,`${j}-checkable`,{[`${j}-checkable-checked`]:p},g==null?void 0:g.className,a,B,D);return O(d.createElement("span",Object.assign({},m,{ref:s,style:Object.assign(Object.assign({},r),g==null?void 0:g.style),className:v,onClick:Z})))}),Ze=n(98719);const Pe=e=>(0,Ze.Z)(e,(s,c)=>{let{textColor:r,lightBorderColor:a,lightColor:p,darkColor:f}=c;return{[`${e.componentCls}${e.componentCls}-${s}`]:{color:r,background:p,borderColor:a,"&-inverse":{color:e.colorTextLightSolid,background:f,borderColor:f},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Te=(0,q.bk)(["Tag","preset"],e=>{const s=_(e);return Pe(s)},ee);function Be(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const W=(e,s,c)=>{const r=Be(c);return{[`${e.componentCls}${e.componentCls}-${s}`]:{color:e[`color${c}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.com