/*!
 * Built with Stencil
 * By PostNord.
 */
import{r as s,c as e,g as t,t as r,h as i}from"./p-CAEP792y.js";const a=class{constructor(t){s(this,t),this.progresschange=e(this,"progresschange")}get hostElement(){return t(this)}activeStep=0;progresschange;setActiveStepHandler({detail:s}){this.activeStep=s,this.progresschange.emit(this.activeStep)}componentWillLoad(){this.passPropsToChildren()}componentDidUpdate(){this.passPropsToChildren()}passPropsToChildren(){Array.from(this.hostElement.querySelectorAll(`${r("pn-progress-indicator-step")}`)).forEach(((s,e)=>{s.activeStep=this.activeStep,s.index=e}))}render(){return i("div",{key:"1108f70edf525c6e7e0e45d34a6d58e69c5b9ab2",class:"pn-progress-indicator"},i("slot",{key:"c4035cf9fadb46f4e573c0225bebb2f8f7187da6"}))}};a.style=".pn-progress-indicator{display:flex;padding:2.8em 1em 0}";export{a as pn_progress_indicator}