{"version":3,"file":"ExternalButtonLink.BotUIX24.mjs","names":[],"sources":["https:/framerusercontent.com/modules/1UWPewBama3OI4Vnyj20/f284lnAwvSxH71uhfZW1/ExternalButtonLink.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";// Learn more: https://www.framer.com/developers/overrides\nexport function addQueries(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props});const currentUrl=props.href&&!props.href.toString().startsWith(\".\")&&new URL(props.href);const[isLoading,setIsLoading]=useState(true);const urlParams=new URLSearchParams(window&&window.location&&window.location.search);const[params,setParams]=useState();props.href=params&&props.href+params;useEffect(()=>{if(urlParams.toString()&&currentUrl&&currentUrl.searchParams.size===0){setParams(\"?\"+urlParams.toString());}setIsLoading(false);},[]);return!isLoading&&/*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"addQueries\":{\"type\":\"reactHoc\",\"name\":\"addQueries\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ExternalButtonLink.map"],"mappings":"kHACA,SAAgB,EAAW,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,sBADxD,IAAsC"}