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