(function(e,d){typeof exports=="object"&&typeof module<"u"?module.exports=d(require("vue")):typeof define=="function"&&define.amd?define(["vue"],d):(e=typeof globalThis<"u"?globalThis:e||self,e["vue3-wizard"]=d(e.Vue))})(this,function(e){"use strict";const d=(t,a)=>{const l=t.__vccOpts||t;for(const[i,n]of a)l[i]=n;return l},f={props:{steps:{type:Array,default:()=>[]},step:{type:Number,default:1},orientation:{type:String,default:"vertical",validator:t=>["vertical","horizontal"].includes(t)}},setup(t){const a=e.ref(0),l=t.steps.map((n,o)=>({value:++o,label:n})),i=()=>{var s,c;const n=document.getElementById(`${t.step+1}-step`);console.log("document.getElementById('"+(t.step+1)+"-step')");let o=0;t.orientation==="horizontal"&&(n?o=n.offsetLeft+n.offsetWidth/2:o=(s=document.getElementById("vue-wizard-wrapper"))==null?void 0:s.offsetWidth),t.orientation==="vertical"&&(n?o=n.offsetTop+n.offsetHeight/2:o=(c=document.getElementById("vue-wizard-wrapper"))==null?void 0:c.offsetHeight),console.log(o),a.value=o};return e.watch(t,i),e.onMounted(()=>{i()}),{filledLineSize:a,mappedSteps:l,props:t}}},r=t=>(e.pushScopeId("data-v-f375eb2e"),t=t(),e.popScopeId(),t),p=r(()=>e.createElementVNode("div",{class:"secondary line"},null,-1)),m=["id"],u=r(()=>e.createElementVNode("div",{class:"point"},null,-1)),h={class:"label"};function _(t,a,l,i,n,o){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["vue-wizard-wrapper",{horizontal:l.orientation==="horizontal"}]),id:"vue-wizard-wrapper"},[e.createElementVNode("div",{class:"primary line",style:e.normalizeStyle({[l.orientation==="vertical"?"height":"width"]:`${i.filledLineSize}px`})},null,4),p,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.mappedSteps,s=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["step",{filled:i.props.step>=s.value}]),id:`${s.value}-step`,key:s.value},[u,e.createElementVNode("label",h,e.toDisplayString(s.label),1)],10,m))),128))],2)}const y=d(f,[["render",_],["__scopeId","data-v-f375eb2e"]]);return{install:(t,a)=>{t.component("vue-wizard",y)}}});