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