(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6372,187,5315],{98498:function(e,t,a){"use strict";a.d(t,{Z:function(){return C}});var l=a(85893),n=a(46957),i=a(27763),r=a(85021),o=a(56833),s=a(50187),d=a(27036),c=a(434),u=a(41132),m=a(91871),h=a.n(m),p=e=>{var t;let{title:a="Enquire now for your vehicle price",titleClassName:n="",subtitle:m="",eventId:p=40,optionalFields:v=[],scrollTop:f="0",regoInput:x=!0,additionalFields:y=[],car:g,dark:b=!1}=e,j=[{name:"Make",type:"make"},{name:"Model",type:"string"},{name:"Year",type:"year"}];return x&&j.push({name:"Number Plate",type:"string"}),j.push({name:"Vehicle Kilometers",type:"string"},...v,...y),(null===(t=i.Z.forms)||void 0===t?void 0:t.locationField)&&j.push({label:"Dealership Location",placeholder:"Please select a dealership location",defaultValue:"",name:"location",locationType:"sales",type:"websiteLocationSelect"}),(0,l.jsxs)("div",{className:"col-lg-12 col-xl-12 order-2 order-lg-1 m-auto",children:[(0,l.jsx)("div",{style:{position:"absolute",top:"".concat(f,"px")}}),(0,l.jsxs)("div",{className:"rounded p-4 ".concat(b?"bg-dark":"bg-white"),children:[(0,l.jsx)("h4",{className:"text-center py-3 ".concat((0,u.cn)(b?"text-white":"",n||"")),children:a}),(0,l.jsx)("h5",{className:"text-center py-3 ".concat(b?"text-white":""),children:m}),(0,l.jsxs)(r.Z,{eventId:p,defaultValues:g?{car_id:g.id}:{},children:[(0,l.jsxs)("div",{className:h().NameCtn,children:[(0,l.jsx)(o.StringInput,{name:"name",label:"First Name",placeholder:"First Name",required:!0}),(0,l.jsx)(o.StringInput,{name:"Last Name",label:"Last Name",placeholder:"Last Name",required:!0})]}),(0,l.jsxs)("div",{className:h().EmailPhone,children:[(0,l.jsx)(o.EmailInput,{name:"email",placeholder:"Email",label:"Email"}),(0,l.jsx)(o.PhoneInput,{name:"phone",placeholder:"Phone",label:"Phone"})]}),(0,l.jsx)(c.Co,{formInputs:j}),(0,l.jsx)(s.default,{options:[],name:"Expected Trade In Price"}),(0,l.jsx)(d.Z,{name:"Additional Comments",required:!1,rows:5}),(0,l.jsx)(r.c,{})]})]})]})},v=a(75759),f=a(29593),x=a(60262),y=a(73517),g=a(6666),b=a(70327),j=a(61578),w=a(45330),_=a(94605),N=a(44268),S=a(45399);let k=(e,t,a,l)=>{var n;let r=_.EY6||_.pA9?[{name:"corefields",type:"CUSTOM",component:S.MR}]:(0,N.i)({}),o=[{name:"Make",type:"make"},{name:"Model",type:"string"},{name:"Year",type:"year"}];return e&&o.push({name:"Rego",type:"string"}),o.push({name:"Kms",type:"string"},...t,{name:"Comments",type:"textarea",required:!1},...a),(null===(n=i.Z.forms)||void 0===n?void 0:n.locationField)&&o.push({label:"Dealership Location",placeholder:"Please select a dealership location",defaultValue:"",name:"location",locationType:"sales",type:"websiteLocationSelect"}),l&&o.push({name:"privacy",type:"CUSTOM",component:()=>l}),{"Step One":{fields:r,heading:"Your Details",description:""},"Step Two":{fields:o,heading:"Your Vehicle",description:""}}};var C=e=>{let{title:t=_.aOo?"Tell Us About Your Car":"Enquire now for your vehicle price",eventId:a=40,page_id:i,optionalFields:r=[],bg:o="bg-light",dark:s=!1,formDisclaimer:d,regoInput:c=!1,additionalFields:m=[],car:h}=e,N=(0,f.i)(),S=k(c,r,m,_.yH_?(0,l.jsx)(w.$,{}):d),{steps:C,stepKeys:Z}=(0,x.G)(S),V=(0,x.w)(C),{isLastStep:P,nextStep:E,stepIndex:D,setCurrentError:F}=V,I=n.Z[a].eventCategory,M=async e=>{if(P){let t=await (0,g.c)({userData:e,isLastStep:!0,isMultiStep:!0,router:N,customEvent:{eventId:a}});t.error&&F(t.error)}else(0,j.u2)({userData:e}),E()};return(0,l.jsx)(v.Y,{bg:o,children:_.SL0?(0,l.jsx)(p,{}):(0,l.jsx)("div",{className:"col-lg-10 col-xl-8 order-2 order-lg-1 m-auto",children:(0,l.jsx)(b.l0,{onSubmit:M,defaultValues:{category:I,car_id:h?h.id:null,page_id:null!=i?i:null},className:"w-100",children:(0,l.jsx)(b.hU,{progress:V.progress,stepProgress:{current:D+1,total:Z.length},className:(0,u.cn)(s?"bg-dark text-white border":"bg-white"),children:Z.map((e,a)=>a!==D?null:(0,l.jsx)(y.p,{currentFields:S[e].fields,heading:t,description:S[e].description,index:a,multiStep:V},e))})})})})}},28415:function(e,t,a){"use strict";a.d(t,{i:function(){return Z}});var l=a(85893),n=a(67294),i=a(46957),r=a(37496),o=a(48583),s=a(5323),d=a(56804),c=a(17434),u=a(27763),m=a(29593),h=a(60262),p=a(30377),v=a(73517),f=a(70327),x=a(69931),y=a(61578),g=a(79936),b=a(41132),j=a(94605),w=a(59909),_=a(98677),N=a(61042),S=a.n(N);let k=j.el2?"Oh no! We can't give an on-screen offer on this car \uD83D\uDE1F. Please get in touch with our friendly team at one of the locations below \uD83D\uDE0A.":"Sorry, we cannot value this vehicle online. Please contact us directly.",C="sell-my-car-instant-offer"===r.default.slug||j.Zkx||j.baD,Z=e=>{var t,a;let{page_id:N,customTermsMessage:Z=!1,removeWidth:V=!1,car:P,setSwitchToTradeIn:E,submitCallback:D=()=>{}}=e,F=(0,m.i)(),I=(0,n.useRef)(null),{stepKeys:M,steps:T}=(0,h.G)(w.y,C?["Vehicle Details"]:["Rego Lookup","User Details"]),O=(0,h.w)(T),{isLastStep:L,nextStep:$,stepIndex:q,setCurrentError:Y}=O,A=M[q],W=P?18:40,G=i.Z[W].eventCategory,[B,R]=(0,o.KO)(c.$i),z=(0,d.ZG)(),H=(0,o.b9)(s.m4),K=(0,o.b9)(c.Gp),[U,X]=(0,n.useState)(!1),[J,Q]=(0,n.useState)(!1),[ee,et]=(0,n.useState)(!1);(0,n.useEffect)(()=>{j.SL0&&E(!0)},[E]);let ea=()=>{R({}),Y(""),K(""),X(!1)},el=async e=>{let t=null==z?void 0:z.firstPageQuery,a=null==z?void 0:z.visitedPages,l=C?e["Vehicle State"]:e.regoState;if(L){let{email:t,phone:a,message:l,postcode:n}=e,r={category:G,subcategory:"3. Offer Accepted",lead_id:B.lead_id,form_completed:!0,offer_accepted:!0,message:l,postcode:n};return(0,p.Af)(r).then(()=>((0,y._c)({eventId:W,userData:{email:t,phone:a}}),(null==P?void 0:P.id)&&H(P),D)?null==D?void 0:D(F,i.Z[W].eventCategory):(0,p.lM)(F,i.Z[W].eventCategory))}switch(A){case"Rego Lookup":$();break;case"User Details":{(0,y._c)({eventId:43,userData:{email:e.email,phone:e.phone}});let i=await (0,c.CE)({userData:{...e,rego_state:l},car:P,firstPageQuery:t,visitedPages:a});if(null==i?void 0:i.lead_id)R({...i,offer_price:null}),i.exclusion?Y(k):$();else{var n;Y(null!==(n=null==i?void 0:i.error)&&void 0!==n?n:"An unknown error occured: A vehicle valuation cannot be provided at this time.")}break}case"Vehicle Details":if(U)$();else{if(B.rego===e.rego&&B.rego_state===l){Q(!0);break}(0,y._c)({eventId:43,userData:{email:e.email,phone:e.phone}}),R({});let n=await (0,c.CE)({userData:{...e,rego_state:l},car:P,firstPageQuery:t,visitedPages:a});(null==n?void 0:n.lead_id)?(R({...n,offer_price:null}),et(!1),Y(""),n.exclusion?K(k):X(!0)):(et(!0),(null==n?void 0:n.error)?Y(null==n?void 0:n.error):Y("An unknown error occured: A vehicle valuation cannot be provided at this time."))}break;case"Vehicle Conditions":{(0,y._c)({eventId:50,userData:{email:e.email,phone:e.phone}});let t=await (0,c.uB)({adjustments:e.adjustments,id:B.id});(null==t?void 0:t.offer_price)?(I.current.scrollIntoView(),R({...B,...t}),$()):(null==t?void 0:t.error)?Y(null==t?void 0:t.error):Y("An unknown error occured: A vehicle valuation cannot be provided at this time.")}}},en=(0,l.jsx)("span",{children:Z||(0,l.jsx)(l.Fragment,{children:(null===r.default||void 0===r.default?void 0:null===(t=r.default.valuation)||void 0===t?void 0:t.valuation_terms_and_conditions_url)&&(0,l.jsxs)(l.Fragment,{children:["By clicking search I agree with the"," ",(0,l.jsx)(g.Z,{href:j.EY6?"/pages/sell-your-car-terms-and-conditions":null===r.default||void 0===r.default?void 0:null===(a=r.default.valuation)||void 0===a?void 0:a.valuation_terms_and_conditions_url,children:"Terms and Conditions*"})]})})}),ei=!u.Z.halfDarkMode&&u.Z.darkMode;return(0,l.jsx)("div",{className:S().formContainer,children:(0,l.jsxs)("div",{ref:I,className:"overflow-hidden ".concat(S().formBody," ").concat(V?"":S().formWidth," ").concat(ei?"bg-dark":"bg-white"),children:[(0,l.jsx)(x.Z,{totalSteps:M.length,currentStep:q+1,wrapperClassName:(0,b.cn)("w-100 pt-3 pb-0 overflow-hidden",ei?"text-white":""),stepData:M.map(e=>({heading:w.y[e].heading,description:w.y[e].description})),stepHeadingClass:S().stepHeading}),(0,l.jsxs)(f.l0,{className:"w-100",onSubmit:el,defaultValues:{regoState:r.default.address.state,category:G,page_id:null!=N?N:null},children:[M.map((e,t)=>t!==q?null:(0,l.jsx)(v.p,{currentFields:w.y[e].fields,heading:w.y[e].heading||e,cardContentClassName:"px-0 px-md-4",description:w.y[e].description,index:t,multiStep:O,headerProps:{className:(0,b.cn)("d-none d-lg-block",ei&&"text-white")},buttonProps:{disabled:"Vehicle Details"===A&&!U,className:"Rego Lookup"===A?"d-none":void 0},car:P,dark:ei,termsMessage:en,resetForm:ea,vehicleSearchError:ee,recentSearchError:J,setSwitchToTradeIn:E,submitBtnText:j.qvG||j.ooc?"Enquire Now":j.zVb?"Submit Enquiry":j.e5n?"Accept Estimated Valuation Offer":"Accept Offer"},e)),(0,l.jsx)(_.l,{})]})]},"valuationForm")})}},78629:function(e,t,a){"use strict";a.d(t,{$:function(){return o}});var l=a(85893),n=a(48583),i=a(17434),r=a(39521);let o=e=>{var t;let{isSuccessPage:a}=e,[o,s]=(0,n.KO)(i.$i);return!(null==o?void 0:o.make)||(null==o?void 0:o.valuation_range)?null:(0,l.jsxs)(r.Zb,{className:"mb-3",style:{borderRadius:"1rem"},children:[(0,l.jsxs)(r.Ol,{children:[(0,l.jsx)(r.ll,{className:"text-primary",style:{fontSize:"1.25rem"},children:"Your Current Trade-In Vehicle"}),!a&&(0,l.jsxs)(r.SZ,{children:["You have already received a valuation for this ",null==o?void 0:o.year," ",null==o?void 0:o.make,"\xa0",null==o?void 0:o.model,". If you have another vehicle you would like to trade-in, get started below."]})]}),(0,l.jsx)(r.aY,{children:(0,l.jsxs)("ul",{className:"mb-0",children:[(null==o?void 0:o.make)&&(0,l.jsxs)("li",{children:["Your Vehicle:\xa0",(0,l.jsxs)("strong",{children:[null==o?void 0:o.year," ",null==o?void 0:o.make," ",null==o?void 0:o.model]})]}),(null==o?void 0:o.offer_price)&&!(null==o?void 0:o.valuation_range)&&(0,l.jsxs)("li",{children:["Estimated Valuation: ",(0,l.jsxs)("strong",{children:["$",null==o?void 0:null===(t=o.offer_price)||void 0===t?void 0:t.toLocaleString()]})]})]})}),(0,l.jsx)(r.eW,{children:!a&&(0,l.jsx)("button",{className:"btn btn-primary",onClick:()=>s({}),children:"Add Another Vehicle"})})]})}},59909:function(e,t,a){"use strict";a.d(t,{y:function(){return G}});var l=a(44268),n=a(94605),i=a(85893),r=a(37496),o=a(48583),s=a(17434),d=a(27763),c=a(37191),u=a(83853),m=a(41132),h=a(67294),p=a(98677),v=a(38411),f=a(39870),x=a(87536),y=a(5152),g=a.n(y),b=a(86467),j=a(7651);let w=r.default;var _=e=>{let{placeholder:t="Please select a dealership...",locations:a=w.locations,make:l,locationType:n,showCityName:r=!1,useDealership:o=!1,...s}=e,d=o?"dealership_id":"location_id",{watch:c,setValue:u}=(0,x.Gc)(),[m,p]=(0,h.useState)(!1),[v,f]=(0,h.useState)(null),[y,g]=(0,h.useState)(""),_=c().postcode,N=(0,h.useMemo)(()=>{let e=[...a];return l&&(e=e.filter(e=>e.manufacturers.includes(l))),n&&(e=(0,b.eq)(e,null==n?void 0:n.toLowerCase())),v&&(e=e.map(e=>({...e,distance:(0,b.cL)(v.lat,v.lng,parseFloat(e.address.lat),parseFloat(e.address.lang))})).sort((e,t)=>e.distance-t.distance)),(0,b.QB)(e,r,o)},[n,a,l,r,o,v]),S=(0,h.useCallback)(async()=>{if(4==="".concat(_).length&&_!==y){g(_);try{let{lat:e,lng:t}=await (0,b.kL)(_);f({lat:e,lng:t})}catch(e){console.error(e.message)}}},[y,_]);return((0,h.useEffect)(()=>{m||1!==N.length||(u(d,N[0].value),p(!0)),_&&S()},[m,S,d,N,_,u]),N&&0!==N.length)?(0,i.jsx)(j.Z,{defaultValue:"",placeholder:t,options:N||[],...s,name:d}):null},N=a(85315),S=a(49331),k=a(22569),C=a(27036),Z=a(26017),V=a(79936),P=a(45399),E=a(83346),D=a(78629),F=a(61042),I=a.n(F);let M=g()(()=>Promise.all([a.e(1141),a.e(5269)]).then(a.bind(a,15269)),{loadableGenerated:{webpack:()=>[15269]},ssr:!1}),T=e=>{var t,a;let{car:l}=e;return!(null===(t=d.Z.valuationWizard)||void 0===t?void 0:t.locationSelect)||(null==l?void 0:l.id)?null:(null===(a=d.Z.valuationWizard)||void 0===a?void 0:a.CustomLocationInput)?(0,i.jsx)(d.Z.valuationWizard.CustomLocationInput,{}):n.HmL?(0,i.jsx)("div",{className:"col-12",children:(0,i.jsx)(_,{locationType:"sales",label:"Select A Location Near You",useDealership:!0})}):(0,i.jsx)("div",{className:"col-12",children:(0,i.jsx)(Z.default,{locationType:"sales",label:"Preferred Dealership"})})},O=e=>{let{data:t}=e,{isSubmitting:a}=(0,x.cl)();return(0,i.jsxs)("div",{className:I().vehicleCheck,children:[(0,i.jsx)("p",{children:"Your Vehicle:"}),(0,i.jsxs)("h5",{children:[t.year," ",t.make," ",t.model]}),(0,i.jsx)("h6",{className:"card-subtitle mb-2 text-muted",children:t.badge}),n.c1m&&(0,i.jsx)("button",{className:"".concat(I().searchButton," btn btn-primary my-3"),type:"submit",children:a?"Loading...":d.Z.valuationWizard.submitText?d.Z.valuationWizard.submitText:"Enquire Now"}),(0,i.jsx)("small",{className:"text-center",children:"There's a chance these details might not match your car. Please double check that they are correct for your car before proceeding."}),n.el2&&(0,i.jsxs)("small",{className:"text-center",children:["Please ensure the details of your car are correct - if not, your on-screen offer may not be accurate and will not be valid. In this case, please"," ",(0,i.jsx)(V.Z,{href:"/contact",children:"contact"})," one of our locations below to discuss your vehicle in person."]})]})},L=()=>{let[e]=(0,o.KO)(s.Gp);return e?n.c1m?(0,i.jsx)("div",{className:" rounded w-100 p-3 bg-primary my-3",children:(0,i.jsx)("p",{className:"text-center text-white",children:"Thank you for your enquiry, the Blinkr team will be in touch with you shortly to provide a competitive offer and explain the hassle-free selling process."})}):(0,i.jsx)("div",{className:(0,m.cn)(I().exclusionMessage," bg-danger mx-2"),children:(0,i.jsx)("div",{children:e})}):null},$=[{name:"vehicle-details",type:"CUSTOM",component:e=>{var t,a,u,h;let{car:p,dark:v,termsMessage:f,resetForm:y,setSwitchToTradeIn:g,recentSearchError:b,vehicleSearchError:w}=e,{isSubmitted:_,isSubmitting:Z}=(0,x.cl)(),{setValue:V}=(0,x.Gc)(),[F]=(0,o.KO)(s.$i),[$]=(0,o.KO)(s.Gp),q=n.HmL;if(F.offer_price)return(0,i.jsx)(D.$,{});let Y=F.id&&_,A=n.el2?"Confirm Vehicle for Offer":"Search Vehicle";return(0,i.jsxs)("div",{className:(0,m.cn)(v&&"text-white","container px-md-2"),children:[!n.el2&&(0,i.jsx)(L,{}),(0,i.jsxs)("div",{className:"row",children:[(0,i.jsx)("div",{className:"col-12 col-md-6",children:(0,i.jsx)(N.default,{name:"kms",placeholder:"Vehicle Kilometers",label:!0})}),(0,i.jsx)("div",{className:"col-12 col-md-6",children:(0,i.jsx)(j.Z,{name:"regoState",placeholder:"State",label:!0,defaultValue:(null===r.default||void 0===r.default?void 0:null===(t=r.default.address)||void 0===t?void 0:t.state)?null===r.default||void 0===r.default?void 0:null===(a=r.default.address)||void 0===a?void 0:a.state:"",options:E.$q.map(e=>({label:e,value:e}))})}),q&&(0,i.jsx)("div",{className:"col-12 col-md-6 ",children:(0,i.jsx)(S.default,{name:"postcode",placeholder:"Postcode",label:!0})}),(0,i.jsxs)("div",{className:(0,m.cn)("col-12",q&&"col-md-6"),children:[(0,i.jsx)(k.Z,{name:"rego",placeholder:d.Z.valuationWizard.customRegoField?d.Z.valuationWizard.customRegoField:"Number Plate",label:!0}),(null===(u=d.Z.valuationWizard)||void 0===u?void 0:u.imNotSure)&&(0,i.jsx)("div",{children:(0,i.jsx)("small",{className:I().ImNotSure,onClick:()=>g(!0),children:"I'm not sure.."})}),!1]}),(n.EY6||n.pA9)&&(0,i.jsx)(P.MR,{}),(0,i.jsxs)("div",{className:"col-12",children:[!n.EY6&&!n.pA9&&(0,i.jsx)(l.Z,{label:!0}),(0,i.jsx)(C.Z,{name:"message",label:"Enquiry Details",placeholder:"Please specify your trade-in enquiry.",required:!1,rows:5})]}),(null===(h=d.Z.valuationWizard)||void 0===h?void 0:h.CustomFields)&&(0,i.jsx)(d.Z.valuationWizard.CustomFields,{car:p}),(0,i.jsx)(T,{car:p}),!n.EY6&&!n.pA9&&(0,i.jsx)("div",{className:"col-12",children:(0,i.jsx)(M,{})})]}),(0,i.jsx)("small",{style:{color:"#6c757d"},children:f}),(0,i.jsx)(L,{}),(0,i.jsx)("div",{className:"row justify-content-center",children:Y||$?(0,i.jsx)("button",{className:(0,m.cn)(I().searchButton,"btn mt-3",n.c1m?"btn-primary":n.EoA?"btn-secondary":"btn-danger"),onClick:()=>{V("rego",""),y()},type:"button",children:"Start New Search"}):(0,i.jsxs)("button",{className:I().searchButton+" btn btn-primary mt-3",type:"submit",children:[A," ",Z&&!F.id&&(0,i.jsx)(c.Z,{})]})}),Y&&(0,i.jsx)(O,{data:F}),w&&(0,i.jsxs)("div",{className:I().vehicleCheck,children:[(0,i.jsx)("p",{children:"Sorry, we couldn`t find your vehicle."}),(0,i.jsx)("p",{children:"Please check your details and try again."})]}),b&&(0,i.jsxs)("div",{className:I().vehicleCheck,children:[(0,i.jsx)("p",{children:"Sorry, you've already searched with those details."}),(0,i.jsx)("p",{children:"Please update your Number Plate or State details and try again."})]})]},"vehicleDetailsStep")}}],q=[{name:"vehicle-conditions",type:"CUSTOM",component:e=>{let{dark:t}=e,[a]=(0,o.KO)(s.$i),l=(0,h.useMemo)(()=>{var e;let t=null!==(e=null==a?void 0:a.form_questions)&&void 0!==e?e:[];return(null==t?void 0:t.length)===0?p.B:t.map(e=>{var t,a;return{name:"adjustments.".concat((0,f.XB)(e.question)),type:"button",label:e.question,options:null!==(a=null===(t=e.answers)||void 0===t?void 0:t.map(e=>null==e?void 0:e.answer))&&void 0!==a?a:[]}})},[null==a?void 0:a.form_questions]);return(0,i.jsx)("div",{className:(0,m.cn)(t&&"text-white","container px-md-2"),children:l.map((e,t)=>(0,i.jsx)(v.Z,{...e},e.name+t))},"vehicleConditionStep")}}],Y=[{name:"valuation",type:"CUSTOM",component:e=>{var t,a,l;let{dark:h}=e,[p]=(0,o.KO)(s.$i),v=(null==p?void 0:p.valuation_range)?"We estimate your car is valued between the range of ":"Based on the details you have provided, estimated value for your ".concat(p.year,"\n ").concat(p.make," ").concat(p.model," is");return(0,i.jsx)("div",{className:(0,m.cn)(h&&"text-white","container px-md-2"),children:(0,i.jsxs)("div",{className:"container text-center",children:[(0,i.jsx)(u.Hc,{children:v}),(0,i.jsx)("hr",{}),(0,i.jsx)("div",{className:"text-success",children:p.offer_price?(0,i.jsx)(i.Fragment,{children:p.exclusion?(0,i.jsx)("h5",{children:"We are unable to provide an online valuation - However, we would love to give you an on-site valuation."}):(null==p?void 0:p.valuation_range)?(0,i.jsxs)("h3",{children:[p.valuation_range,"*"]}):(0,i.jsxs)("h3",{children:[(l=null==p?void 0:null===(t=p.offer_price)||void 0===t?void 0:t.toString())?"$"+parseInt(l).toFixed(0).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"):"$0.00","*"]})}):(0,i.jsx)(c.Z,{})}),n.e5n&&(0,i.jsx)("p",{className:"small mt-0",children:"All offers made by ".concat(r.default.name," for the trade-in or sale of your vehicle are\n subject to inspection and verification by ").concat(r.default.name,". The final offer value\n will be confirmed upon viewing the vehicle in person.")}),(0,i.jsx)("p",{className:"small mt-0",children:"*Estimate does not take into consideration any additional accessories you might have had fitted to the car. We will factor those in at inspection."}),d.Z.valuationWizard.OfferContent?(0,i.jsx)(d.Z.valuationWizard.OfferContent,{}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h4",{children:"Happy with the estimated value?"}),(0,i.jsx)("p",{children:"Please submit an enquiry to proceed"})]}),(null===(a=d.Z.forms)||void 0===a?void 0:a.CustomFormDisclaimer)&&(0,i.jsx)(d.Z.forms.CustomFormDisclaimer,{})]})})}}],A=[...(0,l.i)({label:!0}),{type:"kilometre",name:"kms",label:"Vehicle Kilometers",placeholder:"Vehicle Kilometers"},{type:"string",name:"rego",label:"Vehicle Registration",placeholder:"Vehicle Registration"},{type:"textarea",name:"message",label:"Enquiry Details",placeholder:"Please specify your trade-in enquiry."},{type:"CUSTOM",name:"location_id",component:T},{name:"opt_in",type:"check",required:!1,label:"Yes, I would like to subscribe to receive latest offers & product updates."}],W=n.qvG?"Estimated Online Valuation":n.ooc?"Estimated Online Valuation":n.el2?"Get Instant Offer*":"Estimated Valuation Offer",G={"Rego Lookup":{fields:[{name:"rego",type:"rego",lookupType:"autograb"}],heading:"Find Your Car",description:"Please fill in your vehicle’s details below."},"User Details":{fields:A,heading:"User Details",description:"Please fill in your details below"},"Vehicle Details":{fields:$,heading:"Vehicle Details",description:n.iYi?"Please fill in your vehicle’s details below for a system generated instant offer":n.el2?"To get your instant on-screen offer, please enter details below.":"Please enter your vehicle's odometer, state and registration details."},"Vehicle Conditions":{fields:q,heading:"Vehicle Conditions",description:""},"Valuation Offer":{fields:Y,heading:W,description:""}}},98677:function(e,t,a){"use strict";a.d(t,{B:function(){return r},l:function(){return o}});var l=a(67294),n=a(87536),i=a(29593);let r=[{name:"adjustments.forSale",type:"button",label:"Is your car currently for sale?",options:["Yes","No"]},{name:"adjustments.documentation",type:"button",label:"Describe your vehicles service documentation?",options:["Full manufacturer service documentation","Partial service history with service documentation","Missing books"]},{name:"adjustments.condition",type:"button",label:"Describe your vehicles condition",options:["Excellent","Good","Poor"]},{name:"adjustments.mechanicalCondition",type:"button",label:"Describe your vehicles Mechanical condition",options:["Good/No issues","Poor/Some Issues"]},{name:"adjustments.dashlights",type:"button",label:"Are there any dash warning lights on your vehicle?",options:["No","Yes"]},{name:"adjustments.roadworthyTyres",type:"button",label:"In your opinion are your tyres in a roadworthy condition?",options:["Yes","No"]},{name:"adjustments.windscreenCondition",type:"button",label:"Is your windscreen free from cracks and scratches?",options:["Yes","No"]}],o=()=>{var e;let t=(0,i.i)(),{setValue:a}=(0,n.Gc)();return(0,l.useEffect)(()=>{var e;(null==t?void 0:null===(e=t.query)||void 0===e?void 0:e.source)==="autograb"&&a("leadSource",t.query.source)},[null==t?void 0:null===(e=t.query)||void 0===e?void 0:e.source,a]),null}},60262:function(e,t,a){"use strict";a.d(t,{G:function(){return o},w:function(){return r}});var l=a(67294),n=a(6666),i=a(41132);function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],[i,r]=(0,l.useState)(t),[o,s]=(0,l.useState)(a),[d,c]=(0,l.useState)(!1),[u,m]=(0,l.useState)(null),[h,p]=(0,l.useState)(""),[v,f]=(0,l.useState)([]),x=(0,l.useCallback)(()=>{i<e.length-1&&(r(i+1),p(""),(o.length?o.filter(e=>e.from<i&&e.to>i):[]).length&&s(e=>e.filter(e=>!(e.from<i&&e.to>i))))},[o,i,e.length]),y=(0,l.useCallback)(()=>{if(i>0){let e=o.find(e=>e.to===i);e?r(e.from):r(e=>e-1)}},[o,i]),g=(0,l.useCallback)(e=>{s([...o,{from:i,to:e}]),r(e)},[o,i]),b=(0,l.useMemo)(()=>d?100:Math.round(i/e.length*100),[d,i,e.length]),j=(0,l.useMemo)(()=>e.length>1,[e.length]),w=(0,l.useCallback)(async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(v.includes(i))return t&&x(),{error:!1};{let a={...e,lead_status:"Incomplete",form_completed:!1};u&&(a.lead_id=u),o.length>0&&(a.skipped_steps=o,a.step_number=i);let l=await (0,n.c)({userData:a,isLastStep:!1,isMultiStep:!0});if(null==l?void 0:l.lead_id)return m(l.lead_id),f([...v,i]),t&&x(),{error:!1,lead_id:l.lead_id};if(null==l?void 0:l.error)return p(l.error),{error:!0,lead_id:null}}},[u,x,o,i,v]);return(0,l.useMemo)(()=>({stepIndex:i,isFirstStep:0===i,isLastStep:i===e.length-1,isMultiStep:j,progress:b,leadId:u,currentError:h,nextStep:x,previousStep:y,sendToServerOnStep:w,skipTo:g,setLeadId:m,setProgressComplete:c,setCurrentError:p}),[h,j,u,x,y,b,w,g,i,e.length])}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{stepKeys:(0,i.RR)(e).filter(e=>!t.includes(e)),steps:(0,i.Cg)(e).filter(e=>!t.includes(e[0])).map(e=>e[1].fields)}}},50187:function(e,t,a){"use strict";a.r(t);var l=a(85893),n=a(87536),i=a(93967),r=a.n(i),o=a(5152),s=a.n(o),d=a(94605),c=a(85);let u=s()(()=>Promise.resolve().then(a.bind(a,57333)).then(e=>e.NumericFormat),{loadableGenerated:{webpack:()=>[57333]}}),m=["$5,000","$10,000","$15,000","$20,000","$25,000","$30,000","$40,000","$50,000","$70,000"],h=["$300,000","$400,000","$500,000","$600,000","$700,000","$800,000"];t.default=(0,c.Z)({})(e=>{let{value:t,fieldState:a,formItem:i,placeholder:o,onChange:s,options:c=d.amI?h:m,...p}=e,{specialValue:v,...f}=p,{setValue:x}=(0,n.Gc)();return(0,l.jsxs)("div",{id:null==i?void 0:i.name,children:[(0,l.jsx)(u,{value:t,className:r()({"form-control":!0,"is-invalid":null==a?void 0:a.error}),displayType:"input",thousandSeparator:!0,prefix:"$",placeholder:o||(null==i?void 0:i.name),onChange:s,...f}),(0,l.jsx)("div",{className:"mt-2",children:c.map((e,a)=>(0,l.jsx)("div",{className:r()({"btn-outline-secondary":e!==t,"btn-primary":e===t},"btn btn-sm mr-2 mb-2 btn-money"),onClick:()=>x(i.name,e),children:e},"option-".concat(a)))})]})})},85315:function(e,t,a){"use strict";a.r(t);var l=a(85893),n=a(93967),i=a.n(n),r=a(5152),o=a.n(r),s=a(85);let d=o()(()=>Promise.resolve().then(a.bind(a,57333)).then(e=>e.NumericFormat),{loadableGenerated:{webpack:()=>[57333]}});t.default=(0,s.Z)({})(e=>{let{value:t,fieldState:a,formItem:n,placeholder:r,onChange:o,...s}=e;return(0,l.jsx)(d,{value:t,className:i()({"form-control":!0,"is-invalid":null==a?void 0:a.error}),displayType:"input",thousandSeparator:!0,placeholder:r||(null==n?void 0:n.name),onChange:o,...s})})},73517:function(e,t,a){"use strict";a.d(t,{p:function(){return h}});var l=a(85893),n=a(66718),i=a(68233),r=a(39521),o=a(41132),s=a(70327),d=a(38411),c=a(67294),u=a(87536),m=a(2559);function h(e){var t;let{currentFields:a,heading:h,description:p,index:v,multiStep:f,car:x,model:y,headerProps:g,titleProps:b,descriptionProps:j,buttonProps:w,backButtonProps:_,cardContentClassName:N,submitBtnText:S,...k}=e,{currentError:C,showBtn:Z,showBackBtn:V,isLastStep:P,previousStep:E,loading:D}=function(e){let{index:t,multiStep:a}=e,{currentError:l,stepIndex:n,isFirstStep:i,isLastStep:r,progress:o,previousStep:s}=a,d=t===n,h=d&&!i,{isLoadingSuccessPage:p}=(0,m.Og)(),{isSubmitting:v}=(0,u.cl)(),f=v||p;return(0,c.useMemo)(()=>({currentError:l,stepIndex:n,showBtn:d,showBackBtn:h,isLastStep:r,progress:o,previousStep:s,loading:f}),[l,r,f,s,o,h,d,n])}({index:v,multiStep:f}),F="string"==typeof(null==_?void 0:_.className)&&(null==_?void 0:null===(t=_.className)||void 0===t?void 0:t.includes("d-none"));return(0,l.jsxs)(l.Fragment,{children:[h||p?(0,l.jsxs)(r.Ol,{...g,children:[h&&(0,l.jsx)(r.ll,{...b,children:h}),p&&(0,l.jsx)(r.SZ,{...j,children:p.includes("<a")||p.includes("<strong")?(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:p}}):p})]}):(0,l.jsx)("div",{className:"pt-4"}),(0,l.jsxs)(r.aY,{className:N,children:[(0,l.jsx)(d.t,{currentFields:a,car:x,model:y,...k}),C&&(0,l.jsxs)(i.bZ,{variant:"destructive",className:"mt-3",children:[(0,l.jsx)(n.lEC,{size:16}),(0,l.jsx)(i.X,{children:C})]})]}),(0,l.jsxs)(r.eW,{className:"d-flex justify-content-between",children:[V&&!F?(0,l.jsx)("button",{..._,"data-testid":"multistep-back",disabled:D,type:"button",onClick:E,className:(0,o.cn)("btn btn-outline-primary mr-3",null==_?void 0:_.className),children:"Go Back"}):(0,l.jsx)("div",{}),Z&&(0,l.jsx)(s.Mm,{...w,children:P?S||"Submit":"Continue"})]})]})}},99065:function(e,t,a){"use strict";var l=a(85893),n=a(25054),i=a(37496),r=a(4298),o=a.n(r),s=a(83346);t.Z=e=>{let{reviews:t=n.Z}=e;if(!s.Oy||0===t.count)return null;let a=t.reviews[0],r={"@context":"http://schema.org","@type":"Product",name:i.default.name,url:i.default.url,aggregateRating:{"@type":"AggregateRating",ratingValue:t.average_rating,reviewCount:t.count},review:{"@type":"Review",reviewBody:a.text,datePublished:a.review_date,author:{"@type":"Person",name:a.customer_name},reviewRating:{"@type":"Rating",ratingValue:a.rating}}};return(0,l.jsx)(o(),{id:"review-schema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(r)}},"review-schema")}},45330:function(e,t,a){"use strict";a.d(t,{$:function(){return o}});var l=a(85893),n=a(37496),i=a(41132),r=a(53793);let o=()=>(0,l.jsx)("div",{className:(0,i.cn)(92===n.default.manufacturer_id?"mb-2":"text-dark"),children:(0,l.jsx)(r.Z,{})})},53793:function(e,t,a){"use strict";var l=a(85893),n=a(79936),i=a(94605);t.Z=()=>(0,l.jsx)("div",{className:"mt-3","data-testid":"jhg-privacy-message",children:(0,l.jsxs)("div",{className:"text-left",children:["By submitting this enquiry, I agree to the"," ",i.pA9?"We Want Your Wheels":"John Hughes Group"," ",(0,l.jsx)(n.Z,{href:"/privacy-policy",target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"}),"."]})})},91871:function(e){e.exports={xs:"min-width: 400px",sm:"min-width: 576px","sm-down":"max-width: 576px",md:"min-width: 768px","md-down":"max-width: 768px",lg:"min-width: 992px","lg-down":"max-width: 992px",xl:"min-width: 1200px","xl-down":"max-width: 1200px",xxl:"min-width: 1400px",NameCtn:"NzTradeIn_NameCtn__lxPX_",EmailPhone:"NzTradeIn_EmailPhone__dDbt_"}},61042:function(e){e.exports={xs:"min-width: 400px",sm:"min-width: 576px","sm-down":"max-width: 576px",md:"min-width: 768px","md-down":"max-width: 768px",lg:"min-width: 992px","lg-down":"max-width: 992px",xl:"min-width: 1200px","xl-down":"max-width: 1200px",xxl:"min-width: 1400px",formContainer:"ValuationForm_formContainer__I4e4g",vehicleCheck:"ValuationForm_vehicleCheck__tx9s7",formBody:"ValuationForm_formBody__zTaFY",formWidth:"ValuationForm_formWidth__FaL34",searchButton:"ValuationForm_searchButton__MN9UT",exclusionMessage:"ValuationForm_exclusionMessage__plsLZ",ImNotSure:"ValuationForm_ImNotSure__PTpMf",stepHeading:"ValuationForm_stepHeading__EFtZD"}}}]);