/*! Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one or more contributor license agreements. * Licensed under the Elastic License 2.0; you may not use this file except in compliance with the Elastic License 2.0. */!function(e){function t(t){for(var n,o,i=t[0],s=t[1],a=0,u=[];a{var i;return Object(o.jsx)(r.Suspense,{fallback:null!==(i=t.fallback)&&void 0!==i?i:null},Object(o.jsx)(n,e))}}},function(e,t,n){e.exports=n(7)(1465)},function(e,t){e.exports=__kbnSharedDeps__.KbnI18n},function(e,t){e.exports=__kbnSharedDeps_npm__},function(e,t,n){n(9),__kbnBundles__.define("plugin/discoverLogExplorer/public",n,10)},function(e,t,n){n.p=window.__kbnPublicPath__.discoverLogExplorer},function(e,t,n){"use strict";n.r(t),n.d(t,"plugin",(function(){return _}));var r=n(5),o=n.n(r),i=n(1),s=(n(2),n(4)),a=n(0);const c=Object(s.a)((()=>Promise.all([n.e(0),n.e(1),n.e(3)]).then(n.bind(null,100)))),u=Object(s.a)((()=>Promise.all([n.e(0),n.e(4)]).then(n.bind(null,103)))),l=({core:e,data:t})=>async({customizations:r,stateContainer:o})=>{const i=Promise.all([n.e(1),n.e(8)]).then(n.bind(null,101)),s=Promise.all([n.e(0),n.e(1),n.e(5)]).then(n.bind(null,102)),[{DatasetsService:l},{initializeLogExplorerProfileStateService:p,waitForState:d}]=await Promise.all([i,s]),f=(new l).start({http:e.http}),_=p({stateContainer:o,toasts:e.notifications.toasts});await d(_,"initialized"),r.set({id:"search_bar",CustomDataViewPicker:()=>Object(a.jsx)(c,{datasetsClient:f.client,logExplorerProfileStateService:_}),PrependFilterBar:()=>Object(a.jsx)(u,{logExplorerProfileStateService:_,data:t})}),r.set({id:"top_nav",defaultMenu:{newItem:{disabled:!0},openItem:{disabled:!0},saveItem:{disabled:!0}}})};var p=n(3),d=n(6);const f=({isVisible:e})=>({id:i.a,title:d.i18n.translate("xpack.discoverLogExplorer.deepLink",{defaultMessage:"Logs Explorer"}),path:`#/p/${i.a}`,category:p.DEFAULT_APP_CATEGORIES.observability,euiIconType:"logoObservability",navLinkStatus:e?p.AppNavLinkStatus.visible:p.AppNavLinkStatus.default});class plugin_DiscoverLogExplorerPlugin{constructor(e){o()(this,"config",void 0),this.config=e.config.get()}setup(){}start(e,t){const{discover:n,data:r}=t;n.registerCustomizationProfile(i.a,{customize:l({core:e,data:r}),deepLinks:[f({isVisible:this.config.featureFlags.deepLinkVisible})]})}}function _(e){return new plugin_DiscoverLogExplorerPlugin(e)}},function(e,t){e.exports=__kbnSharedDeps__.IoTs},function(e,t){e.exports=__kbnSharedDeps__.ElasticEui},function(e,t){e.exports=__kbnSharedDeps__.Lodash},function(e,t){e.exports=__kbnSharedDeps__.KbnRison},function(e,t,n){n.r(t);var r=__kbnBundles__.get("plugin/fleet/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(r))},function(e,t){e.exports=__kbnSharedDeps__.KbnI18nReact},function(e,t){e.exports=__kbnSharedDeps__.Moment},function(e,t){e.exports=__kbnSharedDeps__.KbnDatemath},function(e,t,n){n.r(t);var r=__kbnBundles__.get("plugin/controls/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(r))},function(e,t,n){n.r(t);var r=__kbnBundles__.get("plugin/kibanaReact/common");Object.defineProperties(t,Object.getOwnPropertyDescriptors(r))},function(e,t,n){n.r(t);var r=__kbnBundles__.get("plugin/embeddable/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(r))},function(e,t){e.exports=__kbnSharedDeps__.KbnEsQuery},function(e,t,n){n.r(t);var r=__kbnBundles__.get("plugin/fleet/common");Object.defineProperties(t,Object.getOwnPropertyDescriptors(r))}]);