"use strict";Liferay.Loader.define("@liferay!analytics-settings-web$testing-library/dom@8.20.0/dist/screen",["module","exports","require","@liferay!analytics-settings-web$babel/runtime/helpers/interopRequireDefault","liferay!analytics-settings-web$lz-string","./get-queries-for-element","./helpers","./pretty-dom","./queries"],(function(e,r,t){window;{var n=t("@liferay!analytics-settings-web$babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.screen=void 0;var o=n(t("liferay!analytics-settings-web$lz-string")),i=t("./get-queries-for-element"),a=t("./helpers"),l=t("./pretty-dom"),u=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(t("./queries"));function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e){return e?t:r})(e)}function getPlaygroundUrl(e){return"https://testing-playground.com/#markup="+function encode(e){return o.default.compressToEncodedURIComponent(function unindent(e){return e.replace(/[ \t]*[\n][ \t]*/g,"\n")}(e))}(e)}const e={debug:(e,r,t)=>Array.isArray(e)?e.forEach((e=>(0,l.logDOM)(e,r,t))):(0,l.logDOM)(e,r,t),logTestingPlaygroundURL:(e=(0,a.getDocument)().body)=>{if(!e||!("innerHTML"in e))return void console.log("The element you're providing isn't a valid DOM element.");if(!e.innerHTML)return void console.log("The provided element doesn't have any children.");const r=getPlaygroundUrl(e.innerHTML);return console.log("Open this URL in your browser\n\n"+r),r}},s="undefined"!=typeof document&&document.body?(0,i.getQueriesForElement)(document.body,u,e):Object.keys(u).reduce(((e,r)=>(e[r]=()=>{throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error")},e)),e);r.screen=s}}));
//# sourceMappingURL=screen.js.map