/*! 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([[22],{1053:function(e,a,t){"use strict";t.r(a),t.d(a,"renderApp",(function(){return b}));var n=t(1),i=t.n(n),s=t(60),r=t.n(s),o=t(6),p=t(21),l=t(82),c=t(0),u=t(160),d=t(479);const b=({coreStart:e,pluginsSetup:a,appMountParameters:t,config:n,pluginsStart:s,observabilityRuleTypeRegistry:b})=>{const{element:m,theme$:f}=t,g={appMountParameters:t,config:n,core:e,plugins:a,data:s.data,inspector:s.inspector,infra:s.infra,observability:s.observability,observabilityShared:s.observabilityShared,observabilityRuleTypeRegistry:b,dataViews:s.dataViews,unifiedSearch:s.unifiedSearch,lens:s.lens,uiActions:s.uiActions,observabilityAIAssistant:s.observabilityAIAssistant};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),m.classList.add(o.APP_WRAPPER_CLASS),r.a.render(i.a.createElement(p.KibanaThemeProvider,{theme$:f,modify:{breakpoint:{xxl:1600,xxxl:2e3}}},i.a.createElement(d.a,{apmPluginContextValue:g,pluginsStart:s})),m),()=>{r.a.unmountComponentAtNode(m)}}}}]);