@qite/tide-booking-component 1.4.124 → 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 +26 -26
- package/build/build-cjs/index.js +40120 -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/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 +62 -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 +639 -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 +40074 -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/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 +62 -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 +639 -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,809 +0,0 @@
|
|
|
1
|
-
import React, { useMemo, useState } from 'react';
|
|
2
|
-
import Icon from '../../shared/components/icon';
|
|
3
|
-
|
|
4
|
-
type ContactValues = {
|
|
5
|
-
firstName: string;
|
|
6
|
-
lastName: string;
|
|
7
|
-
dateOfBirth: string;
|
|
8
|
-
nationality: string;
|
|
9
|
-
email: string;
|
|
10
|
-
phone: string;
|
|
11
|
-
message: string;
|
|
12
|
-
street: string;
|
|
13
|
-
houseNumber: string;
|
|
14
|
-
box: string;
|
|
15
|
-
postalCode: string;
|
|
16
|
-
city: string;
|
|
17
|
-
country: string;
|
|
18
|
-
// traveler 1
|
|
19
|
-
bookingType1: 'leisure' | 'business' | '';
|
|
20
|
-
gender1: 'female' | 'male' | 'other' | '';
|
|
21
|
-
|
|
22
|
-
// traveler 2
|
|
23
|
-
bookingType2: 'leisure' | 'business' | '';
|
|
24
|
-
gender2: 'female' | 'male' | 'other' | '';
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
type ContactErrors = Partial<Record<keyof ContactValues, string>>;
|
|
28
|
-
// const [touched, setTouched] = useState<Partial<Record<keyof ContactValues, boolean>>>({});
|
|
29
|
-
|
|
30
|
-
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
31
|
-
const phoneRegex = /^[+()\-.\s0-9]{8,20}$/;
|
|
32
|
-
|
|
33
|
-
// Small helper: checks YYYY-MM-DD parses to a real date
|
|
34
|
-
const isValidISODate = (value: string) => {
|
|
35
|
-
if (!/^\d{4}-\d{2}-\d{2}$/.test(value)) return false;
|
|
36
|
-
const d = new Date(value);
|
|
37
|
-
return !Number.isNaN(d.getTime()) && d.toISOString().slice(0, 10) === value;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
// You can expand this list later (or load from API)
|
|
41
|
-
const nationalityOptions = [
|
|
42
|
-
{ value: '', label: 'Selecteer nationaliteit' },
|
|
43
|
-
{ value: 'BE', label: 'Belgisch' },
|
|
44
|
-
{ value: 'NL', label: 'Nederlands' },
|
|
45
|
-
{ value: 'FR', label: 'Frans' },
|
|
46
|
-
{ value: 'DE', label: 'Duits' },
|
|
47
|
-
{ value: 'UK', label: 'Brits' },
|
|
48
|
-
{ value: 'US', label: 'Amerikaans' }
|
|
49
|
-
];
|
|
50
|
-
|
|
51
|
-
const countryOptions = [
|
|
52
|
-
{ value: '', label: 'Selecteer land' },
|
|
53
|
-
{ value: 'BE', label: 'België' },
|
|
54
|
-
{ value: 'NL', label: 'Nederland' },
|
|
55
|
-
{ value: 'FR', label: 'Frankrijk' },
|
|
56
|
-
{ value: 'DE', label: 'Duitsland' },
|
|
57
|
-
{ value: 'LU', label: 'Luxemburg' },
|
|
58
|
-
{ value: 'UK', label: 'Verenigd Koninkrijk' }
|
|
59
|
-
];
|
|
60
|
-
|
|
61
|
-
const PersonalContactForm: React.FC = () => {
|
|
62
|
-
const [values, setValues] = useState<ContactValues>({
|
|
63
|
-
firstName: '',
|
|
64
|
-
lastName: '',
|
|
65
|
-
dateOfBirth: '',
|
|
66
|
-
nationality: '',
|
|
67
|
-
email: '',
|
|
68
|
-
phone: '',
|
|
69
|
-
message: '',
|
|
70
|
-
street: '',
|
|
71
|
-
houseNumber: '',
|
|
72
|
-
box: '',
|
|
73
|
-
postalCode: '',
|
|
74
|
-
city: '',
|
|
75
|
-
country: '',
|
|
76
|
-
bookingType1: '',
|
|
77
|
-
gender1: '',
|
|
78
|
-
bookingType2: '',
|
|
79
|
-
gender2: ''
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
const [touched, setTouched] = useState<Partial<Record<keyof ContactValues, boolean>>>({});
|
|
83
|
-
const [errors, setErrors] = useState<ContactErrors>({});
|
|
84
|
-
const [submitted, setSubmitted] = useState(false);
|
|
85
|
-
const [isNationalityOpen, setIsNationalityOpen] = useState(false);
|
|
86
|
-
const [isCountryOpen, setIsCountryOpen] = useState(false);
|
|
87
|
-
|
|
88
|
-
const postalCodeRegex = /^[0-9A-Za-z\s-]{3,10}$/;
|
|
89
|
-
|
|
90
|
-
const validate = (v: ContactValues): ContactErrors => {
|
|
91
|
-
const e: ContactErrors = {};
|
|
92
|
-
|
|
93
|
-
if (!v.firstName.trim()) e.firstName = 'Voornaam is verplicht.';
|
|
94
|
-
if (!v.lastName.trim()) e.lastName = 'Achternaam is verplicht.';
|
|
95
|
-
|
|
96
|
-
if (!v.dateOfBirth.trim()) e.dateOfBirth = 'Geboortedatum is verplicht.';
|
|
97
|
-
else if (!isValidISODate(v.dateOfBirth.trim())) e.dateOfBirth = 'Vul een geldige geboortedatum in.';
|
|
98
|
-
|
|
99
|
-
if (!v.nationality.trim()) e.nationality = 'Nationaliteit is verplicht.';
|
|
100
|
-
|
|
101
|
-
if (!v.email.trim()) e.email = 'Email is verplicht.';
|
|
102
|
-
else if (!emailRegex.test(v.email.trim())) e.email = 'Vul een geldig e-mailadres in.';
|
|
103
|
-
|
|
104
|
-
if (v.phone.trim() && !phoneRegex.test(v.phone.trim())) {
|
|
105
|
-
e.phone = 'Vul een geldig telefoonnummer in.';
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
if (!v.message.trim()) e.message = 'Bericht is verplicht.';
|
|
109
|
-
else if (v.message.trim().length < 10) e.message = 'Bericht moet minstens 10 tekens zijn.';
|
|
110
|
-
|
|
111
|
-
if (!v.street.trim()) e.street = 'Straat is verplicht.';
|
|
112
|
-
if (!v.houseNumber.trim()) e.houseNumber = 'Nummer is verplicht.';
|
|
113
|
-
|
|
114
|
-
if (!v.postalCode.trim()) e.postalCode = 'Postcode is verplicht.';
|
|
115
|
-
else if (!postalCodeRegex.test(v.postalCode.trim())) e.postalCode = 'Vul een geldige postcode in.';
|
|
116
|
-
|
|
117
|
-
if (!v.city.trim()) e.city = 'Woonplaats is verplicht.';
|
|
118
|
-
if (!v.country.trim()) e.country = 'Land is verplicht.';
|
|
119
|
-
|
|
120
|
-
if (!v.gender1) e.gender1 = 'Geslacht is verplicht.';
|
|
121
|
-
if (!v.gender2) e.gender2 = 'Geslacht is verplicht.';
|
|
122
|
-
|
|
123
|
-
if (!v.bookingType1) e.bookingType1 = 'Type boeking is verplicht.';
|
|
124
|
-
if (!v.bookingType2) e.bookingType2 = 'Type boeking is verplicht.';
|
|
125
|
-
|
|
126
|
-
return e;
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
const currentErrors = useMemo(() => validate(values), [values]);
|
|
130
|
-
|
|
131
|
-
const setField = <K extends keyof ContactValues>(key: K, val: ContactValues[K]) => {
|
|
132
|
-
setValues((p) => ({ ...p, [key]: val }));
|
|
133
|
-
if (submitted || touched[key]) {
|
|
134
|
-
setErrors(validate({ ...values, [key]: val } as ContactValues));
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
const onBlur = (key: keyof ContactValues) => {
|
|
139
|
-
setTouched((p) => ({ ...p, [key]: true }));
|
|
140
|
-
setErrors(validate(values));
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
const onSubmit = (e: React.FormEvent) => {
|
|
144
|
-
e.preventDefault();
|
|
145
|
-
setSubmitted(true);
|
|
146
|
-
|
|
147
|
-
const eMap = validate(values);
|
|
148
|
-
setErrors(eMap);
|
|
149
|
-
|
|
150
|
-
if (Object.keys(eMap).length > 0) return;
|
|
151
|
-
|
|
152
|
-
console.log('Contact form submit:', values);
|
|
153
|
-
|
|
154
|
-
setValues({
|
|
155
|
-
firstName: '',
|
|
156
|
-
lastName: '',
|
|
157
|
-
dateOfBirth: '',
|
|
158
|
-
nationality: '',
|
|
159
|
-
email: '',
|
|
160
|
-
phone: '',
|
|
161
|
-
message: '',
|
|
162
|
-
street: '',
|
|
163
|
-
houseNumber: '',
|
|
164
|
-
box: '',
|
|
165
|
-
postalCode: '',
|
|
166
|
-
city: '',
|
|
167
|
-
country: '',
|
|
168
|
-
bookingType1: '',
|
|
169
|
-
gender1: '',
|
|
170
|
-
bookingType2: '',
|
|
171
|
-
gender2: ''
|
|
172
|
-
});
|
|
173
|
-
setTouched({});
|
|
174
|
-
setErrors({});
|
|
175
|
-
setSubmitted(false);
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
const showError = (key: keyof ContactValues) => {
|
|
179
|
-
const shouldShow = submitted || touched[key];
|
|
180
|
-
return shouldShow ? errors[key] : undefined;
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
return (
|
|
184
|
-
<div className="content content--background">
|
|
185
|
-
<div className="content__container content__container--medium">
|
|
186
|
-
<div className="content__title__row">
|
|
187
|
-
<h2 className="content__title">Persoonlijke informatie</h2>
|
|
188
|
-
</div>
|
|
189
|
-
|
|
190
|
-
<form className="contact" noValidate onSubmit={onSubmit}>
|
|
191
|
-
<div className="contact__card contact__card--headbooker">
|
|
192
|
-
<div className="contact__title">
|
|
193
|
-
<Icon name="ui-info-circle" width={24} height={24} />
|
|
194
|
-
<h4>Gaat de hoofdboeker mee op reis?</h4>
|
|
195
|
-
</div>
|
|
196
|
-
|
|
197
|
-
<div className="contact__form">
|
|
198
|
-
<div className="radiobutton-group">
|
|
199
|
-
<div className="radiobutton">
|
|
200
|
-
<label className="radiobutton__label">
|
|
201
|
-
<input type="radio" name="headBooker" value="yes" className="radiobutton__input" defaultChecked={true} />
|
|
202
|
-
<span>Ja</span>
|
|
203
|
-
</label>
|
|
204
|
-
</div>
|
|
205
|
-
|
|
206
|
-
<div className="radiobutton">
|
|
207
|
-
<label className="radiobutton__label">
|
|
208
|
-
<input type="radio" name="headBooker" value="no" className="radiobutton__input" />
|
|
209
|
-
<span>Nee</span>
|
|
210
|
-
</label>
|
|
211
|
-
</div>
|
|
212
|
-
</div>
|
|
213
|
-
</div>
|
|
214
|
-
</div>
|
|
215
|
-
<div className="contact__card">
|
|
216
|
-
<div className="contact__title">
|
|
217
|
-
<Icon name="ui-user" width={24} height={24} />
|
|
218
|
-
<h4>Reiziger 1</h4>
|
|
219
|
-
<span>volwassenen, hoofdboeker</span>
|
|
220
|
-
</div>
|
|
221
|
-
|
|
222
|
-
<div
|
|
223
|
-
className="contact__radio"
|
|
224
|
-
role="group"
|
|
225
|
-
aria-labelledby="bookingType-label"
|
|
226
|
-
aria-invalid={!!showError('bookingType1')}
|
|
227
|
-
aria-describedby="bookingType-error">
|
|
228
|
-
<span id="bookingType-label">Type boeking{/** add * if required */}</span>
|
|
229
|
-
|
|
230
|
-
<div className="radiobutton-group">
|
|
231
|
-
<div className="radiobutton">
|
|
232
|
-
<label className="radiobutton__label">
|
|
233
|
-
<input
|
|
234
|
-
type="radio"
|
|
235
|
-
name="bookingType1"
|
|
236
|
-
value="leisure"
|
|
237
|
-
className="radiobutton__input"
|
|
238
|
-
checked={values.bookingType1 === 'leisure'}
|
|
239
|
-
onChange={() => setField('bookingType1', 'leisure')}
|
|
240
|
-
onBlur={() => onBlur('bookingType1')}
|
|
241
|
-
/>
|
|
242
|
-
<span>Plezier</span>
|
|
243
|
-
</label>
|
|
244
|
-
</div>
|
|
245
|
-
|
|
246
|
-
<div className="radiobutton">
|
|
247
|
-
<label className="radiobutton__label">
|
|
248
|
-
<input
|
|
249
|
-
type="radio"
|
|
250
|
-
name="bookingType1"
|
|
251
|
-
value="business"
|
|
252
|
-
className="radiobutton__input"
|
|
253
|
-
checked={values.bookingType1 === 'business'}
|
|
254
|
-
onChange={() => setField('bookingType1', 'business')}
|
|
255
|
-
onBlur={() => onBlur('bookingType1')}
|
|
256
|
-
/>
|
|
257
|
-
<span>Zakelijk</span>
|
|
258
|
-
</label>
|
|
259
|
-
</div>
|
|
260
|
-
</div>
|
|
261
|
-
|
|
262
|
-
{showError('bookingType1') && (
|
|
263
|
-
<span className="contact__radio--error" id="bookingType-error">
|
|
264
|
-
{showError('bookingType1')}
|
|
265
|
-
</span>
|
|
266
|
-
)}
|
|
267
|
-
</div>
|
|
268
|
-
|
|
269
|
-
<div className="contact__radio" role="group" aria-labelledby="gender-label" aria-invalid={!!showError('gender1')} aria-describedby="gender-error">
|
|
270
|
-
<span id="gender-label">Geslacht*</span>
|
|
271
|
-
|
|
272
|
-
<div className="radiobutton-group">
|
|
273
|
-
<div className="radiobutton">
|
|
274
|
-
<label className="radiobutton__label">
|
|
275
|
-
<input
|
|
276
|
-
type="radio"
|
|
277
|
-
name="gender1"
|
|
278
|
-
value="female"
|
|
279
|
-
className="radiobutton__input"
|
|
280
|
-
checked={values.gender1 === 'female'}
|
|
281
|
-
onChange={() => setField('gender1', 'female')}
|
|
282
|
-
onBlur={() => onBlur('gender1')}
|
|
283
|
-
/>
|
|
284
|
-
<span>Vrouw</span>
|
|
285
|
-
</label>
|
|
286
|
-
</div>
|
|
287
|
-
|
|
288
|
-
<div className="radiobutton">
|
|
289
|
-
<label className="radiobutton__label">
|
|
290
|
-
<input
|
|
291
|
-
type="radio"
|
|
292
|
-
name="gender1"
|
|
293
|
-
value="male"
|
|
294
|
-
className="radiobutton__input"
|
|
295
|
-
checked={values.gender1 === 'male'}
|
|
296
|
-
onChange={() => setField('gender1', 'male')}
|
|
297
|
-
onBlur={() => onBlur('gender1')}
|
|
298
|
-
/>
|
|
299
|
-
<span>Man</span>
|
|
300
|
-
</label>
|
|
301
|
-
</div>
|
|
302
|
-
|
|
303
|
-
<div className="radiobutton">
|
|
304
|
-
<label className="radiobutton__label">
|
|
305
|
-
<input
|
|
306
|
-
type="radio"
|
|
307
|
-
name="gender1"
|
|
308
|
-
value="other"
|
|
309
|
-
className="radiobutton__input"
|
|
310
|
-
checked={values.gender1 === 'other'}
|
|
311
|
-
onChange={() => setField('gender1', 'other')}
|
|
312
|
-
onBlur={() => onBlur('gender1')}
|
|
313
|
-
/>
|
|
314
|
-
<span>Anders</span>
|
|
315
|
-
</label>
|
|
316
|
-
</div>
|
|
317
|
-
</div>
|
|
318
|
-
|
|
319
|
-
{showError('gender1') && (
|
|
320
|
-
<span className="contact__radio--error" id="gender-error">
|
|
321
|
-
{showError('gender1')}
|
|
322
|
-
</span>
|
|
323
|
-
)}
|
|
324
|
-
</div>
|
|
325
|
-
|
|
326
|
-
<div className="contact__form">
|
|
327
|
-
<label className="contact__form__group contact__form__group--33">
|
|
328
|
-
<span className="contact__form__label">Voornaam*</span>
|
|
329
|
-
<input
|
|
330
|
-
type="text"
|
|
331
|
-
className="contact__input"
|
|
332
|
-
placeholder="Enter your name"
|
|
333
|
-
aria-label="Enter your name"
|
|
334
|
-
value={values.firstName}
|
|
335
|
-
onChange={(e) => setField('firstName', e.target.value)}
|
|
336
|
-
onBlur={() => onBlur('firstName')}
|
|
337
|
-
aria-invalid={!!showError('firstName')}
|
|
338
|
-
aria-describedby="firstName-error"
|
|
339
|
-
/>
|
|
340
|
-
{showError('firstName') && (
|
|
341
|
-
<span className="contact__error" id="firstName-error">
|
|
342
|
-
{showError('firstName')}
|
|
343
|
-
</span>
|
|
344
|
-
)}
|
|
345
|
-
</label>
|
|
346
|
-
|
|
347
|
-
<label className="contact__form__group contact__form__group--33">
|
|
348
|
-
<span className="contact__form__label">Achternaam*</span>
|
|
349
|
-
<input
|
|
350
|
-
type="text"
|
|
351
|
-
className="contact__input"
|
|
352
|
-
placeholder="Enter your last name"
|
|
353
|
-
aria-label="Enter your last name"
|
|
354
|
-
value={values.lastName}
|
|
355
|
-
onChange={(e) => setField('lastName', e.target.value)}
|
|
356
|
-
onBlur={() => onBlur('lastName')}
|
|
357
|
-
aria-invalid={!!showError('lastName')}
|
|
358
|
-
aria-describedby="lastName-error"
|
|
359
|
-
/>
|
|
360
|
-
{showError('lastName') && (
|
|
361
|
-
<span className="contact__error" id="lastName-error">
|
|
362
|
-
{showError('lastName')}
|
|
363
|
-
</span>
|
|
364
|
-
)}
|
|
365
|
-
</label>
|
|
366
|
-
|
|
367
|
-
<label className="contact__form__group contact__form__group--33">
|
|
368
|
-
<span className="contact__form__label">Geboortedatum*</span>
|
|
369
|
-
<input
|
|
370
|
-
type="date"
|
|
371
|
-
className="contact__input"
|
|
372
|
-
aria-label="Enter your date of birth"
|
|
373
|
-
value={values.dateOfBirth}
|
|
374
|
-
onChange={(e) => setField('dateOfBirth', e.target.value)}
|
|
375
|
-
onBlur={() => onBlur('dateOfBirth')}
|
|
376
|
-
aria-invalid={!!showError('dateOfBirth')}
|
|
377
|
-
aria-describedby="dateOfBirth-error"
|
|
378
|
-
/>
|
|
379
|
-
{showError('dateOfBirth') && (
|
|
380
|
-
<span className="contact__error" id="dateOfBirth-error">
|
|
381
|
-
{showError('dateOfBirth')}
|
|
382
|
-
</span>
|
|
383
|
-
)}
|
|
384
|
-
</label>
|
|
385
|
-
|
|
386
|
-
<label className="contact__form__group contact__form__group--33">
|
|
387
|
-
<span className="contact__form__label">Nationaliteit*</span>
|
|
388
|
-
|
|
389
|
-
<div className={`contact__dropdown ${showError('nationality') ? 'contact__dropdown--error' : ''}`}>
|
|
390
|
-
<button
|
|
391
|
-
type="button"
|
|
392
|
-
className="contact__dropdown__trigger"
|
|
393
|
-
aria-haspopup="listbox"
|
|
394
|
-
aria-expanded={isNationalityOpen}
|
|
395
|
-
onClick={() => setIsNationalityOpen((o) => !o)}
|
|
396
|
-
onBlur={() => {
|
|
397
|
-
setIsNationalityOpen(false);
|
|
398
|
-
onBlur('nationality');
|
|
399
|
-
}}>
|
|
400
|
-
<span>{nationalityOptions.find((o) => o.value === values.nationality)?.label ?? 'Selecteer nationaliteit'}</span>
|
|
401
|
-
|
|
402
|
-
<Icon name="ui-chevron" width={16} height={16} />
|
|
403
|
-
</button>
|
|
404
|
-
|
|
405
|
-
{isNationalityOpen && (
|
|
406
|
-
<ul className="contact__dropdown__menu" role="listbox">
|
|
407
|
-
{nationalityOptions.map((option) => (
|
|
408
|
-
<li key={option.value}>
|
|
409
|
-
<button
|
|
410
|
-
type="button"
|
|
411
|
-
className={`contact__dropdown__option ${values.nationality === option.value ? 'contact__dropdown__option--active' : ''}`}
|
|
412
|
-
role="option"
|
|
413
|
-
aria-selected={values.nationality === option.value}
|
|
414
|
-
onMouseDown={() => {
|
|
415
|
-
// onMouseDown prevents blur-before-click
|
|
416
|
-
setField('nationality', option.value);
|
|
417
|
-
setIsNationalityOpen(false);
|
|
418
|
-
}}>
|
|
419
|
-
{option.label}
|
|
420
|
-
</button>
|
|
421
|
-
</li>
|
|
422
|
-
))}
|
|
423
|
-
</ul>
|
|
424
|
-
)}
|
|
425
|
-
</div>
|
|
426
|
-
|
|
427
|
-
{showError('nationality') && (
|
|
428
|
-
<span className="contact__error" id="nationality-error">
|
|
429
|
-
{showError('nationality')}
|
|
430
|
-
</span>
|
|
431
|
-
)}
|
|
432
|
-
</label>
|
|
433
|
-
|
|
434
|
-
<label className="contact__form__group contact__form__group--33">
|
|
435
|
-
<span className="contact__form__label">Email*</span>
|
|
436
|
-
<input
|
|
437
|
-
type="email"
|
|
438
|
-
className="contact__input"
|
|
439
|
-
placeholder="Enter your email"
|
|
440
|
-
aria-label="Enter your email"
|
|
441
|
-
value={values.email}
|
|
442
|
-
onChange={(e) => setField('email', e.target.value)}
|
|
443
|
-
onBlur={() => onBlur('email')}
|
|
444
|
-
aria-invalid={!!showError('email')}
|
|
445
|
-
aria-describedby="email-error"
|
|
446
|
-
/>
|
|
447
|
-
{showError('email') && (
|
|
448
|
-
<span className="contact__error" id="email-error">
|
|
449
|
-
{showError('email')}
|
|
450
|
-
</span>
|
|
451
|
-
)}
|
|
452
|
-
</label>
|
|
453
|
-
|
|
454
|
-
<label className="contact__form__group contact__form__group--33">
|
|
455
|
-
<span className="contact__form__label">Telefoonnummer</span>
|
|
456
|
-
<input
|
|
457
|
-
type="tel"
|
|
458
|
-
className="contact__input"
|
|
459
|
-
placeholder="Enter your phone number"
|
|
460
|
-
aria-label="Enter your phone number"
|
|
461
|
-
value={values.phone}
|
|
462
|
-
onChange={(e) => setField('phone', e.target.value)}
|
|
463
|
-
onBlur={() => onBlur('phone')}
|
|
464
|
-
aria-invalid={!!showError('phone')}
|
|
465
|
-
aria-describedby="phone-error"
|
|
466
|
-
/>
|
|
467
|
-
{showError('phone') && (
|
|
468
|
-
<span className="contact__error" id="phone-error">
|
|
469
|
-
{showError('phone')}
|
|
470
|
-
</span>
|
|
471
|
-
)}
|
|
472
|
-
</label>
|
|
473
|
-
|
|
474
|
-
<label className="contact__form__group contact__form__group--55">
|
|
475
|
-
<span className="contact__form__label">Straat*</span>
|
|
476
|
-
<input
|
|
477
|
-
type="text"
|
|
478
|
-
className="contact__input"
|
|
479
|
-
placeholder="Straatnaam"
|
|
480
|
-
aria-label="Straat"
|
|
481
|
-
value={values.street}
|
|
482
|
-
onChange={(e) => setField('street', e.target.value)}
|
|
483
|
-
onBlur={() => onBlur('street')}
|
|
484
|
-
aria-invalid={!!showError('street')}
|
|
485
|
-
aria-describedby="street-error"
|
|
486
|
-
/>
|
|
487
|
-
{showError('street') && (
|
|
488
|
-
<span className="contact__error" id="street-error">
|
|
489
|
-
{showError('street')}
|
|
490
|
-
</span>
|
|
491
|
-
)}
|
|
492
|
-
</label>
|
|
493
|
-
|
|
494
|
-
<label className="contact__form__group contact__form__group--25">
|
|
495
|
-
<span className="contact__form__label">Nummer*</span>
|
|
496
|
-
<input
|
|
497
|
-
type="text"
|
|
498
|
-
className="contact__input"
|
|
499
|
-
placeholder="Nr"
|
|
500
|
-
aria-label="Huisnummer"
|
|
501
|
-
value={values.houseNumber}
|
|
502
|
-
onChange={(e) => setField('houseNumber', e.target.value)}
|
|
503
|
-
onBlur={() => onBlur('houseNumber')}
|
|
504
|
-
aria-invalid={!!showError('houseNumber')}
|
|
505
|
-
aria-describedby="houseNumber-error"
|
|
506
|
-
/>
|
|
507
|
-
{showError('houseNumber') && (
|
|
508
|
-
<span className="contact__error" id="houseNumber-error">
|
|
509
|
-
{showError('houseNumber')}
|
|
510
|
-
</span>
|
|
511
|
-
)}
|
|
512
|
-
</label>
|
|
513
|
-
|
|
514
|
-
<label className="contact__form__group contact__form__group--25">
|
|
515
|
-
<span className="contact__form__label">Bus</span>
|
|
516
|
-
<input
|
|
517
|
-
type="text"
|
|
518
|
-
className="contact__input"
|
|
519
|
-
placeholder="Bus"
|
|
520
|
-
aria-label="Bus"
|
|
521
|
-
value={values.box}
|
|
522
|
-
onChange={(e) => setField('box', e.target.value)}
|
|
523
|
-
onBlur={() => onBlur('box')}
|
|
524
|
-
aria-invalid={!!showError('box')}
|
|
525
|
-
aria-describedby="box-error"
|
|
526
|
-
/>
|
|
527
|
-
{showError('box') && (
|
|
528
|
-
<span className="contact__error" id="box-error">
|
|
529
|
-
{showError('box')}
|
|
530
|
-
</span>
|
|
531
|
-
)}
|
|
532
|
-
</label>
|
|
533
|
-
|
|
534
|
-
<label className="contact__form__group contact__form__group--25">
|
|
535
|
-
<span className="contact__form__label">Postcode*</span>
|
|
536
|
-
<input
|
|
537
|
-
type="text"
|
|
538
|
-
className="contact__input"
|
|
539
|
-
placeholder="Postcode"
|
|
540
|
-
aria-label="Postcode"
|
|
541
|
-
value={values.postalCode}
|
|
542
|
-
onChange={(e) => setField('postalCode', e.target.value)}
|
|
543
|
-
onBlur={() => onBlur('postalCode')}
|
|
544
|
-
aria-invalid={!!showError('postalCode')}
|
|
545
|
-
aria-describedby="postalCode-error"
|
|
546
|
-
/>
|
|
547
|
-
{showError('postalCode') && (
|
|
548
|
-
<span className="contact__error" id="postalCode-error">
|
|
549
|
-
{showError('postalCode')}
|
|
550
|
-
</span>
|
|
551
|
-
)}
|
|
552
|
-
</label>
|
|
553
|
-
|
|
554
|
-
<label className="contact__form__group contact__form__group--33">
|
|
555
|
-
<span className="contact__form__label">Woonplaats*</span>
|
|
556
|
-
<input
|
|
557
|
-
type="text"
|
|
558
|
-
className="contact__input"
|
|
559
|
-
placeholder="Woonplaats"
|
|
560
|
-
aria-label="Woonplaats"
|
|
561
|
-
value={values.city}
|
|
562
|
-
onChange={(e) => setField('city', e.target.value)}
|
|
563
|
-
onBlur={() => onBlur('city')}
|
|
564
|
-
aria-invalid={!!showError('city')}
|
|
565
|
-
aria-describedby="city-error"
|
|
566
|
-
/>
|
|
567
|
-
{showError('city') && (
|
|
568
|
-
<span className="contact__error" id="city-error">
|
|
569
|
-
{showError('city')}
|
|
570
|
-
</span>
|
|
571
|
-
)}
|
|
572
|
-
</label>
|
|
573
|
-
|
|
574
|
-
<label className="contact__form__group contact__form__group--33">
|
|
575
|
-
<span className="contact__form__label">Land*</span>
|
|
576
|
-
|
|
577
|
-
<div className={`contact__dropdown ${showError('country') ? 'contact__dropdown--error' : ''}`}>
|
|
578
|
-
<button
|
|
579
|
-
type="button"
|
|
580
|
-
className="contact__dropdown__trigger"
|
|
581
|
-
aria-haspopup="listbox"
|
|
582
|
-
aria-expanded={isCountryOpen}
|
|
583
|
-
aria-describedby="country-error"
|
|
584
|
-
onClick={() => setIsCountryOpen((o) => !o)}
|
|
585
|
-
onBlur={() => {
|
|
586
|
-
setIsCountryOpen(false);
|
|
587
|
-
onBlur('country');
|
|
588
|
-
}}>
|
|
589
|
-
<span>{countryOptions.find((o) => o.value === values.country)?.label ?? 'Selecteer land'}</span>
|
|
590
|
-
<Icon name="ui-chevron" width={16} height={16} />
|
|
591
|
-
</button>
|
|
592
|
-
|
|
593
|
-
{isCountryOpen && (
|
|
594
|
-
<ul className="contact__dropdown__menu" role="listbox">
|
|
595
|
-
{countryOptions.map((option) => (
|
|
596
|
-
<li key={option.value}>
|
|
597
|
-
<button
|
|
598
|
-
type="button"
|
|
599
|
-
className={`contact__dropdown__option ${values.country === option.value ? 'contact__dropdown__option--active' : ''}`}
|
|
600
|
-
role="option"
|
|
601
|
-
aria-selected={values.country === option.value}
|
|
602
|
-
onMouseDown={() => {
|
|
603
|
-
// Prevent blur-before-click
|
|
604
|
-
setField('country', option.value);
|
|
605
|
-
setIsCountryOpen(false);
|
|
606
|
-
}}>
|
|
607
|
-
{option.label}
|
|
608
|
-
</button>
|
|
609
|
-
</li>
|
|
610
|
-
))}
|
|
611
|
-
</ul>
|
|
612
|
-
)}
|
|
613
|
-
</div>
|
|
614
|
-
|
|
615
|
-
{showError('country') && (
|
|
616
|
-
<span className="contact__error" id="country-error">
|
|
617
|
-
{showError('country')}
|
|
618
|
-
</span>
|
|
619
|
-
)}
|
|
620
|
-
</label>
|
|
621
|
-
</div>
|
|
622
|
-
</div>
|
|
623
|
-
|
|
624
|
-
<div className="contact__card">
|
|
625
|
-
<div className="contact__title">
|
|
626
|
-
<Icon name="ui-user" width={24} height={24} />
|
|
627
|
-
<h4>Reiziger 2</h4>
|
|
628
|
-
<span>volwassenen</span>
|
|
629
|
-
</div>
|
|
630
|
-
|
|
631
|
-
<div className="contact__radio" role="group" aria-labelledby="gender-label" aria-invalid={!!showError('gender1')} aria-describedby="gender-error">
|
|
632
|
-
<span id="gender-label">Geslacht*</span>
|
|
633
|
-
|
|
634
|
-
<div className="radiobutton-group">
|
|
635
|
-
<div className="radiobutton">
|
|
636
|
-
<label className="radiobutton__label">
|
|
637
|
-
<input
|
|
638
|
-
type="radio"
|
|
639
|
-
name="gender2"
|
|
640
|
-
value="female"
|
|
641
|
-
className="radiobutton__input"
|
|
642
|
-
checked={values.gender2 === 'female'}
|
|
643
|
-
onChange={() => setField('gender2', 'female')}
|
|
644
|
-
onBlur={() => onBlur('gender2')}
|
|
645
|
-
/>
|
|
646
|
-
<span>Vrouw</span>
|
|
647
|
-
</label>
|
|
648
|
-
</div>
|
|
649
|
-
|
|
650
|
-
<div className="radiobutton">
|
|
651
|
-
<label className="radiobutton__label">
|
|
652
|
-
<input
|
|
653
|
-
type="radio"
|
|
654
|
-
name="gender2"
|
|
655
|
-
value="male"
|
|
656
|
-
className="radiobutton__input"
|
|
657
|
-
checked={values.gender2 === 'male'}
|
|
658
|
-
onChange={() => setField('gender2', 'male')}
|
|
659
|
-
onBlur={() => onBlur('gender2')}
|
|
660
|
-
/>
|
|
661
|
-
<span>Man</span>
|
|
662
|
-
</label>
|
|
663
|
-
</div>
|
|
664
|
-
|
|
665
|
-
<div className="radiobutton">
|
|
666
|
-
<label className="radiobutton__label">
|
|
667
|
-
<input
|
|
668
|
-
type="radio"
|
|
669
|
-
name="gender2"
|
|
670
|
-
value="other"
|
|
671
|
-
className="radiobutton__input"
|
|
672
|
-
checked={values.gender2 === 'other'}
|
|
673
|
-
onChange={() => setField('gender2', 'other')}
|
|
674
|
-
onBlur={() => onBlur('gender2')}
|
|
675
|
-
/>
|
|
676
|
-
<span>Anders</span>
|
|
677
|
-
</label>
|
|
678
|
-
</div>
|
|
679
|
-
</div>
|
|
680
|
-
|
|
681
|
-
{showError('gender2') && (
|
|
682
|
-
<span className="contact__radio--error" id="gender-error">
|
|
683
|
-
{showError('gender2')}
|
|
684
|
-
</span>
|
|
685
|
-
)}
|
|
686
|
-
</div>
|
|
687
|
-
|
|
688
|
-
<div className="contact__form">
|
|
689
|
-
<label className="contact__form__group contact__form__group--50">
|
|
690
|
-
<span className="contact__form__label">Voornaam*</span>
|
|
691
|
-
<input
|
|
692
|
-
type="text"
|
|
693
|
-
className="contact__input"
|
|
694
|
-
placeholder="Enter your name"
|
|
695
|
-
aria-label="Enter your name"
|
|
696
|
-
value={values.firstName}
|
|
697
|
-
onChange={(e) => setField('firstName', e.target.value)}
|
|
698
|
-
onBlur={() => onBlur('firstName')}
|
|
699
|
-
aria-invalid={!!showError('firstName')}
|
|
700
|
-
aria-describedby="firstName-error"
|
|
701
|
-
/>
|
|
702
|
-
{showError('firstName') && (
|
|
703
|
-
<span className="contact__error" id="firstName-error">
|
|
704
|
-
{showError('firstName')}
|
|
705
|
-
</span>
|
|
706
|
-
)}
|
|
707
|
-
</label>
|
|
708
|
-
|
|
709
|
-
<label className="contact__form__group contact__form__group--50">
|
|
710
|
-
<span className="contact__form__label">Achternaam*</span>
|
|
711
|
-
<input
|
|
712
|
-
type="text"
|
|
713
|
-
className="contact__input"
|
|
714
|
-
placeholder="Enter your last name"
|
|
715
|
-
aria-label="Enter your last name"
|
|
716
|
-
value={values.lastName}
|
|
717
|
-
onChange={(e) => setField('lastName', e.target.value)}
|
|
718
|
-
onBlur={() => onBlur('lastName')}
|
|
719
|
-
aria-invalid={!!showError('lastName')}
|
|
720
|
-
aria-describedby="lastName-error"
|
|
721
|
-
/>
|
|
722
|
-
{showError('lastName') && (
|
|
723
|
-
<span className="contact__error" id="lastName-error">
|
|
724
|
-
{showError('lastName')}
|
|
725
|
-
</span>
|
|
726
|
-
)}
|
|
727
|
-
</label>
|
|
728
|
-
|
|
729
|
-
<label className="contact__form__group contact__form__group--50">
|
|
730
|
-
<span className="contact__form__label">Geboortedatum*</span>
|
|
731
|
-
<input
|
|
732
|
-
type="date"
|
|
733
|
-
className="contact__input"
|
|
734
|
-
aria-label="Enter your date of birth"
|
|
735
|
-
value={values.dateOfBirth}
|
|
736
|
-
onChange={(e) => setField('dateOfBirth', e.target.value)}
|
|
737
|
-
onBlur={() => onBlur('dateOfBirth')}
|
|
738
|
-
aria-invalid={!!showError('dateOfBirth')}
|
|
739
|
-
aria-describedby="dateOfBirth-error"
|
|
740
|
-
/>
|
|
741
|
-
{showError('dateOfBirth') && (
|
|
742
|
-
<span className="contact__error" id="dateOfBirth-error">
|
|
743
|
-
{showError('dateOfBirth')}
|
|
744
|
-
</span>
|
|
745
|
-
)}
|
|
746
|
-
</label>
|
|
747
|
-
|
|
748
|
-
<label className="contact__form__group contact__form__group--50">
|
|
749
|
-
<span className="contact__form__label">Nationaliteit*</span>
|
|
750
|
-
|
|
751
|
-
<div className={`contact__dropdown ${showError('nationality') ? 'contact__dropdown--error' : ''}`}>
|
|
752
|
-
<button
|
|
753
|
-
type="button"
|
|
754
|
-
className="contact__dropdown__trigger"
|
|
755
|
-
aria-haspopup="listbox"
|
|
756
|
-
aria-expanded={isNationalityOpen}
|
|
757
|
-
onClick={() => setIsNationalityOpen((o) => !o)}
|
|
758
|
-
onBlur={() => {
|
|
759
|
-
setIsNationalityOpen(false);
|
|
760
|
-
onBlur('nationality');
|
|
761
|
-
}}>
|
|
762
|
-
<span>{nationalityOptions.find((o) => o.value === values.nationality)?.label ?? 'Selecteer nationaliteit'}</span>
|
|
763
|
-
|
|
764
|
-
<Icon name="ui-chevron" width={16} height={16} />
|
|
765
|
-
</button>
|
|
766
|
-
|
|
767
|
-
{isNationalityOpen && (
|
|
768
|
-
<ul className="contact__dropdown__menu" role="listbox">
|
|
769
|
-
{nationalityOptions.map((option) => (
|
|
770
|
-
<li key={option.value}>
|
|
771
|
-
<button
|
|
772
|
-
type="button"
|
|
773
|
-
className={`contact__dropdown__option ${values.nationality === option.value ? 'contact__dropdown__option--active' : ''}`}
|
|
774
|
-
role="option"
|
|
775
|
-
aria-selected={values.nationality === option.value}
|
|
776
|
-
onMouseDown={() => {
|
|
777
|
-
// onMouseDown prevents blur-before-click
|
|
778
|
-
setField('nationality', option.value);
|
|
779
|
-
setIsNationalityOpen(false);
|
|
780
|
-
}}>
|
|
781
|
-
{option.label}
|
|
782
|
-
</button>
|
|
783
|
-
</li>
|
|
784
|
-
))}
|
|
785
|
-
</ul>
|
|
786
|
-
)}
|
|
787
|
-
</div>
|
|
788
|
-
|
|
789
|
-
{showError('nationality') && (
|
|
790
|
-
<span className="contact__error" id="nationality-error">
|
|
791
|
-
{showError('nationality')}
|
|
792
|
-
</span>
|
|
793
|
-
)}
|
|
794
|
-
</label>
|
|
795
|
-
</div>
|
|
796
|
-
</div>
|
|
797
|
-
|
|
798
|
-
<div className="contact__form__actions">
|
|
799
|
-
<button type="submit" className="cta cta--primary">
|
|
800
|
-
Send message
|
|
801
|
-
</button>
|
|
802
|
-
</div>
|
|
803
|
-
</form>
|
|
804
|
-
</div>
|
|
805
|
-
</div>
|
|
806
|
-
);
|
|
807
|
-
};
|
|
808
|
-
|
|
809
|
-
export default PersonalContactForm;
|