(()=>{function e(e){var t=this;function l(e){t.onAdded({rule:e})}_.assign(t,{add:function(){e.createInstanceWithUIByName(t.ruleTemplateName,t.ruleDefaults).then(l)}})}e.$inject=["smartRulesSvc"],angular.module("c8y.smartRules").component("addSmartRuleButton",{bindings:{icon:"<?",label:"<?",ruleTemplateName:"<",ruleDefaults:"<",onAdded:"&?"},transclude:!0,templateUrl:":::PLUGIN_PATH:::/add/addSmartRuleButton.html",controller:e,controllerAs:"vm"})})();