import{r as t,c as s,h as i,H as l,g as e}from"./p-43e8bc5e.js";import{a}from"./p-e4c2dcfc.js";import{r as o}from"./p-13ab58cb.js";const h=class{constructor(i){t(this,i),this.balClick=s(this,"balClick",7),this.inheritAttributes={},this.label="",this.value="block-value-"+r++,this.color="white",this.link=void 0,this.linkLabel=void 0,this.target="_self"}componentWillLoad(){this.inheritAttributes=a(this.el)}async getLevelInfo(){const t=await o(this.el,"bal-navigation-level-block-item");return{type:"block",value:this.value,label:this.label,link:this.link,target:this.target,linkLabel:this.linkLabel,color:this.color,subLevels:t,trackingData:this.inheritAttributes,onClick:t=>this.balClick.emit(t)}}render(){return i(l,null,i("slot",null))}get el(){return e(this)}};let r=0;export{h as bal_navigation_level_block}