{"version":3,"sources":["scripts-1559160449886.js","JS/calendar-availability.js","JS/constants.js","JS/dynsite-functions.js","JS/events.js","JS/google-analytics.events.js","JS/lr.common-polyfills.js","JS/lr.local-storage.js","JS/lr.pubsub.js","JS/lr.typeahead.js","JS/main.js","JS/property-date-ranges.js","JS/property-instant-quote.js","JS/search-results-functions.js","JS/search-results-template.js","JS/vendor/bootstrap-datepicker.js","JS/vendor/echo.js","JS/vendor/lr.strip-calendar.js"],"names":["_slicedToArray","arr","i","_arrayWithHoles","_iterableToArrayLimit","_nonIterableRest","TypeError","_arr","_n","_d","_e","undefined","_s","_i","Symbol","iterator","next","done","push","value","length","err","Array","isArray","_typeof","obj","constructor","prototype","LIVEREZ","window","$","CALENDAR_DAY_TYPES","Available","Unavailable","CheckIn","CheckOut","EarlyCheckIn","LateCheckOut","EarlyCheckInLateCheckOut","SingleNightRental","TurnOver","TurnOverEarlyCheckIn","TurnOverLateCheckOut","CalendarAvailability","dynsiteId","adminCustDataID","pageDataId","this","adminCustDataId","unavailableTypes","unavailableDateObjs","unavailableDateObjsMobile","queriedYears","getCalendarData","startDate","endDate","callback","_this","xhr","readystate","abort","Date","getFullYear","ajax","type","url","DynsiteFunctions","getServerName","data","AdminCustDataID","DynSiteID","PageDataID","ad","dd","dataType","success","forEach","dateObj","_type","calendarDayTypes","indexOf","earlyCheckIn","lateCheckOut","searchAllowForEarlyCheckIn","searchAllowForLateCheckOut","formattedDateObj","dateStringToObject","startDateString","dateFormatType","fixEuroDatesForAPI","filter","element","index","array","ex","console","error","status","remove","log","findDateConflicts","start","end","tmpDate","lrjQ","constants","MAP_TYPE","google","leaflet","PopUp","URL","Window","w","h","x","y","open","socialSharePage","socialType","image","headline","page","encodeURIComponent","location","href","toString","isEmailAddr","email","result","theStr","String","pindex","validRequired","formField","fieldLabel","alert","focus","allDigits","str","inValidCharSet","charset","substr","validEmail","required","validNum","validInt","num","parseInt","isNaN","validDate","elems","split","month","day","origin","protocol","hostname","port","goPropertyByElem","selectObj","val","options","selectedIndex","parent","goPropertyByID","sendtofriend","propertycontact","AD","DD","viewproperty","strPageDataID","strUnitID","formObj","document","action","WebReferencePageDataID","InventoryUnitDataID","submit","debounce","func","wait","immediate","timeout","context","args","arguments","later","apply","callNow","clearTimeout","setTimeout","DateShort","DateStr","delimeter","getMonth","getDate","DateNatural","d","nth","includeYear","setHours","getHours","getTimezoneOffset","MONTH_NAMES","DAY_NAMES","final","getDay","handleNavisCookies","NavisKeyword","NavisPhone","Storage","set","DYN_SITE_ID","fix800NumberForNavis","get","NavisHiddenPhoneVal","NavisHiddenKeywordVal","attr","text","NavisHiddenKeyword","NavisHiddenPhone","handleCRMPlusCookies","LeadID","insertLeadCookie","leadCookie","leadIDInput","trimDate","strDate","replace","dateFormat","parts","dateStringToISO8601","dateString","myDate","returnDate","join","dateObjectToString","dateStr","year","truncate","string","elipsisBool","_str","substring","daydiff","first","second","checkValidStartEndDates","date1","date2","now","numSearchedDay","maxDays","maxWebRentalDays","isMobileDevice","check","a","test","navigator","userAgent","vendor","opera","checkForEmailElementToHide","div","getElementById","style","display","fixTextForDisplay","strText","on","events","searchCreateMapImage","searchMapOpen","searchMapClose","searchStart","searchComplete","resultsRenderComplete","instantQuoteFinished","calDataFinished","searchSuggestionsStart","searchSuggestionsComplete","calendarSearchStart","calendarSearchComplete","calendarSearchRenderComplete","propertyDateRangeStart","propertyDateRangeComplete","propertyDateRangeError","propertyDateRangeSuccess","NAMESPACE","ready","LR_ENV","ga","loaded","pathname","$propertyBookItNowButton","$propertySidebarContactManagerButton","$propertySendToFriendLink","$propertyCommunityLearnMoreLink","$propertyChangeDatesLink","$propertyReviewWidgetReviewsAnchor","$propertyAllPhotosButton","$propertyFullScreen","$propertyShowAllAmenitiesExpand","$searchComparePropertiesButton","$searchViewMoreCalendars","$searchChangeDatesButton","e","fun","t","Object","len","res","thisArg","call","T","k","O","kValue","searchElement","fromIndex","Math","abs","Infinity","Function","bind","oThis","aArgs","slice","fToBind","fNOP","fBound","concat","LocalStorage","localStoreSupport","localStorage","setItem","removeItem","key","days","JSON","stringify","date","setTime","getTime","expires","toGMTString","cookie","nameEQ","ca","c","charAt","parse","exists","getItem","pubsub","topics","subUid","publish","topic","subscribers","subscribe","token","unsubscribe","m","j","splice","Publisher","_timeout","DEFAULTS","timeoutLength","dataSource","query","_sendData","q","onNewData","Plugin","option","each","$this","extend","Typeahead","init","wrapperDiv","css","position","width","addClass","typeaheadDiv","top","outerHeight","left","border","border-top","background","color","max-height","overflow-y","html","wrap","after","getData","insertTypeAheadData","close","typeaheadelem","domTypeAheadElem","is","target","has","off","empty","append","fn","lrtypeahead","Constructor","nowTemp","datepicker","beforeShowDay","valueOf","format","autoclose","orientation","id","newDate","setDate","defaultSearchDepartureDays","newEndDate","message","mobiscroll","calendar","theme","controls","minDate","change","mobileEndInst","closeOnSelect","startDateStr","endDateStr","newEnd","newEndStr","echo","throttle","offsetVertical","getScript","CDN_BASE_URL","popover","placement","trigger","myOptions","ADMIN_CUST_DATA_ID","retHtml","pageDataID","pid","DAYS_OF_WEEK","PropertyDateRanges","getByPageDataID","fakeData","dateRanges","buildDateRangeTable","preferences","container","table","tableBody","_buildHeaderRow","dateRange","_buildDateRangeRow","row","nightlyPricing","pricingPerDayOfWeek","weeklyPricing","monthlyPricing","showMinStayOnProperty","isRowEven","_isEven","available","rangeTitle","trim","strDateRangeL","strDateRangeU","pricingColumns","hasOwnProperty","dateRangeType","_formatPricing","weekly","sunPrice","monPrice","tuePrice","wedPrice","thuPrice","friPrice","satPrice","nightly","nightlyHTML","startingAtNightly","weeklyHTML","startingAtWeekly","monthly","monthlyHTML","startingAtMonthly","cell","minimumNightsStayWebBooking","minimumNightsStay","weekToWeekCheckinDay","price","newPrice","parseFloat","toFixed","currencySymbol","n","cleanPrice","decimalPrice","InstantQuote","getQuote","instantQuoteObj","_checkValidDates","StartDate","EndDate","hideLoading","setError","showDates","showButton","killAjax","adults","Adults","children","Children","checkAvailable","LiveNetID","removeClass","isAvailable","averageDailyRateBeforeSpecials","averageDailyRate","quantityDays","fees","taxTotal","rent","rentBeforeSpecials","total","deposit","hasSpecials","showPricing","OnlineBookings","showHeading","strError","removeError","strButtonType","submitForm","strFormType","showLoading","hideDates","hidePricing","changeDates","SearchResults","cacheObj","mapData","markerObjs","markersArr","isOpen","instance","setSearch","SearchObj","searchOrder","OrderBy","Sort","currentPage","searchRun","Beds","Bedrooms","sleeps","Guests","arrivaldate","ArrivalDate","departuredate","DepartureDate","comparesearch","CompareSearch","Style","categoryid","CategoryID","destinationID","DestinationID","communityid","CommunityID","admincustdataid","dynsiteid","DynsiteID","searchtype","SearchType","searchOrigin","SearchOrigin","advs","AdvancedSearch","pagedataid","pageSize","flexibleDates","searchAmenities","showOnlySpecials","flexibleDatesThreshold","getCalendarSuggestions","_searchProperties","properties","map","property","csxhr","searchedDate","searchEnd","_daysSearched","daysBack","daysForward","stopDate","consecutiveDays","floor","bedrooms","guests","maxProperties","finalProps","CompareProperties","CheckCompare","Search_xml","CompareCheckboxArr","setView","strView","getView","saveResultsData","resultsData","results","renderResultsbyView","addtPropAvailMsgLocation","errorMsg","propertiesDiv","propertiesStr","propData","SearchResultsTemplateGrid","SearchResultsTemplateList","latitude","longitude","currency","lat","lng","returnMessageText","weekToWeek","hasProperties","messageText","prevSuggestions","suggestion","fixedStartDate","fixedEndDate","startingDay","nextSuggestions","showMinNightsStayMessage","prepend","createMap","mapType","markers","mapOptions","zoom","center","maps","LatLng","styles","featureType","elementType","stylers","visibility","Map","infowindow","InfoWindow","scrollWheelZoom","L","deleteAllMapMarkers","tileLayer","attribution","addTo","createMapMarkers","setMap","removeLayer","bounds","LatLngBounds","marker","infoWindowHTML","SearchResultsTemplateMapInfoWindow","markerLatLng","Marker","title","event","addListener","setContent","fitBounds","featureGroup","bindPopup","getBounds","openMap","closeMap","startD","endD","scrollTo","renderAmenities","amenities","cb","list","item","count","checked","amenity","amenityID","label","outerHTML","getCheckedAmenityCount","_formatAvgNightlyRate","preference","displayPrice","averageNightlyRate","preSpecialPrice","averageNightlyRateBeforeSpecials","displayPriceUnit","weeklyPrice","weeklyPriceBeforeSpecials","discountPercentage","round","showTagClass","checkInDates","ret","showRatesOnResults","link","image550","showSleepsOnSearchResults","maxGuests","showBedsOnSearchResults","showBathsOnSearchResults","bathrooms","showPIDNumbers","showMinNightsOnSearchResults","minNightsReq","showPetsOnSearchResults","allowsPets","CalendarSuggestion","prepDataForStrip","normalizeDateTimeZone","actDate","checkIn","CheckInCustDataID","checkOut","CheckOutCustDataID","occupied","dateOBj","calData","CalendarSuggestions","propertyLink","searchForm","SC","StripCalendar","htmlCal","generateHtml","calendarHtml","StartingAtPrice","Heading","Location","Sleeps","Bathrooms","PID","MinimumNightsStay","AllowsPets","FlexDatesInlinePicker","flexibleDatesList","pricingDisplay","handleClick","sorted","sort","b","threshold","$container","daysHTML","formatPrice","$day","active","$topRow","$bottomRow","$priceRow","formatted","_parts","currencySymbolDecoded","startingRate","factory","define","amd","exports","require","jQuery","UTCDate","UTC","UTCToday","today","isUTCEquals","getUTCFullYear","getUTCMonth","getUTCDate","alias","method","deprecationMsg","deprecated","isValidDate","opts_from_el","el","prefix","re_lower","_","toLowerCase","inkey","out","RegExp","opts_from_locale","lang","dates","locale_opts","DateArray","extras","contains","l","new_array","clear","copy","Datepicker","_process_options","viewDate","o","defaultViewDate","focusDate","isInput","inputField","find","component","hasClass","isInline","picker","DPGlobal","template","_check_template","templates","leftArrow","rightArrow","_buildEvents","_attachEvents","appendTo","rtl","calendarWeeks","Number","_o","daysOfWeekDisabled","daysOfWeekHighlighted","datesDisabled","_allow_update","setViewMode","startView","fillDow","fillMonths","update","show","_resolveViewName","view","viewModes","viewMode","inArray","names","_resolveDaysOfWeek","daysOfWeek","tmp","match","jDom","opts","language","defaults","minViewMode","maxViewMode","max","min","multidate","multidateSeparator","weekStart","weekEnd","parseFormat","_local_to_utc","_zero_time","parseDate","assumeNearbyYear","plc","_plc","grep","word","_events","_secondaryEvents","_applyEvents","evs","ch","ev","_unapplyEvents","keyup","proxy","keyCode","keydown","paste","showOnFocus","click","blur","_focused_from","immediateUpdates","changeYear changeMonth","navArrowsClick","dayCellClick","resize","place","mousedown touchstart","hide","_detachEvents","_attachSecondaryEvents","_detachSecondaryEvents","_trigger","altdate","local_date","_utc_to_local","ix","formatDate","prop","enableOnReadonly","msMaxTouchPoints","disableTouchKeyboard","detach","forceParse","setValue","destroy","originalEvent","clipboardData","types","preventDefault","utc","local","_zero_utc_time","getDates","getUTCDates","selected_date","clearDates","setDates","setUTCDates","setUTCDate","getFormattedDate","getStartDate","setStartDate","updateNavArrows","getEndDate","setEndDate","setDaysOfWeekDisabled","setDaysOfWeekHighlighted","setDatesDisabled","calendarWidth","outerWidth","calendarHeight","visualPadding","windowWidth","scrollTop","appendOffset","offset","parentsZindex","parents","itemZIndex","zIndex","zIndexOffset","height","top_overflow","yorient","right","oldDates","fromArgs","dateWithinRange","updateViewDate","fill","showWeekDays","dowCnt","daysMin","focused","localDate","monthsShort","setRange","range","getClassNames","cls","todayHighlight","dateIsDisabled","getUTCDay","_fill_yearsView","selector","cssClass","factor","startYear","endYear","beforeFn","classes","tooltip","before","step","startVal","endVal","focusedVal","selected","currVal","noop","enabled","startMonth","endMonth","todaytxt","cleartxt","titleFormat","todayBtn","clearBtn","prevMonth","nextMonth","setUTCFullYear","weekDay","clsName","ws","th","yth","calWeek","content","isFunction","uniqueSort","unique","monthsTitle","months","eq","beforeShowMonth","that","moDate","beforeShowYear","beforeShowDecade","beforeShowCentury","prevIsDisabled","nextIsDisabled","toggleClass","stopPropagation","_setDate","setUTCMonth","$target","currentTarget","timestamp","dir","navStep","moveMonth","_toggle_multidate","toggleActive","which","moveDay","moveWeek","new_month","new_date","mag","moveYear","moveAvailableDate","weekOfDateIsDisabled","newViewDate","dateChanged","keyboardNavigation","ctrlKey","shiftKey","DateRangePicker","inputs","jquery","keepEmptyValues","datepickerPlugin","dateUpdated","pickers","updateDates","updateRanges","p","updating","dp","keep_empty_values","old","shift","internal_return","elopts","xopts","locopts","toArray","Error","en","daysShort","validParts","nonpunctuation","toValue","toDisplay","separators","assumeNearby","applyNearbyYear","match_part","part","fn_map","dateAliases","yesterday","tomorrow","filtered","parsed","setters_order","setters_map","yyyy","v","fparts","cnt","_date","s","D","M","MM","yy","mm","seps","headTemplate","contTemplate","footTemplate","noConflict","version","msg","warn","root","module","poll","delay","useDebounce","unload","isHidden","offsetParent","inView","box","getBoundingClientRect","bottom","r","debounceOrThrottle","render","offsetAll","offsetHorizontal","optionToInt","opt","fallback","offsetTop","offsetBottom","offsetLeft","offsetRight","addEventListener","attachEvent","src","elem","nodes","querySelectorAll","innerHeight","documentElement","clientHeight","innerWidth","clientWidth","setAttribute","getAttribute","backgroundImage","removeAttribute","removeEventListener","detachEvent","getDateDiff","d1","d2","currentDate","getDaysInEachMonth","datesArr","_month","_year","starDate","self","numberOfDays","startingMonth","stoppingMonth","displayDates","_dates","daysSuperShort","_daysInEachMonth","headingRow","weekdayRow","dateRow","monthIndex","weekday","calendarDay","current"],"mappings":"AAAA,YAEA,SAASA,gBAAeC,EAAKC,GAAK,MAAOC,iBAAgBF,IAAQG,sBAAsBH,EAAKC,IAAMG,mBAElG,QAASA,oBAAqB,KAAM,IAAIC,WAAU,wDAElD,QAASF,uBAAsBH,EAAKC,GAAK,GAAIK,MAAeC,GAAK,EAAUC,GAAK,EAAWC,EAAKC,MAAW,KAAM,IAAK,GAAiCC,GAA7BC,EAAKZ,EAAIa,OAAOC,cAAmBP,GAAMI,EAAKC,EAAGG,QAAQC,QAAoBV,EAAKW,KAAKN,EAAGO,QAAYjB,GAAKK,EAAKa,SAAWlB,GAA3DM,GAAK,IAAoE,MAAOa,GAAOZ,GAAK,EAAMC,EAAKW,EAAO,QAAU,IAAWb,GAAsB,MAAhBK,EAAG,WAAmBA,EAAG,YAAe,QAAU,GAAIJ,EAAI,KAAMC,IAAQ,MAAOH,GAElZ,QAASJ,iBAAgBF,GAAO,GAAIqB,MAAMC,QAAQtB,GAAM,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AoW,SAAA,kCACA0xB,EAAA9nC,EAAA,UAAAoW,SAAA,8BAGA,KAAA,GAAAjD,KAAAw0B,GAAA,CACA,GAAAI,GAAA50B,EAAA1L,MAAA,KAAA,GACAC,EAAA1H,EAAA,UACA4L,KAAA67B,EAAArM,YAAA2M,IACAp8B,KAAA,UAAAg8B,EAAAx0B,GACAy0B,GAAAhwB,OAAAlQ,GAIAzG,KAAAumC,aAAA1kC,QAAA,SAAA+mB,GACA,GAAAme,GAAAhoC,EAAA,UAAA4L,KAAA67B,EAAAC,eAAA7d,EAAA7e,UACAg9B,GAAA5xB,SAAA,8BAEAyxB,EAAAjwB,OAAAowB,EAEA,IAAArgC,GAAA3H,EAAA,UAAA4L,KAAAie,EAAAxf,UACA1C,GAAAyO,SAAA,0BAAAqhB,EAAA5N,IAEAie,EAAAlwB,OAAAjQ,KAIA1G,KAAAqB,KAAAQ,QAAA,SAAAmlC,GACA,GAAAC,GAAAJ,EAAAjpB,SAAA,IAAA4Y,EAAAwQ,EAAA10B,MAEA00B,GAAA7b,SACA8b,EAAA9xB,SAAA,WAEA6xB,EAAA3b,UACA4b,EAAA9xB,SAAA,YAEA6xB,EAAAzb,UACA0b,EAAA9xB,SAAA,cAIA0E,EAAAlD,OAAAgwB,GACA9sB,EAAAlD,OAAAiwB,GACA/sB,EAAAlD,OAAAkwB,GAEAjtB,EAAAjD,OAAAkD,GAEApZ,EAAAmZ,EAAA9D,SAGAjX,EAAAitB,cAAAA,GAwCAhtB,OAAAD,QAAAC,OAAAD,YAAAC,OAAA2E","file":"scripts-1559160449886.js","sourcesContent":["\"use strict\";\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n(function (LIVEREZ, window, $, undefined) {\n var CALENDAR_DAY_TYPES = {\n Available: 0,\n Unavailable: 1,\n CheckIn: 2,\n CheckOut: 3,\n EarlyCheckIn: 4,\n LateCheckOut: 5,\n EarlyCheckInLateCheckOut: 6,\n SingleNightRental: 7,\n TurnOver: 8,\n TurnOverEarlyCheckIn: 9,\n TurnOverLateCheckOut: 10\n };\n\n var CalendarAvailability = function CalendarAvailability(dynsiteId, adminCustDataID, pageDataId) {\n this.dynsiteId = dynsiteId;\n this.adminCustDataId = adminCustDataID;\n this.pageDataId = pageDataId;\n this.unavailableTypes = [CALENDAR_DAY_TYPES.Unavailable, CALENDAR_DAY_TYPES.EarlyCheckIn, CALENDAR_DAY_TYPES.LateCheckOut, CALENDAR_DAY_TYPES.EarlyCheckInLateCheckOut, CALENDAR_DAY_TYPES.SingleNightRental, CALENDAR_DAY_TYPES.TurnOver, CALENDAR_DAY_TYPES.TurnOverEarlyCheckIn, CALENDAR_DAY_TYPES.TurnOverLateCheckOut];\n this.unavailableDateObjs = [];\n this.unavailableDateObjsMobile = [];\n this.queriedYears = [];\n };\n\n CalendarAvailability.prototype.getCalendarData = function (startDate, endDate, callback) {\n var _this = this;\n\n if (_this.xhr && _this.xhr.readystate != 4) {\n _this.xhr.abort();\n\n _this.xhr = null;\n }\n\n this.queriedYears.push(new Date(startDate).getFullYear());\n _this.xhr = $.ajax({\n type: 'get',\n url: LIVEREZ.DynsiteFunctions.getServerName() + '/inc/api/webservices.aspx?method=propertycalendardata',\n data: {\n AdminCustDataID: _this.adminCustDataId,\n DynSiteID: _this.dynsiteId,\n PageDataID: _this.pageDataId,\n ad: startDate,\n dd: endDate\n },\n dataType: 'json',\n success: function success(data) {\n try {\n // var offsetHours = ((+(new Date().getTimezoneOffset()) / 60 ) * - 1);\n var addHours = function addHours(d, h) {\n d.setTime(d.getTime() + h * 60 * 60 * 1000);\n return d;\n };\n\n data.forEach(function (dateObj) {\n var _type = +dateObj.calendarDayTypes;\n\n if (_this.unavailableTypes.indexOf(_type) > -1 || _type === CALENDAR_DAY_TYPES.CheckIn && +dateObj.earlyCheckIn === 1 || _type === CALENDAR_DAY_TYPES.CheckOut && +dateObj.lateCheckOut === 1) {\n // dont add early check in or late check out to disavled days if settings allow for turnovers on these\n if (_type === CALENDAR_DAY_TYPES.EarlyCheckIn && searchAllowForEarlyCheckIn === 1 || _type === CALENDAR_DAY_TYPES.LateCheckOut && searchAllowForLateCheckOut === 1) {\n return;\n } // var uDate = new Date(new Date(dateObj.startDate.split('T')[0].replace(/-/g, '\\/')).setHours(0,0,0,0));\n // var uDate = new Date(dateObj.startDate.split('T')[0].replace(/-/g, '\\/'));\n // var uDateMobile = new Date(dateObj.startDate.split('T')[0].replace(/-/g, '\\/'));\n // var uDateOffset = offsetHours;\n // // console.log('=============== ' + dateObj.startDateString + ' ================');\n // // console.log('uDate before', uDate);\n // // console.log('offset hours', offsetHours);\n // // console.log('uDateOffset hours', uDateOffset);\n // // console.log('isDST', isDST(uDate));\n // if(isDST(uDate)){\n // \tuDateOffset = uDateOffset + 1\n // }\n // // console.log('uDateOffset hours', uDateOffset);\n // uDate = addHours(uDate, uDateOffset);\n // // console.log('uDate after', uDate);\n // _this.unavailableDateObjs.push(uDate);\n // _this.unavailableDateObjsMobile.push(uDateMobile);\n // var formatted8601 = LIVEREZ.DynsiteFunctions.dateStringToISO8601(dateObj.startDateString);\n\n\n var formattedDateObj = LIVEREZ.DynsiteFunctions.dateStringToObject(dateObj.startDateString);\n\n if (dateFormatType === 1) {\n dateObj.startDateString = LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI(dateObj.startDateString, dateFormatType);\n }\n\n _this.unavailableDateObjs.push(dateObj.startDateString);\n\n _this.unavailableDateObjsMobile.push(formattedDateObj);\n }\n });\n _this.unavailableDateObjs = _this.unavailableDateObjs.filter(function (element, index, array) {\n return array.indexOf(element) >= index;\n });\n _this.unavailableDateObjsMobile = _this.unavailableDateObjsMobile.filter(function (element, index, array) {\n return array.indexOf(element) >= index;\n });\n callback();\n } catch (ex) {\n console.error(ex);\n callback();\n }\n },\n error: function error(data, status, _error) {\n $('.datepicker-overlay').remove();\n console.log(data);\n console.log(status);\n console.log(_error);\n }\n });\n }; // function isDST(t) { //t is the date object to check, returns true if daylight saving time is in effect.\n // \tvar jan = new Date(t.getFullYear(),0,1);\n // \tvar jul = new Date(t.getFullYear(),6,1);\n // \treturn Math.min(jan.getTimezoneOffset(),jul.getTimezoneOffset()) == t.getTimezoneOffset();\n // }\n\n\n CalendarAvailability.prototype.findDateConflicts = function (start, end) {\n var error = false;\n var start = new Date(LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI(start, dateFormatType));\n var end = new Date(LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI(end, dateFormatType));\n\n for (var i = 0; i < this.unavailableDateObjs.length; i++) {\n var tmpDate = this.unavailableDateObjs[i];\n\n if (tmpDate >= start && tmpDate <= end) {\n error = true;\n }\n }\n\n return error;\n };\n\n LIVEREZ.CalendarAvailability = CalendarAvailability;\n})(window.LIVEREZ = window.LIVEREZ || {}, window, lrjQ);\n\n(function (LIVEREZ, window) {\n LIVEREZ.constants = {\n MAP_TYPE: {\n google: 1,\n leaflet: 2\n }\n };\n})(window.LIVEREZ = window.LIVEREZ || {}, void 0);\n/*\n * @author Joshua Hurst\n * @date 5/27/2014\n *\n * @description A set of functions to be used with LiveRez Dynsites\n */\n\n\n(function (LIVEREZ, window, $, undefined) {\n var DynsiteFunctions = {};\n\n DynsiteFunctions.PopUp = function (URL, Window, w, h, x, y) {\n var popupwin = window.open(URL, Window, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' + w + ',height=' + h + ',left=' + x + ',top=' + y);\n };\n\n DynsiteFunctions.socialSharePage = function (socialType, image, headline) {\n var url;\n var page = encodeURIComponent(window.location.href).toString();\n image = encodeURIComponent(image);\n headline = encodeURIComponent(headline);\n\n switch (socialType) {\n case 'facebook':\n url = 'https://www.facebook.com/sharer.php?u=' + page;\n break;\n\n case 'twitter':\n url = 'https://twitter.com/intent/tweet?source=tweetbutton&text=' + headline + '&url=' + page;\n break;\n\n case 'pinterest':\n url = 'https://www.pinterest.com/pin/create/button/?url=' + page + '&media=' + image + '&description=' + headline;\n break;\n\n case 'googlePlus':\n url = 'https://plus.google.com/share?url=' + page;\n break;\n }\n\n this.PopUp(url, window, 400, 350);\n };\n\n DynsiteFunctions.isEmailAddr = function (email) {\n var result = false;\n var theStr = new String(email);\n var index = theStr.indexOf('@');\n\n if (index > 0) {\n var pindex = theStr.indexOf('.', index);\n if (pindex > index + 1 && theStr.length > pindex + 1) result = true;\n }\n\n return result;\n };\n\n DynsiteFunctions.validRequired = function (formField, fieldLabel) {\n var result = true;\n\n if (formField.value == '') {\n alert('Please enter a value for the \"' + fieldLabel + '\" field.');\n formField.focus();\n result = false;\n }\n\n return result;\n };\n\n DynsiteFunctions.allDigits = function (str) {\n return this.inValidCharSet(str, '0123456789');\n };\n\n DynsiteFunctions.inValidCharSet = function (str, charset) {\n var result = true; // Doesn't use regular expressions to avoid early Mac browser bugs\n\n for (var i = 0; i < str.length; i++) {\n if (charset.indexOf(str.substr(i, 1)) < 0) {\n result = false;\n break;\n }\n }\n\n return result;\n };\n\n DynsiteFunctions.validEmail = function (formField, fieldLabel, required) {\n var result = true;\n if (required && !this.validRequired(formField, fieldLabel)) result = false;\n\n if (result && (formField.value.length < 3 || !this.isEmailAddr(formField.value))) {\n alert('Please enter a complete email address in the form: yourname@yourdomain.com');\n formField.focus();\n result = false;\n }\n\n return result;\n };\n\n DynsiteFunctions.validNum = function (formField, fieldLabel, required) {\n var result = true;\n if (required && !this.validRequired(formField, fieldLabel)) result = false;\n\n if (result) {\n if (!this.allDigits(formField.value)) {\n alert('Please enter a number for the \"' + fieldLabel + '\" field.');\n formField.focus();\n result = false;\n }\n }\n\n return result;\n };\n\n DynsiteFunctions.validInt = function (formField, fieldLabel, required) {\n var result = true;\n if (required && !this.validRequired(formField, fieldLabel)) result = false;\n\n if (result) {\n var num = parseInt(formField.value, 10);\n\n if (isNaN(num)) {\n alert('Please enter a number for the \"' + fieldLabel + '\" field.');\n formField.focus();\n result = false;\n }\n }\n\n return result;\n };\n\n DynsiteFunctions.validDate = function (formField, fieldLabel, required) {\n var result = true;\n if (required && !this.validRequired(formField, fieldLabel)) result = false;\n\n if (result) {\n var elems = formField.value.split('/');\n result = elems.length == 3; // should be three components\n\n if (result) {\n var month = parseInt(elems[0], 10);\n var day = parseInt(elems[1], 10);\n var year = parseInt(elems[2], 10);\n result = allDigits(elems[0]) && month > 0 && month < 13 && allDigits(elems[1]) && day > 0 && day < 32 && allDigits(elems[2]) && (elems[2].length == 2 || elems[2].length == 4);\n }\n\n if (!result) {\n alert('Please enter a date in the format MM/DD/YYYY for the \"' + fieldLabel + '\" field.');\n formField.focus();\n }\n }\n\n return result;\n };\n\n DynsiteFunctions.getServerName = function () {\n if (!window.location.origin) {\n return window.location.protocol + '//' + window.location.hostname + (window.location.port ? ':' + window.location.port : '');\n } else {\n return window.location.origin;\n }\n };\n\n DynsiteFunctions.goPropertyByElem = function (selectObj) {\n var val = selectObj.options[selectObj.selectedIndex].value;\n\n if (val != '') {\n window.parent.location.href = val;\n }\n };\n\n DynsiteFunctions.goPropertyByID = function (PageDataID) {\n if (PageDataID) {\n window.parent.location.href = '/vacation-rental-home.asp?PageDataID=' + PageDataID;\n }\n };\n\n DynsiteFunctions.sendtofriend = function (PageDataID) {\n window.parent.location.href = '/vacation-rental-home-stf.asp?PageDataID=' + PageDataID;\n };\n\n DynsiteFunctions.propertycontact = function (PageDataID, AD, DD) {\n window.parent.location.href = '/vacation-rental-home-contact.asp?PageDataID=' + PageDataID + '&ad=' + AD + '&dd=' + DD;\n };\n\n DynsiteFunctions.viewproperty = function (strPageDataID, strUnitID) {\n var formObj = document.viewproperty;\n formObj.action = '/vacation-rental-home.asp?PageDataID=' + strPageDataID;\n formObj.PageDataID.value = strPageDataID;\n formObj.WebReferencePageDataID.value = strPageDataID;\n formObj.InventoryUnitDataID.value = strUnitID;\n formObj.submit();\n };\n\n DynsiteFunctions.debounce = function (func, wait, immediate) {\n var timeout;\n return function () {\n var context = this,\n args = arguments;\n\n var later = function later() {\n timeout = null;\n if (!immediate) func.apply(context, args);\n };\n\n var callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) func.apply(context, args);\n };\n };\n\n DynsiteFunctions.DateShort = function (DateStr, delimeter) {\n var tmpDate = new Date(DateStr);\n delimeter = delimeter || '/', tmpDate = tmpDate.getMonth() + 1 + delimeter + tmpDate.getDate() + delimeter + tmpDate.getFullYear();\n return tmpDate;\n };\n\n DynsiteFunctions.DateNatural = function (d) {\n var includeYear = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n if (typeof d === 'string') {\n if (d.indexOf('-') > 0) {\n d = new Date(d);\n d.setHours(d.getHours() + new Date().getTimezoneOffset() / 60);\n } else {\n d = new Date(d);\n }\n }\n\n var MONTH_NAMES = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];\n var DAY_NAMES = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];\n\n function nth(d) {\n if (d > 3 && d < 21) return 'th'; // thanks kennebec\n\n switch (d % 10) {\n case 1:\n return 'st';\n\n case 2:\n return 'nd';\n\n case 3:\n return 'rd';\n\n default:\n return 'th';\n }\n }\n\n var final = DAY_NAMES[d.getDay()] + ' ' + MONTH_NAMES[d.getMonth()] + ' ' + d.getDate() + nth(d.getDate());\n\n if (includeYear) {\n final += ', ' + d.getFullYear();\n }\n\n return final;\n };\n /***** NAVIS 800 Number and Keyword Tracking *****/\n\n\n DynsiteFunctions.handleNavisCookies = function (NavisKeyword, NavisPhone) {\n if (NavisKeyword !== '' && NavisPhone !== '') {\n LIVEREZ.Storage.set(DYN_SITE_ID + 'navis800Num', NavisPhone);\n LIVEREZ.Storage.set(DYN_SITE_ID + 'NavisHiddenKeywordVal', NavisKeyword);\n this.fix800NumberForNavis();\n }\n\n if (LIVEREZ.Storage.get(DYN_SITE_ID + 'navis800Num')) {\n this.fix800NumberForNavis();\n }\n };\n\n DynsiteFunctions.fix800NumberForNavis = function () {\n // get the cookies\n var NavisHiddenPhoneVal = LIVEREZ.Storage.get(DYN_SITE_ID + 'navis800Num');\n var NavisHiddenKeywordVal = LIVEREZ.Storage.get(DYN_SITE_ID + 'NavisHiddenKeywordVal'); // insert phone number into holder span\n\n $('.phone-link').attr('href', 'tel: ' + NavisHiddenPhoneVal);\n $('.800PhoneHolder').text(NavisHiddenPhoneVal);\n var NavisHiddenKeyword = $('#NavisHiddenKeyword');\n\n if (NavisHiddenKeywordVal && NavisHiddenKeyword) {\n NavisHiddenKeyword.val(NavisHiddenKeywordVal);\n }\n\n var NavisHiddenPhone = $('#NavisCode');\n\n if (NavisHiddenPhone && NavisHiddenPhoneVal) {\n NavisHiddenPhone.val(NavisHiddenPhoneVal);\n }\n };\n /***** END NAVIS 800 Number and Keyword Tracking *****/\n\n /***** CRM PLUS LEAD Tracking ************************/\n\n\n DynsiteFunctions.handleCRMPlusCookies = function (LeadID) {\n if (LIVEREZ.Storage.get(DYN_SITE_ID + 'LeadID')) {\n this.insertLeadCookie();\n } else {\n if (LeadID !== '') {\n LIVEREZ.Storage.set(DYN_SITE_ID + 'LeadID', LeadID);\n this.insertLeadCookie();\n }\n }\n };\n\n DynsiteFunctions.insertLeadCookie = function () {\n var leadCookie = LIVEREZ.Storage.get(DYN_SITE_ID + 'LeadID');\n var leadIDInput = $('.hiddenLeadID');\n\n if (leadCookie && leadIDInput) {\n leadIDInput.val(leadCookie);\n }\n };\n /***** END CRM PLUS LEAD Tracking *******************/\n\n\n DynsiteFunctions.trimDate = function (strDate) {\n if (strDate && typeof strDate === 'string') {\n strDate = strDate.replace(/^0+/, '');\n strDate = strDate.replace(/\\/0/, '/');\n }\n\n return strDate;\n };\n\n DynsiteFunctions.fixEuroDatesForAPI = function (strDate, dateFormat) {\n if (dateFormat === 1) {\n var parts = strDate.split('/');\n return parts[1] + '/' + parts[0] + '/' + parts[2];\n } else {\n return strDate;\n }\n };\n\n DynsiteFunctions.dateStringToISO8601 = function (dateString) {\n var myDate = dateString.split('/');\n var returnDate = [myDate[2], myDate[0], myDate[1]].join('-');\n return returnDate;\n };\n\n DynsiteFunctions.dateObjectToString = function (dateObj) {\n return dateObj.getMonth() + 1 + '/' + dateObj.getDate() + '/' + dateObj.getFullYear();\n };\n\n DynsiteFunctions.dateStringToObject = function (dateStr) {\n var year, month, day;\n\n if (dateStr.indexOf('-') > -1) {\n var parts = dateStr.split('-');\n\n if (parts[0].length === 4) {\n year = parts[0];\n month = parts[1];\n day = parts[2];\n } else {\n year = parts[2];\n month = parts[0];\n day = parts[1];\n }\n } else {\n var parts = dateStr.split('/');\n year = parts[2];\n month = parts[0];\n day = parts[1];\n }\n\n return new Date(year, month - 1, day);\n };\n\n DynsiteFunctions.truncate = function (string, length, elipsisBool) {\n var _str = string.substring(0, length);\n\n if (string.length > length && elipsisBool) {\n _str += '...';\n }\n\n return _str;\n };\n\n DynsiteFunctions.daydiff = function (first, second) {\n return (second - first) / (1000 * 60 * 60 * 24);\n };\n\n DynsiteFunctions.checkValidStartEndDates = function (date1, date2) {\n var now = new Date().setHours(0, 0, 0, 0);\n date1 = new Date(date1).setHours(0, 0, 0, 0);\n date2 = new Date(date2).setHours(0, 0, 0, 0);\n var numSearchedDay = this.daydiff(date1, date2);\n var maxDays = maxWebRentalDays || 365;\n\n if (date1 === date2) {\n return 'Arrival and Departure dates cannot be the same.';\n }\n\n if (now > date1) {\n return 'Arrival date must be in the future.';\n }\n\n if (now > date2) {\n return 'Departure date must be in the future.';\n }\n\n if (date2 <= date1) {\n return 'Departure date must come after arrival date.';\n }\n\n if (numSearchedDay > maxDays) {\n return 'Travel Dates cannot span more than ' + maxDays + ' days. Please contact us for additional booking options.';\n }\n };\n\n DynsiteFunctions.isMobileDevice = function () {\n var check = false;\n\n (function (a) {\n if (/(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-/i.test(a.substr(0, 4))) check = true;\n })(navigator.userAgent || navigator.vendor || window.opera);\n\n return check;\n };\n\n DynsiteFunctions.checkForEmailElementToHide = function () {\n var div = document.getElementById('email-div');\n\n if (div) {\n div.style.display = 'none';\n }\n };\n\n DynsiteFunctions.fixTextForDisplay = function (strText) {\n if (strText) {\n strText = strText.replace(/`/g, \"'\");\n }\n\n return strText;\n };\n\n LIVEREZ.DynsiteFunctions = DynsiteFunctions;\n})(window.LIVEREZ = window.LIVEREZ || {}, window, lrjQ);\n\n$(window).on('load', function () {\n // check for inputs to hide on load\n LIVEREZ.DynsiteFunctions.checkForEmailElementToHide();\n});\n\n(function (LIVEREZ, window, $) {\n LIVEREZ.events = {\n searchCreateMapImage: 'search-map-image',\n searchMapOpen: 'search-map-open',\n searchMapClose: 'search-map-close',\n searchStart: 'search-start',\n searchComplete: 'search-complete',\n resultsRenderComplete: 'results-render-complete',\n instantQuoteFinished: 'instant-quote-finished',\n calDataFinished: 'cal-data-finished',\n searchSuggestionsStart: 'search-suggesttions-start',\n searchSuggestionsComplete: 'search-suggesttions-complete',\n calendarSearchStart: 'calendar-search-start',\n calendarSearchComplete: 'calendar-search-complete',\n calendarSearchRenderComplete: 'calendar-search-render-complete',\n propertyDateRangeStart: 'property-date-range-start',\n propertyDateRangeComplete: 'property-date-range-complete',\n propertyDateRangeError: 'property-date-range-error',\n propertyDateRangeSuccess: 'property-date-range-success'\n };\n})(window.LIVEREZ = window.LIVEREZ || {}, window, lrjQ);\n\n(function (NAMESPACE, window, $) {\n try {\n $(window.document).ready(function () {\n if (LR_ENV === 'PROD' && window.ga && window.ga.loaded) {\n var page = window.location.pathname;\n var $propertyBookItNowButton = $('div.property-instant-quote-action > a.property-instant-quote-button-book');\n var $propertySidebarContactManagerButton = $('#content2Left > div.row.property-side-contact-manager > div > a');\n var $propertySendToFriendLink = $('a.property-send-to-friend-link');\n var $propertyCommunityLearnMoreLink = $('a.property-community-learn-more-link');\n var $propertyChangeDatesLink = $('#propertyInstantQuote > div.panel-footer > a.property-instant-quote-change-dates');\n var $propertyReviewWidgetReviewsAnchor = $('#property-rating-panel > div > div.lr-info-block-property-rating-property-panel > div.lr-info-block-property-rating-show-reviews > a');\n var $propertyAllPhotosButton = $('#Photos > div.row > div > ul > li > a[data-target=\"#propGalleryModal\"]');\n var $propertyFullScreen = $('#photo-gallery > div.rsOverflow > div.rsFullscreenBtn > div');\n var $propertyShowAllAmenitiesExpand = $('.standard-amenities-section--show-more > a');\n var $searchComparePropertiesButton = $('.search-compare-button');\n var $searchViewMoreCalendars = $('.search-results-calendar-suggestions--view-more');\n var $searchChangeDatesButton = $('.search-update-dates');\n\n if ($propertyBookItNowButton.length) {\n $propertyBookItNowButton.on('click', function () {\n ga('lrTracker.send', 'event', 'Property', 'click', 'Book It Now Button');\n });\n }\n\n if ($propertySidebarContactManagerButton.length) {\n $propertySidebarContactManagerButton.on('click', function () {\n ga('lrTracker.send', 'event', 'Property', 'click', 'Sidebar Contact Manager Button');\n });\n }\n\n if ($propertySendToFriendLink.length) {\n $propertySendToFriendLink.on('click', function () {\n ga('lrTracker.send', 'event', 'Property', 'click', 'Send to Friend Link');\n });\n }\n\n if ($propertyCommunityLearnMoreLink.length) {\n $propertyCommunityLearnMoreLink.on('click', function () {\n ga('lrTracker.send', 'event', 'Property', 'click', 'Community Learn More Link');\n });\n }\n\n if ($propertyChangeDatesLink.length) {\n $propertyChangeDatesLink.on('click', function () {\n ga('lrTracker.send', 'event', 'Property', 'click', 'Change Dates Link');\n });\n }\n\n if ($propertyReviewWidgetReviewsAnchor.length) {\n $propertyReviewWidgetReviewsAnchor.on('click', function () {\n ga('lrTracker.send', 'event', 'Property', 'click', 'Reviews Widget Review Anchor');\n });\n }\n\n if ($propertyAllPhotosButton.length) {\n $propertyAllPhotosButton.on('click', function () {\n ga('lrTracker.send', 'event', 'Property', 'click', 'All Photos Button');\n });\n }\n\n if ($propertyFullScreen.length) {\n $propertyFullScreen.on('click', function () {\n ga('lrTracker.send', 'event', 'Property', 'click', 'Slideshow Fullscreen Button');\n });\n }\n\n if ($searchComparePropertiesButton.length) {\n $searchComparePropertiesButton.on('click', function () {\n ga('lrTracker.send', 'event', 'Search', 'click', 'Compare Properties Button');\n });\n }\n\n if ($searchViewMoreCalendars.length) {\n $searchViewMoreCalendars.on('click', function () {\n ga('lrTracker.send', 'event', 'Search', 'click', 'View More Property Calendars button');\n });\n }\n\n if ($propertyShowAllAmenitiesExpand.length) {\n $propertyShowAllAmenitiesExpand.on('click', function () {\n ga('lrTracker.send', 'event', 'Property', 'click', 'Show All Amenities Expand Link');\n });\n } // search page\n\n\n if (page === 'vacation-rentals-homes-search.asp') {\n $searchComparePropertiesButton.on('click', function () {\n ga('lrTracker.send', 'event', 'Search', 'click', 'Compare Properties Button');\n });\n $searchViewMoreCalendars.on('click', function () {\n ga('lrTracker.send', 'event', 'Search', 'click', 'View More Property Calendars button');\n });\n $searchChangeDatesButton.on('click', function () {\n ga('lrTracker.send', 'event', 'Search', 'click', 'Change Dates button');\n });\n $(document).on('click', '.search-pagination a', function (e) {\n ga('lrTracker.send', 'event', 'Search', 'click', 'Paging Anchor', $(this).data('page'));\n });\n }\n }\n });\n } catch (error) {\n console.error(error);\n }\n})(window.LIVEREZ = window.LIVEREZ || {}, window, lrjQ);\n\nif (!Array.prototype.filter) {\n Array.prototype.filter = function (fun\n /*, thisArg*/\n ) {\n 'use strict';\n\n if (this === void 0 || this === null) {\n throw new TypeError();\n }\n\n var t = Object(this);\n var len = t.length >>> 0;\n\n if (typeof fun !== 'function') {\n throw new TypeError();\n }\n\n var res = [];\n var thisArg = arguments.length >= 2 ? arguments[1] : void 0;\n\n for (var i = 0; i < len; i++) {\n if (i in t) {\n var val = t[i]; // NOTE: Technically this should Object.defineProperty at\n // the next index, as push can be affected by\n // properties on Object.prototype and Array.prototype.\n // But that method's new, and collisions should be\n // rare, so use the more-compatible alternative.\n\n if (fun.call(thisArg, val, i, t)) {\n res.push(val);\n }\n }\n }\n\n return res;\n };\n}\n\nif (!Array.prototype.forEach) {\n Array.prototype.forEach = function (callback, thisArg) {\n var T, k;\n\n if (this == null) {\n throw new TypeError(' this is null or not defined');\n } // 1. Let O be the result of calling ToObject passing the |this| value as the argument.\n\n\n var O = Object(this); // 2. Let lenValue be the result of calling the Get internal method of O with the argument \"length\".\n // 3. Let len be ToUint32(lenValue).\n\n var len = O.length >>> 0; // 4. If IsCallable(callback) is false, throw a TypeError exception.\n // See: http://es5.github.com/#x9.11\n\n if (typeof callback !== 'function') {\n throw new TypeError(callback + ' is not a function');\n } // 5. If thisArg was supplied, let T be thisArg; else let T be undefined.\n\n\n if (arguments.length > 1) {\n T = thisArg;\n } // 6. Let k be 0\n\n\n k = 0; // 7. Repeat, while k < len\n\n while (k < len) {\n var kValue; // a. Let Pk be ToString(k).\n // This is implicit for LHS operands of the in operator\n // b. Let kPresent be the result of calling the HasProperty internal method of O with argument Pk.\n // This step can be combined with c\n // c. If kPresent is true, then\n\n if (k in O) {\n // i. Let kValue be the result of calling the Get internal method of O with argument Pk.\n kValue = O[k]; // ii. Call the Call internal method of callback with T as the this value and\n // argument list containing kValue, k, and O.\n\n callback.call(T, kValue, k, O);\n } // d. Increase k by 1.\n\n\n k++;\n } // 8. return undefined\n\n };\n}\n\nif (!Array.prototype.indexOf) {\n Array.prototype.indexOf = function (searchElement, fromIndex) {\n if (this === undefined || this === null) {\n throw new TypeError('\"this\" is null or not defined');\n }\n\n var length = this.length >>> 0; // Hack to convert object.length to a UInt32\n\n fromIndex = +fromIndex || 0;\n\n if (Math.abs(fromIndex) === Infinity) {\n fromIndex = 0;\n }\n\n if (fromIndex < 0) {\n fromIndex += length;\n\n if (fromIndex < 0) {\n fromIndex = 0;\n }\n }\n\n for (; fromIndex < length; fromIndex++) {\n if (this[fromIndex] === searchElement) {\n return fromIndex;\n }\n }\n\n return -1;\n };\n}\n\nif (!Function.prototype.bind) {\n Function.prototype.bind = function (oThis) {\n if (typeof this !== 'function') {\n // closest thing possible to the ECMAScript 5 internal IsCallable function\n throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable');\n }\n\n var aArgs = Array.prototype.slice.call(arguments, 1),\n fToBind = this,\n fNOP = function fNOP() {},\n fBound = function fBound() {\n return fToBind.apply(this instanceof fNOP && oThis ? this : oThis, aArgs.concat(Array.prototype.slice.call(arguments)));\n };\n\n fNOP.prototype = this.prototype;\n fBound.prototype = new fNOP();\n return fBound;\n };\n}\n/*\n * @author Joshua Hurst\n * @date 6/19/2015\n *\n * @description A Vanilla JS Wrapper for Local Storage\n */\n\n\n(function (LIVEREZ, window, $, undefined) {\n 'use strict';\n\n var LocalStorage = {}; // test if local storage is supported\n\n LocalStorage.localStoreSupport = function () {\n try {\n localStorage.setItem('localstoragesupporttest', 1);\n localStorage.removeItem('localstoragesupporttest');\n return 'localStorage' in window && window['localStorage'];\n } catch (e) {\n return false;\n }\n }; // save the data\n\n\n LocalStorage.set = function (key, value, days) {\n value = JSON.stringify(value);\n\n if (days) {\n var date = new Date();\n date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);\n var expires = '; expires=' + date.toGMTString();\n } else {\n var expires = '';\n }\n\n if (this.localStoreSupport()) {\n localStorage.setItem(key, value);\n } else {\n document.cookie = key + '=' + value + expires + '; path=/';\n }\n }; // retrieve the stored data by key if it exists\n\n\n LocalStorage.get = function (key) {\n if (this.localStoreSupport()) {\n if (this.exists(key)) {\n return JSON.parse(localStorage.getItem(key));\n }\n } else {\n var nameEQ = key + '=';\n var ca = document.cookie.split(';');\n\n for (var i = 0; i < ca.length; i++) {\n var c = ca[i];\n\n while (c.charAt(0) == ' ') {\n c = c.substring(1, c.length);\n }\n\n if (c.indexOf(nameEQ) == 0) return JSON.parse(c.substring(nameEQ.length, c.length));\n }\n\n return null;\n }\n }; // remove stored data by key if it exists\n\n\n LocalStorage.remove = function (key) {\n if (this.localStoreSupport()) {\n if (this.exists(key)) {\n localStorage.removeItem(key);\n }\n } else {\n this.set(key, '', -1);\n }\n };\n\n LocalStorage.exists = function (key) {\n return localStorage.getItem(key) !== null;\n };\n\n LIVEREZ.Storage = LocalStorage;\n})(window.LIVEREZ = window.LIVEREZ || {}, window, lrjQ);\n/*\n * @author Joshua Hurst & Frank Linehan\n * @date 6/16/2015\n *\n * @description A Pub/Sub Pattern Module for Handling JS Events\n */\n\n\n(function (LIVEREZ, window, $, undefined) {\n var pubsub = {};\n var topics = {}; // An topic identifier\n\n var subUid = -1;\n\n pubsub.publish = function (topic, args) {\n if (!topics[topic]) {\n return false;\n }\n\n var subscribers = topics[topic],\n len = subscribers ? subscribers.length : 0;\n\n while (len--) {\n subscribers[len].func(topic, args);\n }\n\n return this;\n };\n\n pubsub.subscribe = function (topic, func) {\n if (!topics[topic]) {\n topics[topic] = [];\n }\n\n var token = (++subUid).toString();\n topics[topic].push({\n token: token,\n func: func\n });\n return token;\n };\n\n pubsub.unsubscribe = function (token) {\n for (var m in topics) {\n if (topics[m]) {\n for (var i = 0, j = topics[m].length; i < j; i++) {\n if (topics[m][i].token === token) {\n topics[m].splice(i, 1);\n return token;\n }\n }\n }\n }\n\n return this;\n };\n\n LIVEREZ.Publisher = pubsub;\n})(window.LIVEREZ = window.LIVEREZ || {}, window, lrjQ);\n/* =========================================================\n * lr.typeahead.js\n * Repo: http://stash.liverez.com:7990/scm/bow/lr.typeahead.git\n * =========================================================\n * Authored by LIVEREZ.COM\n * Contributors: Joshua Hurst, Frank Linehan, Jeremy Lotz\n * ========================================================= */\n\n\n(function ($, undefined) {\n 'use strict';\n\n var _timeout;\n\n var DEFAULTS = {\n timeoutLength: 500,\n dataSource: function dataSource(callback, query) {\n var _sendData = {\n q: encodeURIComponent(query)\n };\n $.ajax({\n type: 'GET',\n url: 'data/properties.json',\n data: _sendData,\n dataType: 'json',\n success: function success(data) {\n callback(null, data);\n },\n error: function error(data, status, _error2) {\n callback({\n data: data,\n status: status,\n error: _error2\n });\n }\n });\n },\n onNewData: function onNewData(data) {\n console.log(data);\n }\n }; // the actual plugin\n\n var Plugin = function Plugin(option) {\n return this.each(function () {\n var $this = $(this);\n var options = _typeof(option) == 'object' && option;\n options = $.extend(DEFAULTS, options);\n new Typeahead($this, options);\n });\n }; // the constructor\n\n\n var Typeahead = function Typeahead(element, options) {\n var _this = this;\n\n this.element = element;\n this.options = options;\n this.init(this.element, this.options);\n };\n\n Typeahead.prototype.init = function (element, options) {\n var _this = this;\n\n var wrapperDiv = $('
').css({\n position: 'relative',\n width: this.element.width() + 2\n }).addClass('lr-typeahead-wrapper');\n var typeaheadDiv = $('
');\n typeaheadDiv.css({\n position: 'absolute',\n top: this.element.outerHeight(),\n left: '0',\n width: '100%',\n display: 'none',\n border: '1px solid #ccc',\n 'border-top': 'none',\n background: 'white',\n color: '#444',\n 'max-height': '50vh',\n 'overflow-y': 'scroll'\n }).html('Loading Data...').addClass('lr-typeahead');\n this.element.wrap(wrapperDiv);\n this.element.after(typeaheadDiv);\n element.on('keydown', function () {\n _this.open('keydown', typeaheadDiv, _this.element);\n });\n element.on('keyup', function () {\n if (_this.element.val()) {\n if (_timeout) {\n clearTimeout(_timeout);\n }\n\n _timeout = setTimeout(function () {\n _this.getData('keyup', function (error, data) {\n if (error) {\n typeaheadDiv.html('No Results');\n } else {\n _this.insertTypeAheadData(typeaheadDiv, data);\n }\n });\n }, _this.options.timeoutLength);\n } else {\n _this.close('keyup', typeaheadDiv);\n }\n });\n };\n\n Typeahead.prototype.open = function (type, typeaheadelem, element) {\n var domTypeAheadElem = typeaheadelem.get(0);\n typeaheadelem.html('Loading Data...');\n\n if (domTypeAheadElem.style.display === 'none') {\n $('body').on('click', function (e) {\n if (!typeaheadelem.is(e.target) && typeaheadelem.has(e.target).length === 0) {\n domTypeAheadElem.style.display = 'none';\n element.val('');\n }\n\n $('body').off('click');\n });\n domTypeAheadElem.style.display = 'block';\n }\n };\n\n Typeahead.prototype.close = function (type, typeaheadelem) {\n var _this = this;\n\n var domTypeAheadElem = typeaheadelem.get(0);\n\n if (domTypeAheadElem.style.display === 'block') {\n domTypeAheadElem.style.display = 'none';\n }\n\n return this;\n };\n\n Typeahead.prototype.insertTypeAheadData = function (typeaheadelem, data) {\n var _this = this;\n\n typeaheadelem.empty();\n typeaheadelem.append(_this.options.onNewData(data));\n return this;\n };\n\n Typeahead.prototype.getData = function (type, callback) {\n var _this = this;\n\n _this.options.dataSource(callback, _this.element.val());\n\n return this;\n };\n\n var old = $.fn.lrtypeahead;\n $.fn.lrtypeahead = Plugin;\n $.fn.lrtypeahead.Constructor = Typeahead;\n})(lrjQ);\n\n(function (LIVEREZ, window, $) {\n $(document).ready(function () {\n /****************** secondary search box desktop date pickers ******************/\n var nowTemp = new Date();\n var now = new Date(nowTemp.getFullYear(), nowTemp.getMonth(), nowTemp.getDate(), 0, 0, 0, 0);\n $('.datepicker-range').datepicker({\n beforeShowDay: function beforeShowDay(date) {\n return date.valueOf() < now.valueOf() ? 'disabled' : '';\n },\n format: dateFormat,\n autoclose: true,\n orientation: 'auto'\n }).on('changeDate', function (e) {\n if (e.target.id == 'txtStartDate') {\n var startDate = new Date(e.date);\n var newDate = new Date(e.date);\n newDate.setDate(newDate.getDate() + defaultSearchDepartureDays);\n $('#txtEndDate').datepicker('setDate', newDate);\n $('#txtEndDate').focus();\n $('#compareStartDate').val(startDate.getMonth() + 1 + '/' + startDate.getDate() + '/' + startDate.getFullYear());\n }\n\n if (e.target.id == 'txtEndDate') {\n var newEndDate = new Date(e.date);\n $('#compareEndDate').val(newEndDate.getMonth() + 1 + '/' + newEndDate.getDate() + '/' + newEndDate.getFullYear());\n }\n }).data('datepicker');\n /****************** end desktop date pickers ******************/\n\n /****************** calendar page date picker ******************/\n\n $('.lr-calendar-search-desktop-datepicker').datepicker({\n beforeShowDay: function beforeShowDay(date) {\n return date.valueOf() < now.valueOf() ? 'disabled' : '';\n },\n format: dateFormat,\n autoclose: true,\n orientation: 'auto'\n });\n LIVEREZ.Publisher.subscribe('mobiscroll-loaded', function (message) {\n $('.lr-calendar-search-mobile-datepicker').mobiscroll().calendar({\n theme: 'bootstrap',\n display: 'modal',\n controls: ['calendar'],\n minDate: now,\n dateFormat: dateFormat\n });\n $('.lr-calendar-search-mobile-datepicker').change(function () {\n $('.lr-calendar-search-desktop-datepicker').val(this.value);\n });\n });\n /****************** end calendar page date picker ******************/\n\n LIVEREZ.Publisher.subscribe('mobiscroll-loaded', function (message) {\n /****************** secondary search box mobile date pickers ******************/\n var mobileStartInst = $('#txtStartDate-mobile').mobiscroll().calendar({\n theme: 'bootstrap',\n display: 'modal',\n controls: ['calendar'],\n minDate: now,\n closeOnSelect: true,\n dateFormat: dateFormat\n }).mobiscroll('getInst');\n var mobileEndInst = $('#txtEndDate-mobile').mobiscroll().calendar({\n theme: 'bootstrap',\n display: 'modal',\n controls: ['calendar'],\n minDate: now,\n closeOnSelect: true,\n dateFormat: dateFormat\n }).mobiscroll('getInst');\n $('#txtStartDate-mobile').change(function () {\n $('#txtStartDate').val(this.value);\n $('#compareStartDate').val(this.value);\n var startDateStr = LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI($('#txtStartDate-mobile').val(), dateFormatType);\n var startDate = new Date(startDateStr);\n var endDateStr = LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI($('#txtEndDate-mobile').val(), dateFormatType);\n var endDate = new Date(endDateStr); //console.log('startDateStr', startDateStr);\n //console.log('endDateStr', endDateStr);\n //console.log('startDate', startDate);\n //console.log('endDate', endDate);\n\n var diff = startDate - endDate;\n var days = diff / 1000 / 60 / 60 / 24; //console.log('diff', diff);\n //console.log('days', days);\n\n var newEnd = new Date(startDate);\n newEnd.setDate(startDate.getDate() + defaultSearchDepartureDays); //console.log('newEnd', newEnd);\n\n var newEndStr = LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI(LIVEREZ.DynsiteFunctions.DateShort(newEnd), dateFormatType); //console.log('newEndStr', newEndStr);\n\n if (startDate > endDate) {\n mobileEndInst.setDate(newEnd);\n $('#txtEndDate-mobile').val(newEndStr);\n $('#txtEndDate').val(newEndStr);\n $('#compareEndDate').val(newEndStr);\n }\n });\n $('#txtEndDate-mobile').change(function () {\n $('#txtEndDate').val(this.value);\n $('#compareEndDate').val(this.value);\n });\n }); // lazy load echo images\n\n echo.init({\n throttle: 50,\n offsetVertical: 750\n });\n\n if ($('.index-features-carousel').length) {\n $('.index-features-carousel').on('slid.bs.carousel', function (e) {\n echo.init();\n });\n }\n\n if ($('.alternative-properties-carousel').length) {\n $('.alternative-properties-carousel').on('slid.bs.carousel', function (e) {\n echo.init();\n });\n } // only load mobiscroll if mobile to because its not neccesary on desktop\n\n\n if (LIVEREZ.DynsiteFunctions.isMobileDevice()) {\n $.getScript(CDN_BASE_URL + '/3/common/js/mobiscroll.custom-2.10.1.min.js', function () {\n $('head').append($('').attr('href', CDN_BASE_URL + '/3/common/css/mobiscroll.custom-2.10.1.min.css'));\n LIVEREZ.Publisher.publish('mobiscroll-loaded', 'ready');\n });\n }\n\n $('.popover-icon').popover({\n placement: 'top',\n trigger: 'hover'\n });\n\n if ($('.lr-typeahead').length) {\n var myOptions = {\n timeoutLength: 600,\n dataSource: function dataSource(callback, query) {\n $.ajax({\n type: 'GET',\n url: '/inc/api/webservices.aspx?method=propertysearch',\n data: {\n AdminCustDataID: ADMIN_CUST_DATA_ID,\n DynSiteID: DYN_SITE_ID,\n q: encodeURIComponent(query)\n },\n dataType: 'json',\n success: function success(data) {\n callback(null, data);\n },\n error: function error(data, status, _error3) {\n console({\n data: data,\n status: status,\n error: _error3\n });\n callback(null, []);\n }\n });\n },\n onNewData: function onNewData(data, element) {\n if (data.length) {\n var retHtml = '';\n\n for (var i = 0; i < data.length; i++) {\n retHtml += '
' + data[i].pid + '
';\n }\n\n return retHtml;\n } else {\n return '
No Results
';\n }\n }\n };\n $('.lr-typeahead').lrtypeahead(myOptions);\n }\n });\n})(window.LIVEREZ = window.LIVEREZ || {}, window, lrjQ);\n\n(function (LIVEREZ, window, $, undefined) {\n 'use strict';\n\n var DAYS_OF_WEEK = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];\n var PropertyDateRanges = {};\n\n PropertyDateRanges.getByPageDataID = function (pageDataId, callback) {\n LIVEREZ.Publisher.publish(LIVEREZ.events.propertyDateRangeStart);\n $.ajax({\n type: 'get',\n url: LIVEREZ.DynsiteFunctions.getServerName() + '/inc/api/webservices.aspx?method=dateranges',\n data: {\n AdminCustDataID: ADMIN_CUST_DATA_ID,\n DynSiteID: DYN_SITE_ID,\n PageDataID: pageDataId\n },\n dataType: 'json',\n success: function success(data) {\n // publish the data to all subscribers\n LIVEREZ.Publisher.publish(LIVEREZ.events.propertyDateRangeComplete);\n LIVEREZ.Publisher.publish(LIVEREZ.events.propertyDateRangeSuccess, data);\n callback(null, data);\n },\n error: function error(data, status, _error4) {\n LIVEREZ.Publisher.publish(LIVEREZ.events.propertyDateRangeComplete);\n\n if (_error4 !== 'abort') {\n LIVEREZ.Publisher.publish(LIVEREZ.events.propertyDateRangeError, _error4);\n callback(_error4);\n } else {\n var fakeData = {\n dateRanges: []\n };\n LIVEREZ.Publisher.publish(LIVEREZ.events.propertyDateRangeSuccess, fakeData);\n callback(null, fakeData);\n }\n }\n });\n };\n\n PropertyDateRanges.buildDateRangeTable = function (preferences, dateRanges) {\n var container = $('
').addClass('table-responsive');\n var table = $(' ').addClass('table table-striped responsive-rate-table');\n var tableBody = $('\t');\n table.append(tableBody);\n tableBody.append(_buildHeaderRow(preferences));\n dateRanges.forEach(function (dateRange, i) {\n table.append(_buildDateRangeRow(preferences, dateRange, i));\n });\n container.append(table);\n return container;\n };\n\n var _buildHeaderRow = function _buildHeaderRow(preferences) {\n var row = $('');\n row.append($('').addClass('property-date-range-row');\n\n var isRowEven = _isEven(index);\n\n row.addClass(isRowEven ? 'property-rate-tr-wt' : 'property-rate-tr-gr');\n row.addClass(dateRange.available ? 'available' : 'unavailable');\n row.append($('';\n\n if (this.o.calendarWeeks) {\n html += '';\n }\n\n while (dowCnt < this.o.weekStart + 7) {\n html += '';\n this.picker.find('.datepicker-days thead').append(html);\n }\n },\n fillMonths: function fillMonths() {\n var localDate = this._utc_to_local(this.viewDate);\n\n var html = '';\n var focused;\n\n for (var i = 0; i < 12; i++) {\n focused = localDate && localDate.getMonth() === i ? ' focused' : '';\n html += '' + dates[this.o.language].monthsShort[i] + '';\n }\n\n this.picker.find('.datepicker-months td').html(html);\n },\n setRange: function setRange(range) {\n if (!range || !range.length) delete this.range;else this.range = $.map(range, function (d) {\n return d.valueOf();\n });\n this.fill();\n },\n getClassNames: function getClassNames(date) {\n var cls = [],\n year = this.viewDate.getUTCFullYear(),\n month = this.viewDate.getUTCMonth(),\n today = UTCToday();\n\n if (date.getUTCFullYear() < year || date.getUTCFullYear() === year && date.getUTCMonth() < month) {\n cls.push('old');\n } else if (date.getUTCFullYear() > year || date.getUTCFullYear() === year && date.getUTCMonth() > month) {\n cls.push('new');\n }\n\n if (this.focusDate && date.valueOf() === this.focusDate.valueOf()) cls.push('focused'); // Compare internal UTC date with UTC today, not local today\n\n if (this.o.todayHighlight && isUTCEquals(date, today)) {\n cls.push('today');\n }\n\n if (this.dates.contains(date) !== -1) cls.push('active');\n\n if (!this.dateWithinRange(date)) {\n cls.push('disabled');\n }\n\n if (this.dateIsDisabled(date)) {\n cls.push('disabled', 'disabled-date');\n }\n\n if ($.inArray(date.getUTCDay(), this.o.daysOfWeekHighlighted) !== -1) {\n cls.push('highlighted');\n }\n\n if (this.range) {\n if (date > this.range[0] && date < this.range[this.range.length - 1]) {\n cls.push('range');\n }\n\n if ($.inArray(date.valueOf(), this.range) !== -1) {\n cls.push('selected');\n }\n\n if (date.valueOf() === this.range[0]) {\n cls.push('range-start');\n }\n\n if (date.valueOf() === this.range[this.range.length - 1]) {\n cls.push('range-end');\n }\n }\n\n return cls;\n },\n _fill_yearsView: function _fill_yearsView(selector, cssClass, factor, year, startYear, endYear, beforeFn) {\n var html = '';\n var step = factor / 10;\n var view = this.picker.find(selector);\n var startVal = Math.floor(year / factor) * factor;\n var endVal = startVal + step * 9;\n var focusedVal = Math.floor(this.viewDate.getFullYear() / step) * step;\n var selected = $.map(this.dates, function (d) {\n return Math.floor(d.getUTCFullYear() / step) * step;\n });\n var classes, tooltip, before;\n\n for (var currVal = startVal - step; currVal <= endVal + step; currVal += step) {\n classes = [cssClass];\n tooltip = null;\n\n if (currVal === startVal - step) {\n classes.push('old');\n } else if (currVal === endVal + step) {\n classes.push('new');\n }\n\n if ($.inArray(currVal, selected) !== -1) {\n classes.push('active');\n }\n\n if (currVal < startYear || currVal > endYear) {\n classes.push('disabled');\n }\n\n if (currVal === focusedVal) {\n classes.push('focused');\n }\n\n if (beforeFn !== $.noop) {\n before = beforeFn(new Date(currVal, 0, 1));\n\n if (before === undefined) {\n before = {};\n } else if (typeof before === 'boolean') {\n before = {\n enabled: before\n };\n } else if (typeof before === 'string') {\n before = {\n classes: before\n };\n }\n\n if (before.enabled === false) {\n classes.push('disabled');\n }\n\n if (before.classes) {\n classes = classes.concat(before.classes.split(/\\s+/));\n }\n\n if (before.tooltip) {\n tooltip = before.tooltip;\n }\n }\n\n html += '' + currVal + '';\n }\n\n view.find('.datepicker-switch').text(startVal + '-' + endVal);\n view.find('td').html(html);\n },\n fill: function fill() {\n var d = new Date(this.viewDate),\n year = d.getUTCFullYear(),\n month = d.getUTCMonth(),\n startYear = this.o.startDate !== -Infinity ? this.o.startDate.getUTCFullYear() : -Infinity,\n startMonth = this.o.startDate !== -Infinity ? this.o.startDate.getUTCMonth() : -Infinity,\n endYear = this.o.endDate !== Infinity ? this.o.endDate.getUTCFullYear() : Infinity,\n endMonth = this.o.endDate !== Infinity ? this.o.endDate.getUTCMonth() : Infinity,\n todaytxt = dates[this.o.language].today || dates['en'].today || '',\n cleartxt = dates[this.o.language].clear || dates['en'].clear || '',\n titleFormat = dates[this.o.language].titleFormat || dates['en'].titleFormat,\n tooltip,\n before;\n if (isNaN(year) || isNaN(month)) return;\n this.picker.find('.datepicker-days .datepicker-switch').text(DPGlobal.formatDate(d, titleFormat, this.o.language));\n this.picker.find('tfoot .today').text(todaytxt).css('display', this.o.todayBtn === true || this.o.todayBtn === 'linked' ? 'table-cell' : 'none');\n this.picker.find('tfoot .clear').text(cleartxt).css('display', this.o.clearBtn === true ? 'table-cell' : 'none');\n this.picker.find('thead .datepicker-title').text(this.o.title).css('display', typeof this.o.title === 'string' && this.o.title !== '' ? 'table-cell' : 'none');\n this.updateNavArrows();\n this.fillMonths();\n var prevMonth = UTCDate(year, month, 0),\n day = prevMonth.getUTCDate();\n prevMonth.setUTCDate(day - (prevMonth.getUTCDay() - this.o.weekStart + 7) % 7);\n var nextMonth = new Date(prevMonth);\n\n if (prevMonth.getUTCFullYear() < 100) {\n nextMonth.setUTCFullYear(prevMonth.getUTCFullYear());\n }\n\n nextMonth.setUTCDate(nextMonth.getUTCDate() + 42);\n nextMonth = nextMonth.valueOf();\n var html = [];\n var weekDay, clsName;\n\n while (prevMonth.valueOf() < nextMonth) {\n weekDay = prevMonth.getUTCDay();\n\n if (weekDay === this.o.weekStart) {\n html.push('');\n\n if (this.o.calendarWeeks) {\n // ISO 8601: First week contains first thursday.\n // ISO also states week starts on Monday, but we can be more abstract here.\n var // Start of current week: based on weekstart/current date\n ws = new Date(+prevMonth + (this.o.weekStart - weekDay - 7) % 7 * 864e5),\n // Thursday of this week\n th = new Date(Number(ws) + (7 + 4 - ws.getUTCDay()) % 7 * 864e5),\n // First Thursday of year, year from thursday\n yth = new Date(Number(yth = UTCDate(th.getUTCFullYear(), 0, 1)) + (7 + 4 - yth.getUTCDay()) % 7 * 864e5),\n // Calendar week: ms between thursdays, div ms per day, div 7 days\n calWeek = (th - yth) / 864e5 / 7 + 1;\n html.push('');\n }\n }\n\n clsName = this.getClassNames(prevMonth);\n clsName.push('day');\n var content = prevMonth.getUTCDate();\n\n if (this.o.beforeShowDay !== $.noop) {\n before = this.o.beforeShowDay(this._utc_to_local(prevMonth));\n if (before === undefined) before = {};else if (typeof before === 'boolean') before = {\n enabled: before\n };else if (typeof before === 'string') before = {\n classes: before\n };\n if (before.enabled === false) clsName.push('disabled');\n if (before.classes) clsName = clsName.concat(before.classes.split(/\\s+/));\n if (before.tooltip) tooltip = before.tooltip;\n if (before.content) content = before.content;\n } //Check if uniqueSort exists (supported by jquery >=1.12 and >=2.2)\n //Fallback to unique function for older jquery versions\n\n\n if ($.isFunction($.uniqueSort)) {\n clsName = $.uniqueSort(clsName);\n } else {\n clsName = $.unique(clsName);\n }\n\n html.push('');\n tooltip = null;\n\n if (weekDay === this.o.weekEnd) {\n html.push('');\n }\n\n prevMonth.setUTCDate(prevMonth.getUTCDate() + 1);\n }\n\n this.picker.find('.datepicker-days tbody').html(html.join(''));\n var monthsTitle = dates[this.o.language].monthsTitle || dates['en'].monthsTitle || 'Months';\n var months = this.picker.find('.datepicker-months').find('.datepicker-switch').text(this.o.maxViewMode < 2 ? monthsTitle : year).end().find('tbody span').removeClass('active');\n $.each(this.dates, function (i, d) {\n if (d.getUTCFullYear() === year) months.eq(d.getUTCMonth()).addClass('active');\n });\n\n if (year < startYear || year > endYear) {\n months.addClass('disabled');\n }\n\n if (year === startYear) {\n months.slice(0, startMonth).addClass('disabled');\n }\n\n if (year === endYear) {\n months.slice(endMonth + 1).addClass('disabled');\n }\n\n if (this.o.beforeShowMonth !== $.noop) {\n var that = this;\n $.each(months, function (i, month) {\n var moDate = new Date(year, i, 1);\n var before = that.o.beforeShowMonth(moDate);\n if (before === undefined) before = {};else if (typeof before === 'boolean') before = {\n enabled: before\n };else if (typeof before === 'string') before = {\n classes: before\n };\n if (before.enabled === false && !$(month).hasClass('disabled')) $(month).addClass('disabled');\n if (before.classes) $(month).addClass(before.classes);\n if (before.tooltip) $(month).prop('title', before.tooltip);\n });\n } // Generating decade/years picker\n\n\n this._fill_yearsView('.datepicker-years', 'year', 10, year, startYear, endYear, this.o.beforeShowYear); // Generating century/decades picker\n\n\n this._fill_yearsView('.datepicker-decades', 'decade', 100, year, startYear, endYear, this.o.beforeShowDecade); // Generating millennium/centuries picker\n\n\n this._fill_yearsView('.datepicker-centuries', 'century', 1000, year, startYear, endYear, this.o.beforeShowCentury);\n },\n updateNavArrows: function updateNavArrows() {\n if (!this._allow_update) return;\n var d = new Date(this.viewDate),\n year = d.getUTCFullYear(),\n month = d.getUTCMonth(),\n startYear = this.o.startDate !== -Infinity ? this.o.startDate.getUTCFullYear() : -Infinity,\n startMonth = this.o.startDate !== -Infinity ? this.o.startDate.getUTCMonth() : -Infinity,\n endYear = this.o.endDate !== Infinity ? this.o.endDate.getUTCFullYear() : Infinity,\n endMonth = this.o.endDate !== Infinity ? this.o.endDate.getUTCMonth() : Infinity,\n prevIsDisabled,\n nextIsDisabled,\n factor = 1;\n\n switch (this.viewMode) {\n case 0:\n prevIsDisabled = year <= startYear && month <= startMonth;\n nextIsDisabled = year >= endYear && month >= endMonth;\n break;\n\n case 4:\n factor *= 10;\n\n /* falls through */\n\n case 3:\n factor *= 10;\n\n /* falls through */\n\n case 2:\n factor *= 10;\n\n /* falls through */\n\n case 1:\n prevIsDisabled = Math.floor(year / factor) * factor <= startYear;\n nextIsDisabled = Math.floor(year / factor) * factor + factor >= endYear;\n break;\n }\n\n this.picker.find('.prev').toggleClass('disabled', prevIsDisabled);\n this.picker.find('.next').toggleClass('disabled', nextIsDisabled);\n },\n click: function click(e) {\n e.preventDefault();\n e.stopPropagation();\n var target, dir, day, year, month;\n target = $(e.target); // Clicked on the switch\n\n if (target.hasClass('datepicker-switch') && this.viewMode !== this.o.maxViewMode) {\n this.setViewMode(this.viewMode + 1);\n } // Clicked on today button\n\n\n if (target.hasClass('today') && !target.hasClass('day')) {\n this.setViewMode(0);\n\n this._setDate(UTCToday(), this.o.todayBtn === 'linked' ? null : 'view');\n } // Clicked on clear button\n\n\n if (target.hasClass('clear')) {\n this.clearDates();\n }\n\n if (!target.hasClass('disabled')) {\n // Clicked on a month, year, decade, century\n if (target.hasClass('month') || target.hasClass('year') || target.hasClass('decade') || target.hasClass('century')) {\n this.viewDate.setUTCDate(1);\n day = 1;\n\n if (this.viewMode === 1) {\n month = target.parent().find('span').index(target);\n year = this.viewDate.getUTCFullYear();\n this.viewDate.setUTCMonth(month);\n } else {\n month = 0;\n year = Number(target.text());\n this.viewDate.setUTCFullYear(year);\n }\n\n this._trigger(DPGlobal.viewModes[this.viewMode - 1].e, this.viewDate);\n\n if (this.viewMode === this.o.minViewMode) {\n this._setDate(UTCDate(year, month, day));\n } else {\n this.setViewMode(this.viewMode - 1);\n this.fill();\n }\n }\n }\n\n if (this.picker.is(':visible') && this._focused_from) {\n this._focused_from.focus();\n }\n\n delete this._focused_from;\n },\n dayCellClick: function dayCellClick(e) {\n var $target = $(e.currentTarget);\n var timestamp = $target.data('date');\n var date = new Date(timestamp);\n\n if (this.o.updateViewDate) {\n if (date.getUTCFullYear() !== this.viewDate.getUTCFullYear()) {\n this._trigger('changeYear', this.viewDate);\n }\n\n if (date.getUTCMonth() !== this.viewDate.getUTCMonth()) {\n this._trigger('changeMonth', this.viewDate);\n }\n }\n\n this._setDate(date);\n },\n // Clicked on prev or next\n navArrowsClick: function navArrowsClick(e) {\n var $target = $(e.currentTarget);\n var dir = $target.hasClass('prev') ? -1 : 1;\n\n if (this.viewMode !== 0) {\n dir *= DPGlobal.viewModes[this.viewMode].navStep * 12;\n }\n\n this.viewDate = this.moveMonth(this.viewDate, dir);\n\n this._trigger(DPGlobal.viewModes[this.viewMode].e, this.viewDate);\n\n this.fill();\n },\n _toggle_multidate: function _toggle_multidate(date) {\n var ix = this.dates.contains(date);\n\n if (!date) {\n this.dates.clear();\n }\n\n if (ix !== -1) {\n if (this.o.multidate === true || this.o.multidate > 1 || this.o.toggleActive) {\n this.dates.remove(ix);\n }\n } else if (this.o.multidate === false) {\n this.dates.clear();\n this.dates.push(date);\n } else {\n this.dates.push(date);\n }\n\n if (typeof this.o.multidate === 'number') while (this.dates.length > this.o.multidate) {\n this.dates.remove(0);\n }\n },\n _setDate: function _setDate(date, which) {\n if (!which || which === 'date') this._toggle_multidate(date && new Date(date));\n if (!which && this.o.updateViewDate || which === 'view') this.viewDate = date && new Date(date);\n this.fill();\n this.setValue();\n\n if (!which || which !== 'view') {\n this._trigger('changeDate');\n }\n\n this.inputField.trigger('change');\n\n if (this.o.autoclose && (!which || which === 'date')) {\n this.hide();\n }\n },\n moveDay: function moveDay(date, dir) {\n var newDate = new Date(date);\n newDate.setUTCDate(date.getUTCDate() + dir);\n return newDate;\n },\n moveWeek: function moveWeek(date, dir) {\n return this.moveDay(date, dir * 7);\n },\n moveMonth: function moveMonth(date, dir) {\n if (!isValidDate(date)) return this.o.defaultViewDate;\n if (!dir) return date;\n var new_date = new Date(date.valueOf()),\n day = new_date.getUTCDate(),\n month = new_date.getUTCMonth(),\n mag = Math.abs(dir),\n new_month,\n test;\n dir = dir > 0 ? 1 : -1;\n\n if (mag === 1) {\n test = dir === -1 ? // If going back one month, make sure month is not current month\n // (eg, Mar 31 -> Feb 31 == Feb 28, not Mar 02)\n function () {\n return new_date.getUTCMonth() === month;\n } : // If going forward one month, make sure month is as expected\n // (eg, Jan 31 -> Feb 31 == Feb 28, not Mar 02)\n function () {\n return new_date.getUTCMonth() !== new_month;\n };\n new_month = month + dir;\n new_date.setUTCMonth(new_month); // Dec -> Jan (12) or Jan -> Dec (-1) -- limit expected date to 0-11\n\n new_month = (new_month + 12) % 12;\n } else {\n // For magnitudes >1, move one month at a time...\n for (var i = 0; i < mag; i++) {\n // ...which might decrease the day (eg, Jan 31 to Feb 28, etc)...\n new_date = this.moveMonth(new_date, dir);\n } // ...then reset the day, keeping it in the new month\n\n\n new_month = new_date.getUTCMonth();\n new_date.setUTCDate(day);\n\n test = function test() {\n return new_month !== new_date.getUTCMonth();\n };\n } // Common date-resetting loop -- if date is beyond end of month, make it\n // end of month\n\n\n while (test()) {\n new_date.setUTCDate(--day);\n new_date.setUTCMonth(new_month);\n }\n\n return new_date;\n },\n moveYear: function moveYear(date, dir) {\n return this.moveMonth(date, dir * 12);\n },\n moveAvailableDate: function moveAvailableDate(date, dir, fn) {\n do {\n date = this[fn](date, dir);\n if (!this.dateWithinRange(date)) return false;\n fn = 'moveDay';\n } while (this.dateIsDisabled(date));\n\n return date;\n },\n weekOfDateIsDisabled: function weekOfDateIsDisabled(date) {\n return $.inArray(date.getUTCDay(), this.o.daysOfWeekDisabled) !== -1;\n },\n dateIsDisabled: function dateIsDisabled(date) {\n return this.weekOfDateIsDisabled(date) || $.grep(this.o.datesDisabled, function (d) {\n return isUTCEquals(date, d);\n }).length > 0;\n },\n dateWithinRange: function dateWithinRange(date) {\n return date >= this.o.startDate && date <= this.o.endDate;\n },\n keydown: function keydown(e) {\n if (!this.picker.is(':visible')) {\n if (e.keyCode === 40 || e.keyCode === 27) {\n // allow down to re-show picker\n this.show();\n e.stopPropagation();\n }\n\n return;\n }\n\n var dateChanged = false,\n dir,\n newViewDate,\n focusDate = this.focusDate || this.viewDate;\n\n switch (e.keyCode) {\n case 27:\n // escape\n if (this.focusDate) {\n this.focusDate = null;\n this.viewDate = this.dates.get(-1) || this.viewDate;\n this.fill();\n } else this.hide();\n\n e.preventDefault();\n e.stopPropagation();\n break;\n\n case 37: // left\n\n case 38: // up\n\n case 39: // right\n\n case 40:\n // down\n if (!this.o.keyboardNavigation || this.o.daysOfWeekDisabled.length === 7) break;\n dir = e.keyCode === 37 || e.keyCode === 38 ? -1 : 1;\n\n if (this.viewMode === 0) {\n if (e.ctrlKey) {\n newViewDate = this.moveAvailableDate(focusDate, dir, 'moveYear');\n if (newViewDate) this._trigger('changeYear', this.viewDate);\n } else if (e.shiftKey) {\n newViewDate = this.moveAvailableDate(focusDate, dir, 'moveMonth');\n if (newViewDate) this._trigger('changeMonth', this.viewDate);\n } else if (e.keyCode === 37 || e.keyCode === 39) {\n newViewDate = this.moveAvailableDate(focusDate, dir, 'moveDay');\n } else if (!this.weekOfDateIsDisabled(focusDate)) {\n newViewDate = this.moveAvailableDate(focusDate, dir, 'moveWeek');\n }\n } else if (this.viewMode === 1) {\n if (e.keyCode === 38 || e.keyCode === 40) {\n dir = dir * 4;\n }\n\n newViewDate = this.moveAvailableDate(focusDate, dir, 'moveMonth');\n } else if (this.viewMode === 2) {\n if (e.keyCode === 38 || e.keyCode === 40) {\n dir = dir * 4;\n }\n\n newViewDate = this.moveAvailableDate(focusDate, dir, 'moveYear');\n }\n\n if (newViewDate) {\n this.focusDate = this.viewDate = newViewDate;\n this.setValue();\n this.fill();\n e.preventDefault();\n }\n\n break;\n\n case 13:\n // enter\n if (!this.o.forceParse) break;\n focusDate = this.focusDate || this.dates.get(-1) || this.viewDate;\n\n if (this.o.keyboardNavigation) {\n this._toggle_multidate(focusDate);\n\n dateChanged = true;\n }\n\n this.focusDate = null;\n this.viewDate = this.dates.get(-1) || this.viewDate;\n this.setValue();\n this.fill();\n\n if (this.picker.is(':visible')) {\n e.preventDefault();\n e.stopPropagation();\n if (this.o.autoclose) this.hide();\n }\n\n break;\n\n case 9:\n // tab\n this.focusDate = null;\n this.viewDate = this.dates.get(-1) || this.viewDate;\n this.fill();\n this.hide();\n break;\n }\n\n if (dateChanged) {\n if (this.dates.length) this._trigger('changeDate');else this._trigger('clearDate');\n this.inputField.trigger('change');\n }\n },\n setViewMode: function setViewMode(viewMode) {\n this.viewMode = viewMode;\n this.picker.children('div').hide().filter('.datepicker-' + DPGlobal.viewModes[this.viewMode].clsName).show();\n this.updateNavArrows();\n\n this._trigger('changeViewMode', new Date(this.viewDate));\n }\n };\n\n var DateRangePicker = function DateRangePicker(element, options) {\n $.data(element, 'datepicker', this);\n this.element = $(element);\n this.inputs = $.map(options.inputs, function (i) {\n return i.jquery ? i[0] : i;\n });\n delete options.inputs;\n this.keepEmptyValues = options.keepEmptyValues;\n delete options.keepEmptyValues;\n datepickerPlugin.call($(this.inputs), options).on('changeDate', $.proxy(this.dateUpdated, this));\n this.pickers = $.map(this.inputs, function (i) {\n return $.data(i, 'datepicker');\n });\n this.updateDates();\n };\n\n DateRangePicker.prototype = {\n updateDates: function updateDates() {\n this.dates = $.map(this.pickers, function (i) {\n return i.getUTCDate();\n });\n this.updateRanges();\n },\n updateRanges: function updateRanges() {\n var range = $.map(this.dates, function (d) {\n return d.valueOf();\n });\n $.each(this.pickers, function (i, p) {\n p.setRange(range);\n });\n },\n dateUpdated: function dateUpdated(e) {\n // `this.updating` is a workaround for preventing infinite recursion\n // between `changeDate` triggering and `setUTCDate` calling. Until\n // there is a better mechanism.\n if (this.updating) return;\n this.updating = true;\n var dp = $.data(e.target, 'datepicker');\n\n if (dp === undefined) {\n return;\n }\n\n var new_date = dp.getUTCDate(),\n keep_empty_values = this.keepEmptyValues,\n i = $.inArray(e.target, this.inputs),\n j = i - 1,\n k = i + 1,\n l = this.inputs.length;\n if (i === -1) return;\n $.each(this.pickers, function (i, p) {\n if (!p.getUTCDate() && (p === dp || !keep_empty_values)) p.setUTCDate(new_date);\n });\n\n if (new_date < this.dates[j]) {\n // Date being moved earlier/left\n while (j >= 0 && new_date < this.dates[j]) {\n this.pickers[j--].setUTCDate(new_date);\n }\n } else if (new_date > this.dates[k]) {\n // Date being moved later/right\n while (k < l && new_date > this.dates[k]) {\n this.pickers[k++].setUTCDate(new_date);\n }\n }\n\n this.updateDates();\n delete this.updating;\n },\n destroy: function destroy() {\n $.map(this.pickers, function (p) {\n p.destroy();\n });\n $(this.inputs).off('changeDate', this.dateUpdated);\n delete this.element.data().datepicker;\n },\n remove: alias('destroy', 'Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead')\n };\n\n function opts_from_el(el, prefix) {\n // Derive options from element data-attrs\n var data = $(el).data(),\n out = {},\n inkey,\n replace = new RegExp('^' + prefix.toLowerCase() + '([A-Z])');\n prefix = new RegExp('^' + prefix.toLowerCase());\n\n function re_lower(_, a) {\n return a.toLowerCase();\n }\n\n for (var key in data) {\n if (prefix.test(key)) {\n inkey = key.replace(replace, re_lower);\n out[inkey] = data[key];\n }\n }\n\n return out;\n }\n\n function opts_from_locale(lang) {\n // Derive options from locale plugins\n var out = {}; // Check if \"de-DE\" style date is available, if not language should\n // fallback to 2 letter code eg \"de\"\n\n if (!dates[lang]) {\n lang = lang.split('-')[0];\n if (!dates[lang]) return;\n }\n\n var d = dates[lang];\n $.each(locale_opts, function (i, k) {\n if (k in d) out[k] = d[k];\n });\n return out;\n }\n\n var old = $.fn.datepicker;\n\n var datepickerPlugin = function datepickerPlugin(option) {\n var args = Array.apply(null, arguments);\n args.shift();\n var internal_return;\n this.each(function () {\n var $this = $(this),\n data = $this.data('datepicker'),\n options = _typeof(option) === 'object' && option;\n\n if (!data) {\n var elopts = opts_from_el(this, 'date'),\n // Preliminary otions\n xopts = $.extend({}, defaults, elopts, options),\n locopts = opts_from_locale(xopts.language),\n // Options priority: js args, data-attrs, locales, defaults\n opts = $.extend({}, defaults, locopts, elopts, options);\n\n if ($this.hasClass('input-daterange') || opts.inputs) {\n $.extend(opts, {\n inputs: opts.inputs || $this.find('input').toArray()\n });\n data = new DateRangePicker(this, opts);\n } else {\n data = new Datepicker(this, opts);\n }\n\n $this.data('datepicker', data);\n }\n\n if (typeof option === 'string' && typeof data[option] === 'function') {\n internal_return = data[option].apply(data, args);\n }\n });\n if (internal_return === undefined || internal_return instanceof Datepicker || internal_return instanceof DateRangePicker) return this;\n if (this.length > 1) throw new Error('Using only allowed for the collection of a single element (' + option + ' function)');else return internal_return;\n };\n\n $.fn.datepicker = datepickerPlugin;\n var defaults = $.fn.datepicker.defaults = {\n assumeNearbyYear: false,\n autoclose: false,\n beforeShowDay: $.noop,\n beforeShowMonth: $.noop,\n beforeShowYear: $.noop,\n beforeShowDecade: $.noop,\n beforeShowCentury: $.noop,\n calendarWeeks: false,\n clearBtn: false,\n toggleActive: false,\n daysOfWeekDisabled: [],\n daysOfWeekHighlighted: [],\n datesDisabled: [],\n endDate: Infinity,\n forceParse: true,\n format: 'mm/dd/yyyy',\n keepEmptyValues: false,\n keyboardNavigation: true,\n language: 'en',\n minViewMode: 0,\n maxViewMode: 4,\n multidate: false,\n multidateSeparator: ',',\n orientation: 'auto',\n rtl: false,\n startDate: -Infinity,\n startView: 0,\n todayBtn: false,\n todayHighlight: false,\n updateViewDate: true,\n weekStart: 0,\n disableTouchKeyboard: false,\n enableOnReadonly: true,\n showOnFocus: true,\n zIndexOffset: 10,\n container: 'body',\n immediateUpdates: false,\n title: '',\n templates: {\n leftArrow: '«',\n rightArrow: '»'\n },\n showWeekDays: true\n };\n var locale_opts = $.fn.datepicker.locale_opts = ['format', 'rtl', 'weekStart'];\n $.fn.datepicker.Constructor = Datepicker;\n var dates = $.fn.datepicker.dates = {\n en: {\n days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n daysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n daysMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],\n monthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n today: 'Today',\n clear: 'Clear',\n titleFormat: 'MM yyyy'\n }\n };\n var DPGlobal = {\n viewModes: [{\n names: ['days', 'month'],\n clsName: 'days',\n e: 'changeMonth'\n }, {\n names: ['months', 'year'],\n clsName: 'months',\n e: 'changeYear',\n navStep: 1\n }, {\n names: ['years', 'decade'],\n clsName: 'years',\n e: 'changeDecade',\n navStep: 10\n }, {\n names: ['decades', 'century'],\n clsName: 'decades',\n e: 'changeCentury',\n navStep: 100\n }, {\n names: ['centuries', 'millennium'],\n clsName: 'centuries',\n e: 'changeMillennium',\n navStep: 1000\n }],\n validParts: /dd?|DD?|mm?|MM?|yy(?:yy)?/g,\n nonpunctuation: /[^ -\\/:-@\\u5e74\\u6708\\u65e5\\[-`{-~\\t\\n\\r]+/g,\n parseFormat: function parseFormat(format) {\n if (typeof format.toValue === 'function' && typeof format.toDisplay === 'function') return format; // IE treats \\0 as a string end in inputs (truncating the value),\n // so it's a bad format delimiter, anyway\n\n var separators = format.replace(this.validParts, '\\0').split('\\0'),\n parts = format.match(this.validParts);\n\n if (!separators || !separators.length || !parts || parts.length === 0) {\n throw new Error('Invalid date format.');\n }\n\n return {\n separators: separators,\n parts: parts\n };\n },\n parseDate: function parseDate(date, format, language, assumeNearby) {\n if (!date) return undefined;\n if (date instanceof Date) return date;\n if (typeof format === 'string') format = DPGlobal.parseFormat(format);\n if (format.toValue) return format.toValue(date, format, language);\n var fn_map = {\n d: 'moveDay',\n m: 'moveMonth',\n w: 'moveWeek',\n y: 'moveYear'\n },\n dateAliases = {\n yesterday: '-1d',\n today: '+0d',\n tomorrow: '+1d'\n },\n parts,\n part,\n dir,\n i,\n fn;\n\n if (date in dateAliases) {\n date = dateAliases[date];\n }\n\n if (/^[\\-+]\\d+[dmwy]([\\s,]+[\\-+]\\d+[dmwy])*$/i.test(date)) {\n parts = date.match(/([\\-+]\\d+)([dmwy])/gi);\n date = new Date();\n\n for (i = 0; i < parts.length; i++) {\n part = parts[i].match(/([\\-+]\\d+)([dmwy])/i);\n dir = Number(part[1]);\n fn = fn_map[part[2].toLowerCase()];\n date = Datepicker.prototype[fn](date, dir);\n }\n\n return Datepicker.prototype._zero_utc_time(date);\n }\n\n parts = date && date.match(this.nonpunctuation) || [];\n\n function applyNearbyYear(year, threshold) {\n if (threshold === true) threshold = 10; // if year is 2 digits or less, than the user most likely is trying to get a recent century\n\n if (year < 100) {\n year += 2000; // if the new year is more than threshold years in advance, use last century\n\n if (year > new Date().getFullYear() + threshold) {\n year -= 100;\n }\n }\n\n return year;\n }\n\n var parsed = {},\n setters_order = ['yyyy', 'yy', 'M', 'MM', 'm', 'mm', 'd', 'dd'],\n setters_map = {\n yyyy: function yyyy(d, v) {\n return d.setUTCFullYear(assumeNearby ? applyNearbyYear(v, assumeNearby) : v);\n },\n m: function m(d, v) {\n if (isNaN(d)) return d;\n v -= 1;\n\n while (v < 0) {\n v += 12;\n }\n\n v %= 12;\n d.setUTCMonth(v);\n\n while (d.getUTCMonth() !== v) {\n d.setUTCDate(d.getUTCDate() - 1);\n }\n\n return d;\n },\n d: function d(_d2, v) {\n return _d2.setUTCDate(v);\n }\n },\n val,\n filtered;\n setters_map['yy'] = setters_map['yyyy'];\n setters_map['M'] = setters_map['MM'] = setters_map['mm'] = setters_map['m'];\n setters_map['dd'] = setters_map['d'];\n date = UTCToday();\n var fparts = format.parts.slice(); // Remove noop parts\n\n if (parts.length !== fparts.length) {\n fparts = $(fparts).filter(function (i, p) {\n return $.inArray(p, setters_order) !== -1;\n }).toArray();\n } // Process remainder\n\n\n function match_part() {\n var m = this.slice(0, parts[i].length),\n p = parts[i].slice(0, m.length);\n return m.toLowerCase() === p.toLowerCase();\n }\n\n if (parts.length === fparts.length) {\n var cnt;\n\n for (i = 0, cnt = fparts.length; i < cnt; i++) {\n val = parseInt(parts[i], 10);\n part = fparts[i];\n\n if (isNaN(val)) {\n switch (part) {\n case 'MM':\n filtered = $(dates[language].months).filter(match_part);\n val = $.inArray(filtered[0], dates[language].months) + 1;\n break;\n\n case 'M':\n filtered = $(dates[language].monthsShort).filter(match_part);\n val = $.inArray(filtered[0], dates[language].monthsShort) + 1;\n break;\n }\n }\n\n parsed[part] = val;\n }\n\n var _date, s;\n\n for (i = 0; i < setters_order.length; i++) {\n s = setters_order[i];\n\n if (s in parsed && !isNaN(parsed[s])) {\n _date = new Date(date);\n setters_map[s](_date, parsed[s]);\n if (!isNaN(_date)) date = _date;\n }\n }\n }\n\n return date;\n },\n formatDate: function formatDate(date, format, language) {\n if (!date) return '';\n if (typeof format === 'string') format = DPGlobal.parseFormat(format);\n if (format.toDisplay) return format.toDisplay(date, format, language);\n var val = {\n d: date.getUTCDate(),\n D: dates[language].daysShort[date.getUTCDay()],\n DD: dates[language].days[date.getUTCDay()],\n m: date.getUTCMonth() + 1,\n M: dates[language].monthsShort[date.getUTCMonth()],\n MM: dates[language].months[date.getUTCMonth()],\n yy: date.getUTCFullYear().toString().substring(2),\n yyyy: date.getUTCFullYear()\n };\n val.dd = (val.d < 10 ? '0' : '') + val.d;\n val.mm = (val.m < 10 ? '0' : '') + val.m;\n date = [];\n var seps = $.extend([], format.separators);\n\n for (var i = 0, cnt = format.parts.length; i <= cnt; i++) {\n if (seps.length) date.push(seps.shift());\n date.push(val[format.parts[i]]);\n }\n\n return date.join('');\n },\n headTemplate: '' + '' + '' + '' + '' + '' + '' + '' + '' + '',\n contTemplate: '',\n footTemplate: '' + '' + '' + '' + '' + '' + '' + ''\n };\n DPGlobal.template = '
' + '
' + '
').addClass('property-rate-titles').html('Season'));\n row.append($('').addClass('property-rate-titles').html('Start'));\n row.append($('').addClass('property-rate-titles').html('End'));\n\n if (preferences.nightlyPricing) {\n if (preferences.pricingPerDayOfWeek) {\n row.append($('').addClass('property-rate-titles').html('Sun'));\n row.append($('').addClass('property-rate-titles').html('Mon'));\n row.append($('').addClass('property-rate-titles').html('Tue'));\n row.append($('').addClass('property-rate-titles').html('Wed'));\n row.append($('').addClass('property-rate-titles').html('Thu'));\n row.append($('').addClass('property-rate-titles').html('Fri'));\n row.append($('').addClass('property-rate-titles').html('Sat'));\n } else {\n row.append($('').addClass('property-rate-titles property-rate-title-night').html('Nightly'));\n }\n }\n\n if (preferences.weeklyPricing) {\n row.append($('').addClass('property-rate-titles property-rate-title-week').html('Weekly'));\n }\n\n if (preferences.monthlyPricing) {\n row.append($('').addClass('property-rate-titles property-rate-title-month').html('Monthly'));\n }\n\n if (preferences.showMinStayOnProperty) {\n row.append($('').addClass('property-rate-titles property-rate-title-min-night').html('Min Nights'));\n }\n\n return row;\n };\n\n var _buildDateRangeRow = function _buildDateRangeRow(preferences, dateRange, index) {\n var row = $('
').html(dateRange.rangeTitle.trim()));\n row.append($('').html(dateRange.strDateRangeL));\n row.append($('').html(dateRange.strDateRangeU));\n var pricingColumns = 0;\n\n if (preferences.nightlyPricing) {\n if (preferences.pricingPerDayOfWeek) {\n if (dateRange.hasOwnProperty('available') && !dateRange.available) {\n pricingColumns += 7;\n } else if (dateRange.dateRangeType === 2) {\n // week to week\n row.append($('').attr('colspan', 7).addClass('text-center').html(_formatPricing(preferences, dateRange.weekly) + ' Per Week'));\n } else {\n row.append($('').html(_formatPricing(preferences, dateRange.sunPrice)));\n row.append($('').html(_formatPricing(preferences, dateRange.monPrice)));\n row.append($('').html(_formatPricing(preferences, dateRange.tuePrice)));\n row.append($('').html(_formatPricing(preferences, dateRange.wedPrice)));\n row.append($('').html(_formatPricing(preferences, dateRange.thuPrice)));\n row.append($('').html(_formatPricing(preferences, dateRange.friPrice)));\n row.append($('').html(_formatPricing(preferences, dateRange.satPrice)));\n }\n } else {\n if (dateRange.hasOwnProperty('available') && !dateRange.available) {\n pricingColumns += 1;\n } else if (dateRange.nightly && dateRange.dateRangeType !== 2) {\n // week to week\n var nightlyHTML = _formatPricing(preferences, dateRange.nightly);\n\n if (dateRange.startingAtNightly) {\n nightlyHTML = '
' + _formatPricing(preferences, dateRange.startingAtNightly) + '
' + nightlyHTML;\n }\n\n row.append($('
').addClass('property-rate-night').html(nightlyHTML));\n } else {\n row.append($('').addClass('property-rate-week-none').html('-'));\n }\n }\n }\n\n if (preferences.weeklyPricing) {\n if (dateRange.hasOwnProperty('available') && !dateRange.available) {\n pricingColumns += 1;\n } else if (dateRange.weekly) {\n var weeklyHTML = _formatPricing(preferences, dateRange.weekly);\n\n if (dateRange.startingAtWeekly) {\n weeklyHTML = '
' + _formatPricing(preferences, dateRange.startingAtWeekly) + '
' + weeklyHTML;\n }\n\n row.append($('
').addClass('property-rate-week').html(weeklyHTML));\n } else {\n row.append($('').addClass('property-rate-week-none').html('-'));\n }\n }\n\n if (preferences.monthlyPricing) {\n if (dateRange.hasOwnProperty('available') && !dateRange.available) {\n pricingColumns += 1;\n } else if (dateRange.monthly && dateRange.dateRangeType !== 2) {\n // week to week\n var monthlyHTML = _formatPricing(preferences, dateRange.monthly);\n\n if (dateRange.startingAtMonthly) {\n monthlyHTML = '
' + _formatPricing(preferences, dateRange.startingAtMonthly) + '
' + monthlyHTML;\n }\n\n row.append($('
').addClass('property-rate-month').html(monthlyHTML));\n } else {\n row.append($('').addClass('property-rate-week-none').html('-'));\n }\n }\n\n if (preferences.showMinStayOnProperty) {\n if (dateRange.hasOwnProperty('available') && !dateRange.available) {\n pricingColumns += 1;\n } else {\n var cell = $('').addClass('property-rate-min-night-days').html(dateRange.minimumNightsStayWebBooking || dateRange.minimumNightsStay || '-');\n\n if (dateRange.dateRangeType === 2) {\n // week to week\n cell.append(' (' + DAYS_OF_WEEK[dateRange.weekToWeekCheckinDay - 1] + ' - ' + DAYS_OF_WEEK[dateRange.weekToWeekCheckinDay - 1] + ')');\n }\n\n row.append(cell);\n }\n }\n\n if (pricingColumns) {\n row.append($('').attr('colspan', pricingColumns).addClass('text-left').html('Reserved'));\n }\n\n return row;\n };\n\n var _formatPricing = function _formatPricing(preferences, price) {\n var newPrice = parseFloat(price).toFixed(2);\n return preferences.currencySymbol + newPrice.replace('.00', '').replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',');\n };\n\n var _isEven = function _isEven(n) {\n return n === 0 || !!(n && !(n % 2));\n };\n\n var _isOdd = function _isOdd(n) {\n return _isEven(Number(n) + 1);\n };\n\n LIVEREZ.PropertyDateRanges = PropertyDateRanges;\n})(window.LIVEREZ = window.LIVEREZ || {}, window, lrjQ);\n\n(function (LIVEREZ, window, $, undefined) {\n var InstantQuote = {};\n\n InstantQuote.getQuote = function (instantQuoteObj) {\n var _this = this;\n\n var _checkValidDates = LIVEREZ.DynsiteFunctions.checkValidStartEndDates(instantQuoteObj.StartDate, instantQuoteObj.EndDate);\n\n if (_checkValidDates) {\n _this.hideLoading();\n\n _this.setError(_checkValidDates);\n\n _this.showDates();\n\n _this.showButton('contact');\n\n return;\n } // if we already have an ajax request, abort it and use the new one\n\n\n if (_this.xhr) {\n _this.killAjax();\n }\n\n this.xhr = $.ajax({\n type: 'get',\n url: LIVEREZ.DynsiteFunctions.getServerName() + '/inc/api/webservices.aspx?method=instantquote',\n data: {\n AdminCustDataID: ADMIN_CUST_DATA_ID,\n DynSiteID: DYN_SITE_ID,\n PageDataID: instantQuoteObj.PageDataID,\n ad: instantQuoteObj.StartDate,\n dd: instantQuoteObj.EndDate,\n adults: instantQuoteObj.Adults,\n children: instantQuoteObj.Children,\n checkAvailable: true,\n LiveNetID: instantQuoteObj.LiveNetID || 0\n },\n dataType: 'json',\n success: function success(data) {\n // publish the data to all subscribers\n LIVEREZ.Publisher.publish(LIVEREZ.events.instantQuoteFinished, data);\n },\n error: function error(data, status, _error5) {\n if (_error5 !== 'abort') {\n _this.hideLoading();\n\n _this.setError('There was an issue with the quote. Please try new travel dates or try again later.');\n\n _this.showDates();\n\n _this.showButton('contact');\n }\n }\n });\n }; // subscribe to the instant quote finished event\n\n\n LIVEREZ.Publisher.subscribe(LIVEREZ.events.instantQuoteFinished, function (topic, data) {\n // reset\n $('.has-specials').addClass('hidden');\n $('.quote-fee-row').addClass('hidden');\n $('.discounted-rent').removeClass('on-sale'); // property is available without errors\n\n if (!data.error && data.isAvailable === 1) {\n $('.property-instant-quote-nightly-rate-before-specials').text(cleanPrice(data.averageDailyRateBeforeSpecials));\n $('.property-instant-quote-nightly-rate').text(cleanPrice(data.averageDailyRate));\n $('.property-instant-quote-num-nights').text(data.quantityDays);\n $('.property-instant-quote-fees').text(cleanPrice(data.fees));\n\n if (data.fees !== '0.00') {\n $('.quote-fee-row').removeClass('hidden');\n }\n\n $('.property-instant-quote-tax').text(cleanPrice(data.taxTotal));\n $('.property-instant-quote-rent').text(cleanPrice(data.rent));\n $('.property-instant-quote-rent-before-specials').text(cleanPrice(data.rentBeforeSpecials));\n $('.property-instant-quote-start-date').text(LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI($('#property-instant-quote-start-date').val(), dateFormatType));\n $('.property-instant-quote-end-date').text(LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI($('#property-instant-quote-end-date').val(), dateFormatType));\n $('.property-instant-quote-total-price').text(cleanPrice(data.total));\n $('.property-instant-quote-deposit-due').text(cleanPrice(data.deposit));\n\n if (data.hasSpecials) {\n $('.has-specials').removeClass('hidden').wrap('');\n $('.discounted-rent').addClass('on-sale');\n }\n\n LIVEREZ.InstantQuote.showPricing();\n\n if (OnlineBookings) {\n LIVEREZ.InstantQuote.showButton('book');\n } else {\n LIVEREZ.InstantQuote.showButton('contact');\n }\n\n $('.property-instant-quote-change-dates').removeClass('hidden');\n } // error or not available\n else {\n LIVEREZ.InstantQuote.showButton('contact');\n LIVEREZ.InstantQuote.setError(data.message.split('.').join('.
'));\n LIVEREZ.InstantQuote.showDates();\n }\n\n LIVEREZ.InstantQuote.showHeading(data.isAvailable);\n LIVEREZ.InstantQuote.hideLoading();\n });\n\n InstantQuote.killAjax = function (strError) {\n if (this.xhr.readystate != 4) {\n this.xhr.abort();\n this.xhr = null;\n }\n };\n\n InstantQuote.setError = function (strError) {\n $('.property-instant-quote-message').html(strError).removeClass('hidden');\n };\n\n InstantQuote.removeError = function (strButtonType) {\n $('.property-instant-quote-message').empty().addClass('hidden');\n };\n\n InstantQuote.showButton = function (strButtonType) {\n $('.property-instant-quote-action-button').addClass('hidden');\n\n if (strButtonType !== '') {\n $('.property-instant-quote-button-' + strButtonType).removeClass('hidden');\n }\n };\n\n InstantQuote.submitForm = function (strFormType) {\n $('#property-quote-form-' + strFormType).submit();\n };\n\n InstantQuote.showLoading = function () {\n $('.property-instant-quote-loading').removeClass('hidden');\n };\n\n InstantQuote.hideLoading = function () {\n $('.property-instant-quote-loading').addClass('hidden');\n };\n\n InstantQuote.showDates = function () {\n $('.property-instant-quote-dates').removeClass('hidden');\n };\n\n InstantQuote.hideDates = function () {\n $('.property-instant-quote-dates').addClass('hidden');\n };\n\n InstantQuote.showPricing = function () {\n $('.property-instant-quote-available').removeClass('hidden');\n };\n\n InstantQuote.hidePricing = function () {\n $('.property-instant-quote-available').addClass('hidden');\n $('.property-instant-quote-available').addClass('hidden');\n };\n\n InstantQuote.changeDates = function () {\n $('.property-instant-quote-change-dates').addClass('hidden');\n this.killAjax();\n this.showHeading(0);\n this.removeError();\n this.hideLoading();\n this.hidePricing();\n this.showDates();\n this.showButton('');\n };\n\n InstantQuote.showHeading = function (isAvailable) {\n $('.property-instant-quote-heading').addClass('hidden');\n\n if (isAvailable === 1) {\n $('.property-instant-quote-heading-available').removeClass('hidden');\n } else {\n $('.property-instant-quote-heading-default').removeClass('hidden');\n }\n };\n\n LIVEREZ.InstantQuote = InstantQuote;\n\n function cleanPrice(decimalPrice) {\n var parts = decimalPrice.split('.');\n\n if (parts[1] === '00') {\n decimalPrice = parts[0];\n }\n\n return decimalPrice;\n }\n})(window.LIVEREZ = window.LIVEREZ || {}, window, lrjQ);\n\n(function (LIVEREZ, window, $, undefined) {\n var SearchResults = {}; // set up empty object to be used for caching data, settings while on the page\n\n SearchResults.cacheObj = {};\n SearchResults.cacheObj.mapData = {\n markerObjs: [],\n markersArr: [],\n isOpen: false,\n instance: null\n };\n\n SearchResults.setSearch = function (SearchObj) {\n this.cacheObj.SearchObj = SearchObj;\n return this;\n };\n\n SearchResults.searchOrder = function (OrderBy) {\n this.cacheObj.SearchObj.Sort = OrderBy;\n this.cacheObj.SearchObj.currentPage = 1;\n return this;\n };\n\n SearchResults.searchRun = function () {\n LIVEREZ.Publisher.publish(LIVEREZ.events.searchStart);\n\n var _this = this; // if we already have an ajax request, abort it and use the new one\n\n\n if (_this.xhr) {\n _this.xhr.abort();\n\n _this.xhr = null;\n }\n\n var _sendData = {\n Beds: _this.cacheObj.SearchObj.Bedrooms,\n sleeps: _this.cacheObj.SearchObj.Guests,\n arrivaldate: _this.cacheObj.SearchObj.ArrivalDate,\n departuredate: _this.cacheObj.SearchObj.DepartureDate,\n comparesearch: _this.cacheObj.SearchObj.CompareSearch,\n style: _this.cacheObj.SearchObj.Style,\n categoryid: Array.isArray(_this.cacheObj.SearchObj.CategoryID) ? _this.cacheObj.SearchObj.CategoryID.join(',') : _this.cacheObj.SearchObj.CategoryID,\n destinationID: Array.isArray(_this.cacheObj.SearchObj.DestinationID) ? _this.cacheObj.SearchObj.DestinationID.join(',') : _this.cacheObj.SearchObj.DestinationID,\n communityid: Array.isArray(_this.cacheObj.SearchObj.CommunityID) ? _this.cacheObj.SearchObj.CommunityID.join(',') : _this.cacheObj.SearchObj.CommunityID,\n admincustdataid: _this.cacheObj.SearchObj.AdminCustDataID,\n dynsiteid: _this.cacheObj.SearchObj.DynsiteID,\n searchtype: _this.cacheObj.SearchObj.SearchType,\n searchOrigin: _this.cacheObj.SearchObj.SearchOrigin,\n advs: _this.cacheObj.SearchObj.AdvancedSearch,\n pagedataid: _this.cacheObj.SearchObj.pagedataid,\n pageSize: _this.cacheObj.SearchObj.pageSize,\n currentPage: _this.cacheObj.SearchObj.currentPage,\n flexibleDates: _this.cacheObj.SearchObj.flexibleDates,\n searchAmenities: _this.cacheObj.SearchObj.searchAmenities,\n showOnlySpecials: _this.cacheObj.SearchObj.showOnlySpecials,\n flexibleDatesThreshold: _this.cacheObj.SearchObj.flexibleDatesThreshold\n }; // console.log(_sendData);\n\n if (_this.cacheObj.SearchObj.Sort > 0) {\n _sendData.O = this.cacheObj.SearchObj.Sort;\n }\n\n _this.xhr = $.ajax({\n type: 'get',\n url: LIVEREZ.DynsiteFunctions.getServerName() + '/inc/api/webservices.aspx?method=searchresults',\n data: _sendData,\n dataType: 'json',\n success: function success(data, status, error) {\n data.comparesearch = _sendData.comparesearch;\n LIVEREZ.Publisher.publish(LIVEREZ.events.searchComplete, data);\n },\n error: function error(data, status, _error6) {\n if (!status === 'abort') {\n LIVEREZ.Publisher.publish(LIVEREZ.events.searchComplete, {\n error: _error6\n });\n }\n }\n });\n };\n\n SearchResults.getCalendarSuggestions = function (preferences) {\n var _searchProperties = [];\n\n if (preferences.hasOwnProperty('properties') && Array.isArray(preferences.properties) && preferences.properties.length) {\n _searchProperties = preferences.properties.map(function (property) {\n return property.pageDataID;\n });\n }\n\n LIVEREZ.Publisher.publish(LIVEREZ.events.searchSuggestionsStart);\n\n var _this = this; // if we already have an ajax request, abort it and use the new one\n\n\n if (_this.csxhr) {\n _this.csxhr.abort();\n\n _this.csxhr = null;\n }\n\n var searchedDate = new Date(_this.cacheObj.SearchObj.ArrivalDate);\n var searchEnd = new Date(_this.cacheObj.SearchObj.DepartureDate);\n\n var _daysSearched = (searchEnd - searchedDate) / (1000 * 60 * 60 * 24);\n\n _this.daysBack = 5;\n _this.daysForward = _daysSearched > 15 ? _daysSearched + 5 : 15;\n var startDate = LIVEREZ.DynsiteFunctions.dateObjectToString(new Date(new Date(searchedDate).setDate(searchedDate.getDate() - _this.daysBack)));\n var stopDate = LIVEREZ.DynsiteFunctions.dateObjectToString(new Date(new Date(searchedDate).setDate(searchedDate.getDate() + _this.daysForward)));\n var consecutiveDays = Math.floor(_daysSearched * 0.8);\n\n if (consecutiveDays < 2) {\n consecutiveDays = 2;\n }\n\n var _sendData = {\n bedrooms: _this.cacheObj.SearchObj.Bedrooms,\n guests: _this.cacheObj.SearchObj.Guests,\n startDate: startDate,\n endDate: stopDate,\n categoryid: Array.isArray(_this.cacheObj.SearchObj.CategoryID) ? _this.cacheObj.SearchObj.CategoryID.join(',') : _this.cacheObj.SearchObj.CategoryID,\n destinationID: Array.isArray(_this.cacheObj.SearchObj.DestinationID) ? _this.cacheObj.SearchObj.DestinationID.join(',') : _this.cacheObj.SearchObj.DestinationID,\n communityid: Array.isArray(_this.cacheObj.SearchObj.CommunityID) ? _this.cacheObj.SearchObj.CommunityID.join(',') : _this.cacheObj.SearchObj.CommunityID,\n admincustdataid: _this.cacheObj.SearchObj.AdminCustDataID,\n dynsiteid: _this.cacheObj.SearchObj.DynsiteID,\n consecutiveDays: consecutiveDays,\n maxProperties: 3,\n searchOrigin: _this.cacheObj.SearchObj.SearchOrigin\n };\n _this.csxhr = $.ajax({\n type: 'get',\n url: LIVEREZ.DynsiteFunctions.getServerName() + '/inc/api/webservices.aspx?method=calendarsuggestions',\n data: _sendData,\n dataType: 'json',\n success: function success(data, status, error) {\n var finalProps = [];\n\n if (data.length) {\n finalProps = data.filter(function (property) {\n return _searchProperties.indexOf(property.PageDataID) === -1;\n });\n }\n\n LIVEREZ.Publisher.publish(LIVEREZ.events.searchSuggestionsComplete, {\n preferences: preferences,\n data: finalProps\n });\n },\n error: function error(data, status, _error7) {\n if (!status === 'abort') {\n LIVEREZ.Publisher.publish(LIVEREZ.events.searchSuggestionsComplete, {\n error: _error7\n });\n } else {\n LIVEREZ.Publisher.publish(LIVEREZ.events.searchSuggestionsComplete, {\n error: 'error fetching results'\n });\n }\n }\n });\n };\n\n SearchResults.CompareProperties = function () {\n var _this = this;\n\n if (_this.CheckCompare()) {\n document.Search_xml.PageDataID.value = _this.CompareCheckboxArr.join(',');\n document.Search_xml.submit();\n }\n };\n\n SearchResults.CheckCompare = function () {\n var _this = this;\n\n _this.CompareCheckboxArr = [];\n $('input:checkbox[name=PageDataID]:checked').each(function () {\n _this.CompareCheckboxArr.push($(this).val());\n });\n\n if (this.CompareCheckboxArr.length == 0) {\n alert('No Properties were selected. Please select up to 3 properties to compare.');\n return false;\n } else if (this.CompareCheckboxArr.length == 1) {\n alert('You must select more than 1 property to compare homes.');\n return false;\n } else if (this.CompareCheckboxArr.length > 3) {\n alert('To compare homes, You can only select 3 homes at a time.');\n return false;\n }\n\n return true;\n };\n\n SearchResults.setView = function (strView) {\n LIVEREZ.Storage.set('SearchResultsView', strView);\n return this;\n };\n\n SearchResults.getView = function (strView) {\n return LIVEREZ.Storage.get('SearchResultsView');\n };\n\n SearchResults.saveResultsData = function (resultsData) {\n this.cacheObj.results = resultsData;\n return this;\n };\n\n SearchResults.renderResultsbyView = function (callback, addtPropAvailMsgLocation) {\n if (this.cacheObj.results) {\n var data = this.cacheObj.results;\n\n var _this = this;\n\n var errorMsg = '';\n var propertiesDiv = $('
');\n _this.cacheObj.mapData.markerObjs.length = 0;\n\n if (data.properties && data.properties.length) {\n var propertiesStr = '';\n\n if (_this.getView() === 'grid') {\n propertiesStr += '
    ';\n }\n\n data.properties.forEach(function (propData, index) {\n if (_this.getView() === 'grid') {\n if (index > 0 && index % 3 === 0) {\n propertiesStr += '
    ';\n }\n\n propertiesStr += _this.SearchResultsTemplateGrid(data, propData);\n } else {\n propertiesStr += _this.SearchResultsTemplateList(data, propData);\n } // add the property data to the markers object array for use later signifying this property has a lat and long\n\n\n if (propData.latitude && propData.longitude) {\n propData.currencySymbol = propData.currencySymbol || data.currencySymbol;\n propData.currency = propData.currency || data.currency;\n\n _this.cacheObj.mapData.markerObjs.push(propData);\n }\n });\n\n if (_this.getView() === 'grid') {\n propertiesStr += '
';\n }\n\n propertiesDiv.append(propertiesStr); // create a map button for users to click\n\n if (_this.cacheObj.mapData.markerObjs.length > 0) {\n LIVEREZ.Publisher.publish(LIVEREZ.events.searchCreateMapImage, {\n lat: _this.cacheObj.mapData.markerObjs[0].latitude,\n lng: _this.cacheObj.mapData.markerObjs[0].longitude\n });\n }\n } else {\n if (data.returnMessageText) {\n errorMsg += data.returnMessageText;\n } else {\n errorMsg += 'We couldn’t find any results that matched your criteria.
Try adjusting your dates or removing some search filters to show more properties.';\n }\n } // create a week to week message if week to week are present\n\n\n if (data.weekToWeek && data.weekToWeek.hasProperties) {\n errorMsg += '
';\n\n if (data.properties && data.properties.length) {\n errorMsg += '

Additional Properties Available

';\n }\n\n errorMsg += '
' + data.weekToWeek.messageText + '
';\n errorMsg += '
';\n\n if (data.weekToWeek.prevSuggestions.length) {\n errorMsg += '
';\n errorMsg += '
Try Previous Week
';\n data.weekToWeek.prevSuggestions.forEach(function (suggestion) {\n //mutation is bad :(\n suggestion.fixedStartDate = LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI(suggestion.startDate, dateFormatType);\n suggestion.fixedEndDate = LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI(suggestion.endDate, dateFormatType);\n errorMsg += '';\n });\n errorMsg += '
';\n }\n\n if (data.weekToWeek.nextSuggestions.length) {\n errorMsg += '
';\n errorMsg += '
Try Next Week
';\n data.weekToWeek.nextSuggestions.forEach(function (suggestion) {\n //mutation is bad :(\n suggestion.fixedStartDate = LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI(suggestion.startDate, dateFormatType);\n suggestion.fixedEndDate = LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI(suggestion.endDate, dateFormatType);\n errorMsg += '';\n });\n errorMsg += '
';\n }\n\n errorMsg += '
';\n errorMsg += '
';\n } else if (data.minimumNightsStay && data.minimumNightsStay.hasProperties && data.minimumNightsStay.showMinNightsStayMessage !== false) {\n if (data.properties && data.properties.length) {\n errorMsg += '

Additional Properties Available

';\n }\n\n errorMsg += '
' + data.minimumNightsStay.messageText + '
';\n } // if error message exists, add it to the results\n\n\n if (errorMsg !== '') {\n if (addtPropAvailMsgLocation === 'top') {\n propertiesDiv.prepend('
' + errorMsg + '
');\n } else {\n propertiesDiv.append('
' + errorMsg + '
');\n }\n }\n\n try {\n setTimeout(function () {\n LIVEREZ.Publisher.publish(LIVEREZ.events.resultsRenderComplete);\n });\n } catch (error) {\n console.log(error);\n }\n\n callback(propertiesDiv);\n } // no data stored, go get some data\n else {\n SearchResults.searchRun();\n }\n };\n\n SearchResults.createMap = function (mapType) {\n var _this = this;\n\n var markers = this.cacheObj.mapData.markerObjs;\n $('.search-results-map-view-header-span').text('Viewing Map for ' + markers.length + ' Vacation Rentals');\n\n if (mapType === LIVEREZ.constants.MAP_TYPE.google) {\n var mapOptions = {\n zoom: 10,\n center: new google.maps.LatLng(markers[0].latitude, markers[0].longitude),\n styles: [{\n featureType: 'poi.business',\n elementType: 'labels',\n stylers: [{\n visibility: 'off'\n }]\n }]\n };\n var map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions);\n _this.cacheObj.mapData.instance = map; // create a single infowindow so that only 1 can be open at a time\n\n this.infowindow = new google.maps.InfoWindow();\n } else if (mapType === LIVEREZ.constants.MAP_TYPE.leaflet) {\n if (_this.cacheObj.mapData.instance) {\n _this.cacheObj.mapData.instance.off();\n\n _this.cacheObj.mapData.instance.remove();\n }\n\n var mapOptions = {\n scrollWheelZoom: false\n };\n var map = L.map('map_canvas', mapOptions);\n _this.cacheObj.mapData.instance = map; //delete all the current markers from the map before we proceed to create / add new ones\n\n _this.deleteAllMapMarkers(mapType);\n\n if (Array.isArray(markers) && markers.length) {\n map.setView([markers[0].latitude, markers[0].longitude], 10);\n } else {\n map.setView([43.68131, -116.362402], 10);\n }\n\n L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {\n attribution: '© OpenStreetMap contributors'\n }).addTo(map);\n }\n\n this.createMapMarkers(map, markers, mapType);\n };\n\n SearchResults.deleteAllMapMarkers = function (mapType) {\n var _this = this;\n\n for (var i = 0; i < this.cacheObj.mapData.markersArr.length; i++) {\n if (mapType === LIVEREZ.constants.MAP_TYPE.google) {\n _this.cacheObj.mapData.markersArr[i].setMap(null);\n } else if (mapType === LIVEREZ.constants.MAP_TYPE.leaflet) {\n if (_this.cacheObj.mapData.instance) {\n _this.cacheObj.mapData.instance.removeLayer(_this.cacheObj.mapData.markersArr[i]);\n }\n }\n }\n\n this.cacheObj.mapData.markersArr.length = 0;\n };\n\n SearchResults.createMapMarkers = function (map, markers, mapType) {\n var _this = this;\n\n if (Array.isArray(markers) && markers.length) {\n if (mapType === LIVEREZ.constants.MAP_TYPE.google) {\n var bounds = new google.maps.LatLngBounds();\n markers.forEach(function (marker) {\n var infoWindowHTML = LIVEREZ.SearchResults.SearchResultsTemplateMapInfoWindow(marker);\n var markerLatLng = new google.maps.LatLng(marker.latitude, marker.longitude);\n var marker = new google.maps.Marker({\n position: markerLatLng,\n map: map,\n title: marker.pid\n }); // put the marker in an array so we can remove it from the map later if the results change\n\n _this.cacheObj.mapData.markersArr.push(marker);\n\n google.maps.event.addListener(marker, 'click', function () {\n _this.infowindow.setContent(infoWindowHTML);\n\n _this.infowindow.open(map, this);\n }); // extend the map bounds with this markers position\n\n bounds.extend(markerLatLng);\n }); // set the map to fit the bounds\n\n map.fitBounds(bounds);\n } else if (mapType === LIVEREZ.constants.MAP_TYPE.leaflet) {\n var featureGroup = L.featureGroup().addTo(map);\n markers.forEach(function (marker) {\n var infoWindowHTML = LIVEREZ.SearchResults.SearchResultsTemplateMapInfoWindow(marker);\n L.marker([marker.latitude, marker.longitude]).addTo(featureGroup).bindPopup(infoWindowHTML); // put the marker in an array so we can remove it from the map later if the results change\n\n _this.cacheObj.mapData.markersArr.push(marker);\n });\n featureGroup.addTo(map);\n map.fitBounds(featureGroup.getBounds());\n }\n }\n };\n\n SearchResults.openMap = function (mapType) {\n LIVEREZ.Publisher.publish(LIVEREZ.events.searchMapOpen);\n this.cacheObj.mapData.isOpen = true;\n this.createMap(mapType);\n };\n\n SearchResults.closeMap = function () {\n LIVEREZ.Publisher.publish(LIVEREZ.events.searchMapClose);\n this.cacheObj.mapData.isOpen = false;\n };\n\n SearchResults.changeDates = function (startD, endD) {\n $('#txtStartDate').val(startD);\n $('#txtStartDate-mobile').val(startD);\n $('#AD').val(startD);\n $('#txtEndDate').val(endD);\n $('#txtEndDate-mobile').val(endD);\n $('#DD').val(endD);\n $('#FlexibleDatesThreshold').val('');\n window.scrollTo(0, 0); //$('.start-date').val(startD);\n //$('.end-date').val(endD);\n\n return this;\n };\n\n SearchResults.renderAmenities = function (amenities, cb) {\n var str = '';\n\n for (var key in amenities) {\n var list = amenities[key].filter(function (item) {\n return item.hasOwnProperty('count') && item.count > 0 || item.checked;\n });\n\n if (Array.isArray(list) && list.length) {\n list.forEach(function (amenity, i) {\n var item = $('
').addClass('search-amenities-item checkbox secondary-advanced-checkbox');\n var check = $('').attr('type', 'checkbox').attr('id', 'search-amenitiy-' + amenity.amenityID).attr('name', 'searchAmenities').attr('checked', amenity.checked).val(amenity.amenityID);\n var label = $('
 ';\n }\n\n html += '
' + calWeek + '' + content + '
' + defaults.templates.leftArrow + '' + defaults.templates.rightArrow + '
' + DPGlobal.headTemplate + '' + DPGlobal.footTemplate + '
' + '
' + '
' + '' + DPGlobal.headTemplate + DPGlobal.contTemplate + DPGlobal.footTemplate + '
' + '
' + '
' + '' + DPGlobal.headTemplate + DPGlobal.contTemplate + DPGlobal.footTemplate + '
' + '
' + '
' + '' + DPGlobal.headTemplate + DPGlobal.contTemplate + DPGlobal.footTemplate + '
' + '
' + '
' + '' + DPGlobal.headTemplate + DPGlobal.contTemplate + DPGlobal.footTemplate + '
' + '
' + '
';\n $.fn.datepicker.DPGlobal = DPGlobal;\n /* DATEPICKER NO CONFLICT\n * =================== */\n\n $.fn.datepicker.noConflict = function () {\n $.fn.datepicker = old;\n return this;\n };\n /* DATEPICKER VERSION\n * =================== */\n\n\n $.fn.datepicker.version = '1.7.1';\n\n $.fn.datepicker.deprecated = function (msg) {\n var console = window.console;\n\n if (console && console.warn) {\n console.warn('DEPRECATED: ' + msg);\n }\n };\n /* DATEPICKER DATA-API\n * ================== */\n\n\n $(document).on('focus.datepicker.data-api click.datepicker.data-api', '[data-provide=\"datepicker\"]', function (e) {\n var $this = $(this);\n if ($this.data('datepicker')) return;\n e.preventDefault(); // component click requires us to explicitly show it\n\n datepickerPlugin.call($this, 'show');\n });\n $(function () {\n datepickerPlugin.call($('[data-provide=\"datepicker-inline\"]'));\n });\n});\n/*! echo-js v1.7.3 | (c) 2016 @toddmotto | https://github.com/toddmotto/echo */\n\n\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n define(function () {\n return factory(root);\n });\n } else if ((typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object') {\n module.exports = factory;\n } else {\n root.echo = factory(root);\n }\n})(window, function (root) {\n 'use strict';\n\n var echo = {};\n\n var callback = function callback() {};\n\n var offset, poll, delay, useDebounce, unload;\n\n var isHidden = function isHidden(element) {\n return element.offsetParent === null;\n };\n\n var inView = function inView(element, view) {\n if (isHidden(element)) {\n return false;\n }\n\n var box = element.getBoundingClientRect();\n return box.right >= view.l && box.bottom >= view.t && box.left <= view.r && box.top <= view.b;\n };\n\n var debounceOrThrottle = function debounceOrThrottle() {\n if (!useDebounce && !!poll) {\n return;\n }\n\n clearTimeout(poll);\n poll = setTimeout(function () {\n echo.render();\n poll = null;\n }, delay);\n };\n\n echo.init = function (opts) {\n opts = opts || {};\n var offsetAll = opts.offset || 0;\n var offsetVertical = opts.offsetVertical || offsetAll;\n var offsetHorizontal = opts.offsetHorizontal || offsetAll;\n\n var optionToInt = function optionToInt(opt, fallback) {\n return parseInt(opt || fallback, 10);\n };\n\n offset = {\n t: optionToInt(opts.offsetTop, offsetVertical),\n b: optionToInt(opts.offsetBottom, offsetVertical),\n l: optionToInt(opts.offsetLeft, offsetHorizontal),\n r: optionToInt(opts.offsetRight, offsetHorizontal)\n };\n delay = optionToInt(opts.throttle, 250);\n useDebounce = opts.debounce !== false;\n unload = !!opts.unload;\n callback = opts.callback || callback;\n echo.render();\n\n if (document.addEventListener) {\n root.addEventListener('scroll', debounceOrThrottle, false);\n root.addEventListener('load', debounceOrThrottle, false);\n } else {\n root.attachEvent('onscroll', debounceOrThrottle);\n root.attachEvent('onload', debounceOrThrottle);\n }\n };\n\n echo.render = function (context) {\n var nodes = (context || document).querySelectorAll('[data-echo], [data-echo-background]');\n var length = nodes.length;\n var src, elem;\n var view = {\n l: 0 - offset.l,\n t: 0 - offset.t,\n b: (root.innerHeight || document.documentElement.clientHeight) + offset.b,\n r: (root.innerWidth || document.documentElement.clientWidth) + offset.r\n };\n\n for (var i = 0; i < length; i++) {\n elem = nodes[i];\n\n if (inView(elem, view)) {\n if (unload) {\n elem.setAttribute('data-echo-placeholder', elem.src);\n }\n\n if (elem.getAttribute('data-echo-background') !== null) {\n elem.style.backgroundImage = 'url(' + elem.getAttribute('data-echo-background') + ')';\n } else if (elem.src !== (src = elem.getAttribute('data-echo'))) {\n elem.src = src;\n }\n\n if (!unload) {\n elem.removeAttribute('data-echo');\n elem.removeAttribute('data-echo-background');\n }\n\n callback(elem, 'load');\n } else if (unload && !!(src = elem.getAttribute('data-echo-placeholder'))) {\n if (elem.getAttribute('data-echo-background') !== null) {\n elem.style.backgroundImage = 'url(' + src + ')';\n } else {\n elem.src = src;\n }\n\n elem.removeAttribute('data-echo-placeholder');\n callback(elem, 'unload');\n }\n }\n\n if (!length) {\n echo.detach();\n }\n };\n\n echo.detach = function () {\n if (document.removeEventListener) {\n root.removeEventListener('scroll', debounceOrThrottle);\n } else {\n root.detachEvent('onscroll', debounceOrThrottle);\n }\n\n clearTimeout(poll);\n };\n\n return echo;\n});\n\n(function (LIVEREZ, window, $, undefined) {\n var StripCalendar = function StripCalendar(starDate, endDate, datesArr) {\n var self = this;\n this.startDate = new Date(starDate);\n this.endDate = new Date(endDate);\n this.numberOfDays = getDateDiff(self.startDate, self.endDate);\n this.data = datesArr;\n this.startingMonth = this.startDate.getMonth();\n this.stoppingMonth = this.endDate.getMonth();\n this.displayDates = getDates(self.startDate, self.endDate);\n };\n\n var _isLeapYear = function _isLeapYear(year) {\n return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;\n };\n\n var _getDaysInMonth = function _getDaysInMonth(year, month) {\n return [31, _isLeapYear(year) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month];\n };\n\n var _dates = {\n days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n daysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n daysSuperShort: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],\n months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],\n monthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']\n };\n\n StripCalendar.prototype.generateHtml = function (callback) {\n var container = $('
').addClass('table-responsive');\n var table = $('').addClass('lr-strip-calendar');\n\n var _daysInEachMonth = getDaysInEachMonth(this.displayDates);\n\n var headingRow = $('').addClass('lr-strip-calendar--heading-row');\n var weekdayRow = $('').addClass('lr-strip-calendar--weekday-row');\n var dateRow = $('').addClass('lr-strip-calendar--date-row'); // add months to heading row\n\n for (var key in _daysInEachMonth) {\n var monthIndex = key.split('_')[1];\n var month = $('
').text(_dates.monthsShort[monthIndex]).attr('colspan', _daysInEachMonth[key]);\n headingRow.append(month);\n } // add days to the date row\n\n\n this.displayDates.forEach(function (item) {\n var weekday = $('').text(_dates.daysSuperShort[item.getDay()]);\n weekday.addClass('lr-strip-calendar--weekday');\n weekdayRow.append(weekday);\n var day = $('').text(item.getDate());\n day.addClass('lr-strip-calendar--day ' + formatDate(item));\n dateRow.append(day);\n }); // paint the days with the correct classes\n\n this.data.forEach(function (calendarDay) {\n var current = dateRow.children('.' + formatDate(calendarDay.date));\n\n if (calendarDay.checkIn) {\n current.addClass('checkin');\n }\n\n if (calendarDay.checkOut) {\n current.addClass('checkout');\n }\n\n if (calendarDay.occupied) {\n current.addClass('occupied');\n }\n });\n table.append(headingRow);\n table.append(weekdayRow);\n table.append(dateRow);\n container.append(table);\n callback(container.html());\n };\n\n return LIVEREZ.StripCalendar = StripCalendar;\n\n function formatDate(date) {\n return date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate();\n }\n\n function getDateDiff(date1, date2) {\n return Math.abs((date1.getTime() - date2.getTime()) / (1000 * 60 * 60 * 24));\n }\n\n function getDates(d1, d2) {\n var dates = [];\n var currentDate = new Date(d1);\n var endDate = new Date(d2);\n\n while (currentDate <= endDate) {\n dates.push(new Date(currentDate));\n currentDate.setDate(currentDate.getDate() + 1);\n }\n\n return dates;\n }\n\n function getDaysInEachMonth(datesArr) {\n var obj = {};\n datesArr.forEach(function (item) {\n var _month = item.getMonth();\n\n var _year = item.getFullYear();\n\n var key = _year + '_' + _month;\n\n if (!obj.hasOwnProperty(key)) {\n obj[key] = 1;\n } else {\n obj[key] = obj[key] + 1;\n }\n });\n return obj;\n }\n})(window.LIVEREZ = window.LIVEREZ || {}, window, lrjQ);","(function(LIVEREZ, window, $, undefined) {\n var CALENDAR_DAY_TYPES = {\n Available: 0,\n Unavailable: 1,\n CheckIn: 2,\n CheckOut: 3,\n EarlyCheckIn: 4,\n LateCheckOut: 5,\n EarlyCheckInLateCheckOut: 6,\n SingleNightRental: 7,\n TurnOver: 8,\n TurnOverEarlyCheckIn: 9,\n TurnOverLateCheckOut: 10,\n };\n\n var CalendarAvailability = function(dynsiteId, adminCustDataID, pageDataId) {\n this.dynsiteId = dynsiteId;\n this.adminCustDataId = adminCustDataID;\n this.pageDataId = pageDataId;\n\n this.unavailableTypes = [\n CALENDAR_DAY_TYPES.Unavailable,\n CALENDAR_DAY_TYPES.EarlyCheckIn,\n CALENDAR_DAY_TYPES.LateCheckOut,\n CALENDAR_DAY_TYPES.EarlyCheckInLateCheckOut,\n CALENDAR_DAY_TYPES.SingleNightRental,\n CALENDAR_DAY_TYPES.TurnOver,\n CALENDAR_DAY_TYPES.TurnOverEarlyCheckIn,\n CALENDAR_DAY_TYPES.TurnOverLateCheckOut,\n ];\n\n this.unavailableDateObjs = [];\n this.unavailableDateObjsMobile = [];\n this.queriedYears = [];\n };\n\n CalendarAvailability.prototype.getCalendarData = function(startDate, endDate, callback) {\n var _this = this;\n\n if (_this.xhr && _this.xhr.readystate != 4) {\n _this.xhr.abort();\n _this.xhr = null;\n }\n\n this.queriedYears.push(new Date(startDate).getFullYear());\n\n _this.xhr = $.ajax({\n type: 'get',\n url:\n LIVEREZ.DynsiteFunctions.getServerName() +\n '/inc/api/webservices.aspx?method=propertycalendardata',\n data: {\n AdminCustDataID: _this.adminCustDataId,\n DynSiteID: _this.dynsiteId,\n PageDataID: _this.pageDataId,\n ad: startDate,\n dd: endDate,\n },\n dataType: 'json',\n success: function(data) {\n try {\n // var offsetHours = ((+(new Date().getTimezoneOffset()) / 60 ) * - 1);\n\n var addHours = function(d, h) {\n d.setTime(d.getTime() + h * 60 * 60 * 1000);\n return d;\n };\n\n data.forEach(function(dateObj) {\n var _type = +dateObj.calendarDayTypes;\n\n if (\n _this.unavailableTypes.indexOf(_type) > -1 ||\n (_type === CALENDAR_DAY_TYPES.CheckIn && +dateObj.earlyCheckIn === 1) ||\n (_type === CALENDAR_DAY_TYPES.CheckOut && +dateObj.lateCheckOut === 1)\n ) {\n // dont add early check in or late check out to disavled days if settings allow for turnovers on these\n if (\n (_type === CALENDAR_DAY_TYPES.EarlyCheckIn && searchAllowForEarlyCheckIn === 1) ||\n (_type === CALENDAR_DAY_TYPES.LateCheckOut && searchAllowForLateCheckOut === 1)\n ) {\n return;\n }\n\n // var uDate = new Date(new Date(dateObj.startDate.split('T')[0].replace(/-/g, '\\/')).setHours(0,0,0,0));\n // var uDate = new Date(dateObj.startDate.split('T')[0].replace(/-/g, '\\/'));\n // var uDateMobile = new Date(dateObj.startDate.split('T')[0].replace(/-/g, '\\/'));\n // var uDateOffset = offsetHours;\n\n // // console.log('=============== ' + dateObj.startDateString + ' ================');\n // // console.log('uDate before', uDate);\n // // console.log('offset hours', offsetHours);\n // // console.log('uDateOffset hours', uDateOffset);\n // // console.log('isDST', isDST(uDate));\n\n // if(isDST(uDate)){\n // \tuDateOffset = uDateOffset + 1\n // }\n\n // // console.log('uDateOffset hours', uDateOffset);\n\n // uDate = addHours(uDate, uDateOffset);\n\n // // console.log('uDate after', uDate);\n\n // _this.unavailableDateObjs.push(uDate);\n // _this.unavailableDateObjsMobile.push(uDateMobile);\n\n // var formatted8601 = LIVEREZ.DynsiteFunctions.dateStringToISO8601(dateObj.startDateString);\n var formattedDateObj = LIVEREZ.DynsiteFunctions.dateStringToObject(\n dateObj.startDateString\n );\n\n if (dateFormatType === 1) {\n dateObj.startDateString = LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI(\n dateObj.startDateString,\n dateFormatType\n );\n }\n\n _this.unavailableDateObjs.push(dateObj.startDateString);\n _this.unavailableDateObjsMobile.push(formattedDateObj);\n }\n });\n\n _this.unavailableDateObjs = _this.unavailableDateObjs.filter(function(\n element,\n index,\n array\n ) {\n return array.indexOf(element) >= index;\n });\n\n _this.unavailableDateObjsMobile = _this.unavailableDateObjsMobile.filter(function(\n element,\n index,\n array\n ) {\n return array.indexOf(element) >= index;\n });\n\n callback();\n } catch (ex) {\n console.error(ex);\n callback();\n }\n },\n error: function(data, status, error) {\n $('.datepicker-overlay').remove();\n\n console.log(data);\n console.log(status);\n console.log(error);\n },\n });\n };\n\n // function isDST(t) { //t is the date object to check, returns true if daylight saving time is in effect.\n // \tvar jan = new Date(t.getFullYear(),0,1);\n // \tvar jul = new Date(t.getFullYear(),6,1);\n // \treturn Math.min(jan.getTimezoneOffset(),jul.getTimezoneOffset()) == t.getTimezoneOffset();\n // }\n\n CalendarAvailability.prototype.findDateConflicts = function(start, end) {\n var error = false;\n\n var start = new Date(LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI(start, dateFormatType));\n var end = new Date(LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI(end, dateFormatType));\n\n for (var i = 0; i < this.unavailableDateObjs.length; i++) {\n var tmpDate = this.unavailableDateObjs[i];\n if (tmpDate >= start && tmpDate <= end) {\n error = true;\n }\n }\n\n return error;\n };\n\n LIVEREZ.CalendarAvailability = CalendarAvailability;\n})((window.LIVEREZ = window.LIVEREZ || {}), window, lrjQ);\n","(function(LIVEREZ, window) {\n LIVEREZ.constants = {\n MAP_TYPE: {\n google: 1,\n leaflet: 2,\n },\n };\n})((window.LIVEREZ = window.LIVEREZ || {}), this);\n","/*\n * @author Joshua Hurst\n * @date 5/27/2014\n *\n * @description A set of functions to be used with LiveRez Dynsites\n */\n\n(function(LIVEREZ, window, $, undefined) {\n var DynsiteFunctions = {};\n\n DynsiteFunctions.PopUp = function(URL, Window, w, h, x, y) {\n var popupwin = window.open(\n URL,\n Window,\n 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' +\n w +\n ',height=' +\n h +\n ',left=' +\n x +\n ',top=' +\n y\n );\n };\n\n DynsiteFunctions.socialSharePage = function(socialType, image, headline) {\n var url;\n var page = encodeURIComponent(window.location.href).toString();\n image = encodeURIComponent(image);\n headline = encodeURIComponent(headline);\n\n switch (socialType) {\n case 'facebook':\n url = 'https://www.facebook.com/sharer.php?u=' + page;\n break;\n\n case 'twitter':\n url =\n 'https://twitter.com/intent/tweet?source=tweetbutton&text=' + headline + '&url=' + page;\n break;\n\n case 'pinterest':\n url =\n 'https://www.pinterest.com/pin/create/button/?url=' +\n page +\n '&media=' +\n image +\n '&description=' +\n headline;\n break;\n\n case 'googlePlus':\n url = 'https://plus.google.com/share?url=' + page;\n break;\n }\n\n this.PopUp(url, window, 400, 350);\n };\n\n DynsiteFunctions.isEmailAddr = function(email) {\n var result = false;\n var theStr = new String(email);\n var index = theStr.indexOf('@');\n if (index > 0) {\n var pindex = theStr.indexOf('.', index);\n if (pindex > index + 1 && theStr.length > pindex + 1) result = true;\n }\n return result;\n };\n\n DynsiteFunctions.validRequired = function(formField, fieldLabel) {\n var result = true;\n if (formField.value == '') {\n alert('Please enter a value for the \"' + fieldLabel + '\" field.');\n formField.focus();\n result = false;\n }\n return result;\n };\n\n DynsiteFunctions.allDigits = function(str) {\n return this.inValidCharSet(str, '0123456789');\n };\n\n DynsiteFunctions.inValidCharSet = function(str, charset) {\n var result = true;\n // Doesn't use regular expressions to avoid early Mac browser bugs\n for (var i = 0; i < str.length; i++) {\n if (charset.indexOf(str.substr(i, 1)) < 0) {\n result = false;\n break;\n }\n }\n return result;\n };\n\n DynsiteFunctions.validEmail = function(formField, fieldLabel, required) {\n var result = true;\n if (required && !this.validRequired(formField, fieldLabel)) result = false;\n if (result && (formField.value.length < 3 || !this.isEmailAddr(formField.value))) {\n alert('Please enter a complete email address in the form: yourname@yourdomain.com');\n formField.focus();\n result = false;\n }\n return result;\n };\n\n DynsiteFunctions.validNum = function(formField, fieldLabel, required) {\n var result = true;\n if (required && !this.validRequired(formField, fieldLabel)) result = false;\n if (result) {\n if (!this.allDigits(formField.value)) {\n alert('Please enter a number for the \"' + fieldLabel + '\" field.');\n formField.focus();\n result = false;\n }\n }\n return result;\n };\n\n DynsiteFunctions.validInt = function(formField, fieldLabel, required) {\n var result = true;\n if (required && !this.validRequired(formField, fieldLabel)) result = false;\n if (result) {\n var num = parseInt(formField.value, 10);\n if (isNaN(num)) {\n alert('Please enter a number for the \"' + fieldLabel + '\" field.');\n formField.focus();\n result = false;\n }\n }\n return result;\n };\n\n DynsiteFunctions.validDate = function(formField, fieldLabel, required) {\n var result = true;\n\n if (required && !this.validRequired(formField, fieldLabel)) result = false;\n if (result) {\n var elems = formField.value.split('/');\n result = elems.length == 3; // should be three components\n if (result) {\n var month = parseInt(elems[0], 10);\n var day = parseInt(elems[1], 10);\n var year = parseInt(elems[2], 10);\n result =\n allDigits(elems[0]) &&\n month > 0 &&\n month < 13 &&\n allDigits(elems[1]) &&\n day > 0 &&\n day < 32 &&\n allDigits(elems[2]) &&\n (elems[2].length == 2 || elems[2].length == 4);\n }\n if (!result) {\n alert('Please enter a date in the format MM/DD/YYYY for the \"' + fieldLabel + '\" field.');\n formField.focus();\n }\n }\n return result;\n };\n\n DynsiteFunctions.getServerName = function() {\n if (!window.location.origin) {\n return (\n window.location.protocol +\n '//' +\n window.location.hostname +\n (window.location.port ? ':' + window.location.port : '')\n );\n } else {\n return window.location.origin;\n }\n };\n\n DynsiteFunctions.goPropertyByElem = function(selectObj) {\n var val = selectObj.options[selectObj.selectedIndex].value;\n if (val != '') {\n window.parent.location.href = val;\n }\n };\n\n DynsiteFunctions.goPropertyByID = function(PageDataID) {\n if (PageDataID) {\n window.parent.location.href = '/vacation-rental-home.asp?PageDataID=' + PageDataID;\n }\n };\n\n DynsiteFunctions.sendtofriend = function(PageDataID) {\n window.parent.location.href = '/vacation-rental-home-stf.asp?PageDataID=' + PageDataID;\n };\n\n DynsiteFunctions.propertycontact = function(PageDataID, AD, DD) {\n window.parent.location.href =\n '/vacation-rental-home-contact.asp?PageDataID=' + PageDataID + '&ad=' + AD + '&dd=' + DD;\n };\n\n DynsiteFunctions.viewproperty = function(strPageDataID, strUnitID) {\n var formObj = document.viewproperty;\n formObj.action = '/vacation-rental-home.asp?PageDataID=' + strPageDataID;\n formObj.PageDataID.value = strPageDataID;\n formObj.WebReferencePageDataID.value = strPageDataID;\n formObj.InventoryUnitDataID.value = strUnitID;\n formObj.submit();\n };\n\n DynsiteFunctions.debounce = function(func, wait, immediate) {\n var timeout;\n return function() {\n var context = this,\n args = arguments;\n var later = function() {\n timeout = null;\n if (!immediate) func.apply(context, args);\n };\n var callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) func.apply(context, args);\n };\n };\n\n DynsiteFunctions.DateShort = function(DateStr, delimeter) {\n var tmpDate = new Date(DateStr);\n (delimeter = delimeter || '/'),\n (tmpDate =\n tmpDate.getMonth() + 1 + delimeter + tmpDate.getDate() + delimeter + tmpDate.getFullYear());\n return tmpDate;\n };\n\n DynsiteFunctions.DateNatural = (d, includeYear = true) => {\n if (typeof d === 'string') {\n if (d.indexOf('-') > 0) {\n d = new Date(d);\n d.setHours(d.getHours() + new Date().getTimezoneOffset() / 60);\n } else {\n d = new Date(d);\n }\n }\n\n var MONTH_NAMES = [\n 'Jan',\n 'Feb',\n 'Mar',\n 'Apr',\n 'May',\n 'Jun',\n 'Jul',\n 'Aug',\n 'Sep',\n 'Oct',\n 'Nov',\n 'Dec',\n ];\n var DAY_NAMES = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];\n\n function nth(d) {\n if (d > 3 && d < 21) return 'th'; // thanks kennebec\n switch (d % 10) {\n case 1:\n return 'st';\n case 2:\n return 'nd';\n case 3:\n return 'rd';\n default:\n return 'th';\n }\n }\n\n let final =\n DAY_NAMES[d.getDay()] +\n ' ' +\n MONTH_NAMES[d.getMonth()] +\n ' ' +\n d.getDate() +\n nth(d.getDate());\n\n if (includeYear) {\n final += ', ' + d.getFullYear();\n }\n\n return final;\n };\n\n /***** NAVIS 800 Number and Keyword Tracking *****/\n DynsiteFunctions.handleNavisCookies = function(NavisKeyword, NavisPhone) {\n if (NavisKeyword !== '' && NavisPhone !== '') {\n LIVEREZ.Storage.set(DYN_SITE_ID + 'navis800Num', NavisPhone);\n LIVEREZ.Storage.set(DYN_SITE_ID + 'NavisHiddenKeywordVal', NavisKeyword);\n this.fix800NumberForNavis();\n }\n\n if (LIVEREZ.Storage.get(DYN_SITE_ID + 'navis800Num')) {\n this.fix800NumberForNavis();\n }\n };\n\n DynsiteFunctions.fix800NumberForNavis = function() {\n // get the cookies\n var NavisHiddenPhoneVal = LIVEREZ.Storage.get(DYN_SITE_ID + 'navis800Num');\n var NavisHiddenKeywordVal = LIVEREZ.Storage.get(DYN_SITE_ID + 'NavisHiddenKeywordVal');\n\n // insert phone number into holder span\n $('.phone-link').attr('href', 'tel: ' + NavisHiddenPhoneVal);\n $('.800PhoneHolder').text(NavisHiddenPhoneVal);\n\n var NavisHiddenKeyword = $('#NavisHiddenKeyword');\n if (NavisHiddenKeywordVal && NavisHiddenKeyword) {\n NavisHiddenKeyword.val(NavisHiddenKeywordVal);\n }\n\n var NavisHiddenPhone = $('#NavisCode');\n if (NavisHiddenPhone && NavisHiddenPhoneVal) {\n NavisHiddenPhone.val(NavisHiddenPhoneVal);\n }\n };\n /***** END NAVIS 800 Number and Keyword Tracking *****/\n\n /***** CRM PLUS LEAD Tracking ************************/\n DynsiteFunctions.handleCRMPlusCookies = function(LeadID) {\n if (LIVEREZ.Storage.get(DYN_SITE_ID + 'LeadID')) {\n this.insertLeadCookie();\n } else {\n if (LeadID !== '') {\n LIVEREZ.Storage.set(DYN_SITE_ID + 'LeadID', LeadID);\n this.insertLeadCookie();\n }\n }\n };\n\n DynsiteFunctions.insertLeadCookie = function() {\n var leadCookie = LIVEREZ.Storage.get(DYN_SITE_ID + 'LeadID');\n var leadIDInput = $('.hiddenLeadID');\n if (leadCookie && leadIDInput) {\n leadIDInput.val(leadCookie);\n }\n };\n /***** END CRM PLUS LEAD Tracking *******************/\n\n DynsiteFunctions.trimDate = function(strDate) {\n if (strDate && typeof strDate === 'string') {\n strDate = strDate.replace(/^0+/, '');\n strDate = strDate.replace(/\\/0/, '/');\n }\n\n return strDate;\n };\n\n DynsiteFunctions.fixEuroDatesForAPI = function(strDate, dateFormat) {\n if (dateFormat === 1) {\n var parts = strDate.split('/');\n return parts[1] + '/' + parts[0] + '/' + parts[2];\n } else {\n return strDate;\n }\n };\n\n DynsiteFunctions.dateStringToISO8601 = function(dateString) {\n var myDate = dateString.split('/');\n var returnDate = [myDate[2], myDate[0], myDate[1]].join('-');\n return returnDate;\n };\n\n DynsiteFunctions.dateObjectToString = function(dateObj) {\n return dateObj.getMonth() + 1 + '/' + dateObj.getDate() + '/' + dateObj.getFullYear();\n };\n\n DynsiteFunctions.dateStringToObject = function(dateStr) {\n var year, month, day;\n if (dateStr.indexOf('-') > -1) {\n var parts = dateStr.split('-');\n if (parts[0].length === 4) {\n year = parts[0];\n month = parts[1];\n day = parts[2];\n } else {\n year = parts[2];\n month = parts[0];\n day = parts[1];\n }\n } else {\n var parts = dateStr.split('/');\n year = parts[2];\n month = parts[0];\n day = parts[1];\n }\n\n return new Date(year, month - 1, day);\n };\n\n DynsiteFunctions.truncate = function(string, length, elipsisBool) {\n var _str = string.substring(0, length);\n if (string.length > length && elipsisBool) {\n _str += '...';\n }\n return _str;\n };\n\n DynsiteFunctions.daydiff = function(first, second) {\n return (second - first) / (1000 * 60 * 60 * 24);\n };\n\n DynsiteFunctions.checkValidStartEndDates = function(date1, date2) {\n var now = new Date().setHours(0, 0, 0, 0);\n date1 = new Date(date1).setHours(0, 0, 0, 0);\n date2 = new Date(date2).setHours(0, 0, 0, 0);\n\n var numSearchedDay = this.daydiff(date1, date2);\n var maxDays = maxWebRentalDays || 365;\n\n if (date1 === date2) {\n return 'Arrival and Departure dates cannot be the same.';\n }\n\n if (now > date1) {\n return 'Arrival date must be in the future.';\n }\n\n if (now > date2) {\n return 'Departure date must be in the future.';\n }\n\n if (date2 <= date1) {\n return 'Departure date must come after arrival date.';\n }\n\n if (numSearchedDay > maxDays) {\n return (\n 'Travel Dates cannot span more than ' +\n maxDays +\n ' days. Please contact us for additional booking options.'\n );\n }\n };\n\n DynsiteFunctions.isMobileDevice = function() {\n var check = false;\n (function(a) {\n if (\n /(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(\n a\n ) ||\n /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-/i.test(\n a.substr(0, 4)\n )\n )\n check = true;\n })(navigator.userAgent || navigator.vendor || window.opera);\n return check;\n };\n\n DynsiteFunctions.checkForEmailElementToHide = function() {\n var div = document.getElementById('email-div');\n if (div) {\n div.style.display = 'none';\n }\n };\n\n DynsiteFunctions.fixTextForDisplay = function(strText) {\n if (strText) {\n strText = strText.replace(/`/g, \"'\");\n }\n\n return strText;\n };\n\n LIVEREZ.DynsiteFunctions = DynsiteFunctions;\n})((window.LIVEREZ = window.LIVEREZ || {}), window, lrjQ);\n\n$(window).on('load', function() {\n // check for inputs to hide on load\n LIVEREZ.DynsiteFunctions.checkForEmailElementToHide();\n});\n","(function(LIVEREZ, window, $) {\n LIVEREZ.events = {\n searchCreateMapImage: 'search-map-image',\n searchMapOpen: 'search-map-open',\n searchMapClose: 'search-map-close',\n searchStart: 'search-start',\n searchComplete: 'search-complete',\n resultsRenderComplete: 'results-render-complete',\n instantQuoteFinished: 'instant-quote-finished',\n calDataFinished: 'cal-data-finished',\n searchSuggestionsStart: 'search-suggesttions-start',\n searchSuggestionsComplete: 'search-suggesttions-complete',\n calendarSearchStart: 'calendar-search-start',\n calendarSearchComplete: 'calendar-search-complete',\n calendarSearchRenderComplete: 'calendar-search-render-complete',\n propertyDateRangeStart: 'property-date-range-start',\n propertyDateRangeComplete: 'property-date-range-complete',\n propertyDateRangeError: 'property-date-range-error',\n propertyDateRangeSuccess: 'property-date-range-success',\n };\n})((window.LIVEREZ = window.LIVEREZ || {}), window, lrjQ);\n","(function(NAMESPACE, window, $) {\n try {\n $(window.document).ready(function() {\n if (LR_ENV === 'PROD' && window.ga && window.ga.loaded) {\n const page = window.location.pathname;\n\n const $propertyBookItNowButton = $(\n 'div.property-instant-quote-action > a.property-instant-quote-button-book'\n );\n const $propertySidebarContactManagerButton = $(\n '#content2Left > div.row.property-side-contact-manager > div > a'\n );\n const $propertySendToFriendLink = $('a.property-send-to-friend-link');\n const $propertyCommunityLearnMoreLink = $('a.property-community-learn-more-link');\n const $propertyChangeDatesLink = $(\n '#propertyInstantQuote > div.panel-footer > a.property-instant-quote-change-dates'\n );\n const $propertyReviewWidgetReviewsAnchor = $(\n '#property-rating-panel > div > div.lr-info-block-property-rating-property-panel > div.lr-info-block-property-rating-show-reviews > a'\n );\n const $propertyAllPhotosButton = $(\n '#Photos > div.row > div > ul > li > a[data-target=\"#propGalleryModal\"]'\n );\n const $propertyFullScreen = $(\n '#photo-gallery > div.rsOverflow > div.rsFullscreenBtn > div'\n );\n const $propertyShowAllAmenitiesExpand = $('.standard-amenities-section--show-more > a');\n const $searchComparePropertiesButton = $('.search-compare-button');\n const $searchViewMoreCalendars = $('.search-results-calendar-suggestions--view-more');\n const $searchChangeDatesButton = $('.search-update-dates');\n\n if ($propertyBookItNowButton.length) {\n $propertyBookItNowButton.on('click', function() {\n ga('lrTracker.send', 'event', 'Property', 'click', 'Book It Now Button');\n });\n }\n\n if ($propertySidebarContactManagerButton.length) {\n $propertySidebarContactManagerButton.on('click', function() {\n ga('lrTracker.send', 'event', 'Property', 'click', 'Sidebar Contact Manager Button');\n });\n }\n\n if ($propertySendToFriendLink.length) {\n $propertySendToFriendLink.on('click', function() {\n ga('lrTracker.send', 'event', 'Property', 'click', 'Send to Friend Link');\n });\n }\n\n if ($propertyCommunityLearnMoreLink.length) {\n $propertyCommunityLearnMoreLink.on('click', function() {\n ga('lrTracker.send', 'event', 'Property', 'click', 'Community Learn More Link');\n });\n }\n\n if ($propertyChangeDatesLink.length) {\n $propertyChangeDatesLink.on('click', function() {\n ga('lrTracker.send', 'event', 'Property', 'click', 'Change Dates Link');\n });\n }\n\n if ($propertyReviewWidgetReviewsAnchor.length) {\n $propertyReviewWidgetReviewsAnchor.on('click', function() {\n ga('lrTracker.send', 'event', 'Property', 'click', 'Reviews Widget Review Anchor');\n });\n }\n\n if ($propertyAllPhotosButton.length) {\n $propertyAllPhotosButton.on('click', function() {\n ga('lrTracker.send', 'event', 'Property', 'click', 'All Photos Button');\n });\n }\n\n if ($propertyFullScreen.length) {\n $propertyFullScreen.on('click', function() {\n ga('lrTracker.send', 'event', 'Property', 'click', 'Slideshow Fullscreen Button');\n });\n }\n\n if ($searchComparePropertiesButton.length) {\n $searchComparePropertiesButton.on('click', function() {\n ga('lrTracker.send', 'event', 'Search', 'click', 'Compare Properties Button');\n });\n }\n\n if ($searchViewMoreCalendars.length) {\n $searchViewMoreCalendars.on('click', function() {\n ga('lrTracker.send', 'event', 'Search', 'click', 'View More Property Calendars button');\n });\n }\n\n if ($propertyShowAllAmenitiesExpand.length) {\n $propertyShowAllAmenitiesExpand.on('click', function() {\n ga('lrTracker.send', 'event', 'Property', 'click', 'Show All Amenities Expand Link');\n });\n }\n\n // search page\n if (page === 'vacation-rentals-homes-search.asp') {\n $searchComparePropertiesButton.on('click', function() {\n ga('lrTracker.send', 'event', 'Search', 'click', 'Compare Properties Button');\n });\n\n $searchViewMoreCalendars.on('click', function() {\n ga('lrTracker.send', 'event', 'Search', 'click', 'View More Property Calendars button');\n });\n\n $searchChangeDatesButton.on('click', function() {\n ga('lrTracker.send', 'event', 'Search', 'click', 'Change Dates button');\n });\n\n $(document).on('click', '.search-pagination a', function(e) {\n ga('lrTracker.send', 'event', 'Search', 'click', 'Paging Anchor', $(this).data('page'));\n });\n }\n }\n });\n } catch (error) {\n console.error(error);\n }\n})((window.LIVEREZ = window.LIVEREZ || {}), window, lrjQ);\n","if (!Array.prototype.filter) {\n Array.prototype.filter = function(fun /*, thisArg*/) {\n 'use strict';\n\n if (this === void 0 || this === null) {\n throw new TypeError();\n }\n\n var t = Object(this);\n var len = t.length >>> 0;\n if (typeof fun !== 'function') {\n throw new TypeError();\n }\n\n var res = [];\n var thisArg = arguments.length >= 2 ? arguments[1] : void 0;\n for (var i = 0; i < len; i++) {\n if (i in t) {\n var val = t[i];\n\n // NOTE: Technically this should Object.defineProperty at\n // the next index, as push can be affected by\n // properties on Object.prototype and Array.prototype.\n // But that method's new, and collisions should be\n // rare, so use the more-compatible alternative.\n if (fun.call(thisArg, val, i, t)) {\n res.push(val);\n }\n }\n }\n\n return res;\n };\n}\n\nif (!Array.prototype.forEach) {\n Array.prototype.forEach = function(callback, thisArg) {\n var T, k;\n\n if (this == null) {\n throw new TypeError(' this is null or not defined');\n }\n\n // 1. Let O be the result of calling ToObject passing the |this| value as the argument.\n var O = Object(this);\n\n // 2. Let lenValue be the result of calling the Get internal method of O with the argument \"length\".\n // 3. Let len be ToUint32(lenValue).\n var len = O.length >>> 0;\n\n // 4. If IsCallable(callback) is false, throw a TypeError exception.\n // See: http://es5.github.com/#x9.11\n if (typeof callback !== 'function') {\n throw new TypeError(callback + ' is not a function');\n }\n\n // 5. If thisArg was supplied, let T be thisArg; else let T be undefined.\n if (arguments.length > 1) {\n T = thisArg;\n }\n\n // 6. Let k be 0\n k = 0;\n\n // 7. Repeat, while k < len\n while (k < len) {\n var kValue;\n\n // a. Let Pk be ToString(k).\n // This is implicit for LHS operands of the in operator\n // b. Let kPresent be the result of calling the HasProperty internal method of O with argument Pk.\n // This step can be combined with c\n // c. If kPresent is true, then\n if (k in O) {\n // i. Let kValue be the result of calling the Get internal method of O with argument Pk.\n kValue = O[k];\n\n // ii. Call the Call internal method of callback with T as the this value and\n // argument list containing kValue, k, and O.\n callback.call(T, kValue, k, O);\n }\n // d. Increase k by 1.\n k++;\n }\n // 8. return undefined\n };\n}\n\nif (!Array.prototype.indexOf) {\n Array.prototype.indexOf = function(searchElement, fromIndex) {\n if (this === undefined || this === null) {\n throw new TypeError('\"this\" is null or not defined');\n }\n\n var length = this.length >>> 0; // Hack to convert object.length to a UInt32\n\n fromIndex = +fromIndex || 0;\n\n if (Math.abs(fromIndex) === Infinity) {\n fromIndex = 0;\n }\n\n if (fromIndex < 0) {\n fromIndex += length;\n if (fromIndex < 0) {\n fromIndex = 0;\n }\n }\n\n for (; fromIndex < length; fromIndex++) {\n if (this[fromIndex] === searchElement) {\n return fromIndex;\n }\n }\n\n return -1;\n };\n}\n\nif (!Function.prototype.bind) {\n Function.prototype.bind = function(oThis) {\n if (typeof this !== 'function') {\n // closest thing possible to the ECMAScript 5 internal IsCallable function\n throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable');\n }\n\n var aArgs = Array.prototype.slice.call(arguments, 1),\n fToBind = this,\n fNOP = function() {},\n fBound = function() {\n return fToBind.apply(\n this instanceof fNOP && oThis ? this : oThis,\n aArgs.concat(Array.prototype.slice.call(arguments))\n );\n };\n\n fNOP.prototype = this.prototype;\n fBound.prototype = new fNOP();\n\n return fBound;\n };\n}\n","/*\n * @author Joshua Hurst\n * @date 6/19/2015\n *\n * @description A Vanilla JS Wrapper for Local Storage\n */\n\n(function(LIVEREZ, window, $, undefined) {\n 'use strict';\n\n var LocalStorage = {};\n\n // test if local storage is supported\n LocalStorage.localStoreSupport = function() {\n try {\n localStorage.setItem('localstoragesupporttest', 1);\n localStorage.removeItem('localstoragesupporttest');\n return 'localStorage' in window && window['localStorage'];\n } catch (e) {\n return false;\n }\n };\n\n // save the data\n LocalStorage.set = function(key, value, days) {\n value = JSON.stringify(value);\n\n if (days) {\n var date = new Date();\n date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);\n var expires = '; expires=' + date.toGMTString();\n } else {\n var expires = '';\n }\n\n if (this.localStoreSupport()) {\n localStorage.setItem(key, value);\n } else {\n document.cookie = key + '=' + value + expires + '; path=/';\n }\n };\n\n // retrieve the stored data by key if it exists\n LocalStorage.get = function(key) {\n if (this.localStoreSupport()) {\n if (this.exists(key)) {\n return JSON.parse(localStorage.getItem(key));\n }\n } else {\n var nameEQ = key + '=';\n var ca = document.cookie.split(';');\n for (var i = 0; i < ca.length; i++) {\n var c = ca[i];\n while (c.charAt(0) == ' ') c = c.substring(1, c.length);\n if (c.indexOf(nameEQ) == 0) return JSON.parse(c.substring(nameEQ.length, c.length));\n }\n return null;\n }\n };\n\n // remove stored data by key if it exists\n LocalStorage.remove = function(key) {\n if (this.localStoreSupport()) {\n if (this.exists(key)) {\n localStorage.removeItem(key);\n }\n } else {\n this.set(key, '', -1);\n }\n };\n\n LocalStorage.exists = function(key) {\n return localStorage.getItem(key) !== null;\n };\n\n LIVEREZ.Storage = LocalStorage;\n})((window.LIVEREZ = window.LIVEREZ || {}), window, lrjQ);\n","/*\n * @author Joshua Hurst & Frank Linehan\n * @date 6/16/2015\n *\n * @description A Pub/Sub Pattern Module for Handling JS Events\n */\n\n(function(LIVEREZ, window, $, undefined) {\n var pubsub = {};\n var topics = {};\n\n // An topic identifier\n var subUid = -1;\n\n pubsub.publish = function(topic, args) {\n if (!topics[topic]) {\n return false;\n }\n\n var subscribers = topics[topic],\n len = subscribers ? subscribers.length : 0;\n\n while (len--) {\n subscribers[len].func(topic, args);\n }\n\n return this;\n };\n\n pubsub.subscribe = function(topic, func) {\n if (!topics[topic]) {\n topics[topic] = [];\n }\n\n var token = (++subUid).toString();\n topics[topic].push({\n token: token,\n func: func,\n });\n return token;\n };\n\n pubsub.unsubscribe = function(token) {\n for (var m in topics) {\n if (topics[m]) {\n for (var i = 0, j = topics[m].length; i < j; i++) {\n if (topics[m][i].token === token) {\n topics[m].splice(i, 1);\n return token;\n }\n }\n }\n }\n return this;\n };\n\n LIVEREZ.Publisher = pubsub;\n})((window.LIVEREZ = window.LIVEREZ || {}), window, lrjQ);\n","/* =========================================================\n * lr.typeahead.js\n * Repo: http://stash.liverez.com:7990/scm/bow/lr.typeahead.git\n * =========================================================\n * Authored by LIVEREZ.COM\n * Contributors: Joshua Hurst, Frank Linehan, Jeremy Lotz\n * ========================================================= */\n\n(function($, undefined) {\n 'use strict';\n\n var _timeout;\n\n var DEFAULTS = {\n timeoutLength: 500,\n dataSource: function(callback, query) {\n var _sendData = {\n q: encodeURIComponent(query),\n };\n\n $.ajax({\n type: 'GET',\n url: 'data/properties.json',\n data: _sendData,\n dataType: 'json',\n success: function(data) {\n callback(null, data);\n },\n error: function(data, status, error) {\n callback({\n data: data,\n status: status,\n error: error,\n });\n },\n });\n },\n onNewData: function(data) {\n console.log(data);\n },\n };\n\n // the actual plugin\n var Plugin = function(option) {\n return this.each(function() {\n var $this = $(this);\n var options = typeof option == 'object' && option;\n\n options = $.extend(DEFAULTS, options);\n\n new Typeahead($this, options);\n });\n };\n\n // the constructor\n var Typeahead = function(element, options) {\n var _this = this;\n\n this.element = element;\n this.options = options;\n this.init(this.element, this.options);\n };\n\n Typeahead.prototype.init = function(element, options) {\n var _this = this;\n\n var wrapperDiv = $('
')\n .css({\n position: 'relative',\n width: this.element.width() + 2,\n })\n .addClass('lr-typeahead-wrapper');\n\n var typeaheadDiv = $('
');\n\n typeaheadDiv\n .css({\n position: 'absolute',\n top: this.element.outerHeight(),\n left: '0',\n width: '100%',\n display: 'none',\n border: '1px solid #ccc',\n 'border-top': 'none',\n background: 'white',\n color: '#444',\n 'max-height': '50vh',\n 'overflow-y': 'scroll',\n })\n .html('Loading Data...')\n .addClass('lr-typeahead');\n\n this.element.wrap(wrapperDiv);\n this.element.after(typeaheadDiv);\n\n element.on('keydown', function() {\n _this.open('keydown', typeaheadDiv, _this.element);\n });\n\n element.on('keyup', function() {\n if (_this.element.val()) {\n if (_timeout) {\n clearTimeout(_timeout);\n }\n\n _timeout = setTimeout(function() {\n _this.getData('keyup', function(error, data) {\n if (error) {\n typeaheadDiv.html('No Results');\n } else {\n _this.insertTypeAheadData(typeaheadDiv, data);\n }\n });\n }, _this.options.timeoutLength);\n } else {\n _this.close('keyup', typeaheadDiv);\n }\n });\n };\n\n Typeahead.prototype.open = function(type, typeaheadelem, element) {\n var domTypeAheadElem = typeaheadelem.get(0);\n\n typeaheadelem.html('Loading Data...');\n\n if (domTypeAheadElem.style.display === 'none') {\n $('body').on('click', function(e) {\n if (!typeaheadelem.is(e.target) && typeaheadelem.has(e.target).length === 0) {\n domTypeAheadElem.style.display = 'none';\n element.val('');\n }\n $('body').off('click');\n });\n\n domTypeAheadElem.style.display = 'block';\n }\n };\n\n Typeahead.prototype.close = function(type, typeaheadelem) {\n var _this = this;\n\n var domTypeAheadElem = typeaheadelem.get(0);\n\n if (domTypeAheadElem.style.display === 'block') {\n domTypeAheadElem.style.display = 'none';\n }\n\n return this;\n };\n\n Typeahead.prototype.insertTypeAheadData = function(typeaheadelem, data) {\n var _this = this;\n\n typeaheadelem.empty();\n typeaheadelem.append(_this.options.onNewData(data));\n\n return this;\n };\n\n Typeahead.prototype.getData = function(type, callback) {\n var _this = this;\n _this.options.dataSource(callback, _this.element.val());\n\n return this;\n };\n\n var old = $.fn.lrtypeahead;\n\n $.fn.lrtypeahead = Plugin;\n $.fn.lrtypeahead.Constructor = Typeahead;\n})(lrjQ);\n","(function(LIVEREZ, window, $) {\n $(document).ready(function() {\n /****************** secondary search box desktop date pickers ******************/\n var nowTemp = new Date();\n var now = new Date(nowTemp.getFullYear(), nowTemp.getMonth(), nowTemp.getDate(), 0, 0, 0, 0);\n\n $('.datepicker-range')\n .datepicker({\n beforeShowDay: function(date) {\n return date.valueOf() < now.valueOf() ? 'disabled' : '';\n },\n format: dateFormat,\n autoclose: true,\n orientation: 'auto',\n })\n .on('changeDate', function(e) {\n if (e.target.id == 'txtStartDate') {\n var startDate = new Date(e.date);\n var newDate = new Date(e.date);\n newDate.setDate(newDate.getDate() + defaultSearchDepartureDays);\n $('#txtEndDate').datepicker('setDate', newDate);\n $('#txtEndDate').focus();\n\n $('#compareStartDate').val(\n startDate.getMonth() + 1 + '/' + startDate.getDate() + '/' + startDate.getFullYear()\n );\n }\n\n if (e.target.id == 'txtEndDate') {\n var newEndDate = new Date(e.date);\n $('#compareEndDate').val(\n newEndDate.getMonth() + 1 + '/' + newEndDate.getDate() + '/' + newEndDate.getFullYear()\n );\n }\n })\n .data('datepicker');\n\n /****************** end desktop date pickers ******************/\n\n /****************** calendar page date picker ******************/\n $('.lr-calendar-search-desktop-datepicker').datepicker({\n beforeShowDay: function(date) {\n return date.valueOf() < now.valueOf() ? 'disabled' : '';\n },\n format: dateFormat,\n autoclose: true,\n orientation: 'auto',\n });\n\n LIVEREZ.Publisher.subscribe('mobiscroll-loaded', function(message) {\n $('.lr-calendar-search-mobile-datepicker')\n .mobiscroll()\n .calendar({\n theme: 'bootstrap',\n display: 'modal',\n controls: ['calendar'],\n minDate: now,\n dateFormat: dateFormat,\n });\n\n $('.lr-calendar-search-mobile-datepicker').change(function() {\n $('.lr-calendar-search-desktop-datepicker').val(this.value);\n });\n });\n\n /****************** end calendar page date picker ******************/\n\n LIVEREZ.Publisher.subscribe('mobiscroll-loaded', function(message) {\n /****************** secondary search box mobile date pickers ******************/\n var mobileStartInst = $('#txtStartDate-mobile')\n .mobiscroll()\n .calendar({\n theme: 'bootstrap',\n display: 'modal',\n controls: ['calendar'],\n minDate: now,\n closeOnSelect: true,\n dateFormat: dateFormat,\n })\n .mobiscroll('getInst');\n\n var mobileEndInst = $('#txtEndDate-mobile')\n .mobiscroll()\n .calendar({\n theme: 'bootstrap',\n display: 'modal',\n controls: ['calendar'],\n minDate: now,\n closeOnSelect: true,\n dateFormat: dateFormat,\n })\n .mobiscroll('getInst');\n\n $('#txtStartDate-mobile').change(function() {\n $('#txtStartDate').val(this.value);\n $('#compareStartDate').val(this.value);\n\n var startDateStr = LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI(\n $('#txtStartDate-mobile').val(),\n dateFormatType\n );\n var startDate = new Date(startDateStr);\n var endDateStr = LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI(\n $('#txtEndDate-mobile').val(),\n dateFormatType\n );\n var endDate = new Date(endDateStr);\n\n //console.log('startDateStr', startDateStr);\n //console.log('endDateStr', endDateStr);\n //console.log('startDate', startDate);\n //console.log('endDate', endDate);\n\n var diff = startDate - endDate;\n var days = diff / 1000 / 60 / 60 / 24;\n\n //console.log('diff', diff);\n //console.log('days', days);\n\n var newEnd = new Date(startDate);\n newEnd.setDate(startDate.getDate() + defaultSearchDepartureDays);\n //console.log('newEnd', newEnd);\n var newEndStr = LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI(\n LIVEREZ.DynsiteFunctions.DateShort(newEnd),\n dateFormatType\n );\n //console.log('newEndStr', newEndStr);\n\n if (startDate > endDate) {\n mobileEndInst.setDate(newEnd);\n $('#txtEndDate-mobile').val(newEndStr);\n $('#txtEndDate').val(newEndStr);\n $('#compareEndDate').val(newEndStr);\n }\n });\n\n $('#txtEndDate-mobile').change(function() {\n $('#txtEndDate').val(this.value);\n $('#compareEndDate').val(this.value);\n });\n });\n\n // lazy load echo images\n echo.init({\n throttle: 50,\n offsetVertical: 750,\n });\n\n if ($('.index-features-carousel').length) {\n $('.index-features-carousel').on('slid.bs.carousel', function(e) {\n echo.init();\n });\n }\n\n if ($('.alternative-properties-carousel').length) {\n $('.alternative-properties-carousel').on('slid.bs.carousel', function(e) {\n echo.init();\n });\n }\n\n // only load mobiscroll if mobile to because its not neccesary on desktop\n if (LIVEREZ.DynsiteFunctions.isMobileDevice()) {\n $.getScript(CDN_BASE_URL + '/3/common/js/mobiscroll.custom-2.10.1.min.js', function() {\n $('head').append(\n $('').attr(\n 'href',\n CDN_BASE_URL + '/3/common/css/mobiscroll.custom-2.10.1.min.css'\n )\n );\n LIVEREZ.Publisher.publish('mobiscroll-loaded', 'ready');\n });\n }\n\n $('.popover-icon').popover({\n placement: 'top',\n trigger: 'hover',\n });\n\n if ($('.lr-typeahead').length) {\n var myOptions = {\n timeoutLength: 600,\n dataSource: function(callback, query) {\n $.ajax({\n type: 'GET',\n url: '/inc/api/webservices.aspx?method=propertysearch',\n data: {\n AdminCustDataID: ADMIN_CUST_DATA_ID,\n DynSiteID: DYN_SITE_ID,\n q: encodeURIComponent(query),\n },\n dataType: 'json',\n success: function(data) {\n callback(null, data);\n },\n error: function(data, status, error) {\n console({\n data: data,\n status: status,\n error: error,\n });\n callback(null, []);\n },\n });\n },\n onNewData: function(data, element) {\n if (data.length) {\n var retHtml = '';\n for (var i = 0; i < data.length; i++) {\n retHtml +=\n '';\n }\n return retHtml;\n } else {\n return '';\n }\n },\n };\n\n $('.lr-typeahead').lrtypeahead(myOptions);\n }\n });\n})((window.LIVEREZ = window.LIVEREZ || {}), window, lrjQ);\n","(function(LIVEREZ, window, $, undefined) {\n 'use strict';\n\n var DAYS_OF_WEEK = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];\n\n var PropertyDateRanges = {};\n\n PropertyDateRanges.getByPageDataID = function(pageDataId, callback) {\n LIVEREZ.Publisher.publish(LIVEREZ.events.propertyDateRangeStart);\n\n $.ajax({\n type: 'get',\n url: LIVEREZ.DynsiteFunctions.getServerName() + '/inc/api/webservices.aspx?method=dateranges',\n data: {\n AdminCustDataID: ADMIN_CUST_DATA_ID,\n DynSiteID: DYN_SITE_ID,\n PageDataID: pageDataId,\n },\n dataType: 'json',\n success: function(data) {\n // publish the data to all subscribers\n LIVEREZ.Publisher.publish(LIVEREZ.events.propertyDateRangeComplete);\n LIVEREZ.Publisher.publish(LIVEREZ.events.propertyDateRangeSuccess, data);\n callback(null, data);\n },\n error: function(data, status, error) {\n LIVEREZ.Publisher.publish(LIVEREZ.events.propertyDateRangeComplete);\n\n if (error !== 'abort') {\n LIVEREZ.Publisher.publish(LIVEREZ.events.propertyDateRangeError, error);\n callback(error);\n } else {\n var fakeData = { dateRanges: [] };\n LIVEREZ.Publisher.publish(LIVEREZ.events.propertyDateRangeSuccess, fakeData);\n callback(null, fakeData);\n }\n },\n });\n };\n\n PropertyDateRanges.buildDateRangeTable = function(preferences, dateRanges) {\n var container = $('
').addClass('table-responsive');\n var table = $(' ').addClass('table table-striped responsive-rate-table');\n var tableBody = $('\t');\n\n table.append(tableBody);\n\n tableBody.append(_buildHeaderRow(preferences));\n\n dateRanges.forEach(function(dateRange, i) {\n table.append(_buildDateRangeRow(preferences, dateRange, i));\n });\n\n container.append(table);\n\n return container;\n };\n\n var _buildHeaderRow = function(preferences) {\n var row = $('');\n\n row.append(\n $('').addClass('property-date-range-row');\n\n var isRowEven = _isEven(index);\n row.addClass(isRowEven ? 'property-rate-tr-wt' : 'property-rate-tr-gr');\n row.addClass(dateRange.available ? 'available' : 'unavailable');\n\n row.append($('';\n if (this.o.calendarWeeks) {\n html += '';\n }\n while (dowCnt < this.o.weekStart + 7) {\n html += '';\n this.picker.find('.datepicker-days thead').append(html);\n }\n },\n\n fillMonths: function() {\n var localDate = this._utc_to_local(this.viewDate);\n var html = '';\n var focused;\n for (var i = 0; i < 12; i++) {\n focused = localDate && localDate.getMonth() === i ? ' focused' : '';\n html +=\n '' + dates[this.o.language].monthsShort[i] + '';\n }\n this.picker.find('.datepicker-months td').html(html);\n },\n\n setRange: function(range) {\n if (!range || !range.length) delete this.range;\n else\n this.range = $.map(range, function(d) {\n return d.valueOf();\n });\n this.fill();\n },\n\n getClassNames: function(date) {\n var cls = [],\n year = this.viewDate.getUTCFullYear(),\n month = this.viewDate.getUTCMonth(),\n today = UTCToday();\n if (\n date.getUTCFullYear() < year ||\n (date.getUTCFullYear() === year && date.getUTCMonth() < month)\n ) {\n cls.push('old');\n } else if (\n date.getUTCFullYear() > year ||\n (date.getUTCFullYear() === year && date.getUTCMonth() > month)\n ) {\n cls.push('new');\n }\n if (this.focusDate && date.valueOf() === this.focusDate.valueOf()) cls.push('focused');\n // Compare internal UTC date with UTC today, not local today\n if (this.o.todayHighlight && isUTCEquals(date, today)) {\n cls.push('today');\n }\n if (this.dates.contains(date) !== -1) cls.push('active');\n if (!this.dateWithinRange(date)) {\n cls.push('disabled');\n }\n if (this.dateIsDisabled(date)) {\n cls.push('disabled', 'disabled-date');\n }\n if ($.inArray(date.getUTCDay(), this.o.daysOfWeekHighlighted) !== -1) {\n cls.push('highlighted');\n }\n\n if (this.range) {\n if (date > this.range[0] && date < this.range[this.range.length - 1]) {\n cls.push('range');\n }\n if ($.inArray(date.valueOf(), this.range) !== -1) {\n cls.push('selected');\n }\n if (date.valueOf() === this.range[0]) {\n cls.push('range-start');\n }\n if (date.valueOf() === this.range[this.range.length - 1]) {\n cls.push('range-end');\n }\n }\n return cls;\n },\n\n _fill_yearsView: function(selector, cssClass, factor, year, startYear, endYear, beforeFn) {\n var html = '';\n var step = factor / 10;\n var view = this.picker.find(selector);\n var startVal = Math.floor(year / factor) * factor;\n var endVal = startVal + step * 9;\n var focusedVal = Math.floor(this.viewDate.getFullYear() / step) * step;\n var selected = $.map(this.dates, function(d) {\n return Math.floor(d.getUTCFullYear() / step) * step;\n });\n\n var classes, tooltip, before;\n for (var currVal = startVal - step; currVal <= endVal + step; currVal += step) {\n classes = [cssClass];\n tooltip = null;\n\n if (currVal === startVal - step) {\n classes.push('old');\n } else if (currVal === endVal + step) {\n classes.push('new');\n }\n if ($.inArray(currVal, selected) !== -1) {\n classes.push('active');\n }\n if (currVal < startYear || currVal > endYear) {\n classes.push('disabled');\n }\n if (currVal === focusedVal) {\n classes.push('focused');\n }\n\n if (beforeFn !== $.noop) {\n before = beforeFn(new Date(currVal, 0, 1));\n if (before === undefined) {\n before = {};\n } else if (typeof before === 'boolean') {\n before = { enabled: before };\n } else if (typeof before === 'string') {\n before = { classes: before };\n }\n if (before.enabled === false) {\n classes.push('disabled');\n }\n if (before.classes) {\n classes = classes.concat(before.classes.split(/\\s+/));\n }\n if (before.tooltip) {\n tooltip = before.tooltip;\n }\n }\n\n html +=\n '' +\n currVal +\n '';\n }\n\n view.find('.datepicker-switch').text(startVal + '-' + endVal);\n view.find('td').html(html);\n },\n\n fill: function() {\n var d = new Date(this.viewDate),\n year = d.getUTCFullYear(),\n month = d.getUTCMonth(),\n startYear = this.o.startDate !== -Infinity ? this.o.startDate.getUTCFullYear() : -Infinity,\n startMonth = this.o.startDate !== -Infinity ? this.o.startDate.getUTCMonth() : -Infinity,\n endYear = this.o.endDate !== Infinity ? this.o.endDate.getUTCFullYear() : Infinity,\n endMonth = this.o.endDate !== Infinity ? this.o.endDate.getUTCMonth() : Infinity,\n todaytxt = dates[this.o.language].today || dates['en'].today || '',\n cleartxt = dates[this.o.language].clear || dates['en'].clear || '',\n titleFormat = dates[this.o.language].titleFormat || dates['en'].titleFormat,\n tooltip,\n before;\n if (isNaN(year) || isNaN(month)) return;\n this.picker\n .find('.datepicker-days .datepicker-switch')\n .text(DPGlobal.formatDate(d, titleFormat, this.o.language));\n this.picker\n .find('tfoot .today')\n .text(todaytxt)\n .css(\n 'display',\n this.o.todayBtn === true || this.o.todayBtn === 'linked' ? 'table-cell' : 'none'\n );\n this.picker\n .find('tfoot .clear')\n .text(cleartxt)\n .css('display', this.o.clearBtn === true ? 'table-cell' : 'none');\n this.picker\n .find('thead .datepicker-title')\n .text(this.o.title)\n .css(\n 'display',\n typeof this.o.title === 'string' && this.o.title !== '' ? 'table-cell' : 'none'\n );\n this.updateNavArrows();\n this.fillMonths();\n var prevMonth = UTCDate(year, month, 0),\n day = prevMonth.getUTCDate();\n prevMonth.setUTCDate(day - ((prevMonth.getUTCDay() - this.o.weekStart + 7) % 7));\n var nextMonth = new Date(prevMonth);\n if (prevMonth.getUTCFullYear() < 100) {\n nextMonth.setUTCFullYear(prevMonth.getUTCFullYear());\n }\n nextMonth.setUTCDate(nextMonth.getUTCDate() + 42);\n nextMonth = nextMonth.valueOf();\n var html = [];\n var weekDay, clsName;\n while (prevMonth.valueOf() < nextMonth) {\n weekDay = prevMonth.getUTCDay();\n if (weekDay === this.o.weekStart) {\n html.push('');\n if (this.o.calendarWeeks) {\n // ISO 8601: First week contains first thursday.\n // ISO also states week starts on Monday, but we can be more abstract here.\n var // Start of current week: based on weekstart/current date\n ws = new Date(+prevMonth + ((this.o.weekStart - weekDay - 7) % 7) * 864e5),\n // Thursday of this week\n th = new Date(Number(ws) + ((7 + 4 - ws.getUTCDay()) % 7) * 864e5),\n // First Thursday of year, year from thursday\n yth = new Date(\n Number((yth = UTCDate(th.getUTCFullYear(), 0, 1))) +\n ((7 + 4 - yth.getUTCDay()) % 7) * 864e5\n ),\n // Calendar week: ms between thursdays, div ms per day, div 7 days\n calWeek = (th - yth) / 864e5 / 7 + 1;\n html.push('');\n }\n }\n clsName = this.getClassNames(prevMonth);\n clsName.push('day');\n\n var content = prevMonth.getUTCDate();\n\n if (this.o.beforeShowDay !== $.noop) {\n before = this.o.beforeShowDay(this._utc_to_local(prevMonth));\n if (before === undefined) before = {};\n else if (typeof before === 'boolean') before = { enabled: before };\n else if (typeof before === 'string') before = { classes: before };\n if (before.enabled === false) clsName.push('disabled');\n if (before.classes) clsName = clsName.concat(before.classes.split(/\\s+/));\n if (before.tooltip) tooltip = before.tooltip;\n if (before.content) content = before.content;\n }\n\n //Check if uniqueSort exists (supported by jquery >=1.12 and >=2.2)\n //Fallback to unique function for older jquery versions\n if ($.isFunction($.uniqueSort)) {\n clsName = $.uniqueSort(clsName);\n } else {\n clsName = $.unique(clsName);\n }\n\n html.push(\n ''\n );\n tooltip = null;\n if (weekDay === this.o.weekEnd) {\n html.push('');\n }\n prevMonth.setUTCDate(prevMonth.getUTCDate() + 1);\n }\n this.picker.find('.datepicker-days tbody').html(html.join(''));\n\n var monthsTitle = dates[this.o.language].monthsTitle || dates['en'].monthsTitle || 'Months';\n var months = this.picker\n .find('.datepicker-months')\n .find('.datepicker-switch')\n .text(this.o.maxViewMode < 2 ? monthsTitle : year)\n .end()\n .find('tbody span')\n .removeClass('active');\n\n $.each(this.dates, function(i, d) {\n if (d.getUTCFullYear() === year) months.eq(d.getUTCMonth()).addClass('active');\n });\n\n if (year < startYear || year > endYear) {\n months.addClass('disabled');\n }\n if (year === startYear) {\n months.slice(0, startMonth).addClass('disabled');\n }\n if (year === endYear) {\n months.slice(endMonth + 1).addClass('disabled');\n }\n\n if (this.o.beforeShowMonth !== $.noop) {\n var that = this;\n $.each(months, function(i, month) {\n var moDate = new Date(year, i, 1);\n var before = that.o.beforeShowMonth(moDate);\n if (before === undefined) before = {};\n else if (typeof before === 'boolean') before = { enabled: before };\n else if (typeof before === 'string') before = { classes: before };\n if (before.enabled === false && !$(month).hasClass('disabled'))\n $(month).addClass('disabled');\n if (before.classes) $(month).addClass(before.classes);\n if (before.tooltip) $(month).prop('title', before.tooltip);\n });\n }\n\n // Generating decade/years picker\n this._fill_yearsView(\n '.datepicker-years',\n 'year',\n 10,\n year,\n startYear,\n endYear,\n this.o.beforeShowYear\n );\n\n // Generating century/decades picker\n this._fill_yearsView(\n '.datepicker-decades',\n 'decade',\n 100,\n year,\n startYear,\n endYear,\n this.o.beforeShowDecade\n );\n\n // Generating millennium/centuries picker\n this._fill_yearsView(\n '.datepicker-centuries',\n 'century',\n 1000,\n year,\n startYear,\n endYear,\n this.o.beforeShowCentury\n );\n },\n\n updateNavArrows: function() {\n if (!this._allow_update) return;\n\n var d = new Date(this.viewDate),\n year = d.getUTCFullYear(),\n month = d.getUTCMonth(),\n startYear = this.o.startDate !== -Infinity ? this.o.startDate.getUTCFullYear() : -Infinity,\n startMonth = this.o.startDate !== -Infinity ? this.o.startDate.getUTCMonth() : -Infinity,\n endYear = this.o.endDate !== Infinity ? this.o.endDate.getUTCFullYear() : Infinity,\n endMonth = this.o.endDate !== Infinity ? this.o.endDate.getUTCMonth() : Infinity,\n prevIsDisabled,\n nextIsDisabled,\n factor = 1;\n switch (this.viewMode) {\n case 0:\n prevIsDisabled = year <= startYear && month <= startMonth;\n nextIsDisabled = year >= endYear && month >= endMonth;\n break;\n case 4:\n factor *= 10;\n /* falls through */\n case 3:\n factor *= 10;\n /* falls through */\n case 2:\n factor *= 10;\n /* falls through */\n case 1:\n prevIsDisabled = Math.floor(year / factor) * factor <= startYear;\n nextIsDisabled = Math.floor(year / factor) * factor + factor >= endYear;\n break;\n }\n\n this.picker.find('.prev').toggleClass('disabled', prevIsDisabled);\n this.picker.find('.next').toggleClass('disabled', nextIsDisabled);\n },\n\n click: function(e) {\n e.preventDefault();\n e.stopPropagation();\n\n var target, dir, day, year, month;\n target = $(e.target);\n\n // Clicked on the switch\n if (target.hasClass('datepicker-switch') && this.viewMode !== this.o.maxViewMode) {\n this.setViewMode(this.viewMode + 1);\n }\n\n // Clicked on today button\n if (target.hasClass('today') && !target.hasClass('day')) {\n this.setViewMode(0);\n this._setDate(UTCToday(), this.o.todayBtn === 'linked' ? null : 'view');\n }\n\n // Clicked on clear button\n if (target.hasClass('clear')) {\n this.clearDates();\n }\n\n if (!target.hasClass('disabled')) {\n // Clicked on a month, year, decade, century\n if (\n target.hasClass('month') ||\n target.hasClass('year') ||\n target.hasClass('decade') ||\n target.hasClass('century')\n ) {\n this.viewDate.setUTCDate(1);\n\n day = 1;\n if (this.viewMode === 1) {\n month = target\n .parent()\n .find('span')\n .index(target);\n year = this.viewDate.getUTCFullYear();\n this.viewDate.setUTCMonth(month);\n } else {\n month = 0;\n year = Number(target.text());\n this.viewDate.setUTCFullYear(year);\n }\n\n this._trigger(DPGlobal.viewModes[this.viewMode - 1].e, this.viewDate);\n\n if (this.viewMode === this.o.minViewMode) {\n this._setDate(UTCDate(year, month, day));\n } else {\n this.setViewMode(this.viewMode - 1);\n this.fill();\n }\n }\n }\n\n if (this.picker.is(':visible') && this._focused_from) {\n this._focused_from.focus();\n }\n delete this._focused_from;\n },\n\n dayCellClick: function(e) {\n var $target = $(e.currentTarget);\n var timestamp = $target.data('date');\n var date = new Date(timestamp);\n\n if (this.o.updateViewDate) {\n if (date.getUTCFullYear() !== this.viewDate.getUTCFullYear()) {\n this._trigger('changeYear', this.viewDate);\n }\n\n if (date.getUTCMonth() !== this.viewDate.getUTCMonth()) {\n this._trigger('changeMonth', this.viewDate);\n }\n }\n this._setDate(date);\n },\n\n // Clicked on prev or next\n navArrowsClick: function(e) {\n var $target = $(e.currentTarget);\n var dir = $target.hasClass('prev') ? -1 : 1;\n if (this.viewMode !== 0) {\n dir *= DPGlobal.viewModes[this.viewMode].navStep * 12;\n }\n this.viewDate = this.moveMonth(this.viewDate, dir);\n this._trigger(DPGlobal.viewModes[this.viewMode].e, this.viewDate);\n this.fill();\n },\n\n _toggle_multidate: function(date) {\n var ix = this.dates.contains(date);\n if (!date) {\n this.dates.clear();\n }\n\n if (ix !== -1) {\n if (this.o.multidate === true || this.o.multidate > 1 || this.o.toggleActive) {\n this.dates.remove(ix);\n }\n } else if (this.o.multidate === false) {\n this.dates.clear();\n this.dates.push(date);\n } else {\n this.dates.push(date);\n }\n\n if (typeof this.o.multidate === 'number')\n while (this.dates.length > this.o.multidate) this.dates.remove(0);\n },\n\n _setDate: function(date, which) {\n if (!which || which === 'date') this._toggle_multidate(date && new Date(date));\n if ((!which && this.o.updateViewDate) || which === 'view')\n this.viewDate = date && new Date(date);\n\n this.fill();\n this.setValue();\n if (!which || which !== 'view') {\n this._trigger('changeDate');\n }\n this.inputField.trigger('change');\n if (this.o.autoclose && (!which || which === 'date')) {\n this.hide();\n }\n },\n\n moveDay: function(date, dir) {\n var newDate = new Date(date);\n newDate.setUTCDate(date.getUTCDate() + dir);\n\n return newDate;\n },\n\n moveWeek: function(date, dir) {\n return this.moveDay(date, dir * 7);\n },\n\n moveMonth: function(date, dir) {\n if (!isValidDate(date)) return this.o.defaultViewDate;\n if (!dir) return date;\n var new_date = new Date(date.valueOf()),\n day = new_date.getUTCDate(),\n month = new_date.getUTCMonth(),\n mag = Math.abs(dir),\n new_month,\n test;\n dir = dir > 0 ? 1 : -1;\n if (mag === 1) {\n test =\n dir === -1\n ? // If going back one month, make sure month is not current month\n // (eg, Mar 31 -> Feb 31 == Feb 28, not Mar 02)\n function() {\n return new_date.getUTCMonth() === month;\n }\n : // If going forward one month, make sure month is as expected\n // (eg, Jan 31 -> Feb 31 == Feb 28, not Mar 02)\n function() {\n return new_date.getUTCMonth() !== new_month;\n };\n new_month = month + dir;\n new_date.setUTCMonth(new_month);\n // Dec -> Jan (12) or Jan -> Dec (-1) -- limit expected date to 0-11\n new_month = (new_month + 12) % 12;\n } else {\n // For magnitudes >1, move one month at a time...\n for (var i = 0; i < mag; i++)\n // ...which might decrease the day (eg, Jan 31 to Feb 28, etc)...\n new_date = this.moveMonth(new_date, dir);\n // ...then reset the day, keeping it in the new month\n new_month = new_date.getUTCMonth();\n new_date.setUTCDate(day);\n test = function() {\n return new_month !== new_date.getUTCMonth();\n };\n }\n // Common date-resetting loop -- if date is beyond end of month, make it\n // end of month\n while (test()) {\n new_date.setUTCDate(--day);\n new_date.setUTCMonth(new_month);\n }\n return new_date;\n },\n\n moveYear: function(date, dir) {\n return this.moveMonth(date, dir * 12);\n },\n\n moveAvailableDate: function(date, dir, fn) {\n do {\n date = this[fn](date, dir);\n\n if (!this.dateWithinRange(date)) return false;\n\n fn = 'moveDay';\n } while (this.dateIsDisabled(date));\n\n return date;\n },\n\n weekOfDateIsDisabled: function(date) {\n return $.inArray(date.getUTCDay(), this.o.daysOfWeekDisabled) !== -1;\n },\n\n dateIsDisabled: function(date) {\n return (\n this.weekOfDateIsDisabled(date) ||\n $.grep(this.o.datesDisabled, function(d) {\n return isUTCEquals(date, d);\n }).length > 0\n );\n },\n\n dateWithinRange: function(date) {\n return date >= this.o.startDate && date <= this.o.endDate;\n },\n\n keydown: function(e) {\n if (!this.picker.is(':visible')) {\n if (e.keyCode === 40 || e.keyCode === 27) {\n // allow down to re-show picker\n this.show();\n e.stopPropagation();\n }\n return;\n }\n var dateChanged = false,\n dir,\n newViewDate,\n focusDate = this.focusDate || this.viewDate;\n switch (e.keyCode) {\n case 27: // escape\n if (this.focusDate) {\n this.focusDate = null;\n this.viewDate = this.dates.get(-1) || this.viewDate;\n this.fill();\n } else this.hide();\n e.preventDefault();\n e.stopPropagation();\n break;\n case 37: // left\n case 38: // up\n case 39: // right\n case 40: // down\n if (!this.o.keyboardNavigation || this.o.daysOfWeekDisabled.length === 7) break;\n dir = e.keyCode === 37 || e.keyCode === 38 ? -1 : 1;\n if (this.viewMode === 0) {\n if (e.ctrlKey) {\n newViewDate = this.moveAvailableDate(focusDate, dir, 'moveYear');\n\n if (newViewDate) this._trigger('changeYear', this.viewDate);\n } else if (e.shiftKey) {\n newViewDate = this.moveAvailableDate(focusDate, dir, 'moveMonth');\n\n if (newViewDate) this._trigger('changeMonth', this.viewDate);\n } else if (e.keyCode === 37 || e.keyCode === 39) {\n newViewDate = this.moveAvailableDate(focusDate, dir, 'moveDay');\n } else if (!this.weekOfDateIsDisabled(focusDate)) {\n newViewDate = this.moveAvailableDate(focusDate, dir, 'moveWeek');\n }\n } else if (this.viewMode === 1) {\n if (e.keyCode === 38 || e.keyCode === 40) {\n dir = dir * 4;\n }\n newViewDate = this.moveAvailableDate(focusDate, dir, 'moveMonth');\n } else if (this.viewMode === 2) {\n if (e.keyCode === 38 || e.keyCode === 40) {\n dir = dir * 4;\n }\n newViewDate = this.moveAvailableDate(focusDate, dir, 'moveYear');\n }\n if (newViewDate) {\n this.focusDate = this.viewDate = newViewDate;\n this.setValue();\n this.fill();\n e.preventDefault();\n }\n break;\n case 13: // enter\n if (!this.o.forceParse) break;\n focusDate = this.focusDate || this.dates.get(-1) || this.viewDate;\n if (this.o.keyboardNavigation) {\n this._toggle_multidate(focusDate);\n dateChanged = true;\n }\n this.focusDate = null;\n this.viewDate = this.dates.get(-1) || this.viewDate;\n this.setValue();\n this.fill();\n if (this.picker.is(':visible')) {\n e.preventDefault();\n e.stopPropagation();\n if (this.o.autoclose) this.hide();\n }\n break;\n case 9: // tab\n this.focusDate = null;\n this.viewDate = this.dates.get(-1) || this.viewDate;\n this.fill();\n this.hide();\n break;\n }\n if (dateChanged) {\n if (this.dates.length) this._trigger('changeDate');\n else this._trigger('clearDate');\n this.inputField.trigger('change');\n }\n },\n\n setViewMode: function(viewMode) {\n this.viewMode = viewMode;\n this.picker\n .children('div')\n .hide()\n .filter('.datepicker-' + DPGlobal.viewModes[this.viewMode].clsName)\n .show();\n this.updateNavArrows();\n this._trigger('changeViewMode', new Date(this.viewDate));\n },\n };\n\n var DateRangePicker = function(element, options) {\n $.data(element, 'datepicker', this);\n this.element = $(element);\n this.inputs = $.map(options.inputs, function(i) {\n return i.jquery ? i[0] : i;\n });\n delete options.inputs;\n\n this.keepEmptyValues = options.keepEmptyValues;\n delete options.keepEmptyValues;\n\n datepickerPlugin\n .call($(this.inputs), options)\n .on('changeDate', $.proxy(this.dateUpdated, this));\n\n this.pickers = $.map(this.inputs, function(i) {\n return $.data(i, 'datepicker');\n });\n this.updateDates();\n };\n DateRangePicker.prototype = {\n updateDates: function() {\n this.dates = $.map(this.pickers, function(i) {\n return i.getUTCDate();\n });\n this.updateRanges();\n },\n updateRanges: function() {\n var range = $.map(this.dates, function(d) {\n return d.valueOf();\n });\n $.each(this.pickers, function(i, p) {\n p.setRange(range);\n });\n },\n dateUpdated: function(e) {\n // `this.updating` is a workaround for preventing infinite recursion\n // between `changeDate` triggering and `setUTCDate` calling. Until\n // there is a better mechanism.\n if (this.updating) return;\n this.updating = true;\n\n var dp = $.data(e.target, 'datepicker');\n\n if (dp === undefined) {\n return;\n }\n\n var new_date = dp.getUTCDate(),\n keep_empty_values = this.keepEmptyValues,\n i = $.inArray(e.target, this.inputs),\n j = i - 1,\n k = i + 1,\n l = this.inputs.length;\n if (i === -1) return;\n\n $.each(this.pickers, function(i, p) {\n if (!p.getUTCDate() && (p === dp || !keep_empty_values)) p.setUTCDate(new_date);\n });\n\n if (new_date < this.dates[j]) {\n // Date being moved earlier/left\n while (j >= 0 && new_date < this.dates[j]) {\n this.pickers[j--].setUTCDate(new_date);\n }\n } else if (new_date > this.dates[k]) {\n // Date being moved later/right\n while (k < l && new_date > this.dates[k]) {\n this.pickers[k++].setUTCDate(new_date);\n }\n }\n this.updateDates();\n\n delete this.updating;\n },\n destroy: function() {\n $.map(this.pickers, function(p) {\n p.destroy();\n });\n $(this.inputs).off('changeDate', this.dateUpdated);\n delete this.element.data().datepicker;\n },\n remove: alias(\n 'destroy',\n 'Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead'\n ),\n };\n\n function opts_from_el(el, prefix) {\n // Derive options from element data-attrs\n var data = $(el).data(),\n out = {},\n inkey,\n replace = new RegExp('^' + prefix.toLowerCase() + '([A-Z])');\n prefix = new RegExp('^' + prefix.toLowerCase());\n function re_lower(_, a) {\n return a.toLowerCase();\n }\n for (var key in data)\n if (prefix.test(key)) {\n inkey = key.replace(replace, re_lower);\n out[inkey] = data[key];\n }\n return out;\n }\n\n function opts_from_locale(lang) {\n // Derive options from locale plugins\n var out = {};\n // Check if \"de-DE\" style date is available, if not language should\n // fallback to 2 letter code eg \"de\"\n if (!dates[lang]) {\n lang = lang.split('-')[0];\n if (!dates[lang]) return;\n }\n var d = dates[lang];\n $.each(locale_opts, function(i, k) {\n if (k in d) out[k] = d[k];\n });\n return out;\n }\n\n var old = $.fn.datepicker;\n var datepickerPlugin = function(option) {\n var args = Array.apply(null, arguments);\n args.shift();\n var internal_return;\n this.each(function() {\n var $this = $(this),\n data = $this.data('datepicker'),\n options = typeof option === 'object' && option;\n if (!data) {\n var elopts = opts_from_el(this, 'date'),\n // Preliminary otions\n xopts = $.extend({}, defaults, elopts, options),\n locopts = opts_from_locale(xopts.language),\n // Options priority: js args, data-attrs, locales, defaults\n opts = $.extend({}, defaults, locopts, elopts, options);\n if ($this.hasClass('input-daterange') || opts.inputs) {\n $.extend(opts, {\n inputs: opts.inputs || $this.find('input').toArray(),\n });\n data = new DateRangePicker(this, opts);\n } else {\n data = new Datepicker(this, opts);\n }\n $this.data('datepicker', data);\n }\n if (typeof option === 'string' && typeof data[option] === 'function') {\n internal_return = data[option].apply(data, args);\n }\n });\n\n if (\n internal_return === undefined ||\n internal_return instanceof Datepicker ||\n internal_return instanceof DateRangePicker\n )\n return this;\n\n if (this.length > 1)\n throw new Error(\n 'Using only allowed for the collection of a single element (' + option + ' function)'\n );\n else return internal_return;\n };\n $.fn.datepicker = datepickerPlugin;\n\n var defaults = ($.fn.datepicker.defaults = {\n assumeNearbyYear: false,\n autoclose: false,\n beforeShowDay: $.noop,\n beforeShowMonth: $.noop,\n beforeShowYear: $.noop,\n beforeShowDecade: $.noop,\n beforeShowCentury: $.noop,\n calendarWeeks: false,\n clearBtn: false,\n toggleActive: false,\n daysOfWeekDisabled: [],\n daysOfWeekHighlighted: [],\n datesDisabled: [],\n endDate: Infinity,\n forceParse: true,\n format: 'mm/dd/yyyy',\n keepEmptyValues: false,\n keyboardNavigation: true,\n language: 'en',\n minViewMode: 0,\n maxViewMode: 4,\n multidate: false,\n multidateSeparator: ',',\n orientation: 'auto',\n rtl: false,\n startDate: -Infinity,\n startView: 0,\n todayBtn: false,\n todayHighlight: false,\n updateViewDate: true,\n weekStart: 0,\n disableTouchKeyboard: false,\n enableOnReadonly: true,\n showOnFocus: true,\n zIndexOffset: 10,\n container: 'body',\n immediateUpdates: false,\n title: '',\n templates: {\n leftArrow: '«',\n rightArrow: '»',\n },\n showWeekDays: true,\n });\n var locale_opts = ($.fn.datepicker.locale_opts = ['format', 'rtl', 'weekStart']);\n $.fn.datepicker.Constructor = Datepicker;\n var dates = ($.fn.datepicker.dates = {\n en: {\n days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n daysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n daysMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n months: [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December',\n ],\n monthsShort: [\n 'Jan',\n 'Feb',\n 'Mar',\n 'Apr',\n 'May',\n 'Jun',\n 'Jul',\n 'Aug',\n 'Sep',\n 'Oct',\n 'Nov',\n 'Dec',\n ],\n today: 'Today',\n clear: 'Clear',\n titleFormat: 'MM yyyy',\n },\n });\n\n var DPGlobal = {\n viewModes: [\n {\n names: ['days', 'month'],\n clsName: 'days',\n e: 'changeMonth',\n },\n {\n names: ['months', 'year'],\n clsName: 'months',\n e: 'changeYear',\n navStep: 1,\n },\n {\n names: ['years', 'decade'],\n clsName: 'years',\n e: 'changeDecade',\n navStep: 10,\n },\n {\n names: ['decades', 'century'],\n clsName: 'decades',\n e: 'changeCentury',\n navStep: 100,\n },\n {\n names: ['centuries', 'millennium'],\n clsName: 'centuries',\n e: 'changeMillennium',\n navStep: 1000,\n },\n ],\n validParts: /dd?|DD?|mm?|MM?|yy(?:yy)?/g,\n nonpunctuation: /[^ -\\/:-@\\u5e74\\u6708\\u65e5\\[-`{-~\\t\\n\\r]+/g,\n parseFormat: function(format) {\n if (typeof format.toValue === 'function' && typeof format.toDisplay === 'function')\n return format;\n // IE treats \\0 as a string end in inputs (truncating the value),\n // so it's a bad format delimiter, anyway\n var separators = format.replace(this.validParts, '\\0').split('\\0'),\n parts = format.match(this.validParts);\n if (!separators || !separators.length || !parts || parts.length === 0) {\n throw new Error('Invalid date format.');\n }\n return { separators: separators, parts: parts };\n },\n parseDate: function(date, format, language, assumeNearby) {\n if (!date) return undefined;\n if (date instanceof Date) return date;\n if (typeof format === 'string') format = DPGlobal.parseFormat(format);\n if (format.toValue) return format.toValue(date, format, language);\n var fn_map = {\n d: 'moveDay',\n m: 'moveMonth',\n w: 'moveWeek',\n y: 'moveYear',\n },\n dateAliases = {\n yesterday: '-1d',\n today: '+0d',\n tomorrow: '+1d',\n },\n parts,\n part,\n dir,\n i,\n fn;\n if (date in dateAliases) {\n date = dateAliases[date];\n }\n if (/^[\\-+]\\d+[dmwy]([\\s,]+[\\-+]\\d+[dmwy])*$/i.test(date)) {\n parts = date.match(/([\\-+]\\d+)([dmwy])/gi);\n date = new Date();\n for (i = 0; i < parts.length; i++) {\n part = parts[i].match(/([\\-+]\\d+)([dmwy])/i);\n dir = Number(part[1]);\n fn = fn_map[part[2].toLowerCase()];\n date = Datepicker.prototype[fn](date, dir);\n }\n return Datepicker.prototype._zero_utc_time(date);\n }\n\n parts = (date && date.match(this.nonpunctuation)) || [];\n\n function applyNearbyYear(year, threshold) {\n if (threshold === true) threshold = 10;\n\n // if year is 2 digits or less, than the user most likely is trying to get a recent century\n if (year < 100) {\n year += 2000;\n // if the new year is more than threshold years in advance, use last century\n if (year > new Date().getFullYear() + threshold) {\n year -= 100;\n }\n }\n\n return year;\n }\n\n var parsed = {},\n setters_order = ['yyyy', 'yy', 'M', 'MM', 'm', 'mm', 'd', 'dd'],\n setters_map = {\n yyyy: function(d, v) {\n return d.setUTCFullYear(assumeNearby ? applyNearbyYear(v, assumeNearby) : v);\n },\n m: function(d, v) {\n if (isNaN(d)) return d;\n v -= 1;\n while (v < 0) v += 12;\n v %= 12;\n d.setUTCMonth(v);\n while (d.getUTCMonth() !== v) d.setUTCDate(d.getUTCDate() - 1);\n return d;\n },\n d: function(d, v) {\n return d.setUTCDate(v);\n },\n },\n val,\n filtered;\n setters_map['yy'] = setters_map['yyyy'];\n setters_map['M'] = setters_map['MM'] = setters_map['mm'] = setters_map['m'];\n setters_map['dd'] = setters_map['d'];\n date = UTCToday();\n var fparts = format.parts.slice();\n // Remove noop parts\n if (parts.length !== fparts.length) {\n fparts = $(fparts)\n .filter(function(i, p) {\n return $.inArray(p, setters_order) !== -1;\n })\n .toArray();\n }\n // Process remainder\n function match_part() {\n var m = this.slice(0, parts[i].length),\n p = parts[i].slice(0, m.length);\n return m.toLowerCase() === p.toLowerCase();\n }\n if (parts.length === fparts.length) {\n var cnt;\n for (i = 0, cnt = fparts.length; i < cnt; i++) {\n val = parseInt(parts[i], 10);\n part = fparts[i];\n if (isNaN(val)) {\n switch (part) {\n case 'MM':\n filtered = $(dates[language].months).filter(match_part);\n val = $.inArray(filtered[0], dates[language].months) + 1;\n break;\n case 'M':\n filtered = $(dates[language].monthsShort).filter(match_part);\n val = $.inArray(filtered[0], dates[language].monthsShort) + 1;\n break;\n }\n }\n parsed[part] = val;\n }\n var _date, s;\n for (i = 0; i < setters_order.length; i++) {\n s = setters_order[i];\n if (s in parsed && !isNaN(parsed[s])) {\n _date = new Date(date);\n setters_map[s](_date, parsed[s]);\n if (!isNaN(_date)) date = _date;\n }\n }\n }\n return date;\n },\n formatDate: function(date, format, language) {\n if (!date) return '';\n if (typeof format === 'string') format = DPGlobal.parseFormat(format);\n if (format.toDisplay) return format.toDisplay(date, format, language);\n var val = {\n d: date.getUTCDate(),\n D: dates[language].daysShort[date.getUTCDay()],\n DD: dates[language].days[date.getUTCDay()],\n m: date.getUTCMonth() + 1,\n M: dates[language].monthsShort[date.getUTCMonth()],\n MM: dates[language].months[date.getUTCMonth()],\n yy: date\n .getUTCFullYear()\n .toString()\n .substring(2),\n yyyy: date.getUTCFullYear(),\n };\n val.dd = (val.d < 10 ? '0' : '') + val.d;\n val.mm = (val.m < 10 ? '0' : '') + val.m;\n date = [];\n var seps = $.extend([], format.separators);\n for (var i = 0, cnt = format.parts.length; i <= cnt; i++) {\n if (seps.length) date.push(seps.shift());\n date.push(val[format.parts[i]]);\n }\n return date.join('');\n },\n headTemplate:\n '' +\n '' +\n '' +\n '' +\n '' +\n '' +\n '' +\n '' +\n '' +\n '',\n contTemplate: '',\n footTemplate:\n '' +\n '' +\n '' +\n '' +\n '' +\n '' +\n '' +\n '',\n };\n DPGlobal.template =\n '
' +\n '
' +\n '
')\n .addClass('property-rate-titles')\n .html('Season')\n );\n row.append(\n $('')\n .addClass('property-rate-titles')\n .html('Start')\n );\n row.append(\n $('')\n .addClass('property-rate-titles')\n .html('End')\n );\n\n if (preferences.nightlyPricing) {\n if (preferences.pricingPerDayOfWeek) {\n row.append(\n $('')\n .addClass('property-rate-titles')\n .html('Sun')\n );\n row.append(\n $('')\n .addClass('property-rate-titles')\n .html('Mon')\n );\n row.append(\n $('')\n .addClass('property-rate-titles')\n .html('Tue')\n );\n row.append(\n $('')\n .addClass('property-rate-titles')\n .html('Wed')\n );\n row.append(\n $('')\n .addClass('property-rate-titles')\n .html('Thu')\n );\n row.append(\n $('')\n .addClass('property-rate-titles')\n .html('Fri')\n );\n row.append(\n $('')\n .addClass('property-rate-titles')\n .html('Sat')\n );\n } else {\n row.append(\n $('')\n .addClass('property-rate-titles property-rate-title-night')\n .html('Nightly')\n );\n }\n }\n\n if (preferences.weeklyPricing) {\n row.append(\n $('')\n .addClass('property-rate-titles property-rate-title-week')\n .html('Weekly')\n );\n }\n\n if (preferences.monthlyPricing) {\n row.append(\n $('')\n .addClass('property-rate-titles property-rate-title-month')\n .html('Monthly')\n );\n }\n\n if (preferences.showMinStayOnProperty) {\n row.append(\n $('')\n .addClass('property-rate-titles property-rate-title-min-night')\n .html('Min Nights')\n );\n }\n\n return row;\n };\n\n var _buildDateRangeRow = function(preferences, dateRange, index) {\n var row = $('
').html(dateRange.rangeTitle.trim()));\n row.append($('').html(dateRange.strDateRangeL));\n row.append($('').html(dateRange.strDateRangeU));\n\n var pricingColumns = 0;\n\n if (preferences.nightlyPricing) {\n if (preferences.pricingPerDayOfWeek) {\n if (dateRange.hasOwnProperty('available') && !dateRange.available) {\n pricingColumns += 7;\n } else if (dateRange.dateRangeType === 2) {\n // week to week\n row.append(\n $('')\n .attr('colspan', 7)\n .addClass('text-center')\n .html(_formatPricing(preferences, dateRange.weekly) + ' Per Week')\n );\n } else {\n row.append($('').html(_formatPricing(preferences, dateRange.sunPrice)));\n row.append($('').html(_formatPricing(preferences, dateRange.monPrice)));\n row.append($('').html(_formatPricing(preferences, dateRange.tuePrice)));\n row.append($('').html(_formatPricing(preferences, dateRange.wedPrice)));\n row.append($('').html(_formatPricing(preferences, dateRange.thuPrice)));\n row.append($('').html(_formatPricing(preferences, dateRange.friPrice)));\n row.append($('').html(_formatPricing(preferences, dateRange.satPrice)));\n }\n } else {\n if (dateRange.hasOwnProperty('available') && !dateRange.available) {\n pricingColumns += 1;\n } else if (dateRange.nightly && dateRange.dateRangeType !== 2) {\n // week to week\n var nightlyHTML = _formatPricing(preferences, dateRange.nightly);\n if (dateRange.startingAtNightly) {\n nightlyHTML =\n '
' +\n _formatPricing(preferences, dateRange.startingAtNightly) +\n '
' +\n nightlyHTML;\n }\n row.append(\n $('
')\n .addClass('property-rate-night')\n .html(nightlyHTML)\n );\n } else {\n row.append(\n $('')\n .addClass('property-rate-week-none')\n .html('-')\n );\n }\n }\n }\n\n if (preferences.weeklyPricing) {\n if (dateRange.hasOwnProperty('available') && !dateRange.available) {\n pricingColumns += 1;\n } else if (dateRange.weekly) {\n var weeklyHTML = _formatPricing(preferences, dateRange.weekly);\n if (dateRange.startingAtWeekly) {\n weeklyHTML =\n '
' +\n _formatPricing(preferences, dateRange.startingAtWeekly) +\n '
' +\n weeklyHTML;\n }\n row.append(\n $('
')\n .addClass('property-rate-week')\n .html(weeklyHTML)\n );\n } else {\n row.append(\n $('')\n .addClass('property-rate-week-none')\n .html('-')\n );\n }\n }\n\n if (preferences.monthlyPricing) {\n if (dateRange.hasOwnProperty('available') && !dateRange.available) {\n pricingColumns += 1;\n } else if (dateRange.monthly && dateRange.dateRangeType !== 2) {\n // week to week\n var monthlyHTML = _formatPricing(preferences, dateRange.monthly);\n if (dateRange.startingAtMonthly) {\n monthlyHTML =\n '
' +\n _formatPricing(preferences, dateRange.startingAtMonthly) +\n '
' +\n monthlyHTML;\n }\n row.append(\n $('
')\n .addClass('property-rate-month')\n .html(monthlyHTML)\n );\n } else {\n row.append(\n $('')\n .addClass('property-rate-week-none')\n .html('-')\n );\n }\n }\n\n if (preferences.showMinStayOnProperty) {\n if (dateRange.hasOwnProperty('available') && !dateRange.available) {\n pricingColumns += 1;\n } else {\n var cell = $('')\n .addClass('property-rate-min-night-days')\n .html(dateRange.minimumNightsStayWebBooking || dateRange.minimumNightsStay || '-');\n if (dateRange.dateRangeType === 2) {\n // week to week\n cell.append(\n ' (' +\n DAYS_OF_WEEK[dateRange.weekToWeekCheckinDay - 1] +\n ' - ' +\n DAYS_OF_WEEK[dateRange.weekToWeekCheckinDay - 1] +\n ')'\n );\n }\n row.append(cell);\n }\n }\n\n if (pricingColumns) {\n row.append(\n $('')\n .attr('colspan', pricingColumns)\n .addClass('text-left')\n .html('Reserved')\n );\n }\n\n return row;\n };\n\n var _formatPricing = function(preferences, price) {\n var newPrice = parseFloat(price).toFixed(2);\n return (\n preferences.currencySymbol + newPrice.replace('.00', '').replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',')\n );\n };\n\n var _isEven = function(n) {\n return n === 0 || !!(n && !(n % 2));\n };\n\n var _isOdd = function(n) {\n return _isEven(Number(n) + 1);\n };\n\n LIVEREZ.PropertyDateRanges = PropertyDateRanges;\n})((window.LIVEREZ = window.LIVEREZ || {}), window, lrjQ);\n","(function(LIVEREZ, window, $, undefined) {\n var InstantQuote = {};\n\n InstantQuote.getQuote = function(instantQuoteObj) {\n var _this = this;\n\n var _checkValidDates = LIVEREZ.DynsiteFunctions.checkValidStartEndDates(\n instantQuoteObj.StartDate,\n instantQuoteObj.EndDate\n );\n if (_checkValidDates) {\n _this.hideLoading();\n _this.setError(_checkValidDates);\n _this.showDates();\n _this.showButton('contact');\n return;\n }\n\n // if we already have an ajax request, abort it and use the new one\n if (_this.xhr) {\n _this.killAjax();\n }\n\n this.xhr = $.ajax({\n type: 'get',\n url:\n LIVEREZ.DynsiteFunctions.getServerName() + '/inc/api/webservices.aspx?method=instantquote',\n data: {\n AdminCustDataID: ADMIN_CUST_DATA_ID,\n DynSiteID: DYN_SITE_ID,\n PageDataID: instantQuoteObj.PageDataID,\n ad: instantQuoteObj.StartDate,\n dd: instantQuoteObj.EndDate,\n adults: instantQuoteObj.Adults,\n children: instantQuoteObj.Children,\n checkAvailable: true,\n LiveNetID: instantQuoteObj.LiveNetID || 0,\n },\n dataType: 'json',\n success: function(data) {\n // publish the data to all subscribers\n LIVEREZ.Publisher.publish(LIVEREZ.events.instantQuoteFinished, data);\n },\n error: function(data, status, error) {\n if (error !== 'abort') {\n _this.hideLoading();\n _this.setError(\n 'There was an issue with the quote. Please try new travel dates or try again later.'\n );\n _this.showDates();\n _this.showButton('contact');\n }\n },\n });\n };\n\n // subscribe to the instant quote finished event\n LIVEREZ.Publisher.subscribe(LIVEREZ.events.instantQuoteFinished, function(topic, data) {\n // reset\n $('.has-specials').addClass('hidden');\n $('.quote-fee-row').addClass('hidden');\n $('.discounted-rent').removeClass('on-sale');\n\n // property is available without errors\n if (!data.error && data.isAvailable === 1) {\n $('.property-instant-quote-nightly-rate-before-specials').text(\n cleanPrice(data.averageDailyRateBeforeSpecials)\n );\n $('.property-instant-quote-nightly-rate').text(cleanPrice(data.averageDailyRate));\n\n $('.property-instant-quote-num-nights').text(data.quantityDays);\n\n $('.property-instant-quote-fees').text(cleanPrice(data.fees));\n if (data.fees !== '0.00') {\n $('.quote-fee-row').removeClass('hidden');\n }\n\n $('.property-instant-quote-tax').text(cleanPrice(data.taxTotal));\n\n $('.property-instant-quote-rent').text(cleanPrice(data.rent));\n $('.property-instant-quote-rent-before-specials').text(cleanPrice(data.rentBeforeSpecials));\n\n $('.property-instant-quote-start-date').text(\n LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI(\n $('#property-instant-quote-start-date').val(),\n dateFormatType\n )\n );\n $('.property-instant-quote-end-date').text(\n LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI(\n $('#property-instant-quote-end-date').val(),\n dateFormatType\n )\n );\n\n $('.property-instant-quote-total-price').text(cleanPrice(data.total));\n\n $('.property-instant-quote-deposit-due').text(cleanPrice(data.deposit));\n\n if (data.hasSpecials) {\n $('.has-specials')\n .removeClass('hidden')\n .wrap('');\n $('.discounted-rent').addClass('on-sale');\n }\n\n LIVEREZ.InstantQuote.showPricing();\n\n if (OnlineBookings) {\n LIVEREZ.InstantQuote.showButton('book');\n } else {\n LIVEREZ.InstantQuote.showButton('contact');\n }\n\n $('.property-instant-quote-change-dates').removeClass('hidden');\n }\n // error or not available\n else {\n LIVEREZ.InstantQuote.showButton('contact');\n LIVEREZ.InstantQuote.setError(data.message.split('.').join('.
'));\n LIVEREZ.InstantQuote.showDates();\n }\n\n LIVEREZ.InstantQuote.showHeading(data.isAvailable);\n LIVEREZ.InstantQuote.hideLoading();\n });\n\n InstantQuote.killAjax = function(strError) {\n if (this.xhr.readystate != 4) {\n this.xhr.abort();\n this.xhr = null;\n }\n };\n\n InstantQuote.setError = function(strError) {\n $('.property-instant-quote-message')\n .html(strError)\n .removeClass('hidden');\n };\n\n InstantQuote.removeError = function(strButtonType) {\n $('.property-instant-quote-message')\n .empty()\n .addClass('hidden');\n };\n\n InstantQuote.showButton = function(strButtonType) {\n $('.property-instant-quote-action-button').addClass('hidden');\n if (strButtonType !== '') {\n $('.property-instant-quote-button-' + strButtonType).removeClass('hidden');\n }\n };\n\n InstantQuote.submitForm = function(strFormType) {\n $('#property-quote-form-' + strFormType).submit();\n };\n\n InstantQuote.showLoading = function() {\n $('.property-instant-quote-loading').removeClass('hidden');\n };\n\n InstantQuote.hideLoading = function() {\n $('.property-instant-quote-loading').addClass('hidden');\n };\n\n InstantQuote.showDates = function() {\n $('.property-instant-quote-dates').removeClass('hidden');\n };\n\n InstantQuote.hideDates = function() {\n $('.property-instant-quote-dates').addClass('hidden');\n };\n\n InstantQuote.showPricing = function() {\n $('.property-instant-quote-available').removeClass('hidden');\n };\n\n InstantQuote.hidePricing = function() {\n $('.property-instant-quote-available').addClass('hidden');\n $('.property-instant-quote-available').addClass('hidden');\n };\n\n InstantQuote.changeDates = function() {\n $('.property-instant-quote-change-dates').addClass('hidden');\n this.killAjax();\n this.showHeading(0);\n this.removeError();\n this.hideLoading();\n this.hidePricing();\n this.showDates();\n this.showButton('');\n };\n\n InstantQuote.showHeading = function(isAvailable) {\n $('.property-instant-quote-heading').addClass('hidden');\n\n if (isAvailable === 1) {\n $('.property-instant-quote-heading-available').removeClass('hidden');\n } else {\n $('.property-instant-quote-heading-default').removeClass('hidden');\n }\n };\n\n LIVEREZ.InstantQuote = InstantQuote;\n\n function cleanPrice(decimalPrice) {\n var parts = decimalPrice.split('.');\n if (parts[1] === '00') {\n decimalPrice = parts[0];\n }\n return decimalPrice;\n }\n})((window.LIVEREZ = window.LIVEREZ || {}), window, lrjQ);\n","(function(LIVEREZ, window, $, undefined) {\n var SearchResults = {};\n\n // set up empty object to be used for caching data, settings while on the page\n SearchResults.cacheObj = {};\n\n SearchResults.cacheObj.mapData = {\n markerObjs: [],\n markersArr: [],\n isOpen: false,\n instance: null,\n };\n\n SearchResults.setSearch = function(SearchObj) {\n this.cacheObj.SearchObj = SearchObj;\n return this;\n };\n\n SearchResults.searchOrder = function(OrderBy) {\n this.cacheObj.SearchObj.Sort = OrderBy;\n this.cacheObj.SearchObj.currentPage = 1;\n return this;\n };\n\n SearchResults.searchRun = function() {\n LIVEREZ.Publisher.publish(LIVEREZ.events.searchStart);\n\n var _this = this;\n\n // if we already have an ajax request, abort it and use the new one\n if (_this.xhr) {\n _this.xhr.abort();\n _this.xhr = null;\n }\n\n var _sendData = {\n Beds: _this.cacheObj.SearchObj.Bedrooms,\n sleeps: _this.cacheObj.SearchObj.Guests,\n arrivaldate: _this.cacheObj.SearchObj.ArrivalDate,\n departuredate: _this.cacheObj.SearchObj.DepartureDate,\n comparesearch: _this.cacheObj.SearchObj.CompareSearch,\n style: _this.cacheObj.SearchObj.Style,\n categoryid: Array.isArray(_this.cacheObj.SearchObj.CategoryID)\n ? _this.cacheObj.SearchObj.CategoryID.join(',')\n : _this.cacheObj.SearchObj.CategoryID,\n destinationID: Array.isArray(_this.cacheObj.SearchObj.DestinationID)\n ? _this.cacheObj.SearchObj.DestinationID.join(',')\n : _this.cacheObj.SearchObj.DestinationID,\n communityid: Array.isArray(_this.cacheObj.SearchObj.CommunityID)\n ? _this.cacheObj.SearchObj.CommunityID.join(',')\n : _this.cacheObj.SearchObj.CommunityID,\n admincustdataid: _this.cacheObj.SearchObj.AdminCustDataID,\n dynsiteid: _this.cacheObj.SearchObj.DynsiteID,\n searchtype: _this.cacheObj.SearchObj.SearchType,\n searchOrigin: _this.cacheObj.SearchObj.SearchOrigin,\n advs: _this.cacheObj.SearchObj.AdvancedSearch,\n pagedataid: _this.cacheObj.SearchObj.pagedataid,\n pageSize: _this.cacheObj.SearchObj.pageSize,\n currentPage: _this.cacheObj.SearchObj.currentPage,\n flexibleDates: _this.cacheObj.SearchObj.flexibleDates,\n searchAmenities: _this.cacheObj.SearchObj.searchAmenities,\n showOnlySpecials: _this.cacheObj.SearchObj.showOnlySpecials,\n flexibleDatesThreshold: _this.cacheObj.SearchObj.flexibleDatesThreshold,\n };\n\n // console.log(_sendData);\n\n if (_this.cacheObj.SearchObj.Sort > 0) {\n _sendData.O = this.cacheObj.SearchObj.Sort;\n }\n\n _this.xhr = $.ajax({\n type: 'get',\n url:\n LIVEREZ.DynsiteFunctions.getServerName() + '/inc/api/webservices.aspx?method=searchresults',\n data: _sendData,\n dataType: 'json',\n success: function(data, status, error) {\n data.comparesearch = _sendData.comparesearch;\n LIVEREZ.Publisher.publish(LIVEREZ.events.searchComplete, data);\n },\n error: function(data, status, error) {\n if (!status === 'abort') {\n LIVEREZ.Publisher.publish(LIVEREZ.events.searchComplete, { error: error });\n }\n },\n });\n };\n\n SearchResults.getCalendarSuggestions = function(preferences) {\n var _searchProperties = [];\n\n if (\n preferences.hasOwnProperty('properties') &&\n Array.isArray(preferences.properties) &&\n preferences.properties.length\n ) {\n _searchProperties = preferences.properties.map(function(property) {\n return property.pageDataID;\n });\n }\n\n LIVEREZ.Publisher.publish(LIVEREZ.events.searchSuggestionsStart);\n\n var _this = this;\n\n // if we already have an ajax request, abort it and use the new one\n if (_this.csxhr) {\n _this.csxhr.abort();\n _this.csxhr = null;\n }\n\n var searchedDate = new Date(_this.cacheObj.SearchObj.ArrivalDate);\n var searchEnd = new Date(_this.cacheObj.SearchObj.DepartureDate);\n\n var _daysSearched = (searchEnd - searchedDate) / (1000 * 60 * 60 * 24);\n\n _this.daysBack = 5;\n _this.daysForward = _daysSearched > 15 ? _daysSearched + 5 : 15;\n\n var startDate = LIVEREZ.DynsiteFunctions.dateObjectToString(\n new Date(new Date(searchedDate).setDate(searchedDate.getDate() - _this.daysBack))\n );\n var stopDate = LIVEREZ.DynsiteFunctions.dateObjectToString(\n new Date(new Date(searchedDate).setDate(searchedDate.getDate() + _this.daysForward))\n );\n\n var consecutiveDays = Math.floor(_daysSearched * 0.8);\n\n if (consecutiveDays < 2) {\n consecutiveDays = 2;\n }\n\n var _sendData = {\n bedrooms: _this.cacheObj.SearchObj.Bedrooms,\n guests: _this.cacheObj.SearchObj.Guests,\n startDate: startDate,\n endDate: stopDate,\n categoryid: Array.isArray(_this.cacheObj.SearchObj.CategoryID)\n ? _this.cacheObj.SearchObj.CategoryID.join(',')\n : _this.cacheObj.SearchObj.CategoryID,\n destinationID: Array.isArray(_this.cacheObj.SearchObj.DestinationID)\n ? _this.cacheObj.SearchObj.DestinationID.join(',')\n : _this.cacheObj.SearchObj.DestinationID,\n communityid: Array.isArray(_this.cacheObj.SearchObj.CommunityID)\n ? _this.cacheObj.SearchObj.CommunityID.join(',')\n : _this.cacheObj.SearchObj.CommunityID,\n admincustdataid: _this.cacheObj.SearchObj.AdminCustDataID,\n dynsiteid: _this.cacheObj.SearchObj.DynsiteID,\n consecutiveDays: consecutiveDays,\n maxProperties: 3,\n searchOrigin: _this.cacheObj.SearchObj.SearchOrigin,\n };\n\n _this.csxhr = $.ajax({\n type: 'get',\n url:\n LIVEREZ.DynsiteFunctions.getServerName() +\n '/inc/api/webservices.aspx?method=calendarsuggestions',\n data: _sendData,\n dataType: 'json',\n success: function(data, status, error) {\n var finalProps = [];\n\n if (data.length) {\n finalProps = data.filter(function(property) {\n return _searchProperties.indexOf(property.PageDataID) === -1;\n });\n }\n\n LIVEREZ.Publisher.publish(LIVEREZ.events.searchSuggestionsComplete, {\n preferences: preferences,\n data: finalProps,\n });\n },\n error: function(data, status, error) {\n if (!status === 'abort') {\n LIVEREZ.Publisher.publish(LIVEREZ.events.searchSuggestionsComplete, { error: error });\n } else {\n LIVEREZ.Publisher.publish(LIVEREZ.events.searchSuggestionsComplete, {\n error: 'error fetching results',\n });\n }\n },\n });\n };\n\n SearchResults.CompareProperties = function() {\n var _this = this;\n if (_this.CheckCompare()) {\n document.Search_xml.PageDataID.value = _this.CompareCheckboxArr.join(',');\n document.Search_xml.submit();\n }\n };\n\n SearchResults.CheckCompare = function() {\n var _this = this;\n _this.CompareCheckboxArr = [];\n\n $('input:checkbox[name=PageDataID]:checked').each(function() {\n _this.CompareCheckboxArr.push($(this).val());\n });\n\n if (this.CompareCheckboxArr.length == 0) {\n alert('No Properties were selected. Please select up to 3 properties to compare.');\n return false;\n } else if (this.CompareCheckboxArr.length == 1) {\n alert('You must select more than 1 property to compare homes.');\n return false;\n } else if (this.CompareCheckboxArr.length > 3) {\n alert('To compare homes, You can only select 3 homes at a time.');\n return false;\n }\n\n return true;\n };\n\n SearchResults.setView = function(strView) {\n LIVEREZ.Storage.set('SearchResultsView', strView);\n return this;\n };\n\n SearchResults.getView = function(strView) {\n return LIVEREZ.Storage.get('SearchResultsView');\n };\n\n SearchResults.saveResultsData = function(resultsData) {\n this.cacheObj.results = resultsData;\n return this;\n };\n\n SearchResults.renderResultsbyView = function(callback, addtPropAvailMsgLocation) {\n if (this.cacheObj.results) {\n var data = this.cacheObj.results;\n var _this = this;\n var errorMsg = '';\n var propertiesDiv = $('
');\n\n _this.cacheObj.mapData.markerObjs.length = 0;\n\n if (data.properties && data.properties.length) {\n var propertiesStr = '';\n\n if (_this.getView() === 'grid') {\n propertiesStr +=\n '
    ';\n }\n\n data.properties.forEach(function(propData, index) {\n if (_this.getView() === 'grid') {\n if (index > 0 && index % 3 === 0) {\n propertiesStr +=\n '
    ';\n }\n\n propertiesStr += _this.SearchResultsTemplateGrid(data, propData);\n } else {\n propertiesStr += _this.SearchResultsTemplateList(data, propData);\n }\n\n // add the property data to the markers object array for use later signifying this property has a lat and long\n if (propData.latitude && propData.longitude) {\n propData.currencySymbol = propData.currencySymbol || data.currencySymbol;\n propData.currency = propData.currency || data.currency;\n _this.cacheObj.mapData.markerObjs.push(propData);\n }\n });\n\n if (_this.getView() === 'grid') {\n propertiesStr += '
';\n }\n\n propertiesDiv.append(propertiesStr);\n\n // create a map button for users to click\n if (_this.cacheObj.mapData.markerObjs.length > 0) {\n LIVEREZ.Publisher.publish(LIVEREZ.events.searchCreateMapImage, {\n lat: _this.cacheObj.mapData.markerObjs[0].latitude,\n lng: _this.cacheObj.mapData.markerObjs[0].longitude,\n });\n }\n } else {\n if (data.returnMessageText) {\n errorMsg += data.returnMessageText;\n } else {\n errorMsg +=\n 'We couldn’t find any results that matched your criteria.
Try adjusting your dates or removing some search filters to show more properties.';\n }\n }\n\n // create a week to week message if week to week are present\n if (data.weekToWeek && data.weekToWeek.hasProperties) {\n errorMsg += '
';\n\n if (data.properties && data.properties.length) {\n errorMsg += '

Additional Properties Available

';\n }\n\n errorMsg += '
' + data.weekToWeek.messageText + '
';\n\n errorMsg += '
';\n if (data.weekToWeek.prevSuggestions.length) {\n errorMsg += '
';\n errorMsg += '
Try Previous Week
';\n data.weekToWeek.prevSuggestions.forEach(function(suggestion) {\n //mutation is bad :(\n suggestion.fixedStartDate = LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI(\n suggestion.startDate,\n dateFormatType\n );\n suggestion.fixedEndDate = LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI(\n suggestion.endDate,\n dateFormatType\n );\n\n errorMsg +=\n '';\n });\n errorMsg += '
';\n }\n\n if (data.weekToWeek.nextSuggestions.length) {\n errorMsg += '
';\n errorMsg += '
Try Next Week
';\n data.weekToWeek.nextSuggestions.forEach(function(suggestion) {\n //mutation is bad :(\n suggestion.fixedStartDate = LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI(\n suggestion.startDate,\n dateFormatType\n );\n suggestion.fixedEndDate = LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI(\n suggestion.endDate,\n dateFormatType\n );\n\n errorMsg +=\n '';\n });\n errorMsg += '
';\n }\n\n errorMsg += '
';\n errorMsg += '
';\n } else if (\n data.minimumNightsStay &&\n data.minimumNightsStay.hasProperties &&\n data.minimumNightsStay.showMinNightsStayMessage !== false\n ) {\n if (data.properties && data.properties.length) {\n errorMsg += '

Additional Properties Available

';\n }\n\n errorMsg +=\n '
' + data.minimumNightsStay.messageText + '
';\n }\n\n // if error message exists, add it to the results\n if (errorMsg !== '') {\n if (addtPropAvailMsgLocation === 'top') {\n propertiesDiv.prepend('
' + errorMsg + '
');\n } else {\n propertiesDiv.append('
' + errorMsg + '
');\n }\n }\n\n try {\n setTimeout(function() {\n LIVEREZ.Publisher.publish(LIVEREZ.events.resultsRenderComplete);\n });\n } catch (error) {\n console.log(error);\n }\n\n callback(propertiesDiv);\n }\n // no data stored, go get some data\n else {\n SearchResults.searchRun();\n }\n };\n\n SearchResults.createMap = function(mapType) {\n var _this = this;\n var markers = this.cacheObj.mapData.markerObjs;\n\n $('.search-results-map-view-header-span').text(\n 'Viewing Map for ' + markers.length + ' Vacation Rentals'\n );\n\n if (mapType === LIVEREZ.constants.MAP_TYPE.google) {\n var mapOptions = {\n zoom: 10,\n center: new google.maps.LatLng(markers[0].latitude, markers[0].longitude),\n styles: [\n {\n featureType: 'poi.business',\n elementType: 'labels',\n stylers: [{ visibility: 'off' }],\n },\n ],\n };\n\n var map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions);\n\n _this.cacheObj.mapData.instance = map;\n\n // create a single infowindow so that only 1 can be open at a time\n this.infowindow = new google.maps.InfoWindow();\n } else if (mapType === LIVEREZ.constants.MAP_TYPE.leaflet) {\n if (_this.cacheObj.mapData.instance) {\n _this.cacheObj.mapData.instance.off();\n _this.cacheObj.mapData.instance.remove();\n }\n\n var mapOptions = {\n scrollWheelZoom: false,\n };\n\n var map = L.map('map_canvas', mapOptions);\n\n _this.cacheObj.mapData.instance = map;\n\n //delete all the current markers from the map before we proceed to create / add new ones\n _this.deleteAllMapMarkers(mapType);\n\n if (Array.isArray(markers) && markers.length) {\n map.setView([markers[0].latitude, markers[0].longitude], 10);\n } else {\n map.setView([43.68131, -116.362402], 10);\n }\n\n L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {\n attribution:\n '© OpenStreetMap contributors',\n }).addTo(map);\n }\n\n this.createMapMarkers(map, markers, mapType);\n };\n\n SearchResults.deleteAllMapMarkers = function(mapType) {\n var _this = this;\n\n for (var i = 0; i < this.cacheObj.mapData.markersArr.length; i++) {\n if (mapType === LIVEREZ.constants.MAP_TYPE.google) {\n _this.cacheObj.mapData.markersArr[i].setMap(null);\n } else if (mapType === LIVEREZ.constants.MAP_TYPE.leaflet) {\n if (_this.cacheObj.mapData.instance) {\n _this.cacheObj.mapData.instance.removeLayer(_this.cacheObj.mapData.markersArr[i]);\n }\n }\n }\n\n this.cacheObj.mapData.markersArr.length = 0;\n };\n\n SearchResults.createMapMarkers = function(map, markers, mapType) {\n var _this = this;\n\n if (Array.isArray(markers) && markers.length) {\n if (mapType === LIVEREZ.constants.MAP_TYPE.google) {\n var bounds = new google.maps.LatLngBounds();\n\n markers.forEach(function(marker) {\n var infoWindowHTML = LIVEREZ.SearchResults.SearchResultsTemplateMapInfoWindow(marker);\n var markerLatLng = new google.maps.LatLng(marker.latitude, marker.longitude);\n\n var marker = new google.maps.Marker({\n position: markerLatLng,\n map: map,\n title: marker.pid,\n });\n\n // put the marker in an array so we can remove it from the map later if the results change\n _this.cacheObj.mapData.markersArr.push(marker);\n\n google.maps.event.addListener(marker, 'click', function() {\n _this.infowindow.setContent(infoWindowHTML);\n _this.infowindow.open(map, this);\n });\n\n // extend the map bounds with this markers position\n bounds.extend(markerLatLng);\n });\n\n // set the map to fit the bounds\n map.fitBounds(bounds);\n } else if (mapType === LIVEREZ.constants.MAP_TYPE.leaflet) {\n var featureGroup = L.featureGroup().addTo(map);\n\n markers.forEach(function(marker) {\n var infoWindowHTML = LIVEREZ.SearchResults.SearchResultsTemplateMapInfoWindow(marker);\n L.marker([marker.latitude, marker.longitude])\n .addTo(featureGroup)\n .bindPopup(infoWindowHTML);\n\n // put the marker in an array so we can remove it from the map later if the results change\n _this.cacheObj.mapData.markersArr.push(marker);\n });\n\n featureGroup.addTo(map);\n map.fitBounds(featureGroup.getBounds());\n }\n }\n };\n\n SearchResults.openMap = function(mapType) {\n LIVEREZ.Publisher.publish(LIVEREZ.events.searchMapOpen);\n this.cacheObj.mapData.isOpen = true;\n this.createMap(mapType);\n };\n\n SearchResults.closeMap = function() {\n LIVEREZ.Publisher.publish(LIVEREZ.events.searchMapClose);\n this.cacheObj.mapData.isOpen = false;\n };\n\n SearchResults.changeDates = function(startD, endD) {\n $('#txtStartDate').val(startD);\n $('#txtStartDate-mobile').val(startD);\n $('#AD').val(startD);\n\n $('#txtEndDate').val(endD);\n $('#txtEndDate-mobile').val(endD);\n $('#DD').val(endD);\n\n $('#FlexibleDatesThreshold').val('');\n\n window.scrollTo(0, 0);\n\n //$('.start-date').val(startD);\n //$('.end-date').val(endD);\n\n return this;\n };\n\n SearchResults.renderAmenities = function(amenities, cb) {\n var str = '';\n\n for (var key in amenities) {\n var list = amenities[key].filter(function(item) {\n return (item.hasOwnProperty('count') && item.count > 0) || item.checked;\n });\n\n if (Array.isArray(list) && list.length) {\n list.forEach(function(amenity, i) {\n var item = $('
').addClass(\n 'search-amenities-item checkbox secondary-advanced-checkbox'\n );\n\n var check = $('')\n .attr('type', 'checkbox')\n .attr('id', 'search-amenitiy-' + amenity.amenityID)\n .attr('name', 'searchAmenities')\n .attr('checked', amenity.checked)\n .val(amenity.amenityID);\n\n var label = $('
 ';\n }\n html += '
' + calWeek + '' +\n content +\n '
' +\n defaults.templates.leftArrow +\n '' +\n defaults.templates.rightArrow +\n '
' +\n DPGlobal.headTemplate +\n '' +\n DPGlobal.footTemplate +\n '
' +\n '
' +\n '
' +\n '' +\n DPGlobal.headTemplate +\n DPGlobal.contTemplate +\n DPGlobal.footTemplate +\n '
' +\n '
' +\n '
' +\n '' +\n DPGlobal.headTemplate +\n DPGlobal.contTemplate +\n DPGlobal.footTemplate +\n '
' +\n '
' +\n '
' +\n '' +\n DPGlobal.headTemplate +\n DPGlobal.contTemplate +\n DPGlobal.footTemplate +\n '
' +\n '
' +\n '
' +\n '' +\n DPGlobal.headTemplate +\n DPGlobal.contTemplate +\n DPGlobal.footTemplate +\n '
' +\n '
' +\n '
';\n\n $.fn.datepicker.DPGlobal = DPGlobal;\n\n /* DATEPICKER NO CONFLICT\n * =================== */\n\n $.fn.datepicker.noConflict = function() {\n $.fn.datepicker = old;\n return this;\n };\n\n /* DATEPICKER VERSION\n * =================== */\n $.fn.datepicker.version = '1.7.1';\n\n $.fn.datepicker.deprecated = function(msg) {\n var console = window.console;\n if (console && console.warn) {\n console.warn('DEPRECATED: ' + msg);\n }\n };\n\n /* DATEPICKER DATA-API\n * ================== */\n\n $(document).on(\n 'focus.datepicker.data-api click.datepicker.data-api',\n '[data-provide=\"datepicker\"]',\n function(e) {\n var $this = $(this);\n if ($this.data('datepicker')) return;\n e.preventDefault();\n // component click requires us to explicitly show it\n datepickerPlugin.call($this, 'show');\n }\n );\n $(function() {\n datepickerPlugin.call($('[data-provide=\"datepicker-inline\"]'));\n });\n});\n","/*! echo-js v1.7.3 | (c) 2016 @toddmotto | https://github.com/toddmotto/echo */\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n define(function() {\n return factory(root);\n });\n } else if (typeof exports === 'object') {\n module.exports = factory;\n } else {\n root.echo = factory(root);\n }\n})(window, function(root) {\n 'use strict';\n\n var echo = {};\n\n var callback = function() {};\n\n var offset, poll, delay, useDebounce, unload;\n\n var isHidden = function(element) {\n return element.offsetParent === null;\n };\n\n var inView = function(element, view) {\n if (isHidden(element)) {\n return false;\n }\n\n var box = element.getBoundingClientRect();\n return box.right >= view.l && box.bottom >= view.t && box.left <= view.r && box.top <= view.b;\n };\n\n var debounceOrThrottle = function() {\n if (!useDebounce && !!poll) {\n return;\n }\n clearTimeout(poll);\n poll = setTimeout(function() {\n echo.render();\n poll = null;\n }, delay);\n };\n\n echo.init = function(opts) {\n opts = opts || {};\n var offsetAll = opts.offset || 0;\n var offsetVertical = opts.offsetVertical || offsetAll;\n var offsetHorizontal = opts.offsetHorizontal || offsetAll;\n var optionToInt = function(opt, fallback) {\n return parseInt(opt || fallback, 10);\n };\n offset = {\n t: optionToInt(opts.offsetTop, offsetVertical),\n b: optionToInt(opts.offsetBottom, offsetVertical),\n l: optionToInt(opts.offsetLeft, offsetHorizontal),\n r: optionToInt(opts.offsetRight, offsetHorizontal),\n };\n delay = optionToInt(opts.throttle, 250);\n useDebounce = opts.debounce !== false;\n unload = !!opts.unload;\n callback = opts.callback || callback;\n echo.render();\n if (document.addEventListener) {\n root.addEventListener('scroll', debounceOrThrottle, false);\n root.addEventListener('load', debounceOrThrottle, false);\n } else {\n root.attachEvent('onscroll', debounceOrThrottle);\n root.attachEvent('onload', debounceOrThrottle);\n }\n };\n\n echo.render = function(context) {\n var nodes = (context || document).querySelectorAll('[data-echo], [data-echo-background]');\n var length = nodes.length;\n var src, elem;\n var view = {\n l: 0 - offset.l,\n t: 0 - offset.t,\n b: (root.innerHeight || document.documentElement.clientHeight) + offset.b,\n r: (root.innerWidth || document.documentElement.clientWidth) + offset.r,\n };\n for (var i = 0; i < length; i++) {\n elem = nodes[i];\n if (inView(elem, view)) {\n if (unload) {\n elem.setAttribute('data-echo-placeholder', elem.src);\n }\n\n if (elem.getAttribute('data-echo-background') !== null) {\n elem.style.backgroundImage = 'url(' + elem.getAttribute('data-echo-background') + ')';\n } else if (elem.src !== (src = elem.getAttribute('data-echo'))) {\n elem.src = src;\n }\n\n if (!unload) {\n elem.removeAttribute('data-echo');\n elem.removeAttribute('data-echo-background');\n }\n\n callback(elem, 'load');\n } else if (unload && !!(src = elem.getAttribute('data-echo-placeholder'))) {\n if (elem.getAttribute('data-echo-background') !== null) {\n elem.style.backgroundImage = 'url(' + src + ')';\n } else {\n elem.src = src;\n }\n\n elem.removeAttribute('data-echo-placeholder');\n callback(elem, 'unload');\n }\n }\n if (!length) {\n echo.detach();\n }\n };\n\n echo.detach = function() {\n if (document.removeEventListener) {\n root.removeEventListener('scroll', debounceOrThrottle);\n } else {\n root.detachEvent('onscroll', debounceOrThrottle);\n }\n clearTimeout(poll);\n };\n\n return echo;\n});\n","(function(LIVEREZ, window, $, undefined) {\n const StripCalendar = function(starDate, endDate, datesArr) {\n var self = this;\n\n this.startDate = new Date(starDate);\n this.endDate = new Date(endDate);\n this.numberOfDays = getDateDiff(self.startDate, self.endDate);\n this.data = datesArr;\n\n this.startingMonth = this.startDate.getMonth();\n this.stoppingMonth = this.endDate.getMonth();\n\n this.displayDates = getDates(self.startDate, self.endDate);\n };\n\n var _isLeapYear = function(year) {\n return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;\n };\n\n var _getDaysInMonth = function(year, month) {\n return [31, _isLeapYear(year) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month];\n };\n\n var _dates = {\n days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n daysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n daysSuperShort: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],\n months: [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December',\n ],\n monthsShort: [\n 'Jan',\n 'Feb',\n 'Mar',\n 'Apr',\n 'May',\n 'Jun',\n 'Jul',\n 'Aug',\n 'Sep',\n 'Oct',\n 'Nov',\n 'Dec',\n ],\n };\n\n StripCalendar.prototype.generateHtml = function(callback) {\n var container = $('
').addClass('table-responsive');\n var table = $('').addClass('lr-strip-calendar');\n\n var _daysInEachMonth = getDaysInEachMonth(this.displayDates);\n\n var headingRow = $('').addClass('lr-strip-calendar--heading-row');\n var weekdayRow = $('').addClass('lr-strip-calendar--weekday-row');\n var dateRow = $('').addClass('lr-strip-calendar--date-row');\n\n // add months to heading row\n for (var key in _daysInEachMonth) {\n var monthIndex = key.split('_')[1];\n var month = $('
')\n .text(_dates.monthsShort[monthIndex])\n .attr('colspan', _daysInEachMonth[key]);\n headingRow.append(month);\n }\n\n // add days to the date row\n this.displayDates.forEach(function(item) {\n var weekday = $('').text(_dates.daysSuperShort[item.getDay()]);\n weekday.addClass('lr-strip-calendar--weekday');\n\n weekdayRow.append(weekday);\n\n var day = $('').text(item.getDate());\n day.addClass('lr-strip-calendar--day ' + formatDate(item));\n\n dateRow.append(day);\n });\n\n // paint the days with the correct classes\n this.data.forEach(function(calendarDay) {\n var current = dateRow.children('.' + formatDate(calendarDay.date));\n\n if (calendarDay.checkIn) {\n current.addClass('checkin');\n }\n if (calendarDay.checkOut) {\n current.addClass('checkout');\n }\n if (calendarDay.occupied) {\n current.addClass('occupied');\n }\n });\n\n table.append(headingRow);\n table.append(weekdayRow);\n table.append(dateRow);\n\n container.append(table);\n\n callback(container.html());\n };\n\n return (LIVEREZ.StripCalendar = StripCalendar);\n\n function formatDate(date) {\n return date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate();\n }\n\n function getDateDiff(date1, date2) {\n return Math.abs((date1.getTime() - date2.getTime()) / (1000 * 60 * 60 * 24));\n }\n\n function getDates(d1, d2) {\n var dates = [];\n var currentDate = new Date(d1);\n var endDate = new Date(d2);\n\n while (currentDate <= endDate) {\n dates.push(new Date(currentDate));\n currentDate.setDate(currentDate.getDate() + 1);\n }\n return dates;\n }\n\n function getDaysInEachMonth(datesArr) {\n var obj = {};\n\n datesArr.forEach(function(item) {\n var _month = item.getMonth();\n var _year = item.getFullYear();\n\n var key = _year + '_' + _month;\n\n if (!obj.hasOwnProperty(key)) {\n obj[key] = 1;\n } else {\n obj[key] = obj[key] + 1;\n }\n });\n\n return obj;\n }\n})((window.LIVEREZ = window.LIVEREZ || {}), window, lrjQ);\n"],"sourceRoot":"/source/"}