"use strict";Liferay.Loader.define("@liferay!analytics-settings-web$testing-library/react@12.1.2/dist/pure",["module","exports","require","@liferay!analytics-settings-web$babel/runtime/helpers/interopRequireDefault","liferay!frontend-js-react-web$react","liferay!frontend-js-react-web$react-dom","@liferay!analytics-settings-web$testing-library/dom","./act-compat","./fire-event"],(function(e,t,r){window;{var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a=r("@liferay!analytics-settings-web$babel/runtime/helpers/interopRequireDefault");Object.defineProperty(t,"__esModule",{value:!0});var i={render:!0,cleanup:!0,act:!0,fireEvent:!0};t.render=function render(t,{container:r,baseElement:a=r,queries:i,hydrate:d=!1,wrapper:f}={}){a||(a=document.body);r||(r=a.appendChild(document.createElement("div")));e.add(r);const wrapUiIfNeeded=e=>f?o.createElement(f,null,e):e;return(0,l.default)((()=>{d?c.default.hydrate(wrapUiIfNeeded(t),r):c.default.render(wrapUiIfNeeded(t),r)})),n({container:r,baseElement:a,debug:(e=a,t,r)=>Array.isArray(e)?e.forEach((e=>console.log((0,u.prettyDOM)(e,t,r)))):console.log((0,u.prettyDOM)(e,t,r)),unmount:()=>{(0,l.default)((()=>{c.default.unmountComponentAtNode(r)}))},rerender:e=>{render(wrapUiIfNeeded(e),{container:r,baseElement:a})},asFragment:()=>{if("function"==typeof document.createRange)return document.createRange().createContextualFragment(r.innerHTML);{const e=document.createElement("template");return e.innerHTML=r.innerHTML,e.content}}},(0,u.getQueriesForElement)(a,i))},t.cleanup=function cleanup(){e.forEach(cleanupAtContainer)},Object.defineProperty(t,"act",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"fireEvent",{enumerable:!0,get:function(){return d.fireEvent}});var o=_interopRequireWildcard(r("liferay!frontend-js-react-web$react")),c=a(r("liferay!frontend-js-react-web$react-dom")),u=r("@liferay!analytics-settings-web$testing-library/dom");Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var l=_interopRequireWildcard(r("./act-compat")),d=r("./fire-event");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache=function(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(0,u.configure)({asyncWrapper:async e=>{let t;return await(0,l.asyncAct)((async()=>{t=await e()})),t},eventWrapper:e=>{let t;return(0,l.default)((()=>{t=e()})),t}});const e=new Set;function cleanupAtContainer(t){(0,l.default)((()=>{c.default.unmountComponentAtNode(t)})),t.parentNode===document.body&&document.body.removeChild(t),e.delete(t)}}}));
//# sourceMappingURL=pure.js.map