{"version":3,"file":"ClickableCard.CbTo3_bJ.mjs","names":[],"sources":["https:/framerusercontent.com/modules/7RmqosZPYvPJRX95kY7A/sKhRgEVEFpBBVWhzisWF/ClickableCard.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";// Makes the entire card clickable\n// Apply this to Newsletter Archive, Article Archive, Events Articles, or CaseStudies Archive components\nexport function withClickableCard(Component){return props=>{const handleClick=e=>{// Don't navigate if clicking on an existing link inside the card\nconst target=e.target;if(target.closest(\"a\"))return;// Framer passes the link prop with various internal names\nconst link=props.link||props.gDadcd2fn||props.href;if(link&&typeof link===\"string\"){// Check if it's an external link\nif(link.startsWith(\"http\")){window.open(link,props.linkOpenInNewTab?\"_blank\":\"_self\");}else{window.location.href=link;}}};const link=props.link||props.gDadcd2fn||props.href;return /*#__PURE__*/_jsx(\"div\",{onClick:handleClick,style:{cursor:link?\"pointer\":\"default\",display:\"contents\"},children:/*#__PURE__*/_jsx(Component,{...props})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withClickableCard\":{\"type\":\"reactHoc\",\"name\":\"withClickableCard\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ClickableCard.map"],"mappings":"kHAEA,SAAgB,EAAkB,EAAU,CAAC,MAAO,IAG6I,EAAK,MAAM,CAAC,QAH/H,GAAG,CAC3D,GAAT,EAAE,OAAiB,QAAQ,IAAI,CAAC,OAC7C,IAAM,EAAK,EAAM,MAAM,EAAM,WAAW,EAAM,KAAQ,GAAM,OAAO,GAAO,WACvE,EAAK,WAAW,OAAO,CAAE,EAAO,KAAK,EAAK,EAAM,iBAAiB,SAAS,QAAQ,CAAO,EAAO,SAAS,KAAK,IAAgH,MAAM,CAAC,OAAnG,EAAM,MAAM,EAAM,WAAW,EAAM,KAA4E,UAAU,UAAU,QAAQ,WAAW,CAAC,SAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,CAAC,CAAC,sBALnS"}