System.register(["./p-f451342c.system.js","./p-009079f8.system.js","./p-8ea932ff.system.js","./p-d95331d9.system.js","./p-6722281a.system.js","./p-4d03a77e.system.js","./p-019c8a9e.system.js"],(function(t){"use strict";var i,s,e,n,o,h,a;return{setters:[function(t){i=t.r;s=t.h;e=t.H},function(t){n=t.s},function(t){o=t.B},function(t){h=t.B},function(t){a=t.b},function(){},function(){}],execute:function(){var r=t("bal_navigation_popover",function(){function t(t){var s=this;i(this,t);this.toggle=function(t){n(t);s.clearTimeouts();if(!s.isActive){h.disableSmoothScrolling();s.scrollToTopTimer=setTimeout((function(){if(a.hasWindow){window.scrollTo(0,0)}}),0)}s.setActiveTimer=setTimeout((function(){h.enableSmoothScrolling();s.isActive=!s.isActive}),100)};this.isActive=false;this.label="";this.inverted=false;this.icon=undefined;this.backdrop=false;this.size="";this.inactiveColor="light";this.activeColor="primary";this.heading=undefined;this.closable=true;this.contentRadius="normal";this.position="bottom-start";this.contentWidth=0;this.contentMinWidth=0;this.offsetY=0;this.square=false;this.contentNoShadow=false;this.contentExpanded=false;this.arrow=false;this.mobileTop=false}t.prototype.clearTimeouts=function(){if(this.scrollToTopTimer){clearTimeout(this.scrollToTopTimer)}if(this.setActiveTimer){clearTimeout(this.setActiveTimer)}};t.prototype.render=function(){var t=this;var i=o.block("nav").element("popover");return s(e,{class:Object.assign(Object.assign({},i.class()),{control:true})},s("bal-popover",{active:this.isActive,onBalChange:function(i){return t.isActive=i.detail},arrow:this.arrow,backdrop:this.backdrop,position:this.position,offsetY:this.offsetY,"mobile-top":this.mobileTop},s("bal-button",{"bal-popover-trigger":true,icon:this.icon,size:this.size,inverted:this.inverted,color:this.isActive?this.activeColor:this.inactiveColor,square:this.square,onClick:this.toggle,"aria-haspopup":"true",class:"bal-navigation-popover__button bal-navigation-popover__button-".concat(this.isActive?this.activeColor:this.inactiveColor)},this.label),s("bal-popover-content",{radius:this.contentRadius,"content-width":this.contentWidth,"content-min-width":this.contentMinWidth,"no-shadow":this.contentNoShadow,expanded:this.contentExpanded,"mobile-top":this.mobileTop},(this.closable||this.heading)&&s("div",{class:Object.assign({},i.element("head").class())},this.heading&&s("bal-heading",{space:"none",level:"h4"},this.heading),this.closable&&s("bal-close",{onClick:function(){return t.isActive=!t.isActive}})),s("slot",null))))};return t}())}}}));