1import{_ as m}from"./C6P2dQMn.js";import{as as l,Z as y,j as g,o as d,ao as s,J as _,N as h,L as x,f as k}from"./HUMTGNfc.js";import{a as S}from"./D__WO3xl.js";import{u as v}from"./C4_QyQ5x.js";import"./UT1q5mJL.js";import"./DlAUqK2U.js";import"./BfxBq66M.js";import"./BzxInFYh.js";import"./BiLxyeE-.js";import"./Cpj98o6Y.js";import"./CnlnER6P.js";import"./B8OOlntm.js";import"./BgwCd98q.js";import"./BGvEW3lH.js";import"./DoxoKZjr.js";import"./qTDZfoc_.js";import"./CA4L2PHE.js";import"./CatJ1OUG.js";import"./C-dX8HYa.js";const U={__name:"ChooseSuburb",props:{blok:{type:Object,default:()=>({})}},setup(r){const i=r,a=S(),{getFocusPoint:p}=v(),{$trackEvent:n}=l(),c=k(()=>{let e=i.blok.image?.filename?`background-image: url('${i.blok.image?.filename}/m/');`:"";if(i.blok.image?.focus){const o=p(i.blok.image.filename,i.blok.image.focus);e+=` background-position: ${o.x}% ${o.y}%;`}return e});function u(e){const o={};return e.search_type==="suburb"&&e.suburb?(o.suburb=e.suburb.name.toLowerCase(),o.postcode=e.suburb.postcode):e.search_type==="region"&&e.region?o.region=e.region.toLowerCase():e.search_type==="proximity"&&e.proximity&&(o.proximity=e.proximity.toLowerCase()),e.min_price&&parseInt(e.min_price)>5e4&&(o.min_price=e.min_price),e.max_price&&parseInt(e.max_price)<15e6&&(o.max_price=e.max_price),e.bedrooms&&(o.bedrooms=e.bedrooms),e.property_type&&(o.property_type=e.property_type),new URLSearchParams(o)}return(e,o)=>{const b=m;return y(),g("section",{class:x(["choose-suburb reiv-container bg-cover p-8 md:p-12 lg:p-16 2xl:max-w-[1536px]",`bg-${r.blok.background_color}`]),style:h(s(c))},[d(b,{class:"rounded bg-white px-8 pb-8 pt-6 shadow-2xl",heading:r.blok.heading,description:r.blok.description,suburbs:s(a),onSubmit:o[0]||(o[0]=t=>{s(n)("choose_suburb_search",{search_type:t.search_type||"suburb",region:t.region||"any",postcode:t.suburb?.postcode||"any",min_price:t.min_price||"any",max_price:t.max_price||"any",bedrooms:t.bedrooms||"any",property_type:t.property_type||"house"}),e.$nextTick(()=>{("navigateTo"in e?e.navigateTo:s(_))({path:"/market-insights/suburb-listing",query:Object.fromEntries(u(t))})})})},null,8,["heading","description","suburbs"])],6)}}};export{U 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.