{"version":3,"sources":["XSRE.js","reportWebVitals.js","index.js"],"names":["XSRE","props","state","items","selected_items","first_name","last_name","phone","email","errors","isSubmitting","isSent","show","demo_model","handleToggle","bind","handleTextInput","submitLead","handleModalClose","handleModalOpen","handleSlideChange","this","getSlides","event","setState","target","value","model_id","fetch","method","headers","authToken","then","response","json","final","map","v","checked","console","log","error","string_of_accessories","forEach","item","sku","toString","slice","jsonBody","lead","vin","make","model","year","body","JSON","stringify","add_or_remove","name","i_index","item_array","findIndex","i","selected_items_array","push","si_index","splice","parentElement","classList","preventDefault","newErrors","findFormErrors","Object","keys","length","submitInternal","submitExternal","setTimeout","test","emailIsValid","phoneIsValid","e","settings","dots","infinite","speed","slidesToShow","className","Button","onClick","variant","id","style","backgroundImage","image_url","type","onChange","title","Modal","onHide","backdrop","size","keyboard","Header","closeButton","dealer","Body","src","modalImageUrl","Form","Group","Control","isInvalid","placeholder","Feedback","disabled","Footer","Component","reportWebVitals","onPerfEntry","Function","getCLS","getFID","getFCP","getLCP","getTTFB","ReactDOM","render","StrictMode","document","getElementById"],"mappings":"oTAUqBA,E,kDAEnB,WAAYC,GAAO,IAAD,8BAChB,cAAMA,IACDC,MAAQ,CACdC,MAAO,GACPC,eAAe,GACfC,WAAW,GACXC,UAAU,GACVC,MAAM,GACNC,MAAM,GACNC,OAAO,GACPC,cAAa,EACbC,QAAO,EACPC,MAAK,EACLC,WAAW,GAGZ,EAAKC,aAAe,EAAKA,aAAaC,KAAlB,gBACpB,EAAKC,gBAAkB,EAAKA,gBAAgBD,KAArB,gBACvB,EAAKE,WAAa,EAAKA,WAAWF,KAAhB,gBAClB,EAAKG,iBAAmB,EAAKA,iBAAiBH,KAAtB,gBACxB,EAAKI,gBAAkB,EAAKA,gBAAgBJ,KAArB,gBACvB,EAAKK,kBAAoB,EAAKA,kBAAkBL,KAAvB,gBArBP,E,qDAwBlB,WACCM,KAAKC,c,+BAGN,SAAkBC,GAIjBF,KAAKG,SAAS,CAAEpB,eAAgB,KAChC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{ React, Component } from \"react\";\nimport Slider from \"react-slick\";\nimport Form from \"react-bootstrap/Form\";\nimport Modal from \"react-bootstrap/Modal\";\nimport Button from \"react-bootstrap/Button\";\nimport 'bootstrap/dist/css/bootstrap.min.css';\nimport \"slick-carousel/slick/slick.css\";\nimport \"slick-carousel/slick/slick-theme.css\";\n\n\nexport default class XSRE extends Component {\n \n constructor(props){\n super(props);\n this.state = {\n\t items: [],\n\t selected_items:[],\n\t first_name:\"\",\n\t last_name:\"\",\n\t phone:\"\",\n\t email:\"\",\n\t errors:{},\n\t isSubmitting:false,\n\t isSent:false,\n\t show:false,\n\t demo_model:1\n };\n\t\n this.handleToggle = this.handleToggle.bind(this);\n this.handleTextInput = this.handleTextInput.bind(this);\n this.submitLead = this.submitLead.bind(this);\n this.handleModalClose = this.handleModalClose.bind(this);\n this.handleModalOpen = this.handleModalOpen.bind(this);\n this.handleSlideChange = this.handleSlideChange.bind(this);\n }\n \n componentDidMount(){\n\t this.getSlides()\n }\n \n handleSlideChange(event){\n\t //clear the existing slides\n\t \n\t //reget getSlides\n\t this.setState({ selected_items: [] })\n\t this.setState({ items: [] })\n\t this.getSlides(event.target.value)\n\t \n }\n \n getSlides(model_id = 1){\n\t \n\t fetch(`/api/v1/models/${model_id}/items.json`, \n\t\t {method: 'get',\n\t headers: {\n\t\t\t \"Authorization\": `Bearer ${this.props.authToken}`\n\t }\n })\n\t .then(response => {\n\t return response.json(); \n\t })\n\t .then(json => {\n\t\t\t const final = json.map(v => ({...v, checked: false}))\t\n\t\t\t console.log('parsed json ', final);\n\t this.setState({items: final});\n\t })\n\t .catch(error => {\n\t console.log(error);\n\t });\n\t\n }\n \n submitInternal(){\n\t\tlet string_of_accessories = \"\"\n\t\tthis.state.selected_items.forEach(function (item) {\n\t\t string_of_accessories = string_of_accessories + item.sku.toString() + \"|\"\n\t\t});\n\t\tstring_of_accessories = string_of_accessories.slice(0, -1)\n\n\t\tconst jsonBody = { \n\t\t\tlead:{\n\t\t\t\t vin:this.props.vin,\n\t\t\t\t make:this.props.make,\n\t\t\t\t model:this.props.model,\n\t\t\t\t year:this.props.year,\n\t\t\t\t items: string_of_accessories\n\t\t\t }\n\t\t}\n\t\tfetch( `/api/v1/leads`,\n\t\t{\n\t\tmethod: 'post',\n\t\tbody: JSON.stringify(jsonBody),\n\t\theaders: {\n\t\t \"Content-Type\": \"application/json\",\n\t\t \"Accept\": \"application/json\",\n\t\t\t \"Authorization\": `Bearer eyJhbGciOiJIUzI1NiJ9.IjEi.4AZoswRMyYlzDPD90W3IElxEyhKx9pKspEJNeFgRnzU`\n\t\t }\n\t\t})\n\t\t.then(response => {\t \n\t\t return response.json();\n\t\t})\n\t\t.then(json => {\n\t\t\tconsole.log(\"response\", json)\n\t\t})\n\t\t.catch(error => {\n\t\t\tdebugger;\n\t\t\tconsole.log(error);\n\t\t});\n }\n \n submitExternal(){ \n\t //send xml\n\t //email\n\t //send json\n }\n \n handleToggle(event){\n\t var add_or_remove = event.target.checked\n\t var sku = event.target.name\n\t if (add_or_remove === true ){\n\t\t\n\t\t \t\t\n\t\tvar item_array = this.state.items\n\t\tvar i_index = item_array.findIndex(i => i.sku == sku)\n\t\tif (i_index != -1){\n\t\t\titem_array[i_index].checked=true\n\t\t}\n\t\tvar item = item_array[i_index]\n\t\tvar selected_items_array = this.state.selected_items\n\t\tselected_items_array.push(item)\n\t \tthis.setState({\n\t\t items:item_array,\n\t\t selected_items:selected_items_array\n\t \t})\n \t }\n \t else if (add_or_remove === false ) {\n \t\t\n\t\tvar item_array = this.state.items\n\t\tvar selected_items_array = this.state.selected_items\t\n\t\tvar i_index = item_array.findIndex(i => i.sku == sku);\n \t\t\n\t\tif (i_index != -1){\n \t\t\titem_array[i_index].checked=false\n \t\t}\n\t\t\n\t\tvar si_index = selected_items_array.findIndex(i => i.sku == sku)\n\t\tif (si_index != -1){\n\t\t\tselected_items_array.splice(si_index,1)\n\t\t}\n\t\t\n \t\tthis.setState({\n \t\t\titems:item_array,\n\t\t\tselected_items:selected_items_array\n \n \t\t})\n \t }\n\t if (event.target.parentElement.classList[1] == \"mainSliderInput\") {\n\t \tthis.handleModalOpen()\n\t }\n }\n \n submitLead(event){\n\t event.preventDefault()\n\t let newErrors = this.findFormErrors()\n\t if ( Object.keys(newErrors).length > 0 ) {\n\t // We got errors!\n\t this.setState({errors: newErrors})\n\t } else {\n \t // No errors! Put any logic here for the form submission!\n\t\t\t this.setState({isSubmitting:true})\t\n\t\t\t this.setState({errors: newErrors})\n\t\t\t //generate and post lead back to our system\n\t\t\t this.submitInternal()\n\t\t\t //generate and post xml lead \n\t\t\t this.submitExternal()\n\t\t\t // *******\n\t\t\t //fake api wait right now to get the loading interaction right\n\t\t\t // *******\n\t\t\t setTimeout(()=>{\n\t\t\t\t this.setState({isSubmitting:false})\n\t\t\t\t this.setState({isSent:true})\n\t\t\t }, 2000)\t\n\t }\n }\n \n handleModalClose() {\n\t this.setState({show:false})\n\t setTimeout(()=>{\n\t\t this.setState({isSent: false})\n\t }, 500)\t\n\t \n \t\n }\n \n handleModalOpen() {\n\t this.setState({show:true})\n \t\n }\n \n emailIsValid (email) {\n return /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email)\n }\n \n phoneIsValid (phone) {\n return /^(\\+\\d{1,2}\\s)?\\(?\\d{3}\\)?[\\s.-]?\\d{3}[\\s.-]?\\d{4}$/.test(phone)\n }\n \n findFormErrors() {\n const first_name = this.state.first_name\n\t const last_name = this.state.last_name\n\t const phone = this.state.phone\n\t const email = this.state.email\n const newErrors = {}\n // check for errors\n if ( !first_name ) newErrors.first_name = 'Cannot Be Blank'\n\t if ( !last_name ) newErrors.last_name = 'Cannot Be Blank'\n\t if ( !this.emailIsValid(email) && email) newErrors.email = 'Must be Valid Email'\n\t if ( !this.phoneIsValid(phone) && phone) newErrors.phone = 'Must be Valid Phone Number'\n\t if ( !phone && !email ) {newErrors.phone = 'Phone Or Email Required'; newErrors.email = 'Phone Or Email Required';}\n return newErrors\n\t //add errors object to state\n }\n \n handleTextInput(e){\n\t this.setState({[e.target.name]: e.target.value})\n }\n\n render() {\n const settings = {\n\t \t dots: true,\n\t\t\t infinite:true,\n\t\t \t speed: 300,\n\t\t\t slidesToShow: 3\n\t\t\t \t }\t\n\t\t\t\n\t\n return (\n\t\n\t
\n\t\t\n\n\t\t
\n\t\t\tDefault Set {' '}\n\t\t\tWinter Gear {' '}\n\t\t\tWatersports Racks {' '}\n\t\t
\n\t\t
\n\t\t
\n\t\t Frequently Bought With\n\t\t \n\t\t
\n\t\t\t\t{\n\t\t\t\t\tthis.state.items.map(function(item) {\n \t\t\t return (\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t \n\t\t\t\t\t\t
\n \t\t\t \t);\n \t\t\t}, this)\n\t\t\t\t}\n\t\n\t\t \n\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\t\t\t\t\n\t\t \n\t\t\t\t{this.props.dealer} \n\t\t \n\n\t\t \n\t\t\t\t{ this.state.isSent && \n\t\t\t\t\t \n\t\t\t\t\t\t\t\tThank you for your submission - come in or someone will be in touch shortly!\n\t\t\t\t\t\t\t
\n\t\t\t\t}\n\t\t\n\t\t\t\t{ !this.state.isSent && \n\n\t\t \n\t\t
\n\t\t\t
\n\t\t\t
\n\t\t
\n\t\t\t\t{\n\t\t\t\t\tthis.state.items.map(function(item) {\n\t\t \t\t\t return (\n\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t \t\t\t \t);\n\t\t \t\t\t}, this)\n\t\t\t\t}\n\n\t\t \n\t\t\t
\n\t\t
\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
{ this.props.year } { this.props.make } { this.props.model } \n\t\t\t\t\t\t\t
VIN: { this.props.vin } \n\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tAccessory \n\t\t\t\t\t\t\tSKU \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\n\t\t\t\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.state.selected_items.map(function(item) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t{item.title} {item.sku} )\n\t\t\t\t\t\t\t}, this)\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t \t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t{this.state.isSubmitting && }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tLets Talk \n\t\t\t\t\t\t\t\t\t\t{this.state.isSent && \n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\tThank you - someone will be in touch with you shortly! \n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t}\n\t\t\n\t\t\n\t\t\t\t\t \n\n\t\t\t\t\t \n\t\t\t\t\t \t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t\t\tAccessory prices do not include sales tax or installation. Consult with your local dealer. Proper installation to be confirmed by dealership.\n\t\t\t\t\t\t\t\t\t\t\t\tBy submitting your contact information, you consent to be contacted by telephone about purchasing a vehicle or obtaining vehicle financing. Clicking on the Submit button above is your electronic signature.\n\t\t\t\t\t \t\t\t\t\t\t
\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\n\t\t\t\t\n
\n \n );\n }\n \n}","const reportWebVitals = onPerfEntry => {\n if (onPerfEntry && onPerfEntry instanceof Function) {\n import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\n getCLS(onPerfEntry);\n getFID(onPerfEntry);\n getFCP(onPerfEntry);\n getLCP(onPerfEntry);\n getTTFB(onPerfEntry);\n });\n }\n};\n\nexport default reportWebVitals;\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport XSRE from './XSRE';\nimport reportWebVitals from './reportWebVitals';\n\nReactDOM.render(\n \n \n ,\n document.getElementById('xsre')\n);\n\n// If you want to start measuring performance in your app, pass a function\n// to log results (for example: reportWebVitals(console.log))\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\nreportWebVitals();\n"],"sourceRoot":""}