(window["alertingDashboards_bundle_jsonpfunction"]=window["alertingDashboards_bundle_jsonpfunction"]||[]).push([[23],{2849:function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _react=_interopRequireWildcard(__webpack_require__(0));var _lodash=__webpack_require__(5);var _i18n=__webpack_require__(3);var _reactUse=__webpack_require__(145);var _objects_table=__webpack_require__(787);var _utils=__webpack_require__(347);function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e){return e?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}const SavedObjectsTablePage=_ref=>{let{coreStart:coreStart,dataStart:dataStart,allowedTypes:allowedTypes,serviceRegistry:serviceRegistry,actionRegistry:actionRegistry,columnRegistry:columnRegistry,namespaceRegistry:namespaceRegistry,setBreadcrumbs:setBreadcrumbs,dataSourceEnabled:dataSourceEnabled,dataSourceManagement:dataSourceManagement,navigation:navigation,useUpdatedUX:useUpdatedUX}=_ref;const capabilities=coreStart.application.capabilities;const itemsPerPage=coreStart.uiSettings.get("savedObjects:perPage",50);const dateFormat=coreStart.uiSettings.get("dateFormat");const currentWorkspace=(0,_reactUse.useObservable)(coreStart.workspaces.currentWorkspace$);(0,_react.useEffect)(()=>{setBreadcrumbs([useUpdatedUX?currentWorkspace?{text:_i18n.i18n.translate("savedObjectsManagement.updatedUX.workspace.title",{defaultMessage:"Workspace assets"})}:{text:_i18n.i18n.translate("savedObjectsManagement.updatedUX.title",{defaultMessage:"Assets"})}:{text:_i18n.i18n.translate("savedObjectsManagement.breadcrumb.index",{defaultMessage:"Saved objects"}),href:"/"}])},[setBreadcrumbs,useUpdatedUX,currentWorkspace]);return _react.default.createElement(_objects_table.SavedObjectsTable,{allowedTypes:allowedTypes,serviceRegistry:serviceRegistry,actionRegistry:actionRegistry,columnRegistry:columnRegistry,namespaceRegistry:namespaceRegistry,savedObjectsClient:coreStart.savedObjects.client,indexPatterns:dataStart.indexPatterns,search:dataStart.search,http:coreStart.http,overlays:coreStart.overlays,notifications:coreStart.notifications,applications:coreStart.application,workspaces:coreStart.workspaces,perPageConfig:itemsPerPage,goInspectObject:savedObject=>{const inAppUrl=(0,_utils.formatInspectUrl)(savedObject,coreStart);if(inAppUrl){return coreStart.application.navigateToUrl(inAppUrl)}},dateFormat:dateFormat,canGoInApp:savedObject=>{const{inAppUrl:inAppUrl}=savedObject.meta;return inAppUrl?Boolean((0,_lodash.get)(capabilities,inAppUrl.uiCapabilitiesPath)):false},dataSourceEnabled:dataSourceEnabled,dataSourceManagement:dataSourceManagement,navigationUI:navigation.ui,useUpdatedUX:useUpdatedUX})};exports.default=SavedObjectsTablePage;module.exports=exports.default}}]);