PageSourceSearch

https://www.trademe.co.nz/a/static/agent-appraisal-home.module-BkvC-PwC.js

js trademe.co.nz collected 2026-09-24 08:42:35 UTC 70,286 bytes, 7 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]="6b3ba29b-3563-5585-8f39-f7d07cf36225")}catch(e){}}();
3import {g as ge}from'./chunk-BSvLaO83.js';import {C}from'./chunk-Dpa1JJRp.js';import {J as Jt,C as Ct,Y as Yt,t as ti$1,n as ni$1,T,i as ii$1,l as lt,d as dt,A as At$1}from'./chunk-D7yPRBj3.js';import {a0 as Za,a1 as _o,a2 as VO,rc as _t,e_ as f,rd as F,w as we,c as He$1,f0 as Qi,re as x0,V as Vc,ac as $c,a3 as eu,aB as ee,az as br,bR as X_,aC as Cb,fR as Ns,ln as dc,d as dr,a5 as R,f9 as rt,j as jM,a4 as qc,al as vh,am as dg,I as Ia,q as _D,p as bf,cx as Q_,Q as Qx,c8 as zD,a6 as Re,aS as mc,a8 as ce,aJ as G,bZ as pO,cg as YI,aU as mO,b_ as IO,cm as Ip,cn as yO,P as d,rf as O,pd as B_,b$ as rn,rg as fi$1,rh as P,ad as bO,b1 as iD,ae as yA,cd as wA,C as X_$1,D as TD,af as DA,e0 as Xa,b4 as pA,O as rE,bc as oE,v,ag as W,bf as F$1,f as bn$1,m as ml,ia as I,ak as Xp,aQ as Xt,q6 as ns,bt as nm,aL as Gm,ej as Um,ek as qm,aV as Vi$1,el as ss,A as Ai$1,aM as Bm,aN as Wn$1,gB as Hl,gD as $l,eT as Bl,E as Eo,aO as Ri$1,aP as K_,aW as ce$1,aX as Eh,aY as Fh,eU as Nh,n as nn,em as Ss,en as xb,kJ as Ds,aZ as Bh,eA as Zr,o as kD,dw as jD,dx as Cx,dy as wx,fc as ZI,fd as DO,b as Lc,h as dx,an as cE,K as KS,ap as aE,F as XS,N as Af,s as yx,b0 as Mf,b2 as Ja,r as Xh,t as eg,R as Ry,cs as Pt,et as oo,bd as Te,ah as Fe,p0 as pC,z,y,ce as hA,da as FO,dG as xO,b3 as Tx,eX as Bx,fM as gA,dI as EA,ao as eA}from'./main-CAjEjBVh.js';import'./chunk-CS9-BIza.js';import {d as de,Z,o as ot,A as At}from'./chunk-DncV6Jw4.js';import {l}from'./chunk-XApU2rQR.js';import'./chunk-Bpp08yWl.js';import'./chunk-YA-QRxSh.js';import'./chunk-CBvmUJQq.js';import'./chunk-O9IORHlX.js';import'./chunk-D-lnnDRR.js';var vn=["appraisalForm"],An=e=>({isSm:e}),Xe=(e,n)=>({htmlTags:e,maxlength:n}),Mn=(e,n)=>({email:e,maxlength:n}),yn=e=>({message:"Please select an option",validator:e}),Sn=e=>({available:e}),Pn=e=>({"display-outside":e}),pn=(e,n,t)=>({maxlength:e,minlength:n,pattern:t});function bn(e,n){if(e&1){let t=dx();Ia(0,"tg-input-container",22)(1,"input",23),cE("ngModelChange",function(o){Xh(t);let r=yx(2);return eA(r.contactNumber,o)||(r.contactNumber=o),eg(o)}),bf(),KS(),bf();}if(e&2){let t=yx(2);X_$1(),aE("ngModel",t.contactNumber),TD("tmValidateMaxLength",t.MAX_ENQUIRER_FIELD.phone)("validation",gA(4,pn,t.MAX_LENGTH_MESSAGES.phone,t.FORM_ERRORS.phoneTooShort,t.FORM_ERRORS.invalidPhone))("pattern",t.PHONE_PATTERN),XS();}}function wn(e,n){if(e&1&&(Ia(0,"option",24),Qx(1),bf()),e&2){let t=n.$implicit;TD("ngValue",t),X_$1(),Af(" ",t," ");}}function On(e,n){if(e&1&&(Ia(0,"option",24),Qx(1),bf()),e&2){let t=n.$implicit;TD("ngValue",t),X_$1(),Af(" ",t," ");}}function En(e,n){if(e&1){let t=dx();Ia(0,"tg-select-container",25)(1,"select",26),kD("ngModelChange",function(o){Xh(t);let r=yx(2);return eg(r.selectPreferredContactMethod(o))}),iD(2,On,2,2,"option",13),bf(),KS(),bf();}if(e&2){let t=yx(2);X_$1(),TD("ngModel",t.defaultContactMethod),XS(),X_$1(),TD("ngForOf",t.contactMethods);}}function Tn(e,n){if(e&1){let t=dx();Ia(0,"tg-input-container",22)(1,"input",23),cE("ngModelChange",function(o){Xh(t);let r=yx(2);return eA(r.contactNumber,o)||(r.contactNumber=o),eg(o)}),bf(),KS(),bf();}if(e&2){let t=yx(2);X_$1(),aE("ngModel",t.contactNumber),TD("tmValidateMaxLength",t.MAX_ENQUIRER_FIELD.phone)("validation",gA(4,pn,t.MAX_LENGTH_MESSAGES.phone,t.FORM_ERRORS.phoneTooShort,t.FORM_ERRORS.invalidPhone))("pattern",t.PHONE_PATTERN),XS();}}function Fn(e,n){if(e&1){let t=dx();Ia(0,"tm-address-search",27),cE("ngModelChange",function(o){Xh(t);let r=yx(2);return eA(r.propertyAddress,o)||(r.propertyAddress=o),eg(o)}),bf(),KS();}if(e&2){let t=yx(2);aE("ngModel",t.propertyAddress),XS();}}function In(e,n){if(e&1&&(Ia(0,"option",24),Qx(1),bf()),e&2){let t=n.$implicit;TD("ngValue",t),X_$1(),Af(" ",t," ");}}function Nn(e,n){if(e&1){let t=dx();Ia(0,"tg-select-container",25)(1,"select",26),kD("ngModelChange",function(o){Xh(t);let r=yx(2);return eg(r.selectPreferredContactMethod(o))}),iD(2,In,2,2,"option",13),bf(),KS(),bf();}if(e&2){let t=yx(2);X_$1(),TD("ngModel",t.defaultContactMethod),XS(),X_$1(),TD("ngForOf",t.contactMethods);}}function Ln(e,n){if(e&1){let t=dx();Ia(0,"div",28)(1,"tg-input-container",29)(2,"textarea",30),cE("ngModelChange",function(o){Xh(t);let r=yx(2);
3return eA(r.message,o)||(r.message=o),eg(o)}),Qx(3,"                        "),bf(),KS(),bf()();}if(e&2){let t=yx(2);X_$1(2),aE("ngModel",t.message),TD("tmValidateMaxLength",t.AGENT_MESSAGE_MAX_LENGTH)("validation",hA(3,Xe,t.FORM_ERRORS.htmlTags,t.MAX_LENGTH_MESSAGES.message)),XS();}}function Rn(e,n){e&1&&(Ia(0,"button",31),Qx(1," Send appraisal request "),bf());}function kn(e,n){e&1&&(Ia(0,"div",35)(1,"button",31),Qx(2," Send appraisal request "),bf()());}function Vn(e,n){if(e&1){let t=dx();Ia(0,"div",32)(1,"div",33)(2,"tg-input-container",29)(3,"textarea",30),cE("ngModelChange",function(o){Xh(t);let r=yx(2);return eA(r.message,o)||(r.message=o),eg(o)}),Qx(4,"                        "),bf(),KS(),bf()(),iD(5,kn,3,0,"div",34),bf();}if(e&2){let t=yx().ngIf,i=yx();X_$1(3),aE("ngModel",i.message),TD("tmValidateMaxLength",i.AGENT_MESSAGE_MAX_LENGTH)("validation",hA(4,Xe,i.FORM_ERRORS.htmlTags,i.MAX_LENGTH_MESSAGES.message)),XS(),X_$1(2),TD("ngIf",!t.isSm);}}function Dn(e,n){e&1&&(Ia(0,"button",31),Qx(1," Send appraisal request "),bf());}function Bn(e,n){if(e&1){let t=dx();Ia(0,"div")(1,"div",4)(2,"div",5)(3,"tg-input-container",6)(4,"input",7),cE("ngModelChange",function(o){Xh(t);let r=yx();return eA(r.contactFirstName,o)||(r.contactFirstName=o),eg(o)}),bf(),KS(),bf(),iD(5,bn,2,8,"tg-input-container",8),Ia(6,"tg-input-container",9)(7,"input",10),cE("ngModelChange",function(o){Xh(t);let r=yx();return eA(r.contactEmail,o)||(r.contactEmail=o),eg(o)}),bf(),KS(),bf(),Ia(8,"tg-select-container",11)(9,"select",12),kD("ngModelChange",function(o){Xh(t);let r=yx();return eg(r.selectSellingTimeframe(o))}),iD(10,wn,2,2,"option",13),bf(),KS(),bf(),iD(11,En,3,2,"tg-select-container",14),bf(),Ia(12,"div",15),iD(13,Tn,2,8,"tg-input-container",8)(14,Fn,1,1,"tm-address-search",16)(15,Nn,3,2,"tg-select-container",14)(16,Ln,4,6,"div",17)(17,Rn,2,0,"button",18),bf(),iD(18,Vn,6,7,"div",19),bf(),Ia(19,"div",20)(20,"p"),Qx(21," By submitting this form, you accept our "),Ia(22,"a",21),Qx(23,"Privacy Policy"),bf(),Qx(24," and consent to your details being passed to a local agent. "),bf(),iD(25,Dn,2,0,"button",18),bf()();}if(e&2){let t=n.ngIf,i=yx();X_$1(4),aE("ngModel",i.contactFirstName),TD("tmValidateMaxLength",i.AGENT_NAME_MAX_LENGTH)("validation",hA(19,Xe,i.FORM_ERRORS.htmlTags,i.MAX_LENGTH_MESSAGES.name)),XS(),X_$1(),TD("ngIf",t.isSm),X_$1(2),aE("ngModel",i.contactEmail),TD("tmValidateMaxLength",i.MAX_ENQUIRER_FIELD.email)("validation",hA(22,Mn,i.FORM_ERRORS.invalidEmail,i.MAX_LENGTH_MESSAGES.email)),XS(),X_$1(2),TD("ngModel",i.defaultSellingTimeframe)("validation",pA(27,Sn,pA(25,yn,i.validateSellingTimeframeIsSelected))),XS(),X_$1(),TD("ngForOf",i.sellingTimeframes),X_$1(),TD("ngIf",!i.isAgentAppraisalForm),X_$1(2),TD("ngIf",!t.isSm),X_$1(),TD("ngIf",i.isAgentAppraisalForm),X_$1(),TD("ngIf",i.isAgentAppraisalForm),X_$1(),TD("ngIf",!i.isAgentAppraisalForm),X_$1(),TD("ngIf",!t.isSm&&!i.isAgentAppraisalForm),X_$1(),TD("ngIf",i.isAgentAppraisalForm),X_$1(),TD("ngClass",pA(29,Pn,i.isAgentAppraisalForm)),X_$1(6),TD("ngIf",t.isSm);}}var an=100,on=1e3,X=(function(e){return e.UNIVERSAL="UNIVERSAL",e.AGENT_APPRAISAL="AGENT_APPRAISAL",e})(X||{}),sn=(()=>{let n=class n{constructor(i,o,r,v$1,P){this._window=i,this._propertyAgentAppraisalsService=o,this._notificationService=r,this._changeDetectorRef=v$1,this._mediaSizeFacade=P,this.memberEmail="",this.memberPhone="",this.memberName="",this.formType=X.UNIVERSAL,this.complete=new Pt,this.FORM_ERRORS=ti$1,this.PHONE_PATTERN=ni$1,this.MAX_ENQUIRER_FIELD=T,this.AGENT_NAME_MAX_LENGTH=an,this.AGENT_MESSAGE_MAX_LENGTH=on,this.MAX_LENGTH_MESSAGES={name:ii$1(an),phone:ii$1(T.phone),email:ii$1(T.email),message:ii$1(on)},this.response="",this.message="",this.preferredContactMethod=0,this.sellingTimeframe=0,this.contactMethods=Object.values(lt),this.sellingTimeframes=Object.values(dt),this.defaultContactMethod=lt.Any,this.defaultSellingTimeframe=dt.PleaseSelect,this.isSm$=new oo(false),this.isAgentAppraisalForm=false,this.isLoading=false,this._destroyRef=v(Te),this.contactMethodMap={[lt.Any]:0,[lt.Email]:1,[lt.PhoneCall]:2,[lt.TextMessage]:3},this.timeframeMap={[dt.PleaseSelect]:-1,[dt.ImNotSure]:0,[dt.Immediately]:1,[dt.WithinNextThreeMonths]:2,[dt.WithinNextSixMonths]:3,[dt.WithinNextTwelveMonths]:4};}ngOnInit(){this.contactEmail=this.memberEmail,this.contactNumber=this.memberPhone,this.contactFirstName=this.memberName,this.isSm$=this._mediaSizeFacade.getMediaSize().pipe(Fe(i=>i.isSm)),this.isAgentAppraisalForm=this.formType===X.AGENT_APPRAISAL,this._window.useWindow(i=>i.scroll(0,0));}
3ngOnChanges(i){i.formType&&(this.isAgentAppraisalForm=this.formType===X.AGENT_APPRAISAL);}selectPreferredContactMethod(i){this.preferredContactMethod=this.contactMethodMap[i.trim()];}selectSellingTimeframe(i){this.sellingTimeframe=this.timeframeMap[i.trim()];}validateSellingTimeframeIsSelected(i){return i.value===dt.PleaseSelect?{available:true}:{}}onSubmit(){return I(this,null,function*(){if(this.appraisalForm.invalid||this.isLoading)return;this.isLoading=true;let o={agentSlugs:this.agents?.map(r=>r.slug).filter(r=>!!r),contactEmail:this.contactEmail,contactFirstName:this.contactFirstName,contactLastName:this.contactLastName,contactNumber:this.contactNumber&&At$1(this.contactNumber),message:this.message,propertyAddress:this.propertyAddress,preferredContactMethod:this.preferredContactMethod,sellingTimeframe:this.sellingTimeframe};try{let r=(yield this.getRecaptchaToken?.())??void 0;yield pC(this._propertyAgentAppraisalsService.create(z(y({},o),{recaptchaToken:r}))),this.isLoading=!1,this.complete.next(o),this._changeDetectorRef.markForCheck();}catch(r){this.isLoading=false,this._notificationService.error(r instanceof Error||typeof r=="string"?r:"An unexpected error occurred. Please try again."),this._changeDetectorRef.markForCheck();}})}};n.\u0275fac=function(o){return new(o||n)(R(rt),R(ns),R(nm),R(mc),R(G))},n.\u0275cmp=jM({type:n,selectors:[["tm-agent-appraisal-form"]],viewQuery:function(o,r){if(o&1&&jD(vn,7),o&2){let v;Cx(v=wx())&&(r.appraisalForm=v.first);}},inputs:{agents:"agents",propertyAddress:"propertyAddress",getRecaptchaToken:"getRecaptchaToken",memberEmail:"memberEmail",memberPhone:"memberPhone",memberName:"memberName",formType:"formType"},outputs:{complete:"complete"},standalone:false,features:[Zr],decls:5,vars:5,consts:[["appraisalForm","ngForm"],[1,"tm-agent-appraisal-form",3,"ngSubmit"],["autoFocusFirstError",""],[4,"ngIf"],[1,"tm-agent-appraisal-form__body"],[1,"left-column"],["label","Your name","clearable","","showRemainingCharacters","false"],["tgTextInput","","type","text","tmValidateNoHtmlTags","","name","Your name","required","","minlength","3",3,"ngModelChange","ngModel","tmValidateMaxLength","validation"],["label","Phone number","clearable","","showRemainingCharacters","false",4,"ngIf"],["label","Email address","clearable","","showRemainingCharacters","false"],["tgTextInput","","type","email","email","","name","Email address","required","","minlength","5",3,"ngModelChange","ngModel","tmValidateEmail","tmValidateMaxLength","validation"],["label","When are you looking to sell?"],["name","selling timeframe","tgSelect","","required","",3,"ngModelChange","ngModel","validation"],[3,"ngValue",4,"ngFor","ngForOf"],["label","Preferred contact method",4,"ngIf"],[1,"right-column"],["class","tm-agent-appraisal-form__address-search","placeholder","Enter an address","label","Property you would like to get appraised","name","Appraisal Address",3,"ngModel","ngModelChange",4,"ngIf"],["class","tm-agent-appraisal-form__textarea",4,"ngIf"],["tgButton2","","tgStyle","primary","type","submit",4,"ngIf"],["class","bottom-column",4,"ngIf"],[1,"tm-agent-appraisal-form__footer",3,"ngClass"],["href","https://help.trademe.co.nz/hc/en-us/articles/360007001832-Privacy-policy","target","_blank"],["label","Phone number","clearable","","showRemainingCharacters","false"],["tgTextInput","","type","text","name","Phone number","required","","minlength","6",3,"ngModelChange","ngModel","tmValidateMaxLength","validation","pattern"],[3,"ngValue"],["label","Preferred contact method"],["name","contact method","tgSelect","",3,"ngModelChange","ngModel"],["placeholder","Enter an address","label","Property you would like to get appraised","name","Appraisal Address",1,"tm-agent-appraisal-form__address-search",3,"ngModelChange","ngModel"],[1,"tm-agent-appraisal-form__textarea"],["label","Notes","showRemainingCharacters","false"],["tmValidateNoHtmlTags","","placeholder","Any other details you\u2019d like to share with the agent","name","message","rows","5","tgTextInput","",1,"no-resize",3,"ngModelChange","ngModel","tmValidateMaxLength","validation"],["tgButton2","","tgStyle","primary","type","submit"],[1,"bottom-column"],[1,"text-area"],["class","form-button",4,"ngIf"],[1,"form-button"]],template:function(o,r){o&1&&(Ia(0,"form",1,0),kD("ngSubmit",function(){return r.onSubmit()}),_D(2,"tg-validation-summary",2),iD(3,Bn,26,31,"div",3),yA(4,"async"),bf()),o&2&&(X_$1(3),TD("ngIf",pA(3,An,DA(4,1,r.isSm$))));},dependencies:[pO,YI,mO,Gm,Um,qm,Vi$1,ss,Ai$1,Bm,Wn$1,Hl,$l,Bl,Eo,Ri$1,K_,ce$1,Eh,Fh,Nh,He$1,nn,Ss,xb,Ds,Bh,Z,ot,At,Yt,bO],styles:["tm-agent-appraisal-form[_nghost-%COMP%]{display:block}tm-agent-appraisal-form[_nghost-%COMP%]   .tm-agent-appraisal__form[_ngcontent-%COMP%]{display:grid;margin-bottom:100px}.tm-agent-appraisal-form__body[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;column-gap:16px}@media(min-width:768px){.tm-agent-appraisal-form__body[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}}.tm-agent-appraisal-form[_ngcontent-%COMP%]   .bottom-column[_ngcontent-%COMP%]{grid-column:1/-1;width:100%;display:flex;flex-direction:column;align-items:center}.tm-agent-appraisal-form[_ngcontent-%COMP%]   .bottom-column[_ngcontent-%COMP%]   .text-area[_ngcontent-%COMP%]{width:100%}.tm-agent-appraisal-form[_ngcontent-%COMP%]   .bottom-column[_ngcontent-%COMP%]   .form-button[_ngcontent-%COMP%]{width:100%;text-align:center;margin-top:-20px}.tm-agent-appraisal-form[_ngcontent-%COMP%]   .bottom-column[_ngcontent-%COMP%]   .form-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}@media(min-width:768px){.tm-agent-appraisal-form[_ngcontent-%COMP%]   .bottom-column[_ngcontent-%COMP%]   .form-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:50%;margin-bottom:0}}.tm-agent-appraisal-form[_ngcontent-%COMP%]   .bottom-column[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{overflow:auto}@media(min-width:768px){.tm-agent-appraisal-form[_ngcontent-%COMP%]   .bottom-column[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{height:60px}}@media(min-width:768px){.tm-agent-appraisal-form__textarea[_ngcontent-%COMP%]{margin-top:-16px}}@media(min-width:768px){.tm-agent-appraisal-form[_ngcontent-%COMP%]   .left-column[_ngcontent-%COMP%]{grid-column:1}.tm-agent-appraisal-form[_ngcontent-%COMP%]   .right-column[_ngcontent-%COMP%]{grid-column:2;display:flex;flex-direction:column;justify-content:space-between}}.tm-agent-appraisal-form__footer[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:.875rem;text-align:center}@media(max-width:767px){.tm-agent-appraisal-form__footer[_ngcontent-%COMP%]{margin-bottom:-216px;padding-bottom:4px}.tm-agent-appraisal-form__footer[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:56px;margin-bottom:32px}}@media screen and (min-width:768px){.tm-agent-appraisal-form[_ngcontent-%COMP%]   .display-outside[_ngcontent-%COMP%]{margin-bottom:-90px;padding-bottom:4px}}.tm-agent-appraisal-form[_ngcontent-%COMP%]   .display-outside[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:20px}.tm-agent-appraisal-form__address-search[_ngcontent-%COMP%]{margin-bottom:24px}.tm-agent-appraisal-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%;border-radius:8px}[_nghost-%COMP%]     tg-validation-messages{display:block;margin-top:4px;margin-bottom:-24px;font-size:12px}"]});let e=n;return e})();var H=(()=>{let n=class n{constructor(){this.viewMode="horizontal";}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=jM({type:n,selectors:[["tm-agent-appraisal-value-card"]],inputs:{viewMode:"viewMode"},decls:36,vars:4,consts:[[1,"tm-agent-appraisal-value-card__card"],[1,"tm-agent-appraisal-value-card__heading"],[1,"tm-agent-appraisal-value-card__list"],[1,"tm-agent-appraisal-value-card__item"],[1,"tm-agent-appraisal-value-card__icon"],["name","new-sparkle","aria-hidden","true"],[1,"tm-agent-appraisal-value-card__text"]],template:function(o,r){o&1&&(Ia(0,"tg-card",0)(1,"p",1),Qx(2,"Why get an appraisal?"),bf(),Ia(3,"ul",2)(4,"li",3)(5,"div",4),_D(6,"tg-icon",5),bf(),Ia(7,"div")(8,"strong"),Qx(9," Understand price: "),bf(),Ia(10,"p",6),Qx(11," An agent can provide a professional, unbiased opinion on the current market value of your home. "),bf()()(),Ia(12,"li",3)(13,"div",4),_D(14,"tg-icon",5),bf(),Ia(15,"div")(16,"strong"),Qx(17," Identify improvements: "),bf(),Ia(18,"p",6),Qx(19," An appraisal can identify improvements or repairs to boost your home's value and appeal for a better price. "),bf()()(),Ia(20,"li",3)(21,"div",4),_D(22,"tg-icon",5),bf(),Ia(23,"div")(24,"strong"),Qx(25," Sell faster: "),bf(),Ia(26,"p",6),Qx(27," Homes that are accurately priced and well presented tend to sell more quickly. "),bf()()(),Ia(28,"li",3)(29,"div",4),_D(30,"tg-icon",5),bf(),Ia(31,"div")(32,"strong"),Qx(33," Reduced Stress: "),bf(),Ia(34,"p",6),Qx(35," Having a professional guide you through selling can ease the burden and streamline the process. "),bf()()()()()),o&2&&zD("horizontal",r.viewMode==="horizontal")("vertical",r.viewMode==="vertical");},dependencies:[X_,Q_,we],styles:["tm-agent-appraisal-value-card[_nghost-%COMP%]{display:block}.tm-agent-appraisal-value-card__card[_ngcontent-%COMP%]{border-radius:24px;padding:16px;text-align:center}@media screen and (min-width:768px){.tm-agent-appraisal-value-card__card[_ngcontent-%COMP%]{padding:32px 16px;margin-bottom:0}}.tm-agent-appraisal-value-card__card__heading[_ngcontent-%COMP%]{font-size:1rem;font-weight:700;line-height:20px;margin-bottom:8px}.tm-agent-appraisal-value-card__list[_ngcontent-%COMP%]{margin-top:8px;display:flex;flex-direction:column}@media screen and (min-width:768px){.tm-agent-appraisal-value-card__list[_ngcontent-%COMP%]{flex-direction:row;justify-content:space-between}}.tm-agent-appraisal-value-card__item[_ngcontent-%COMP%]{align-items:flex-start;text-align:left;color:#5a5653;line-height:20px;margin-bottom:8px}@media screen and (min-width:768px){.tm-agent-appraisal-value-card__item[_ngcontent-%COMP%]{flex:1 1 45%;text-align:center;margin-bottom:32px}}.tm-agent-appraisal-value-card__icon[_ngcontent-%COMP%]{color:#ffda00;margin-bottom:8px}@media screen and (min-width:768px){.tm-agent-appraisal-value-card__text[_ngcontent-%COMP%]{margin:8px}}.horizontal[_ngcontent-%COMP%]   .tm-agent-appraisal-value-card__heading[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:500;color:#44413d}@media screen and (min-width:768px){.horizontal[_ngcontent-%COMP%]   .tm-agent-appraisal-value-card__heading[_ngcontent-%COMP%]{font-size:1.5rem}}.horizontal[_ngcontent-%COMP%]   .tm-agent-appraisal-value-card__item[_ngcontent-%COMP%]{text-align:center;margin-bottom:16px}@media screen and (max-width:767px){.horizontal[_ngcontent-%COMP%]   .tm-agent-appraisal-value-card__item[_ngcontent-%COMP%]{text-align:left;display:flex;flex-direction:row}}.horizontal[_ngcontent-%COMP%]   .tm-agent-appraisal-value-card__item[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{padding:0 8px}.vertical[_ngcontent-%COMP%]   .tm-agent-appraisal-value-card__heading[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:500;color:#44413d}@media screen and (min-width:768px){.vertical[_ngcontent-%COMP%]   .tm-agent-appraisal-value-card__heading[_ngcontent-%COMP%]{font-size:1.07rem}}.vertical[_ngcontent-%COMP%]   .tm-agent-appraisal-value-card__list[_ngcontent-%COMP%]{flex-direction:column}@media screen and (min-width:768px){.vertical[_ngcontent-%COMP%]   .tm-agent-appraisal-value-card__list[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{font-size:.875rem}}.vertical[_ngcontent-%COMP%]   .tm-agent-appraisal-value-card__item[_ngcontent-%COMP%]{margin-bottom:16px}@media screen and (max-width:767px){.vertical[_ngcontent-%COMP%]   .tm-agent-appraisal-value-card__item[_ngcontent-%COMP%]{display:flex;flex-direction:row}.vertical[_ngcontent-%COMP%]   .tm-agent-appraisal-value-card__item[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{padding:0 8px}}.vertical[_ngcontent-%COMP%]   .tm-agent-appraisal-value-card__text[_ngcontent-%COMP%]{margin:8px 0}"]});let e=n;return e})();function Gn(e,n){if(e&1&&_D(0,"img",15),e&2){let t=yx(2);
3TD("src",t.profile.officeLogo,Ry)("alt",t.profile.officeName);}}function zn(e,n){if(e&1){let t=dx();Ia(0,"tg-checkbox",16),cE("ngModelChange",function(o){Xh(t);let r=yx(2);return eA(r.selected,o)||(r.selected=o),eg(o)}),kD("ngModelChange",function(o){Xh(t);let r=yx(2);return eg(r.selectedChange.emit(o))}),bf(),KS();}if(e&2){let t=yx(2);TD("showValidation",false),aE("ngModel",t.selected),XS();}}function Wn(e,n){if(e&1&&(Ia(0,"div")(1,"div",17),Qx(2),bf(),Ia(3,"div",18),Qx(4,"Total sales"),bf()()),e&2){let t=yx(2);X_$1(2),rE(t.profile.totalSales);}}function jn(e,n){if(e&1&&(Ia(0,"div")(1,"div",17),Qx(2),bf(),Ia(3,"div",18),Qx(4,"Local sales"),bf()()),e&2){let t=yx(2);X_$1(2),rE(t.profile.localSales);}}function Un(e,n){if(e&1&&(Ia(0,"div",19)(1,"div")(2,"div",20),Qx(3),yA(4,"number"),bf(),Ia(5,"div",21),Qx(6),bf()(),Ia(7,"div")(8,"div",20),Qx(9,"Sale price"),bf(),Ia(10,"div",21),Qx(11),bf()(),Ia(12,"div")(13,"div",20),Qx(14,"Sale date"),bf(),Ia(15,"div",21),Qx(16),yA(17,"date"),bf()()()),e&2){let t=n.ngIf;X_$1(3),Af(" Sold ",EA(4,4,t.distance,"1.0-0"),"m away "),X_$1(3),rE(t.address),X_$1(5),rE(t.price),X_$1(5),rE(EA(17,7,t.date,"MMM yyyy"));}}function Xn(e,n){if(e&1&&(Ia(0,"div",1)(1,"div",2),iD(2,Gn,1,2,"img",3),bf(),Ia(3,"div",4)(4,"div",5),iD(5,zn,1,2,"tg-checkbox",6),Ia(6,"div",7),_D(7,"img",8),bf(),Ia(8,"div",9)(9,"div",10),Qx(10),bf(),Ia(11,"div",11),Qx(12),bf()(),_D(13,"div",12),iD(14,Wn,5,1,"div",13)(15,jn,5,1,"div",13),bf(),iD(16,Un,18,10,"div",14),bf()()),e&2){let t=yx();X_$1(),Xa("background-color",t.profile.officeBackgroundColor),X_$1(),TD("ngIf",t.profile.officeLogo),X_$1(3),TD("ngIf",t.selectable),X_$1(2),TD("src",t.profile.profileImage,Ry)("alt",t.profile.name),X_$1(3),rE(t.profile.name),X_$1(2),rE(t.profile.officeName),X_$1(2),TD("ngIf",t.profile.totalSales),X_$1(),TD("ngIf",t.profile.localSales),X_$1(),TD("ngIf",t.profile.closestSale);}}var mn=(()=>{let n=class n{constructor(){this.selected=false,this.selectedChange=new Pt,this.selectable=true;}click(i){this.selectable&&(i.classList.contains("o-checkbox__label")||(this.selected=!this.selected,this.selectedChange.emit(this.selected)));}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=jM({type:n,selectors:[["tm-agent-appraisal-agent-card"]],hostVars:4,hostBindings:function(o,r){o&1&&kD("click",function(P){return r.click(P.target)}),o&2&&zD("selected",r.selected)("selectable",r.selectable);},inputs:{profile:"profile",selected:"selected",selectable:"selectable"},outputs:{selectedChange:"selectedChange"},standalone:false,decls:1,vars:1,consts:[["class","tm-agent-appraisal-agent-card__container",4,"ngIf"],[1,"tm-agent-appraisal-agent-card__container"],[1,"tm-agent-appraisal-agent-card__office"],[3,"src","alt",4,"ngIf"],[1,"tm-agent-appraisal-agent-card__info"],[1,"tm-agent-appraisal-agent-card__profile"],["label"," ",3,"showValidation","ngModel","ngModelChange",4,"ngIf"],[1,"tm-agent-appraisal-agent-card__profile-image"],["tgCircleImage","",3,"src","alt"],[1,"tm-agent-appraisal-agent-card__profile-info"],[1,"tm-agent-appraisal-agent-card__profile-name"],[1,"tm-agent-appraisal-agent-card__profile-office-name"],[1,"tm-agent-appraisal-agent-card__separator"],[4,"ngIf"],["class","tm-agent-appraisal-agent-card__closest_sale",4,"ngIf"],[3,"src","alt"],["label"," ",3,"ngModelChange","showValidation","ngModel"],[1,"tm-agent-appraisal-agent-card__total-sales"],[1,"tm-agent-appraisal-agent-card__total-sales-label"],[1,"tm-agent-appraisal-agent-card__closest_sale"],[1,"tm-agent-appraisal-agent-card__closest_sale--light"],[1,"tm-agent-appraisal-agent-card__closest_sale--dark"]],template:function(o,r){o&1&&iD(0,Xn,17,11,"div",0),o&2&&TD("ngIf",r.profile);},dependencies:[mO,Ai$1,Eo,Lc,B_,FO,xO],styles:["tm-agent-appraisal-agent-card[_nghost-%COMP%]{display:block;-webkit-user-select:none;user-select:none;border-radius:8px;overflow:hidden;border:1px solid #e8e6e3;transition:border ease-in .1s;font-size:.75rem;line-height:16px;background:#fff}tm-agent-appraisal-agent-card.selectable[_nghost-%COMP%]{cursor:pointer}tm-agent-appraisal-agent-card.selected[_nghost-%COMP%]{border:1px solid #65605d}.tm-agent-appraisal-agent-card__container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.tm-agent-appraisal-agent-card__office[_ngcontent-%COMP%]{height:40px;
3display:flex;justify-content:center;align-items:center}.tm-agent-appraisal-agent-card__office[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:100%}.tm-agent-appraisal-agent-card__info[_ngcontent-%COMP%]{display:flex;flex-direction:column}@media screen and (min-width:768px){.tm-agent-appraisal-agent-card__info[_ngcontent-%COMP%]{flex-direction:row;align-items:center}}.tm-agent-appraisal-agent-card__profile[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:16px;padding:16px 0;margin:0 16px}.tm-agent-appraisal-agent-card__profile[_ngcontent-%COMP%]   tg-checkbox[_ngcontent-%COMP%]{width:32px;margin-left:-10px}@media screen and (min-width:768px){.tm-agent-appraisal-agent-card__profile[_ngcontent-%COMP%]{flex:1;align-items:center}.tm-agent-appraisal-agent-card__profile[_ngcontent-%COMP%]   tg-checkbox[_ngcontent-%COMP%]{margin-top:-10px}}.tm-agent-appraisal-agent-card__profile-image[_ngcontent-%COMP%]{width:48px;height:48px}.tm-agent-appraisal-agent-card__profile-info[_ngcontent-%COMP%]{flex:1}.tm-agent-appraisal-agent-card__profile-name[_ngcontent-%COMP%], .tm-agent-appraisal-agent-card__total-sales[_ngcontent-%COMP%]{font-weight:700;color:#44413d}.tm-agent-appraisal-agent-card__total-sales-label[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
3.tm-agent-appraisal-agent-card__separator[_ngcontent-%COMP%]{border-right:1px solid #e8e6e3;height:30px}.tm-agent-appraisal-agent-card__closest_sale[_ngcontent-%COMP%]{background-color:#f6f5f4;display:flex;flex-direction:row;justify-content:space-between;gap:16px;padding:16px}.tm-agent-appraisal-agent-card__closest_sale--dark[_ngcontent-%COMP%]{font-weight:700;color:#44413d}@media screen and (min-width:768px){.tm-agent-appraisal-agent-card__closest_sale[_ngcontent-%COMP%]{margin:16px;border-radius:8px;padding:8px 16px;width:310px}}"]});let e=n;return e})();var Be=(()=>{let n=class n{};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=jM({type:n,selectors:[["tm-agent-appraisal-spinner-background-svg"]],decls:19,vars:0,consts:[["width","367","height","180","viewBox","0 0 367 180","fill","none","xmlns","http://www.w3.org/2000/svg"],["filter","url(#filter0_d_135_1793)"],["x","12","y","10","width","343","height","156","rx","20","fill","white"],["d","M20 34C20 25.1634 27.1634 18 36 18H332C340.837 18 348 25.1634 348 34V141C348 149.837 340.837 157 332 157H35C26.7157 157 20 150.284 20 142V34Z","fill","#F6F5F4"],["x","34","y","36.3228","width","100","height","100","rx","50","fill","white"],["d","M161 36L161 136","stroke","white","stroke-width","0.5"],["x","178","y","53","width","144","height","17","rx","8","fill","#D9D9D9"],["x","178","y","83","width","72","height","10","rx","5","fill","#D9D9D9"],["x","178","y","106","width","38","height","10","rx","5","fill","#D9D9D9"],["id","filter0_d_135_1793","x","0","y","0","width","367","height","180","filterUnits","userSpaceOnUse","color-interpolation-filters","sRGB"],["flood-opacity","0","result","BackgroundImageFix"],["in","SourceAlpha","type","matrix","values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0","result","hardAlpha"],["dy","2"],["stdDeviation","6"],["in2","hardAlpha","operator","out"],["type","matrix","values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"],["mode","normal","in2","BackgroundImageFix","result","effect1_dropShadow_135_1793"],["mode","normal","in","SourceGraphic","in2","effect1_dropShadow_135_1793","result","shape"]],template:function(o,r){o&1&&(dg(),Ia(0,"svg",0)(1,"g",1),_D(2,"rect",2),bf(),_D(3,"path",3)(4,"rect",4)(5,"path",5)(6,"rect",6)(7,"rect",7)(8,"rect",8),Ia(9,"defs")(10,"filter",9),_D(11,"feFlood",10)(12,"feColorMatrix",11)(13,"feOffset",12)(14,"feGaussianBlur",13)(15,"feComposite",14)(16,"feColorMatrix",15)(17,"feBlend",16)(18,"feBlend",17),bf()()());},dependencies:[qc,vh],encapsulation:2});let e=n;return e})();var He=(()=>{let n=class n{};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=jM({type:n,selectors:[["tm-agent-appraisal-spinner-magnify-svg"]],decls:10,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 100 100","preserveAspectRatio","xMidYMid","width","200","height","200",0,"xmlns","xlink","http://www.w3.org/1999/xlink",2,"shape-rendering","auto","display","block","background","transparent"],["transform","translate(50 50)"],["transform","scale(0.26)"],["transform","translate(-50 -50)"],["keyTimes","0;0.33;0.66;1","values","-20 -20;20 -20;0 20;-20 -20","dur","1.6666666666666667s","repeatCount","indefinite","type","translate","attributeName","transform"],["d","M44.19 26.158c-4.817 0-9.345 1.876-12.751 5.282c-3.406 3.406-5.282 7.934-5.282 12.751 c0 4.817 1.876 9.345 5.282 12.751c3.406 3.406 7.934 5.282 12.751 5.282s9.345-1.876 12.751-5.282 c3.406-3.406 5.282-7.934 5.282-12.751c0-4.817-1.876-9.345-5.282-12.751C53.536 28.033 49.007 26.158 44.19 26.158z","fill","#f5f5f5"],["d","M78.712 72.492L67.593 61.373l-3.475-3.475c1.621-2.352 2.779-4.926 3.475-7.596c1.044-4.008 1.044-8.23 0-12.238 c-1.048-4.022-3.146-7.827-6.297-10.979C56.572 22.362 50.381 20 44.19 20C38 20 31.809 22.362 27.085 27.085 c-9.447 9.447-9.447 24.763 0 34.21C31.809 66.019 38 68.381 44.19 68.381c4.798 0 9.593-1.425 13.708-4.262l9.695 9.695 l4.899 4.899C73.351 79.571 74.476 80 75.602 80s2.251-0.429 3.11-1.288C80.429 76.994 80.429 74.209 78.712 72.492z M56.942 56.942 c-3.406 3.406-7.934 5.282-12.751 5.282s-9.345-1.876-12.751-5.282c-3.406-3.406-5.282-7.934-5.282-12.751 c0-4.817 1.876-9.345 5.282-12.751c3.406-3.406 7.934-5.282 12.751-5.282c4.817 0 9.345 1.876 12.751 5.282 c3.406 3.406 5.282 7.934 5.282 12.751C62.223 49.007 60.347 53.536 56.942 56.942z","fill","#007acd"]],template:function(o,r){o&1&&(dg(),Ia(0,"svg",0)(1,"g")(2,"g",1)(3,"g",2)(4,"g",3)(5,"g"),_D(6,"animateTransform",4)(7,"path",5)(8,"path",6),bf()()()(),_D(9,"g"),bf()());},dependencies:[qc,vh],encapsulation:2});let e=n;return e})();var gn=(()=>{let n=class n{};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=jM({type:n,selectors:[["tm-agent-appraisal-spinner"]],standalone:false,decls:3,vars:0,consts:[[1,"agent-appraisal-spinner-svg-container"]],template:function(o,r){o&1&&(Ia(0,"div",0),_D(1,"tm-agent-appraisal-spinner-background-svg")(2,"tm-agent-appraisal-spinner-magnify-svg"),bf());},dependencies:[Be,He],styles:[".agent-appraisal-spinner-svg-container[_ngcontent-%COMP%]{display:flex;justify-content:center}tm-agent-appraisal-spinner-magnify-svg[_ngcontent-%COMP%]{position:absolute;margin-top:8px;z-index:2;transform:translate(-96px,-16px)}"]});let e=n;return e})();function Jn(e,n){e&1&&(Ia(0,"div",14),Qx(1," Can't find your address? Please use our "),Ia(2,"a",15),Qx(3,"agent directory to contact an agent"),bf(),Qx(4," about your appraisal "),bf());}function Kn(e,n){e&1&&_D(0,"tm-agent-appraisal-value-card",17),e&2&&TD("viewMode","horizontal");}function ei(e,n){if(e&1&&(Mf(0),iD(1,Kn,1,1,"tm-agent-appraisal-value-card",16),Ja()),e&2){let t=yx(),i=Tx(19);X_$1(),TD("ngIf",!t.loading&&!t.showErrorMessage)("ngIfElse",i);}}function ti(e,n){if(e&1){let t=dx();Ia(0,"div",18)(1,"div",19),Qx(2),bf(),Ia(3,"tg-checkbox",20),kD("ngModelChange",function(o){Xh(t);let r=yx();
3return eg(r.selectAll(o))}),bf(),KS(),bf();}if(e&2){let t=yx();X_$1(2),oE(" Choose up to ",t.foundAgents.length," local agent",t.foundAgents.length===1?"":"s"," "),X_$1(),TD("ngModel",t.foundAgents.length===t.selectedAgents.length)("showValidation",false),XS();}}function ni(e,n){if(e&1&&(Ia(0,"div",18)(1,"div",19),Qx(2),bf()()),e&2){let t=yx();X_$1(2),Af(" Selected agent",t.foundAgents.length===1?"":"s"," for your appraisal ");}}function ii(e,n){if(e&1){let t=dx();Ia(0,"tm-agent-appraisal-agent-card",21),cE("selectedChange",function(o){let r=Xh(t).$implicit,v=yx();return eA(v.selectedAgentsSlugs[r.slug],o)||(v.selectedAgentsSlugs[r.slug]=o),eg(o)}),kD("selectedChange",function(){Xh(t);let o=yx();return eg(o.selectedAgentsChange())}),bf();}if(e&2){let t=n.$implicit,i=yx();TD("profile",t),aE("selected",i.selectedAgentsSlugs[t.slug]),TD("selectable",!i.agentsProvided);}}function ai(e,n){e&1&&Qx(0,"Please select an agent to continue");}function oi(e,n){if(e&1&&Qx(0),e&2){let t=yx(3);oE("",t.selectedAgents.length," of ",t.foundAgents.length," agents selected");}}function ri(e,n){if(e&1&&(Ia(0,"div",25),iD(1,ai,1,0,"ng-template",26)(2,oi,1,2,"ng-template",27),bf()),e&2){let t=yx(2);TD("ngPlural",t.selectedAgents.length);}}function li(e,n){if(e&1&&(Ia(0,"div",22),iD(1,ri,3,1,"div",23),Ia(2,"button",24),Qx(3," Next "),bf()()),e&2){let t=yx();X_$1(),TD("ngIf",!t.agentsProvided),X_$1(),TD("disabled",t.isDisabled);}}function pi(e,n){e&1&&(Ia(0,"h3"),Qx(1,"Searching for local agents..."),bf());}function si(e,n){e&1&&_D(0,"tm-agent-appraisal-spinner");}function ci(e,n){e&1&&(Ia(0,"tg-card",30)(1,"h3"),Qx(2,"Sorry, we can\u2019t find any agents in your area"),bf(),Ia(3,"p"),Qx(4," Please use our "),Ia(5,"b")(6,"a",15),Qx(7,"Agent Directory"),bf()(),Qx(8," to contact an agent about your appraisal "),bf()());}function mi(e,n){if(e&1&&(Ia(0,"div",28),iD(1,pi,2,0,"h3",9),bf(),iD(2,si,1,0,"tm-agent-appraisal-spinner",9)(3,ci,9,0,"tg-card",29)),e&2){let t=yx();X_$1(),TD("ngIf",t.loading),X_$1(),TD("ngIf",t.loading),X_$1(),TD("ngIf",t.showErrorMessage);}}var gi=5,_n=(()=>{let n=class n{constructor(i,o,r){this._agentAppraisalService=i,this._changeDetectorRef=o,this.mediaSize=r,this.complete=new Pt,this.foundAgents=[],this.agentsProvided=false,this.showErrorMessage=false,this.loading=false,this.selectedAgentsSlugs={},this.selectedAgents=[],this.inputboxFocused=new Pt,this._destroyed$=new W;}ngOnChanges(i){i.agents&&(this.agentsProvided=this.agents.length>0,this.agentsProvided&&(this.foundAgents=this.agents,this.selectAll(true)));}onInputboxFocused(){this.inputboxFocused.emit();}onAppraisalAddressPicked(i){let o=i?.details?.homesSuburbId,r=i?.details?.latitude,v=i?.details?.longitude;if(this.showErrorMessage=false,this.foundAgents=[],!o||!r||!v){this.showErrorMessage=true,this._changeDetectorRef.detectChanges();return}this.loading=true,this._changeDetectorRef.detectChanges(),this._agentAppraisalService.getAgentsByLatLong(r,v,o).pipe(Xp(this._destroyed$)).subscribe({next:P=>{this.loading=false,this.foundAgents=P.slice(0,gi),this._changeDetectorRef.detectChanges();},error:P=>{this.showErrorMessage=true,this.loading=false,this._changeDetectorRef.detectChanges();}});}selectAll(i){this.selectedAgentsSlugs=this.foundAgents.reduce((o,r)=>z(y({},o),{[r.slug]:i}),{}),this.selectedAgentsChange();}selectedAgentsChange(){this.selectedAgents=this.foundAgents.filter(i=>this.selectedAgentsSlugs[i.slug]);}onSubmit(){this.isDisabled||(this.propertyAddress=this.propertyAddress?.replace(/;/g,""),this.complete.emit({address:this.propertyAddress,agents:this.selectedAgents}));}onInputboxCleared(){this.showErrorMessage=false,this.loading=false,this.agentsProvided||(this.selectedAgentsSlugs={},this.selectedAgents=[],this.foundAgents=[]),this._changeDetectorRef.detectChanges();}get isDisabled(){return this.selectedAgents.length?this.agentsProvided?!this.propertyAddress:!this.propertyAddress||this.showErrorMessage||this.loading:true}ngOnDestroy(){this._destroyed$.next(),this._destroyed$.complete();}};n.\u0275fac=function(o){return new(o||n)(R(Ct),R(mc),R(G))},n.\u0275cmp=jM({type:n,selectors:[["tm-agent-appraisal-location"]],inputs:{agents:"agents"},outputs:{complete:"complete",inputboxFocused:"inputboxFocused"},standalone:false,features:[Zr],decls:20,vars:8,consts:[["appraisalForm","ngForm"],["loadingBox",""],[1,"tm-agent-appraisal-location__form",3,"ngSubmit"],[1,"tm-agent-appraisal-location__card"],["alt","Appraisal header","src","/images/frend/property/agent-appraisal/appraisal_header.png","width","172px","height","100px",1,"tm-agent-appraisal-location__header_image"],[1,"tm-agent-appraisal-location__title"],[1,"tm-agent-appraisal-location__subtitle"],["placeholder","Enter your address to get started","name","Appraisal Address",1,"tm-agent-appraisal-location__search_bar",3,"ngModelChange","onSuggestionClicked","inputboxFocused","clear","ngModel","selectionRequired"],["end-item","",4,"ngIf"],[4,"ngIf"],["class","tm-agent-appraisal-location__select-all-area",4,"ngIf"],[1,"tm-agent-appraisal-location__agents-list"],[3,"profile","selected","selectable","selectedChange",4,"ngFor","ngForOf"],["class","tm-agent-appraisal-location__submit-area",4,"ngIf"],["end-item",""],["routerLink","/property/agent"],[3,"viewMode",4,"ngIf","ngIfElse"],[3,"viewMode"],[1,"tm-agent-appraisal-location__select-all-area"],[1,"tm-agent-appraisal-location__select-all-choose"],["name","checkbox","label","Select All",3,"ngModelChange","ngModel","showValidation"],[3,"selectedChange","profile","selected","selectable"],[1,"tm-agent-appraisal-location__submit-area"],[3,"ngPlural",4,"ngIf"],["tgButton2","","tgStyle","primary","type","submit",3,"disabled"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","other"],[1,"tm-agent-appraisal-location__loading-text"],["class","tm-agent-appraisal-location__error-card",4,"ngIf"],[1,"tm-agent-appraisal-location__error-card"]],template:function(o,r){if(o&1){let v=dx();Ia(0,"form",2,0),kD("ngSubmit",function(){return r.onSubmit()}),Ia(2,"tg-card",3)(3,"div"),_D(4,"img",4),bf(),Ia(5,"h1",5),Qx(6,"What\u2019s your property w
3orth?"),bf(),Ia(7,"p",6),Qx(8," Find out with a free appraisal. Let us match you with a local agent. "),bf(),Ia(9,"div")(10,"tm-address-search",7),cE("ngModelChange",function(G){return Xh(v),eA(r.propertyAddress,G)||(r.propertyAddress=G),eg(G)}),kD("onSuggestionClicked",function(G){return !r.agentsProvided&&r.onAppraisalAddressPicked(G)})("inputboxFocused",function(){return r.onInputboxFocused()})("clear",function(){return r.onInputboxCleared()}),iD(11,Jn,5,0,"div",8),bf(),KS(),bf()(),iD(12,ei,2,2,"ng-container",9)(13,ti,4,4,"div",10)(14,ni,3,1,"div",10),Ia(15,"div",11),iD(16,ii,1,3,"tm-agent-appraisal-agent-card",12),bf(),iD(17,li,4,2,"div",13),bf(),iD(18,mi,4,3,"ng-template",null,1,wA);}o&2&&(X_$1(10),aE("ngModel",r.propertyAddress),TD("selectionRequired",!r.agentsProvided),XS(),X_$1(),TD("ngIf",!r.agentsProvided),X_$1(),TD("ngIf",!r.foundAgents.length),X_$1(),TD("ngIf",!r.agentsProvided&&r.foundAgents.length),X_$1(),TD("ngIf",r.agentsProvided&&r.foundAgents.length),X_$1(2),TD("ngForOf",r.foundAgents),X_$1(),TD("ngIf",r.agentsProvided||r.foundAgents.length));},dependencies:[YI,mO,ZI,DO,Gm,Ai$1,Bm,Eo,Ri$1,K_,Q_,He$1,Lc,nn,Bh,Yt,rn,H,mn,gn],styles:["tm-agent-appraisal-location[_nghost-%COMP%]{display:block}.tm-agent-appraisal-location__header_image[_ngcontent-%COMP%]{min-width:172px;min-height:100px;margin:auto}.tm-agent-appraisal-location__title[_ngcontent-%COMP%]{margin:0}.tm-agent-appraisal-location__subtitle[_ngcontent-%COMP%]{color:#44413d}.tm-agent-appraisal-location__card[_ngcontent-%COMP%]{border-radius:24px;padding:16px;text-align:center}@media screen and (min-width:768px){.tm-agent-appraisal-location__card[_ngcontent-%COMP%]{padding:32px}}.tm-agent-appraisal-location__error-card[_ngcontent-%COMP%]{width:343px;height:156px;margin:8px auto;text-align:center;padding:16px 24px;border-radius:24px}.tm-agent-appraisal-location__error-card[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#76716d}.tm-agent-appraisal-location__error-card[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited{color:#007acd}.tm-agent-appraisal-location__search_bar[_ngcontent-%COMP%]{max-width:560px;margin:auto}.tm-agent-appraisal-location__select-all-area[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;height:50px}.tm-agent-appraisal-location__select-all-area[_ngcontent-%COMP%]   tg-checkbox[_ngcontent-%COMP%]{margin:0}.tm-agent-appraisal-location__select-all-choose[_ngcontent-%COMP%]{flex:1;font-weight:700}.tm-agent-appraisal-location__loading-text[_ngcontent-%COMP%]{display:none;text-align:center;margin-top:24px;height:24px}@media screen and (min-width:768px){.tm-agent-appraisal-location__loading-text[_ngcontent-%COMP%]{margin-top:48px;display:block}}.tm-agent-appraisal-location__submit-area[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:16px 24px 0;background-color:#fff;position:fixed;bottom:0;left:0;right:0;box-shadow:3px 0 8px #00000026}@media screen and (max-width:767px){.tm-agent-appraisal-location__submit-area[_ngcontent-%COMP%]{font-size:.75rem;line-height:16px;padding-bottom:60px}}.tm-agent-appraisal-location__submit-area[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%;max-width:720px;margin:16px 0 24px}@media screen and (max-width:767px){.tm-agent-appraisal-location__agents-list[_ngcontent-%COMP%]{margin-bottom:200px}}tm-agent-appraisal-agent-card[_ngcontent-%COMP%]{margin-bottom:24px}"]});let e=n;return e})();var _i=e=>({"single-agent":e}),fi=e=>({"agency-details-left":e}),hi=e=>({"agent-bio":e}),ui=e=>({"agency-details-right":e});function Ci(e,n){if(e&1&&_D(0,"img",8),e&2){let t=yx();TD("alt",t.profile==null?null:t.profile.officeName)("src",t.profile==null?null:t.profile.officeLogo,Ry);}}function xi(e,n){if(e&1&&(Ia(0,"p"),Qx(1," Experience"),_D(2,"br"),Qx(3),bf()),e&2){let t=yx();X_$1(3),Af(" ",t.profile?.experience," ");}}function vi(e,n){if(e&1&&_D(0,"img",8),e&2){let t=yx(2);TD("alt",t.profile==null?null:t.profile.officeName)("src",t.profile==null?null:t.profile.officeLogo,Ry);}}function Ai(e,n){if(e&1&&(Ia(0,"div",3),iD(1,vi,1,2,"img",4),Ia(2,"p"),Qx(3),bf()()),e&2){let t=yx();TD("ngClass",pA(3,ui,t.isSingleAgent)),X_$1(),TD("ngIf",t.profile?.office
3Logo),X_$1(2),rE(t.profile?.officeName);}}var Ge=(()=>{let n=class n{constructor(){this.isSingleAgent=false;}get agentHasExperience(){return this.profile?.experience!=="0m"}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=jM({type:n,selectors:[["tm-agent-with-branding-card"]],inputs:{profile:"profile",isSingleAgent:"isSingleAgent"},decls:17,vars:22,consts:[[1,"agent-card"],[1,"agent-info",3,"ngClass"],["tgCircleImage","","bordered","",1,"agent-image",3,"src","alt"],[3,"ngClass"],["class","office-image",3,"alt","src",4,"ngIf"],[1,"agent-details"],[4,"ngIf"],[3,"ngClass",4,"ngIf"],[1,"office-image",3,"alt","src"]],template:function(o,r){o&1&&(Ia(0,"div",0)(1,"div",1),_D(2,"img",2),Ia(3,"div",3),iD(4,Ci,1,2,"img",4),Ia(5,"p"),Qx(6),bf()()(),Ia(7,"div",5)(8,"span"),Qx(9),bf(),Ia(10,"div",3)(11,"p"),Qx(12),_D(13,"br"),Qx(14," in last 12 months "),bf(),iD(15,xi,4,1,"p",6),bf()(),iD(16,Ai,4,5,"div",7),bf()),o&2&&(Xa("background-color",r.profile?.officeBackgroundColor)("color",r.profile?.officeTextColor),X_$1(),TD("ngClass",pA(16,_i,r.isSingleAgent)),X_$1(),TD("src",r.profile==null?null:r.profile.profileImage,Ry)("alt",r.profile==null?null:r.profile.name),X_$1(),TD("ngClass",pA(18,fi,r.isSingleAgent)),X_$1(),TD("ngIf",r.profile?.officeLogo),X_$1(2),rE(r.profile?.officeName),X_$1(3),rE(r.profile?.name),X_$1(),TD("ngClass",pA(20,hi,r.isSingleAgent)),X_$1(2),oE(" ",r.profile?.totalSales," ",r.profile?.totalSales===1?"sale":"sales"),X_$1(3),TD("ngIf",r.agentHasExperience),X_$1(),TD("ngIf",r.isSingleAgent));},dependencies:[Qi,B_,VO,pO,mO],styles:['.agent-card[_ngcontent-%COMP%]{background-color:#f7f7f7;color:#fff;border-radius:8px;padding:16px;text-align:left;align-items:center;flex:1;display:flex;flex-direction:row;width:100%;height:100%;transition:background-color .3s ease,color .3s ease}.agent-card[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:14px;margin-bottom:0;line-height:normal}.agent-card[_ngcontent-%COMP%]   .agent-info[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;gap:16px;padding:8px 16px;align-items:center;text-align:center;width:40%}.agent-card[_ngcontent-%COMP%]   .agent-info[_ngcontent-%COMP%]:after{content:"";position:absolute;right:0;top:0;bottom:0;width:1px;background-color:#fff;height:100%;opacity:.5}.agent-card[_ngcontent-%COMP%]   .agent-info[_ngcontent-%COMP%]   .agent-image[_ngcontent-%COMP%]{border-radius:50%;max-width:75px;max-height:75px;object-fit:cover}.agent-card[_ngcontent-%COMP%]   .agent-info[_ngcontent-%COMP%]   .office-image[_ngcontent-%COMP%]{width:200px;background-color:#e6e9ef}@media screen and (min-width:768px){.agent-card[_ngcontent-%COMP%]   .agent-info.single-agent[_ngcontent-%COMP%]{width:20%}}.agent-card[_ngcontent-%COMP%]   .agent-details[_ngcontent-%COMP%]{padding-left:16px;align-content:start;width:60%}.agent-card[_ngcontent-%COMP%]   .agent-details[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:18px;margin:0 0 5px}.agent-card[_ngcontent-%COMP%]   .agent-details[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:5px 0}@media screen and (min-width:768px){.agent-card[_ngcontent-%COMP%]   .agent-details[_ngcontent-%COMP%]   .agent-bio[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:24px}}.agent-card[_ngcontent-%COMP%]   .agency-details-left[_ngcontent-%COMP%]{display:block;align-items:center}@media screen and (min-width:768px){.agent-card[_ngcontent-%COMP%]   .agency-details-left[_ngcontent-%COMP%]{display:none}}.agent-card[_ngcontent-%COMP%]   .agency-details-right[_ngcontent-%COMP%]{display:none;align-items:center}@media screen and (min-width:768px){.agent-card[_ngcontent-%COMP%]   .agency-details-right[_ngcontent-%COMP%]{display:block;padding-left:16px;align-content:center;text-align:center}.agent-card[_ngcontent-%COMP%]   .agency-details-right[_ngcontent-%COMP%]   .office-image[_ngcontent-%COMP%]{width:200px;background-color:#e6e9ef}}']});let e=n;return e})();var yi=e=>({single__agent:e});function Si(e,n){if(e&1&&_D(0,"tm-agent-with-branding-card",4),e&2){let t=n.$implicit,i=yx();TD("profile",t)("isSingleAgent",i.isSingleAgent);}}var fn=(()=>{let n=class n{constructor(i){this.agentAppraisalService=i,this.agents=[],this.isSingleAgent=false;}
3ngOnChanges(i){i.agents&&(this.isSingleAgent=this.agents.length===1);}getAgentsFirstName(){return this.agentAppraisalService.getAgentOrAgentsFirstName(this.agents)}};n.\u0275fac=function(o){return new(o||n)(R(Ct))},n.\u0275cmp=jM({type:n,selectors:[["tm-agent-appraisal-selected-agent"]],inputs:{agents:"agents"},standalone:false,features:[Zr],decls:6,vars:5,consts:[[1,"appraisal__container"],[1,"appraisal__header"],[1,"agent__cards",3,"ngClass"],[3,"profile","isSingleAgent",4,"ngFor","ngForOf"],[3,"profile","isSingleAgent"]],template:function(o,r){o&1&&(Ia(0,"div",0)(1,"div",1)(2,"h2"),Qx(3),bf()(),Ia(4,"div",2),iD(5,Si,1,2,"tm-agent-with-branding-card",3),bf()()),o&2&&(X_$1(3),Af("Find out what your home is worth with ",r.getAgentsFirstName(),"."),X_$1(),TD("ngClass",pA(3,yi,r.isSingleAgent)),X_$1(),TD("ngForOf",r.agents));},dependencies:[pO,YI,Ge],styles:[".appraisal__container[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:0 auto}.appraisal__header[_ngcontent-%COMP%]{text-align:center}.appraisal__header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:24px;font-weight:700}.agent__cards[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px}.agent__cards[_ngcontent-%COMP%]   tm-agent-with-branding-card[_ngcontent-%COMP%]{flex:1 1 100%;max-width:100%}@media screen and (min-width:768px){.agent__cards[_ngcontent-%COMP%]{margin-bottom:20px}.agent__cards[_ngcontent-%COMP%]   tm-agent-with-branding-card[_ngcontent-%COMP%]{flex:1 1 calc(50% - 10px);max-width:calc(50% - 10px)}}.agent__cards.single__agent[_ngcontent-%COMP%]   tm-agent-with-branding-card[_ngcontent-%COMP%]{flex:1 1 100%;max-width:100%}"]});let e=n;return e})();var ze=(()=>{let n=class n{constructor(i){this._window=i;}ngOnInit(){this._window.useWindow(i=>i.scrollTo(0,0));}};n.\u0275fac=function(o){return new(o||n)(R(rt))},n.\u0275cmp=jM({type:n,selectors:[["tm-agent-appraisal-request-sent-confirmation-svg"]],decls:39,vars:0,consts:[["width","146","height","146","viewBox","0 0 126 126","fill","none","xmlns","http://www.w3.org/2000/svg"],["filter","url(#filter0_d_349_791)"],["cx","63","cy","59","r","55","fill","white"],["cx","63","cy","59","r","53","stroke","url(#paint0_linear_349_791)","stroke-width","4"],["d","M90.9992 79.5455L36.1607 80.9771L35.0043 39.6107L63.0821 61.7783L89.8796 38.0781L90.9992 79.5455Z","fill","url(#paint1_linear_349_791)"],["d","M91 79.545L62.8121 52.6328L36.1247 80.9767L91 79.545Z","fill","url(#paint2_linear_349_791)"],["filter","url(#filter1_d_349_791)"],["d","M35 39.5326L59.6443 62.4904C62.0993 64.7774 65.9525 64.6068 68.1958 62.1119L89.8753 38L35 39.5326Z","fill","url(#paint3_linear_349_791)"],["fill-rule","evenodd","clip-rule","evenodd","d","M91.17 25.3698L91.01 26.1798C90.97 26.4098 90.87 26.6198 90.74 26.7898C90.61 26.9598 90.44 27.0998 90.26 27.1698L89.97 27.2898C89.89 27.3198 89.83 27.3798 89.78 27.4598C89.73 27.5398 89.71 27.6298 89.71 27.7298C89.71 27.8298 89.73 27.9198 89.78 27.9998C89.83 28.0798 89.89 28.1398 89.97 28.1698L90.26 28.2898C90.44 28.3698 90.61 28.4998 90.74 28.6698C90.87 28.8398 90.96 29.0598 91.01 29.2898L91.17 30.1198C91.26 30.5998 91.83 30.5998 91.92 30.1198L92.08 29.2898C92.12 29.0598 92.21 28.8498 92.35 28.6698C92.48 28.4998 92.65 28.3598 92.83 28.2898L93.12 28.1698C93.2 28.1398 93.26 28.0798 93.31 27.9998C93.36 27.9198 93.38 27.8298 93.38 27.7298C93.38 27.6298 93.36 27.5398 93.31 27.4598C93.26 27.3798 93.2 27.3198 93.12 27.2898L92.83 27.1698C92.65 27.0898 92.48 26.9598 92.35 26.7898C92.22 26.6198 92.13 26.3998 92.08 26.1798L91.92 25.3698C91.83 24.8898 91.26 24.8898 91.17 25.3698ZM94.9399 28.7698L94.5799 30.3998C94.4799 30.8598 94.2599 31.2798 93.9599 31.6298C93.6599 31.9798 93.2699 32.2398 92.8399 32.3998L92.1599 32.6398C91.9799 32.6998 91.8299 32.8198 91.7199 32.9798C91.6099 33.1398 91.5499 33.3198 91.5499 33.5098C91.5499 33.6998 91.6099 33.8898 91.7199 34.0398C91.8299 34.1998 91.9799 34.3098 92.1599 34.3798L92.8299 34.6198C93.2599 34.7698 93.6499 35.0398 93.9499 35.3898C94.2499 35.7398 94.4699 36.1598 94.5699 36.6198L94.9299 38.2898C95.1399 39.2498 96.4699 39.2498 96.6799 38.2898L97.0399 36.6198C97.1399 36.1598 97.3499 35.7398 97.6599 35.3898C97.9599 35.0398 98.3499 34.7798 98.7799 34.6198L99.4599 34.3798C99.6399 34.3198 99.7899 34.1998 99.8999 34.0398C100.01 33.8798 100.07 33.6998 100.07 33.5098C100.07 33.3198 100.01 33.1298 99.8999 32.9798C99.7899 32.8198 99.6399 32.7098 99.4599 32.6398L98.7799 32.3998C98.3499 32.2498 97.9599 31.9798 97.6599 31.6298C97.3599 31.2798 97.1399 30.8598 97.0399 30.3998L96.6799 28.7698C96.4699 27.8198 95.1499 27.8198 94.9399 28.7698ZM87.59 30.4398L87.77 29.6298C87.88 29.1498 88.54 29.1498 88.64 29.6298L88.82 30.4398C88.87 30.6598 88.98 30.8798 89.13 31.0498C89.28 31.2198 89.47 31.3498 89.69 31.4298L90.03 31.5498C90.12 31.5798 90.2 31.6398 90.25 31.7198C90.3 31.7998 90.33 31.8898 90.33 31.9898C90.33 32.0898 90.3 32.1798 90.25 32.2598C90.19 32.3398 90.12 32.3998 90.03 32.4298L89.69 32.5498C89.48 32.6198 89.28 32.7598 89.13 32.9298C88.98 33.1098 88.87 33.3198 88.82 33.5498L88.64 34.3798C88.54 34.8598 87.88 34.8598 87.77 34.3798L87.59 33.5498C87.54 33.3198 87.43 33.0998 87.28 32.9298C87.13 32.7598 86.94 32.6298 86.72 32.5498L86.38 32.4298C86.29 32.3998 86.21 32.3398 86.16 32.2598C86.11 32.1798 86.08 32.0898 86.08 31.9898C86.08 31.8898 86.11 31.7998 86.16 31.7198C86.22 31.6398 86.29 31.5798 86.38 31.5498L86.72 31.4298C86.94 31.3598 87.13 31.2198 87.28 31.0498C87.43 30.8798 87.54 30.6698 87.59 30.4398Z","fill","#FFDA00"],["id","filter0_d_349_791","x","0","y","0","width","126","height","126","filterUnits","userSpaceOnUse","color-interpolation-filters","sRGB"],["flood-opacity","0","result","Backgroun
3dImageFix"],["in","SourceAlpha","type","matrix","values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0","result","hardAlpha"],["dy","4"],["stdDeviation","4"],["type","matrix","values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"],["mode","normal","in2","BackgroundImageFix","result","effect1_dropShadow_349_791"],["mode","normal","in","SourceGraphic","in2","effect1_dropShadow_349_791","result","shape"],["id","filter1_d_349_791","x","31","y","38","width","62.8753","height","34.1006","filterUnits","userSpaceOnUse","color-interpolation-filters","sRGB"],["stdDeviation","2"],["in2","hardAlpha","operator","out"],["id","paint0_linear_349_791","x1","63","y1","4","x2","63","y2","114","gradientUnits","userSpaceOnUse"],["stop-color","#CB0D7D"],["offset","1","stop-color","#5F48C5"],["id","paint1_linear_349_791","x1","95.3544","y1","79.0047","x2","29.2346","y2","30.8341","gradientUnits","userSpaceOnUse"],["stop-color","#DE0270"],["offset","1","stop-color","#4854D3"],["id","paint2_linear_349_791","x1","90.8185","y1","82.2313","x2","58.1492","y2","49.5411","gradientUnits","userSpaceOnUse"],["id","paint3_linear_349_791","x1","94.1434","y1","65.0451","x2","56.735","y2","-3.41498","gradientUnits","userSpaceOnUse"]],template:function(o,r){o&1&&(dg(),Ia(0,"svg",0)(1,"g",1),_D(2,"circle",2)(3,"circle",3),bf(),_D(4,"path",4)(5,"path",5),Ia(6,"g",6),_D(7,"path",7),bf(),_D(8,"path",8),Ia(9,"defs")(10,"filter",9),_D(11,"feFlood",10)(12,"feColorMatrix",11)(13,"feOffset",12)(14,"feGaussianBlur",13)(15,"feColorMatrix",14)(16,"feBlend",15)(17,"feBlend",16),bf(),Ia(18,"filter",17),_D(19,"feFlood",10)(20,"feColorMatrix",11)(21,"feOffset",12)(22,"feGaussianBlur",18)(23,"feComposite",19)(24,"feColorMatrix",14)(25,"feBlend",15)(26,"feBlend",16),bf(),Ia(27,"linearGradient",20),_D(28,"stop",21)(29,"stop",22),bf(),Ia(30,"linearGradient",23),_D(31,"stop",24)(32,"stop",25),bf(),Ia(33,"linearGradient",26),_D(34,"stop",24)(35,"stop",25),bf(),Ia(36,"linearGradient",27),_D(37,"stop",24)(38,"stop",25),bf()()());},dependencies:[qc,vh],encapsulation:2});let e=n;return e})();var un=e=>({logged_out:e}),wi=e=>({overlap:e});function Oi(e,n){e&1&&(Ia(0,"div",9)(1,"a",10),_D(2,"tm-logo",11),bf()());}function Ei(e,n){if(e&1&&(Ia(0,"tg-info-box",12),Qx(1),bf()),e&2){let t=yx();X_$1(),Af(" Error Loading Page: ",t.error.message,`
4`);}}function Ti(e,n){e&1&&(Ia(0,"div"),_D(1,"tm-loading-spinner",13),bf());}function Fi(e,n){if(e&1&&_D(0,"ng-component",16),e&2){yx(2);let t=Tx(10);TD("ngTemplateOutlet",t);}}function Ii(e,n){if(e&1&&_D(0,"ng-component",16),e&2){yx(2);let t=Tx(12);TD("ngTemplateOutlet",t);}}function Ni(e,n){if(e&1&&_D(0,"ng-component",16),e&2){yx(2);let t=Tx(14);TD("ngTemplateOutlet",t);}}function Li(e,n){if(e&1&&_D(0,"ng-component",16),e&2){yx(2);let t=Tx(16);TD("ngTemplateOutlet",t);}}function Ri(e,n){if(e&1&&(Mf(0)(1,14),iD(2,Fi,1,1,"ng-component",15)(3,Ii,1,1,"ng-component",15)(4,Ni,1,1,"ng-component",15)(5,Li,1,1,"ng-component",15),Ja()()),e&2){let t=yx();X_$1(),TD("ngSwitch",t.state),X_$1(),TD("ngSwitchCase",t.AgentAppraisalHomeState.SelectedAgent),X_$1(),TD("ngSwitchCase",t.AgentAppraisalHomeState.LocationSelect),X_$1(),TD("ngSwitchCase",t.AgentAppraisalHomeState.Form),X_$1(),TD("ngSwitchCase",t.AgentAppraisalHomeState.FormComplete);}}function ki(e,n){if(e&1){let t=dx();Ia(0,"div",26)(1,"p"),Qx(2),bf(),Ia(3,"tm-agent-appraisal-form",27),kD("complete",function(o){Xh(t);let r=yx(2);return r.state=r.AgentAppraisalHomeState.FormComplete,eg(r.trackSubmission(o))}),bf()();}if(e&2){let t=yx(2);X_$1(2),Af("Share a bit about yourself to help ",t.getAgentsFirstName()," with your appraisal."),X_$1(),TD("agents",t.agentProfiles)("getRecaptchaToken",t.getRecaptchaToken)("propertyAddress",t.propertyAddress)("memberEmail",t.memberEmail)("memberPhone",t.memberPhone)("memberName",t.memberName)("formType",t.formTypeEnum.AGENT_APPRAISAL);}}function Vi(e,n){if(e&1&&(Ia(0,"div",28),Qx(1," This site is protected by reCAPTCHA and the Google "),Ia(2,"a",29),Qx(3,"Privacy Policy"),bf(),Qx(4," and "),Ia(5,"a",30),Qx(6,"Terms of Service"),bf(),Qx(7," apply. "),bf()),e&2){let t=yx(2);TD("ngClass",pA(1,un,t.isLoggedOut()));}}function Di(e,n){if(e&1){let t=dx();Ia(0,"div",31)(1,"button",32),kD("click",function(){Xh(t);let o=yx(2);return o.state=o.AgentAppraisalHomeState.Form,eg(o.formType=o.formTypeEnum.AGENT_APPRAISAL)}),Qx(2," Get Started! "),bf()();}if(e&2){let t=yx(2);TD("ngClass",pA(1,un,t.isLoggedOut()));}}
4function Bi(e,n){if(e&1&&(Ia(0,"div",17)(1,"div",18)(2,"div",19),_D(3,"tm-agent-appraisal-selected-agent",20),bf(),iD(4,ki,4,8,"div",21),yA(5,"async"),bf(),Ia(6,"div",22),_D(7,"tm-agent-appraisal-value-card",23),iD(8,Vi,8,3,"div",24),yA(9,"async"),bf(),iD(10,Di,3,3,"div",25),yA(11,"async"),bf()),e&2){let t=yx();X_$1(3),TD("agents",t.agentProfiles),X_$1(),TD("ngIf",!DA(5,5,t.mediaSize.is.sm$)),X_$1(3),TD("viewMode","vertical"),X_$1(),TD("ngIf",DA(9,7,t.mediaSize.is.sm$)),X_$1(2),TD("ngIf",DA(11,9,t.mediaSize.is.sm$));}}function Hi(e,n){if(e&1){let t=dx();Ia(0,"div")(1,"tm-agent-appraisal-location",33),kD("inputboxFocused",function(){Xh(t);let o=yx();return eg(o.onInputboxFocused())})("complete",function(o){Xh(t);let r=yx();return r.propertyAddress=o.address,r.agentProfiles=o.agents,r.state=r.AgentAppraisalHomeState.Form,eg(r.trackNext(o))}),bf()();}if(e&2){let t=yx();X_$1(),TD("agents",t.agentProfiles);}}function Gi(e,n){if(e&1&&_D(0,"img",38),e&2){let t=n.$implicit,i=n.index,o=yx(2);Bx(pA(4,wi,o.agentProfiles.length>1&&i===0)),TD("src",t.profileImage,Ry)("alt",t.name);}}function zi(e,n){e&1&&(Ia(0,"span"),_D(1,"br"),bf());}function Wi(e,n){if(e&1){let t=dx();Ia(0,"div",34)(1,"div",35),iD(2,Gi,1,6,"img",36),bf(),Ia(3,"h1"),Qx(4,"Almost done!"),bf(),Ia(5,"p"),Qx(6," Share a bit about yourself to help the "),iD(7,zi,2,0,"span",8),yA(8,"async"),Qx(9," agents with your appraisal. "),bf(),Ia(10,"tm-agent-appraisal-form",37),kD("complete",function(o){Xh(t);let r=yx();return r.state=r.AgentAppraisalHomeState.FormComplete,eg(r.trackSubmission(o))}),bf()();}if(e&2){let t=yx();X_$1(2),TD("ngForOf",t.agentProfiles),X_$1(5),TD("ngIf",DA(8,9,t.mediaSize.is.sm$)),X_$1(3),TD("agents",t.agentProfiles)("propertyAddress",t.propertyAddress)("getRecaptchaToken",t.getRecaptchaToken)("memberEmail",t.memberEmail)("memberPhone",t.memberPhone)("memberName",t.memberName)("formType",t.formType);}}function ji(e,n){if(e&1&&(Ia(0,"p"),Qx(1),_D(2,"br"),Qx(3," discuss next steps. "),bf()),e&2){let t=yx(2);X_$1(),Af(" ",t.agentProfiles[0].firstName," will be in touch shortly to");}}function Ui(e,n){e&1&&(Ia(0,"p"),Qx(1," The agents you selected will be in"),_D(2,"br"),Qx(3," touch shortly to discuss next steps. "),bf());}function Xi(e,n){if(e&1&&(Ia(0,"div",39)(1,"div",40)(2,"tg-svg",41),_D(3,"tm-agent-appraisal-request-sent-confirmation-svg"),bf(),Ia(4,"h1"),Qx(5,"Your request has been sent!"),bf(),iD(6,ji,4,1,"p",8)(7,Ui,4,0,"p",8),Ia(8,"p"),Qx(9,"Continue Browsing on "),Ia(10,"a",42),Qx(11,"Trade Me Property"),bf()()()()),e&2){let t=yx();X_$1(2),TD("scaleToFill",true),X_$1(4),TD("ngIf",t.agentProfiles?.length===1),X_$1(),TD("ngIf",t.agentProfiles?.length!==1);}}var hn={title:"Request a free Appraisal from {agents}",description:"Find out what your property is worth with a free, no-obligation property appraisal, from local New Zealand Real Estate Agents."},We=(function(e){return e[e.SelectedAgent=0]="SelectedAgent",e[e.LocationSelect=1]="LocationSelect",e[e.Form=2]="Form",e[e.FormComplete=3]="FormComplete",e})(We||{}),qe=(()=>{let n=class n{constructor(i,o,r,v$1,P,G){this._activatedRoute=i,this._changeDetectorRef=o,this.agentAppraisalService=r,this.router=v$1,this.mediaSize=P,this._metadataFacade=G,this.isLoading=true,this.agentProfiles=[],this.invalidSlugs=[],this.isInputboxFocused=false,this.AgentAppraisalHomeState=We,this.formTypeEnum=X,this.propertyAddress="",this.state=We.LocationSelect,this.formType=X.UNIVERSAL,this.recaptchaV3Service=v(C),this._destroyed$=new W,this.member=F$1(this.agentAppraisalService.getCurrentMember()),this.isLoggedOut=bn$1(()=>!this.member()),this.loadRecaptchaScriptEffect=ml(()=>{this.isLoggedOut()&&this.recaptchaV3Service.loadScript();}),this.getRecaptchaToken=()=>I(this,null,function*(){return yield this.recaptchaV3Service.execute("appraisalSubmit")});}ngOnInit(){if(this.updateMemberInfo(),this.urlSlugs=this._activatedRoute.snapshot.params.urlSlugs,!this.urlSlugs||this.urlSlugs.length===0){this.isLoading=false,this.setPageMetadata();return}this.agentAppraisalService.getAgentProfilesFromRoute(this._activatedRoute.snapshot).pipe(Xp(this._destroyed$)).subscribe({next:i=>this.handleAgentProfilesResult(i),error:i=>this.handleError(i)});}onInputboxFocused(){this.isInputboxFocused=true;}ngOnDestroy(){this._destroyed$.next(),this._destroyed$.complete();}trackSubmission(i){this.agentAppraisalService.trackSubmission(i),this.agentAppraisalService.trackAppraisalFlowSubmit();}trackNext(){this.agentAppraisalService.trackNext(),this.agentAppraisalService.trackAppraisalFlowNext();}setPageMetadata(){let i=this.getPageTitle(hn.title);this._metadataFacade.updateMetaData({title:i,description:hn.description});}getAgentsFirstName(){return this.agentAppraisalService.getAgentOrAgentsFirstName(this.agentProfiles)}updateMemberInfo(){this.agentAppraisalService.getCurrentMember().pipe(Xt(i=>!!i),Xp(this._destroyed$)).subscribe(i=>{this.memberEmail=i.email,this.memberPhone=(i.mobilePhoneNumber||i.landlinePhoneNumber)?.replace(/\s/g,""),this.memberName=[i.firstName,i.lastName].join(" "),this.propertyAddress=this.propertyAddress||this.getMemberAddress(i.membershipAddress);});}getMemberAddress(i){return i?.address2&&i.suburb&&i.city?`${i.address2}, ${i.suburb}, ${i.city}`:""}redirectToNotFound(){this.router.navigate(["/property"],{skipLocationChange:true});}
4handleAgentProfilesResult(i){if(i.validProfiles.length===0){this.redirectToNotFound();return}this.state=We.SelectedAgent,this.agentProfiles=i.validProfiles,this.invalidSlugs=i.invalidSlugs,this.isLoading=false,this._changeDetectorRef.markForCheck(),this.setPageMetadata();}handleError(i){this.error=i,this.isLoading=false,this._changeDetectorRef.markForCheck(),this.setPageMetadata();}getPageTitle(i){let o="a Property Agent";return this.agentProfiles&&this.agentProfiles.length>0&&(o=this.agentAppraisalService.getAgentOrAgentsFullName(this.agentProfiles,true)),i.replace("{agents}",o)}};n.\u0275fac=function(o){return new(o||n)(R(Re),R(mc),R(Ct),R(ce),R(G),R(l))},n.\u0275cmp=jM({type:n,selectors:[["tm-agent-appraisal-home"]],hostAttrs:["ngSkipHydration","true"],standalone:false,decls:17,vars:6,consts:[["SelectedAgent",""],["LocationState",""],["FormState",""],["CompleteState",""],["class","tm-agent-appraisal-home__header",4,"ngIf"],["tgStyle","danger",4,"ngIf"],[1,"tm-agent-appraisal-home__body"],[1,"tm-agent-appraisal-home__body-wrapper"],[4,"ngIf"],[1,"tm-agent-appraisal-home__header"],["href","/","tmNavigateToHome","",1,"tm-agent-appraisal-home__header-link"],["aria-label","Trademe Appraisal"],["tgStyle","danger"],[1,"tm-agent-appraisal-home__loading-spinner"],[3,"ngSwitch"],[3,"ngTemplateOutlet",4,"ngSwitchCase"],[3,"ngTemplateOutlet"],[1,"tm-agent-appraisal__agent-specific"],[1,"tm-agent-appraisal__state"],[1,"tm-agent-appraisal__selected-agent"],[3,"agents"],["class","tm-agent-appraisal__form",4,"ngIf"],[1,"tm-agent-appraisal__value-card"],[3,"viewMode"],["class","tm-agent-appraisal__grecaptcha-branding",3,"ngClass",4,"ngIf"],["class","tm-agent-appraisal__get-started",3,"ngClass",4,"ngIf"],[1,"tm-agent-appraisal__form"],[3,"complete","agents","getRecaptchaToken","propertyAddress","memberEmail","memberPhone","memberName","formType"],[1,"tm-agent-appraisal__grecaptcha-branding",3,"ngClass"],["href","https://policies.google.com/privacy"],["href","https://policies.google.com/terms"],[1,"tm-agent-appraisal__get-started",3,"ngClass"],["tgButton2","","tgStyle","primary",3,"click"],[3,"inputboxFocused","complete","agents"],[1,"tm-agent-appraisal-home__form"],[1,"tm-agent-appraisal-home__profile-image"],["tgCircleImage","",3,"src","alt","class",4,"ngFor","ngForOf"],[3,"complete","agents","propertyAddress","getRecaptchaToken","memberEmail","memberPhone","memberName","formType"],["tgCircleImage","",3,"src","alt"],[1,"complete-state"],[1,"complete-state__content"],[3,"scaleToFill"],["routerLink","/property"]],template:function(o,r){o&1&&(Ia(0,"aside"),_D(1,"tg-notifications"),bf(),iD(2,Oi,3,0,"div",4),yA(3,"async"),iD(4,Ei,2,1,"tg-info-box",5),Ia(5,"div",6)(6,"div",7),iD(7,Ti,2,0,"div",8)(8,Ri,6,5,"ng-container",8),bf()(),iD(9,Bi,12,11,"ng-template",null,0,wA)(11,Hi,2,1,"ng-template",null,1,wA)(13,Wi,11,11,"ng-template",null,2,wA)(15,Xi,12,3,"ng-template",null,3,wA)),o&2&&(X_$1(2),TD("ngIf",!DA(3,4,r.mediaSize.is.sm$)||!r.isInputboxFocused),X_$1(2),TD("ngIf",!r.isLoading&&r.error),X_$1(3),TD("ngIf",r.isLoading),X_$1(),TD("ngIf",!r.isLoading&&!r.error));},dependencies:[pO,YI,mO,IO,Ip,yO,sn,_n,fn,d,O,He$1,B_,ze,H,rn,fi$1,P,x0,Vc,$c,bO],styles:["tm-agent-appraisal-home[_nghost-%COMP%]{display:block;height:100vh}tm-agent-appraisal-home[_nghost-%COMP%]   .tm-agent-appraisal-home__header[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:16px;box-shadow:0 5px 5px -5px #dadada}tm-agent-appraisal-home[_nghost-%COMP%]   .tm-agent-appraisal-home__body[_ngcontent-%COMP%]{min-height:100%;background:#f6f5f4;padding:16px}@media(max-width:767px){tm-agent-appraisal-home[_nghost-%COMP%]   .tm-agent-appraisal-home__body[_ngcontent-%COMP%]{min-height:150%}}@media screen and (min-width:768px){tm-agent-appraisal-home[_nghost-%COMP%]   .tm-agent-appraisal-home__body[_ngcontent-%COMP%]{padding:48px 48px 24vh}}@media screen and (min-width:768px){tm-agent-appraisal-home[_nghost-%COMP%]   .tm-agent-appraisal-home__body-wrapper[_ngcontent-%COMP%]{max-width:1080px;margin:auto}}tm-agent-appraisal-home[_nghost-%COMP%]   .tm-agent-appraisal-home__form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;background-color:#fff;justify-content:center;border-radius:16px;padding:20px}tm-agent-appraisal-home[_nghost-%COMP%]   .tm-agent-appraisal-home__form[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:center}tm-agent-appraisal-home[_nghost-%COMP%]   .tm-agent-appraisal-home__profile-image[_ngcontent-%COMP%]{display:flex;align-items:center}tm-agent-appraisal-home[_nghost-%COMP%]   .tm-agent-appraisal-home__profile-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:70px;height:70px}tm-agent-appraisal-home[_nghost-%COMP%]   .tm-agent-appraisal-home__profile-image[_ngcontent-%COMP%]   img.overlap[_ngcontent-%COMP%]{margin-right:-16px;z-index:1}.tm-agent-appraisal[_ngcontent-%COMP%]{display:flex}.tm-agent-appraisal__agent-specific[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:200px}@media screen and (min-width:768px){.tm-agent-appraisal__agent-specific[_ngcontent-%COMP%]{flex-direction:row}}.tm-agent-appraisal__state[_ngcontent-%COMP%]{background-color:#fff;border-radius:24px;box-shadow:0 5px 5px -5px #dadada;padding:16px;height:auto}@media screen and (min-width:768px){.tm-agent-appraisal__state[_ngcontent-%COMP%]{padding:32px;width:80%}}.tm-agent-appraisal__state__selected-agent[_ngcontent-%COMP%]{display:flex}.tm-agent-appraisal__form[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:18px;font-weight:500}.tm-agent-appraisal__value-card[_ngcontent-%COMP%]{display:flex;flex-direction:column}@media screen and (min-width:768px){.tm-agent-appraisal__value-card[_ngcontent-%COMP%]{width:20%}}.tm-agent-appraisal__get-started[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:4px 24px;background-color:#fff;position:fixed;bottom:0;left:0;right:0;box-shadow:3px 0 8px #00000026}@media screen and (max-width:767px){.tm-agent-appraisal__get-started.logged_out[_ngcontent-%COMP%]{font-size:.75rem;line-height:16px}}.tm-agent-appraisal__get-started[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:16px 0}.tm-agent-appraisal__grecaptcha-branding[_ngcontent-%COMP%]{padding:0 4px;display:none}.tm-agent-appraisal__grecaptcha-branding.logged_out[_ngcontent-%COMP%]{display:block}@media screen and (max-width:767px){.tm-agent-appraisal__grecaptcha-branding.logged_out[_ngcontent-%COMP%]{font-size:.75rem;line-height:16px}}.complete-state[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;border-radius:16px}.complete-state__content[_ngcontent-%COMP%]{max-width:720px;
4display:flex;border-radius:16px;box-shadow:0 5px 5px -5px #dadada;flex-direction:column;text-align:center;background:#fff;padding:80px 80px 8px}.complete-state__content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#76716d;font-size:1rem;margin-top:-16px}.complete-state__content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   a[routerLink][_ngcontent-%COMP%]{color:#148fe2;cursor:pointer}.complete-state__content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:last-child{margin-top:24px;font-size:.875rem}@media screen and (max-width:767px){  body div.grecaptcha-badge{visibility:hidden}}"]});let e=n;return e})();var Cn=(()=>{let n=class n{};n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=Za({type:n}),n.\u0275inj=_o({imports:[VO,ee,br,X_,He$1,Cb,Ns,dc,de,Jt,dr,Qi,Be,He,H,Ge]});let e=n;return e})();var wo=(()=>{let n=class n{};n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=Za({type:n}),n.\u0275inj=_o({imports:[VO,ge,_t,Cn,f,F,we,He$1,Qi,ze,H,eu.forChild([{path:"",component:qe},{path:":urlSlugs",component:qe}]),x0,Vc,$c]});let e=n;return e})();
5export{wo as AgentAppraisalHomeModule};//# sourceMappingURL=agent-appraisal-home.module-BkvC-PwC.js.map
6
7//# debugId=6b3ba29b-3563-5585-8f39-f7d07cf36225

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.