{"version":3,"file":"backToAtlasHeaderButton-AbOGtyz4.js","sources":["../../../app/javascript/entrypoints/pages/pc/backToAtlasHeaderButton.js"],"sourcesContent":["import moveSmoothly from '@component_path/lib/moveSmoothly';\n\ndocument.addEventListener('DOMContentLoaded', () => {\n  const topBtn = document.querySelector('.m3p-pagetop');\n\n  if(topBtn){\n    topBtn.style.bottom = '-80px';\n    window.addEventListener('scroll', () => {\n      if (window.pageYOffset > 400) {\n        topBtn.style.bottom = '80px';\n      } else {\n        topBtn.style.bottom = '-80px';\n      }\n    });\n  }\n\n  moveSmoothly('.m3p-pagetop a', '.atlas-header');\n});"],"names":["topBtn","moveSmoothly"],"mappings":"+CAEA,SAAS,iBAAiB,mBAAoB,IAAM,CAClD,MAAMA,EAAS,SAAS,cAAc,cAAc,EAEjDA,IACDA,EAAO,MAAM,OAAS,QACtB,OAAO,iBAAiB,SAAU,IAAM,CAClC,OAAO,YAAc,IACvBA,EAAO,MAAM,OAAS,OAEtBA,EAAO,MAAM,OAAS,OAE9B,CAAK,GAGHC,EAAa,iBAAkB,eAAe,CAChD,CAAC"}