Liferay.Loader.define("commerce-frontend-js@4.0.75/components/item_finder/Expose",["module","exports","require","liferay!frontend-js-react-web$react"],(function(e,t,n){window;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function Expose({active:e,children:t,onClose:n}){const r=o.default.useRef();return o.default.useEffect((()=>{const handleEscKey=e=>"Escape"===e.key&&n();e?window.addEventListener("keydown",handleEscKey):window.removeEventListener("keydown",handleEscKey)}),[e,n]),o.default.createElement("div",{className:"expose mb-4 ".concat(e?"is-open":"is-closed")},o.default.createElement("div",{className:"expose__backdrop",onClick:n}),o.default.createElement("div",{className:"expose__content",ref:r},t))};var o=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n("liferay!frontend-js-react-web$react"))}));
//# sourceMappingURL=Expose.js.map