Vue.config.devtools=true;
Vue.use(VeeValidate);
new Vue({
template: `<div id="quoteapp" v-cloak>
<div class="panel panel-primary">
<div class="panel-heading clearfix">
<div class="pull-left" v-if="page==1">Shipping Details</div>
<div class="pull-left" v-if="page==2">Locations</div>
<div class="pull-left" v-if="page==3">
Contact Information
</div>
<div class="pull-right">Page {{ page }}/3</div>
</div>
<div class="panel-body">
<form
class="form-horizontal"
action=""
ref="quoteForm"
method="post"
id="quoteForm"
@submit.prevent="handleNext"
>
<input type="hidden" name="quote_submitted" value="">
<input type="hidden" name="grecaptcha_token" value="">
<input type="hidden" name="country_from_id" value="" v-model="countryFromID">
<input type="hidden" name="country_to_id" value="" v-model="countryToID">
<input type="hidden" name="import_export" id="import_export" v-model="ieTypeSelected" value=""/>
<div class="clearfix" v-show="page==1">
<div
:class="[
'form-group',
errors.has('step_1.firstServices')
? 'has-error'
: ''
]"
v-show="shipmentTypeSelected.length==0"
>
<label
for="shipmentType"
class="col-sm-6 control-label"
>What do you want to move?</label
>
<div class="col-sm-6">
<select
name="firstServices"
id="shipmentType"
class="form-control"
@change="MDhandleCountries"
v-model="shipmentTypeSelected"
v-validate="'required'"
data-vv-scope="step_1"
>
<option
v-for="(value,
key,
index) in shipmentType"
:key="key"
:value="key"
:selected="value==shipmentTypeSelected"
>{{ value }}</option
>
</select>
</div>
</div>
<div
:class="[
'form-group',
errors.has('step_1.vehicle_type')
? 'has-error'
: ''
]"
v-if="shipmentTypeSelected=='auto'"
>
<div class="col-sm-12">
<div class="row" style="display:flex;justify-content:center;">
<label style="margin-right:10px;" class="clearfix control-label"
>Choose</label
>
<div
class="clearfix"
style="margin-right:10px;"
v-for="(value,
key,
index) in vehicleType"
:key="key"
>
<label
style="width:110px;"
:class="[
'btn btn-block',
vehicleTypeSelected==key
? 'btn-primary'
: 'btn-default'
]"
>{{ value }}
<input
type="radio"
v-model="vehicleTypeSelected"
class="hidden"
:value="key"
v-validate="'required'"
data-vv-scope="step_1"
@change="
handleVehicleTypeSelection(
'vehicleTypeSelected'
)
"
name="vehicle_type"
/>
</label>
</div>
</div>
</div>
</div>
<div
class="form-group"
v-if="
shipmentTypeSelected=='auto' &&
vehicleTypeSelected.length &&
vehicleTypeSelected=='car'
"
>
<div
class="clearfix"
style="margin-bottom:15px"
v-for="(car, carIndex) in cars"
:key="carIndex"
>
<div class="clearfix">
<div
:class="[
'col-xs-4',
carIndex===0 &&
errors.has('step_1.vechicle_year[]')
? 'has-error'
: ''
]"
>
<select
name="vechicle_year[]"
v-model="vechicle_year[carIndex]"
class="form-control"
data-vv-scope="step_1"
v-validate="
carIndex===0 ? 'required':''
"
>
<option :value="undefined"
>Select Year</option
>
<option value="Other">Other</option>
<option
v-for="i in car.dateRange"
:value="i"
:selected="
vechicle_year[carIndex]==i
"
:key="i.id"
>{{ i }}</option
>
</select>
</div>
<div
:class="[
'col-xs-4',
carIndex===0 &&
errors.has('step_1.vechicle_make[]')
? 'has-error'
: ''
]"
>
<select
name="vechicle_make[]"
v-model="vechicle_make[carIndex]"
class="form-control"
:id="
'car_' + carIndex + '[][maker]'
"
@change="handleModel(carIndex)"
data-vv-scope="step_1"
v-validate="
carIndex===0 ? 'required':''
"
>
<option :value="undefined"
>Select Make</option
>
<option
:value="value.Make"
:key="value.Make"
:selected="
vechicle_make[carIndex]==value.Make
"
v-for="(value,
key,
index) in car.carType"
>{{ value.Make }}</option
>
</select>
</div>
<div
:class="[
'col-xs-4',
carIndex===0 &&
errors.has('step_1.model[]')
? 'has-error'
: ''
]"
>
<select
name="model[]"
class="form-control"
v-model="model[carIndex]"
data-vv-scope="step_1"
v-validate="
carIndex===0 ? 'required':''
"
>
<option :value="undefined"
>Select Model</option
>
<option
v-for="(model,
index) in car.carModels"
:key="model"
:value="model"
:selected="
model[carIndex]==model
"
>{{ model }}</option
>
</select>
</div>
</div>
<div class="clearfix ev-checkbox">
<div
:class="[
'col-xs-12',
carIndex===0 &&
errors.has('step_1.ev[]')
? 'has-error'
: ''
]"
>
<label
:class="[
'btn btn-block',
]"
>
<input class="ev-hidden" name="ev[]" value="off" type="hidden" />
<input
name="ev[]"
type="checkbox"
v-model="ev[carIndex]"
data-vv-scope="step_1"
true-value="yes"
false-value="no"
class="ev-visible"
/>Is this vehicle Electric/Hybrid?
</label>
</div>
</div>
</div>
<div class="col-sm-12 text-center">
<a
href="javascript:void(0)"
role="button"
class="text text-primary"
@click="addMoreVehicle('car')"
><u>+ Add Vehicle</u></a
>
</div>
</div>
<div
class="form-group"
v-if="
shipmentTypeSelected=='auto' &&
vehicleTypeSelected.length &&
vehicleTypeSelected=='motorcycle'
"
>
<div
class="clearfix"
style="margin-bottom:15px"
v-for="(motorcycle, motorIndex) in motorcycles"
:key="motorIndex"
>
<div
:class="[
'col-xs-4',
motorIndex===0 &&
errors.has('step_1.motorcycle_year[]')
? 'has-error'
: ''
]"
>
<select
name="motorcycle_year[]"
class="form-control"
data-vv-scope="step_1"
v-validate="
motorIndex===0 ? 'required':''
"
>
<option value="">Select Year</option>
<option value="Other">Other</option>
<option
v-for="i in motorcycle.dateRange"
:value="i"
:key="i.id"
>{{ i }}</option
>
</select>
</div>
<div
:class="[
'col-xs-4',
motorIndex===0 &&
errors.has('step_1.motorcycle_make[]')
? 'has-error'
: ''
]"
>
<select
name="motorcycle_make[]"
class="form-control"
data-vv-scope="step_1"
v-validate="
motorIndex===0 ? 'required':''
"
:id="'motor_make_' + motorIndex"
>
<option value="">Select Make</option>
<option
:value="value"
:key="value"
:selected="index===0"
v-for="(value,
key,
index) in motorcycle.mcMake"
>{{ value }}</option
>
</select>
</div>
<div
:class="[
'col-xs-4',
motorIndex===0 &&
errors.has('step_1.motorcycle_model[]')
? 'has-error'
: ''
]"
>
<select
name="motorcycle_model[]"
data-vv-scope="step_1"
v-validate="
motorIndex===0 ? 'required':''
"
class="form-control"
>
<option
v-for="(model,
key,
index) in motorcycle.mcModel"
:key="key"
:selected="index===0"
:value="key"
>{{ model }}</option
>
</select>
</div>
</div>
<div class="col-sm-12 text-center">
<a
href="javascript:void(0)"
role="button"
class="text text-primary"
@click="addMoreVehicle('motorcycle')"
><u>+ Add new motorcycle</u></a
>
</div>
</div>
<div
class="clearfix"
v-if="shipmentTypeSelected=='hhg'"
>
<div class="form-group">
<div class="clearfix">
<div class="col-xs-12">
<div class="row" style="display:flex;justify-content:space-around;align-items:center">
<div
:class="[
'clearfix',
errors.has('step_1.UHDESCGOOD')
? 'has-error'
: ''
]"
>
<select
name="UHDESCGOOD"
v-model="hhg_content"
class="form-control"
data-vv-scope="step_1"
v-validate="'required'"
>
<option value=""
>Select Contents</option
>
<option
:value="key"
:key="key"
:selected="
hhg_content==value
"
v-for="(value,
key,
index) in hhg_options"
>{{ key }}</option
>
</select>
</div>
<div class="clearfix">Or Use Our</div>
<a
style="display:block;text-align:right;"
href="javascript:void(0)"
@click="calcLink()"
>
<img
src="https://www.schumachercargo.com/images/schumacherCalculatorButton-SM.png"
/>
</a>
</div>
</div>
</div>
</div>
<div class="form-group" style="margin-bottom:0">
<div class="clearfix">
<div class="col-sm-6"></div>
<div class="col-sm-6 md-readonly-calc">
<p style="margin-bottom:15px;">
<input
type="text"
name="UHCMV"
class="form-control"
:value="calcContent()"
readonly
/>
<textarea style="display:none;" name="hhg_details" :value="hhg_details"></textarea>
<textarea style="display:none;" name="hhg_details_crm" :value="hhg_details_crm"></textarea>
</p>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-6"
>Want to add vehicles?</label
>
<div class="col-sm-6">
<div class="row">
<div
class="col-xs-6"
:key="op"
v-for="(op, index) in ['Yes', 'No']"
>
<label
style="width:100px;"
:class="[
'btn btn-block',
add_vehicle==op.toLowerCase()
? 'btn-primary'
: 'btn-default'
]"
>{{ op }}
<input
type="radio"
class="hidden"
@change="
handleVehicleTypeSelection(
'add_vehicle'
)
"
v-model="add_vehicle"
name="add_vehicle"
:value="op.toLowerCase()"
/>
</label>
</div>
</div>
</div>
</div>
<div
class="form-group"
v-if="
shipmentTypeSelected=='hhg' &&
add_vehicle=='yes'
"
>
<div
class="clearfix"
style="margin-bottom:15px"
v-for="(car, carIndex) in cars"
:key="carIndex"
>
<div class="clearfix">
<div
:class="[
'col-xs-4',
carIndex===0 &&
errors.has('step_1.vechicle_year[]'
)
? 'has-error'
: ''
]"
>
<select
name="vechicle_year[]"
class="form-control"
data-vv-scope="step_1"
v-validate="
carIndex===0
? 'required'
: ''
"
>
<option :value="undefined"
>Select Year</option
>
<option value="Other"
>Other</option
>
<option
v-for="i in car.dateRange"
:value="i"
:key="i.id"
>{{ i }}</option
>
</select>
</div>
<div
:class="[
'col-xs-4',
carIndex===0 &&
errors.has('step_1.vechicle_make[]'
)
? 'has-error'
: ''
]"
>
<select
name="vechicle_make[]"
class="form-control"
:id="
'car_' +
carIndex +
'[][maker]'
"
@change="handleModel(carIndex)"
data-vv-scope="step_1"
v-validate="
carIndex===0
? 'required'
: ''
"
>
<option :value="undefined"
>Select Make</option
>
<option
:value="value.Make"
:key="value.Make"
v-for="(value,
key,
index) in car.carType"
>{{ value.Make }}</option
>
</select>
</div>
<div
:class="[
'col-xs-4',
carIndex===0 &&
errors.has('step_1.model[]')
? 'has-error'
: ''
]"
>
<select
name="model[]"
class="form-control"
data-vv-scope="step_1"
v-validate="
carIndex===0
? 'required'
: ''
"
>
<option :value="undefined"
>Select Model</option
>
<option
v-for="(model,
index) in car.carModels"
:key="model"
:value="model"
>{{ model }}</option
>
</select>
</div>
<div class="clearfix ev-checkbox">
<div
:class="[
'col-xs-12',
carIndex===0 &&
errors.has('step_1.ev[]')
? 'has-error'
: ''
]"
>
<label
:class="[
'btn btn-block',
]"
>
<input class="ev-hidden" name="ev[]" value="off" type="hidden" />
<input
name="ev[]"
type="checkbox"
data-vv-scope="step_1"
true-value="yes"
false-value="no"
class="ev-visible"
/>Is this vehicle Electric/Hybrid?
</label>
</div>
</div>
</div>
</div>
<div class="col-sm-12 text-center">
<a
href="javascript:void(0)"
role="button"
class="text text-primary"
@click="addMoreVehicle('car')"
><u>+ Add Vehicle</u></a
>
</div>
</div>
</div>
<div
class="clearfix"
v-if="shipmentTypeSelected=='specialty'"
>
<div
style="margin-bottom:0"
:class="[
'form-group',
errors.has('step_1.speciality_type')
? 'has-error'
: ''
]"
>
<label
class="col-sm-12 control-label"
style="margin-bottom:15px"
>What are you shipping?</label
>
<div class="col-sm-12">
<div class="row">
<div
style="margin-bottom:15px"
class="col-sm-3"
:key="key"
v-for="(value,
key,
index) in speciality_opt"
>
<label
:class="[
'btn btn-block',
selected_specility==key
? 'btn-primary'
: 'btn-default'
]"
>{{ key }}
<input
type="radio"
class="hidden"
name="speciality_type"
v-model="selected_specility"
:value="key"
data-vv-scope="step_1"
v-validate="'required'"
/>
</label>
</div>
</div>
</div>
</div>
</div>
<div
class="form-group"
v-if="
shipmentTypeSelected=='specialty' &&
selected_specility.length!=0
"
>
<div class="clearfix">
<div
style="margin-bottom:15px"
:class="[
'col-sm-4',
handleNameError(index)
? 'has-error'
: ''
]"
:key="value"
v-for="(value, index) in [
'Make',
'Model',
'Length(ft)',
'Width(ft)',
'Height(ft)',
'Weight(lbs)'
]"
>
<select
class="form-control"
:name="
speciality_opt[selected_specility][
index
]
"
data-vv-scope="step_1"
v-validate="'required'"
:data-vv-as="'speciality_' + index"
v-if="
index==0 &&
selected_specility=='Motor Home/RV'
"
>
<option value="">Select Make</option>
<option
:value="value"
:key="value.id"
v-for="value in speciality_motor"
>{{ value }}</option
>
</select>
<select
class="form-control"
v-validate="'required'"
data-vv-scope="step_1"
:data-vv-as="'speciality_' + index"
:name="
speciality_opt[selected_specility][
index
]
"
v-else-if="
index==0 &&
selected_specility=='Boat/Yacht'
"
>
<option value="">Select Make</option>
<option
:value="value"
:key="value.id"
v-for="value in speciality_boat"
>{{ value }}</option
>
</select>
<input
v-validate="'required'"
data-vv-scope="step_1"
v-else
type="text"
:data-vv-as="'speciality_' + index"
class="form-control"
:placeholder="dynamic_placeholder(index, value)"
:name="
speciality_opt[selected_specility][
index
]
"
/>
</div>
</div>
</div>
<div
:class="[
'form-group',
errors.has('step_1.import_export')
? 'has-error'
: ''
]"
v-show="countrySelect.length==0"
>
<label
for="import_export"
class="col-sm-6 control-label"
>Where are you moving to?</label
>
<div class="col-sm-6">
<select
name="select_country"
id="select_country"
class="form-control"
v-model="countrySelect"
@change="updateIeType"
data-vv-scope="step_1"
v-validate="'required'"
>
<option value="" selected="selected">Select One</option>
<option
:data-md="value.name=='USA' ? 'importing':'exporting' "
v-for="(value, key, index) in ieType_country_comp"
:key="value.name"
:value="value.name"
:selected="value==countrySelect"
>{{ value.name }}</option
>
</select>
<a
class="help-block"
v-if="
vehicleTypeSelected=='car' &&
ieTypeSelected=='importing'
"
href="http://wadecreativenetwork.net/projects/scl/import-tool.php"
target="_blank"
@click="handleSaving"
><u class="text-primary"
>Check car import eligibility</u
></a
>
</div>
</div>
</div>
<div class="col-sm-12 clearfix" v-show="page==2">
<div
v-if="ieTypeSelected.length!=0"
:class="[
'form-group',
errors.has(ieTypeSelected=='exporting'
? 'step_2.StateProv_From'
: 'step_2.Country_From'
)
? 'has-error'
: ''
]"
>
<select
class="form-control"
@change="handle_city('origin_sc'); handle_country_id()"
v-validate="'required'"
data-vv-scope="step_2"
v-model="origin_sc"
:name="
ieTypeSelected=='exporting'
? 'StateProv_From'
: 'Country_From'
"
>
<option value="">{{
ieTypeSelected=="exporting"
? "Origin State"
: "Origin Country"
}}</option>
<option
:key="value.name"
:value="value.name"
v-for="(value, key, index) in origin_sc_comp.filter(opt=> opt.name!=='USA')"
:selected="value.name==origin_sc"
>{{ value.name }}</option
>
</select>
</div>
<div
v-if="ieTypeSelected=='exporting'"
:class="[
'form-group',
errors.has('step_2.Zip_From') ? 'has-error':''
]"
>
<input
type="text"
maxlength="5"
id="md--zip-from"
name="Zip_From"
class="form-control"
placeholder="Origin Zip Code - ONLY 5 DIGITS"
v-validate="'required'"
data-vv-scope="step_2"
autocomplete="off"
/>
</div>
<div
v-if="ieTypeSelected=='importing'"
:class="[
'form-group',
errors.has('step_2.City_From')
? 'has-error'
: ''
]"
>
<select
:key="origin_sc"
class="form-control"
v-model="cityFrom"
v-validate="'required'"
data-vv-scope="step_2"
name="City_From"
:tabindex="isLoadingCities.origin ? -1:0"
:style="{
pointerEvents: isLoadingCities.origin ? 'none':'auto',
opacity: isLoadingCities.origin ? 0.6:1,
}"
>
<option value="">{{ isLoadingCities.origin ? 'Loading…':'Origin City' }}</option>
<option v-for="c in originCities" :key="c.city_name" :value="c.city_name" > {{ c.city_name }} </option>
</select>
</div>
<div
v-if="ieTypeSelected.length!=0"
:class="[
'form-group',
errors.has(ieTypeSelected=='exporting'
? 'step_2.Country_To'
: 'step_2.StateProv_To'
)
? 'has-error'
: ''
]"
>
<select
class="form-control"
@change="handle_city('destination_sc'); handle_country_id()"
v-validate="'required'"
data-vv-scope="step_2"
v-model="destination_sc"
:name="
ieTypeSelected=='exporting'
? 'Country_To'
: 'StateProv_To'
"
>
<option value="" :class='ieTypeSelected=="exporting" ? "md-destination-country":"md-destination-state"'>{{
ieTypeSelected=="exporting"
? "Destination Country"
: "Destination State"
}}</option>
<option
:key="value.name"
:value="value.name"
v-for="(value, key, index) in desination_sc_comp.filter(opt=> opt.name!=='USA')"
:selected="value.name==destination_sc"
>{{ value.name }}</option
>
</select>
</div>
<div
v-if="ieTypeSelected=='exporting'"
:class="[
'form-group',
errors.has('step_2.City_To') ? 'has-error':''
]"
>
<select
:key="destination_sc"
class="form-control"
v-model="cityTo"
v-validate="'required'"
data-vv-scope="step_2"
name="City_To"
:tabindex="isLoadingCities.destination ? -1:0"
:style="{
pointerEvents: isLoadingCities.destination ? 'none':'auto',
opacity: isLoadingCities.destination ? 0.6:1,
}"
>
<option value="">{{ isLoadingCities.destination ? 'Loading…':'Destination City' }}</option>
<option v-for="c in destinationCities" :key="c.city_name" :value="c.city_name">{{ c.city_name }}</option>
</select>
</div>
<div
v-if="ieTypeSelected=='importing'"
:class="[
'form-group',
errors.has('step_2.Zip_To') ? 'has-error':''
]"
>
<input
type="text"
id="md--zip-to"
maxlength="5"
name="Zip_To"
class="form-control"
placeholder="Destination Zip Code - ONLY 5 DIGITS"
v-validate="'required'"
data-vv-scope="step_2"
autocomplete="off"
/>
</div>
<div
:class="[
'form-group',
errors.has('step_2.estmovedate')
? 'has-error'
: ''
]"
>
<input
type="text"
name="estmovedate"
id="estmovedate"
class="form-control"
placeholder="Estimated Move Date"
autocomplete="off"
v-validate="'required'"
data-vv-scope="step_2"
/>
</div>
</div>
<div class="clearfix" v-show="page==3">
<div class="col-sm-12">
<div
:class="[
'form-group',
errors.has('step_3.your-f-name')
? 'has-error'
: ''
]"
>
<input
type="text"
class="form-control"
name="your-f-name"
v-validate="'required'"
data-vv-scope="step_3"
placeholder="First Name"
autocomplete="off"
/>
</div>
<div
:class="[
'form-group',
errors.has('step_3.your-l-name')
? 'has-error'
: ''
]"
>
<input
type="text"
class="form-control"
name="your-l-name"
v-validate="'required'"
data-vv-scope="step_3"
placeholder="Last Name"
autocomplete="off"
/>
</div>
<div
:class="[
'form-group',
errors.has('step_3.email')
? 'has-error'
: ''
]"
>
<input
type="text"
class="form-control"
name="email"
v-validate="'required|email'"
data-vv-scope="step_3"
placeholder="Email"
autocomplete="off"
/>
</div>
<div
:class="[
'form-group',
errors.has('step_3.phone')||phoneError
? 'has-error'
: ''
]"
>
<input
type="text"
class="form-control"
name="phone"
v-validate="'required'"
data-vv-scope="step_3"
placeholder="Phone Number"
autocomplete="off"
/>
<input type="hidden" name="phone_e164" v-model="phone_e164" />
<input type="hidden" name="phone_country_iso" v-model="phone_country_iso" />
<span v-if="phoneError" class="help-block">{{ phoneError }}</span>
</div>
<div class="form-group">
<label style="display:flex; align-items:flex-start; gap:8px;">
<input
type="checkbox"
name="sms_opt_in"
v-model="sms_opt_in"
true-value="yes"
false-value="no"
style="display: block; width: 20px; height: 20px; -webkit-appearance: checkbox;"
/>
<span style="margin-top: 2px; font-weight: 600;">
Opt-In for SMS Quote Information and Tracking Updates.
</span>
</label>
</div>
<div
:class="[
'form-group md-last-step',
errors.has('step_3.your-f-name')
? 'has-error'
: ''
]"
>
<select name="md_how_heard">
<option value="SCL" selected>How did you hear of us?</option>
<option value="Web">Web</option>
<option value="Recommendation">Recommendation</option>
<option value="Returning">Returning Customer</option>
<option value="AI">AI Search</option>
</select>
</div>
</div>
</div>
<div className="clearfix" style="text-align:right">
<button
class="btn btn-primary btn-large text-uppercase"
type="submit"
id="next_button"
:disabled="submitting"
name="getQuote"
>
{{ page==3 ? "Get your quote":"Next" }}
</button>
</div>
</form>
</div>
</div>
</div>`,
el: '#quoteapp',
data(){
return {
md: '',
submitting: false,
page: 1,
origin_sc: '',
hhg_calc: '',
md_how_heard: '',
hhg_details: '',
hhg_details_crm: '',
destination_sc: '',
vechicle_year: [],
vechicle_make: [],
model: [],
ev: [],
sms_opt_in: 'no',
phone_e164: '',
phone_country_iso: 'us',
phoneError: '',
iti: null,
speciality_opt: {
'Motor Home/RV': [
'rv_make',
'rv_model',
'rv_length',
'rv_width',
'rv_height',
'rv_weight'
],
'Boat/Yacht': [
'boat_make',
'boat_model',
'boat_length',
'boat_width',
'boat_height',
'boat_weight'
],
'Oversized Cargo': [
'cargo_make',
'cargo_model',
'cargo_length',
'cargo_width',
'cargo_height',
'cargo_weight'
],
'Air Freight': [
'commodity',
'numberofpieces',
'air_length',
'air_width',
'air_height',
'air_weight'
]
},
hhg_options: {
'10 Boxes Only': '50 cft',
'20 Boxes Only': '100 cft',
'1-2 Bedroom Condo': '300 to 500 cft',
'1-2 Bedroom Apartment': '300 to 500 cft',
'1 Bedroom Home': '500 to 700 cft',
'2 Bedroom Home': '700 to 1000 cft',
'3 Bedroom Home': '1000 to 1400 cft',
'4+ Bedroom Home': '1400 to 2000 cft',
'Custom Quote Size': ''
},
states: [],
cities: [],
countries: [],
md_countries: [],
add_vehicle: 'no',
hhg_content: '',
selected_specility: '',
shipmentType: {
'': 'Shipment Type',
auto: 'Vehicles',
hhg: 'Household Goods',
specialty: 'Specialty (Boat/RV/Oversize/Air Freight)'
},
speciality_motor: [
'Cedar Creek',
'Coachman',
'Dutchman',
'Fleetwood',
'Forest River',
'Georgie Boy',
'Gulfstream',
'Keystone',
'Salem',
'Sierra',
'Silver Back',
'Survivor',
'Siena',
'V Cross',
'Wildcat Outlaw',
'Winnebago',
'XLR',
'Other'
],
speciality_boat: [
'Baha/Baja',
'Bayliner',
'Bennetal',
'Boston Whaler',
'Catalina',
'Cabo',
'Carver',
'Chris Craft',
'Commander',
'Duffy',
'Eliminator',
'Fountain',
'Grand Banks',
'Hatteras',
'Hunter',
'Johnson',
'Luhrs',
'Master Craft',
'Maxum',
'Mainship',
'Silverton',
'Stevens',
'Viking',
'Wellcraft',
'Other'
],
ieType: '',
shipmentTypeSelected: '',
ieTypeSelected: '',
countrySelect: '',
countryFromID: '',
countryToID: '',
originCities: [],
destinationCities: [],
cityFrom: '',
cityTo: '',
isLoadingCities: { origin: false, destination: false },
cityReqSeq: { origin: 0, destination: 0 },
defaultCountrySelect: '',
defaultShipmentType: '',
defaultIeType: '',
vehicleTypeSelected: '',
dateRange: [],
vehicleType: {
car: 'Car',
motorcycle: 'Motorcycle'
},
cars: [],
motorcycles: [],
carType: [
{	Make: 'AC',
Models: [
'other',
'Cobra',
'MKVI',
'MKII',
'Zagato'
]
},
{
Make: 'Acura',
Models: [
'other',
'1.6 EL',
'1.7 EL',
'2.3 CL',
'2.5 TL',
'3.0 CL',
'3.2 TL',
'3.5 RL',
'CL',
'CSX',
'EL',
'ILX',
'Integra',
'Legend',
'MDX',
'NSX',
'NSX-T',
'RDX',
'RL',
'RLX',
'RSX',
'SLX',
'TL',
'TLX',
'TSX',
'Vigor',
'ZDX'
]
},
{
Make: 'Alfa Romeo',
Models: [
'other',
'145',
'146',
'147',
'155',
'156',
'159',
'164',
'166',
'33',
'75',
'4C',
'Alfetta',
'GT',
'GTV',
'GTV-6',
'GTV6',
'Guiletta',
'Guilia',
'Milano',
'MiTo',
'Spider',
'Stelvio'
]
},
{ Make: 'AM General',
Models: [
'other',
'Alliance'
]
},
{
Make: 'AMC',
Models: [
'other',
'Ambassador',
'AMX',
'Concord',
'Concorde',
'Eagle',
'Eagle 30',
'Eagle 50',
'Encore',
'Gremlin',
'Hornet',
'Javelin',
'Marlin',
'Matador',
'Pacer',
'Rambler',
'Rebel',
'Spirit'
]
},
{
Make: 'Aston Martin',
Models: [
'other',
'AMV8 Vantage',
'Bulldog',
'DB AR1',
'DB2',
'DB3 Spyder',
'DB3S',
'DB4',
'DB5',
'DB6',
'DB7',
'DB9',
'DB9 Sports Pack',
'DB11',
'DBR1',
'DBR4',
'DBR9',
'DBRS9',
'DBS',
'DP212',
'Lagonda',
'Le Mans',
'MK II Ulster Le',
'Prodrive',
'Rapide',
'Type C Speed Mod',
'Ulster',
'V12 Vanquish',
'V8',
'V8 Coupe',
'V8 Vantage',
'V8 Volante',
'Valkyrie',
'Vanquish Roadste',
'Vanquish S',
'Vantage',
'Virage',
'Vulcan',
'Zagato DB4 GT'
]
},
{
Make: 'Audi',
Models: [
'other',
'100',
'100 C4 Series',
'100 V6',
'200',
'4000',
'5000',
'80',
'80 Cabriolet',
'90',
'A1',
'A3',
'A4',
'A4 Cabriolet',
'A5',
'A6',
'A7',
'A8',
'Allroad',
'Allroad Quattro',
'Cabriolet',
'Coupe',
'Fox',
'Q2',
'Q3',
'Q5',
'Q7',
'Quattro',
'R8',
'RS 4',
'RS 6',
'S3',
'S4',
'S5',
'S6',
'S7',
'S8',
'TT',
'V8'
]
},
{ Make: 'Austin', Models: ['other', 'Coupe', 'FX3', 'FX4', 'Moke'] },
{
Make: 'Austin Healey',
Models: ['other', '100', '3000', 'Mark I', 'Mark II', 'Sprite']
},
{
Make: 'Bentley',
Models: [
'other',
'Amage',
'Arnage',
'Azure',
'Bentayga',
'Brooklands',
'Continental',
'Continental Flyi',
'Continental GT',
'Continental GTC',
'Continental R',
'Eight',
'Flying Spur',
'GT',
'Mulsanne',
'Turbo',
'Turbo R'
]
},
{
Make: 'BMW',
Models: [
'other',
'1 Series',
'2 Series',
'4 Series',
'2000',
'2002',
'2800',
'3.0',
'318',
'320',
'323',
'325',
'328',
'330',
'335',
'524',
'525',
'528',
'530',
'533',
'535',
'540',
'545',
'550',
'630',
'633',
'635',
'645',
'650',
'733',
'735',
'740',
'745',
'750',
'760',
'840',
'850',
'Alpina',
'Bavaria',
'I3',
'I8',
'Isetta',
'L6',
'L7',
'M',
'M2',
'M4',
'M Coupe',
'M Roadster',
'M3',
'M5',
'M6',
'X1',
'X3',
'X4',
'X5',
'X6',
'Z1',
'Z3',
'Z4',
'Z8'
]
},
{ Make: 'Bricklin', Models: ['other', 'SV-1'] },
{
Make: 'Bugatti',
Models: [
'other',
'Chiron',
'EB110GT',
'Veyron'
]
},
{
Make: 'Buick',
Models: [
'other',
'Allure',
'Apollo',
'Cascada',
'Centurion',
'Century',
'Electra',
'Enclave',
'Encore',
'Envision',
'Estate wagon',
'Excelle',
'GL6',
'GL8',
'Gran Sport',
'Grand National',
'Invicta',
'Lacrosse',
'LeSabre',
'Lucerne',
'Park Avenue',
'Rainier',
'Reatta',
'Regal',
'Rendezvous',
'Riviera',
'Roadmaster',
'Skyhawk',
'Skylark',
'Somerset',
'Somerset Regal',
'Super',
'Terraza',
'Velite',
'Verano',
'Wildcat',
'Y-Job',
'Series 100',
'Series 30',
'Series 40',
'Series 50',
'Series 60',
'Series 70',
'Series 700',
'Series 75',
'Series 80',
'Series 90'
]
},
{
Make: 'Cadillac',
Models: [
'other',
'Allante',
'ATS',
'ATS V',
'Biarritz',
'Brougham',
'Calais',
'Catera',
'Cimarron',
'Concours',
'Coupe de Ville',
'CTS',
'CTS-V',
'CT6',
'Deluxe',
'DeVille',
'DHS',
'DTS',
'Eldorado',
'Escalade',
'Escalade ESV',
'Escalade EXT',
'ETC',
'Fleetwood',
'Fleetwood Brough',
'Sedan de Ville',
'Seventy-Five',
'Seville',
'Sixty Special',
'SLS',
'SRX',
'STS',
'XLR',
'XLR-V',
'XTS',
'XT5'
]
},
{ Make: 'Checker', Models: ['other', 'Marathon'] },
{
Make: 'Chevrolet',
Models: [
'other',
'Alero',
'Astro',
'Astro Van',
'Astro Cargo',
'Avalanche',
'Aveo',
'Aveo 5',
'Beauville',
'Bel Air',
'BelAir',
'Beretta',
'Biscayne',
'Blazer',
'Bolt',
'C/K 10 Series',
'C/K 1500',
'C/K 2500',
'C/K 2500 Series',
'C/K 3500',
'C1500',
'C2500',
'C3500',
'C10/K10',
'C20/K20',
'C30/K30',
'Camaro',
'Caprice',
'Cavalier',
'Celebrity',
'Chevelle',
'Chevette',
'Chevy Van',
'Chevy Van Classi',
'Cheyenne',
'Citation',
'CK-10',
'Classic',
'Cobalt',
'Colorado',
'Corsica',
'Corvair',
'Corvette',
'Cruz',
'Del Ray',
'Deluxe',
'El Camino',
'Epica',
'Equinox',
'Express',
'Express 1500-8 ',
'Express 2500-1',
'Express 3500-1',
'Express Cargo',
'Express Cargo 15',
'Express Cargo 25',
'Express Cargo 35',
'G1500',
'G2500',
'Grand Blazer',
'Half Ton Pick-Up',
'HHR',
'Impala',
'Impala SS',
'K1500',
'K2500',
'K3500',
'Kalos',
'Lacetti',
'Lumina',
'Lumina APV',
'LUV',
'Malibu',
'Malibu Maxx',
'Metro',
'Model 490',
'Model AC 1929-31',
'Model DA Master',
'Monte Carlo',
'Monza',
'Nomad',
'Nova',
'Optra',
'Optra 5',
'Optra Wagon',
'Pickup 3100',
'Prizm',
'Rezzo',
'S-10',
'S-10 Blazer',
'Silverado 1500',
'Silverado 1500 2',
'Silverado 1500 4',
'Silverado 1500 S',
'Silverado 1500HD',
'Silverado 2500',
'Silverado 2500 2',
'Silverado 2500 4',
'Silverado 2500HD',
'Silverado 3500',
'Silverado 3500 2',
'Silverado 3500 4',
'Sonic',
'Spark',
'Spectrum',
'Sportvan',
'Sprint',
'SSR',
'Standard 6',
'Styleline',
'Stylemaster',
'Suburban',
'Suburban 1500',
'Suburban 2500',
'Suburban Old',
'Tacuma',
'Tahoe',
'Tahoe Limited/Z7',
'Tracker',
'Trailblazer',
'Trailblazer EXT',
'Traverse',
'Trax',
'Uplander',
'Van G10',
'Van G20',
'Van G30',
'Vega',
'Venture',
'Volt',
'Z24',
'Z28',
'Z34'
]
},
{
Make: 'Chrysler',
Models: [
'other',
'300',
'300C',
'300C SRT-8',
'300M',
'72',
'77',
'Aspen',
'Caravan',
'Cirrus',
'Concorde',
'Conquest',
'Cordoba',
'Crossfire',
'Crossfire SRT-6',
'Daytona',
'Dynasty',
'E Class',
'Fifth Avenue',
'Grand Voyager',
'Imperial',
'Intrepid',
'Laser',
'Le Baron',
'LeBaron',
'LHS',
'Neon',
'New Yorker',
'Newport',
'Pacifica',
'Prowler',
'PT Cruiser',
'Royal',
'Saratoga',
'Sebring',
'Six',
'SRT6',
'SRT8',
'Stratus',
'TC',
'Town and Country',
'Vision',
'Voyager',
'Windsor'
]
},
{
Make: 'Citroen',
Models: [
'other',
'C-Zero',
'C1',
'C2',
'C3',
'C4',
'C5',
'C6',
'DS',
'DS3',
'DS4',
'DS5',
'XM'
]
},
{ Make: 'Cord', Models: ['All'] },
{
Make: 'Daewoo',
Models: [
'other',
'Cielo',
'Espero',
'Evanda',
'Kalos',
'Korando',
'Lacetti',
'Lanos',
'Leganza',
'Matiz',
'Musso',
'Nexia',
'Nubira',
'Rezzo',
'Tacuma'
]
},
{
Make: 'Daihatsu',
Models: [
'other',
'200SX',
'Charade',
'Cuore',
'Grand Move',
'Max',
'Move',
'Rocky',
'Sirion',
'Terios',
'YRV'
]
},
{ Make: 'Daimler', Models: ['other', '4.0', 'Double-Six'] },
{
Make: 'Datsun',
Models: [
'other',
'1200',
'1600',
'2000',
'200SX',
'210',
'240Z',
'260Z',
'280Z',
'280ZX',
'310',
'510',
'610',
'620',
'710',
'810',
'B210',
'F10',
'King Cab',
'Maxima',
'Micra',
'Pickup',
'PL720',
'Pulsar',
'Sentra',
'Stanza',
'Z-Series'
]
},
{
Make: 'DeLorean',
Models: ['other', '400', 'DMC Series', 'DMC-12']
},
{
Make: 'DeSoto',
Models: [
'other',
'Custom',
'Fireflite',
'Powermaster',
'Sedan',
'Sportsman'
]
},
{ Make: 'Detomaso', Models: ['other', 'Deauville', 'Pantera'] },
{
Make: 'Dodge',
Models: [
'other',
'400',
'600',
'Aries',
'Arrow',
'Aspen',
'Avenger',
'Caliber',
'Caravan',
'Challenger',
'Charger',
'Charger SRT-8',
'Colt',
'Conquest',
'Coronet',
'Custom',
'Dakota',
'Dakota 2dr Short',
'Dakota 4dr Short',
'Dart',
'Daytona',
'Diplomat',
'Dually Pickup',
'Durango',
'Dynasty',
'Fargo',
'Grand Caravan',
'Intrepid',
'Journey',
'Lancer',
'Magnum',
'Magnum SRT-8',
'Mini Ram Van',
'Mirada',
'Monaco',
'Neon',
'Neon SRT-4',
'Nitro',
'Omni',
'Omni 024',
'Polara',
'Power Wagon',
'Raider',
'Ram 100',
'Ram 150',
'Ram 1500',
'Ram 1500 2dr Lon',
'Ram 1500 2dr Sho',
'Ram 1500 4 dr Sho',
'Ram 200',
'Ram 250',
'Ram 2500',
'Ram 2500 2dr Lon',
'Ram 2500 4dr Lon',
'Ram 2500 4dr Sho',
'Ram 300',
'Ram 350',
'Ram 3500',
'Ram 3500 2dr Lon',
'Ram 3500 4dr Lon',
'Ram 3500 4dr Sho',
'Ram Cargo Van 15',
'Ram Cargo Van 25',
'Ram Cargo Van 35',
'Ram Mini Van',
'Ram Pickup 1500',
'Ram Pickup 2500',
'Ram Pickup 3500',
'Ram Van',
'Ram Wagon',
'Ram Wagon 1500',
'Ram Wagon 2500',
'Ram Wagon 3500',
'RamCharger',
'Rampage',
'Royal',
'Saratoga',
'Shadow',
'Spirit',
'Sportsman Wagon',
'Sprinter',
'Sprinter Cargo',
'SRT4',
'St. Regis',
'Stealth',
'Stratus',
'Super Bee',
'SX 2.0',
'Van',
'Viper',
'Wayfarer',
'WC 51'
]
},
{
Make: 'Eagle',
Models: [
'other',
'2000 GTX',
'Eagle 30',
'Medallion',
'Premier',
'Summit',
'Summit Wagon',
'Talon',
'Vision',
'Vista',
'Vista Wagon'
]
},
{
Make: 'Edsel',
Models: ['other', 'Corsair', 'Pacer', 'Ranger']
},
{
Make: 'Ferrari',
Models: [
'other',
'125',
'159',
'166',
'195',
'196',
'208',
'212',
'225',
'246',
'250',
'268',
'286',
'288',
'290',
'308',
'315',
'328',
'330',
'335',
'340',
'348',
'355',
'360',
'365',
'375',
'400',
'410',
'412',
'430',
'456',
'456M',
'488',
'500',
'512',
'550',
'575',
'575M',
'599',
'612',
'612 Scaglietti',
'625',
'712',
'735',
'812',
'860',
'BB512',
'Daytona',
'Enzo',
'F12',
'F 333 SP',
'F355',
'F360',
'F40',
'F430',
'F50',
'F550',
'GTB',
'GTC4Lusso',
'GTO',
'GTS',
'LaFerrari',
'Mondial',
'Portofino',
'Spider',
'Superamerica',
'Testa Rossa'
]
},
{
Make: 'Fiat',
Models: [
'other',
'125',
'130',
'131',
'500',
'500L',
'500X',
'600',
'Aerostar',
'Barchetta',
'Brava/Bravo',
'Cabriolet',
'Cinquecento',
'Croma',
'Dino',
'Ducato',
'Idea',
'Marea',
'Multipla',
'Palio',
'Panda',
'Punto',
'Punto Grande',
'Ritmo',
'Scudo',
'Seicento',
'Siena',
'Spider',
'Spyder',
'Stilo',
'Strada',
'Tempra',
'Tipo',
'Ulysse',
'Ulysse II',
'Uno',
'X1/9',
'X19'
]
},
{
Make: 'Ford',
Models: [
'other',
'Aerostar',
'Anglia',
'Aspire',
'Bronco',
'Bronco II',
'Brougham',
'Capri',
'Club Wagon',
'CMAX',
'Cobra',
'Contour',
'Contour SVT',
'Cortina',
'Country Squire',
'Country Station',
'Courier',
'Crestline',
'Crown Victoria',
'Custom',
'Cutaway',
'Crestline',
'E-100',
'E-150',
'E-250',
'E-350',
'Econoline 12 Pas',
'Econoline 150 8',
'Econoline 350 15',
'Econoline Cargo',
'Econoline Wagon',
'Ecosport',
'Edge',
'Elite',
'Escape',
'Escape Hybrid',
'Escort',
'Escort ZX2',
'Esprit',
'Excursion',
'EXP',
'Expedition',
'Explorer',
'Explorer Sport',
'Explorer Sport T',
'F Truck 1948-86',
'F-100',
'F-100 2dr Long B',
'F-100 2dr Short',
'F-150',
'F-150 2br Long B',
'F-150 2dr Short',
'F-150 4de Long B',
'F-150 4dr Short',
'F-250',
'F-250 2dr Long B',
'F-250 4dr Long B',
'F-250 4dr Short',
'F-250 Super Duty',
'F-350',
'F-350 2dr Long B',
'F-350 4dr Long B',
'F-350 4dr Short',
'F-350 Super Duty',
'Fairlane',
'Fairmont',
'Falcon',
'Festiva',
'Fiesta',
'Five Hundred',
'Flex',
'Focus',
'Focus SVT',
'Freestar',
'Freestyle',
'Fusion',
'Futura',
'Galaxie',
'Gran Torino',
'Granada',
'Grand Marquis',
'GT',
'GT40',
'Lightning',
'LTD',
'LTD Wagon',
'Mainline',
'Marauder',
'Maverick',
'Model A',
'Model A 1928-31',
'Model B 1932',
'Model C 1935-193',
'Model T',
'Model T 1908-27',
'Model V8',
'Model Y',
'Mondeo',
'Mustang',
'Mustang SVT Cobr',
'Parklane Station',
'Pinto',
'Probe',
'Puma',
'Ranch Station Wagon',
'Ranchero',
'Ranger',
'Ranger 2dr Short',
'Ranger 4dr Short',
'Runabout',
'Scorpio',
'Shelby',
'Shelby GT',
'Sierra',
'Skyliner',
'Sport Track',
'Station Wagon',
'Sunliner',
'T-Bucket',
'Taurus',
'Taurus X Wagon',
'Tempo',
'Territory',
'Thunderbird',
'Torino',
'Tudor',
'Ute',
'Victoria',
'Windstar',
'Windstar Cargo',
'Zephyr'
]
},
{ Make: 'Galloper', Models: ['other', 'Exceed'] },
{
Make: 'Geo',
Models: [
'other',
'Metro',
'Prizm',
'Spectrum',
'Storm',
'Tracker'
]
},
{
Make: 'GMC',
Models: [
'other',
'Acadia',
'C/K 1500 Series',
'C/K 2500 Series',
'C/K 3500 Series',
'Caballero',
'Canyon',
'Cyclone',
'Envoy',
'Envoy XL',
'Envoy XUV',
'Jimmy',
'R/V 1500 Series',
'R/V 2500 Series',
'R/V 3500 Series',
'RALLY Wagon',
'S-15',
'S-15 Jimmy',
'Safari',
'Safari Cargo',
'Savana',
'Savana Cargo',
'Sierra 1500',
'Sierra 1500HD',
'Sierra 2500',
'Sierra 2500HD',
'Sierra 3500',
'Sierra C3',
'Sierra Classic 1',
'Sierra Classic 2',
'Sierra Classic 3',
'Sonoma',
'Sprint',
'Suburban',
'Syclone',
'Terrain',
'Tracker',
'Typhoon',
'Vandura',
'Yukon',
'YUKON Denali',
'Yukon XL'
]
},
{
Make: 'Hennessey',
Models: [
'other',
'Venom',
'VelociRaptor'
]
},
{
Make: 'Honda',
Models: [
'other',
'Accord',
'Civic',
'CIVIC CRX',
'Civic Del Sol',
'Civic Hybrid',
'Civic Si',
'Clarity',
'CR-V',
'CRX',
'Element',
'Fit',
'FR-V',
'HR-V',
'Insight',
'Odyssey',
'Passport',
'Pilot',
'Prelude',
'Ridgeline',
'S2000',
'S600',
'S800',
'Stream'
]
},
{ Make: 'Hummer', Models: ['other', 'H2', 'H2 SUT', 'H3'] },
{
Make: 'Hyundai',
Models: [
'other',
'Accent',
'Azera',
'Elantra',
'Entourage',
'Excel',
'Genesis',
'Ioniq',
'Kona',
'Nexo',
'Santa Fe',
'Scoupe',
'Sonata',
'Terracan',
'Tiburon',
'Tucson',
'Veloster',
'Veracruz',
'XG300',
'XG350'
]
},
{
Make: 'Infiniti',
Models: [
'other',
'FX35',
'FX45',
'G20',
'G35',
'I30',
'I35',
'J30',
'M30',
'M35',
'M45',
'Q30',
'Q45',
'Q50',
'Q60',
'Q70',
'QX4',
'QX30',
'QX50',
'QX56',
'QX60',
'QX80'
]
},
{ Make: 'International', Models: ['other', 'Scout'] },
{
Make: 'Isuzu',
Models: [
'other',
'Amigo',
'Ascender',
'Axiom',
'Hombre',
'I-Mark',
'I-Series',
'Impulse',
'Oasis',
'Pickup',
'Pup',
'Rodeo',
'Rodeo Sport',
'Stylus',
'Trooper',
'Trooper II',
'Vehicross'
]
},
{
Make: 'Jaguar',
Models: [
'other',
'E-Pace',
'E-Type',
'F-Pace',
'F-Type',
'I-Pace',
'MK',
'S-Type',
'S-Type R',
'Vanden Plas',
'X-Type',
'XE',
'XF',
'XJ',
'XJ-S',
'XJ-SC',
'XJ12',
'XJ40',
'XJ6',
'XJ6 Serie 2',
'XJ6 Serie 3',
'XJ8',
'XJ8 Vanden Plas',
'XJR',
'XJS',
'XK',
'XK8',
'XKE',
'XKR',
'XR8'
]
},
{
Make: 'Jeep',
Models: [
'other',
'Cherokee',
'CJ',
'CJ-2',
'CJ-3',
'CJ-5',
'CJ-7',
'CJ5',
'CJ7',
'Comanche',
'Commander',
'Compass',
'Gladiator',
'Grand Cherokee',
'Grand Wagoneer',
'J-10 Pickup',
'J-20 Pickup',
'J10 Pickup',
'J20 Pickup',
'Jeepster',
'Laredo',
'Liberty',
'MB',
'Patriot',
'Renegade',
'Sahara',
'Scrambler',
'TJ',
'TJ Unlimited',
'VJ2',
'Wagoneer',
'Willy',
'Wrangler',
'Wrangler 2 door',
'Wrangler 4 door',
'Wrangler Unlimit',
'YJ'
]
},
{
Make: 'Jensen',
Models: [
'other',
'541',
'C-V8',
'Early Intercepto',
'FF',
'Healey',
'Interceptor'
]
},
{
Make: 'Karma',
Models: [
'other',
'Revero'
]
},
{
Make: 'Kia',
Models: [
'other',
'Amanti',
'Cadenza',
'EV3',
'EV6',
'EV9',
'Forte',
'K900',
'Niro',
'Optima',
'Picanto',
'Rio',
'Rondo',
'Sedona',
'Sephia',
'Sorento',
'Soul',
'Spectra',
'Sportage',
'Stinger'
]
},
{
Make: 'Koenigsegg',
Models: [
'other',
'Agera',
'CC8S',
'CCR',
'CCX',
'Regera'
]
},
{
Make: 'Lamborghini',
Models: [
'other',
'350 GT',
'400 GT',
'Aventador',
'Centenario',
'Cheetah',
'Countach',
'Diablo',
'Egoista',
'Espada',
'Gallardo',
'Huracan',
'Islero',
'Jalpa',
'Jarama',
'LM',
'Miura',
'Murcielago',
'Reventon',
'Sesto Elemento',
'Silhouette',
'Urraco',
'Urus',
'Veneno'
]
},
{
Make: 'Lancia',
Models: [
'other',
'Ypsilon'
]
},
{
Make: 'Land Rover',
Models: [
'other',
'Defender',
'Discovery',
'Discovery 3',
'Discovery II',
'Freelander',
'LR2',
'LR3',
'Range Rover',
'Range Rover Spor'
]
},
{
Make: 'Lexus',
Models: [
'other',
'ES 250',
'ES 300',
'ES 330',
'ES 350',
'GS 300',
'GS 350',
'GS 400',
'GS 430',
'GS 450h',
'GX',
'GX 470',
'IS 220',
'IS 250',
'IS 300',
'IS 350',
'LC',
'LS 400',
'LS 430',
'LS 460',
'LS 600h L',
'LX 450',
'LX 470',
'NX',
'RC',
'RX 300',
'RX 330',
'RX 350',
'RX 400h',
'SC 300',
'SC 400',
'SC 430'
]
},
{
Make: 'Lincoln',
Models: [
'other',
'Aviator',
'Blackwood',
'Continental',
'LS',
'Mark',
'Mark IV',
'Mark LT',
'Mark VI',
'Mark VII',
'Mark VIII',
'MKC',
'MKT',
'MKX',
'MKZ',
'Navigator',
'Town Car',
'Versailles',
'Zephyr'
]
},
{
Make: 'Lotus',
Models: [
'other',
'Elan',
'Elise',
'Elite',
'Esprit',
'Europa',
'Evora',
'Exige',
'Super 7'
]
},
{
Make: 'Maserati',
Models: [
'other',
'3200 GT',
'3500 GT',
'420',
'430',
'5000 GT',
'Biturbo',
'Bora',
'Coupe',
'Ghibli',
'GranCabrio',
'GranSport',
'GranSport Spyder',
'GranTurismo',
'Khamsin',
'Levante',
'MC12',
'Merak',
'Quattroporte',
'Shamal',
'Spyder'
]
},
{ Make: 'Maybach',
Models: [
'other',
'57',
'62',
'G650',
'S550',
'S560',
'S600',
'S650'
]
},
{
Make: 'Mazda',
Models: [
'other',
'2',
'3',
'323',
'5',
'6',
'6 Sport Wagon',
'616',
'626',
'929',
'B2000',
'B2200',
'B2300',
'B2500',
'B2600',
'B3000',
'B4000',
'Bravo 2600',
'Cosmo',
'CX-3',
'CX-4',
'CX-5',
'CX-7',
'CX-8',
'CX-9',
'GLC',
'Mazda3',
'Mazda6',
'Millenia',
'MPV',
'MX-3',
'MX-5 Miata',
'MX-6',
'Navajo',
'Protege',
'Protege5',
'RX-3',
'RX-4',
'RX-7',
'RX-8',
'Tribute',
'Truck'
]
},
{
Make: 'McLaren',
Models: [
'other',
'540C',
'570S',
'650S',
'675LT',
'720S',
'P1',
'Senna'
]
},
{
Make: 'Mercedes-Benz',
Models: [
'other',
'170',
'190',
'190-Class',
'220',
'240',
'240-Class',
'250',
'260',
'260-Class',
'280',
'280-Class',
'300',
'300-Class',
'350',
'350-Class',
'380',
'400',
'400-Class',
'420',
'420-Class',
'450-Class',
'500',
'500-Class',
'500',
'560-Class',
'600',
'600-Class',
'A Class',
'B Class',
'C 220',
'C 230',
'C 240',
'C 280',
'C 32 AMG',
'C 320',
'C 36 AMG',
'C 43',
'C-Class',
'CLA-Class',
'C32 AMG',
'C36 AMG',
'C43 AMG',
'C55 AMG',
'CL 500',
'CL 55 AMG',
'CL 600',
'CL 65 AMG',
'CL-Class',
'CL55 AMG',
'CL65 AMG',
'CLK 320',
'CLK 350',
'CLK 430',
'CLK 500',
'CLK-Class',
'CLK55 AMG',
'CLS-Class',
'E 300',
'E 320',
'E 350',
'E 420',
'E 430',
'E 500',
'E 55 AMG',
'E 550',
'E-Class',
'E55 AMG',
'G 500 suv',
'G 55 AMG suv',
'G-Class',
'G55 AMG',
'GL 320 suv',
'GL 450 suv',
'GLK',
'M-Class',
'ML 320 suv',
'ML 350 suv',
'ML 430 suv',
'ML 500 suv',
'ML55 AMG suv',
'ML55 AMG',
'R 350',
'R 500',
'S 280',
'S 320',
'S 350',
'S 420',
'S 430',
'S 450',
'S 500',
'S 55 AMG',
'S 550',
'S 600',
'S 65 AMG',
'S-Class',
'S55 AMG',
'SEL 300',
'SEL 420',
'SEL 560',
'SL 230',
'SL 320',
'SL 450',
'SL 500',
'SL 550',
'SL 600',
'SL-Class',
'SL55 AMG',
'SL65 AMG',
'SLK 230',
'SLK 320',
'SLK 350',
'SLK-Class',
'SLK32 AMG',
'SLK55 AMG',
'SLR McLaren',
'Smart Car',
'X-Class'
]
},
{
Make: 'Mercury',
Models: [
'other',
'Bobcat',
'Capri',
'Colony Park',
'Comet',
'Cougar',
'Cyclone',
'Grand Marquis',
'LN7',
'Lynx',
'Marauder',
'Mariner',
'Marquis',
'Meteor',
'Milan',
'Monarch',
'Monclair',
'Montego',
'Monterey',
'Mountaineer',
'Mystique',
'Park Lane',
'Sable',
'Topaz',
'Tracer',
'Turnpike',
'Villager',
'Zephyr'
]
},
{ Make: 'Merkur', Models: ['other', 'Scorpio', 'XR4ti'] },
{
Make: 'MG',
Models: [
'other',
'F',
'Metro',
'MGA',
'MGB',
'MGC',
'MGF',
'MGT',
'MGTD',
'Midget',
'RV8',
'TA',
'TB',
'TC',
'TD',
'TF',
'X80',
'ZF',
'ZR',
'ZS',
'ZT'
]
},
{
Make: 'Mini',
Models: [
'other',
'3000GT',
'ClassIC',
'Clubman',
'Cooper',
'Cooper Convertib',
'Countryman',
'Hardtop 3dr',
'Hardtop 5dr'
]
},
{
Make: 'Mitsubishi',
Models: [
'other',
'3000GT',
'Challenger',
'Colt',
'Conquest',
'Cordia',
'Diamante',
'Eclipse',
'Eclipse Spyder',
'Endeavor',
'Evolution',
'Expo',
'Express',
'Galant',
'Grandis',
'i-MiEV',
'L200/Pick Up',
'L300',
'L400',
'Lancer',
'Lancer Sportback',
'Mighty Max',
'Mighty Max Picku',
'Mirage',
'Montero',
'Montero Sport',
'Outlander',
'Precis',
'Raider',
'Sigma',
'Starion',
'Tredia',
'Truck',
'Vanwagon',
'Xpander'
]
},
{ Make: 'Morris', Models: ['other', 'J', 'Minor'] },
{
Make: 'Nash',
Models: [
'other',
'800 Series',
'Ambassador',
'Metropolitan',
'Rambler'
]
},
{
Make: 'Nissan',
Models: [
'other',
'100NX',
'110',
'200SX',
'240SX',
'240Z',
'260Z',
'260ZX',
'280ZX',
'300ZX',
'350Z',
'370Z',
'A50',
'Altima',
'Armada',
'Axxess',
'Bluebird',
'Cedric',
'Cherry',
'Cube',
'Dedan DS-2',
'Frontier',
'Frontier 4 dr Sho',
'Gloria',
'GTR',
'Juke',
'Kicks',
'King Cab',
'Laurel',
'Leaf',
'Maxima',
'Model 14',
'Murano',
'NX',
'Pathfinder',
'Patrol',
'Pickup',
'Pulsar',
'Quest',
'Rogue',
'SE-R',
'Sedan DA',
'Sedan DB',
'Sentra',
'Silvia',
'Skyline',
'Sports DC-3',
'Sportscar 211',
'Stanza',
'Sunny',
'Titan',
'Van',
'Versa',
'X-Trail',
'Xterra'
]
},
{
Make: 'Oldsmobile',
Models: [
'other',
'442',
'Achieva',
'Alero',
'Aurora',
'Bravada',
'Calais',
'Ciera',
'Custom Cruiser',
'Cutlass',
'Cutlass Calais',
'Cutlass Ciera',
'Cutlass Cruiser',
'Cutlass Salon',
'Cutlass Sedan',
'Cutlass Supreme',
'Delta 88',
'Eighty-Eight',
'Firenza',
'Intrigue',
'LSS',
'Ninety-Eight',
'Omega',
'Regency',
'Regency 98',
'Silhouette',
'Starfire',
'Toronado'
]
},
{
Make: 'Opel',
Models: [
'other',
'Agila',
'Ascona',
'Astra',
'Calibra',
'Campo',
'Combo',
'Commodore',
'Corsa',
'Frontera',
'Kadette',
'Meriva',
'Monterey',
'Movano',
'Omega',
'Rekord',
'Senator',
'Signum',
'Sintra',
'Tigra',
'Vectra',
'Vectra B',
'Vectra C',
'Vivaro',
'Zafira'
]
},
{
Make: 'Packard',
Models: [
'other',
'120',
'300',
'Caribbean',
'Clipper',
'Convertible',
'Eight',
'Pan American',
'Patrician',
'Predictor',
'Series 250',
'Series 400',
'Twelve',
'Victoria'
]
},
{
Make: 'Pagani',
Models: [
'other',
'Huayra',
'Zonda'
]
},
{
Make: 'Peugeot',
Models: [
'other',
'1007',
'106',
'107',
'205',
'206',
'306',
'307',
'307 SW',
'309',
'405',
'406',
'407',
'500 Series',
'504',
'505',
'604',
'605',
'607',
'806',
'807',
'Boxer',
'Expert',
'J5',
'Partner',
'SW8',
'Wagon'
]
},
{
Make: 'Plymouth',
Models: [
'other',
'Acclaim',
'Arrow',
'ARROW Pickup',
'Barracuda',
'Belvedere',
'Breeze',
'Caravelle',
'Champ',
'Colt',
'Conquest',
'Coupe',
'Duster',
'Expo',
'Fury',
'Grand Fury',
'Grand Voyager',
'Horizon',
'Horizon TC3',
'Laser',
'Le Baron',
'Model U',
'Neon',
'Plaza',
'Prowler',
'Reliant K',
'Road Runner',
'Satellite',
'Savoy',
'Scamp',
'Suburban',
'Sundance',
'Superbird',
'TC3',
'Trailduster',
'Turismo',
'Valiant',
'Volare',
'Voyager',
'Voyager Wagon'
]
},
{
Make: 'Polestar',
Models: [
'other',
'1',
'2',
'3',
'4',
'5'
]
},
{
Make: 'Pontiac',
Models: [
'other',
'1000',
'2000',
'6000',
'Acadian',
'Astre',
'Aztek',
'Bonneville',
'Catalina',
'Chieftan',
'Executive',
'Farago',
'Fiero',
'Firebird',
'Firefly',
'Fleetleader',
'Formula',
'G3',
'G5',
'G6',
'G8',
'Grand Am',
'Grand Le Mans',
'Grand Prix',
'Grand Sarari',
'GTO',
'Le Mans',
'Montana',
'Montana SV6',
'Parisienne',
'Phoenix',
'Safari',
'Star Chief',
'Streamliner',
'Solstice',
'Sunbird',
'Sunfire',
'T1000',
'Tempest',
'Torrent',
'Trans Am',
'Trans Sport',
'Ventura',
'Vibe',
'Wave'
]
},
{
Make: 'Porsche',
Models: [
'other',
'356',
'550',
'901',
'911',
'911 Turbo',
'912',
'914',
'924',
'928',
'930',
'944',
'959',
'968',
'991',
'996',
'Boxster',
'Carrera',
'Carrera 911S',
'Carrera GT',
'Cayenne',
'Cayman',
'Macan',
'Panamera',
'Speedster',
'Spyder'
]
},
{
Make: 'Ram',
Models: [
'other',
'1500',
'2500',
'3500',
'Promaster'
]
},
{
Make: 'Renault',
Models: [
'other',
'Alliance',
'Avantime',
'Clio',
'Dauphine',
'Encore',
'Espace',
'Fuego',
'Le Car',
'R10',
'R5',
'R8'
]
},
{
Make: 'Rolls-Royce',
Models: [
'other',
'Corniche',
'Cullinan',
'Dawn',
'Ghost',
'Park Ward',
'Phantom',
'Silver Seraph',
'Wraith'
]
},
{
Make: 'Saab',
Models: [
'other',
'3-SEP',
'5-SEP',
'9-2x',
'9-3',
'9-5',
'9-6x',
'9-7x',
'9.3',
'9.5',
'900',
'9000'
]
},
{
Make: 'Saturn',
Models: [
'other',
'Aura',
'Ion',
'Ion Red Line',
'L',
'L300',
'LS',
'LW',
'Outlook',
'Relay',
'S',
'SC',
'Sky',
'SL',
'SW',
'Vue'
]
},
{ Make: 'Scion', Models: ['other', 'FR-S', 'tC', 'xA', 'xB'] },
{ Make: 'Shelby', Models: ['other', 'Cobra', 'GT'] },
{
Make: 'Smart',
Models: ['other', 'forfour', 'fortwo', 'Roadster']
},
{
Make: 'Studebaker',
Models: [
'other',
'Avanti',
'Cantrell',
'Champ',
'Champion',
'Commander',
'Daytona',
'Erskine',
'Golden Hawk',
'GT',
'Hawk',
'Land Cruiser',
'Lark',
'M-Series',
'Pickup',
'President',
'Speedster',
'Starlight',
'Transtar'
]
},
{
Make: 'Subaru',
Models: [
'other',
'Ascent',
'B9',
'B9 Tribeca',
'Baja',
'Brat',
'BRZ',
'Crosstrek',
'DL',
'Forester',
'G3X Justy',
'GL',
'GL-10',
'GLF',
'Impreza',
'Impreza WRX STI',
'Justy',
'Legacy',
'Liberty',
'Loyale',
'Outback',
'Outback Sport',
'RX',
'Standard',
'STi',
'SVX',
'WRX',
'WRX STi',
'XT',
'XT6'
]
},
{ Make: 'Sunbeam', Models: ['other', 'Tiger'] },
{
Make: 'Suzuki',
Models: [
'other',
'Aerio',
'Alto',
'Equator',
'Esteem',
'Forenza',
'Fronte',
'Grand Vitara',
'Light SS',
'Reno',
'Samurai',
'Sidekick',
'Swift',
'SX4',
'Verona',
'Vitara',
'Wagon',
'X-90',
'XL-7'
]
},
{ Make: 'Tata', Models: ['other', 'Safari'] },
{
Make: 'Toyota',
Models: [
'other',
'86',
'4Runner',
'Avalon',
'Blizzard',
'Camry',
'Carina',
'Celica',
'Century',
'Chaser',
'C-HR',
'Corolla',
'Corona',
'Corsa',
'Cressida',
'Crown',
'Echo',
'FJ Cruiser',
'Highlander',
'Land Cruiser',
'Mark II',
'Master RR',
'Matrix',
'Mirai',
'MR2',
'MR2 Spyder',
'Paseo',
'Pickup',
'Previa',
'Prius',
'Publica',
'RAV4',
'SA',
'SD',
'Sequoia',
'SF',
'Sienna',
'Solara',
'Sprinter',
'Starlet',
'Super',
'Supra',
'T100',
'T100 2dr Short B',
'Tacoma',
'Tacoma 2dr short',
'Tacoma 4dr long',
'Tacoma 4dr short',
'Tercel',
'Tundra',
'Tundra 2dr Long',
'Tundra 4dr Short',
'Van',
'Venza',
'Yaris'
]
},
{
Make: 'Tesla',
Models: [
'other',
'Model 3',
'Model S',
'Model X',
'Model Y',
'Roadster'
]
},
{
Make: 'Triumph',
Models: [
'other',
'Beetle',
'GT6',
'Spitfire',
'TR-4',
'TR-5',
'TR-6',
'TR4',
'TR6',
'TR7',
'TR8'
]
},
{
Make: 'Volkswagen',
Models: [
'other',
'Arteon',
'Atlas',
'Beetle',
'Bus',
'Cabrio',
'Cabriolet',
'CC',
'Corrado',
'Dasher',
'Derby',
'Eos',
'Eurovan',
'Fox',
'Golf',
'Golf Cabriolet',
'GTI',
'Iitis',
'Jetta',
'Jetta Wagon',
'Karman Ghia',
'New Beetle',
'New Beetle Cabri',
'Passat',
'Phaeton',
'Pickup',
'Polo',
'Quantum',
'R32',
'Rabbit',
'Routan',
'Schwimmwagen',
'Scirocco',
'Thing',
'Tiguan',
'Touareg',
'Touran',
'Van',
'Vanagon'
]
},
{
Make: 'Volvo',
Models: [
'other',
'160',
'240',
'242',
'244',
'245',
'260',
'340',
'360',
'440',
'460',
'480 ES',
'740',
'760',
'780',
'850',
'940',
'960',
'Bertone',
'C30',
'C70',
'Cross Country',
'DL',
'GL',
'GLE',
'GLT',
'GT',
'S40',
'S60',
'S60 R',
'S70',
'S80',
'S90',
'V40',
'V50',
'V60',
'V70',
'V70 R',
'V90',
'XC',
'XC40',
'XC70',
'XC90'
]
},
{
Make: 'Willys',
Models: [
'other',
'CJ',
'Coupe',
'Jeep',
'Jeepster',
'Lark',
'Maverick',
'Overland',
'Wagon'
]
},
{ Make: 'Yugo', Models: ['other', '55', 'Cabrio', 'GV'] },
{ Make: 'other', Models: ['other'] }
],
motorModels: {
'': 'Select Size',
'Over 600cc': 'Over 600cc',
'Under 600cc': 'Under 600cc'
},
motorMake: [
'Big Dog',
'BMW',
'Buell',
'Chopper',
'Ducati',
'Harley Davidson',
'Honda',
'Indian',
'Kawasaki',
'Suzuki',
'Triumph',
'Yamaha',
'Other'
]
};},
created(){
const ss=this;
this.dateRange=this.range(new Date().getFullYear(), 1900);
if(document.getElementById('services')){
this.shipmentTypeSelected=this.defaultShipmentType=document.getElementById('services').value;
}
if(document.getElementById('import_export')){
this.ieTypeSelected=this.defaultIeType=document.getElementById('import_export').value;
}},
methods: {
calcLink(){
localStorage.setItem('ieTypeSelected', this.ieTypeSelected);
localStorage.setItem('form_redirect', window.location.href);
window.location.href='https://www.schumachercargo.com/hhg_calc.php';
},
calcContent(){
if(this.hhg_calc.length > 0) return this.hhg_calc;
return this.hhg_options[this.hhg_content];
},
updateIeType(event){
const selectedOption=event.target.options[event.target.selectedIndex];
this.ieTypeSelected=selectedOption.dataset.md||'';
},
MDhandleCountries(){
if(this.shipmentTypeSelected=='auto'){
this.vehicleTypeSelected='car';
this.handleVehicleTypeSelection('vehicleTypeSelected');
}
const ss=this;
this.getData(`?action=MDget_all_countries&selection=${
this.shipmentTypeSelected
}`
).then(result=> {
const countries=result;
const name=result.name;
const uniqueAddresses=Array.from(new Set(countries.map(a=> a.name)))
.map(name=> {
return countries.find(a=> a.name===name)
})
ss.countries=uniqueAddresses;
});
},
handleCountries(){
if(this.shipmentTypeSelected=='auto'){
this.vehicleTypeSelected='car';
this.handleVehicleTypeSelection('vehicleTypeSelected');
}
const ss=this;
this.getData(`?action=get_all_countries&selection=${
this.shipmentTypeSelected
}`
).then(result=> {
ss.countries=result;
});
},
getAllCountriesID(){
const ss=this;
this.getData(`?action=md_get_all_countries_with_id`
).then(result=> {
ss.countriesID=result;
});
},
get_city(country){
const ss=this;
this.getData(`?action=get_cities_by_country&selection=${
this.shipmentTypeSelected
}&country=${country}`
).then(result=> {
ss.cities=result;
});
},
newCar(){
return {
dateRange: this.dateRange,
carType: this.carType,
carModels: []
};},
newMotorCycle(){
return {
dateRange: this.dateRange,
mcMake: this.motorMake,
mcModel: this.motorModels
};},
getData(urlarg){
const url=window.ajaxurl;
return axios
.get(url + urlarg, {
responseType: 'json'
})
.then(function(response){
return response.data;
})
.catch(function(error){
console.log(error);
});
},
range(end, start){
return Array(end - start + 1)
.fill()
.map((_, idx)=> end - idx);
},
handleModel(carIndex){
const e=document.getElementById(`car_${carIndex}[][maker]`);
const index=e.options[e.selectedIndex].index;
if(index===0){
this.cars[carIndex].carModels=[];
return;
}
this.cars[carIndex].carModels=this.carType[index - 1].Models;
},
handleVehicleTypeSelection(key){
this.cars=this.motorcycles=[];
if(this[key]=='car'||this[key]=='yes'){
this.cars.push(this.newCar());
}
if(this[key]=='motorcycle'){
this.cars.push(this.newMotorCycle());
}},
addMoreVehicle(vType){
if(vType=='car'){
this.cars.push(this.newCar());
}
if(vType=='motorcycle'){
this.motorcycles.push(this.newMotorCycle());
}},
cleanStorage(){
localStorage.removeItem('shipmentTypeSelected');
localStorage.removeItem('vehicleTypeSelected');
localStorage.removeItem('ieTypeSelected');
localStorage.removeItem('countrySelect');
localStorage.removeItem('cars');
localStorage.removeItem('vechicle_year');
localStorage.removeItem('vechicle_make');
localStorage.removeItem('model');
localStorage.removeItem('hhg_calc');
localStorage.removeItem('hhg_details');
localStorage.removeItem('hhg_details_crm');
localStorage.removeItem('hhg_content');
},
handleNext(event){
event.preventDefault();
const ss=this;
console.log(this.page);
if(this.ieTypeSelected=='exporting'&&ss.page===1){
if(document.getElementById('select_country')){
this.countrySelect=this.defaultCountrySelect=document.getElementById('select_country').value;
}
console.log('here', this.countrySelect);
if(this.countrySelect.value!=='USA'&&this.countrySelect.length > 1){
this.handle_city("destination_sc", this.countrySelect);
this.destination_sc=this.countrySelect;
}}
if(this.origin_sc||this.destination_sc){
console.log("origin_sc", this.origin_sc);
console.log("destination_sc", this.destination_sc);
this.handle_country_id();
}
this.$validator.validateAll(`step_${this.page}`).then(function(result){
if(!result) return;
if(ss.page==3){
ss.syncPhone();
if(!ss.iti||!ss.iti.isValidNumber()){
ss.phoneError='Please enter a valid phone number for the selected country.';
ss.submitting=false;
return;
}
ss.phoneError='';
jQuery('input[name="ev[]"][class="ev-visible"]').filter(':checked').parent().children("input[type='hidden']").prop('disabled', true);
ss.submitting=true;
grecaptcha.ready(function(){
grecaptcha.execute('6Ld0-HkaAAAAAMvx4Spv-qgFTkH8X16NKE938bjk', {action: 'submit'}).then(function(token){
ss.$refs.quoteForm['grecaptcha_token'].value=token;
ss.$refs.quoteForm.submit();
return true;
});
});
};
var header=jQuery('.header-wrap-fixed').height();
jQuery('html, body').animate({ scrollTop: jQuery('#quoteapp').offset().top - header }, 'slow');
if(ss.page!=3){
ss.page +=1;
}});
},
async handle_city(key, country=null){
if(this.ieTypeSelected=='importing'&&key=='destination_sc') return;
if(this.ieTypeSelected=='exporting'&&key=='origin_sc') return;
const side=key==='origin_sc' ? 'origin':'destination';
this.cityTo=side==='destination' ? '':this.cityTo;
this.cityFrom=side==='origin' ? '':this.cityFrom;
this.isLoadingCities[side]=true;
country=country ? country:this[key];
const list=await this.getData(`?action=get_cities_by_country&selection=${this.shipmentTypeSelected}&country=${country}`);
if(side==='origin') this.originCities=list; else this.destinationCities=list;
this.isLoadingCities[side]=false;
},
handle_country_id(){
if(this.ieTypeSelected=='importing'){
this.countryFromID=this.countriesID[this["origin_sc"]];
}else{
this.countryToID=this.countriesID[this["destination_sc"]];
}},
handleNameError(key){
const errs=this.errors.all();
for (let index=0; index < errs.length; index++){
if(errs[index].indexOf('speciality_' + key) > -1) return true;
}
return false;
},
handleSaving(e){
localStorage.setItem('shipmentTypeSelected',
this.shipmentTypeSelected
);
localStorage.setItem('vehicleTypeSelected',
this.vehicleTypeSelected
);
localStorage.setItem('ieTypeSelected', this.ieTypeSelected);
localStorage.setItem('cars', JSON.stringify(this.cars));
localStorage.setItem('vechicle_year',
JSON.stringify(this.vechicle_year)
);
localStorage.setItem('vechicle_make',
JSON.stringify(this.vechicle_make)
);
localStorage.setItem('model', JSON.stringify(this.model));
localStorage.setItem('ev', JSON.stringify(this.ev));
return true;
},
dynamic_placeholder(index, value){
if(this.selected_specility=='Air Freight'&&index==0){
return 'Commodity'
}else if(this.selected_specility=='Air Freight'&&index==1){
return 'Number of Pieces'
}else{
return value
}},
syncPhone(){
if(!this.iti) return;
this.phone_e164=this.iti.getNumber();
const cd=this.iti.getSelectedCountryData();
this.phone_country_iso=cd&&cd.iso2 ? cd.iso2:'us';
}},
mounted(){
const ss=this;
ss.getData('?action=get_us_states').then(result=> {
ss.states=result;
});
jQuery('#estmovedate').datepicker({ minDate: 0 }).attr('readonly','readonly');
if(document.getElementById('select_co')){
this.countrySelect=this.defaultCountrySelect=document.getElementById('select_co').value;
}
if(localStorage.hasOwnProperty('shipmentTypeSelected'))
this.shipmentTypeSelected=localStorage.getItem('shipmentTypeSelected'
);
this.handleCountries();
this.getAllCountriesID();
if(localStorage.hasOwnProperty('vehicleTypeSelected'))
this.vehicleTypeSelected=localStorage.getItem('vehicleTypeSelected'
);
if(localStorage.hasOwnProperty('ieTypeSelected'))
this.ieTypeSelected=localStorage.getItem('ieTypeSelected');
if(localStorage.hasOwnProperty('countrySelect'))
this.countrySelect=localStorage.getItem('countrySelect');
if(localStorage.hasOwnProperty('cars'))
this.cars=JSON.parse(localStorage.getItem('cars'));
if(localStorage.hasOwnProperty('vechicle_year'))
this.vechicle_year=JSON.parse(localStorage.getItem('vechicle_year')
);
if(localStorage.hasOwnProperty('vechicle_make'))
this.vechicle_make=JSON.parse(localStorage.getItem('vechicle_make')
);
if(localStorage.hasOwnProperty('model'))
this.model=JSON.parse(localStorage.getItem('model'));
if(localStorage.hasOwnProperty('ev'))
this.model=JSON.parse(localStorage.getItem('ev'));
if(localStorage.hasOwnProperty('hhg_calc'))
this.hhg_calc=localStorage.getItem('hhg_calc');
if(localStorage.hasOwnProperty('hhg_details'))
this.hhg_details=localStorage.getItem('hhg_details');
if(localStorage.hasOwnProperty('hhg_details_crm'))
this.hhg_details_crm=localStorage.getItem('hhg_details_crm');
if(localStorage.hasOwnProperty('hhg_content'))
this.hhg_content=localStorage.getItem('hhg_content');
this.cleanStorage();
this.$nextTick(()=> {
const input=this.$refs.quoteForm.querySelector('input[name="phone"]');
if(!input||!window.intlTelInput) return;
this.iti=window.intlTelInput(input, {
initialCountry: 'us',
separateDialCode: true,
nationalMode: false,
autoPlaceholder: 'aggressive',
placeholderNumberType: 'FIXED_LINE_OR_MOBILE',
formatAsYouType: true,
formatOnDisplay: true,
strictMode: true,
utilsScript: 'https://cdn.jsdelivr.net/npm/intl-tel-input@23/build/js/utils.js'
});
input.addEventListener('countrychange', this.syncPhone);
input.addEventListener('blur', this.syncPhone);
input.addEventListener('input', this.syncPhone);
});
},
computed: {
origin_sc_comp(){
if(this.ieTypeSelected=='exporting'){
return this.states;
}
if(this.ieTypeSelected=='importing'){
return this.countries;
}},
desination_sc_comp(){
if(this.ieTypeSelected=='importing'){
return this.states;
}
if(this.ieTypeSelected=='exporting'){
return this.countries;
}},
ieType_country_comp(){
console.log("HEREE", this.countries);
const countries=this.countries;
const name=this.countries.name;
const uniqueAddresses=Array.from(new Set(countries.map(a=> a.name)))
.map(name=> {
return countries.find(a=> a.name===name)
})
return uniqueAddresses;
}}
});