{"version":3,"file":"/scripts/locations.js","mappings":"0HAAMA,EAAAA,WACF,cAAc,eACVC,KADU,c,8CAMd,WACqBC,SAAAA,eADJ,cAIbC,iBAAAA,SAAqC,SAAUC,GAC3CA,EADkD,iBAElDC,OAAAA,QAFkD,Y,yBAM1D,WACuBH,SAAAA,cAAnB,eACAI,iBAAAA,SAAqC,YACjCC,EAAAA,iBACqBL,SAAAA,cAArB,aACAM,eAA4B,CAAEC,SAAF,SAAsBC,MAAO,gB,yBAGjE,WAEIL,OAAAA,iBAAAA,UAAkC,YAEZA,OAAAA,YAAqBH,SAAAA,gBAArBG,aAA6DH,SAAAA,KAFtC,aAKzC,OAEIG,OAAAA,SAAAA,KAFoB,qB,EAhC9BL,GA4CN,IAAIA,I","sources":["webpack://sage/./resources/scripts/modules/locations.js"],"sourcesContent":["class Locations {\n constructor() {\n this.contactList();\n //this.goBackToMapView();\n //this.resizeEvent();\n }\n\n goBackToMapView(){\n var goBackLink = document.getElementById(\"goBackLink\");\n\n // Add a click event listener to the link\n goBackLink.addEventListener(\"click\", function (event) {\n event.preventDefault(); // Prevent the default behavior of navigating to \"#\"\n window.history.back(); // Go to the previous page\n });\n }\n\n contactList() {\n const btnContact = document.querySelector('#btnContact');\n btnContact.addEventListener('click', function(e){\n e.preventDefault();\n const contactBlock = document.querySelector('#contacts');\n contactBlock.scrollIntoView({ behavior: 'smooth', block: 'center' });\n });\n }\n resizeEvent(){\n // Add a resize event listener\n window.addEventListener('resize', function() {\n // Get the current window width\n var windowWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;\n \n // Check if the window width is less than 1024 pixels\n if (windowWidth > 1024) {\n // Redirect to the desired URL\n window.location.href = '/map-test/';\n //window.location.href = '/where-we-work-new/'; // Replace with your desired URL\n }\n });\n \n }\n\n}\n\nexport default Locations;\nnew Locations();\n"],"names":["Locations","this","document","goBackLink","event","window","btnContact","e","contactBlock","behavior","block"],"sourceRoot":""}