import{r as e,c as t,h as n,H as s,g as a}from"./p-a6030c6e.js";const i=':host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;font-family:"Nunito Sans", "Carbona", "Tahoma", "Helvetica", "Arial", sans-serif;font-size:0.875rem;font-weight:700}:host .banner__holder{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%;padding:8px 16px;min-height:40px;color:var(--color-content-default, #454545)}:host .banner__holder--context--inside{border-radius:8px}:host .banner__holder--align--left{-ms-flex-pack:start;justify-content:flex-start}:host .banner__holder--align--right{-ms-flex-pack:start;justify-content:flex-start}:host .banner__holder--warning{background-color:var(--color-warning, #fde99b)}:host .banner__holder--system{background-color:var(--color-system, #B2DFFD)}:host .banner__holder--info{background-color:var(--color-info, #80e3eb)}:host .banner__holder--error{background-color:var(--color-error, #f99f9f)}:host .banner__content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:100%}:host .banner__content--left{-ms-flex-pack:start;justify-content:flex-start}:host .banner__content--center{-ms-flex-pack:start;justify-content:flex-start}:host .banner__content--right{-ms-flex-pack:start;justify-content:flex-start}:host .banner__content .slot{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;margin-left:8px;width:100%;color:var(--color-content-default, #454545)}:host .banner__action{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}:host .banner__action .close{cursor:pointer;display:-ms-flexbox;display:flex;margin-left:8px}.space_left{display:-ms-flexbox;display:flex}:host(.banner--hide){display:none}';const o=i;const r=class{constructor(n){e(this,n);this.bdsBannerClose=t(this,"bdsBannerClose",7);this._buttonClickHandler=()=>{this.bdsBannerClose.emit();this.visible=false};this.visible=true;this.bannerAlign="center";this.buttonClose="false";this.context="outside";this.variant="system";this.dtButtonClose=null}async toggle(){this.visible=!this.visible}render(){return n(s,{key:"2dbe4b00e57a79fd139e356e3e88e2a37fff3234",class:{banner:true,"banner--hide":!this.visible}},n("div",{key:"afe28be7ca45901d351b2fd46b426db4cebb2490",class:{banner__holder:true,[`banner__holder--align--${this.bannerAlign}`]:true,[`banner__holder--${this.variant}`]:true,[`banner__holder--context--${this.context}`]:true}},n("div",{key:"1507db82191ae229d3d224a366ae24c23facd8cf",class:{banner__content:true}},this.variant==="warning"&&n("bds-icon",{key:"f6020a07ba1ca4eabdc41135c6b53d1f45eff513",class:"icon_left",theme:"outline",size:"medium",name:"warning"}),this.variant==="system"&&n("bds-icon",{key:"716dc8cb61f42b783bfe50751ea95fb693cf6257",class:"icon_left",theme:"outline",size:"medium",name:"info"}),this.variant==="info"&&n("bds-icon",{key:"265bf326db9dc58234499db8134215453800da8b",class:"icon_left",theme:"outline",size:"medium",name:"message-ballon"}),this.variant==="error"&&n("bds-icon",{key:"0009accdbe97d0d50012eb4f43d86b6581fdbc87",class:"icon_left",theme:"outline",size:"medium",name:"error"}),n("div",{key:"ccfe1051cd1d4af8953aabbf8a56d30da88b713e",class:"slot"},n("slot",{key:"b801f418444c8ef840000434a022d203113e026b"}))),n("div",{key:"83943fba7135ee11b43c1a7016547ccb09093884",class:{banner__action:true}},this.buttonClose==="true"&&n("div",{key:"1365dce940be8174589a1efc27a4d2afcb6b637e",class:"close",onClick:()=>this._buttonClickHandler()},n("bds-button-icon",{key:"2b2dc4078729795101c692b140b11f0c73a3af42",dataTest:this.dtButtonClose,icon:"close",size:"short",variant:"secondary"})))))}get el(){return a(this)}};r.style=o;export{r as bds_banner};
//# sourceMappingURL=p-b88dcac7.entry.js.map