{"version":3,"file":"WithSoft404Override.B7-HNnc9.mjs","names":[],"sources":["https:/framerusercontent.com/modules/dmv8erN164VhiPcTXbZN/gq0AXs8hkmNx7sFlINOX/WithSoft404Override.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export function with404Override(Component){const WrappedComponent=Component;return function With404Override(props){useEffect(()=>{if(typeof window===\"undefined\")return;const pathname=window.location?.pathname??\"\";const userAgent=window.navigator?.userAgent??\"\";const isBot=/bot|-Google|Google(?:bot)?-|yandex|ia_archiver/i.test(userAgent);if(pathname&&pathname!==\"/404\"&&isBot){window.location.href=\"/404\";}},[]);return /*#__PURE__*/_jsx(WrappedComponent,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"with404Override\":{\"type\":\"reactHoc\",\"name\":\"with404Override\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WithSoft404Override.map"],"mappings":"gIAAwE,SAAgB,EAAgB,EAAU,CAAC,IAAM,EAAiB,EAAU,OAAO,SAAyB,EAAM,CAA2S,OAA1S,MAAc,CAAC,GAAU,IAAS,OAAY,OAAO,IAAM,EAAS,EAAO,UAAU,UAAU,GAAS,EAAU,EAAO,WAAW,WAAW,GAAS,EAAM,kDAAkD,KAAK,CAAS,EAAK,GAAU,IAAW,QAAQ,IAAO,EAAO,SAAS,KAAK,OAAQ,EAAE,CAAC,CAAC,EAAsB,EAAK,EAAiB,CAAC,GAAG,CAAK,CAAC,CAAE,CAAE,qBAAnf,IAA6B"}