1(function($){"use strict";const $window=$(window);window.rheaIsRTL=function(){let isRTL=!1;if(document.querySelector('body').classList.contains('rtl')){isRTL=!0} 2return isRTL} 3$(document).ready(function(){const $body=$('body');$body.on('click','.rhea_pagination_wrapper a',function(e){e.preventDefault();var thisParent=$(this).parents('.rhea_ele_property_ajax_target');var id=$(thisParent).attr('id');var thisLoader=$(thisParent).find('.rhea_svg_loader');var thisInner=$(thisParent).find('.home-properties-section-inner-target');var pageNav=$(thisParent).find('.rhea_pagination_wrapper a');var thisLink=$(this);if(!(thisLink).hasClass('current')){var link=$(this).attr('href');thisInner.fadeTo('slow',0.5);thisLoader.slideDown('fast');thisParent.load(link+' #'+id+' .home-properties-section-inner-target',function(response,status,xhr){if(status=='success'){thisInner.fadeTo('fast',1);pageNav.removeClass('current');thisLink.addClass('current');thisLoader.slideUp('fast');if(typeof EREloadNewsSlider!='undefined'&&$.isFunction(EREloadNewsSlider)){EREloadNewsSlider()} 4if(typeof setVideoHeightElementor!='undefined'&&$.isFunction(setVideoHeightElementor)){setVideoHeightElementor()} 5$('html, body').animate({scrollTop:$('#'+id).offset().top-32},1000)}else{thisInner.fadeTo('fast',1);thisLoader.slideUp('fast')}})}});$body.on("click",".rhea-ultra-properties-ajax-pagination a",function(event){const $this=$(this),currentPageNum=parseInt($this.data('page')),propertiesContainer=$this.closest(".rhea-ultra-properties-container"),propertiesInner=propertiesContainer.find('.rhea-ultra-properties-inner-container'),propertiesStatsWrapper=propertiesContainer.find('.rhea-ultra-properties-top-bar-stats-wrapper'),paginationContainer=propertiesContainer.find(".rhea-ultra-properties-ajax-pagination"),paginationItems=propertiesContainer.find(".pagination a"),loader=propertiesContainer.find(".rhea_svg_loader");if($this.hasClass("current")){return!1} 6loader.slideDown();if(typeof propertiesMapNewData!=="undefined"){$.ajax({url:ajaxurl,type:'post',data:{action:'rhea_map_properties_data',paged:currentPageNum,properties_args:JSON.parse(propertiesMapNewData.rheaPropertiesArgs)},success:function(response){if(response.data){const rheaUpdateMapData=$.Event('rheaUpdateMapData',{mapProperties:JSON.stringify(response.data)});$(document).trigger(rheaUpdateMapData)}}})} 7$.ajax({url:$this.attr('href'),method:'GET',success:function(response){let $response=$(response);propertiesStatsWrapper.html($response.find(".rhea-ultra-properties-top-bar-stats-wrapper > .rhea-ultra-properties-stats"));paginationContainer.html($response.find(".rhea-ultra-properties-ajax-pagination > .pagination"));propertiesInner.html($response.find(".rhea-ultra-properties-inner-container > div"));paginationItems.removeClass('current');$this.addClass('current');loader.slideUp();$('html, body').animate({scrollTop:propertiesContainer.find('.rhea-ultra-properties-inner-container').offset().top-100},1000)}});event.preventDefault()});let rheaStatusBox=$('.rhea-ultra-property-card-three-wrapper .rhea-ultra-status-box');if(0<rheaStatusBox.length){rheaStatusBox.each(function(){if(!$.trim($(this).html()).length){$(this).addClass('rhea-empty-wrapper')}})} 8$('body').on('click','.rhea-ultra-property-card-five-popup',function(){let thisPopUp=$(this).data('src');let galleryItems=$(thisPopUp).find('.rhea-gallery-item');galleryItems.each(function(){let thisUlr=$(this).data('bg-image');$(this).css('background-image','url("'+thisUlr+'")')})});rheaEqualWidthButtons('.rhea-equal-width-btn-1','.rhea-equal-width-btn-2');let triggerAnimate=$('.rhea-trigger-animate');if(triggerAnimate.length){$('body').on('mouseenter','.rhea-trigger-animate',function(){$(this).find('.rhea-animate-item').removeClass("animate-out").addClass("animate-in")});$('body').on('mouseleave','.rhea-trigger-animate',function(){$(this).find('.rhea-animate-item').removeClass("animate-in").addClass("animate-out")});function animateBottomOnDevices(){let bodyDevice=$body.attr('data-elementor-device-mode');let bottomOnDevices=$('.bottom-on-devices');if(bodyDevice!=='desktop'&&bodyDevice!=='widescreen'){bottomOnDevices.removeClass('left span-wide').addClass('bottom')}else{bottomOnDevices.removeClass('bottom').addClass('left span-wide')}} 9animateBottomOnDevices();$(window).on('resize',function(){animateBottomOnDevices()})} 10function resetDateRangeFields($fields){$fields.each(function(){const $el=$(this);const drp=$el.data('daterangepicker');if(!drp){return} 11$el.val('');const today=moment().startOf("day");drp.setStartDate(today);drp.setEndDate(today);const $container=drp.container;$container.find('td').removeClass('active in-range start-date end-date');drp.updateCalendars();drp.updateView()})} 12$(document).on('click','.rhea-reset-btn',function(e){e.preventDefault();const $form=$(this).closest('form');if(!$form.length){console.warn("Reset button is not inside a form.");return}
13$form.find('input:not([type="submit"]):not([type="button"])').each(function(){const type=$(this).attr('type');if(type==='checkbox'||type==='radio'){$(this).prop('checked',!1)}else{$(this).val('')}});$form.find('select').each(function(){$(this).prop('selectedIndex',0).trigger('change')});$form.find('textarea').val('');$form.trigger('reset');let $slider=$form.find(".rhea_price_slider");if($slider.length>0){let min=$slider.slider("option","min");let max=$slider.slider("option","max");$slider.slider("values",[min,max])} 14let $dateFields=$form.find('.rhea-trigger-calender');if($dateFields.length>0){resetDateRangeFields($dateFields)} 15let $guestsPlaceholder=$form.find('.rhea-guests-field-dropdown');if($guestsPlaceholder.length>0){$guestsPlaceholder.find('.adults i').text('1');$guestsPlaceholder.find('span:not(.adults) i').text('0')}});function initRheaStickyContainers(){const $containers=$('.rhea-sticky-container');if(!$containers.length){return} 16const STICKY_MIN_WIDTH=996;const $window=$(window);const $adminBar=$('#wpadminbar');let adminBarHeight=$adminBar.length?$adminBar.outerHeight():0;$containers.each(function(){const $el=$(this);if($el.data('rheaStickyInitialized')){return} 17$el.data('rheaStickyInitialized',!0);const mode=$el.data('rhea-sticky-mode')||'on_scroll';const extraOffset=parseFloat($el.data('rhea-sticky-offset'))||0;const topSpacing=parseFloat($el.data('rhea-sticky-top-spacing'))||0;const customZ=$el.data('rhea-sticky-z-index');const animation=$el.data('rhea-sticky-animation');const animClass=animation==='fade-in'?'rhea-sticky-anim-fade-in':animation==='fade-in-down'?'rhea-sticky-anim-fade-in-down':animation==='slide-down'?'rhea-sticky-anim-slide-down':'';const ALL_ANIM_CLASSES='rhea-sticky-anim-fade-in rhea-sticky-anim-fade-in-down rhea-sticky-anim-slide-down';const $placeholder=mode==='on_scroll'?$('<div class="rhea-sticky-placeholder"></div>').insertAfter($el).hide():null;const showPlaceholder=$placeholder?()=>{$placeholder.height($el.outerHeight()).show()}:()=>{};const hidePlaceholder=$placeholder?()=>{$placeholder.hide()}:()=>{};const syncPlaceholderHeight=$placeholder?()=>{if(isActive){$placeholder.height($el.outerHeight())}}:()=>{};let baseOffsetTop=$el.offset().top;let isActive=!1;let ticking=!1;const eventNamespace='.rheaSticky_'+Date.now()+'_'+Math.random().toString(36).slice(2);const isAboveBreakpoint=()=>$window.width()>=STICKY_MIN_WIDTH;const activate=()=>{showPlaceholder();const cssProps={top:(adminBarHeight+topSpacing)+'px'};if(customZ){cssProps['z-index']=customZ} 18if(animClass){$el.removeClass(ALL_ANIM_CLASSES).addClass('is-sticky').css(cssProps).addClass(animClass)}else{$el.addClass('is-sticky').css(cssProps)} 19isActive=!0};const deactivate=()=>{if(!isActive){return} 20isActive=!1;hidePlaceholder();$el.removeClass('is-sticky'+(animClass?' '+ALL_ANIM_CLASSES:'')).css({top:'','z-index':''})};const update=()=>{if(!isAboveBreakpoint()){deactivate();return} 21const scrollTop=$window.scrollTop();let triggerPoint;if(mode==='default'){triggerPoint=extraOffset}else{if(!isActive){baseOffsetTop=$el.offset().top} 22triggerPoint=baseOffsetTop+extraOffset-adminBarHeight} 23if(scrollTop>triggerPoint){activate()}else{deactivate()}};const onScroll=()=>{if(ticking){return} 24ticking=!0;requestAnimationFrame(()=>{update();ticking=!1})};let resizeTimer;const onResize=()=>{clearTimeout(resizeTimer);resizeTimer=setTimeout(()=>{adminBarHeight=$adminBar.length?$adminBar.outerHeight():0;if(isActive){deactivate()} 25baseOffsetTop=$el.offset().top;update();syncPlaceholderHeight()},150)};if(window.ResizeObserver&&$placeholder){let roTimer;new ResizeObserver(()=>{clearTimeout(roTimer);roTimer=setTimeout(syncPlaceholderHeight,100)}).observe($el[0])} 26$window.on('scroll'+eventNamespace,onScroll);$window.on('resize'+eventNamespace,onResize);$el.data('rheaStickyDestroy',()=>{$window.off(eventNamespace);clearTimeout(resizeTimer);deactivate();if($placeholder){$placeholder.remove()} 27$el.removeData('rheaStickyInitialized rheaStickyDestroy')});update()})} 28$(function(){initRheaStickyContainers()});$(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/global',function(){initRheaStickyContainers()});elementorFrontend.hooks.addAction('frontend/element_ready/rhea-global-template.default',function(){initRheaStickyContainers()})});const rheaObserverCache=new Map();function getOrCreateObserver(threshold){if(rheaObserverCache.has(threshold)){return rheaObserverCache.get(threshold)} 29const observer=new IntersectionObserver((entries,obs)=>
29{entries.forEach(entry=>{if(!entry.isIntersecting){return} 30const el=entry.target;const delay=Number(el.dataset.rheaAnimationDelay||0);if(delay>0){setTimeout(()=>el.classList.add('rhea-animated'),delay)}else{el.classList.add('rhea-animated')} 31obs.unobserve(el)})},{threshold,rootMargin:'0px'});rheaObserverCache.set(threshold,observer);return observer} 32function initRheaScrollAnimations(){const elements=document.querySelectorAll('[data-rhea-scroll-animation]');if(!elements.length){return} 33elements.forEach(el=>{const duration=Number(el.dataset.rheaAnimationDuration||1000);const easing=el.dataset.rheaAnimationEasing||'ease-out';const offset=Number(el.dataset.rheaAnimationOffset||20);const threshold=offset/100;el.style.setProperty('--rhea-animation-duration',`${duration}ms`);el.style.setProperty('--rhea-animation-easing',easing);const observer=getOrCreateObserver(threshold);observer.observe(el)})} 34$(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/global',function(){initRheaScrollAnimations()})});$(document).ready(function(){initRheaScrollAnimations()})});window.rheaEqualWidthButtons=function(btn1,btn2){const rheaW1=$(btn1).innerWidth();const rheaW2=$(btn2).innerWidth();if(rheaW1>rheaW2){$(btn2).css('width',rheaW1+"px")}else{$(btn1).css('width',rheaW2+"px")}} 35window.rheaMenuDisplayScreen=function(size,widgetID){const lgMenu=$(".rhea-lg-menu-"+widgetID);const responsiveMenu=$(".rhea-responsive-men-"+widgetID);if(innerWidth<size){lgMenu.hide();responsiveMenu.show()}else{lgMenu.show();responsiveMenu.hide()}} 36window.rheaSelectPicker=function(id){if($().selectpicker){$(id).selectpicker({iconBase:'fas',dropupAuto:'true',width:"100%",tickIcon:'fa-check',selectAllText:'<span class="rhea_select_bs_buttons rhea_bs_select"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><polygon points="22.1 9 20.4 7.3 14.1 13.9 15.8 15.6 "/><polygon points="27.3 7.3 16 19.3 9.6 12.8 7.9 14.5 16 22.7 29 9 "/><polygon points="1 14.5 9.2 22.7 10.9 21 2.7 12.8 "/></svg></span>',deselectAllText:'<span class="rhea_select_bs_buttons rhea_bs_deselect"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><style type="text/css"> \n'+'\t.rh-st0{fill:none;stroke:#000000;stroke-width:2;stroke-miterlimit:10;}\n'+'</style><path class="rhea_des rh-st0" d="M3.4 10.5H20c3.8 0 7 3.1 7 7v0c0 3.8-3.1 7-7 7h-6"/><polyline class="rhea_des rh-st0" points="8.4 15.5 3.4 10.5 8.4 5.5 "/></svg></span>'});$(id).on('changed.bs.select',function(){if($(this).hasClass('required')){$(this).valid()}})}};window.rheaSearchFields=function(id,fieldCount,topFields,collapsedFields){var divList=$(id).find('.rhea_prop_search__option');divList.sort(function(a,b){return $(a).data("key-position")-$(b).data("key-position")});$(topFields).html(divList).promise().done(function(){var getDataTopBar=fieldCount;var advanceSearch=$(topFields).find('.rhea_prop_search__option');var prePendTo=$(collapsedFields);var i=0;var j=0;advanceSearch.each(function(){if(i<getDataTopBar+1){if($(this).hasClass('hide-fields')){j=2} 37if($(this).hasClass('rvr-hide-fields')){j++}} 38i++});var advanceElements=getDataTopBar+j+1;if(advanceElements>0){var advanceFieldsSmart=$(topFields).find('.rhea_prop_search__option:nth-of-type(n+'+advanceElements+')');advanceFieldsSmart.detach().prependTo(prePendTo)}})};window.rheaOpenSearchPopup=function(trigger,popup){$(trigger).on('click',function(){$(popup).addClass('active');$(popup).fadeIn('fast')});$('.rhea-popup-close').on('click',function(){$(popup).removeClass('active');$(popup).fadeOut('fast');$(trigger).removeClass('rhea_advance_open')})} 39window.rheaPropertySlider=function(id,min,max,pos='before',separator=',',currency='$',min_searched='',max_searched='',step=100){function thousandSeparator(n){if(typeof n==='number'){n+='';var x=n.split('.');var x1=x[0];var x2=x.length>1?'.'+x[1]:'';var rgx=/(\d+)(\d{3})/;while(rgx.test(x1)){x1=x1.replace(rgx,'$1'+separator+'$2')} 40return x1+x2}else{return n}} 41var getPosition=pos;var PosBefore='';var PosAfter='';if(getPosition==='before'){PosBefore=currency}else{PosAfter=currency} 42var minVal=min;var maxVal=max;if(min_searched!==''){minVal=min_searched} 43if(max_searched!==''){maxVal=max_searched} 44$(id).slider({range:!0,min:min,max:max,step:step,values:[minVal,maxVal],slide:function(event,ui){if(ui.values[0]>=ui.values[1]-Math.round(ui.values[1]/10)){return!1} 45for(var i=0;i<ui.values.length;++i){$("input.rhea_slider_value[data-index="+i+"]").val(ui.values[i]);$("span.rhea_price_display[data-index="+i+"]").text(PosBefore+thousandSeparator(ui.values[i])+PosAfter)}}})};window.rheaSearchAdvanceState=function(buttonID,wrapperID){$(buttonID).on('click',function(){$(buttonID).toggleClass('rhea_advance_open');if($(buttonID).hasClass('rhea_advance_open')){$(wrapperID).slideDown('normal')}else{$(wrapperID).slideUp('normal')}})};window.rheaFeaturesState=function(buttonID,wrapperID){$(buttonID).on('click',function(){$(buttonID).toggleClass('rhea_features_open');if($(buttonID).hasClass('rhea_features_open')){$(wrapperID).slideDown('normal')}else{$(wrapperID).slideUp('normal')}})};window.rheaSearchStatusChange=function(priceOther,PriceRent,statusID,rent_status='for-rent'){if(''!==rent_status){var rhea_property_status_changed=function(new_status){var price_for_others=$(priceOther);var price_for_rent=$(PriceRent);if(price_for_others.length>0&&price_for_rent.length>0){if(new_status===rent_status){price_for_others.addClass('hide-fields').find('select').prop('disabled',!0);price_for_rent.removeClass('hide-fields').find('select').prop('disabled',!1)}else{price_for_rent.addClass('hide-fields').find('select').prop('disabled',!0);price_for_others.removeClass('hide-fields').find('select').prop('disabled',!1)}}};$(statusID).change(function(e){var selected_status=$(this).val();rhea_property_status_changed(selected_status);$('.rhea_multi_select_picker').selectpicker('refresh')});var selected_status=$(statusID).val();if(selected_status===rent_status){rhea_property_status_changed(selected_status)}}};window.minMaxPriceValidation=function(minID,maxID){$(minID).add(maxID).on('change',function(){var min_text_val=$(minID).val();
45var min_int_val=(isNaN(min_text_val))?0:parseInt(min_text_val);var max_text_val=$(maxID).val();var max_int_val=(isNaN(max_text_val))?0:parseInt(max_text_val);if((min_int_val>=max_int_val)&&(min_int_val!=0)&&(max_int_val!=0)){$(minID).add(maxID).siblings('.dropdown-toggle').addClass('rhea-error')}else{$(minID).add(maxID).siblings('.dropdown-toggle').removeClass('rhea-error')}})};window.minMaxRentPriceValidation=function(minID,maxID){$(minID).add(maxID).on('change',function(){var min_text_val=$(minID).val();var min_int_val=(isNaN(min_text_val))?0:parseInt(min_text_val);var max_text_val=$(maxID).val();var max_int_val=(isNaN(max_text_val))?0:parseInt(max_text_val);if((min_int_val>=max_int_val)&&(min_int_val!=0)&&(max_int_val!=0)){$(minID).add(maxID).siblings('.dropdown-toggle').addClass('rhea-error')}else{$(minID).add(maxID).siblings('.dropdown-toggle').removeClass('rhea-error')}})};window.minMaxAreaValidation=function(minID,maxID){$(minID).add(maxID).on('change',function(obj,e){var min_text_val=$(minID).val();var min_int_val=(isNaN(min_text_val))?0:parseInt(min_text_val);var max_text_val=$(maxID).val();var max_int_val=(isNaN(max_text_val))?0:parseInt(max_text_val);if((min_int_val>=max_int_val)&&(min_int_val!=0)&&(max_int_val!=0)){$(minID).add(maxID).addClass('rhea-error')}else{$(minID).add(maxID).removeClass('rhea-error')}})};window.rheaLoadMapBoxMap=function(id,settingObj){let ThisMapID=id,mapBoxContainer=document.getElementById(id);mapBoxContainer.className=mapBoxContainer.className+' mapbox-dl-map-wrap rhea-mapbox-wrap';if(typeof settingObj!=="undefined"){if(0<settingObj.properties.length&&typeof settingObj.settings.api_key!=='undefined'){const eleMapBoxAPI=settingObj.settings.api_key,mapBoxPropertiesData=settingObj.properties,widgetSettings=settingObj.settings,mapBoxStyle=widgetSettings.style,mapBoxMarkerType='pin';let tileLayer=L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>'});let mapBounds=[];for(let i=0;i<mapBoxPropertiesData.length;i++){if(mapBoxPropertiesData[i].lat&&mapBoxPropertiesData[i].lng){mapBounds.push([mapBoxPropertiesData[i].lat,mapBoxPropertiesData[i].lng])}} 46let mapBoxCenter=L.latLng(27.664827,-81.515755);if(1===mapBounds.length){mapBoxCenter=L.latLng(mapBounds[0])} 47L.mapbox.accessToken=eleMapBoxAPI;const mapBoxProperties=L.mapbox.map(mapBoxContainer).setView(mapBoxCenter,12).addLayer(L.mapbox.styleLayer(mapBoxStyle));if(1<mapBounds.length){mapBoxProperties.fitBounds(mapBounds)} 48let markers=new L.MarkerClusterGroup();for(let i=0;i<mapBoxPropertiesData.length;i++){if(mapBoxPropertiesData[i].lat&&mapBoxPropertiesData[i].lng){let propertyMapData=mapBoxPropertiesData[i],markerLatLng=L.latLng(propertyMapData.lat,propertyMapData.lng),propertyMarker,markerOptions={id:propertyMapData.id,riseOnHover:!0};if(propertyMapData.title){markerOptions.title=propertyMapData.title} 49if('pin'===mapBoxMarkerType){let iconOptions={iconUrl:propertyMapData.icon,iconSize:[42,57],iconAnchor:[20,57],popupAnchor:[1,-54]};if(propertyMapData.retinaIcon){iconOptions.iconRetinaUrl=propertyMapData.retinaIcon} 50markerOptions.icon=L.icon(iconOptions);propertyMarker=L.marker(markerLatLng,markerOptions)}else{propertyMarker=new L.CircleMarker(markerLatLng,{fillColor:'#1cb2ff',color:'#1cb2ff',weight:2,fillOpacity:0.6,opacity:0.6,radius:25}).addTo(mapBoxProperties)} 51let popupContentWrapper=document.createElement("div");popupContentWrapper.className='mapboxgl-popup-content';let popupContent="";if(propertyMapData.thumb){popupContent+='<a class="mapbox-popup-thumb-link" href="'+propertyMapData.url+'"><img class="mapbox-popup-thumb" src="'+propertyMapData.thumb+'" alt="'+propertyMapData.title+'"/></a>'} 52if(propertyMapData.title){popupContent+='<h5 class="mapbox-popup-title"><a class="mapbox-popup-link" href="'+propertyMapData.url+'">'+propertyMapData.title+'</a></h5>'} 53if(propertyMapData.price){popupContent+='<p><span class="mapbox-popup-price">'+propertyMapData.price+'</span></p>'} 54popupContentWrapper.innerHTML=popupContent;propertyMarker.popupContents=popupContentWrapper;propertyMarker.id=propertyMapData.id;propertyMarker.className='mapboxgl-wrapper';propertyMarker.bindPopup(popupContentWrapper);markers.addLayer(propertyMarker)}} 55mapBoxProperties.addLayer(markers);mapBoxProperties.scrollWheelZoom.disable();mapBoxProperties.on('popupopen',function(e){var px=mapBoxProperties.project(e.target._popup._latlng);px.y-=e.target._popup._container.clientHeight/2;mapBoxProperties.panTo(mapBoxProperties.unproject(px),{animate:!0})});function is_marker_in_cluster(marker,cluster){let length=cluster.length;for(let i=0;i<length;i++){if(cluster[i].id==marker){return!0}} 56return!1} 57function mapbox_open_popup(markerid){mapBoxProperties.eachLayer(function(layer){if(typeof layer._childCount!=="undefined"){let markersincluster=layer.getAllChildMarkers();if(is_marker_in_cluster(markerid,markersincluster)){layer.spiderfy();markersincluster.forEach(function(property_marker){if(property_marker.id===parseInt(markerid)){property_marker.openPopup()}})}}else{if(layer.id===parseInt(markerid)){layer.openPopup()}}})} 58function mapbox_close_popup(markerid){mapBoxProperties.eachLayer(function(layer){if(typeof layer._childCount!=="undefined"){var markersincluster=layer.getAllChildMarkers();if(is_marker_in_cluster(markerid,markersincluster)){layer.unspiderfy();markersincluster.forEach(function(property_marker){if(property_marker.id==parseInt(markerid)){layer.closePopup()}})}}else{if(layer.id==parseInt(markerid)){layer.closePopup();mapBoxProperties.closePopup()}}})} 59let realhomesInfoboxPopupTrigger=function(){$('.rh_popup_info_map').each(function(i){let property_ID=$(this).attr('data-rh-id').replace(/[^\d.]/g,'');$(this).on('mouseenter',function(){mapbox_open_popup(property_ID)}).on('mouseleave',function(){mapbox_close_popup(property_ID)})});return!1};let RHisMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)?!0:!1;if(!RHisMobile){realhomesInfoboxPopupTrigger()}}else{var fallbackLayer=L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'});
59var fallbackMapOptions={center:[27.664827,-81.515755],zoom:12};var fallbackMap=L.map(ThisMapID,fallbackMapOptions);fallbackMap.addLayer(fallbackLayer)}}};window.rheaLocationsHandler=function(hierarchicalLocations,locationPlaceholders,selectBoxesIDs,slugsInQueryParams,selectBoxesCount,anyValue,multiSelect){(function(){prepareSelectBoxes();let parentLocations=[];for(let selectIndex=0;selectIndex<selectBoxesCount;selectIndex++){const currentSelect=$('#'+selectBoxesIDs[selectIndex]);const currentIsLast=(selectBoxesCount===(selectIndex+1));if(selectIndex===0){parentLocations=addParentLocations(currentSelect,currentIsLast)}else{if(parentLocations.length>0){let currentLocations=[];const previousSelect=$('#'+selectBoxesIDs[selectIndex-1]);if(previousSelect.val()===anyValue){for(let i=0;i<parentLocations.length;i++){let tempLocations=addChildrenLocations(currentSelect,parentLocations[i].children,'',currentIsLast);if(tempLocations.length>0){currentLocations=$.merge(currentLocations,tempLocations)}}}else{let previousLocation=searchLocation(previousSelect.val(),hierarchicalLocations);if(previousLocation&&previousLocation.children.length>0){currentLocations=addChildrenLocations(currentSelect,previousLocation.children,'',currentIsLast)}} 60previousSelect.change(updateChildSelect);parentLocations=currentLocations}} 61if(parentLocations.length===0){disableSelect(currentSelect);break}else{selectParamOption(currentSelect)}}})();function addParentLocations(targetSelect,addAllChildren){let addedLocations=[];let insertionCounter=0;hierarchicalLocations.forEach(function(currentLocation,index,locationsArray){targetSelect.append('<option value="'+currentLocation.slug+'">'+currentLocation.name+'</option>');addedLocations[insertionCounter++]=currentLocation;if(addAllChildren&¤tLocation.children.length){addChildrenLocations(targetSelect,currentLocation.children,'- ',addAllChildren)}});return addedLocations} 62function addChildrenLocations(targetSelect,childrenLocations,prefix,addAllChildren){let addedChildrenLocations=[];let insertionCounter=0;childrenLocations.forEach(function(currentLocation,index,locationsArray){targetSelect.append('<option value="'+currentLocation.slug+'">'+prefix+currentLocation.name+'</option>');addedChildrenLocations[insertionCounter++]=currentLocation;if(addAllChildren&¤tLocation.children.length){let tempLocations=addChildrenLocations(targetSelect,currentLocation.children,prefix+'- ',addAllChildren);if(tempLocations.length>0){addedChildrenLocations=$.merge(addedChildrenLocations,tempLocations)}}});return addedChildrenLocations}
63function searchLocation(slug,locations){let targetLocation=!1;for(let index=0;index<locations.length;index++){let currentLocation=locations[index];if(currentLocation.slug===slug){targetLocation=currentLocation;break} 64if(currentLocation.children.length>0){targetLocation=searchLocation(slug,currentLocation.children);if(targetLocation){break}}} 65return targetLocation} 66function updateChildSelect(event){let selectedSlug=$(this).val();let currentSelectIndex=selectBoxesIDs.indexOf($(this).attr('id'));if(selectedSlug===anyValue&&(currentSelectIndex>-1)&&(currentSelectIndex<(selectBoxesCount-1))){for(let s=currentSelectIndex;s<(selectBoxesCount-1);s++){let childSelectIsLast=(selectBoxesCount===(s+2));let childSelect=$('#'+selectBoxesIDs[s+1]);childSelect.empty();addAnyOption(childSelect);let anyChildLocations=[];$('#'+selectBoxesIDs[s]+' > option').each(function(){if(this.value!==anyValue){let relatedLocation=searchLocation(this.value,hierarchicalLocations);if(relatedLocation&&relatedLocation.children.length>0){let tempChildrenLocations=addChildrenLocations(childSelect,relatedLocation.children,'',childSelectIsLast);if(tempChildrenLocations.length>0){anyChildLocations=$.merge(anyChildLocations,tempChildrenLocations)}}}});if(anyChildLocations.length>0){enableSelect(childSelect)}else{disableSelect(childSelect);break}}}else{let selectedParentLocation=searchLocation(selectedSlug,hierarchicalLocations);if(selectedParentLocation){let childLocations=[];for(let childSelectIndex=currentSelectIndex+1;childSelectIndex<selectBoxesCount;childSelectIndex++){let childSelectIsLast=(selectBoxesCount===(childSelectIndex+1));let childSelect=$('#'+selectBoxesIDs[childSelectIndex]);childSelect.empty();if(childLocations.length===0){if(selectedParentLocation.children.length>0){addAnyOption(childSelect);let tempLocations=addChildrenLocations(childSelect,selectedParentLocation.children,'',childSelectIsLast);if(tempLocations.length>0){childLocations=tempLocations}}}else if(childLocations.length>0){let currentLocations=[];for(let i=0;i<childLocations.length;i++){let tempChildLocation=childLocations[i];if(tempChildLocation.children.length>0){addAnyOption(childSelect);let tempLocations=addChildrenLocations(childSelect,tempChildLocation.children,'',childSelectIsLast);if(tempLocations.length>0){currentLocations=$.merge(currentLocations,tempLocations)}}} 67childLocations=currentLocations} 68if(childLocations.length>0){enableSelect(childSelect)}else{disableSelect(childSelect);break}}}}} 69function addAnyOption(targetSelect){if(targetSelect.has('option').length>0){return} 70let targetSelectIndex=selectBoxesIDs.indexOf(targetSelect.attr('id'));
70if(targetSelect.parents('.rhea_prop_search__select').hasClass('rhea_location_prop_search_'+targetSelectIndex)){targetSelect.append('<option value="'+anyValue+'" selected="selected">'+locationPlaceholders[targetSelectIndex]+'</option>')}} 71function disableSelect(targetSelect){let targetSelectID=targetSelect.attr('id');targetSelect.empty();targetSelect.closest('.option-bar').addClass('disabled');if(targetSelect.is(':enabled')){targetSelect.prop('disabled',!0);targetSelect.parents('.rhea_prop_search__select').addClass('rhea_disable_parent')} 72let targetSelectIndex=selectBoxesIDs.indexOf(targetSelectID);let nextSelectBoxesCount=selectBoxesCount-(targetSelectIndex+1);if(nextSelectBoxesCount>0){let nextSelect=$('#'+selectBoxesIDs[targetSelectIndex+1]);disableSelect(nextSelect)}} 73function enableSelect(targetSelect){let targetSelectID=targetSelect.attr('id');if(targetSelect.is(':disabled')){targetSelect.prop('disabled',!1)} 74targetSelect.parents('.rhea_prop_search__select').map(function(){if($(this).hasClass('rhea_disable_parent')){$(this).removeClass('rhea_disable_parent')}});let optionWrapper=targetSelect.closest('.option-bar');if(optionWrapper.hasClass('disabled')){optionWrapper.removeClass('disabled')}} 75function selectParamOption(currentSelect){if(Object.keys(slugsInQueryParams).length>0){let selectName=currentSelect.attr('name');if(typeof selectName!=="undefined"){selectName=selectName.replace(/[\[\]]+/g,'')} 76if(typeof slugsInQueryParams[selectName]!=='undefined'){let tempValue=slugsInQueryParams[selectName];if(Array.isArray(tempValue)){for(let i=0;i<tempValue.length;i++){currentSelect.find('option[value="'+tempValue[i]+'"]').prop('selected',!0)}}else{currentSelect.find('option[value="'+tempValue+'"]').prop('selected',!0)}}}} 77function prepareSelectBoxes(){for(let selectIndex=0;selectIndex<selectBoxesCount;selectIndex++){let currentSelectId=selectBoxesIDs[selectIndex];let currentSelect=$('#'+currentSelectId);if((multiSelect!=='multiple')&&(currentSelect.has('option').length===0)&&(currentSelect.parents('.rhea_prop_search__select').hasClass('rhea_location_prop_search_'+selectIndex))){addAnyOption(currentSelect)}}}};var rheaLocationSuccessList=function(data,thisParent,refreshList=!1){if(!0===refreshList){thisParent.find('option').not(':selected, .none').remove().end()} 78var getSelected=$(thisParent).val();jQuery.each(data,function(index,text){if(getSelected){if(getSelected.indexOf(text[0])<0){thisParent.append($('<option value="'+text[0]+'">'+text[1]+'</option>'))}}else{thisParent.append($('<option value="'+text[0]+'">'+text[1]+'</option>'))}});thisParent.selectpicker('refresh');$(parent).find('ul.dropdown-menu li:first-of-type a').focus();$(parent).find('input').focus()};var rheaLoaderFadeIn=function(parent){$(parent).find('.rhea-location-ajax-loader').fadeIn('fast')};var rheaLoaderFadeOut=function(parent){$(parent).find('.rhea-location-ajax-loader').fadeOut('fast')};var rheaTriggerAjaxOnLoad=function(parent,thisParent,ajaxurl,hideEmpty,SortAlpha,fieldValue=''){$.ajax({url:ajaxurl,dataType:'json',delay:250,data:{action:'rhea_get_location_options',query:fieldValue,hideemptyfields:hideEmpty,sortplpha:SortAlpha},beforeSend:rheaLoaderFadeIn(parent),success:function(data){rheaLoaderFadeOut(parent);rheaLocationSuccessList(data,thisParent,!0)}})};var rheaTriggerAjaxOnScroll=function(parent,thisParent,farmControl,ajaxurl,hideEmpty,SortAlpha,fieldValue=''){var paged=2;farmControl.on('keyup',function(e){paged=2;fieldValue=$(this).val()});var targetInner=$(parent).find('div.inner');targetInner.on('scroll',function(){var thisInner=$(this);var thisInnerHeight=thisInner.innerHeight();var getScrollIndex=thisInner.scrollTop()+thisInnerHeight;if(getScrollIndex>=$(this)[0].scrollHeight){$.ajax({url:ajaxurl,dataType:'json',delay:250,data:{action:'rhea_get_location_options',query:fieldValue,page:paged,hideemptyfields:hideEmpty,sortplpha:SortAlpha},beforeSend:rheaLoaderFadeIn(parent),success:function(data){rheaLoaderFadeOut(parent);paged++;rheaLocationSuccessList(data,thisParent,!1);if(!$.trim(data)){$(parent).find('.rhea-location-ajax-loader').fadeTo("fast",0)}}})}})};window.rheaAjaxSelect=function(parent,id,ajaxurl,hideEmpty,SortAlpha){var farmControl=$(parent).find('.form-control');var thisParent=$(id);rheaTriggerAjaxOnScroll(parent,thisParent,farmControl,ajaxurl,hideEmpty,SortAlpha);rheaTriggerAjaxOnLoad(parent,thisParent,ajaxurl,hideEmpty,SortAlpha);farmControl.on('keyup',function(e){var fieldValue=$(this).val();fieldValue=fieldValue.trim();var wordcounts=jQuery.trim(fieldValue).length;$(parent).find('.rhea-location-ajax-loader').fadeTo("fast",1);if(wordcounts>0){$.ajax({url:ajaxurl,dataType:'json',delay:250,data:{action:'rhea_get_location_options',query:fieldValue,hideemptyfields:hideEmpty,sortplpha:SortAlpha},beforeSend:rheaLoaderFadeIn(parent),success:function(data){rheaLoaderFadeOut(parent);thisParent.find('option').not(':selected').remove().end();if(fieldValue&&data){rheaLocationSuccessList(data,thisParent)}else{thisParent.find('option').not(':selected').remove().end();thisParent.selectpicker('refresh');$(parent).find('ul.dropdown-menu li:first-of-type a').focus();$(parent).find('input').focus()}}})}else{rheaTriggerAjaxOnLoad(parent,thisParent,ajaxurl,hideEmpty,SortAlpha)}})};window.searchFormAjaxKeywords=function(id,url){var inputField=$(id).find('input');inputField.keyup(function(){var charCount=inputField.val().length;if(charCount>1){$(id).find('.rhea-properties-data-list').slideDown();$(id).find('.rhea_sfoi_ajax_loader').show();$(id).find('.rhea-field-icon-wrapper').addClass('rhea-search-fade') 79$.ajax({url:url,type:'POST',data:{action:'rh_sfoi_data_fetch',keyword:$(this).val()},success:function(data){$(id).find('.rhea-properties-data-list').html(data);$(id).find('.rhea_sfoi_ajax_loader').hide();$(id).find('.rhea-field-icon-wrapper').removeClass('rhea-search-fade')}})}else{$(id).find('.rhea-properties-data-list').slideUp()}})} 80window.rheaTestimonialsTwoCarousel=function(id,itemsFluid=4,items=3,itemsTab=2,itemsMob=1,gap=30,dots=!0,rtl=!1){if($().owlCarousel){$(id).owlCarousel({loop:!1,dots:dots,nav:!1,margin:gap,rtl:rtl,responsive:{0:{items:itemsMob},767:{items:itemsTab},1024:{items:items},1440:{items:itemsFluid}}})}};window.rheaTestimonialsThreeCarousel=function(slide1,slide2,navSelectors,animationspeed='600',slideshowspeed='5000',slideShow1=!0,direction1='horizontal',animation1='fade',reverse1=!1,animation2='fade',reverse2=!1){if($().flexslider){$(slide1).flexslider({controlNav:!1,directionNav:!1,animationLoop:!0,slideshow:slideShow1,direction:direction1,animation:animation1,reverse:reverse1,animationSpeed:animationspeed,slideshowSpeed:slideshowspeed});$(slide2).flexslider({controlNav:!1,animation:animation2,animationLoop:!0,slideshow:slideShow1,reverse:reverse2,customDirectionNav:$(navSelectors),sync:$(slide1),animationSpeed:animationspeed,slideshowSpeed:slideshowspeed})}};window.rheaTestimonialsFourCarousel=function(slider,navSelectors,animation='fade',animationSpeed='600',reverse=!1,slideshow=!1,slideshowSpeed='5000'){if($().flexslider){$(slider).flexslider({controlNav:!1,directionNav:!1,animation:animation,animationSpeed:animationSpeed,reverse:reverse,slideshow:slideshow,slideshowSpeed:slideshowSpeed});$(navSelectors).on('click',function(event){$(slider).flexslider($(this).attr('href'));event.preventDefault()})}};window.EREloadNewsSlider=function(){if($().flexslider){$('.rhea-listing-news-slider').each(function(){$(this).flexslider({animation:"slide",slideshow:!1,controlNav:!1,customDirectionNav:$(this).next('.rhea-news-directional-nav').find('a')})})}} 81window.ultraFeaturedSlider=function(s1,s2){var s1=$(s1);var s2=$(s2);var maxItems=3;var $sliderItemTotal=$(".rhea-slider-item-total");s2.flexslider({move:1,directionNav:!1,animation:"slide",controlNav:!1,animationLoop:!1,slideshow:!1,itemWidth:10,itemMargin:12,asNavFor:s1,maxItems:maxItems,minItems:1,start:function(item){slideCounter(item)},after:function(item){slideCounter(item)}});function slideCounter(item){$sliderItemTotal.text(item.count-maxItems-item.currentSlide)} 82s1.flexslider({smoothHeight:!0,animation:"fade",controlNav:!1,animationLoop:!1,slideshow:!1,sync:s2})} 83window.rheaSubmitContactForm=function(formID,btnSelector){if(jQuery().val
83idate&&jQuery().ajaxSubmit){const submitButton=$(btnSelector),theForm=$(formID),ajaxLoader=theForm.find('.rhea-ajax-loader'),messageContainer=theForm.find('.rhea-message-container'),errorContainer=theForm.find(".rhea-error-container"),redirectPage=theForm.data('redirect-url'),formOptions={beforeSubmit:function(){submitButton.attr('disabled','disabled');ajaxLoader.fadeIn('fast');messageContainer.fadeOut('fast');errorContainer.fadeOut('fast')},success:function(ajax_response,statusText,xhr,$form){var response=$.parseJSON(ajax_response);ajaxLoader.fadeOut('fast');submitButton.removeAttr('disabled');if(response.success){$form.resetForm();messageContainer.html(response.message).fadeIn('fast');setTimeout(function(){messageContainer.fadeOut('slow')},5000);if(typeof inspiryResetReCAPTCHA=='function'){inspiryResetReCAPTCHA()} 84if(redirectPage){setTimeout(function(){window.location.replace(redirectPage)},1000)}}else{errorContainer.html(response.message).fadeIn('fast')}}};theForm.validate({errorLabelContainer:errorContainer,submitHandler:function(form){$(form).ajaxSubmit(formOptions)}})}};window.rheaAgentToggleV4=function(ID){let agentCard=$(ID).find('.rhea-v4-agent-slide');agentCard.each(function(){let agentWrapper=$(this).find('.rhea_agent_expand_trigger');let agentExpander=$(this).find('.agent-detail-expander');agentWrapper.on('click',function(e){e.preventDefault();agentExpander.slideToggle()})})} 85function isInViewport(node){var rect=node.getBoundingClientRect();return((rect.height>0||rect.width>0)&&rect.bottom>=0&&rect.right>=0&&rect.top<=(window.innerHeight||document.documentElement.clientHeight)&&rect.left<=(window.innerWidth||document.documentElement.clientWidth))} 86function scrollParallax(selector){var scrolled=jQuery(window).scrollTop();jQuery(selector).each(function(index,element){var initY=jQuery(this).offset().top;var height=jQuery(this).height();var endY=initY+jQuery(this).height();var visible=isInViewport(this);if(visible){var diff=scrolled-initY;var ratio=Math.round((diff/height)*100);jQuery(this).css('background-position','center '+parseInt((ratio*1))+'px')}})} 87jQuery('.ere_cta_parallax').each(function(){scrollParallax(this)});jQuery(window).scroll(function(){jQuery('.ere_cta_parallax').each(function(){scrollParallax(this)})});window.rheaTestimonialsFiveCarousel=function(settings){if($().owlCarousel){let carouselOptions={items:1,margin:0,nav:!1,autoHeight:!0,loop:settings.loop,autoplay:settings.autoplay,autoplayTimeout:settings.autoplaySpeed,autoplayHoverPause:!0,smartSpeed:settings.animationSpeed,dotsContainer:settings.dots,rtl:$('body').hasClass('rtl')};if('fade'===settings.slideAnimation){carouselOptions.animateOut='fadeOut';carouselOptions.animateIn='fadeIn'} 88$(settings.id).owlCarousel(carouselOptions)}};window.rheaImageCarousel=function(settings){if($().slick){const imageCarouselWrap=$(settings.wrapper),imageCarousel=$(settings.id);imageCarousel.on('init',function(event,slick,direction){$(event.currentTarget).show()});imageCarousel.slick({fade:settings.fade,speed:settings.speed,infinite:settings.infinite,autoplay:settings.autoplay,autoplaySpeed:settings.autoplaySpeed,pauseOnHover:settings.pauseOnHover,pauseOnInteraction:settings.pauseOnInteraction,slidesToShow:settings.slidesToShow,slidesToScroll:settings.slidesToScroll,rows:1,slidesPerRow:1,dots:settings.dots,arrows:settings.arrows,prevArrow:imageCarouselWrap.find('.rhea-image-carousel-button-prev'),nextArrow:imageCarouselWrap.find('.rhea-image-carousel-button-next'),vertical:!1,mobileFirst:!0,adaptiveHeight:!1,rtl:$('body').hasClass('rtl'),responsive:[{breakpoint:1025,settings:{slidesToShow:settings.slidesToShow,slidesToScroll:settings.slidesToScroll}},{breakpoint:768,settings:{slidesToShow:settings.slidesToShowTablet,slidesToScroll:settings.slidesToScrollTablet}},{breakpoint:380,settings:{slidesToShow:settings.slidesToShowMobile,slidesToScroll:settings.slidesToScrollMobile}},{breakpoint:0,settings:{slidesToShow:1,slidesToScroll:1}}]})}};window.rheaAccordion=function(id){$('#'+id+' > .rhea-accordion-title').on('click',function(event){var $this=$(this);if($this.hasClass('rhea-accordion-active')){$this.next('.rhea-accordion-content').slideUp(500,function(){$this.removeClass('rhea-accordion-active')})}else{$this.siblings('.rhea-accordion-title').removeClass('rhea-accordion-active');$this.addClass('rhea-accordion-active').next('.rhea-accordion-content').slideDown(500).siblings('.rhea-accordion-content').slideUp(500)}})};window.rheaTabs=function(id){const tabsContainer=$('#'+id);const tabsList=tabsContainer.find('.rhea-tabs-list li');const tabsContentWrapper=tabsContainer.find('.rhea-tabs-content-wrapper');const tabsContent=tabsContainer.find('.rhea-tabs-content-wrapper .rhea-tabs-content');if(tabsContent.length){let minHeight=0;let contentHeights=[];tabsContent.each(function(index){contentHeights.push($(this).outerHeight())});if(contentHeights){minHeight=Math.max.apply(Math,contentHeights)+(tabsContentWrapper.outerHeight()-tabsContentWrapper.height());tabsContainer.css('min-height',minHeight)}} 89tabsList.on('click',function(event){const $this=$(this);tabsList.removeClass('rhea-tabs-active');$this.addClass('rhea-tabs-active');tabsContent.hide().removeClass('rhea-tabs-active');tabsContent.eq($this.index()).show().addClass('rhea-tabs-active')})};window.rheaImageGallery=function(settings){if(jQuery().isotope){const container=$(settings.containerId),filterLinks=$(settings.filters),galleryOptions={filter:"*",animationEngine:'best-available',itemSelector:settings.itemSelector};if('grid'===settings.layout){galleryOptions.layoutMode='fitRows'} 90const gallery=container.isotope(galleryOptions);gallery.isotope('layout');filterLinks.on('click',function(event){filterLinks.removeClass('current');$(this).addClass('current');gallery.isotope({filter:'.'+$(this).attr('data-filter')});event.preventDefault()})}};window.rheaFeaturedNavPosition=function(id1,id2){var sliderWidth=$(id1).outerWidth();var slideHeight=$(id1).outerHeight();$(id2).width(sliderWidth);$(id2).css('top',slideHeight)}
91window.rheaScheduleTourForm=function(id){if(jQuery().validate&&jQuery().ajaxSubmit){const formId=$(id),submitButton=formId.find('.rhea-stf-submit'),ajaxLoader=formId.find('.rhea-stf-ajax-loader'),messageContainer=formId.find('.rhea-stf-message-container'),errorContainer=formId.find(".rhea-stf-error-container");const formOptions={beforeSubmit:function(){submitButton.attr('disabled','disabled');ajaxLoader.fadeIn('fast');messageContainer.fadeOut('fast');errorContainer.fadeOut('fast')},success:function(ajax_response,statusText,xhr,$form){var response=$.parseJSON(ajax_response);ajaxLoader.fadeOut('fast');submitButton.removeAttr('disabled');if(response.success){$form.resetForm();messageContainer.html(response.message).fadeIn('fast');setTimeout(function(){messageContainer.fadeOut('slow')},5000)}else{errorContainer.html(response.message).fadeIn('fast')}}};$(id).validate({errorLabelContainer:errorContainer,submitHandler:function(form){$(form).ajaxSubmit(formOptions)}})}};if(jQuery().isotope){$('.rhea_properties_cities_wrapper.masonry').isotope({itemSelector:'.rhea_property_city',masonry:{horizontalOrder:!0}})} 92window.onload=function(event){setTimeout(function(){$('.rhea_multi_select_picker').selectpicker('refresh');$('.rhea_multi_select_picker_location ').selectpicker('refresh')},500)} 93window.rheaServicesSlider=function(id){const carousel=$(id).find('.rhea-service-carousel-tabs');const slider=$(id).find('.rhea-service-carousel-images');const navPrev=$(id).find('.rhea-prev-service');const navNext=$(id).find('.rhea-next-service');carousel.slick({slidesToShow:4,slidesToScroll:1,asNavFor:slider,dots:!1,centerMode:!1,focusOnSelect:!0,prevArrow:navPrev,nextArrow:navNext,responsive:[{breakpoint:1200,settings:{slidesToShow:3}},{breakpoint:800,settings:{slidesToShow:2}}]});slider.slick({slidesToShow:1,slidesToScroll:1,arrows:!1,fade:!0,draggable:!1})} 94window.rvrGuestsFieldsCounter=function(field,wrapper){const guestNumberField=$(wrapper).find('.rhea-guests-number');guestNumberField.each(function(){let $this=$(this);let decrement=$this.find('.minus');let increment=$this.find('.plus');let $input=$this.find('input');let currentCounter='';let required=!1;if($this.hasClass('adults-field')){currentCounter=$this.closest('.rhea-guests-field-dropdown-box').find('.adults i');required=!0} 95if($this.hasClass('children-field')){currentCounter=$this.closest('.rhea-guests-field-dropdown-box').find('.children i')} 96if($this.hasClass('infants-field')){currentCounter=$this.closest('.rhea-guests-field-dropdown-box').find('.infants i')} 97decrement.on('click',function(){let count=($input.val())-1;if(required){count=count<1?1:count}else{count=count<1?0:count} 98$input.val(count);$input.change();currentCounter.html(count);return!1});increment.on('click',function(){let $val;if($input.val()<1){$val=0}else{$val=$input.val()} 99let count=parseInt($val)+1;$input.val(count);$input.change();currentCounter.html(count);return!1});$input.on('input change',function(){let thisChange=$(this);let value=thisChange.val();let minRequired=required?1:0;if(isNaN(value)||value<minRequired){thisChange.val(minRequired)}})});$(field).on('click',function(){if(!$(wrapper).hasClass('active')){$(field).addClass('open');$(wrapper).addClass('active')}else{$(field).removeClass('open');$(wrapper).removeClass('active')}});$('body').on("click",function(e){const target=$('.rhea-guests-field-dropdown-box, .rhea-guests-field-dropdown-box *');const targetField=$('.rhea-guests-field-dropdown');const targetDrop=$('.rhea-rvr-guests-fields-wrapper');if(targetDrop.hasClass('active')){if($(e.target).is(target)===!1&&$(e.target).is(targetDrop)===!1){targetField.removeClass("open");targetDrop.removeClass("active")}}})}})(jQuery);const roadmapContainer=document.getElementById("rhea-roadmap");if(roadmapContainer){const nodes=[{id:"one"},{id:"two"},{id:"three"},{id:"four"}];let svg;function drawConnections(){const containerRect=svg.parentElement.getBoundingClientRect();svg.innerHTML="";for(let i=0;i<nodes.length-1;i++){const fromEl=document.getElementById(nodes[i].id);const toEl=document.getElementById(nodes[i+1].id);if(!fromEl||!toEl){continue} 100const from=fromEl.getBoundingClientRect();const to=toEl.getBoundingClientRect();let x1=from.right-containerRect.left;let y1=from.top+from.height/2-containerRect.top;let x2=to.left-containerRect.left;let y2=to.top+to.height/2-containerRect.top;const controlOffsetX=400;const controlOffsetY=100;const d=`M ${x1},${y1} 101 C ${x1 + controlOffsetX},${y1 - controlOffsetY}, 102 ${x2 - controlOffsetX},${y2 + controlOffsetY}, 103 ${x2},${y2}`;const path=document.createElementNS("http://www.w3.org/2000/svg","path");path.setAttribute("d",d);path.setAttribute("stroke","#CFCEF9");path.setAttribute("stroke-width","1");path.setAttribute("fill","none");path.setAttribute("stroke-dasharray","6,6");svg.appendChild(path)}}
104function initializeSVG(){if(roadmapContainer){svg=document.getElementById("connector");if(!svg){svg=document.createElementNS("http://www.w3.org/2000/svg","svg");svg.setAttribute("id","connector");svg.style.position="absolute";svg.style.top=0;svg.style.left=0;svg.style.width="100%";svg.style.height="100%";svg.style.pointerEvents="none";roadmapContainer.appendChild(svg)} 105drawConnections()}} 106window.addEventListener("load",initializeSVG);window.addEventListener("resize",drawConnections);window.addEventListener("pageshow",(event)=>{if(event.persisted){initializeSVG()}})} 107function createObserverCallback(parentSelector,percent,innerValue){return function onSectionVisible(entries,observer){entries.forEach(entry=>{if(entry.isIntersecting){const text=parentSelector.querySelector(".pct");const fg=parentSelector.querySelector(".fg");const radius=45;const circumference=2*Math.PI*radius;fg.style.strokeDasharray=circumference;fg.style.strokeDashoffset=circumference;const offset=circumference-(percent/100)*circumference;fg.style.transition="stroke-dashoffset 1s ease";fg.style.strokeDashoffset=offset;let start=null;function animateText(timestamp){if(!start){start=timestamp} 108const progress=timestamp-start;const target=innerValue||percent;const suffix=innerValue?'':'%';value=Math.min(Math.floor((progress/1000)*target),target);text.textContent=`${value}${suffix}`;if(value<target){requestAnimationFrame(animateText)}} 109requestAnimationFrame(animateText);observer.unobserve(entry.target)}})}} 110window.runOnVisible=function(parentSelector,percent,innerValue){const section=parentSelector.querySelector(".circle-wrapper");if(section){const observer=new IntersectionObserver(createObserverCallback(parentSelector,percent,innerValue),{root:null,threshold:0.3});observer.observe(section)}} 111window.rheaTitleHighlight=function(selector,count){const heading=document.querySelector(selector);if(!heading){return} 112const wordCount=count;const text=heading.textContent.trim();const words=text.split(/\s+/);if(words.length>wordCount){const firstWords=words.slice(0,wordCount).join(" ");const rest=words.slice(wordCount).join(" ");heading.innerHTML=`<span class="highlighted">${firstWords}</span> ${rest}`}else{heading.innerHTML=`${text}`}}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.