@qite/tide-booking-component 1.4.123 → 1.4.125
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 +6 -4
- package/build/build-cjs/index.js +32728 -49995
- package/build/build-cjs/src/booking-product/components/age-select.d.ts +3 -3
- package/build/build-cjs/src/booking-product/components/amount-input.d.ts +5 -5
- package/build/build-cjs/src/booking-product/components/date-range-picker/calendar-day.d.ts +8 -8
- package/build/build-cjs/src/booking-product/components/date-range-picker/calendar.d.ts +14 -14
- package/build/build-cjs/src/booking-product/components/date-range-picker/index.d.ts +19 -16
- package/build/build-cjs/src/booking-product/components/dates.d.ts +8 -8
- package/build/build-cjs/src/booking-product/components/footer.d.ts +5 -5
- package/build/build-cjs/src/booking-product/components/header.d.ts +6 -6
- package/build/build-cjs/src/booking-product/components/list-view.d.ts +2 -2
- package/build/build-cjs/src/booking-product/components/product.d.ts +4 -4
- package/build/build-cjs/src/booking-product/components/rating.d.ts +1 -1
- package/build/build-cjs/src/booking-product/components/rooms.d.ts +4 -4
- package/build/build-cjs/src/booking-product/constants.d.ts +1 -1
- package/build/build-cjs/src/booking-product/index.d.ts +4 -4
- package/build/build-cjs/src/booking-product/settings-context.d.ts +2 -1
- package/build/build-cjs/src/booking-product/types.d.ts +55 -21
- package/build/build-cjs/src/booking-product/utils/api.d.ts +2 -11
- package/build/build-cjs/src/booking-product/utils/price.d.ts +1 -10
- package/build/build-cjs/src/booking-wizard/api-settings-slice.d.ts +2 -3
- package/build/build-cjs/src/booking-wizard/components/labeled-input.d.ts +13 -13
- package/build/build-cjs/src/booking-wizard/components/labeled-select.d.ts +16 -16
- package/build/build-cjs/src/booking-wizard/components/message.d.ts +4 -4
- package/build/build-cjs/src/booking-wizard/components/multi-range-filter.d.ts +6 -6
- package/build/build-cjs/src/booking-wizard/components/phone-input.d.ts +11 -11
- package/build/build-cjs/src/booking-wizard/components/print-offer-button.d.ts +11 -11
- package/build/build-cjs/src/booking-wizard/components/step-indicator.d.ts +1 -1
- package/build/build-cjs/src/booking-wizard/components/step-route.d.ts +3 -3
- package/build/build-cjs/src/booking-wizard/features/booking/api.d.ts +7 -26
- package/build/build-cjs/src/booking-wizard/features/booking/booking-self-contained.d.ts +3 -3
- package/build/build-cjs/src/booking-wizard/features/booking/booking-slice.d.ts +43 -102
- package/build/build-cjs/src/booking-wizard/features/booking/booking.d.ts +3 -3
- package/build/build-cjs/src/booking-wizard/features/booking/constants.d.ts +1 -8
- package/build/build-cjs/src/booking-wizard/features/booking/selectors.d.ts +480 -644
- package/build/build-cjs/src/booking-wizard/features/confirmation/confirmation.d.ts +2 -1
- package/build/build-cjs/src/booking-wizard/features/error/error.d.ts +2 -1
- package/build/build-cjs/src/booking-wizard/features/flight-options/flight-filter.d.ts +3 -3
- package/build/build-cjs/src/booking-wizard/features/flight-options/flight-option-flight.d.ts +2 -2
- package/build/build-cjs/src/booking-wizard/features/flight-options/flight-option.d.ts +4 -4
- package/build/build-cjs/src/booking-wizard/features/flight-options/flight-utils.d.ts +2 -9
- package/build/build-cjs/src/booking-wizard/features/flight-options/index.d.ts +2 -1
- package/build/build-cjs/src/booking-wizard/features/price-details/price-details-api.d.ts +1 -6
- package/build/build-cjs/src/booking-wizard/features/price-details/price-details-slice.d.ts +10 -15
- package/build/build-cjs/src/booking-wizard/features/price-details/selectors.d.ts +287 -302
- package/build/build-cjs/src/booking-wizard/features/product-options/none-option.d.ts +3 -3
- package/build/build-cjs/src/booking-wizard/features/product-options/option-booking-airline-group.d.ts +2 -2
- package/build/build-cjs/src/booking-wizard/features/product-options/option-booking-group.d.ts +6 -6
- package/build/build-cjs/src/booking-wizard/features/product-options/option-item.d.ts +5 -5
- package/build/build-cjs/src/booking-wizard/features/product-options/option-pax-card.d.ts +4 -4
- package/build/build-cjs/src/booking-wizard/features/product-options/option-pax-group.d.ts +7 -7
- package/build/build-cjs/src/booking-wizard/features/product-options/option-room.d.ts +5 -5
- package/build/build-cjs/src/booking-wizard/features/product-options/option-unit-group.d.ts +7 -7
- package/build/build-cjs/src/booking-wizard/features/product-options/option-units-card.d.ts +3 -3
- 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 +2 -1
- package/build/build-cjs/src/booking-wizard/features/room-options/index.d.ts +2 -1
- package/build/build-cjs/src/booking-wizard/features/room-options/room-utils.d.ts +6 -19
- package/build/build-cjs/src/booking-wizard/features/room-options/room.d.ts +6 -6
- package/build/build-cjs/src/booking-wizard/features/room-options/traveler-rooms.d.ts +3 -3
- package/build/build-cjs/src/booking-wizard/features/sidebar/index.d.ts +2 -2
- package/build/build-cjs/src/booking-wizard/features/sidebar/sidebar-flight.d.ts +3 -3
- package/build/build-cjs/src/booking-wizard/features/sidebar/sidebar-util.d.ts +2 -5
- package/build/build-cjs/src/booking-wizard/features/summary/summary-booking-option-pax.d.ts +1 -1
- package/build/build-cjs/src/booking-wizard/features/summary/summary-booking-option-unit.d.ts +1 -1
- package/build/build-cjs/src/booking-wizard/features/summary/summary-flight.d.ts +2 -2
- package/build/build-cjs/src/booking-wizard/features/summary/summary-per-booking-option-group.d.ts +1 -1
- package/build/build-cjs/src/booking-wizard/features/summary/summary-per-pax-option-group.d.ts +1 -1
- package/build/build-cjs/src/booking-wizard/features/summary/summary-per-unit-option-group.d.ts +1 -1
- package/build/build-cjs/src/booking-wizard/features/summary/summary-slice.d.ts +3 -3
- package/build/build-cjs/src/booking-wizard/features/summary/summary.d.ts +2 -1
- package/build/build-cjs/src/booking-wizard/features/travelers-form/travelers-form-slice.d.ts +113 -74
- package/build/build-cjs/src/booking-wizard/features/travelers-form/travelers-form-util.d.ts +4 -4
- package/build/build-cjs/src/booking-wizard/features/travelers-form/type-ahead-input.d.ts +11 -11
- package/build/build-cjs/src/booking-wizard/features/travelers-form/validate-form.d.ts +1 -8
- package/build/build-cjs/src/booking-wizard/index.d.ts +6 -6
- package/build/build-cjs/src/booking-wizard/settings-context.d.ts +2 -1
- package/build/build-cjs/src/booking-wizard/store.d.ts +22 -40
- package/build/build-cjs/src/booking-wizard/types.d.ts +270 -241
- package/build/build-cjs/src/booking-wizard/use-offer-printer.d.ts +8 -8
- package/build/build-cjs/src/content/components/LanguageSwitcher.d.ts +5 -5
- package/build/build-cjs/src/content/components/accordion.d.ts +4 -4
- package/build/build-cjs/src/content/components/breadcrumb.d.ts +7 -7
- package/build/build-cjs/src/content/components/faq.d.ts +4 -4
- package/build/build-cjs/src/content/components/gallery.d.ts +6 -6
- package/build/build-cjs/src/content/components/image-with-text.d.ts +18 -18
- package/build/build-cjs/src/content/components/itinerary-map-view.d.ts +48 -0
- package/build/build-cjs/src/content/components/slider.d.ts +5 -5
- package/build/build-cjs/src/content/error/error.d.ts +1 -1
- package/build/build-cjs/src/content/featured-trips/types.d.ts +8 -8
- package/build/build-cjs/src/content/features/content-page/content-page-self-contained.d.ts +1 -1
- package/build/build-cjs/src/content/footer/types.d.ts +17 -17
- package/build/build-cjs/src/content/header/types.d.ts +20 -23
- package/build/build-cjs/src/content/image-card-grid/types.d.ts +8 -8
- package/build/build-cjs/src/content/image-with-text-section/types.d.ts +15 -15
- package/build/build-cjs/src/content/login/login-services.d.ts +1 -6
- package/build/build-cjs/src/content/login/types.d.ts +19 -19
- package/build/build-cjs/src/content/navbar/placeholderData.d.ts +2 -2
- package/build/build-cjs/src/content/navbar/types.d.ts +22 -22
- 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/build/build-cjs/src/index.d.ts +3 -18
- package/build/build-cjs/src/qsm/components/date-range-picker/calendar-day.d.ts +7 -7
- package/build/build-cjs/src/qsm/components/date-range-picker/calendar.d.ts +18 -18
- package/build/build-cjs/src/qsm/components/date-range-picker/index.d.ts +5 -5
- package/build/build-cjs/src/qsm/components/double-search-input-group/index.d.ts +2 -2
- package/build/build-cjs/src/qsm/components/item-picker/index.d.ts +7 -7
- package/build/build-cjs/src/qsm/components/search-input/index.d.ts +9 -9
- package/build/build-cjs/src/qsm/components/search-input-group/index.d.ts +7 -7
- package/build/build-cjs/src/qsm/index.d.ts +1 -1
- package/build/build-cjs/src/qsm/store/qsm-slice.d.ts +58 -111
- package/build/build-cjs/src/qsm/store/qsm-store.d.ts +7 -20
- package/build/build-cjs/src/qsm/types.d.ts +59 -59
- package/build/build-cjs/src/search-results/components/book-packaging-entry/index.d.ts +3 -3
- package/build/build-cjs/src/search-results/components/book-packaging-entry/wl-sidebar.d.ts +2 -2
- package/build/build-cjs/src/search-results/components/excursions/day-by-day-excursions.d.ts +2 -1
- package/build/build-cjs/src/search-results/components/excursions/excursion-results.d.ts +2 -2
- package/build/build-cjs/src/search-results/components/filters/filters.d.ts +7 -7
- package/build/build-cjs/src/search-results/components/filters/flight-filters.d.ts +3 -3
- package/build/build-cjs/src/search-results/components/flight/flight-banner.d.ts +2 -2
- package/build/build-cjs/src/search-results/components/flight/flight-card.d.ts +1 -1
- package/build/build-cjs/src/search-results/components/flight/flight-leg.d.ts +1 -1
- package/build/build-cjs/src/search-results/components/flight/flight-path.d.ts +1 -1
- package/build/build-cjs/src/search-results/components/flight/flight-results.d.ts +2 -2
- package/build/build-cjs/src/search-results/components/flight/flight-search-context/index.d.ts +29 -29
- package/build/build-cjs/src/search-results/components/flight/flight-selection/independent-flight-option.d.ts +8 -8
- package/build/build-cjs/src/search-results/components/flight/flight-selection/independent-flight-selection.d.ts +1 -1
- package/build/build-cjs/src/search-results/components/flight/flight-selection/index.d.ts +2 -2
- package/build/build-cjs/src/search-results/components/flight/flight-selection/paired-flight-option.d.ts +1 -1
- package/build/build-cjs/src/search-results/components/flight/flight-selection/paired-flight-selection.d.ts +1 -1
- package/build/build-cjs/src/search-results/components/group-tour/group-tour-card.d.ts +3 -3
- package/build/build-cjs/src/search-results/components/group-tour/group-tour-results.d.ts +1 -1
- package/build/build-cjs/src/search-results/components/hotel/hotel-accommodation-results.d.ts +2 -2
- package/build/build-cjs/src/search-results/components/hotel/hotel-card.d.ts +2 -2
- package/build/build-cjs/src/search-results/components/item-picker/index.d.ts +8 -8
- package/build/build-cjs/src/search-results/components/itinerary/full-itinerary.d.ts +1 -1
- package/build/build-cjs/src/search-results/components/itinerary/index.d.ts +4 -4
- package/build/build-cjs/src/search-results/components/multi-range-filter.d.ts +6 -6
- package/build/build-cjs/src/search-results/components/round-trip/round-trip-results.d.ts +2 -1
- package/build/build-cjs/src/search-results/components/search-results-container/flight-search-results.d.ts +1 -1
- package/build/build-cjs/src/search-results/components/search-results-container/search-results-container.d.ts +1 -1
- package/build/build-cjs/src/search-results/components/spinner/spinner.d.ts +1 -1
- package/build/build-cjs/src/search-results/components/tab-views/index.d.ts +2 -1
- package/build/build-cjs/src/search-results/features/flights/flight-search-results-self-contained.d.ts +2 -1
- package/build/build-cjs/src/search-results/features/hotels/hotel-flight-search-results-self-contained.d.ts +2 -1
- package/build/build-cjs/src/search-results/features/hotels/hotel-search-results-self-contained.d.ts +2 -1
- package/build/build-cjs/src/search-results/features/roundtrips/roundtrip-search-results-self-contained.d.ts +2 -1
- package/build/build-cjs/src/search-results/index.d.ts +2 -2
- package/build/build-cjs/src/search-results/store/search-results-selectors.d.ts +408 -412
- package/build/build-cjs/src/search-results/store/search-results-slice.d.ts +53 -134
- package/build/build-cjs/src/search-results/store/search-results-store.d.ts +7 -20
- package/build/build-cjs/src/search-results/types.d.ts +143 -169
- package/build/build-cjs/src/search-results/utils/flight-utils.d.ts +1 -6
- package/build/build-cjs/src/search-results/utils/packaging-utils.d.ts +2 -2
- package/build/build-cjs/src/search-results/utils/search-results-utils.d.ts +2 -10
- package/build/build-cjs/src/shared/booking/booking-panel.d.ts +6 -6
- package/build/build-cjs/src/shared/booking/product-card.d.ts +3 -3
- package/build/build-cjs/src/shared/booking/shared-confirmation.d.ts +18 -18
- package/build/build-cjs/src/shared/booking/shared-sidebar.d.ts +27 -27
- package/build/build-cjs/src/shared/booking/step-indicators.d.ts +2 -2
- package/build/build-cjs/src/shared/booking/summary.d.ts +34 -34
- package/build/build-cjs/src/shared/booking/travelers-form.d.ts +57 -71
- package/build/build-cjs/src/shared/components/flyin/accommodation-flyin.d.ts +2 -2
- package/build/build-cjs/src/shared/components/flyin/flights-flyin.d.ts +2 -2
- package/build/build-cjs/src/shared/components/flyin/flyin.d.ts +13 -13
- package/build/build-cjs/src/shared/components/flyin/group-tour-flyin.d.ts +3 -3
- package/build/build-cjs/src/shared/components/flyin/packaging-flights-flyin.d.ts +4 -4
- package/build/build-cjs/src/shared/components/icon.d.ts +6 -6
- package/build/build-cjs/src/shared/components/loader.d.ts +1 -1
- package/build/build-cjs/src/shared/types.d.ts +9 -9
- package/build/build-cjs/src/shared/utils/localization-util.d.ts +27 -416
- package/build/build-cjs/src/shared/utils/tide-api-utils.d.ts +0 -6
- package/build/build-esm/index.js +32750 -49813
- package/build/build-esm/src/booking-product/components/age-select.d.ts +3 -3
- package/build/build-esm/src/booking-product/components/amount-input.d.ts +5 -5
- package/build/build-esm/src/booking-product/components/date-range-picker/calendar-day.d.ts +8 -8
- package/build/build-esm/src/booking-product/components/date-range-picker/calendar.d.ts +14 -14
- package/build/build-esm/src/booking-product/components/date-range-picker/index.d.ts +19 -16
- package/build/build-esm/src/booking-product/components/dates.d.ts +8 -8
- package/build/build-esm/src/booking-product/components/footer.d.ts +5 -5
- package/build/build-esm/src/booking-product/components/header.d.ts +6 -6
- package/build/build-esm/src/booking-product/components/list-view.d.ts +2 -2
- package/build/build-esm/src/booking-product/components/product.d.ts +4 -4
- package/build/build-esm/src/booking-product/components/rating.d.ts +1 -1
- package/build/build-esm/src/booking-product/components/rooms.d.ts +4 -4
- package/build/build-esm/src/booking-product/constants.d.ts +1 -1
- package/build/build-esm/src/booking-product/index.d.ts +4 -4
- package/build/build-esm/src/booking-product/settings-context.d.ts +2 -1
- package/build/build-esm/src/booking-product/types.d.ts +55 -21
- package/build/build-esm/src/booking-product/utils/api.d.ts +2 -11
- package/build/build-esm/src/booking-product/utils/price.d.ts +1 -10
- package/build/build-esm/src/booking-wizard/api-settings-slice.d.ts +2 -3
- package/build/build-esm/src/booking-wizard/components/labeled-input.d.ts +13 -13
- package/build/build-esm/src/booking-wizard/components/labeled-select.d.ts +16 -16
- package/build/build-esm/src/booking-wizard/components/message.d.ts +4 -4
- package/build/build-esm/src/booking-wizard/components/multi-range-filter.d.ts +6 -6
- package/build/build-esm/src/booking-wizard/components/phone-input.d.ts +11 -11
- package/build/build-esm/src/booking-wizard/components/print-offer-button.d.ts +11 -11
- package/build/build-esm/src/booking-wizard/components/step-indicator.d.ts +1 -1
- package/build/build-esm/src/booking-wizard/components/step-route.d.ts +3 -3
- package/build/build-esm/src/booking-wizard/features/booking/api.d.ts +7 -26
- package/build/build-esm/src/booking-wizard/features/booking/booking-self-contained.d.ts +3 -3
- package/build/build-esm/src/booking-wizard/features/booking/booking-slice.d.ts +43 -102
- package/build/build-esm/src/booking-wizard/features/booking/booking.d.ts +3 -3
- package/build/build-esm/src/booking-wizard/features/booking/constants.d.ts +1 -8
- package/build/build-esm/src/booking-wizard/features/booking/selectors.d.ts +480 -644
- package/build/build-esm/src/booking-wizard/features/confirmation/confirmation.d.ts +2 -1
- package/build/build-esm/src/booking-wizard/features/error/error.d.ts +2 -1
- package/build/build-esm/src/booking-wizard/features/flight-options/flight-filter.d.ts +3 -3
- package/build/build-esm/src/booking-wizard/features/flight-options/flight-option-flight.d.ts +2 -2
- package/build/build-esm/src/booking-wizard/features/flight-options/flight-option.d.ts +4 -4
- package/build/build-esm/src/booking-wizard/features/flight-options/flight-utils.d.ts +2 -9
- package/build/build-esm/src/booking-wizard/features/flight-options/index.d.ts +2 -1
- package/build/build-esm/src/booking-wizard/features/price-details/price-details-api.d.ts +1 -6
- package/build/build-esm/src/booking-wizard/features/price-details/price-details-slice.d.ts +10 -15
- package/build/build-esm/src/booking-wizard/features/price-details/selectors.d.ts +287 -302
- package/build/build-esm/src/booking-wizard/features/product-options/none-option.d.ts +3 -3
- package/build/build-esm/src/booking-wizard/features/product-options/option-booking-airline-group.d.ts +2 -2
- package/build/build-esm/src/booking-wizard/features/product-options/option-booking-group.d.ts +6 -6
- package/build/build-esm/src/booking-wizard/features/product-options/option-item.d.ts +5 -5
- package/build/build-esm/src/booking-wizard/features/product-options/option-pax-card.d.ts +4 -4
- package/build/build-esm/src/booking-wizard/features/product-options/option-pax-group.d.ts +7 -7
- package/build/build-esm/src/booking-wizard/features/product-options/option-room.d.ts +5 -5
- package/build/build-esm/src/booking-wizard/features/product-options/option-unit-group.d.ts +7 -7
- package/build/build-esm/src/booking-wizard/features/product-options/option-units-card.d.ts +3 -3
- 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 +2 -1
- package/build/build-esm/src/booking-wizard/features/room-options/index.d.ts +2 -1
- package/build/build-esm/src/booking-wizard/features/room-options/room-utils.d.ts +6 -19
- package/build/build-esm/src/booking-wizard/features/room-options/room.d.ts +6 -6
- package/build/build-esm/src/booking-wizard/features/room-options/traveler-rooms.d.ts +3 -3
- package/build/build-esm/src/booking-wizard/features/sidebar/index.d.ts +2 -2
- package/build/build-esm/src/booking-wizard/features/sidebar/sidebar-flight.d.ts +3 -3
- package/build/build-esm/src/booking-wizard/features/sidebar/sidebar-util.d.ts +2 -5
- package/build/build-esm/src/booking-wizard/features/summary/summary-booking-option-pax.d.ts +1 -1
- package/build/build-esm/src/booking-wizard/features/summary/summary-booking-option-unit.d.ts +1 -1
- package/build/build-esm/src/booking-wizard/features/summary/summary-flight.d.ts +2 -2
- package/build/build-esm/src/booking-wizard/features/summary/summary-per-booking-option-group.d.ts +1 -1
- package/build/build-esm/src/booking-wizard/features/summary/summary-per-pax-option-group.d.ts +1 -1
- package/build/build-esm/src/booking-wizard/features/summary/summary-per-unit-option-group.d.ts +1 -1
- package/build/build-esm/src/booking-wizard/features/summary/summary-slice.d.ts +3 -3
- package/build/build-esm/src/booking-wizard/features/summary/summary.d.ts +2 -1
- package/build/build-esm/src/booking-wizard/features/travelers-form/travelers-form-slice.d.ts +113 -74
- package/build/build-esm/src/booking-wizard/features/travelers-form/travelers-form-util.d.ts +4 -4
- package/build/build-esm/src/booking-wizard/features/travelers-form/type-ahead-input.d.ts +11 -11
- package/build/build-esm/src/booking-wizard/features/travelers-form/validate-form.d.ts +1 -8
- package/build/build-esm/src/booking-wizard/index.d.ts +6 -6
- package/build/build-esm/src/booking-wizard/settings-context.d.ts +2 -1
- package/build/build-esm/src/booking-wizard/store.d.ts +22 -40
- package/build/build-esm/src/booking-wizard/types.d.ts +270 -241
- package/build/build-esm/src/booking-wizard/use-offer-printer.d.ts +8 -8
- package/build/build-esm/src/content/components/LanguageSwitcher.d.ts +5 -5
- package/build/build-esm/src/content/components/accordion.d.ts +4 -4
- package/build/build-esm/src/content/components/breadcrumb.d.ts +7 -7
- package/build/build-esm/src/content/components/faq.d.ts +4 -4
- package/build/build-esm/src/content/components/gallery.d.ts +6 -6
- package/build/build-esm/src/content/components/image-with-text.d.ts +18 -18
- package/build/build-esm/src/content/components/itinerary-map-view.d.ts +48 -0
- package/build/build-esm/src/content/components/slider.d.ts +5 -5
- package/build/build-esm/src/content/error/error.d.ts +1 -1
- package/build/build-esm/src/content/featured-trips/types.d.ts +8 -8
- package/build/build-esm/src/content/features/content-page/content-page-self-contained.d.ts +1 -1
- package/build/build-esm/src/content/footer/types.d.ts +17 -17
- package/build/build-esm/src/content/header/types.d.ts +20 -23
- package/build/build-esm/src/content/image-card-grid/types.d.ts +8 -8
- package/build/build-esm/src/content/image-with-text-section/types.d.ts +15 -15
- package/build/build-esm/src/content/login/login-services.d.ts +1 -6
- package/build/build-esm/src/content/login/types.d.ts +19 -19
- package/build/build-esm/src/content/navbar/placeholderData.d.ts +2 -2
- package/build/build-esm/src/content/navbar/types.d.ts +22 -22
- 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 +3 -18
- package/build/build-esm/src/qsm/components/date-range-picker/calendar-day.d.ts +7 -7
- package/build/build-esm/src/qsm/components/date-range-picker/calendar.d.ts +18 -18
- package/build/build-esm/src/qsm/components/date-range-picker/index.d.ts +5 -5
- package/build/build-esm/src/qsm/components/double-search-input-group/index.d.ts +2 -2
- package/build/build-esm/src/qsm/components/item-picker/index.d.ts +7 -7
- package/build/build-esm/src/qsm/components/search-input/index.d.ts +9 -9
- package/build/build-esm/src/qsm/components/search-input-group/index.d.ts +7 -7
- package/build/build-esm/src/qsm/index.d.ts +1 -1
- package/build/build-esm/src/qsm/store/qsm-slice.d.ts +58 -111
- package/build/build-esm/src/qsm/store/qsm-store.d.ts +7 -20
- package/build/build-esm/src/qsm/types.d.ts +59 -59
- package/build/build-esm/src/search-results/components/book-packaging-entry/index.d.ts +3 -3
- package/build/build-esm/src/search-results/components/book-packaging-entry/wl-sidebar.d.ts +2 -2
- package/build/build-esm/src/search-results/components/excursions/day-by-day-excursions.d.ts +2 -1
- package/build/build-esm/src/search-results/components/excursions/excursion-results.d.ts +2 -2
- package/build/build-esm/src/search-results/components/filters/filters.d.ts +7 -7
- package/build/build-esm/src/search-results/components/filters/flight-filters.d.ts +3 -3
- package/build/build-esm/src/search-results/components/flight/flight-banner.d.ts +2 -2
- package/build/build-esm/src/search-results/components/flight/flight-card.d.ts +1 -1
- package/build/build-esm/src/search-results/components/flight/flight-leg.d.ts +1 -1
- package/build/build-esm/src/search-results/components/flight/flight-path.d.ts +1 -1
- package/build/build-esm/src/search-results/components/flight/flight-results.d.ts +2 -2
- package/build/build-esm/src/search-results/components/flight/flight-search-context/index.d.ts +29 -29
- package/build/build-esm/src/search-results/components/flight/flight-selection/independent-flight-option.d.ts +8 -8
- package/build/build-esm/src/search-results/components/flight/flight-selection/independent-flight-selection.d.ts +1 -1
- package/build/build-esm/src/search-results/components/flight/flight-selection/index.d.ts +2 -2
- package/build/build-esm/src/search-results/components/flight/flight-selection/paired-flight-option.d.ts +1 -1
- package/build/build-esm/src/search-results/components/flight/flight-selection/paired-flight-selection.d.ts +1 -1
- package/build/build-esm/src/search-results/components/group-tour/group-tour-card.d.ts +3 -3
- package/build/build-esm/src/search-results/components/group-tour/group-tour-results.d.ts +1 -1
- package/build/build-esm/src/search-results/components/hotel/hotel-accommodation-results.d.ts +2 -2
- package/build/build-esm/src/search-results/components/hotel/hotel-card.d.ts +2 -2
- package/build/build-esm/src/search-results/components/item-picker/index.d.ts +8 -8
- package/build/build-esm/src/search-results/components/itinerary/full-itinerary.d.ts +1 -1
- package/build/build-esm/src/search-results/components/itinerary/index.d.ts +4 -4
- package/build/build-esm/src/search-results/components/multi-range-filter.d.ts +6 -6
- package/build/build-esm/src/search-results/components/round-trip/round-trip-results.d.ts +2 -1
- package/build/build-esm/src/search-results/components/search-results-container/flight-search-results.d.ts +1 -1
- package/build/build-esm/src/search-results/components/search-results-container/search-results-container.d.ts +1 -1
- package/build/build-esm/src/search-results/components/spinner/spinner.d.ts +1 -1
- package/build/build-esm/src/search-results/components/tab-views/index.d.ts +2 -1
- package/build/build-esm/src/search-results/features/flights/flight-search-results-self-contained.d.ts +2 -1
- package/build/build-esm/src/search-results/features/hotels/hotel-flight-search-results-self-contained.d.ts +2 -1
- package/build/build-esm/src/search-results/features/hotels/hotel-search-results-self-contained.d.ts +2 -1
- package/build/build-esm/src/search-results/features/roundtrips/roundtrip-search-results-self-contained.d.ts +2 -1
- package/build/build-esm/src/search-results/index.d.ts +2 -2
- package/build/build-esm/src/search-results/store/search-results-selectors.d.ts +408 -412
- package/build/build-esm/src/search-results/store/search-results-slice.d.ts +53 -134
- package/build/build-esm/src/search-results/store/search-results-store.d.ts +7 -20
- package/build/build-esm/src/search-results/types.d.ts +143 -169
- package/build/build-esm/src/search-results/utils/flight-utils.d.ts +1 -6
- package/build/build-esm/src/search-results/utils/packaging-utils.d.ts +2 -2
- package/build/build-esm/src/search-results/utils/search-results-utils.d.ts +2 -10
- package/build/build-esm/src/shared/booking/booking-panel.d.ts +6 -6
- package/build/build-esm/src/shared/booking/product-card.d.ts +3 -3
- package/build/build-esm/src/shared/booking/shared-confirmation.d.ts +18 -18
- package/build/build-esm/src/shared/booking/shared-sidebar.d.ts +27 -27
- package/build/build-esm/src/shared/booking/step-indicators.d.ts +2 -2
- package/build/build-esm/src/shared/booking/summary.d.ts +34 -34
- package/build/build-esm/src/shared/booking/travelers-form.d.ts +57 -71
- package/build/build-esm/src/shared/components/flyin/accommodation-flyin.d.ts +2 -2
- package/build/build-esm/src/shared/components/flyin/flights-flyin.d.ts +2 -2
- package/build/build-esm/src/shared/components/flyin/flyin.d.ts +13 -13
- package/build/build-esm/src/shared/components/flyin/group-tour-flyin.d.ts +3 -3
- package/build/build-esm/src/shared/components/flyin/packaging-flights-flyin.d.ts +4 -4
- package/build/build-esm/src/shared/components/icon.d.ts +6 -6
- package/build/build-esm/src/shared/components/loader.d.ts +1 -1
- package/build/build-esm/src/shared/types.d.ts +9 -9
- package/build/build-esm/src/shared/utils/localization-util.d.ts +27 -416
- package/build/build-esm/src/shared/utils/tide-api-utils.d.ts +0 -6
- package/package.json +15 -2
- package/styles/components/_contact.scss +25 -9
- package/styles/components/_map-view.scss +1100 -0
- package/styles/components/_tide-form.scss +541 -0
- package/styles/content-blocks-variables.scss +36 -0
- package/styles/content-blocks.scss +1 -0
- package/styles/tide-form-variables.scss +275 -0
- package/styles/tide-form.scss +56 -0
- package/.husky/pre-commit +0 -1
- package/.nvmrc +0 -1
- 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/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 -57
- package/src/booking-product/components/list-view.tsx +0 -54
- package/src/booking-product/components/product.tsx +0 -379
- package/src/booking-product/components/rating.tsx +0 -21
- package/src/booking-product/components/rooms.tsx +0 -171
- 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 -30
- 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 -318
- package/src/booking-wizard/features/booking/booking-slice.ts +0 -634
- package/src/booking-wizard/features/booking/booking.tsx +0 -344
- 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 -562
- 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 -175
- 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 -333
- 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/index.ts +0 -46
- 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/search-results-configuration-context.ts +0 -6
- 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 -301
- package/src/shared/utils/query-string-util.ts +0 -91
- package/src/shared/utils/tide-api-utils.ts +0 -43
- package/src/shared/utils/use-media-query-util.ts +0 -19
- package/tsconfig.json +0 -24
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useMemo, useState } from 'react';
|
|
2
|
-
import { buildClassName } from '../../shared/utils/class-util';
|
|
3
|
-
import { compact } from 'lodash';
|
|
4
|
-
import { Country } from '../types';
|
|
5
|
-
|
|
6
|
-
interface PhoneInputProps {
|
|
7
|
-
name: string;
|
|
8
|
-
required?: boolean;
|
|
9
|
-
value?: string | number;
|
|
10
|
-
label?: string;
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
hasError?: boolean;
|
|
13
|
-
extraClassName?: string;
|
|
14
|
-
countries: Country[];
|
|
15
|
-
countryIso2?: string; // Initial country selection (ISO2 code)
|
|
16
|
-
onChange?: React.ChangeEventHandler<HTMLElement>;
|
|
17
|
-
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
const normalize = (v?: string | number) => (v == null ? '' : String(v));
|
|
21
|
-
|
|
22
|
-
const parseCombined = (raw: string, countries: Country[]): { prefix: string; number: string } => {
|
|
23
|
-
const value = normalize(raw).trim();
|
|
24
|
-
if (!value) return { prefix: '', number: '' };
|
|
25
|
-
|
|
26
|
-
// Try to match a known prefix at the start. Prefer longest match.
|
|
27
|
-
const sorted = [...countries].sort((a, b) => b.phonePrefix.length - a.phonePrefix.length);
|
|
28
|
-
const hit = sorted.find((c) => value.startsWith(c.phonePrefix));
|
|
29
|
-
if (hit) {
|
|
30
|
-
const rest = value
|
|
31
|
-
.slice(hit.phonePrefix.length)
|
|
32
|
-
.trim()
|
|
33
|
-
.replace(/^[-\s]+/, '');
|
|
34
|
-
return { prefix: hit.phonePrefix, number: rest };
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// Fallback: split on first space if it looks like a +prefix number
|
|
38
|
-
const m = value.match(/^(\+\d{1,4})[\s-]*(.*)$/);
|
|
39
|
-
if (m) return { prefix: m[1], number: m[2] };
|
|
40
|
-
|
|
41
|
-
return { prefix: '', number: value };
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const PhoneInput: React.FC<PhoneInputProps> = ({
|
|
45
|
-
name,
|
|
46
|
-
required,
|
|
47
|
-
value,
|
|
48
|
-
label,
|
|
49
|
-
placeholder,
|
|
50
|
-
extraClassName,
|
|
51
|
-
hasError,
|
|
52
|
-
countries,
|
|
53
|
-
countryIso2,
|
|
54
|
-
onChange,
|
|
55
|
-
onBlur
|
|
56
|
-
}) => {
|
|
57
|
-
// Derive initial state from `value`
|
|
58
|
-
const initialCountry = countries.find((c) => c.iso2 === countryIso2);
|
|
59
|
-
|
|
60
|
-
const initial = useMemo(() => parseCombined(normalize(value), countries), [value, countries]);
|
|
61
|
-
const [prefix, setPrefix] = useState<string>(initial.prefix);
|
|
62
|
-
const [number, setNumber] = useState<string>(initial.number);
|
|
63
|
-
|
|
64
|
-
// Keep state in sync if the parent changes `value`
|
|
65
|
-
useEffect(() => {
|
|
66
|
-
const parsed = !prefix && !number && initialCountry ? { prefix: initialCountry.phonePrefix, number: '' } : parseCombined(normalize(value), countries);
|
|
67
|
-
if (parsed.prefix) setPrefix(parsed.prefix);
|
|
68
|
-
if (parsed.number) setNumber(parsed.number);
|
|
69
|
-
}, [value, countries, countryIso2]);
|
|
70
|
-
|
|
71
|
-
const emitCombinedChange = (e: React.ChangeEvent<HTMLElement>, nextPrefix: string, nextNumber: string) => {
|
|
72
|
-
// Combine with a space, unless the number already starts with a dash or space
|
|
73
|
-
const combined = nextPrefix && nextNumber ? compact([nextPrefix, nextNumber]).join(' ') : null;
|
|
74
|
-
onChange?.({
|
|
75
|
-
...e,
|
|
76
|
-
type: 'change',
|
|
77
|
-
target: { name, value: combined },
|
|
78
|
-
currentTarget: { name, value: combined }
|
|
79
|
-
} as any);
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
const handleCountryBlur = (e: React.FocusEvent<HTMLSelectElement>) => {
|
|
83
|
-
onBlur?.(e);
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
const onCountryChange = (e: React.ChangeEvent<HTMLSelectElement>) => {
|
|
87
|
-
const next = e.target.value;
|
|
88
|
-
setPrefix(next);
|
|
89
|
-
emitCombinedChange(e, next, number);
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
const onPhoneChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
|
93
|
-
const cleaned = e.target.value.replace(/[^\d\s-]/g, '');
|
|
94
|
-
setNumber(cleaned);
|
|
95
|
-
emitCombinedChange(e, prefix, cleaned);
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
const handleNumberBlur = (e: React.FocusEvent<HTMLInputElement>) => {
|
|
99
|
-
onBlur?.(e);
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
// Ensure the select shows a reasonable default when prefix is empty
|
|
103
|
-
const selectValue = prefix || '';
|
|
104
|
-
|
|
105
|
-
return (
|
|
106
|
-
<label className={buildClassName(['form__group', extraClassName, hasError && 'form__group--error'])}>
|
|
107
|
-
{label && <span className="form__label">{compact([label, required && '*']).join(' ')}</span>}
|
|
108
|
-
|
|
109
|
-
<div className="phone-input">
|
|
110
|
-
<div className="dropdown">
|
|
111
|
-
<select
|
|
112
|
-
aria-label={label ? `${label} – country code` : 'Country calling code'}
|
|
113
|
-
name={`${name}__country`}
|
|
114
|
-
value={selectValue}
|
|
115
|
-
onBlur={handleCountryBlur}
|
|
116
|
-
onChange={onCountryChange}>
|
|
117
|
-
<option value="" disabled></option>
|
|
118
|
-
{countries?.map((option) => (
|
|
119
|
-
<option key={option.iso2} value={option.phonePrefix}>
|
|
120
|
-
{option.name} ({option.phonePrefix})
|
|
121
|
-
</option>
|
|
122
|
-
))}
|
|
123
|
-
</select>
|
|
124
|
-
</div>
|
|
125
|
-
|
|
126
|
-
<input
|
|
127
|
-
aria-label={label ? `${label} – number` : 'Phone number'}
|
|
128
|
-
name={`${name}__number`}
|
|
129
|
-
type="tel"
|
|
130
|
-
inputMode="tel"
|
|
131
|
-
required={required}
|
|
132
|
-
className="form__input"
|
|
133
|
-
placeholder={placeholder}
|
|
134
|
-
onChange={onPhoneChange}
|
|
135
|
-
onBlur={handleNumberBlur}
|
|
136
|
-
value={number}
|
|
137
|
-
/>
|
|
138
|
-
|
|
139
|
-
{/* Hidden merged value to integrate with forms that expect a single field */}
|
|
140
|
-
<input type="hidden" name={name} value={compact([prefix, number]).join(' ')} />
|
|
141
|
-
</div>
|
|
142
|
-
</label>
|
|
143
|
-
);
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
export default PhoneInput;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BookingPackage, Pax } from '@qite/tide-client/build/types';
|
|
3
|
-
import { useOfferPrinter } from '../use-offer-printer';
|
|
4
|
-
|
|
5
|
-
interface PrintOfferButtonProps {
|
|
6
|
-
bookingPackage?: BookingPackage;
|
|
7
|
-
|
|
8
|
-
getPax: () => Pax[] | undefined;
|
|
9
|
-
|
|
10
|
-
tagIds?: number[];
|
|
11
|
-
|
|
12
|
-
printActionId?: number | null;
|
|
13
|
-
|
|
14
|
-
onPrinted?: (pdfUrl: string) => void;
|
|
15
|
-
|
|
16
|
-
labelIdle?: string;
|
|
17
|
-
labelCreating?: string;
|
|
18
|
-
labelPrinting?: string;
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
className?: string;
|
|
21
|
-
loader?: React.ReactNode;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const PrintOfferButton: React.FC<PrintOfferButtonProps> = ({
|
|
25
|
-
bookingPackage,
|
|
26
|
-
getPax,
|
|
27
|
-
tagIds,
|
|
28
|
-
printActionId = null,
|
|
29
|
-
onPrinted,
|
|
30
|
-
labelIdle = 'Print offer',
|
|
31
|
-
labelCreating = 'Generating offer…',
|
|
32
|
-
labelPrinting = 'Generating PDF…',
|
|
33
|
-
disabled = false,
|
|
34
|
-
className
|
|
35
|
-
}) => {
|
|
36
|
-
const { handlePrint, stage, loading } = useOfferPrinter({
|
|
37
|
-
bookingPackage,
|
|
38
|
-
getPax,
|
|
39
|
-
tagIds,
|
|
40
|
-
onPrinted,
|
|
41
|
-
printActionId
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
const label = stage === 'creating' ? labelCreating : stage === 'printing' ? labelPrinting : labelIdle;
|
|
45
|
-
|
|
46
|
-
return (
|
|
47
|
-
<button type="button" onClick={handlePrint} disabled={disabled || loading} className={className}>
|
|
48
|
-
{label}
|
|
49
|
-
</button>
|
|
50
|
-
);
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export default PrintOfferButton;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React, { useContext } from 'react';
|
|
2
|
-
import { useSelector } from 'react-redux';
|
|
3
|
-
import { selectTranslations, selectTravelersFirstStep } from '../features/booking/selectors';
|
|
4
|
-
import SettingsContext from '../settings-context';
|
|
5
|
-
import SharedStepIndicators from '../../shared/booking/step-indicators';
|
|
6
|
-
|
|
7
|
-
interface StepIndicatorsProps {
|
|
8
|
-
currentStep: number;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const StepIndicators: React.FC<StepIndicatorsProps> = ({ currentStep }) => {
|
|
12
|
-
const { flightOptions, roomOptions } = useContext(SettingsContext);
|
|
13
|
-
const translations = useSelector(selectTranslations);
|
|
14
|
-
const travelersFirstStep = useSelector(selectTravelersFirstStep);
|
|
15
|
-
|
|
16
|
-
const stepLabels: string[] = [];
|
|
17
|
-
if (travelersFirstStep) {
|
|
18
|
-
stepLabels.push(translations.STEPS.PERSONAL_DETAILS);
|
|
19
|
-
}
|
|
20
|
-
if (!flightOptions.isHidden) {
|
|
21
|
-
stepLabels.push(translations.STEPS.FLIGHT_OPTIONS);
|
|
22
|
-
}
|
|
23
|
-
if (!roomOptions.isHidden) {
|
|
24
|
-
stepLabels.push(translations.STEPS.ROOM_OPTIONS);
|
|
25
|
-
}
|
|
26
|
-
stepLabels.push(translations.STEPS.EXTRA_OPTIONS);
|
|
27
|
-
if (!travelersFirstStep) {
|
|
28
|
-
stepLabels.push(translations.STEPS.PERSONAL_DETAILS);
|
|
29
|
-
}
|
|
30
|
-
stepLabels.push(translations.STEPS.SUMMARY);
|
|
31
|
-
stepLabels.push(translations.STEPS.CONFIRMATION);
|
|
32
|
-
|
|
33
|
-
return <SharedStepIndicators currentStep={currentStep} stepLabels={stepLabels} />;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export default StepIndicators;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import React, { useContext } from 'react';
|
|
2
|
-
import StepIndicators from './step-indicator';
|
|
3
|
-
import BookingPanel from '../../shared/booking/booking-panel';
|
|
4
|
-
import SettingsContext from '../settings-context';
|
|
5
|
-
import { useSelector } from 'react-redux';
|
|
6
|
-
import { selectTranslations, selectTravelersFirstStep } from '../features/booking/selectors';
|
|
7
|
-
|
|
8
|
-
interface StepRouteProps {
|
|
9
|
-
number: number;
|
|
10
|
-
title: string;
|
|
11
|
-
component: JSX.Element;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const StepRoute: React.FC<StepRouteProps> = ({ number, title, component }) => {
|
|
15
|
-
const { flightOptions, roomOptions } = useContext(SettingsContext);
|
|
16
|
-
const translations = useSelector(selectTranslations);
|
|
17
|
-
const travelersFirstStep = useSelector(selectTravelersFirstStep);
|
|
18
|
-
|
|
19
|
-
const stepLabels: string[] = [];
|
|
20
|
-
if (travelersFirstStep) {
|
|
21
|
-
stepLabels.push(translations.STEPS.PERSONAL_DETAILS);
|
|
22
|
-
}
|
|
23
|
-
if (!flightOptions.isHidden) {
|
|
24
|
-
stepLabels.push(translations.STEPS.FLIGHT_OPTIONS);
|
|
25
|
-
}
|
|
26
|
-
if (!roomOptions.isHidden) {
|
|
27
|
-
stepLabels.push(translations.STEPS.ROOM_OPTIONS);
|
|
28
|
-
}
|
|
29
|
-
stepLabels.push(translations.STEPS.EXTRA_OPTIONS);
|
|
30
|
-
if (!travelersFirstStep) {
|
|
31
|
-
stepLabels.push(translations.STEPS.PERSONAL_DETAILS);
|
|
32
|
-
}
|
|
33
|
-
stepLabels.push(translations.STEPS.SUMMARY);
|
|
34
|
-
stepLabels.push(translations.STEPS.CONFIRMATION);
|
|
35
|
-
|
|
36
|
-
return (
|
|
37
|
-
<BookingPanel
|
|
38
|
-
currentStep={number}
|
|
39
|
-
stepLabels={stepLabels}
|
|
40
|
-
StepIndicatorsComponent={StepIndicators}
|
|
41
|
-
renderTitle={(step) => (
|
|
42
|
-
<>
|
|
43
|
-
{step + 1}. {stepLabels[step]}
|
|
44
|
-
</>
|
|
45
|
-
)}>
|
|
46
|
-
{component}
|
|
47
|
-
</BookingPanel>
|
|
48
|
-
);
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export default StepRoute;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { agents, details, generateBookingAccommodations, getCountries } from '@qite/tide-client';
|
|
2
|
-
import {
|
|
3
|
-
BookingPackage,
|
|
4
|
-
BookingPackageDetailsRequest,
|
|
5
|
-
BookingPackageRequest,
|
|
6
|
-
BookingTravelAgent,
|
|
7
|
-
GenerateBookingAccommodationRequest,
|
|
8
|
-
TideResponse
|
|
9
|
-
} from '@qite/tide-client/build/types';
|
|
10
|
-
import { ApiSettingsState } from '../../../shared/types';
|
|
11
|
-
import { buildTideClientConfig } from '../../../shared/utils/tide-api-utils';
|
|
12
|
-
|
|
13
|
-
const fetchDetails = async (
|
|
14
|
-
request: BookingPackageRequest<BookingPackageDetailsRequest>,
|
|
15
|
-
signal: AbortSignal,
|
|
16
|
-
languageCode?: string,
|
|
17
|
-
apiSettings?: ApiSettingsState
|
|
18
|
-
): Promise<TideResponse<BookingPackage>> => {
|
|
19
|
-
const tideClientConfig = buildTideClientConfig(apiSettings);
|
|
20
|
-
return await details(tideClientConfig, request, signal, languageCode);
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
const fetchAgents = async (signal: AbortSignal, apiSettings?: ApiSettingsState): Promise<BookingTravelAgent[]> => {
|
|
24
|
-
const tideClientConfig = buildTideClientConfig(apiSettings);
|
|
25
|
-
return await agents(tideClientConfig, signal);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
const fetchAccommodationViews = async (request: GenerateBookingAccommodationRequest, signal: AbortSignal, apiSettings?: ApiSettingsState) => {
|
|
29
|
-
const tideClientConfig = buildTideClientConfig(apiSettings);
|
|
30
|
-
return await generateBookingAccommodations(tideClientConfig, request, signal);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
const fetchCountries = async (signal: AbortSignal, apiSettings?: ApiSettingsState) => {
|
|
34
|
-
const tideClientConfig = buildTideClientConfig(apiSettings);
|
|
35
|
-
return await getCountries(tideClientConfig, signal);
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
const packageApi = {
|
|
39
|
-
fetchDetails,
|
|
40
|
-
fetchAgents,
|
|
41
|
-
fetchAccommodationViews,
|
|
42
|
-
fetchCountries
|
|
43
|
-
};
|
|
44
|
-
export default packageApi;
|
|
@@ -1,318 +0,0 @@
|
|
|
1
|
-
import React, { useContext } from 'react';
|
|
2
|
-
import { useSelector } from 'react-redux';
|
|
3
|
-
import {
|
|
4
|
-
getDateFromParams,
|
|
5
|
-
getFlightsFromParams,
|
|
6
|
-
getNumberFromParams,
|
|
7
|
-
getNumbersFromParams,
|
|
8
|
-
getRoomsFromParams,
|
|
9
|
-
getStringFromParams
|
|
10
|
-
} from '../../../shared/utils/query-string-util';
|
|
11
|
-
import {
|
|
12
|
-
fetchPackage,
|
|
13
|
-
setAccommodationViewId,
|
|
14
|
-
setAgentAdressId,
|
|
15
|
-
setBookingAttributes,
|
|
16
|
-
setBookingNumber,
|
|
17
|
-
setBookingOptions,
|
|
18
|
-
setBookingType,
|
|
19
|
-
setCalculateDeposit,
|
|
20
|
-
setCurrentStep,
|
|
21
|
-
setGeneratePaymentUrl,
|
|
22
|
-
setLanguageCode,
|
|
23
|
-
setOfficeId,
|
|
24
|
-
setProductAttributes,
|
|
25
|
-
setShowCommission,
|
|
26
|
-
setSkipPayment,
|
|
27
|
-
setTagIds,
|
|
28
|
-
setTranslations
|
|
29
|
-
} from './booking-slice';
|
|
30
|
-
|
|
31
|
-
import { isNil } from 'lodash';
|
|
32
|
-
import { useEffect } from 'react';
|
|
33
|
-
import Loader from '../../../shared/components/loader';
|
|
34
|
-
import { setApiKey, setApiUrl } from '../../api-settings-slice';
|
|
35
|
-
import StepRoute from '../../components/step-route';
|
|
36
|
-
import SettingsContext from '../../settings-context';
|
|
37
|
-
import { useAppDispatch } from '../../store';
|
|
38
|
-
import Confirmation from '../confirmation/confirmation';
|
|
39
|
-
import Error from '../error/error';
|
|
40
|
-
import FlightOptionsForm from '../flight-options';
|
|
41
|
-
import OptionsForm from '../product-options/options-form';
|
|
42
|
-
import RoomOptionsForm from '../room-options';
|
|
43
|
-
import Sidebar from '../sidebar';
|
|
44
|
-
import Summary from '../summary/summary';
|
|
45
|
-
import TravelersForm from '../travelers-form/travelers-form';
|
|
46
|
-
import {
|
|
47
|
-
CONFIRMATION_STEP,
|
|
48
|
-
ERROR_STEP,
|
|
49
|
-
FLIGHT_OPTIONS_FORM_STEP,
|
|
50
|
-
OPTIONS_FORM_STEP,
|
|
51
|
-
ROOM_OPTIONS_FORM_STEP,
|
|
52
|
-
SUMMARY_STEP,
|
|
53
|
-
TRAVELERS_FORM_STEP
|
|
54
|
-
} from './constants';
|
|
55
|
-
import {
|
|
56
|
-
selectApiSettings,
|
|
57
|
-
selectBookingAttributes,
|
|
58
|
-
selectBookingNumber,
|
|
59
|
-
selectBookingRooms,
|
|
60
|
-
selectCurrentStep,
|
|
61
|
-
selectIsUnavailable,
|
|
62
|
-
selectPackageDetails,
|
|
63
|
-
selectProductAttributes,
|
|
64
|
-
selectTranslations
|
|
65
|
-
} from './selectors';
|
|
66
|
-
|
|
67
|
-
interface BookingProps {
|
|
68
|
-
productCode: string;
|
|
69
|
-
productName: string;
|
|
70
|
-
thumbnailUrl?: string;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
const BookingSelfContained: React.FC<BookingProps> = ({ productCode, productName, thumbnailUrl }) => {
|
|
74
|
-
const {
|
|
75
|
-
officeId,
|
|
76
|
-
bookingOptions,
|
|
77
|
-
showSidebarDeposit,
|
|
78
|
-
showCommission,
|
|
79
|
-
includeFlights,
|
|
80
|
-
skipPaymentWithAgent,
|
|
81
|
-
generatePaymentUrl,
|
|
82
|
-
tagIds,
|
|
83
|
-
agentAdressId,
|
|
84
|
-
language,
|
|
85
|
-
apiUrl,
|
|
86
|
-
apiKey,
|
|
87
|
-
translationFiles,
|
|
88
|
-
roomOptions,
|
|
89
|
-
flightOptions,
|
|
90
|
-
accommodationViewId,
|
|
91
|
-
isOffer,
|
|
92
|
-
allowOption,
|
|
93
|
-
travellers
|
|
94
|
-
} = useContext(SettingsContext);
|
|
95
|
-
|
|
96
|
-
const dispatch = useAppDispatch();
|
|
97
|
-
|
|
98
|
-
const productAttributes = useSelector(selectProductAttributes);
|
|
99
|
-
const bookingAttributes = useSelector(selectBookingAttributes);
|
|
100
|
-
const rooms = useSelector(selectBookingRooms);
|
|
101
|
-
const bookingNumber = useSelector(selectBookingNumber);
|
|
102
|
-
const packageDetails = useSelector(selectPackageDetails);
|
|
103
|
-
const isUnvailable = useSelector(selectIsUnavailable);
|
|
104
|
-
const currentStep = useSelector(selectCurrentStep);
|
|
105
|
-
const apiSettings = useSelector(selectApiSettings);
|
|
106
|
-
const translations = useSelector(selectTranslations);
|
|
107
|
-
|
|
108
|
-
useEffect(() => {
|
|
109
|
-
dispatch(setSkipPayment(skipPaymentWithAgent ?? false));
|
|
110
|
-
dispatch(setGeneratePaymentUrl(generatePaymentUrl ?? false));
|
|
111
|
-
}, [skipPaymentWithAgent, generatePaymentUrl]);
|
|
112
|
-
|
|
113
|
-
useEffect(() => {
|
|
114
|
-
if (!isNil(apiUrl) && !isNil(apiKey)) {
|
|
115
|
-
dispatch(setApiUrl(apiUrl));
|
|
116
|
-
dispatch(setApiKey(apiKey));
|
|
117
|
-
}
|
|
118
|
-
}, [apiUrl, apiKey]);
|
|
119
|
-
|
|
120
|
-
useEffect(() => {
|
|
121
|
-
const params = new URLSearchParams(location.search);
|
|
122
|
-
const startDate = getDateFromParams(params, 'startDate');
|
|
123
|
-
const endDate = getDateFromParams(params, 'endDate');
|
|
124
|
-
const catalogueId = getNumberFromParams(params, 'catalogueId') ?? getNumberFromParams(params, 'catalog');
|
|
125
|
-
const rooms = getRoomsFromParams(params, 'rooms');
|
|
126
|
-
const flight = getFlightsFromParams(params, 'flight');
|
|
127
|
-
const flightRouteId = getStringFromParams(params, 'flightRouteId');
|
|
128
|
-
const vendorConfigurationId = getNumberFromParams(params, 'vendorConfigurationId');
|
|
129
|
-
const allotmentName = getStringFromParams(params, 'allotmentName');
|
|
130
|
-
const allotmentIds = getNumbersFromParams(params, 'allotmentId');
|
|
131
|
-
const tourCode = getStringFromParams(params, 'tourCode');
|
|
132
|
-
const bookingNumber = params.get('bookingNr') ?? undefined;
|
|
133
|
-
|
|
134
|
-
if (typeof window !== 'undefined') {
|
|
135
|
-
window.scrollTo(0, 0);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
if (!isNil(bookingNumber)) {
|
|
139
|
-
dispatch(setBookingNumber(bookingNumber));
|
|
140
|
-
dispatch(setCurrentStep(CONFIRMATION_STEP));
|
|
141
|
-
} else if (travellers.travelersFirstStep) {
|
|
142
|
-
dispatch(setCurrentStep(TRAVELERS_FORM_STEP));
|
|
143
|
-
} else if (!flightOptions.isHidden) {
|
|
144
|
-
dispatch(setCurrentStep(FLIGHT_OPTIONS_FORM_STEP));
|
|
145
|
-
} else if (!roomOptions.isHidden) {
|
|
146
|
-
dispatch(setCurrentStep(ROOM_OPTIONS_FORM_STEP));
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
if (!isNil(startDate) && !isNil(endDate) && !isNil(catalogueId) && !isNil(rooms)) {
|
|
150
|
-
dispatch(
|
|
151
|
-
setBookingAttributes({
|
|
152
|
-
startDate,
|
|
153
|
-
endDate,
|
|
154
|
-
catalogueId,
|
|
155
|
-
rooms,
|
|
156
|
-
flight,
|
|
157
|
-
includeFlights,
|
|
158
|
-
allotmentName,
|
|
159
|
-
allotmentIds,
|
|
160
|
-
tourCode,
|
|
161
|
-
flightRouteId,
|
|
162
|
-
vendorConfigurationId
|
|
163
|
-
})
|
|
164
|
-
);
|
|
165
|
-
} else {
|
|
166
|
-
console.error('Failure when setting booking attributes', startDate, endDate, catalogueId, rooms);
|
|
167
|
-
}
|
|
168
|
-
}, [location.search, setBookingAttributes, setBookingNumber, includeFlights]);
|
|
169
|
-
|
|
170
|
-
useEffect(() => {
|
|
171
|
-
if (!isNil(productCode) && !isNil(productName)) {
|
|
172
|
-
dispatch(
|
|
173
|
-
setProductAttributes({
|
|
174
|
-
productCode,
|
|
175
|
-
productName
|
|
176
|
-
})
|
|
177
|
-
);
|
|
178
|
-
} else {
|
|
179
|
-
console.error('Failure when setting product attributes', productCode, productName);
|
|
180
|
-
}
|
|
181
|
-
}, [productCode, productName, setProductAttributes]);
|
|
182
|
-
|
|
183
|
-
const getTranslations = async () => {
|
|
184
|
-
const translations = translationFiles?.map((x) =>
|
|
185
|
-
fetch(x.path)
|
|
186
|
-
.then((y) => y.json())
|
|
187
|
-
.then((z) => ({ language: x.language, value: z }))
|
|
188
|
-
);
|
|
189
|
-
return translations && (await Promise.all(translations));
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
useEffect(() => {
|
|
193
|
-
const loadTranslations = async () => {
|
|
194
|
-
const translations = await getTranslations();
|
|
195
|
-
dispatch(setTranslations(translations)); // Now dispatch the resolved value
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
loadTranslations();
|
|
199
|
-
|
|
200
|
-
dispatch(setOfficeId(officeId));
|
|
201
|
-
dispatch(setLanguageCode(language));
|
|
202
|
-
dispatch(setBookingOptions(bookingOptions));
|
|
203
|
-
dispatch(setCalculateDeposit(showSidebarDeposit));
|
|
204
|
-
dispatch(setShowCommission(showCommission));
|
|
205
|
-
if (tagIds && tagIds.length > 0) {
|
|
206
|
-
dispatch(setTagIds(tagIds ?? undefined));
|
|
207
|
-
}
|
|
208
|
-
dispatch(setAgentAdressId(agentAdressId ?? undefined));
|
|
209
|
-
if (agentAdressId && agentAdressId != 0) {
|
|
210
|
-
dispatch(setBookingType('b2b'));
|
|
211
|
-
}
|
|
212
|
-
if (accommodationViewId && accommodationViewId != 0) {
|
|
213
|
-
dispatch(setAccommodationViewId(accommodationViewId));
|
|
214
|
-
}
|
|
215
|
-
}, [
|
|
216
|
-
officeId,
|
|
217
|
-
language,
|
|
218
|
-
bookingOptions,
|
|
219
|
-
showSidebarDeposit,
|
|
220
|
-
showCommission,
|
|
221
|
-
setOfficeId,
|
|
222
|
-
setLanguageCode,
|
|
223
|
-
setCalculateDeposit,
|
|
224
|
-
tagIds,
|
|
225
|
-
agentAdressId,
|
|
226
|
-
accommodationViewId
|
|
227
|
-
]);
|
|
228
|
-
|
|
229
|
-
useEffect(() => {
|
|
230
|
-
if (!productAttributes || !bookingAttributes || !rooms?.length || !isNil(bookingNumber) || !isNil(packageDetails)) {
|
|
231
|
-
return;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
// Fetch data
|
|
235
|
-
const promise = dispatch(fetchPackage());
|
|
236
|
-
return () => {
|
|
237
|
-
promise.abort();
|
|
238
|
-
};
|
|
239
|
-
}, [productAttributes, bookingAttributes, rooms, bookingNumber, packageDetails, apiSettings.apiUrl, apiSettings.apiKey]);
|
|
240
|
-
|
|
241
|
-
const renderStep = () => {
|
|
242
|
-
switch (currentStep) {
|
|
243
|
-
case FLIGHT_OPTIONS_FORM_STEP:
|
|
244
|
-
return <StepRoute number={1} title={translations.STEPS.FLIGHT_OPTIONS} component={<FlightOptionsForm />} />;
|
|
245
|
-
case ROOM_OPTIONS_FORM_STEP:
|
|
246
|
-
return <StepRoute number={1 + (flightOptions.isHidden ? 0 : 1)} title={translations.STEPS.ROOM_OPTIONS} component={<RoomOptionsForm />} />;
|
|
247
|
-
case OPTIONS_FORM_STEP:
|
|
248
|
-
return (
|
|
249
|
-
<StepRoute
|
|
250
|
-
number={1 + (roomOptions.isHidden ? 0 : 1) + (flightOptions.isHidden ? 0 : 1)}
|
|
251
|
-
title={translations.STEPS.EXTRA_OPTIONS}
|
|
252
|
-
component={<OptionsForm />}
|
|
253
|
-
/>
|
|
254
|
-
);
|
|
255
|
-
case TRAVELERS_FORM_STEP:
|
|
256
|
-
return (
|
|
257
|
-
<StepRoute
|
|
258
|
-
number={2 + (roomOptions.isHidden ? 0 : 1) + (flightOptions.isHidden ? 0 : 1)}
|
|
259
|
-
title={translations.STEPS.PERSONAL_DETAILS}
|
|
260
|
-
component={<TravelersForm />}
|
|
261
|
-
/>
|
|
262
|
-
);
|
|
263
|
-
case SUMMARY_STEP:
|
|
264
|
-
return (
|
|
265
|
-
<StepRoute
|
|
266
|
-
number={3 + (roomOptions.isHidden ? 0 : 1) + (flightOptions.isHidden ? 0 : 1)}
|
|
267
|
-
title={translations.STEPS.SUMMARY}
|
|
268
|
-
component={<Summary />}
|
|
269
|
-
/>
|
|
270
|
-
);
|
|
271
|
-
case CONFIRMATION_STEP:
|
|
272
|
-
return (
|
|
273
|
-
<StepRoute
|
|
274
|
-
number={4 + (roomOptions.isHidden ? 0 : 1) + (flightOptions.isHidden ? 0 : 1)}
|
|
275
|
-
title={translations.STEPS.CONFIRMATION}
|
|
276
|
-
component={<Confirmation />}
|
|
277
|
-
/>
|
|
278
|
-
);
|
|
279
|
-
case ERROR_STEP:
|
|
280
|
-
return (
|
|
281
|
-
<StepRoute number={5 + (roomOptions.isHidden ? 0 : 1) + (flightOptions.isHidden ? 0 : 1)} title={translations.STEPS.ERROR} component={<Error />} />
|
|
282
|
-
);
|
|
283
|
-
}
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
return (
|
|
287
|
-
<>
|
|
288
|
-
{((productAttributes && bookingAttributes && packageDetails) || bookingNumber) && (
|
|
289
|
-
<div className="booking">
|
|
290
|
-
<div className="booking__content">
|
|
291
|
-
<div className="booking__panel">{renderStep()}</div>
|
|
292
|
-
<div className="backdrop" id="backdrop"></div>
|
|
293
|
-
{packageDetails && <Sidebar productName={productName} thumbnailUrl={thumbnailUrl} />}
|
|
294
|
-
</div>
|
|
295
|
-
</div>
|
|
296
|
-
)}
|
|
297
|
-
{!packageDetails && !bookingNumber && !isUnvailable && (
|
|
298
|
-
<div className="booking">
|
|
299
|
-
<div className="booking__loader">
|
|
300
|
-
<Loader />
|
|
301
|
-
<p className="booking__loader-text">
|
|
302
|
-
{allowOption ? translations.MAIN.PREPARING_DOSSIER : isOffer ? translations.MAIN.PREPARING_OFFER : translations.MAIN.PREPARING_BOOKING}
|
|
303
|
-
</p>
|
|
304
|
-
</div>
|
|
305
|
-
</div>
|
|
306
|
-
)}
|
|
307
|
-
{isUnvailable && (
|
|
308
|
-
<div className="booking">
|
|
309
|
-
<div className="booking__loader">
|
|
310
|
-
<p className="booking__loader-text">{translations.MAIN.PRODUCT_UNAVAILABLE}</p>
|
|
311
|
-
</div>
|
|
312
|
-
</div>
|
|
313
|
-
)}
|
|
314
|
-
</>
|
|
315
|
-
);
|
|
316
|
-
};
|
|
317
|
-
|
|
318
|
-
export default BookingSelfContained;
|