{"version":3,"file":"CTA_AddParams.B3js0ODe.mjs","names":[],"sources":["https:/framerusercontent.com/modules/b7vZrqx5YX5CeWk1Cn2Y/kL4x5K6N8akdCFt0HSop/CTA_AddParams.js"],"sourcesContent":["// This script adds the fi evergreen form flow url and appends the appropriate qstrings\nimport{jsx as _jsx}from\"react/jsx-runtime\";export function withTags(Component){const baseUrl=\"https://www.fisherinvestments.com/en-us/campaigns/forms/flow-1/form\";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 utag_data-based params if available\nif(typeof utag_data!==\"undefined\"){const offerCode=utag_data.offer_code||\"\";const alleyCode=utag_data.alley_code||\"\";const pageVersion=utag_data.page_version||\"\";const contentTemplate=\"wat_\"+offerCode.toLowerCase()+\"_con\";url.searchParams.set(\"fict\",contentTemplate);url.searchParams.set(\"offer_code\",offerCode);url.searchParams.set(\"alleycode\",alleyCode);url.searchParams.set(\"page_version\",pageVersion);}return props=>{return /*#__PURE__*/_jsx(Component,{...props,href:url.toString()});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withTags\":{\"type\":\"reactHoc\",\"name\":\"withTags\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CTA_AddParams.map"],"mappings":"kHAC2C,SAAgB,EAAS,EAAU,CAAqF,IAAM,EAAI,IAAI,IAApF,sEAAgG,CACvL,EAAO,EAAO,SAAS,OAC7B,GADwD,IAAI,gBAAgB,EAAO,CAAe,SAAS,EAAM,IAAM,CAAC,EAAI,aAAa,IAAI,EAAI,EAAM,EAAG,CACvJ,OAAO,UAAY,IAAY,CAAC,IAAM,EAAU,UAAU,YAAY,GAAS,EAAU,UAAU,YAAY,GAAS,EAAY,UAAU,cAAc,GAAS,EAAgB,OAAO,EAAU,aAAa,CAAC,OAAO,EAAI,aAAa,IAAI,OAAO,EAAgB,CAAC,EAAI,aAAa,IAAI,aAAa,EAAU,CAAC,EAAI,aAAa,IAAI,YAAY,EAAU,CAAC,EAAI,aAAa,IAAI,eAAe,EAAY,CAAE,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,KAAK,EAAI,UAAU,CAAC,CAAC,sBAF5b"}