import{o as t,c as o,a as u,m as i,b as g,H as m,I as v,E as y,x as l,z as d}from"./vue.runtime.esm-bundler.308f2021.js";import{_}from"./_plugin-vue_export-helper.5bcc150c.js";import{g as h}from"./links.bbde6535.js";import{S as $}from"./Logo.bdfb3269.js";const z={},S={class:"aioseo-wizard-body"},C={class:"body-content"},W={key:0,class:"cta"},x={class:"body-footer"};function A(e,s){return t(),o("div",S,[u("div",C,[i(e.$slots,"default")]),e.$slots.cta?(t(),o("div",W,[i(e.$slots,"cta")])):g("",!0),u("div",x,[i(e.$slots,"footer")])])}const U=_(z,[["render",A]]);const w={},b={class:"aioseo-wizard-container"};function B(e,s){return t(),o("div",b,[i(e.$slots,"default")])}const j=_(w,[["render",B]]);const k={props:{steps:{type:Array,required:!0}},computed:{getSteps(){const e={spacer:!0};return[...this.steps].map((s,r)=>r<this.steps.length-1?[s,{...e}]:[s]).reduce((s,r)=>s.concat(r))}},methods:{getActiveClass(e,s){return e.spacer?!!this.getSteps[s+1].active:e.active}}},L={class:"aioseo-wizard-progress"};function H(e,s,r,p,f,a){return t(),o("div",L,[(t(!0),o(m,null,v(a.getSteps,(n,c)=>(t(),o("div",{key:c,class:y([{circle:!n.spacer},{spacer:n.spacer},{active:a.getActiveClass(n,c)}])},null,2))),128))])}const N=_(k,[["render",H]]);const P={setup(){return{setupWizardStore:h()}},components:{SvgAioseoLogo:$,WizardProgress:N},computed:{steps(){const e=[];for(let s=0;s<this.setupWizardStore.getTotalStageCount;s++)s<this.setupWizardStore.getCurrentStageCount?e.push({active:!0}):e.push({active:!1});return e}}},V={class:"aioseo-wizard-header"},E={class:"logo"};function q(e,s,r,p,f,a){const n=l("svg-aioseo-logo"),c=l("wizard-progress");return t(),o("div",V,[u("div",E,[d(n)]),d(c,{steps:a.steps},null,8,["steps"])])}const D=_(P,[["render",q]]);export{U as W,j as a,D as b};
