{"version":3,"sources":["scripts-1558391436412.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","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,MAAOA,GAE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,CACA,GAAAI,GAAA30B,EAAA1L,MAAA,KAAA,GACAC,EAAA1H,EAAA,UACA4L,KAAA47B,EAAArM,YAAA2M,IACAn8B,KAAA,UAAA+7B,EAAAv0B,GACAw0B,GAAA/vB,OAAAlQ,GAIAzG,KAAAsmC,aAAAzkC,QAAA,SAAA+mB,GACA,GAAAke,GAAA/nC,EAAA,UAAA4L,KAAA47B,EAAAC,eAAA5d,EAAA7e,UACA+8B,GAAA3xB,SAAA,8BAEAwxB,EAAAhwB,OAAAmwB,EAEA,IAAApgC,GAAA3H,EAAA,UAAA4L,KAAAie,EAAAxf,UACA1C,GAAAyO,SAAA,0BAAAohB,EAAA3N,IAEAge,EAAAjwB,OAAAjQ,KAIA1G,KAAAqB,KAAAQ,QAAA,SAAAklC,GACA,GAAAC,GAAAJ,EAAAhpB,SAAA,IAAA2Y,EAAAwQ,EAAAz0B,MAEAy0B,GAAA7b,SACA8b,EAAA7xB,SAAA,WAEA4xB,EAAA3b,UACA4b,EAAA7xB,SAAA,YAEA4xB,EAAAzb,UACA0b,EAAA7xB,SAAA,cAIA0E,EAAAlD,OAAA+vB,GACA7sB,EAAAlD,OAAAgwB,GACA9sB,EAAAlD,OAAAiwB,GAEAhtB,EAAAjD,OAAAkD,GAEApZ,EAAAmZ,EAAA9D,SAGAjX,EAAAgtB,cAAAA,GAwCA/sB,OAAAD,QAAAC,OAAAD,YAAAC,OAAA2E","file":"scripts-1558391436412.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/"}