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AS/1B,MAAK,SAAS3a,GAAM,OAA+B,IAAxBk1C,EAAgBl1C,EAAW,IAAI,CACrE,IAAIgwC,KAAYyF,EACZ1F,EAAoBzrC,EAAEmxC,EAAazF,KACrCD,EAAoBjW,EAAEkW,GAAYyF,EAAYzF,IAGhD,GAAG0F,EAAS,IAAIl1C,EAASk1C,EAAQ3F,EAClC,CAEA,IADGyF,GAA4BA,EAA2BzxC,GACrD1H,EAAIq0C,EAASzvC,OAAQ5E,IACzBi1C,EAAUZ,EAASr0C,GAChB0zC,EAAoBzrC,EAAE4wC,EAAiB5D,IAAY4D,EAAgB5D,IACrE4D,EAAgB5D,GAAS,KAE1B4D,EAAgB5D,GAAW,EAE5B,OAAOvB,EAAoBU,EAAEjwC,EAC9B,EAEIm1C,EAAqBC,KAAK,iCAAmCA,KAAK,kCAAoC,GAC1GD,EAAmB3vB,QAAQuvB,EAAqBhC,KAAK,KAAM,IAC3DoC,EAAmBntC,KAAO+sC,EAAqBhC,KAAK,KAAMoC,EAAmBntC,KAAK+qC,KAAKoC,G,ICpFvF,IAAIE,EAAsB9F,EAAoBU,OAAEtwC,EAAW,CAAC,IAAI,MAAM,WAAa,OAAO4vC,EAAoB,KAAO,IACrH8F,EAAsB9F,EAAoBU,EAAEoF,E","sources":["webpack://destgotlandclient/./src/composables/useUtilities.ts","webpack://destgotlandclient/./src/modules/BookingFlow/components/BookingNavigation.vue?e111","webpack://destgotlandclient/./src/modules/BookingFlow/components/BookingNavigation.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/BookingNavigation.vue?98f5","webpack://destgotlandclient/./src/modules/BookingFlow/components/BookingStepper.vue?4100","webpack://destgotlandclient/./src/modules/BookingFlow/components/BookingStepper.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/BookingStepper.vue?ea61","webpack://destgotlandclient/./src/models/onebasket/accommodation.ts","webpack://destgotlandclient/./src/store/onebasket-search.ts","webpack://destgotlandclient/./src/composables/queries/useAccommodationTipsQuery.ts","webpack://destgotlandclient/./src/composables/onebasket/useAccommodationTips.ts","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/accommodations/AccommodationSlide.vue?067d","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/accommodations/AccommodationSlide.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/accommodations/AccommodationSlide.vue?9b6b","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/accommodations/AccommodationSlider.vue?0ea5","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/accommodations/AccommodationSlider.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/accommodations/AccommodationSlider.vue?ee2d","webpack://destgotlandclient/./src/store/accommodation.ts","webpack://destgotlandclient/./src/components/onebasket/AccommodationTips.vue?30a3","webpack://destgotlandclient/./src/components/onebasket/AccommodationTips.vue","webpack://destgotlandclient/./src/components/onebasket/AccommodationTips.vue?fad9","webpack://destgotlandclient/./src/config/global.strings.ts","webpack://destgotlandclient/./src/composables/onebasket/useAccommodationBook.ts","webpack://destgotlandclient/./src/models/Symbols/basket.ts","webpack://destgotlandclient/./src/components/onebasket/AccommodationPlacementProduct.vue?dfd0","webpack://destgotlandclient/./src/components/onebasket/AccommodationPlacementProduct.vue","webpack://destgotlandclient/./src/components/onebasket/AccommodationPlacementProduct.vue?d3e7","webpack://destgotlandclient/./src/composables/onebasket/useAccommodationAvailability.ts","webpack://destgotlandclient/./src/composables/onebasket/useOneBasketCalendar.ts","webpack://destgotlandclient/./src/composables/useUrl.ts","webpack://destgotlandclient/./src/config/accommodationCalendarOptions.ts","webpack://destgotlandclient/./src/components/onebasket/accommodation-search/AccommodationDates.vue?46e8","webpack://destgotlandclient/./src/components/onebasket/accommodation-search/AccommodationDates.vue","webpack://destgotlandclient/./src/components/onebasket/accommodation-search/AccommodationDates.vue?cbbe","webpack://destgotlandclient/./src/components/onebasket/accommodation-search/AccommodationRoomsDropdown.vue?ee19","webpack://destgotlandclient/./src/components/onebasket/accommodation-search/AccommodationRoomsDropdown.vue","webpack://destgotlandclient/./src/components/onebasket/accommodation-search/AccommodationRoomsDropdown.vue?adac","webpack://destgotlandclient/./src/components/onebasket/accommodation-search/AvailabilitySearch.vue?38bd","webpack://destgotlandclient/./src/components/onebasket/accommodation-search/AvailabilitySearch.vue","webpack://destgotlandclient/./src/components/onebasket/accommodation-search/AvailabilitySearch.vue?f4ca","webpack://destgotlandclient/./src/components/onebasket/addon/BookableAddon.vue?2c0b","webpack://destgotlandclient/./src/components/onebasket/addon/BookableAddon.vue","webpack://destgotlandclient/./src/components/onebasket/addon/BookableAddon.vue?6d3f","webpack://destgotlandclient/./src/components/onebasket/CancellationInsurance.vue?08b2","webpack://destgotlandclient/./src/components/onebasket/CancellationInsurance.vue","webpack://destgotlandclient/./src/components/onebasket/CancellationInsurance.vue?b776","webpack://destgotlandclient/./src/components/onebasket/lightbox/BookLightbox.vue?ae89","webpack://destgotlandclient/./src/components/onebasket/lightbox/BookLightbox.vue","webpack://destgotlandclient/./src/components/onebasket/lightbox/BookLightbox.vue?6e98","webpack://destgotlandclient/./src/models/Symbols/product-info.ts","webpack://destgotlandclient/./src/components/onebasket/lightbox/InformationLightbox.vue?a948","webpack://destgotlandclient/./src/components/onebasket/lightbox/InformationLightbox.vue","webpack://destgotlandclient/./src/components/onebasket/lightbox/InformationLightbox.vue?0f6e","webpack://destgotlandclient/./src/helpers/iconHelper.ts","webpack://destgotlandclient/./src/models/accommodation/AccommodationDetails.ts","webpack://destgotlandclient/./src/composables/queries/useAccommodationDetailsQuery.ts","webpack://destgotlandclient/./src/composables/queries/useAccommodationTermsQuery.ts","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/accommodations/AccommodationDetails.vue?46ff","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/accommodations/AccommodationDetails.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/accommodations/AccommodationDetails.vue?8965","webpack://destgotlandclient/./src/models/accommodation/AccommodationListItem.ts","webpack://destgotlandclient/./src/composables/onebasket/useAccommodationList.ts","webpack://destgotlandclient/./src/components/onebasket/accommodation-search/CategoryDropDown.vue?e388","webpack://destgotlandclient/./src/components/onebasket/accommodation-search/CategoryDropDown.vue","webpack://destgotlandclient/./src/components/onebasket/accommodation-search/CategoryDropDown.vue?04ed","webpack://destgotlandclient/./src/components/onebasket/accommodation-search/AccommodationSearch.vue?9406","webpack://destgotlandclient/./src/components/onebasket/accommodation-search/AccommodationSearch.vue","webpack://destgotlandclient/./src/components/onebasket/accommodation-search/AccommodationSearch.vue?d2ea","webpack://destgotlandclient/./src/store/filter.ts","webpack://destgotlandclient/./src/composables/onebasket/useOneBasketFilter.ts","webpack://destgotlandclient/./src/components/onebasket/accommodation-list/AccommodationListFilter.vue?5b9f","webpack://destgotlandclient/./src/components/onebasket/accommodation-list/AccommodationListFilter.vue","webpack://destgotlandclient/./src/components/onebasket/accommodation-list/AccommodationListFilter.vue?467e","webpack://destgotlandclient/./src/components/onebasket/accommodation-list/AccommodationListItemAlternatives.vue?a7a6","webpack://destgotlandclient/./src/components/onebasket/accommodation-list/AccommodationListItemAlternatives.vue","webpack://destgotlandclient/./src/components/onebasket/accommodation-list/AccommodationListItemAlternatives.vue?d3f3","webpack://destgotlandclient/./src/components/onebasket/accommodation-list/AccommodationListItem.vue?8185","webpack://destgotlandclient/./src/components/onebasket/accommodation-list/AccommodationListItem.vue","webpack://destgotlandclient/./src/components/onebasket/accommodation-list/AccommodationListItem.vue?cc5c","webpack://destgotlandclient/./src/components/onebasket/accommodation-list/AccommodationList.vue?60ac","webpack://destgotlandclient/./src/components/onebasket/accommodation-list/AccommodationList.vue","webpack://destgotlandclient/./src/components/onebasket/accommodation-list/AccommodationList.vue?5152","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/accommodations/AccommodationSearch.vue?c3e5","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/accommodations/AccommodationSearch.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/accommodations/AccommodationSearch.vue?e58d","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/accommodations/Accommodations.vue?9b51","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/accommodations/Accommodations.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/accommodations/Accommodations.vue?9197","webpack://destgotlandclient/./src/modules/BookingFlow/composables/useAddressInfoQuery.ts","webpack://destgotlandclient/./src/components/base/BaseDetailBox.vue?031d","webpack://destgotlandclient/./src/components/base/BaseDetailBox.vue","webpack://destgotlandclient/./src/components/base/BaseDetailBox.vue?13df","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/customer-details/AddressInfoForm.vue?484e","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/customer-details/AddressInfoForm.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/customer-details/AddressInfoForm.vue?82e5","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/customer-details/AgentAddressInfoForm.vue?ac67","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/customer-details/AgentAddressInfoForm.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/customer-details/AgentAddressInfoForm.vue?aa62","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/customer-details/CustomerDetails.vue?301c","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/customer-details/CustomerDetails.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/customer-details/CustomerDetails.vue?68ce","webpack://destgotlandclient/./src/helpers/vehicleHelper.ts","webpack://destgotlandclient/./src/modules/BookingFlow/composables/useBook.ts","webpack://destgotlandclient/./src/models/front/CalendarConfig.ts","webpack://destgotlandclient/./src/models/front/CurrentCampaign.ts","webpack://destgotlandclient/./src/modules/BookingFlow/composables/useCalendarQuery.ts","webpack://destgotlandclient/./src/modules/BookingFlow/composables/useBookingCalendar.ts","webpack://destgotlandclient/./src/modules/BookingFlow/composables/useBookingDate.ts","webpack://destgotlandclient/./src/modules/BookingFlow/composables/useRouteAndDate.ts","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/trip-details/TravelDatePicker.vue?779b","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/trip-details/TravelDatePicker.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/trip-details/TravelDatePicker.vue?67aa","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/trip-details/RouteAndDate.vue?0ae9","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/trip-details/RouteAndDate.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/trip-details/RouteAndDate.vue?d484","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/DepartureEdit.vue?5857","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/DepartureEdit.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/DepartureEdit.vue?e336","webpack://destgotlandclient/./src/helpers/directionHelper.ts","webpack://destgotlandclient/./src/models/front/DeparturePrice.ts","webpack://destgotlandclient/./src/modules/BookingFlow/composables/useDepartureQuery.ts","webpack://destgotlandclient/./src/modules/BookingFlow/composables/useSplitResourceQuery.ts","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/DepartureComfortSplit.vue?cdb4","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/DepartureComfortSplit.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/DepartureComfortSplit.vue?e9ef","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/DepartureTable.vue?a20f","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/DepartureTable.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/DepartureTable.vue?2018","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/TicketLightbox.vue?f5ac","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/TicketLightbox.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/TicketLightbox.vue?626c","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/Departure.vue?6697","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/Departure.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/Departure.vue?196a","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/DepartureDateItem.vue?bbc7","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/DepartureDateItem.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/DepartureDateItem.vue?6e44","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/DepartureDate.vue?7032","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/DepartureDate.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/DepartureDate.vue?f422","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/DepartureLoading.vue?9cf3","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/DepartureLoading.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/DepartureSection.vue?fb98","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/DepartureSection.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/DepartureSection.vue?4b8c","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/Departures.vue?5ccc","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/Departures.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/departures/Departures.vue?3663","webpack://destgotlandclient/./src/models/Extras.ts","webpack://destgotlandclient/./src/modules/BookingFlow/composables/useExtrasQuery.ts","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/ExtrasLoading.vue?c3df","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/ExtrasLoading.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/ExtraQuantity.vue?b81d","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/ExtraQuantity.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/ExtraQuantity.vue?0b2d","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/ExtraQuantitySmall.vue?dd3a","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/ExtraQuantitySmall.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/ExtraQuantitySmall.vue?f458","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/Food.vue?a95a","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/Food.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/Food.vue?aef0","webpack://destgotlandclient/./src/config/seating/seatingMaps.ts","webpack://destgotlandclient/./src/modules/BookingFlow/composables/useSeatingQuery.ts","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/Seating.vue?995f","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/Seating.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/Seating.vue?db38","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/TransferMap.vue?6072","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/TransferMap.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/TransferQuantitySmall.vue?d478","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/TransferQuantitySmall.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/TransferQuantitySmall.vue?5b57","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/TransferQuantity.vue?316e","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/TransferQuantity.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/TransferQuantity.vue?1c02","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/Transfer.vue?1c79","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/Transfer.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/Transfer.vue?b0b8","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/OldTransfer.vue?2946","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/OldTransfer.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/OldTransfer.vue?540f","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/ExtrasSection.vue?f980","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/ExtrasSection.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/ExtrasSection.vue?8d15","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/Extras.vue?3443","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/Extras.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/extras/Extras.vue?8b4c","webpack://destgotlandclient/./src/models/front/BookingDetails.ts","webpack://destgotlandclient/./src/modules/BookingFlow/composables/useTravelDetailsQuery.ts","webpack://destgotlandclient/./src/components/base/BaseDisabilitySelect.vue?758a","webpack://destgotlandclient/./src/components/base/BaseDisabilitySelect.vue","webpack://destgotlandclient/./src/config/disabilities.ts","webpack://destgotlandclient/./src/components/base/BaseDisabilitySelect.vue?85c1","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/passengers/CoPassengerSelect.vue?5784","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/passengers/CoPassengerSelect.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/passengers/CoPassengerSelect.vue?6a36","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/passengers/PassengerDetails.vue?1522","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/passengers/PassengerDetails.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/passengers/PassengerDetails.vue?b430","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/passengers/CoVehicleSelect.vue?410c","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/passengers/CoVehicleSelect.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/passengers/CoVehicleSelect.vue?36e6","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/passengers/VehicleDetails.vue?d2f9","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/passengers/VehicleDetails.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/passengers/VehicleDetails.vue?0a4f","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/passengers/PassengerSection.vue?d685","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/passengers/PassengerSection.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/passengers/PassengerSection.vue?0ff2","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/passengers/Passengers.vue?a49d","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/passengers/Passengers.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/passengers/Passengers.vue?7c82","webpack://destgotlandclient/./src/helpers/islanderHelper.ts","webpack://destgotlandclient/./src/models/front/ResourceSettings.ts","webpack://destgotlandclient/./src/modules/BookingFlow/composables/useBookableResourceQuery.ts","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/trip-details/passenger/PassengerSelectRow.vue?4e75","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/trip-details/passenger/PassengerSelectRow.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/trip-details/passenger/PassengerSelectRow.vue?9221","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/trip-details/passenger/PassengerSelect.vue?e481","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/trip-details/passenger/PassengerSelect.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/trip-details/passenger/PassengerSelect.vue?30cc","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/trip-details/RouteCampaignCode.vue?5a20","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/trip-details/RouteCampaignCode.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/trip-details/RouteCampaignCode.vue?74bb","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/trip-details/vehicle/VehicleExtraInfo.vue?cc42","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/trip-details/vehicle/VehicleExtraInfo.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/trip-details/vehicle/VehicleSelect.vue?cbd7","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/trip-details/vehicle/VehicleSelect.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/trip-details/vehicle/VehicleSelect.vue?9d1a","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/trip-details/TripDetails.vue?56c4","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/trip-details/TripDetails.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/steps/trip-details/TripDetails.vue?a6aa","webpack://destgotlandclient/./src/modules/BookingFlow/components/BookingFlow.vue?8d13","webpack://destgotlandclient/./src/modules/BookingFlow/components/BookingFlow.vue","webpack://destgotlandclient/./src/modules/BookingFlow/components/BookingFlow.vue?ae6c","webpack://destgotlandclient/./src/modules/BookingFlow/App.vue?f834","webpack://destgotlandclient/./src/modules/BookingFlow/App.vue","webpack://destgotlandclient/./src/modules/BookingFlow/main.ts","webpack://destgotlandclient/webpack/bootstrap","webpack://destgotlandclient/webpack/runtime/amd options","webpack://destgotlandclient/webpack/runtime/chunk loaded","webpack://destgotlandclient/webpack/runtime/compat get default export","webpack://destgotlandclient/webpack/runtime/define property getters","webpack://destgotlandclient/webpack/runtime/ensure chunk","webpack://destgotlandclient/webpack/runtime/get javascript chunk filename","webpack://destgotlandclient/webpack/runtime/get mini-css chunk filename","webpack://destgotlandclient/webpack/runtime/global","webpack://destgotlandclient/webpack/runtime/hasOwnProperty shorthand","webpack://destgotlandclient/webpack/runtime/load script","webpack://destgotlandclient/webpack/runtime/make namespace object","webpack://destgotlandclient/webpack/runtime/node module decorator","webpack://destgotlandclient/webpack/runtime/runtimeId","webpack://destgotlandclient/webpack/runtime/publicPath","webpack://destgotlandclient/webpack/runtime/css loading","webpack://destgotlandclient/webpack/runtime/jsonp chunk loading","webpack://destgotlandclient/webpack/startup"],"sourcesContent":["interface useUtilites {\r\n\trange: (start: number, end: number) => number[];\r\n\trepeat: (count: number, value: T) => T[];\r\n}\r\n\r\nexport const range = (start: number, end: number): number[] => {\r\n\tif(isNaN(start) || isNaN(end)) {\r\n\t\treturn [];\r\n\t}\r\n\treturn [...Array(end)].map((_, i) => start + i);\r\n}\r\n\r\nexport const repeat = (count: number, value: T): T[] => {\r\n\tif(isNaN(count)) {\r\n\t\treturn [];\r\n\t}\r\n\r\n\treturn [...Array(count)].map(() => value);\r\n}\r\n\r\n\r\nexport const useUtilities = (): useUtilites => {\r\n\treturn {\r\n\t\trange,\r\n\t\trepeat\r\n\t}\r\n}","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, withModifiers as _withModifiers, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-6da426d8\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"booking-navigation\" }\nconst _hoisted_2 = { key: 0 }\n\nimport useDialog from \"@/composables/useDialog\";\r\nimport { DialogType } from \"@/models/Symbols/Dialog\";\r\nimport { useI18n } from \"vue-i18n\";\r\nimport useBookingNavigation from \"../composables/useBookingNavigation\";\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BookingNavigation',\n setup(__props) {\n\r\nconst { displayDialog } = useDialog();\r\nconst { t } = useI18n();\r\nconst { prevStep, cancel, currentStep } = useBookingNavigation();\r\n\r\nconst cancelBooking = () => {\r\n displayDialog({\r\n title: t(\"messages.cancel.title\"),\r\n message: t(\"messages.cancel.body\"),\r\n yes: t(\"button.yes\"),\r\n no: t(\"button.no\"),\r\n callback: () => cancel(),\r\n type: DialogType.warning,\r\n });\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"ul\", _hoisted_1, [\n (_unref(currentStep).number > 1)\n ? (_openBlock(), _createElementBlock(\"li\", _hoisted_2, [\n _createElementVNode(\"a\", {\n href: \"#\",\n class: \"previous booking-navigation-link\",\n onClick: _cache[0] || (_cache[0] = _withModifiers(\n//@ts-ignore\n(...args) => (_unref(prevStep) && _unref(prevStep)(...args)), [\"prevent\"]))\n }, _toDisplayString(_ctx.$t(\"booking.steps.return\")), 1)\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"li\", null, [\n _createElementVNode(\"a\", {\n href: \"#\",\n class: \"booking-navigation-link\",\n onClick: _withModifiers(cancelBooking, [\"prevent\"])\n }, _toDisplayString(_ctx.$t(\"booking.cancelBooking\")), 1)\n ])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./BookingNavigation.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./BookingNavigation.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./BookingNavigation.vue?vue&type=style&index=0&id=6da426d8&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-6da426d8\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-b0700448\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"booking-stepper\" }\nconst _hoisted_2 = [\"onClick\", \"tabindex\"]\nconst _hoisted_3 = { class: \"index\" }\nconst _hoisted_4 = { class: \"description\" }\nconst _hoisted_5 = { class: \"current-step\" }\n\nimport useBookingNavigation from \"../composables/useBookingNavigation\";\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BookingStepper',\n setup(__props) {\n\r\nconst { steps, currentStep, goToStep } = useBookingNavigation();\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"ol\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(steps), (step) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n key: step.number,\n class: _normalizeClass({ active: step.number === _unref(currentStep).number })\n }, [\n _createElementVNode(\"a\", {\n href: \"#\",\n onClick: ($event: any) => (_unref(goToStep)(step.number)),\n tabindex: step.number > _unref(currentStep).number ? '-1' : '0'\n }, [\n _createElementVNode(\"span\", _hoisted_3, _toDisplayString(step.number), 1),\n _createElementVNode(\"span\", _hoisted_4, _toDisplayString(step.title), 1)\n ], 8, _hoisted_2)\n ], 2))\n }), 128))\n ]),\n _createElementVNode(\"span\", _hoisted_5, _toDisplayString(_ctx.$t('booking.steps.title')) + \" \" + _toDisplayString(_unref(currentStep).number) + \" - \" + _toDisplayString(_unref(currentStep).title), 1)\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./BookingStepper.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./BookingStepper.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./BookingStepper.vue?vue&type=style&index=0&id=b0700448&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-b0700448\"]])\n\nexport default __exports__","export interface AccommodationTipsResponse {\r\n accommodations: AccommodationListItemResponse[];\r\n checkin: string;\r\n checkout: string;\r\n rooms: SearchRoomModel[];\r\n}\r\n\r\nexport interface AccommodationDetailsResponse {\r\n id: string;\r\n images: Image[];\r\n name: string;\r\n category: number;\r\n description: string;\r\n tags: number[];\r\n}\r\n\r\nexport interface SearchRoomModel {\r\n adults: number;\r\n childrenAges: number[];\r\n}\r\n\r\nexport enum SortOptions {\r\n PriceAsc = 1,\r\n PriceDesc,\r\n RatingAsc,\r\n RatingDesc,\r\n}\r\n\r\nexport interface AccommodationListItemResponse {\r\n id: string;\r\n name: string;\r\n images: Image[];\r\n products: AccommodationListItemProduct[];\r\n tags: number[];\r\n category: number;\r\n description: string;\r\n guests: number;\r\n isRecommended: boolean;\r\n arrival?: string;\r\n departure?: string;\r\n fromNights: number;\r\n fromPrice: number;\r\n fromOriginalPrice?: number;\r\n quickBook: string;\r\n}\r\n\r\nexport interface AccommodationListItemProduct {\r\n rooms?: Room[];\r\n price: number;\r\n originalPrice?: number;\r\n nights: number;\r\n identifier: string;\r\n arrival?: string;\r\n departure?: string;\r\n discountInformation?: string;\r\n}\r\n\r\nexport interface Room {\r\n amount: number;\r\n id: string;\r\n name: string;\r\n images: Image[];\r\n includedBreakfasts: number;\r\n guests: number;\r\n description: string;\r\n discountInfo?: string;\r\n bookingTerms?: string;\r\n}\r\n\r\nexport interface Image {\r\n source: string;\r\n isMain: boolean;\r\n}\r\n","import { createId } from \"@/helpers/idHelper\";\r\nimport { AccommodationListItem } from \"@/models/accommodation/AccommodationListItem\";\r\nimport { SearchRoomModel, SortOptions } from \"@/models/onebasket/accommodation\";\r\nimport { SearchState } from \"@/models/store/SearchState\";\r\nimport { defineStore } from \"pinia\";\r\n\r\nexport const useSearchStore = defineStore({\r\n id: \"search\",\r\n state: () =>\r\n ({\r\n accommodationType: undefined,\r\n checkoutDate: undefined,\r\n checkinDate: undefined,\r\n flexible: false,\r\n rooms: {},\r\n result: [],\r\n searchToken: \"\",\r\n totalResult: undefined,\r\n sortOption: SortOptions.PriceAsc,\r\n } as SearchState),\r\n getters: {\r\n roomsCount: (state) => Object.entries(state.rooms).length,\r\n guestCount: (state) => {\r\n const rooms = Object.values(state.rooms).map((room: SearchRoomModel) => {\r\n return room.adults + (room.childrenAges ?? []).length;\r\n });\r\n\r\n if (rooms.length) {\r\n return rooms.reduce((a, b) => {\r\n return a + b;\r\n });\r\n }\r\n\r\n return 0;\r\n },\r\n multipleRoomsAllowed: (state) => {\r\n return ![14865, 4632, 0].includes(state.accommodationType ?? 34938);\r\n },\r\n readyForSearch: (state) => {\r\n return !!Object.entries(state.rooms).length && !!state.checkinDate && !!state.checkoutDate;\r\n },\r\n getResults: (state) => {\r\n return state.result.length;\r\n },\r\n },\r\n actions: {\r\n setCheckin(date?: Date) {\r\n this.checkinDate = date;\r\n },\r\n setCheckout(date?: Date) {\r\n this.checkoutDate = date;\r\n },\r\n setFlexible(value: boolean) {\r\n this.flexible = value;\r\n },\r\n addRoom(adults = 1, ages = [] as number[]) {\r\n if (this.multipleRoomsAllowed) {\r\n const id = createId();\r\n this.rooms[id] = {\r\n adults: adults,\r\n childrenAges: ages,\r\n };\r\n } else if (!this.rooms.length) {\r\n const id = createId();\r\n this.rooms[id] = {\r\n adults: adults,\r\n childrenAges: ages,\r\n };\r\n }\r\n },\r\n clearRooms() {\r\n this.rooms = {};\r\n },\r\n removeRoom(id: string) {\r\n if (this.rooms[id]) {\r\n delete this.rooms[id];\r\n }\r\n },\r\n setAccommodationType(category: number) {\r\n if ([14865, 4632].includes(category)) {\r\n this.rooms = {};\r\n const id = createId();\r\n this.rooms[id] = {\r\n adults: 1,\r\n childrenAges: [],\r\n };\r\n }\r\n this.accommodationType = category;\r\n },\r\n setAccommodationsResult(accommodations: AccommodationListItem[]) {\r\n this.result = accommodations;\r\n },\r\n setContinuationToken(token: string) {\r\n this.searchToken = token;\r\n },\r\n setTotalResult(totalResult: number) {\r\n this.totalResult = totalResult;\r\n },\r\n setSort(sort: SortOptions) {\r\n this.sortOption = sort;\r\n },\r\n orderResult(sort: number) {\r\n switch (sort as SortOptions) {\r\n case SortOptions.PriceAsc:\r\n this.result = this.result.sort((a, b) => a.fromPrice - b.fromPrice);\r\n break;\r\n case SortOptions.PriceDesc:\r\n this.result = this.result.sort((a, b) => a.fromPrice - b.fromPrice).reverse();\r\n break;\r\n }\r\n },\r\n },\r\n persist: {\r\n storage: sessionStorage,\r\n },\r\n});\r\n","import { AccommodationTipsResponse } from \"@/models/onebasket/accommodation\";\r\nimport { useQuery } from \"vue-query\";\r\nimport useApi from \"../useApi\";\r\n\r\nconst useAccommodationTipsQuery = () => {\r\n const { get } = useApi();\r\n const fetcher = () => {\r\n return get(\"ob/accommodation/tips\", \"\").then((resp) => resp.data);\r\n };\r\n\r\n return {\r\n ...useQuery(\"accommodationTips\", fetcher, {\r\n refetchOnWindowFocus: false,\r\n staleTime: 60 * 1000 * 10,\r\n }),\r\n };\r\n};\r\n\r\nexport default useAccommodationTipsQuery;\r\n","import { accommodationConfig } from \"@/config/accommodationTypes\";\r\nimport { useSearchStore } from \"@/store/onebasket-search\";\r\nimport { watchEffect } from \"vue\";\r\nimport useAccommodationTipsQuery from \"../queries/useAccommodationTipsQuery\";\r\n\r\nconst accommodationOptions = accommodationConfig.filter(o => o.value > 0);\r\n\r\nconst useAccommodationTips = () => {\r\n const query = useAccommodationTipsQuery();\r\n const searchStore = useSearchStore();\r\n watchEffect(() => {\r\n const data = query.data.value;\r\n if (data) {\r\n searchStore.setCheckin(new Date(data.checkin));\r\n searchStore.setCheckout(new Date(data.checkout));\r\n searchStore.clearRooms();\r\n searchStore.addRoom(data.rooms[0].adults, data.rooms[0].childrenAges);\r\n searchStore.setAccommodationType(accommodationOptions[0].type)\r\n }\r\n })\r\n\r\n return {\r\n ...query\r\n }\r\n}\r\n\r\nexport default useAccommodationTips;","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, withCtx as _withCtx, createVNode as _createVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-44c2abe6\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"accommodation-slide\" }\nconst _hoisted_2 = [\"src\", \"alt\"]\nconst _hoisted_3 = { class: \"accommodation-slide__content\" }\nconst _hoisted_4 = { class: \"accommodation-slide__inner\" }\nconst _hoisted_5 = { class: \"description\" }\nconst _hoisted_6 = {\n key: 0,\n class: \"previous\"\n}\nconst _hoisted_7 = { class: \"current\" }\n\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport { AccommodationListItem } from \"@/models/accommodation/AccommodationListItem\";\r\n\r\ninterface Props {\r\n accommodation: AccommodationListItem;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AccommodationSlide',\n props: {\n accommodation: {}\n },\n emits: [\"accommodationSelected\"],\n setup(__props: any, { emit: __emit }) {\n\r\n\r\n\r\nconst emit = __emit;\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"img\", {\n src: _ctx.accommodation.images[0].source,\n alt: _ctx.accommodation.name\n }, null, 8, _hoisted_2),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"h3\", null, _toDisplayString(_ctx.accommodation.name), 1),\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n (_ctx.accommodation.fromOriginalPrice)\n ? (_openBlock(), _createElementBlock(\"p\", _hoisted_6, _toDisplayString(_ctx.$t(\"onebasket.accommodation.fromPrice\")) + \" \" + _toDisplayString(_ctx.accommodation.fromOriginalPrice) + \" \" + _toDisplayString(_ctx.$t(\"onebasket.accommodation.fromPriceCurrency\")) + \"/\" + _toDisplayString(_ctx.$t(\"onebasket.accommodation.night\")), 1))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"p\", _hoisted_7, _toDisplayString(_ctx.$t(\"onebasket.accommodation.fromPrice\")) + \" \" + _toDisplayString(_ctx.accommodation.fromPrice) + \" \" + _toDisplayString(_ctx.$t(\"onebasket.accommodation.fromPriceCurrency\")) + \"/\" + _toDisplayString(_ctx.$t(\"onebasket.accommodation.night\")), 1),\n _createElementVNode(\"p\", null, _toDisplayString(_ctx.accommodation.fromNights) + \" \" + _toDisplayString(_ctx.$t(\"onebasket.accommodation.nights\")) + \", \" + _toDisplayString(_ctx.accommodation.guests) + \" \" + _toDisplayString(_ctx.$t(\"onebasket.accommodation.guests\")), 1)\n ]),\n _createVNode(BaseButton, {\n type: \"button\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (emit('accommodationSelected', _ctx.accommodation))),\n class: _normalizeClass('btn--fixed-width')\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t(\"onebasket.accommodation.book\")), 1)\n ]),\n _: 1\n })\n ])\n ])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./AccommodationSlide.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./AccommodationSlide.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./AccommodationSlide.vue?vue&type=style&index=0&id=44c2abe6&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-44c2abe6\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-67182b06\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"accommodation-slider\" }\n\nimport { AccommodationListItem } from \"@/models/accommodation/AccommodationListItem\";\r\nimport { A11y, Navigation, Pagination, Virtual } from \"swiper/modules\";\r\nimport \"swiper/css/bundle\";\r\nimport { Swiper, SwiperSlide } from \"swiper/vue\";\r\nimport AccommodationSlide from \"./AccommodationSlide.vue\";\r\n\r\ninterface Props {\r\n accommodations?: AccommodationListItem[];\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AccommodationSlider',\n props: {\n accommodations: {}\n },\n emits: [\"accommodationSelected\"],\n setup(__props: any, { emit: __emit }) {\n\r\n\r\nconst emit = __emit;\r\nconst swiperModules = [Navigation, A11y, Virtual, Pagination];\r\n\r\nconst breakpoints = {\r\n 0: { slidesPerView: 1 },\r\n 600: { slidesPerView: 1.5 },\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_unref(Swiper), {\n centeredSlides: true,\n slidesPerView: 1.5,\n spaceBetween: 20,\n slidesPerGroup: 1,\n breakpoints: breakpoints,\n loop: true,\n loopFillGroupWithBlank: true,\n loopPreventsSlide: true,\n pagination: { clickable: true },\n navigation: true,\n modules: swiperModules\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.accommodations, (accommodation) => {\n return (_openBlock(), _createBlock(_unref(SwiperSlide), {\n key: accommodation.id\n }, {\n default: _withCtx(() => [\n _createVNode(AccommodationSlide, {\n accommodation: accommodation,\n onAccommodationSelected: ($event: any) => (emit('accommodationSelected', accommodation))\n }, null, 8, [\"accommodation\", \"onAccommodationSelected\"])\n ]),\n _: 2\n }, 1024))\n }), 128))\n ]),\n _: 1\n })\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./AccommodationSlider.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./AccommodationSlider.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./AccommodationSlider.vue?vue&type=style&index=0&id=67182b06&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-67182b06\"]])\n\nexport default __exports__","import { storageWithExpiration } from \"@/helpers/storageHelper\";\r\nimport { AccommodationState } from \"@/models/store/AccommodationState\";\r\nimport { defineStore } from \"pinia\";\r\n\r\nexport const useAccommodationStore = defineStore({\r\n id: \"accommodation\",\r\n state: () =>\r\n ({\r\n id: \"\",\r\n images: [],\r\n name: \"\",\r\n category: 0,\r\n description: \"\",\r\n tags: [],\r\n } as AccommodationState),\r\n getters: {\r\n getCurrent: (state) => state,\r\n },\r\n actions: {\r\n setAccommodation(accommodation: AccommodationState) {\r\n this.$state = accommodation;\r\n },\r\n },\r\n persist: {\r\n storage: storageWithExpiration(localStorage),\r\n },\r\n});\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createElementVNode as _createElementVNode, createVNode as _createVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-51ffd266\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"accommodationtips\" }\nconst _hoisted_2 = { class: \"gallery\" }\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"loading-box\" }, null, -1))\n\nimport BaseAlert from \"@/components/base/BaseAlert.vue\";\r\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport BaseSpinner from \"@/components/base/BaseSpinner.vue\";\r\nimport useAccommodationTips from \"@/composables/onebasket/useAccommodationTips\";\r\nimport { AccommodationListItem } from \"@/models/accommodation/AccommodationListItem\";\r\nimport { AccommodationState } from \"@/models/store/AccommodationState\";\r\nimport AccommodationSlider from \"@/modules/BookingFlow/components/steps/accommodations/AccommodationSlider.vue\";\r\nimport { useAccommodationStore } from \"@/store/accommodation\";\r\nimport { useRouter } from \"vue-router\";\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AccommodationTips',\n setup(__props) {\n\r\nconst store = useAccommodationStore();\r\n\r\nconst router = useRouter();\r\n\r\nconst handleAccommodation = (accommodation: AccommodationListItem) => {\r\n const accommodationState: AccommodationState = {\r\n id: accommodation.id,\r\n category: accommodation.category,\r\n images: accommodation.images,\r\n description: accommodation.description,\r\n name: accommodation.name,\r\n tags: accommodation.tags,\r\n };\r\n\r\n store.setAccommodation(accommodationState);\r\n router.push({\r\n query: {\r\n ...router.currentRoute.value.query,\r\n accommodationId: accommodation.id,\r\n },\r\n });\r\n};\r\n\r\nconst { data, isLoading, error } = useAccommodationTips();\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n (_unref(isLoading))\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n _hoisted_3,\n _createVNode(BaseSpinner, { color: 'dark' })\n ], 64))\n : (_unref(data))\n ? (_openBlock(), _createBlock(AccommodationSlider, {\n key: 1,\n accommodations: _unref(data)?.accommodations,\n onAccommodationSelected: handleAccommodation\n }, null, 8, [\"accommodations\"]))\n : (_unref(error))\n ? (_openBlock(), _createBlock(BaseAlert, {\n key: 2,\n type: \"danger\",\n message: (_unref(error) as Error).message\n }, null, 8, [\"message\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _createVNode(BaseButton, {\n onClick: _cache[0] || (_cache[0] = ($event: any) => (\r\n _ctx.$router.push({\r\n query: {\r\n ..._ctx.$route.query,\r\n listAccommodation: 'true',\r\n },\r\n })\r\n )),\n class: \"btn--link\",\n icon: \"arrow-right\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"onebasket.accommodation.goToSearch\")), 1)\n ]),\n _: 1\n })\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n","import script from \"./AccommodationTips.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./AccommodationTips.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./AccommodationTips.vue?vue&type=style&index=0&id=51ffd266&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-51ffd266\"]])\n\nexport default __exports__","interface StorageKeys {\r\n\toneBasket: string;\r\n\tdestgotland: string;\r\n}\r\n\r\nexport const storageKeys: StorageKeys = {\r\n\toneBasket: 'dg_one_basket',\r\n\tdestgotland: 'DESTGOTLAND'\r\n}","import { accommodationConfig } from \"@/config/accommodationTypes\";\r\nimport { storageKeys } from \"@/config/global.strings\";\r\nimport { AddOneBasketProductResponse } from \"@/models/onebasket/AddOneBasketProductResponse\";\r\nimport { AddonRequest } from \"@/models/onebasket/AddonRequest\";\r\nimport { AddProductRequest, CompleteAccommodationRequest } from \"@/models/onebasket/api\";\r\nimport { ref } from \"vue\";\r\nimport useApi from \"../useApi\";\r\nimport Cookies from \"js-cookie\";\r\n\r\nconst accommodationOptions = accommodationConfig.filter((o) => o.value > 0);\r\n\r\nconst isLoading = ref(false);\r\nconst useAccommodationBook = () => {\r\n const { post, get, put } = useApi();\r\n\r\n const authenticate = () => {\r\n return new Promise((resolve) => {\r\n const token = Cookies.get(storageKeys.destgotland);\r\n\r\n if (token) {\r\n resolve(token);\r\n } else {\r\n resolve(get(\"auth\", \"\"));\r\n }\r\n });\r\n };\r\n\r\n const bookRoom = async (identifier: string) => {\r\n isLoading.value = true;\r\n\r\n const request = {\r\n identifier: identifier,\r\n } as AddProductRequest;\r\n\r\n await authenticate();\r\n try {\r\n const resp = await put(\"ob/basket/accommodation\", request);\r\n return resp.data;\r\n } finally {\r\n isLoading.value = false;\r\n }\r\n };\r\n\r\n const complete = async (addons: AddonRequest[], insurances: number[]) => {\r\n const request = {\r\n addons,\r\n insurances,\r\n } as CompleteAccommodationRequest;\r\n\r\n const resp = await post(\"ob/basket/book\", request);\r\n return resp.data;\r\n };\r\n\r\n return {\r\n accommodationOptions,\r\n bookRoom,\r\n complete,\r\n isLoading,\r\n };\r\n};\r\n\r\nexport default useAccommodationBook;\r\n","import { EventBusKey } from \"@vueuse/core\";\r\nimport { BasketSection } from \"../front/basket/BasketGroup\";\r\nimport { BookableAddon } from \"../onebasket/BookableAddon\";\r\nimport { GalaxyBasket } from \"../onebasket/GalaxyBasket\";\r\n\r\nexport const basketKey: EventBusKey = Symbol();\r\n\r\ninterface Basket {\r\n addons: BookableAddon[];\r\n basket: GalaxyBasket;\r\n ferrySections: BasketSection[];\r\n basketPrice: number;\r\n specialTerms?: string[];\r\n}\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createElementVNode as _createElementVNode, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, unref as _unref, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-f4129dac\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"product\" }\nconst _hoisted_2 = { class: \"content\" }\nconst _hoisted_3 = {\n key: 0,\n class: \"image\"\n}\nconst _hoisted_4 = [\"src\"]\nconst _hoisted_5 = { class: \"information\" }\nconst _hoisted_6 = { key: 0 }\nconst _hoisted_7 = { class: \"summary\" }\nconst _hoisted_8 = { class: \"terms\" }\nconst _hoisted_9 = { class: \"dialog\" }\nconst _hoisted_10 = { class: \"price\" }\nconst _hoisted_11 = {\n key: 0,\n class: \"previous\"\n}\nconst _hoisted_12 = { class: \"current\" }\n\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport useAccommodation from \"@/composables/onebasket/useAccommodationBook\";\r\nimport { mapFromBasketSectionResponse } from \"@/models/front/basket/BasketGroup\";\r\nimport { AccommodationListItemProduct } from \"@/models/onebasket/accommodation\";\r\nimport { basketKey } from \"@/models/Symbols/basket\";\r\nimport { useEventBus } from \"@vueuse/core\";\r\nimport { ref } from \"vue\";\r\n\r\ninterface Props {\r\n product: AccommodationListItemProduct;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AccommodationPlacementProduct',\n props: {\n product: {}\n },\n emits: [\"booked\", \"terms\"],\n setup(__props: any, { emit: __emit }) {\n\r\nconst props = __props;\r\nconst emit = __emit;\r\n\r\nconst { bookRoom, isLoading } = useAccommodation();\r\nconst loading = ref(false);\r\nconst eventBus = useEventBus(basketKey);\r\n\r\nconst handleClick = () => {\r\n if (loading.value) {\r\n return;\r\n }\r\n loading.value = true;\r\n const identifier = props.product.identifier;\r\n bookRoom(identifier)\r\n .then((data) => {\r\n emit(\"booked\", { bookableAddons: data.addons, basket: data.basket });\r\n eventBus.emit({\r\n addons: data.addons,\r\n basket: data.basket,\r\n ferrySections: data.ferryBooking.map((s) => mapFromBasketSectionResponse(s)),\r\n basketPrice: data.totalPrice,\r\n specialTerms: props.product.rooms?.filter((r) => !!r.bookingTerms).map((r) => r.bookingTerms as string),\r\n });\r\n })\r\n .finally(() => {\r\n loading.value = false;\r\n });\r\n};\r\n\r\nconst handleTerms = () => {\r\n const terms = props.product.rooms?.filter((r) => !!r.bookingTerms).map((r) => r.bookingTerms);\r\n emit(\"terms\", terms);\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.product.rooms, (room, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"room\",\n key: index\n }, [\n (room.images[0])\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n _createElementVNode(\"figure\", null, [\n _createElementVNode(\"img\", {\n src: room.images[0].source,\n alt: \"\"\n }, null, 8, _hoisted_4)\n ])\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"h4\", null, [\n (room.amount > 0)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_6, _toDisplayString(room.amount) + \"st\", 1))\n : _createCommentVNode(\"\", true),\n _createTextVNode(\" \" + _toDisplayString(room.name), 1)\n ]),\n _createElementVNode(\"p\", null, _toDisplayString(room.description), 1)\n ])\n ]))\n }), 128))\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", _hoisted_8, [\n _createVNode(BaseButton, {\n class: \"btn--transparent no-padding\",\n onClick: handleTerms,\n icon: \"alert/info\",\n iconPosition: \"left\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(`onebasket.accommodation.book-terms`)), 1)\n ]),\n _: 1\n })\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"div\", _hoisted_10, [\n (_ctx.product.originalPrice)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_11, _toDisplayString(_ctx.product.originalPrice) + \" kr\", 1))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"span\", _hoisted_12, _toDisplayString(_ctx.product.price) + \" kr\", 1)\n ]),\n _createVNode(BaseButton, {\n onClick: handleClick,\n disabled: _unref(isLoading),\n loading: loading.value\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"onebasket.accommodation.book\")), 1)\n ]),\n _: 1\n }, 8, [\"disabled\", \"loading\"])\n ])\n ])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n","import script from \"./AccommodationPlacementProduct.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./AccommodationPlacementProduct.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./AccommodationPlacementProduct.vue?vue&type=style&index=0&id=f4129dac&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-f4129dac\"]])\n\nexport default __exports__","import { AccommodationListItemProduct } from \"@/models/onebasket/accommodation\";\r\nimport { useSearchStore } from \"@/store/onebasket-search\";\r\nimport { computed, readonly, ref } from \"vue\";\r\nimport useApi from \"../useApi\";\r\n\r\nconst isLoading = ref(false);\r\nconst data = ref();\r\n\r\nconst useAccommodationAvailability = (id?: string) => {\r\n const { post } = useApi();\r\n const store = useSearchStore();\r\n\r\n const request = computed(() => {\r\n return {\r\n categories: [] as number[],\r\n rooms: Object.values(store.rooms),\r\n checkinDate: store.checkinDate,\r\n checkoutDate: store.checkoutDate,\r\n };\r\n });\r\n\r\n const enabled = computed(() => {\r\n return store.readyForSearch && !!id;\r\n });\r\n\r\n const getRoomsAvailability = () => {\r\n isLoading.value = true;\r\n data.value = [];\r\n return post(`ob/accommodation/${id}/availability`, request.value)\r\n .then((resp) => {\r\n data.value = resp.data;\r\n return data.value;\r\n })\r\n .finally(() => {\r\n isLoading.value = false;\r\n });\r\n };\r\n\r\n return {\r\n getRoomsAvailability,\r\n enabled,\r\n data,\r\n isLoading: readonly(isLoading),\r\n };\r\n};\r\n\r\nexport default useAccommodationAvailability;\r\n","import { YYYYMMDD } from \"@/helpers/dateHelpers\";\r\nimport { ref } from \"vue\";\r\nimport useApi from \"../useApi\";\r\n\r\nconst useOneBasketCalendar = () => {\r\n const { get } = useApi();\r\n const isLoading = ref(false);\r\n\r\n const getCalendar = (id: string, startDate: Date) => {\r\n isLoading.value = true;\r\n return get(`ob/accommodation/${id}/calendar/departure/${YYYYMMDD(startDate)}`, '')\r\n .then(resp => resp.data)\r\n .finally(() => {\r\n isLoading.value = false;\r\n });\r\n }\r\n\r\n return {\r\n getCalendar,\r\n }\r\n}\r\n\r\nexport default useOneBasketCalendar;","const getQueryParamValue = (param: string) => {\r\n\tconst url = new URL(document.location.href);\r\n\tconst paramValue = url.searchParams.get(param) || false;\r\n\treturn paramValue ? paramValue : \"\";\r\n}\r\n\r\nconst removeQueryParam = (param: string) => {\r\n\tconst url = new URL(document.location.href);\r\n\turl.searchParams.delete(param);\r\n\twindow.history.replaceState({}, document.title, url.href);\r\n}\r\n\r\nexport const useUrl = () => {\r\n\treturn {\r\n\t\tgetQueryParamValue,\r\n\t\tremoveQueryParam\r\n\t}\r\n}","\r\nexport const calendarOptions = [\r\n {\r\n id: 1,\r\n name: 'Kalender',\r\n },\r\n {\r\n id: 2,\r\n name: 'Flexibel',\r\n },\r\n];\r\n\r\nexport const stayOptions = [\r\n {\r\n id: 1,\r\n name: 'Nätter',\r\n },\r\n {\r\n id: 2,\r\n name: 'Weekend',\r\n },\r\n];","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, toHandlers as _toHandlers, mergeProps as _mergeProps, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, withCtx as _withCtx, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createSlots as _createSlots } from \"vue\"\n\nconst _hoisted_1 = { class: \"date-picker\" }\nconst _hoisted_2 = { class: \"row\" }\nconst _hoisted_3 = { class: \"date-picker__footer\" }\nconst _hoisted_4 = { class: \"row calendar-options\" }\nconst _hoisted_5 = { class: \"options-wrapper\" }\nconst _hoisted_6 = {\n key: 0,\n class: \"row calendar-options\"\n}\nconst _hoisted_7 = { class: \"options-wrapper options-wrapper--transparent\" }\n\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport BaseInput from \"@/components/base/BaseInput.vue\";\r\nimport useOneBasketCalendar from \"@/composables/onebasket/useOneBasketCalendar\";\r\nimport { useUrl } from \"@/composables/useUrl\";\r\nimport { calendarOptions, stayOptions } from \"@/config/accommodationCalendarOptions\";\r\nimport { DateRange } from \"@/models/DateRange\";\r\nimport { useSearchStore } from \"@/store/onebasket-search\";\r\nimport { DatePicker } from \"v-calendar\";\r\nimport { computed, onMounted, ref, watch } from \"vue\";\r\nimport { rangeHighlights } from \"@/config/calendarAttributes\";\r\n\r\ninterface Props {\r\n allowFlexible?: boolean;\r\n dates?: Date[];\r\n availabilityMode?: boolean;\r\n accommodationId?: string;\r\n hasError?: boolean;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AccommodationDates',\n props: {\n allowFlexible: { type: Boolean },\n dates: {},\n availabilityMode: { type: Boolean },\n accommodationId: {},\n hasError: { type: Boolean }\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst { getQueryParamValue } = useUrl();\r\nconst { getCalendar } = useOneBasketCalendar();\r\nconst store = useSearchStore();\r\n\r\nconst range = computed({\r\n get() {\r\n return {\r\n start: store.checkinDate as Date,\r\n end: store.checkoutDate as Date,\r\n };\r\n },\r\n set(value: { start?: Date; end?: Date }) {\r\n store.setCheckin(value?.start);\r\n store.setCheckout(value?.end);\r\n },\r\n});\r\n\r\nconst activeCalendar = ref(store.flexible ? 2 : 1);\r\nconst activeStayOption = ref(1);\r\n\r\nconst availableDates = ref(props.dates ?? []);\r\nconst disabledDates = computed(() => {\r\n if (activeStayOption.value === 2 && activeCalendar.value === 2) {\r\n return { weekdays: [2, 3, 4] };\r\n }\r\n\r\n return null;\r\n});\r\n\r\nwatch(activeStayOption, (currentValue: number) => {\r\n if (currentValue === 1 || currentValue === 2) {\r\n range.value = { start: undefined, end: undefined };\r\n }\r\n});\r\n\r\nconst dragging = ref();\r\nconst noDatesFound = ref(false);\r\n\r\nconst attrs = computed(() => {\r\n if (dragging.value) {\r\n return [\r\n {\r\n key: \"test\",\r\n highlight: {\r\n color: \"purple\",\r\n contentClass: \"not-available\",\r\n },\r\n dates: [{ start: null, end: new Date(dragging.value.start.setDate(dragging.value.start.getDate() - 1)) }],\r\n order: 100,\r\n },\r\n {\r\n highlight: {\r\n color: \"purple\",\r\n contentClass: \"is-available\",\r\n },\r\n dates: availableDates.value,\r\n },\r\n ];\r\n }\r\n return null;\r\n});\r\n\r\nonMounted(() => {\r\n const checkin = getQueryParamValue(\"dg_ci\");\r\n const checkout = getQueryParamValue(\"dg_co\");\r\n\r\n if (checkin && Date.parse(checkin) > Date.now()) {\r\n const checkinDate = new Date(checkin);\r\n store.setCheckin(checkinDate);\r\n }\r\n if (checkout && Date.parse(checkout) > Date.now()) {\r\n store.setCheckout(new Date(checkout));\r\n }\r\n});\r\n\r\nconst showStayOptions = computed(() => {\r\n return activeCalendar.value === 2;\r\n});\r\n\r\nconst lastDate = ref();\r\n\r\nconst isDraging = (event: DateRange) => {\r\n if (props.availabilityMode && event.start.toLocaleDateString() !== lastDate.value?.toLocaleDateString() && noDatesFound.value === false) {\r\n dragging.value = event;\r\n lastDate.value = new Date(event.start);\r\n }\r\n};\r\n\r\nconst search = async (date: Date) => {\r\n if (props.availabilityMode && props.accommodationId) {\r\n availableDates.value = undefined;\r\n const availableCheckin = await getCalendar(props.accommodationId, date);\r\n if (availableCheckin && availableCheckin.length) {\r\n availableDates.value = availableCheckin.map((ac) => new Date(ac));\r\n } else {\r\n noDatesFound.value = true;\r\n dragging.value = undefined;\r\n }\r\n }\r\n};\r\n\r\nconst handleInput = async (value: { date: string }) => {\r\n const date = new Date(value.date);\r\n if (date.toLocaleDateString() === lastDate.value?.toLocaleDateString()) {\r\n search(date);\r\n }\r\n};\r\n\r\nwatch(activeCalendar, (currentValue: number) => {\r\n store.setFlexible(currentValue === 2);\r\n});\r\n\r\nconst handleFocusOut = () => {\r\n dragging.value = undefined;\r\n noDatesFound.value = false;\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_unref(DatePicker), {\n modelValue: range.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((range).value = $event)),\n locale: \"sv\",\n class: _normalizeClass([\"options-calendar\", { diss: !!attrs.value, flexible: showStayOptions.value, allowFlexible: _ctx.allowFlexible }]),\n color: \"blue\",\n columns: _ctx.$screens({ default: 1, lg: 2 }),\n \"is-range\": \"\",\n step: 1,\n popover: {\r\n visibility: 'click',\r\n },\n \"first-day-of-week\": 2,\n \"update-on-input\": false,\n \"show-iso-weeknumbers\": \"\",\n attributes: attrs.value,\n onDayfocusout: handleFocusOut,\n onDrag: isDraging,\n onDayclick: handleInput,\n \"disabled-dates\": disabledDates.value,\n \"available-dates\": _ctx.dates,\n \"min-date\": new Date(),\n \"select-attribute\": _unref(rangeHighlights),\n \"drag-attribute\": _unref(rangeHighlights)\n }, _createSlots({\n default: _withCtx(({ inputValue, inputEvents }) => [\n _createElementVNode(\"label\", null, _toDisplayString(_ctx.$t(`onebasket.accommodation.search.dates`)), 1),\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(BaseInput, _mergeProps({\n hasError: _ctx.hasError,\n modelValue: inputValue.start,\n \"onUpdate:modelValue\": ($event: any) => ((inputValue.start) = $event)\n }, _toHandlers(inputEvents.start), {\n label: _ctx.$t('onebasket.accommodation.search.checkin')\n }), null, 16, [\"hasError\", \"modelValue\", \"onUpdate:modelValue\", \"label\"]),\n _createVNode(BaseInput, _mergeProps({\n hasError: _ctx.hasError,\n label: _ctx.$t('onebasket.accommodation.search.checkout'),\n modelValue: inputValue.end,\n \"onUpdate:modelValue\": ($event: any) => ((inputValue.end) = $event)\n }, _toHandlers(inputEvents.end)), null, 16, [\"hasError\", \"label\", \"modelValue\", \"onUpdate:modelValue\"])\n ])\n ])\n ]),\n _: 2\n }, [\n (_ctx.allowFlexible)\n ? {\n name: \"footer\",\n fn: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(calendarOptions), (option) => {\n return (_openBlock(), _createBlock(BaseButton, {\n key: option.id,\n class: _normalizeClass(activeCalendar.value === option.id ? 'btn--primary' : 'btn--transparent'),\n onClick: ($event: any) => (activeCalendar.value = option.id)\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(option.name), 1)\n ]),\n _: 2\n }, 1032, [\"class\", \"onClick\"]))\n }), 128))\n ])\n ]),\n (showStayOptions.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", _hoisted_7, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(stayOptions), (option) => {\n return (_openBlock(), _createBlock(BaseButton, {\n key: option.id,\n class: _normalizeClass(activeStayOption.value === option.id ? 'btn--primary' : 'btn--transparent'),\n onClick: ($event: any) => (activeStayOption.value = option.id)\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(option.name), 1)\n ]),\n _: 2\n }, 1032, [\"class\", \"onClick\"]))\n }), 128))\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n key: \"0\"\n }\n : undefined\n ]), 1032, [\"modelValue\", \"columns\", \"attributes\", \"class\", \"disabled-dates\", \"available-dates\", \"min-date\", \"select-attribute\", \"drag-attribute\"]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n","import script from \"./AccommodationDates.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./AccommodationDates.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./AccommodationDates.vue?vue&type=style&index=0&id=3f09c7ce&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, withCtx as _withCtx, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, createBlock as _createBlock, createTextVNode as _createTextVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-72b1fec4\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { key: 0 }\nconst _hoisted_2 = { class: \"guest-select\" }\n\nimport GuestSelectRow from \"@/components/accommodation/GuestSelectRow.vue\";\r\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport Dropdown from \"@/components/Dropdown.vue\";\r\nimport { useUrl } from \"@/composables/useUrl\";\r\nimport { useSearchStore } from \"@/store/onebasket-search\";\r\nimport { computed } from \"vue\";\r\n\r\ninterface Props {\r\n isWide?: boolean;\r\n hideMultipleRooms?: boolean;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AccommodationRoomsDropdown',\n props: {\n isWide: { type: Boolean },\n hideMultipleRooms: { type: Boolean }\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst store = useSearchStore();\r\nconst { getQueryParamValue } = useUrl();\r\n\r\nconst allowMultipleRooms = computed(() => {\r\n return store.multipleRoomsAllowed && !props.hideMultipleRooms;\r\n});\r\n\r\nconst rooms = computed(() => {\r\n return store.rooms;\r\n});\r\nconst roomsCount = computed(() => {\r\n return store.roomsCount;\r\n});\r\n\r\nconst guestCount = computed(() => {\r\n return store.guestCount;\r\n});\r\n\r\nconst addRoom = () => {\r\n store.addRoom();\r\n};\r\n\r\nconst handleRemove = (id: string) => {\r\n store.removeRoom(id);\r\n};\r\n\r\nconst adultsParam = getQueryParamValue(\"dg_a\");\r\nconst childrenParam = getQueryParamValue(\"dg_c\");\r\nif (adultsParam || childrenParam) {\r\n store.clearRooms();\r\n const ages = childrenParam\r\n ? childrenParam\r\n .split(\"c\")\r\n .filter((c) => !!c && !isNaN(+c) && +c < 18)\r\n .map((c) => +c)\r\n : ([] as number[]);\r\n const adults = adultsParam && !isNaN(+adultsParam) ? +adultsParam : 1;\r\n store.addRoom(adults, ages);\r\n} else if (roomsCount.value === 0) {\r\n addRoom();\r\n}\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(Dropdown, null, {\n trigger: _withCtx(({ toggle, isOpen }) => [\n _createElementVNode(\"label\", null, _toDisplayString(_ctx.$t(\"onebasket.accommodation.search.personsAndRooms\")), 1),\n _createVNode(BaseButton, {\n type: \"button\",\n class: _normalizeClass([\"btn--input\", { isOpen: isOpen }]),\n onClick: toggle,\n icon: \"chevron/chevron-down\"\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"span\", null, [\n (allowMultipleRooms.value)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_1, _toDisplayString(roomsCount.value) + \" \" + _toDisplayString(_ctx.$t(\"onebasket.accommodation.search.rooms.room\")) + \",  \", 1))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"span\", null, _toDisplayString(guestCount.value) + \" \" + _toDisplayString(_ctx.$t(\"onebasket.accommodation.search.rooms.guests\")), 1)\n ])\n ]),\n _: 2\n }, 1032, [\"class\", \"onClick\"])\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(rooms.value, (room, id, index) => {\n return (_openBlock(), _createBlock(GuestSelectRow, {\n key: id,\n id: id,\n index: index + 1,\n deletable: roomsCount.value > 1,\n room: rooms.value[id],\n \"onUpdate:room\": ($event: any) => ((rooms.value[id]) = $event),\n onOnRemove: handleRemove,\n allowMultipleRooms: allowMultipleRooms.value\n }, null, 8, [\"id\", \"index\", \"deletable\", \"room\", \"onUpdate:room\", \"allowMultipleRooms\"]))\n }), 128)),\n (allowMultipleRooms.value)\n ? (_openBlock(), _createBlock(BaseButton, {\n key: 0,\n class: \"btn--transparent\",\n type: \"button\",\n onClick: addRoom\n }, {\n default: _withCtx(() => [\n _createTextVNode(\" + \" + _toDisplayString(_ctx.$t(\"onebasket.accommodation.search.rooms.add\")), 1)\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _: 1\n }))\n}\n}\n\n})","\r\n\r\n\r\n\r\n","import script from \"./AccommodationRoomsDropdown.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./AccommodationRoomsDropdown.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./AccommodationRoomsDropdown.vue?vue&type=style&index=0&id=72b1fec4&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-72b1fec4\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, createElementVNode as _createElementVNode, unref as _unref, toDisplayString as _toDisplayString, withCtx as _withCtx, renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-1714bcde\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"accommodation-search\" }\nconst _hoisted_2 = { class: \"dates\" }\nconst _hoisted_3 = { class: \"rooms\" }\nconst _hoisted_4 = { class: \"search\" }\nconst _hoisted_5 = { key: 0 }\n\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport useAccommodationAvailability from \"@/composables/onebasket/useAccommodationAvailability\";\r\nimport AccommodationDates from \"./AccommodationDates.vue\";\r\nimport AccommodationRoomsDropdown from \"./AccommodationRoomsDropdown.vue\";\r\n\r\ninterface Props {\r\n accommodationId: string;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AvailabilitySearch',\n props: {\n accommodationId: {}\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst { isLoading, enabled, getRoomsAvailability } = useAccommodationAvailability(props.accommodationId);\r\n\r\nconst onSearchClicked = () => {\r\n getRoomsAvailability();\r\n};\r\n\r\nif (enabled.value) {\r\n getRoomsAvailability();\r\n}\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(AccommodationDates, {\n availabilityMode: true,\n accommodationId: _ctx.accommodationId\n }, null, 8, [\"accommodationId\"])\n ]),\n _createElementVNode(\"div\", _hoisted_3, [\n _createVNode(AccommodationRoomsDropdown)\n ]),\n _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(BaseButton, {\n class: \"btn--fixed-width\",\n disabled: _unref(isLoading),\n loading: _unref(isLoading),\n onClick: onSearchClicked\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t(\"onebasket.accommodation.search.search\")), 1)\n ]),\n _: 1\n }, 8, [\"disabled\", \"loading\"])\n ]),\n (_ctx.$slots.default)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _renderSlot(_ctx.$slots, \"default\")\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n","import script from \"./AvailabilitySearch.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./AvailabilitySearch.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./AvailabilitySearch.vue?vue&type=style&index=0&id=1714bcde&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-1714bcde\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-5ce50962\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"addon\" }\nconst _hoisted_2 = { class: \"addon-info\" }\nconst _hoisted_3 = {\n key: 0,\n class: \"addon-description\"\n}\n\nimport BaseQuantity from \"@/components/base/BaseQuantity.vue\";\r\nimport { BookableAddon } from \"@/models/onebasket/BookableAddon\";\r\nimport { ref, watchEffect } from \"vue\";\r\n\r\ninterface Props {\r\n addon: BookableAddon;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BookableAddon',\n props: {\n addon: {}\n },\n emits: [\"input\"],\n setup(__props: any, { emit: __emit }) {\n\r\nconst props = __props;\r\nconst emit = __emit;\r\n\r\nconst value = ref(0);\r\n\r\nwatchEffect(() => {\r\n emit(\"input\", {\r\n ...props.addon,\r\n price: props.addon.price * value.value,\r\n\t\tvalue: value.value,\r\n } as BookableAddon);\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"label\", null, _toDisplayString(_ctx.addon.name), 1),\n _createElementVNode(\"p\", null, _toDisplayString(_ctx.addon.price) + \":- /styck\", 1)\n ]),\n _createElementVNode(\"div\", null, [\n _createVNode(BaseQuantity, {\n id: _ctx.addon.identifier,\n name: 'addon',\n minValue: 0,\n maxValue: _ctx.addon.maxAmount,\n modelValue: value.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((value).value = $event))\n }, null, 8, [\"id\", \"maxValue\", \"modelValue\"])\n ])\n ]),\n (_ctx.addon.description)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n _createElementVNode(\"p\", null, _toDisplayString(_ctx.addon.description), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./BookableAddon.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./BookableAddon.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./BookableAddon.vue?vue&type=style&index=0&id=5ce50962&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-5ce50962\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createVNode as _createVNode, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-c6190576\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"insurance\"\n}\nconst _hoisted_2 = { class: \"checkbox\" }\nconst _hoisted_3 = [\"value\"]\nconst _hoisted_4 = [\"innerHTML\"]\n\nimport { ref } from \"vue\";\r\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport BaseTransitionExpand from \"@/components/base/BaseTransitionExpand.vue\";\r\nimport { GalaxyBasketCancellationInsurance } from \"@/models/onebasket/GalaxyBasket\";\r\nimport SvgIcon from \"../base/SvgIcon.vue\";\r\n\r\ninterface Props {\r\n insurance: GalaxyBasketCancellationInsurance;\r\n}\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'CancellationInsurance',\n props: {\n insurance: {}\n },\n emits: [\"onChange\"],\n setup(__props: any, { emit: __emit }) {\n\r\nconst props = __props;\r\nconst emit = __emit;\r\nconst showIntroduction = ref(false);\r\n\r\nconst toggleIntroduction = () => {\r\n showIntroduction.value = !showIntroduction.value;\r\n};\r\n\r\nconst handleChange = (e: Event) => {\r\n if (!props.insurance) return;\r\n\r\n const target = e.target as HTMLInputElement;\r\n emit(\"onChange\", {\r\n\t\t...props.insurance,\r\n\t\tselected: target.checked\r\n });\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_ctx.insurance)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"label\", _hoisted_2, [\n _createElementVNode(\"input\", {\n type: \"checkbox\",\n name: \"\",\n value: _ctx.insurance.selected,\n onChange: handleChange\n }, null, 40, _hoisted_3),\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.insurance.name) + \" + \" + _toDisplayString(_ctx.insurance.currentCost) + \" \" + _toDisplayString(_ctx.insurance.currency), 1),\n _createVNode(BaseButton, {\n class: \"btn--icon\",\n onClick: toggleIntroduction\n }, {\n default: _withCtx(() => [\n _createVNode(SvgIcon, { icon: \"alert/info\" })\n ]),\n _: 1\n })\n ]),\n _createVNode(BaseTransitionExpand, { expanded: showIntroduction.value }, {\n default: _withCtx(() => [\n _createElementVNode(\"p\", {\n class: \"insurance__introduction\",\n innerHTML: _ctx.insurance.introduction\n }, null, 8, _hoisted_4)\n ]),\n _: 1\n }, 8, [\"expanded\"])\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./CancellationInsurance.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./CancellationInsurance.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./CancellationInsurance.vue?vue&type=style&index=0&id=c6190576&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-c6190576\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-2d9322f4\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"row\" }\nconst _hoisted_2 = { class: \"basket\" }\nconst _hoisted_3 = { class: \"ferry\" }\nconst _hoisted_4 = { class: \"booking-summary__route-departure\" }\nconst _hoisted_5 = { class: \"route-title\" }\nconst _hoisted_6 = { key: 0 }\nconst _hoisted_7 = { class: \"product\" }\nconst _hoisted_8 = { class: \"column\" }\nconst _hoisted_9 = { class: \"column price\" }\nconst _hoisted_10 = { key: 0 }\nconst _hoisted_11 = { class: \"column\" }\nconst _hoisted_12 = { class: \"column price\" }\nconst _hoisted_13 = { class: \"column\" }\nconst _hoisted_14 = { class: \"column price\" }\nconst _hoisted_15 = { class: \"booking-summary__total\" }\nconst _hoisted_16 = { class: \"column\" }\nconst _hoisted_17 = { class: \"column price\" }\nconst _hoisted_18 = {\n key: 0,\n class: \"bookable-addons\"\n}\nconst _hoisted_19 = { key: 0 }\nconst _hoisted_20 = {\n key: 1,\n class: \"terms-box\"\n}\nconst _hoisted_21 = [\"innerHTML\"]\nconst _hoisted_22 = { class: \"book-information\" }\n\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport BaseLightbox from \"@/components/base/BaseLightbox.vue\";\r\nimport BasketGroup from \"@/components/basket/BasketGroup.vue\";\r\nimport BookableAddonItem from \"@/components/onebasket/addon/BookableAddon.vue\";\r\nimport CancellationInsurance from \"@/components/onebasket/CancellationInsurance.vue\";\r\nimport useAccommodation from \"@/composables/onebasket/useAccommodationBook\";\r\nimport { formatPrice } from \"@/helpers/priceHelpers\";\r\nimport { BasketSection } from \"@/models/front/basket/BasketGroup\";\r\nimport { AddonRequest } from \"@/models/onebasket/AddonRequest\";\r\nimport { BookableAddon } from \"@/models/onebasket/BookableAddon\";\r\nimport { GalaxyBasket, GalaxyBasketCancellationInsurance } from \"@/models/onebasket/GalaxyBasket\";\r\nimport { basketKey } from \"@/models/Symbols/basket\";\r\nimport { useEventBus } from \"@vueuse/core\";\r\nimport { computed, ref } from \"vue\";\r\n\r\nconst currency = \"SEK\"; // we only use this one atm for accommodation\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BookLightbox',\n emits: [\"booked\"],\n setup(__props, { emit: __emit }) {\n\r\nconst emit = __emit;\r\n\r\nconst { complete } = useAccommodation();\r\nconst eventBus = useEventBus(basketKey);\r\nconst show = ref(false);\r\nconst accommodationName = ref(\"\");\r\n\r\nconst addons = ref>({});\r\nconst insurances = ref>({});\r\nconst bookableAddons = ref();\r\nconst basket = ref();\r\nconst ferrySections = ref();\r\nconst loadingBook = ref(false);\r\nconst basketPrice = ref(0);\r\nconst specialTerms = ref();\r\n\r\neventBus.on((e) => {\r\n show.value = true;\r\n bookableAddons.value = e.addons;\r\n basket.value = e.basket;\r\n ferrySections.value = e.ferrySections;\r\n basketPrice.value = e.basketPrice;\r\n specialTerms.value = e.specialTerms;\r\n accommodationName.value = e.basket.items[0].name;\r\n});\r\n\r\nconst selectedAddons = computed(() => {\r\n if (Object.values(addons.value).length) {\r\n return Object.values(addons.value)\r\n .filter((x) => (x.value ?? 0) > 0)\r\n .map((x) => {\r\n return { name: x.name, amount: x.value, price: x.price };\r\n });\r\n }\r\n\r\n return [];\r\n});\r\n\r\nconst selectedInsurances = computed(() => {\r\n if (Object.values(insurances.value).length) {\r\n return Object.values(insurances.value)\r\n .filter((x) => x.selected)\r\n .map((x) => {\r\n return { name: x.name, price: x.currentCost };\r\n });\r\n }\r\n\r\n return [];\r\n});\r\n\r\nconst totalPrice = computed(() => {\r\n const addonsPrice = selectedAddons.value.length ? selectedAddons.value.reduce((res, addon) => res + addon.price, 0) : 0;\r\n const insurancesPrice = selectedInsurances.value.length ? selectedInsurances.value.reduce((res, addon) => res + addon.price, 0) : 0;\r\n\r\n return basketPrice.value + addonsPrice + insurancesPrice;\r\n});\r\n\r\nconst handleBook = () => {\r\n loadingBook.value = true;\r\n\r\n const selectedAddons = Object.entries(addons.value)\r\n .filter((x) => (x[1].value ?? 0) > 0)\r\n .map((x) => {\r\n return { identifier: x[0], amount: x[1].value } as AddonRequest;\r\n });\r\n\r\n const selectedInsurances = Object.entries(insurances.value)\r\n .filter((x) => x[1].selected)\r\n .map((x) => {\r\n return +x[0];\r\n });\r\n\r\n complete(selectedAddons, selectedInsurances)\r\n .then(() => {\r\n emit(\"booked\");\r\n })\r\n .catch(() => {\r\n // snackbar will be displayed\r\n })\r\n .finally(() => {\r\n loadingBook.value = false;\r\n });\r\n};\r\n\r\nconst handleCancel = () => {\r\n show.value = false;\r\n bookableAddons.value = [];\r\n basket.value = undefined;\r\n ferrySections.value = [];\r\n basketPrice.value = 0;\r\n specialTerms.value = [];\r\n};\r\n\r\nconst handleAddon = (addon: BookableAddon) => {\r\n addons.value[addon.identifier] = addon;\r\n};\r\n\r\nconst handleInsurance = (insurance: GalaxyBasketCancellationInsurance) => {\r\n insurances.value[insurance.id] = insurance;\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseLightbox, {\n modelValue: show.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((show).value = $event)),\n closable: false,\n title: _ctx.$t('bookingSummary.title')\n }, {\n footer: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_22, [\n _createVNode(BaseButton, {\n onClick: handleCancel,\n disabled: loadingBook.value,\n class: \"btn--secondary\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"onebasket.misc.cancel\")), 1)\n ]),\n _: 1\n }, 8, [\"disabled\"]),\n _createVNode(BaseButton, {\n onClick: handleBook,\n loading: loadingBook.value,\n class: \"btn--primary\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"onebasket.misc.completeBooking\")), 1)\n ]),\n _: 1\n }, 8, [\"loading\"])\n ])\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n (ferrySections.value)\n ? (_openBlock(true), _createElementBlock(_Fragment, { key: 0 }, _renderList(ferrySections.value, (section) => {\n return (_openBlock(), _createBlock(BasketGroup, {\n key: section.route,\n section: section\n }, null, 8, [\"section\"]))\n }), 128))\n : _createCommentVNode(\"\", true),\n (basket.value)\n ? (_openBlock(true), _createElementBlock(_Fragment, { key: 1 }, _renderList(basket.value.items, (item) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"booking-summary__route\",\n key: item.id\n }, [\n _createElementVNode(\"ul\", _hoisted_4, [\n _createElementVNode(\"li\", _hoisted_5, [\n _createElementVNode(\"strong\", null, _toDisplayString(item.name), 1)\n ])\n ]),\n (item && item.products)\n ? (_openBlock(), _createElementBlock(\"ul\", _hoisted_6, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(item.products, (product) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n key: product.bookItemId,\n class: \"accommodation-product\"\n }, [\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"span\", null, _toDisplayString(product.amount) + \"x \" + _toDisplayString(product.name), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"span\", null, _toDisplayString(_unref(formatPrice)(product.price, currency)), 1)\n ])\n ]),\n (product.addons)\n ? (_openBlock(), _createElementBlock(\"ul\", _hoisted_10, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(product.addons, (addon) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n class: \"product-addon\",\n key: addon.id\n }, [\n _createElementVNode(\"span\", null, _toDisplayString(addon.amount) + \"x \" + _toDisplayString(addon.name), 1)\n ]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"ul\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(selectedAddons.value, (addon) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n key: addon.name\n }, [\n _createElementVNode(\"div\", _hoisted_11, [\n _createElementVNode(\"span\", null, _toDisplayString(addon.amount) + \"x \" + _toDisplayString(addon.name), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_12, [\n _createElementVNode(\"span\", null, _toDisplayString(_unref(formatPrice)(addon.price, currency)), 1)\n ])\n ]))\n }), 128)),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(selectedInsurances.value, (insurance, index) => {\n return (_openBlock(), _createElementBlock(\"li\", { key: index }, [\n _createElementVNode(\"div\", _hoisted_13, [\n _createElementVNode(\"span\", null, \"1x \" + _toDisplayString(insurance.name), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_14, [\n _createElementVNode(\"span\", null, _toDisplayString(_unref(formatPrice)(insurance.price, currency)), 1)\n ])\n ]))\n }), 128))\n ])\n ]))\n }), 128))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"ul\", _hoisted_15, [\n _createElementVNode(\"li\", null, [\n _createElementVNode(\"div\", _hoisted_16, [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t(\"bookingSummary.total\")), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_17, [\n _createElementVNode(\"span\", null, _toDisplayString(_unref(formatPrice)(totalPrice.value, currency)), 1)\n ])\n ])\n ])\n ])\n ]),\n (bookableAddons.value && bookableAddons.value.length)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_18, [\n _createElementVNode(\"h4\", null, \"Tillägg \" + _toDisplayString(accommodationName.value), 1),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(bookableAddons.value, (addon) => {\n return (_openBlock(), _createBlock(BookableAddonItem, {\n key: addon.identifier,\n addon: addon,\n onInput: handleAddon\n }, null, 8, [\"addon\"]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n (basket.value?.cancellationInsurances)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_19, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(basket.value.cancellationInsurances, (insurance) => {\n return (_openBlock(), _createBlock(CancellationInsurance, {\n key: insurance.id,\n insurance: insurance,\n onOnChange: handleInsurance\n }, null, 8, [\"insurance\"]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true),\n (specialTerms.value && specialTerms.value.length)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_20, [\n _createElementVNode(\"h3\", null, _toDisplayString(_ctx.$t(\"onebasket.terms.selectedTerms\")) + \" \" + _toDisplayString(accommodationName.value), 1),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(specialTerms.value, (terms, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: index,\n innerHTML: terms\n }, null, 8, _hoisted_21))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"modelValue\", \"title\"]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./BookLightbox.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./BookLightbox.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./BookLightbox.vue?vue&type=style&index=0&id=2d9322f4&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-2d9322f4\"]])\n\nexport default __exports__","import { EventBusKey } from \"@vueuse/core\";\r\nimport { Room } from \"../onebasket/accommodation\";\r\n\r\nexport const productKey: EventBusKey = Symbol();\r\n\r\ninterface ProductInfo {\r\n title: string;\r\n subtitle: string;\r\n\r\n rooms: Room[];\r\n price: number;\r\n}\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createElementVNode as _createElementVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, createVNode as _createVNode, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-35aacb2c\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"carousel\"\n}\nconst _hoisted_2 = [\"src\"]\nconst _hoisted_3 = { class: \"information\" }\nconst _hoisted_4 = { key: 0 }\nconst _hoisted_5 = { key: 1 }\nconst _hoisted_6 = {\n key: 0,\n class: \"breakfast\"\n}\n\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport BaseLightbox from \"@/components/base/BaseLightbox.vue\";\r\nimport { productKey } from \"@/models/Symbols/product-info\";\r\nimport { Room } from \"@/models/onebasket/accommodation\";\r\nimport { useEventBus } from \"@vueuse/core\";\r\nimport { A11y, Navigation, Pagination, Virtual } from \"swiper/modules\";\r\nimport \"swiper/css/bundle\";\r\nimport { Swiper, SwiperSlide } from \"swiper/vue\";\r\nimport { ref } from \"vue\";\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'InformationLightbox',\n setup(__props) {\n\r\nconst swiperModules = [Navigation, A11y, Virtual, Pagination];\r\n\r\nconst show = ref(false);\r\nconst eventBus = useEventBus(productKey);\r\n\r\nconst title = ref(\"\");\r\nconst subtitle = ref(\"\");\r\nconst rooms = ref([]);\r\nconst price = ref(0);\r\n\r\neventBus.on((e) => {\r\n title.value = e.title;\r\n subtitle.value = e.subtitle;\r\n rooms.value = e.rooms;\r\n show.value = true;\r\n price.value = e.price;\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseLightbox, {\n modelValue: show.value,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((show).value = $event)),\n title: title.value,\n subtitle: subtitle.value,\n align: \"left\",\n headerLevel: \"h3\"\n }, {\n footer: _withCtx(() => [\n _createVNode(BaseButton, {\n class: \"btn--fixed-width\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (show.value = false))\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(`button.close`)), 1)\n ]),\n _: 1\n })\n ]),\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(rooms.value, (room) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"room\",\n key: room.id\n }, [\n (room.images.length)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_unref(Swiper), {\n centeredSlides: true,\n loop: true,\n pagination: { clickable: true },\n navigation: true,\n modules: swiperModules\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(room.images, (image) => {\n return (_openBlock(), _createBlock(_unref(SwiperSlide), {\n key: image.source\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"figure\", null, [\n _createElementVNode(\"img\", {\n src: image.source,\n loading: \"lazy\"\n }, null, 8, _hoisted_2)\n ])\n ]),\n _: 2\n }, 1024))\n }), 128))\n ]),\n _: 2\n }, 1024)\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_3, [\n (room.name)\n ? (_openBlock(), _createElementBlock(\"h4\", _hoisted_4, _toDisplayString(room.name), 1))\n : _createCommentVNode(\"\", true),\n (room.includedBreakfasts)\n ? (_openBlock(), _createElementBlock(\"ul\", _hoisted_5, [\n (room.includedBreakfasts)\n ? (_openBlock(), _createElementBlock(\"li\", _hoisted_6, \"Frukost för \" + _toDisplayString(room.includedBreakfasts) + \" personer.\", 1))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"p\", null, _toDisplayString(room.description), 1)\n ])\n ]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"modelValue\", \"title\", \"subtitle\"]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./InformationLightbox.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./InformationLightbox.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./InformationLightbox.vue?vue&type=style&index=0&id=35aacb2c&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-35aacb2c\"]])\n\nexport default __exports__","export const getAccommodationTagIcon = (value: number): string => {\r\n switch (value) {\r\n case 100593:\r\n return \"accommodation/accessibility\";\r\n case 100037:\r\n return \"booking/pet\";\r\n case 100048:\r\n return \"accommodation/wifi\";\r\n case 100831:\r\n return \"accommodation/beach-access\";\r\n case 100040:\r\n return \"accommodation/swim\";\r\n case 100599:\r\n return \"accommodation/service-desk\";\r\n }\r\n\r\n return \"\";\r\n};\r\n","import { getAccommodationTagIcon } from \"@/helpers/iconHelper\";\r\nimport { AccommodationDetailsResponse } from \"../onebasket/accommodation\";\r\n\r\nexport type Image = {\r\n source: string;\r\n isMain: boolean;\r\n};\r\n\r\nexport type AccommodationTag = {\r\n id: number;\r\n icon: string;\r\n};\r\n\r\ntype AccommodationDetails = {\r\n id: string;\r\n images: Image[];\r\n name: string;\r\n category: number;\r\n description: string;\r\n tags: AccommodationTag[];\r\n};\r\n\r\nexport const mapFromAccommodationDetailsResponse = (resp: AccommodationDetailsResponse): AccommodationDetails => {\r\n return {\r\n ...resp,\r\n tags: resp.tags.map((t) => ({\r\n icon: getAccommodationTagIcon(t),\r\n id: t,\r\n })),\r\n };\r\n};\r\n","import { mapFromAccommodationDetailsResponse } from \"@/models/accommodation/AccommodationDetails\";\r\nimport { AccommodationDetailsResponse } from \"@/models/onebasket/accommodation\";\r\nimport { useQuery } from \"vue-query\";\r\nimport useApi from \"../useApi\";\r\n\r\nconst useAccommodationDetailsQuery = (id: string) => {\r\n const { get } = useApi();\r\n\r\n const fetcher = () => {\r\n return get(`ob/accommodation/${id}`, \"\").then((resp) => mapFromAccommodationDetailsResponse(resp.data));\r\n };\r\n\r\n return {\r\n ...useQuery([\"accommodationDetails\", id], fetcher, {\r\n refetchOnWindowFocus: false,\r\n staleTime: 60 * 1000 * 10,\r\n }),\r\n };\r\n};\r\n\r\nexport default useAccommodationDetailsQuery;\r\n","import { useAccommodationStore } from \"@/store/accommodation\";\r\nimport { computed } from \"vue\";\r\nimport { useQuery } from \"vue-query\";\r\nimport useApi from \"../useApi\";\r\n\r\nconst useAccommodationTermsQuery = () => {\r\n const { get } = useApi({ useBaseUrl: false }); // Fetch from Epi\r\n const accommodationStore = useAccommodationStore();\r\n const category = computed(() => accommodationStore.category);\r\n\r\n const fetcher = () => {\r\n return get(`/GetAccommodationTerms/${category.value}`, \"\").then((resp) => resp.data);\r\n };\r\n\r\n return {\r\n ...useQuery([\"terms\", category], fetcher, {\r\n refetchOnWindowFocus: false,\r\n retry: 0,\r\n }),\r\n };\r\n};\r\n\r\nexport default useAccommodationTermsQuery;\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, unref as _unref, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, renderList as _renderList, Fragment as _Fragment, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-51919f82\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"accommodation-details\" }\nconst _hoisted_2 = {\n key: 0,\n class: \"accommodation-loading\"\n}\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"gallery\" }, null, -1))\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"title\" }, null, -1))\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"content\" }, [\n /*#__PURE__*/_createElementVNode(\"p\"),\n /*#__PURE__*/_createElementVNode(\"p\"),\n /*#__PURE__*/_createElementVNode(\"p\"),\n /*#__PURE__*/_createElementVNode(\"p\")\n], -1))\nconst _hoisted_6 = [\n _hoisted_3,\n _hoisted_4,\n _hoisted_5\n]\nconst _hoisted_7 = {\n key: 0,\n class: \"gallery\"\n}\nconst _hoisted_8 = {\n key: 0,\n class: \"category\"\n}\nconst _hoisted_9 = { class: \"images\" }\nconst _hoisted_10 = [\"src\"]\nconst _hoisted_11 = { class: \"images__secondary\" }\nconst _hoisted_12 = [\"src\"]\nconst _hoisted_13 = { class: \"content\" }\nconst _hoisted_14 = { key: 0 }\nconst _hoisted_15 = {\n key: 1,\n class: \"tags\"\n}\nconst _hoisted_16 = { class: \"description\" }\nconst _hoisted_17 = { key: 0 }\nconst _hoisted_18 = {\n key: 0,\n class: \"search-result\"\n}\nconst _hoisted_19 = {\n key: 0,\n class: \"terms-box\"\n}\nconst _hoisted_20 = [\"innerHTML\"]\nconst _hoisted_21 = [\"innerHTML\"]\n\nimport BaseAlert from \"@/components/base/BaseAlert.vue\";\r\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport BaseLightbox from \"@/components/base/BaseLightbox.vue\";\r\nimport BasePanel from \"@/components/base/BasePanel.vue\";\r\nimport SvgIcon from \"@/components/base/SvgIcon.vue\";\r\nimport AccommodationPlacementProduct from \"@/components/onebasket/AccommodationPlacementProduct.vue\";\r\nimport AvailabilitySearch from \"@/components/onebasket/accommodation-search/AvailabilitySearch.vue\";\r\nimport BookLightbox from \"@/components/onebasket/lightbox/BookLightbox.vue\";\r\nimport InformationLightbox from \"@/components/onebasket/lightbox/InformationLightbox.vue\";\r\nimport useAccommodationAvailability from \"@/composables/onebasket/useAccommodationAvailability\";\r\nimport useAccommodationDetailsQuery from \"@/composables/queries/useAccommodationDetailsQuery\";\r\nimport useAccommodationTermsQuery from \"@/composables/queries/useAccommodationTermsQuery\";\r\nimport { ref } from \"vue\";\r\n\r\ninterface Props {\r\n id: string;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AccommodationDetails',\n props: {\n id: {}\n },\n emits: [\"booked\"],\n setup(__props: any, { emit: __emit }) {\n\r\nconst props = __props;\r\n\r\nconst emit = __emit;\r\n\r\nconst { data, isLoading, error } = useAccommodationDetailsQuery(props.id);\r\nconst { data: bookableRooms, isLoading: isLoadingAvailability } = useAccommodationAvailability(props.id);\r\nconst { data: terms } = useAccommodationTermsQuery();\r\n\r\nconst specialTerms = ref([]); // special terms from rooms\r\nconst showTerms = ref(false);\r\n\r\nconst handleTerms = async (roomsSpecialTerms: string[]) => {\r\n specialTerms.value = roomsSpecialTerms;\r\n showTerms.value = true;\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(BasePanel, null, {\n default: _withCtx(() => [\n _createVNode(BaseButton, {\n onClick: _cache[0] || (_cache[0] = ($event: any) => (_ctx.$router.back())),\n class: \"btn--link\",\n icon: \"arrow-left\",\n iconPosition: \"left\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"button.back\")), 1)\n ]),\n _: 1\n }),\n (_unref(isLoading))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, _hoisted_6))\n : (_unref(data))\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [\n (_unref(data)?.images?.length)\n ? (_openBlock(), _createElementBlock(\"section\", _hoisted_7, [\n (_unref(data)?.category > 0)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_8, [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t(`onebasket.accommodation.types.${_unref(data).category}`)), 1)\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"figure\", {\n class: _normalizeClass([\"images__main\", { single: _unref(data).images.length < 2 }])\n }, [\n _createElementVNode(\"img\", {\n src: _unref(data).images[0].source,\n alt: \"\"\n }, null, 8, _hoisted_10)\n ], 2),\n _createElementVNode(\"div\", _hoisted_11, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(data).images.slice(1, 5), (image) => {\n return (_openBlock(), _createElementBlock(\"figure\", {\n class: \"small\",\n key: image.source\n }, [\n _createElementVNode(\"img\", {\n src: image.source\n }, null, 8, _hoisted_12)\n ]))\n }), 128))\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"section\", _hoisted_13, [\n (_unref(data)?.name)\n ? (_openBlock(), _createElementBlock(\"h2\", _hoisted_14, _toDisplayString(_unref(data).name), 1))\n : _createCommentVNode(\"\", true),\n (_unref(data)?.tags.filter((t) => !!t.icon).length)\n ? (_openBlock(), _createElementBlock(\"ul\", _hoisted_15, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(data).tags.filter((t) => !!t.icon), (tag) => {\n return (_openBlock(), _createElementBlock(\"li\", { key: tag }, [\n _createVNode(SvgIcon, {\n height: \"24px\",\n width: \"24px\",\n icon: tag.icon\n }, null, 8, [\"icon\"]),\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t(`onebasket.accommodation.information.${tag.id}`)), 1)\n ]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_16, [\n (_unref(data)?.description)\n ? (_openBlock(), _createElementBlock(\"p\", _hoisted_17, _toDisplayString(_unref(data).description), 1))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ], 64))\n : (_unref(error))\n ? (_openBlock(), _createBlock(BaseAlert, {\n key: 2,\n type: \"danger\",\n message: (_unref(error) as Error).message\n }, null, 8, [\"message\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }),\n _createVNode(BasePanel, null, {\n default: _withCtx(() => [\n _createElementVNode(\"section\", null, [\n _createVNode(AvailabilitySearch, { accommodationId: _ctx.id }, null, 8, [\"accommodationId\"]),\n (_unref(bookableRooms))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_18, [\n _createElementVNode(\"header\", null, [\n _createElementVNode(\"h2\", null, _toDisplayString(_ctx.$t(`onebasket.accommodation.search.result`)) + \":\", 1)\n ]),\n (!_unref(bookableRooms).length && !_unref(isLoadingAvailability))\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n _createVNode(BaseAlert, {\n type: \"info\",\n message: _ctx.$t('onebasket.accommodation.noAvailability')\n }, null, 8, [\"message\"]),\n _createVNode(BaseButton, {\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.$router.back())),\n class: \"btn--link\",\n icon: \"arrow-left\",\n iconPosition: \"left\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"button.back\")), 1)\n ]),\n _: 1\n })\n ], 64))\n : _createCommentVNode(\"\", true),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(bookableRooms), (product) => {\n return (_openBlock(), _createBlock(AccommodationPlacementProduct, {\n key: product.identifier,\n product: product,\n onTerms: handleTerms\n }, null, 8, [\"product\"]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _: 1\n }),\n _createVNode(BookLightbox, {\n onBooked: _cache[2] || (_cache[2] = ($event: any) => (emit('booked')))\n }),\n _createVNode(InformationLightbox),\n _createVNode(BaseLightbox, {\n modelValue: showTerms.value,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => ((showTerms).value = $event))\n }, {\n default: _withCtx(() => [\n (specialTerms.value && specialTerms.value.length)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_19, [\n _createElementVNode(\"h3\", null, _toDisplayString(_ctx.$t(`onebasket.accommodation.search.terms`)), 1),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(specialTerms.value, (terms, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: index,\n innerHTML: terms\n }, null, 8, _hoisted_20))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true),\n (_unref(terms))\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 1,\n class: \"terms-box\",\n innerHTML: _unref(terms)\n }, null, 8, _hoisted_21))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"modelValue\"])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./AccommodationDetails.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./AccommodationDetails.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./AccommodationDetails.vue?vue&type=style&index=0&id=51919f82&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-51919f82\"]])\n\nexport default __exports__","import { getAccommodationTagIcon } from \"@/helpers/iconHelper\";\r\nimport { AccommodationListItemProduct, AccommodationListItemResponse } from \"../onebasket/accommodation\";\r\nimport { AccommodationTag, Image } from \"./AccommodationDetails\";\r\n\r\nexport type AccommodationListItem = {\r\n id: string;\r\n name: string;\r\n images: Image[];\r\n products: AccommodationListItemProduct[];\r\n tags: AccommodationTag[];\r\n category: number;\r\n description: string;\r\n guests: number;\r\n isRecommended: boolean;\r\n arrival?: string;\r\n departure?: string;\r\n fromNights: number;\r\n fromPrice: number;\r\n fromOriginalPrice?: number;\r\n quickBook: string;\r\n};\r\n\r\nexport const mapFromAccommodationListItemResponse = (resp: AccommodationListItemResponse) => {\r\n return {\r\n ...resp,\r\n tags: resp.tags.map((t) => ({\r\n icon: getAccommodationTagIcon(t),\r\n id: t,\r\n })),\r\n };\r\n};\r\n","import { AccommodationListItem, mapFromAccommodationListItemResponse } from \"@/models/accommodation/AccommodationListItem\";\r\nimport { SearchAccommodationResponse } from \"@/models/onebasket/api\";\r\nimport { useSearchStore } from \"@/store/onebasket-search\";\r\nimport { computed, ref } from \"vue\";\r\nimport useApi from \"../useApi\";\r\n\r\nconst isLoading = ref(false);\r\nconst useAccommodationList = () => {\r\n const { post, get } = useApi();\r\n const store = useSearchStore();\r\n\r\n const request = computed(() => {\r\n return {\r\n categories: [store.accommodationType],\r\n rooms: Object.values(store.rooms),\r\n checkinDate: store.checkinDate,\r\n checkoutDate: store.checkoutDate,\r\n flexible: store.flexible,\r\n sort: store.sortOption,\r\n };\r\n });\r\n\r\n const searchAccommodation = (): Promise => {\r\n if (!store.readyForSearch) {\r\n return Promise.resolve([]);\r\n }\r\n\r\n isLoading.value = true;\r\n return post(\"ob/accommodation/search\", request.value)\r\n .then((resp) => {\r\n const accommodations = resp.data?.accommodations.map((a) => mapFromAccommodationListItemResponse(a)) ?? [];\r\n\r\n store.setTotalResult(resp.data?.totalResults ?? 0);\r\n store.setContinuationToken(resp.data?.continuationToken ?? \"\");\r\n store.setAccommodationsResult(accommodations);\r\n\r\n return accommodations;\r\n })\r\n .finally(() => {\r\n isLoading.value = false;\r\n });\r\n };\r\n\r\n const searchNext = async (): Promise => {\r\n if (!!store.totalResult && store.result.length >= store.totalResult) {\r\n store.setContinuationToken(\"\");\r\n return Promise.resolve([]);\r\n }\r\n\r\n isLoading.value = true;\r\n return get(`ob/accommodation/search/${store.searchToken}`, \"\")\r\n .then((resp) => {\r\n const accommodations = resp.data?.accommodations.map((a) => mapFromAccommodationListItemResponse(a)) ?? [];\r\n\r\n store.setContinuationToken(resp.data.continuationToken);\r\n store.setAccommodationsResult(store.result.concat(accommodations));\r\n\r\n return accommodations;\r\n })\r\n .finally(() => {\r\n isLoading.value = false;\r\n });\r\n };\r\n\r\n return {\r\n searchAccommodation,\r\n searchNext,\r\n isLoading,\r\n };\r\n};\r\n\r\nexport default useAccommodationList;\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport BaseDropdown from \"@/components/base/BaseDropdown.vue\";\r\nimport useAccommodation from \"@/composables/onebasket/useAccommodationBook\";\r\nimport { useSearchStore } from \"@/store/onebasket-search\";\r\nimport { computed } from \"vue\";\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'CategoryDropDown',\n setup(__props) {\n\r\nconst store = useSearchStore();\r\nconst { accommodationOptions } = useAccommodation();\r\n\r\nconst type = computed({\r\n get() {\r\n return store.accommodationType ?? 0;\r\n },\r\n set(category: number) {\r\n store.setAccommodationType(category);\r\n },\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _createElementVNode(\"label\", null, _toDisplayString(_ctx.$t(\"onebasket.accommodation.search.accommodationType\")), 1),\n _createVNode(BaseDropdown, {\n name: 'accommodation-type',\n placeholder: 'Välj boendealternativ',\n options: _unref(accommodationOptions),\n modelValue: type.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((type).value = $event)),\n searchable: false\n }, null, 8, [\"options\", \"modelValue\"])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./CategoryDropDown.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./CategoryDropDown.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, createElementVNode as _createElementVNode, unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, withModifiers as _withModifiers, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-0184756b\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"input-group\" }\nconst _hoisted_2 = { class: \"input-group\" }\nconst _hoisted_3 = { class: \"search\" }\n\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport useAccommodationList from \"@/composables/onebasket/useAccommodationList\";\r\nimport AccommodationDates from \"./AccommodationDates.vue\";\r\nimport AccommodationRoomsDropdown from \"./AccommodationRoomsDropdown.vue\";\r\nimport CategoryDropDown from \"./CategoryDropDown.vue\";\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AccommodationSearch',\n emits: [\"onSearch\"],\n setup(__props, { emit: __emit }) {\n\r\nconst emit = __emit;\r\nconst { isLoading } = useAccommodationList();\r\n\r\nconst triggerSearch = () => {\r\n emit(\"onSearch\");\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"form\", {\n onSubmit: _withModifiers(triggerSearch, [\"prevent\"]),\n class: \"accommodation-search\"\n }, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createVNode(CategoryDropDown),\n _createVNode(AccommodationRoomsDropdown, { isWide: true })\n ]),\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(AccommodationDates, { \"allow-flexible\": \"\" })\n ]),\n _createElementVNode(\"div\", _hoisted_3, [\n _createVNode(BaseButton, {\n loading: _unref(isLoading),\n class: \"btn--fixed-width\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"onebasket.accommodation.search.search\")), 1)\n ]),\n _: 1\n }, 8, [\"loading\"])\n ])\n ], 32))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./AccommodationSearch.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./AccommodationSearch.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./AccommodationSearch.vue?vue&type=style&index=0&id=0184756b&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-0184756b\"]])\n\nexport default __exports__","import { FilterState } from '@/models/store/FilterState';\r\nimport { defineStore } from 'pinia';\r\n\r\n\r\nexport const useFilterStore = defineStore({\r\n\tid: \"filter\",\r\n\tstate: () => ({\r\n\t\tactiveTags: [],\r\n\t\tname: '',\r\n\t\tpriceRange: [0, 1000]\r\n\t} as FilterState),\r\n\tgetters: {\r\n\t},\r\n\tactions: {\r\n\t\taddTag(id: number) {\r\n\t\t\tthis.activeTags.push(id);\r\n\t\t},\r\n\t\tremove(id: number) {\r\n\t\t\tthis.activeTags = this.activeTags.filter(x => x !== id)\r\n\t\t},\r\n\t\tclear() {\r\n\t\t\tthis.activeTags = [];\r\n\t\t\tthis.name = '';\r\n\t\t}\r\n\t},\r\n\tpersist: {\r\n\t\tstorage: sessionStorage\r\n\t}\r\n})","import { useFilterStore } from \"@/store/filter\";\r\nimport { useSearchStore } from \"@/store/onebasket-search\";\r\nimport { computed, onMounted } from \"vue\";\r\n\r\nexport const useFilter = () => {\r\n const filterStore = useFilterStore();\r\n const searchStore = useSearchStore();\r\n\r\n const sortedAsc = computed(() => {\r\n return searchStore.result\r\n .map((x) => {\r\n return x.products.map((p) => p.price);\r\n })\r\n .flat(1)\r\n .sort();\r\n });\r\n\r\n const maxPrice = computed(() => {\r\n const _defaultMax = 10000;\r\n\r\n if (sortedAsc.value.length) {\r\n return Math.max(Math.ceil(sortedAsc.value[sortedAsc.value.length - 1] / 1000) * 1000, _defaultMax);\r\n }\r\n\r\n return _defaultMax;\r\n });\r\n\r\n onMounted(() => {\r\n filterStore.priceRange = [0, maxPrice.value];\r\n });\r\n\r\n const priceRange = computed({\r\n get(): number[] {\r\n return filterStore.priceRange;\r\n },\r\n set(value: number[]): void {\r\n filterStore.priceRange = value;\r\n },\r\n });\r\n\r\n const filteredAccommodations = computed(() => {\r\n const res = searchStore.result.filter((x) => {\r\n return (\r\n (filterStore.activeTags.length\r\n ? !filterStore.activeTags.some((t) => {\r\n return x.tags.map((t) => t.id).indexOf(t) < 0;\r\n })\r\n : true) &&\r\n x.products.map((p) => p.price).some((p: number) => p >= priceRange.value[0] && p <= priceRange.value[1]) &&\r\n (filterStore.name ? x.name.toLowerCase().indexOf(filterStore.name.toLowerCase()) >= 0 : true)\r\n );\r\n });\r\n\r\n return res;\r\n });\r\n\r\n const getMatchCount = (tag: number) => {\r\n return filteredAccommodations.value.filter((x) => {\r\n return x.tags.some((t) => t.id === tag);\r\n }).length;\r\n };\r\n\r\n return {\r\n filteredAccommodations,\r\n getMatchCount,\r\n maxPrice,\r\n priceRange,\r\n };\r\n};\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, createElementVNode as _createElementVNode, unref as _unref, toDisplayString as _toDisplayString, isRef as _isRef, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-08f1ef6b\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"accommodation-sidebar\" }\nconst _hoisted_2 = { class: \"accommodation-sidebar--header\" }\nconst _hoisted_3 = { class: \"row\" }\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h4\", { for: \"name_filter\" }, \"Boendenamn\", -1))\nconst _hoisted_5 = { class: \"filters--price\" }\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h4\", { for: \"price_slider\" }, \"Prisklass\", -1))\nconst _hoisted_7 = { class: \"price-range\" }\nconst _hoisted_8 = { class: \"price-filter\" }\nconst _hoisted_9 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h4\", null, \"Faciliteter\", -1))\nconst _hoisted_10 = [\"checked\", \"value\", \"id\", \"disabled\"]\nconst _hoisted_11 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h4\", null, \"Intresseområden\", -1))\nconst _hoisted_12 = [\"id\", \"value\", \"disabled\"]\n\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport BaseInput from \"@/components/base/BaseInput.vue\";\r\nimport BaseTransitionExpand from \"@/components/base/BaseTransitionExpand.vue\";\r\nimport { useFilterStore } from \"@/store/filter\";\r\nimport Slider from \"@vueform/slider\";\r\nimport \"@vueform/slider/themes/default.css\";\r\nimport { computed, ref } from \"vue\";\r\nimport { useFilter } from \"@/composables/onebasket/useOneBasketFilter\";\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AccommodationListFilter',\n setup(__props) {\n\r\nconst store = useFilterStore();\r\nconst { getMatchCount, maxPrice, priceRange } = useFilter();\r\nconst facilitiesConf = [100599, 100631, 100043, 100593, 100037, 101621, 100831, 102680, 100188];\r\nconst interestsConf = [100994, 100993, 100005, 100011, 100545, 100004];\r\nconst activeFilters = computed(() => {\r\n return store.activeTags;\r\n});\r\n\r\nconst open = ref(false);\r\n\r\nconst facilities = computed(() => {\r\n return facilitiesConf.map((x) => {\r\n return {\r\n id: x,\r\n active: activeFilters.value.indexOf(x) > -1,\r\n };\r\n });\r\n});\r\n\r\nconst interests = computed(() => {\r\n return interestsConf.map((x) => {\r\n return {\r\n id: x,\r\n active: activeFilters.value.indexOf(x) > -1,\r\n };\r\n });\r\n});\r\n\r\nconst name = computed({\r\n get() {\r\n return store.name;\r\n },\r\n set(value: string) {\r\n store.name = value;\r\n },\r\n});\r\n\r\nconst handleChange = (event: Event) => {\r\n const target = event.target as HTMLInputElement;\r\n if (target.checked) {\r\n store.addTag(+target.value);\r\n } else {\r\n store.remove(+target.value);\r\n }\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(BaseButton, {\n onClick: _cache[0] || (_cache[0] = ($event: any) => (open.value = !open.value)),\n class: \"btn--fixed-width\",\n icon: \"booking/settings\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(\" Filter \")\n ]),\n _: 1\n })\n ]),\n _createVNode(BaseTransitionExpand, {\n class: \"filters\",\n expanded: open.value\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"fieldset\", null, [\n _hoisted_4,\n _createVNode(BaseInput, {\n modelValue: name.value,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((name).value = $event)),\n id: 'name_filter',\n placeholder: 'Filtrera på namn'\n }, null, 8, [\"modelValue\"])\n ]),\n _createElementVNode(\"fieldset\", _hoisted_5, [\n _hoisted_6,\n _createElementVNode(\"span\", _hoisted_7, _toDisplayString(_unref(priceRange)[0]) + \"kr - \" + _toDisplayString(_unref(priceRange)[1]) + \"kr\", 1),\n _createElementVNode(\"div\", _hoisted_8, [\n _createVNode(_unref(Slider), {\n modelValue: _unref(priceRange),\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_isRef(priceRange) ? (priceRange).value = $event : null)),\n id: 'price_slider',\n max: _unref(maxPrice),\n showTooltip: 'Drag',\n step: 100\n }, null, 8, [\"modelValue\", \"max\"])\n ])\n ]),\n _createElementVNode(\"fieldset\", null, [\n _hoisted_9,\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(facilities.value, (facility) => {\n return (_openBlock(), _createElementBlock(\"label\", {\n class: _normalizeClass([\"checkbox\", { disabled: _unref(getMatchCount)(facility.id) === 0 }]),\n key: facility.id\n }, [\n _createElementVNode(\"input\", {\n checked: facility.active,\n type: \"checkbox\",\n value: facility.id,\n id: facility.id,\n name: \"\",\n onChange: handleChange,\n disabled: _unref(getMatchCount)(facility.id) === 0\n }, null, 40, _hoisted_10),\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t(`onebasket.accommodation.information.${facility.id}`)) + \" (\" + _toDisplayString(_unref(getMatchCount)(facility.id)) + \")\", 1)\n ], 2))\n }), 128))\n ]),\n _createElementVNode(\"fieldset\", null, [\n _hoisted_11,\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(interests.value, (interest) => {\n return (_openBlock(), _createElementBlock(\"label\", {\n class: _normalizeClass([\"checkbox\", { disabled: _unref(getMatchCount)(interest.id) === 0 }]),\n key: interest.id\n }, [\n _createElementVNode(\"input\", {\n type: \"checkbox\",\n id: interest.id,\n name: \"\",\n value: interest.id,\n onChange: handleChange,\n disabled: _unref(getMatchCount)(interest.id) === 0\n }, null, 40, _hoisted_12),\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t(`onebasket.accommodation.information.${interest.id}`)) + \" (\" + _toDisplayString(_unref(getMatchCount)(interest.id)) + \")\", 1)\n ], 2))\n }), 128))\n ])\n ])\n ]),\n _: 1\n }, 8, [\"expanded\"])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./AccommodationListFilter.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./AccommodationListFilter.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./AccommodationListFilter.vue?vue&type=style&index=0&id=08f1ef6b&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-08f1ef6b\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, unref as _unref, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, createTextVNode as _createTextVNode, createBlock as _createBlock, normalizeClass as _normalizeClass, withCtx as _withCtx, createVNode as _createVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-4b4beab5\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"alternative\" }\nconst _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"index\" }, [\n /*#__PURE__*/_createElementVNode(\"span\", null, \"#\")\n], -1))\nconst _hoisted_3 = { class: \"content\" }\nconst _hoisted_4 = { class: \"rooms\" }\nconst _hoisted_5 = { key: 0 }\nconst _hoisted_6 = { key: 0 }\nconst _hoisted_7 = { class: \"guest\" }\nconst _hoisted_8 = { class: \"summary\" }\nconst _hoisted_9 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", null, \"Visa information\", -1))\nconst _hoisted_10 = { class: \"purchase\" }\nconst _hoisted_11 = { class: \"price\" }\nconst _hoisted_12 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", null, \"Boka nu\", -1))\n\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport SvgIcon from \"@/components/base/SvgIcon.vue\";\r\nimport useAccommodationBook from \"@/composables/onebasket/useAccommodationBook\";\r\nimport { range } from \"@/composables/useUtilities\";\r\nimport { ddMMM } from \"@/helpers/dateHelpers\";\r\nimport { mapFromBasketSectionResponse } from \"@/models/front/basket/BasketGroup\";\r\nimport { AccommodationListItemProduct } from \"@/models/onebasket/accommodation\";\r\nimport { basketKey } from \"@/models/Symbols/basket\";\r\nimport { productKey } from \"@/models/Symbols/product-info\";\r\nimport { useEventBus } from \"@vueuse/core\";\r\nimport { ref } from \"vue\";\r\n\r\ninterface Props {\r\n alternative: AccommodationListItemProduct;\r\n accommodation: string;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AccommodationListItemAlternatives',\n props: {\n alternative: {},\n accommodation: {}\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\nconst eventBus = useEventBus(productKey);\r\nconst { bookRoom, isLoading } = useAccommodationBook();\r\nconst eventBusBasket = useEventBus(basketKey);\r\nconst loading = ref(false);\r\n\r\nconst showInformaiton = () => {\r\n eventBus.emit({\r\n title: props.accommodation,\r\n subtitle: \"\",\r\n rooms: props.alternative.rooms ?? [],\r\n price: props.alternative.price,\r\n });\r\n};\r\n\r\nconst bookAlternative = () => {\r\n loading.value = true;\r\n bookRoom(props.alternative.identifier)\r\n .then((data) => {\r\n eventBusBasket.emit({\r\n addons: data.addons,\r\n basket: data.basket,\r\n ferrySections: data.ferryBooking.map((s) => mapFromBasketSectionResponse(s)),\r\n basketPrice: data.totalPrice,\r\n specialTerms: (props.alternative.rooms ?? []).filter((r) => !!r.bookingTerms).map((r) => r.bookingTerms ?? \"\"),\r\n });\r\n })\r\n .finally(() => {\r\n loading.value = false;\r\n });\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _hoisted_2,\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n (_ctx.alternative.arrival && _ctx.alternative.departure)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_5, _toDisplayString(_unref(ddMMM)(_ctx.alternative.arrival)) + \" - \" + _toDisplayString(_unref(ddMMM)(_ctx.alternative.departure)), 1))\n : _createCommentVNode(\"\", true),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.alternative.rooms, (room, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"room\",\n key: index\n }, [\n _createElementVNode(\"label\", null, [\n (room.amount > 0)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_6, _toDisplayString(room.amount) + \"st \", 1))\n : _createCommentVNode(\"\", true),\n _createTextVNode(\" \" + _toDisplayString(room.name), 1)\n ]),\n _createElementVNode(\"span\", _hoisted_7, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(range)(0, room.guests), (i) => {\n return (_openBlock(), _createBlock(SvgIcon, {\n key: i,\n class: \"icon--info\",\n icon: \"guest\"\n }))\n }), 128))\n ])\n ]))\n }), 128))\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _createVNode(BaseButton, {\n class: _normalizeClass('btn--transparent no-padding'),\n onClick: showInformaiton,\n icon: \"accommodation/external-link\"\n }, {\n default: _withCtx(() => [\n _hoisted_9\n ]),\n _: 1\n }),\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"span\", _hoisted_11, _toDisplayString(_ctx.alternative.price) + \" kr\", 1),\n _createVNode(BaseButton, {\n class: \"btn--primary\",\n disabled: _unref(isLoading),\n loading: loading.value,\n onClick: bookAlternative\n }, {\n default: _withCtx(() => [\n _hoisted_12\n ]),\n _: 1\n }, 8, [\"disabled\", \"loading\"])\n ])\n ])\n ])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./AccommodationListItemAlternatives.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./AccommodationListItemAlternatives.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./AccommodationListItemAlternatives.vue?vue&type=style&index=0&id=4b4beab5&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-4b4beab5\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, renderList as _renderList, Fragment as _Fragment, createVNode as _createVNode, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, withCtx as _withCtx, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-cdcb7640\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"accommodation\" }\nconst _hoisted_2 = { class: \"image\" }\nconst _hoisted_3 = [\"src\"]\nconst _hoisted_4 = {\n key: 0,\n class: \"banner\"\n}\nconst _hoisted_5 = { class: \"content\" }\nconst _hoisted_6 = { class: \"category\" }\nconst _hoisted_7 = { class: \"description\" }\nconst _hoisted_8 = { key: 0 }\nconst _hoisted_9 = { class: \"information\" }\nconst _hoisted_10 = { class: \"summary\" }\nconst _hoisted_11 = { class: \"description\" }\nconst _hoisted_12 = { class: \"from\" }\nconst _hoisted_13 = { class: \"price\" }\nconst _hoisted_14 = {\n key: 0,\n class: \"previous\"\n}\nconst _hoisted_15 = { class: \"current\" }\nconst _hoisted_16 = { class: \"actions\" }\nconst _hoisted_17 = { class: \"flex\" }\nconst _hoisted_18 = { key: 0 }\nconst _hoisted_19 = { class: \"alternatives\" }\n\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport BaseTransitionExpand from \"@/components/base/BaseTransitionExpand.vue\";\r\nimport { ddMMM } from \"@/helpers/dateHelpers\";\r\nimport { ref } from \"vue\";\r\nimport AccommodationListItemAlternatives from \"./AccommodationListItemAlternatives.vue\";\r\nimport { AccommodationListItem } from \"@/models/accommodation/AccommodationListItem\";\r\nimport SvgIcon from \"@/components/base/SvgIcon.vue\";\r\n\r\ninterface Props {\r\n accommodation: AccommodationListItem;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AccommodationListItem',\n props: {\n accommodation: {}\n },\n emits: [\"goToAccommodation\"],\n setup(__props: any, { emit: __emit }) {\n\r\nconst props = __props;\r\nconst emit = __emit;\r\n\r\nconst showAlternatives = ref(false);\r\nconst image =\r\n props.accommodation.images.length > 0 ? (props.accommodation.images.find((x) => x.isMain) ?? props.accommodation.images[0]).source : \"\";\r\n\r\nconst toggleAlternatives = () => {\r\n showAlternatives.value = !showAlternatives.value;\r\n};\r\n\r\nconst handleBook = async () => {\r\n emit(\"goToAccommodation\", props.accommodation);\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"accommodation-wrapper\", { active: showAlternatives.value }])\n }, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"figure\", null, [\n _createElementVNode(\"img\", {\n src: _unref(image),\n loading: \"lazy\",\n alt: \"\"\n }, null, 8, _hoisted_3),\n (_ctx.accommodation.isRecommended)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_4, \"Vi rekommenderar\"))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t(`onebasket.accommodation.types.${_ctx.accommodation.category}`)), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"h3\", null, _toDisplayString(_ctx.accommodation.name), 1),\n (_ctx.accommodation?.tags.filter((t) => !!t.icon).length)\n ? (_openBlock(), _createElementBlock(\"ul\", _hoisted_8, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.accommodation.tags.filter((t) => !!t.icon), (tag) => {\n return (_openBlock(), _createElementBlock(\"li\", { key: tag }, [\n _createVNode(SvgIcon, {\n height: \"24px\",\n width: \"24px\",\n icon: tag.icon\n }, null, 8, [\"icon\"]),\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t(`onebasket.accommodation.information.${tag.id}`)), 1)\n ]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"div\", _hoisted_11, [\n _createElementVNode(\"h4\", _hoisted_12, _toDisplayString(_ctx.$t(\"onebasket.accommodation.fromPrice\")) + \":\", 1),\n _createElementVNode(\"p\", null, _toDisplayString(_ctx.accommodation.fromNights) + \" \" + _toDisplayString(_ctx.$t(\"onebasket.accommodation.nights\")) + \", \" + _toDisplayString(_ctx.accommodation.guests) + \" \" + _toDisplayString(_ctx.$t(\"onebasket.accommodation.guests\")), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_13, [\n (_ctx.accommodation.fromOriginalPrice)\n ? (_openBlock(), _createElementBlock(\"h4\", _hoisted_14, _toDisplayString(_ctx.accommodation.fromOriginalPrice) + \"kr\", 1))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"h4\", _hoisted_15, _toDisplayString(_ctx.accommodation.fromPrice) + \" \" + _toDisplayString(_ctx.$t(\"onebasket.accommodation.fromPriceCurrency\")) + \"/\" + _toDisplayString(_ctx.$t(\"onebasket.accommodation.night\")), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_16, [\n _createElementVNode(\"div\", _hoisted_17, [\n (_ctx.accommodation.arrival && _ctx.accommodation.departure)\n ? (_openBlock(), _createElementBlock(\"h4\", _hoisted_18, _toDisplayString(_unref(ddMMM)(_ctx.accommodation.arrival)) + \" - \" + _toDisplayString(_unref(ddMMM)(_ctx.accommodation.departure)), 1))\n : _createCommentVNode(\"\", true),\n (!_ctx.accommodation.arrival && !_ctx.accommodation.departure)\n ? (_openBlock(), _createBlock(BaseButton, {\n key: 1,\n class: _normalizeClass('btn--transparent no-padding toggle-alternatives'),\n onClick: toggleAlternatives\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"onebasket.accommodation.showMoreOptions\")), 1)\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true)\n ]),\n _createVNode(BaseButton, {\n onClick: handleBook,\n icon: \"arrow-right\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"onebasket.accommodation.book\")), 1)\n ]),\n _: 1\n })\n ])\n ])\n ])\n ]),\n _createVNode(BaseTransitionExpand, {\n class: \"alternatives-wrapper\",\n expanded: showAlternatives.value\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_19, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.accommodation.products, (product) => {\n return (_openBlock(), _createBlock(AccommodationListItemAlternatives, {\n key: product.identifier,\n alternative: product,\n accommodation: _ctx.accommodation.name\n }, null, 8, [\"alternative\", \"accommodation\"]))\n }), 128))\n ])\n ]),\n _: 1\n }, 8, [\"expanded\"])\n ], 2))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./AccommodationListItem.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./AccommodationListItem.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./AccommodationListItem.vue?vue&type=style&index=0&id=cdcb7640&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-cdcb7640\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, unref as _unref, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, withCtx as _withCtx, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"search-result__title\" }\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"h3\", null, \"Sökresultat\", -1)\n\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport BaseDropdown from \"@/components/base/BaseDropdown.vue\";\r\nimport useAccommodationList from \"@/composables/onebasket/useAccommodationList\";\r\nimport { SortOptions } from \"@/models/onebasket/accommodation\";\r\nimport { useSearchStore } from \"@/store/onebasket-search\";\r\nimport { computed, onMounted, ref, watch } from \"vue\";\r\nimport { useI18n } from \"vue-i18n\";\r\nimport { useFilter } from \"@/composables/onebasket/useOneBasketFilter\";\r\nimport AccommodationListFilter from \"./AccommodationListFilter.vue\";\r\nimport AccommodationListItem from \"./AccommodationListItem.vue\";\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AccommodationList',\n emits: [\"onSearch\"],\n setup(__props, { emit: __emit }) {\n\r\nconst emit = __emit;\r\n\r\nconst { filteredAccommodations } = useFilter();\r\nconst { t } = useI18n();\r\nconst { searchNext, isLoading } = useAccommodationList();\r\nconst searchStore = useSearchStore();\r\nconst resultview = ref();\r\n\r\nconst sortValue = computed({\r\n get() {\r\n return searchStore.sortOption;\r\n },\r\n set(value: SortOptions) {\r\n searchStore.setSort(value);\r\n },\r\n});\r\n\r\nconst sortOptions = [SortOptions.PriceAsc, SortOptions.PriceDesc].map((value) => {\r\n return {\r\n value,\r\n label: t(`onebasket.misc.sort.${SortOptions[value]}`),\r\n };\r\n});\r\n\r\nconst search = async () => {\r\n if (searchStore.searchToken && isLoading.value === false) {\r\n await searchNext();\r\n }\r\n};\r\n\r\nwatch(sortValue, (currentValue, previousValue) => {\r\n if (currentValue != previousValue && currentValue !== undefined) {\r\n if (searchStore.result.length && searchStore.totalResult) {\r\n if (searchStore.result.length >= searchStore.totalResult) {\r\n searchStore.orderResult(currentValue);\r\n } else {\r\n if (searchStore.checkinDate && searchStore.checkoutDate && searchStore.accommodationType) {\r\n emit(\"onSearch\");\r\n }\r\n }\r\n }\r\n }\r\n});\r\n\r\nonMounted(() => {\r\n if (!sortValue.value) {\r\n sortValue.value = SortOptions.PriceAsc;\r\n }\r\n});\r\n\r\nconst totalResults = computed(() => {\r\n return searchStore.totalResult ?? 0;\r\n});\r\n\r\nconst accommodationsAmount = computed(() => {\r\n return searchStore.getResults;\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"section\", {\n class: \"search-result\",\n ref_key: \"resultview\",\n ref: resultview\n }, [\n _createElementVNode(\"header\", null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _hoisted_2,\n _createTextVNode(\" (\" + _toDisplayString(totalResults.value) + \") \", 1)\n ]),\n _createVNode(BaseDropdown, {\n class: \"search\",\n options: _unref(sortOptions),\n modelValue: sortValue.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((sortValue).value = $event))\n }, null, 8, [\"options\", \"modelValue\"])\n ]),\n _createVNode(AccommodationListFilter),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(filteredAccommodations), (accommodation) => {\n return (_openBlock(), _createBlock(AccommodationListItem, {\n key: accommodation.id,\n accommodation: accommodation,\n onGoToAccommodation: ($event: any) => (\r\n _ctx.$router.push({\r\n query: {\r\n ..._ctx.$route.query,\r\n accommodationId: accommodation.id,\r\n },\r\n })\r\n )\n }, null, 8, [\"accommodation\", \"onGoToAccommodation\"]))\n }), 128)),\n _createElementVNode(\"footer\", null, [\n _createElementVNode(\"div\", null, _toDisplayString(_ctx.$t(\"onebasket.accommodation.showing\")) + \" \" + _toDisplayString(accommodationsAmount.value) + \" / \" + _toDisplayString(totalResults.value), 1),\n (accommodationsAmount.value < totalResults.value)\n ? (_openBlock(), _createBlock(BaseButton, {\n key: 0,\n onClick: search,\n loading: _unref(isLoading),\n class: \"btn--fixed-width\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"onebasket.accommodation.loadMore\")), 1)\n ]),\n _: 1\n }, 8, [\"loading\"]))\n : _createCommentVNode(\"\", true)\n ])\n ], 512))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./AccommodationList.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./AccommodationList.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./AccommodationList.vue?vue&type=style&index=0&id=33e6347d&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"accommodation-search\" }\n\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport BasePanel from \"@/components/base/BasePanel.vue\";\r\nimport AccommodationSearch from \"@/components/onebasket/accommodation-search/AccommodationSearch.vue\";\r\nimport BookLightbox from \"@/components/onebasket/lightbox/BookLightbox.vue\";\r\nimport InformationLightbox from \"@/components/onebasket/lightbox/InformationLightbox.vue\";\r\nimport useAccommodationList from \"@/composables/onebasket/useAccommodationList\";\r\nimport AccommodationList from \"@/components/onebasket/accommodation-list/AccommodationList.vue\";\r\nimport { useFilterStore } from \"@/store/filter\";\r\nimport { useSearchStore } from \"@/store/onebasket-search\";\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AccommodationSearch',\n setup(__props) {\n\r\nconst { searchAccommodation } = useAccommodationList();\r\n\r\nconst searchStore = useSearchStore();\r\nconst filterStore = useFilterStore();\r\n\r\nconst handleSearch = () => {\r\n searchAccommodation().then(() => {\r\n filterStore.clear();\r\n });\r\n};\r\n\r\nif (searchStore.readyForSearch) {\r\n handleSearch();\r\n}\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(BasePanel, null, {\n default: _withCtx(() => [\n _createVNode(BaseButton, {\n onClick: _cache[0] || (_cache[0] = ($event: any) => (_ctx.$router.back())),\n class: \"btn--link\",\n icon: \"arrow-left\",\n iconPosition: \"left\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"button.back\")), 1)\n ]),\n _: 1\n }),\n _createVNode(AccommodationSearch, { onOnSearch: handleSearch })\n ]),\n _: 1\n }),\n _createVNode(BasePanel, null, {\n default: _withCtx(() => [\n _createVNode(AccommodationList, { onOnSearch: handleSearch })\n ]),\n _: 1\n }),\n _createVNode(InformationLightbox),\n _createVNode(BookLightbox)\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./AccommodationSearch.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./AccommodationSearch.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-05dd50c6\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"accommodation\" }\n\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport BaseSection from \"@/components/base/BaseSection.vue\";\r\nimport { YYYYMMDD } from \"@/helpers/dateHelpers\";\r\nimport { Direction, TripType } from \"@/models/Enums\";\r\nimport AccommodationTips from \"@/components/onebasket/AccommodationTips.vue\";\r\nimport useBookingNavigation from \"@/modules/BookingFlow/composables/useBookingNavigation\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport { usePassengerStore } from \"@/store/passenger\";\r\nimport { differenceInDays } from \"date-fns\";\r\nimport { computed } from \"vue\";\r\nimport BookingContinue from \"../BookingContinue.vue\";\r\nimport BookingSpacer from \"../BookingSpacer.vue\";\r\nimport AccommodationDetails from \"./AccommodationDetails.vue\";\r\nimport AccommodationSearch from \"./AccommodationSearch.vue\";\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Accommodations',\n setup(__props) {\n\r\nconst { nextStep } = useBookingNavigation();\r\n\r\nconst bookingStore = useBookingStore();\r\nconst passengerStore = usePassengerStore();\r\n\r\nconst outwardDate = computed(() => bookingStore.getDate(Direction.Outward) ?? new Date());\r\nconst returnDate = computed(() => bookingStore.getDate(Direction.Return) ?? new Date());\r\n\r\nconst isReturn = computed(() => bookingStore.tripType === TripType.Return);\r\n\r\nconst days = computed(() => {\r\n if (!isReturn.value) return 1;\r\n\r\n return Math.abs(differenceInDays(outwardDate.value, returnDate.value)) + 1;\r\n});\r\n\r\nconst passengerCount = computed(() => passengerStore.getPassengers(Direction.Outward).length);\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(BookingSpacer),\n _createVNode(BaseSection, {\n title: _ctx.$t('onebasket.accommodation.title'),\n subtitle: _ctx.$t('onebasket.accommodation.subtitle'),\n infoIcon: 'booking/bed',\n infoText: `${_ctx.$t('onebasket.accommodation.accomodation')} ${_unref(YYYYMMDD)(outwardDate.value)}${\r\n isReturn.value ? ' - ' + _unref(YYYYMMDD)(returnDate.value) : ''\r\n } | ${days.value} ${_ctx.$t('onebasket.accommodation.nights')}, ${passengerCount.value} ${_ctx.$t('onebasket.accommodation.guests')}`\n }, {\n default: _withCtx(() => [\n (_ctx.$route.query.accommodationId)\n ? (_openBlock(), _createBlock(AccommodationDetails, {\n key: 0,\n onBooked: _cache[0] || (_cache[0] = () => _unref(nextStep)()),\n id: _ctx.$route.query.accommodationId as string\n }, null, 8, [\"id\"]))\n : (_ctx.$route.query.listAccommodation)\n ? (_openBlock(), _createBlock(AccommodationSearch, { key: 1 }))\n : (_openBlock(), _createBlock(AccommodationTips, { key: 2 })),\n _createVNode(BookingContinue, null, {\n default: _withCtx(({ nextStep }) => [\n _createVNode(BaseButton, { onClick: nextStep }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"onebasket.accommodation.continueWithoutAccomodation\")), 1)\n ]),\n _: 2\n }, 1032, [\"onClick\"])\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"title\", \"subtitle\", \"infoText\"])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./Accommodations.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./Accommodations.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./Accommodations.vue?vue&type=style&index=0&id=05dd50c6&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-05dd50c6\"]])\n\nexport default __exports__","import useApi from \"@/composables/useApi\";\r\nimport { format } from \"@/helpers/phoneHelper\";\r\nimport { AddressInformationResponse, SetAddressRequest } from \"@/models/api/customer/AddressInformationResponse\";\r\nimport { AddressInformation, mapFromAddressInformationResponse } from \"@/models/front/customer/AddressInformation\";\r\nimport { useUserStore } from \"@/store/user\";\r\nimport { computed } from \"vue\";\r\nimport { useMutation, useQuery, useQueryClient } from \"vue-query\";\r\n\r\nconst useAddressInfoQuery = (bookingNumber?: number) => {\r\n const { get, post } = useApi();\r\n const queryClient = useQueryClient();\r\n\r\n const userStore = useUserStore();\r\n\r\n const fetcher = () => {\r\n return get(\"booking/details\", \"\").then((resp) => {\r\n return mapFromAddressInformationResponse(resp.data);\r\n });\r\n };\r\n\r\n const cacheKey = computed(() => {\r\n return [\"address-info\", userStore.getUser.number, bookingNumber];\r\n });\r\n\r\n const updateMutation = useMutation(\r\n (info: AddressInformation) => {\r\n return post(userStore.isAgent ? \"booking/details/agent\" : \"booking/details\", {\r\n bookingNumber,\r\n name: `${info.lastName} ${info.firstName}`,\r\n ...info,\r\n mobilePhone: format(info.mobilePhone, info.phoneCode),\r\n } as SetAddressRequest);\r\n },\r\n {\r\n onSuccess: () => {\r\n queryClient.invalidateQueries(\"address-info\");\r\n },\r\n }\r\n );\r\n\r\n return {\r\n ...useQuery(cacheKey.value, fetcher, {\r\n staleTime: 1000 * 30,\r\n refetchOnWindowFocus: false,\r\n enabled: computed(() => !!bookingNumber && userStore.isLoggedIn),\r\n }),\r\n updateMutation,\r\n };\r\n};\r\n\r\nexport default useAddressInfoQuery;\r\n","import { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, Transition as _Transition, normalizeClass as _normalizeClass, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-0c10caf5\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { key: \"open\" }\nconst _hoisted_2 = { key: \"closed\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_BaseButton = _resolveComponent(\"BaseButton\")!\n const _component_BasePanel = _resolveComponent(\"BasePanel\")!\n\n return (_openBlock(), _createBlock(_component_BasePanel, {\n class: _normalizeClass([\"detail-box\", {'detail-box--closed': !_ctx.isOpen}])\n }, {\n default: _withCtx(() => [\n _createVNode(_Transition, {\n name: \"fade\",\n mode: \"out-in\"\n }, {\n default: _withCtx(() => [\n (_ctx.isOpen)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _renderSlot(_ctx.$slots, \"default\", { toggle: _ctx.toggle }, undefined, true)\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _renderSlot(_ctx.$slots, \"closed\", {}, undefined, true),\n _createVNode(_component_BaseButton, {\n type: \"button\",\n class: \"detail-box__open-btn btn--link\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (_ctx.isOpen = !_ctx.isOpen))\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.openLabel), 1)\n ]),\n _: 1\n })\n ]))\n ]),\n _: 3\n })\n ]),\n _: 3\n }, 8, [\"class\"]))\n}","\r\n\r\n\r\n\r\n","import { render } from \"./BaseDetailBox.vue?vue&type=template&id=0c10caf5&scoped=true&ts=true\"\nimport script from \"./BaseDetailBox.vue?vue&type=script&lang=ts\"\nexport * from \"./BaseDetailBox.vue?vue&type=script&lang=ts\"\n\nimport \"./BaseDetailBox.vue?vue&type=style&index=0&id=0c10caf5&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0c10caf5\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, withModifiers as _withModifiers, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-cb535f82\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"booking-details__container\" }\nconst _hoisted_2 = { class: \"booking-details__row\" }\nconst _hoisted_3 = { class: \"booking-details__row\" }\nconst _hoisted_4 = { class: \"booking-details__actions\" }\nconst _hoisted_5 = { class: \"booking-details__list\" }\nconst _hoisted_6 = { class: \"booking-details__name\" }\nconst _hoisted_7 = { class: \"booking-details__list\" }\n\nimport BaseCountrySelect from \"@/components/base/BaseCountrySelect.vue\";\r\nimport BaseDropdown from \"@/components/base/BaseDropdown.vue\";\r\nimport { countryCodes } from \"@/config/countries\";\r\nimport { format } from \"@/helpers/phoneHelper\";\r\nimport { email, required } from \"@/helpers/validators\";\r\nimport { AddressInformation } from \"@/models/front/customer/AddressInformation\";\r\nimport useAddressInfoQuery from \"@/modules/BookingFlow/composables/useAddressInfoQuery\";\r\nimport { useUserStore } from \"@/store/user\";\r\nimport useVuelidate from \"@vuelidate/core\";\r\nimport { minLength } from \"@vuelidate/validators\";\r\nimport { computed, onMounted, reactive, ref } from \"vue\";\r\nimport BaseButton from \"~/components/base/BaseButton.vue\";\r\nimport BaseDetailBox from \"~/components/base/BaseDetailBox.vue\";\r\nimport BaseInput from \"~/components/base/BaseInput.vue\";\r\n\r\ninterface Props {\r\n bookingNumber: number;\r\n address?: AddressInformation;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AddressInfoForm',\n props: {\n bookingNumber: {},\n address: {}\n },\n emits: [\"saved\"],\n setup(__props: any, { emit: __emit }) {\n\r\nconst props = __props;\r\n\r\nconst emit = __emit;\r\n\r\nconst userStore = useUserStore();\r\nconst detailsBoxRef = ref();\r\nconst customerInfoSaved = ref(false);\r\n\r\nconst emitInfoSaved = () => {\r\n customerInfoSaved.value = true;\r\n emit(\"saved\", customerInfoSaved.value);\r\n};\r\n\r\nconst isNameReadonly = computed(() => userStore.getIsNameReadonly);\r\n\r\nconst state = reactive({\r\n firstName: props.address?.firstName ?? \"\",\r\n lastName: props.address?.lastName ?? \"\",\r\n contact: props.address?.contact ?? \"\",\r\n address: props.address?.address ?? \"\",\r\n zip: props.address?.zip ?? \"\",\r\n city: props.address?.city ?? \"\",\r\n countryCode: props.address?.countryCode ?? \"\",\r\n phoneCode: props.address?.phoneCode ?? \"\",\r\n mobilePhone: props.address?.mobilePhone ?? \"\",\r\n email: userStore.getUser.email ?? props.address?.email ?? \"\",\r\n internalReference: \"\",\r\n});\r\n\r\nconst rules = {\r\n firstName: { required },\r\n lastName: { required },\r\n contact: {},\r\n address: { required },\r\n zip: { required },\r\n city: { required },\r\n countryCode: { required },\r\n phoneCode: {},\r\n mobilePhone: { required, minLength: minLength(6) },\r\n email: { required, email },\r\n internalReference: {},\r\n};\r\n\r\nconst v$ = useVuelidate(rules, state);\r\n\r\nconst { updateMutation } = useAddressInfoQuery(props.bookingNumber ?? -1);\r\nconst { isLoading } = updateMutation;\r\nconst submitForm = async () => {\r\n const isFormCorrect = await v$.value.$validate();\r\n if (!isFormCorrect) return;\r\n\r\n updateMutation.mutateAsync(state).then(() => {\r\n detailsBoxRef.value.toggle();\r\n emitInfoSaved();\r\n });\r\n};\r\n\r\nconst isValid = computed(() => {\r\n return !v$.value.$invalid;\r\n});\r\n\r\nonMounted(() => {\r\n if (!isValid.value) {\r\n detailsBoxRef.value.toggle();\r\n } else {\r\n emitInfoSaved();\r\n }\r\n});\r\n\r\nconst cancel = (cb: () => void) => {\r\n v$.value.$reset();\r\n state.firstName = props.address?.firstName ?? \"\";\r\n state.lastName = props.address?.lastName ?? \"\";\r\n state.contact = props.address?.contact ?? \"\";\r\n state.address = props.address?.address ?? \"\";\r\n state.zip = props.address?.zip ?? \"\";\r\n state.city = props.address?.city ?? \"\";\r\n state.countryCode = props.address?.countryCode ?? \"\";\r\n state.phoneCode = props.address?.phoneCode ?? \"\";\r\n state.mobilePhone = props.address?.mobilePhone ?? \"\";\r\n state.email = userStore.getUser.email ?? props.address?.email ?? \"\";\r\n state.internalReference = \"\";\r\n cb();\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"form\", {\n class: \"booking-info-form\",\n onSubmit: _withModifiers(submitForm, [\"prevent\"])\n }, [\n _createVNode(BaseDetailBox, {\n ref_key: \"detailsBoxRef\",\n ref: detailsBoxRef,\n class: \"booking-details\",\n openLabel: _ctx.$t('booking.customerDetails.edit')\n }, {\n default: _withCtx(({ toggle }) => [\n _createElementVNode(\"section\", _hoisted_1, [\n _createVNode(BaseInput, {\n label: _ctx.$t('fields.firstName.label'),\n name: \"firstName\",\n hasError: _unref(v$).firstName.$error,\n modelValue: _unref(v$).firstName.$model,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_unref(v$).firstName.$model) = $event)),\n modelModifiers: { trim: true },\n disabled: isNameReadonly.value\n }, null, 8, [\"label\", \"hasError\", \"modelValue\", \"disabled\"]),\n _createVNode(BaseInput, {\n label: _ctx.$t('fields.lastName.label'),\n name: \"lastName\",\n hasError: _unref(v$).lastName.$error,\n modelValue: _unref(v$).lastName.$model,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((_unref(v$).lastName.$model) = $event)),\n modelModifiers: { trim: true },\n disabled: isNameReadonly.value\n }, null, 8, [\"label\", \"hasError\", \"modelValue\", \"disabled\"]),\n _createVNode(BaseInput, {\n label: _ctx.$t('fields.company.label'),\n name: \"contact\",\n hasError: _unref(v$).contact.$error,\n modelValue: _unref(v$).contact.$model,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => ((_unref(v$).contact.$model) = $event)),\n modelModifiers: { trim: true }\n }, null, 8, [\"label\", \"hasError\", \"modelValue\"]),\n _createVNode(BaseInput, {\n label: _ctx.$t('fields.address.label'),\n name: \"address\",\n hasError: _unref(v$).address.$error,\n modelValue: _unref(v$).address.$model,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => ((_unref(v$).address.$model) = $event)),\n modelModifiers: { trim: true }\n }, null, 8, [\"label\", \"hasError\", \"modelValue\"]),\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(BaseInput, {\n label: _ctx.$t('fields.zip.label'),\n name: \"zip\",\n hasError: _unref(v$).zip.$error,\n modelValue: _unref(v$).zip.$model,\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => ((_unref(v$).zip.$model) = $event)),\n modelModifiers: { trim: true }\n }, null, 8, [\"label\", \"hasError\", \"modelValue\"]),\n _createVNode(BaseInput, {\n label: _ctx.$t('fields.city.label'),\n name: \"city\",\n hasError: _unref(v$).city.$error,\n modelValue: _unref(v$).city.$model,\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => ((_unref(v$).city.$model) = $event)),\n modelModifiers: { trim: true }\n }, null, 8, [\"label\", \"hasError\", \"modelValue\"])\n ]),\n _createVNode(BaseCountrySelect, {\n label: _ctx.$t('fields.country.label'),\n name: \"country\",\n hasError: _unref(v$).countryCode.$error,\n modelValue: _unref(v$).countryCode.$model,\n \"onUpdate:modelValue\": _cache[6] || (_cache[6] = ($event: any) => ((_unref(v$).countryCode.$model) = $event))\n }, null, 8, [\"label\", \"hasError\", \"modelValue\"]),\n _createElementVNode(\"div\", _hoisted_3, [\n _createVNode(BaseDropdown, {\n options: _unref(countryCodes),\n label: _ctx.$t('fields.phoneCode.label'),\n name: \"phoneCode\",\n hasError: _unref(v$).phoneCode.$error,\n modelValue: _unref(v$).phoneCode.$model,\n \"onUpdate:modelValue\": _cache[7] || (_cache[7] = ($event: any) => ((_unref(v$).phoneCode.$model) = $event)),\n searchable: \"\"\n }, null, 8, [\"options\", \"label\", \"hasError\", \"modelValue\"]),\n _createVNode(BaseInput, {\n label: _ctx.$t('fields.mobilePhone.label'),\n type: \"tel\",\n name: \"phone\",\n hasError: _unref(v$).mobilePhone.$error,\n modelValue: _unref(v$).mobilePhone.$model,\n \"onUpdate:modelValue\": _cache[8] || (_cache[8] = ($event: any) => ((_unref(v$).mobilePhone.$model) = $event)),\n modelModifiers: { trim: true }\n }, null, 8, [\"label\", \"hasError\", \"modelValue\"])\n ]),\n _createVNode(BaseInput, {\n label: _ctx.$t('fields.email.label'),\n type: \"email\",\n name: \"email\",\n hasError: _unref(v$).email.$error,\n modelValue: _unref(v$).email.$model,\n \"onUpdate:modelValue\": _cache[9] || (_cache[9] = ($event: any) => ((_unref(v$).email.$model) = $event)),\n modelModifiers: { trim: true }\n }, null, 8, [\"label\", \"hasError\", \"modelValue\"]),\n _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(BaseButton, {\n class: \"booking-details__action btn--outline\",\n disabled: _unref(isLoading) || (!isValid.value && !customerInfoSaved.value),\n onClick: () => cancel(toggle),\n type: \"button\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"button.cancel\")), 1)\n ]),\n _: 2\n }, 1032, [\"disabled\", \"onClick\"]),\n _createVNode(BaseButton, {\n class: \"booking-details__action\",\n loading: _unref(isLoading)\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"button.save\")), 1)\n ]),\n _: 1\n }, 8, [\"loading\"])\n ])\n ])\n ]),\n closed: _withCtx(() => [\n _createElementVNode(\"ul\", _hoisted_5, [\n _createElementVNode(\"li\", _hoisted_6, _toDisplayString(_unref(v$).firstName.$model) + \" \" + _toDisplayString(_unref(v$).lastName.$model), 1),\n _createElementVNode(\"li\", null, _toDisplayString(_unref(v$).address.$model), 1),\n _createElementVNode(\"li\", null, _toDisplayString(_unref(v$).zip.$model) + \" \" + _toDisplayString(_unref(v$).city.$model), 1)\n ]),\n _createElementVNode(\"ul\", _hoisted_7, [\n _createElementVNode(\"li\", null, _toDisplayString(_ctx.$t(\"fields.email.label\")) + \": \" + _toDisplayString(_unref(v$).email.$model), 1),\n _createElementVNode(\"li\", null, _toDisplayString(_ctx.$t(\"fields.mobilePhone.label\")) + \": \" + _toDisplayString(_unref(format)(_unref(v$).mobilePhone.$model, _unref(v$).phoneCode.$model)), 1)\n ])\n ]),\n _: 1\n }, 8, [\"openLabel\"])\n ], 32))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./AddressInfoForm.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./AddressInfoForm.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./AddressInfoForm.vue?vue&type=style&index=0&id=cb535f82&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-cb535f82\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, unref as _unref, createVNode as _createVNode, withCtx as _withCtx, createTextVNode as _createTextVNode, withModifiers as _withModifiers, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-08195c47\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"booking-details\" }\nconst _hoisted_2 = { class: \"booking-details__invoice\" }\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h4\", null, \"Faktureringsuppgifter\", -1))\nconst _hoisted_4 = { class: \"booking-details__list\" }\nconst _hoisted_5 = { class: \"booking-details__agent\" }\nconst _hoisted_6 = { class: \"booking-details__customer\" }\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h4\", null, \"Kunduppgifter\", -1))\nconst _hoisted_8 = { class: \"booking-details__name\" }\nconst _hoisted_9 = { class: \"booking-details__phone\" }\n\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport BaseDropdown from \"@/components/base/BaseDropdown.vue\";\r\nimport BaseInput from \"@/components/base/BaseInput.vue\";\r\nimport BasePanel from \"@/components/base/BasePanel.vue\";\r\nimport { countryCodes } from \"@/config/countries\";\r\nimport { required } from \"@/helpers/validators\";\r\nimport { AddressInformation } from \"@/models/front/customer/AddressInformation\";\r\nimport { User } from \"@/models/store/User\";\r\nimport useAddressInfoQuery from \"@/modules/BookingFlow/composables/useAddressInfoQuery\";\r\nimport useBookingNavigation from \"@/modules/BookingFlow/composables/useBookingNavigation\";\r\nimport useVuelidate from \"@vuelidate/core\";\r\nimport { reactive } from \"vue\";\r\nimport BookingContinue from \"../BookingContinue.vue\";\r\nimport { getPhoneCodeForCurrentLocale } from \"@/helpers/localeHelper\";\r\n\r\ninterface Props {\r\n bookingNumber: number;\r\n agent: User;\r\n addressInfo?: AddressInformation;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AgentAddressInfoForm',\n props: {\n bookingNumber: {},\n agent: {},\n addressInfo: {}\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst state = reactive({\r\n email: props.agent.agentAccount?.email ?? \"\",\r\n reference: props.addressInfo?.internalReference ?? \"\",\r\n firstName: props.addressInfo?.firstName ?? \"\",\r\n lastName: props.addressInfo?.lastName ?? \"\",\r\n phoneCode: props.addressInfo?.phoneCode ? props.addressInfo?.phoneCode : getPhoneCodeForCurrentLocale(),\r\n mobilePhone: props.addressInfo?.mobilePhone ?? \"\",\r\n});\r\n\r\nconst rules = {\r\n email: { required },\r\n reference: { required },\r\n firstName: { required },\r\n lastName: { required },\r\n phoneCode: { required },\r\n mobilePhone: { required },\r\n};\r\n\r\nconst v$ = useVuelidate(rules, state);\r\n\r\nconst { updateMutation } = useAddressInfoQuery(props.bookingNumber);\r\nconst { isLoading } = updateMutation;\r\nconst { nextStep } = useBookingNavigation();\r\nconst submitForm = async () => {\r\n const isValid = await v$.value.$validate();\r\n if (!isValid) return;\r\n\r\n updateMutation.mutateAsync(state as any).then(() => {\r\n nextStep();\r\n });\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"section\", _hoisted_1, [\n _createElementVNode(\"form\", {\n onSubmit: _withModifiers(submitForm, [\"prevent\"])\n }, [\n _createVNode(BasePanel, null, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, [\n _hoisted_3,\n _createElementVNode(\"ul\", _hoisted_4, [\n _createElementVNode(\"li\", null, [\n _createElementVNode(\"strong\", null, _toDisplayString(_ctx.agent.agentAccount?.name), 1)\n ]),\n _createElementVNode(\"li\", null, _toDisplayString(_ctx.agent.agentAccount?.address), 1),\n _createElementVNode(\"li\", null, _toDisplayString(_ctx.agent.agentAccount?.zipCode) + \" \" + _toDisplayString(_ctx.agent.agentAccount?.city), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_5, [\n _createVNode(BaseInput, {\n label: _ctx.$t('fields.email.label'),\n type: \"email\",\n name: \"email\",\n hasError: _unref(v$).email.$error,\n modelValue: _unref(v$).email.$model,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_unref(v$).email.$model) = $event)),\n modelModifiers: { trim: true }\n }, null, 8, [\"label\", \"hasError\", \"modelValue\"]),\n _createVNode(BaseInput, {\n label: _ctx.$t('fields.reference.label'),\n name: \"reference\",\n hasError: _unref(v$).reference.$error,\n modelValue: _unref(v$).reference.$model,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((_unref(v$).reference.$model) = $event)),\n modelModifiers: { trim: true }\n }, null, 8, [\"label\", \"hasError\", \"modelValue\"])\n ])\n ])\n ]),\n _: 1\n }),\n _createVNode(BasePanel, null, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_6, [\n _hoisted_7,\n _createElementVNode(\"div\", _hoisted_8, [\n _createVNode(BaseInput, {\n label: _ctx.$t('fields.firstName.label'),\n name: \"firstName\",\n hasError: _unref(v$).firstName.$error,\n modelValue: _unref(v$).firstName.$model,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => ((_unref(v$).firstName.$model) = $event)),\n modelModifiers: { trim: true }\n }, null, 8, [\"label\", \"hasError\", \"modelValue\"]),\n _createVNode(BaseInput, {\n label: _ctx.$t('fields.lastName.label'),\n name: \"lastName\",\n hasError: _unref(v$).lastName.$error,\n modelValue: _unref(v$).lastName.$model,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => ((_unref(v$).lastName.$model) = $event)),\n modelModifiers: { trim: true }\n }, null, 8, [\"label\", \"hasError\", \"modelValue\"])\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n _createVNode(BaseDropdown, {\n label: _ctx.$t('fields.phoneCode.label'),\n name: \"phoneCode\",\n hasError: _unref(v$).phoneCode.$error,\n modelValue: _unref(v$).phoneCode.$model,\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => ((_unref(v$).phoneCode.$model) = $event)),\n options: _unref(countryCodes),\n searchable: \"\"\n }, null, 8, [\"label\", \"hasError\", \"modelValue\", \"options\"]),\n _createVNode(BaseInput, {\n label: _ctx.$t('fields.mobilePhone.label'),\n type: \"tel\",\n name: \"phone\",\n hasError: _unref(v$).mobilePhone.$error,\n modelValue: _unref(v$).mobilePhone.$model,\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => ((_unref(v$).mobilePhone.$model) = $event)),\n modelModifiers: { trim: true }\n }, null, 8, [\"label\", \"hasError\", \"modelValue\"])\n ])\n ])\n ]),\n _: 1\n }),\n _createVNode(BookingContinue, null, {\n default: _withCtx(() => [\n _createVNode(BaseButton, { loading: _unref(isLoading) }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"button.continue\")), 1)\n ]),\n _: 1\n }, 8, [\"loading\"])\n ]),\n _: 1\n })\n ], 32)\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./AgentAddressInfoForm.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./AgentAddressInfoForm.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./AgentAddressInfoForm.vue?vue&type=style&index=0&id=08195c47&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-08195c47\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, withCtx as _withCtx, unref as _unref, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-41f7f5da\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"customer-details\" }\nconst _hoisted_2 = {\n key: 0,\n class: \"loading-container\"\n}\n\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport BaseExpansionPanel from \"@/components/base/BaseExpansionPanel.vue\";\r\nimport BasePanel from \"@/components/base/BasePanel.vue\";\r\nimport BaseSection from \"@/components/base/BaseSection.vue\";\r\nimport BaseSpinner from \"@/components/base/BaseSpinner.vue\";\r\nimport CustomerDetailsForm from \"@/components/customer/CustomerDetailsForm.vue\";\r\nimport useCreateAccount from \"@/composables/login/useCreateAccount\";\r\nimport { UserType } from \"@/models/Enums\";\r\nimport { AddressInformation } from \"@/models/front/customer/AddressInformation\";\r\nimport { User } from \"@/models/store/User\";\r\nimport useAddressInfoQuery from \"@/modules/BookingFlow/composables/useAddressInfoQuery\";\r\nimport useBookingNavigation from \"@/modules/BookingFlow/composables/useBookingNavigation\";\r\nimport LoginUser from \"@/modules/Login/components/LoginUser.vue\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport { useUserStore } from \"@/store/user\";\r\nimport useVuelidate from \"@vuelidate/core\";\r\nimport { computed, ref } from \"vue\";\r\nimport BookingContinue from \"../BookingContinue.vue\";\r\nimport BookingSpacer from \"../BookingSpacer.vue\";\r\nimport AddressInfoForm from \"./AddressInfoForm.vue\";\r\nimport AgentAddressInfoForm from \"./AgentAddressInfoForm.vue\";\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'CustomerDetails',\n setup(__props) {\n\r\nconst userStore = useUserStore();\r\nconst bookingStore = useBookingStore();\r\nconst addressInfoSaved = ref(false);\r\n\r\nconst isAgent = computed(() => userStore.isAgent);\r\nconst user = computed(() => userStore.getUser);\r\nconst bookingNumber = computed(() => bookingStore.bookingNumber);\r\n\r\nconst { data, isLoading, isFetching, updateMutation } = useAddressInfoQuery(bookingStore.bookingNumber);\r\n\r\nconst { nextStep } = useBookingNavigation();\r\nconst { isLoading: isSavingAddressInfo } = updateMutation;\r\nconst continueWithoutLoggingIn = (state: AddressInformation) => {\r\n updateMutation.mutateAsync(state).then(() => {\r\n const user: User = {\r\n type: UserType.Booking,\r\n };\r\n\r\n userStore.login(user);\r\n nextStep();\r\n });\r\n};\r\n\r\nconst { createAccount, isLoading: isCreatingCustomer, error } = useCreateAccount();\r\n\r\nconst registerCustomer = (state: AddressInformation) => {\r\n createAccount(state);\r\n};\r\n\r\nconst isLoggedIn = computed(() => userStore.isLoggedIn);\r\n\r\nconst v$ = useVuelidate();\r\nconst next = async (cb: Function) => {\r\n const isValid = await v$.value.$validate();\r\n if (isValid && addressInfoSaved.value) {\r\n cb();\r\n }\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(BookingSpacer),\n _createVNode(BaseSection, {\n title: _ctx.$t('booking.customerDetails.title'),\n subtitle: _ctx.$t('booking.customerDetails.subtitle'),\n infoIcon: \"booking/avatar\",\n infoText: _ctx.$t('booking.customerDetails.info')\n }, {\n default: _withCtx(() => [\n (!isLoggedIn.value)\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n _createVNode(BasePanel, null, {\n default: _withCtx(() => [\n _createVNode(LoginUser, {\n title: _ctx.$t('booking.customerDetails.login.title')\n }, null, 8, [\"title\"])\n ]),\n _: 1\n }),\n _createVNode(BaseExpansionPanel, {\n title: _ctx.$t('booking.customerDetails.register.title'),\n subtitle: _ctx.$t('booking.customerDetails.register.subtitle')\n }, {\n default: _withCtx(() => [\n _createVNode(BasePanel, null, {\n default: _withCtx(() => [\n _createVNode(CustomerDetailsForm, {\n onSubmit: registerCustomer,\n includeIslander: \"\",\n includePassword: \"\",\n error: _unref(error),\n isLoading: _unref(isCreatingCustomer)\n }, null, 8, [\"error\", \"isLoading\"])\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"title\", \"subtitle\"]),\n _createVNode(BaseExpansionPanel, {\n title: _ctx.$t('booking.customerDetails.noLogin.title'),\n subtitle: _ctx.$t('booking.customerDetails.noLogin.subtitle')\n }, {\n default: _withCtx(() => [\n _createVNode(BasePanel, null, {\n default: _withCtx(() => [\n _createVNode(CustomerDetailsForm, {\n onSubmit: continueWithoutLoggingIn,\n isLoading: _unref(isSavingAddressInfo)\n }, null, 8, [\"isLoading\"])\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"title\", \"subtitle\"])\n ], 64))\n : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [\n (_unref(isLoading))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _createVNode(BaseSpinner, { color: \"dark\" })\n ]))\n : (isAgent.value && _unref(data))\n ? (_openBlock(), _createBlock(AgentAddressInfoForm, {\n key: 1,\n agent: user.value,\n addressInfo: _unref(data),\n bookingNumber: bookingNumber.value\n }, null, 8, [\"agent\", \"addressInfo\", \"bookingNumber\"]))\n : (_unref(data))\n ? (_openBlock(), _createBlock(AddressInfoForm, {\n key: 2,\n bookingNumber: bookingNumber.value,\n address: _unref(data),\n onSaved: _cache[0] || (_cache[0] = ($event: any) => (addressInfoSaved.value = true))\n }, null, 8, [\"bookingNumber\", \"address\"]))\n : _createCommentVNode(\"\", true),\n (!isAgent.value)\n ? (_openBlock(), _createBlock(BookingContinue, { key: 3 }, {\n default: _withCtx(({ nextStep }) => [\n _createVNode(BaseButton, {\n disabled: _unref(isFetching),\n onClick: ($event: any) => (next(nextStep))\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"button.continue\")), 1)\n ]),\n _: 2\n }, 1032, [\"disabled\", \"onClick\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true)\n ], 64))\n ]),\n _: 1\n }, 8, [\"title\", \"subtitle\", \"infoText\"])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./CustomerDetails.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./CustomerDetails.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./CustomerDetails.vue?vue&type=style&index=0&id=41f7f5da&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-41f7f5da\"]])\n\nexport default __exports__","import { VehicleState } from \"@/models/store/BookingState\";\r\n\r\nexport const mapVehiclesForPrice = (vehicle: VehicleState): string[] => {\r\n if (!vehicle.code) return [];\r\n const vehicleCodes: string[] = [];\r\n for (let i = 0; i < vehicle.amount; i++) {\r\n vehicleCodes.push(vehicle.code);\r\n }\r\n\r\n return vehicleCodes;\r\n};","import useApi from \"@/composables/useApi\";\r\nimport { YYYYMMDD } from \"@/helpers/dateHelpers\";\r\nimport { mapVehiclesForPrice } from \"@/helpers/vehicleHelper\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport { useDepartureStore } from \"@/store/departure\";\r\nimport { usePassengerStore } from \"@/store/passenger\";\r\nimport { useResourceStore } from \"@/store/resource\";\r\nimport { useSeatingStore } from \"@/store/seatingStore\";\r\nimport { useTransferStore } from \"@/store/transferStore\";\r\nimport { useVehicleStore } from \"@/store/vehicle\";\r\nimport { useQueryClient } from \"vue-query\";\r\n\r\ntype SailDetailsParamDto = {\r\n route: string;\r\n date: string;\r\n allPassengers: string[];\r\n vehicles: string[];\r\n};\r\n\r\nconst useBook = () => {\r\n const { post } = useApi();\r\n const bookingStore = useBookingStore();\r\n const departureStore = useDepartureStore();\r\n const resourceStore = useResourceStore();\r\n const passengerStore = usePassengerStore();\r\n const vehicleStore = useVehicleStore();\r\n const transferStore = useTransferStore();\r\n const seatingStore = useSeatingStore();\r\n\r\n const queryClient = useQueryClient();\r\n\r\n const validateTripDetails = () => {\r\n const sailings: SailDetailsParamDto[] = [];\r\n\r\n bookingStore.getTrips.forEach((d) => {\r\n sailings.push({\r\n route: bookingStore.getRoute(d),\r\n date: YYYYMMDD(bookingStore.getDate(d) ?? \"\"),\r\n allPassengers: passengerStore.getPassengers(d).map((p) => p.type),\r\n vehicles: mapVehiclesForPrice(vehicleStore.getVehicle(d)),\r\n });\r\n });\r\n\r\n return post(\"booking/validate\", {\r\n sails: sailings,\r\n }).then(() => {\r\n queryClient.invalidateQueries(\"calc\");\r\n });\r\n };\r\n\r\n const bookDeparture = () => {\r\n const identifiers = bookingStore.getTrips.flatMap((d) => departureStore.getDeparture(d).identifier);\r\n\r\n return post(\"departure/book\", { identifiers }).then(() => {\r\n queryClient.invalidateQueries(\"calc\");\r\n queryClient.invalidateQueries(\"extras\");\r\n queryClient.invalidateQueries(\"departures\");\r\n });\r\n };\r\n\r\n const bookExtras = () => {\r\n const transferIdentifiers = bookingStore.getTrips.flatMap((d) => transferStore.getPassengers(d).map((p) => p.identifier));\r\n const seatIdentifiers = bookingStore.getTrips.flatMap((d) =>\r\n (seatingStore.getSelectedSeats(d).seats ?? []).some((s) => s != \"?\") ? seatingStore.getSelectedSeats(d).identifier : \"\"\r\n );\r\n const identifiers = bookingStore.getTrips\r\n .flatMap((d) => resourceStore.getResources(d).map((r) => r.identifier))\r\n .concat(transferIdentifiers)\r\n .concat(seatIdentifiers)\r\n .filter((i) => !!i);\r\n\r\n const seats = bookingStore.getTrips.flatMap((d) => ({\r\n route: bookingStore.getRoute(d),\r\n number: seatingStore.getSelectedSeats(d).seats?.filter((s) => s != \"?\"),\r\n }));\r\n\r\n return post(\"extras/book\", { identifiers, seats }).then(() => {\r\n queryClient.invalidateQueries(\"calc\");\r\n queryClient.invalidateQueries(\"extras\");\r\n });\r\n };\r\n\r\n return {\r\n bookDeparture,\r\n bookExtras,\r\n validateTripDetails,\r\n };\r\n};\r\n\r\nexport default useBook;\r\n","import { BookableDatesResponse, CalendarConfigResponse } from \"../api/CalendarConfigResponse\";\r\nimport { Route } from \"../Route\";\r\n\r\nexport class CalendarConfig {\r\n maxBookableDate: Date;\r\n availableDates: AvailableDates[];\r\n expiredCard: boolean;\r\n\r\n constructor(resp: CalendarConfigResponse) {\r\n this.maxBookableDate = new Date(resp.maxBookingDate);\r\n this.availableDates = resp.bookableDates.map((d) => new AvailableDates(d));\r\n this.expiredCard = resp.expiredCard;\r\n }\r\n}\r\n\r\nexport class AvailableDates {\r\n route: Route;\r\n dates: Map;\r\n\r\n constructor(resp: BookableDatesResponse) {\r\n this.route = resp.route;\r\n this.dates = new Map(Object.entries(resp.dates));\r\n }\r\n}\r\n\r\nexport type DateConfig = {\r\n date: string;\r\n price: number;\r\n isCampaign?: boolean;\r\n isDiscount?: boolean;\r\n};\r\n\r\nexport type CalendarDate = {\r\n start: Date;\r\n end: Date;\r\n};\r\n","import i18n from \"@/config/i18n\";\r\nimport { CampaignResponse, CampaignDescription } from \"../api/CampaignResponse\";\r\n\r\nexport class CurrentCampaign {\r\n title: string;\r\n description: string;\r\n couponCode: string;\r\n\r\n constructor(resp: CampaignResponse) {\r\n this.title = resp.name;\r\n const locale = (i18n.global.locale.value ?? 'sv') as keyof CampaignDescription;\r\n this.description = resp.descriptions[locale];\r\n this.couponCode = resp.couponNumber;\r\n }\r\n}","import useApi from \"@/composables/useApi\";\r\nimport { getReverseRoute } from \"@/config/routes\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport { CalendarConfigResponse } from \"@/models/api/CalendarConfigResponse\";\r\nimport { CampaignResponse } from \"@/models/api/CampaignResponse\";\r\nimport { AddCouponRequest } from \"@/models/front/AddCouponRequest\";\r\nimport { CalendarConfig } from \"@/models/front/CalendarConfig\";\r\nimport { CurrentCampaign } from \"@/models/front/CurrentCampaign\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport { computed } from \"vue\";\r\nimport { useMutation, useQuery, useQueryClient } from \"vue-query\";\r\n\r\nconst useCalendarQuery = () => {\r\n const { get, post } = useApi();\r\n const bookingStore = useBookingStore();\r\n const queryClient = useQueryClient();\r\n\r\n const params = computed(() => bookingStore.getCampaign.title);\r\n\r\n const addCampaignMutation = useMutation(\r\n (request: AddCouponRequest) => {\r\n return post(`coupon/add`, request).then((resp) => {\r\n const campaign = new CurrentCampaign(resp.data);\r\n bookingStore.setCampaign(campaign);\r\n if (resp.data.route) {\r\n bookingStore.setRoute(Direction.Outward, resp.data.route);\r\n bookingStore.setRoute(Direction.Return, getReverseRoute(resp.data.route));\r\n }\r\n return campaign;\r\n });\r\n },\r\n {\r\n onSuccess: () => {\r\n queryClient.invalidateQueries(\"calendar\");\r\n },\r\n }\r\n );\r\n\r\n const removeCampaignMutation = useMutation(\r\n (campaignCode: string) => {\r\n return post(`coupon/remove?voucher=${campaignCode}`, {}).then(() => {\r\n bookingStore.setCampaign({\r\n title: \"\",\r\n description: \"\",\r\n couponCode: \"\",\r\n });\r\n });\r\n },\r\n {\r\n onSuccess: () => {\r\n queryClient.invalidateQueries(\"calendar\");\r\n },\r\n }\r\n );\r\n\r\n const fetcher = () => {\r\n return get(\"settings/calendar\", \"\").then((resp) => new CalendarConfig(resp.data));\r\n };\r\n\r\n return {\r\n ...useQuery([\"calendar\", params], fetcher, {\r\n refetchOnWindowFocus: false,\r\n staleTime: 1000 * 60 * 10,\r\n retry: false,\r\n }),\r\n addCampaignMutation,\r\n removeCampaignMutation,\r\n };\r\n};\r\n\r\nexport default useCalendarQuery;\r\n","import { parseDate, today } from \"@/helpers/dateHelpers\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport { startOfDay, startOfToday } from \"date-fns\";\r\nimport { computed, readonly } from \"vue\";\r\nimport useCalendarQuery from \"./useCalendarQuery\";\r\n\r\nconst useBookingCalendar = (direction: Direction, filterReturn = true) => {\r\n const { data, isLoading, error } = useCalendarQuery();\r\n const bookingStore = useBookingStore();\r\n\r\n const calendarConfig = computed(() => (data.value ? data.value : { maxBookableDate: new Date(), availableDates: [] }));\r\n\r\n const availableDates = computed(() => {\r\n const route = bookingStore.getRoute(direction);\r\n const outwardDate = startOfDay(bookingStore.getDate(Direction.Outward) ?? new Date());\r\n\r\n const configForRoute = calendarConfig.value.availableDates.find((d) => d.route.code === route);\r\n\r\n if (!configForRoute) return [{ start: new Date(0), end: new Date(0) }];\r\n\r\n let dates = configForRoute.dates;\r\n\r\n if (bookingStore.hasCampaign) {\r\n dates = new Map([...configForRoute.dates].filter(([key, value]) => value.some((v) => v.isCampaign)));\r\n\r\n if (!dates.size) {\r\n dates = configForRoute.dates;\r\n }\r\n }\r\n\r\n let available = Array.from(dates, ([key, value]) => ({ start: parseDate(key), end: parseDate(key), value })).filter(\r\n (d) => d.start >= startOfToday() && d.value.length\r\n );\r\n\r\n if (direction === Direction.Return && available.length > 1) {\r\n //Filter out the dates that are before the outward date\r\n if (filterReturn) {\r\n available = available.filter((a) => a.start >= outwardDate);\r\n }\r\n\r\n if (available.length < 1) {\r\n //If we supply no dates at all, everything will be available..\r\n available = [{ start: new Date(0), end: new Date(0), value: [] }];\r\n }\r\n }\r\n\r\n return available.sort((a, b) => {\r\n return (a.start as any) - (b.start as any);\r\n });\r\n });\r\n\r\n const pricedDates = computed(() => {\r\n const route = bookingStore.getRoute(direction);\r\n const dates = calendarConfig.value.availableDates.find((d) => d.route.code === route)?.dates;\r\n return dates;\r\n });\r\n\r\n const getNextAvailableDate = (offset = 0) => {\r\n const date = direction === Direction.Return ? startOfDay(bookingStore.getDate(Direction.Outward) ?? today()) : today();\r\n let firstDateIndex = availableDates.value.findIndex((d) => d.start >= date) + offset;\r\n\r\n if (firstDateIndex > availableDates.value.length - 1) {\r\n firstDateIndex = availableDates.value.length - 1;\r\n }\r\n\r\n return availableDates.value[firstDateIndex];\r\n };\r\n\r\n const maxBookableDate = computed(() => {\r\n return calendarConfig.value.maxBookableDate;\r\n });\r\n\r\n const isExpiredCard = computed(() => data.value?.expiredCard);\r\n\r\n return {\r\n calendarConfig: readonly(calendarConfig),\r\n getNextAvailableDate,\r\n availableDates,\r\n isLoading,\r\n pricedDates,\r\n maxBookableDate,\r\n error,\r\n isExpiredCard,\r\n };\r\n};\r\n\r\nexport default useBookingCalendar;\r\n","import { Direction, TripType } from \"@/models/Enums\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport { computed } from \"vue\";\r\nimport useBookingCalendar from \"./useBookingCalendar\";\r\n\r\nconst useBookingDate = () => {\r\n const bookingStore = useBookingStore();\r\n const { getNextAvailableDate } = useBookingCalendar(Direction.Return);\r\n\r\n const outwardDate = computed({\r\n get(): Date | undefined {\r\n return bookingStore.getDate(Direction.Outward);\r\n },\r\n set(value: Date | undefined) {\r\n bookingStore.setDate(Direction.Outward, value);\r\n const returnDate = bookingStore.getDate(Direction.Return) ?? new Date();\r\n const outwardDate = value ?? new Date();\r\n if (returnDate < outwardDate && bookingStore.tripType === TripType.Return) {\r\n const nextAvailable = getNextAvailableDate(1);\r\n bookingStore.setDate(Direction.Return, nextAvailable?.start);\r\n }\r\n },\r\n });\r\n\r\n const returnDate = computed({\r\n get(): Date | undefined {\r\n return bookingStore.getDate(Direction.Return);\r\n },\r\n set(value: Date | undefined) {\r\n bookingStore.setDate(Direction.Return, value);\r\n },\r\n });\r\n\r\n return {\r\n outwardDate,\r\n returnDate,\r\n };\r\n};\r\n\r\nexport default useBookingDate;\r\n","import { getReturnRoutes, getReverseRoute } from \"@/config/routes\";\r\nimport { Direction, TripType } from \"@/models/Enums\";\r\nimport useRoutesQuery from \"@/modules/BookingFlow/composables/useRoutesQuery\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport { computed, readonly, watch } from \"vue\";\r\nimport { useI18n } from \"vue-i18n\";\r\n\r\nconst useRouteAndDate = () => {\r\n const { t } = useI18n();\r\n const bookingStore = useBookingStore();\r\n const { data } = useRoutesQuery();\r\n\r\n const routes = computed(() => {\r\n return (\r\n data.value?.map((d) => ({\r\n value: d.routeCode,\r\n label: t(`routes.${d.routeCode}`),\r\n })) ?? []\r\n );\r\n });\r\n\r\n const returnRoutes = computed(() => {\r\n if (bookingStore.tripType !== TripType.Return) return [];\r\n return getReturnRoutes(bookingStore.getRoute(Direction.Outward), routes.value);\r\n });\r\n\r\n watch(returnRoutes, () => {\r\n const outwardRoute = bookingStore.getRoute(Direction.Outward);\r\n if (outwardRoute && !returnRoutes.value.some((v) => v.value === returnRoute.value)) {\r\n bookingStore.setRoute(Direction.Return, getReverseRoute(outwardRoute));\r\n }\r\n });\r\n\r\n const outwardRoute = computed({\r\n get() {\r\n return bookingStore.getRoute(Direction.Outward);\r\n },\r\n set(val: string) {\r\n bookingStore.setRoute(Direction.Outward, val);\r\n },\r\n });\r\n\r\n const returnRoute = computed({\r\n get() {\r\n return bookingStore.getRoute(Direction.Return);\r\n },\r\n set(val: string) {\r\n bookingStore.setRoute(Direction.Return, val);\r\n },\r\n });\r\n\r\n const isReturn = computed({\r\n get() {\r\n return bookingStore.tripType === TripType.Return;\r\n },\r\n set(val: boolean) {\r\n bookingStore.setTripType(val ? TripType.Return : TripType.Single);\r\n },\r\n });\r\n\r\n return { routes: readonly(routes), returnRoutes, outwardRoute, returnRoute, isReturn };\r\n};\r\n\r\nexport default useRouteAndDate;\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock, mergeProps as _mergeProps, createTextVNode as _createTextVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"date-picker\" }\nconst _hoisted_2 = { key: 0 }\nconst _hoisted_3 = { key: 1 }\nconst _hoisted_4 = [\"tabindex\", \"aria-label\", \"aria-disabled\"]\nconst _hoisted_5 = {\n key: 0,\n class: \"vc-day-price\"\n}\nconst _hoisted_6 = { key: 3 }\nconst _hoisted_7 = {\n key: 4,\n class: \"date-picker__loading\"\n}\nconst _hoisted_8 = {\n key: 5,\n class: \"legend\"\n}\nconst _hoisted_9 = { class: \"has-discount has-discount--reverse\" }\nconst _hoisted_10 = { style: {\"display\":\"block\",\"margin-top\":\"5px\"} }\nconst _hoisted_11 = { class: \"btn-container\" }\n\nimport BaseAlert from \"@/components/base/BaseAlert.vue\";\r\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport BaseSpinner from \"@/components/base/BaseSpinner.vue\";\r\nimport SvgIcon from \"@/components/base/SvgIcon.vue\";\r\nimport Dropdown from \"@/components/Dropdown.vue\";\r\nimport { today, YYYYMMDD } from \"@/helpers/dateHelpers\";\r\nimport { formatPrice } from \"@/helpers/priceHelpers\";\r\nimport { Direction, TripType } from \"@/models/Enums\";\r\nimport { DateConfig } from \"@/models/front/CalendarConfig\";\r\nimport useBookingCalendar from \"@/modules/BookingFlow/composables/useBookingCalendar\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport { useUserStore } from \"@/store/user\";\r\nimport { watchDebounced } from \"@vueuse/core\";\r\nimport { eachDayOfInterval, Interval, startOfDay } from \"date-fns\";\r\nimport { DatePicker } from \"v-calendar\";\r\nimport { computed, ref, watch } from \"vue\";\r\nimport useSnackbar from \"@/composables/useSnackbar\";\r\nimport { useI18n } from \"vue-i18n\";\r\n\r\ninterface Props {\r\n placeholder: string;\r\n label: string;\r\n modelValue?: Date;\r\n isActive: boolean;\r\n direction: Direction;\r\n hasError?: boolean;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TravelDatePicker',\n props: {\n placeholder: {},\n label: {},\n modelValue: {},\n isActive: { type: Boolean },\n direction: {},\n hasError: { type: Boolean }\n },\n emits: [\"update:modelValue\", \"input\"],\n setup(__props: any, { emit: __emit }) {\n\r\nconst props = __props;\r\nconst emit = __emit;\r\nconst userStore = useUserStore();\r\nconst isStaff = computed(() => userStore.getUser.customerType === \"Staff\");\r\nconst showLowPrice = ref(!isStaff.value);\r\n\r\nconst { t } = useI18n();\r\n\r\nconst { displaySnack } = useSnackbar();\r\n\r\nconst setActive = (value = false) => {\r\n emit(\"input\", value);\r\n};\r\n\r\nconst { availableDates, pricedDates, error, isLoading, isExpiredCard } = useBookingCalendar(props.direction);\r\n\r\nconst availableDatesMap = computed(() => {\r\n return new Map(availableDates.value.map((d) => [YYYYMMDD(d.start), \"\"]));\r\n});\r\n\r\nconst isDisabled = (date: Date) => {\r\n return !availableDatesMap.value.has(YYYYMMDD(date));\r\n};\r\n\r\nconst getPricedDate = (key: string): DateConfig => {\r\n if (!pricedDates.value?.get) return {} as DateConfig;\r\n const date = pricedDates.value?.get(key);\r\n if (!date) return {} as DateConfig;\r\n const minPrice = Math.min(...date.map((o) => o.price));\r\n return date.find((d) => d.price === minPrice) ?? ({} as DateConfig);\r\n};\r\n\r\nconst bookingStore = useBookingStore();\r\n\r\nconst interval = computed(() => {\r\n const interval = {\r\n start: bookingStore.getDate(Direction.Outward),\r\n end:\r\n bookingStore.tripType === TripType.Return\r\n ? bookingStore.getDate(Direction.Return) ?? bookingStore.getDate(Direction.Outward)\r\n : bookingStore.getDate(Direction.Outward),\r\n };\r\n\r\n if (!interval.start || !interval.end) {\r\n return new Map();\r\n }\r\n\r\n if (interval.start.getTime() >= interval.end.getTime()) {\r\n return new Map();\r\n }\r\n\r\n const dateMap = new Map(eachDayOfInterval(interval as Interval).map((d) => [YYYYMMDD(d), d]));\r\n return dateMap;\r\n});\r\n\r\nconst value = computed({\r\n get() {\r\n return props.modelValue;\r\n },\r\n set(val: Date | undefined) {\r\n setActive();\r\n emit(\"update:modelValue\", val);\r\n },\r\n});\r\n\r\nconst dateIsInRange = computed(() => { \r\n if (value.value) {\r\n return !!availableDates.value.find((d) => YYYYMMDD(d.start) === YYYYMMDD(value.value ?? \"\"));\r\n }\r\n return false;\r\n});\r\n\r\nwatch(dateIsInRange, (c) => {\r\n if (!c && value.value) {\r\n value.value = undefined;\r\n displaySnack({\r\n message: t(\"booking.tripDetails.campaign.dateNotInRange\"),\r\n type: \"danger\",\r\n id: \"campaignDateError\",\r\n });\r\n }\r\n});\r\n\r\nconst dropdownRef = ref();\r\n\r\nwatchDebounced(value, (current) => {\r\n if (current && dropdownRef.value.isOpen) {\r\n dropdownRef.value.toggle();\r\n }\r\n});\r\n\r\nconst minDate = computed(() => {\r\n if (props.direction === Direction.Outward) return today();\r\n const outwardDate = bookingStore.getDate(Direction.Outward);\r\n return outwardDate ? startOfDay(outwardDate) : today();\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(Dropdown, {\n ref_key: \"dropdownRef\",\n ref: dropdownRef,\n mobileModal: \"\",\n modalTitle: _ctx.placeholder,\n class: \"date-picker__dropdown\"\n }, {\n trigger: _withCtx(({ toggle, isOpen }) => [\n _createVNode(BaseButton, {\n hasError: _ctx.hasError,\n class: _normalizeClass([\"btn--input\", { active: isOpen }]),\n type: \"button\",\n icon: \"booking/calendar\",\n iconSize: \"sm\",\n onClick: toggle\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"span\", {\n class: _normalizeClass({ placeholder: value.value == undefined })\n }, _toDisplayString(value.value == undefined ? _ctx.placeholder : `${_ctx.label} ${value.value ? _unref(YYYYMMDD)(value.value) : \"\"}`), 3)\n ]),\n _: 2\n }, 1032, [\"hasError\", \"class\", \"onClick\"])\n ]),\n close: _withCtx(({ toggle }) => [\n _createElementVNode(\"div\", _hoisted_11, [\n _createVNode(BaseButton, {\n class: _normalizeClass('btn--secondary btn--fixed-width'),\n onClick: toggle\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"button.done\")), 1)\n ]),\n _: 2\n }, 1032, [\"onClick\"])\n ])\n ]),\n default: _withCtx(() => [\n (_unref(isExpiredCard))\n ? (_openBlock(), _createBlock(BaseAlert, {\n key: 0,\n class: \"calendar-alert\",\n type: \"info\",\n message: _ctx.$t('errors.11007')\n }, null, 8, [\"message\"]))\n : _createCommentVNode(\"\", true),\n (!isStaff.value)\n ? (_openBlock(), _createBlock(BaseButton, {\n key: 1,\n class: \"btn--transparent btn--lowprice\",\n type: \"button\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (showLowPrice.value = !showLowPrice.value)),\n icon: \"booking/shift\",\n iconSize: 'auto'\n }, {\n default: _withCtx(() => [\n (showLowPrice.value)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, _toDisplayString(_ctx.$t(\"booking.tripDetails.calendarType.standard\")), 1))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_3, _toDisplayString(_ctx.$t(\"booking.tripDetails.calendarType.lowPrice\")), 1))\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (!!_unref(pricedDates))\n ? (_openBlock(), _createBlock(_unref(DatePicker), {\n key: 2,\n firstDayOfWeek: 2,\n \"show-iso-weeknumbers\": \"\",\n \"trim-weeks\": \"\",\n masks: {\r\n weekdays: 'WWW',\r\n input: ['YYYY-MM-DD'],\r\n },\n locale: _ctx.$i18n.locale,\n modelValue: value.value,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((value).value = $event)),\n maxDate: _unref(availableDates)[_unref(availableDates).length - 1].end\n }, {\n \"day-content\": _withCtx(({ day, dayEvents }) => [\n _createElementVNode(\"div\", _mergeProps({ role: \"button\" }, dayEvents, {\n class: [\"vc-day-content vc-focusable\", [\r\n { 'is-disabled': isDisabled(day.date) },\r\n { 'in-interval': !!interval.value.get(_unref(YYYYMMDD)(day.date)) },\r\n { 'is-selected': value.value ? _unref(YYYYMMDD)(value.value) === _unref(YYYYMMDD)(day.date) : false },\r\n { 'low-price': showLowPrice.value },\r\n { 'is-discount': getPricedDate(_unref(YYYYMMDD)(day.date)).isDiscount },\r\n { 'is-campaign': getPricedDate(_unref(YYYYMMDD)(day.date)).isCampaign },\r\n ]],\n tabindex: day.date < minDate.value ? '-1' : '0',\n \"aria-label\": _unref(YYYYMMDD)(day.date),\n \"aria-disabled\": day.date < minDate.value\n }), [\n _createElementVNode(\"div\", null, _toDisplayString(day.label), 1),\n (showLowPrice.value && day.date >= minDate.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, _toDisplayString(_unref(formatPrice)(getPricedDate(_unref(YYYYMMDD)(day.date)).price)), 1))\n : _createCommentVNode(\"\", true)\n ], 16, _hoisted_4)\n ]),\n _: 1\n }, 8, [\"locale\", \"modelValue\", \"maxDate\"]))\n : (_unref(error))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [\n _createVNode(BaseAlert, {\n class: \"calendar-alert\",\n type: \"danger\",\n message: (_unref(error) as any).message\n }, null, 8, [\"message\"])\n ]))\n : (_unref(isLoading))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n _createVNode(BaseSpinner, { color: \"dark\" })\n ]))\n : _createCommentVNode(\"\", true),\n (showLowPrice.value)\n ? (_openBlock(), _createElementBlock(\"ul\", _hoisted_8, [\n _createElementVNode(\"li\", null, [\n _createVNode(SvgIcon, { icon: \"booking/person\" }),\n _createElementVNode(\"p\", null, _toDisplayString(_ctx.$t(\"booking.tripDetails.lowPriceLegend.price\")), 1)\n ]),\n _createElementVNode(\"li\", null, [\n _createElementVNode(\"p\", _hoisted_9, [\n _createTextVNode(_toDisplayString(_ctx.$t(\"booking.tripDetails.lowPriceLegend.hasDiscount\")) + \" \", 1),\n _createElementVNode(\"small\", _hoisted_10, _toDisplayString(_ctx.$t(\"booking.tripDetails.lowPriceLegend.notice\")), 1)\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"modalTitle\"])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./TravelDatePicker.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./TravelDatePicker.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./TravelDatePicker.vue?vue&type=style&index=0&id=a8df1228&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, isRef as _isRef, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, Fragment as _Fragment, normalizeClass as _normalizeClass, renderSlot as _renderSlot, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-68524a16\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"outward\" }\nconst _hoisted_2 = { class: \"input-group\" }\nconst _hoisted_3 = {\n key: 0,\n class: \"radio-container\"\n}\nconst _hoisted_4 = { class: \"input-group\" }\nconst _hoisted_5 = { key: 1 }\nconst _hoisted_6 = { class: \"input-group\" }\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"spacer\" }, null, -1))\nconst _hoisted_8 = { class: \"input-group\" }\nconst _hoisted_9 = { class: \"slot\" }\n\nimport BaseDropdown from \"@/components/base/BaseDropdown.vue\";\r\nimport BaseToggleSwitch from \"@/components/base/BaseToggleSwitch.vue\";\r\nimport { outwardDateRequired, returnDateRequired } from \"@/helpers/validators\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport useBookingDate from \"@/modules/BookingFlow/composables/useBookingDate\";\r\nimport useRouteAndDate from \"@/modules/BookingFlow/composables/useRouteAndDate\";\r\nimport useVuelidate from \"@vuelidate/core\";\r\nimport { helpers } from \"@vuelidate/validators\";\r\nimport { computed, reactive, ref } from \"vue\";\r\nimport { useI18n } from \"vue-i18n\";\r\nimport TravelDatePicker from \"./TravelDatePicker.vue\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\n\r\ninterface Props {\r\n hideTripTypeSelect?: boolean;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'RouteAndDate',\n props: {\n hideTripTypeSelect: { type: Boolean, default: false }\n },\n setup(__props: any) {\n\r\n\r\n\r\nconst { routes, returnRoutes, outwardRoute, returnRoute, isReturn } = useRouteAndDate();\r\nconst { outwardDate, returnDate } = useBookingDate();\r\nconst { t } = useI18n();\r\n\r\nconst { getIsLocked } = useBookingStore();\r\n\r\nconst isOutwardLocked = computed(() => getIsLocked(Direction.Outward));\r\n\r\nconst state = reactive({\r\n outwardRoute: \"\",\r\n returnRoute: \"\",\r\n outwardDate: new Date(),\r\n returnDate: new Date(),\r\n});\r\n\r\nconst rules = {\r\n outwardRoute: {\r\n v: () => !!outwardRoute.value,\r\n },\r\n returnRoute: {\r\n v: () => !isReturn.value || !!returnRoute.value,\r\n },\r\n outwardDate: {\r\n v: helpers.withMessage(t(\"validations.outwardDateRequired\"), () => outwardDateRequired(outwardDate.value) || isOutwardLocked.value),\r\n },\r\n returnDate: {\r\n v: helpers.withMessage(t(\"validations.returnDateRequired\"), () =>\r\n returnDateRequired(isReturn.value, returnDate.value, outwardDate.value)\r\n ),\r\n },\r\n};\r\n\r\nconst v$ = useVuelidate(rules, state);\r\n\r\nconst isCalendarActive = ref(false);\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"route-date\", { 'route-date--triptype': !_ctx.hideTripTypeSelect }])\n }, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"h3\", null, _toDisplayString(_ctx.$t(\"booking.directions.0\")), 1),\n (!isOutwardLocked.value)\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(BaseDropdown, {\n hasError: _unref(v$).outwardRoute.$error,\n options: _unref(routes),\n name: \"Route\",\n placeholder: _ctx.$t('quickform.chooseOutward'),\n modelValue: _unref(outwardRoute),\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(outwardRoute) ? (outwardRoute).value = $event : null))\n }, null, 8, [\"hasError\", \"options\", \"placeholder\", \"modelValue\"])\n ]),\n (!_ctx.hideTripTypeSelect)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n _createVNode(BaseToggleSwitch, {\n id: \"tripType\",\n modelValue: _unref(isReturn),\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_isRef(isReturn) ? (isReturn).value = $event : null)),\n label: _ctx.$t('quickform.tripType.return')\n }, null, 8, [\"modelValue\", \"label\"])\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(TravelDatePicker, {\n onInput: _cache[2] || (_cache[2] = (val) => (isCalendarActive.value = !val)),\n direction: _unref(Direction).Outward,\n isActive: isCalendarActive.value,\n placeholder: _ctx.$t('booking.departure.selectOutward'),\n label: _ctx.$t('booking.directions.0'),\n name: \"startDate\",\n modelValue: _unref(outwardDate),\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => (_isRef(outwardDate) ? (outwardDate).value = $event : null)),\n hasError: _unref(v$).outwardDate.$error\n }, null, 8, [\"direction\", \"isActive\", \"placeholder\", \"label\", \"modelValue\", \"hasError\"])\n ])\n ], 64))\n : (_openBlock(), _createElementBlock(\"p\", _hoisted_5, _toDisplayString(_ctx.$t(\"booking.outwardLocked\")), 1))\n ]),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"return\", { disabled: !_unref(isReturn) }])\n }, [\n _createElementVNode(\"h3\", null, _toDisplayString(_ctx.$t(\"booking.directions.1\")), 1),\n _createElementVNode(\"div\", _hoisted_6, [\n _createVNode(BaseDropdown, {\n hasError: _unref(v$).returnRoute.$error,\n options: _unref(returnRoutes),\n name: \"Route\",\n placeholder: _ctx.$t('quickform.chooseReturn'),\n modelValue: _unref(returnRoute),\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => (_isRef(returnRoute) ? (returnRoute).value = $event : null))\n }, null, 8, [\"hasError\", \"options\", \"placeholder\", \"modelValue\"])\n ]),\n _hoisted_7,\n _createElementVNode(\"div\", _hoisted_8, [\n _createVNode(TravelDatePicker, {\n onInput: _cache[5] || (_cache[5] = (val) => (isCalendarActive.value = !val)),\n hasError: _unref(v$).returnDate.$error,\n isActive: isCalendarActive.value,\n placeholder: _ctx.$t('booking.departure.selectReturn'),\n label: _ctx.$t('booking.directions.1'),\n direction: _unref(Direction).Return,\n name: \"returnDate\",\n modelValue: _unref(returnDate),\n \"onUpdate:modelValue\": _cache[6] || (_cache[6] = ($event: any) => (_isRef(returnDate) ? (returnDate).value = $event : null))\n }, null, 8, [\"hasError\", \"isActive\", \"placeholder\", \"label\", \"direction\", \"modelValue\"])\n ])\n ], 2),\n _createElementVNode(\"div\", _hoisted_9, [\n _renderSlot(_ctx.$slots, \"default\")\n ])\n ], 2))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./RouteAndDate.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./RouteAndDate.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./RouteAndDate.vue?vue&type=style&index=0&id=68524a16&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-68524a16\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-3b169b12\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"departure-edit\" }\n\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport BasePanel from \"@/components/base/BasePanel.vue\";\r\nimport BaseTransitionExpand from \"@/components/base/BaseTransitionExpand.vue\";\r\nimport { ref } from \"vue\";\r\nimport BookingSpacer from \"../BookingSpacer.vue\";\r\nimport RouteAndDate from \"../trip-details/RouteAndDate.vue\";\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'DepartureEdit',\n setup(__props) {\n\r\nconst showEdit = ref(false);\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(BaseButton, {\n type: \"button\",\n class: \"btn--transparent\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (showEdit.value = !showEdit.value)),\n icon: \"booking/settings\",\n iconPosition: \"left\"\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t(\"booking.departure.edit\")), 1)\n ]),\n _: 1\n }),\n _createVNode(BaseTransitionExpand, { expanded: showEdit.value }, {\n default: _withCtx(() => [\n _createVNode(BasePanel, null, {\n default: _withCtx(() => [\n _createVNode(RouteAndDate, { hideTripTypeSelect: \"\" })\n ]),\n _: 1\n }),\n _createVNode(BookingSpacer)\n ]),\n _: 1\n }, 8, [\"expanded\"])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./DepartureEdit.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./DepartureEdit.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./DepartureEdit.vue?vue&type=style&index=0&id=3b169b12&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-3b169b12\"]])\n\nexport default __exports__","import { Direction } from \"@/models/Enums\";\r\n\r\nexport const getReturn = (direction: Direction) => {\r\n return direction === Direction.Outward ? Direction.Return : Direction.Outward;\r\n}\r\n","import i18n from \"@/config/i18n\";\r\nimport { hourHasPassed, parseDate } from \"@/helpers/dateHelpers\";\r\nimport { getDepartureId } from \"@/helpers/idHelper\";\r\nimport { DialogMessage, DialogType } from \"../Symbols/Dialog\";\r\nimport {\r\n DeparturePriceResponse,\r\n DepartureResourceDto,\r\n DepartureResourceSectionDto,\r\n DepartureResourceTicketGroupDto,\r\n DepartureTicketGroupInfoDto,\r\n} from \"../api/DeparturePriceResponse\";\r\n\r\nexport class DeparturePrice {\r\n id: string;\r\n departureDate: Date;\r\n arrivalDate: Date;\r\n route: string;\r\n ship: string;\r\n departureId: string;\r\n comfortSections: DepartureComfortSection[];\r\n bestPrice?: number;\r\n currency: string;\r\n isBookable: boolean;\r\n isVehicleBookable: boolean;\r\n hasDiscount: boolean;\r\n isCampaign: boolean;\r\n isFreight: boolean;\r\n\r\n constructor(resp: DeparturePriceResponse) {\r\n this.id = resp.departureId; // departureId is not unique, only unique for day and route?\r\n this.departureDate = parseDate(resp.departureDate);\r\n this.arrivalDate = parseDate(resp.arrivalDate);\r\n this.route = resp.route;\r\n this.ship = i18n.global.t(`ships.${resp.ship}`);\r\n this.departureId = getDepartureId(this.route, resp.departureDate);\r\n this.bestPrice = resp.bestPrice;\r\n this.currency = \"SEK\";\r\n this.hasDiscount = resp.isDiscounted;\r\n this.isBookable = resp.isBookable && !hourHasPassed(this.departureDate);\r\n this.isVehicleBookable = resp.isVehicleBookable;\r\n this.isCampaign = resp.isCampaign;\r\n this.comfortSections = resp.sections.map((section) => new DepartureComfortSection(section, this.ship));\r\n this.isFreight = resp.isFreight ?? false;\r\n }\r\n}\r\n\r\nclass DepartureTicketGroupInfo {\r\n name: string;\r\n description: string;\r\n code: string;\r\n\r\n constructor(resp: DepartureTicketGroupInfoDto) {\r\n this.name = resp.name;\r\n this.code = resp.code;\r\n this.description = resp.description;\r\n }\r\n}\r\n\r\nclass DepartureComfortSection {\r\n type: string;\r\n description: string;\r\n resources: DepartureResource[];\r\n ticketGroups: DepartureTicketGroupInfo[];\r\n\r\n constructor(resp: DepartureResourceSectionDto, ship: string) {\r\n this.type = resp.type;\r\n this.description = resp.type;\r\n this.ticketGroups = resp.ticketGroups.map((tg) => new DepartureTicketGroupInfo(tg));\r\n this.resources = resp.resources.map((resource) => new DepartureResource(resource, ship, this.ticketGroups));\r\n }\r\n}\r\n\r\nexport class DepartureResource {\r\n resourceCode: string;\r\n label: string;\r\n description: string;\r\n extraInfo?: string;\r\n ticketGroups: DepartureTicketGroup[];\r\n\r\n constructor(resp: DepartureResourceDto, ship: string, ticketGroupInfo: DepartureTicketGroupInfo[]) {\r\n this.resourceCode = resp.resourceCode;\r\n this.label = i18n.global.t(`resources.${resp.resourceCode}.label`);\r\n this.ticketGroups = resp.ticketgroups.map((tg) => new DepartureTicketGroup(tg, resp.resourceCode, ticketGroupInfo));\r\n this.description = i18n.global.t(`resources.${resp.resourceCode}.description`);\r\n if (i18n.global.te(`resources.${resp.resourceCode}.shipInfo.${ship}`)) {\r\n this.extraInfo = i18n.global.t(`resources.${resp.resourceCode}.shipInfo.${ship}`);\r\n }\r\n }\r\n}\r\n\r\nexport class DepartureTicketGroup {\r\n id: string;\r\n name: string;\r\n code: string;\r\n identifier: string;\r\n price: number;\r\n currency: string;\r\n isCampaign: boolean;\r\n description: string;\r\n isBookable: boolean;\r\n isSplit: boolean;\r\n dialogMessage?: DialogMessage;\r\n isDiscounted: boolean;\r\n\r\n constructor(resp: DepartureResourceTicketGroupDto, resourceCode: string, ticketGroupInfo: DepartureTicketGroupInfo[]) {\r\n this.id = resp.id;\r\n this.name = resp.name;\r\n this.code = resp.code;\r\n this.identifier = resp.identifier;\r\n this.price = resp.price;\r\n this.description = ticketGroupInfo.find((tg) => tg.code == resp.code)?.description ?? \"\";\r\n this.currency = \"SEK\";\r\n this.isBookable = resp.isBookable;\r\n this.isSplit = resourceCode === \"DP\";\r\n this.isCampaign = resp.isCampaign;\r\n this.dialogMessage = resolveDialogMessage(resourceCode);\r\n this.isDiscounted = resp.isDiscounted ?? false;\r\n }\r\n}\r\n\r\nconst resolveDialogMessage = (resourceCode: string) => {\r\n if (resourceCode === \"B2H\") {\r\n return {\r\n title: i18n.global.t(\"messages.B2H.title\"),\r\n message: i18n.global.t(\"messages.B2H.body\"),\r\n type: DialogType.info,\r\n yes: i18n.global.t(\"button.ok\"),\r\n };\r\n }\r\n};\r\n","import useApi from \"@/composables/useApi\";\r\nimport { YYYYMMDD } from \"@/helpers/dateHelpers\";\r\nimport { getReturn } from \"@/helpers/directionHelper\";\r\nimport { mapVehiclesForPrice } from \"@/helpers/vehicleHelper\";\r\nimport { DeparturePriceResponse } from \"@/models/api/DeparturePriceResponse\";\r\nimport { PriceDepartureRequest } from \"@/models/api/PriceDepartureRequest\";\r\nimport { Direction, TripType } from \"@/models/Enums\";\r\nimport { DeparturePrice } from \"@/models/front/DeparturePrice\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport { usePassengerStore } from \"@/store/passenger\";\r\nimport { useUserStore } from \"@/store/user\";\r\nimport { useVehicleStore } from \"@/store/vehicle\";\r\nimport PQueue from \"p-queue\";\r\nimport { computed } from \"vue\";\r\nimport { useQuery } from \"vue-query\";\r\n\r\nconst queue = new PQueue({ concurrency: 1 });\r\n\r\nconst useDepartureQuery = (direction: Direction, date?: string, route?: string, disabled?: boolean) => {\r\n const { post } = useApi();\r\n const bookingStore = useBookingStore();\r\n const vehicleStore = useVehicleStore();\r\n const passengerStore = usePassengerStore();\r\n const userStore = useUserStore();\r\n\r\n const params = computed((): PriceDepartureRequest => {\r\n const hasReturn = bookingStore.tripType === TripType.Return;\r\n const returnDate = hasReturn ? bookingStore.getDate(getReturn(direction)) : undefined;\r\n const returnRoute = hasReturn ? bookingStore.getRoute(getReturn(direction)) : undefined;\r\n\r\n return {\r\n route: route ?? bookingStore.getRoute(direction),\r\n date: date ?? YYYYMMDD(bookingStore.getDate(direction) ?? new Date()),\r\n allPassengers: passengerStore.getPassengers(direction).map((p) => p.type),\r\n vehicles: mapVehiclesForPrice(vehicleStore.getVehicle(direction)),\r\n currency: bookingStore.getCurrency,\r\n returnRoute,\r\n returnDate: returnDate ? YYYYMMDD(returnDate) : undefined,\r\n petInVehicle: vehicleStore.getVehicle(direction)?.petInVehicle,\r\n isGasOrElectricalCar: vehicleStore.getVehicle(direction)?.isGasOrElectric,\r\n productCode: bookingStore.getIsAmending ? bookingStore.getProductCode : userStore.getSelectedProductCode,\r\n direction,\r\n };\r\n });\r\n\r\n return {\r\n ...useQuery({\r\n queryKey: [\"departures\", params],\r\n queryFn: ({ signal }) => {\r\n return queue.add(() =>\r\n post(\"price/search\", params.value, {}, signal).then((resp) =>\r\n resp.data?.map((departure) => new DeparturePrice(departure))\r\n )\r\n );\r\n },\r\n refetchOnWindowFocus: false,\r\n keepPreviousData: true,\r\n staleTime: 1000 * 60,\r\n retry: false,\r\n enabled: computed(() => !disabled),\r\n }),\r\n params,\r\n };\r\n};\r\n\r\nexport default useDepartureQuery;\r\n","import useApi from \"@/composables/useApi\";\r\nimport { YYYYMMDD } from \"@/helpers/dateHelpers\";\r\nimport { getReturn } from \"@/helpers/directionHelper\";\r\nimport { mapVehiclesForPrice } from \"@/helpers/vehicleHelper\";\r\nimport { Direction, TripType } from \"@/models/Enums\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport { useDepartureStore } from \"@/store/departure\";\r\nimport { usePassengerStore } from \"@/store/passenger\";\r\nimport { useResourceSplitStore } from \"@/store/resourceSplit\";\r\nimport { useVehicleStore } from \"@/store/vehicle\";\r\nimport { computed } from \"vue\";\r\nimport { useQuery } from \"vue-query\";\r\n\r\ntype SplitResponse = {\r\n resourceCode: string;\r\n resources: SplitResource[];\r\n};\r\n\r\ntype SplitResource = {\r\n resourceCode: string;\r\n identifier: string;\r\n};\r\n\r\nconst useSplitResourceQuery = (direction: Direction, departureId: string) => {\r\n const { post } = useApi();\r\n const passengerStore = usePassengerStore();\r\n const bookingStore = useBookingStore();\r\n const vehicleStore = useVehicleStore();\r\n const departureStore = useDepartureStore();\r\n const splitStore = useResourceSplitStore();\r\n\r\n const params = computed(() => {\r\n const allPassengers = passengerStore.getPassengers(direction);\r\n const splitPassengers = allPassengers.filter((p) => p.id && splitStore.getPassengerIds(direction).includes(p.id));\r\n const otherPassengers = allPassengers.filter((p) => !splitPassengers.map((p) => p.id).includes(p.id));\r\n\r\n const hasReturn = bookingStore.tripType === TripType.Return;\r\n const returnDate = hasReturn ? bookingStore.getDate(getReturn(direction)) : undefined;\r\n const returnRoute = hasReturn ? bookingStore.getRoute(getReturn(direction)) : undefined;\r\n\r\n return {\r\n departureId,\r\n route: bookingStore.getRoute(direction),\r\n date: YYYYMMDD(bookingStore.getDate(direction) as Date),\r\n vehicles: mapVehiclesForPrice(vehicleStore.getVehicle(direction)),\r\n currency: bookingStore.getCurrency,\r\n passengers: splitPassengers.map((p) => p.type),\r\n alternativePassengers: otherPassengers.map((p) => p.type),\r\n returnRoute: returnRoute,\r\n returnDate: returnDate ? YYYYMMDD(returnDate) : undefined,\r\n petInVehicle: vehicleStore.getVehicle(direction)?.petInVehicle,\r\n ticketGroups: [departureStore.getDeparture(direction).ticketGroup],\r\n };\r\n });\r\n\r\n const enabled = computed(() => splitStore.getIsSplit(direction));\r\n\r\n const fetcher = () => {\r\n return post(\"price/split\", params.value).then((resp) => resp.data);\r\n };\r\n\r\n return {\r\n ...useQuery([\"splitResources\", params], fetcher, {\r\n enabled,\r\n refetchOnWindowFocus: false,\r\n staleTime: 1000,\r\n }),\r\n };\r\n};\r\n\r\nexport default useSplitResourceQuery;\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, unref as _unref, createElementBlock as _createElementBlock, Fragment as _Fragment, createTextVNode as _createTextVNode, withCtx as _withCtx, withModifiers as _withModifiers, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-4ef9d74f\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"passenger-select\" }\nconst _hoisted_2 = { class: \"comfort-select\" }\nconst _hoisted_3 = { class: \"comfort-select__dropdown\" }\nconst _hoisted_4 = {\n key: 0,\n class: \"comfort-select__loading\"\n}\n\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport BaseDropdown from \"@/components/base/BaseDropdown.vue\";\r\nimport BaseLightbox from \"@/components/base/BaseLightbox.vue\";\r\nimport BaseRadio from \"@/components/base/BaseRadio.vue\";\r\nimport BaseSpinner from \"@/components/base/BaseSpinner.vue\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport { DeparturePrice } from \"@/models/front/DeparturePrice\";\r\nimport useSplitResourceQuery from \"@/modules/BookingFlow/composables/useSplitResourceQuery\";\r\nimport { useDepartureStore } from \"@/store/departure\";\r\nimport { usePassengerStore } from \"@/store/passenger\";\r\nimport { useResourceSplitStore } from \"@/store/resourceSplit\";\r\nimport { computed, reactive, watch } from \"vue\";\r\nimport { useI18n } from \"vue-i18n\";\r\n\r\ninterface Props {\r\n modelValue: boolean;\r\n direction: Direction;\r\n departure: DeparturePrice;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'DepartureComfortSplit',\n props: {\n modelValue: { type: Boolean },\n direction: {},\n departure: {}\n },\n emits: [\"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\r\nconst props = __props;\r\nconst emit = __emit;\r\nconst showSplit = computed({\r\n get() {\r\n return props.modelValue;\r\n },\r\n set(value: boolean) {\r\n emit(\"update:modelValue\", value);\r\n },\r\n});\r\n\r\nconst passengerStore = usePassengerStore();\r\nconst splitStore = useResourceSplitStore();\r\nconst departureStore = useDepartureStore();\r\nconst { t } = useI18n();\r\n\r\nconst passengerOptions = computed(() =>\r\n passengerStore.getPassengers(props.direction).map((p) => ({ label: t(`passengerType.${p.type}`), value: p.id }))\r\n);\r\n\r\nconst firstPassengerOptions = computed(() => passengerOptions.value.map((p) => ({ ...p, disabled: p.value === state.passenger2 })));\r\nconst secondPassengerOptions = computed(() => passengerOptions.value.map((p) => ({ ...p, disabled: p.value === state.passenger1 })));\r\n\r\nconst showSecondPassenger = computed(() => secondPassengerOptions.value.length > 2);\r\n\r\nconst getExistingPassengerId = (index: number, fallback = false): string => {\r\n const splitPassengers = splitStore.getPassengerIds(props.direction);\r\n if (splitPassengers.length - 1 >= index) {\r\n return splitStore.getPassengerIds(props.direction)[0];\r\n }\r\n\r\n if (fallback) {\r\n return passengerStore.getPassengers(props.direction)[0]?.id ?? \"\";\r\n }\r\n\r\n return \"\";\r\n};\r\n\r\nconst state = reactive({\r\n splitPassengers: splitStore.getIsSplit(props.direction),\r\n passenger1: getExistingPassengerId(0, true),\r\n passenger2: getExistingPassengerId(1),\r\n comfortSelection: departureStore.getDeparture(props.direction).identifier,\r\n});\r\n\r\nwatch(state, (current) => {\r\n splitStore.setIsSplit(props.direction, current.splitPassengers);\r\n const splitPassengers = [current.passenger1];\r\n if (showSecondPassenger.value && current.passenger2) {\r\n splitPassengers.push(current.passenger2);\r\n }\r\n splitStore.setSplitPassengers(props.direction, splitPassengers);\r\n});\r\n\r\nconst submit = () => {\r\n const departure = departureStore.getDeparture(props.direction);\r\n if (state.splitPassengers && state.comfortSelection) {\r\n departureStore.setDeparture(props.direction, {\r\n ...departure,\r\n identifier: state.comfortSelection,\r\n });\r\n }\r\n\r\n showSplit.value = false;\r\n};\r\n\r\nconst { data, isLoading, isFetching } = useSplitResourceQuery(props.direction, props.departure.id);\r\n\r\nconst comfortOptions = computed(() => {\r\n return data.value?.resources.map((r) => ({\r\n label: t(`resources.${r.resourceCode}.label`),\r\n value: r.identifier,\r\n }));\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseLightbox, {\n modelValue: showSplit.value,\n \"onUpdate:modelValue\": _cache[6] || (_cache[6] = ($event: any) => ((showSplit).value = $event)),\n title: _ctx.$t('booking.departure.split.title'),\n maxWidth: 500,\n align: \"left\"\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"form\", {\n onSubmit: _cache[5] || (_cache[5] = _withModifiers(($event: any) => (submit()), [\"prevent\"])),\n class: \"comfort-split\"\n }, [\n _createElementVNode(\"p\", null, _toDisplayString(_ctx.$t(\"booking.departure.split.preamble\")), 1),\n _createElementVNode(\"fieldset\", null, [\n _createVNode(BaseRadio, {\n modelValue: state.splitPassengers,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((state.splitPassengers) = $event)),\n value: true,\n label: _ctx.$t('booking.departure.split.yes'),\n name: `split-option-${_ctx.direction}`,\n id: `split-option-${_ctx.direction}-yes`\n }, null, 8, [\"modelValue\", \"label\", \"name\", \"id\"]),\n _createVNode(BaseRadio, {\n modelValue: state.splitPassengers,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((state.splitPassengers) = $event)),\n value: false,\n label: _ctx.$t('booking.departure.split.no'),\n name: `split-option-${_ctx.direction}`,\n id: `split-option-${_ctx.direction}-no`\n }, null, 8, [\"modelValue\", \"label\", \"name\", \"id\"])\n ]),\n (state.splitPassengers)\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"label\", null, _toDisplayString(_ctx.$t(\"booking.departure.split.selectPassenger\")), 1),\n _createVNode(BaseDropdown, {\n modelValue: state.passenger1,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => ((state.passenger1) = $event)),\n label: _ctx.$t('booking.departure.split.passenger1'),\n options: firstPassengerOptions.value\n }, null, 8, [\"modelValue\", \"label\", \"options\"]),\n (showSecondPassenger.value)\n ? (_openBlock(), _createBlock(BaseDropdown, {\n key: 0,\n modelValue: state.passenger2,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => ((state.passenger2) = $event)),\n label: _ctx.$t('booking.departure.split.passenger2'),\n options: secondPassengerOptions.value,\n canClear: \"\",\n canDeselect: \"\"\n }, null, 8, [\"modelValue\", \"label\", \"options\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"label\", null, _toDisplayString(_ctx.$t(\"booking.departure.split.selectComfort\")), 1),\n _createElementVNode(\"div\", _hoisted_3, [\n _createVNode(BaseDropdown, {\n modelValue: state.comfortSelection,\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => ((state.comfortSelection) = $event)),\n options: comfortOptions.value,\n label: _unref(t)('booking.departure.split.comfortLabel')\n }, null, 8, [\"modelValue\", \"options\", \"label\"]),\n (_unref(isLoading) || _unref(isFetching))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_4, [\n _createVNode(BaseSpinner, { color: \"dark\" })\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ], 64))\n : _createCommentVNode(\"\", true),\n _createVNode(BaseButton, null, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"booking.departure.split.submit\")), 1)\n ]),\n _: 1\n })\n ], 32)\n ]),\n _: 1\n }, 8, [\"modelValue\", \"title\"]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./DepartureComfortSplit.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./DepartureComfortSplit.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./DepartureComfortSplit.vue?vue&type=style&index=0&id=4ef9d74f&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-4ef9d74f\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, normalizeClass as _normalizeClass, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-8e8095d0\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"table__header\" }\nconst _hoisted_2 = { class: \"table__row\" }\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"li\", { class: \"table__cell table__cell-group\" }, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"departure-table__header\" })\n], -1))\nconst _hoisted_4 = { class: \"table__cell table__cell-group\" }\nconst _hoisted_5 = { class: \"table__row table__row-group\" }\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"li\", { class: \"table__cell\" }, null, -1))\nconst _hoisted_7 = { class: \"table__body\" }\nconst _hoisted_8 = { class: \"table__cell table__cell-group\" }\nconst _hoisted_9 = { class: \"table__cell table__cell-group\" }\nconst _hoisted_10 = { class: \"table__row\" }\nconst _hoisted_11 = {\n key: 1,\n class: \"table__disabled\"\n}\nconst _hoisted_12 = {\n key: 2,\n class: \"table__disabled\"\n}\n\nimport BaseRadio from \"@/components/base/BaseRadio.vue\";\r\nimport SvgIcon from \"@/components/base/SvgIcon.vue\";\r\nimport useDialog from \"@/composables/useDialog\";\r\nimport { formatPrice } from \"@/helpers/priceHelpers\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport { DeparturePrice, DepartureTicketGroup } from \"@/models/front/DeparturePrice\";\r\nimport { useDepartureStore } from \"@/store/departure\";\r\nimport { usePassengerStore } from \"@/store/passenger\";\r\nimport { useResourceSplitStore } from \"@/store/resourceSplit\";\r\nimport { useVehicleStore } from \"@/store/vehicle\";\r\nimport { computed, ref } from \"vue\";\r\nimport DepartureComfortSplit from \"./DepartureComfortSplit.vue\";\r\n\r\ninterface Props {\r\n departure: DeparturePrice;\r\n direction: Direction;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'DepartureTable',\n props: {\n departure: {},\n direction: {}\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\nconst departureStore = useDepartureStore();\r\nconst passengerStore = usePassengerStore();\r\nconst splitStore = useResourceSplitStore();\r\nconst vehicleStore = useVehicleStore();\r\n\r\nconst allOptions = props.departure.comfortSections.flatMap((s) =>\r\n s.resources.flatMap((r) =>\r\n r.ticketGroups.map((tg) => ({\r\n resource: r.resourceCode,\r\n ...tg,\r\n }))\r\n )\r\n);\r\n\r\nconst selectedDeparture = departureStore.getDeparture(props.direction);\r\nconst selectedComfort = allOptions.find((ao) => ao.id === selectedDeparture.id);\r\nif (selectedComfort) {\r\n departureStore.setDeparture(props.direction, {\r\n ...selectedDeparture,\r\n identifier: selectedComfort.identifier,\r\n });\r\n}\r\n\r\nconst showSplit = ref(false);\r\n\r\nconst selectedResource = computed({\r\n get() {\r\n return departureStore.getDeparture(props.direction).id;\r\n },\r\n set(value: string) {\r\n const option = allOptions.find((o) => o.id === value);\r\n\r\n if (!!option) {\r\n onResourceClicked(option);\r\n departureStore.setDeparture(props.direction, {\r\n id: value,\r\n departureId: props.departure.departureId,\r\n identifier: option?.identifier,\r\n ticketGroup: option.code,\r\n departureDate: props.departure.departureDate,\r\n });\r\n }\r\n },\r\n});\r\n\r\nconst { displayDialog } = useDialog();\r\n\r\nconst onResourceClicked = (ticketGroup: DepartureTicketGroup) => {\r\n if (!ticketGroup.identifier) return;\r\n\r\n showSplit.value = ticketGroup.isSplit && passengerStore.getPassengers(props.direction).length > 1 && !passengerStore.isMixed;\r\n if (!ticketGroup.isSplit) {\r\n splitStore.setIsSplit(props.direction, false);\r\n }\r\n\r\n if (ticketGroup.dialogMessage) {\r\n displayDialog(ticketGroup.dialogMessage);\r\n }\r\n};\r\n\r\nconst hasVehicle = computed(() => vehicleStore.hasVehicle(props.direction));\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.departure.comfortSections, (section) => {\n return (_openBlock(), _createElementBlock(\"fieldset\", {\n key: section.type,\n class: \"departure-table\"\n }, [\n _createElementVNode(\"legend\", null, _toDisplayString(_ctx.$t(`booking.departure.comfortSections.${section.type}`)), 1),\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"ul\", _hoisted_2, [\n _hoisted_3,\n _createElementVNode(\"li\", _hoisted_4, [\n _createElementVNode(\"ul\", _hoisted_5, [\n _hoisted_6,\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(section.ticketGroups, (ticketGroup) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n key: ticketGroup.code,\n class: \"table__cell table__heading\"\n }, [\n _createElementVNode(\"span\", null, _toDisplayString(ticketGroup.name), 1)\n ]))\n }), 128))\n ])\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(section.resources, (resource) => {\n return (_openBlock(), _createElementBlock(\"ul\", {\n class: _normalizeClass([\"table__row\", { active: resource.ticketGroups.map((tg) => tg.id).includes(selectedResource.value) }]),\n key: resource.resourceCode\n }, [\n _createElementVNode(\"li\", _hoisted_8, [\n _createElementVNode(\"span\", null, _toDisplayString(resource.label), 1)\n ]),\n _createElementVNode(\"li\", _hoisted_9, [\n _createElementVNode(\"ul\", _hoisted_10, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(resource.ticketGroups, (ticketGroup) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n key: ticketGroup.identifier,\n class: \"table__cell\"\n }, [\n (ticketGroup.isBookable)\n ? (_openBlock(), _createBlock(BaseRadio, {\n key: 0,\n class: _normalizeClass([\"table__radio\", { 'table__radio--campaign': ticketGroup.isCampaign, 'has-discount': ticketGroup.isDiscounted }]),\n modelValue: selectedResource.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((selectedResource).value = $event)),\n type: \"radio\",\n name: `resource-${_ctx.direction}`,\n id: ticketGroup.id,\n value: ticketGroup.id,\n label: _unref(formatPrice)(ticketGroup.price, ticketGroup.currency),\n onClick: () => onResourceClicked(ticketGroup),\n disabled: !ticketGroup.identifier\n }, null, 8, [\"class\", \"modelValue\", \"name\", \"id\", \"value\", \"label\", \"onClick\", \"disabled\"]))\n : (hasVehicle.value && !_ctx.departure.isVehicleBookable)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_11, [\n _createVNode(SvgIcon, { icon: \"booking/car-full\" })\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_12, [\n _createVNode(SvgIcon, { icon: \"booking/person-full\" })\n ]))\n ]))\n }), 128))\n ])\n ])\n ], 2))\n }), 128))\n ])\n ]))\n }), 128)),\n _createVNode(DepartureComfortSplit, {\n direction: _ctx.direction,\n departure: _ctx.departure,\n modelValue: showSplit.value,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((showSplit).value = $event))\n }, null, 8, [\"direction\", \"departure\", \"modelValue\"])\n ], 64))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./DepartureTable.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./DepartureTable.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./DepartureTable.vue?vue&type=style&index=0&id=8e8095d0&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-8e8095d0\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, withCtx as _withCtx, createVNode as _createVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-26cf21b2\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"read-more\" }\nconst _hoisted_2 = { class: \"ticket-info\" }\nconst _hoisted_3 = { class: \"ticket-info__group\" }\nconst _hoisted_4 = { class: \"mini\" }\nconst _hoisted_5 = { class: \"has-discount has-discount--reverse\" }\nconst _hoisted_6 = { class: \"ticket-info__group\" }\nconst _hoisted_7 = { class: \"flexi\" }\nconst _hoisted_8 = { class: \"ticket-info__group\" }\nconst _hoisted_9 = { class: \"flexiplus\" }\n\nimport BaseLightbox from \"@/components/base/BaseLightbox.vue\";\r\nimport { ref } from \"vue\";\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TicketLightbox',\n setup(__props) {\n\r\nconst show = ref(false);\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"p\", _hoisted_1, [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t(\"booking.departure.ticketInfo.readMoreText\")), 1),\n _createElementVNode(\"a\", {\n href: \"#\",\n class: \"link\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (show.value = !show.value)),\n tabindex: \"0\"\n }, _toDisplayString(_ctx.$t(\"booking.departure.ticketInfo.readMoreLink\")), 1)\n ]),\n _createVNode(BaseLightbox, {\n modelValue: show.value,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((show).value = $event)),\n maxWidth: 580,\n align: \"start\",\n title: _ctx.$t('booking.departure.ticketInfo.title'),\n subtitle: _ctx.$t('booking.departure.ticketInfo.subtitle')\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"h2\", _hoisted_4, _toDisplayString(_ctx.$t(\"booking.departure.ticketInfo.mini.title\")), 1),\n _createElementVNode(\"p\", null, _toDisplayString(_ctx.$t(\"booking.departure.ticketInfo.mini.text1\")), 1),\n _createElementVNode(\"p\", _hoisted_5, _toDisplayString(_ctx.$t(\"booking.departure.ticketInfo.mini.text2\")), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"h2\", _hoisted_7, _toDisplayString(_ctx.$t(\"booking.departure.ticketInfo.flexi.title\")), 1),\n _createElementVNode(\"p\", null, _toDisplayString(_ctx.$t(\"booking.departure.ticketInfo.flexi.text1\")), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"h2\", _hoisted_9, _toDisplayString(_ctx.$t(\"booking.departure.ticketInfo.flexiPlus.title\")), 1),\n _createElementVNode(\"p\", null, _toDisplayString(_ctx.$t(\"booking.departure.ticketInfo.flexiPlus.text1\")), 1)\n ])\n ])\n ]),\n _: 1\n }, 8, [\"modelValue\", \"title\", \"subtitle\"])\n ], 64))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./TicketLightbox.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./TicketLightbox.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./TicketLightbox.vue?vue&type=style&index=0&id=26cf21b2&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-26cf21b2\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, withCtx as _withCtx, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-3a9a42d1\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"departure-header\" }\nconst _hoisted_2 = { class: \"departure-header__icon\" }\nconst _hoisted_3 = { class: \"departure-header__time\" }\nconst _hoisted_4 = { class: \"departure\" }\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"li\", { class: \"line\" }, null, -1))\nconst _hoisted_6 = { class: \"arrival\" }\nconst _hoisted_7 = {\n key: 0,\n class: \"departure-header__message\"\n}\nconst _hoisted_8 = { class: \"departure-header__price\" }\nconst _hoisted_9 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"svg\", {\n preserveAspectRatio: \"none\",\n viewBox: \"0 0 100 100\",\n class: \"diagonal\",\n xmlns: \"http://www.w3.org/2000/svg\",\n \"xmlns:bx\": \"https://boxy-svg.com\"\n}, [\n /*#__PURE__*/_createElementVNode(\"defs\"),\n /*#__PURE__*/_createElementVNode(\"rect\", {\n width: \"100\",\n height: \"100\",\n style: {\"fill\":\"#f3f3f3\"}\n }),\n /*#__PURE__*/_createElementVNode(\"path\", {\n id: \"innerDiagonal\",\n d: \"M 100 0 L 100 100 L 5 100 L 100 0 Z\",\n style: {\"fill\":\"#ffffff\"}\n }),\n /*#__PURE__*/_createElementVNode(\"path\", {\n d: \"M 0 -100 L 0 0 L -95 0 L 0 -100 Z\",\n style: {\"fill\":\"#ffffff\"},\n transform: \"matrix(-1, 0, 0, -1, 0, 0)\"\n })\n], -1))\nconst _hoisted_10 = {\n key: 0,\n class: \"price\"\n}\nconst _hoisted_11 = {\n key: 1,\n class: \"price\"\n}\nconst _hoisted_12 = { class: \"prefix\" }\nconst _hoisted_13 = {\n key: 1,\n class: \"value\"\n}\nconst _hoisted_14 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"departure-header__overlay\" }, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"diagonal-wrapper\" }, [\n /*#__PURE__*/_createElementVNode(\"svg\", {\n preserveAspectRatio: \"none\",\n viewBox: \"0 0 100 100\",\n class: \"diagonal\",\n xmlns: \"http://www.w3.org/2000/svg\",\n \"xmlns:bx\": \"https://boxy-svg.com\"\n }, [\n /*#__PURE__*/_createElementVNode(\"defs\"),\n /*#__PURE__*/_createElementVNode(\"rect\", {\n width: \"100\",\n height: \"100\",\n style: {\"fill\":\"#f3f3f3\"}\n }),\n /*#__PURE__*/_createElementVNode(\"path\", {\n id: \"innerDiagonal\",\n d: \"M 100 0 L 100 100 L 5 100 L 100 0 Z\",\n style: {\"fill\":\"#7da0b4\"}\n }),\n /*#__PURE__*/_createElementVNode(\"path\", {\n d: \"M 0 -100 L 0 0 L -95 0 L 0 -100 Z\",\n style: {\"fill\":\"#7da0b4\"},\n transform: \"matrix(-1, 0, 0, -1, 0, 0)\"\n })\n ])\n ])\n], -1))\nconst _hoisted_15 = {\n key: 0,\n class: \"selections\"\n}\nconst _hoisted_16 = { class: \"description\" }\nconst _hoisted_17 = { key: 0 }\nconst _hoisted_18 = { key: 1 }\nconst _hoisted_19 = {\n key: 2,\n class: \"extra-info\"\n}\nconst _hoisted_20 = { class: \"description\" }\nconst _hoisted_21 = { key: 0 }\nconst _hoisted_22 = { key: 1 }\n\nimport BaseExpansionPanel from \"@/components/base/BaseExpansionPanel.vue\";\r\nimport BasePanel from \"@/components/base/BasePanel.vue\";\r\nimport SvgIcon from \"@/components/base/SvgIcon.vue\";\r\nimport { HHmm } from \"@/helpers/dateHelpers\";\r\nimport { formatPrice } from \"@/helpers/priceHelpers\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport { DeparturePrice } from \"@/models/front/DeparturePrice\";\r\nimport { useDepartureStore } from \"@/store/departure\";\r\nimport { useVehicleStore } from \"@/store/vehicle\";\r\nimport { computed } from \"vue\";\r\nimport DepartureTable from \"./DepartureTable.vue\";\r\nimport TicketLightbox from \"./TicketLightbox.vue\";\r\nimport { useI18n } from \"vue-i18n\";\r\n\r\ninterface Props {\r\n departure: DeparturePrice;\r\n direction: Direction;\r\n activeDeparture?: string;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Departure',\n props: {\n departure: {},\n direction: {},\n activeDeparture: {}\n },\n emits: [\"openDeparture\"],\n setup(__props: any, { emit: __emit }) {\n\r\nconst props = __props;\r\nconst emit = __emit;\r\n\r\nconst departureStore = useDepartureStore();\r\n\r\nconst vehicleStore = useVehicleStore();\r\n\r\nconst carDeckIsFull = computed(() => vehicleStore.hasVehicle(props.direction) && !props.departure.isVehicleBookable);\r\n\r\nconst isActive = computed({\r\n get() {\r\n return props.departure.departureId === props.activeDeparture;\r\n },\r\n set() {\r\n emit(\"openDeparture\", props.departure.departureId);\r\n },\r\n});\r\n\r\nconst isDisabled = computed(() => {\r\n return !props.departure.isBookable || carDeckIsFull.value;\r\n});\r\n\r\nconst selections = computed(() => {\r\n const departureState = departureStore.getDeparture(props.direction);\r\n const departure = props.departure;\r\n\r\n if (departureState.departureId !== departure.departureId) return {};\r\n\r\n const selectedComfort = departure.comfortSections.flatMap((cs) =>\r\n cs.resources.filter((r) => r.ticketGroups.filter((tg) => tg.id === departureState.id).length > 0)\r\n );\r\n\r\n const selectedTicketType = departure.comfortSections.flatMap((cs) =>\r\n cs.resources.flatMap((r) => r.ticketGroups.filter((tg) => tg.id === departureState.id))\r\n );\r\n\r\n return {\r\n comfort: selectedComfort,\r\n ticketType: selectedTicketType,\r\n };\r\n});\r\n\r\nconst { t } = useI18n();\r\n\r\nconst messages = computed(() => {\r\n const messages: string[] = [];\r\n if (props.departure.isFreight) {\r\n messages.push(t(`timetable.freightNote.${props.departure.ship}`));\r\n }\r\n return messages;\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseExpansionPanel, {\n isOpen: isActive.value,\n \"onUpdate:isOpen\": _cache[0] || (_cache[0] = ($event: any) => ((isActive).value = $event)),\n disabled: isDisabled.value\n }, {\n header: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(SvgIcon, {\n class: \"icon\",\n icon: \"booking/ferry\"\n }),\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.departure.ship), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"ul\", null, [\n _createElementVNode(\"li\", _hoisted_4, [\n _createElementVNode(\"span\", null, _toDisplayString(_unref(HHmm)(_ctx.departure.departureDate)), 1)\n ]),\n _hoisted_5,\n _createElementVNode(\"li\", _hoisted_6, [\n _createElementVNode(\"span\", null, _toDisplayString(_unref(HHmm)(_ctx.departure.arrivalDate)), 1)\n ])\n ]),\n (messages.value?.length)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(messages.value, (message) => {\n return (_openBlock(), _createElementBlock(\"div\", { key: message }, _toDisplayString(message), 1))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _hoisted_9,\n (carDeckIsFull.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, [\n _createVNode(SvgIcon, {\n class: \"icon\",\n icon: \"booking/car-full\"\n })\n ]))\n : (!_ctx.departure.isBookable)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_11, [\n _createVNode(SvgIcon, {\n class: \"icon\",\n icon: \"booking/person-full\"\n })\n ]))\n : (_openBlock(), _createElementBlock(\"div\", {\n key: 2,\n class: _normalizeClass([\"price\", { 'has-discount': _ctx.departure.hasDiscount }])\n }, [\n (typeof _ctx.departure.bestPrice !== 'undefined')\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n _createElementVNode(\"span\", _hoisted_12, _toDisplayString(_ctx.$t(\"booking.departure.selection.from\")), 1),\n _createElementVNode(\"span\", {\n class: _normalizeClass([\"value\", { 'is-campaign': _ctx.departure.isCampaign }])\n }, _toDisplayString(_unref(formatPrice)(_ctx.departure.bestPrice, _ctx.departure.currency)), 3)\n ], 64))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_13, \"-\"))\n ], 2))\n ]),\n _hoisted_14\n ])\n ]),\n default: _withCtx(() => [\n _createVNode(BasePanel, null, {\n default: _withCtx(() => [\n _createVNode(TicketLightbox),\n _createVNode(DepartureTable, {\n departure: _ctx.departure,\n direction: _ctx.direction\n }, null, 8, [\"departure\", \"direction\"]),\n (selections.value.comfort?.length)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_15, [\n _createElementVNode(\"h4\", null, _toDisplayString(_ctx.$t(\"booking.departure.selection.title\")), 1),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(selections.value.comfort, (selection) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"selection\",\n key: selection.resourceCode\n }, [\n _createVNode(SvgIcon, {\n class: \"icon\",\n icon: \"booking/lounge-chair\"\n }),\n _createElementVNode(\"div\", _hoisted_16, [\n (selection.label)\n ? (_openBlock(), _createElementBlock(\"h4\", _hoisted_17, _toDisplayString(selection.label), 1))\n : _createCommentVNode(\"\", true),\n (selection.description)\n ? (_openBlock(), _createElementBlock(\"p\", _hoisted_18, _toDisplayString(selection.description), 1))\n : _createCommentVNode(\"\", true),\n (selection.extraInfo)\n ? (_openBlock(), _createElementBlock(\"p\", _hoisted_19, _toDisplayString(selection.extraInfo), 1))\n : _createCommentVNode(\"\", true)\n ])\n ]))\n }), 128)),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(selections.value.ticketType, (ticketType) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"selection\",\n key: ticketType.code\n }, [\n _createVNode(SvgIcon, {\n class: \"icon\",\n icon: \"booking/ticket-outline\"\n }),\n _createElementVNode(\"div\", _hoisted_20, [\n (ticketType.name)\n ? (_openBlock(), _createElementBlock(\"h4\", _hoisted_21, _toDisplayString(ticketType.name), 1))\n : _createCommentVNode(\"\", true),\n (ticketType.description)\n ? (_openBlock(), _createElementBlock(\"p\", _hoisted_22, _toDisplayString(ticketType.description), 1))\n : _createCommentVNode(\"\", true)\n ])\n ]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"isOpen\", \"disabled\"]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./Departure.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Departure.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Departure.vue?vue&type=style&index=0&id=3a9a42d1&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-3a9a42d1\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, vModelRadio as _vModelRadio, createElementVNode as _createElementVNode, withDirectives as _withDirectives, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-2d1f9390\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"departure-date-item\" }\nconst _hoisted_2 = [\"name\", \"value\", \"disabled\"]\nconst _hoisted_3 = { class: \"date\" }\nconst _hoisted_4 = { class: \"price\" }\nconst _hoisted_5 = {\n key: 0,\n class: \"loading\"\n}\nconst _hoisted_6 = { key: 1 }\n\nimport { EEEddM, YYYYMMDD } from \"@/helpers/dateHelpers\";\r\nimport { formatPrice } from \"@/helpers/priceHelpers\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport useDepartureQuery from \"@/modules/BookingFlow/composables/useDepartureQuery\";\r\nimport { computed } from \"vue\";\r\n\r\ninterface Props {\r\n date: Date;\r\n route: string;\r\n direction: Direction;\r\n modelValue?: string;\r\n disabled?: boolean;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'DepartureDateItem',\n props: {\n date: {},\n route: {},\n direction: {},\n modelValue: {},\n disabled: { type: Boolean }\n },\n emits: [\"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\r\nconst props = __props;\r\nconst emit = __emit;\r\nconst id = `${props.route}-${YYYYMMDD(props.date)}`;\r\n\r\nconst { data, isFetching } = useDepartureQuery(props.direction, YYYYMMDD(props.date), props.route, props.disabled);\r\n\r\nconst bestPrice = computed(() => {\r\n const departurePrices =\r\n data.value?.filter((v) => v.isBookable && typeof v.bestPrice === \"number\").map((departure) => departure.bestPrice ?? 0) ?? [];\r\n return departurePrices.length > 0 ? Math.min(...departurePrices) : undefined;\r\n});\r\n\r\nconst inputValue = computed({\r\n get() {\r\n return props.modelValue;\r\n },\r\n set(value?: string) {\r\n emit(\"update:modelValue\", value);\r\n },\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _withDirectives(_createElementVNode(\"input\", {\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((inputValue).value = $event)),\n id: id,\n type: \"radio\",\n name: `date-${_ctx.route}`,\n value: _unref(YYYYMMDD)(_ctx.date),\n disabled: _ctx.disabled\n }, null, 8, _hoisted_2), [\n [_vModelRadio, inputValue.value]\n ]),\n _createElementVNode(\"label\", { for: id }, [\n _createElementVNode(\"div\", _hoisted_3, _toDisplayString(_unref(EEEddM)(_ctx.date)), 1),\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t(\"booking.departure.selection.from\")), 1),\n (_unref(isFetching))\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_5))\n : (_unref(data))\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_6, _toDisplayString(_unref(formatPrice)(bestPrice.value, \"SEK\")), 1))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./DepartureDateItem.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./DepartureDateItem.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./DepartureDateItem.vue?vue&type=style&index=0&id=2d1f9390&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-2d1f9390\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-666143d2\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"departure-date\" }\n\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport SvgIcon from \"@/components/base/SvgIcon.vue\";\r\nimport { YYYYMMDD } from \"@/helpers/dateHelpers\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport useBookingCalendar from \"@/modules/BookingFlow/composables/useBookingCalendar\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport { useMediaQuery } from \"@vueuse/core\";\r\nimport { startOfDay, startOfToday } from \"date-fns\";\r\nimport { computed, watch } from \"vue\";\r\nimport DepartureDateItem from \"./DepartureDateItem.vue\";\r\nimport { ref } from \"vue\";\r\nimport { createId } from \"@/helpers/idHelper\";\r\n\r\ninterface Props {\r\n direction: Direction;\r\n}\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'DepartureDate',\n props: {\n direction: {}\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst bookingStore = useBookingStore();\r\n\r\nconst showAllDates = ref(false);\r\n\r\nsetTimeout(() => {\r\n showAllDates.value = true;\r\n}, 100);\r\n\r\nconst otherDirectionDate = computed(() => {\r\n const otherDirection = props.direction === Direction.Outward ? Direction.Return : Direction.Outward;\r\n return bookingStore.getDate(otherDirection);\r\n});\r\n\r\nconst renderKey = ref(createId());\r\n\r\nwatch(otherDirectionDate, (current) => {\r\n if (props.direction === Direction.Outward) {\r\n renderKey.value = createId();\r\n } else if (current) {\r\n const returnDate = bookingStore.getDate(Direction.Return) ?? new Date();\r\n if (returnDate < current) {\r\n selectedDate.value = YYYYMMDD(current);\r\n }\r\n renderKey.value = createId();\r\n }\r\n});\r\n\r\nconst route = computed(() => bookingStore.getRoute(props.direction));\r\nconst selectedDate = computed({\r\n get(): string {\r\n const date = bookingStore.getDate(props.direction) ?? new Date();\r\n return YYYYMMDD(date);\r\n },\r\n set(date?: string) {\r\n bookingStore.setDate(props.direction, date ? new Date(date) : undefined);\r\n },\r\n});\r\n\r\nconst { availableDates } = useBookingCalendar(props.direction, false);\r\n\r\nfunction getDateRange(date: string, offset = 2) {\r\n const centerIndex = availableDates.value.findIndex((v) => YYYYMMDD(v.start) === date);\r\n\r\n const startIndex = centerIndex > offset ? centerIndex - offset : 0;\r\n const endIndex = centerIndex + (offset + 1) < availableDates.value.length ? centerIndex + (offset + 1) : availableDates.value.length;\r\n\r\n return availableDates.value.slice(startIndex, endIndex).map((d) => d.start);\r\n}\r\n\r\nconst isMediumScreen = useMediaQuery(\"(max-width: 920px)\");\r\nconst isSmallScreen = useMediaQuery(\"(max-width: 600px)\");\r\n\r\nconst dates = computed(() => {\r\n const offset = isSmallScreen.value ? 0 : isMediumScreen.value ? 1 : 2;\r\n\r\n return getDateRange(selectedDate.value, offset);\r\n});\r\n\r\nconst setPrevDate = () => {\r\n const centerIndex = availableDates.value.findIndex((v) => YYYYMMDD(v.start) === selectedDate.value);\r\n if (centerIndex > 0) {\r\n selectedDate.value = YYYYMMDD(availableDates.value[centerIndex - 1].start);\r\n }\r\n};\r\n\r\nconst setNextDate = () => {\r\n const centerIndex = availableDates.value.findIndex((v) => YYYYMMDD(v.start) === selectedDate.value);\r\n if (centerIndex < availableDates.value.length - 1) {\r\n selectedDate.value = YYYYMMDD(availableDates.value[centerIndex + 1].start);\r\n }\r\n};\r\n\r\nconst minDate = computed(() => {\r\n if (props.direction === Direction.Outward) {\r\n return startOfToday();\r\n } else {\r\n const outwardDate = bookingStore.getDate(Direction.Outward);\r\n return outwardDate ? startOfDay(new Date(outwardDate)) : startOfToday();\r\n }\r\n});\r\n\r\nconst maxDate = computed(() => {\r\n if (availableDates.value?.length) {\r\n return availableDates.value[availableDates.value.length - 1].start;\r\n }\r\n return new Date();\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(BaseButton, {\n onClick: setPrevDate,\n class: \"departure-date__prev\",\n disabled: selectedDate.value === _unref(YYYYMMDD)(minDate.value)\n }, {\n default: _withCtx(() => [\n _createVNode(SvgIcon, {\n icon: \"chevron/chevron-down\",\n width: \"1.875rem\",\n height: \"1.875rem\"\n })\n ]),\n _: 1\n }, 8, [\"disabled\"]),\n _createElementVNode(\"ol\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(dates.value, (date) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n key: _unref(YYYYMMDD)(date)\n }, [\n (showAllDates.value || _unref(YYYYMMDD)(date) === selectedDate.value)\n ? (_openBlock(), _createBlock(DepartureDateItem, {\n modelValue: selectedDate.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((selectedDate).value = $event)),\n date: date,\n route: route.value,\n direction: _ctx.direction,\n disabled: date < minDate.value || date > maxDate.value,\n key: renderKey.value\n }, null, 8, [\"modelValue\", \"date\", \"route\", \"direction\", \"disabled\"]))\n : _createCommentVNode(\"\", true)\n ]))\n }), 128))\n ]),\n _createVNode(BaseButton, {\n onClick: setNextDate,\n class: \"departure-date__next\",\n disabled: selectedDate.value === _unref(YYYYMMDD)(maxDate.value)\n }, {\n default: _withCtx(() => [\n _createVNode(SvgIcon, {\n icon: \"chevron/chevron-down\",\n width: \"1.875rem\",\n height: \"1.875rem\"\n })\n ]),\n _: 1\n }, 8, [\"disabled\"])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./DepartureDate.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./DepartureDate.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./DepartureDate.vue?vue&type=style&index=0&id=666143d2&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-666143d2\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, createElementVNode as _createElementVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-380aeca2\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"departure-header\" }\nconst _hoisted_2 = { class: \"departure-header__icon\" }\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", null, null, -1))\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"departure-header__time\" }, [\n /*#__PURE__*/_createElementVNode(\"ul\")\n], -1))\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"departure-header__price\" }, [\n /*#__PURE__*/_createElementVNode(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n preserveAspectRatio: \"none\",\n viewBox: \"0 0 100 100\",\n class: \"diagonal\"\n }, [\n /*#__PURE__*/_createElementVNode(\"rect\", {\n width: \"100\",\n height: \"100\",\n style: {\"fill\":\"#f3f3f3\"}\n }),\n /*#__PURE__*/_createElementVNode(\"path\", {\n id: \"innerDiagonal\",\n d: \"M 100 0 L 100 100 L 5 100 L 100 0 Z\",\n style: {\"fill\":\"#ffffff\"}\n }),\n /*#__PURE__*/_createElementVNode(\"path\", {\n d: \"M 0 -100 L 0 0 L -95 0 L 0 -100 Z\",\n style: {\"fill\":\"#ffffff\"},\n transform: \"matrix(-1, 0, 0, -1, 0, 0)\"\n })\n ]),\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"price\" }, [\n /*#__PURE__*/_createElementVNode(\"span\", { class: \"prefix\" }),\n /*#__PURE__*/_createElementVNode(\"span\", { class: \"value\" })\n ])\n], -1))\n\nimport BaseExpansionPanel from \"@/components/base/BaseExpansionPanel.vue\";\r\nimport SvgIcon from \"@/components/base/SvgIcon.vue\";\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'DepartureLoading',\n setup(__props) {\n\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseExpansionPanel, null, {\n header: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(SvgIcon, {\n class: \"icon\",\n icon: \"booking/ferry\"\n }),\n _hoisted_3\n ]),\n _hoisted_4,\n _hoisted_5\n ])\n ]),\n _: 1\n }))\n}\n}\n\n})","import script from \"./DepartureLoading.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./DepartureLoading.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./DepartureLoading.vue?vue&type=style&index=0&id=380aeca2&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-380aeca2\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, createElementVNode as _createElementVNode, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-7cce965e\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"departure-section__departures\" }\nconst _hoisted_2 = {\n key: 1,\n class: \"departure-section--loading\"\n}\n\nimport BaseAlert from \"@/components/base/BaseAlert.vue\";\r\nimport BaseMessages from \"@/components/base/BaseMessages.vue\";\r\nimport BaseSection from \"@/components/base/BaseSection.vue\";\r\nimport BaseSpinner from \"@/components/base/BaseSpinner.vue\";\r\nimport { EEEEddM } from \"@/helpers/dateHelpers\";\r\nimport { returnAfterOutward } from \"@/helpers/validators\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport useDepartureQuery from \"@/modules/BookingFlow/composables/useDepartureQuery\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport { useDepartureStore } from \"@/store/departure\";\r\nimport useVuelidate from \"@vuelidate/core\";\r\nimport { helpers } from \"@vuelidate/validators\";\r\nimport { computed, reactive, ref } from \"vue\";\r\nimport { useI18n } from \"vue-i18n\";\r\nimport Departure from \"./Departure.vue\";\r\nimport DepartureDate from \"./DepartureDate.vue\";\r\nimport DepartureLoading from \"./DepartureLoading.vue\";\r\nimport { useVehicleStore } from \"@/store/vehicle\";\r\n\r\ninterface Props {\r\n direction: Direction;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'DepartureSection',\n props: {\n direction: {}\n },\n setup(__props: any, { expose: __expose }) {\n\r\nconst props = __props;\r\nconst bookingStore = useBookingStore();\r\nconst departureStore = useDepartureStore();\r\n\r\nconst openedDeparture = ref(departureStore.getDeparture(props.direction).departureId);\r\n\r\nconst route = computed(() => bookingStore.getRoute(props.direction));\r\nconst date = computed(() => bookingStore.getDate(props.direction));\r\nconst subtitle = computed(\r\n () =>\r\n `${props.direction === Direction.Outward ? t(\"booking.departure.outward\") : t(\"booking.departure.return\")}: ${\r\n date.value ? EEEEddM(date.value) : \"\"\r\n }`\r\n);\r\n\r\nconst { data, isLoading, isFetching, error } = useDepartureQuery(props.direction);\r\n\r\nconst departureSelected = () => {\r\n const selectedDeparture = departureStore.getDeparture(props.direction);\r\n const resourceIds = data.value?.flatMap((v) =>\r\n v.comfortSections.flatMap((cs) => cs.resources.flatMap((r) => r.ticketGroups)).map((tg) => tg.id)\r\n );\r\n\r\n return !!selectedDeparture.identifier && (resourceIds?.findIndex((id) => id === selectedDeparture.id) ?? -1) > -1;\r\n};\r\n\r\nconst vehicleStore = useVehicleStore();\r\nconst everyCarDeckFull = computed(() => {\r\n return vehicleStore.hasVehicle(props.direction) && data.value?.every((d) => !d.isVehicleBookable);\r\n});\r\n\r\nconst { t } = useI18n();\r\n\r\nconst rules = {\r\n resource: {\r\n v: helpers.withMessage(t(\"validations.comfortSelectionRequired\"), departureSelected),\r\n },\r\n returnDate: {\r\n v: helpers.withMessage(\r\n () => t(\"validations.returnAfterOutward\"),\r\n () =>\r\n props.direction === Direction.Outward\r\n ? true //show only on return\r\n : returnAfterOutward(\r\n departureStore.getDeparture(Direction.Outward).departureDate,\r\n departureStore.getDeparture(Direction.Return).departureDate\r\n )\r\n ),\r\n },\r\n};\r\n\r\nconst v$ = useVuelidate(rules, reactive({ resource: \"\", returnDate: \"\" }));\r\n\r\n__expose({\r\n isFetching,\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseSection, {\n class: \"departure-section\",\n title: _ctx.$t(`routes.${route.value}`),\n subtitle: subtitle.value\n }, {\n info: _withCtx(() => [\n _createVNode(DepartureDate, { direction: _ctx.direction }, null, 8, [\"direction\"])\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, [\n (_unref(isLoading))\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, _renderList(2, (i) => {\n return _createVNode(DepartureLoading, { key: i })\n }), 64))\n : (_unref(isFetching))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _createVNode(BaseSpinner, { color: \"dark\" })\n ]))\n : (_unref(error))\n ? (_openBlock(), _createBlock(BaseAlert, {\n key: 2,\n type: \"danger\",\n message: (_unref(error) as Error).message\n }, null, 8, [\"message\"]))\n : _createCommentVNode(\"\", true),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(data), (departure) => {\n return (_openBlock(), _createBlock(Departure, {\n key: departure.departureId,\n departure: departure,\n direction: _ctx.direction,\n activeDeparture: openedDeparture.value,\n onOpenDeparture: _cache[0] || (_cache[0] = (e) => (openedDeparture.value = e))\n }, null, 8, [\"departure\", \"direction\", \"activeDeparture\"]))\n }), 128))\n ]),\n (everyCarDeckFull.value)\n ? (_openBlock(), _createBlock(BaseMessages, {\n key: 0,\n class: \"booking-messages\",\n messages: [_ctx.$t('messages.notEnoughCapacityForVehicle.body')]\n }, null, 8, [\"messages\"]))\n : (_openBlock(), _createBlock(BaseMessages, {\n key: 1,\n class: \"booking-messages\",\n messages: _unref(v$).$errors.map((e) => e.$message)\n }, null, 8, [\"messages\"]))\n ]),\n _: 1\n }, 8, [\"title\", \"subtitle\"]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./DepartureSection.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./DepartureSection.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./DepartureSection.vue?vue&type=style&index=0&id=7cce965e&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-7cce965e\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx } from \"vue\"\n\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport useDialog from \"@/composables/useDialog\";\r\nimport { DialogType } from \"@/models/Symbols/Dialog\";\r\nimport useBook from \"@/modules/BookingFlow/composables/useBook\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport { useResourceSplitStore } from \"@/store/resourceSplit\";\r\nimport useVuelidate from \"@vuelidate/core\";\r\nimport { computed, onMounted, ref } from \"vue\";\r\nimport { useI18n } from \"vue-i18n\";\r\nimport BookingContinue from \"../BookingContinue.vue\";\r\nimport DepartureEdit from \"./DepartureEdit.vue\";\r\nimport DepartureSection from \"./DepartureSection.vue\";\r\nimport { usePassengerStore } from \"@/store/passenger\";\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Departures',\n setup(__props) {\n\r\nconst bookingStore = useBookingStore();\r\nconst passengerStore = usePassengerStore();\r\nconst splitStore = useResourceSplitStore();\r\nconst trips = computed(() => bookingStore.getTrips);\r\nconst { displayDialog } = useDialog();\r\nconst { t } = useI18n();\r\n\r\nconst { bookDeparture } = useBook();\r\n\r\nconst isSplit = bookingStore.getTrips.some((t) => splitStore.getIsSplit(t));\r\n\r\nonMounted(() => {\r\n if (isSplit) {\r\n if (passengerStore.isMixed) {\r\n displayDialog({\r\n title: t(\"booking.departure.split.noticeIslanderSplit.title\"),\r\n message: t(\"booking.departure.split.noticeIslanderSplit.body\"),\r\n type: DialogType.info,\r\n yes: t(\"booking.departure.split.noticeIslanderSplit.close\"),\r\n });\r\n } else {\r\n displayDialog({\r\n title: t(\"booking.departure.split.notice.title\"),\r\n message: t(\"booking.departure.split.notice.body\"),\r\n type: DialogType.info,\r\n yes: t(\"booking.departure.split.notice.close\"),\r\n });\r\n }\r\n\r\n splitStore.$reset();\r\n }\r\n});\r\n\r\nconst departureSections = ref();\r\n\r\nconst isFetching = computed(() => {\r\n if (!departureSections.value?.length) return true;\r\n return departureSections.value.some((s: any) => s.isFetching);\r\n});\r\n\r\nconst v$ = useVuelidate();\r\n\r\nconst isLoading = ref(false);\r\n\r\nconst goToNextStep = async (cb: Function) => {\r\n const isValid = await v$.value.$validate();\r\n if (!isValid) return;\r\n\r\n isLoading.value = true;\r\n\r\n bookDeparture()\r\n .then(() => cb())\r\n .catch(() => {\r\n isLoading.value = false;\r\n });\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _createVNode(DepartureEdit),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(trips.value, (direction) => {\n return (_openBlock(), _createBlock(DepartureSection, {\n ref_for: true,\n ref_key: \"departureSections\",\n ref: departureSections,\n direction: direction,\n key: direction\n }, null, 8, [\"direction\"]))\n }), 128)),\n _createVNode(BookingContinue, null, {\n default: _withCtx(({ nextStep }) => [\n _createVNode(BaseButton, {\n disabled: isFetching.value,\n loading: isLoading.value,\n onClick: ($event: any) => (goToNextStep(nextStep))\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"button.continue\")), 1)\n ]),\n _: 2\n }, 1032, [\"disabled\", \"loading\", \"onClick\"])\n ]),\n _: 1\n })\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./Departures.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./Departures.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { SeatingReservation, TransferResource } from \"./api/ExtrasResponse\";\r\n\r\ntype ExtrasSectionParams = {\r\n type: string;\r\n route: string;\r\n price?: number;\r\n ship?: string;\r\n reservation?: SeatingReservation;\r\n};\r\n\r\nexport class ExtrasSection {\r\n type: string;\r\n price?: number;\r\n resources?: ExtrasResource[];\r\n transferResources?: TransferResource[];\r\n route: string;\r\n ship: string;\r\n reservation?: SeatingReservation;\r\n\r\n constructor({ type, price, route, ship, reservation }: ExtrasSectionParams) {\r\n this.type = type;\r\n this.resources = [];\r\n this.transferResources = [];\r\n this.price = price;\r\n this.route = route;\r\n this.ship = ship ?? \"\";\r\n this.reservation = reservation;\r\n }\r\n}\r\n\r\nexport type ExtrasResource = {\r\n id: string;\r\n identifier: string;\r\n code: string;\r\n title: string;\r\n description?: string;\r\n imageUrl?: string;\r\n price?: number;\r\n currency?: string;\r\n isDrink?: boolean;\r\n originalPrice?: number;\r\n hasDiscount?: boolean;\r\n amount: number;\r\n maxAmount?: number;\r\n passengerType?: string;\r\n};\r\n","import useApi from \"@/composables/useApi\";\r\nimport { parseDate } from \"@/helpers/dateHelpers\";\r\nimport { ExtrasResponse } from \"@/models/api/ExtrasResponse\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport { ExtrasSection } from \"@/models/Extras\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport { useDepartureStore } from \"@/store/departure\";\r\nimport { useResourceStore } from \"@/store/resource\";\r\nimport { useSeatingStore } from \"@/store/seatingStore\";\r\nimport { useTransferStore } from \"@/store/transferStore\";\r\nimport { computed } from \"vue\";\r\nimport { useI18n } from \"vue-i18n\";\r\nimport { useQuery } from \"vue-query\";\r\n\r\nconst useExtrasQuery = (direction: Direction) => {\r\n const { get } = useApi();\r\n const departureStore = useDepartureStore();\r\n const bookingStore = useBookingStore();\r\n const resourceStore = useResourceStore();\r\n const seatingStore = useSeatingStore();\r\n const transferStore = useTransferStore();\r\n const { t } = useI18n();\r\n\r\n const resourceId = computed(() => departureStore.getDeparture(direction).id);\r\n const route = computed(() => bookingStore.getRoute(direction));\r\n\r\n const mapExtrasResponse = (resp: ExtrasResponse) => {\r\n const extrasSections = [];\r\n\r\n if (resp.transferResources?.length) {\r\n if (resp.newTransfer) {\r\n const transferSection = new ExtrasSection({\r\n type: \"Transfer\",\r\n route: route.value,\r\n });\r\n\r\n transferSection.transferResources =\r\n resp.transferResources.map((tr) => ({\r\n ...tr,\r\n passengerInfo: tr.passengerInfo.map((pi) => ({\r\n ...pi,\r\n })),\r\n })) ?? [];\r\n\r\n extrasSections.push(transferSection);\r\n } else {\r\n const transferSection = new ExtrasSection({\r\n type: \"OldTransfer\",\r\n route: route.value,\r\n });\r\n\r\n transferSection.resources = resp.transferResources.map((tr: any) => ({\r\n id: tr.identifier,\r\n code: tr.resourceCode,\r\n identifier: tr.identifier,\r\n price: tr.price,\r\n title: t(`resources.${tr.resourceCode}.label`),\r\n amount: tr.amount,\r\n maxAmount: tr.maxAmount,\r\n }));\r\n\r\n extrasSections.push(transferSection);\r\n }\r\n }\r\n\r\n transferStore.setFromApi(direction, resp.transferResources);\r\n\r\n if (resp.seating && resp.seating.route) {\r\n extrasSections.push(\r\n new ExtrasSection({\r\n type: \"Seating\",\r\n ...resp.seating,\r\n })\r\n );\r\n }\r\n\r\n seatingStore.setFromApi(direction, resp.seating?.reservation);\r\n\r\n if (resp.foodResources?.length) {\r\n const foodSection = new ExtrasSection({\r\n type: \"Food\",\r\n route: route.value,\r\n });\r\n\r\n foodSection.resources = resp.foodResources.map((fr) => ({\r\n id: fr.identifier,\r\n code: fr.resourceCode,\r\n identifier: fr.identifier,\r\n price: fr.price,\r\n title: fr.name,\r\n description: fr.text,\r\n imageUrl: fr.imageUrl.replace(\"test.\", \"\"),\r\n isDrink: fr.options !== \"None\",\r\n hasDiscount: !!fr.discounts?.length,\r\n amount: fr.amount,\r\n maxAmount: fr.maxAmount,\r\n }));\r\n\r\n extrasSections.push(foodSection);\r\n }\r\n\r\n resourceStore.setFromApi(direction, extrasSections);\r\n\r\n return extrasSections;\r\n };\r\n\r\n const fetcher = (): Promise => {\r\n return get(\"extra\", { route: route.value }).then((resp) => mapExtrasResponse(resp.data));\r\n };\r\n\r\n return {\r\n ...useQuery([\"extras\", resourceId], fetcher, {\r\n enabled: computed(() => !!resourceId.value),\r\n refetchOnWindowFocus: false,\r\n keepPreviousData: true,\r\n staleTime: 1000 * 60,\r\n }),\r\n };\r\n};\r\n\r\nexport default useExtrasQuery;\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode } from \"vue\"\n\nimport BaseExpansionPanel from \"@/components/base/BaseExpansionPanel.vue\";\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ExtrasLoading',\n setup(__props) {\n\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, _renderList(3, (i) => {\n return _createVNode(BaseExpansionPanel, {\n icon: \"none\",\n class: \"extras-loading\",\n key: i\n }, {\n default: _withCtx(() => [\n _createTextVNode(\" Loading... \")\n ]),\n _: 2\n }, 1024)\n }), 64))\n}\n}\n\n})","import script from \"./ExtrasLoading.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./ExtrasLoading.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./ExtrasLoading.vue?vue&type=style&index=0&id=7c857389&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-7c857389\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, toDisplayString as _toDisplayString, unref as _unref, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, createVNode as _createVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-d162b4be\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"extra-quantity\" }\nconst _hoisted_2 = {\n key: 0,\n class: \"extra-quantity__title\"\n}\nconst _hoisted_3 = {\n key: 0,\n class: \"extra-quantity__description\"\n}\nconst _hoisted_4 = { class: \"extra-quantity__input-wrapper\" }\nconst _hoisted_5 = [\"for\"]\nconst _hoisted_6 = {\n key: 0,\n class: \"extra-quantity__image\"\n}\nconst _hoisted_7 = [\"src\", \"alt\"]\n\nimport BaseQuantity from \"@/components/base/BaseQuantity.vue\";\r\nimport { formatPrice } from \"@/helpers/priceHelpers\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport { ExtrasResource } from \"@/models/Extras\";\r\nimport { useResourceStore } from \"@/store/resource\";\r\nimport { computed } from \"vue\";\r\n\r\ninterface Props {\r\n resource: ExtrasResource;\r\n direction: Direction;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ExtraQuantity',\n props: {\n resource: {},\n direction: {}\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst resourceStore = useResourceStore();\r\n\r\nconst inputValue = computed({\r\n get(): number {\r\n const resources = resourceStore.getResources(props.direction);\r\n return resources.filter((p) => p.id === props.resource.id).length;\r\n },\r\n set(value: number) {\r\n resourceStore.setResource(props.direction, props.resource, value);\r\n },\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"extra-quantity__content\", { 'has-image': _ctx.resource.imageUrl }])\n }, [\n _renderSlot(_ctx.$slots, \"title\", { resource: _ctx.resource }, () => [\n (_ctx.resource.title)\n ? (_openBlock(), _createElementBlock(\"h4\", _hoisted_2, _toDisplayString(_ctx.resource.title) + \" \" + _toDisplayString(_unref(formatPrice)(_ctx.resource.price)), 1))\n : _createCommentVNode(\"\", true)\n ]),\n (_ctx.resource.description)\n ? (_openBlock(), _createElementBlock(\"p\", _hoisted_3, _toDisplayString(_ctx.resource.description), 1))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"label\", {\n for: _ctx.resource.id\n }, _toDisplayString(_ctx.$t(\"booking.extras.quantity\")), 9, _hoisted_5),\n _createVNode(BaseQuantity, {\n id: _ctx.resource.id,\n minValue: 0,\n maxValue: _ctx.resource.maxAmount,\n modelValue: inputValue.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((inputValue).value = $event)),\n active: inputValue.value > 0\n }, null, 8, [\"id\", \"maxValue\", \"modelValue\", \"active\"])\n ])\n ], 2),\n (_ctx.resource.imageUrl)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [\n _createElementVNode(\"img\", {\n src: _ctx.resource.imageUrl,\n alt: _ctx.resource.title\n }, null, 8, _hoisted_7)\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./ExtraQuantity.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./ExtraQuantity.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./ExtraQuantity.vue?vue&type=style&index=0&id=d162b4be&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-d162b4be\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, unref as _unref, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, createVNode as _createVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-4674055c\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"extra-quantity extra-quantity--small\" }\nconst _hoisted_2 = [\"for\"]\nconst _hoisted_3 = { key: 0 }\n\nimport BaseQuantity from \"@/components/base/BaseQuantity.vue\";\r\nimport { formatPrice } from \"@/helpers/priceHelpers\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport { ExtrasResource } from \"@/models/Extras\";\r\nimport { useResourceStore } from \"@/store/resource\";\r\nimport { computed } from \"vue\";\r\n\r\ninterface Props {\r\n resource: ExtrasResource;\r\n direction: Direction;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ExtraQuantitySmall',\n props: {\n resource: {},\n direction: {}\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst resourceStore = useResourceStore();\r\n\r\nconst resourceCount = computed(() => {\r\n const resources = resourceStore.getResources(props.direction);\r\n return resources.filter((p) => p.identifier === props.resource.identifier).length;\r\n});\r\n\r\nconst inputValue = computed({\r\n get(): number {\r\n return resourceCount.value;\r\n },\r\n set(value: number) {\r\n resourceStore.setResource(props.direction, props.resource, value);\r\n },\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"label\", {\n for: _ctx.resource.identifier\n }, [\n _createTextVNode(_toDisplayString(_ctx.resource.title) + \" - \" + _toDisplayString(_unref(formatPrice)(_ctx.resource.price)) + \" \", 1),\n (_ctx.resource.hasDiscount)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_3, _toDisplayString(`(${_ctx.$t(\"booking.extras.originalPrice\")} ${_unref(formatPrice)(_ctx.resource.originalPrice)})`), 1))\n : _createCommentVNode(\"\", true)\n ], 8, _hoisted_2),\n _createVNode(BaseQuantity, {\n id: _ctx.resource.identifier,\n minValue: 0,\n modelValue: inputValue.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((inputValue).value = $event)),\n active: inputValue.value > 0\n }, null, 8, [\"id\", \"modelValue\", \"active\"])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./ExtraQuantitySmall.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./ExtraQuantitySmall.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./ExtraQuantitySmall.vue?vue&type=style&index=0&id=4674055c&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-4674055c\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, normalizeClass as _normalizeClass, withCtx as _withCtx, createVNode as _createVNode, createTextVNode as _createTextVNode, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-0183621d\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"extras-group\" }\nconst _hoisted_2 = { class: \"extras-group__header\" }\nconst _hoisted_3 = {\n key: 0,\n class: \"extras-group\"\n}\nconst _hoisted_4 = { class: \"extras-group__header\" }\nconst _hoisted_5 = { class: \"btn-container\" }\n\nimport Dropdown from \"@/components/Dropdown.vue\";\r\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport BaseExpansionPanel from \"@/components/base/BaseExpansionPanel.vue\";\r\nimport BasePanel from \"@/components/base/BasePanel.vue\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport { ExtrasSection } from \"@/models/Extras\";\r\nimport { useResourceStore } from \"@/store/resource\";\r\nimport { computed } from \"vue\";\r\nimport ExtraQuantity from \"./ExtraQuantity.vue\";\r\nimport ExtraQuantitySmall from \"./ExtraQuantitySmall.vue\";\r\n\r\ninterface Props {\r\n section: ExtrasSection;\r\n direction: Direction;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Food',\n props: {\n section: {},\n direction: {}\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst food = computed(() => {\r\n return props.section.resources?.filter((r) => !r.isDrink);\r\n});\r\n\r\nconst drinks = computed(() => {\r\n return props.section.resources?.filter((r) => r.isDrink);\r\n});\r\n\r\nconst resourceStore = useResourceStore();\r\n\r\nconst isActive = resourceStore.getResources(props.direction).length > 0;\r\n\r\nconst selectedDrinkCount = computed(() => {\r\n const allDrinkIdentifiers = drinks.value?.map((d) => d.identifier) ?? [];\r\n return resourceStore.getResources(props.direction).filter((r) => allDrinkIdentifiers.includes(r.identifier)).length;\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseExpansionPanel, {\n icon: \"booking/food\",\n title: _ctx.$t('booking.extras.food.title'),\n subtitle: _ctx.$t('booking.extras.food.subtitle'),\n isOpen: isActive\n }, {\n default: _withCtx(() => [\n _createVNode(BasePanel, null, {\n default: _withCtx(() => [\n _createElementVNode(\"p\", null, _toDisplayString(_ctx.$t(\"booking.extras.food.description\")), 1),\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, _toDisplayString(_ctx.$t(\"booking.extras.food.groupTitle\")), 1),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(food.value, (resource) => {\n return (_openBlock(), _createBlock(ExtraQuantity, {\n key: resource.identifier,\n resource: resource,\n direction: _ctx.direction\n }, null, 8, [\"resource\", \"direction\"]))\n }), 128))\n ]),\n (drinks.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, _toDisplayString(_ctx.$t(\"booking.extras.drinks.groupTitle\")), 1),\n _createVNode(Dropdown, {\n class: \"drink-select\",\n mobileModal: \"\",\n modalTitle: _ctx.$t('booking.extras.drinks.select')\n }, {\n trigger: _withCtx(({ toggle, isOpen }) => [\n _createVNode(BaseButton, {\n class: _normalizeClass([\"btn--input\", { active: isOpen }]),\n type: \"button\",\n icon: \"chevron/chevron-down\",\n iconSize: \"sm\",\n onClick: toggle\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"span\", null, _toDisplayString(selectedDrinkCount.value > 0\r\n ? `${selectedDrinkCount.value} ${_ctx.$t(\"booking.extras.drinks.countUnit\", selectedDrinkCount.value)}`\r\n : _ctx.$t(\"booking.extras.drinks.noneSelected\")), 1)\n ]),\n _: 2\n }, 1032, [\"class\", \"onClick\"])\n ]),\n close: _withCtx(({ toggle }) => [\n _createElementVNode(\"div\", _hoisted_5, [\n _createVNode(BaseButton, {\n class: _normalizeClass('btn--secondary btn--fixed-width'),\n onClick: toggle\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"button.done\")), 1)\n ]),\n _: 2\n }, 1032, [\"onClick\"])\n ])\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"ul\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(drinks.value, (drink) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n key: drink.code\n }, [\n _createVNode(ExtraQuantitySmall, {\n resource: drink,\n direction: _ctx.direction\n }, null, 8, [\"resource\", \"direction\"])\n ]))\n }), 128))\n ])\n ]),\n _: 1\n }, 8, [\"modalTitle\"])\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"title\", \"subtitle\"]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./Food.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Food.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Food.vue?vue&type=style&index=0&id=0183621d&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-0183621d\"]])\n\nexport default __exports__","\r\nimport SF1650_AS from \"./SF1650/AS.json\";\r\nimport SF1650_ASB from \"./SF1650/ASB.json\";\r\nimport SF1650_DP from \"./SF1650/DP.json\";\r\nimport SF1650_FS_7 from \"./SF1650/FS_7.json\";\r\nimport SF1650_FS_8 from \"./SF1650/FS_8.json\";\r\nimport SF1650_MS from \"./SF1650/MS.json\";\r\n\r\nimport SF1500_AS from \"./SF1500/AS.json\";\r\nimport SF1500_FS from \"./SF1500/FS.json\";\r\n\r\nimport { SeatingDefinition } from \"@/models/front/seating/Seating\";\r\n\r\nexport function getSeatingBackground(ship: string, selection: string, deck?: number): SeatingDefinition {\r\n if (ship === 'SF1650') {\r\n switch (selection) {\r\n case 'AS': return SF1650_AS as SeatingDefinition;\r\n case 'ASB': return SF1650_ASB as SeatingDefinition;\r\n case 'DP': return SF1650_DP as SeatingDefinition;\r\n case 'MS': return SF1650_MS as SeatingDefinition;\r\n case 'FS': return (deck === 8 ? SF1650_FS_8 : SF1650_FS_7) as SeatingDefinition\r\n }\r\n } else if (ship === 'SF1500') {\r\n switch (selection) {\r\n case 'AS': return SF1500_AS as SeatingDefinition;\r\n case 'FS': return SF1500_FS as SeatingDefinition;\r\n }\r\n }\r\n\r\n throw new Error(\"Unsupported seating map\");\r\n}","import useApi from \"@/composables/useApi\";\r\nimport { getSeatingBackground } from \"@/config/seating/seatingMaps\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport { SeatingDefinition, SeatingPath } from \"@/models/front/seating/Seating\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport { computed } from \"vue\";\r\nimport { useI18n } from \"vue-i18n\";\r\nimport { useQuery } from \"vue-query\";\r\n\r\nconst useSeatingQuery = (direction: Direction, ship: string, resource: string) => {\r\n const { get } = useApi();\r\n const { t } = useI18n();\r\n\r\n const bookingStore = useBookingStore();\r\n\r\n const params = computed(() => {\r\n return {\r\n route: bookingStore.getRoute(direction),\r\n resource,\r\n ship,\r\n };\r\n });\r\n\r\n const mapSeatingMap = (definition: SeatingDefinition, seats: SeatingPath[], deck?: number) => {\r\n return definition.maps.map((m) => ({\r\n ...m,\r\n label: deck ? t(\"booking.extras.seating.deck\", { val: deck }) : \"\",\r\n seats,\r\n }));\r\n };\r\n\r\n const fetcher = (): Promise => {\r\n if (params.value.resource === \"FS\" && params.value.ship != \"SF1500\") {\r\n const deck7 = get(`extra/seating/${params.value.route}/FS_7`, \"\");\r\n const deck8 = get(`extra/seating/${params.value.route}/FS_8`, \"\");\r\n\r\n return Promise.all([deck7, deck8]).then(([deck7, deck8]) => {\r\n return {\r\n ship,\r\n selection: resource,\r\n maps: [\r\n ...mapSeatingMap(getSeatingBackground(params.value.ship, params.value.resource, 7), deck7.data, 7),\r\n ...mapSeatingMap(getSeatingBackground(params.value.ship, params.value.resource, 8), deck8.data, 8),\r\n ],\r\n };\r\n });\r\n } else {\r\n return get(`extra/seating/${params.value.route}/${params.value.resource}`, \"\").then((resp) => {\r\n const seatingDefinition = getSeatingBackground(params.value.ship, params.value.resource);\r\n return {\r\n ...seatingDefinition,\r\n maps: mapSeatingMap(seatingDefinition, resp.data),\r\n };\r\n });\r\n }\r\n };\r\n\r\n return {\r\n ...useQuery([\"seating\", params], fetcher, {\r\n refetchOnWindowFocus: false,\r\n staleTime: 1000 * 60,\r\n keepPreviousData: true,\r\n enabled: !!ship && !!resource,\r\n }),\r\n };\r\n};\r\n\r\nexport default useSeatingQuery;\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, renderList as _renderList, Fragment as _Fragment, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-a667e0ba\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"src\"]\nconst _hoisted_2 = { class: \"seating__selection\" }\nconst _hoisted_3 = { class: \"seating__selection\" }\nconst _hoisted_4 = { class: \"seating-number\" }\nconst _hoisted_5 = { class: \"seating__map\" }\nconst _hoisted_6 = { key: 0 }\nconst _hoisted_7 = [\"viewBox\"]\nconst _hoisted_8 = [\"cx\", \"cy\", \"r\"]\nconst _hoisted_9 = [\"d\"]\nconst _hoisted_10 = [\"d\", \"onClick\"]\nconst _hoisted_11 = {\n key: 0,\n class: \"map__overlay\"\n}\n\nimport BaseAlert from \"@/components/base/BaseAlert.vue\";\r\nimport BaseExpansionPanel from \"@/components/base/BaseExpansionPanel.vue\";\r\nimport BasePanel from \"@/components/base/BasePanel.vue\";\r\nimport BaseSpinner from \"@/components/base/BaseSpinner.vue\";\r\nimport { formatPrice } from \"@/helpers/priceHelpers\";\r\nimport { seatsForAllOrNone } from \"@/helpers/validators\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport { ExtrasSection } from \"@/models/Extras\";\r\nimport useSeatingQuery from \"@/modules/BookingFlow/composables/useSeatingQuery\";\r\nimport { usePassengerStore } from \"@/store/passenger\";\r\nimport { useResourceSplitStore } from \"@/store/resourceSplit\";\r\nimport { useSeatingStore } from \"@/store/seatingStore\";\r\nimport useVuelidate from \"@vuelidate/core\";\r\nimport { helpers } from \"@vuelidate/validators\";\r\nimport { reactive } from \"vue\";\r\nimport { useI18n } from \"vue-i18n\";\r\n\r\ninterface Props {\r\n direction: Direction;\r\n section: ExtrasSection;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Seating',\n props: {\n direction: {},\n section: {}\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\nconst publicPath = process.env.BASE_URL;\r\n\r\nconst { data, isFetching } = useSeatingQuery(props.direction, props.section.ship, props.section.reservation?.resourceCode ?? \"\");\r\n\r\nconst seatingStore = useSeatingStore();\r\nconst state = reactive({\r\n seats: seatingStore.getSelectedSeats(props.direction).seats ?? [],\r\n});\r\n\r\nconst selectSeat = (number: string) => {\r\n const index = state.seats.indexOf(number);\r\n if (index < 0) {\r\n const emptyIndex = state.seats.findIndex((v) => v === \"?\");\r\n state.seats[emptyIndex] = number;\r\n } else if (index > -1) {\r\n state.seats[index] = \"?\";\r\n }\r\n\r\n seatingStore.setSelectedSeats(props.direction, {\r\n identifier: props.section.reservation?.identifier ?? \"\",\r\n resourceCode: props.section.reservation?.resourceCode ?? \"\",\r\n seats: state.seats.filter((s) => s !== \"?\"),\r\n });\r\n};\r\n\r\nconst { t } = useI18n();\r\nconst passengerStore = usePassengerStore();\r\nconst splitStore = useResourceSplitStore();\r\n\r\nconst rules = {\r\n seats: {\r\n v: helpers.withMessage(t(\"validations.allPassengersSeated\"), (val: string[]) =>\r\n !splitStore.getIsSplit(props.direction) ? seatsForAllOrNone(passengerStore.getPassengers(props.direction), val) : true\r\n ),\r\n },\r\n};\r\n\r\nuseVuelidate(rules, state);\r\n\r\nconst isActive = !!props.section.reservation?.reservations.filter((r) => r !== \"?\").length;\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_ctx.section.reservation)\n ? (_openBlock(), _createBlock(BaseExpansionPanel, {\n key: 0,\n icon: \"booking/lounge-chair\",\n title: `${_ctx.$t('booking.extras.seating.title')} (${_unref(formatPrice)(_ctx.section.price)}/${_ctx.$t('booking.extras.seating.loungeChair')})`,\n subtitle: _ctx.$t('booking.extras.seating.subtitle'),\n isOpen: isActive\n }, {\n default: _withCtx(() => [\n (!_unref(isFetching) && (_unref(data)?.maps.findIndex((m) => m.seats.length > 0) ?? -1) < 0)\n ? (_openBlock(), _createBlock(BasePanel, { key: 0 }, {\n default: _withCtx(() => [\n _createVNode(BaseAlert, {\n message: _ctx.$t('extras.seating.noSeats'),\n type: \"info\"\n }, null, 8, [\"message\"])\n ]),\n _: 1\n }))\n : (_openBlock(), _createBlock(BasePanel, {\n key: 1,\n class: \"seating\"\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"img\", {\n src: `${_unref(publicPath)}seating/${_ctx.section.ship}/${_ctx.section.reservation.resourceCode}.svg`\n }, null, 8, _hoisted_1),\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"p\", null, _toDisplayString(_ctx.$t(\"booking.extras.seating.description\")) + \":\", 1),\n _createElementVNode(\"p\", null, [\n _createElementVNode(\"strong\", null, _toDisplayString(_ctx.$t(`resources.${_ctx.section.reservation?.resourceCode}.label`)), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"p\", null, _toDisplayString(_ctx.$t(\"booking.extras.seating.selectedLoungeChairs\")) + \":\", 1),\n _createElementVNode(\"ul\", _hoisted_4, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(state.seats, (seat) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n key: seat,\n class: _normalizeClass({ selected: seat !== '?' })\n }, _toDisplayString(seat), 3))\n }), 128))\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_5, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(data)?.maps, (map) => {\n return (_openBlock(), _createElementBlock(_Fragment, {\n key: map.viewBox\n }, [\n (map.seats.length)\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n (map.label)\n ? (_openBlock(), _createElementBlock(\"p\", _hoisted_6, _toDisplayString(map.label), 1))\n : _createCommentVNode(\"\", true),\n (_openBlock(), _createElementBlock(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n \"xml:space\": \"preserve\",\n viewBox: map.viewBox\n }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(map.background, (path, index) => {\n return (_openBlock(), _createElementBlock(_Fragment, { key: index }, [\n (path.circle)\n ? (_openBlock(), _createElementBlock(\"circle\", {\n key: 0,\n cx: path.circle.cx,\n cy: path.circle.cy,\n r: path.circle.r,\n class: _normalizeClass(path.class)\n }, null, 10, _hoisted_8))\n : (_openBlock(), _createElementBlock(\"path\", {\n key: 1,\n d: path.path,\n class: _normalizeClass(path.class)\n }, null, 10, _hoisted_9))\n ], 64))\n }), 128)),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(map.seats, (seat) => {\n return (_openBlock(), _createElementBlock(\"path\", {\n key: seat.number,\n d: seat.path,\n class: _normalizeClass([\"seat\", { selected: state.seats.includes(seat.number!), disabled: seat.disabled }]),\n onClick: () => selectSeat(seat.number!)\n }, null, 10, _hoisted_10))\n }), 128))\n ], 8, _hoisted_7))\n ], 64))\n : _createCommentVNode(\"\", true)\n ], 64))\n }), 128)),\n (_unref(isFetching))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_11, [\n _createVNode(BaseSpinner, { color: \"dark\" })\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _: 1\n }))\n ]),\n _: 1\n }, 8, [\"title\", \"subtitle\"]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./Seating.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Seating.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Seating.vue?vue&type=style&index=0&id=a667e0ba&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-a667e0ba\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createStaticVNode as _createStaticVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-26d4f2d1\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"transfer-map\" }\nconst _hoisted_2 = {\n xmlns: \"http://www.w3.org/2000/svg\",\n version: \"1.1\",\n viewBox: \"0 0 673.1 882.1\"\n}\nconst _hoisted_3 = /*#__PURE__*/_createStaticVNode(\"Visby\", 1)\nconst _hoisted_4 = {\n key: 0,\n id: \"lines-NY\"\n}\nconst _hoisted_5 = /*#__PURE__*/_createStaticVNode(\"UppsalaArlanda AirportStockholm CEskilstunaVästeråsNynäshamnSödertäljeEnköpingSträngnäs\", 21)\nconst _hoisted_26 = [\n _hoisted_5\n]\nconst _hoisted_27 = {\n key: 1,\n id: \"lines-OS\"\n}\nconst _hoisted_28 = /*#__PURE__*/_createStaticVNode(\"JönköpingNässjöVetlandaOskarshamnVäxjöKalmarLinköpingVästervikNorrköping\", 22)\nconst _hoisted_50 = [\n _hoisted_28\n]\nconst _hoisted_51 = {\n key: 2,\n id: \"stops-NY\"\n}\nconst _hoisted_52 = {\n key: 0,\n id: \"uppsala\"\n}\nconst _hoisted_53 = /*#__PURE__*/_createStaticVNode(\"\", 5)\nconst _hoisted_58 = [\n _hoisted_53\n]\nconst _hoisted_59 = {\n key: 1,\n id: \"arlanda\"\n}\nconst _hoisted_60 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"path\", {\n class: \"bus-stop\",\n d: \"M557.3,267.7c5.8,0,10.5-4.7,10.5-10.5s-4.7-10.5-10.5-10.5-10.5,4.7-10.5,10.5,4.7,10.5,10.5,10.5Z\"\n}, null, -1))\nconst _hoisted_61 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"polyline\", {\n class: \"bus-line active\",\n points: \"534 211.6 557.7 257 546.4 332.3\"\n}, null, -1))\nconst _hoisted_62 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"path\", {\n class: \"bus-stop\",\n d: \"M545.9,342.1c5.8,0,10.5-4.7,10.5-10.5s-4.7-10.5-10.5-10.5-10.5,4.7-10.5,10.5,4.7,10.5,10.5,10.5Z\"\n}, null, -1))\nconst _hoisted_63 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"path\", {\n class: \"bus-stop\",\n d: \"M534.2,222.8c5.8,0,10.5-4.7,10.5-10.5s-4.7-10.5-10.5-10.5-10.5,4.7-10.5,10.5,4.7,10.5,10.5,10.5Z\"\n}, null, -1))\nconst _hoisted_64 = [\n _hoisted_60,\n _hoisted_61,\n _hoisted_62,\n _hoisted_63\n]\nconst _hoisted_65 = {\n key: 2,\n id: \"stockholm\"\n}\nconst _hoisted_66 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"line\", {\n class: \"bus-line active\",\n x1: \"557.7\",\n y1: \"257.2\",\n x2: \"546.5\",\n y2: \"332.4\"\n}, null, -1))\nconst _hoisted_67 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"path\", {\n class: \"bus-stop\",\n d: \"M557.3,267.7c5.8,0,10.5-4.7,10.5-10.5s-4.7-10.5-10.5-10.5-10.5,4.7-10.5,10.5,4.7,10.5,10.5,10.5Z\"\n}, null, -1))\nconst _hoisted_68 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"path\", {\n class: \"bus-stop\",\n d: \"M546,342.1c5.8,0,10.5-4.7,10.5-10.5s-4.7-10.5-10.5-10.5-10.5,4.7-10.5,10.5,4.7,10.5,10.5,10.5Z\"\n}, null, -1))\nconst _hoisted_69 = [\n _hoisted_66,\n _hoisted_67,\n _hoisted_68\n]\nconst _hoisted_70 = {\n key: 3,\n id: \"eskilstuna\"\n}\nconst _hoisted_71 = /*#__PURE__*/_createStaticVNode(\"\", 7)\nconst _hoisted_78 = [\n _hoisted_71\n]\nconst _hoisted_79 = {\n key: 4,\n id: \"vasteras\"\n}\nconst _hoisted_80 = /*#__PURE__*/_createStaticVNode(\"\", 6)\nconst _hoisted_86 = [\n _hoisted_80\n]\nconst _hoisted_87 = {\n key: 5,\n id: \"enkoping\"\n}\nconst _hoisted_88 = /*#__PURE__*/_createStaticVNode(\"\", 5)\nconst _hoisted_93 = [\n _hoisted_88\n]\nconst _hoisted_94 = {\n key: 6,\n id: \"strangnas\"\n}\nconst _hoisted_95 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"path\", {\n class: \"bus-stop\",\n d: \"M524.9,295.6c5.8,0,10.5-4.7,10.5-10.5s-4.7-10.5-10.5-10.5-10.5,4.7-10.5,10.5,4.7,10.5,10.5,10.5Z\"\n}, null, -1))\nconst _hoisted_96 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"polyline\", {\n class: \"bus-line active\",\n points: \"545.1 329.8 525.2 285.1 476.9 256.3\"\n}, null, -1))\nconst _hoisted_97 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"path\", {\n class: \"bus-stop\",\n d: \"M545.9,342.1c5.8,0,10.5-4.7,10.5-10.5s-4.7-10.5-10.5-10.5-10.5,4.7-10.5,10.5,4.7,10.5,10.5,10.5Z\"\n}, null, -1))\nconst _hoisted_98 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"path\", {\n class: \"bus-stop\",\n d: \"M477.1,266.6c5.8,0,10.5-4.7,10.5-10.5s-4.7-10.5-10.5-10.5-10.5,4.7-10.5,10.5,4.7,10.5,10.5,10.5Z\"\n}, null, -1))\nconst _hoisted_99 = [\n _hoisted_95,\n _hoisted_96,\n _hoisted_97,\n _hoisted_98\n]\nconst _hoisted_100 = {\n key: 7,\n id: \"sodertalje\"\n}\nconst _hoisted_101 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"line\", {\n class: \"bus-line active\",\n x1: \"545.2\",\n y1: \"329.8\",\n x2: \"525.3\",\n y2: \"285.1\"\n}, null, -1))\nconst _hoisted_102 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"path\", {\n class: \"bus-stop\",\n d: \"M546,342c5.8,0,10.5-4.7,10.5-10.5s-4.7-10.5-10.5-10.5-10.5,4.7-10.5,10.5,4.7,10.5,10.5,10.5Z\"\n}, null, -1))\nconst _hoisted_103 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"path\", {\n class: \"bus-stop\",\n d: \"M524.9,295.5c5.8,0,10.5-4.7,10.5-10.5s-4.7-10.5-10.5-10.5-10.5,4.7-10.5,10.5,4.7,10.5,10.5,10.5Z\"\n}, null, -1))\nconst _hoisted_104 = [\n _hoisted_101,\n _hoisted_102,\n _hoisted_103\n]\nconst _hoisted_105 = {\n key: 3,\n id: \"stops-OS\"\n}\nconst _hoisted_106 = {\n key: 0,\n id: \"vaxjo\"\n}\nconst _hoisted_107 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"path\", {\n class: \"bus-stop\",\n d: \"M420.9,681.7c5.8,0,10.5-4.7,10.5-10.5s-4.7-10.5-10.5-10.5-10.5,4.7-10.5,10.5,4.7,10.5,10.5,10.5Z\"\n}, null, -1))\nconst _hoisted_108 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"polyline\", {\n class: \"bus-line active\",\n points: \"295.6 637.1 421 671.2 440 583.8\"\n}, null, -1))\nconst _hoisted_109 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"path\", {\n class: \"bus-stop\",\n d: \"M295.4,647.6c5.8,0,10.5-4.7,10.5-10.5s-4.7-10.5-10.5-10.5-10.5,4.7-10.5,10.5,4.7,10.5,10.5,10.5Z\"\n}, null, -1))\nconst _hoisted_110 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"circle\", {\n class: \"bus-stop\",\n cx: \"439.8\",\n cy: \"584\",\n r: \"10.5\"\n}, null, -1))\nconst _hoisted_111 = [\n _hoisted_107,\n _hoisted_108,\n _hoisted_109,\n _hoisted_110\n]\nconst _hoisted_112 = {\n key: 1,\n id: \"kalmar\"\n}\nconst _hoisted_113 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"line\", {\n class: \"bus-line active\",\n x1: \"421\",\n y1: \"671.2\",\n x2: \"440\",\n y2: \"583.8\"\n}, null, -1))\nconst _hoisted_114 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"path\", {\n class: \"bus-stop\",\n d: \"M420.9,681.7c5.8,0,10.5-4.7,10.5-10.5s-4.7-10.5-10.5-10.5-10.5,4.7-10.5,10.5,4.7,10.5,10.5,10.5Z\"\n}, null, -1))\nconst _hoisted_115 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"circle\", {\n class: \"bus-stop\",\n cx: \"439.8\",\n cy: \"584\",\n r: \"10.5\"\n}, null, -1))\nconst _hoisted_116 = [\n _hoisted_113,\n _hoisted_114,\n _hoisted_115\n]\nconst _hoisted_117 = {\n key: 2,\n id: \"jonkoping\"\n}\nconst _hoisted_118 = /*#__PURE__*/_createStaticVNode(\"\", 5)\nconst _hoisted_123 = [\n _hoisted_118\n]\nconst _hoisted_124 = {\n key: 3,\n id: \"nassjo\"\n}\nconst _hoisted_125 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"path\", {\n class: \"bus-stop\",\n d: \"M332.5,571.4c5.8,0,10.5-4.7,10.5-10.5s-4.7-10.5-10.5-10.5-10.5,4.7-10.5,10.5,4.7,10.5,10.5,10.5Z\"\n}, null, -1))\nconst _hoisted_126 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"polyline\", {\n class: \"bus-line active\",\n points: \"301.6 529.2 332.5 561 440.2 583.8\"\n}, null, -1))\nconst _hoisted_127 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"path\", {\n class: \"bus-stop\",\n d: \"M301.6,539.8c5.8,0,10.5-4.7,10.5-10.5s-4.7-10.5-10.5-10.5-10.5,4.7-10.5,10.5,4.7,10.5,10.5,10.5Z\"\n}, null, -1))\nconst _hoisted_128 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"circle\", {\n class: \"bus-stop\",\n cx: \"439.8\",\n cy: \"584\",\n r: \"10.5\"\n}, null, -1))\nconst _hoisted_129 = [\n _hoisted_125,\n _hoisted_126,\n _hoisted_127,\n _hoisted_128\n]\nconst _hoisted_130 = {\n key: 4,\n id: \"vetlanda\"\n}\nconst _hoisted_131 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"line\", {\n class: \"bus-line active\",\n x1: \"332.5\",\n y1: \"561\",\n x2: \"440.2\",\n y2: \"583.8\"\n}, null, -1))\nconst _hoisted_132 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"path\", {\n class: \"bus-stop\",\n d: \"M332.5,571.4c5.8,0,10.5-4.7,10.5-10.5s-4.7-10.5-10.5-10.5-10.5,4.7-10.5,10.5,4.7,10.5,10.5,10.5Z\"\n}, null, -1))\nconst _hoisted_133 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"circle\", {\n class: \"bus-stop\",\n cx: \"439.8\",\n cy: \"584\",\n r: \"10.5\"\n}, null, -1))\nconst _hoisted_134 = [\n _hoisted_131,\n _hoisted_132,\n _hoisted_133\n]\nconst _hoisted_135 = {\n key: 5,\n id: \"linkoping\"\n}\nconst _hoisted_136 = /*#__PURE__*/_createStaticVNode(\"\", 5)\nconst _hoisted_141 = [\n _hoisted_136\n]\nconst _hoisted_142 = {\n key: 6,\n id: \"norrköping\"\n}\nconst _hoisted_143 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"path\", {\n class: \"bus-stop\",\n d: \"M445.7,526.6c5.8,0,10.5-4.7,10.5-10.5s-4.7-10.5-10.5-10.5-10.5,4.7-10.5,10.5,4.7,10.5,10.5,10.5Z\"\n}, null, -1))\nconst _hoisted_144 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"polyline\", {\n class: \"bus-line active\",\n points: \"402.8 375.1 446 516.3 440.2 585.4\"\n}, null, -1))\nconst _hoisted_145 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"path\", {\n class: \"bus-stop\",\n d: \"M402.6,385.6c5.8,0,10.5-4.7,10.5-10.5s-4.7-10.5-10.5-10.5-10.5,4.7-10.5,10.5,4.7,10.5,10.5,10.5Z\"\n}, null, -1))\nconst _hoisted_146 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"circle\", {\n class: \"bus-stop\",\n cx: \"439.9\",\n cy: \"584\",\n r: \"10.5\"\n}, null, -1))\nconst _hoisted_147 = [\n _hoisted_143,\n _hoisted_144,\n _hoisted_145,\n _hoisted_146\n]\nconst _hoisted_148 = {\n key: 7,\n id: \"vastervik\"\n}\nconst _hoisted_149 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"line\", {\n class: \"bus-line active\",\n x1: \"445.9\",\n y1: \"516.3\",\n x2: \"440.2\",\n y2: \"585.4\"\n}, null, -1))\nconst _hoisted_150 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"path\", {\n class: \"bus-stop\",\n d: \"M445.6,526.6c5.8,0,10.5-4.7,10.5-10.5s-4.7-10.5-10.5-10.5-10.5,4.7-10.5,10.5,4.7,10.5,10.5,10.5Z\"\n}, null, -1))\nconst _hoisted_151 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"circle\", {\n class: \"bus-stop\",\n cx: \"439.8\",\n cy: \"584\",\n r: \"10.5\"\n}, null, -1))\nconst _hoisted_152 = [\n _hoisted_149,\n _hoisted_150,\n _hoisted_151\n]\n\ninterface Props {\r\n route: string;\r\n selectedStations: string;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TransferMap',\n props: {\n route: {},\n selectedStations: {}\n },\n setup(__props: any) {\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_openBlock(), _createElementBlock(\"svg\", _hoisted_2, [\n _hoisted_3,\n (_ctx.route.includes('NY'))\n ? (_openBlock(), _createElementBlock(\"g\", _hoisted_4, _hoisted_26))\n : (_ctx.route.includes('OS'))\n ? (_openBlock(), _createElementBlock(\"g\", _hoisted_27, _hoisted_50))\n : _createCommentVNode(\"\", true),\n (_ctx.route.includes('NY'))\n ? (_openBlock(), _createElementBlock(\"g\", _hoisted_51, [\n (_ctx.selectedStations.includes('UPP'))\n ? (_openBlock(), _createElementBlock(\"g\", _hoisted_52, _hoisted_58))\n : (_ctx.selectedStations.includes('ARN'))\n ? (_openBlock(), _createElementBlock(\"g\", _hoisted_59, _hoisted_64))\n : (_ctx.selectedStations.includes('CEN') || _ctx.selectedStations.includes('UVA') || _ctx.selectedStations.includes('GUL') || _ctx.selectedStations.includes('JÄR'))\n ? (_openBlock(), _createElementBlock(\"g\", _hoisted_65, _hoisted_69))\n : (_ctx.selectedStations.includes('ESK'))\n ? (_openBlock(), _createElementBlock(\"g\", _hoisted_70, _hoisted_78))\n : (_ctx.selectedStations.includes('VAS'))\n ? (_openBlock(), _createElementBlock(\"g\", _hoisted_79, _hoisted_86))\n : (_ctx.selectedStations.includes('ENK'))\n ? (_openBlock(), _createElementBlock(\"g\", _hoisted_87, _hoisted_93))\n : (_ctx.selectedStations.includes('STR'))\n ? (_openBlock(), _createElementBlock(\"g\", _hoisted_94, _hoisted_99))\n : (_ctx.selectedStations.includes('SOD'))\n ? (_openBlock(), _createElementBlock(\"g\", _hoisted_100, _hoisted_104))\n : _createCommentVNode(\"\", true)\n ]))\n : (_ctx.route.includes('OS'))\n ? (_openBlock(), _createElementBlock(\"g\", _hoisted_105, [\n (_ctx.selectedStations.includes('VAX') || _ctx.selectedStations.includes('LES'))\n ? (_openBlock(), _createElementBlock(\"g\", _hoisted_106, _hoisted_111))\n : (_ctx.selectedStations.includes('KAL'))\n ? (_openBlock(), _createElementBlock(\"g\", _hoisted_112, _hoisted_116))\n : (_ctx.selectedStations.includes('JON'))\n ? (_openBlock(), _createElementBlock(\"g\", _hoisted_117, _hoisted_123))\n : (_ctx.selectedStations.includes('NAS'))\n ? (_openBlock(), _createElementBlock(\"g\", _hoisted_124, _hoisted_129))\n : (_ctx.selectedStations.includes('VET'))\n ? (_openBlock(), _createElementBlock(\"g\", _hoisted_130, _hoisted_134))\n : (_ctx.selectedStations.includes('LIN'))\n ? (_openBlock(), _createElementBlock(\"g\", _hoisted_135, _hoisted_141))\n : (_ctx.selectedStations.includes('NOR'))\n ? (_openBlock(), _createElementBlock(\"g\", _hoisted_142, _hoisted_147))\n : (_ctx.selectedStations.includes('VVI'))\n ? (_openBlock(), _createElementBlock(\"g\", _hoisted_148, _hoisted_152))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n ]))\n}\n}\n\n})","import script from \"./TransferMap.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./TransferMap.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./TransferMap.vue?vue&type=style&index=0&id=26d4f2d1&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-26d4f2d1\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, createVNode as _createVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-5c0469ba\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"for\"]\nconst _hoisted_2 = { class: \"extra-quantity__group\" }\n\nimport BaseQuantity from \"@/components/base/BaseQuantity.vue\";\r\nimport { formatPrice } from \"@/helpers/priceHelpers\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport { TransferPassengerInfo } from \"@/models/api/ExtrasResponse\";\r\nimport { useTransferStore } from \"@/store/transferStore\";\r\nimport { computed } from \"vue\";\r\n\r\ninterface Props {\r\n resource: TransferPassengerInfo;\r\n direction: Direction;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TransferQuantitySmall',\n props: {\n resource: {},\n direction: {}\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst transferStore = useTransferStore();\r\n\r\nconst passengerCount = computed(() => {\r\n const passengers = transferStore.getPassengers(props.direction);\r\n return passengers.filter((p) => p.identifier === props.resource.identifier).length;\r\n});\r\n\r\nconst inputValue = computed({\r\n get(): number {\r\n return passengerCount.value;\r\n },\r\n set(value: number) {\r\n transferStore.setPassenger(props.direction, props.resource, value);\r\n },\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"extra-quantity extra-quantity--small\", { active: passengerCount.value > 0 }])\n }, [\n _createElementVNode(\"label\", {\n for: _ctx.resource.passengerType\n }, [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t(`passengerType.${_ctx.resource.passengerType}`)), 1),\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"span\", null, _toDisplayString(`${_unref(formatPrice)(_ctx.resource.price)}/st`), 1)\n ])\n ], 8, _hoisted_1),\n _createVNode(BaseQuantity, {\n id: _ctx.resource.passengerType,\n minValue: 0,\n modelValue: inputValue.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((inputValue).value = $event)),\n active: inputValue.value > 0,\n maxValue: _ctx.resource.maxAmount\n }, null, 8, [\"id\", \"modelValue\", \"active\", \"maxValue\"])\n ], 2))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./TransferQuantitySmall.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./TransferQuantitySmall.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./TransferQuantitySmall.vue?vue&type=style&index=0&id=5c0469ba&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-5c0469ba\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, withCtx as _withCtx, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-4fa66cc6\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"transfer-quantity\" }\nconst _hoisted_2 = { key: 0 }\nconst _hoisted_3 = {\n key: 1,\n class: \"placeholder\"\n}\nconst _hoisted_4 = { class: \"btn-container\" }\n\nimport Dropdown from \"@/components/Dropdown.vue\";\r\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport { TransferPassengerInfo } from \"@/models/api/ExtrasResponse\";\r\nimport { useTransferStore } from \"@/store/transferStore\";\r\nimport { computed } from \"vue\";\r\nimport TransferQuantitySmall from \"./TransferQuantitySmall.vue\";\r\n\r\ninterface Props {\r\n passengers: TransferPassengerInfo[];\r\n direction: Direction;\r\n selectedStationId: string;\r\n hasError: boolean;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TransferQuantity',\n props: {\n passengers: {},\n direction: {},\n selectedStationId: {},\n hasError: { type: Boolean }\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst transferStore = useTransferStore();\r\n\r\nconst selectedPassengerCount = computed(() => {\r\n const passengerResources = props.passengers.map((p) => p.identifier) ?? [];\r\n return transferStore.getPassengers(props.direction).filter((p) => passengerResources.includes(p.identifier)).length;\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(Dropdown, {\n mobileModal: \"\",\n modalTitle: _ctx.$t('booking.extras.transfer.passengers.modalTitle')\n }, {\n trigger: _withCtx(({ toggle, isOpen }) => [\n _createVNode(BaseButton, {\n class: _normalizeClass([\"btn--input\", { active: isOpen, error: _ctx.hasError }]),\n type: \"button\",\n icon: \"chevron/chevron-down\",\n iconSize: \"sm\",\n onClick: toggle\n }, {\n default: _withCtx(() => [\n (selectedPassengerCount.value > 0)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, _toDisplayString(`${selectedPassengerCount.value} resenär/er`), 1))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_3, _toDisplayString(_ctx.$t(\"booking.extras.transfer.passengers.placeholder\")), 1))\n ]),\n _: 2\n }, 1032, [\"class\", \"onClick\"])\n ]),\n close: _withCtx(({ toggle }) => [\n _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(BaseButton, {\n class: _normalizeClass('btn--secondary btn--fixed-width'),\n onClick: toggle\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"button.done\")), 1)\n ]),\n _: 2\n }, 1032, [\"onClick\"])\n ])\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"ul\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.passengers, (passenger) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n key: passenger.identifier\n }, [\n _createVNode(TransferQuantitySmall, {\n resource: passenger,\n direction: _ctx.direction\n }, null, 8, [\"resource\", \"direction\"])\n ]))\n }), 128))\n ])\n ]),\n _: 1\n }, 8, [\"modalTitle\"])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n@/store/busTransferStore\r\n","import script from \"./TransferQuantity.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./TransferQuantity.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./TransferQuantity.vue?vue&type=style&index=0&id=4fa66cc6&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-4fa66cc6\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, createElementVNode as _createElementVNode, unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-45bacd58\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"bus-transfer\" }\nconst _hoisted_2 = { class: \"bus-transfer__content\" }\nconst _hoisted_3 = { class: \"bus-transfer__group\" }\nconst _hoisted_4 = [\"innerHTML\"]\nconst _hoisted_5 = {\n key: 1,\n class: \"bus-transfer__info\"\n}\n\nimport { reactive, computed } from \"vue\";\r\nimport { Direction, BusDirection } from \"@/models/Enums\";\r\nimport { ExtrasSection } from \"@/models/Extras\";\r\nimport { OptionItem } from \"@/models/OptionItem\";\r\nimport { HHmm } from \"@/helpers/dateHelpers\";\r\nimport { useTransferStore } from \"@/store/transferStore\";\r\nimport BaseExpansionPanel from \"@/components/base/BaseExpansionPanel.vue\";\r\nimport BasePanel from \"@/components/base/BasePanel.vue\";\r\nimport TransferMap from \"./TransferMap.vue\";\r\nimport BaseDropdown from \"@/components/base/BaseDropdown.vue\";\r\nimport TransferQuantity from \"./TransferQuantity.vue\";\r\nimport SvgIcon from \"@/components/base/SvgIcon.vue\";\r\nimport { ResourceState } from \"@/models/store/BookingState\";\r\nimport { useI18n } from \"vue-i18n\";\r\nimport useVuelidate from \"@vuelidate/core\";\r\nimport { helpers } from \"@vuelidate/validators\";\r\n\r\ninterface Props {\r\n section: ExtrasSection;\r\n direction: Direction;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Transfer',\n props: {\n section: {},\n direction: {}\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst { t } = useI18n();\r\n\r\nconst transferStore = useTransferStore();\r\n\r\nconst isActive = transferStore.getPassengers(props.direction).length > 0;\r\n\r\nconst selectedStationId = computed({\r\n get(): string {\r\n return transferStore.getStationId(props.direction);\r\n },\r\n set(value: string) {\r\n transferStore.setStationId(props.direction, value);\r\n\r\n if (!value) {\r\n transferStore.setStationId(props.direction, \"\");\r\n transferStore.setPassengers(props.direction, []);\r\n return;\r\n }\r\n\r\n const newStation = props.section.transferResources?.find((r) => r.id === value);\r\n\r\n const newPassengers: ResourceState[] = [];\r\n\r\n transferStore.getPassengers(props.direction).forEach((p) => {\r\n const newIdentifier = newStation?.passengerInfo?.find((r) => r.passengerType === p.id)?.identifier;\r\n if (newIdentifier) {\r\n newPassengers.push({\r\n ...p,\r\n identifier: newIdentifier,\r\n });\r\n }\r\n });\r\n\r\n transferStore.setPassengers(props.direction, newPassengers);\r\n },\r\n});\r\n\r\nconst busDirection = props.section.transferResources ? props.section.transferResources[0].busDirection : BusDirection.To;\r\n\r\n// Use the busDirection of the first station in the list to determine whether to show the\r\nconst stationOptions = props.section.transferResources?.filter(tr => !tr.fromStop.isLocked && !tr.toStop.isLocked).map((tr) => {\r\n if (busDirection === BusDirection.From) {\r\n return {\r\n label: `${t(`booking.extras.transfer.stations.${tr.toStop.nameCode}.name`)} -\r\n ${t(`booking.extras.transfer.stations.${tr.fromStop.nameCode}.name`)}\r\n (${t(`booking.extras.transfer.busDirection.${busDirection}.prefix`)} ${HHmm(tr.fromStop.arrivalDateTime)})`,\r\n value: tr.id\r\n } as OptionItem;\r\n } else {\r\n return {\r\n label: `${t(`booking.extras.transfer.stations.${tr.fromStop.nameCode}.name`)}\r\n (${t(`booking.extras.transfer.busDirection.${busDirection}.prefix`)} ${HHmm(tr.fromStop.departureDateTime)})\r\n - ${t(`booking.extras.transfer.stations.${tr.toStop.nameCode}.name`)}`,\r\n value: tr.id\r\n } as OptionItem;\r\n }\r\n});\r\n\r\n// Get the fromStop and toStop names (ex. 'LIN' or 'OHT') using the selectedStationId\r\n// Used with the TransferMap to highlight the corresponding stops and the route between them\r\nconst fromStation = computed(() => {\r\n const data = props.section.transferResources?.find((d) => d.id === selectedStationId.value);\r\n return data ? data.fromStop.nameCode : \"\";\r\n});\r\n\r\nconst toStation = computed(() => {\r\n const data = props.section.transferResources?.find((d) => d.id === selectedStationId.value);\r\n return data ? data.toStop.nameCode : \"\";\r\n});\r\n\r\nconst selectedStationInfo = computed(() => {\r\n const data = props.section.transferResources?.find((d) => d.id === selectedStationId.value);\r\n\r\n return busDirection === BusDirection.To && data?.fromStop.nameCode === fromStation.value\r\n ? `${t(`booking.extras.transfer.busDirection.${busDirection}.stationDescription`)} ${data.fromStop.name}` \r\n : busDirection === BusDirection.From && data?.toStop.nameCode === toStation.value\r\n ? `${t(`booking.extras.transfer.busDirection.${busDirection}.stationDescription`)} ${data.fromStop.name}`\r\n : \"\";\r\n});\r\n\r\nconst state = reactive({\r\n passengers: 0,\r\n});\r\n\r\nconst rules = {\r\n passengers: {\r\n v: helpers.withMessage(t(\"validations.transferPassengersRequired\"), \r\n () => selectedStationId.value.length !== 0 ? transferStore.getPassengers(props.direction).length > 0 : true),\r\n },\r\n};\r\nconst v$ = useVuelidate(rules, state);\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseExpansionPanel, {\n icon: \"booking/bus\",\n title: _ctx.$t(`booking.extras.transfer.${_ctx.section.route}.title`),\n subtitle: _ctx.$t(`booking.extras.transfer.${_ctx.section.route}.subtitle`),\n isOpen: isActive\n }, {\n default: _withCtx(() => [\n _createVNode(BasePanel, null, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, [\n _createVNode(TransferMap, {\n route: _ctx.section.route,\n selectedStations: `${fromStation.value} ${toStation.value}`\n }, null, 8, [\"route\", \"selectedStations\"]),\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"p\", {\n innerHTML: _ctx.$t(`booking.extras.transfer.${_ctx.section.route}.description`)\n }, null, 8, _hoisted_4),\n _createVNode(BaseDropdown, {\n options: _unref(stationOptions),\n modelValue: selectedStationId.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((selectedStationId).value = $event)),\n placeholder: _ctx.$t(`booking.extras.transfer.busDirection.${_unref(busDirection)}.placeholder`),\n canClear: \"\"\n }, null, 8, [\"options\", \"modelValue\", \"placeholder\"]),\n (selectedStationId.value?.length)\n ? (_openBlock(), _createBlock(TransferQuantity, {\n key: 0,\n selectedStationId: selectedStationId.value,\n passengers: _ctx.section.transferResources?.find((tr) => tr.id === selectedStationId.value)?.passengerInfo ?? [],\n direction: _ctx.direction,\n hasError: _unref(v$).passengers.$error\n }, null, 8, [\"selectedStationId\", \"passengers\", \"direction\", \"hasError\"]))\n : _createCommentVNode(\"\", true),\n (selectedStationInfo.value.length)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createVNode(SvgIcon, { icon: \"booking/point\" }),\n _createElementVNode(\"p\", null, _toDisplayString(selectedStationInfo.value), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ])\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"title\", \"subtitle\"]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n\r\n","import script from \"./Transfer.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Transfer.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Transfer.vue?vue&type=style&index=0&id=45bacd58&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-45bacd58\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createBlock as _createBlock, createVNode as _createVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-76646bcc\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"innerHTML\"]\nconst _hoisted_2 = { class: \"price\" }\n\nimport BaseExpansionPanel from \"@/components/base/BaseExpansionPanel.vue\";\r\nimport BasePanel from \"@/components/base/BasePanel.vue\";\r\nimport { formatPrice } from \"@/helpers/priceHelpers\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport { ExtrasSection } from \"@/models/Extras\";\r\nimport ExtraQuantity from \"./ExtraQuantity.vue\";\r\n\r\ninterface Props {\r\n section: ExtrasSection;\r\n direction: Direction;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'OldTransfer',\n props: {\n section: {},\n direction: {}\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst isActive = props.section.resources?.some((r) => r.amount > 0);\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseExpansionPanel, {\n icon: \"booking/bus\",\n title: _ctx.$t('booking.extras.transfer-old.title'),\n subtitle: _ctx.$t(`booking.extras.transfer-old.${_ctx.section.route}.subtitle`),\n isOpen: _unref(isActive)\n }, {\n default: _withCtx(() => [\n _createVNode(BasePanel, null, {\n default: _withCtx(() => [\n _createElementVNode(\"p\", {\n innerHTML: _ctx.$t(`booking.extras.transfer-old.${_ctx.section.route}.description`)\n }, null, 8, _hoisted_1),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.section.resources, (resource) => {\n return (_openBlock(), _createBlock(ExtraQuantity, {\n key: resource.identifier,\n resource: resource,\n direction: _ctx.direction\n }, {\n title: _withCtx(({ resource }) => [\n _createElementVNode(\"h4\", null, [\n _createTextVNode(_toDisplayString(resource.title) + \", \", 1),\n _createElementVNode(\"span\", _hoisted_2, _toDisplayString(_unref(formatPrice)(resource.price)) + \" /\" + _toDisplayString(_ctx.$t(\"booking.extras.transfer.perSingleJourney\")), 1)\n ])\n ]),\n _: 2\n }, 1032, [\"resource\", \"direction\"]))\n }), 128))\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"title\", \"subtitle\", \"isOpen\"]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./OldTransfer.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./OldTransfer.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./OldTransfer.vue?vue&type=style&index=0&id=76646bcc&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-76646bcc\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, createElementBlock as _createElementBlock, resolveDynamicComponent as _resolveDynamicComponent, createVNode as _createVNode, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-84f1a1b8\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 3,\n class: \"extras-section--loading\"\n}\n\nimport BaseSection from \"@/components/base/BaseSection.vue\";\r\nimport BaseSpinner from \"@/components/base/BaseSpinner.vue\";\r\nimport { YYYYMMDD } from \"@/helpers/dateHelpers\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport useExtrasQuery from \"@/modules/BookingFlow/composables/useExtrasQuery\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport { computed } from \"vue\";\r\nimport { useI18n } from \"vue-i18n\";\r\nimport ExtrasLoading from \"./ExtrasLoading.vue\";\r\nimport Food from \"./Food.vue\";\r\nimport Seating from \"./Seating.vue\";\r\nimport Transfer from \"./Transfer.vue\";\r\nimport BaseAlert from \"@/components/base/BaseAlert.vue\";\r\nimport OldTransfer from \"./OldTransfer.vue\";\r\n\r\ninterface Props {\r\n direction: Direction;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ExtrasSection',\n props: {\n direction: {}\n },\n setup(__props: any, { expose: __expose }) {\n\r\nconst props = __props;\r\n\r\nconst components = {\r\n Food,\r\n Transfer,\r\n Seating,\r\n OldTransfer,\r\n};\r\nconst bookingStore = useBookingStore();\r\nconst { data, isLoading, isFetching } = useExtrasQuery(props.direction);\r\n\r\nconst { t } = useI18n();\r\nconst title = props.direction === Direction.Outward ? t(\"booking.extras.title\") : undefined;\r\n\r\nconst date = computed(() => bookingStore.getDate(props.direction));\r\n\r\nconst infoText = computed(() => {\r\n return `${props.direction === Direction.Outward ? t(\"booking.departure.outward\") : t(\"booking.departure.return\")}: ${\r\n date.value ? YYYYMMDD(date.value) : \"\"\r\n }`;\r\n});\r\n\r\n__expose({\r\n isFetching,\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseSection, {\n class: \"extras-section\",\n title: _unref(title),\n subtitle: _ctx.$t('booking.extras.subtitle'),\n infoText: infoText.value\n }, {\n default: _withCtx(() => [\n (_unref(isLoading))\n ? (_openBlock(), _createBlock(ExtrasLoading, { key: 0 }))\n : (_unref(data)?.length)\n ? (_openBlock(true), _createElementBlock(_Fragment, { key: 1 }, _renderList(_unref(data), (section) => {\n return (_openBlock(), _createBlock(_resolveDynamicComponent(components[section.type as keyof typeof components]), {\n section: section,\n direction: _ctx.direction,\n key: section.type\n }, null, 8, [\"section\", \"direction\"]))\n }), 128))\n : (_openBlock(), _createBlock(BaseAlert, {\n key: 2,\n type: \"info\",\n message: _ctx.$t('booking.extras.noExtras')\n }, null, 8, [\"message\"])),\n (_unref(isFetching) && !_unref(isLoading))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(BaseSpinner, { color: \"dark\" })\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"title\", \"subtitle\", \"infoText\"]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./ExtrasSection.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./ExtrasSection.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./ExtrasSection.vue?vue&type=style&index=0&id=84f1a1b8&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-84f1a1b8\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx } from \"vue\"\n\nconst _hoisted_1 = { class: \"extras\" }\n\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport useBook from \"@/modules/BookingFlow/composables/useBook\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport useVuelidate from \"@vuelidate/core\";\r\nimport { computed, ref } from \"vue\";\r\nimport BookingContinue from \"../BookingContinue.vue\";\r\nimport BookingSpacer from \"../BookingSpacer.vue\";\r\nimport ExtrasSection from \"./ExtrasSection.vue\";\r\nimport BaseMessages from \"@/components/base/BaseMessages.vue\";\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Extras',\n setup(__props) {\n\r\nconst bookingStore = useBookingStore();\r\nconst trips = computed(() => bookingStore.getTrips);\r\n\r\nconst { bookExtras } = useBook();\r\n\r\nconst extrasSections = ref();\r\n\r\nconst isFetching = computed(() => {\r\n if (!extrasSections.value?.length) return true;\r\n return extrasSections.value.some((s: any) => s.isFetching);\r\n});\r\n\r\nconst v$ = useVuelidate();\r\n\r\nconst isLoading = ref(false);\r\n\r\nconst goToNextStep = async (cb: Function) => {\r\n const isValid = await v$.value.$validate();\r\n if (!isValid) return;\r\n\r\n isLoading.value = true;\r\n\r\n bookExtras()\r\n .then(() => cb())\r\n .catch(() => {\r\n isLoading.value = false;\r\n });\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(BookingSpacer),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(trips.value, (direction) => {\n return (_openBlock(), _createBlock(ExtrasSection, {\n ref_for: true,\n ref_key: \"extrasSections\",\n ref: extrasSections,\n direction: direction,\n key: direction\n }, null, 8, [\"direction\"]))\n }), 128)),\n _createVNode(BaseMessages, {\n class: \"booking-messages\",\n messages: _unref(v$).$errors.map((e) => e.$message)\n }, null, 8, [\"messages\"]),\n _createVNode(BookingContinue, null, {\n default: _withCtx(({ nextStep }) => [\n _createVNode(BaseButton, {\n onClick: ($event: any) => (goToNextStep(nextStep)),\n disabled: isFetching.value,\n loading: isLoading.value\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"button.continue\")), 1)\n ]),\n _: 2\n }, 1032, [\"onClick\", \"disabled\", \"loading\"])\n ]),\n _: 1\n })\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./Extras.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Extras.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { BookingDetailsResponse } from \"../api/BookingDetailsResponse\";\r\nimport { CoPassenger } from \"./customer/CoPassengers\";\r\nimport { Passenger } from \"./Passenger\";\r\nimport { Vehicle } from \"./Vehicle\";\r\n\r\nexport class BookingDetails {\r\n bookingNumber: number;\r\n passengers: Passenger[];\r\n coPassengers: CoPassenger[];\r\n vehicles: Vehicle[];\r\n\r\n constructor(resp: BookingDetailsResponse) {\r\n this.bookingNumber = resp.bookingNumber;\r\n this.passengers = resp.passengers.map(p => new Passenger(p));\r\n this.coPassengers = resp.coPassengers.map(cp => new CoPassenger(cp));\r\n this.vehicles = resp.vehicles.map(v => new Vehicle(v));\r\n }\r\n}","import { BookingDetailsResponse } from \"@/models/api/BookingDetailsResponse\";\r\nimport { PassengerResultDto } from \"@/models/api/PassengerResponse\";\r\nimport { VehicleResultDto } from \"@/models/api/VehicleResponse\";\r\nimport { Direction, TripType } from \"@/models/Enums\";\r\nimport { BookingDetails } from \"@/models/front/BookingDetails\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport { usePassengerStore } from \"@/store/passenger\";\r\nimport { useVehicleStore } from \"@/store/vehicle\";\r\nimport { useMutation, useQuery } from \"vue-query\";\r\nimport useApi from \"~/composables/useApi\";\r\n\r\nconst useTravelDetailsQuery = (enabled = true) => {\r\n const { get, post } = useApi({ displayErrors: false });\r\n const bookingStore = useBookingStore();\r\n const passengerStore = usePassengerStore();\r\n const vehicleStore = useVehicleStore();\r\n\r\n const mapBookingDetailsRequest = (): BookingDetailsResponse => {\r\n const trips = [Direction.Outward];\r\n if (bookingStore.tripType === TripType.Return) trips.push(Direction.Return);\r\n const mapPassengers = () => {\r\n const passengers = trips.map((d) => ({\r\n passengers: passengerStore.getPassengers(d),\r\n route: bookingStore.getRoute(d),\r\n }));\r\n\r\n return passengers.flatMap((p) =>\r\n p.passengers.map(\r\n (passenger: any) =>\r\n ({\r\n ...passenger,\r\n passengerType: passenger.type,\r\n disability: passenger.disabilities,\r\n route: p.route,\r\n dontKnow: passenger.unknownDetails,\r\n } as PassengerResultDto)\r\n )\r\n );\r\n };\r\n\r\n const mapVehicles = () => {\r\n const vehicles = [Direction.Outward, Direction.Return].map((d) => ({\r\n vehicle: vehicleStore.getVehicle(d),\r\n route: bookingStore.getRoute(d),\r\n }));\r\n\r\n return vehicles\r\n .filter((v) => (v.vehicle.code?.length ?? 0) > 0)\r\n .map((v) => ({\r\n resourceCode: v.vehicle.code,\r\n licenseNumber: v.vehicle.license,\r\n route: v.route,\r\n isGasOrElectric: v.vehicle.isGasOrElectric,\r\n })) as VehicleResultDto[];\r\n };\r\n\r\n return {\r\n bookingNumber: bookingStore.getBookingNumber,\r\n passengers: mapPassengers(),\r\n vehicles: mapVehicles(),\r\n } as BookingDetailsResponse;\r\n };\r\n\r\n const fetcher = (): Promise => {\r\n return get(\"travel/details\", {}).then((resp) => {\r\n const data = new BookingDetails(resp.data);\r\n\r\n passengerStore.setFromApi(data.passengers);\r\n vehicleStore.setFromApi(data.vehicles);\r\n bookingStore.setBookingNumber(data.bookingNumber);\r\n return data;\r\n });\r\n };\r\n\r\n const setBookingDetailsMutation = useMutation(() => {\r\n return post(\"travel/details\", mapBookingDetailsRequest());\r\n });\r\n\r\n return {\r\n ...useQuery([\"passengers\"], fetcher, {\r\n refetchOnWindowFocus: false,\r\n enabled,\r\n retry: false,\r\n }),\r\n setBookingDetailsMutation,\r\n };\r\n};\r\n\r\nexport default useTravelDetailsQuery;\r\n","import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_BaseDropdown = _resolveComponent(\"BaseDropdown\")!\n\n return (_openBlock(), _createBlock(_component_BaseDropdown, {\n label: _ctx.label,\n options: _ctx.disabilities,\n name: _ctx.name,\n hasError: _ctx.hasError,\n errors: _ctx.errors,\n modelValue: _ctx.inputValue,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.inputValue) = $event)),\n mode: \"multiple\",\n canClear: true,\n hideSelected: false,\n closeOnSelect: false,\n multipleLabelMaxLength: 50,\n max: 2\n }, null, 8, [\"label\", \"options\", \"name\", \"hasError\", \"errors\", \"modelValue\"]))\n}","\r\n\r\n\r\n\r\n\r\n","import i18n from \"./i18n\";\r\n\r\nexport const disabilities = [\r\n {\r\n label: i18n.global.t('disabilities.RULLST'),\r\n value: \"RULLST\"\r\n },\r\n {\r\n label: i18n.global.t('disabilities.ELRULL'),\r\n value: \"ELRULL\"\r\n },\r\n {\r\n label: i18n.global.t('disabilities.SYNSKAD'),\r\n value: \"SYNSKAD\"\r\n },\r\n {\r\n label: i18n.global.t('disabilities.HORSEL'),\r\n value: \"HORSEL\"\r\n },\r\n {\r\n label: i18n.global.t('disabilities.MEDUTR'),\r\n value: \"MEDUTR\"\r\n },\r\n]","import { render } from \"./BaseDisabilitySelect.vue?vue&type=template&id=accc45ca&ts=true\"\nimport script from \"./BaseDisabilitySelect.vue?vue&type=script&lang=ts\"\nexport * from \"./BaseDisabilitySelect.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-21db6b35\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"co-passenger-select\" }\nconst _hoisted_2 = { class: \"co-passenger\" }\nconst _hoisted_3 = {\n key: 0,\n class: \"co-passenger-select__remove\"\n}\nconst _hoisted_4 = { class: \"btn-container\" }\n\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport BaseRadio from \"@/components/base/BaseRadio.vue\";\r\nimport SvgIcon from \"@/components/base/SvgIcon.vue\";\r\nimport Dropdown from \"@/components/Dropdown.vue\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport { CoPassenger } from \"@/models/front/customer/CoPassengers\";\r\nimport { usePassengerStore } from \"@/store/passenger\";\r\nimport { computed, ref } from \"vue\";\r\n\r\ninterface Props {\r\n coPassengers: CoPassenger[];\r\n modelValue?: string;\r\n direction: Direction;\r\n canRemove: boolean;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'CoPassengerSelect',\n props: {\n coPassengers: {},\n modelValue: {},\n direction: {},\n canRemove: { type: Boolean }\n },\n emits: [\"update:modelValue\", \"clear\"],\n setup(__props: any, { emit: __emit }) {\n\r\nconst props = __props;\r\nconst emit = __emit;\r\nconst dropdownRef = ref();\r\n\r\nconst passengerStore = usePassengerStore();\r\n\r\nconst isDisabled = (id: string) =>\r\n passengerStore\r\n .getPassengers(props.direction)\r\n .filter((p) => p.coPassengerId !== inputValue.value)\r\n .map((p) => p.coPassengerId)\r\n .includes(id);\r\n\r\nconst inputValue = computed({\r\n get() {\r\n return props.modelValue;\r\n },\r\n set(value?: string) {\r\n emit(\"update:modelValue\", value);\r\n },\r\n});\r\n\r\nconst clear = () => {\r\n inputValue.value = \"\";\r\n emit(\"clear\");\r\n};\r\n\r\nconst onInput = () => {\r\n setTimeout(() => {\r\n if (inputValue.value) {\r\n dropdownRef.value.toggle();\r\n }\r\n }, 10);\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(Dropdown, {\n ref_key: \"dropdownRef\",\n ref: dropdownRef,\n mobileModal: \"\",\n modalTitle: _ctx.$t('booking.passengers.selectCoPassengerModal')\n }, {\n trigger: _withCtx(({ toggle }) => [\n _createVNode(BaseButton, {\n onClick: toggle,\n class: \"co-passenger-select__trigger btn--secondary\"\n }, {\n default: _withCtx(() => [\n _createVNode(SvgIcon, { icon: \"user-plus\" }),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"booking.passengers.selectCoPassenger\")), 1)\n ]),\n _: 2\n }, 1032, [\"onClick\"])\n ]),\n close: _withCtx(({ toggle }) => [\n _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(BaseButton, {\n onClick: toggle,\n class: \"btn--secondary btn--fixed-width\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"button.done\")), 1)\n ]),\n _: 2\n }, 1032, [\"onClick\"])\n ])\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"ul\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.coPassengers, (coPassenger) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n key: coPassenger.coPaxId\n }, [\n _createVNode(BaseRadio, {\n modelValue: inputValue.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((inputValue).value = $event)),\n name: `co-passenger`,\n value: coPassenger.coPaxId,\n id: coPassenger.coPaxId,\n label: coPassenger.name.toLocaleLowerCase(),\n disabled: isDisabled(coPassenger.coPaxId),\n class: _normalizeClass({ active: inputValue.value === coPassenger.coPaxId }),\n onInput: onInput\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, _toDisplayString(coPassenger.name.toLocaleLowerCase()), 1)\n ]),\n _: 2\n }, 1032, [\"modelValue\", \"value\", \"id\", \"label\", \"disabled\", \"class\"]),\n (inputValue.value === coPassenger.coPaxId && _ctx.canRemove === true)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n _createVNode(BaseButton, {\n onClick: clear,\n class: \"btn--icon\"\n }, {\n default: _withCtx(() => [\n _createVNode(SvgIcon, { icon: 'booking/close' })\n ]),\n _: 1\n })\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n }), 128))\n ])\n ]),\n _: 1\n }, 8, [\"modalTitle\"])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./CoPassengerSelect.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./CoPassengerSelect.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./CoPassengerSelect.vue?vue&type=style&index=0&id=21db6b35&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-21db6b35\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, createElementBlock as _createElementBlock, withModifiers as _withModifiers, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-e4bcda1c\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"passenger-details\" }\nconst _hoisted_2 = { class: \"passenger-details__co-passenger\" }\nconst _hoisted_3 = { class: \"passenger-details__grid\" }\nconst _hoisted_4 = {\n key: 0,\n class: \"verify-islander\"\n}\nconst _hoisted_5 = { class: \"verify-islander__info\" }\nconst _hoisted_6 = { class: \"verify-islander__input\" }\nconst _hoisted_7 = [\"innerHTML\"]\nconst _hoisted_8 = {\n key: 2,\n class: \"passenger-info\"\n}\nconst _hoisted_9 = { class: \"disabilities\" }\n\nimport BaseAlert from \"@/components/base/BaseAlert.vue\";\r\nimport BaseCheckbox from \"@/components/base/BaseCheckbox.vue\";\r\nimport BaseCountrySelect from \"@/components/base/BaseCountrySelect.vue\";\r\nimport BaseDisabilitySelect from \"@/components/base/BaseDisabilitySelect.vue\";\r\nimport BaseGenderSelect from \"@/components/base/BaseGenderSelect.vue\";\r\nimport BaseInput from \"@/components/base/BaseInput.vue\";\r\nimport BaseTransitionExpand from \"@/components/base/BaseTransitionExpand.vue\";\r\nimport SvgIcon from \"@/components/base/SvgIcon.vue\";\r\nimport { passengerOptions } from \"@/config/passengers\";\r\nimport { YYYYMMDD } from \"@/helpers/dateHelpers\";\r\nimport { dateOfBirthIsValid, maxLength, required } from \"@/helpers/validators\";\r\nimport { Direction, PassengerType, UserType } from \"@/models/Enums\";\r\nimport { CoPassenger } from \"@/models/front/customer/CoPassengers\";\r\nimport { PassengerState } from \"@/models/store/BookingState\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport { usePassengerStore } from \"@/store/passenger\";\r\nimport { useUserStore } from \"@/store/user\";\r\nimport useVuelidate from \"@vuelidate/core\";\r\nimport { helpers, requiredIf } from \"@vuelidate/validators\";\r\nimport { differenceInYears } from \"date-fns\";\r\nimport { computed, reactive, ref, watch } from \"vue\";\r\nimport { useI18n } from \"vue-i18n\";\r\nimport CoPassengerSelect from \"./CoPassengerSelect.vue\";\r\nimport useBookingNavigation from \"@/modules/BookingFlow/composables/useBookingNavigation\";\r\n// eslint-disable-next-line @typescript-eslint/no-var-requires\r\ninterface Props {\r\n passenger: PassengerState;\r\n direction: Direction;\r\n index: number;\r\n coPassengers?: CoPassenger[];\r\n errorMessage?: string;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'PassengerDetails',\n props: {\n passenger: {},\n direction: {},\n index: {},\n coPassengers: {},\n errorMessage: {}\n },\n setup(__props: any) {\n\r\nconst isEqual = require(\"lodash.isequal\");\r\n\r\nconst props = __props;\r\nconst { t } = useI18n();\r\nconst passengerStore = usePassengerStore();\r\nconst bookingStore = useBookingStore();\r\n\r\nconst { goToStep } = useBookingNavigation();\r\n\r\nconst initialPassengerState = { ...props.passenger };\r\n\r\nconst state = reactive({\r\n firstName: props.passenger.firstName,\r\n lastName: props.passenger.lastName,\r\n dateOfBirth: props.passenger.dateOfBirth,\r\n gender: props.passenger.gender,\r\n country: props.passenger.country,\r\n disabilities: props.passenger.disabilities ?? [],\r\n coPassengerId: props.passenger.coPassengerId,\r\n lastFour: \"\",\r\n savePassenger: true,\r\n needsValidation: props.passenger.needsValidation,\r\n isLocked: props.passenger.isEditable !== true,\r\n});\r\n\r\nconst isAdult = computed(() => [PassengerType.Adult, PassengerType.AdultIslander].includes(props.passenger.type));\r\n\r\nconst typeIsEntitledToDiscount = computed(() => {\r\n if (state.dateOfBirth) {\r\n const age = differenceInYears(new Date(), new Date(state.dateOfBirth));\r\n return age >= 65 && isAdult.value;\r\n }\r\n return false;\r\n});\r\n\r\nconst filteredCoPassengers = computed(() => {\r\n return props.coPassengers?.filter((cp) => cp.passengerType === props.passenger.type.charAt(0) || props.passenger.type.charAt(0) === \"M\");\r\n});\r\n\r\nconst isCoPassengerSelected = (coPassenger: CoPassenger) => {\r\n const coPas = {\r\n firstName: coPassenger.firstName,\r\n lastName: coPassenger.lastName,\r\n dateOfBirth: YYYYMMDD(coPassenger.dateOfBirth),\r\n country: coPassenger.countryCode,\r\n gender: coPassenger.gender,\r\n };\r\n\r\n const pas = {\r\n firstName: state.firstName,\r\n lastName: state.lastName,\r\n dateOfBirth: state.dateOfBirth,\r\n country: state.country,\r\n gender: state.gender,\r\n };\r\n\r\n return isEqual(coPas, pas);\r\n};\r\n\r\nwatch(filteredCoPassengers, (passengers) => {\r\n if (!passengers?.length) return;\r\n const selectedCoPassenger = passengers.find((p) => isCoPassengerSelected(p));\r\n if (selectedCoPassenger) {\r\n state.coPassengerId = selectedCoPassenger.coPaxId;\r\n }\r\n});\r\n\r\nconst validateBirthDate = (value: string) => {\r\n const departureDate = bookingStore.getDate(props.direction) ?? new Date();\r\n const option = passengerOptions.find((p) => p.value === props.passenger.type[0]); //To work on islander types as well.\r\n\r\n if (!option || value.length < 10) return false;\r\n\r\n return dateOfBirthIsValid(value, option.min, option.max, departureDate);\r\n};\r\n\r\nconst validateLastFour = (passengerType: string, lastFour?: string) => {\r\n return passengerType.length === 1 || (lastFour?.length ?? 0) === 4;\r\n};\r\n\r\nconst rules = {\r\n firstName: { required, maxLength: maxLength(30) },\r\n lastName: { required, maxLength: maxLength(30) },\r\n dateOfBirth: {\r\n required,\r\n valid: helpers.withMessage(() => t(\"errors.invalidAge\"), validateBirthDate as any),\r\n },\r\n gender: { required },\r\n country: { required },\r\n disabilities: {},\r\n coPassengerId: {},\r\n lastFour: {\r\n required: helpers.withMessage(\r\n () => t(\"validations.required\"),\r\n requiredIf(function () {\r\n return islanderShouldValidate.value;\r\n })\r\n ),\r\n valid: validateLastFour(props.passenger.type, state.lastFour ?? \"\"),\r\n },\r\n savePassenger: {},\r\n needsValidation: {},\r\n isLocked: {},\r\n};\r\n\r\nwatch(state, () => {\r\n passengerStore.updatePassenger(props.direction, { ...props.passenger, ...state });\r\n});\r\n\r\nconst v$ = useVuelidate(rules, state);\r\n\r\nconst showDisabilities = ref(!!state.disabilities.length);\r\n\r\nconst selectedCoPassenger = computed({\r\n get() {\r\n return state.coPassengerId;\r\n },\r\n set(value?: string) {\r\n state.coPassengerId = value;\r\n const coPassenger = props.coPassengers?.find((cp) => cp.coPaxId === value);\r\n state.firstName = coPassenger?.firstName ?? \"\";\r\n state.lastName = coPassenger?.lastName ?? \"\";\r\n state.dateOfBirth = coPassenger?.dateOfBirth ? YYYYMMDD(coPassenger.dateOfBirth) : \"\";\r\n state.country = coPassenger?.countryCode ?? \"\";\r\n state.gender = coPassenger?.gender ?? \"\";\r\n state.needsValidation = coPassenger?.needsValidation && props.passenger.isIslander;\r\n },\r\n});\r\n\r\nconst userStore = useUserStore();\r\n\r\nconst coPassengerDiff = computed(() => {\r\n if (!state.coPassengerId) return false;\r\n const coPassenger = props.coPassengers?.find((cp) => cp.coPaxId === state.coPassengerId);\r\n\r\n if (!coPassenger) return false;\r\n\r\n return !isCoPassengerSelected(coPassenger);\r\n});\r\n\r\nconst isAgent = computed(() => userStore.isAgent);\r\n\r\nconst islanderShouldValidate = computed(() => {\r\n if (!props.passenger.isIslander || (!props.passenger.needsValidation && isAgent.value)) return false;\r\n\r\n if (state.needsValidation) return true;\r\n\r\n if (state.coPassengerId) return coPassengerDiff.value;\r\n\r\n // if we're coming back from another step or amendment, we compare what was returned from the api initially with the current state\r\n const apiPassenger = {\r\n firstName: initialPassengerState.firstName,\r\n lastName: initialPassengerState.lastName,\r\n dateOfBirth: initialPassengerState.dateOfBirth ? YYYYMMDD(initialPassengerState.dateOfBirth) : \"\",\r\n country: initialPassengerState.country,\r\n gender: initialPassengerState.gender,\r\n };\r\n\r\n const pas = {\r\n firstName: state.firstName,\r\n lastName: state.lastName,\r\n dateOfBirth: state.dateOfBirth ? YYYYMMDD(state.dateOfBirth) : \"\",\r\n country: state.country,\r\n gender: state.gender,\r\n };\r\n\r\n // if they are the same, the passenger does not need to be validated\r\n return !isEqual(apiPassenger, pas);\r\n});\r\n\r\nconst showSavePassenger = computed(\r\n () =>\r\n props.passenger.isEditable === true &&\r\n state.isEditable &&\r\n userStore.getUserType === UserType.Customer &&\r\n props.passenger.type !== \"M\" &&\r\n (!state.coPassengerId || coPassengerDiff.value)\r\n);\r\n\r\nconst onClearCoPassenger = () => {\r\n setTimeout(() => {\r\n v$.value.$reset();\r\n }, 10);\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"legend\", null, [\n _createElementVNode(\"b\", null, _toDisplayString(_ctx.$t(\"booking.passengers.passengerTitle\", { count: _ctx.index })), 1),\n _createTextVNode(\" - \" + _toDisplayString(_ctx.$t(`passengerType.${_ctx.passenger.type}`)), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", null, [\n (filteredCoPassengers.value?.length)\n ? (_openBlock(), _createBlock(CoPassengerSelect, {\n key: 0,\n modelValue: selectedCoPassenger.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((selectedCoPassenger).value = $event)),\n coPassengers: filteredCoPassengers.value,\n direction: _ctx.direction,\n canRemove: _unref(v$).isLocked.$model !== true,\n onClear: onClearCoPassenger\n }, null, 8, [\"modelValue\", \"coPassengers\", \"direction\", \"canRemove\"]))\n : _createCommentVNode(\"\", true)\n ]),\n (showSavePassenger.value)\n ? (_openBlock(), _createBlock(BaseCheckbox, {\n key: 0,\n id: `save-${_ctx.direction}-${_ctx.index}`,\n name: \"savePassenger\",\n label: \"Spara passagerare\",\n hasError: _unref(v$).savePassenger.$error,\n errors: _unref(v$).savePassenger.$errors,\n valid: !_unref(v$).savePassenger.$invalid,\n modelValue: _unref(v$).savePassenger.$model,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((_unref(v$).savePassenger.$model) = $event))\n }, null, 8, [\"id\", \"hasError\", \"errors\", \"valid\", \"modelValue\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_3, [\n _createVNode(BaseInput, {\n label: _ctx.$t('fields.firstName.label'),\n name: \"firstName\",\n hasError: _unref(v$).firstName.$error,\n errors: _unref(v$).firstName.$errors,\n valid: !_unref(v$).firstName.$invalid,\n modelValue: _unref(v$).firstName.$model,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => ((_unref(v$).firstName.$model) = $event)),\n modelModifiers: { trim: true },\n disabled: _unref(v$).isLocked.$model\n }, null, 8, [\"label\", \"hasError\", \"errors\", \"valid\", \"modelValue\", \"disabled\"]),\n _createVNode(BaseInput, {\n label: _ctx.$t('fields.lastName.label'),\n name: \"lastName\",\n hasError: _unref(v$).lastName.$error,\n errors: _unref(v$).lastName.$errors,\n valid: !_unref(v$).lastName.$invalid,\n modelValue: _unref(v$).lastName.$model,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => ((_unref(v$).lastName.$model) = $event)),\n modelModifiers: { trim: true },\n disabled: _unref(v$).isLocked.$model\n }, null, 8, [\"label\", \"hasError\", \"errors\", \"valid\", \"modelValue\", \"disabled\"]),\n _createVNode(BaseInput, {\n name: \"dateOfBirth\",\n type: \"tel\",\n mask: \"####-##-##\",\n hasError: _unref(v$).dateOfBirth.$error,\n valid: !_unref(v$).dateOfBirth.$invalid,\n modelValue: _unref(v$).dateOfBirth.$model,\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => ((_unref(v$).dateOfBirth.$model) = $event)),\n modelModifiers: { trim: true },\n label: _ctx.$t('fields.dateOfBirth.placeholder'),\n disabled: _unref(v$).isLocked.$model\n }, null, 8, [\"hasError\", \"valid\", \"modelValue\", \"label\", \"disabled\"]),\n _createVNode(BaseGenderSelect, {\n label: _ctx.$t('fields.gender.label'),\n name: \"gender\",\n hasError: _unref(v$).gender.$error,\n errors: _unref(v$).gender.$errors,\n valid: !_unref(v$).gender.$invalid,\n modelValue: _unref(v$).gender.$model,\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => ((_unref(v$).gender.$model) = $event)),\n disabled: _unref(v$).isLocked.$model\n }, null, 8, [\"label\", \"hasError\", \"errors\", \"valid\", \"modelValue\", \"disabled\"]),\n _createVNode(BaseCountrySelect, {\n label: _ctx.$t('fields.country.label'),\n name: \"country\",\n hasError: _unref(v$).country.$error,\n errors: _unref(v$).country.$errors,\n valid: !_unref(v$).country.$invalid,\n modelValue: _unref(v$).country.$model,\n \"onUpdate:modelValue\": _cache[6] || (_cache[6] = ($event: any) => ((_unref(v$).country.$model) = $event)),\n disabled: _unref(v$).isLocked.$model\n }, null, 8, [\"label\", \"hasError\", \"errors\", \"valid\", \"modelValue\", \"disabled\"])\n ]),\n (islanderShouldValidate.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _createVNode(SvgIcon, { icon: 'booking/info' }),\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"p\", {\n innerHTML: _ctx.$t('islander.verifyPassenger.description')\n }, null, 8, _hoisted_7),\n _createVNode(BaseInput, {\n class: \"verify-islander__input\",\n label: \"NNNN\",\n placeholder: \"4 sista\",\n hasError: _unref(v$).lastFour.$error,\n modelValue: _unref(v$).lastFour.$model,\n \"onUpdate:modelValue\": _cache[7] || (_cache[7] = ($event: any) => ((_unref(v$).lastFour.$model) = $event)),\n mask: \"####\"\n }, null, 8, [\"hasError\", \"modelValue\"])\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.errorMessage)\n ? (_openBlock(), _createBlock(BaseAlert, {\n key: 1,\n class: \"passenger-error\",\n type: \"danger\",\n message: _ctx.errorMessage\n }, null, 8, [\"message\"]))\n : _createCommentVNode(\"\", true),\n (typeIsEntitledToDiscount.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_8, [\n _createVNode(SvgIcon, { icon: \"alert/info\" }),\n _createElementVNode(\"p\", null, [\n _createTextVNode(_toDisplayString(_ctx.$t(\"booking.passengers.elderDiscountAvailable\")) + \" \", 1),\n _createElementVNode(\"span\", {\n onClick: _cache[8] || (_cache[8] = ($event: any) => (_unref(goToStep)(1)))\n }, _toDisplayString(_ctx.$t(\"booking.passengers.step1Link\")), 1)\n ])\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"a\", {\n href: \"#\",\n tabindex: \"1\",\n onClick: _cache[9] || (_cache[9] = _withModifiers(($event: any) => (showDisabilities.value = !showDisabilities.value), [\"prevent\"]))\n }, _toDisplayString(_ctx.$t(\"fields.disabilities.title\")), 1),\n _createVNode(BaseTransitionExpand, { expanded: showDisabilities.value }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_9, [\n _createVNode(BaseDisabilitySelect, {\n id: \"disabilities\",\n name: \"disabilities\",\n label: _ctx.$t('fields.disabilities.label'),\n hasError: _unref(v$).disabilities.$error,\n errors: _unref(v$).disabilities.$errors,\n valid: !_unref(v$).disabilities.$invalid,\n modelValue: _unref(v$).disabilities.$model,\n \"onUpdate:modelValue\": _cache[10] || (_cache[10] = ($event: any) => ((_unref(v$).disabilities.$model) = $event))\n }, null, 8, [\"label\", \"hasError\", \"errors\", \"valid\", \"modelValue\"])\n ])\n ]),\n _: 1\n }, 8, [\"expanded\"])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./PassengerDetails.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./PassengerDetails.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./PassengerDetails.vue?vue&type=style&index=0&id=e4bcda1c&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-e4bcda1c\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-6e938a79\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"co-vehicle-select\" }\nconst _hoisted_2 = { class: \"btn-container\" }\n\nimport Dropdown from \"@/components/Dropdown.vue\";\r\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport BaseRadio from \"@/components/base/BaseRadio.vue\";\r\nimport SvgIcon from \"@/components/base/SvgIcon.vue\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport { CoVehicle } from \"@/models/front/customer/CoVehicles\";\r\nimport { computed, ref } from \"vue\";\r\n\r\ninterface Props {\r\n coVehicles: CoVehicle[];\r\n modelValue: string;\r\n direction: Direction;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'CoVehicleSelect',\n props: {\n coVehicles: {},\n modelValue: {},\n direction: {}\n },\n emits: [\"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\r\nconst props = __props;\r\n\r\nconst emit = __emit;\r\n\r\nconst inputValue = computed({\r\n get() {\r\n return props.modelValue;\r\n },\r\n set(val: string) {\r\n emit(\"update:modelValue\", val);\r\n },\r\n});\r\n\r\nconst dropdownRef = ref();\r\nconst onInput = (e: InputEvent) => {\r\n setTimeout(() => {\r\n if ((e.target as HTMLInputElement).value) {\r\n dropdownRef.value.toggle();\r\n }\r\n }, 10);\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(Dropdown, {\n ref_key: \"dropdownRef\",\n ref: dropdownRef,\n mobileModal: \"\",\n modalTitle: _ctx.$t('booking.vehicles.selectCoVehicle')\n }, {\n trigger: _withCtx(({ toggle }) => [\n _createVNode(BaseButton, {\n onClick: toggle,\n class: \"co-vehicle-select__trigger btn--secondary\"\n }, {\n default: _withCtx(() => [\n _createVNode(SvgIcon, { icon: \"booking/car\" }),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"booking.vehicles.selectCoVehicle\")), 1)\n ]),\n _: 2\n }, 1032, [\"onClick\"])\n ]),\n close: _withCtx(({ toggle }) => [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(BaseButton, {\n onClick: toggle,\n class: \"btn--secondary btn--fixed-width\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"button.done\")), 1)\n ]),\n _: 2\n }, 1032, [\"onClick\"])\n ])\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"ul\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.coVehicles, (vehicle) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n key: vehicle.licenseNumber\n }, [\n _createVNode(BaseRadio, {\n modelValue: inputValue.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((inputValue).value = $event)),\n name: `co-vehicle-${_ctx.direction}`,\n value: vehicle.licenseNumber,\n id: vehicle.licenseNumber,\n label: vehicle.licenseNumber,\n onInput: onInput\n }, null, 8, [\"modelValue\", \"name\", \"value\", \"id\", \"label\"])\n ]))\n }), 128))\n ])\n ]),\n _: 1\n }, 8, [\"modalTitle\"])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./CoVehicleSelect.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./CoVehicleSelect.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./CoVehicleSelect.vue?vue&type=style&index=0&id=6e938a79&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-6e938a79\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-df5ab27e\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"vehicle-details\" }\nconst _hoisted_2 = { class: \"vehicle-details__content\" }\nconst _hoisted_3 = { class: \"radio-container\" }\n\nimport BaseInput from \"@/components/base/BaseInput.vue\";\r\nimport BasePanel from \"@/components/base/BasePanel.vue\";\r\nimport BaseRadio from \"@/components/base/BaseRadio.vue\";\r\nimport SvgIcon from \"@/components/base/SvgIcon.vue\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport useMyCoVehiclesQuery from \"@/modules/MyPages/composables/useMyCoVehiclesQuery\";\r\nimport { useVehicleStore } from \"@/store/vehicle\";\r\nimport useVuelidate from \"@vuelidate/core\";\r\nimport { reactive, watch } from \"vue\";\r\nimport CoVehicleSelect from \"./CoVehicleSelect.vue\";\r\n\r\ninterface Props {\r\n direction: Direction;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'VehicleDetails',\n props: {\n direction: {}\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\nconst vehicleStore = useVehicleStore();\r\nconst vehicle = vehicleStore.getVehicle(props.direction);\r\nconst { data: vehicles } = useMyCoVehiclesQuery();\r\n\r\nconst state = reactive({\r\n code: vehicle.code,\r\n license: vehicle.license,\r\n unknownLicense: vehicle.unknownLicense,\r\n isGasOrElectric: vehicle.isGasOrElectric,\r\n amount: vehicle.amount,\r\n petInVehicle: vehicle.petInVehicle,\r\n});\r\n\r\nconst updateVehicle = () => {\r\n vehicleStore.setVehicle(props.direction, {\r\n license: !state.unknownLicense ? state.license : \"\",\r\n unknownLicense: state.unknownLicense,\r\n isGasOrElectric: state.isGasOrElectric,\r\n amount: state.amount,\r\n code: state.code,\r\n petInVehicle: state.petInVehicle,\r\n requiresLicense: vehicle.requiresLicense,\r\n });\r\n};\r\n\r\n//sync to store when updated\r\nwatch(state, () => {\r\n updateVehicle();\r\n});\r\n\r\nconst rules = {\r\n code: {},\r\n license: {},\r\n unknownLicense: {},\r\n petInVehicle: {},\r\n isGasOrElectric: {},\r\n amount: {},\r\n};\r\n\r\nconst v$ = useVuelidate(rules, state);\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BasePanel, { alignLeft: \"\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, [\n _createVNode(SvgIcon, {\n class: \"icon\",\n icon: \"booking/car\"\n }),\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"p\", null, [\n _createElementVNode(\"b\", null, _toDisplayString(_ctx.$t(\"booking.vehicles.license.label\")), 1),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"booking.vehicles.license.subtitle\")), 1)\n ]),\n (_unref(vehicles)?.length)\n ? (_openBlock(), _createBlock(CoVehicleSelect, {\n key: 0,\n modelValue: _unref(v$).license.$model,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_unref(v$).license.$model) = $event)),\n coVehicles: _unref(vehicles),\n direction: _ctx.direction\n }, null, 8, [\"modelValue\", \"coVehicles\", \"direction\"]))\n : _createCommentVNode(\"\", true),\n _createVNode(BaseInput, {\n modelValue: _unref(v$).license.$model,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((_unref(v$).license.$model) = $event)),\n hasError: _unref(v$).license.$error,\n type: \"text\",\n name: \"registrationNumber\",\n placeholder: _ctx.$t('booking.vehicles.license.placeholder')\n }, null, 8, [\"modelValue\", \"hasError\", \"placeholder\"]),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"label\", null, _toDisplayString(_ctx.$t(\"booking.vehicles.gasOrElectric.label\")) + \":\", 1),\n _createVNode(BaseRadio, {\n modelValue: _unref(v$).isGasOrElectric.$model,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => ((_unref(v$).isGasOrElectric.$model) = $event)),\n id: `yes-${_ctx.direction}`,\n name: `isGasOrElectric-${_ctx.direction}`,\n label: _ctx.$t('button.yes'),\n value: true\n }, null, 8, [\"modelValue\", \"id\", \"name\", \"label\"]),\n _createVNode(BaseRadio, {\n modelValue: _unref(v$).isGasOrElectric.$model,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => ((_unref(v$).isGasOrElectric.$model) = $event)),\n id: `no-${_ctx.direction}`,\n name: `isGasOrElectric-${_ctx.direction}`,\n label: _ctx.$t('button.no'),\n value: false\n }, null, 8, [\"modelValue\", \"id\", \"name\", \"label\"])\n ])\n ])\n ])\n ]),\n _: 1\n }))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./VehicleDetails.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./VehicleDetails.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./VehicleDetails.vue?vue&type=style&index=0&id=df5ab27e&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-df5ab27e\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, createBlock as _createBlock, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-020ee64e\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"passenger-section__header\" }\nconst _hoisted_2 = { key: 0 }\nconst _hoisted_3 = { class: \"passenger-section__weekday\" }\nconst _hoisted_4 = { key: 1 }\nconst _hoisted_5 = { class: \"passenger-section__weekday\" }\nconst _hoisted_6 = { class: \"passenger-section__body\" }\nconst _hoisted_7 = {\n key: 0,\n class: \"passenger-section__loading\"\n}\n\nimport BaseAlert from \"@/components/base/BaseAlert.vue\";\r\nimport BaseCheckbox from \"@/components/base/BaseCheckbox.vue\";\r\nimport BasePanel from \"@/components/base/BasePanel.vue\";\r\nimport BaseSection from \"@/components/base/BaseSection.vue\";\r\nimport BaseSpinner from \"@/components/base/BaseSpinner.vue\";\r\nimport SvgIcon from \"@/components/base/SvgIcon.vue\";\r\nimport { EEEE, YYYYMMDD } from \"@/helpers/dateHelpers\";\r\nimport { Direction, TripType } from \"@/models/Enums\";\r\nimport { CoPassenger } from \"@/models/front/customer/CoPassengers\";\r\nimport { PassengerState, VehicleState } from \"@/models/store/BookingState\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport { usePassengerStore } from \"@/store/passenger\";\r\nimport { useVehicleStore } from \"@/store/vehicle\";\r\nimport { computed, watchEffect, ref } from \"vue\";\r\nimport PassengerDetails from \"./PassengerDetails.vue\";\r\nimport VehicleDetails from \"./VehicleDetails.vue\";\r\nimport BaseLightbox from \"@/components/base/BaseLightbox.vue\";\r\nimport { PassengerError } from \"@/models/front/PassengerError\";\r\n// eslint-disable-next-line @typescript-eslint/no-var-requires\r\ninterface Props {\r\n title?: string;\r\n subtitle?: string;\r\n subtitleLink?: string;\r\n direction: Direction;\r\n isLoading?: boolean;\r\n coPassengers?: CoPassenger[];\r\n passengerErrors?: PassengerError[];\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'PassengerSection',\n props: {\n title: {},\n subtitle: {},\n subtitleLink: {},\n direction: {},\n isLoading: { type: Boolean },\n coPassengers: {},\n passengerErrors: {}\n },\n setup(__props: any) {\n\r\nconst isEqual = require(\"lodash.isequal\");\r\n\r\nconst props = __props;\r\n\r\nconst showLightBox = ref(false);\r\n\r\nconst passengerStore = usePassengerStore();\r\nconst passengers = computed(() => passengerStore.getPassengers(props.direction));\r\n\r\nconst bookingStore = useBookingStore();\r\nconst isReturn = computed(() => bookingStore.tripType === TripType.Return);\r\n\r\nconst date = computed(() => bookingStore.getDate(props.direction));\r\nconst returnDate = computed(() => bookingStore.getDate(Direction.Return));\r\n\r\nconst differentDetails = computed({\r\n get() {\r\n return isReturn.value && bookingStore.getDifferentDetailsReturn;\r\n },\r\n set(val: boolean) {\r\n bookingStore.setIsDifferentDetails(val);\r\n if (val) {\r\n bookingStore.setOutwardDetailsOnReturn();\r\n }\r\n },\r\n});\r\n\r\nconst vehicleStore = useVehicleStore();\r\nconst hasVehicle = computed(() => vehicleStore.hasVehicle(props.direction) && vehicleStore.getVehicle(props.direction).requiresLicense);\r\n\r\nconst differentDetailsDisabled = computed(() => {\r\n const mapPassengers = (passengers: PassengerState[]) =>\r\n passengers.map((p) => ({\r\n type: p.type,\r\n }));\r\n\r\n const mapVehicle = (vehicle: VehicleState) => {\r\n return {\r\n code: vehicle.code,\r\n };\r\n };\r\n\r\n return !isEqual(\r\n [mapPassengers(passengerStore.getPassengers(Direction.Outward)), mapVehicle(vehicleStore.getVehicle(Direction.Outward))],\r\n [mapPassengers(passengerStore.getPassengers(Direction.Return)), mapVehicle(vehicleStore.getVehicle(Direction.Return))]\r\n );\r\n});\r\n\r\nwatchEffect(() => {\r\n if (differentDetailsDisabled.value) {\r\n bookingStore.setIsDifferentDetails(true);\r\n }\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseSection, {\n onEvent: _cache[2] || (_cache[2] = ($event: any) => (showLightBox.value = true)),\n title: _ctx.title,\n subtitle: _ctx.subtitle,\n subtitleTrigger: _ctx.subtitleLink,\n class: \"passenger-section\"\n }, {\n info: _withCtx(() => [\n _createVNode(SvgIcon, { icon: \"booking/avatars\" }),\n _createElementVNode(\"ul\", _hoisted_1, [\n (date.value)\n ? (_openBlock(), _createElementBlock(\"li\", _hoisted_2, [\n _createElementVNode(\"span\", null, [\n _createElementVNode(\"b\", null, _toDisplayString(_ctx.$t(`booking.directions.${_ctx.direction}`)) + \": \", 1),\n _createElementVNode(\"span\", _hoisted_3, _toDisplayString(_unref(EEEE)(date.value)), 1),\n _createTextVNode(\" \" + _toDisplayString(_unref(YYYYMMDD)(date.value)), 1)\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (!differentDetails.value && returnDate.value)\n ? (_openBlock(), _createElementBlock(\"li\", _hoisted_4, [\n _createElementVNode(\"span\", null, [\n _createElementVNode(\"b\", null, _toDisplayString(_ctx.$t(`booking.directions.${_unref(Direction).Return}`)) + \": \", 1),\n _createElementVNode(\"span\", _hoisted_5, _toDisplayString(_unref(EEEE)(returnDate.value)), 1),\n _createTextVNode(\" \" + _toDisplayString(_unref(YYYYMMDD)(returnDate.value)), 1)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_6, [\n (_ctx.isLoading)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n _createVNode(BaseSpinner, { color: \"dark\" })\n ]))\n : _createCommentVNode(\"\", true),\n (passengers.value.length)\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [\n (_openBlock(), _createBlock(BasePanel, {\n alignLeft: \"\",\n key: _ctx.isLoading ? 'loading' : ''\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(passengers.value, (passenger, index) => {\n return (_openBlock(), _createBlock(PassengerDetails, {\n key: passenger.id,\n passenger: passenger,\n index: index + 1,\n direction: _ctx.direction,\n coPassengers: _ctx.coPassengers,\n errorMessage: _ctx.passengerErrors?.find((e) => e.id === passenger.id)?.msg\n }, null, 8, [\"passenger\", \"index\", \"direction\", \"coPassengers\", \"errorMessage\"]))\n }), 128))\n ]),\n _: 1\n })),\n (hasVehicle.value)\n ? (_openBlock(), _createBlock(VehicleDetails, {\n key: 0,\n direction: _ctx.direction\n }, null, 8, [\"direction\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.direction === _unref(Direction).Outward && isReturn.value)\n ? (_openBlock(), _createBlock(BasePanel, {\n key: 1,\n alignLeft: \"\",\n class: \"different-details\"\n }, {\n default: _withCtx(() => [\n _createVNode(BaseCheckbox, {\n name: \"differentDetails\",\n id: \"differentDetails\",\n label: _ctx.$t('booking.passengerSection.checkbox'),\n modelValue: differentDetails.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((differentDetails).value = $event)),\n disabled: differentDetailsDisabled.value\n }, null, 8, [\"label\", \"modelValue\", \"disabled\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true)\n ], 64))\n : (_openBlock(), _createBlock(BaseAlert, {\n key: 2,\n type: \"danger\",\n message: _ctx.$t('errors.noPassengers')\n }, null, 8, [\"message\"]))\n ]),\n _createVNode(BaseLightbox, {\n modelValue: showLightBox.value,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((showLightBox).value = $event)),\n title: _ctx.$t('booking.passengerSection.lightbox.title'),\n maxWidth: 700\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"booking.passengerSection.lightbox.body\")), 1)\n ]),\n _: 1\n }, 8, [\"modelValue\", \"title\"])\n ]),\n _: 1\n }, 8, [\"title\", \"subtitle\", \"subtitleTrigger\"]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./PassengerSection.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./PassengerSection.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./PassengerSection.vue?vue&type=style&index=0&id=020ee64e&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-020ee64e\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, unref as _unref, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-1099520e\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"passenger\" }\n\nimport BaseAlert from \"@/components/base/BaseAlert.vue\";\r\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport BaseMessages from \"@/components/base/BaseMessages.vue\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport useTravelDetailsQuery from \"@/modules/BookingFlow/composables/useTravelDetailsQuery\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport useVuelidate from \"@vuelidate/core\";\r\nimport { computed, ref } from \"vue\";\r\nimport { useI18n } from \"vue-i18n\";\r\nimport BookingContinue from \"../BookingContinue.vue\";\r\nimport BookingSpacer from \"../BookingSpacer.vue\";\r\nimport PassengerSection from \"./PassengerSection.vue\";\r\nimport { PassengerError } from \"@/models/front/PassengerError\";\r\n\r\ntype PassengerSection = {\r\n title?: string;\r\n subtitle?: string;\r\n subtitleLink?: string;\r\n direction: Direction;\r\n};\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Passengers',\n setup(__props) {\n\r\nconst { t } = useI18n();\r\nconst bookingStore = useBookingStore();\r\n\r\nconst sections = computed((): PassengerSection[] => {\r\n const main = {\r\n title: t(\"booking.passengers.title\"),\r\n subtitle: t(\"booking.passengers.subtitle\"),\r\n subtitleLink: t(\"booking.passengers.subtitleLink\"),\r\n };\r\n\r\n const passengerSections: PassengerSection[] = [];\r\n const trips = bookingStore.getTrips;\r\n\r\n trips.forEach((t, index) => {\r\n if (index === 0) {\r\n passengerSections.push({ ...main, direction: t });\r\n } else if (bookingStore.getDifferentDetailsReturn) {\r\n passengerSections.push({ direction: t });\r\n }\r\n });\r\n\r\n return passengerSections;\r\n});\r\n\r\nconst v$ = useVuelidate();\r\n\r\nconst { setBookingDetailsMutation, isLoading, isFetching, data } = useTravelDetailsQuery();\r\nconst { isLoading: isSaving, error } = setBookingDetailsMutation;\r\n\r\nconst passengerErrors = ref([]);\r\n\r\nconst goToNextStep = async (cb: Function) => {\r\n const isValid = await v$.value.$validate();\r\n if (!isValid) return;\r\n passengerErrors.value = [];\r\n\r\n setBookingDetailsMutation\r\n .mutateAsync()\r\n .then(() => cb())\r\n .catch((err) => {\r\n if (err.response?.data?.travellers) {\r\n passengerErrors.value = Object.keys(err.response.data.travellers).map((t) => ({\r\n id: t,\r\n msg: err.message,\r\n }));\r\n }\r\n });\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(BookingSpacer),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(sections.value, (section) => {\n return (_openBlock(), _createBlock(PassengerSection, {\n key: section.direction,\n direction: section.direction,\n title: section.title,\n subtitle: section.subtitle,\n subtitleLink: section.subtitleLink,\n isLoading: _unref(isLoading) || _unref(isFetching),\n coPassengers: _unref(data)?.coPassengers,\n passengerErrors: passengerErrors.value\n }, null, 8, [\"direction\", \"title\", \"subtitle\", \"subtitleLink\", \"isLoading\", \"coPassengers\", \"passengerErrors\"]))\n }), 128)),\n _createVNode(BaseMessages, {\n messages: [...new Set(_unref(v$).$errors.map((e) => e.$message))]\n }, null, 8, [\"messages\"]),\n (_unref(error))\n ? (_openBlock(), _createBlock(BaseAlert, {\n key: 0,\n type: \"danger\",\n message: (_unref(error) as Error)?.message\n }, null, 8, [\"message\"]))\n : _createCommentVNode(\"\", true),\n _createVNode(BookingContinue, null, {\n default: _withCtx(({ nextStep }) => [\n _createVNode(BaseButton, {\n onClick: ($event: any) => (goToNextStep(nextStep)),\n loading: _unref(isSaving),\n disabled: _unref(isFetching)\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"button.continue\")), 1)\n ]),\n _: 2\n }, 1032, [\"onClick\", \"loading\", \"disabled\"])\n ]),\n _: 1\n })\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./Passengers.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./Passengers.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./Passengers.vue?vue&type=style&index=0&id=1099520e&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-1099520e\"]])\n\nexport default __exports__","export function passengerTypeIsIslander(passengerType: string): boolean {\r\n return passengerType.length > 1 && passengerType[1] === \"G\";\r\n}\r\n","import { getPassengerType } from \"@/helpers/passengerHelper\";\r\nimport { ResourceTypeDto } from \"../api/ResourceTypeDto\";\r\nimport { BookableResourcesResponse } from \"../api/BookableResourcesResponse\";\r\n// eslint-disable-next-line @typescript-eslint/no-var-requires\r\nconst isEqual = require(\"lodash.isequal\");\r\n\r\nclass ResourceSettingsItem {\r\n value: string;\r\n max?: number;\r\n min?: number;\r\n default?: boolean;\r\n\r\n constructor(resp: ResourceTypeDto) {\r\n this.value = resp.value;\r\n this.max = resp.max;\r\n this.default = resp.default;\r\n this.min = resp.min;\r\n }\r\n}\r\n\r\nexport class ResourceSettings {\r\n passengers: ResourceSettingsItem[];\r\n vehicles: ResourceSettingsItem[];\r\n islanderPassengers: ResourceSettingsItem[];\r\n isDifferentResourcesPerRoute: boolean;\r\n\r\n constructor(resp: BookableResourcesResponse, route?: string) {\r\n this.isDifferentResourcesPerRoute =\r\n resp.resources.length > 1 && !isEqual(resp.resources[0].resourceTypes, resp.resources[1].resourceTypes);\r\n\r\n const resourcesForRoute =\r\n (route ? resp.resources.find((r) => r.routes.includes(route))?.resourceTypes : resp.resources[0].resourceTypes) ?? [];\r\n\r\n const resources = resolveResources(resourcesForRoute);\r\n\r\n this.passengers = resources.passengers;\r\n this.vehicles = resources.vehicles;\r\n this.islanderPassengers = resources.islanderPassengers;\r\n }\r\n}\r\n\r\nfunction resolveResources(resources: ResourceTypeDto[]) {\r\n return {\r\n passengers: resources.filter((r) => r.type === \"Passenger\"),\r\n vehicles: resources.filter((r) => r.type === \"Vehicle\"),\r\n islanderPassengers: resources\r\n .filter((r) => r.type === \"IslanderPassenger\")\r\n .map((r) => ({ ...r, value: getPassengerType(r.value, true) })),\r\n };\r\n}\r\n","import useApi from \"@/composables/useApi\";\r\nimport { passengerTypeIsIslander } from \"@/helpers/islanderHelper\";\r\nimport { BookableResourcesResponse } from \"@/models/api/BookableResourcesResponse\";\r\nimport { Direction, PassengerType } from \"@/models/Enums\";\r\nimport { ResourceSettings } from \"@/models/front/ResourceSettings\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport { usePassengerStore } from \"@/store/passenger\";\r\nimport { useVehicleStore } from \"@/store/vehicle\";\r\nimport { computed } from \"vue\";\r\nimport { useQuery } from \"vue-query\";\r\n\r\nconst useBookableResourceQuery = (direction: Direction) => {\r\n const { get } = useApi();\r\n const passengerStore = usePassengerStore();\r\n const vehicleStore = useVehicleStore();\r\n const bookingStore = useBookingStore();\r\n\r\n const clearUnavailableResources = (resources: string[], hasDifferentDetails: boolean) => {\r\n const trips = hasDifferentDetails ? [direction] : bookingStore.getTrips;\r\n trips.forEach((d) => {\r\n const passengers = passengerStore.getPassengers(d).filter((p) => resources.includes(p.type));\r\n passengerStore.setPassengers(d, passengers);\r\n\r\n const vehicle = vehicleStore.getVehicle(d);\r\n if (!resources.includes(vehicle.code)) {\r\n vehicleStore.resetVehicle(d);\r\n }\r\n });\r\n };\r\n\r\n const setDefaultPassenger = (resourceSettings: ResourceSettings) => {\r\n const defaultPassenger = [...resourceSettings.passengers, ...resourceSettings.islanderPassengers].find((p) => p.default);\r\n\r\n [Direction.Outward, Direction.Return].forEach((d) => {\r\n const hasAnyPassengers = passengerStore.getPassengers(d).length > 0;\r\n if (!hasAnyPassengers && defaultPassenger) {\r\n passengerStore.addPassenger(d, {\r\n type: defaultPassenger.value as PassengerType,\r\n number: 1,\r\n isIslander: passengerTypeIsIslander(defaultPassenger.value),\r\n });\r\n }\r\n });\r\n };\r\n\r\n const fetcher = (): Promise => {\r\n return get(\"settings\", \"\").then((resp) => {\r\n const data = new ResourceSettings(resp.data, bookingStore.getRoute(direction));\r\n\r\n const resources = [...data.passengers, ...data.islanderPassengers, ...data.vehicles].map((d) => d.value);\r\n const hasDifferentDetails = data.isDifferentResourcesPerRoute;\r\n if (hasDifferentDetails) {\r\n bookingStore.setIsDifferentDetails(true);\r\n }\r\n\r\n clearUnavailableResources(resources, hasDifferentDetails);\r\n setDefaultPassenger(data);\r\n\r\n return data;\r\n });\r\n };\r\n\r\n const cacheKey = computed(() => {\r\n return [\"bookable-resources\", bookingStore.getRoute(direction)];\r\n });\r\n\r\n return {\r\n ...useQuery(cacheKey.value, fetcher, {\r\n refetchOnWindowFocus: false,\r\n staleTime: 1000 * 60,\r\n }),\r\n };\r\n};\r\n\r\nexport default useBookableResourceQuery;\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, createVNode as _createVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-1d098c8a\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"for\", \"innerHTML\"]\n\nimport BaseQuantity from \"@/components/base/BaseQuantity.vue\";\r\nimport { passengerTypeIsIslander } from \"@/helpers/islanderHelper\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport { OptionItem } from \"@/models/OptionItem\";\r\nimport { usePassengerStore } from \"@/store/passenger\";\r\nimport { computed } from \"vue\";\r\n\r\ninterface Props {\r\n option: OptionItem;\r\n direction: Direction;\r\n disableAdd: boolean;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'PassengerSelectRow',\n props: {\n option: {},\n direction: {},\n disableAdd: { type: Boolean }\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst { getPassengers, setPassenger } = usePassengerStore();\r\n\r\nconst passengerCount = computed(() => {\r\n const passengers = getPassengers(props.direction);\r\n return passengers.filter((p) => p.type === props.option.value).length;\r\n});\r\n\r\nconst inputValue = computed({\r\n get(): number {\r\n return passengerCount.value;\r\n },\r\n set(number: number) {\r\n setPassenger(props.direction, {\r\n type: props.option.value,\r\n number,\r\n isIslander: passengerTypeIsIslander(props.option.value)\r\n });\r\n },\r\n});\r\n\r\nconst maxValue = computed(() => {\r\n return props.disableAdd ? passengerCount.value : props.option.maxValue ?? 9;\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"passenger-select__row\", { active: inputValue.value > 0 }])\n }, [\n _createElementVNode(\"label\", {\n for: _ctx.option.value + _ctx.direction,\n innerHTML: _ctx.option.label\n }, null, 8, _hoisted_1),\n _createVNode(BaseQuantity, {\n id: _ctx.option.value,\n name: _ctx.option.value + _ctx.direction,\n minValue: _ctx.option.minValue,\n maxValue: maxValue.value,\n modelValue: inputValue.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((inputValue).value = $event))\n }, null, 8, [\"id\", \"name\", \"minValue\", \"maxValue\", \"modelValue\"])\n ], 2))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./PassengerSelectRow.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./PassengerSelectRow.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./PassengerSelectRow.vue?vue&type=style&index=0&id=1d098c8a&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-1d098c8a\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, withCtx as _withCtx, createVNode as _createVNode, createTextVNode as _createTextVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-a937fe86\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"passenger-select\" }\nconst _hoisted_2 = { key: 1 }\nconst _hoisted_3 = { key: 1 }\nconst _hoisted_4 = { class: \"btn-container\" }\n\nimport Dropdown from \"@/components/Dropdown.vue\";\r\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport { passengersRequired } from \"@/helpers/validators\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport useBookableResourceQuery from \"@/modules/BookingFlow/composables/useBookableResourceQuery\";\r\nimport { usePassengerStore } from \"@/store/passenger\";\r\nimport useVuelidate from \"@vuelidate/core\";\r\nimport { helpers } from \"@vuelidate/validators\";\r\nimport { computed, reactive, ref } from \"vue\";\r\nimport { useI18n } from \"vue-i18n\";\r\nimport PassengerSelectRow from \"./PassengerSelectRow.vue\";\r\n\r\ninterface Props {\r\n placeholder?: string;\r\n direction?: Direction;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'PassengerSelect',\n props: {\n placeholder: {},\n direction: { default: Direction.Outward }\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst { t } = useI18n();\r\n\r\nconst { data } = useBookableResourceQuery(props.direction);\r\n\r\nconst passengerOptions = computed(() =>\r\n data.value?.passengers.map((p) => ({ label: t(`passengerType.${p.value}`), value: p.value, maxValue: p.max, minValue: p.min ?? 0 }))\r\n);\r\nconst islanderPassengerOptions = computed(() =>\r\n data.value?.islanderPassengers.map((p) => ({ label: t(`passengerType.${p.value}`), value: p.value, maxValue: p.max, minValue: p.min ?? 0 }))\r\n);\r\n\r\nconst passengerStore = usePassengerStore();\r\nconst alternativePassengersOpen = ref(passengerStore.getPassengers(props.direction).some((p) => !p.isIslander));\r\n\r\nconst currentPassengerCount = computed(() => {\r\n return passengerStore.getPassengers(props.direction).length;\r\n});\r\n\r\nconst inputPlaceholder = computed(() => {\r\n const passengers = passengerStore.getPassengers(props.direction);\r\n const passengerCount = passengers.length;\r\n\r\n if (passengerCount === 0) {\r\n return props.placeholder;\r\n }\r\n\r\n if (passengers.every((p) => p.type === passengers[0].type)) {\r\n return `${passengerCount} ${t(`passengerType.${passengers[0].type}`, passengerCount)}`;\r\n }\r\n\r\n return `${passengerCount} ${t(\"booking.tripDetails.passengers.unit\", passengerCount)}`;\r\n});\r\n\r\nconst state = reactive({\r\n passengers: 0,\r\n});\r\n\r\nconst rules = {\r\n passengers: {\r\n v: helpers.withMessage(t(\"validations.passengersRequired\"), () => passengersRequired(passengerStore.getPassengers(props.direction))),\r\n },\r\n};\r\nconst v$ = useVuelidate(rules, state);\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(Dropdown, {\n mobileModal: \"\",\n modalTitle: _ctx.placeholder\n }, {\n trigger: _withCtx(({ toggle, isOpen }) => [\n _createVNode(BaseButton, {\n hasError: _unref(v$).passengers.$error,\n class: _normalizeClass([\"btn--input\", { active: isOpen }]),\n type: \"button\",\n icon: \"chevron/chevron-down\",\n iconSize: \"sm\",\n onClick: toggle\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"span\", {\n class: _normalizeClass({ placeholder: inputPlaceholder.value === _ctx.placeholder })\n }, _toDisplayString(inputPlaceholder.value), 3)\n ]),\n _: 2\n }, 1032, [\"hasError\", \"class\", \"onClick\"])\n ]),\n close: _withCtx(({ toggle }) => [\n _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(BaseButton, {\n class: _normalizeClass('btn--secondary btn--fixed-width'),\n onClick: toggle\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"button.done\")), 1)\n ]),\n _: 2\n }, 1032, [\"onClick\"])\n ])\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", null, [\n (islanderPassengerOptions.value?.length)\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n (passengerOptions.value?.length)\n ? (_openBlock(), _createBlock(BaseButton, {\n key: 0,\n onClick: _cache[0] || (_cache[0] = ($event: any) => (alternativePassengersOpen.value = !alternativePassengersOpen.value)),\n class: _normalizeClass([\"btn--input alternative-passengers\", { active: alternativePassengersOpen.value }]),\n type: \"button\",\n icon: \"chevron/chevron-down\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"booking.tripDetails.passengers.islanderRegularPassengers\")), 1)\n ]),\n _: 1\n }, 8, [\"class\"]))\n : _createCommentVNode(\"\", true),\n (alternativePassengersOpen.value)\n ? (_openBlock(), _createElementBlock(\"ul\", _hoisted_2, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(passengerOptions.value, (option, index) => {\n return (_openBlock(), _createElementBlock(\"li\", { key: index }, [\n _createVNode(PassengerSelectRow, {\n option: { ...option, label: `*${option.label}` },\n direction: _ctx.direction,\n disableAdd: currentPassengerCount.value >= 9\n }, null, 8, [\"option\", \"direction\", \"disableAdd\"])\n ]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"ul\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(islanderPassengerOptions.value, (option, index) => {\n return (_openBlock(), _createElementBlock(\"li\", { key: index }, [\n _createVNode(PassengerSelectRow, {\n option: option,\n direction: _ctx.direction,\n disableAdd: currentPassengerCount.value >= 9\n }, null, 8, [\"option\", \"direction\", \"disableAdd\"])\n ]))\n }), 128))\n ])\n ], 64))\n : (_openBlock(), _createElementBlock(\"ul\", _hoisted_3, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(passengerOptions.value, (option, index) => {\n return (_openBlock(), _createElementBlock(\"li\", { key: index }, [\n _createVNode(PassengerSelectRow, {\n option: option,\n direction: _ctx.direction,\n disableAdd: currentPassengerCount.value >= 9\n }, null, 8, [\"option\", \"direction\", \"disableAdd\"])\n ]))\n }), 128))\n ]))\n ])\n ]),\n _: 1\n }, 8, [\"modalTitle\"])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./PassengerSelect.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./PassengerSelect.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./PassengerSelect.vue?vue&type=style&index=0&id=a937fe86&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-a937fe86\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, withCtx as _withCtx, withModifiers as _withModifiers, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-6e8c08da\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"campaign-code\" }\nconst _hoisted_2 = { key: 0 }\nconst _hoisted_3 = {\n key: 2,\n class: \"campaign-code__content\"\n}\nconst _hoisted_4 = [\"innerHTML\"]\n\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport BaseInput from \"@/components/base/BaseInput.vue\";\r\nimport BaseMessages from \"@/components/base/BaseMessages.vue\";\r\nimport SvgIcon from \"@/components/base/SvgIcon.vue\";\r\nimport { getQueryParamValue } from \"@/helpers/urlHelper\";\r\nimport useCalendarQuery from \"@/modules/BookingFlow/composables/useCalendarQuery\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport useVuelidate from \"@vuelidate/core\";\r\nimport { computed, reactive, watch } from \"vue\";\r\n\r\ninterface Props {\r\n isLocked?: boolean;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'RouteCampaignCode',\n props: {\n isLocked: { type: Boolean }\n },\n setup(__props: any) {\n\r\n\r\n\r\nconst bookingStore = useBookingStore();\r\nconst campaign = computed(() => bookingStore.getCampaign);\r\nconst hasCampaign = computed(() => !!bookingStore.getCampaign.title);\r\n\r\nconst state = reactive({\r\n campaignCode: \"\",\r\n});\r\n\r\nconst rules = {\r\n campaignCode: {},\r\n};\r\n\r\nconst v$ = useVuelidate(rules, state);\r\nconst { addCampaignMutation, removeCampaignMutation } = useCalendarQuery();\r\n\r\nconst { error, isLoading } = addCampaignMutation;\r\n\r\nconst campaignParam = getQueryParamValue(\"campaign\");\r\nconst mmidParam = getQueryParamValue(\"mmid\");\r\nconst voucherParam = getQueryParamValue(\"voucher\");\r\n\r\nconst setParams = () => {\r\n if (campaignParam || voucherParam) {\r\n addCampaignMutation.mutateAsync({ voucher: voucherParam.length ? voucherParam : campaignParam, mmID: mmidParam, voucherIsEncoded: !!voucherParam });\r\n }\r\n};\r\n\r\nsetParams();\r\n\r\nconst submitForm = async () => {\r\n const isValid = await v$.value.$validate();\r\n if (!isValid) return;\r\n\r\n addCampaignMutation.mutateAsync({ voucher: state.campaignCode, mmID: \"\" });\r\n};\r\n\r\nconst remove = () => {\r\n removeCampaignMutation.mutateAsync(campaign.value.couponCode);\r\n};\r\n\r\nwatch(\r\n () => state.campaignCode,\r\n\r\n (current: string) => {\r\n if (!current) {\r\n addCampaignMutation.reset.value();\r\n\r\n v$.value.$reset();\r\n }\r\n }\r\n);\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (!hasCampaign.value)\n ? (_openBlock(), _createElementBlock(\"form\", {\n key: 0,\n onSubmit: _withModifiers(submitForm, [\"prevent\"]),\n class: _normalizeClass({ 'is-locked': _ctx.isLocked })\n }, [\n _createElementVNode(\"fieldset\", null, [\n _createElementVNode(\"legend\", null, _toDisplayString(_ctx.$t(\"booking.tripDetails.discountCode.header\")), 1),\n _createVNode(BaseInput, {\n id: \"campaignCode\",\n hasError: !!_unref(error),\n modelValue: _unref(v$).campaignCode.$model,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_unref(v$).campaignCode.$model) = $event)),\n placeholder: _ctx.$t('booking.tripDetails.discountCode.label'),\n title: _ctx.$t('booking.tripDetails.discountCode.label')\n }, null, 8, [\"hasError\", \"modelValue\", \"placeholder\", \"title\"]),\n _createVNode(BaseButton, {\n class: \"btn--secondary\",\n loading: _unref(isLoading),\n disabled: _unref(v$).campaignCode.$model.length < 1\n }, {\n default: _withCtx(() => [\n (!hasCampaign.value)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, _toDisplayString(_ctx.$t(\"button.ok\")), 1))\n : (_openBlock(), _createBlock(SvgIcon, {\n key: 1,\n icon: \"checkmark\"\n }))\n ]),\n _: 1\n }, 8, [\"loading\", \"disabled\"])\n ])\n ], 34))\n : _createCommentVNode(\"\", true),\n (_unref(error))\n ? (_openBlock(), _createBlock(BaseMessages, {\n key: 1,\n messages: [(_unref(error) as Error).message],\n class: \"campaign-code__error-messages\"\n }, null, 8, [\"messages\"]))\n : _createCommentVNode(\"\", true),\n (hasCampaign.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n _createElementVNode(\"h4\", null, _toDisplayString(campaign.value.title), 1),\n _createElementVNode(\"p\", {\n innerHTML: campaign.value.description\n }, null, 8, _hoisted_4),\n (!_ctx.isLocked)\n ? (_openBlock(), _createBlock(BaseButton, {\n key: 0,\n onClick: remove,\n class: \"btn--secondary\"\n }))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./RouteCampaignCode.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./RouteCampaignCode.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./RouteCampaignCode.vue?vue&type=style&index=0&id=6e8c08da&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-6e8c08da\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-00c63b03\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"vehicle-container\" }\nconst _hoisted_2 = { class: \"vehicle-header\" }\nconst _hoisted_3 = { class: \"vehicle-header__content\" }\nconst _hoisted_4 = [\"innerHTML\"]\n\nimport SvgIcon from \"@/components/base/SvgIcon.vue\";\r\n\r\ninterface Props {\r\n icon?: string;\r\n description?: string;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'VehicleExtraInfo',\n props: {\n icon: {},\n description: {}\n },\n setup(__props: any) {\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n (_ctx.icon)\n ? (_openBlock(), _createBlock(SvgIcon, {\n key: 0,\n icon: _ctx.icon\n }, null, 8, [\"icon\"]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_3, [\n _renderSlot(_ctx.$slots, \"default\")\n ])\n ]),\n (_ctx.description)\n ? (_openBlock(), _createElementBlock(\"p\", {\n key: 0,\n class: \"description\",\n innerHTML: _ctx.description\n }, null, 8, _hoisted_4))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","import script from \"./VehicleExtraInfo.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./VehicleExtraInfo.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./VehicleExtraInfo.vue?vue&type=style&index=0&id=00c63b03&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-00c63b03\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-43eb3cdb\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"vehicle-select\" }\nconst _hoisted_2 = { class: \"radio-container\" }\nconst _hoisted_3 = [\"innerHTML\"]\nconst _hoisted_4 = { class: \"vehicle-select__amount\" }\n\nimport BaseDropdown from \"@/components/base/BaseDropdown.vue\";\r\nimport BaseQuantity from \"@/components/base/BaseQuantity.vue\";\r\nimport BaseRadio from \"@/components/base/BaseRadio.vue\";\r\nimport { Direction } from \"@/models/Enums\";\r\nimport useSettingsQuery from \"@/modules/BookingFlow/composables/useBookableResourceQuery\";\r\nimport { useVehicleStore } from \"@/store/vehicle\";\r\nimport useVuelidate from \"@vuelidate/core\";\r\nimport { computed } from \"vue\";\r\nimport { useI18n } from \"vue-i18n\";\r\nimport VehicleExtraInfo from \"./VehicleExtraInfo.vue\";\r\n\r\ninterface Props {\r\n placeholder?: string;\r\n direction?: Direction;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'VehicleSelect',\n props: {\n placeholder: {},\n direction: { default: 0 }\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\nconst { t } = useI18n();\r\nconst vehicleStore = useVehicleStore();\r\nconst { data } = useSettingsQuery(props.direction);\r\nconst vehicleOptions = computed(() => data.value?.vehicles.map((p) => ({ label: t(`resources.${p.value}.label`), value: p.value })));\r\n\r\nconst vehicle = computed(() => vehicleStore.getVehicle(props.direction));\r\n\r\nconst vehicleAmount = computed({\r\n get() {\r\n return vehicleStore.getVehicle(props.direction).amount;\r\n },\r\n set(value: number) {\r\n vehicleStore.setVehicle(props.direction, {\r\n ...vehicle.value,\r\n amount: value,\r\n });\r\n },\r\n});\r\n\r\nconst inputValue = computed({\r\n get() {\r\n return vehicleStore.getVehicle(props.direction).code;\r\n },\r\n set(value: string) {\r\n const apiVehicle = data.value?.vehicles?.find((v) => v.value === value);\r\n vehicleStore.setVehicle(props.direction, {\r\n ...vehicle.value,\r\n amount: 1,\r\n code: value,\r\n requiresLicense: apiVehicle?.max === 1,\r\n });\r\n },\r\n});\r\n\r\nconst petInVehicle = computed({\r\n get() {\r\n return vehicleStore.getVehicle(props.direction).petInVehicle ?? false;\r\n },\r\n set(value: boolean) {\r\n vehicleStore.setVehicle(props.direction, {\r\n ...vehicle.value,\r\n petInVehicle: value,\r\n });\r\n },\r\n});\r\n\r\nconst rules = {\r\n vehicle: {},\r\n};\r\nconst v$ = useVuelidate(rules, { vehicle: 0 });\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(BaseDropdown, {\n modelValue: inputValue.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((inputValue).value = $event)),\n placeholder: _ctx.placeholder,\n options: vehicleOptions.value,\n hasError: _unref(v$).vehicle.$error,\n iconSize: \"sm\",\n canClear: true\n }, null, 8, [\"modelValue\", \"placeholder\", \"options\", \"hasError\"]),\n (vehicle.value.code && vehicle.value.requiresLicense)\n ? (_openBlock(), _createBlock(VehicleExtraInfo, {\n key: 0,\n icon: \"booking/pet\"\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"fieldset\", _hoisted_2, [\n _createElementVNode(\"legend\", {\n innerHTML: _ctx.$t('booking.vehicles.pet.title')\n }, null, 8, _hoisted_3),\n _createVNode(BaseRadio, {\n modelValue: petInVehicle.value,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((petInVehicle).value = $event)),\n value: true,\n id: `pet-${_ctx.direction}-y`,\n name: `pet-${_ctx.direction}`\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t(\"button.yes\")), 1)\n ]),\n _: 1\n }, 8, [\"modelValue\", \"id\", \"name\"]),\n _createVNode(BaseRadio, {\n modelValue: petInVehicle.value,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => ((petInVehicle).value = $event)),\n value: false,\n id: `pet-${_ctx.direction}-n`,\n name: `pet-${_ctx.direction}`\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t(\"button.no\")), 1)\n ]),\n _: 1\n }, 8, [\"modelValue\", \"id\", \"name\"])\n ])\n ]),\n _: 1\n }))\n : (vehicle.value.code)\n ? (_openBlock(), _createBlock(VehicleExtraInfo, { key: 1 }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"label\", null, _toDisplayString(_ctx.$t(\"booking.vehicles.details.amount\")) + \" \" + _toDisplayString(_ctx.$t(`resources.${vehicle.value.code}.label`, 2).toLowerCase()) + \":\", 1),\n _createVNode(BaseQuantity, {\n modelValue: vehicleAmount.value,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => ((vehicleAmount).value = $event)),\n id: `vehicle-amount-${_ctx.direction}`,\n minValue: 1,\n maxValue: 9\n }, null, 8, [\"modelValue\", \"id\"])\n ])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./VehicleSelect.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./VehicleSelect.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./VehicleSelect.vue?vue&type=style&index=0&id=43eb3cdb&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-43eb3cdb\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, withCtx as _withCtx, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, createElementBlock as _createElementBlock, Fragment as _Fragment, normalizeClass as _normalizeClass, createTextVNode as _createTextVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-1e144c4c\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"route\" }\nconst _hoisted_2 = { class: \"row\" }\nconst _hoisted_3 = { class: \"col--12 col-sm--6\" }\nconst _hoisted_4 = { class: \"input-group\" }\nconst _hoisted_5 = { class: \"input-group\" }\nconst _hoisted_6 = {\n key: 0,\n class: \"input-group\"\n}\nconst _hoisted_7 = {\n key: 0,\n class: \"col--12 col-sm--6\"\n}\nconst _hoisted_8 = { class: \"input-group\" }\nconst _hoisted_9 = { class: \"input-group\" }\nconst _hoisted_10 = {\n key: 1,\n class: \"col--12 col-lg--6\"\n}\nconst _hoisted_11 = {\n key: 2,\n class: \"col--12 col-lg--6\"\n}\nconst _hoisted_12 = { class: \"registered\" }\nconst _hoisted_13 = [\"innerHTML\"]\n\nimport BaseButton from \"@/components/base/BaseButton.vue\";\r\nimport BaseCheckbox from \"@/components/base/BaseCheckbox.vue\";\r\nimport BaseMessages from \"@/components/base/BaseMessages.vue\";\r\nimport BasePanel from \"@/components/base/BasePanel.vue\";\r\nimport BaseSection from \"@/components/base/BaseSection.vue\";\r\nimport SvgIcon from \"@/components/base/SvgIcon.vue\";\r\nimport useLoginModal from \"@/composables/login/useLoginModal\";\r\nimport useDialog from \"@/composables/useDialog\";\r\nimport { hasAdultPassenger, hasChildPassenger, hasTeenPassenger } from \"@/helpers/validators\";\r\nimport { Direction, TripType } from \"@/models/Enums\";\r\nimport { DialogType } from \"@/models/Symbols/Dialog\";\r\nimport useBook from \"@/modules/BookingFlow/composables/useBook\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport { usePassengerStore } from \"@/store/passenger\";\r\nimport { useUserStore } from \"@/store/user\";\r\nimport { useVehicleStore } from \"@/store/vehicle\";\r\nimport useVuelidate from \"@vuelidate/core\";\r\nimport { computed, ref } from \"vue\";\r\nimport { useI18n } from \"vue-i18n\";\r\nimport BookingContinue from \"../BookingContinue.vue\";\r\nimport BookingSpacer from \"../BookingSpacer.vue\";\r\nimport PassengerSelect from \"./passenger/PassengerSelect.vue\";\r\nimport RouteAndDate from \"./RouteAndDate.vue\";\r\nimport RouteCampaignCode from \"./RouteCampaignCode.vue\";\r\nimport VehicleSelect from \"./vehicle/VehicleSelect.vue\";\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TripDetails',\n setup(__props) {\n\r\nconst bookingStore = useBookingStore();\r\nconst passengerStore = usePassengerStore();\r\nconst vehicleStore = useVehicleStore();\r\nconst { validateTripDetails } = useBook();\r\nconst userStore = useUserStore();\r\nconst isLoggedIn = computed(() => userStore.isLoggedIn);\r\nconst { displayDialog } = useDialog();\r\nconst { t } = useI18n();\r\nconst isAgent = computed(() => userStore.isAgent);\r\nconst isAmendment = computed(() => bookingStore.getIsAmending);\r\n\r\nconst differentDetailsReturn = computed({\r\n get() {\r\n return bookingStore.getDifferentDetailsReturn;\r\n },\r\n set(val: boolean) {\r\n bookingStore.setIsDifferentDetails(val);\r\n if (val) {\r\n vehicleStore.setVehicle(Direction.Return, Object.assign({}, vehicleStore.getVehicle(Direction.Outward)));\r\n passengerStore.setPassengers(Direction.Return, [...passengerStore.getPassengers(Direction.Outward)]);\r\n }\r\n },\r\n});\r\n\r\nconst isSingle = computed(() => bookingStore.tripType === TripType.Single);\r\n\r\nconst v$ = useVuelidate();\r\nconst loadingNextStep = ref(false);\r\nconst goToNextStep = async (cb: Function) => {\r\n const isValid = await v$.value.$validate();\r\n if (!isValid) return;\r\n\r\n if (!isSingle.value && !differentDetailsReturn.value) {\r\n passengerStore.setPassengers(Direction.Return, passengerStore.getPassengers(Direction.Outward));\r\n vehicleStore.setVehicle(Direction.Return, vehicleStore.getVehicle(Direction.Outward));\r\n }\r\n\r\n const validateAndRedirect = () => {\r\n loadingNextStep.value = true;\r\n validateTripDetails()\r\n .then(() => cb())\r\n .finally(() => {\r\n loadingNextStep.value = false;\r\n });\r\n };\r\n\r\n const hasAdultPassengers = bookingStore.getTrips.map((t) => passengerStore.getPassengers(t)).some((p) => hasAdultPassenger(p));\r\n const hasTeenPassengers = bookingStore.getTrips.map((t) => passengerStore.getPassengers(t)).some((p) => hasTeenPassenger(p));\r\n const hasChildPassengers = bookingStore.getTrips.map((t) => passengerStore.getPassengers(t)).some((p) => hasChildPassenger(p));\r\n\r\n // Show the dialog if a child is travelling alone or with a teen passenger, but don't show the dialog if the teen is traveling alone or with other teens\r\n const displayNoAdultsDialog = (!hasAdultPassengers && !hasTeenPassengers) || (!hasAdultPassengers && hasTeenPassengers && hasChildPassengers);\r\n\r\n if (displayNoAdultsDialog) {\r\n displayDialog({\r\n title: t(\"messages.noAdults.title\"),\r\n message: t(\"messages.noAdults.message\"),\r\n type: DialogType.info,\r\n yes: t(\"button.confirm\"),\r\n no: t(\"button.cancel\"),\r\n callback: validateAndRedirect,\r\n });\r\n } else {\r\n validateAndRedirect();\r\n }\r\n};\r\n\r\nconst { loginRef } = useLoginModal();\r\n\r\nconst { getIsLocked } = useBookingStore();\r\n\r\nconst isOutwardLocked = computed(() => getIsLocked(Direction.Outward));\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(BookingSpacer),\n _createVNode(BaseSection, {\n title: _ctx.$t('booking.tripDetails.title'),\n subtitle: _ctx.$t('booking.tripDetails.subtitle'),\n infoText: _ctx.$t('booking.tripDetails.infoText')\n }, {\n default: _withCtx(() => [\n _createVNode(BasePanel, { alignLeft: true }, {\n default: _withCtx(() => [\n _createVNode(RouteAndDate, { hideTripTypeSelect: isAmendment.value }, {\n default: _withCtx(() => [\n (!isOutwardLocked.value && !isAgent.value)\n ? (_openBlock(), _createBlock(RouteCampaignCode, {\n key: 0,\n isLocked: isAmendment.value\n }, null, 8, [\"isLocked\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"hideTripTypeSelect\"])\n ]),\n _: 1\n }),\n _createVNode(BasePanel, { alignLeft: true }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n (!isOutwardLocked.value)\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n _createElementVNode(\"h4\", null, _toDisplayString(_ctx.$t(\"booking.tripDetails.details\")) + \" \" + _toDisplayString(differentDetailsReturn.value ? `(${_ctx.$t(\"booking.directions.0\")})` : \"\"), 1),\n _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(PassengerSelect, {\n placeholder: _ctx.$t('booking.tripDetails.passengers.title'),\n direction: _unref(Direction).Outward\n }, null, 8, [\"placeholder\", \"direction\"])\n ]),\n _createElementVNode(\"div\", _hoisted_5, [\n _createVNode(VehicleSelect, {\n placeholder: _ctx.$t('booking.vehicles.placeholder'),\n direction: _unref(Direction).Outward\n }, null, 8, [\"placeholder\", \"direction\"])\n ]),\n (!isSingle.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [\n _createVNode(BaseCheckbox, {\n id: \"returnDifferentDetails\",\n name: \"returnDifferentDetails\",\n modelValue: differentDetailsReturn.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((differentDetailsReturn).value = $event))\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t(\"booking.differentDetails\")), 1)\n ]),\n _: 1\n }, 8, [\"modelValue\"])\n ]))\n : _createCommentVNode(\"\", true)\n ], 64))\n : _createCommentVNode(\"\", true)\n ]),\n (!isSingle.value && differentDetailsReturn.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n _createElementVNode(\"h4\", null, _toDisplayString(_ctx.$t(\"booking.tripDetails.details\")) + \" (\" + _toDisplayString(_ctx.$t(\"booking.directions.1\")) + \")\", 1),\n _createElementVNode(\"div\", _hoisted_8, [\n _createVNode(PassengerSelect, {\n placeholder: _ctx.$t('booking.tripDetails.passengers.title'),\n direction: _unref(Direction).Return\n }, null, 8, [\"placeholder\", \"direction\"])\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n _createVNode(VehicleSelect, {\n placeholder: _ctx.$t('booking.vehicles.placeholder'),\n direction: _unref(Direction).Return\n }, null, 8, [\"placeholder\", \"direction\"])\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (isSingle.value || !differentDetailsReturn.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10))\n : _createCommentVNode(\"\", true),\n (!isLoggedIn.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_11, [\n _createElementVNode(\"div\", _hoisted_12, [\n _createVNode(SvgIcon, { icon: 'booking/avatars' }),\n _createElementVNode(\"p\", {\n ref_key: \"loginRef\",\n ref: loginRef,\n innerHTML: _ctx.$t('booking.tripDetails.islanderInfo')\n }, null, 8, _hoisted_13)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _: 1\n }),\n _createVNode(BaseMessages, {\n messages: _unref(v$).$errors.map((e) => e.$message),\n class: _normalizeClass('error-messages')\n }, null, 8, [\"messages\"]),\n _createVNode(BookingContinue, null, {\n default: _withCtx(({ nextStep }) => [\n _createVNode(BaseButton, {\n onClick: ($event: any) => (goToNextStep(nextStep)),\n loading: loadingNextStep.value\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"button.continue\")), 1)\n ]),\n _: 2\n }, 1032, [\"onClick\", \"loading\"])\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"title\", \"subtitle\", \"infoText\"])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./TripDetails.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./TripDetails.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./TripDetails.vue?vue&type=style&index=0&id=1e144c4c&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-1e144c4c\"]])\n\nexport default __exports__","import { withAsyncContext as _withAsyncContext, defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, createElementVNode as _createElementVNode, resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock, unref as _unref, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-74c5863e\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"booking-flow\" }\nconst _hoisted_2 = { class: \"row\" }\nconst _hoisted_3 = { class: \"col--12 col-lg--12\" }\nconst _hoisted_4 = { class: \"row\" }\nconst _hoisted_5 = { class: \"col--12 col-lg--8\" }\nconst _hoisted_6 = { class: \"col--12 col-lg--4\" }\nconst _hoisted_7 = { class: \"row\" }\nconst _hoisted_8 = { class: \"col--12 col-lg--12\" }\n\nimport Basket from \"@/components/basket/Basket.vue\";\r\nimport useIsLoggedInQuery from \"@/composables/login/useIsLoggedInQuery\";\r\nimport useUnloadBookings from \"@/composables/useUnloadBookings\";\r\nimport { YYYYMMDD } from \"@/helpers/dateHelpers\";\r\nimport { getQueryParamValue } from \"@/helpers/urlHelper\";\r\nimport { Direction, TripType } from \"@/models/Enums\";\r\nimport { useBookingStore } from \"@/store/booking\";\r\nimport { useUserStore } from \"@/store/user\";\r\nimport { computed } from \"vue\";\r\nimport { useRoute } from \"vue-router\";\r\nimport useBookingNavigation from \"../composables/useBookingNavigation\";\r\nimport useCalculatePriceQuery from \"../composables/useCalculatePriceQuery\";\r\nimport BookingNavigation from \"./BookingNavigation.vue\";\r\nimport BookingStepper from \"./BookingStepper.vue\";\r\nimport Accommodations from \"./steps/accommodations/Accommodations.vue\";\r\nimport Checkout from \"./steps/checkout/Checkout.vue\";\r\nimport CustomerDetails from \"./steps/customer-details/CustomerDetails.vue\";\r\nimport Departures from \"./steps/departures/Departures.vue\";\r\nimport Extras from \"./steps/extras/Extras.vue\";\r\nimport Passengers from \"./steps/passengers/Passengers.vue\";\r\nimport TripDetails from \"./steps/trip-details/TripDetails.vue\";\r\nimport useApi from \"@/composables/useApi\";\r\nimport { ref } from \"vue\";\r\nimport useOpenBooking from \"@/modules/MyPages/composables/useOpenBooking\";\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BookingFlow',\n async setup(__props) {\n\nlet __temp: any, __restore: any\n\r\nconst route = useRoute();\r\nconst { isFetching, data } = useCalculatePriceQuery();\r\nconst { isCheckout, isAccommodationActivated } = useBookingNavigation();\r\n\r\nconst bookingStore = useBookingStore();\r\n\r\nconst userStore = useUserStore();\r\nconst productCode = computed(() => userStore.getSelectedProductCode);\r\n\r\nconst params = {\r\n outwardRoute: getQueryParamValue(\"outwardRoute\"),\r\n returnRoute: getQueryParamValue(\"returnRoute\"),\r\n outwardDate: getQueryParamValue(\"outwardDate\"),\r\n returnDate: getQueryParamValue(\"returnDate\"),\r\n};\r\n\r\nconst setParams = () => {\r\n if (params.outwardRoute) {\r\n bookingStore.setRoute(Direction.Outward, params.outwardRoute);\r\n\r\n if (params.returnRoute) {\r\n bookingStore.setTripType(TripType.Return);\r\n } else {\r\n bookingStore.setTripType(TripType.Single);\r\n }\r\n }\r\n if (params.returnRoute) {\r\n bookingStore.setRoute(Direction.Return, params.returnRoute);\r\n }\r\n\r\n if (params.outwardDate) {\r\n const outwardDate = new Date(params.outwardDate);\r\n bookingStore.setDate(Direction.Outward, new Date(YYYYMMDD(outwardDate)));\r\n }\r\n\r\n if (params.returnDate) {\r\n const returnDate = new Date(params.returnDate);\r\n bookingStore.setDate(Direction.Return, new Date(YYYYMMDD(returnDate)));\r\n }\r\n};\r\n\r\nsetParams();\r\n\r\nconst activeComponent = computed(() => {\r\n switch (route.query.s) {\r\n case \"2\":\r\n return Departures;\r\n case \"3\":\r\n return CustomerDetails;\r\n case \"4\":\r\n return Passengers;\r\n case \"5\":\r\n return Extras;\r\n case \"6\":\r\n return isAccommodationActivated ? Accommodations : Checkout;\r\n case \"7\":\r\n return Checkout;\r\n default:\r\n return TripDetails;\r\n }\r\n});\r\n\r\nuseIsLoggedInQuery();\r\n\r\nconst error = ref();\r\ntry {\r\n const { authenticate } = useApi();\r\n ;(\n ([__temp,__restore] = _withAsyncContext(() => authenticate())),\n await __temp,\n __restore()\n);\r\n\r\n const step = getQueryParamValue(\"s\");\r\n if (!step && bookingStore.isAmendment) {\r\n const { unload } = useUnloadBookings();\r\n ;(\n ([__temp,__restore] = _withAsyncContext(() => unload())),\n await __temp,\n __restore()\n);\r\n }\r\n\r\n const id = getQueryParamValue(\"id\");\r\n if (id) {\r\n const { openBooking } = useOpenBooking();\r\n ;(\n ([__temp,__restore] = _withAsyncContext(() => openBooking(id, \"Amend\"))),\n await __temp,\n __restore()\n);\r\n }\r\n} catch (err) {\r\n error.value = err;\r\n}\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createVNode(BookingStepper)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n (_openBlock(), _createBlock(_resolveDynamicComponent(activeComponent.value)))\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n _createVNode(Basket, {\n leftToPay: _unref(data)?.leftToPay,\n paid: _unref(data)?.paid,\n sections: _unref(data)?.bookingSections,\n isFetching: _unref(isFetching),\n productCode: productCode.value,\n isCheckout: _unref(isCheckout),\n total: _unref(data)?.total,\n amd: _unref(data)?.amd,\n isSticky: \"\",\n displayEmptySections: \"\"\n }, null, 8, [\"leftToPay\", \"paid\", \"sections\", \"isFetching\", \"productCode\", \"isCheckout\", \"total\", \"amd\"])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", _hoisted_8, [\n _createVNode(BookingNavigation)\n ])\n ])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./BookingFlow.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./BookingFlow.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./BookingFlow.vue?vue&type=style&index=0&id=74c5863e&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_ad735c9fab31b483aaa8e1d5a8657100/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-74c5863e\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, withCtx as _withCtx, Suspense as _Suspense, openBlock as _openBlock, createBlock as _createBlock, Transition as _Transition } from \"vue\"\n\nimport BaseSpinner from \"@/components/base/BaseSpinner.vue\";\r\nimport MaintenanceWrapper from \"@/components/maintenance/MaintenanceWrapper.vue\";\r\nimport BookingFlow from \"./components/BookingFlow.vue\";\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'App',\n setup(__props) {\n\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_Transition, {\n name: \"fade\",\n mode: \"out-in\"\n }, {\n default: _withCtx(() => [\n (_openBlock(), _createBlock(_Suspense, null, {\n default: _withCtx(() => [\n _createVNode(MaintenanceWrapper, null, {\n default: _withCtx(() => [\n _createVNode(BookingFlow)\n ]),\n _: 1\n })\n ]),\n fallback: _withCtx(() => [\n _createVNode(BaseSpinner, { color: \"dark\" })\n ]),\n _: 1\n }))\n ]),\n _: 1\n }))\n}\n}\n\n})","import script from \"./App.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./App.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./App.vue?vue&type=style&index=0&id=28db0b66&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","import eventbusPlugin from \"@/plugins/eventbus\";\r\nimport SetupCalendar from \"v-calendar\";\r\nimport { createApp } from \"vue\";\r\nimport { VueQueryPlugin } from \"vue-query\";\r\nimport { createRouter, createWebHistory } from \"vue-router\";\r\nimport i18n from \"~/config/i18n\";\r\nimport { pinia } from \"~/store\";\r\nimport App from \"./App.vue\";\r\nimport \"~/styles/base/style.scss\";\r\n\r\nconst router = createRouter({\r\n history: createWebHistory(\"\"),\r\n routes: [\r\n {\r\n path: \"/:catchAll(.*)\",\r\n component: App,\r\n },\r\n ],\r\n scrollBehavior(to, from, savedPosition) {\r\n if (savedPosition) {\r\n return savedPosition;\r\n }\r\n return { top: 0 };\r\n },\r\n});\r\n\r\nconst app = createApp(App);\r\napp.use(pinia);\r\napp.use(i18n);\r\napp.use(router);\r\napp.use(eventbusPlugin);\r\napp.use(VueQueryPlugin);\r\napp.use(SetupCalendar, {});\r\n\r\napp.mount(\"#bookingflow\");\r\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.amdO = {};","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"js/\" + chunkId + \".\" + \"5d2598c7\" + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"css/\" + chunkId + \".\" + \"4bfe6eab\" + \".css\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"destgotlandclient:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.j = 872;","__webpack_require__.p = \"/dist/web/\";","if (typeof document === \"undefined\") return;\nvar createStylesheet = function(chunkId, fullhref, oldTag, resolve, reject) {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tif (__webpack_require__.nc) {\n\t\tlinkTag.nonce = __webpack_require__.nc;\n\t}\n\tvar onLinkComplete = function(event) {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && event.type;\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + errorType + \": \" + realHref + \")\");\n\t\t\terr.name = \"ChunkLoadError\";\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\n\tif (oldTag) {\n\t\toldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n\t} else {\n\t\tdocument.head.appendChild(linkTag);\n\t}\n\treturn linkTag;\n};\nvar findStylesheet = function(href, fullhref) {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = function(chunkId) {\n\treturn new Promise(function(resolve, reject) {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t872: 0\n};\n\n__webpack_require__.f.miniCss = function(chunkId, promises) {\n\tvar cssChunks = {\"214\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(function() {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, function(e) {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr\n\n// no prefetching\n\n// no preloaded","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t872: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkdestgotlandclient\"] = self[\"webpackChunkdestgotlandclient\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504,996], function() { return __webpack_require__(1184); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["range","start","end","isNaN","Array","map","_","i","repeat","count","value","_hoisted_1","class","_hoisted_2","key","_defineComponent","__name","setup","__props","displayDialog","useDialog","t","useI18n","prevStep","cancel","currentStep","useBookingNavigation","cancelBooking","title","message","yes","no","callback","type","DialogType","warning","_ctx","_cache","_openBlock","_createElementBlock","_unref","number","_createElementVNode","href","onClick","_withModifiers","args","_toDisplayString","$t","_createCommentVNode","__exports__","_hoisted_3","_hoisted_4","_hoisted_5","steps","goToStep","_Fragment","_renderList","step","_normalizeClass","active","$event","tabindex","SortOptions","useSearchStore","defineStore","id","state","accommodationType","undefined","checkoutDate","checkinDate","flexible","rooms","result","searchToken","totalResult","sortOption","PriceAsc","getters","roomsCount","Object","entries","length","guestCount","values","room","adults","childrenAges","reduce","a","b","multipleRoomsAllowed","includes","readyForSearch","getResults","actions","setCheckin","date","this","setCheckout","setFlexible","addRoom","ages","createId","clearRooms","removeRoom","setAccommodationType","category","setAccommodationsResult","accommodations","setContinuationToken","token","setTotalResult","setSort","sort","orderResult","fromPrice","PriceDesc","reverse","persist","storage","sessionStorage","useAccommodationTipsQuery","get","useApi","fetcher","then","resp","data","useQuery","refetchOnWindowFocus","staleTime","accommodationOptions","accommodationConfig","filter","o","useAccommodationTips","query","searchStore","watchEffect","Date","checkin","checkout","_hoisted_6","_hoisted_7","props","accommodation","emits","emit","__emit","src","images","source","alt","name","fromOriginalPrice","fromNights","guests","_createVNode","BaseButton","default","_withCtx","swiperModules","Navigation","A11y","Virtual","Pagination","breakpoints","slidesPerView","Swiper","centeredSlides","spaceBetween","slidesPerGroup","loop","loopFillGroupWithBlank","loopPreventsSlide","pagination","clickable","navigation","modules","_createBlock","SwiperSlide","AccommodationSlide","onAccommodationSelected","useAccommodationStore","description","tags","getCurrent","setAccommodation","$state","storageWithExpiration","localStorage","_withScopeId","n","_pushScopeId","_popScopeId","store","router","useRouter","handleAccommodation","accommodationState","push","currentRoute","accommodationId","isLoading","error","BaseSpinner","color","AccommodationSlider","BaseAlert","$router","$route","listAccommodation","icon","_createTextVNode","storageKeys","oneBasket","destgotland","ref","useAccommodationBook","post","put","authenticate","Promise","resolve","Cookies","bookRoom","async","request","identifier","complete","addons","insurances","basketKey","Symbol","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","product","useAccommodation","loading","eventBus","useEventBus","handleClick","bookableAddons","basket","ferrySections","ferryBooking","s","mapFromBasketSectionResponse","basketPrice","totalPrice","specialTerms","r","bookingTerms","finally","handleTerms","terms","index","amount","iconPosition","originalPrice","price","disabled","useAccommodationAvailability","computed","categories","enabled","getRoomsAvailability","readonly","useOneBasketCalendar","getCalendar","startDate","YYYYMMDD","getQueryParamValue","param","url","URL","document","location","paramValue","searchParams","removeQueryParam","delete","window","history","replaceState","useUrl","calendarOptions","stayOptions","allowFlexible","Boolean","dates","availabilityMode","hasError","set","activeCalendar","activeStayOption","availableDates","disabledDates","weekdays","watch","currentValue","dragging","noDatesFound","attrs","highlight","contentClass","setDate","getDate","order","onMounted","parse","now","showStayOptions","lastDate","isDraging","event","toLocaleDateString","search","availableCheckin","ac","handleInput","handleFocusOut","DatePicker","modelValue","locale","diss","columns","$screens","lg","popover","visibility","attributes","onDayfocusout","onDrag","onDayclick","rangeHighlights","_createSlots","inputValue","inputEvents","BaseInput","_mergeProps","_toHandlers","label","fn","option","isWide","hideMultipleRooms","allowMultipleRooms","handleRemove","adultsParam","childrenParam","split","c","Dropdown","trigger","toggle","isOpen","GuestSelectRow","deletable","onOnRemove","onSearchClicked","AccommodationDates","AccommodationRoomsDropdown","$slots","_renderSlot","addon","BaseQuantity","minValue","maxValue","maxAmount","insurance","showIntroduction","toggleIntroduction","handleChange","e","target","selected","checked","onChange","currentCost","currency","SvgIcon","BaseTransitionExpand","expanded","innerHTML","introduction","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","show","accommodationName","loadingBook","on","items","selectedAddons","x","selectedInsurances","addonsPrice","res","insurancesPrice","handleBook","catch","handleCancel","handleAddon","handleInsurance","BaseLightbox","closable","footer","section","BasketGroup","route","item","products","bookItemId","formatPrice","BookableAddonItem","onInput","cancellationInsurances","CancellationInsurance","onOnChange","productKey","subtitle","align","headerLevel","image","includedBreakfasts","getAccommodationTagIcon","mapFromAccommodationDetailsResponse","useAccommodationDetailsQuery","useAccommodationTermsQuery","useBaseUrl","accommodationStore","retry","bookableRooms","isLoadingAvailability","showTerms","roomsSpecialTerms","BasePanel","back","single","slice","tag","height","width","AvailabilitySearch","AccommodationPlacementProduct","onTerms","BookLightbox","onBooked","InformationLightbox","mapFromAccommodationListItemResponse","useAccommodationList","searchAccommodation","totalResults","continuationToken","searchNext","concat","BaseDropdown","placeholder","options","searchable","triggerSearch","onSubmit","CategoryDropDown","useFilterStore","activeTags","priceRange","addTag","remove","clear","useFilter","filterStore","sortedAsc","p","flat","maxPrice","_defaultMax","Math","max","ceil","filteredAccommodations","some","indexOf","toLowerCase","getMatchCount","for","facilitiesConf","interestsConf","activeFilters","open","facilities","interests","Slider","_isRef","showTooltip","facility","interest","alternative","eventBusBasket","showInformaiton","bookAlternative","arrival","departure","ddMMM","showAlternatives","find","isMain","toggleAlternatives","isRecommended","AccommodationListItemAlternatives","resultview","sortValue","sortOptions","previousValue","accommodationsAmount","ref_key","AccommodationListFilter","AccommodationListItem","onGoToAccommodation","handleSearch","AccommodationSearch","onOnSearch","AccommodationList","nextStep","bookingStore","useBookingStore","passengerStore","usePassengerStore","outwardDate","Direction","Outward","returnDate","Return","isReturn","tripType","TripType","days","abs","differenceInDays","passengerCount","getPassengers","BookingSpacer","BaseSection","infoIcon","infoText","AccommodationDetails","AccommodationTips","BookingContinue","useAddressInfoQuery","bookingNumber","queryClient","useQueryClient","userStore","useUserStore","mapFromAddressInformationResponse","cacheKey","getUser","updateMutation","useMutation","info","isAgent","lastName","firstName","mobilePhone","format","phoneCode","onSuccess","invalidateQueries","isLoggedIn","render","$props","$setup","$data","$options","_component_BaseButton","_resolveComponent","_component_BasePanel","_Transition","mode","openLabel","defineComponent","String","components","address","detailsBoxRef","customerInfoSaved","emitInfoSaved","isNameReadonly","getIsNameReadonly","reactive","contact","zip","city","countryCode","email","internalReference","rules","required","minLength","v$","useVuelidate","submitForm","isFormCorrect","$validate","mutateAsync","isValid","$invalid","cb","$reset","BaseDetailBox","$error","$model","modelModifiers","trim","BaseCountrySelect","countryCodes","closed","agent","addressInfo","agentAccount","reference","getPhoneCodeForCurrentLocale","zipCode","addressInfoSaved","user","isFetching","isSavingAddressInfo","continueWithoutLoggingIn","UserType","Booking","login","createAccount","isCreatingCustomer","useCreateAccount","registerCustomer","next","AgentAddressInfoForm","AddressInfoForm","onSaved","LoginUser","BaseExpansionPanel","CustomerDetailsForm","includeIslander","includePassword","mapVehiclesForPrice","vehicle","code","vehicleCodes","useBook","departureStore","useDepartureStore","resourceStore","useResourceStore","vehicleStore","useVehicleStore","transferStore","useTransferStore","seatingStore","useSeatingStore","validateTripDetails","sailings","getTrips","forEach","d","getRoute","allPassengers","vehicles","getVehicle","sails","bookDeparture","identifiers","flatMap","getDeparture","bookExtras","transferIdentifiers","seatIdentifiers","getSelectedSeats","seats","getResources","CalendarConfig","constructor","_defineProperty","maxBookableDate","maxBookingDate","bookableDates","AvailableDates","expiredCard","Map","CurrentCampaign","i18n","global","descriptions","couponCode","couponNumber","useCalendarQuery","params","getCampaign","addCampaignMutation","campaign","setCampaign","setRoute","getReverseRoute","removeCampaignMutation","campaignCode","useBookingCalendar","direction","filterReturn","calendarConfig","startOfDay","configForRoute","hasCampaign","v","isCampaign","size","available","from","parseDate","startOfToday","pricedDates","getNextAvailableDate","offset","today","firstDateIndex","findIndex","isExpiredCard","useBookingDate","nextAvailable","useRouteAndDate","useRoutesQuery","routes","routeCode","returnRoutes","getReturnRoutes","outwardRoute","returnRoute","val","setTripType","Single","style","isActive","isStaff","customerType","showLowPrice","displaySnack","useSnackbar","setActive","availableDatesMap","isDisabled","has","getPricedDate","minPrice","min","interval","getTime","dateMap","eachDayOfInterval","dateIsInRange","dropdownRef","watchDebounced","current","minDate","mobileModal","modalTitle","iconSize","close","firstDayOfWeek","masks","input","$i18n","maxDate","day","dayEvents","role","isDiscount","hideTripTypeSelect","getIsLocked","isOutwardLocked","helpers","withMessage","outwardDateRequired","returnDateRequired","isCalendarActive","BaseToggleSwitch","TravelDatePicker","showEdit","RouteAndDate","getReturn","DeparturePrice","departureId","departureDate","arrivalDate","ship","getDepartureId","bestPrice","hasDiscount","isDiscounted","isBookable","hourHasPassed","isVehicleBookable","comfortSections","sections","DepartureComfortSection","isFreight","DepartureTicketGroupInfo","ticketGroups","tg","resources","resource","DepartureResource","ticketGroupInfo","resourceCode","ticketgroups","DepartureTicketGroup","te","extraInfo","isSplit","dialogMessage","resolveDialogMessage","queue","PQueue","concurrency","useDepartureQuery","hasReturn","getCurrency","petInVehicle","isGasOrElectricalCar","isGasOrElectric","productCode","getIsAmending","getProductCode","getSelectedProductCode","queryKey","queryFn","signal","add","keepPreviousData","useSplitResourceQuery","splitStore","useResourceSplitStore","splitPassengers","getPassengerIds","otherPassengers","passengers","alternativePassengers","ticketGroup","getIsSplit","showSplit","passengerOptions","firstPassengerOptions","passenger2","secondPassengerOptions","passenger1","showSecondPassenger","getExistingPassengerId","fallback","comfortSelection","setIsSplit","setSplitPassengers","submit","setDeparture","comfortOptions","maxWidth","BaseRadio","canClear","canDeselect","allOptions","selectedDeparture","selectedComfort","ao","selectedResource","onResourceClicked","isMixed","hasVehicle","DepartureComfortSplit","preserveAspectRatio","viewBox","xmlns","transform","activeDeparture","carDeckIsFull","selections","departureState","cs","selectedTicketType","comfort","ticketType","messages","header","HHmm","TicketLightbox","DepartureTable","selection","departurePrices","_withDirectives","_vModelRadio","EEEddM","showAllDates","setTimeout","otherDirectionDate","otherDirection","renderKey","selectedDate","getDateRange","centerIndex","startIndex","endIndex","isMediumScreen","useMediaQuery","isSmallScreen","setPrevDate","setNextDate","DepartureDateItem","expose","__expose","openedDeparture","EEEEddM","departureSelected","resourceIds","everyCarDeckFull","every","returnAfterOutward","DepartureDate","DepartureLoading","Departure","onOpenDeparture","BaseMessages","$errors","$message","trips","departureSections","goToNextStep","DepartureEdit","DepartureSection","ref_for","ExtrasSection","reservation","transferResources","useExtrasQuery","resourceId","mapExtrasResponse","extrasSections","newTransfer","transferSection","tr","passengerInfo","pi","setFromApi","seating","foodResources","foodSection","fr","text","imageUrl","replace","isDrink","discounts","setResource","resourceCount","food","drinks","selectedDrinkCount","allDrinkIdentifiers","ExtraQuantity","drink","ExtraQuantitySmall","getSeatingBackground","deck","SF1650_AS","SF1650_ASB","SF1650_DP","SF1650_MS","SF1650_FS_8","SF1650_FS_7","SF1500_AS","SF1500_FS","Error","useSeatingQuery","mapSeatingMap","definition","maps","m","deck7","deck8","all","seatingDefinition","publicPath","process","selectSeat","emptyIndex","setSelectedSeats","seatsForAllOrNone","reservations","seat","background","path","circle","cx","cy","version","_createStaticVNode","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_50","_hoisted_51","_hoisted_52","_hoisted_53","_hoisted_58","_hoisted_59","_hoisted_60","_hoisted_61","points","_hoisted_62","_hoisted_63","_hoisted_64","_hoisted_65","_hoisted_66","x1","y1","x2","y2","_hoisted_67","_hoisted_68","_hoisted_69","_hoisted_70","_hoisted_71","_hoisted_78","_hoisted_79","_hoisted_80","_hoisted_86","_hoisted_87","_hoisted_88","_hoisted_93","_hoisted_94","_hoisted_95","_hoisted_96","_hoisted_97","_hoisted_98","_hoisted_99","_hoisted_100","_hoisted_101","_hoisted_102","_hoisted_103","_hoisted_104","_hoisted_105","_hoisted_106","_hoisted_107","_hoisted_108","_hoisted_109","_hoisted_110","_hoisted_111","_hoisted_112","_hoisted_113","_hoisted_114","_hoisted_115","_hoisted_116","_hoisted_117","_hoisted_118","_hoisted_123","_hoisted_124","_hoisted_125","_hoisted_126","_hoisted_127","_hoisted_128","_hoisted_129","_hoisted_130","_hoisted_131","_hoisted_132","_hoisted_133","_hoisted_134","_hoisted_135","_hoisted_136","_hoisted_141","_hoisted_142","_hoisted_143","_hoisted_144","_hoisted_145","_hoisted_146","_hoisted_147","_hoisted_148","_hoisted_149","_hoisted_150","_hoisted_151","_hoisted_152","selectedStations","setPassenger","passengerType","selectedStationId","selectedPassengerCount","passengerResources","passenger","TransferQuantitySmall","getStationId","setStationId","setPassengers","newStation","newPassengers","newIdentifier","busDirection","BusDirection","To","stationOptions","fromStop","isLocked","toStop","From","nameCode","arrivalDateTime","departureDateTime","fromStation","toStation","selectedStationInfo","TransferMap","TransferQuantity","Food","Transfer","Seating","OldTransfer","ExtrasLoading","_resolveDynamicComponent","BookingDetails","Passenger","coPassengers","cp","CoPassenger","Vehicle","useTravelDetailsQuery","displayErrors","mapBookingDetailsRequest","mapPassengers","disability","disabilities","dontKnow","unknownDetails","mapVehicles","licenseNumber","license","getBookingNumber","setBookingNumber","setBookingDetailsMutation","_component_BaseDropdown","errors","hideSelected","closeOnSelect","multipleLabelMaxLength","valid","canRemove","coPassengerId","coPassenger","coPaxId","toLocaleLowerCase","errorMessage","isEqual","require","initialPassengerState","dateOfBirth","gender","country","lastFour","savePassenger","needsValidation","isEditable","isAdult","PassengerType","Adult","AdultIslander","typeIsEntitledToDiscount","age","differenceInYears","filteredCoPassengers","charAt","isCoPassengerSelected","coPas","pas","selectedCoPassenger","validateBirthDate","dateOfBirthIsValid","validateLastFour","maxLength","requiredIf","islanderShouldValidate","updatePassenger","showDisabilities","isIslander","coPassengerDiff","apiPassenger","showSavePassenger","getUserType","Customer","onClearCoPassenger","CoPassengerSelect","onClear","BaseCheckbox","mask","BaseGenderSelect","BaseDisabilitySelect","coVehicles","useMyCoVehiclesQuery","unknownLicense","updateVehicle","setVehicle","requiresLicense","alignLeft","CoVehicleSelect","subtitleLink","passengerErrors","showLightBox","differentDetails","getDifferentDetailsReturn","setIsDifferentDetails","setOutwardDetailsOnReturn","differentDetailsDisabled","mapVehicle","onEvent","subtitleTrigger","EEEE","PassengerDetails","msg","VehicleDetails","main","passengerSections","isSaving","err","response","travellers","keys","PassengerSection","Set","passengerTypeIsIslander","ResourceSettings","isDifferentResourcesPerRoute","resourceTypes","resourcesForRoute","resolveResources","islanderPassengers","getPassengerType","useBookableResourceQuery","clearUnavailableResources","hasDifferentDetails","resetVehicle","setDefaultPassenger","resourceSettings","defaultPassenger","hasAnyPassengers","addPassenger","disableAdd","islanderPassengerOptions","alternativePassengersOpen","currentPassengerCount","inputPlaceholder","passengersRequired","PassengerSelectRow","campaignParam","mmidParam","voucherParam","setParams","voucher","mmID","voucherIsEncoded","reset","useSettingsQuery","vehicleOptions","vehicleAmount","apiVehicle","VehicleExtraInfo","isAmendment","differentDetailsReturn","assign","isSingle","loadingNextStep","validateAndRedirect","hasAdultPassengers","hasAdultPassenger","hasTeenPassengers","hasTeenPassenger","hasChildPassengers","hasChildPassenger","displayNoAdultsDialog","loginRef","useLoginModal","RouteCampaignCode","PassengerSelect","VehicleSelect","__temp","__restore","useRoute","useCalculatePriceQuery","isCheckout","isAccommodationActivated","activeComponent","Departures","CustomerDetails","Passengers","Extras","Accommodations","Checkout","TripDetails","useIsLoggedInQuery","_withAsyncContext","unload","useUnloadBookings","openBooking","useOpenBooking","BookingStepper","Basket","leftToPay","paid","bookingSections","total","amd","isSticky","displayEmptySections","BookingNavigation","_Suspense","MaintenanceWrapper","BookingFlow","createRouter","createWebHistory","component","App","scrollBehavior","to","savedPosition","top","app","createApp","use","pinia","eventbusPlugin","VueQueryPlugin","SetupCalendar","mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","loaded","__webpack_modules__","call","amdO","deferred","O","chunkIds","priority","notFulfilled","Infinity","fulfilled","j","splice","getter","__esModule","defineProperty","enumerable","f","chunkId","promises","u","miniCssF","g","globalThis","Function","obj","prop","prototype","hasOwnProperty","inProgress","dataWebpackPrefix","l","done","script","needAttach","scripts","getElementsByTagName","getAttribute","createElement","charset","timeout","nc","setAttribute","onScriptComplete","prev","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","bind","head","appendChild","toStringTag","nmd","paths","children","createStylesheet","fullhref","oldTag","reject","linkTag","rel","nonce","onLinkComplete","errorType","realHref","insertBefore","nextSibling","findStylesheet","existingLinkTags","dataHref","existingStyleTags","loadStylesheet","installedCssChunks","miniCss","cssChunks","installedChunks","installedChunkData","promise","loadingEnded","realSrc","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""}