(()=>{function e(e,n,o){var t=this;_.assign(t,{addSubscription:function(){e.create(t.code).then(function(){t.isShown=!1,t.code=""}).then(t.onReload).then(function(){n.success(o("Subscription code registered."))})},code:""})}e.$inject=["c8yDataBrokerSubscriptionsService","c8yAlert","gettext"],angular.module("c8y.dataBroker").component("c8yDataBrokerAddSubscription",{controller:e,controllerAs:"vm",templateUrl:":::PLUGIN_PATH:::/subscriptions/addSubscription.html",bindings:{onReload:"&",isShown:"="}})})();