https://www.wewantyourmotorbike.com/_next/static/chunks/pages/flow…/confirm-bike-5c1f98ec69f1241e.js
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8625],{18871:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/flow/value-your-bike/confirm-bike",function(){return t(62815)}])},72556:function(e,i){"use strict";i.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}},332:function(e,i,t){"use strict";t.d(i,{Z:function(){return x}});var s={};t.r(s),t.d(s,{getBikeSales:function(){return f},getBikeSalesFailure:function(){return b},getBikeSalesInitialize:function(){return m},getBikeSalesSuccess:function(){return h}});var r=t(51438),n=t(52951),o=t(88029),a=t(60460),l=t(85893),u=t(67294),c=t(15467),p=t(21597),d=t(49862),k=t(54486);function m(){return{type:k.GET_BIKE_SALES_REQUEST,isSending:!0,hasPosted:!1}}function h(e){return{type:k.GET_BIKE_SALES_SUCCESS,isSending:!1,hasPosted:!0,salesInfo:e}}function b(e){return{type:k.GET_BIKE_SALES_FAILURE,isSending:!1,hasPosted:!1,message:e}}function f(e){return function(i){return i(m()),d.Z.getBikeSales(e).then((function(e){i(h(e))})).catch((function(e){i(b(e))}))}}var g=t(45697),_=t.n(g),v=function(e){(0,o.Z)(t,e);var i=(0,a.Z)(t);function t(e){var s;return(0,r.Z)(this,t),(s=i.call(this,e)).state={},s}return(0,n.Z)(t,[{key:"componentDidMount",value:function(){null!==this.props.bike_brand&&this.props.bikeSalesActions.getBikeSales(this.props.bike_brand)}},{key:"render",value:function(){return(0,l.jsxs)("aside",{className:"bike-form-sidebar",children:[(0,l.jsx)("div",{className:"bike-form-sidebar__logo mb-m",dangerouslySetInnerHTML:{__html:this.props.salesInfo.logo}}),(0,l.jsxs)("h2",{className:"bike-form-sidebar__heading ta-center",children:["We've bought",(0,l.jsx)("br",{}),(0,l.jsx)("span",{className:"bike-form-sidebar__figure",children:this.props.salesInfo.bought_count}),(0,l.jsx)("br",{}),this.props.salesInfo.brand," bikes",(0,l.jsx)("br",{})," like yours"]})]})}}]),t}(u.Component);v.defaultProps={salesInfo:{brand:"",logo:"",bought_count:0}},v.propTypes={isLoading:_().bool,bikeSalesActions:_().object.isRequired,salesInfo:_().object,bike_brand:_().string};var x=(0,c.$j)((function(e,i){return{isLoading:!!e.bikeSalesReducer.isLoading&&e.bikeSalesReducer.isLoading,salesInfo:e.bikeSalesReducer.salesInfo?e.bikeSalesReducer.salesInfo:{}}}),(function(e){return{bikeSalesActions:(0,p.DE)(s,e)}}))(v)},86694:function(e,i,t){"use strict";var s=t(85893);t(67294);i.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")]})})})})}},47895:function(e,i,t){"use strict";t.d(i,{r:function(){return s}});var s=function(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(location.search);return null===i?"":decodeURIComponent(i[1].replace(/\+/g," "))}},62815:function(e,i,t){"use strict";t.r(i);var s=t(4111),r=t(51438),n=t(52951),o=t(88029),a=t(60460),l=t(85893),u=t(9008),c=t.n(u),p=t(67294),d=t(14489),k=t(88101),m=t(24886),h=t(86694),b=t(332),f=t(15467),g=t(21597),_=t(72211),v=t(97748),x=t(45697),L=t.n(x),j=t(47895),B=t(72556),y=t(96215),S=function(e){(0,o.Z)(t,e);var i=(0,a.Z)(t);function t(e){var n;return(0,r.Z)(this,t),(n=i.call(this,e)).redirect=n.redirect.bind((0,s.Z)(n)),n.changeValue=n.changeValue.bind((0,s.Z)(n)),n.showTooltip=n.showTooltip.bind((0,s.Z)(n)),n.state={vrm:"",error:!1,isSubmittingForm:!1,bikeForm:B.Z},n}
1return(0,n.Z)(t,[{key:"componentDidMount",value:function(){var e=(0,j.r)("vrm"),i=(0,j.r)("mileage"),t=this.state.bikeForm;i&&""!==i&&(t.bike.mileage=i),this.setState({vrm:e,bikeForm:t}),this.getBikeDetails(e)}},{key:"getBikeDetails",value:function(e){this.props.bikeLookupActions.getBikeDetails(e)}},{key:"redirect",value:function(e){e.preventDefault(),this.setState({isSubmittingForm:!0});var i=this.state.bikeForm;if(""!==i.bike.mileage){this.setState({isSubmittingForm:!1}),i.hasEnteredReg=!0,i.bike.isBikeWeWant=this.props.bikeLookup.isBikeWeWant,i.bike.mileageLimit=this.props.bikeLookup.mileageLimit,i.bike.minAge=this.props.bikeLookup.minAge,i.bike.variantGrade=this.props.bikeDetails.variantGrade,i.bike.variantVin=this.props.bikeDetails.variantVin,i.bike.variantAdvancedMatching=this.props.bikeDetails.variantAdvancedMatching,i.bike.variantMileageLimitGreen=this.props.bikeDetails.variantMileageLimitGreen,i.bike.variantMileageLimitAmber=this.props.bikeDetails.variantMileageLimitAmber,i.bike.variantMileageLimitRed=this.props.bikeDetails.variantMileageLimitRed,i.bike.variantMinYearGreen=this.props.bikeDetails.variantMinYearGreen,i.bike.variantMinYearAmber=this.props.bikeDetails.variantMinYearAmber,i.bike.variantMinYearRed=this.props.bikeDetails.variantMinYearRed,i.bike.grade=this.props.bikeDetails.grade,i.bike.advancedMatching=this.props.bikeDetails.advancedMatching,i.bike.modelMileageLimitGreen=this.props.bikeDetails.modelMileageLimitGreen,i.bike.modelMileageLimitAmber=this.props.bikeDetails.modelMileageLimitAmber,i.bike.modelMileageLimitRed=this.props.bikeDetails.modelMileageLimitRed,i.bike.modelMinYearGreen=this.props.bikeDetails.modelMinYearGreen,i.bike.modelMinYearAmber=this.props.bikeDetails.modelMinYearAmber,i.bike.modelMinYearRed=this.props.bikeDetails.modelMinYearRed;var t=this.props.bikeLookup&&this.props.bikeLookup.experian?this.props.bikeLookup.experian:null;t?(i.bike.experian_name=this.props.bikeDetails.experianName,i.bike.brand=t.make,i.bike.model=t.model,i.bike.brand_id=this.props.bikeDetails.makeId,i.bike.model_id=this.props.bikeDetails.modelId,i.bike.has_abs=this.props.bikeDetails.hasAbs,i.bike.variant_id=this.props.bikeDetails.variantId,i.bike.vrm=t.vrm.trim(),i.bike.year=t.yearOfManufacture,i.bike.engine_size=t.engineCapacity,i.bike.colour=t.colour,i.bike.chassis_number=t.vinSerialNumber,sessionStorage.setItem("WWYMSession",JSON.stringify(this.state.bikeForm)),"UNKNOWN"!==t.model&&t.yearOfManufacture&&""!==t.yearOfManufacture?y.Router.pushRoute("Step2Flow",{vrm:this.state.bikeForm.bike.vrm}).then((function(){return window.scrollTo(0,0)})):y.Router.pushRoute("Step1Flow",{vrm:this.state.bikeForm.bike.vrm}).then((function(){return window.scrollTo(0,0)}))):y.Router.pushRoute("Step2Flow",{vrm:this.state.bikeForm.bike.vrm}).then((function(){return window.scrollTo(0,0)}))}}},{key:"changeValue",value:function(e){e.preventDefault();var i=e.target.name,t=this.state.bikeForm;t.bike[i]=e.target.value,this.setState({bikeForm:t,hasError:!1})}},{key:"showTooltip",value:function(e){if(null!==e){for(var i=document.getElementsByClassName("form__tooltip"),t=0;t<i.length;t++)i[t].classList.add("hide");var s=document.getElementById(e);s.classList.contains("hide")&&s.classList.remove("hide")}}},{key:"render",value:function(){var e=(0,l.jsx)("div",{className:"bike-form-layout__primary",children:(0,l.jsx)("p",{children:"Loading details..."})});if(this.props.isLoadingBike&&""===this.props.canFindBike){if(this.props.shouldRedirect){var i=this.state.vrm?this.state.vrm:"";setTimeout((function(){y.Router.pushRoute("Step1Flow",{error:"vrm-not-found",vrm:i}).then((function(){return window.scrollTo(0,0)}))}),2e3)}}else this.props.isLoadingBike&&this.props.bikeLookup&&this.props.bikeLookup.experian&&this.props.bikeLookup.experian.vrm&&(e=(0,l.jsxs)("div",{className:"bike-form-layout",children:[(0,l.jsxs)("div",{className:"bike-form-layout__primary",children:[(0,l.jsx)("table",{border:"0",cellPadding:"0",cellSpacing:"0",className:"table mtb-m",children:(0,l.jsxs)("tbody",{children:[(0,l.jsxs)("tr",{children:[(0,l.jsxs)("td",{children:["Registration ",this.props.hasPosted,":"]}),(0,l.jsx)("td",{children:this.props.bikeLookup&&this.props.bikeLookup.experian?this.props.bikeLookup.experian.vrm:""})]}),(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:"Make of Bike:"}),(0,l.jsx)("td",{children:this.props.bikeLookup&&this.props.bikeLookup.experian?this.props.bikeLookup.experian.make:""})]}),(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:"Model:"}),(0,l.jsx)("td",{children:this.props.bikeLookup&&this.props.bikeLookup.experian?this.props.bikeLookup.experian.model:""})]}),(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:"Engine Size:"}),(0,l.jsx)("td",{children:this.props.bikeLookup&&this.props.bikeLookup.experian?this.props.bikeLookup.experian.engineCapacity:""})]}),(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:"Year:"}),(0,l.jsx)("td",{children:this.props.bikeLookup&&this.props.bikeLookup.experian?this.props.bikeLookup.experian.yearOfManufacture:""})]}),(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:"Colour:"}),(0,l.jsx)("td",{children:this.props.bikeLookup&&this.props.bikeLookup.experian?this.props.bikeLookup.experian.colour:""})]}),(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:"Mileage?"}),(0,l.jsxs)("td",{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:"",className:"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.jsxs)("div",{className:"cta-group",children:[(0,l.jsx)("a",{id:"noBike",className:"cta cta--primary cta--ghost",href:"/value-your-bike/step1",children:"Not your bike?"}
1),(0,l.jsx)("a",{href:"#",id:"confirmBike",onClick:this.redirect,className:"cta cta--primary cta--alien-armpit ff-secondary fw-semi-bold ttu fs-xl",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",children:"01625 353 014"})]})]}),(0,l.jsx)("div",{className:"bike-form-layout__secondary",children:(0,l.jsx)(b.Z,{bike_brand:this.props.bikeLookup&&this.props.bikeLookup.experian?this.props.bikeLookup.experian.make:null})})]}));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)(h.Z,{step:1}),(0,l.jsxs)("section",{className:"section-wrap section-wrap--smaller inner-wrap-for-small-screens ptb-l",children:[(0,l.jsx)("h2",{className:"ff-secondary fs-x
1xl",children:"Is this your motorbike?"}),e,(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",children:"01625 353 014"})]})]}),(0,l.jsx)(m.Z,{}),(0,l.jsx)(k.Z,{})]})}}],[{key:"getInitialProps",value:function(e){e.ctx;return{vrm:e.query.vrm}}}]),t}(p.Component);S.defaultProps={bikeDetails:{vrm:"",brand:""},bikeLookup:{vrm:"",make:""},hasPosted:!1,vrm:"",bikeForm:{},isLoadingBike:!0,canFindBike:"",shouldRedirect:!1},S.propTypes={isLoadingBike:L().bool,shouldRedirect:L().bool,canFindBike:L().string,bikeLookupActions:L().object.isRequired,bikeFormActions:L().object.isRequired,bikeDetails:L().object,bikeLookup:L().object,vrm:L().string},i.default=(0,f.$j)((function(e,i){return{isLoadingBike:!e.bikeLookupReducer.isLoadingBike||e.bikeLookupReducer.isLoadingBike,shouldRedirect:!!e.bikeLookupReducer.shouldRedirect&&e.bikeLookupReducer.shouldRedirect,bikeLookup:e.bikeLookupReducer.bikeDetails?e.bikeLookupReducer.bikeDetails:{},bikeDetails:e.bikeLookupReducer.bikeDetails?e.bikeLookupReducer.bikeDetails:{},canFindBike:e.bikeLookupReducer.bikeDetails&&e.bikeLookupReducer.bikeDetails.experian?e.bikeLookupReducer.bikeDetails.experian.vrm:""}}),(function(e){return{bikeLookupActions:(0,g.DE)(_,e),bikeFormActions:(0,g.DE)(v,e)}}))(S)},72211:function(e,i,t){"use strict";t.r(i),t.d(i,{getBikeBrandFailure:function(){return a},getBikeBrands:function(){return l},getBikeBrandsInitialize:function(){return n},getBikeBrandsSuccess:function(){return o},getBikeDetails:function(){return b},getBikeDetailsFailure:function(){return h},getBikeDetailsInitialize:function(){return k},getBikeDetailsSuccess:function(){return m},getBikeModels:function(){return d},getBikeModelsFailure:function(){return p},getBikeModelsInitialize:function(){return u},getBikeModelsSuccess:function(){return c}});var s=t(49862),r=t(54486);function n(){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 a(e){return{type:r.GET_BIKE_BRANDS_FAILURE,isSending:!1,hasLoaded:!0,message:e}}function l(){return function(e){return e(n()),s.Z.getBikeBrands().then((function(i){e(o(i))})).catch((function(i){e(a(i.response.data))}))}}function u(){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 p(e){return{type:r.GET_BIKE_MODEL_FAILURE,isSending:!1,hasLoaded:!0,message:e}}function d(e){return function(i){return i(u()),s.Z.getBikeModels(e).then((function(e){i(c(e))})).catch((function(e){i(p(e.response.data))}))}}function k(){return{type:r.GET_BIKE_REQUEST,isSending:!0,isLoadingBike:!0,hasPosted:!1,shouldRedirect:!1,bikeDetails:{}}}function m(e,i){return{type:r.GET_BIKE_SUCCESS,isSending:!1,isLoadingBike:!1,hasPosted:!0,shouldRedirect:i,bikeDetails:e}}function h(e,i){return{type:r.GET_BIKE_FAILURE,isSending:!1,isLoadingBike:!1,hasPosted:!1,shouldRedirect:i,message:e,bikeDetails:{}}}function b(e,i){return function(i){return i(k()),s.Z.getBikeDetails(e).then((function(e){i(m(e,!1))})).catch((function(e){i(h(e,!0))}))}}}},function(e){e.O(0,[7018,1876,6154,4737,4900,9774,2888,179],(function(){return i=18871,e(e.s=i);var i}));var i=e.O();_N_E=i}]);
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.