UNPKG

@govbr-ds/core

Version:

Padrão Digital de Governo

2 lines 596 B
!function e(o,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("core",[],t):"object"==typeof exports?exports.core=t():o.core=t()}(self,(()=>(()=>{var e=()=>{},o,t=()=>{};(()=>{class e{constructor(e,o){this.name=e,this.component=o,this._setBehavior()}_setBehavior(){for(const e of this.component.querySelectorAll(".br-message .close"))e.addEventListener("click",(()=>{this._dismiss(this.component)}))}_dismiss(e){e.parentNode.removeChild(e)}}var o=null})(),e();var s={};return t(),s})())); //# sourceMappingURL=message.min.js.map