{"version":3,"file":"static/js/1.476a0de1.chunk.js","mappings":"wKAGA,MA0CA,EA1C2BA,KACvB,MAAOC,EAAWC,IAAgBC,EAAAA,EAAAA,WAAS,GAGrCC,EAAmBA,KACjBC,OAAOC,YAAc,IACrBJ,GAAa,GAEbA,GAAa,EACjB,EAiBJ,OAPAK,EAAAA,EAAAA,YAAU,KACNF,OAAOG,iBAAiB,SAAUJ,GAC3B,KACHC,OAAOI,oBAAoB,SAAUL,EAAiB,IAE3D,KAGCM,EAAAA,EAAAA,KAAA,OAAKC,UAAU,kCAAiCC,SAC3CX,IACGS,EAAAA,EAAAA,KAACG,EAAAA,EAAM,CACHC,MAAO,UACPC,YAAU,EACVC,QApBIC,KAChBZ,OAAOa,SAAS,CACZC,IAAK,EACLC,SAAU,UACZ,EAiBUT,UAAW,gCAAgCC,UAE3CF,EAAAA,EAAAA,KAAA,KAAGC,UAAU,wCAGnB,C","sources":["components/BackToTop/BackToTopComponent.jsx"],"sourcesContent":["import React, { useState, useEffect } from 'react';\nimport {Button} from \"@nextui-org/react\";\n\nconst BackToTopComponent = () => {\n const [isVisible, setIsVisible] = useState(false);\n\n // Scroll event handler\n const toggleVisibility = () => {\n if (window.pageYOffset > 300) {\n setIsVisible(true);\n } else {\n setIsVisible(false);\n }\n };\n\n const scrollToTop = () => {\n window.scrollTo({\n top: 0,\n behavior: 'smooth',\n });\n };\n\n useEffect(() => {\n window.addEventListener('scroll', toggleVisibility);\n return () => {\n window.removeEventListener('scroll', toggleVisibility);\n };\n }, []);\n\n return (\n
\n {isVisible && (\n \n \n \n )}\n
\n );\n};\n\nexport default BackToTopComponent;\n"],"names":["BackToTopComponent","isVisible","setIsVisible","useState","toggleVisibility","window","pageYOffset","useEffect","addEventListener","removeEventListener","_jsx","className","children","Button","color","isIconOnly","onClick","scrollToTop","scrollTo","top","behavior"],"sourceRoot":""}