1import M from"./CsErAbZa.js";import{b as X}from"./CnlnER6P.js";import{u as j}from"./CmS5_vvO.js";import{av as D,as as F,at as O,aD as r,aB as y,j as w,o as $,ao as o,i as Z,a6 as c,$ as E,Z as I}from"./HUMTGNfc.js";import{u as V}from"./CvId3Ier.js";import{u as q}from"./C4_QyQ5x.js";import{u as G}from"./D__WO3xl.js";import{a as J,u as K}from"./LE8lC49O.js";import"./BBjWZ50A.js";import"./C-dX8HYa.js";import"./CIy4OnTK.js";import"./DlAUqK2U.js";import"./DVyFik6v.js";import"./BU_CLtrA.js";import"./DhRYBey2.js";import"./CUgIf_sX.js";import"./BiLxyeE-.js";import"./Cpj98o6Y.js";import"./C56tp0PX.js";import"./DoxoKZjr.js";import"./wbbuVUvY.js";import"./qTDZfoc_.js";import"./BGvEW3lH.js";import"./BzxInFYh.js";import"./BWXHYcQT.js";import"./DLj3IzHs.js";let m=!1,k="";function Q(){const g=D();async function t(a){if(!(m&&k===a))try{m=!0,k=a;const s=await V(`regionData-${a}`,async()=>await $fetch(`${g.public.REIV_API_URL}/marketinsights/states/vic/snapshot?region=${a}`));return m=!1,s.data?.value}catch(s){console.error(s),m=!1}}return{fetchRegionData:t}}const W={key:0,class:"fixed top-0 h-full w-full bg-[rgba(255,255,255,0.85)] backdrop-blur-sm"},kt={__name:"victorian-insights",async setup(g){let t,a;const{fetchStoryBySlug:s}=j(),{fetchRegionData:d}=Q(),{getRobotsMeta:x}=q(),i=D(),S=F(),b=O(),e=c(),p=c(),f=c(),v=c(),{suburbs:N,regions:U,proximities:A}=G();S.hook("page:finish",()=>{window&&window.scrollTo(0,0)});const P=d("metro"),T=d("regional"),{data:n,pending:h,error:L}=([t,a]=r(()=>V("suburbs",()=>$fetch(`${i.public.REIV_API_URL}/marketinsights/suburbs?size=100000`),{server:!0,lazy:!0})),t=await t,a(),t);L.value;const _=()=>{!h.value&&n?.value?.data&&(N.value=n.value.data.items,U.value=n.value.data.regions,A.value=n.value.data.proximities)};_(),y(h,_);const B=([t,a]=r(()=>P),t=await t,a(),t);f.value=B?.data;const C=([t,a]=r(()=>T),t=await t,a(),t);v.value=C?.data;const{story:l,pending:R,error:z}=([t,a]=r(()=>s("market-insights/victorian-insights",{ignorePendingAndError:!1})),t=await t,a(),t);return z?.value,e.value=l?.value?.story,p.value=l?.value?.rels,y(R,async()=>{R.value||(e.value=l?.value?.story,p.value=l?.value?.rels),i.public.NUXT_ENV==="development"&&await E(e?.value?.id,u=>e.value=u)}),i.public.NUXT_ENV==="development"&&([t,a]=r(()=>E(e?.value?.id,u=>e.value=u)),await t,a()),J({title:()=>`${e.value?.content?.title??""} | REIV - Real Estate Institute of Victoria`,ogTitle:()=>e.value?.content?.title??"",description:()=>e.value?.content?.description??"",ogDescription:()=>e.value?.content?.description??"",ogUrl:()=>`${i.public.SITE_URL}${b?.fullPath??"/"}`,ogImage:()=>e.value?.content?.image?.filename?e.value?.content?.image?.filename:e.value?.content?.ogimage?.filename??"https://a.storyblok.com/f/224482/1200x630/4230613fe6/reiv-og-image.png/m/",formatDetection:()=>"telephone=no",robots:()=>x(i.public.SITE_URL.includes("staging.reiv.com.au"),!!e.value?.content?.noindex)}),K({title:`${e.value?.content?.title??""} | REIV - Real Estate Institute of Victoria`,link:[{rel:"canonical",href:`${i.public.SITE_URL}${b.path}`}]}),(u,Y)=>{const H=M;return I(),w("div",null,[$(H,{blok:o(e)?.content,rels:o(p),"metro-data":o(f),"regional-data":o(v)},null,8,["blok","rels","metro-data","regional-data"]),!o(f)||!o(v)?(I(),w("div",W,[$(o(X),{class:"-translate-1/2 absolute left-1/2 top-1/2 h-16 w-16"})])):Z("",!0)])}}};export{kt 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.