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 lines
8.9 KiB

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[942],{3089:function(ee,M,r){r.d(M,{Z:function(){return H}});var d=r(1413),E=r(67294),b={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"},B=b,x=r(91146),S=function($,P){return E.createElement(x.Z,(0,d.Z)((0,d.Z)({},$),{},{ref:P,icon:B}))},F=E.forwardRef(S),H=F},86250:function(ee,M,r){r.d(M,{Z:function(){return z}});var d=r(67294),E=r(93967),b=r.n(E),B=r(98423),x=r(98065),S=r(53124),F=r(91945),H=r(45503);const N=["wrap","nowrap","wrap-reverse"],$=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],P=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],D=(t,a)=>{const c=a.wrap===!0?"wrap":a.wrap;return{[`${t}-wrap-${c}`]:c&&N.includes(c)}},X=(t,a)=>{const c={};return P.forEach(l=>{c[`${t}-align-${l}`]=a.align===l}),c[`${t}-align-stretch`]=!a.align&&!!a.vertical,c},V=(t,a)=>{const c={};return $.forEach(l=>{c[`${t}-justify-${l}`]=a.justify===l}),c};function J(t,a){return b()(Object.assign(Object.assign(Object.assign({},D(t,a)),X(t,a)),V(t,a)))}var Z=J;const G=t=>{const{componentCls:a}=t;return{[a]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},R=t=>{const{componentCls:a}=t;return{[a]:{"&-gap-small":{gap:t.flexGapSM},"&-gap-middle":{gap:t.flexGap},"&-gap-large":{gap:t.flexGapLG}}}},Q=t=>{const{componentCls:a}=t,c={};return N.forEach(l=>{c[`${a}-wrap-${l}`]={flexWrap:l}}),c},te=t=>{const{componentCls:a}=t,c={};return P.forEach(l=>{c[`${a}-align-${l}`]={alignItems:l}}),c},U=t=>{const{componentCls:a}=t,c={};return $.forEach(l=>{c[`${a}-justify-${l}`]={justifyContent:l}}),c},Y=()=>({});var K=(0,F.I$)("Flex",t=>{const{paddingXS:a,padding:c,paddingLG:l}=t,u=(0,H.TS)(t,{flexGapSM:a,flexGap:c,flexGapLG:l});return[G(u),R(u),Q(u),te(u),U(u)]},Y,{resetStyle:!1}),k=function(t,a){var c={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&a.indexOf(l)<0&&(c[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(t);u<l.length;u++)a.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(t,l[u])&&(c[l[u]]=t[l[u]]);return c},z=d.forwardRef((t,a)=>{const{prefixCls:c,rootClassName:l,className:u,style:e,flex:s,gap:i,children:n,vertical:o=!1,component:p="div"}=t,g=k(t,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:f,direction:y,getPrefixCls:O}=d.useContext(S.E_),C=O("flex",c),[j,h,W]=K(C),L=o!=null?o:f==null?void 0:f.vertical,m=b()(u,l,f==null?void 0:f.className,C,h,W,Z(C,t),{[`${C}-rtl`]:y==="rtl",[`${C}-gap-${i}`]:(0,x.n)(i),[`${C}-vertical`]:L}),T=Object.assign(Object.assign({},f==null?void 0:f.style),e);return s&&(T.flex=s),i&&!(0,x.n)(i)&&(T.gap=i),j(d.createElement(p,Object.assign({ref:a,className:m,style:T},(0,B.Z)(g,["justify","wrap","align"])),n))})},66309:function(ee,M,r){r.d(M,{Z:function(){return u}});var d=r(67294),E=r(93967),b=r.n(E),B=r(98423),x=r(98787),S=r(69760),F=r(96159),H=r(45353),N=r(53124),$=r(54548),P=r(10274),D=r(14747),X=r(45503),V=r(91945);const J=e=>{const{paddingXXS:s,lineWidth:i,tagPaddingHorizontal:n,componentCls:o,calc:p}=e,g=p(n).sub(i).equal(),f=p(s).sub(i).equal();return{[o]:Object.assign(Object.assign({},(0,D.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:g,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,$.bf)(e.lineWidth)} ${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:f,fontSize:e.tagIconSize,color:e.colorTextDescription,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:g}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Z=e=>{const{lineWidth:s,fontSizeIcon:i,calc:n}=e,o=e.fontSizeSM;return(0,X.TS)(e,{tagFontSize:o,tagLineHeight:(0,$.bf)(n(e.lineHeightSM).mul(o).equal()),tagIconSize:n(i).sub(n(s).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},G=e=>({defaultBg:new P.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var R=(0,V.I$)("Tag",e=>{const s=Z(e);return J(s)},G),Q=function(e,s){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&s.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)s.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]]);return i},U=d.forwardRef((e,s)=>{const{prefixCls:i,style:n,className:o,checked:p,onChange:g,onClick:f}=e,y=Q(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:O,tag:C}=d.useContext(N.E_),j=A=>{g==null||g(!p),f==null||f(A)},h=O("tag",i),[W,L,m]=R(h),T=b()(h,`${h}-checkable`,{[`${h}-checkable-checked`]:p},C==null?void 0:C.className,o,L,m);return W(d.createElement("span",Object.assign({},y,{ref:s,style:Object.assign(Object.assign({},n),C==null?void 0:C.style),className:T,onClick:j})))}),Y=r(98719);const K=e=>(0,Y.Z)(e,(s,i)=>{let{textColor:n,lightBorderColor:o,lightColor:p,darkColor:g}=i;return{[`${e.componentCls}${e.componentCls}-${s}`]:{color:n,background:p,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:g,borderColor:g},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var k=(0,V.bk)(["Tag","preset"],e=>{const s=Z(e);return K(s)},G);function ne(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const z=(e,s,i)=>{const n=ne(i);return{[`${e.componentCls}${e.componentCls}-${s}`]:{color:e[`color${i}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var t=(0,V.bk)(["Tag","status"],e=>{const s=Z(e);return[z(s,"success","Success"),z(s,"processing","Info"),z(s,"error","Error"),z(s,"warning","Warning")]},G),a=function(e,s){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&s.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)s.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]]);return i};const l=d.forwardRef((e,s)=>{const{prefixCls:i,className:n,rootClassName:o,style:p,children:g,icon:f,color:y,onClose:O,bordered:C=!0,visible:j}=e,h=a(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:W,direction:L,tag:m}=d.useContext(N.E_),[T,A]=d.useState(!0),ie=(0,B.Z)(h,["closeIcon","closable"]);d.useEffect(()=>{j!==void 0&&A(j)},[j]);const oe=(0,x.o2)(y),le=(0,x.yT)(y),q=oe||le,de=Object.assign(Object.assign({backgroundColor:y&&!q?y:void 0},m==null?void 0:m.style),p),v=W("tag",i),[ge,fe,ue]=R(v),Ce=b()(v,m==null?void 0:m.className,{[`${v}-${y}`]:q,[`${v}-has-color`]:y&&!q,[`${v}-hidden`]:!T,[`${v}-rtl`]:L==="rtl",[`${v}-borderless`]:!C},n,o,fe,ue),re=w=>{w.stopPropagation(),O==null||O(w),!w.defaultPrevented&&A(!1)},[,pe]=(0,S.Z)((0,S.w)(e),(0,S.w)(m),{closable:!1,closeIconRender:w=>{const ye=d.createElement("span",{className:`${v}-close-icon`,onClick:re},w);return(0,F.wm)(w,ye,I=>({onClick:ce=>{var _;(_=I==null?void 0:I.onClick)===null||_===void 0||_.call(I,ce),re(ce)},className:b()(I==null?void 0:I.className,`${v}-close-icon`)}))}}),me=typeof h.onClick=="function"||g&&g.type==="a",ae=f||null,ve=ae?d.createElement(d.Fragment,null,ae,g&&d.createElement("span",null,g)):g,se=d.createElement("span",Object.assign({},ie,{ref:s,className:Ce,style:de}),ve,pe,oe&&d.createElement(k,{key:"preset",prefixCls:v}),le&&d.createElement(t,{key:"status",prefixCls:v}));return ge(me?d.createElement(H.Z,{component:"Tag"},se):se)});l.CheckableTag=U;var u=l}}]);