import{r as registerInstance,h,H as Host}from"./index-853c3f3f.js";import{B as BEM}from"./bem-1b28532d.js";import{b as balBreakpoints}from"./breakpoints.subject-5adbb795.js";import{L as ListenToBreakpoints}from"./breakpoints.decorator-2bef9bc7.js";import"./helpers-08b28736.js";import"./browser-9199b5e2.js";import"./icons.constant-35253412.js";import"./device-c28cde6d.js";import"./listener-ea90dc02.js";import"./tokens.esm-5a5348b3.js";var __decorate=undefined&&undefined.__decorate||function(e,t,n,i){var s=arguments.length,a=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(e,t,n,i);else for(var o=e.length-1;o>=0;o--)if(r=e[o])a=(s<3?r(a):s>3?r(t,n,a):r(t,n))||a;return s>3&&a&&Object.defineProperty(t,n,a),a};var NavigationMenuList=function(){function e(e){var t=this;registerInstance(this,e);this.setHeadingLevel=function(){if(balBreakpoints.isTouch){t.headingLevel="h5";return}t.headingLevel="h3"};this.color="white";this.headline=undefined;this.href=undefined;this.target="_self";this.tracking={};this.headingLevel=undefined}e.prototype.breakpointListener=function(e){this.setHeadingLevel()};e.prototype.connectedCallback=function(){this.setHeadingLevel()};e.prototype.render=function(){var e=BEM.block("nav").element("menu").element("list");return h(Host,{class:Object.assign(Object.assign({},e.class()),e.modifier("context-".concat(this.color)).class())},h("bal-card",{class:Object.assign({},e.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({},e.element("card").element("heading").class()),level:this.headingLevel,space:"none"},this.headline)):h("bal-heading",{class:Object.assign({},e.element("card").element("heading").class()),level:this.headingLevel,space:"none"},this.headline),h("slot",{name:"links"}))))};return e}();__decorate([ListenToBreakpoints()],NavigationMenuList.prototype,"breakpointListener",null);var NavigationMenuListItem=function(){function e(e){registerInstance(this,e);this.href=undefined;this.tracking={};this.target="_self"}e.prototype.render=function(){var e=BEM.block("nav").element("menu").element("list").element("item");return h(Host,{class:Object.assign({},e.class())},h("a",Object.assign({class:Object.assign({},e.element("link").class()),href:this.href,target:this.target},this.tracking),h("slot",null)))};return e}();export{NavigationMenuList as bal_navigation_menu_list,NavigationMenuListItem as bal_navigation_menu_list_item};