{"version":3,"sources":["webpack:///./src/pages/enquiry.js"],"names":["EnquiryPage","componentDidMount","window","history","back","location","href","render","Component"],"mappings":"wIAGMA,E,0GAEJC,kBAAA,WAOEC,OAAOC,QAAQC,OACfF,OAAOG,SAASC,KAAK,gC,EAGvBC,OAAA,WACE,OACE,6C,GAfoBC,aAmBXR","file":"component---src-pages-enquiry-js-aca817f711ee0e868f36.js","sourcesContent":["import React, { Component } from \"react\";\n//import { trackCustomEvent } from 'gatsby-plugin-google-analytics';\n\nclass EnquiryPage extends Component {\n\n componentDidMount() {\n\n // trackCustomEvent({\n // category: \"Conversion\",\n // action: \"Evo magazine\",\n // label: \"Evo traffic source\"\n // });\n window.history.back();\n window.location.href=\"https://value.summon.com.au/\";\n }\n\n render() {\n return (\n

One moment...

\n );\n }\n}\nexport default EnquiryPage;\n\n\n// old onsite enquiry form\n\n// import React, { Component } from 'react';\n// import Layout from \"../components/Layout/Layout\"\n// import SEO from \"../components/Seo/Seo\"\n// import PageHeader from '../components/Layout/PageHeader/PageHeader'\n// import SectionPageMargin from '../components/Layout/Section/SectionPageMargin'\n// import FlexCenter from '../components/Layout/Flex/FlexCenter'\n// import Spacer from '../components/Layout/Spacer/Spacer'\n// import Heading3 from '../components/Type/Heading3'\n// import Paragraph1 from '../components/Type/Paragraph1'\n// import ContactForm from '../components/Form/ContactForm'\n// import Benefits3 from '../components/Benefits3/Benefits3'\n// import CarSelector from '../components/CarSelector/CarSelector';\n// import CarDisplaySummary from '../components/CarDisplaySummary/CarDisplaySummary';\n// import MileageColourForm from '../components/Form/MileageColourForm';\n// import InputError from '../components/Form/InputError'\n\n\n// class EnquiryPage extends Component {\n\n// constructor(props){\n// super(props);\n// this.mileageColour = React.createRef();\n// this.state = {\n// formSubmissionSuccessful: false,\n// selectedCar: null,\n// carNotSelectedError: \"\",\n// }\n// }\n\n// selectedCarHandler = (car) => {\n// this.setState({selectedCar: car, carNotSelectedError: \"\"});\n// }\n\n// formSubmittedHandler = (car) => {\n// this.setState({formSubmissionSuccessful: true});\n// }\n\n// getCarDetails = () => {\n// let mc = this.mileageColour.current.getMileageColour();\n// let car = this.state.selectedCar;\n// if(car) {\n// let carDetails = [mc,car];\n// return carDetails;\n// } else {\n// this.setState({carNotSelectedError: \"Please enter your car details\"});\n// return null;\n// }\n// }\n\n// render() {\n\n// const confirmationMessage = (\n// <>\n// \n// \n// All Done!\n// \n// Thank you for your enquiry. One of our car sales consultants will be in contact shortly.\n// \n// \n// You should also receive a confirmation email. Please check your spam or junk mail folder.\n// \n// \n// And you can always email us at:
\n// hello@summon.com.au\n//
\n// \n//
\n//
\n// \n// )\n\n// return (\n \n// \n// \n \n// \n \n// \n\n// {!this.state.formSubmissionSuccessful &&\n// \n// \n// Tell us about the car you wish to sell\n// {this.state.carNotSelectedError}\n// \n// }\n\n// {!this.state.formSubmissionSuccessful && !this.state.selectedCar && }\n// {!this.state.formSubmissionSuccessful && this.state.selectedCar && }\n \n// {!this.state.formSubmissionSuccessful && <>\n \n// \n \n\n// \n// \n// Your Contact Details\n// \n// \n// \n \n// }\n\n// {this.state.formSubmissionSuccessful && confirmationMessage}\n\n// \n// )\n \n// }\n// }\n \n\n// export default EnquiryPage;\n\n\n\n"],"sourceRoot":""}