/*! 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.observabilityShared_bundle_jsonpfunction=window.observabilityShared_bundle_jsonpfunction||[]).push([[2],{71:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(0);n.default=function(e,n){var t=r.useState(null),i=t[0],o=t[1];return r.useEffect((function(){if(e.current&&"function"==typeof IntersectionObserver){var t=new IntersectionObserver((function(e){o(e[0])}),n);return t.observe(e.current),function(){o(null),t.disconnect()}}return function(){}}),[e.current,n.threshold,n.root,n.rootMargin]),i}},72:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return c}));var r=t(0),i=t.n(r),o=t(2),u=t(71),l=t.n(u);function c({children:e,placeholderTitle:n,initialHeight:t=100}){const u=i.a.useRef(null),c=l()(u,{root:null,rootMargin:"0px",threshold:.25}),[a,s]=Object(r.useState)(!1);return Object(r.useEffect)((()=>{c&&c.intersectionRatio>.25&&s(!0)}),[c,null==c?void 0:c.intersectionRatio]),a?e:i.a.createElement("div",{"data-test-subj":"renderOnlyInViewPlaceholderContainer",ref:u,role:"region","aria-label":n,style:{height:t}},i.a.createElement(o.EuiSkeletonRectangle,null))}}}]);