angular.module("c8y.smartRules").directive("smartRuleParamWarnMaxLength",function(){var r=/#{.+}/;return{scope:{rule:"=",param:"="},link:function(a){a.visible=!1,a.$watch("rule.config[param.property]",function(e){a.exceedsMaxLength=e&&e.length>a.param.warnMaxLength,a.hasPlaceholder=r.test(a.rule.config[a.param.property]),a.visible=a.exceedsMaxLength||a.hasPlaceholder})},restrict:"E",templateUrl:":::PLUGIN_PATH:::/views/paramWarnMaxLength.html"}});