{"version":3,"file":"TypeformLink.CQLtKNdK.mjs","names":[],"sources":["https:/framerusercontent.com/modules/RM78TWTvyqYEMG9svvJp/Ia6ukbcf7UwZAQ0bJqUt/TypeformLink.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";export function withTypeformLink(Component){return props=>{const handleClick=e=>{e.preventDefault();const currentParams=new URLSearchParams(window.location.search);const trackingKeys=[\"utm_source\",\"utm_medium\",\"utm_campaign\",\"utm_content\",\"utm_term\",\"fbclid\",\"gclid\"];const forwarded=new URLSearchParams;trackingKeys.forEach(key=>{const val=currentParams.get(key);if(val)forwarded.append(key,val);});const baseUrl=\"https://thickandthin.typeform.com/to/krWklVIU\";const queryString=forwarded.toString();const finalUrl=queryString?`${baseUrl}?${queryString}`:baseUrl;window.location.href=finalUrl;};return /*#__PURE__*/_jsx(Component,{...props,onClick:handleClick});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withTypeformLink\":{\"type\":\"reactHoc\",\"name\":\"withTypeformLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TypeformLink.map"],"mappings":"kHAA2C,SAAgB,EAAiB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAY,GAAG,CAAC,EAAE,gBAAgB,CAAC,IAAM,EAAc,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAAO,EAAa,CAAC,aAAa,aAAa,eAAe,cAAc,WAAW,SAAS,QAAQ,CAAO,EAAU,IAAI,gBAAgB,EAAa,QAAQ,GAAK,CAAC,IAAM,EAAI,EAAc,IAAI,EAAI,CAAI,GAAI,EAAU,OAAO,EAAI,EAAI,EAAG,CAAC,IAAM,EAAQ,gDAAsD,EAAY,EAAU,UAAU,CAAO,EAAS,EAAY,GAAG,EAAQ,GAAG,IAAc,EAAQ,EAAO,SAAS,KAAK,GAAW,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,EAAY,CAAC,uBAAtpB"}