{"version":3,"file":"WithQueryParamsNEW.C0b7OxTb.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/JCjP9Z20AlVJDt5zGeMi/Yf0QLpo7k0BfNgMbJwQY/WithQueryParamsNEW.js"],"sourcesContent":["// NOTE: WithQueryParams.tsx and WithQueryParamsNEW.tsx are DUPLICATES and\n// BOTH are live — elements reference one or the other (roughly 178 vs 43).\n// Edit both identically, or better: consolidate onto one file and delete the\n// other. An edit to only one file silently forks CTA behavior.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";// Learn more: https://www.framer.com/docs/guides/overrides/\nexport function withQueryParams(Component){return props=>{const[params,setParams]=useState(\"\");useEffect(()=>{if(globalThis?.location?.search){setParams(globalThis?.location?.search||\"\");}},[]);if(props?.href){// Join with & when the href already carries a query string —\n// naive concatenation produced a second \"?\" that corrupted the\n// first baked-in param (e.g. src=general-cta) for visitors\n// arriving with query params of their own.\nconst merged=params?props.href.includes(\"?\")?props.href+\"&\"+params.slice(1):props.href+params:props.href;return /*#__PURE__*/_jsx(Component,{...props,href:merged});}return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withQueryParams\":{\"type\":\"reactHoc\",\"name\":\"withQueryParams\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WithQueryParamsNEW.map"],"mappings":"yHAKA,SAAgB,EAAgB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAO,GAAWA,EAAS,EAAE,EAAqG,GAAnG,MAAc,CAAI,YAAY,UAAU,QAAQ,EAAU,YAAY,UAAU,QAAQ,EAAE,CAAG,EAAE,CAAC,CAAC,EAAK,GAAO,KAAK,CAIjN,IAAM,EAAO,EAAO,EAAM,KAAK,SAAS,GAAG,EAAE,EAAM,KAAK,IAAI,EAAO,MAAM,CAAC,EAAE,EAAM,KAAK,EAAO,EAAM,KAAK,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,KAAK,CAAM,CAAC,CAAE,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,CAAE,CAAE,iBAL5K,IAAsC"}