function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_toPropertyKey(r.key),r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(()=>{function e(e,n,t,r,o){var i=this,c=(_.assign(i,{$onInit:function(){var e=_.reverse(_.cloneDeep(r.severityList));i.severities=_.map(e,function(e){return new c(e)}),o.getConnector(i.connectorId).then(function(e){i.connector=e}),t.list({type:"c8y_DataBroker"}).then(s).then(a)},realtime:!0,icon:r.icon,refresh:function(){e.$broadcast("alarmListRefresh")},isRefreshing:function(){return _.some(i.severities,"refreshing")}}),(()=>_createClass(function e(t){_classCallCheck(this,e),this.pActive=new WeakMap,this.pFilters=new WeakMap,this.name=t,this.active=!1,this.filters={}},[{key:"active",get:function(){return this.pActive.get(this)},set:function(e){this.pActive.set(this,e)}},{key:"toggleActive",value:function(){this.active=!this.active}},{key:"filters",get:function(){return this.pFilters.get(this)},set:function(e){this.pFilters.set(this,e)}}]))());function s(e){return _.map(e,function(e){return e.id})}function a(t){_.each(i.severities,function(e){e.filters={severity:e.name,sources:t,displayFilter:function(e){return _.isUndefined(e.connectorId)||e.connectorId===n.connectorId},resolved:!1},e.active=!0}),_.set(i,"options.sources",t)}}e.$inject=["$scope","$routeParams","c8yInventory","c8yAlarms","dataBrokerConnectorsSvc"],angular.module("c8y.dataBroker").component("c8yDataBrokerConnectorAlarms",{templateUrl:":::PLUGIN_PATH:::/connectorsAlarms/connectorAlarms.html",controllerAs:"vm",controller:e,bindings:{connectorId:"<id"}})})();