{"version":3,"file":"CustomEventListener.B10kM9DJ.mjs","names":[],"sources":["https:/framerusercontent.com/modules/pARJREVt72umKht0K3sQ/cuqeU1cjFagufasydaOd/CustomEventListener.js"],"sourcesContent":["// Get Started: https://www.framer.com/developers\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect}from\"react\";export default function CustomEventListener(props){const{framerEvent,tsEventName}=props;useEffect(()=>{const handler=()=>{framerEvent?.();};window.addEventListener(tsEventName,handler);return()=>window.removeEventListener(tsEventName,handler);},[framerEvent,tsEventName]);return /*#__PURE__*/_jsx(\"div\",{});}addPropertyControls(CustomEventListener,{framerEvent:{type:ControlType.EventHandler,title:\"On CustomEvent\"},tsEventName:{title:\"TypeScript Event\",type:ControlType.String,defaultValue:\"auth:completed\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CustomEventListener\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CustomEventListener.map"],"mappings":"wLAC4H,SAAwB,EAAoB,EAAM,CAAC,GAAK,CAAC,cAAY,eAAa,EAA8L,OAAxL,MAAc,CAAC,IAAM,MAAY,CAAC,KAAe,EAAgD,OAA7C,EAAO,iBAAiB,EAAY,EAAQ,KAAW,EAAO,oBAAoB,EAAY,EAAQ,EAAG,CAAC,EAAY,EAAY,CAAC,CAAqB,EAAK,MAAM,EAAE,CAAC,sBAAnY,IAAoD,IAA6B,CAAoT,EAAoB,EAAoB,CAAC,YAAY,CAAC,KAAK,EAAY,aAAa,MAAM,iBAAiB,CAAC,YAAY,CAAC,MAAM,mBAAmB,KAAK,EAAY,OAAO,aAAa,iBAAiB,CAAC,CAAC"}