"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),O=require("@ant-design/icons-vue/CheckOutlined"),V=require("@ant-design/icons-vue/CloseOutlined"),k=require("../_util/classNames.js"),D=require("../_util/hooks/useBreakpoint.js"),I=require("../_util/omit.js"),j=require("../_util/props-util/initDefaultProps.js"),n=require("../_util/type.js"),z=require("../config-provider/hooks/useConfigInject.js"),M=require("../progress/index.js"),R=require("../theme/internal.js"),W=require("../tooltip/index.js"),v=require("../vc-steps/Step.js"),A=require("../vc-steps/Steps.js"),w=require("./style/index.js"),g=()=>({prefixCls:String,iconPrefix:String,current:Number,initial:Number,percent:Number,responsive:n.booleanType(),items:n.arrayType(),labelPlacement:n.stringType(),status:n.stringType(),size:n.stringType(),direction:n.stringType(),progressDot:n.someType([Boolean,Function]),type:n.stringType(),onChange:n.functionType(),"onUpdate:current":n.functionType()}),a=t.defineComponent({compatConfig:{MODE:3},name:"ASteps",inheritAttrs:!1,props:j.default(g(),{current:0,responsive:!0,labelPlacement:"horizontal"}),slots:Object,setup(e,{attrs:d,slots:h,emit:p}){const{prefixCls:r,direction:y,configProvider:P}=z.default("steps",e),[q,C]=w.default(r),[,f]=R.useToken(),S=D.default(),x=t.computed(()=>e.responsive&&S.value.xs?"vertical":e.direction),T=t.computed(()=>P.getPrefixCls("",e.iconPrefix)),N=s=>{p("update:current",s),p("change",s)},c=t.computed(()=>e.type==="inline"),m=t.computed(()=>c.value?void 0:e.percent),b=({node:s,status:u})=>{if(u==="process"&&e.percent!==void 0){const i=e.size==="small"?f.value.controlHeight:f.value.controlHeightLG;return t.createVNode("div",{class:`${r.value}-progress-icon`},[t.createVNode(M.default,{type:"circle",percent:m.value,size:i,strokeWidth:4,format:()=>null},null),s])}return s},$=t.computed(()=>({finish:t.createVNode(O,{class:`${r.value}-finish-icon`},null),error:t.createVNode(V,{class:`${r.value}-error-icon`},null)}));return()=>{const s=k.default({[`${r.value}-rtl`]:y.value==="rtl",[`${r.value}-with-progress`]:m.value!==void 0},d.class,C.value),u=(i,l)=>i.description?t.createVNode(W.default,{title:i.description},{default:()=>[l]}):l;return q(t.createVNode(A.default,{icons:$.value,...d,...I.default(e,["percent","responsive"]),items:e.items,direction:x.value,prefixCls:r.value,iconPrefix:T.value,class:s,onChange:N,isInline:c.value,itemRender:c.value?u:void 0},{stepIcon:b,...h}))}}}),o=t.defineComponent({compatConfig:{MODE:3},...v.default,name:"AStep",props:v.VcStepProps()}),B=Object.assign(a,{Step:o,install:e=>(e.component(a.name,a),e.component(o.name,o),e)});exports.Step=o;exports.default=B;exports.stepsProps=g;
