{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/kE8XjSuZYjGUNEfdDvW8/FaD4TypgQrseCoeFxIzN/Redirect_with_data.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";/**\n * @framerDisableUnlink\n * @framerIntrinsicWidth 100\n * @framerIntrinsicHeight 50\n */export function withRedirectWrapper(Component){return props=>{const handleClick=()=>{// Captura os dados do formul\u00E1rio\nconst email=document.querySelector('input[name=\"email\"]')?.value||\"\";const firstName=document.querySelector('input[name=\"firstname\"]')?.value||\"\";const lastName=document.querySelector('input[name=\"lastname\"]')?.value||\"\";const phone=document.querySelector('input[name=\"phone\"]')?.value||\"\";// Combina firstname e lastname em um \u00FAnico campo\nconst fullName=`${firstName} ${lastName}`.trim();// Captura os par\u00E2metros UTM da URL atual\nconst currentUrl=new URL(window.location.href);const utmParams=new URLSearchParams(currentUrl.search);const utmString=Array.from(utmParams).filter(([key])=>key.startsWith(\"utm_\")).map(([key,value])=>`${key}=${encodeURIComponent(value)}`).join(\"&\");// Constr\u00F3i a URL de redirecionamento com os dados do formul\u00E1rio e UTMs\nconst baseUrl=`https://go.mevbrasil.com.br/pay/mevglobal-standard?&email=${encodeURIComponent(email)}&name=${encodeURIComponent(fullName)}&phone=${encodeURIComponent(phone)}`;const redirectUrl=utmString?`${baseUrl}&${utmString}`:baseUrl;// Redireciona o usu\u00E1rio\nwindow.location.href=redirectUrl;};return /*#__PURE__*/_jsx(\"div\",{onClick:handleClick,children:/*#__PURE__*/_jsx(Component,{...props})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withRedirectWrapper\":{\"type\":\"reactHoc\",\"name\":\"withRedirectWrapper\",\"annotations\":{\"framerIntrinsicHeight\":\"50\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"* @framerIntrinsicWidth 100\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Redirect_with_data.map"],
  "mappings": "8FAAAA,IAIU,SAASC,EAAoBC,EAAU,CAAC,OAAOC,GAKFC,EAAK,MAAM,CAAC,QALgB,IAAI,CACvF,IAAMC,EAAM,SAAS,cAAc,qBAAqB,GAAG,OAAO,GAASC,EAAU,SAAS,cAAc,yBAAyB,GAAG,OAAO,GAASC,EAAS,SAAS,cAAc,wBAAwB,GAAG,OAAO,GAASC,EAAM,SAAS,cAAc,qBAAqB,GAAG,OAAO,GACzRC,EAAS,GAAGH,CAAS,IAAIC,CAAQ,GAAG,KAAK,EACzCG,EAAW,IAAI,IAAI,OAAO,SAAS,IAAI,EAAQC,EAAU,IAAI,gBAAgBD,EAAW,MAAM,EAAQE,EAAU,MAAM,KAAKD,CAAS,EAAE,OAAO,CAAC,CAACE,CAAG,IAAIA,EAAI,WAAW,MAAM,CAAC,EAAE,IAAI,CAAC,CAACA,EAAIC,CAAK,IAAI,GAAGD,CAAG,IAAI,mBAAmBC,CAAK,CAAC,EAAE,EAAE,KAAK,GAAG,EAChPC,EAAQ,6DAA6D,mBAAmBV,CAAK,CAAC,SAAS,mBAAmBI,CAAQ,CAAC,UAAU,mBAAmBD,CAAK,CAAC,GAASQ,EAAYJ,EAAU,GAAGG,CAAO,IAAIH,CAAS,GAAGG,EACrO,OAAO,SAAS,KAAKC,CAAY,EAAsD,SAAsBZ,EAAKF,EAAU,CAAC,GAAGC,CAAK,CAAC,CAAC,CAAC,CAAI",
  "names": ["init_ssg_sandbox_shims", "withRedirectWrapper", "Component", "props", "p", "email", "firstName", "lastName", "phone", "fullName", "currentUrl", "utmParams", "utmString", "key", "value", "baseUrl", "redirectUrl"]
}
