PageSourceSearch

https://www.stmodwenhomes.co.uk/assets/stmodwens.SearchWizard.509882021e698c64db23.js

js stmodwenhomes.co.uk collected 2026-10-02 14:35:38 UTC 3,076 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmillerhomescorp=self.webpackChunkmillerhomescorp||[]).push([[4812,9511],{717:(e,a,l)=>{l.r(a),l.d(a,{default:()=>n});var t=l(8253),u=l(1249),o=l(5774);function n(){return(0,t.ri)({components:{AutocompleteInput:o.Z},setup(){const e=(0,u.h)(),a=(0,t.iH)(1),l=(0,t.iH)(""),n=(0,t.iH)("1"),r=(0,t.iH)("40000"),i=(0,t.iH)("1900000"),s=(0,t.iH)("0"),c=(0,t.iH)(""),v=(0,t.iH)(null),d=(0,t.iH)([]),h=(0,t.iH)([]),m=(0,t.Fl)((()=>e.isMobile)),p=(0,t.Fl)((()=>1==a.value?"Search":4==a.value?"See Results":"Next Question")),f=(0,t.Fl)((()=>1==a.value?"Personalise your search":"Go Back")),y=(0,t.Fl)((()=>{switch(a.value){case 1:return"Find your new home today";case 2:return"How many bedrooms?";case 3:return"What is your price range?";case 4:return"When do you want to move in?";default:return""}})),b=e=>e?e.toLocaleString("en-GB",{style:"currency",currency:"GBP"}).replace(/\.0+$/,""):"----";(()=>{d.value.push({text:"Any",value:4e4}),d.value.push({text:b(5e4),value:5e4});for(let e=100;e<250;e+=10)d.value.push({text:b(1e3*e),value:1e3*e});for(let e=250;e<500;e+=50)d.value.push({text:b(1e3*e),value:1e3*e});for(let e=500;e<1e3;e+=100)d.value.push({text:b(1e3*e),value:1e3*e});h.value.push({text:"Any",value:19e5});for(let e=100;e<250;e+=10)h.value.push({text:b(1e3*e),value:1e3*e});for(let e=250;e<500;e+=50)h.value.push({text:b(1e3*e),value:1e3*e});for(let e=500;e<=1800;e+=100)h.value.push({text:b(1e3*e),value:1e3*e})})();const H=()=>{a.value<4&&(c.value="is-animate-out-left",setTimeout((()=>{a.value+=1,c.value="is-animate-in-right",v.value&&v.value.focus()}),300))};return(0,t.YP)(a,(()=>{1!==a.value?v.value.className="c-find-home__content "+c.value:v.value.className="c-find-home__content"})),(0,t.bv)((()=>{(()=>{const e=document.getElementById("searchLocationPlaceholderInput");if(e){const a=e.classList,u=(e.getAttribute("placeholder"),document.createElement("div"));u.classList.add("relative","w-full","bg-brand-gold","md:bg-transparent"),e.replaceWith(u);const n=(0,t.ri)(o.Z,{modelValue:l.value,value:l.value,mode:1,bypassSearch:!1,searchWizard:!0,isDisabled:!1,ariaLabel:"Search for a development",label:"Location",inputClass:Array.from(a).join(" "),"onUpdate:modelValue":e=>{l.value=e}});try{n.mount(u)}catch(e){}}})()})),{isMobile:m,currentQuestion:a,contentRef:v,heading:y,questionAnimation:c,primaryButtonLabel:p,secondaryButtonLabel:f,handlePrimaryButtonClick:()=>{1==a.value||4==a.value?(()=>{if(!l.value)return;const e=l.value.replace("New build homes ","");let t=`/search?location=${encodeURIComponent(e)}`;4==a.value&&(t+=`&bedmin=${n.value}`,r.value&&"0"!=r.value&&(t+=`&pricemin=${r.value}`),i.value&&"0"!=i.value&&(t+=`&pricemax=${i.value}`),s.value&&(t+=`&cd=${s.value}`)),window.location.href=t})():H()},handleSecondaryButtonClick:()=>{1==a.value?H():a.value>0&&(c.value="is-animate-out-right",setTimeout((()=>{a.value-=1,c.value="is-animate-in-left",v.value&&v.value.focus()}),300))},priceLowValues:d,priceHighValues:h,searchLocation:l,selectedBedrooms:n,selectedPriceL:r,selectedPriceH:i,selectedCompletion:s}}})}}}]);

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.