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AI,iBACJ,KAAK,gBAAkB,WAC3B,EACO,CACX,CAnC8B,GAoC9B,EAAwB,WAAa,CACjC,CAAE,KAAM,EAAK,UAAW,KAAM,CAAC,CACnB,SAAU,mBACV,SAAU,wbACV,OAAQ,CAAC,4xCACT,WAAY,CACR,EAAa,QAAQ,aAAc,CAC/B,EAAa,MAAM,UAAW,EAAa,MAAM,CAC7C,QAAS,EACT,QAAS,WAEb,EAAa,MAAM,YAAa,EAAa,MAAM,CAC/C,QAAS,EACT,QAAS,UAEb,EAAa,WAAW,uBAAwB,EAAa,QAAQ,kBACrE,EAAa,WAAW,uBAAwB,EAAa,QAAQ,sBAQ7F,EAAwB,eAAiB,WAAc,MAAO,CAC1D,CAAE,KAAM,GACT,EAEH,IAAI,EAAyB,WACzB,SAAS,IACT,CAUA,OANA,EAAsB,QAAU,WAC5B,MAAO,CACH,SAAU,EACV,UAAW,CAAC,GAEpB,EACO,CACX,CAb4B,GAc5B,EAAsB,WAAa,CAC/B,CAAE,KAAM,EAAK,SAAU,KAAM,CAAC,CAClB,QAAS,CACL,EAAO,aACP,EAAgB,cAChB,EAAW,yBAEf,aAAc,CACV,GAEJ,UAAW,CACP,GAEJ,QAAS,CACL,OAOpB,EAAsB,eAAiB,WAAc,MAAO,EAAI,EAEhE,EAAQ,sBAAwB,EAChC,EAAQ,sBAAwB,EAEhC,OAAO,eAAe,EAAS,aAAc,CAAE,OAAO,GAErD","file":"/npm/ng-flash-messages@0.3.0/ng-flash-messages.umd.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/ng-flash-messages@0.3.0/ng-flash-messages.umd.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","(function (global, factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/platform-browser'), require('@angular/platform-browser/animations'), require('@angular/animations')) :\n\ttypeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/common', '@angular/platform-browser', '@angular/platform-browser/animations', '@angular/animations'], factory) :\n\t(factory((global['ng-flash-messages'] = {}),global.core,global.common,global.platformBrowser,global.animations,global.animations$1));\n}(this, (function (exports,core,common,platformBrowser,animations,animations$1) { 'use strict';\n\nvar NgFlashMessageService = (function () {\n    function NgFlashMessageService() {\n        this.showFlashMessageEvent = new core.EventEmitter();\n    }\n    /**\n     * @param {?} flashMessage\n     * @return {?}\n     */\n    NgFlashMessageService.prototype.showFlashMessage = function (flashMessage) {\n        this.showFlashMessageEvent.emit(flashMessage);\n    };\n    return NgFlashMessageService;\n}());\nNgFlashMessageService.decorators = [\n    { type: core.Injectable },\n];\n/**\n * @nocollapse\n */\nNgFlashMessageService.ctorParameters = function () { return []; };\n\nvar FlashMessage = (function () {\n    function FlashMessage() {\n    }\n    return FlashMessage;\n}());\n\nvar NgFlashMessageComponent = (function () {\n    /**\n     * @param {?} ngFlashMessageService\n     */\n    function NgFlashMessageComponent(ngFlashMessageService) {\n        this.ngFlashMessageService = ngFlashMessageService;\n        this.alertVisibility = 'invisible';\n    }\n    /**\n     * @return {?}\n     */\n    NgFlashMessageComponent.prototype.ngOnInit = function () {\n        var _this = this;\n        this.flashMessage = new FlashMessage;\n        this.ngFlashMessageService.showFlashMessageEvent.subscribe(function (flashMessage) {\n            _this.alertVisibility = 'visible';\n            flashMessage.type = flashMessage.type ? flashMessage.type : 'info';\n            flashMessage.timeout = flashMessage.timeout === undefined ? 2000 : flashMessage.timeout;\n            _this.flashMessage = flashMessage;\n            if (flashMessage.timeout) {\n                setTimeout(function () {\n                    _this.alertVisibility = 'invisible';\n                }, flashMessage.timeout);\n            }\n        });\n    };\n    /**\n     * @param {?} evt\n     * @return {?}\n     */\n    NgFlashMessageComponent.prototype.onBtnCloseClick = function (evt) {\n        evt.preventDefault();\n        this.alertVisibility = 'invisible';\n    };\n    return NgFlashMessageComponent;\n}());\nNgFlashMessageComponent.decorators = [\n    { type: core.Component, args: [{\n                selector: 'ng-flash-message',\n                template: \"<div [@alertState]=\\\"alertVisibility\\\" class=\\\"alert alert-{{ flashMessage.type }}\\\" role=\\\"alert\\\"> <a href=\\\"#\\\" *ngIf=\\\"flashMessage.dismissible\\\" (click)=\\\"onBtnCloseClick($event)\\\" class=\\\"close\\\">&times;</a> <span *ngIf=\\\"flashMessage.messages?.length == 1\\\" [innerHTML]=\\\"flashMessage.messages[0]\\\"> </span> <span *ngIf=\\\"flashMessage.messages?.length > 1\\\"> <p *ngFor=\\\"let message of flashMessage.messages\\\" [innerHTML]=\\\"message\\\"> </p> </span> </div>\",\n                styles: [\".alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; } .alert h4 { margin-top: 0; color: inherit; } .alert .alert-link { font-weight: bold; } .alert > p, .alert > ul { margin-bottom: 0; } .alert > p + p { margin-top: 5px; } .alert-dismissable, .alert-dismissible { padding-right: 35px; } .alert-dismissable .close, .alert-dismissible .close { position: relative; top: -2px; right: -21px; color: inherit; } .alert-success { background-color: #dff0d8; border-color: #d6e9c6; color: #3c763d; } .alert-success hr { border-top-color: #c9e2b3; } .alert-success .alert-link { color: #2b542c; } .alert-info { background-color: #d9edf7; border-color: #bce8f1; color: #31708f; } .alert-info hr { border-top-color: #a6e1ec; } .alert-info .alert-link { color: #245269; } .alert-warning { background-color: #fcf8e3; border-color: #faebcc; color: #8a6d3b; } .alert-warning hr { border-top-color: #f7e1b5; } .alert-warning .alert-link { color: #66512c; } .alert-danger { background-color: #f2dede; border-color: #ebccd1; color: #a94442; } .alert-danger hr { border-top-color: #e4b9c0; } .alert-danger .alert-link { color: #843534; } .alert a.close { float: right; text-decoration: none !important; color: #777777; font-weight: bold; } .alert a.close:hover { color: #333333; } \"],\n                animations: [\n                    animations$1.trigger('alertState', [\n                        animations$1.state('visible', animations$1.style({\n                            opacity: 1,\n                            display: 'block'\n                        })),\n                        animations$1.state('invisible', animations$1.style({\n                            opacity: 0,\n                            display: 'none'\n                        })),\n                        animations$1.transition('visible => invisible', animations$1.animate('500ms ease-in')),\n                        animations$1.transition('invisible => visible', animations$1.animate('0ms linear'))\n                    ])\n                ]\n            },] },\n];\n/**\n * @nocollapse\n */\nNgFlashMessageComponent.ctorParameters = function () { return [\n    { type: NgFlashMessageService, },\n]; };\n\nvar NgFlashMessagesModule = (function () {\n    function NgFlashMessagesModule() {\n    }\n    /**\n     * @return {?}\n     */\n    NgFlashMessagesModule.forRoot = function () {\n        return {\n            ngModule: NgFlashMessagesModule,\n            providers: [NgFlashMessageService]\n        };\n    };\n    return NgFlashMessagesModule;\n}());\nNgFlashMessagesModule.decorators = [\n    { type: core.NgModule, args: [{\n                imports: [\n                    common.CommonModule,\n                    platformBrowser.BrowserModule,\n                    animations.BrowserAnimationsModule\n                ],\n                declarations: [\n                    NgFlashMessageComponent\n                ],\n                providers: [\n                    NgFlashMessageService\n                ],\n                exports: [\n                    NgFlashMessageComponent\n                ]\n            },] },\n];\n/**\n * @nocollapse\n */\nNgFlashMessagesModule.ctorParameters = function () { return []; };\n\nexports.NgFlashMessagesModule = NgFlashMessagesModule;\nexports.NgFlashMessageService = NgFlashMessageService;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n})));\n"]}