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 line
22 KiB
1 line
22 KiB
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[80780],{97810:function(e,n,t){t.d(n,{Z:function(){return c}});var r=t(15250),o=t(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},a=t(1393),l=function(e,n){return o.createElement(a.Z,(0,r.Z)({},e,{ref:n,icon:i}))};var c=o.forwardRef(l)},65547:function(e,n,t){t.d(n,{Z:function(){return c}});var r=t(15250),o=t(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},a=t(1393),l=function(e,n){return o.createElement(a.Z,(0,r.Z)({},e,{ref:n,icon:i}))};var c=o.forwardRef(l)},77578:function(e,n,t){t.d(n,{Z:function(){return r}});const r=e=>e?"function"==typeof e?e():e:null},28103:function(e,n,t){t.d(n,{Z:function(){return h}});var r=t(92310),o=t.n(r),i=t(59301),a=t(36355),l=t(17313),c=t(83116),s=t(37613);const d=e=>{const{componentCls:n,sizePaddingEdgeHorizontal:t,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:c}=e;return{[n]:Object.assign(Object.assign({},(0,l.Wf)(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:c,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${n}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${n}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${n}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${n}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${n}-with-text${n}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${n}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${n}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${n}-with-text-left${n}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${n}-inner-text`]:{paddingInlineStart:t}},[`&-horizontal${n}-with-text-right${n}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${n}-inner-text`]:{paddingInlineEnd:t}}})}};var g=(0,c.Z)("Divider",(e=>{const n=(0,s.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(n)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t};var h=e=>{const{getPrefixCls:n,direction:t,divider:r}=i.useContext(a.E_),{prefixCls:l,type:c="horizontal",orientation:s="center",orientationMargin:d,className:h,rootClassName:u,children:m,dashed:b,plain:f,style:$}=e,v=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),y=n("divider",l),[x,S]=g(y),C=s.length>0?`-${s}`:s,k=!!m,w="left"===s&&null!=d,I="right"===s&&null!=d,O=o()(y,null==r?void 0:r.className,S,`${y}-${c}`,{[`${y}-with-text`]:k,[`${y}-with-text${C}`]:k,[`${y}-dashed`]:!!b,[`${y}-plain`]:!!f,[`${y}-rtl`]:"rtl"===t,[`${y}-no-default-orientation-margin-left`]:w,[`${y}-no-default-orientation-margin-right`]:I},h,u),E=i.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),z=Object.assign(Object.assign({},w&&{marginLeft:E}),I&&{marginRight:E});return x(i.createElement("div",Object.assign({className:O,style:Object.assign(Object.assign({},null==r?void 0:r.style),$)},v,{role:"separator"}),m&&"vertical"!==c&&i.createElement("span",{className:`${y}-inner-text`,style:z},m)))}},39722:function(e,n,t){t.d(n,{t5:function(){return g}});var r=t(92310),o=t.n(r),i=t(55477),a=t(59301),l=t(36355),c=t(77578),s=t(17356),d=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t};const g=e=>{const{hashId:n,prefixCls:t,className:r,style:l,placement:s="top",title:d,content:g,children:p}=e;return a.createElement("div",{className:o()(n,t,`${t}-pure`,`${t}-placement-${s}`,r),style:l},a.createElement("div",{className:`${t}-arrow`}),a.createElement(i.G,Object.assign({},e,{className:n,prefixCls:t}),p||((e,n,t)=>{if(n||t)return a.createElement(a.Fragment,null,n&&a.createElement("div",{className:`${e}-title`},(0,c.Z)(n)),a.createElement("div",{className:`${e}-inner-content`},(0,c.Z)(t)))})(t,d,g)))};n.ZP=e=>{const{prefixCls:n}=e,t=d(e,["prefixCls"]),{getPrefixCls:r}=a.useContext(l.E_),o=r("popover",n),[i,c]=(0,s.Z)(o);return i(a.createElement(g,Object.assign({},t,{prefixCls:o,hashId:c})))}},60324:function(e,n,t){var r=t(92310),o=t.n(r),i=t(59301),a=t(77578),l=t(62892),c=t(36355),s=t(6848),d=t(39722),g=t(17356),p=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t};const h=e=>{let{title:n,content:t,prefixCls:r}=e;return i.createElement(i.Fragment,null,n&&i.createElement("div",{className:`${r}-title`},(0,a.Z)(n)),i.createElement("div",{className:`${r}-inner-content`},(0,a.Z)(t)))},u=i.forwardRef(((e,n)=>{const{prefixCls:t,title:r,content:a,overlayClassName:d,placement:u="top",trigger:m="hover",mouseEnterDelay:b=.1,mouseLeaveDelay:f=.1,overlayStyle:$={}}=e,v=p(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:y}=i.useContext(c.E_),x=y("popover",t),[S,C]=(0,g.Z)(x),k=y(),w=o()(d,C);return S(i.createElement(s.Z,Object.assign({placement:u,trigger:m,mouseEnterDelay:b,mouseLeaveDelay:f,overlayStyle:$},v,{prefixCls:x,overlayClassName:w,ref:n,overlay:r||a?i.createElement(h,{prefixCls:x,title:r,content:a}):null,transitionName:(0,l.m)(k,"zoom-big",v.transitionName),"data-popover-inject":!0})))}));u._InternalPanelDoNotUseOrYouWillBeFired=d.ZP,n.Z=u},17356:function(e,n,t){var r=t(17313),o=t(29878),i=t(19447),a=t(33166),l=t(83116),c=t(37613);const s=e=>{const{componentCls:n,popoverColor:t,minWidth:o,fontWeightStrong:a,popoverPadding:l,boxShadowSecondary:c,colorTextHeading:s,borderRadiusLG:d,zIndexPopup:g,marginXS:p,colorBgElevated:h,popoverBg:u}=e;return[{[n]:Object.assign(Object.assign({},(0,r.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:g,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":h,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${n}-content`]:{position:"relative"},[`${n}-inner`]:{backgroundColor:u,backgroundClip:"padding-box",borderRadius:d,boxShadow:c,padding:l},[`${n}-title`]:{minWidth:o,marginBottom:p,color:s,fontWeight:a},[`${n}-inner-content`]:{color:t}})},(0,i.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${n}-content`]:{display:"inline-block"}}}]},d=e=>{const{componentCls:n}=e;return{[n]:a.i.map((t=>{const r=e[`${t}6`];return{[`&${n}-${t}`]:{"--antd-arrow-background-color":r,[`${n}-inner`]:{backgroundColor:r},[`${n}-arrow`]:{background:"transparent"}}}}))}},g=e=>{const{componentCls:n,lineWidth:t,lineType:r,colorSplit:o,paddingSM:i,controlHeight:a,fontSize:l,lineHeight:c,padding:s}=e,d=a-Math.round(l*c);return{[n]:{[`${n}-inner`]:{padding:0},[`${n}-title`]:{margin:0,padding:`${d/2}px ${s}px ${d/2-t}px`,borderBottom:`${t}px ${r} ${o}`},[`${n}-inner-content`]:{padding:`${i}px ${s}px`}}}};n.Z=(0,l.Z)("Popover",(e=>{const{colorBgElevated:n,colorText:t,wireframe:r}=e,i=(0,c.TS)(e,{popoverPadding:12,popoverBg:n,popoverColor:t});return[s(i),d(i),r&&g(i),(0,o._y)(i,"zoom-big")]}),(e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},78673:function(e,n,t){t.d(n,{Z:function(){return j}});var r=t(42857),o=t(92310),i=t.n(o),a=t(15250),l=t(97326),c=t(90654),s=t(32235),d=t(59301),g=t(71366),p=t(20287),h=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],u=d.forwardRef((function(e,n){var t,r=e.prefixCls,o=void 0===r?"rc-switch":r,u=e.className,m=e.checked,b=e.defaultChecked,f=e.disabled,$=e.loadingIcon,v=e.checkedChildren,y=e.unCheckedChildren,x=e.onClick,S=e.onChange,C=e.onKeyDown,k=(0,s.Z)(e,h),w=(0,g.Z)(!1,{value:m,defaultValue:b}),I=(0,c.Z)(w,2),O=I[0],E=I[1];function z(e,n){var t=O;return f||(E(t=e),null==S||S(t,n)),t}var M=i()(o,u,(t={},(0,l.Z)(t,"".concat(o,"-checked"),O),(0,l.Z)(t,"".concat(o,"-disabled"),f),t));return d.createElement("button",(0,a.Z)({},k,{type:"button",role:"switch","aria-checked":O,disabled:f,className:M,ref:n,onKeyDown:function(e){e.which===p.Z.LEFT?z(!1,e):e.which===p.Z.RIGHT&&z(!0,e),null==C||C(e)},onClick:function(e){var n=z(!O,e);null==x||x(n,e)}}),$,d.createElement("span",{className:"".concat(o,"-inner")},d.createElement("span",{className:"".concat(o,"-inner-checked")},v),d.createElement("span",{className:"".concat(o,"-inner-unchecked")},y)))}));u.displayName="Switch";var m=u,b=t(14088),f=t(36355),$=t(1684),v=t(19716),y=t(64993),x=t(17313),S=t(83116),C=t(37613);const k=e=>{const{componentCls:n,trackHeightSM:t,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l}=e,c=`${n}-inner`;return{[n]:{[`&${n}-small`]:{minWidth:o,height:t,lineHeight:`${t}px`,[`${n}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${l+2*r}px - ${2*a}px)`,marginInlineEnd:`calc(100% - ${l+2*r}px + ${2*a}px)`},[`${c}-unchecked`]:{marginTop:-t,marginInlineStart:0,marginInlineEnd:0}},[`${n}-handle`]:{width:l,height:l},[`${n}-loading-icon`]:{top:(l-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${n}-checked`]:{[`${n}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${l+2*r}px + ${2*a}px)`,marginInlineEnd:`calc(-100% + ${l+2*r}px - ${2*a}px)`}},[`${n}-handle`]:{insetInlineStart:`calc(100% - ${l+r}px)`}},[`&:not(${n}-disabled):active`]:{[`&:not(${n}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${n}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},w=e=>{const{componentCls:n,handleSize:t}=e;return{[n]:{[`${n}-loading-icon${e.iconCls}`]:{position:"relative",top:(t-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${n}-checked ${n}-loading-icon`]:{color:e.switchColor}}}},I=e=>{const{componentCls:n,motion:t,trackPadding:r,handleBg:o,handleShadow:i,handleSize:a}=e,l=`${n}-handle`;return{[n]:{[l]:{position:"absolute",top:r,insetInlineStart:r,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:a/2,boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${n}-checked ${l}`]:{insetInlineStart:`calc(100% - ${a+r}px)`},[`&:not(${n}-disabled):active`]:t?{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${n}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},O=e=>{const{componentCls:n,trackHeight:t,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a}=e,l=`${n}-inner`;return{[n]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${a+2*r}px - ${2*i}px)`,marginInlineEnd:`calc(100% - ${a+2*r}px + ${2*i}px)`},[`${l}-unchecked`]:{marginTop:-t,marginInlineStart:0,marginInlineEnd:0}},[`&${n}-checked ${l}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${a+2*r}px + ${2*i}px)`,marginInlineEnd:`calc(-100% + ${a+2*r}px - ${2*i}px)`}},[`&:not(${n}-disabled):active`]:{[`&:not(${n}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:2*r,marginInlineEnd:2*-r}},[`&${n}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:2*-r,marginInlineEnd:2*r}}}}}},E=e=>{const{componentCls:n,trackHeight:t,trackMinWidth:r}=e;return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,x.Wf)(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:t,lineHeight:`${t}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${n}-disabled)`]:{background:e.colorTextTertiary}}),(0,x.Qy)(e)),{[`&${n}-checked`]:{background:e.switchColor,[`&:hover:not(${n}-disabled)`]:{background:e.colorPrimaryHover}},[`&${n}-loading, &${n}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${n}-rtl`]:{direction:"rtl"}})}};var z=(0,S.Z)("Switch",(e=>{const n=(0,C.TS)(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[E(n),O(n),I(n),w(n),k(n)]}),(e=>{const{fontSize:n,lineHeight:t,controlHeight:r,colorWhite:o}=e,i=n*t,a=r/2,l=i-4,c=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*l+8,trackMinWidthSM:2*c+4,trackPadding:2,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new y.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}})),M=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t};const P=d.forwardRef(((e,n)=>{const{prefixCls:t,size:o,disabled:a,loading:l,className:c,rootClassName:s,style:g}=e,p=M(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:h,direction:u,switch:y}=d.useContext(f.E_),x=d.useContext($.Z),S=(null!=a?a:x)||l,C=h("switch",t),k=d.createElement("div",{className:`${C}-handle`},l&&d.createElement(r.Z,{className:`${C}-loading-icon`})),[w,I]=z(C),O=(0,v.Z)(o),E=i()(null==y?void 0:y.className,{[`${C}-small`]:"small"===O,[`${C}-loading`]:l,[`${C}-rtl`]:"rtl"===u},c,s,I),P=Object.assign(Object.assign({},null==y?void 0:y.style),g);return w(d.createElement(b.Z,{component:"Switch"},d.createElement(m,Object.assign({},p,{prefixCls:C,className:E,style:P,disabled:S,ref:n,loadingIcon:k}))))}));P.__ANT_SWITCH=!0;var j=P},12563:function(e,n,t){t.d(n,{Z:function(){return I}});var r=t(59301),o=t(53043),i=t(92310),a=t.n(i),l=t(36785),c=t(47729),s=t(14088),d=t(36355),g=t(17313),p=t(37613),h=t(83116);const u=e=>{const{lineWidth:n,fontSizeIcon:t}=e,r=e.fontSizeSM,o=e.lineHeightSM*r+"px";return(0,p.TS)(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:t-2*n,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},m=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var b=(0,h.Z)("Tag",(e=>(e=>{const{paddingXXS:n,lineWidth:t,tagPaddingHorizontal:r,componentCls:o}=e,i=r-t,a=n-t;return{[o]:Object.assign(Object.assign({},(0,g.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-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(${o}-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:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(u(e))),m),f=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t};var $=e=>{const{prefixCls:n,style:t,className:o,checked:i,onChange:l,onClick:c}=e,s=f(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:g,tag:p}=r.useContext(d.E_),h=g("tag",n),[u,m]=b(h),$=a()(h,`${h}-checkable`,{[`${h}-checkable-checked`]:i},null==p?void 0:p.className,o,m);return u(r.createElement("span",Object.assign({},s,{style:Object.assign(Object.assign({},t),null==p?void 0:p.style),className:$,onClick:e=>{null==l||l(!i),null==c||c(e)}})))},v=t(45157);var y=(0,h.b)(["Tag","preset"],(e=>(e=>(0,v.Z)(e,((n,t)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=t;return{[`${e.componentCls}-${n}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(u(e))),m);const x=(e,n,t)=>{const r="string"!=typeof(o=t)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}-${n}`]:{color:e[`color${t}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var S=(0,h.b)(["Tag","status"],(e=>{const n=u(e);return[x(n,"success","Success"),x(n,"processing","Info"),x(n,"error","Error"),x(n,"warning","Warning")]}),m),C=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t};const k=(e,n)=>{const{prefixCls:t,className:i,rootClassName:g,style:p,children:h,icon:u,color:m,onClose:f,closeIcon:$,closable:v,bordered:x=!0}=e,k=C(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:w,direction:I,tag:O}=r.useContext(d.E_),[E,z]=r.useState(!0);r.useEffect((()=>{"visible"in k&&z(k.visible)}),[k.visible]);const M=(0,l.o2)(m),P=(0,l.yT)(m),j=M||P,N=Object.assign(Object.assign({backgroundColor:m&&!j?m:void 0},null==O?void 0:O.style),p),Z=w("tag",t),[T,H]=b(Z),W=a()(Z,null==O?void 0:O.className,{[`${Z}-${m}`]:j,[`${Z}-has-color`]:m&&!j,[`${Z}-hidden`]:!E,[`${Z}-rtl`]:"rtl"===I,[`${Z}-borderless`]:!x},i,g,H),B=e=>{e.stopPropagation(),null==f||f(e),e.defaultPrevented||z(!1)},[,D]=(0,c.Z)(v,$,(e=>null===e?r.createElement(o.Z,{className:`${Z}-close-icon`,onClick:B}):r.createElement("span",{className:`${Z}-close-icon`,onClick:B},e)),null,!1),L="function"==typeof k.onClick||h&&"a"===h.type,R=u||null,A=R?r.createElement(r.Fragment,null,R,h&&r.createElement("span",null,h)):h,_=r.createElement("span",Object.assign({},k,{ref:n,className:W,style:N}),A,D,M&&r.createElement(y,{key:"preset",prefixCls:Z}),P&&r.createElement(S,{key:"status",prefixCls:Z}));return T(L?r.createElement(s.Z,{component:"Tag"},_):_)},w=r.forwardRef(k);w.CheckableTag=$;var I=w}}]); |