PageSourceSearch

https://www.ratemyagent.com.au/chunk-DJV__FEw.js

js ratemyagent.com.au collected 2026-10-01 11:29:05 UTC 16,776 bytes, 2 lines download raw bytes

1import {c as co}from'./chunk-DcyO7dLV.js';import {c as ci$1,p as pi}from'./chunk-EvgPX2Xl.js';import {Q}from'./chunk-Dpgf0MAI.js';import'./chunk-Ca39YmFk.js';import'./chunk-CTUUQml-.js';import'./chunk-wfHPH6aT.js';import'./chunk-CiLKG3_7.js';import {B as Bi}from'./chunk-8b5wGztO.js';import'./chunk-BBxaN0fB.js';import {R as R$1}from'./chunk-DpqB7x8S.js';import {e as ei}from'./chunk-FIdXwANl.js';import'./chunk-_kSVUmd4.js';import {o as ot$1}from'./chunk-BUUgm22I.js';import {g,a as a$1}from'./chunk-jQ9DNEy7.js';import {y as yt}from'./chunk-DvlR0-GX.js';import {R}from'./chunk-z3a6vs2Y.js';import'./chunk-CeAfzWMi.js';import'./chunk-DVlaIeuV.js';import {m}from'./chunk-CFhfWJYO.js';import {E}from'./chunk-BZvDsZkw.js';import'./chunk-R9HLxJMZ.js';import {a}from'./chunk-ZCap1ewN.js';import'./chunk-BQQpSqWr.js';import'./chunk-s_TL0S8x.js';import'./chunk-Maeo6MgZ.js';import'./chunk-B7ERqH6V.js';import {D as De$1,t as te}from'./chunk-DlhfGTbH.js';import {V as Vt,L as Lt}from'./chunk-BrLeaQ4v.js';import'./chunk-DrnFuQel.js';import {A as A$1,_}from'./chunk-D80ihd6V.js';import'./chunk-_ClpSFtB.js';import'./chunk-DycPmSEn.js';import {B}from'./chunk-Dp1kZFqk.js';import {J}from'./chunk-eYB9_WZk.js';import'./chunk-ChBhY3_o.js';import'./chunk-BBNp3gnA.js';import'./chunk-Bmje3NpI.js';import'./chunk-ChOlAO5K.js';import {v as v$1,cf as w,E as $,m as mb,cg as A,aq as ti,ar as je$1,as as W,cn as si,av as Gn,ay as Rn,dR as an,w as wt,aD as ci,cs as di,ba as Mt,g as Ts,x as xy,S as S_,i as Vu,aE as YM,k as jy,d as dy,co as nS,bT as rM,A as Aw,_ as Qy,u as N_,c as Ny,aF as JM,j as jM,D as Dt,bv as He$1,a7 as G$1,bw as Nn,a9 as H,af as ve$1,K as Se$1,ag as kE,aG as Pd,bF as n,ah as f,dG as F,bx as Ln,aH as nf,an as s$1,ao as r$1,bg as x,bW as P,dK as $$1,gN as Z,gO as k,bc as x$1,bd as L,X as Z$1,o as WU,R as Rt,F as Fn,T as Tn,p as aa,t as kt,b as Rt$1,h as bM,U as UM,r as rv,J as lS,dr as Tn$1,ds as a$2,c5 as zy,a0 as R_,a5 as A_,aQ as MC,Z as Z_,aR as NC,a1 as O_,f as $u,q as qu,bU as BM,c3 as Ay,c6 as Ly,aO as PT,gP as On,W as Wu,c7 as XM,dc as qM,be as hM,cy as Oy,P as Pg}from'./main-FGWGGG6G.js';import'./chunk-vlH_k_m0.js';import'./chunk-CQH1DeBi.js';import'./chunk-DSD_OVQ1.js';import'./chunk-CgqMv0gi.js';import'./chunk-DqtWNb2V.js';var G="suburbSoldBanner",xe="body",Se="cta";function ve(t){switch(t){case On.control:return {treatment:On.control,headingKey:"control.heading"};case On.suburbOnly:return {treatment:On.suburbOnly,headingKey:"suburbOnly.heading"};default:return}}var Pe=t=>({suburb:t});function Be(t,n){if(t&1&&(Ts(0,"div",0)(1,"div",2)(2,"div",3)(3,"h2",4),bM(4),Vu(),Ts(5,"p",5),bM(6),Vu()(),Ts(7,"a",6),bM(8),Vu()()()),t&2){let e=n.$implicit,o=Z_(),i=Z_();Aw(4),rv(e(o.headingKey,UM(4,Pe,i.localityName()))),Aw(2),rv(e(i.bodyKey)),Aw(),Ny("href",i.finderUrl(),Pg),Aw(),Wu(" ",e(i.ctaKey)," ");}}function Fe(t,n){if(t&1&&dy(0,Be,9,6,"div",1),t&2){let e=Z_();Ny("translocoPrefix",e.scope);}}var et=(()=>{class t{constructor(){this.experiments=v$1(R$1),this.location=lS(()=>({locationId:this.locationId(),locationType:this.locationType(),localityName:this.localityName()})),this.scope=G,this.bodyKey=xe,this.ctaKey=Se,this.variant=$(this.experiments.getExperimentTreatment$(Tn$1.SuburbSoldBannerVariant).pipe(Se$1(ve))),this.finderUrl=lS(()=>a$2(this.location())),this.localityName=WU.required(),this.locationType=WU.required(),this.locationId=WU.required();}static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-suburb-sold-banner"]],hostVars:2,hostBindings:function(o,i){o&2&&zy("display",i.variant()?"block":"none");},inputs:{localityName:[1,"localityName"],locationType:[1,"locationType"],locationId:[1,"locationId"]},features:[jM([Dt(G)])],decls:1,vars:1,consts:[["data-id","suburb-sold-banner",1,"@container"],["class","@container","data-id","suburb-sold-banner",4,"transloco","translocoPrefix"],[1,"bg-blue-5","flex","flex-col","gap-5","rounded-[0.875rem]","px-5.5","py-5","@2xl:flex-row","@2xl:items-center","@2xl:gap-8","@2xl:py-8"],[1,"flex-1"],["data-id","banner-heading",1,"text-heading-2","text-blue-100"],["data-id","banner-body",1,"mt-2","text-body","text-steel-90"],["target","_blank","data-id","banner-cta",1,"bg-renowned-purple","flex","h-12.5","w-full","flex-none","items-center","justify-center","rounded-[0.625rem]","text-button","font-bold!","text-white!","no-underline!","@2xl:w-[13.75rem]",3,"href"]],template:function(o,i){if(o&1&&S_(0,Fe,1,1,"div",0),o&2){let y;N_((y=i.variant())?0:-1,y);}}
1,dependencies:[wt],encapsulation:2});}}return t})();function Re(t,n){if(t&1&&Ay(0,"h2",0),t&2){let e=Z_();Ly("innerHTML",e.heading,PT);}}function De(t,n){if(t&1&&Ay(0,"p",1),t&2){let e=Z_();Ly("innerHTML",e.body,PT);}}var ot=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-filters-no-results"]],hostAttrs:[1,"block","rounded","mb-6","px-4","py-6","md:py-12","xl:py-16","text-center","bg-steel-5"],inputs:{heading:"heading",body:"body"},decls:2,vars:2,consts:[[1,"text-2xl","font-bold",3,"innerHtml"],[1,"mt-2",3,"innerHtml"]],template:function(o,i){o&1&&(S_(0,Re,1,1,"h2",0),S_(1,De,1,1,"p",1)),o&2&&(N_(i.heading?0:-1),Aw(),N_(i.body?1:-1));},encapsulation:2});}}return t})();var Me=(t,n,e)=>({current:t,last:n,total:e});function $e(t,n){if(t&1&&(bM(0),YM(1,"transloco")),t&2){let e=Z_();Wu(" ",XM(1,1,"filters.total-records.title."+e.suffix(),qM(4,Me,e.current(),e.last(),e.totalRecords().total)),`
2`);}}var it=(()=>{class t{constructor(){this.totalRecords=WU.required(),this.suffix=WU.required(),this.current=lS(()=>{let e=this.totalRecords(),o=e.skip+1;return e.filteredTotal>0?o:0}),this.last=lS(()=>{let e=this.totalRecords(),i=(e.skip/e.take+1)*e.take;return i>e.total?e.total:i});}static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-total-records"]],hostAttrs:[1,"block","text-steel-80","text-body"],inputs:{totalRecords:[1,"totalRecords"],suffix:[1,"suffix"]},decls:1,vars:1,template:function(o,i){o&1&&S_(0,$e,2,8),o&2&&N_(i.totalRecords().total>0?0:-1);},dependencies:[Mt],encapsulation:2});}}return t})();var Ne=t=>({mapType:t}),Te=(()=>{class t{constructor(){this.relativeUrl=WU("../map"),this.mapType=WU("Review");}static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-location-map-cta"]],inputs:{relativeUrl:[1,"relativeUrl"],mapType:[1,"mapType"]},decls:5,vars:7,consts:[["type","button","mat-stroked-button","","color","primary","queryParamsHandling","merge","data-id","location-map-view",3,"routerLink","queryParams"],["glyph","map"]],template:function(o,i){o&1&&(Ts(0,"button",0),xy(1,"rma-icon",1),Ts(2,"span"),bM(3),YM(4,"transloco"),Vu()()),o&2&&(Ny("routerLink",i.relativeUrl())("queryParams",UM(5,Ne,i.mapType())),Aw(3),rv(JM(4,3,"locations.map-cta")));},dependencies:[Rt,Fn,Tn,aa,kt,Rt$1,Mt],encapsulation:2,changeDetection:1});}}return t})();var nt=(()=>{class t{constructor(){this.campaignApiService=v$1(De$1),this.destroyRef=v$1(He$1),this.locationApiService=v$1(m),this.locationMetaService=v$1(yt),this.activatedRoute=v$1(G$1),this.filterFormFactory=v$1(Q),this.featureService=v$1(Nn),this.router=v$1(H),this.filters=new ve$1,this.form=this.getSortByForm(),this.tabType=R.Listings,this.sortByControl=this.form.form.get("orderBy"),this.location$=this.getRouteData("location"),this.verticalType$=this.getRouteData("verticalType");let e=this.activatedRoute.params.pipe(Se$1(({page:r})=>+(r??1))),o=this.activatedRoute.queryParamMap.pipe(Se$1(r=>A$1(r,"statuses")));this.mapData$=kE([o.pipe(Pd(n.Sold)),e]).pipe(Se$1(([r,l])=>({relativeUrl:l>1?"../../map":"../map",mapType:r===n.Sold?"CompletedListing":"ActiveListing"}))),this.showLocationFilter$=this.location$.pipe(Se$1(({locationType:r})=>r!=="Locality"),f()),this.showSuburbSoldBanner$=kE([o,this.location$,this.verticalType$]).pipe(Se$1(([r,{locationType:l},x])=>r===n.Sold&&l==="Locality"&&F(x)),f()),this.showSubStatusFilter$=this.featureService.getFeature$(Ln.UseSourceListingStatus,false);let i=this.location$.pipe(nf(({locationType:r,locationId:l})=>this.locationApiService.getNearbyLocations(r,l)),Se$1(r=>r.map(({locationId:l})=>l)),f()),y=kE([this.filters.asObservable(),e,this.location$,i,this.form.values$]).pipe(Se$1(([r,l,x,B,Le])=>this.mapApiFilters(l,x,r,B,Le.orderBy))),_=kE([this.verticalType$,y]).pipe(nf(([r,l])=>this.getCampaigns(r,l)),f());this.propertiesSummary$=_.pipe(Se$1(({skip:r,take:l,total:x,results:B})=>({skip:r,take:l,total:x,filteredTotal:B.length}))),this.aggregates$=_.pipe(Se$1(({filters:r})=>r)),this.properties$=_.pipe(Se$1(r=>s$1(r$1({},r),{results:te(r,"property")}))),kE([_,e,this.location$,this.verticalType$]).pipe(x()).subscribe(([r,l,x,B])=>this.locationMetaService.updatePropertyMetaTags(this.tabType,B,x,r,l));}onFilter(e){this.filters.next(e);}getRouteData(e){return _(this.activatedRoute.data,e,this.destroyRef)}getCampaigns(e,o){return P(e)?this.campaignApiService.getLeasingCampaigns(o):this.campaignApiService.getSalesCampaigns(o)}mapApiFilters(e,o,i,y,_){e<=0&&(e=1);let r=(e-1)*Z,l=$$1-Z;r>
2$$1&&console.error(`LOCATION PROPERTIES OUT BOUNDS: [UPPER] [${e}][${this.router.url}]`);let x=Math.min(l,r);x<0&&console.error(`LOCATION PROPERTIES OUT BOUNDS: [LOWER] [${e}] [${this.router.url}]`);let B=Math.max(0,x);return r$1({skip:B,take:Z,orderBy:this.getOrderBy(o,_),orderByValue:o.locationId,from:a(g(new a$1,1))},this.mapPropertyFiltersFormToApiFilters(i,o,y))}mapPropertyFiltersFormToApiFilters(e,o,i){return r$1(r$1(s$1(r$1({},e),{statuses:ci$1(e.statuses)}),pi(e)),this.getLocationFilter(o,e,i))}getLocationFilter(e,o,i){let y=o.includeSurroundingLocations?[e.locationId,...i]:[e.locationId];return k(e.locationType,y)}getOrderBy(e,o){if(o)switch(o){case "LeastExpensive":return "PriceAscending";case "MostExpensive":return "PriceDescending";case "MostRecent":return "StatusDate";case "Location":switch(e.locationType){case "Locality":return "LocalityValue";case "Neighbourhood":return "NeighbourhoodValue";case "City":return "CityValue";case "County":return "CountyValue";case "State":return "StateValue"}}}getSortByForm(){let e=new x$1({orderBy:new L("MostRecent")}),o=[{queryKey:"orderBy",type:"string"}];return this.filterFormFactory.create(e,o)}static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275prov=Z$1({token:t,factory:t.\u0275fac});}}return t})();var we=()=>({cssClass:"col-span-full row-start-4 md:row-start-2"}),rt=()=>({cssClass:"mt-8"}),Ee=t=>({location:t});function Oe(t,n){t&1&&xy(0,"rma-total-records",4),t&2&&Ny("totalRecords",n);}function Ue(t,n){t&1&&xy(0,"span",5);}function Ie(t,n){if(t&1&&xy(0,"rma-location-map-cta",8),t&2){let e=n;Ny("relativeUrl",e.relativeUrl)("mapType",e.mapType);}}function Ae(t,n){if(t&1&&(Ts(0,"mat-option",13),bM(1),YM(2,"lowercase"),YM(3,"transloco"),Vu()),t&2){let e=n.$implicit;Ny("value",e),Aw(),rv(JM(3,4,JM(2,2,"locations.properties.sort-by."+e)));}}function ke(t,n){if(t&1&&(Ts(0,"mat-form-field",11)(1,"mat-label"),bM(2),Vu(),Ts(3,"mat-select",12),R_(4,Ae,4,6,"mat-option",13,A_),Vu(),MC(),Vu()),t&2){let e=n.$implicit,o=Z_();Aw(2),rv(e("sort-by.label")),Aw(),Ny("formControl",o.sortByControl),NC(),Aw(),O_(o.sortOptions);}}function qe(t,n){t&1&&Oy(0);}function Ke(t,n){if(t&1&&(Ts(0,"rma-property-tile-list",14),dy(1,qe,1,0,"ng-container",15),Vu(),xy(2,"rma-pagination",16)),t&2){let e=Z_().rmaLet,o=Z_(),i=rM(16);Ny("properties",e.results)("verticalType",o.verticalType())("trixelSourceCategory",o.trixelSourceCategory),Aw(),Ny("ngTemplateOutlet",i)("ngTemplateOutletContext",BM(6,we)),Aw(),Ny("pagedList",e);}}function Ve(t,n){if(t&1&&xy(0,"rma-filters-no-results",18),t&2){let e=n.$implicit,o=Z_(3);Ny("heading",e("no-results.properties",UM(2,Ee,o.location().name)))("body",e("no-results.expand"));}}function je(t,n){t&1&&Oy(0);}function He(t,n){if(t&1&&dy(0,Ve,1,4,"rma-filters-no-results",17)(1,je,1,0,"ng-container",15),t&2){Z_(2);let e=rM(16);Ny("translocoPrefix","locations"),Aw(),Ny("ngTemplateOutlet",e)("ngTemplateOutletContext",BM(3,rt));}}function Ye(t,n){if(t&1&&($u(0),S_(1,Ke,3,7)(2,He,2,4),qu()),t&2){let e=n.rmaLet;Aw(),N_(e?.total?1:2);}}function ze(t,n){if(t&1&&xy(0,"rma-suburb-sold-banner",20),t&2){let e=Z_().cssClass,o=Z_();hM(e),Ny("locationId",o.location().locationId)("localityName",o.location().name)("locationType",o.location().locationType);}}function Ge(t,n){if(t&1&&S_(0,ze,1,5,"rma-suburb-sold-banner",19),t&2){let e=Z_();N_(e.showSuburbSoldBanner()?0:-1);}}function We(t,n){if(t&1&&(Ts(0,"div",22)(1,"h2",23),bM(2),Vu(),Ts(3,"span",24),bM(4),Vu()()),t&2){let e=n.$implicit,o=Z_().error;Aw(2),rv(e("messages.error.standard")),Aw(2),rv(o);}}function Je(t,n){t&1&&Oy(0);}function Qe(t,n){if(t&1&&dy(0,We,5,2,"div",21)(1,Je,1,0,"ng-container",15),t&2){Z_();let e=rM(16);Aw(),Ny("ngTemplateOutlet",e)("ngTemplateOutletContext",BM(2,rt));}}function Xe(t,n){t&1&&Oy(0);}function Ze(t,n){if(t&1&&(xy(0,"rma-skeleton-grid",25)(1,"rma-skeleton-grid",26)(2,"rma-skeleton-grid",26),dy(3,Xe,1,0,"ng-container",15)),t&2){Z_();let e=rM(16);Ny("bones",3),Aw(),Ny("bones",3),Aw(),Ny("bones",3),Aw(),Ny("ngTemplateOutlet",e)("ngTemplateOutletContext",BM(5,rt));}}var to=(()=>{class t{constructor(){this.facade=v$1(nt),this.sortOptions=E,this.trixelSourceCategory=w.LocationPageCampaignTile,this.aggregates$=this.facade.aggregates$,this.location=$(this.facade.location$,{requireSync:true}),this.mapData$=this.facade.mapData$,this.propertiesSummary=$(this.facade.propertiesSummary$),this.properties$=this.facade.properties$,this.showLocationFilter$=this.facade.showLocationFilter$,this.showSubStatusFilter$=this.facade.showSubStatusFilter$,this.showSuburbSoldBanner=$(this.facade.showSuburbSoldBanner$),this.tab=this.facade.tabType,this.verticalType=$(this.facade.verticalType$,{requireSync:true}
2),this.sortByControl=this.facade.sortByControl;}onFilter(e){this.facade.onFilter(e);}static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-location-properties"]],hostAttrs:[1,"max-w-location","mx-auto","block"],features:[jM([Dt("locations"),Dt("properties"),Q,nt])],decls:21,vars:22,consts:[["suburbSoldBanner",""],["error",""],["suspense",""],[1,"md:item-center","mb-4","flex","flex-col","items-start","md:flex-row","md:justify-between"],["suffix","campaigns",1,"text-body","text-steel-80",3,"totalRecords"],[1,"block","h-8"],[1,"mt-4","flex","flex-wrap","gap-5","md:mt-0","md:gap-3"],[1,"w-auto!",3,"filterChange","aggregates","clearPagination","vertical","showStatusFilter","showLocations","showSubStatusFilter"],[3,"relativeUrl","mapType"],["class","mat-input-density-btn","appearance","outline","subscriptSizing","dynamic",4,"transloco","translocoPrefix"],[4,"rmaLet","rmaLetErrorRef","rmaLetSuspenseRef"],["appearance","outline","subscriptSizing","dynamic",1,"mat-input-density-btn"],[3,"formControl"],[3,"value"],["priority","",1,"md:image-tile-grid","mb-8","grid","gap-8",3,"properties","verticalType","trixelSourceCategory"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"pagedList"],[3,"heading","body",4,"transloco","translocoPrefix"],[3,"heading","body"],[3,"class","locationId","localityName","locationType"],[3,"locationId","localityName","locationType"],["class","bg-steel-5 mb-6 rounded px-4 py-6 text-center md:py-12 xl:py-16",4,"transloco"],[1,"bg-steel-5","mb-6","rounded","px-4","py-6","text-center","md:py-12","xl:py-16"],[1,"mb-2","text-2xl","font-bold"],[1,"hidden"],["heightClass","h-96 mb-8",3,"bones"],["heightClass","hidden md:block h-96 mb-8",3,"bones"]],template:function(o,i){if(o&1&&(Ts(0,"div",3)(1,"div"),xy(2,"rma-location-page-title"),Ts(3,"div"),S_(4,Oe,1,1,"rma-total-records",4)(5,Ue,1,0,"span",5),Vu()(),Ts(6,"div",6)(7,"rma-property-filters",7),YM(8,"async"),YM(9,"async"),YM(10,"async"),jy("filterChange",function(_){return i.onFilter(_)}),S_(11,Ie,1,2,"rma-location-map-cta",8),YM(12,"async"),Vu(),dy(13,ke,6,2,"mat-form-field",9),Vu()(),dy(14,Ye,3,1,"ng-container",10)(15,Ge,1,1,"ng-template",null,0,nS)(17,Qe,2,3,"ng-template",null,1,nS)(19,Ze,4,6,"ng-template",null,2,nS)),o&2){let y,_,r=rM(18),l=rM(20);Aw(3),Qy("h-8",i.propertiesSummary()?.total===0),Aw(),N_((y=i.propertiesSummary())?4:5,y),Aw(3),Ny("aggregates",JM(8,14,i.aggregates$))("clearPagination",true)("vertical",i.verticalType())("showStatusFilter",true)("showLocations",JM(9,16,i.showLocationFilter$))("showSubStatusFilter",JM(10,18,i.showSubStatusFilter$)),Aw(4),N_((_=JM(12,20,i.mapData$))?11:-1,_),Aw(2),Ny("translocoPrefix","locations"),Aw(),Ny("rmaLet",i.properties$)("rmaLetErrorRef",r)("rmaLetSuspenseRef",l);}},dependencies:[A,Te,ei,ti,je$1,W,Vt,Lt,J,si,ot,ot$1,co,Bi,Gn,Rn,an,B,et,it,wt,ci,di,Mt],encapsulation:2});}}return t})();export{to as LocationPropertiesComponent};//# sourceMappingURL=chunk-DJV__FEw.js.map

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.