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.

22 lines
39 KiB

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[417],{3089:function(jt,Me,d){d.d(Me,{Z:function(){return Te}});var i=d(1413),ee=d(67294),fe={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"},ze=fe,N=d(91146),K=function($e,Fe){return ee.createElement(N.Z,(0,i.Z)((0,i.Z)({},$e),{},{ref:Fe,icon:ze}))},Pe=ee.forwardRef(K),Te=Pe},66309:function(jt,Me,d){d.d(Me,{Z:function(){return yt}});var i=d(67294),ee=d(93967),fe=d.n(ee),ze=d(98423),N=d(98787),K=d(69760),Pe=d(96159),Te=d(45353),z=d(53124),$e=d(54548),Fe=d(10274),D=d(14747),ut=d(45503),Ae=d(91945);const qe=c=>{const{paddingXXS:$,lineWidth:O,tagPaddingHorizontal:v,componentCls:C,calc:te}=c,R=te(v).sub(O).equal(),se=te($).sub(O).equal();return{[C]:Object.assign(Object.assign({},(0,D.Wf)(c)),{display:"inline-block",height:"auto",marginInlineEnd:c.marginXS,paddingInline:R,fontSize:c.tagFontSize,lineHeight:c.tagLineHeight,whiteSpace:"nowrap",background:c.defaultBg,border:`${(0,$e.bf)(c.lineWidth)} ${c.lineType} ${c.colorBorder}`,borderRadius:c.borderRadiusSM,opacity:1,transition:`all ${c.motionDurationMid}`,textAlign:"start",position:"relative",[`&${C}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:c.defaultColor},[`${C}-close-icon`]:{marginInlineStart:se,fontSize:c.tagIconSize,color:c.colorTextDescription,cursor:"pointer",transition:`all ${c.motionDurationMid}`,"&:hover":{color:c.colorTextHeading}},[`&${C}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${c.iconCls}-close, ${c.iconCls}-close:hover`]:{color:c.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${C}-checkable-checked):hover`]:{color:c.colorPrimary,backgroundColor:c.colorFillSecondary},"&:active, &-checked":{color:c.colorTextLightSolid},"&-checked":{backgroundColor:c.colorPrimary,"&:hover":{backgroundColor:c.colorPrimaryHover}},"&:active":{backgroundColor:c.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${c.iconCls} + span, > span + ${c.iconCls}`]:{marginInlineStart:R}}),[`${C}-borderless`]:{borderColor:"transparent",background:c.tagBorderlessBg}}},He=c=>{const{lineWidth:$,fontSizeIcon:O,calc:v}=c,C=c.fontSizeSM;return(0,ut.TS)(c,{tagFontSize:C,tagLineHeight:(0,$e.bf)(v(c.lineHeightSM).mul(C).equal()),tagIconSize:v(O).sub(v($).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:c.defaultBg})},Be=c=>({defaultBg:new Fe.C(c.colorFillQuaternary).onBackground(c.colorBgContainer).toHexString(),defaultColor:c.colorText});var ke=(0,Ae.I$)("Tag",c=>{const $=He(c);return qe($)},Be),pt=function(c,$){var O={};for(var v in c)Object.prototype.hasOwnProperty.call(c,v)&&$.indexOf(v)<0&&(O[v]=c[v]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,v=Object.getOwnPropertySymbols(c);C<v.length;C++)$.indexOf(v[C])<0&&Object.prototype.propertyIsEnumerable.call(c,v[C])&&(O[v[C]]=c[v[C]]);return O},ft=i.forwardRef((c,$)=>{const{prefixCls:O,style:v,className:C,checked:te,onChange:R,onClick:se}=c,re=pt(c,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:we,tag:J}=i.useContext(z.E_),Se=We=>{R==null||R(!te),se==null||se(We)},ce=we("tag",O),[Xe,Z,oe]=ke(ce),Ve=fe()(ce,`${ce}-checkable`,{[`${ce}-checkable-checked`]:te},J==null?void 0:J.className,C,Z,oe);return Xe(i.createElement("span",Object.assign({},re,{ref:$,style:Object.assign(Object.assign({},v),J==null?void 0:J.style),className:Ve,onClick:Se})))}),et=d(98719);const mt=c=>(0,et.Z)(c,($,O)=>{let{textColor:v,lightBorderColor:C,lightColor:te,darkColor:R}=O;return{[`${c.componentCls}${c.componentCls}-${$}`]:{color:v,background:te,borderColor:C,"&-inverse":{color:c.colorTextLightSolid,background:R,borderColor:R},[`&${c.componentCls}-borderl
&:not(${t}-disabled):hover,
&-hover:not(${t}-disabled)
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${(0,Z.bf)(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${r},
p${t}-text,
p${t}-hint
`]:{color:e.colorTextDisabled}}}}}},Ct=e=>{const{componentCls:t,antCls:r,iconCls:o,fontSize:l,lineHeight:a,calc:s}=e,n=`${t}-list-item`,p=`${n}-actions`,u=`${n}-action`,f=e.fontHeightSM;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},(0,J.dF)()),{lineHeight:e.lineHeight,[n]:{position:"relative",height:s(e.lineHeight).mul(l).equal(),marginTop:e.marginXS,fontSize:l,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${n}-name`]:Object.assign(Object.assign({},J.vS),{padding:`0 ${(0,Z.bf)(e.paddingXS)}`,lineHeight:a,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[p]:{whiteSpace:"nowrap",[u]:{opacity:0},[o]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
${u}:focus-visible,
&.picture ${u}
`]:{opacity:1},[`${u}${r}-btn`]:{height:f,border:0,lineHeight:1}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:l},[`${n}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:s(l).add(e.paddingXS).equal(),fontSize:l,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${n}:hover ${u}`]:{opacity:1},[`${n}-error`]:{color:e.colorError,[`${n}-name, ${t}-icon ${o}`]:{color:e.colorError},[p]:{[`${o}, ${o}:hover`]:{color:e.colorError},[u]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},rt=d(16932),Ge=e=>{const{componentCls:t}=e,r=new Z.E4("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=new Z.E4("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),l=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${l}-appear, ${l}-enter, ${l}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${l}-appear, ${l}-enter`]:{animationName:r},[`${l}-leave`]:{animationName:o}}},{[`${t}-wrapper`]:(0,rt.J$)(e)},r,o]},ot=d(78589);const Y=e=>{const{componentCls:t,iconCls:r,uploadThumbnailSize:o,uploadProgressOffset:l,calc:a}=e,s=`${t}-list`,n=`${s}-item`;return{[`${t}-wrapper`]:{[`
${s}${s}-picture,
${s}${s}-picture-card,
${s}${s}-picture-circle
`]:{[n]:{position:"relative",height:a(o).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${(0,Z.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${n}-thumbnail`]:Object.assign(Object.assign({},J.vS),{width:o,height:o,lineHeight:(0,Z.bf)(a(o).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[r]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${n}-progress`]:{bottom:l,width:`calc(100% - ${(0,Z.bf)(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(o).add(e.paddingXS).equal()}},[`${n}-error`]:{borderColor:e.colorError,[`${n}-thumbnail ${r}`]:{[`svg path[fill='${ot.iN[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${ot.iN.primary}']`]:{fill:e.colorError}}},[`${n}-uploading`]:{borderStyle:"dashed",[`${n}-name`]:{marginBottom:l}}},[`${s}${s}-picture-circle ${n}`]:{[`&, &::before, ${n}-thumbnail`]:{borderRadius:"50%"}}}}},wt=e=>{const{componentCls:t,iconCls:r,fontSizeLG:o,colorTextLightSolid:l,calc:a}=e,s=`${t}-list`,n=`${s}-item`,p=e.uploadPicCardSize;return{[`
${t}-wrapper${t}-picture-card-wrapper,
${t}-wrapper${t}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,J.dF)()),{display:"block",[`${t}${t}-select`]:{width:p,height:p,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${(0,Z.bf)(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${s}${s}-picture-card, ${s}${s}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${s}-item-container`]:{display:"inline-block",width:p,height:p,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[n]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,Z.bf)(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,Z.bf)(a(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${n}:hover`]:{[`&::before, ${n}-actions`]:{opacity:1}},[`${n}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
${r}-eye,
${r}-download,
${r}-delete
`]:{zIndex:10,width:o,margin:`0 ${(0,Z.bf)(e.marginXXS)}`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:l,"&:hover":{color:l},svg:{verticalAlign:"baseline"}}},[`${n}-thumbnail, ${n}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${n}-name`]:{display:"none",textAlign:"center"},[`${n}-file + ${n}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${(0,Z.bf)(a(e.paddingXS).mul(2).equal())})`},[`${n}-uploading`]:{[`&${n}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${n}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${(0,Z.bf)(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var St=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}};const It=e=>{const{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,J.Wf)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}},at=e=>({actionsColor:e.colorTextDescription});var Ot=(0,ce.I$)("Upload",e=>{const{fontSizeHeading3:t,fontHeight:r,lineWidth:o,controlHeightLG:l,calc:a}=e,s=(0,Xe.TS)(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(r).div(2)).add(o).equal(),uploadPicCardSize:a(l).mul(2.55).equal()});return[It(s),Ve(s),Y(s),wt(s),Ct(s),Ge(s),St(s),(0,Se.Z)(s)]},at),Et={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:r}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},it=Et,Ie=d(93771),lt=function(t,r){return i.createElement(Ie.Z,(0,K.Z)({},t,{ref:r,icon:it}))},me=i.forwardRef(lt),xt=me,ae=d(19267),st={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Ke=st,Vt=function(t,r){return i.createElement(Ie.Z,(0,K.Z)({},t,{ref:r,icon:Ke}))},Wt=i.forwardRef(Vt),Gt=Wt,Kt={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:r}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:r}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:r}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000