(()=>{function e(e){var n,r=this,i=jQuery(e);function t(){return o()&&(r.field&&r.field.$invalid)}function o(){return d()||r.field&&(r.checkOnDirty?r.field.$dirty:r.field.$touched)}function d(){return"hidden"===_.get(r.field,"attrs.type")}_.assign(r,{$doCheck:function(){n!==t()&&(()=>{var e=i.parent(".form-group");t()?e.addClass("has-error has-feedback"):e.removeClass("has-error has-feedback")})();n=t()},isFieldHidden:d,shouldShowMessage:o,shouldShowWarningIcon:t})}e.$inject=["$element"],angular.module("c8y.ui").component("c8yErrorFeedback",{bindings:{field:"<",checkOnDirty:"<"},controller:e,controllerAs:"vm",transclude:!0,templateUrl:":::PLUGIN_PATH:::/ui/components/errorFeedback.html"}).directive("ngModel",function(){return{require:"ngModel",link:function(e,n,r,i){i.attrs=r}}})})();