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,CAA0B,KAA1B,EAAiC,CAAjC,EAHc;AAId,uBAAW,OAAX,GAJc;AAKd,gBAAI,OAAO,YAAY,SAAZ,KAA0B,UAAjC,EAA6C;AAC7C,4BAAY,SAAZ,CAAsB,KAAtB,EAD6C;aAAjD;SALJ;KAFkB,CAhD+B;AA4DrD,gBAAY,KAAZ,GAAoB,YAAW;AAC3B,eAAO,WAAW,OAAX,CAAmB,MAAnB,GAA4B,CAA5B,EAA+B;AAClC,wBAAY,OAAZ,CAAoB,WAAW,OAAX,CAAmB,CAAnB,EAAsB,EAAtB,CAApB,CADkC;SAAtC;KADgB,CA5DiC;AAiErD,gBAAY,KAAZ,GAAoB,YAAY,KAAZ,CAjEiC;AAkErD,aAAS,aAAT,CAAuB,EAAvB,EAA2B;AACvB,eAAO,WAAW,OAAX,CAAmB,SAAnB,CAA6B,UAAC,KAAD,EAAW;AAC3C,mBAAO,MAAM,EAAN,KAAa,EAAb,CADoC;SAAX,CAApC,CADuB;KAA3B;;AAMA,WAAO,WAAP,CAxEqD;CAA/B,CAD9B", "file": "angular-flash.js", "sourcesContent": [ "/*! angular-flash - v2.2.0 - 2016-02-06\n * https://github.com/sachinchoolur/angular-flash\n * Copyright (c) 2016 Sachin; Licensed MIT */\n\nconst app = angular.module('ngFlash', []);\n\napp.run([\n '$rootScope', function($rootScope) {\n return $rootScope.flashes = [];\n }\n]);\n\napp.directive('dynamic', [\n '$compile', function($compile) {\n return {\n restrict: 'A',\n replace: true,\n link: function(scope, ele, attrs) {\n return scope.$watch(attrs.dynamic, function(html) {\n ele.html(html);\n return $compile(ele.contents())(scope);\n });\n }\n };\n }\n]);\n\napp.directive('closeFlash', [\n '$compile', '$rootScope', 'Flash', function($compile, $rootScope, Flash) {\n return {\n link: function(scope, ele, attrs) {\n return ele.on('click', function() {\n let id = parseInt(attrs.closeFlash, 10);\n Flash.dismiss(id);\n $rootScope.$apply();\n });\n }\n };\n }\n]);\n\napp.directive('flashMessage', [\n 'Flash', function(Flash) {\n return {\n restrict: 'E',\n scope: {\n duration: '=',\n showClose: '=',\n onDismiss: '&'\n },\n template: '