/*! 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.reporting_bundle_jsonpfunction=window.reporting_bundle_jsonpfunction||[]).push([[3],{36:function(e,t,n){"use strict";var r,o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function a(e){for(var t=-1,n=0;n{const[r,c]=Object(o.useState)();return Object(o.useEffect)((()=>{(async()=>{try{let o;const{jobId:i}=Object(a.parse)(window.location.search);if(i){var r;const t=await e.getInfo(i);o=null==t||null===(r=t.locatorParams)||void 0===r?void 0:r[0]}else o=t.getScreenshotContext(s.r);if(!o)throw new Error("Could not find locator params for report");n.navigate(o)}catch(e){throw c(e),console.error(l.consoleMessagePrefix,e.message),e}})()}),[e,t,n]),Object(u.jsx)("div",{className:"reportingRedirectApp__interstitialPage"},r?Object(u.jsx)(i.EuiCallOut,{title:l.errorTitle,color:"danger"},Object(u.jsx)("p",null,r.message),r.stack&&Object(u.jsx)(i.EuiCodeBlock,null,r.stack)):Object(u.jsx)("div",null))},f=({element:e,apiClient:t,history:n,screenshotMode:o,share:a})=>(Object(r.render)(Object(u.jsx)(i.EuiErrorBoundary,null,Object(u.jsx)(d,{apiClient:t,history:n,screenshotMode:o,share:a})),e),()=>{Object(r.unmountComponentAtNode)(e)})}}]);