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