{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/tNPkezJzdJqnKNndVRsx/ojV5Su9RWkoXIB94Quzz/WithAllParams.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";// Made with love by Cl\u00E9ment: https://lionneclement.com/\n// Full tutorial: https://framermart.com/tutorial/how-to-track-utm-parameters-in-framer-forms\nexport function withAllParams(Component){return props=>{useEffect(()=>{if(typeof window!==\"undefined\"){const params=new URLSearchParams(window.location.search);const form=document.querySelector(`form.${props.className}`);if(form){params.forEach((value,key)=>{const input=document.createElement(\"input\");input.type=\"hidden\";input.name=key;input.value=value;form.appendChild(input);});}}},[props.className]);return /*#__PURE__*/_jsx(Component,{...props});};}export function withUTMParams(Component){return props=>{useEffect(()=>{if(typeof window!==\"undefined\"){const params=new URLSearchParams(window.location.search);const form=document.querySelector(`form.${props.className}`);if(form){params.forEach((value,key)=>{if(key.startsWith(\"utm\")){const input=document.createElement(\"input\");input.type=\"hidden\";input.name=key;input.value=value;form.appendChild(input);}});}}},[props.className]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withAllParams\":{\"type\":\"reactHoc\",\"name\":\"withAllParams\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUTMParams\":{\"type\":\"reactHoc\",\"name\":\"withUTMParams\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WithAllParams.map"],
  "mappings": "yFAE+c,SAASA,EAAcC,EAAU,CAAC,OAAOC,IAAQC,EAAU,IAAI,CAAC,GAAG,OAAOC,EAAS,IAAY,CAAC,IAAMC,EAAO,IAAI,gBAAgBD,EAAO,SAAS,MAAM,EAAQE,EAAK,SAAS,cAAc,QAAQJ,EAAM,SAAS,EAAE,EAAKI,GAAMD,EAAO,QAAQ,CAACE,EAAMC,IAAM,CAAC,GAAGA,EAAI,WAAW,KAAK,EAAE,CAAC,IAAMC,EAAM,SAAS,cAAc,OAAO,EAAEA,EAAM,KAAK,SAASA,EAAM,KAAKD,EAAIC,EAAM,MAAMF,EAAMD,EAAK,YAAYG,CAAK,CAAE,CAAC,CAAC,CAAG,CAAC,EAAE,CAACP,EAAM,SAAS,CAAC,EAAsBQ,EAAKT,EAAU,CAAC,GAAGC,CAAK,CAAC,EAAI",
  "names": ["withUTMParams", "Component", "props", "ue", "window", "params", "form", "value", "key", "input", "p"]
}
