/*! 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.ux_bundle_jsonpfunction=window.ux_bundle_jsonpfunction||[]).push([[3],{73:function(a,e,t){"use strict";t.r(e),t.d(e,"fetchUxOverviewDate",(function(){return l})),t.d(e,"hasRumData",(function(){return u}));var n=t(22),i=t(42),r=t(41),s=t(49);t.d(e,"createCallApmApi",(function(){return r.b}));const c={coreVitalPages:0,cls:0,fid:0,lcp:0,tbt:0,fcp:0,lcpRanks:i.a,fidRanks:i.a,clsRanks:i.a},l=async a=>{var e;const t=await async function({absoluteTime:a,serviceName:e,dataStartPlugin:t}){const n=await Object(r.a)("GET /internal/apm/data_view/title",{signal:null});return await o(t,{params:{index:n.apmDataViewTitle,...Object(i.c)(a.start,a.end,void 0,{serviceName:e?[e]:void 0})}})}(a);return{coreWebVitals:null!==(e=Object(i.d)(t))&&void 0!==e?e:c,appLink:`/app/ux?rangeFrom=${a.relativeTime.start}&rangeTo=${a.relativeTime.end}`}};async function u(a){var e,t;const n=await Object(r.a)("GET /internal/apm/data_view/title",{signal:null}),i=await o(a.dataStartPlugin,{params:{index:n.apmDataViewTitle,...Object(s.b)({start:null==a||null===(e=a.absoluteTime)||void 0===e?void 0:e.start,end:null==a||null===(t=a.absoluteTime)||void 0===t?void 0:t.end})}});return Object(s.a)(i,n.apmDataViewTitle)}async function o(a,e){return new Promise(((t,i)=>{const r=a.search.search(e,{legacyHitsTotal:!1}).subscribe({next:a=>{Object(n.isCompleteResponse)(a)&&(t(a.rawResponse),r.unsubscribe())},error:a=>{i(a)}})}))}}}]);