(()=>{function e(i){return{restrict:"E",link:function(r,t,e){var n=e.placeholder,o=e.required;function c(){var e;_.isUndefined(n)&&!o?t.removeAttr("placeholder"):(e=_.compact([n,"".concat(!o||0<t.closest("[placeholder-no-required-hint]").length?"":"(".concat(i.getString("required"),")"))]),t.attr("placeholder",e.join(" ")))}e.$observe("placeholder",function(e){n=e,c()}),e.$observe("required",function(e){o=e,c()}),r.$watch("$parent.form.required",function(e){r.$parent.form&&(o=e,c())})}}}e.$inject=["gettextCatalog"],angular.module("c8y.ui").directive("input",e)})();