{"version":3,"file":"static/chunks/pages/404-e6b98729c80d2a11.js","mappings":"0aACA,CAAAA,OAAAC,QAAA,CAAAD,OAAAC,QAAA,MAAAC,IAAA,EACA,OACA,WACA,OAAeC,EAAQ,KACvB,EACA,wHCwBAC,CAAAA,EAAA,QAxBqB,OAAC,CAAEC,UAAAA,CAAS,CAAE,CAAAC,EAC3B,CAAEJ,KAAAA,CAAI,CAAEK,SAAAA,CAAQ,CAAE,CAAGC,CAAAA,EAAAA,EAAAA,SAAAA,WAG3B,EAAaC,KAAK,CAFK,wCAIrBP,EACE,GAAgBQ,MAAA,CAFGC,8BAEH,2HAEX,CAAC,GAEH,GAAAC,EAAAC,GAAA,EAACC,EAAAA,CAAQA,CAAAA,CAACT,UAAWA,GAC9B","sources":["webpack://_N_E/?f08f","webpack://_N_E/./pages/404.js"],"sourcesContent":["\n    (window.__NEXT_P = window.__NEXT_P || []).push([\n      \"/404\",\n      function () {\n        return require(\"private-next-pages/404.js\");\n      }\n    ]);\n    if(module.hot) {\n      module.hot.dispose(function () {\n        window.__NEXT_P.push([\"/404\"])\n      });\n    }\n  ","import { useRouter } from \"next/router\";\n\nimport Error404 from \"@/components/404\";\n\nimport { getCTASportbooks404Shortcode } from \"./api/apiWP\";\n\nconst Error404Page = ({ shortcode }) => {\n  const { push, pathname } = useRouter();\n  const imageTypeRegex = /\\.(jpg|jpeg|png|gif|bmp|svg|webp)/gi;\n\n  if (pathname.match(imageTypeRegex)) {\n    const FRONTEND_URL = process.env.NEXT_PUBLIC_BETTING_NEWS_FRONTEND_URL;\n    push(\n      `${FRONTEND_URL}/_next/image/?url=https%3A%2F%2Fwp.bettingnews.com%2Fwp-content%2Fuploads%2F2023%2F07%2Ffallback-image.jpg&w=3840&q=75`\n    );\n    return {};\n  }\n  return <Error404 shortcode={shortcode} />;\n};\n\nexport async function getStaticProps() {\n  const shortcode = await getCTASportbooks404Shortcode();\n\n  return {\n    props: {\n      shortcode: shortcode || null,\n    },\n  };\n}\n\nexport default Error404Page;\n"],"names":["window","__NEXT_P","push","__webpack_require__","__webpack_exports__","shortcode","param","pathname","useRouter","match","concat","process","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","Error404"],"sourceRoot":""}