(()=>{function e(c){return{scope:{rule:"=",param:"=",ruleTemplate:"="},restrict:"E",templateUrl:":::PLUGIN_PATH:::/views/paramInput.html",controller:"smartRuleParamInputCtrl",compile:function(e){var i,u=e.contents().remove();return function(r,t){var e,a,n;(i=i||c(u))(r,function(e){t.append(e)}),(e=r.param).showIf?r.$watch(e.showIf,function(e){r.visible=e}):r.visible=!0,(a=r.param).requireIf&&r.$watch(a.requireIf,function(e){a.required=e}),(n=r.param).setIf&&r.$watch(n.setIf,function(e){e||(r.rule.config[n.property]=void 0)})}}}}e.$inject=["$compile"],angular.module("c8y.smartRules").directive("smartRuleParamInput",e)})();