1import {s as st}from'./chunk-J9aPgGjT.js';import'./chunk-DMNCydWB.js';import {C}from'./chunk-5RnxiyJ8.js';import {I as I$2}from'./chunk-CwhJ4VFO.js';import {b as bi,T as Tt}from'./chunk-ZrY5hOHq.js';import'./chunk-DA6JSIxF.js';import {t as te}from'./chunk-Ckvv2MGj.js';import {GoogleMapComponent as zi}from'./chunk-HTXrZ3Rm.js';import'./chunk-DIOIlyyu.js';import'./chunk-Y5YXS9a9.js';import'./chunk-Bn0zx-Gv.js';import'./chunk-B02AT_YD.js';import {v as v$1,ab as Wo$1,ca as Go$1,bb as Ee,cb as j,ag as kE,bh as Rn,K as Se,M as wE,ak as $t,aH as nf,an as s$1,ao as r$1,ah as f,a6 as Ea,a7 as G,cc as Le$1,bp as o$1,cd as lo$1,ce as re,aj as lf,cf as w,aT as H,bH as o$2,m as mb,bX as u$1,cg as A,F as Fn,T as Tn,ch as S,aD as ci,ba as Mt,S as S_,aE as YM,u as N_,aF as JM,j as jM,D as Dt$1,aK as tr$1,aL as Ie,X as Z,a8 as Nt,bf as mr$1,ci as ae,cj as nn,ck as lD,g as Ts,h as bM,i as Vu,x as xy,A as Aw,c as Ny,W as Wu,cl as Jn$1,aU as w$1,cm as w$2,cn as si,d as dy,co as nS,bT as rM,r as rv,aZ as iv,R as Rt,P as Pg,cp as Fe,bo as ee$1,bw as Nn,cq as ot,cr as ef,bx as Ln$1,bt as l,aP as ju,k as jy,cs as di,a0 as R_,a5 as A_,a1 as O_,b as Rt$1,c7 as XM,U as UM,Z as Z_,ct as Ws,cu as Ib,aN as ct,cv as xe,cw as qn$1,w as wt,cx as fi,c5 as zy,cy as Oy,p as aa$1,t as kt,cz as K_,cA as J_,bU as BM,a_ as ov,$ as $e$1,O as O$1,V as Vt,ad as jn$1,bM as W,am as it,bc as x,ae as me,b8 as Bn,ax as Ze,ay as Rn$1,az as Pn,cB as Xt,aq as ti,ar as je,as as W$1,au as _t,av as Gn$1,aB as fn,aC as cn,cC as iy,cD as Wa,cE as kt$1,cF as qt,cG as H$1,cH as O$2,bC as o$,bI as De,cI as jt,cJ as as,af as ve,C as Fi,cK as T,cL as b,cM as se,aG as Pd,bq as mE,cN as $,b4 as tu,cO as s$,cP as fy,Y as Sy,cQ as Uy,cR as Xr$1,cS as eM,cT as tM,cU as By,cV as Be,cW as fe,cX as i$1,cY as tn,_ as Qy,cZ as z,c_ as wC,c$ as X$1,d0 as Q$1,d1 as ly,e as H_,n as zf,Q as Qf,c0 as Le$2,d2 as S$1,f as $u,q as qu,bY as Si,bZ as Di,be as hM,aQ as MC,aR as NC,c2 as Hu,d3 as Vy,c4 as Bu,c6 as Ly,bD as ip,d4 as F$1,d5 as re$1,d6 as rf,d7 as ot$1,d8 as D,d9 as it$1,da as s$2,db as PC,a2 as dv,dc as qM,dd as tt$1,aO as PT,c8 as tS,aV as hx,aW as G$1}from'./main-FGWGGG6G.js';import'./chunk-BQQpSqWr.js';import'./chunk-s_TL0S8x.js';import'./chunk-Maeo6MgZ.js';import {m}from'./chunk-C4pBoU0p.js';import {p as pe}from'./chunk-B7ERqH6V.js';import {V as Vt$1,L as Lt}from'./chunk-BrLeaQ4v.js';import'./chunk-DrnFuQel.js';import {u,O}from'./chunk-DdQ1aweD.js';import'./chunk-C51rzMQT.js';import'./chunk-CfdfpFVA.js';import {a}from'./chunk-Cnbwco__.js';import'./chunk-D80ihd6V.js';import'./chunk-_ClpSFtB.js';import {u as u$3}from'./chunk-C7QRBMbm.js';import {M as Mt$1}from'./chunk-BLWfwe68.js';import {F,I}from'./chunk-CkGvAlxf.js';import'./chunk-Bta6x7F3.js';import {q}from'./chunk-BCctkqgi.js';import {u as u$2,v,I as I$1}from'./chunk-DNPD0STm.js';import'./chunk-C0uKM84q.js';import'./chunk-CulDww35.js';import'./chunk-CbqulXGf.js';import {q as q$1,l as le}from'./chunk-DY_9JleW.js';import {I as It,J}from'./chunk-eYB9_WZk.js';import'./chunk-ChBhY3_o.js';import'./chunk-Bmje3NpI.js';import {v as vt,_ as _t$1}from'./chunk-ChOlAO5K.js';import'./chunk-vlH_k_m0.js';import {r as rt}from'./chunk-CQH1DeBi.js';import {e as ee,k}from'./chunk-DSD_OVQ1.js';import'./chunk-BMkUcfyT.js';import'./chunk-CgqMv0gi.js';import'./chunk-DqtWNb2V.js';var Ne=(()=>{class t{constructor(){this.httpClient=v$1(tr$1),this.rmaApiUrl=v$1(Ie);}getReport(e,i="false",n,l){let C={};n!=null&&l!=null&&(C.profileType=n,C.profileCode=l);let w=r$1({isPrintMode:i},C),$=this.rmaApiUrl(`v2/PublishedListingReports/Code-${e}`);return this.httpClient.get($,{params:w})}publishReport(e,i,n,l){let C=this.rmaApiUrl(`v2/${n}/${l}/ListingReports/${e}/Publish/${i}`);return this.httpClient.put(C,null)}getPdf(e){let i=this.rmaApiUrl(`v2/ListingReports/${e}/PDFUrl`);return this.httpClient.get(i)}sendComms(e,i,n,l,C){let w=this.rmaApiUrl(`${n}/${l}/ListingReports/${e}/${i}`);return this.httpClient.post(w,C)}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var Ln=(t,a)=>
1{let e=v$1(Wo$1),i=v$1(Go$1),n=v$1(rt),l=v$1(C),C$1=v$1(Ee),w=v$1(Ne),$=v$1(j),ee=t.queryParamMap.get("code"),je=t.queryParamMap.get("print");return ($.isPlatformBrowser?kE([e.currentUser$,i.nullableProfileIdentifier$]).pipe(Rn(([D,de])=>de!==null||!D||D.userType==="Consumer"),Se(([,D])=>D)):wE(null)).pipe($t(1),nf(D=>w.getReport(ee,je??"false",D?.profileType,D?.profileCode)),nf(D=>{let de=`utm_source=market-report&utm_medium=qr_code&utm_campaign=${D.listingReportCode}`,pr=D.profile.profileUrl;return l.getQrCodeForText(C$1(`${pr}?${de}`)).pipe(Se(cr=>s$1(r$1({},D),{qrCodeDataUri:cr})))}),f(),Ea(D=>n.handleError(a.url,D)))};var _r=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Cr=["mat-icon, [matMenuItemIcon]","*"];function vr(t,a){t&1&&(ip(),Ts(0,"svg",2),xy(1,"polygon",3),Vu());}var yr=["*"];function Mr(t,a){if(t&1){let e=H_();Hu(0,"div",0),Vy("click",function(){zf(e);let n=Z_();return Qf(n.closed.emit("click"))})("animationstart",function(n){zf(e);let l=Z_();return Qf(l._onAnimationStart(n.animationName))})("animationend",function(n){zf(e);let l=Z_();return Qf(l._onAnimationDone(n.animationName))})("animationcancel",function(n){zf(e);let l=Z_();return Qf(l._onAnimationDone(n.animationName))}),Hu(1,"div",1),J_(2),Bu()();}if(t&2){let e=Z_();hM(e._classList),Qy("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),Ly("id",e.panelId),Sy("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null);}}var Kt=new b("MAT_MENU_PANEL"),tt=(()=>{class t{_elementRef=v$1(lo$1);_document=v$1(Nt);_focusMonitor=v$1(Be);_parentMenu=v$1(Kt,{optional:true});_changeDetectorRef=v$1(o$);role="menuitem";disabled=false;disableRipple=false;_hovered=new ve;_focused=new ve;_highlighted=false;_triggersSubmenu=false;constructor(){v$1(fe).load(i$1),this._parentMenu?.addItem?.(this);}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this);}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,false);}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete();}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation());}_handleMouseEnter(){this._hovered.next(this);}getLabel(){let e=this._elementRef.nativeElement.cloneNode(true),i=e.querySelectorAll("mat-icon, .material-icons");for(let n=0;n<i.length;n++)i[n].remove();return e.textContent?.trim()||""}_setHighlighted(e){this._highlighted=e,this._changeDetectorRef.markForCheck();}_setTriggersSubmenu(e){this._triggersSubmenu=e,this._changeDetectorRef.markForCheck();}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=mb({type:t,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-focus-indicator"],hostVars:8,hostBindings:function(i,n){i&1&&jy("click",function(C){return n._checkDisabled(C)})("mouseenter",function(){return n._handleMouseEnter()}),i&2&&(Sy("role",n.role)("tabindex",n._getTabIndex())("aria-disabled",n.disabled)("disabled",n.disabled||null),Qy("mat-mdc-menu-item-highlighted",n._highlighted)("mat-mdc-menu-item-submenu-trigger",n._triggersSubmenu));},inputs:{role:"role",disabled:[2,"disabled","disabled",s$],disableRipple:[2,"disableRipple","disableRipple",s$]},exportAs:["matMenuItem"],ngContentSelectors:Cr,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(i,n){i&1&&(K_(_r),J_(0),Ts(1,"span",0),J_(2,1),Vu(),xy(3,"div",1),S_(4,vr,2,0,":svg:svg",2)),i&2&&(Aw(3),Ny("matRippleDisabled",n.disableRipple||n.disabled)("matRippleTrigger",n._getHostElement()),Aw(),N_(n._triggersSubmenu?4:-1));},dependencies:[tn],encapsulation:2})}return t})();var xr=new b("MatMenuContent");var br=new b("mat-menu-default-options",{providedIn:"root",factory:()=>({overlapTrigger:false,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"})}),Gt="_mat-menu-enter",Dt="_mat-menu-exit",$e=(()=>{class t{_elementRef=v$1(lo$1);_changeDetectorRef=v$1(o$);_injector=v$1(De);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=jt();_allItems;_directDescendantItems=new as;_classList={};_panelAnimationState="void";_animationDone=new ve;_isAnimating=Fi(false);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses();}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses();}templateRef;items;lazyContent;overlapTrigger=false;hasBackdrop;get panelClass(){return this._previousPanelClass}set panelClass(e){let i=this._previousPanelClass,n=r$1({},this._classList);i&&i.length&&i.split(" ").forEach(l=>{n[l]=false;}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(l=>{n[l]=true;}),this._elementRef.nativeElement.className=""),this._classList=n;}_previousPanelClass="";get classList(){return this.panelClass}set classList(e){this.panelClass=e;}closed=new ct;close=this.closed;panelId=v$1(T).getId("mat-menu-panel-");constructor(){let e=v$1(br);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.
1yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop;}ngOnInit(){this.setPositionClasses();}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new se(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Pd(this._directDescendantItems),nf(e=>mE(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let i=this._keyManager;if(this._panelAnimationState==="enter"&&i.activeItem?._hasFocus()){let n=e.toArray(),l=Math.max(0,Math.min(n.length-1,i.activeItemIndex||0));n[l]&&!n[l].disabled?i.setActiveItem(l):i.setNextItemActive();}});}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout);}_hovered(){return this._directDescendantItems.changes.pipe(Pd(this._directDescendantItems),nf(i=>mE(...i.map(n=>n._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let i=e.keyCode,n=this._keyManager;switch(i){case 27:$(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(i===38||i===40)&&n.setFocusOrigin("keyboard"),n.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=tu(()=>{let i=this._resolvePanel();if(!i||!i.contains(document.activeElement)){let n=this._keyManager;n.setFocusOrigin(e).setFirstItemActive(),!n.activeItem&&i&&i.focus();}},{injector:this._injector});}resetActiveItem(){this._keyManager.setActiveItem(-1);}setElevation(e){}setPositionClasses(e=this.xPosition,i=this.yPosition){this._classList=s$1(r$1({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":i==="above","mat-menu-below":i==="below"}),this._changeDetectorRef.markForCheck();}_onAnimationDone(e){let i=e===Dt;(i||e===Gt)&&(i&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(i?"void":"enter"),this._isAnimating.set(false));}_onAnimationStart(e){(e===Gt||e===Dt)&&this._isAnimating.set(true);}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let i=this._resolvePanel();i&&(i.scrollTop=0);}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(Dt),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?Gt:Dt);}),this._changeDetectorRef.markForCheck();}_updateDirectDescendants(){this._allItems.changes.pipe(Pd(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges();});}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=mb({type:t,selectors:[["mat-menu"]],contentQueries:function(i,n,l){if(i&1&&By(l,xr,5)(l,tt,5)(l,tt,4),i&2){let C;eM(C=tM())&&(n.lazyContent=C.first),eM(C=tM())&&(n._allItems=C),eM(C=tM())&&(n.items=C);}},viewQuery:function(i,n){if(i&1&&Uy(Xr$1,5),i&2){let l;eM(l=tM())&&(n.templateRef=l.first);}},hostVars:3,hostBindings:function(i,n){i&2&&Sy("aria-label",null)("aria-labelledby",null)("aria-describedby",null);},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",s$],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:s$(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[jM([{provide:Kt,useExisting:t}])],ngContentSelectors:yr,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(i,n){i&1&&(K_(),fy(0,Mr,3,12,"ng-template"));},styles:[`mat-menu { 2 display: none; 3} 4 5.mat-mdc-menu-content { 6 margin: 0; 7 padding: 8px 0; 8 outline: 0; 9} 10.mat-mdc-menu-content, 11.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text { 12 -moz-osx-font-smoothing: grayscale; 13 -webkit-font-smoothing: antialiased; 14 flex: 1; 15 white-space: normal; 16 font-family: var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font)); 17 line-height: var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height)); 18 font-size: var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size)); 19 letter-spacing: var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking)); 20 font-weight: var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight)); 21} 22 23@keyframes _mat-menu-enter { 24 from { 25 opacity: 0; 26 transform: scale(0.8); 27 } 28 to { 29 opacity: 1; 30 transform: none; 31 } 32} 33@keyframes _mat-menu-exit { 34 from { 35 opacity: 1; 36 } 37 to { 38 opacity: 0; 39 } 40} 41.mat-mdc-menu-panel { 42 min-width: 112px; 43 max-width: 280px; 44 overflow: auto; 45 box-sizing: border-box; 46 outline: 0; 47 animation: _mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1); 48 border-radius: var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small)); 49 background-color: var(--mat-menu-container-color, var(--mat-sys-surface-container)); 50 box-shadow: var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)); 51 will-change: transform, opacity; 52} 53.mat-mdc-menu-panel.mat-menu-panel-exit-animation { 54 animation: _mat-menu-exit 100ms 25ms linear forwards; 55} 56.mat-mdc-menu-panel.mat-menu-panel-animations-disabled { 57 animation: none; 58} 59.mat-mdc-menu-panel.mat-menu-panel-animating { 60 pointer-events: none; 61} 62.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty) { 63 display: none; 64} 65@media (forced-colors: active) { 66 .mat-mdc-menu-panel { 67 outline: solid 1px; 68 } 69} 70.mat-mdc-menu-panel .mat-divider { 71 border-top-color: var(--mat-menu-divider-color, var(--mat-sys-surface-variant));
72 margin-bottom: var(--mat-menu-divider-bottom-spacing, 8px); 73 margin-top: var(--mat-menu-divider-top-spacing, 8px); 74} 75 76.mat-mdc-menu-item { 77 display: flex; 78 position: relative; 79 align-items: center; 80 justify-content: flex-start; 81 overflow: hidden; 82 padding: 0; 83 cursor: pointer; 84 width: 100%; 85 text-align: left; 86 box-sizing: border-box; 87 color: inherit; 88 font-size: inherit; 89 background: none; 90 text-decoration: none; 91 margin: 0; 92 min-height: 48px; 93 padding-left: var(--mat-menu-item-leading-spacing, 12px); 94 padding-right: var(--mat-menu-item-trailing-spacing, 12px); 95 -webkit-user-select: none; 96 user-select: none; 97 cursor: pointer; 98 outline: none; 99 border: none; 100 -webkit-tap-highlight-color: transparent; 101} 102.mat-mdc-menu-item::-moz-focus-inner { 103 border: 0; 104} 105[dir=rtl] .mat-mdc-menu-item { 106 padding-left: var(--mat-menu-item-trailing-spacing, 12px); 107 padding-right: var(--mat-menu-item-leading-spacing, 12px); 108} 109.mat-mdc-menu-item:has(.material-icons, mat-icon, [matButtonIcon]) { 110 padding-left: var(--mat-menu-item-with-icon-leading-spacing, 12px); 111 padding-right: var(--mat-menu-item-with-icon-trailing-spacing, 12px); 112} 113[dir=rtl] .mat-mdc-menu-item:has(.material-icons, mat-icon, [matButtonIcon]) { 114 padding-left: var(--mat-menu-item-with-icon-trailing-spacing, 12px); 115 padding-right: var(--mat-menu-item-with-icon-leading-spacing, 12px); 116} 117.mat-mdc-menu-item, .mat-mdc-menu-item:visited, .mat-mdc-menu-item:link { 118 color: var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface)); 119} 120.mat-mdc-menu-item .mat-icon-no-color, 121.mat-mdc-menu-item .mat-mdc-menu-submenu-icon { 122 color: var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant)); 123} 124.mat-mdc-menu-item[disabled] { 125 cursor: default; 126 opacity: 0.38; 127} 128.mat-mdc-menu-item[disabled]::after { 129 display: block; 130 position: absolute; 131 content: ""; 132 top: 0; 133 left: 0; 134 bottom: 0; 135 right: 0; 136} 137.mat-mdc-menu-item:focus { 138 outline: 0; 139} 140.mat-mdc-menu-item .mat-icon { 141 flex-shrink: 0; 142 margin-right: var(--mat-menu-item-spacing, 12px); 143 height: var(--mat-menu-item-icon-size, 24px); 144 width: var(--mat-menu-item-icon-size, 24px); 145} 146[dir=rtl] .mat-mdc-menu-item { 147 text-align: right; 148} 149[dir=rtl] .mat-mdc-menu-item .mat-icon { 150 margin-right: 0; 151 margin-left: var(--mat-menu-item-spacing, 12px); 152} 153.mat-mdc-menu-item:not([disabled]):hover { 154 background-color: var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent)); 155} 156.mat-mdc-menu-item:not([disabled]).cdk-program-focused, .mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused, .mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted { 157 background-color: var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent)); 158} 159@media (forced-colors: active) { 160 .mat-mdc-menu-item {
161 margin-top: 1px; 162 } 163} 164 165.mat-mdc-menu-submenu-icon { 166 width: var(--mat-menu-item-icon-size, 24px); 167 height: 10px; 168 fill: currentColor; 169 padding-left: var(--mat-menu-item-spacing, 12px); 170} 171[dir=rtl] .mat-mdc-menu-submenu-icon { 172 padding-right: var(--mat-menu-item-spacing, 12px); 173 padding-left: 0; 174} 175[dir=rtl] .mat-mdc-menu-submenu-icon polygon { 176 transform: scaleX(-1); 177 transform-origin: center; 178} 179@media (forced-colors: active) { 180 .mat-mdc-menu-submenu-icon { 181 fill: CanvasText; 182 } 183} 184 185.mat-mdc-menu-item .mat-mdc-menu-ripple { 186 top: 0; 187 left: 0; 188 right: 0; 189 bottom: 0; 190 position: absolute; 191 pointer-events: none; 192} 193`],encapsulation:2})}return t})(),kr=new b("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=v$1(De);return ()=>tt$1(t)}});var Le=new WeakMap,wr=(()=>{class t{_canHaveBackdrop;_element=v$1(lo$1);_viewContainerRef=v$1(Ws);_menuItemInstance=v$1(tt,{optional:true,self:true});_dir=v$1(F$1,{optional:true});_focusMonitor=v$1(Be);_ngZone=v$1(re$1);_injector=v$1(De);_scrollStrategy=v$1(kr);_changeDetectorRef=v$1(o$);_animationsDisabled=jt();_portal;_overlayRef=null;_menuOpen=false;_closingActionsSubscription=z.EMPTY;_menuCloseSubscription=z.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e?(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),(i==="click"||i==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i);})):this._destroyMenu(),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()));}_menuInternal=null;constructor(e){this._canHaveBackdrop=e;let i=v$1(Kt,{optional:true});this._parentMaterialMenu=i instanceof $e?i:void 0;}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&Le.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null);}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return !!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit();}_openMenu(e){if(this._triggerIsAriaDisabled())return;let i=this._menu;if(this._menuOpen||!i)return;this._pendingRemoval?.unsubscribe();let n=Le.get(i);Le.set(i,this),n&&n!==this&&n._closeMenu();let l=this._createOverlay(i),C=l.getConfig(),w=C.positionStrategy;this._setPosition(i,w),this._canHaveBackdrop?C.hasBackdrop=i.hasBackdrop==null?!this._triggersSubmenu():i.hasBackdrop:C.hasBackdrop=i.hasBackdrop??false,l.hasAttached()||(l.attach(this._getPortal(i)),i.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),i.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,i.direction=this.dir,e&&i.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(true),i instanceof $e&&(i._setIsOpen(true),i._directDescendantItems.changes.pipe(rf(i.close)).subscribe(()=>{w.withLockedPosition(false).reapplyLastPosition(),w.withLockedPosition(true);}));}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i);}_destroyMenu(e){let i=this._overlayRef,n=this._menu;!i||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),n instanceof $e&&this._ownsMenu(n)?(this._pendingRemoval=n._animationDone.pipe($t(1)).subscribe(()=>{i.detach(),Le.has(n)||n.lazyContent?.detach();}),n._setIsOpen(false)):(i.detach(),n?.lazyContent?.detach()),n&&this._ownsMenu(n)&&Le.delete(n),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(false));}
193_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck());}_createOverlay(e){if(!this._overlayRef){let i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=ot$1(this._injector,i),this._overlayRef.keydownEvents().subscribe(n=>{this._menu instanceof $e&&this._menu._handleKeydown(n);});}return this._overlayRef}_getOverlayConfig(e){return new D({positionStrategy:it$1(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,i){e.setPositionClasses&&i.positionChanges.subscribe(n=>{this._ngZone.run(()=>{let l=n.connectionPair.overlayX==="start"?"after":"before",C=n.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(l,C);});});}
193_setPosition(e,i){let[n,l]=e.xPosition==="before"?["end","start"]:["start","end"],[C,w]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[$,ee]=[C,w],[je,it]=[n,l],D=0;if(this._triggersSubmenu()){if(it=n=e.xPosition==="before"?"start":"end",l=je=n==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let de=this._parentMaterialMenu.items.first;this._parentInnerPadding=de?de._getHostElement().offsetTop:0;}D=C==="bottom"?this._parentInnerPadding:-this._parentInnerPadding;}}else e.overlapTrigger||($=C==="top"?"bottom":"top",ee=w==="top"?"bottom":"top");i.withPositions([{originX:n,originY:$,overlayX:je,overlayY:C,offsetY:D},{originX:l,originY:$,overlayX:it,overlayY:C,offsetY:D},{originX:n,originY:ee,overlayX:je,overlayY:w,offsetY:-D},{originX:l,originY:ee,overlayX:it,overlayY:w,offsetY:-D}]);}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),i=this._overlayRef.detachments(),n=this._parentMaterialMenu?this._parentMaterialMenu.closed:wE(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Rn(C=>this._menuOpen&&C!==this._menuItemInstance)):wE();return mE(e,n,l,i)}_getPortal(e){return (!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new s$2(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return Le.get(e)===this}_triggerIsAriaDisabled(){return s$(this._element.nativeElement.getAttribute("aria-disabled"))}static \u0275fac=function(i){PC();};static \u0275dir=Ib({type:t})}return t})(),Hn=(()=>{class t extends wr{_cleanupTouchstart;_hoverSubscription=z.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e;}get menu(){return this._menu}set menu(e){this._menu=e;}menuData;restoreFocus=true;menuOpened=new ct;onMenuOpen=this.menuOpened;menuClosed=new ct;onMenuClose=this.menuClosed;constructor(){super(true);let e=v$1(wC);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",i=>{X$1(i)||(this._openedBy="touch");},{passive:true});}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(true);}closeMenu(){this._closeMenu();}updatePosition(){this._overlayRef?.updatePosition();}ngAfterContentInit(){this._handleHover();}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe();}_getOverlayOrigin(){return this._element}_getOutsideClickStream(e){return e.backdropClick()}_handleMousedown(e){Q$1(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault());}_handleKeydown(e){let i=e.keyCode;(i===13||i===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===39&&this.dir==="ltr"||i===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu());}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu();}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(false));}));}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Ib({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(i,n){i&1&&jy("click",function(C){return n._handleClick(C)})("mousedown",function(C){return n._handleMousedown(C)})("keydown",function(C){return n._handleKeydown(C)}),i&2&&Sy("aria-haspopup",n.menu?"menu":null)("aria-expanded",n.menuOpen)("aria-controls",n.menuOpen?n.menu?.panelId:null);},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],features:[ly]})}return t})();var Vn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=iy({type:t});static \u0275inj=Wa({imports:[kt$1,qt,H$1,O$2]})}return t})();var X=(function(t){return t.sms="SMS",t.email="Email",t})(X||{});var Q=(function(t){return t.activeListings="ActiveListings",t.soldListings="SoldListings",t.leasedListings="LeasedListings",t.totalRecommendations="TotalRecommendations",t.averageSalePrice="AverageSalePrice",t.totalSalePrice="TotalSalePrice",t.averageStarRating="AverageStarRating",t})(Q||{});var Ot=(function(t){return t.sales="Sales",t.leasing="Leasing",t})(Ot||{});function Rr(t,a){if(t&1&&(Ts(0,"mat-option",9),bM(1),Vu()),t&2){let e=a.$implicit;Ny("value",e),Aw(),Wu(" ",e.fullName," ");}}
193function Sr(t,a){if(t&1){let e=H_();Ts(0,"mat-form-field",2)(1,"mat-label"),bM(2),Vu(),Ts(3,"mat-select",8),jy("selectionChange",function(n){zf(e);let l=Z_(2);return Qf(l.selectContact(n.value))}),R_(4,Rr,2,2,"mat-option",9,A_),Vu()();}if(t&2){let e=Z_().$implicit,i=Z_();Aw(2),rv(e("label.select-contact")),Aw(),Ny("value",i.marketReport.propertyDetails.contacts[0]),Aw(),O_(i.marketReport.propertyDetails.contacts);}}function Pr(t,a){if(t&1&&(Ts(0,"mat-form-field",2)(1,"mat-label"),bM(2),Vu(),xy(3,"input",10),MC(),xy(4,"mat-error"),Vu()),t&2){let e=Z_().$implicit;Aw(2),rv(e("label.email")),Aw(),Ny("placeholder",e("placeholder.email-example")),NC();}}function Ir(t,a){if(t&1&&(Ts(0,"mat-form-field",2)(1,"mat-label"),bM(2),Vu(),xy(3,"input",11),MC(),xy(4,"mat-error"),Vu()),t&2){let e=Z_().$implicit;Aw(2),rv(e("label.mobile")),Aw(),Ny("placeholder",e("placeholder.mobile-example")),NC();}}function Er(t,a){if(t&1&&(Ts(0,"mat-form-field",2)(1,"mat-label"),bM(2),Vu(),xy(3,"input",12),MC(),xy(4,"mat-error"),Vu()),t&2){let e=Z_().$implicit;Aw(2),rv(e("label.email-subject")),Aw(),NC();}}function Dr(t,a){if(t&1){let e=H_();Ts(0,"ng-form",1),S_(1,Sr,6,2,"mat-form-field",2),S_(2,Pr,5,2,"mat-form-field",2),S_(3,Ir,5,2,"mat-form-field",2),S_(4,Er,5,1,"mat-form-field",2),Ts(5,"mat-form-field",2)(6,"mat-label"),bM(7),Vu(),xy(8,"textarea",3),MC(),xy(9,"mat-error"),Vu(),xy(10,"mat-form-error",4),Ts(11,"p",5)(12,"button",6),jy("click",function(){zf(e);let n=Z_();return Qf(n.cancel())}),bM(13),YM(14,"transloco"),Vu(),Ts(15,"button",7),jy("click",function(){zf(e);let n=Z_();return Qf(n.send())}),bM(16),YM(17,"transloco"),Vu()()();}if(t&2){let e=a.$implicit,i=Z_();Ny("formGroup",i.form),Aw(),N_(i.marketReport.propertyDetails.contacts.length>1?1:-1),Aw(),N_(i.type===i.marketReportCommunicationTypeEnum.email?2:-1),Aw(),N_(i.type===i.marketReportCommunicationTypeEnum.sms?3:-1),Aw(),N_(i.type===i.marketReportCommunicationTypeEnum.email?4:-1),Aw(3),rv(e("label.message")),Aw(),NC(),Aw(2),Ny("control",i.form),Aw(3),rv(JM(14,9,"action.cancel")),Aw(3),rv(JM(17,11,"action.send"));}}var jn=(()=>{class t{constructor(){this.profile=v$1(Go$1),this.fb=v$1(jn$1),this.marketReportApiService=v$1(Ne),this.matDialogRef=v$1(O$1),this.modalData=v$1($e$1),this.rmaBaseUrl=v$1(Ee),this.serverValidationService=v$1(u$3),this.translationService=v$1(W),this.form=this.createForm(this.modalData.type),this.marketReportCommunicationTypeEnum=X,this.type=this.modalData.type,this.marketReport=this.modalData.marketReport,this.listingReportUrl=this.rmaBaseUrl(`market-report?code=${this.marketReport.listingReportCode}`),this.selectContact(this.marketReport.propertyDetails?.contacts[0]);}selectContact(e){this.getDefaultMessage(e).pipe($t(1)).subscribe(i=>{let n;this.type===X.sms?n=`${i.smsMessage} 194 195${this.listingReportUrl}`:n=this.marketReport.customMessage??i.message,n+=` 196 197${i.signature}`,this.form.patchValue({email:e.email,phone:e.mobile,subject:i.subject,content:n});});}getDefaultMessage(e){let i=["marketReports.communication.default-subject","marketReports.communication.default-message","marketReports.communication.sms.default-message","marketReports.communication.default-message-signature"],n={contactName:e.fullName,address:this.marketReport.propertyDetails.streetAddress,agentName:this.marketReport.profile.fullName??"",agentPhone:this.marketReport.profile.contactNumber??"",agency:this.marketReport.profile.agencyName!==void 0&&this.marketReport.profile.agentCode?this.marketReport.profile.agencyName:""};return this.translationService.selectTranslate(i,n).pipe(Se(l=>
197({subject:l[0],message:l[1].replace(/\\n/g,` 198`),smsMessage:l[2].replace(/\\n/g,` 199`),signature:l[3].replace(/\\n/g,` 200`)})))}send(){if(!this.form.valid)return;let e={subject:this.form.get("subject")?.value??"",content:this.form.get("content")?.value??"",address:this.type===X.email?this.form.get("email")?.value??"":this.form.get("phone")?.value??""};return this.profile.profileIdentifier$.pipe(nf(({profileType:i,profileCode:n})=>this.marketReportApiService.sendComms(this.marketReport.listingReportId,this.type,i,n,e)),Ea(i=>(this.serverValidationService.handleApiErrors(i.error,this.form),it))).subscribe(()=>this.matDialogRef.close(true))}cancel(){this.matDialogRef.close();}createForm(e){let i=new x({content:this.fb.control("",{validators:[me.required],updateOn:"blur"})});return e===X.email&&(i.addControl("email",this.fb.control("",{validators:[me.required,me.email],updateOn:"change"})),i.addControl("subject",this.fb.control("",{validators:[me.required],updateOn:"blur"}))),e===X.sms&&i.addControl("phone",this.fb.control("",{validators:[me.required],updateOn:"change"})),i}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-market-report-communication-form"]],decls:2,vars:1,consts:[["novalidate","",3,"formGroup",4,"transloco","translocoPrefix"],["novalidate","",3,"formGroup"],[1,"w-full"],["type","text","matInput","","formControlName","content",1,"h-40"],[3,"control"],[1,"flex","justify-between"],["type","button","mat-button","","color","primary",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"click"],[3,"selectionChange","value"],[3,"value"],["type","email","matInput","","formControlName","email",3,"placeholder"],["type","tel","matInput","","formControlName","phone",3,"placeholder"],["type","text","matInput","","formControlName","subject"]],template:function(i,n){i&1&&(Ts(0,"mat-dialog-content"),dy(1,Dr,18,13,"ng-form",0),Vu()),i&2&&(Aw(),Ny("translocoPrefix","form"));},dependencies:[Bn,Ze,Rn$1,Pn,Xt,Fn,Tn,Vt,q$1,le,ti,je,W$1,_t,vt,_t$1,It,J,Vt$1,Lt,Gn$1,fn,cn,wt,Rt$1,Mt],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:1});}}return t})();var Gn=(()=>{class t{constructor(){this.modalData=v$1($e$1),this.matDialogRef=v$1(O$1),this.dataUri=this.modalData.dataUri;}cancel(){this.matDialogRef.close();}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-qr-code-download"]],decls:6,vars:5,consts:[["alt","",3,"src"],["mat-button","","color","primary","download","qr-code.png","target","_blank",1,"w-full","text-center",3,"href"],["glyph","download"]],template:function(i,n){i&1&&(Ts(0,"mat-dialog-content"),xy(1,"img",0),Ts(2,"a",1),xy(3,"rma-icon",2),bM(4),YM(5,"transloco"),Vu()()),i&2&&(Aw(),Ny("src",n.dataUri,Pg),Aw(),Ny("href",n.dataUri,Pg),Aw(2),Wu(" ",JM(5,3,"action.download")," "));},dependencies:[Vt,Fn,Tn,Rt,Rt$1,Mt],styles:["[_nghost-%COMP%]{display:block}"]});}}return t})();function Or(t,a){if(t&1){let e=H_();Ts(0,"nav")(1,"a",8),xy(2,"rma-icon",9),bM(3,"\xA0 "),Ts(4,"span"),bM(5),YM(6,"transloco"),Vu()(),Ts(7,"button",10),jy("click",function(){zf(e);let n=Z_();return Qf(n.confirmPublish())}),xy(8,"rma-icon",11),bM(9,"\xA0 "),Ts(10,"span"),bM(11),YM(12,"transloco"),Vu()()();}if(t&2){let e=Z_();Aw(),Ny("href",e.editUrl,Pg),Aw(4),rv(JM(6,3,"action.edit")),Aw(6),rv(JM(12,5,"marketReports.actions.publish"));}}function Ar(t,a){if(t&1&&(Ts(0,"nav")(1,"a",8),xy(2,"rma-icon",12),Ts(3,"span"),bM(4),YM(5,"transloco"),Vu()(),Ts(6,"button",13),xy(7,"rma-icon",14),Ts(8,"span"),bM(9),YM(10,"transloco"),Vu()()()),t&2){let e=Z_(),i=rM(6);Aw(),Ny("href",e.manageReportsUrl,Pg),Aw(3),rv(JM(5,4,"action.back")),Aw(2),Ny("matMenuTriggerFor",i),Aw(3),rv(JM(10,6,"marketReports.actions.send-report"));}}function Fr(t,a){if(t&1&&(Ts(0,"nav")(1,"a",8),xy(2,"rma-icon",12),Ts(3,"span"),bM(4),YM(5,"transloco"),Vu()(),Ts(6,"button",13),xy(7,"rma-icon",14),Ts(8,"span"),bM(9),YM(10,"transloco"),Vu()()()),t&2){let e=Z_(),i=rM(6);Aw(),Ny("href",e.manageReportsUrl,Pg),Aw(3),rv(JM(5,4,"action.back")),Aw(2),Ny("matMenuTriggerFor",i),Aw(3),rv(JM(10,6,"marketReports.actions.send-report"));}}function Br(t,a){if(t&1){let e=H_();Ts(0,"button",2),jy("click",function(){zf(e);let n=Z_();return Qf(n.openSendCommsDialog(n.marketReportCommunicationTypeEnum.sms))}),Ts(1,"span",3),xy(2,"rma-icon",15),bM(3),YM(4,"transloco"),Vu()();}t&2&&(Aw(3),Wu(" ",JM(4,1,"marketReports.actions.send-sms")," "));}
200var At=class qt{constructor(){this.profile=v$1(Go$1),this.dialogService=v$1(ee$1),this.featureFlagService=v$1(Nn),this.marketReportApiService=v$1(Ne),this.modalService=v$1(ot),this.qrCodeService=v$1(C),this.rmaBaseUrl=v$1(Ee),this.snackBar=v$1(Mt$1),this.isPublished$=new mr$1(false),this.marketReportCommunicationTypeEnum=X;}ngOnInit(){this.qrCode$=this.qrCodeService.getQrCodeForText(this.rmaBaseUrl(`/market-report?code=${this.report.listingReportCode}&utm_medium=qr-code`)).pipe(ef(1)),this.showSmsMenuItem$=this.featureFlagService.getFeature$(Ln$1.EnableMobileNumberForMarketReport,true);}ngOnChanges(a){this.isPublished$.next(this.report.isPublished),this.editUrl=this.rmaBaseUrl(`/dashboard/market-reports/property-details/${this.report.listingReportId}`),this.manageReportsUrl=this.rmaBaseUrl("/dashboard/market-reports/manage");}confirmPublish(){this.modalService.openConfirmAction({title:"marketReports.confirm-publish-title",message:"marketReports.confirm-publish-message",buttonText:"marketReports.actions.publish",useTranslation:true,onConfirm:()=>this.publish().pipe(Se(()=>true))}).afterClosed().subscribe(e=>{e===true&&(this.isPublished$.next(true),this.snackBar.open("Report was successfully published",void 0,{duration:5e3}));});}downloadPdf(){this.marketReportApiService.getPdf(this.report.listingReportId).subscribe({next:a=>window.open(a,"_blank"),error:a=>this.snackBar.open(a.error.Message,void 0,{duration:5e3})});}downloadQrCode(){this.qrCode$.pipe(H(this)).subscribe(a=>{this.dialogService.open(Gn,l({data:{dataUri:a}}));});}openSendCommsDialog(a){this.dialogService.open(jn,l({data:{type:a,marketReport:this.report}})).afterClosed().pipe(Rn(i=>i===true)).subscribe(()=>this.snackBar.open("Message sent",void 0,{duration:5e3}));}publish(){return this.profile.profileIdentifier$.pipe(nf(({profileType:a,profileCode:e})=>this.marketReportApiService.publishReport(this.report.listingReportId,this.report.propertyDetails.transactionType,a,e)))}static{this.\u0275fac=function(e){return new(e||qt)};}static{this.\u0275cmp=mb({type:qt,selectors:[["rma-market-report-publish"]],inputs:{report:"report"},features:[jM([ot]),lD],decls:24,vars:15,consts:[["send",""],["menu","matMenu"],["type","button","mat-menu-item","",3,"click"],[1,"flex"],["glyph","download"],["glyph","email"],["type","button","mat-menu-item",""],["glyph","qr_code_2"],["mat-stroked-button","","color","primary",3,"href"],["glyph","edit"],["type","button","mat-raised-button","","color","primary","mat-raised-button","",3,"click"],["glyph","save"],["glyph","chevron_left"],["type","button","mat-raised-button","","color","primary",3,"matMenuTriggerFor"],["glyph","send"],["glyph","phone"]],template:function(e,i){e&1&&(S_(0,Or,13,7,"nav"),YM(1,"async"),ju(2,Ar,11,8,"nav"),dy(3,Fr,11,8,"ng-template",null,0,nS),Ts(5,"mat-menu",null,1)(7,"button",2),jy("click",function(){return i.downloadPdf()}),Ts(8,"span",3),xy(9,"rma-icon",4),bM(10),YM(11,"transloco"),Vu()(),Ts(12,"button",2),jy("click",function(){return i.openSendCommsDialog(i.marketReportCommunicationTypeEnum.email)}),Ts(13,"span",3),xy(14,"rma-icon",5),bM(15),YM(16,"transloco"),Vu()(),S_(17,Br,5,3,"button",6),YM(18,"async"),Ts(19,"button",2),jy("click",function(){return i.downloadQrCode()}),Ts(20,"span",3),xy(21,"rma-icon",7),bM(22),YM(23,"transloco"),Vu()()()),e&2&&(N_(JM(1,5,i.isPublished$)===false?0:2),Aw(10),Wu(" ",JM(11,7,"marketReports.actions.download-pdf")," "),Aw(5),Wu(" ",JM(16,9,"marketReports.actions.send-email")," "),Aw(2),N_(JM(18,11,i.showSmsMenuItem$)?17:-1),Aw(5),Wu(" ",JM(23,13,"action.generate-qr-code")," "));},dependencies:[Fn,Tn,Rt,Vn,$e,tt,Hn,ci,Mt],styles:["[_ngcontent-%COMP%]:root{--header-height: 5rem}[_nghost-%COMP%] nav[_ngcontent-%COMP%]{position:fixed;display:flex;align-items:center;gap:1rem;width:100%;background-color:#fff;bottom:0;left:0;padding:1rem;border-top:1px solid #e8e8e9}"]});}};At=hx([G$1()],At);var Ft=class Xt{backToMap(){this.mapElement.nativeElement.scrollIntoView({behavior:"smooth"});}static{this.\u0275fac=function(e){return new(e||Xt)};}static{this.\u0275cmp=mb({type:Xt,selectors:[["rma-back-to-map"]],hostAttrs:[1,"fixed","z-50","m-auto","inset-x-0","top-5"],inputs:{mapElement:"mapElement"},decls:7,vars:3,consts:[[1,"flex","items-center","justify-center"],["type","button","mat-stroked-button","","color","primary",1,"bg-white!",3,"click"],[1,"flex","items-center"],["glyph","arrow_upward"]],template:function(e,i){e&1&&(Ts(0,"div",0)(1,"button",1),jy("click",function(){return i.backToMap()}),Ts(2,"div",2),xy(3,"rma-icon",3),Ts(4,"span"),bM(5),YM(6,"transloco"),Vu()()()()),e&2&&(Aw(5),rv(JM(6,1,"marketReports.scroll-to-map")));},dependencies:[Fn,Tn,Rt,Mt],encapsulation:2});}};
200Ft=hx([G$1()],Ft);var He=class Qt{constructor(){this.document=v$1(Nt),this.elementRef=v$1(lo$1),this.platformService=v$1(j),this.vcr=v$1(Ws);}ngAfterViewInit(){this.platformService.isPlatformBrowser&&(this.isInView(),this.isParentInView());}ngOnChanges(a){let{selectedItemId:e}=a;if(e&&this.selectedItemId){let i=this.document.getElementById(this.selectedItemId);i&&i.scrollIntoView({behavior:"smooth"});}}isInView(){let a=this.vcr.element.nativeElement;new IntersectionObserver(i=>{let n=i[0];this.renderContents(!n.isIntersecting);},{threshold:.5}).observe(a);}isParentInView(){let e=this.vcr.element.nativeElement.parentNode.parentNode;new IntersectionObserver(n=>{let l=n[0];this.renderContents(l.isIntersecting);}).observe(e);}renderContents(a){if(this.vcr.clear(),a&&this.selectedItemId){let e=this.vcr.createComponent(Ft);e.setInput("mapElement",this.elementRef),e.changeDetectorRef.detectChanges();}}static{this.\u0275fac=function(e){return new(e||Qt)};}static{this.\u0275dir=Ib({type:Qt,selectors:[["","rmaBackToMap",""]],inputs:{selectedItemId:"selectedItemId"},features:[lD]});}};He=hx([G$1()],He);function Ur(t,a){if(t&1&&xy(0,"rma-static-google-map",0),t&2){let e=Z_();Ny("markers",e.markers)("config",e.staticMapConfig)("staticMapUrl",e.printedUrl);}}function Nr(t,a){if(t&1){let e=H_();Ts(0,"rma-google-map",2),jy("markerSelected",function(n){zf(e);let l=Z_();return Qf(l.markerSelected.emit(n.id))}),Vu();}if(t&2){let e=Z_();Ny("padding",24)("markers",e.markers)("options",e.interactiveMapOptions);}}var Kn=(()=>{class t{constructor(){this.isPrintMode=false,this.markers=[],this.markerSelected=new ct,this.staticMapConfig=s$1(r$1({},Fe),{height:200,width:640,scale:2,clickToInteractive:false,markerParameterStyle:ae,lazy:false,enableZoom:false}),this.interactiveMapOptions=s$1(r$1({},xe),{disableDefaultUI:true});}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-market-report-comparable-properties-map"]],inputs:{isPrintMode:"isPrintMode",markers:"markers",printedUrl:"printedUrl"},outputs:{markerSelected:"markerSelected"},decls:2,vars:1,consts:[[3,"markers","config","staticMapUrl"],[3,"padding","markers","options"],[3,"markerSelected","padding","markers","options"]],template:function(i,n){i&1&&S_(0,Ur,1,3,"rma-static-google-map",0)(1,Nr,1,3,"rma-google-map",1),i&2&&N_(n.isPrintMode?0:1);},dependencies:[st,zi],styles:[`rma-market-report-comparable-properties-map{display:block}rma-market-report-comparable-properties-map rma-static-google-map img{min-width:100%} 201`],encapsulation:2});}}return t})();function Lr(t,a){if(t&1&&(Ts(0,"div",7),bM(1),YM(2,"currency"),Vu()),t&2){let e=Z_(3);Aw(),rv(tS(2,1,e.campaign.salePrice,void 0,"symbol","1.0"));}}function $r(t,a){if(t&1&&(Ts(0,"div",7),bM(1),YM(2,"currency"),Vu()),t&2){let e=Z_(3);Aw(),ov("",tS(2,2,e.campaign.leaseMaxPrice,void 0,"symbol","1.0"),"/",e.campaign.leasePeriod);}}function zr(t,a){t&1&&xy(0,"hr",9);}function Hr(t,a){if(t&1&&(Ts(0,"div"),bM(1),YM(2,"transloco"),YM(3,"date"),Vu()),t&2){let e=Z_(3);Aw(),ov("",JM(2,2,e.campaign.saleMethod)," on ",XM(3,4,e.campaign.saleDate,"dd MMM yyyy"));}}function Vr(t,a){if(t&1&&(Ts(0,"div",1)(1,"div",2),xy(2,"rma-property-status",3),Vu(),xy(3,"rma-carousel",4),Vu(),Ts(4,"div",5)(5,"p",6),bM(6),Vu(),S_(7,Lr,3,6,"div",7),S_(8,$r,3,7,"div",7),xy(9,"rma-property-attribute",8),S_(10,zr,1,0,"hr",9),S_(11,Hr,4,7,"div"),Vu()),t&2){let e=Z_(2);Aw(2),Ny("isSold",e.campaign.transactionType===e.marketReportTransactionTypeEnum.sales?true:null)("isLeased",e.campaign.transactionType===e.marketReportTransactionTypeEnum.leasing?true:null),Aw(),Ny("source",e.images),Aw(3),rv(e.campaign.fullAddress),Aw(),N_(e.campaign.salePrice?7:-1),Aw(),N_(e.campaign.leaseMaxPrice?8:-1),Aw(),Ny("bathrooms",e.campaign.bathrooms)("bedrooms",e.campaign.bedrooms)("carparks",e.campaign.carparks)("landSize",e.campaign.landSize)("houseSize",e.campaign.houseSize)("propertyType",e.campaign.propertyType),Aw(),N_(e.campaign.listedDate||e.campaign.saleDate||e.campaign.salePrice||e.campaign.leaseMaxPrice?10:-1),Aw(),N_(e.campaign.saleDate?11:-1);}}
201function jr(t,a){if(t&1&&($u(0),S_(1,Vr,12,14),qu()),t&2){let e=Z_();Aw(),N_(e.campaign?1:-1);}}var Yn=(()=>{class t{constructor(){this.selected=false,this.class="rounded-b shadow-lg flex flex-col h-full print:flex-row print:shadow-none print:mb-3",this.marketReportTransactionTypeEnum=Ot,this.images=[];}ngOnChanges(e){let{campaign:i}=e;i&&(this.images=this.campaign?this.getImages(this.campaign):[]);}getImages(e){let i=e.streetAddress;return e.propertyImages?[...e.propertyImages.filter(n=>n.imageType===S$1.Hero),...e.propertyImages.filter(n=>n.imageType!==S$1.Hero)].map(n=>({src:n.imageUrl,alt:i})):[]}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-market-report-comparable-property"]],hostVars:4,hostBindings:function(i,n){i&2&&(hM(n.class),Qy("bg-blue-10",n.selected));},inputs:{campaign:"campaign",selected:"selected"},features:[jM([Tt()]),lD],decls:1,vars:1,consts:[[4,"transloco","translocoPrefix"],[1,"relative","print:w-1/3"],[1,"absolute","left-2","top-2","z-10","print:hidden"],[3,"isSold","isLeased"],[1,"aspect-[1.5]",3,"source"],[1,"flex","w-full","grow","flex-col","p-3","print:pt-0"],[1,"font-bold"],[1,"my-1"],[1,"mb-3","text-steel-70","print:mb-1",3,"bathrooms","bedrooms","carparks","landSize","houseSize","propertyType"],[1,"my-3","mt-auto","text-steel-20","print:hidden"]],template:function(i,n){i&1&&dy(0,jr,2,1,"ng-container",0),i&2&&Ny("translocoPrefix","marketReports");},dependencies:[pe,I$2,bi,wt,Si,Di,Mt],encapsulation:2});}}return t})();function Gr(t,a){if(t&1&&(Ts(0,"div")(1,"div",0),xy(2,"rma-market-report-comparable-property",1),Vu()()),t&2){let e=a.$implicit,i=Z_();Aw(),Ny("id",e.campaignCode),Aw(),Ny("campaign",e)("selected",e.campaignCode===i.selectedItemId);}}var qn=(()=>{class t{constructor(){this.comparableCampaigns=[];}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-market-report-comparable-property-tiles"]],inputs:{comparableCampaigns:"comparableCampaigns",selectedItemId:"selectedItemId"},decls:2,vars:0,consts:[[1,"h-full","print:break-inside-avoid-page",3,"id"],[1,"break-inside-avoid",3,"campaign","selected"]],template:function(i,n){i&1&&R_(0,Gr,3,3,"div",null,A_),i&2&&O_(n.comparableCampaigns);},dependencies:[Yn],styles:["[_ngcontent-%COMP%]:root{--header-height: 5rem}[_nghost-%COMP%]{display:grid;gap:2rem;margin-bottom:2rem}@media(min-width:40em){[_nghost-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(20rem,1fr))}}@media print{[_nghost-%COMP%]{display:block}}"]});}}return t})();function Kr(t,a){if(t&1){let e=H_();Ts(0,"rma-market-report-comparable-properties-map",4),jy("markerSelected",function(n){zf(e);let l=Z_(2);return Qf(l.onMarkerSelected(n))}),Vu();}if(t&2){let e=Z_(),i=Z_();Qy("h-80",!i.isPrintMode),Ny("isPrintMode",i.isPrintMode)("printedUrl",i.printedUrl)("markers",e);}}function Yr(t,a){if(t&1&&S_(0,Kr,1,5,"rma-market-report-comparable-properties-map",3),t&2){let e=Z_();N_(e.isPrintMode&&e.printedUrl||a.length?0:-1);}}var Xn=(()=>{class t{constructor(){this.comparableCampaigns=[],this.isPrintMode=false,this.mapMarkerService=v$1(u),this.coordsToMapMarkerPipe=v$1(O),this.document=v$1(Nt),this.markerType="CompletedListing",this.markersSource=new mr$1([]),this.markers$=this.markersSource.asObservable();}ngOnChanges(e){let{comparableCampaigns:i}=e;if(i&&this.comparableCampaigns){let n=this.mapToRmaMapMarkers(this.comparableCampaigns,this.isPrintMode??false);if(n.length){if(this.primaryMapMarker){let w=s$1(r$1({},this.primaryMapMarker),{content:this.mapMarkerService.getContent(ae)});n.unshift(w);}let l=n.map(w=>s$1(r$1({},w),{latlon:JSON.stringify(w.detail.coords)})),C=nn(l,"latlon");this.markersSource.next(C);}}}onMarkerSelected(e){let i=Array.isArray(e)?e[0]:e;this.setSelectedItemId(i),this.markersSource.next(this.setSelectedMarker(this.markersSource.value,i));}setSelectedItemId(e){this.selectedItemId=this.selectedItemId!==e?e:void 0,this.selectedItemId&&(this.selectedElement=this.document.getElementById(e),this.selectedElement&&this.selectedElement.scrollIntoView({behavior:"smooth"}));}mapToRmaMapMarkers(e,i){return e.filter(n=>(n.latitude??0)!==0&&(n.longitude??0)!==0).map((n,l)=>this.mapToRmaMapMarker(n,i,l+1))}mapToRmaMapMarker(e,i,n){if(i)return this.coordsToMapMarkerPipe.transform({lat:e.latitude??0,lon:e.longitude??0},{status:"standard",mapType:this.markerType});let l={id:e.campaignCode,combinedHash:0,title:e.fullAddress,codes:[e.campaignCode],coords:{lat:e.latitude??0,lon:e.longitude??0},markerCount:1,status:"standard",hovered:false,verticalType:o$2,info:[],markerType:this.markerType},{content:C,zIndex:w,gmpClickable:$}=this.getDefaultMarker(n);return {detail:l,position:{lat:l.coords.lat,lng:l.coords.lon},title:l.title,content:C,zIndex:w,options:{gmpClickable:$}}}setSelectedMarker(e,i){return e.map((n,l)=>
201{if(n.detail.status==="active"){let{content:C}=this.getDefaultMarker(n.zIndex??l,"viewed");return s$1(r$1({},n),{content:C,detail:s$1(r$1({},n.detail),{status:"viewed"}),options:s$1(r$1({},n.options),{gmpClickable:true})})}return n.detail.id===i?s$1(r$1({},n),{content:this.mapMarkerService.transform(a({markerType:this.markerType}),"active",n.zIndex??l).content,options:s$1(r$1({},n.options),{gmpClickable:false}),detail:s$1(r$1({},n.detail),{status:"active"})}):n})}getDefaultMarker(e,i="standard"){return s$1(r$1({},this.mapMarkerService.transform(a({markerType:this.markerType}),i,e)),{gmpClickable:true})}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-market-report-comparable-properties"]],inputs:{primaryMapMarker:"primaryMapMarker",comparableCampaigns:"comparableCampaigns",isPrintMode:"isPrintMode",printedUrl:"printedUrl"},features:[jM([O,u]),lD],decls:7,vars:9,consts:[[1,"break-inside-avoid"],["rmaBackToMap","",1,"mat-headline-4","mb-8","text-center",3,"selectedItemId"],[3,"comparableCampaigns","selectedItemId"],[1,"w-full","pb-6",3,"h-80","isPrintMode","printedUrl","markers"],[1,"w-full","pb-6",3,"markerSelected","isPrintMode","printedUrl","markers"]],template:function(i,n){if(i&1&&(Ts(0,"div",0)(1,"h2",1),bM(2),YM(3,"transloco"),Vu(),S_(4,Yr,1,1),YM(5,"async"),Vu(),xy(6,"rma-market-report-comparable-property-tiles",2)),i&2){let l;Aw(),Ny("selectedItemId",n.selectedItemId),Aw(),Wu(" ",JM(3,5,"marketReports.comparable-properties-header")," "),Aw(2),N_((l=JM(5,7,n.markers$))?4:-1,l),Aw(2),Ny("comparableCampaigns",n.comparableCampaigns)("selectedItemId",n.selectedItemId);}},dependencies:[He,Kn,qn,ci,Mt],styles:[`rma-market-report-comparable-properties{display:block}rma-market-report-comparable-properties rma-static-google-map img{min-width:100%} 202`],encapsulation:2});}}return t})();var qr=()=>({count:1}),Xr=(t,a,e)=>({location:t,ranking:a,actor:e});function Qr(t,a){if(t&1&&(Ts(0,"div",0)(1,"div",2),xy(2,"rma-icon",3),Vu(),dv(3),YM(4,"titlecase"),bM(5),YM(6,"lowercase"),Vu()),t&2){let e=a.$implicit,i=Z_(2);Aw(),zy("background",i.awardConfig?.color);let n=JM(4,3,e("agent",BM(7,qr)));Aw(4),Wu(" ",e("locations.award."+JM(6,5,i.award.awardType),qM(8,Xr,i.award.awardName,i.award.ranking,n))," ");}}function Wr(t,a){t&1&&dy(0,Qr,7,12,"div",1);}var Ve=(()=>{class t{constructor(){this.awardService=v$1(u$2);}ngOnChanges(e){let{awards:i}=e;i&&(this.award=this.getAward(this.awards),this.awardConfig=this.getAwardConfig(this.award?.awardType));}getAward(e){return e?.length?qn$1(e,"ranking"):void 0}getAwardConfig(e){return e?this.awardService.getAwardConfig(e):void 0}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-market-report-top-award"]],inputs:{awards:"awards"},features:[lD],decls:1,vars:1,consts:[[1,"mt-2","inline-flex","items-center","rounded-full","py-1","pr-2","print:mt-0"],["class","mt-2 inline-flex items-center rounded-full py-1 pr-2 print:mt-0",4,"transloco"],[1,"mr-2","flex","h-7","w-7","justify-center","rounded-full","border-2","border-white"],["glyph","rma-award",1,"rma-icon-award-sm"]],template:function(i,n){i&1&&S_(0,Wr,1,0,"div",0),i&2&&N_(n.award?0:-1);},dependencies:[Rt,wt,di,fi],encapsulation:2});}}return t})();var Zr=t=>({"sm:py-10":t}),Jr=t=>({"sm:py-14":t}),eo=t=>({count:t});function to(t,a){if(t&1&&(Ts(0,"div",7),xy(1,"rma-star-rating-summary",16),Ts(2,"p"),bM(3),YM(4,"transloco"),Vu()()),t&2){let e=Z_(2);Aw(),Ny("overallStars",e.profile.agentOverallStars),Aw(2),rv(XM(4,2,"review.count",UM(5,eo,e.profile.reviewCount)));}}function io(t,a){if(t&1&&(Ts(0,"a",10),bM(1),YM(2,"transloco"),Vu()),t&2){let e=Z_(2);Ny("href","mailto:"+e.profile.email,Pg),Aw(),Wu(" ",JM(2,2,"button.label.get-in-touch")," ");}}function no(t,a){if(t&1&&(Ts(0,"a",11),bM(1),Vu()),t&2){let e=Z_(2);Ny("href","tel:"+e.profile.contactNumber,Pg),Aw(),Wu(" ",e.profile.contactNumber," ");}}function ro(t,a){if(t&1&&(Ts(0,"div",0)(1,"div",1)(2,"div",2),xy(3,"rma-profile-avatar",3),Vu(),Ts(4,"div",4)(5,"div",5),bM(6),Vu(),Ts(7,"div",6),bM(8),Vu(),S_(9,to,5,7,"div",7),xy(10,"rma-market-report-top-award",8),Vu()(),Ts(11,"div",9),S_(12,io,3,4,"a",10),S_(13,no,2,2,"a",11),Vu()(),Ts(14,"div",12)(15,"span",13),bM(16),YM(17,"transloco"),Vu(),xy(18,"img",14),YM(19,"staticImageUrl"),Vu(),xy(20,"div",15)),t&2){let e=Z_();Aw(3),Ny("size",144)("avatar",e.profile.avatarImage)("backgroundColour",e.profile.backgroundColour)("name",e.profile.fullName)("lazyLoad",false),Aw(),Ny("ngClass",UM(21,Zr,!e.profile.agentOverallStars&&!e.profile.reviewCount)),Aw(2),rv(e.profile.fullName),Aw(2),rv(e.profile.agencyName),Aw(),N_(e.profile.agentOverallStars&&e.profile.reviewCount?9:-1),Aw(),Ny("awards",e.awards),Aw(),Ny("ngClass",UM(23,Jr,!e.profile.contactNumber)),Aw(),N_(e.profile.email?12:-1),Aw(),N_(e.profile.contactNumber?13:-1),Aw(3),rv(JM(17,17,"marketReports.powered-by")),Aw(2),Ny("src",JM(19,19,"/logos/logo-dark.svg"),Pg),Aw(2),zy("background-color",e.profile.backgroundColour??"#1a222c");}}var Qn=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-market-report-footer"]],inputs:{profile:"profile",awards:"awards"},decls:1,vars:1,consts:[[1,"mx-auto","max-w-4xl","px-4","pt-6","text-center","sm:flex","
202sm:pt-16","sm:text-left"],[1,"items-center","sm:mr-16","sm:flex","sm:items-start"],[1,"mx-auto","w-36"],[1,"h-36","w-36","shrink-0","border-4","border-white",3,"size","avatar","backgroundColour","name","lazyLoad"],[1,"mt-4","sm:ml-8","sm:mt-0",3,"ngClass"],[1,"mb-2","text-2xl","font-bold"],[1,"text-lg","font-bold"],[1,"mt-4","flex","justify-center","sm:mt-5","sm:justify-start"],[3,"awards"],[1,"mx-auto","my-6","flex","w-64","flex-col","gap-4","sm:mx-0","sm:my-0",3,"ngClass"],["mat-flat-button","","color","primary",1,"hidden","md:flex",3,"href"],["mat-stroked-button","","color","primary",1,"hidden","bg-white","md:flex",3,"href"],[1,"mx-auto","my-6","flex","items-center","justify-center","text-lg","font-bold"],[1,"mr-2"],["alt","RateMyAgent","width","111","height","32",3,"src"],[1,"h-2","w-full"],[1,"mr-2",3,"overallStars"]],template:function(i,n){i&1&&S_(0,ro,21,25),i&2&&N_(n.profile?0:-1);},dependencies:[q,Jn$1,ee,Ve,Fn,Tn,Mt,w$1],encapsulation:2});}}return t})();var oo=t=>({count:t});function ao(t,a){if(t&1&&xy(0,"rma-star-rating-summary",11),t&2){let e=Z_();Ny("overallStars",e.report.profile.agentCode?e.report.profile.agentOverallStars:e.report.profile.agencyOverallStars);}}function so(t,a){if(t&1&&(Ts(0,"div",12),bM(1),YM(2,"transloco"),Vu()),t&2){let e=Z_();Aw(),Wu(" ",XM(2,1,"review.count",UM(4,oo,e.report.profile.totalReviewCount))," ");}}function mo(t,a){if(t&1&&(Ts(0,"a",14),bM(1),YM(2,"transloco"),Vu()),t&2){let e=Z_();Ny("href","mailto:"+e.report.profile.email,Pg),Aw(),Wu(" ",JM(2,2,"button.label.get-in-touch")," ");}}function lo(t,a){if(t&1&&(Ts(0,"a",15),bM(1),Vu()),t&2){let e=Z_();Ny("href","tel:"+e.report.profile.contactNumber,Pg),Aw(),Wu(" ",e.report.profile.contactNumber," ");}}function po(t,a){t&1&&Oy(0);}function co(t,a){t&1&&Oy(0);}function uo(t,a){if(t&1&&(Ts(0,"div",21),bM(1),Vu()),t&2){let e=Z_(2);Aw(),rv(e.report.profile.agencyName);}}function fo(t,a){if(t&1&&(bM(0),Ts(1,"div",20),bM(2),Vu(),S_(3,uo,2,1,"div",21)),t&2){let e=Z_();Wu(" ",e.report.customMessage?.trim()?.length?e.report.customMessage:e.report.profile.bio," "),Aw(2),iv(" ",e.report.profile.fullName," ",e.report.profile.agentTitle?"-":""," ",e.report.profile.agentTitle," "),Aw(),N_(e.report.profile.fullName!==e.report.profile.agencyName?3:-1);}}var Zn=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-market-report-header"]],inputs:{report:"report"},decls:27,vars:18,consts:[["messageContent",""],[1,"my-6","text-center","font-bold","md:my-12"],[1,"text-sm","uppercase","text-steel-70"],[1,"text-3xl","md:text-4xl"],[1,"uppercase"],[1,"mb-8","items-start","md:flex","md:gap-16"],["appearance","outlined",1,"mat-elevation-z4","flex","gap-4","p-4","md:flex-col","md:items-center","md:text-center"],[1,"h-20","w-20","shrink-0","md:h-40","md:w-40",3,"name","avatar","backgroundColour"],[1,"mt-2","md:mt-0"],[1,"text-lg","font-bold","md:text-2xl"],[1,"flex","items-center","justify-center","gap-2"],[3,"overallStars"],[1,"text-steel-70"],[3,"awards"],["mat-flat-button","","color","primary",1,"hidden","w-full","md:flex",3,"href"],["mat-button","","color","primary",1,"hidden","w-full","md:flex",3,"href"],[1,"mt-8","md:mt-4"],[1,"hidden","whitespace-pre-wrap","md:block"],[4,"ngTemplateOutlet"],[1,"text-center","md:hidden"],[1,"mt-4","font-bold"],[1,"font-bold"]],template:function(i,n){if(i&1&&(Ts(0,"h1",1)(1,"div",2),bM(2),YM(3,"transloco"),Vu(),Ts(4,"div",3),bM(5),Vu(),Ts(6,"div",4),bM(7),Vu()(),Ts(8,"div",5)(9,"mat-card",6),xy(10,"rma-profile-avatar",7),Ts(11,"div",8)(12,"div",9),bM(13),Vu(),Ts(14,"div",10),S_(15,ao,1,1,"rma-star-rating-summary",11),S_(16,so,3,6,"div",12),Vu(),xy(17,"rma-market-report-top-award",13),Vu(),S_(18,mo,3,4,"a",14),S_(19,lo,2,2,"a",15),Vu(),Ts(20,"div",16)(21,"div",17),dy(22,po,1,0,"ng-container",18),Vu(),Ts(23,"rma-see-more-text",19),dy(24,co,1,0,"ng-container",18),Vu(),dy(25,fo,4,5,"ng-template",null,0,nS),Vu()()),i&2){let l=rM(26);Aw(2),rv(JM(3,16,"marketReports.header")),Aw(3),rv(n.report.propertyDetails.streetAddress),Aw(2),iv("",n.report.propertyDetails.suburb," ",n.report.propertyDetails.state," ",n.report.propertyDetails.postcode),Aw(3),Ny("name",n.report.profile.fullName)("avatar",n.report.profile.avatarImage)("backgroundColour",n.report.profile.backgroundColour),Aw(3),rv(n.report.profile.fullName),Aw(2),N_(n.report.profile.agentCode&&(n.report.profile.agentOverallStars??false)||(n.report.profile.agencyOverallStars??false)?15:-1),Aw(),N_(n.report.profile.totalReviewCount?16:-1),Aw(),Ny("awards",n.report.agentAwards??n.report.agencyAwards),Aw(),N_(n.report.profile.email?18:-1),Aw(),N_(n.report.profile.contactNumber?19:-1),Aw(3),Ny("ngTemplateOutlet",l),Aw(2),Ny("ngTemplateOutlet",l);}},dependencies:[F,I,w$2,ee,Ve,Fn,Tn,si,te,Mt],styles:["[_ngcontent-%COMP%]:root{--header-height: 5rem}.mat-mdc-card[_ngcontent-%COMP%]{display:flex}@media(min-width:48em){.mat-mdc-card[_ngcontent-%COMP%]{min-width:22rem}}.hidden[_ngcontent-%COMP%]{display:none}@media(min-width:48em){.md\\:block[_ngcontent-%COMP%]{display:block}.md\\:hidden[_ngcontent-%COMP%]{display:none}}"]});}}return t})();var go=t=>({count:t});function ho(t,a){if(t&1&&(Ts(0,"p",4),bM(1),Vu()),t&2){let e=Z_();Aw(),rv(e.report.profile.agencyName);}}function _o(t,a){if(t&1&&xy(0,"rma-star-rating-summary",6),t&2){let e=Z_();Ny("overallStars",e.report.profile.agentCode?e.report.profile.agentOverallStars:e.report.profile.agencyOverallStars);}}function Co(t,a){if(t&1&&(Ts(0,"span"),bM(1),YM(2,"transloco"),Vu()),t&2){let e=Z_();Aw(),Wu(" ",XM(2,1,"review.count",UM(4,go,e.report.profile.reviewCount))," ");}}function vo(t,a){if(t&1&&(Ts(0,"p",5),xy(1,"rma-icon",12),bM(2),Vu()),t&2){let e=Z_(2);Aw(2),Wu(" ",e.report.profile.agencyAddress," ");}}function yo(t,a){if(t&1&&(Ts(0,"p",5),xy(1,"rma-icon",13),bM(2),Vu()),t&2){let e=Z_(2);Aw(2),Wu(" ",e.report.profile.email," ");}}function Mo(t,a){if(t&1&&(Ts(0,"p",5),xy(1,"rma-icon",14),bM(2),Vu()),t&2){let e=Z_(2);Aw(2),Wu(" ",e.report.profile.contactNumber," ");}}
202function xo(t,a){if(t&1&&(Ts(0,"div",9)(1,"p",11)(2,"strong"),bM(3,"Contact details"),Vu()(),S_(4,vo,3,1,"p",5),S_(5,yo,3,1,"p",5),S_(6,Mo,3,1,"p",5),Vu()),t&2){let e=Z_();Aw(4),N_(e.report.profile.agencyAddress?4:-1),Aw(),N_(e.report.profile.email?5:-1),Aw(),N_(e.report.profile.contactNumber?6:-1);}}function bo(t,a){if(t&1&&(Ts(0,"div",18),bM(1),Vu()),t&2){let e=Z_(4);Aw(),rv(e.report.profile.agencyName);}}function ko(t,a){if(t&1&&(Ts(0,"div",17),bM(1),Vu(),S_(2,bo,2,1,"div",18)),t&2){let e=Z_(3);Aw(),iv(" ",e.report.profile.fullName," ",e.report.profile.agentTitle?"-":""," ",e.report.profile.agentTitle," "),Aw(),N_(e.report.profile.fullName!==e.report.profile.agencyName?2:-1);}}function wo(t,a){if(t&1&&(Ts(0,"div",16),bM(1),S_(2,ko,3,4),Vu()),t&2){let e=a.$implicit,i=a.$index,n=Z_(2);Aw(),Wu(" ",e," "),Aw(),N_(i+1===n.messageParagraphs.length?2:-1);}}function To(t,a){if(t&1&&(Ts(0,"div",10)(1,"div",15),R_(2,wo,3,2,"div",16,A_),Vu()()),t&2){let e=Z_();Aw(2),O_(e.messageParagraphs);}}var Jn=(()=>{class t{ngOnInit(){let e=this.report.customMessage?.trim()?.length?this.report.customMessage:this.report.profile.bio;this.messageParagraphs=e?.match(/[^\r\n]+/g);}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-market-report-print-header"]],inputs:{report:"report"},decls:13,vars:14,consts:[[1,"my-4","flex","break-inside-avoid-page","items-center","rounded","bg-steel-5","p-4"],[1,"mr-4","h-20","w-20","shrink-0",3,"name","avatar","backgroundColour","lazyLoad"],[1,"mr-4","w-full","wrap-normal"],[1,"bold","leading-tight","mb-1","text-lg"],[1,"mb-1","text-steel-70"],[1,"mb-1","flex","items-center"],[1,"mr-2",3,"overallStars"],[1,"ml-2",3,"awards"],["alt","",1,"h-24","w-24",3,"src"],[1,"my-4","break-inside-avoid-page","rounded","bg-steel-5","p-4"],[1,"my-4","p-4"],[1,"mb-4"],["glyph","location_on",1,"mr-2","text-steel-70"],["glyph","email",1,"mr-2","text-steel-70"],["glyph","phone",1,"mr-2","text-steel-70"],[1,"whitespace-pre-wrap"],[1,"mb-4","break-inside-avoid","whitespace-pre-wrap"],[1,"mt-4","font-bold"],[1,"font-bold"]],template:function(i,n){i&1&&(Ts(0,"div",0),xy(1,"rma-profile-avatar",1),Ts(2,"div",2)(3,"p",3),bM(4),Vu(),S_(5,ho,2,1,"p",4),Ts(6,"div",5),S_(7,_o,1,1,"rma-star-rating-summary",6),S_(8,Co,3,6,"span"),xy(9,"rma-market-report-top-award",7),Vu()(),xy(10,"img",8),Vu(),S_(11,xo,7,3,"div",9),S_(12,To,4,0,"div",10)),i&2&&(Aw(),Ny("name",n.report.profile.fullName)("avatar",n.report.profile.avatarImage)("backgroundColour",n.report.profile.backgroundColour)("lazyLoad",false),Aw(3),iv(" ",n.report.profile.fullName," ",n.report.profile.agentTitle?"-":""," ",n.report.profile.agentTitle," "),Aw(),N_(n.report.profile.fullName!==n.report.profile.agencyName?5:-1),Aw(2),N_(n.report.profile.agentCode&&(n.report.profile.agentOverallStars??false)||(n.report.profile.agencyOverallStars??false)?7:-1),Aw(),N_(n.report.profile.reviewCount?8:-1),Aw(),Ny("awards",n.report.agentAwards??n.report.agencyAwards),Aw(),Ny("src",n.report.qrCodeDataUri,Pg),Aw(),N_(n.report.profile.email||n.report.profile.agencyAddress||n.report.profile.contactNumber?11:-1),Aw(),N_(n.messageParagraphs?12:-1));},dependencies:[w$2,ee,Ve,Rt,Mt],styles:["[_ngcontent-%COMP%]:root{--header-height: 5rem}.mat-mdc-card[_ngcontent-%COMP%]{display:flex}@media(min-width:48em){.mat-mdc-card[_ngcontent-%COMP%]{min-width:22rem}}.hidden[_ngcontent-%COMP%]{display:none}@media(min-width:48em){.md\\:block[_ngcontent-%COMP%]{display:block}.md\\:hidden[_ngcontent-%COMP%]{display:none}}"]});}}return t})();var Ro=["*"],So=t=>({mapType:t});function Po(t,a){if(t&1&&xy(0,"rma-static-google-map",4),t&2){let e=Z_();Qy("cursor-pointer",e.config?.clickToInteractive),Ny("markers",e.markers)("config",e.config)("staticMapUrl",e.staticMapUrl);}}var er=(()=>{class t{constructor(){this.config=Fe,this.options=s$1(r$1({},xe),{styles:void 0}),this.markers=[],this.mapType="Review";}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-static-google-map-with-description"]],inputs:{config:"config",options:"options",markers:"markers",staticMapUrl:"staticMapUrl",mapClickUrl:"mapClickUrl",mapType:"mapType"},ngContentSelectors:Ro,decls:5,vars:7,consts:[[1,"flex","flex-col-reverse","rounded-md","bg-blue-10","sm:flex-row","print:items-center","print:bg-transparent"],[1,"flex","grow","flex-col","items-center","justify-center","py-6"],["rel","nofollow",3,"routerLink","queryParams"],[3,"markers","config","cursor-pointer","staticMapUrl"],[3,"markers","config","staticMapUrl"]],template:function(i,n){i&1&&(K_(),Ts(0,"div",0)(1,"div",1),J_(2),Vu(),Ts(3,"a",2),S_(4,Po,1,5,"rma-static-google-map",3),Vu()()),i&2&&(zy("min-height",n.config?.height??400,"px"),Aw(3),Ny("routerLink",n.mapClickUrl)("queryParams",UM(5,So,n.mapType)),Aw(),N_(n.markers?4:-1));},dependencies:[aa$1,kt,st],encapsulation:2});}}return t})();var Io=t=>[t],Eo=()=>[];function Do(t,a){if(t&1&&(Ts(0,"rma-static-google-map-with-description",0)(1,"span",1),bM(2),YM(3,"transloco"),Vu(),Ts(4,"span",2),bM(5),Vu(),Ts(6,"span",2),bM(7),Vu(),Ts(8,"span",3),bM(9),Vu(),Ts(10,"span",4),xy(11,"rma-property-attribute",5),Vu()()),t&2){let e=Z_();Ny("markers",e.mapMarker?UM(14,Io,e.mapMarker):BM(16,Eo))("config",e.isPrintMode?e.printMapConfig:e.mapConfig)("staticMapUrl",e.printedUrl),Aw(2),rv(JM(3,12,"marketReports.property-details")),Aw(3),rv(e.propertyDetails.streetAddress),Aw(2),rv(e.propertyDetails.suburbLine),Aw(2),ov("",e.propertyDetails.streetAddress,", ",e.propertyDetails.suburbLine),Aw(2),Ny("bathrooms",e.propertyDetails.bathrooms)("bedrooms",e.propertyDetails.bedrooms)("carparks",e.propertyDetails.carparks)("propertyType",e.propertyDetails.propertyType);}}var tr=(()=>{class t{constructor(){this.isPrintMode=false,this.mapConfig=s$1(r$1({},Fe),{height:400,width:640,clickToInteractive:false}),this.printMapConfig=s$1(r$1({},this.mapConfig),{height:200,scale:2,lazy:false});}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-market-report-property"]],inputs:{propertyDetails:"propertyDetails",mapMarker:"mapMarker",isPrintMode:"isPrintMode",printedUrl:"printedUrl"},decls:1,vars:1,consts:[[3,"markers","config","staticMapUrl"],[1,"font-bond","w-4/5","pb-2","text-center","text-xl","text-steel-70","md:text-left"],[1,"font-bond","w-4/5","pb-2","text-center","text-4xl","md:text-left","print:hidden"],[1,"hidden","w-full","pb-2","text-4xl","font-bold","print:block"],[1,"w-4/5","text-center","sm:text-left"],[1,"text-steel-70",3,"bathrooms","bedrooms","carparks","propertyType"]],template:function(i,n){i&1&&S_(0,Do,12,17,"rma-static-google-map-with-description",0),i&2&&N_(n.propertyDetails?0:-1);},dependencies:[er,pe,Mt],styles:[`rma-market-report-property{display:block}@media print{rma-market-report-property rma-static-google-map-with-description div{min-height:unset!important}rma-market-report-property rma-static-google-map-with-description rma-static-google-map{display:none!important}} 203`],encapsulation:2});}}return t})();var Oo=t=>({rank:t});function Ao(t,a){if(t&1&&(Ts(0,"mat-card",0)(1,"div",1),bM(2),YM(3,"transloco"),Vu(),Ts(4,"div",2),bM(5),Vu(),Ts(6,"div",3),bM(7),YM(8,"lowercase"),YM(9,"transloco"),Vu(),Ts(10,"div",4),bM(11),Vu()()),t&2){let e=a.$implicit,i=Z_();Aw(),Ny("ngClass",i.getRankingColours(e)),Aw(),Wu(" ",XM(3,5,"marketReports.rankings.title",UM(12,Oo,e.rankPosition))," "),Aw(3),rv(e.rankValue),Aw(2),rv(JM(9,10,JM(8,8,"rankings.type."+e.rankingType))),Aw(4),rv(e.locationName);}}var ir=(()=>{class t{getRankingColours(e){switch(e.rankPosition){case 1:return "gold";case 2:return "bg-steel-20 text-steel-100";case 3:return "bronze";default:return "bg-steel-100 text-white"}}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-market-report-rankings"]],inputs:{rankings:"rankings"},decls:2,vars:0,consts:[["appearance","outlined",1,"mat-elevation-z4","break-inside-avoid","p-4","text-center","print:border-0","print:bg-steel-5"],[1,"font0-bold","-mx-4","-mt-4","uppercase",3,"ngClass"],[1,"my-5","text-4xl","text-steel-70"],[1,"font-bold"],[1,"text-steel-70"]],template:function(i,n){i&1&&R_(0,Ao,12,14,"mat-card",0,A_),i&2&&O_(n.rankings);},dependencies:[F,I,Jn$1,di,Mt],styles:["[_ngcontent-%COMP%]:root{--header-height: 5rem}[_nghost-%COMP%]{display:flex;overflow-y:auto;gap:1.5rem}@media print{[_nghost-%COMP%]{overflow:visible}}@media(min-width:64em){[_nghost-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr))}}.mat-mdc-card[_ngcontent-%COMP%]{overflow:hidden;flex-shrink:0;flex-basis:15rem}.mat-mdc-card[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{margin-top:-1rem}.gold[_ngcontent-%COMP%]{background-color:#f7cd84}.bronze[_ngcontent-%COMP%]{background-color:#e89074}@media print{[_nghost-%COMP%] mat-card[_ngcontent-%COMP%]{box-shadow:0 0 #0003,0 0 #00000024,0 0 #0000001f}[_nghost-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr))}}"]});}}return t})();var Fo=t=>({rankedOutOf:t});function Bo(t,a){if(t&1&&(Ts(0,"p",3),bM(1),YM(2,"transloco"),Vu()),t&2){let e=Z_();Aw(),rv(JM(2,1,e.accomplishment.titleTranslationKey));}}function Uo(t,a){if(t&1&&(Ts(0,"span"),bM(1),YM(2,"transloco"),Vu()),t&2){let e=Z_();Aw(),Wu("",JM(2,1,e.awardTypeTranslationKey)," ");}}function No(t,a){if(t&1&&(Ts(0,"span"),bM(1),YM(2,"transloco"),Vu()),t&2){let e=Z_();Aw(),rv(XM(2,1,e.rankingTranslationKey,UM(4,Fo,e.rankedOutOf)));}}function Lo(t,a){if(t&1&&(Ts(0,"p",3)(1,"span"),bM(2),Vu(),S_(3,Uo,3,3,"span"),S_(4,No,3,6,"span"),Vu()),t&2){let e=a;Aw(2),Wu("",e.numberOfYears,"x "),Aw(),N_(e.awardTypeTranslationKey?3:-1),Aw(),N_(e.rankingTranslationKey?4:-1);}}function $o(t,a){if(t&1&&(Ts(0,"p",3),bM(1),Vu()),t&2){let e=Z_();Aw(),rv(e.accomplishment.subtitle);}}function zo(t,a){if(t&1&&(Ts(0,"p",4),bM(1),YM(2,"transloco"),Vu()),t&2){let e=Z_();Aw(),Wu(" ",JM(2,1,e.accomplishment.descriptionTranslationKey)," ");}}function Ho(t,a){if(t&1&&(Ts(0,"p",4),bM(1),Vu()),t&2){let e=Z_();Aw(),Wu(" ",e.accomplishment.descriptionTranslationKey," ");}}var Wt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-profile-accomplishment-item"]],inputs:{accomplishment:"accomplishment"},decls:8,vars:8,consts:[[1,"mb-4","flex","h-16","md:mb-6"],[1,"mr-2","flex","h-16","w-16","items-center","justify-center","rounded-full","border-4","border-solid","bg-center","bg-no-repeat",3,"ngClass"],[1,"flex","flex-col","justify-center"],[1,"m-0","font-bold"],[1,"m-0","text-steel-60"]],template:function(i,n){if(i&1&&(Ts(0,"div",0),xy(1,"div",1),Ts(2,"div",2),S_(3,Bo,3,3,"p",3),S_(4,Lo,5,3,"p",3),S_(5,$o,2,1,"p",3),S_(6,zo,3,3,"p",4),S_(7,Ho,2,1,"p",4),Vu()()),i&2){let l;
203Aw(),zy("background-image","url("+n.accomplishment.badge.src+")"),Ny("ngClass","badge-"+n.accomplishment.badge.color),Aw(2),N_(n.accomplishment.titleTranslationKey?3:-1),Aw(),N_((l=n.accomplishment.customTitle)?4:-1,l),Aw(),N_(n.accomplishment.subtitle?5:-1),Aw(),N_(n.accomplishment.descriptionTranslationKey&&!n.accomplishment.customTitle?6:-1),Aw(),N_(n.accomplishment.descriptionTranslationKey&&n.accomplishment.customTitle?7:-1);}},dependencies:[Jn$1,Rt$1,Mt],styles:[".badge-light-blue[_ngcontent-%COMP%]{border-color:#0075e44d!important;background-size:2rem!important;background-color:#fff!important}.badge-light-purple[_ngcontent-%COMP%]{border-color:#f0e6f9!important;background-size:2rem!important;background-color:#fff!important}.badge-light-green[_ngcontent-%COMP%]{border-color:#abebe6!important;background-size:2rem!important;background-color:#fff!important}.badge-light-orange[_ngcontent-%COMP%]{border-color:#fbb11666!important;background-size:2rem!important;background-color:#fff!important}.badge-white[_ngcontent-%COMP%]{border-color:#fff!important;background-size:2rem!important;background-color:#fff!important;border:0;background-size:4rem!important}"]});}}return t})();var Zt=(()=>{class t{constructor(){this.rmaImagesUrl=v$1(Le$2),this.awardColors=new Map([["Country","light-green"],["State","light-purple"],["City","light-purple"],["Locality","light-orange"],["StateRegion","light-orange"]]);}map(e){let i=1,n=[];if(!e)return n;if(e.isHighlyRecommended&&n.push({order:i++,titleTranslationKey:"agent.badge.highly-recommended",descriptionTranslationKey:"agent.badge.highly-recommended.description",badge:{src:this.getAssetsUrl("recognition-top20"),color:"white"}}),e.isTrustedAgent&&n.push({order:i++,titleTranslationKey:"agent.badge.trusted-agent",descriptionTranslationKey:"agent.badge.trusted-agent.description",badge:{src:this.getAssetsUrl("recognition-trusted"),color:"white"}}),e.isPriceExpert&&n.push({order:i++,titleTranslationKey:"agent.badge.priceExpert",descriptionTranslationKey:"agent.badge.priceExpertDescription",badge:{src:this.getAssetsUrl("recognition-priceExpert"),color:"white"}}),e.repeatAwards&&e.repeatAwards.length>0){let l=e.repeatAwards.find(C=>C.awardType==="Country"&&C.winType==="Winner");if(l){let C=this.awardColors.get(l.awardType)??"light-orange";n.push({order:i++,customTitle:{numberOfYears:l.winningYears.length,awardTypeTranslationKey:"award-type.aoty"},subtitle:l.awardName,descriptionTranslationKey:`${l.winningYears.join(", ")}`,badge:{src:this.getAwardAssetUrl(l.awardType),color:C}});}e.repeatAwards.filter(C=>!(C.awardType==="Country"&&C.winType==="Winner")).forEach(C=>{let w=this.awardColors.get(C.awardType)??"light-orange",$=`award-type.${this.toKebabCase(C.awardType.toString())}`,ee=C.winType==="Winner"?"award-type.winner":"award-type.top-of";n.push({order:i++,customTitle:{numberOfYears:C.winningYears.length,awardTypeTranslationKey:$,rankingTranslationKey:ee,rankedOutOf:C.rankedOutOf},subtitle:C.awardName,descriptionTranslationKey:`${C.winningYears.join(", ")}`,badge:{src:this.getAwardAssetUrl(C.awardType),color:w}});});}return n}getAssetsUrl(e){return this.rmaImagesUrl(`recognition/${e}.svg`)}getAwardAssetUrl(e){let i=e.toString().toLowerCase();return this.rmaImagesUrl(`profile-badges/awards-${i}-trophy.svg`)}toKebabCase(e){if(!e)return "";let i=e.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g);return i?i.map(n=>n.toLowerCase()).join("-"):""}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var nr=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-market-report-award"]],inputs:{award:"award"},decls:9,vars:8,consts:[[1,"mx-2","flex","h-10","w-10","items-center","justify-center","rounded-full"],["glyph","rma-award"],[1,"mx-4"],[1,"w-18","pr-2","font-bold"],[1,"max-w-full","whitespace-nowrap","text-steel-70"]],template:function(i,n){i&1&&(Ts(0,"span",0),YM(1,"awardColour"),xy(2,"rma-icon",1),Vu(),Ts(3,"div",2)(4,"p",3),bM(5),YM(6,"awardRank"),Vu(),Ts(7,"p",4),bM(8),Vu()()),i&2&&(zy("background-color",JM(1,4,n.award.awardType)),Aw(5),rv(JM(6,6,n.award)),Aw(3),rv(n.award.awardName));},dependencies:[Rt,v,I$1],styles:["[_nghost-%COMP%]{display:flex;align-items:center}"]});}}return t})();function Vo(t,a){if(t&1&&xy(0,"img",5),t&2){let e=Z_(3);Ny("src",e.awardsLogoImage,Pg)("alt","Agent of the Year Awards "+e.awardYear);}}function jo(t,a){if(t&1&&xy(0,"rma-market-report-award",7),t&2){let e=a.$implicit;Ny("award",e);}}function Go(t,a){if(t&1&&(Ts(0,"div",1)(1,"div",4),S_(2,Vo,1,2,"img",5),Vu(),Ts(3,"div",6),R_(4,jo,1,1,"rma-market-report-award",7,A_),Vu()()),t&2){let e=Z_(2);Aw(2),N_(e.awardsLogoImage?2:-1),Aw(2),O_(e.awards);}}function Ko(t,a){if(t&1&&(Ts(0,"div",3),xy(1,"rma-profile-accomplishment-item",8),Vu()),t&2){let e=a.$implicit;Aw(),Ny("accomplishment",e);}}function Yo(t,a){if(t&1&&(Ts(0,"h2",0),bM(1),YM(2,"transloco"),Vu(),S_(3,Go,6,1,"div",1),Ts(4,"div",2),R_(5,Ko,2,1,"div",3,A_),Vu()),t&2){let e=Z_();Aw(),Wu(" ",JM(2,2,"marketReports.recognition.header")," "),Aw(2),N_(e.awards.length>0?3:-1),Aw(2),O_(e.accomplishments);}}var rr=(()=>{class t{constructor(){this.accomplishmentMapperService=v$1(Zt),this.awardsService=v$1(u$2);}ngOnChanges(){this.accomplishments=this.accomplishmentMapperService.map(this.badges),this.awardYear=this.awardsService.getAwardsName(),this.awardsLogoImage=this.awardsService.getAwardsLogo();}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-market-report-recognition"]],inputs:{badges:"badges",awards:"awards"},features:[lD],decls:1,vars:1,consts:[[1,"mat-headline-4","mb-8","text-center"],[1,"mb-8","rounded-b","shadow-lg","print:break-inside-avoid","print:bg-steel-5","print:shadow-none"],[1,"flex","flex-wrap","print:break-inside-avoid"],[1,"xxl:w-1/4","w-full","rounded","p-4","md:w-1/2","print:w-1/2","print:p-0"],[1,"banner","flex","justify-center","rounded","bg-blue-100","bg-cover"],[1,"h-16","py-2",3,"src","alt"],[1,"my-4","flex","flex-wrap","pb-8"],[1,"xxl:w-1/4","my-2","w-full","px-4","md:w-1/2","print:w-1/2",3,"award"],[1,"block","rounded","p-4","print:mb-4","print:bg-steel-5",3,"accomplishment"]],template:function(i,n){i&1&&S_(0,Yo,7,4),i&2&&N_(n.accomplishments.length>0||n.awards.length>0?0:-1);},dependencies:[nr,Wt,Mt],styles:["[_nghost-%COMP%]{display:block}"]});}}return t})();function qo(t,a){if(t&1&&xy(0,"rma-trixel",2),t&2){let e=Z_(2);Ny("trixelImgUrl",e.review.trixelImgUrl);}}function Xo(t,a){if(t&1&&xy(0,"rma-star-rating",10),t&2){let e=Z_(2);Ny("overallStars",e.review.starRating);}}function Qo(t,a){t&1&&Oy(0);}function Wo(t,a){t&1&&Oy(0);}function Zo(t,a){if(t&1&&(xy(0,"h3",15)(1,"p",16),Ts(2,"p",17),bM(3),YM(4,"lowercase"),YM(5,"timeAgo"),Vu()),t&2){let e=Z_(2);Ny("innerHTML",e.review.title,PT),Aw(),Ny("innerHTML",e.review.description,PT),Aw(2),ov("by ",JM(4,4,e.review.reviewerType)," ",JM(5,6,e.review.reviewedOn));}}function Jo(t,a){if(t&1&&(Ts(0,"section",1),S_(1,qo,1,1,"rma-trixel",2),Ts(2,"
203section",3)(3,"div",4)(4,"span",5),xy(5,"rma-carousel",6),Vu(),Ts(6,"div",7)(7,"p",8),bM(8),Vu(),xy(9,"rma-property-attribute",9),S_(10,Xo,1,1,"rma-star-rating",10),Ts(11,"div"),bM(12),YM(13,"transloco"),YM(14,"transloco"),YM(15,"lowercase"),Vu()()(),Ts(16,"div",11),dy(17,Qo,1,0,"ng-container",12),Vu(),Ts(18,"div",13)(19,"rma-see-more-text",14),dy(20,Wo,1,0,"ng-container",12),Vu()()(),dy(21,Zo,6,8,"ng-template",null,0,nS),Vu()),t&2){let e=rM(22),i=Z_();Aw(),N_(!i.isPrintMode&&!i.isReportOwner&&i.review.trixelImgUrl?1:-1),Aw(4),Ny("source",i.images),Aw(3),rv(i.review.fullAddress),Aw(),Ny("carparks",i.review.carparks)("bathrooms",i.review.bathrooms)("bedrooms",i.review.bedrooms)("propertyType",i.review.propertyType),Aw(),N_(i.review.starRating?10:-1),Aw(2),ov("",JM(13,12,i.reviewerTypeKey)," ",JM(15,16,JM(14,14,"review-status.recommended"))),Aw(5),Ny("ngTemplateOutlet",e),Aw(3),Ny("ngTemplateOutlet",e);}}var or=(()=>{class t{constructor(){this.isPrintMode=false,this.selected=false,this.reviewerTypeKey="",this.images=[];}ngOnChanges(e){let{review:i}=e;i&&this.review?.reviewerType&&(this.reviewerTypeKey=`reviewer-type.${this.review.reviewerType.toLocaleLowerCase().replace(" ","-")}`,this.images=this.review?this.getImages(this.review):[]);}getImages(e){let i=e.streetAddress;return e.propertyImages?[...e.propertyImages.filter(n=>n.imageType===S$1.Hero),...e.propertyImages.filter(n=>n.imageType!==S$1.Hero)].map(n=>({src:n.imageUrl,alt:i})):e.propertyCoverImage?[{src:e.propertyCoverImage,alt:i}]:[]}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-market-report-review-tile"]],hostVars:4,hostBindings:function(i,n){i&2&&Qy("bg-blue-10",n.selected)("rounded",n.selected);},inputs:{review:"review",isReportOwner:"isReportOwner",isPrintMode:"isPrintMode",selected:"selected"},features:[jM([Tt()]),lD],decls:1,vars:1,consts:[["reviewContent",""],[1,"w-full","shadow-md","md:shadow-none","print:h-fit","print:shadow-none"],[3,"trixelImgUrl"],[1,"w-full","break-inside-avoid","px-4"],[1,"mb-4","flex","w-full","print:table"],[1,"relative","mr-4","hidden","w-56","flex-initial","shrink-0","align-middle","md:block","print:mr-0","print:table-cell","print:pr-4"],[1,"aspect-[1.5]","max-w-full","rounded",3,"source"],[1,"inline-block","print:table-cell"],[1,"mb-2"],[1,"mb-2","text-steel-70",3,"carparks","bathrooms","bedrooms","propertyType"],[1,"mb-2",3,"overallStars"],[1,"hidden","md:block","print:block","print:pt-2"],[4,"ngTemplateOutlet"],[1,"see-more","md:hidden","print:hidden"],[1,"flex-auto"],[1,"mat-body-1","mb-2",3,"innerHTML"],[1,"mb-6",3,"innerHTML"],[1,"mat-caption","text-steel-70"]],template:function(i,n){i&1&&S_(0,Jo,23,18,"section",1),i&2&&N_(n.review?0:-1);},dependencies:[si,pe,bi,te,k,S,di,m,Mt],styles:["[_ngcontent-%COMP%]:root{--header-height: 5rem}[_nghost-%COMP%]{display:flex}[_nghost-%COMP%] .pill[_ngcontent-%COMP%]{background-color:#d8e7ff;border-radius:2rem;padding:.25rem .75rem}"]});}}return t})();function ea(t,a){if(t&1&&xy(0,"rma-static-google-map",0),t&2){let e=Z_();Ny("markers",e.markers)("config",e.staticMapConfig)("staticMapUrl",e.printedUrl);}}function ta(t,a){if(t&1){let e=H_();Ts(0,"rma-google-map",2),jy("markerSelected",function(n){zf(e);let l=Z_();return Qf(l.markerSelected.emit(n.id))}),Vu();}if(t&2){let e=Z_();Ny("padding",24)("markers",e.markers)("options",e.interactiveMapOptions);}}var ar=(()=>{class t{constructor(){this.isPrintMode=false,this.markers=[],this.markerSelected=new ct,this.staticMapConfig=s$1(r$1({},Fe),{height:200,width:640,scale:2,clickToInteractive:false,zoom:17,markerParameterStyle:ae,lazy:false,enableZoom:false}),this.interactiveMapOptions=s$1(r$1({},xe),{disableDefaultUI:true});}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-market-report-reviews-map"]],inputs:{isPrintMode:"isPrintMode",printedUrl:"printedUrl",markers:"markers"},outputs:{markerSelected:"markerSelected"},decls:2,vars:1,consts:[[3,"markers","config","staticMapUrl"],[3,"padding","markers","options"],[3,"markerSelected","padding","markers","options"]],template:function(i,n){i&1&&S_(0,ea,1,3,"rma-static-google-map",0)(1,ta,1,3,"rma-google-map",1),i&2&&N_(n.isPrintMode?0:1);},dependencies:[st,zi],styles:[`rma-market-report-reviews-map{display:block}rma-market-report-reviews-map rma-static-google-map img{min-width:100%} 204`],encapsulation:2});}}return t})();function ia(t,a){if(t&1){let e=H_();Ts(0,"rma-market-report-reviews-map",7),jy("markerSelected",function(n){zf(e);let l=Z_(2);return Qf(l.onMarkerSelected(n))}),Vu();}if(t&2){let e=Z_(),i=Z_();Qy("h-80",!i.isPrintMode),Ny("isPrintMode",i.isPrintMode)("printedUrl",i.printedUrl)("markers",e);}}function na(t,a){if(t&1&&S_(0,ia,1,5,"rma-market-report-reviews-map",6),t&2){let e=Z_();N_(e.isPrintMode&&e.printedUrl||a.length?0:-1);}}function ra(t,a){if(t&1&&xy(0,"rma-market-report-review-tile",5),t&2){let e=a.$implicit,i=Z_();Ny("id",e.reviewId)("review",e)("isReportOwner",i.isReportOwner)("selected",e.reviewId.toString()===i.selectedItemId)("isPrintMode",i.isPrintMode);}}var sr=(()=>{class t{constructor(){this.isPrintMode=false,this.mapMarkerService=v$1(u),this.coordsToMapMarkerPipe=v$1(O),this.document=v$1(Nt),this.markerType="Review",this.markersSource=new mr$1([]),this.markers$=this.markersSource.asObservable();}ngOnChanges(e){let{reviews:i}=e;if(i&&this.reviews){let n=this.mapToRmaMapMarkers(this.reviews,this.isPrintMode??false);
204if(n.length){if(this.primaryMapMarker){let w=s$1(r$1({},this.primaryMapMarker),{content:this.mapMarkerService.getContent(ae)});n.unshift(w),n.unshift(this.primaryMapMarker);}let l=n.map(w=>s$1(r$1({},w),{latlon:JSON.stringify(w.detail.coords)})),C=nn(l,"latlon");this.markersSource.next(C);}}}onMarkerSelected(e){let i=Array.isArray(e)?e[0]:e;this.setSelectedItemId(i),this.markersSource.next(this.setSelectedMarker(this.markersSource.value,i));}setSelectedItemId(e){this.selectedItemId=this.selectedItemId!==e?e:void 0,this.selectedItemId&&(this.selectedElement=this.document.getElementById(e),this.selectedElement&&this.selectedElement.scrollIntoView({behavior:"smooth"}));}mapToRmaMapMarkers(e,i){return e.filter(n=>(n.latitude??0)!==0&&(n.longitude??0)!==0).map((n,l)=>this.mapToRmaMapMarker(n,i,l+1))}mapToRmaMapMarker(e,i,n){if(i)return this.coordsToMapMarkerPipe.transform({lat:e.latitude??0,lon:e.longitude??0},{status:"standard",mapType:this.markerType});let l={id:e.reviewId.toString(),combinedHash:e.reviewId,title:e.fullAddress,codes:[e.reviewId.toString()],coords:{lat:e.latitude??0,lon:e.longitude??0},markerCount:1,status:"standard",hovered:false,verticalType:o$2,info:[],markerType:this.markerType},{content:C,zIndex:w,gmpClickable:$}=this.mapMarkerService.transform(a({markerType:l.markerType}),l.status,n);return {detail:l,position:{lat:l.coords.lat,lng:l.coords.lon},title:l.title,content:C,zIndex:w,options:{gmpClickable:$}}}setSelectedMarker(e,i){return e.map((n,l)=>{if(n.detail.status==="active"){let{content:C}=this.getDefaultMarker(n.zIndex??l,"viewed");return s$1(r$1({},n),{content:C,detail:s$1(r$1({},n.detail),{status:"viewed"}),options:s$1(r$1({},n.options),{gmpClickable:true})})}return n.detail.id===i?s$1(r$1({},n),{content:this.mapMarkerService.transform(a({markerType:this.markerType}),"active",n.zIndex??l).content,options:s$1(r$1({},n.options),{gmpClickable:false}),detail:s$1(r$1({},n.detail),{status:"active"})}):n})}getDefaultMarker(e,i="standard"){return s$1(r$1({},this.mapMarkerService.transform(a({markerType:this.markerType}),i,e)),{gmpClickable:true})}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-market-report-reviews"]],inputs:{primaryMapMarker:"primaryMapMarker",reviews:"reviews",isReportOwner:"isReportOwner",isPrintMode:"isPrintMode",printedUrl:"printedUrl"},features:[jM([O,u]),lD],decls:12,vars:10,consts:[[1,"break-inside-avoid"],["rmaBackToMap","",1,"mat-headline-4","mb-8","text-center",3,"selectedItemId"],["alt","RateMyAgent","width","145",1,"inline",3,"src"],[1,"my-6","text-steel-20","print:hidden"],[1,"reviews-section"],[1,"break-inside-avoid",3,"id","review","isReportOwner","selected","isPrintMode"],[1,"my-8","w-full",3,"h-80","isPrintMode","printedUrl","markers"],[1,"my-8","w-full",3,"markerSelected","isPrintMode","printedUrl","markers"]],template:function(i,n){if(i&1&&(Ts(0,"div",0)(1,"h2",1),bM(2),YM(3,"transloco"),xy(4,"img",2),YM(5,"staticImageUrl"),Vu(),S_(6,na,1,1),YM(7,"async"),Vu(),xy(8,"hr",3),Ts(9,"section",4),R_(10,ra,1,5,"rma-market-report-review-tile",5,A_),Vu()),i&2){let l;Aw(),Ny("selectedItemId",n.selectedItemId==null?null:n.selectedItemId.toString()),Aw(),Wu(" ",JM(3,4,"marketReports.reviews-verified-by")," "),Aw(2),Ny("src",JM(5,6,"/logos/logo-dark.svg"),Pg),Aw(2),N_((l=JM(7,8,n.markers$))?6:-1,l),Aw(4),O_(n.reviews);}},dependencies:[He,or,ar,Rt$1,ci,w$1,Mt],styles:["[_ngcontent-%COMP%]:root{--header-height: 5rem}[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .reviews-section[_ngcontent-%COMP%]{overflow-y:auto;max-width:100vw;display:flex;flex-direction:row;flex-wrap:nowrap}[_nghost-%COMP%] .reviews-section[_ngcontent-%COMP%] rma-market-report-review-tile[_ngcontent-%COMP%]{min-width:85%;margin:.5rem}@media(min-width:48em){[_nghost-%COMP%] .reviews-section[_ngcontent-%COMP%]{overflow-y:none;flex-direction:column;flex-wrap:wrap}[_nghost-%COMP%] .reviews-section[_ngcontent-%COMP%] rma-market-report-review-tile[_ngcontent-%COMP%]{min-width:auto;margin:0;margin-bottom:2rem}}@media print{[_nghost-%COMP%] .reviews-section[_ngcontent-%COMP%]{display:block;overflow:visible}[_nghost-%COMP%] .reviews-section[_ngcontent-%COMP%] rma-market-report-review-tile[_ngcontent-%COMP%]{width:100%;margin-bottom:2rem}}"]});}}return t})();var oa=t=>({name:t});function aa(t,a){if(t&1&&(Ts(0,"div",3)(1,"div",4),xy(2,"rma-icon",5),Ts(3,"span",6),bM(4),Vu()(),Ts(5,"div",7),bM(6),YM(7,"transloco"),Vu()()),t&2){let e=a.$implicit,i=Z_();Aw(2),Ny("glyph",i.icons[e.name]),Aw(2),rv(e.value),Aw(2),rv(JM(7,3,"marketReports.statistics.type."+e.n
204ame));}}var mr=(()=>{class t{constructor(){this.icons={[Q.activeListings]:"rma-for-sale",[Q.soldListings]:"rma-sale",[Q.leasedListings]:"rma-sale",[Q.averageSalePrice]:"local_atm",[Q.totalSalePrice]:"trending_up",[Q.totalRecommendations]:"thumb_up",[Q.averageStarRating]:"star"};}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=mb({type:t,selectors:[["rma-market-report-statistics"]],inputs:{name:"name",statistics:"statistics"},decls:9,vars:9,consts:[[1,"text-center","text-3xl","font-bold","md:text-2xl"],[1,"mb-6","text-center"],["appearance","outlined",1,"mat-elevation-z4","grid","grid-cols-2","gap-6","text-center","md:grid-cols-4","print:border-0","print:bg-steel-5","print:p-4"],[1,"md:py-6"],[1,"flex","items-center","justify-center","gap-2"],[3,"glyph"],[1,"text-xl","font-bold","md:text-4xl","print:text-2xl"],[1,"font-bold","print:font-normal"]],template:function(i,n){i&1&&(Ts(0,"h2",0),bM(1),YM(2,"transloco"),Vu(),Ts(3,"h3",1),bM(4),YM(5,"transloco"),Vu(),Ts(6,"mat-card",2),R_(7,aa,8,5,"div",3,A_),Vu()),i&2&&(Aw(),Wu(" ",XM(2,2,"marketReports.statistics.title",UM(7,oa,n.name)),` 205`),Aw(3),rv(JM(5,5,"marketReports.statistics.subtitle")),Aw(3),O_(n.statistics));},dependencies:[F,I,Rt,Mt],styles:["[_ngcontent-%COMP%]:root{--header-height: 5rem}[_nghost-%COMP%]{display:block}[_nghost-%COMP%] mat-card[_ngcontent-%COMP%]{display:grid}.rma-icon[_ngcontent-%COMP%]{width:2rem;height:2rem;font-size:2rem;line-height:2rem}@media print{[_nghost-%COMP%] mat-card[_ngcontent-%COMP%]{box-shadow:0 0 #0003,0 0 #00000024,0 0 #0000001f}}"]});}}return t})();var sa=t=>({"bg-steel-100":t}),ma=()=>[];function la(t,a){if(t&1&&(Ts(0,"div",15),xy(1,"img",16),Vu()),t&2){let e=Z_(2);hM(UM(6,sa,!e.profile.backgroundColour)),zy("background-color",e.profile.backgroundColour),Aw(),Ny("src",e.profile.bannerImage,Pg)("alt",e.profile.agencyName);}}function pa(t,a){if(t&1&&xy(0,"rma-trixel",2),t&2){let e=Z_(2),i=Z_();Ny("trixelImgUrl",e.trixelImgUrl)("trixelSourceCategory",i.trixelCategory);}}function ca(t,a){if(t&1&&xy(0,"rma-market-report-statistics",8),t&2){let e=Z_(2);Ny("statistics",e.statistics)("name",e.profile.fullName);}}function da(t,a){if(t&1&&xy(0,"rma-market-report-rankings",9),t&2){let e=Z_(2);Ny("rankings",e.rankings);}}function ua(t,a){if(t&1&&xy(0,"rma-market-report-statistics",8),t&2){let e=Z_(2);Ny("statistics",e.agencyStatistics)("name",e.profile.agencyName??e.profile.fullName);}}function fa(t,a){if(t&1&&xy(0,"rma-market-report-rankings",9),t&2){let e=Z_(2);Ny("rankings",e.agencyRankings);}}function ga(t,a){if(t&1&&xy(0,"rma-market-report-recognition",10),t&2){let e=Z_(2);Ny("awards",e.agentAwards??e.agencyAwards??BM(2,ma))("badges",e.agentBadges);}}function ha(t,a){if(t&1&&(xy(0,"rma-market-report-comparable-properties",11),YM(1,"async"),YM(2,"async")),t&2){let e=Z_(2),i=Z_();Ny("comparableCampaigns",e.comparableCampaigns)("primaryMapMarker",JM(1,4,i.primaryMapMarker$))("isPrintMode",JM(2,6,i.isPrintMode$))("printedUrl",e.printedComparablePropertiesMapUrl);}}function _a(t,a){if(t&1&&(xy(0,"rma-market-report-reviews",12),YM(1,"async"),YM(2,"async")),t&2){let e=Z_().rmaLet,i=Z_(),n=Z_();Ny("reviews",i.reviews)("isReportOwner",e)("primaryMapMarker",JM(1,5,n.primaryMapMarker$))("isPrintMode",JM(2,7,n.isPrintMode$))("printedUrl",i.printedReviewsMapsUrl);}}function Ca(t,a){t&1&&(Ts(0,"nav",14)(1,"a",17)(2,"span"),bM(3),YM(4,"transloco"),Vu()()()),t&2&&(Aw(3),rv(JM(4,1,"button.label.upgrade")));}function va(t,a){if(t&1&&xy(0,"rma-market-report-publish",4),t&2){let e=Z_(3);Ny("report",e);}}function ya(t,a){if(t&1&&S_(0,va,1,1,"rma-market-report-publish",4),t&2){let e=Z_().rmaLet;N_(e?0:-1);}}function Ma(t,a){if(t&1&&($u(0),S_(1,la,2,8,"div",1),S_(2,pa,1,2,"rma-trixel",2),YM(3,"async"),Ts(4,"div",3),xy(5,"rma-market-report-header",4)(6,"rma-market-report-property",5),YM(7,"async"),YM(8,"async"),xy(9,"rma-market-report-print-header",6),Ts(10,"section",7),S_(11,ca,1,2,"rma-market-report-statistics",8),S_(12,da,1,1,"rma-market-report-rankings",9),S_(13,ua,1,2,"rma-market-report-statistics",8),S_(14,fa,1,1,"rma-market-report-rankings",9),S_(15,ga,1,3,"rma-market-report-recognition",10),Vu(),S_(16,ha,3,8,"rma-market-report-comparable-properties",11),S_(17,_a,3,9,"rma-market-report-reviews",12),Vu(),xy(18,"rma-market-report-footer",13),S_(19,Ca,5,3,"nav",14),YM(20,"async"),ju(21,ya,1,1),qu()),t&2){let e=a.rmaLet,i=Z_(),n=Z_();Aw(),N_(i.profile.bannerImage?1:-1),Aw(),N_(JM(3,20,n.isPrintMode$)===false&&!e&&i.trixelImgUrl?2:-1),Aw(3),Ny("report",i),Aw(),Ny("isPrintMode",JM(7,22,n.isPrintMode$))("propertyDetails",i.propertyDetails)("mapMarker",JM(8,24,n.primaryMapMarker$))("printedUrl",i.printedPropertyMapUrl),Aw(3),Ny("report",i),Aw(2),N_(i.statistics.length&&i.propertyDetails.includeAgentStatistics?11:-1),Aw(),N_(i.rankings.length?12:-1),Aw(),N_(i.agencyStatistics.length&&i.propertyDetails.includeAgencyStatistics?13:-1),Aw(),N_(i.agencyRankings.length?14:-1),Aw(),N_(i.agentBadges||i.agentAwards||i.agencyAwards?15:-1),Aw(),N_(i.comparableCampaigns.length?16:-1),Aw(),N_(i.reviews.length?17:-1),Aw(),Qy("pb-16",e),Ny("profile",i.profile)("awards",i.agentAwards??i.agencyAwards),Aw(),N_(e&&JM(20,26,n.isAuthorised$)===false?19:21);}}function xa(t,a){if(t&1&&dy(0,Ma,22,28,"ng-container",0),t&2){let e=Z_();Ny("rmaLet",e.isReportOwner$);}}var Bt=class Jt{constructor(){this.route=v$1(G),this.googleMapsService=v$1(Le$1),this.mapMarkerPipe=v$1(u),this.coordsToMapMarkerPipe=v$1(O),this.currentUserService=v$1(Wo$1),this.platformService=v$1(j),this.environment=v$1(o$1),this.host=v$1(lo$1),this.subscriptionFeatureService=v$1(re),this.report$=this.route.data.pipe(Se(a=>a.report)),this.isPrintMode$=this.route.queryParams.pipe(Se(({print:a})=>!!a),f()),this.primaryMapMarker$=this.report$.pipe(lf(this.isPrintMode$),Se(([a,e])=>this.mapProfileToRmaMapMarker(a.propertyDetails,e,a.listingReportCode)),f()),this.trixelCategory=w.MarketReport;}ngOnInit(){this.isReportOwner$=kE([this.report$,this.currentUserService.currentUser$]).pipe(Se(([a,e])=>this.getIsReportOwner(a.profile,e))),this.isAuthorised$=this.subscriptionFeatureService.currentAccess$.pipe(Se(a=>a?.hasListingReport===true)),this.platformService.isPlatformBrowser&&this.isPrintMode$.pipe(H(this)).subscribe(()=>this.host.nativeElement.style.setProperty("--page-size",this.environment.countryCode==="US"?"letter":"A4"));}loadGoogleMapsScript(){return this.googleMapsService.appendScript()}getIsReportOwner(a,e){return e?a.agentCode?a.agentCode===e.agent?.agentCode:e.agencies?e.agencies?.some(i=>i.agencyCode===a.agencyCode):false:false}mapProfileToRmaMapMarker(a$1,e,i){if(e)return this.coordsToMapMarkerPipe.transform({lat:a$1.latitude??0,lon:a$1.longitude??0}
205,{status:"active",mapType:"CompletedListing"});let n={id:i,combinedHash:0,title:a$1.streetAddress,codes:[i],coords:{lat:a$1.latitude??0,lon:a$1.longitude??0},markerCount:1,status:"standard",hovered:false,verticalType:o$2,info:[],markerType:"CompletedListing"},{content:l,zIndex:C,gmpClickable:w}=this.mapMarkerPipe.transform(a({markerType:"CompletedListing"}),"primary",0);return {detail:n,position:{lat:n.coords.lat,lng:n.coords.lon},content:l,zIndex:C,title:a$1.streetAddress,options:{gmpClickable:w}}}static{this.\u0275fac=function(e){return new(e||Jt)};}static{this.\u0275cmp=mb({type:Jt,selectors:[["rma-market-report"]],features:[jM([O,u,Dt$1("marketReports")])],decls:2,vars:3,consts:[[4,"rmaLet"],[1,"flex","h-14","w-full","items-center","justify-center",3,"backgroundColor","class"],[3,"trixelImgUrl","trixelSourceCategory"],[1,"mr-container","mx-4","flex","max-w-7xl","flex-col","gap-8","md:mx-auto","print:block"],[1,"print:hidden",3,"report"],[3,"isPrintMode","propertyDetails","mapMarker","printedUrl"],[1,"hidden","print:block",3,"report"],[1,"mr-container","flex","break-before-page","flex-col","gap-8","print:block"],[1,"break-inside-avoid","print:mb-8",3,"statistics","name"],[1,"break-inside-avoid","print:mb-8",3,"rankings"],[1,"break-inside-avoid","print:mb-8",3,"awards","badges"],[1,"break-before-page","print:mt-8",3,"comparableCampaigns","primaryMapMarker","isPrintMode","printedUrl"],[1,"break-before-page","print:mt-8",3,"reviews","isReportOwner","primaryMapMarker","isPrintMode","printedUrl"],[1,"mt-8","bg-steel-10","print:hidden",3,"profile","awards"],[1,"border-t-gray-300","fixed","bottom-0","left-0","grid","w-full","grid-cols-12","items-center","gap-4","bg-white","p-4"],[1,"flex","h-14","w-full","items-center","justify-center"],["rmaBrokenImage","",1,"max-h-14",3,"src","alt"],["href","/dashboard/billing/free-trial?tier=Professional&subscribeIntention=MarketReport","mat-flat-button","","color","accent","data-id","start-trial",1,"col-span-12","mb-4","md:col-span-4","md:mb-0","md:ml-4","lg:col-span-3"]],template:function(e,i){if(e&1&&(S_(0,xa,1,1,"ng-container"),YM(1,"async")),e&2){let n;N_((n=JM(1,1,i.report$))?0:-1,n);}},dependencies:[u$1,A,Xn,Qn,Zn,Jn,tr,At,ir,rr,sr,mr,Fn,Tn,S,ci,Mt],styles:["[_nghost-%COMP%]{min-height:100dvh;display:flex;flex-direction:column}@page{size:var(--page-size) portrait;margin:15mm}@media print{[_nghost-%COMP%]{display:block;width:215.9mm;height:279.4mm}}"]});}};Bt=hx([G$1()],Bt);var lr=[{path:"",component:Bt,resolve:{report:Ln}}];var Md=lr;export{Md as default};//# sourceMappingURL=chunk-BxCfqsYH.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.