PageSourceSearch

https://www.trademe.co.nz/a/static/agents.module-NyLVvR_c.js

js trademe.co.nz collected 2026-10-01 09:06:49 UTC 83,281 bytes, 11 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7755ddb3-4d19-5142-87c4-9265e2d95c16")}catch(e){}}();
3import {s as sn,R as Rn$1,H as Hi,y as yn,N as Nn$2}from'./chunk-C_Nelbsd.js';import'./chunk-Bl9ovbUM.js';import {g as ge}from'./chunk-BQzbs4s0.js';import {a0 as Bv,a1 as Oc,by as Yn$1,a2 as ti,bN as Rb,ld as tv,dy as O_,ks as Xi,d_ as U_,a3 as eu,a4 as qc,c as ze,as as mc,lB as Gb,eu as yr$1,bG as Yc,ac as $c,bz as Rr$1,I as Ie,iM as Zn$1,dD as iv,bF as Ec,bM as X_,z as z_,l as lM,d as uM,a5 as Lo$1,aJ as G,a6 as Re,aI as h,jo as G$1,bx as R$1,lC as zb,lD as Af,bW as rn,ad as Un$1,n as Bs,s as gy,p as cN,ae as NN,q as _d,o as _y,D as aC,M as Zy,af as AN,pn as pe,aV as On$1,d2 as Fb,d3 as Ab,cJ as Fg,cK as lr$1,cL as R_,iW as B_,hL as Hg,hM as $_,b1 as Qv,b3 as FM,G as my,fJ as SN,gD as zs,e as I,ab as p,a7 as E,bf as F,ch as NI,bl as kr$1,cf as Ga$1,cg as Ba$1,ah as be,Z as Zt$1,N as NM,ag as q,ce as o$1,aQ as Nt$1,bk as Bf,c4 as jf,ak as Vf,bm as ui,aj as nn,c6 as pe$1,bh as G$2,a8 as ce,eC as ST,cp as Wt$1,en as Um,eo as qm,ep as ss,R as Ri,E as Eo,ev as Ss,ew as xb,bU as Ln,ec as Nn$1,cE as Q_,eD as d$1,aw as li$1,dE as ov,l$ as Uf,m0 as Kb,m1 as $f,m2 as Jb,O as Od,dv as xy,dw as kM,dx as LM,iN as dn,eY as Iv,V as Vc,gM as rt$1,pm as fs,b0 as xd,b2 as ma$1,cy as wN,bE as pb,i as z,y,cN as Bt,cO as rn$1,jC as f$1,pl as Le,T as TM,an as tE,A as i_,ap as eE,H as a_,pI as ye,ph as vt,gE as xf,d7 as ub,ba as mN,b4 as CN,c8 as LN,kQ as Dr$1,aG as E$2,cP as Qn$1,bc as Ky,cA as mt$1,iQ as Ff,c3 as jy,P as Ig,cj as t,dY as u,pJ as c,jf as m,gB as K_,gP as xt,pK as $t,d5 as Gt,d6 as kt,ck as o$2,cl as Q,cm as Et,dl as Ve$1,aq as k,F as Fp,ao as fN,t as jp,bC as a$2,db as Ht,a9 as Vv,dc as b,pL as vs,cd as Cd,C as pM,dn as fM,J as hM,bq as dM}from'./main-BUIS7oZx.js';import {V as Ve,U as Ut$1,$ as $e,E as E$1,d as de,a as Ee}from'./chunk-DBQCgFmd.js';import {b as bt,m as mt}from'./chunk-CXJofu-G.js';import'./chunk-yZaXpHLi.js';import {x as x1,s as s1}from'./chunk-g76ewEw3.js';import'./chunk-Mfouf8iO.js';import {T as Tt,e as et$1,g as gt,f,U}from'./chunk-BeXVFSXu.js';import'./chunk-Buf8b3iw.js';import {o as o$3}from'./chunk-O9IORHlX.js';import'./chunk-CS9-BIza.js';import {PropertySearchCardComponent as tt}from'./search-card.component-BYY5s9_U.js';import'./chunk-DkFmrlJj.js';import'./chunk-Cf1lr20K.js';import'./chunk-C18PlPQd.js';import'./chunk-SSr0DL-s.js';import'./chunk-CxM66EUF.js';import'./chunk-hIlN2yWw.js';import'./chunk-C3_8CVuB.js';import'./chunk-JnARZitB.js';import'./chunk-06Ph2MGd.js';import'./chunk-CVLRqv1s.js';import {R,N}from'./chunk-q0J7ZuwM.js';import {a,o}from'./chunk-DV21NdVW.js';import {B}from'./chunk-DjHdWoc0.js';import'./chunk-BVWyTSnh.js';import {a as a$1,d}from'./chunk-BPqqJG4a.js';import'./chunk-VxNvkdDP.js';import'./chunk-C49UCyLd.js';import'./chunk-COe3A54M.js';import'./chunk-DcQB5gsr.js';import'./chunk-yA24kvZF.js';import'./toggle-watchlist-button.component-baNRg3ad.js';import'./chunk-BhLb2ICz.js';import'./chunk-DBWN8QE1.js';import'./chunk-fQA4wCFY.js';import'./chunk-xkKSAonf.js';import {N as Nt,g as gt$1}from'./chunk-ht545Egd.js';import'./chunk-CIuHkXCF.js';import'./chunk-DxS2mc0e.js';import'./chunk-Bf5REvV-.js';import {l}from'./chunk-BV_-mNOs.js';import'./chunk-BGdC6nvN.js';import'./chunk-CQt_xlFv.js';import'./chunk-CQO7DX0g.js';import'./chunk-Bd3dz38N.js';import'./chunk-D-lnnDRR.js';import'./chunk-BjctBGip.js';import'./chunk-DeZWLrVZ.js';import'./chunk-BrH5nTg6.js';import'./chunk-Cfhwhg0K.js';import'./chunk-BC_3mrgX.js';var On=(()=>{let e=class e{constructor(i){this._store=i;}getAgentSearch(){return this._store.select(E$1.currentOptions).pipe(f$1(i=>this._store.dispatch(new de(i)),this._store.select(E$1.currentAgentSearch)))}};e.\u0275fac=function(n){return new(n||e)(pe$1(k))},e.\u0275prov=G$2({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Fn=(()=>{let e=class e{static get options(){return [this.default,this.soldDesc,this.firstNameAsc,this.firstNameDesc,this.lastNameAsc,this.lastNameDesc]}static fromValue(i){switch(+i){case Le.defaultAgentDirectorySortOrder:return this.default;case Le.soldDesc:return this.soldDesc;case Le.firstNameAsc:return this.firstNameAsc;case Le.firstNameDesc:return this.firstNameDesc;case Le.lastNameAsc:return this.lastNameAsc;case Le.lastNameDesc:return this.lastNameDesc;default:return null}}};e.default={display:"Featured",value:Le.defaultAgentDirectorySortOrder,apiValue:"Default"},e.soldDesc={display:"Sold listings",value:Le.soldDesc,apiValue:"SoldDesc"},e.firstNameAsc={display:"First name A to Z",value:Le.firstNameAsc,apiValue:"FirstNameAsc"},e.firstNameDesc={display:"First name Z to A",value:Le.firstNameDesc,apiValue:"FirstNameDesc"},e.lastNameAsc={display:"Last name A to Z",value:Le.lastNameAsc,apiValue:"LastNameAsc"},e.lastNameDesc={display:"Last name Z to A",value:Le.lastNameDesc,apiValue:"LastNameDesc"};let t=e;return t})();var Sr="region",Dn=(()=>{let e=class e{getDescription(i,n,o){let p="",w=new U(i,m.suburb);if(o.locations){let I=o.locations.map(ti=>w.searchChildren.find(st=>st.equals(ti))),te="";I&&I.length>0&&(te=this.getFullLocationName(I[0].location,w)),p=te!==""?`in ${te}`:"";}let S=e.getKeyword(o);return S!==""?`${n} Agents found ${p} with the name ${S}`:`${n} Agents found ${p}`.trim()}static getKeyword(i){return i.keywords?i.keywords:""}
3getFullLocationName(i,n){if(!i)return "";if(i.paramName===Sr)return i.name;let o=this.getParent(i,n);return `${i.name}, ${this.getFullLocationName(o,n)}`}getParent(i,n){return n.searchChildren.find(p=>p.location.id===i.parentId&&p.location.type===i.type-1).location}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=G$2({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function br(t,e){if(t&1&&(Bs(0,"option",6),cN(1),_d()),t&2){let r=e.$implicit;my("value",mN(r.value)),aC(),Od(" ",r.display," ");}}function Tr(t,e){if(t&1){let r=TM();xd(0),Bs(1,"p",1),cN(2),_d(),Bs(3,"tg-select-container",2)(4,"select",3),tE("ngModelChange",function(n){Fp(r);let o=NM();return fN(o.currentSortOrder,n)||(o.currentSortOrder=n),jp(n)}),_y("change",function(){Fp(r);let n=NM();return jp(n.onCurrentSortOrderChange())}),Qv(5,br,2,3,"option",4),_d(),i_(),_d(),Bs(6,"p",5),cN(7," Results based on information provided by agents for properties sold in last 12 months. "),_d(),ma$1();}if(t&2){let r=e.ngIf,i=NM();aC(2),Od("",r,", sorted by"),aC(2),eE("ngModel",i.currentSortOrder),a_(),aC(),my("ngForOf",i.dropDownOptions);}}var Ir=Fn.options,Nn=(()=>{let e=class e{constructor(i,n,o,p){this._searchResultsDescriptionService=i,this._locationFacade=n,this._router=o,this._route=p;}ngOnChanges(i){this.setDescriptionObservable();}onCurrentSortOrderChange(){let i=y({},this._route.snapshot.queryParams);i.sort_order=this.currentSortOrder,this._router.navigate(["./"],{queryParams:i,relativeTo:this._route});}setDescriptionObservable(){this.searchResults&&this.searchCriteria&&(this.resultDetailsHeader$=this._locationFacade.getVerticalLocations().pipe(Nt$1(i=>!i.isLoading&&!!i.item),nn(1),be(i=>this._searchResultsDescriptionService.getDescription(i.item,this.searchResults.totalCount,this.searchCriteria))));}ngOnInit(){this.dropDownOptions=Ir,this.currentSortOrder=this._route.snapshot.queryParams.sort_order||Le.defaultAgentDirectorySortOrder;}};e.\u0275fac=function(n){return new(n||e)(Lo$1(Dn),Lo$1(G$1),Lo$1(ce),Lo$1(Re))},e.\u0275cmp=z_({type:e,selectors:[["tm-agent-directory-search-result-details"]],inputs:{searchResults:"searchResults",searchCriteria:"searchCriteria"},standalone:false,features:[ST],decls:2,vars:3,consts:[[4,"ngIf"],[1,"pt-search-result-details__main-text"],["inline","","label","agent directory s
3ort order","showLabel","false",1,"pt-search-result-details__sort-order"],["tgSelect","","name","currentSortOrder",3,"ngModelChange","change","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"pt-search-result-details__secondary-text"],[3,"value"]],template:function(n,o){n&1&&(Qv(0,Tr,8,3,"ng-container",0),NN(1,"async")),n&2&&my("ngIf",AN(1,1,o.resultDetailsHeader$));},dependencies:[Wt$1,On$1,Um,qm,ss,Ri,Eo,Ss,xb,Un$1],styles:[".pt-search-result-details__main-text[_ngcontent-%COMP%]{display:inline;margin-bottom:8px;vertical-align:middle}.pt-search-result-details__secondary-text[_ngcontent-%COMP%]{font-size:.875rem}.pt-search-result-details__sort-order[_ngcontent-%COMP%]{vertical-align:middle}"]});let t=e;return t})();var Rn=(()=>{let e=class e{transform(i){if(!i)return "";let n=i.split(",");if(n.length<2)return i;let o=n.length-1;return n[o-1].trim()+", "+n[o].trim()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=K_({name:"tmSoldPropertyShortAddress",type:e,pure:true,standalone:false});let t=e;return t})();var $n=(()=>{let e=class e{getDisplayDate(i){return i?i.toLocaleString(void 0,{day:"numeric",month:"short",year:"numeric"}):""}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z_({type:e,selectors:[["tm-sold-property-card"]],inputs:{soldProperty:"soldProperty"},standalone:false,decls:16,vars:12,consts:[[1,"sold-property-card__card"],["ratio","16x9",1,"sold-property-card__image",3,"imageUrl","alt"],["compact","",1,"sold-property-card__sold-flag","sold-property-card__sold-flag--mobile"],[1,"sold-property-card__property-info"],[1,"sold-property-card__sold-info"],["compact","",1,"sold-property-card__sold-flag"],[1,"sold-property-card__date"],[1,"sold-property-card__location"],[1,"sold-property-card__location","sold-property-card__location--mobile"]],template:function(n,o){n&1&&(Bs(0,"div",0)(1,"tg-aspect-ratio",1)(2,"tg-flag",2),cN(3),_d()(),Bs(4,"div",3)(5,"div",4)(6,"tg-flag",5),cN(7," SOLD "),_d(),Bs(8,"div",6),cN(9),_d()(),Bs(10,"div",7),cN(11),NN(12,"tmSoldPropertyShortAddress"),_d()(),Bs(13,"div",8),cN(14),NN(15,"tmSoldPropertyShortAddress"),_d()()),n&2&&(aC(),my("imageUrl",mN(o.soldProperty.photoUrl))("alt",mN(o.soldProperty.addressRightLocation.addressLabel)),aC(2),Od(" SOLD ",o.getDisplayDate(o.soldProperty.saleDate)," "),aC(6),Od(" ",o.getDisplayDate(o.soldProperty.saleDate)," "),aC(2),Od(" ",AN(12,8,o.soldProperty.addressRightLocation.addressLabel)," "),aC(3),Od(" ",AN(15,10,o.soldProperty.addressRightLocation.addressLabel)," "));},dependencies:[xf,ub,Rn],styles:["tm-sold-property-card[_nghost-%COMP%]{display:block}.sold-property-card__card[_ngcontent-%COMP%]{height:100%}@media(min-width:768px){.sold-property-card__card[_ngcontent-%COMP%]{display:flex;overflow:hidden;background:#f6f5f4;border-radius:3px}}.sold-property-card__image[_ngcontent-%COMP%]{overflow:hidden;border-radius:3px}@media(min-width:768px){.sold-property-card__image[_ngcontent-%COMP%]{width:144px;min-width:144px;border-radius:0}}.sold-property-card__property-info[_ngcontent-%COMP%]{display:none}@media(min-width:768px){.sold-property-card__property-info[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:column;justify-content:space-between;padding:8px;overflow-x:hidden}}.sold-property-card__sold-flag[_ngcontent-%COMP%]{background-color:#f9af2c;border-radius:3px;color:#fff}.sold-property-card__sold-flag--mobile[_ngcontent-%COMP%]{border-radius:0;vertical-align:top}@media(min-width:768px){.sold-property-card__sold-flag--mobile[_ngcontent-%COMP%]{display:none}}.sold-property-card__date[_ngcontent-%COMP%]{display:inline-block;color:#76716d;font-size:.875rem}.sold-property-card__location[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;line-height:20px}.sold-property-card__location--mobile[_ngcontent-%COMP%]{overflow:hidden;width:inherit;text-overflow:ellipsis;white-space:nowrap}@media(min-width:768px){.sold-property-card__location--mobile[_ngcontent-%COMP%]{display:none}}"]});let t=e;return t})();var Or=t=>["/property/agent",t],Fr=t=>({bof:t}),Dr=()=>({}),Nr=t=>({"directory-search-list-card__header--gold":t}),Rr=t=>({"background-color":t}),$r=t=>({"directory-search-list-card__agency-banner--gold":t}
3),kr=t=>({"directory-search-list-card__profile-photo--gold":t});function jr(t,e){if(t&1&&(Bs(0,"div",20),gy(1,"img",21),_d()),t&2){let r=NM(2);my("ngClass",CN(5,Nr,r.isGoldMember))("ngStyle",CN(7,Rr,r.isGoldMember&&r.agentProfile.brandingBackgroundColor)),aC(),my("ngClass",CN(9,$r,r.isGoldMember))("src",r.agentProfile.agencyBannerImageUrl,Ig)("alt",r.agentProfile.agencyName);}}function Br(t,e){if(t&1&&gy(0,"img",22),t&2){let r=NM(2);my("ngClass",CN(3,kr,r.isGoldMember))("src",r.agentProfile.profilePhotoUrl,Ig)("alt",r.agentProfile.firstName+" "+r.agentProfile.lastName);}}function Hr(t,e){t&1&&(Bs(0,"div",23),cN(1," Trade Me Property Partner "),_d());}function Gr(t,e){if(t&1&&(Bs(0,"p",24),cN(1),_d(),gy(2,"div",25)),t&2){let r=NM(2);aC(),Od("In ",r.locationName);}}function Vr(t,e){if(t&1&&gy(0,"tm-sold-property-card",31),t&2){let r=e.$implicit;my("soldProperty",r);}}function Ur(t,e){if(t&1&&(Bs(0,"div",26)(1,"div",27),cN(2," Latest property sales "),Bs(3,"span",28),cN(4),_d()(),Bs(5,"div",29),Qv(6,Vr,1,1,"tm-sold-property-card",30),_d()()),t&2){let r=NM(2);aC(4),Od(" by ",r.agentProfile.firstName," "),aC(2),my("ngForOf",r.agentProfile.recentlySoldProperties);}}function zr(t,e){if(t&1&&(Bs(0,"a",2),Qv(1,jr,2,11,"div",3),Bs(2,"div",4)(3,"div",5),Qv(4,Br,1,5,"img",6),Bs(5,"div",7)(6,"h3",8),cN(7),_d(),Bs(8,"p",9),cN(9),_d(),Qv(10,Hr,2,0,"div",10),_d()(),Bs(11,"div",11),lM(12,Gr,3,1),Bs(13,"div",12)(14,"div",13)(15,"div",14)(16,"p",15),cN(17),_d(),Bs(18,"span",16),cN(19,"Sold"),_d()(),Bs(20,"span",17),cN(21,"in last 12 months"),_d()(),gy(22,"div",18),Bs(23,"div",13)(24,"div",14)(25,"p",15),cN(26),_d(),Bs(27,"span",16),cN(28,"For sale"),_d()()()()()(),Qv(29,Ur,7,2,"div",19),_d()),t&2){let r=NM();my("routerLink",CN(11,Or,r.agentProfile.urlSlug))("queryParams",r.queryParams.bof?CN(13,Fr,r.queryParams.bof):wN(15,Dr)),aC(),my("ngIf",r.agentProfile.agencyBannerImageUrl),aC(3),my("ngIf",r.agentProfile.profilePhotoUrl),aC(3),Od(" ",r.agentProfile.firstName+" "+r.agentProfile.lastName," "),aC(2),Zy(r.agentProfile.agencyName),aC(),my("ngIf",r.agentProfile?.isPartnerAccreditationEnabled&&r.agentProfile?.membershipType!==r.officeProfileMembershipTypeEnum.basic),aC(2),uM(r.locationName?12:-1),aC(5),Zy(r.displaySoldCount),aC(9),Zy(r.displayForSaleCount),aC(3),my("ngIf",r.isGoldMember&&r.agentProfile.recentlySoldProperties&&r.agentProfile.recentlySoldProperties.length);}}function qr(t,e){t&1&&(Bs(0,"tg-card",32),gy(1,"div",33),Bs(2,"div",4)(3,"div",5),gy(4,"div",34),Bs(5,"div",7),gy(6,"div",35)(7,"div",36),_d()()()());}var kn=(()=>{let e=class e{get isGoldMember(){return this.agentProfile.membershipType===ye.gold}get backgroundColor(){return this.agentProfile.brandingBackgroundColor}get hasLocationFilter(){return this.agentProfile.recentSoldListingsCountInArea!=null}get displaySoldCount(){return this.agentProfile.recentSoldListingsCountInArea??this.agentProfile.soldListings}get displayForSaleCount(){return this.agentProfile.liveListingsCountInArea??this.agentProfile.liveListings}constructor(i){this._route=i,this.ghost=false,this.officeProfileMembershipTypeEnum=vt;}ngOnInit(){this.queryParams=this._route.snapshot.queryParams;}};e.\u0275fac=function(n){return new(n||e)(Lo$1(Re))},e.\u0275cmp=z_({type:e,selectors:[["tm-directory-search-list-card"]],inputs:{agentProfile:"agentProfile",ghost:[2,"ghost","ghost",i=>d$1("ghost",i)],locationName:"locationName"},standalone:false,decls:2,vars:2,consts:[["tgCard","","class","directory-search-list-card",3,"routerLink","queryParams",4,"ngIf"],["bordered","","class","directory-search-list-card directory-search-list-card--ghost",4,"ngIf"],["tgCard","",1,"directory-search-list-card",3,"routerLink","queryParams"],["class","directory-search-list-card__header",3,"ngClass","ngStyle",4,"ngIf"],[1,"directory-search-list-card__content"],[1,"directory-directory-search-list-card__profile-container"],["tgCircleImage","","class","directory-search-list-card__profile-photo",3,"ngClass","src","alt",4,"ngIf"],[1,"directory-search-list-card__agent-detail"],[1,"directory-search-list-card__agent-full-name"],[1,"directory-search-list-card__agency-name"],["class","directory-search-list-card__partner-accreditation",4,"ngIf"],[1,"directory-search-list-card__listing-count-container"],[1,"directory-search-list-card__listing-counts-row"],[1,"directory-search-list-card__listing-count-item"],[1,"directory-search-list-card__listing-count"],[1,"p-h2","directory-search-list-card__listing-count-number"],[1,"directory-search-list-card__listing-count-suffix"],[1,"directory-search-list-card__listing-count-disclaimer"],[1,"directory-search-list-card__listing-count-divider"],["class","directory-search-list-card__sold-properties-container",4,"ngIf"],[1,"directory-search-list-card__header",3,"ngClass","ngStyle"],[1,"directory-search-list-card__agency-banner",3,"ngClass","src","alt"],["tgCir
3cleImage","",1,"directory-search-list-card__profile-photo",3,"ngClass","src","alt"],[1,"directory-search-list-card__partner-accreditation"],[1,"directory-search-list-card__location-name"],[1,"directory-search-list-card__location-separator"],[1,"directory-search-list-card__sold-properties-container"],[1,"directory-search-list-card__sold-properties-title"],[1,"directory-search-list-card__inline-name"],[1,"directory-search-list-card__sold-properties"],["class","directory-search-list-card__sold-properties-card",3,"soldProperty",4,"ngFor","ngForOf"],[1,"directory-search-list-card__sold-properties-card",3,"soldProperty"],["bordered","",1,"directory-search-list-card","directory-search-list-card--ghost"],[1,"directory-search-list-card__header","directory-search-list-card__header--ghost"],[1,"directory-search-list-card__profile-photo","directory-search-list-card__profile-photo--ghost"],[1,"directory-search-list-card__agent-full-name","directory-search-list-card__agent-full-name--ghost"],[1,"directory-search-list-card__agency-name","directory-search-list-card__agency-name--ghost"]],template:function(n,o){n&1&&Qv(0,zr,30,16,"a",0)(1,qr,8,0,"tg-card",1),n&2&&(my("ngIf",o.agentProfile),aC(),my("ngIf",!o.agentProfile&&o.ghost));},dependencies:[Ln,Wt$1,On$1,Nn$1,Q_,B_,rn,$n],styles:[".directory-search-list-card[_ngcontent-%COMP%]{display:flex;flex-flow:column nowrap}.directory-search-list-card--ghost[_ngcontent-%COMP%]{opacity:.3}.directory-search-list-card--ghost.o-card[_ngcontent-%COMP%], .directory-search-list-card--ghost.o-card[_ngcontent-%COMP%]:hover, .directory-search-list-card--ghost.o-card[_ngcontent-%COMP%]:focus{box-shadow:none}.directory-search-list-card__header[_ngcontent-%COMP%]{display:flex;height:46px;flex-flow:row nowrap;align-items:center;padding:8px 0 8px 24px;background-color:#e8e6e3}.directory-search-list-card__header--gold[_ngcontent-%COMP%]{height:56px}.directory-search-list-card__header--ghost[_ngcontent-%COMP%]{background-color:#e8e6e3}.directory-search-list-card__agency-banner[_ngcontent-%COMP%]{max-height:24px}@media(min-width:768px){.directory-search-list-card__agency-banner[_ngcontent-%COMP%]{max-height:30px}}.directory-search-list-card__agency-banner--gold[_ngcontent-%COMP%]{max-height:30px}@media(min-width:768px){.directory-search-list-card__agency-banner--gold[_ngcontent-%COMP%]{max-height:40px}}.directory-search-list-card__content[_ngcontent-%COMP%]{display:flex;flex-flow:column nowrap;align-items:center;padding:16px}@media(min-width:768px){.directory-search-list-card__content[_ngcontent-%COMP%]{flex-direction:row;padding:24px}}.directory-directory-search-list-card__profile-container[_ngcontent-%COMP%]{display:flex;width:100%;flex-flow:row nowrap;align-items:center}@media(min-width:768px){.directory-directory-search-list-card__profile-container[_ngcontent-%COMP%]{width:auto}}.directory-search-list-card__profile-photo[_ngcontent-%COMP%]{width:56px;min-width:56px;height:56px;margin-right:16px}@media(min-width:768px){.directory-search-list-card__profile-photo[_ngcontent-%COMP%]{width:72px;min-width:72px;height:72px}}.directory-search-list-card__profile-photo--gold[_ngcontent-%COMP%]{width:64px;min-width:64px;height:64px}@media(min-width:768px){.directory-search-list-card__profile-photo--gold[_ngcontent-%COMP%]{width:88px;min-width:88px;height:88px}}.directory-search-list-card__profile-photo--ghost[_ngcontent-%COMP%]{width:88px;height:88px;background-color:#e8e6e3;border-radius:50%}.directory-search-list-card__agent-detail[_ngcontent-%COMP%]{display:flex;flex-flow:column}
3.directory-search-list-card__agent-full-name[_ngcontent-%COMP%]{margin-bottom:0}.directory-search-list-card__agent-full-name--ghost[_ngcontent-%COMP%]{width:125px;height:16px;margin-bottom:8px;background-color:#e8e6e3}.directory-search-list-card__agency-name[_ngcontent-%COMP%]{margin-bottom:0;color:#9b9591;font-weight:400}.directory-search-list-card__partner-accreditation[_ngcontent-%COMP%]{color:#4854d3;font-size:.75rem;font-weight:500;line-height:16px}.directory-search-list-card__agency-name--ghost[_ngcontent-%COMP%]{width:150px;height:16px;background-color:#e8e6e3}.directory-search-list-card__listing-count-container[_ngcontent-%COMP%]{display:flex;width:100%;flex-flow:column nowrap;margin-top:16px;white-space:nowrap}@media(min-width:768px){.directory-search-list-card__listing-count-container[_ngcontent-%COMP%]{width:auto;margin-left:auto}}.directory-search-list-card__location-name[_ngcontent-%COMP%]{width:99px;margin-bottom:8px;color:#2f2c28;font-size:.75rem;font-style:normal;font-weight:500;line-height:16px}
3.directory-search-list-card__location-separator[_ngcontent-%COMP%]{width:100%;height:1px;margin-bottom:8px;background-color:#d7d5d2;opacity:.8}.directory-search-list-card__listing-counts-row[_ngcontent-%COMP%]{display:flex;flex-flow:row nowrap}.directory-search-list-card__listing-count-item[_ngcontent-%COMP%]{flex:1;line-height:16px;text-align:center}@media(min-width:768px){.directory-search-list-card__listing-count-item[_ngcontent-%COMP%]{flex:0 1 auto}}.directory-search-list-card__listing-count-divider[_ngcontent-%COMP%]{height:36px;border-right:1px solid #d7d5d2;margin:0 16px}.directory-search-list-card__listing-count[_ngcontent-%COMP%]{display:flex;flex-flow:row nowrap;align-items:center;justify-content:center}.directory-search-list-card__listing-count-number[_ngcontent-%COMP%]{display:inline-block;margin-right:8px;margin-bottom:0}.directory-search-list-card__listing-count-suffix[_ngcontent-%COMP%]{color:#9b9591;font-size:.875rem;font-weight:500}.directory-search-list-card__listing-count-disclaimer[_ngcontent-%COMP%]{margin-bottom:0;color:#9b9591;font-size:.75rem}.directory-search-list-card__sold-properties-container[_ngcontent-%COMP%]{padding:0 16px}@media(min-width:768px){.directory-search-list-card__sold-properties-container[_ngcontent-%COMP%]{padding:0 24px;margin-bottom:16px}}.directory-search-list-card__sold-properties[_ngcontent-%COMP%]{display:flex;padding:8px 0}.directory-search-list-card__sold-properties-card[_ngcontent-%COMP%]{width:50%}.directory-search-list-card__sold-properties-card[_ngcontent-%COMP%]:first-child{padding-right:8px}.directory-search-list-card__sold-properties-card[_ngcontent-%COMP%]:nth-child(2){padding-left:8px}.directory-search-list-card__sold-properties-title[_ngcontent-%COMP%]{display:inline-block;width:55%;color:#65605d;font-size:.875rem;font-weight:500;text-align:left}.directory-search-list-card__sold-properties-link[_ngcontent-%COMP%]{display:inline-block;width:45%;font-size:.875rem;text-align:right}.directory-search-list-card__inline-name[_ngcontent-%COMP%]{display:none}@media(min-width:768px){.directory-search-list-card__inline-name[_ngcontent-%COMP%]{display:inline}}"]});let t=e;return t})();var jn=(()=>{let e=class e{constructor(){this._locationService=I(et$1);}getBaseBreadcrumbs(){return [{displayName:"Property",canonicalPath:"/property"},{displayName:"Find an Agent",canonicalPath:"/property/agent/search"}]}buildBreadcrumbsFromLocation(i,n,o){let p=[{displayName:"Property",canonicalPath:"/property"},{displayName:"Find an Agent",canonicalPath:"/property/agent/search"}];return n===m.suburb&&i.grandParentId?(i.grandParentName&&p.push({displayName:i.grandParentName,canonicalPath:this._locationService.buildLocationPath({id:i.grandParentId,name:i.grandParentName,type:m.region})}),i.parentId&&i.parentName&&p.push({displayName:i.parentName,canonicalPath:this._locationService.buildLocationPath({id:i.parentId,name:i.parentName,type:m.district})}),p.push({displayName:i.name,canonicalPath:this._locationService.buildLocationPath({id:o,name:i.name,type:m.suburb}),shouldDisplayAsTextOnly:true})):n===m.district&&i.parentId?(i.parentName&&p.push({displayName:i.parentName,canonicalPath:this._locationService.buildLocationPath({id:i.parentId,name:i.parentName,type:m.region})}),p.push({displayName:i.name,canonicalPath:this._locationService.buildLocationPath({id:o,name:i.name,type:m.district}),shouldDisplayAsTextOnly:true})):p.push({displayName:i.name,canonicalPath:this._locationService.buildLocationPath({id:o,name:i.name,type:n}),shouldDisplayAsTextOnly:true}),p}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=G$2({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Qr(t,e){if(t&1&&gy(0,"tm-meta-json-ld-inline",2),t&2){let r=NM(2);my("json",r.breadcrumbSchema());}}function Wr(t,e){if(t&1&&(Bs(0,"div",0),gy(1,"tm-breadcrumbs",1),lM(2,Qr,1,1,"tm-meta-json-ld-inline",2),_d()),t&2){let r=NM();aC(),my("breadcrumbs",r.breadcrumbs()),aC(),uM(r.breadcrumbSchema()?2:-1);}}var Vt=(()=>{let e=class e{constructor(){this._route=I(Re),this._locationFacade=I(G$1),this._breadcrumbsJsonLdMapper=I(B),this._locationService=I(et$1),this._breadcrumbsService=I(jn),this._locationData=F(NI([this._route.params.pipe(jf(this._route.snapshot.params)),this._route.queryParams.pipe(jf(this._route.snapshot.queryParams))]).pipe(be(([i,n])=>this._locationService.parseLocationFromRouteAndQuery(i,n)),kr$1(({locationId:i,locationType:n})=>i&&i>0&&n!==null?this._locationFacade.getLocation(n,i).pipe(Nt$1(o=>!!o&&!!o.name),nn(1)):Ba$1(null)))),this.breadcrumbs=Zt$1(()=>{let i=this._locationData();if(!i){let n=this._breadcrumbsService.getBaseBreadcrumbs();return n.map((o,p)=>p===n.length-1?z(y({},o),{shouldDisplayAsTextOnly:true}):o)}return this._breadcrumbsService.buildBreadcrumbsFromLocation(i,i.type,i.id)}),this.breadcrumbSchema=Zt$1(()=>{let i=this.breadcrumbs();return !i||i.length===0?[]:this._breadcrumbsJsonLdMapper.map(i).jsonLd??[]}
3),this._locationFacade.dispatchGetCurrentAreaLocations();}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z_({type:e,selectors:[["tm-directory-search-breadcrumbs"]],decls:1,vars:1,consts:[[1,"tm-agent-directory__breadcrumbs"],[3,"breadcrumbs"],[3,"json"]],template:function(n,o){n&1&&lM(0,Wr,3,2,"div",0),n&2&&uM(o.breadcrumbs()?0:-1);},dependencies:[Ve,Nt,gt$1,a$1,d],encapsulation:2});let t=e;return t})();var Xr=()=>[1,2,3,4],eo=t=>({page:t});function to(t,e){t&1&&gy(0,"tm-directory-search-list-card",9);}function io(t,e){t&1&&(Bs(0,"div",7)(1,"div",8),pM(2,to,1,0,"tm-directory-search-list-card",9,fM),_d()()),t&2&&(aC(2),hM(wN(0,Xr)));}function no(t,e){t&1&&(Bs(0,"div",10)(1,"h2",11),cN(2,"No Agent Found"),_d(),Bs(3,"h3",12),cN(4,"Try searching for a different agent"),_d(),Bs(5,"tg-svg",13),gy(6,"tm-moa-outline-illustration"),_d()());}function ro(t,e){if(t&1&&(gy(0,"tm-directory-search-list-card",18),NN(1,"async")),t&2){let r=NM().$implicit,i=NM(5);my("agentProfile",r)("locationName",AN(1,2,i.locationName$));}}function oo(t,e){if(t&1&&lM(0,ro,2,4,"tm-directory-search-list-card",18),t&2){let r=e.$implicit;uM(r?0:-1);}}function ao(t,e){if(t&1&&(Bs(0,"a",19),cN(1),_d()),t&2){let r=e.page,i=e.label;my("queryParams",CN(2,eo,r>1?r:null)),aC(),Od(" ",i," ");}}function so(t,e){if(t&1&&(Bs(0,"div",15),pM(1,oo,1,1,null,null,dM),NN(3,"async"),_d(),Bs(4,"tg-pagination",16),NN(5,"async"),NN(6,"async"),Qv(7,ao,2,4,"a",17),_d()),t&2){let r=NM(4);aC(),hM(AN(3,3,r.profiles$)),aC(3),my("currentPage",AN(5,5,r.currentPage$))("totalPages",AN(6,7,r.pageCount$))("itemsToShow",5);}}function co(t,e){t&1&&(Bs(0,"div",14)(1,"div",20),gy(2,"tm-property-search-widget-card",21)(3,"tm-property-search-widget-card",22)(4,"tm-search-results-sidebar-display-ad"),_d()());}function lo(t,e){if(t&1&&(Bs(0,"div",7)(1,"div",8),lM(2,so,8,9),_d(),lM(3,co,5,0,"div",14),NN(4,"async"),_d()),t&2){let r=NM(2),i=NM();aC(2),uM(r?.item?2:-1),aC(),uM(AN(4,2,i.mediaSize.is.lg$.or.greater$)?3:-1);}}function po(t,e){if(t&1&&(lM(0,no,7,0,"div",10),NN(1,"async"),Cd(2,lo,5,4,"div",7)),t&2){let r=NM(),i=NM();uM(AN(1,1,i.hasError$)||r.item?.totalCount<1?0:2);}}function mo(t,e){if(t&1&&(Bs(0,"div",5),gy(1,"tm-agent-directory-search-result-details",6),_d(),lM(2,io,4,1,"div",7),NN(3,"async"),Cd(4,po,3,3)),t&2){let r=NM();aC(),my("searchResults",e.item)("searchCriteria",r.searchCriteria),aC(),uM(AN(3,3,r.isLoading$)?2:4);}}var Hn=4,go="No Agents Found",fo="Find a Real Estate agent on Trade Me Property",si={title:"New Zealand Real Estate Agents",description:"Find New Zealand Real Estate Agents on Trade Me Property, NZ\u2019s largest range of licensed real estate professionals. Search now by agent name or location.",nonIndexableUrlRule:"page=\\d+"},ci=(()=>{let e=class e{constructor(i,n,o,p,w,S,I,te){this.mediaSize=i,this._route=n,this._metaDataFacade=o,this._agentSearchFacade=p,this._platformService=w,this._locationFacade=S,this._locationService=I,this._serverResponse=te,this._destroyed$=new q,this.DEFAULT_H1="Find a Real Estate Agent in New Zealand";}ngOnInit(){this.searchResults$=this._agentSearchFacade.getAgentSearch().pipe(o$1()),this.isLoading$=this.searchResults$.pipe(be(i=>!!i&&i.isLoading)),this.hasError$=this.searchResults$.pipe(Nt$1(i=>!i.isLoading&&!!i.error),Bf(i=>{this._platformService.isServer&&this._platformService.isServer===true&&(this._serverResponse.httpStatus=404);}),be(i=>!!i.error)),this.profiles$=this.searchResults$.pipe(Nt$1(i=>!!i&&!!i.item),be(i=>e.includePlacementInProfileList(i.item.list))),this.pageCount$=this.searchResults$.pipe(be(i=>!i.item||i.isLoading||i.item.totalCount===0?0:Math.ceil(i.item.totalCount/Ee))),this.currentPage$=this.searchResults$.pipe(Nt$1(i=>!!i.item&&!!i.item.page),be(i=>i.item.page),jf(1)),this._route.queryParams.pipe(Vf(this._destroyed$)).subscribe(i=>{this.queryParams=i;}),this.searchResults$.pipe(Vf(this._destroyed$)).subscribe(i=>{let n;i.item?.totalCount===0?n={title:go,metadataDescription:fo}:n=i.item?.seoDrivenMetadata,this.setMetadata(n);}),this.pageH1$=this.searchResults$.pipe(Nt$1(i=>!!i.item),be(i=>i.item?.seoDrivenMetadata?.h1Element??this.DEFAULT_H1)),this.locationName$=NI([this._route.params.pipe(jf(this._route.snapshot.params)),this._route.queryParams.pipe(jf(this._route.snapshot.queryParams))]).pipe(be(([i,n])=>this._locationService.parseLocationFromRouteAndQuery(i,n)),ui((i,n)=>i.locationId===n.locationId&&i.locationType===n.locationType),kr$1(({locationId:i,locationType:n})=>i&&n!==null?this._locationFacade.getLocation(n,i).pipe(Nt$1(o=>!!o?.name),be(o=>o.name),nn(1)):Ba$1(null)),ui());}static includePlacementInProfileList(i){let n=[...i];return i.length>Hn?n.splice(Hn-1,0,null):n.push(null),n}onSearchCriteriaChange(i){this.searchCriteria=i;}setMetadata(i){this._metaDataFacade.updateMetaData({title:i?.title??si.title,de
3scription:i?.metadataDescription??si.description,nonIndexableUrlRule:si.nonIndexableUrlRule,canonicalPathOverride:i?.seoDrivenUrl?.seoDrivenCanonicalUrl||f,blockRobotIndexAndFollow:Object.keys(this.queryParams).length>0});}ngOnDestroy(){this._destroyed$.next();}};e.\u0275fac=function(n){return new(n||e)(Lo$1(G),Lo$1(Re),Lo$1(l),Lo$1(On),Lo$1(h),Lo$1(G$1),Lo$1(et$1),Lo$1(R$1,8))},e.\u0275cmp=z_({type:e,selectors:[["tm-agent-directory"]],hostAttrs:["ngSkipHydration","true"],standalone:false,decls:10,vars:6,consts:[[1,"h-spacing-page-top","l-container","pt-agent-directory__form"],[1,"pt-agent-directory__form-title"],[1,"pt-agent-directory__form-content",3,"searchCriteriaChange"],[1,"pt-agent-directory__results"],[1,"l-container"],[1,"pt-agent-directory__results__header"],[3,"searchResults","searchCriteria"],[1,"pt-agent-directory-item__container"],[1,"pt-agent-directory-item__container__left"],["ghost",""],[1,"pt-agent-directory__not-found-container"],[1,"pt-agent-directory__not-found-text"],[1,"pt-agent-directory__not-found-subtext"],[1,"pt-agent-directory__not-found-illustration"],[1,"pt-agent-directory-item__container_right"],[1,"item"],["autoCompact","",1,"pt-agent-directory__pagination",3,"currentPage","totalPages","itemsToShow"],["routerLink",".","queryParamsHandling","merge","rel","nofollow",3,"queryParams",4,"tgPaginationItem"],[3,"agentProfile","locationName"],["routerLink",".","queryParamsHandling","merge","rel","nofollow",3,"queryParams"],[1,"pt-agent-directory__search-widget-card"],["widgetType","Selling"],["widgetType","OneHub"]],template:function(n,o){if(n&1&&(Bs(0,"div",0),gy(1,"tm-directory-search-breadcrumbs"),Bs(2,"h1",1),cN(3),NN(4,"async"),_d(),Bs(5,"tm-directory-search-form",2),_y("searchCriteriaChange",function(w){return o.onSearchCriteriaChange(w)}),_d()(),Bs(6,"div",3)(7,"div",4),lM(8,mo,5,5),NN(9,"async"),_d()()),n&2){let p;aC(3),Zy(AN(4,2,o.pageH1$)),aC(5),uM((p=AN(9,4,o.searchResults$))?8:-1,p);}},dependencies:[gt,zb,Af,rn,Nn,s1,kn,N,o,$c,Vt,Un$1],styles:[".pt-agent-directory__form[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;padding-top:32px}.pt-agent-directory__form[_ngcontent-%COMP%]   .pt-agent-directory__form-title[_ngcontent-%COMP%], .pt-agent-directory__form[_ngcontent-%COMP%]   .pt-agent-directory__form-content[_ngcontent-%COMP%]{flex-basis:100%}.pt-agent-directory__results[_ngcontent-%COMP%]{padding-top:24px;background:#f6f5f4}@media(max-width:767px){.pt-agent-directory__results[_ngcontent-%COMP%]{padding-top:24px}}.pt-agent-directory__agent-link[_ngcontent-%COMP%]:link{color:inherit;text-decoration:none}.pt-agent-directory__agent-link[_ngcontent-%COMP%]:visited{color:inherit}.pt-agent-directory__agent-result[_ngcontent-%COMP%]{margin-bottom:24px}.pt-agent-directory__pagination.o-pagination[_ngcontent-%COMP%]{padding:24px 0 48px;margin-bottom:0}.pt-agent-directory__search-widget-card[_ngcontent-%COMP%]     .tm-property-search-widget-card__image-container{min-height:120px}.pt-agent-directory-item__container[_ngcontent-%COMP%]{display:grid;grid-template-columns:8fr 4fr}@media(min-width:1024px){.pt-agent-directory-item__container[_ngcontent-%COMP%]{gap:12px 80px}}@media(max-width:1024px){.pt-agent-directory-item__container__left[_ngcontent-%COMP%]{grid-column:span 8}}tm-property-search-widget-card[_ngcontent-%COMP%]{margin-bottom:24px}tm-search-results-sidebar-display-ad[_ngcontent-%COMP%]{position:sticky;top:10px}.pt-agent-directory__not-found-container[_ngcontent-%COMP%]{padding-top:32px;text-align:center;padding-bottom:32px}.pt-agent-directory__not-found-text[_ngcontent-%COMP%]{margin-bottom:16px;font-weight:400;text-align:center}.pt-agent-directory__not-found-subtext[_ngcontent-%COMP%]{display:block;margin-bottom:32px}.pt-agent-directory__not-found-illustration[_ngcontent-%COMP%]{display:block;width:150px;margin:auto}"]});let t=e;return t})();var Vn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Bv({type:e}),e.\u0275inj=Oc({imports:[ti]});let t=e;return t})();var Un=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Bv({type:e}),e.\u0275inj=Oc({imports:[ti,X_,Vn,qc,ze]});let t=e;return t})();var zn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Bv({type:e}),e.\u0275inj=Oc({imports:[ti,Rb,yr$1]});let t=e;return t})();var qn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Bv({type:e}),e.\u0275inj=Oc({imports:[ti,X_,zs,pb]});let t=e;return t})();var Yn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Bv({type:e}),e.\u0275inj=Oc({imports:[ti,X_,Xi,eu,qn]});let t=e;return t})();var Qn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Bv({type:e}),e.\u0275inj=Oc({imports:[ti,Rb,Tt,Un,ze,mc,Gb,eu,zn,yr$1,Yc,Ut$1,x1,Yn,R,a,$c,Vt]});let t=e;return t})();var Ut=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z_({type:e,selectors:[["tm-agent-listings-empty"]],inputs:{emptyMessage:"emptyMessage"},standalone:false,decls:4,vars:1,consts:[[1,"agent-listings-empty__illustration"],[1,"agent-listings-empty__message"]],template:function(n,o){n&1&&(Bs(0,"tg-svg",0),gy(1,"tm-moa-outline-illustration"),_d(),Bs(2,"h2",1),cN(3),_d()),n&2&&(aC(3),Od(" ",o.emptyMessage,`
4`));},dependencies:[$c,o],styles:[".agent-listings-empty__illustration[_ngcontent-%COMP%]{display:block;width:150px;padding-top:80px;margin:auto}.agent-listings-empty__message[_ngcontent-%COMP%]{padding-bottom:48px;font-weight:400;text-align:center}"]});let t=e;return t})();var We=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Bv({type:e}),e.\u0275inj=Oc({imports:[ti,qc,a]});let t=e;return t})();var zt=(()=>{let e=class e{constructor(i){this.options=i,this.type=e.TYPE;}};e.TYPE="[Property/common/agent-current-listings] GetAgentCurrentListingsAction";let t=e;return t})(),rt=(()=>{let e=class e{constructor(i){this.options=i,this.type=e.TYPE;}};e.TYPE="[Property/common/agent-current-listings] GetAgentCurrentListingsFromApiAction";let t=e;return t})(),qt=(()=>{let e=class e{constructor(i,n,o){this.options=i,this.response=n,this.cachedAt=o,this.type=e.TYPE;}};e.TYPE="[Property/common/agent-current-listings] GetAgentCurrentListingsFromApiSuccessAction";let t=e;return t})(),Yt=(()=>{let e=class e{constructor(i,n){this.options=i,this.error=n,this.type=e.TYPE;}};e.TYPE="[Property/common/agent-current-listings] GetAgentCurrentListingsFromApiFailAction";let t=e;return t})();var Te=Q(),Qt="PropertyAgentCurrentListings",uo={agentCurrentListingsEntities:Te.getInitialState()};function Jn(t$1,e){return t({[rt.TYPE]:ho,[qt.TYPE]:yo,[u.TYPE]:_o,[Yt.TYPE]:Co},uo)(t$1,e)}function _o(t,e){let{isOnWatchList:r,listingId:i}=e,n=false,{agentCurrentListingsEntities:o}=t,p=Je(),w=o.entities[p];return w&&(o=Te.updateOne({id:p,changes:{item:z(y({},w.item),{agentListings:w.item.agentListings.map(S=>S.listingId===i?z(y({},S),{isOnWatchList:r}):S)})}},o),n=true),n?z(y({},t),{agentCurrentListingsEntities:o}):t}function ho(t){let e=Je(),r=Te.upsertOne({id:e,isLoading:true},t.agentCurrentListingsEntities);return z(y({},t),{agentCurrentListingsEntities:r})}function yo(t,e){let r=Je(),i=Te.replaceOne({id:r,isLoading:false,cachedAt:e.cac
4hedAt,item:e.response},t.agentCurrentListingsEntities);return z(y({},t),{agentCurrentListingsEntities:i})}function Co(t,e){let r=Je(),i=Te.replaceOne({id:r,isLoading:false,error:e.error&&new o$2(e.error.message,e.error.name)},t.agentCurrentListingsEntities);return z(y({},t),{agentCurrentListingsEntities:i})}function Je(){return ""}var Ke;(function(t){let e=Et(Qt),r=Ve$1(e,n=>n.agentCurrentListingsEntities),{selectEntities:i}=Te.getSelectors(r);t.currentAgentCurrentListings=Ve$1(i,n=>n[Je()]||{isLoading:false});})(Ke||(Ke={}));var Ze=(()=>{let e=class e{constructor(i){this._store=i;}getAgentCurrentListings(){return this._store.select(c.currentAgentProfile).pipe(f$1(i=>this._store.dispatch(new zt({agentId:i.item.propertyAgentIndividualProfile.memberId})),this._store.select(Ke.currentAgentCurrentListings).pipe(Nt$1(i=>!!i&&!!i.item),ui())))}getAgentCurrentListingsCount(){return this.getAgentCurrentListings().pipe(be(i=>i.item.agentListings.length))}};e.\u0275fac=function(n){return new(n||e)(pe$1(k))},e.\u0275prov=G$2({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Wt=(()=>{let e=class e{constructor(i){this.options=i,this.type=e.TYPE;}};e.TYPE="[Property/common/agent-sold-listings] GetAgentSoldListingsAction";let t=e;return t})(),ot=(()=>{let e=class e{constructor(i){this.options=i,this.type=e.TYPE;}};e.TYPE="[Property/common/agent-sold-listings] GetAgentSoldListingsFromApiAction";let t=e;return t})(),Jt=(()=>{let e=class e{constructor(i,n,o){this.options=i,this.response=n,this.cachedAt=o,this.type=e.TYPE;}};e.TYPE="[Property/common/agent-sold-listings] GetAgentSoldListingsFromApiSuccessAction";let t=e;return t})(),Kt=(()=>{let e=class e{constructor(i,n){this.options=i,this.error=n,this.type=e.TYPE;}};e.TYPE="[Property/common/agent-sold-listings] GetAgentSoldListingsFromApiFailAction";let t=e;return t})();var Xe=Q(),Zt="PropertyAgentSoldListings",vo={agentSoldListingsEntities:Xe.getInitialState()};function Zn(t$1,e){return t({[ot.TYPE]:xo,[Jt.TYPE]:Po,[Kt.TYPE]:So},vo)(t$1,e)}function xo(t,e){let r=at(e.options.agentId),i=Xe.upsertOne({id:r,isLoading:true},t.agentSoldListingsEntities);return z(y({},t),{agentSoldListingsEntities:i})}function Po(t,e){let r=at(e.options.agentId),i=Xe.replaceOne({id:r,isLoading:false,cachedAt:e.cachedAt,item:e.response},t.agentSoldListingsEntities);return z(y({},t),{agentSoldListingsEntities:i})}function So(t,e){let r=at(e.options.agentId),i=Xe.replaceOne({id:r,isLoading:false,error:e.error&&new o$2(e.error.message,e.error.name)},t.agentSoldListingsEntities);return z(y({},t),{agentSoldListingsEntities:i})}function at(t){return t.toString()}var et;(function(t){let e=Et(Zt),r=Ve$1(e,n=>n.agentSoldListingsEntities),{selectEntities:i}=Xe.getSelectors(r);t.currentAgentSoldListings=Ve$1(i,c.currentAgentProfile,(n,o)=>
4n[at(o.item.propertyAgentIndividualProfile.memberId)]||{isLoading:false});})(et||(et={}));var Xt=(()=>{let e=class e{constructor(i){this._store=i;}getAgentSoldListings(){let i=e.getFromDate();return this._store.select(c.currentAgentProfile,i).pipe(f$1(n=>this._store.dispatch(new Wt({agentId:n.item.propertyAgentIndividualProfile.memberId,fromDate:i})),this._store.select(et.currentAgentSoldListings,i)),Nt$1(n=>!!n&&!!n.item),ui())}getAgentSoldListingsCount(){return this.getAgentSoldListings().pipe(be(i=>i.item.length))}static getFromDate(){let i=new Date;return i.setFullYear(i.getFullYear()-1),i.setDate(i.getDate()+1),xt(i,"yyyy-MM-dd","en-NZ")}};e.\u0275fac=function(n){return new(n||e)(pe$1(k))},e.\u0275prov=G$2({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var wo=["salesPropertySection"],Mo=t=>({salePage:t});function bo(t,e){if(t&1&&(gy(0,"tm-property-search-card",5),NN(1,"async"),NN(2,"async")),t&2){let r=e.$implicit,i=NM(2);my("listing",r)("viewMode",AN(1,3,i.currentCardViewMode$))("mediaSizeMap",AN(2,5,i.mediaSize$));}}function To(t,e){if(t&1){let r=TM();Bs(0,"a",8),_y("click",function(){let n=Fp(r).page,o=NM(3);return jp(o.navigateAndScroll(n))}),cN(1),_d();}if(t&2){let r=e.page,i=e.label;my("queryParams",CN(2,Mo,r>1?r:null)),aC(),Od(" ",i," ");}}function Io(t,e){if(t&1&&(Bs(0,"tg-pagination",6),NN(1,"async"),NN(2,"async"),Qv(3,To,2,4,"a",7),_d()),t&2){let r=NM(2);my("currentPage",AN(1,2,r.currentPage$))("totalPages",AN(2,4,r.totalPages$));}}function Ao(t,e){if(t&1&&(Bs(0,"div",null,1),Qv(2,bo,3,7,"tm-property-search-card",3),NN(3,"async"),Qv(4,Io,4,6,"tg-pagination",4),NN(5,"async"),_d()),t&2){let r=NM();aC(2),my("ngForOf",AN(3,2,r.propertiesToDisplay$)),aC(2),my("ngIf",AN(5,4,r.propertiesToDisplay$));}}function Lo(t,e){t&1&&gy(0,"tm-agent-listings-empty",9),t&2&&my("emptyMessage","Nothing for sale currently");}var li=12,er=(()=>{let e=class e{constructor(i,n,o,p,w,S,I$1){this._agentCurrentListingsFacade=i,this._mediaSize=n,this._activatedRoute=o,this._viewportScroller=p,this._currentMemberFacade=w,this._router=S,this._windowRef=I$1,this.mediaSize$=I(G).getMediaSize();}static getListingsByCurrentPage(i,n){return i.slice((n-1)*li,n*li)}static mapAgentListingToProperty(i){return z(y({},i),{agency:{logo:i.agencyLogoUrl,branding:{}}})}ngOnInit(){this.currentMember$=this._currentMemberFacade.getCurrentMember(),this.currentCardViewMode$=this._mediaSize.is.md$.pipe(be(i=>i?a$2.card:a$2.list)),this.listings$=this.currentMember$.pipe(kr$1(()=>this._agentCurrentListingsFacade.getAgentCurrentListings().pipe(be(i=>i.item.agentListings.map(n=>e.mapAgentListingToProperty(n)))))),this.currentPage$=this._activatedRoute.queryParams.pipe(be(i=>i.salePage||1)),this.totalPages$=this.listings$.pipe(be(i=>Math.ceil(i.length/li))),this.propertiesToDisplay$=this.currentPage$.pipe(kr$1(i=>this.listings$.pipe(be(n=>e.getListingsByCurrentPage(n,i)))));}navigateAndScroll(i){this._router.navigate([],{queryParams:{salePage:i>1?i:null},fragment:"salesProperties",queryParamsHandling:"merge"}).then(()=>{setTimeout(()=>{this._windowRef.useWindow(n=>n.scrollTo({top:this.salesPropertySection.nativeElement.getBoundingClientRect().top-this.topPosition,behavior:"instant"}));},0);});}};e.\u0275fac=function(n){return new(n||e)(Lo$1(Ze),Lo$1(G),Lo$1(Re),Lo$1(Dr$1),Lo$1(E$2),Lo$1(ce),Lo$1(rt$1))},e.\u0275cmp=z_({type:e,selectors:[["tm-current-listings"]],viewQuery:function(n,o){if(n&1&&xy(wo,5),n&2){let p;kM(p=LM())&&(o.salesPropertySection=p.first);}},inputs:{topPosition:"topPosition"},standalone:false,decls:4,vars:4,consts:[["forSaleEmptyTemplate",""],["salesPropertySection",""],[4,"ngIf","ngIfElse"],["listingType","property","class","property-agent-search-card",3,"listing","viewMode","mediaSizeMap",4,"ngFor","ngForOf"],["autoCompact","","itemsToShow","5","class","tm-search-results__pagination",3,"currentPage","totalPages",4,"ngIf"],["listingType","property",1,"property-agent-search-card",3,"listing","viewMode","mediaSizeMap"],["autoCompact","","itemsToShow","5",1,"tm-search-results__pagination",3,"currentPage","totalPages"],[3,"queryParams","click",4,"tgPaginationItem"],[3,"click","queryParams"],[3,"emptyMessage"]],template:function(n,o){if(n&1&&(Qv(0,Ao,6,6,"div",2),NN(1,"async"),Qv(2,Lo,1,1,"ng-template",null,0,LN)),n&2){let p=FM(3);my("ngIf",AN(1,2,o.propertiesToDisplay$)?.length)("ngIfElse",p);}}
4,dependencies:[Wt$1,On$1,tt,Ut,zb,Af,Un$1],styles:[".property-agent-search-card[_ngcontent-%COMP%]{margin-right:0;margin-left:0}.property-agent-search-card[_ngcontent-%COMP%]     .o-card{border-top:1px solid rgba(0,0,0,.1)}@media(min-width:1440px){.property-agent-search-card[_ngcontent-%COMP%]{width:90%}}"]});let t=e;return t})();var Oo=["salesPropertySection"],Fo=t=>({"pt-sold-listings__card--highlighted":t}),Do=t=>({soldPage:t});function No(t,e){if(t&1&&(Bs(0,"div",13),cN(1),_d()),t&2){let r=NM().$implicit;aC(),Od(" Licensee: ",r.agentSalesOffice.name," ");}}function Ro(t,e){if(t&1&&(Bs(0,"tg-card",5)(1,"div",6)(2,"tg-aspect-ratio",7)(3,"div",8),cN(4),_d()(),Bs(5,"div",9)(6,"div",10),cN(7),_d(),Qv(8,No,2,1,"div",11),_d(),Bs(9,"div",12),cN(10),NN(11,"currency"),_d()()()),t&2){let r=e.$implicit,i=NM(2);my("ngClass",CN(9,Fo,i.isHighlighted(r))),aC(2),my("imageUrl",mN(r.photoUrl)),aC(2),Od("SOLD \xA0 ",i.getDateDisplay(r)),aC(3),Od(" ",r.addressRightLocation.addressLabel," "),aC(),my("ngIf",r.agentSalesOffice?.name),aC(2),Od(" ",r.salePrice>0?AN(11,7,r.salePrice):"Price withheld"," ");}}function $o(t,e){if(t&1){let r=TM();Bs(0,"a",16),_y("click",function(){let n=Fp(r).page,o=NM(3);return jp(o.navigateAndScroll(n))}),cN(1),_d();}if(t&2){let r=e.page,i=e.label;my("queryParams",CN(2,Do,r>1?r:null)),aC(),Od(" ",i," ");}}function ko(t,e){if(t&1&&(Bs(0,"tg-pagination",14),NN(1,"async"),NN(2,"async"),Qv(3,$o,2,4,"a",15),_d()),t&2){let r=NM(2);my("currentPage",AN(1,2,r.currentPage$))("totalPages",AN(2,4,r.totalPages$));}}function jo(t,e){if(t&1&&(Bs(0,"div",null,1),Qv(2,Ro,12,11,"tg-card",3),NN(3,"async"),Qv(4,ko,4,6,"tg-pagination",4),NN(5,"async"),_d()),t&2){let r=NM();aC(2),my("ngForOf",AN(3,2,r.propertiesToDisplay$)),aC(2),my("ngIf",AN(5,4,r.propertiesToDisplay$));}}function Bo(t,e){t&1&&gy(0,"tm-agent-listings-empty",17),t&2&&my("emptyMessage","No sales have been reported in the last 12 months");}var pi=12,tr=(()=>{let e=class e{constructor(i,n,o,p){this._agentSoldListingsFacade=i,this._activatedRoute=n,this._router=o,this._windowRef=p;}ngOnInit(){this.properties$=this._agentSoldListingsFacade.getAgentSoldListings(),this.totalPages$=this.properties$.pipe(be(i=>Math.ceil(i.item.length/pi))),this.currentPage$=this._activatedRoute.queryParams.pipe(be(i=>i.soldPage||1)),this.propertiesToDisplay$=this.currentPage$.pipe(kr$1(i=>this.properties$.pipe(be(n=>e.getCardsToDisplay(n.item,i)))));}static getCardsToDisplay(i,n){return i.slice((n-1)*pi,n*pi)}getDateDisplay(i,n=void 0){return i.saleDate.toLocaleString(n,{day:"numeric",month:"short",year:"numeric"})}isHighlighted(i){return i.viewState===$t.highlighted}navigateAndScroll(i){this._router.navigate([],{queryParams:{soldPage:i>1?i:null},fragment:"soldProperties",queryParamsHandling:"merge"}).then(()=>{setTimeout(()=>{this._windowRef.useWindow(n=>n.scrollTo({top:this.salesPropertySection.nativeElement.getBoundingClientRect().top-this.topPosition,behavior:"instant"}));},0);});}};e.\u0275fac=function(n){return new(n||e)(Lo$1(Xt),Lo$1(Re),Lo$1(ce),Lo$1(rt$1))},e.\u0275cmp=z_({type:e,selectors:[["tm-sold-listings"]],viewQuery:function(n,o){if(n&1&&xy(Oo,5),n&2){let p;kM(p=LM())&&(o.salesPropertySection=p.first);}},inputs:{topPosition:"topPosition"},standalone:false,decls:4,vars:4,consts:[["soldEmptyTemplate",""],["salesPropertySection",""],[4,"ngIf","ngIfElse"],["bordered","","class","pt-sold-listings__card",3,"ngClass",4,"ngFor","ngForOf"],["autoCompact","","itemsToShow","5","class","tm-search-results__pagination",3,"currentPage","totalPages",4,"ngIf"],["bordered","",1,"pt-sold-listings__card",3,"ngClass"],[1,"pt-sold-listings__container"],["alt","Description of image",1,"pt-sold-listings__image-container",3,"imageUrl"],[1,"pt-sold-listings__sold-date"],[1,"pt-sold-listings__property-info"],[1,"pt-sold-listings__address"],["class","pt-sold-listings__agency-info",4,"ngIf"],[1,"pt-sold-listings__price"],[1,"pt-sold-listings__agency-info"],["autoCompact","","itemsToShow","5",1,"tm-search-results__pagination",3,"currentPage","totalPages"],[3,"queryParams","click",4,"tgPaginationItem"],[3,"click","queryParams"],[3,"emptyMessage"]],template:function(n,o){if(n&1&&(Qv(0,jo,6,6,"div",2),NN(1,"async"),Qv(2,Bo,1,1,"ng-template",null,0,LN)),n&2){let p=FM(3);my("ngIf",AN(1,2,o.propertiesToDisplay$)?.length)("ngIfElse",p);}}
4,dependencies:[Ln,Wt$1,On$1,Q_,Ut,zb,Af,xf,Un$1,Qn$1],styles:[".pt-sold-listings__card[_ngcontent-%COMP%]{overflow:hidden;border-radius:8px}@media(min-width:768px){.pt-sold-listings__card.o-card[_ngcontent-%COMP%]{box-shadow:none}}@media(min-width:1440px){.pt-sold-listings__card[_ngcontent-%COMP%]{width:90%}}.pt-sold-listings__card--highlighted[_ngcontent-%COMP%]{border:3px solid #ffd972;background-color:#fffae5}.pt-sold-listings__card--highlighted[_ngcontent-%COMP%]   .pt-sold-listings__address[_ngcontent-%COMP%]{font-weight:500}@media(min-width:960px){.pt-sold-listings__container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center}}@media(min-width:960px){.pt-sold-listings__image-container[_ngcontent-%COMP%]{width:220px}}.pt-sold-listings__sold-date[_ngcontent-%COMP%]{display:inline-block;padding:0 8px;background-color:#f9af2c;color:#fff;font-size:.75rem;vertical-align:top}.pt-sold-listings__property-info[_ngcontent-%COMP%]{padding:16px;font-size:.875rem}@media(min-width:960px){.pt-sold-listings__property-info[_ngcontent-%COMP%]{flex:5;padding:0 16px}}.pt-sold-listings__address[_ngcontent-%COMP%]{color:#44413d;font-weight:400}.pt-sold-listings__agency-info[_ngcontent-%COMP%]{color:#76716d}.pt-sold-listings__price[_ngcontent-%COMP%]{padding-right:16px;padding-bottom:16px;margin-top:auto;color:#5a5653;font-weight:500;text-align:right}.agent-listings__empty-illustration[_ngcontent-%COMP%]{display:block;width:150px;padding-top:80px;margin:auto}.agent-listings__empty-heading[_ngcontent-%COMP%]{padding-bottom:48px;font-weight:500;text-align:center}"]});let t=e;return t})();var Go=["agentPropertiesHeader"],Vo=["agentListingsTabs"];function Uo(t,e){if(t&1&&(Bs(0,"h2",5,1),cN(2),_d()),t&2){let r=NM();aC(2),Od(" ",r.profile.firstName,`'s properties
5`);}}var ir=(()=>{let e=class e{constructor(i,n,o,p){this.mediaSize=i,this.agentCurrentListingsFacade=n,this._agentSoldListingsFacade=o,this._platformService=p;}ngOnInit(){this.soldListingCount$=this._agentSoldListingsFacade.getAgentSoldListingsCount(),this.currentListingsCount$=this.agentCurrentListingsFacade.getAgentCurrentListingsCount();}ngAfterViewInit(){if(this._platformService.isServer)return;let i=this.agentListingsTabs?.nativeElement,n=this.agentPropertiesHeader?.nativeElement;i&&n&&(this.topPosition=i.getBoundingClientRect().bottom-n.getBoundingClientRect().top);}};e.\u0275fac=function(n){return new(n||e)(Lo$1(G),Lo$1(Ze),Lo$1(Xt),Lo$1(h))},e.\u0275cmp=z_({type:e,selectors:[["tm-agent-listings"]],viewQuery:function(n,o){if(n&1&&xy(Go,5)(Vo,5),n&2){let p;kM(p=LM())&&(o.agentPropertiesHeader=p.first),kM(p=LM())&&(o.agentListingsTabs=p.first);}},inputs:{profile:"profile"},standalone:false,decls:19,vars:12,consts:[["agentListingsTabs",""],["agentPropertiesHeader",""],["id","agentProperties",4,"ngIf"],[1,"agent-listings__tabs"],[3,"topPosition"],["id","agentProperties"]],template:function(n,o){n&1&&(Qv(0,Uo,3,1,"h2",2),NN(1,"async"),Bs(2,"p"),cN(3),_d(),Bs(4,"div",null,0)(6,"tg-tabs",3)(7,"tg-tab")(8,"tg-tab-heading"),cN(9),NN(10,"async"),_d(),Bs(11,"tg-tab-content"),gy(12,"tm-current-listings",4),_d()(),Bs(13,"tg-tab")(14,"tg-tab-heading"),cN(15),NN(16,"async"),_d(),Bs(17,"tg-tab-content"),gy(18,"tm-sold-listings",4),_d()()()()),n&2&&(my("ngIf",AN(1,6,o.profile&&o.mediaSize.is.md$.or.greater$)),aC(3),Od(" Here you can see all of the properties ",o.profile.firstName,` currently has for sale and has sold in the last 12 months on trademe.co.nz. It may not contain off-market and private sales.
6`),aC(6),Od(" For sale (",AN(10,8,o.currentListingsCount$),") "),aC(3),my("topPosition",o.topPosition),aC(3),Od(" Sold (",AN(16,10,o.soldListingCount$),") "),aC(3),my("topPosition",o.topPosition));},dependencies:[On$1,er,tr,Uf,Kb,$f,Jb,Un$1],styles:[".agent-listings__tabs[_ngcontent-%COMP%]{border-bottom:none}"]});let t=e;return t})();var rr=(()=>{let e=class e{constructor(i,n,o,p,w){this._actions$=i,this._store=n,this._timeService=o,this._cacheService=p,this._propertyAgentService=w,this.getAgentCurrentListingsEffect$=Gt(()=>this._actions$.pipe(kt(zt.TYPE),kr$1(S=>this._store.select(Ke.currentAgentCurrentListings).pipe(nn(1),be(()=>new rt(S.options)))))),this.getAgentCurrentListingsFromApiEffect$=Gt(()=>this._actions$.pipe(kt(rt.TYPE),kr$1(S=>this._propertyAgentService.getListings(S.options.agentId).pipe(be(I=>z(y({},I),{agentListings:I.agentListings.sort(te=>te.listingId).reverse()})),be(I=>
6new qt(S.options,I,this._timeService.now)),Ga$1(I=>Ba$1(new Yt(S.options,I)))))));}};e.\u0275fac=function(n){return new(n||e)(pe$1(Ht),pe$1(k),pe$1(Vv),pe$1(b),pe$1(vs))},e.\u0275prov=G$2({token:e,factory:e.\u0275fac});let t=e;return t})();var or=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Bv({type:e}),e.\u0275inj=Oc({imports:[Bt.forFeature([rr]),rn$1.forFeature(Qt,Jn)]});let t=e;return t})();var ar=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Bv({type:e}),e.\u0275inj=Oc({imports:[ti,Rb,tt,or,We,Gb,eu]});let t=e;return t})();var Qo=3600*1e3,sr=(()=>{let e=class e{constructor(i,n,o,p,w){this._actions$=i,this._store=n,this._timeService=o,this._cacheService=p,this._propertyAgentService=w,this.getAgentSoldListingsEffect$=Gt(()=>this._actions$.pipe(kt(Wt.TYPE),kr$1(S=>this._store.select(et.currentAgentSoldListings,S.options.fromDate).pipe(nn(1),Nt$1(I=>this._cacheService.shouldFetch(I,{expiryTime:Qo})),be(()=>new ot(S.options)))))),this.getAgentSoldListingsFromApiEffect$=Gt(()=>this._actions$.pipe(kt(ot.TYPE),kr$1(S=>this._propertyAgentService.getSoldPropertiesByDateAsync(S.options.agentId,S.options.fromDate).pipe(be(I=>
6new Jt(S.options,this.filterAndSort(I),this._timeService.now)),Ga$1(I=>Ba$1(new Kt(S.options,I)))))));}filterAndSort(i){return i.filter(n=>n.viewState!==$t.offline).sort(e.compareHighlightedAndDates)}static compareHighlightedAndDates(i,n){return i.viewState===n.viewState?i.saleDate>n.saleDate?-1:1:i.viewState!==$t.highlighted?1:-1}};e.\u0275fac=function(n){return new(n||e)(pe$1(Ht),pe$1(k),pe$1(Vv),pe$1(b),pe$1(vs))},e.\u0275prov=G$2({token:e,factory:e.\u0275fac});let t=e;return t})();var cr=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Bv({type:e}),e.\u0275inj=Oc({imports:[Bt.forFeature([sr]),rn$1.forFeature(Zt,Zn)]});let t=e;return t})();var lr=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Bv({type:e}),e.\u0275inj=Oc({imports:[ti,X_,cr,a,qc,We,Gb,eu,zs]});let t=e;return t})();var pr=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Bv({type:e}),e.\u0275inj=Oc({imports:[ti,ar,lr,tv,We]});let t=e;return t})();function Ko(t,e){if(t&1&&(Bs(0,"h2"),cN(1),_d()),t&2){let r=NM(2);aC(),Od("",r.profile.firstName,"'s career overview");}}function Zo(t,e){if(t&1&&(Bs(0,"tg-tag"),cN(1),_d()),t&2){let r=e.$implicit;aC(),Od(" ",r.name," ");}}function Xo(t,e){if(t&1&&(xd(0),Qv(1,Zo,2,1,"tg-tag",10),NN(2,"async"),ma$1()),t&2){let r=NM(2);aC(),my("ngForOf",AN(2,1,r.keySkills$));}}function ea(t,e){t&1&&(Bs(0,"span",11),cN(1," No skills have been promoted yet "),_d());}function ta(t,e){if(t&1&&(Bs(0,"tg-tag"),cN(1),_d()),t&2){let r=e.$implicit;aC(),Od(" ",r.languageName," ");}}function ia(t,e){if(t&1&&(Bs(0,"div",5)(1,"h3"),gy(2,"tg-icon",12),cN(3," Spoken languages "),_d(),Qv(4,ta,2,1,"tg-tag",10),_d()),t&2){let r=NM(2);aC(4),my("ngForOf",r.profile.spokenLanguages);}}function na(t,e){if(t&1&&(xd(0),Bs(1,"div",13),gy(2,"tm-collapsible-span",14),_d(),ma$1()),t&2){let r=NM(2);aC(2),my("characterLimit",r.charactersLimit)("text",r.profile.profileAwards);}}function ra(t,e){t&1&&(Bs(0,"span",11),cN(1," No awards have been provided yet "),_d());}function oa(t,e){if(t&1&&(Bs(0,"tg-row")(1,"tg-col",3),Qv(2,Ko,2,1,"h2",2),NN(3,"async"),Bs(4,"tg-row")(5,"tg-col",4)(6,"div",5)(7,"h3"),gy(8,"tg-icon",6),cN(9," Skills "),_d(),Qv(10,Xo,3,3,"ng-container",7)(11,ea,2,0,"ng-template",null,0,LN),_d()(),Bs(13,"tg-col",4),Qv(14,ia,5,1,"div",8),_d()(),Bs(15,"div",5)(16,"h3"),gy(17,"tg-icon",9),cN(18," Awards "),_d(),Qv(19,na,3,2,"ng-container",7)(20,ra,2,0,"ng-template",null,1,LN),_d()()()),t&2){let r=FM(12),i=FM(21),n=NM();aC(2),my("ngIf",AN(3,6,n.mediaSize.is.md$.or.greater$)),aC(8),my("ngIf",n.profile.keySkillIds.length)("ngIfElse",r),aC(4),my("ngIf",n.profile.spokenLanguages.length),aC(5),my("ngIf",n.profile.profileAwards)("ngIfElse",i);}}var dr=(()=>{let e=class e{constructor(i,n){this.mediaSize=i,this._agentProfileFacade=n,this.charactersLimit=260;}ngOnChanges(i){i.profile&&this.profile&&(this.keySkills$=this._agentProfileFacade.getAllKeySkills().pipe(Nt$1(n=>!n.isLoading&&!!n.item),be(n=>this.profile.keySkillIds.map(o=>n.item.find(p=>p.id===o)))));}};e.\u0275fac=function(n){return new(n||e)(Lo$1(G),Lo$1(pe))},e.\u0275cmp=z_({type:e,selectors:[["tm-career-overview"]],inputs:{profile:"profile",isLoading:"isLoading"},standalone:false,features:[ST],decls:1,vars:1,consts:[["noSkillsBlock",""],["noAwardsBlock",""],[4,"ngIf"],["xl","12"],["xl","6","mg","6","md","12"],[1,"pt-career-overview__information-row"],["alt","Skills","name","star-plus",1,"pt-career-overview__icon"],[4,"ngIf","ngIfElse"],["class","pt-career-overview__information-row",4,"ngIf"],["alt","Awards","name","trophy",1,"pt-career-overview__icon"],[4,"ngFor","ngForOf"],[1,"pt-career-overview__no-information"],["alt","Languages","name","speech-bubble-1",1,"pt-career-overview__icon"],[1,"pt-career-overview__formatted-text"],[3,"characterLimit","text"]],template:function(n,o){n&1&&Qv(0,oa,22,8,"tg-row",2),n&2&&my("ngIf",o.profile);},dependencies:[Wt$1,On$1,Fb,Ab,Ie,ov,mt,Un$1],styles:[`.pt-career-overview__formatted-text{white-space:pre-wrap}.pt-career-overview__icon{vertical-align:top}.pt-career-overview__information-row{margin-bottom:24px}.pt-career-overview__no-information{color:#a1a1a1}
7`],encapsulation:2});let t=e;return t})();var mr=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Bv({type:e}),e.\u0275inj=Oc({imports:[ti,Rb,Rr$1,mc,Ie,Ie,Ie,Zn$1,iv,bt]});let t=e;return t})();function sa(t,e){if(t&1&&(Bs(0,"span"),cN(1),_d()),t&2){let r=NM();aC(),Ky(" About ",r.profile?.firstName," ",r.profile?.lastName," ");}}function ca(t,e){if(t&1&&(Bs(0,"p",7)(1,"tg-info-box",8),cN(2),_d()()),t&2){let r=NM();my("tmGhost",r.isLoading),aC(2),Od(" ",r.profile?.careerDescription," ");}}function la(t,e){if(t&1&&gy(0,"tm-collapsible-span",9),t&2){let r=NM();my("characterLimit",r.biographyCharacterLimit)("text",r.profile==null?null:r.profile.biography);}}function pa(t,e){if(t&1&&(Bs(0,"div",10)(1,"h3",11),cN(2,"Additional info"),_d(),gy(3,"tm-collapsible-span",12),_d()),t&2){let r=NM();aC(3),my("characterLimit",r.additionalInfoLimit)("text",r.profile==null?null:r.profile.additionalInfo);}}function da(t,e){if(t&1&&(Bs(0,"tg-tag"),cN(1),_d()),t&2){let r=e.$implicit;aC(),Od(" ",r.name," ");}}function ma(t,e){if(t&1&&(Bs(0,"div",13)(1,"h3"),cN(2,"Serviced areas"),_d(),Qv(3,da,2,1,"tg-tag",14),_d()),t&2){let r=e.ngIf;aC(3),my("ngForOf",r);}}var gr=(()=>{let e=class e{constructor(i){this.mediaSize=i,this.biographyCharacterLimit=300,this.additionalInfoLimit=200;}};e.\u0275fac=function(n){return new(n||e)(Lo$1(G))},e.\u0275cmp=z_({type:e,selectors:[["tm-profile-header"]],inputs:{profile:"profile",isLoading:"isLoading"},standalone:false,decls:8,vars:10,consts:[["tgMarginTopSize","base",3,"tgMarginTop","tmGhost"],[4,"ngIf"],["tmGhostSm","",3,"tmGhost",4,"ngIf"],[1,"pt-agent-profile-header__bio-and-additional-info",3,"tmGhost"],[3,"characterLimit","text",4,"ngIf"],["class","pt-agent-profile-header__additional-info",4,"ngIf"],["class","pt-agent-profile-header__serviced-areas",4,"ngIf"],["tmGhostSm","",3,"tmGhost"],[1,"pt-agent-profile-header__career-overview"],[3,"characterLimit","text"],[1,"pt-agent-profile-header__additional-info"],[1,"pt-agent-profile-header__additional-info-heading"],[1,"pt-agent-profile-header__additional-info-text",3,"characterLimit","text"],[1,"pt-agent-profile-header__serviced-areas"],[4,"ngFor","ngForOf"]],template:function(n,o){n&1&&(Bs(0,"h1",0),NN(1,"async"),Qv(2,sa,2,2,"span",1),_d(),Qv(3,ca,3,2,"p",2),Bs(4,"div",3),Qv(5,la,1,2,"tm-collapsible-span",4)(6,pa,4,2,"div",5),_d(),Qv(7,ma,4,1,"div",6)),n&2&&(my("tgMarginTop",AN(1,8,o.mediaSize.is.sm$))("tmGhost",o.isLoading),aC(2),my("ngIf",!o.isLoading),aC(),my("ngIf",o.profile?.careerDescription),aC(),my("tmGhost",o.isLoading),aC(),my("ngIf",o.profile?.biography),aC(),my("ngIf",o.profile?.additionalInfo),aC(),my("ngIf",!o.isLoading&&o.profile?.propertyAgentSuburbs));}
7,dependencies:[Wt$1,On$1,dn,Iv,Vc,mt,ov,Un$1],styles:["[_nghost-%COMP%]{display:block}.pt-agent-profile-header__career-overview[_ngcontent-%COMP%]{background-color:#fff;border-left-color:#d7d5d2;font-weight:500}.pt-agent-profile-header__career-overview[_ngcontent-%COMP%]     .o-box-info__content{padding:0 0 0 16px}.pt-agent-profile-header__career-overview.o-box-info[_ngcontent-%COMP%]{border-left:4px solid #d7d5d2}.pt-agent-profile-header__additional-info-heading[_ngcontent-%COMP%]{padding-top:16px;margin:8px 0}.pt-agent-profile-header__bio-and-additional-info[_ngcontent-%COMP%]{white-space:pre-wrap}.pt-agent-profile-header__bio-and-additional-info[_ngcontent-%COMP%]   .pt-agent-profile-header__additional-info-text[_ngcontent-%COMP%]{display:block;padding-bottom:8px}.pt-agent-profile-header__serviced-areas[_ngcontent-%COMP%]{padding-top:16px}"]});let t=e;return t})();var fr=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Bv({type:e}),e.\u0275inj=Oc({imports:[ti,Ie,Ie,Zn$1,mc,Ec,ze,bt,iv]});let t=e;return t})();var fa=["reviewsTestimonialsHeader"],ua=t=>({page:t});function _a(t,e){if(t&1&&(Bs(0,"h2"),cN(1),NN(2,"async"),_d()),t&2){let r=NM();aC(),Od(" Reviews & Testimonials (",AN(2,1,r.reviewTestimonialResult$)?.totalCount||0,`)
8`);}}function ha(t,e){t&1&&gy(0,"img",8);}function ya(t,e){if(t&1){let r=TM();Bs(0,"a",11),_y("click",function(){let n=Fp(r).page,o=NM(4);return jp(o.navigateAndScroll(n))}),cN(1),_d();}if(t&2){let r=e.page,i=e.label;my("queryParams",CN(2,ua,r>1?r:null)),aC(),Od(" ",i," ");}}function Ca(t,e){if(t&1&&(Bs(0,"tg-pagination",9),NN(1,"async"),NN(2,"async"),Qv(3,ya,2,4,"a",10),_d()),t&2){let r,i=NM(3);my("currentPage",AN(1,2,i.currentPage$))("totalPages",(r=AN(2,4,i.reviewTestimonialResult$))==null?null:r.totalPages);}}function va(t,e){if(t&1&&(xd(0),Qv(1,ha,1,0,"img",4),NN(2,"async"),NN(3,"async"),Bs(4,"div",5),gy(5,"tm-reviews-testimonials-column",6)(6,"tm-reviews-testimonials-column",6),_d(),Qv(7,Ca,4,6,"tg-pagination",7),NN(8,"async"),ma$1()),t&2){let r=NM(2);aC(),my("ngIf",r.hasRMAReview&&!AN(2,4,r.disableAnalytics$)&&!AN(3,6,r.disableAds$)),aC(4),my("items",r.leftItems),aC(),my("items",r.rightItems),aC(),my("ngIf",AN(8,8,r.reviewTestimonialResult$)?.totalCount>0);}}function xa(t,e){t&1&&(Bs(0,"span",12),cN(1," No reviews or testimonials have been provided yet "),_d());}function Pa(t,e){if(t&1&&(xd(0),Qv(1,va,9,10,"ng-container",3),NN(2,"async"),Qv(3,xa,2,0,"ng-template",null,1,LN),ma$1()),t&2){let r=FM(4),i=NM();aC(),my("ngIf",AN(2,2,i.reviewTestimonialResult$)?.totalCount>0)("ngIfElse",r);}}var Sa=6,ur=(()=>{let e=class e{constructor(i,n,o,p,w,S){this.mediaSize=i,this._activatedRoute=n,this.router=o,this._windowRef=p,this._propertyAgentDirectoryService=w,this._appConfigFacade=S,this.reviewsTestimonialsCount=new mt$1,this._destroyed$=new q,this.leftItems=[],this.rightItems=[],this.hasRMAReview=false,this.disableAds$=this._appConfigFacade.selectDisableAds(),this.disableAnalytics$=this._appConfigFacade.selectDisableAnalytics();}
8ngOnInit(){this.isMobile$=this.mediaSize.getMediaSize().pipe(be(i=>i.isSm)),this._activatedRoute.fragment.pipe(Vf(this._destroyed$)).subscribe(i=>{i==="reviewTesti"&&this.navigateAndScroll(1);});}ngOnChanges(){if(!this.profile?.urlSlug)return;this.currentPage$=this._activatedRoute.queryParams.pipe(be(n=>+n.page||1));let i=this.currentPage$.pipe(kr$1(n=>this._propertyAgentDirectoryService.getReviewTestimonial(this.profile.urlSlug,{rows:Sa,page:n})),Ff(1));this.reviewTestimonialResult$=i,i.pipe(Vf(this._destroyed$)).subscribe(n=>{let o=n.list;this.leftItems=[],this.rightItems=[],o?.forEach((p,w)=>{if(!this.hasRMAReview&&p?.origin==="rate_my_agent"&&(this.hasRMAReview=true),!p?.content)return;let S=Nn$2(p);S&&(w%2===0?this.leftItems:this.rightItems).push(S);}),this.reviewsTestimonialsCount.emit(n.totalCount??0);});}navigateAndScroll(i){this.router.navigate([],{queryParams:{page:i>1?i:null},fragment:"reviewTesti",queryParamsHandling:"merge"}).then(()=>{setTimeout(()=>{this.isMobile$?.pipe(Vf(this._destroyed$)).subscribe(n=>{if(!this.reviewsTestimonialsHeader)return;let o=this.reviewsTestimonialsHeader.nativeElement.getBoundingClientRect().top;n&&(o=o-50),this._windowRef.useWindow(p=>p.scrollTo({top:o,behavior:"instant"}));});},0);});}ngOnDestroy(){this._destroyed$.next();}};e.\u0275fac=function(n){return new(n||e)(Lo$1(G),Lo$1(Re),Lo$1(ce),Lo$1(rt$1),Lo$1(fs),Lo$1(E))},e.\u0275cmp=z_({type:e,selectors:[["tm-reviews-testimonials"]],viewQuery:function(n,o){if(n&1&&xy(fa,5),n&2){let p;kM(p=LM())&&(o.reviewsTestimonialsHeader=p.first);}},inputs:{profile:"profile",isLoading:"isLoading"},outputs:{reviewsTestimonialsCount:"reviewsTestimonialsCount"},standalone:false,features:[ST],decls:5,vars:4,consts:[["reviewsTestimonialsHeader",""],["emptyReviewTestimonials",""],[4,"ngIf"],[4,"ngIf","ngIfElse"],["alt","","src","https://trixels.ratemyagent.com.au/trixel/init",4,"ngIf"],[1,"pt-review-testimonial__container-two-columns"],[3,"items"],["autoCompact","","class","tm-search-results__pagination",3,"currentPage","totalPages",4,"ngIf"],["alt","","src","https://trixels.ratemyagent.com.au/trixel/init"],["autoCompact","",1,"tm-search-results__pagination",3,"currentPage","totalPages"],[3,"queryParams","click",4,"tgPaginationItem"],[3,"click","queryParams"],[1,"pt-review-testimonial__no-information"]],template:function(n,o){n&1&&(gy(0,"div",null,0),Qv(2,_a,3,3,"h2",2),NN(3,"async"),Qv(4,Pa,5,4,"ng-container",2)),n&2&&(aC(2),my("ngIf",o.profile&&!AN(3,2,o.isMobile$)),aC(2),my("ngIf",!o.isLoading));},dependencies:[On$1,zb,Af,yn,Un$1],styles:[".pt-review-testimonial__no-information[_ngcontent-%COMP%]{color:#a1a1a1}.pt-review-testimonial__container-two-columns[_ngcontent-%COMP%]{display:flex;gap:1rem;align-items:flex-start}.pt-review-testimonial__container-two-columns[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1}.tm-search-results__pagination[_ngcontent-%COMP%]{margin-top:48px}@media(max-width:1023px){.pt-review-testimonial__container-two-columns[_ngcontent-%COMP%]{flex-direction:column}}"]});let t=e;return t})();var _r=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Bv({type:e}),e.\u0275inj=Oc({imports:[ti,mc,X_,bt,Gb,eu,Rn$1]});let t=e;return t})();var Ma=5,ba=["https://en.wikipedia.org/wiki/Real_estate_business","https://www.wikidata.org/wiki/Q202346"],Ta="https://www.wikidata.org/wiki/Q519076",Ia="English",Aa="properties on Trade Me",La="Latest listings on Trade Me",hr=(()=>{let e=class e{constructor(){this.type="ProfilePage";}map(i){let n=i.agentDirectoryProfileResponse,o=n.propertyAgentIndividualProfile;if(!o)return {id:null,jsonLd:null};let p="agentProfile",w=i.basePath,S=`${o.firstName??""} ${o.lastName??""}`.trim(),I=this.mapSkills(i.agentKeySkills),te=this.mapLanguages(o),ti=this.mapAreaServed(o),st=this.mapWebLinks(o),xr=this.mapAgentListings(i.agentListings,w),di=this.mapMakesOffer(xr,S,ti),Se={"@type":"Person",name:S,url:`${w}property/agent/${o.urlSlug??o.memberId}`,jobTitle:{"@type":"DefinedTerm",name:"Real Estate Agent",sameAs:Ta}};return n.agentProfilePhoto&&(Se.image=n.agentProfilePhoto),st.length>0&&(Se.sameAs=st),o.officeName&&o.officeMemberId&&(Se.worksFor={"@type":"RealEstateAgent",name:o.officeName,url:`${w}property/office/${o.officeMemberId}`}),I.length>0&&(Se.knowsAbout=I),te.length>0&&(Se.knowsLanguage=te),di&&(Se.makesOffer=di),{id:p,jsonLd:{"@context":"https://schema.org","@type":"ProfilePage",mainEntity:Se}}}mapSkills(i){let n=[...ba];return i.length>0&&n.push(...i),n}mapLanguages(i){let n=[Ia];return i?.spokenLanguages&&n.push(...i.spokenLanguages.map(o=>o.languageName).filter(o=>o!=null&&o.length>0)),n}mapAreaServed(i){let n=[];return i?.propertyAgentSuburbs&&n.push(...i.propertyAgentSuburbs.map(o=>o.name).filter(o=>o!=null&&o.length>0)),n}mapWebLinks(i){let n=[];return i?.webLinks&&n.push(...i.webLinks.map(o=>o.linkFullUrl).filter(o=>o!=null&&o.length>0)),n}mapAgentListings(i,n){return i.filter(o=>o.title&&o.canonicalPath).slice(0,Ma).map(o=>{let p=o.canonicalPath.startsWith("/")?o.canonicalPath.substring(1):o.canonicalPath;return {"@type":"RealEstateListing",name:o.title,url:`${n}${p}`}})}mapMakesOffer(i,n,o){if(i.length===0)return;let p={"@type":"Offer",name:`${n}'s ${Aa}`,category:{"@type":"ListItem",name:`${n}'s ${La}`,item:i}};return o.length>0&&(p.areaServed=o),p}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=G$2({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ea(t,e){if(t&1&&gy(0,"tm-meta-json-ld-inline",0),t&2){let r=NM();my("json",r.agentProfileSchema());}}var ei=(()=>{let e=class e{constructor(){this.agentProfileFacade=I(pe),this.agentCurrentListingsFacade=I(Ze),this.agentProfileJsonLdMapperService=I(hr),this.urlLocationService=I(p),this.appConfigFacade=I(E),this.agentProfileData=F(NI([this.agentProfileFacade.getCurrentAgentProfile(),this.getBasePath(),this.agentProfileFacade.getAllKeySkills()]).pipe(kr$1(([i,n,o])=>this.isValidProfileData(i)?this.agentCurrentListingsFacade.getAgentCurrentListings().pipe(Ga$1(()=>Ba$1(null))).pipe(be(p=>
8({agentDirectoryProfileResponse:i.item,basePath:n,agentKeySkills:this.extractAgentKeySkills(i.item.propertyAgentIndividualProfile?.keySkillIds,o),agentListings:p?.item?.agentListings||[]}))):Ba$1(null)),Ga$1(()=>Ba$1(null)))),this.agentProfileSchema=Zt$1(()=>{let i=this.agentProfileData();return i?this.agentProfileJsonLdMapperService.map(i)?.jsonLd:null});}getBasePath(){return this.appConfigFacade.selectClientConfig().pipe(be(i=>this.urlLocationService.getOrigin()+i.basePath))}isValidProfileData(i){return !!i?.item&&!!i.item.propertyAgentIndividualProfile}extractAgentKeySkills(i,n){if(!i||!n?.item)return [];let o=n.item;return i.map(p=>o.find(w=>w.id===p)).filter(p=>p!=null).map(p=>p.name).filter(p=>p!=null)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z_({type:e,selectors:[["tm-agent-profile-json-ld"]],decls:1,vars:1,consts:[[3,"json"]],template:function(n,o){n&1&&lM(0,Ea,1,1,"tm-meta-json-ld-inline",0),n&2&&uM(o.agentProfileSchema()?0:-1);},dependencies:[a$1,d],encapsulation:2});let t=e;return t})();var Fa=(t,e,r)=>({agency:t,profile:e,isLoading:r}),Da=()=>["/"],Na=()=>["/property"],Ra=()=>["/property","agent"],$a=t=>["/property","office",t];function ka(t,e){t&1&&gy(0,"tm-meta-json-ld-inline",1),t&2&&my("json",e);}function ja(t,e){if(t&1&&(Bs(0,"li",4)(1,"a",23),cN(2),_d()()),t&2){let r=NM(2).ngIf;aC(),my("routerLink",CN(2,$a,r.agency==null?null:r.agency.officeMemberId)),aC(),Od(" ",r.profile?.officeName," ");}}function Ba(t,e){if(t&1&&(xd(0),lM(1,ja,3,4,"li",4),Bs(2,"li",4),cN(3),_d(),ma$1()),t&2){let r=NM().ngIf;aC(),uM(r.profile?.officeName?1:-1),aC(2),Ky("",r.profile?.firstName," ",r.profile?.lastName);}}function Ha(t,e){t&1&&gy(0,"hr",13);}function Ga(t,e){t&1&&gy(0,"hr",13);}function Va(t,e){if(t&1&&gy(0,"tm-agent-listings",27),t&2){let r=NM(2).ngIf;my("profile",r.profile);}}function Ua(t,e){if(t&1&&(Bs(0,"div",24),gy(1,"tm-career-overview",12),Qv(2,Ha,1,0,"hr",25),gy(3,"tm-reviews-testimonials",12),Qv(4,Ga,1,0,"hr",25)(5,Va,1,1,"tm-agent-listings",26),_d()),t&2){let r=NM().ngIf;aC(),my("isLoading",r.isLoading)("profile",r.profile),aC(),my("ngIf",!r.isLoading),aC(),my("isLoading",r.isLoading)("profile",r.profile),aC(),my("ngIf",!r.isLoading),aC(),my("ngIf",!r.isLoading);}}function za(t,e){if(t&1){let r=TM();Bs(0,"tg-accordion",28)(1,"tg-accordion-item",29)(2,"tg-accordion-heading"),cN(3),_d(),gy(4,"tm-career-overview",12),_d(),Bs(5,"tg-accordion-item")(6,"tg-accordion-heading"),cN(7),_d(),Bs(8,"tm-reviews-testimonials",30),_y("reviewsTestimonialsCount",function(n){Fp(r);let o=NM(2);return jp(o.totalReviewsTestimonialsCount=n)}),_d()(),Bs(9,"tg-accordion-item")(10,"tg-accordion-heading",31),cN(11),_d(),gy(12,"tm-agent-listings",27),_d()();}if(t&2){let r=NM().ngIf,i=NM();aC(3),Od(" ",r.profile?.firstName,"'s career overview "),aC(),my("isLoading",r.isLoading)("profile",r.profile),aC(),jy("tm-agent-profile__profile-reviews--hide",!i.totalReviewsTestimonialsCount),aC(2),Od(" Reviews & Testimonials (",i.totalReviewsTestimonialsCount,") "),aC(),my("isLoading",r.isLoading)("profile",r.profile),aC(3),Od(" ",r.profile?.firstName,"'s properties "),aC(),my("profile",r.profile);}}function qa(t,e){if(t&1&&gy(0,"img",32),t&2){let r=e.ngIf,i=NM().ngIf;my("alt",mN(i.profile?.firstName+" "+i.profile?.lastName))("src",r,Ig);}}function Ya(t,e){if(t&1&&(xd(0),Bs(1,"tm-property-breadcrumbs")(2,"ol",3)(3,"li",4)(4,"a",5),cN(5," Home "),_d()(),Bs(6,"li",4)(7,"a",5),cN(8," Property "),_d()(),Bs(9,"li",4)(10,"a",5),cN(11," Find an Agent "),_d()(),Qv(12,Ba,4,3,"ng-container",6),_d()(),Bs(13,"div",7)(14,"tg-row")(15,"tg-col",8)(16,"div",9),gy(17,"tm-profile-card",10),NN(18,"async"),_d()(),Bs(19,"tg-col",11),gy(20,"tm-profile-header",12)(21,"hr",13),Qv(22,Ua,6,7,"div",14),NN(23,"async"),Qv(24,za,13,10,"tg-accordion",15),NN(25,"async"),_d()()(),Bs(26,"div",16)(27,"div",17)(28,"tg-row")(29,"tg-col")(30,"div",18),Qv(31,qa,1,3,"img",19),NN(32,"async"),Bs(33,"p",20)(34,"span",21),cN(35,"Is this your profile?"),_d(),cN(36," Showcase your latest sales when you "),Bs(37,"a",22),cN(38,"log in to OneHub"),_d()()()()()()(),ma$1()),t&2){let r=e.ngIf,i=NM();aC(4),my("routerLink",wN(21,Da)),aC(3),my("routerLink",wN(22,Na)),aC(3),my("routerLink",wN(23,Ra)),aC(2),my("ngIf",r.agency&&r.profile),aC(5),my("agency",r.agency)("isLoading",r.isLoading)("profilePhotoUrl",AN(18,13,i.profilePhotoUrl$))("profile",r.profile),aC(3),my("isLoading",r.isLoading)("profile",r.profile),aC(2),my("ngIf",AN(23,15,i.mediaSize.is.md$.or.greater$)),aC(2),my("ngIf",AN(25,17,i.mediaSize.is.sm$)&&r.profile),aC(7
8),my("ngIf",AN(32,19,i.profilePhotoUrl$));}}function Qa(t,e){t&1&&(Bs(0,"div",33)(1,"h1",34),cN(2,"Agent not found"),_d(),Bs(3,"a",35),cN(4," Try searching for a different agent "),_d(),Bs(5,"tg-svg",36),gy(6,"tm-moa-outline-illustration"),_d()());}var Wa=160,Ja={title:"Trade Me Property",description:"Property, on Trade Me Property."},yr=(()=>{let e=class e{constructor(i,n,o,p,w){this._agentProfileFacade=i,this._activatedRoute=n,this._metaDataFacade=o,this._breadcrumbListJsonLdMapperService=p,this.mediaSize=w,this._destroyed$=new q,this.displayDetails=false,this.totalReviewsTestimonialsCount=void 0;}ngOnInit(){this._metaDataFacade.updateMetaData(Ja);let i=this._agentProfileFacade.getCurrentAgentProfile();this.isLoading$=i.pipe(be(o=>o.isLoading)),this.hasError$=i.pipe(Nt$1(o=>!o.isLoading&&!!o.error),be(o=>!!o.error));let n=o=>!o.isLoading&&!!o.item;this.profile$=i.pipe(Nt$1(n),Bf(()=>this.displayDetails=true),be(o=>o.item.propertyAgentIndividualProfile)),i.pipe(Vf(this._destroyed$),Nt$1(n),li$1(this._activatedRoute.queryParams)).subscribe(([o,p])=>this.setPageMetadata(o.item,p)),this.agency$=i.pipe(Nt$1(n),be(o=>o.item.propertyAgency)),this.profilePhotoUrl$=i.pipe(Nt$1(n),be(o=>o.item.agentProfilePhoto||o$3)),this.breadcrumbsSchema$=this.profile$.pipe(be(o=>this._breadcrumbListJsonLdMapperService.map(this.buildBreadcrumbs(o))?.jsonLd),o$1());}setPageMetadata(i,n){let o=i.propertyAgentIndividualProfile;this._metaDataFacade.updateMetaData({description:(o.biography||"").substring(0,Wa),title:`${o.firstName} ${o.lastName} | Real Estate Agent`,image:i.agentProfilePhoto});}ngOnDestroy(){this._destroyed$.next();}buildBreadcrumbs(i){let n=[],o={canonicalPath:"/property",displayName:"Property"},p={canonicalPath:o.canonicalPath+"/agent",displayName:"Find an Agent"},w={canonicalPath:o.canonicalPath+"/office/"+i.officeMemberId,displayName:i.officeName},S={canonicalPath:p.canonicalPath+"/"+i.firstName+"-"+i.lastName,displayName:i.firstName+" "+i.lastName};return n.push(o,p),i.officeName&&n.push(w),n.push(S),n}};e.\u0275fac=function(n){return new(n||e)(Lo$1(pe),Lo$1(Re),Lo$1(l),Lo$1(B),Lo$1(G))},e.\u0275cmp=z_({type:e,selectors:[["tm-agent-profile"]],hostAttrs:["ngSkipHydration","true"],standalone:false,decls:10,vars:17,consts:[["noAgentTemplate",""],[3,"json"],[4,"ngIf","ngIfElse"],["tgBreadcrumbs","",1,"tm-agent-profile__breadcrumbs"],["tgBreadcrumbsItem",""],[3,"routerLink"],[4,"ngIf"],[1,"l-container","agent-profile__container"],["md","4","xl","3"],[1,"agent-profile__profile-card"],[3,"agency","isLoading","profilePhotoUrl","profile"],["md","8","xl","9"],[3,"isLoading","profile"],[1,"agent-profile__divider"],["class","agent-profile__profile-information-md-wrapper",4,"ngIf"],["class","agent-profile__profile-information-sm-wrapper",4,"ngIf"],[1,"onehub-stripe"],[1,"l-container"],[1,"onehub-stripe__content"],["class","onehub-stripe__agent-photo","tgCircleImage","",3,"src","alt",4,"ngIf"],[1,"onehub-stripe__text-container"],[1,"onehub-stripe__medium-text"],["href","https://www.onehub.co.nz/login/?utm_source=trademe_frend&utm_medium=referral&utm_campaign=tmp_agentprofile","target","_blank"],["linkColor","",3,"routerLink"],[1,"agent-profile__profile-information-md-wrapper"],["class","agent-profile__divider",4,"ngIf"],[3,"profile",4,"ngIf"],[3,"profile"],[1,"agent-profile__profile-information-sm-wrapper"],["expanded",""],[3,"reviewsTestimonialsCount","isLoading","profile"],["id","agentProperties"],["tgCircleImage","",1,"onehub-stripe__agent-photo",3,"src","alt"],[1,"l-container","tm-agent-profile__not-found-container"],[1,"tm-agent-profile__not-found-text"],["routerLink","/property/agent",1,"tm-agent-profile__not-found-link"],[1,"tm-agent-profile__not-found-illustration"]],template:function(n,o){if(n&1&&(gy(0,"tm-agent-profile-json-ld"),lM(1,ka,1,1,"tm-meta-json-ld-inline",1),NN(2,"async"),Qv(3,Ya,39,24,"ng-container",2),NN(4,"async"),NN(5,"async"),NN(6,"async"),NN(7,"async"),Qv(8,Qa,7,0,"ng-template",null,0,LN)),n&2){let p,w=FM(9);aC(),uM((p=AN(2,3,o.breadcrumbsSchema$))?1:-1,p),aC(2),my("ngIf",!AN(4,5,o.hasError$)&&SN(13,Fa,AN(5,7,o.agency$),AN(6,9,o.profile$),AN(7,11,o.isLoading$)))("ngIfElse",w);}},dependencies:[On$1,dr,ir,Hi,gr,Fb,Ab,Fg,lr$1,R_,B_,$e,Hg,$_,rn,$c,o,d,ur,ei,Un$1],styles:["[_nghost-%COMP%]{display:block}@media(min-width:768px){.agent-profile__container[_ngcontent-%COMP%]{padding-bottom:48px}}.pt-agent-profile__formatted-text[_ngcontent-%COMP%]{white-space:pre-wrap}@media(max-width:767px){.agent-profile__profile-card[_ngcontent-%COMP%]{margin-right:-16px;margin-left:-16px}}@media(min-width:480px)and (max-width:767px){.agent-profile__profile-card[_ngcontent-%COMP%]{margin-right:-24px;margin-left:-24px}}.agent-profile__divider[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:32px}@media(max-width:767px){.agent-profile__divider[_ngcontent-%COMP%]{margin-right:-16px;margin-left:-16px}}@media(min-width:480px)and (max-width:767px){.agent-profile__divider[_ngcontent-%COMP%]{margin-right:-24px;margin-left:-24px}}.agent-profile__profile-information-sm-wrapper[_ngcontent-%COMP%]{margin-bottom:0}.onehub-stripe[_ngcontent-%COMP%]{background-color:#f6f5f4}.onehub-stripe__content[_ngcontent-%COMP%]{display:flex;flex-flow:row nowrap;align-items:center;justify-content:center;padding:16px 0}@media(min-width:768px){.onehub-stripe__content[_ngcontent-%COMP%]{padding:8px 0;text-align:center}}.onehub-stripe__agent-photo[_ngcontent-%COMP%]{width:48px;min-width:48px;height:48px;margin-right:8px}.onehub-stripe__text-container[_ngcontent-%COMP%]{margin:0}.onehub-stripe__medium-text[_ngcontent-%COMP%]{font-weight:500}.tm-agent-profile__breadcrumbs[_ngcontent-%COMP%]{margin-bottom:0}.tm-agent-profile__not-found-container[_ngcontent-%COMP%]{padding-top:32px;text-align:center}.tm-agent-profile__not-found-text[_ngcontent-%COMP%]{margin-bottom:16px;font-weight:400;text-align:center}.tm-agent-profile__not-found-link[_ngcontent-%COMP%]{display:block;margin-bottom:32px}.tm-agent-profile__not-found-illustration[_ngcontent-%COMP%]{display:block;width:150px;margin:auto}.tm-agent-profile__profile-reviews--hide[_ngcontent-%COMP%]{display:none}"]});let t=e;return t})();
8var Cr=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Bv({type:e}),e.\u0275inj=Oc({imports:[ti,mr,pr,sn,fr,Rb,tv,O_,Xi,Ve,U_,eu,qc,a,a$1,_r,ei]});let t=e;return t})();var Ka=[{path:"all-agent-locations",loadComponent:()=>import('./agent-location-directory.component-Cned58bO.js').then(t=>t.AgentLocationDirectoryComponent)},{path:"search",component:ci,data:{feature:{leaderboardAd:false},newRelicTransactionName:"agent-search"}},{path:"search/:refiner/:urlSlug",component:ci,data:{feature:{leaderboardAd:false},newRelicTransactionName:"agent-search"}},{path:":urlSlug",component:yr}],vr=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Bv({type:e}),e.\u0275inj=Oc({imports:[eu.forChild(Ka),eu]});let t=e;return t})();var tm=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Bv({type:e}),e.\u0275inj=Oc({imports:[Cr,vr,ge,Qn,Yn$1]});let t=e;return t})();
9export{tm as AgentsModule};//# sourceMappingURL=agents.module-NyLVvR_c.js.map
10
11//# debugId=7755ddb3-4d19-5142-87c4-9265e2d95c16

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.