@qite/tide-booking-component 1.4.109 → 1.4.110
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/build/build-cjs/index.js +1351 -775
- package/build/build-cjs/src/booking-wizard/components/step-route.d.ts +2 -2
- package/build/build-cjs/src/booking-wizard/features/sidebar/sidebar-flight.d.ts +1 -0
- package/build/build-cjs/src/booking-wizard/features/sidebar/sidebar-util.d.ts +2 -1
- package/build/build-cjs/src/booking-wizard/features/sidebar/sidebar.d.ts +0 -31
- package/build/build-cjs/src/search-results/components/book-packaging-entry/index.d.ts +7 -0
- package/build/build-cjs/src/search-results/components/book-packaging-entry/wl-sidebar.d.ts +7 -0
- package/build/build-cjs/src/search-results/components/spinner/spinner.d.ts +4 -1
- package/build/build-cjs/src/search-results/store/search-results-slice.d.ts +5 -1
- package/build/build-cjs/src/shared/booking/BookingPanel.d.ts +13 -0
- package/build/build-cjs/src/shared/booking/Sidebar.d.ts +34 -0
- package/build/build-cjs/src/shared/booking/StepIndicators.d.ts +7 -0
- package/build/build-cjs/src/shared/components/flyin/flyin.d.ts +2 -0
- package/build/build-cjs/src/shared/components/flyin/packaging-flights-flyin.d.ts +2 -0
- package/build/build-cjs/src/shared/utils/localization-util.d.ts +1 -0
- package/build/build-esm/index.js +1335 -770
- package/build/build-esm/src/booking-wizard/components/step-route.d.ts +2 -2
- package/build/build-esm/src/booking-wizard/features/sidebar/sidebar-flight.d.ts +1 -0
- package/build/build-esm/src/booking-wizard/features/sidebar/sidebar-util.d.ts +2 -1
- package/build/build-esm/src/booking-wizard/features/sidebar/sidebar.d.ts +0 -31
- package/build/build-esm/src/search-results/components/book-packaging-entry/index.d.ts +7 -0
- package/build/build-esm/src/search-results/components/book-packaging-entry/wl-sidebar.d.ts +7 -0
- package/build/build-esm/src/search-results/components/spinner/spinner.d.ts +4 -1
- package/build/build-esm/src/search-results/store/search-results-slice.d.ts +5 -1
- package/build/build-esm/src/shared/booking/BookingPanel.d.ts +13 -0
- package/build/build-esm/src/shared/booking/Sidebar.d.ts +34 -0
- package/build/build-esm/src/shared/booking/StepIndicators.d.ts +7 -0
- package/build/build-esm/src/shared/components/flyin/flyin.d.ts +2 -0
- package/build/build-esm/src/shared/components/flyin/packaging-flights-flyin.d.ts +2 -0
- package/build/build-esm/src/shared/utils/localization-util.d.ts +1 -0
- package/package.json +1 -1
- package/src/booking-wizard/components/step-indicator.tsx +10 -31
- package/src/booking-wizard/components/step-route.tsx +39 -14
- package/src/booking-wizard/features/sidebar/index.tsx +10 -4
- package/src/booking-wizard/features/sidebar/sidebar-flight.tsx +2 -2
- package/src/booking-wizard/features/sidebar/sidebar-util.ts +1 -5
- package/src/booking-wizard/features/sidebar/sidebar.tsx +331 -326
- package/src/search-results/components/book-packaging-entry/index.tsx +48 -0
- package/src/search-results/components/book-packaging-entry/wl-sidebar.tsx +165 -0
- package/src/search-results/components/excursions/day-by-day-excursions.tsx +6 -2
- package/src/search-results/components/excursions/excursion-results.tsx +1 -1
- package/src/search-results/components/flight/flight-selection/independent-flight-selection.tsx +12 -3
- package/src/search-results/components/hotel/hotel-accommodation-results.tsx +6 -3
- package/src/search-results/components/itinerary/full-itinerary.tsx +1 -1
- package/src/search-results/components/itinerary/index.tsx +13 -12
- package/src/search-results/components/search-results-container/flight-search-results.tsx +1 -1
- package/src/search-results/components/search-results-container/search-results-container.tsx +239 -204
- package/src/search-results/components/spinner/spinner.tsx +12 -4
- package/src/search-results/store/search-results-slice.ts +16 -2
- package/src/shared/booking/BookingPanel.tsx +25 -0
- package/src/shared/booking/Sidebar.tsx +432 -0
- package/src/shared/booking/StepIndicators.tsx +30 -0
- package/src/shared/components/flyin/accommodation-flyin.tsx +3 -4
- package/src/shared/components/flyin/flights-flyin.tsx +1 -1
- package/src/shared/components/flyin/flyin.tsx +12 -4
- package/src/shared/components/flyin/group-tour-flyin.tsx +3 -4
- package/src/shared/components/flyin/packaging-flights-flyin.tsx +11 -4
- package/src/shared/components/icon.tsx +13 -0
- package/src/shared/translations/ar-SA.json +7 -1
- package/src/shared/translations/da-DK.json +7 -1
- package/src/shared/translations/de-DE.json +7 -1
- package/src/shared/translations/en-GB.json +8 -2
- package/src/shared/translations/es-ES.json +7 -1
- package/src/shared/translations/fr-BE.json +7 -1
- package/src/shared/translations/fr-FR.json +7 -1
- package/src/shared/translations/is-IS.json +7 -1
- package/src/shared/translations/it-IT.json +7 -1
- package/src/shared/translations/ja-JP.json +7 -1
- package/src/shared/translations/nl-BE.json +7 -1
- package/src/shared/translations/nl-NL.json +7 -1
- package/src/shared/translations/no-NO.json +7 -1
- package/src/shared/translations/pl-PL.json +7 -1
- package/src/shared/translations/pt-PT.json +7 -1
- package/src/shared/translations/sv-SE.json +7 -1
- package/src/shared/utils/localization-util.ts +8 -0
- package/styles/components/_loader.scss +82 -0
- package/styles/components/_search.scss +9 -2
- package/styles/content-blocks-variables.scss +14 -14
- /package/build/build-cjs/src/{booking-wizard/components → shared/booking}/product-card.d.ts +0 -0
- /package/build/build-esm/src/{booking-wizard/components → shared/booking}/product-card.d.ts +0 -0
- /package/src/{booking-wizard/components → shared/booking}/product-card.tsx +0 -0
package/build/build-esm/index.js
CHANGED
|
@@ -628,6 +628,7 @@ var SRP$f = {
|
|
|
628
628
|
DEPARTURE_ASC: 'تاريخ المغادرة (الأقرب أولاً)',
|
|
629
629
|
FILTERS: 'عوامل التصفية',
|
|
630
630
|
SHOW_ITINERARY: 'عرض خط سير الرحلة',
|
|
631
|
+
VIEW_BOOKING: 'عرض الحجز',
|
|
631
632
|
ITINERARY_TITLE: 'ملخص رحلتك',
|
|
632
633
|
DOSSIER_NUMBER: 'رقم الملف',
|
|
633
634
|
PACKAGE_PRICE_PER_PERSON: 'سعر الباقة للشخص الواحد',
|
|
@@ -661,7 +662,12 @@ var SRP$f = {
|
|
|
661
662
|
DURATION_ASC: 'المدة تصاعدياً',
|
|
662
663
|
DURATION_DESC: 'المدة تنازلياً',
|
|
663
664
|
TRAVEL_GROUP: 'مجموعة المسافرين',
|
|
664
|
-
EXCURSION: 'رحلة'
|
|
665
|
+
EXCURSION: 'رحلة',
|
|
666
|
+
LOADING_EXCURSIONS: 'جارٍ تحميل الرحلات...',
|
|
667
|
+
LOADING_FLIGHTS: 'جارٍ تحميل الرحلات الجوية...',
|
|
668
|
+
LOADING_ACCOMMODATIONS: 'جارٍ تحميل الإقامات...',
|
|
669
|
+
LOADING_ITINERARY: 'جارٍ تحميل خط سير الرحلة...',
|
|
670
|
+
LOADING_OPTIONS: 'جارٍ تحميل الخيارات...'
|
|
665
671
|
};
|
|
666
672
|
var ITINERARY$f = {
|
|
667
673
|
DAY: 'اليوم',
|
|
@@ -1041,6 +1047,7 @@ var SRP$e = {
|
|
|
1041
1047
|
DEPARTURE_ASC: 'Afrejsedato (snarest først)',
|
|
1042
1048
|
FILTERS: 'Filtre',
|
|
1043
1049
|
SHOW_ITINERARY: 'Vis rejseplan',
|
|
1050
|
+
VIEW_BOOKING: 'Se booking',
|
|
1044
1051
|
ITINERARY_TITLE: 'Din rejseoversigt',
|
|
1045
1052
|
DOSSIER_NUMBER: 'Sagsnummer',
|
|
1046
1053
|
PACKAGE_PRICE_PER_PERSON: 'pakkepris pr. person',
|
|
@@ -1074,7 +1081,12 @@ var SRP$e = {
|
|
|
1074
1081
|
DURATION_ASC: 'Varighed stigende',
|
|
1075
1082
|
DURATION_DESC: 'Varighed faldende',
|
|
1076
1083
|
TRAVEL_GROUP: 'Rejseselskab',
|
|
1077
|
-
EXCURSION: 'Udflugt'
|
|
1084
|
+
EXCURSION: 'Udflugt',
|
|
1085
|
+
LOADING_EXCURSIONS: 'Indlæser udflugter...',
|
|
1086
|
+
LOADING_FLIGHTS: 'Indlæser fly...',
|
|
1087
|
+
LOADING_ACCOMMODATIONS: 'Indlæser indkvarteringer...',
|
|
1088
|
+
LOADING_ITINERARY: 'Indlæser rejseplan...',
|
|
1089
|
+
LOADING_OPTIONS: 'Indlæser muligheder...'
|
|
1078
1090
|
};
|
|
1079
1091
|
var ITINERARY$e = {
|
|
1080
1092
|
DAY: 'Dag',
|
|
@@ -1459,6 +1471,7 @@ var SRP$d = {
|
|
|
1459
1471
|
DEPARTURE_ASC: 'Abreisedatum (früheste zuerst)',
|
|
1460
1472
|
FILTERS: 'Filter',
|
|
1461
1473
|
SHOW_ITINERARY: 'Reiseverlauf anzeigen',
|
|
1474
|
+
VIEW_BOOKING: 'Buchung anzeigen',
|
|
1462
1475
|
ITINERARY_TITLE: 'Ihre Reiseübersicht',
|
|
1463
1476
|
DOSSIER_NUMBER: 'Vorgangsnummer',
|
|
1464
1477
|
PACKAGE_PRICE_PER_PERSON: 'Paketpreis pro Person',
|
|
@@ -1488,7 +1501,12 @@ var SRP$d = {
|
|
|
1488
1501
|
ARRIVAL_AIRPORTS: 'Ankunftsflughäfen',
|
|
1489
1502
|
PRICE: 'Preis',
|
|
1490
1503
|
TRAVEL_GROUP: 'Reisegruppe',
|
|
1491
|
-
EXCURSION: 'Ausflug'
|
|
1504
|
+
EXCURSION: 'Ausflug',
|
|
1505
|
+
LOADING_EXCURSIONS: 'Lade Ausflüge...',
|
|
1506
|
+
LOADING_FLIGHTS: 'Lade Flüge...',
|
|
1507
|
+
LOADING_ACCOMMODATIONS: 'Lade Unterkünfte...',
|
|
1508
|
+
LOADING_ITINERARY: 'Lade Reiseverlauf...',
|
|
1509
|
+
LOADING_OPTIONS: 'Lade Optionen...'
|
|
1492
1510
|
};
|
|
1493
1511
|
var ITINERARY$d = {
|
|
1494
1512
|
DAY: 'Tag',
|
|
@@ -1573,7 +1591,7 @@ var PRODUCT$c = {
|
|
|
1573
1591
|
STAY_INCLUDED: 'Stay included',
|
|
1574
1592
|
FLIGHT_INCLUDED: 'Flight included',
|
|
1575
1593
|
TRANSFER_INCLUDED: 'Transfer included',
|
|
1576
|
-
LOADING_PRICE: '
|
|
1594
|
+
LOADING_PRICE: 'Loading price...',
|
|
1577
1595
|
PER_PERSON: 'Per person',
|
|
1578
1596
|
PER_NIGHT: 'Per night',
|
|
1579
1597
|
PER_PERSON_PER_NIGHT: 'Per person / per night',
|
|
@@ -1876,6 +1894,7 @@ var SRP$c = {
|
|
|
1876
1894
|
DEPARTURE_ASC: 'Departure date (soonest first)',
|
|
1877
1895
|
FILTERS: 'Filters',
|
|
1878
1896
|
SHOW_ITINERARY: 'Show itinerary',
|
|
1897
|
+
VIEW_BOOKING: 'View booking',
|
|
1879
1898
|
ITINERARY_TITLE: 'Your trip summary',
|
|
1880
1899
|
DOSSIER_NUMBER: 'File number',
|
|
1881
1900
|
PACKAGE_PRICE_PER_PERSON: 'package price per person',
|
|
@@ -1905,7 +1924,12 @@ var SRP$c = {
|
|
|
1905
1924
|
DEPARTURE_AIRPORTS: 'Departure airports',
|
|
1906
1925
|
ARRIVAL_AIRPORTS: 'Arrival airports',
|
|
1907
1926
|
TRAVEL_GROUP: 'Travel group',
|
|
1908
|
-
EXCURSION: 'Excursion'
|
|
1927
|
+
EXCURSION: 'Excursion',
|
|
1928
|
+
LOADING_EXCURSIONS: 'Loading excursions...',
|
|
1929
|
+
LOADING_FLIGHTS: 'Loading flights...',
|
|
1930
|
+
LOADING_ACCOMMODATIONS: 'Loading accommodations...',
|
|
1931
|
+
LOADING_ITINERARY: 'Loading itinerary...',
|
|
1932
|
+
LOADING_OPTIONS: 'Loading options...'
|
|
1909
1933
|
};
|
|
1910
1934
|
var ITINERARY$c = {
|
|
1911
1935
|
DAY: 'Day',
|
|
@@ -2290,6 +2314,7 @@ var SRP$b = {
|
|
|
2290
2314
|
DEPARTURE_ASC: 'Fecha de salida (más próxima primero)',
|
|
2291
2315
|
FILTERS: 'Filtros',
|
|
2292
2316
|
SHOW_ITINERARY: 'Mostrar itinerario',
|
|
2317
|
+
VIEW_BOOKING: 'Ver reserva',
|
|
2293
2318
|
ITINERARY_TITLE: 'Resumen de tu viaje',
|
|
2294
2319
|
DOSSIER_NUMBER: 'Número de expediente',
|
|
2295
2320
|
PACKAGE_PRICE_PER_PERSON: 'precio del paquete por persona',
|
|
@@ -2319,7 +2344,12 @@ var SRP$b = {
|
|
|
2319
2344
|
ARRIVAL_AIRPORTS: 'Aeropuertos de llegada',
|
|
2320
2345
|
PRICE: 'Precio',
|
|
2321
2346
|
TRAVEL_GROUP: 'Grupo de viaje',
|
|
2322
|
-
EXCURSION: 'Excursión'
|
|
2347
|
+
EXCURSION: 'Excursión',
|
|
2348
|
+
LOADING_EXCURSIONS: 'Cargando excursiones...',
|
|
2349
|
+
LOADING_FLIGHTS: 'Cargando vuelos...',
|
|
2350
|
+
LOADING_ACCOMMODATIONS: 'Cargando alojamientos...',
|
|
2351
|
+
LOADING_ITINERARY: 'Cargando itinerario...',
|
|
2352
|
+
LOADING_OPTIONS: 'Cargando opciones...'
|
|
2323
2353
|
};
|
|
2324
2354
|
var ITINERARY$b = {
|
|
2325
2355
|
DAY: 'Día',
|
|
@@ -2708,6 +2738,7 @@ var SRP$a = {
|
|
|
2708
2738
|
DEPARTURE_ASC: 'Date de départ (la plus proche d’abord)',
|
|
2709
2739
|
FILTERS: 'Filtres',
|
|
2710
2740
|
SHOW_ITINERARY: 'Afficher l’itinéraire',
|
|
2741
|
+
VIEW_BOOKING: 'Voir la réservation',
|
|
2711
2742
|
ITINERARY_TITLE: 'Résumé de votre voyage',
|
|
2712
2743
|
DOSSIER_NUMBER: 'Numéro de dossier',
|
|
2713
2744
|
PACKAGE_PRICE_PER_PERSON: 'prix du forfait par personne',
|
|
@@ -2737,7 +2768,12 @@ var SRP$a = {
|
|
|
2737
2768
|
ARRIVAL_AIRPORTS: 'Aéroports d’arrivée',
|
|
2738
2769
|
PRICE: 'Prix',
|
|
2739
2770
|
TRAVEL_GROUP: 'Groupe de voyageurs',
|
|
2740
|
-
EXCURSION: 'Excursion'
|
|
2771
|
+
EXCURSION: 'Excursion',
|
|
2772
|
+
LOADING_EXCURSIONS: 'Chargement des excursions...',
|
|
2773
|
+
LOADING_FLIGHTS: 'Chargement des vols...',
|
|
2774
|
+
LOADING_ACCOMMODATIONS: 'Chargement des hébergements...',
|
|
2775
|
+
LOADING_ITINERARY: 'Chargement de l’itinéraire...',
|
|
2776
|
+
LOADING_OPTIONS: 'Chargement des options...'
|
|
2741
2777
|
};
|
|
2742
2778
|
var ITINERARY$a = {
|
|
2743
2779
|
DAY: 'Jour',
|
|
@@ -3121,6 +3157,7 @@ var SRP$9 = {
|
|
|
3121
3157
|
DEPARTURE_ASC: 'Date de départ (la plus proche d’abord)',
|
|
3122
3158
|
FILTERS: 'Filtres',
|
|
3123
3159
|
SHOW_ITINERARY: 'Afficher l’itinéraire',
|
|
3160
|
+
VIEW_BOOKING: 'Voir la réservation',
|
|
3124
3161
|
ITINERARY_TITLE: 'Résumé de votre voyage',
|
|
3125
3162
|
DOSSIER_NUMBER: 'Numéro de dossier',
|
|
3126
3163
|
PACKAGE_PRICE_PER_PERSON: 'prix du forfait par personne',
|
|
@@ -3150,7 +3187,12 @@ var SRP$9 = {
|
|
|
3150
3187
|
ARRIVAL_AIRPORTS: 'Aéroports d’arrivée',
|
|
3151
3188
|
PRICE: 'Prix',
|
|
3152
3189
|
TRAVEL_GROUP: 'Groupe de voyageurs',
|
|
3153
|
-
EXCURSION: 'Excursion'
|
|
3190
|
+
EXCURSION: 'Excursion',
|
|
3191
|
+
LOADING_EXCURSIONS: 'Chargement des excursions...',
|
|
3192
|
+
LOADING_FLIGHTS: 'Chargement des vols...',
|
|
3193
|
+
LOADING_ACCOMMODATIONS: 'Chargement des hébergements...',
|
|
3194
|
+
LOADING_ITINERARY: 'Chargement de l’itinéraire...',
|
|
3195
|
+
LOADING_OPTIONS: 'Chargement des options...'
|
|
3154
3196
|
};
|
|
3155
3197
|
var ITINERARY$9 = {
|
|
3156
3198
|
DAY: 'Jour',
|
|
@@ -3534,6 +3576,7 @@ var SRP$8 = {
|
|
|
3534
3576
|
DEPARTURE_ASC: 'Brottfarardagur (nærst fyrst)',
|
|
3535
3577
|
FILTERS: 'Síur',
|
|
3536
3578
|
SHOW_ITINERARY: 'Sýna ferðaráætlun',
|
|
3579
|
+
VIEW_BOOKING: 'Skoða bókun',
|
|
3537
3580
|
ITINERARY_TITLE: 'Yfirlit ferðarinnar',
|
|
3538
3581
|
DOSSIER_NUMBER: 'Skrárnúmer',
|
|
3539
3582
|
PACKAGE_PRICE_PER_PERSON: 'pakka verð á mann',
|
|
@@ -3563,7 +3606,12 @@ var SRP$8 = {
|
|
|
3563
3606
|
ARRIVAL_AIRPORTS: 'Komuflugvellir',
|
|
3564
3607
|
PRICE: 'Verð',
|
|
3565
3608
|
TRAVEL_GROUP: 'Ferðahópur',
|
|
3566
|
-
EXCURSION: 'Útflutningur'
|
|
3609
|
+
EXCURSION: 'Útflutningur',
|
|
3610
|
+
LOADING_EXCURSIONS: 'Hleðst inn í útflutninga...',
|
|
3611
|
+
LOADING_FLIGHTS: 'Hleðst inn í flug...',
|
|
3612
|
+
LOADING_ACCOMMODATIONS: 'Hleðst inn í gistingar...',
|
|
3613
|
+
LOADING_ITINERARY: 'Hleðst inn í ferðaráætlun...',
|
|
3614
|
+
LOADING_OPTIONS: 'Hleðst inn í valkosti...'
|
|
3567
3615
|
};
|
|
3568
3616
|
var ITINERARY$8 = {
|
|
3569
3617
|
DAY: 'Dagur',
|
|
@@ -3948,6 +3996,7 @@ var SRP$7 = {
|
|
|
3948
3996
|
DEPARTURE_ASC: 'Data di partenza (prima la più vicina)',
|
|
3949
3997
|
FILTERS: 'Filtri',
|
|
3950
3998
|
SHOW_ITINERARY: 'Mostra itinerario',
|
|
3999
|
+
VIEW_BOOKING: 'Visualizza prenotazione',
|
|
3951
4000
|
ITINERARY_TITLE: 'Riepilogo del tuo viaggio',
|
|
3952
4001
|
DOSSIER_NUMBER: 'Numero di pratica',
|
|
3953
4002
|
PACKAGE_PRICE_PER_PERSON: 'prezzo pacchetto per persona',
|
|
@@ -3977,7 +4026,12 @@ var SRP$7 = {
|
|
|
3977
4026
|
ARRIVAL_AIRPORTS: 'Aeroporti di arrivo',
|
|
3978
4027
|
PRICE: 'Prezzo',
|
|
3979
4028
|
TRAVEL_GROUP: 'Gruppo di viaggio',
|
|
3980
|
-
EXCURSION: 'Escursione'
|
|
4029
|
+
EXCURSION: 'Escursione',
|
|
4030
|
+
LOADING_EXCURSIONS: 'Caricamento delle escursioni...',
|
|
4031
|
+
LOADING_FLIGHTS: 'Caricamento dei voli...',
|
|
4032
|
+
LOADING_ACCOMMODATIONS: 'Caricamento degli alloggi...',
|
|
4033
|
+
LOADING_ITINERARY: "Caricamento dell'itinerario...",
|
|
4034
|
+
LOADING_OPTIONS: 'Caricamento delle opzioni...'
|
|
3981
4035
|
};
|
|
3982
4036
|
var ITINERARY$7 = {
|
|
3983
4037
|
DAY: 'Giorno',
|
|
@@ -4366,6 +4420,7 @@ var SRP$6 = {
|
|
|
4366
4420
|
DEPARTURE_ASC: 'Vertrekdatum (dichtstbij eerst)',
|
|
4367
4421
|
FILTERS: 'Filters',
|
|
4368
4422
|
SHOW_ITINERARY: 'Toon reisplan',
|
|
4423
|
+
VIEW_BOOKING: 'Bekijk boeking',
|
|
4369
4424
|
ITINERARY_TITLE: 'Overzicht van je reis',
|
|
4370
4425
|
DOSSIER_NUMBER: 'Dossiernummer',
|
|
4371
4426
|
PACKAGE_PRICE_PER_PERSON: 'pakketprijs per persoon',
|
|
@@ -4395,7 +4450,12 @@ var SRP$6 = {
|
|
|
4395
4450
|
ARRIVAL_AIRPORTS: 'Aankomstluchthavens',
|
|
4396
4451
|
PRICE: 'Prijs',
|
|
4397
4452
|
TRAVEL_GROUP: 'Reisgezelschap',
|
|
4398
|
-
EXCURSION: 'Excursie'
|
|
4453
|
+
EXCURSION: 'Excursie',
|
|
4454
|
+
LOADING_EXCURSIONS: 'Excursies laden...',
|
|
4455
|
+
LOADING_FLIGHTS: 'Vluchten laden...',
|
|
4456
|
+
LOADING_ACCOMMODATIONS: 'Accommodaties laden...',
|
|
4457
|
+
LOADING_ITINERARY: 'Reisplan laden...',
|
|
4458
|
+
LOADING_OPTIONS: 'Opties laden...'
|
|
4399
4459
|
};
|
|
4400
4460
|
var ITINERARY$6 = {
|
|
4401
4461
|
DAY: 'Dag',
|
|
@@ -4780,6 +4840,7 @@ var SRP$5 = {
|
|
|
4780
4840
|
DEPARTURE_ASC: 'Vertrekdatum (dichtstbij eerst)',
|
|
4781
4841
|
FILTERS: 'Filters',
|
|
4782
4842
|
SHOW_ITINERARY: 'Toon reisplan',
|
|
4843
|
+
VIEW_BOOKING: 'Bekijk boeking',
|
|
4783
4844
|
ITINERARY_TITLE: 'Overzicht van je reis',
|
|
4784
4845
|
DOSSIER_NUMBER: 'Dossiernummer',
|
|
4785
4846
|
PACKAGE_PRICE_PER_PERSON: 'pakketprijs per persoon',
|
|
@@ -4809,7 +4870,12 @@ var SRP$5 = {
|
|
|
4809
4870
|
ARRIVAL_AIRPORTS: 'Aankomstluchthavens',
|
|
4810
4871
|
PRICE: 'Prijs',
|
|
4811
4872
|
TRAVEL_GROUP: 'Reisgezelschap',
|
|
4812
|
-
EXCURSION: 'Excursie'
|
|
4873
|
+
EXCURSION: 'Excursie',
|
|
4874
|
+
LOADING_EXCURSIONS: 'Excursies laden...',
|
|
4875
|
+
LOADING_FLIGHTS: 'Vluchten laden...',
|
|
4876
|
+
LOADING_ACCOMMODATIONS: 'Accommodaties laden...',
|
|
4877
|
+
LOADING_ITINERARY: 'Reisplan laden...',
|
|
4878
|
+
LOADING_OPTIONS: 'Opties laden...'
|
|
4813
4879
|
};
|
|
4814
4880
|
var ITINERARY$5 = {
|
|
4815
4881
|
DAY: 'Dag',
|
|
@@ -5194,6 +5260,7 @@ var SRP$4 = {
|
|
|
5194
5260
|
DEPARTURE_ASC: 'Avreisedato (nærmeste først)',
|
|
5195
5261
|
FILTERS: 'Filtre',
|
|
5196
5262
|
SHOW_ITINERARY: 'Vis reiserute',
|
|
5263
|
+
VIEW_BOOKING: 'Se bestilling',
|
|
5197
5264
|
ITINERARY_TITLE: 'Din reisemåloversikt',
|
|
5198
5265
|
DOSSIER_NUMBER: 'Saksnummer',
|
|
5199
5266
|
PACKAGE_PRICE_PER_PERSON: 'pakkepris per person',
|
|
@@ -5223,7 +5290,12 @@ var SRP$4 = {
|
|
|
5223
5290
|
ARRIVAL_AIRPORTS: 'Ankomstflyplasser',
|
|
5224
5291
|
PRICE: 'Pris',
|
|
5225
5292
|
TRAVEL_GROUP: 'Reisefølge',
|
|
5226
|
-
EXCURSION: 'Utflukt'
|
|
5293
|
+
EXCURSION: 'Utflukt',
|
|
5294
|
+
LOADING_EXCURSIONS: 'Laster utflukter...',
|
|
5295
|
+
LOADING_FLIGHTS: 'Laster flyvninger...',
|
|
5296
|
+
LOADING_ACCOMMODATIONS: 'Laster overnattinger...',
|
|
5297
|
+
LOADING_ITINERARY: 'Laster reiserute...',
|
|
5298
|
+
LOADING_OPTIONS: 'Laster alternativer...'
|
|
5227
5299
|
};
|
|
5228
5300
|
var ITINERARY$4 = {
|
|
5229
5301
|
DAY: 'Dag',
|
|
@@ -5608,6 +5680,7 @@ var SRP$3 = {
|
|
|
5608
5680
|
DEPARTURE_ASC: 'Data wyjazdu (najbliższa najpierw)',
|
|
5609
5681
|
FILTERS: 'Filtry',
|
|
5610
5682
|
SHOW_ITINERARY: 'Pokaż plan podróży',
|
|
5683
|
+
VIEW_BOOKING: 'Zobacz rezerwację',
|
|
5611
5684
|
ITINERARY_TITLE: 'Podsumowanie Twojej podróży',
|
|
5612
5685
|
DOSSIER_NUMBER: 'Numer pliku',
|
|
5613
5686
|
PACKAGE_PRICE_PER_PERSON: 'cena pakietu za osobę',
|
|
@@ -5637,7 +5710,12 @@ var SRP$3 = {
|
|
|
5637
5710
|
ARRIVAL_AIRPORTS: 'Lotniska przylotu',
|
|
5638
5711
|
PRICE: 'Cena',
|
|
5639
5712
|
TRAVEL_GROUP: 'Grupa podróżnych',
|
|
5640
|
-
EXCURSION: 'Wycieczka'
|
|
5713
|
+
EXCURSION: 'Wycieczka',
|
|
5714
|
+
LOADING_EXCURSIONS: 'Ładowanie wycieczek...',
|
|
5715
|
+
LOADING_FLIGHTS: 'Ładowanie lotów...',
|
|
5716
|
+
LOADING_ACCOMMODATIONS: 'Ładowanie zakwaterowań...',
|
|
5717
|
+
LOADING_ITINERARY: 'Ładowanie planu podróży...',
|
|
5718
|
+
LOADING_OPTIONS: 'Ładowanie opcji...'
|
|
5641
5719
|
};
|
|
5642
5720
|
var ITINERARY$3 = {
|
|
5643
5721
|
DAY: 'Dzień',
|
|
@@ -6022,6 +6100,7 @@ var SRP$2 = {
|
|
|
6022
6100
|
DEPARTURE_ASC: 'Data de partida (mais próxima primeiro)',
|
|
6023
6101
|
FILTERS: 'Filtros',
|
|
6024
6102
|
SHOW_ITINERARY: 'Mostrar itinerário',
|
|
6103
|
+
VIEW_BOOKING: 'Ver reserva',
|
|
6025
6104
|
ITINERARY_TITLE: 'Resumo da sua viagem',
|
|
6026
6105
|
DOSSIER_NUMBER: 'Número do processo',
|
|
6027
6106
|
PACKAGE_PRICE_PER_PERSON: 'preço do pacote por pessoa',
|
|
@@ -6051,7 +6130,12 @@ var SRP$2 = {
|
|
|
6051
6130
|
ARRIVAL_AIRPORTS: 'Aeroportos de chegada',
|
|
6052
6131
|
PRICE: 'Preço',
|
|
6053
6132
|
TRAVEL_GROUP: 'Grupo de viajantes',
|
|
6054
|
-
EXCURSION: 'Excursão'
|
|
6133
|
+
EXCURSION: 'Excursão',
|
|
6134
|
+
LOADING_EXCURSIONS: 'A carregar excursões...',
|
|
6135
|
+
LOADING_FLIGHTS: 'A carregar voos...',
|
|
6136
|
+
LOADING_ACCOMMODATIONS: 'A carregar alojamentos...',
|
|
6137
|
+
LOADING_ITINERARY: 'A carregar itinerário...',
|
|
6138
|
+
LOADING_OPTIONS: 'A carregar opções...'
|
|
6055
6139
|
};
|
|
6056
6140
|
var ITINERARY$2 = {
|
|
6057
6141
|
DAY: 'Dia',
|
|
@@ -6436,6 +6520,7 @@ var SRP$1 = {
|
|
|
6436
6520
|
DEPARTURE_ASC: 'Avresedatum (närmast först)',
|
|
6437
6521
|
FILTERS: 'Filter',
|
|
6438
6522
|
SHOW_ITINERARY: 'Visa resplan',
|
|
6523
|
+
VIEW_BOOKING: 'Visa bokning',
|
|
6439
6524
|
ITINERARY_TITLE: 'Din resesammanfattning',
|
|
6440
6525
|
DOSSIER_NUMBER: 'Filnummer',
|
|
6441
6526
|
PACKAGE_PRICE_PER_PERSON: 'paketpris per person',
|
|
@@ -6465,7 +6550,12 @@ var SRP$1 = {
|
|
|
6465
6550
|
ARRIVAL_AIRPORTS: 'Ankomstflygplatser',
|
|
6466
6551
|
PRICE: 'Pris',
|
|
6467
6552
|
TRAVEL_GROUP: 'Resesällskap',
|
|
6468
|
-
EXCURSION: 'Utflykt'
|
|
6553
|
+
EXCURSION: 'Utflykt',
|
|
6554
|
+
LOADING_EXCURSIONS: 'Laddar utflykter...',
|
|
6555
|
+
LOADING_FLIGHTS: 'Laddar flyg...',
|
|
6556
|
+
LOADING_ACCOMMODATIONS: 'Laddar boenden...',
|
|
6557
|
+
LOADING_ITINERARY: 'Laddar resplan...',
|
|
6558
|
+
LOADING_OPTIONS: 'Laddar alternativ...'
|
|
6469
6559
|
};
|
|
6470
6560
|
var ITINERARY$1 = {
|
|
6471
6561
|
DAY: 'Dag',
|
|
@@ -6848,6 +6938,7 @@ var SRP = {
|
|
|
6848
6938
|
DEPARTURE_ASC: '出発日(早い順)',
|
|
6849
6939
|
FILTERS: 'フィルター',
|
|
6850
6940
|
SHOW_ITINERARY: '旅程を表示',
|
|
6941
|
+
VIEW_BOOKING: '予約を見る',
|
|
6851
6942
|
ITINERARY_TITLE: 'あなたの旅行概要',
|
|
6852
6943
|
DOSSIER_NUMBER: 'ファイル番号',
|
|
6853
6944
|
PACKAGE_PRICE_PER_PERSON: '1人あたりのパッケージ料金',
|
|
@@ -6877,7 +6968,12 @@ var SRP = {
|
|
|
6877
6968
|
ARRIVAL_AIRPORTS: '到着空港',
|
|
6878
6969
|
PRICE: '価格',
|
|
6879
6970
|
TRAVEL_GROUP: '旅行グループ',
|
|
6880
|
-
EXCURSION: 'エクスカーション'
|
|
6971
|
+
EXCURSION: 'エクスカーション',
|
|
6972
|
+
LOADING_EXCURSIONS: 'エクスカーションを読み込み中...',
|
|
6973
|
+
LOADING_FLIGHTS: 'フライトを読み込み中...',
|
|
6974
|
+
LOADING_ACCOMMODATIONS: '宿泊施設を読み込み中...',
|
|
6975
|
+
LOADING_ITINERARY: '旅程を読み込み中...',
|
|
6976
|
+
LOADING_OPTIONS: 'オプションを読み込み中...'
|
|
6881
6977
|
};
|
|
6882
6978
|
var ITINERARY = {
|
|
6883
6979
|
DAY: '日',
|
|
@@ -7027,6 +7123,14 @@ function format(text, args) {
|
|
|
7027
7123
|
return typeof args[index] == 'undefined' ? match : args[index];
|
|
7028
7124
|
});
|
|
7029
7125
|
}
|
|
7126
|
+
var formatDate = function (date) {
|
|
7127
|
+
return new Intl.DateTimeFormat('nl-BE', {
|
|
7128
|
+
weekday: 'short',
|
|
7129
|
+
day: '2-digit',
|
|
7130
|
+
month: 'short',
|
|
7131
|
+
year: '2-digit'
|
|
7132
|
+
}).format(new Date(date));
|
|
7133
|
+
};
|
|
7030
7134
|
var dateToDateStruct = function (date) {
|
|
7031
7135
|
if (date === undefined) {
|
|
7032
7136
|
return { year: 0, month: 0, day: 0 };
|
|
@@ -7130,6 +7234,11 @@ var getDatesBetween = function (fromDate, toDate) {
|
|
|
7130
7234
|
}
|
|
7131
7235
|
return dates;
|
|
7132
7236
|
};
|
|
7237
|
+
var getDateOnlyTime = function (date) {
|
|
7238
|
+
if (!date) return 0;
|
|
7239
|
+
var parsedDate = new Date(date);
|
|
7240
|
+
return new Date(parsedDate.getFullYear(), parsedDate.getMonth(), parsedDate.getDate()).getTime();
|
|
7241
|
+
};
|
|
7133
7242
|
|
|
7134
7243
|
var getDateFromParams = function (params, name) {
|
|
7135
7244
|
var dateString = params.get(name);
|
|
@@ -16778,6 +16887,28 @@ var Icon = function (_a) {
|
|
|
16778
16887
|
d: 'M256 0c14.7 0 28.2 8.1 35.2 21l216 400c6.7 12.4 6.4 27.4-.8 39.5S486.1 480 472 480L40 480c-14.1 0-27.2-7.4-34.4-19.5s-7.5-27.1-.8-39.5l216-400c7-12.9 20.5-21 35.2-21zm0 352a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.5 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z'
|
|
16779
16888
|
})
|
|
16780
16889
|
);
|
|
16890
|
+
case 'ui-shopping-cart':
|
|
16891
|
+
return React__default.createElement(
|
|
16892
|
+
'svg',
|
|
16893
|
+
{
|
|
16894
|
+
className: ['icon', 'icon--'.concat(name), className]
|
|
16895
|
+
.filter(function (className) {
|
|
16896
|
+
return !isEmpty(className);
|
|
16897
|
+
})
|
|
16898
|
+
.join(' '),
|
|
16899
|
+
width: width,
|
|
16900
|
+
height: height,
|
|
16901
|
+
viewBox: '0 0 640 512',
|
|
16902
|
+
fill: fill !== null && fill !== void 0 ? fill : 'currentColor'
|
|
16903
|
+
},
|
|
16904
|
+
React__default.createElement(HTMLComment, {
|
|
16905
|
+
text: '!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.'
|
|
16906
|
+
}),
|
|
16907
|
+
title && React__default.createElement('title', null, title),
|
|
16908
|
+
React__default.createElement('path', {
|
|
16909
|
+
d: 'M24-16C10.7-16 0-5.3 0 8S10.7 32 24 32l45.3 0c3.9 0 7.2 2.8 7.9 6.6l52.1 286.3c6.2 34.2 36 59.1 70.8 59.1L456 384c13.3 0 24-10.7 24-24s-10.7-24-24-24l-255.9 0c-11.6 0-21.5-8.3-23.6-19.7l-5.1-28.3 303.6 0c30.8 0 57.2-21.9 62.9-52.2L568.9 69.9C572.6 50.2 557.5 32 537.4 32l-412.7 0-.4-2c-4.8-26.6-28-46-55.1-46L24-16zM208 512a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm224 0a48 48 0 1 0 0-96 48 48 0 1 0 0 96z'
|
|
16910
|
+
})
|
|
16911
|
+
);
|
|
16781
16912
|
default:
|
|
16782
16913
|
return null;
|
|
16783
16914
|
}
|
|
@@ -20647,47 +20778,27 @@ var SettingsContext = React__default.createContext({
|
|
|
20647
20778
|
}
|
|
20648
20779
|
});
|
|
20649
20780
|
|
|
20650
|
-
var StepIndicators = function (_a) {
|
|
20651
|
-
var currentStep = _a.currentStep
|
|
20652
|
-
|
|
20653
|
-
flightOptions = _b.flightOptions,
|
|
20654
|
-
roomOptions = _b.roomOptions;
|
|
20655
|
-
var translations = useSelector(selectTranslations);
|
|
20656
|
-
var travelersFirstStep = useSelector(selectTravelersFirstStep);
|
|
20657
|
-
var allSteps = [];
|
|
20658
|
-
if (travelersFirstStep) {
|
|
20659
|
-
allSteps.push(translations.STEPS.PERSONAL_DETAILS);
|
|
20660
|
-
}
|
|
20661
|
-
if (!flightOptions.isHidden) {
|
|
20662
|
-
allSteps.push(translations.STEPS.FLIGHT_OPTIONS);
|
|
20663
|
-
}
|
|
20664
|
-
if (!roomOptions.isHidden) {
|
|
20665
|
-
allSteps.push(translations.STEPS.ROOM_OPTIONS);
|
|
20666
|
-
}
|
|
20667
|
-
allSteps.push(translations.STEPS.EXTRA_OPTIONS);
|
|
20668
|
-
if (!travelersFirstStep) {
|
|
20669
|
-
allSteps.push(translations.STEPS.PERSONAL_DETAILS);
|
|
20670
|
-
}
|
|
20671
|
-
allSteps.push(translations.STEPS.SUMMARY);
|
|
20672
|
-
allSteps.push(translations.STEPS.CONFIRMATION);
|
|
20781
|
+
var StepIndicators$1 = function (_a) {
|
|
20782
|
+
var currentStep = _a.currentStep,
|
|
20783
|
+
stepLabels = _a.stepLabels;
|
|
20673
20784
|
return React__default.createElement(
|
|
20674
20785
|
'div',
|
|
20675
20786
|
{ className: 'step-indicators' },
|
|
20676
20787
|
React__default.createElement(
|
|
20677
20788
|
'div',
|
|
20678
20789
|
{ className: 'step-indicators__items' },
|
|
20679
|
-
|
|
20790
|
+
stepLabels.map(function (stepName, index) {
|
|
20680
20791
|
return React__default.createElement(
|
|
20681
20792
|
'div',
|
|
20682
20793
|
{
|
|
20683
20794
|
key: ''.concat(index + 1, '-').concat(stepName),
|
|
20684
20795
|
className: buildClassName([
|
|
20685
20796
|
'step-indicators__item',
|
|
20686
|
-
currentStep === index
|
|
20687
|
-
currentStep > index
|
|
20797
|
+
currentStep === index && 'step-indicators__item--active',
|
|
20798
|
+
currentStep > index && 'step-indicators__item--completed'
|
|
20688
20799
|
])
|
|
20689
20800
|
},
|
|
20690
|
-
React__default.createElement('div', { className: 'step-indicators__icon
|
|
20801
|
+
React__default.createElement('div', { className: 'step-indicators__icon' }, index + 1),
|
|
20691
20802
|
React__default.createElement('div', { className: 'step-indicators__text' }, stepName)
|
|
20692
20803
|
);
|
|
20693
20804
|
})
|
|
@@ -20695,27 +20806,94 @@ var StepIndicators = function (_a) {
|
|
|
20695
20806
|
);
|
|
20696
20807
|
};
|
|
20697
20808
|
|
|
20698
|
-
var
|
|
20699
|
-
var
|
|
20700
|
-
|
|
20701
|
-
|
|
20809
|
+
var StepIndicators = function (_a) {
|
|
20810
|
+
var currentStep = _a.currentStep;
|
|
20811
|
+
var _b = useContext(SettingsContext),
|
|
20812
|
+
flightOptions = _b.flightOptions,
|
|
20813
|
+
roomOptions = _b.roomOptions;
|
|
20814
|
+
var translations = useSelector(selectTranslations);
|
|
20815
|
+
var travelersFirstStep = useSelector(selectTravelersFirstStep);
|
|
20816
|
+
var stepLabels = [];
|
|
20817
|
+
if (travelersFirstStep) {
|
|
20818
|
+
stepLabels.push(translations.STEPS.PERSONAL_DETAILS);
|
|
20819
|
+
}
|
|
20820
|
+
if (!flightOptions.isHidden) {
|
|
20821
|
+
stepLabels.push(translations.STEPS.FLIGHT_OPTIONS);
|
|
20822
|
+
}
|
|
20823
|
+
if (!roomOptions.isHidden) {
|
|
20824
|
+
stepLabels.push(translations.STEPS.ROOM_OPTIONS);
|
|
20825
|
+
}
|
|
20826
|
+
stepLabels.push(translations.STEPS.EXTRA_OPTIONS);
|
|
20827
|
+
if (!travelersFirstStep) {
|
|
20828
|
+
stepLabels.push(translations.STEPS.PERSONAL_DETAILS);
|
|
20829
|
+
}
|
|
20830
|
+
stepLabels.push(translations.STEPS.SUMMARY);
|
|
20831
|
+
stepLabels.push(translations.STEPS.CONFIRMATION);
|
|
20832
|
+
return React__default.createElement(StepIndicators$1, { currentStep: currentStep, stepLabels: stepLabels });
|
|
20833
|
+
};
|
|
20834
|
+
|
|
20835
|
+
var BookingPanel = function (_a) {
|
|
20836
|
+
var currentStep = _a.currentStep,
|
|
20837
|
+
stepLabels = _a.stepLabels,
|
|
20838
|
+
renderTitle = _a.renderTitle,
|
|
20839
|
+
children = _a.children,
|
|
20840
|
+
StepIndicatorsComponent = _a.StepIndicatorsComponent;
|
|
20702
20841
|
return React__default.createElement(
|
|
20703
|
-
|
|
20704
|
-
|
|
20705
|
-
React__default.createElement(
|
|
20842
|
+
'div',
|
|
20843
|
+
{ className: 'booking__panel' },
|
|
20844
|
+
React__default.createElement(StepIndicatorsComponent, { currentStep: currentStep, stepLabels: stepLabels }),
|
|
20706
20845
|
React__default.createElement(
|
|
20707
20846
|
'div',
|
|
20708
20847
|
{ className: 'booking__panel-frame booking__panel-frame--transparent' },
|
|
20709
20848
|
React__default.createElement(
|
|
20710
20849
|
'div',
|
|
20711
20850
|
{ className: 'booking__panel-heading' },
|
|
20712
|
-
React__default.createElement('h4', { className: 'booking__panel-title' },
|
|
20851
|
+
React__default.createElement('h4', { className: 'booking__panel-title' }, renderTitle(currentStep))
|
|
20713
20852
|
),
|
|
20714
|
-
React__default.createElement('div', { className: 'booking__panel-body' },
|
|
20853
|
+
React__default.createElement('div', { className: 'booking__panel-body' }, children)
|
|
20715
20854
|
)
|
|
20716
20855
|
);
|
|
20717
20856
|
};
|
|
20718
20857
|
|
|
20858
|
+
var StepRoute = function (_a) {
|
|
20859
|
+
var number = _a.number;
|
|
20860
|
+
_a.title;
|
|
20861
|
+
var component = _a.component;
|
|
20862
|
+
var _b = useContext(SettingsContext),
|
|
20863
|
+
flightOptions = _b.flightOptions,
|
|
20864
|
+
roomOptions = _b.roomOptions;
|
|
20865
|
+
var translations = useSelector(selectTranslations);
|
|
20866
|
+
var travelersFirstStep = useSelector(selectTravelersFirstStep);
|
|
20867
|
+
var stepLabels = [];
|
|
20868
|
+
if (travelersFirstStep) {
|
|
20869
|
+
stepLabels.push(translations.STEPS.PERSONAL_DETAILS);
|
|
20870
|
+
}
|
|
20871
|
+
if (!flightOptions.isHidden) {
|
|
20872
|
+
stepLabels.push(translations.STEPS.FLIGHT_OPTIONS);
|
|
20873
|
+
}
|
|
20874
|
+
if (!roomOptions.isHidden) {
|
|
20875
|
+
stepLabels.push(translations.STEPS.ROOM_OPTIONS);
|
|
20876
|
+
}
|
|
20877
|
+
stepLabels.push(translations.STEPS.EXTRA_OPTIONS);
|
|
20878
|
+
if (!travelersFirstStep) {
|
|
20879
|
+
stepLabels.push(translations.STEPS.PERSONAL_DETAILS);
|
|
20880
|
+
}
|
|
20881
|
+
stepLabels.push(translations.STEPS.SUMMARY);
|
|
20882
|
+
stepLabels.push(translations.STEPS.CONFIRMATION);
|
|
20883
|
+
return React__default.createElement(
|
|
20884
|
+
BookingPanel,
|
|
20885
|
+
{
|
|
20886
|
+
currentStep: number,
|
|
20887
|
+
stepLabels: stepLabels,
|
|
20888
|
+
StepIndicatorsComponent: StepIndicators,
|
|
20889
|
+
renderTitle: function (step) {
|
|
20890
|
+
return React__default.createElement(React__default.Fragment, null, step + 1, '. ', stepLabels[step]);
|
|
20891
|
+
}
|
|
20892
|
+
},
|
|
20893
|
+
component
|
|
20894
|
+
);
|
|
20895
|
+
};
|
|
20896
|
+
|
|
20719
20897
|
var _a$2;
|
|
20720
20898
|
var initialState$4 = {
|
|
20721
20899
|
apiUrl: '',
|
|
@@ -21866,8 +22044,7 @@ var FlightFilter = function (_a) {
|
|
|
21866
22044
|
);
|
|
21867
22045
|
};
|
|
21868
22046
|
|
|
21869
|
-
var getTravelersText = function (rooms) {
|
|
21870
|
-
var translations = useSelector(selectTranslations);
|
|
22047
|
+
var getTravelersText = function (rooms, translations) {
|
|
21871
22048
|
return rooms.map(function (r) {
|
|
21872
22049
|
return compact([
|
|
21873
22050
|
r.adults.length,
|
|
@@ -25328,7 +25505,7 @@ var selectPackagePriceDetails = createSelector(selectPriceDetails, function (pri
|
|
|
25328
25505
|
return priceDetail.isInPackage;
|
|
25329
25506
|
});
|
|
25330
25507
|
});
|
|
25331
|
-
var selectSeparatePackagePriceDetails = createSelector(selectPackagePriceDetails, function (pricedetails) {
|
|
25508
|
+
var selectSeparatePackagePriceDetails$1 = createSelector(selectPackagePriceDetails, function (pricedetails) {
|
|
25332
25509
|
var result = [];
|
|
25333
25510
|
var filteredPriceDetails = pricedetails.filter(function (priceDetail) {
|
|
25334
25511
|
return priceDetail.isSeparate;
|
|
@@ -25466,11 +25643,11 @@ var ProductCard = function (_a) {
|
|
|
25466
25643
|
|
|
25467
25644
|
var SidebarFlight = function (_a) {
|
|
25468
25645
|
var title = _a.title,
|
|
25469
|
-
flightMetaData = _a.flightMetaData
|
|
25646
|
+
flightMetaData = _a.flightMetaData,
|
|
25647
|
+
translations = _a.translations;
|
|
25470
25648
|
var flightLines = parseFlightLines(flightMetaData);
|
|
25471
25649
|
var firstFlight = first(flightLines);
|
|
25472
25650
|
var lastFlight = last(flightLines);
|
|
25473
|
-
var translations = useSelector(selectTranslations);
|
|
25474
25651
|
return React__default.createElement(
|
|
25475
25652
|
'div',
|
|
25476
25653
|
{ className: 'pricing-summary__group' },
|
|
@@ -25536,47 +25713,50 @@ var SidebarFlight = function (_a) {
|
|
|
25536
25713
|
);
|
|
25537
25714
|
};
|
|
25538
25715
|
|
|
25539
|
-
var
|
|
25716
|
+
var SharedSidebar = function (_a) {
|
|
25540
25717
|
var productName = _a.productName,
|
|
25541
25718
|
thumbnailUrl = _a.thumbnailUrl,
|
|
25542
25719
|
isLoading = _a.isLoading,
|
|
25720
|
+
translations = _a.translations,
|
|
25721
|
+
headerComponent = _a.headerComponent,
|
|
25543
25722
|
travelerRooms = _a.travelerRooms,
|
|
25544
25723
|
startDateText = _a.startDateText,
|
|
25545
25724
|
endDateText = _a.endDateText,
|
|
25725
|
+
loaderComponent = _a.loaderComponent,
|
|
25546
25726
|
departureFlightMetaData = _a.departureFlightMetaData,
|
|
25547
25727
|
returnFlightMetaData = _a.returnFlightMetaData,
|
|
25728
|
+
accommodations = _a.accommodations,
|
|
25729
|
+
packagingAccommodations = _a.packagingAccommodations,
|
|
25730
|
+
isOnRequest = _a.isOnRequest,
|
|
25731
|
+
includedServiceTypes = _a.includedServiceTypes,
|
|
25548
25732
|
basePrice = _a.basePrice,
|
|
25549
25733
|
commission = _a.commission,
|
|
25550
25734
|
totalPrice = _a.totalPrice,
|
|
25551
25735
|
includedCosts = _a.includedCosts,
|
|
25552
25736
|
extraCosts = _a.extraCosts,
|
|
25553
25737
|
deposit = _a.deposit,
|
|
25554
|
-
accommodations = _a.accommodations,
|
|
25555
|
-
includedServiceTypes = _a.includedServiceTypes,
|
|
25556
|
-
isOnRequest = _a.isOnRequest,
|
|
25557
|
-
headerComponent = _a.headerComponent,
|
|
25558
|
-
footerComponent = _a.footerComponent,
|
|
25559
|
-
loaderComponent = _a.loaderComponent,
|
|
25560
|
-
isUnavailable = _a.isUnavailable,
|
|
25561
25738
|
basePricePerPaxType = _a.basePricePerPaxType,
|
|
25562
|
-
seperateExtraPricePerPaxType = _a.seperateExtraPricePerPaxType
|
|
25739
|
+
seperateExtraPricePerPaxType = _a.seperateExtraPricePerPaxType,
|
|
25740
|
+
isUnavailable = _a.isUnavailable,
|
|
25741
|
+
agent = _a.agent,
|
|
25742
|
+
footerComponent = _a.footerComponent;
|
|
25743
|
+
if (!translations) return null;
|
|
25563
25744
|
var _b = useState(false),
|
|
25564
25745
|
active = _b[0],
|
|
25565
25746
|
setActive = _b[1];
|
|
25566
|
-
var
|
|
25567
|
-
|
|
25568
|
-
|
|
25747
|
+
var handleToggleClick = function () {
|
|
25748
|
+
setActive(!active);
|
|
25749
|
+
};
|
|
25750
|
+
var isFlightOnly =
|
|
25751
|
+
(includedServiceTypes === null || includedServiceTypes === void 0 ? void 0 : includedServiceTypes.length) === 1 &&
|
|
25752
|
+
includedServiceTypes.includes(build.ServiceType.flight);
|
|
25569
25753
|
var canShowPriceBreakdownSection = Boolean(basePrice && basePrice > 0) || !isEmpty(includedCosts) || !isEmpty(extraCosts);
|
|
25570
25754
|
var canShowTotalPriceSection = Boolean(totalPrice && totalPrice > 0);
|
|
25571
25755
|
var remainingAmount = Number(
|
|
25572
25756
|
((totalPrice !== null && totalPrice !== void 0 ? totalPrice : 0) - (deposit !== null && deposit !== void 0 ? deposit : 0)).toFixed(2)
|
|
25573
25757
|
);
|
|
25574
|
-
|
|
25575
|
-
|
|
25576
|
-
includedServiceTypes.includes(build.ServiceType.flight);
|
|
25577
|
-
var handleToggleClick = function () {
|
|
25578
|
-
setActive(!active);
|
|
25579
|
-
};
|
|
25758
|
+
// TODO: Determine currency code based on the data, for now default to EUR
|
|
25759
|
+
var currencyCode = 'EUR';
|
|
25580
25760
|
return React__default.createElement(
|
|
25581
25761
|
'div',
|
|
25582
25762
|
{ className: buildClassName(['booking__sidebar', active && 'booking__sidebar--active']) },
|
|
@@ -25588,324 +25768,378 @@ var Sidebar = function (_a) {
|
|
|
25588
25768
|
React__default.createElement(
|
|
25589
25769
|
'div',
|
|
25590
25770
|
{ className: 'pricing-summary' },
|
|
25591
|
-
|
|
25592
|
-
|
|
25771
|
+
React__default.createElement(
|
|
25772
|
+
'div',
|
|
25773
|
+
{ className: 'pricing-summary__wrapper' },
|
|
25774
|
+
React__default.createElement(
|
|
25775
|
+
'div',
|
|
25776
|
+
{ className: 'pricing-summary__region pricing-summary__region--fade-in' },
|
|
25777
|
+
React__default.createElement(
|
|
25593
25778
|
'div',
|
|
25594
|
-
{ className: 'pricing-
|
|
25595
|
-
React__default.createElement(
|
|
25596
|
-
|
|
25597
|
-
|
|
25779
|
+
{ className: 'pricing-summary__group' },
|
|
25780
|
+
React__default.createElement('h6', { className: 'pricing-summary__title' }, translations.SIDEBAR.TRAVEL_INFO),
|
|
25781
|
+
!isEmpty(travelerRooms) &&
|
|
25782
|
+
(travelerRooms === null || travelerRooms === void 0
|
|
25783
|
+
? void 0
|
|
25784
|
+
: travelerRooms.map(function (room, rIndex) {
|
|
25785
|
+
return React__default.createElement(
|
|
25786
|
+
'div',
|
|
25787
|
+
{ className: 'pricing-summary__row', key: rIndex },
|
|
25788
|
+
React__default.createElement(
|
|
25789
|
+
'div',
|
|
25790
|
+
{ className: 'pricing-summary__property' },
|
|
25791
|
+
travelerRooms.length > 1 && ''.concat(translations.SHARED.ROOM, ' ').concat(rIndex + 1),
|
|
25792
|
+
travelerRooms.length === 1 && translations.ROOM_OPTIONS_FORM.TRAVELER_GROUP
|
|
25793
|
+
),
|
|
25794
|
+
React__default.createElement('div', { className: 'pricing-summary__value' }, room)
|
|
25795
|
+
);
|
|
25796
|
+
})),
|
|
25797
|
+
startDateText &&
|
|
25598
25798
|
React__default.createElement(
|
|
25599
25799
|
'div',
|
|
25600
|
-
{ className: 'pricing-
|
|
25601
|
-
React__default.createElement(
|
|
25602
|
-
|
|
25603
|
-
|
|
25604
|
-
|
|
25605
|
-
|
|
25606
|
-
|
|
25607
|
-
|
|
25608
|
-
|
|
25609
|
-
|
|
25610
|
-
|
|
25611
|
-
|
|
25612
|
-
|
|
25613
|
-
|
|
25614
|
-
|
|
25615
|
-
|
|
25616
|
-
|
|
25617
|
-
|
|
25618
|
-
|
|
25800
|
+
{ className: 'pricing-summary__row' },
|
|
25801
|
+
React__default.createElement(
|
|
25802
|
+
'div',
|
|
25803
|
+
{ className: 'pricing-summary__property' },
|
|
25804
|
+
startDateText && endDateText ? translations.SIDEBAR.DEPARTURE : translations.SIDEBAR.DEPARTURE_SINGLE
|
|
25805
|
+
),
|
|
25806
|
+
React__default.createElement('div', { className: 'pricing-summary__value' }, startDateText)
|
|
25807
|
+
),
|
|
25808
|
+
endDateText &&
|
|
25809
|
+
React__default.createElement(
|
|
25810
|
+
'div',
|
|
25811
|
+
{ className: 'pricing-summary__row' },
|
|
25812
|
+
React__default.createElement('div', { className: 'pricing-summary__property' }, translations.SIDEBAR.ARRIVAL),
|
|
25813
|
+
React__default.createElement('div', { className: 'pricing-summary__value' }, endDateText)
|
|
25814
|
+
)
|
|
25815
|
+
),
|
|
25816
|
+
isLoading && loaderComponent,
|
|
25817
|
+
!isLoading &&
|
|
25818
|
+
departureFlightMetaData &&
|
|
25819
|
+
React__default.createElement(SidebarFlight, {
|
|
25820
|
+
title: translations.SIDEBAR.DEPARTURE_FLIGHT,
|
|
25821
|
+
flightMetaData: departureFlightMetaData,
|
|
25822
|
+
translations: translations
|
|
25823
|
+
}),
|
|
25824
|
+
!isLoading &&
|
|
25825
|
+
returnFlightMetaData &&
|
|
25826
|
+
React__default.createElement(SidebarFlight, {
|
|
25827
|
+
title: translations.SIDEBAR.ARRIVAL_FLIGHT,
|
|
25828
|
+
flightMetaData: returnFlightMetaData,
|
|
25829
|
+
translations: translations
|
|
25830
|
+
}),
|
|
25831
|
+
accommodations &&
|
|
25832
|
+
React__default.createElement(
|
|
25833
|
+
'div',
|
|
25834
|
+
{ className: 'pricing-summary__group' },
|
|
25835
|
+
React__default.createElement('h6', { className: 'pricing-summary__title' }, translations.SIDEBAR.ACCOMMODATION),
|
|
25836
|
+
accommodations.map(function (accommodation) {
|
|
25837
|
+
var option = accommodation.options.find(function (x) {
|
|
25838
|
+
return x.isSelected;
|
|
25839
|
+
});
|
|
25840
|
+
return React__default.createElement(
|
|
25841
|
+
'div',
|
|
25842
|
+
{ key: accommodation.index },
|
|
25619
25843
|
React__default.createElement(
|
|
25620
25844
|
'div',
|
|
25621
25845
|
{ className: 'pricing-summary__row' },
|
|
25622
25846
|
React__default.createElement(
|
|
25623
25847
|
'div',
|
|
25624
25848
|
{ className: 'pricing-summary__property' },
|
|
25625
|
-
|
|
25849
|
+
option === null || option === void 0 ? void 0 : option.accommodationName,
|
|
25850
|
+
isOnRequest ? ' ('.concat(translations.SIDEBAR.ON_REQUEST, ')') : '',
|
|
25851
|
+
(option === null || option === void 0 ? void 0 : option.isOnRequest) ? ' ('.concat(translations.SIDEBAR.ON_REQUEST, ')') : ''
|
|
25852
|
+
)
|
|
25853
|
+
),
|
|
25854
|
+
React__default.createElement(
|
|
25855
|
+
'div',
|
|
25856
|
+
{ className: 'pricing-summary__row' },
|
|
25857
|
+
React__default.createElement(
|
|
25858
|
+
'div',
|
|
25859
|
+
{ className: 'price-summarty__property' },
|
|
25860
|
+
option === null || option === void 0 ? void 0 : option.regimeName
|
|
25626
25861
|
),
|
|
25627
|
-
React__default.createElement(
|
|
25862
|
+
React__default.createElement(
|
|
25863
|
+
'div',
|
|
25864
|
+
{ className: 'price-summary__value' },
|
|
25865
|
+
!isFlightOnly &&
|
|
25866
|
+
getDatePeriodText(
|
|
25867
|
+
translations,
|
|
25868
|
+
option === null || option === void 0 ? void 0 : option.from,
|
|
25869
|
+
option === null || option === void 0 ? void 0 : option.to,
|
|
25870
|
+
true
|
|
25871
|
+
)
|
|
25872
|
+
)
|
|
25873
|
+
)
|
|
25874
|
+
);
|
|
25875
|
+
})
|
|
25876
|
+
),
|
|
25877
|
+
packagingAccommodations &&
|
|
25878
|
+
React__default.createElement(
|
|
25879
|
+
'div',
|
|
25880
|
+
{ className: 'pricing-summary__group' },
|
|
25881
|
+
React__default.createElement('h6', { className: 'pricing-summary__title' }, translations.SIDEBAR.ACCOMMODATION),
|
|
25882
|
+
packagingAccommodations.map(function (accommodation) {
|
|
25883
|
+
return React__default.createElement(
|
|
25884
|
+
'div',
|
|
25885
|
+
{ key: accommodation.guid },
|
|
25886
|
+
React__default.createElement(
|
|
25887
|
+
'div',
|
|
25888
|
+
{ className: 'pricing-summary__row' },
|
|
25889
|
+
React__default.createElement(
|
|
25890
|
+
'div',
|
|
25891
|
+
{ className: 'pricing-summary__property' },
|
|
25892
|
+
accommodation === null || accommodation === void 0 ? void 0 : accommodation.accommodationName,
|
|
25893
|
+
isOnRequest ? ' ('.concat(translations.SIDEBAR.ON_REQUEST, ')') : ''
|
|
25894
|
+
)
|
|
25628
25895
|
),
|
|
25629
|
-
endDateText &&
|
|
25630
25896
|
React__default.createElement(
|
|
25631
25897
|
'div',
|
|
25632
25898
|
{ className: 'pricing-summary__row' },
|
|
25633
|
-
React__default.createElement(
|
|
25634
|
-
|
|
25899
|
+
React__default.createElement(
|
|
25900
|
+
'div',
|
|
25901
|
+
{ className: 'price-summarty__property' },
|
|
25902
|
+
accommodation === null || accommodation === void 0 ? void 0 : accommodation.regimeName
|
|
25903
|
+
),
|
|
25904
|
+
React__default.createElement(
|
|
25905
|
+
'div',
|
|
25906
|
+
{ className: 'price-summary__value' },
|
|
25907
|
+
!isFlightOnly &&
|
|
25908
|
+
getDatePeriodText(
|
|
25909
|
+
translations,
|
|
25910
|
+
accommodation === null || accommodation === void 0 ? void 0 : accommodation.from,
|
|
25911
|
+
accommodation === null || accommodation === void 0 ? void 0 : accommodation.to,
|
|
25912
|
+
true
|
|
25913
|
+
)
|
|
25914
|
+
)
|
|
25635
25915
|
)
|
|
25636
|
-
|
|
25637
|
-
|
|
25638
|
-
|
|
25639
|
-
|
|
25640
|
-
|
|
25641
|
-
|
|
25642
|
-
|
|
25643
|
-
|
|
25644
|
-
|
|
25916
|
+
);
|
|
25917
|
+
})
|
|
25918
|
+
)
|
|
25919
|
+
),
|
|
25920
|
+
!isLoading &&
|
|
25921
|
+
canShowPriceBreakdownSection &&
|
|
25922
|
+
React__default.createElement(
|
|
25923
|
+
'div',
|
|
25924
|
+
{ className: 'pricing-summary__region '.concat(!isLoading ? 'pricing-summary__region--fade-in' : '') },
|
|
25925
|
+
basePrice !== undefined &&
|
|
25926
|
+
basePrice > 0 &&
|
|
25927
|
+
React__default.createElement(
|
|
25928
|
+
'div',
|
|
25929
|
+
{ className: 'pricing-summary__group' },
|
|
25645
25930
|
React__default.createElement(
|
|
25646
25931
|
'div',
|
|
25647
|
-
{ className: 'pricing-
|
|
25648
|
-
React__default.createElement(
|
|
25649
|
-
|
|
25650
|
-
|
|
25651
|
-
|
|
25652
|
-
|
|
25932
|
+
{ className: 'pricing-summary__row' },
|
|
25933
|
+
React__default.createElement(
|
|
25934
|
+
'div',
|
|
25935
|
+
{ className: 'pricing-summary__property' },
|
|
25936
|
+
React__default.createElement('h6', { className: 'pricing-summary__title' }, translations.SIDEBAR.BASE_PRICE)
|
|
25937
|
+
),
|
|
25938
|
+
React__default.createElement('div', { className: 'pricing-summary__value' }, formatPrice$3(basePrice, currencyCode))
|
|
25939
|
+
),
|
|
25940
|
+
basePricePerPaxType &&
|
|
25941
|
+
basePricePerPaxType.map(function (ppt, index) {
|
|
25653
25942
|
return React__default.createElement(
|
|
25654
|
-
|
|
25655
|
-
{ key:
|
|
25943
|
+
React__default.Fragment,
|
|
25944
|
+
{ key: ''.concat(ppt.paxType, '-').concat(index) },
|
|
25656
25945
|
React__default.createElement(
|
|
25657
25946
|
'div',
|
|
25658
25947
|
{ className: 'pricing-summary__row' },
|
|
25659
25948
|
React__default.createElement(
|
|
25660
25949
|
'div',
|
|
25661
25950
|
{ className: 'pricing-summary__property' },
|
|
25662
|
-
|
|
25663
|
-
|
|
25664
|
-
(
|
|
25665
|
-
)
|
|
25951
|
+
ppt.numberOfPax,
|
|
25952
|
+
' ',
|
|
25953
|
+
getPaxTypeTranslation(translations, ppt.paxType, ppt.numberOfPax)
|
|
25954
|
+
),
|
|
25955
|
+
React__default.createElement('div', { className: 'pricing-summary__value' }, formatPrice$3(ppt.pricePerPaxType, currencyCode))
|
|
25666
25956
|
),
|
|
25667
|
-
|
|
25668
|
-
|
|
25669
|
-
|
|
25957
|
+
ppt.details.map(function (detail, dIndex) {
|
|
25958
|
+
return React__default.createElement(
|
|
25959
|
+
'div',
|
|
25960
|
+
{ className: 'pricing-summary__row pricing-summary__row--sub', key: ''.concat(ppt.paxType, '-').concat(index, '-').concat(dIndex) },
|
|
25961
|
+
React__default.createElement('div', { className: 'pricing-summary__property' }, detail.numberOfPax, 'x ', detail.description),
|
|
25962
|
+
React__default.createElement(
|
|
25963
|
+
'div',
|
|
25964
|
+
{ className: 'pricing-summary__value' },
|
|
25965
|
+
formatPrice$3(detail.price / detail.numberOfPax, currencyCode)
|
|
25966
|
+
)
|
|
25967
|
+
);
|
|
25968
|
+
})
|
|
25969
|
+
);
|
|
25970
|
+
})
|
|
25971
|
+
),
|
|
25972
|
+
!isEmpty(includedCosts) &&
|
|
25973
|
+
React__default.createElement(
|
|
25974
|
+
'div',
|
|
25975
|
+
{ className: 'pricing-summary__group' },
|
|
25976
|
+
React__default.createElement('h6', { className: 'pricing-summary__title' }, translations.SIDEBAR.INCLUDED_COSTS),
|
|
25977
|
+
includedCosts === null || includedCosts === void 0
|
|
25978
|
+
? void 0
|
|
25979
|
+
: includedCosts.map(function (priceDetail, index) {
|
|
25980
|
+
var _a;
|
|
25981
|
+
return React__default.createElement(
|
|
25982
|
+
React__default.Fragment,
|
|
25983
|
+
{ key: compact([priceDetail.productCode, priceDetail.accommodationCode, index]).join('_') },
|
|
25670
25984
|
React__default.createElement(
|
|
25671
25985
|
'div',
|
|
25672
|
-
{ className: '
|
|
25673
|
-
|
|
25986
|
+
{ className: 'pricing-summary__row' },
|
|
25987
|
+
React__default.createElement('div', { className: 'pricing-summary__property' }, priceDetail.productName),
|
|
25988
|
+
priceDetail.showPrice &&
|
|
25989
|
+
React__default.createElement(
|
|
25990
|
+
'div',
|
|
25991
|
+
{ className: 'pricing-summary__value' },
|
|
25992
|
+
formatPrice$3(priceDetail.price * priceDetail.amount, currencyCode)
|
|
25993
|
+
)
|
|
25674
25994
|
),
|
|
25675
25995
|
React__default.createElement(
|
|
25676
25996
|
'div',
|
|
25677
|
-
{ className: '
|
|
25678
|
-
|
|
25679
|
-
|
|
25680
|
-
|
|
25681
|
-
|
|
25682
|
-
|
|
25683
|
-
true
|
|
25684
|
-
)
|
|
25997
|
+
{ className: 'pricing-summary__row' },
|
|
25998
|
+
React__default.createElement(
|
|
25999
|
+
'div',
|
|
26000
|
+
{ className: 'price-summary__property' },
|
|
26001
|
+
(_a = priceDetail.accommodationName) !== null && _a !== void 0 ? _a : priceDetail.accommodationCode
|
|
26002
|
+
)
|
|
25685
26003
|
)
|
|
25686
|
-
)
|
|
25687
|
-
)
|
|
25688
|
-
|
|
25689
|
-
|
|
25690
|
-
),
|
|
25691
|
-
!isLoading &&
|
|
25692
|
-
canShowPriceBreakdownSection &&
|
|
26004
|
+
);
|
|
26005
|
+
})
|
|
26006
|
+
),
|
|
26007
|
+
!isEmpty(extraCosts) &&
|
|
25693
26008
|
React__default.createElement(
|
|
25694
26009
|
'div',
|
|
25695
|
-
{ className: 'pricing-
|
|
25696
|
-
|
|
25697
|
-
|
|
25698
|
-
|
|
25699
|
-
|
|
25700
|
-
|
|
25701
|
-
|
|
25702
|
-
|
|
25703
|
-
|
|
25704
|
-
|
|
25705
|
-
|
|
25706
|
-
|
|
25707
|
-
|
|
25708
|
-
|
|
25709
|
-
React__default.createElement('div', { className: 'pricing-summary__value' }, formatPrice$3(basePrice, currencyCode))
|
|
25710
|
-
),
|
|
25711
|
-
basePricePerPaxType &&
|
|
25712
|
-
basePricePerPaxType.map(function (ppt, index) {
|
|
25713
|
-
return React__default.createElement(
|
|
25714
|
-
React__default.Fragment,
|
|
25715
|
-
{ key: ''.concat(ppt.paxType, '-').concat(index) },
|
|
25716
|
-
React__default.createElement(
|
|
25717
|
-
'div',
|
|
25718
|
-
{ className: 'pricing-summary__row' },
|
|
26010
|
+
{ className: 'pricing-summary__group' },
|
|
26011
|
+
React__default.createElement('h6', { className: 'pricing-summary__title' }, translations.SIDEBAR.EXTRA_COSTS),
|
|
26012
|
+
extraCosts === null || extraCosts === void 0
|
|
26013
|
+
? void 0
|
|
26014
|
+
: extraCosts.map(function (priceDetail, index) {
|
|
26015
|
+
var _a;
|
|
26016
|
+
return React__default.createElement(
|
|
26017
|
+
React__default.Fragment,
|
|
26018
|
+
{ key: compact([priceDetail.productCode, priceDetail.accommodationCode, index]).join('_') },
|
|
26019
|
+
React__default.createElement(
|
|
26020
|
+
'div',
|
|
26021
|
+
{ className: 'pricing-summary__row' },
|
|
26022
|
+
React__default.createElement('div', { className: 'pricing-summary__property' }, priceDetail.productName),
|
|
26023
|
+
priceDetail.showPrice &&
|
|
25719
26024
|
React__default.createElement(
|
|
25720
26025
|
'div',
|
|
25721
|
-
{ className: 'pricing-
|
|
25722
|
-
|
|
25723
|
-
|
|
25724
|
-
|
|
25725
|
-
|
|
25726
|
-
|
|
25727
|
-
|
|
25728
|
-
|
|
26026
|
+
{ className: 'pricing-summary__value' },
|
|
26027
|
+
formatPrice$3(priceDetail.price * priceDetail.amount, currencyCode)
|
|
26028
|
+
)
|
|
26029
|
+
),
|
|
26030
|
+
React__default.createElement(
|
|
26031
|
+
'div',
|
|
26032
|
+
{ className: 'pricing-summary__row' },
|
|
26033
|
+
React__default.createElement(
|
|
26034
|
+
'div',
|
|
26035
|
+
{ className: 'pricing-summary__property' },
|
|
26036
|
+
(_a = priceDetail.accommodationName) !== null && _a !== void 0 ? _a : priceDetail.accommodationCode
|
|
26037
|
+
)
|
|
26038
|
+
),
|
|
26039
|
+
seperateExtraPricePerPaxType &&
|
|
26040
|
+
seperateExtraPricePerPaxType.map(function (ppt, index) {
|
|
25729
26041
|
return React__default.createElement(
|
|
25730
|
-
|
|
25731
|
-
{
|
|
25732
|
-
className: 'pricing-summary__row pricing-summary__row--sub',
|
|
25733
|
-
key: ''.concat(ppt.paxType, '-').concat(index, '-').concat(dIndex)
|
|
25734
|
-
},
|
|
25735
|
-
React__default.createElement('div', { className: 'pricing-summary__property' }, detail.numberOfPax, 'x ', detail.description),
|
|
25736
|
-
React__default.createElement(
|
|
25737
|
-
'div',
|
|
25738
|
-
{ className: 'pricing-summary__value' },
|
|
25739
|
-
formatPrice$3(detail.price / detail.numberOfPax, currencyCode)
|
|
25740
|
-
)
|
|
25741
|
-
);
|
|
25742
|
-
})
|
|
25743
|
-
);
|
|
25744
|
-
})
|
|
25745
|
-
),
|
|
25746
|
-
!isEmpty(includedCosts) &&
|
|
25747
|
-
React__default.createElement(
|
|
25748
|
-
'div',
|
|
25749
|
-
{ className: 'pricing-summary__group' },
|
|
25750
|
-
React__default.createElement('h6', { className: 'pricing-summary__title' }, translations.SIDEBAR.INCLUDED_COSTS),
|
|
25751
|
-
includedCosts === null || includedCosts === void 0
|
|
25752
|
-
? void 0
|
|
25753
|
-
: includedCosts.map(function (priceDetail, index) {
|
|
25754
|
-
var _a;
|
|
25755
|
-
return React__default.createElement(
|
|
25756
|
-
React__default.Fragment,
|
|
25757
|
-
{ key: compact([priceDetail.productCode, priceDetail.accommodationCode, index]).join('_') },
|
|
25758
|
-
React__default.createElement(
|
|
25759
|
-
'div',
|
|
25760
|
-
{ className: 'pricing-summary__row' },
|
|
25761
|
-
React__default.createElement('div', { className: 'pricing-summary__property' }, priceDetail.productName),
|
|
25762
|
-
priceDetail.showPrice &&
|
|
25763
|
-
React__default.createElement(
|
|
25764
|
-
'div',
|
|
25765
|
-
{ className: 'pricing-summary__value' },
|
|
25766
|
-
formatPrice$3(priceDetail.price * priceDetail.amount, currencyCode)
|
|
25767
|
-
)
|
|
25768
|
-
),
|
|
25769
|
-
React__default.createElement(
|
|
25770
|
-
'div',
|
|
25771
|
-
{ className: 'pricing-summary__row' },
|
|
26042
|
+
React__default.Fragment,
|
|
26043
|
+
{ key: ''.concat(ppt.paxType, '-').concat(index) },
|
|
25772
26044
|
React__default.createElement(
|
|
25773
26045
|
'div',
|
|
25774
|
-
{ className: '
|
|
25775
|
-
(_a = priceDetail.accommodationName) !== null && _a !== void 0 ? _a : priceDetail.accommodationCode
|
|
25776
|
-
)
|
|
25777
|
-
)
|
|
25778
|
-
);
|
|
25779
|
-
})
|
|
25780
|
-
),
|
|
25781
|
-
!isEmpty(extraCosts) &&
|
|
25782
|
-
React__default.createElement(
|
|
25783
|
-
'div',
|
|
25784
|
-
{ className: 'pricing-summary__group' },
|
|
25785
|
-
React__default.createElement('h6', { className: 'pricing-summary__title' }, translations.SIDEBAR.EXTRA_COSTS),
|
|
25786
|
-
extraCosts === null || extraCosts === void 0
|
|
25787
|
-
? void 0
|
|
25788
|
-
: extraCosts.map(function (priceDetail, index) {
|
|
25789
|
-
var _a;
|
|
25790
|
-
return React__default.createElement(
|
|
25791
|
-
React__default.Fragment,
|
|
25792
|
-
{ key: compact([priceDetail.productCode, priceDetail.accommodationCode, index]).join('_') },
|
|
25793
|
-
React__default.createElement(
|
|
25794
|
-
'div',
|
|
25795
|
-
{ className: 'pricing-summary__row' },
|
|
25796
|
-
React__default.createElement('div', { className: 'pricing-summary__property' }, priceDetail.productName),
|
|
25797
|
-
priceDetail.showPrice &&
|
|
26046
|
+
{ className: 'pricing-summary__row' },
|
|
25798
26047
|
React__default.createElement(
|
|
25799
26048
|
'div',
|
|
25800
|
-
{ className: 'pricing-
|
|
25801
|
-
|
|
25802
|
-
|
|
25803
|
-
|
|
25804
|
-
|
|
25805
|
-
|
|
25806
|
-
|
|
25807
|
-
|
|
25808
|
-
'div',
|
|
25809
|
-
{ className: 'pricing-summary__property' },
|
|
25810
|
-
(_a = priceDetail.accommodationName) !== null && _a !== void 0 ? _a : priceDetail.accommodationCode
|
|
25811
|
-
)
|
|
25812
|
-
),
|
|
25813
|
-
seperateExtraPricePerPaxType &&
|
|
25814
|
-
seperateExtraPricePerPaxType.map(function (ppt, index) {
|
|
26049
|
+
{ className: 'pricing-summary__property' },
|
|
26050
|
+
ppt.numberOfPax,
|
|
26051
|
+
' ',
|
|
26052
|
+
getPaxTypeTranslation(translations, ppt.paxType, ppt.numberOfPax)
|
|
26053
|
+
),
|
|
26054
|
+
React__default.createElement('div', { className: 'pricing-summary__value' }, formatPrice$3(ppt.pricePerPaxType, currencyCode))
|
|
26055
|
+
),
|
|
26056
|
+
ppt.details.map(function (detail, dIndex) {
|
|
25815
26057
|
return React__default.createElement(
|
|
25816
|
-
|
|
25817
|
-
{
|
|
26058
|
+
'div',
|
|
26059
|
+
{
|
|
26060
|
+
className: 'pricing-summary__row pricing-summary__row--sub',
|
|
26061
|
+
key: ''.concat(ppt.paxType, '-').concat(index, '-').concat(dIndex)
|
|
26062
|
+
},
|
|
25818
26063
|
React__default.createElement(
|
|
25819
26064
|
'div',
|
|
25820
|
-
{ className: 'pricing-
|
|
25821
|
-
|
|
25822
|
-
|
|
25823
|
-
|
|
25824
|
-
ppt.numberOfPax,
|
|
25825
|
-
' ',
|
|
25826
|
-
getPaxTypeTranslation(translations, ppt.paxType, ppt.numberOfPax)
|
|
25827
|
-
),
|
|
25828
|
-
React__default.createElement(
|
|
25829
|
-
'div',
|
|
25830
|
-
{ className: 'pricing-summary__value' },
|
|
25831
|
-
formatPrice$3(ppt.pricePerPaxType, currencyCode)
|
|
25832
|
-
)
|
|
26065
|
+
{ className: 'pricing-summary__property' },
|
|
26066
|
+
detail.numberOfPax,
|
|
26067
|
+
'x ',
|
|
26068
|
+
detail.description
|
|
25833
26069
|
),
|
|
25834
|
-
|
|
25835
|
-
|
|
25836
|
-
|
|
25837
|
-
|
|
25838
|
-
|
|
25839
|
-
key: ''.concat(ppt.paxType, '-').concat(index, '-').concat(dIndex)
|
|
25840
|
-
},
|
|
25841
|
-
React__default.createElement(
|
|
25842
|
-
'div',
|
|
25843
|
-
{ className: 'pricing-summary__property' },
|
|
25844
|
-
detail.numberOfPax,
|
|
25845
|
-
'x ',
|
|
25846
|
-
detail.description
|
|
25847
|
-
),
|
|
25848
|
-
React__default.createElement(
|
|
25849
|
-
'div',
|
|
25850
|
-
{ className: 'pricing-summary__value' },
|
|
25851
|
-
formatPrice$3(detail.price / detail.numberOfPax, currencyCode)
|
|
25852
|
-
)
|
|
25853
|
-
);
|
|
25854
|
-
})
|
|
26070
|
+
React__default.createElement(
|
|
26071
|
+
'div',
|
|
26072
|
+
{ className: 'pricing-summary__value' },
|
|
26073
|
+
formatPrice$3(detail.price / detail.numberOfPax, currencyCode)
|
|
26074
|
+
)
|
|
25855
26075
|
);
|
|
25856
26076
|
})
|
|
25857
|
-
|
|
25858
|
-
|
|
25859
|
-
|
|
26077
|
+
);
|
|
26078
|
+
})
|
|
26079
|
+
);
|
|
26080
|
+
})
|
|
25860
26081
|
)
|
|
25861
|
-
)
|
|
25862
|
-
: React__default.createElement(
|
|
25863
|
-
'div',
|
|
25864
|
-
{ className: 'pricing-summary__region' },
|
|
25865
|
-
React__default.createElement('h6', { className: 'pricing-summary__title' }, translations.SIDEBAR.PACKAGE_NOT_AVAILABLE)
|
|
25866
26082
|
),
|
|
25867
|
-
|
|
25868
|
-
|
|
25869
|
-
|
|
25870
|
-
|
|
25871
|
-
|
|
25872
|
-
|
|
25873
|
-
|
|
25874
|
-
|
|
25875
|
-
|
|
25876
|
-
|
|
25877
|
-
|
|
25878
|
-
React__default.createElement(
|
|
25879
|
-
'div',
|
|
25880
|
-
{ className: 'pricing-summary__row pricing-summary__row--total-price' },
|
|
26083
|
+
!isLoading &&
|
|
26084
|
+
canShowTotalPriceSection &&
|
|
26085
|
+
!isUnavailable &&
|
|
26086
|
+
React__default.createElement(
|
|
26087
|
+
'div',
|
|
26088
|
+
{ className: 'pricing-summary__region pricing-summary__region--pricing '.concat(!isLoading ? 'pricing-summary__region--fade-in' : '') },
|
|
26089
|
+
deposit && remainingAmount > 0
|
|
26090
|
+
? React__default.createElement(
|
|
26091
|
+
'div',
|
|
26092
|
+
{ className: 'pricing-summary__group' },
|
|
26093
|
+
agent &&
|
|
25881
26094
|
React__default.createElement(
|
|
25882
26095
|
'div',
|
|
25883
|
-
{ className: 'pricing-
|
|
25884
|
-
React__default.createElement(
|
|
26096
|
+
{ className: 'pricing-summary__row pricing-summary__row--total-price' },
|
|
26097
|
+
React__default.createElement(
|
|
26098
|
+
'div',
|
|
26099
|
+
{ className: 'pricing-summary__property' },
|
|
26100
|
+
React__default.createElement('h6', { className: 'pricing-summary__title' }, translations.SIDEBAR.COMMISSION)
|
|
26101
|
+
),
|
|
26102
|
+
React__default.createElement(
|
|
26103
|
+
'div',
|
|
26104
|
+
{ className: 'pricing-summary__value' },
|
|
26105
|
+
React__default.createElement(
|
|
26106
|
+
'div',
|
|
26107
|
+
{ className: 'pricing' },
|
|
26108
|
+
React__default.createElement(
|
|
26109
|
+
'div',
|
|
26110
|
+
{ className: 'pricing__price' },
|
|
26111
|
+
formatPrice$3(commission !== null && commission !== void 0 ? commission : 0, currencyCode)
|
|
26112
|
+
)
|
|
26113
|
+
)
|
|
26114
|
+
)
|
|
25885
26115
|
),
|
|
26116
|
+
totalPrice !== undefined &&
|
|
26117
|
+
totalPrice > 0 &&
|
|
25886
26118
|
React__default.createElement(
|
|
25887
26119
|
'div',
|
|
25888
|
-
{ className: 'pricing-
|
|
26120
|
+
{ className: 'pricing-summary__row pricing-summary__row--total-price' },
|
|
25889
26121
|
React__default.createElement(
|
|
25890
26122
|
'div',
|
|
25891
|
-
{ className: 'pricing' },
|
|
26123
|
+
{ className: 'pricing-summary__property' },
|
|
26124
|
+
React__default.createElement('h6', { className: 'pricing-summary__title' }, translations.SHARED.TOTAL_PRICE)
|
|
26125
|
+
),
|
|
26126
|
+
React__default.createElement(
|
|
26127
|
+
'div',
|
|
26128
|
+
{ className: 'pricing-summary__value' },
|
|
25892
26129
|
React__default.createElement(
|
|
25893
26130
|
'div',
|
|
25894
|
-
{ className: '
|
|
25895
|
-
|
|
26131
|
+
{ className: 'pricing' },
|
|
26132
|
+
React__default.createElement('div', { className: 'pricing__price' }, formatPrice$3(totalPrice, currencyCode))
|
|
25896
26133
|
)
|
|
25897
26134
|
)
|
|
25898
|
-
)
|
|
25899
|
-
),
|
|
25900
|
-
totalPrice !== undefined &&
|
|
25901
|
-
totalPrice > 0 &&
|
|
26135
|
+
),
|
|
25902
26136
|
React__default.createElement(
|
|
25903
26137
|
'div',
|
|
25904
|
-
{ className: 'pricing-summary__row
|
|
26138
|
+
{ className: 'pricing-summary__row' },
|
|
25905
26139
|
React__default.createElement(
|
|
25906
26140
|
'div',
|
|
25907
26141
|
{ className: 'pricing-summary__property' },
|
|
25908
|
-
React__default.createElement('h6', { className: 'pricing-summary__title' }, translations.
|
|
26142
|
+
React__default.createElement('h6', { className: 'pricing-summary__title' }, translations.SIDEBAR.DEPOSIT)
|
|
25909
26143
|
),
|
|
25910
26144
|
React__default.createElement(
|
|
25911
26145
|
'div',
|
|
@@ -25913,97 +26147,80 @@ var Sidebar = function (_a) {
|
|
|
25913
26147
|
React__default.createElement(
|
|
25914
26148
|
'div',
|
|
25915
26149
|
{ className: 'pricing' },
|
|
25916
|
-
React__default.createElement('div', { className: 'pricing__price' }, formatPrice$3(
|
|
26150
|
+
React__default.createElement('div', { className: 'pricing__price' }, formatPrice$3(deposit, currencyCode))
|
|
25917
26151
|
)
|
|
25918
26152
|
)
|
|
25919
26153
|
),
|
|
25920
|
-
React__default.createElement(
|
|
25921
|
-
'div',
|
|
25922
|
-
{ className: 'pricing-summary__row' },
|
|
25923
|
-
React__default.createElement(
|
|
25924
|
-
'div',
|
|
25925
|
-
{ className: 'pricing-summary__property' },
|
|
25926
|
-
React__default.createElement('h6', { className: 'pricing-summary__title' }, translations.SIDEBAR.DEPOSIT)
|
|
25927
|
-
),
|
|
25928
26154
|
React__default.createElement(
|
|
25929
26155
|
'div',
|
|
25930
|
-
{ className: 'pricing-
|
|
25931
|
-
React__default.createElement(
|
|
25932
|
-
'div',
|
|
25933
|
-
{ className: 'pricing' },
|
|
25934
|
-
React__default.createElement('div', { className: 'pricing__price' }, formatPrice$3(deposit, currencyCode))
|
|
25935
|
-
)
|
|
25936
|
-
)
|
|
25937
|
-
),
|
|
25938
|
-
React__default.createElement(
|
|
25939
|
-
'div',
|
|
25940
|
-
{ className: 'pricing-summary__row' },
|
|
25941
|
-
React__default.createElement(
|
|
25942
|
-
'small',
|
|
25943
|
-
null,
|
|
26156
|
+
{ className: 'pricing-summary__row' },
|
|
25944
26157
|
React__default.createElement(
|
|
25945
|
-
'
|
|
26158
|
+
'small',
|
|
25946
26159
|
null,
|
|
25947
|
-
|
|
25948
|
-
|
|
25949
|
-
|
|
25950
|
-
|
|
25951
|
-
|
|
25952
|
-
|
|
25953
|
-
|
|
26160
|
+
React__default.createElement(
|
|
26161
|
+
'em',
|
|
26162
|
+
null,
|
|
26163
|
+
translations.SIDEBAR.DEPOSIT_TEXT1,
|
|
26164
|
+
React__default.createElement('strong', null, translations.SIDEBAR.DEPOSIT_TEXT2),
|
|
26165
|
+
translations.SIDEBAR.DEPOSIT_TEXT3,
|
|
26166
|
+
formatPrice$3(remainingAmount, currencyCode),
|
|
26167
|
+
translations.SIDEBAR.DEPOSIT_TEXT4,
|
|
26168
|
+
React__default.createElement('strong', null, translations.SIDEBAR.DEPOSIT_TEXT5),
|
|
26169
|
+
translations.SIDEBAR.DEPOSIT_TEXT6
|
|
26170
|
+
)
|
|
25954
26171
|
)
|
|
25955
26172
|
)
|
|
25956
26173
|
)
|
|
25957
|
-
|
|
25958
|
-
|
|
25959
|
-
|
|
25960
|
-
|
|
25961
|
-
isAgent &&
|
|
25962
|
-
React__default.createElement(
|
|
25963
|
-
'div',
|
|
25964
|
-
{ className: 'pricing-summary__row pricing-summary__row--total-price' },
|
|
25965
|
-
React__default.createElement(
|
|
25966
|
-
'div',
|
|
25967
|
-
{ className: 'pricing-summary__property' },
|
|
25968
|
-
React__default.createElement('h6', { className: 'pricing-summary__title' }, translations.SIDEBAR.COMMISSION)
|
|
25969
|
-
),
|
|
26174
|
+
: React__default.createElement(
|
|
26175
|
+
'div',
|
|
26176
|
+
{ className: 'pricing-summary__group' },
|
|
26177
|
+
agent &&
|
|
25970
26178
|
React__default.createElement(
|
|
25971
26179
|
'div',
|
|
25972
|
-
{ className: 'pricing-
|
|
26180
|
+
{ className: 'pricing-summary__row pricing-summary__row--total-price' },
|
|
25973
26181
|
React__default.createElement(
|
|
25974
26182
|
'div',
|
|
25975
|
-
{ className: 'pricing' },
|
|
26183
|
+
{ className: 'pricing-summary__property' },
|
|
26184
|
+
React__default.createElement('h6', { className: 'pricing-summary__title' }, translations.SIDEBAR.COMMISSION)
|
|
26185
|
+
),
|
|
26186
|
+
React__default.createElement(
|
|
26187
|
+
'div',
|
|
26188
|
+
{ className: 'pricing-summary__value' },
|
|
25976
26189
|
React__default.createElement(
|
|
25977
26190
|
'div',
|
|
25978
|
-
{ className: '
|
|
25979
|
-
|
|
26191
|
+
{ className: 'pricing' },
|
|
26192
|
+
React__default.createElement(
|
|
26193
|
+
'div',
|
|
26194
|
+
{ className: 'pricing__price' },
|
|
26195
|
+
formatPrice$3(commission !== null && commission !== void 0 ? commission : 0, currencyCode)
|
|
26196
|
+
)
|
|
25980
26197
|
)
|
|
25981
26198
|
)
|
|
25982
|
-
)
|
|
25983
|
-
),
|
|
25984
|
-
totalPrice !== undefined &&
|
|
25985
|
-
totalPrice > 0 &&
|
|
25986
|
-
React__default.createElement(
|
|
25987
|
-
'div',
|
|
25988
|
-
{ className: 'pricing-summary__row pricing-summary__row--total-price' },
|
|
25989
|
-
React__default.createElement(
|
|
25990
|
-
'div',
|
|
25991
|
-
{ className: 'pricing-summary__property' },
|
|
25992
|
-
React__default.createElement('h6', { className: 'pricing-summary__title' }, translations.SHARED.TOTAL_PRICE)
|
|
25993
26199
|
),
|
|
26200
|
+
totalPrice !== undefined &&
|
|
26201
|
+
totalPrice > 0 &&
|
|
25994
26202
|
React__default.createElement(
|
|
25995
26203
|
'div',
|
|
25996
|
-
{ className: 'pricing-
|
|
26204
|
+
{ className: 'pricing-summary__row pricing-summary__row--total-price' },
|
|
25997
26205
|
React__default.createElement(
|
|
25998
26206
|
'div',
|
|
25999
|
-
{ className: 'pricing' },
|
|
26000
|
-
React__default.createElement('
|
|
26207
|
+
{ className: 'pricing-summary__property' },
|
|
26208
|
+
React__default.createElement('h6', { className: 'pricing-summary__title' }, translations.SHARED.TOTAL_PRICE)
|
|
26209
|
+
),
|
|
26210
|
+
React__default.createElement(
|
|
26211
|
+
'div',
|
|
26212
|
+
{ className: 'pricing-summary__value' },
|
|
26213
|
+
React__default.createElement(
|
|
26214
|
+
'div',
|
|
26215
|
+
{ className: 'pricing' },
|
|
26216
|
+
React__default.createElement('div', { className: 'pricing__price' }, formatPrice$3(totalPrice, currencyCode))
|
|
26217
|
+
)
|
|
26001
26218
|
)
|
|
26002
26219
|
)
|
|
26003
|
-
|
|
26004
|
-
|
|
26005
|
-
|
|
26006
|
-
|
|
26220
|
+
)
|
|
26221
|
+
),
|
|
26222
|
+
footerComponent
|
|
26223
|
+
)
|
|
26007
26224
|
)
|
|
26008
26225
|
)
|
|
26009
26226
|
);
|
|
@@ -26020,7 +26237,8 @@ var SidebarContainer = function (_a) {
|
|
|
26020
26237
|
showPricesPerPaxType = _f.showPricesPerPaxType;
|
|
26021
26238
|
var bookingAttributes = useSelector(selectBookingAttributes);
|
|
26022
26239
|
var rooms = useSelector(selectFormRooms);
|
|
26023
|
-
var
|
|
26240
|
+
var translations = useSelector(selectTranslations);
|
|
26241
|
+
var travelerRooms = getTravelersText(rooms, translations);
|
|
26024
26242
|
var departureFlight = useSelector(selectDepartureFlight);
|
|
26025
26243
|
var departureFlightMetaData =
|
|
26026
26244
|
(_b = departureFlight === null || departureFlight === void 0 ? void 0 : departureFlight.flightMetaData) !== null && _b !== void 0
|
|
@@ -26041,7 +26259,8 @@ var SidebarContainer = function (_a) {
|
|
|
26041
26259
|
var includedServiceTypes = useSelector(selectIncludedServiceTypes);
|
|
26042
26260
|
var isUnavailable = useSelector(selectIsUnavailable) || false;
|
|
26043
26261
|
var isLoading = isFetchingProductOptions || isFetchingPriceDetails;
|
|
26044
|
-
|
|
26262
|
+
var agent = useSelector(selectAgentAdressId);
|
|
26263
|
+
return React__default.createElement(SharedSidebar, {
|
|
26045
26264
|
productName: productName,
|
|
26046
26265
|
thumbnailUrl: thumbnailUrl,
|
|
26047
26266
|
isLoading: isLoading,
|
|
@@ -26057,7 +26276,7 @@ var SidebarContainer = function (_a) {
|
|
|
26057
26276
|
basePrice: useSelector(selectBasePrice),
|
|
26058
26277
|
commission: useSelector(selectCommission),
|
|
26059
26278
|
totalPrice: useSelector(selectTotalPrice),
|
|
26060
|
-
includedCosts: useSelector(selectSeparatePackagePriceDetails),
|
|
26279
|
+
includedCosts: useSelector(selectSeparatePackagePriceDetails$1),
|
|
26061
26280
|
extraCosts: useSelector(selectSeparateExtraPriceDetails),
|
|
26062
26281
|
accommodations: accommodations,
|
|
26063
26282
|
includedServiceTypes: includedServiceTypes,
|
|
@@ -26068,7 +26287,9 @@ var SidebarContainer = function (_a) {
|
|
|
26068
26287
|
loaderComponent: loaderComponent !== null && loaderComponent !== void 0 ? loaderComponent : undefined,
|
|
26069
26288
|
isUnavailable: isUnavailable,
|
|
26070
26289
|
basePricePerPaxType: showPricesPerPaxType ? useSelector(selectBasePricePerPaxType) : undefined,
|
|
26071
|
-
seperateExtraPricePerPaxType: showPricesPerPaxType ? useSelector(selectSeparateExtraPriceDetailsPerPaxType) : undefined
|
|
26290
|
+
seperateExtraPricePerPaxType: showPricesPerPaxType ? useSelector(selectSeparateExtraPriceDetailsPerPaxType) : undefined,
|
|
26291
|
+
translations: translations,
|
|
26292
|
+
agent: agent
|
|
26072
26293
|
});
|
|
26073
26294
|
};
|
|
26074
26295
|
|
|
@@ -30721,15 +30942,22 @@ var qsmReducer = qsmSlice.reducer;
|
|
|
30721
30942
|
|
|
30722
30943
|
var SearchResultsConfigurationContext = React__default.createContext(undefined);
|
|
30723
30944
|
|
|
30724
|
-
var Spinner = function () {
|
|
30725
|
-
var
|
|
30945
|
+
var Spinner = function (_a) {
|
|
30946
|
+
var _b;
|
|
30947
|
+
var label = _a.label;
|
|
30726
30948
|
var context = useContext(SearchResultsConfigurationContext);
|
|
30727
|
-
var translations = getTranslations((
|
|
30949
|
+
var translations = getTranslations((_b = context === null || context === void 0 ? void 0 : context.languageCode) !== null && _b !== void 0 ? _b : 'en-GB');
|
|
30728
30950
|
return React__default.createElement(
|
|
30729
30951
|
'div',
|
|
30730
|
-
{ className: '
|
|
30731
|
-
React__default.createElement(
|
|
30732
|
-
|
|
30952
|
+
{ className: 'loader__container' },
|
|
30953
|
+
React__default.createElement(
|
|
30954
|
+
'div',
|
|
30955
|
+
{ className: 'loader__line' },
|
|
30956
|
+
React__default.createElement('li', { className: 'loader__ball loader__ball--1' }),
|
|
30957
|
+
React__default.createElement('li', { className: 'loader__ball loader__ball--2' }),
|
|
30958
|
+
React__default.createElement('li', { className: 'loader__ball loader__ball--3' })
|
|
30959
|
+
),
|
|
30960
|
+
React__default.createElement('div', { 'data-text': label !== null && label !== void 0 ? label : translations.SRP.LOADING, className: 'loader__line__text' })
|
|
30733
30961
|
);
|
|
30734
30962
|
};
|
|
30735
30963
|
|
|
@@ -33320,7 +33548,9 @@ var initialState$1 = {
|
|
|
33320
33548
|
itinerary: null,
|
|
33321
33549
|
excursionSearchParams: null,
|
|
33322
33550
|
selectedExcursionSearchResult: null,
|
|
33323
|
-
confirmedExcursionsByDay: {}
|
|
33551
|
+
confirmedExcursionsByDay: {},
|
|
33552
|
+
bookPackagingEntry: false,
|
|
33553
|
+
currentStep: 0
|
|
33324
33554
|
};
|
|
33325
33555
|
var searchResultsSlice = createSlice({
|
|
33326
33556
|
name: 'searchResults',
|
|
@@ -33501,6 +33731,12 @@ var searchResultsSlice = createSlice({
|
|
|
33501
33731
|
},
|
|
33502
33732
|
clearConfirmedExcursionsForDay: function (state, action) {
|
|
33503
33733
|
delete state.confirmedExcursionsByDay[action.payload.dayKey];
|
|
33734
|
+
},
|
|
33735
|
+
setBookPackagingEntry: function (state, action) {
|
|
33736
|
+
state.bookPackagingEntry = action.payload;
|
|
33737
|
+
},
|
|
33738
|
+
setCurrentStep: function (state, action) {
|
|
33739
|
+
state.currentStep = action.payload;
|
|
33504
33740
|
}
|
|
33505
33741
|
}
|
|
33506
33742
|
});
|
|
@@ -33545,6 +33781,8 @@ var setExcursionSearchParams = _a.setExcursionSearchParams,
|
|
|
33545
33781
|
confirmExcursionForDay = _a.confirmExcursionForDay,
|
|
33546
33782
|
removeConfirmedExcursionForDay = _a.removeConfirmedExcursionForDay;
|
|
33547
33783
|
_a.clearConfirmedExcursionsForDay;
|
|
33784
|
+
var setBookPackagingEntry = _a.setBookPackagingEntry;
|
|
33785
|
+
_a.setCurrentStep;
|
|
33548
33786
|
var searchResultsReducer = searchResultsSlice.reducer;
|
|
33549
33787
|
|
|
33550
33788
|
var ItemPicker = function (_a) {
|
|
@@ -33891,11 +34129,6 @@ var getServiceTypePriority = function (serviceType) {
|
|
|
33891
34129
|
var _a;
|
|
33892
34130
|
return (_a = SERVICE_TYPE_PRIORITY[serviceType !== null && serviceType !== void 0 ? serviceType : -1]) !== null && _a !== void 0 ? _a : 2;
|
|
33893
34131
|
};
|
|
33894
|
-
var getDateOnlyTime = function (date) {
|
|
33895
|
-
if (!date) return 0;
|
|
33896
|
-
var parsedDate = new Date(date);
|
|
33897
|
-
return new Date(parsedDate.getFullYear(), parsedDate.getMonth(), parsedDate.getDate()).getTime();
|
|
33898
|
-
};
|
|
33899
34132
|
var Itinerary = function (_a) {
|
|
33900
34133
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
33901
34134
|
var isOpen = _a.isOpen,
|
|
@@ -33909,6 +34142,7 @@ var Itinerary = function (_a) {
|
|
|
33909
34142
|
}),
|
|
33910
34143
|
editablePackagingEntry = _q.editablePackagingEntry,
|
|
33911
34144
|
priceDetails = _q.priceDetails;
|
|
34145
|
+
var dispatch = useDispatch();
|
|
33912
34146
|
var packagingEntry =
|
|
33913
34147
|
editablePackagingEntry !== null && editablePackagingEntry !== void 0
|
|
33914
34148
|
? editablePackagingEntry
|
|
@@ -33999,6 +34233,9 @@ var Itinerary = function (_a) {
|
|
|
33999
34233
|
var numberOfPax = ((_p = packagingEntry.pax) === null || _p === void 0 ? void 0 : _p.length) || 1;
|
|
34000
34234
|
var totalPrice = (priceDetails === null || priceDetails === void 0 ? void 0 : priceDetails.total) || packagingEntry.price || 0;
|
|
34001
34235
|
var pricePerPerson = totalPrice / numberOfPax;
|
|
34236
|
+
var handleConfirm = function () {
|
|
34237
|
+
dispatch(setBookPackagingEntry(true));
|
|
34238
|
+
};
|
|
34002
34239
|
return React__default.createElement(
|
|
34003
34240
|
'div',
|
|
34004
34241
|
{ className: 'search__filters--modal '.concat(isOpen ? 'is-open' : '') },
|
|
@@ -34050,7 +34287,7 @@ var Itinerary = function (_a) {
|
|
|
34050
34287
|
'div',
|
|
34051
34288
|
{ className: 'search__filter__prices' },
|
|
34052
34289
|
isLoading
|
|
34053
|
-
? React__default.createElement(Spinner,
|
|
34290
|
+
? React__default.createElement(Spinner, { label: translations.PRODUCT.LOADING_PRICE })
|
|
34054
34291
|
: React__default.createElement(
|
|
34055
34292
|
React__default.Fragment,
|
|
34056
34293
|
null,
|
|
@@ -34065,7 +34302,7 @@ var Itinerary = function (_a) {
|
|
|
34065
34302
|
React__default.createElement('strong', null, '(', formatPrice$3(totalPrice, 'EUR'), ' ', translations.SRP.TOTAL, ')')
|
|
34066
34303
|
)
|
|
34067
34304
|
),
|
|
34068
|
-
React__default.createElement('button', { className: 'cta' }, translations.QSM.CONFIRM)
|
|
34305
|
+
React__default.createElement('button', { className: 'cta', onClick: handleConfirm }, translations.QSM.CONFIRM)
|
|
34069
34306
|
)
|
|
34070
34307
|
),
|
|
34071
34308
|
React__default.createElement(
|
|
@@ -35388,7 +35625,7 @@ var FlightsFlyIn = function (_a) {
|
|
|
35388
35625
|
'div',
|
|
35389
35626
|
{ className: 'flyin__content' },
|
|
35390
35627
|
flightSearchDetailsLoading || isEmpty(flights)
|
|
35391
|
-
? React__default.createElement(Spinner,
|
|
35628
|
+
? React__default.createElement(Spinner, { label: translations.SRP.LOADING_FLIGHTS })
|
|
35392
35629
|
: flight &&
|
|
35393
35630
|
React__default.createElement(
|
|
35394
35631
|
'div',
|
|
@@ -35995,17 +36232,17 @@ var AccommodationFlyIn = function (_a) {
|
|
|
35995
36232
|
handleConfirm = _a.handleConfirm;
|
|
35996
36233
|
var dispatch = useDispatch();
|
|
35997
36234
|
var context = useContext(SearchResultsConfigurationContext);
|
|
36235
|
+
var language = (_b = context === null || context === void 0 ? void 0 : context.languageCode) !== null && _b !== void 0 ? _b : 'en-GB';
|
|
36236
|
+
var translations = getTranslations(language);
|
|
35998
36237
|
if (isLoading) {
|
|
35999
36238
|
return React__default.createElement(
|
|
36000
36239
|
React__default.Fragment,
|
|
36001
36240
|
null,
|
|
36002
|
-
(
|
|
36003
|
-
?
|
|
36004
|
-
: React__default.createElement(Spinner,
|
|
36241
|
+
(_c = context === null || context === void 0 ? void 0 : context.customSpinner) !== null && _c !== void 0
|
|
36242
|
+
? _c
|
|
36243
|
+
: React__default.createElement(Spinner, { label: translations.SRP.LOADING_ACCOMMODATIONS })
|
|
36005
36244
|
);
|
|
36006
36245
|
}
|
|
36007
|
-
var language = (_c = context === null || context === void 0 ? void 0 : context.languageCode) !== null && _c !== void 0 ? _c : 'en-GB';
|
|
36008
|
-
var translations = getTranslations(language);
|
|
36009
36246
|
var _d = useSelector(function (state) {
|
|
36010
36247
|
return state.searchResults;
|
|
36011
36248
|
}),
|
|
@@ -36442,17 +36679,17 @@ var GroupTourFlyIn = function (_a) {
|
|
|
36442
36679
|
setIsOpen = _a.setIsOpen;
|
|
36443
36680
|
var dispatch = useDispatch();
|
|
36444
36681
|
var context = useContext(SearchResultsConfigurationContext);
|
|
36682
|
+
var language = (_b = context === null || context === void 0 ? void 0 : context.languageCode) !== null && _b !== void 0 ? _b : 'en-GB';
|
|
36683
|
+
var translations = getTranslations(language);
|
|
36445
36684
|
if (isLoading) {
|
|
36446
36685
|
return React__default.createElement(
|
|
36447
36686
|
React__default.Fragment,
|
|
36448
36687
|
null,
|
|
36449
|
-
(
|
|
36450
|
-
?
|
|
36451
|
-
: React__default.createElement(Spinner,
|
|
36688
|
+
(_c = context === null || context === void 0 ? void 0 : context.customSpinner) !== null && _c !== void 0
|
|
36689
|
+
? _c
|
|
36690
|
+
: React__default.createElement(Spinner, { label: translations.SRP.LOADING_OPTIONS })
|
|
36452
36691
|
);
|
|
36453
36692
|
}
|
|
36454
|
-
var language = (_c = context === null || context === void 0 ? void 0 : context.languageCode) !== null && _c !== void 0 ? _c : 'en-GB';
|
|
36455
|
-
var translations = getTranslations(language);
|
|
36456
36693
|
var bookingPackageDetails = useSelector(function (state) {
|
|
36457
36694
|
return state.searchResults;
|
|
36458
36695
|
}).bookingPackageDetails;
|
|
@@ -41241,18 +41478,13 @@ var HotelAccommodationResults = function (_a) {
|
|
|
41241
41478
|
React__default.createElement(
|
|
41242
41479
|
'div',
|
|
41243
41480
|
{ className: 'search__results__label__date' },
|
|
41244
|
-
|
|
41245
|
-
|
|
41246
|
-
React__default.Fragment,
|
|
41247
|
-
null,
|
|
41248
|
-
React__default.createElement('p', { className: 'search__results__label__date-date' }, firstResultDay),
|
|
41249
|
-
React__default.createElement('p', null, firstResultMonth)
|
|
41250
|
-
)
|
|
41251
|
-
: React__default.createElement(Icon, { name: 'ui-bed', height: 16, fill: 'white' })
|
|
41481
|
+
React__default.createElement('p', { className: 'search__results__label__date-date' }, firstResultDay),
|
|
41482
|
+
React__default.createElement('p', null, firstResultMonth)
|
|
41252
41483
|
),
|
|
41253
41484
|
React__default.createElement(
|
|
41254
41485
|
'div',
|
|
41255
41486
|
{ className: 'search__results__label__text' },
|
|
41487
|
+
React__default.createElement(Icon, { name: 'ui-bed', height: 16 }),
|
|
41256
41488
|
React__default.createElement('h3', null, translations.SRP.SELECT, ' ', React__default.createElement('strong', null, translations.SRP.ACCOMMODATION))
|
|
41257
41489
|
)
|
|
41258
41490
|
),
|
|
@@ -41260,7 +41492,9 @@ var HotelAccommodationResults = function (_a) {
|
|
|
41260
41492
|
? React__default.createElement(
|
|
41261
41493
|
React__default.Fragment,
|
|
41262
41494
|
null,
|
|
41263
|
-
(_c = context.customSpinner) !== null && _c !== void 0
|
|
41495
|
+
(_c = context.customSpinner) !== null && _c !== void 0
|
|
41496
|
+
? _c
|
|
41497
|
+
: React__default.createElement(Spinner, { label: translations.SRP.LOADING_ACCOMMODATIONS })
|
|
41264
41498
|
)
|
|
41265
41499
|
: renderHotelResults(visibleResults, context, activeTab, translations, selectedPackagingAccoResult, isFlyIn),
|
|
41266
41500
|
packagingAccoResults.length > 3 &&
|
|
@@ -41963,6 +42197,8 @@ var PackageingFlightsFlyIn = function (_a) {
|
|
|
41963
42197
|
var _b;
|
|
41964
42198
|
_a.isOpen;
|
|
41965
42199
|
_a.setIsOpen;
|
|
42200
|
+
var toggleFilters = _a.toggleFilters,
|
|
42201
|
+
filtersOpen = _a.filtersOpen;
|
|
41966
42202
|
var context = useContext(SearchResultsConfigurationContext);
|
|
41967
42203
|
var language = (_b = context === null || context === void 0 ? void 0 : context.languageCode) !== null && _b !== void 0 ? _b : 'en-GB';
|
|
41968
42204
|
var translations = getTranslations(language);
|
|
@@ -42016,15 +42252,17 @@ var PackageingFlightsFlyIn = function (_a) {
|
|
|
42016
42252
|
'div',
|
|
42017
42253
|
{ className: 'flyin__content flyin__content--columns' },
|
|
42018
42254
|
flightsLoading
|
|
42019
|
-
? React__default.createElement(Spinner,
|
|
42255
|
+
? React__default.createElement(Spinner, { label: translations.SRP.LOADING_FLIGHTS })
|
|
42020
42256
|
: React__default.createElement(
|
|
42021
42257
|
React__default.Fragment,
|
|
42022
42258
|
null,
|
|
42023
42259
|
React__default.createElement(Filters, {
|
|
42024
42260
|
initialFilters: initialFlightFilters,
|
|
42025
42261
|
filters: flightFilters,
|
|
42026
|
-
isOpen:
|
|
42027
|
-
handleSetIsOpen: function () {
|
|
42262
|
+
isOpen: filtersOpen,
|
|
42263
|
+
handleSetIsOpen: function () {
|
|
42264
|
+
return toggleFilters && toggleFilters();
|
|
42265
|
+
},
|
|
42028
42266
|
// handleApplyFilters={() => setSearchTrigger((prev) => prev + 1)}
|
|
42029
42267
|
isLoading: flightsLoading,
|
|
42030
42268
|
setFilters: function (filters) {
|
|
@@ -42049,6 +42287,17 @@ var PackageingFlightsFlyIn = function (_a) {
|
|
|
42049
42287
|
'\u00A0',
|
|
42050
42288
|
translations.FLIGHTS_FORM.FLIGHTS_FOUND_3
|
|
42051
42289
|
),
|
|
42290
|
+
React__default.createElement(
|
|
42291
|
+
'div',
|
|
42292
|
+
{
|
|
42293
|
+
className: 'cta cta--filter',
|
|
42294
|
+
onClick: function () {
|
|
42295
|
+
return toggleFilters && toggleFilters();
|
|
42296
|
+
}
|
|
42297
|
+
},
|
|
42298
|
+
React__default.createElement(Icon, { name: 'ui-filter', className: 'mobile-filters-button__icon', height: 16 }),
|
|
42299
|
+
translations.SRP.FILTERS
|
|
42300
|
+
),
|
|
42052
42301
|
sortByTypes &&
|
|
42053
42302
|
sortByTypes.length > 0 &&
|
|
42054
42303
|
React__default.createElement(
|
|
@@ -42256,7 +42505,7 @@ var ExcursionResults = function (_a) {
|
|
|
42256
42505
|
dispatch(setSelectedExcursionSearchResult(excursion));
|
|
42257
42506
|
};
|
|
42258
42507
|
return isLoading
|
|
42259
|
-
? React__default.createElement(Spinner,
|
|
42508
|
+
? React__default.createElement(Spinner, { label: translations.SRP.LOADING_EXCURSIONS })
|
|
42260
42509
|
: React__default.createElement(
|
|
42261
42510
|
'div',
|
|
42262
42511
|
{ className: 'flyin__content flyin__content--columns' },
|
|
@@ -42706,7 +42955,9 @@ var FlyIn = function (_a) {
|
|
|
42706
42955
|
isPackageEditFlow = _a.isPackageEditFlow,
|
|
42707
42956
|
handleConfirm = _a.handleConfirm,
|
|
42708
42957
|
sortByTypes = _a.sortByTypes,
|
|
42709
|
-
activeSearchSeed = _a.activeSearchSeed
|
|
42958
|
+
activeSearchSeed = _a.activeSearchSeed,
|
|
42959
|
+
toggleFilters = _a.toggleFilters,
|
|
42960
|
+
filtersOpen = _a.filtersOpen;
|
|
42710
42961
|
var dispatch = useDispatch();
|
|
42711
42962
|
var context = useContext(SearchResultsConfigurationContext);
|
|
42712
42963
|
var language = (_b = context === null || context === void 0 ? void 0 : context.languageCode) !== null && _b !== void 0 ? _b : 'en-GB';
|
|
@@ -42855,8 +43106,10 @@ var FlyIn = function (_a) {
|
|
|
42855
43106
|
React__default.createElement(Filters, {
|
|
42856
43107
|
initialFilters: initialFilters,
|
|
42857
43108
|
filters: filters,
|
|
42858
|
-
isOpen:
|
|
42859
|
-
handleSetIsOpen: function () {
|
|
43109
|
+
isOpen: filtersOpen,
|
|
43110
|
+
handleSetIsOpen: function () {
|
|
43111
|
+
return toggleFilters && toggleFilters();
|
|
43112
|
+
},
|
|
42860
43113
|
// handleApplyFilters={() => setSearchTrigger((prev) => prev + 1)}
|
|
42861
43114
|
isLoading: isLoading,
|
|
42862
43115
|
setFilters: function (filters) {
|
|
@@ -42885,6 +43138,17 @@ var FlyIn = function (_a) {
|
|
|
42885
43138
|
translations.SRP.TOTAL_RESULTS_LABEL
|
|
42886
43139
|
)
|
|
42887
43140
|
),
|
|
43141
|
+
React__default.createElement(
|
|
43142
|
+
'div',
|
|
43143
|
+
{
|
|
43144
|
+
className: 'cta cta--filter',
|
|
43145
|
+
onClick: function () {
|
|
43146
|
+
return toggleFilters && toggleFilters();
|
|
43147
|
+
}
|
|
43148
|
+
},
|
|
43149
|
+
React__default.createElement(Icon, { name: 'ui-filter', className: 'mobile-filters-button__icon', height: 16 }),
|
|
43150
|
+
translations.SRP.FILTERS
|
|
43151
|
+
),
|
|
42888
43152
|
sortByTypes &&
|
|
42889
43153
|
sortByTypes.length > 0 &&
|
|
42890
43154
|
React__default.createElement(
|
|
@@ -42914,7 +43178,7 @@ var FlyIn = function (_a) {
|
|
|
42914
43178
|
React__default.createElement(AccommodationFlyIn, { isLoading: detailsLoading, handleConfirm: handleConfirm }),
|
|
42915
43179
|
srpType === build.PortalQsmType.AccommodationAndFlight &&
|
|
42916
43180
|
(flyInType === 'flight-outward-results' || flyInType === 'flight-return-results') &&
|
|
42917
|
-
React__default.createElement(PackageingFlightsFlyIn, { isOpen: isOpen, setIsOpen: setIsOpen }),
|
|
43181
|
+
React__default.createElement(PackageingFlightsFlyIn, { isOpen: isOpen, setIsOpen: setIsOpen, toggleFilters: toggleFilters, filtersOpen: filtersOpen }),
|
|
42918
43182
|
srpType === build.PortalQsmType.AccommodationAndFlight &&
|
|
42919
43183
|
flyInType === 'excursion-results' &&
|
|
42920
43184
|
React__default.createElement(ExcursionResults, { isFlyIn: true, activeSearchSeed: activeSearchSeed }),
|
|
@@ -43748,6 +44012,9 @@ var IndependentFlightSelection = function (_a) {
|
|
|
43748
44012
|
},
|
|
43749
44013
|
[searchResults, selectedReturnKey]
|
|
43750
44014
|
);
|
|
44015
|
+
var firstResultDate = uniqueOutwardFlights.length > 0 ? uniqueOutwardFlights[0].outward.segments[0].departureDateTime : null;
|
|
44016
|
+
var firstResultDay = firstResultDate ? format$1(firstResultDate, 'd') : null;
|
|
44017
|
+
var firstResultMonth = firstResultDate ? format$1(firstResultDate, 'MMM') : null;
|
|
43751
44018
|
return React__default.createElement(
|
|
43752
44019
|
React__default.Fragment,
|
|
43753
44020
|
null,
|
|
@@ -43757,11 +44024,13 @@ var IndependentFlightSelection = function (_a) {
|
|
|
43757
44024
|
React__default.createElement(
|
|
43758
44025
|
'div',
|
|
43759
44026
|
{ className: 'search__results__label__date' },
|
|
43760
|
-
React__default.createElement(
|
|
44027
|
+
React__default.createElement('p', { className: 'search__results__label__date-date' }, firstResultDay),
|
|
44028
|
+
React__default.createElement('p', null, firstResultMonth)
|
|
43761
44029
|
),
|
|
43762
44030
|
React__default.createElement(
|
|
43763
44031
|
'div',
|
|
43764
44032
|
{ className: 'search__results__label__text' },
|
|
44033
|
+
React__default.createElement(Icon, { name: 'ui-flight', height: 16, fill: 'white' }),
|
|
43765
44034
|
React__default.createElement('h3', null, translations.SRP.SELECT, ' ', React__default.createElement('strong', null, ' ', translations.SRP.DEPARTURE))
|
|
43766
44035
|
)
|
|
43767
44036
|
),
|
|
@@ -43794,14 +44063,11 @@ var IndependentFlightSelection = function (_a) {
|
|
|
43794
44063
|
React__default.createElement(
|
|
43795
44064
|
'div',
|
|
43796
44065
|
{ className: 'search__results__label search__results__label--secondary' },
|
|
43797
|
-
React__default.createElement(
|
|
43798
|
-
'div',
|
|
43799
|
-
{ className: 'search__results__label__date' },
|
|
43800
|
-
React__default.createElement(Icon, { name: 'ui-flight', height: 16, fill: 'white' })
|
|
43801
|
-
),
|
|
44066
|
+
React__default.createElement('div', { className: 'search__results__label__date' }),
|
|
43802
44067
|
React__default.createElement(
|
|
43803
44068
|
'div',
|
|
43804
44069
|
{ className: 'search__results__label__text' },
|
|
44070
|
+
React__default.createElement(Icon, { name: 'ui-flight', height: 16, fill: 'white' }),
|
|
43805
44071
|
React__default.createElement('h3', null, translations.SRP.SELECT, ' ', React__default.createElement('strong', null, ' ', translations.SRP.RETURN))
|
|
43806
44072
|
)
|
|
43807
44073
|
),
|
|
@@ -44915,7 +45181,7 @@ var FlightResultsContainer = function (_a) {
|
|
|
44915
45181
|
React__default.createElement(
|
|
44916
45182
|
'div',
|
|
44917
45183
|
{ className: 'search__results__wrapper' },
|
|
44918
|
-
flightsLoading && React__default.createElement(Spinner,
|
|
45184
|
+
flightsLoading && React__default.createElement(Spinner, { label: translations.SRP.LOADING_FLIGHTS }),
|
|
44919
45185
|
(context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) == build.PortalQsmType.Flight &&
|
|
44920
45186
|
(context === null || context === void 0 ? void 0 : context.showFlightAccommodationResults) &&
|
|
44921
45187
|
results &&
|
|
@@ -46022,7 +46288,7 @@ var FullItinerary = function (_a) {
|
|
|
46022
46288
|
return React__default.createElement(
|
|
46023
46289
|
React__default.Fragment,
|
|
46024
46290
|
null,
|
|
46025
|
-
isLoading && React__default.createElement(Spinner,
|
|
46291
|
+
isLoading && React__default.createElement(Spinner, { label: translations.SRP.LOADING_ITINERARY }),
|
|
46026
46292
|
React__default.createElement('div', { ref: hostRef, style: { display: isLoading ? 'none' : 'block' } })
|
|
46027
46293
|
);
|
|
46028
46294
|
};
|
|
@@ -46135,7 +46401,7 @@ var DayByDayExcursions = function () {
|
|
|
46135
46401
|
React__default.Fragment,
|
|
46136
46402
|
null,
|
|
46137
46403
|
stayDates.map(function (day) {
|
|
46138
|
-
var _a, _b;
|
|
46404
|
+
var _a, _b, _c;
|
|
46139
46405
|
var dayKey = format$1(day, 'yyyy-MM-dd');
|
|
46140
46406
|
var confirmedExcursions = (_a = confirmedExcursionsByDay[dayKey]) !== null && _a !== void 0 ? _a : [];
|
|
46141
46407
|
return React__default.createElement(
|
|
@@ -46147,18 +46413,26 @@ var DayByDayExcursions = function () {
|
|
|
46147
46413
|
React__default.createElement(
|
|
46148
46414
|
'div',
|
|
46149
46415
|
{ className: 'search__results__label__date' },
|
|
46150
|
-
React__default.createElement(Icon, { name: 'ui-excursion', height: 16, fill: 'white' })
|
|
46151
|
-
),
|
|
46152
|
-
React__default.createElement(
|
|
46153
|
-
'div',
|
|
46154
|
-
{ className: 'search__results__label__text' },
|
|
46155
46416
|
React__default.createElement(
|
|
46156
|
-
'
|
|
46157
|
-
|
|
46158
|
-
format$1(day, '
|
|
46417
|
+
'p',
|
|
46418
|
+
{ className: 'search__results__label__date-date' },
|
|
46419
|
+
format$1(day, 'd', {
|
|
46159
46420
|
locale: getLocale((_b = context === null || context === void 0 ? void 0 : context.languageCode) !== null && _b !== void 0 ? _b : 'en-GB')
|
|
46160
46421
|
})
|
|
46422
|
+
),
|
|
46423
|
+
React__default.createElement(
|
|
46424
|
+
'p',
|
|
46425
|
+
null,
|
|
46426
|
+
format$1(day, 'MMM', {
|
|
46427
|
+
locale: getLocale((_c = context === null || context === void 0 ? void 0 : context.languageCode) !== null && _c !== void 0 ? _c : 'en-GB')
|
|
46428
|
+
})
|
|
46161
46429
|
)
|
|
46430
|
+
),
|
|
46431
|
+
React__default.createElement(
|
|
46432
|
+
'div',
|
|
46433
|
+
{ className: 'search__results__label__text' },
|
|
46434
|
+
React__default.createElement(Icon, { name: 'ui-excursion', height: 16 }),
|
|
46435
|
+
React__default.createElement('h3', null, translations.SRP.SELECT, ' ', React__default.createElement('strong', null, translations.SRP.EXCURSION))
|
|
46162
46436
|
)
|
|
46163
46437
|
),
|
|
46164
46438
|
React__default.createElement(
|
|
@@ -46245,6 +46519,264 @@ var DayByDayExcursions = function () {
|
|
|
46245
46519
|
);
|
|
46246
46520
|
};
|
|
46247
46521
|
|
|
46522
|
+
var mapToSidebarFlightMetaData = function (entryLine) {
|
|
46523
|
+
var _a, _b;
|
|
46524
|
+
return {
|
|
46525
|
+
flightLines:
|
|
46526
|
+
(_a = entryLine.flightInformation) === null || _a === void 0
|
|
46527
|
+
? void 0
|
|
46528
|
+
: _a.flightLines.map(function (f) {
|
|
46529
|
+
return {
|
|
46530
|
+
number: f.flightNumber,
|
|
46531
|
+
departureDate: f.departureDate,
|
|
46532
|
+
departureAirport: f.departureAirportCode,
|
|
46533
|
+
departureAirportDescription: f.departureAirportDescription,
|
|
46534
|
+
departureTime: f.departureTime,
|
|
46535
|
+
arrivalDate: f.arrivalDate,
|
|
46536
|
+
arrivalAirport: f.arrivalAirportCode,
|
|
46537
|
+
arrivalAirportDescription: f.arrivalAirportDescription,
|
|
46538
|
+
arrivalTime: f.arrivalTime,
|
|
46539
|
+
flightClass: '',
|
|
46540
|
+
travelClass: '',
|
|
46541
|
+
airline: f.airlineDescription,
|
|
46542
|
+
airlineCode: f.airlineCode,
|
|
46543
|
+
operatingAirlineCode: f.operatingAirlineCode,
|
|
46544
|
+
operatingAirlineDescription: f.operatingAirlineDescription,
|
|
46545
|
+
durationInTicks: f.durationInTicks
|
|
46546
|
+
};
|
|
46547
|
+
}),
|
|
46548
|
+
luggageIncluded: false, // Not present in editablePackagingEntry, set default
|
|
46549
|
+
bagageAllowed: false, // Not present in editablePackagingEntry, set default
|
|
46550
|
+
bagage: '', // Not present in editablePackagingEntry, set default
|
|
46551
|
+
mealIncluded: false, // Not present in editablePackagingEntry, set default
|
|
46552
|
+
meal: '', // Not present in editablePackagingEntry, set default
|
|
46553
|
+
durationInTicks:
|
|
46554
|
+
(_b = entryLine.flightInformation) === null || _b === void 0
|
|
46555
|
+
? void 0
|
|
46556
|
+
: _b.flightLines.reduce(function (s, _a) {
|
|
46557
|
+
var durationInTicks = _a.durationInTicks;
|
|
46558
|
+
return s + (durationInTicks !== null && durationInTicks !== void 0 ? durationInTicks : 0);
|
|
46559
|
+
}, 0)
|
|
46560
|
+
};
|
|
46561
|
+
};
|
|
46562
|
+
var selectSeparatePackagePriceDetails = function (priceDetails) {
|
|
46563
|
+
var result = [];
|
|
46564
|
+
var filteredPriceDetails = priceDetails.filter(function (priceDetail) {
|
|
46565
|
+
return priceDetail.isSeparate;
|
|
46566
|
+
});
|
|
46567
|
+
filteredPriceDetails.forEach(function (priceDetail) {
|
|
46568
|
+
var priceDetailToMerge = result.find(function (x) {
|
|
46569
|
+
return x.productCode === priceDetail.productCode && x.accommodationCode === priceDetail.accommodationCode && x.productType === priceDetail.productType;
|
|
46570
|
+
});
|
|
46571
|
+
if (priceDetailToMerge) {
|
|
46572
|
+
priceDetailToMerge.total += priceDetail.total;
|
|
46573
|
+
priceDetailToMerge.price += priceDetail.price;
|
|
46574
|
+
} else {
|
|
46575
|
+
result.push(Object.assign({}, priceDetail));
|
|
46576
|
+
}
|
|
46577
|
+
});
|
|
46578
|
+
return result;
|
|
46579
|
+
};
|
|
46580
|
+
var WLSidebar = function (_a) {
|
|
46581
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
46582
|
+
var activeSearchSeed = _a.activeSearchSeed;
|
|
46583
|
+
var context = useContext(SearchResultsConfigurationContext);
|
|
46584
|
+
if (!context) {
|
|
46585
|
+
return null;
|
|
46586
|
+
}
|
|
46587
|
+
var translations = getTranslations((_b = context.languageCode) !== null && _b !== void 0 ? _b : 'en-GB');
|
|
46588
|
+
var _u = useSelector(function (state) {
|
|
46589
|
+
return state.searchResults;
|
|
46590
|
+
}),
|
|
46591
|
+
editablePackagingEntry = _u.editablePackagingEntry,
|
|
46592
|
+
priceDetails = _u.priceDetails;
|
|
46593
|
+
// Map editablePackagingEntry to sidebar props (example, adjust as needed)
|
|
46594
|
+
if (!editablePackagingEntry) {
|
|
46595
|
+
return null;
|
|
46596
|
+
}
|
|
46597
|
+
console.log('editablePackagingEntry in WLSidebar:', editablePackagingEntry);
|
|
46598
|
+
console.log('priceDetails in WLSidebar:', priceDetails);
|
|
46599
|
+
var sortedLines = useMemo(
|
|
46600
|
+
function () {
|
|
46601
|
+
var _a;
|
|
46602
|
+
return __spreadArray(
|
|
46603
|
+
[],
|
|
46604
|
+
(_a = editablePackagingEntry === null || editablePackagingEntry === void 0 ? void 0 : editablePackagingEntry.lines) !== null && _a !== void 0 ? _a : [],
|
|
46605
|
+
true
|
|
46606
|
+
).sort(function (a, b) {
|
|
46607
|
+
var _a, _b;
|
|
46608
|
+
var dateA = getDateOnlyTime(a.from);
|
|
46609
|
+
var dateB = getDateOnlyTime(b.from);
|
|
46610
|
+
if (dateA !== dateB) {
|
|
46611
|
+
return dateA - dateB;
|
|
46612
|
+
}
|
|
46613
|
+
return ((_a = a.order) !== null && _a !== void 0 ? _a : Infinity) - ((_b = b.order) !== null && _b !== void 0 ? _b : Infinity);
|
|
46614
|
+
});
|
|
46615
|
+
},
|
|
46616
|
+
[editablePackagingEntry]
|
|
46617
|
+
);
|
|
46618
|
+
var firstEntryLine = first(sortedLines);
|
|
46619
|
+
var accommodationLines = editablePackagingEntry.lines.filter(function (line) {
|
|
46620
|
+
return line.serviceType === ACCOMMODATION_SERVICE_TYPE;
|
|
46621
|
+
});
|
|
46622
|
+
var accommodationLine = (_c = first(accommodationLines)) !== null && _c !== void 0 ? _c : firstEntryLine;
|
|
46623
|
+
var location =
|
|
46624
|
+
(_l =
|
|
46625
|
+
(_j =
|
|
46626
|
+
(_g =
|
|
46627
|
+
(_e =
|
|
46628
|
+
(_d = accommodationLine === null || accommodationLine === void 0 ? void 0 : accommodationLine.location) === null || _d === void 0
|
|
46629
|
+
? void 0
|
|
46630
|
+
: _d.name) !== null && _e !== void 0
|
|
46631
|
+
? _e
|
|
46632
|
+
: (_f = accommodationLine === null || accommodationLine === void 0 ? void 0 : accommodationLine.oord) === null || _f === void 0
|
|
46633
|
+
? void 0
|
|
46634
|
+
: _f.name) !== null && _g !== void 0
|
|
46635
|
+
? _g
|
|
46636
|
+
: (_h = accommodationLine === null || accommodationLine === void 0 ? void 0 : accommodationLine.region) === null || _h === void 0
|
|
46637
|
+
? void 0
|
|
46638
|
+
: _h.name) !== null && _j !== void 0
|
|
46639
|
+
? _j
|
|
46640
|
+
: (_k = accommodationLine === null || accommodationLine === void 0 ? void 0 : accommodationLine.country) === null || _k === void 0
|
|
46641
|
+
? void 0
|
|
46642
|
+
: _k.name) !== null && _l !== void 0
|
|
46643
|
+
? _l
|
|
46644
|
+
: (_m = firstEntryLine === null || firstEntryLine === void 0 ? void 0 : firstEntryLine.location) === null || _m === void 0
|
|
46645
|
+
? void 0
|
|
46646
|
+
: _m.name;
|
|
46647
|
+
var rooms =
|
|
46648
|
+
(activeSearchSeed === null || activeSearchSeed === void 0
|
|
46649
|
+
? void 0
|
|
46650
|
+
: activeSearchSeed.rooms.map(function (room) {
|
|
46651
|
+
var adults = room.pax
|
|
46652
|
+
.filter(function (p) {
|
|
46653
|
+
return p.age && p.age >= 18;
|
|
46654
|
+
})
|
|
46655
|
+
.map(function (p) {
|
|
46656
|
+
return { id: p.id, age: p.age };
|
|
46657
|
+
});
|
|
46658
|
+
var children = room.pax
|
|
46659
|
+
.filter(function (p) {
|
|
46660
|
+
return p.age && p.age < 18;
|
|
46661
|
+
})
|
|
46662
|
+
.map(function (p) {
|
|
46663
|
+
return { id: p.id, age: p.age };
|
|
46664
|
+
});
|
|
46665
|
+
return { adults: adults, children: children };
|
|
46666
|
+
})) || [];
|
|
46667
|
+
var travelerRooms = getTravelersText(rooms, translations);
|
|
46668
|
+
var flightSegments = sortedLines.filter(function (line) {
|
|
46669
|
+
return line.serviceType === FLIGHT_SERVICE_TYPE && line.flightInformation && Array.isArray(line.flightInformation.flightLines);
|
|
46670
|
+
});
|
|
46671
|
+
var outboundFlight = first(flightSegments);
|
|
46672
|
+
var returnFlight = flightSegments.length > 1 ? last(flightSegments) : undefined;
|
|
46673
|
+
var outboundFlightMetaData = outboundFlight ? mapToSidebarFlightMetaData(outboundFlight) : undefined;
|
|
46674
|
+
var returnFlightMetaData = returnFlight ? mapToSidebarFlightMetaData(returnFlight) : undefined;
|
|
46675
|
+
var basePrice = sum(
|
|
46676
|
+
(_o =
|
|
46677
|
+
priceDetails === null || priceDetails === void 0
|
|
46678
|
+
? void 0
|
|
46679
|
+
: priceDetails.details
|
|
46680
|
+
.filter(function (pd) {
|
|
46681
|
+
return pd.isInPackage;
|
|
46682
|
+
})
|
|
46683
|
+
.map(function (pd) {
|
|
46684
|
+
return pd.price * pd.amount;
|
|
46685
|
+
})) !== null && _o !== void 0
|
|
46686
|
+
? _o
|
|
46687
|
+
: []
|
|
46688
|
+
);
|
|
46689
|
+
var separateExtraPriceDetails =
|
|
46690
|
+
(_p =
|
|
46691
|
+
priceDetails === null || priceDetails === void 0
|
|
46692
|
+
? void 0
|
|
46693
|
+
: priceDetails.details.filter(function (pd) {
|
|
46694
|
+
return !pd.isInPackage && pd.isSeparate;
|
|
46695
|
+
})) !== null && _p !== void 0
|
|
46696
|
+
? _p
|
|
46697
|
+
: [];
|
|
46698
|
+
var totalPrice = sum(
|
|
46699
|
+
__spreadArray(
|
|
46700
|
+
[basePrice],
|
|
46701
|
+
separateExtraPriceDetails.map(function (priceDetail) {
|
|
46702
|
+
return priceDetail.price * priceDetail.amount;
|
|
46703
|
+
}),
|
|
46704
|
+
true
|
|
46705
|
+
)
|
|
46706
|
+
);
|
|
46707
|
+
var includedCosts = selectSeparatePackagePriceDetails(
|
|
46708
|
+
(_q =
|
|
46709
|
+
priceDetails === null || priceDetails === void 0
|
|
46710
|
+
? void 0
|
|
46711
|
+
: priceDetails.details.filter(function (pd) {
|
|
46712
|
+
return pd.isInPackage;
|
|
46713
|
+
})) !== null && _q !== void 0
|
|
46714
|
+
? _q
|
|
46715
|
+
: []
|
|
46716
|
+
);
|
|
46717
|
+
return React__default.createElement(SharedSidebar, {
|
|
46718
|
+
productName: location !== null && location !== void 0 ? location : '',
|
|
46719
|
+
thumbnailUrl: (_r = context.destinationImage) === null || _r === void 0 ? void 0 : _r.url,
|
|
46720
|
+
translations: translations,
|
|
46721
|
+
travelerRooms: travelerRooms,
|
|
46722
|
+
startDateText: ((_s = first(sortedLines)) === null || _s === void 0 ? void 0 : _s.from) && formatDate(new Date(first(sortedLines).from)),
|
|
46723
|
+
endDateText: ((_t = last(sortedLines)) === null || _t === void 0 ? void 0 : _t.to) && formatDate(new Date(last(sortedLines).to)),
|
|
46724
|
+
isLoading: !editablePackagingEntry || !priceDetails,
|
|
46725
|
+
loaderComponent: React__default.createElement(Spinner, null),
|
|
46726
|
+
departureFlightMetaData: outboundFlightMetaData,
|
|
46727
|
+
returnFlightMetaData: returnFlightMetaData,
|
|
46728
|
+
includedServiceTypes: editablePackagingEntry.lines.map(function (line) {
|
|
46729
|
+
return line.serviceType;
|
|
46730
|
+
}),
|
|
46731
|
+
packagingAccommodations: accommodationLines,
|
|
46732
|
+
basePrice: basePrice,
|
|
46733
|
+
commission: priceDetails === null || priceDetails === void 0 ? void 0 : priceDetails.commission,
|
|
46734
|
+
totalPrice: totalPrice,
|
|
46735
|
+
includedCosts: includedCosts,
|
|
46736
|
+
extraCosts: separateExtraPriceDetails,
|
|
46737
|
+
deposit: priceDetails === null || priceDetails === void 0 ? void 0 : priceDetails.deposit,
|
|
46738
|
+
isUnavailable: false,
|
|
46739
|
+
agent: context.agentId
|
|
46740
|
+
});
|
|
46741
|
+
};
|
|
46742
|
+
|
|
46743
|
+
var BookPackagingEntry = function (_a) {
|
|
46744
|
+
var _b;
|
|
46745
|
+
var activeSearchSeed = _a.activeSearchSeed;
|
|
46746
|
+
var context = useContext(SearchResultsConfigurationContext);
|
|
46747
|
+
if (!context) {
|
|
46748
|
+
return null;
|
|
46749
|
+
}
|
|
46750
|
+
var translations = getTranslations((_b = context.languageCode) !== null && _b !== void 0 ? _b : 'en-GB');
|
|
46751
|
+
var currentStep = useSelector(function (state) {
|
|
46752
|
+
return state.searchResults;
|
|
46753
|
+
}).currentStep;
|
|
46754
|
+
useDispatch();
|
|
46755
|
+
var stepLabels = [translations.STEPS.PERSONAL_DETAILS, translations.STEPS.SUMMARY, translations.STEPS.CONFIRMATION];
|
|
46756
|
+
return React__default.createElement(
|
|
46757
|
+
'div',
|
|
46758
|
+
{ className: 'booking' },
|
|
46759
|
+
React__default.createElement(
|
|
46760
|
+
'div',
|
|
46761
|
+
{ className: 'booking__content' },
|
|
46762
|
+
React__default.createElement(
|
|
46763
|
+
BookingPanel,
|
|
46764
|
+
{
|
|
46765
|
+
currentStep: currentStep,
|
|
46766
|
+
stepLabels: stepLabels,
|
|
46767
|
+
StepIndicatorsComponent: StepIndicators$1,
|
|
46768
|
+
renderTitle: function (step) {
|
|
46769
|
+
return React__default.createElement(React__default.Fragment, null, step + 1, '.\u00A0', stepLabels[step]);
|
|
46770
|
+
}
|
|
46771
|
+
},
|
|
46772
|
+
React__default.createElement('div', null)
|
|
46773
|
+
),
|
|
46774
|
+
React__default.createElement('div', { className: 'backdrop', id: 'backdrop' }),
|
|
46775
|
+
React__default.createElement(WLSidebar, { activeSearchSeed: activeSearchSeed })
|
|
46776
|
+
)
|
|
46777
|
+
);
|
|
46778
|
+
};
|
|
46779
|
+
|
|
46248
46780
|
var SearchResultsContainer = function () {
|
|
46249
46781
|
var _a, _b;
|
|
46250
46782
|
var currentSearch = typeof window !== 'undefined' ? window.location.search : '';
|
|
@@ -46271,10 +46803,10 @@ var SearchResultsContainer = function () {
|
|
|
46271
46803
|
packagingAccoSearchDetails = _c.packagingAccoSearchDetails,
|
|
46272
46804
|
editablePackagingEntry = _c.editablePackagingEntry,
|
|
46273
46805
|
transactionId = _c.transactionId,
|
|
46274
|
-
flyInType = _c.flyInType
|
|
46275
|
-
|
|
46276
|
-
|
|
46277
|
-
|
|
46806
|
+
flyInType = _c.flyInType,
|
|
46807
|
+
packagingFlightResults = _c.packagingFlightResults,
|
|
46808
|
+
confirmedExcursionsByDay = _c.confirmedExcursionsByDay,
|
|
46809
|
+
bookPackagingEntry = _c.bookPackagingEntry;
|
|
46278
46810
|
var isMobile = useMediaQuery('(max-width: 1200px)');
|
|
46279
46811
|
var _d = useState(false),
|
|
46280
46812
|
initialFiltersSet = _d[0],
|
|
@@ -47327,7 +47859,7 @@ var SearchResultsContainer = function () {
|
|
|
47327
47859
|
};
|
|
47328
47860
|
var fetchItinerary = function () {
|
|
47329
47861
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
47330
|
-
var config, request,
|
|
47862
|
+
var config, request, itinerary, err_8;
|
|
47331
47863
|
var _a, _b;
|
|
47332
47864
|
return __generator(this, function (_c) {
|
|
47333
47865
|
switch (_c.label) {
|
|
@@ -47350,8 +47882,8 @@ var SearchResultsContainer = function () {
|
|
|
47350
47882
|
};
|
|
47351
47883
|
return [4 /*yield*/, build.getItinerary(config, request)];
|
|
47352
47884
|
case 2:
|
|
47353
|
-
|
|
47354
|
-
dispatch(setItinerary(
|
|
47885
|
+
itinerary = _c.sent();
|
|
47886
|
+
dispatch(setItinerary(itinerary));
|
|
47355
47887
|
setItineraryIsLoading(false);
|
|
47356
47888
|
return [3 /*break*/, 4];
|
|
47357
47889
|
case 3:
|
|
@@ -47792,335 +48324,368 @@ var SearchResultsContainer = function () {
|
|
|
47792
48324
|
React__default.createElement(
|
|
47793
48325
|
'div',
|
|
47794
48326
|
{ className: 'search' },
|
|
47795
|
-
|
|
47796
|
-
|
|
47797
|
-
|
|
47798
|
-
|
|
47799
|
-
|
|
47800
|
-
|
|
47801
|
-
|
|
47802
|
-
|
|
47803
|
-
|
|
47804
|
-
|
|
47805
|
-
|
|
47806
|
-
|
|
47807
|
-
|
|
47808
|
-
|
|
47809
|
-
|
|
47810
|
-
|
|
47811
|
-
|
|
47812
|
-
|
|
47813
|
-
|
|
47814
|
-
|
|
47815
|
-
|
|
47816
|
-
|
|
47817
|
-
|
|
47818
|
-
|
|
47819
|
-
|
|
47820
|
-
|
|
47821
|
-
|
|
47822
|
-
|
|
47823
|
-
|
|
47824
|
-
|
|
47825
|
-
|
|
47826
|
-
|
|
47827
|
-
|
|
47828
|
-
|
|
47829
|
-
|
|
47830
|
-
|
|
47831
|
-
|
|
47832
|
-
|
|
47833
|
-
|
|
47834
|
-
|
|
47835
|
-
|
|
47836
|
-
|
|
47837
|
-
|
|
47838
|
-
|
|
47839
|
-
|
|
47840
|
-
|
|
47841
|
-
|
|
47842
|
-
|
|
47843
|
-
|
|
47844
|
-
|
|
47845
|
-
|
|
47846
|
-
|
|
47847
|
-
|
|
47848
|
-
|
|
47849
|
-
|
|
47850
|
-
isMobile &&
|
|
48327
|
+
bookPackagingEntry
|
|
48328
|
+
? React__default.createElement(BookPackagingEntry, { activeSearchSeed: activeSearchSeed })
|
|
48329
|
+
: React__default.createElement(
|
|
48330
|
+
'div',
|
|
48331
|
+
{ className: 'search__container' },
|
|
48332
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.Flight &&
|
|
48333
|
+
React__default.createElement(
|
|
48334
|
+
FlightSearchProvider,
|
|
48335
|
+
{ tideConnection: context.tideConnection },
|
|
48336
|
+
React__default.createElement(FlightResultsContainer, { isMobile: isMobile }),
|
|
48337
|
+
React__default.createElement(FlyIn, {
|
|
48338
|
+
srpType: context.searchConfiguration.qsmType,
|
|
48339
|
+
isOpen: flyInIsOpen,
|
|
48340
|
+
setIsOpen: handleFlyInToggle,
|
|
48341
|
+
onPanelRef: function (el) {
|
|
48342
|
+
return (panelRef.current = el);
|
|
48343
|
+
},
|
|
48344
|
+
detailsLoading: detailsIsLoading,
|
|
48345
|
+
filtersOpen: filtersOpen
|
|
48346
|
+
})
|
|
48347
|
+
),
|
|
48348
|
+
(context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight ||
|
|
48349
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.Accommodation ||
|
|
48350
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.GroupTour ||
|
|
48351
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.RoundTrip) &&
|
|
48352
|
+
React__default.createElement(
|
|
48353
|
+
React__default.Fragment,
|
|
48354
|
+
null,
|
|
48355
|
+
context.searchConfiguration.qsmType != build.PortalQsmType.AccommodationAndFlight &&
|
|
48356
|
+
context.showFilters &&
|
|
48357
|
+
React__default.createElement(Filters, {
|
|
48358
|
+
initialFilters: initialFilters,
|
|
48359
|
+
filters: filters,
|
|
48360
|
+
isOpen: filtersOpen,
|
|
48361
|
+
handleSetIsOpen: function () {
|
|
48362
|
+
return setFiltersOpen(!filtersOpen);
|
|
48363
|
+
},
|
|
48364
|
+
// handleApplyFilters={() => setSearchTrigger((prev) => prev + 1)}
|
|
48365
|
+
isLoading: isLoading,
|
|
48366
|
+
setFilters: function (filters) {
|
|
48367
|
+
return dispatch(setFilters(filters));
|
|
48368
|
+
},
|
|
48369
|
+
resetFilters: function (filters) {
|
|
48370
|
+
return dispatch(resetFilters(filters));
|
|
48371
|
+
}
|
|
48372
|
+
}),
|
|
48373
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight &&
|
|
48374
|
+
React__default.createElement(Itinerary, {
|
|
48375
|
+
isOpen: itineraryOpen,
|
|
48376
|
+
handleSetIsOpen: function () {
|
|
48377
|
+
return setItineraryOpen(!itineraryOpen);
|
|
48378
|
+
},
|
|
48379
|
+
isLoading: isLoading || pricesAreLoading || flightsLoading || itineraryIsLoading,
|
|
48380
|
+
onEditAccommodation: handleEditAccommodation
|
|
48381
|
+
}),
|
|
47851
48382
|
React__default.createElement(
|
|
47852
48383
|
'div',
|
|
47853
|
-
{ className: '
|
|
47854
|
-
|
|
47855
|
-
|
|
47856
|
-
|
|
47857
|
-
|
|
47858
|
-
context.showFilters &&
|
|
48384
|
+
{ className: 'search__results' },
|
|
48385
|
+
isMobile &&
|
|
48386
|
+
React__default.createElement(
|
|
48387
|
+
'div',
|
|
48388
|
+
{ className: 'search__result-row' },
|
|
47859
48389
|
React__default.createElement(
|
|
47860
48390
|
'div',
|
|
47861
|
-
{
|
|
47862
|
-
|
|
47863
|
-
|
|
47864
|
-
|
|
47865
|
-
|
|
47866
|
-
|
|
47867
|
-
|
|
47868
|
-
|
|
48391
|
+
{ className: 'search__results__actions' },
|
|
48392
|
+
context.searchConfiguration.qsmType != build.PortalQsmType.AccommodationAndFlight &&
|
|
48393
|
+
context.showFilters &&
|
|
48394
|
+
React__default.createElement(
|
|
48395
|
+
'div',
|
|
48396
|
+
{
|
|
48397
|
+
className: 'cta cta--filter',
|
|
48398
|
+
onClick: function () {
|
|
48399
|
+
return setFiltersOpen(true);
|
|
48400
|
+
}
|
|
48401
|
+
},
|
|
48402
|
+
React__default.createElement(Icon, { name: 'ui-filter', className: 'mobile-filters-button__icon', height: 16 }),
|
|
48403
|
+
translations.SRP.FILTERS
|
|
48404
|
+
),
|
|
48405
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight &&
|
|
48406
|
+
React__default.createElement(
|
|
48407
|
+
'div',
|
|
48408
|
+
{
|
|
48409
|
+
className: 'cta cta--filter',
|
|
48410
|
+
onClick: function () {
|
|
48411
|
+
return setItineraryOpen(true);
|
|
48412
|
+
}
|
|
48413
|
+
},
|
|
48414
|
+
React__default.createElement(Icon, { name: 'ui-shopping-cart', className: 'mobile-filters-button__icon', height: 16 }),
|
|
48415
|
+
translations.SRP.VIEW_BOOKING
|
|
48416
|
+
)
|
|
47869
48417
|
),
|
|
47870
|
-
|
|
47871
|
-
|
|
47872
|
-
|
|
47873
|
-
|
|
47874
|
-
|
|
47875
|
-
|
|
47876
|
-
|
|
48418
|
+
sortByTypes &&
|
|
48419
|
+
sortByTypes.length > 0 &&
|
|
48420
|
+
React__default.createElement(ItemPicker, {
|
|
48421
|
+
items: sortByTypes,
|
|
48422
|
+
selection: (selectedSortType === null || selectedSortType === void 0 ? void 0 : selectedSortType.label) || undefined,
|
|
48423
|
+
selectedSortByType: selectedSortType,
|
|
48424
|
+
label: translations.SRP.SORTBY,
|
|
48425
|
+
placeholder: translations.SRP.SORTBY,
|
|
48426
|
+
classModifier: 'travel-class-picker__items',
|
|
48427
|
+
valueFormatter: function (value, direction) {
|
|
48428
|
+
return getSortingName(
|
|
48429
|
+
translations,
|
|
48430
|
+
findSortByType(sortByTypes, value, direction !== null && direction !== void 0 ? direction : 'asc')
|
|
48431
|
+
);
|
|
48432
|
+
},
|
|
48433
|
+
onPick: function (newSortKey, direction) {
|
|
48434
|
+
return handleSortChange(newSortKey, direction);
|
|
47877
48435
|
}
|
|
47878
|
-
}
|
|
47879
|
-
|
|
47880
|
-
|
|
47881
|
-
)
|
|
47882
|
-
),
|
|
47883
|
-
sortByTypes &&
|
|
47884
|
-
sortByTypes.length > 0 &&
|
|
47885
|
-
React__default.createElement(ItemPicker, {
|
|
47886
|
-
items: sortByTypes,
|
|
47887
|
-
selection: (selectedSortType === null || selectedSortType === void 0 ? void 0 : selectedSortType.label) || undefined,
|
|
47888
|
-
selectedSortByType: selectedSortType,
|
|
47889
|
-
label: translations.SRP.SORTBY,
|
|
47890
|
-
placeholder: translations.SRP.SORTBY,
|
|
47891
|
-
classModifier: 'travel-class-picker__items',
|
|
47892
|
-
valueFormatter: function (value, direction) {
|
|
47893
|
-
return getSortingName(
|
|
47894
|
-
translations,
|
|
47895
|
-
findSortByType(sortByTypes, value, direction !== null && direction !== void 0 ? direction : 'asc')
|
|
47896
|
-
);
|
|
47897
|
-
},
|
|
47898
|
-
onPick: function (newSortKey, direction) {
|
|
47899
|
-
return handleSortChange(newSortKey, direction);
|
|
47900
|
-
}
|
|
47901
|
-
})
|
|
47902
|
-
),
|
|
47903
|
-
context.searchConfiguration.qsmType !== build.PortalQsmType.AccommodationAndFlight &&
|
|
47904
|
-
React__default.createElement(
|
|
47905
|
-
'div',
|
|
47906
|
-
{ className: 'search__result-row' },
|
|
47907
|
-
React__default.createElement(
|
|
47908
|
-
'span',
|
|
47909
|
-
{ className: 'search__result-row-text' },
|
|
47910
|
-
!isLoading &&
|
|
47911
|
-
React__default.createElement(
|
|
47912
|
-
React__default.Fragment,
|
|
47913
|
-
null,
|
|
47914
|
-
context.searchConfiguration.qsmType === build.PortalQsmType.Accommodation &&
|
|
47915
|
-
(filteredPackagingAccoResults === null || filteredPackagingAccoResults === void 0 ? void 0 : filteredPackagingAccoResults.length) &&
|
|
47916
|
-
(filteredPackagingAccoResults === null || filteredPackagingAccoResults === void 0 ? void 0 : filteredPackagingAccoResults.length),
|
|
47917
|
-
context.searchConfiguration.qsmType !== build.PortalQsmType.Accommodation &&
|
|
47918
|
-
(filteredResults === null || filteredResults === void 0 ? void 0 : filteredResults.length) &&
|
|
47919
|
-
filteredResults.length,
|
|
47920
|
-
'\u00A0',
|
|
47921
|
-
translations.SRP.TOTAL_RESULTS_LABEL
|
|
47922
|
-
)
|
|
47923
|
-
),
|
|
47924
|
-
!context.packagingEntry &&
|
|
47925
|
-
!isMobile &&
|
|
47926
|
-
sortByTypes &&
|
|
47927
|
-
sortByTypes.length > 0 &&
|
|
47928
|
-
React__default.createElement(
|
|
47929
|
-
'div',
|
|
47930
|
-
{ className: 'search__result-row-filter' },
|
|
47931
|
-
React__default.createElement(ItemPicker, {
|
|
47932
|
-
items: sortByTypes,
|
|
47933
|
-
selection: (selectedSortType === null || selectedSortType === void 0 ? void 0 : selectedSortType.label) || undefined,
|
|
47934
|
-
selectedSortByType: selectedSortType,
|
|
47935
|
-
label: translations.SRP.SORTBY,
|
|
47936
|
-
placeholder: translations.SRP.SORTBY,
|
|
47937
|
-
classModifier: 'travel-class-picker__items',
|
|
47938
|
-
valueFormatter: function (value, direction) {
|
|
47939
|
-
return getSortingName(
|
|
47940
|
-
translations,
|
|
47941
|
-
findSortByType(sortByTypes, value, direction !== null && direction !== void 0 ? direction : 'asc')
|
|
47942
|
-
);
|
|
47943
|
-
},
|
|
47944
|
-
onPick: function (newSortKey, direction) {
|
|
47945
|
-
return handleSortChange(newSortKey, direction);
|
|
47946
|
-
}
|
|
47947
|
-
})
|
|
47948
|
-
)
|
|
47949
|
-
),
|
|
47950
|
-
React__default.createElement(
|
|
47951
|
-
'div',
|
|
47952
|
-
{ className: 'search__results__wrapper' },
|
|
47953
|
-
context.showTabViews &&
|
|
47954
|
-
(context.searchConfiguration.qsmType === build.PortalQsmType.GroupTour ||
|
|
47955
|
-
context.searchConfiguration.qsmType === build.PortalQsmType.Accommodation) &&
|
|
47956
|
-
React__default.createElement(TabViews, null),
|
|
47957
|
-
context.showRoundTripResults && context.showMockup && React__default.createElement(RoundTripResults, null),
|
|
47958
|
-
context.searchConfiguration.qsmType === build.PortalQsmType.GroupTour &&
|
|
47959
|
-
React__default.createElement(GroupTourResults, { isLoading: isLoading }),
|
|
47960
|
-
context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight &&
|
|
47961
|
-
!context.packagingEntry &&
|
|
47962
|
-
context.showFlightResults &&
|
|
47963
|
-
React__default.createElement(
|
|
47964
|
-
React__default.Fragment,
|
|
47965
|
-
null,
|
|
48436
|
+
})
|
|
48437
|
+
),
|
|
48438
|
+
context.searchConfiguration.qsmType !== build.PortalQsmType.AccommodationAndFlight &&
|
|
47966
48439
|
React__default.createElement(
|
|
47967
48440
|
'div',
|
|
47968
|
-
{ className: '
|
|
48441
|
+
{ className: 'search__result-row' },
|
|
47969
48442
|
React__default.createElement(
|
|
47970
|
-
'
|
|
47971
|
-
{ className: '
|
|
47972
|
-
|
|
48443
|
+
'span',
|
|
48444
|
+
{ className: 'search__result-row-text' },
|
|
48445
|
+
!isLoading &&
|
|
48446
|
+
React__default.createElement(
|
|
48447
|
+
React__default.Fragment,
|
|
48448
|
+
null,
|
|
48449
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.Accommodation &&
|
|
48450
|
+
(filteredPackagingAccoResults === null || filteredPackagingAccoResults === void 0
|
|
48451
|
+
? void 0
|
|
48452
|
+
: filteredPackagingAccoResults.length) &&
|
|
48453
|
+
(filteredPackagingAccoResults === null || filteredPackagingAccoResults === void 0
|
|
48454
|
+
? void 0
|
|
48455
|
+
: filteredPackagingAccoResults.length),
|
|
48456
|
+
context.searchConfiguration.qsmType !== build.PortalQsmType.Accommodation &&
|
|
48457
|
+
(filteredResults === null || filteredResults === void 0 ? void 0 : filteredResults.length) &&
|
|
48458
|
+
filteredResults.length,
|
|
48459
|
+
'\u00A0',
|
|
48460
|
+
translations.SRP.TOTAL_RESULTS_LABEL
|
|
48461
|
+
)
|
|
47973
48462
|
),
|
|
47974
|
-
|
|
47975
|
-
|
|
47976
|
-
|
|
48463
|
+
!context.packagingEntry &&
|
|
48464
|
+
!isMobile &&
|
|
48465
|
+
sortByTypes &&
|
|
48466
|
+
sortByTypes.length > 0 &&
|
|
47977
48467
|
React__default.createElement(
|
|
47978
|
-
'
|
|
47979
|
-
|
|
47980
|
-
|
|
47981
|
-
|
|
47982
|
-
|
|
48468
|
+
'div',
|
|
48469
|
+
{ className: 'search__result-row-filter' },
|
|
48470
|
+
React__default.createElement(ItemPicker, {
|
|
48471
|
+
items: sortByTypes,
|
|
48472
|
+
selection: (selectedSortType === null || selectedSortType === void 0 ? void 0 : selectedSortType.label) || undefined,
|
|
48473
|
+
selectedSortByType: selectedSortType,
|
|
48474
|
+
label: translations.SRP.SORTBY,
|
|
48475
|
+
placeholder: translations.SRP.SORTBY,
|
|
48476
|
+
classModifier: 'travel-class-picker__items',
|
|
48477
|
+
valueFormatter: function (value, direction) {
|
|
48478
|
+
return getSortingName(
|
|
48479
|
+
translations,
|
|
48480
|
+
findSortByType(sortByTypes, value, direction !== null && direction !== void 0 ? direction : 'asc')
|
|
48481
|
+
);
|
|
48482
|
+
},
|
|
48483
|
+
onPick: function (newSortKey, direction) {
|
|
48484
|
+
return handleSortChange(newSortKey, direction);
|
|
48485
|
+
}
|
|
48486
|
+
})
|
|
47983
48487
|
)
|
|
47984
|
-
)
|
|
47985
48488
|
),
|
|
47986
|
-
|
|
47987
|
-
|
|
47988
|
-
|
|
47989
|
-
|
|
47990
|
-
|
|
48489
|
+
React__default.createElement(
|
|
48490
|
+
'div',
|
|
48491
|
+
{ className: 'search__results__wrapper' },
|
|
48492
|
+
context.showTabViews &&
|
|
48493
|
+
(context.searchConfiguration.qsmType === build.PortalQsmType.GroupTour ||
|
|
48494
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.Accommodation) &&
|
|
48495
|
+
React__default.createElement(TabViews, null),
|
|
48496
|
+
context.showRoundTripResults && context.showMockup && React__default.createElement(RoundTripResults, null),
|
|
48497
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.GroupTour &&
|
|
48498
|
+
React__default.createElement(GroupTourResults, { isLoading: isLoading }),
|
|
48499
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight &&
|
|
48500
|
+
!context.packagingEntry &&
|
|
48501
|
+
context.showFlightResults &&
|
|
48502
|
+
React__default.createElement(
|
|
48503
|
+
React__default.Fragment,
|
|
48504
|
+
null,
|
|
48505
|
+
React__default.createElement(
|
|
48506
|
+
'div',
|
|
48507
|
+
{ className: 'search__results__label search__results__label--secondary' },
|
|
47991
48508
|
React__default.createElement(
|
|
47992
48509
|
'div',
|
|
47993
|
-
{ className: '
|
|
47994
|
-
|
|
47995
|
-
|
|
47996
|
-
|
|
47997
|
-
|
|
47998
|
-
|
|
47999
|
-
|
|
48000
|
-
|
|
48001
|
-
|
|
48002
|
-
|
|
48003
|
-
|
|
48004
|
-
|
|
48005
|
-
showSelectedState: true,
|
|
48006
|
-
price: selectedOutward.price
|
|
48007
|
-
}),
|
|
48008
|
-
visibleOutwardFlights.map(function (result) {
|
|
48009
|
-
return React__default.createElement(IndependentFlightOption, {
|
|
48010
|
-
key: 'flight-'.concat(result.outwardGuid),
|
|
48011
|
-
item: result.outward,
|
|
48012
|
-
onSelect: function () {
|
|
48013
|
-
return dispatch(setSelectedOutwardKey(getFlightKey(result.outward.segments)));
|
|
48014
|
-
},
|
|
48015
|
-
guid: result.outwardGuid,
|
|
48016
|
-
isOutward: true,
|
|
48017
|
-
price: result.price,
|
|
48018
|
-
currentSelectedPrice: selectedOutward === null || selectedOutward === void 0 ? void 0 : selectedOutward.price
|
|
48019
|
-
});
|
|
48020
|
-
})
|
|
48510
|
+
{ className: 'search__results__label__date' },
|
|
48511
|
+
(function () {
|
|
48512
|
+
var firstResultDate = uniqueOutwardFlights.length > 0 ? uniqueOutwardFlights[0].outward.segments[0].departureDateTime : null;
|
|
48513
|
+
var firstResultDay = firstResultDate ? format$1(firstResultDate, 'd') : null;
|
|
48514
|
+
var firstResultMonth = firstResultDate ? format$1(firstResultDate, 'MMM') : null;
|
|
48515
|
+
return React__default.createElement(
|
|
48516
|
+
React__default.Fragment,
|
|
48517
|
+
null,
|
|
48518
|
+
React__default.createElement('p', { className: 'search__results__label__date-date' }, firstResultDay),
|
|
48519
|
+
React__default.createElement('p', null, firstResultMonth)
|
|
48520
|
+
);
|
|
48521
|
+
})()
|
|
48021
48522
|
),
|
|
48022
|
-
|
|
48023
|
-
|
|
48523
|
+
React__default.createElement(
|
|
48524
|
+
'div',
|
|
48525
|
+
{ className: 'search__results__label__text' },
|
|
48526
|
+
React__default.createElement(Icon, { name: 'ui-flight', height: 16 }),
|
|
48024
48527
|
React__default.createElement(
|
|
48025
|
-
'
|
|
48026
|
-
|
|
48528
|
+
'h3',
|
|
48529
|
+
null,
|
|
48530
|
+
translations.SRP.SELECT,
|
|
48531
|
+
' ',
|
|
48532
|
+
React__default.createElement('strong', null, ' ', translations.SRP.DEPARTURE)
|
|
48533
|
+
)
|
|
48534
|
+
)
|
|
48535
|
+
),
|
|
48536
|
+
flightsLoading
|
|
48537
|
+
? React__default.createElement(Spinner, { label: translations.SRP.LOADING_FLIGHTS })
|
|
48538
|
+
: React__default.createElement(
|
|
48539
|
+
React__default.Fragment,
|
|
48540
|
+
null,
|
|
48027
48541
|
React__default.createElement(
|
|
48028
|
-
'
|
|
48029
|
-
{
|
|
48030
|
-
|
|
48031
|
-
|
|
48032
|
-
|
|
48033
|
-
|
|
48034
|
-
|
|
48035
|
-
|
|
48036
|
-
|
|
48542
|
+
'div',
|
|
48543
|
+
{ className: 'search__results__cards search__results__cards--extended' },
|
|
48544
|
+
selectedOutwardKey &&
|
|
48545
|
+
selectedOutward &&
|
|
48546
|
+
React__default.createElement(IndependentFlightOption, {
|
|
48547
|
+
key: 'flight-'.concat(selectedOutwardKey),
|
|
48548
|
+
item: selectedOutward.outward,
|
|
48549
|
+
guid: selectedOutward.outwardGuid,
|
|
48550
|
+
onSelect: function () {
|
|
48551
|
+
return dispatch(setSelectedOutwardKey(null));
|
|
48552
|
+
},
|
|
48553
|
+
selectedGuid: selectedOutward.outwardGuid,
|
|
48554
|
+
isOutward: true,
|
|
48555
|
+
showSelectedState: true,
|
|
48556
|
+
price: selectedOutward.price
|
|
48557
|
+
}),
|
|
48558
|
+
visibleOutwardFlights.map(function (result) {
|
|
48559
|
+
return React__default.createElement(IndependentFlightOption, {
|
|
48560
|
+
key: 'flight-'.concat(result.outwardGuid),
|
|
48561
|
+
item: result.outward,
|
|
48562
|
+
onSelect: function () {
|
|
48563
|
+
return dispatch(setSelectedOutwardKey(getFlightKey(result.outward.segments)));
|
|
48564
|
+
},
|
|
48565
|
+
guid: result.outwardGuid,
|
|
48566
|
+
isOutward: true,
|
|
48567
|
+
price: result.price,
|
|
48568
|
+
currentSelectedPrice: selectedOutward === null || selectedOutward === void 0 ? void 0 : selectedOutward.price
|
|
48569
|
+
});
|
|
48570
|
+
})
|
|
48571
|
+
),
|
|
48572
|
+
uniqueOutwardFlights &&
|
|
48573
|
+
uniqueOutwardFlights.length > 3 &&
|
|
48574
|
+
React__default.createElement(
|
|
48575
|
+
'div',
|
|
48576
|
+
{ className: 'search__results__cards__actions' },
|
|
48577
|
+
React__default.createElement(
|
|
48578
|
+
'button',
|
|
48579
|
+
{
|
|
48580
|
+
className: 'cta cta--secondary',
|
|
48581
|
+
onClick: function () {
|
|
48582
|
+
return handleShowMoreFlights('flight-outward-results');
|
|
48583
|
+
}
|
|
48584
|
+
},
|
|
48585
|
+
translations.SRP.SHOW_MORE
|
|
48586
|
+
)
|
|
48587
|
+
)
|
|
48037
48588
|
)
|
|
48038
|
-
)
|
|
48039
|
-
),
|
|
48040
|
-
context.showHotelAccommodationResults &&
|
|
48041
|
-
!context.packagingEntry &&
|
|
48042
|
-
React__default.createElement(HotelAccommodationResults, { isLoading: isLoading }),
|
|
48043
|
-
context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight &&
|
|
48044
|
-
!context.packagingEntry &&
|
|
48045
|
-
React__default.createElement(DayByDayExcursions, null),
|
|
48046
|
-
context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight &&
|
|
48047
|
-
!context.packagingEntry &&
|
|
48048
|
-
context.showFlightResults &&
|
|
48049
|
-
React__default.createElement(
|
|
48050
|
-
React__default.Fragment,
|
|
48051
|
-
null,
|
|
48052
|
-
React__default.createElement(
|
|
48053
|
-
'div',
|
|
48054
|
-
{ className: 'search__results__label search__results__label--secondary' },
|
|
48055
|
-
React__default.createElement(
|
|
48056
|
-
'div',
|
|
48057
|
-
{ className: 'search__results__label__date' },
|
|
48058
|
-
React__default.createElement(Icon, { name: 'ui-flight', height: 16, fill: 'white' })
|
|
48059
48589
|
),
|
|
48590
|
+
context.showHotelAccommodationResults &&
|
|
48591
|
+
!context.packagingEntry &&
|
|
48592
|
+
React__default.createElement(HotelAccommodationResults, { isLoading: isLoading }),
|
|
48593
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight &&
|
|
48594
|
+
!context.packagingEntry &&
|
|
48595
|
+
React__default.createElement(DayByDayExcursions, null),
|
|
48596
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight &&
|
|
48597
|
+
!context.packagingEntry &&
|
|
48598
|
+
context.showFlightResults &&
|
|
48060
48599
|
React__default.createElement(
|
|
48061
|
-
|
|
48062
|
-
|
|
48600
|
+
React__default.Fragment,
|
|
48601
|
+
null,
|
|
48063
48602
|
React__default.createElement(
|
|
48064
|
-
'
|
|
48065
|
-
|
|
48066
|
-
|
|
48067
|
-
|
|
48068
|
-
|
|
48603
|
+
'div',
|
|
48604
|
+
{ className: 'search__results__label search__results__label--secondary' },
|
|
48605
|
+
React__default.createElement(
|
|
48606
|
+
'div',
|
|
48607
|
+
{ className: 'search__results__label__date' },
|
|
48608
|
+
(function () {
|
|
48609
|
+
var firstResultDate = uniqueReturnFlights.length > 0 ? uniqueReturnFlights[0].return.segments[0].departureDateTime : null;
|
|
48610
|
+
var firstResultDay = firstResultDate ? format$1(firstResultDate, 'd') : null;
|
|
48611
|
+
var firstResultMonth = firstResultDate ? format$1(firstResultDate, 'MMM') : null;
|
|
48612
|
+
return React__default.createElement(
|
|
48613
|
+
React__default.Fragment,
|
|
48614
|
+
null,
|
|
48615
|
+
React__default.createElement('p', { className: 'search__results__label__date-date' }, firstResultDay),
|
|
48616
|
+
React__default.createElement('p', null, firstResultMonth)
|
|
48617
|
+
);
|
|
48618
|
+
})()
|
|
48619
|
+
),
|
|
48620
|
+
React__default.createElement(
|
|
48621
|
+
'div',
|
|
48622
|
+
{ className: 'search__results__label__text' },
|
|
48623
|
+
React__default.createElement(Icon, { name: 'ui-flight', height: 16 }),
|
|
48624
|
+
React__default.createElement(
|
|
48625
|
+
'h3',
|
|
48626
|
+
null,
|
|
48627
|
+
translations.SRP.SELECT,
|
|
48628
|
+
' ',
|
|
48629
|
+
React__default.createElement('strong', null, ' ', translations.SRP.RETURN)
|
|
48630
|
+
)
|
|
48631
|
+
)
|
|
48632
|
+
),
|
|
48633
|
+
React__default.createElement(
|
|
48634
|
+
'div',
|
|
48635
|
+
{ className: 'search__results__cards search__results__cards--extended' },
|
|
48636
|
+
selectedReturnKey &&
|
|
48637
|
+
selectedReturn &&
|
|
48638
|
+
React__default.createElement(IndependentFlightOption, {
|
|
48639
|
+
key: 'flight-'.concat(selectedReturnKey),
|
|
48640
|
+
item: selectedReturn.return,
|
|
48641
|
+
guid: selectedReturn.outwardGuid,
|
|
48642
|
+
selectedGuid: selectedReturn.outwardGuid,
|
|
48643
|
+
isOutward: false,
|
|
48644
|
+
showSelectedState: true,
|
|
48645
|
+
price: selectedReturn.price
|
|
48646
|
+
}),
|
|
48647
|
+
uniqueReturnFlights.map(function (result) {
|
|
48648
|
+
return React__default.createElement(IndependentFlightOption, {
|
|
48649
|
+
key: 'flight-'.concat(result.outwardGuid),
|
|
48650
|
+
item: result.return,
|
|
48651
|
+
onSelect: function () {
|
|
48652
|
+
return dispatch(setSelectedReturnKey(getFlightKey(result.return.segments)));
|
|
48653
|
+
},
|
|
48654
|
+
guid: result.outwardGuid,
|
|
48655
|
+
isOutward: false,
|
|
48656
|
+
currentSelectedPrice: selectedReturn === null || selectedReturn === void 0 ? void 0 : selectedReturn.price,
|
|
48657
|
+
price: result.price
|
|
48658
|
+
});
|
|
48659
|
+
})
|
|
48069
48660
|
)
|
|
48070
|
-
)
|
|
48071
|
-
|
|
48072
|
-
|
|
48073
|
-
|
|
48074
|
-
|
|
48075
|
-
|
|
48076
|
-
|
|
48077
|
-
|
|
48078
|
-
|
|
48079
|
-
|
|
48080
|
-
|
|
48081
|
-
|
|
48082
|
-
|
|
48083
|
-
|
|
48084
|
-
|
|
48085
|
-
|
|
48086
|
-
|
|
48087
|
-
|
|
48088
|
-
|
|
48089
|
-
|
|
48090
|
-
|
|
48091
|
-
|
|
48092
|
-
|
|
48093
|
-
|
|
48094
|
-
|
|
48095
|
-
|
|
48096
|
-
price: result.price
|
|
48097
|
-
});
|
|
48098
|
-
})
|
|
48099
|
-
)
|
|
48100
|
-
),
|
|
48101
|
-
context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight &&
|
|
48102
|
-
context.packagingEntry &&
|
|
48103
|
-
React__default.createElement(FullItinerary, { isLoading: itineraryIsLoading })
|
|
48661
|
+
),
|
|
48662
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight &&
|
|
48663
|
+
context.packagingEntry &&
|
|
48664
|
+
React__default.createElement(FullItinerary, { isLoading: itineraryIsLoading })
|
|
48665
|
+
)
|
|
48666
|
+
),
|
|
48667
|
+
React__default.createElement(FlyIn, {
|
|
48668
|
+
srpType: context.searchConfiguration.qsmType,
|
|
48669
|
+
isOpen: flyInIsOpen,
|
|
48670
|
+
setIsOpen: handleFlyInToggle,
|
|
48671
|
+
handleConfirm: function () {
|
|
48672
|
+
return handleConfirmHotelSwap();
|
|
48673
|
+
},
|
|
48674
|
+
onPanelRef: function (el) {
|
|
48675
|
+
return (panelRef.current = el);
|
|
48676
|
+
},
|
|
48677
|
+
detailsLoading: detailsIsLoading,
|
|
48678
|
+
flyInType: flyInType,
|
|
48679
|
+
isPackageEditFlow: !!context.packagingEntry,
|
|
48680
|
+
sortByTypes: sortByTypes,
|
|
48681
|
+
activeSearchSeed: activeSearchSeed,
|
|
48682
|
+
toggleFilters: function () {
|
|
48683
|
+
return setFiltersOpen(!filtersOpen);
|
|
48684
|
+
},
|
|
48685
|
+
filtersOpen: filtersOpen
|
|
48686
|
+
})
|
|
48104
48687
|
)
|
|
48105
|
-
),
|
|
48106
|
-
React__default.createElement(FlyIn, {
|
|
48107
|
-
srpType: context.searchConfiguration.qsmType,
|
|
48108
|
-
isOpen: flyInIsOpen,
|
|
48109
|
-
setIsOpen: handleFlyInToggle,
|
|
48110
|
-
handleConfirm: function () {
|
|
48111
|
-
return handleConfirmHotelSwap();
|
|
48112
|
-
},
|
|
48113
|
-
onPanelRef: function (el) {
|
|
48114
|
-
return (panelRef.current = el);
|
|
48115
|
-
},
|
|
48116
|
-
detailsLoading: detailsIsLoading,
|
|
48117
|
-
flyInType: flyInType,
|
|
48118
|
-
isPackageEditFlow: !!context.packagingEntry,
|
|
48119
|
-
sortByTypes: sortByTypes,
|
|
48120
|
-
activeSearchSeed: activeSearchSeed
|
|
48121
|
-
})
|
|
48122
48688
|
)
|
|
48123
|
-
)
|
|
48124
48689
|
)
|
|
48125
48690
|
);
|
|
48126
48691
|
};
|