{"version":3,"file":"Main.DPrk45DA.mjs","names":["__esmMin","init_ssg_sandbox_shims","window","c","init_jsx_runtime","withTags","url","search","key","value","Component","props","init_Main"],"sources":["https:/framerusercontent.com/modules/y4467V5Wc3bqxmR9iWL1/soIYsTaqoCe7bArT92ft/Main.js"],"sourcesContent":["// This script adds the fi form flow url and appends the appropriate qstrings that come from origin\nimport{jsx as _jsx}from\"react/jsx-runtime\";export function withTags(Component){return props=>{// Set the base form flow link\nlet baseUrl=\"https://info.fisherinvestments.com/en-us/campaigns/main/learn\";const url=new URL(baseUrl);// Add existing URL search parameters\nconst search=window.location.search;const currentParams=new URLSearchParams(search);currentParams.forEach((value,key)=>{url.searchParams.set(key,value);});// add the link around the component and remove the link in the component\nreturn /*#__PURE__*/_jsx(Component,{...props,href:url.toString()});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withTags\":{\"type\":\"reactHoc\",\"name\":\"withTags\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Main.map"],"mappings":"A,kHAC2C,SAAgBK,EAAS,EAAU,CAAC,MAAO,IAAO,CACjB,IAAMC,EAAI,IAAI,IAAI,+DAAO,EAC/FC,EAAOL,EAAO,SAAS,OAC7B,OADoF,IAAxB,gBAAgBK,CAAoB,CAAC,CAAC,SAAS,EAAM,IAAM,CAACD,EAAI,aAAa,IAAIE,EAAIC,CAAK,CAAE,CAAC,EACrI,gBAAKC,EAAU,CAAC,GAAGC,EAAM,KAAKL,EAAI,SAAS,CAAC,CAAC,CAAE,CAAE,C"}