1"use strict";(self.webpackChunkreconz_user=self.webpackChunkreconz_user||[]).push([[179],{2079(e,t,s){s.r(t),s.d(t,{default:()=>K});var i=s(99588),n=s(53597),a=s(79995);const l=e=>e?(0,n.n)([e],{size:"sm",modType:"scale"}):"",r=e=>{let{office:t,currentUrl:s}=e;return{"@context":"http://schema.org",type:"LocalBusiness",name:t.name,address:t.primaryAddress,url:`https://${a.default.APP.websiteHost}${s}`,image:l(t.imageBaseUrl),telephone:t.phone,logo:l(t.imageBaseUrl),member:t.colloquialName}};var o=s(48560);const c=e=>{let{office:t,currentUrl:s}=e;if(!s)return null;if(!t.name)return null;const i=t.physicalAddress?.city;return i?{"@context":"http://schema.org",type:"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:i.trim().toLowerCase().split(" ").map(o.ZH).join(" "),item:`https://${a.default.APP.websiteHost}/search/results/offices/${encodeURIComponent(i.toLowerCase().trim())}`},{"@type":"ListItem",position:2,name:t.name,item:`https://${a.default.APP.websiteHost}${s}`}].filter(Boolean)}:null};var u=s(84489),g=s(37700),d=s(7203),p=s(44917),f=s(66250),h=s(68103),m=s(97132),b=s(56993),y=s(69728),A=s(7153),x=s(16611),v=s(41079);const w=(0,v.createTemplateFactory)({id:"ZuaMZ82V",block:'[[[10,0],[14,0,"flex flex-col pb-10"],[14,"data-test","office-header"],[12],[1,"\\n "],[10,0],[14,0,"head flex flex-row justify-center py-4 md:justify-start md:py-6"],[15,5,[30,1,["officeBackgroundColour"]]],[12],[1,"\\n"],[41,[30,0,["officeDefaultImage"]],[[[1," "],[8,[32,0],null,[["@height","@className","@logoImgPath","@alt"],[40,"pl-4.25 self-start",[30,0,["officeDefaultImage"]],[30,1,["colloquialName"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"lg:pt-9.5 flex flex-col pt-7"],[12],[1,"\\n"],[41,[30,1,["name"]],[[[1," "],[10,0],[14,0,"text-left text-lg font-semibold text-black lg:text-xl"],[14,"data-test","office-header__name"],[12],[1,[30,1,["name"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["officeAddress"]],[[[1," "],[10,0],[14,0,"pt-4.5 flex flex-row text-center align-middle text-black md:text-left lg:pt-5"],[14,"data-test","office-header__address"],[12],[1,"\\n "],[1,[28,[32,1],["map-pin"],[["class"],["stroke-1.5 w-5 h-5 mr-2 text-primaryBlue-500 shrink-0"]]]],[1,"\\n "],[10,1],[14,0,"text-sm font-medium text-black"],[12],[1,[30,0,["officeAddress"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"flex items-center pt-4 md:justify-start"],[12],[1,"\\n "],[10,0],[14,0,"divide-slateGrey-200 flex divide-x"],[12],[1,"\\n"],[41,[30,1,["phone"]],[[[1," "],[10,0],[14,"data-test","office-header__phone"],[14,0,"semibold text-primaryBlue-500 flex items-center pr-3"],[12],[1,"\\n "],[8,[32,2],[[24,0,"text-primaryBlue-500 flex cursor-pointer items-center truncate text-sm font-semibold leading-none"]],[["@category","@label","@page","@action","@link"],["Office phone",[30,1,["phone"]],[30,0,["eventPage"]],[30,0,["officeActionEvent"]],[28,[37,3],["tel:",[30,1,["phone"]]],null]]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["phone"],[["class"],["stroke-1.5 w-5 h-5 mr-2 shrink-0"]]]],[1,"\\n "],[1,[30,1,["phone"]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["websiteUrl"]],[[[1," "],[10,0],[14,"data-test","office-header__websiteUrl"],[14,0,"flex pl-3"],[12],[1,"\\n "],[8,[32,2],[[24,0,"inline-block flex w-full items-center text-sm font-semibold"]],[["@link","@linkClass","@openInNewTab","@action","@category","@page","@label"],[[28,[32,3],[[30,1,["websiteUrl"]]],null],"font-medium","true",[30,0,["externalLinkActionEvent"]],"Agency External Link","Office Profile","Visit agency page"]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["globe"],[["class"],["stroke-1.5 shrink-0 w-7 h-7 mr-1.5 text-primaryBlue-500"]]]],[1,"\\n Visit our website\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["@office"],false,["div","if","span","concat"]]',moduleName:"reconz-user/components/office/office-header.hbs",scope:()=>[b.A,y.A,A.A,x.A],isStrictMode:!1});var P,k,C,L=s(27953);let O=(P=class extends f.A{constructor(){super(...arguments),(0,d.A)(this,"officeActionEvent",k,this),(0,d.A)(this,"externalLinkActionEvent",C,this)}get officeAddress(){const{office:e}=this.args;if(null===e.physicalAddress||void 0===e.physicalAddress)return null;const t=(0,m.n)(e.physicalAddress.city);return e&&e.physicalAddress&&e.physicalAddress.address1&&t?`${e.physicalAddress.address1}, ${t}`:null}get officeDefaultImage(){const{office:e}=this.args;return e.images?e.images.find(e=>"default"===e["listing-type"])?.["base-url"]:e.imageBaseUrl}get eventPage(){return window.location?window.location.pathname:void 0}},k=(0,p.A)(P.prototype,"officeActionEvent",[h.r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return`O: ${this.args.office.id}`}}),C=(0,p.A)(P.prototype,"externalLinkActionEvent",[h.r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.office.websiteUrl}}),P);(0,L.setComponentTemplate)(w,O);var _=s(28187),z=s.n(_),R=s(82358);const S=(0,v.createTemplateFactory)({id:"bfm7VEFw",block:'[[[10,"section"],[14,"data-test","office-stats"],[14,0,"flex justify-around pb-10 pt-8 uppercase"],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,1]],null]],null],null,[[[41,[28,[32,0],[[30,2,["value"]],0],null],[[[1," "],[11,0],[24,"data-test","office-stat"],[24,0,"flex cursor-pointer flex-col space-y-4 text-center"],[4,[38,5],["click",[28,[37,6],[[30,3],[30,2,["label"]]],null]],null],[12],[1,"\\n "],[10,"img"],[14,0,"h-24 w-40"],[15,"src",[30,2,["src"]]],[15,"alt",[30,2,["alt"]]],[12],[13],[1,"\\n "],[10,0],[14,0,"md:text-5xl.25 text-3xl font-semibold text-black"],[12],[1,[30,2,["value"]]],[13],[1,"\\n "],[10,0],[14,0,"text-xs.5 text-slateGrey-500 font-semibold"],[12],[1,"\\n "],[1,[30,2,["label"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[2]],null],[13]],["@officeStats","stat","@selectStat"],false,["section","each","-track-array","if","div","on","fn","img"]]',moduleName:"reconz-user/components/office-detail/office-stats.hbs",scope:()=>[R.A],isStrictMode:!1}),D=(0,L.setComponentTemplate)(S,z()());var T=s(80775),N=s(21883);const j=(0,v.createTemplateFactory)({id:"YEQSdh7x",block:'[[[10,0],[14,0,"xs:grid-cols-2 flex grid gap-x-6 gap-y-8 pb-8 lg:grid-cols-3"],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[28,[32,0],[6],null]],null]],null],null,[[[1," "],[10,0],[14,0,"overflow-hidden rounded-lg"],[12],[1,"\\n "],[8,[32,1],null,[["@height"],["208"]],[["default"],[[[[1,"\\n "],[10,"rect"],[14,"x","0"],[14,"y","0"],[14,"rx","0"],[14,"ry","0"],[14,"width","100%"],[14,"height","100%"],[12],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[13]],["empty"],false,["div","each","-track-array","rect"]]',moduleName:"reconz-user/components/utils/placeholder/office-agent-cards.hbs",scope:()=>[T.A,N.A],isStrictMode:!1}),U=(0,L.setComponentTemplate)(j,z()());var B=s(59220),I=s(52257),E=s(68470),M=s(10085),$=s(71700);const F=(0,v.createTemplateFactory)({id:"1B8fBPXQ",block:'[[[10,0],[14,0,"border-slateGrey-200 hover:shadow-card flex h-full w-full flex-col items-center justify-end space-y-2 rounded-xl border bg-white p-4 text-black shadow-sm"],[14,"data-test","office-agent-card"],[12],[1,"\\n "],[8,[32,0],null,[["@agent","@ringClass"],[[30,1],"-top-13"]],[["default"],[[[[1,"\\n"],[41,[30,1,["image","base-url"]],[[[1," "],[8,[32,1],[[24,0,"-mt-13 w-18.5 h-18.5 border-slateGrey-100 h-auto overflow-hidden rounded-full border"],[24,"data-test","office-agent-card__image"]],[["@src","@alt","@width","@height","@sizes","@preview","@modType","@useImageAs
1Missing","@missingImage"],[[28,[37,2],[[30,1],"image.base-url"],null],[30,1,["name"]],"75","75","75px",true,"fcrop",true,"/svgs/no-agent-photo.svg"]],null],[1,"\\n"]],[]],[[[1," "],[10,"img"],[14,"src","/svgs/no-agent-photo.svg"],[14,"alt","Missing agent"],[14,0,"w-18.5 h-18.5 -mt-13 overflow-hidden rounded-full"],[12],[13],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n\\n "],[10,0],[14,0,"flex w-full flex-col items-center pb-2"],[12],[1,"\\n "],[10,"h4"],[14,0,"pb-1.5 text-sm font-semibold lg:text-base"],[14,"data-test","office-agent-card__name"],[12],[1,[30,1,["name"]]],[13],[1,"\\n\\n "],[10,0],[14,0,"divide-slateGrey-200 flex h-3 divide-x-2 text-xs font-medium xl:text-sm"],[14,"data-test","office-agent-card__phones"],[12],[1,"\\n"],[41,[30,0,["agentHasPhoneNumber"]],[[[1," "],[8,[32,2],[[24,0,"text-primaryBlue-500 cursor-pointer truncate pr-1 leading-none lg:pr-1.5"],[24,"data-test","office-agent-card__phone-mobile"]],[["@category","@label","@page","@action","@link"],["Agent Phone",[30,1,["phoneMobile"]],[30,0,["eventPage"]],[30,2],[28,[37,5],["tel:",[30,1,["phoneMobile"]]],null]]],[["default"],[[[[1,"\\n "],[1,[30,1,["phoneMobile"]]],[1,"\\n "]],[]]]]],[1,"\\n"],[41,[30,1,["phoneDdi"]],[[[1," "],[8,[32,2],[[24,0,"text-primaryBlue-500 cursor-pointer truncate pl-1 leading-none lg:pl-1.5"],[24,"data-test","office-agent-card__phone-ddi"]],[["@category","@label","@page","@action","@link"],["Agent Phone",[30,1,["phoneDdi"]],[30,0,["eventPage"]],[30,2],[28,[37,5],["tel:",[30,1,["phoneDdi"]]],null]]],[["default"],[[[[1,"\\n "],[1,[30,1,["phoneDdi"]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[8,[32,2],[[16,0,[29,["mt-1 block w-full ",[28,[32,3],null,[["variant"],["primary"]]]]]]],[["@route","@models","@category","@label","@page","@action","@useNativeTransition"],["agent-detail",[28,[37,6],[[30,1,["id"]],[30,1,["slug"]]],null],"Agent Profile",[30,1,["phoneDdi"]],[30,0,["eventPage"]],[30,2],true]],[["default"],[[[[1,"\\n View profile\\n "]],[]]]]],[1,"\\n"],[13]],["@agent","@eventAction"],false,["div","if","get","img","h4","concat","array"]]',moduleName:"reconz-user/components/office-detail/office-agent-card.hbs",scope:()=>[E.A,M.A,A.A,$.A],isStrictMode:!1});class q extends f.A{get agentHasPhoneNumber(){const{phoneMobile:e,phoneDdi:t}=this.args.agent;return e||t}get eventPage(){return window?.location?.pathname||void 0}get eventAction(){const{agent:e}=this.args;return e?.id?`A: ${e.id}`:"undefined"}}(0,L.setComponentTemplate)(F,q);var G=s(26339);const H=(0,v.createTemplateFactory)({id:"uJunX54X",block:'[[[10,0],[14,0,"container flex flex-col pt-10"],[14,"data-test","office-agents"],[14,1,"office-agents"],[12],[1,"\\n "],[10,"h3"],[14,0,"mb-2 text-xl font-semibold text-black"],[12],[1,"Our team"],[13],[1,"\\n\\n "],[10,0],[14,0,"mb-12 flex items-center justify-between text-sm font-medium text-black"],[12],[1,"\\n "],[10,0],[12],[1,"Displaying\\n "],[10,1],[14,0,"font-semibold"],[12],[1,"\\n "],[1,[30,0,["paginationStartIndex"]]],[1,"-"],[1,[30,0,["paginationEndIndex"]]],[1,",\\n "],[13],[1,"\\n out of\\n "],[10,1],[14,0,"font-semibold"],[14,"data-test","office-agents__total"],[12],[1,[30,1]],[13],[1,"\\n team members\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"xs:grid-cols-2 mb-8 grid gap-x-6 gap-y-12 lg:grid-cols-3 xl:grid-cols-4"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,2]],null]],null],null,[[[1," "],[10,0],[14,"data-test","office-agents__agent-card"],[12],[1,"\\n "],[8,[32,0],null,[["@agent"],[[30,3]]],null],[1,"\\n "],[13],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n\\n"],[41,[28,[32,1],[[30,2,["length"]],0],null],[[[1," "],[8,[32,2],null,[["@items","@pageUpdated"],[[30,2],[30,0,["pageUpdated"]]]],null],[1,"\\n"]],[]],null],[13]],["@totalResults","@agents","agent"],false,["div","h3","span","each","-track-array","if"]]',moduleName:"reconz-user/components/office-detail/office-agents.hbs",scope:()=>[q,R.A,G.A],isStrictMode:!1});var V,Z;let X=(V=class extends f.A{constructor(){super(...arguments),(0,B.A)(this,"pageLimit",12),(0,B.A)(this,"resultsPerPage",12),(0,d.A)(this,"pageNumber",Z,this)}get paginationStartIndex(){return this.resultsPerPage*this.pageNumber-this.resultsPerPage+1}get paginationEndIndex(){return this.args.totalResults<this.resultsPerPage?this.args.totalResults:1===this.pageNumber?this.resultsPerPage:this.args.totalResults%this.resultsPerPage>0&&this.isLastPage?this.args.totalResults:this.paginationStartIndex+this.resultsPerPage-1}get isLastPage(){const e=Math.ceil(this.args.totalResults/this.resultsPerPage)||
11;return this.pageNumber===e}pageUpdated(e,t){this.pageNumber=Number.isNaN(t)?1:Number(t);const s=(t-1)*this.pageLimit;this.args.resetAgentResults(s)}},Z=(0,p.A)(V.prototype,"pageNumber",[h.r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),(0,p.A)(V.prototype,"pageUpdated",[I.action],Object.getOwnPropertyDescriptor(V.prototype,"pageUpdated"),V.prototype),V);(0,L.setComponentTemplate)(H,X);var W=s(41038),J=s(81544);const K=(0,v.createTemplateFactory)({id:"kM11FkMT",block:'[[[8,[32,0],[[24,"data-test","local-business-schema"]],[["@schema"],[[28,[32,1],null,[["office","currentUrl"],[[30,0,["office"]],[30,0,["router","currentURL"]]]]]]],null],[1,"\\n"],[8,[32,0],[[24,"data-test","breadcrumbs-schema"]],[["@schema"],[[28,[32,2],null,[["office","currentUrl"],[[30,0,["office"]],[30,0,["router","currentURL"]]]]]]],null],[1,"\\n\\n"],[10,0],[14,0,"container min-h-fit md:flex lg:px-10"],[14,"data-test","office-detail"],[12],[1,"\\n "],[10,0],[14,0,"w-full"],[12],[1,"\\n "],[8,[32,3],null,[["@icon","@label"],["chevron","Back to search"]],null],[1,"\\n\\n "],[10,0],[15,0,[52,[28,[32,4],[[30,0,["isLoading"]]],null],"divide-slateGrey-200 divide-y"]],[12],[1,"\\n "],[8,[32,5],null,[["@office"],[[30,0,["office"]]]],null],[1,"\\n\\n"],[41,[30,0,["statsEnabled"]],[[[1," "],[8,[32,6],null,[["@selectStat","@officeStats"],[[30,0,["selectStat"]],[30,0,["officeStats"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["isAgentsLoading"]],[[[1," "],[8,[32,7],null,null,null],[1,"\\n"]],[]],null],[41,[30,0,["agents"]],[[[1," "],[8,[32,8],null,[["@agents","@resetAgentResults","@totalResults"],[[30,0,["agents"]],[30,0,["resetAgentResults"]],[30,0,["agents","meta","totalResults"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"bg-slateGrey-100 w-full pb-2"],[12],[1,"\\n "],[10,0],[14,0,"pt-10.5 bg-slateGrey-100 container min-h-fit md:flex md:px-20"],[12],[1,"\\n "],[10,0],[14,0,"md:w-full"],[14,1,"listings-navigation"],[12],[1,"\\n "],[8,[32,9],null,[["@listings","@paginationIndexDisplay","@categories","@selectCategory","@selectedCategory","@totalResults","@title","@isOfficeDetail"],[[30,0,["listings"]],[30,0,["paginationIndexDisplay"]],[30,0,["categories"]],[30,0,["selectCategory"]],[30,0,["selectedCategory"]],[30,0,["totalResults"]],"Our listings",true]],null],[1,"\\n\\n "],[8,[32,10],null,[["@listings","@pageUpdated","@selectedCategory","@isLoading","@isOfficeDetail"],[[30,0,["listings"]],[30,0,["pageUpdated"]],[30,0,["selectedCategory"]],[30,0,["isLoading"]],true]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["div","if"]]',moduleName:"reconz-user/templates/office-detail.hbs",scope:()=>[i.A,r,c,u.A,g.A,O,D,U,X,W.A,J.A],isStrictMode:!1})},68179(e,t,s){s.r(t);var i=s(44087);let n=window.define;n("reconz-user/templates/office-detail",function(){return(0,i.A)(s(2079))}),n("reconz-user/controllers/office-detail",function(){return(0,i.A)(s(39123))}),n("reconz-user/routes/office-detail",function(){return(0,i.A)(s(58600))})},41038(e,t,s){s.d(t,{A:()=>o});var i=s(66250),n=(s(31637),s(14588)),a=s(74031);const l=(0,s(41079).createTemplateFactory)({id:"93dk6TXY",block:'[[[10,0],[14,"data-test","listings-navigation"],[12],[1,"\\n"],[41,[28,[32,0],[[30,1],[30,2]],null],[[[1," "],[10,"h3"],[14,"data-test","listings-navigation__title"],[15,0,[29,["font-semibold text-black\\n ",[52,[30,3],"pb-6 text-xl","pb-3 text-lg"]]]],[12],[1,[30,1]],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[15,0,[29,["flex flex-col justify-start sm:flex-row sm:justify-between\\n ",[52,[30,3],"mb-5"]]]],[12],[1,"\\n"],[41,[30,3],[[[1," "],[10,"ul"],[14,"data-test","listings-navigation__tabs"],[14,0,"category-selector h-7"],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,4]],null]],null],null,[[[1," "],[11,"li"],[16,0,[52,[28,[32,1],[[30,6],[30,5]],null],"category-active"]],[4,[38,7],["click",[28,[37,8],[[30,7],[30,5]],null]],null],[12],[1,"\\n "],[1,[30,5]],[1,"\\n "],[13],[1,"\\n"]],[5]],null],[1," "],[13],[1,"\\n"]],[]],null],[41,[30,2],[[[1," "],[10,0],[15,0,[29,["my-4 flex sm:mt-0 sm:justify-end ",[52,[30,3],"h-7"]]]],[12],[1,"\\n "],[10,0],[14,"data-test","listings-navigation__info-display"],[14,0,"text-sm text-black"],[12],[1,"Displaying\\n "],[10,1],[14,0,"font-semibold"],[12],[1,[30,8]],[13],[1,", out of\\n "],[10,1],[14,0,"font-semibold"],[14,"data-test","listings-navigation__total-result"],[12],[1,[30,9]],[13],[1,"\\n "],[10,1],[14,0,"lowercase"],[12],[1,[52,[30,3],[30,0,["SelectedCategoryLabel"]],"active listings"]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13]],["@title","@listings","@isOfficeDetail","@categories","category","@selectedCategory","@selectCategory","@paginationIndexDisplay","@totalResults"],false,["div","if","h3","ul","each","-track-array","li","on","fn","span"]]',moduleName:"reconz-user/components/listings-panel/listings-navigation.hbs",scope:()=>[n.A,a.A],isStrictMode:!1});var r=s(27953);class o extends i.A{constructor(){super(...arguments);const{categories:e,isOfficeDetail:t}=this.args}get SelectedCategoryLabel(){const{selectedCategory:e}=this.args;return"All listings"===e?"active listings":`${e} listings`}}(0,r.setComponentTemplate)(l,o)},81544(e,t,s){s.d(t,{A:()=>c});var i=s(28187),n=s.n(i),a=s(81853),l=s(82358),r=s(26339);const o=(0,s(41079).createTemplateFactory)({id:"WUKWvdne",block:'[[[41,[30,1],[[[1," "],[10,0],[14,"data-test","listings__loading-message"],[14,0,"mb-4 mt-4 text-center"],[12],[1,"\\n Getting everything ready\\n "],[13],[1,"\\n"]],[]],[[[41,[30,2],[[[1," "],[10,0],[14,"data-test","listings__items"],[15,0,[29,["sm:grid sm:grid-cols-2 sm:gap-4\\n ",[52,[30,3],"lg:grid-cols-3"]]]],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,2]],null]],null],null,[[[1," "],[10,0],[14,0,"tile mb-4 border md:mb-0"],[12],[1,"\\n "],[8,[32,0],null,[["@listing","@index","@showIfNew","@gtmOrigin"],[[30,4],[3
10,5],true,[52,[30,3],"Agency page - Active listings","Agent page - Active listings"]]],null],[1,"\\n "],[13],[1,"\\n"]],[4,5]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,"data-test","listings__pagination"],[14,0,"my-4"],[12],[1,"\\n"],[41,[28,[32,1],[[30,2,["length"]],0],null],[[[1," "],[8,[32,2],null,[["@items","@pageUpdated"],[[30,2],[30,6]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"]],[]],[[[41,[30,3],[[[1," "],[10,0],[14,0,"mb-5 mt-6"],[12],[1,"\\n Currently there are no active listings\\n "],[13],[1,"\\n"]],[]],null]],[]]]],[]]]],["@isLoading","@listings","@isOfficeDetail","tile","index","@pageUpdated"],false,["if","div","each","-track-array"]]',moduleName:"reconz-user/components/listings-panel/listings.hbs",scope:()=>[a.A,l.A,r.A],isStrictMode:!1}),c=(0,s(27953).setComponentTemplate)(o,n()())},99588(e,t,s){s.d(t,{A:()=>o});var i=s(28187),n=s.n(i),a=s(25416),l=s(2784);const r=(0,s(41079).createTemplateFactory)({id:"BOzkkE3L",block:'[[[41,[30,1],[[[1," "],[11,"script"],[24,4,"application/ld+json"],[17,2],[12],[1,"\\n "],[1,[28,[32,0],[[28,[32,1],[[30,1]],null]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],["@schema","&attrs"],false,["if","script"]]',moduleName:"reconz-user/components/seo-schema.hbs",scope:()=>[a.A,l.A],isStrictMode:!1}),o=(0,s(27953).setComponentTemplate)(r,n()())},68470(e,t,s){s.d(t,{A:()=>o});var i=s(28187),n=s.n(i),a=s(42558),l=s(25140);const r=(0,s(41079).createTemplateFactory)({id:"JSInhxoo",block:'[[[44,[[30,1,["hasGoldRank"]],[30,1,["hasPlatinumRank"]]],[[[1," "],[10,0],[14,0,"tile__office__agent-photo__img"],[12],[1,"\\n "],[18,5,null],[1,"\\n"],[41,[28,[32,0],[[30,2],[30,3]],null],[[[1," "],[8,[32,1],[[16,0,[30,4]]],[["@isPlatinum","@isGold"],[[30,3],[30,2]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[2,3]]]],["@agent","gold","platinum","@ringClass","&default"],false,["let","div","yield","if"]]',moduleName:"reconz-user/components/tile/office/agents/ring-wrapper.hbs",scope:()=>[a.A,l.A],isStrictMode:!1}),o=(0,s(27953).setComponentTemplate)(r,n()())},84489(e,t,s){s.d(t,{A:()=>p});var i=s(7203),n=s(44917),a=s(66250),l=s(2329),r=s(52257),o=s(69728);const c=(0,s(41079).createTemplateFactory)({id:"KdbkATn1",block:'[[[11,0],[24,"data-test","back-history"],[24,0,"flex cursor-pointer items-center py-7"],[4,[38,1],["click",[30,0,["goBack"]]],null],[12],[1,"\\n"],[41,[30,1],[[[1," "],[1,[28,[32,0],[[30,1]],[["class","data-test"],["w-3 h-3 text-primaryBlue-500 transform rotate-90 mr-2 stroke-2","back-history__svg"]]]],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"text-primaryBlue-500 text-sm font-semibold"],[14,"data-test","back-history__link"],[12],[1,"\\n "],[1,[30,2]],[1,"\\n "],[13],[1,"\\n"],[13]],["@icon","@label"],false,["div","on","if"]]',moduleName:"reconz-user/components/utils/back-history.hbs",scope:()=>[o.A],isStrictMode:!1});var u,g,d=s(27953);let p=(u=class extends a.A{constructor(){super(...arguments),(0,i.A)(this,"reconzRouter",g,this)}goBack(e){e.preventDefault(),this.reconzRouter.goBack()}},g=(0,n.A)(u.prototype,"reconzRouter",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.A)(u.prototype,"goBack",[r.action],Object.getOwnPropertyDescriptor(u.prototype,"goBack"),u.prototype),u);(0,d.setComponentTemplate)(c,p)},39123(e,t,s){s.r(t),s.d(t,{default:()=>j});var i,n,a,l,r,o,c,u,g,d,p,f,h,m,b,y,A,x,v=s(7203),w=s(44917),P=s(7538),k=s.n(P),C=s(52257),L=s(68103),O=s(2329),_=s(48847),z=s(48560),R=s(86130);const S="All listings",D="For sale",T="For rent",N="For lease";let j=(i=class extends(k()){constructor(){super(...arguments),(0,v.A)(this,"fastboot",n,this),(0,v.A)(this,"router",a,this),(0,v.A)(this,"screen",l,this),(0,v.A)(this,"store",r,this),(0,v.A)(this,"listings",o,this),(0,v.A)(this,"agents",c,this),(0,v.A)(this,"queryLimit",u,this),(0,v.A)(this,"pageGroupBy",g,this),(0,v.A)(this,"pageNumber",d,this),(0,v.A)(this,"pageOffset",p,this),(0,v.A)(this,"resultsPerPage",f,this),(0,v.A)(this,"totalResults",h,this),(0,v.A)(this,"numberOfPages",m,this),(0,v.A)(this,"selectedCategory",b,this),(0,v.A)(this,"isLoading",y,this),(0,v.A)(this,"isAgentsLoading",A,this),(0,v.A)(this,"officeStats",x,this)}get office(){return this.model}get categories(){const e=[S],{activeListingCategories:t}=this.office;return t&&((Object.hasOwn(t,"resSale")||Object.hasOwn(t,"bizSale")||Object.hasOwn(t,"comSale")||Object.hasOwn(t,"ruralSale"))&&e.push(D),Object.hasOwn(t,"resRent")&&e.push(T),Object.hasOwn(t,"comLease")&&e.push(N)),e}get paginationStartIndex(){return this.resultsPerPage[this.selectedCategory]*this.pageNumber[this.selectedCategory]-this.resultsPerPage[this.selectedCategory]+1}get paginationEndIndex(){return this.totalResults<this.resultsPerPage[this.selectedCategory]?this.totalResults:1===this.pageNumber[this.selectedCategory]?this.resultsPerPage[this.selectedCategory]:this.totalResults%this.resultsPerPage[this.selectedCategory]>0&&this.isLastPage?this.totalResults:this.paginationStartIndex+this.resultsPerPage[this.selectedCategory]-1}get paginationIndexDisplay(){return`${this.paginationStartIndex}-${this.paginationEndIndex}`}get isLastPage(){const e=this.totalResults%this.resultsPerPage[this.selectedCategory]>0?Math.floor(this.totalResults/this.resultsPerPage[this.selectedCategory])+1:this.totalResults%this.resultsPerPage[this.selectedCategory];return this.pageNumber[this.selectedCategory]===e}get totalAmountOfAgentsFound(){return this.agents?.meta?.totalResults||0}get statsEnabled(){let e=!1;
1return this.officeStats.forEach(t=>{t.value>0&&(e=!0)}),e}selectCategory(e){this.selectedCategory!==e&&(this.selectedCategory=e,this.fetchListings(e))}selectStat(e){"agent"===e||"agents"===e?this.goToPageElement("#office-agents","start"):(this.goToPageElement("#listings-navigation","start"),this.selectCategory((0,z.ZH)(e)))}enteredRoute(){this.selectedCategory=S,this.pageNumber[this.selectedCategory]=1,this.pageOffset[this.selectedCategory]=0,this.resultsPerPage[this.selectedCategory]=this.queryLimit,this.totalResults=0,this.fetchListingAndAgents()}async fetchListingAndAgents(){await this.fetchListings(this.selectedCategory),await this.fetchAgents()}resetListingResults(e){this.fetchListings(e)}resetAgentResults(e,t){this.goToPageElement("#office-agents","start"),this.fetchAgents(e,t)}pageUpdated(e,t){this.pageNumber[this.selectedCategory]=Number.isNaN(t)?1:Number(t);const s=t-1;this.pageOffset[this.selectedCategory]=s*this.queryLimit,this.resetListingResults(this.selectedCategory)}goToStat(){this.goToPageElement("#listings-navigation","start")}setOfficeStats(){const e=["resSale","bizSale","comSale","ruralSale"],t=["resRent"],s=["comLease"],{activeListingCategories:i}=this.office;let n=0,a=0,l=0;
1Object.keys(i).forEach(r=>{e.includes(r)&&(n+=i[r]),t.includes(r)&&(a+=i[r]),s.includes(r)&&(l+=i[r])}),this.officeStats=[{label:(0,_.td)(this.totalAmountOfAgentsFound,"agent",{withoutCount:!0}),src:"/svgs/stats-agents.svg",alt:"agents stats",value:this.totalAmountOfAgentsFound},{label:"for sale",src:"/svgs/stats-for-sale.svg",alt:"sale stats",value:n},{label:"for rent",src:"/svgs/stats-for-rent.svg",alt:"rent stats",value:a},{label:"for lease",src:"/svgs/stats-for-lease.svg",alt:"lease stats",value:l}]}async fetchListings(e){this.isLoading=!0;const t={office:[this.office.id]};e===T&&(t.category=["res_rent"]),e===N&&(t.category=["com_lease"]),e===D&&(t.category=["res_sale","biz_sale","com_sale","rural_sale"]);const s={page:{offset:this.pageOffset[this.selectedCategory],limit:this.queryLimit,groupBy:this.pageGroupBy},filter:t};await this.store.query("listing",s).then(e=>{this.listings=e,this.totalResults=this.listings.meta.totalResults,this.resultsPerPage[this.selectedCategory]=this.listings.meta.resultsPerPage,this.isLoading=!1})}async fetchAgents(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;this.isAgentsLoading=!0;const s={filter:{officeId:[this.office.id]},page:{offset:e,limit:t}},i=await this.store.query("agent",s);this.agents=i,this.isAgentsLoading=!1,this.setOfficeStats()}goToPageElement(e,t){document.querySelector(e).scrollIntoView({behavior:"smooth",block:t})}},n=(0,w.A)(i.prototype,"fastboot",[O.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,w.A)(i.prototype,"router",[O.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,w.A)(i.prototype,"screen",[O.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r=(0,w.A)(i.prototype,"store",[O.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,w.A)(i.prototype,"listings",[L.r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,w.A)(i.prototype,"agents",[L.r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,w.A)(i.prototype,"queryLimit",[L.r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 6}}),g=(0,w.A)(i.prototype,"pageGroupBy",[L.r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"latest"}}),d=(0,w.A)(i.prototype,"pageNumber",[L.r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{[S]:1,[D]:1,[T]:1,[N]:1}}}),p=(0,w.A)(i.prototype,"pageOffset",[L.r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{[S]:0,[D]:0,[T]:0,[N]:0}}}),f=(0,w.A)(i.prototype,"resultsPerPage",[L.r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{[S]:this.queryLimit,[D]:this.queryLimit,[T]:this.queryLimit,[N]:this.queryLimit}}}),h=(0,w.A)(i.prototype,"totalResults",[L.r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,w.A)(i.prototype,"numberOfPages",[L.r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,w.A)(i.prototype,"selectedCategory",[L.r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return S}}),y=(0,w.A)(i.prototype,"isLoading",[L.r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),A=(0,w.A)(i.prototype,"isAgentsLoading",[L.r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),x=(0,w.A)(i.prototype,"officeStats",[L.r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,w.A)(i.prototype,"selectCategory",[C.action],Object.getOwnPropertyDescriptor(i.prototype,"selectCategory"),i.prototype),(0,w.A)(i.prototype,"selectStat",[C.action],Object.getOwnPropertyDescriptor(i.prototype,"selectStat"),i.prototype),(0,w.A)(i.prototype,"enteredRoute",[C.action],Object.getOwnPropertyDescriptor(i.prototype,"enteredRoute"),i.prototype),(0,w.A)(i.prototype,"fetchListingAndAgents",[C.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchListingAndAgents"),i.prototype),(0,w.A)(i.prototype,"resetListingResults",[C.action],Object.getOwnPropertyDescriptor(i.prototype,"resetListingResults"),i.prototype),(0,w.A)(i.prototype,"resetAgentResults",[C.action],Object.getOwnPropertyDescriptor(i.prototype,"resetAgentResults"),i.prototype),(0,w.A)(i.prototype,"pageUpdated",[C.action],Object.getOwnPropertyDescriptor(i.prototype,"pageUpdated"),i.prototype),(0,w.A)(i.prototype,"goToStat",[C.action],Object.getOwnPropertyDescriptor(i.prototype,"goToStat"),i.prototype),(0,w.A)(i.prototype,"fetchListings",[R.fm],Object.getOwnPropertyDescriptor(i.prototype,"fetchListings"),i.prototype),i)},97132(e,t,s){s.d(t,{n:()=>a});var i=s(22420),n=s(48560);function a(e){if(!e)return"";if("string"!=typeof e)throw new Error("title-case helper: expected a string but was provided a "+typeof e);return e.split(" ").map(e=>(0,n.ZH)(e.toLowerCase())).join(" ")}(0,i.helper)(a)},58600(e,t,s){s.r(t),s.d(t,{default:()=>h});var i,n,a,l,r=s(7203),o=s(44917),c=s(35916),u=s.n(c),g=s(2329),d=s(79995),p=s(34743),f=s(53597);let h=(i=class extends(u()){constructor(){super(...arguments),(0,r.A)(this,"headData",n,this),(0,r.A)(this,"router",a,this),(0,r.A)(this,"store",l,this)}model(e){return this.store.findRecord("office",e.office_id)}afterModel(e,t){e.slug!==t.to.params.seo_slug&&this.router.transitionTo(`/office/${e.id}/${e.slug}`);const s=`${e.name} - realestate.co.nz`,i=`https://${d.default.APP.websiteHost}/office/${e.id}/${e.slug}`;this.headData.title=s,this.headData.pageCategory="office_profile_details",this.headData.brand=void 0,this.headData.searchType="grid",this.headData.saleType=void 0,this.headData.canonicalUrl=i,this.headData.virtualPageTitle=s,this.headData.virtualPageURL=`/office/${e.id}/${e.slug}`;const n=`View ${e.listingCount} listings from ${e.name} on realestate.co.nz`,a=e?.images?.find(e=>"default"===e["listing-type"]),l=a?.["base-url"]||e.imageBaseUrl;let r="";l&&(r=(0,f.n)([l],{size:"160x90",modType:"scale"}));const o=[{name:"description",content:n},...(0,p.default)({header:s,description:n,image:r,imageWidth:"160",imageHeight:"90",url:i})];this.headData.metaTags=o}setupController(e,t){super.setupController(e,t),e.send("enteredRoute")}},n=(0,o.A)(i.prototype,"headData",[g.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,o.A)(i.prototype,"router",[g.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,o.A)(i.prototype,"store",[g.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i)}}]);
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.