1import{a as L,a4 as O,m as A,a2 as N,a3 as V,b4 as j,_ as h,aE as H,aR as $}from"./index.50545bde.js";import{ab as J,aP as P,O as c,a$ as K,e5 as g,e8 as b,W as R,R as I,bp as U,bj as W,am as z,as as q,an as Q,aC as _,aD as X,br as Y,ag as Z,aO as F,al as s,aw as ee,ax as te,ao as ie}from"./vendor.0dd2da6e.js";import{u as ae}from"./report.2e52201f.js";import{P as oe}from"./PcPageTitle.fa1b8b62.js";import"./lodash.6e4bef40.js";import"./swiper.2518f49a.js";const ne=u=>(ee("data-v-f293eb3c"),u=u(),te(),u),re={class:"page-median-price-report"},ue=ne(()=>ie("p",{class:"description"}," * Source: Based on analysis of information from past listings from respective real estate boards. ",-1)),ce=J({__name:"PcMedianPriceReport",setup(u){const{stopLoading:w}=O(),a=Z(),C=F(),o=ae(),p=A(),{user:M,lang:S}=P(p),{showType:n,medianPriceGrowth:k,medianPriceGrowthCity:T}=P(o),y=c(a.query.property_type||""),l=c(a.query.municipality||""),r=c(n.value),m=c(!0),v=K({city:g(b(()=>h(()=>import("./PcMedianDemandReportCity.c128ee04.js"),["assets/PcMedianDemandReportCity.c128ee04.js","assets/vendor.0dd2da6e.js","assets/report.2e52201f.js","assets/index.50545bde.js","assets/lodash.6e4bef40.js","assets/swiper.2518f49a.js"]))),community:g(b(()=>h(()=>import("./PcMedianDemandReportCommunity.381bde91.js"),["assets/PcMedianDemandReportCommunity.381bde91.js","assets/report.2e52201f.js","assets/vendor.0dd2da6e.js","assets/index.50545bde.js","assets/lodash.6e4bef40.js","assets/swiper.2518f49a.js"])))}),x=R(()=>{var e,t;return((t=(e=o.medianPriceGrowthCity)==null?void 0:e.filter_active)==null?void 0:t.municipality_name)||""}),B=R(()=>{const e=r.value==="city"?k.value.housetype_filter:T.value.housetype_filter;return(e==null?void 0:e.map(t=>({text:t.name,value:t.id})))||[]});I([M,S],()=>{a.name==="medianPriceReport"&&G()}),I(()=>p.userProvince,e=>{a.name==="medianPriceReport"&&H(e)}),U(async()=>{d({id:y.value,municipalityId:l.value}),f(a)}),W(e=>{d({id:e.query.property_type,municipalityId:e.query.municipality}),f(e)});async function d(e){var i;const t={id:(e==null?void 0:e.id)||"D.",municipalityId:(e==null?void 0:e.municipalityId)||""};o.selectedHouseType=t.id,y.value=t.id,l.value=t.municipalityId||"",n.value=l.value?"community":"city",r.value=n.value,m.value=!0,n.value==="city"&&await o.queryMedianPriceGrowth({house_type:t.id}),n.value==="community"&&(r.value="community",await o.queryMedianPriceGrowthCity({house_type:t.id,id_municipality:t.municipalityId}),document.title=`${(i=p.provinceData)==null?void 0:i.name}, ${x.value} Median Price Report by Community | HouseSigma`),w(),m.value=!1}function f(e){let t=window.location.origin+e.path,i=[];e.query.property_type&&i.push("property_type="+e.query.property_type),e.query.municipality&&i.push("municipality="+e.query.municipality),i.length>0&&(t=t+"?"+i.join("&")),N("hs-link"),V("canonical",t,"hs-link")}async function D(e){C.replace({query:{...a.query,property_type:e}})}async function E(e){await o.setMunicipalityID(e),n.value="community",r.value="community"}function G(){d({id:a.query.property_type,municipalityId:a.query.municipality})}return(e,t)=>(s(),z("div",re,[q(oe,{text:"Median Price Report"}),ue,q(j,{border:"",tab:y.value,tabs:Q(B),onChange:t[0]||(t[0]=i=>D(i.value))},null,8,["tab","tabs"]),m.value?(s(),_($,{key:0,class:"loading",type:"H",height:"500px",loading:""})):(s(),_(Y,{key:1},[(s(),_(X(r.value==="city"?v.city:v.community),{onJumpToCommunity:E},null,32))],1024))]))}});var _e=L(ce,[["__scopeId","data-v-f293eb3c"]]);export{_e 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.