{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/koYBxTLQJtpv3IO19oBI/IGN5EBRQgmfhB82DfA2l/Overlay_esc_to_close.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import React from\"react\";import{forwardRef}from\"react\";import{ControlType}from\"framer\";/**\n * This override adds Escape key functionality to close overlays\n * @framerDisableUnlink\n */export const withEscapeKeyClose=Component=>{class WrappedComponent extends React.Component{componentDidMount(){console.log(\"Escape key handler mounted\");window.addEventListener(\"keydown\",this.handleKeyDown);}componentWillUnmount(){console.log(\"Escape key handler unmounting\");window.removeEventListener(\"keydown\",this.handleKeyDown);}handleKeyDown(e){console.log(\"Key pressed:\",e.key);if(e.key===\"Escape\"){console.log(\"Escape key detected\");if(this.props.onEscape){console.log(\"Executing onEscape handler\");this.props.onEscape();}}}render(){console.log(\"Rendering component with Escape handler\");return /*#__PURE__*/_jsx(Component,{...this.props});}constructor(props){super(props);this.handleKeyDown=this.handleKeyDown.bind(this);}}return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(WrappedComponent,{...props,ref:ref});});};withEscapeKeyClose.propertyControls={onEscape:{type:ControlType.EventHandler}};\nexport const __FramerMetadata__ = {\"exports\":{\"withEscapeKeyClose\":{\"type\":\"reactHoc\",\"name\":\"withEscapeKeyClose\",\"annotations\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Overlay_esc_to_close.map"],
  "mappings": "yIAGU,IAAMA,EAAmBC,GAAW,CAAC,MAAMC,UAAyBC,EAAM,SAAS,CAAC,mBAAmB,CAAC,QAAQ,IAAI,4BAA4B,EAAEC,EAAO,iBAAiB,UAAU,KAAK,aAAa,CAAE,CAAC,sBAAsB,CAAC,QAAQ,IAAI,+BAA+B,EAAEA,EAAO,oBAAoB,UAAU,KAAK,aAAa,CAAE,CAAC,cAAc,EAAE,CAAC,QAAQ,IAAI,eAAe,EAAE,GAAG,EAAK,EAAE,MAAM,WAAU,QAAQ,IAAI,qBAAqB,EAAK,KAAK,MAAM,WAAU,QAAQ,IAAI,4BAA4B,EAAE,KAAK,MAAM,SAAS,GAAI,CAAC,QAAQ,CAAC,eAAQ,IAAI,yCAAyC,EAAsBC,EAAKJ,EAAU,CAAC,GAAG,KAAK,KAAK,CAAC,CAAE,CAAC,YAAYK,EAAM,CAAC,MAAMA,CAAK,EAAE,KAAK,cAAc,KAAK,cAAc,KAAK,IAAI,CAAE,CAAC,CAAC,OAAoBC,EAAW,CAACD,EAAME,IAA2BH,EAAKH,EAAiB,CAAC,GAAGI,EAAM,IAAIE,CAAG,CAAC,CAAG,CAAE,EAAER,EAAmB,iBAAiB,CAAC,SAAS,CAAC,KAAKS,EAAY,YAAY,CAAC",
  "names": ["withEscapeKeyClose", "Component", "WrappedComponent", "e", "window", "p", "props", "Y", "ref", "ControlType"]
}
