1"use strict";(self.webpackChunktheme_boilerplate=self.webpackChunktheme_boilerplate||[]).push([[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 c(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=[],c=!0,u=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=l.call(n)).done)&&(i.push(r.value),i.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(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)?u(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 u(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=c((0,r.useState)(),2),a=n[0],u=n[1],s=c((0,r.useState)(!1),2),m=s[0],f=s[1],d=c((0,r.useState)("sales"),2),h=d[0],_=d[1],p=c((0,r.useState)({houseNumber:"",thoroughfare:"",town:"",county:"",postcode:"",bedrooms:""}),2),v=p[0],b=p[1];return(0,r.useEffect)((function(){a?setTimeout((function(){return f(!0)}),100):f(!1)}),[a]),a?r.createElement("div",{className:l()("valuation-wrapper",{visible:m})},r.createElement(o.Z,{mode:a,setMode:u,initialChannel:h,initialAddress:v,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"===h,onChange:function(e){return _(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 _(e.target.value)},checked:"lettings"===h}),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:b,inputPlaceholder:"Enter your postcode",initialLocationQuery:null==v||null===(e=v.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 u("expert")}},"Expert valuation"),!t&&r.createElement("button",{type:"button",className:"button switch-button",onClick:function(){return u("instant")}},"Instant valuation")))}}}]);
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.