import{__awaiter,__generator}from"tslib";import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-4d3658f6.js";import{r as readSubLevels}from"./level.utils-e25dee61.js";import{a as inheritTrackingAttributes}from"./attributes-f95bca13.js";var NavigationLevelMeta=function(){function t(t){registerInstance(this,t);this.balClick=createEvent(this,"balClick",7);this.inheritAttributes={};this.label="";this.value="meta-value-".concat(navigationLevelMetaIds++);this.link=undefined;this.linkLabel=undefined;this.isTabLink=undefined}t.prototype.componentWillLoad=function(){this.inheritAttributes=inheritTrackingAttributes(this.el)};t.prototype.getLevelInfo=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e=this;return __generator(this,(function(i){switch(i.label){case 0:return[4,readSubLevels(this.el,"bal-navigation-level-main")];case 1:t=i.sent();return[2,{type:"meta",value:this.value,label:this.label,link:this.link,linkLabel:this.linkLabel,isTabLink:this.isTabLink,subLevels:t,trackingData:this.inheritAttributes,onClick:function(t){return e.balClick.emit(t)}}]}}))}))};t.prototype.render=function(){return h(Host,null,h("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();var navigationLevelMetaIds=0;export{NavigationLevelMeta as bal_navigation_level_meta};