{"version":3,"sources":["scripts-1719947232428.js","JS/calendar-availability.js","JS/classie.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","_unsupportedIterableToArray","_nonIterableRest","TypeError","o","minLen","_arrayLikeToArray","n","Object","prototype","toString","call","slice","constructor","name","Array","from","test","len","length","arr2","_i","Symbol","iterator","_s","_e","_arr","_n","_d","next","done","push","value","err","isArray","_typeof","obj","LIVEREZ","window","$","undefined","CALENDAR_DAY_TYPES","Available","Unavailable","CheckIn","CheckOut","EarlyCheckIn","LateCheckOut","EarlyCheckInLateCheckOut","SingleNightRental","TurnOver","TurnOverEarlyCheckIn","TurnOverLateCheckOut","CalendarAvailability","dynsiteId","adminCustDataID","pageDataId","this","adminCustDataId","unavailableTypes","unavailableDateObjs","arrivalDateObjs","departureDateObjs","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","d","formattedDate","dateStringToObject","startDateString","dateFormatType","fixEuroDatesForAPI","calendarDayTypes","filter","element","index","array","indexOf","ex","console","error","status","remove","log","findDateConflicts","start","end","tmpDate","lrjQ","classReg","className","RegExp","toggleClass","elem","c","fn","hasClass","removeClass","addClass","document","documentElement","classList","contains","add","replace","classie","has","toggle","define","amd","constants","MAP_TYPE","google","leaflet","PopUp","URL","Window","w","h","x","y","open","socialSharePage","socialType","image","headline","page","encodeURIComponent","location","href","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","action","WebReferencePageDataID","InventoryUnitDataID","submit","debounce","func","wait","immediate","timeout","context","args","arguments","later","apply","callNow","clearTimeout","setTimeout","DateShort","DateStr","delimeter","getMonth","getDate","DateNatural","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","dateFormat","parts","dateStringToISO8601","dateString","myDate","returnDate","join","dateObjectToString","dateObj","dateStr","year","truncate","string","elipsisBool","_str","substring","daydiff","first","second","checkValidStartEndDates","date1","date2","now","numSearchedDay","maxDays","maxWebRentalDays","isMobileDevice","check","a","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","res","thisArg","T","k","O","kValue","searchElement","fromIndex","Math","abs","Infinity","Function","bind","oThis","aArgs","fToBind","fNOP","fBound","concat","LocalStorage","localStoreSupport","localStorage","setItem","removeItem","key","days","JSON","stringify","date","setTime","getTime","expires","toGMTString","cookie","nameEQ","ca","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","typeaheadDiv","top","outerHeight","left","border","border-top","background","color","max-height","overflow-y","html","wrap","after","getData","insertTypeAheadData","close","typeaheadelem","domTypeAheadElem","is","target","off","empty","append","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","cleanPrice","decimalPrice","InstantQuote","getQuote","instantQuoteObj","_checkValidDates","StartDate","EndDate","hideLoading","setError","showDates","showButton","killAjax","adults","Adults","children","Children","checkAvailable","LiveNetID","isAvailable","averageDailyRateBeforeSpecials","averageDailyRate","quantityDays","fees","taxTotal","rent","rentBeforeSpecials","total","deposit","hasSpecials","showPricing","OnlineBookings","showHeading","strError","removeError","strButtonType","submitForm","strFormType","showLoading","hideDates","hidePricing","changeDates","SearchResults","cacheObj","mapData","markerObjs","markersArr","isOpen","instance","setSearch","SearchObj","searchOrder","OrderBy","Sort","currentPage","searchRun","Beds","Bedrooms","sleeps","Guests","arrivaldate","ArrivalDate","departuredate","DepartureDate","comparesearch","CompareSearch","Style","categoryid","CategoryID","destinationID","DestinationID","communityid","CommunityID","admincustdataid","dynsiteid","DynsiteID","searchtype","SearchType","searchOrigin","SearchOrigin","advs","AdvancedSearch","pagedataid","pageSize","flexibleDates","searchAmenities","showOnlySpecials","flexibleDatesThreshold","getCalendarSuggestions","_searchProperties","properties","map","property","csxhr","searchedDate","searchEnd","_daysSearched","daysBack","daysForward","stopDate","consecutiveDays","floor","bedrooms","guests","maxProperties","finalProps","CompareProperties","CheckCompare","Search_xml","CompareCheckboxArr","setView","strView","getView","saveResultsData","resultsData","results","renderResultsbyView","addtPropAvailMsgLocation","errorMsg","propertiesDiv","propertiesStr","propData","SearchResultsTemplateGrid","SearchResultsTemplateList","latitude","longitude","currency","lat","lng","returnMessageText","weekToWeek","hasProperties","messageText","prevSuggestions","suggestion","fixedStartDate","fixedEndDate","startingDay","nextSuggestions","showMinNightsStayMessage","prepend","createMap","mapType","markers","mapOptions","zoom","center","maps","LatLng","styles","featureType","elementType","stylers","visibility","Map","infowindow","InfoWindow","scrollWheelZoom","L","deleteAllMapMarkers","tileLayer","attribution","addTo","createMapMarkers","setMap","removeLayer","bounds","LatLngBounds","marker","infoWindowHTML","SearchResultsTemplateMapInfoWindow","markerLatLng","Marker","title","event","addListener","setContent","fitBounds","featureGroup","bindPopup","getBounds","openMap","closeMap","startD","endD","scrollTo","renderAmenities","amenities","cb","list","item","count","checked","amenity","amenityID","label","outerHTML","getCheckedAmenityCount","_formatAvgNightlyRate","preference","displayPrice","averageNightlyRate","preSpecialPrice","averageNightlyRateBeforeSpecials","displayPriceUnit","weeklyPrice","weeklyPriceBeforeSpecials","discountPercentage","round","showTagClass","checkInDates","ret","showRatesOnResults","link","image550","showSleepsOnSearchResults","maxGuests","showBedsOnSearchResults","showBathsOnSearchResults","bathrooms","showPIDNumbers","showMinNightsOnSearchResults","minNightsReq","showPetsOnSearchResults","allowsPets","CalendarSuggestion","prepDataForStrip","normalizeDateTimeZone","actDate","checkIn","CheckInCustDataID","checkOut","CheckOutCustDataID","occupied","earlyCheckIn","lateCheckOut","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","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","opts_from_locale","lang","dates","locale_opts","DateArray","extras","l","new_array","clear","copy","Datepicker","_process_options","viewDate","defaultViewDate","focusDate","isInput","inputField","find","component","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","datesArrival","datesDeparture","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","setDatesArrival","setDatesDeparture","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","dateIsArrival","dateIsDeparture","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","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","nodes","querySelectorAll","innerHeight","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,4BAA4BJ,EAAKC,IAAMI,mBAEzI,QAASA,oBAAqB,KAAM,IAAIC,WAAU,6IAElD,QAASF,6BAA4BG,EAAGC,GAAU,GAAKD,EAAL,CAAgB,GAAiB,gBAANA,GAAgB,MAAOE,mBAAkBF,EAAGC,EAAS,IAAIE,GAAIC,OAAOC,UAAUC,SAASC,KAAKP,GAAGQ,MAAM,KAAqE,OAAnD,WAANL,GAAkBH,EAAES,cAAaN,EAAIH,EAAES,YAAYC,MAAgB,QAANP,GAAqB,QAANA,EAAoBQ,MAAMC,KAAKZ,GAAc,cAANG,GAAqB,2CAA2CU,KAAKV,GAAWD,kB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EAAAZ,EAAAjmC,KAAA0mC,cAEAI,EAAAhoC,EAAA,UAAAkF,SAAA,kCACA+iC,EAAAjoC,EAAA,UAAAkF,SAAA,kCACAgjC,EAAAloC,EAAA,UAAAkF,SAAA,8BAGA,KAAA,GAAA4O,KAAAi0B,GAAA,CACA,GAAAI,GAAAr0B,EAAAnL,MAAA,KAAA,GACAC,EAAA5I,EAAA,UACA4M,KAAAi7B,EAAApM,YAAA0M,IACAx7B,KAAA,UAAAo7B,EAAAj0B,GACAk0B,GAAA5vB,OAAAxP,GAIA1H,KAAA0mC,aAAA3kC,QAAA,SAAAinB,GACA,GAAAke,GAAApoC,EAAA,UAAA4M,KAAAi7B,EAAAC,eAAA5d,EAAAle,UACAo8B,GAAAljC,SAAA,8BAEA+iC,EAAA7vB,OAAAgwB,EAEA,IAAAv/B,GAAA7I,EAAA,UAAA4M,KAAAsd,EAAA5e,UACAzC,GAAA3D,SAAA,0BAAA0yB,EAAA1N,IAEAge,EAAA9vB,OAAAvP,KAIA3H,KAAAuB,KAAAQ,QAAA,SAAAolC,GACA,GAAAC,GAAAJ,EAAA/oB,SAAA,IAAAyY,EAAAyQ,EAAAn0B,MAEAm0B,GAAA5b,SACA6b,EAAApjC,SAAA,WAEAmjC,EAAA1b,UACA2b,EAAApjC,SAAA,YAEAmjC,EAAAxb,UACAyb,EAAApjC,SAAA,cAIAmW,EAAAjD,OAAA4vB,GACA3sB,EAAAjD,OAAA6vB,GACA5sB,EAAAjD,OAAA8vB,GAEA9sB,EAAAhD,OAAAiD,GAEAxZ,EAAAuZ,EAAA5D,SAGA1X,EAAAwtB,cAAAA,GAwCAvtB,OAAAD,QAAAC,OAAAD,YAAAC,OAAAyE","file":"scripts-1719947232428.js","sourcesContent":["\"use strict\";\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_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) { \"@babel/helpers - typeof\"; 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.arrivalDateObjs = [];\n this.departureDateObjs = [];\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 data.forEach(function (d) {\n var formattedDate = LIVEREZ.DynsiteFunctions.dateStringToObject(d.startDateString);\n\n if (dateFormatType === 1) {\n d.startDateString = LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI(d.startDateString, dateFormatType);\n }\n\n switch (d.calendarDayTypes) {\n case CALENDAR_DAY_TYPES.CheckIn:\n _this.arrivalDateObjs.push(d.startDateString);\n\n break;\n\n case CALENDAR_DAY_TYPES.CheckOut:\n _this.departureDateObjs.push(d.startDateString);\n\n break;\n\n default:\n _this.unavailableDateObjs.push(d.startDateString);\n\n _this.unavailableDateObjsMobile.push(formattedDate);\n\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 * classie v1.0.0\n * class helper functions\n * from bonzo https://github.com/ded/bonzo\n * MIT license\n * \n * classie.has( elem, 'my-class' ) -> true/false\n * classie.add( elem, 'my-new-class' )\n * classie.remove( elem, 'my-unwanted-class' )\n * classie.toggle( elem, 'my-class' )\n */\n\n/*jshint browser: true, strict: true, undef: true, unused: true */\n\n/*global define: false */\n\n\n(function (window) {\n 'use strict'; // class helper functions from bonzo https://github.com/ded/bonzo\n\n function classReg(className) {\n return new RegExp(\"(^|\\\\s+)\" + className + \"(\\\\s+|$)\");\n } // classList support for class management\n // altho to be fair, the api sucks because it won't accept multiple classes at once\n\n\n var hasClass, addClass, removeClass;\n\n if ('classList' in document.documentElement) {\n hasClass = function hasClass(elem, c) {\n return elem.classList.contains(c);\n };\n\n addClass = function addClass(elem, c) {\n elem.classList.add(c);\n };\n\n removeClass = function removeClass(elem, c) {\n elem.classList.remove(c);\n };\n } else {\n hasClass = function hasClass(elem, c) {\n return classReg(c).test(elem.className);\n };\n\n addClass = function addClass(elem, c) {\n if (!hasClass(elem, c)) {\n elem.className = elem.className + ' ' + c;\n }\n };\n\n removeClass = function removeClass(elem, c) {\n elem.className = elem.className.replace(classReg(c), ' ');\n };\n }\n\n function toggleClass(elem, c) {\n var fn = hasClass(elem, c) ? removeClass : addClass;\n fn(elem, c);\n }\n\n var classie = {\n // full names\n hasClass: hasClass,\n addClass: addClass,\n removeClass: removeClass,\n toggleClass: toggleClass,\n // short names\n has: hasClass,\n add: addClass,\n remove: removeClass,\n toggle: toggleClass\n }; // transport\n\n if (typeof define === 'function' && define.amd) {\n // AMD\n define(classie);\n } else {\n // browser global\n window.classie = classie;\n }\n})(window);\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 } // Custom boilerplate for RES-5775\n\n\n if (this.dateIsArrival(date)) {\n cls.push('checkin');\n }\n\n if (this.dateIsDeparture(date)) {\n cls.push('checkout');\n } // End custom boilerplate\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 // Custom boilerplate for RES-5775 \n dateIsArrival: function dateIsArrival(date) {\n return $.grep(this.o.datesArrival, function (d) {\n return isUTCEquals(date, d);\n }).length > 0;\n },\n dateIsDeparture: function dateIsDeparture(date) {\n return $.grep(this.o.datesDeparture, function (d) {\n return isUTCEquals(date, d);\n }).length > 0;\n },\n // End custom boilerplate\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.arrivalDateObjs = [];\n this.departureDateObjs = [];\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 data.forEach(function (d) {\n var formattedDate = LIVEREZ.DynsiteFunctions.dateStringToObject(d.startDateString)\n if (dateFormatType === 1) {\n d.startDateString = LIVEREZ.DynsiteFunctions.fixEuroDatesForAPI(d.startDateString, dateFormatType);\n }\n \n switch(d.calendarDayTypes) {\n case CALENDAR_DAY_TYPES.CheckIn:\n _this.arrivalDateObjs.push(d.startDateString);\n break;\n case CALENDAR_DAY_TYPES.CheckOut:\n _this.departureDateObjs.push(d.startDateString);\n break;\n default:\n _this.unavailableDateObjs.push(d.startDateString);\n _this.unavailableDateObjsMobile.push(formattedDate);\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 * classie v1.0.0\n * class helper functions\n * from bonzo https://github.com/ded/bonzo\n * MIT license\n * \n * classie.has( elem, 'my-class' ) -> true/false\n * classie.add( elem, 'my-new-class' )\n * classie.remove( elem, 'my-unwanted-class' )\n * classie.toggle( elem, 'my-class' )\n */\n\n/*jshint browser: true, strict: true, undef: true, unused: true */\n/*global define: false */\n\n( function( window ) {\n\n'use strict';\n\n// class helper functions from bonzo https://github.com/ded/bonzo\n\nfunction classReg( className ) {\n return new RegExp(\"(^|\\\\s+)\" + className + \"(\\\\s+|$)\");\n}\n\n// classList support for class management\n// altho to be fair, the api sucks because it won't accept multiple classes at once\nvar hasClass, addClass, removeClass;\n\nif ( 'classList' in document.documentElement ) {\n hasClass = function( elem, c ) {\n return elem.classList.contains( c );\n };\n addClass = function( elem, c ) {\n elem.classList.add( c );\n };\n removeClass = function( elem, c ) {\n elem.classList.remove( c );\n };\n}\nelse {\n hasClass = function( elem, c ) {\n return classReg( c ).test( elem.className );\n };\n addClass = function( elem, c ) {\n if ( !hasClass( elem, c ) ) {\n elem.className = elem.className + ' ' + c;\n }\n };\n removeClass = function( elem, c ) {\n elem.className = elem.className.replace( classReg( c ), ' ' );\n };\n}\n\nfunction toggleClass( elem, c ) {\n var fn = hasClass( elem, c ) ? removeClass : addClass;\n fn( elem, c );\n}\n\nvar classie = {\n // full names\n hasClass: hasClass,\n addClass: addClass,\n removeClass: removeClass,\n toggleClass: toggleClass,\n // short names\n has: hasClass,\n add: addClass,\n remove: removeClass,\n toggle: toggleClass\n};\n\n// transport\nif ( typeof define === 'function' && define.amd ) {\n // AMD\n define( classie );\n} else {\n // browser global\n window.classie = classie;\n}\n\n})( window );","(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 // Custom boilerplate for RES-5775\n if (this.dateIsArrival(date)){\n cls.push('checkin');\n }\n if (this.dateIsDeparture(date)){\n cls.push('checkout');\n }\n // End custom boilerplate\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 // Custom boilerplate for RES-5775 \n dateIsArrival: function(date) {\n return (\n $.grep(this.o.datesArrival, function(d) {\n return isUTCEquals(date, d);\n }).length > 0)\n },\n \n dateIsDeparture: function(date) {\n return (\n $.grep(this.o.datesDeparture, function(d) {\n return isUTCEquals(date, d);\n }).length > 0)\n }, \n // End custom boilerplate\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});","/*! 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/"}