{"version":3,"file":"GTMTrackAction.DDVEYOne.mjs","names":["useState","__esmMin","init_npm_react_18_3_1","le","init_jsx_runtime","J","c","_e","createStore","init_store_js__1_0","withAnalyticsData","caseStudy","setCaseStudy","props","getFilenameFromString","basename","urlPath","lastDotIndex","cls","Component","withCTA","init_GTMTrackAction"],"sources":["https:/framerusercontent.com/modules/Kwe0505zJUIL5IaNxSXe/bWNGu7yuQwlK6u4c5kv7/GTMTrackAction.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useLayoutEffect,useState}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";// Learn more: https://www.framer.com/developers/overrides/\nconst useStore=createStore({background:\"#0099FF\"});export function withAnalyticsData(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[caseStudy,setCaseStudy]=useState(\"\");useLayoutEffect(()=>{if(props?.link){setCaseStudy(getFilenameFromString(props?.link));}},[props?.link]);function getFilenameFromString(urlPath){const basename=urlPath.substring(urlPath.lastIndexOf(\"/\")+1);const lastDotIndex=basename.lastIndexOf(\".\");return lastDotIndex===-1?basename:basename.substring(0,lastDotIndex);}const cls=`${props.className} ${caseStudy} gain-pro-cta`;return /*#__PURE__*/_jsx(Component,{ref:ref,className:cls,...props});});}export function withCTA(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const cls=`${props.className} gain-pro-cta`;return /*#__PURE__*/_jsx(Component,{ref:ref,className:cls,...props});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withAnalyticsData\":{\"type\":\"reactHoc\",\"name\":\"withAnalyticsData\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCTA\":{\"type\":\"reactHoc\",\"name\":\"withCTA\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GTMTrackAction.map"],"mappings":"A,wLACmD,SAAgBU,EAAkB,EAAU,CAAC,MAAoB,iBAAY,EAAM,IAAM,CAAC,GAAK,CAACC,EAAUC,GAAcZ,EAAS,EAAE,EAAEG,MAAoB,CAAIU,GAAO,MAAMD,EAAaE,EAAsBD,GAAO,IAAI,CAAC,CAAG,EAAE,CAACA,GAAO,IAAI,CAAC,EAAE,SAASC,EAAsB,EAAQ,CAAC,IAAMC,EAASC,EAAQ,UAAUA,EAAQ,YAAY,GAAG,EAAE,CAAC,EAAQC,EAAaF,EAAS,YAAY,GAAG,EAAE,OAAOE,IAAe,GAAGF,EAASA,EAAS,UAAU,EAAEE,CAAY,CAAE,CAAC,IAAMC,EAAI,GAAGL,EAAM,UAAU,GAAGF,EAAU,eAAe,MAAoB,gBAAKQ,EAAU,CAAK,MAAI,UAAUD,EAAI,GAAGL,CAAK,CAAC,CAAE,CAAC,CAAE,CAAC,SAAgBO,EAAQ,EAAU,CAAC,MAAoB,iBAAY,EAAM,IAAM,CAAC,IAAMF,EAAI,GAAGL,EAAM,UAAU,eAAe,MAAoB,gBAAKM,EAAU,CAAK,MAAI,UAAUD,EAAI,GAAGL,CAAK,CAAC,CAAE,CAAC,CAAE,C,0CAA/yBL,EAAY,CAAC,WAAW,SAAS,CAAC,C"}