1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9579],{79579:function(o,e,n){n.d(e,{Z:function(){return F}});var r=n(75766),t=n(24043),c=n(67294),l=n(93967),a=n.n(l),i=n(98423),s=n(22781),u=n(30482),d=n(64217),g=n(18294),b=n(6111),f=n(80647);function p(o){if(o)return{closable:o.closable,closeIcon:o.closeIcon}}function C(o){var e=o||{},n=e.closable,r=e.closeIcon;return c.useMemo(function(){if(!n&&(!1===n||!1===r||null===r))return!1;if(void 0===n&&void 0===r)return null;var o={closeIcon:"boolean"!=typeof r&&null!==r?r:void 0};return n&&"object"==typeof n&&(o=Object.assign(Object.assign({},o),n)),o},[n,r])}var m={},v=function(o,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m,r=C(o),l=C(e),a=(0,t._)((0,g.Z)("global",b.Z.global),1)[0],i="boolean"!=typeof r&&!!(null==r?void 0:r.disabled),s=c.useMemo(function(){return Object.assign({closeIcon:c.createElement(u.Z,null)},n)},[n]),p=c.useMemo(function(){return!1!==r&&(r?(0,f.Z)(s,l,r):!1!==l&&(l?(0,f.Z)(s,l):!!s.closable&&s))},[r,l,s]);return c.useMemo(function(){if(!1===p)return[!1,null,i,{}];var o,e,n=s.closeIconRender,r=p.closeIcon,t=r,l=(0,d.Z)(p,!0);return null!=t&&(n&&(t=n(r)),t=c.isValidElement(t)?c.cloneElement(t,Object.assign(Object.assign(Object.assign({},t.props),{"aria-label":null!==(e=null===(o=t.props)||void 0===o?void 0:o["aria-label"])&&void 0!==e?e:a.close}),l)):c.createElement("span",Object.assign({"aria-label":a.close},l),t)),[!0,t,i,l]},[i,a.close,p,s])},h=n(84476),y=n(95367),k=n(17399),_=n(11568),O=n(15063),S=n(30641),j=n(83262),x=n(52317),E=function(o){var e,n,t,c=o.paddingXXS,l=o.lineWidth,a=o.tagPaddingHorizontal,i=o.componentCls,s=o.calc,u=s(a).sub(l).equal(),d=s(c).sub(l).equal();return t={},(0,r._)(t,i,Object.assign(Object.assign({},(0,S.Wf)(o)),(n={display:"inline-block",height:"auto",marginInlineEnd:o.marginXS,paddingInline:u,fontSize:o.tagFontSize,lineHeight:o.tagLineHeight,whiteSpace:"nowrap",background:o.defaultBg,border:"".concat((0,_.bf)(o.lineWidth)," ").concat(o.lineType," ").concat(o.colorBorder),borderRadius:o.borderRadiusSM,opacity:1,transition:"all ".concat(o.motionDurationMid),textAlign:"start",position:"relative"},(0,r._)(n,"&".concat(i,"-rtl"),{direction:"rtl"}),(0,r._)(n,"&, a, a:hover",{color:o.defaultColor}),(0,r._)(n,"".concat(i,"-close-icon"),{marginInlineStart:d,fontSize:o.tagIconSize,color:o.colorIcon,cursor:"pointer",transition:"all ".concat(o.motionDurationMid),"&:hover":{color:o.colorTextHeading}}),(0,r._)(n,"&".concat(i,"-has-color"),(0,r._)({borderColor:"transparent"},"&, a, a:hover, ".concat(o.iconCls,"-close, ").concat(o.iconCls,"-close:hover"),{color:o.colorTextLightSolid})),(0,r._)(n,"&-checkable",(e={backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer"},(0,r._)(e,"&:not(".concat(i,"-checkable-checked):hover"),{color:o.colorPrimary,backgroundColor:o.colorFillSecondary}),(0,r._)(e,"&:active, &-checked",{color:o.colorTextLightSolid}),(0,r._)(e,"&-checked",{backgroundColor:o.colorPrimary,"&:hover":{backgroundColor:o.colorPrimaryHover}}),(0,r._)(e,"&:active",{backgroundColor:o.colorPrimaryActive}),e)),(0,r._)(n,"&-hidden",{display:"none"}),(0,r._)(n,"> ".concat(o.iconCls," + span, > span + ").concat(o.iconCls),{marginInlineStart:u}),n))),(0,r._)(t,"".concat(i,"-borderless"),{borderColor:"transparent",background:o.tagBorderlessBg}),t},I=function(o){var e=o.lineWidth,n=o.fontSizeIcon,r=o.calc,t=o.fontSizeSM;return(0,j.IX)(o,{tagFontSize:t,tagLineHeight:(0,_.bf)(r(o.lineHeightSM).mul(t).equal()),tagIconSize:r(n).sub(r(e).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:o.defaultBg})},P=function(o){return{defaultBg:new O.t(o.colorFillQuaternary).onBackground(o.colorBgContainer).toHexString(),defaultColor:o.colorText}},w=(0,x.I$)("Tag",function(o){return E(I(o))},P),N=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&0>e.indexOf(r)&&(n[r]=o[r]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols)for(var t=0,r=Object.getOwnPropertySymbols(o);t<r.length;t++)0>e.indexOf(r[t])&&Object.prototype.propertyIsEnumerable.call(o,r[t])&&(n[r[t]]=o[r[t]]);return n},B=c.forwardRef(function(o,e){var n=o.prefixCls,l=o.style,i=o.className,s=o.checked,u=o.children,d=o.icon,g=o.onChange,b=o.onClick,f=N(o,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),p=c.useContext(k.E_),C=p.getPrefixCls,m=p.tag,v=C("tag",n),h=(0,t._)(w(v),3),y=h[0],_=h[1],O=h[2],S=a()(v,"".concat(v,"-checkable"),
1(0,r._)({},"".concat(v,"-checkable-checked"),s),null==m?void 0:m.className,i,_,O);return y(c.createElement("span",Object.assign({},f,{ref:e,style:Object.assign(Object.assign({},l),null==m?void 0:m.style),className:S,onClick:function(o){null==g||g(!s),null==b||b(o)}}),d,c.createElement("span",null,u)))}),T=n(90148),z=(0,x.bk)(["Tag","preset"],function(o){var e;return e=I(o),(0,T.Z)(e,function(o,n){var t=n.textColor,c=n.lightBorderColor,l=n.lightColor,a=n.darkColor;return(0,r._)({},"".concat(e.componentCls).concat(e.componentCls,"-").concat(o),(0,r._)({color:t,background:l,borderColor:c,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a}},"&".concat(e.componentCls,"-borderless"),{borderColor:"transparent"}))})},P),Z=function(o,e,n){var t="string"!=typeof n?n:n.charAt(0).toUpperCase()+n.slice(1);return(0,r._)({},"".concat(o.componentCls).concat(o.componentCls,"-").concat(e),(0,r._)({color:o["color".concat(n)],background:o["color".concat(t,"Bg")],borderColor:o["color".concat(t,"Border")]},"&".concat(o.componentCls,"-borderless"),{borderColor:"transparent"}))},H=(0,x.bk)(["Tag","status"],function(o){var e=I(o);return[Z(e,"success","Success"),Z(e,"processing","Info"),Z(e,"error","Error"),Z(e,"warning","Warning")]},P),M=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&0>e.indexOf(r)&&(n[r]=o[r]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols)for(var t=0,r=Object.getOwnPropertySymbols(o);t<r.length;t++)0>e.indexOf(r[t])&&Object.prototype.propertyIsEnumerable.call(o,r[t])&&(n[r[t]]=o[r[t]]);return n},R=c.forwardRef(function(o,e){var n,l=o.prefixCls,u=o.className,d=o.rootClassName,g=o.style,b=o.children,f=o.icon,C=o.color,m=o.onClose,_=o.bordered,O=o.visible,S=M(o,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),j=c.useContext(k.E_),x=j.getPrefixCls,E=j.direction,I=j.tag,P=(0,t._)(c.useState(!0),2),N=P[0],B=P[1],T=(0,i.Z)(S,["closeIcon","closable"]);c.useEffect(function(){void 0!==O&&B(O)},[O]);var Z=(0,s.o2)(C),R=(0,s.yT)(C),F=Z||R,L=Object.assign(Object.assign({backgroundColor:C&&!F?C:void 0},null==I?void 0:I.style),g),W=x("tag",l),q=(0,t._)(w(W),3),X=q[0],A=q[1],D=q[2],Q=a()(W,null==I?void 0:I.className,(n={},(0,r._)(n,"".concat(W,"-").concat(C),F),(0,r._)(n,"".concat(W,"-has-color"),C&&!F),(0,r._)(n,"".concat(W,"-hidden"),!N),(0,r._)(n,"".concat(W,"-rtl"),"rtl"===E),(0,r._)(n,"".concat(W,"-borderless"),!(void 0===_||_)),n),u,d,A,D),U=function(o){o.stopPropagation(),null==m||m(o),o.defaultPrevented||B(!1)},V=(0,t._)(v(p(o),p(I),{closable:!1,closeIconRender:function(o){var e=c.createElement("span",{className:"".concat(W,"-close-icon"),onClick:U},o);return(0,h.wm)(o,e,function(o){return{onClick:function(e){var n;null===(n=null==o?void 0:o.onClick)||void 0===n||n.call(o,e),U(e)},className:a()(null==o?void 0:o.className,"".concat(W,"-close-icon"))}})}}),2)[1],$="function"==typeof S.onClick||b&&"a"===b.type,G=f||null,J=G?c.createElement(c.Fragment,null,G,b&&c.createElement("span",null,b)):b,K=c.createElement("span",Object.assign({},T,{ref:e,className:Q,style:L}),J,V,Z&&c.createElement(z,{key:"preset",prefixCls:W}),R&&c.createElement(H,{key:"status",prefixCls:W}));return X($?c.createElement(y.Z,{component:"Tag"},K):K)});R.CheckableTag=B;var F=R}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.