angular.module("c8y.deviceDatabase4").component("c8yDeviceTypeMessageIdConfiguration",{templateUrl:":::PLUGIN_PATH:::/detail/message-id-configuration.html",bindings:{featureLabel:"<",featureConfiguration:"<",deviceTypeForm:"<",deviceType:"<",messageIdSources:"<"},controller:function(){var a=this;function n(){var e=_.get(a.deviceType,"c8y_MessageIdConfiguration.source");a.featureConfiguration&&a.featureConfiguration.messageIdConfiguration&&!e&&(e=_.get(a.featureConfiguration,"messageIdConfiguration[0].value")),a.displayedMessageIdSource=e}_.assign(a,{$onChanges:function(e){e.featureLabel&&n()},initSelector:n,isMessageIdSourceDisabled:function(){return a.featureConfiguration.messageIdConfiguration.length<2}})},controllerAs:"vm"});