var __awaiter=this&&this.__awaiter||function(t,n,e,i){function r(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,u){function s(t){try{c(i.next(t))}catch(t){u(t)}}function a(t){try{c(i["throw"](t))}catch(t){u(t)}}function c(t){t.done?e(t.value):r(t.value).then(s,a)}c((i=i.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},i,r,u,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(n){return c([t,n])}}function c(a){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(e=0)),e)try{if(i=1,r&&(u=a[0]&2?r["return"]:a[0]?r["throw"]||((u=r["return"])&&u.call(r),0):r.next)&&!(u=u.call(r,a[1])).done)return u;if(r=0,u)a=[a[0]&2,u.value];switch(a[0]){case 0:case 1:u=a;break;case 4:e.label++;return{value:a[1],done:false};case 5:e.label++;r=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(u=e.trys,u=u.length>0&&u[u.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!u||a[1]>u[0]&&a[1]<u[3])){e.label=a[1];break}if(a[0]===6&&e.label<u[1]){e.label=u[1];u=a;break}if(u&&e.label<u[2]){e.label=u[2];e.ops.push(a);break}if(u[2])e.ops.pop();e.trys.pop();continue}a=n.call(t,e)}catch(t){a=[6,t];r=0}finally{i=u=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-432920d7.system.js","./p-6a7d2a93.system.js","./p-f5f6ecfe.system.js"],(function(t){"use strict";var n,e,i,r,u,s,a;return{setters:[function(t){n=t.r;e=t.c;i=t.h;r=t.H;u=t.g},function(t){s=t.r},function(t){a=t.a}],execute:function(){var c=t("bal_navigation_level_main",function(){function t(t){n(this,t);this.balClick=e(this,"balClick",7);this.inheritAttributes={};this.label="";this.value="main-value-".concat(o++);this.link=undefined;this.linkLabel=undefined;this.isTabLink=false;this.target="_self"}t.prototype.componentWillLoad=function(){this.inheritAttributes=a(this.el)};t.prototype.getLevelInfo=function(){return __awaiter(this,void 0,void 0,(function(){var t;var n=this;return __generator(this,(function(e){switch(e.label){case 0:return[4,s(this.el,"bal-navigation-level-block")];case 1:t=e.sent();return[2,{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:function(t){return n.balClick.emit(t)}}]}}))}))};t.prototype.render=function(){return i(r,null,i("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return u(this)},enumerable:false,configurable:true});return t}());var o=0}}}));