👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
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
31 KiB

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5279],{8303:function(Ue,Ie,g){g.d(Ie,{Z:function(){return Fe}});var p=g(50959),xe=g(84875),U=g.n(xe),Y=g(51408),le=g(31594),fe=g(17436),z=g(70836),u={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},be=p.createContext({}),Se=g(13763),ze=function(n,o){var d={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&o.indexOf(a)<0&&(d[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(n);s<a.length;s++)o.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(n,a[s])&&(d[a[s]]=n[a[s]]);return d};const he=n=>(0,Se.Z)(n).map(o=>Object.assign(Object.assign({},o==null?void 0:o.props),{key:o.key}));function Ne(n,o,d){const a=p.useMemo(()=>o||he(d),[o,d]);return p.useMemo(()=>a.map(S=>{var{span:$}=S,y=ze(S,["span"]);return Object.assign(Object.assign({},y),{span:typeof $=="number"?$:(0,Y.m9)(n,$)})}),[a,n])}function me(n,o,d){let a=n,s=!1;return(d===void 0||d>o)&&(a=Object.assign(Object.assign({},n),{span:o}),s=d!==void 0),[a,s]}function Ee(n,o){const d=[];let a=[],s=o,S=!1;return n.filter($=>$).forEach(($,y)=>{const N=$==null?void 0:$.span,I=N||1;if(y===n.length-1){const[C,T]=me($,s,N);S=S||T,a.push(C),d.push(a);return}if(I<s)s-=I,a.push($);else{const[C,T]=me($,s,I);S=S||T,a.push(C),d.push(a),s=o,a=[]}}),[d,S]}var je=(n,o)=>{const[d,a]=(0,p.useMemo)(()=>Ee(o,n),[o,n]);return d},Pe=n=>{let{children:o}=n;return o};function oe(n){return n!=null}var m=n=>{const{itemPrefixCls:o,component:d,span:a,className:s,style:S,labelStyle:$,contentStyle:y,bordered:N,label:I,content:C,colon:T}=n,A=d;return N?p.createElement(A,{className:U()({[`${o}-item-label`]:oe(I),[`${o}-item-content`]:oe(C)},s),style:S,colSpan:a},oe(I)&&p.createElement("span",{style:$},I),oe(C)&&p.createElement("span",{style:y},C)):p.createElement(A,{className:U()(`${o}-item`,s),style:S,colSpan:a},p.createElement("div",{className:`${o}-item-container`},(I||I===0)&&p.createElement("span",{className:U()(`${o}-item-label`,{[`${o}-item-no-colon`]:!T}),style:$},I),(C||C===0)&&p.createElement("span",{className:U()(`${o}-item-content`),style:y},C)))};function Q(n,o,d){let{colon:a,prefixCls:s,bordered:S}=o,{component:$,type:y,showLabel:N,showContent:I,labelStyle:C,contentStyle:T}=d;return n.map((A,G)=>{let{label:J,children:re,prefixCls:_=s,className:k,style:F,labelStyle:M,contentStyle:e,span:t=1,key:i}=A;return typeof $=="string"?p.createElement(m,{key:`${y}-${i||G}`,className:k,style:F,labelStyle:Object.assign(Object.assign({},C),M),contentStyle:Object.assign(Object.assign({},T),e),span:t,colon:a,component:$,itemPrefixCls:_,bordered:S,label:N?J:null,content:I?re:null}):[p.createElement(m,{key:`label-${i||G}`,className:k,style:Object.assign(Object.assign(Object.assign({},C),F),M),span:1,colon:a,component:$[0],itemPrefixCls:_,bordered:S,label:J}),p.createElement(m,{key:`content-${i||G}`,className:k,style:Object.assign(Object.assign(Object.assign({},T),F),e),span:t*2-1,component:$[1],itemPrefixCls:_,bordered:S,content:re})]})}var He=n=>{const o=p.useContext(be),{prefixCls:d,vertical:a,row:s,index:S,bordered:$}=n;return a?p.createElement(p.Fragment,null,p.createElement("tr",{key:`label-${S}`,className:`${d}-row`},Q(s,n,Object.assign({component:"th",type:"label",showLabel:!0},o))),p.createElement("tr",{key:`content-${S}`,className:`${d}-row`},Q(s,n,Object.assign({component:"td",type:"content",showContent:!0},o)))):p.createElement("tr",{key:S,className:`${d}-row`},Q(s,n,Object.assign({component:$?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},o)))},E=g(60076),ve=g(6301),Re=g(81501),Me=g(90467);const qe=n=>{const{componentCls:o,labelBg:d}=n;return{[`&${o}-bordered`]:{[`> ${o}-view`]:{border:`${(0,E.bf)(n.lineWidth)} ${n.lineType} ${n.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${o}-row`]:{borderBottom:`${(0,E.bf)(n.lineWidth)} ${n.lineType} ${n.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${o}-item-label, > ${o}-item-content`]:{padding:`${(0,E.bf)(n.padding)} ${(0,E.bf)(n.paddingLG)}`,borderInlineEnd:`${(0,E.bf)(n.lineWidth)} ${n.lineType} ${n.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${o}-item-label`]:{color:n.colorTextSecondary,backgroundColor:d,"&::after":{display:"none"}}}},[`&${o}-middle`]:{[`${o}-row`]:{[`> ${o}-item-label, > ${o}-item-content`]:{padding:`${(0,E.bf)(n.paddingSM)} ${(0,E.bf)(n.paddingLG)}`}}},[`&${o}-small`]:{[`${o}-row`]:{[`> ${o}-item-label, > ${o}-item-content`]:{padding:`${(0,E.bf)(n.paddingXS)} ${(0,E.bf)(n.padding)}`}}}}}},De=n=>{const{componentCls:o,extraColor:d,itemPaddingBottom:a,colonMarginRight:s,colonMarginLeft:S,titleMarginBottom:$}=n;return{[o]:Object.assign(Object.assign(Object.assign({},(0,ve.Wf)(n)),qe(n)),{["&-rtl"]:{direction:"rtl"},[`${o}-header`]:{display:"flex",alignItems:"center",marginBottom:$},[`${o}-title`]:Object.assign(Object.assign({},ve.vS),{flex:"auto",color:n.titleColor,fontWeight:n.fontWeightStrong,fontSize:n.fontSizeLG,lineHeight:n.lineHeightLG}),[`${o}-extra`]:{marginInlineStart:"auto",color:d,fontSize:n.fontSize},[`${o}-view`]:{width:"100%",borderRadius:n.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${o}-row`]:{"> th, > td":{paddingBottom:a},"&:last-child":{borderBottom:"none"}},[`${o}-item-label`]:{color:n.colorTextTertiary,fontWeight:"normal",fontSize:n.fontSize,lineHeight:n.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${(0,E.bf)(S)} ${(0,E.bf)(s)}`},[`&${o}-item-no-colon::after`]:{content:'""'}},[`${o}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${o}-item-content`]:{display:"table-cell",flex:1,color:n.contentColor,fontSize:n.fontSize,lineHeight:n.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${o}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${o}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${o}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${o}-row`]:{"> th, > td":{paddingBottom:n.paddingSM}}},"&-small":{[`${o}-row`]:{"> th, > td":{paddingBottom:n.paddingXS}}}})}},Ae=n=>({labelBg:n.colorFillAlter,titleColor:n.colorText,titleMarginBottom:n.fontSizeSM*n.lineHeightSM,itemPaddingBottom:n.padding,colonMarginRight:n.marginXS,colonMarginLeft:n.marginXXS/2,contentColor:n.colorText,extraColor:n.colorText});var We=(0,Re.I$)("Descriptions",n=>{const o=(0,Me.TS)(n,{});return De(o)},Ae),Ge=function(n,o){var d={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&o.indexOf(a)<0&&(d[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(n);s<a.length;s++)o.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(n,a[s])&&(d[a[s]]=n[a[s]]);return d};const ye=n=>{const{prefixCls:o,title:d,extra:a,column:s,colon:S=!0,bordered:$,layout:y,children:N,className:I,rootClassName:C,style:T,size:A,labelStyle:G,contentStyle:J,items:re}=n,_=Ge(n,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:k,direction:F,descriptions:M}=p.useContext(le.E_),e=k("descriptions",o),t=(0,z.Z)(),i=p.useMemo(()=>{var x;return typeof s=="number"?s:(x=(0,Y.m9)(t,Object.assign(Object.assign({},u),s)))!==null&&x!==void 0?x:3},[t,s]),l=Ne(t,re,N),r=(0,fe.Z)(A),c=je(i,l),[f,w]=We(e),b=p.useMemo(()=>({labelStyle:G,contentStyle:J}),[G,J]);return f(p.createElement(be.Provider,{value:b},p.createElement("div",Object.assign({className:U()(e,M==null?void 0:M.className,{[`${e}-${r}`]:r&&r!=="default",[`${e}-bordered`]:!!$,[`${e}-rtl`]:F==="rtl"},I,C,w),style:Object.assign(Object.assign({},M==null?void 0:M.style),T)},_),(d||a)&&p.createElement("div",{className:`${e}-header`},d&&p.createElement("div",{className:`${e}-title`},d),a&&p.createElement("div",{className:`${e}-extra`},a)),p.createElement("div",{className:`${e}-view`},p.createElement("table",null,p.createElement("tbody",null,c.map((x,O)=>p.createElement(He,{key:O,index:O,colon:S,prefixCls:e,vertical:y==="vertical",bordered:$,row:x}))))))))};ye.Item=Pe;var Fe=ye},27575:function(Ue,Ie,g){g.d(Ie,{Z:function(){return M}});var p=g(87132),xe=g(22410),U=g(84875),Y=g.n(U),le=g(38126),fe=g(33346),z=g(73273),Oe=g(10570),u=g(50959),we=g(57),be=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function Se(e){return typeof e=="string"}function ze(e){var t,i=e.className,l=e.prefixCls,r=e.style,c=e.active,f=e.status,w=e.iconPrefix,b=e.icon,x=e.wrapperStyle,O=e.stepNumber,Z=e.disabled,X=e.description,K=e.title,R=e.subTitle,j=e.progressDot,ee=e.stepIcon,te=e.tailContent,h=e.icons,ie=e.stepIndex,D=e.onStepClick,B=e.onClick,ae=e.render,ge=(0,Oe.Z)(e,be),V=!!D&&!Z,q={};V&&(q.role="button",q.tabIndex=0,q.onClick=function(P){B==null||B(P),D(ie)},q.onKeyDown=function(P){var H=P.which;(H===we.Z.ENTER||H===we.Z.SPACE)&&D(ie)});var pe=function(){var H,v,ue=Y()("".concat(l,"-icon"),"".concat(w,"icon"),(H={},(0,z.Z)(H,"".concat(w,"icon-").concat(b),b&&Se(b)),(0,z.Z)(H,"".concat(w,"icon-check"),!b&&f==="finish"&&(h&&!h.finish||!h)),(0,z.Z)(H,"".concat(w,"icon-cross"),!b&&f==="error"&&(h&&!h.error||!h)),H)),$e=u.createElement("span",{className:"".concat(l,"-icon-dot")});return j?typeof j=="function"?v=u.createElement("span",{className:"".concat(l,"-icon")},j($e,{index:O-1,status:f,title:K,description:X})):v=u.createElement("span",{className:"".concat(l,"-icon")},$e):b&&!Se(b)?v=u.createElement("span",{className:"".concat(l,"-icon")},b):h&&h.finish&&f==="finish"?v=u.createElement("span",{className:"".concat(l,"-icon")},h.finish):h&&h.error&&f==="error"?v=u.createElement("span",{className:"".concat(l,"-icon")},h.error):b||f==="finish"||f==="error"?v=u.createElement("span",{className:ue}):v=u.createElement("span",{className:"".concat(l,"-icon")},O),ee&&(v=ee({index:O-1,status:f,title:K,description:X,node:v})),v},ne=f||"wait",ce=Y()("".concat(l,"-item"),"".concat(l,"-item-").concat(ne),i,(t={},(0,z.Z)(t,"".concat(l,"-item-custom"),b),(0,z.Z)(t,"".concat(l,"-item-active"),c),(0,z.Z)(t,"".concat(l,"-item-disabled"),Z===!0),t)),se=(0,fe.Z)({},r),L=u.createElement("div",(0,le.Z)({},ge,{className:ce,style:se}),u.createElement("div",(0,le.Z)({onClick:B},q,{className:"".concat(l,"-item-container")}),u.createElement("div",{className:"".concat(l,"-item-tail")},te),u.createElement("div",{className:"".concat(l,"-item-icon")},pe()),u.createElement("div",{className:"".concat(l,"-item-content")},u.createElement("div",{className:"".concat(l,"-item-title")},K,R&&u.createElement("div",{title:typeof R=="string"?R:void 0,className:"".concat(l,"-item-subtitle")},R)),X&&u.createElement("div",{className:"".concat(l,"-item-description")},X))));return ae&&(L=ae(L)||null),L}var he=ze,Ne=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function me(e){var t,i=e.prefixCls,l=i===void 0?"rc-steps":i,r=e.style,c=r===void 0?{}:r,f=e.className,w=e.children,b=e.direction,x=b===void 0?"horizontal":b,O=e.type,Z=O===void 0?"default":O,X=e.labelPlacement,K=X===void 0?"horizontal":X,R=e.iconPrefix,j=R===void 0?"rc":R,ee=e.status,te=ee===void 0?"process":ee,h=e.size,ie=e.current,D=ie===void 0?0:ie,B=e.progressDot,ae=B===void 0?!1:B,ge=e.stepIcon,V=e.initial,q=V===void 0?0:V,pe=e.icons,ne=e.onChange,ce=e.itemRender,se=e.items,L=se===void 0?[]:se,P=(0,Oe.Z)(e,Ne),H=Z==="navigation",v=Z==="inline",ue=v||ae,$e=v?"horizontal":x,Ke=v?void 0:h,Ye=ue?"vertical":K,Qe=Y()(l,"".concat(l,"-").concat($e),f,(t={},(0,z.Z)(t,"".concat(l,"-").concat(Ke),Ke),(0,z.Z)(t,"".concat(l,"-label-").concat(Ye),$e==="horizontal"),(0,z.Z)(t,"".concat(l,"-dot"),!!ue),(0,z.Z)(t,"".concat(l,"-navigation"),H),(0,z.Z)(t,"".concat(l,"-inline"),v),t)),Je=function(Ce){ne&&D!==Ce&&ne(Ce)},_e=function(Ce,Ve){var W=(0,fe.Z)({},Ce),de=q+Ve;return te==="error"&&Ve===D-1&&(W.className="".concat(l,"-next-error")),W.status||(de===D?W.status=te:de<D?W.status="finish":W.status="wait"),v&&(W.icon=void 0,W.subTitle=void 0),!W.render&&ce&&(W.render=function(ke){return ce(W,ke)}),u.createElement(he,(0,le.Z)({},W,{active:de===D,stepNumber:de+1,stepIndex:de,key:de,prefixCls:l,iconPrefix:j,wrapperStyle:c,progressDot:ue,stepIcon:ge,icons:pe,onStepClick:ne&&Je}))};return u.createElement("div",(0,le.Z)({className:Qe,style:c},P),L.filter(function(Xe){return Xe}).map(_e))}me.Step=he;var Ee=me,Te=Ee,je=g(31594),Be=g(17436),Pe=g(70836),oe=g(17519),Le=g(32618),m=g(60076),Q=g(6301),Ze=g(81501),He=g(90467),ve=e=>{const{componentCls:t,customIconTop:i,customIconSize:l,customIconFontSize:r}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:i,width:l,height:l,fontSize:r,lineHeight:`${(0,m.bf)(r)}`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},Me=e=>{const{componentCls:t,inlineDotSize:i,inlineTitleColor:l,inlineTailColor:r}=e,c=e.calc(e.paddingXS).add(e.lineWidth).equal(),f={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:l}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${(0,m.bf)(c)} ${(0,m.bf)(e.paddingXXS)} 0`,margin:`0 ${(0,m.bf)(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},["&[role='button']:hover"]:{opacity:1}},"&-icon":{width:i,height:i,marginInlineStart:`calc(50% - ${(0,m.bf)(e.calc(i).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal()}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:l,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(i).div(2).add(c).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:r}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${(0,m.bf)(e.lineWidth)} ${e.lineType} ${r}`}},f),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:r},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:r,border:`${(0,m.bf)(e.lineWidth)} ${e.lineType} ${r}`}},f),"&-error":f,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:i,height:i,marginInlineStart:`calc(50% - ${(0,m.bf)(e.calc(i).div(2).equal())})`,top:0}},f),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:l}}}}}},De=e=>{const{componentCls:t,iconSize:i,lineHeight:l,iconSizeSM:r}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(i).div(2).add(e.controlHeightLG).equal(),padding:`${(0,m.bf)(e.paddingXXS)} ${(0,m.bf)(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(i).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:l}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(i).sub(r).div(2).add(e.controlHeightLG).equal()}}}}}},We=e=>{const{componentCls:t,navContentMaxWidth:i,navArrowColor:l,stepsNavActiveColor:r,motionDurationSlow:c}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${c}`,[`${t}-item-content`]:{maxWidth:i},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},Q.vS),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${(0,m.bf)(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${(0,m.bf)(e.lineWidth)} ${e.lineType} ${l}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${(0,m.bf)(e.lineWidth)} ${e.lineType} ${l}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:r,transition:`width ${c}, inset-inline-start ${c}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${(0,m.bf)(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},ye=e=>{const{antCls:t,componentCls:i}=e;return{[`&${i}-with-progress`]:{[`${i}-item`]:{paddingTop:e.paddingXXS,[`&-process ${i}-item-container ${i}-item-icon ${i}-icon`]:{color:e.processIconColor}},[`&${i}-vertical > ${i}-item `]:{paddingInlineStart:e.paddingXXS,[`> ${i}-item-container > ${i}-item-tail`]:{top:e.marginXXS,insetInlineStart:e.calc(e.iconSize).div(2).sub(e.lineWidth).add(e.paddingXXS).equal()}},[`&, &${i}-small`]:{[`&${i}-horizontal ${i}-item:first-child`]:{paddingBottom:e.paddingXXS,paddingInlineStart:e.paddingXXS}},[`&${i}-small${i}-vertical > ${i}-item > ${i}-item-container > ${i}-item-tail`]:{insetInlineStart:e.calc(e.iconSizeSM).div(2).sub(e.lineWidth).add(e.paddingXXS).equal()},[`&${i}-label-vertical`]:{[`${i}-item ${i}-item-tail`]:{top:e.calc(e.margin).sub(e.calc(e.lineWidth).mul(2).equal()).equal()}},[`${i}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetBlockStart:e.calc(e.calc(e.iconSize).sub(e.stepsProgressSize).sub(e.calc(e.lineWidth).mul(2).equal()).equal()).div(2).equal(),insetInlineStart:e.calc(e.calc(e.iconSize).sub(e.stepsProgressSize).sub(e.calc(e.lineWidth).mul(2).equal()).equal()).div(2).equal()}}}}},n=e=>{const{componentCls:t,descriptionMaxWidth:i,lineHeight:l,dotCurrentSize:r,dotSize:c,motionDurationSlow:f}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:l},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${(0,m.bf)(e.calc(i).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${(0,m.bf)(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:c,height:c,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(c).div(2).equal(),paddingInlineEnd:0,lineHeight:`${(0,m.bf)(c)}`,background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${f}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(c).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:i},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(c).sub(r).div(2).equal(),width:r,height:r,lineHeight:`${(0,m.bf)(r)}`,background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(r).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(c).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(r).div(2).equal(),top:0,insetInlineStart:e.calc(c).sub(r).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(c).div(2).equal(),insetInlineStart:0,margin:0,padding:`${(0,m.bf)(e.calc(c).add(e.paddingXS).equal())} 0 ${(0,m.bf)(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(c).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(c).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(r).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(c).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},d=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},s=e=>{const{componentCls:t,iconSizeSM:i,fontSizeSM:l,fontSize:r,colorTextDescription:c}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:i,height:i,marginTop:0,marginBottom:0,marginInline:`0 ${(0,m.bf)(e.marginXS)}`,fontSize:l,lineHeight:`${(0,m.bf)(i)}`,textAlign:"center",borderRadius:i},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:r,lineHeight:`${(0,m.bf)(i)}`,"&::after":{top:e.calc(i).div(2).equal()}},[`${t}-item-description`]:{color:c,fontSize:r},[`${t}-item-tail`]:{top:e.calc(i).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:i,lineHeight:`${(0,m.bf)(i)}`,transform:"none"}}}}},$=e=>{const{componentCls:t,iconSizeSM:i,iconSize:l}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:`${(0,m.bf)(l)}`},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(l).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${(0,m.bf)(e.calc(e.marginXXS).mul(1.5).add(l).equal())} 0 ${(0,m.bf)(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(i).div(2).sub(e.lineWidth).equal(),padding:`${(0,m.bf)(e.calc(e.marginXXS).mul(1.5).add(i).equal())} 0 ${(0,m.bf)(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:`${(0,m.bf)(i)}`}}}}},y;(function(e){e.wait="wait",e.process="process",e.finish="finish",e.error="error"})(y||(y={}));const N=(e,t)=>{const i=`${t.componentCls}-item`,l=`${e}IconColor`,r=`${e}TitleColor`,c=`${e}DescriptionColor`,f=`${e}TailColor`,w=`${e}IconBgColor`,b=`${e}IconBorderColor`,x=`${e}DotColor`;return{[`${i}-${e} ${i}-icon`]:{backgroundColor:t[w],borderColor:t[b],[`> ${t.componentCls}-icon`]:{color:t[l],[`${t.componentCls}-icon-dot`]:{background:t[x]}}},[`${i}-${e}${i}-custom ${i}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[x]}},[`${i}-${e} > ${i}-container > ${i}-content > ${i}-title`]:{color:t[r],"&::after":{backgroundColor:t[f]}},[`${i}-${e} > ${i}-container > ${i}-content > ${i}-description`]:{color:t[c]},[`${i}-${e} > ${i}-container > ${i}-tail::after`]:{backgroundColor:t[f]}}},I=e=>{const{componentCls:t,motionDurationSlow:i}=e,l=`${t}-item`,r=`${l}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[l]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${l}-container > ${l}-tail, > ${l}-container > ${l}-content > ${l}-title::after`]:{display:"none"}}},[`${l}-container`]:{outline:"none",["&:focus-visible"]:{[r]:Object.assign({},(0,Q.oN)(e))}},[`${r}, ${l}-content`]:{display:"inline-block",verticalAlign:"top"},[r]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:`${(0,m.bf)(e.iconSize)}`,textAlign:"center",borderRadius:e.iconSize,border:`${(0,m.bf)(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${i}, border-color ${i}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${l}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).sub(e.paddingXXS).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${i}`,content:'""'}},[`${l}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:`${(0,m.bf)(e.titleLineHeight)}`,"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${l}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${l}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},N(y.wait,e)),N(y.process,e)),{[`${l}-process > ${l}-container > ${l}-title`]:{fontWeight:e.fontWeightStrong}}),N(y.finish,e)),N(y.error,e)),{[`${l}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${l}-disabled`]:{cursor:"not-allowed"}})},C=e=>{const{componentCls:t,motionDurationSlow:i}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${i}`}},"&:hover":{[`${t}-item`]:{["&-title, &-subtitle, &-description"]:{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},T=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Q.Wf)(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),I(e)),C(e)),ve(e)),s(e)),$(e)),De(e)),n(e)),We(e)),d(e)),ye(e)),Me(e))}},A=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive});var G=(0,Ze.I$)("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:i,colorTextLightSolid:l,colorText:r,colorPrimary:c,colorTextDescription:f,colorTextQuaternary:w,colorError:b,colorBorderSecondary:x,colorSplit:O}=e,Z=(0,He.TS)(e,{processIconColor:l,processTitleColor:r,processDescriptionColor:r,processIconBgColor:c,processIconBorderColor:c,processDotColor:c,processTailColor:O,waitTitleColor:f,waitDescriptionColor:f,waitTailColor:O,waitDotColor:t,finishIconColor:c,finishTitleColor:r,finishDescriptionColor:f,finishTailColor:c,finishDotColor:c,errorIconColor:l,errorTitleColor:b,errorDescriptionColor:b,errorTailColor:O,errorIconBgColor:b,errorIconBorderColor:b,errorDotColor:b,stepsNavActiveColor:c,stepsProgressSize:i,inlineDotSize:6,inlineTitleColor:w,inlineTailColor:x});return[T(Z)]},A),J=g(13763);function re(e){return e.filter(t=>t)}function _(e,t){if(e)return e;const i=(0,J.Z)(t).map(l=>{if(u.isValidElement(l)){const{props:r}=l;return Object.assign({},r)}return null});return re(i)}var k=function(e,t){var i={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(i[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,l=Object.getOwnPropertySymbols(e);r<l.length;r++)t.indexOf(l[r])<0&&Object.prototype.propertyIsEnumerable.call(e,l[r])&&(i[l[r]]=e[l[r]]);return i};const F=e=>{const{percent:t,size:i,className:l,rootClassName:r,direction:c,items:f,responsive:w=!0,current:b=0,children:x,style:O}=e,Z=k(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:X}=(0,Pe.Z)(w),{getPrefixCls:K,direction:R,steps:j}=u.useContext(je.E_),ee=u.useMemo(()=>w&&X?"vertical":c,[X,c]),te=(0,Be.Z)(i),h=K("steps",e.prefixCls),[ie,D]=G(h),B=e.type==="inline",ae=K("",e.iconPrefix),ge=_(f,x),V=B?void 0:t,q=Object.assign(Object.assign({},j==null?void 0:j.style),O),pe=Y()(j==null?void 0:j.className,{[`${h}-rtl`]:R==="rtl",[`${h}-with-progress`]:V!==void 0},l,r,D),ne={finish:u.createElement(p.Z,{className:`${h}-finish-icon`}),error:u.createElement(xe.Z,{className:`${h}-error-icon`})},ce=L=>{let{node:P,status:H}=L;if(H==="process"&&V!==void 0){const v=te==="small"?32:40;return u.createElement("div",{className:`${h}-progress-icon`},u.createElement(oe.Z,{type:"circle",percent:V,size:v,strokeWidth:4,format:()=>null}),P)}return P},se=(L,P)=>L.description?u.createElement(Le.Z,{title:L.description},P):P;return ie(u.createElement(Te,Object.assign({icons:ne},Z,{style:q,current:b,size:te,items:ge,itemRender:B?se:void 0,stepIcon:ce,direction:ee,prefixCls:h,iconPrefix:ae,className:pe})))};F.Step=Te.Step;var M=F}}]);