{"version":3,"file":"ButtonClick.CPA-HQbe.mjs","names":[],"sources":["https:/framerusercontent.com/modules/dKYsu72C5foi8VhYLnKd/TaUOvrFMqEAaCPJYpcTe/ButtonClick.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";// Define your custom hook or utility if needed\nexport function TriggerButton(Component){return props=>{// Extract query string from the current URL\nconst queryString=new URLSearchParams(window.location.search).toString();// Define your custom function for the click event\nconst handleClick=()=>{fbqEvent(\"DownloadClick\");return;const eventId=\"event_\"+Math.random().toString(36).substring(2,11);// Facebook Pixel tracking\nif(typeof fbq!==\"undefined\"){fbq(\"track\",\"DownloadClick\",{eventID:eventId});}// API tracking\ntry{fetch(`https://api-ai.impresso.com/api/pixel/track-event?event_name=DownloadClick&event_id=${eventId}&${queryString}`);}catch(error){console.error(\"Error tracking click:\",error);}};return /*#__PURE__*/_jsx(Component,{...props,onClick:handleClick,children:props.children||\"Click Me\"});};}export function withRotate(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,animate:{rotate:90},transition:{duration:2}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TriggerButton\":{\"type\":\"reactHoc\",\"name\":\"TriggerButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ButtonClick.map"],"mappings":"kHACA,SAAgB,EAAc,EAAU,CAAC,MAAO,IAAO,CACrC,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAAC,UAAU,CACxE,IAAM,MAAgB,CAAC,SAAS,gBAAgB,EAEyI,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,EAAY,SAAS,EAAM,UAAU,WAAW,CAAC,uBALpP"}