1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1274],{68140:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/value-your-bike/step1",function(){return i(42896)}])},72556:function(e,t){"use strict";t.Z={leadId:0,isDuplicate:!1,leadColour:"",bike:{reason_for_selling:"",reason_for_selling_other:"",isBikeWeWant:!0,mileageLimit:0,ageLimit:0,has_abs:!1,vrm:"",brand:"",brand_id:"",model:"",model_id:"",variant:"",variant_id:"",engine_size:"",experian_name:"",mileage:"",bike_condition:"",previous_owners:"0",service_history:"Full history",non_runner:"no",has_panniers:"",insurance_write_off:"no",race_replica:"no",year:"",colour:"",mot:"Over 1 month",chassis_number:"",customer_valuation:0},customer:{name:"",email:"",phone:"",marketing_consent:!1,division:"WWYM",exclusive_offer:"yes"},marketing:{campaign:"",keyword:"",source:"",medium:"",affiliate_id:0,gclid:"",fbclid:"",version:""},hasEnteredReg:!1}},86694:function(e,t,i){"use strict";var s=i(85893);i(67294);t.Z=function(e){return(0,s.jsx)("div",{className:"bgc-dark-gunmetal",id:"step-counter",children:(0,s.jsx)("div",{className:"ptb-m",children:(0,s.jsx)("div",{className:"section-wrap section-wrap--very-narrow inner-wrap-for-small-screens",children:(0,s.jsxs)("ol",{className:"form-step-counter",children:[(0,s.jsx)("li",{className:1===e.step?"form-step-counter__item is-active":2===e.step||3===e.step||4===e.step?"form-step-counter__item is-complete":"form-step-counter__item",children:(0,s.jsx)("h3",{className:"form-step-counter__heading",children:"Your bike"})},"1"),(0,s.jsx)("li",{className:2===e.step?"form-step-counter__item is-active":3===e.step||4===e.step?"form-step-counter__item is-complete":"form-step-counter__item",children:(0,s.jsx)("h3",{className:"form-step-counter__heading",children:"Your details"})},"2"),(0,s.jsx)("li",{className:3===e.step?"form-step-counter__item is-active":4===e.step?"form-step-counter__item is-complete":"form-step-counter__item",children:(0,s.jsx)("h3",{className:"form-step-counter__heading",children:"Bike condition"})},"3"),(0,s.jsx)("li",{className:4===e.step?"form-step-counter__item is-active":5===e.step?"form-step-counter__item is-complete":"form-step-counter__item",children:(0,s.jsx)("h3",{className:"form-step-counter__heading",children:"Finish"})},"4")]})})})})}},42663:function(e,t,i){"use strict";var s=i(51438),r=i(52951),a=i(88029),o=i(60460),n=i(85893),l=i(67294),m=i(45697),c=i.n(m),d=function(e){(0,a.Z)(i,e);var t=(0,o.Z)(i);function i(){return(0,s.Z)(this,i),t.apply(this,arguments)}return(0,r.Z)(i,[{key:"render",value:function(){return this.props.showError?(0,n.jsx)("span",{className:"form__tooltip-icon",children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"#cc0000",className:"bi bi-exclamation-circle-fill",viewBox:"0 0 16 16",children:(0,n.jsx)("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"})})}):this.props.showIcon?(0,n.jsx)("span",{className:"form__tooltip-icon",children:(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"3 3 16 16",children:[(0,n.jsxs)("defs",{children:[(0,n.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",y2:"-2.623",x2:"0",y1:"986.67",id:"0",children:[(0,n.jsx)("stop",{stopColor:"#ffce3b"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#ffd762"})]}),(0,n.jsxs)("linearGradient",{y2:"-2.623",x2:"0",y1:"986.67",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#ffce3b"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#fef4ab"})]})]}),(0,n.jsxs)("g",{transform:"matrix(1.99997 0 0 1.99997-10.994-2071.68)",fill:"#da4453",children:[(0,n.jsx)("rect",{y:"1037.36",x:"7",height:"8",width:"8",fill:"#32c671",rx:"4"}),(0,n.jsx)("path",{d:"m123.86 12.966l-11.08-11.08c-1.52-1.521-3.368-2.281-5.54-2.281-2.173 0-4.02.76-5.541 2.281l-53.45 53.53-23.953-24.04c-1.521-1.521-3.368-2.281-5.54-2.281-2.173 0-4.02.76-5.541 2.281l-11.08 11.08c-1.521 1.521-2.281 3.368-2.281 5.541 0 2.172.76 4.02 2.281 5.54l29.493 29.493 11.08 11.08c1.52 1.521 3.367 2.281 5.54 2.281 2.172 0 4.02-.761 5.54-2.281l11.08-11.08 58.986-58.986c1.52-1.521 2.281-3.368 2.281-5.541.0001-2.172-.761-4.02-2.281-5.54",fill:"#fff",transform:"matrix(.0436 0 0 .0436 8.177 1039.72)",stroke:"none",strokeWidth:"9.512"})]})]})}):(0,n.jsx)("span",{className:"form__tooltip-icon",children:(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"3 3 16 16",children:[(0,n.jsxs)("defs",{children:[(0,n.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",y2:"-2.623",x2:"0",y1:"986.67",id:"0",children:[(0,n.jsx)("stop",{stopColor:"#cccccc"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#cccccc"})]}),(0,n.jsxs)("linearGradient",{y2:"-2.623",x2:"0",y1:"986.67",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#cccccc"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#cccccc"})]})]}),(0,n.jsxs)("g",{transform:"matrix(1.99997 0 0 1.99997-10.994-2071.68)",fill:"#cccccc",children:[(0,n.jsx)("rect",{y:"1037.36",x:"7",height:"8",width:"8",fill:"#cccccc",rx:"4"}),(0,n.jsx)("path",{d:"m123.86 12.966l-11.08-11.08c-1.52-1.521-3.368-2.281-5.54-2.281-2.173 0-4.02.76-5.541 2.281l-53.45 53.53-23.953-24.04c-1.521-1.521-3.368-2.281-5.54-2.281-2.173 0-4.02.76-5.541 2.281l-11.08 11.08c-1.521 1.521-2.281 3.368-2.281 5.541 0 2.172.76 4.02 2.281 5.54l29.493 29.493 11.08 11.08c1.52 1.521 3.367 2.281 5.54 2.281 2.172 0 4.02-.761 5.54-2.281l11.08-11.08 58.986-58.986c1.52-1.521 2.281-3.368 2.281-5.541.0001-2.172-.761-4.02-2.281-5.54",fill:"#fff",transform:"matrix(.0436 0 0 .0436 8.177 1039.72)",stroke:"none",strokeWidth:"9.512"})]})]})})}}]),i}(l.Component);
1d.propTypes={id:c().string,showError:c().func.isRequired,showIcon:c().func.isRequired},t.Z=d},17745:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var s=i(85893);function r(){return(0,s.jsx)("div",{className:"trustpilot-container",children:(0,s.jsx)("a",{href:"https://uk.trustpilot.com/review/www.wewantyourmotorbike.com",target:"_blank",children:(0,s.jsx)("img",{className:"trustpilot-img",src:"/img/trustpilot-light.png"})})})}},42896:function(e,t,i){"use strict";i.r(t);var s=i(4111),r=i(51438),a=i(52951),o=i(88029),n=i(60460),l=i(85893),m=i(9008),c=i.n(m),d=i(14489),h=i(88101),u=i(24886),b=i(86694),k=i(17745),p=i(42663),_=i(67294),f=i(21597),g=i(15467),x=i(72211),v=i(97748),j=i(45697),F=i.n(j),N=i(11163),w=i.n(N),y=i(72556),E=function(e){(0,o.Z)(i,e);var t=(0,n.Z)(i);function i(e){var a;return(0,r.Z)(this,i),(a=t.call(this,e)).populateModels=a.populateModels.bind((0,s.Z)(a)),a.changeValue=a.changeValue.bind((0,s.Z)(a)),a.submitForm=a.submitForm.bind((0,s.Z)(a)),a.changeMOT=a.changeMOT.bind((0,s.Z)(a)),a.findBike=a.findBike.bind((0,s.Z)(a)),a.state={vrmNotFound:!1,hideReg:!1,isLoadingBikeMakeList:!0,isLoadingBikeModelList:!1,isSubmittingForm:!1,vrmError:!1,modelError:!1,makeError:!1,hasError:!1,bikeForm:y.Z},a}return(0,a.Z)(i,[{key:"componentDidMount",value:function(){var e=this,t=this.getUrlParameter("hidereg");this.setState({hideReg:"true"===t});var i=this.getUrlParameter("error");this.setState({vrmNotFound:"vrm-not-found"===i});var s=this.getUrlParameter("brand");this.props.bikeLookupActions.getBikeBrands().then((function(){e.setState({isLoadingBikeMakeList:!1})})).catch((function(t){e.setState({isLoadingBikeMakeList:!1})}));var r=sessionStorage.getItem("WWYMSession")?JSON.parse(sessionStorage.getItem("WWYMSession")):this.state.bikeForm;if(r){if(r&&r.bike&&""===r.bike.vrm&&(r.bike.vrm=this.props.vrm),s&&""!==s&&0===r.bike.brand.length){r.bike.brand=s;var a=this.returnBrandId(s);r.bike.brand_id=a}this.setState({bikeForm:r})}r&&r.bike&&""!==r.bike.brand_id&&this.getBikeModels(r.bike.brand_id)}},{key:"returnBrandId",value:function(e){switch(e){case"Honda":return"5bc9b3d80446ac02af51a58e";case"Kawasaki":return"5bc9b3da0446ac02af51a598";case"Ducati":return"5bc9b3d60446ac02af51a584";case"Triumph":return"5bc9b3e60446ac02af51a5d3";case"Yamaha":return"5bc9b3e70446ac02af51a5d8";case"BMW":return"5bc9b3d30446ac02af51a574";case"Harley-Davidson":return"5bc9b3d80446ac02af51a58c";case"Suzuki":return"5bc9b3e40446ac02af51a5cc"}}},{key:"getUrlParameter",value:function(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))}},{key:"findBike",value:function(e){e.preventDefault(),""!==this.state.bikeForm.bike.vrm&&(sessionStorage.setItem("WWYMSession",JSON.stringify(this.state.bikeForm)),w().push("/value-your-bike/confirm-bike?vrm="+this.state.bikeForm.bike.vrm))}},{key:"populateModels",value:function(e){e.preventDefault();var t=this.state.bikeForm;t.bike.brand_id=e.target.value,t.bike.brand=e.target.options[e.target.selectedIndex].text,this.setState({bikeForm:t,isLoadingBikeModelList:!0}),this.getBikeModels(e.target.value)}},{key:"getBikeModels",value:function(e){var t=this;this.props.bikeLookupActions.getBikeModels(e).then((function(){if(t.setState({isLoadingBikeModelList:!1,makeError:!1,modelError:!1}),!t.state.isLoadingBikeModelList){var e=!1;t.props.modelList.reverse().map((function(t,i){var s=t.name;if(t.model_variation&&""!==t.model_variation&&(s=t.name+" "+t.model_variation),!e)if(this.state.bikeForm.bike.model.replace(/\s/g,"").toLowerCase().includes(s.replace(/\s/g,"").toLowerCase())){var r=this.state.bikeForm;parseInt(t.cc)-30<parseInt(r.bike.engine_size)&&parseInt(t.cc)+30>parseInt(r.bike.engine_size)&&(r.bike.model_id=t._id,r.bike.model=t.name,this.setState({bikeForm:r}),e=!0)}else t.alternative_names.map((function(i,s){var r=this.state.bikeForm;i.toLowerCase().includes(this.state.bikeForm.bike.model.toLowerCase())&&(parseInt(t.cc)-30<parseInt(r.bike.engine_size)&&parseInt(t.cc)+30>parseInt(r.bike.engine_size)&&(r.bike.model_id=t._id,r.bike.model=t.name,this.setState({bikeForm:r}),e=!0))}),this)}),t)}})).catch((function(e){t.setState({isLoadingBikeModelList:!1})}
1))}},{key:"changeValue",value:function(e){e.preventDefault();var t=e.target.name,i=this.state.bikeForm;"model"===t?(i.bike.model_id=e.target.value,i.bike.model=e.target.options[e.target.selectedIndex].text):"name"===t||"email"===t||"phone"===t?i.customer[t]=e.target.value:i.bike[t]=e.target.value,this.setState({bikeForm:i,hasError:!1})}},{key:"changeMOT",value:function(e){var t=this.state.bikeForm;t.bike.mot=e.target.getAttribute("data-name"),this.setState({bikeForm:t})}},{key:"submitForm",value:function(e){if(e.preventDefault(),0===this.state.bikeForm.bike.brand_id.length||0===this.state.bikeForm.bike.model_id.length)this.setState({hasError:!0,makeError:0===this.state.bikeForm.bike.brand_id.length,modelError:0===this.state.bikeForm.bike.model_id.length});else{var t=this.state.bikeForm;t.hasEnteredReg=!1,this.setState({isSubmittingForm:!0,bikeForm:t}),0===this.state.bikeForm.bike.year.length||0===this.state.bikeForm.bike.mileage.length||0===this.state.bikeForm.bike.engine_size.length||0===this.state.bikeForm.bike.colour.length?this.setState({hasError:!0}):(sessionStorage.setItem("WWYMSession",JSON.stringify(this.state.bikeForm)),w().push("/value-your-bike/step2"))}}},{key:"render",value:function(){for(var e=[],t=1980;t<(new Date).getFullYear()+1;t++)e.push((0,l.jsx)("option",{value:t,"data-name":t,"data-id":t,selected:!(!this.state.bikeForm||!this.state.bikeForm.bike)&&this.state.bikeForm.bike.year===t.toString(),children:t},t));return(0,l.jsxs)("div",{className:"site-wrap",id:"top",children:[(0,l.jsxs)(c(),{children:[(0,l.jsx)("title",{children:"Get A Free Motorbike Valuation - Bikes Bought Within 24 Hours"}),(0,l.jsx)("meta",{charSet:"utf-8"}),(0,l.jsx)("meta",{name:"viewport",content:"initial-scale=1.0, width=device-width"}),(0,l.jsx)("link",{rel:"canonical",href:"https://www.wewantyourmotorbike.com/value-your-bike/"}),(0,l.jsx)("meta",{property:"og:locale",content:"en_GB"}),(0,l.jsx)("meta",{property:"og:type",content:"article"}),(0,l.jsx)("meta",{property:"og:title",content:"Get A Free Motorbike Valuation - Bikes Bought Within 24 Hours"}),(0,l.jsx)("meta",{property:"og:description",content:"Request your FREE motorbike valuation online today with We Want Your Motorbike and we'll be in touch within an hour with a cash offer. Bikes bought within 24 hours."}),(0,l.jsx)("meta",{property:"og:url",content:"https://www.wewantyourmotorbike.com/value-your-bike/"}),(0,l.jsx)("meta",{property:"og:site_name",content:"We Want Your Motorbike"}),(0,l.jsx)("meta",{property:"article:publisher",content:"https://www.facebook.com/Wewantyourmotorbikeuk"}),(0,l.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,l.jsx)("meta",{name:"twitter:description",content:"Request your FREE motorbike valuation online today with We Want Your Motorbike and we'll be in touch within an hour with a cash offer. Bikes bought within 24 hours."}),(0,l.jsx)("meta",{name:"twitter:title",content:"Get A Free Motorbike Valuation - Bikes Bought Within 24 Hours"}),(0,l.jsx)("meta",{name:"twitter:site",content:"@WeWantYourBike"}),(0,l.jsx)("meta",{name:"twitter:creator",content:"@WeWantYourBike"})]}),(0,l.jsx)(d.Z,{}),(0,l.jsx)(b.Z,{step:1}),(0,l.jsxs)("section",{className:"section-wrap section-wrap--smaller inner-wrap-for-small-screens ptb-l",children:[(0,l.jsx)("h1",{className:"ff-secondary fs-x
1xl mb-m",children:"Get A Free Motorbike Valuation"}),(0,l.jsx)("h2",{className:"ff-secondary fs-xl mb-m",children:"Enter your details to start your valuation"}),(0,l.jsx)("hr",{}),(0,l.jsxs)("div",{className:"bike-form-layout",children:[(0,l.jsxs)("div",{className:"bike-form-layout__primary",children:[(0,l.jsx)("form",{className:"form mtb-m",onSubmit:this.submitForm,children:(0,l.jsxs)("ul",{className:"no-list",children:[this.state.vrmNotFound&&(0,l.jsx)("li",{className:"form__list-item errorItem",style:{display:"block"},children:(0,l.jsx)("p",{className:"form__error",style:{display:"block",textAlign:"left"},children:"We couldn't match your Registration Number against our database. Check that it's valid or carry on completing the form below."})}),!this.state.hideReg&&(0,l.jsxs)("li",{className:"form__list-item",children:[(0,l.jsx)("label",{htmlFor:"variant",className:"form__label",children:"Registration Number"}),(0,l.jsxs)("div",{className:"form__input-wrapper",children:[(0,l.jsxs)("div",{className:"form__input-item",children:[(0,l.jsxs)("div",{className:"form__input",children:[(0,l.jsx)("input",{type:"text",maxLength:"8",id:"vrm",name:"vrm",className:"form__input vrm",placeholder:"",onChange:this.changeValue,value:this.state.bikeForm.bike&&this.state.bikeForm.bike.vrm?this.state.bikeForm.bike.vrm:""}),(0,l.jsx)("a",{href:"#",onClick:this.findBike,className:"vrmBtn form__button cta cta--primary cta--alien-armpit ff-secondary fw-semi-bold ttu fs-xl",children:"Find Bike"})]}),(0,l.jsx)("p",{className:"form__error",children:"Please enter a valid registration number"})]}),(0,l.jsx)(p.Z,{showError:this.state.hasError&&0===this.state.bikeForm.bike.vrm.length,showIcon:!!this.state.bikeForm.bike&&(this.state.bikeForm.bike.vrm.length>3&&this.state.bikeForm.bike.vrm.length<8),id:"vrm-tooltip"})]})]}),(0,l.jsxs)("li",{className:"form__list-item",children:[(0,l.jsx)("label",{htmlFor:"bike",className:"form__label",children:"Make of Bike"}),(0,l.jsxs)("div",{className:"form__input-wrapper",children:[(0,l.jsxs)("div",{className:"form__input-item",children:[(0,l.jsx)("div",{className:this.state.isSubmittingForm&&this.state.bikeForm.bike&&0===this.state.bikeForm.bike.brand_id.length||this.state.makeError?"form__input is-invalid":"form__input",children:(0,l.jsxs)("select",{id:"make",name:"brand",onChange:this.populateModels,defaultValue:this.state.isSubmittingForm&&this.state.bikeForm.bike?this.state.bikeForm.bike.brand_id:"",children:[(0,l.jsx)("option",{value:"",children:"Please Select"},"default"),this.props.brandList.map((function(e,t){return(0,l.jsx)("option",{value:e._id,"data-name":e.name,"data-id":e._id,selected:!(!this.state.bikeForm||!this.state.bikeForm.bike)&&this.state.bikeForm.bike.brand_id===e._id,children:e.name},t)}),this)]})}),(0,l.jsx)("p",{className:"form__error",children:"Please select a valid make"})]}),(0,l.jsx)(p.Z,{showError:this.state.hasError&&0===this.state.bikeForm.bike.brand_id.length,showIcon:!!this.state.bikeForm.bike&&this.state.bikeForm.bike.brand_id.length>0,id:"bikemake-tooltip"})]})]}),(0,l.jsxs)("li",{className:"form__list-item",children:[(0,l.jsx)("label",{htmlFor:"model",className:"form__label",children:"Model"}),(0,l.jsxs)("div",{className:"form__input-wrapper",children:[(0,l.jsxs)("div",{className:"form__input-item",children:[(0,l.jsx)("div",{className:this.state.isSubmittingForm&&0===this.state.bikeForm.bike.model_id.length||this.state.modelError?"form__input is-invalid":"form__input",children:(0,l.jsxs)("select",{id:"model",name:"model",onChange:this.changeValue,disabled:this.state.isLoadingBikeModelList,defaultValue:this.state.isSubmittingForm&&this.state.bikeForm.bike?this.state.bikeForm.bike.model_id:"",children:[this.state.isLoadingBikeModelList?(0,l.jsx)("option",{value:"",children:"Loading Models..."},"default"):(0,l.jsx)("option",{value:"",children:"Please Select"},"default"),this.props.modelList.map((function(e,t){var i=e.name;return e.cc>0&&(i=e.name+" - "+e.cc+"cc",e.model_variation&&""!==e.model_variation&&(i=e.name+" "+e.model_variation+" - "+e.cc+"cc")),(0,l.jsx)("option",{value:e._id,"data-name":e.name,"data-id":e._id,selected:!!this.state.bikeForm&&(""!==this.state.bikeForm.bike.model_id&&this.state.bikeForm.bike.model_id===e._id),children:i},t)}),this)]})}),(0,l.jsx)("p",{className:"form__error",children:"Please enter a valid model"})]}),(0,l.jsx)(p.Z,{showError:this.state.hasError&&0===this.state.bikeForm.bike.model_id.length,showIcon:!!this.state.bikeForm.bike&&this.state.bikeForm.bike.model_id.length>0,id:"bikemodel-tooltip"})]})]}),(0,l.jsxs)("li",{className:"form__list-item",children:[(0,l.jsx)("label",{htmlFor:"variant",className:"form__label",children:"Variant (e.g. Bandit)"}),(0,l.jsxs)("div",{className:"form__input-wrapper",children:[(0,l.jsxs)("div",{className:"form__input-item",children:[(0,l.jsx)("div",{className:"form__input",children:(0,l.jsx)("input",{type:"text",maxLength:"20",id:"variant",name:"variant",className:"form__input",placeholder:"",onChange:this.changeValue,value:this.state.bikeForm&&this.state.bikeForm.bike?this.state.bikeForm.bike.variant:""})}),(0,l.jsx)("p",{className:"form__error",children:"Please enter a valid variant"})]}),(0,l.jsx)(p.Z,{showError:!1,showIcon:!!this.state.bikeForm.bike&&(this.state.bikeForm.bike.variant.length>0&&this.state.bikeForm.bike.variant.length<10),id:"bikevariant-tooltip"})]})]}),(0,l.jsxs)("li",{className:"form__list-item",children:[(0,l.jsx)("label",{htmlFor:"engine-size",className:"form__label",children:"Engine Size (e.g 50, 125, 250, 750, 1000 etc.)"}),(0,l.jsxs)("div",{className:"form__input-wrapper",children:[(0,l.jsxs)("div",{className:"form__input-item",children:[(0,l.jsx)("div",{className:this.state.isSubmittingForm&&0===this.state.bikeForm.bike.engine_size.length?"form__input is-invalid":"form__input",children:(0,l.jsx)("input",{type:"number",maxLength:"5",id:"engine-size",name:"engine_size",className:"form__input",placeholder:"",onChange:this.changeValue,value:this.state.bikeForm&&this.state.bikeForm.bike?this.state.bikeForm.bike.engine_size:""})}),(0,l.jsx)("p",{className:"form__error",children:"Please enter a valid engine size"})]}),(0,l.jsx)(p.Z,{showError:this.state.hasError&&0===this.state.bikeForm.bike.engine_size.length,showIcon:!!this.state.bikeForm.bike&&(this.state.bikeForm.bike.engine_size.length>0&&this.state.bikeForm.bike.engine_size.length<6&&!this.state.bikeForm.bike.engine_size.toLowerCase().includes("cc")),id:"cc-tooltip"})]})]}),(0,l.jsxs)("li",{className:this.state.isSubmittingForm&&this.state.bikeForm.bike&&0===this.state.bikeForm.bike.mileage.length?"form__list-item is-invalid":"form__list-item",children:[(0,l.jsx)("label",{htmlFor:"mileage",className:"form__label",children:"What's the mileage?"}),(0,l.jsxs)("div",{className:"form__input-wrapper",children:[(0,l.jsxs)("div",{className:"form__input-item",children:[(0,l.jsx)("div",{className:this.state.isSubmittingForm&&this.state.bikeForm.bike&&0===this.state.bikeForm.bike.mileage.length?"form__input is-invalid":"form__input",children:(0,l.jsx)("input",{maxLength:"5",type:"number",id:"mileage",name:"mileage",placeholder:"",onChange:this.changeValue,value:this.state.bikeForm&&this.state.bikeForm.bike?this.state.bikeForm.bike.mileage:""})}),this.state.isSubmittingForm&&this.state.bikeForm.bike?Number.isInteger(this.state.bikeForm.bike.mileage)?(0,l.jsx)("p",{className:"form__error",children:"Please enter the bike mileage"}):(0,l.jsx)("p",{className:"form__error",children:"Please enter a number for the bike mileage"}):""]}),(0,l.jsx)(p.Z,{showError:this.state.hasError&&0===this.state.bikeForm.bike.mileage.length,showIcon:!!this.state.bikeForm.bike&&(this.state.bikeForm.bike.mileage.length>0&&this.state.bikeForm.bike.mileage.length<6&&!this.state.bikeForm.bike.mileage.toLowerCase().includes(",")),id:"mileage-tooltip"})]})]}),(0,l.jsxs)("li",{className:"form__list-item",children:[(0,l.jsx)("label",{htmlFor:"year",className:"form__label",children:"Year Manufactured"}),(0,l.jsxs)("div",{className:"form__input-wrapper",children:[(0,l.jsxs)("div",{className:"form__input-item",children:[(0,l.jsx)("div",{className:this.state.isSubmittingForm&&0===this.state.bikeForm.bike.year.length?"form__input is-invalid":"form__input",children:(0,l.jsxs)("select",{id:"year",name:"year",onChange:this.changeValue,defaultValue:this.state.bikeForm&&this.state.bikeForm.bike?this.state.bikeForm.bike.year:"",children:[(0,l.jsx)("option",{value:"",children:"Please Select"},"default"),e]})}),(0,l.jsx)("p",{className:"form__error",children:"Please enter a valid year"})]}),(0,l.jsx)(p.Z,{showError:this.state.hasError&&0===this.state.bikeForm.bike.year.length,showIcon:!!this.state.bikeForm.bike&&(this.state.bikeForm.bike.year.length>0&&this.state.bikeForm.bike.year.length<5),id:"year-tooltip"})]})]}),(0,l.jsxs)("li",{className:"form__list-item",children:[(0,l.jsx)("label",{htmlFor:"colour",className:"form__label",children:"Colour"}),(0,l.jsxs)("div",{className:"form__input-wrapper",children:[(0,l.jsxs)("div",{className:"form__input-item",children:[(0,l.jsx)("div",{className:this.state.isSubmittingForm&&0===this.state.bikeForm.bike.colour.length?"form__input is-invalid":"form__input",children:(0,l.jsx)("input",{type:"text",maxLength:"10",id:"colour",name:"colour",className:"form__input",placeholder:"",onChange:this.changeValue,value:this.state.bikeForm&&this.state.bikeForm.bike?this.state.bikeForm.bike.colour:""})}),(0,l.jsx)("p",{className:"form__error",children:"Please enter a valid colour"})]}),(0,l.jsx)(p.Z,{showError:this.state.hasError&&0===this.state.bikeForm.bike.colour.length,showIcon:!!this.state.bikeForm.bike&&(this.state.bikeForm.bike.colour.length>0&&this.state.bikeForm.bike.colour.length<11),id:"colour-tooltip"})]})]}),(0,l.jsxs)("li",{className:"form__list-item",children:[(0,l.jsx)("span",{className:"form__label",children:"MOT (please select)"}),(0,l.jsx)("div",{className:"form__input-wrapper",children:(0,l.jsxs)("div",{className:"form__input-item form__button-group",children:[(0,l.jsx)("input",{className:"form__select-button-radio",type:"radio",name:"mot",id:"Over-1-month",value:"Over 1 month",checked:!(!this.state.bikeForm||!this.state.bikeForm.bike)&&"Over 1 month"===this.state.bikeForm.bike.mot}),(0,l.jsx)("label",{htmlFor:"Over-1-month",className:"non-standard-label form__select-button",onClick:this.changeMOT,"data-name":"Over 1 month",children:"Over 1 month"}),(0,l.jsx)("input",{className:"form__select-button-radio",type:"radio",name:"mot",id:"Under-1-month",value:"Under 1 month",checked:!(!this.state.bikeForm||!this.state.bikeForm.bike)&&"Under 1 month"===this.state.bikeForm.bike.mot}),(0,l.jsx)("label",{htmlFor:"Under-1-month",className:"non-standard-label form__select-button",onClick:this.changeMOT,"data-name":"Under 1 month",children:"Under 1 month"}),(0,l.jsx)("input",{className:"form__select-button-radio",type:"radio",name:"mot",id:"Not-required",value:"Not required",checked:!(!this.state.bikeForm||!this.state.bikeForm.bike)&&"Not required"===this.state.bikeForm.bike.mot}),(0,l.jsx)("label",{htmlFor:"Not-required",className:"non-standard-label form__select-button",onClick:this.changeMOT,"data-name":"Not required",children:"Not required"}),(0,l.jsx)("input",{className:"form__select-button-radio",type:"radio",name:"mot",id:"Expired",value:"Expired",checked:!(!this.state.bikeForm||!this.state.bikeForm.bike)&&"Expired"===this.state.bikeForm.bike.mot}),(0,l.jsx)("label",{htmlFor:"Expired",className:"non-standard-label form__select-button",onClick:this.changeMOT,"data-name":"Expired",children:"Expired"})]})})]}),(0,l.jsx)("li",{className:this.state.hasError?"form__list-item errorItem":"hide",children:(0,l.jsx)("p",{children:"There has been a problem with the form, please scroll up to see the issue."})}),(0,l.jsx)("li",{className:"form__list-item form__list-item--button",children:(0,l.jsx)("div",{className:"cta-group",children:(0,l.jsx)("button",{id:"ContinueStep1",className:"form__button cta cta--primary cta--alien-armpit ff-secondary fw-semi-bold ttu fs-xl","aria-label":"Continue",children:"Continue"})})})]})}),(0,l.jsxs)("p",{className:"signoff-message signoff-message--desktop-visible fs-l fc-dark-gunmetal pt-m",children:["Need some help. ",(0,l.jsx)("br",{className:"signoff-message__line-break"}),"Call us on ",(0,l.jsx)("a",{href:"tel:01625353014",className:"fc-turquoise fw-semi-bold","aria-label":"01625 353 014",children:"01625 353 014"})]})]}),(0,l.jsx)("div",{className:"bike-form-layout__secondary",children:(0,l.jsxs)("aside",{className:"bike-form-sidebar",children:[(0,l.jsx)("h2",{className:"bike-form-sidebar__heading ta-center",children:"Our customers rate us as Excellent"}),(0,l.jsx)(k.Z,{})]})})]}),(0,l.jsxs)("p",{className:"signoff-message signoff-message--mobile-visible ta-center fs-l fc-dark-gunmetal pt-m",children:["Need some help.",(0,l.jsx)("br",{className:"signoff-message__line-break"}),"Call us on ",(0,l.jsx)("a",{href:"tel:01625353014",className:"fc-turquoise fw-semi-bold","aria-label":"01625 353 014",children:"01625 353 014"})]})]}),(0,l.jsx)(u.Z,{}),(0,l.jsx)(h.Z,{})]})}}],[{key:"getInitialProps",value:function(e){e.ctx;return{vrm:e.query.vrm}}}]),i}(_.Component);E.defaultProps={brandList:[],modelList:[],hasLoadedData:!1,hasLoaded:!1,bikeForm:{},vrm:""},E.propTypes={hasLoadedData:F().bool,hasLoaded:F().bool,bikeLookupActions:F().object.isRequired,bikeFormActions:F().object.isRequired,brandList:F().array,modelList:F().array,bikeForm:F().object,vrm:F().string},t.default=(0,g.$j)((function(e,t){return{hasLoadedData:!!e.bikeLookupReducer.hasLoaded&&e.bikeLookupReducer.hasLoaded,brandList:e.bikeLookupReducer.brands?e.bikeLookupReducer.brands:[],modelList:e.bikeLookupReducer.models?e.bikeLookupReducer.models:[],bikeForm:e.bikeFormReducer.bikeForm?e.bikeFormReducer.bikeForm:{},hasLoaded:!!e.bikeFormReducer.hasLoaded&&e.bikeFormReducer.hasLoaded}}),(function(e){return{bikeLookupActions:(0,f.DE)(x,e),bikeFormActions:(0,f.DE)(v,e)}}))(E)},72211:function(e,t,i){"use strict";i.r(t),i.d(t,{getBikeBrandFailure:function(){return n},getBikeBrands:function(){return l},getBikeBrandsInitialize:function(){return a},getBikeBrandsSuccess:function(){return o},getBikeDetails:function(){return p},getBikeDetailsFailure:function(){return k},getBikeDetailsInitialize:function(){return u},getBikeDetailsSuccess:function(){return b},getBikeModels:function(){return h},getBikeModelsFailure:function(){return d},getBikeModelsInitialize:function(){return m},getBikeModelsSuccess:function(){return c}});var s=i(49862),r=i(54486);function a(){return{type:r.GET_BIKE_BRANDS_REQUEST,isSending:!0,hasLoaded:!1}}function o(e){return{type:r.GET_BIKE_BRANDS_SUCCESS,isSending:!1,hasLoaded:!0,brands:e}}function n(e){return{type:r.GET_BIKE_BRANDS_FAILURE,isSending:!1,hasLoaded:!0,message:e}}function l(){return function(e){return e(a()),s.Z.getBikeBrands().then((function(t){e(o(t))})).catch((function(t){e(n(t.response.data))}))}}function m(){return{type:r.GET_BIKE_MODEL_REQUEST,isSending:!0,hasLoaded:!1}}function c(e){return{type:r.GET_BIKE_MODEL_SUCCESS,isSending:!1,hasLoaded:!0,models:e}}function d(e){return{type:r.GET_BIKE_MODEL_FAILURE,isSending:!1,hasLoaded:!0,message:e}}function h(e){return function(t){return t(m()),s.Z.getBikeModels(e).then((function(e){t(c(e))})).catch((function(e){t(d(e.response.data))}))}}function u(){return{type:r.GET_BIKE_REQUEST,isSending:!0,isLoadingBike:!0,hasPosted:!1,shouldRedirect:!1,bikeDetails:{}}}function b(e,t){return{type:r.GET_BIKE_SUCCESS,isSending:!1,isLoadingBike:!1,hasPosted:!0,shouldRedirect:t,bikeDetails:e}}function k(e,t){return{type:r.GET_BIKE_FAILURE,isSending:!1,isLoadingBike:!1,hasPosted:!1,shouldRedirect:t,message:e,bikeDetails:{}}}function p(e,t){return function(t){return t(u()),s.Z.getBikeDetails(e).then((function(e){t(b(e,!1))})).catch((function(e){t(k(e,!0))}))}}}},function(e){e.O(0,[7018,1876,6154,4737,4900,9774,2888,179],(function(){return t=68140,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.