{"version":3,"file":"6733.main.js","mappings":"ihBAQA,qCAAe,+GAAOA,EAAP,+BAAgBC,SACfC,OAAOC,WAAW,uBA4BhCC,EAAAA,EAAAA,GAAWJ,IACXK,EAAAA,EAAAA,GAAiBL,GA9BJ,4C","sources":["webpack://raistone/./src/blocks/footer_block/index.js"],"sourcesContent":["import './index.html';\r\nimport './style.scss';\r\nimport {imageLazyLoading} from \"../../scripts/functions/imageLazyLoading\";\r\nimport {animations} from \"../../scripts/general/animations\";\r\nimport {gsap} from \"gsap\";\r\nimport {debounce} from \"lodash\";\r\n\r\n\r\nexport default async (footer = document) => {\r\n const media = window.matchMedia('(max-width: 599px)');\r\n\r\n // const accordions = footer.querySelectorAll('.footer-links')\r\n // accordions.forEach((accordion) => {\r\n // const accordionHead = accordion.querySelector('.links-title');\r\n // const accordionBody = accordion.querySelector('.links-wrapper');\r\n // accordionHead?.addEventListener('click', (e) => {\r\n // if (media.matches) {\r\n // if (!accordionBody) return;\r\n // const isOpened = accordion?.classList.toggle('active');\r\n // if (!isOpened) {\r\n // gsap.to(accordionBody, {height: 0});\r\n // } else {\r\n // gsap.to(Array.from(accordions).map(otherFaq => {\r\n // const otherFaqBody = otherFaq.querySelector('.links-wrapper');\r\n // if (otherFaqBody && accordion !== otherFaq) {\r\n // otherFaq?.classList.remove('active');\r\n // gsap.set(otherFaq, {zIndex: 1});\r\n // }\r\n // return otherFaqBody;\r\n // }), {height: 0});\r\n // gsap.set(accordion, {zIndex: 2});\r\n // gsap.to(accordionBody, {height: 'auto'});\r\n // }\r\n // }\r\n // });\r\n // });\r\n\r\n animations(footer);\r\n imageLazyLoading(footer);\r\n};\r\n\r\n"],"names":["footer","document","window","matchMedia","animations","imageLazyLoading"],"sourceRoot":""}