PageSourceSearch

https://housesigma.com/assets/PcMarket.fa6832eb.js

js housesigma.com collected 2026-09-25 20:16:54 UTC 41,734 bytes, 7 lines download raw bytes

1import{a as Re,b1 as F,b2 as Je,aD as j,b3 as R,aP as Be,b4 as nt,b5 as ct,g as ut,P as Ke,k as dt,w as pt,a4 as mt,c as ft,m as yt,b6 as ht,b7 as _t,aT as Ne,aU as De,aV as We,b8 as xt,b9 as gt,ba as vt,a2 as bt,aF as St,O as wt,T as kt,bb as At,a_ as Lt,aQ as Mt,bc as Ct,bd as Pt,be as ze,aX as Ze,bf as Tt}from"./index.2aec82b5.js";import{u as Fe}from"./market.968453f6.js";import{ab as qe,aP as _e,W as Y,ak as it,aF as Ee,al as h,am as B,ao as m,av as k,an as t,ap as et,az as M,au as C,aH as he,aI as $t,aC as I,at as w,aw as He,ax as je,O as oe,aN as It,aj as Bt,as as f,b0 as W,ay as G,T as Dt,ah as Wt,bj as zt,R as Oe,ag as Rt,aO as Ft}from"./vendor.9a14d286.js";import{u as st,a as qt,P as Nt}from"./market.1367815f.js";import{d as Ot,l as Et,i as Ht,a as jt}from"./lodash.6e4bef40.js";import{P as tt}from"./PcListingCards.74c9371a.js";import{P as Vt}from"./PcAd.706c34c6.js";import{P as Yt}from"./PcWatchCheckbox.8bb6521a.js";import"./swiper.5e164907.js";const rt=d=>(He("data-v-50825bfe"),d=d(),je(),d),Ut={class:"pc-market-info"},Gt={class:"title"},Qt={class:"content"},Xt={class:"summary"},Jt={class:"col1"},Kt={class:"date"},Zt=rt(()=>m("p",null,"Median Price",-1)),ea={class:"price_sold"},ta={class:"col2"},aa={class:"date"},oa=rt(()=>m("p",null,"New Listings",-1)),ia={class:"new_listing"},sa={class:"col3"},ra={class:"median-price-list"},la=qe({__name:"PcMarketInfo",setup(d){const e=Fe(),{summary:o,loading:s}=_e(e),r=Y(()=>{var n;return((n=o==null?void 0:o.value)==null?void 0:n.public)!==1}),i=Y(()=>{if((o==null?void 0:o.value)===void 0)return[];const{current:n}=o==null?void 0:o.value;return[n==null?void 0:n.price_sold_change_year,n==null?void 0:n.price_sold_change_5_years,n==null?void 0:n.price_sold_change_10_years].map((A,y)=>({title:["1 Year","5 Years","10 Years"][y],class:[r.value?"blur":"",a(A)],text:p(A),icon:q(A)}))});function a(n="-"){return n==="-"?"":+n>0?"growth-up":"growth-down"}function p(n="-"){return n==="-"?n:+n>0?`+${n}%`:`${n}%`}function q(n="-"){return n==="-"?"":+n>0?"fa-solid fa-arrow-trend-up":"fa-solid fa-arrow-trend-down"}return(n,A)=>{var z,V,N,O,g,x,c,_,v,S,D,Q,X,J;const y=it("font-awesome-icon"),P=Ee("blur");return h(),B("div",Ut,[m("h1",Gt," Real Estate Market Trends - "+k((V=(z=t(o))==null?void 0:z.filter_active)==null?void 0:V.municipality_name)+", "+k((O=(N=t(o))==null?void 0:N.filter_active)==null?void 0:O.community_name)+", "+k((x=(g=t(o))==null?void 0:g.filter_active)==null?void 0:x.house_type_name),1),m("div",Qt,[m("section",{class:et(["statistics",t(s)?"blur":""])},[m("ul",Xt,[m("li",Jt,[m("header",null,[m("p",Kt,k((_=(c=t(o))==null?void 0:c.current)==null?void 0:_.period_name),1),Zt]),M((h(),B("em",ea,[C(" $"+k((S=(v=t(o))==null?void 0:v.current)==null?void 0:S.price_sold),1)])),[[P,t(r)]])]),m("li",ta,[m("header",null,[m("p",aa,k((Q=(D=t(o))==null?void 0:D.current)==null?void 0:Q.period_name),1),oa]),M((h(),B("em",ia,[C(k((J=(X=t(o))==null?void 0:X.current)==null?void 0:J.list_new),1)])),[[P,t(r)]])]),m("li",sa,[m("div",ra,[(h(!0),B(he,null,$t(t(i),T=>(h(),B("p",{key:T.title},[C(k(T.title)+" Value Change ",1),m("span",{class:et(["median-price-change-text",T.class])},[C(k(T.text)+" ",1),T.icon?(h(),I(y,{key:0,icon:T.icon},null,8,["icon"])):w("",!0)],2)]))),128))])])])],2)])])}}});var na=Re(la,[["__scopeId","data-v-50825bfe"]]);class ca{constructor(e,o={dom:!0}){this.resp=e,this.options=o}mapper(e){var o,s;return((s=(o=this.resp)==null?void 0:o.chart)==null?void 0:s.map((r,i,a)=>i===a.length-1?{value:r[e],itemStyle:{color:"#aaa",borderColor:"#aaa"}}:{value:r[e],visualMap:!1}))||[]}get dataAxis(){var e,o;return((o=(e=this.resp)==null?void 0:e.chart)==null?void 0:o.map(s=>s.period))||[]}get trendPrice(){return this.mapper("price_sold")||[]}get trendDays(){return this.mapper("list_days")||[]}get propertyTrendDays(){return this.mapper("property_listing_dom")||[]}get communityPopularity(){var i;const e=((i=this.resp)==null?void 0:i.chart_community_popularity_index)||[],o=e.map(a=>a.popularity_index_30),s=e.map(a=>a.period),r=new F(0,0,0,1,[{offset:0,color:"#f59525"},{offset:1,color:"#fff3c7"}]);return{grid:{left:"5px",right:"20px",top:"50px",bottom:"10px",containLabel:!0},animation:!1,legend:{selectedMode:!1,padding:[5,0,0,0],top:0,left:"60%",textStyle:{color:"#333333",fontSize:14,fontWeight:"bold",padding:[0,0,0,5]},itemWidth:31,itemHeight:18,itemStyle:{color:r},borderRadius:2,data:["Sold Count"]},visualMap:[{type:"piecewise",orient:"horizontal",seriesIndex:[0,1],top:0,left:"center",padding:[5,120,0,0],itemGap:10,itemWidth:31,itemHeight:18,textStyle:{color:"#333333",fontSize:14,fontWeight:"bold"},inverse:!0,pieces:[{gte:0,lte:30,color:"#3B99FE",label:"Cold"},{gt:30,lte:70,color:"#4CAE20",label:"Medium"},{gt:70,lte:100,color:"#FF0300",label:"Hot"}]}],tooltip:{trigger:"axis",triggerOn:"mousemove|click",position:null,axisPointer:{type:"shadow",textStyle:{color:"#fff"}},formatter:a=>{const p=a[0],q=a[2]||a[1];return Je([p,q],s)}},xAxis:{data:s,axisLabel:{interval:Math.floor(e.length/12),textStyle:{fontWeight:500,color:"#28A3B3"},rotate:57},axisTick:{show:!1}
1,axisLine:{show:!1}},yAxis:[{min:0,max:100,splitLine:{show:!1},axisLabel:{show:!1}},{position:"left",show:!0,axisLine:{show:!1},splitLine:{interval:1,lineStyle:{color:"#B1B6B9",type:"dashed",opacity:.2}},axisTick:{show:!1},axisLabel:{margin:10,textStyle:{color:"#28A3B3",fontWeight:500}},max:function(a){return a.max*2}},{type:"value",position:"right",offset:10,alignTicks:!0,axisLine:{show:!0,lineStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#FF0300"},{offset:.3,color:"#FF0300"},{offset:.3,color:"#4CAE20"},{offset:.7,color:"#4CAE20"},{offset:.7,color:"#3B99FE"},{offset:1,color:"#3B99FE"}],global:!1},width:8,cap:"butt"}},axisLabel:{formatter:""}}],series:[{name:"Community Popularity",type:"line",yAxisIndex:0,symbolSize:10,showSymbol:!1,smooth:.2,data:o.slice(0,-1),z:11},{name:"Community Popularity",type:"line",smooth:.2,yAxisIndex:0,symbolSize:10,showSymbol:!1,itemStyle:{color:"#aaa",borderColor:"#aaa"},emphasis:{itemStyle:{color:"#aaa",borderColor:"#aaa"}},lineStyle:{color:"#aaa"},data:Ot(o,null,0,o.length-2),z:10},{type:"bar",name:"Sold Count",barMaxWidth:"14px",yAxisIndex:1,data:e.map(a=>a.sold_count),itemStyle:{color(a){return a.dataIndex===e.length-1?"#aaa":r}},z:9}]}}get mspadom(){var e,o,s,r,i;return{grid:{left:"55px",right:"35px",top:"50px",bottom:"70px"},visualMap:[{show:!1,type:"continuous",dimension:0,inRange:{color:["#2378f8","#aaa","#aaa"]},min:this.dataAxis.length-2,max:this.dataAxis.length-1}],legend:{orient:"horizontal",left:"center",align:"left",textStyle:{color:"#90979c",fontSize:14},itemWidth:20,itemHeight:15,itemGap:30,data:["Median Price"].concat((e=this.options)!=null&&e.dom?["Days on Market","Property Days on Market"]:[])},xAxis:{data:this.dataAxis,axisLabel:{interval:this.dataAxis.length/12-1,inside:!1,textStyle:{color:"#26afed"},rotate:45},axisTick:{show:!1},axisLine:{show:!1},z:8},animation:!0,yAxis:[{show:!0,axisLine:{show:!1},splitLine:{interval:1,lineStyle:{color:"#28A3B3",type:"dashed",opacity:.3}},axisTick:{show:!1},axisLabel:{margin:10,formatter:(a,p)=>p?a>=1e6?"$"+(Math.ceil(a/1e5)/10).toFixed(1)+"M":"$"+Math.ceil(a/1e5)+"00k":"0",textStyle:{color:"#28A3B3",fontWeight:"bolder"}},max:(s=(o=this.resp)==null?void 0:o.chart_axis)==null?void 0:s.price_sold_max},{show:!0,axisLine:{show:!1},splitLine:{interval:1,lineStyle:{color:"#666",type:"dashed",opacity:.3}},axisTick:{show:!1},axisLabel:{margin:10,textStyle:{color:"#666",fontWeight:"bolder"}},max:(i=(r=this.resp)==null?void 0:r.chart_axis)==null?void 0:i.property_dom_max}],series:[{type:"bar",name:"Days on Market",barMaxWidth:"14px",yAxisIndex:1,itemStyle:{normal:{color:"#F3722C"}},data:this.trendDays,z:10},{type:"bar",name:"Property Days on Market",barMaxWidth:"14px",yAxisIndex:1,itemStyle:{normal:{color:"#28A3B3"}},barGap:"-100%",data:this.propertyTrendDays,z:9},{name:"Median Price",type:"line",yAxisIndex:0,smooth:!0,symbolSize:10,showSymbol:!1,symbol:"circle",sampling:"average",itemStyle:{normal:{color:"#1A9BFC"}},areaStyle:{normal:{color:new F(0,0,0,1,[{offset:0,color:"#1A9BFC"},{offset:.6,color:"rgba(255, 255, 255,0)"},{offset:1,color:"rgba(255, 255, 255,0)"}]),opacity:.5}},stack:"a",data:this.trendPrice,z:11}].filter(a=>{var p;return!(!((p=this.options)!=null&&p.dom)&&["Days on Market","Property Days on Market"].includes(a.name))}),tooltip:{trigger:"axis",position:null,triggerOn:"mousemove|click",axisPointer:{type:"shadow",textStyle:{color:"#fff"}},textStyle:{align:"left"},formatter:a=>(a[2]&&(a[2].price=!0),Je(a,this.dataAxis))}}}}const K=()=>({trigger:"axis",triggerOn:"mousemove|click",axisPointer:{type:"shadow",textStyle:{color:"#fff"}}}),ae=(d=[],e="")=>d.map((o,s)=>s===d.length-1?{value:o[e],itemStyle:{color:"#aaa",borderColor:"#aaa"}}:{value:o[e],visualMap:!1}),at=(d,e,o="")=>d.length===0?[]:d[0].dataIndex===e.length-1?d[0].name+" ( Incomplete ) <br/>"+d.map(s=>'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:#aaa"></span>'+s.seriesName+": "+s.value+"<br/>").join(""):d[0].name+"<br/>"+d.map(s=>'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+(s.color.colorStops?s.color.colorStops[0].color:s.color)+'"></span>'+s.seriesName+": "+(o==="mspadom"&&s.seriesName==="Median Price"||o==="mrp"&&s.seriesName==="Median Rent Price"?`${isNaN(+s.value)?s.value:"$"+parseInt(s.value,0).toLocaleStr
1ing("en")}`:s.value)+"<br/>").join(""),ua=d=>`
2   <span style="color:#000;display:inline-block;font-weight:500;">square footage: ${d[0].name}</span> <br/>
3   <span style="color:#000;display:inline-block;font-weight:500;">count: ${d[0].value} </span> <br/>
4  `;class da extends ca{get trendDataList(){var e;return ae((e=this.resp)==null?void 0:e.chart,"list_count")||[]}get trendDataDel(){var e;return ae((e=this.resp)==null?void 0:e.chart,"sold_count")||[]}get listActiveData(){var e;return ae((e=this.resp)==null?void 0:e.chart,"list_active")||[]}get dataAxisPrice(){var e,o;return((o=(e=this.resp)==null?void 0:e.chart_sold_price)==null?void 0:o.map(s=>`${s.price100k}00k`))||[]}get rentRatioSeries(){var e,o;return((o=(e=this.resp)==null?void 0:e.chart)==null?void 0:o.map(s=>({value:s.rent_ratio})))||[]}get soldCountSeries(){var e,o;return((o=(e=this.resp)==null?void 0:e.chart_sold_price)==null?void 0:o.map(s=>({value:s.sold_count,itemStyle:{color:new F(0,0,0,1,[{offset:0,color:"#ff9d80"},{offset:.6,color:"#FFD4C7"},{offset:1,color:"#fff"}])},emphasis:{itemStyle:{color:new F(0,0,0,1,[{offset:0,color:"#ff5b29"},{offset:.6,color:"#FFD4C7"},{offset:1,color:"#fff"}])}}})))||[]}get absorption(){var e,o;return((o=(e=this.resp)==null?void 0:e.chart)==null?void 0:o.map(s=>s.absorption_rate))||[]}get houseTypeAxis(){var e,o;return((o=(e=this.resp)==null?void 0:e.chart_house_type)==null?void 0:o.map(s=>s.house_type_name))||[]}get percentList(){var e,o;return((o=(e=this.resp)==null?void 0:e.chart_house_type)==null?void 0:o.map(s=>({value:(s.listing_percent*100).toFixed(0),name:s.house_type_name})))||[]}get rentCount(){var e;return ae((e=this.resp)==null?void 0:e.chart,"rent_count")||[]}get priceRent(){var e;return ae((e=this.resp)==null?void 0:e.chart,"price_rent")||[]}get rentListingCount(){var e;return ae((e=this.resp)==null?void 0:e.chart,"rent_listing_count")||[]}get sal(){var e,o,s,r;return{grid:{left:"55px",right:"15px",top:"60px",bottom:"70px"},visualMap:[{show:!1,type:"continuous",seriesIndex:0,dimension:0,inRange:{color:["#69c6d5","#aaa","#aaa"]},min:this.dataAxis.length-2,max:this.dataAxis.length-1},{show:!1,type:"continuous",seriesIndex:1,dimension:0,inRange:{color:["#f59525","#aaa","#aaa"]},min:this.dataAxis.length-2,max:this.dataAxis.length-1},{show:!1,type:"continuous",seriesIndex:2,dimension:0,inRange:{color:["#1A9BFC","#aaa","#aaa"]},min:this.dataAxis.length-2,max:this.dataAxis.length-1}],legend:{orient:"horizontal",left:"center",align:"left",textStyle:{color:"#90979c",fontSize:14},itemWidth:20,itemHeight:15,borderRadius:2,data:["Total Sold","Active Listings","New Listings"]},xAxis:{data:this.dataAxis,axisLabel:{interval:Math.floor(this.dataAxis.length/6)-1,inside:!1,textStyle:{color:"#26afed"},rotate:45},axisTick:{show:!1},axisLine:{show:!1},z:8},animation:!1,yAxis:[{show:!0,axisLine:{show:!1},splitLine:{interval:1,lineStyle:{color:"#26afed",type:"dashed",opacity:.3}},axisTick:{show:!1},axisLabel:{margin:10,textStyle:{color:"#26afed",fontWeight:"bolder"}},max:(o=(e=this.resp)==null?void 0:e.chart_axis)==null?void 0:o.list_count_max},{show:!1,max:(r=(s=this.resp)==null?void 0:s.chart_axis)==null?void 0:r.list_count_max}],series:[{name:"Total Sold",type:"line",yAxisIndex:0,smooth:!0,symbolSize:10,showSymbol:!1,sampling:"average",itemStyle:{borderColor:"#69c6d5",borderWidth:4,color:"#69c6d5"},stack:"a",data:this.trendDataDel,z:9},{type:"bar",name:"Active Listings",barMaxWidth:"14px",yAxisIndex:1,itemStyle:{normal:{borderColor:"#f8ce78",color:new F(0,0,0,1,[{offset:0,color:"#f59525"},{offset:1,color:"#fff3c7"}])}},data:this.listActiveData,z:6},{name:"New Listings",type:"line",yAxisIndex:0,smooth:!0,symbolSize:10,showSymbol:!1,sampling:"average",itemStyle:{borderColor:"#1A9BFC",borderWidth:4,color:"#1A9BFC"},data:this.trendDataList,z:9}],tooltip:{...K(),formatter:i=>at(i,this.dataAxis)}}}get spd(){return{tooltip:{...K(),formatter:e=>{var o,s,r,i;return`Price: ${(o=e==null?void 0:e[0])==null?void 0:o.name}<br>${(s=e==null?void 0:e[0])==null?void 0:s.seriesName}: ${(i=(r=e==null?void 0:e[0])==null?void 0:r.data)==null?void 0:i.value}<br>`}},grid:{left:"45px",right:"15px",top:"25px",bottom:"70px"},xAxis:{data:this.dataAxisPrice,axisLabel:{interval:Math.floor(this.dataAxisPrice.length/6)-1,inside:!1,textStyle:{color:"#26afed"},rotate:45},axisTick:{show:!1}
4,axisLine:{show:!1},z:8},animation:!1,yAxis:[{show:!0,axisLine:{show:!1},splitLine:{interval:1,lineStyle:{color:"#26afed",type:"dashed",opacity:.3}},axisTick:{show:!1},axisLabel:{margin:10,textStyle:{color:"#26afed",fontWeight:"bolder"}}}],series:[{type:"bar",name:"Sold Count",barMaxWidth:"14px",itemStyle:{normal:{borderColor:"#f8ce78",color:new F(0,0,0,1,[{offset:0,color:"#f59525"},{offset:1,color:"#fff3c7"}])}},emphasis:{itemStyle:{normal:{borderColor:"#f8ce78",color:new F(0,0,0,1,[{offset:0,color:"#f59525"},{offset:1,color:"#fff3c7"}])}}},data:this.soldCountSeries,z:6}]}}get mtar(){return{grid:{left:"55px",right:"35px",top:"90px",bottom:"70px"},xAxis:{data:this.dataAxis,axisLabel:{interval:this.dataAxis.length/12-1,textStyle:{color:"#26afed"},margin:20,rotate:45},axisTick:{show:!1},axisLine:{show:!1}},animation:!1,visualMap:{top:0,left:"30%",itemWidth:20,itemHeight:12,orient:"horizontal",textStyle:{color:"#90979c",fontSize:14},pieces:[{gt:0,lte:30,color:"#0099ff",label:"Buyer's Market "},{gt:30,lte:60,color:"#00af25",label:"Balanced Market"},{gt:60,lte:150,color:"#EF5550",label:"Seller's Market"}]},yAxis:[{show:!0,axisLine:{show:!1},splitLine:{interval:1,lineStyle:{color:"#26afed",type:"dashed",opacity:.3}},axisTick:{show:!1},axisLabel:{margin:10,textStyle:{color:"#26afed",fontWeight:"bolder"},formatter:(e,o)=>o===0?"0":e+"%"},max:150}],series:[{name:"Absorption Rate",type:"line",smooth:!0,symbolSize:10,showSymbol:!1,sampling:"average",markLine:{silent:!0,lineStyle:{color:"#f13e3e",width:2,type:"dashed"},data:[{yAxis:30},{yAxis:60},{yAxis:150}]},data:Et(this.absorption),z:10},{name:"Absorption Rate",type:"line",smooth:!0,symbolSize:10,showSymbol:!1,sampling:"average",itemStyle:{color:"#aaa",borderColor:"#aaa"},areaStyle:{normal:{color:new F(0,0,0,1,[{offset:0,color:"rgba(0,120,254,0.4)"},{offset:1,color:"rgba(33,65,69,0)"}])}},emphasis:{itemStyle:{color:"#aaa",borderColor:"#aaa"}},lineStyle:{color:"#aaa"},data:this.absorption,z:8}],tooltip:{...K(),formatter:e=>{var o,s,r,i,a;return((o=e==null?void 0:e[0])==null?void 0:o.name)+(((s=e==null?void 0:e[0])==null?void 0:s.dataIndex)===this.dataAxis.length-1?" ( Incomplete )":"")+'<br><span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+((r=e==null?void 0:e[0])==null?void 0:r.color)+'"></span>'+((i=e==null?void 0:e[0])==null?void 0:i.seriesName)+": "+((a=e==null?void 0:e[0])==null?void 0:a.data)+"%<br>"}}}}get id(){return{grid:{left:"75px",right:"15px",top:"40px",bottom:"70px"},xAxis:{show:!0,type:"category",axisLine:{show:!1},splitLine:{show:!0,lineStyle:{color:"#e7e7e7",type:"dashed"}},axisTick:{show:!1},axisLabel:{interval:Math.floor(this.dataAxis.length/12)-1,inside:!1,textStyle:{color:"#26afed",fontWeight:"bolder"},rotate:45,margin:20},data:this.dataAxis},yAxis:[{show:!0,splitLine:{show:!0,lineStyle:{color:"#e7e7e7",type:"dashed"}},axisTick:{show:!0,inside:!0,lineStyle:{opacity:.8}},axisLine:{show:!1,lineStyle:{color:"#90979c"}},axisLabel:{interval:0,fontSize:12,margin:30,formatter:"{value}%",textStyle:{color:"#26afed",fontWeight:"bolder"}},max:30}],tooltip:{...K(),formatter:e=>{var o,s,r,i,a,p,q,n,A,y;return((o=e==null?void 0:e[0])==null?void 0:o.name)+(((s=e==null?void 0:e[0])==null?void 0:s.dataIndex)>=this.dataAxis.length-6?" ( Incomplete )":"")+'<br><span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+(((r=e==null?void 0:e[0])==null?void 0:r.dataIndex)>=this.dataAxis.length-6?"#aaa":(i=e==null?void 0:e[0].color)!=null&&i.colorStops?(q=(p=(a=e==null?void 0:e[0])==null?void 0:a.color)==null?void 0:p.colorStops)==null?void 0:q[0].color:(n=e==null?void 0:e[0])==null?void 0:n.color)+'"></span>'+((A=e==null?void 0:e[0])==null?void 0:A.seriesName)+": "+((y=e==null?void 0:e[0])==null?void 0:y.value)+"%<br>"}},legend:{orient:"horizontal",left:"center",x:"center",textStyle:{color:"#90979c",fontSize:14},itemWidth:20,itemHeight:4,borderRadius:2,data:["Rent Ratio"]},visualMap:[{show:!1,type:"piecewise",seriesIndex:0,dimension:0,pieces:[{gte:0,lt:this.dataAxis.length-6,color:"#1974fc"},{gte:this.dataAxis.length-6,lte:this.dataAxis.length-1,color:"#aaa"}]}],series:[{type:"line",name:"Rent Ratio",symbolSize:10,showSymbol:!1,symbol:"circle",itemStyle:{normal:{borderColor:"#f8ce78",color:new F(0,0,0,1,[{offset:0,color:"#f59525"},{offset:1,color:"#fff3c7"}])}},areaStyle:{color:new F(0,0,0,1,[{offset:0,color:"rgba(0,120,254,0.4)"},{offset:1,color:"rgba(33,65,69,0)"}])},data:this.rentRatioSeries,z:6}]}}get ptd(){return{tooltip:{trigger:"item",formatter:e=>`${e.marker+e.name}: ${e.value}%`},grid:{borderWidth:0,top:0,right:110,bottom:50,textStyle:{color:"#fff"},x:100,y2:100},legend:{left:"center",data:this.houseTypeAxis,textStyle:{fontSize:14}},calculable:!0,series:[{name:"Porperty Percent",type:"pie",radiu
4s:"55%",center:["50%","60%"],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},data:this.percentList}]}}get mrp(){return{grid:{left:"55px",right:"35px",top:"70px",bottom:"70px"},visualMap:[{show:!1,type:"continuous",dimension:0,inRange:{color:["#69c6d5","#aaa","#aaa"]},min:this.dataAxis.length-2,max:this.dataAxis.length-1}],legend:{orient:"horizontal",left:"center",align:"left",textStyle:{color:"#90979c",fontSize:14},itemWidth:20,itemHeight:14,borderRadius:2,data:["Median Rent Price","Total Leased","New Listings"]},xAxis:{data:this.dataAxis,axisLabel:{interval:this.dataAxis.length/12-1,inside:!1,textStyle:{color:"#26afed"},rotate:45},axisTick:{show:!1},axisLine:{show:!1},z:8},animation:!1,yAxis:[{show:!0,axisLine:{show:!1},splitLine:{interval:1,lineStyle:{color:"#26afed",type:"dashed",opacity:.3}},axisTick:{show:!1},axisLabel:{margin:10,formatter(e,o){return o>0?"$"+(e/1e3).toFixed(1)+"k":"0"},textStyle:{color:"#26afed",fontWeight:"bolder"}},min:0,max:e=>{var o,s,r,i;return e.max>((s=(o=this.resp)==null?void 0:o.chart_axis)==null?void 0:s.price_rent_max)?(i=(r=this.resp)==null?void 0:r.chart_axis)==null?void 0:i.price_rent_max:e.max}},{show:!0,axisLine:{show:!1},splitLine:{interval:1,lineStyle:{color:"#26afed",type:"dashed",opacity:.3}},axisTick:{show:!1},axisLabel:{margin:10,textStyle:{color:"#26afed",fontWeight:"bolder"},formatter(e,o){return o>0?e>=1e3?Math.ceil(e/1e3)+"k":e:"0"}}}],series:[{name:"Median Rent Price",type:"line",yAxisIndex:0,smooth:!0,symbolSize:10,showSymbol:!1,symbol:"circle",sampling:"average",itemStyle:{borderColor:"#69c6d5",borderWidth:4,color:"#69c6d5"},areaStyle:{normal:{color:new F(0,0,0,1,[{offset:0,color:"rgba(0,120,254,0.4)"},{offset:1,color:"rgba(33,65,69,0)"}])}},stack:"a",data:this.priceRent},{name:"Total Leased",type:"line",yAxisIndex:1,smooth:!0,symbolSize:10,showSymbol:!1,symbol:"circle",sampling:"average",lineStyle:{color:"#1A9BFC"},itemStyle:{borderColor:"#1A9BFC",borderWidth:4,color:"#1A9BFC"},data:this.rentCount},{type:"bar",name:"New Listings",barMaxWidth:"14px",yAxisIndex:1,itemStyle:{normal:{borderColor:"#f8ce78",color:new F(0,0,0,1,[{offset:0,color:"#f59525"},{offset:1,color:"#fff3c7"}])}},data:this.rentListingCount}],tooltip:{...K(),formatter:e=>at(e,this.dataAxis,"mrp")}}}get bdp(){var o,s,r,i;return{tooltip:{trigger:"item",formatter:a=>`${a.marker} ${a.value} ${a.value===1?"listing":"listings"} `},grid:{borderWidth:0,top:0,right:110,bottom:50,textStyle:{color:"#fff"},x:100,y2:100},legend:{left:"center",data:((s=(o=this.resp)==null?void 0:o.chart_bedroom)==null?void 0:s.map(a=>a.bedroom===1?a.bedroom+" bed":a.bedroom+" beds"))||[],textStyle:{fontSize:14}},calculable:!0,series:[{name:"",type:"pie",radius:"55%",top:25,center:["50%","60%"],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},data:((i=(r=this.resp)==null?void 0:r.chart_bedroom)==null?void 0:i.map(a=>({value:a.listing_count,name:a.bedroom===1?a.bedroom+" bed":a.bedroom+" beds"})))||[],itemStyle:{normal:{color:function(a){return["#A155B9","#16BFD6","#1DDD8D","#F765A3","#f9c956","#75bedc","#fd79a8","#ffeaa7","#2d3436","#f6b93b","#4a69bd","#eb2f06","#f8c291"][a.dataIndex]}}}}]}}get sqf(){var o,s,r,i;return{tooltip:{...K(),formatter:a=>ua(a)},xAxis:{axisLabel:{inside:!1,textStyle:{color:"#26afed"},rotate:45},axisTick:{show:!1},axisLine:{show:!1},data:(s=(o=this.resp)==null?void 0:o.chart_sqft)==null?void 0:s.map(a=>a.sqft||[])},yAxis:{show:!0,axisLine:{show:!1},splitLine:{interval:0,lineStyle:{color:"#26afed",type:"dashed",opacity:.3}},axisTick:{show:!1},axisLabel:{margin:10,textStyle:{color:"#26afed",fontStyle:"italic",fontWeight:"bolder"}}},grid:{left:"55px",right:"35px",top:"30px",bottom:"70px"},series:[{type:"bar",barMaxWidth:"14px",data:((i=(r=this.resp)==null?void 0:r.chart_sqft)==null?void 0:i.map(a=>({name:a.sqft,value:a.listing_count})))||[],itemStyle:{normal:{borderRadius:[100,100,0,0],color:function(){return"#FF5F05"}}}}]}}get viewer(){var o,s,r,i;return{grid:{left:"15px",right:"20px",bottom:"16px",containLabel:!0},tooltip:{...K(),formatter:a=>a.map(p=>p.value!==void 0?`<span style="color:#000;display:inline-block;font-weight:500;">${p.seriesName}: ${p.value}</span> <br/>
5              <span style="color:#000;display:inline-block;font-weight:500;">Day: ${p.dataIndex} </span> <br/>`:"").join("")},legend:{textStyle:{color:"#808080",fontSize:14},itemGap:10,itemWidth:20,itemHeight:4,left:"center",data:[{name:"Community Average",icon:"roundRect",itemStyle:{color:"#28A3B3"}}]},xAxis:{axisLabel:{inside:!1,textStyle:{color:"#26afed"}},data:(s=(o=this.resp)==null?void 0:o.chart_view_listing)==null?void 0:s.map(a=>"Day "+a.day||[])},yAxis:{axisLabel:{inside:!1,textStyle:{color:"#26afed",fontStyle:"italic",fontWeight:"bolder"}}},series:[{name:"Community Average",type:"line",yAxisIndex:0,smooth:!0,symbolSize:10,showSymbol:!1,sampling:"average",lineStyle:{color:"#28A3B3"},itemStyle:{borderColor:"#28A3B3",color:"#28A3B3",shadowColor:"rgba(112, 120, 135, 0.24)",shadowOffsetX:0,shadowOffsetY:3,shadowBlur:8},emphasis:{lineStyle:{color:"#28A3B3"},itemStyle:{borderColor:"#ffffff",borderWidth:6,color:"#28A3B3"}},data:((i=(r=this.resp)==null?void 0:r.chart_view_listing)==null?void 0:i.map(a=>({value:a.community_average,name:"Day "+a.day})))||[],z:9}]}}get watchers(){var o,s,r,i;return{grid:{left:"15px",right:"20px",bottom:"16px",containLabel:!0},tooltip:{...K(),formatter:a=>a.map(p=>p.value!==void 0?`<span style="color:#000;display:inline-block;font-weight:500;">${p.seriesName}: ${p.value}</span> <br/>
6              <span style="color:#000;display:inline-block;font-weight:500;">Day: ${p.dataIndex} </span> <br/>`:"").join("")},legend:{textStyle:{color:"#808080",fontSize:14},itemGap:10,itemWidth:20,itemHeight:4,left:"center",data:[{name:"Community Average",icon:"roundRect",itemStyle:{color:"#28A3B3"}}]},xAxis:{axisLabel:{inside:!1,textStyle:{color:"#26afed"}},data:(s=(o=this.resp)==null?void 0:o.chart_watch_listing)==null?void 0:s.map(a=>"Day "+a.day||[])},yAxis:{axisLabel:{inside:!1,textStyle:{color:"#26afed",fontStyle:"italic",fontWeight:"bolder"}}},series:[{name:"Community Average",type:"line",yAxisIndex:0,smooth:!0,symbolSize:10,showSymbol:!1,sampling:"average",lineStyle:{color:"#28A3B3"},itemStyle:{borderColor:"#28A3B3",color:"#28A3B3",shadowColor:"rgba(112, 120, 135, 0.24)",shadowOffsetX:0,shadowOffsetY:3,shadowBlur:8},emphasis:{lineStyle:{color:"#28A3B3"},itemStyle:{borderColor:"#ffffff",borderWidth:6,color:"#28A3B3"}},data:((i=(r=this.resp)==null?void 0:r.chart_watch_listing)==null?void 0:i.map(a=>({name:"Day "+a.day,value:a.community_average})))||[],z:9}]}}}const pa=d=>["municipality_name","community_name","house_type_name"].map(e=>d.filter_active[e]).join(" / ");function ma(d){const e=Y(()=>`Median Sold Price${d.value.dom_display?" & Average Days On Market":""}`),o=Y(()=>"Property Days on Market does not reset when the property is delisted and quickly re-listed.");return{medianPriceAndDomTitle:e,medianPriceAndDomDescription:o}}const Ve=d=>(He("data-v-5172c3c9"),d=d(),je(),d),fa={class:"pc-market-charts"},ya=Ve(()=>m("p",{class:"description"}," The Popularity Score is a measure of online activity, like listing views, in this area. ",-1)),ha=C(" - "),_a={class:"viewer-watcher"},xa=Ve(()=>m("br",null,null,-1)),ga=C(" - "),va=Ve(()=>m("br",null,null,-1)),ba=C(" - "),Sa=C(" - "),wa=C(" Absorption rate indicates how fast homes are selling. It's calculated as homes sold divided by homes currently listed. "),ka=qe({__name:"PcMarketCharts",props:{charts:null},setup(d){const e=d,o=oe("Viewers"),{t:s}=It(),r=Fe(),{summary:i,loadingEcharts:a}=_e(r),{medianPriceAndDomTitle:p,medianPriceAndDomDescription:q}=ma(i),{intersectHandlers:n}=st(),{charts:A}=Bt(e),y=Y(()=>{var x;return new da(A.value,{dom:!!((x=i.value)!=null&&x.dom_display)})}),P=Y(()=>i.value.filter_active?pa(i.value):""),z=Y(()=>{var c;const x=[];return((c=i.value)==null?void 0:c.premium_stats_display)===1&&(x.push({text:s("houseDetail.Viewers"),value:"Viewers",ga:{name:"market_tab_click",hs_label:"viewers"}}),x.push({text:s("houseDetail.Watchers"),value:"Watchers",ga:{name:"market_tab_click",hs_label:"watchers"}})),x}),V=Y(()=>i.value.community_popularity_index_display===1),N=x=>{o.value=x},O=Y(()=>{var x,c,_,v,S,D;return"Overview of sold price distribution for "+((c=(x=i==null?void 0:i.value)==null?void 0:x.filter_active)==null?void 0:c.house_type_name)+" in "+((v=(_=i==null?void 0:i.value)==null?void 0:_.filter_active)==null?void 0:v.community_name)+" , "+((D=(S=i==null?void 0:i.value)==null?void 0:S.filter_active)==null?void 0:D.municipality_name)+" from all sold listings in the past 6 months."});function g(x){ut.event("market_charts_click",{hs_label:x})}return(x,c)=>{var v,S,D,Q,X,J,T,Z,ee,xe,ge,ve,ie,te,se,be,Se,we,re,U,le,ke,Ae,ne,Le,Me,Ce,Pe,Te,$e,Ie,ce,ue,u,l,L,E,$,H,Ye,Ue,Ge,Qe,Xe;const _=Ee("blur");return h(),B("div",fa,[f(j,{text:t(p),secText:t(q)},null,8,["text","secText"]),M(f(R,{option:(v=t(y))==null?void 0:v.mspadom,state:(S=t(i))==null?void 0:S.public,onMouseenter:c[0]||(c[0]=b=>g("median_sold_price"))},null,8,["option","state"]),[[_,t(a)],[t(W),t(n).median_sold_price_avg_days_on_market]]),t(V)?(h(),B(he,{key:0},[f(j,{text:"Popularity Score & Sold Listings"},{secText:G(()=>[ya]),_:1}),M(f(R,{option:(D=t(y))==null?void 0:D.communityPopularity,state:(Q=t(i))==null?void 0:Q.public,onMouseenter:c[1]||(c[1]=b=>g("community_popularity_score"))},null,8,["option","state"]),[[_,t(a)],[t(W),t(n).popularity_score_sold_listings]])],64)):w("",!0),f(j,{text:"Sold, Active & New Listings"}),M(f(R,{option:(X=t(y))==null?void 0:X.sal,state:(J=t(i))==null?void 0:J.public,onMouseenter:c[2]||(c[2]=b=>g("sold_active_listings"))},null,8,["option","state"]),[[_,t(a)],[t(W),t(n).sold_active_new_listings]]),f(j,{text:"Sold Price Distribution (Last 6 Months)"},{secText:G(()=>[f(Be,null,{default:G(()=>[ha]),_:1}),C(" "+k(t(O)),1)]),_:1}),M(f(R,{option:(T=t(y))==null?void 0:T.spd,state:(Z=t(i))==null?void 0:Z.public,onMouseenter:c[3]||(c[3]=b=>g("sold_price_distribution"))},null,8,["option","state"]),[[_,t(a)],[t(W),t(n).sold_price_distribution_last_6_months]]),((ee=t(i))==null?void 0:ee.premium_stats_display)===1?(h(),B(he,{key:1},[f(j,{text:"Listing Popularity",showPremium:((xe=t(i))==null?void 0:xe.premium_stats_display)===1},null,8,["showPremium"]),m("div",_a,[f(nt,{modelValue:o.value,"onUpdate:modelValue":c[4]||(c[4]=b=>o.value=b),tabs:t(z),onChange:c[5]||(c[5]=b=>N(b.value))},null,8,["modelValue","tabs"]),o.value==="Viewers"?M((h(),I(R,{key:0,option:(ge=t(y))==null?void 0:ge.viewer,state:(ve=t(i))==null?void 0:ve.premium_stats_display,onMouseenter:c[6]||(c[6]=b=>g("listing_popularity_viewers"))},null,8,["option","state"])),[[t(W),t(n).listing_popularity_viewers]]):w("",!0),o.value==="Watchers"?M((h(),I(R,{key:1,option:(ie=t(y))==null?void 0:ie.watchers,state:(te=t(i))==null?void 0:te.premium_stats_display,onMouseenter:c[7]||(c[7]=b=>g("listing_popularity_watchers"))},null,8,["option","state"])),[[t(W),t(n).listing_popularity_watchers]]):w("",!0)]),((se=t(A))==null?void 0:se.chart_bedroom)!==null?(h(),B(he,{key:0},[f(j,{text:"Bedroom distribution",showPremium:((be=t(i))==null?void 0:be.premium_stats_display)===1},{secText:G(()=>{var b,de,pe,me,fe,ye;return[xa,f(Be,null,{default:G(()=>[ga]),_:1}),C(" Overview of bedroom distribution for "+k((de=(b=t(i))==null?void 0:b.filter_active)==null?void 0:de.house_type_name)+" in "+k((me=(pe=t(i))==null?void 0:pe.filter_active)==null?void 0:me.community_name)+" , "+k((ye=(fe=t(i))==null?void 0:fe.filter_active)==null?void 0:ye.municipality_name)+" from all sold listings in the past 6 months. ",1)]}),_:1},8,["showPremium"]),M(f(R,{option:(Se=t(y))==null?void 0:Se.bdp,state:(we=t(i))==null?void 0:we.premium_stats_display,onMouseenter:c[8]||(c[8]=b=>g("bedroom_distribution"))},null,8,["option","state"]),[[t(W),t(n).bedroom_distribution]])],64)):w("",!0),((re=t(A))==null?void 0:re.chart_sqft)!==null?(h(),B(he,{key:1},[f(j,{text:"Sq Ft Distribution ",showPremium:((U=t(i))==null?void 0:U.premium_stats_display)===1},{secText:G(()=>{var b,de,pe,me,fe,ye;return[C(k(t(P))+" ",1),va,f(Be,null,{default:G(()=>[ba]),_:1}),C(" Overview of square footage distribution for "+k((de=(b=t(i))==null?void 0:b.filter_active)==null?void 0:de.house_type_name)+" in "+k((me=(pe=t(i))==null?void 0:pe.filter_active)==null?void 0:me.community_name)+" , "+k((ye=(fe=t(i))==null?void 0:fe.filter_active)==null?void 0:ye.municipality_name)+" sold the last 6 months ",1)]}),_:1},8,["showPremium"]),M(f(R,{option:(le=t(y))==null?void 0:le.sqf,state:(ke=t(i))==null?void 0:ke.premium_stats_display,onMouseenter:c[9]||(c[9]=b=>g("sq_ft_distribution"))},null,8,["option","state"]),[[t(W),t(n).sq_ft_distribution]])],64)):w("",!0)],64)):w("",!0),f(j,{text:"Market Temperature (Absorption Rate)"},{secText:G(()=>[f(Be,null,{default:G(()=>[Sa]),_:1}),wa]),_:1}),M(f(R,{option:(Ae=t(y))==null?void 0:Ae.mtar,state:(ne=t(i))==null?void 0:ne.public,onMouseenter:c[10]||(c[10]=b=>g("market_temperature"))},null,8,["option","state"]),[[_,t(a)],[t(W),t(n).market_temperature_absorption_rate]]),((Me=(Le=t(i))==null?void 0:Le.filter_active)==null?void 0:Me.current_province)!=="BC"&&((Pe=(Ce=t(i))==null?void 0:Ce.filter_active)==null?void 0:Pe.current_province)!=="AB"?(h(),I(j,{key:2,text:"Investor Demand (Rent Ratio)",secText:(($e=(Te=t(i))==null?void 0:Te.filter_active)==null?void 0:$e.current_province)!=="BC"?"Percentage of sold properties listed for lease on MLS\xAE immediately after purchase.":""},null,8,["secText"])):w("",!0),((ce=(Ie=t(i))==null?void 0:Ie.filter_active)==null?void 0:ce.current_province)!=="BC"&&((u=(ue=t(i))==null?void 0:ue.filter_active)==null?void 0:u.current_province)!=="AB"?M((h(),I(R,{key:3,option:(l=t(y))==null?void 0:l.id,state:(L=t(i))==null?void 0:L.public,onMouseenter:c[11]||(c[11]=b=>g("investor_demand"))},null,8,["option","state"])),[[_,t(a)],[t(W),t(n).investor_demand_rent_ratio]]):w("",!0),(($=(E=t(i))==null?void 0:E.filter_active)==null?void 0:$.current_province)!=="AB"?(h(),I(j,{key:4,text:"Median Rental Price"})):w("",!0),((Ye=(H=t(i))==null?void 0:H.filter_active)==null?void 0:Ye.current_province)!=="AB"?M((h(),I(R,{key:5,option:(Ue=t(y))==null?void 0:Ue.mrp,state:(Ge=t(i))==null?void 0:Ge.public,onMouseenter:c[12]||(c[12]=b=>g("median_rental_price"))},null,8,["option","state"])),[[_,t(a)],[t(W),t(n).median_rental_price]]):w("",!0),f(j,{text:"Property Type Distribution"}),M(f(R,{option:(Qe=t(y))==null?void 0:Qe.ptd,state:(Xe=t(i))==null?void 0:Xe.public,onMouseenter:c[13]||(c[13]=b=>g("property_type_distribution"))},null,8,["option","state"]),[[_,t(a)],[t(W),t(n).property_type_distribution]]),f(ct,{text:`* Source: Based on analysis of information from past listings from
7      respective real estate boards.`})])}}});var Aa=Re(ka,[["__scopeId","data-v-5172c3c9"]]);const lt=d=>(He("data-v-18702740"),d=d(),je(),d),La={class:"pc-market-watcher"},Ma={class:"watch"},Ca={class:"notification-icon"},Pa=lt(()=>m("p",null,"To receive daily updates, please sign-in.",-1)),Ta={class:"notification-icon"},$a=lt(()=>m("p",null,"Select a community & property type to receive updates.",-1)),Ia={key:2,class:"check-section"},Ba={class:"notification-icon"},Da={class:"nofitication-text"},Wa=C(" Receive updates on "),za=C(" in "),Ra=C(", "),Fa=qe({__name:"PcMarketWatcher",emits:["change"],setup(d,{emit:e}){const o=dt(),s=pt(),r=Fe(),i=oe(!1),{summary:a,selectedCommunity:p,selectedProperty:q,watchStatus:n}=_e(r);function A(){e("change")}function y(){o.success("To receive daily updates,Select a community & property type to receive updates.")}const P=()=>{s.show().then(z=>{z&&e("change")})};return(z,V)=>{var g,x,c;const N=it("font-awesome-icon"),O=Ee("ga");return h(),B("div",La,[m("section",Ma,[t(n)==="Login_Required"?(h(),B("div",{key:0,class:"check-section",value:!1,disabled:!0,onClick:V[0]||(V[0]=_=>P())},[m("i",Ca,[f(N,{icon:"fas fa-bell"})]),Pa])):w("",!0),t(n)==="Not_Available"?(h(),B("div",{key:1,class:"check-section",value:!1,disabled:!0,onClick:y},[m("i",Ta,[f(N,{icon:"fas fa-bell"})]),$a,f(Ke,{disabled:"",size:"small",text:"Watch",class:"app-watch-btn"})])):w("",!0),t(n)==="Watch"||t(n)==="Watched"?(h(),B("div",Ia,[m("i",Ba,[f(N,{icon:"fas fa-bell"})]),m("p",Da,[Wa,m("strong",null,k((g=t(a))==null?void 0:g.filter_active.house_type_name),1),za,m("strong",null,k((x=t(a))==null?void 0:x.filter_active.community_name),1),Ra,m("strong",null,k((c=t(a))==null?void 0:c.filter_active.municipality_name),1)]),M(f(Ke,{type:t(n)==="Watch"?"pressed-down":"default",size:"small",text:t(n),loading:i.value,class:"app-watch-btn",onClick:A},null,8,["type","text","loading"]),[[O,{name:"watch_community_click",hs_label:"market"}]])])):w("",!0)])])}}});var ot=Re(Fa,[["__scopeId","data-v-18702740"]]);const qa={class:"pc-market-page page-market"},Na={class:"header"},Oa={class:"content"},Ea={class:"main"},Ha={class:"form"},ja={class:"list"},Va={name:"PageMarket"},Ya=qe({...Va,setup(d){const{startLoading:e,stopLoading:o}=mt(),{mini:s}=ft(),r=yt(),i=Fe(),a=Rt(),p=Ft(),{listingsStructuredData:q,getSeeMoreHref:n}=qt(),A=oe(),y=oe(),P=oe(),z=oe(!1);let V=r.province,N=r.getLang,O=!1,g=null;const{filtersCached:x,selectedYear:c,selectedMunicipality:_,selectedCommunity:v,selectedProperty:S,loading:D,loadingEcharts:Q,loadingTrend1:X,loadingTrend2:J,summary:T,watchStatus:Z,selectedMunicipalityData:ee}=_e(i),{province:xe,user:ge,userTerms:ve,lang:ie,userProvince:te}=_e(r),{collectListingCardIntersect:se,intersectHandlers:be,collectFilter:Se}=st(),we=Y(()=>Tt(r.province));Dt(()=>{e(),re()}),Wt(()=>{if(g="pageload",O){O=!1,U();return}}),zt(()=>{le()}),Oe(()=>a.query,async(u,l)=>{a.name==="Market"&&(Ht(u,l)&&!jt(u)||re())}),Oe([ge,ve],()=>{a.name==="Market"?U():O=!0},{deep:!0}),Oe([te,ie],()=>{if(a.name!=="Market"){O=!0;return}if(te.value!==V){const u=Ne.get(te.value);u&&(_.value=u,v.value=De,S.value=We,ne())}ie.value!==N&&U(),V=r.userProvince,N=r.lang},{deep:!0});async function re(){var E,$,H;const u=a.query;if(!ht(u)&&!_t(u))return x.value?p.replace({query:{municipality:(E=x.value)==null?void 0:E.municipality,community:($=x.value)==null?void 0:$.community,property_type:(H=x.value)==null?void 0:H.houseType}}):p.replace({query:{...a.query,...we.value}});let l=Object.assign({},u),L=!1;if(l.municipality||(L=!0,l=Object.assign({},l,{municipality:Ne.get(r.province)})),l.community||(L=!0,l=Object.assign({},l,{community:De})),!l.property_type&&!l.house_type&&(L=!0,l=Object.assign({},l,{property_type:We}),delete l.house_type),L)return l.hasOwnProperty("ign")&&delete l.ign,p.replace({params:{...a.params,province:r.province},query:{...l,ign:""}});_.value=l.municipality,v.value=l.community,S.value=l.property_type||l.house_type,await U()}async function U(){if(!!_.value){if(D.value=!0,await i.querySummary(_.value,v.value,S.value),Le(),!i.isMunicipalityFilterLegal(_.value)){p.replace({query:{...a.query,municipality:Ne.get(r.province)}}),D.value=!1;return}if(!i.isCommunityFilterLegal(v.value)){p.replace({query:{...a.query,c
7ommunity:De}}),D.value=!1;return}if(!i.isHouseTypeFilterLegal(S.value)){p.replace({query:{...a.query,property_type:"property_type"in a.query?We:void 0,house_type:"house_type"in a.query?xt:void 0}}),D.value=!1;return}i.summary?gt(i.summary):vt(),le(),await r.queryCommunityList(),Pe(),g&&(Se({scene:g}),g=null),D.value=!1,o(),Te(),await $e(1),await Ie(2)}}function le(){var u,l,L,E;a.name==="Market"&&((l=(u=i.summary)==null?void 0:u.meta)!=null&&l.description&&(bt("hs-meta"),St(a),wt("description",i.summary.meta.description.replace(/\"/g,"'"),"hs-meta")),kt("hs-script"),At("hs-script",q.value),(E=(L=i.summary)==null?void 0:L.meta)!=null&&E.title&&(document.title=i.summary.meta.title))}function ke(){g="filterUpdated",ne(),Ce()}function Ae(){U()}const ne=()=>{const u={municipality:_.value,community:v.value,property_type:S.value,ign:""};p.replace({params:{...a.params,province:r.userProvince},query:{...a.query,...u}})};function Le(){var u,l;(u=ee.value)!=null&&u.seo_municipality&&p.replace({...a,params:{...a.params,city:(l=ee.value)==null?void 0:l.seo_municipality}})}function Me(u){u.checked&&U(),z.value=!1}function Ce(){i.setFilterCache({municipality:_.value,community:v.value,houseType:S.value})}const Pe=async()=>{var u;if(!r.isSignined){Z.value="Login_Required";return}if(S.value===We||v.value===De){Z.value="Not_Available";return}if(((u=r.communityList)==null?void 0:u.findIndex(l=>""+l.id_community===v.value&&l.house_type===S.value))>=0){Z.value="Watched";return}Z.value="Watch"},Te=async()=>{Q.value=!0;const u={municipality:_.value,community:v.value,house_type:S.value,period_num:c.value*12},l=await Lt.chart(u);A.value=l.data,Q.value=!1},$e=async u=>{X.value=!0,y.value=await ce(u),X.value=!1},Ie=async u=>{J.value=!0,P.value=await ce(u),J.value=!1},ce=async u=>{const l={municipality:_.value,community:v.value,house_type:S.value,page:1,type:u},L=await Mt.trendHouseList(l);if(L.status)return L.data};function ue(u){var l;p.push({name:"Trend",params:{province:xe.value.toLowerCase(),city:(l=ee.value)==null?void 0:l.seo_municipality,type:u},query:{municipality:_.value,community:v.value,property_type:S.value||""}})}return(u,l)=>{var L,E;return h(),B("div",qa,[m("div",Na,[f(Nt,{onChange:ke,onYearChange:Ae})]),m("div",Oa,[m("div",Ea,[t(s)?(h(),I(ot,{key:0,onChange:l[0]||(l[0]=$=>z.value=!0)})):w("",!0),M(f(na,null,null,512),[[t(W),t(be).real_estate_market_trends]]),A.value?(h(),I(Aa,{key:1,charts:A.value},null,8,["charts"])):w("",!0)]),m("div",Ha,[t(s)?w("",!0):(h(),I(ot,{key:0,onChange:l[1]||(l[1]=$=>z.value=!0)})),t(T).community_has_agent?(h(),I(Ct,{key:1,gaValue:"market_form",community:t(v),municipality:t(_),message:t(T).contact_message,formId:t(T).contact_form_id},null,8,["community","municipality","message","formId"])):(h(),I(Pt,{key:2,municipalityName:(E=(L=t(T))==null?void 0:L.filter_active)==null?void 0:E.municipality_name},null,8,["municipalityName"])),f(Vt,{style:{margin:"20px"},ga:"market"})])]),m("div",ja,[y.value?(h(),I(tt,{key:0,scores:!1,title:y.value.head,houses:y.value.list,subject:y.value.type,ga:"market_just_sold",seeMoreHref:t(n)(t(ze)[y.value.type]),eventSource:t(Ze)[y.value.type],onSeemore:l[2]||(l[2]=$=>{var H;return ue(t(ze)[((H=y.value)==null?void 0:H.type)||""])}),onIntersect:l[3]||(l[3]=$=>t(se)({sectionTileGroup:"market_just_sold",idListing:$.idListing,tilePosition:$.position}))},null,8,["title","houses","subject","seeMoreHref","eventSource"])):w("",!0),P.value?(h(),I(tt,{key:1,scores:!1,title:P.value.head,houses:P.value.list,subject:P.value.type,ga:"market_newly",eventSource:t(Ze)[P.value.type],seeMoreHref:t(n)(t(ze)[P.value.type]),onSeemore:l[4]||(l[4]=$=>{var H;return ue(t(ze)[((H=P.value)==null?void 0:H.type)||""])}),onIntersect:l[5]||(l[5]=$=>t(se)({sectionTileGroup:"market_newly",idListing:$.idListing,tilePosition:$.position}))},null,8,["title","houses","subject","eventSource","seeMoreHref"])):w("",!0)]),z.value?(h(),I(Yt,{key:0,summary:t(T),onClose:Me},null,8,["summary"])):w("",!0)])}}});var ao=Re(Ya,[["__scopeId","data-v-4757f1d8"]]);export{ao as default};

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.