rlsmerge 2024.09.04 to develop

This commit is contained in:
Chris Redelinghuys 2025-09-03 15:42:38 -04:00
commit b9cfaf43f2
44 changed files with 559 additions and 293 deletions

View file

@ -18,7 +18,7 @@ body .validation-info {
display: none; display: none;
} }
body .italicSmall { body .italicSmall {
font-style: normal; font-style: italic;
font-size: 14px; font-size: 14px;
} }
body span { body span {
@ -153,13 +153,13 @@ body .buttonContainer button {
} }
} }
body .buttonContainer button:focus { body .buttonContainer button:focus {
box-shadow: 0 0 0 3px, 0 0 0 5.5px #06577c; box-shadow: 0 0 0 3px, 0 0 0 5.5px #db0020;
} }
body .buttonContainer button:focus, body .buttonContainer button:focus-visible { body .buttonContainer button:focus, body .buttonContainer button:focus-visible {
outline: none; outline: none;
box-shadow: 0 0 0 3px, 0 0 0 5.5px #06577c; box-shadow: 0 0 0 3px, 0 0 0 5.5px #db0020;
color: #fff; color: #fff;
background: linear-gradient(270deg, rgb(6, 87, 124) 0%, rgb(6, 87, 124) 100%); background: #db0020;
} }
body .buttonContainer button:disabled { body .buttonContainer button:disabled {
background: #e3e4e4 !important; background: #e3e4e4 !important;
@ -274,7 +274,7 @@ body .cc-error-container #alert-message {
#fmg-checkout-shared #other-payments-container label span.paymentOptionText { #fmg-checkout-shared #other-payments-container label span.paymentOptionText {
margin: auto 0; margin: auto 0;
padding-left: 0; padding-left: 0;
font-weight: 400; font-weight: 600;
} }
#fmg-checkout-shared #other-payments-container #afterpayParentLink label > span:first-of-type { #fmg-checkout-shared #other-payments-container #afterpayParentLink label > span:first-of-type {
width: 100%; width: 100%;
@ -297,7 +297,7 @@ body .cc-error-container #alert-message {
text-align: right; text-align: right;
} }
#fmg-checkout-shared #other-payments-container #creditCardParentDiv .paymentSelection #creditCardImages > img { #fmg-checkout-shared #other-payments-container #creditCardParentDiv .paymentSelection #creditCardImages > img {
width: 20%; width: 12%;
} }
#fmg-checkout-shared #other-payments-container #creditCardParentDiv .creditCardSpecific { #fmg-checkout-shared #other-payments-container #creditCardParentDiv .creditCardSpecific {
padding: 0 2%; padding: 0 2%;
@ -309,11 +309,13 @@ body .cc-error-container #alert-message {
margin-top: 24px; margin-top: 24px;
margin-bottom: 24px; margin-bottom: 24px;
font-size: 14px; font-size: 14px;
font-weight: 600;
color: #525656; color: #525656;
} }
#fmg-checkout-shared #other-payments-container .disclaimerContainerv2 { #fmg-checkout-shared #other-payments-container .disclaimerContainerv2 {
margin-bottom: 24px; margin-bottom: 24px;
font-size: 14px; font-size: 14px;
font-weight: 600;
color: #525656; color: #525656;
} }
@media only screen and (max-device-width: 767px) { @media only screen and (max-device-width: 767px) {

View file

@ -20,7 +20,7 @@ body {
} }
.italicSmall { .italicSmall {
font-style: normal; font-style: italic;
font-size: 14px; font-size: 14px;
} }
@ -161,15 +161,15 @@ body {
cursor: pointer; cursor: pointer;
} }
&:focus { &:focus {
box-shadow: 0 0 0 3px, 0 0 0 5.5px #06577c; box-shadow: 0 0 0 3px, 0 0 0 5.5px #db0020;
} }
&:focus, // Mouse, touch, stylus focus &:focus, // Mouse, touch, stylus focus
&:focus-visible { &:focus-visible {
// Keyboard focus for accessibility // Keyboard focus for accessibility
outline: none; outline: none;
box-shadow: 0 0 0 3px, 0 0 0 5.5px #06577c; box-shadow: 0 0 0 3px, 0 0 0 5.5px #db0020;
color: #fff; color: #fff;
background: linear-gradient(270deg, rgba(6, 87, 124, 1) 0%, rgba(6, 87, 124, 1) 100%); background: #db0020;
} }
&:disabled { &:disabled {
background: #e3e4e4 !important; background: #e3e4e4 !important;
@ -332,7 +332,7 @@ body {
&.paymentOptionText { &.paymentOptionText {
margin: auto 0; margin: auto 0;
padding-left: 0; padding-left: 0;
font-weight: 400; font-weight: 600;
} }
} }
} }
@ -372,7 +372,7 @@ body {
text-align: right; text-align: right;
> img { > img {
width: 20%; width: 12%;
} }
} }
} }
@ -390,12 +390,14 @@ body {
margin-top: 24px; margin-top: 24px;
margin-bottom: 24px; margin-bottom: 24px;
font-size: 14px; font-size: 14px;
font-weight: 600;
color: #525656; color: #525656;
} }
.disclaimerContainerv2 { .disclaimerContainerv2 {
margin-bottom: 24px; margin-bottom: 24px;
font-size: 14px; font-size: 14px;
font-weight: 600;
color: #525656; color: #525656;
} }
} }

View file

@ -26,7 +26,7 @@ const errorMessages = {
VIN_FORMAT: VIN_FORMAT:
"Invalid VIN. Please make sure that you entered the correct 17-digit, alpha-numeric number. VINs do not contain the letters I, O, or Q", "Invalid VIN. Please make sure that you entered the correct 17-digit, alpha-numeric number. VINs do not contain the letters I, O, or Q",
OPTION_REQUIRED: "Please select an option", OPTION_REQUIRED: "Please select an option",
RECAL_ACK_REQUIRED: "Please acknowledge recalibration alert", RECAL_ACK_REQUIRED: "You must agree to the terms to submit",
VEHICLE_REQUIRED: "Please select a vehicle", VEHICLE_REQUIRED: "Please select a vehicle",
MOBILE_LOCATION_REQUIRED: "Please enter your service address", MOBILE_LOCATION_REQUIRED: "Please enter your service address",
DATE_REQUIRED: "Please select a date", DATE_REQUIRED: "Please select a date",
@ -37,6 +37,7 @@ const errorMessages = {
MODEL_REQUIRED: "Please select your vehicle model", MODEL_REQUIRED: "Please select your vehicle model",
STYLE_REQUIRED: "Please select your vehicle style", STYLE_REQUIRED: "Please select your vehicle style",
PROMO_REQUIRED: "Please enter a promo code", PROMO_REQUIRED: "Please enter a promo code",
INSURANCE_COMPANY_REQUIRED: "Please select an insurance company",
}; };
export { errorMessages }; export { errorMessages };

View file

