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
21 KiB
1 line
21 KiB
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[41715],{80882:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(87462),o=n(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},l=n(43387),i=function(e,t){return o.createElement(l.Z,(0,r.Z)({},e,{ref:t,icon:a}))};var c=o.forwardRef(i)},3089:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(87462),o=n(67294),a={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"},l=n(43387),i=function(e,t){return o.createElement(l.Z,(0,r.Z)({},e,{ref:t,icon:a}))};var c=o.forwardRef(i)},64789:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(87462),o=n(67294),a={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"},l=n(43387),i=function(e,t){return o.createElement(l.Z,(0,r.Z)({},e,{ref:t,icon:a}))};var c=o.forwardRef(i)},24969:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(87462),o=n(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},l=n(43387),i=function(e,t){return o.createElement(l.Z,(0,r.Z)({},e,{ref:t,icon:a}))};var c=o.forwardRef(i)},25035:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(87462),o=n(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},l=n(43387),i=function(e,t){return o.createElement(l.Z,(0,r.Z)({},e,{ref:t,icon:a}))};var c=o.forwardRef(i)},48115:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(87462),o=n(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},l=n(43387),i=function(e,t){return o.createElement(l.Z,(0,r.Z)({},e,{ref:t,icon:a}))};var c=o.forwardRef(i)},81643:function(e,t,n){n.d(t,{Z:function(){return r}});const r=e=>e?"function"==typeof e?e():e:null},96074:function(e,t,n){n.d(t,{Z:function(){return g}});var r=n(94184),o=n.n(r),a=n(67294),l=n(53124),i=n(14747),c=n(67968),s=n(45503);const d=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:l,verticalMarginInline:c}=e;return{[t]:Object.assign(Object.assign({},(0,i.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${t}-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${t}-with-text-left`]:{"&::before":{width:100*l+"%"},"&::after":{width:100-100*l+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*l+"%"},"&::after":{width:100*l+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var u=(0,c.Z)("Divider",(e=>{const t=(0,s.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var g=e=>{const{getPrefixCls:t,direction:n,divider:r}=a.useContext(l.E_),{prefixCls:i,type:c="horizontal",orientation:s="center",orientationMargin:d,className:g,rootClassName:f,children:m,dashed:h,plain:v,style:b}=e,y=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),$=t("divider",i),[x,C]=u($),S=s.length>0?`-${s}`:s,w=!!m,O="left"===s&&null!=d,E="right"===s&&null!=d,k=o()($,null==r?void 0:r.className,C,`${$}-${c}`,{[`${$}-with-text`]:w,[`${$}-with-text${S}`]:w,[`${$}-dashed`]:!!h,[`${$}-plain`]:!!v,[`${$}-rtl`]:"rtl"===n,[`${$}-no-default-orientation-margin-left`]:O,[`${$}-no-default-orientation-margin-right`]:E},g,f),z=a.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),j=Object.assign(Object.assign({},O&&{marginLeft:z}),E&&{marginRight:z});return x(a.createElement("div",Object.assign({className:k,style:Object.assign(Object.assign({},null==r?void 0:r.style),b)},y,{role:"separator"}),m&&"vertical"!==c&&a.createElement("span",{className:`${$}-inner-text`,style:j},m)))}},66330:function(e,t,n){n.d(t,{t5:function(){return u}});var r=n(94184),o=n.n(r),a=n(92419),l=n(67294),i=n(53124),c=n(81643),s=n(20136),d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const u=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:s="top",title:d,content:u,children:p}=e;return l.createElement("div",{className:o()(t,n,`${n}-pure`,`${n}-placement-${s}`,r),style:i},l.createElement("div",{className:`${n}-arrow`}),l.createElement(a.G,Object.assign({},e,{className:t,prefixCls:n}),p||((e,t,n)=>{if(t||n)return l.createElement(l.Fragment,null,t&&l.createElement("div",{className:`${e}-title`},(0,c.Z)(t)),l.createElement("div",{className:`${e}-inner-content`},(0,c.Z)(n)))})(n,d,u)))};t.ZP=e=>{const{prefixCls:t}=e,n=d(e,["prefixCls"]),{getPrefixCls:r}=l.useContext(i.E_),o=r("popover",t),[a,c]=(0,s.Z)(o);return a(l.createElement(u,Object.assign({},n,{prefixCls:o,hashId:c})))}},55241:function(e,t,n){var r=n(94184),o=n.n(r),a=n(67294),l=n(81643),i=n(33603),c=n(53124),s=n(83062),d=n(66330),u=n(20136),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const g=e=>{let{title:t,content:n,prefixCls:r}=e;return a.createElement(a.Fragment,null,t&&a.createElement("div",{className:`${r}-title`},(0,l.Z)(t)),a.createElement("div",{className:`${r}-inner-content`},(0,l.Z)(n)))},f=a.forwardRef(((e,t)=>{const{prefixCls:n,title:r,content:l,overlayClassName:d,placement:f="top",trigger:m="hover",mouseEnterDelay:h=.1,mouseLeaveDelay:v=.1,overlayStyle:b={}}=e,y=p(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:$}=a.useContext(c.E_),x=$("popover",n),[C,S]=(0,u.Z)(x),w=$(),O=o()(d,S);return C(a.createElement(s.Z,Object.assign({placement:f,trigger:m,mouseEnterDelay:h,mouseLeaveDelay:v,overlayStyle:b},y,{prefixCls:x,overlayClassName:O,ref:t,overlay:r||l?a.createElement(g,{prefixCls:x,title:r,content:l}):null,transitionName:(0,i.m)(w,"zoom-big",y.transitionName),"data-popover-inject":!0})))}));f._InternalPanelDoNotUseOrYouWillBeFired=d.ZP,t.Z=f},20136:function(e,t,n){var r=n(14747),o=n(50438),a=n(97414),l=n(8796),i=n(67968),c=n(45503);const s=e=>{const{componentCls:t,popoverColor:n,minWidth:o,fontWeightStrong:l,popoverPadding:i,boxShadowSecondary:c,colorTextHeading:s,borderRadiusLG:d,zIndexPopup:u,marginXS:p,colorBgElevated:g,popoverBg:f}=e;return[{[t]:Object.assign(Object.assign({},(0,r.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":g,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:d,boxShadow:c,padding:i},[`${t}-title`]:{minWidth:o,marginBottom:p,color:s,fontWeight:l},[`${t}-inner-content`]:{color:n}})},(0,a.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},d=e=>{const{componentCls:t}=e;return{[t]:l.i.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}},u=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:a,controlHeight:l,fontSize:i,lineHeight:c,padding:s}=e,d=l-Math.round(i*c);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d/2}px ${s}px ${d/2-n}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${a}px ${s}px`}}}};t.Z=(0,i.Z)("Popover",(e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,a=(0,c.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[s(a),d(a),r&&u(a),(0,o._y)(a,"zoom-big")]}),(e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},55054:function(e,t,n){n.d(t,{Z:function(){return x}});var r=n(67294),o=n(57838),a=n(96159),l=n(94184),i=n.n(l),c=n(53124),s=n(4310);var d=e=>{const{value:t,formatter:n,precision:o,decimalSeparator:a,groupSeparator:l="",prefixCls:i}=e;let c;if("function"==typeof n)c=n(t);else{const e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(n&&"-"!==e){const e=n[1];let t=n[2]||"0",s=n[4]||"";t=t.replace(/\B(?=(\d{3})+(?!\d))/g,l),"number"==typeof o&&(s=s.padEnd(o,"0").slice(0,o>0?o:0)),s&&(s=`${a}${s}`),c=[r.createElement("span",{key:"int",className:`${i}-content-value-int`},e,t),s&&r.createElement("span",{key:"decimal",className:`${i}-content-value-decimal`},s)]}else c=e}return r.createElement("span",{className:`${i}-content-value`},c)},u=n(14747),p=n(67968),g=n(45503);const f=e=>{const{componentCls:t,marginXXS:n,padding:r,colorTextDescription:o,titleFontSize:a,colorTextHeading:l,contentFontSize:i,fontFamily:c}=e;return{[`${t}`]:Object.assign(Object.assign({},(0,u.Wf)(e)),{[`${t}-title`]:{marginBottom:n,color:o,fontSize:a},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:l,fontSize:i,fontFamily:c,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}};var m=(0,p.Z)("Statistic",(e=>{const t=(0,g.TS)(e,{});return[f(t)]}),(e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}}));var h=e=>{const{prefixCls:t,className:n,rootClassName:o,style:a,valueStyle:l,value:u=0,title:p,valueRender:g,prefix:f,suffix:h,loading:v=!1,onMouseEnter:b,onMouseLeave:y,decimalSeparator:$=".",groupSeparator:x=","}=e,{getPrefixCls:C,direction:S,statistic:w}=r.useContext(c.E_),O=C("statistic",t),[E,k]=m(O),z=r.createElement(d,Object.assign({decimalSeparator:$,groupSeparator:x,prefixCls:O},e,{value:u})),j=i()(O,{[`${O}-rtl`]:"rtl"===S},null==w?void 0:w.className,n,o,k);return E(r.createElement("div",{className:j,style:Object.assign(Object.assign({},null==w?void 0:w.style),a),onMouseEnter:b,onMouseLeave:y},p&&r.createElement("div",{className:`${O}-title`},p),r.createElement(s.Z,{paragraph:!1,loading:v,className:`${O}-skeleton`},r.createElement("div",{style:l,className:`${O}-content`},f&&r.createElement("span",{className:`${O}-content-prefix`},f),g?g(z):z,h&&r.createElement("span",{className:`${O}-content-suffix`},h)))))};const v=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function b(e,t){const{format:n=""}=t,r=new Date(e).getTime(),o=Date.now();return function(e,t){let n=e;const r=/\[[^\]]*]/g,o=(t.match(r)||[]).map((e=>e.slice(1,-1))),a=t.replace(r,"[]"),l=v.reduce(((e,t)=>{let[r,o]=t;if(e.includes(r)){const t=Math.floor(n/o);return n-=t*o,e.replace(new RegExp(`${r}+`,"g"),(e=>{const n=e.length;return t.toString().padStart(n,"0")}))}return e}),a);let i=0;return l.replace(r,(()=>{const e=o[i];return i+=1,e}))}(Math.max(r-o,0),n)}const y=e=>{const{value:t,format:n="HH:mm:ss",onChange:l,onFinish:i}=e,c=(0,o.Z)(),s=r.useRef(null),d=()=>{const e=function(e){return new Date(e).getTime()}(t);e>=Date.now()&&(s.current=setInterval((()=>{c(),null==l||l(e-Date.now()),e<Date.now()&&(null==i||i(),s.current&&(clearInterval(s.current),s.current=null))}),33.333333333333336))};r.useEffect((()=>(d(),()=>{s.current&&(clearInterval(s.current),s.current=null)})),[t]);return r.createElement(h,Object.assign({},e,{valueRender:e=>(0,a.Tm)(e,{title:void 0}),formatter:(e,t)=>b(e,Object.assign(Object.assign({},t),{format:n}))}))};var $=r.memo(y);h.Countdown=$;var x=h},66309:function(e,t,n){n.d(t,{Z:function(){return E}});var r=n(67294),o=n(85846),a=n(94184),l=n.n(a),i=n(98787),c=n(69760),s=n(45353),d=n(53124),u=n(14747),p=n(45503),g=n(67968);const f=e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=e.lineHeightSM*r+"px";return(0,p.TS)(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},m=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var h=(0,g.Z)("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,a=r-n,l=t-n;return{[o]:Object.assign(Object.assign({},(0,u.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,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:l,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:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(f(e))),m),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var b=e=>{const{prefixCls:t,style:n,className:o,checked:a,onChange:i,onClick:c}=e,s=v(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:p}=r.useContext(d.E_),g=u("tag",t),[f,m]=h(g),b=l()(g,`${g}-checkable`,{[`${g}-checkable-checked`]:a},null==p?void 0:p.className,o,m);return f(r.createElement("span",Object.assign({},s,{style:Object.assign(Object.assign({},n),null==p?void 0:p.style),className:b,onClick:e=>{null==i||i(!a),null==c||c(e)}})))},y=n(98719);var $=(0,g.b)(["Tag","preset"],(e=>(e=>(0,y.Z)(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:a,darkColor:l}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(f(e))),m);const x=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var C=(0,g.b)(["Tag","status"],(e=>{const t=f(e);return[x(t,"success","Success"),x(t,"processing","Info"),x(t,"error","Error"),x(t,"warning","Warning")]}),m),S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const w=(e,t)=>{const{prefixCls:n,className:a,rootClassName:u,style:p,children:g,icon:f,color:m,onClose:v,closeIcon:b,closable:y,bordered:x=!0}=e,w=S(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:O,direction:E,tag:k}=r.useContext(d.E_),[z,j]=r.useState(!0);r.useEffect((()=>{"visible"in w&&j(w.visible)}),[w.visible]);const N=(0,i.o2)(m),P=(0,i.yT)(m),Z=N||P,I=Object.assign(Object.assign({backgroundColor:m&&!Z?m:void 0},null==k?void 0:k.style),p),B=O("tag",n),[M,T]=h(B),H=l()(B,null==k?void 0:k.className,{[`${B}-${m}`]:Z,[`${B}-has-color`]:m&&!Z,[`${B}-hidden`]:!z,[`${B}-rtl`]:"rtl"===E,[`${B}-borderless`]:!x},a,u,T),W=e=>{e.stopPropagation(),null==v||v(e),e.defaultPrevented||j(!1)},[,D]=(0,c.Z)(y,b,(e=>null===e?r.createElement(o.Z,{className:`${B}-close-icon`,onClick:W}):r.createElement("span",{className:`${B}-close-icon`,onClick:W},e)),null,!1),L="function"==typeof w.onClick||g&&"a"===g.type,R=f||null,F=R?r.createElement(r.Fragment,null,R,g&&r.createElement("span",null,g)):g,_=r.createElement("span",Object.assign({},w,{ref:t,className:H,style:I}),F,D,N&&r.createElement($,{key:"preset",prefixCls:B}),P&&r.createElement(C,{key:"status",prefixCls:B}));return M(L?r.createElement(s.Z,{component:"Tag"},_):_)},O=r.forwardRef(w);O.CheckableTag=b;var E=O}}]); |