{"version":3,"file":"Button_tracking_log_in.pIj2PD56.mjs","names":[],"sources":["https:/framerusercontent.com/modules/zFWDdX75FNC6WZoRZ4r9/R2fbduBDJ7whNWmf79bl/Button_tracking_log_in.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export function withSectionTracking(Component){return props=>{const{section,onClick,...rest}=props;const handleClick=event=>{if(typeof window!==\"undefined\"){window.dataLayer=window.dataLayer||[];const element=event.currentTarget;window.dataLayer.push({event:\"button_click\",button_section:section||\"login\",button_text:element.innerText?.trim()||\"\",button_url:element.getAttribute(\"href\")||\"\",page_path:window.location.pathname});}if(onClick){onClick(event);}};return /*#__PURE__*/_jsx(Component,{...rest,onClick:handleClick});};}addPropertyControls(withSectionTracking,{section:{type:ControlType.String,title:\"Section\",defaultValue:\"unknown\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"withSectionTracking\":{\"type\":\"reactHoc\",\"name\":\"withSectionTracking\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Button_tracking_log_in.map"],"mappings":"qKAA+F,SAAgB,EAAoB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,UAAQ,UAAQ,GAAG,GAAM,EAAY,EAAY,GAAO,CAAC,GAAU,IAAS,OAAY,CAAC,EAAO,UAAU,EAAO,WAAW,CAAC,EAAE,IAAM,EAAQ,EAAM,cAAc,EAAO,UAAU,KAAK,CAAC,MAAM,eAAe,eAAe,GAAS,QAAQ,YAAY,EAAQ,WAAW,KAAK,GAAG,GAAG,WAAW,EAAQ,aAAa,MAAM,GAAG,GAAG,UAAU,EAAO,SAAS,QAAQ,CAAC,CAAE,CAAI,GAAS,EAAQ,CAAK,CAAG,EAAE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAK,QAAQ,CAAW,CAAC,CAAE,CAAE,qBAApkB,IAAoD,EAAihB,EAAoB,EAAoB,CAAC,QAAQ,CAAC,KAAK,EAAY,OAAO,MAAM,UAAU,aAAa,SAAS,CAAC,CAAC"}