Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/page_editor/plugins/experience/components/Popover",["module","exports","require","@frontend-taglib-clay$clayui/popover","@liferay/frontend-js-react-web","frontend-js-web","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(r("@frontend-taglib-clay$clayui/popover")),o=r("@liferay/frontend-js-react-web"),a=r("frontend-js-web"),l=c(r("liferay!frontend-js-react-web$prop-types")),f=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react"));function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){return e&&e.__esModule?e:{default:e}}function i(){return(i=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}).apply(this,arguments)}function p(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const e=e=>f.default.createElement(o.ReactPortal,null,f.default.createElement(y,e)),y=e=>{let{anchor:t,children:r}=e,o=p(e,["anchor","children"]);const l=(0,f.useRef)(null);return f.default.useLayoutEffect((()=>{(0,a.align)(l.current,t,a.ALIGN_POSITIONS.Right,!1)}),[]),f.default.createElement(n.default,i({alignPosition:"right",ref:l},o),r)};e.proptypes={anchor:l.default.object};var d=e;t.default=d}}));
//# sourceMappingURL=Popover.js.map