(()=>{function n(t,n){o.$inject=["$routeParams","c8yInventory","c8yGenericUi"],c.$inject=["$routeParams","$injector"];var i="c8y_GenericUi";return{$get:function(){},configView:e,configDefaultView:function(){e({path:"/device/:deviceId",name:n("Objects"),icon:"c8y-modules",showIf:o})}};function e(n){var e=n.path,n=_.assign({},n,{template:'\n      <c8y-ui-action-bar-set ng-if="vm.openAuditConfig">\n        <button type="button" class="btn btn-link" ng-click="vm.openAuditConfig()">\n          <i c8y-icon="columns"></i> <translate>Audit configuration</translate>\n        </button>\n      </c8y-ui-action-bar-set>\n      <c8y-generic-ui-auto context="vm.deviceId"></c8y-generic-ui-auto>\n    ',controllerAs:"vm",controller:c});t.when(e,n)}function c(n,e){var t,i="c8yConfigAudit";(t=e.has(i)?e.get(i):t)&&(this.openAuditConfig=t.openModal),this.deviceId=n.deviceId}function o(n,e,t){return e.detailCached(n.deviceId).then(function(n){return n.data}).then(function(n){return n[i]&&t.hasMatchingSchemas(n)})}}n.$inject=["c8yViewsProvider","gettext"],angular.module("c8y.genericUi").provider("c8yGenericUiConfig",n)})();