Formatting

This commit is contained in:
Scott Kiener 2025-09-11 15:05:44 -04:00
parent f953e24c29
commit 193d7a8473

View file

@ -118,9 +118,7 @@
<div class="row date-picker-wrapper"> <div class="row date-picker-wrapper">
<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">
<locationAlerts cmsWidgetPrefix="LocationAlert-" ref="locationAlerts" /> <locationAlerts cmsWidgetPrefix="LocationAlert-" ref="locationAlerts" />
<div <div v-show="appointmentType" class="date-picker-header">
v-show="appointmentType"
class="date-picker-header">
<funnelSubHeader cmsWidgetName="DatePickerSubHeaderWidget" class="mt-5" /> <funnelSubHeader cmsWidgetName="DatePickerSubHeaderWidget" class="mt-5" />
<durationTextBlock <durationTextBlock
:isSameDay="isSameDay" :isSameDay="isSameDay"
@ -650,9 +648,7 @@ export default {
} }
}, },
showTimeSlotQuestion() { showTimeSlotQuestion() {
return ( return this.selectedDate && this.appointmentTypeFromAppointmentTypeQuestion;
this.selectedDate && this.appointmentTypeFromAppointmentTypeQuestion
)
}, },
isMobileStaticRecalibrationApplicable() { isMobileStaticRecalibrationApplicable() {
return ( return (
@ -814,16 +810,16 @@ export default {
return []; return [];
}, },
selectedRouteCodeData() { selectedRouteCodeData() {
console.log('1', JSON.stringify(this.selectedTimeSlotInfo)) console.log("1", JSON.stringify(this.selectedTimeSlotInfo));
if (!this.selectedTimeSlotInfo?.timeSlot?.routeCode) { if (!this.selectedTimeSlotInfo?.timeSlot?.routeCode) {
console.log('returning null') console.log("returning null");
return null; return null;
} }
console.log('returning data'); console.log("returning data");
return { return {
routeCode: this.selectedTimeSlotInfo.timeSlot.routeCode, routeCode: this.selectedTimeSlotInfo.timeSlot.routeCode,
isPremiumAppointment: this.selectedTimeSlotInfo.isPremiumAppointment isPremiumAppointment: this.selectedTimeSlotInfo.isPremiumAppointment,
} };
}, },
questionText() { questionText() {
return this.getCmsContent("YourSafeliteShopWidget", "QuestionText"); return this.getCmsContent("YourSafeliteShopWidget", "QuestionText");
@ -869,9 +865,12 @@ export default {
}, },
isOvernightDropoff() { isOvernightDropoff() {
return ( return (
this.selectedTimeSlotInfo?.timeSlot?.routeCode && this.selectedTimeSlotInfo.timeSlot.routeCode.includes(RouteCodeFlags.OVERNIGHT_DROP_OFF) this.selectedTimeSlotInfo?.timeSlot?.routeCode &&
this.selectedTimeSlotInfo.timeSlot.routeCode.includes(
RouteCodeFlags.OVERNIGHT_DROP_OFF
)
); );
} },
}, },
methods: { methods: {
splitCopyOnCMSPlaceHolder, splitCopyOnCMSPlaceHolder,
@ -1649,13 +1648,8 @@ export default {
// update apptType based on routeCode to determine if it should be dropoff or inshop // update apptType based on routeCode to determine if it should be dropoff or inshop
debugLog(`Updating appointment type based on route code.`); debugLog(`Updating appointment type based on route code.`);
debugLog(`Route code =`, timeSlotObj.routeCode); debugLog(`Route code =`, timeSlotObj.routeCode);
debugLog( debugLog(`Parsed type = `, this.getInShopOrDropOffApptType(timeSlotObj.routeCode));
`Parsed type = `, this.appointmentType = this.getInShopOrDropOffApptType(timeSlotObj.routeCode);
this.getInShopOrDropOffApptType(timeSlotObj.routeCode)
);
this.appointmentType = this.getInShopOrDropOffApptType(
timeSlotObj.routeCode
);
} }
}, },
getInShopOrDropOffApptType(routeCode) { getInShopOrDropOffApptType(routeCode) {
@ -1810,7 +1804,7 @@ export default {
} }
}, },
selectedTimeSlotInfo(newValue) { selectedTimeSlotInfo(newValue) {
console.log('heard a change on selectedTimeslotInfo', newValue); console.log("heard a change on selectedTimeslotInfo", newValue);
this.updateFooterButtonText(newValue); this.updateFooterButtonText(newValue);
}, },
}, },