{"version":3,"file":"EventLoggerInitialize.DscGFmKA.mjs","names":[],"sources":["https:/framerusercontent.com/modules/sSMPUQxuN2KX5uJ13m1U/E8nfXv01lYl5y7c7i9eE/EventLoggerInitialize.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect}from\"react\";export function withEventLoggerInitialize(Component){return /*#__PURE__*/forwardRef((props,ref)=>{useEffect(()=>{window?.eventLogger?.initialize({version:\"1.0.0\",name:\"mybridge_blog\"});const pathname=window.location.pathname||\"/\";if(pathname===\"/whitepaper\"){window?.eventLogger?.logger({name:\"view_whitepaperMain\"});}else if(pathname.startsWith(\"/whitepaper\")){const whitePaperId=window.location.pathname.split(\"/\").pop();window?.eventLogger?.logger({name:\"view_whitepaperDetail\",property:{white_paper_id:whitePaperId}});}},[]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withEventLoggerInitialize\":{\"type\":\"reactHoc\",\"name\":\"withEventLoggerInitialize\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./EventLoggerInitialize.map"],"mappings":"uIAAmF,SAAgB,EAA0B,EAAU,CAAC,OAAoB,GAAY,EAAM,KAAO,MAAc,CAAC,GAAQ,aAAa,WAAW,CAAC,QAAQ,QAAQ,KAAK,gBAAgB,CAAC,CAAC,IAAM,EAAS,EAAO,SAAS,UAAU,IAAI,GAAG,IAAW,cAAe,GAAQ,aAAa,OAAO,CAAC,KAAK,sBAAsB,CAAC,SAAU,EAAS,WAAW,cAAc,CAAC,CAAC,IAAM,EAAa,EAAO,SAAS,SAAS,MAAM,IAAI,CAAC,KAAK,CAAC,GAAQ,aAAa,OAAO,CAAC,KAAK,wBAAwB,SAAS,CAAC,eAAe,EAAa,CAAC,CAAC,GAAI,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,CAAC,EAAG,sBAAlnB,IAAwC"}