(()=>{function e(e){var t=this;_.assign(t,{description:e("Send me information about outages, maintenance or updates."),$doCheck:function(){t.form.email&&(t.user&&t.user.newsletter&&!t.user.email?(t.form.email.$setDirty(!0),t.form.email.$setValidity("required",!1)):t.form.email.$setValidity("required",!0))}})}e.$inject=["gettext"],angular.module("c8y.newsletter").component("c8ySubscribeNewsletter",{controller:e,controllerAs:"vm",bindings:{user:"=",form:"="},template:'<div class="checkbox"><label><input type="checkbox" ng-model="vm.user.newsletter" />{{vm.description | translate}}</label></div>'})})();