{"version":3,"file":"./modules/Footer.xxxxxxxx.js","mappings":"8IAEA,MAAMA,EAAiB,yBAER,MAAMC,EAGjB,YAAOC,CAAMC,EAAmBH,GAC5BI,MAAMC,KAAKC,SAASC,iBAAiBJ,IAAWK,QAAQC,IAAuBA,EAAKC,QAAQC,oBAAmBC,SAASC,IACpH,IAAIZ,EAAOY,GACXA,EAAQH,QAAQC,kBAAoB,MAAM,GAElD,CAEA,WAAAG,CAAmBD,GAAA,KAAAA,QAAAA,EACfE,KAAKC,MACT,CAEA,IAAAA,GACID,KAAKE,mBAAkCF,KAAKF,QAAQK,cAAc,mCAC9DH,KAAKE,qBAAoB,QAAoBF,KAAKE,mBAC1D,EAiBAhB,EAAOC,MAAMF,E","sources":["webpack:///./modules/Footer.ts"],"sourcesContent":["import { horizontalScrolling } from '../helpers/helperFunctions';\r\n\r\nconst moduleSelector = '[data-module=\"Footer\"]';\r\n\r\nexport default class Footer {\r\n socialIconsWrapper: HTMLElement;\r\n\r\n static setup(selector: string = moduleSelector): void {\r\n Array.from(document.querySelectorAll(selector)).filter((node: HTMLElement) => !node.dataset.moduleInitialized).forEach((element: HTMLElement) => {\r\n new Footer(element);\r\n element.dataset.moduleInitialized = 'true';\r\n });\r\n }\r\n\r\n constructor(public element: HTMLElement) {\r\n this.init();\r\n }\r\n\r\n init() {\r\n this.socialIconsWrapper = this.element.querySelector('.nx-social-icons__wrapper-inner');\r\n if (this.socialIconsWrapper) horizontalScrolling(this.socialIconsWrapper);\r\n }\r\n\r\n}\r\n\r\n// Hot Module Replacement\r\nif (module.hot) {\r\n let nodesCache: HMRNodes[] = Array.from(document.querySelectorAll(moduleSelector)).map((element: Node) => ({ nodeToReplace: element, nodeOrigin: element.cloneNode(true) }));\r\n\r\n Footer.setup(moduleSelector);\r\n\r\n module.hot.accept(() => {\r\n Footer.setup(moduleSelector);\r\n });\r\n module.hot.dispose(() => {\r\n nodesCache.forEach(({ nodeToReplace, nodeOrigin }) => { nodeToReplace = nodeToReplace.parentElement.replaceChild(nodeOrigin.cloneNode(true), nodeToReplace) });\r\n });\r\n} else {\r\n Footer.setup(moduleSelector);\r\n}"],"names":["moduleSelector","Footer","setup","selector","Array","from","document","querySelectorAll","filter","node","dataset","moduleInitialized","forEach","element","constructor","this","init","socialIconsWrapper","querySelector"],"sourceRoot":""}