1/*! For license information please see 7090.95957937.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkkyanus=self.webpackChunkkyanus||[]).push([[7090],{46987:(e,a,t)=>{t.r(a),t.d(a,{default:()=>_});var s=t(65043),n=t(66727),i=t(33456),l=t(93837),r=t(49367),c=t(76930),o=t(803),d=t(28006),p=t(78384),m=t(91286),h=t(35327),u=t(55731),g=t(84669),x=t(39292),j=t(40614),f=t(34061),v=t(85073),b=t(44274),k=t(97958),y=t(70579);const N={linkedin:{label:"LinkedIn",path:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"},facebook:{label:"Facebook",path:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"},instagram:{label:"Instagram",path:"M12 2.163c3.204 0 3.584.012 4.849.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.07 1.645.07 4.849 0 3.205-.012 3.584-.07 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.849.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z"},twitter:{label:"X (Twitter)",path:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"},wechat:{label:"WeChat",path:"M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 01.213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.326.326 0 00.167-.054l1.903-1.114a.864.864 0 01.717-.098 10.16 10.16 0 002.837.403c.276 0 .55-.012.822-.033-.175-.495-.271-1.016-.271-1.555 0-3.333 3.238-6.038 7.232-6.038.221 0 .44.008.655.026-.59-3.447-4.304-6.082-8.438-6.082zM5.785 5.991c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 01-1.162 1.178A1.17 1.17 0 014.623 7.17c0-.651.52-1.18 1.162-1.18zm5.813 0c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 01-1.162 1.178 1.17 1.17 0 01-1.162-1.178c0-.651.52-1.18 1.162-1.18zm5.34 4.65c-3.386 0-6.132 2.298-6.132 5.132 0 2.836 2.746 5.132 6.132 5.132.704 0 1.386-.101 2.025-.291a.64.64 0 01.54.07l1.47.844a.24.24 0 00.131.04.23.23 0 00.232-.228c0-.061-.024-.118-.04-.178-.053-.2-.157-.576-.188-.708a.465.465 0 01.155-.494c1.402-1.03 2.314-2.547 2.314-4.255 0-2.834-2.746-5.132-6.132-5.132h-.407zm-1.97 2.342a.955.955 0 01.962.953.955.955 0 01-.962.953.955.955 0 01-.962-.953c0-.526.431-.953.962-.953zm3.939 0a.955.955 0 01.961.953.955.955 0 01-.961.953.955.955 0 01-.962-.953c0-.526.43-.953.962-.953z"}},w=e=>{let{brand:a,size:t=22}=e;const s=N[a];return s?(0,y.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor",role:"img","aria-label":s.label,children:(0,y.jsx)("path",{d:s.path})}):null},_=()=>{var e,a,t,N,_,C,z,A;const{t:D}=(0,c.Bd)(),{formatProperty:S}=(0,o.H2)(),{agentId:$}=(0,n.g)(),I=(0,i.A)(),[E,T]=(0,s.useState)(null),[M,L]=(0,s.useState)([]),[F,V]=(0,s.useState)(!0),[P,H]=(0,s.useState)(null),[O,R]=(0,s.use
2State)("active"),[U,B]=(0,s.useState)(!1),[q,W]=(0,s.useState)(""),[X,G]=(0,s.useState)(""),[J,K]=(0,s.useState)(1),[Z,Q]=(0,s.useState)(1),[Y,ee]=(0,s.useState)(0),[ae,te]=(0,s.useState)({active:0,sold:0}),[se,ne]=(0,s.useState)(!1),[ie,le]=(0,s.useState)(!1);(0,s.useEffect)((()=>{(async()=>{try{V(!0);const e=await fetch(`${l.H}/agents/${$}`);if(!e.ok)throw new Error(`Agent not found. Status: ${e.status}`);T(await e.json())}catch(e){H(e.message)}finally{V(!1)}})()}),[$]),(0,s.useEffect)((()=>{null!==E&&void 0!==E&&E.id&&(0,v.j)("agent_page_view",{surface:"agent_detail",agentId:E.id})}),[E]),(0,s.useEffect)((()=>{(async()=>{ne(!0);try{const e=new URLSearchParams({page:J,limit:12,tab:O});X.trim()&&e.set("q",X.trim());const a=await fetch(`${l.H}/api/agents/${$}/properties?${e}`);if(a.ok){const e=await a.json();L(e.listings||[]),ee(e.total||0),Q(e.totalPages||1),te(e.counts||{active:0,sold:0})}}catch(e){console.error("Error fetching agent properties:",e)}finally{ne(!1)}})()}),[$,O,X,J]),(0,s.useEffect)((()=>{const e=setTimeout((()=>G(q)),350);return()=>clearTimeout(e)}),[q]),(0,s.useEffect)((()=>{K(1)}),[O,X]);const re=e=>"string"===typeof e&&""!==e.trim()?e.toLowerCase().replace(/\u011f/g,"g").replace(/\xfc/g,"u").replace(/\u015f/g,"s").replace(/\u0131/g,"i").replace(/\xf6/g,"o").replace(/\xe7/g,"c").replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+|-+$/g,""):"unknown";if(F)return(0,y.jsxs)("div",{className:"adp-main-container skeleton-loading",children:[(0,y.jsx)("header",{className:"adp-header",children:(0,y.jsxs)("div",{className:"adp-header-content",children:[(0,y.jsx)("div",{className:"skeleton-box skeleton-circle"}),(0,y.jsxs)("div",{className:"adp-header-info",children:[(0,y.jsx)("div",{className:"skeleton-box skeleton-title"}),(0,y.jsx)("div",{className:"skeleton-box skeleton-text"}),(0,y.jsx)("div",{className:"skeleton-box skeleton-text"})]})]})}),(0,y.jsxs)("div",{className:"adp-body",children:[(0,y.jsx)("aside",{className:"adp-sidebar",children:(0,y.jsxs)("div",{className:"adp-card",children:[(0,y.jsx)("div",{className:"skeleton-box skeleton-subtitle"}),(0,y.jsx)("div",{className:"skeleton-box skeleton-text"}),(0,y.jsx)("div",{className:"skeleton-box skeleton-text"})]})}),(0,y.jsx)("main",{className:"adp-content",children:(0,y.jsxs)("div",{className:"adp-card",children:[(0,y.jsx)("div",{className:"skeleton-box skeleton-subtitle"}),(0,y.jsx)("div",{className:"skeleton-box skeleton-text-long"})]})})]})]});if(P)return(0,y.jsxs)("div",{className:"adp-error-container",children:[D("agentDetail.errors.loadError")," ",P]});if(!E)return(0,y.jsx)("div",{className:"adp-error-container",children:D("agentDetail.errors.notFound")});const ce="agency"===E.agentType,oe="adp-profile-photo "+(ce?"is-logo":""),de=E.social_media_links&&["linkedin","facebook","instagram","twitter","wechat"].some((e=>E.social_media_links[e]&&""!==E.social_media_links[e].trim())),pe=E.legal_identifiers||{},me=Object.keys(pe).length>0,he={"@context":"https://schema.org","@type":"RealEstateAgent",name:E.name,image:null===(e=E.profilePhotoUrlVersions)||void 0===e?void 0:e.medium,url:window.location.href,telephone:E.phoneNumber,email:E.email,...ce&&E.year_founded&&{foundingDate:E.year_founded.toString()},address:{"@type":"PostalAddress",addressLocality:null===(a=E.location)||void 0===a?void 0:a.split(",")[0].trim(),addressCountry:null===(t=E.location)||void 0===t||null===(N=t.split(",")[1])||void 0===N?void 0:N.trim()}};return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(r.mg,{children:[(0,y.jsx)("title",{children:`${E.name} - ${D(ce?"agentDetail.header.agencyTitle":"agentDetail.header.agentTitle")} | JanusHermes`}),(0,y.jsx)("meta",{name:"description",content:`Contact ${E.name}, a professional ${ce?"agency":"agent"} in ${E.location}.`}),(0,y.jsx)("script",{type:"application/ld+json",children:JSON.stringify(he)})]}),(0,y.jsxs)("div",{className:"adp-main-container",children:[(0,y.jsx)("header",{className:"adp-header",children:(0,y.jsxs)("div",{className:"adp-header-content",children:[(0,y.jsx)("img",{src:null===(_=E.profilePhotoUrlVersions)||void 0===_?void 0:_.large,alt:`${E.name} profile`,className:oe}),(0,y.jsxs)("div",{className:"adp-header-info",children:[(0,y.jsx)("h1",{className:"adp-name",children:E.name}),(0,y.jsx)("p",{className:"adp-title",children:D(ce?"agentDetail.header.agencyTitle":"agentDetail.header.agentTitle")}),(0,y.jsxs)("span",{className:"adp-location",children:[(0,y.jsx)(d.A,{size:16}),E.location]})]})]})}),(0,y.jsxs)("div",{className:"adp-body",children:[(0,y.jsxs)("aside",{className:"adp-sidebar",children:[ce&&(0,y.jsxs)("div",{className:"adp-card",children:[(0,y.jsx)("h3",{className:"adp-card-title",children:D("agentDetail.sidebar.agencyGlance")}),(0,y.jsxs)("div",{className:"adp-stats",children:[E.year_founded&&(0,y.jsxs)("div",{className:"adp-stat-item",children:[(0,y.jsx)("span",{children:D("agentDetail.sidebar.founded")}),(0,y.jsx)("strong",{children:E.year_founded})]}),E.number_of_agents&&(0,y.jsxs)("div",{className:"adp-stat-item",children:[(0,y.jsx)("span",{children:D("agentDetail.sidebar.teamSize")}),(0,y.jsxs)("strong",{children:[E.number_of_agents," ",D("agentDetail.sidebar.agents")]})]}),E.activeListingsVolume>0&&(0,y.jsxs)("div",{className:"adp-stat-item",children:[(0,y.jsx)("span",{children:D("agentDetail.sidebar.volume")}),(0,y.jsxs)("strong",{children:["$",new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:"short",maximumFractionDigits:1}).format(E.activeListingsVolume)]})]})]})]}),!ce&&(0,y.jsxs)("div",{className:"adp-card",children:[(0,y.jsx)("h3",{className:"adp-card-title",children:D("agentDetail.sidebar.agentStats")}),(0,y.jsxs)("div",{className:"adp-stats",children:[(0,y.jsxs)("div",{className:"adp-stat-item",children:[(0,y.jsx)("span",{children:D("agentDetail.sidebar.activeListings")}),(0,y.jsx)("strong",{children:ae.active})]}),E.activeListingsVolume>0&&(0,y.jsxs)("div",{className:"adp-stat-item",children:[(0,y.jsx)("span",{children:D("agentDetail.sidebar.volume")}),(0,y.jsxs)("strong",{children:["$",new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:"short",maximumFractionDigits:1}).format(E.activeListingsVolume)]})]})]})]}),me&&(0,y.jsxs)("div",{className:"adp-card",children:[(0,y.jsxs)("h3",{className:"adp-card-title",style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,y.jsx)(p.A,{size:18,color:"#1a1a1a"})," ",D("agentDetail.sidebar.credentials")]}),(0,y.jsx)("div",{className:"adp-stats",children:Object.entries(pe).map((e=>{let[a,t]=e;return(0,y.jsxs)("div",{className:"adp-stat-item",children:[(0,y.jsx)("span",{children:a}),(0,y.jsx)("strong",{style:{fontSize:"0.9rem"},children:t})]},a)}))})]}),(0,y.jsxs)("div",{className:"adp-card",children:[(0,y.jsx)("h3",{className:"adp-card-title",children:D("agentDetail.sidebar.contact")}),(0,y.jsxs)("div",{className:"adp-contact-list",children:[!1!==E.contactVisible&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("p",{children:[(0,y.jsx)(m.A,{size:18}),(0,y.jsx)("a",{href:`tel:${E.phoneNumber}`,onClick:()=>(0,v.j)("contact_phone",{surface:"agent_detail",agentId:E.id}),children:E.phoneNumber})]}),(0,y.jsxs)("p",{children:[(0,y.jsx)(h.A,{size:18}),(0,y.jsx)("a",{href:`mailto:${E.email}`,onClick:()=>(0,v.j)("contact_email",{surface:"agent_detail",agentId:E.id}),children:E.email})]})]}),E.website&&(0,y.jsxs)("p",{children:[(0,y.jsx)(u.A,{size:18}),(0,y.jsx)("a",{href:`https://${E.website.replace(/^https?:\/\//,"")}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,v.j)("contact_website",{surface:"agent_detail",agentId:E.id}),children:E.website})]})]}),de&&(0,y.jsxs)("div",{className:"adp-social-media",children:[E.social_media_links.linkedin&&(0,y.jsx)("a",{href:E.social_media_links.linkedin,target:"_blank",rel:"noopener noreferrer","aria-label":"LinkedIn",className:"adp-social-link adp-social-linkedin",onClick:()=>(0,v.j)("social_click",{surface:"agent_detail",agentId:E.id,platform:"linkedin"}),children:(0,y.jsx)(w,{brand:"linkedin"})}),E.social_media_links.facebook&&(0,y.jsx)("a",{href:E.social_media_links.facebook,target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook",className:"adp-social-link adp-social-facebook",onClick:()=>(0,v.j)("social_click",{surface:"agent_detail",agentId:E.id,platform:"facebook"}),children:(0,y.jsx)(w,{brand:"facebook"})}),E.social_media_links.instagram&&(0,y.jsx)("a",{href:E.social_media_links.instagram,target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",className:"adp-social-link adp-social-instagram",onClick:()=>(0,v.j)("social_click",{surface:"agent_detail",agentId:E.id,platform:"instagram"}),children:(0,y.jsx)(w,{brand:"instagram"})}),E.social_media_links.twitter&&(0,y.jsx)("a",{href:E.social_media_links.twitter,target:"_blank",rel:"noopener noreferrer","aria-label":"X (Twitter)",className:"adp-social-link adp-social-twitter",onClick:()=>(0,v.j)("social_click",{surface:"agent_detail",agentId:E.id,platform:"twitter"}),children:(0,y.jsx)(w,{brand:"twitter"})}),E.social_media_links.wechat&&(0,y.jsxs)("button",{type:"button",className:"adp-social-link adp-social-wechat","aria-label":`WeChat ID: ${E.social_media_links.wechat}`,title:U?D("agentDetail.sidebar.wechatCopied","Copied!"):`WeChat: ${E.social_media_links.wechat}`,onClick:()=>{navigator.clipboard&&E.social_media_links.wechat&&(navigator.clipboard.writeText(E.social_media_links.wechat),(0,v.j)("social_click",{surface:"agent_detail",agentId:E.id,platform:"wechat"}),B(!0),setTimeout((()=>B(!1)),2e3))},children:[(0,y.jsx)(w,{brand:"wechat"}),U&&(0,y.jsx)("span",{className:"adp-wechat-tooltip",children:D("agentDetail.sidebar.wechatCopied","Copied!")})]})]}),(0,y.jsxs)("div",{className:"adp-contact-cta",children:[(0,y.jsxs)("button",{type:"button",className:"adp-message-button",onClick:()=>{(0,v.j)("message_open",{surface:"agent_detail",agentId:E.id}),le(!0)},children:[(0,y.jsx)(g.A,{size:17,strokeWidth:1.9}),(0,y.jsx)("span",{children:!1===E.contactVisible?D("agentDetail.sidebar.inquireBtn","Contact this agency"):D("agentDetail.sidebar.messageBtn","Send a message")})]}),(0,y.jsxs)("p",{className:"adp-contact-cta__note",children:[(0,y.jsx)(p.A,{size:13}
2),D("agentDetail.sidebar.messageNote","Goes straight to the agency. They reply to your email.")]})]})]}),(0,y.jsxs)("div",{className:"adp-card",children:[(0,y.jsx)("h3",{className:"adp-card-title",children:D("agentDetail.sidebar.languages")}),(0,y.jsx)("div",{className:"adp-tag-list",children:E.languages&&E.languages.map(((e,a)=>(0,y.jsx)("span",{className:"adp-tag",children:D(`languages.${e}`,e)},a)))})]})]}),(0,y.jsxs)("main",{className:"adp-content",children:[(0,y.jsxs)("div",{className:"adp-card",children:[(0,y.jsx)("h2",{className:"adp-section-title",children:D(ce?"agentDetail.content.aboutAgency":"agentDetail.content.aboutMe")}),(0,y.jsx)("p",{className:"adp-bio",children:E.bio})]}),ce&&(null===(C=E.specializations)||void 0===C?void 0:C.length)>0&&(0,y.jsxs)("div",{className:"adp-card",children:[(0,y.jsx)("h2",{className:"adp-section-title",children:D("agentDetail.content.specializations")}),(0,y.jsx)("div",{className:"adp-tag-list",children:E.specializations.map(((e,a)=>(0,y.jsx)("span",{className:"adp-tag dark",children:e},a)))})]}),ce&&(null===(z=E.consultants)||void 0===z?void 0:z.length)>0&&(0,y.jsxs)("div",{className:"adp-team-section",children:[(0,y.jsxs)("h2",{className:"adp-section-title",children:[D("agentDetail.content.teamTitle")," (",E.consultants.length,")"]}),(0,y.jsx)("div",{className:"adp-team-grid",children:E.consultants.map((e=>{var a,t;const s=re(null===(a=e.location)||void 0===a?void 0:a.split(",")[0]),n=re(e.name);return(0,y.jsxs)("div",{className:"adp-consultant-card",onClick:()=>{(0,v.j)("consultant_click",{surface:"agent_detail",agentId:E.id}),I(`/agents/${s}/${n}/${e.id}`)},children:[(0,y.jsx)("img",{src:(null===(t=e.profilePhotoUrlVersions)||void 0===t?void 0:t.medium)||"/placeholder.svg",alt:e.name,className:"adp-consultant-photo"}),(0,y.jsx)("h3",{className:"adp-consultant-name",children:e.name}),e.location&&(0,y.jsxs)("p",{className:"adp-consultant-location",children:[(0,y.jsx)(d.A,{size:14})," ",e.location]})]},e.id)}))})]}),(0,y.jsxs)("div",{className:"adp-listings-section",children:[(0,y.jsxs)("div",{className:"adp-listings-header",children:[(0,y.jsx)("h2",{className:"adp-section-title",children:D(ce?"agentDetail.content.ourListings":"agentDetail.content.myListings")}),(0,y.jsxs)("div",{className:"adp-listings-tabs",children:[(0,y.jsxs)("button",{className:"adp-tab-button "+("active"===O?"active":""),onClick:()=>R("active"),children:[D("agentDetail.content.tabActive")," (",ae.active,")"]}),(0,y.jsxs)("button",{className:"adp-tab-button "+("sold"===O?"active":""),onClick:()=>R("sold"),children:[D("agentDetail.content.tabSold")," (",ae.sold,")"]})]})]}),(0,y.jsxs)("div",{className:"adp-search-wrapper",children:[(0,y.jsx)(x.A,{size:16}),(0,y.jsx)("input",{type:"text",placeholder:D("agentDetail.content.searchPlaceholder","Search by title, city, type..."),value:q,onChange:e=>W(e.target.value)}),q&&(0,y.jsx)("button",{className:"adp-search-clear",onClick:()=>W(""),children:(0,y.jsx)(j.A,{size:14})})]}),X&&!se&&(0,y.jsxs)("p",{className:"adp-search-result-info",children:[Y," ",1===Y?D("common.resultSingular","result"):D("common.resultPlural","results")," ",D("common.for","for")," ",(0,y.jsxs)("strong",{children:['"',X,'"']})]}),(0,y.jsx)("div",{className:"adp-property-grid",children:se?(0,y.jsx)("p",{className:"adp-no-listings",children:D("common.loading","Loading...")}):M.length>0?M.map((e=>{var a,t;const s=re(null===(a=e.location)||void 0===a?void 0:a.split(",")[0]),n=re(e.propertyType),i=re(e.title),l="sold"===e.status,r=(0,b.I)(null===(t=e.images)||void 0===t?void 0:t[0]);return(0,y.jsxs)("div",{className:"adp-simple-card "+(l?"is-sold":""),onClick:()=>{l||((0,v.j)("listing_click",{surface:"agent_detail",agentId:E.id,propertyId:e.id}),I(`/${s}/${n}/${i}/${e.id}`))},children:[l&&(0,y.jsx)("div",{className:"adp-sold-badge",children:D("agentDetail.content.soldBadge")}),(0,y.jsx)("div",{className:"adp-simple-card-img-container",children:(0,y.jsx)("img",{src:r.src||"/placeholder.svg",srcSet:r.srcSet,sizes:"(max-width: 768px) 94vw, (max-width: 1024px) 48vw, 420px",alt:e.title,loading:"lazy",decoding:"async",onError:(0,k.M4)(r.fallback)})}),(0,y.jsxs)("div",{className:"adp-simple-card-info",children:[(0,y.jsx)("h3",{className:"adp-simple-card-title",children:e.title}),(0,y.jsx)("p",{className:"adp-simple-card-location",children:e.location}),(0,y.jsx)("p",{className:"adp-simple-card-price",children:l&&e.sold_price?`${(new Intl.NumberFormat).format(e.sold_price)} ${e.currency}`:(()=>{const a=S({price:e.price,currency:e.currency,priceUsd:e.price_usd});return`${(new Intl.NumberFormat).format(Math.round(a.amount||0))} ${a.currency}`})()})]})]},e.id)})):(0,y.jsx)("p",{className:"adp-no-listings",children:X?D("agentDetail.content.noResults","N
2o listings match your search."):D("active"===O?"agentDetail.content.noActive":"agentDetail.content.noSold")})}),Z>1&&(0,y.jsxs)("div",{className:"adp-pagination",children:[(0,y.jsxs)("button",{className:"adp-page-btn",disabled:1===J||se,onClick:()=>K((e=>Math.max(1,e-1))),children:["\u2190 ",D("common.previous","Previous")]}),(0,y.jsxs)("span",{className:"adp-page-info",children:[D("common.page","Page")," ",(0,y.jsx)("strong",{children:J})," / ",Z]}),(0,y.jsxs)("button",{className:"adp-page-btn",disabled:J===Z||se,onClick:()=>K((e=>Math.min(Z,e+1))),children:[D("common.next","Next")," \u2192"]})]})]})]})]})]}),ie&&(0,y.jsx)(f.A,{isOpen:ie,onClose:()=>le(!1),target:{agentId:E.id},isLead:!1===E.contactVisible,agencyName:E.name,propertyImage:null===(A=E.profilePhotoUrlVersions)||void 0===A?void 0:A.medium})]})}},85692:(e,a,t)=>{t.d(a,{A:()=>s});const s=(0,t(77784).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},36210:(e,a,t)=>{t.d(a,{A:()=>s});const s=(0,t(77784).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},35087:(e,a,t)=>{t.d(a,{A:()=>s});const s=(0,t(77784).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},22024:(e,a,t)=>{t.d(a,{A:()=>s});const s=(0,t(77784).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},35327:(e,a,t)=>{t.d(a,{A:()=>s});const s=(0,t(77784).A)("mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]])},42574:(e,a,t)=>{t.d(a,{A:()=>s});const s=(0,t(77784).A)("message-circle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]])},84669:(e,a,t)=>{t.d(a,{A:()=>s});const s=(0,t(77784).A)("message-square",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]])},91286:(e,a,t)=>{t.d(a,{A:()=>s});const s=(0,t(77784).A)("phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]])},30086:(e,a,t)=>{t.d(a,{A:()=>s});const s=(0,t(77784).A)("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},35746:(e,a,t)=>{t.d(a,{A:()=>s});const s=(0,t(77784).A)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},78384:(e,a,t)=>{t.d(a,{A:()=>s});const s=(0,t(77784).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},40614:(e,a,t)=>{t.d(a,{A:()=>s});const s=(0,t(77784).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},27226:(e,a,t)=>{t.d(a,{Xs:()=>u});var s=t(65043),n=t(70579),i=(0,s.forwardRef)(((e,a)=>{let{as:t="div",...s}=e;return(0,n.jsx)(t,{...s,ref:a})})),l="cf-turnstile-script",r="onloadTurnstileCallback",c=e=>!!document.getElementById(e),o={normal:{width:300,height:65},compact:{width:150,height:140},invisible:{width:0,height:0,overflow:"hidden"},flexible:{minWidth:300,width:"100%",height:65},interactionOnly:{width:"fit-content",height:"auto",display:"flex"}};function d(e){if("invisible"!==e&&"interactionOnly"!==e)return e}var p,m="unloaded",h=new Promise(((e,a)=>{p={resolve:e,reject:a},"ready"===m&&e(void 0)})),u=(0,s.forwardRef)(((e,a)=>{let{scriptOptions:t,options:u={},siteKey:g,onWidgetLoad:x,onSuccess:j,onExpire:f,onError:v,onBeforeInteractive:b,onAfterInteractive:k,onUnsupported:y,onTimeout:N,onLoadScript:w,id:_,style:C,as:z="div",injectScript:A=!0,...D}=e,S=u.size,$=(0,s.useCallback)((()=>typeof S>"u"?{}:"execute"===u.execution?o.invisible:"interaction-only"===u.appearance?o.interactionOnly:o[S]),[u.execution,S,u.appearance]),[I,E]=(0,s.use
2State)($()),T=(0,s.useRef)(null),[M,L]=(0,s.useState)(!1),F=(0,s.useRef)(),V=(0,s.useRef)(!1),P=_||"cf-turnstile",H=t?.id||l,O=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,[a,t]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{let a=()=>{c(e)&&t(!0)},s=new MutationObserver(a);return s.observe(document,{childList:!0,subtree:!0}),a(),()=>{s.disconnect()}}),[e]),a}(H),R=t?.onLoadCallbackName||r,U=u.appearance||"always",B=(0,s.useMemo)((()=>({sitekey:g,action:u.action,cData:u.cData,callback:e=>{V.current=!0,j?.(e)},"error-callback":v,"expired-callback":f,"before-interactive-callback":b,"after-interactive-callback":k,"unsupported-callback":y,theme:u.theme||"auto",language:u.language||"auto",tabindex:u.tabIndex,"response-field":u.responseField,"response-field-name":u.responseFieldName,size:d(S),retry:u.retry||"auto","retry-interval":u.retryInterval||8e3,"refresh-expired":u.refreshExpired||"auto","refresh-timeout":u.refreshTimeout||"auto",execution:u.execution||"render",appearance:u.appearance||"always","feedback-enabled":u.feedbackEnabled||!0,"timeout-callback":N})),[u.action,u.appearance,u.cData,u.execution,u.language,u.refreshExpired,u.responseField,u.responseFieldName,u.retry,u.retryInterval,u.tabIndex,u.theme,u.feedbackEnabled,u.refreshTimeout,g,S]),q=(0,s.useCallback)((()=>typeof window<"u"&&!!window.turnstile),[]);return(0,s.useEffect)((function(){A&&!M&&(e=>{let{render:a="explicit",onLoadCallbackName:t=r,scriptOptions:{nonce:s="",defer:n=!0,async:i=!0,id:o="",appendTo:d,onError:p,crossOrigin:m=""}={}}=e,h=o||l;if(c(h))return;let u=document.createElement("script");u.id=h,u.src=`https://challenges.cloudflare.com/turnstile/v0/api.js?onload=${t}&render=${a}`,document.querySelector(`script[src="${u.src}"]`)||(u.defer=!!n,u.async=!!i,s&&(u.nonce=s),m&&(u.crossOrigin=m),p&&(u.onerror=p,delete window[t]),("body"===d?document.body:document.getElementsByTagName("head")[0]).appendChild(u))})({onLoadCallbackName:R,scriptOptions:{...t,id:H}})}),[A,M,t,H]),(0,s.useEffect)((function(){"ready"!==m&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return"unloaded"===m&&(m="loading",window[e]=()=>{p.resolve(),m="ready",delete window[e]}),h}(R).then((()=>L(!0))).catch(console.error)}),[]),(0,s.useEffect)((function(){if(!T.current||!M)return;let e=!1;return(async()=>{if(e||!T.current)return;let a=window.turnstile.render(T.current,B);F.current=a,F.current&&x?.(F.current)})(),()=>{e=!0,F.current&&(window.turnstile.remove(F.current),V.current=!1)}}),[P,M,B]),(0,s.useImperativeHandle)(a,(()=>{let{turnstile:e}=window;return{getResponse(){if(e?.getResponse&&F.current&&q())return e.getResponse(F.current);console.warn("Turnstile has not been loaded")},async getResponsePromise(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e4,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return new Promise(((t,s)=>{let n,i=async()=>{if(V.current&&window.turnstile&&F.current)try{let e=window.turnstile.getResponse(F.current);return n&&clearTimeout(n),e?t(e):s(new Error("No response received"))}catch(l){return n&&clearTimeout(n),console.warn("Failed to get response",l),s(new Error("Failed to get response"))}n||(n=setTimeout((()=>{n&&clearTimeout(n),s(new Error("Timeout"))}),e)),await new Promise((e=>setTimeout(e,a))),await i()};i()}))},reset(){if(e?.reset&&F.current&&q()){"execute"===u.execution&&E(o.invisible);try{V.current=!1,e.reset(F.current)}catch(a){console.warn(`Failed to reset Turnstile widget ${F}`,a)}}else console.warn("Turnstile has not been loaded")},remove(){e?.remove&&F.current&&q()?(E(o.invisible),V.current=!1,e.remove(F.current),F.current=null):console.warn("Turnstile has not been loaded")},render(){if(!e?.render||!T.current||!q()||F.current)return void console.warn("Turnstile has not been loaded or container not found");let a=e.render(T.current,B);return F.current=a,F.current&&x?.(F.current),"execute"!==u.execution&&E(S?o[S]:{}),a},execute(){"execute"===u.execution?e?.execute&&T.current&&F.current&&q()?(e.execute(T.current,B),E(S?o[S]:{})):console.warn("Turnstile has not been loaded or container not found"):console.warn('Execution mode is not set to "execute"')},isExpired:()=>e?.isExpired&&F.current&&q()?e.isExpired(F.current):(console.warn("Turnstile has not been loaded"),!1)}}),[F,u.execution,S,B,T,q,M,x]),(0,s.useEffect)((()=>{O&&!M&&window.turnstile&&L(!0)}),[M,O]),(0,s.useEffect)((()=>{E($())}),[u.execution,S,U]),(0,s.useEffect)((()=>{!O||"function"!=typeof w||w()}),[O]),(0,n.jsx)(i,{ref:T,as:z,id:P,style:{...I,...C},...D})}));u.displayName="Turnstile"}}
2]); 3//# sourceMappingURL=7090.95957937.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.