{"version":3,"file":"chunk.680.js","mappings":"+IAAA,IAAIA,EAAkC,WAClC,SAASA,IACL,IAAIC,EAAQC,KACZA,KAAKC,eAAiBC,SAASC,iBAAiB,oBAChDH,KAAKI,sBAAwBF,SAASC,iBAAiB,qBACvDH,KAAKK,iBAAmBH,SAASI,cAAc,sBAC/CN,KAAKO,eAAiB,WAAc,OAAOR,EAAMS,cAAgB,EACjEC,OAAOC,iBAAiB,SAAUV,KAAKO,gBACvCP,KAAKW,oBACLX,KAAKQ,cACT,CAsBA,OArBAV,EAAiBc,UAAUD,kBAAoB,WAC3C,IAAIZ,EAAQC,KACZA,KAAKC,eAAeY,SAAQ,SAAUC,EAAWC,GAE7CD,EAAUJ,iBAAiB,SADZ,WAAc,OAAOX,EAAMiB,gBAAgBD,EAAQ,GAEtE,GACJ,EACAjB,EAAiBc,UAAUI,gBAAkB,SAAUD,GACnD,IAAIE,EAAmBjB,KAAKI,sBAAsBW,GAC9CE,IACAA,EAAiBC,UAAUC,SAAS,YAAcF,EAAiBC,UAAUE,OAAO,YAAcH,EAAiBC,UAAUG,IAAI,YAEzI,EACAvB,EAAiBc,UAAUJ,aAAe,WAClCC,OAAOa,WAAW,uBAAuBC,QACzCvB,KAAKK,iBAAiBa,UAAUG,IAAI,qBAGpCrB,KAAKK,iBAAiBa,UAAUE,OAAO,oBAE/C,EACOtB,CACX,CAjCqC,GAmCrC,W","sources":["webpack:///./modules/itinerary/index.ts"],"sourcesContent":["var ItineraryHandler = /** @class */ (function () {\n function ItineraryHandler() {\n var _this = this;\n this.itineraryItems = document.querySelectorAll(\".tours-itinerary\");\n this.itineraryItemSubtexts = document.querySelectorAll(\".expand-itinerary\");\n this.itineraryWrapper = document.querySelector(\".itinerary-wrapper\");\n this.resizeListener = function () { return _this.handleResize(); };\n window.addEventListener(\"resize\", this.resizeListener);\n this.addEventListeners();\n this.handleResize(); // Run on load to apply correct state\n }\n ItineraryHandler.prototype.addEventListeners = function () {\n var _this = this;\n this.itineraryItems.forEach(function (itinerary, index) {\n var listener = function () { return _this.itineraryToggle(index); };\n itinerary.addEventListener(\"click\", listener);\n });\n };\n ItineraryHandler.prototype.itineraryToggle = function (index) {\n var itinerarySubtext = this.itineraryItemSubtexts[index];\n if (itinerarySubtext) {\n itinerarySubtext.classList.contains(\"--active\") ? itinerarySubtext.classList.remove(\"--active\") : itinerarySubtext.classList.add(\"--active\");\n }\n };\n ItineraryHandler.prototype.handleResize = function () {\n if (window.matchMedia(\"(max-width: 1280px)\").matches) {\n this.itineraryWrapper.classList.add(\"accordion--active\");\n }\n else {\n this.itineraryWrapper.classList.remove(\"accordion--active\");\n }\n };\n return ItineraryHandler;\n}());\nexport { ItineraryHandler };\nexport default ItineraryHandler;\n"],"names":["ItineraryHandler","_this","this","itineraryItems","document","querySelectorAll","itineraryItemSubtexts","itineraryWrapper","querySelector","resizeListener","handleResize","window","addEventListener","addEventListeners","prototype","forEach","itinerary","index","itineraryToggle","itinerarySubtext","classList","contains","remove","add","matchMedia","matches"],"sourceRoot":""}