Liferay.Loader.define("frontend-js-web@5.0.32/liferay/util/in_browser_view",["module","exports","require","./get_element"],(function(t,e,o){var l;window;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e,o,l){let n=!1;if(e=(0,i.default)(e)){l||((l={left:(l=e.getBoundingClientRect()).left+window.scrollX,top:l.top+window.scrollY}).bottom=l.top+e.offsetHeight,l.right=l.left+e.offsetWidth),o||(o=window),o=(0,i.default)(o);const f={};if(f.left=o.scrollX,f.right=f.left+o.innerWidth,f.top=o.scrollY,f.bottom=f.top+o.innerHeight,n=l.bottom<=f.bottom&&l.left>=f.left&&l.right<=f.right&&l.top>=f.top,n){const i=o.frameElement;if(i){let r=i.getBoundingClientRect();r={left:r.left+window.scrollX,top:r.top+window.scrollY};const d=r.left-f.left;l.left+=d,l.right+=d;const s=r.top-f.top;l.top+=s,l.bottom+=s,n=t(e,o.parent,l)}}}return n};var i=(l=o("./get_element"))&&l.__esModule?l:{default:l}}));
//# sourceMappingURL=in_browser_view.js.map