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