import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-2bf16536.js";var bannerLinkCss=':Host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;cursor:pointer;text-decoration:underline;white-space:nowrap;margin-left:16px;-ms-flex-order:2;order:2}.banner__link{position:relative}.banner__link::before{content:"";position:absolute;inset:-4px;border:2px solid transparent;border-radius:4px}.banner__link:focus-visible{outline:none}.banner__link:focus-visible::before{border-color:var(--color-focus, #c226fb)}';var BdsBannerLinkStyle0=bannerLinkCss;var BannerLink=function(){function n(n){var e=this;registerInstance(this,n);this.bdsBannerLink=createEvent(this,"bdsBannerLink",7);this._buttonClickHandler=function(){e.bdsBannerLink.emit(e.el);window.open(e.link)};this.link=undefined;this.dataTest=null}n.prototype.handleKeyDown=function(n){if(n.key=="Enter"){this.bdsBannerLink.emit(this.el);window.open(this.link)}};n.prototype.render=function(){var n=this;var e="a";return h(e,{key:"74ce2914f086449395c27c71ad0ba5ab09a47ef2",class:{banner__link:true},onClick:function(){return n._buttonClickHandler()},"data-test":this.dataTest,tabindex:"0",onKeyDown:this.handleKeyDown.bind(this)},h("slot",{key:"e3bb860d61e43d3516b2653031df9458f5fdba68"}))};Object.defineProperty(n.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return n}();BannerLink.style=BdsBannerLinkStyle0;export{BannerLink as bds_banner_link};
//# sourceMappingURL=bds-banner-link.entry.js.map