function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw a}}return s}}function _arrayWithHoles(e){if(Array.isArray(e))return e}(()=>{function e(e,r){var n=this,a={BOTH:e("{{protocolName | translate}} devices can send messages of different types with different encodings per type.\n        Depending on the device, the type can be determined by looking either\n        at the FPort parameter of a message (<b>Source</b>: <i>FPort</i>)\n        or at the subset of the message payload itself (<b>Source</b>: <i>Payload</i>).\n        Indicate where the type information starts in the payload (<b>Start bit</b>)\n        and how long this information is (<b>Number of bits</b>)."),FPORT:e("{{protocolName | translate}} devices can send messages of different types with different encodings per type.\n        Type can be determined by looking at the FPort parameter of a message (<b>Source</b>: <i>FPort</i>)."),PAYLOAD:e("{{protocolName | translate}} devices can send messages of different types with different encodings per type.\n        Type can be determined by looking at the subset of the message payload (<b>Source</b>: <i>Payload</i>).\n        Indicate where the type information starts in the payload (<b>Start bit</b>)\n        and how long this information is (<b>Number of bits</b>).")};_.assign(n,{$onChanges:function(e){{var t;e.featureLabel&&(e=a.BOTH,1===_.get(n,"messageIdConfiguration.length")&&(t=_slicedToArray(n.messageIdConfiguration,1)[0],e=a[t.name]),n.description=r.getString(e,{protocolName:n.featureLabel}))}},descriptionTemplates:a})}e.$inject=["gettext","gettextCatalog"],angular.module("c8y.deviceDatabase4").component("c8yMessageIdConfigurationDescription",{bindings:{featureLabel:"<",messageIdConfiguration:"<"},template:'\n        <div ng-bind-html="vm.description">\n        </div>\n      ',controller:e,controllerAs:"vm"})})();