(function(){"use strict";try{if(typeof document!="undefined"){var t=document.createElement("style");t.appendChild(document.createTextNode("body[data-v-bd8cdabb]{width:100%;height:100vh;display:flex;align-items:center;justify-content:center;font-family:sans-serif}.tx-default-2[data-v-bd8cdabb]{color:var(--primaryColor1);font-weight:600}.wrapper-steppy[data-v-bd8cdabb]{padding:1rem}.steppy[data-v-bd8cdabb]{display:flex;align-items:center;justify-content:space-between;width:auto;position:relative;z-index:0;margin-bottom:5px}.steppy-progress[data-v-bd8cdabb]{position:absolute;background-color:#c5c5c5;height:2px;z-index:-1;left:0;right:0;margin:0 auto}.steppy-progress-bar[data-v-bd8cdabb]{position:absolute;left:0;height:100%;width:0;background-color:var(--primaryColor1);transition:all .5s ease}.steppy-item[data-v-bd8cdabb]{display:flex;flex-direction:column;align-items:center;color:#c5c5c5;transition:all .5s ease}.steppy-item-counter[data-v-bd8cdabb]{height:68px;width:68px;display:grid;place-items:center;background-color:var(--primaryColor2);border-radius:100%;border:2px solid #c5c5c5;position:relative}.steppy-item-counter .icon-success[data-v-bd8cdabb]{position:absolute;opacity:0;transform:scale(0);width:24px;transition:all .5s ease}.steppy-item-counter .number[data-v-bd8cdabb]{font-size:22px;transition:all .5s ease}.steppy-item-title[data-v-bd8cdabb]{position:absolute;text-align:center;font-size:14px;bottom:-43px}.steppy-item.success .steppy-item-counter[data-v-bd8cdabb]{border-color:var(--primaryColor1);font-weight:600}.steppy-item.success .steppy-item-counter .icon-success[data-v-bd8cdabb]{opacity:1;transform:scale(1)}.steppy-item.success .steppy-item-counter .number[data-v-bd8cdabb]{opacity:0;transform:scale(0)}.steppy-item.success .steppy-item-title[data-v-bd8cdabb]{color:var(--primaryColor1)}.steppy-item.current .steppy-item-counter[data-v-bd8cdabb]{border-color:var(--primaryColor1);background-color:var(--primaryColor1);color:#fff;font-weight:600}.steppy-item.current .steppy-item-title[data-v-bd8cdabb]{color:#818181}.steppy-pane[data-v-bd8cdabb]{color:#333;text-align:center;background-color:#fff;border-radius:15px;padding:25px;margin:60px 0 20px}.controls[data-v-bd8cdabb]{display:flex}.btn[data-v-bd8cdabb]{display:flex;justify-content:center;align-items:center;padding:6px 16px;text-align:center;vertical-align:middle;cursor:pointer;line-height:1.5;transition:all .15s;border-radius:4px;width:fit-content;font-size:.75rem;color:#333;background-color:#f0f0f0;border:1px solid #f0f0f0}.btn[data-v-bd8cdabb]:disabled{opacity:.5;pointer-events:none}.btn--default-2[data-v-bd8cdabb]{background-color:var(--primaryColor1);border-color:var(--primaryColor1);color:#fff;margin-left:auto}.loader[data-v-bd8cdabb]{width:20px;height:20px;border:2px solid #fff;border-bottom-color:transparent;border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation-bd8cdabb 1s linear infinite}.steppy-item-counter[data-v-bd8cdabb]{height:40px;width:40px;border:none}.steppy-item-counter .number[data-v-bd8cdabb]{font-size:1rem}.controls[data-v-bd8cdabb]{display:flex;flex-direction:column-reverse;gap:2rem}.controls .btn[data-v-bd8cdabb]{align-self:center}.btn--default-2[data-v-bd8cdabb]{margin:auto;text-align:center;background:#f1c446;border-radius:4px;border:none;height:40px;width:40%;font-size:1rem;color:#000407;font-weight:700}@media (max-width: 600px){.steppy-item-title[data-v-bd8cdabb]{display:none}.steppy-pane[data-v-bd8cdabb]{margin:10px 0}}@keyframes rotation-bd8cdabb{0%{transform:rotate(0)}to{transform:rotate(360deg)}}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})(); (function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n["vue3-multi-stepper"]={},n.Vue))})(this,function(n,e){"use strict";const d=[e.createElementVNode("path",{d:"M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z"},null,-1)],y={__name:"CheckMark",props:{color:{type:String,default:"black"}},setup(s){return(c,t)=>(e.openBlock(),e.createElementBlock("svg",{viewBox:"0 0 24 24",style:e.normalizeStyle({fill:s.color})},d,4))}},D="",m=(s,c)=>{const t=s.__vccOpts||s;for(const[a,i]of c)t[a]=i;return t},k={class:"steppy"},u={class:"steppy-progress"},f={class:"steppy-item-counter"},_=["src"],S={class:"number"},b={class:"steppy-item-title"},B={key:0,class:"steppy-pane"},g={class:"controls"},h=["disabled"],V=["disabled"],E={key:0,class:"loader"},C={key:1},N={__name:"Vue3MultiStepper",props:{step:{type:Number,default:1},tabs:{type:Array,default:e.reactive([{title:"Company",iconSuccess:null,isValid:!0},{title:"Company Additional Info",iconSuccess:null,isValid:!0},{title:"Employees",iconSuccess:null,isValid:!0},{title:"Your Details",iconSuccess:null,isValid:!0},{title:"Verification",iconSuccess:null,isValid:!0}])},finalize:{type:Function,default:function(){return{}}},backText:{type:String,default:"Back"},nextText:{type:String,default:"Next"},doneText:{type:String,default:"Done"},loading:{type:Boolean,default:!1},primaryColor1:{type:String,default:"orange"},primaryColor2:{type:String,default:"#fff"},validateStep:{type:Function,default:()=>!0}},emits:["update:step"],setup(s,{emit:c}){const t=s,a=e.computed(()=>({"--primaryColor1":t.primaryColor1,"--primaryColor2":t.primaryColor2})),i=()=>{const l=t.step;if(t.validateStep(l)){const o=l+1;c("update:step",o)}},M=()=>{const l=t.step-1;c("update:step",l)},T=e.computed(()=>100/(t.tabs.length-1)*(t.step-1)+"%");return(l,p)=>(e.openBlock(),e.createElementBlock("div",{class:"wrapper-steppy",style:e.normalizeStyle(e.unref(a))},[e.createElementVNode("div",k,[e.createElementVNode("div",u,[e.createElementVNode("div",{class:"steppy-progress-bar",style:e.normalizeStyle("width:"+e.unref(T))},null,4)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tabs,(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["steppy-item",{current:t.step===r+1,success:t.step>r+1}]),key:r},[e.createElementVNode("div",f,[o.iconSuccess?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon-success",src:o.iconSuccess,alt:"Check Mark"},null,8,_)):(e.openBlock(),e.createBlock(y,{key:1,class:"icon-success",color:s.primaryColor1,alt:"Check Mark"},null,8,["color"])),e.createElementVNode("span",S,e.toDisplayString(r+1),1)]),e.createElementVNode("span",b,e.toDisplayString(o.title),1)],2))),128))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tabs.length,o=>(e.openBlock(),e.createElementBlock("div",{class:"steppy-content",key:o},[t.step===o?(e.openBlock(),e.createElementBlock("div",B,[e.renderSlot(l.$slots,o,{},void 0,!0)])):e.createCommentVNode("",!0)]))),128)),e.createElementVNode("div",g,[t.step!==1?(e.openBlock(),e.createElementBlock("button",{key:0,class:"btn",onClick:M},e.toDisplayString(t.backText),1)):e.createCommentVNode("",!0),t.step!==t.tabs.length?(e.openBlock(),e.createElementBlock("button",{key:1,class:"btn btn--default-2",onClick:i,disabled:!t.tabs[t.step-1].isValid},e.toDisplayString(t.nextText),9,h)):(e.openBlock(),e.createElementBlock("button",{key:2,class:"btn btn--default-2",onClick:p[0]||(p[0]=(...o)=>s.finalize&&s.finalize(...o)),disabled:!t.tabs[t.step-1].isValid||s.loading},[s.loading?(e.openBlock(),e.createElementBlock("span",E)):(e.openBlock(),e.createElementBlock("span",C,e.toDisplayString(t.doneText),1))],8,V))])],4))}},x=m(N,[["__scopeId","data-v-bd8cdabb"]]);n.Vue3MultiStepper=x,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});