@qite/tide-booking-component 1.4.124 → 1.4.126
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -26
- package/build/build-cjs/index.js +40138 -0
- package/build/build-cjs/src/booking-product/components/age-select.d.ts +8 -0
- package/build/build-cjs/src/booking-product/components/amount-input.d.ts +10 -0
- package/build/build-cjs/src/booking-product/components/date-range-picker/calendar-day.d.ts +13 -0
- package/build/build-cjs/src/booking-product/components/date-range-picker/calendar.d.ts +19 -0
- package/build/build-cjs/src/booking-product/components/date-range-picker/index.d.ts +25 -0
- package/build/build-cjs/src/booking-product/components/dates.d.ts +14 -0
- package/build/build-cjs/src/booking-product/components/footer.d.ts +10 -0
- package/build/build-cjs/src/booking-product/components/header.d.ts +11 -0
- package/build/build-cjs/src/booking-product/components/list-view.d.ts +8 -0
- package/build/build-cjs/src/booking-product/components/product.d.ts +9 -0
- package/build/build-cjs/src/booking-product/components/rating.d.ts +6 -0
- package/build/build-cjs/src/booking-product/components/rooms.d.ts +10 -0
- package/build/build-cjs/src/booking-product/constants.d.ts +1 -0
- package/build/build-cjs/src/booking-product/index.d.ts +10 -0
- package/build/build-cjs/src/booking-product/settings-context.d.ts +6 -0
- package/build/build-cjs/src/booking-product/types.d.ts +61 -0
- package/build/build-cjs/src/booking-product/utils/api.d.ts +7 -0
- package/build/build-cjs/src/booking-product/utils/price.d.ts +1 -0
- package/build/build-cjs/src/booking-wizard/api-settings-slice.d.ts +4 -0
- package/build/build-cjs/src/booking-wizard/components/build-step-labels.d.ts +8 -0
- package/build/build-cjs/src/booking-wizard/components/labeled-input.d.ts +18 -0
- package/build/build-cjs/src/booking-wizard/components/labeled-select.d.ts +21 -0
- package/build/build-cjs/src/booking-wizard/components/message.d.ts +9 -0
- package/build/build-cjs/src/booking-wizard/components/multi-range-filter.d.ts +11 -0
- package/build/build-cjs/src/booking-wizard/components/phone-input.d.ts +17 -0
- package/build/build-cjs/src/booking-wizard/components/print-offer-button.d.ts +17 -0
- package/build/build-cjs/src/booking-wizard/components/step-indicator.d.ts +6 -0
- package/build/build-cjs/src/booking-wizard/components/step-route.d.ts +8 -0
- package/build/build-cjs/src/booking-wizard/features/booking/api.d.ts +11 -0
- package/build/build-cjs/src/booking-wizard/features/booking/booking-self-contained.d.ts +8 -0
- package/build/build-cjs/src/booking-wizard/features/booking/booking-slice.d.ts +61 -0
- package/build/build-cjs/src/booking-wizard/features/booking/booking.d.ts +8 -0
- package/build/build-cjs/src/booking-wizard/features/booking/constants.d.ts +8 -0
- package/build/build-cjs/src/booking-wizard/features/booking/selectors.d.ts +638 -0
- package/build/build-cjs/src/booking-wizard/features/confirmation/confirmation.d.ts +5 -0
- package/build/build-cjs/src/booking-wizard/features/error/error.d.ts +5 -0
- package/build/build-cjs/src/booking-wizard/features/flight-options/flight-filter.d.ts +9 -0
- package/build/build-cjs/src/booking-wizard/features/flight-options/flight-option-flight.d.ts +8 -0
- package/build/build-cjs/src/booking-wizard/features/flight-options/flight-option-modal.d.ts +3 -0
- package/build/build-cjs/src/booking-wizard/features/flight-options/flight-option.d.ts +10 -0
- package/build/build-cjs/src/booking-wizard/features/flight-options/flight-utils.d.ts +6 -0
- package/build/build-cjs/src/booking-wizard/features/flight-options/index.d.ts +5 -0
- package/build/build-cjs/src/booking-wizard/features/price-details/price-details-api.d.ts +6 -0
- package/build/build-cjs/src/booking-wizard/features/price-details/price-details-slice.d.ts +23 -0
- package/build/build-cjs/src/booking-wizard/features/price-details/selectors.d.ts +378 -0
- package/build/build-cjs/src/booking-wizard/features/price-details/util.d.ts +2 -0
- package/build/build-cjs/src/booking-wizard/features/product-options/no-options.d.ts +3 -0
- package/build/build-cjs/src/booking-wizard/features/product-options/none-option.d.ts +9 -0
- package/build/build-cjs/src/booking-wizard/features/product-options/option-booking-airline-group.d.ts +8 -0
- package/build/build-cjs/src/booking-wizard/features/product-options/option-booking-group.d.ts +12 -0
- package/build/build-cjs/src/booking-wizard/features/product-options/option-item.d.ts +11 -0
- package/build/build-cjs/src/booking-wizard/features/product-options/option-pax-card.d.ts +10 -0
- package/build/build-cjs/src/booking-wizard/features/product-options/option-pax-group.d.ts +13 -0
- package/build/build-cjs/src/booking-wizard/features/product-options/option-room.d.ts +11 -0
- package/build/build-cjs/src/booking-wizard/features/product-options/option-unit-group.d.ts +13 -0
- package/build/build-cjs/src/booking-wizard/features/product-options/option-units-card.d.ts +9 -0
- package/build/build-cjs/src/booking-wizard/features/product-options/option-utils.d.ts +9 -0
- package/build/build-cjs/src/booking-wizard/features/product-options/options-form.d.ts +5 -0
- package/build/build-cjs/src/booking-wizard/features/room-options/index.d.ts +5 -0
- package/build/build-cjs/src/booking-wizard/features/room-options/room-utils.d.ts +9 -0
- package/build/build-cjs/src/booking-wizard/features/room-options/room.d.ts +12 -0
- package/build/build-cjs/src/booking-wizard/features/room-options/traveler-rooms.d.ts +9 -0
- package/build/build-cjs/src/booking-wizard/features/sidebar/index.d.ts +7 -0
- package/build/build-cjs/src/booking-wizard/features/sidebar/sidebar-flight.d.ts +9 -0
- package/build/build-cjs/src/booking-wizard/features/sidebar/sidebar-util.d.ts +13 -0
- package/build/build-cjs/src/booking-wizard/features/sidebar/sidebar.d.ts +0 -0
- package/build/build-cjs/src/booking-wizard/features/summary/summary-booking-option-pax.d.ts +7 -0
- package/build/build-cjs/src/booking-wizard/features/summary/summary-booking-option-unit.d.ts +7 -0
- package/build/build-cjs/src/booking-wizard/features/summary/summary-flight.d.ts +8 -0
- package/build/build-cjs/src/booking-wizard/features/summary/summary-per-booking-option-group.d.ts +7 -0
- package/build/build-cjs/src/booking-wizard/features/summary/summary-per-pax-option-group.d.ts +7 -0
- package/build/build-cjs/src/booking-wizard/features/summary/summary-per-unit-option-group.d.ts +7 -0
- package/build/build-cjs/src/booking-wizard/features/summary/summary-slice.d.ts +8 -0
- package/build/build-cjs/src/booking-wizard/features/summary/summary.d.ts +5 -0
- package/build/build-cjs/src/booking-wizard/features/travelers-form/controls/gender-control.d.ts +5 -0
- package/build/build-cjs/src/booking-wizard/features/travelers-form/travelers-form-slice.d.ts +143 -0
- package/build/build-cjs/src/booking-wizard/features/travelers-form/travelers-form-util.d.ts +7 -0
- package/build/build-cjs/src/booking-wizard/features/travelers-form/travelers-form.d.ts +3 -0
- package/build/build-cjs/src/booking-wizard/features/travelers-form/type-ahead-input.d.ts +16 -0
- package/build/build-cjs/src/booking-wizard/features/travelers-form/validate-form.d.ts +4 -0
- package/build/build-cjs/src/booking-wizard/index.d.ts +12 -0
- package/build/build-cjs/src/booking-wizard/settings-context.d.ts +6 -0
- package/build/build-cjs/src/booking-wizard/store.d.ts +26 -0
- package/build/build-cjs/src/booking-wizard/types.d.ts +330 -0
- package/build/build-cjs/src/booking-wizard/use-offer-printer.d.ts +13 -0
- package/build/build-cjs/src/content/components/LanguageSwitcher.d.ts +12 -0
- package/build/build-cjs/src/content/components/accordion.d.ts +9 -0
- package/build/build-cjs/src/content/components/breadcrumb.d.ts +14 -0
- package/build/build-cjs/src/content/components/contact.d.ts +3 -0
- package/build/build-cjs/src/content/components/faq.d.ts +11 -0
- package/build/build-cjs/src/content/components/gallery.d.ts +13 -0
- package/build/build-cjs/src/content/components/image-with-text.d.ts +29 -0
- package/build/build-cjs/src/content/components/itinerary-map-view.d.ts +48 -0
- package/build/build-cjs/src/content/components/login.d.ts +3 -0
- package/build/build-cjs/src/content/components/personal-contact-form.d.ts +3 -0
- package/build/build-cjs/src/content/components/slider.d.ts +10 -0
- package/build/build-cjs/src/content/error/error.d.ts +6 -0
- package/build/build-cjs/src/content/featured-trips/featured-trip-card.d.ts +4 -0
- package/build/build-cjs/src/content/featured-trips/index.d.ts +4 -0
- package/build/build-cjs/src/content/featured-trips/types.d.ts +12 -0
- package/build/build-cjs/src/content/features/content-page/content-page-self-contained.d.ts +6 -0
- package/build/build-cjs/src/content/footer/index.d.ts +4 -0
- package/build/build-cjs/src/content/footer/types.d.ts +27 -0
- package/build/build-cjs/src/content/header/index.d.ts +4 -0
- package/build/build-cjs/src/content/header/types.d.ts +22 -0
- package/build/build-cjs/src/content/image-card-grid/index.d.ts +4 -0
- package/build/build-cjs/src/content/image-card-grid/types.d.ts +12 -0
- package/build/build-cjs/src/content/image-with-text-section/card.d.ts +4 -0
- package/build/build-cjs/src/content/image-with-text-section/index.d.ts +4 -0
- package/build/build-cjs/src/content/image-with-text-section/types.d.ts +19 -0
- package/build/build-cjs/src/content/login/confirm-component.d.ts +4 -0
- package/build/build-cjs/src/content/login/index.d.ts +4 -0
- package/build/build-cjs/src/content/login/login-component.d.ts +4 -0
- package/build/build-cjs/src/content/login/login-services.d.ts +6 -0
- package/build/build-cjs/src/content/login/reset-password-component.d.ts +4 -0
- package/build/build-cjs/src/content/login/types.d.ts +24 -0
- package/build/build-cjs/src/content/navbar/index.d.ts +4 -0
- package/build/build-cjs/src/content/navbar/placeholderData.d.ts +12 -0
- package/build/build-cjs/src/content/navbar/types.d.ts +32 -0
- package/build/build-cjs/src/form/components/fields/date-field.d.ts +4 -0
- package/build/build-cjs/src/form/components/fields/dropdown-field.d.ts +4 -0
- package/build/build-cjs/src/form/components/fields/field-label.d.ts +10 -0
- package/build/build-cjs/src/form/components/fields/form-field.d.ts +11 -0
- package/build/build-cjs/src/form/components/fields/info-text-field.d.ts +7 -0
- package/build/build-cjs/src/form/components/fields/multi-dropdown-field.d.ts +4 -0
- package/build/build-cjs/src/form/components/fields/multiline-field.d.ts +4 -0
- package/build/build-cjs/src/form/components/fields/number-field.d.ts +4 -0
- package/build/build-cjs/src/form/components/fields/optional-field.d.ts +4 -0
- package/build/build-cjs/src/form/components/fields/radio-checkbox-field.d.ts +4 -0
- package/build/build-cjs/src/form/components/fields/text-field.d.ts +4 -0
- package/build/build-cjs/src/form/components/fields/yes-no-field.d.ts +4 -0
- package/build/build-cjs/src/form/components/form-body.d.ts +9 -0
- package/build/build-cjs/src/form/components/form-container.d.ts +3 -0
- package/build/build-cjs/src/form/components/form-segment.d.ts +11 -0
- package/build/build-cjs/src/form/components/form-step.d.ts +9 -0
- package/build/build-cjs/src/form/form-configuration-context.d.ts +4 -0
- package/build/build-cjs/src/form/form-types.d.ts +7 -0
- package/build/build-cjs/src/form/hooks/use-form-state.d.ts +13 -0
- package/build/build-cjs/src/form/index.d.ts +7 -0
- package/build/build-cjs/src/form/types.d.ts +20 -0
- package/build/build-cjs/src/form/utils/captcha-util.d.ts +3 -0
- package/build/build-cjs/src/form/utils/form-initial-values-util.d.ts +3 -0
- package/build/build-cjs/src/form/utils/form-submit-util.d.ts +4 -0
- package/build/build-cjs/src/form/utils/form-validation-util.d.ts +8 -0
- package/build/build-cjs/src/form/utils/html-util.d.ts +16 -0
- package/build/build-cjs/src/form/utils/visibility-util.d.ts +4 -0
- package/{src/index.ts → build/build-cjs/src/index.d.ts} +29 -46
- package/build/build-cjs/src/qsm/components/QSMContainer/qsm-container.d.ts +3 -0
- package/build/build-cjs/src/qsm/components/date-picker/index.d.ts +3 -0
- package/build/build-cjs/src/qsm/components/date-range-picker/calendar-day.d.ts +12 -0
- package/build/build-cjs/src/qsm/components/date-range-picker/calendar.d.ts +24 -0
- package/build/build-cjs/src/qsm/components/date-range-picker/index.d.ts +10 -0
- package/build/build-cjs/src/qsm/components/double-search-input-group/index.d.ts +8 -0
- package/build/build-cjs/src/qsm/components/item-picker/index.d.ts +13 -0
- package/build/build-cjs/src/qsm/components/mobile-filter-modal/index.d.ts +3 -0
- package/build/build-cjs/src/qsm/components/search-input/index.d.ts +15 -0
- package/build/build-cjs/src/qsm/components/search-input-group/index.d.ts +13 -0
- package/build/build-cjs/src/qsm/components/travel-class-picker/index.d.ts +3 -0
- package/build/build-cjs/src/qsm/components/travel-input/index.d.ts +3 -0
- package/build/build-cjs/src/qsm/components/travel-input-group/index.d.ts +3 -0
- package/build/build-cjs/src/qsm/components/travel-nationality-picker/index.d.ts +3 -0
- package/build/build-cjs/src/qsm/components/travel-type-picker/index.d.ts +3 -0
- package/build/build-cjs/src/qsm/index.d.ts +7 -0
- package/build/build-cjs/src/qsm/qsm-configuration-context.d.ts +4 -0
- package/build/build-cjs/src/qsm/store/qsm-slice.d.ts +74 -0
- package/build/build-cjs/src/qsm/store/qsm-store.d.ts +10 -0
- package/build/build-cjs/src/qsm/types.d.ts +82 -0
- package/build/build-cjs/src/search-results/components/book-packaging-entry/index.d.ts +9 -0
- package/build/build-cjs/src/search-results/components/book-packaging-entry/wl-sidebar.d.ts +9 -0
- package/build/build-cjs/src/search-results/components/excursions/day-by-day-excursions.d.ts +5 -0
- package/build/build-cjs/src/search-results/components/excursions/excursion-details.d.ts +3 -0
- package/build/build-cjs/src/search-results/components/excursions/excursion-results.d.ts +8 -0
- package/build/build-cjs/src/search-results/components/filters/filters.d.ts +13 -0
- package/build/build-cjs/src/search-results/components/filters/flight-filters.d.ts +8 -0
- package/build/build-cjs/src/search-results/components/flight/flight-banner.d.ts +8 -0
- package/build/build-cjs/src/search-results/components/flight/flight-card.d.ts +7 -0
- package/build/build-cjs/src/search-results/components/flight/flight-leg.d.ts +7 -0
- package/build/build-cjs/src/search-results/components/flight/flight-path.d.ts +6 -0
- package/build/build-cjs/src/search-results/components/flight/flight-results.d.ts +8 -0
- package/build/build-cjs/src/search-results/components/flight/flight-search-context/index.d.ts +39 -0
- package/build/build-cjs/src/search-results/components/flight/flight-selection/independent-flight-option.d.ts +14 -0
- package/build/build-cjs/src/search-results/components/flight/flight-selection/independent-flight-selection.d.ts +7 -0
- package/build/build-cjs/src/search-results/components/flight/flight-selection/index.d.ts +8 -0
- package/build/build-cjs/src/search-results/components/flight/flight-selection/paired-flight-option.d.ts +7 -0
- package/build/build-cjs/src/search-results/components/flight/flight-selection/paired-flight-selection.d.ts +7 -0
- package/build/build-cjs/src/search-results/components/group-tour/group-tour-card.d.ts +9 -0
- package/build/build-cjs/src/search-results/components/group-tour/group-tour-results.d.ts +6 -0
- package/build/build-cjs/src/search-results/components/hotel/hotel-accommodation-results.d.ts +7 -0
- package/build/build-cjs/src/search-results/components/hotel/hotel-card.d.ts +8 -0
- package/build/build-cjs/src/search-results/components/item-picker/index.d.ts +15 -0
- package/build/build-cjs/src/search-results/components/itinerary/full-itinerary.d.ts +6 -0
- package/build/build-cjs/src/search-results/components/itinerary/index.d.ts +10 -0
- package/build/build-cjs/src/search-results/components/multi-range-filter.d.ts +11 -0
- package/build/build-cjs/src/search-results/components/round-trip/round-trip-results.d.ts +5 -0
- package/build/build-cjs/src/search-results/components/search-results-container/flight-search-results.d.ts +6 -0
- package/build/build-cjs/src/search-results/components/search-results-container/search-results-container.d.ts +6 -0
- package/build/build-cjs/src/search-results/components/spinner/spinner.d.ts +6 -0
- package/build/build-cjs/src/search-results/components/tab-views/index.d.ts +5 -0
- package/build/build-cjs/src/search-results/features/flights/flight-search-results-self-contained.d.ts +5 -0
- package/build/build-cjs/src/search-results/features/hotels/hotel-flight-search-results-self-contained.d.ts +5 -0
- package/build/build-cjs/src/search-results/features/hotels/hotel-search-results-self-contained.d.ts +5 -0
- package/build/build-cjs/src/search-results/features/roundtrips/roundtrip-search-results-self-contained.d.ts +5 -0
- package/build/build-cjs/src/search-results/index.d.ts +8 -0
- package/{src/search-results/search-results-configuration-context.ts → build/build-cjs/src/search-results/search-results-configuration-context.d.ts} +4 -6
- package/build/build-cjs/src/search-results/store/search-results-selectors.d.ts +542 -0
- package/build/build-cjs/src/search-results/store/search-results-slice.d.ts +57 -0
- package/build/build-cjs/src/search-results/store/search-results-store.d.ts +10 -0
- package/build/build-cjs/src/search-results/types.d.ts +185 -0
- package/build/build-cjs/src/search-results/utils/flight-utils.d.ts +11 -0
- package/build/build-cjs/src/search-results/utils/packaging-utils.d.ts +7 -0
- package/build/build-cjs/src/search-results/utils/query-utils.d.ts +12 -0
- package/build/build-cjs/src/search-results/utils/search-results-utils.d.ts +8 -0
- package/build/build-cjs/src/shared/booking/booking-panel.d.ts +13 -0
- package/build/build-cjs/src/shared/booking/product-card.d.ts +8 -0
- package/build/build-cjs/src/shared/booking/shared-confirmation.d.ts +25 -0
- package/build/build-cjs/src/shared/booking/shared-sidebar.d.ts +34 -0
- package/build/build-cjs/src/shared/booking/step-indicators.d.ts +7 -0
- package/build/build-cjs/src/shared/booking/summary.d.ts +44 -0
- package/build/build-cjs/src/shared/booking/travelers-form.d.ts +79 -0
- package/build/build-cjs/src/shared/components/flyin/accommodation-flyin.d.ts +7 -0
- package/build/build-cjs/src/shared/components/flyin/flights-flyin.d.ts +7 -0
- package/build/build-cjs/src/shared/components/flyin/flyin.d.ts +20 -0
- package/build/build-cjs/src/shared/components/flyin/group-tour-flyin.d.ts +8 -0
- package/build/build-cjs/src/shared/components/flyin/packaging-flights-flyin.d.ts +9 -0
- package/build/build-cjs/src/shared/components/icon.d.ts +11 -0
- package/build/build-cjs/src/shared/components/loader.d.ts +6 -0
- package/build/build-cjs/src/shared/types.d.ts +16 -0
- package/build/build-cjs/src/shared/utils/booking-summary.d.ts +2 -0
- package/build/build-cjs/src/shared/utils/class-util.d.ts +1 -0
- package/build/build-cjs/src/shared/utils/localization-util.d.ts +51 -0
- package/build/build-cjs/src/shared/utils/query-string-util.d.ts +8 -0
- package/build/build-cjs/src/shared/utils/tide-api-utils.d.ts +4 -0
- package/build/build-cjs/src/shared/utils/use-media-query-util.d.ts +2 -0
- package/build/build-esm/index.js +40092 -0
- package/build/build-esm/src/booking-product/components/age-select.d.ts +8 -0
- package/build/build-esm/src/booking-product/components/amount-input.d.ts +10 -0
- package/build/build-esm/src/booking-product/components/date-range-picker/calendar-day.d.ts +13 -0
- package/build/build-esm/src/booking-product/components/date-range-picker/calendar.d.ts +19 -0
- package/build/build-esm/src/booking-product/components/date-range-picker/index.d.ts +25 -0
- package/build/build-esm/src/booking-product/components/dates.d.ts +14 -0
- package/build/build-esm/src/booking-product/components/footer.d.ts +10 -0
- package/build/build-esm/src/booking-product/components/header.d.ts +11 -0
- package/build/build-esm/src/booking-product/components/list-view.d.ts +8 -0
- package/build/build-esm/src/booking-product/components/product.d.ts +9 -0
- package/build/build-esm/src/booking-product/components/rating.d.ts +6 -0
- package/build/build-esm/src/booking-product/components/rooms.d.ts +10 -0
- package/build/build-esm/src/booking-product/constants.d.ts +1 -0
- package/build/build-esm/src/booking-product/index.d.ts +10 -0
- package/build/build-esm/src/booking-product/settings-context.d.ts +6 -0
- package/build/build-esm/src/booking-product/types.d.ts +61 -0
- package/build/build-esm/src/booking-product/utils/api.d.ts +7 -0
- package/build/build-esm/src/booking-product/utils/price.d.ts +1 -0
- package/build/build-esm/src/booking-wizard/api-settings-slice.d.ts +4 -0
- package/build/build-esm/src/booking-wizard/components/build-step-labels.d.ts +8 -0
- package/build/build-esm/src/booking-wizard/components/labeled-input.d.ts +18 -0
- package/build/build-esm/src/booking-wizard/components/labeled-select.d.ts +21 -0
- package/build/build-esm/src/booking-wizard/components/message.d.ts +9 -0
- package/build/build-esm/src/booking-wizard/components/multi-range-filter.d.ts +11 -0
- package/build/build-esm/src/booking-wizard/components/phone-input.d.ts +17 -0
- package/build/build-esm/src/booking-wizard/components/print-offer-button.d.ts +17 -0
- package/build/build-esm/src/booking-wizard/components/step-indicator.d.ts +6 -0
- package/build/build-esm/src/booking-wizard/components/step-route.d.ts +8 -0
- package/build/build-esm/src/booking-wizard/features/booking/api.d.ts +11 -0
- package/build/build-esm/src/booking-wizard/features/booking/booking-self-contained.d.ts +8 -0
- package/build/build-esm/src/booking-wizard/features/booking/booking-slice.d.ts +61 -0
- package/build/build-esm/src/booking-wizard/features/booking/booking.d.ts +8 -0
- package/build/build-esm/src/booking-wizard/features/booking/constants.d.ts +8 -0
- package/build/build-esm/src/booking-wizard/features/booking/selectors.d.ts +638 -0
- package/build/build-esm/src/booking-wizard/features/confirmation/confirmation.d.ts +5 -0
- package/build/build-esm/src/booking-wizard/features/error/error.d.ts +5 -0
- package/build/build-esm/src/booking-wizard/features/flight-options/flight-filter.d.ts +9 -0
- package/build/build-esm/src/booking-wizard/features/flight-options/flight-option-flight.d.ts +8 -0
- package/build/build-esm/src/booking-wizard/features/flight-options/flight-option-modal.d.ts +3 -0
- package/build/build-esm/src/booking-wizard/features/flight-options/flight-option.d.ts +10 -0
- package/build/build-esm/src/booking-wizard/features/flight-options/flight-utils.d.ts +6 -0
- package/build/build-esm/src/booking-wizard/features/flight-options/index.d.ts +5 -0
- package/build/build-esm/src/booking-wizard/features/price-details/price-details-api.d.ts +6 -0
- package/build/build-esm/src/booking-wizard/features/price-details/price-details-slice.d.ts +23 -0
- package/build/build-esm/src/booking-wizard/features/price-details/selectors.d.ts +378 -0
- package/build/build-esm/src/booking-wizard/features/price-details/util.d.ts +2 -0
- package/build/build-esm/src/booking-wizard/features/product-options/no-options.d.ts +3 -0
- package/build/build-esm/src/booking-wizard/features/product-options/none-option.d.ts +9 -0
- package/build/build-esm/src/booking-wizard/features/product-options/option-booking-airline-group.d.ts +8 -0
- package/build/build-esm/src/booking-wizard/features/product-options/option-booking-group.d.ts +12 -0
- package/build/build-esm/src/booking-wizard/features/product-options/option-item.d.ts +11 -0
- package/build/build-esm/src/booking-wizard/features/product-options/option-pax-card.d.ts +10 -0
- package/build/build-esm/src/booking-wizard/features/product-options/option-pax-group.d.ts +13 -0
- package/build/build-esm/src/booking-wizard/features/product-options/option-room.d.ts +11 -0
- package/build/build-esm/src/booking-wizard/features/product-options/option-unit-group.d.ts +13 -0
- package/build/build-esm/src/booking-wizard/features/product-options/option-units-card.d.ts +9 -0
- package/build/build-esm/src/booking-wizard/features/product-options/option-utils.d.ts +9 -0
- package/build/build-esm/src/booking-wizard/features/product-options/options-form.d.ts +5 -0
- package/build/build-esm/src/booking-wizard/features/room-options/index.d.ts +5 -0
- package/build/build-esm/src/booking-wizard/features/room-options/room-utils.d.ts +9 -0
- package/build/build-esm/src/booking-wizard/features/room-options/room.d.ts +12 -0
- package/build/build-esm/src/booking-wizard/features/room-options/traveler-rooms.d.ts +9 -0
- package/build/build-esm/src/booking-wizard/features/sidebar/index.d.ts +7 -0
- package/build/build-esm/src/booking-wizard/features/sidebar/sidebar-flight.d.ts +9 -0
- package/build/build-esm/src/booking-wizard/features/sidebar/sidebar-util.d.ts +13 -0
- package/build/build-esm/src/booking-wizard/features/sidebar/sidebar.d.ts +0 -0
- package/build/build-esm/src/booking-wizard/features/summary/summary-booking-option-pax.d.ts +7 -0
- package/build/build-esm/src/booking-wizard/features/summary/summary-booking-option-unit.d.ts +7 -0
- package/build/build-esm/src/booking-wizard/features/summary/summary-flight.d.ts +8 -0
- package/build/build-esm/src/booking-wizard/features/summary/summary-per-booking-option-group.d.ts +7 -0
- package/build/build-esm/src/booking-wizard/features/summary/summary-per-pax-option-group.d.ts +7 -0
- package/build/build-esm/src/booking-wizard/features/summary/summary-per-unit-option-group.d.ts +7 -0
- package/build/build-esm/src/booking-wizard/features/summary/summary-slice.d.ts +8 -0
- package/build/build-esm/src/booking-wizard/features/summary/summary.d.ts +5 -0
- package/build/build-esm/src/booking-wizard/features/travelers-form/controls/gender-control.d.ts +5 -0
- package/build/build-esm/src/booking-wizard/features/travelers-form/travelers-form-slice.d.ts +143 -0
- package/build/build-esm/src/booking-wizard/features/travelers-form/travelers-form-util.d.ts +7 -0
- package/build/build-esm/src/booking-wizard/features/travelers-form/travelers-form.d.ts +3 -0
- package/build/build-esm/src/booking-wizard/features/travelers-form/type-ahead-input.d.ts +16 -0
- package/build/build-esm/src/booking-wizard/features/travelers-form/validate-form.d.ts +4 -0
- package/build/build-esm/src/booking-wizard/index.d.ts +12 -0
- package/build/build-esm/src/booking-wizard/settings-context.d.ts +6 -0
- package/build/build-esm/src/booking-wizard/store.d.ts +26 -0
- package/build/build-esm/src/booking-wizard/types.d.ts +330 -0
- package/build/build-esm/src/booking-wizard/use-offer-printer.d.ts +13 -0
- package/build/build-esm/src/content/components/LanguageSwitcher.d.ts +12 -0
- package/build/build-esm/src/content/components/accordion.d.ts +9 -0
- package/build/build-esm/src/content/components/breadcrumb.d.ts +14 -0
- package/build/build-esm/src/content/components/contact.d.ts +3 -0
- package/build/build-esm/src/content/components/faq.d.ts +11 -0
- package/build/build-esm/src/content/components/gallery.d.ts +13 -0
- package/build/build-esm/src/content/components/image-with-text.d.ts +29 -0
- package/build/build-esm/src/content/components/itinerary-map-view.d.ts +48 -0
- package/build/build-esm/src/content/components/login.d.ts +3 -0
- package/build/build-esm/src/content/components/personal-contact-form.d.ts +3 -0
- package/build/build-esm/src/content/components/slider.d.ts +10 -0
- package/build/build-esm/src/content/error/error.d.ts +6 -0
- package/build/build-esm/src/content/featured-trips/featured-trip-card.d.ts +4 -0
- package/build/build-esm/src/content/featured-trips/index.d.ts +4 -0
- package/build/build-esm/src/content/featured-trips/types.d.ts +12 -0
- package/build/build-esm/src/content/features/content-page/content-page-self-contained.d.ts +6 -0
- package/build/build-esm/src/content/footer/index.d.ts +4 -0
- package/build/build-esm/src/content/footer/types.d.ts +27 -0
- package/build/build-esm/src/content/header/index.d.ts +4 -0
- package/build/build-esm/src/content/header/types.d.ts +22 -0
- package/build/build-esm/src/content/image-card-grid/index.d.ts +4 -0
- package/build/build-esm/src/content/image-card-grid/types.d.ts +12 -0
- package/build/build-esm/src/content/image-with-text-section/card.d.ts +4 -0
- package/build/build-esm/src/content/image-with-text-section/index.d.ts +4 -0
- package/build/build-esm/src/content/image-with-text-section/types.d.ts +19 -0
- package/build/build-esm/src/content/login/confirm-component.d.ts +4 -0
- package/build/build-esm/src/content/login/index.d.ts +4 -0
- package/build/build-esm/src/content/login/login-component.d.ts +4 -0
- package/build/build-esm/src/content/login/login-services.d.ts +6 -0
- package/build/build-esm/src/content/login/reset-password-component.d.ts +4 -0
- package/build/build-esm/src/content/login/types.d.ts +24 -0
- package/build/build-esm/src/content/navbar/index.d.ts +4 -0
- package/build/build-esm/src/content/navbar/placeholderData.d.ts +12 -0
- package/build/build-esm/src/content/navbar/types.d.ts +32 -0
- package/build/build-esm/src/form/components/fields/date-field.d.ts +4 -0
- package/build/build-esm/src/form/components/fields/dropdown-field.d.ts +4 -0
- package/build/build-esm/src/form/components/fields/field-label.d.ts +10 -0
- package/build/build-esm/src/form/components/fields/form-field.d.ts +11 -0
- package/build/build-esm/src/form/components/fields/info-text-field.d.ts +7 -0
- package/build/build-esm/src/form/components/fields/multi-dropdown-field.d.ts +4 -0
- package/build/build-esm/src/form/components/fields/multiline-field.d.ts +4 -0
- package/build/build-esm/src/form/components/fields/number-field.d.ts +4 -0
- package/build/build-esm/src/form/components/fields/optional-field.d.ts +4 -0
- package/build/build-esm/src/form/components/fields/radio-checkbox-field.d.ts +4 -0
- package/build/build-esm/src/form/components/fields/text-field.d.ts +4 -0
- package/build/build-esm/src/form/components/fields/yes-no-field.d.ts +4 -0
- package/build/build-esm/src/form/components/form-body.d.ts +9 -0
- package/build/build-esm/src/form/components/form-container.d.ts +3 -0
- package/build/build-esm/src/form/components/form-segment.d.ts +11 -0
- package/build/build-esm/src/form/components/form-step.d.ts +9 -0
- package/build/build-esm/src/form/form-configuration-context.d.ts +4 -0
- package/build/build-esm/src/form/form-types.d.ts +7 -0
- package/build/build-esm/src/form/hooks/use-form-state.d.ts +13 -0
- package/build/build-esm/src/form/index.d.ts +7 -0
- package/build/build-esm/src/form/types.d.ts +20 -0
- package/build/build-esm/src/form/utils/captcha-util.d.ts +3 -0
- package/build/build-esm/src/form/utils/form-initial-values-util.d.ts +3 -0
- package/build/build-esm/src/form/utils/form-submit-util.d.ts +4 -0
- package/build/build-esm/src/form/utils/form-validation-util.d.ts +8 -0
- package/build/build-esm/src/form/utils/html-util.d.ts +16 -0
- package/build/build-esm/src/form/utils/visibility-util.d.ts +4 -0
- package/build/build-esm/src/index.d.ts +29 -0
- package/build/build-esm/src/qsm/components/QSMContainer/qsm-container.d.ts +3 -0
- package/build/build-esm/src/qsm/components/date-picker/index.d.ts +3 -0
- package/build/build-esm/src/qsm/components/date-range-picker/calendar-day.d.ts +12 -0
- package/build/build-esm/src/qsm/components/date-range-picker/calendar.d.ts +24 -0
- package/build/build-esm/src/qsm/components/date-range-picker/index.d.ts +10 -0
- package/build/build-esm/src/qsm/components/double-search-input-group/index.d.ts +8 -0
- package/build/build-esm/src/qsm/components/item-picker/index.d.ts +13 -0
- package/build/build-esm/src/qsm/components/mobile-filter-modal/index.d.ts +3 -0
- package/build/build-esm/src/qsm/components/search-input/index.d.ts +15 -0
- package/build/build-esm/src/qsm/components/search-input-group/index.d.ts +13 -0
- package/build/build-esm/src/qsm/components/travel-class-picker/index.d.ts +3 -0
- package/build/build-esm/src/qsm/components/travel-input/index.d.ts +3 -0
- package/build/build-esm/src/qsm/components/travel-input-group/index.d.ts +3 -0
- package/build/build-esm/src/qsm/components/travel-nationality-picker/index.d.ts +3 -0
- package/build/build-esm/src/qsm/components/travel-type-picker/index.d.ts +3 -0
- package/build/build-esm/src/qsm/index.d.ts +7 -0
- package/build/build-esm/src/qsm/qsm-configuration-context.d.ts +4 -0
- package/build/build-esm/src/qsm/store/qsm-slice.d.ts +74 -0
- package/build/build-esm/src/qsm/store/qsm-store.d.ts +10 -0
- package/build/build-esm/src/qsm/types.d.ts +82 -0
- package/build/build-esm/src/search-results/components/book-packaging-entry/index.d.ts +9 -0
- package/build/build-esm/src/search-results/components/book-packaging-entry/wl-sidebar.d.ts +9 -0
- package/build/build-esm/src/search-results/components/excursions/day-by-day-excursions.d.ts +5 -0
- package/build/build-esm/src/search-results/components/excursions/excursion-details.d.ts +3 -0
- package/build/build-esm/src/search-results/components/excursions/excursion-results.d.ts +8 -0
- package/build/build-esm/src/search-results/components/filters/filters.d.ts +13 -0
- package/build/build-esm/src/search-results/components/filters/flight-filters.d.ts +8 -0
- package/build/build-esm/src/search-results/components/flight/flight-banner.d.ts +8 -0
- package/build/build-esm/src/search-results/components/flight/flight-card.d.ts +7 -0
- package/build/build-esm/src/search-results/components/flight/flight-leg.d.ts +7 -0
- package/build/build-esm/src/search-results/components/flight/flight-path.d.ts +6 -0
- package/build/build-esm/src/search-results/components/flight/flight-results.d.ts +8 -0
- package/build/build-esm/src/search-results/components/flight/flight-search-context/index.d.ts +39 -0
- package/build/build-esm/src/search-results/components/flight/flight-selection/independent-flight-option.d.ts +14 -0
- package/build/build-esm/src/search-results/components/flight/flight-selection/independent-flight-selection.d.ts +7 -0
- package/build/build-esm/src/search-results/components/flight/flight-selection/index.d.ts +8 -0
- package/build/build-esm/src/search-results/components/flight/flight-selection/paired-flight-option.d.ts +7 -0
- package/build/build-esm/src/search-results/components/flight/flight-selection/paired-flight-selection.d.ts +7 -0
- package/build/build-esm/src/search-results/components/group-tour/group-tour-card.d.ts +9 -0
- package/build/build-esm/src/search-results/components/group-tour/group-tour-results.d.ts +6 -0
- package/build/build-esm/src/search-results/components/hotel/hotel-accommodation-results.d.ts +7 -0
- package/build/build-esm/src/search-results/components/hotel/hotel-card.d.ts +8 -0
- package/build/build-esm/src/search-results/components/item-picker/index.d.ts +15 -0
- package/build/build-esm/src/search-results/components/itinerary/full-itinerary.d.ts +6 -0
- package/build/build-esm/src/search-results/components/itinerary/index.d.ts +10 -0
- package/build/build-esm/src/search-results/components/multi-range-filter.d.ts +11 -0
- package/build/build-esm/src/search-results/components/round-trip/round-trip-results.d.ts +5 -0
- package/build/build-esm/src/search-results/components/search-results-container/flight-search-results.d.ts +6 -0
- package/build/build-esm/src/search-results/components/search-results-container/search-results-container.d.ts +6 -0
- package/build/build-esm/src/search-results/components/spinner/spinner.d.ts +6 -0
- package/build/build-esm/src/search-results/components/tab-views/index.d.ts +5 -0
- package/build/build-esm/src/search-results/features/flights/flight-search-results-self-contained.d.ts +5 -0
- package/build/build-esm/src/search-results/features/hotels/hotel-flight-search-results-self-contained.d.ts +5 -0
- package/build/build-esm/src/search-results/features/hotels/hotel-search-results-self-contained.d.ts +5 -0
- package/build/build-esm/src/search-results/features/roundtrips/roundtrip-search-results-self-contained.d.ts +5 -0
- package/build/build-esm/src/search-results/index.d.ts +8 -0
- package/build/build-esm/src/search-results/search-results-configuration-context.d.ts +4 -0
- package/build/build-esm/src/search-results/store/search-results-selectors.d.ts +542 -0
- package/build/build-esm/src/search-results/store/search-results-slice.d.ts +57 -0
- package/build/build-esm/src/search-results/store/search-results-store.d.ts +10 -0
- package/build/build-esm/src/search-results/types.d.ts +185 -0
- package/build/build-esm/src/search-results/utils/flight-utils.d.ts +11 -0
- package/build/build-esm/src/search-results/utils/packaging-utils.d.ts +7 -0
- package/build/build-esm/src/search-results/utils/query-utils.d.ts +12 -0
- package/build/build-esm/src/search-results/utils/search-results-utils.d.ts +8 -0
- package/build/build-esm/src/shared/booking/booking-panel.d.ts +13 -0
- package/build/build-esm/src/shared/booking/product-card.d.ts +8 -0
- package/build/build-esm/src/shared/booking/shared-confirmation.d.ts +25 -0
- package/build/build-esm/src/shared/booking/shared-sidebar.d.ts +34 -0
- package/build/build-esm/src/shared/booking/step-indicators.d.ts +7 -0
- package/build/build-esm/src/shared/booking/summary.d.ts +44 -0
- package/build/build-esm/src/shared/booking/travelers-form.d.ts +79 -0
- package/build/build-esm/src/shared/components/flyin/accommodation-flyin.d.ts +7 -0
- package/build/build-esm/src/shared/components/flyin/flights-flyin.d.ts +7 -0
- package/build/build-esm/src/shared/components/flyin/flyin.d.ts +20 -0
- package/build/build-esm/src/shared/components/flyin/group-tour-flyin.d.ts +8 -0
- package/build/build-esm/src/shared/components/flyin/packaging-flights-flyin.d.ts +9 -0
- package/build/build-esm/src/shared/components/icon.d.ts +11 -0
- package/build/build-esm/src/shared/components/loader.d.ts +6 -0
- package/build/build-esm/src/shared/types.d.ts +16 -0
- package/build/build-esm/src/shared/utils/booking-summary.d.ts +2 -0
- package/build/build-esm/src/shared/utils/class-util.d.ts +1 -0
- package/build/build-esm/src/shared/utils/localization-util.d.ts +51 -0
- package/build/build-esm/src/shared/utils/query-string-util.d.ts +8 -0
- package/build/build-esm/src/shared/utils/tide-api-utils.d.ts +4 -0
- package/build/build-esm/src/shared/utils/use-media-query-util.d.ts +2 -0
- package/package.json +6 -2
- package/styles/abstracts/_mixins.scss +74 -74
- package/styles/abstracts/_variables.scss +57 -57
- package/styles/base/_fonts.scss +2 -2
- package/styles/base/_normalize.scss +227 -227
- package/styles/base/_typography.scss +35 -35
- package/styles/booking-joker-variables.scss +596 -596
- package/styles/booking-product-variables.scss +330 -330
- package/styles/booking-product.scss +438 -438
- package/styles/booking-qsm-variables.scss +501 -501
- package/styles/booking-qsm.scss +52 -52
- package/styles/booking-search-results-variables.scss +728 -728
- package/styles/booking-search-results.scss +53 -53
- package/styles/booking-wizard-variables.scss +603 -603
- package/styles/booking-wizard.scss +61 -61
- package/styles/components/_accordion.scss +67 -67
- package/styles/components/_animations.scss +39 -39
- package/styles/components/_base.scss +107 -107
- package/styles/components/_booking.scss +906 -906
- package/styles/components/_breadcrumb.scss +92 -92
- package/styles/components/_button.scss +238 -238
- package/styles/components/_checkbox.scss +230 -230
- package/styles/components/_contact.scss +255 -255
- package/styles/components/_content.scss +336 -336
- package/styles/components/_cta.scss +238 -238
- package/styles/components/_date-list.scss +41 -41
- package/styles/components/_date-range-picker.scss +223 -223
- package/styles/components/_decrement-increment.scss +35 -35
- package/styles/components/_dropdown.scss +77 -77
- package/styles/components/_error.scss +50 -50
- package/styles/components/_faq.scss +30 -30
- package/styles/components/_flight-option.scss +1432 -1432
- package/styles/components/_flyin.scss +830 -830
- package/styles/components/_footer.scss +135 -135
- package/styles/components/_form.scss +1693 -1693
- package/styles/components/_gallery.scss +317 -317
- package/styles/components/_header.scss +113 -113
- package/styles/components/_image-with-text.scss +206 -206
- package/styles/components/_img-slider.scss +175 -175
- package/styles/components/_info-message.scss +75 -75
- package/styles/components/_input.scss +35 -35
- package/styles/components/_list.scss +185 -185
- package/styles/components/_loader.scss +152 -152
- package/styles/components/_login.scss +140 -140
- package/styles/components/_map-view.scss +1100 -0
- package/styles/components/_mixins.scss +579 -579
- package/styles/components/_navbar.scss +765 -765
- package/styles/components/_passenger-picker.scss +306 -306
- package/styles/components/_phone-input.scss +8 -8
- package/styles/components/_placeholders.scss +165 -165
- package/styles/components/_pricing-summary.scss +163 -163
- package/styles/components/_qsm.scss +17 -17
- package/styles/components/_radiobutton.scss +170 -170
- package/styles/components/_search.scss +2089 -2089
- package/styles/components/_select-wrapper.scss +81 -81
- package/styles/components/_slider.scss +128 -128
- package/styles/components/_spinner.scss +29 -29
- package/styles/components/_step-indicators.scss +187 -187
- package/styles/components/_table.scss +81 -81
- package/styles/components/_tide-form.scss +541 -0
- package/styles/components/_tree.scss +648 -648
- package/styles/components/_typeahead.scss +275 -275
- package/styles/components/_variables.scss +89 -89
- package/styles/content-blocks-variables.scss +543 -507
- package/styles/content-blocks.scss +66 -65
- package/styles/font.scss +2 -2
- package/styles/qsm/_calendar.scss +274 -274
- package/styles/qsm/_qsm.scss +1097 -1097
- package/styles/search.scss +1200 -1200
- package/styles/tide-form-variables.scss +275 -0
- package/styles/tide-form.scss +56 -0
- package/.claude/settings.local.json +0 -11
- package/.husky/pre-commit +0 -22
- package/.nvmrc +0 -1
- package/.prettierignore +0 -32
- package/.prettierrc +0 -9
- package/.vs/ProjectSettings.json +0 -3
- package/.vs/VSWorkspaceState.json +0 -5
- package/.vs/slnx.sqlite +0 -0
- package/.vs/tide-booking-component/FileContentIndex/5099fed1-8dd7-4fc6-b744-64dad71a8a83.vsidx +0 -0
- package/.vs/tide-booking-component/FileContentIndex/d4b119f1-fe2e-4d31-b8af-b66c5a71cfeb.vsidx +0 -0
- package/.vs/tide-booking-component/FileContentIndex/f9097dbd-6c75-40d4-82b3-c6dd4aa48f0c.vsidx +0 -0
- package/.vs/tide-booking-component/config/applicationhost.config +0 -1021
- package/.vs/tide-booking-component/v17/.wsuo +0 -0
- package/MEMORY.md +0 -97
- package/NEXTSTEPS.md +0 -94
- package/rollup.config.js +0 -16
- package/src/booking-product/components/age-select.tsx +0 -35
- package/src/booking-product/components/amount-input.tsx +0 -51
- package/src/booking-product/components/date-range-picker/calendar-day.tsx +0 -46
- package/src/booking-product/components/date-range-picker/calendar.tsx +0 -155
- package/src/booking-product/components/date-range-picker/index.tsx +0 -185
- package/src/booking-product/components/dates.tsx +0 -153
- package/src/booking-product/components/footer.tsx +0 -54
- package/src/booking-product/components/header.tsx +0 -58
- package/src/booking-product/components/list-view.tsx +0 -54
- package/src/booking-product/components/product.tsx +0 -447
- package/src/booking-product/components/rating.tsx +0 -21
- package/src/booking-product/components/rooms.tsx +0 -192
- package/src/booking-product/constants.ts +0 -1
- package/src/booking-product/index.tsx +0 -21
- package/src/booking-product/settings-context.ts +0 -16
- package/src/booking-product/types.ts +0 -68
- package/src/booking-product/utils/api.ts +0 -26
- package/src/booking-product/utils/price.ts +0 -28
- package/src/booking-wizard/api-settings-slice.ts +0 -24
- package/src/booking-wizard/components/labeled-input.tsx +0 -56
- package/src/booking-wizard/components/labeled-select.tsx +0 -54
- package/src/booking-wizard/components/message.tsx +0 -21
- package/src/booking-wizard/components/multi-range-filter.tsx +0 -99
- package/src/booking-wizard/components/phone-input.tsx +0 -146
- package/src/booking-wizard/components/print-offer-button.tsx +0 -53
- package/src/booking-wizard/components/step-indicator.tsx +0 -36
- package/src/booking-wizard/components/step-route.tsx +0 -51
- package/src/booking-wizard/declarations.d.ts +0 -4
- package/src/booking-wizard/features/booking/api.ts +0 -44
- package/src/booking-wizard/features/booking/booking-self-contained.tsx +0 -364
- package/src/booking-wizard/features/booking/booking-slice.ts +0 -634
- package/src/booking-wizard/features/booking/booking.tsx +0 -388
- package/src/booking-wizard/features/booking/constants.ts +0 -16
- package/src/booking-wizard/features/booking/selectors.ts +0 -411
- package/src/booking-wizard/features/confirmation/confirmation.tsx +0 -46
- package/src/booking-wizard/features/error/error.tsx +0 -71
- package/src/booking-wizard/features/flight-options/flight-filter.tsx +0 -371
- package/src/booking-wizard/features/flight-options/flight-option-flight.tsx +0 -354
- package/src/booking-wizard/features/flight-options/flight-option-modal.tsx +0 -211
- package/src/booking-wizard/features/flight-options/flight-option.tsx +0 -57
- package/src/booking-wizard/features/flight-options/flight-utils.ts +0 -423
- package/src/booking-wizard/features/flight-options/index.tsx +0 -170
- package/src/booking-wizard/features/price-details/price-details-api.ts +0 -20
- package/src/booking-wizard/features/price-details/price-details-slice.ts +0 -79
- package/src/booking-wizard/features/price-details/selectors.ts +0 -118
- package/src/booking-wizard/features/price-details/util.ts +0 -115
- package/src/booking-wizard/features/product-options/no-options.tsx +0 -18
- package/src/booking-wizard/features/product-options/none-option.tsx +0 -73
- package/src/booking-wizard/features/product-options/option-booking-airline-group.tsx +0 -53
- package/src/booking-wizard/features/product-options/option-booking-group.tsx +0 -152
- package/src/booking-wizard/features/product-options/option-item.tsx +0 -236
- package/src/booking-wizard/features/product-options/option-pax-card.tsx +0 -159
- package/src/booking-wizard/features/product-options/option-pax-group.tsx +0 -122
- package/src/booking-wizard/features/product-options/option-room.tsx +0 -226
- package/src/booking-wizard/features/product-options/option-unit-group.tsx +0 -138
- package/src/booking-wizard/features/product-options/option-units-card.tsx +0 -148
- package/src/booking-wizard/features/product-options/options-form.tsx +0 -382
- package/src/booking-wizard/features/room-options/index.tsx +0 -132
- package/src/booking-wizard/features/room-options/room-utils.ts +0 -154
- package/src/booking-wizard/features/room-options/room.tsx +0 -123
- package/src/booking-wizard/features/room-options/traveler-rooms.tsx +0 -64
- package/src/booking-wizard/features/sidebar/index.tsx +0 -89
- package/src/booking-wizard/features/sidebar/sidebar-flight.tsx +0 -66
- package/src/booking-wizard/features/sidebar/sidebar-util.ts +0 -143
- package/src/booking-wizard/features/sidebar/sidebar.tsx +0 -349
- package/src/booking-wizard/features/summary/summary-booking-option-pax.tsx +0 -23
- package/src/booking-wizard/features/summary/summary-booking-option-unit.tsx +0 -23
- package/src/booking-wizard/features/summary/summary-flight.tsx +0 -36
- package/src/booking-wizard/features/summary/summary-per-booking-option-group.tsx +0 -60
- package/src/booking-wizard/features/summary/summary-per-pax-option-group.tsx +0 -56
- package/src/booking-wizard/features/summary/summary-per-unit-option-group.tsx +0 -58
- package/src/booking-wizard/features/summary/summary-slice.ts +0 -27
- package/src/booking-wizard/features/summary/summary.tsx +0 -578
- package/src/booking-wizard/features/travelers-form/controls/gender-control.tsx +0 -60
- package/src/booking-wizard/features/travelers-form/travelers-form-slice.ts +0 -157
- package/src/booking-wizard/features/travelers-form/travelers-form-util.ts +0 -10
- package/src/booking-wizard/features/travelers-form/travelers-form.tsx +0 -181
- package/src/booking-wizard/features/travelers-form/type-ahead-input.tsx +0 -85
- package/src/booking-wizard/features/travelers-form/validate-form.ts +0 -178
- package/src/booking-wizard/index.tsx +0 -27
- package/src/booking-wizard/settings-context.ts +0 -64
- package/src/booking-wizard/store.ts +0 -26
- package/src/booking-wizard/types.ts +0 -350
- package/src/booking-wizard/use-offer-printer.ts +0 -108
- package/src/content/components/LanguageSwitcher.tsx +0 -158
- package/src/content/components/accordion.tsx +0 -30
- package/src/content/components/breadcrumb.tsx +0 -67
- package/src/content/components/contact.tsx +0 -210
- package/src/content/components/faq.tsx +0 -42
- package/src/content/components/gallery.tsx +0 -153
- package/src/content/components/image-with-text.tsx +0 -119
- package/src/content/components/login.tsx +0 -161
- package/src/content/components/personal-contact-form.tsx +0 -809
- package/src/content/components/slider.tsx +0 -237
- package/src/content/error/error.tsx +0 -27
- package/src/content/featured-trips/featured-trip-card.tsx +0 -48
- package/src/content/featured-trips/index.tsx +0 -19
- package/src/content/featured-trips/types.ts +0 -13
- package/src/content/features/content-page/content-page-self-contained.tsx +0 -895
- package/src/content/footer/index.tsx +0 -159
- package/src/content/footer/types.ts +0 -36
- package/src/content/header/index.tsx +0 -43
- package/src/content/header/types.ts +0 -26
- package/src/content/image-card-grid/index.tsx +0 -34
- package/src/content/image-card-grid/types.ts +0 -13
- package/src/content/image-with-text-section/card.tsx +0 -58
- package/src/content/image-with-text-section/index.tsx +0 -22
- package/src/content/image-with-text-section/types.ts +0 -20
- package/src/content/login/confirm-component.tsx +0 -149
- package/src/content/login/index.tsx +0 -70
- package/src/content/login/login-component.tsx +0 -159
- package/src/content/login/login-services.ts +0 -109
- package/src/content/login/reset-password-component.tsx +0 -191
- package/src/content/login/types.ts +0 -29
- package/src/content/navbar/index.tsx +0 -354
- package/src/content/navbar/placeholderData.tsx +0 -173
- package/src/content/navbar/types.ts +0 -43
- package/src/qsm/components/QSMContainer/qsm-container.tsx +0 -671
- package/src/qsm/components/date-picker/index.tsx +0 -152
- package/src/qsm/components/date-range-picker/calendar-day.tsx +0 -49
- package/src/qsm/components/date-range-picker/calendar.tsx +0 -211
- package/src/qsm/components/date-range-picker/index.tsx +0 -404
- package/src/qsm/components/double-search-input-group/index.tsx +0 -78
- package/src/qsm/components/item-picker/index.tsx +0 -65
- package/src/qsm/components/mobile-filter-modal/index.tsx +0 -321
- package/src/qsm/components/search-input/index.tsx +0 -91
- package/src/qsm/components/search-input-group/index.tsx +0 -209
- package/src/qsm/components/travel-class-picker/index.tsx +0 -28
- package/src/qsm/components/travel-input/index.tsx +0 -241
- package/src/qsm/components/travel-input-group/index.tsx +0 -114
- package/src/qsm/components/travel-nationality-picker/index.tsx +0 -28
- package/src/qsm/components/travel-type-picker/index.tsx +0 -28
- package/src/qsm/index.tsx +0 -26
- package/src/qsm/qsm-configuration-context.ts +0 -31
- package/src/qsm/store/qsm-slice.ts +0 -282
- package/src/qsm/store/qsm-store.ts +0 -13
- package/src/qsm/types.ts +0 -110
- package/src/search-results/components/book-packaging-entry/index.tsx +0 -266
- package/src/search-results/components/book-packaging-entry/wl-sidebar.tsx +0 -173
- package/src/search-results/components/excursions/day-by-day-excursions.tsx +0 -168
- package/src/search-results/components/excursions/excursion-details.tsx +0 -340
- package/src/search-results/components/excursions/excursion-results.tsx +0 -186
- package/src/search-results/components/filters/filters.tsx +0 -229
- package/src/search-results/components/filters/flight-filters.tsx +0 -671
- package/src/search-results/components/flight/flight-banner.tsx +0 -35
- package/src/search-results/components/flight/flight-card.tsx +0 -38
- package/src/search-results/components/flight/flight-leg.tsx +0 -61
- package/src/search-results/components/flight/flight-path.tsx +0 -23
- package/src/search-results/components/flight/flight-results.tsx +0 -208
- package/src/search-results/components/flight/flight-search-context/index.tsx +0 -628
- package/src/search-results/components/flight/flight-selection/independent-flight-option.tsx +0 -168
- package/src/search-results/components/flight/flight-selection/independent-flight-selection.tsx +0 -184
- package/src/search-results/components/flight/flight-selection/index.tsx +0 -19
- package/src/search-results/components/flight/flight-selection/paired-flight-option.tsx +0 -255
- package/src/search-results/components/flight/flight-selection/paired-flight-selection.tsx +0 -38
- package/src/search-results/components/group-tour/group-tour-card.tsx +0 -105
- package/src/search-results/components/group-tour/group-tour-results.tsx +0 -62
- package/src/search-results/components/hotel/hotel-accommodation-results.tsx +0 -244
- package/src/search-results/components/hotel/hotel-card.tsx +0 -110
- package/src/search-results/components/item-picker/index.tsx +0 -81
- package/src/search-results/components/itinerary/full-itinerary.tsx +0 -374
- package/src/search-results/components/itinerary/index.tsx +0 -437
- package/src/search-results/components/multi-range-filter.tsx +0 -104
- package/src/search-results/components/round-trip/round-trip-results.tsx +0 -199
- package/src/search-results/components/search-results-container/flight-search-results.tsx +0 -137
- package/src/search-results/components/search-results-container/search-results-container.tsx +0 -1764
- package/src/search-results/components/spinner/spinner.tsx +0 -24
- package/src/search-results/components/tab-views/index.tsx +0 -53
- package/src/search-results/features/flights/flight-search-results-self-contained.tsx +0 -294
- package/src/search-results/features/hotels/hotel-flight-search-results-self-contained.tsx +0 -143
- package/src/search-results/features/hotels/hotel-search-results-self-contained.tsx +0 -220
- package/src/search-results/features/roundtrips/roundtrip-search-results-self-contained.tsx +0 -65
- package/src/search-results/index.tsx +0 -25
- package/src/search-results/store/search-results-selectors.ts +0 -84
- package/src/search-results/store/search-results-slice.ts +0 -351
- package/src/search-results/store/search-results-store.ts +0 -13
- package/src/search-results/types.ts +0 -266
- package/src/search-results/utils/flight-utils.ts +0 -98
- package/src/search-results/utils/packaging-utils.ts +0 -75
- package/src/search-results/utils/query-utils.ts +0 -153
- package/src/search-results/utils/search-results-utils.ts +0 -538
- package/src/shared/booking/booking-panel.tsx +0 -25
- package/src/shared/booking/product-card.tsx +0 -23
- package/src/shared/booking/shared-confirmation.tsx +0 -105
- package/src/shared/booking/shared-sidebar.tsx +0 -432
- package/src/shared/booking/step-indicators.tsx +0 -30
- package/src/shared/booking/summary.tsx +0 -382
- package/src/shared/booking/travelers-form.tsx +0 -874
- package/src/shared/components/flyin/accommodation-flyin.tsx +0 -424
- package/src/shared/components/flyin/flights-flyin.tsx +0 -508
- package/src/shared/components/flyin/flyin.tsx +0 -241
- package/src/shared/components/flyin/group-tour-flyin.tsx +0 -294
- package/src/shared/components/flyin/packaging-flights-flyin.tsx +0 -171
- package/src/shared/components/icon.tsx +0 -1114
- package/src/shared/components/loader.tsx +0 -16
- package/src/shared/tide-sprites.svg +0 -117
- package/src/shared/translations/ar-SA.json +0 -398
- package/src/shared/translations/da-DK.json +0 -398
- package/src/shared/translations/de-DE.json +0 -398
- package/src/shared/translations/en-GB.json +0 -402
- package/src/shared/translations/es-ES.json +0 -398
- package/src/shared/translations/fr-BE.json +0 -402
- package/src/shared/translations/fr-FR.json +0 -398
- package/src/shared/translations/is-IS.json +0 -398
- package/src/shared/translations/it-IT.json +0 -398
- package/src/shared/translations/ja-JP.json +0 -398
- package/src/shared/translations/nl-BE.json +0 -402
- package/src/shared/translations/nl-NL.json +0 -398
- package/src/shared/translations/no-NO.json +0 -398
- package/src/shared/translations/pl-PL.json +0 -398
- package/src/shared/translations/pt-PT.json +0 -398
- package/src/shared/translations/sv-SE.json +0 -398
- package/src/shared/types.ts +0 -31
- package/src/shared/utils/booking-summary.tsx +0 -57
- package/src/shared/utils/class-util.ts +0 -7
- package/src/shared/utils/localization-util.ts +0 -316
- package/src/shared/utils/query-string-util.ts +0 -91
- package/src/shared/utils/tide-api-utils.ts +0 -42
- package/src/shared/utils/use-media-query-util.ts +0 -19
- package/tsconfig.json +0 -24
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
import { createSlice, PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
|
|
3
|
-
import { MobileFilterType, Room, TravelerType, TypeaheadOption } from '../types';
|
|
4
|
-
import { ReactNode } from 'react';
|
|
5
|
-
import { PickerItem } from '../../shared/types';
|
|
6
|
-
import { PortalQsmType } from '@qite/tide-client';
|
|
7
|
-
|
|
8
|
-
export interface QSMState {
|
|
9
|
-
qsmType?: PortalQsmType;
|
|
10
|
-
selectedOrigin?: string;
|
|
11
|
-
selectedDestination?: string;
|
|
12
|
-
selectedAirport?: string;
|
|
13
|
-
fromDate?: string;
|
|
14
|
-
toDate?: string;
|
|
15
|
-
travelers: any[];
|
|
16
|
-
mobileFilterType: MobileFilterType;
|
|
17
|
-
searchResults: TypeaheadOption[];
|
|
18
|
-
activeSearchField: string | null;
|
|
19
|
-
activeSearchFieldProps: {
|
|
20
|
-
fieldKey: string;
|
|
21
|
-
label: string;
|
|
22
|
-
placeholder: string;
|
|
23
|
-
value: string;
|
|
24
|
-
options: TypeaheadOption[];
|
|
25
|
-
} | null;
|
|
26
|
-
mobileDatePickerMode: 'range' | 'single';
|
|
27
|
-
minDate?: string;
|
|
28
|
-
maxDate?: string;
|
|
29
|
-
dateFlexibility?: {
|
|
30
|
-
name: string;
|
|
31
|
-
before: number;
|
|
32
|
-
after: number;
|
|
33
|
-
}[];
|
|
34
|
-
datesIcon?: ReactNode;
|
|
35
|
-
selectedFlexRange?: { before: number; after: number };
|
|
36
|
-
travelTypes: PickerItem[];
|
|
37
|
-
tripType: 'oneway' | 'roundtrip' | 'openjaw';
|
|
38
|
-
selectedTravelType?: string;
|
|
39
|
-
travelClasses: PickerItem[];
|
|
40
|
-
selectedTravelClass?: string;
|
|
41
|
-
selectedNationality?: string;
|
|
42
|
-
defaultTravelers: number;
|
|
43
|
-
maxTravelers: number;
|
|
44
|
-
maxChildAge: number;
|
|
45
|
-
maxInfantAge: number;
|
|
46
|
-
adults: number;
|
|
47
|
-
kids: number;
|
|
48
|
-
babies: number;
|
|
49
|
-
rooms: Room[];
|
|
50
|
-
[key: string]: any;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
const initialState: QSMState = {
|
|
54
|
-
qsmType: PortalQsmType.AccommodationAndFlight,
|
|
55
|
-
selectedOrigin: undefined,
|
|
56
|
-
selectedDestination: undefined,
|
|
57
|
-
selectedAirport: undefined,
|
|
58
|
-
fromDate: undefined,
|
|
59
|
-
toDate: undefined,
|
|
60
|
-
travelers: [
|
|
61
|
-
{
|
|
62
|
-
adults: 2,
|
|
63
|
-
children: 0,
|
|
64
|
-
childrensAges: []
|
|
65
|
-
}
|
|
66
|
-
],
|
|
67
|
-
mobileFilterType: null,
|
|
68
|
-
activeSearchField: null,
|
|
69
|
-
activeSearchFieldProps: null,
|
|
70
|
-
searchResults: [],
|
|
71
|
-
mobileDatePickerMode: 'range',
|
|
72
|
-
minDate: undefined,
|
|
73
|
-
maxDate: undefined,
|
|
74
|
-
dateFlexibility: [],
|
|
75
|
-
datesIcon: undefined,
|
|
76
|
-
selectedFlexRange: undefined,
|
|
77
|
-
travelTypes: [],
|
|
78
|
-
selectedTravelType: undefined,
|
|
79
|
-
travelClasses: [],
|
|
80
|
-
tripType: 'roundtrip',
|
|
81
|
-
selectedTravelClass: undefined,
|
|
82
|
-
selectedNationality: undefined,
|
|
83
|
-
defaultTravelers: 2,
|
|
84
|
-
maxTravelers: 9,
|
|
85
|
-
maxChildAge: 12,
|
|
86
|
-
maxInfantAge: 2,
|
|
87
|
-
adults: 2,
|
|
88
|
-
kids: 0,
|
|
89
|
-
babies: 0,
|
|
90
|
-
rooms: [{ adults: 2, kids: 0, babies: 0 }]
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
const qsmSlice = createSlice({
|
|
94
|
-
name: 'qsm',
|
|
95
|
-
initialState,
|
|
96
|
-
reducers: {
|
|
97
|
-
setSelectedQsmType: (state, action: PayloadAction<PortalQsmType>) => {
|
|
98
|
-
state.qsmType = action.payload;
|
|
99
|
-
},
|
|
100
|
-
setOrigin: (state, action: PayloadAction<string>) => {
|
|
101
|
-
state.selectedOrigin = action.payload;
|
|
102
|
-
},
|
|
103
|
-
setDestination: (state, action: PayloadAction<string>) => {
|
|
104
|
-
state.selectedDestination = action.payload;
|
|
105
|
-
},
|
|
106
|
-
setAirport: (state, action: PayloadAction<string>) => {
|
|
107
|
-
state.selectedAirport = action.payload;
|
|
108
|
-
},
|
|
109
|
-
setFromDate: (state, action: PayloadAction<string | undefined>) => {
|
|
110
|
-
state.fromDate = action.payload;
|
|
111
|
-
},
|
|
112
|
-
setFieldValue: (
|
|
113
|
-
state,
|
|
114
|
-
action: PayloadAction<{
|
|
115
|
-
fieldKey: string;
|
|
116
|
-
value: any;
|
|
117
|
-
}>
|
|
118
|
-
) => {
|
|
119
|
-
const { fieldKey, value } = action.payload;
|
|
120
|
-
(state as any)[fieldKey] = value;
|
|
121
|
-
},
|
|
122
|
-
setToDate: (state, action: PayloadAction<string | undefined>) => {
|
|
123
|
-
state.toDate = action.payload;
|
|
124
|
-
},
|
|
125
|
-
setTravelers: (state, action: PayloadAction<any[]>) => {
|
|
126
|
-
state.travelers = action.payload;
|
|
127
|
-
},
|
|
128
|
-
setMobileFilterType: (state, action: PayloadAction<MobileFilterType>) => {
|
|
129
|
-
state.mobileFilterType = action.payload;
|
|
130
|
-
},
|
|
131
|
-
closeMobileFilter: (state) => {
|
|
132
|
-
state.mobileFilterType = null;
|
|
133
|
-
},
|
|
134
|
-
setActiveSearchField: (state, action: PayloadAction<string | null>) => {
|
|
135
|
-
state.activeSearchField = action.payload;
|
|
136
|
-
},
|
|
137
|
-
setActiveSearchFieldProps: (
|
|
138
|
-
state,
|
|
139
|
-
action: PayloadAction<{
|
|
140
|
-
fieldKey: string;
|
|
141
|
-
label: string;
|
|
142
|
-
placeholder: string;
|
|
143
|
-
value: string;
|
|
144
|
-
options: TypeaheadOption[];
|
|
145
|
-
}>
|
|
146
|
-
) => {
|
|
147
|
-
state.activeSearchFieldProps = action.payload;
|
|
148
|
-
},
|
|
149
|
-
setSearchResults: (state, action: PayloadAction<TypeaheadOption[]>) => {
|
|
150
|
-
state.searchResults = action.payload;
|
|
151
|
-
},
|
|
152
|
-
setMobileDatePickerMode: (state, action: PayloadAction<'range' | 'single'>) => {
|
|
153
|
-
state.mobileDatePickerMode = action.payload;
|
|
154
|
-
},
|
|
155
|
-
setMinDate: (state, action: PayloadAction<string | undefined>) => {
|
|
156
|
-
state.minDate = action.payload;
|
|
157
|
-
},
|
|
158
|
-
setMaxDate: (state, action: PayloadAction<string | undefined>) => {
|
|
159
|
-
state.maxDate = action.payload;
|
|
160
|
-
},
|
|
161
|
-
setDatesIcon: (state, action: PayloadAction<ReactNode | undefined>) => {
|
|
162
|
-
state.datesIcon = action.payload;
|
|
163
|
-
},
|
|
164
|
-
setDateFlexibility: (state, action: PayloadAction<QSMState['dateFlexibility']>) => {
|
|
165
|
-
state.dateFlexibility = action.payload;
|
|
166
|
-
},
|
|
167
|
-
setSelectedFlexRange: (state, action: PayloadAction<{ before: number; after: number } | undefined>) => {
|
|
168
|
-
state.selectedFlexRange = action.payload;
|
|
169
|
-
},
|
|
170
|
-
setTravelTypes: (state, action: PayloadAction<PickerItem[]>) => {
|
|
171
|
-
state.travelTypes = action.payload;
|
|
172
|
-
},
|
|
173
|
-
setTripType: (state, action: PayloadAction<'oneway' | 'roundtrip' | 'openjaw'>) => {
|
|
174
|
-
state.tripType = action.payload;
|
|
175
|
-
},
|
|
176
|
-
setSelectedTravelType: (state, action) => {
|
|
177
|
-
state.selectedTravelType = action.payload;
|
|
178
|
-
},
|
|
179
|
-
setTravelClasses: (state, action: PayloadAction<PickerItem[]>) => {
|
|
180
|
-
state.travelClasses = action.payload;
|
|
181
|
-
},
|
|
182
|
-
setSelectedTravelClass: (state, action) => {
|
|
183
|
-
state.selectedTravelClass = action.payload;
|
|
184
|
-
},
|
|
185
|
-
setSelectedNationality: (state, action) => {
|
|
186
|
-
state.selectedNationality = action.payload;
|
|
187
|
-
},
|
|
188
|
-
setDefaultTravelers: (state, action: PayloadAction<number>) => {
|
|
189
|
-
state.defaultTravelers = action.payload;
|
|
190
|
-
},
|
|
191
|
-
setMaxTravelers: (state, action: PayloadAction<number>) => {
|
|
192
|
-
state.maxTravelers = action.payload;
|
|
193
|
-
},
|
|
194
|
-
setMaxChildAge: (state, action: PayloadAction<number>) => {
|
|
195
|
-
state.maxChildAge = action.payload;
|
|
196
|
-
},
|
|
197
|
-
setMaxInfantAge: (state, action: PayloadAction<number>) => {
|
|
198
|
-
state.maxInfantAge = action.payload;
|
|
199
|
-
},
|
|
200
|
-
setAdults: (state, action) => {
|
|
201
|
-
state.adults = action.payload;
|
|
202
|
-
},
|
|
203
|
-
setKids: (state, action) => {
|
|
204
|
-
state.kids = action.payload;
|
|
205
|
-
},
|
|
206
|
-
setBabies: (state, action) => {
|
|
207
|
-
state.babies = action.payload;
|
|
208
|
-
},
|
|
209
|
-
setRooms: (state, action) => {
|
|
210
|
-
state.rooms = action.payload;
|
|
211
|
-
},
|
|
212
|
-
addRoom: (state) => {
|
|
213
|
-
if (state.rooms.length < 4) {
|
|
214
|
-
state.rooms.push({ adults: 2, kids: 0, babies: 0 });
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
removeRoom: (state, action) => {
|
|
218
|
-
const index = action.payload;
|
|
219
|
-
state.rooms.splice(index, 1);
|
|
220
|
-
},
|
|
221
|
-
updateRoomTraveler: (
|
|
222
|
-
state,
|
|
223
|
-
action: PayloadAction<{
|
|
224
|
-
roomIndex: number;
|
|
225
|
-
type: TravelerType;
|
|
226
|
-
value: number;
|
|
227
|
-
}>
|
|
228
|
-
) => {
|
|
229
|
-
const { roomIndex, type, value } = action.payload;
|
|
230
|
-
state.rooms[roomIndex][type] = value;
|
|
231
|
-
},
|
|
232
|
-
hydrateQsmState: (state, action: PayloadAction<Partial<QSMState>>) => {
|
|
233
|
-
Object.assign(state, action.payload);
|
|
234
|
-
|
|
235
|
-
state.searchResults = [];
|
|
236
|
-
state.activeSearchField = null;
|
|
237
|
-
state.activeSearchFieldProps = null;
|
|
238
|
-
state.mobileFilterType = null;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
});
|
|
242
|
-
|
|
243
|
-
export const {
|
|
244
|
-
setSelectedQsmType,
|
|
245
|
-
setOrigin,
|
|
246
|
-
setDestination,
|
|
247
|
-
setAirport,
|
|
248
|
-
setFromDate,
|
|
249
|
-
setToDate,
|
|
250
|
-
setTravelers,
|
|
251
|
-
setMobileFilterType,
|
|
252
|
-
closeMobileFilter,
|
|
253
|
-
setActiveSearchField,
|
|
254
|
-
setActiveSearchFieldProps,
|
|
255
|
-
setSearchResults,
|
|
256
|
-
setMobileDatePickerMode,
|
|
257
|
-
setMinDate,
|
|
258
|
-
setMaxDate,
|
|
259
|
-
setDateFlexibility,
|
|
260
|
-
setSelectedFlexRange,
|
|
261
|
-
setTripType,
|
|
262
|
-
setTravelTypes,
|
|
263
|
-
setSelectedTravelType,
|
|
264
|
-
setTravelClasses,
|
|
265
|
-
setSelectedTravelClass,
|
|
266
|
-
setSelectedNationality,
|
|
267
|
-
setDefaultTravelers,
|
|
268
|
-
setMaxTravelers,
|
|
269
|
-
setMaxChildAge,
|
|
270
|
-
setAdults,
|
|
271
|
-
setKids,
|
|
272
|
-
setBabies,
|
|
273
|
-
setRooms,
|
|
274
|
-
addRoom,
|
|
275
|
-
removeRoom,
|
|
276
|
-
updateRoomTraveler,
|
|
277
|
-
setMaxInfantAge,
|
|
278
|
-
setDatesIcon,
|
|
279
|
-
setFieldValue,
|
|
280
|
-
hydrateQsmState
|
|
281
|
-
} = qsmSlice.actions;
|
|
282
|
-
export default qsmSlice.reducer;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { configureStore } from '@reduxjs/toolkit';
|
|
2
|
-
import qsmReducer from './qsm-slice';
|
|
3
|
-
|
|
4
|
-
export const createQSMStore = () =>
|
|
5
|
-
configureStore({
|
|
6
|
-
reducer: {
|
|
7
|
-
qsm: qsmReducer
|
|
8
|
-
}
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
export type QSMStore = ReturnType<typeof createQSMStore>;
|
|
12
|
-
export type QSMRootState = ReturnType<QSMStore['getState']>;
|
|
13
|
-
export type QSMDispatch = QSMStore['dispatch'];
|
package/src/qsm/types.ts
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
// import { TravelClass, TravelType } from '../shared/types';
|
|
3
|
-
import { WebsiteConfigurationSearchConfiguration, PortalQsmType } from '@qite/tide-client';
|
|
4
|
-
import { PickerItem } from '../shared/types';
|
|
5
|
-
|
|
6
|
-
export interface QSMConfiguration {
|
|
7
|
-
type?: PortalQsmType;
|
|
8
|
-
|
|
9
|
-
searchConfigurations: WebsiteConfigurationSearchConfiguration[];
|
|
10
|
-
|
|
11
|
-
askRooms?: boolean; // hotel || roundTrip
|
|
12
|
-
askTravelType?: boolean; // hotel || roundTrip
|
|
13
|
-
allowOneWay?: boolean; // flight
|
|
14
|
-
allowRoundtrip?: boolean; // flight
|
|
15
|
-
allowOpenJaw?: boolean; // flight
|
|
16
|
-
allowMultiCity?: boolean; // flight
|
|
17
|
-
askTravelClass?: boolean; // flight
|
|
18
|
-
additionalFilters?: AdditionalFilters; // flight
|
|
19
|
-
askTravelers: boolean;
|
|
20
|
-
askNationality?: boolean;
|
|
21
|
-
|
|
22
|
-
// Origins and destinations
|
|
23
|
-
departureAirport?: BaseFieldConfig;
|
|
24
|
-
destinationAirport?: BaseFieldConfig;
|
|
25
|
-
returnAirport?: BaseFieldConfig;
|
|
26
|
-
|
|
27
|
-
destination?: BaseFieldConfig;
|
|
28
|
-
|
|
29
|
-
// Travel types
|
|
30
|
-
travelTypes?: PickerItem[];
|
|
31
|
-
travelTypeIcon?: ReactNode;
|
|
32
|
-
|
|
33
|
-
// Travel classes
|
|
34
|
-
travelClasses?: PickerItem[];
|
|
35
|
-
travelClassIcon?: ReactNode;
|
|
36
|
-
|
|
37
|
-
// Date flexibility
|
|
38
|
-
dateFlexibility?: DateFlexibility[];
|
|
39
|
-
minDate?: Date;
|
|
40
|
-
maxDate?: Date;
|
|
41
|
-
showReturnDate?: boolean;
|
|
42
|
-
datesIcon?: ReactNode;
|
|
43
|
-
|
|
44
|
-
// Travelers
|
|
45
|
-
defaultTravelers?: number;
|
|
46
|
-
maxTravelers?: number;
|
|
47
|
-
maxChildAge?: number;
|
|
48
|
-
maxInfantAge?: number;
|
|
49
|
-
|
|
50
|
-
onSubmit: (data: any) => void;
|
|
51
|
-
submitIcon: ReactNode;
|
|
52
|
-
|
|
53
|
-
nationalities: PickerItem[];
|
|
54
|
-
languageCode?: string;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export interface BaseFieldConfig {
|
|
58
|
-
fieldKey: string;
|
|
59
|
-
label: string;
|
|
60
|
-
placeholder: string;
|
|
61
|
-
icon: ReactNode;
|
|
62
|
-
options: TypeaheadOption[];
|
|
63
|
-
autoComplete?: boolean;
|
|
64
|
-
onChange?: (data: any) => void;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface TypeaheadOption {
|
|
68
|
-
key: string;
|
|
69
|
-
value: string;
|
|
70
|
-
iataCode?: string;
|
|
71
|
-
country?: string;
|
|
72
|
-
type: OptionType;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export type OptionType = 'country' | 'region' | 'oord' | 'location' | 'airport' | 'hotel' | 'other';
|
|
76
|
-
|
|
77
|
-
export interface SingleFieldConfig extends BaseFieldConfig {
|
|
78
|
-
type: 'single';
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export interface DoubleFieldConfig {
|
|
82
|
-
type: 'double';
|
|
83
|
-
fieldKey: string;
|
|
84
|
-
showReverse?: boolean;
|
|
85
|
-
disableReturnField?: boolean;
|
|
86
|
-
fields: BaseFieldConfig[];
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export type FieldConfig = SingleFieldConfig | DoubleFieldConfig;
|
|
90
|
-
|
|
91
|
-
export interface AdditionalFilters {
|
|
92
|
-
showDirectFlights: boolean;
|
|
93
|
-
includeLuggage: boolean;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export interface DateFlexibility {
|
|
97
|
-
name: string;
|
|
98
|
-
before: number;
|
|
99
|
-
after: number;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export type MobileFilterType = 'search' | 'date' | 'traveler' | null;
|
|
103
|
-
|
|
104
|
-
export type TravelerType = 'adults' | 'kids' | 'babies';
|
|
105
|
-
|
|
106
|
-
export interface Room {
|
|
107
|
-
adults: number;
|
|
108
|
-
kids: number;
|
|
109
|
-
babies: number;
|
|
110
|
-
}
|
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
import React, { useContext, useEffect, useMemo, useState } from 'react';
|
|
2
|
-
import { getTranslations } from '../../../shared/utils/localization-util';
|
|
3
|
-
import { SearchResultsRootState } from '../../store/search-results-store';
|
|
4
|
-
import { useDispatch, useSelector } from 'react-redux';
|
|
5
|
-
import SearchResultsConfigurationContext from '../../search-results-configuration-context';
|
|
6
|
-
import BookingPanel from '../../../shared/booking/booking-panel';
|
|
7
|
-
import StepIndicators from '../../../shared/booking/step-indicators';
|
|
8
|
-
import WLSidebar from './wl-sidebar';
|
|
9
|
-
import { SearchSeed } from '../../types';
|
|
10
|
-
import SharedTravelersForm, {
|
|
11
|
-
applyTravelersFormValuesToEditablePackagingEntry,
|
|
12
|
-
createInitialValuesFromEditablePackagingEntry,
|
|
13
|
-
SharedTravelersSettings
|
|
14
|
-
} from '../../../shared/booking/travelers-form';
|
|
15
|
-
import { useFormik } from 'formik';
|
|
16
|
-
import { TravelersFormValues } from '../../../booking-wizard/types';
|
|
17
|
-
import { setBookingNumber, setCurrentStep, setEditablePackagingEntry } from '../../store/search-results-slice';
|
|
18
|
-
import validateForm from '../../../booking-wizard/features/travelers-form/validate-form';
|
|
19
|
-
import {
|
|
20
|
-
bookPackagingEntry,
|
|
21
|
-
CountryItem,
|
|
22
|
-
getCountries,
|
|
23
|
-
PackagingAccommodationResponse,
|
|
24
|
-
PackagingEntry,
|
|
25
|
-
PackagingRequestBase,
|
|
26
|
-
TideClientConfig
|
|
27
|
-
} from '@qite/tide-client';
|
|
28
|
-
import SharedSummary from '../../../shared/booking/summary';
|
|
29
|
-
import { renderEditablePackagingEntrySummaryOptions } from '../../../shared/utils/booking-summary';
|
|
30
|
-
import SharedConfirmation from '../../../shared/booking/shared-confirmation';
|
|
31
|
-
import Spinner from '../spinner/spinner';
|
|
32
|
-
|
|
33
|
-
interface BookPackagingEntryProps {
|
|
34
|
-
activeSearchSeed: SearchSeed | null;
|
|
35
|
-
isLoading: boolean;
|
|
36
|
-
isConfirmationPage?: boolean;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
const travelerFormFields = [{ type: 'gender' }, { type: 'firstName' }, { type: 'lastName' }, { type: 'birthDate' }];
|
|
40
|
-
|
|
41
|
-
const mainBookerFormFields = [
|
|
42
|
-
{ type: 'street' },
|
|
43
|
-
{ type: 'houseNumber' },
|
|
44
|
-
{ type: 'box' },
|
|
45
|
-
{ type: 'zipCode' },
|
|
46
|
-
{ type: 'place' },
|
|
47
|
-
{ type: 'country' },
|
|
48
|
-
{ type: 'phone' },
|
|
49
|
-
{ type: 'email' }
|
|
50
|
-
];
|
|
51
|
-
|
|
52
|
-
const travellersSettings: SharedTravelersSettings = {
|
|
53
|
-
countries: [
|
|
54
|
-
{ iso2: 'BE', name: 'Belgium', phonePrefix: '+32' },
|
|
55
|
-
{ iso2: 'NL', name: 'Netherlands', phonePrefix: '+31' },
|
|
56
|
-
{ iso2: 'FR', name: 'France', phonePrefix: '+33' }
|
|
57
|
-
],
|
|
58
|
-
formFields: travelerFormFields,
|
|
59
|
-
mainBookerFormFields
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
const BookPackagingEntry: React.FC<BookPackagingEntryProps> = ({ activeSearchSeed, isLoading, isConfirmationPage }) => {
|
|
63
|
-
const context = useContext(SearchResultsConfigurationContext);
|
|
64
|
-
const dispatch = useDispatch();
|
|
65
|
-
|
|
66
|
-
const { editablePackagingEntry, priceDetails, currentStep, bookingNumber, selectedPackagingAccoResultCode, packagingAccoResults } = useSelector(
|
|
67
|
-
(state: SearchResultsRootState) => state.searchResults
|
|
68
|
-
);
|
|
69
|
-
|
|
70
|
-
const [countries, setCountries] = useState<CountryItem[]>([]);
|
|
71
|
-
const [userValidated, setUserValidated] = useState(true);
|
|
72
|
-
const [remarks, setRemarks] = useState('');
|
|
73
|
-
const [isSubmitting, setIsSubmitting] = useState(false);
|
|
74
|
-
const [selectedPackagingAccoResult, setSelectedPackagingAccoResult] = useState<PackagingAccommodationResponse | null>(null);
|
|
75
|
-
|
|
76
|
-
const translations = useMemo(() => getTranslations(context?.languageCode ?? 'en-GB'), [context?.languageCode]);
|
|
77
|
-
|
|
78
|
-
const stepLabels = [translations.STEPS.PERSONAL_DETAILS, translations.STEPS.SUMMARY, translations.STEPS.CONFIRMATION];
|
|
79
|
-
|
|
80
|
-
const config: TideClientConfig | null = useMemo(() => {
|
|
81
|
-
if (!context) return null;
|
|
82
|
-
|
|
83
|
-
return {
|
|
84
|
-
host: context.tideConnection.host,
|
|
85
|
-
apiKey: context.tideConnection.apiKey
|
|
86
|
-
};
|
|
87
|
-
}, [context]);
|
|
88
|
-
|
|
89
|
-
const initialValues = useMemo(() => {
|
|
90
|
-
if (!editablePackagingEntry) {
|
|
91
|
-
return {} as TravelersFormValues;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
return createInitialValuesFromEditablePackagingEntry(editablePackagingEntry);
|
|
95
|
-
}, [editablePackagingEntry?.transactionId]);
|
|
96
|
-
|
|
97
|
-
const formik = useFormik<TravelersFormValues>({
|
|
98
|
-
initialValues,
|
|
99
|
-
enableReinitialize: true,
|
|
100
|
-
validate: (values) => validateForm(values, false, 'b2c', translations, travellersSettings.formFields, travellersSettings.mainBookerFormFields),
|
|
101
|
-
onSubmit: (values) => {
|
|
102
|
-
if (!editablePackagingEntry) return;
|
|
103
|
-
|
|
104
|
-
dispatch(setEditablePackagingEntry(applyTravelersFormValuesToEditablePackagingEntry(editablePackagingEntry, values)));
|
|
105
|
-
|
|
106
|
-
dispatch(setCurrentStep(1));
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
useEffect(() => {
|
|
111
|
-
if (!context || !config) return;
|
|
112
|
-
|
|
113
|
-
const controller = new AbortController();
|
|
114
|
-
|
|
115
|
-
(async () => {
|
|
116
|
-
try {
|
|
117
|
-
const result = await getCountries(config, controller.signal);
|
|
118
|
-
setCountries(result.items);
|
|
119
|
-
} catch {
|
|
120
|
-
// optionally handle error
|
|
121
|
-
}
|
|
122
|
-
})();
|
|
123
|
-
|
|
124
|
-
return () => controller.abort();
|
|
125
|
-
}, [context, config]);
|
|
126
|
-
|
|
127
|
-
useEffect(() => {
|
|
128
|
-
if (isConfirmationPage) {
|
|
129
|
-
dispatch(setCurrentStep(2));
|
|
130
|
-
}
|
|
131
|
-
}, [isConfirmationPage, dispatch]);
|
|
132
|
-
|
|
133
|
-
useEffect(() => {
|
|
134
|
-
const selectedPackagingAccoResult = packagingAccoResults?.find((result) => result.code === selectedPackagingAccoResultCode);
|
|
135
|
-
if (selectedPackagingAccoResult) {
|
|
136
|
-
setSelectedPackagingAccoResult(selectedPackagingAccoResult);
|
|
137
|
-
}
|
|
138
|
-
}, [selectedPackagingAccoResultCode, packagingAccoResults]);
|
|
139
|
-
|
|
140
|
-
if (!context || !editablePackagingEntry || !priceDetails || !config) return <Spinner label={translations.SUMMARY.PROCESS_BOOKING} />;
|
|
141
|
-
|
|
142
|
-
const handleSummarySubmit: React.FormEventHandler<HTMLFormElement> = async (e) => {
|
|
143
|
-
e.preventDefault();
|
|
144
|
-
|
|
145
|
-
setIsSubmitting(true);
|
|
146
|
-
|
|
147
|
-
if (typeof window !== 'undefined') {
|
|
148
|
-
window.scrollTo(0, 0);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
let updatedEditablePackagingEntry: PackagingEntry = {
|
|
152
|
-
...editablePackagingEntry,
|
|
153
|
-
remarks
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
if (context.generatePaymentUrl && typeof window !== 'undefined') {
|
|
157
|
-
const redirectUrl = new URL(window.location.href);
|
|
158
|
-
|
|
159
|
-
redirectUrl.searchParams.set('bookingConfirmation', 'true');
|
|
160
|
-
redirectUrl.searchParams.set('link', '');
|
|
161
|
-
|
|
162
|
-
updatedEditablePackagingEntry = {
|
|
163
|
-
...updatedEditablePackagingEntry,
|
|
164
|
-
redirectUrl: redirectUrl.toString(),
|
|
165
|
-
returnPaymentUrl: true
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
dispatch(setEditablePackagingEntry(updatedEditablePackagingEntry));
|
|
170
|
-
|
|
171
|
-
try {
|
|
172
|
-
const request = {
|
|
173
|
-
language: context.languageCode ?? 'en-GB',
|
|
174
|
-
officeId: context.tideConnection.officeId,
|
|
175
|
-
catalogueId: context.searchConfiguration.defaultCatalogueId ?? 0,
|
|
176
|
-
agentId: context.agentId,
|
|
177
|
-
payload: updatedEditablePackagingEntry
|
|
178
|
-
} as PackagingRequestBase<PackagingEntry>;
|
|
179
|
-
|
|
180
|
-
const bookingResponse = await bookPackagingEntry(config, request);
|
|
181
|
-
|
|
182
|
-
dispatch(setBookingNumber(bookingResponse.number));
|
|
183
|
-
|
|
184
|
-
if (bookingResponse.paymentUrl) {
|
|
185
|
-
window.location.href = bookingResponse.paymentUrl;
|
|
186
|
-
} else {
|
|
187
|
-
dispatch(setCurrentStep(2));
|
|
188
|
-
setIsSubmitting(false);
|
|
189
|
-
}
|
|
190
|
-
} catch (error) {
|
|
191
|
-
dispatch(setCurrentStep(3));
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
return (
|
|
196
|
-
<div className="booking">
|
|
197
|
-
<div className="booking__content">
|
|
198
|
-
<div className="booking__panel">
|
|
199
|
-
<BookingPanel
|
|
200
|
-
currentStep={currentStep}
|
|
201
|
-
stepLabels={stepLabels}
|
|
202
|
-
StepIndicatorsComponent={StepIndicators}
|
|
203
|
-
renderTitle={(step) => (
|
|
204
|
-
<>
|
|
205
|
-
{step + 1}. {stepLabels[step]}
|
|
206
|
-
</>
|
|
207
|
-
)}>
|
|
208
|
-
{isConfirmationPage && isLoading && <Spinner label={translations.SUMMARY.PROCESS_BOOKING} />}
|
|
209
|
-
{currentStep === 0 && (
|
|
210
|
-
<SharedTravelersForm
|
|
211
|
-
formik={formik}
|
|
212
|
-
translations={translations}
|
|
213
|
-
travellersSettings={travellersSettings}
|
|
214
|
-
countries={countries}
|
|
215
|
-
travelersFirstStep={false}
|
|
216
|
-
isUnavailable={false}
|
|
217
|
-
useCompactForm={false}
|
|
218
|
-
showAgentSelection={false}
|
|
219
|
-
/>
|
|
220
|
-
)}
|
|
221
|
-
|
|
222
|
-
{currentStep === 1 && (
|
|
223
|
-
<SharedSummary
|
|
224
|
-
translations={translations}
|
|
225
|
-
travelerFormValues={formik.values}
|
|
226
|
-
isSubmitting={isSubmitting}
|
|
227
|
-
skipPayment={!context.generatePaymentUrl}
|
|
228
|
-
userValidated={userValidated}
|
|
229
|
-
remarks={remarks}
|
|
230
|
-
enableVoucher={false}
|
|
231
|
-
allowOption={false}
|
|
232
|
-
isOffer={false}
|
|
233
|
-
onUserValidatedChange={setUserValidated}
|
|
234
|
-
onRemarksChange={setRemarks}
|
|
235
|
-
onSubmit={handleSummarySubmit}
|
|
236
|
-
renderOptions={() => renderEditablePackagingEntrySummaryOptions(editablePackagingEntry, priceDetails, translations)}
|
|
237
|
-
renderPreviousButton={() => (
|
|
238
|
-
<button type="button" title={translations.STEPS.PREVIOUS} onClick={() => dispatch(setCurrentStep(0))} className="cta cta--secondary">
|
|
239
|
-
{translations.STEPS.PREVIOUS}
|
|
240
|
-
</button>
|
|
241
|
-
)}
|
|
242
|
-
/>
|
|
243
|
-
)}
|
|
244
|
-
|
|
245
|
-
{currentStep === 2 && (
|
|
246
|
-
<SharedConfirmation
|
|
247
|
-
bookingNumber={bookingNumber ?? editablePackagingEntry?.dossierNumber ?? ''}
|
|
248
|
-
isOption={false}
|
|
249
|
-
isOffer={false}
|
|
250
|
-
translations={translations.CONFIRMATION}
|
|
251
|
-
/>
|
|
252
|
-
)}
|
|
253
|
-
|
|
254
|
-
{currentStep === 3 && <div>{/* error */}</div>}
|
|
255
|
-
</BookingPanel>
|
|
256
|
-
</div>
|
|
257
|
-
|
|
258
|
-
<div className="backdrop" id="backdrop"></div>
|
|
259
|
-
|
|
260
|
-
<WLSidebar activeSearchSeed={activeSearchSeed} packagingAccoResult={selectedPackagingAccoResult} />
|
|
261
|
-
</div>
|
|
262
|
-
</div>
|
|
263
|
-
);
|
|
264
|
-
};
|
|
265
|
-
|
|
266
|
-
export default BookPackagingEntry;
|