"use strict";Liferay.Loader.define("liferay!analytics-settings-web$pretty-format@27.5.1/build/plugins/ReactElement",["module","exports","require","liferay!analytics-settings-web$react-is","./lib/markup"],(function(e,r,t){window;{Object.defineProperty(r,"__esModule",{value:!0}),r.test=r.serialize=r.default=void 0;var n=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={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(t("liferay!analytics-settings-web$react-is")),i=t("./lib/markup");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)}const getChildren=(e,r=[])=>(Array.isArray(e)?e.forEach((e=>{getChildren(e,r)})):null!=e&&!1!==e&&r.push(e),r),getType=e=>{const r=e.type;if("string"==typeof r)return r;if("function"==typeof r)return r.displayName||r.name||"Unknown";if(n.isFragment(e))return"React.Fragment";if(n.isSuspense(e))return"React.Suspense";if("object"==typeof r&&null!==r){if(n.isContextProvider(e))return"Context.Provider";if(n.isContextConsumer(e))return"Context.Consumer";if(n.isForwardRef(e)){if(r.displayName)return r.displayName;const e=r.render.displayName||r.render.name||"";return""!==e?"ForwardRef("+e+")":"ForwardRef"}if(n.isMemo(e)){const e=r.displayName||r.type.displayName||r.type.name||"";return""!==e?"Memo("+e+")":"Memo"}}return"UNDEFINED"},getPropKeys=e=>{const{props:r}=e;return Object.keys(r).filter((e=>"children"!==e&&void 0!==r[e])).sort()},serialize=(e,r,t,n,a,s)=>++n>r.maxDepth?(0,i.printElementAsLeaf)(getType(e),r):(0,i.printElement)(getType(e),(0,i.printProps)(getPropKeys(e),e.props,r,t+r.indent,n,a,s),(0,i.printChildren)(getChildren(e.props.children),r,t+r.indent,n,a,s),r,t);r.serialize=serialize;const test=e=>null!=e&&n.isElement(e);r.test=test;var a={serialize:serialize,test:test};r.default=a}}));
//# sourceMappingURL=ReactElement.js.map