import{r as registerInstance,h,H as Host}from"./index-55faf181.js";var dvnAlertCss='dvn-alert dvn-card{position:relative;padding-left:var(--corner-radius)}dvn-alert dvn-card:before{position:absolute;left:0;height:100%;width:var(--corner-radius);background:var(--card-text-color);content:" "}';var tintsToIcons={neutral:"uil-megaphone",primary:"uil-info-circle",secondary:"uil-check-circle",warning:"uil-exclamation-triangle",danger:"uil-exclamation-octagon"};var DvnAlert=function(){function e(e){registerInstance(this,e);this.tint="primary"}e.prototype.render=function(){var e=this,r=e.message,t=e.tint;var n=tintsToIcons[t];return h(Host,{class:"d-block"},h("dvn-card",{elevation:0,leaned:true,tint:t,reverseTint:true,extraClass:"mb-3"},h("div",{class:"d-flex align-items-center"},h("dvn-icon",{iconName:n,class:"pr-2",size:32}),r)))};return e}();DvnAlert.style=dvnAlertCss;export{DvnAlert as dvn_alert};