Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.130/page_editor/common/components/PopoverTooltip",["module","exports","require","@frontend-taglib-clay$clayui/popover","liferay!frontend-js-react-web$react"],(function(e,t,o){var r;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.PopoverTooltip=function({alignPosition:e="top",content:t,header:o,id:r,trigger:i}){const[l,u]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{if(!l)return;const e=e=>{"Escape"===e.key&&u(!1)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[l]),a.default.createElement(n.default,{alignPosition:e,className:"position-fixed",disableScroll:!0,header:o,id:r,onShowChange:u,role:"tooltip",show:l,trigger:a.default.createElement("button",{"aria-controls":r,onBlur:()=>u(!1),onClick:()=>u((e=>!e)),onFocus:()=>u(!0),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),type:"button"},i)},t)};var n=(r=o("@frontend-taglib-clay$clayui/popover"))&&r.__esModule?r:{default:r},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=r?Object.getOwnPropertyDescriptor(e,n):null;a&&(a.get||a.set)?Object.defineProperty(o,n,a):o[n]=e[n]}o.default=e,t&&t.set(e,o);return o}(o("liferay!frontend-js-react-web$react"));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}}}));
//# sourceMappingURL=PopoverTooltip.js.map