define(["modules/widgets/module"],function(a){"use strict";a.registerDirective("jarvisWidget",["$rootScope",function(a){return{restrict:"A",compile:function(b){b.data("widget-color")&&b.addClass("jarviswidget-color-"+b.data("widget-color")),b.find(".widget-body").prepend('<div class="jarviswidget-editbox"><input class="form-control" type="text"></div>'),b.addClass("jarviswidget jarviswidget-sortable"),a.$emit("jarvisWidgetAdded",b)}}}])});