Formatting Changes

This commit is contained in:
Scott Kiener 2025-09-11 09:57:45 -04:00
parent 0bf99c943a
commit e7364fccf0
3 changed files with 22 additions and 29 deletions

View file

@ -12,10 +12,7 @@
import textBlock from "@/digital-components/text-block/text-block";
// Constants
import {
AppointmentTypeStrings,
cmsWidgetFieldMappings
} from "@/constants/schedule-constants";
import { AppointmentTypeStrings, cmsWidgetFieldMappings } from "@/constants/schedule-constants";
// Helpers
import { getDisplayTextForDurationLength } from "@/helpers/duration-length-helper";
@ -87,12 +84,15 @@ export default {
return null;
},
durationTextBlockCopy() {
console.log("durationTextBlockCopy", this.appointmentType, this.estimatedServiceMinutesMaximum, this.estimatedServiceMinutesMinimum);
console.log(
"durationTextBlockCopy",
this.appointmentType,
this.estimatedServiceMinutesMaximum,
this.estimatedServiceMinutesMinimum
);
if (this.appointmentType === AppointmentTypeStrings.MOBILE) {
return this.mobileDurationText;
} else if (
this.appointmentType === AppointmentTypeStrings.DROP_OFF
) {
} else if (this.appointmentType === AppointmentTypeStrings.DROP_OFF) {
return this.getDurationTextBlockCopyForDropoff();
} else {
return this.inshopDurationText;
@ -114,9 +114,8 @@ export default {
},
components: {
textBlock,
}
}
},
};
</script>
<style>
</style>
<style></style>

View file

@ -125,9 +125,7 @@
:appointmentType="appointmentType"
:estimatedServiceMinutesMinimum="estimatedServiceMinutesMinimum"
:estimatedServiceMinutesMaximum="estimatedServiceMinutesMaximum"
:isOvernightDropoff="isOvernightDropoff"
/>
:isOvernightDropoff="isOvernightDropoff" />
</div>
<datePicker
:currentZip="zipCode"
@ -1832,9 +1830,7 @@ export default {
serviceZipModalQuestion,
appointmentTypeQuestion,
contentGroupModal,
shopQuestionPopup,
buttonQuestion,
durationTextBlock
durationTextBlock,
shopLocation,
},
};

View file

@ -117,7 +117,7 @@ defineRule("time-slot-required", required(errorMessages.OPTION_REQUIRED));
export default {
name: "time-slot-question",
emits: ["update:modelValue", "time-slot-selection-changed",],
emits: ["update:modelValue", "time-slot-selection-changed"],
props: {
mobileCmsWidgetName: String,
mobilePremiumCmsWidgetName: String,
@ -189,7 +189,7 @@ export default {
this.selectedAnswerForDropOffOrInshop = null;
this.selectedAnswerForTimeSlots = null;
this.autoSelectTimeSlotIfOnlyOneIsAvailable();
}
},
},
computed: {
supplementalInformationBlock() {
@ -416,28 +416,26 @@ export default {
},
dropOffSelectionChanged(newValue) {
let newSelectedRouteCodeData = null;
if(newValue && newValue != PICK_A_TIME_BUTTON_VALUE) {
newSelectedRouteCodeData ={
if (newValue && newValue != PICK_A_TIME_BUTTON_VALUE) {
newSelectedRouteCodeData = {
routeCode: newValue,
isPremiumAppointment: false
isPremiumAppointment: false,
};
}
this.selectedAnswerForTimeSlots = null;
this.$emit("time-slot-selection-changed", newSelectedRouteCodeData);
},
timeSlotSelectionChanged(newValue) {
if(newValue) {
if (newValue) {
let routeCode = newValue;
let isPremiumAppointment = routeCode.includes(
PREMIUM_TIME_SLOT_ID_FLAG
);
let isPremiumAppointment = routeCode.includes(PREMIUM_TIME_SLOT_ID_FLAG);
if (isPremiumAppointment) {
routeCode = this.removePremiumFlagFromInput(routeCode);
}
this.$emit("time-slot-selection-changed", {
routeCode: routeCode,
isPremiumAppointment: isPremiumAppointment
})
isPremiumAppointment: isPremiumAppointment,
});
}
},
// This is unused but planned to be used again