import{__awaiter,__generator}from"tslib";import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-4d3658f6.js";import{a as inheritTrackingAttributes}from"./attributes-f95bca13.js";var StepItem=function(){function t(t){registerInstance(this,t);this.balNavigate=createEvent(this,"balNavigate",7);this.inheritAttributes={};this.isActive=false;this.active=false;this.value="";this.label="";this.href="";this.target="_self";this.disabled=false;this.done=false;this.hidden=false;this.invisible=false;this.failed=false;this.prevent=false}t.prototype.hiddenWatcher=function(t){this.invisible=t};t.prototype.connectedCallback=function(){if(this.hidden){this.invisible=this.hidden}};t.prototype.componentWillLoad=function(){this.inheritAttributes=inheritTrackingAttributes(this.el)};t.prototype.getOptions=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.options]}))}))};t.prototype.setActive=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.isActive=t;return[2]}))}))};Object.defineProperty(t.prototype,"options",{get:function(){return{value:this.value,label:this.label,href:this.href,target:this.target,active:this.active,disabled:this.disabled,done:this.done,invisible:this.invisible,failed:this.failed,passed:false,prevent:this.prevent,navigate:this.balNavigate,trackingData:this.inheritAttributes}},enumerable:false,configurable:true});t.prototype.render=function(){return h(Host,{role:"tabpanel",class:{"bal-step-item":true,"bal-step-item--active":this.isActive}},h("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{hidden:["hiddenWatcher"]}},enumerable:false,configurable:true});return t}();export{StepItem as bal_step_item};