!function(a){"use strict";a.component("alert",{defaults:{fade:!0,duration:200,trigger:".uk-alert-close"},boot:function(){a.$html.on("click.alert.uikit","[data-uk-alert]",function(b){var c=a.$(this);if(!c.data("alert")){var d=a.alert(c,a.Utils.options(c.attr("data-uk-alert")));a.$(b.target).is(d.options.trigger)&&(b.preventDefault(),d.close())}})},init:function(){var a=this;this.on("click",this.options.trigger,function(b){b.preventDefault(),a.close()})},close:function(){var a=this.trigger("close.uk.alert"),b=function(){this.trigger("closed.uk.alert").remove()}.bind(this);this.options.fade?a.css("overflow","hidden").css("max-height",a.height()).animate({height:0,opacity:0,"padding-top":0,"padding-bottom":0,"margin-top":0,"margin-bottom":0},this.options.duration,b):b()}})}(UIkit);