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
9.1 KiB

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