(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{"9Ksm":function(e,t,a){},BGG5:function(e,t,a){"use strict";a.r(t);var n=a("q1tI"),r=a.n(n),l=a("Wbzz"),c=a("dDH5"),o=(a("VYN/"),a("Bl7J")),s=a("vrFN"),u=a("W52e"),i=a("eXwM"),m=a("NZSF"),p=a.n(m);t.default=function(){var e=Object(n.useState)([]),t=e[0],a=e[1],m=Object(n.useState)(""),d=m[0],f=m[1],E=Object(n.useContext)(c.b).quoteForm;Object(n.useEffect)((function(){a(E.description)}),[E]);return r.a.createElement(o.a,{wrapperClass:"quote-container",hideHeaderFooter:!0},r.a.createElement(c.b.Consumer,null,(function(e){return r.a.createElement(r.a.Fragment,null,r.a.createElement(u.a,{step:"2"}),r.a.createElement(s.a,{title:"DingGo | Car Quote - Describe The Damage",description:"Upload your photos and describe the damage to compare car repair quotes online, fast and free. Snap. Compare. Repair."}),r.a.createElement("div",{className:"quote-wrapper step-two"},r.a.createElement("div",{className:"container sm"},r.a.createElement(i.a,{step:"2"}),r.a.createElement("h1",null,"Describe Damage"),r.a.createElement("div",{className:"intro"},r.a.createElement("p",null,"Please Include:"),r.a.createElement("p",null,"1. Location of damage (eg. front left door, back bumper, bonnet etc.)"),r.a.createElement("p",null,"2. Type of damage (eg. dent, scratch, paint damage etc.)")),r.a.createElement("form",{onSubmit:function(a){!function(e,a){e.preventDefault(),a.addToQuoteForm(Object.assign({},E,{description:t,atFault:d})),Object(l.navigate)("/quote/step-three")}(a,e)}},r.a.createElement("textarea",{placeholder:"Damage description examples:\nScratch on front bumber, paint damaged\nDent on back left door, no paint damaged",onChange:function(e){var t;t=e.target.value,a(t)},value:t}),r.a.createElement("div",{className:"form-group"},r.a.createElement("label",null,"Do you believe you were at fault in this incident?"),r.a.createElement("select",{className:"form-control",id:"atFault",name:"atFault",onChange:function(e){var t;t=e.target.value,f(t)},value:d},r.a.createElement("option",null,"Unsure"),r.a.createElement("option",null,"Yes"),r.a.createElement("option",null,"No"))),r.a.createElement("div",{className:"form-btn-wrapper"},r.a.createElement(l.Link,{to:"/quote/step-one",className:"arrow-cta"},r.a.createElement(p.a,null),"Back"),r.a.createElement("button",{className:"btn "+(t&&t.length>0?"":"disable"),type:"submit",id:"button-click-to-step-3"},"Next"))))))})))}},NZSF:function(e,t,a){var n=a("q1tI");function r(e){return n.createElement("svg",e,n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("g",null,n.createElement("g",null,n.createElement("g",null,[n.createElement("g",{key:0},n.createElement("path",{d:"M0 0H28V28H0z",transform:"translate(-132 -115) translate(132 122) translate(0 -7)"})),n.createElement("path",{fill:"#164895",d:"M9.59 8.423c.341-.342.895-.342 1.237 0 .342.342.342.896 0 1.237l-3.173 3.173h14.221c.446 0 .814.334.868.766l.007.11c0 .483-.392.874-.875.874H7.654l3.173 3.173c.313.314.34.805.078 1.148l-.078.09c-.342.341-.896.341-1.237 0l-4.667-4.667-.015-.015-.045-.052-.03-.037-.035-.054-.022-.037c-.07-.126-.11-.27-.11-.424 0-.152.04-.295.108-.42l.027-.046.033-.048c.026-.037.056-.072.089-.104l-.06.066c.014-.018.03-.035.046-.052l.014-.014z",transform:"translate(-132 -115) translate(132 122) translate(0 -7)",key:1})])))))}r.defaultProps={width:"28",height:"28",viewBox:"0 0 28 28",className:"svg"},e.exports=r,r.default=r},"VYN/":function(e,t,a){},W52e:function(e,t,a){"use strict";var n=a("q1tI"),r=a.n(n);a("9Ksm");t.a=function(e){var t=e.step;return r.a.createElement("div",{className:"progress-bar-wrapper"},r.a.createElement("div",{className:"progress-bar",style:{width:100*t/6+"%"}}))}},eXwM:function(e,t,a){"use strict";var n=a("q1tI"),r=a.n(n),l=a("Wbzz"),c=(a("k+jS"),a("NZSF")),o=a.n(c);t.a=function(e){var t=e.step;return r.a.createElement("div",{className:"quote-nav-wrapper"},r.a.createElement(l.Link,{to:function(){switch(t){case"2":return"/quote/step-one";case"3":return"/quote/step-two";case"4":return"/quote/step-three";case"5":return"/quote/step-four";case"6":return"/quote/step-five";default:return"/quote"}}(),className:"arrow-cta hidden-sm"},r.a.createElement(o.a,null)," Back"),r.a.createElement("span",null,"Step ",t," of 6"))}},"k+jS":function(e,t,a){}}]);
//# sourceMappingURL=component---src-pages-quote-step-two-js-1df0c6ba1c48091717d0.js.map