1DataApi.DataView.PropertyBasicListCentered=function(){var n=DataApi.DataView,f={properties:DataApi.DataLink.ListProperties},e={},o=function(t){var i=this;n.getMarkup("PropertyBasicListCentered",t,function(r){var e=DataApi.DataView.getPluginSettings(t),u=n.getParams(t),f;u.set("gather_attributes",1);u.get("DSRT")||u.set("DSRT",1);n.ListViewMode.assert(i,u,e.renderSettings);WebApp.isLive()&&(f=$(document.createDocumentFragment()),$("#"+t).find(".DataView").append(f.append(r).find(".storeLoading")));n.showLoading(t);n.fillDataSources(i,t,u)})},t=function(t,i,r){var o,w,k,y,f,p,d;i.PROPERTIES=[];var e=DataApi.DataView.getPluginSettings(t),g=e.renderSettings?e.renderSettings.detailPage:"",it=WebApp.lngFolder?"/"+WebApp.lngFolder:"",nt=WebApp.culture,tt=$("#"+t);if(r){for(o=0,w=r.length;o<w;o++){var u=r[o],s=u.FormattedRooms!=null&&u.FormattedRooms!=""?u.FormattedRooms:"",b="",h="",c="",l="",a="",v="";if(b=u.Title&&u.Title.trim()!=""?WebApp.Utils.safeStringUrl(WebApp.Utils.truncateString(u.Title,200),"-"):WebApp.Utils.safeStringUrl(u.Type+" "+s+" "+WebApp.Utils.truncateString(u.Description,100),"-"),k=u.Images&&u.Images.length>0&&u.Images[0].Description?u.Images[0].Description:u.Type+" "+s+" "+u.Municipality+" "+u.Parish,y="",y=e.renderSettings&&e.renderSettings.PropertyListItem&&e.renderSettings.PropertyListItem.locationlevels&&e.renderSettings.PropertyListItem.locationlevels.length>0?DataApi.DataView.Location.renderPropertyStandardHtml(u,e.renderSettings.PropertyListItem.locationlevels," > "):'<span class="loc-level-3">'+u.Municipality+'<\/span><span class="loc-level-4"><span class="loc-level-sep"> > <\/span>'+u.Parish+"<\/span>",u.FeatureTags&&u.FeatureTags.length>0)for(f=0;f<u.FeatureTags.length;f++)u.FeatureTags[f].Tag=="PROPERTY_BATHROOM"&&(h=u.FeatureTags[f].Value?u.FeatureTags[f].Value:1),u.FeatureTags[f].Tag=="PROPERTY_HAS_GARAGE"&&(c=u.FeatureTags[f].Value?u.FeatureTags[f].Value:1,u.FeatureTags[f].Value==""&&(l="1")),u.FeatureTags[f].Tag=="PROPERTY_HAS_POOL"&&(a=u.FeatureTags[f].Value?u.FeatureTags[f].Value:1,u.FeatureTags[f].Value==""&&(v="1"));p="";tt.hasClass("show-availability")&&(u.ConditionID==7||u.ConditionID==103||u.ConditionID==104)&&(p=u.Condition!=""?u.Condition:"");d={LANG:nt,PROP_ID:u.ID,PROP_DISTRICT:u.District,PROP_MUNICIPALITY:u.Municipality,PROP_PARISH:u.Parish,PROP_AVAILABILITY:p,PROP_DESCRIPTION:WebApp.Utils.truncateString(u.Description,200),PROP_PRICE:u.PropertyBusiness.length>0?n.PropertyHelper.getPrice(u):"",PROP_THUMB:u.Images&&u.Images.length>0?u.Images[0].Thumbnail:u.Thumbnail,PROP_AREA:Math.round(u.LandArea),PROP_TIPOLOGY:s,PROP_TYPE:u.Type,PROP_DETAIL_URL:WebApp.isLive()?n.getDetailURL(g,b,u.ID):"javascript:void(0)",PROP_ISFAV:WebApp.Favorites.isFavorite(u.ID,"property"),PROP_HIDEFAV:!WebApp.hasFavorites(),PROP_TITLE:u.Title?u.Title:u.Type+" "+s,PROP_REF:u.Reference,PROP_BUSINESS:u.PropertyBusiness.length>0?n.PropertyHelper.getBusiness(u):"",PROP_THUMB_DESC:k,PROP_LOCATION:y,PROP_ROOMS:(u.Rooms<0)?0:u.Rooms,PROP_BATHS:(h<0)?0:h,PROP_GARAGE:(c<1)?0:c,PROP_GARAGE_EMPTY:(l<0)?0:l,PROP_POOL:(a<0)?0:a,PROP_POOL_EMPTY:(v<0)?0:v,PROP_AREA_UNIT:u.AreaUnit,PROP_AREAUT:u.NetArea,PROP_GROSSAREA:u.GrossArea,PROP_AREATERR:u.MasterTypeID==3?Math.round(u.LandArea):"",PROP_PANORAMIC:u.MainPanoramicUrl,PROP_SHOWNAV:u.Images&&u.Images.length>1&&!u.MainPanoramicUrl?"":"display:none;",PLUGIN_ID:t};i.PROPERTIES.push(d)}n.ListViewMode.get(e.renderSettings)!="IconMapView"&&WebApp.VCS.markView(r,"Property")}i.HAS_PROPERTIES=r&&r.length>0;WebApp.isLive()&&(n.evalEmptyData(i,t),n.evalRenderBoxes(t,e))},s=function(f,o,s){var h,y,c,w,b;n.hideLoading(f);h=s.properties;e=h;var d=WebApp.culture,g=o.get("pag")||1,p=h?h.TotalRecords:0,k=o.get("nre"),nt=Math.ceil(p/k),l={LANG:WebApp.culture,UNIQUE_ID:$.fn.newUUID(),HAS_DATA:!0,HAS_FALLBACK:h.FallBackSearch,PROPERTIES:[],PROP_COUNTER:p||"",PROP_ID_MAP:f,PLUGIN_ID:f},a=DataApi.DataView.getPluginSettings(f);h&&h.Properties.length>0&&t(f,l,h.Properties);l.HAS_DATA=h&&h.Properties&&h.Properties.length;WebApp.isLive()&&n.evalEmptyData(l,f);y=DataApi.DataView.MarkupMap[f];c=$("#"+f);c.addClass(a.dataView).find(".DataView").html(Handlebars.compile(y)(l)).find(".paginationWrapper").html(n.renderNavigation(o,y,h.TotalRecords));
1!WebApp.isLive()&&window.Editor&&Editor.DataSchema.get(f).getInnerElement("PropertyListFilter").extendMarkup();n.evalMediaQueries(c);n.bindUI($("#"+f));u($("#"+f),h,o,a.renderSettings);w=c.find(".FormComboSelect");i(w,"srt",o.serialize());b=c.find(".InnerElement[data-type=PropertyListFilter]")?c.find(".InnerElement[data-type=PropertyListFilter] .form-field-content .WebFormInput"):c.find(".BasicForm");b.on("change",function(){v(this,f)});!WebApp.isLive()&&a.renderSettings.showContactForm&&$("#"+f).find(".propertiesContainer").css("display","none");c.find(".PropertyContactForm.WebForm").each(function(){WebApp.WebForm.bind($(this))});c.find(".WebForm").each(function(){WebApp.WebForm.buildUI($(this),n.getParams(f))});$(window).trigger("dataApi:onDataViewRender",f);l.HAS_DATA&&(WebApp.ManageStickers.init(c,h.Properties,"property"),n.bindTriggerablePanoramics(c));r($("#"+f+" .IconStyle1"),h)},h=function(n){var f=window.location.search.slice(1).split("&"),t={},u="",r;f.forEach(function(n){n=n.split("=");n[1]&&(t[n[0]]=n[1])});try{t=JSON.parse(JSON.stringify(t));u=Object.keys(t)}catch(e){console.log("The JSON was invalid "+e)}for(r=0;r<u.length;r++)u[r]!=""&&i(n,u[r],t)},i=function(n,t,i){for(var r=0;r<n.length;r++)t==n.eq(r).attr("data-search-name")&&i[t.toLowerCase()]&&(n.eq(r)[0].value=parseInt(i[t.toLowerCase()]))},c=function(i,f,e){var c=DataApi.DataView.getPluginSettings(i),s={LANG:WebApp.culture,HAS_DATA:!0,UNIQUE_ID:$.fn.newUUID(),PROP_ID_MAP:i,PLUGIN_ID:i},o,l;(e.properties!=undefined||e.pagination!=undefined||e.newSearch!=undefined)&&(o=n.getParams(i,f,!1),e.pagination&&o.extend(e.pagination),n.ListViewMode.assert(this,o,c.renderSettings),e.newSearch&&o.set("pag",1),o.set("gather_attributes",1),o.get("DSRT")||o.set("DSRT",1),n.showLoading(i),n.updateDataSource(this.dataSources.properties,o,function(f,e){var a;n.hideLoading(i);oCounter="";e&&e.TotalRecords>"1"?oCounter=e.TotalRecords:e&&e.TotalRecords=="0"?oCounter="0":e&&e.TotalRecords=="1"&&(oCounter=e.TotalRecords);s.PROP_COUNTER=e.TotalRecords;s.HAS_FALLBACK=e.FallBackSearch;t(i,s,e.Properties);var v=o.get("nre"),y=Math.ceil(s.PROP_COUNTER/v),w=o.get("pag"),l=DataApi.DataView.MarkupMap[i],h=$(document.createDocumentFragment());h.append(Handlebars.compile(l)(s)).find(".paginationWrapper").html(n.renderNavigation(o,l,e.TotalRecords));$("#"+i).find(".propertiesContainer").replaceWith(h.find(".propertiesContainer"));$("#"+i).find(".numProperties").html(" "+e.TotalRecords);h.find(".storePagination").length>0&&$("#"+i).find(".paginationWrapper").replaceWith(h.find(".paginationWrapper"));n.bindUI($("#"+i));u($("#"+i),e,o,c.renderSettings);r($("#"+i+" .IconStyle1"),e);p(i,w,y);a=n.scrollToViewTop(i);a||$(window).trigger("dataApi:onDataViewRender",i);e.Properties&&(WebApp.ManageStickers.init($("#"+i),e.Properties,"property"),n.bindTriggerablePanoramics($("#"+i)));$("#"+i).find(".WebForm").each(function(){WebApp.WebForm.buildUI($(this),o)})},e.newSearch),l=$("#"+i).find(".PropertyContactForm form .form-field-content .WebFormInput"),h(l))},l=function(t){n.Current(t).update({properties:!0,newSearch:!0})},a=function(t){n.Current(t).update({properties:!0,newSearch:!0})},r=function(n,t){n.on("click",function(n){var f,r,i,u;n.preventDefault();f=$(this).closest(".propertyItem").data("stickeridentifier");r=t.Properties.filter(function(n){return n.ID===f})[0]||null;r&&(i=$(this).closest(".imgWrapper").find("img").data("count"),u=r.Images.length-1,i=$(this).hasClass("ctrlNext")?u==i?0:i+1:i==0?u:i-1,$(this).closest(".imgWrapper").find("img").attr("src",r.Images[i].Thumbnail),$(this).closest(".imgWrapper").find("img").data("count",i))})},v=function(n,t){var r=$(n).attr("data-search-name"),u,i;(r=="dst"||r=="mun"||r=="parish")&&(u=$(n)[0].value,i=$("#"+t).find(".InnerElement[data-type=PropertyContactForm] .form-field-content .WebFormInput[data-search-name="+$(n).attr("data-search-name")+"] "),i.length>0&&(i[0].value=u,i.trigger("change")))},y=function(n){var i={},f=n,u,r,t,e;for($(n).hasClass("removeBr")?(u=$(f).closest("a"),f.remove(),n=$(u).closest(".storeBreadcrumb").find("a")[0],u.remove()):$(n).nextAll().remove(),r=$(n).closest(".storeBreadcrumb").find(".interactive"),t=0;t<r.length;t++)r.eq(t).data("search-name").includes("BREADCRUMB")||(i[r.eq(t).data("search-name")]=parseInt(r.eq(t).attr("value")));e=n.closest(".Element");$("."+e.classList[0]).find('.WebForm[data-type="PropertyListFilter"]').each(function(){WebApp.WebForm.buildUI($(this),DataApi.RequestParam
1s(i))});document.location.search=Object.keys(i).length&&DataApi.RequestParams(i)?DataApi.RequestParams(i).toQueryString():""},p=function(n,t,i){WebApp.isLive()&&(t&&i!=t&&i!=0?($("#"+n).find(".formContactButton").css({display:"none"}),$("#"+n).find(".PropertyContactForm").css({display:"none"})):i==0?($("#"+n).find(".formContactButton").css({display:"block"}),$("#"+n).find(".PropertyContactForm").css({display:"block"})):($("#"+n).find(".formContactButton").css({display:"none"}),$("#"+n).find(".PropertyContactForm").css({display:"none"})))},w=function(n){WebApp.isLive()&&($(n).closest(".PropertyBasicList").find(".contentContainer:first").css({height:"auto"}),$(".PropertyContactForm").slideToggle())},b=function(t){var r=$(t).closest(".propertyList"),u=$(t).data("type"),i=n.Current(t);r.find(".changeView").removeClass("selected");$(window).trigger("dataApi:onDataViewRender",$(t).closest(".PropertyBasicList.Element").attr("id"));n.ListViewMode.set(u,i.pluginID);i.update({properties:!0})},u=function(t,i,r,u){k(t,n.ListViewMode.get(u)||"IconGridView",i,r)},k=function(n,t,i,r){function u(t){var i=n.find(".propertiesContainer"),r=i.find(".propertyItems"),u=i.find(".propertyMap"),f=i.find(".pagination");t=="IconMapView"?(u.css("display","block"),r.css("display","none"),f.css("display","none")):(r.css("display",""),u.css("display","none"),f.css("display",""))}var f=n.closest(".Element").prop("id");n.find('[data-type="'+t+'"]').addClass("selected");switch(t){case"IconGridView":n.find(".propertiesContainer").removeClass("listView");u(t);break;case"IconListView":n.find(".propertiesContainer").addClass("listView");u(t);break;case"IconMapView":d(f,i,r);u(t)}},d=function(t,i,r){var u=i.Properties;if(u&&u.length){var o={lat:u[0].GPSLat,lng:u[0].GPSLon},f=DataApi.DataView.getPluginSettings(t),s=f.renderSettings?f.renderSettings.detailPage:"",h=r.get("bus")||"1",e={id:"map_"+t,type:"Map",center:o,zoom:6,mapTypeId:"roadmap",defaultControls:!0,interactive:!0,markers:[],shapes:[]},c=function(n){var i=n.PropertyBusiness,r="",t;if(n.PropertyBusiness.length>0)for(t=0;t<i.length;t++)h==i[t].BusinessID&&i[t].Prices[0].length>0&&i[t].Prices[0].FormattedPrice&&(r=i[t].Prices[0].FormattedPrice);return r||(r=i[0].Prices[0].FormattedPrice),r};u.forEach(function(t){var r=t.FormattedRooms!=null&&t.FormattedRooms!=""?t.FormattedRooms:"",u="",f,i;u=t.Title&&t.Title.trim()!=""?WebApp.Utils.safeStringUrl(WebApp.Utils.truncateString(t.Title,200),"-"):WebApp.Utils.safeStringUrl(t.Type+" "+r,"-");f=WebApp.isLive()?n.getDetailURL(s,u,t.ID):"javascript:void(0)";i={};i.lat=t.GPSLat;i.lng=t.GPSLon;e.markers.push({position:i,title:t.Title==""?t.Type+" "+r:t.Title,infoWindow:{thumbnail:t.Thumbnail,subtitle:t.Title==""?t.Type+" "+r:t.Title,locale:t.Parish,price:c(t),url:f}})});WebApp.push({mapData:e})}},g=function(t){$(t).closest(".WebForm").find(".fieldsWrapper").toggle();$(window).trigger("dataApi:onDataViewRender",n.Current(t).pluginID)};return{dataSources:f,load:o,render:s,update:c,UI:{breadcrumbOnClick:y,sort:l,search:a,changeView:b,toggleForm:g,showContactForm:w}}}()
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.