{"version":3,"sources":["webpack:///./Scripts/Components/NavigationBlock.js"],"names":["mainContainer","document","getElementsByClassName","children","button","getElementById","length","classList","add","secondSectionId","getAttribute","secondSection","querySelector","addEventListener","scrollIntoView","behavior","getSecondSection"],"mappings":"kEAAA,WACI,MAAMA,EAAgBC,SAASC,uBAAuB,gBACtD,IAAIC,EAAW,KAEf,GAAqB,MAAjBH,EAAuB,CACvB,MAAMI,EAASH,SAASI,eAAe,4BAOvC,GANAF,EAAWH,EAAc,GAAGG,SACxBA,EAASG,QAAU,GACL,MAAVF,GACAA,EAAOG,UAAUC,IAAI,sDAGzBL,EAASG,OAAS,EAAG,CACrB,MAAMG,EAAkBN,EAAS,GAAGO,aAAa,wBAC3CC,EAAgBV,SAASW,cAAe,0BAAyBH,OACzD,MAAVL,GACAA,EAAOS,iBAAiB,SAAS,WAC7BF,EAAcG,eAAe,CAAEC,SAAU,UAC7C,GAER,CACJ,CACJ,CAEAC,E","file":"493.3e9504a4c8481a43d779.js","sourcesContent":["function getSecondSection() {\r\n const mainContainer = document.getElementsByClassName(\"main-content\");\r\n let children = null;\r\n\r\n if (mainContainer != null) {\r\n const button = document.getElementById(\"scroll-to-section-button\");\r\n children = mainContainer[0].children;\r\n if (children.length <= 1) {\r\n if (button != null) {\r\n button.classList.add(\"navigation-block-container__button-container--hide\")\r\n }\r\n }\r\n if (children.length > 1) {\r\n const secondSectionId = children[1].getAttribute(\"data-litium-block-id\");\r\n const secondSection = document.querySelector(`[data-litium-block-id=\"${secondSectionId}\"]`);\r\n if (button != null) {\r\n button.addEventListener(\"click\", function () {\r\n secondSection.scrollIntoView({ behavior: \"smooth\" });\r\n });\r\n }\r\n }\r\n }\r\n}\r\n\r\ngetSecondSection();"],"sourceRoot":""}