PageSourceSearch

https://www.ratemyagent.com/chunk-BsfQ-Pe7.js

js ratemyagent.com collected 2026-10-01 11:47:20 UTC 50,649 bytes, 2 lines download raw bytes

1import {P}from'./chunk-DEbCkVwS.js';import {D as De$1,c}from'./chunk-DlhfGTbH.js';import {V as Vt,L as Lt}from'./chunk-BrLeaQ4v.js';import'./chunk-DrnFuQel.js';import {g}from'./chunk-Dh5r_Bg_.js';import {_ as _$1,u,U}from'./chunk-DdQ1aweD.js';import {a as ae}from'./chunk-C51rzMQT.js';import'./chunk-CfdfpFVA.js';import {L,S}from'./chunk-B02AT_YD.js';import {n as ne}from'./chunk-D80ihd6V.js';import {F}from'./chunk-_ClpSFtB.js';import {p}from'./chunk-DycPmSEn.js';import'./chunk-Bta6x7F3.js';import {P as P$1}from'./chunk-DZ61tpRG.js';import {q}from'./chunk-BCctkqgi.js';import'./chunk-DNPD0STm.js';import {Y as Yt,m as mt$1}from'./chunk-C0uKM84q.js';import'./chunk-CulDww35.js';import {I}from'./chunk-CbqulXGf.js';import {B}from'./chunk-Dp1kZFqk.js';import {J as J$1,I as It}from'./chunk-eYB9_WZk.js';import'./chunk-ChBhY3_o.js';import {v as ve,n as ne$1}from'./chunk-BBNp3gnA.js';import'./chunk-Bmje3NpI.js';import'./chunk-ChOlAO5K.js';import {ep as QU,cd as lo$1,v as v$1,ej as jn$1,bx as Ln$1,m as mb,ap as _,w as wt,d as dy,c as Ny,j as jM,D as Dt,eq as qy,er as nM,b7 as i$1,gz as Be,bH as o$1,an as s$1,ao as r$1,cv as xe,c0 as Le,o as WU,J as lS,aI as J,ar as je,as as W,cs as di$1,G as GU,gA as M$1,gB as A,F as Fn$1,T as Tn$1,R as Rt,t as kt,cz as K_,b as Rt$1,dt as wi$1,dx as a,co as nS,bT as rM,A as Aw,dj as y,aq as ti$1,ba as Mt,dy as S$1,C as Fi$1,bv as He,b4 as tu,cu as Ib,_ as Qy,f as $u,S as S_,q as qu,Z as Z_,u as N_,X as Z,a0 as R_,a1 as O_,e as H_,g as Ts,h as bM,i as Vu,k as jy,n as zf,Q as Qf,a5 as A_,r as rv,cA as J_,Y as Sy,cO as s$,c2 as Hu,c4 as Bu,W as Wu,x as xy,a2 as dv,aE as YM,a3 as RM,c7 as XM,bU as BM,U as UM,aF as JM,P as Pg,cP as fy,dn as v_,aJ as Z$1,dp as D_,c3 as Ay,a4 as OM,l as $M,dv as eS,fm as uS,f7 as Vi$1,cb as j,bG as _e,B as Z$2,gC as O,gD as iE,aH as nf,K as Se,M as wE,dh as ut$1,aX as sf,bh as Rn$1,bz as Kd,L as n,am as it,ak as $t,a6 as Ea,E as $,ab as Wo$1,gE as xt$1,dF as Zd,c1 as u$1,gF as Ne}from'./main-FGWGGG6G.js';import'./chunk-vlH_k_m0.js';import'./chunk-DSD_OVQ1.js';import'./chunk-Cnbwco__.js';import'./chunk-CgqMv0gi.js';import'./chunk-DqtWNb2V.js';var at=(()=>{class e{constructor(){this.members=new Set;}register(t){return this.members.add(t),()=>this.members.delete(t)}follow(t){for(let n of this.members)n!==t&&Math.abs(n.scrollLeft-t.scrollLeft)>.5&&(n.scrollLeft=t.scrollLeft);}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275prov=Z({token:e,factory:e.\u0275fac});}}return e})(),De=(()=>{class e{constructor(){this.group=v$1(at,{optional:true}),this.host=v$1(lo$1);let t=this.group?.register(this.host.nativeElement);v$1(He).onDestroy(()=>t?.());}onScroll(){this.group?.follow(this.host.nativeElement);}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275dir=Ib({type:e,selectors:[["","rmaScrollSync",""]],hostBindings:function(n,i){n&1&&jy("scroll",function(){return i.onScroll()});}});}}return e})();var ut=(()=>{class e{constructor(){this.host=v$1(lo$1),this.window=v$1(S$1),this.inBand=Fi$1(true),this.yieldTo=WU(void 0,{alias:"rmaYieldTo"}),this.yieldedAtScrollY=0;let t=v$1(He);tu(()=>{let n=()=>this.measure();this.window.addEventListener("scroll",n,{passive:true}),t.onDestroy(()=>this.window.removeEventListener("scroll",n)),this.measure();});}measure(){let t=this.yieldTo();if(!t){this.inBand.set(true);return}if(!this.inBand()){window.scrollY<this.yieldedAtScrollY&&this.inBand.set(true);return}let n=t.getBoundingClientRect();n.height&&n.top<=this.host.nativeElement.getBoundingClientRect().bottom&&(this.yieldedAtScrollY=window.scrollY,this.inBand.set(false));}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275dir=Ib({type:e,selectors:[["","rmaYieldTo",""]],hostAttrs:[1,"transition-[translate,opacity]","duration-200","ease-out","motion-reduce:transition-none"],hostVars:6,hostBindings:function(n,i){n&2&&Qy("-translate-y-full",!i.inBand())("opacity-0",!i.inBand())("pointer-events-none",!i.inBand());},inputs:{yieldTo:[1,"rmaYieldTo","yieldTo"]}});}}return e})();var w="compareAgent";var bn=Symbol("DEEP_SIGNAL");function Tn(e){return new Proxy(e,{has(o,t){return !!this.get(o,t,void 0)},get(o,t){let n=uS(o);return !Zn(n)||!(t in n)?(Vi$1(o[t])&&o[t][bn]&&delete o[t],o[t]):(Vi$1(o[t])||(Object.defineProperty(o,t,{value:lS(()=>o()[t]),configurable:true}),o[t][bn]=true),Tn(o[t]))}})}var Xn=[WeakSet,WeakMap,Promise,Date,Error,RegExp,ArrayBuffer,DataView,Function];function Zn(e){if(e===null||typeof e!="object"||Jn(e))return  false;let o=Object.getPrototypeOf(e);if(o===Object.prototype)return  true;for(;o&&o!==Object.prototype;){if(Xn.includes(o.constructor))return  false;
1o=Object.getPrototypeOf(o);}return o===Object.prototype}function Jn(e){return typeof e?.[Symbol.iterator]=="function"}var eo=new WeakMap,H=Symbol("STATE_SOURCE");function M(e,...o){let t=uS(()=>An(e)),n=o.reduce((P,V)=>r$1(r$1({},P),typeof V=="function"?V(P):V),t),i=e[H],p=Reflect.ownKeys(e[H]);for(let P of Reflect.ownKeys(n))if(p.includes(P)){let V=P;t[V]!==n[V]&&i[V].set(n[V]);}no(e);}function An(e){let o=e[H];return Reflect.ownKeys(e[H]).reduce((t,n)=>{let i=o[n]();return s$1(r$1({},t),{[n]:i})},{})}function to(e){return eo.get(e[H])||[]}function no(e){let o=to(e);for(let t of o){let n=uS(()=>An(e));t(n);}}function rt(...e){let o=[...e],t=typeof o[0]=="function"?{}:o.shift(),n=o;return (()=>{class p{constructor(){let V=n.reduce((Ce,d)=>d(Ce),oo()),{stateSignals:b,props:k,methods:R,hooks:Me}=V,h=r$1(r$1(r$1({},b),k),R);this[H]=V[H];for(let Ce of Reflect.ownKeys(h))this[Ce]=h[Ce];let{onInit:Oe,onDestroy:$e}=Me;Oe&&Oe(),$e&&v$1(He).onDestroy($e);}static \u0275fac=function(b){return new(b||p)};static \u0275prov=Z({token:p,factory:p.\u0275fac,providedIn:t.providedIn||null})}return p})()}function oo(){return {[H]:{},stateSignals:{},props:{},methods:{},hooks:{}}}function io(e){return o=>{let t=e(r$1(r$1(r$1({[H]:o[H]},o.stateSignals),o.props),o.methods));return s$1(r$1({},o),{props:r$1(r$1({},o.props),t)})}}function we(e){return io(o=>{let t=e(o);return Reflect.ownKeys(t).reduce((i,p)=>{let P=t[p];return s$1(r$1({},i),{[p]:Vi$1(P)?P:lS(P)})},{})})}function wn(e){return o=>{let t=r$1(r$1(r$1({[H]:o[H]},o.stateSignals),o.props),o.methods),n=typeof e=="function"?e(t):e,i=(p,P)=>P?()=>{p&&p(),P(t);}:p;return s$1(r$1({},o),{hooks:{onInit:i(o.hooks.onInit,n.onInit),onDestroy:i(o.hooks.onDestroy,n.onDestroy)}})}}function lt(e){return o=>{let t=e(r$1(r$1(r$1({[H]:o[H]},o.stateSignals),o.props),o.methods));return s$1(r$1({},o),{methods:r$1(r$1({},o.methods),t)})}}function st(e){return o=>{let t=typeof e=="function"?e():e,n=Reflect.ownKeys(t),i=o[H],p={};for(let P of n)i[P]=Fi$1(t[P]),p[P]=Tn(i[P]);return s$1(r$1({},o),{stateSignals:r$1(r$1({},o.stateSignals),p)})}}var Mn=({hasProfileCateredLanguages:e,cateredLanguages:o})=>e?(o??[]).map(t=>t?.key).filter(t=>!!t):[],Pn=({hasProfileReviewAttributes:e,reviewAttributes:o})=>e?(o??[]).map(t=>t?.name).filter(t=>!!t):[],En=({hasRecognitionBadges:e,isHighlyRecommended:o,isTrustedAgent:t,isPriceExpert:n})=>{if(!e)return [];let i=[];return o&&i.push("top20"),t&&i.push("trusted"),n&&i.push("priceExpert"),i},Ct=e=>{let o=new Set;for(let{statistics:t}of e){let n=t?.totaL_SALES_QTY?.byPropertyType??t?.activE_CAMPAIGNS?.byPropertyType;if(n)for(let[i,p]of Object.entries(n))p>0&&o.add(i);}return Array.from(o)},kn=(e,o)=>o.map(t=>({propertyType:t,quantity:e.totaL_SALES_QTY.byPropertyType?.[t]??0,avg:e.avG_SALE_PRICE.byPropertyType?.[t]??0,total:e.totaL_SALES_VALUE.byPropertyType?.[t]??0})),Ie=(e,o)=>e.indexOf(o)>=0,Ln=(e,o)=>{let t=e.totaL_SALES_QTY;return {total:t?.totalValue??0,lead:t?.listingAgentValue??0,support:(t?.totalValue??0)-(t?.listingAgentValue??0),bestPropertiesSoldTotal:Ie(o,"PropertiesSoldTotal"),bestPropertiesSoldAsLead:Ie(o,"PropertiesSoldAsLead"),bestPropertiesSoldAsSupport:Ie(o,"PropertiesSoldAsSupport")}};var ao={sortBy:"TotalReviews",propertyType:null,agentsLoading:true,agents:[],agentsError:void 0,marketsLoading:true,markets:[],marketsError:void 0,location:void 0},Dn=e=>(console.error(e),e.error.message??e.message??""),vt=rt(st(ao),we(({agents:e,propertyType:o})=>{let t=lS(()=>Ct(e()));return {propertyTypes:t,effectivePropertyType:lS(()=>{let n=o();return n!==null&&t().includes(n)?n:null})}}),we(e=>{let o=$(v$1(Wo$1).isAuthenticated$);return {gated:lS(()=>o()!==true&&!e.location()),showLoginCard:lS(()=>o()===false&&!e.location())}}),lt(e=>{let o=v$1(j),t=v$1(_e),n$1=v$1(Z$2),i=O(iE(Rn$1(({resolved:b})=>b),sf(()=>M(e,b=>({agentsLoading:b.agents.length===0}))),nf(({agentCodes:b,sortBy:k})=>(b.length?n$1.agents(b,k).pipe(Se(({results:R})=>{let Me=Ct(R);return R.map(h=>s$1(r$1({},h),{agentProfileUrl:h.agentProfileUrl?`/${h.agentProfileUrl}`:h.agentProfileUrl,agencyProfileUrl:h.agencyProfileUrl?`/${h.agencyProfileUrl}`:h.agencyProfileUrl,agentProfileReviewsUrl:h.agentProfileReviewsUrl?`/${h.agentProfileReviewsUrl}`:h.agentProfileReviewsUrl,agentProfilePropertiesUrl:h.agentProfilePropertiesUrl?`/${h.agentProfilePropertiesUrl}`:h.agentProfilePropertiesUrl,bestTotalReviews:Ie(h.bestStatistics,"TotalReviews"),sales:Ln(h.statistics,h.bestStatistics),propertyTypes:kn(h.statistics,Me),languages:Mn(h),sentiments:Pn(h),achievements:En(h)}))})):wE([])).pipe(ut$1({next:R=>M(e,{agents:R,agentsLoading:false,agentsError:void 0}),error:R=>M(e,{agentsError:Dn(R),agentsLoading:false})}))))),p=O(iE(sf(()=>M(e,b=>({marketsLoading:b.markets.length===0}))),nf(b=>(b.length?n$1.markets(b).pipe(Se(({results:k})=>k),Se(k=>
1k.map(R=>({id:R.locationId,locationType:R.locationType,name:R.name,shortName:R.displayName,url:R.locationProfileUrl})))):wE([])).pipe(ut$1({next:k=>M(e,{markets:k,marketsLoading:false,marketsError:void 0}),error:k=>M(e,{marketsError:Dn(k),marketsLoading:false})}))))),P=O(iE(Rn$1(Boolean),Kd(()=>t.settlePendingMerge().pipe(n(it))))),V=()=>{P(t.hasPendingMerge),i(lS(()=>{t.loadedShortlist();let b=e.sortBy(),k=t.shortlistResolved();return uS(()=>({agentCodes:t.shortlist(),sortBy:b,resolved:k}))})),p(lS(()=>e.location()?[]:t.shortlist()));};return {sort(b){M(e,{sortBy:b});},setPropertyType(b){M(e,{propertyType:b});},remove(b){M(e,k=>({agents:k.agents.filter(R=>R.agentCode!==b)})),t.remove(b).pipe($t(1),Ea(k=>(console.error("Failed to remove agent:",k),it))).subscribe();},init(){t.location?(M(e,{location:t.location}),V()):o.isPlatformBrowser&&V();}}}),wn({onInit(e){e.init();}}));var ro=(e,o)=>o.agentCode;function lo(e,o){if(e&1){let t=H_();Ts(0,"mat-checkbox",1),jy("change",function(){let i=zf(t).$implicit,p=Z_();return Qf(p.toggled.emit(i.agentCode))}),Ts(1,"span",2),xy(2,"rma-profile-avatar",3),Ts(3,"span",4),bM(4),Vu()()();}if(e&2){let t=o.$implicit;Ny("checked",t.checked),Sy("data-id","agent-toggle-"+t.agentCode),Aw(2),Ny("avatar",t.avatarImage)("size",32)("lazyLoad",false),Aw(2),rv(t.agentName);}}var In=(()=>{class e{constructor(){this.agents=WU.required(),this.toggled=GU();}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275cmp=mb({type:e,selectors:[["rma-agent-toggle-row"]],hostAttrs:[1,"flex","items-center","gap-x-6","gap-y-2","overflow-x-auto","md:grid","md:grid-cols-[repeat(auto-fill,minmax(11rem,1fr))]","md:overflow-x-visible"],inputs:{agents:[1,"agents"]},outputs:{toggled:"toggled"},decls:2,vars:0,consts:[["color","primary",1,"min-w-0","shrink-0",3,"checked"],["color","primary",1,"min-w-0","shrink-0",3,"change","checked"],[1,"flex","min-w-0","items-center","gap-2"],[3,"avatar","size","lazyLoad"],[1,"line-clamp-1","whitespace-nowrap","md:whitespace-normal"]],template:function(n,i){n&1&&R_(0,lo,5,6,"mat-checkbox",0,ro),n&2&&O_(i.agents());},dependencies:[ve,ne$1,q],encapsulation:2});}}return e})();var so={agents:[],status:"idle",loaded:false,hiddenAgentCodes:[],markers:[],boundsVersion:0,markerType:"CompletedListing",shape:void 0,gated:false},co=800,po=["h-10","w-10","rounded-full","object-cover","shadow-md"],mo="pointer-events-none absolute inset-0 rounded-full border-2 border-white",go=({agents:e,markerType:o,shape:t})=>r$1(r$1({markerType:o,verticalType:o$1,profileIdentifiers:e.map(({agentCode:n})=>({profileType:i$1,profileCode:n}))},o==="CompletedListing"?{from:Ne}:{}),t?{shape:t}:{}),_o=(e,o)=>
1o.filter(({agentCode:t})=>(e.profileIdentifiers??[]).some(({profileType:n,profileCode:i})=>n===i$1&&i===t)),fo=(e,o)=>e.length===o.length&&e.every(({agentCode:t})=>o.some(n=>n.agentCode===t)),ct=(e,o,t)=>e.map((n,i)=>n.detail.id===o?s$1(r$1({},n),{zIndex:t==="active"?co:i,detail:s$1(r$1({},n.detail),{status:t,hovered:false})}):n),uo=(e,o,t)=>e.map(n=>n.detail.id===o?s$1(r$1({},n),{detail:s$1(r$1({},n.detail),{info:t})}):n),yt=rt(st(so),we(e=>({visibleMarkers:lS(()=>e.markers().filter(({agentCode:o})=>!e.hiddenAgentCodes().includes(o))),activeMarker:lS(()=>e.markers().find(({agentCode:o,detail:t})=>t.status==="active"&&!!t.info&&!e.hiddenAgentCodes().includes(o))??null),loading:lS(()=>e.status()==="loading"),failed:lS(()=>e.status()==="failed"),initialising:lS(()=>!e.loaded()),resetBounds:lS(()=>e.boundsVersion()?`${e.boundsVersion()}`:void 0),toggles:lS(()=>e.agents().map(({agentCode:o,agentName:t,theme:n})=>({agentCode:o,agentName:t,avatarImage:n?.avatarImage,checked:!e.hiddenAgentCodes().includes(o)})))})),we(e=>({activeAgentCode:lS(()=>e.activeMarker()?.agentCode??null),empty:lS(()=>e.status()==="ready"&&e.markers().length===0)})),lt(e=>{let o=v$1(j),t=v$1(xt$1),n$1=v$1(u),i=v$1(De$1),p=v$1(g),P=v$1(Le),V=d=>({boundsVersion:d.boundsVersion+1}),b=d=>{let v=d.theme?.avatarImage||P(u$1),T=n$1.getContent(v,void 0,mo);return (T instanceof HTMLImageElement?T:T?.querySelector("img"))?.classList.add(...po),T},k=(d,v,T)=>{let F=U(d,o$1,{icon:v.theme?.avatarImage??"",gmpClickable:true,zIndex:T,content:b(v)});return s$1(r$1({},F),{agentCode:v.agentCode,detail:s$1(r$1({},F.detail),{id:`${d.combinedHash}-${v.agentCode}`})})},R=d=>t.queryMapMarkers(go(d)).pipe(Se(v=>(v.markers??[]).flatMap((T,F)=>_o(T,d.agents).map(oe=>k(T,oe,F)))),n(wE(null))),Me=O(iE(Rn$1(()=>o.isPlatformBrowser),sf(({shape:d})=>M(e,()=>r$1({},d?{}:{status:"loading",markers:[]}))),nf(d=>R(d).pipe(sf(v=>M(e,T=>r$1({status:v?"ready":"failed",loaded:true,markers:v??[]},!d.shape&&v?.some(({agentCode:F})=>!T.hiddenAgentCodes.includes(F))?V(T):{}))))))),h=()=>{if(e.gated())return;let d=e.agents().filter(({agentCode:v})=>!e.hiddenAgentCodes().includes(v));if(!d.length){M(e,{markers:[],status:"ready",loaded:true});return}Me({agents:d,markerType:e.markerType(),shape:e.shape()});},Oe=O(iE(sf(({agents:d,gated:v})=>M(e,T=>{let F=T.hiddenAgentCodes.filter(oe=>d.some(({agentCode:Hn})=>Hn===oe));return r$1({agents:d,gated:v},F.length===T.hiddenAgentCodes.length?{}:{hiddenAgentCodes:F})})),Rn$1(({gated:d,visible:v})=>!d&&v),Se(({agents:d})=>d),Zd(fo),sf(()=>{M(e,{shape:void 0}),h();}))),$e=(d,v)=>d==="Review"?p.searchReviews({verticalTypes:[o$1],reviewCodes:v}).pipe(Se(({results:T})=>T)):i.getSalesCampaignsByCode(v).pipe(Se(T=>T.map(F=>c(F,"property")))),Ce=O(iE(sf(({id:d})=>M(e,v=>{let T=v.markers.find(({detail:oe})=>oe.status==="active"),F=T?ct(v.markers,T.detail.id,"viewed"):v.markers;return {markers:ct(F,d,"active")}})),Rn$1(({info:d})=>!d),nf(({id:d,codes:v,markerType:T})=>$e(T,v).pipe(ut$1({next:F=>M(e,oe=>({markers:uo(oe.markers,d,F)})),error:F=>{console.error(F),M(e,oe=>({markers:ct(oe.markers,d,"viewed")}));}})))));return {load:Oe,selectMarker:Ce,setMarkerType(d){e.markerType()!==d&&(M(e,{markerType:d}),h());},setShape(d){M(e,{shape:d}),h();},toggle(d){M(e,v=>({hiddenAgentCodes:v.hiddenAgentCodes.includes(d)?v.hiddenAgentCodes.filter(T=>T!==d):[...v.hiddenAgentCodes,d]})),h();},deselectMarker(d){M(e,v=>({markers:ct(v.markers,d,"viewed")}));}}}));var yo=["mapArea"],xo=()=>[import('./main-FGWGGG6G.js').then(function(n){return n.hB}).then(e=>e.CalloutComponent),import('./chunk-HTXrZ3Rm.js').then(e=>e.GoogleMapComponent),Z$1,B];function ho(e,o){if(e&1&&(Ts(0,"mat-option",6),bM(1),YM(2,"lowercase"),Vu()),e&2){let t=o.$implicit,n=Z_().$implicit;Ny("value",t),Sy("data-id","compare-agents-map-marker-type-"+t),Aw(),Wu(" ",n("markerType."+JM(2,3,t))," ");}}function So(e,o){if(e&1&&xy(0,"img",8),e&2){let t=Z_(2);Ny("src",t.previewImageUrl,Pg);}}function bo(e,o){e&1&&xy(0,"rma-skeleton-grid",10),e&2&&Ny("bones",1);}function To(e,o){e&1&&(Ts(0,"div",14)(1,"div",15),xy(2,"mat-spinner",16),Vu()());}function Ao(e,o){if(e&1){let t=H_();Ts(0,"rma-google-map",13),jy("boundsSet",function(i){zf(t);let p=Z_(4);return Qf(p.onBoundsChanged(i))})("markerSelected",function(i){zf(t);let p=Z_(4);return Qf(p.store.selectMarker(i))})("markerDeselected",function(i){zf(t);let p=Z_(4);return Qf(p.store.deselectMarker(i))}),S_(1,To,3,0,"div",14),Vu();}if(e&2){let t=Z_(4);Ny("options",t.options)("markers",t.store.visibleMarkers())("activeMarker",t.store.activeMarker())("resetBounds",t.store.resetBounds())("profileType",t.profileType)("profileCode",t.store.activeAgentCode()),Aw(),N_(t.
1store.loading()?1:-1);}}function wo(e,o){if(e&1&&(Ts(0,"div",12),xy(1,"rma-callout",17),Vu()),e&2){let t=Z_(3).$implicit;Aw(),Ny("message",t("empty"));}}function Mo(e,o){if(e&1&&(Ts(0,"div",9,0),S_(2,bo,1,1,"rma-skeleton-grid",10)(3,Ao,2,7,"rma-google-map",11),S_(4,wo,2,1,"div",12),Vu()),e&2){let t=Z_(3);Aw(2),N_(t.store.initialising()?2:t.store.failed()?-1:3),Aw(2),N_(t.store.empty()||t.store.failed()?4:-1);}}function Po(e,o){e&1&&xy(0,"rma-skeleton-grid",18),e&2&&Ny("bones",1);}function Eo(e,o){e&1&&(fy(0,Mo,5,2)(1,Po,1,1),v_(2,0,xo,null,1),D_(0,-1));}function ko(e,o){if(e&1){let t=H_();$u(0),Ts(1,"div",2)(2,"h2",3),bM(3),Vu(),Ts(4,"mat-form-field",4)(5,"mat-label"),bM(6),Vu(),Ts(7,"mat-select",5),jy("selectionChange",function(i){zf(t);let p=Z_();return Qf(p.store.setMarkerType(i.value))}),R_(8,ho,3,5,"mat-option",6,A_),Vu()()(),Ts(10,"rma-agent-toggle-row",7),jy("toggled",function(i){zf(t);let p=Z_();return Qf(p.store.toggle(i))}),Vu(),S_(11,So,1,1,"img",8)(12,Eo,4,0),qu();}if(e&2){let t=o.$implicit,n=Z_();Aw(3),rv(t("title")),Aw(3),rv(t("markerType.label")),Aw(),Ny("value",n.store.markerType()),Aw(),O_(n.markerTypes),Aw(2),Ny("agents",n.store.toggles()),Aw(),N_(n.gated()?11:12);}}var Lo="compare-agents/compare-agents-map-preview.webp",pt=(()=>{class e{constructor(){this.mapArea=QU("mapArea"),this.scope=`${w}.map`,this.store=v$1(yt),this.profileType=i$1,this.markerTypes=Be[o$1],this.options=s$1(r$1({},xe),{disableDefaultUI:true}),this.previewImageUrl=v$1(Le)(Lo),this.agents=WU.required(),this.gated=WU(false),this.store.load(lS(()=>({agents:this.agents(),gated:this.gated(),visible:!!this.mapArea()})));}onBoundsChanged(t){t&&this.store.setShape(_$1(t));}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275cmp=mb({type:e,selectors:[["rma-compare-agents-map-section"]],viewQuery:function(n,i){n&1&&qy(i.mapArea,yo,5),n&2&&nM();},hostAttrs:[1,"block","overflow-hidden","rounded-lg","border","border-steel-10","bg-white"],inputs:{agents:[1,"agents"],gated:[1,"gated"]},features:[jM([yt,u,Dt(w)])],decls:1,vars:1,consts:[["mapArea",""],[4,"transloco","translocoPrefix"],[1,"bg-blue-5","flex","flex-wrap","items-center","justify-between","gap-3","border-b","border-steel-10","px-4","py-3"],[1,"m-0","text-heading-3"],["appearance","outline","subscriptSizing","dynamic",1,"w-56","bg-white"],["data-id","compare-agents-map-marker-type",3,"selectionChange","value"],[3,"value"],[1,"border-b","border-steel-10","px-4","py-3",3,"toggled","agents"],["alt","","loading","lazy","data-id","compare-agents-map-preview",1,"block","h-96","w-full","object-cover",3,"src"],[1,"relative","h-96"],["heightClass","h-full","data-id","compare-agents-map-loading",1,"absolute","inset-0","p-4",3,"bones"],[1,"block","h-full",3,"options","markers","activeMarker","resetBounds","profileType","profileCode"],[1,"pointer-events-none","absolute","inset-0","flex","items-center","justify-center","p-4"],[1,"block","h-full",3,"boundsSet","markerSelected","markerDeselected","options","markers","activeMarker","resetBounds","profileType","profileCode"],["data-id","compare-agents-map-loading",1,"absolute","bottom-0","left-0","flex","w-full","justify-center","py-2"],[1,"rounded-lg","bg-white","p-2","drop-shadow-lg"],["color","primary","diameter","20"],["calloutType","error","data-id","compare-agents-map-empty",3,"message"],["heightClass","h-full","data-id","compare-agents-map-placeholder",1,"block","h-96","p-4",3,"bones"]],template:function(n,i){n&1&&dy(0,ko,13,5,"ng-container",1),n&2&&Ny("translocoPrefix",i.scope);},dependencies:[In,J,Vt,je,W,Lt,J$1,B,wt,di$1],encapsulation:2});}}return e})();function Do(e,o){if(e&1&&(Ts(0,"a",1),xy(1,"rma-icon",2),Ts(2,"span",3),bM(3),Vu()()),e&2){let t=o.$implicit;Aw(3),rv(t("cardsRow.addAgents"));}}var Rn=(()=>{class e{constructor(){this.scope=w;}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275cmp=mb({type:e,selectors:[["rma-add-agent-slot"]],hostAttrs:[1,"block","h-full"],features:[jM([Dt(w)])],decls:1,vars:1,consts:[["class","flex h-full min-h-44 flex-col items-center justify-center gap-2 rounded-lg border border-dashed border-steel-30 bg-white px-2 py-4 text-center font-normal text-steel-70 no-underline!","routerLink","/search",4,"transloco","translocoPrefix"],["routerLink","/search",1,"flex","h-full","min-h-44","flex-col","items-center","justify-center","gap-2","rounded-lg","border","border-dashed","border-steel-30","bg-white","px-2","py-4","text-center","font-normal","text-steel-70","no-underline!"],["glyph","add_circle_outline","theme","inactive"],[1,"text-xs","md:text-sm"]],template:function(n,i){n&1&&dy(0,Do,4,1,"a",0),n&2&&Ny("translocoPrefix",i.scope);},dependencies:[Rt,kt,wt],encapsulation:2});}}return e})();var Io=e=>({name:e}),$n=e=>[e];function Ro(e,o){if(e&1&&(Ts(0,"a",1),xy(1,"rma-branded-header",11),Vu()),e&2){Z_();let t=OM(1),n=OM(2),i=Z_();
1Ny("routerLink",UM(4,$n,i.agent().agencyProfileUrl)),Sy("aria-label",i.agent().agencyName),Aw(),Ny("background",n)("logo",t);}}function Fo(e,o){e&1&&xy(0,"div",2);}function Oo(e,o){e&1&&xy(0,"rma-verified-profile-tick",9);}function $o(e,o){if(e&1&&(Ts(0,"a",12),YM(1,"appendReturnUrlParams"),xy(2,"rma-icon",16),Ts(3,"span",17),bM(4),Vu()()),e&2){let t=Z_(2).$implicit,n=Z_();Ny("routerLink",o)("queryParams",JM(1,3,n.appraisalUrlParams)),Aw(4),rv(t("requestAppraisal"));}}function No(e,o){if(e&1&&(Ts(0,"a",14),YM(1,"appendReturnUrlParams"),xy(2,"rma-icon",16),bM(3),Vu()),e&2){let t=Z_(2).$implicit,n=Z_();Ny("routerLink",o)("queryParams",JM(1,3,n.enquireUrlParams)),Aw(3),Wu(" ",t("enquire")," ");}}function Uo(e,o){if(e&1&&xy(0,"rma-agent-phone-link",15),e&2){let t=Z_(2).$implicit,n=Z_();Ny("agentCode",n.agent().agentCode)("phone",o)("customLabel",t("call"))("revealAction",n.phoneAnalytics().revealAction)("revealLabel",n.phoneAnalytics().revealLabel)("callMadeAction",n.phoneAnalytics().callMadeAction)("callMadeLabel",n.phoneAnalytics().callMadeLabel)("trixelRevealCategory",n.phoneAnalytics().trixelRevealCategory)("trixelCallCategory",n.phoneAnalytics().trixelCallCategory);}}function jo(e,o){if(e&1&&(Ts(0,"div",10),S_(1,$o,5,5,"a",12),Ts(2,"div",13),S_(3,No,4,5,"a",14),S_(4,Uo,1,9,"rma-agent-phone-link",15),Vu()()),e&2){let t,n,i,p=Z_(2);Aw(),N_((t=p.contactUrl())?1:-1,t),Aw(2),N_((n=p.contactUrl())?3:-1,n),Aw(),N_((i=p.agent().mobile)?4:-1,i);}}function Bo(e,o){if(e&1){let t=H_();$u(0),dv(1)(2),S_(3,Ro,2,6,"a",1)(4,Fo,1,0,"div",2),Ts(5,"button",3),jy("click",function(){zf(t);let i=Z_();return Qf(i.removeAgent.emit())}),xy(6,"rma-icon",4),Vu(),Ts(7,"div",5),xy(8,"rma-profile-avatar",6),Ts(9,"div",7)(10,"a",8),bM(11),Vu(),S_(12,Oo,1,0,"rma-verified-profile-tick",9),Vu(),S_(13,jo,5,3,"div",10),Vu(),qu();}if(e&2){let t=o.$implicit,n=Z_();Aw();let i=RM(n.agent().theme.rectangleLogoImage??n.agent().theme.bannerImage);Aw(),RM(n.agent().theme.primaryColour??n.agent().theme.backgroundColour??"#fff"),Aw(),N_(n.agent().isBranded&&i?3:4),Aw(2),Sy("aria-label",t("cardsRow.removeAgent",UM(11,Io,n.agent().agentName))),Aw(3),Ny("avatar",n.agent().theme.avatarImage)("name",n.agent().agentName)("size",72),Aw(2),Ny("routerLink",UM(13,$n,n.agent().agentProfileUrl)),Aw(),rv(n.agent().agentName),Aw(),N_(n.agent().isClaimed?12:-1),Aw(),N_(n.agent().canContact?13:-1);}}var Fn="RateMyAgent:CompareAgents:ContactForm",Nn=(()=>{class e{constructor(){this.scope=`${w}.agentCard`,this.appraisalUrlParams={trixelSourceCategory:Fn,enquiryType:"PropertyAppraisal"},this.enquireUrlParams={trixelSourceCategory:Fn,enquiryType:"General"},this.agent=WU.required(),this.removeAgent=GU(),this.contactUrl=lS(()=>{let t=this.agent().agentProfileUrl;return t?S(t):null}),this.phoneAnalytics=lS(()=>({revealAction:"Agent Compare Phone numbers Viewed",revealLabel:`Agent Compare ${this.agent().agentCode}`,callMadeAction:"Agent Compare Phone Called",callMadeLabel:`Mobile - Agent Compare ${this.agent().agentCode}`,trixelRevealCategory:"RateMyAgent-AgentCompare-Reveal",trixelCallCategory:"RateMyAgent-AgentCompare-Call"}));}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275cmp=mb({type:e,selectors:[["rma-agent-card"]],hostAttrs:[1,"relative","flex","h-full","flex-col","rounded-lg","bg-blue-5"],inputs:{agent:[1,"agent"]},outputs:{removeAgent:"removeAgent"},features:[jM([Dt(w)])],decls:1,vars:1,consts:[[4,"transloco","translocoPrefix"],[3,"routerLink"],["data-id","unbranded-header",1,"bg-blue-5","h-12","rounded-t-lg"],["type","button","data-id","remove-agent",1,"absolute","-top-2","right-0","z-10","flex","h-6","w-6","items-center","justify-center","rounded-full","bg-steel-100/70","text-white",3,"click"],["glyph","close","size","extraSmall"],[1,"flex","grow","flex-col","items-center","px-3","pt-3","pb-4"],[3,"avatar","name","size"],[1,"mt-2","flex","items-center","justify-center","gap-1"],[1,"line-clamp-1","text-center","font-semibold","no-underline!",3,"routerLink"],["data-id","agent-card-claimed",1,"shrink-0"],[1,"mt-auto","hidden","w-full","flex-col","gap-2","pt-3","md:flex"],[1,"h-12","rounded-t-lg",3,"background","logo"],["mat-flat-button","","color","primary","data-id","agent-card-appraisal",1,"w-full",3,"routerLink","queryParams"],[1,"flex","w-full","flex-wrap","gap-2"],["mat-stroked-button","","color","primary","data-id","agent-card-enquire",1,"flex-1",3,"routerLink","queryParams"],["data-id","agent-card-call",1,"flex-1",3,"agentCode","phone","customLabel","revealAction","revealLabel","callMadeAction","callMadeLabel","trixelRevealCategory","trixelCallCategory"],["glyph","mail","matButtonIcon",""],[1,"truncate"]],template:function(n,i){n&1&&dy(0,Bo,14,15,"ng-container",0),n&2&&Ny("translocoPrefix",i.scope);},dependencies:[ae,I,Fn$1,Tn$1,q,Rt,kt,wt,P$1,ne],encapsulation:2});}}return e})();var Vo=(e,o)=>
1o.agentCode;function Go(e,o){e&1&&(Ts(0,"li",4),xy(1,"rma-add-agent-slot"),Vu());}function qo(e,o){if(e&1){let t=H_();Ts(0,"li",4)(1,"rma-agent-card",6),jy("removeAgent",function(){let i=zf(t).$implicit,p=Z_(2);return Qf(p.removeAgent.emit(i.agentCode))}),Vu()();}if(e&2){let t=o.$implicit;Aw(),Ny("agent",t);}}function Ko(e,o){if(e&1){let t=H_();Ts(0,"div",2)(1,"ul",3,0),S_(3,Go,2,0,"li",4),R_(4,qo,2,1,"li",4,Vo),Vu(),Ts(6,"rma-scroll-chevron",5),jy("scrolled",function(){zf(t);let i=rM(2);return Qf(i.scrollRight())}),Vu()();}if(e&2){let t=o.$implicit,n=rM(2),i=Z_();Aw(3),N_(i.showAddSlot()?3:-1),Aw(),O_(i.agents()),Aw(2),Ny("canScroll",n.canScroll())("label",t("cardsRow.scroll"));}}var Un=(()=>{class e{constructor(){this.scope=w,this.agents=WU.required(),this.showAddSlot=WU(true),this.removeAgent=GU();}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275cmp=mb({type:e,selectors:[["rma-agent-cards-row"]],hostAttrs:[1,"sticky","top-(--header-height)","z-20","block","bg-white"],inputs:{agents:[1,"agents"],showAddSlot:[1,"showAddSlot"]},outputs:{removeAgent:"removeAgent"},features:[jM([Dt(w)])],decls:1,vars:1,consts:[["scroller","rmaOverflowScroll"],["class","relative",4,"transloco","translocoPrefix"],[1,"relative"],["rmaOverflowScroll","","rmaScrollSync","",1,"m-0","flex","snap-x","list-none","gap-3","overflow-x-auto","p-0","pt-2","pb-4"],[1,"w-36","shrink-0","snap-start","md:min-w-48","md:grow","md:basis-0"],[3,"scrolled","canScroll","label"],[3,"removeAgent","agent"]],template:function(n,i){n&1&&dy(0,Ko,7,3,"div",1),n&2&&Ny("translocoPrefix",i.scope);},dependencies:[Rn,Nn,M$1,A,De,wt],encapsulation:2});}}return e})();var Yo=[[["","rmaComparisonTableActions",""]],"*"],zo=["[rmaComparisonTableActions]","*"];function Wo(e,o){e&1&&(Ts(0,"p",2),bM(1),Vu()),e&2&&(Aw(),rv(o));}var mt=(()=>{class e{constructor(){this.heading=WU.required(),this.subheading=WU();}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275cmp=mb({type:e,selectors:[["rma-comparison-table"]],hostAttrs:[1,"block","overflow-hidden","rounded-lg","border","border-steel-10","bg-white"],inputs:{heading:[1,"heading"],subheading:[1,"subheading"]},ngContentSelectors:zo,decls:8,vars:3,consts:[[1,"bg-blue-5","flex","flex-wrap","items-center","justify-between","gap-3","border-b","border-steel-10","px-4","py-3"],[1,"m-0","text-heading-3"],["data-id","comparison-table-subheading",1,"m-0","mt-1","text-sm","text-steel-70"],["rmaScrollSync","","role","table",1,"scrollbar-none","overflow-x-auto"]],template:function(n,i){if(n&1&&(K_(Yo),Ts(0,"div",0)(1,"div")(2,"h2",1),bM(3),Vu(),S_(4,Wo,2,1,"p",2),Vu(),J_(5),Vu(),Ts(6,"div",3),J_(7,1),Vu()),n&2){let p;Aw(3),rv(i.heading()),Aw(),N_((p=i.subheading())?4:-1,p),Aw(2),Sy("aria-label",i.heading());}},dependencies:[De],encapsulation:2});}}return e})();var Qo=["*"],dt=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275cmp=mb({type:e,selectors:[["rma-comparison-table-cell"]],hostAttrs:["role","cell",1,"flex","w-36","shrink-0","items-center","justify-center","px-3","py-4","text-center","md:min-w-48","md:grow","md:basis-0"],ngContentSelectors:Qo,decls:1,vars:0,template:function(n,i){n&1&&(K_(),J_(0));},encapsulation:2});}}return e})();var Ho=["*"];function Xo(e,o){e&1&&Ay(0,"span",1);}var gt=(()=>{class e{constructor(){this.label=WU.required(),this.indented=WU(false,{transform:s$});}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275cmp=mb({type:e,selectors:[["rma-comparison-table-row"]],hostAttrs:["role","row",1,"flex","w-min","min-w-full","gap-3","border-b","border-steel-10","last:border-b-0"],inputs:{label:[1,"label"],indented:[1,"indented"]},ngContentSelectors:Ho,decls:4,vars:4,consts:[["role","rowheader",1,"sticky","left-0","z-10","flex","w-36","shrink-0","items-center","gap-2","border-r","border-steel-10","bg-white","px-3","py-4","md:min-w-48","md:grow","md:basis-0"],["aria-hidden","true","data-id","comparison-table-row-bullet",1,"ms-3","h-1.5","w-1.5","shrink-0","rounded-full","bg-blue-50","md:ms-7"]],template:function(n,i){n&1&&(K_(),Hu(0,"div",0),S_(1,Xo,1,0,"span",1),bM(2),Bu(),J_(3)),n&2&&(Qy("font-semibold",!i.indented()),Aw(),N_(i.indented()?1:-1),Aw(),Wu(" ",i.label(),`
2`));},encapsulation:2});}}return e})();var Bn=e=>[e],xt=e=>({count:e}),Re=(e,o)=>o.agentCode;function Zo(e,o){e&1&&xy(0,"rma-skeleton-grid",2),e&2&&Ny("bones",1);}function Jo(e,o){if(e&1&&(Ts(0,"a",8),bM(1),Vu()),e&2){let t=Z_().$implicit;Ny("routerLink",UM(2,Bn,t.agencyProfileUrl)),Aw(),rv(t.agencyName);}}
2function ei(e,o){e&1&&(Ts(0,"span",9),bM(1,"\u2014"),Vu());}function ti(e,o){if(e&1&&(Ts(0,"rma-comparison-table-cell"),S_(1,Jo,2,4,"a",8)(2,ei,2,0,"span",9),Vu()),e&2){let t=o.$implicit;Aw(),N_(t.agencyName&&t.agencyProfileUrl?1:2);}}function ni(e,o){e&1&&(xy(0,"rma-icon",12),Ts(1,"span",13),bM(2),Vu()),e&2&&(Ny("fill",1),Aw(2),rv(o));}function oi(e,o){if(e&1&&(Ts(0,"a",10),bM(1),YM(2,"number"),Vu()),e&2){let t=Z_().$implicit,n=Z_().$implicit,i=Z_();Ny("routerLink",UM(4,Bn,i.reviewsUrl(t))),Aw(),rv(n("reviewCount",UM(6,xt,JM(2,2,t.reviewCount))));}}function ii(e,o){if(e&1&&(Ts(0,"span",11),bM(1),Vu()),e&2){let t=Z_().$implicit,n=Z_().$implicit;Aw(),rv(n("reviewCount",UM(1,xt,t.reviewCount)));}}function ai(e,o){if(e&1&&(Ts(0,"rma-comparison-table-cell"),S_(1,ni,3,2),S_(2,oi,3,8,"a",10)(3,ii,2,3,"span",11),Vu()),e&2){let t,n=o.$implicit;Aw(),N_((t=n.overallStars)?1:-1,t),Aw(),N_(n.reviewCount>0?2:3);}}function ri(e,o){if(e&1&&(Ts(0,"span",16),bM(1),Vu()),e&2){let t=o.$implicit;Aw(),rv(t);}}function li(e,o){if(e&1&&(Ts(0,"span",17),bM(1),Vu()),e&2){let t=Z_(2).$implicit,n=Z_(2).$implicit,i=Z_();Aw(),rv(n("morePills",UM(1,xt,t.sentiments.length-i.maxSentimentPills)));}}function si(e,o){if(e&1&&(Ts(0,"div",14),R_(1,ri,2,1,"span",16,A_),S_(3,li,2,3,"span",17),Vu()),e&2){let t=Z_().$implicit,n=Z_(3);Aw(),O_(t.sentiments.slice(0,n.maxSentimentPills)),Aw(2),N_(t.sentiments.length>n.maxSentimentPills?3:-1);}}function ci(e,o){e&1&&(Ts(0,"span",15),bM(1,"\u2014"),Vu());}function pi(e,o){if(e&1&&(Ts(0,"rma-comparison-table-cell"),S_(1,si,4,1,"div",14)(2,ci,2,0,"span",15),Vu()),e&2){let t=o.$implicit;Aw(),N_(t.sentiments?.length?1:2);}}function mi(e,o){if(e&1&&(Ts(0,"rma-comparison-table-row",5),R_(1,pi,3,1,"rma-comparison-table-cell",null,Re),Vu()),e&2){let t=Z_().$implicit,n=Z_();Ny("label",t("sentiment")),Aw(),O_(n.agents());}}function di(e,o){if(e&1&&bM(0),e&2){let t=Z_().$implicit,n=Z_().$implicit;Wu(" ",n(t),", ");}}function gi(e,o){if(e&1&&bM(0),e&2){let t=Z_().$implicit,n=Z_().$implicit;Wu(" ",n(t)," ");}}function _i(e,o){if(e&1&&S_(0,di,1,1)(1,gi,1,1),e&2){let t=o.$index,n=o.$count;N_(t!==n-1?0:1);}}function fi(e,o){if(e&1&&(Ts(0,"span",18),R_(1,_i,2,1,null,null,A_),Vu()),e&2){let t=Z_(2).$implicit;Aw(),O_(t.languages);}}function ui(e,o){if(e&1&&dy(0,fi,3,0,"span",20),e&2){let t=Z_(4);Ny("translocoPrefix",t.languageScope);}}function Ci(e,o){e&1&&(Ts(0,"span",19),bM(1,"\u2014"),Vu());}function vi(e,o){if(e&1&&(Ts(0,"rma-comparison-table-cell"),S_(1,ui,1,1,"span",18)(2,Ci,2,0,"span",19),Vu()),e&2){let t=o.$implicit;Aw(),N_(t.languages?.length?1:2);}}function yi(e,o){if(e&1&&(Ts(0,"rma-comparison-table-row",6),R_(1,vi,3,1,"rma-comparison-table-cell",null,Re),Vu()),e&2){let t=Z_().$implicit,n=Z_();Ny("label",t("languages")),Aw(),O_(n.agents());}}function xi(e,o){if(e&1&&(xy(0,"img",23),YM(1,"staticAssetUrl")),e&2){let t=o.$implicit,n=Z_(4).$implicit,i=Z_();Ny("src",JM(1,4,i.badgeImage[t]),Pg)("alt",n("badges."+t))("matTooltip",n("badges."+t)),Sy("data-id","overall-information-achievement-"+t);}}function hi(e,o){if(e&1&&(Ts(0,"div",21),R_(1,xi,2,6,"img",23,A_),Vu()),e&2){let t=Z_().$implicit;Aw(),O_(t.achievements);}}function Si(e,o){e&1&&(Ts(0,"span",22),bM(1,"\u2014"),Vu());}function bi(e,o){if(e&1&&(Ts(0,"rma-comparison-table-cell"),S_(1,hi,3,0,"div",21)(2,Si,2,0,"span",22),Vu()),e&2){let t=o.$implicit;Aw(),N_(t.achievements?.length?1:2);}}function Ti(e,o){if(e&1&&(Ts(0,"rma-comparison-table-row",7),R_(1,bi,3,1,"rma-comparison-table-cell",null,Re),Vu()),e&2){let t=Z_().$implicit,n=Z_();Ny("label",t("achievements")),Aw(),O_(n.agents());}}function Ai(e,o){if(e&1&&($u(0),Ts(1,"rma-comparison-table",3)(2,"rma-comparison-table-row",4),R_(3,ti,3,1,"rma-comparison-table-cell",null,Re),Vu(),Ts(5,"rma-comparison-table-row",4),R_(6,ai,4,2,"rma-comparison-table-cell",null,Re),Vu(),S_(8,mi,3,1,"rma-comparison-table-row",5),S_(9,yi,3,1,"rma-comparison-table-row",6),S_(10,Ti,3,1,"rma-comparison-table-row",7),Vu(),qu()),e&2){let t=o.$implicit,n=Z_();Aw(),Ny("heading",t("title")),Aw(),Ny("label",t("agency")),Aw(),O_(n.agents()),Aw(2),Ny("label",t("reviews")),Aw(),O_(n.agents()),Aw(2),N_(n.showSentiments()?8:-1),Aw(),N_(n.showLanguages()?9:-1),Aw(),N_(n.showAchievements()?10:-1);}}var jn="language",wi=3,Mi=e=>e.agentProfileReviewsUrl??`${e.agentProfileUrl}/reviews`,Vn=(()=>{class e{constructor(){this.scope=`${w}.overallInformation`,this.languageScope=jn,this.maxSentimentPills=wi,this.badgeImage=L,this.reviewsUrl=Mi,this.showSentiments=lS(()=>this.agents().some(t=>!!t.sentiments?.length)),this.showLanguages=lS(()=>this.agents().some(t=>!!t.languages?.length)),this.showAchievements=lS(()=>this.agents().some(t=>!!t.achievements?.length)),this.agents=WU.required();}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275cmp=mb({type:e,selectors:[["rma-overall-information-section"]],hostAttrs:[1,"block"],inputs:{agents:[1,"agents"]},features:[jM([Dt(w),Dt(jn)])],decls:3,vars:2,consts:[["loading",""],[4,"transloco","translocoPrefix","translocoLoadingTpl"],["heightClass","h-84",3,"bones"],[3,"heading"],[3,"label"],["data-id","overall-information-sentiment-row",3,"label"],["data-id","overall-information-languages-row",3,"label"],["data-id","overall-information-achievements-row",3,"label"],["data-id","overall-information-agency-link",3,"routerLink"],["data-id","overall-information-agency-empty"],["data-id","overall-information-reviews-link",1,"pl-1",3,"routerLink"],["data-id","overall-information-reviews-count",1,"pl-1"],["aria-hidden","true","size","small","glyph","star",1,"text-caution-50",3,"fill"],[1,"pl-1","font-semibold"],["data-id","overall-information-sentiments",1,"flex","flex-wrap","justify-center","gap-1"],["data-id","overall-information-sentiment-empty"],["data-id","overall-information-sentiment-pill",1,"bg-blue-5","rounded-full","px-2","py-0.5","text-xs"],["data-id","overall-information-sentiment-more",1,"bg-blue-5","rounded-full","px-2","py-0.5","text-xs"],["data-id","overall-information-languages"],["data-id","overall-information-languages-empty"],["data-id","overall-information-languages",4,"transloco","translocoPrefix"],["data-id","overall-information-achievements",1,"flex","flex-wrap","justify-center","gap-2"],["data-id","overall-information-achievements-empty"],["matTooltipPosition","above","height","32","width","32",1,"size-8","object-contain",3,"src","alt","matTooltip"]],template:function(n,i){if
2(n&1&&dy(0,Zo,1,1,"ng-template",null,0,nS)(2,Ai,11,6,"ng-container",1),n&2){let p=rM(1);Aw(2),Ny("translocoPrefix",i.scope)("translocoLoadingTpl",p);}},dependencies:[dt,mt,gt,Yt,mt$1,Rt,kt,B,wt,wi$1,a],encapsulation:2});}}return e})();var Pi=e=>e!=null,ht=(e,o)=>Pi(o)&&!(e.zeroAsEmpty&&o===0),Fe=(e,o)=>o===null?e?.totalValue:e?.byPropertyType?.[o],Ei=[{key:"totalSales",labelKey:"totalSales",value:(e,o)=>o===null?e.sales?.total:Fe(e.statistics?.totaL_SALES_QTY,o),format:"count"},{key:"salesAsLeadAgent",labelKey:"salesAsLeadAgent",value:(e,o)=>o===null?e.sales?.lead:void 0,format:"count",indented:true,zeroAsEmpty:true},{key:"salesAsSupportingAgent",labelKey:"salesAsSupportingAgent",value:(e,o)=>o===null?e.sales?.support:void 0,format:"count",indented:true,zeroAsEmpty:true},{key:"salesAsBuyersAgent",labelKey:"salesAsBuyersAgent",value:(e,o)=>o===null?e.statistics?.totaL_SALES_QTY?.buyerAgentValue:void 0,format:"count",indented:true,zeroAsEmpty:true},{key:"currentListings",labelKey:"currentListings",value:(e,o)=>Fe(e.statistics?.activE_CAMPAIGNS,o),format:"count",link:e=>e.agentProfilePropertiesUrl},{key:"averageSalesPrice",labelKey:"averageSalesPrice",value:(e,o)=>Fe(e.statistics?.avG_SALE_PRICE,o),format:"currency"},{key:"totalSalesValue",labelKey:"totalSalesValue",value:(e,o)=>Fe(e.statistics?.totaL_SALES_VALUE,o),format:"currency"},{key:"averageDaysOnMarket",labelKey:"averageDaysOnMarket",value:(e,o)=>Fe(e.statistics?.avG_DAYS_ON_MARKET,o),format:"days"}],Gn=(e,o,t)=>Ei.filter(n=>n.key==="salesAsBuyersAgent"&&!o?false:!n.indented||e.some(i=>ht(n,n.value(i,t))));var Kn=()=>({count:1}),qn=e=>({propertyType:e}),ki=e=>({count:e}),Li=e=>[e],Di=(e,o)=>o.key,Ii=(e,o)=>o.agentCode;function Ri(e,o){e&1&&xy(0,"rma-skeleton-grid",2),e&2&&Ny("bones",1);}function Fi(e,o){if(e&1&&(Ts(0,"mat-option",7),bM(1),YM(2,"apiToTranslation"),YM(3,"transloco"),Vu()),e&2){let t=o.$implicit,n=Z_(3);Ny("value",t),Aw(),rv(XM(3,5,XM(2,2,t,n.propertyTypesScope),BM(8,Kn)));}}function Oi(e,o){if(e&1){let t=H_();Ts(0,"mat-form-field",4)(1,"mat-label"),bM(2),Vu(),Ts(3,"mat-select",6),jy("selectionChange",function(i){zf(t);let p=Z_(2);return Qf(p.propertyTypeChange.emit(i.value))}),Ts(4,"mat-option",7),bM(5),Vu(),R_(6,Fi,4,9,"mat-option",7,A_),Vu()();}if(e&2){let t=Z_().$implicit,n=OM(1),i=Z_();Aw(2),rv(t("propertyTypeLabel")),Aw(),Ny("value",n)("placeholder",t("propertyTypeAll")),Aw(),Ny("value",null),Aw(),rv(t("propertyTypeAll")),Aw(),O_(i.propertyTypes());}}function $i(e,o){if(e&1&&(Ts(0,"span",9),bM(1),YM(2,"shortNumber"),Vu()),e&2){Z_(2);let t=OM(1),n=Z_().$implicit;Sy("data-id","sales-performance-"+n.key),Aw(),rv(eS(2,2,t,1,true));}}function Ni(e,o){if(e&1&&(Ts(0,"span",10),bM(1),YM(2,"number"),Vu()),e&2){Z_(2);let t=OM(1),n=Z_().$implicit,i=Z_().$implicit;Sy("data-id","sales-performance-"+n.key),Aw(),rv(i("days",UM(4,ki,JM(2,2,t))));}}function Ui(e,o){if(e&1&&(Ts(0,"a",11),bM(1),YM(2,"number"),Vu()),e&2){Z_(3);let t=OM(1),n=Z_().$implicit,i=Z_(2);Ny("routerLink",UM(6,Li,o))("queryParams",i.propertiesQueryParams),Sy("data-id","sales-performance-"+n.key),Aw(),Wu(" ",JM(2,4,t)," ");}}function ji(e,o){if(e&1&&(Ts(0,"span",10),bM(1),YM(2,"number"),Vu()),e&2){Z_(3);let t=OM(1),n=Z_().$implicit;Sy("data-id","sales-performance-"+n.key),Aw(),rv(JM(2,2,t));}}function Bi(e,o){if(e&1&&S_(0,Ui,3,8,"a",11)(1,ji,3,4,"span",10),e&2){let t,n=Z_(2).$implicit,i=Z_().$implicit;N_((t=i.link?.(n))?0:1,t);}}function Vi(e,o){if(e&1&&S_(0,$i,3,6,"span",9)(1,Ni,3,6,"span",10)(2,Bi,2,1),e&2){let t,n=Z_(2).$implicit;N_((t=n.format)==="currency"?0:t==="days"?1:2);}}function Gi(e,o){e&1&&(Ts(0,"span",8),bM(1,"\u2014"),Vu());}function qi(e,o){if(e&1&&(Ts(0,"rma-comparison-table-cell"),dv(1),S_(2,Vi,3,1)(3,Gi,2,0,"span",8),Vu()),e&2){let t=o.$implicit,n=Z_().$implicit;Z_();let i=OM(1),p=Z_();Aw();let P=RM(n.value(t,i));Aw(),N_(p.showsValue(n,P)?2:3);}}function Ki(e,o){if(e&1&&(Ts(0,"rma-comparison-table-row",5),R_(1,qi,4,2,"rma-comparison-table-cell",null,Ii),Vu()),e&2){let t=o.$implicit,n=Z_().$implicit,i=Z_();Ny("label",n(t.labelKey))("indented",t.indented??false),Aw(),O_(i.agents());}}
2function Yi(e,o){if(e&1&&($u(0),dv(1)(2),YM(3,"apiToTranslation"),YM(4,"transloco"),Ts(5,"rma-comparison-table",3),S_(6,Oi,8,5,"mat-form-field",4),R_(7,Ki,3,2,"rma-comparison-table-row",5,Di),Vu(),qu()),e&2){let t=o.$implicit,n=Z_();Aw();let i=RM(n.selectedPropertyType()),p=i?XM(4,7,XM(3,4,i,n.propertyTypesScope),BM(10,Kn)):null;Aw(4),Ny("heading",p?t("filteredTitle",UM(11,qn,p)):t("title"))("subheading",p?t("filteredDescription",UM(13,qn,p)):t("filterDescription")),Aw(),N_(n.propertyTypes().length>0?6:-1),Aw(),O_(n.rows());}}var Yn=(()=>{class e{constructor(){this.scope=`${w}.salesPerformance`,this.propertyTypesScope=y,this.showsValue=ht,this.propertiesQueryParams={statuses:"Sold"},this.rows=lS(()=>Gn(this.agents(),this.buyersAgentEnabled(),this.selectedPropertyType())),this.agents=WU.required(),this.buyersAgentEnabled=WU(false),this.propertyTypes=WU([]),this.selectedPropertyType=WU(null),this.propertyTypeChange=GU();}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275cmp=mb({type:e,selectors:[["rma-sales-performance-section"]],hostAttrs:[1,"block"],inputs:{agents:[1,"agents"],buyersAgentEnabled:[1,"buyersAgentEnabled"],propertyTypes:[1,"propertyTypes"],selectedPropertyType:[1,"selectedPropertyType"]},outputs:{propertyTypeChange:"propertyTypeChange"},features:[jM([Dt(w,y)])],decls:3,vars:2,consts:[["loading",""],[4,"transloco","translocoPrefix","translocoLoadingTpl"],["heightClass","h-136",3,"bones"],[3,"heading","subheading"],["rmaComparisonTableActions","","appearance","outline","floatLabel","always","subscriptSizing","dynamic",1,"w-64","bg-white"],[3,"label","indented"],["data-id","sales-performance-property-type",3,"selectionChange","value","placeholder"],[3,"value"],["data-id","sales-performance-empty"],[1,"font-semibold","uppercase"],[1,"font-semibold"],[1,"font-semibold",3,"routerLink","queryParams"]],template:function(n,i){if(n&1&&dy(0,Ri,1,1,"ng-template",null,0,nS)(2,Yi,9,15,"ng-container",1),n&2){let p=rM(1);Aw(2),Ny("translocoPrefix",i.scope)("translocoLoadingTpl",p);}},dependencies:[dt,mt,gt,ti$1,je,W,It,J$1,Vt,Lt,kt,B,wt,p,wi$1,F,Mt],encapsulation:2});}}return e})();var zi=[[["","gate-teaser",""]],"*"],Wi=["[gate-teaser]","*"],zn=()=>({});function Qi(e,o){e&1&&xy(0,"div",3);}function Hi(e,o){e&1&&xy(0,"div",5);}function Xi(e,o){if(e&1&&(Ts(0,"div",6)(1,"div",7),xy(2,"rma-icon",8),Ts(3,"h2",9),bM(4),Vu(),Ts(5,"p",10),bM(6),Vu(),Ts(7,"a",11),YM(8,"appendReturnUrlParams"),bM(9),Vu(),Ts(10,"p",12),bM(11),Ts(12,"a",13),YM(13,"appendReturnUrlParams"),bM(14),Vu()()()()),e&2){let t=Z_().$implicit;Aw(4),rv(t("title")),Aw(2),rv(t("description")),Aw(),Ny("queryParams",JM(8,7,BM(11,zn))),Aw(2),rv(t("login")),Aw(2),Wu(" ",t("signUpPrompt")," "),Aw(),Ny("queryParams",JM(13,9,BM(12,zn))),Aw(2),rv(t("signUp"));}}function Zi(e,o){if(e&1&&($u(0),Ts(1,"div",1)(2,"div",2),J_(3),S_(4,Qi,1,0,"div",3),Vu(),Ts(5,"div",4),J_(6,1),S_(7,Hi,1,0,"div",5),Vu()(),S_(8,Xi,15,13,"div",6),qu()),e&2){let t=Z_();Aw(),Qy("pointer-events-none",t.gated())("select-none",t.gated()),Sy("inert",t.gated()?"":null)("aria-hidden",t.gated()?"true":null),Aw(3),N_(t.gated()?4:-1),Aw(3),N_(t.gated()?7:-1),Aw(),N_(t.gated()&&t.showCard()?8:-1);}}var Wn=(()=>{class e{constructor(){this.scope=`${w}.loginGate`,this.gated=WU.required(),this.showCard=WU(false);}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275cmp=mb({type:e,selectors:[["rma-login-gate"]],hostAttrs:[1,"grid","grid-cols-1"],inputs:{gated:[1,"gated"],showCard:[1,"showCard"]},features:[jM([Dt(w)])],ngContentSelectors:Wi,decls:1,vars:1,consts:[[4,"transloco","translocoPrefix"],["data-id","login-gate-content",1,"flex","min-w-0","flex-col","gap-6","[grid-area:1/1]"],[1,"relative"],["data-id","login-gate-teaser-fade",1,"pointer-events-none","absolute","inset-x-0","top-1/2","bottom-0","[mask-image:linear-gradient(to_bottom,transparent,black)]","backdrop-blur-sm"],[1,"relative","flex","flex-col","gap-6"],["data-id","login-gate-blur",1,"pointer-events-none","absolute","inset-0","backdrop-blur-sm"],[1,"z-10","flex","min-w-0","items-center","justify-center","p-4","[grid-area:1/1]"],["data-id","login-gate-card",1,"flex","w-full","max-w-sm","flex-col","items-center","gap-3","rounded-lg","bg-white","p-6","text-center","shadow-lg"],["glyph","lock","size","large",1,"text-blue-50"],[1,"m-0","text-heading-3"],[1,"m-0","text-steel-70"],["routerLink","/account/login","mat-flat-button","","color","primary","data-id","login-gate-login",1,"w-full",3,"queryParams"],[1,"m-0","text-small"],["routerLink","/account/join","data-id","login-gate-sign-up",3,"queryParams"]],template:function(n,i){n&1&&(K_(zi),dy(0,Zi,9,9,"ng-container",0)),n&2&&Ny("translocoPrefix",i.scope);},dependencies:[Fn$1,Tn$1,Rt,kt,wt,ne],encapsulation:2});}}return e})();
2function Ji(e,o){if(e&1&&(Ts(0,"a",1),xy(1,"rma-icon",2),Ts(2,"span"),bM(3),Vu()()),e&2){let t=Z_().$implicit;Aw(3),rv(t("button"));}}function ea(e,o){if(e&1&&($u(0),Ts(1,"h1"),bM(2),Vu(),Ts(3,"p"),bM(4),Vu(),S_(5,Ji,4,1,"a",1),qu()),e&2){let t=o.$implicit,n=Z_();Aw(2),rv(t("title")),Aw(2),rv(t("blurb")),Aw(),N_(n.isLocation()?-1:5);}}var Qn=(()=>{class e{constructor(){this.isLocation=WU(false);}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275cmp=mb({type:e,selectors:[["rma-no-agents"]],inputs:{isLocation:[1,"isLocation"]},decls:1,vars:1,consts:[[4,"transloco","translocoPrefix"],["mat-stroked-button","","routerLink","/search","color","primary"],["glyph","search"]],template:function(n,i){n&1&&dy(0,ea,6,3,"ng-container",0),n&2&&Ny("translocoPrefix","compareAgent.no-agents");},dependencies:[Rt$1,wt,Fn$1,Tn$1,kt,Rt],encapsulation:2});}}return e})();var ta=(e,o)=>({count:e,location:o});function na(e,o){e&1&&(xy(0,"rma-skeleton-grid",1)(1,"rma-skeleton-grid",2),Ts(2,"div",3),xy(3,"rma-skeleton-grid",4)(4,"rma-skeleton-grid",5)(5,"rma-skeleton-grid",6)(6,"rma-skeleton-grid",7),Vu()),e&2&&(Ny("bones",1),Aw(),Ny("bones",1),Aw(2),Ny("bones",1),Aw(),Ny("bones",1),Aw(),Ny("bones",1),Aw(),Ny("bones",1));}function oa(e,o){if(e&1&&(Ts(0,"h1"),bM(1),Vu(),xy(2,"rma-callout",8)),e&2){let t=Z_().$implicit;Aw(),rv(t("no-agents.title")),Aw(),Ny("message",o);}}function ia(e,o){e&1&&xy(0,"rma-no-agents",9),e&2&&Ny("isLocation",true);}function aa(e,o){if(e&1&&(Ts(0,"h1"),bM(1),Vu()),e&2){Z_(2);let t=OM(0),n=OM(1),i=Z_().$implicit;Aw(),rv(i("locationTitle",$M(1,ta,t.length,n.name)));}}function ra(e,o){if(e&1){let t=H_();S_(0,aa,2,4,"h1"),Ts(1,"rma-agent-cards-row",10),jy("removeAgent",function(i){zf(t);let p=Z_(3);return Qf(p.store.remove(i))}),Vu();}if(e&2){Z_();let t=OM(0),n=OM(1),i=Z_(2);N_(n?0:-1),Aw(),Ny("agents",t)("showAddSlot",!n)("rmaYieldTo",i.mapSection()?.nativeElement);}}function la(e,o){if(e&1){let t=H_();Ts(0,"div",3),xy(1,"rma-overall-information-section",11),Ts(2,"rma-login-gate",12)(3,"rma-sales-performance-section",13),jy("propertyTypeChange",function(i){zf(t);let p=Z_(3);return Qf(p.store.setPropertyType(i))}),Vu(),xy(4,"rma-find-my-agent-cta-banner")(5,"rma-compare-agents-map-section",14),Vu()();}if(e&2){Z_();let t=OM(0),n=Z_(2);Aw(),Ny("agents",t),Aw(),Ny("gated",n.store.gated())("showCard",n.store.showLoginCard()),Aw(),Ny("agents",t)("buyersAgentEnabled",n.buyersAgentEnabled())("propertyTypes",n.store.propertyTypes())("selectedPropertyType",n.store.effectivePropertyType()),Aw(2),Ny("agents",t)("gated",n.store.gated());}}function sa(e,o){if(e&1&&(dv(0)(1),S_(2,ia,1,1,"rma-no-agents",9)(3,ra,2,4),S_(4,la,6,9,"div",3)),e&2){let t=Z_(2),n=RM(t.store.agents());Aw();let i=RM(t.store.location());Aw(),N_(i&&!n.length?2:3),Aw(2),N_(n.length?4:-1);}}function ca(e,o){if(e&1&&($u(0),S_(1,na,7,6)(2,oa,3,2)(3,sa,5,4),qu()),e&2){let t,n=Z_();Aw(),N_(n.store.agentsLoading()?1:(t=n.store.agentsError())?2:3,t);}}var pa=(()=>{class e{constructor(){this.mapSection=QU(pt,{read:lo$1}),this.scope=w,this.store=v$1(vt),this.buyersAgentEnabled=jn$1(Ln$1.EnableBuyerAgents,false);}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275cmp=mb({type:e,selectors:[["rma-compare-agents-layout"]],viewQuery:function(n,i){n&1&&qy(i.mapSection,pt,5,lo$1),n&2&&nM();},hostAttrs:[1,"max-w-[100vw]","lg:max-w-7xl","w-full","mx-auto","py-8","px-4","xl:px-0"],features:[jM([vt,at,Dt(w)])],decls:1,vars:1,consts:[[4,"transloco","translocoPrefix"],["heightClass","h-16 mb-8 w-1/2",3,"bones"],["heightClass","h-68 mt-2 mb-4",3,"bones"],[1,"flex","flex-col","gap-6"],["heightClass","h-84",3,"bones"],["heightClass","h-136",3,"bones"],["heightClass","h-15",3,"bones"],["heightClass","h-96",3,"bones"],[1,"mt-4",3,"message"],[3,"isLocation"],[3,"removeAgent","agents","showAddSlot","rmaYieldTo"],[3,"agents"],[3,"gated","showCard"],["gate-teaser","",3,"propertyTypeChange","agents","buyersAgentEnabled","propertyTypes","selectedPropertyType"],[3,"agents","gated"]],template:function(n,i){n&1&&dy(0,ca,4,1,"ng-container",0),n&2&&Ny("translocoPrefix",i.scope);},dependencies:[Un,_,P,Wn,Qn,Vn,pt,Yn,B,wt,ut],encapsulation:2});}}return e})();export{pa as CompareAgentsLayoutComponent};//# sourceMappingURL=chunk-BsfQ-Pe7.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.