{"version":3,"file":"GTMTrackAction.CUI2xViB.mjs","names":["useState"],"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":"wLACmD,SAAgB,EAAkB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,EAAU,GAAcA,EAAS,EAAE,EAAE,MAAoB,CAAI,GAAO,MAAM,EAAa,EAAsB,GAAO,IAAI,CAAC,CAAG,EAAE,CAAC,GAAO,IAAI,CAAC,EAAE,SAAS,EAAsB,EAAQ,CAAC,IAAM,EAAS,EAAQ,UAAU,EAAQ,YAAY,GAAG,EAAE,CAAC,EAAQ,EAAa,EAAS,YAAY,GAAG,EAAE,OAAO,IAAe,GAAG,EAAS,EAAS,UAAU,EAAE,CAAY,CAAE,CAA0D,OAAoB,EAAK,EAAU,CAAK,MAAI,UAAU,GAAlG,EAAM,UAAU,GAAG,EAAU,eAAyE,GAAG,CAAK,CAAC,CAAE,CAAC,CAAE,CAAC,SAAgB,EAAQ,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAuE,EAAK,EAAU,CAAK,MAAI,UAAU,GAArF,EAAM,UAAU,eAAyE,GAAG,CAAK,CAAC,CAAG,CAAE,iBADpxB,IAAuD,IAAqE,EACvJ,EAAY,CAAC,WAAW,SAAS,CAAC"}