(()=>{function e(c,i,e,s){e.getFeaturesManifestsAsync().then(function(e){_.forEach(e,function(e){var t,a=e.fieldbusType,n=e.deviceConfiguration;n&&s.when("/device/:deviceId",{name:n.label||e.label,icon:n.icon||"microchip",template:'<c8y-fieldbus-config tab="'.concat(a,'"></c8y-fieldbus-config>'),showIf:(t=n.fragment,["$routeParams","c8yDeviceDatabase","c8yDevices",function(e,a,n){return c.all({hasFeatures:a.areAnyFeaturesManifestsRegistered(),hasFragment:n.detailCached(e.deviceId).then(i.getResData).then(function(e){return _.has(e,t)})}).then(function(e){return e.hasFeatures&&e.hasFragment})}])})})})}e.$inject=["$q","c8yBase","c8yDeviceDatabase","c8yViews"],angular.module("c8y.modbusConfiguration4").run(e)})();