{"version":3,"file":"Form.B2eYZ_JS.mjs","names":[],"sources":["https:/framerusercontent.com/modules/Te2AdAWcVjiJnsZyAR77/Ki7rLCCC5lfO5Pv8GPQj/Form.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";// 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\":{\"withUTMParams\":{\"type\":\"reactHoc\",\"name\":\"withUTMParams\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAllParams\":{\"type\":\"reactHoc\",\"name\":\"withAllParams\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Form.map"],"mappings":"gIACwc,SAAgB,EAAc,EAAU,CAAC,MAAO,KAAQ,MAAc,CAAC,GAAU,IAAS,OAAY,CAAC,IAAM,EAAO,IAAI,gBAAgB,EAAO,SAAS,MAAM,EAAQ,EAAK,SAAS,cAAc,QAAQ,EAAM,WAAW,EAAK,GAAM,EAAO,SAAS,EAAM,IAAM,CAAC,GAAG,EAAI,WAAW,KAAK,EAAE,CAAC,IAAM,EAAM,SAAS,cAAc,OAAO,EAAE,EAAM,KAAK,SAAS,EAAM,KAAK,EAAI,EAAM,MAAM,EAAM,EAAK,YAAY,CAAK,CAAE,CAAC,CAAC,CAAG,CAAC,EAAE,CAAC,EAAM,SAAS,CAAC,EAAsB,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,EAAI,qBADh4B,IAA6B"}