(()=>{function n(n,e,i){function c(n,e){return e.getSource(n).then(function(n){return n.url})}n.when("/device/:deviceId",{template:"<c8y-connectivity-v2 />",name:i("Connectivity"),icon:"plug",showIfPermissions:{anyRole:["ROLE_CONNECTIVITY_READ"]},showIf:["$routeParams","connectivityService",function(n,e){n=n.deviceId;return e.shouldShowConnectivityTabInDM(n)}]}),e.addUrlAction({path:"/device/:deviceId",text:i("SIM details"),actionBar:!0,priority:1e3,showIfPermissions:{anyRole:["ROLE_CONNECTIVITY_READ"]},showIf:["$q","$routeParams","connectivityService","c8yConnectivity",function(n,e,i,t){var o=e.deviceId;return i.shouldShowConnectivityTabInDM(o).then(function(n){return n&&c(o,t).then(function(n){return!_.isUndefined(n)})})}],action:["$routeParams","c8yConnectivity",function(n,e){c(n.deviceId,e).then(function(n){window.open(n,"_blank","noopener,noreferrer")})}]})}n.$inject=["c8yViewsProvider","c8yActionsProvider","gettext"],angular.module("c8y.connectivityV2",[]).config(n)})();