(()=>{function t(t){return{scope:{user:"=",password:"=",minGreenLength:"=?"},link:function(e){var r=t();function n(t){e.user.passwordStrength=_.toUpper(t)}n("RED"),e.getStrength=r.getStrengthForColor,e.getColor=r.getHexColorForColor,e.$watch("password",function(t){_.isNil(t)||r.getStrengthColor(t).then(function(t){n(t)})}),e.$watch("minGreenLength",function(t){_.isNil(t)||r.setMinGreenLength(t)})},templateUrl:":::PLUGIN_PATH:::/ui/views/passwordStrength.html"}}t.$inject=["passwordStrengthCheckerFactory"],angular.module("c8y.ui").directive("c8yPasswordStrength",t)})();