-
+
@@ -89,7 +87,10 @@ import { Form } from 'vee-validate';
import { fetchCmsContentForPage } from '@/helpers/cms-content-helper';
import settleAllPromises from '@/helpers/layout-helper';
import routerParams from '@/router/router-constants/router-params';
-import { getDamageString, isGlassAvailableForCarId } from '@/helpers/damage-helper';
+import {
+ getDamageString,
+ isGlassAvailableForCarId,
+} from '@/helpers/damage-helper';
import vinPagesMixin from '@/mixins/vin-pages-mixin';
import { useMainStore } from '@/store/index.js';
@@ -104,7 +105,7 @@ export default {
customerQuestions,
alert,
// eslint-disable-next-line vue/no-reserved-component-names
- Form
+ Form,
},
mixins: [baseFormMixin, vinPagesMixin],
async beforeRouteEnter(to, from, next) {
@@ -115,8 +116,8 @@ export default {
const promiseResultMap = [
{
resultKey: 'cmsContent',
- promise: cmsContentPromise
- }
+ promise: cmsContentPromise,
+ },
];
const resultMap = await settleAllPromises(promiseResultMap);
@@ -137,7 +138,7 @@ export default {
isCarIdDifferent: false,
isSelectedGlassAvailableForVehicle: true,
customAlertData: {},
- forwardButtonCarStyle: ''
+ forwardButtonCarStyle: '',
};
},
computed: {
@@ -151,10 +152,14 @@ export default {
const vinYmmFound =
// eslint-disable-next-line max-len
`${this.customAlertData?.vehicleInfo?.year} ${this.customAlertData?.vehicleInfo?.make} ${this.customAlertData?.vehicleInfo?.model}`;
- const vinYmmExpected =
- `${useMainStore().order.vehicle.year} ${useMainStore().order.vehicle.make} ${useMainStore().order.vehicle.model}`;
+ const vinYmmExpected = `${useMainStore().order.vehicle.year} ${
+ useMainStore().order.vehicle.make
+ } ${useMainStore().order.vehicle.model}`;
- return this.getCmsContent('AlertMatchedDifferentVehicleWidget', 'BodyText')
+ return this.getCmsContent(
+ 'AlertMatchedDifferentVehicleWidget',
+ 'BodyText'
+ )
.replaceAll('{custom:damage}', getDamageString())
.replaceAll('{custom:vinYmmFound}', vinYmmFound)
.replaceAll('{custom:vinYmmExpected}', vinYmmExpected);
@@ -171,9 +176,16 @@ export default {
`${this.customAlertData?.vehicleInfo?.year} ${this.customAlertData?.vehicleInfo?.make} ${this.customAlertData?.vehicleInfo?.model} ${this.customAlertData?.vehicleInfo?.style}`;
const vinYmmsExpected =
// eslint-disable-next-line max-len
- `${useMainStore().order.vehicle.year} ${useMainStore().order.vehicle.make} ${useMainStore().order.vehicle.model} ${useMainStore().order.vehicle.style}`;
+ `${useMainStore().order.vehicle.year} ${
+ useMainStore().order.vehicle.make
+ } ${useMainStore().order.vehicle.model} ${
+ useMainStore().order.vehicle.style
+ }`;
- return this.getCmsContent('AlertMatchedTwoIdenticalYMMVehicleWidget', 'BodyText')
+ return this.getCmsContent(
+ 'AlertMatchedTwoIdenticalYMMVehicleWidget',
+ 'BodyText'
+ )
.replaceAll('{custom:damage}', getDamageString())
.replaceAll('{custom:vinYmmsFound}', vinYmmsFound)
.replaceAll('{custom:vinYmmsExpected}', vinYmmsExpected);
@@ -182,21 +194,24 @@ export default {
const vinYmmFound =
// eslint-disable-next-line max-len
`${this.customAlertData?.vehicleInfo?.year} ${this.customAlertData?.vehicleInfo?.make} ${this.customAlertData?.vehicleInfo?.model}`;
- const vinYmmExpected =
- `${useMainStore().order.vehicle.year} ${useMainStore().order.vehicle.make} ${useMainStore().order.vehicle.model}`;
- return (vinYmmFound.toLowerCase() === vinYmmExpected.toLowerCase());
- }
+ const vinYmmExpected = `${useMainStore().order.vehicle.year} ${
+ useMainStore().order.vehicle.make
+ } ${useMainStore().order.vehicle.model}`;
+ return vinYmmFound.toLowerCase() === vinYmmExpected.toLowerCase();
+ },
},
watch: {
customerQuestions: {
handler() {
- // if they modify one of the lookup fields (address, city, state, zipCode, or lastName),
- // then modify the button text back to "Get my personalized quote"
- this.$refs.siteFooter.updateButtonText(this.getCmsContent('siteFooterWidget', 'ForwardButtonText'));
+ // if they modify one of the lookup fields (address, city, state, zipCode, or lastName),
+ // then modify the button text back to "Get my personalized quote"
+ this.$refs.siteFooter.updateButtonText(
+ this.getCmsContent('siteFooterWidget', 'ForwardButtonText')
+ );
this.resetWarningsAndErrors();
},
- deep: true
- }
+ deep: true,
+ },
},
mounted() {
this.attachCustomEvents();
@@ -224,23 +239,24 @@ export default {
const vinLookupResponse = useMainStore().lookupVinByAddress({
licenseLastName: this.customerQuestions.lastName,
- licenseStreetAddress: this.customerQuestions.addressQuestions.streetAddress,
+ licenseStreetAddress:
+ this.customerQuestions.addressQuestions.streetAddress,
licenseZip: this.customerQuestions.addressQuestions.zipCode,
- licenseState: this.customerQuestions.addressQuestions.state
+ licenseState: this.customerQuestions.addressQuestions.state,
});
// Settle promises and get results
const promiseResultMap = [
{
resultKey: 'vinLookupResponse',
- promise: vinLookupResponse
- }
+ promise: vinLookupResponse,
+ },
];
const resultMap = await settleAllPromises(promiseResultMap);
// If VIN Lookup by address is forbidden by State Restrictions then show an alert
if (!resultMap.vinLookupResponse.isStatePermissible) {
- // State Restrictions forbid lookup by address
+ // State Restrictions forbid lookup by address
this.displayVinLookupByHomeAddressNotAllowedAlert = true;
this.$refs.siteFooter.disableForwardButton();
return this.$refs.siteFooter.removeLoader();
@@ -250,12 +266,16 @@ export default {
// Handle cases for different amounts of VINS found for the address.
if (carsFound.length === 1) {
- // Single VIN found
+ // Single VIN found
const carFound = carsFound[0].vehicle;
- this.isCarIdDifferent = carFound.carId !== useMainStore().order.vehicle.carId;
- if (this.isCarIdDifferent && carFound.carId !== this.previouslyEnteredCarId) {
- // Display Alert
+ this.isCarIdDifferent =
+ carFound.carId !== useMainStore().order.vehicle.carId;
+ if (
+ this.isCarIdDifferent &&
+ carFound.carId !== this.previouslyEnteredCarId
+ ) {
+ // Display Alert
this.previouslyEnteredCarId = carFound.carId;
this.customAlertData.vehicleInfo = carFound;
if (this.isTwoIdenticalYMMVehicleFound) {
@@ -265,28 +285,39 @@ export default {
this.displayMatchedDifferentVehicleAlert = true;
}
- this.isSelectedGlassAvailableForVehicle = await isGlassAvailableForCarId(carFound.carId);
+ this.isSelectedGlassAvailableForVehicle =
+ await isGlassAvailableForCarId(carFound.carId);
// Update button "Continue with..."
this.$refs.siteFooter
// eslint-disable-next-line max-len
- .updateButtonText(`Continue with ${carFound.year} ${carFound.make} ${carFound.model} ${this.forwardButtonCarStyle}`);
+ .updateButtonText(
+ `Continue with ${carFound.year} ${carFound.make} ${carFound.model} ${this.forwardButtonCarStyle}`
+ );
return this.$refs.siteFooter.removeLoader();
}
// update data
- vehicleInfoToCommit = Object.assign(carFound, { vin: carsFound[0].vin });
+ vehicleInfoToCommit = Object.assign(carFound, {
+ vin: carsFound[0].vin,
+ });
} else if (carsFound.length > 1) {
// If multiple cars were found and one and only one of them matches the carId entered, save the vehicle info
- const matchingCars = carsFound.filter((vin) => vin.vehicle.carId === useMainStore().order.vehicle.carId);
+ const matchingCars = carsFound.filter(
+ (vin) =>
+ vin.vehicle.carId === useMainStore().order.vehicle.carId
+ );
if (matchingCars.length === 1) {
- vehicleInfoToCommit = Object.assign(matchingCars[0].vehicle, {
- vin: matchingCars[0].vin
- });
+ vehicleInfoToCommit = Object.assign(
+ matchingCars[0].vehicle,
+ {
+ vin: matchingCars[0].vin,
+ }
+ );
}
} else {
- // No VINS found.
+ // No VINS found.
this.displayVinNotFoundAlert = true;
this.$refs.siteFooter.disableForwardButton();
return this.$refs.siteFooter.removeLoader();
@@ -295,19 +326,23 @@ export default {
// Save vehicle, customer, service and registration information
await useMainStore().saveRegistrationAddressLookup(
{
- isSelectedGlassAvailableForVehicle: this.isSelectedGlassAvailableForVehicle,
+ isSelectedGlassAvailableForVehicle:
+ this.isSelectedGlassAvailableForVehicle,
vehicleInfo:
- Object.keys(vehicleInfoToCommit).length === 0
- ? null
- : vehicleInfoToCommit,
+ Object.keys(vehicleInfoToCommit).length === 0
+ ? null
+ : vehicleInfoToCommit,
registrationInfo: {
firstName: this.customerQuestions.firstName,
lastName: this.customerQuestions.lastName,
- address: this.customerQuestions.addressQuestions.streetAddress,
+ address:
+ this.customerQuestions.addressQuestions
+ .streetAddress,
city: this.customerQuestions.addressQuestions.city,
state: this.customerQuestions.addressQuestions.state,
- zipCode: this.customerQuestions.addressQuestions.zipCode
- }
+ zipCode:
+ this.customerQuestions.addressQuestions.zipCode,
+ },
},
false
);
@@ -315,15 +350,18 @@ export default {
return this.navigateForward(carsFound);
},
async navigateForward(carsFound) {
- // Match vehicles found to vehicles in state.
- const matchingCars = carsFound.filter((car) => car.vehicle.carId === useMainStore().order.vehicle.carId);
+ // Match vehicles found to vehicles in state.
+ const matchingCars = carsFound.filter(
+ (car) =>
+ car.vehicle.carId === useMainStore().order.vehicle.carId
+ );
// If a different vehicle is found than the one entered and the selected glass
// is not available for that vehicle then navigate back to "vehicle-damage"
// display vehicle changed alert on that page.
if (
- this.isCarIdDifferent
- && !this.isSelectedGlassAvailableForVehicle
+ this.isCarIdDifferent &&
+ !this.isSelectedGlassAvailableForVehicle
) {
this.$router.navigate(
this.navigationScenarios.SELECTED_VIN_WITH_MISMATCHED_GLASS,
@@ -335,7 +373,8 @@ export default {
await this.navigateForwardWithSingleCarMatch();
} else {
this.$router.navigate(
- this.navigationScenarios.CLICKED_FORWARD_WITH_MULTIPLE_VEHICLES,
+ this.navigationScenarios
+ .CLICKED_FORWARD_WITH_MULTIPLE_VEHICLES,
this.$route,
{},
{},
@@ -348,7 +387,7 @@ export default {
this.displayMatchedDifferentVehicleAlert = false;
this.displayVinLookupByHomeAddressNotAllowedAlert = false;
this.$refs.siteFooter.enableForwardAction();
- }
- }
+ },
+ },
};
diff --git a/src/layouts/address-vehicles/address-vehicles.vue b/src/layouts/address-vehicles/address-vehicles.vue
index 142eee57..397b0f69 100644
--- a/src/layouts/address-vehicles/address-vehicles.vue
+++ b/src/layouts/address-vehicles/address-vehicles.vue
@@ -1,66 +1,84 @@
-
+
diff --git a/src/layouts/capability-questions/capability-questions.vue b/src/layouts/capability-questions/capability-questions.vue
index bfa557f0..c47b4e35 100644
--- a/src/layouts/capability-questions/capability-questions.vue
+++ b/src/layouts/capability-questions/capability-questions.vue
@@ -1,22 +1,22 @@
-
+
diff --git a/src/layouts/license-plate-lookup/license-plate-lookup.vue b/src/layouts/license-plate-lookup/license-plate-lookup.vue
index 3128d9e9..a58830d5 100644
--- a/src/layouts/license-plate-lookup/license-plate-lookup.vue
+++ b/src/layouts/license-plate-lookup/license-plate-lookup.vue
@@ -4,72 +4,70 @@
v-slot="{ meta }"
@submit="onSubmit"
@invalidSubmit="onInvalidSubmit">
-
-
-
-
-
+
@@ -83,7 +81,10 @@ import { useMainStore } from '@/store';
import errorMessages from '@/constants/error-messages';
import { required } from '@/helpers/validation-rules';
import { defineRule, Form } from 'vee-validate';
-import { getDamageString, isGlassAvailableForCarId } from '@/helpers/damage-helper.js';
+import {
+ getDamageString,
+ isGlassAvailableForCarId,
+} from '@/helpers/damage-helper.js';
import routerParams from '@/router/router-constants/router-params.js';
import states from '@/constants/states';
@@ -100,7 +101,10 @@ import dropdownQuestion from '@/digital-components/dropdown-question/dropdown-qu
import alert from '@/ux-components/alert/alert.vue';
// Define Validation Rules
-defineRule('license-plate-required', required(errorMessages.LICENSE_PLATE_REQUIRED));
+defineRule(
+ 'license-plate-required',
+ required(errorMessages.LICENSE_PLATE_REQUIRED)
+);
defineRule('state-required', required(errorMessages.STATE_REQUIRED));
export default {
@@ -114,7 +118,7 @@ export default {
vehicleBanner,
textboxQuestion,
dropdownQuestion,
- alert
+ alert,
},
mixins: [baseFormMixin, vinPagesMixin],
async beforeRouteEnter(to, from, next) {
@@ -125,8 +129,8 @@ export default {
const promiseResultMap = [
{
resultKey: 'cmsContent',
- promise: cmsContentPromise
- }
+ promise: cmsContentPromise,
+ },
];
const resultMap = await settleAllPromises(promiseResultMap);
@@ -149,7 +153,7 @@ export default {
isCarIdDifferent: false,
customAlertData: {},
isSelectedGlassAvailableForVehicle: true,
- forwardButtonCarStyle: ''
+ forwardButtonCarStyle: '',
};
},
computed: {
@@ -163,10 +167,12 @@ export default {
const vinYmmFound =
// eslint-disable-next-line max-len
`${this.customAlertData?.vehicleInfo?.year} ${this.customAlertData?.vehicleInfo?.make} ${this.customAlertData?.vehicleInfo?.model}`;
- const vinYmmExpected =
- `${this.mainStore.order.vehicle.year} ${this.mainStore.order.vehicle.make} ${this.mainStore.order.vehicle.model}`;
+ const vinYmmExpected = `${this.mainStore.order.vehicle.year} ${this.mainStore.order.vehicle.make} ${this.mainStore.order.vehicle.model}`;
- return this.getCmsContent('AlertMatchedDifferentVehicleWidget', 'BodyText')
+ return this.getCmsContent(
+ 'AlertMatchedDifferentVehicleWidget',
+ 'BodyText'
+ )
.replaceAll('{custom:damage}', getDamageString())
.replaceAll('{custom:vinYmmFound}', vinYmmFound)
.replaceAll('{custom:vinYmmExpected}', vinYmmExpected);
@@ -185,7 +191,10 @@ export default {
// eslint-disable-next-line max-len
`${this.mainStore.order.vehicle.year} ${this.mainStore.order.vehicle.make} ${this.mainStore.order.vehicle.model} ${this.mainStore.order.vehicle.style}`;
- return this.getCmsContent('AlertMatchedTwoIdenticalYMMVehicleWidget', 'BodyText')
+ return this.getCmsContent(
+ 'AlertMatchedTwoIdenticalYMMVehicleWidget',
+ 'BodyText'
+ )
.replaceAll('{custom:damage}', getDamageString())
.replaceAll('{custom:vinYmmsFound}', vinYmmsFound)
.replaceAll('{custom:vinYmmsExpected}', vinYmmsExpected);
@@ -194,23 +203,26 @@ export default {
const vinYmmFound =
// eslint-disable-next-line max-len
`${this.customAlertData?.vehicleInfo?.year} ${this.customAlertData?.vehicleInfo?.make} ${this.customAlertData?.vehicleInfo?.model}`;
- const vinYmmExpected =
- `${this.mainStore.order.vehicle.year} ${this.mainStore.order.vehicle.make} ${this.mainStore.order.vehicle.model}`;
- return (vinYmmFound.toLowerCase() === vinYmmExpected.toLowerCase());
+ const vinYmmExpected = `${this.mainStore.order.vehicle.year} ${this.mainStore.order.vehicle.make} ${this.mainStore.order.vehicle.model}`;
+ return vinYmmFound.toLowerCase() === vinYmmExpected.toLowerCase();
},
stateOptions: {
get() {
return states;
- }
- }
+ },
+ },
},
watch: {
licensePlate() {
- this.$refs.siteFooter.updateButtonText(this.getCmsContent('SiteFooterWidget', 'ForwardButtonText'));
+ this.$refs.siteFooter.updateButtonText(
+ this.getCmsContent('SiteFooterWidget', 'ForwardButtonText')
+ );
},
registrationZipCode() {
- this.$refs.siteFooter.updateButtonText(this.getCmsContent('SiteFooterWidget', 'ForwardButtonText'));
- }
+ this.$refs.siteFooter.updateButtonText(
+ this.getCmsContent('SiteFooterWidget', 'ForwardButtonText')
+ );
+ },
},
mounted() {
this.attachCustomEvents();
@@ -221,7 +233,8 @@ export default {
return useMainStore().order.vehicle.carId !== null;
},
loadDefaultsFromStore() {
- this.customerQuestions = this.mainStore.customerData.addressQuestions.state;
+ this.customerQuestions =
+ this.mainStore.customerData.addressQuestions.state;
},
attachCustomEvents() {
this.prependActionToMethod(this, this.forwardButtonAction, () => {
@@ -238,14 +251,17 @@ export default {
this.resetWarningsAndErrors();
// Lookup VIN
- const vinLookupResponse = await useMainStore().lookupVinByPlate(this.licensePlate, this.licenseState);
+ const vinLookupResponse = await useMainStore().lookupVinByPlate(
+ this.licensePlate,
+ this.licenseState
+ );
// Settle promises and get results
const promiseResultMap = [
{
resultKey: 'vinLookupResponse',
- promise: vinLookupResponse
- }
+ promise: vinLookupResponse,
+ },
];
const resultMap = await settleAllPromises(promiseResultMap);
@@ -265,8 +281,8 @@ export default {
vehicleFromLookup.carId !== useMainStore().order.vehicle.carId;
// Handle changing car
if (
- this.isCarIdDifferent
- && vehicleFromLookup.carId !== this.previouslyEnteredCarId
+ this.isCarIdDifferent &&
+ vehicleFromLookup.carId !== this.previouslyEnteredCarId
) {
// Display Alert
this.previouslyEnteredCarId = vehicleFromLookup.carId;
@@ -279,24 +295,30 @@ export default {
this.displayMatchedDifferentVehicleAlert = true;
}
- this.isSelectedGlassAvailableForVehicle = await isGlassAvailableForCarId(vehicleFromLookup.carId);
+ this.isSelectedGlassAvailableForVehicle =
+ await isGlassAvailableForCarId(vehicleFromLookup.carId);
// Update button "Continue with..."
this.$refs.siteFooter
// eslint-disable-next-line max-len
- .updateButtonText(`Continue with ${vehicleFromLookup.year} ${vehicleFromLookup.make} ${vehicleFromLookup.model} ${this.forwardButtonCarStyle}`);
+ .updateButtonText(
+ `Continue with ${vehicleFromLookup.year} ${vehicleFromLookup.make} ${vehicleFromLookup.model} ${this.forwardButtonCarStyle}`
+ );
return this.$refs.siteFooter.removeLoader();
}
// Save vehicle, license plate, and registration information
await useMainStore().saveRegistrationLicensePlateLookup(
{
- isSelectedGlassAvailableForVehicle: this.isSelectedGlassAvailableForVehicle,
- vehicleInfo: Object.assign(vinLookupResponse.data.vehicle, { vin: vinLookupResponse.data.vin }),
+ isSelectedGlassAvailableForVehicle:
+ this.isSelectedGlassAvailableForVehicle,
+ vehicleInfo: Object.assign(vinLookupResponse.data.vehicle, {
+ vin: vinLookupResponse.data.vin,
+ }),
registrationInfo: {
licensePlate: this.licensePlate,
- state: this.licenseState
- }
+ state: this.licenseState,
+ },
},
false
);
@@ -307,7 +329,10 @@ export default {
// If a different vehicle is found than the one entered and the selected glass is
// not available for that vehicle then navigate back to "vehicle-damage"
// display vehicle changed alert on that page.
- if (this.isCarIdDifferent && !this.isSelectedGlassAvailableForVehicle) {
+ if (
+ this.isCarIdDifferent &&
+ !this.isSelectedGlassAvailableForVehicle
+ ) {
this.$router.navigate(
this.navigationScenarios.SELECTED_VIN_WITH_MISMATCHED_GLASS,
this.$route,
@@ -321,8 +346,8 @@ export default {
resetWarningsAndErrors() {
this.displayVinNotFoundAlert = false;
this.displayMatchedDifferentVehicleAlert = false;
- }
- }
+ },
+ },
};
diff --git a/src/layouts/molding-questions/molding-questions.vue b/src/layouts/molding-questions/molding-questions.vue
index db7a7243..4926db11 100644
--- a/src/layouts/molding-questions/molding-questions.vue
+++ b/src/layouts/molding-questions/molding-questions.vue
@@ -1,23 +1,23 @@
-
+
diff --git a/src/layouts/order-confirmation/order-confirmation.vue b/src/layouts/order-confirmation/order-confirmation.vue
index b7e1af75..40aef06a 100644
--- a/src/layouts/order-confirmation/order-confirmation.vue
+++ b/src/layouts/order-confirmation/order-confirmation.vue
@@ -32,7 +32,9 @@
overnightDropOffWidgetName="AddToCalendar_OvernightDropOff"
allDayDropOffWidgetName="AddToCalendar_AllDayDropOff"
sameDayDropOffWidgetName="AddToCalendar_SameDayDropOff"
- :serviceLocationFullAddress="serviceLocationFullAddress"
+ :serviceLocationFullAddress="
+ serviceLocationFullAddress
+ "
:providerFullAddress="providerFullAddress"
:appointmentType="appointmentType"
:scheduleDate="appointmentDate"
@@ -40,12 +42,10 @@
:scheduleEndTime="appointmentEndTime" />
-
+ v-html="appointmentWordingText">
-
+ v-html="appointmentWordingText2">
{
vm.setCmsContent(resultMap.cmsContent);
@@ -124,9 +130,18 @@ export default {
return this.mainStore.issConfig.successReturnURL;
},
confirmationEmailText() {
- return this.getCmsContent('EmailConfirmationWordingWidget', 'BodyText')
- ?.replaceAll('{custom:CUSTOMER_PORTAL_URL}', applicationConfig.CUSTOMER_PORTAL_URL)
- ?.replaceAll('{custom:CUSTOMER_PORTAL_LOGIN_TOKEN}', this.submittedOrder.customerPortalLoginToken)
+ return this.getCmsContent(
+ 'EmailConfirmationWordingWidget',
+ 'BodyText'
+ )
+ ?.replaceAll(
+ '{custom:CUSTOMER_PORTAL_URL}',
+ applicationConfig.CUSTOMER_PORTAL_URL
+ )
+ ?.replaceAll(
+ '{custom:CUSTOMER_PORTAL_LOGIN_TOKEN}',
+ this.submittedOrder.customerPortalLoginToken
+ )
?.replaceAll('<', '<')
?.replaceAll('>', '>');
},
@@ -155,11 +170,13 @@ export default {
return dateObject.toLocaleDateString('en-us', {
weekday: 'long',
month: 'long',
- day: 'numeric'
+ day: 'numeric',
});
},
appointmentTimeFormatted() {
- const formattedTime = this.formatAppointmentTime(this.appointmentType);
+ const formattedTime = this.formatAppointmentTime(
+ this.appointmentType
+ );
return formattedTime;
},
mobileWordingText() {
@@ -169,7 +186,10 @@ export default {
return this.getCmsContent('MobileWordingWidget', 'BodyText2');
},
dropOffAndInShopWordingText() {
- return this.getCmsContent('DropOffAndInShopWordingWidget', 'BodyText');
+ return this.getCmsContent(
+ 'DropOffAndInShopWordingWidget',
+ 'BodyText'
+ );
},
dropOffAndInShopWordingText2() {
return this.getBodyText2FromCms('DropOffAndInShopWordingWidget');
@@ -191,13 +211,24 @@ export default {
},
serviceLocationFullAddress() {
// eslint-disable-next-line max-len
- return `${this.serviceLocationAddress}, ${this.serviceLocationAddress2 ? `${this.serviceLocationAddress2},` : ''}
${this.serviceLocationCity}, ${this.serviceLocationState} ${this.serviceLocationZipCode}`;
+ return `${this.serviceLocationAddress}, ${
+ this.serviceLocationAddress2
+ ? `${this.serviceLocationAddress2},`
+ : ''
+ }
${this.serviceLocationCity}, ${this.serviceLocationState} ${
+ this.serviceLocationZipCode
+ }`;
},
providerAddress() {
- return toTitleCase(this.submittedOrder.serviceLocation.provider.address.streetAddress);
+ return toTitleCase(
+ this.submittedOrder.serviceLocation.provider.address
+ .streetAddress
+ );
},
providerCity() {
- return toTitleCase(this.submittedOrder.serviceLocation.provider.address.city);
+ return toTitleCase(
+ this.submittedOrder.serviceLocation.provider.address.city
+ );
},
providerState() {
return this.submittedOrder.serviceLocation.provider.address.state;
@@ -207,7 +238,9 @@ export default {
},
providerFullAddress() {
// eslint-disable-next-line max-len
- return this.submittedOrder.serviceLocation?.provider?.address ? `${this.providerAddress},
${this.providerCity}, ${this.providerState} ${this.providerZipCode}` : '';
+ return this.submittedOrder.serviceLocation?.provider?.address
+ ? `${this.providerAddress},
${this.providerCity}, ${this.providerState} ${this.providerZipCode}`
+ : '';
},
appointmentWordingText() {
switch (this.appointmentType) {
@@ -248,14 +281,24 @@ export default {
}
},
mobileAppointment() {
- return this.submittedOrder.serviceLocation.appointmentType === AppointmentTypeStrings.MOBILE
- || this.submittedOrder.serviceLocation.appointmentType === AppointmentTypeStrings.MOBILE_NOT_ITAC_AND_NOT_NOCOMP;
+ return (
+ this.submittedOrder.serviceLocation.appointmentType ===
+ AppointmentTypeStrings.MOBILE ||
+ this.submittedOrder.serviceLocation.appointmentType ===
+ AppointmentTypeStrings.MOBILE_NOT_ITAC_AND_NOT_NOCOMP
+ );
},
inShopAppointment() {
- return this.submittedOrder.serviceLocation.appointmentType === AppointmentTypeStrings.IN_SHOP;
+ return (
+ this.submittedOrder.serviceLocation.appointmentType ===
+ AppointmentTypeStrings.IN_SHOP
+ );
},
dropOffAppointment() {
- return this.submittedOrder.serviceLocation.appointmentType === AppointmentTypeStrings.DROP_OFF;
+ return (
+ this.submittedOrder.serviceLocation.appointmentType ===
+ AppointmentTypeStrings.DROP_OFF
+ );
},
inShopAppointmentDuration() {
const inshopDurationTime = getDisplayTextForDurationLength(
@@ -263,11 +306,13 @@ export default {
this.submittedOrder.schedule.jobMaxMinutes
);
return inshopDurationTime;
- }
+ },
},
mounted() {
if (this.carrierUrl) {
- this.$refs.siteFooter.updateButtonText(`Go back to ${this.carrierName}`);
+ this.$refs.siteFooter.updateButtonText(
+ `Go back to ${this.carrierName}`
+ );
}
},
methods: {
@@ -280,57 +325,62 @@ export default {
// Service Location
const { serviceLocation } = useMainStore().order;
const mobileReqs = !!(
- serviceLocation.address
- && serviceLocation.city
- && serviceLocation.state
- && serviceLocation.zipCode
+ serviceLocation.address &&
+ serviceLocation.city &&
+ serviceLocation.state &&
+ serviceLocation.zipCode
);
const providerLocation = serviceLocation.provider.address;
const dropOffInShopReqs = !!(
- providerLocation.streetAddress
- && providerLocation.city
- && providerLocation.state
- && providerLocation.zipCode
+ providerLocation.streetAddress &&
+ providerLocation.city &&
+ providerLocation.state &&
+ providerLocation.zipCode
);
- const isMobile = serviceLocation.appointmentType === AppointmentTypeStrings.MOBILE
- || serviceLocation.appointmentType === AppointmentTypeStrings.MOBILE_NOT_ITAC_AND_NOT_NOCOMP;
+ const isMobile =
+ serviceLocation.appointmentType ===
+ AppointmentTypeStrings.MOBILE ||
+ serviceLocation.appointmentType ===
+ AppointmentTypeStrings.MOBILE_NOT_ITAC_AND_NOT_NOCOMP;
const serviceLocationReqs =
(isMobile && mobileReqs) || (!isMobile && dropOffInShopReqs);
// Insurance
- const isInsuranceSet = useMainStore().order.payment.isInsurance !== null;
+ const isInsuranceSet =
+ useMainStore().order.payment.isInsurance !== null;
// Schedule
const { schedule } = useMainStore().order;
const scheduleReqs = !!(
- schedule.date
- && schedule.startTime
- && schedule.endTime
- && schedule.jobMaxMinutes
- && schedule.jobMinMinutes
+ schedule.date &&
+ schedule.startTime &&
+ schedule.endTime &&
+ schedule.jobMaxMinutes &&
+ schedule.jobMinMinutes
);
// Contact Info
const { contactInfo } = useMainStore().order;
const contactInfoReqs = !!(
- contactInfo.firstName
- && contactInfo.lastName
- && contactInfo.servicePhone
- && contactInfo.emailAddress
+ contactInfo.firstName &&
+ contactInfo.lastName &&
+ contactInfo.servicePhone &&
+ contactInfo.emailAddress
);
// Payment
- const paymentMethodReqs = useMainStore().order.payment.isPayInAdvance === false;
+ const paymentMethodReqs =
+ useMainStore().order.payment.isPayInAdvance === false;
return (
- serviceLocationReqs
- && isInsuranceSet
- && scheduleReqs
- && contactInfoReqs
- && paymentMethodReqs
+ serviceLocationReqs &&
+ isInsuranceSet &&
+ scheduleReqs &&
+ contactInfoReqs &&
+ paymentMethodReqs
);
},
forwardButtonAction() {
@@ -341,11 +391,15 @@ export default {
case AppointmentTypeStrings.MOBILE:
case AppointmentTypeStrings.MOBILE_NOT_ITAC_AND_NOT_NOCOMP:
// eslint-disable-next-line max-len
- return `Between ${get12HourTimeMobileFormat(this.appointmentStartTime)} - ${get12HourTimeMobileFormat(this.appointmentEndTime)}`;
+ return `Between ${get12HourTimeMobileFormat(
+ this.appointmentStartTime
+ )} - ${get12HourTimeMobileFormat(this.appointmentEndTime)}`;
case AppointmentTypeStrings.DROP_OFF:
return 'Drop off before 9:30 AM';
case AppointmentTypeStrings.IN_SHOP:
- return `at ${get12HourTimeFormat(this.appointmentStartTime)}`;
+ return `at ${get12HourTimeFormat(
+ this.appointmentStartTime
+ )}`;
default:
return null;
}
@@ -353,7 +407,11 @@ export default {
processIfStatements,
getBodyText2FromCms(cmsWidgetName) {
const body2Text = this.getCmsContent(cmsWidgetName, 'BodyText2');
- return this.processIfStatements(body2Text, 'custom', this.getCustomValueFromString);
+ return this.processIfStatements(
+ body2Text,
+ 'custom',
+ this.getCustomValueFromString
+ );
},
getCustomValueFromString(str) {
switch (str) {
@@ -364,8 +422,8 @@ export default {
default:
return null;
}
- }
- }
+ },
+ },
};
diff --git a/src/layouts/policy-holder-details/policy-holder-details.vue b/src/layouts/policy-holder-details/policy-holder-details.vue
index b1418757..cf39a493 100644
--- a/src/layouts/policy-holder-details/policy-holder-details.vue
+++ b/src/layouts/policy-holder-details/policy-holder-details.vue
@@ -4,48 +4,48 @@
v-slot="{ meta }"
@submit="onSubmit"
@invalidSubmit="onInvalidSubmit">
-
-
-
-
-
-
+
@@ -74,7 +74,7 @@ export default {
addressQuestions,
siteFooter,
// eslint-disable-next-line vue/no-reserved-component-names
- Form
+ Form,
},
mixins: [BaseFormMixin],
async beforeRouteEnter(to, from, next) {
@@ -85,8 +85,8 @@ export default {
const promiseResultMap = [
{
resultKey: 'cmsContent',
- promise: cmsContentPromise
- }
+ promise: cmsContentPromise,
+ },
];
// use resultMap to populate layout content.
@@ -106,8 +106,8 @@ export default {
vehiclesFound: [],
rules: {
firstName: globalRules.POLICYHOLDER_FIRST_NAME_REQUIRED,
- lastName: globalRules.POLICYHOLDER_LAST_NAME_REQUIRED
- }
+ lastName: globalRules.POLICYHOLDER_LAST_NAME_REQUIRED,
+ },
};
},
computed: {
@@ -116,10 +116,9 @@ export default {
},
vehiclesCount() {
return this.vehiclesFound.length;
- }
+ },
},
- methods:
- {
+ methods: {
async forwardButtonAction() {
this.mainStore.updatePolicyHolderDetails(this.customerQuestions);
return this.navigateForward();
@@ -144,19 +143,20 @@ export default {
getPolicyHolderDetailsFromStore() {
return {
- addressQuestions:
- {
- streetAddress: this.mainStore.order.customer.address.streetAddress,
- streetAddress2: this.mainStore.order.customer.address.streetAddress2,
+ addressQuestions: {
+ streetAddress:
+ this.mainStore.order.customer.address.streetAddress,
+ streetAddress2:
+ this.mainStore.order.customer.address.streetAddress2,
city: this.mainStore.order.customer.address.city,
state: this.mainStore.order.customer.address.state,
- zipCode: this.mainStore.order.customer.address.zipCode
+ zipCode: this.mainStore.order.customer.address.zipCode,
},
firstName: this.mainStore.order.customer.firstName,
- lastName: this.mainStore.order.customer.lastName
+ lastName: this.mainStore.order.customer.lastName,
};
- }
- }
+ },
+ },
};
@@ -164,14 +164,14 @@ export default {
#sub-header p {
font-size: 16px;
line-height: 26px;
- color: #4D5151;
+ color: #4d5151;
}
#address-questions-wrapper {
margin-top: 24px;
}
-#address-questions-wrapper .alert.heading {
+#address-questions-wrapper .alert.heading {
line-height: 24px;
}
diff --git a/src/layouts/service-packages/service-packages.vue b/src/layouts/service-packages/service-packages.vue
index 35dab39e..ea181224 100644
--- a/src/layouts/service-packages/service-packages.vue
+++ b/src/layouts/service-packages/service-packages.vue
@@ -4,14 +4,18 @@
v-slot="{ meta }"
@submit="onSubmit"
@invalid-submit="onInvalidSubmit">
-
-
-
-
-
+
-
-
-
-
-
@@ -81,7 +81,7 @@ export default {
Form,
servicePackageQuestion,
loadingModal,
- contentGroupModal
+ contentGroupModal,
},
mixins: [baseFormMixin],
async beforeRouteEnter(to, from, next) {
@@ -94,20 +94,20 @@ export default {
const promiseResultMap = [
{
resultKey: 'cmsContent',
- promise: cmsContentPromise
+ promise: cmsContentPromise,
},
{
resultKey: 'wipers',
- promise: wipersPromise
+ promise: wipersPromise,
},
{
resultKey: 'rainDefense',
- promise: rainDefensePromise
+ promise: rainDefensePromise,
},
{
resultKey: 'supportingItems',
- promise: supportingItemsPromise
- }
+ promise: supportingItemsPromise,
+ },
];
const resultMap = await settleAllPromises(promiseResultMap);
@@ -118,11 +118,12 @@ export default {
resultMap.rainDefense,
...resultMap.supportingItems,
...resultMap.wipers,
- ...clonedGlassParts
+ ...clonedGlassParts,
];
let hasBailedOut = false;
- const pricingResults = await store.getPriceOrderItems(availableLineItems)
+ const pricingResults = await store
+ .getPriceOrderItems(availableLineItems)
.catch((err) => {
useMainStore().setBailout(
bailoutMessage.pricingResponseError(
@@ -155,17 +156,17 @@ export default {
'Looking for dates',
'Searching for times',
'Nearly there',
- 'Finishing up'
+ 'Finishing up',
],
rules: {
- optionRequired: globalRules.OPTION_REQUIRED
- }
+ optionRequired: globalRules.OPTION_REQUIRED,
+ },
};
},
computed: {
PriceDisclaimerText() {
return this.getCmsContent('PriceDisclaimerWidget', 'Text');
- }
+ },
},
methods: {
openModalAction(modalName) {
@@ -173,11 +174,11 @@ export default {
},
arePagePrerequisitesValid() {
return (
- store.order.serviceLocation.zipCode
- && store.order.serviceLocation.zipCodeCtu
- && (store.order.damage.isRepair
- || (store.order.lineItems?.glassParts != null
- && store.order.lineItems.glassParts.length > 0))
+ store.order.serviceLocation.zipCode &&
+ store.order.serviceLocation.zipCodeCtu &&
+ (store.order.damage.isRepair ||
+ (store.order.lineItems?.glassParts != null &&
+ store.order.lineItems.glassParts.length > 0))
);
},
vapsItemsSelectedAction(vapsItemsSelected) {
@@ -187,10 +188,12 @@ export default {
const parts = {
glassParts: this.pricedGlassParts,
supportingItems: this.supportingItems,
- vaps: this.selectedVaps
+ vaps: this.selectedVaps,
};
if (!allGlassPartsAndItemsHavePrices(parts)) {
- window.console.error('One or more items have no price assigned!');
+ window.console.error(
+ 'One or more items have no price assigned!'
+ );
}
if (this.pricedGlassParts.length > 0) {
store.updateGlassParts(this.pricedGlassParts);
@@ -198,15 +201,18 @@ export default {
store.updateSupportingItems(this.supportingItems);
store.updateVaps(this.selectedVaps);
- this.$router.navigate(this.navigationScenarios.CLICKED_FORWARD, this.$route);
- }
- }
+ this.$router.navigate(
+ this.navigationScenarios.CLICKED_FORWARD,
+ this.$route
+ );
+ },
+ },
};
diff --git a/src/layouts/tpa-submit/tpa-submit.vue b/src/layouts/tpa-submit/tpa-submit.vue
index 1fdcd386..373dfe07 100644
--- a/src/layouts/tpa-submit/tpa-submit.vue
+++ b/src/layouts/tpa-submit/tpa-submit.vue
@@ -5,12 +5,16 @@
class="tpa-submit"
@submit="onSubmit"
@invalidSubmit="onInvalidSubmit">
-