{"version":3,"file":"static/chunks/pages/blog/category-37efdbb3d6444585.js","mappings":"sFACA,CAAAA,OAAAC,QAAA,CAAAD,OAAAC,QAAA,MAAAC,IAAA,EACA,iBACA,WACA,OAAeC,EAAQ,KACvB,EACA,2FC8BAC,CAAAA,EAAA,QAhC0B,KACxB,IAAMC,EAASC,CAAAA,EAAAA,EAAAA,SAAAA,IACT,CAACC,EAASC,EAAW,CAAGC,CAAAA,EAAAA,EAAAA,QAAAA,EAAS,IAmBvC,MAjBAC,CAAAA,EAAAA,EAAAA,SAAAA,EAAU,KAER,IAAMC,EAA8B,UAClC,MAAMN,EAAOH,IAAI,CAAC,0BAGlBU,WAAW,KACoB,sBAAzBZ,OAAOa,QAAQ,CAACC,IAAI,EACtBd,OAAOe,OAAO,CAACC,YAAY,CAAC,KAAM,GAAI,SAExCR,EAAW,GACb,EAAG,GACL,EAEAG,GACF,EAAG,CAACN,EAAO,EAGT,GAAAY,EAAAC,GAAA,EAACC,MAAAA,CAAIC,UAAU,qDACZb,GACC,GAAAU,EAAAC,GAAA,EAACC,MAAAA,CAAIC,UAAU,6BACb,GAAAH,EAAAC,GAAA,EAACG,EAAAA,CAAcA,CAAAA,CAACD,UAAU,gDAKpC","sources":["webpack://_N_E/?817d","webpack://_N_E/./pages/blog/category/index.tsx","webpack://_N_E/"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/blog/category\",\n function () {\n return require(\"private-next-pages/blog/category/index.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/blog/category\"])\n });\n }\n ","import { useEffect, useState } from 'react';\nimport { useRouter } from 'next/router';\nimport { LoadingSpinner } from '../../../shared-components/LoadingSpinner/LoadingSpinner';\n\nconst BlogCategoryIndex = () => {\n const router = useRouter();\n const [loading, setLoading] = useState(true);\n\n useEffect(() => {\n // Handle the redirection and hash removal\n const handleRedirectAndRemoveHash = async () => {\n await router.push('/blog#blogs-categories');\n\n // Use setTimeout to ensure the scroll happens\n setTimeout(() => {\n if (window.location.hash === '#blogs-categories') {\n window.history.replaceState(null, '', '/blog');\n }\n setLoading(false);\n }, 50);\n };\n\n handleRedirectAndRemoveHash();\n }, [router]);\n\n return (\n
\n {loading && (\n
\n \n
\n )}\n
\n );\n};\n\nexport default BlogCategoryIndex;\n"],"names":["window","__NEXT_P","push","__webpack_require__","__webpack_exports__","router","useRouter","loading","setLoading","useState","useEffect","handleRedirectAndRemoveHash","setTimeout","location","hash","history","replaceState","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","div","className","LoadingSpinner"],"sourceRoot":""}