@ -1,31 +1,31 @@
export const pageProgressMapper = { export const pageProgressMapper = {
//Combine progress bar slide percent and button steps //Combine progress bar slide percent and button steps
vehicle: { vehicle: {
percent: 8, percent: 5,
step: 1, step: 1,
}, },
"vehicle-damage": { "vehicle-damage": {
percent: 11, percent: 9,
step: 1, step: 1,
}, },
estimate: { estimate: {
percent: 18, percent: 12,
step: 1, step: 1,
}, },
"service-zip": { "service-zip": {
percent: 22, percent: 20,
step: 1, step: 1,
}, },
"vin-lookup": { "vin-lookup": {
percent: 22, percent: 15,
step: 1, step: 1,
}, },
"license-plate-lookup": { "license-plate-lookup": {
percent: 22, percent: 20,
step: 1, step: 1,
}, },
"address-lookup": { "address-lookup": {
percent: 22, percent: 20,
step: 1, step: 1,
}, },
"address-vehicles": { "address-vehicles": {
@ -33,15 +33,15 @@ export const pageProgressMapper = {
step: 1, step: 1,
}, },
"part-questions": { "part-questions": {
percent: 30, percent: 15,
step: 1, step: 1,
}, },
"molding-questions": { "molding-questions": {
percent: 30, percent: 26,
step: 1, step: 1,
}, },
"vehicle-parts": { "vehicle-parts": {
percent: 30, percent: 20,
step: 1, step: 1,
}, },
"capability-questions": { "capability-questions": {
@ -49,11 +49,11 @@ export const pageProgressMapper = {
step: 1, step: 1,
}, },
quote: { quote: {
percent: 62, percent: 60,
step: 2, step: 2,
}, },
"insurance-company": { "insurance-company": {
percent: 52, percent: 60,
step: 2, step: 2,
}, },
"service-location": { "service-location": {
@ -69,11 +69,11 @@ export const pageProgressMapper = {
step: 3, step: 3,
}, },
"customer-details": { "customer-details": {
percent: 84, percent: 85,
step: 3, step: 3,
}, },
"payment-method": { "payment-method": {
percent: 97, percent: 98.5,
step: 4, step: 4,
}, },
payment: { payment: {

View file

@ -2,7 +2,7 @@
<!-- Modal --> <!-- Modal -->
<div <div
class="modal fade modal-component" class="modal fade modal-component"
:class="modalId" :class="[modalId, { 'recall-show': isRecal }]"
v-on="{ 'hidden.bs.modal': onModalClosed, 'shown.bs.modal': onModalOpened }" v-on="{ 'hidden.bs.modal': onModalClosed, 'shown.bs.modal': onModalOpened }"
:data-bs-backdrop="backdropSetting" :data-bs-backdrop="backdropSetting"
:id="modalId" :id="modalId"
@ -11,7 +11,7 @@
@keypress.enter="onEnter" @keypress.enter="onEnter"
aria-hidden="true"> aria-hidden="true">
<!--Close modal when clicking other than close button--> <!--Close modal when clicking other than close button-->
<div class="modal-dialog modal-dialog-centered"> <div class="modal-dialog" :class="{ 'modal-dialog-centered': !isRecal }">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header mb-0 mt-6"> <div class="modal-header mb-0 mt-6">
<label <label
@ -72,6 +72,10 @@ export default {
onModalClosedCallback: { onModalClosedCallback: {
type: Function, type: Function,
}, },
isRecal: {
type: Boolean,
default: false,
},
}, },
setup() { setup() {
const uuid = uuidv4(); const uuid = uuidv4();
@ -196,6 +200,19 @@ export default {
background-color: $white; background-color: $white;
} }
&.modal-component { &.modal-component {
&.recall-show {
.modal-dialog {
transform: translateX(-50%);
left: 50%;
right: auto;
width: auto;
max-width: 600px;
@include media-breakpoint-up(md) {
top: 10%;
}
}
}
.modal-dialog { .modal-dialog {
max-width: 767px; max-width: 767px;
margin: 0 auto; margin: 0 auto;

View file

@ -6,6 +6,7 @@
:max-length="12" :max-length="12"
v-model="selectedValue" v-model="selectedValue"
:mask="mask" :mask="mask"
placeholderText="###-###-####"
:isRequired="isRequired" :isRequired="isRequired"
:validationRules="validationRulesForTextBoxQuestion" :validationRules="validationRulesForTextBoxQuestion"
:cmsWidgetName="cmsWidgetName" /> :cmsWidgetName="cmsWidgetName" />

View file

@ -9,7 +9,7 @@
v-model="addressModel.streetAddress" v-model="addressModel.streetAddress"
ref="autocomplete" ref="autocomplete"
customInputId="streetAddress" customInputId="streetAddress"
placeholderText="Search" placeholderText="Start typing address"
aria-haspopup="" aria-haspopup=""
hasIcon hasIcon
validationRules="street-address-required" validationRules="street-address-required"

View file

@ -3,13 +3,15 @@
<div class="px-0" v-if="isCartReadyToLoad"> <div class="px-0" v-if="isCartReadyToLoad">
<div <div
class="row vin-toggle flex align-items-center pt-4" class="row vin-toggle flex align-items-center pt-4"
:class="[isExpanded ? 'expanded' : '']" :class="[
isCollapsible ? (isExpanded ? 'expanded' : '') : 'expanded non-collapsible',
]"
@click="toggleIsExpanded()"> @click="toggleIsExpanded()">
<a <a
aria-label="expand cart" aria-label="expand cart"
href="javascript:void(0)" href="javascript:void(0)"
class="col d-flex justify-content-between py-0"> class="col d-flex justify-content-between py-0">
<span class="label">{{ OrderDetailsText }}</span> <span class="label">{{ cartHeaderText }}</span>
<span class="label amount-due larger"> <span class="label amount-due larger">
{{ getLineItemAmount(amountDue, showCoverageAsPending) }} {{ getLineItemAmount(amountDue, showCoverageAsPending) }}
</span> </span>
@ -208,6 +210,7 @@ export default {
isItac: Boolean, isItac: Boolean,
isNoComp: Boolean, isNoComp: Boolean,
isExpandedOnLoad: Boolean, isExpandedOnLoad: Boolean,
isCollapsible: { type: Boolean, default: true },
isMSRFeeApplicable: Boolean, isMSRFeeApplicable: Boolean,
donationCartItem: Object, donationCartItem: Object,
}, },
@ -1094,9 +1097,19 @@ export default {
amountDueText() { amountDueText() {
return this.getCmsContent("AmountDueTextWidget", "Text"); return this.getCmsContent("AmountDueTextWidget", "Text");
}, },
OrderDetailsText() { orderDetailsText() {
return this.getCmsContent("OrderDetailsTextWidget", "Text"); return this.getCmsContent("OrderDetailsTextWidget", "Text");
}, },
estimateDetailsText() {
return this.getCmsContent("EstimateDetailsTextWidget", "Text");
},
cartHeaderText() {
if (!this.isInsurance && this.shouldHideRecalibration) {
return this.estimateDetailsText;
} else {
return this.orderDetailsText;
}
},
amountPaidText() { amountPaidText() {
return this.getCmsContent("AmountPaidTextWidget", "Text"); return this.getCmsContent("AmountPaidTextWidget", "Text");
}, },
@ -1182,6 +1195,11 @@ export default {
font-weight: 500; font-weight: 500;
line-height: 1.625; line-height: 1.625;
} }
.non-collapsible {
.amount-due {
display: none;
}
}
.amount-due { .amount-due {
color: $green; color: $green;
@ -1283,23 +1301,26 @@ export default {
margin-top: 0.5rem; margin-top: 0.5rem;
} }
.vin-toggle { .vin-toggle {
&:after { &:not(.non-collapsible) {
content: ""; &:after {
transition: all 0.5s ease; content: "";
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath fill='%230070D1' d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm6.113 11.28-5.52 5.52a.84.84 0 0 1-1.186 0l-5.52-5.52a.843.843 0 1 1 1.186-1.2L12 15.012l4.927-4.932a.843.843 0 1 1 1.186 1.2Z'/%3E%3C/svg%3E"); transition: all 0.5s ease;
background-repeat: no-repeat; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath fill='%230070D1' d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm6.113 11.28-5.52 5.52a.84.84 0 0 1-1.186 0l-5.52-5.52a.843.843 0 1 1 1.186-1.2L12 15.012l4.927-4.932a.843.843 0 1 1 1.186 1.2Z'/%3E%3C/svg%3E");
background-position: right center; background-repeat: no-repeat;
width: 24px; background-position: right center;
height: 24px; width: 24px;
display: inline-flex; height: 24px;
position: relative; display: inline-flex;
right: 0.75rem; position: relative;
margin: 0.5rem 0 0.5rem 1rem; right: 0.75rem;
cursor: pointer; margin: 0.5rem 0 0.5rem 1rem;
} cursor: pointer;
&.expanded:after { }
transform: rotate(180deg); &.expanded:after {
transform: rotate(180deg);
}
} }
&.expanded + .cart-panel { &.expanded + .cart-panel {
max-height: 650px; max-height: 650px;
transition: all 150ms ease-in; transition: all 150ms ease-in;
@ -1307,6 +1328,13 @@ export default {
padding: 1rem 0 0.5rem; padding: 1rem 0 0.5rem;
visibility: visible; visibility: visible;
} }
&.non-collapsible {
& > a {
cursor: default;
}
}
a { a {
font-family: UrbanistSemibold; font-family: UrbanistSemibold;
text-decoration: none; text-decoration: none;

View file

@ -3,7 +3,8 @@
:ref="ModalName" :ref="ModalName"
:modalId="ModalName" :modalId="ModalName"
:footerButtonText="ModalCloseButtonText" :footerButtonText="ModalCloseButtonText"
@footer-button-event="footerButtonClick"> @footer-button-event="footerButtonClick"
:isRecal="isRecal">
<div :class="[isRecal ? 'recal-modal' : '']"> <div :class="[isRecal ? 'recal-modal' : '']">
<img :src="ModalImage" class="mw-100 d-flex mx-auto mb-4" alt="" /> <img :src="ModalImage" class="mw-100 d-flex mx-auto mb-4" alt="" />
<h5 class="mb-4" v-html="ModalHeadline"></h5> <h5 class="mb-4" v-html="ModalHeadline"></h5>

View file

@ -26,16 +26,18 @@
</div> </div>
</div> </div>
<template v-for="globalAlert in globalAlertMessages" :key="globalAlert.id"> <template v-for="globalAlert in globalAlertMessages" :key="globalAlert.id">
<transition name="fade" mode="out-in"> <div class="container d-flex global-alert-wrapper">
<alert <transition name="fade" mode="out-in">
v-if="globalAlert.displayAlert" <alert
class="rounded-0 w-100 border-0 shadow-sm" v-if="globalAlert.displayAlert"
cmsWidgetName="GlobalAlert" class="rounded-0 w-100 border-0 shadow-sm"
:manualHeadline="globalAlert.messageHeadline" cmsWidgetName="GlobalAlert"
:manualCopy="globalAlert.messageCopy" :manualHeadline="globalAlert.messageHeadline"
:alertClass="globalAlert.type" :manualCopy="globalAlert.messageCopy"
v-bind:isDismissible="globalAlert.isDismissible" /> :alertClass="globalAlert.type"
</transition> v-bind:isDismissible="globalAlert.isDismissible" />
</transition>
</div>
</template> </template>
</template> </template>
@ -257,4 +259,11 @@ export default {
} }
} }
} }
.global-alert-wrapper .alert {
margin: 1rem 0 1.5rem;
@include media-breakpoint-up(md) {
margin-top: 0;
}
}
</style> </style>

View file

@ -12,12 +12,17 @@
</h5> </h5>
</div> </div>
<div <div
v-if="subText" v-if="subText && !alignLeft"
class="d-flex align-items-center justify-content-center container-fluid overflow-hidden mt-1"> class="d-flex align-items-center justify-content-center container-fluid overflow-hidden mt-1">
<p class="text-center small fw-normal sub-text"> <p class="text-center small fw-normal sub-text">
<span v-html="subText"></span> <span v-html="subText"></span>
</p> </p>
</div> </div>
<div v-if="subText && alignLeft" class="d-flex overflow-hidden mt-1 mx-0">
<p class="small fw-normal sub-text">
<span v-html="subText"></span>
</p>
</div>
</div> </div>
</template> </template>
@ -33,6 +38,7 @@ export default {
type: String, type: String,
default: "dark-header", default: "dark-header",
}, },
alignLeft: Boolean,
}, },
components: { components: {
buttonBack, buttonBack,
@ -62,6 +68,9 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
:deep(.bolded-words) { :deep(.bolded-words) {
font-family: UrbanistSemibold, Arial, Helvetica, sans-serif; font-family: UrbanistSemibold, Arial, Helvetica, sans-serif;
color: $black;
font-weight: 600;
font-size: 16px;
} }
h5 { h5 {
line-height: 32px; line-height: 32px;
@ -81,7 +90,7 @@ h5 {
} }
p.small { p.small {
color: $gray-550; color: $gray-600;
} }
.sub-text { .sub-text {
margin: 0; margin: 0;

View file

@ -5,7 +5,7 @@
<div class="container page-container-grouped-styles"> <div class="container page-container-grouped-styles">
<div class="row"> <div class="row">
<div class="col-12 col-md-10 col-lg-8 col-xl-7"> <div class="col-12 col-md-10 col-lg-8 col-xl-7">
<funnelSubHeader cmsWidgetName="FunnelSubHeaderWidget" /> <funnelSubHeader cmsWidgetName="FunnelSubHeaderWidget" alignLeft />
</div> </div>
</div> </div>
<div class="row"> <div class="row">

View file

@ -1,18 +1,15 @@
<template> <template>
<div class="save-progress-modal-question" :class="isProgressSaved ? 'progress-saved' : ''"> <div
class="save-progress-modal-question"
:class="isProgressSaved ? 'progress-saved' : ''"
v-if="!isProgressSaved">
<buttonMain <buttonMain
type="button" type="button"
v-if="!isProgressSaved"
:buttonText="buttonText" :buttonText="buttonText"
loaderColor="white" loaderColor="white"
:suppressLoader="true" :suppressLoader="true"
class="open-save-progress-button" class="open-save-progress-button"
@click-event="openModal" /> @click-event="openModal" />
<alert
class="my-4"
v-else
cmsWidgetName="SaveProgressModalAlertWidget"
alertClass="alert-success" />
<modal <modal
:ref="modalName" :ref="modalName"
:headerText="modalHeaderText" :headerText="modalHeaderText"
@ -31,6 +28,11 @@
</template> </template>
</modal> </modal>
</div> </div>
<alert
class="my-4 save-your-progress-alert"
v-else
cmsWidgetName="SaveProgressModalAlertWidget"
alertClass="alert-success" />
</template> </template>
<script> <script>
@ -240,7 +242,9 @@ export default {
} }
} }
} }
}
.save-your-progress-alert {
.alert { .alert {
border-radius: $border-radius-lg; border-radius: $border-radius-lg;
border: 1px solid $green; border: 1px solid $green;
@ -251,7 +255,6 @@ export default {
font-weight: 600; font-weight: 600;
font-size: 1rem; font-size: 1rem;
color: $black; color: $black;
text-align: left;
padding-left: 1.5rem; padding-left: 1.5rem;
&::before { &::before {
position: absolute; position: absolute;

View file

@ -28,6 +28,5 @@ describe("customerQuestions.vue", () => {
expect(addressQuestions.exists()).toBe(true); expect(addressQuestions.exists()).toBe(true);
expect(firstName.exists()).toBe(true); expect(firstName.exists()).toBe(true);
expect(lastName.exists()).toBe(true); expect(lastName.exists()).toBe(true);
expect(emailAddress.exists()).toBe(true);
}); });
}); });

View file

@ -23,24 +23,6 @@
autocomplete="family-name" /> autocomplete="family-name" />
</div> </div>
</div> </div>
<div class="row mt-4">
<div class="col">
<textboxQuestion
cmsWidgetName="EmailAddressQuestionWidget"
v-model="customerModel.emailOrSms"
ref="emailAddress"
customInputId="emailOrSms"
:isRequired="!isEmailOptional"
:validationRules="EmailOrSmsvalidationRules"
:addOptionalText="isEmailOptional"
autocomplete="email" />
</div>
</div>
<div class="row mb-0">
<div class="col">
<textBlock cmsWidgetName="QuoteEmailTextBlockWidget" typeStyle="caption" />
</div>
</div>
</div> </div>
</template> </template>
@ -51,7 +33,6 @@ import { defineRule } from "vee-validate";
import { required } from "@/helpers/validation-rules"; import { required } from "@/helpers/validation-rules";
import { regex } from "@/helpers/validation-rules"; import { regex } from "@/helpers/validation-rules";
import { errorMessages } from "@/constants/error-messages"; import { errorMessages } from "@/constants/error-messages";
import textBlock from "@/digital-components/text-block/text-block";
// DEFINE VALIDATION RULES // DEFINE VALIDATION RULES
defineRule("first-name-required", required(errorMessages.FIRST_NAME_REQUIRED)); defineRule("first-name-required", required(errorMessages.FIRST_NAME_REQUIRED));
@ -101,7 +82,6 @@ export default {
components: { components: {
addressQuestions, addressQuestions,
textboxQuestion, textboxQuestion,
textBlock,
}, },
}; };
</script> </script>

View file

@ -61,14 +61,15 @@
:donationCartItem="donationLineItem" :donationCartItem="donationLineItem"
:showAsPaid="isPia" :showAsPaid="isPia"
servicePackageOptionsCmsName="ServicePackageTitle" servicePackageOptionsCmsName="ServicePackageTitle"
recyclingModalCmsWidgetName="RecycleModal"
:isInsurance="isInsurance" :isInsurance="isInsurance"
:insuranceDeductible="currentDeductible" :insuranceDeductible="currentDeductible"
:insuranceCompanyName="insuranceCompanyName" :insuranceCompanyName="insuranceCompanyName"
:showInsuranceCoverageAs="showInsuranceCoverageAs" :showInsuranceCoverageAs="showInsuranceCoverageAs"
:shouldHideRecalibration="shouldHideRecalibration" :shouldHideRecalibration="shouldHideRecalibration"
:isExpandedOnLoad="false"
:isItac="isItac" :isItac="isItac"
:isNoComp="isNoComp" :isNoComp="isNoComp"
:isExpandedOnLoad="false"
:isMSRFeeApplicable="isMSRFeeApplicable" /> :isMSRFeeApplicable="isMSRFeeApplicable" />
<hr class="mb-5" /> <hr class="mb-5" />

View file

@ -4,7 +4,10 @@
<div class="container page-container-grouped-styles"> <div class="container page-container-grouped-styles">
<div class="row"> <div class="row">
<div class="col-12 col-md-10 col-lg-8 col-xl-7"> <div class="col-12 col-md-10 col-lg-8 col-xl-7">
<funnelSubHeader cmsWidgetName="FunnelSubHeaderWidget" class="mt-4 mb-5" /> <funnelSubHeader
cmsWidgetName="FunnelSubHeaderWidget"
class="mt-4 mb-5"
alignLeft />
<textboxQuestion <textboxQuestion
isRequired isRequired
class="mb-4" class="mb-4"
@ -215,3 +218,8 @@ export default {
}, },
}; };
</script> </script>
<style lang="scss">
.form-check {
margin-bottom: 0.5rem;
}
</style>

View file

@ -1,35 +1,25 @@
<template> <template>
<Form @submit="onSubmit" @invalid-submit="onInvalidSubmit" ref="theForm" v-slot="{ meta }"> <Form @submit="onSubmit" @invalid-submit="onInvalidSubmit" ref="theForm" v-slot="{ meta }">
<loadingModal ref="loadingModal" /> <loadingModal ref="loadingModal" />
<div class="container-fluid page-container-grouped-styles"> <funnelHeader cmsWidgetName="FunnelHeaderWidget" ref="funnelHeader" />
<div class="row justify-content-center"> <div class="container page-container-grouped-styles">
<div class="col-md-6"> <div class="row">
<funnelHeader cmsWidgetName="FunnelHeaderWidget" ref="funnelHeader" /> <div class="col-12 col-md-10 col-lg-8 col-xl-7">
</div> <funnelSubHeader
</div> class="pt-4 pb-2"
<div class="row justify-content-center"> cmsWidgetName="FunnelSubHeaderWidget"
<div class="col-md-6 col-xl-4 mt-4"> alignLeft />
<funnelSubHeader class="pb-2" cmsWidgetName="FunnelSubHeaderWidget" /> <p class="select-option mb-2" v-html="SelectOptionText"></p>
<div>
<p class="header-copy mb-2 text-md-center" v-html="HeaderText"></p>
<p
class="header-sub-copy mb-5 text-md-center"
v-html="VinLookupQuestionText"></p>
<p class="select-option mb-2" v-html="SelectOptionText"></p>
<buttonQuestion
cmsWidgetName="VinLookupMethod"
:answers="answersFromCms"
groupName="vinLookupMethodOption"
buttonTypeString="listButton"
v-model="selectedVinLookupMethod"
isRequired
validationRules="option-required"
:logDisplayedValuesEvent="true" />
</div>
<buttonQuestion
cmsWidgetName="VinLookupMethod"
:answers="answersFromCms"
groupName="vinLookupMethodOption"
buttonTypeString="listButton"
v-model="selectedVinLookupMethod"
isRequired
validationRules="option-required"
:logDisplayedValuesEvent="true" />
<navbar <navbar
cmsWidgetName="FunnelFooterWidget" cmsWidgetName="FunnelFooterWidget"
ref="navbar" ref="navbar"
@ -37,7 +27,7 @@
@back-clicked="backButtonAction" @back-clicked="backButtonAction"
@ForwardClicked="forwardButtonAction" /> @ForwardClicked="forwardButtonAction" />
<div class="text-center" v-html="this.VinLookupQuestionFooterText2"></div> <div class="text-center mb-5" v-html="this.VinLookupQuestionFooterText2"></div>
</div> </div>
</div> </div>
</div> </div>
@ -47,6 +37,7 @@
<script> <script>
// Components // Components
import funnelHeader from "@/fmg-components/funnel-header/funnel-header"; import funnelHeader from "@/fmg-components/funnel-header/funnel-header";
import funnelSubHeader from "@/fmg-components/funnel-sub-header/funnel-sub-header";
import navbar from "@/fmg-components/nav-bar/nav-bar"; import navbar from "@/fmg-components/nav-bar/nav-bar";
import buttonQuestion from "@/digital-components/button-question/button-question"; import buttonQuestion from "@/digital-components/button-question/button-question";
import loadingModal from "@/fmg-components/loading-modal/loading-modal.vue"; import loadingModal from "@/fmg-components/loading-modal/loading-modal.vue";
@ -255,6 +246,7 @@ export default {
}, },
components: { components: {
funnelHeader, funnelHeader,
funnelSubHeader,
navbar, navbar,
buttonQuestion, buttonQuestion,
Form, Form,
@ -267,12 +259,25 @@ export default {
.header-copy { .header-copy {
font-family: UrbanistSemibold, Arial, Helvetica, sans-serif; font-family: UrbanistSemibold, Arial, Helvetica, sans-serif;
} }
</style>
<style lang="scss">
.vinlookupquestion p { .vinlookupquestion p {
font-size: 1.25rem; font-size: 1.25rem;
} }
.header-sub-copy { .header-sub-copy {
font-size: 0.875rem; font-size: 0.875rem;
} }
.funnel-sub-header {
padding-bottom: 0;
h5.dark-header {
margin-bottom: 1rem;
}
.sub-text strong {
text-transform: uppercase;
}
}
.select-an-option { .select-an-option {
font-family: UrbanistSemibold; font-family: UrbanistSemibold;
font-weight: 600; font-weight: 600;

View file

@ -1,10 +1,11 @@
<template> <template>
<textboxQuestion <textboxQuestion
v-model="selectedAccountName" v-model="selectedAccountName"
ref="insuranceCoQuestion"
customInputId="autocomplete" customInputId="autocomplete"
class="mb-4 mt-5" class="mb-4 mt-5"
cmsWidgetName="InsuranceCoQuestionWidget" cmsWidgetName="InsuranceCoQuestionWidget"
includeSearchIcon /> :validationRules="validationRules" />
</template> </template>
<script> <script>
@ -35,6 +36,7 @@ export default {
props: { props: {
originalList: Array, originalList: Array,
modelValue: String, modelValue: String,
validationRules: String,
}, },
data() { data() {
return { return {

View file

@ -5,12 +5,14 @@
<div class="container page-container-grouped-styles"> <div class="container page-container-grouped-styles">
<div class="row"> <div class="row">
<div class="col-12 col-md-10 col-lg-8 col-xl-7"> <div class="col-12 col-md-10 col-lg-8 col-xl-7">
<funnelSubHeader cmsWidgetName="FunnelSubHeaderWidget" class="mt-4" /> <funnelSubHeader cmsWidgetName="FunnelSubHeaderWidget" class="mt-4" alignLeft />
<div v-if="originalList.length > 0"> <div v-if="originalList.length > 0">
<insurance-company-question <insurance-company-question
isRequired
v-model="parentAccountNumber" v-model="parentAccountNumber"
:originalList="originalList" /> :originalList="originalList"
validationRules="insurance-company-required" />
</div> </div>
<textLink <textLink
id="payOnMyOwnBackButton" id="payOnMyOwnBackButton"
@ -55,6 +57,10 @@ import { partNumberStrings } from "@/constants/part-number-strings";
import { deepClone } from "@/helpers/object-helper"; import { deepClone } from "@/helpers/object-helper";
import store from "@/store"; import store from "@/store";
import { flushSaveSessionQueue } from "@/helpers/heritage-integration/order-helper"; import { flushSaveSessionQueue } from "@/helpers/heritage-integration/order-helper";
import { errorMessages } from "@/constants/error-messages";
import { required, regex } from "@/helpers/validation-rules";
defineRule("insurance-company-required", required(errorMessages.INSURANCE_COMPANY_REQUIRED));
export default { export default {
name: "insurance-company", name: "insurance-company",

View file

@ -22,16 +22,6 @@
mask="#####" mask="#####"
validationRules="registration-zip-required|zip-format" /> validationRules="registration-zip-required|zip-format" />
<textboxQuestion
cmsWidgetName="EmailAddressQuestionWidget"
v-model="emailOrSms"
customInputId="emailOrSms"
:isRequired="!IsEmailOptional"
:validationRules="EmailOrSmsValidationRules"
:addOptionalText="IsEmailOptional" />
<textBlock cmsWidgetName="QuoteEmailTextBlockWidget" typeStyle="caption" />
<alert <alert
v-if="displayInvalidZipAlert" v-if="displayInvalidZipAlert"
class="my-3" class="my-3"
@ -100,7 +90,6 @@ import navbar from "@/fmg-components/nav-bar/nav-bar";
import funnelSubHeader from "@/fmg-components/funnel-sub-header/funnel-sub-header"; import funnelSubHeader from "@/fmg-components/funnel-sub-header/funnel-sub-header";
import alert from "@/ux-components/alert/alert"; import alert from "@/ux-components/alert/alert";
import textboxQuestion from "@/digital-components/textbox-question/textbox-question"; import textboxQuestion from "@/digital-components/textbox-question/textbox-question";
import textBlock from "@/digital-components/text-block/text-block";
// Supporting files // Supporting files
import { fetchCmsContentForPage } from "@/helpers/cms-content-helper"; import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
@ -459,7 +448,6 @@ export default {
funnelSubHeader, funnelSubHeader,
textboxQuestion, textboxQuestion,
alert, alert,
textBlock,
Form, Form,
}, },
}; };

View file

@ -43,8 +43,8 @@
</div> </div>
</transition> </transition>
<transition name="fade" mode="out-in"> <transition name="fade" mode="out-in">
<div class="row mb-4" aria-live="polite"> <div class="mb-4" aria-live="polite">
<div class="col-8"> <div class="col mb-4">
<dropdownQuestion <dropdownQuestion
customDropdownId="state" customDropdownId="state"
cmsWidgetName="StateQuestionWidget" cmsWidgetName="StateQuestionWidget"
@ -56,7 +56,7 @@
:labelBold="labelBold" :labelBold="labelBold"
:isDisabled="this.isStateDisabled" /> :isDisabled="this.isStateDisabled" />
</div> </div>
<div class="col-4"> <div class="col">
<textboxQuestion <textboxQuestion
customInputId="zipCode" customInputId="zipCode"
cmsWidgetName="ZipQuestionWidget" cmsWidgetName="ZipQuestionWidget"

View file

@ -67,7 +67,7 @@ beforeEach(() => {
describe("mobile-details.vue", () => { describe("mobile-details.vue", () => {
test("if the continue button is clicked, navigate forward", async () => { test("if the continue button is clicked, navigate forward", async () => {
// Arrange // Arrange
const { wrapper } = setupMocks(mobileDetails, { const { wrapper } = setupMocks({
mixins: [mockMixin], mixins: [mockMixin],
attachTo: document.body, attachTo: document.body,
}); });
@ -91,7 +91,7 @@ describe("mobile-details.vue", () => {
}); });
test("arePagePrerequisitesValid should be true ", async () => { test("arePagePrerequisitesValid should be true ", async () => {
//Arrange //Arrange
const { wrapper } = setupMocks(mobileDetails, { const { wrapper } = setupMocks({
mixins: [mockMixin], mixins: [mockMixin],
attachTo: document.body, attachTo: document.body,
}); });
@ -105,7 +105,7 @@ describe("mobile-details.vue", () => {
test("if the back button is clicked, navigate back", async () => { test("if the back button is clicked, navigate back", async () => {
// Arrange // Arrange
const { wrapper } = setupMocks(mobileDetails, { const { wrapper } = setupMocks({
mixins: [mockMixin], mixins: [mockMixin],
attachTo: document.body, attachTo: document.body,
}); });

View file

@ -7,11 +7,26 @@
<div class="col-12 col-md-10 col-lg-8 col-xl-7"> <div class="col-12 col-md-10 col-lg-8 col-xl-7">
<funnelSubHeader cmsWidgetName="FunnelSubHeaderWidget" /> <funnelSubHeader cmsWidgetName="FunnelSubHeaderWidget" />
<hr class="my-3" /> <hr class="my-3" />
<textBlock cmsWidgetName="AppointmentTimeOfService" class="time-header" /> <div class="date-time-edit">
<textBlock cmsWidgetName="AppointmentTimeOfService" class="time-header" />
<textLink
linkType="navigation"
:text="editLink"
@click-event="linkClick"
href="javascript:void(0)"
data-bs-target="#footerModal"
data-bs-dismiss="modal" />
</div>
<textBlock cmsWidgetName="AppointmentDateAndTime" /> <textBlock cmsWidgetName="AppointmentDateAndTime" />
<hr class="my-3" /> <hr class="my-3" />
<div class="mobile-location-questions"> <div class="mobile-location-questions">
<div class="address-questions-container"> <div class="address-questions-container">
<textBlock
cmsWidgetName="PleaseProvideAddressWidget"
class="provide-address-header" />
<textBlock
cmsWidgetName="VehicleKeysMessageWidget"
class="keys-message" />
<mobileAddressQuestions <mobileAddressQuestions
ref="addressQuestions" ref="addressQuestions"
v-model="this.addressQuestions" v-model="this.addressQuestions"
@ -56,6 +71,8 @@ import store from "@/store";
import { fetchCmsContentForPage } from "@/helpers/cms-content-helper"; import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
import { settleAllPromises } from "@/helpers/layout-helper"; import { settleAllPromises } from "@/helpers/layout-helper";
import { AppointmentTypeStrings } from "@/constants/schedule-constants"; import { AppointmentTypeStrings } from "@/constants/schedule-constants";
import textLink from "@/ux-components/text-link/text-link";
import analyticsMixin from "@/mixins/analytics-mixin";
export default { export default {
name: "MobileDetails", name: "MobileDetails",
data() { data() {
@ -142,6 +159,17 @@ export default {
this.pageName this.pageName
); );
}, },
linkClick() {
// check session expired and initSession to recreate cookies
if (analyticsMixin.methods.sessionExpired()) {
this.routeReturnUser();
} else {
this.backButtonAction();
}
},
routeReturnUser() {
this.$router.sendToReturnUser();
},
backButtonAction() { backButtonAction() {
this.$router.navigateWithoutSaving( this.$router.navigateWithoutSaving(
this.navigationScenarios.CLICKED_BACK, this.navigationScenarios.CLICKED_BACK,
@ -156,6 +184,9 @@ export default {
AppointmentTimeOfService() { AppointmentTimeOfService() {
return this.getCmsContent("AppointmentDateAndTime", "Text"); return this.getCmsContent("AppointmentDateAndTime", "Text");
}, },
editLink() {
return this.getCmsContent("EditLinkWidget", "Text");
},
}, },
components: { components: {
mobileAddressQuestions, mobileAddressQuestions,
@ -166,6 +197,7 @@ export default {
funnelSubHeader, funnelSubHeader,
Form, Form,
loadingModal, loadingModal,
textLink,
}, },
}; };
</script> </script>
@ -175,5 +207,37 @@ export default {
font-family: UrbanistSemibold, Arial, Helvetica, sans-serif; font-family: UrbanistSemibold, Arial, Helvetica, sans-serif;
font-weight: 600; font-weight: 600;
color: $black; color: $black;
margin-top: 0;
}
.provide-address-header {
font-family: UrbanistSemibold, Arial, Helvetica, sans-serif;
font-weight: 600;
color: $black;
line-height: 1.625rem;
letter-spacing: 0.03rem;
}
.keys-message {
background-color: #fff5eb;
color: #4d5151;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
padding: 0.5rem 1rem 0.5rem 1rem;
min-height: 3.656rem;
line-height: 1.625rem;
margin-top: 1.25rem;
margin-bottom: 1.25rem;
border-radius: 5px;
letter-spacing: 0;
}
.date-time-edit {
display: flex;
justify-content: space-between;
}
:deep(span.unbolded-text) {
font-weight: 400;
color: $gray-600;
font-family: UrbanistRegular;
} }
</style> </style>

View file

@ -95,6 +95,7 @@ export default {
.question-text span { .question-text span {
text-align: left; text-align: left;
line-height: 24px; line-height: 24px;
font-weight: 600;
} }
} }
</style> </style>

View file

@ -5,7 +5,7 @@
<div class="container payment-method"> <div class="container payment-method">
<div class="row"> <div class="row">
<div class="col-12 col-md-10 col-lg-8 col-xl-7"> <div class="col-12 col-md-10 col-lg-8 col-xl-7">
<funnelSubHeader class="mb-5" cmsWidgetName="FunnelSubHeaderWidget" /> <funnelSubHeader class="mb-5" cmsWidgetName="FunnelSubHeaderWidget" alignLeft />
<hr class="my-0" /> <hr class="my-0" />
@ -60,14 +60,30 @@
class="service-questions" /> class="service-questions" />
<textBlock cmsWidgetName="CallOrTextWidget" justifyText="left" /> <textBlock cmsWidgetName="CallOrTextWidget" justifyText="left" />
<hr class="my-5" /> <hr class="my-5" />
<div class="d-flex flex-row checkbox-group"> <div class="d-flex flex-column checkbox-group">
<checkboxQuestion <Field
cmsWidgetName="RecalConfirmWidget" name="recalAckOptIn"
class="mb-3" :rules="'recal-ack-required'"
isRequired="true"
v-model="isRecalAckOptIn" v-model="isRecalAckOptIn"
validationRules="recal-ack-required" v-slot="{ meta, errors }">
@text-link-clicked="openModal('RecalModal')" /> <checkboxQuestion
cmsWidgetName="RecalConfirmWidget"
class="mb-3"
isRequired="true"
v-model="isRecalAckOptIn"
validationRules="recal-ack-required"
checkboxName="recalAckOptIn"
:class="{ 'is-invalid': meta.touched && errors.length > 0 }"
@text-link-clicked="openModal('RecalModal')" />
</Field>
<div id="form-test-error" class="row form-test-error">
<error-message
role="comment"
aria-atomic="true"
aria-live="polite"
class="small mt-1 text-danger d-block"
:name="'recalAckOptIn'"></error-message>
</div>
</div> </div>
</div> </div>
@ -90,7 +106,8 @@
<contentGroupModal <contentGroupModal
ref="RecalModal" ref="RecalModal"
cmsWidgetName="RecalModal" cmsWidgetName="RecalModal"
class="recal-modal" /> class="recal-modal"
isRecal />
</div> </div>
</div> </div>
</div> </div>
@ -158,6 +175,8 @@ import {
} from "@/helpers/pricing-helper.js"; } from "@/helpers/pricing-helper.js";
import { consumeQueryFromStash } from "@/router/methods/helpers/querystring-stash"; import { consumeQueryFromStash } from "@/router/methods/helpers/querystring-stash";
import { debugLog } from "@/helpers/debug-log-helper"; import { debugLog } from "@/helpers/debug-log-helper";
import { ErrorMessage } from "vee-validate";
import { Field } from "vee-validate";
defineRule("payment-method-required", required(errorMessages.OPTION_REQUIRED)); defineRule("payment-method-required", required(errorMessages.OPTION_REQUIRED));
defineRule("recal-ack-required", required(errorMessages.RECAL_ACK_REQUIRED)); defineRule("recal-ack-required", required(errorMessages.RECAL_ACK_REQUIRED));
@ -733,15 +752,15 @@ export default {
customCtaCopy() { customCtaCopy() {
switch (this.paymentMethod) { switch (this.paymentMethod) {
case paymentMethods.PAY_NOW: case paymentMethods.PAY_NOW:
return "Continue to checkout"; return "Continue"; // Before Heritage Parity it was "Continue to checkout"
case paymentMethods.INSURANCE: case paymentMethods.INSURANCE:
return "Continue to insurance"; return "Continue"; // Before Heritage Parity it was "Continue to insurance"
case paymentMethods.CREDIT_CARD: case paymentMethods.CREDIT_CARD:
return "Continue to checkout"; return "Continue"; // Before Heritage Parity it was "Continue to checkout"
case paymentMethods.PAYPAL: case paymentMethods.PAYPAL:
return "Continue to Paypal"; return "Continue"; // Before Heritage Parity it was "Continue to Paypal"
case paymentMethods.AFTERPAY: case paymentMethods.AFTERPAY:
return "Continue to Afterpay"; return "Continue"; // Before Heritage Parity it was "Continue to Afterpay"
default: default:
return null; return null;
} }
@ -845,6 +864,7 @@ export default {
navbar, navbar,
funnelSubHeader, funnelSubHeader,
Form, Form,
Field,
loadingModal, loadingModal,
cart, cart,
alert, alert,
@ -854,6 +874,7 @@ export default {
checkboxQuestion, checkboxQuestion,
contentGroupModal, contentGroupModal,
afterpayBreakout, afterpayBreakout,
ErrorMessage,
}, },
}; };
</script> </script>
@ -877,6 +898,17 @@ export default {
> * { > * {
margin-top: 0; margin-top: 0;
} }
:deep(.form-check-input:invalid),
:deep(.form-check-input[aria-invalid="true"]),
:deep(.is-invalid .form-check-input) {
border-color: $danger;
box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}
:deep(.is-invalid .form-check-label) {
color: $danger;
}
} }
.questions-about-service { .questions-about-service {
.service-questions { .service-questions {
@ -901,17 +933,31 @@ export default {
:deep(.modal-body) { :deep(.modal-body) {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: visible !important;
p.subheader-text {
color: $red;
order: 1 !important;
margin-top: -2.25rem;
}
h5 { h5 {
text-align: center; text-align: left !important;
order: 1; order: 2 !important;
} }
p { p {
order: 3; order: 4;
} }
img { img {
order: 2; order: 3 !important;
} }
} }
} }
} }
:deep(span.label) {
font-weight: 600;
}
:deep(div.service-questions span) {
color: $black;
font-family: UrbanistSemibold;
}
</style> </style>

View file

@ -15,6 +15,31 @@
<div v-html="apptWordingText" v-show="!isExpanded"></div> <div v-html="apptWordingText" v-show="!isExpanded"></div>
<div class="review-table px-4"> <div class="review-table px-4">
<serviceLocationReview
class="service-location"
cmsWidgetName="ServiceLocationTitleWidget"
:serviceLocation="serviceLocationInfo" />
<hr class="my-0" />
<scheduleReview cmsWidgetName="ScheduleWidget" :appointmentType="appointmentType" />
<hr class="my-0" />
<vehicleReview cmsWidgetName="VehicleReviewWidget" :vehicle="vehicleInfo" />
<hr class="my-0" />
<damageReview
cmsWidgetName="DamageReviewWidget"
damageLocationsWidgetName="DamageLocationsWidget"
:damage="damageInfo" />
<hr class="my-0" />
<customerReview cmsWidgetName="CustomerReviewWidget" :customer="customerInfo" />
<!-- the following was the order prior to Heritage parity
<vehicleReview cmsWidgetName="VehicleReviewWidget" :vehicle="vehicleInfo" /> <vehicleReview cmsWidgetName="VehicleReviewWidget" :vehicle="vehicleInfo" />
<hr class="my-0" /> <hr class="my-0" />
@ -48,6 +73,7 @@
<hr class="my-0" /> <hr class="my-0" />
<customerReview cmsWidgetName="CustomerReviewWidget" :customer="customerInfo" /> <customerReview cmsWidgetName="CustomerReviewWidget" :customer="customerInfo" />
-->
</div> </div>
</div> </div>
</template> </template>
@ -119,9 +145,8 @@ export default {
customerReview, customerReview,
damageReview, damageReview,
scheduleReview, scheduleReview,
serviceLocationReview,
servicePackageReview,
vehicleReview, vehicleReview,
serviceLocationReview,
}, },
}; };
</script> </script>

View file

@ -82,7 +82,6 @@ describe("Customer Review Block", () => {
// Assert // Assert
expect(wrapper.vm.displayContent).toEqual([ expect(wrapper.vm.displayContent).toEqual([
testConstants.displayContent.fullName,
testConstants.displayContent.emailAddress, testConstants.displayContent.emailAddress,
testConstants.displayContent.phoneNumber, testConstants.displayContent.phoneNumber,
testConstants.displayContent.smsOptIn, testConstants.displayContent.smsOptIn,

View file

@ -21,7 +21,8 @@ export default {
}, },
computed: { computed: {
displayContent() { displayContent() {
return [this.fullName, this.email, this.phoneNumber, this.smsOptIn]; return [this.email, this.phoneNumber, this.smsOptIn];
// return [this.fullName, this.email, this.phoneNumber, this.smsOptIn]; // prior to Heritage parity
}, },
header() { header() {
return this.getCmsContent(this.cmsWidgetName, "HeaderText"); return this.getCmsContent(this.cmsWidgetName, "HeaderText");

View file

@ -4,7 +4,7 @@
<funnelHeader cmsWidgetName="FunnelHeaderWidget" ref="funnelHeader" /> <funnelHeader cmsWidgetName="FunnelHeaderWidget" ref="funnelHeader" />
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-12 col-md-10 col-lg-8 col-xl-7"> <div class="col-12">
<div> <div>
<alert <alert
ref="piaCCErrorAlert" ref="piaCCErrorAlert"
@ -37,45 +37,51 @@
seamless seamless
scrolling="no" scrolling="no"
allow="payment *; microphone *; geolocation *;"></iframe> allow="payment *; microphone *; geolocation *;"></iframe>
<div id="cart-container">
<cart
ref="cart"
:damage="damageInfo"
:availableVaps="availableVaps"
:allowItemRemoval="false"
v-model="lineItems"
servicePackageOptionsCmsName="ServicePackageTitle"
recyclingModalCmsWidgetName="RecycleModal"
:isInsurance="isInsurance"
:insuranceDeductible="currentDeductible"
:insuranceCompanyName="insuranceCompanyName"
:showInsuranceCoverageAs="showInsuranceCoverageAs"
:isItac="isItac"
:isNoComp="isNoComp"
:isCollapsible="false" />
<button
v-if="showSwitchPaymentMethod"
id="submit-payment"
class="btn btn-primary rounded-pill py-3 px-6 delay w-100"
type="button"
@click="submitPayment">
Submit payment
</button>
<div class="payment-method-question">
<buttonQuestion
v-if="showSwitchPaymentMethod"
groupName="payment-method"
buttonTypeString="payment-method-list-button"
:buttonTypeObject="paymentMethodListButton"
isWide
:questionText="paymentMethodQuestionText"
:answers="paymentMethodAnswerData"
isRequired
:validationRules="validationRules"
:showApplePay="false"
:isInsurance="isInsurance"
v-model="switchedPaymentMethod" />
</div>
</div>
</div> </div>
<hr />
<cart
ref="cart"
:damage="damageInfo"
:availableVaps="availableVaps"
:allowItemRemoval="false"
v-model="lineItems"
servicePackageOptionsCmsName="ServicePackageTitle"
recyclingModalCmsWidgetName="RecycleModal"
:isInsurance="isInsurance"
:insuranceDeductible="currentDeductible"
:insuranceCompanyName="insuranceCompanyName"
:showInsuranceCoverageAs="showInsuranceCoverageAs"
:isItac="isItac"
:isNoComp="isNoComp"
:isExpandedOnLoad="true" />
<div class="payment-method-question">
<buttonQuestion
v-if="showSwitchPaymentMethod"
groupName="payment-method"
buttonTypeString="payment-method-list-button"
:buttonTypeObject="paymentMethodListButton"
isWide
:questionText="paymentMethodQuestionText"
:answers="paymentMethodAnswerData"
isRequired
:validationRules="validationRules"
:showApplePay="false"
:isInsurance="isInsurance"
v-model="switchedPaymentMethod"
textPosition="text-start" />
</div>
<hr class="mb-5" />
<navbar <navbar
cmsWidgetName="FunnelFooterWidget" cmsWidgetName="FunnelFooterWidget"
isForwardActionDisabled="true" isForwardActionDisabled="true"
@ -889,6 +895,12 @@ export default {
} }
return false; return false;
}, },
submitPayment() {
const iframe = this.$refs.paymentFrame;
if (iframe) {
iframe.contentWindow.postMessage("submitPayment", "*");
}
},
}, },
components: { components: {
funnelHeader, funnelHeader,
@ -904,18 +916,46 @@ export default {
<style lang="scss"> <style lang="scss">
.hop-iframe { .hop-iframe {
position: relative; position: relative;
min-height: 650px;
width: 100%; width: 100%;
min-height: 650px;
border: 0 none; border: 0 none;
} }
#pageLoadingModal { #pageLoadingModal {
background-color: red; background-color: red;
} }
#card-container {
display: flex;
& > iframe {
flex-basis: 55%;
margin-right: 9%;
}
& > #cart-container {
flex-basis: 36%;
margin-top: 2rem;
}
@include media-breakpoint-down(lg) {
flex-direction: column;
& > iframe {
flex-basis: auto;
margin-right: 0;
}
& > #cart-container {
flex-basis: auto;
margin: 0 0.5rem;
& > button#submit-payment {
display: none;
}
}
}
}
.payment-method-question { .payment-method-question {
padding: 0 1.5rem; padding: 0;
.question-text span {
text-align: left; & .list-button-content {
justify-content: center;
} }
} }

View file

@ -10,6 +10,7 @@ import { experimentSettings } from "@/constants/experiments";
import experimentMixin from "@/mixins/experiment-mixin.js"; import experimentMixin from "@/mixins/experiment-mixin.js";
import baseMixin from "@/mixins/base-mixin.js"; import baseMixin from "@/mixins/base-mixin.js";
import { containsLineItemWithPartType } from "../../helpers/service-package-helper"; import { containsLineItemWithPartType } from "../../helpers/service-package-helper";
import { savePageData } from "../../router/methods/helpers/save-page-data";
jest.mock("@/store", () => ({ jest.mock("@/store", () => ({
commit: jest.fn(), // Mock store.commit commit: jest.fn(), // Mock store.commit
@ -90,6 +91,10 @@ jest.mock("@/mixins/base-mixin", () => ({
}, },
})); }));
jest.mock("@/router/methods/helpers/save-page-data", () => ({
savePageData: jest.fn(),
}));
const mockExperimentSettings = experimentSettings; const mockExperimentSettings = experimentSettings;
jest.mock("@/mixins/experiment-mixin.js", () => ({ jest.mock("@/mixins/experiment-mixin.js", () => ({

View file

@ -71,7 +71,7 @@
<contentGroupModal ref="RainDefenseModal" cmsWidgetName="RainDefenseModal" /> <contentGroupModal ref="RainDefenseModal" cmsWidgetName="RainDefenseModal" />
<contentGroupModal ref="FrontWiperModal" cmsWidgetName="FrontWiperModal" /> <contentGroupModal ref="FrontWiperModal" cmsWidgetName="FrontWiperModal" />
<contentGroupModal ref="RearWiperModal" cmsWidgetName="RearWiperModal" /> <contentGroupModal ref="RearWiperModal" cmsWidgetName="RearWiperModal" />
<contentGroupModal ref="RecalModal" cmsWidgetName="RecalModal" isRecal /> <contentGroupModal ref="RecalModal" cmsWidgetName="RecalModal" />
<navbar <navbar
cmsWidgetName="FunnelFooterWidget" cmsWidgetName="FunnelFooterWidget"
@ -673,14 +673,12 @@ export default {
async closeSaveProgressPopup() { async closeSaveProgressPopup() {
this.showSaveProgressPopup = false; this.showSaveProgressPopup = false;
savePageData(this.pageName, { saveProgressPopupSkipped: true }, true);
if (this.skipToInsurance) { if (this.skipToInsurance) {
// skip ahead now if in IGQ skip experiment // skip ahead now if in IGQ skip experiment
await this.skip(true, externalParamPackageLabels.GLASS_ONLY); await this.skip(true, externalParamPackageLabels.GLASS_ONLY);
} }
}, },
forwardButtonAction() { async forwardButtonAction() {
this.dispatchStoreAction( this.dispatchStoreAction(
this.storeActions.SAVE_PAYMENT_TYPE, this.storeActions.SAVE_PAYMENT_TYPE,
this.isInsuranceSelected, this.isInsuranceSelected,
@ -751,6 +749,8 @@ export default {
false false
); );
await savePageData(this.pageName, { saveProgressPopupSkipped: true }, true);
const payment = this.$store.getters.payment; const payment = this.$store.getters.payment;
if (payment.isInsurance) { if (payment.isInsurance) {
this.$router.navigateWithSaving( this.$router.navigateWithSaving(
@ -901,6 +901,7 @@ export default {
// Unique to quote page for 2.0/Heritage parity // Unique to quote page for 2.0/Heritage parity
.quote { .quote {
padding-bottom: 2rem; padding-bottom: 2rem;
:deep(.nav-bar) { :deep(.nav-bar) {
position: initial; position: initial;
button { button {
@ -911,9 +912,6 @@ export default {
position: absolute; position: absolute;
left: 1rem; left: 1rem;
bottom: 1rem; bottom: 1rem;
@include media-breakpoint-up(lg) {
left: 6rem;
}
} }
.col-auto { .col-auto {
width: -webkit-fill-available; width: -webkit-fill-available;

View file

@ -105,6 +105,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.start-over { .start-over {
text-align: center; text-align: center;
margin-bottom: 1.5rem;
a { a {
font-weight: 600; font-weight: 600;
color: $black; color: $black;
@ -114,7 +115,7 @@ export default {
} }
.return-user { .return-user {
.return-user-spacing { .return-user-spacing {
margin-top: 14rem; margin-top: 8rem;
} }
} }
:deep(.menu-modal-container) { :deep(.menu-modal-container) {

View file

@ -1238,7 +1238,9 @@ export default {
return store.getters.lineItems.supportingItems; return store.getters.lineItems.supportingItems;
}, },
updateFooterButtonText(timeSlotInfo) { updateFooterButtonText(timeSlotInfo) {
let navbarButtonText; let navbarButtonText = "Continue";
// Archiving the following in case we revert back from Heritage parity
/*
if (!timeSlotInfo || !timeSlotInfo.timeSlot.date) { if (!timeSlotInfo || !timeSlotInfo.timeSlot.date) {
navbarButtonText = "Continue"; navbarButtonText = "Continue";
} else { } else {
@ -1273,6 +1275,7 @@ export default {
)}`; )}`;
} }
} }
*/
this.$refs.navbar.updateButtonText(navbarButtonText); this.$refs.navbar.updateButtonText(navbarButtonText);
}, },
convertSelectedDateToShortMonthAndDay(selectedDate) { convertSelectedDateToShortMonthAndDay(selectedDate) {
@ -1618,7 +1621,7 @@ export default {
}, },
}; };
} else if ( } else if (
!this.selectedProvider?.address?.streetAddress && (!this.selectedProvider?.address?.streetAddress || this.isVehicleHeavyTruck) &&
this.shopProviderData?.shopProviders?.length this.shopProviderData?.shopProviders?.length
) { ) {
this.selectedProvider = this.shopProviderData.shopProviders[0]; this.selectedProvider = this.shopProviderData.shopProviders[0];

View file

@ -12,6 +12,7 @@
</transition> </transition>
<modal <modal
ref="shopQuestionModal" ref="shopQuestionModal"
class="shop-question-popup"
:headerText="modalHeaderText" :headerText="modalHeaderText"
:onModalOpenedCallback="updateSelectedAnswer" :onModalOpenedCallback="updateSelectedAnswer"
:onModalClosedCallback="resetZipCodeData" :onModalClosedCallback="resetZipCodeData"
@ -48,7 +49,13 @@
cmsWidgetName="AlertNoShopsWidget" cmsWidgetName="AlertNoShopsWidget"
v-if="displayNoShopsAlert" v-if="displayNoShopsAlert"
alertClass="alert-warning" /> alertClass="alert-warning" />
<div v-if="!displayInvalidZipAlert"> <alert
ref="alertNoShops"
class="my-5"
cmsWidgetName="AlertNoServiceWidget"
v-if="displayNoServiceAlert"
alertClass="alert-danger" />
<div v-if="displayShopsList">
<buttonQuestion <buttonQuestion
ref="buttonQuestion" ref="buttonQuestion"
buttonTypeString="shopListButton" buttonTypeString="shopListButton"
@ -116,6 +123,7 @@ export default {
localSelectedProviderNumber: null, localSelectedProviderNumber: null,
zipCodeData: null, zipCodeData: null,
isLoading: false, isLoading: false,
displayNoServiceAlert: false,
}; };
}, },
props: { props: {
@ -148,6 +156,9 @@ export default {
displayNoShopsAlert() { displayNoShopsAlert() {
return !this.shopProviders.length && !this.displayInvalidZipAlert; return !this.shopProviders.length && !this.displayInvalidZipAlert;
}, },
displayShopsList() {
return !this.displayInvalidZipAlert && !this.displayNoServiceAlert;
},
modal() { modal() {
return this.$refs.shopQuestionModal; return this.$refs.shopQuestionModal;
}, },
@ -170,6 +181,7 @@ export default {
this.isLoading || this.isLoading ||
this.displayInvalidZipAlert || this.displayInvalidZipAlert ||
this.displayNoShopsAlert || this.displayNoShopsAlert ||
this.displayNoServiceAlert ||
!this.localSelectedProviderNumber !this.localSelectedProviderNumber
); );
}, },
@ -199,6 +211,7 @@ export default {
openModal() { openModal() {
// Reset local state from parent // Reset local state from parent
this.zipCodeData = null; this.zipCodeData = null;
this.displayNoServiceAlert = false;
this.localShopProviderData = this.shopProviderDataFromParent; this.localShopProviderData = this.shopProviderDataFromParent;
this.localZipCode = this.zipCodeFromParent; this.localZipCode = this.zipCodeFromParent;
// This will be set once the modal is open (updateSelectedAnswer()) to ensure that the // This will be set once the modal is open (updateSelectedAnswer()) to ensure that the
@ -258,6 +271,7 @@ export default {
}, },
async onSearchZip(event) { async onSearchZip(event) {
event.preventDefault(); event.preventDefault();
this.displayNoServiceAlert = false;
if (!this.localZipCode) { if (!this.localZipCode) {
this.zipCodeData = { this.zipCodeData = {
isValid: false, isValid: false,
@ -265,30 +279,31 @@ export default {
return; return;
} }
this.isLoading = true; this.isLoading = true;
this.zipCodeData = await this.getZipCodeData(this.localZipCode, "service-location"); this.zipCodeData = await this.getZipCodeData(this.localZipCode, "service-location");
// Add zipCode to zipCodeData as it does not come back from endpoint // Add zipCode to zipCodeData as it does not come back from endpoint
this.zipCodeData.zipCode = this.localZipCode; this.zipCodeData.zipCode = this.localZipCode;
if (this.zipCodeData.isValid) { if (this.zipCodeData.isValid) {
if (this.isVehicleHeavyTruck) { if (this.$store.getters.order.vehicle?.isBigTruck) {
// check the location endpoint to verify this zip can service a heavy truck // check the location endpoint to verify this zip can service a heavy truck
const closestShops = await getClosestApplicableShops( const closestShops = await getClosestApplicableShops(
this.localZipCode, this.localZipCode,
this.carId, this.$store.getters.order.vehicle.carId,
"service-location" "service-location"
); );
if (!closestShops || closestShops.providers?.length === 0) {
if (!closestShops || closestShops.inShopProviders?.length === 0) { this.isLoading = false;
// We need an alert for heavy trucks this.displayNoServiceAlert = true;
return null; return null;
} }
} else {
getShopProviderData(this.localZipCode).then(async (result) => {
this.localShopProviderData = result.data;
this.numberOfShopsToDisplay = 3;
this.updateShopsForZip();
this.isLoading = false;
});
} }
getShopProviderData(this.localZipCode).then(async (result) => {
this.localShopProviderData = result.data;
this.numberOfShopsToDisplay = 3;
this.updateShopsForZip();
this.isLoading = false;
});
} else { } else {
this.isLoading = false; this.isLoading = false;
} }
@ -378,6 +393,25 @@ export default {
.modal.modal-component .modal-dialog .modal-content .modal-body .textbox-question { .modal.modal-component .modal-dialog .modal-content .modal-body .textbox-question {
padding: 0; padding: 0;
} }
.modal.shop-question-popup .btn.btn-primary {
background: $blue;
&:focus,
&:focus-visible {
box-shadow:
0 0 0 3px,
0 0 0 5.5px $blue;
}
&.form-test-invalid {
background: #d4d6d8;
&:focus,
&:focus-visible {
box-shadow: none;
}
}
}
.shop-question-zipcode { .shop-question-zipcode {
display: flex; display: flex;
flex-direction: row; flex-direction: row;

View file

@ -16,17 +16,6 @@
isRequired isRequired
validationRules="zip-required|zip-format" /> validationRules="zip-required|zip-format" />
<textboxQuestion
class="mb-0"
cmsWidgetName="EmailAddressQuestionWidget"
v-model="emailOrSms"
inputId="emailOrSms"
:isRequired="!IsEmailOptional"
disableAutoFill
:validationRules="EmailOrSmsValidationRules"
:addOptionalText="IsEmailOptional" />
<textBlock cmsWidgetName="QuoteEmailTextBlockWidget" typeStyle="caption" />
<alert <alert
ref="alertInvalidZip" ref="alertInvalidZip"
v-if="displayInvalidZipAlert" v-if="displayInvalidZipAlert"
@ -71,7 +60,6 @@ import funnelSubHeader from "@/fmg-components/funnel-sub-header/funnel-sub-heade
import buttonQuestion from "@/digital-components/button-question/button-question"; import buttonQuestion from "@/digital-components/button-question/button-question";
import alert from "@/ux-components/alert/alert"; import alert from "@/ux-components/alert/alert";
import textboxQuestion from "@/digital-components/textbox-question/textbox-question"; import textboxQuestion from "@/digital-components/textbox-question/textbox-question";
import textBlock from "@/digital-components/text-block/text-block";
import loadingModal from "@/fmg-components/loading-modal/loading-modal.vue"; import loadingModal from "@/fmg-components/loading-modal/loading-modal.vue";
//Supporting Files //Supporting Files
@ -348,7 +336,6 @@ export default {
Form, Form,
alert, alert,
textboxQuestion, textboxQuestion,
textBlock,
loadingModal, loadingModal,
}, },
}; };

View file

@ -238,6 +238,9 @@ export default {
</script> </script>
<style lang="scss"> <style lang="scss">
html .has-error.list-card:hover {
border-radius: 50rem;
}
.vehicle-parts { .vehicle-parts {
label { label {
&.list-card { &.list-card {

View file

@ -4,7 +4,10 @@
<div class="container vehicle"> <div class="container vehicle">
<div class="row"> <div class="row">
<div class="col-12 col-md-10 col-lg-8 col-xl-7"> <div class="col-12 col-md-10 col-lg-8 col-xl-7">
<funnelSubHeader cmsWidgetName="FunnelSubHeaderWidget" class="siteSubHeader" /> <funnelSubHeader
cmsWidgetName="FunnelSubHeaderWidget"
class="siteSubHeader"
:alignLeft="true" />
<vehicleQuestion <vehicleQuestion
ref="vehicleYearQuestion" ref="vehicleYearQuestion"
v-model="selectedYear" v-model="selectedYear"
@ -483,6 +486,37 @@ export default {
}, },
async forwardButtonAction() { async forwardButtonAction() {
await this.dispatchStoreAction(storeActions.RESET_SUBMITTED_STATE); await this.dispatchStoreAction(storeActions.RESET_SUBMITTED_STATE);
let zipCodeData;
if (this.isBigTruck) {
zipCodeData = await this.getZipCodeData(this.serviceZipCode);
// check the location endpoint to verify this zip can service a heavy truck
var closestShops = await this.dispatchStoreActionWithLogging(
storeActions.GET_CLOSEST_APPLICABLE_SHOPS,
{ zip: this.serviceZipCode, carId: this.carId },
"vehicle"
);
if (!closestShops?.data?.providers || closestShops.data.providers.length === 0) {
this.displayNoServiceAlert = true;
if (store.getters.externalParameterState?.isExternalParameter) {
return baseMixin.methods.ResetExternalParamsAndHideModal();
}
return this.$refs.navbar.removeLoader();
}
}
if (zipCodeData) {
await this.dispatchStoreAction(
storeActions.SAVE_SERVICE_ZIP_CODE_INFO,
{
zipCode: this.serviceZipCode,
state: zipCodeData.state,
zipCodeCtu: zipCodeData.zipCodeCtu,
},
false
);
}
this.dispatchStoreAction( this.dispatchStoreAction(
storeActions.SAVE_VEHICLE, storeActions.SAVE_VEHICLE,
{ {
@ -503,34 +537,6 @@ export default {
false false
); );
if (this.isBigTruck) {
const zipCodeData = await this.getZipCodeData(this.serviceZipCode);
await this.dispatchStoreAction(
storeActions.SAVE_SERVICE_ZIP_CODE_INFO,
{
zipCode: this.serviceZipCode,
state: zipCodeData.state,
zipCodeCtu: zipCodeData.zipCodeCtu,
},
false
);
// check the location endpoint to verify this zip can service a heavy truck
var closestShops = await this.dispatchStoreActionWithLogging(
storeActions.GET_CLOSEST_APPLICABLE_SHOPS,
{ zip: this.serviceZipCode, carId: this.carId },
"vehicle"
);
if (!closestShops || closestShops.data?.inShopProviders?.length === 0) {
this.displayNoServiceAlert = true;
if (store.getters.externalParameterState?.isExternalParameter) {
return baseMixin.methods.ResetExternalParamsAndHideModal();
}
return this.$refs.navbar.removeLoader();
}
}
this.$router.navigateWithSaving( this.$router.navigateWithSaving(
this.navigationScenarios.CLICKED_FORWARD, this.navigationScenarios.CLICKED_FORWARD,
this.pageName this.pageName

View file

@ -55,6 +55,7 @@ export default {
} }
a { a {
font-size: 0.875rem; font-size: 0.875rem;
text-decoration: none;
} }
.vin-toggle { .vin-toggle {
display: inline-flex; display: inline-flex;

View file

@ -40,16 +40,6 @@
isRequired isRequired
validationRules="zip-required|zip-format" /> validationRules="zip-required|zip-format" />
<textboxQuestion
cmsWidgetName="EmailAddressQuestionWidget"
v-model="emailOrSms"
customInputId="emailOrSms"
:isRequired="!IsEmailOptional"
:validationRules="EmailOrSmsValidationRules"
:addOptionalText="IsEmailOptional" />
<textBlock cmsWidgetName="QuoteEmailTextBlockWidget" typeStyle="caption" />
<alert <alert
ref="alertInvalidZip" ref="alertInvalidZip"
v-if="displayInvalidZipAlert" v-if="displayInvalidZipAlert"
@ -135,7 +125,6 @@ import funnelSubHeader from "@/fmg-components/funnel-sub-header/funnel-sub-heade
import alert from "@/ux-components/alert/alert"; import alert from "@/ux-components/alert/alert";
import textboxQuestion from "@/digital-components/textbox-question/textbox-question"; import textboxQuestion from "@/digital-components/textbox-question/textbox-question";
import vinInformation from "@/layouts/vin-lookup/vin-information/vin-information"; import vinInformation from "@/layouts/vin-lookup/vin-information/vin-information";
import textBlock from "@/digital-components/text-block/text-block";
import loadingModal from "@/fmg-components/loading-modal/loading-modal.vue"; import loadingModal from "@/fmg-components/loading-modal/loading-modal.vue";
// Supporting files // Supporting files
@ -590,7 +579,6 @@ export default {
textboxQuestion, textboxQuestion,
alert, alert,
vinInformation, vinInformation,
textBlock,
Form, Form,
loadingModal, loadingModal,
}, },

View file

@ -695,6 +695,7 @@ export const mutations = {
vehicleSubType: sessionInformation.order.vehicle?.vehicleSubType, vehicleSubType: sessionInformation.order.vehicle?.vehicleSubType,
vehicleSpecialClass: sessionInformation.order.vehicle?.vehicleSpecialClass, vehicleSpecialClass: sessionInformation.order.vehicle?.vehicleSpecialClass,
isBigTruck: sessionInformation.order.vehicle?.isBigTruck, isBigTruck: sessionInformation.order.vehicle?.isBigTruck,
canSafeliteService: sessionInformation.order.vehicle?.canSafeliteService,
}); });
state.order.damage.glassToReplace = sessionInformation.order.damage.glassToReplace; state.order.damage.glassToReplace = sessionInformation.order.damage.glassToReplace;
@ -2277,6 +2278,7 @@ export const actions = {
vehicleSubType: vehicle.vehicleSubType, vehicleSubType: vehicle.vehicleSubType,
vehicleSpecialClass: vehicle.vehicleSpecialClass, vehicleSpecialClass: vehicle.vehicleSpecialClass,
isBigTruck: vehicle.isBigTruck, isBigTruck: vehicle.isBigTruck,
canSafeliteService: vehicle.canSafeliteService,
registration: { registration: {
firstName: vehicle.registration.firstName, firstName: vehicle.registration.firstName,
lastName: vehicle.registration.lastName, lastName: vehicle.registration.lastName,

View file

@ -13,6 +13,7 @@ html {
&:hover { &:hover {
@include box-shadow-hover($red-200); @include box-shadow-hover($red-200);
z-index: 5; z-index: 5;
border-radius: 50rem;
} }
input[type="radio"]:focus + .list-button-content { input[type="radio"]:focus + .list-button-content {
@ -133,6 +134,7 @@ html {
background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.7817 14.7328L11.8252 10.7762C12.8833 9.45005 13.3936 7.76911 13.2513 6.07849C13.1091 4.38788 12.325 2.81587 11.0601 1.6852C9.79515 0.554524 8.14538 -0.0490261 6.44946 -0.00154744C4.75353 0.0459312 3.14012 0.740836 1.94045 1.94051C0.740775 3.14018 0.0458701 4.75359 -0.00160848 6.44952C-0.0490871 8.14545 0.554463 9.79521 1.68514 11.0601C2.81581 12.325 4.38782 13.1091 6.07843 13.2514C7.76905 13.3937 9.44999 12.8834 10.7762 11.8252L14.7349 15.7839C14.8044 15.8527 14.8869 15.907 14.9774 15.9439C15.068 15.9808 15.165 15.9995 15.2628 15.9989C15.3606 15.9983 15.4573 15.9784 15.5475 15.9405C15.6376 15.9025 15.7194 15.8471 15.7881 15.7776C15.8568 15.708 15.9112 15.6256 15.9481 15.535C15.985 15.4444 16.0036 15.3474 16.0031 15.2496C16.0025 15.1518 15.9826 15.0551 15.9446 14.965C15.9067 14.8748 15.8513 14.7931 15.7817 14.7243V14.7328ZM6.63737 11.7913C5.61803 11.7913 4.62157 11.4891 3.77402 10.9228C2.92646 10.3564 2.26587 9.5515 1.87578 8.60975C1.4857 7.668 1.38363 6.63172 1.5825 5.63196C1.78136 4.6322 2.27222 3.71386 2.99301 2.99307C3.7138 2.27229 4.63214 1.78142 5.6319 1.58256C6.63166 1.38369 7.66793 1.48576 8.60969 1.87585C9.55144 2.26593 10.3564 2.92652 10.9227 3.77408C11.489 4.62163 11.7913 5.61809 11.7913 6.63743C11.7896 8.00382 11.2461 9.31376 10.2799 10.2799C9.3137 11.2461 8.00376 11.7897 6.63737 11.7913Z' fill='%23d4281c'/%3E%3C/svg%3E%0A"); background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.7817 14.7328L11.8252 10.7762C12.8833 9.45005 13.3936 7.76911 13.2513 6.07849C13.1091 4.38788 12.325 2.81587 11.0601 1.6852C9.79515 0.554524 8.14538 -0.0490261 6.44946 -0.00154744C4.75353 0.0459312 3.14012 0.740836 1.94045 1.94051C0.740775 3.14018 0.0458701 4.75359 -0.00160848 6.44952C-0.0490871 8.14545 0.554463 9.79521 1.68514 11.0601C2.81581 12.325 4.38782 13.1091 6.07843 13.2514C7.76905 13.3937 9.44999 12.8834 10.7762 11.8252L14.7349 15.7839C14.8044 15.8527 14.8869 15.907 14.9774 15.9439C15.068 15.9808 15.165 15.9995 15.2628 15.9989C15.3606 15.9983 15.4573 15.9784 15.5475 15.9405C15.6376 15.9025 15.7194 15.8471 15.7881 15.7776C15.8568 15.708 15.9112 15.6256 15.9481 15.535C15.985 15.4444 16.0036 15.3474 16.0031 15.2496C16.0025 15.1518 15.9826 15.0551 15.9446 14.965C15.9067 14.8748 15.8513 14.7931 15.7817 14.7243V14.7328ZM6.63737 11.7913C5.61803 11.7913 4.62157 11.4891 3.77402 10.9228C2.92646 10.3564 2.26587 9.5515 1.87578 8.60975C1.4857 7.668 1.38363 6.63172 1.5825 5.63196C1.78136 4.6322 2.27222 3.71386 2.99301 2.99307C3.7138 2.27229 4.63214 1.78142 5.6319 1.58256C6.63166 1.38369 7.66793 1.48576 8.60969 1.87585C9.55144 2.26593 10.3564 2.92652 10.9227 3.77408C11.489 4.62163 11.7913 5.61809 11.7913 6.63743C11.7896 8.00382 11.2461 9.31376 10.2799 10.2799C9.3137 11.2461 8.00376 11.7897 6.63737 11.7913Z' fill='%23d4281c'/%3E%3C/svg%3E%0A");
border: 1px solid $red; border: 1px solid $red;
border-left: none; border-left: none;
border-radius: 0 0.5rem 0.5rem 0;
} }
} }
} }

View file

@ -4,26 +4,22 @@
cursor: pointer; cursor: pointer;
&.list-button, &.list-button,
&.list-button-horizontal, &.list-button-horizontal {
&.list-card {
&:not(.selected) { &:not(.selected) {
position: relative; position: relative;
z-index: 5; z-index: 5;
@include box-shadow-hover($blue-300); @include box-shadow-hover($blue-300);
border-radius: 50rem; border-radius: $border-radius-pill;
} }
} }
} }
} }
}
.base-input-button {
&:not(.has-error):hover { &:not(.has-error):hover {
cursor: pointer; cursor: pointer;
&.list-button, &.list-button,
&.list-button-horizontal, &.list-button-horizontal {
&.list-card {
&:not(.selected) { &:not(.selected) {
position: relative; position: relative;
z-index: 5; z-index: 5;

View file

@ -145,6 +145,8 @@ export default {
<style lang="scss"> <style lang="scss">
.alert { .alert {
padding: 0.675rem 0; padding: 0.675rem 0;
border-radius: 0.5rem;
border-width: 0px;
button { button {
display: none; display: none;