{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/HQJ90KUOVAE9YdcF14tT/tYgzyHZThBbT9SMvM25X/Url_parameter_click_excel_A1.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";export function withSrcFromAllParams(Component){return props=>{const[modifiedHref,setModifiedHref]=useState(\"\");// Defina o valor do bot\u00E3o aqui, de modo que possa ser facilmente alterado\nconst sessionValue=\"clickexcela1\"// Voc\u00EA pode alterar este valor para o que desejar\n;useEffect(()=>{if(typeof window!==\"undefined\"){try{const urlParams=new URLSearchParams(window.location.search);// Concatena todos os par\u00E2metros relevantes em um \u00FAnico valor `src`\nconst srcValue=`${sessionValue}|${urlParams.get(\"utm_source\")||\"\"}|${urlParams.get(\"utm_medium\")||\"\"}|${urlParams.get(\"utm_campaign\")||\"\"}|${urlParams.get(\"utm_group\")||\"\"}|${urlParams.get(\"utm_content\")||\"\"}|${urlParams.get(\"device\")||\"\"}|${urlParams.get(\"utm_term\")||\"\"}|${urlParams.get(\"matchtype\")||\"\"}`.replace(/^\\|+|\\|+$/g,\"\")// Remove barras verticais no in\u00EDcio ou no final\n;// Reconstr\u00F3i a URL com apenas o par\u00E2metro `src`\nlet href=props.href.split(\"?\")[0]// Base da URL\n;if(srcValue){href=`${href}?src=${encodeURIComponent(srcValue)}`;}setModifiedHref(href);}catch(error){console.error(\"Error processing the URL parameters:\",error);setModifiedHref(props.href);}}else{setModifiedHref(props.href);}},[props.href]);return /*#__PURE__*/_jsx(Component,{...props,href:modifiedHref||props.href});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withSrcFromAllParams\":{\"type\":\"reactHoc\",\"name\":\"withSrcFromAllParams\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Url_parameter_click_excel_A1.map"],
  "mappings": "gGAAwF,SAASA,EAAqBC,EAAU,CAAC,OAAOC,GAAO,CAAC,GAAK,CAACC,EAAaC,CAAe,EAAEC,EAAS,EAAE,EACzLC,EAAa,eAClB,OAAAC,EAAU,IAAI,CAAC,GAAG,OAAOC,EAAS,IAAa,GAAG,CAAC,IAAMC,EAAU,IAAI,gBAAgBD,EAAO,SAAS,MAAM,EACxGE,EAAS,GAAGJ,CAAY,IAAIG,EAAU,IAAI,YAAY,GAAG,EAAE,IAAIA,EAAU,IAAI,YAAY,GAAG,EAAE,IAAIA,EAAU,IAAI,cAAc,GAAG,EAAE,IAAIA,EAAU,IAAI,WAAW,GAAG,EAAE,IAAIA,EAAU,IAAI,aAAa,GAAG,EAAE,IAAIA,EAAU,IAAI,QAAQ,GAAG,EAAE,IAAIA,EAAU,IAAI,UAAU,GAAG,EAAE,IAAIA,EAAU,IAAI,WAAW,GAAG,EAAE,GAAG,QAAQ,aAAa,EAAE,EAEvUE,EAAKT,EAAM,KAAK,MAAM,GAAG,EAAE,CAAC,EAC5BQ,IAAUC,EAAK,GAAGA,CAAI,QAAQ,mBAAmBD,CAAQ,CAAC,IAAIN,EAAgBO,CAAI,CAAE,OAAOC,EAAM,CAAC,QAAQ,MAAM,uCAAuCA,CAAK,EAAER,EAAgBF,EAAM,IAAI,CAAE,MAAOE,EAAgBF,EAAM,IAAI,CAAG,EAAE,CAACA,EAAM,IAAI,CAAC,EAAsBW,EAAKZ,EAAU,CAAC,GAAGC,EAAM,KAAKC,GAAcD,EAAM,IAAI,CAAC,CAAE,CAAE",
  "names": ["withSrcFromAllParams", "Component", "props", "modifiedHref", "setModifiedHref", "ye", "sessionValue", "ue", "window", "urlParams", "srcValue", "href", "error", "p"]
}
