{"version":3,"file":"OpenDownloadFile_1.CUums24D.mjs","names":[],"sources":["https:/framerusercontent.com/modules/3avVkbdAbF4GwRrFvqDq/OZqNbGMsGGAoCmiJPwNQ/OpenDownloadFile_1.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";const useStore=createStore({showDownloadOverlay:false});export function withOpenDownloadOverlay(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();useEffect(()=>{if(store.showDownloadOverlay){props.click();}},[store]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props});});}export function withSetActiveState(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();const handleClick=e=>{if(props.onClick())props.onClick();setStore({showDownloadOverlay:!store.showDownloadOverlay});};return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onClick:handleClick});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withOpenDownloadOverlay\":{\"type\":\"reactHoc\",\"name\":\"withOpenDownloadOverlay\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSetActiveState\":{\"type\":\"reactHoc\",\"name\":\"withSetActiveState\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./OpenDownloadFile_1.map"],"mappings":"iLAAgN,SAAgB,EAAwB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,EAAM,GAAU,GAAU,CAAwE,OAAvE,MAAc,CAAI,EAAM,qBAAqB,EAAM,OAAO,EAAI,CAAC,EAAM,CAAC,CAAqB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,CAAC,EAAG,CAAE,SAAgB,EAAmB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,EAAM,GAAU,GAAU,CAAO,EAAY,GAAG,CAAI,EAAM,SAAS,EAAC,EAAM,SAAS,CAAC,EAAS,CAAC,oBAAoB,CAAC,EAAM,oBAAoB,CAAC,EAAG,OAAoB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,QAAQ,EAAY,CAAC,EAAG,oBAAvuB,IAAwC,IAAqE,CAAM,EAAS,EAAY,CAAC,oBAAoB,GAAM,CAAC"}