{"version":3,"sources":["webpack:///./LeLab.Gcv.Web/src/atomic/organism/o-ticket-date/o-ticket-date.chunk.js","webpack:///./LeLab.Gcv.Web/src/atomic/organism/o-ticket-date/o-ticket-date.scss"],"names":["require","$","isFrench","attr","moment","locale","today","startOf","$document","document","isIE","window","navigator","userAgent","indexOf","match","TicketDateHandler","element","$module","$slider","find","$overlay","spinnerHtml","html","priceInnerTemplate","priceTemplate","dataSelectedDate","closest","data","selectedDate","getMinimumDate","getMaximumDate","priceEndpoint","priceQueue","init","empty","veryFirstWeekRendered","append","makeWeek","add","weekCount","isSameOrBefore","initialSlide","initSlick","loadSlidePrices","off","on","ev","slick","currentSlide","nextSlide","$dateElement","dateString","syncOverlayCalendar","self","e","preventDefault","$dateButton","date","hasClass","removeClass","addClass","trigger","format","syncLodgingChoicesMolecule","toDate","syncFilterDateRangeMolecule","console","log","detail","selectDate","$ticketDateElement","nbOfNights","parseInt","minimumDate","dataMinimumDate","maximumDate","dataMaximumDate","subtract","getNbOfNights","initial","putSlickEventsPassive","err","dots","arrows","slidesToShow","slidesToScroll","infinite","focusOnSelect","useTransform","cssEase","prevArrow","nextArrow","event","special","touchstart","setup","_","ns","handle","includes","addEventListener","passive","touchmove","start","end","weekElement","text","formatDateRange","makeDays","daysElement","day","isAfter","makeDay","$day","isBefore","isSame","dayElement","setDayElementStyles","getDayLetter","getDayLabel","getDayDisplay","substr","toUpperCase","month","dates","nights","startDate","ticketDateInstance","each","doNotSync","selectedDayElement","selectedSlideIndex","dateToSync","get","Calendar","setVisibleDate","$tabSection","lodgingChoicesElement","length","Molecule","updateDates","filterDateRangeElement","CalendarRange","slideIndex","lastPriceRequest","abort","slide","days","$priceElement","$descElement","fetchPrice","done","priceData","StateText","EmptyDescription","Price","ShouldBeBold","ShouldDisableDate","fail","promise","Deferred","push","isProcessingPriceQueue","processPriceQueue","item","splice","resolve","result","reject","always"],"mappings":";;;;;;;;;;;;AAAA,mBAAAA,CAAQ,EAAR;AACA,mBAAAA,CAAQ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;;;AC5hBA,yC","file":"o-ticket-date.js","sourcesContent":["require(\"slick-carousel/slick/slick.scss\");\r\nrequire(\"slick-carousel/slick/slick.js\");\r\nrequire(\"./o-ticket-date.scss\");\r\n\r\nconst $ = require('jquery');\r\n\r\nconst isFrench = $(\"html\").attr(\"lang\") === \"fr\";\r\nconst moment = require(\"moment\");\r\nrequire(\"moment/locale/fr-ca\");\r\nrequire(\"moment/locale/en-ca\");\r\nmoment.locale(isFrench ? \"fr-ca\" : \"en-ca\");\r\n\r\nconst today = moment().startOf(\"day\");\r\n\r\nvar $document = $(document);\r\n\r\nvar isIE = false;\r\nif (window.navigator.userAgent.indexOf(\"MSIE \") > 0 || !!navigator.userAgent.match(/Trident.*rv\\:11\\./)) {\r\n isIE = true;\r\n}\r\n\r\nclass TicketDateHandler {\r\n constructor(element) {\r\n this.$module = $(element);\r\n this.$slider = this.$module.find(\".o-ticket-date__slider\");\r\n this.$overlay = this.$module.find(\"[data-overlay='ticket-date-calendar']\");\r\n this.spinnerHtml = this.$module.find(\"[data-spinner-template]\").html();\r\n this.priceInnerTemplate = \"\";\r\n this.priceTemplate = \"