import{r as registerInstance,h,H as Host}from"./index-a0453e17.js";import{B as BEM}from"./bem-c44dad2a.js";import{b as balBreakpoints}from"./breakpoints.subject-2c93aba1.js";import{L as ListenToBreakpoints}from"./breakpoints.decorator-c84ce5e9.js";import"./helpers-008ae2b8.js";import"./browser-216e7b03.js";import"./icons.constant-f579c326.js";import"./device-837e85c7.js";import"./listener-8c6f024a.js";import"./tokens.esm-d8d9688d.js";var __decorate=undefined&&undefined.__decorate||function(t,e,i,s){var n=arguments.length,a=n<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,i):s,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(t,e,i,s);else for(var o=t.length-1;o>=0;o--)if(r=t[o])a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a;return n>3&&a&&Object.defineProperty(e,i,a),a};var NavigationMenuList=function(){function t(t){var e=this;registerInstance(this,t);this.setHeadingLevel=function(){if(balBreakpoints.isTouch){e.headingLevel="h5";return}e.headingLevel="h3"};this.color="white";this.headline=undefined;this.href=undefined;this.target="_self";this.tracking={};this.headingLevel=undefined}t.prototype.breakpointListener=function(t){this.setHeadingLevel()};t.prototype.connectedCallback=function(){this.setHeadingLevel()};t.prototype.render=function(){var t=BEM.block("nav").element("menu").element("list");return h(Host,{class:Object.assign(Object.assign({},t.class()),t.modifier("context-".concat(this.color)).class())},h("bal-card",{class:Object.assign({},t.element("card").class()),flat:true,color:this.color==="grey"||this.color==="yellow"||this.color==="red"||this.color==="purple"||this.color==="green"?this.color:""},h("bal-card-content",null,this.href?h("a",Object.assign({href:this.href,target:this.target},this.tracking),h("bal-heading",{class:Object.assign({},t.element("card").element("heading").class()),level:this.headingLevel,space:"none"},this.headline)):h("bal-heading",{class:Object.assign({},t.element("card").element("heading").class()),level:this.headingLevel,space:"none"},this.headline),h("slot",{name:"links"}))))};return t}();__decorate([ListenToBreakpoints()],NavigationMenuList.prototype,"breakpointListener",null);var NavigationMenuListItem=function(){function t(t){registerInstance(this,t);this.href=undefined;this.tracking={};this.target="_self"}t.prototype.render=function(){var t=BEM.block("nav").element("menu").element("list").element("item");return h(Host,{class:Object.assign({},t.class())},h("a",Object.assign({class:Object.assign({},t.element("link").class()),href:this.href,target:this.target},this.tracking),h("slot",null)))};return t}();export{NavigationMenuList as bal_navigation_menu_list,NavigationMenuListItem as bal_navigation_menu_list_item};