{"version":3,"sources":["node_modules/browser-pack/_prelude.js","node_modules/resize-observer-polyfill/dist/ResizeObserver.js","scripts/components/conversionTracking/conversionTracking.js","scripts/components/cookies/cookies.js","scripts/components/datesAndRates/datesAndRates.js","scripts/components/eventBus/eventBus.js","scripts/components/favorites/favorites.js","scripts/components/featureDetection/featureDetection.js","scripts/components/fixedNavObserver/fixedNavObserver.js","scripts/components/monthYearPicker/monthYearPicker.js","scripts/components/simplePopup/simplePopup.js","scripts/components/slickSlider/slickSliderHelper.js","scripts/vacationPages.js"],"names":["r","e","n","t","o","i","f","c","require","u","a","Error","code","p","exports","call","length","1","module","global","factory","this","MapShim","Map","Object","defineProperty","class_1","prototype","get","__entries__","enumerable","configurable","key","index","getIndex","entry","set","value","push","delete","entries","splice","has","clear","forEach","callback","ctx","_i","_a","arr","result","some","isBrowser","window","document","global$1","Math","self","Function","requestAnimationFrame$1","requestAnimationFrame","bind","setTimeout","Date","now","trailingTimeout","transitionKeys","mutationObserverSupported","MutationObserver","ResizeObserverController","addObserver","observer","observers_","indexOf","connected_","connect_","removeObserver","observers","disconnect_","refresh","updateObservers_","activeObservers","filter","gatherActive","hasActive","broadcastActive","addEventListener","onTransitionEnd_","mutationsObserver_","observe","attributes","childList","characterData","subtree","mutationEventsAdded_","removeEventListener","disconnect","_b","propertyName","getInstance","instance_","resolvePending","leadingCall","trailingCall","proxy","timeoutCallback","timeStamp","lastCallTime","delay","defineConfigurable","target","props","keys","writable","getWindowOf","ownerDocument","defaultView","emptyRect","createRectInit","toFloat","parseFloat","getBordersSize","styles","positions","arguments","reduce","size","position","getHTMLElementContentRect","paddings","horizPad","vertPad","width","height","vertScrollbar","clientWidth","clientHeight","positions_1","getComputedStyle","left","right","top","bottom","boxSizing","round","documentElement","horizScrollbar","abs","isSVGGraphicsElement","SVGGraphicsElement","SVGElement","getBBox","getContentRect","bbox","x","y","ResizeObservation","isActive","rect","contentRect_","broadcastWidth","broadcastHeight","broadcastRect","ResizeObserverEntry","rectInit","Constr","DOMRectReadOnly","create","contentRect","ResizeObserverSPI","TypeError","Element","observations","observations_","controller_","unobserve","clearActive","_this","observation","activeObservations_","callbackCtx_","map","callback_","controller","callbackCtx","WeakMap","ResizeObserver","method","apply","define","amd","pushFormEvent","getTrackingValuesFromForm","extendBrochureSignupMailCookie","$form","$formNameEl","find","$trackingCategoryEl","$trackingLabelEl","$trackingValueEl","trackingCategory","val","trackingLabel","trackingValue","formName","$","cookie","domain","expires","path","initialize","$forms","$clickableTargets","on","trackingValues","isBrochureForm","toLowerCase","valid","dataLayer","$this","attr","trackingEventAction","trackingParams","event","pagePath","location","pathname","extend","actionName","$popup","closest","isInPopup","formTriggeringEvent","hasAttribute","formDisplayMethod","trackingFormName","cookieName","cookieValue","expirationDays","d","setTime","getTime","toUTCString","remove","name","ca","split","charAt","substring","eventBus","simplePopup","renderDatesAndRates","elementId","Vue","el","data","datesAndRatesList","currentPage","itemsPerPage","page","startDate","displayLoadMore","scrollMargin","created","let","year","dateParam","URLSearchParams","search","slice","month","paginatedItems","$on","mounted","$emit","detail","computed","filteredDeparturesByDate","filteredDates","item","departureDate","totalVacations","methods","end","loadMore","getExternalMvCodeClass","departure","externalMvCode","getExternalDepartureCodeId","externalDepartureCode","getFormattedDate","date","toLocaleDateString","undefined","weekday","day","getFormattedDateShort","getDayOfWeek","open","selector","$el","click","filters","currency","Intl","NumberFormat","style","minimumFractionDigits","maximumFractionDigits","format","cookies","slickSliderHelper","favoritesEventBus","addToFavorites","id","favorites","getFavoritesFromCookie","saveFavoritesToCookie","action","removeFromFavorites","toggleFavorite","isFavorite","favoriteString","join","encodeURIComponent","includes","setFavoriteIcons","each","favId","addClass","removeClass","favCookie","decodeURIComponent","renderFavoritesList","favoriteTimerId","favoriteTours","sliderSelector","ids","updateFavoriteTours","actionData","updated","removeFavorite","reinitializeSlider","clearTimeout","hasClass","slick","initializeSlider","infinite","slidesToShow","slidesToScroll","responsive","breakpoint","settings","removeSliderItem","idx","response","await","fetch","headers","Content-Type","ok","json","error","console","initializeFavoriteButtons","isPassiveSupported","options","passive","err","getTotalFixedNavHeight","_","getours","fixedNavData","memo","navDef","hasFixedStyle","isFixed","body","classList","contains","querySelector","elStyles","computedPosition","getPropertyValue","computedDisplay","resizeObserver","obs","css","outerHeight","totalFixedNavHeight","CustomEvent","dispatchEvent","navEl","box","getHeights","getHeightBySelector","findWhere","initializePickerOptions","years","getYears","enabledOptions","optionsDictionary","getMonths","currentYear","currentDate","getFullYear","currentMonth","getMonth","enablePastMonths","pastMonths","range","hasOwn","union","yearsWithEnabledMonths","j","enabledMonthIdx","enabled","monthYear","monthIdx","label","displayMonth","getDisplayMonth","optionDictionary","sort","b","toString","padStart","monthYearOptions","getElementById","defaults","appendHash","validOptions","activeYear","activeMonth","showCalendar","showNextYear","showPreviousYear","isOpen","windowWidth","innerWidth","nextAvailableMonth","minYear","getMinYear","maxYear","getMaxYear","isMinYear","isMaxYear","setDateFromQueryString","updateWidth","beforeDestroy","isActiveYear","isActiveMonth","handleOutsideClick","$refs","ysNav","closeCalendar","nextYear","prevYear","toggleCalendar","setActiveYear","yearFromQueryString","monthFromQueryString","parseInt","watch","newValue","newWidth","initializeOptions","conversionTracking","optionOverrides","maxWidth","enableConversionTracking","$cta","fancybox","padding","fitToView","scrolling","autoSize","autoResize","tpl","closeBtn","closeClick","openEffect","closeEffect","afterLoad","context","contextAfter","href","afterClose","containerSelector","unslickBelowBreakpoint","obj","Number","isInteger","unslickAboveBreakpoint","hasUpperBreakpoint","hasLowerBreakpoint","violatesUpperBound","violatesLowBound","not","isInitialized","fixedNavObserver","monthYearPicker","datesAndRates","featureDetection","executePrintWindow","printWindow","close","focus","print","createJumpLinks","$jumpLinks","initialOffset","$pageWrapper","variantContainerHeight","hash","headerHeight","$target","departuresWrapperEl","isEqualNode","scrollTop","offset","setActiveSection","fixSeasonStrip","scrollDir","tourTopRegion","getElementsByClassName","variantsAndJumpNavs","headerNavWrapperData","getBoundingClientRect","add","fixYearSelectStrip","bottomRegion","fixedNavHeight","isWithin","pixelsFromTopOfViewport","topRegion","yearSelectStrip","previousElementSibling","isBeforeSection","isAfterSection","fixedHeaderHeight","vacationSections","desktopJumpLinks","querySelectorAll","mobileSliderJumpLinks","activeSection","vs","sectionId","jumpLink","getAttribute","slider","jQuery","ready","$body","$variantsAndJumpLinks","scrollPos","expandedCount","hide","show","collapse","gAllItineraryItemsCollapsed","$expandedPanels","parent","log","$printBtn","printFriendlyPage","printPage","url","glide","Glide","type","rewind","bound","startAt","perView","useSmartNav","autoPlay","breakpoints","768","494","360","mount","go","wrapCSS","iframe","preload","$mapTarget","$locationsMoreLinks","monthYearPickerOptions","moreTarget","yearMonthOptions","monthYearPickerOptionsMobile","monthYearPickerOptionsDepartures","fadeOut"],"mappings":"AAAA,CAAA,SAAAA,EAAAC,EAAAC,EAAAC,GAAA,SAAAC,EAAAC,EAAAC,GAAA,GAAA,CAAAJ,EAAAG,GAAA,CAAA,GAAA,CAAAJ,EAAAI,GAAA,CAAA,IAAAE,EAAA,YAAA,OAAAC,SAAAA,QAAA,GAAA,CAAAF,GAAAC,EAAA,OAAAA,EAAAF,EAAA,CAAA,CAAA,EAAA,GAAAI,EAAA,OAAAA,EAAAJ,EAAA,CAAA,CAAA,EAAA,MAAAK,EAAA,IAAAC,MAAA,uBAAAN,EAAA,GAAA,GAAAO,KAAA,mBAAAF,CAAA,CAAAG,EAAAX,EAAAG,GAAA,CAAAS,QAAA,EAAA,EAAAb,EAAAI,GAAA,GAAAU,KAAAF,EAAAC,QAAA,SAAAd,GAAA,OAAAI,EAAAH,EAAAI,GAAA,GAAAL,IAAAA,CAAA,CAAA,EAAAa,EAAAA,EAAAC,QAAAd,EAAAC,EAAAC,EAAAC,CAAA,CAAA,CAAA,OAAAD,EAAAG,GAAAS,OAAA,CAAA,IAAA,IAAAL,EAAA,YAAA,OAAAD,SAAAA,QAAAH,EAAA,EAAAA,EAAAF,EAAAa,OAAAX,CAAA,GAAAD,EAAAD,EAAAE,EAAA,EAAA,OA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AAyhB,iBACAhK,WAAA,CAAA,CACA,EAEAkK,EAAA,CACApV,UAAA,yBACAoJ,eAAA3V,OAAAyhB,iBACAhK,WAAA,CAAA,CACA,EAEAuE,EAAAnS,WAAA0X,CAAA,EACAvF,EAAAnS,WAAA6X,CAAA,EACA1F,EAAAnS,WAAA8X,CAAA,EAGA1F,EAAA3P,oBAAA,iBAAA,EAGAgE,EAAAkB,oBAAA,cAAA,EAGAhI,EAAA,gBAAA,EAAA7L,SAEA8C,WAAA,WACA+I,EAAA,gBAAA,EAAAoY,QAAA,CACA,EAAA,GAAA,EAEApY,EAAA,uBAAA,EAAAQ,GAAA,QAAA,WACAR,EAAAxL,IAAA,EAAA6hB,OAAA,gBAAA,EAAA+B,QAAA,CACA,CAAA,EAEA,CAAA","file":"vacationPages.min.js","sourcesContent":["(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof require&&require,i=0;i} arr\r\n * @param {*} key\r\n * @returns {number}\r\n */\r\n function getIndex(arr, key) {\r\n var result = -1;\r\n arr.some(function (entry, index) {\r\n if (entry[0] === key) {\r\n result = index;\r\n return true;\r\n }\r\n return false;\r\n });\r\n return result;\r\n }\r\n return /** @class */ (function () {\r\n function class_1() {\r\n this.__entries__ = [];\r\n }\r\n Object.defineProperty(class_1.prototype, \"size\", {\r\n /**\r\n * @returns {boolean}\r\n */\r\n get: function () {\r\n return this.__entries__.length;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * @param {*} key\r\n * @returns {*}\r\n */\r\n class_1.prototype.get = function (key) {\r\n var index = getIndex(this.__entries__, key);\r\n var entry = this.__entries__[index];\r\n return entry && entry[1];\r\n };\r\n /**\r\n * @param {*} key\r\n * @param {*} value\r\n * @returns {void}\r\n */\r\n class_1.prototype.set = function (key, value) {\r\n var index = getIndex(this.__entries__, key);\r\n if (~index) {\r\n this.__entries__[index][1] = value;\r\n }\r\n else {\r\n this.__entries__.push([key, value]);\r\n }\r\n };\r\n /**\r\n * @param {*} key\r\n * @returns {void}\r\n */\r\n class_1.prototype.delete = function (key) {\r\n var entries = this.__entries__;\r\n var index = getIndex(entries, key);\r\n if (~index) {\r\n entries.splice(index, 1);\r\n }\r\n };\r\n /**\r\n * @param {*} key\r\n * @returns {void}\r\n */\r\n class_1.prototype.has = function (key) {\r\n return !!~getIndex(this.__entries__, key);\r\n };\r\n /**\r\n * @returns {void}\r\n */\r\n class_1.prototype.clear = function () {\r\n this.__entries__.splice(0);\r\n };\r\n /**\r\n * @param {Function} callback\r\n * @param {*} [ctx=null]\r\n * @returns {void}\r\n */\r\n class_1.prototype.forEach = function (callback, ctx) {\r\n if (ctx === void 0) { ctx = null; }\r\n for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {\r\n var entry = _a[_i];\r\n callback.call(ctx, entry[1], entry[0]);\r\n }\r\n };\r\n return class_1;\r\n }());\r\n })();\n\n /**\r\n * Detects whether window and document objects are available in current environment.\r\n */\r\n var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;\n\n // Returns global object of a current environment.\r\n var global$1 = (function () {\r\n if (typeof global !== 'undefined' && global.Math === Math) {\r\n return global;\r\n }\r\n if (typeof self !== 'undefined' && self.Math === Math) {\r\n return self;\r\n }\r\n if (typeof window !== 'undefined' && window.Math === Math) {\r\n return window;\r\n }\r\n // eslint-disable-next-line no-new-func\r\n return Function('return this')();\r\n })();\n\n /**\r\n * A shim for the requestAnimationFrame which falls back to the setTimeout if\r\n * first one is not supported.\r\n *\r\n * @returns {number} Requests' identifier.\r\n */\r\n var requestAnimationFrame$1 = (function () {\r\n if (typeof requestAnimationFrame === 'function') {\r\n // It's required to use a bounded function because IE sometimes throws\r\n // an \"Invalid calling object\" error if rAF is invoked without the global\r\n // object on the left hand side.\r\n return requestAnimationFrame.bind(global$1);\r\n }\r\n return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };\r\n })();\n\n // Defines minimum timeout before adding a trailing call.\r\n var trailingTimeout = 2;\r\n /**\r\n * Creates a wrapper function which ensures that provided callback will be\r\n * invoked only once during the specified delay period.\r\n *\r\n * @param {Function} callback - Function to be invoked after the delay period.\r\n * @param {number} delay - Delay after which to invoke callback.\r\n * @returns {Function}\r\n */\r\n function throttle (callback, delay) {\r\n var leadingCall = false, trailingCall = false, lastCallTime = 0;\r\n /**\r\n * Invokes the original callback function and schedules new invocation if\r\n * the \"proxy\" was called during current request.\r\n *\r\n * @returns {void}\r\n */\r\n function resolvePending() {\r\n if (leadingCall) {\r\n leadingCall = false;\r\n callback();\r\n }\r\n if (trailingCall) {\r\n proxy();\r\n }\r\n }\r\n /**\r\n * Callback invoked after the specified delay. It will further postpone\r\n * invocation of the original function delegating it to the\r\n * requestAnimationFrame.\r\n *\r\n * @returns {void}\r\n */\r\n function timeoutCallback() {\r\n requestAnimationFrame$1(resolvePending);\r\n }\r\n /**\r\n * Schedules invocation of the original function.\r\n *\r\n * @returns {void}\r\n */\r\n function proxy() {\r\n var timeStamp = Date.now();\r\n if (leadingCall) {\r\n // Reject immediately following calls.\r\n if (timeStamp - lastCallTime < trailingTimeout) {\r\n return;\r\n }\r\n // Schedule new call to be in invoked when the pending one is resolved.\r\n // This is important for \"transitions\" which never actually start\r\n // immediately so there is a chance that we might miss one if change\r\n // happens amids the pending invocation.\r\n trailingCall = true;\r\n }\r\n else {\r\n leadingCall = true;\r\n trailingCall = false;\r\n setTimeout(timeoutCallback, delay);\r\n }\r\n lastCallTime = timeStamp;\r\n }\r\n return proxy;\r\n }\n\n // Minimum delay before invoking the update of observers.\r\n var REFRESH_DELAY = 20;\r\n // A list of substrings of CSS properties used to find transition events that\r\n // might affect dimensions of observed elements.\r\n var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];\r\n // Check if MutationObserver is available.\r\n var mutationObserverSupported = typeof MutationObserver !== 'undefined';\r\n /**\r\n * Singleton controller class which handles updates of ResizeObserver instances.\r\n */\r\n var ResizeObserverController = /** @class */ (function () {\r\n /**\r\n * Creates a new instance of ResizeObserverController.\r\n *\r\n * @private\r\n */\r\n function ResizeObserverController() {\r\n /**\r\n * Indicates whether DOM listeners have been added.\r\n *\r\n * @private {boolean}\r\n */\r\n this.connected_ = false;\r\n /**\r\n * Tells that controller has subscribed for Mutation Events.\r\n *\r\n * @private {boolean}\r\n */\r\n this.mutationEventsAdded_ = false;\r\n /**\r\n * Keeps reference to the instance of MutationObserver.\r\n *\r\n * @private {MutationObserver}\r\n */\r\n this.mutationsObserver_ = null;\r\n /**\r\n * A list of connected observers.\r\n *\r\n * @private {Array}\r\n */\r\n this.observers_ = [];\r\n this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);\r\n this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);\r\n }\r\n /**\r\n * Adds observer to observers list.\r\n *\r\n * @param {ResizeObserverSPI} observer - Observer to be added.\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.addObserver = function (observer) {\r\n if (!~this.observers_.indexOf(observer)) {\r\n this.observers_.push(observer);\r\n }\r\n // Add listeners if they haven't been added yet.\r\n if (!this.connected_) {\r\n this.connect_();\r\n }\r\n };\r\n /**\r\n * Removes observer from observers list.\r\n *\r\n * @param {ResizeObserverSPI} observer - Observer to be removed.\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.removeObserver = function (observer) {\r\n var observers = this.observers_;\r\n var index = observers.indexOf(observer);\r\n // Remove observer if it's present in registry.\r\n if (~index) {\r\n observers.splice(index, 1);\r\n }\r\n // Remove listeners if controller has no connected observers.\r\n if (!observers.length && this.connected_) {\r\n this.disconnect_();\r\n }\r\n };\r\n /**\r\n * Invokes the update of observers. It will continue running updates insofar\r\n * it detects changes.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.refresh = function () {\r\n var changesDetected = this.updateObservers_();\r\n // Continue running updates if changes have been detected as there might\r\n // be future ones caused by CSS transitions.\r\n if (changesDetected) {\r\n this.refresh();\r\n }\r\n };\r\n /**\r\n * Updates every observer from observers list and notifies them of queued\r\n * entries.\r\n *\r\n * @private\r\n * @returns {boolean} Returns \"true\" if any observer has detected changes in\r\n * dimensions of it's elements.\r\n */\r\n ResizeObserverController.prototype.updateObservers_ = function () {\r\n // Collect observers that have active observations.\r\n var activeObservers = this.observers_.filter(function (observer) {\r\n return observer.gatherActive(), observer.hasActive();\r\n });\r\n // Deliver notifications in a separate cycle in order to avoid any\r\n // collisions between observers, e.g. when multiple instances of\r\n // ResizeObserver are tracking the same element and the callback of one\r\n // of them changes content dimensions of the observed target. Sometimes\r\n // this may result in notifications being blocked for the rest of observers.\r\n activeObservers.forEach(function (observer) { return observer.broadcastActive(); });\r\n return activeObservers.length > 0;\r\n };\r\n /**\r\n * Initializes DOM listeners.\r\n *\r\n * @private\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.connect_ = function () {\r\n // Do nothing if running in a non-browser environment or if listeners\r\n // have been already added.\r\n if (!isBrowser || this.connected_) {\r\n return;\r\n }\r\n // Subscription to the \"Transitionend\" event is used as a workaround for\r\n // delayed transitions. This way it's possible to capture at least the\r\n // final state of an element.\r\n document.addEventListener('transitionend', this.onTransitionEnd_);\r\n window.addEventListener('resize', this.refresh);\r\n if (mutationObserverSupported) {\r\n this.mutationsObserver_ = new MutationObserver(this.refresh);\r\n this.mutationsObserver_.observe(document, {\r\n attributes: true,\r\n childList: true,\r\n characterData: true,\r\n subtree: true\r\n });\r\n }\r\n else {\r\n document.addEventListener('DOMSubtreeModified', this.refresh);\r\n this.mutationEventsAdded_ = true;\r\n }\r\n this.connected_ = true;\r\n };\r\n /**\r\n * Removes DOM listeners.\r\n *\r\n * @private\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.disconnect_ = function () {\r\n // Do nothing if running in a non-browser environment or if listeners\r\n // have been already removed.\r\n if (!isBrowser || !this.connected_) {\r\n return;\r\n }\r\n document.removeEventListener('transitionend', this.onTransitionEnd_);\r\n window.removeEventListener('resize', this.refresh);\r\n if (this.mutationsObserver_) {\r\n this.mutationsObserver_.disconnect();\r\n }\r\n if (this.mutationEventsAdded_) {\r\n document.removeEventListener('DOMSubtreeModified', this.refresh);\r\n }\r\n this.mutationsObserver_ = null;\r\n this.mutationEventsAdded_ = false;\r\n this.connected_ = false;\r\n };\r\n /**\r\n * \"Transitionend\" event handler.\r\n *\r\n * @private\r\n * @param {TransitionEvent} event\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {\r\n var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;\r\n // Detect whether transition may affect dimensions of an element.\r\n var isReflowProperty = transitionKeys.some(function (key) {\r\n return !!~propertyName.indexOf(key);\r\n });\r\n if (isReflowProperty) {\r\n this.refresh();\r\n }\r\n };\r\n /**\r\n * Returns instance of the ResizeObserverController.\r\n *\r\n * @returns {ResizeObserverController}\r\n */\r\n ResizeObserverController.getInstance = function () {\r\n if (!this.instance_) {\r\n this.instance_ = new ResizeObserverController();\r\n }\r\n return this.instance_;\r\n };\r\n /**\r\n * Holds reference to the controller's instance.\r\n *\r\n * @private {ResizeObserverController}\r\n */\r\n ResizeObserverController.instance_ = null;\r\n return ResizeObserverController;\r\n }());\n\n /**\r\n * Defines non-writable/enumerable properties of the provided target object.\r\n *\r\n * @param {Object} target - Object for which to define properties.\r\n * @param {Object} props - Properties to be defined.\r\n * @returns {Object} Target object.\r\n */\r\n var defineConfigurable = (function (target, props) {\r\n for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {\r\n var key = _a[_i];\r\n Object.defineProperty(target, key, {\r\n value: props[key],\r\n enumerable: false,\r\n writable: false,\r\n configurable: true\r\n });\r\n }\r\n return target;\r\n });\n\n /**\r\n * Returns the global object associated with provided element.\r\n *\r\n * @param {Object} target\r\n * @returns {Object}\r\n */\r\n var getWindowOf = (function (target) {\r\n // Assume that the element is an instance of Node, which means that it\r\n // has the \"ownerDocument\" property from which we can retrieve a\r\n // corresponding global object.\r\n var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;\r\n // Return the local global object if it's not possible extract one from\r\n // provided element.\r\n return ownerGlobal || global$1;\r\n });\n\n // Placeholder of an empty content rectangle.\r\n var emptyRect = createRectInit(0, 0, 0, 0);\r\n /**\r\n * Converts provided string to a number.\r\n *\r\n * @param {number|string} value\r\n * @returns {number}\r\n */\r\n function toFloat(value) {\r\n return parseFloat(value) || 0;\r\n }\r\n /**\r\n * Extracts borders size from provided styles.\r\n *\r\n * @param {CSSStyleDeclaration} styles\r\n * @param {...string} positions - Borders positions (top, right, ...)\r\n * @returns {number}\r\n */\r\n function getBordersSize(styles) {\r\n var positions = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n positions[_i - 1] = arguments[_i];\r\n }\r\n return positions.reduce(function (size, position) {\r\n var value = styles['border-' + position + '-width'];\r\n return size + toFloat(value);\r\n }, 0);\r\n }\r\n /**\r\n * Extracts paddings sizes from provided styles.\r\n *\r\n * @param {CSSStyleDeclaration} styles\r\n * @returns {Object} Paddings box.\r\n */\r\n function getPaddings(styles) {\r\n var positions = ['top', 'right', 'bottom', 'left'];\r\n var paddings = {};\r\n for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {\r\n var position = positions_1[_i];\r\n var value = styles['padding-' + position];\r\n paddings[position] = toFloat(value);\r\n }\r\n return paddings;\r\n }\r\n /**\r\n * Calculates content rectangle of provided SVG element.\r\n *\r\n * @param {SVGGraphicsElement} target - Element content rectangle of which needs\r\n * to be calculated.\r\n * @returns {DOMRectInit}\r\n */\r\n function getSVGContentRect(target) {\r\n var bbox = target.getBBox();\r\n return createRectInit(0, 0, bbox.width, bbox.height);\r\n }\r\n /**\r\n * Calculates content rectangle of provided HTMLElement.\r\n *\r\n * @param {HTMLElement} target - Element for which to calculate the content rectangle.\r\n * @returns {DOMRectInit}\r\n */\r\n function getHTMLElementContentRect(target) {\r\n // Client width & height properties can't be\r\n // used exclusively as they provide rounded values.\r\n var clientWidth = target.clientWidth, clientHeight = target.clientHeight;\r\n // By this condition we can catch all non-replaced inline, hidden and\r\n // detached elements. Though elements with width & height properties less\r\n // than 0.5 will be discarded as well.\r\n //\r\n // Without it we would need to implement separate methods for each of\r\n // those cases and it's not possible to perform a precise and performance\r\n // effective test for hidden elements. E.g. even jQuery's ':visible' filter\r\n // gives wrong results for elements with width & height less than 0.5.\r\n if (!clientWidth && !clientHeight) {\r\n return emptyRect;\r\n }\r\n var styles = getWindowOf(target).getComputedStyle(target);\r\n var paddings = getPaddings(styles);\r\n var horizPad = paddings.left + paddings.right;\r\n var vertPad = paddings.top + paddings.bottom;\r\n // Computed styles of width & height are being used because they are the\r\n // only dimensions available to JS that contain non-rounded values. It could\r\n // be possible to utilize the getBoundingClientRect if only it's data wasn't\r\n // affected by CSS transformations let alone paddings, borders and scroll bars.\r\n var width = toFloat(styles.width), height = toFloat(styles.height);\r\n // Width & height include paddings and borders when the 'border-box' box\r\n // model is applied (except for IE).\r\n if (styles.boxSizing === 'border-box') {\r\n // Following conditions are required to handle Internet Explorer which\r\n // doesn't include paddings and borders to computed CSS dimensions.\r\n //\r\n // We can say that if CSS dimensions + paddings are equal to the \"client\"\r\n // properties then it's either IE, and thus we don't need to subtract\r\n // anything, or an element merely doesn't have paddings/borders styles.\r\n if (Math.round(width + horizPad) !== clientWidth) {\r\n width -= getBordersSize(styles, 'left', 'right') + horizPad;\r\n }\r\n if (Math.round(height + vertPad) !== clientHeight) {\r\n height -= getBordersSize(styles, 'top', 'bottom') + vertPad;\r\n }\r\n }\r\n // Following steps can't be applied to the document's root element as its\r\n // client[Width/Height] properties represent viewport area of the window.\r\n // Besides, it's as well not necessary as the itself neither has\r\n // rendered scroll bars nor it can be clipped.\r\n if (!isDocumentElement(target)) {\r\n // In some browsers (only in Firefox, actually) CSS width & height\r\n // include scroll bars size which can be removed at this step as scroll\r\n // bars are the only difference between rounded dimensions + paddings\r\n // and \"client\" properties, though that is not always true in Chrome.\r\n var vertScrollbar = Math.round(width + horizPad) - clientWidth;\r\n var horizScrollbar = Math.round(height + vertPad) - clientHeight;\r\n // Chrome has a rather weird rounding of \"client\" properties.\r\n // E.g. for an element with content width of 314.2px it sometimes gives\r\n // the client width of 315px and for the width of 314.7px it may give\r\n // 314px. And it doesn't happen all the time. So just ignore this delta\r\n // as a non-relevant.\r\n if (Math.abs(vertScrollbar) !== 1) {\r\n width -= vertScrollbar;\r\n }\r\n if (Math.abs(horizScrollbar) !== 1) {\r\n height -= horizScrollbar;\r\n }\r\n }\r\n return createRectInit(paddings.left, paddings.top, width, height);\r\n }\r\n /**\r\n * Checks whether provided element is an instance of the SVGGraphicsElement.\r\n *\r\n * @param {Element} target - Element to be checked.\r\n * @returns {boolean}\r\n */\r\n var isSVGGraphicsElement = (function () {\r\n // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement\r\n // interface.\r\n if (typeof SVGGraphicsElement !== 'undefined') {\r\n return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };\r\n }\r\n // If it's so, then check that element is at least an instance of the\r\n // SVGElement and that it has the \"getBBox\" method.\r\n // eslint-disable-next-line no-extra-parens\r\n return function (target) { return (target instanceof getWindowOf(target).SVGElement &&\r\n typeof target.getBBox === 'function'); };\r\n })();\r\n /**\r\n * Checks whether provided element is a document element ().\r\n *\r\n * @param {Element} target - Element to be checked.\r\n * @returns {boolean}\r\n */\r\n function isDocumentElement(target) {\r\n return target === getWindowOf(target).document.documentElement;\r\n }\r\n /**\r\n * Calculates an appropriate content rectangle for provided html or svg element.\r\n *\r\n * @param {Element} target - Element content rectangle of which needs to be calculated.\r\n * @returns {DOMRectInit}\r\n */\r\n function getContentRect(target) {\r\n if (!isBrowser) {\r\n return emptyRect;\r\n }\r\n if (isSVGGraphicsElement(target)) {\r\n return getSVGContentRect(target);\r\n }\r\n return getHTMLElementContentRect(target);\r\n }\r\n /**\r\n * Creates rectangle with an interface of the DOMRectReadOnly.\r\n * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly\r\n *\r\n * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.\r\n * @returns {DOMRectReadOnly}\r\n */\r\n function createReadOnlyRect(_a) {\r\n var x = _a.x, y = _a.y, width = _a.width, height = _a.height;\r\n // If DOMRectReadOnly is available use it as a prototype for the rectangle.\r\n var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;\r\n var rect = Object.create(Constr.prototype);\r\n // Rectangle's properties are not writable and non-enumerable.\r\n defineConfigurable(rect, {\r\n x: x, y: y, width: width, height: height,\r\n top: y,\r\n right: x + width,\r\n bottom: height + y,\r\n left: x\r\n });\r\n return rect;\r\n }\r\n /**\r\n * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.\r\n * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit\r\n *\r\n * @param {number} x - X coordinate.\r\n * @param {number} y - Y coordinate.\r\n * @param {number} width - Rectangle's width.\r\n * @param {number} height - Rectangle's height.\r\n * @returns {DOMRectInit}\r\n */\r\n function createRectInit(x, y, width, height) {\r\n return { x: x, y: y, width: width, height: height };\r\n }\n\n /**\r\n * Class that is responsible for computations of the content rectangle of\r\n * provided DOM element and for keeping track of it's changes.\r\n */\r\n var ResizeObservation = /** @class */ (function () {\r\n /**\r\n * Creates an instance of ResizeObservation.\r\n *\r\n * @param {Element} target - Element to be observed.\r\n */\r\n function ResizeObservation(target) {\r\n /**\r\n * Broadcasted width of content rectangle.\r\n *\r\n * @type {number}\r\n */\r\n this.broadcastWidth = 0;\r\n /**\r\n * Broadcasted height of content rectangle.\r\n *\r\n * @type {number}\r\n */\r\n this.broadcastHeight = 0;\r\n /**\r\n * Reference to the last observed content rectangle.\r\n *\r\n * @private {DOMRectInit}\r\n */\r\n this.contentRect_ = createRectInit(0, 0, 0, 0);\r\n this.target = target;\r\n }\r\n /**\r\n * Updates content rectangle and tells whether it's width or height properties\r\n * have changed since the last broadcast.\r\n *\r\n * @returns {boolean}\r\n */\r\n ResizeObservation.prototype.isActive = function () {\r\n var rect = getContentRect(this.target);\r\n this.contentRect_ = rect;\r\n return (rect.width !== this.broadcastWidth ||\r\n rect.height !== this.broadcastHeight);\r\n };\r\n /**\r\n * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data\r\n * from the corresponding properties of the last observed content rectangle.\r\n *\r\n * @returns {DOMRectInit} Last observed content rectangle.\r\n */\r\n ResizeObservation.prototype.broadcastRect = function () {\r\n var rect = this.contentRect_;\r\n this.broadcastWidth = rect.width;\r\n this.broadcastHeight = rect.height;\r\n return rect;\r\n };\r\n return ResizeObservation;\r\n }());\n\n var ResizeObserverEntry = /** @class */ (function () {\r\n /**\r\n * Creates an instance of ResizeObserverEntry.\r\n *\r\n * @param {Element} target - Element that is being observed.\r\n * @param {DOMRectInit} rectInit - Data of the element's content rectangle.\r\n */\r\n function ResizeObserverEntry(target, rectInit) {\r\n var contentRect = createReadOnlyRect(rectInit);\r\n // According to the specification following properties are not writable\r\n // and are also not enumerable in the native implementation.\r\n //\r\n // Property accessors are not being used as they'd require to define a\r\n // private WeakMap storage which may cause memory leaks in browsers that\r\n // don't support this type of collections.\r\n defineConfigurable(this, { target: target, contentRect: contentRect });\r\n }\r\n return ResizeObserverEntry;\r\n }());\n\n var ResizeObserverSPI = /** @class */ (function () {\r\n /**\r\n * Creates a new instance of ResizeObserver.\r\n *\r\n * @param {ResizeObserverCallback} callback - Callback function that is invoked\r\n * when one of the observed elements changes it's content dimensions.\r\n * @param {ResizeObserverController} controller - Controller instance which\r\n * is responsible for the updates of observer.\r\n * @param {ResizeObserver} callbackCtx - Reference to the public\r\n * ResizeObserver instance which will be passed to callback function.\r\n */\r\n function ResizeObserverSPI(callback, controller, callbackCtx) {\r\n /**\r\n * Collection of resize observations that have detected changes in dimensions\r\n * of elements.\r\n *\r\n * @private {Array}\r\n */\r\n this.activeObservations_ = [];\r\n /**\r\n * Registry of the ResizeObservation instances.\r\n *\r\n * @private {Map}\r\n */\r\n this.observations_ = new MapShim();\r\n if (typeof callback !== 'function') {\r\n throw new TypeError('The callback provided as parameter 1 is not a function.');\r\n }\r\n this.callback_ = callback;\r\n this.controller_ = controller;\r\n this.callbackCtx_ = callbackCtx;\r\n }\r\n /**\r\n * Starts observing provided element.\r\n *\r\n * @param {Element} target - Element to be observed.\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.observe = function (target) {\r\n if (!arguments.length) {\r\n throw new TypeError('1 argument required, but only 0 present.');\r\n }\r\n // Do nothing if current environment doesn't have the Element interface.\r\n if (typeof Element === 'undefined' || !(Element instanceof Object)) {\r\n return;\r\n }\r\n if (!(target instanceof getWindowOf(target).Element)) {\r\n throw new TypeError('parameter 1 is not of type \"Element\".');\r\n }\r\n var observations = this.observations_;\r\n // Do nothing if element is already being observed.\r\n if (observations.has(target)) {\r\n return;\r\n }\r\n observations.set(target, new ResizeObservation(target));\r\n this.controller_.addObserver(this);\r\n // Force the update of observations.\r\n this.controller_.refresh();\r\n };\r\n /**\r\n * Stops observing provided element.\r\n *\r\n * @param {Element} target - Element to stop observing.\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.unobserve = function (target) {\r\n if (!arguments.length) {\r\n throw new TypeError('1 argument required, but only 0 present.');\r\n }\r\n // Do nothing if current environment doesn't have the Element interface.\r\n if (typeof Element === 'undefined' || !(Element instanceof Object)) {\r\n return;\r\n }\r\n if (!(target instanceof getWindowOf(target).Element)) {\r\n throw new TypeError('parameter 1 is not of type \"Element\".');\r\n }\r\n var observations = this.observations_;\r\n // Do nothing if element is not being observed.\r\n if (!observations.has(target)) {\r\n return;\r\n }\r\n observations.delete(target);\r\n if (!observations.size) {\r\n this.controller_.removeObserver(this);\r\n }\r\n };\r\n /**\r\n * Stops observing all elements.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.disconnect = function () {\r\n this.clearActive();\r\n this.observations_.clear();\r\n this.controller_.removeObserver(this);\r\n };\r\n /**\r\n * Collects observation instances the associated element of which has changed\r\n * it's content rectangle.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.gatherActive = function () {\r\n var _this = this;\r\n this.clearActive();\r\n this.observations_.forEach(function (observation) {\r\n if (observation.isActive()) {\r\n _this.activeObservations_.push(observation);\r\n }\r\n });\r\n };\r\n /**\r\n * Invokes initial callback function with a list of ResizeObserverEntry\r\n * instances collected from active resize observations.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.broadcastActive = function () {\r\n // Do nothing if observer doesn't have active observations.\r\n if (!this.hasActive()) {\r\n return;\r\n }\r\n var ctx = this.callbackCtx_;\r\n // Create ResizeObserverEntry instance for every active observation.\r\n var entries = this.activeObservations_.map(function (observation) {\r\n return new ResizeObserverEntry(observation.target, observation.broadcastRect());\r\n });\r\n this.callback_.call(ctx, entries, ctx);\r\n this.clearActive();\r\n };\r\n /**\r\n * Clears the collection of active observations.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.clearActive = function () {\r\n this.activeObservations_.splice(0);\r\n };\r\n /**\r\n * Tells whether observer has active observations.\r\n *\r\n * @returns {boolean}\r\n */\r\n ResizeObserverSPI.prototype.hasActive = function () {\r\n return this.activeObservations_.length > 0;\r\n };\r\n return ResizeObserverSPI;\r\n }());\n\n // Registry of internal observers. If WeakMap is not available use current shim\r\n // for the Map collection as it has all required methods and because WeakMap\r\n // can't be fully polyfilled anyway.\r\n var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();\r\n /**\r\n * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation\r\n * exposing only those methods and properties that are defined in the spec.\r\n */\r\n var ResizeObserver = /** @class */ (function () {\r\n /**\r\n * Creates a new instance of ResizeObserver.\r\n *\r\n * @param {ResizeObserverCallback} callback - Callback that is invoked when\r\n * dimensions of the observed elements change.\r\n */\r\n function ResizeObserver(callback) {\r\n if (!(this instanceof ResizeObserver)) {\r\n throw new TypeError('Cannot call a class as a function.');\r\n }\r\n if (!arguments.length) {\r\n throw new TypeError('1 argument required, but only 0 present.');\r\n }\r\n var controller = ResizeObserverController.getInstance();\r\n var observer = new ResizeObserverSPI(callback, controller, this);\r\n observers.set(this, observer);\r\n }\r\n return ResizeObserver;\r\n }());\r\n // Expose public methods of ResizeObserver.\r\n [\r\n 'observe',\r\n 'unobserve',\r\n 'disconnect'\r\n ].forEach(function (method) {\r\n ResizeObserver.prototype[method] = function () {\r\n var _a;\r\n return (_a = observers.get(this))[method].apply(_a, arguments);\r\n };\r\n });\n\n var index = (function () {\r\n // Export existing implementation if available.\r\n if (typeof global$1.ResizeObserver !== 'undefined') {\r\n return global$1.ResizeObserver;\r\n }\r\n return ResizeObserver;\r\n })();\n\n return index;\n\n})));\n","'use strict'\n\nmodule.exports = (function () {\n /**\n * @ngdoc method\n * @name conversionTracking\n * @description Handles custom tracking events\n **/\n\n // Needs only be initialized once per page\n var initialize = function () {\n\n var $forms = $('.umbraco-forms-form form');\n if ($forms.length > 0) {\n setupFormSubmissionTracking($forms);\n }\n\n var $clickableTargets = $('.clickable');\n if ($clickableTargets.length > 0) {\n setupClickTracking($clickableTargets);\n }\n\n };\n\n // Pushes a form event\n // $form and actionName should be provided\n // Can optionally provide trackingValues. If not provided, these values will be determined from hidden fields on the form\n var pushFormEvent = function ($form, actionName, trackingValues) {\n if (!actionName || actionName.length == 0) {\n actionName = 'unknown';\n }\n\n if (!trackingValues) {\n trackingValues = getTrackingValuesFromForm($form);\n }\n\n var $popup = $form.closest('[data-popup]');\n var isInPopup = $popup && $popup.length > 0;\n\n var formTriggeringEvent = !isInPopup ? 'Embedded' : ($popup[0].hasAttribute('data-popup-auto') ? 'Automatic Popup' : 'Click');\n var formDisplayMethod = isInPopup ? 'Popup' : 'Embedded';\n\n dataLayer.push(\n {\n event: 'GTM Custom Tracking Event',\n pagePath: window.location.pathname,\n\n formTriggeringEvent: formTriggeringEvent,\n formDisplayMethod: formDisplayMethod,\n\n trackingCategory: trackingValues.trackingCategory,\n trackingEventAction: actionName,\n trackingFormName: trackingValues.trackingLabel && trackingValues.trackingLabel.length > 0 ? trackingValues.trackingLabel : trackingValues.formName\n }\n );\n }\n\n var setupClickTracking = function ($targets) {\n $targets.on('click', function () {\n var $this = $(this);\n\n // get tracking data off of the element being clicked\n var trackingCategory = $this.attr(\"data-tracking-category\");\n var trackingEventAction = $this.attr(\"data-tracking-action\");\n var trackingLabel = $this.attr(\"data-tracking-label\");\n var trackingValue = $this.attr(\"data-tracking-value\");\n\n // fall back to the default tracking values global to the whole page if the values were not specified on the clickable element\n if (!trackingCategory || trackingCategory.length <= 0) {\n trackingCategory = $('body').attr(\"data-tracking-page\"); //try to get the catagory from the body\n }\n if (!trackingEventAction || trackingEventAction.length <= 0) {\n trackingEventAction = 'click'; //Set the event type to a click\n }\n\n // fire GTM event\n var trackingParams = {\n event: trackingEventAction,\n pagePath: window.location.pathname,\n trackingCategory: trackingCategory,\n trackingEventAction: trackingEventAction,\n trackingLabel: trackingLabel\n };\n if (trackingValue) {\n $.extend(trackingParams, { trackingValue: trackingValue });\n }\n\n if (typeof dataLayer !== 'undefined') {\n dataLayer.push(trackingParams);\n }\n });\n }\n\n var setupFormSubmissionTracking = function ($forms) {\n $forms.on('getours-form-submission', function (e) {\n var $form = $(this);\n var trackingValues = getTrackingValuesFromForm($form);\n var isBrochureForm = trackingValues.formName.toLowerCase().indexOf('brochure') > -1;\n\n if ($form.valid()) {\n if (typeof dataLayer !== 'undefined') {\n pushFormEvent($form, 'submit', trackingValues);\n }\n\n if (isBrochureForm) {\n extendBrochureSignupMailCookie();\n }\n }\n });\n }\n\n var getTrackingValuesFromForm = function ($form) {\n var $formNameEl = $form.find('[name=\"FormName\"]');\n var $trackingCategoryEl = $form.find('.trackingcategory input');\n var $trackingLabelEl = $form.find('.trackinglabel input');\n var $trackingValueEl = $form.find('.trackingvalue input');\n\n return {\n trackingCategory: $trackingCategoryEl.length > 0 ? $trackingCategoryEl.val() : '',\n trackingLabel: $trackingLabelEl.length > 0 ? $trackingLabelEl.val() : '',\n trackingValue: $trackingValueEl.length > 0 ? $trackingValueEl.val() : '',\n formName: $formNameEl.val()\n };\n }\n\n var extendBrochureSignupMailCookie = function () {\n var daysTillExpiration = 365 * 10; // expire in 10 years. (forever!)\n $.cookie('BrochureSignupMail', 'submitted', { domain: 'getours.com', expires: daysTillExpiration, path: '/' });\n }\n\n // Return an object exposing the public items\n return {\n initialize: initialize,\n pushFormEvent: pushFormEvent\n };\n\n}())","/**\n* @class Cookie\n* @description Helper functions for adding and deleting cookies.\n*/\nmodule.exports = (function () {\n\t/**\n\t* @method delete\n\t* @param {string} cookieName - The name of the cookie to delete.\n\t* @description Deletes the indicated cookie.\n\t*/\n\tlet remove = function (cookieName) {\n\t\tif (cookieName) {\n\t\t\tset(cookieName, \"\", -1);\n\t\t}\n\t}\n\n\t/**\n\t* @method get\n\t* @param {string} cookieName - The name of the cookie to retrieve\n\t* @returns {string}\n\t* @description Get the value stored in the cookie with the matching name, if any.\n\t*/\n\tlet get = function (cookieName) {\n\t\tif (cookieName) {\n\t\t\tvar name = cookieName + \"=\";\n\t\t\tvar ca = document.cookie.split(';');\n\t\t\tfor (var i = 0; i < ca.length; i++) {\n\t\t\t\tvar c = ca[i];\n\t\t\t\twhile (c.charAt(0) == ' ') {\n\t\t\t\t\tc = c.substring(1);\n\t\t\t\t}\n\t\t\t\tif (c.indexOf(name) == 0) {\n\t\t\t\t\treturn c.substring(name.length, c.length);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}\n\n\t/**\n\t* @method set\n\t* @description Creates or overwrites the indicated cookie with the provided value, and optionally sets an expiration date.\n\t* @param {string} cookieName - The name of the cookie to set or overwrite\n\t* @param {string} cookieValue - The value to assign to the cookie\n\t* @param {number=} expirationDays - The time, in days, to store the cookie.\n\t*/\n\tlet set = function (cookieName, cookieValue, expirationDays) {\n\t\tif (cookieName) {\n\t\t\tvar d = new Date();\n\t\t\tvar expires = \"\";\n\t\t\tif (expirationDays) {\n\t\t\t\td.setTime(d.getTime() + (expirationDays * 24 * 60 * 60 * 1000));\n\t\t\t\texpires = \"expires=\" + d.toUTCString();\n\t\t\t}\n\t\t\tdocument.cookie = cookieName + \"=\" + cookieValue + \"; \" + expires + \"; path=/\";\n\t\t}\n\t}\n\n\treturn {\n\t\tremove: remove,\n\t\tget: get,\n\t\tset: set\n\t}\n}());","const eventBus = require(\"../eventBus/eventBus.js\");\nconst simplePopup = require('../simplePopup/simplePopup.js');\n\nmodule.exports = (function () {\n\n // -------------------- VUE IS HERE ------------------------------------\n let renderDatesAndRates = function (elementId) {\n new Vue({\n el: \"#\" + elementId,\n data() {\n return {\n datesAndRatesList: window.datesAndRatesList, // assuming datesAndRatesList is in window\n currentPage: [],\n itemsPerPage: 8,\n page: 1,\n startDate: null,\n displayLoadMore: true,\n scrollMargin: '0px'\n };\n },\n created() {\n let queryParams = new URLSearchParams(window.location.search);\n let dateParam = queryParams.get('m');\n if (dateParam) {\n // if there is a query param, use it to set the start date\n let year = dateParam.slice(0, 4);\n let month = dateParam.slice(4,6) - 1; // JavaScript month index starts from 0\n this.startDate = new Date(year, month);\n } else {\n // if there's no query param, set the start date to the first item's date\n this.startDate = new Date();\n }\n\n this.currentPage = this.paginatedItems();\n\n eventBus.$on(\"fixed-nav-resize-observed\", (scrollMargin) => {\n this.scrollMargin = scrollMargin + 'px';\n });\n },\n mounted() {\n document.addEventListener('fixed-nav-resize-observed', function (e) {\n // emit over the eventBus, so it can be observed by Vue\n eventBus.$emit('fixed-nav-resize-observed', e.detail);\n });\n },\n computed: {\n filteredDeparturesByDate() {\n let filteredDates = this.datesAndRatesList;\n if (this.startDate != null) {\n filteredDates = this.datesAndRatesList.filter(item => {\n let itemDate = new Date(item.departureDate);\n // only include items where the date is on or after the start date\n return itemDate >= this.startDate;\n });\n }\n\n return filteredDates;\n },\n totalVacations() {\n return this.filteredDeparturesByDate.length;\n }\n },\n methods: {\n paginatedItems() {\n let filteredDates = this.filteredDeparturesByDate;\n let end = this.page * this.itemsPerPage;\n return filteredDates.slice(0, end);\n },\n loadMore() {\n this.page += 1;\n this.currentPage = this.paginatedItems();\n\n if (this.totalVacations <= this.currentPage.length) {\n this.displayLoadMore = false;\n }\n },\n getExternalMvCodeClass(departure) {\n // Construct the class name with the prefix \"mv-\" and the value of departure.mvCode\n return 'mv-' + departure.externalMvCode;\n },\n getExternalDepartureCodeId(departure) {\n return 'departure-' + departure.externalDepartureCode;\n },\n getFormattedDate(date) {\n // Define the format options\n var dateToFormat = new Date(date);\n const options = {\n weekday: 'short', // Short weekday name (e.g., \"Mon\")\n month: 'short', // Short month name (e.g., \"Jan\")\n day: 'numeric', // Numeric day (e.g., 1)\n year: 'numeric', // Numeric year (e.g., 2023)\n };\n\n // Format the date\n const formattedDate = dateToFormat.toLocaleDateString(undefined, options);\n\n return formattedDate;\n },\n getFormattedDateShort(date) {\n // Define the format options\n var dateToFormat = new Date(date);\n const options = {\n month: 'short', // Short month name (e.g., \"Jan\")\n day: 'numeric' // Numeric day (e.g., 1)\n };\n\n // Format the date\n const formattedDate = dateToFormat.toLocaleDateString(undefined, options);\n\n return formattedDate;\n },\n getDayOfWeek(date) {\n // Define the format options\n var dateToFormat = new Date(date);\n const options = {\n weekday: 'short' // Short weekday name (e.g., \"Mon\")\n };\n\n // Format the date\n const formattedDate = dateToFormat.toLocaleDateString(undefined, options);\n\n return formattedDate;\n },\n open(selector) {\n if (selector && selector.length > 0) {\n var $el = $(selector);\n if ($el.length > 0) {\n simplePopup.initialize(selector);\n $el.click();\n }\n \n }\n }\n },\n filters: {\n currency: function (value) {\n if (typeof value !== \"number\") {\n return value;\n }\n var formatter = new Intl.NumberFormat('en-US', {\n style: 'currency',\n currency: 'USD',\n minimumFractionDigits: 0,\n maximumFractionDigits: 0\n });\n return formatter.format(value);\n }\n }\n });\n };\n\n return {\n renderDatesAndRates: renderDatesAndRates,\n };\n})();\n","// eventBus.js\nmodule.exports = (function () {\n\n const eventBus = new Vue();\n\treturn eventBus;\n}());","const cookies = require(\"../cookies/cookies.js\");\nconst slickSliderHelper = require('../slickSlider/slickSliderHelper.js');\n\n// initialize to global scope so favorites module can communicate with favorites modules in separate .js files\nwindow.favoritesEventBus = window.favoritesEventBus || require(\"../eventBus/eventBus.js\");\n\nmodule.exports = (function () {\n /**\n * @method set\n * @description Adds the vacation to the favorites\n * @param {string} id - The Umbraco guid if it's a tour and the cruise id (url) if it's a cruise\n */\n let addToFavorites = function (id) {\n if (id) {\n let favorites = getFavoritesFromCookie(); // Retrieve the favorites from the cookie\n if (!favorites) {\n favorites = [];\n }\n favorites.push(id); // Add the tourId to the favorites array\n saveFavoritesToCookie(favorites); // Save the updated favorites to the cookie\n window.favoritesEventBus.$emit(\"favoriteUpdated\", favorites, { action: 'add', value: id });\n }\n };\n\n /**\n * @method removeFavorites\n * @description Removes the vacation from the favorites\n * @param {string} id - The Umbraco guid if it's a tour and the cruise id (url) if it's a cruise\n */\n let removeFromFavorites = function (id) {\n const favorites = getFavoritesFromCookie(); // Retrieve the favorites from the cookie\n const index = favorites.indexOf(id);\n if (index !== -1) {\n favorites.splice(index, 1); // Remove the tourId from the favorites array\n saveFavoritesToCookie(favorites); // Save the updated favorites to the cookie\n window.favoritesEventBus.$emit(\"favoriteUpdated\", favorites, { action: 'remove', index: index });\n }\n };\n\n /**\n * @method toggleFavorite\n * @description Toggles an item into and out of the favorites list. Note that this does not visually update button states\n * @param {string} id - The Umbraco guid if it's a tour and the cruise id (url) if it's a cruise\n */\n let toggleFavorite = function (id) {\n if (!isFavorite(id)) {\n addToFavorites(id);\n } else {\n removeFromFavorites(id)\n }\n }\n\n /**\n * @method getFavorites\n * @description Gets the list of favorites from the cookie\n */\n let getFavoritesFromCookie = function () {\n var favCookie = cookies.get(\"get-favorites\");\n if (favCookie) {\n return decodeURIComponent(favCookie).split(\",\");\n }\n };\n\n /**\n * @method saveFavoritesToCookie\n * @description Saves the favorites to the cookie\n * @param {string[]} favorites - The list of Ids that will be combined to store in the cookie\n */\n let saveFavoritesToCookie = function (favorites) {\n if (favorites) {\n const favoriteString = favorites.join(\",\");\n cookies.set(\"get-favorites\", encodeURIComponent(favoriteString), 90);\n }\n };\n\n /**\n * @method isFavorite\n * @description Checks to see if the vacation is a favorite\n * @param {string} id - The Umbraco guid if it's a tour and the cruise id (url) if it's a cruise\n * @returns {boolean} - If the favorite exists in the cookie or not\n */\n let isFavorite = function (id) {\n if (id) {\n const favorites = getFavoritesFromCookie(); // Retrieve the favorites from the cookie\n if (!favorites) {\n return false;\n }\n return favorites.includes(id); // Check if the tourId exists in the favorites array\n }\n };\n\n /**\n * @method setFavoriteIcons\n * @description Updates all of the like buttons on the page when an item is liked or unliked\n */\n let setFavoriteIcons = function () {\n $('[data-favorite]').each(function () {\n const $this = $(this);\n const favId = $this.data('favorite');\n if (favId) {\n if (isFavorite(favId)) {\n $this.addClass('btn-liked');\n } else {\n $this.removeClass('btn-liked');\n }\n }\n });\n };\n\n /**\n * @method initializeFavoriteButtons\n * @description Initializes favorite button behavior\n * @param {string} selector - css selector to target the favorite buttons to initialize\n */\n let initializeFavoriteButtons = function(selector) {\n $(selector).click(function () {\n const $this = $(this);\n const favId = $this.data('favorite');\n toggleFavorite(favId);\n setFavoriteIcons();\n });\n }\n\n // -------------------- VUE IS HERE ------------------------------------\n\n /**\n * @method renderFavoritesList\n * @description Initialize the dynamic wishlist component\n * @param {string} elementId - id used to target the html wrapper element for this vue.js component\n */\n let renderFavoritesList = function (elementId) {\n let favoriteTimerId = 0;\n new Vue({\n el: \"#\" + elementId,\n data() {\n return {\n favoriteTours: [],\n sliderSelector: '#' + elementId + ' .mobile-tmc-slider'\n };\n },\n created() {\n if (!this.favoriteTours || this.favoriteTours.length == 0) {\n var ids = getFavoritesFromCookie();\n this.updateFavoriteTours(ids);\n }\n window.favoritesEventBus.$on(\"favoriteUpdated\", (ids, actionData) => {\n this.updateFavoriteTours(ids, actionData);\n });\n },\n updated() {\n\n },\n methods: {\n removeFavorite(favId) {\n removeFromFavorites(favId);\n setFavoriteIcons();\n },\n reinitializeSlider() {\n // Must give vue.js a chance to finish what its up to before slick kicks in\n if (typeof favoriteTimerId === \"number\" && favoriteTimerId > 0) {\n clearTimeout(favoriteTimerId);\n }\n favoriteTimerId = setTimeout(() => {\n let $slider = $(this.sliderSelector);\n let isInitialized = $slider.hasClass('slick-initialized');\n if (isInitialized) {\n $(this.sliderSelector).slick('unslick');\n } else {\n\n\n this.initializeSlider();\n }\n }, 2000);\n },\n initializeSlider() {\n if (this.favoriteTours && this.favoriteTours.length > 0) {\n slickSliderHelper.initialize(this.sliderSelector, {\n infinite: false,\n slidesToShow: 3,\n slidesToScroll: 1,\n responsive: [\n {\n breakpoint: 1199,\n settings: \"unslick-above\"\n },\n {\n breakpoint: 991,\n settings: {\n slidesToShow: 2,\n }\n },\n {\n breakpoint: 599,\n settings: {\n slidesToShow: 1,\n }\n }\n ]\n });\n }\n \n },\n removeSliderItem(idx) {\n $(this.sliderSelector).slick('slickRemove', idx);\n },\n async updateFavoriteTours(ids, actionData) {\n try {\n const response = await fetch(\n \"/umbraco/api/FavoritesApi/GetFavoriteTours?ids=\" + ids,\n {\n method: \"GET\",\n headers: {\n \"Content-Type\": \"application/json\",\n }\n }\n );\n if (response.ok) {\n const data = await response.json();\n this.favoriteTours = data;\n if (actionData && actionData.action === 'remove' && actionData.index) {\n this.removeSliderItem(actionData.index);\n } else {\n this.reinitializeSlider();\n }\n } else {\n throw new Error(\"Failed to fetch favorite tours\");\n }\n } catch (error) {\n console.error(\"Failed to fetch favorite tours:\", error);\n }\n }\n }\n });\n };\n\n return {\n setFavoriteIcons: setFavoriteIcons,\n addToFavorites: addToFavorites,\n removeFromFavorites: removeFromFavorites,\n isFavorite: isFavorite,\n renderFavoritesList: renderFavoritesList,\n toggleFavorite: toggleFavorite,\n initializeFavoriteButtons: initializeFavoriteButtons\n };\n})();\n","'use strict'\n\nmodule.exports = (function () {\n /**\n * @ngdoc method\n * @name featureDetection\n * @description Use this to check on whether a particular JS feature is enabled in the current browser\n **/\n\n var isPassiveSupported = function (selector) {\n let isPassiveSupported = false;\n\n try {\n const options = {\n get passive() {\n // This function will be called when the browser\n // attempts to access the passive property.\n isPassiveSupported = true;\n return false;\n },\n };\n\n window.addEventListener(\"passive-support-text\", null, options);\n window.removeEventListener(\"passive-support-text\", null, options);\n } catch (err) {\n isPassiveSupported = false;\n }\n\n return isPassiveSupported;\n }\n\n // Return an object exposing the public items\n return {\n isPassiveSupported: isPassiveSupported\n };\n}())","'use strict'\n\nmodule.exports = (function () {\n /**\n * @ngdoc method\n * @name fixedNavObserver\n * @description Initializes an observer that monitors the height of the fixed navs.\n * the height info is stored in namespaced global variable window.getours.fixedNavData\n * and can be retrieved via getHeightData()\n * \n * NOTE:\n * One of the limitations of the fixedNavObserver is that it is actually watching for resize\n * This means that if an element switches from being \"position: relative\"\" to \"position: fixed\",\n * but its actual height remains the same, it won't fire this thing off.\n **/\n\n var ResizeObserver = require('resize-observer-polyfill');\n\n // all fixed navs to be monitored\n window.getours.fixedNavData = [\n {\n selector: '.header-and-nav-wrapper',\n isFixed: function () {\n return document.body.classList.contains('has-fix-strip');\n },\n height: 0\n }, {\n selector: '.topStrip',\n isFixed: function () {\n return hasFixedStyle('.topStrip');\n },\n height: 0\n }, {\n selector: '#variants-and-jumps',\n isFixed: function () {\n return document.body.classList.contains('has-fixed-seasons-strip');\n },\n height: 0\n }, {\n selector: '#vacation-section-years',\n isFixed: function () {\n return document.body.classList.contains('has-fixed-year-select');\n },\n height: 0\n },\n {\n selector: \".submenu-jump-links-section\",\n isFixed: function () {\n return document.body.classList.contains('has-submenu-jump-links-section');\n },\n height: 0\n }\n ]\n\n var getFixedElementHeight = function (selector, isFixed) {\n if (!isFixed) {\n return 0;\n }\n\n var $el = $(selector);\n return $el.css('display') !== 'none' ? $el.outerHeight() : 0; // jquery may inconsistently return height of hidden elements. Be careful about this\n }\n\n // Needs only be initialized once per page\n var initializeObserver = function () {\n var resizeObserver = new ResizeObserver(function (entries, obs) {\n window.getours.fixedNavData.forEach(function (navDef) {\n navDef.height = getFixedElementHeight(navDef.selector, navDef.isFixed());\n });\n\n let totalFixedNavHeight = getTotalFixedNavHeight();\n let event = new CustomEvent('fixed-nav-resize-observed', { detail: totalFixedNavHeight });\n document.dispatchEvent(event);\n });\n\n // observe heights of all fixed navs\n window.getours.fixedNavData.forEach(function (navDef) {\n var navEl = document.querySelector(navDef.selector);\n if (navEl) {\n resizeObserver.observe(navEl, { box: 'border-box' });\n }\n });\n };\n\n var getHeightData = function () {\n return window.getours.fixedNavData;\n };\n\n var getHeightDataBySelector = function (selector) {\n return _.findWhere(window.getours.fixedNavData, { selector: selector });\n }\n\n var getTotalFixedNavHeight = function () {\n return _.reduce(window.getours.fixedNavData, function (memo, navDef) {\n return memo += navDef.height;\n }, 0);\n }\n\n var hasFixedStyle = function (selector) {\n var el = document.querySelector(selector);\n if (el) {\n var elStyles = window.getComputedStyle(el);\n var computedPosition = elStyles.getPropertyValue('position');\n var computedDisplay = elStyles.getPropertyValue('display');\n if (computedPosition === 'fixed' && computedDisplay !== 'none') {\n return true;\n }\n }\n\n return false;\n }\n\n // Return an object exposing the public items\n return {\n initialize: initializeObserver,\n getHeights: getHeightData,\n getHeightBySelector: getHeightDataBySelector,\n getTotalFixedNavHeight: getTotalFixedNavHeight\n };\n}())","'use strict'\n\nmodule.exports = (function () {\n\n /**\n * @doc method\n * @name initializePicker\n * @description Initialize a month year picker\n **/\n\n /// ***********************************************************************\n /// options include\n /// elementId: css selector to element which should be initialized as the month/year picker\n /// disabledOptions: enabled months (ex. {2023: [10, 11, 12], 2024: [5, 6, 9]}) - this comes from what departures are available\n /// enablePastMonths: whether or not past months should be enabled/disabled (default disabled)\n /// callback: function to call on month/year selected\n /// ***********************************************************************\n let initializePicker = function (options) {\n var monthYearEl = document.getElementById(options.elementId);\n if (!monthYearEl) {\n return;\n }\n\n let defaultOptions = {\n enabledOptions: {},\n enablePastMonths: false,\n appendHash: false\n }\n options = options || {};\n _.defaults(options, defaultOptions);\n\n var validOptions = initializePickerOptions(options);\n\n renderPicker(options.elementId, validOptions, options.appendHash);\n }\n\n let renderPicker = function (elementId, monthYearOptions, appendHash) {\n new Vue({\n el: '#' + elementId,\n data: {\n activeYear: new Date().getFullYear(),\n activeMonth: {},\n appendHash: appendHash || false,\n currentYear: new Date().getFullYear(),\n options: monthYearOptions,\n showCalendar: false,\n showNextYear: true,\n showPreviousYear: true,\n isOpen: false,\n windowWidth: window.innerWidth,\n id: elementId\n },\n computed: {\n years: function () {\n return Object.keys(this.options).sort(function (a, b) {\n return a - b;\n });\n },\n nextAvailableMonth: function() {\n var nextAvailableMonth = null;\n if (this.options[this.activeYear] != null) {\n nextAvailableMonth = _.find(this.options[this.activeYear], (month) => {\n return month.enabled;\n });\n }\n\n return nextAvailableMonth;\n },\n },\n created(){\n let minYear = this.getMinYear();\n let maxYear = this.getMaxYear();\n\n this.isMinYear(minYear);\n this.isMaxYear(maxYear);\n },\n mounted: function () {\n this.setDateFromQueryString();\n window.addEventListener('resize', this.updateWidth);\n },\n beforeDestroy: function(){\n window.removeEventListener('resize', this.updateWidth);\n },\n methods: {\n isActiveYear: function(year) {\n return this.activeYear == year;\n },\n isActiveMonth: function (month) {\n return this.activeMonth == month;\n },\n isActive: function (year, month) {\n return this.isActiveYear(year) && this.isActiveMonth(month);\n },\n getMinYear: function () {\n if (!this.years || this.years.length === 0) {\n return;\n }\n\n return this.years[0];\n },\n getMaxYear: function () {\n if (!this.years || this.years.length === 0) {\n return;\n }\n return this.years[this.years.length - 1];\n },\n handleOutsideClick(event) {\n if (!this.$refs.ysNav.contains(event.target)) {\n this.closeCalendar();\n }\n },\n isMaxYear: function (maxYear) {\n if (this.activeYear == maxYear) {\n this.showNextYear = false;\n }\n else {\n this.showNextYear = true;\n }\n },\n isMinYear: function (minYear) {\n if (this.activeYear == minYear) {\n this.showPreviousYear = false;\n }\n else {\n this.showPreviousYear = true;\n }\n },\n nextYear: function () {\n var maxYear = this.getMaxYear();\n var minYear = this.getMinYear();\n if (this.activeYear < maxYear) {\n this.activeYear++;\n\n this.isMinYear(minYear);\n this.isMaxYear(maxYear);\n }\n },\n prevYear: function () {\n var maxYear = this.getMaxYear();\n var minYear = this.getMinYear();\n if (this.activeYear > minYear) {\n this.activeYear--;\n\n this.isMinYear(minYear);\n this.isMaxYear(maxYear);\n }\n },\n toggleCalendar: function(year){\n if (!this.showCalendar || year != this.activeYear) {\n this.setActiveYear(year);\n this.showCalendar = true;\n\n var minYear = this.getMinYear();\n var maxYear = this.getMaxYear();\n this.isMinYear(minYear);\n this.isMaxYear(maxYear);\n }\n else if (this.activeYear == year) {\n this.showCalendar = false;\n }\n },\n closeCalendar: function () {\n this.showCalendar = false;\n },\n setActiveYear: function(year){\n this.activeYear = year;\n },\n setDateFromQueryString: function () {\n let queryParams = new URLSearchParams(window.location.search);\n let dateParam = queryParams.get('m');\n \n if (!dateParam) {\n return;\n }\n\n let yearFromQueryString = parseInt(dateParam.substring(0, 4), 10);\n let monthFromQueryString = parseInt(dateParam.slice(4, 6)) - 1;\n let useOnlyYear = dateParam.substring(6);\n if (!useOnlyYear) {\n this.activeMonth = monthFromQueryString;\n }\n this.currentYear = yearFromQueryString;\n this.activeYear = yearFromQueryString;\n },\n updateWidth: function() {\n this.windowWidth = window.innerWidth;\n }\n },\n watch: {\n showCalendar: function(newValue) {\n if (newValue) {\n // Calendar is opened\n document.addEventListener('click', this.handleOutsideClick);\n } else {\n // Calendar is closed\n document.removeEventListener('click', this.handleOutsideClick);\n }\n },\n windowWidth: function(newWidth) {\n if(elementId == \"departures-year-select\") {\n this.appendHash = true;\n }\n else {\n this.appendHash = false;\n }\n }\n }\n });\n }\n\n let initializePickerOptions = function (options) {\n var years = getYears(options.enabledOptions);\n var optionsDictionary = {};\n for (let i = 0; i < years.length; i++) {\n optionsDictionary[years[i]] = getMonths();\n }\n\n var currentDate = new Date();\n var currentYear = currentDate.getFullYear();\n var currentMonth = currentDate.getMonth();\n if (options.enablePastMonths && currentMonth > 0) {\n let pastMonths = _.range(currentMonth);\n if (!Object.hasOwn(options.enabledOptions, currentYear)) {\n options.enabledOptions[currentYear] = pastMonths;\n }\n else {\n options.enabledOptions[currentYear] = _.union(options.enabledOptions[currentYear], pastMonths);\n }\n }\n\n if (!options.enabledOptions || options.enabledOptions.length === 0) {\n return optionsDictionary;\n }\n\n var yearsWithEnabledMonths = Object.keys(options.enabledOptions);\n for (let i = 0; i < yearsWithEnabledMonths.length; i++) {\n let year = yearsWithEnabledMonths[i];\n if (!Object.hasOwn(optionsDictionary, year) || options.enabledOptions[year].length === 0) {\n continue;\n }\n\n // Trim out all options in the optionsDictionary that are present in the list of disabled options\n for (let j = 0; j < options.enabledOptions[year].length; j++) {\n var enabledMonthIdx = options.enabledOptions[year][j];\n if (optionsDictionary[year][enabledMonthIdx]) {\n optionsDictionary[year][enabledMonthIdx].enabled = true;\n }\n \n }\n }\n\n return optionsDictionary;\n };\n\n let getYears = function (optionDictionary) {\n return Object.keys(optionDictionary).sort(function (a, b) {\n return a - b;\n });\n }\n\n let getMonths = function () {\n return [\n new monthYear(0, 'Jan'),\n new monthYear(1, 'Feb'),\n new monthYear(2, 'Mar'),\n new monthYear(3, 'Apr'),\n new monthYear(4, 'May'),\n new monthYear(5, 'Jun'),\n new monthYear(6, 'Jul'),\n new monthYear(7, 'Aug'),\n new monthYear(8, 'Sep'),\n new monthYear(9, 'Oct'),\n new monthYear(10, 'Nov'),\n new monthYear(11, 'Dec'),\n ];\n }\n\n // Month/Year option model\n let monthYear = function (monthIdx = 0, label) {\n this.month = monthIdx;\n this.displayMonth = getDisplayMonth(monthIdx);\n this.label = label;\n this.enabled = false\n }\n\n let getDisplayMonth = function (monthIdx) {\n let displayMonth = monthIdx + 1;\n return displayMonth.toString().padStart(2, '0');\n }\n\n // Return an object exposing the public items\n return {\n initialize: initializePicker,\n initializeOptions: initializePickerOptions\n };\n}())","'use strict'\n\nvar conversionTracking = require('../conversionTracking/conversionTracking.js');\n\nmodule.exports = (function () {\n /**\n * @ngdoc method\n * @name simplePopup\n * @description Initializes simple popups\n **/\n\n // Needs only be initialized once per page\n var initializeSimplePopups = function (selector, optionOverrides) {\n\n var defaultOptions = {\n maxWidth: 923,\n enableConversionTracking: false\n };\n optionOverrides = optionOverrides || {};\n var options = $.extend({}, defaultOptions, optionOverrides);\n\n var $cta = $(selector);\n if ($cta.length > 0) {\n $cta.fancybox({\n padding: [0],\n fitToView: true,\n scrolling: 'no',\n maxWidth: options.maxWidth,\n autoSize: true,\n autoResize: true,\n tpl: {\n closeBtn: ''\n },\n closeClick: false,\n openEffect: 'none',\n closeEffect: 'none',\n afterLoad: function (context, contextAfter) {\n if (options.enableConversionTracking) {\n var $form = $(context.href + ' form');\n if ($form && $form.length > 0) {\n conversionTracking.pushFormEvent($form, 'popup opened');\n }\n }\n },\n afterClose: function (context, contextAfter) {\n \n if (options.enableConversionTracking) {\n var $form = $(context.href + ' form');\n if ($form && $form.length > 0) {\n // For an async form, the form will be gone after submit and we will not fire this event.\n // In that case, it is not as important to track \"popup closed\"\n conversionTracking.pushFormEvent($form, 'popup closed');\n }\n }\n }\n });\n }\n };\n\n \n\n // Return an object exposing the public items\n return {\n initialize: initializeSimplePopups\n };\n\n}())","'use strict'\n\nmodule.exports = (function () {\n /**\n * @ngdoc method\n * @name slickSliderHelper\n * @description Manage slick sliders through this helper\n **/\n\n // Initializes a slick slider\n // Supports optional disabling and reenabling of the slider when transitioning back and forth between desktop and mobile\n // Use settings \"unslick-above\" and \"unslick-below\" like:\n //\n // responsive: [\n // {\n // breakpoint: 991,\n // settings: \"unslick-above\"\n // },\n // {\n // breakpoint: 768,\n // settings: {\n // slidesToShow: 1,\n // }\n // }\n // ]\n var initialize = function(containerSelector, options) {\n if ($(containerSelector).length === 0) {\n return;\n }\n\n // supports a single upper and lower breakpoint for unslicking\n const unslickBelowBreakpoint = _.find(options.responsive, function (obj) {\n return obj.settings === 'unslick-below' && Number.isInteger(obj.breakpoint);\n });\n\n const unslickAboveBreakpoint = _.find(options.responsive, function (obj) {\n return obj.settings === 'unslick-above' && Number.isInteger(obj.breakpoint);\n });\n\n const hasUpperBreakpoint = unslickAboveBreakpoint && Number.isInteger(unslickAboveBreakpoint.breakpoint);\n const hasLowerBreakpoint = unslickBelowBreakpoint && Number.isInteger(unslickBelowBreakpoint.breakpoint);\n\n const windowWidth = $(window).width();\n const violatesUpperBound = hasUpperBreakpoint && windowWidth > unslickAboveBreakpoint.breakpoint;\n const violatesLowBound = hasLowerBreakpoint && windowWidth <= unslickBelowBreakpoint.breakpoint;\n if (!violatesUpperBound && !violatesLowBound) {\n $(containerSelector).not('.slick-initialized').slick(options);\n }\n\n if (hasUpperBreakpoint || hasLowerBreakpoint) {\n $(window).on('resize', function () {\n const windowWidth = $(window).width();\n $(containerSelector).each(function () {\n let $this = $(this);\n const isInitialized = $this.hasClass('slick-initialized');\n const violatesUpperBound = hasUpperBreakpoint && windowWidth > unslickAboveBreakpoint.breakpoint;\n const violatesLowBound = hasLowerBreakpoint && windowWidth <= unslickBelowBreakpoint.breakpoint;\n if (isInitialized && (violatesUpperBound || violatesLowBound)) {\n $this.slick('unslick');\n }\n else if (!isInitialized && !violatesUpperBound && !violatesLowBound) {\n $this.slick(options);\n }\n })\n });\n }\n }\n\n // Return an object exposing the public items\n return {\n initialize: initialize\n };\n}())","const fixedNavObserver = require('./components/fixedNavObserver/fixedNavObserver.js');\nconst monthYearPicker = require('./components/monthYearPicker/monthYearPicker.js');\nconst favorites = require('./components/favorites/favorites.js');\nconst datesAndRates = require('./components/datesAndRates/datesAndRates.js');\nconst featureDetection = require('./components/featureDetection/featureDetection.js');\nconst slickSliderHelper = require('./components/slickSlider/slickSliderHelper.js');\n\n(function ($) {\n $(document).ready(function () {\n\n calibrateJumpLinks();\n initializeItinerary();\n printVacation();\n\n setupSliders();\n\n setupPopups();\n\n var $mapTarget = $('.desktop-map a');\n if ($mapTarget.length > 0) {\n $mapTarget.fancybox({\n padding: [0],\n fitToView: true,\n scrolling: 'no',\n maxWidth: '923',\n autoSize: true,\n autoResize: true,\n tpl: {\n closeBtn: ''\n },\n closeClick: false,\n openEffect: 'none',\n closeEffect: 'none'\n });\n }\n\n var $locationsMoreLinks = $(\".overflow-locations-more-link\");\n $locationsMoreLinks.on('mouseover', function () {\n var moreTarget = $(this).attr('href');\n if (moreTarget) {\n $(moreTarget).addClass('showmore');\n }\n });\n\n $locationsMoreLinks.on('mouseout', function () {\n var moreTarget = $(this).attr('href');\n if (moreTarget) {\n $(moreTarget).removeClass('showmore');\n }\n });\n\n // Month - Year Picker\n var monthYearPickerOptions = {\n elementId: 'itinerary-month-year-picker',\n enabledOptions: window.yearMonthOptions,\n appendHash: false\n }\n\n var monthYearPickerOptionsMobile = {\n elementId: 'itinerary-month-year-picker-mobile',\n enabledOptions: window.yearMonthOptions,\n appendHash: false\n }\n\n var monthYearPickerOptionsDepartures = {\n elementId: 'departures-year-select',\n enabledOptions: window.yearMonthOptions,\n appendHash: true\n }\n\n monthYearPicker.initialize(monthYearPickerOptions);\n monthYearPicker.initialize(monthYearPickerOptionsMobile);\n monthYearPicker.initialize(monthYearPickerOptionsDepartures);\n\n // Dates and Rates\n datesAndRates.renderDatesAndRates('dates-and-rates');\n\n // Favorites (aka: Wishlist)\n favorites.renderFavoritesList('get-wishlist');\n\n // Check if .season-change element exists\n if ($('.season-change').length) {\n // Set a timeout to fade out the element after 20 seconds\n setTimeout(function () {\n $('.season-change').fadeOut();\n }, 10000); // 20000 milliseconds = 20 seconds\n\n $('.season-change .close').on('click', function () {\n $(this).parent('.season-change').fadeOut();\n });\n }\n });\n\n function handleItineraryExpandCollapseGlobalButtonToggles() {\n\n var expandedCount = 0;\n $('.timeline-nav button').each(function () {\n\n if ($(this).hasClass(\"collapsed\")) {\n expandedCount++;\n }\n });\n\n if (expandedCount === 0) {\n $('#expand-all').hide();\n $('#collapse-all').show();\n }\n else {\n\n $('#expand-all').show();\n $('#collapse-all').hide();\n }\n }\n\n function initializeItinerary() {\n\n $('.expand-button').on('click', function () {\n handleItineraryExpandCollapseGlobalButtonToggles();\n });\n\n $('#collapse-all').hide(); // the initial state is that all are collapsed by default\n\n $('#expand-all').on('click', function () {\n $('.panel-collapse:not(\".in\")').collapse('show');\n $('#expand-all').hide();\n $('#collapse-all').show();\n\n var $highlightsSlider = $('.itinerary-highlights-slider');\n $highlightsSlider.slick('refresh');\n \n gAllItineraryItemsCollapsed = false;\n });\n\n // Collapse all button\n $('#collapse-all').on('click', function () {\n $('.panel-collapse.in').collapse('hide');\n $('#expand-all').show();\n $('#collapse-all').hide();\n gAllItineraryItemsCollapsed = true;\n });\n\n $('.eis-panel-group').on('hidden.bs.collapse shown.bs.collapse', function () {\n var $this = $(this);\n var $expandedPanels = $this.find('.collapse.in');\n if ($expandedPanels.length === 0) {\n $this.parent().addClass('all-collapsed');\n console.log($this);\n } else {\n $this.parent().removeClass('all-collapsed');\n console.log($this);\n }\n\n var $highlightSlider = $expandedPanels.find('.itinerary-highlights-slider');\n $highlightSlider.slick('refresh');\n })\n }\n\n function setupSliders() {\n\n // Included Highlights and Hotels Sliders\n slickSliderHelper.initialize('.three-col-slider', {\n infinite: false,\n slidesToShow: 3,\n slidesToScroll: 1,\n responsive: [\n {\n breakpoint: 991,\n settings: {\n slidesToShow: 1.2,\n slidesToScroll: 1\n }\n }\n ]\n });\n\n // Hotel Popup image slider\n slickSliderHelper.initialize('.single-slider.image-slider', {\n infinite: true,\n slidesToShow: 1,\n slidesToScroll: 1\n });\n\n // Dining slider\n slickSliderHelper.initialize('.highlights-dining-slider', {\n infinite: false,\n slidesToShow: 3,\n slidesToScroll: 1,\n responsive: [\n {\n breakpoint: 768,\n settings: \"unslick-below\"\n }\n ]\n });\n\n // Itinerary Highlights mobile slider\n slickSliderHelper.initialize('.itinerary-highlights-slider', {\n infinite: false,\n slidesToShow: 3,\n slidesToScroll: 1,\n responsive: [\n {\n breakpoint: 1200,\n settings: {\n slidesToShow: 2.2,\n slidesToScroll: 2\n }\n },\n {\n breakpoint: 769,\n settings: {\n slidesToShow: 1.2,\n slidesToScroll: 1\n }\n }\n ]\n });\n\n // Optionals slider\n slickSliderHelper.initialize('.slim-card-slider', {\n infinite: false,\n slidesToShow: 3,\n slidesToScroll: 1,\n responsive: [\n {\n breakpoint: 768,\n settings: \"unslick-below\"\n }\n ]\n });\n\n // Similar Trips (Note that wishlist has to be initialized separately in its own vue.js component)\n slickSliderHelper.initialize('#similar-trips .mobile-tmc-slider', {\n infinite: false,\n slidesToShow: 3,\n slidesToScroll: 1,\n responsive: [\n {\n breakpoint: 1199,\n settings: \"unslick-above\"\n },\n {\n breakpoint: 991,\n settings: {\n slidesToShow: 2,\n }\n },\n {\n breakpoint: 599,\n settings: {\n slidesToShow: 1,\n }\n }\n ]\n });\n\n // Mobile Info Ribbon slider\n slickSliderHelper.initialize('.cta-card-slider', {\n infinite: false,\n slidesToShow: 2,\n slidesToScroll: 1,\n responsive: [\n {\n breakpoint: 991,\n settings: \"unslick-above\"\n },\n {\n breakpoint: 768,\n settings: {\n slidesToShow: 1,\n }\n }\n ]\n });\n\n initializeMobileJumpNavSlider();\n }\n\n function initializeMobileJumpNavSlider() {\n const slider = document.getElementById('vacation-jump-nav-strip-slider');\n if (slider) {\n let glide = new Glide('#' + slider.id, {\n type: 'slider',\n rewind: false,\n bound: true,\n startAt: 0,\n perView: 4,\n useSmartNav: false,\n autoPlay: false,\n breakpoints: {\n 768: {\n perView: 3,\n },\n 494: {\n perView: 2,\n },\n 360: {\n perView: 1,\n }\n }\n }).mount();\n\n slider.addEventListener('change-active-jump-nav-slide', function (e) {\n // automatically slide to active slide\n glide.go('=' + e.detail);\n }, featureDetection.isPassiveSupported() ? { passive: true } : false);\n }\n }\n\n // TODO: See/search for comments related to feature/23-GET-035. The logic and wire-up for the\n // proposed slider is not in place. I was having trouble getting popups to run and not sure how\n // the slider components work (and I'm basically out of time to get this part done...?) PW:RB\n\n function setupPopups() {\n let $reviewsTrigger = $('[data-fancybox-reviews]');\n $reviewsTrigger.fancybox({\n type: 'iframe',\n wrapCSS: 'rounded-popup',\n iframe: {\n scrolling: 'auto',\n preload: false\n },\n padding: [0],\n fitToView: true,\n scrolling: 'no',\n maxWidth: 694,\n autoSize: true,\n autoResize: true,\n tpl: {\n closeBtn: ''\n },\n closeClick: false,\n openEffect: 'none',\n closeEffect: 'none',\n });\n }\n\n function printVacation() {\n var $printBtn = $('.print-itinerary[data-print-page]');\n var printFriendlyPage = $printBtn.attr('data-print-page');\n if ($printBtn.length > 0 && printFriendlyPage && printFriendlyPage.length > 0) {\n $printBtn.on('click', function () {\n printPage(printFriendlyPage);\n });\n }\n }\n\n function printPage(url) {\n if (url && url.length > 0) {\n var printWindow = window.open(url, 'Print', 'left=200, top=200, width=950, height=500, toolbar=0, resizeable=0');\n if (printWindow.addEventListener) {\n printWindow.addEventListener('load', function () {\n executePrintWindow(printWindow);\n }, featureDetection.isPassiveSupported() ? { passive: true } : false);\n } else {\n // support for IE\n executePrintWindow(printWindow);\n }\n\n }\n }\n\n function executePrintWindow(printWindow) {\n printWindow.document.close();\n printWindow.focus();\n printWindow.print();\n setTimeout(function () {\n // wait a second before closing the printWindow to help ensure that the print dialog is fired up\n printWindow.close();\n }, 2000);\n }\n\n // fix the tour jump nav strip on scroll\n function calibrateJumpLinks() {\n var $body = $('body');\n var $variantsAndJumpLinks = $('#variants-and-jumps');\n if (!$variantsAndJumpLinks || $variantsAndJumpLinks.length === 0) {\n return;\n }\n\n var initialOffset = $variantsAndJumpLinks.offset().top;\n\n var $tourJumpLinks = $('.vacation-jump-link');\n createJumpLinks($tourJumpLinks, initialOffset, $body);\n\n var $monthJumpLinks = $('.DnP-month-jump');\n createJumpLinks($monthJumpLinks, initialOffset, $body);\n\n var $findPriceLinks = $('.tta-find-price.find-price-jump');\n createJumpLinks($findPriceLinks, initialOffset, $body);\n\n fixSeasonStrip();\n fixYearSelectStrip();\n setActiveSection();\n\n var scrollPos = 0;\n document.addEventListener('scroll', function () {\n var scrollDir = document.body.getBoundingClientRect().top > scrollPos ? 'up' : 'down';\n scrollPos = document.body.getBoundingClientRect().top;\n fixSeasonStrip(scrollDir);\n fixYearSelectStrip();\n setActiveSection();\n }, featureDetection.isPassiveSupported() ? { passive: true } : false);\n }\n\n function createJumpLinks($jumpLinks, initialOffset, $pageWrapper) {\n var $variantContainer = $('#variants-and-jumps');\n var variantContainerHeight = $variantContainer.height();\n\n $jumpLinks.on('click', function () {\n window.location.hash = this.hash;\n let $target = $(this.hash);\n $target = $target.length ? $target : $('[name=' + this.hash.slice(1) + ']');\n\n if ($target.length) {\n // Get fixed header height\n // must simulate future fixed header height before determining scroll position\n $pageWrapper.addClass('skip-animate');\n $pageWrapper.addClass('has-fixed-seasons-strip');\n\n // find out if we are about to jump within the departure section. This section has a fixed nav only within that section (not after)\n let departuresWrapperEl = document.getElementById('vacation-section-departures');\n let isDnpTarget = !departuresWrapperEl.isEqualNode($target[0]) && departuresWrapperEl.contains($target[0]);\n if (isDnpTarget) {\n $pageWrapper.addClass('has-fixed-year-select');\n } else {\n $pageWrapper.removeClass('has-fixed-year-select');\n }\n\n var headerHeight = fixedNavObserver.getTotalFixedNavHeight();\n\n $(window).scrollTop($target.offset().top - headerHeight);\n\n $pageWrapper.removeClass('skip-animate');\n if ($(window).scrollTop() > initialOffset - variantContainerHeight) {\n $pageWrapper.addClass('has-fixed-seasons-strip');\n } else {\n $pageWrapper.removeClass('has-fixed-seasons-strip');\n }\n\n setActiveSection();\n }\n\n return false;\n });\n }\n\n function fixSeasonStrip(scrollDir) {\n var tourTopRegion = document.getElementsByClassName('vacation-details-container')[0];\n var variantsAndJumpNavs = document.getElementById('variants-and-jumps');\n\n var headerNavWrapperData = fixedNavObserver.getHeightBySelector('.header-and-nav-wrapper');\n\n // Make sure to check if we are scrolling up to prevent jitter as we cross the boundary and padding is applied to the body\n if (scrollDir === 'down' && !document.body.classList.contains('has-fixed-seasons-strip') && variantsAndJumpNavs.getBoundingClientRect().top <= headerNavWrapperData.height) {\n document.body.classList.add('has-fixed-seasons-strip');\n } else if (scrollDir === 'up' && document.body.classList.contains('has-fixed-seasons-strip') && tourTopRegion.getBoundingClientRect().bottom > headerNavWrapperData.height) {\n document.body.classList.remove('has-fixed-seasons-strip');\n }\n }\n\n function isWithinDepartureSection(pixelsFromTopOfViewport) {\n var yearSelectStrip = document.getElementById('vacation-section-departures');\n var topRegion = yearSelectStrip.previousElementSibling;\n var bottomRegion = yearSelectStrip.querySelector('.departures-list-results');\n // Instead of using the next vacation section after the departures,\n // we are using the bottom of the vacation-section-departures.\n // There is a lot of funkiness that can be easily avoided by just considering ourselves outside of the departures section\n // far before we actually get to the next vacation section\n\n var isBeforeSection = topRegion.getBoundingClientRect().bottom > pixelsFromTopOfViewport;\n var isAfterSection = bottomRegion.getBoundingClientRect().bottom + fixedNavObserver.getHeightBySelector('#vacation-section-years').height < pixelsFromTopOfViewport;\n\n var isWithin = !isBeforeSection && !isAfterSection;\n return isWithin;\n }\n\n function fixYearSelectStrip() {\n let fixedNavHeight = fixedNavObserver.getTotalFixedNavHeight();\n let isWithin = isWithinDepartureSection(fixedNavHeight);\n let isFixed = document.body.classList.contains('has-fixed-year-select');\n\n // Make sure to check if we are scrolling up to prevent jitter as we cross the boundary and padding is applied to the body\n if (isFixed && !isWithin) {\n document.body.classList.remove('has-fixed-year-select');\n }\n else if (!isFixed && isWithin) {\n document.body.classList.add('has-fixed-year-select');\n }\n }\n\n function setActiveSection() {\n const fixedHeaderHeight = fixedNavObserver.getTotalFixedNavHeight();\n const vacationSections = document.getElementsByClassName('vacation-section');\n\n const desktopJumpLinks = document.querySelectorAll('.desktop-jump-nav .vacation-jump-link');\n const mobileSliderJumpLinks = document.querySelectorAll('.mobile-jump-nav .vacation-jump-link');\n\n const activeSection = _.find(vacationSections, function (vs) {\n const distance = vs.getBoundingClientRect().bottom - fixedHeaderHeight - 2; // add a couple of pixels of buffer to prevent off by 1 error\n return distance >= 0;\n });\n\n if (activeSection) {\n const sectionId = activeSection.id;\n for (var i = 0; i < desktopJumpLinks.length; i++) {\n const jumpLink = desktopJumpLinks[i];\n if (jumpLink.getAttribute('href') == '#' + sectionId) {\n jumpLink.classList.add('current');\n }\n else {\n jumpLink.classList.remove('current');\n }\n }\n\n for (var i = 0; i < mobileSliderJumpLinks.length; i++) {\n const jumpLink = mobileSliderJumpLinks[i];\n if (jumpLink.getAttribute('href') == '#' + sectionId) {\n jumpLink.classList.add('current');\n const slider = document.getElementById('vacation-jump-nav-strip-slider');\n if (slider) {\n const event = new CustomEvent('change-active-jump-nav-slide', { detail: i });\n slider.dispatchEvent(event);\n }\n }\n else {\n jumpLink.classList.remove('current');\n }\n }\n }\n }\n\n})(jQuery)"]}