{"version":3,"file":"CaptureUTMInput.Dqa5iHNL.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/rzrjttsEL9wVlOgBO6Qu/CsQREtAaZgA4iiZt7UsK/CaptureUTMInput.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";export function withUTMParams(Component){return props=>{const[value,setValue]=useState(\"\");useEffect(()=>{const stored=localStorage.getItem(\"utm_params\");if(stored){const utmParams=JSON.parse(stored);const utmString=Object.entries(utmParams).map(([key,val])=>`${key}=${val}`).join(\"&\");console.log(\"✅ UTM recuperado do localStorage:\",utmParams);console.log(\"✅ UTM como string:\",utmString);setValue(utmString);}else{console.log(\"⚠️ Nenhum UTM encontrado no localStorage\");}},[]);const handleInputChange=event=>{setValue(event.target.value);};return /*#__PURE__*/_jsx(Component,{...props,value:value,defaultValue:value,onChange:handleInputChange});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withUTMParams\":{\"type\":\"reactHoc\",\"name\":\"withUTMParams\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CaptureUTMInput.map"],"mappings":"yHAAiF,SAAgB,EAAc,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAM,GAAUA,EAAS,GAAG,CAAC,MAAc,CAAC,IAAM,EAAO,aAAa,QAAQ,aAAa,CAAC,GAAG,EAAO,CAAC,IAAM,EAAU,KAAK,MAAM,EAAO,CAAO,EAAU,OAAO,QAAQ,EAAU,CAAC,KAAK,CAAC,EAAI,KAAO,GAAG,EAAI,GAAG,IAAM,CAAC,KAAK,IAAI,CAAC,QAAQ,IAAI,oCAAoC,EAAU,CAAC,QAAQ,IAAI,qBAAqB,EAAU,CAAC,EAAS,EAAU,MAAO,QAAQ,IAAI,2CAA2C,EAAI,EAAE,CAAC,CAAC,IAAM,EAAkB,GAAO,CAAC,EAAS,EAAM,OAAO,MAAM,EAAG,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAY,QAAM,aAAa,EAAM,SAAS,EAAkB,CAAC,mBAA3qB,IAAsC"}