{"version":3,"file":"LinkOverride.DzpzO2J-.mjs","names":[],"sources":["https:/framerusercontent.com/modules/cRNDg1wfXzYwvhe681y6/JE4zKoDovcmkIpehw23v/LinkOverride.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";export function withEnglishLink(Component){return props=>{const isEnglish=typeof window!==\"undefined\"&&window.location.pathname.startsWith(\"/en/\");const transform=url=>url.replace(/\\/ferramentas\\//g,\"/en/apps/\").replace(/\\/integracao(\\/|$)/g,\"/integration$1\");const newProps=isEnglish?{...props,...props.href&&{href:transform(props.href)},...props.link&&{link:transform(props.link)},...props.url&&{url:transform(props.url)}}:props;return /*#__PURE__*/_jsx(Component,{...newProps});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withEnglishLink\":{\"type\":\"reactHoc\",\"name\":\"withEnglishLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LinkOverride.map"],"mappings":"kHAA2C,SAAgB,EAAgB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAiB,IAAS,QAAa,EAAO,SAAS,SAAS,WAAW,OAAO,CAAO,EAAU,GAAK,EAAI,QAAQ,mBAAmB,YAAY,CAAC,QAAQ,sBAAsB,iBAAiB,CAA4K,OAAoB,EAAK,EAAU,CAAC,GAAhM,EAAU,CAAC,GAAG,EAAM,GAAG,EAAM,MAAM,CAAC,KAAK,EAAU,EAAM,KAAK,CAAC,CAAC,GAAG,EAAM,MAAM,CAAC,KAAK,EAAU,EAAM,KAAK,CAAC,CAAC,GAAG,EAAM,KAAK,CAAC,IAAI,EAAU,EAAM,IAAI,CAAC,CAAC,CAAC,EAAsD,CAAC,uBAAhe"}