!function(e){"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery)}(function(_){var o;function e(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},_.extend(this._defaults,this.regional[""]),this.regional.en=_.extend(!0,{},this.regional[""]),this.regional["en-US"]=_.extend(!0,{},this.regional.en),this.dpDiv=a(_("
"))}function a(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td button";return e.delegate(t,"mouseout",function(){_(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&_(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&_(this).removeClass("ui-datepicker-next-hover")}).delegate(t,"mouseover",n)}function n(){_.datepicker._isDisabledDatepicker(o.inline?o.dpDiv.parent()[0]:o.input[0])||(_(this).parents(".ui-datepicker-calendar").find("button").removeClass("ui-state-hover"),_(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&_(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&_(this).addClass("ui-datepicker-next-hover"))}function p(e,t){for(var a in _.extend(e,t),t)null==t[a]&&(e[a]=t[a]);return e}return _.extend(_.ui,{datepicker:{version:"1.11.4"}}),_.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return p(this._defaults,e||{}),this},_attachDatepicker:function(e,t){var a,s,i;s="div"===(a=e.nodeName.toLowerCase())||"span"===a,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(i=this._newInst(_(e),s)).settings=_.extend({},t||{}),"input"===a?this._connectDatepicker(e,i):s&&this._inlineDatepicker(e,i)},_newInst:function(e,t){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?a(_("")):this.dpDiv}},_connectDatepicker:function(e,t){var a=_(e);t.append=_([]),t.trigger=_([]),a.hasClass(this.markerClassName)||(this._attachments(a,t),a.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(t),_.data(e,"datepicker",t),t.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,t){var a,s,i,o=this._get(t,"appendText"),n=this._get(t,"isRTL");t.append&&t.append.remove(),o&&(t.append=_(""+o+""),e[n?"before":"after"](t.append)),e.unbind("focus",this._showDatepicker),t.trigger&&t.trigger.remove(),"focus"!==(a=this._get(t,"showOn"))&&"both"!==a||e.focus(this._showDatepicker),"button"!==a&&"both"!==a||(s=this._get(t,"buttonText"),i=this._get(t,"buttonImage"),t.trigger=_(this._get(t,"buttonImageOnly")?_("").addClass(this._triggerClass).attr({src:i,alt:s,title:s}):_("").addClass(this._triggerClass).html(i?_("").attr({src:i,alt:s,title:s}):s)),e[n?"before":"after"](t.trigger),t.trigger.click(function(){return _.datepicker._datepickerShowing&&_.datepicker._lastInput===e[0]?_.datepicker._hideDatepicker():(_.datepicker._datepickerShowing&&_.datepicker._lastInput!==e[0]&&_.datepicker._hideDatepicker(),_.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,a,s,i,o=new Date(2009,11,20),n=this._get(e,"dateFormat");n.match(/[DM]/)&&(t=function(e){for(i=s=a=0;i'+e.properties.type+":
":"",n=e.properties.distance?''+e.properties.distance+"":"",r=o+i+n;new mapboxgl.Marker({anchor:"center",element:t}).setLngLat(e.geometry.coordinates).setPopup(new mapboxgl.Popup({offset:15,className:"js-mapboxgl-transport-popup",maxWidth:"none"}).setHTML(r)).addTo(l)});break;case 5:e.forEach(function(e){var t=document.createElement("div");t.className="marker-station js-station-marker is-filtered "+e.properties["transport-type"],"subway"===e.properties["transport-type"]?t.setAttribute("style","background-image:url("+e.properties["marker-img"]+");"):t.setAttribute("style","background-image:url(/templates/hotel5/images/map-station-"+e.properties["transport-type"]+".svg);"),t.dataset.filter="transport";var a=e.properties.name,s=''+a+"",i=e.properties.type?''+e.properties.type+":":"",o=e.properties.distance?''+e.properties.distance+"":"",n=i+s+o;new mapboxgl.Marker({anchor:"center",element:t}).setLngLat(e.geometry.coordinates).setPopup(new mapboxgl.Popup({offset:15,className:"js-mapboxgl-transport-popup",maxWidth:"none"}).setHTML(n)).addTo(l)});break;case 9:e.forEach(function(e){var t=document.createElement("div");t.className="marker-station js-station-marker is-filtered "+e.properties["transport-type"],"subway"===e.properties["transport-type"]?t.setAttribute("style","background-image:url("+e.properties["marker-img"]+");"):t.setAttribute("style","background-image:url(/templates/hotel5/images/map-station-"+e.properties["transport-type"]+".svg);"),t.dataset.filter="transport";var a=e.properties.name,s=''+a+"",i=e.properties.type?''+e.properties.type+":":"",o=e.properties.distance?''+e.properties.distance+"":"",n=i+s+o;new mapboxgl.Marker({anchor:"center",element:t}).setLngLat(e.geometry.coordinates).setPopup(new mapboxgl.Popup({offset:15,className:"js-mapboxgl-transport-popup",maxWidth:"none"}).setHTML(n)).addTo(l)})}return!0}return!1}}(h,e.railStations),p=(r=h,!!(o=t).length&&(o.forEach(function(e,t){var a=document.createElement("div");switch(m){case 3:a.dataset.filterType="transport",a.innerHTML=' ';break;case 5:case 9:a.innerHTML=e.properties.pinIcon,a.className="marker-airport js-airport-marker is-filtered "+e.properties.TransportTypeName,a.dataset.filter="transport"}var s=e.properties.Name?e.properties.Name:e.properties.NameEng,i=''+s+" ",o=e.properties.distance?''+e.properties.distance+"":"",n=i+o;new mapboxgl.Marker({anchor:"center",element:a}).setLngLat(e.geometry.coordinates).setPopup(new mapboxgl.Popup({offset:30,className:"js-mapboxgl-transport-popup",maxWidth:"none"}).setHTML(n)).addTo(r)}),!0)),u=(l=h,!!(n=a).length&&(n.forEach(function(e){var t=document.createElement("div");t.className="marker-transport js-transport-marker is-filtered "+e.properties.TransportTypeName,t.innerHTML=e.properties.icon,t.dataset.filter="transport";var a=e.properties.Name?e.properties.Name:e.properties.NameEng,s=''+a+"",i=e.properties.distance?''+e.properties.distance+"":"",o=e.properties.TransportTypeName?''+e.properties.TransportTypeName+":":"",n=o+s+i;new mapboxgl.Marker({anchor:"bottom",element:t}).setLngLat(e.geometry.coordinates).setPopup(new mapboxgl.Popup({offset:30,className:"js-mapboxgl-transport-popup",maxWidth:"none"}).setHTML(n)).addTo(l)}),!0));return!!(c||d||p||u)})}function c(e){var t=e||d.Deferred();if(v.landmarkData.length)v.getLandmarks=!0,y(v.landmarkData,v.landmarkName),t.resolve(v.landmarkData);else{if(!(a.landmark<=3))return t.resolve(v.landmarkData),!1;setTimeout(function(){a.landmark++,c(t)},1e3)}return t}function k(e){var t=e||d.Deferred();if(v.restaurantData.length)v.getRestaurants=!0,y(v.restaurantData,v.restaurantName),t.resolve(v.restaurantData);else{if(!(a.restaurant<=3))return t.resolve(v.restaurantData),!1;setTimeout(function(){a.restaurant++,k(t)},1e3)}return t}function y(e,n){var t=e.map(function(e,t){switch(e.coordinates=[e.GeoLong,e.GeoLat],e.cardMarkup={},e.cardMarkup.dataName=n,e.cardMarkup.id=n+t,e.cardMarkup.photoUrl=e.photoData.photoStub?"":e.photoData.url,e.cardMarkup.photoBg=e.photoData.photoStub?"":'style="background-image: url('+e.photoData.url+');"',e.cardMarkup.ratingMarkup=(e.rating&&e.rating.valid?e.rating.markup:"")+(e.priceData?e.priceData:"")+(e.typesData&&e.typesData.valid?e.typesData.markupType:""),e.cardMarkup.addressMarkup=e.adressData&&e.adressData.valid?e.adressData.markup:"",e.infoData&&(e.tagsData=e.infoData),m){case 3:var a=p.isMobile()?"marker marker--small":e.photoData.photoStub?"marker marker--no-photo":"marker";"landmark"===n?(e.cardMarkup.pinIcon='',e.cardMarkup.typeIcon=''):"restaurant"===n&&(e.cardMarkup.pinIcon='',e.cardMarkup.typeIcon=''),e.cardMarkup.photoUrlEmpty=e.photoData.photoStub?e.cardMarkup.typeIcon:"",e.cardMarkup.nameClass=e.Name?"":"is-rtl";var s=''+e.nameData+"
"+e.cardMarkup.typeIcon+''+e.cardMarkup.distance+'
'+e.distance+'
'+e.distance+'
'+e.nameData+'
'+e.cardMarkup.distance+"
'+e.nameData+'
'+e.cardMarkup.distance+'
'+e.content+'