"use strict";Liferay.Loader.define("@liferay!analytics-settings-web$testing-library/dom@8.20.0/dist/helpers",["module","exports","require"],(function(e,n,t){window;{Object.defineProperty(n,"__esModule",{value:!0}),n.TEXT_NODE=void 0,n.checkContainerType=function checkContainerType(e){if(!e||"function"!=typeof e.querySelector||"function"!=typeof e.querySelectorAll)throw new TypeError(`Expected container to be an Element, a Document or a DocumentFragment but got ${function getTypeName(e){if("object"==typeof e)return null===e?"null":e.constructor.name;return typeof e}(e)}.`)},n.getDocument=function getDocument(){if("undefined"==typeof window)throw new Error("Could not find default container");return window.document},n.getWindowFromNode=function getWindowFromNode(e){if(e.defaultView)return e.defaultView;if(e.ownerDocument&&e.ownerDocument.defaultView)return e.ownerDocument.defaultView;if(e.window)return e.window;throw e.ownerDocument&&null===e.ownerDocument.defaultView?new Error("It looks like the window object is not available for the provided node."):e.then instanceof Function?new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?"):Array.isArray(e)?new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?"):"function"==typeof e.debug&&"function"==typeof e.logTestingPlaygroundURL?new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?"):new Error(`The given node is not an Element, the node type is: ${typeof e}.`)},n.jestFakeTimersAreEnabled=function jestFakeTimersAreEnabled(){if("undefined"!=typeof jest&&null!==jest)return!0===setTimeout._isMockFunction||Object.prototype.hasOwnProperty.call(setTimeout,"clock");return!1};const e=3;n.TEXT_NODE=e}}));
//# sourceMappingURL=helpers.js.map