1DataApi.DataView.PanoramicPropertySlideshow=function(){var n=DataApi.DataView,t={properties:DataApi.DataLink.ListPropertiesSlideshow},i=function(t){var i=this;$("#"+t).attr("data-eval-size","false");n.getMarkup("PanoramicPropertySlideshow",t,function(r){var f,u;WebApp.isLive()&&(f=$(document.createDocumentFragment()),$("#"+t).find(".DataView").append(f.append(r).find(".storeLoading")));n.showLoading(t);u=n.getParams(t);u.set("orc","2");u.set("CROPIMG","1");u.set("oar","1");u.set("fields","id,Reference,Images,Thumbnail,Type,Description,Rooms,NetArea,GrossArea,LandArea,District,Zone,Municipality,Parish,EnergyCertificationType,EnergyCertificationNumber,EnergyCertification,FormattedRooms,Title,FeatureTags,PropertyBusiness");u.set("ThumbnailSize","17");n.fillDataSources(i,t,u)})},r=function(t,i,r){var it,st,o,p,c,ut,ft,et,w;n.hideLoading(t);var f=r.properties,ot=WebApp.culture,e={LANG:WebApp.culture,UNIQUE_ID:$.fn.newUUID(),HAS_DATA:!0,PROPERTIES:[]},l=DataApi.DataView.getPluginSettings(t),tt=n.getParams(t),a=tt.get("wwm")?tt.get("wwm")==1:!1;if(f&&f.Properties&&f.Properties.length>0)for(it=l.renderSettings?l.renderSettings.detailPage:"",st=WebApp.lngFolder?"/"+WebApp.lngFolder:"",e.PROPERTIES=[],WebApp.Utils.shuffleArray(f.Properties),o=0;o<f.Properties.length;o++){var u=f.Properties[o],rt="",b="",s="",k="",d="",ht=!1,g="",ct=!1,v=!1,h=0,nt="",y=u.FormattedRooms!=null&&u.FormattedRooms!=""?u.FormattedRooms:"";rt=u.Title&&u.Title.trim()!=""?WebApp.Utils.safeStringUrl(WebApp.Utils.truncateString(u.Title,200),"-"):WebApp.Utils.safeStringUrl(u.Type+" "+y+" "+WebApp.Utils.truncateString(u.Description,100),"-");p="";c="";switch(u.EnergyCertificationType){case"A":case"B":case"C":case"D":case"E":case"F":case"G":p=u.EnergyCertificationType;c=u.EnergyCertificationType;break;case"A_PLUS":p="APlus";c="A+";break;case"B_MINUS":p="BMinus";c="B-"}u.FeatureTags&&u.FeatureTags.length>0&&u.FeatureTags.forEach(n=>{switch(n.Tag){case"PROPERTY_BATHROOM":b=n.Value?n.Value:1;break;case"PROPERTY_HAS_GARAGE":n.Value?(s=parseInt(n.Value),h+=s):(s=1,k=!0);(!n.Value||n.Value>0)&&(v=!0);break;case"PROPERTY_HAS_INDOOR_PARKING":n.Value?(d=parseInt(n.Value),h+=d):(d=1,ht=!0);(!n.Value||n.Value>0)&&(v=!0);break;case"PROPERTY_HAS_OUTDOOR_PARKING":n.Value?(g=parseInt(n.Value),h+=g):(g=1,ct=!0);(!n.Value||n.Value>0)&&(v=!0);break;case"PROPERTY_HAS_POOL":nt=n.Value?n.Value:1;n.Value==""&&(PoolEmpty=!0);break;case"PARKING":case"PROPERTY_HAS_PARKING":Parking=n.Value?n.Value:1;n.Value==""&&(ParkingEmpty=!0)}});ut=u.Images&&u.Images.length>0&&u.Images[0].Description?u.Images[0].Description:u.Type+" "+y+" "+u.Municipality+" "+u.Parish;ft={CUSTOM_ID:$.fn.newUUID(),LANG:ot,PROP_ID:u.ID,PROP_DISTRICT:u.District,PROP_ZONE:u.Zone,PROP_MUNICIPALITY:u.Municipality,PROP_PARISH:u.Parish,PROP_DESCRIPTION:WebApp.Utils.truncateString(u.Description,200),PROP_PRICE:n.PropertyHelper.getPrice(u),PROP_ROOMS:(u.Rooms<0)?0:u.Rooms,PROP_BATHS:(b<0)?0:b,PROP_GARAGE:(s<1)?0:s,PROP_GARAGE_EMPTY:(k<0)?0:k,PROP_HAS_PARKINGPLACES:v,PROP_TOTAL_PARKINGPLACES:(h<0)?0:h,PROP_POOL:(nt<0)?0:nt,PROP_AREAUT:u.NetArea,PROP_GROSSAREA:u.GrossArea,PROP_AREATERR:u.MasterTypeID==3?Math.round(u.LandArea):"",PROP_LANDAREA:u.LandArea,PROP_ENERGYCERTIFICATIONT:c,PROP_REF:u.Reference,PROP_THUMB:u.Thumbnail,PROP_THUMB_2560x1920:u.Images&&u.Images.length>0?a?u.Images[0].Thumbnail_2560x1920.replace("/S5/","/WMNONE/S5/"):u.Images[0].Thumbnail_2560x1920:"",PROP_THUMB_1280x960:u.Images&&u.Images.length>0?a?u.Images[0].Thumbnail_1280x960.replace("/S5/","/WMNONE/S5/"):u.Images[0].Thumbnail_1280x960:"",PROP_THUMB_800X600:u.Images&&u.Images.length>0?a?u.Images[0].Thumbnail_800X600.replace("/S5/","/WMNONE/S5/"):u.Images[0].Thumbnail_800X600:"",PROP_THUMB_640X480:u.Images&&u.Images.length>0?a?u.Images[0].Thumbnail_640X480.replace("/S5/","/WMNONE/S5/"):u.Images[0].Thumbnail_640X480:"",PROP_THUMB_DESC:ut,PROP_AREA:Math.round(u.LandArea),PROP_TIPOLOGY:y,PROP_TYPE:u.Type,PROP_DETAIL_URL:WebApp.isLive()?n.getDetailURL(it,rt,u.ID):"javascript:void(0)",PROP_TITLE:WebApp.Utils.truncateString(u.Title?u.Title:u.Type+" "+y,150),PROP_REF:u.Reference,PROP_BUSINESS:n.PropertyHelper.getBusiness(u),SLIDE_ACTIVE:o==0,IDX:o};e.PROPERTIES.push(ft)}n.tryApplyWebP(e);e.HAS_DATA=f&&f.Properties&&f.Properties.length>0;
1WebApp.isLive()&&(n.evalEmptyData(e,t),n.evalRenderBoxes(t,l));et=DataApi.DataView.MarkupMap[t];w=$("#"+t);w.addClass(l.dataView).find(".DataView").html(Handlebars.compile(et)(e));(WebApp.isLive()||WebApp.inPreview())&&WebApp.SlideshowNav.bind(w);n.evalMediaQueries(w);$(window).trigger("dataApi:onDataViewRender",t)};return{dataSources:t,load:i,render:r}}();DataApi.DataView.DevelopmentBasicPanelZoneTyp=function(){var n=DataApi.DataView;DataApi.options({dataLinkExtensions:[{name:"ListDevelopmentsFull",endPoint:"Developments/full"}]});var t={developments:DataApi.DataLink.ListDevelopmentsFull},i=function(t){var i=this;n.getMarkup("DevelopmentBasicPanelZoneTyp",t,function(r){var f,u;WebApp.isLive()&&(f=$(document.createDocumentFragment()),$("#"+t).find(".DataView").append(f.append(r).find(".storeLoading")));n.showLoading(t);u=n.getParams(t);u.get("orc")||u.set("orc","7");n.fillDataSources(i,t,u)})},r=function(t,i,r){var it,et,c,e,rt,ut,l;n.hideLoading(t);var o=r.developments,ft=WebApp.culture,s={LANG:WebApp.culture,UNIQUE_ID:$.fn.newUUID(),HAS_DATA:!0,DEVELOPMENTS:[]},nt=!1,tt=!1,h=DataApi.DataView.getPluginSettings(t);if(o&&o.Developments.length>0){for(nt=h.renderSettings.showNav&&o.Developments.length>3,tt=h.renderSettings.showSwitch,it=h.renderSettings?h.renderSettings.detailPage:"",et=WebApp.lngFolder?"/"+WebApp.lngFolder:"",s.DEVELOPMENTS=[],c=0;c<o.Developments.length;c++){var u=o.Developments[c],ot=WebApp.Utils.safeStringUrl(WebApp.Utils.truncateString(u.Name,200),"-"),a="",v="",y="",p="",w="",b="",k="",d="",g="",st=u.Images&&u.Images.length>0&&u.Images[0].Description?u.Images[0].Description:u.Name+" "+u.Municipality+" "+u.Parish;if(u.FeatureTags&&u.FeatureTags.length>0)for(e=0;e<u.FeatureTags.length;e++)(u.FeatureTags[e].Tag=="GARAGE"||u.FeatureTags[e].Tag=="PROPERTY_HAS_PARKING")&&(a=u.FeatureTags[e].Value?u.FeatureTags[e].Value:1),(u.FeatureTags[e].Tag=="PROPERTY_HAS_POOL"||u.FeatureTags[e].Tag=="PROPERTY_HAS_POOL_SHARED")&&(v=u.FeatureTags[e].Value?u.FeatureTags[e].Value:1),u.FeatureTags[e].Tag=="PROPERTY_HAS_GARDEN"&&(y=u.FeatureTags[e].Value?u.FeatureTags[e].Value:1),(u.FeatureTags[e].Tag=="BEACH_VIEW"||u.FeatureTags[e].Tag=="SEA_VIEW")&&(p=u.FeatureTags[e].Value?u.FeatureTags[e].Value:1),(u.FeatureTags[e].Tag=="GOLF_COURSE"||u.FeatureTags[e].Tag=="GOLF_VIEW")&&(w=u.FeatureTags[e].Value?u.FeatureTags[e].Value:1),u.FeatureTags[e].Tag=="PROPERTY_HAS_ELEVATOR"&&(b=u.FeatureTags[e].Value?u.FeatureTags[e].Value:1),u.FeatureTags[e].Tag=="PROPERTY_HAS_VIDEO_ENTRY"&&(k=u.FeatureTags[e].Value?u.FeatureTags[e].Value:1),u.FeatureTags[e].Tag=="TRANSPORT_AREA"&&(d=u.FeatureTags[e].Value?u.FeatureTags[e].Value:1),(u.FeatureTags[e].Tag=="TRADE_ZONE"||u.FeatureTags[e].Tag=="PROPERTY_NEAR_SHOPPING_CENTER")&&(g=u.FeatureTags[e].Value?u.FeatureTags[e].Value:1);rt={LANG:ft,DEV_ID:u.ID,DEV_NAME:u.Name,DEV_CONDITION:u.Condition,DEV_MUNICIPALITY:u.Municipality,DEV_PARISH:u.Parish,DEV_ZONE:u.Zone,DEV_DESCRIPTION:WebApp.Utils.truncateString(u.Description,150),DEV_THUMB:u.Images&&u.Images.length>0?u.Images[0].Thumbnail_1024x768:"",DEV_DETAIL_URL:WebApp.isLive()?n.getDetailURL(it,ot,u.ID):"javascript:void(0)",DEV_TITLE:u.Title,DEV_REF:u.Reference,DEV_ISFAV:WebApp.Favorites.isFavorite(u.ID,"development"),DEV_HIDEFAV:!WebApp.hasFavorites(),SLIDE_ACTIVE:c==0,IDX:c,DEV_MIN_ROOMS_RANGE:u.AvailableRoomsFomatedRange[0],DEV_MAX_ROOMS_RANGE:u.AvailableRoomsFomatedRange[1]!=u.AvailableRoomsFomatedRange[0]?u.AvailableRoomsFomatedRange[1]:"",DEV_VAL_RANGE:u.AvailableRoomsFomatedRange[1]!=u.AvailableRoomsFomatedRange[0]?!0:!1,DEV_SINGLE_RANGE:u.AvailableRoomsRange[0]>=0?u.AvailableRoomsFomatedRange[0]:"",DEV_SHOWNAV:u.Images&&u.Images.length>1?"":"display:none;",DEV_THUMB_DESC:st,DEV_GARAGE:(a<0)?0:a,DEV_ELEVATOR:(b<0)?0:b,DEV_POOL:(v<0)?0:v,DEV_GARDEN:(y<0)?0:y,DEV_BEACH:(p<0)?0:p,DEV_GOLF:(w<0)?0:w,DEV_VIDEOENTRY:(k<0)?0:k,DEV_TRANSPORT:(d<0)?0:d,DEV_COMERCIAL:(g<0)?0:g};s.DEVELOPMENTS.push(rt)}WebApp.VCS.markView(o.Developments,"Development")}s.HAS_DATA=o&&o.Developments.length>0;WebApp.isLive()&&(n.evalEmptyData(s,t),n.evalRenderBoxes(t,h));ut=DataApi.DataView.MarkupMap[t];l=$("#"+t);l.addClass(h.dataView).find(".DataView").html(Handlebars.compile(ut)(s));
1WebApp.isLive()&&WebApp.PanelNav.bind(l,!nt,!tt);n.evalMediaQueries(l);$(window).trigger("dataApi:onDataViewRender",t);s.HAS_DATA&&WebApp.ManageStickers.init(l,o.Developments,"development");f($(".IconStyle1"),o)},u=function(n){var i=$(n).closest(".Element"),t=i.find(".sliderWrap"),r=t.find('.item[data-id="'+$(n).data("id")+'"]');t.is(":animated")||(i.find(".itemsPager .navMenu").removeClass("active"),$(n).addClass("active"),t.animate({scrollLeft:t.scrollLeft()+r.position().left},500))},f=function(n,t){n.on("click",function(n){var f,r,i,u;for(n.preventDefault(),f=$(this).closest(".developmentItem").data("stickeridentifier"),r=0;r<$(".developmentItem").length;r++)f==$(".developmentItem").eq(r).data("stickeridentifier")&&t.Developments[r].Images.length>1&&(i=$(this).closest(".developmentItemWrap").find("img").data("count"),u=t.Developments[r].Images.length-1,i=$(this).hasClass("ctrlNext")?u==i?0:i+1:i==0?u:i-1,$(this).closest(".developmentItemWrap").find("img").attr("src",t.Developments[r].Images[i].Thumbnail),$(this).closest(".developmentItemWrap").find("img").data("count",i))})};return{dataSources:t,load:i,render:r,UI:{navItemClick:u}}}();DataApi.DataView.DevelopmentBasicPanel=function(){var n=DataApi.DataView;DataApi.options({dataLinkExtensions:[{name:"ListDevelopmentsFull",endPoint:"Developments/full"}]});var t={developments:DataApi.DataLink.ListDevelopmentsFull},i=function(t){var i=this;n.getMarkup("DevelopmentBasicPanel",t,function(r){var f,u;WebApp.isLive()&&(f=$(document.createDocumentFragment()),$("#"+t).find(".DataView").append(f.append(r).find(".storeLoading")));n.showLoading(t);u=n.getParams(t);u.set("orc","7");n.fillDataSources(i,t,u)})},r=function(t,i,r){var it,ot,c,e,ut,ft,l;n.hideLoading(t);var s=r.developments,et=WebApp.culture,h={LANG:WebApp.culture,UNIQUE_ID:$.fn.newUUID(),HAS_DATA:!0,DEVELOPMENTS:[]},nt=!1,tt=!1,o=DataApi.DataView.getPluginSettings(t);if(s&&s.Developments.length>0){for(nt=o.renderSettings.showNav&&s.Developments.length>3,tt=o.renderSettings.showSwitch,it=o.renderSettings?o.renderSettings.detailPage:"",ot=WebApp.lngFolder?"/"+WebApp.lngFolder:"",h.DEVELOPMENTS=[],c=0;c<s.Developments.length;c++){var u=s.Developments[c],st=WebApp.Utils.safeStringUrl(WebApp.Utils.truncateString(u.Name,200),"-"),a="",v="",y="",p="",w="",b="",k="",d="",g="",ht=u.Images&&u.Images.length>0&&u.Images[0].Description?u.Images[0].Description:u.Name+" "+u.Municipality+" "+u.Parish,rt="";if(rt=o.renderSettings&&o.renderSettings.DevelopmentPanelItem&&o.renderSettings.DevelopmentPanelItem.locationlevels&&o.renderSettings.DevelopmentPanelItem.locationlevels.length>0?DataApi.DataView.Location.renderDevelopmentStandardHtml(u,o.renderSettings.DevelopmentPanelItem.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(e=0;e<u.FeatureTags.length;e++)(u.FeatureTags[e].Tag=="GARAGE"||u.FeatureTags[e].Tag=="PROPERTY_HAS_PARKING")&&(a=u.FeatureTags[e].Value?u.FeatureTags[e].Value:1),(u.FeatureTags[e].Tag=="PROPERTY_HAS_POOL"||u.FeatureTags[e].Tag=="PROPERTY_HAS_POOL_SHARED")&&(v=u.FeatureTags[e].Value?u.FeatureTags[e].Value:1),u.FeatureTags[e].Tag=="PROPERTY_HAS_GARDEN"&&(y=u.FeatureTags[e].Value?u.FeatureTags[e].Value:1),(u.FeatureTags[e].Tag=="BEACH_VIEW"||u.FeatureTags[e].Tag=="SEA_VIEW")&&(p=u.FeatureTags[e].Value?u.FeatureTags[e].Value:1),(u.FeatureTags[e].Tag=="GOLF_COURSE"||u.FeatureTags[e].Tag=="GOLF_VIEW")&&(w=u.FeatureTags[e].Value?u.FeatureTags[e].Value:1),u.FeatureTags[e].Tag=="PROPERTY_HAS_ELEVATOR"&&(b=u.FeatureTags[e].Value?u.FeatureTags[e].Value:1),u.FeatureTags[e].Tag=="PROPERTY_HAS_VIDEO_ENTRY"&&(k=u.FeatureTags[e].Value?u.FeatureTags[e].Value:1),u.FeatureTags[e].Tag=="TRANSPORT_AREA"&&(d=u.FeatureTags[e].Value?u.FeatureTags[e].Value:1),(u.FeatureTags[e].Tag=="TRADE_ZONE"||u.FeatureTags[e].Tag=="PROPERTY_NEAR_SHOPPING_CENTER")&&(g=u.FeatureTags[e].Value?u.FeatureTags[e].Value:1);ut={LANG:et,DEV_ID:u.ID,DEV_NAME:u.Name,DEV_CONDITION:u.Condition,DEV_MUNICIPALITY:u.Municipality,DEV_PARISH:u.Parish,DEV_DESCRIPTION:WebApp.Utils.truncateString(u.Description,200),DEV_THUMB:u.Thumbnail,DEV_DETAIL_URL:WebApp.isLive
1()?n.getDetailURL(it,st,u.ID):"javascript:void(0)",DEV_TITLE:u.Title,DEV_REF:u.Reference,DEV_ISFAV:WebApp.Favorites.isFavorite(u.ID,"development"),DEV_HIDEFAV:!WebApp.hasFavorites(),DEV_LOCATION:rt,SLIDE_ACTIVE:c==0,IDX:c,DEV_MIN_ROOMS_RANGE:u.AvailableRoomsFomatedRange[0],DEV_MAX_ROOMS_RANGE:u.AvailableRoomsFomatedRange[1]!=u.AvailableRoomsFomatedRange[0]?u.AvailableRoomsFomatedRange[1]:"",DEV_VAL_RANGE:u.AvailableRoomsFomatedRange[1]!=u.AvailableRoomsFomatedRange[0]?!0:!1,DEV_SINGLE_RANGE:u.AvailableRoomsRange[0]>=0?u.AvailableRoomsFomatedRange[0]:"",DEV_MIN_PRICE:u.MinPropertyFormattedPrice?u.MinPropertyFormattedPrice:"",DEV_PRICE:u.DevelopmentBusiness!=null&&u.DevelopmentBusiness[0]?u.DevelopmentBusiness[0].Prices[0].FormattedPrice+(u.DevelopmentBusiness.length>1&&u.DevelopmentBusiness[1].Prices[0].FormattedPrice?" / "+u.DevelopmentBusiness[1].Prices[0].FormattedPrice:""):"",DEV_BUSINESS:u.DevelopmentBusiness!=null&&u.DevelopmentBusiness[0]?u.DevelopmentBusiness[0].BusinessName+(u.DevelopmentBusiness.length>1?" / "+u.DevelopmentBusiness[1].BusinessName:""):"",DEV_SHOWNAV:u.Images&&u.Images.length>1?"":"display:none;",DEV_THUMB_DESC:ht,DEV_GARAGE:(a<0)?0:a,DEV_ELEVATOR:(b<0)?0:b,DEV_POOL:(v<0)?0:v,DEV_GARDEN:(y<0)?0:y,DEV_BEACH:(p<0)?0:p,DEV_GOLF:(w<0)?0:w,DEV_VIDEOENTRY:(k<0)?0:k,DEV_TRANSPORT:(d<0)?0:d,DEV_COMERCIAL:(g<0)?0:g};h.DEVELOPMENTS.push(ut)}WebApp.VCS.markView(s.Developments,"Development");n.tryApplyWebP(h)}h.HAS_DATA=s&&s.Developments.length>0;WebApp.isLive()&&(n.evalEmptyData(h,t),n.evalRenderBoxes(t,o));ft=DataApi.DataView.MarkupMap[t];l=$("#"+t);l.addClass(o.dataView).find(".DataView").html(Handlebars.compile(ft)(h));WebApp.isLive()&&WebApp.PanelNav.bind(l,!nt,!tt);n.evalMediaQueries(l);$(window).trigger("dataApi:onDataViewRender",t);f($(l).find(".IconStyle1"),s);h.HAS_DATA&&WebApp.ManageStickers.init(l,s.Developments,"development")},u=function(n){var i=$(n).closest(".Element"),t=i.find(".sliderWrap"),r=t.find('.item[data-id="'+$(n).data("id")+'"]');t.is(":animated")||(i.find(".itemsPager .navMenu").removeClass("active"),$(n).addClass("active"),t.animate({scrollLeft:t.scrollLeft()+r.position().left},500))},f=function(n,t){n.on("click",function(n){var f,r,i,u;for(n.preventDefault(),f=$(this).closest(".developmentItem").data("stickeridentifier"),r=0;r<$(".developmentItem").length;r++)f==$(".developmentItem").eq(r).data("stickeridentifier")&&t.Developments[r].Images.length>1&&(i=$(this).closest(".developmentItemWrap").find("img").data("count"),u=t.Developments[r].Images.length-1,i=$(this).hasClass("ctrlNext")?u==i?0:i+1:i==0?u:i-1,$(this).closest(".developmentItemWrap").find("img").attr("src",t.Developments[r].Images[i].Thumbnail),$(this).closest(".developmentItemWrap").find("img").data("count",i))})};return{dataSources:t,load:i,render:r,UI:{navItemClick:u}}}();DataApi.DataView.PropertyBasicPanel=function(){var n=DataApi.DataView,t={properties:DataApi.DataLink.ListProperties},i=function(t){var i=this;n.getMarkup("PropertyBasicPanel",t,function(r){var f,u;WebApp.isLive()&&(f=$(document.createDocumentFragment()),$("#"+t).find(".DataView").append(f.append(r).find(".storeLoading")));n.showLoading(t);u=n.getParams(t);u.set("srt",1);$("#"+t).hasClass("holidayModule")&&(u.set("bus","4,13"),u.set("onlyholiday","1"));n.fillDataSources(i,t,u)})},r=function(t,i,r){var tt,w,vt,y,ot,st,d,g,ht,nt,h,p,yt,o;n.hideLoading(t);var e=r.properties,pt=WebApp.culture,o=$("#"+t),s={LANG:WebApp.culture,UNIQUE_ID:$.fn.newUUID(),HAS_DATA:!0,PROPERTIES:[]},ct=!1,lt=!1,f=DataApi.DataView.getPluginSettings(t);if(e&&e.Properties.length>0){ct=f.renderSettings.showNav;lt=f.renderSettings.showSwitch;var wt=f.renderSettings?f.renderSettings.detailPage:"",dt=WebApp.lngFolder?"/"+WebApp.lngFolder:"",bt=f.renderSettings?f.renderSettings.seasonpricetype:"",kt=f.renderSettings?f.renderSettings.seasonpricetypelabel:"";for(s.PROPERTIES=[],WebApp.Utils.shuffleArray(e.Properties),tt=[{tag:"PROPERTY_HAS_POOL","class":"swimming"},{tag:"PROPERY_HAS_PLAYGROUND","class":"fruit-tree"},{tag:"BEACH_VIEW","class":"beach1"},{tag:"PROPERTY_HAS_INTERNET","class":"wifi-medium-signal-symbol"},{tag:"PROPERTY_BATHROOM","class":"chuveiro"},{tag:"PROPERTY_HAS_BEDROOM","class":"bed03"}],w=0;w<e.Properties.length;w++){var u=e.Properties[w],at="",it="",c="",rt="",l="",ut=!1,a="",ft=!1,b=!1,v=0,et="",k=u.FormattedRooms!=null&&u.FormattedRooms!=""?u.FormattedRooms:"";at=u.Title&&u.Title.trim()!=""?WebApp.Utils.safeStringUrl(WebApp.Utils.truncateString(u.Title,200),"-"):WebApp.Utils.safeStringUrl(u.Type+" "+k+" "+WebApp.Utils.truncateString(u.Description,100),"-");vt=u.Images&&u.Images.length>0&&u.Images[0].Description?u.Images[0].Description:u.Type+" "+k+" "+u.Municipality+" "+u.Parish;y="";switch(u.EnergyCertificationType){case"A":case"B":case"C":case"D":case"E":case"F":case"G":y=u.EnergyCertificationType;break;case"A_PLUS":y="APlus";break;case"B_MINUS":y="BMinus"}if(u.FeatureTags&&u.FeatureTags.length>
10&&u.FeatureTags.forEach(n=>{switch(n.Tag){case"PROPERTY_BATHROOM":it=n.Value?n.Value:1;break;case"PROPERTY_HAS_GARAGE":n.Value?(c=parseInt(n.Value),v+=c):(c=1,rt=!0);(!n.Value||n.Value>0)&&(b=!0);break;case"PROPERTY_HAS_INDOOR_PARKING":n.Value?(l=parseInt(n.Value),v+=l):(l=1,ut=!0);(!n.Value||n.Value>0)&&(b=!0);break;case"PROPERTY_HAS_OUTDOOR_PARKING":n.Value?(a=parseInt(n.Value),v+=a):(a=1,ft=!0);(!n.Value||n.Value>0)&&(b=!0);break;case"PROPERTY_HAS_POOL":et=n.Value?n.Value:1;n.Value==""&&(PoolEmpty=!0);break;case"PARKING":case"PROPERTY_HAS_PARKING":Parking=n.Value?n.Value:1;n.Value==""&&(ParkingEmpty=!0)}}),ot="",o.hasClass("show-availability")&&(u.ConditionID==7||u.ConditionID==103||u.ConditionID==104)&&(ot=u.Condition!=""?u.Condition:""),oPanoramic=u.MainPanoramicUrl,o.hasClass("hidePanoramic")&&(oPanoramic=""),st="",st=f.renderSettings&&f.renderSettings.PropertyPanelItem&&f.renderSettings.PropertyPanelItem.locationlevels&&f.renderSettings.PropertyPanelItem.locationlevels.length>0?DataApi.DataView.Location.renderPropertyStandardHtml(u,f.renderSettings.PropertyPanelItem.locationlevels," > "):'<span class="loc-level-3">'+u.Municipality+'<\/span><span class="loc-level-4"><span class="loc-level-sep"> > <\/span>'+u.Parish+"<\/span>",d={LANG:pt,PROP_ID:u.ID,PROP_LOCATION:st,PROP_DISTRICT:u.District,PROP_ZONE:u.Zone,PROP_MUNICIPALITY:u.Municipality,PROP_PARISH:u.Parish,PROP_AVAILABILITY:ot,PROP_DESCRIPTION:WebApp.Utils.truncateString(u.Description,100),PROP_PRICE:n.PropertyHelper.getPrice(u),PROP_THUMB:u.Thumbnail,PROP_THUMB_DESC:vt,PROP_AREA:Math.round(u.LandArea),PROP_TIPOLOGY:k,PROP_TYPE:u.Type,PROP_DETAIL_URL:WebApp.isLive()?n.getDetailURL(wt,at,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+" "+k,PROP_REF:u.Reference,PROP_BUSINESS:n.PropertyHelper.getBusiness(u),PROP_ENERGYCERTIFICATION:y,PROP_PANORAMIC:oPanoramic,PROP_IMAGES:[],PROP_ROOMS:(u.Rooms<0)?0:u.Rooms,PROP_BATHS:(it<0)?0:it,PROP_GARAGE:(c<1)?0:c,PROP_GARAGE_EMPTY:(rt<0)?0:rt,PROP_PARKINGE:(a<0)?0:a,PROP_PARKINGE_EMPTY:(ft<0)?0:ft,PROP_PARKINGI:(l<0)?0:l,PROP_PARKINGI_EMPTY:(ut<0)?0:ut,PROP_HAS_PARKINGPLACES:b,PROP_TOTAL_PARKINGPLACES:(v<0)?0:v,PROP_POOL:(et<0)?0:et,PROP_GROSSAREA:u.GrossArea,PROP_LANDAREA:u.LandArea,PROP_AREA_UNIT:u.AreaUnit,PROP_AREAUT:u.NetArea,PROP_AREATERR:u.MasterTypeID==3?Math.round(u.LandArea):"",PROP_SHOWNAV:u.Images&&u.Images.length>1&&!oPanoramic?"":"display:none;",PLUGIN_ID:t,PROP_HAS_SEASON_PRICE:o.hasClass("holidayModule")?!0:!1,PROP_SEASON_PRICE:n.Holiday.getPrice(u,bt),PROP_SEASON_LABEL:kt,HOLIDAY_FEATURES:[]},o.hasClass("holidayModule"))for(g=0;g<tt.length;g++){for(ht=tt[g],nt=0;nt<u.Features.length;nt++)if(h=u.Features[nt].Childs,h&&h.length>0)for(p=0;p<h.length;p++)if(h[p].Tag.indexOf(ht.tag)>-1){d.HOLIDAY_FEATURES.push({PROP_FEAT_CLASS:ht["class"],PROP_FEAT_TITLE:h[p].Title});continue}if(d.HOLIDAY_FEATURES.length==4)break}s.PROPERTIES.push(d)}n.tryApplyWebP(s);WebApp.VCS.markView(e.Properties,"Property")}s.HAS_DATA=e&&e.Properties&&e.Properties.length>0;WebApp.isLive()&&(n.evalEmptyData(s,t),n.evalRenderBoxes(t,f));yt=DataApi.DataView.MarkupMap[t];o=$("#"+t);o.addClass(f.dataView).find(".DataView").html(Handlebars.compile(yt)(s));WebApp.isLive()&&WebApp.PanelNav.bind(o,!ct,!lt);n.evalMediaQueries(o);$(window).trigger("dataApi:onDataViewRender",t);s.HAS_DATA&&(WebApp.ManageStickers.init(o,e.Properties,"property"),n.bindTriggerablePanoramics(o));n.PropertyBasicPanel.changeImage(o.find(".IconStyle1"),e)},u=function(t){n.PropertyBasicPanel.changeImage($("#"+t+" .IconStyle1"),oPropertyData)},f=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("c
1ount",i))})};return{dataSources:t,load:i,render:r,update:u,changeImage:f}}()
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.