/*! 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. */
(window.apm_bundle_jsonpfunction=window.apm_bundle_jsonpfunction||[]).push([[21],{1053:function(e,a,t){"use strict";t.r(a),t.d(a,"renderApp",(function(){return b}));var n=t(1),s=t.n(n),i=t(62),r=t.n(i),p=t(6),o=t(21),l=t(83),c=t(0),u=t(160),d=t(480);const b=({coreStart:e,pluginsSetup:a,appMountParameters:t,config:n,pluginsStart:i,observabilityRuleTypeRegistry:b,apmServices:m})=>{const{element:f,theme$:h}=t,g={appMountParameters:t,config:n,core:e,plugins:a,data:i.data,inspector:i.inspector,infra:i.infra,observability:i.observability,observabilityShared:i.observabilityShared,observabilityRuleTypeRegistry:b,dataViews:i.dataViews,unifiedSearch:i.unifiedSearch,lens:i.lens,uiActions:i.uiActions,observabilityAIAssistant:i.observabilityAIAssistant,share:a.share};return function({chrome:e,http:a}){e.setHelpExtension({appName:c.i18n.translate("xpack.apm.feedbackMenu.appName",{defaultMessage:"APM"}),links:[{linkType:"discuss",href:"https://discuss.elastic.co/c/apm"},{linkType:"custom",href:Object(u.a)(a.basePath),content:c.i18n.translate("xpack.apm.helpMenu.upgradeAssistantLink",{defaultMessage:"Upgrade assistant"})}]})}(e),function({application:e,chrome:a}){const t=e.capabilities.apm.save,{setBadge:n}=a;n(t?void 0:{text:c.i18n.translate("xpack.apm.header.badge.readOnly.text",{defaultMessage:"Read only"}),tooltip:c.i18n.translate("xpack.apm.header.badge.readOnly.tooltip",{defaultMessage:"Unable to save"}),iconType:"glasses"})}(e),Object(l.createCallApmApi)(e),f.classList.add(p.APP_WRAPPER_CLASS),r.a.render(s.a.createElement(o.KibanaThemeProvider,{theme$:h,modify:{breakpoint:{xxl:1600,xxxl:2e3}}},s.a.createElement(d.a,{apmPluginContextValue:g,pluginsStart:i,apmServices:m})),f),()=>{r.a.unmountComponentAtNode(f)}}}}]);