PageSourceSearch

https://www.chkmountford.co.uk/asset_bundles/5259.bundle.30f7eba4cd5cf9be9e0f.js

js chkmountford.co.uk collected 2026-09-29 14:05:11 UTC 10,663 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktheme_boilerplate=self.webpackChunktheme_boilerplate||[]).push([[5259,1698],{1698:function(e,t,n){n.r(t);var r=n(7294),a=n(3967),l=n.n(a),o=n(5049),i=n(3164);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,l,o,i=[],u=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=l.call(n)).done)&&(i.push(r.value),i.length!==t);u=!0);}catch(e){c=!0,a=e}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.default=function(){var e,t=Homeflow.get("valuation_hero_expert_val_only"),n=u((0,r.useState)(),2),a=n[0],c=n[1],s=u((0,r.useState)(!1),2),f=s[0],m=s[1],d=u((0,r.useState)("sales"),2),v=d[0],h=d[1],p=u((0,r.useState)({houseNumber:"",thoroughfare:"",town:"",county:"",postcode:"",bedrooms:""}),2),y=p[0],g=p[1];return(0,r.useEffect)((function(){a?setTimeout((function(){return m(!0)}),100):m(!1)}),[a]),a?r.createElement("div",{className:l()("valuation-wrapper",{visible:f})},r.createElement(o.Z,{mode:a,setMode:c,initialChannel:v,initialAddress:y,isHeroValuationForm:!0})):r.createElement("div",{className:"hero__search-container ".concat(t?"hero__search-container--no-channel":"")},!t&&r.createElement("div",{className:"hero__search-radio"},r.createElement("div",{className:"form__group form__group--radio-default"},r.createElement("fieldset",{className:"form__fieldset"},r.createElement("div",{className:"form__group-fieldset d-flex"},r.createElement("div",{className:"form__group-option"},r.createElement("input",{type:"radio",name:"channels",value:"sales",className:"form__control",id:"input-sell",checked:"sales"===v,onChange:function(e){return h(e.target.value)}}),r.createElement("label",{htmlFor:"input-sell",className:"form__label"},"Sell")),r.createElement("div",{className:"form__group-option"},r.createElement("input",{type:"radio",name:"channels",value:"lettings",className:"form__control",id:"input-let",onChange:function(e){return h(e.target.value)},checked:"lettings"===v}),r.createElement("label",{htmlFor:"input-let",className:"form__label"},"Let")))))),r.createElement("div",{className:"hero__search-location"},r.createElement("div",{className:"valuation__main valuation__main--on-dark"},r.createElement(i.j,{setAddress:g,inputPlaceholder:"Enter your postcode",initialLocationQuery:null==y||null===(e=y.formatted_address)||void 0===e||null===(e=e.filter((function(e){return!!e})))||void 0===e?void 0:e.join(",")}))),r.createElement("div",{className:"hero__search-button"},r.createElement("button",{type:"button",className:"button switch-button switch-button--active",onClick:function(){return c("expert")}},"Expert valuation"),!t&&r.createElement("button",{type:"button",className:"button switch-button",onClick:function(){return c("instant")}},"Instant valuation")))}},8823:function(e,t,n){var r=n(7294);t.Z=function(e){var t=e.id,n=void 0===t?"":t,a=e.classNameIdentifier,l=void 0===a?null:a,o=e.fallback,i=void 0===o?null:o,u=Homeflow.get("disclaimer_text_".concat(n)),c=Homeflow.get("disclaimer_text");return!c&&i?i:c||i?r.createElement("div",{className:"disclaimer-text".concat(l?" ".concat(l):""),dangerouslySetInnerHTML:{__html:u?"".concat(u).concat(c):c}}):null}},7049:function(e,t,n){var r=n(7294);t.Z=function(){return r.createElement("svg",{focusable:"false",className:"icon icon--cross",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48.29 48.29"},r.createElement("title",null,"Cross Icon"),r.createElement("desc",null,"Icon set Cross"),r.createElement("path",{d:"M25.2,24.14,48.07,1.28A.75.75,0,0,0,47,.22L24.14,23.08,1.28.22A.75.75,0,0,0,.22,1.28L23.08,24.14.22,47a.75.75,0,0,0,0,1.06.79.79,0,0,0,.53.22.79.79,0,0,0,.53-.22L24.14,25.2,47,48.07a.75.75,0,0,0,.53.22.79.79,0,0,0,.53-.22.75.75,0,0,0,0-1.06Z"}))}},177:function(e,t,n){var r=n(7294);t.Z=function(){return r.createElement("svg",{focusable:"false",className:"icon-solid icon-tick",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},r.createElement("title",null,"Tick Icon"),r.createElement("desc",null,"Icon set Tick"),r.createElement("path",{d:"M44.3 13.8L20 38a2.4 2.4 0 0 1-3.5 0l-.3-.3L3.7 25.3a2.7 2.7 0 0 1 0-3.6l.4
1-.3a2.4 2.4 0 0 1 3.5 0l10.7 10.7L40.4 10a2.4 2.4 0 0 1 3.5 0l.4.3a2.6 2.6 0 0 1 0 3.5z"}))}},2659:function(e,t,n){var r=n(7294);t.Z=function(){return r.createElement("svg",{focusable:"false",className:"icon icon--warning",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48.3 45.4"},r.createElement("title",null,"Warning Icon"),r.createElement("desc",null,"Icon set Warning"),r.createElement("path",{d:"M47.7 37.7l-20-34.6c-1.1-2-3.6-2.7-5.6-1.6-.7.4-1.2.9-1.6 1.6L.5 37.7c-1.1 2-.5 4.5 1.5 5.6.6.4 1.3.5 2.1.5h40c2.3 0 4.1-1.8 4.1-4.1.1-.6-.1-1.4-.5-2zM22.4 11.9c1-.9 2.5-.9 3.4 0 .5.5.7 1.1.7 1.7l-.4 13.5c0 1.1-1 2-2.1 1.9-1.1 0-2-.9-2-1.9l-.4-13.5c.1-.6.4-1.2.8-1.7zm1.7 26.4c-1.5 0-2.8-1.2-2.8-2.8 0-1.5 1.2-2.8 2.8-2.8h.1c1.5 0 2.7 1.3 2.7 2.8 0 1.5-1.2 2.8-2.8 2.8z"}))}},6419:function(e,t,n){function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{cR:function(){return a},cl:function(){return i},kl:function(){return u},m$:function(){return c}});var a=function(e){return Math.floor(e)===e?0:e.toString().split(".")[1].length||0},l=function(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""},o=function(e){return"unspecified"===e?"":e},i=function(e){var t=arguments.length>3?arguments[3]:void 0,n=function(e,t){return"string"==typeof e||e>0?"".concat(e," bedroom ").concat(o(t)):l(o(t))}(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:""),r=t?"for sale":"to rent";return l("".concat(n," ").concat(r).trim())},u=function(e,t){var n;return function(){for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];return clearTimeout(n),new Promise((function(r,l){n=setTimeout((function(){e.apply(void 0,a).then(r).catch(l)}),t)}))}},c=function(){var e=window.location.hash.substring(1),t={};return e.split("&").forEach((function(e){var n,a,l=(n=e.split("="),a=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,l,o,i=[],u=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=l.call(n)).done)&&(i.push(r.value),i.length!==t);u=!0);}catch(e){c=!0,a=e}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return i}}(n,a)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(n,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=l[0],i=l[1];if(o&&i){var u=o.startsWith("/")?o.substring(1):o;t[u]=decodeURIComponent(i)}})),t}},6351:function(e,t,n){n.d(t,{Uu:function(){return o},YR:function(){return u},fC:function(){return s},j$:function(){return c},y8:function(){return i}});var r=n(6419);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l=function(e){return!!/^[A-Za-zÀ-ÖØ-öø-ÿ- ]+$/.test(e)},o=function(e,t){if(!("house_name"!==e.dataset.key||e.value&&e.value.replace(/\s/g,"").length))return!1;if("first_name"===e.dataset.key&&!l(e.value))return!0;if("last_name"===e.dataset.key&&!l(e.value))return!0;if("email"===e.dataset.key&&(n=e.value,!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(n).toLowerCase())))return!0;var n,a;if(("tel_home"===e.dataset.key||"tel_mobile"===e.dataset.key)&&e.value.length<6)return!0;if("select"===e.dataset.key&&"default"===e.value)return!0;if(!e.value||!e.value.replace(/\s/g,"").length)return!0;if("postcode"===e.dataset.key&&(a=e.value,!/^([A-Za-z][A-Ha-hJ-Yj-y]?[0-9][A-Za-z0-9]? ?[0-9][A-Za-z]{2}|[Gg][Ii][Rr] ?0[Aa]{2})$/.test(a)))return!0;if(t){var o=t.minLength,i=t.maxLength,u=t.min,c=t.max,s=t.decimals;if(o&&e.value.replace(/\s/g,",").length<o)return!0;
1if(i&&e.value.replace(/\s/g,",").length>i)return!0;if(u&&e.value<u)return!0;if(c&&e.value>c)return!0;if(s&&(0,r.cR)(parseFloat(e.value))>s)return!0}return!1},i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object.entries(e).some((function(n){var r,l,o=(r=n,l=1,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,l,o,i=[],u=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=l.call(n)).done)&&(i.push(r.value),i.length!==t);u=!0);}catch(e){c=!0,a=e}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return i}}(r,l)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(r,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];if(null!=t&&t.includes(o)){if(e[o].error)return!0}else if(e[o].error||!e[o].value)return!0;return!1}))},u=function(e,t){var n=e.target.value?e.target.value.replace(/[A-Za-zÀ-ÖØ-öø-ÿ- ]+/gi,""):"";if(e.target.value!==n&&(e.target.value=n),"function"==typeof t)return t(n)},c=function(){document.querySelectorAll(".js-disable-button").forEach((function(e){e.disabled=!0}))},s=function(){document.querySelectorAll(".js-disable-button").forEach((function(e){e.disabled=!1}))}}}]);

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.