define(["layout/module"],function(a){"use strict";a.registerDirective("resetWidgets",["$state",function(){return{restrict:"A",link:function(a,b){b.on("click",function(){$.SmartMessageBox({title:"<i class='fa fa-refresh' style='color:green'></i> Clear Local Storage",content:"Would you like to RESET all your saved widgets and clear LocalStorage?1",buttons:"[No][Yes]"},function(a){"Yes"==a&&localStorage&&(localStorage.clear(),location.reload())})})}}}])});