System.register(["./index-83dd9303.system.js"],(function(t){"use strict";var e,i,s,n,a;return{setters:[function(t){e=t.r;i=t.a;s=t.h;n=t.e;a=t.g}],execute:function(){var o=":host{display:-ms-flexbox;display:flex;position:relative}:host:focus-visible{outline:none}.card{display:-ms-flexbox;display:flex;width:100%}.card_hover:hover{-webkit-transform:scale(1.02);transform:scale(1.02);-webkit-transition:all 0.3s;transition:all 0.3s;cursor:pointer}.focus:focus-visible{display:-ms-flexbox;display:flex;position:absolute;border:2px solid var(--color-focus, #c226fb);border-radius:4px;width:100%;height:100%;top:-4px;left:-4px;padding-right:4px;padding-bottom:4px;outline:none}";var f=t("bds_card",function(){function t(t){e(this,t);this.bdsClick=i(this,"bdsClick",7);this.height=null;this.width="fit-content";this.clickable=false;this.dataTest=null;this.isHovered=false;this.isPressed=false;this.elevation="primary"}t.prototype.componentDidLoad=function(){var t=this;this.cardElement=this.element.shadowRoot.querySelector(".card");if(this.cardElement&&this.clickable===true){this.cardElement.addEventListener("mouseenter",(function(){t.isHovered=true}));this.cardElement.addEventListener("mouseleave",(function(){t.isHovered=false}));this.cardElement.addEventListener("mousedown",(function(){t.isPressed=true;t.bdsClick.emit()}));document.addEventListener("mouseup",(function(){t.isPressed=false}));this.cardElement.addEventListener("keydown",(function(e){if(e.key==="Enter"){t.isPressed=true;t.bdsClick.emit()}}));this.cardElement.addEventListener("keyup",(function(e){if(e.key==="Enter"){t.isPressed=false}}))}};t.prototype.componentDidUpdate=function(){if(this.isPressed){this.elevation="static"}else if(this.isHovered){this.elevation="secondary"}};t.prototype.handleKeyDown=function(t){if(t.key=="Enter"){this.isPressed=true;this.bdsClick.emit(t)}};t.prototype.render=function(){var t={width:this.width};return s(n,{key:"c0bfc28467468500871a62a1af9f37a0ab4f8b07",style:t},s("bds-paper",{key:"b0bc889271ffac10d06e998aec258206faf9ded7",elevation:this.elevation,class:{card:true,card_hover:this.clickable},height:this.height,width:this.width,"data-test":this.dataTest},s("div",{key:"31c9dcebb325c1ee1fd305ef071f61973cea33e0",tabindex:"0",class:"focus",onKeyDown:this.handleKeyDown.bind(this)}),s("bds-grid",{key:"3949a6141f8a4b1ac4638e608d31f758e4e2ecfc",xxs:"12",direction:"column",gap:"2",padding:"2"},s("slot",{key:"b7b8df56fc879b88efa49587804b721b59aca24a"}))))};Object.defineProperty(t.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());f.style=o}}}));
//# sourceMappingURL=bds-card.system.entry.js.map